text: (self.webpackChunk=self.webpackChunk||[]).push([[773],{5308:t=>{t.exports={methods:{__:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=this.$page.props.translations[t]?this.$page.props.translations[t]:t;return Object.keys(e).forEach((function(t){s=s.replace(":"+t,e[t])})),s},__n:function(t,e){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.split("|");return t=r[1],1===e&&(t=r[0]),tt(t,s)}}}},5817:(t,e,s)=>{"use strict";var r=s(538),a=s(629),i=s(4865),n=s.n(i),o=s(9680),l=s(6454),c=s(2433),u=s(5671),d=s(4705),p=s.n(d),m=s(8989),_=s(5206),f=s(2358),v=s(8620),h=s(7356);var g={UPDATE_EXAM_PATTERNS:function(t,e){return t.examPatterns=e},UPDATE_SUB_CATEGORIES:function(t,e){return t.subCategories=e},UPDATE_DETAILS:function(t,e){Object.assign(t.details,e)},UPDATE_PATTERN:function(t,e){Object.assign(t.pattern,e)},UPDATE_SETTINGS:function(t,e){Object.assign(t.settings,e)},ADD_SECTION:function(t,e){t.sections.push(e)},REMOVE_SECTION:function(t,e){t.sections.splice(e,1)},UPDATE_SECTION:function(t,e){var s,r,a;Object.assign(t.sections[e.index],(s={},r=e.field,a=e.value,r in s?Object.defineProperty(s,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):s[r]=a,s))},SET_TIMEOUT:function(t,e){return t.debounce=e}};const b={state:{examPatterns:[],subCategories:[],details:{title:"",description:"",sub_category_id:"",exam_type:1,exam_pattern_id:"",is_paid:!1,price:null,schedule_type:1,schedule_from:"",schedule_to:"",is_public:!0,is_active:!0},pattern:{auto_duration:!1,total_duration:null,auto_grading:!1,total_marks:null,is_section_based:!1,disable_section_navigation:!1,has_section_cutoff:!1,has_negative_marking:!1,negative_marking_type:"fixed",negative_marks:null},settings:{restrict_attempts:!1,no_of_attempts:null,auto_evaluation:!0,has_partial_weighting:!1,disable_question_navigation:!1,list_questions:!1,show_marks:!0,allow_calculator:!1,allow_instant_score_view:!0,allow_review:!0,send_email:!1,enable_face_verification:!1,enable_id_proof_verification:!1,enable_image_proctoring:!1,image_capture_interval:60,suspend_on_tab_shift:!1,max_shifting_alerts:3},questions:[],users:[],sections:[{section_id:null,section_duration:null,section_marks:null,section_cutoff:null,section_order:1}],examTypes:[{name:"Objective",code:1},{name:"Subjective",code:2},{name:"Mixed (Objective & Subjective)",code:3}],scheduleTypes:[{name:"Fixed",code:1},{name:"Flexible",code:2}],visibilityTypes:[{name:"Public",code:!0},{name:"Private",code:!1}],pricingTypes:[{name:"Free",code:!1},{name:"Paid",code:!0}],autoModes:[{name:"Auto",code:!0},{name:"Manual",code:!1}],choices:[{name:"Yes",code:!0},{name:"No",code:!1}],amountTypes:[{name:"Fixed",code:"fixed"},{name:"Percentage",code:"percentage"}],editorUrl:window.CKEditorURL,en:{firstDayOfWeek:0,dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",dateFormat:"mm/dd/yy",weekHeader:"Wk"},debounce:null},getters:{allExamPatterns:function(t){return t.examPatterns},allSubCategories:function(t){return t.subCategories}},actions:{searchSubCategories:function(t,e){clearTimeout(t.state.debounce),t.commit("UPDATE_SUB_CATEGORIES",[]),t.commit("SET_TIMEOUT",setTimeout((function(){axios.get(route("search_sub_categories",{query:e})).then((function(e){console.log(e),t.commit("UPDATE_SUB_CATEGORIES",e.data.subCategories)})).catch((function(t){console.log(t)})).then((function(){}))}),600))},changeExamType:function(t,e){t.commit("UPDATE_DETAILS",{exam_type:e}),1!==e&&t.commit("UPDATE_SETTINGS",{auto_evaluation:!1})},addSection:function(t){t.commit("ADD_SECTION",{section_id:null,section_duration:null,section_marks:null,section_cutoff:null,section_order:1})},removeSection:function(t,e){t.commit("REMOVE_SECTION",e)}},mutations:g};r.default.use(a.ZP);const x=new a.ZP.Store({modules:{exam:b}});var y=s(6831),w=s.n(y),C=s(9938),k=s.n(C);s(9147),r.default.component("v-select",k()),r.default.component("VueCtkDateTimePicker",w()),r.default.use(a.ZP),r.default.use(l.BA),r.default.use(c.ZP),r.default.use(u.default),r.default.use(m.default),r.default.use(f.default),r.default.use(_.Z),r.default.use(p()),r.default.use(v.ZP),r.default.use(h.Z,{refreshOnceOnNavigation:!0}),r.default.config.productionTip=!1,r.default.mixin({methods:{route}}),r.default.mixin(s(5308)),r.default.filter("convertToCharacter",(function(t){return["A","B","C","D","E","F","G","H","I","J"][t]})),n().configure({template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="bg-green-700 rounded-sm shadow flex items-center justify-center gap-4 px-3 py-1"><div class="spinner-icon"></div><div class="text-xs text-white">Loading</div></div></div>'});var S=document.getElementById("app"),A=null;o.Inertia.on("start",(function(){A=setTimeout((function(){return n().start()}),250)})),o.Inertia.on("progress",(function(t){n().isStarted()&&t.detail.progress.percentage&&n().set(t.detail.progress.percentage/100*.9)})),o.Inertia.on("finish",(function(t){clearTimeout(A),n().isStarted()&&(t.detail.visit.completed?n().done():t.detail.visit.interrupted?n().set(0):t.detail.visit.cancelled&&(n().done(),n().remove()))})),window.App=new r.default({store:x,metaInfo:{title:"",titleTemplate:"%s"},render:function(t){return t(l.gV,{props:{initialPage:JSON.parse(S.dataset.page),resolveComponent:function(t){return s(3218)("./".concat(t)).default}}})}}).$mount(S)},9147:(t,e,s)=>{window._=s(6486),window.axios=s(9669),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest"},8916:()=>{},5202:()=>{},6700:(t,e,s)=>{var r={"./af":2786,"./af.js":2786,"./ar":867,"./ar-dz":4130,"./ar-dz.js":4130,"./ar-kw":6135,"./ar-kw.js":6135,"./ar-ly":6440,"./ar-ly.js":6440,"./ar-ma":7702,"./ar-ma.js":7702,"./ar-sa":6040,"./ar-sa.js":6040,"./ar-tn":5933,"./ar-tn.js":5933,"./ar.js":867,"./az":1083,"./az.js":1083,"./be":9808,"./be.js":9808,"./bg":8338,"./bg.js":8338,"./bm":7438,"./bm.js":7438,"./bn":8905,"./bn-bd":6225,"./bn-bd.js":6225,"./bn.js":8905,"./bo":1560,"./bo.js":1560,"./br":1278,"./br.js":1278,"./bs":622,"./bs.js":622,"./ca":2468,"./ca.js":2468,"./cs":5822,"./cs.js":5822,"./cv":877,"./cv.js":877,"./cy":7373,"./cy.js":7373,"./da":4780,"./da.js":4780,"./de":9740,"./de-at":217,"./de-at.js":217,"./de-ch":894,"./de-ch.js":894,"./de.js":9740,"./dv":5300,"./dv.js":5300,"./el":837,"./el.js":837,"./en-au":8348,"./en-au.js":8348,"./en-ca":7925,"./en-ca.js":7925,"./en-gb":2243,"./en-gb.js":2243,"./en-ie":6436,"./en-ie.js":6436,"./en-il":941,"./en-il.js":941,"./en-in":4175,"./en-in.js":4175,"./en-nz":6319,"./en-nz.js":6319,"./en-sg":1662,"./en-sg.js":1662,"./eo":2915,"./eo.js":2915,"./es":7093,"./es-do":5251,"./es-do.js":5251,"./es-mx":6112,"./es-mx.js":6112,"./es-us":1146,"./es-us.js":1146,"./es.js":7093,"./et":5603,"./et.js":5603,"./eu":7763,"./eu.js":7763,"./fa":6959,"./fa.js":6959,"./fi":1897,"./fi.js":1897,"./fil":2549,"./fil.js":2549,"./fo":4694,"./fo.js":4694,"./fr":4470,"./fr-ca":3049,"./fr-ca.js":3049,"./fr-ch":2330,"./fr-ch.js":2330,"./fr.js":4470,"./fy":5044,"./fy.js":5044,"./ga":9295,"./ga.js":9295,"./gd":2101,"./gd.js":2101,"./gl":8794,"./gl.js":8794,"./gom-deva":4980,"./gom-deva.js":4980,"./gom-latn":3168,"./gom-latn.js":3168,"./gu":5349,"./gu.js":5349,"./he":4206,"./he.js":4206,"./hi":94,"./hi.js":94,"./hr":316,"./hr.js":316,"./hu":2138,"./hu.js":2138,"./hy-am":1423,"./hy-am.js":1423,"./id":9218,"./id.js":9218,"./is":135,"./is.js":135,"./it":626,"./it-ch":150,"./it-ch.js":150,"./it.js":626,"./ja":9183,"./ja.js":9183,"./jv":4286,"./jv.js":4286,"./ka":2105,"./ka.js":2105,"./kk":7772,"./kk.js":7772,"./km":8758,"./km.js":8758,"./kn":9282,"./kn.js":9282,"./ko":3730,"./ko.js":3730,"./ku":1408,"./ku.js":1408,"./ky":3291,"./ky.js":3291,"./lb":6841,"./lb.js":6841,"./lo":5466,"./lo.js":5466,"./lt":7010,"./lt.js":7010,"./lv":7595,"./lv.js":7595,"./me":9861,"./me.js":9861,"./mi":5493,"./mi.js":5493,"./mk":5966,"./mk.js":5966,"./ml":7341,"./ml.js":7341,"./mn":5115,"./mn.js":5115,"./mr":370,"./mr.js":370,"./ms":9847,"./ms-my":1237,"./ms-my.js":1237,"./ms.js":9847,"./mt":2126,"./mt.js":2126,"./my":6165,"./my.js":6165,"./nb":4924,"./nb.js":4924,"./ne":6744,"./ne.js":6744,"./nl":3901,"./nl-be":9814,"./nl-be.js":9814,"./nl.js":3901,"./nn":3877,"./nn.js":3877,"./oc-lnc":2135,"./oc-lnc.js":2135,"./pa-in":5858,"./pa-in.js":5858,"./pl":4495,"./pl.js":4495,"./pt":9520,"./pt-br":7971,"./pt-br.js":7971,"./pt.js":9520,"./ro":6459,"./ro.js":6459,"./ru":238,"./ru.js":238,"./sd":950,"./sd.js":950,"./se":490,"./se.js":490,"./si":124,"./si.js":124,"./sk":4249,"./sk.js":4249,"./sl":4985,"./sl.js":4985,"./sq":1104,"./sq.js":1104,"./sr":9131,"./sr-cyrl":9915,"./sr-cyrl.js":9915,"./sr.js":9131,"./ss":5893,"./ss.js":5893,"./sv":8760,"./sv.js":8760,"./sw":1172,"./sw.js":1172,"./ta":7333,"./ta.js":7333,"./te":3110,"./te.js":3110,"./tet":2095,"./tet.js":2095,"./tg":7321,"./tg.js":7321,"./th":9041,"./th.js":9041,"./tk":9005,"./tk.js":9005,"./tl-ph":5768,"./tl-ph.js":5768,"./tlh":9444,"./tlh.js":9444,"./tr":2397,"./tr.js":2397,"./tzl":8254,"./tzl.js":8254,"./tzm":1106,"./tzm-latn":699,"./tzm-latn.js":699,"./tzm.js":1106,"./ug-cn":9288,"./ug-cn.js":9288,"./uk":7691,"./uk.js":7691,"./ur":3795,"./ur.js":3795,"./uz":6791,"./uz-latn":588,"./uz-latn.js":588,"./uz.js":6791,"./vi":5666,"./vi.js":5666,"./x-pseudo":4378,"./x-pseudo.js":4378,"./yo":5805,"./yo.js":5805,"./zh-cn":3839,"./zh-cn.js":3839,"./zh-hk":5726,"./zh-hk.js":5726,"./zh-mo":9807,"./zh-mo.js":9807,"./zh-tw":4152,"./zh-tw.js":4152};function a(t){var e=i(t);return s(e)}function i(t){if(!s.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}a.keys=function(){return Object.keys(r)},a.resolve=i,t.exports=a,a.id=6700},8618:(t,e,s)=>{"use strict";s.d(e,{Z:()=>n});var r=s(7757),a=s.n(r);const i={extends:s(7297).$I,props:{chartData:{type:Object,default:null},elementText:{type:String,default:""}},mounted:function(){a().pluginService.register({beforeDraw:function(t){if(t.config.options.elements.center){var e=t.chart.ctx,s=t.config.options.elements.center,r=s.fontStyle||"Arial",a=s.text,i=s.color||"#000",n=s.maxFontSize||75,o=(s.sidePadding||20)/100*(2*t.innerRadius);e.font="30px "+r;var l=e.measureText(a).width,c=2*t.innerRadius-o,u=c/l,d=Math.floor(30*u),p=2*t.innerRadius,m=Math.min(d,p,n),_=s.minFontSize,f=s.lineHeight||25,v=!1;void 0===_&&(_=20),_&&m<_&&(m=_,v=!0),e.textAlign="center",e.textBaseline="middle";var h=(t.chartArea.left+t.chartArea.right)/2,g=(t.chartArea.top+t.chartArea.bottom)/2;if(e.font=m+"px "+r,e.fillStyle=i,!v)return void e.fillText(a,h,g);for(var b=a.split(" "),x="",y=[],w=0;w<b.length;w++){var C=x+b[w]+" ";e.measureText(C).width>c&&w>0?(y.push(x),x=b[w]+" "):x=C}g-=y.length/2*f;for(var k=0;k<y.length;k++)e.fillText(y[k],h,g),g+=f;e.fillText(x,h,g)}}}),this.renderChart(this.chartData,{responsive:!0,cutoutPercentage:90,legend:{display:!1},elements:{center:{text:this.elementText,color:"#495057",fontStyle:"Inter",sidePadding:20,minFontSize:12,newFontSize:12,lineHeight:25}}})}};const n=(0,s(1900).Z)(i,undefined,undefined,!1,null,null,null).exports},4820:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={props:["on"]};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("transition",{attrs:{"leave-active-class":"transition ease-in duration-1000","leave-class":"opacity-100","leave-to-class":"opacity-0"}},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.on,expression:"on"}],staticClass:"text-gray-600"},[t._t("default")],2)])],1)}),[],!1,null,null,null).exports},8e3:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={components:{ArcSectionTitle:s(223).Z}};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"md:grid md:grid-cols-3 md:gap-6"},[s("arc-section-title",{scopedSlots:t._u([{key:"title",fn:function(){return[t._t("title")]},proxy:!0},{key:"description",fn:function(){return[t._t("description")]},proxy:!0}],null,!0)}),t._v(" "),s("div",{staticClass:"mt-5 md:mt-0 md:col-span-2"},[s("div",{staticClass:"px-4 py-5 sm:p-6 bg-white shadow sm:rounded-sm"},[t._t("content")],2)])],1)}),[],!1,null,null,null).exports},5591:(t,e,s)=>{"use strict";s.d(e,{Z:()=>r});const r=(0,s(1900).Z)({},(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("a",{attrs:{href:t.route("welcome")}},[s("img",{staticClass:"h-12",attrs:{src:t.$page.props.assetUrl+t.$page.props.general.logo_path,alt:t.$page.props.general.app_name}})])}),[],!1,null,null,null).exports},42:(t,e,s)=>{"use strict";s.d(e,{Z:()=>r});const r=(0,s(1900).Z)({},(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"50",height:"50",viewBox:"0 0 50 50"}},[s("g",{attrs:{id:"Icon",transform:"translate(13 344)"}},[s("g",{attrs:{id:"circle",transform:"translate(-29 -361.14)"}},[s("circle",{attrs:{id:"bg_circle",cx:"25",cy:"25",r:"25",transform:"translate(16 17.14)",fill:"#25c16f"}}),t._v(" "),s("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(" "),s("circle",{attrs:{id:"green_ring",cx:"15",cy:"15",r:"15",transform:"translate(26 27.14)",fill:"#25c16f"}})]),t._v(" "),s("g",{attrs:{id:"cursor",transform:"matrix(1, -0.017, 0.017, 1, 10.797, -319.593)"}},[s("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(" "),s("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},8912:(t,e,s)=>{"use strict";s.d(e,{Z:()=>r});const r=(0,s(1900).Z)({},(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"min-h-screen flex flex-col sm:justify-center items-center pt-6 sm:pt-0"},[s("div",[t._t("logo")],2),t._v(" "),s("div",{staticClass:"w-full sm:max-w-md mt-6 px-6 py-4 bg-white shadow-md overflow-hidden sm:rounded-sm"},[t._t("default")],2)])}),[],!1,null,null,null).exports},8370:(t,e,s)=>{"use strict";s.d(e,{Z:()=>r});const r=(0,s(1900).Z)({},(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"50",height:"50",viewBox:"0 0 50 50"}},[s("g",{attrs:{id:"Icon",transform:"translate(13 344)"}},[s("g",{attrs:{id:"circle",transform:"translate(-29 -361.14)"}},[s("circle",{attrs:{id:"bg_circle",cx:"25",cy:"25",r:"25",transform:"translate(16 17.14)",fill:"#25c16f"}}),t._v(" "),s("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(" "),s("circle",{attrs:{id:"green_ring",cx:"15",cy:"15",r:"15",transform:"translate(26 27.14)",fill:"#25c16f"}})]),t._v(" "),s("g",{attrs:{id:"cursor",transform:"matrix(1, -0.017, 0.017, 1, 10.797, -319.593)"}},[s("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(" "),s("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},6848:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={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 a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[t.show&&t.message?s("div",{class:{"bg-indigo-500":"success"==t.style,"bg-red-700":"danger"==t.style}},[s("div",{staticClass:"max-w-screen-xl mx-auto py-2 px-3 sm:px-6 lg:px-8"},[s("div",{staticClass:"flex items-center justify-between flex-wrap"},[s("div",{staticClass:"w-0 flex-1 flex items-center min-w-0"},[s("span",{staticClass:"flex p-2 rounded-lg",class:{"bg-indigo-600":"success"==t.style,"bg-red-600":"danger"==t.style}},["success"==t.style?s("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"}},[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._e(),t._v(" "),"danger"==t.style?s("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"}},[s("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(" "),s("p",{staticClass:"ml-3 font-medium text-white truncate"},[t._v("\n                        "+t._s(t.message)+"\n                    ")])]),t._v(" "),s("div",{staticClass:"flex-shrink-0 sm:ml-3"},[s("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(e){e.preventDefault(),t.show=!1}}},[s("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"}},[s("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"}})])])])])])]):t._e()])}),[],!1,null,null,null).exports},9881:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={props:{type:{type:String,default:"submit"}}};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("button",{staticClass:"inline-flex items-center px-4 py-2 bg-gray-800 border border-transparent rounded-sm font-semibold text-xs text-white uppercase tracking-widest hover:bg-gray-700 active:bg-gray-900 focus:outline-none focus:border-gray-900 focus:shadow-outline-gray transition ease-in-out duration-150",attrs:{type:t.type}},[t._t("default")],2)}),[],!1,null,null,null).exports},7159:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={props:{name:{type:String,default:"Finish"}}};const a=(0,s(1900).Z)(r,(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},823:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={props:{name:{type:String,default:"Next"}}};const a=(0,s(1900).Z)(r,(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-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",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},4340:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={props:{name:{type:String,default:"Previous"}}};const a=(0,s(1900).Z)(r,(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-sm rounded cursor-pointer hover:bg-gray-700"},[s("svg",{staticClass:"w-4 h-4",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},3427:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={name:"AdminTestStatCard",props:{title:String,hint:String,count:String|Number}};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"ease-linear transition-all duration-150 w-full flex items-center justify-center py-12 group hover:bg-green-800 border-b border-r border-gray-200"},[s("div",{staticClass:"flex flex-col items-center"},[s("p",{staticClass:"focus:outline-none text-sm font-medium leading-none text-center group-hover:text-white text-gray-800"},[t._v(t._s(t.title))]),t._v(" "),s("p",{staticClass:"focus:outline-none text-base sm:text-lg md:text-xl font-bold leading-normal text-center group-hover:text-white text-green-800 mt-3"},[t._v(t._s(t.count))])])])}),[],!1,null,null,null).exports},3532:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={name:"DashboardStat",props:{title:String,count:String|Number}};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"bg-white rounded pt-5 ltr:pl-6 rtl:pr-6 ltr:pr-12 rtl:pl-12 pb-4 flex items-start shadow"},[s("div",{staticClass:"ltr:pl-3 rtl:pr-3 mt-1"},[s("h3",{staticClass:"mb-3 leading-4 text-gray-600 text-base"},[t._v(t._s(t.__(t.title)))]),t._v(" "),s("div",{staticClass:"flex items-center"},[s("h2",{staticClass:"text-green-600 text-2xl leading-normal font-bold"},[t._v(t._s(t.count))])])])])}),[],!1,null,null,null).exports},2948:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={name:"EmptyStudentCard",props:{title:{type:String,default:"No Data Found"}}};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"flex flex-col items-center justify-center gap-4 text-gray-600"},[s("svg",{staticClass:"w-40 h-40",attrs:{"data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 998.95 833.99"}},[s("defs",[s("linearGradient",{attrs:{id:"8849c9b4-5ff8-40d0-8d32-f1e3227b06d9",x1:"499.14",y1:"857.42",x2:"499.14",y2:"171.42",gradientUnits:"userSpaceOnUse"}},[s("stop",{attrs:{offset:"0","stop-color":"gray","stop-opacity":"0.25"}}),s("stop",{attrs:{offset:"0.54","stop-color":"gray","stop-opacity":"0.12"}}),s("stop",{attrs:{offset:"1","stop-color":"gray","stop-opacity":"0.1"}})],1)],1),s("title",[t._v("blank canvas")]),s("path",{attrs:{d:"M424.35,62.67c29.21-26,75.06-31.33,116.8-29.26,131.09,6.52,249.42,69.8,351.78,141.39,37.06,25.91,73.54,53.84,97.59,89.53,49,72.65,34.44,173.29-33.64,233.14-23.17,20.36-51.25,36-80.08,49.81-51.26,24.6-106.57,44.35-164.75,50-41.48,4-83.48.75-124.73-4.84C472.09,576.78,359,542.22,264.17,483.1,222.59,457.17,183.4,424.93,166.26,383S160.09,287.87,202.55,263c17.56-10.27,38.56-14.91,59.11-19.27,30.26-6.41,61-12.73,88.3-25.76,28.21-13.46,61.6-39.49,56-69.29C400,116.75,395.18,88.67,424.35,62.67Z",transform:"translate(-100.52 -33.01)",fill:"#00bfa6",opacity:"0.1"}}),s("path",{attrs:{d:"M785.47,701.9s25.06-44.39,62.79-57.18a77.24,77.24,0,0,0,39.12-29.26,129.52,129.52,0,0,0,11.54-20.76",transform:"translate(-100.52 -33.01)",fill:"none",stroke:"#535461","stroke-miterlimit":"10","stroke-width":"2"}}),s("path",{attrs:{d:"M922.66,586.49c-4.3,4.18-24.33,8.49-24.33,8.49s4.91-19.89,9.21-24.06a10.85,10.85,0,0,1,15.12,15.57Z",transform:"translate(-100.52 -33.01)",fill:"#00bfa6"}}),s("path",{attrs:{d:"M911.33,622.48c-5.88,1.17-25-6.09-25-6.09s14.94-14,20.81-15.2a10.85,10.85,0,0,1,4.23,21.29Z",transform:"translate(-100.52 -33.01)",fill:"#00bfa6"}}),s("path",{attrs:{d:"M870.08,661.42c-5.67-2-18.54-17.9-18.54-17.9s20-4.56,25.64-2.6a10.85,10.85,0,1,1-7.1,20.5Z",transform:"translate(-100.52 -33.01)",fill:"#00bfa6"}}),s("path",{attrs:{d:"M832.23,683.86c-5.91-1-21.29-14.51-21.29-14.51s18.91-7.88,24.82-6.9a10.85,10.85,0,1,1-3.53,21.41Z",transform:"translate(-100.52 -33.01)",fill:"#00bfa6"}}),s("path",{attrs:{d:"M869.59,600.85c0,6,10.84,23.37,10.84,23.37s10.86-17.37,10.86-23.36a10.85,10.85,0,1,0-21.7,0Z",transform:"translate(-100.52 -33.01)",fill:"#00bfa6"}}),s("path",{attrs:{d:"M825.66,627.65c1.8,5.72,17.34,19.06,17.34,19.06s5.16-19.83,3.37-25.55a10.85,10.85,0,0,0-20.71,6.49Z",transform:"translate(-100.52 -33.01)",fill:"#00bfa6"}}),s("path",{attrs:{d:"M786.54,659.55c.8,5.94,13.87,21.72,13.87,21.72s8.44-18.67,7.64-24.61a10.85,10.85,0,0,0-21.51,2.89Z",transform:"translate(-100.52 -33.01)",fill:"#00bfa6"}}),s("path",{attrs:{d:"M922.66,586.49c-4.3,4.18-24.33,8.49-24.33,8.49s4.91-19.89,9.21-24.06a10.85,10.85,0,0,1,15.12,15.57Z",transform:"translate(-100.52 -33.01)",opacity:"0.25"}}),s("path",{attrs:{d:"M911.33,622.48c-5.88,1.17-25-6.09-25-6.09s14.94-14,20.81-15.2a10.85,10.85,0,0,1,4.23,21.29Z",transform:"translate(-100.52 -33.01)",opacity:"0.25"}}),s("path",{attrs:{d:"M870.08,661.42c-5.67-2-18.54-17.9-18.54-17.9s20-4.56,25.64-2.6a10.85,10.85,0,1,1-7.1,20.5Z",transform:"translate(-100.52 -33.01)",opacity:"0.25"}}),s("path",{attrs:{d:"M832.23,683.86c-5.91-1-21.29-14.51-21.29-14.51s18.91-7.88,24.82-6.9a10.85,10.85,0,1,1-3.53,21.41Z",transform:"translate(-100.52 -33.01)",opacity:"0.25"}}),s("path",{attrs:{d:"M869.59,600.85c0,6,10.84,23.37,10.84,23.37s10.86-17.37,10.86-23.36a10.85,10.85,0,1,0-21.7,0Z",transform:"translate(-100.52 -33.01)",opacity:"0.25"}}),s("path",{attrs:{d:"M825.66,627.65c1.8,5.72,17.34,19.06,17.34,19.06s5.16-19.83,3.37-25.55a10.85,10.85,0,0,0-20.71,6.49Z",transform:"translate(-100.52 -33.01)",opacity:"0.25"}}),s("path",{attrs:{d:"M786.54,659.55c.8,5.94,13.87,21.72,13.87,21.72s8.44-18.67,7.64-24.61a10.85,10.85,0,0,0-21.51,2.89Z",transform:"translate(-100.52 -33.01)",opacity:"0.25"}}),s("path",{attrs:{d:"M786.91,701s4.92-50.74,34.24-77.72a77.24,77.24,0,0,0,23.9-42.61A129.14,129.14,0,0,0,847.19,557",transform:"translate(-100.52 -33.01)",fill:"none",stroke:"#535461","stroke-miterlimit":"10","stroke-width":"2"}}),s("path",{attrs:{d:"M865.56,539.92c-2.24,5.56-18.8,17.62-18.8,17.62s-3.56-20.18-1.32-25.73a10.85,10.85,0,1,1,20.12,8.11Z",transform:"translate(-100.52 -33.01)",fill:"#00bfa6"}}),s("path",{attrs:{d:"M869.79,577.41c-4.9,3.45-25.36,4.57-25.36,4.57s8-18.87,12.87-22.32a10.85,10.85,0,0,1,12.49,17.75Z",transform:"translate(-100.52 -33.01)",fill:"#00bfa6"}}),s("path",{attrs:{d:"M847.86,629.73c-6,.5-24.2-8.86-24.2-8.86S840.07,608.61,846,608.1a10.85,10.85,0,0,1,1.82,21.63Z",transform:"translate(-100.52 -33.01)",fill:"#00bfa6"}}),s("path",{attrs:{d:"M822.35,665.58c-5.8,1.5-25.34-4.64-25.34-4.64s14.09-14.87,19.89-16.37a10.85,10.85,0,1,1,5.45,21Z",transform:"translate(-100.52 -33.01)",fill:"#00bfa6"}}),s("path",{attrs:{d:"M822.87,574.54c2.42,5.48,19.38,17,19.38,17s2.89-20.28.46-25.76a10.85,10.85,0,0,0-19.84,8.78Z",transform:"translate(-100.52 -33.01)",fill:"#00bfa6"}}),s("path",{attrs:{d:"M793.57,616.85c3.95,4.5,23.57,10.4,23.57,10.4s-3.31-20.22-7.27-24.72a10.85,10.85,0,1,0-16.3,14.32Z",transform:"translate(-100.52 -33.01)",fill:"#00bfa6"}}),s("path",{attrs:{d:"M770.73,661.87c3.14,5.11,21.48,14.23,21.48,14.23s.15-20.48-3-25.59a10.85,10.85,0,1,0-18.49,11.36Z",transform:"translate(-100.52 -33.01)",fill:"#00bfa6"}}),s("ellipse",{attrs:{cx:"374.17",cy:"814.05",rx:"118.88",ry:"19.93",fill:"#00bfa6",opacity:"0.1"}}),s("ellipse",{attrs:{cx:"608.16",cy:"661.06",rx:"118.88",ry:"19.93",fill:"#00bfa6",opacity:"0.1"}}),s("polygon",{attrs:{points:"616.05 398.03 615.94 401.92 609.18 640.44 597.82 640.44 603.39 401.92 603.5 397.43 616.05 398.03",fill:"#b77b7f"}}),s("polygon",{attrs:{points:"681.82 600.09 673.31 600.07 546.87 599.8 540.13 599.79 543.72 588.73 680.92 588.73 681.82 600.09",fill:"#dda2a6"}}),s("polygon",{attrs:{points:"616.05 398.03 615.94 401.92 603.39 401.92 603.5 397.43 616.05 398.03",opacity:"0.1"}}),s("rect",{attrs:{x:"599.77",y:"392.2",width:"21.07",height:"7.93",fill:"#b77b7f"}}),s("polygon",{attrs:{points:"547.99 588.73 546.87 599.8 540.13 599.79 543.72 588.73 547.99 588.73",opacity:"0.1"}}),s("polygon",{attrs:{points:"566.14 392.05 565.79 395.49 537.74 672.13 524.89 671.52 554.45 395.49 554.78 392.35 566.14 392.05",fill:"#dda2a6"}}),s("polygon",{attrs:{points:"681.82 600.09 673.31 600.07 672.16 588.73 680.92 588.73 681.82 600.09",opacity:"0.1"}}),s("polygon",{attrs:{points:"695.27 671.52 682.41 672.13 654.37 395.49 654.02 392.05 665.37 392.35 665.7 395.49 695.27 671.52",fill:"#dda2a6"}}),s("rect",{attrs:{x:"466.6",y:"119.3",width:"283.36",height:"271.7",fill:"#fff"}}),s("path",{attrs:{d:"M714.33,61.44v65.61H703.28V61.44a5.53,5.53,0,1,1,11.05,0Z",transform:"translate(-100.52 -33.01)",fill:"#dda2a6"}}),s("rect",{attrs:{x:"602.75",y:"88.07",width:"11.06",height:"5.97",opacity:"0.1"}}),s("path",{attrs:{d:"M718.67,125.56v21.66H699V125.56a2.68,2.68,0,0,1,2.69-2.69H716A2.69,2.69,0,0,1,718.67,125.56Z",transform:"translate(-100.52 -33.01)",fill:"#dda2a6"}}),s("circle",{attrs:{cx:"608.28",cy:"103.61",r:"4.18",opacity:"0.1"}}),s("circle",{attrs:{cx:"608.28",cy:"102.71",r:"4.18",fill:"#b77b7f"}}),s("rect",{attrs:{x:"598.42",y:"111.53",width:"19.73",height:"2.69",opacity:"0.1"}}),s("rect",{attrs:{x:"590.35",y:"115.12",width:"35.87",height:"5.98",opacity:"0.1"}}),s("rect",{attrs:{x:"590.35",y:"113.32",width:"35.87",height:"5.98",fill:"#dda2a6"}}),s("path",{attrs:{d:"M535.72,384H686.37a6.5,6.5,0,0,1,6.5,6.5v1.42a0,0,0,0,1,0,0H529.22a0,0,0,0,1,0,0v-1.42A6.5,6.5,0,0,1,535.72,384Z",opacity:"0.1"}}),s("polygon",{attrs:{points:"554.78 392.35 566.14 392.05 565.79 395.49 554.45 395.49 554.78 392.35",opacity:"0.1"}}),s("rect",{attrs:{x:"599.77",y:"392.2",width:"21.07",height:"3.29",opacity:"0.1"}}),s("polygon",{attrs:{points:"665.7 395.49 654.37 395.49 654.02 392.05 665.37 392.35 665.7 395.49",opacity:"0.1"}}),s("path",{attrs:{d:"M535.72,385.77H686.37a6.5,6.5,0,0,1,6.5,6.5v1.42a0,0,0,0,1,0,0H529.22a0,0,0,0,1,0,0v-1.42A6.5,6.5,0,0,1,535.72,385.77Z",fill:"#dda2a6"}}),s("path",{attrs:{d:"M603.21,292.64c-2.27-1.2-27-19.88-27-19.88l-39.91-25.31s-.21-.6-.59-1.63c10.95-12.43,8.56-30.47-2.58-43.15-13.5-15.38-74.5-48.49-92.88-20.17-2.57,4-2.66,8.54-3.33,12.94-1.57,10.27-6.63,20.22-14.57,28.6-6.12,6.47-14.15,12.43-17.67,19.75,0-.09-.07-.18-.1-.28a18.36,18.36,0,0,0-1.83,5C401,257.44,407,266,410.19,274.69a47.5,47.5,0,0,1,2.32,9.08c.08-.62.15-1.23.22-1.85a58.06,58.06,0,0,1,.79,13.36c-22.15,4.51-22.16,42.4-22.16,42.4s-2.73,15.06-2.27,20.49.45,17.17.45,20-2.73,20.48-3,22.6a.51.51,0,0,1,0,.09c-.4,2.32-4.55,13.5,5.48,16,.7.18,1.44.33,2.21.47.43,9.05,1.21,28,.52,32.22,0,0,3.65,25.46,6.68,31.93a73.44,73.44,0,0,0,6.7,10.82,11.92,11.92,0,0,1-1.54,4.39c-1.55,2.23-.75,4.06,1.84,4.85-.09.77-.19,1.64-.3,2.62-1.11,9.82-2.77,29.34.05,39.23,3.87,13.56,4.1,18.08,4.1,18.08s0,4.06,1.6,6.32,4.55,23.28,4.55,26.67,7.74,33.89,5.46,41.12-.45,17.4-.45,17.4-1.37,17.85-3,21.69-2.28,65.75.22,81.79,4.1,29.37,4.1,29.37-1.59,14.69-.23,16.72,3.87,14.24,2.05,14.91-2.73,5.65-2.73,5.65a50.39,50.39,0,0,0,3.11,4.23,17,17,0,0,1-2.05-.87c.72,1,1.8,2.42,3.13,4l-1.25,16.25a2.72,2.72,0,0,0,2,2.85,22.87,22.87,0,0,0,22.62-6.36c11.38-11.52,15.25-9.94,17.3-16.94.22-.75.41-1.49.57-2.19,1.47-6.24-5.18-10.88-10.47-8.22.73-4.94,1.3-10.55.75-13.72-1.14-6.55-.91-23.72-.91-23.72l-1.59-82.25s2.95-16.27,6.37-22.59,3-28.47,3-28.47l3.87-72.76,3.64-35.47s3.64-12.2,8.19,1.36c0,0-2.5,27.33-1.36,33.89s2.73,38.41,1.59,45.41-6.14,45.42-3,55.13S486,694.15,485.3,698s-3,87.21-3,87.21,6.15,16,1.6,21.24-.23,26-.23,26,.55.39,1.49.93l-.13,1.73-1.43,18.69a2.74,2.74,0,0,0,2,2.86,22.86,22.86,0,0,0,22.62-6.36c11.38-11.53,15.25-9.94,17.3-16.95.22-.75.41-1.48.58-2.19,1.6-6.81-6.5-11.75-11.92-7.3l-.27.23a9.41,9.41,0,0,1-.89.67,4.3,4.3,0,0,1-.45.29c1.14-5.16,2.8-14,2-18.14-1.14-6.1,1.13-24.62,1.13-24.62s6.6-22.15,6.83-31l1.82-70.49s-.22-28.7.69-35.7,8.19-67.56,15.47-85.64c5.59-13.84,8.09-49.16,6.61-67.07-.08-.88-.16-1.73-.26-2.52,8.93-6.59,9.82-17.55,9.82-17.55s-8.2-15.66-16.09-22.29S531,432,531.28,427.15a11.88,11.88,0,0,0-2.73-8.13s-3.64-11.75-6.07-12.95a1.9,1.9,0,0,1-.53-.4c-1.65-1.77-.38-6.83-.38-6.83l0-.16c.29-1.17,2-8.75,1.49-10.69-.61-2.1.3-12.05.3-12.05s5.77-17.17,4.86-30.73,11.84-12.35,11.84-12.35l39.37-.41,4.48,0a31.53,31.53,0,0,0,4.31-4.46c7.5-.89,22.67-3.72,24.37-12C614.9,305,605.49,293.85,603.21,292.64ZM420.81,418l.27-6.89c.93.8,1.55,1.31,1.55,1.31a10.78,10.78,0,0,1,.07,5.52,5.89,5.89,0,0,1-3.41,3.82,4.14,4.14,0,0,0-.55.29l-.38-3.89Zm142.8-121c-1.67-.75-7.29-.6-10.18-.6s-7.58-2.41-7.58-2.41c-1-1.95-6.53-3.11-11.45-3.77-3.74-9.22-9-18.21-9.71-27.82,0-.35,0-.7-.05-1.05l.57,1s22.92,14.62,25.5,19c2,3.34,11.63,10.8,16.09,14.14a4.59,4.59,0,0,1-2.45,1.64A1.35,1.35,0,0,1,563.61,297Z",transform:"translate(-100.52 -33.01)",fill:"url(#8849c9b4-5ff8-40d0-8d32-f1e3227b06d9)"}}),s("path",{attrs:{d:"M525.76,831.22c-.17.7-.35,1.43-.57,2.17-2,7-5.83,5.38-17,16.81a22.38,22.38,0,0,1-22.27,6.32,2.7,2.7,0,0,1-2-2.84l1.41-18.54.67-8.92s17.84,5,26.92-1.35a10.77,10.77,0,0,0,.88-.67A2.75,2.75,0,0,0,514,824,7.29,7.29,0,0,1,525.76,831.22Z",transform:"translate(-100.52 -33.01)",fill:"#67647e"}}),s("path",{attrs:{d:"M469.76,824.22c-.17.7-.35,1.43-.57,2.17-2,7-5.83,5.38-17,16.81a22.38,22.38,0,0,1-22.27,6.32,2.7,2.7,0,0,1-2-2.84l1.41-18.54.67-8.92s17.84,5,26.92-1.35a10.77,10.77,0,0,0,.88-.67A2.75,2.75,0,0,0,458,817,7.29,7.29,0,0,1,469.76,824.22Z",transform:"translate(-100.52 -33.01)",fill:"#67647e"}}),s("path",{attrs:{d:"M451.33,827l.72,9.64c-10.24,10.23-22.43-5-26-10C435.44,831.48,451.33,827,451.33,827Z",transform:"translate(-100.52 -33.01)",opacity:"0.1"}}),s("path",{attrs:{d:"M511.52,830.92l1.34-.89c-9.35,14.22-23.24,7.66-27.57,5.11l.67-8.92s17.84,5,26.92-1.35C512.17,828.35,511.52,830.92,511.52,830.92Z",transform:"translate(-100.52 -33.01)",opacity:"0.1"}}),s("path",{attrs:{d:"M540,561.69c-7.18,17.93-14.35,78-15.25,85s-.67,35.42-.67,35.42L522.28,752c-.23,8.75-6.73,30.72-6.73,30.72s-2.24,18.38-1.12,24.43-2.91,22-2.91,22l1.34-.9c-11.21,17-28.92,4.26-28.92,4.26s-4.26-20.62.23-25.78-1.57-21.07-1.57-21.07,2.24-82.72,2.91-86.53-2.69-15.47-5.83-25.11,1.8-47.75,2.92-54.7-.45-38.56-1.57-45.06,1.34-33.63,1.34-33.63c-4.48-13.45-8.07-1.34-8.07-1.34l-3.59,35.19-3.81,72.19s.45,22-2.91,28.25-6.28,22.41-6.28,22.41l1.57,81.61s-.22,17,.9,23.53-2.47,23.32-2.47,23.32C445.16,855.36,425,823.3,425,823.3s.9-4.93,2.69-5.6-.67-12.78-2-14.8.22-16.59.22-16.59-1.57-13.22-4-29.14-1.79-77.34-.22-81.15,2.91-21.52,2.91-21.52-1.79-10.09.45-17.27-5.38-37.43-5.38-40.8-2.91-24.21-4.48-26.45-1.57-6.28-1.57-6.28-.22-4.48-4-17.93c-2.78-9.82-1.14-29.18-.05-38.93.39-3.61.73-5.91.73-5.91S538.87,480.08,544,484.79c1.2,1.11,2,4.92,2.47,10.35C548,512.9,545.48,548,540,561.69Z",transform:"translate(-100.52 -33.01)",fill:"#444053"}}),s("path",{attrs:{d:"M491.34,662.49c.6,0,14.8,1.2,20,.15S491.34,662.49,491.34,662.49Z",transform:"translate(-100.52 -33.01)",opacity:"0.1"}}),s("path",{attrs:{d:"M492.39,670.86S512,674.3,513,672.51,492.39,670.86,492.39,670.86Z",transform:"translate(-100.52 -33.01)",opacity:"0.1"}}),s("path",{attrs:{d:"M432.46,667.27s10.16.45,15.69,3S432.46,667.27,432.46,667.27Z",transform:"translate(-100.52 -33.01)",opacity:"0.1"}}),s("path",{attrs:{d:"M395.54,415.9s1.64,31.23.75,36.76c0,0,3.58,25.26,6.57,31.68s9.42,14.5,9.42,14.5l8.82-62L419,415.6Z",transform:"translate(-100.52 -33.01)",fill:"#efb7b9"}}),s("circle",{attrs:{cx:"387.68",cy:"206.09",r:"34.52",fill:"#efb7b9"}}),s("path",{attrs:{d:"M470.27,255.23s-10.76,21.08-21.52,30.94,64.56,21.07,66.35,21.07S501.65,262.41,504.34,257,470.27,255.23,470.27,255.23Z",transform:"translate(-100.52 -33.01)",fill:"#efb7b9"}}),s("path",{attrs:{d:"M546.49,495.14a22.43,22.43,0,0,1-5.54,3.1c-13.74,5.38-28.69,12.85-38.85,9.87s-31.68,0-31.68,0-43.35-3.59-52-1.5c-3.94.95-7,.91-9,.23.39-3.61.73-5.91.73-5.91S538.87,480.08,544,484.79C545.22,485.9,546,489.71,546.49,495.14Z",transform:"translate(-100.52 -33.01)",opacity:"0.1"}}),s("path",{attrs:{d:"M555.9,475.22s-1.19,14.95-14.95,20.33-28.69,12.85-38.85,9.87-31.68,0-31.68,0-43.35-3.59-52-1.5-13.16-.59-10.47-4.48,2.4-16.74,2.4-22.12-3-27.2-.31-31.09S415.12,427.4,420.5,425a5.86,5.86,0,0,0,3.36-3.79,10.84,10.84,0,0,0-.07-5.47s-.91-.75-2.16-1.86c-3.17-2.83-8.53-8.08-6.81-9.8,2.39-2.4,0-17.94,0-17.94s-5.68-11.95-3.58-16.43S393,341.61,393,341.61s0-40.64,24.51-42.44c0,0,17.34.6,19.43-7.17s15.84-12.26,15.84-12.26l31.39,6.88s27.79,6,32.88,2.39,9,4.78,9,4.78,17.33.9,19.12,4.49-5.67,38.55-5.67,38.55-12.56-1.19-11.66,12.26S523,379.58,523,379.58s-.9,9.86-.3,11.95c.56,1.93-1.18,9.45-1.46,10.61l0,.15s-1.25,5,.37,6.78a2,2,0,0,0,.52.4c2.4,1.19,6,12.85,6,12.85a11.83,11.83,0,0,1,2.69,8.07c-.29,4.79,1.5,16.14,9.27,22.72S555.9,475.22,555.9,475.22Z",transform:"translate(-100.52 -33.01)",fill:"#a36468"}}),s("path",{attrs:{d:"M422.59,406l0,1.27-.54,14s-18.39,1.49-28.4-1-5.8-13.6-5.4-15.9a.37.37,0,0,0,0-.09c.29-2.1,3-19.58,3-22.42s0-14.5-.45-19.88S393,341.61,393,341.61l1.94-2.38L416,347.3Z",transform:"translate(-100.52 -33.01)",fill:"#a36468"}}),s("path",{attrs:{d:"M422.54,407.3l-.54,14s-18.39,1.49-28.4-1-5.8-13.6-5.4-15.9Z",transform:"translate(-100.52 -33.01)",opacity:"0.1"}}),s("path",{attrs:{d:"M423.86,421.22a10.84,10.84,0,0,0-.07-5.47s-.91-.75-2.16-1.86c15.83-2.21,78.52-10.81,99.63-11.75l0,.15s-1.25,5,.37,6.78Z",transform:"translate(-100.52 -33.01)",opacity:"0.1"}}),s("path",{attrs:{d:"M523.62,432s3.89,22-10.61,29.74C513,461.78,521.23,450.87,523.62,432Z",transform:"translate(-100.52 -33.01)",opacity:"0.1"}}),s("path",{attrs:{d:"M428.72,462.37s35-6,41.85-1.34S428.72,462.37,428.72,462.37Z",transform:"translate(-100.52 -33.01)",opacity:"0.1"}}),s("path",{attrs:{d:"M511.52,326.22s-5.38,22.12-1.35,27.2S511.52,326.22,511.52,326.22Z",transform:"translate(-100.52 -33.01)",opacity:"0.1"}}),s("path",{attrs:{d:"M410.19,308.14s4.93,8.22,1.94,16.74S410.19,308.14,410.19,308.14Z",transform:"translate(-100.52 -33.01)",opacity:"0.1"}}),s("path",{attrs:{d:"M400,380.18s6.28,3.73,4.19,9.56S400,380.18,400,380.18Z",transform:"translate(-100.52 -33.01)",opacity:"0.1"}}),s("path",{attrs:{d:"M399.43,363.14s5.82,3.14,6.57,7.77S399.43,363.14,399.43,363.14Z",transform:"translate(-100.52 -33.01)",opacity:"0.1"}}),s("path",{attrs:{d:"M485.81,541.88s36.62,3.74,43.94-4.93C529.75,537,496.72,543.53,485.81,541.88Z",transform:"translate(-100.52 -33.01)",opacity:"0.1"}}),s("path",{attrs:{d:"M422.59,539.79s39.31,9.27,47.08,1.94C469.67,541.73,435.89,544.27,422.59,539.79Z",transform:"translate(-100.52 -33.01)",opacity:"0.1"}}),s("path",{attrs:{d:"M488.65,554s16.44,0,24.06.45S488.65,554,488.65,554Z",transform:"translate(-100.52 -33.01)",opacity:"0.1"}}),s("path",{attrs:{d:"M425.28,561s8.07,9.12,17.19,7.48S425.28,561,425.28,561Z",transform:"translate(-100.52 -33.01)",opacity:"0.1"}}),s("path",{attrs:{d:"M441.13,187.65c-2.53,3.93-2.62,8.48-3.28,12.84-1.54,10.19-6.53,20.06-14.34,28.38-7.17,7.62-17,14.53-18.86,23.84-1.76,8.84,4.21,17.35,7.34,26,8.25,22.69-3.27,46.49-6.63,69.91-.93,6.47.19,14.74,8.16,16.89,2.49.68,5.34.59,7.58,1.67,3,1.44,3.92,4.43,4.47,7.12a108.82,108.82,0,0,1,2.06,29.28c-.36,5.5-.76,11.83,4.44,15.61,2.36,1.73,5.54,2.61,8.61,3.44,8.19,2.21,18.78,4,24.3-1.19,2.32-2.17,3.19-5.23,6.08-6.95,4.33-2.57,10.47-.83,15.92-.56,11.19.56,21.47-6,25.88-13.91s4-17,2.4-25.53-4.46-17-4.66-25.66c-.07-3,.2-6.05,1.92-8.71,3.33-5.15,11.08-7.49,16.38-11.54,9.93-7.6,9.9-20.05,6.29-30.47S525.1,277.7,524.3,266.93a11.87,11.87,0,0,1,1.47-7.53c1.42-2.19,3.9-3.83,6-5.64,14.49-12.24,12.78-32.34.8-46.1C519.31,192.41,459.23,159.56,441.13,187.65Z",transform:"translate(-100.52 -33.01)",fill:"#e3787d"}}),s("g",{attrs:{opacity:"0.1"}},[s("path",{attrs:{d:"M413.83,288.13c1.13-9.09.92-18.1-2.29-26.95-1.58-4.34-3.87-8.65-5.54-13a18.76,18.76,0,0,0-1.8,5c-1.76,8.84,4.21,17.35,7.34,26A47.28,47.28,0,0,1,413.83,288.13Z",transform:"translate(-100.52 -33.01)"}}),s("path",{attrs:{d:"M427.18,386.05a109.22,109.22,0,0,0-2.05-29.28c-.56-2.69-1.48-5.67-4.48-7.11-2.24-1.08-5.09-1-7.58-1.67a10.33,10.33,0,0,1-7-5.78c-.46,2.28-.86,4.55-1.19,6.83-.93,6.47.19,14.74,8.16,16.89,2.49.67,5.34.58,7.58,1.66,3,1.44,3.92,4.43,4.48,7.12a110.81,110.81,0,0,1,1.92,13.52C427.09,387.49,427.13,386.77,427.18,386.05Z",transform:"translate(-100.52 -33.01)"}}),s("path",{attrs:{d:"M512.42,382.5c-4.42,7.94-14.7,14.47-25.89,13.91-5.45-.28-11.59-2-15.91.56-2.89,1.71-3.77,4.78-6.09,6.95-5.52,5.15-16.11,3.4-24.3,1.19-3.07-.84-6.24-1.71-8.61-3.44a10.8,10.8,0,0,1-4.25-6.9c.06,3.07,0,6.15-.19,9.22-.36,5.5-.76,11.83,4.44,15.62,2.37,1.72,5.54,2.6,8.61,3.43,8.19,2.21,18.78,4,24.3-1.19,2.32-2.17,3.2-5.23,6.09-7,4.32-2.57,10.46-.83,15.91-.56,11.19.56,21.47-6,25.89-13.91,4.24-7.64,4.05-16.28,2.57-24.53A26.87,26.87,0,0,1,512.42,382.5Z",transform:"translate(-100.52 -33.01)"}}),s("path",{attrs:{d:"M531.36,236.28c-2.14,1.8-4.62,3.45-6,5.64a11.87,11.87,0,0,0-1.47,7.53,40.06,40.06,0,0,0,2.06,9.6,39.94,39.94,0,0,1,5.45-4.84c9.8-8.27,12.18-20.14,9-31.22A28.54,28.54,0,0,1,531.36,236.28Z",transform:"translate(-100.52 -33.01)"}}),s("path",{attrs:{d:"M528.45,311.05c-5.29,4.05-13.05,6.4-16.37,11.55-1.73,2.66-2,5.73-1.93,8.7a60.08,60.08,0,0,0,1.28,10.4,9.62,9.62,0,0,1,.65-1.17c3.32-5.15,11.08-7.49,16.37-11.54,9.07-6.94,9.83-17.92,7.15-27.71A20.76,20.76,0,0,1,528.45,311.05Z",transform:"translate(-100.52 -33.01)"}})]),s("path",{attrs:{d:"M582.8,332.35s25.86-1.34,28.1-12.25-7-22-9.26-23.17S575,277.2,575,277.2l-39.3-25.1s-18.83-54-23-33.33,12.11,48.12,12.11,48.12,22.56,14.5,25.1,18.83S568,301.41,568,301.41Z",transform:"translate(-100.52 -33.01)",fill:"#efb7b9"}}),s("path",{attrs:{d:"M596.7,314.71c-6.12,15.55-14.05,21.68-14.05,21.68l-4.41,0-38.77.4L535,324.58l6.28-26.46,3.88.16s4.64,2.39,7.47,2.39,8.38-.15,10,.59a1.23,1.23,0,0,0,.73.11c1.47-.15,3-2.35,3-2.35S602.83,299.17,596.7,314.71Z",transform:"translate(-100.52 -33.01)",fill:"#a36468"}}),s("path",{attrs:{d:"M596.7,314.71c-6.12,15.55-14.05,21.68-14.05,21.68l-4.41,0c2.3-6.16,7.15-18.8,9-21.72,1.81-2.76-14.43-9.63-23.93-13.34,1.47-.15,3-2.35,3-2.35S602.83,299.17,596.7,314.71Z",transform:"translate(-100.52 -33.01)",opacity:"0.1"}}),s("ellipse",{attrs:{cx:"90.82",cy:"763.14",rx:"44.18",ry:"8.64",fill:"#00bfa6",opacity:"0.1"}}),s("ellipse",{attrs:{cx:"827.28",cy:"706.15",rx:"32.18",ry:"6.29",fill:"#00bfa6",opacity:"0.1"}}),s("ellipse",{attrs:{cx:"966.77",cy:"731.64",rx:"32.18",ry:"6.29",fill:"#00bfa6",opacity:"0.1"}}),s("ellipse",{attrs:{cx:"750.78",cy:"784.14",rx:"32.18",ry:"6.29",fill:"#00bfa6",opacity:"0.1"}}),s("path",{attrs:{d:"M233.09,556.31s7.24,9.47-3.34,23.75S210.46,606.4,214,615.31c0,0,15.95-26.53,28.94-26.9S247.38,572.27,233.09,556.31Z",transform:"translate(-100.52 -33.01)",fill:"#00bfa6"}}),s("path",{attrs:{d:"M233.09,556.31a11.79,11.79,0,0,1,1.48,3c12.67,14.89,19.42,28.78,7.24,29.13-11.34.32-24.95,20.61-28.21,25.73a9.44,9.44,0,0,0,.39,1.17s15.95-26.53,28.94-26.9S247.38,572.27,233.09,556.31Z",transform:"translate(-100.52 -33.01)",opacity:"0.1"}}),s("path",{attrs:{d:"M246.54,568.37c0,3.33-.37,6-.83,6s-.84-2.7-.84-6,.47-1.76.93-1.76S246.54,565,246.54,568.37Z",transform:"translate(-100.52 -33.01)",fill:"#ffd037"}}),s("path",{attrs:{d:"M251.16,572.35c-2.92,1.59-5.47,2.56-5.69,2.15s2-2,4.89-3.62,1.77-.43,2,0S254.08,570.75,251.16,572.35Z",transform:"translate(-100.52 -33.01)",fill:"#ffd037"}}),s("path",{attrs:{d:"M194.88,556.31s-7.24,9.47,3.34,23.75S217.51,606.4,214,615.31c0,0-16-26.53-29-26.9S180.59,572.27,194.88,556.31Z",transform:"translate(-100.52 -33.01)",fill:"#00bfa6"}}),s("path",{attrs:{d:"M194.88,556.31a11.79,11.79,0,0,0-1.48,3c-12.67,14.89-19.42,28.78-7.24,29.13,11.34.32,25,20.61,28.21,25.73a11.41,11.41,0,0,1-.38,1.17s-16-26.53-29-26.9S180.59,572.27,194.88,556.31Z",transform:"translate(-100.52 -33.01)",opacity:"0.1"}}),s("path",{attrs:{d:"M181.43,568.37c0,3.33.37,6,.83,6s.84-2.7.84-6-.47-1.76-.93-1.76S181.43,565,181.43,568.37Z",transform:"translate(-100.52 -33.01)",fill:"#ffd037"}}),s("path",{attrs:{d:"M176.81,572.35c2.93,1.59,5.47,2.56,5.7,2.15s-2-2-4.9-3.62-1.77-.43-2,0S173.89,570.75,176.81,572.35Z",transform:"translate(-100.52 -33.01)",fill:"#ffd037"}}),s("ellipse",{attrs:{cx:"113.46",cy:"643.07",rx:"75.65",ry:"11.61",fill:"#00bfa6",opacity:"0.1"}}),s("path",{attrs:{d:"M252.92,602.56l-.36,3-.51,4.17-.21,1.74-.51,4.18-.22,1.74-.51,4.17L244.82,669c-.52,4.24-7.44,7.54-15.8,7.54H199c-8.36,0-15.27-3.3-15.79-7.54l-5.79-47.45-.51-4.17-.21-1.74-.52-4.18-.21-1.74-.51-4.17-.36-3c-.29-2.4,3.45-4.42,8.18-4.42h61.52C249.47,598.14,253.22,600.16,252.92,602.56Z",transform:"translate(-100.52 -33.01)",fill:"#65617d"}}),s("polygon",{attrs:{points:"152.03 572.5 151.53 576.68 75.39 576.68 74.89 572.5 152.03 572.5",fill:"#9d9cb5"}}),s("polygon",{attrs:{points:"151.31 578.42 150.81 582.59 76.12 582.59 75.61 578.42 151.31 578.42",fill:"#9d9cb5"}}),s("polygon",{attrs:{points:"150.59 584.33 150.08 588.5 76.84 588.5 76.33 584.33 150.59 584.33",fill:"#9d9cb5"}}),s("circle",{attrs:{cx:"179.99",cy:"124.52",r:"31.5",fill:"#00bfa6",opacity:"0.1"}}),s("circle",{attrs:{cx:"113.99",cy:"49.52",r:"19.5",fill:"#00bfa6",opacity:"0.1"}}),s("circle",{attrs:{cx:"12",cy:"93.02",r:"12",fill:"#00bfa6",opacity:"0.1"}})]),t._v(" "),s("div",{staticClass:"text-sm"},[t._v(t._s(t.title))]),t._v(" "),t._t("action")],2)}),[],!1,null,null,null).exports},9408:(t,e,s)=>{"use strict";s.d(e,{Z:()=>o});var r=s(6273),a=s(7840),i=s(6484);const n={name:"PracticeQuestionCard",components:{AudioAttachment:r.Z,VideoAttachment:a.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 o=(0,s(1900).Z)(n,(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},8642:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={name:"PracticeQuestionChip",props:{sno:Number,active:Boolean,is_correct:Boolean,status:String},computed:{chipClasses:function(){return"answered"===this.status?this.is_correct?"bg-green-400 text-white border-green-600":"bg-red-400 text-white border-red-600":this.active?"bg-gray-600 text-gray-200 border-gray-600 text-white":"border-gray-600 text-gray-400"}}};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"w-full overflow-hidden rounded-sm cursor-pointer"},[s("div",{staticClass:"h-10 w-10 text-sm flex items-center justify-center border hover:bg-gray-600 hover:text-gray-200 rounded-sm p-4",class:t.chipClasses},[s("span",{},[t._v(t._s(t.sno))])])])}),[],!1,null,null,null).exports},4707:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={name:"PracticeSolutionCard",props:{solution:String,correctAnswer:String},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const a=(0,s(1900).Z)(r,(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(" "),s("div",{domProps:{innerHTML:t._s(t.solution)}})])}),[],!1,null,null,null).exports},3426:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={name:"QuizCard",props:{quiz:Object}};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"w-full relative flex flex-col justify-between items-start rounded shadow bg-white py-6 px-6 hover:shadow-lg"},[s("div",{staticClass:"flex items-center justify-center bg-green-100 rounded mb-1"},[s("p",{staticClass:"font-mono text-xs leading-loose text-center text-green-700 px-2"},[t._v(t._s(t.quiz.category))])]),t._v(" "),s("h1",{staticClass:"text-lg mt-2 font-semibold text-gray-800 leading-5 py-2"},[t._v(t._s(t.quiz.title))]),t._v(" "),s("div",{staticClass:"absolute top-5 ltr:right-0 rtl:left-0 py-2 px-5 flex justify-center items-center bg-gray-700"},[s("p",{staticClass:"text-sm font-bold leading-none text-white"},[t._v(t._s(t.quiz.redeem))])]),t._v(" "),s("div",{staticClass:"my-4"},[s("div",{staticClass:"flex ltr:flex-row rtl:flex-row-reverse items-center"},[s("div",[s("p",{staticClass:"text-lg font-semibold leading-tight text-green-600"},[t._v(t._s(t.quiz.total_questions))]),t._v(" "),s("p",{staticClass:"font-mono text-sm leading-3 mt-2 text-gray-500"},[t._v(t._s(t.__("Questions")))])]),t._v(" "),s("div",{staticClass:"ml-11"},[s("p",{staticClass:"text-lg font-semibold leading-tight text-green-600"},[t._v(t._s(t.quiz.total_duration))]),t._v(" "),s("p",{staticClass:"font-mono text-sm leading-3 mt-2 text-gray-500"},[t._v(t._s(t.__("Minutes")))])]),t._v(" "),s("div",{staticClass:"ml-11"},[s("p",{staticClass:"text-lg font-semibold leading-tight text-green-600"},[t._v(t._s(t.quiz.total_marks))]),t._v(" "),s("p",{staticClass:"font-mono text-sm leading-3 mt-2 text-gray-500"},[t._v(t._s(t.__("Marks")))])])])]),t._v(" "),s("div",{staticClass:"w-full flex items-center justify-between mt-4"},[s("div",{staticClass:"flex items-center py-2"},[s("div",{staticClass:"w-2 h-2 bg-yellow-600 rounded-full"}),t._v(" "),s("p",{staticClass:"font-mono text-sm leading-3 text-yellow-600 ltr:ml-1 rtl:mr-1"},[t._v(t._s(t.quiz.type))])]),t._v(" "),t._t("action")],2)])}),[],!1,null,null,null).exports},5990:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={name:"QuizScheduleCard",props:{quiz:Object}};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"w-full relative flex flex-col justify-between items-start rounded shadow bg-white py-6 px-6 hover:shadow-lg"},[s("div",{staticClass:"flex items-center justify-center bg-green-100 rounded mb-1"},[s("p",{staticClass:"font-mono text-xs leading-loose text-center text-green-700 px-2"},[t._v(t._s(t.quiz.category))])]),t._v(" "),s("h1",{staticClass:"text-lg mt-2 font-semibold text-gray-800 leading-5 py-2"},[t._v(t._s(t.quiz.title))]),t._v(" "),s("div",{staticClass:"absolute top-5 ltr:right-0 rtl:left-0 py-2 px-5 flex justify-center items-center bg-gray-700"},[s("p",{staticClass:"text-sm font-bold leading-none text-white"},[t._v(t._s(t.quiz.redeem))])]),t._v(" "),s("div",{staticClass:"w-full flex flex-col sm:gap-4 items-center"},["Fixed"===t.quiz.scheduleType?s("div",{staticClass:"w-full mt-4 p-4 rounded-sm bg-yellow-50 border border-yellow-100 flex flex-col gap-4"},[s("p",{staticClass:"text-sm uppercase font-mono font-medium leading-3 text-yellow-600"},[t._v(t._s(t.__("Fixed Schedule Time")))]),t._v(" "),s("div",{staticClass:"flex items-center text-gray-600"},[s("i",{staticClass:"pi pi-calendar text-green-500"}),t._v(" "),s("p",{staticClass:"text-sm font-mono leading-none text-gray-700 dark:text-gray-100 ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.quiz.starts_at))])]),t._v(" "),s("div",{staticClass:"flex items-center text-gray-600"},[s("i",{staticClass:"pi pi-clock text-red-500"}),t._v(" "),s("p",{staticClass:"text-sm font-mono leading-none text-gray-700 dark:text-gray-100 ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.quiz.ends_at))])]),t._v(" "),s("div",{staticClass:"flex items-center text-gray-600"},[s("i",{staticClass:"pi pi-globe text-green-500"}),t._v(" "),s("p",{staticClass:"text-sm font-mono leading-none text-gray-700 dark:text-gray-100 ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.__("Timezone"))+" - "+t._s(t.quiz.timezone))])])]):s("div",{staticClass:"w-full mt-4 p-4 rounded-sm bg-yellow-50 border border-yellow-100 flex flex-col gap-4"},[s("p",{staticClass:"text-sm uppercase font-mono font-medium leading-3 text-yellow-600"},[t._v(t._s(t.__("Quiz Available Between")))]),t._v(" "),s("div",{staticClass:"flex items-center text-gray-600"},[s("i",{staticClass:"pi pi-calendar text-green-500"}),t._v(" "),s("p",{staticClass:"text-sm font-mono leading-none text-gray-700 dark:text-gray-100 ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.quiz.starts_at))])]),t._v(" "),s("div",{staticClass:"flex items-center text-gray-600"},[s("i",{staticClass:"pi pi-calendar text-red-500"}),t._v(" "),s("p",{staticClass:"text-sm font-mono leading-none text-gray-700 dark:text-gray-100 ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.quiz.ends_at))])]),t._v(" "),s("div",{staticClass:"flex items-center text-gray-600"},[s("i",{staticClass:"pi pi-globe text-green-500"}),t._v(" "),s("p",{staticClass:"text-sm font-mono leading-none text-gray-700 dark:text-gray-100 ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.__("Timezone"))+" - "+t._s(t.quiz.timezone))])])])]),t._v(" "),s("div",{staticClass:"my-4"},[s("div",{staticClass:"flex ltr:flex-row rtl:flex-row-reverse items-center"},[s("div",[s("p",{staticClass:"text-lg font-semibold leading-tight text-green-600"},[t._v(t._s(t.quiz.total_questions))]),t._v(" "),s("p",{staticClass:"font-mono text-sm leading-3 mt-2 text-gray-500"},[t._v(t._s(t.__("Questions")))])]),t._v(" "),s("div",{staticClass:"ml-11"},[s("p",{staticClass:"text-lg font-semibold leading-tight text-green-600"},[t._v(t._s(t.quiz.total_duration))]),t._v(" "),s("p",{staticClass:"font-mono text-sm leading-3 mt-2 text-gray-500"},[t._v(t._s(t.__("Minutes")))])]),t._v(" "),s("div",{staticClass:"ml-11"},[s("p",{staticClass:"text-lg font-semibold leading-tight text-green-600"},[t._v(t._s(t.quiz.total_marks))]),t._v(" "),s("p",{staticClass:"font-mono text-sm leading-3 mt-2 text-gray-500"},[t._v(t._s(t.__("Marks")))])])])]),t._v(" "),s("div",{staticClass:"w-full flex items-center justify-between mt-4"},[s("div",{staticClass:"flex items-center py-2"},[s("div",{staticClass:"w-2 h-2 bg-yellow-600 rounded-full"}),t._v(" "),s("p",{staticClass:"font-mono text-sm leading-3 text-yellow-600 ltr:ml-1 rtl:mr-1"},[t._v(t._s(t.quiz.type))])]),t._v(" "),t._t("action")],2)])}),[],!1,null,null,null).exports},8075:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={model:{prop:"checked",event:"change"},props:{checked:{type:[Array,Boolean],default:!1},value:{default:null}},computed:{proxyChecked:{get:function(){return this.checked},set:function(t){this.$emit("change",t)}}}};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("input",{directives:[{name:"model",rawName:"v-model",value:t.proxyChecked,expression:"proxyChecked"}],staticClass:"rounded border-gray-300 text-green-600 shadow-sm focus:border-green-300 focus:ring focus:ring-green-200 focus:ring-opacity-50",attrs:{type:"checkbox"},domProps:{value:t.value,checked:Array.isArray(t.proxyChecked)?t._i(t.proxyChecked,t.value)>-1:t.proxyChecked},on:{change:function(e){var s=t.proxyChecked,r=e.target,a=!!r.checked;if(Array.isArray(s)){var i=t.value,n=t._i(s,i);r.checked?n<0&&(t.proxyChecked=s.concat([i])):n>-1&&(t.proxyChecked=s.slice(0,n).concat(s.slice(n+1)))}else t.proxyChecked=a}}})}),[],!1,null,null,null).exports},2943:(t,e,s)=>{"use strict";s.d(e,{Z:()=>c});var r=s(9881),a=s(4354),i=s(6173),n=s(3473),o=s(7414);const l={props:{title:{default:"Confirm Password"},content:{default:"For your security, please confirm your password to continue."},button:{default:"Confirm"}},components:{JetButton:r.Z,JetDialogModal:a.Z,JetInput:i.Z,JetInputError:n.Z,JetSecondaryButton:o.Z},data:function(){return{confirmingPassword:!1,form:{password:"",error:""}}},methods:{startConfirmingPassword:function(){var t=this;axios.get(route("password.confirmation")).then((function(e){e.data.confirmed?t.$emit("confirmed"):(t.confirmingPassword=!0,setTimeout((function(){return t.$refs.password.focus()}),250))}))},confirmPassword:function(){var t=this;this.form.processing=!0,axios.post(route("password.confirm"),{password:this.form.password}).then((function(){t.form.processing=!1,t.closeModal(),t.$nextTick((function(){return t.$emit("confirmed")}))})).catch((function(e){t.form.processing=!1,t.form.error=e.response.data.errors.password[0],t.$refs.password.focus()}))},closeModal:function(){this.confirmingPassword=!1,this.form.password="",this.form.error=""}}};const c=(0,s(1900).Z)(l,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("span",[s("span",{on:{click:t.startConfirmingPassword}},[t._t("default")],2),t._v(" "),s("jet-dialog-modal",{attrs:{show:t.confirmingPassword},on:{close:t.closeModal},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n            "+t._s(t.title)+"\n        ")]},proxy:!0},{key:"content",fn:function(){return[t._v("\n            "+t._s(t.content)+"\n\n            "),s("div",{staticClass:"mt-4"},[s("jet-input",{ref:"password",staticClass:"mt-1 block w-3/4",attrs:{type:"password",placeholder:"Password"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.confirmPassword(e)}},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}}),t._v(" "),s("jet-input-error",{staticClass:"mt-2",attrs:{message:t.form.error}})],1)]},proxy:!0},{key:"footer",fn:function(){return[s("jet-secondary-button",{nativeOn:{click:function(e){return t.closeModal(e)}}},[t._v("\n                Nevermind\n            ")]),t._v(" "),s("jet-button",{staticClass:"ml-2",class:{"opacity-25":t.form.processing},attrs:{disabled:t.form.processing},nativeOn:{click:function(e){return t.confirmPassword(e)}}},[t._v("\n                "+t._s(t.button)+"\n            ")])]},proxy:!0}])})],1)}),[],!1,null,null,null).exports},9584:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={props:{type:{type:String,default:"button"}}};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("button",{staticClass:"inline-flex items-center justify-center px-4 py-2 bg-red-600 border border-transparent rounded-smd font-semibold text-xs text-white uppercase tracking-widest hover:bg-red-500 focus:outline-none focus:border-red-700 focus:shadow-outline-red active:bg-red-600 transition ease-in-out duration-150",attrs:{type:t.type}},[t._t("default")],2)}),[],!1,null,null,null).exports},4354:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={components:{Modal:s(9571).Z},props:{show:{default:!1},maxWidth:{default:"2xl"},closeable:{default:!0}},methods:{close:function(){this.$emit("close")}}};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("modal",{attrs:{show:t.show,"max-width":t.maxWidth,closeable:t.closeable},on:{close:t.close}},[s("div",{staticClass:"px-6 py-4"},[s("div",{staticClass:"text-lg"},[t._t("title")],2),t._v(" "),s("div",{staticClass:"mt-4"},[t._t("content")],2)]),t._v(" "),s("div",{staticClass:"px-6 py-4 bg-gray-100 text-right"},[t._t("footer")],2)])}),[],!1,null,null,null).exports},4409:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={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,e=function(e){t.open&&27===e.keyCode&&(t.open=!1)};this.$once("hook:destroyed",(function(){document.removeEventListener("keydown",e)})),document.addEventListener("keydown",e)},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 a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"relative"},[s("div",{on:{click:function(e){t.open=!t.open}}},[t._t("trigger")],2),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.open,expression:"open"}],staticClass:"fixed inset-0 z-40",on:{click:function(e){t.open=!1}}}),t._v(" "),s("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"}},[s("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(e){t.open=!1}}},[s("div",{staticClass:"rounded-sm ring-1 ring-black ring-opacity-5",class:t.contentClasses},[t._t("content")],2)])])],1)}),[],!1,null,null,null).exports},5e3:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={props:["href","as"]};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",["button"===t.as?s("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):s("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},341:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={components:{ArcSectionTitle:s(223).Z},computed:{hasActions:function(){return!!this.$slots.actions}}};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"md:grid md:grid-cols-3 md:gap-6"},[s("arc-section-title",{scopedSlots:t._u([{key:"title",fn:function(){return[t._t("title")]},proxy:!0},{key:"description",fn:function(){return[t._t("description")]},proxy:!0}],null,!0)}),t._v(" "),s("div",{staticClass:"mt-5 md:mt-0 md:col-span-2"},[s("form",{on:{submit:function(e){return e.preventDefault(),t.$emit("submitted")}}},[s("div",{staticClass:"shadow sm:rounded-sm"},[s("div",{staticClass:"px-4 py-5 bg-white sm:p-6"},[s("div",{staticClass:"grid grid-cols-6 gap-6"},[t._t("form")],2)]),t._v(" "),t.hasActions?s("div",{staticClass:"flex items-center justify-end px-4 py-3 bg-gray-50 text-right sm:px-6"},[t._t("actions")],2):t._e()])])])],1)}),[],!1,null,null,null).exports},6173:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={props:["value"],methods:{focus:function(){this.$refs.input.focus()}}};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("input",{ref:"input",staticClass:"text-sm border-gray-300 focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 rounded-sm shadow-sm",domProps:{value:t.value},on:{input:function(e){return t.$emit("input",e.target.value)}}})}),[],!1,null,null,null).exports},3473:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={props:["message"]};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{directives:[{name:"show",rawName:"v-show",value:t.message,expression:"message"}]},[s("p",{staticClass:"text-red-600 text-sm"},[t._v("\n        "+t._s(t.message)+"\n    ")])])}),[],!1,null,null,null).exports},9684:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={props:["value"]};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("label",{staticClass:"block font-medium text-gray-700 text-sm mb-1"},[t.value?s("span",[t._v(t._s(t.value))]):s("span",[t._t("default")],2)])}),[],!1,null,null,null).exports},9571:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={props:{show:{default:!1},maxWidth:{default:"2xl"},closeable:{default:!0}},methods:{close:function(){this.closeable&&this.$emit("close")}},watch:{show:{immediate:!0,handler:function(t){document.body.style.overflow=t?"hidden":null}}},created:function(){var t=this,e=function(e){"Escape"===e.key&&t.show&&t.close()};document.addEventListener("keydown",e),this.$once("hook:destroyed",(function(){document.removeEventListener("keydown",e)}))},computed:{maxWidthClass:function(){return{sm:"sm:max-w-sm",md:"sm:max-w-md",lg:"sm:max-w-lg",xl:"sm:max-w-xl","2xl":"sm:max-w-2xl"}[this.maxWidth]}}};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("portal",{attrs:{to:"modal"}},[s("transition",{attrs:{"leave-active-class":"duration-200"}},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],staticClass:"fixed inset-0 overflow-y-auto px-4 py-6 sm:px-0"},[s("transition",{attrs:{"enter-active-class":"ease-out duration-300","enter-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"ease-in duration-200","leave-class":"opacity-100","leave-to-class":"opacity-0"}},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],staticClass:"fixed inset-0 transform transition-all",on:{click:t.close}},[s("div",{staticClass:"absolute inset-0 bg-gray-500 opacity-75"})])]),t._v(" "),s("transition",{attrs:{"enter-active-class":"ease-out duration-300","enter-class":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to-class":"opacity-100 translate-y-0 sm:scale-100","leave-active-class":"ease-in duration-200","leave-class":"opacity-100 translate-y-0 sm:scale-100","leave-to-class":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"}},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],staticClass:"mt-16 mb-6 bg-white rounded-sm overflow-hidden shadow-xl transform transition-all sm:w-full sm:mx-auto",class:t.maxWidthClass},[t._t("default")],2)])],1)])],1)}),[],!1,null,null,null).exports},2750:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={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 a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("inertia-link",{class:t.classes,attrs:{href:t.href}},[t._t("default")],2)}),[],!1,null,null,null).exports},3194:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={name:"NoDataTable",props:{title:{type:String,default:"No Records Found"}}};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("section",{staticClass:"max-w-lg px-4 py-12 mx-auto"},[s("h2",{staticClass:"mt-2 text-sm font-medium text-center text-gray-800"},[t._v(t._s(t.title))]),t._v(" "),s("div",{staticClass:"flex flex-col items-center justify-center mt-4 space-y-1 md:flex-row md:space-y-0 md:space-x-1"},[t._t("action")],2)])}),[],!1,null,null,null).exports},7100:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={name:"PopInfo",data:function(){return{showPopup:!1,timer:"",isInInfo:!1}},methods:{hover:function(){var t=this;this.timer=setTimeout((function(){t.showPopover()}),600)},hoverOut:function(){var t=this;clearTimeout(t.timer),this.timer=setTimeout((function(){t.isInInfo||t.closePopover()}),200)},hoverInfo:function(){this.isInInfo=!0},hoverOutInfo:function(){this.isInInfo=!1,this.hoverOut()},showPopover:function(){this.showPopup=!0},closePopover:function(){this.showPopup=!1}}};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"inline relative"},[s("a",{staticClass:"text-green-600",attrs:{href:"#"},on:{mouseover:t.hover,mouseout:t.hoverOut}},[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:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}})])]),t._v(" "),t.showPopup?s("div",{staticClass:"absolute w-96 shadow border border-green-200 bg-white p-2 rounded",staticStyle:{"z-index":"999"},attrs:{transition:"fade"},on:{mouseover:t.hoverInfo,mouseout:t.hoverOutInfo}},[t._t("message")],2):t._e()])}),[],!1,null,null,null).exports},6273:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={name:"AudioAttachment",components:{VuePlyr:s(5859).Z},props:{reference:String,options:Object},data:function(){return{plyrOptions:{speed:{selected:1,options:[1]}}}}};const a=(0,s(1900).Z)(r,(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},6484:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={name:"ComprehensionAttachment",components:{PerfectScrollbar:s(4943).PerfectScrollbar},props:{passage:String},data:function(){return{scrollbarOptions:{suppressScrollX:!0}}}};const a=(0,s(1900).Z)(r,(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},7840:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={name:"VideoAttachment",components:{VuePlyr:s(5859).Z},props:{reference:String,options:Object},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 a=(0,s(1900).Z)(r,(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        Watch the video and answer the question\n    ")]),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},302:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={name:"FIBPreview",props:{question:Object},data:function(){return{collapse:!0}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"bg-white shadow px-4 py-5 border-b-4 border-gray-800 mb-6"},[s("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(" "),s("div",{staticClass:"q-data mb-4"},[s("div",{staticClass:"text-sm",domProps:{innerHTML:t._s(t.question.question)}})]),t._v(" "),s("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(e,r){return s("ul",{staticClass:"q-option"},[s("li",{staticClass:"flex items-center mb-3 cursor-pointer p-3 rounded-sm border border-gray-200"},[s("div",{staticClass:"h-6 w-6 text-sm flex rounded-full items-center justify-center bg-gray-100 text-sm"},[t._v(t._s(r+1))]),t._v(" "),s("div",{staticClass:"text-sm font-normal ltr:ml-4 rtl:mr-4",domProps:{innerHTML:t._s(e)}})])])})),0),t._v(" "),s("a",{staticClass:"qt-link-success text-sm mb-4",domProps:{innerHTML:t._s(t.collapse?t.__("View Answers"):t.__("Hide Answers"))},on:{click:function(e){t.collapse=!t.collapse}}}),t._v(" "),s("ul",{staticClass:"mt-5"},[s("li",{staticClass:"text-gray-600 text-sm flex items-center text-sm mb-4"},[s("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Question Type"))+":")]),t._v(" "),s("span",{staticClass:"text-sm ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.question_type_name))])]),t._v(" "),s("li",{staticClass:"text-gray-600 text-sm flex items-center text-sm mb-4"},[s("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Difficulty Level"))+":")]),t._v(" "),s("span",{staticClass:"text-sm ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.difficulty))])]),t._v(" "),s("li",{staticClass:"text-gray-600 text-sm flex items-center text-sm mb-4"},[s("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Marks/Points"))+":")]),t._v(" "),s("span",{staticClass:"text-sm ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.marks)+" XP")])]),t._v(" "),s("li",{staticClass:"text-gray-600 text-sm flex items-center text-sm mb-4"},[s("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Attachment"))+":")]),t._v(" "),s("span",{staticClass:"text-sm ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.__(t.question.attachment)))])])]),t._v(" "),s("div",{staticClass:"mt-4 flex justify-between items-center"},[s("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},2682:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={name:"LAQPreview",props:{question:Object},data:function(){return{collapse:!0}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"bg-white shadow px-4 py-5 border-b-4 border-gray-800 mb-6"},[s("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(" "),s("div",{staticClass:"q-data mb-4"},[s("div",{staticClass:"text-sm",domProps:{innerHTML:t._s(t.question.question)}})]),t._v(" "),s("ul",{staticClass:"mt-5"},[s("li",{staticClass:"text-gray-600 text-sm flex items-center mb-4"},[s("span",{staticClass:"font-semibold"},[t._v("Question Type:")]),t._v(" "),s("span",{staticClass:"ml-2"},[t._v(t._s(t.question.question_type_name))])]),t._v(" "),s("li",{staticClass:"text-gray-600 text-sm flex items-center mb-4"},[s("span",{staticClass:"font-semibold"},[t._v("Difficulty Level:")]),t._v(" "),s("span",{staticClass:"ml-2"},[t._v(t._s(t.question.difficulty))])]),t._v(" "),s("li",{staticClass:"text-gray-600 text-sm flex items-center mb-4"},[s("span",{staticClass:"font-semibold"},[t._v("Marks/Points:")]),t._v(" "),s("span",{staticClass:"ml-2"},[t._v(t._s(t.question.marks)+" XP")])]),t._v(" "),s("li",{staticClass:"text-gray-600 text-sm flex items-center mb-4"},[s("span",{staticClass:"font-semibold"},[t._v("Attachment:")]),t._v(" "),s("span",{staticClass:"ml-2"},[t._v(t._s(t.question.attachment))])])]),t._v(" "),s("div",{staticClass:"mt-4 flex justify-between items-center"},[s("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},7454:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={name:"MMAPreview",props:{question:Object},data:function(){return{collapse:!0}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"bg-white shadow px-4 py-5 border-b-4 border-gray-800 mb-6"},[s("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(" "),s("div",{staticClass:"q-data mb-4"},[s("div",{staticClass:"text-sm",domProps:{innerHTML:t._s(t.question.question)}})]),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:!t.collapse,expression:"!collapse"}],attrs:{id:t.question.code+"_options"}},t._l(t.question.options,(function(e,r){return s("ul",{staticClass:"q-option"},[s("li",{staticClass:"relative flex items-center mb-3 cursor-pointer p-3 rounded-sm border border-gray-200"},[s("div",{staticClass:"h-6 w-6 text-sm flex rounded-full items-center justify-center bg-gray-100 "},[t._v(t._s(r+1))]),t._v(" "),s("div",{staticClass:"text-sm font-normal ltr:ml-4 rtl:mr-4",domProps:{innerHTML:t._s(e.option)}}),t._v(" "),t.question.correct_answer.includes(r+1)?s("div",{staticClass:"absolute ltr:right-2 rtl:left-2 text-green-500"},[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:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"}})])]):t._e()])])})),0),t._v(" "),s("a",{staticClass:"qt-link-success text-sm mb-4",domProps:{innerHTML:t._s(t.collapse?t.__("View Options"):t.__("Hide Options"))},on:{click:function(e){t.collapse=!t.collapse}}}),t._v(" "),s("ul",{staticClass:"mt-5"},[s("li",{staticClass:"text-gray-600 flex text-sm items-center mb-4"},[s("span",{staticClass:"font-semibold "},[t._v(t._s(t.__("Question Type"))+":")]),t._v(" "),s("span",{staticClass:"ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.question_type_name))])]),t._v(" "),s("li",{staticClass:"text-gray-600 flex text-sm items-center mb-4"},[s("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Difficulty Level"))+":")]),t._v(" "),s("span",{staticClass:"ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.difficulty))])]),t._v(" "),s("li",{staticClass:"text-gray-600 flex text-sm items-center mb-4"},[s("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Marks/Points"))+":")]),t._v(" "),s("span",{staticClass:"ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.marks)+" XP")])]),t._v(" "),s("li",{staticClass:"text-gray-600 flex text-sm items-center mb-4"},[s("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Attachment"))+":")]),t._v(" "),s("span",{staticClass:"ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.__(t.question.attachment)))])])]),t._v(" "),s("div",{staticClass:"mt-4 flex justify-between items-center"},[s("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},5850:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={name:"MSAPreview",props:{question:Object},data:function(){return{collapse:!0}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"bg-white shadow px-4 py-5 border-b-4 border-gray-800 mb-6"},[s("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(" "),s("div",{staticClass:"q-data mb-4"},[s("div",{staticClass:"text-sm",domProps:{innerHTML:t._s(t.question.question)}})]),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:!t.collapse,expression:"!collapse"}],attrs:{id:t.question.code+"_options"}},t._l(t.question.options,(function(e,r){return s("ul",{staticClass:"q-option"},[s("li",{staticClass:"relative flex items-center mb-3 cursor-pointer p-3 rounded-sm border border-gray-200"},[s("div",{staticClass:"h-6 w-6 flex rounded-full items-center justify-center bg-gray-100 text-sm"},[t._v(t._s(r+1))]),t._v(" "),s("div",{staticClass:"text-sm font-normal ltr:ml-4 rtl:mr-4",domProps:{innerHTML:t._s(e.option)}}),t._v(" "),t.question.correct_answer===r+1?s("div",{staticClass:"absolute ltr:right-2 rtl:left-2 text-green-500"},[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:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"}})])]):t._e()])])})),0),t._v(" "),s("a",{staticClass:"qt-link-success text-sm mb-4",domProps:{innerHTML:t._s(t.collapse?t.__("View Options"):t.__("Hide Options"))},on:{click:function(e){t.collapse=!t.collapse}}}),t._v(" "),s("ul",{staticClass:"mt-5"},[s("li",{staticClass:"text-gray-600 flex items-center text-sm mb-4"},[s("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Question Type"))+":")]),t._v(" "),s("span",{staticClass:"ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.question_type_name))])]),t._v(" "),s("li",{staticClass:"text-gray-600 flex items-center text-sm mb-4"},[s("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Difficulty Level"))+":")]),t._v(" "),s("span",{staticClass:"ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.difficulty))])]),t._v(" "),s("li",{staticClass:"text-gray-600 flex items-center text-sm mb-4"},[s("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Marks/Points"))+":")]),t._v(" "),s("span",{staticClass:"ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.marks)+" XP")])]),t._v(" "),s("li",{staticClass:"text-gray-600 flex items-center text-sm mb-4"},[s("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Attachment"))+":")]),t._v(" "),s("span",{staticClass:"ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.__(t.question.attachment)))])])]),t._v(" "),s("div",{staticClass:"mt-4 flex justify-between items-center"},[s("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},2829:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={name:"MTFPreview",props:{question:Object},data:function(){return{collapse:!0}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"bg-white shadow px-4 py-5 border-b-4 border-gray-800 mb-6"},[s("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(" "),s("div",{staticClass:"q-data mb-4"},[s("div",{staticClass:"text-sm",domProps:{innerHTML:t._s(t.question.question)}})]),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:!t.collapse,expression:"!collapse"}],attrs:{id:t.question.code+"_options"}},t._l(t.question.options,(function(e,r){return s("ul",{staticClass:"q-option"},[s("li",{staticClass:"flex items-center mb-3 cursor-pointer p-3 rounded-sm border border-gray-200"},[s("div",{staticClass:"h-6 w-6 text-sm flex rounded-full items-center justify-center bg-gray-100 "},[t._v(t._s(r+1))]),t._v(" "),s("div",{staticClass:"text-sm font-normal mx-4",domProps:{innerHTML:t._s(e.option)}}),t._v(" "),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:"M17 8l4 4m0 0l-4 4m4-4H3"}})]),t._v(" "),s("div",{staticClass:"text-sm font-normal ltr:ml-4 rtl:mr-4",domProps:{innerHTML:t._s(e.pair)}})])])})),0),t._v(" "),s("a",{staticClass:"qt-link-success text-sm mb-4",domProps:{innerHTML:t._s(t.collapse?t.__("View Options"):t.__("Hide Options"))},on:{click:function(e){t.collapse=!t.collapse}}}),t._v(" "),s("ul",{staticClass:"mt-5"},[s("li",{staticClass:"text-gray-600 text-sm flex items-center  mb-4"},[s("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Question Type"))+":")]),t._v(" "),s("span",{staticClass:"ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.question_type_name))])]),t._v(" "),s("li",{staticClass:"text-gray-600 text-sm flex items-center  mb-4"},[s("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Difficulty Level"))+":")]),t._v(" "),s("span",{staticClass:"ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.difficulty))])]),t._v(" "),s("li",{staticClass:"text-gray-600 text-sm flex items-center  mb-4"},[s("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Marks/Points"))+":")]),t._v(" "),s("span",{staticClass:"ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.marks)+" XP")])]),t._v(" "),s("li",{staticClass:"text-gray-600 text-sm flex items-center text-sm mb-4"},[s("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Attachment"))+":")]),t._v(" "),s("span",{staticClass:"text-sm ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.__(t.question.attachment)))])])]),t._v(" "),s("div",{staticClass:"mt-4 flex justify-between items-center"},[s("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},4357:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={name:"ORDPreview",props:{question:Object},data:function(){return{collapse:!0}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"bg-white shadow px-4 py-5 border-b-4 border-gray-800 mb-6"},[s("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(" "),s("div",{staticClass:"q-data mb-4"},[s("div",{staticClass:"text-sm",domProps:{innerHTML:t._s(t.question.question)}})]),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:!t.collapse,expression:"!collapse"}],attrs:{id:t.question.code+"_options"}},t._l(t.question.options,(function(e,r){return s("ul",{staticClass:"q-option"},[s("li",{staticClass:"flex items-center mb-3 cursor-pointer p-3 rounded-sm border border-gray-200"},[s("div",{staticClass:"h-6 w-6 flex rounded-full items-center justify-center bg-gray-100 "},[t._v(t._s(r+1))]),t._v(" "),s("div",{staticClass:"text-sm font-normal ltr:ml-4 rtl:mr-4",domProps:{innerHTML:t._s(e.option)}})])])})),0),t._v(" "),s("a",{staticClass:"qt-link-success text-sm mb-4",domProps:{innerHTML:t._s(t.collapse?t.__("View Options"):t.__("Hide Options"))},on:{click:function(e){t.collapse=!t.collapse}}}),t._v(" "),s("ul",{staticClass:"mt-5"},[s("li",{staticClass:"text-gray-600 text-sm flex items-center  mb-4"},[s("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Question Type"))+":")]),t._v(" "),s("span",{staticClass:"text-sm ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.question_type_name))])]),t._v(" "),s("li",{staticClass:"text-gray-600 text-sm flex items-center  mb-4"},[s("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Difficulty Level"))+":")]),t._v(" "),s("span",{staticClass:"text-sm ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.difficulty))])]),t._v(" "),s("li",{staticClass:"text-gray-600 text-sm flex items-center  mb-4"},[s("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Marks/Points"))+":")]),t._v(" "),s("span",{staticClass:"text-sm ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.marks)+" XP")])]),t._v(" "),s("li",{staticClass:"text-gray-600 text-sm flex items-center  mb-4"},[s("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Attachment"))+":")]),t._v(" "),s("span",{staticClass:"text-sm ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.__(t.question.attachment)))])])]),t._v(" "),s("div",{staticClass:"mt-4 flex justify-between items-center"},[s("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},6077:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={name:"SAQPreview",props:{question:Object},data:function(){return{collapse:!0}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"bg-white shadow px-4 py-5 border-b-4 border-gray-800 mb-6"},[s("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(" "),s("div",{staticClass:"q-data mb-4"},[s("div",{staticClass:"text-sm",domProps:{innerHTML:t._s(t.question.question)}})]),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:!t.collapse,expression:"!collapse"}],attrs:{id:t.question.code+"_options"}},t._l(t.question.options,(function(e,r){return s("ul",{staticClass:"q-option"},[s("li",{staticClass:"flex items-center mb-3 cursor-pointer p-3 rounded-sm border border-gray-200"},[s("div",{staticClass:"text-sm h-6 w-6 flex rounded-full items-center justify-center bg-gray-100 "},[t._v(t._s(r+1))]),t._v(" "),s("div",{staticClass:"text-sm font-normal ltr:ml-4 rtl:mr-4",domProps:{innerHTML:t._s(e.option)}})])])})),0),t._v(" "),s("a",{staticClass:"qt-link-success text-sm mb-4",domProps:{innerHTML:t._s(t.collapse?t.__("View Answers"):t.__("Hide Answers"))},on:{click:function(e){t.collapse=!t.collapse}}}),t._v(" "),s("ul",{staticClass:"mt-5"},[s("li",{staticClass:"text-gray-600 text-sm flex items-center mb-4"},[s("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Question Type"))+":")]),t._v(" "),s("span",{staticClass:"ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.question_type_name))])]),t._v(" "),s("li",{staticClass:"text-gray-600 text-sm flex items-center mb-4"},[s("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Difficulty Level"))+":")]),t._v(" "),s("span",{staticClass:"ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.difficulty))])]),t._v(" "),s("li",{staticClass:"text-gray-600 text-sm flex items-center  mb-4"},[s("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Marks/Points"))+":")]),t._v(" "),s("span",{staticClass:" ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.marks)+" XP")])]),t._v(" "),s("li",{staticClass:"text-gray-600 text-sm flex items-center  mb-4"},[s("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Attachment"))+":")]),t._v(" "),s("span",{staticClass:" ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.__(t.question.attachment)))])])]),t._v(" "),s("div",{staticClass:"mt-4 flex justify-between items-center"},[s("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},8200:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={name:"TOFPreview",props:{question:Object},data:function(){return{collapse:!0}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"bg-white shadow px-4 py-5 border-b-4 border-gray-800 mb-6"},[s("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(" "),s("div",{staticClass:"q-data mb-4"},[s("div",{staticClass:"text-sm",domProps:{innerHTML:t._s(t.question.question)}})]),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:!t.collapse,expression:"!collapse"}],attrs:{id:t.question.code+"_options"}},t._l(t.question.options,(function(e,r){return s("ul",{staticClass:"q-option"},[s("li",{staticClass:"relative flex items-center mb-3 cursor-pointer p-3 rounded-sm border border-gray-200"},[s("div",{staticClass:"h-6 w-6 flex rounded-full items-center justify-center bg-gray-100 text-sm"},[t._v(t._s(r+1))]),t._v(" "),s("div",{staticClass:"font-normal text-sm ltr:ml-4 rtl:mr-4",domProps:{innerHTML:t._s(e.option)}}),t._v(" "),t.question.correct_answer===r+1?s("div",{staticClass:"absolute ltr:right-2 rtl:left-2 text-green-500"},[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:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"}})])]):t._e()])])})),0),t._v(" "),s("a",{staticClass:"qt-link-success text-sm mb-4",domProps:{innerHTML:t._s(t.collapse?t.__("View Options"):t.__("Hide Options"))},on:{click:function(e){t.collapse=!t.collapse}}}),t._v(" "),s("ul",{staticClass:"mt-5"},[s("li",{staticClass:"text-gray-600 text-sm flex items-center mb-4"},[s("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Question Type"))+":")]),t._v(" "),s("span",{staticClass:"ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.question_type_name))])]),t._v(" "),s("li",{staticClass:"text-gray-600 text-sm flex items-center mb-4"},[s("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Difficulty Level"))+":")]),t._v(" "),s("span",{staticClass:"ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.difficulty))])]),t._v(" "),s("li",{staticClass:"text-gray-600 text-sm flex items-center mb-4"},[s("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Marks/Points"))+":")]),t._v(" "),s("span",{staticClass:"ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.marks)+" XP")])]),t._v(" "),s("li",{staticClass:"text-gray-600 text-sm flex items-center mb-4"},[s("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Attachment"))+":")]),t._v(" "),s("span",{staticClass:"ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.__(t.question.attachment)))])])]),t._v(" "),s("div",{staticClass:"mt-4 flex justify-between items-center"},[s("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},7598:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={name:"FIBSolution",props:{parentQid:[Number,String],parentOptions:[String,Array,Number],parentAnswer:[String,Array,Number],correctAnswer:[String,Array,Number],isCorrect:Boolean,status:String},data:function(){return{question_id:this.parentQid,options:this.parentOptions,answer:this.parentAnswer}},methods:{labelClass:function(t){return"answered"===this.status?this.answer[t].toLowerCase()===this.correctAnswer[t].toLowerCase()?"q-input correct":"q-input wrong":"q-input"}},computed:{answerText:function(){var t=this.correctAnswer.map((function(t,e){return e+1+". "+t})).join(", ");return this.__("Correct answers for the blanks are")+" "+t}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"q-inputs"},[t._l(t.options,(function(e,r){return s("div",{key:"blank_"+r},[s("div",{staticClass:"mb-2",class:t.labelClass(r)},[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:"disabled"},domProps:{value:t.answer[e-1]},on:{input:function(s){s.target.composing||t.$set(t.answer,e-1,s.target.value)}}})])])})),t._v(" "),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)}})])],2)}),[],!1,null,null,null).exports},6487:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={name:"MMASolution",props:{parentQid:[Number,String],parentOptions:Array,parentAnswer:[String,Array,Number],correctAnswer:[String,Array,Number],isCorrect:Boolean,status:String},data:function(){return{question_id:this.parentQid,options:this.parentOptions,answer:this.parentAnswer}},methods:{labelClass:function(t){return"answered"===this.status&&-1!==this.answer.indexOf(t+1)?-1!==this.correctAnswer.indexOf(t+1)?"correct":"wrong":""}},computed:{answerText:function(){var t=this.correctAnswer.sort().join(", ");return this.__("Correct answers are Options")+" "+t}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"q-radio"},[s("div",{staticClass:"q-options"},t._l(t.options,(function(e,r){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_"+r,disabled:"disabled"},domProps:{value:r+1,checked:Array.isArray(t.answer)?t._i(t.answer,r+1)>-1:t.answer},on:{change:function(e){var s=t.answer,a=e.target,i=!!a.checked;if(Array.isArray(s)){var n=r+1,o=t._i(s,n);a.checked?o<0&&(t.answer=s.concat([n])):o>-1&&(t.answer=s.slice(0,o).concat(s.slice(o+1)))}else t.answer=i}}}),t._v(" "),s("label",{class:t.labelClass(r),attrs:{for:"q_"+t.question_id+"_option_"+r}},[s("span",{staticClass:"o-id squared"},[s("strong",[t._v(t._s(r+1))])]),t._v(" "),s("span",{staticClass:"o-text",domProps:{innerHTML:t._s(e)}})])])})),0),t._v(" "),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)}})])])}),[],!1,null,null,null).exports},3001:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={name:"MSASolution",props:{parentQid:[Number,String],parentOptions:Array,parentAnswer:[String,Array,Number],correctAnswer:[String,Array,Number],isCorrect:Boolean,status:String},data:function(){return{question_id:this.parentQid,options:this.parentOptions,answer:this.parentAnswer}},methods:{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""}},computed:{answerText:function(){return this.__("Correct answer is Option")+" "+this.correctAnswer}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"q-radio"},[s("div",{staticClass:"q-options"},t._l(t.options,(function(e,r){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_"+r,disabled:"disabled"},domProps:{value:r+1,checked:t._q(t.answer,r+1)},on:{change:function(e){t.answer=r+1}}}),t._v(" "),s("label",{class:t.labelClass(r),attrs:{for:t.question_id+"_option_"+r}},[s("span",{staticClass:"o-id"},[s("strong",[t._v(t._s(r+1))])]),t._v(" "),s("span",{staticClass:"o-text",domProps:{innerHTML:t._s(e)}})])])})),0),t._v(" "),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)}})])])}),[],!1,null,null,null).exports},8050:(t,e,s)=>{"use strict";s.d(e,{Z:()=>i});var r=s(9980);const a={name:"MTFSolution",components:{draggable:s.n(r)()},props:{parentQid:[Number,String],parentOptions:[Array,Object],parentAnswer:[Array,Object],correctAnswer:[String,Array,Number],isCorrect:Boolean,status:String},data:function(){return{question_id:this.parentQid,options:this.parentOptions.matches,answer:"answered"===this.status?this.parentAnswer:this.parentOptions.pairs}},methods:{labelClass:function(t){return"answered"===this.status?this.answer[t].id===this.correctAnswer[t]?"correct":"wrong":""}},computed:{answerText:function(){var t=this,e=[];this.correctAnswer.forEach((function(s,r){var a=t.answer.find((function(t){return t.id===s}));e.push(r+1+" - "+a.code)}));var s=e.join(", ");return this.__("Correct answers are")+" "+s}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const i=(0,s(1900).Z)(a,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"q-radio"},[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,r){return s("div",{key:e.id,staticClass:"q-option h-full"},[s("label",{staticClass:"h-full",attrs:{for:t.question_id+"_option_"+r}},[s("span",{staticClass:"o-id"},[s("strong",[t._v(t._s(r+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:!1},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,r){return s("div",{key:e.id,staticClass:"q-option h-full"},[s("label",{staticClass:"h-full",class:t.labelClass(r),attrs:{for:t.question_id+"_pair_"+r}},[s("span",{staticClass:"o-id match"},[s("strong",[t._v(t._s(r+1))]),t._v(" - "),s("strong",[t._v(t._s(e.code))])]),t._v(" "),s("span",{staticClass:"o-text",domProps:{innerHTML:t._s(e.value)}})])])})),0)],1)],1)]),t._v(" "),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)}})])])}),[],!1,null,null,null).exports},6587:(t,e,s)=>{"use strict";s.d(e,{Z:()=>i});var r=s(9980);const a={name:"ORDSolution",components:{draggable:s.n(r)()},props:{parentQid:[Number,String],parentOptions:Array,parentAnswer:[String,Array,Number],correctAnswer:[String,Array,Number],isCorrect:Boolean,status:String},data:function(){return{question_id:this.parentQid,options:this.parentOptions,answer:"answered"===this.status?this.parentAnswer:this.parentOptions}},methods:{labelClass:function(t){return"answered"===this.status?this.answer[t].id===this.correctAnswer[t]?"correct":"wrong":""}},computed:{answerText:function(){var t=this,e=[];this.correctAnswer.forEach((function(s,r){var a=t.answer.find((function(t){return t.id===s}));e.push(r+1+" - "+a.code)}));var s=e.join(", ");return this.__("Correct answers are")+" "+s}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const i=(0,s(1900).Z)(a,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"q-radio"},[s("div",{staticClass:"q-options"},[s("draggable",{attrs:{sort:!1,group:"options"},model:{value:t.answer,callback:function(e){t.answer=e},expression:"answer"}},t._l(t.answer,(function(e,r){return s("div",{key:e.id,staticClass:"q-option"},[s("label",{class:t.labelClass(r),attrs:{for:t.question_id+"_option_"+r}},[s("span",{staticClass:"o-id match"},[s("strong",[t._v(t._s(r+1))]),t._v(" - "),s("strong",[t._v(t._s(e.code))])]),t._v(" "),s("span",{staticClass:"o-text",domProps:{innerHTML:t._s(e.value)}})])])})),0)],1),t._v(" "),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)}})])])}),[],!1,null,null,null).exports},7189:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={name:"SAQSolution",props:{parentQid:[Number,String],parentOptions:[String,Array,Number],parentAnswer:[String,Array,Number],correctAnswer:[String,Array,Number],isCorrect:Boolean,status:String},data:function(){return{question_id:this.parentQid,options:this.parentOptions,answer:this.parentAnswer}},methods:{labelClass:function(){return"answered"===this.status?this.isCorrect?"q-input correct":"q-input wrong":"q-input"}},computed:{answerText:function(){var t=this.correctAnswer.sort().join(", ");return this.__("Acceptable answers are")+" "+t}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"q-inputs"},[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:"disabled"},domProps:{value:t.answer},on:{input:function(e){e.target.composing||(t.answer=e.target.value)}}})]),t._v(" "),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)}})])])}),[],!1,null,null,null).exports},9055:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={name:"QuizNavigation",components:{SplitButton:s(398).default},props:{currentRoute:"",quizId:""},data:function(){var t=this;return{items:[{label:"Edit Details",command:function(){t.$inertia.get(route("quizzes.edit",{quiz:t.quizId}))}},{label:"Questions",command:function(){t.$inertia.get(route("quizzes.questions",{quiz:t.quizId}))}},{label:"Settings",command:function(){t.$inertia.get(route("quizzes.settings",{quiz:t.quizId}))}},{label:"Schedules",command:function(){t.$inertia.get(route("quizzes.schedules.index",{quiz:t.quizId}))}}]}},computed:{activeLink:function(){return route(route().current(),{exam:this.examId})}}};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("SplitButton",{staticClass:"p-button-success",attrs:{label:"Manage",icon:"pi pi-cog",model:t.items}})}),[],!1,null,null,null).exports},1335:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={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 a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",["button"==t.as?s("button",{staticClass:"w-full text-left",class:t.classes},[t._t("default")],2):s("inertia-link",{class:t.classes,attrs:{href:t.href}},[t._t("default")],2)],1)}),[],!1,null,null,null).exports},3244:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={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 a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"flex gap-2 items-center"},[s("svg",{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},7414:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={props:{type:{type:String,default:"button"}}};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("button",{staticClass:"inline-flex items-center px-4 py-2 bg-white border border-gray-300 rounded-sm font-semibold text-xs text-gray-700 uppercase tracking-widest shadow-sm hover:text-gray-500 focus:outline-none focus:border-blue-300 focus:shadow-outline-blue active:text-gray-800 active:bg-gray-50 transition ease-in-out duration-150",attrs:{type:t.type}},[t._t("default")],2)}),[],!1,null,null,null).exports},1840:(t,e,s)=>{"use strict";s.d(e,{Z:()=>r});const r=(0,s(1900).Z)({},(function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"hidden sm:block"},[e("div",{staticClass:"py-8"},[e("div",{staticClass:"border-t border-gray-200"})])])}],!1,null,null,null).exports},223:(t,e,s)=>{"use strict";s.d(e,{Z:()=>r});const r=(0,s(1900).Z)({},(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"md:col-span-1"},[s("div",{staticClass:"px-4 sm:px-0"},[s("h3",{staticClass:"text-base font-medium text-gray-900"},[t._t("title")],2),t._v(" "),s("p",{staticClass:"mt-1 text-sm text-gray-600"},[t._t("description")],2)])])}),[],!1,null,null,null).exports},9591:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={name:"AdminQuestionShimmer",components:{Skeleton:s(247).default}};const a=(0,s(1900).Z)(r,(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},6916:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={name:"FormInputShimmer",components:{Skeleton:s(247).default}};const a=(0,s(1900).Z)(r,(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},4019:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={name:"FormSwitchShimmer",components:{Skeleton:s(247).default}};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"mb-6"},[s("div",{staticClass:"flex gap-4 items-center justify-between"},[s("div",{staticClass:"w-9/12"},[s("Skeleton",{staticClass:"mb-2",attrs:{width:"10rem"}}),t._v(" "),s("Skeleton",{attrs:{height:"2rem"}})],1),t._v(" "),s("div",{},[s("Skeleton",{attrs:{width:"5rem",height:"2rem"}})],1)])])}),[],!1,null,null,null).exports},789:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={name:"NavigationQuestionCardShimmer",components:{Skeleton:s(247).default}};const a=(0,s(1900).Z)(r,(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},9324:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={name:"PracticeQuestionShimmer",components:{Skeleton:s(247).default}};const a=(0,s(1900).Z)(r,(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},2422:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={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 a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"w-full"},[s("div",{staticClass:"sm:hidden relative w-full mx-auto rounded"},[s("div",{staticClass:"w-full flex items-start relative",on:{click:function(e){t.open=!t.open}}},[s("button",{staticClass:"w-full bg-green-600 text-white flex items-center justify-center shadow rounded text-xs focus:outline-none"},[s("span",{staticClass:"p-3"},[t._v("Go To")]),t._v(" "),s("span",{staticClass:"py-3 rounded-r px-2"},[s("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"}},[s("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z"}}),t._v(" "),s("polyline",{attrs:{points:"6 9 12 15 18 9"}})]),t._v(" "),s("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"}},[s("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z"}}),t._v(" "),s("polyline",{attrs:{points:"6 15 12 9 18 15"}})])])]),t._v(" "),s("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(e,r){return s("li",{key:e.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!==e.enable?s("inertia-link",{staticClass:"block",attrs:{href:e.url}},[t._v("\n                        "+t._s(e.title)+"\n                    ")]):s("span",[t._v(t._s(e.title))])],1)})),0)])]),t._v(" "),s("div",{staticClass:"xl:w-full xl:mx-0 h-12 hidden sm:block bg-white"},[s("ul",{staticClass:"flex justify-end gap-8"},t._l(t.steps,(function(e,r){return s("li",{key:e.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"===e.status?"border-primary":"border-gray-400"},[t.editFlag?s("inertia-link",{staticClass:"block",attrs:{href:e.url}},[s("div",{staticClass:"flex items-center px-8 mb-2"},[s("div",{staticClass:"w-6 h-6 group-hover:bg-primary rounded-full flex items-center justify-center",class:"active"===e.status?"bg-primary":"bg-gray-400"},[s("p",{staticClass:"focus:outline-none text-xs text-white"},[t._v(t._s(e.step))])]),t._v(" "),s("span",{staticClass:"ltr:ml-2 rtl:mr-2 group-hover:text-primary",class:"active"===e.status?"text-primary":"text-gray-600"},[t._v(t._s(e.title))])])]):s("div",{staticClass:"flex items-center px-8 mb-2",on:{click:t.showAlert}},[s("div",{staticClass:"w-6 h-6 group-hover:bg-green-600 rounded-full flex items-center justify-center",class:"active"===e.status?"bg-primary":"bg-gray-300"},[s("p",{staticClass:"focus:outline-none text-xs text-white"},[t._v(t._s(e.step))])]),t._v(" "),s("span",{staticClass:"ltr:ml-2 rtl:mr-2 group-hover:text-green-600",class:"active"===e.status?"text-primary":"text-gray-600"},[t._v(t._s(e.title))])]),t._v(" "),s("div",{staticClass:"w-full h-1 group-hover:bg-primary rounded-t-md",class:"active"===e.status?"bg-primary":"bg-gray-300"})],1)})),0)])])}),[],!1,null,null,null).exports},543:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={name:"ProgressNavigator",props:{steps:Array},data:function(){return{open:!1}}};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"w-full"},[s("div",{staticClass:"sm:hidden relative w-full mx-auto rounded"},[s("div",{staticClass:"w-full flex items-start relative",on:{click:function(e){t.open=!t.open}}},[s("button",{staticClass:"w-full bg-green-600 text-white flex items-center justify-center shadow rounded text-xs focus:outline-none"},[s("span",{staticClass:"p-3"},[t._v("Go To")]),t._v(" "),s("span",{staticClass:"py-3 rounded-r px-2"},[s("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"}},[s("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z"}}),t._v(" "),s("polyline",{attrs:{points:"6 9 12 15 18 9"}})]),t._v(" "),s("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"}},[s("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z"}}),t._v(" "),s("polyline",{attrs:{points:"6 15 12 9 18 15"}})])])]),t._v(" "),s("ul",{directives:[{name:"show",rawName:"v-show",value:t.open,expression:"open"}],staticClass:"z-30 bg-white shadow rounded py-1 absolute right-0 left-0 top-0 mt-12 dropdown-content"},t._l(t.steps,(function(e,r){return s("li",{key:e.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"},[s("inertia-link",{staticClass:"block",attrs:{href:e.url}},[t._v("\n                        "+t._s(e.title)+"\n                    ")])],1)})),0)])]),t._v(" "),s("div",{staticClass:"sm:flex items-center border-b border-gray-200 hidden"},t._l(t.steps,(function(e){return s("inertia-link",{key:e.key,attrs:{href:e.url}},[e.active?s("div",{staticClass:"flex items-center mr-16 group border-green-700 border-b pb-5"},[s("p",{staticClass:"text-sm leading-none text-green-700"},[t._v(t._s(e.title))])]):s("div",{staticClass:"flex items-center mr-16 group border-transparent hover:border-green-700 cursor-pointer border-b pb-5"},[s("p",{staticClass:"text-sm leading-none text-gray-600 group-hover:text-green-700"},[t._v(t._s(e.title))])])])})),1)])}),[],!1,null,null,null).exports},3265:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={props:["value"],methods:{focus:function(){this.$refs.input.focus()}}};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("textarea",{ref:"input",staticClass:"text-sm border-gray-300 focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 rounded-sm shadow-sm",attrs:{rows:"4"},domProps:{value:t.value},on:{input:function(e){return t.$emit("input",e.target.value)}}})}),[],!1,null,null,null).exports},3976:(t,e,s)=>{"use strict";s.d(e,{Z:()=>i});var r=s(8067);const a={components:{ckeditor:s.n(r)().component},props:["value"],data:function(){return{editorData:"",editorUrl:window.CKEditorURL,editorConfig:{extraPlugins:["mathjax"]}}},methods:{focus:function(){this.$refs.editor.focus()},reRender:function(){window.MathJax&&(console.log("rendering mathjax"),window.MathJax.Hub.Queue(["Typeset",window.MathJax.Hub],(function(){return console.log("done")})))}},watch:{editorData:function(){var t=this;console.log("data changed"),this.$nextTick().then((function(){t.reRender()}))}},mounted:function(){this.reRender()}};const i=(0,s(1900).Z)(a,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("ckeditor",{ref:"editor",attrs:{"editor-url":t.editorUrl,value:t.value,config:t.editorConfig}})}),[],!1,null,null,null).exports},1334:(t,e,s)=>{"use strict";s.d(e,{Z:()=>a});const r={computed:{errors:function(){return this.$page.props.errors},hasErrors:function(){return Object.keys(this.errors).length>0}}};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.hasErrors?s("div",[s("ul",{staticClass:"mt-3 list-disc list-inside text-red-600 text-sm"},t._l(t.errors,(function(e,r){return s("li",{key:r},[t._v(t._s(e))])})),0)]):t._e()}),[],!1,null,null,null).exports},9594:(t,e,s)=>{"use strict";s.d(e,{Z:()=>r});const r=(0,s(1900).Z)({},(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"w-full rounded shadow-lg p-5 bg-green-700"},[s("h1",{staticClass:"text-lg font-bold leading-7 pt-6 text-white"},[t._v(t._s(t.__("To Teach is To Learn Twice Over.")))]),t._v(" "),s("p",{staticClass:"pt-4 text-xs leading-5 ltr:pr-12 rtl:pl-12 text-white"},[t._v(t._s(t.__("admin_help_message")))]),t._v(" "),t._m(0)])}),[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"pt-7 flex items-center justify-end"},[s("a",{staticClass:"text-green-700 rounded-sm bg-gray-50 focus:ring-2 focus:ring-offset-2 focus:ring-orange-900 focus:outline-none focus:opacity-90 hover:opacity-90 p-2 text-xs font-medium leading-3",attrs:{href:"https://nearchip.gitbook.io/qwiktest",target:"_blank"}},[t._v("View Docs")])])}],!1,null,null,null).exports},8065:(t,e,s)=>{"use strict";s.d(e,{Z:()=>r});const r=(0,s(1900).Z)({},(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"bg-white rounded p-6 shadow"},[s("h4",{staticClass:"pb-4 text-sm font-semibold uppercase text-gray-800"},[t._v(t._s(t.__("Quick Links")))]),t._v(" "),s("div",{staticClass:"grid grid-cols-1 sm:grid-cols-2 flex justify-between items-center"},[s("ul",[s("li",{staticClass:"mb-2"},[s("inertia-link",{staticClass:"qt-link-success",attrs:{href:t.route("quizzes.index")}},[t._v(t._s(t.__("New Quiz Schedule")))])],1),t._v(" "),s("li",{staticClass:"mb-2"},[s("inertia-link",{staticClass:"qt-link-success",attrs:{href:t.route("quizzes.create")}},[t._v(t._s(t.__("Create New Quiz")))])],1),t._v(" "),s("li",{staticClass:"mb-2"},[s("inertia-link",{staticClass:"qt-link-success",attrs:{href:t.route("practice-sets.create")}},[t._v(t._s(t.__("Create Practice Set")))])],1),t._v(" "),s("li",{staticClass:"mb-2"},[s("inertia-link",{staticClass:"qt-link-success",attrs:{href:t.route("quizzes.index")}},[t._v(t._s(t.__("View Quizzes")))])],1),t._v(" "),s("li",{staticClass:"mb-2"},[s("inertia-link",{staticClass:"qt-link-success",attrs:{href:t.route("practice-sets.index")}},[t._v(t._s(t.__("View Practice Sets")))])],1)]),t._v(" "),s("ul",[s("li",{staticClass:"mb-2"},[s("inertia-link",{staticClass:"qt-link-success",attrs:{href:t.route("questions.index")}},[t._v(t._s(t.__("Create New Question")))])],1),t._v(" "),s("li",{staticClass:"mb-2"},[s("inertia-link",{staticClass:"qt-link-success",attrs:{href:t.route("initiate_import_questions")}},[t._v(t._s(t.__("Import Questions")))])],1),t._v(" "),s("li",{staticClass:"mb-2"},[s("inertia-link",{staticClass:"qt-link-success",attrs:{href:t.route("comprehensions.index")}},[t._v(t._s(t.__("Create New Comprehension")))])],1),t._v(" "),s("li",{staticClass:"mb-2"},[s("inertia-link",{staticClass:"qt-link-success",attrs:{href:t.route("skills.index")}},[t._v(t._s(t.__("Create New Skill")))])],1),t._v(" "),s("li",{staticClass:"mb-2"},[s("inertia-link",{staticClass:"qt-link-success",attrs:{href:t.route("topics.index")}},[t._v(t._s(t.__("Create New Topic")))])],1)])])])}),[],!1,null,null,null).exports},67:(t,e,s)=>{"use strict";s.d(e,{Z:()=>x});var r=s(42),a=s(6848),i=s(4409),n=s(5e3),o=s(2750),l=s(1335),c=s(1003),u=s(298),d=s(5366);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(e){return t.push(e.url)})),t}},created:function(){this.open=this.isOpen()}};var m=s(1900);const _=(0,m.Z)(p,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("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(e){t.open=!t.open}}},[s("div",{staticClass:"flex items-center"},[t._t("icon"),t._v(" "),s("span",[t._v(t._s(t.__(t.title)))])],2),t._v(" "),s("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"}},[s("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(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.open,expression:"open"}],staticClass:"mb-4"},t._l(t.items,(function(e){return s("div",{key:e.url,staticClass:"block"},[e.active?s("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(e.url)},attrs:{href:e.url}},[t._v("\n                "+t._s(t.__(e.label))+"\n            ")]):t._e()],1)})),0)])}),[],!1,null,null,null).exports;const f={name:"SidebarLink",props:{title:String,url:String},computed:{active:function(){return window.location.href===this.url}}};const v=(0,m.Z)(f,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("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(" "),s("span",[t._v(t._s(t.__(t.title)))])],2)}),[],!1,null,null,null).exports;var h=s(4943),g=s(8465);const b={components:{ArcApplicationMark:r.Z,ArcBanner:a.Z,ArcDropdown:i.Z,ArcDropdownLink:n.Z,ArcNavLink:o.Z,ArcResponsiveNavLink:l.Z,ConfirmDialog:c.default,Message:d.default,Toast:u.default,SidebarDropdown:_,SidebarLink:v,PerfectScrollbar:h.PerfectScrollbar,InputSwitch:g.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:"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:"Practice Sets",url:route("practice-sets.index"),active:"admin"===this.$page.props.user.role_id||"instructor"===this.$page.props.user.role_id}]},{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:"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:"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:"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:"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}]},{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}]}},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 x=(0,m.Z)(b,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("arc-banner"),t._v(" "),s("div",{staticClass:"min-h-screen"},[s("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(e){t.sideBar=!1}}},[s("inertia-link",{staticClass:"flex items-center px-4 py-5",attrs:{href:t.route("home")}},[s("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(" "),s("perfect-scrollbar",{ref:"scroll",staticClass:"h-full overflow-hidden",attrs:{options:t.scrollbarOptions}},[s("nav",{staticClass:"text-sm font-medium pb-16 text-gray-400",attrs:{"aria-label":"Main Navigation"}},[t._l(t.items,(function(e){return[e.active&&"dropdown"===e.item_type?s("sidebar-dropdown",{attrs:{title:e.label,items:e.items},scopedSlots:t._u([{key:"icon",fn:function(){return[s("span",{domProps:{innerHTML:t._s(e.icon)}})]},proxy:!0}],null,!0)}):t._e(),t._v(" "),!0===e.active&&"link"===e.item_type?s("sidebar-link",{attrs:{title:e.label,url:e.url},scopedSlots:t._u([{key:"icon",fn:function(){return[s("span",{domProps:{innerHTML:t._s(e.icon)}})]},proxy:!0}],null,!0)}):t._e()]}))],2)])],1),t._v(" "),s("div",{staticClass:"ltr:ml-0 rtl:mr-0 transition md:ltr:ml-60 md:rtl:mr-60"},[s("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"},[s("button",{staticClass:"block btn btn-light-secondary md:hidden",on:{click:function(e){t.sideBar=!0}}},[s("span",{staticClass:"sr-only"},[t._v(t._s(t.__("Menu")))]),t._v(" "),s("svg",{staticClass:"w-4 h-4",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},[s("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(" "),s("div",{staticClass:"hidden -ml-3 form-icon md:block w-96"},[s("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(" "),s("div",{staticClass:"flex items-center"},[s("a",{staticClass:"flex text-gray-500",attrs:{href:"#"}},[s("svg",{staticClass:"flex-shrink-0 w-5 h-5",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},[s("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(" "),s("div",{staticClass:"ltr:ml-4 rtl:mr-4 relative"},[s("arc-dropdown",{attrs:{align:"right",width:"48"},scopedSlots:t._u([{key:"trigger",fn:function(){return[t.$page.props.jetstream.managesProfilePhotos?s("button",{staticClass:"flex border-2 border-transparent rounded-full focus:outline-none focus:border-gray-300 transition duration-150 ease-in-out"},[s("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}})]):s("span",{staticClass:"inline-flex rounded-md"},[s("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                                            "),s("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"}},[s("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[s("div",{staticClass:"block px-4 py-2 text-xs text-gray-400"},[t._v("\n                                    "+t._s(t.__("Manage Account"))+"\n                                ")]),t._v(" "),s("arc-dropdown-link",{attrs:{href:t.route("profile.show")}},[t._v("\n                                    "+t._s(t.__("Profile"))+"\n                                ")]),t._v(" "),t.$page.props.jetstream.hasApiFeatures?s("arc-dropdown-link",{attrs:{href:t.route("api-tokens.index")}},[t._v("\n                                    "+t._s(t.__("Api Tokens"))+"\n                                ")]):t._e(),t._v(" "),s("div",{staticClass:"border-t border-gray-100"}),t._v(" "),s("form",{attrs:{method:"post",action:t.route("logout")}},[s("input",{attrs:{type:"hidden",name:"_token"},domProps:{value:t.$page.props.csrf_token}}),t._v(" "),s("arc-dropdown-link",{attrs:{as:"button"}},[t._v("\n                                        "+t._s(t.__("Logout"))+"\n                                    ")])],1)]},proxy:!0}])})],1)])]),t._v(" "),s("section",[s("div",{staticClass:"container mx-auto pt-4 px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"flex flex-col md:flex-row items-start md:items-center justify-between"},[s("div",[t._t("header")],2),t._v(" "),s("div",{staticClass:"mb-6 sm:mb-0 sm:mt-0"},[t._t("actions")],2)])])]),t._v(" "),s("main",[s("div",{staticClass:"container mx-auto px-4 sm:px-6 lg:px-8"},[s("Message",{directives:[{name:"show",rawName:"v-show",value:t.$page.props.successMessage,expression:"$page.props.successMessage"}],attrs:{severity:"success",closable:!1}},[t._v(t._s(t.$page.props.successMessage))]),t._v(" "),t.$page.props.errorMessage?s("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(" "),s("portal-target",{attrs:{name:"modal",multiple:""}}),t._v(" "),s("ConfirmDialog"),t._v(" "),s("Toast",{attrs:{position:t.$page.props.rtl?"bottom-left":"bottom-right"}})],1),t._v(" "),s("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(e){t.sideBar=!1}}})])],1)}),[],!1,null,null,null).exports},4356:(t,e,s)=>{"use strict";s.d(e,{Z:()=>m});var r=s(42),a=s(6848),i=s(4409),n=s(5e3),o=s(2750),l=s(1335),c=s(298),u=s(3244),d=s(5366);const p={components:{ArcApplicationMark:r.Z,ArcBanner:a.Z,ArcDropdown:i.Z,ArcDropdownLink:n.Z,ArcNavLink:o.Z,ArcResponsiveNavLink:l.Z,Toast:c.default,Message:d.default,RewardsBadge:u.Z},props:{canLogin:Boolean,canRegister:Boolean},data:function(){return{showingNavigationDropdown:!1}},methods:{switchToTeam:function(t){this.$inertia.put(route("current-team.update"),{team_id:t.id},{preserveState:!1})},toggleMenu:function(t){var e=document.getElementById("menu");t?e.classList.remove("hidden"):e.classList.add("hidden")},logout:function(){this.$inertia.post(route("logout"))}}};const m=(0,s(1900).Z)(p,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("arc-banner"),t._v(" "),s("div",{staticClass:"min-h-screen bg-blue-50"},[s("nav",{staticClass:"fixed w-full bg-primary shadow border-b border-gray-200 h-16 z-30"},[s("div",{staticClass:"max-w-7xl h-full flex flex-col justify-center container mx-auto px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"flex items-center justify-between"},[s("div",{staticClass:"hidden sm:flex gap-4 items-center"},[s("inertia-link",{attrs:{href:t.route("home")}},[s("img",{staticClass:"h-8 sm:h-12 p-2",attrs:{src:t.$page.props.assetUrl+t.$page.props.general.white_logo_path,alt:t.$page.props.general.app_name}})]),t._v(" "),s("inertia-link",{staticClass:"text-white border-b-2 border-transparent hover:border-secondary px-4 py-4",class:["user_dashboard"===t.route().current()?"border-secondary":"border-transparent"],attrs:{href:t.route("user_dashboard")}},[t._v("\n                            "+t._s(t.__("Dashboard"))+"\n                        ")]),t._v(" "),s("inertia-link",{staticClass:"text-white border-b-2 border-transparent hover:border-secondary px-4 py-4",class:["practice_dashboard"===t.route().current()?"border-secondary":"border-transparent"],attrs:{href:t.route("practice_dashboard")}},[t._v("\n                            "+t._s(t.__("Learn & Practice"))+"\n                        ")]),t._v(" "),s("inertia-link",{staticClass:"text-white border-b-2 border-transparent hover:border-secondary px-4 py-4",class:["quiz_dashboard"===t.route().current()?"border-secondary":"border-transparent"],attrs:{href:t.route("quiz_dashboard")}},[t._v("\n                            "+t._s(t.__("Quizzes"))+"\n                        ")]),t._v(" "),s("inertia-link",{staticClass:"text-white border-b-2 border-transparent hover:border-secondary px-4 py-4",class:["my_progress"===t.route().current()?"border-secondary":"border-transparent"],attrs:{href:t.route("my_progress")}},[t._v("\n                            "+t._s(t.__("My Progress"))+"\n                        ")])],1),t._v(" "),s("inertia-link",{staticClass:"sm:hidden",attrs:{href:t.route("home")}},[s("img",{staticClass:"block h-8 w-auto ltr:mr-3 rtl:ml-3",attrs:{src:t.$page.props.assetUrl+t.$page.props.general.white_logo_path,alt:t.$page.props.general.app_name}})]),t._v(" "),t.$page.props.canLogin?s("div",[s("div",{staticClass:"sm:block md:hidden lg:hidden text-white hover:opacity-90 focus:text-gray-700 focus:outline-none",on:{click:function(e){return t.toggleMenu(!0)}}},[s("svg",{staticClass:"h-8 w-8",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[s("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z"}}),t._v(" "),s("line",{attrs:{x1:"4",y1:"6",x2:"20",y2:"6"}}),t._v(" "),s("line",{attrs:{x1:"4",y1:"12",x2:"20",y2:"12"}}),t._v(" "),s("line",{attrs:{x1:"4",y1:"18",x2:"20",y2:"18"}})])]),t._v(" "),s("div",{staticClass:"md:block lg:block hidden",attrs:{id:"menu"}},[s("div",{staticClass:"block md:hidden lg:hidden text-secondary hover:opacity-90 focus:opcaity-90 fixed focus:outline-none z-30 top-0 pt-4",on:{click:function(e){return t.toggleMenu(!1)}}},[s("svg",{staticClass:"h-8 w-8",attrs:{"aria-haspopup":"true","aria-label":"Main Menu",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[s("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z"}}),t._v(" "),s("line",{attrs:{x1:"18",y1:"6",x2:"6",y2:"18"}}),t._v(" "),s("line",{attrs:{x1:"6",y1:"6",x2:"18",y2:"18"}})])]),t._v(" "),s("ul",{staticClass:"flex gap-4 md:gap-0 md:flex bg-primary text-lg md:text-base lg:text-base lg:flex flex-col md:flex-row lg:flex-row justify-center items-center fixed md:relative lg:relative top-0 bottom-0 left-0 right-0 z-20"},[s("li",{staticClass:"md:mr-8 lg:mr-10 flex items-center"},[s("inertia-link",{staticClass:"sm:hidden text-white font-semibold border-b-2 hover:border-secondary px-4 py-4",class:["user_dashboard"===t.route().current()?"border-secondary":"border-transparent"],attrs:{href:t.route("user_dashboard")}},[t._v("\n                                        "+t._s(t.__("Dashboard"))+"\n                                    ")])],1),t._v(" "),s("li",{staticClass:"md:mr-8 lg:mr-10 flex items-center"},[s("inertia-link",{staticClass:"sm:hidden text-white font-semibold border-b-2 border-transparent hover:border-secondary px-4 py-4",class:["practice_dashboard"===t.route().current()?"border-secondary":"border-transparent"],attrs:{href:t.route("practice_dashboard")}},[t._v("\n                                        "+t._s(t.__("Learn & Practice"))+"\n                                    ")])],1),t._v(" "),s("li",{staticClass:"md:mr-8 lg:mr-10 flex items-center"},[s("inertia-link",{staticClass:"sm:hidden text-white font-semibold border-b-2 border-transparent hover:border-secondary px-4 py-4",class:["quiz_dashboard"===t.route().current()?"border-secondary":"border-transparent"],attrs:{href:t.route("quiz_dashboard")}},[t._v("\n                                        "+t._s(t.__("Quizzes"))+"\n                                    ")])],1),t._v(" "),s("li",{staticClass:"md:mr-8 lg:mr-10 flex items-center"},[s("inertia-link",{staticClass:"sm:hidden text-white font-semibold border-b-2 border-transparent hover:border-secondary px-4 py-4",class:["my_progress"===t.route().current()?"border-secondary":"border-transparent"],attrs:{href:t.route("my_progress")}},[t._v("\n                                        "+t._s(t.__("My Progress"))+"\n                                    ")])],1),t._v(" "),s("li",{staticClass:"md:mr-8 lg:mr-10 flex items-center"},[s("inertia-link",{staticClass:"sm:hidden text-white font-semibold border-b-2 border-transparent hover:border-secondary px-4 py-4",class:["profile.show"===t.route().current()?"border-secondary":"border-transparent"],attrs:{href:t.route("profile.show")}},[t._v("\n                                        "+t._s(t.__("Profile"))+"\n                                    ")])],1),t._v(" "),s("li",{staticClass:"md:mr-8 lg:mr-10 flex items-center"},[s("form",{attrs:{method:"post",action:t.route("logout")}},[s("input",{attrs:{type:"hidden",name:"_token"},domProps:{value:t.$page.props.csrf_token}}),t._v(" "),s("button",{staticClass:"sm:hidden text-white font-semibold border-b-2 border-transparent hover:border-secondary px-4 py-4"},[t._v("\n                                            "+t._s(t.__("Logout"))+"\n                                        ")])])]),t._v(" "),s("li",[s("rewards-badge",{attrs:{"text-color":"text-white",points:t.$page.props.user.wallet_balance}})],1),t._v(" "),t.$page.props.user?s("li",{staticClass:"md:mr-8 lg:mr-10 flex items-center"},[s("div",[s("div",{staticClass:"hidden sm:flex sm:items-center sm:ml-6"},[s("div",{staticClass:"ml-3 relative"},[s("arc-dropdown",{attrs:{align:"right",width:"48"},scopedSlots:t._u([{key:"trigger",fn:function(){return[t.$page.props.jetstream.managesProfilePhotos?s("button",{staticClass:"flex border-2 border-transparent rounded-full focus:outline-none focus:border-gray-300 transition duration-150 ease-in-out"},[s("img",{staticClass:"h-8 w-8 rounded-full object-cover",attrs:{src:t.$page.props.user.profile_photo_url,alt:t.$page.props.user.first_name}})]):s("span",{staticClass:"inline-flex rounded-md"},[s("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.first_name)+"\n\n                                                                "),s("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"}},[s("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[s("div",{staticClass:"block px-4 py-2 text-xs text-gray-400"},[t._v("\n                                                            "+t._s(t.$page.props.user.first_name)+" "+t._s(t.$page.props.user.last_name)+"\n                                                        ")]),t._v(" "),s("arc-dropdown-link",{attrs:{href:t.route("profile.show")}},[t._v("\n                                                            "+t._s(t.__("Profile"))+"\n                                                        ")]),t._v(" "),t.$page.props.jetstream.hasApiFeatures?s("arc-dropdown-link",{attrs:{href:t.route("api-tokens.index")}},[t._v("\n                                                            "+t._s(t.__("API Tokens"))+"\n                                                        ")]):t._e(),t._v(" "),s("div",{staticClass:"border-t border-gray-100"}),t._v(" "),s("form",{attrs:{method:"post",action:t.route("logout")}},[s("input",{attrs:{type:"hidden",name:"_token"},domProps:{value:t.$page.props.csrf_token}}),t._v(" "),s("arc-dropdown-link",{attrs:{as:"button"}},[t._v("\n                                                                "+t._s(t.__("Logout"))+"\n                                                            ")])],1)]},proxy:!0}],null,!1,3589585265)})],1)])])]):s("li",{staticClass:"md:mr-8 lg:mr-10 flex items-center"},[s("inertia-link",{staticClass:"text-white font-semibold border-b-2 border-transparent hover:border-secondary px-4 py-4",attrs:{href:t.route("login")}},[t._v("\n                                        "+t._s(t.__("Login"))+"\n                                    ")])],1)])])]):t._e()],1)])]),t._v(" "),s("header",{staticClass:"bg-white shadow pt-16"},[s("div",{staticClass:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"flex flex-col md:flex-row items-start md:items-center justify-between"},[s("div",[t._t("header")],2),t._v(" "),t.$slots.actions?s("div",{staticClass:"mb-6 sm:mb-0 sm:mt-0"},[t._t("actions")],2):t._e()])])]),t._v(" "),s("main",[s("div",{staticClass:"container max-w-7xl mx-auto sm:px-6 lg:px-8"},[s("Message",{directives:[{name:"show",rawName:"v-show",value:t.$page.props.successMessage,expression:"$page.props.successMessage"}],attrs:{severity:"success",closable:!1}},[t._v(t._s(t.$page.props.successMessage)+"\n                ")]),t._v(" "),t.$page.props.errorMessage?s("Message",{attrs:{severity:"error",closable:!1}},[t._v(t._s(t.$page.props.errorMessage)+"\n                ")]):t._e()],1),t._v(" "),t._t("default")],2),t._v(" "),s("Toast",{attrs:{position:"top-right"}}),t._v(" "),s("portal-target",{attrs:{name:"modal",multiple:""}})],1)],1)}),[],!1,null,null,null).exports},7328:(t,e,s)=>{"use strict";s.d(e,{Z:()=>v});var r=s(42),a=s(6848),i=s(4409),n=s(5e3),o=s(2750),l=s(1335),c=s(298);const u={name:"StoreFooter",props:{footerSettings:Object}};var d=s(1900);const p=(0,d.Z)(u,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("footer",{staticClass:"bg-primary"},[s("div",{staticClass:"max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:py-16 lg:px-8 focus:outline-none mx-auto container flex flex-col items-start sm:items-center justify-center",attrs:{tabindex:"0","aria-label":"footer"}},[s("img",{staticClass:"h-10",attrs:{src:t.$page.props.assetUrl+t.$page.props.general.white_logo_path,alt:t.$page.props.general.app_name}}),t._v(" "),s("div",{staticClass:"text-black flex flex-col md:items-center f-f-l pt-3"},[s("h1",{staticClass:"focus:outline-none text-lg text-secondary",attrs:{tabindex:"0"}},[t._v(t._s(t.$page.props.general.tag_line))]),t._v(" "),t.footerSettings.enable_social_links?s("div",{staticClass:"flex items-center space-x-6 rtl:space-x-reverse mt-5 md:mt-10 text-base text-color f-f-l"},[t._l(t.footerSettings.social_links,(function(e,r){return[e[1]?s("a",{staticClass:"text-white hover:opacity-90",attrs:{href:e[2],target:"_blank"}},[s("span",{staticClass:"sr-only"},[t._v(t._s(e[0]))]),t._v(" "),"facebook"===r?s("svg",{staticClass:"h-6 w-6",attrs:{fill:"currentColor",role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[s("title",[t._v("Facebook")]),s("path",{attrs:{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"}})]):t._e(),t._v(" "),"twitter"===r?s("svg",{staticClass:"h-6 w-6",attrs:{fill:"currentColor",role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[s("title",[t._v("Twitter")]),s("path",{attrs:{d:"M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"}})]):t._e(),t._v(" "),"instagram"===r?s("svg",{staticClass:"h-6 w-6",attrs:{fill:"currentColor",role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[s("title",[t._v("Instagram")]),s("path",{attrs:{d:"M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913.306.788.717 1.459 1.384 2.126.667.666 1.336 1.079 2.126 1.384.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558.788-.306 1.459-.718 2.126-1.384.666-.667 1.079-1.335 1.384-2.126.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913-.306-.789-.718-1.459-1.384-2.126C21.319 1.347 20.651.935 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85s-.015 3.585-.074 4.85c-.061 1.17-.256 1.805-.421 2.227-.224.562-.479.96-.899 1.382-.419.419-.824.679-1.38.896-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421-.569-.224-.96-.479-1.379-.899-.421-.419-.69-.824-.9-1.38-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06l.045.03zm0 3.678c-3.405 0-6.162 2.76-6.162 6.162 0 3.405 2.76 6.162 6.162 6.162 3.405 0 6.162-2.76 6.162-6.162 0-3.405-2.76-6.162-6.162-6.162zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405c0 .795-.646 1.44-1.44 1.44-.795 0-1.44-.646-1.44-1.44 0-.794.646-1.439 1.44-1.439.793-.001 1.44.645 1.44 1.439z"}})]):t._e(),t._v(" "),"youtube"===r?s("svg",{staticClass:"h-6 w-6",attrs:{fill:"currentColor",role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[s("title",[t._v("YouTube")]),s("path",{attrs:{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"}})]):t._e(),t._v(" "),"linkedin"===r?s("svg",{staticClass:"h-6 w-6",attrs:{fill:"currentColor",role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[s("title",[t._v("LinkedIn")]),s("path",{attrs:{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"}})]):t._e(),t._v(" "),"github"===r?s("svg",{staticClass:"h-6 w-6",attrs:{fill:"currentColor",role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[s("title",[t._v("GitHub")]),s("path",{attrs:{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"}})]):t._e()]):t._e()]}))],2):t._e(),t._v(" "),t.footerSettings.enable_links?s("div",{staticClass:"my-6 text-base text-color f-f-l"},[s("ul",{staticClass:"md:flex md:gap-6 items-center"},[t._l(t.footerSettings.footer_links,(function(e){return[e[2]?s("li",{staticClass:"cursor-pointer pt-4 lg:py-0"},[s("a",{staticClass:"focus:outline-none focus:underline hover:underline text-base text-white opacity-80",attrs:{href:e[1]}},[t._v(t._s(e[0]))])]):t._e()]}))],2)]):t._e()]),t._v(" "),s("div",{staticClass:"w-full mt-12 border-t border-white border-opacity-50 pt-8"},[s("p",{staticClass:"text-base text-white opacity-80 xl:text-center"},[s("span",[t._v("©"+t._s((new Date).getFullYear())+" "+t._s(t.$page.props.general.app_name)+". ")]),t._v(" "),s("span",[t._v(t._s(t.footerSettings.copyright_text))])])])])])}),[],!1,null,null,null).exports;const m={name:"StoreNavBar",data:function(){return{open:!1}}};const _=(0,d.Z)(m,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"bg-white dark:bg-gray-900 overflow-auto"},[s("div",{staticClass:"bg-white"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.open,expression:"open"}],staticClass:"fixed inset-0 flex z-40 lg:hidden",attrs:{"aria-modal":"true"}},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.open,expression:"open"}],staticClass:"fixed inset-0 bg-black bg-opacity-25",attrs:{"aria-hidden":"true"},on:{click:function(e){t.open=!1}}}),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.open,expression:"open"}],staticClass:"relative max-w-xs w-full bg-white shadow-xl pb-12 flex flex-col overflow-y-auto"},[s("div",{staticClass:"px-4 pt-5 pb-2 flex"},[s("button",{staticClass:"-m-2 p-2 rounded-md inline-flex items-center justify-center text-gray-400",attrs:{type:"button"},on:{click:function(e){t.open=!1}}},[s("span",{staticClass:"sr-only"},[t._v(t._s(t.__("Close menu")))]),t._v(" "),s("svg",{staticClass:"h-6 w-6",attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"}},[s("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"}})])])]),t._v(" "),s("div",{staticClass:"border-t border-gray-200 py-6 px-4 space-y-6"},[s("div",{staticClass:"flow-root"},[s("a",{staticClass:"-m-2 p-2 block font-medium text-gray-900",attrs:{href:"#"}},[t._v(t._s(t.__("Learn & Practice")))])]),t._v(" "),s("div",{staticClass:"flow-root"},[s("a",{staticClass:"-m-2 p-2 block font-medium text-gray-900",attrs:{href:"#"}},[t._v(t._s(t.__("Quizzes")))])])]),t._v(" "),s("div",{staticClass:"border-t border-gray-200 py-6 px-4 space-y-6"},[s("div",{staticClass:"flow-root"},[s("a",{staticClass:"-m-2 p-2 block font-medium text-gray-900",attrs:{href:t.route("login")}},[t._v(t._s(t.__("Login")))])])])])]),t._v(" "),s("header",{staticClass:"relative bg-white dark:bg-gray-900 dark:border-gray-800 border-b border-gray-100 shadow-lg"},[s("nav",{staticClass:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",attrs:{"aria-label":"Top"}},[s("div",{},[s("div",{staticClass:"h-16 sm:h-20 flex items-center"},[s("button",{staticClass:"bg-white p-2 rounded-md text-gray-400 lg:hidden",attrs:{type:"button"},on:{click:function(e){t.open=!0}}},[s("span",{staticClass:"sr-only"},[t._v(t._s(t.__("Open menu")))]),t._v(" "),s("svg",{staticClass:"h-6 w-6",attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"}},[s("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h16"}})])]),t._v(" "),s("div",{staticClass:"ltr:ml-4 rtl:mr-4 flex ltr:lg:ml-0 rtl:lg:ml-0"},[s("a",{attrs:{href:t.route("welcome")}},[s("span",{staticClass:"sr-only"},[t._v("Qw")]),t._v(" "),s("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(" "),s("div",{staticClass:"hidden lg:ltr:ml-8 lg:rtl:mr-8 lg:block lg:self-stretch"},[s("div",{staticClass:"h-full flex rtl:space-x-reverse space-x-8"},[s("a",{staticClass:"flex items-center text-sm font-medium text-gray-700 hover:text-gray-800",attrs:{href:"#"}},[t._v(t._s(t.__("Learn & Practice")))]),t._v(" "),s("a",{staticClass:"flex items-center text-sm font-medium text-gray-700 hover:text-gray-800",attrs:{href:"#"}},[t._v(t._s(t.__("Quizzes")))])])]),t._v(" "),s("div",{staticClass:"ltr:ml-auto rtl:mr-auto flex items-center"},[s("div",{staticClass:"flex lg:ltr:mr-6 lg:rtl:ml-6"},[s("a",{staticClass:"p-2 text-gray-400 hover:text-primary",attrs:{href:"#"}},[s("span",{staticClass:"sr-only"},[t._v(t._s(t.__("Search")))]),t._v(" "),s("svg",{staticClass:"w-6 h-6",attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"}},[s("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"}})])])]),t._v(" "),s("div",{staticClass:"hidden ltr:lg:ml-8 rtl:lg:mr-8 lg:flex lg:flex-1 lg:items-center lg:justify-end lg:space-x-6"},[s("a",{staticClass:"flex items-center justify-center px-8 py-2 border border-transparent rounded-sm shadow-sm text-sm font-medium text-white bg-primary hover:opacity-90",attrs:{href:t.route("login")}},[t._v("\n                                    "+t._s(t.__("Login"))+"\n                                ")])])])])])])])])])}),[],!1,null,null,null).exports,f={components:{ArcApplicationMark:r.Z,ArcBanner:a.Z,ArcDropdown:i.Z,ArcDropdownLink:n.Z,ArcNavLink:o.Z,ArcResponsiveNavLink:l.Z,Toast:c.default,StoreFooter:p,StoreNavBar:_},props:{canLogin:Boolean,canRegister:Boolean},methods:{logout:function(){this.$inertia.post(route("logout"))}}};const v=(0,d.Z)(f,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"bg-white"},[s("store-nav-bar"),t._v(" "),s("div",{staticClass:"dark:bg-gray-900 flex items-center justify-center py-12 sm:py-28 px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"max-w-4xl w-full space-y-8"},[s("div",{staticClass:"bg-white border-t border-gray-100 shadow-md overflow-hidden sm:rounded-sm"},[s("div",{staticClass:"flex flex-col sm:flex-col md:flex-row lg:flex-row"},[s("div",{staticClass:"hidden border-r border-gray-100 mt-2 md:mt-0 h-24 sm:h-64 md:h-auto md:w-1/2 relative lg:mt-0 pr-6 sm:pr-20 pt-10 sm:flex justify-end sm:block"},[s("div",{staticClass:"w-5/6 h-full"},[s("div",{staticClass:"z-20 absolute top-5 ltr:left-5 rtl:right-5 sm:ltr:left-10 sm:rtl:right-10 sm:top-10"},[s("h4",{staticClass:"mt-4 text-xl sm:text-2xl font-bold text-primary tracking-ringtighter",domProps:{innerHTML:t._s(t.$page.props.heroSettings.title)}})]),t._v(" "),s("img",{staticClass:"inset-0 absolute object-contain object-bottom z-10 w-full h-full",attrs:{src:t.$page.props.assetUrl+t.$page.props.heroSettings.image_path,alt:t.$page.props.general.app_name,role:"img"}})])]),t._v(" "),s("div",{staticClass:"flex flex-col lg:w-6/12 md:w-6/12 px-4 sm:p-6 justify-center"},[t._t("default")],2)])])])]),t._v(" "),t.$page.props.homePageSettings.enable_footer?s("store-footer",{attrs:{"footer-settings":t.$page.props.footerSettings}}):t._e()],1)}),[],!1,null,null,null).exports},6170:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>b});var r=s(4820),a=s(8e3),i=s(9881);const n={components:{Modal:s(9571).Z},props:{show:{default:!1},maxWidth:{default:"2xl"},closeable:{default:!0}},methods:{close:function(){this.$emit("close")}}};var o=s(1900);const l=(0,o.Z)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("modal",{attrs:{show:t.show,"max-width":t.maxWidth,closeable:t.closeable},on:{close:t.close}},[s("div",{staticClass:"bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4"},[s("div",{staticClass:"sm:flex sm:items-start"},[s("div",{staticClass:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 sm:mx-0 sm:h-10 sm:w-10"},[s("svg",{staticClass:"h-6 w-6 text-red-600",attrs:{stroke:"currentColor",fill:"none",viewBox:"0 0 24 24"}},[s("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._v(" "),s("div",{staticClass:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},[s("h3",{staticClass:"text-lg"},[t._t("title")],2),t._v(" "),s("div",{staticClass:"mt-2"},[t._t("content")],2)])])]),t._v(" "),s("div",{staticClass:"px-6 py-4 bg-gray-100 text-right"},[t._t("footer")],2)])}),[],!1,null,null,null).exports;var c=s(9584),u=s(4354),d=s(341),p=s(6173),m=s(8075),_=s(3473),f=s(9684),v=s(7414),h=s(1840);const g={components:{ArcActionMessage:r.Z,ArcActionSection:a.Z,ArcButton:i.Z,ArcConfirmationModal:l,ArcDangerButton:c.Z,ArcDialogModal:u.Z,ArcFormSection:d.Z,ArcInput:p.Z,ArcCheckbox:m.Z,ArcInputError:_.Z,ArcLabel:f.Z,ArcSecondaryButton:v.Z,ArcSectionBorder:h.Z},props:["tokens","availablePermissions","defaultPermissions"],data:function(){return{createApiTokenForm:this.$inertia.form({name:"",permissions:this.defaultPermissions}),updateApiTokenForm:this.$inertia.form({permissions:[]}),deleteApiTokenForm:this.$inertia.form(),displayingToken:!1,managingPermissionsFor:null,apiTokenBeingDeleted:null}},methods:{createApiToken:function(){var t=this;this.createApiTokenForm.post(route("api-tokens.store"),{preserveScroll:!0,onSuccess:function(){t.displayingToken=!0,t.createApiTokenForm.reset()}})},manageApiTokenPermissions:function(t){this.updateApiTokenForm.permissions=t.abilities,this.managingPermissionsFor=t},updateApiToken:function(){var t=this;this.updateApiTokenForm.put(route("api-tokens.update",this.managingPermissionsFor),{preserveScroll:!0,preserveState:!0,onSuccess:function(){return t.managingPermissionsFor=null}})},confirmApiTokenDeletion:function(t){this.apiTokenBeingDeleted=t},deleteApiToken:function(){var t=this;this.deleteApiTokenForm.delete(route("api-tokens.destroy",this.apiTokenBeingDeleted),{preserveScroll:!0,preserveState:!0,onSuccess:function(){return t.apiTokenBeingDeleted=null}})}}};const b=(0,o.Z)(g,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("arc-form-section",{on:{submitted:t.createApiToken},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n            Create API Token\n        ")]},proxy:!0},{key:"description",fn:function(){return[t._v("\n            API tokens allow third-party services to authenticate with our application on your behalf.\n        ")]},proxy:!0},{key:"form",fn:function(){return[s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"name",value:"Name"}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"name",type:"text",autofocus:""},model:{value:t.createApiTokenForm.name,callback:function(e){t.$set(t.createApiTokenForm,"name",e)},expression:"createApiTokenForm.name"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.createApiTokenForm.errors.name}})],1),t._v(" "),t.availablePermissions.length>0?s("div",{staticClass:"col-span-6"},[s("arc-label",{attrs:{for:"permissions",value:"Permissions"}}),t._v(" "),s("div",{staticClass:"mt-2 grid grid-cols-1 md:grid-cols-2 gap-4"},t._l(t.availablePermissions,(function(e){return s("div",{key:e},[s("label",{staticClass:"flex items-center"},[s("arc-checkbox",{attrs:{value:e},model:{value:t.createApiTokenForm.permissions,callback:function(e){t.$set(t.createApiTokenForm,"permissions",e)},expression:"createApiTokenForm.permissions"}}),t._v(" "),s("span",{staticClass:"ml-2  text-gray-600"},[t._v(t._s(e))])],1)])})),0)],1):t._e()]},proxy:!0},{key:"actions",fn:function(){return[s("arc-action-message",{staticClass:"mr-3",attrs:{on:t.createApiTokenForm.recentlySuccessful}},[t._v("\n                Created.\n            ")]),t._v(" "),s("arc-button",{class:{"opacity-25":t.createApiTokenForm.processing},attrs:{disabled:t.createApiTokenForm.processing}},[t._v("\n                Create\n            ")])]},proxy:!0}])}),t._v(" "),t.tokens.length>0?s("div",[s("arc-section-border"),t._v(" "),s("div",{staticClass:"mt-10 sm:mt-0"},[s("arc-action-section",{scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n                    Manage API Tokens\n                ")]},proxy:!0},{key:"description",fn:function(){return[t._v("\n                    You may delete any of your existing tokens if they are no longer needed.\n                ")]},proxy:!0},{key:"content",fn:function(){return[s("div",{staticClass:"space-y-6"},t._l(t.tokens,(function(e){return s("div",{key:e.id,staticClass:"flex items-center justify-between"},[s("div",[t._v("\n                                "+t._s(e.name)+"\n                            ")]),t._v(" "),s("div",{staticClass:"flex items-center"},[e.last_used_ago?s("div",{staticClass:" text-gray-400"},[t._v("\n                                    Last used "+t._s(e.last_used_ago)+"\n                                ")]):t._e(),t._v(" "),t.availablePermissions.length>0?s("button",{staticClass:"cursor-pointer ml-6  text-gray-400 underline",on:{click:function(s){return t.manageApiTokenPermissions(e)}}},[t._v("\n                                    Permissions\n                                ")]):t._e(),t._v(" "),s("button",{staticClass:"cursor-pointer ml-6  text-red-500",on:{click:function(s){return t.confirmApiTokenDeletion(e)}}},[t._v("\n                                    Delete\n                                ")])])])})),0)]},proxy:!0}],null,!1,3266702262)})],1)],1):t._e(),t._v(" "),s("arc-dialog-modal",{attrs:{show:t.displayingToken},on:{close:function(e){t.displayingToken=!1}},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n            API Token\n        ")]},proxy:!0},{key:"content",fn:function(){return[s("div",[t._v("\n                Please copy your new API token. For your security, it won't be shown again.\n            ")]),t._v(" "),t.$page.props.jetstream.flash.token?s("div",{staticClass:"mt-4 bg-gray-100 px-4 py-2 rounded font-mono  text-gray-500"},[t._v("\n                "+t._s(t.$page.props.jetstream.flash.token)+"\n            ")]):t._e()]},proxy:!0},{key:"footer",fn:function(){return[s("arc-secondary-button",{nativeOn:{click:function(e){t.displayingToken=!1}}},[t._v("\n                Close\n            ")])]},proxy:!0}])}),t._v(" "),s("arc-dialog-modal",{attrs:{show:t.managingPermissionsFor},on:{close:function(e){t.managingPermissionsFor=null}},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n            API Token Permissions\n        ")]},proxy:!0},{key:"content",fn:function(){return[s("div",{staticClass:"grid grid-cols-1 md:grid-cols-2 gap-4"},t._l(t.availablePermissions,(function(e){return s("div",{key:e},[s("label",{staticClass:"flex items-center"},[s("arc-checkbox",{attrs:{value:e},model:{value:t.updateApiTokenForm.permissions,callback:function(e){t.$set(t.updateApiTokenForm,"permissions",e)},expression:"updateApiTokenForm.permissions"}}),t._v(" "),s("span",{staticClass:"ml-2  text-gray-600"},[t._v(t._s(e))])],1)])})),0)]},proxy:!0},{key:"footer",fn:function(){return[s("arc-secondary-button",{nativeOn:{click:function(e){t.managingPermissionsFor=null}}},[t._v("\n                Nevermind\n            ")]),t._v(" "),s("arc-button",{staticClass:"ml-2",class:{"opacity-25":t.updateApiTokenForm.processing},attrs:{disabled:t.updateApiTokenForm.processing},nativeOn:{click:function(e){return t.updateApiToken(e)}}},[t._v("\n                Save\n            ")])]},proxy:!0}])}),t._v(" "),s("arc-confirmation-modal",{attrs:{show:t.apiTokenBeingDeleted},on:{close:function(e){t.apiTokenBeingDeleted=null}},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n            Delete API Token\n        ")]},proxy:!0},{key:"content",fn:function(){return[t._v("\n            Are you sure you would like to delete this API token?\n        ")]},proxy:!0},{key:"footer",fn:function(){return[s("arc-secondary-button",{nativeOn:{click:function(e){t.apiTokenBeingDeleted=null}}},[t._v("\n                Nevermind\n            ")]),t._v(" "),s("arc-danger-button",{staticClass:"ml-2",class:{"opacity-25":t.deleteApiTokenForm.processing},attrs:{disabled:t.deleteApiTokenForm.processing},nativeOn:{click:function(e){return t.deleteApiToken(e)}}},[t._v("\n                Delete\n            ")])]},proxy:!0}])})],1)}),[],!1,null,null,null).exports},7989:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var r=s(6170),a=s(4356);const i={props:["tokens","availablePermissions","defaultPermissions"],components:{ApiTokenManager:r.default,AppLayout:a.Z}};const n=(0,s(1900).Z)(i,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("app-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h2",{staticClass:"font-semibold text-xl text-gray-800 leading-tight"},[t._v("\n            API Tokens\n        ")])]},proxy:!0}])},[t._v(" "),s("div",[s("div",{staticClass:"max-w-7xl mx-auto py-10 sm:px-6 lg:px-8"},[s("api-token-manager",{attrs:{tokens:t.tokens,"available-permissions":t.availablePermissions,"default-permissions":t.defaultPermissions}})],1)])])}),[],!1,null,null,null).exports},3788:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>S});var r=s(67),a=s(8801),i=s(4974),n=s(8558),o=s(2263),l=s(9745),c=s(8465),u=s(8407),d=s(8067),p=s.n(d),m=s(3976),_=s(6916),f=s(4019);const v={name:"CategoryForm",components:{ckeditor:p().component,InputText:i.default,Button:o.default,InputSwitch:c.default,Textarea:u.default,TextEditor:m.Z,FormInputShimmer:_.Z,FormSwitchShimmer:f.Z},props:{editFlag:Boolean,categoryId:Number,errors:Object,title:""},data:function(){return{editorUrl:window.CKEditorURL,editorConfig:{contentsLangDirection:this.$page.props.rtl?"rtl":"ltr"},form:{name:"",description:"",short_description:"",is_active:!0},formValidated:!1,loading:!1}},methods:{submitForm:function(){this.editFlag?this.update():this.create()},create:function(){var t=this;this.formValidated=!0,this.$inertia.post(route("categories.store"),this.form,{onSuccess:function(){0===Object.keys(t.errors).length&&t.$emit("close",!0)}})},update:function(){var t=this;this.formValidated=!0,this.$inertia.patch(route("categories.update",{id:this.categoryId}),this.form,{onSuccess:function(){0===Object.keys(t.errors).length&&t.$emit("close",!0)}})},fetch:function(){if(this.editFlag){var t=this;t.loading=!0,axios.get(route("categories.edit",{id:this.categoryId})).then((function(e){var s=e.data;t.form.name=s.name,t.form.short_description=s.short_description,t.form.description=s.description,t.form.is_active=s.is_active})).catch((function(e){t.loading=!1})).then((function(){t.loading=!1}))}}},mounted:function(){!0===this.editFlag&&this.fetch()}};var h=s(1900);const g=(0,h.Z)(v,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"overflow-y-auto h-screen px-2"},[s("div",{staticClass:"bg-gray-100 py-4 lg:py-4 rounded"},[s("div",{staticClass:"container px-6 mx-auto flex ltr:flex-row rtl:flex-row-reverse"},[s("div",[s("h4",{staticClass:"text-base font-semibold leading-tight text-gray-800"},[t._v("\n                    "+t._s(t.title)+"\n                ")])])])]),t._v(" "),t.loading?s("div",{staticClass:"my-6 w-11/12 mx-auto xl:w-full xl:mx-0"},[s("form-input-shimmer"),t._v(" "),s("form-input-shimmer"),t._v(" "),s("form-input-shimmer"),t._v(" "),s("form-switch-shimmer")],1):s("form",{staticClass:"my-6 w-11/12 mx-auto xl:w-full xl:mx-0",on:{submit:function(e){return e.preventDefault(),t.submitForm(e)}}},[s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 font-semibold text-gray-800",attrs:{for:"name"}},[t._v(t._s(t.__("Category"))+" "+t._s(t.__("Name"))),s("span",{staticClass:"ml-1 text-red-400"},[t._v("*")])]),t._v(" "),s("InputText",{class:[t.errors.name?"p-invalid":""],attrs:{type:"text",id:"name",placeholder:"Enter Category Name","aria-describedby":"name-help"},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}}),t._v(" "),t.errors.name?s("small",{staticClass:"p-invalid",attrs:{id:"name-help"}},[t._v(t._s(t.errors.name))]):t._e()],1),t._v(" "),s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 font-semibold text-gray-800",attrs:{for:"short_description"}},[t._v(t._s(t.__("Short Description"))+" (Max. 160 Characters)")]),t._v(" "),s("Textarea",{class:[t.errors.short_description?"p-invalid":""],attrs:{id:"short_description"},model:{value:t.form.short_description,callback:function(e){t.$set(t.form,"short_description",e)},expression:"form.short_description"}}),t._v(" "),t.errors.short_description?s("small",{staticClass:"p-invalid",attrs:{id:"short_description-help"}},[t._v(t._s(t.errors.short_description))]):t._e()],1),t._v(" "),s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 font-semibold text-gray-800",attrs:{for:"description"}},[t._v(t._s(t.__("Description")))]),t._v(" "),s("ckeditor",{class:[t.$page.props.rtl?"cke_rtl":"cke_ltr",t.errors.description?"p-invalid":""],attrs:{id:"description",config:t.editorConfig,"editor-url":t.editorUrl},model:{value:t.form.description,callback:function(e){t.$set(t.form,"description",e)},expression:"form.description"}}),t._v(" "),t.errors.description?s("small",{staticClass:"p-invalid",attrs:{id:"description-help"}},[t._v(t._s(t.errors.description))]):t._e()],1),t._v(" "),s("div",{staticClass:"w-full"},[s("div",{staticClass:"flex justify-between items-center mb-8"},[s("div",{staticClass:"w-9/12"},[s("label",{staticClass:"font-semibold text-gray-800 pb-1",attrs:{for:"is_active"},domProps:{innerHTML:t._s(t.form.is_active?t.__("Active"):t.__("In-active"))}}),t._v(" "),s("p",{staticClass:"text-gray-500"},[t._v(t._s(t.__("Active"))+" ("+t._s(t.__("Shown Everywhere"))+"). "+t._s(t.__("In-active"))+" ("+t._s(t.__("Hidden Everywhere"))+").")])]),t._v(" "),s("div",{staticClass:"cursor-pointer rounded-full relative shadow-sm"},[s("InputSwitch",{attrs:{id:"is_active"},model:{value:t.form.is_active,callback:function(e){t.$set(t.form,"is_active",e)},expression:"form.is_active"}})],1)])]),t._v(" "),s("div",{staticClass:"w-full flex"},[s("Button",{attrs:{type:"submit",label:t.editFlag?t.__("Update"):t.__("Create")}})],1)])])}),[],!1,null,null,null).exports;var b=s(728),x=s(7531),y=s(3194);function w(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var s=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==s)return;var r,a,i=[],n=!0,o=!1;try{for(s=s.call(t);!(n=(r=s.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return C(t,e);var s=Object.prototype.toString.call(t).slice(8,-1);"Object"===s&&t.constructor&&(s=t.constructor.name);if("Map"===s||"Set"===s)return Array.from(t);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return C(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,r=new Array(e);s<e;s++)r[s]=t[s];return r}const k={components:{CategoryForm:g,AdminLayout:r.Z,Column:a.default,InputText:i.default,Toolbar:n.default,Button:o.default,Sidebar:l.default,Chip:b.default,Tag:x.default,NoDataTable:y.Z},props:{categories:Object,errors:Object},data:function(){return{createForm:!1,editForm:!1,currentId:null,columns:[{label:this.__("Code"),field:"code",filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Code"),filterValue:null,trigger:"enter"},sortable:!1,width:"11rem"},{label:this.__("Name"),field:"name",filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Name"),filterValue:null,trigger:"enter"},sortable:!1},{label:this.__("Status"),field:"status",sortable:!1,filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Status"),filterValue:null,filterDropdownItems:[{value:1,text:this.__("Active")},{value:0,text:this.__("In-active")}]},width:"11rem"},{label:this.__("Actions"),field:"actions",sortable:!1,width:"12rem"}],options:{enabled:!0,mode:"pages",perPage:this.categories.meta.pagination.per_page,setCurrentPage:this.categories.meta.pagination.current_page,perPageDropdown:[10,20,50,100],dropdownAllowAll:!1},serverParams:{columnFilters:{},sort:{field:"",type:""},page:1,perPage:10},loading:!1}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return"Categories - "+this.$page.props.general.app_name+" Admin"}},methods:{updateParams:function(t){this.serverParams=Object.assign({},this.serverParams,t)},onPageChange:function(t){this.updateParams({page:t.currentPage}),this.loadItems()},onPerPageChange:function(t){this.updateParams({perPage:t.currentPerPage}),this.loadItems()},onSortChange:function(t){this.updateParams({sort:[{type:t.sortType,field:this.columns[t.columnIndex].field}]}),this.loadItems()},onColumnFilter:function(t){this.updateParams(t),this.serverParams.page=1,this.loadItems()},getQueryParams:function(){for(var t={page:this.serverParams.page,perPage:this.serverParams.perPage},e=0,s=Object.entries(this.serverParams.columnFilters);e<s.length;e++){var r=w(s[e],2),a=r[0],i=r[1];i&&(t[a]=i)}return t},loadItems:function(){this.$inertia.get(route(route().current()),this.getQueryParams(),{replace:!1,preserveState:!0,preserveScroll:!0})},deleteCategory:function(t){var e=this;this.$confirm.require({header:this.__("Confirm Delete"),message:this.__("Do you want to delete this record?"),icon:"pi pi-info-circle",acceptClass:"p-button-danger",rejectLabel:this.__("Cancel"),acceptLabel:this.__("Delete"),accept:function(){e.$inertia.delete(route("categories.destroy",{id:t}),{},{onSuccess:function(){e.$toast.add({severity:"info",summary:e.__("Confirmed"),detail:e.__("Record deleted"),life:3e3})}})},reject:function(){}})},handleCopyStatus:function(t){t&&this.$toast.add({severity:"success",summary:this.__("Copied"),detail:this.__("Copied Successfully!"),life:2e3})}}};const S=(0,h.Z)(k,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("admin-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v(t._s(t.__("Categories")))])]},proxy:!0},{key:"actions",fn:function(){return[s("button",{staticClass:"qt-btn qt-btn-success",on:{click:function(e){t.createForm=!0}}},[t._v("\n            "+t._s(t.__("New"))+" "+t._s(t.__("Category"))+"\n        ")])]},proxy:!0}])},[t._v(" "),t._v(" "),s("div",{staticClass:"container mx-auto py-8 px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"card"},[s("div",{staticClass:"card-body"},[s("vue-good-table",{attrs:{mode:"remote","pagination-options":t.options,columns:t.columns,totalRows:t.categories.meta.pagination.total,rows:t.categories.data,rtl:t.$page.props.rtl},on:{"on-page-change":t.onPageChange,"on-column-filter":t.onColumnFilter,"on-per-page-change":t.onPerPageChange},scopedSlots:t._u([{key:"table-row",fn:function(e){return["code"===e.column.field?s("div",[s("Tag",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.row.code,expression:"props.row.code",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.handleCopyStatus,expression:"handleCopyStatus",arg:"success"}],staticClass:"w-full p-mr-2 text-sm cursor-pointer",attrs:{value:e.row.code,icon:"pi pi-copy"}})],1):"status"===e.column.field?s("div",[s("span",{class:["Active"===e.row.status?"badge-success":"badge-danger","badge"]},[t._v(t._s(t.__(e.row.status)))])]):"actions"===e.column.field?s("div",[s("Button",{staticClass:"p-button-rounded p-button-secondary p-button-text p-mr-2",attrs:{icon:"pi pi-pencil"},on:{click:function(s){t.editForm=!0,t.currentId=e.row.id}}}),t._v(" "),s("Button",{staticClass:"p-button-rounded p-button-danger p-button-text",attrs:{icon:"pi pi-trash"},on:{click:function(s){return t.deleteCategory(e.row.id)}}})],1):s("span",[t._v("\n                          "+t._s(e.formattedRow[e.column.field])+"\n                        ")])]}}])},[t._v(" "),s("div",{attrs:{slot:"emptystate"},slot:"emptystate"},[s("no-data-table",[s("template",{slot:"action"},[s("button",{staticClass:"qt-btn-sm qt-btn-primary",attrs:{type:"button"},on:{click:function(e){t.createForm=!0}}},[t._v("\n                                    "+t._s(t.__("New"))+" "+t._s(t.__("Category"))+"\n                                ")])])],2)],1)]),t._v(" "),s("Sidebar",{staticClass:"p-sidebar-md",attrs:{position:"right",visible:t.createForm},on:{"update:visible":function(e){t.createForm=e},hide:t.loadItems}},[s("CategoryForm",{attrs:{errors:t.errors,title:t.__("New")+" "+t.__("Category")},on:{close:function(e){t.createForm=!1}}})],1),t._v(" "),s("Sidebar",{staticClass:"p-sidebar-md",attrs:{position:"right",visible:t.editForm},on:{"update:visible":function(e){t.editForm=e},hide:t.loadItems}},[s("CategoryForm",{attrs:{"edit-flag":t.editForm,"category-id":t.currentId,errors:t.errors,title:t.__("New")+" "+t.__("Category")},on:{"update:editFlag":function(e){t.editForm=e},"update:edit-flag":function(e){t.editForm=e},close:function(e){t.editForm=!1}}})],1)],1)])])])}),[],!1,null,null,null).exports},8807:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>k});var r=s(67),a=s(8801),i=s(4974),n=s(8558),o=s(2263),l=s(9745),c=s(8465),u=s(8407),d=s(8067),p=s.n(d),m=s(3976),_=s(6916),f=s(4019);const v={name:"ComprehensionForm",components:{ckeditor:p().component,InputText:i.default,Button:o.default,InputSwitch:c.default,Textarea:u.default,TextEditor:m.Z,FormInputShimmer:_.Z,FormSwitchShimmer:f.Z},props:{editFlag:Boolean,comprehensionId:Number,errors:Object,title:""},data:function(){return{editorUrl:window.CKEditorURL,editorConfig:{contentsLangDirection:this.$page.props.rtl?"rtl":"ltr"},form:{title:"",body:"",is_active:!0},formValidated:!1,loading:!1}},methods:{submitForm:function(){this.editFlag?this.update():this.create()},create:function(){var t=this;this.formValidated=!0,this.$inertia.post(route("comprehensions.store"),this.form,{onSuccess:function(){0===Object.keys(t.errors).length&&t.$emit("close",!0)}})},update:function(){var t=this;this.formValidated=!0,this.$inertia.patch(route("comprehensions.update",{id:this.comprehensionId}),this.form,{onSuccess:function(){0===Object.keys(t.errors).length&&t.$emit("close",!0)}})},fetch:function(){if(this.editFlag){var t=this;t.loading=!0,axios.get(route("comprehensions.edit",{id:this.comprehensionId})).then((function(e){var s=e.data;t.form.title=s.title,t.form.body=s.body,t.form.is_active=s.is_active})).catch((function(e){t.loading=!1})).then((function(){t.loading=!1}))}}},mounted:function(){!0===this.editFlag&&this.fetch()}};var h=s(1900);const g=(0,h.Z)(v,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"overflow-y-auto h-screen px-2"},[s("div",{staticClass:"bg-gray-100 py-4 lg:py-4 rounded"},[s("div",{staticClass:"container px-6 mx-auto flex ltr:flex-row rtl:flex-row-reverse"},[s("div",[s("h4",{staticClass:"text-base font-semibold leading-tight text-gray-800"},[t._v("\n                    "+t._s(t.title)+"\n                ")])])])]),t._v(" "),t.loading?s("div",{staticClass:"my-6 w-11/12 mx-auto xl:w-full xl:mx-0"},[s("form-input-shimmer"),t._v(" "),s("form-input-shimmer"),t._v(" "),s("form-input-shimmer"),t._v(" "),s("form-switch-shimmer")],1):s("form",{staticClass:"my-6 w-11/12 mx-auto xl:w-full xl:mx-0",on:{submit:function(e){return e.preventDefault(),t.submitForm(e)}}},[s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 font-semibold text-gray-800",attrs:{for:"title"}},[t._v(t._s(t.__("Comprehension"))+" "+t._s(t.__("Title")))]),t._v(" "),s("InputText",{class:[t.errors.title?"p-invalid":""],attrs:{type:"text",id:"title","aria-describedby":"name-help"},model:{value:t.form.title,callback:function(e){t.$set(t.form,"title",e)},expression:"form.title"}}),t._v(" "),t.errors.title?s("small",{staticClass:"p-invalid",attrs:{id:"title-help"}},[t._v(t._s(t.errors.title))]):t._e()],1),t._v(" "),s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 font-semibold text-gray-800",attrs:{for:"body"}},[t._v(t._s(t.__("Body")))]),t._v(" "),s("ckeditor",{class:[t.$page.props.rtl?"cke_rtl":"cke_ltr",t.errors.body?"p-invalid":""],attrs:{id:"body",config:t.editorConfig,"editor-url":t.editorUrl},model:{value:t.form.body,callback:function(e){t.$set(t.form,"body",e)},expression:"form.body"}}),t._v(" "),t.errors.body?s("small",{staticClass:"p-invalid",attrs:{id:"body-help"}},[t._v(t._s(t.errors.body))]):t._e()],1),t._v(" "),s("div",{staticClass:"w-full"},[s("div",{staticClass:"flex justify-between items-center mb-8"},[s("div",{staticClass:"w-9/12"},[s("label",{staticClass:"font-semibold text-gray-800 pb-1",attrs:{for:"is_active"},domProps:{innerHTML:t._s(t.form.is_active?t.__("Active"):t.__("In-active"))}}),t._v(" "),s("p",{staticClass:"text-sm text-gray-500"},[t._v(t._s(t.__("Active"))+" ("+t._s(t.__("Shown Everywhere"))+"). "+t._s(t.__("In-active"))+" ("+t._s(t.__("Hidden Everywhere"))+").")])]),t._v(" "),s("div",{staticClass:"cursor-pointer rounded-full relative shadow-sm"},[s("InputSwitch",{attrs:{id:"is_active"},model:{value:t.form.is_active,callback:function(e){t.$set(t.form,"is_active",e)},expression:"form.is_active"}})],1)])]),t._v(" "),s("div",{staticClass:"w-full flex"},[s("Button",{attrs:{type:"submit",label:t.editFlag?t.__("Update"):t.__("Create")}})],1)])])}),[],!1,null,null,null).exports;var b=s(728),x=s(7531);function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var s=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==s)return;var r,a,i=[],n=!0,o=!1;try{for(s=s.call(t);!(n=(r=s.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return w(t,e);var s=Object.prototype.toString.call(t).slice(8,-1);"Object"===s&&t.constructor&&(s=t.constructor.name);if("Map"===s||"Set"===s)return Array.from(t);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return w(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,r=new Array(e);s<e;s++)r[s]=t[s];return r}const C={components:{ComprehensionForm:g,AdminLayout:r.Z,Column:a.default,InputText:i.default,Toolbar:n.default,Button:o.default,Sidebar:l.default,Chip:b.default,Tag:x.default},props:{comprehensions:Object,errors:Object},data:function(){return{createForm:!1,editForm:!1,currentId:null,columns:[{label:this.__("Code"),field:"code",filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Code"),filterValue:null,trigger:"enter"},sortable:!1,width:"11rem"},{label:this.__("Title"),field:"title",filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Title"),filterValue:null,trigger:"enter"},sortable:!1},{label:this.__("Body"),field:"body",sortable:!1},{label:this.__("Status"),field:"status",sortable:!1,filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Status"),filterValue:null,filterDropdownItems:[{value:1,text:this.__("Published")},{value:0,text:this.__("Draft")}]}},{label:this.__("Actions"),field:"actions",sortable:!1}],options:{enabled:!0,mode:"pages",perPage:this.comprehensions.meta.pagination.per_page,setCurrentPage:this.comprehensions.meta.pagination.current_page,perPageDropdown:[10,20,50,100],dropdownAllowAll:!1},serverParams:{columnFilters:{},sort:{field:"",type:""},page:1,perPage:10},loading:!1}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return"Comprehensions - "+this.$page.props.general.app_name+" Admin"}},methods:{updateParams:function(t){this.serverParams=Object.assign({},this.serverParams,t)},onPageChange:function(t){this.updateParams({page:t.currentPage}),this.loadItems()},onPerPageChange:function(t){this.updateParams({perPage:t.currentPerPage}),this.loadItems()},onSortChange:function(t){this.updateParams({sort:[{type:t.sortType,field:this.columns[t.columnIndex].field}]}),this.loadItems()},onColumnFilter:function(t){this.updateParams(t),this.loadItems()},getQueryParams:function(){for(var t={page:this.serverParams.page,perPage:this.serverParams.perPage},e=0,s=Object.entries(this.serverParams.columnFilters);e<s.length;e++){var r=y(s[e],2),a=r[0],i=r[1];i&&(t[a]=i)}return t},loadItems:function(){this.$inertia.get(route(route().current()),this.getQueryParams(),{replace:!1,preserveState:!0,preserveScroll:!0})},deleteUserGroup:function(t){var e=this;this.$confirm.require({header:this.__("Confirm Delete"),message:this.__("Do you want to delete this record?"),icon:"pi pi-info-circle",acceptClass:"p-button-danger",rejectLabel:this.__("Cancel"),acceptLabel:this.__("Delete"),accept:function(){e.$inertia.delete(route("comprehensions.destroy",{id:t}),{},{onSuccess:function(){e.$toast.add({severity:"info",summary:e.__("Confirmed"),detail:e.__("Record deleted"),life:3e3})}})},reject:function(){}})},handleCopyStatus:function(t){t&&this.$toast.add({severity:"success",summary:this.__("Copied"),detail:this.__("Copied Successfully!"),life:2e3})}}};const k=(0,h.Z)(C,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("admin-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v(t._s(t.__("Comprehensions")))])]},proxy:!0},{key:"actions",fn:function(){return[s("button",{staticClass:"qt-btn qt-btn-success",on:{click:function(e){t.createForm=!0}}},[t._v("\n            "+t._s(t.__("New"))+" "+t._s(t.__("Comprehension"))+"\n        ")])]},proxy:!0}])},[t._v(" "),t._v(" "),s("div",{staticClass:"container mx-auto py-8 px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"card"},[s("div",{staticClass:"card-body"},[s("vue-good-table",{attrs:{mode:"remote","pagination-options":t.options,columns:t.columns,totalRows:t.comprehensions.meta.pagination.total,rows:t.comprehensions.data,rtl:t.$page.props.rtl},on:{"on-page-change":t.onPageChange,"on-column-filter":t.onColumnFilter,"on-per-page-change":t.onPerPageChange},scopedSlots:t._u([{key:"table-row",fn:function(e){return["code"===e.column.field?s("div",[s("Tag",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.row.code,expression:"props.row.code",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.handleCopyStatus,expression:"handleCopyStatus",arg:"success"}],staticClass:"w-full p-mr-2 text-sm cursor-pointer",attrs:{value:e.row.code,icon:"pi pi-copy"}})],1):"body"===e.column.field?s("div",{domProps:{innerHTML:t._s(e.row.body)}}):"status"===e.column.field?s("div",[s("span",{class:["Active"===e.row.status?"badge-success":"badge-danger","badge"]},[t._v(t._s(t.__(e.row.status)))])]):"actions"===e.column.field?s("div",[s("Button",{staticClass:"p-button-rounded p-button-secondary p-button-text p-mr-2",attrs:{icon:"pi pi-pencil"},on:{click:function(s){t.editForm=!0,t.currentId=e.row.id}}}),t._v(" "),s("Button",{staticClass:"p-button-rounded p-button-danger p-button-text",attrs:{icon:"pi pi-trash"},on:{click:function(s){return t.deleteUserGroup(e.row.id)}}})],1):s("div",[t._v("\n                          "+t._s(e.formattedRow[e.column.field])+"\n                        ")])]}}])}),t._v(" "),s("Sidebar",{staticClass:"p-sidebar-md",attrs:{position:"right",visible:t.createForm},on:{"update:visible":function(e){t.createForm=e},hide:t.loadItems}},[s("ComprehensionForm",{attrs:{errors:t.errors,title:t.__("New")+" "+t.__("Comprehension")},on:{close:function(e){t.createForm=!1}}})],1),t._v(" "),s("Sidebar",{staticClass:"p-sidebar-md",attrs:{position:"right",visible:t.editForm},on:{"update:visible":function(e){t.editForm=e},hide:t.loadItems}},[s("ComprehensionForm",{attrs:{"edit-flag":t.editForm,"comprehension-id":t.currentId,errors:t.errors,title:t.__("Edit")+" "+t.__("Comprehension")},on:{"update:editFlag":function(e){t.editForm=e},"update:edit-flag":function(e){t.editForm=e},close:function(e){t.editForm=!1}}})],1)],1)])])])}),[],!1,null,null,null).exports},8921:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>l});var r=s(67),a=s(3532),i=s(8065),n=s(9594);const o={components:{AdminLayout:r.Z,DashboardStat:a.Z,AdminQuickLinks:i.Z,AdminHelp:n.Z},props:{stats:Array},metaInfo:function(){return{title:this.title}},computed:{title:function(){return"Dashboard - "+this.$page.props.general.app_name+" Admin"}}};const l=(0,s(1900).Z)(o,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("admin-layout",[s("div",{staticClass:"container mx-auto py-4 px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"flex flex-wrap mb-6"},[s("div",{staticClass:"w-full"},[s("div",{staticClass:"w-full grid sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-8"},t._l(t.stats,(function(t){return s("dashboard-stat",{key:t.key,attrs:{title:t.title,count:t.count}})})),1)])]),t._v(" "),s("div",{staticClass:"flex flex-wrap mb-6"},[s("div",{staticClass:"w-full"},[s("div",{staticClass:"w-full grid sm:grid-cols-1 md:grid-cols-2 gap-8"},[s("admin-help"),t._v(" "),s("admin-quick-links")],1)])])])])}),[],!1,null,null,null).exports},2232:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var r=s(67),a=s(1334),i=s(7531);const n={components:{AdminLayout:r.Z,ArcValidationErrors:a.Z,Tag:i.default},props:{sampleFileUrl:String,errors:Object,questionTypes:Array,difficultyLevels:Array},data:function(){return{skill_id:null,topic_id:null,debounce:null,skills:[],topics:[],file:null,formValidated:!1}},methods:{submit:function(){var t=this;if(this.formValidated=!0,null!==this.skill_id&&null!==this.file){var e=new FormData;e.append("file",this.file),e.append("topic",this.topic_id),this.$inertia.post(route("import_questions",{skill:this.skill_id}),e,{onSuccess:function(){0===Object.keys(t.errors).length&&t.$emit("close",!0)}})}else this.$toast.add({severity:"error",summary:"Caution",detail:this.__("Please Choose Skill or File"),life:3e3})},handleFileUpload:function(){this.file=this.$refs.file.files[0]},skillChanged:function(){this.topics=[],this.topic_id=null},searchSkills:function(t,e){if(""!==t){var s=this;e(!0),clearTimeout(this.debounce),this.skills=[],this.debounce=setTimeout((function(){axios.get(route("search_skills",{query:t})).then((function(t){s.skills=t.data.skills,e(!1)})).catch((function(t){e(!1)}))}),600)}},searchTopics:function(t,e){if(""!==t){var s=this;e(!0),clearTimeout(this.debounce),this.topics=[],this.debounce=setTimeout((function(){axios.get(route("search_topics",{query:t,skill_id:s.skill_id})).then((function(t){s.topics=t.data.topics,e(!1)})).catch((function(t){e(!1)}))}),600)}},handleCopyStatus:function(t){t&&this.$toast.add({severity:"success",summary:this.__("Copied"),detail:this.__("Copied Successfully!"),life:2e3})}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return"Import Questions - "+this.$page.props.general.app_name+" Admin"},hasErrors:function(){return Object.keys(this.errors).length>0}}};const o=(0,s(1900).Z)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("admin-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v(t._s(t.__("Import Questions")))])]},proxy:!0}])},[t._v(" "),s("div",{staticClass:"py-12"},[s("div",{staticClass:"w-full mx-auto md:w-10/12 lg:w-8/12 xl:w-6/12 md:pb-0 md:px-6"},[t.hasErrors?s("div",{staticClass:"bg-red-200 shadow rounded-md md:flex justify-between items-center top-0 mt-12 mb-8 pb-4 px-4"},[s("arc-validation-errors")],1):t._e(),t._v(" "),s("div",{staticClass:"bg-white rounded shadow"},[s("div",{staticClass:"flex justify-end w-full p-2 border-b border-gray-200"},[s("a",{staticClass:"flex bg-white hover:bg-green-50 py-2 px-4 items-center rounded mb-2 xl:mb-0 lg:mb-0 md:mb-0 sm:mb-0 cursor-pointer",attrs:{href:t.sampleFileUrl}},[s("svg",{attrs:{height:"27",viewBox:"0 0 48 54.2",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[s("g",{attrs:{id:"xlsx",transform:"translate(-24.36 5)"}},[s("path",{attrs:{d:"M76.323,19.387h-1.3v-6.28a1.041,1.041,0,0,0-.011-.119,1.043,1.043,0,0,0-.253-.688L64.307.363S64.3.359,64.3.356a1.046,1.046,0,0,0-.212-.178c-.023-.015-.046-.028-.069-.041a1.116,1.116,0,0,0-.21-.088c-.02-.005-.037-.013-.057-.018A1.056,1.056,0,0,0,63.507,0H37.825A2.128,2.128,0,0,0,35.7,2.126V19.387H34.4a3.038,3.038,0,0,0-3.038,3.038v15.8A3.039,3.039,0,0,0,34.4,41.26h1.3V52.075A2.127,2.127,0,0,0,37.825,54.2H72.9a2.128,2.128,0,0,0,2.125-2.125V41.26h1.3a3.038,3.038,0,0,0,3.038-3.038v-15.8A3.037,3.037,0,0,0,76.323,19.387ZM37.825,2.126h24.62V13a1.063,1.063,0,0,0,1.063,1.063H72.9v5.324H37.825Zm21.532,28.98c-2.088-.727-3.451-1.883-3.451-3.711,0-2.145,1.79-3.786,4.756-3.786a7.693,7.693,0,0,1,3.207.634l-.634,2.293a5.982,5.982,0,0,0-2.629-.6c-1.231,0-1.828.56-1.828,1.213,0,.8.709,1.156,2.331,1.772,2.219.821,3.263,1.977,3.263,3.749,0,2.108-1.623,3.9-5.073,3.9a8.217,8.217,0,0,1-3.562-.765l.578-2.35a7.261,7.261,0,0,0,3.152.784c1.307,0,2-.541,2-1.362C61.464,32.094,60.867,31.646,59.357,31.105ZM54.547,34v2.388H46.694V23.812h2.855V34ZM37.576,36.384H34.331l3.637-6.361-3.507-6.211h3.264l1.1,2.294c.373.765.653,1.379.952,2.089h.036c.3-.8.541-1.362.858-2.089l1.063-2.294h3.245l-3.544,6.135,3.731,6.436H41.883l-1.138-2.276c-.465-.875-.764-1.529-1.119-2.256h-.037c-.261.727-.578,1.381-.97,2.256ZM72.9,51.5H37.825V41.26H72.9V51.5Zm.019-15.116-1.138-2.276c-.466-.876-.764-1.529-1.119-2.256h-.036c-.262.728-.579,1.38-.971,2.256l-1.043,2.276H65.361L69,30.022l-3.506-6.211h3.264l1.1,2.294c.373.765.652,1.379.951,2.089h.037c.3-.8.54-1.362.857-2.089l1.063-2.294h3.246l-3.544,6.135,3.73,6.436H72.915Z","data-name":"main",fill:"#1d6f42",id:"main",transform:"translate(-7 -5)"}})])]),t._v(" "),s("span",{staticClass:"ltr:pl-2 rtl:pr-2 text-sm font-bold text-gray-600"},[t._v(t._s(t.__("Download Sample Excel")))])])]),t._v(" "),s("div",{staticClass:"p-6"},[s("form",{attrs:{enctype:"multipart/form-data"},on:{submit:function(e){return e.preventDefault(),t.submit(e)}}},[s("div",{staticClass:"flex flex-col w-full mb-6"},[s("label",{staticClass:"pb-2 text-sm font-semibold text-gray-800"},[t._v(t._s(t.__("Choose Skill"))),s("span",{staticClass:"ltr:ml-1 rtl:mr-1 text-red-400"},[t._v("*")])]),t._v(" "),s("v-select",{attrs:{options:t.skills,placeholder:t.__("Search")+" "+t.__("Skill"),reduce:function(t){return t.id},id:"skill_id",label:"name",dir:t.$page.props.rtl?"rtl":"ltr"},on:{input:t.skillChanged,search:t.searchSkills},scopedSlots:t._u([{key:"no-options",fn:function(e){e.search;return[e.searching?[t._v(t._s(t.__("No results were found for this search"))+".")]:s("em",{staticClass:"opacity-50"},[t._v(t._s(t.__("Start typing to search"))+".")])]}}]),model:{value:t.skill_id,callback:function(e){t.skill_id=e},expression:"skill_id"}}),t._v(" "),s("div",{staticClass:"form-control-errors"},[t.errors.skill_id?s("p",{staticClass:"pt-2 text-xs text-red-500",attrs:{role:"alert"}},[t._v("\n                                    "+t._s(t.errors.skill_id)+"\n                                ")]):t._e()])],1),t._v(" "),s("div",{staticClass:"flex flex-col w-full mb-6"},[s("input",{ref:"file",staticClass:"text-sm",attrs:{accept:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",id:"file",type:"file"},on:{change:function(e){return t.handleFileUpload()}}}),t._v(" "),s("div",{staticClass:"form-control-errors"},[t.errors.file?s("p",{staticClass:"pt-2 text-xs text-red-500",attrs:{role:"alert"}},[t._v("\n                                    "+t._s(t.errors.file)+"\n                                ")]):t._e()])]),t._v(" "),s("div",{staticClass:"flex justify-end w-full"},[s("button",{staticClass:"qt-btn qt-btn-success",attrs:{type:"submit"}},[t._v("\n                                "+t._s(t.__("Upload File"))+"\n                            ")])])])]),t._v(" "),s("hr"),t._v(" "),s("div",{staticClass:"w-full p-6"},[s("h4",{staticClass:"pb-6 text-sm font-semibold text-gray-800"},[t._v("\n                        "+t._s(t.__("Question Types"))+"\n                    ")]),t._v(" "),s("table",{staticClass:"w-full table-auto"},[s("thead",[s("tr",[s("th",{staticClass:"border border-emerald-500 px-4 py-2text-emerald-600 text-sm"},[t._v("\n                                "+t._s(t.__("Name"))+"\n                            ")]),t._v(" "),s("th",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 font-medium text-sm text-center"},[t._v("\n                                "+t._s(t.__("Acceptable Code"))+"\n                            ")])])]),t._v(" "),s("tbody",t._l(t.questionTypes,(function(e){return s("tr",[s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 text-sm"},[t._v("\n                                "+t._s(e.name)+"\n                            ")]),t._v(" "),s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 font-medium text-sm text-center"},[s("Tag",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.code,expression:"questionType.code",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.handleCopyStatus,expression:"handleCopyStatus",arg:"success"}],staticClass:"text-sm cursor-pointer w-28 p-mr-2",attrs:{value:e.code,icon:"pi pi-copy"}})],1)])})),0)]),t._v(" "),s("h4",{staticClass:"py-6 text-sm font-semibold text-gray-800"},[t._v("\n                        "+t._s(t.__("Difficulty Levels"))+"\n                    ")]),t._v(" "),s("table",{staticClass:"w-full table-auto"},[s("thead",[s("tr",[s("th",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 text-sm"},[t._v("\n                                "+t._s(t.__("Name"))+"\n                            ")]),t._v(" "),s("th",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 font-medium text-sm text-center"},[t._v("\n                                "+t._s(t.__("Acceptable Code"))+"\n                            ")])])]),t._v(" "),s("tbody",t._l(t.difficultyLevels,(function(e){return s("tr",[s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 text-sm"},[t._v("\n                                "+t._s(e.name)+"\n                            ")]),t._v(" "),s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 font-medium text-sm text-center"},[s("Tag",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.code,expression:"difficultyLevel.code",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.handleCopyStatus,expression:"handleCopyStatus",arg:"success"}],staticClass:"text-sm cursor-pointer w-28 p-mr-2",attrs:{value:e.code,icon:"pi pi-copy"}})],1)])})),0)])])])])])])}),[],!1,null,null,null).exports},7547:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>l});var r=s(67),a=s(3194);function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var s=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==s)return;var r,a,i=[],n=!0,o=!1;try{for(s=s.call(t);!(n=(r=s.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return n(t,e);var s=Object.prototype.toString.call(t).slice(8,-1);"Object"===s&&t.constructor&&(s=t.constructor.name);if("Map"===s||"Set"===s)return Array.from(t);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return n(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,r=new Array(e);s<e;s++)r[s]=t[s];return r}const o={components:{AdminLayout:r.Z,NoDataTable:a.Z},props:{practiceSet:Object,practiceSessions:Object,schedule:Object},data:function(){return{loading:!1,columns:[{label:this.__("Test Taker"),field:"name",sortable:!1},{label:this.__("Completed On"),field:"completed",sortable:!1},{label:this.__("Points Earned"),field:"total_points_earned",sortable:!1},{label:this.__("Accuracy"),field:"accuracy",sortable:!1},{label:this.__("IP"),field:"ip",sortable:!1},{label:this.__("Status"),field:"status",sortable:!1},{label:this.__("Actions"),field:"actions",sortable:!1}],options:{enabled:!0,mode:"pages",perPage:this.practiceSessions.meta.pagination.per_page,setCurrentPage:this.practiceSessions.meta.pagination.current_page,perPageDropdown:[10,20,50,100],dropdownAllowAll:!1},serverParams:{columnFilters:{},sort:{field:"",type:""},page:1,perPage:10}}},methods:{toggleReport:function(){this.detailed=!this.detailed},updateParams:function(t){this.serverParams=Object.assign({},this.serverParams,t)},onPageChange:function(t){this.updateParams({page:t.currentPage}),this.loadItems()},onPerPageChange:function(t){this.updateParams({perPage:t.currentPerPage}),this.loadItems()},onSortChange:function(t){this.updateParams({sort:[{type:t.sortType,field:this.columns[t.columnIndex].field}]}),this.loadItems()},onColumnFilter:function(t){this.updateParams(t),this.serverParams.page=1,this.loadItems()},getQueryParams:function(){for(var t={page:this.serverParams.page,perPage:this.serverParams.perPage},e=0,s=Object.entries(this.serverParams.columnFilters);e<s.length;e++){var r=i(s[e],2),a=r[0],n=r[1];n&&(t[a]=n)}return t},loadItems:function(){this.$inertia.get(route(route().current()),this.getQueryParams(),{replace:!1,preserveState:!0,preserveScroll:!0})}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return this.practiceSet.title+" Detailed Report - "+this.$page.props.general.app_name}}};const l=(0,s(1900).Z)(o,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("admin-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v(t._s(t.practiceSet.title)+" - "+t._s(t.__("Detailed Report")))])]},proxy:!0},{key:"actions",fn:function(){return[s("a",{staticClass:"qt-btn qt-btn-primary",attrs:{href:t.route("practice-sets.export_report",{practice_set:t.practiceSet.id}),target:"_blank"}},[t._v("\n            "+t._s(t.__("Download Report"))+"\n        ")]),t._v(" "),s("inertia-link",{staticClass:"qt-btn qt-btn-success",attrs:{href:t.route("practice-sets.overall_report",{practice_set:t.practiceSet.id})}},[t._v("\n            "+t._s(t.__("Overall Report"))+"\n        ")])]},proxy:!0}])},[t._v(" "),t._v(" "),s("div",{staticClass:"py-8"},[s("div",{staticClass:"container mx-auto px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"card"},[s("div",{staticClass:"card-body"},[s("vue-good-table",{attrs:{mode:"remote","pagination-options":t.options,columns:t.columns,totalRows:t.practiceSessions.meta.pagination.total,rows:t.practiceSessions.data,rtl:t.$page.props.rtl},on:{"on-page-change":t.onPageChange,"on-column-filter":t.onColumnFilter,"on-per-page-change":t.onPerPageChange},scopedSlots:t._u([{key:"table-row",fn:function(e){return["status"===e.column.field?s("div",[s("span",{class:["Completed"===e.row.status?"badge-success":"badge-danger","badge-sm uppercase text-xs"]},[t._v(t._s(t.__(e.row.status)))])]):"actions"===e.column.field?s("div",{staticClass:"py-2"},[s("inertia-link",{staticClass:"qt-btn qt-btn-sm qt-btn-success",attrs:{href:t.route("practice_session_results",{practice_set:e.row.slug,session:e.row.id})}},[t._v("\n                                    "+t._s(t.__("View Performance"))+"\n                                ")])],1):s("span",[t._v("\n                                  "+t._s(e.formattedRow[e.column.field])+"\n                                ")])]}}])},[t._v(" "),s("div",{attrs:{slot:"emptystate"},slot:"emptystate"},[s("no-data-table")],1)])],1)])])])])}),[],!1,null,null,null).exports},8109:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>b});var r=s(67),a=s(2422),i=s(8067),n=s.n(i),o=s(4974),l=s(2263),c=s(8465),u=s(8407),d=s(3976),p=s(9938),m=s.n(p),_=s(5807),f=s(7100),v=s(2001),h=s(379);const g={name:"Details",components:{AdminLayout:r.Z,HorizontalStepper:a.Z,ckeditor:n().component,InputText:o.default,Button:l.default,InputSwitch:c.default,Textarea:u.default,TextEditor:d.Z,vSelect:m(),InputNumber:_.default,PopInfo:f.Z,SelectButton:v.default},props:{practiceSet:Object,steps:Array,editFlag:{type:Boolean,default:!1},practiceSetId:Number,initialSubCategories:Array,initialSkills:Array,errors:Object},data:function(){return{form:{title:this.editFlag?this.practiceSet.title:"",sub_category_id:this.editFlag?this.practiceSet.sub_category_id:null,skill_id:this.editFlag?this.practiceSet.skill_id:null,description:this.editFlag?this.practiceSet.description:"",is_active:!this.editFlag||this.practiceSet.is_active},subCategories:this.initialSubCategories,skills:this.initialSkills,autoModes:[{name:"Auto",code:!0},{name:"Manual",code:!1}],editorUrl:window.CKEditorURL,editorConfig:{contentsLangDirection:this.$page.props.rtl?"rtl":"ltr"},debounce:null,submitStatus:null}},validations:function(){return{form:{title:{required:h.C1},sub_category_id:{required:h.C1},skill_id:{required:h.C1},description:{},is_active:{required:h.C1}}}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return"Practice Set Details - "+this.$page.props.general.app_name+" Admin"}},methods:{submitForm:function(){var t=this;this.$v.$touch(),this.$v.$invalid?this.submitStatus="ERROR":(this.submitStatus="PENDING",setTimeout((function(){t.submitStatus="OK",t.editFlag?t.update():t.create()}),100))},create:function(){var t=this;this.formValidated=!0,this.$inertia.post(route("practice-sets.store"),this.form,{onSuccess:function(){0===Object.keys(t.errors).length&&t.$emit("close",!0)}})},update:function(){var t=this;this.formValidated=!0,this.$inertia.patch(route("practice-sets.update",{id:this.practiceSet.id}),this.form,{onSuccess:function(){0===Object.keys(t.errors).length&&t.$emit("close",!0)}})},searchSubCategories:function(t,e){if(""!==t){var s=this;e(!0),clearTimeout(this.debounce),this.subCategories=[],this.debounce=setTimeout((function(){axios.get(route("search_sub_categories",{query:t})).then((function(t){s.subCategories=t.data.subCategories,e(!1)})).catch((function(t){e(!1)}))}),600)}},searchSkills:function(t,e){if(""!==t){var s=this;e(!0),clearTimeout(this.debounce),this.skills=[],this.debounce=setTimeout((function(){axios.get(route("search_skills",{query:t})).then((function(t){s.skills=t.data.skills,e(!1)})).catch((function(t){e(!1)}))}),600)}}}};const b=(0,s(1900).Z)(g,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("admin-layout",[s("div",{staticClass:"container mx-auto pt-4 px-4 sm:px-6 lg:px-8"},[s("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"},[s("div",{staticClass:"mb-4 sm:mb-0 md:mb-0 lg:mb-0 xl:mb-0 lg:w-1/2"},[s("h2",{staticClass:"text-gray-800 dark:text-gray-100 text-lg font-bold"},[t._v(t._s(t.__("Practice Set"))+" "+t._s(t.__("Details")))]),t._v(" "),s("p",{staticClass:"font-normal text-sm text-gray-600 dark:text-gray-100 mt-1",domProps:{innerHTML:t._s(t.editFlag?t.practiceSet.title:t.__("New")+" "+t.__("Practice Set"))}})]),t._v(" "),s("horizontal-stepper",{attrs:{steps:t.steps,"edit-flag":t.editFlag}})],1)]),t._v(" "),s("div",{staticClass:"container mx-auto py-8 px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"card"},[s("div",{staticClass:"card-body"},[s("div",{staticClass:"flex justify-center flex-wrap"},[s("div",{staticClass:"md:w-8/12 w-full py-6 md:pb-0 md:px-6"},[s("form",{staticClass:"my-6 w-11/12 mx-auto xl:w-full xl:mx-0",on:{submit:function(e){return e.preventDefault(),t.submitForm(e)}}},[s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 text-sm font-semibold text-gray-800",attrs:{for:"title"}},[t._v(t._s(t.__("Title")))]),t._v(" "),s("InputText",{class:[t.errors.title?"p-invalid":""],attrs:{type:"title",id:"title",placeholder:t.__("Title"),"aria-describedby":"title-help"},model:{value:t.$v.form.title.$model,callback:function(e){t.$set(t.$v.form.title,"$model",e)},expression:"$v.form.title.$model"}}),t._v(" "),s("div",{staticClass:"form-control-errors"},[t.$v.form.title.$error&&!t.$v.form.title.required?s("p",{staticClass:"text-xs text-red-500 pt-2",attrs:{role:"alert"}},[t._v(t._s(t.__("Title"))+" "+t._s(t.__("is required")))]):t._e()])],1),t._v(" "),s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 text-sm font-semibold text-gray-800"},[t._v(t._s(t.__("Sub Category"))),s("span",{staticClass:"ml-1 text-red-400"},[t._v("*")])]),t._v(" "),s("v-select",{attrs:{id:"sub_category",options:t.subCategories,reduce:function(t){return t.id},label:"name",dir:t.$page.props.rtl?"rtl":"ltr"},on:{search:t.searchSubCategories},scopedSlots:t._u([{key:"no-options",fn:function(e){e.search;return[e.searching?[t._v(t._s(t.__("No results were found for this search"))+".")]:s("em",{staticClass:"opacity-50"},[t._v(t._s(t.__("Start typing to search"))+".")])]}}]),model:{value:t.$v.form.sub_category_id.$model,callback:function(e){t.$set(t.$v.form.sub_category_id,"$model",e)},expression:"$v.form.sub_category_id.$model"}}),t._v(" "),s("div",{staticClass:"form-control-errors"},[t.$v.form.sub_category_id.$error&&!t.$v.form.sub_category_id.required?s("p",{staticClass:"text-xs text-red-500 pt-2",attrs:{role:"alert"}},[t._v(t._s(t.__("Sub Category"))+" "+t._s(t.__("is required")))]):t._e()])],1),t._v(" "),s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 text-sm font-semibold text-gray-800",attrs:{for:"skill"}},[t._v(t._s(t.__("Skill")))]),t._v(" "),s("v-select",{attrs:{id:"skill",options:t.skills,reduce:function(t){return t.id},label:"name",disabled:t.editFlag,dir:t.$page.props.rtl?"rtl":"ltr"},on:{search:t.searchSkills},scopedSlots:t._u([{key:"no-options",fn:function(e){e.search;return[e.searching?[t._v(t._s(t.__("No results were found for this search"))+".")]:s("em",{staticClass:"opacity-50"},[t._v(t._s(t.__("Start typing to search"))+".")])]}}]),model:{value:t.$v.form.skill_id.$model,callback:function(e){t.$set(t.$v.form.skill_id,"$model",e)},expression:"$v.form.skill_id.$model"}}),t._v(" "),s("div",{staticClass:"form-control-errors"},[t.$v.form.skill_id.$error&&!t.$v.form.skill_id.required?s("p",{staticClass:"text-xs text-red-500 pt-2",attrs:{role:"alert"}},[t._v(t._s(t.__("Skill"))+" "+t._s(t.__("is required")))]):t._e()])],1),t._v(" "),s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 text-sm font-semibold text-gray-800",attrs:{for:"description"}},[t._v(t._s(t.__("Description")))]),t._v(" "),s("ckeditor",{class:[t.$page.props.rtl?"cke_rtl":"cke_ltr",t.errors.description?"p-invalid":""],attrs:{id:"description",config:t.editorConfig,"editor-url":t.editorUrl},model:{value:t.$v.form.description.$model,callback:function(e){t.$set(t.$v.form.description,"$model",e)},expression:"$v.form.description.$model"}}),t._v(" "),s("div",{staticClass:"form-control-errors"},[t.$v.form.description.$error&&!t.$v.form.description.required?s("p",{staticClass:"text-xs text-red-500 pt-2",attrs:{role:"alert"}},[t._v(t._s(t.__("Description"))+" "+t._s(t.__("is required")))]):t._e()])],1),t._v(" "),s("div",{staticClass:"w-full"},[s("div",{staticClass:"flex justify-between items-center mb-8"},[s("div",{staticClass:"w-9/12"},[s("label",{staticClass:"font-semibold text-sm text-gray-800 pb-1",attrs:{for:"is_active"},domProps:{innerHTML:t._s(t.form.is_active?t.__("Status")+" - "+t.__("Published"):t.__("Status")+" - "+t.__("Draft"))}}),t._v(" "),s("p",{staticClass:"text-sm text-gray-500"},[t._v(t._s(t.__("Published"))+" ("+t._s(t.__("Shown Everywhere"))+"). "+t._s(t.__("Draft"))+" ("+t._s(t.__("Not Shown"))+").")])]),t._v(" "),s("div",{staticClass:"cursor-pointer rounded-full relative shadow-sm"},[s("InputSwitch",{attrs:{id:"is_active"},model:{value:t.form.is_active,callback:function(e){t.$set(t.form,"is_active",e)},expression:"form.is_active"}})],1)])]),t._v(" "),s("div",{staticClass:"w-full flex justify-end my-8"},[s("button",{staticClass:"qt-btn qt-btn-success",attrs:{type:"submit"},domProps:{innerHTML:t._s(t.editFlag?t.__("Update Details"):t.__("Save & Proceed"))}})])])])])])])])])}),[],!1,null,null,null).exports},7626:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var r=s(67),a=s(3427);const i={components:{AdminLayout:r.Z,AdminTestStatCard:a.Z},props:{practiceSet:Object,stats:Object},data:function(){return{loading:!1}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return this.practiceSet.title+" Overall Report - "+this.$page.props.general.app_name}}};const n=(0,s(1900).Z)(i,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("admin-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v(t._s(t.practiceSet.title)+" - "+t._s(t.__("Overall Report")))])]},proxy:!0},{key:"actions",fn:function(){return[s("inertia-link",{staticClass:"qt-btn qt-btn-success",attrs:{href:t.route("practice-sets.detailed_report",{practice_set:t.practiceSet.id})}},[t._v("\n            "+t._s(t.__("Detailed Report"))+"\n        ")])]},proxy:!0}])},[t._v(" "),t._v(" "),s("div",{staticClass:"py-8"},[s("div",{staticClass:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"bg-white shadow rounded-lg w-full overflow-hidden"},[s("div",{staticClass:"grid sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4"},[s("admin-test-stat-card",{attrs:{title:t.__("Total Attempts"),count:t.stats.total_attempts}}),t._v(" "),s("admin-test-stat-card",{attrs:{title:t.__("Unique Attempt"),count:t.stats.unique_test_takers}}),t._v(" "),s("admin-test-stat-card",{attrs:{title:t.__("Avg. Time Spent"),count:t.stats.avg_time.detailed_readable}}),t._v(" "),s("admin-test-stat-card",{attrs:{title:t.__("Avg. Score"),count:t.stats.avg_score}}),t._v(" "),s("admin-test-stat-card",{attrs:{title:t.__("High Score"),count:t.stats.high_score}}),t._v(" "),s("admin-test-stat-card",{attrs:{title:t.__("Low Score"),count:t.stats.low_score}}),t._v(" "),s("admin-test-stat-card",{attrs:{title:t.__("Avg. Accuracy"),count:t.stats.avg_accuracy}}),t._v(" "),s("admin-test-stat-card",{attrs:{title:t.__("Avg. Speed"),count:t.stats.avg_speed}})],1)])])])])}),[],!1,null,null,null).exports},7938:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>g});var r=s(67),a=s(8618),i=s(3244),n=s(9408),o=s(8642),l=s(789),c=s(9324),u=s(4707),d=s(7189),p=s(7598),m=s(6587),_=s(8050),f=s(3001),v=s(6487);const h={components:{AdminLayout:r.Z,DoughnutChart:a.Z,RewardsBadge:i.Z,PracticeQuestionCard:n.Z,PracticeQuestionChip:o.Z,NavigationQuestionCardShimmer:l.Z,PracticeQuestionShimmer:c.Z,PracticeSolutionCard:u.Z,SAQSolution:d.Z,FIBSolution:p.Z,ORDSolution:m.Z,MTFSolution:_.Z,MSASolution:f.Z,MMASolution:v.Z},props:{practiceSet:Object,session:Object,analytics:Object},data:function(){return{loading:!1,questions:[],current_question:0,statusChartData:{labels:["Correct","Wrong","Unanswered"],datasets:[{label:"Status",data:[this.analytics.correct_answered_questions,this.analytics.wrong_answered_questions,this.analytics.unanswered_questions],backgroundColor:["rgb(52, 211, 153)","rgb(248, 113, 113)","rgb(156, 163, 175)"],hoverOffset:4}]},timeSpentChartData:{labels:["Correct","Wrong","Other"],datasets:[{label:"Time Spent",data:[this.analytics.time_taken_for_correct_answered.seconds,this.analytics.time_taken_for_wrong_answered.seconds,this.analytics.time_taken_for_other.seconds],backgroundColor:["rgb(52, 211, 153)","rgb(248, 113, 113)","rgb(156, 163, 175)"],hoverOffset:4}]}}},methods:{jumpToQuestion:function(t){this.current_question=t},fetchQuestions:function(){var t=this;t.loading=!0,axios.get(route("fetch_practice_session_solutions",{practice_set:this.practiceSet.slug,session:this.session.id})).then((function(e){var s=e.data;t.questions=s.questions})).catch((function(e){t.loading=!1})).then((function(){t.loading=!1}))}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return this.practiceSet.title+" Analysis - "+this.$page.props.general.app_name},totalAnswered:function(){return this.analytics.answered_questions+"/"+this.analytics.total_questions+" Answered"},totalTimeSpent:function(){return this.analytics.total_time_taken.detailed_readable+" Spent"}},mounted:function(){"Completed"===this.session.status&&this.fetchQuestions()}};const g=(0,s(1900).Z)(h,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("admin-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v(t._s(t.practiceSet.title)+" "+t._s(t.__("Analysis")))])]},proxy:!0}])},[t._v(" "),s("div",{staticClass:"py-8"},[s("div",{staticClass:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"w-full lg:flex flex-wrap"},[s("div",{staticClass:"py-4 lg:w-1/3 w-full"},[s("div",{staticClass:"w-full card mb-6"},[s("div",{staticClass:"card-body flex flex-col justify-center h-96"},[s("table",{staticClass:"w-full table-auto"},[s("tbody",[s("tr",[s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 font-medium text-sm"},[t._v(t._s(t.__("Test Taker")))]),t._v(" "),s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 text-sm"},[t._v(t._s(t.session.name))])]),t._v(" "),s("tr",[s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 font-medium text-sm"},[t._v(t._s(t.__("Email")))]),t._v(" "),s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 text-sm"},[t._v(t._s(t.session.email))])]),t._v(" "),s("tr",[s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 font-medium text-sm"},[t._v(t._s(t.__("Session")))]),t._v(" "),s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 font-mono text-sm uppercase"},[t._v(t._s(t.session.id))])]),t._v(" "),s("tr",{staticClass:"bg-emerald-200"},[s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 font-medium text-sm"},[t._v(t._s(t.__("Status")))]),t._v(" "),s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 text-sm"},[t._v(t._s(t.session.status))])]),t._v(" "),s("tr",{staticClass:"bg-emerald-200"},[s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 font-medium text-sm"},[t._v(t._s(t.__("Completed")))]),t._v(" "),s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 text-sm"},[t._v(t._s(t.session.completed))])]),t._v(" "),s("tr",{staticClass:"bg-emerald-200"},[s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 font-medium text-sm"},[t._v(t._s(t.__("IP")))]),t._v(" "),s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 text-sm"},[t._v(t._s(t.session.ip))])]),t._v(" "),s("tr",[s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 font-medium text-sm"},[t._v(t._s(t.__("Device")))]),t._v(" "),s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 text-sm"},[t._v(t._s(t.session.device)+", "+t._s(t.session.os)+", "+t._s(t.session.browser))])])])])])])]),t._v(" "),s("div",{staticClass:"py-4 lg:w-2/3 w-full md:pl-6"},[s("div",{staticClass:"w-full card mb-6"},[s("div",{staticClass:"card-body flex flex-col justify-center h-96"},[s("div",{staticClass:"flex gap-4 justify-between border-b border-gray-100 items-center h-16 px-4 py-4"},[s("div",{staticClass:"flex items-center gap-2"},[s("svg",{staticClass:"w-7 h-7",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("h4",{staticClass:"font-semibold text-sm"},[t._v(t._s(t.__("Score"))+"/"+t._s(t.__("Points")))])]),t._v(" "),s("div",{staticClass:"text-sm"},[t._v(t._s(t.session.total_points_earned))])]),t._v(" "),s("div",{staticClass:"flex gap-4 justify-between border-b border-gray-100 items-center h-16 px-4 py-4"},[s("div",{staticClass:"flex items-center gap-2"},[s("img",{staticClass:"w-7 h-7",attrs:{src:t.$page.props.appUrl+"images/darts.png",alt:"Accuracy"}}),t._v(" "),s("h4",{staticClass:"font-semibold text-sm"},[t._v(t._s(t.__("Accuracy")))])]),t._v(" "),s("div",{staticClass:"text-sm"},[t._v(t._s(t.session.accuracy))])]),t._v(" "),s("div",{staticClass:"grid grid-cols-1 sm:grid-cols-2 gap-4 border-b border-gray-100 justify-center items-center px-4 py-4"},[s("div",{staticClass:"flex gap-4 sm:justify-center items-center"},[s("div",{staticClass:"w-28"},[s("doughnut-chart",{key:"status",attrs:{id:"status","chart-data":t.statusChartData,"element-text":t.totalAnswered}})],1),t._v(" "),s("div",{staticClass:"flex flex-col gap-2 justify-center"},[s("div",{staticClass:"flex gap-2 items-center text-xs"},[s("svg",{staticClass:"w-5 h-5 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("\n                                            "+t._s(t.analytics.correct_answered_questions)+" "+t._s(t.__("Correct"))+"\n                                        ")]),t._v(" "),s("div",{staticClass:"flex gap-2 items-center text-xs"},[s("svg",{staticClass:"w-5 h-5 text-red-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:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"}})]),t._v("\n                                            "+t._s(t.analytics.wrong_answered_questions)+" "+t._s(t.__("Wrong"))+"\n                                        ")]),t._v(" "),s("div",{staticClass:"flex gap-2 items-center text-xs"},[s("svg",{staticClass:"w-5 h-5 text-gray-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:"M15 12H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"}})]),t._v("\n                                            "+t._s(t.analytics.unanswered_questions)+" "+t._s(t.__("Unanswered"))+"\n                                        ")])])]),t._v(" "),s("div",{staticClass:"flex gap-4 sm:justify-center items-center"},[s("div",{staticClass:"w-28"},[s("doughnut-chart",{key:"time_spent",attrs:{id:"time_spent","chart-data":t.timeSpentChartData,"element-text":t.totalTimeSpent}})],1),t._v(" "),s("div",{staticClass:"flex flex-col gap-2 justify-center"},[s("div",{staticClass:"flex gap-2 items-center text-xs"},[s("svg",{staticClass:"w-5 h-5 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("\n                                            "+t._s(t.analytics.time_taken_for_correct_answered.detailed_readable)+" "+t._s(t.__("Correct"))+"\n                                        ")]),t._v(" "),s("div",{staticClass:"flex gap-2 items-center text-xs"},[s("svg",{staticClass:"w-5 h-5 text-red-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:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"}})]),t._v("\n                                            "+t._s(t.analytics.time_taken_for_wrong_answered.detailed_readable)+" "+t._s(t.__("Wrong"))+"\n                                        ")]),t._v(" "),s("div",{staticClass:"flex gap-2 items-center text-xs"},[s("svg",{staticClass:"w-5 h-5 text-gray-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:"M15 12H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"}})]),t._v("\n                                            "+t._s(t.analytics.time_taken_for_other.detailed_readable)+" "+t._s(t.__("Other"))+"\n                                        ")])])])]),t._v(" "),s("div",{staticClass:"flex gap-4 justify-between items-center h-16 px-4 py-4"},[s("div",{staticClass:"flex items-center gap-2"},[s("img",{staticClass:"w-7 h-7",attrs:{src:t.$page.props.appUrl+"images/clock.png",alt:"Speed"}}),t._v(" "),s("h4",{staticClass:"font-semibold text-sm"},[t._v(t._s(t.__("Avg. Speed")))])]),t._v(" "),s("div",{staticClass:"text-sm"},[t._v(t._s(t.session.speed))])])])])])]),t._v(" "),"Completed"===t.session.status?s("div",[s("h2",{staticClass:"text-lg font-semibold leading-tight text-gray-800 mb-6"},[t._v(t._s(t.__("Solutions")))]),t._v(" "),s("div",{staticClass:"w-full card"},[s("div",{staticClass:"w-full card-body lg:flex flex-wrap"},[s("div",{staticClass:"py-4 lg:w-1/3 w-full md:pr-6"},[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 flex flex-wrap justify-center items-center gap-2"},t._l(t.questions,(function(e,r){return s("li",{key:e.code,on:{click:function(e){return t.jumpToQuestion(r)}}},[s("practice-question-chip",{attrs:{sno:r+1,is_correct:e.is_correct,status:e.status,active:t.current_question===r}})],1)})),0)]),t._v(" "),s("div",{staticClass:"py-4 lg:w-2/3 w-full md:pl-6 sm:border-l border-gray-200"},[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",t._l(t.questions,(function(e,r){return s("div",{key:e.id},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.current_question===r,expression:"current_question === index"}],attrs:{id:e.code}},[s("div",{staticClass:"flex justify-between items-center mb-6"},[s("div",{staticClass:"font-mono px-2 py-1 inline-block bg-qt-option text-white rounded text-sm mb-2"},[t._v("\n                                                "+t._s(t.__("Time Spent"))+": "+t._s(e.time_taken.detailed_readable)+"\n                                            ")]),t._v(" "),"answered"===e.status?s("div",{staticClass:"font-mono px-2 py-1 inline-block text-white rounded text-sm mb-2",class:e.is_correct?"bg-green-400":"bg-red-400"},[e.is_correct?s("span",[t._v("+"+t._s(e.points_earned)+" "+t._s(t.__("Points Earned")))]):t._e(),t._v(" "),e.is_correct?t._e():s("span",[t._v(t._s(t.__("No Points")))])]):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.__("Not Answered"))+"\n                                            ")])]),t._v(" "),s("practice-question-card",{key:e.card,attrs:{question:e,sno:r+1,"total-questions":t.practiceSet.total_questions}}),t._v(" "),"MSA"===e.questionType||"TOF"===e.questionType?s("div",{staticClass:"mt-4"},[s("MSASolution",{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}})],1):t._e(),t._v(" "),"MMA"===e.questionType?s("div",{staticClass:"mt-4"},[s("MMASolution",{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}})],1):t._e(),t._v(" "),"MTF"===e.questionType?s("div",{staticClass:"mt-4"},[s("MTFSolution",{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}})],1):t._e(),t._v(" "),"ORD"===e.questionType?s("div",{staticClass:"mt-4"},[s("ORDSolution",{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}})],1):t._e(),t._v(" "),"FIB"===e.questionType?s("div",{staticClass:"mt-4"},[s("FIBSolution",{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}})],1):t._e(),t._v(" "),"SAQ"===e.questionType?s("div",{staticClass:"mt-4"},[s("SAQSolution",{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}})],1):t._e(),t._v(" "),s("div",{staticClass:"mt-4"},[s("practice-solution-card",{attrs:{solution:e.solution}})],1)],1)])})),0)])])])]):t._e()])])])}),[],!1,null,null,null).exports},3343:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>w});var r=s(67);const a={name:"ExamNavigation",components:{SplitButton:s(398).default},props:{currentRoute:"",examId:""},data:function(){var t=this;return{items:[{label:"Exam Dashboard",command:function(){t.$inertia.get(route("exams.show",{exam:t.examId}))}},{label:"Edit Details",command:function(){t.$inertia.get(route("exams.edit",{exam:t.examId}))}},{label:"Sections",command:function(){t.$inertia.get(route("exams.sections.index",{exam:t.examId}))}},{label:"Questions",command:function(){t.$inertia.get(route("exams.questions",{exam:t.examId}))}},{label:"Settings",command:function(){t.$inertia.get(route("exams.settings",{exam:t.examId}))}},{label:"Schedules",command:function(){t.$inertia.get(route("exams.sections.index",{exam:t.examId}))}}]}},computed:{activeLink:function(){return route(route().current(),{exam:this.examId})}}};var i=s(1900);const n=(0,i.Z)(a,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("SplitButton",{staticClass:"p-button-success",attrs:{label:"Manage",icon:"pi pi-cog",model:t.items}})}),[],!1,null,null,null).exports;var o=s(5850),l=s(7454),c=s(302),u=s(2829),d=s(4357),p=s(6077),m=s(2682),_=s(8200),f=s(9591),v=s(298),h=s(5693),g=s(2263),b=s(4974),x=s(2422);const y={name:"PracticeSetQuestions",components:{TOFPreview:_.Z,LAQPreview:m.Z,SAQPreview:p.Z,ORDPreview:d.Z,MTFPreview:u.Z,FIBPreview:c.Z,MMAPreview:l.Z,AdminLayout:r.Z,ExamNavigation:n,MSAPreview:o.Z,AdminQuestionShimmer:f.Z,Toast:v.default,Checkbox:h.default,Button:g.default,InputText:b.default,HorizontalStepper:x.Z},props:{practiceSet:Object,difficultyLevels:Array,questionTypes:Array,steps:Array,editFlag:Boolean},data:function(){return{qEditFlag:!1,questions:[],difficultyFilter:[],typeFilter:[],codeFilter:"",topicFilter:"",pagination:{},loading:!1,debounce:null,processing:!1}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return this.practiceSet.title+" (Questions) - "+this.$page.props.general.app_name+" Admin"}},methods:{viewQuestions:function(){this.qEditFlag=!1,this.resetFilters()},editQuestions:function(){this.qEditFlag=!0,this.resetFilters()},resetFilters:function(){this.codeFilter="",this.topicFilter="",this.difficultyFilter=[],this.typeFilter=[],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,code:this.codeFilter,topic:this.topicFilter}}).then((function(e){var s=e.data.questions.data;t.pagination=e.data.questions.meta.pagination,s.forEach((function(e){return t.questions.push(e)})),t.loading=!1})).catch((function(e){t.loading=!1}))},fetchQuestions:function(){var t=this;t.loading=!0,this.questions=[],axios.get(route("practice-sets.fetch_questions",{practice_set:this.practiceSet.id,difficulty_levels:this.difficultyFilter,question_types:this.typeFilter,code:this.codeFilter,topic:this.topicFilter})).then((function(e){var s=e.data.questions.data;t.pagination=e.data.questions.meta.pagination,s.forEach((function(e){return t.questions.push(e)})),t.loading=!1})).catch((function(e){t.loading=!1}))},fetchAvailableQuestions:function(){var t=this;t.loading=!0,this.questions=[],axios.get(route("practice-sets.fetch_available_questions",{practice_set:this.practiceSet.id,difficulty_levels:this.difficultyFilter,question_types:this.typeFilter,code:this.codeFilter,topic:this.topicFilter})).then((function(e){var s=e.data.questions.data;t.pagination=e.data.questions.meta.pagination,s.forEach((function(e){return t.questions.push(e)})),t.loading=!1})).catch((function(e){t.loading=!1}))},addQuestion:function(t,e){var s=this;s.processing=!0,axios.post(route("practice-sets.add_question",{practice_set:this.practiceSet.id}),{question_id:t}).then((function(t){s.questions[e].disabled=!0,s.$toast.add({severity:"success",summary:this.__("Added"),detail:this.__("Question Added Successfully!"),life:2e3}),s.processing=!1})).catch((function(t){s.processing=!1}))},removeQuestion:function(t,e){var s=this,r=this;r.processing=!0,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(){axios.post(route("practice-sets.remove_question",{practice_set:s.practiceSet.id}),{question_id:t}).then((function(t){r.questions[e].disabled=!0,r.$toast.add({severity:"info",summary:this.__("Removed"),detail:this.__("Question removed successfully"),life:3e3}),r.processing=!1})).catch((function(t){r.processing=!1}))},reject:function(){}})}},mounted:function(){this.fetchQuestions()}};const w=(0,i.Z)(y,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("admin-layout",[s("div",{staticClass:"container mx-auto pt-4 px-4 sm:px-6 lg:px-8"},[s("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"},[s("div",{staticClass:"mb-4 sm:mb-0 md:mb-0 lg:mb-0 xl:mb-0 lg:w-1/2"},[s("h2",{staticClass:"text-gray-800 dark:text-gray-100 text-lg font-bold"},[t._v(t._s(t.__("Practice Set"))+" "+t._s(t.__("Questions")))]),t._v(" "),s("p",{staticClass:"font-normal text-sm text-gray-600 dark:text-gray-100 mt-1",domProps:{innerHTML:t._s(t.editFlag?t.practiceSet.title:"New Practice Set")}})]),t._v(" "),s("horizontal-stepper",{attrs:{steps:t.steps,"edit-flag":t.editFlag}})],1)]),t._v(" "),s("div",{staticClass:"container mx-auto py-8 px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"card"},[s("div",{staticClass:"card-body"},[s("div",{staticClass:"flex justify-center flex-wrap"},[s("div",{staticClass:"sm:w-4/12 w-full p-4"},[s("div",[s("h4",{staticClass:"py-2 text-sm font-semibold flex items-center gap-2 text-gray-800 border-b"},[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:"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(" "),s("div",{staticClass:"w-full flex flex-col mt-6"},[s("label",{staticClass:"pb-2 text-sm font-semibold text-gray-800",attrs:{for:"code"}},[t._v(t._s(t.__("Code")))]),t._v(" "),s("InputText",{attrs:{type:"text",id:"code",placeholder:t.__("Code"),"aria-describedby":"code-help"},model:{value:t.codeFilter,callback:function(e){t.codeFilter=e},expression:"codeFilter"}})],1),t._v(" "),s("div",{staticClass:"w-full flex flex-col mt-6"},[s("label",{staticClass:"mb-3 text-sm font-semibold text-gray-800",attrs:{for:"topic"}},[t._v(t._s(t.__("Topic")))]),t._v(" "),s("InputText",{attrs:{type:"text",id:"topic",placeholder:t.__("Topic"),"aria-describedby":"topic-help"},model:{value:t.topicFilter,callback:function(e){t.topicFilter=e},expression:"topicFilter"}})],1),t._v(" "),s("div",{staticClass:"w-full flex flex-col mt-6"},[s("label",{staticClass:"mb-3 text-sm font-semibold text-gray-800"},[t._v(t._s(t.__("Type")))]),t._v(" "),s("div",{staticClass:"flex flex-col gap-2"},t._l(t.questionTypes,(function(e){return s("div",{staticClass:"p-field-radiobutton"},[s("Checkbox",{attrs:{id:"q_type"+e.id,name:"q_type",value:e.id},model:{value:t.typeFilter,callback:function(e){t.typeFilter=e},expression:"typeFilter"}}),t._v(" "),s("label",{staticClass:"text-sm text-gray-800",attrs:{for:"q_type"+e.id}},[t._v(t._s(e.name))])],1)})),0)]),t._v(" "),s("div",{staticClass:"w-full flex flex-col mt-6"},[s("label",{staticClass:"mb-3 text-sm font-semibold text-gray-800"},[t._v(t._s(t.__("Difficulty Level")))]),t._v(" "),s("div",{staticClass:"flex flex-col gap-2"},t._l(t.difficultyLevels,(function(e){return s("div",{staticClass:"p-field-radiobutton"},[s("Checkbox",{attrs:{id:"difficulty"+e.id,name:"difficulty",value:e.id},model:{value:t.difficultyFilter,callback:function(e){t.difficultyFilter=e},expression:"difficultyFilter"}}),t._v(" "),s("label",{staticClass:"text-sm text-gray-800",attrs:{for:"difficulty"+e.id}},[t._v(t._s(e.name))])],1)})),0)]),t._v(" "),s("div",{staticClass:"w-full flex items-center gap-2 my-8"},[s("button",{staticClass:"w-full qt-btn qt-btn-primary",attrs:{type:"button"},on:{click:t.resetFilters}},[t._v(t._s(t.__("Reset")))]),t._v(" "),s("button",{staticClass:"w-full qt-btn qt-btn-success",attrs:{type:"button"},on:{click:t.filterQuestions}},[t._v(t._s(t.__("Search")))])])])]),t._v(" "),s("div",{staticClass:"sm:w-8/12 w-full my-4"},[s("div",{staticClass:"my-2 p-4 border border-green-100 shadow-sm rounded-sm bg-green-50"},[s("div",{staticClass:"mb-2 font-semibold"},[t._v(t._s(t.__("Currently"))+" "+t._s(t.qEditFlag?t.__("Adding"):t.__("Viewing"))+" "+t._s(t.__("Questions")))]),t._v(" "),s("div",{staticClass:"flex flex-col sm:flex-row gap-2"},[s("div",[s("a",{staticClass:"text-sm qt-link-success",attrs:{href:"#"},on:{click:function(e){return t.viewQuestions()}}},[t._v(t._s(t.__("View"))+" "+t._s(t.__("Questions")))])]),t._v(" "),s("div",{staticClass:"hidden sm:inline-block"},[t._v("|")]),t._v(" "),s("div",[s("a",{staticClass:"text-sm qt-link-success",attrs:{href:"#"},on:{click:function(e){return t.editQuestions()}}},[t._v(t._s(t.__("Add"))+" "+t._s(t.__("Questions")))])])])]),t._v(" "),s("div",{staticClass:"bg-gray-100 rounded p-6"},[t.loading?s("div",{staticClass:"grid grid-cols-1 gap-4 flex-wrap"},[s("admin-question-shimmer"),t._v(" "),s("admin-question-shimmer"),t._v(" "),s("admin-question-shimmer"),t._v(" "),s("admin-question-shimmer")],1):s("div",[s("div",{staticClass:"text-sm mb-4"},[s("span",{staticClass:"text-gray-500 font-normal"},[t._v(t._s(t.pagination.total)+" "+t._s(t.__("items_found_message"))+".")])]),t._v(" "),s("div",{staticClass:"grid grid-cols-1 gap-4 flex-wrap"},[t._l(t.questions,(function(e,r){return["MSA"===e.question_type?[s("MSAPreview",{attrs:{question:e},scopedSlots:t._u([{key:"action",fn:function(){return[s("button",{staticClass:"qt-btn-sm",class:[t.qEditFlag?"qt-btn-success":"qt-btn-danger",e.disabled||t.processing?"opacity-25":""],attrs:{disabled:e.disabled},domProps:{innerHTML:t._s(t.qEditFlag?t.__("Add"):t.__("Remove"))},on:{click:function(s){t.qEditFlag?t.addQuestion(e.id,r):t.removeQuestion(e.id,r)}}})]},proxy:!0}],null,!0)})]:t._e(),t._v(" "),"MMA"===e.question_type?[s("MMAPreview",{attrs:{question:e},scopedSlots:t._u([{key:"action",fn:function(){return[s("button",{staticClass:"qt-btn-sm",class:[t.qEditFlag?"qt-btn-success":"qt-btn-danger",e.disabled||t.processing?"opacity-25":""],attrs:{disabled:e.disabled},domProps:{innerHTML:t._s(t.qEditFlag?t.__("Add"):t.__("Remove"))},on:{click:function(s){t.qEditFlag?t.addQuestion(e.id,r):t.removeQuestion(e.id,r)}}})]},proxy:!0}],null,!0)})]:t._e(),t._v(" "),"TOF"===e.question_type?[s("TOFPreview",{attrs:{question:e},scopedSlots:t._u([{key:"action",fn:function(){return[s("button",{staticClass:"qt-btn-sm",class:[t.qEditFlag?"qt-btn-success":"qt-btn-danger",e.disabled||t.processing?"opacity-25":""],attrs:{disabled:e.disabled},domProps:{innerHTML:t._s(t.qEditFlag?t.__("Add"):t.__("Remove"))},on:{click:function(s){t.qEditFlag?t.addQuestion(e.id,r):t.removeQuestion(e.id,r)}}})]},proxy:!0}],null,!0)})]:t._e(),t._v(" "),"FIB"===e.question_type?[s("FIBPreview",{attrs:{question:e},scopedSlots:t._u([{key:"action",fn:function(){return[s("button",{staticClass:"qt-btn-sm",class:[t.qEditFlag?"qt-btn-success":"qt-btn-danger",e.disabled||t.processing?"opacity-25":""],attrs:{disabled:e.disabled},domProps:{innerHTML:t._s(t.qEditFlag?t.__("Add"):t.__("Remove"))},on:{click:function(s){t.qEditFlag?t.addQuestion(e.id,r):t.removeQuestion(e.id,r)}}})]},proxy:!0}],null,!0)})]:t._e(),t._v(" "),"MTF"===e.question_type?[s("MTFPreview",{attrs:{question:e},scopedSlots:t._u([{key:"action",fn:function(){return[s("button",{staticClass:"qt-btn-sm",class:[t.qEditFlag?"qt-btn-success":"qt-btn-danger",e.disabled||t.processing?"opacity-25":""],attrs:{disabled:e.disabled},domProps:{innerHTML:t._s(t.qEditFlag?t.__("Add"):t.__("Remove"))},on:{click:function(s){t.qEditFlag?t.addQuestion(e.id,r):t.removeQuestion(e.id,r)}}})]},proxy:!0}],null,!0)})]:t._e(),t._v(" "),"ORD"===e.question_type?[s("ORDPreview",{attrs:{question:e},scopedSlots:t._u([{key:"action",fn:function(){return[s("button",{staticClass:"qt-btn-sm",class:[t.qEditFlag?"qt-btn-success":"qt-btn-danger",e.disabled||t.processing?"opacity-25":""],attrs:{disabled:e.disabled},domProps:{innerHTML:t._s(t.qEditFlag?t.__("Add"):t.__("Remove"))},on:{click:function(s){t.qEditFlag?t.addQuestion(e.id,r):t.removeQuestion(e.id,r)}}})]},proxy:!0}],null,!0)})]:t._e(),t._v(" "),"SAQ"===e.question_type?[s("SAQPreview",{attrs:{question:e},scopedSlots:t._u([{key:"action",fn:function(){return[s("button",{staticClass:"qt-btn-sm",class:[t.qEditFlag?"qt-btn-success":"qt-btn-danger",e.disabled||t.processing?"opacity-25":""],attrs:{disabled:e.disabled},domProps:{innerHTML:t._s(t.qEditFlag?t.__("Add"):t.__("Remove"))},on:{click:function(s){t.qEditFlag?t.addQuestion(e.id,r):t.removeQuestion(e.id,r)}}})]},proxy:!0}],null,!0)})]:t._e()]})),t._v(" "),0===t.questions.length?s("div",{staticClass:"flex justify-center items-center"},[s("h4",{staticClass:"text-sm p-4 font-semibold"},[t._v(t._s(t.__("No Questions")))])]):t.pagination&&t.questions.length!==t.pagination.total?s("div",{staticClass:"flex justify-center items-center"},[s("button",{staticClass:"qt-btn-success",on:{click:t.loadMoreQuestions}},[t._v(t._s(t.__("Load More")))])]):s("div",{staticClass:"flex text-sm justify-center items-center py-4"},[t._v("\n                                        "+t._s(t.__("no_more_data_message"))+"\n                                    ")])],2)])])])])])])])])}),[],!1,null,null,null).exports},1082:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>_});var r=s(67),a=s(2422),i=s(2263),n=s(5807),o=s(7100),l=s(2001),c=s(379);function u(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,r)}return s}function d(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?u(Object(s),!0).forEach((function(e){p(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):u(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}function p(t,e,s){return e in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}const m={name:"Settings",components:{AdminLayout:r.Z,HorizontalStepper:a.Z,Button:i.default,InputNumber:n.default,PopInfo:o.Z,SelectButton:l.default},props:{practiceSet:Object,steps:Array,editFlag:{type:Boolean,default:!1},practiceSetId:Number,errors:Object},data:function(){return{form:{auto_grading:!this.editFlag||this.practiceSet.auto_grading,correct_marks:this.editFlag?this.practiceSet.correct_marks:1},autoModes:[{name:"Auto",code:!0},{name:"Manual",code:!1}],debounce:null,submitStatus:null}},validations:function(){return{form:d({correct_marks:{}},!this.form.auto_grading&&{correct_marks:{required:c.C1}})}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return"Practice Set Settings - "+this.$page.props.general.app_name+" Admin"}},methods:{submitForm:function(){var t=this;this.$v.$touch(),this.$v.$invalid?this.submitStatus="ERROR":(this.submitStatus="PENDING",setTimeout((function(){t.submitStatus="OK",t.update()}),100))},update:function(){var t=this;this.formValidated=!0,this.$inertia.post(route("practice-sets.settings.update",{id:this.practiceSet.id}),this.form,{onSuccess:function(){0===Object.keys(t.errors).length&&t.$emit("close",!0)}})}}};const _=(0,s(1900).Z)(m,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("admin-layout",[s("div",{staticClass:"container mx-auto pt-4 px-4 sm:px-6 lg:px-8"},[s("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"},[s("div",{staticClass:"mb-4 sm:mb-0 md:mb-0 lg:mb-0 xl:mb-0 lg:w-1/2"},[s("h2",{staticClass:"text-gray-800 dark:text-gray-100 text-lg font-bold"},[t._v(t._s(t.__("Practice Set"))+" "+t._s(t.__("Settings")))]),t._v(" "),s("p",{staticClass:"font-normal text-sm text-gray-600 dark:text-gray-100 mt-1",domProps:{innerHTML:t._s(t.editFlag?t.practiceSet.title:t.__("New")+" "+t.__("Practice Set"))}})]),t._v(" "),s("horizontal-stepper",{attrs:{steps:t.steps,"edit-flag":t.editFlag}})],1)]),t._v(" "),s("div",{staticClass:"container mx-auto py-8 px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"card"},[s("div",{staticClass:"card-body"},[s("div",{staticClass:"flex justify-center flex-wrap"},[s("div",{staticClass:"md:w-8/12 w-full py-6 md:pb-0 md:px-6"},[s("form",{staticClass:"my-6 w-11/12 mx-auto xl:w-full xl:mx-0",on:{submit:function(e){return e.preventDefault(),t.submitForm(e)}}},[s("div",{staticClass:"w-full flex justify-between items-center mb-6"},[s("div",{staticClass:"flex gap-2"},[s("label",{staticClass:"font-semibold text-sm text-gray-800 pb-1",attrs:{for:"auto_grading"}},[t._v(t._s(t.__("Points Mode")))]),t._v(" "),s("pop-info",{scopedSlots:t._u([{key:"message",fn:function(){return[s("ul",[s("li",{staticClass:"text-sm text-gray-500"},[s("span",{staticClass:"text-green-400 font-semibold"},[t._v("Auto")]),t._v(" - Points will be assigned based on question's default marks\n                                                ")]),t._v(" "),s("li",{staticClass:"text-sm text-gray-500"},[s("span",{staticClass:"text-green-400 font-semibold"},[t._v("Manual")]),t._v(" - Points will be assigned to each correct answered question as specified\n                                                ")])])]},proxy:!0}])})],1),t._v(" "),s("SelectButton",{attrs:{id:"auto_grading",options:t.autoModes,dataKey:"code",optionValue:"code",optionLabel:"name"},model:{value:t.form.auto_grading,callback:function(e){t.$set(t.form,"auto_grading",e)},expression:"form.auto_grading"}})],1),t._v(" "),t.form.auto_grading?t._e():s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 text-sm font-semibold text-gray-800",attrs:{for:"correct_marks"}},[t._v(t._s(t.__("Points for Correct Answer"))),s("span",{staticClass:"ml-1 text-red-400"},[t._v("*")])]),t._v(" "),s("InputNumber",{attrs:{id:"correct_marks",placeholder:t.__("Points"),"aria-describedby":"correct_marks-help"},model:{value:t.$v.form.correct_marks.$model,callback:function(e){t.$set(t.$v.form.correct_marks,"$model",e)},expression:"$v.form.correct_marks.$model"}}),t._v(" "),s("div",{staticClass:"form-control-errors"},[t.$v.form.correct_marks.$error&&!t.$v.form.correct_marks.required?s("p",{staticClass:"text-xs text-red-500 pt-2",attrs:{role:"alert"}},[t._v(t._s(t.__("Points"))+" "+t._s(t.__("is required")))]):t._e()])],1),t._v(" "),s("div",{staticClass:"w-full flex justify-end my-8"},[s("button",{staticClass:"qt-btn qt-btn-success",attrs:{type:"submit"},domProps:{innerHTML:t._s(t.editFlag?t.__("Update"):t.__("Save"))}})])])])])])])])])}),[],!1,null,null,null).exports},5992:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>f});var r=s(67),a=s(8801),i=s(4974),n=s(8558),o=s(2263),l=s(9745),c=s(728),u=s(7531),d=s(3194);function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var s=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==s)return;var r,a,i=[],n=!0,o=!1;try{for(s=s.call(t);!(n=(r=s.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return m(t,e);var s=Object.prototype.toString.call(t).slice(8,-1);"Object"===s&&t.constructor&&(s=t.constructor.name);if("Map"===s||"Set"===s)return Array.from(t);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return m(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,r=new Array(e);s<e;s++)r[s]=t[s];return r}const _={components:{AdminLayout:r.Z,Column:a.default,InputText:i.default,Toolbar:n.default,Button:o.default,Sidebar:l.default,Chip:c.default,Tag:u.default,NoDataTable:d.Z},props:{practiceSets:Object,skills:Array,errors:Object},data:function(){return{columns:[{label:this.__("Code"),field:"code",filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Code"),filterValue:null,trigger:"enter"},sortable:!1,width:"11rem"},{label:this.__("Title"),field:"title",filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Title"),filterValue:null,trigger:"enter"},sortable:!1},{label:this.__("Questions"),field:"questions",sortable:!1},{label:this.__("Sub Category"),field:"subCategory",filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Sub Category"),filterValue:null,trigger:"enter"},sortable:!1},{label:this.__("Skill"),field:"skill",filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Skill"),filterValue:null,trigger:"enter"},sortable:!1},{label:this.__("Status"),field:"status",sortable:!1,filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Status"),filterValue:null,filterDropdownItems:[{value:1,text:this.__("Published")},{value:0,text:this.__("Draft")}]}},{label:this.__("Actions"),field:"actions",sortable:!1}],pagination:{enabled:!0,mode:"pages",perPage:this.practiceSets.meta.pagination.per_page,setCurrentPage:this.practiceSets.meta.pagination.current_page,perPageDropdown:[10,20,50,100],dropdownAllowAll:!1},serverParams:{columnFilters:{},sort:{field:"",type:""},page:1,perPage:10},loading:!1}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return"Practice Sets - "+this.$page.props.general.app_name+" Admin"}},methods:{updateParams:function(t){this.serverParams=Object.assign({},this.serverParams,t)},onPageChange:function(t){this.updateParams({page:t.currentPage}),this.loadItems()},onPerPageChange:function(t){this.updateParams({perPage:t.currentPerPage}),this.loadItems()},onSortChange:function(t){this.updateParams({sort:[{type:t.sortType,field:this.columns[t.columnIndex].field}]}),this.loadItems()},onColumnFilter:function(t){this.updateParams(t),this.loadItems()},getQueryParams:function(){for(var t={page:this.serverParams.page,perPage:this.serverParams.perPage},e=0,s=Object.entries(this.serverParams.columnFilters);e<s.length;e++){var r=p(s[e],2),a=r[0],i=r[1];i&&(t[a]=i)}return t},loadItems:function(){this.$inertia.get(route(route().current()),this.getQueryParams(),{replace:!1,preserveState:!0,preserveScroll:!0})},editPracticeSet:function(t){this.$inertia.get(route("practice-sets.edit",{id:t}))},goToAnalytics:function(t){this.$inertia.get(route("practice-sets.overall_report",{practice_set:t}))},deleteUserGroup:function(t){var e=this;this.$confirm.require({header:this.__("Confirm Delete"),message:this.__("Do you want to delete this record?"),icon:"pi pi-info-circle",acceptClass:"p-button-danger",rejectLabel:this.__("Cancel"),acceptLabel:this.__("Delete"),accept:function(){e.$inertia.delete(route("practice-sets.destroy",{id:t}),{},{onSuccess:function(){e.$toast.add({severity:"info",summary:e.__("Confirmed"),detail:e.__("Record deleted"),life:3e3})}})},reject:function(){}})},handleCopyStatus:function(t){t&&this.$toast.add({severity:"success",summary:this.__("Copied"),detail:this.__("Copied Successfully!"),life:2e3})}}};const f=(0,s(1900).Z)(_,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("admin-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v(t._s(t.__("Practice Sets")))])]},proxy:!0},{key:"actions",fn:function(){return[s("inertia-link",{staticClass:"qt-btn qt-btn-success",attrs:{href:t.route("practice-sets.create")}},[t._v("\n            "+t._s(t.__("New"))+" "+t._s(t.__("Practice Set"))+"\n        ")])]},proxy:!0}])},[t._v(" "),t._v(" "),s("div",{staticClass:"container mx-auto py-8 px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"card"},[s("div",{staticClass:"card-body"},[s("vue-good-table",{attrs:{mode:"remote","pagination-options":t.pagination,columns:t.columns,totalRows:t.practiceSets.meta.pagination.total,rows:t.practiceSets.data,rtl:t.$page.props.rtl},on:{"on-page-change":t.onPageChange,"on-column-filter":t.onColumnFilter,"on-per-page-change":t.onPerPageChange},scopedSlots:t._u([{key:"table-row",fn:function(e){return["code"===e.column.field?s("div",[s("Tag",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.row.code,expression:"props.row.code",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.handleCopyStatus,expression:"handleCopyStatus",arg:"success"}],staticClass:"w-full p-mr-2 mb-2 text-xs cursor-pointer",attrs:{severity:"info",value:e.row.code,icon:"pi pi-copy"}})],1):"status"===e.column.field?s("div",[s("span",{class:[e.row.status?"badge-success":"badge-danger","badge"]},[t._v("\n                                "+t._s(e.row.status?t.__("Published"):t.__("Draft"))+"\n                            ")])]):"actions"===e.column.field?s("div",[s("Button",{staticClass:"p-button-rounded p-button-secondary p-button-text p-mr-2",attrs:{icon:"pi pi-pencil"},on:{click:function(s){return t.editPracticeSet(e.row.id)}}}),t._v(" "),s("Button",{staticClass:"p-button-rounded p-button-secondary p-button-text p-mr-2",attrs:{icon:"pi pi-chart-line"},on:{click:function(s){return t.goToAnalytics(e.row.id)}}}),t._v(" "),s("Button",{staticClass:"p-button-rounded p-button-danger p-button-text",attrs:{icon:"pi pi-trash"},on:{click:function(s){return t.deleteUserGroup(e.row.id)}}})],1):s("span",[t._v("\n                          "+t._s(e.formattedRow[e.column.field])+"\n                        ")])]}}])},[t._v(" "),s("div",{attrs:{slot:"emptystate"},slot:"emptystate"},[s("no-data-table",[s("template",{slot:"action"},[s("inertia-link",{staticClass:"qt-btn-sm qt-btn-primary",attrs:{href:t.route("practice-sets.create")}},[t._v("\n                                    Create New\n                                ")])],1)],2)],1)])],1)])])])}),[],!1,null,null,null).exports},8608:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>m});var r=s(67),a=s(8801),i=s(4974),n=s(8558),o=s(2263),l=s(728),c=s(7531);function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var s=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==s)return;var r,a,i=[],n=!0,o=!1;try{for(s=s.call(t);!(n=(r=s.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return d(t,e);var s=Object.prototype.toString.call(t).slice(8,-1);"Object"===s&&t.constructor&&(s=t.constructor.name);if("Map"===s||"Set"===s)return Array.from(t);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return d(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,r=new Array(e);s<e;s++)r[s]=t[s];return r}const p={components:{AdminLayout:r.Z,Column:a.default,InputText:i.default,Toolbar:n.default,Button:o.default,Chip:l.default,Tag:c.default},props:{questionTypes:Object,errors:Object},data:function(){return{columns:[{label:this.__("Code"),field:"code",sortable:!1,width:"11rem"},{label:this.__("Name"),field:"name",sortable:!1,width:"16rem"},{label:this.__("Short Description"),field:"short_description",sortable:!1},{label:this.__("Status"),field:"status",sortable:!1,width:"11rem"}],options:{enabled:!1,mode:"pages",perPage:this.questionTypes.meta.pagination.per_page,setCurrentPage:this.questionTypes.meta.pagination.current_page,perPageDropdown:[10,20,50,100],dropdownAllowAll:!1},serverParams:{columnFilters:{},sort:{field:"",type:""},page:1,perPage:10},loading:!1}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return"Question Types - "+this.$page.props.general.app_name+" Admin"}},methods:{updateParams:function(t){this.serverParams=Object.assign({},this.serverParams,t)},onPageChange:function(t){this.updateParams({page:t.currentPage}),this.loadItems()},onPerPageChange:function(t){this.updateParams({perPage:t.currentPerPage}),this.loadItems()},onSortChange:function(t){this.updateParams({sort:[{type:t.sortType,field:this.columns[t.columnIndex].field}]}),this.loadItems()},onColumnFilter:function(t){this.updateParams(t),this.loadItems()},getQueryParams:function(){for(var t={page:this.serverParams.page,perPage:this.serverParams.perPage},e=0,s=Object.entries(this.serverParams.columnFilters);e<s.length;e++){var r=u(s[e],2),a=r[0],i=r[1];i&&(t[a]=i)}return t},loadItems:function(){this.$inertia.get(route(route().current()),this.getQueryParams(),{replace:!1,preserveState:!0,preserveScroll:!0})},handleCopyStatus:function(t){t&&this.$toast.add({severity:"success",summary:this.__("Copied"),detail:this.__("Copied Successfully!"),life:2e3})}}};const m=(0,s(1900).Z)(p,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("admin-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v(t._s(t.__("Question Types")))])]},proxy:!0}])},[t._v(" "),s("div",{staticClass:"container mx-auto py-8 px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"card"},[s("div",{staticClass:"card-body"},[s("vue-good-table",{attrs:{mode:"remote","pagination-options":t.options,columns:t.columns,totalRows:t.questionTypes.meta.pagination.total,rows:t.questionTypes.data,rtl:t.$page.props.rtl},on:{"on-page-change":t.onPageChange,"on-column-filter":t.onColumnFilter,"on-per-page-change":t.onPerPageChange},scopedSlots:t._u([{key:"table-row",fn:function(e){return["code"===e.column.field?s("div",[s("Tag",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.row.code,expression:"props.row.code",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.handleCopyStatus,expression:"handleCopyStatus",arg:"success"}],staticClass:"w-full p-mr-2 text-sm cursor-pointer",attrs:{value:e.row.code,icon:"pi pi-copy"}})],1):"status"===e.column.field?s("div",[s("span",{staticClass:"text-sm",class:["Active"===e.row.status?"badge-success":"badge-danger","badge"]},[t._v(t._s(t.__(e.row.status)))])]):s("span",[t._v("\n                          "+t._s(e.formattedRow[e.column.field])+"\n                        ")])]}}])})],1)])])])}),[],!1,null,null,null).exports},98:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>w});var r=s(2422),a=s(67),i=s(379);const n={name:"ComprehensionOptions",props:{parentComprehensions:Array,parentComprehensionId:Number},data:function(){return{comprehensions:this.parentComprehensions,comprehensionId:this.parentComprehensionId,debounce:null}},methods:{searchComprehensions:function(t,e){if(""!==t){var s=this;e(!0),clearTimeout(this.debounce),s.comprehensions=[],this.debounce=setTimeout((function(){axios.get(route("search_comprehensions",{query:t})).then((function(t){s.comprehensions=t.data.comprehensions})).catch((function(t){e(!1)})).then((function(){e(!1)}))}),600)}},selectComprehension:function(t){this.$emit("modifyComprehension",this.comprehensionId)}}};var o=s(1900);const l=(0,o.Z)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"comprehension-options"},[s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 text-sm font-semibold text-gray-800"},[t._v(t._s(t.__("Comprehension Passage")))]),t._v(" "),s("v-select",{attrs:{id:"comprehension_id",options:t.comprehensions,reduce:function(t){return t.id},label:"title",placeholder:"Select Comprehension",dir:t.$page.props.rtl?"rtl":"ltr"},on:{input:t.selectComprehension,search:t.searchComprehensions},scopedSlots:t._u([{key:"no-options",fn:function(e){e.search;return[e.searching?[t._v(t._s(t.__("No results were found for this search"))+".")]:s("em",{staticClass:"opacity-50"},[t._v(t._s(t.__("Start typing to search"))+".")])]}}]),model:{value:t.comprehensionId,callback:function(e){t.comprehensionId=e},expression:"comprehensionId"}})],1)])}),[],!1,null,null,null).exports;var c=s(4974),u=s(2001),d=s(2263),p=s(5859);const m={name:"VideoOptions",components:{InputText:c.default,SelectButton:u.default,VuePlyr:p.Z,Button:d.default},props:{parentOptions:Object},data:function(){return{options:this.parentOptions,videoFormats:[{value:"mp4",name:"MP4 Video"},{value:"youtube",name:"YouTube Video"},{value:"vimeo",name:"Vimeo Video"}],player:!1}},methods:{showPlayer:function(){var t=this;this.player=!1,""!==this.options.link&&null!==this.options.link&&this.$nextTick((function(){t.player=!0}))},changePlayer:function(t){this.player=!1,this.options.link="",this.selectOptions()},selectOptions:function(){this.$emit("modifyOptions",this.options)}},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":""}},created:function(){null===this.options&&(this.options={video_type:"mp4",link:""})}};const _=(0,o.Z)(m,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"audio-options"},[s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 text-sm font-semibold text-gray-800"},[t._v("\n            "+t._s(t.__("Video Type"))+" (Supported YouTube, Vimeo & .mp4 files)\n        ")]),t._v(" "),s("SelectButton",{attrs:{options:t.videoFormats,optionLabel:"name",optionValue:"value",dataKey:"value"},on:{input:t.changePlayer},model:{value:t.options.video_type,callback:function(e){t.$set(t.options,"video_type",e)},expression:"options.video_type"}})],1),t._v(" "),s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 text-sm font-semibold text-gray-800",attrs:{for:"video_link"}},[s("span",{domProps:{innerHTML:t._s("mp4"===t.options.video_type?t.__("Video Link"):t.__("Video")+" ID")}})]),t._v(" "),s("InputText",{attrs:{id:"video_link",placeholder:"mp4"===t.options.video_type?t.__("Video Link"):t.__("Video")+" ID","aria-describedby":"video_link-help"},on:{input:t.selectOptions},model:{value:t.options.link,callback:function(e){t.$set(t.options,"link",e)},expression:"options.link"}})],1),t._v(" "),s("div",{staticClass:"my-4 flex"},[s("Button",{attrs:{type:"button",icon:"pi pi-play",label:t.__("Preview")},on:{click:t.showPlayer}})],1),t._v(" "),t.player&&"mp4"===t.options.video_type?s("div",[s("vue-plyr",[s("video",{attrs:{src:t.options.link}},[s("source",{attrs:{src:t.options.link,type:"video/mp4"}})])])],1):t._e(),t._v(" "),t.player&&"youtube"===t.options.video_type?s("div",[s("vue-plyr",[s("div",{staticClass:"plyr__video-embed"},[s("iframe",{attrs:{src:t.getVideoLink,allowfullscreen:"",allowtransparency:"",allow:"autoplay"}})])])],1):t._e(),t._v(" "),t.player&&"vimeo"===t.options.video_type?s("div",[s("vue-plyr",[s("div",{staticClass:"plyr__video-embed"},[s("iframe",{attrs:{src:t.getVideoLink}})])])],1):t._e()])}),[],!1,null,null,null).exports;const f={name:"AudioOptions",components:{InputText:c.default,SelectButton:u.default,VuePlyr:p.Z,Button:d.default},props:{parentOptions:Object},data:function(){return{options:this.parentOptions,audioFormats:[{value:"mp3",name:"MP3 Format"},{value:"ogg",name:"OGG Format"}],player:!1}},methods:{showPlayer:function(){var t=this;this.player=!1,""!==this.options.link&&null!==this.options.link&&this.$nextTick((function(){t.player=!0}))},changePlayer:function(t){this.player=!1,this.options.link="",this.selectOptions()},selectOptions:function(){this.$emit("modifyOptions",this.options)}},computed:{getAudioLink:function(){return this.options.link}},created:function(){null===this.options&&(this.options={audio_type:"mp3",link:""})}};const v=(0,o.Z)(f,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"audio-options"},[s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 text-sm font-semibold text-gray-800"},[t._v("\n            "+t._s(t.__("Audio Type"))+" (Supported .mp3 & .ogg files)\n        ")]),t._v(" "),s("SelectButton",{attrs:{options:t.audioFormats,optionLabel:"name",optionValue:"value",dataKey:"value"},on:{input:t.changePlayer},model:{value:t.options.audio_type,callback:function(e){t.$set(t.options,"audio_type",e)},expression:"options.audio_type"}})],1),t._v(" "),s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 text-sm font-semibold text-gray-800",attrs:{for:"audio_link"}},[t._v("\n            "+t._s(t.__("Audio Link"))+"\n        ")]),t._v(" "),s("InputText",{attrs:{id:"audio_link",placeholder:t.__("Audio Link"),"aria-describedby":"audio_link-help"},on:{input:t.selectOptions},model:{value:t.options.link,callback:function(e){t.$set(t.options,"link",e)},expression:"options.link"}})],1),t._v(" "),s("div",{staticClass:"my-4 flex"},[s("Button",{attrs:{type:"button",icon:"pi pi-play",label:t.__("Preview")},on:{click:t.showPlayer}})],1),t._v(" "),t.player&&"mp3"===t.options.audio_type?s("div",[s("vue-plyr",[s("audio",{attrs:{controls:"",crossorigin:"",playsinline:""}},[s("source",{attrs:{src:t.getAudioLink,type:"audio/mp3"}})])])],1):t._e(),t._v(" "),t.player&&"ogg"===t.options.audio_type?s("div",[s("vue-plyr",[s("audio",{attrs:{controls:"",crossorigin:"",playsinline:""}},[s("source",{attrs:{src:t.getAudioLink,type:"audio/ogg"}})])])],1):t._e()])}),[],!1,null,null,null).exports;var h=s(4212);function g(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,r)}return s}function b(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?g(Object(s),!0).forEach((function(e){x(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):g(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}function x(t,e,s){return e in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}const y={components:{AdminLayout:a.Z,HorizontalStepper:r.Z,ComprehensionOptions:l,VideoOptions:_,AudioOptions:v,Button:d.default,RadioButton:h.default,SelectButton:u.default},props:{question:Object,steps:Array,questionType:Object,editFlag:!1,questionId:Number,errors:Object,initialComprehensions:Array},metaInfo:function(){return{title:this.title}},data:function(){return{form:{has_attachment:!!this.editFlag&&this.question.has_attachment,attachment_type:this.editFlag?this.question.attachment_type:"",comprehension_id:this.editFlag?this.question.comprehension_passage_id:null,attachment_options:this.editFlag?this.question.attachment_options:null},attachmentTypes:[{id:"comprehension",name:this.__("Comprehension Passage")},{id:"audio",name:this.__("Audio")},{id:"video",name:this.__("Video")}],choices:[{name:"Yes",code:!0},{name:"No",code:!1}],debounce:null,editorUrl:window.CKEditorURL,submitStatus:null}},validations:function(){return{form:b(b(b({},this.form.has_attachment&&"comprehension"===this.form.attachment_type&&{comprehension_id:{required:i.C1}}),this.form.has_attachment&&"audio"===this.form.attachment_type&&{attachment_options:{link:{required:i.C1}}}),this.form.has_attachment&&"video"===this.form.attachment_type&&{attachment_options:{link:{required:i.C1}}})}},methods:{submitForm:function(){var t=this;this.$v.$touch(),this.$v.$invalid?this.submitStatus="ERROR":(this.submitStatus="PENDING",setTimeout((function(){t.submitStatus="OK",t.update()}),100))},update:function(){var t=this;this.formValidated=!0,this.$inertia.post(route("update_question_attachment",{id:this.questionId}),this.form,{onSuccess:function(){0===Object.keys(t.errors).length&&t.$emit("close",!0)}})},attachmentTypeChanged:function(t){"video"===t&&(this.form.attachment_options={video_type:"mp4",link:""}),"audio"===t&&(this.form.attachment_options={audio_type:"mp3",link:""})},updateAudioOptions:function(t){this.form.attachment_options=t},updateVideoOptions:function(t){this.form.attachment_options=t},updateComprehension:function(t){this.form.comprehension_id=t}},computed:{title:function(){return"Question Attachment - "+this.$page.props.general.app_name+" Admin"}}};const w=(0,o.Z)(y,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("admin-layout",[s("div",{staticClass:"container mx-auto pt-4 px-4 sm:px-6 lg:px-8"},[s("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"},[s("div",{staticClass:"mb-4 sm:mb-0 md:mb-0 lg:mb-0 xl:mb-0 lg:w-1/2"},[s("h2",{staticClass:"text-gray-800 dark:text-gray-100 text-lg font-bold"},[t._v(t._s(t.__("Question"))+" "+t._s(t.__("Attachment")))]),t._v(" "),s("p",{staticClass:"font-normal text-sm text-gray-600 dark:text-gray-100 mt-1"},[t._v(t._s(t.questionType.name)+" "+t._s(t.__("Question")))])]),t._v(" "),s("horizontal-stepper",{attrs:{steps:t.steps,"edit-flag":t.editFlag}})],1)]),t._v(" "),s("div",{staticClass:"container mx-auto py-8 px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"card"},[s("div",{staticClass:"card-body"},[s("div",{staticClass:"flex justify-center flex-wrap"},[s("div",{staticClass:"md:w-8/12 w-full py-6 md:pb-0 md:px-6"},[s("form",{on:{submit:function(e){return e.preventDefault(),t.submitForm(e)}}},[s("div",{staticClass:"w-full flex flex-col mb-6"},[s("div",{staticClass:"flex gap-2 mb-2"},[s("label",{staticClass:"font-semibold text-sm text-gray-800 pb-1",attrs:{for:"has_attachment"}},[t._v(t._s(t.__("Enable Question Attachment")))])]),t._v(" "),s("SelectButton",{attrs:{id:"has_attachment",options:t.choices,dataKey:"code",optionValue:"code",optionLabel:"name"},model:{value:t.form.has_attachment,callback:function(e){t.$set(t.form,"has_attachment",e)},expression:"form.has_attachment"}})],1),t._v(" "),s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 text-sm font-semibold text-gray-800"},[t._v(t._s(t.__("Attachment Type")))]),t._v(" "),s("div",{staticClass:"flex gap-4 items-center my-2"},t._l(t.attachmentTypes,(function(e){return s("div",{key:e.id,staticClass:"p-field-radiobutton"},[s("RadioButton",{attrs:{id:e.id,name:"attachment_type",value:e.id},on:{input:function(e){return t.attachmentTypeChanged(e)}},model:{value:t.form.attachment_type,callback:function(e){t.$set(t.form,"attachment_type",e)},expression:"form.attachment_type"}}),t._v(" "),s("label",{staticClass:"custom-control-label",attrs:{for:e.id}},[t._v(t._s(e.name))])],1)})),0)]),t._v(" "),t.form.has_attachment?s("div",{staticClass:"w-full"},[t.form.has_attachment&&"comprehension"===t.form.attachment_type?s("div",{staticClass:"mb-4"},[s("ComprehensionOptions",{attrs:{"parent-comprehensions":t.initialComprehensions,"parent-comprehension-id":t.form.comprehension_id},on:{modifyComprehension:t.updateComprehension}})],1):t._e(),t._v(" "),t.form.has_attachment&&"audio"===t.form.attachment_type?s("div",{staticClass:"mb-4"},[s("AudioOptions",{attrs:{parentOptions:t.form.attachment_options},on:{modifyOptions:t.updateAudioOptions}})],1):t._e(),t._v(" "),t.form.has_attachment&&"video"===t.form.attachment_type?s("div",{staticClass:"mb-4"},[s("VideoOptions",{attrs:{parentOptions:t.form.attachment_options},on:{modifyOptions:t.updateVideoOptions}})],1):t._e()]):t._e(),t._v(" "),t.form.has_attachment&&"comprehension"===t.form.attachment_type?s("div",{staticClass:"form-control-errors"},[t.$v.form.comprehension_id.$error&&!t.$v.form.comprehension_id.required?s("p",{staticClass:"text-xs text-red-500 pt-2",attrs:{role:"alert"}},[t._v(t._s(t.__("Comprehension"))+" "+t._s(t.__("is required"))+".")]):t._e()]):t._e(),t._v(" "),t.form.has_attachment&&"video"===t.form.attachment_type?s("div",{staticClass:"form-control-errors"},[t.$v.form.attachment_options.link.$error&&!t.$v.form.attachment_options.link.required?s("p",{staticClass:"text-xs text-red-500 pt-2",attrs:{role:"alert"}},[t._v(t._s(t.__("Video Link"))+" "+t._s(t.__("is required"))+".")]):t._e()]):t._e(),t._v(" "),t.form.has_attachment&&"audio"===t.form.attachment_type?s("div",{staticClass:"form-control-errors"},[t.$v.form.attachment_options.link.$error&&!t.$v.form.attachment_options.link.required?s("p",{staticClass:"text-xs text-red-500 pt-2",attrs:{role:"alert"}},[t._v(t._s(t.__("Audio Link"))+" "+t._s(t.__("is required"))+".")]):t._e()]):t._e(),t._v(" "),s("div",{staticClass:"w-full flex justify-end my-8"},[s("Button",{attrs:{type:"submit",label:t.editFlag?t.__("Update"):t.__("Save")}})],1)])])])])])])])}),[],!1,null,null,null).exports},8190:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>z});var r=s(2422),a=s(67),i=s(8465);const n={name:"FIBOptions",components:{InputSwitch:i.default},props:{parentPreferences:Object},data:function(){return{preferences:this.parentPreferences}},methods:{selectAnswer:function(t){this.$emit("modifyPreferences",this.preferences)}}};var o=s(1900);const l=(0,o.Z)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"fib-options"},[s("div",{staticClass:"transition duration-150 ease-in-out w-full mx-auto py-3 px-4 bg-white lg:flex items-center justify-between shadow rounded"},[s("div",{staticClass:"lg:flex sm:items-start lg:items-center"},[s("div",{staticClass:"flex items-end"},[s("div",{staticClass:"ltr:mr-2 rtl:ml-2 text-red-400"},[s("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"20",height:"20",fill:"currentColor"}},[s("path",{staticClass:"heroicon-ui",attrs:{d:"M12 22a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm0-9a1 1 0 0 1 1 1v4a1 1 0 0 1-2 0v-4a1 1 0 0 1 1-1zm0-4a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"}})])]),t._v(" "),s("p",{staticClass:"ltr:mr-2 rtl:ml-2 text-sm font-bold text-red-400"},[t._v(t._s(t.__("Note")))])]),t._v(" "),s("div",{staticClass:"h-1 w-1 bg-gray-300 dark:bg-gray-700 rounded-full ltr:mr-2 rtl:ml-2 hidden xl:block"}),t._v(" "),s("p",{staticClass:"text-sm text-gray-600 dark:text-gray-400 pt-2 lg:pt-0 pb-2 lg:pb-0 w-4/5 lg:w-auto"},[t._v("\n                "+t._s(t.__("fib_instruction_note"))+"\n            ")])])])])}),[],!1,null,null,null).exports;var c=s(5807);const u={name:"SAQOptions",components:{InputText:s(4974).default,InputNumber:c.default},props:{parentOptions:Array,parentAnswer:null},data:function(){return{options:this.parentOptions,correct_answer:this.parentAnswer}},methods:{addOption:function(){var t=this;this.options.length>4?this.$confirm.require({header:"Are you sure?",message:"Usually, a good question will not have more than 5 options!",icon:"pi pi-info-circle",acceptClass:"p-button-warning",rejectLabel:"Cancel",acceptLabel:"Add Anyway",accept:function(){t.options.length<=9?t.options.push({option:"",partial_weightage:0}):(t.$toast.add({severity:"error",summary:"Nope",detail:"You can only add a maximum no. of 10 options",life:3e3}),Swal.fire({type:"error",text:"You can only add a maximum no. of 10 options"}))},reject:function(){}}):this.options.length<=9?this.options.push({option:"",partial_weightage:0}):this.$toast.add({severity:"error",summary:"Nope",detail:"You can only add a maximum no. of 10 options",life:3e3})},removeOption:function(t){this.options.splice(t,1),this.correct_answer="",this.$emit("modifyOptions",this.options),this.$emit("modifyAnswer",this.correct_answer)},selectAnswer:function(t){this.options[this.correct_answer-1].partial_weightage=0,this.$emit("modifyAnswer",this.correct_answer)}}};const d=(0,o.Z)(u,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"msa-options"},[t._l(t.options,(function(e,r){return s("div",{key:r,staticClass:"mb-4"},[s("div",{staticClass:"text-sm font-semibold mb-2"},[t._v(t._s(t.__("Acceptable Answer"))+" "+t._s(r+1))]),t._v(" "),s("InputText",{staticClass:"w-full",staticStyle:{"border-radius":"0 !important"},attrs:{id:"option_text_"+r},model:{value:t.options[r].option,callback:function(e){t.$set(t.options[r],"option",e)},expression:"options[index].option"}}),t._v(" "),s("div",{staticClass:"flex bg-gray-50 border-b border-l border-r border-gray-300 justify-between items-center px-4 py-2"},[s("div",{staticClass:"flex gap-1 items-center"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.correct_answer,expression:"correct_answer"}],staticClass:"custom-control-input",attrs:{type:"radio",id:"option-"+r},domProps:{value:r+1,checked:t._q(t.correct_answer,r+1)},on:{change:[function(e){t.correct_answer=r+1},t.selectAnswer]}}),t._v(" "),s("label",{staticClass:"custom-control-label",attrs:{for:"option-"+r}},[t._v(t._s(t.__("Exact Answer")))])]),t._v(" "),s("div",{staticClass:"flex items-center justify-end gap-2"},[s("div",{staticClass:"flex gap-1 items-center"},[s("label",{staticClass:"custom-control-label text-sm",attrs:{for:"weight-"+r}},[t._v(t._s(t.__("Partial Weighting"))+": ")]),t._v(" "),s("InputNumber",{staticClass:"tiny-input",attrs:{id:"weight-"+r,suffix:" %",disabled:t.correct_answer-1===r},model:{value:t.options[r].partial_weightage,callback:function(e){t.$set(t.options[r],"partial_weightage",e)},expression:"options[index].partial_weightage"}})],1),t._v(" "),r>0?s("div",{staticClass:"text-sm bg-red-500 px-2 py-1 rounded text-white text-sm cursor-pointer hover:bg-red-600",on:{click:function(e){return t.removeOption(r)}}},[t._v("\n                    "+t._s(t.__("Remove"))+"\n                ")]):t._e()])])],1)})),t._v(" "),s("button",{staticClass:"text-sm transition focus:outline-none duration-150 w-full my-2 p-4 border border-green-300 border-dashed hover:bg-green-100 hover:border-green-400",attrs:{type:"button"},on:{click:t.addOption}},[t._v(t._s(t.__("Add Option")))])],2)}),[],!1,null,null,null).exports;var p=s(8067),m=s.n(p);const _={name:"MTFOptions",props:{parentOptions:Array},components:{ckeditor:m().component,InputNumber:c.default},data:function(){return{options:this.parentOptions,editorUrl:window.CKEditorURL,editorConfig:{contentsLangDirection:this.$page.props.rtl?"rtl":"ltr",height:"75px",toolbar:[["Image","Katex"],["Subscript","Superscript"]]}}},methods:{addOption:function(){var t=this;this.options.length>4?this.$confirm.require({header:"Are you sure?",message:"Usually, a good question will not have more than 5 options!",icon:"pi pi-info-circle",acceptClass:"p-button-warning",rejectLabel:"Cancel",acceptLabel:"Add Anyway",accept:function(){t.options.length<=9?t.options.push({option:"",pair:"",partial_weightage:0}):t.$toast.add({severity:"error",summary:"Nope",detail:"You can only add a maximum no. of 10 options",life:3e3})},reject:function(){}}):this.options.length<=9?this.options.push({option:"",pair:"",partial_weightage:0}):this.$toast.add({severity:"error",summary:"Nope",detail:"You can only add a maximum no. of 10 options",life:3e3})},clearAnswer:function(t){this.$emit("modifyOptions",this.options)},removeOption:function(t){this.options.splice(t,1)}}};const f=(0,o.Z)(_,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"mtf-options"},[s("div",{staticClass:"transition duration-150 ease-in-out w-full mx-auto py-3 px-4 bg-white lg:flex items-center justify-between shadow rounded"},[s("div",{staticClass:"lg:flex sm:items-start lg:items-center"},[s("div",{staticClass:"flex items-end"},[s("div",{staticClass:"ltr:mr-2 rtl:ml-2 text-red-400"},[s("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"20",height:"20",fill:"currentColor"}},[s("path",{staticClass:"heroicon-ui",attrs:{d:"M12 22a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm0-9a1 1 0 0 1 1 1v4a1 1 0 0 1-2 0v-4a1 1 0 0 1 1-1zm0-4a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"}})])]),t._v(" "),s("p",{staticClass:"ltr:mr-2 rtl:ml-2 text-sm font-bold text-red-400"},[t._v(t._s(t.__("Note")))])]),t._v(" "),s("div",{staticClass:"h-1 w-1 bg-gray-300 dark:bg-gray-700 rounded-full ltr:mr-2 rtl:ml-2 hidden xl:block"}),t._v(" "),s("p",{staticClass:"text-sm text-gray-600 dark:text-gray-400 pt-2 lg:pt-0 pb-2 lg:pb-0 w-4/5 lg:w-auto"},[t._v("\n                "+t._s(t.__("pair_shuffle_note"))+"\n            ")])])]),t._v(" "),t._l(t.options,(function(e,r){return s("div",{key:r,staticClass:"my-4"},[s("div",{staticClass:" font-semibold mb-2"},[t._v(t._s(t.__("Pair"))+" "+t._s(r+1))]),t._v(" "),s("div",{staticClass:"w-full grid grid-cols-2 bg-white"},[s("ckeditor",{staticClass:"w-full",class:[t.$page.props.rtl?"cke_rtl":"cke_ltr"],attrs:{id:"option_text_"+r,"editor-url":t.editorUrl,config:t.editorConfig},model:{value:t.options[r].option,callback:function(e){t.$set(t.options[r],"option",e)},expression:"options[index].option"}}),t._v(" "),s("ckeditor",{staticClass:"w-full",class:[t.$page.props.rtl?"cke_rtl":"cke_ltr"],attrs:{id:"option_pair_"+r,"editor-url":t.editorUrl,config:t.editorConfig},model:{value:t.options[r].pair,callback:function(e){t.$set(t.options[r],"pair",e)},expression:"options[index].pair"}})],1),t._v(" "),s("div",{staticClass:"flex bg-gray-50 border-b border-l border-r border-gray-300 justify-between items-center px-4 py-2"},[s("div",{staticClass:"flex gap-1 items-center"}),t._v(" "),s("div",{staticClass:"flex items-center justify-end gap-2"},[r>1?s("div",{staticClass:"text-sm bg-red-500 px-2 py-1 rounded text-white cursor-pointer hover:bg-red-600",on:{click:function(e){return t.removeOption(r)}}},[t._v("\n                    "+t._s(t.__("Remove"))+"\n                ")]):t._e()])])])})),t._v(" "),s("button",{staticClass:"text-sm transition focus:outline-none duration-150 w-full my-2 p-4 border border-green-300 border-dashed hover:bg-green-100 hover:border-green-400",attrs:{type:"button"},on:{click:t.addOption}},[t._v(t._s(t.__("Add Pair")))])],2)}),[],!1,null,null,null).exports;const v={name:"ORDOptions",props:{parentOptions:Array},components:{ckeditor:m().component},data:function(){return{options:this.parentOptions,editorUrl:window.CKEditorURL,editorConfig:{contentsLangDirection:this.$page.props.rtl?"rtl":"ltr",height:"75px",toolbar:[["Image","Katex"],["Subscript","Superscript"]]}}},methods:{addOption:function(){var t=this;this.options.length>4?this.$confirm.require({header:"Are you sure?",message:"Usually, a good question will not have more than 5 options!",icon:"pi pi-info-circle",acceptClass:"p-button-warning",rejectLabel:"Cancel",acceptLabel:"Add Anyway",accept:function(){t.options.length<=9?t.options.push({option:"",partial_weightage:0}):t.$toast.add({severity:"error",summary:"Nope",detail:"You can only add a maximum no. of 10 options",life:3e3})},reject:function(){}}):this.options.length<=9?this.options.push({option:"",partial_weightage:0}):this.$toast.add({severity:"error",summary:"Nope",detail:"You can only add a maximum no. of 10 options",life:3e3})},clearAnswer:function(t){this.$emit("modifyOptions",this.options)},removeOption:function(t){this.options.splice(t,1)}}};const h=(0,o.Z)(v,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"ord-options"},[s("div",{staticClass:"transition duration-150 ease-in-out w-full mx-auto py-3 px-4 bg-white lg:flex items-center justify-between shadow rounded"},[s("div",{staticClass:"lg:flex sm:items-start lg:items-center"},[s("div",{staticClass:"flex items-end"},[s("div",{staticClass:"ltr:mr-2 rtl:ml-2 text-red-400"},[s("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"20",height:"20",fill:"currentColor"}},[s("path",{staticClass:"heroicon-ui",attrs:{d:"M12 22a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm0-9a1 1 0 0 1 1 1v4a1 1 0 0 1-2 0v-4a1 1 0 0 1 1-1zm0-4a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"}})])]),t._v(" "),s("p",{staticClass:"ltr:mr-2 rtl:ml-2 text-sm font-bold text-red-400"},[t._v(t._s(t.__("Note")))])]),t._v(" "),s("div",{staticClass:"h-1 w-1 bg-gray-300 dark:bg-gray-700 rounded-full ltr:mr-2 rtl:ml-2 hidden xl:block"}),t._v(" "),s("p",{staticClass:"text-sm text-gray-600 dark:text-gray-400 pt-2 lg:pt-0 pb-2 lg:pb-0 w-4/5 lg:w-auto"},[t._v("\n                "+t._s(t.__("options_shuffle_note"))+"\n            ")])])]),t._v(" "),t._l(t.options,(function(e,r){return s("div",{key:r,staticClass:"my-4"},[s("div",{staticClass:" font-semibold mb-2"},[t._v(t._s(t.__("Sequence Item"))+" "+t._s(r+1))]),t._v(" "),s("ckeditor",{class:[t.$page.props.rtl?"cke_rtl":"cke_ltr"],attrs:{id:"option_text_"+r,"editor-url":t.editorUrl,config:t.editorConfig},model:{value:t.options[r].option,callback:function(e){t.$set(t.options[r],"option",e)},expression:"options[index].option"}}),t._v(" "),s("div",{staticClass:"flex bg-gray-50 border-b border-l border-r border-gray-300 justify-between items-center px-4 py-2"},[s("div",{staticClass:"flex gap-1 items-center"}),t._v(" "),s("div",{staticClass:"flex items-center justify-end gap-2"},[r>1?s("div",{staticClass:"text-sm bg-red-500 px-2 py-1 rounded text-white cursor-pointer hover:bg-red-600",on:{click:function(e){return t.removeOption(r)}}},[t._v("\n                    "+t._s(t.__("Remove"))+"\n                ")]):t._e()])])],1)})),t._v(" "),s("button",{staticClass:"text-sm transition focus:outline-none duration-150 w-full my-2 p-4 border border-green-300 border-dashed hover:bg-green-100 hover:border-green-400",attrs:{type:"button"},on:{click:t.addOption}},[t._v(t._s(t.__("Add Sequence Item")))])],2)}),[],!1,null,null,null).exports;const g={name:"TOFOptions",components:{ckeditor:m().component,InputNumber:c.default},props:{parentOptions:Array,parentAnswer:null},data:function(){return{options:this.parentOptions,correct_answer:this.parentAnswer,editorUrl:window.CKEditorURL,editorConfig:{contentsLangDirection:this.$page.props.rtl?"rtl":"ltr",height:"75px",toolbar:[["Image","Katex"],["Subscript","Superscript"]]}}},methods:{selectAnswer:function(t){this.options[this.correct_answer-1].partial_weightage=0,this.$emit("modifyAnswer",this.correct_answer)}}};const b=(0,o.Z)(g,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"msa-options"},t._l(t.options,(function(e,r){return s("div",{key:r,staticClass:"mb-4"},[s("div",{staticClass:" font-semibold mb-2"},[t._v(t._s(t.__("Option"))+" "+t._s(r+1))]),t._v(" "),s("ckeditor",{class:[t.$page.props.rtl?"cke_rtl":"cke_ltr"],attrs:{id:"option_text_"+r,"editor-url":t.editorUrl,config:t.editorConfig},model:{value:t.options[r].option,callback:function(e){t.$set(t.options[r],"option",e)},expression:"options[index].option"}}),t._v(" "),s("div",{staticClass:"flex bg-gray-50 border-b border-l border-r border-gray-300 justify-between items-center px-4 py-2"},[s("div",{staticClass:"flex gap-1 items-center"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.correct_answer,expression:"correct_answer"}],staticClass:"custom-control-input",attrs:{type:"radio",id:"option-"+r},domProps:{value:r+1,checked:t._q(t.correct_answer,r+1)},on:{change:[function(e){t.correct_answer=r+1},t.selectAnswer]}}),t._v(" "),s("label",{staticClass:"custom-control-label",attrs:{for:"option-"+r}},[t._v(t._s(t.__("Correct Answer")))])]),t._v(" "),s("div",{staticClass:"flex items-center justify-end gap-2"},[s("div",{staticClass:"flex gap-1 items-center"},[s("label",{staticClass:"custom-control-label",attrs:{for:"weight-"+r}},[t._v(t._s(t.__("Partial Weighting"))+": ")]),t._v(" "),s("InputNumber",{staticClass:"tiny-input",attrs:{id:"weight-"+r,suffix:" %",disabled:t.correct_answer-1===r},model:{value:t.options[r].partial_weightage,callback:function(e){t.$set(t.options[r],"partial_weightage",e)},expression:"options[index].partial_weightage"}})],1)])])],1)})),0)}),[],!1,null,null,null).exports;const x={name:"MSAOptions",components:{ckeditor:m().component,InputNumber:c.default},props:{parentOptions:Array,parentAnswer:null},data:function(){return{options:this.parentOptions,correct_answer:this.parentAnswer,editorUrl:window.CKEditorURL,editorConfig:{contentsLangDirection:this.$page.props.rtl?"rtl":"ltr",height:"75px",toolbar:[["Image","Katex"],["Subscript","Superscript"]]}}},methods:{addOption:function(){var t=this;this.options.length>4?this.$confirm.require({header:"Are you sure?",message:"Usually, a good question will not have more than 5 options!",icon:"pi pi-info-circle",acceptClass:"p-button-warning",rejectLabel:"Cancel",acceptLabel:"Add Anyway",accept:function(){t.options.length<=9?t.options.push({option:"",partial_weightage:0}):(t.$toast.add({severity:"error",summary:"Nope",detail:"You can only add a maximum no. of 10 options",life:3e3}),Swal.fire({type:"error",text:"You can only add a maximum no. of 10 options"}))},reject:function(){}}):this.options.length<=9?this.options.push({option:"",partial_weightage:0}):this.$toast.add({severity:"error",summary:"Nope",detail:"You can only add a maximum no. of 10 options",life:3e3})},removeOption:function(t){this.options.splice(t,1),this.correct_answer="",this.$emit("modifyOptions",this.options),this.$emit("modifyAnswer",this.correct_answer)},selectAnswer:function(t){this.options[this.correct_answer-1].partial_weightage=0,this.$emit("modifyAnswer",this.correct_answer)}}};const y=(0,o.Z)(x,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"msa-options"},[t._l(t.options,(function(e,r){return s("div",{key:r,staticClass:"mb-4"},[s("div",{staticClass:"text-sm font-semibold mb-2"},[t._v(t._s(t.__("Option"))+" "+t._s(r+1))]),t._v(" "),s("ckeditor",{class:[t.$page.props.rtl?"cke_rtl":"cke_ltr"],attrs:{id:"option_text_"+r,"editor-url":t.editorUrl,config:t.editorConfig},model:{value:t.options[r].option,callback:function(e){t.$set(t.options[r],"option",e)},expression:"options[index].option"}}),t._v(" "),s("div",{staticClass:"flex flex-col sm:flex-row bg-gray-50 border-b border-l border-r border-gray-300 sm:justify-between sm:items-center px-4 py-2"},[s("div",{staticClass:"flex gap-1 items-center"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.correct_answer,expression:"correct_answer"}],staticClass:"custom-control-input",attrs:{type:"radio",id:"option-"+r},domProps:{value:r+1,checked:t._q(t.correct_answer,r+1)},on:{change:[function(e){t.correct_answer=r+1},t.selectAnswer]}}),t._v(" "),s("label",{staticClass:"custom-control-label",attrs:{for:"option-"+r}},[t._v(t._s(t.__("Correct Answer")))])]),t._v(" "),s("div",{staticClass:"flex items-center sm:justify-end gap-2"},[s("div",{staticClass:"flex gap-1 items-center"},[s("label",{staticClass:"custom-control-label",attrs:{for:"weight-"+r}},[t._v(t._s(t.__("Partial Weighting"))+": ")]),t._v(" "),s("InputNumber",{staticClass:"tiny-input",attrs:{id:"weight-"+r,suffix:" %",disabled:t.correct_answer-1===r},model:{value:t.options[r].partial_weightage,callback:function(e){t.$set(t.options[r],"partial_weightage",e)},expression:"options[index].partial_weightage"}})],1),t._v(" "),r>1?s("div",{staticClass:"text-sm bg-red-500 px-2 py-1 rounded text-white cursor-pointer hover:bg-red-600",on:{click:function(e){return t.removeOption(r)}}},[t._v("\n                    "+t._s(t.__("Remove"))+"\n                ")]):t._e()])])],1)})),t._v(" "),s("button",{staticClass:"text-sm transition focus:outline-none duration-150 w-full my-2 p-4 border border-green-300 border-dashed hover:bg-green-100 hover:border-green-400",attrs:{type:"button"},on:{click:t.addOption}},[t._v(t._s(t.__("Add Option")))])],2)}),[],!1,null,null,null).exports;const w={name:"MMAOptions",components:{ckeditor:m().component,InputNumber:c.default},props:{parentOptions:Array,parentAnswer:null},data:function(){return{options:this.parentOptions,correct_answer:this.parentAnswer,editorUrl:window.CKEditorURL,editorConfig:{contentsLangDirection:this.$page.props.rtl?"rtl":"ltr",height:"75px",toolbar:[["Image","Katex"],["Subscript","Superscript"]]}}},methods:{addOption:function(){var t=this;this.options.length>4?this.$confirm.require({header:"Are you sure?",message:"Usually, a good question will not have more than 5 options!",icon:"pi pi-info-circle",acceptClass:"p-button-warning",rejectLabel:"Cancel",acceptLabel:"Add Anyway",accept:function(){t.options.length<=9?t.options.push({option:"",partial_weightage:0}):t.$toast.add({severity:"error",summary:"Nope",detail:"You can only add a maximum no. of 10 options",life:3e3})},reject:function(){}}):this.options.length<=9?this.options.push({option:"",partial_weightage:0}):this.$toast.add({severity:"error",summary:"Nope",detail:"You can only add a maximum no. of 10 options",life:3e3})},removeOption:function(t){this.options.splice(t,1),this.correct_answer="",this.$emit("modifyOptions",this.options),this.$emit("modifyAnswer",this.correct_answer)},selectAnswer:function(t){this.$emit("modifyAnswer",this.correct_answer)}}};const C=(0,o.Z)(w,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"mma-options"},[t._l(t.options,(function(e,r){return s("div",{key:r,staticClass:"mb-4"},[s("div",{staticClass:"text-sm font-semibold mb-2"},[t._v(t._s(t.__("Option"))+" "+t._s(r+1))]),t._v(" "),s("ckeditor",{class:[t.$page.props.rtl?"cke_rtl":"cke_ltr"],attrs:{id:"option_text_"+r,"editor-url":t.editorUrl,config:t.editorConfig},model:{value:t.options[r].option,callback:function(e){t.$set(t.options[r],"option",e)},expression:"options[index].option"}}),t._v(" "),s("div",{staticClass:"flex bg-gray-50 border-b border-l border-r border-gray-300 justify-between items-center px-4 py-2"},[s("div",{staticClass:"flex gap-1 items-center"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.correct_answer,expression:"correct_answer"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"option-"+r},domProps:{value:r+1,checked:Array.isArray(t.correct_answer)?t._i(t.correct_answer,r+1)>-1:t.correct_answer},on:{change:[function(e){var s=t.correct_answer,a=e.target,i=!!a.checked;if(Array.isArray(s)){var n=r+1,o=t._i(s,n);a.checked?o<0&&(t.correct_answer=s.concat([n])):o>-1&&(t.correct_answer=s.slice(0,o).concat(s.slice(o+1)))}else t.correct_answer=i},t.selectAnswer]}}),t._v(" "),s("label",{staticClass:"custom-control-label",attrs:{for:"option-"+r}},[t._v(t._s(t.__("Correct Answer")))])]),t._v(" "),s("div",{staticClass:"flex items-center justify-end gap-2"},[s("div",{staticClass:"flex gap-1 items-center"},[s("label",{staticClass:"custom-control-label",attrs:{for:"weight-"+r}},[t._v(t._s(t.__("Partial Weighting"))+": ")]),t._v(" "),s("InputNumber",{staticClass:"tiny-input",attrs:{id:"weight-"+r,suffix:" %",disabled:t.correct_answer-1===r},model:{value:t.options[r].partial_weightage,callback:function(e){t.$set(t.options[r],"partial_weightage",e)},expression:"options[index].partial_weightage"}})],1),t._v(" "),r>1?s("div",{staticClass:"text-sm bg-red-500 px-2 py-1 rounded text-white cursor-pointer hover:bg-red-600",on:{click:function(e){return t.removeOption(r)}}},[t._v("\n                    "+t._s(t.__("Remove"))+"\n                ")]):t._e()])])],1)})),t._v(" "),s("button",{staticClass:"text-sm transition focus:outline-none duration-150 w-full my-2 p-4 border border-green-300 border-dashed hover:bg-green-100 hover:border-green-400",attrs:{type:"button"},on:{click:t.addOption}},[t._v(t._s(t.__("Add Option")))])],2)}),[],!1,null,null,null).exports;var k=s(379);function S(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,r)}return s}function A(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?S(Object(s),!0).forEach((function(e){q(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):S(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}function q(t,e,s){return e in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}const P={name:"LAQOptions",components:{InputSwitch:i.default,InputNumber:c.default},props:{parentPreferences:Object},data:function(){return{preferences:this.parentPreferences}},validations:function(){return{preferences:A({},this.preferences.word_limit&&{min_words:{required:k.C1},max_words:{required:k.C1}})}},methods:{selectAnswer:function(t){this.$emit("modifyPreferences",this.preferences)}}};const $=(0,o.Z)(P,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"fib-options"},[s("div",{staticClass:"w-full"},[s("div",{staticClass:"flex justify-between items-center mb-4"},[t._m(0),t._v(" "),s("div",{staticClass:"cursor-pointer rounded-full relative shadow-sm"},[s("InputSwitch",{attrs:{id:"is_active"},model:{value:t.preferences.word_limit,callback:function(e){t.$set(t.preferences,"word_limit",e)},expression:"preferences.word_limit"}})],1)])]),t._v(" "),s("div",{staticClass:"w-full"},[s("div",{staticClass:"flex justify-between items-center mb-8"},[s("div",{staticClass:"w-6/12"},[s("label",{staticClass:"font-semibold text-gray-800 pb-1",attrs:{for:"min_words"}},[t._v("Minimum Words")]),t._v(" "),s("InputNumber",{attrs:{id:"min_words",placeholder:"Enter Minimum Words",disabled:!t.preferences.word_limit},model:{value:t.preferences.min_words,callback:function(e){t.$set(t.preferences,"min_words",e)},expression:"preferences.min_words"}})],1),t._v(" "),s("div",{staticClass:"w-6/12"},[s("label",{staticClass:"font-semibold text-gray-800 pb-1",attrs:{for:"max_words"}},[t._v("Maximum Words")]),t._v(" "),s("InputNumber",{attrs:{id:"max_words",placeholder:"Enter Minimum Words",disabled:!t.preferences.word_limit},model:{value:t.preferences.max_words,callback:function(e){t.$set(t.preferences,"max_words",e)},expression:"preferences.max_words"}})],1)])])])}),[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"w-9/12"},[s("label",{staticClass:"font-semibold text-gray-800 pb-1",attrs:{for:"is_active"}},[t._v("Word Limit")]),t._v(" "),s("p",{staticClass:"text-gray-500"},[t._v("Restrict answer with certain word limit.")])])}],!1,null,null,null).exports;const j={name:"SAQPreferences",components:{InputSwitch:i.default},props:{parentPreferences:Object},data:function(){return{preferences:this.parentPreferences}},methods:{selectAnswer:function(t){this.$emit("modifyPreferences",this.preferences)}}};const F=(0,o.Z)(j,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"saq-preferences"},[s("div",{staticClass:"w-full"},[s("div",{staticClass:"flex justify-between items-center mb-8"},[s("div",{staticClass:"w-9/12"},[s("label",{staticClass:"font-semibold text-sm text-gray-800 pb-1",attrs:{for:"case_sensitive"}},[t._v("Case Sensitive")]),t._v(" "),t.preferences.case_sensitive?s("p",{staticClass:"text-sm text-gray-500"},[t._v("Yes (Answers will be considered as case sensitive).")]):t._e(),t._v(" "),t.preferences.case_sensitive?t._e():s("p",{staticClass:"text-sm text-gray-500"},[t._v("No (Answers will not be considered as case sensitive).")])]),t._v(" "),s("div",{staticClass:"cursor-pointer rounded-full relative shadow-sm"},[s("InputSwitch",{attrs:{id:"case_sensitive"},model:{value:t.preferences.case_sensitive,callback:function(e){t.$set(t.preferences,"case_sensitive",e)},expression:"preferences.case_sensitive"}})],1)]),t._v(" "),s("div",{staticClass:"flex justify-between items-center"},[s("div",{staticClass:"w-9/12"},[s("label",{staticClass:"font-semibold text-sm text-gray-800 pb-1",attrs:{for:"is_numeric"}},[t._v("Is Numeric")]),t._v(" "),t.preferences.is_numeric?s("p",{staticClass:"text-sm text-gray-500"},[t._v("Yes (Answers will be considered as numbers).")]):t._e(),t._v(" "),t.preferences.is_numeric?t._e():s("p",{staticClass:"text-sm text-gray-500"},[t._v("No (Answers will not be considered as numbers).")])]),t._v(" "),s("div",{staticClass:"cursor-pointer rounded-full relative shadow-sm"},[s("InputSwitch",{attrs:{id:"is_numeric"},model:{value:t.preferences.is_numeric,callback:function(e){t.$set(t.preferences,"is_numeric",e)},expression:"preferences.is_numeric"}})],1)])])])}),[],!1,null,null,null).exports;var T=s(2263);function Z(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,r)}return s}function O(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?Z(Object(s),!0).forEach((function(e){I(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):Z(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}function I(t,e,s){return e in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}const M={components:{AdminLayout:a.Z,HorizontalStepper:r.Z,FIBOptions:l,SAQOptions:d,MTFOptions:f,ORDOptions:h,TOFOptions:b,MSAOptions:y,MMAOptions:C,ckeditor:m().component,SAQPreferences:F,LAQOptions:$,Button:T.default},props:{question:Object,steps:Array,questionType:Object,initialPreferences:Object|Array,initialOptions:Array,initialAnswers:Array|String,editFlag:!1,questionId:Number,errors:Object},metaInfo:function(){return{title:this.title}},data:function(){return{form:{question:this.editFlag?this.question.question:"",skill_id:this.editFlag?this.question.skill_id:null,question_type_id:this.editFlag?this.question.question_type_id:this.questionType.id,options:this.editFlag?this.question.options:this.initialOptions,correct_answer:this.editFlag?this.question.correct_answer:this.initialAnswers,preferences:this.editFlag?this.question.preferences:this.initialPreferences},skills:[],debounce:null,editorUrl:window.CKEditorURL,editorConfig:{contentsLangDirection:this.$page.props.rtl?"rtl":"ltr"},submitStatus:null}},validations:function(){return{form:O(O(O(O(O(O({skill_id:{required:k.C1}},this.editFlag&&{skill_id:{}}),{},{question:{required:k.C1},question_type_id:{required:k.C1},options:{$each:{option:{required:k.C1}}}},"MTF"===this.questionType.code&&{options:{$each:{option:{required:k.C1},pair:{required:k.C1}}}}),{},{correct_answer:{required:k.C1}},"ORD"===this.questionType.code&&{correct_answer:{}}),"MTF"===this.questionType.code&&{correct_answer:{}}),"LAQ"===this.questionType.code&&{options:{},correct_answer:{}}),"FIB"===this.questionType.code&&{options:{},correct_answer:{}})}},methods:{submitForm:function(){var t=this;this.$v.$touch(),this.$v.$invalid?this.submitStatus="ERROR":(this.submitStatus="PENDING",setTimeout((function(){t.submitStatus="OK",t.editFlag?t.update():t.create()}),100))},create:function(){var t=this;this.formValidated=!0,this.$inertia.post(route("questions.store"),this.form,{onSuccess:function(){0===Object.keys(t.errors).length&&t.$emit("close",!0)}})},update:function(){var t=this;this.formValidated=!0,this.$inertia.patch(route("questions.update",{id:this.questionId}),this.form,{onSuccess:function(){0===Object.keys(t.errors).length&&t.$emit("close",!0)}})},updateOptions:function(t){this.form.options=t},updateAnswer:function(t){this.form.correct_answer=t},updatePreferences:function(t){this.form.preferences=t},searchSkills:function(t,e){if(""!==t){var s=this;e(!0),clearTimeout(this.debounce),this.skills=[],this.debounce=setTimeout((function(){axios.get(route("search_skills",{query:t})).then((function(t){s.skills=t.data.skills,e(!1)})).catch((function(t){e(!1)}))}),600)}}},computed:{title:function(){return"Question Details - "+this.$page.props.general.app_name+" Admin"}}};const z=(0,o.Z)(M,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("admin-layout",[s("div",{staticClass:"container mx-auto pt-4 px-4 sm:px-6 lg:px-8"},[s("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"},[s("div",{staticClass:"mb-4 sm:mb-0 md:mb-0 lg:mb-0 xl:mb-0 lg:w-1/2"},[s("h2",{staticClass:"text-gray-800 dark:text-gray-100 text-lg font-bold"},[t._v(t._s(t.__("Question"))+" "+t._s(t.__("Details")))]),t._v(" "),s("p",{staticClass:"font-normal text-sm text-gray-600 dark:text-gray-100 mt-1"},[t._v(t._s(t.questionType.name)+" "+t._s(t.__("Question")))])]),t._v(" "),s("horizontal-stepper",{attrs:{steps:t.steps,"edit-flag":t.editFlag}})],1)]),t._v(" "),s("div",{staticClass:"container mx-auto py-8 px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"card"},[s("div",{staticClass:"card-body"},[s("div",{staticClass:"flex justify-center flex-wrap"},[s("div",{staticClass:"xl:w-8/12 w-full py-2 md:pb-0 md:px-6"},[s("form",{on:{submit:function(e){return e.preventDefault(),t.submitForm(e)}}},[t.editFlag?t._e():s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 text-sm font-semibold text-gray-800",attrs:{for:"skill_id"}},[t._v(t._s(t.__("Skill")))]),t._v(" "),s("v-select",{attrs:{id:"skill_id",options:t.skills,reduce:function(t){return t.id},label:"name",dir:t.$page.props.rtl?"rtl":"ltr"},on:{search:t.searchSkills},scopedSlots:t._u([{key:"no-options",fn:function(e){e.search;return[e.searching?[t._v(t._s(t.__("No results were found for this search"))+".")]:s("em",{staticClass:"opacity-50"},[t._v(t._s(t.__("Start typing to search"))+".")])]}}],null,!1,1403868184),model:{value:t.$v.form.skill_id.$model,callback:function(e){t.$set(t.$v.form.skill_id,"$model",e)},expression:"$v.form.skill_id.$model"}}),t._v(" "),s("div",{staticClass:"form-control-errors"},[t.$v.form.skill_id.$error&&!t.$v.form.skill_id.required?s("p",{staticClass:"text-xs text-red-500 pt-2",attrs:{role:"alert"}},[t._v(t._s(t.__("Skill"))+" "+t._s(t.__("is required")))]):t._e()])],1),t._v(" "),s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 font-semibold text-gray-800 text-sm",attrs:{for:"question"}},[t._v(t._s(t.__("Question")))]),t._v(" "),s("ckeditor",{class:[t.$page.props.rtl?"cke_rtl":"cke_ltr",t.errors.question?"p-invalid":""],attrs:{id:"question","editor-url":t.editorUrl,config:t.editorConfig},model:{value:t.form.question,callback:function(e){t.$set(t.form,"question",e)},expression:"form.question"}}),t._v(" "),s("div",{staticClass:"form-control-errors"},[t.$v.form.question.$error&&!t.$v.form.question.required?s("p",{staticClass:"text-xs text-red-500 pt-2",attrs:{role:"alert"}},[t._v(t._s(t.__("Question"))+" "+t._s(t.__("is required")))]):t._e()])],1),t._v(" "),s("div",{staticClass:"w-full bg-green-50 rounded py-4 px-6"},["MSA"===t.questionType.code?s("div",[s("MSAOptions",{attrs:{parentOptions:t.form.options,parentAnswer:t.form.correct_answer},on:{modifyOptions:t.updateOptions,modifyAnswer:t.updateAnswer}})],1):t._e(),t._v(" "),"MMA"===t.questionType.code?s("div",[s("MMAOptions",{attrs:{parentOptions:t.form.options,parentAnswer:t.form.correct_answer},on:{modifyOptions:t.updateOptions,modifyAnswer:t.updateAnswer}})],1):t._e(),t._v(" "),"TOF"===t.questionType.code?s("div",[s("TOFOptions",{attrs:{parentOptions:t.form.options,parentAnswer:t.form.correct_answer},on:{modifyOptions:t.updateOptions,modifyAnswer:t.updateAnswer}})],1):t._e(),t._v(" "),"ORD"===t.questionType.code?s("div",[s("ORDOptions",{attrs:{parentOptions:t.form.options},on:{modifyOptions:t.updateOptions}})],1):t._e(),t._v(" "),"MTF"===t.questionType.code?s("div",[s("MTFOptions",{attrs:{parentOptions:t.form.options},on:{modifyOptions:t.updateOptions}})],1):t._e(),t._v(" "),"SAQ"===t.questionType.code?s("div",[s("SAQOptions",{attrs:{parentOptions:t.form.options,parentAnswer:t.form.correct_answer},on:{modifyOptions:t.updateOptions,modifyAnswer:t.updateAnswer}})],1):t._e(),t._v(" "),"FIB"===t.questionType.code?s("div",[s("FIBOptions",{attrs:{"parent-preferences":t.form.preferences},on:{modifyPreferences:t.updatePreferences}})],1):t._e(),t._v(" "),"LAQ"===t.questionType.code?s("div",[s("LAQOptions",{attrs:{"parent-preferences":t.form.preferences},on:{modifyPreferences:t.updatePreferences}})],1):t._e(),t._v(" "),s("div",{staticClass:"form-control-errors"},[t.$v.form.options.$error&&!t.$v.form.options.required?s("p",{staticClass:"text-xs text-red-500 pt-2",attrs:{role:"alert"}},[t._v("- "+t._s(t.__("Options should not be empty")))]):t._e()]),t._v(" "),s("div",{staticClass:"form-control-errors"},[t.$v.form.correct_answer.$error&&!t.$v.form.correct_answer.required?s("p",{staticClass:"text-xs text-red-500 pt-2",attrs:{role:"alert"}},[t._v("- "+t._s(t.__("Please specify correct answer")))]):t._e()])]),t._v(" "),s("div",{staticClass:"w-full flex justify-end my-8"},[s("button",{staticClass:"qt-btn qt-btn-success",attrs:{type:"submit"},domProps:{innerHTML:t._s(t.editFlag?t.__("Update Details"):t.__("Save Details"))}})])])])])])])])])}),[],!1,null,null,null).exports},3024:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>p});var r=s(2422),a=s(67),i=s(379),n=s(4974),o=s(2263),l=s(8465),c=s(5807),u=s(2001);const d={components:{AdminLayout:a.Z,HorizontalStepper:r.Z,InputText:n.default,Button:o.default,InputSwitch:l.default,InputNumber:c.default,SelectButton:u.default},props:{question:Object,steps:Array,questionType:Object,editFlag:!1,questionId:Number,errors:Object,initialSkills:Array,initialTopics:Array,difficultyLevels:Array},metaInfo:function(){return{title:this.title}},data:function(){return{form:{skill_id:this.editFlag?this.question.skill_id:null,topic_id:this.editFlag?this.question.topic_id:null,difficulty_level_id:this.editFlag?this.question.difficulty_level_id:null,default_marks:this.editFlag?this.question.default_marks:1,default_time:this.editFlag?this.question.default_time:60,is_active:!this.editFlag||this.question.is_active},skills:this.initialSkills,topics:this.initialTopics,debounce:null,editorUrl:window.CKEditorURL,submitStatus:null}},validations:function(){return{form:{skill_id:{required:i.C1},difficulty_level_id:{required:i.C1},default_marks:{required:i.C1,numeric:i.uR},default_time:{required:i.C1,numeric:i.uR}}}},methods:{submitForm:function(){var t=this;this.$v.$touch(),this.$v.$invalid?this.submitStatus="ERROR":(this.submitStatus="PENDING",setTimeout((function(){t.submitStatus="OK",t.update()}),100))},update:function(){var t=this;this.formValidated=!0,this.$inertia.post(route("update_question_settings",{id:this.questionId}),this.form,{onSuccess:function(){0===Object.keys(t.errors).length&&t.$emit("close",!0)}})},searchSkills:function(t,e){if(""!==t){var s=this;e(!0),clearTimeout(this.debounce),this.skills=[],this.debounce=setTimeout((function(){axios.get(route("search_skills",{query:t})).then((function(t){s.skills=t.data.skills,e(!1)})).catch((function(t){e(!1)}))}),600)}},searchTopics:function(t,e){if(""!==t){var s=this;e(!0),clearTimeout(this.debounce),s.topics=[],this.debounce=setTimeout((function(){axios.get(route("search_topics",{query:t,skill_id:s.form.skill_id})).then((function(t){s.topics=t.data.topics})).catch((function(t){e(!1)})).then((function(){e(!1)}))}),600)}}},computed:{title:function(){return"Question Settings - "+this.$page.props.general.app_name+" Admin"}}};const p=(0,s(1900).Z)(d,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("admin-layout",[s("div",{staticClass:"container mx-auto pt-4 px-4 sm:px-6 lg:px-8"},[s("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"},[s("div",{staticClass:"mb-4 sm:mb-0 md:mb-0 lg:mb-0 xl:mb-0 lg:w-1/2"},[s("h2",{staticClass:"text-gray-800 dark:text-gray-100 text-lg font-bold"},[t._v(t._s(t.__("Question"))+" "+t._s(t.__("Settings")))]),t._v(" "),s("p",{staticClass:"font-normal text-sm text-gray-600 dark:text-gray-100 mt-1"},[t._v(t._s(t.questionType.name)+" "+t._s(t.__("Question")))])]),t._v(" "),s("horizontal-stepper",{attrs:{steps:t.steps,"edit-flag":t.editFlag}})],1)]),t._v(" "),s("div",{staticClass:"container mx-auto py-8 px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"card"},[s("div",{staticClass:"card-body"},[s("div",{staticClass:"flex justify-center flex-wrap"},[s("div",{staticClass:"md:w-6/12 w-full py-6 md:pb-0 md:px-6"},[s("form",{on:{submit:function(e){return e.preventDefault(),t.submitForm(e)}}},[s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 text-sm font-semibold text-gray-800",attrs:{for:"skill_id"}},[t._v(t._s(t.__("Skill")))]),t._v(" "),s("v-select",{attrs:{id:"skill_id",options:t.skills,reduce:function(t){return t.id},label:"name",dir:t.$page.props.rtl?"rtl":"ltr"},on:{search:t.searchSkills},scopedSlots:t._u([{key:"no-options",fn:function(e){e.search;return[e.searching?[t._v(t._s(t.__("No results were found for this search"))+".")]:s("em",{staticClass:"opacity-50"},[t._v(t._s(t.__("Start typing to search"))+".")])]}}]),model:{value:t.$v.form.skill_id.$model,callback:function(e){t.$set(t.$v.form.skill_id,"$model",e)},expression:"$v.form.skill_id.$model"}}),t._v(" "),s("div",{staticClass:"form-control-errors"},[t.$v.form.skill_id.$error&&!t.$v.form.skill_id.required?s("p",{staticClass:"text-xs text-red-500 pt-2",attrs:{role:"alert"}},[t._v(t._s(t.__("Skill"))+" "+t._s(t.__("is required")))]):t._e()])],1),t._v(" "),s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 text-sm font-semibold text-gray-800",attrs:{for:"topic_id"}},[t._v(t._s(t.__("Topic")))]),t._v(" "),s("v-select",{attrs:{id:"topic_id",options:t.topics,reduce:function(t){return t.id},label:"name",dir:t.$page.props.rtl?"rtl":"ltr"},on:{search:t.searchTopics},scopedSlots:t._u([{key:"no-options",fn:function(e){e.search;return[e.searching?[t._v(t._s(t.__("No results were found for this search"))+".")]:s("em",{staticClass:"opacity-50"},[t._v(t._s(t.__("Start typing to search"))+".")])]}}]),model:{value:t.form.topic_id,callback:function(e){t.$set(t.form,"topic_id",e)},expression:"form.topic_id"}})],1),t._v(" "),s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 text-sm font-semibold text-gray-800"},[t._v(t._s(t.__("Difficulty Level")))]),t._v(" "),s("v-select",{attrs:{id:"difficulty_level",options:t.difficultyLevels,reduce:function(t){return t.id},label:"name",dir:t.$page.props.rtl?"rtl":"ltr"},scopedSlots:t._u([{key:"no-options",fn:function(e){e.search;return[e.searching?[t._v(t._s(t.__("No results were found for this search"))+".")]:s("em",{staticClass:"opacity-50"},[t._v(t._s(t.__("Start typing to search"))+".")])]}}]),model:{value:t.form.difficulty_level_id,callback:function(e){t.$set(t.form,"difficulty_level_id",e)},expression:"form.difficulty_level_id"}}),t._v(" "),s("div",{staticClass:"form-control-errors"},[t.$v.form.difficulty_level_id.$error&&!t.$v.form.difficulty_level_id.required?s("p",{staticClass:"text-xs text-red-500 pt-2",attrs:{role:"alert"}},[t._v(t._s(t.__("Difficulty Level"))+" "+t._s(t.__("is required")))]):t._e()])],1),t._v(" "),s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 text-sm font-semibold text-gray-800",attrs:{for:"default_marks"}},[t._v(t._s(t.__("Default Marks"))+"/"+t._s(t.__("Grade Points")))]),t._v(" "),s("InputNumber",{class:[t.errors.default_marks?"p-invalid":""],attrs:{id:"default_marks",placeholder:"Enter Marks","aria-describedby":"default_marks-help"},model:{value:t.form.default_marks,callback:function(e){t.$set(t.form,"default_marks",e)},expression:"form.default_marks"}}),t._v(" "),s("div",{staticClass:"form-control-errors"},[t.$v.form.default_marks.$error&&!t.$v.form.default_marks.required?s("p",{staticClass:"text-xs text-red-500 pt-2",attrs:{role:"alert"}},[t._v(t._s(t.__("Default Marks"))+"/"+t._s(t.__("Grade Points"))+" "+t._s(t.__("is required")))]):t._e()])],1),t._v(" "),s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 text-sm font-semibold text-gray-800",attrs:{for:"default_time"}},[t._v(t._s(t.__("Default Time To Solve"))+" (Seconds)")]),t._v(" "),s("InputNumber",{class:[t.errors.default_time?"p-invalid":""],attrs:{id:"default_time",placeholder:"Enter Time","aria-describedby":"default_time-help"},model:{value:t.form.default_time,callback:function(e){t.$set(t.form,"default_time",e)},expression:"form.default_time"}}),t._v(" "),s("div",{staticClass:"form-control-errors"},[t.$v.form.default_time.$error&&!t.$v.form.default_time.required?s("p",{staticClass:"text-xs text-red-500 pt-2",attrs:{role:"alert"}},[t._v(t._s(t.__("Default Time To Solve"))+" "+t._s(t.__("is required")))]):t._e()])],1),t._v(" "),s("div",{staticClass:"w-full"},[s("div",{staticClass:"flex justify-between items-center mb-8"},[s("div",{staticClass:"w-9/12"},[s("label",{staticClass:"font-semibold text-sm text-gray-800 pb-1",attrs:{for:"is_active"},domProps:{innerHTML:t._s(t.form.is_active?t.__("Active"):t.__("In-active"))}}),t._v(" "),s("p",{staticClass:"text-sm text-gray-500"},[t._v(t._s(t.__("Active"))+" ("+t._s(t.__("Shown Everywhere"))+"). "+t._s(t.__("In-active"))+" ("+t._s(t.__("Hidden Everywhere"))+").")])]),t._v(" "),s("div",{staticClass:"cursor-pointer rounded-full relative shadow-sm"},[s("InputSwitch",{attrs:{id:"is_active"},model:{value:t.form.is_active,callback:function(e){t.$set(t.form,"is_active",e)},expression:"form.is_active"}})],1)])]),t._v(" "),s("div",{staticClass:"w-full flex justify-end my-8"},[s("Button",{attrs:{type:"submit",label:t.editFlag?t.__("Update Settings"):t.__("Save Settings")}})],1)])])])])])])])}),[],!1,null,null,null).exports},2884:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>u});var r=s(2422),a=s(67),i=s(379),n=s(8067),o=s.n(n),l=s(2263);const c={components:{AdminLayout:a.Z,HorizontalStepper:r.Z,ckeditor:o().component,Button:l.default},props:{question:Object,steps:Array,questionType:Object,editFlag:!1,questionId:Number,errors:Object},metaInfo:function(){return{title:this.title}},data:function(){return{form:{solution:this.editFlag?this.question.solution:"",hint:this.editFlag?this.question.hint:""},debounce:null,editorUrl:window.CKEditorURL,editorConfig:{contentsLangDirection:this.$page.props.rtl?"rtl":"ltr"},submitStatus:null}},validations:function(){return{form:{hint:{maxLength:(0,i.BS)(1e4)},solution:{maxLength:(0,i.BS)(1e4)}}}},methods:{submitForm:function(){var t=this;this.$v.$touch(),this.$v.$invalid?this.submitStatus="ERROR":(this.submitStatus="PENDING",setTimeout((function(){t.submitStatus="OK",t.update()}),100))},update:function(){var t=this;this.formValidated=!0,this.$inertia.post(route("update_question_solution",{id:this.questionId}),this.form,{onSuccess:function(){0===Object.keys(t.errors).length&&t.$emit("close",!0)}})}},computed:{title:function(){return"Question Solution - "+this.$page.props.general.app_name+" Admin"}}};const u=(0,s(1900).Z)(c,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("admin-layout",[s("div",{staticClass:"container mx-auto pt-4 px-4 sm:px-6 lg:px-8"},[s("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"},[s("div",{staticClass:"mb-4 sm:mb-0 md:mb-0 lg:mb-0 xl:mb-0 lg:w-1/2"},[s("h2",{staticClass:"text-gray-800 dark:text-gray-100 text-lg font-bold"},[t._v(t._s(t.__("Question"))+" "+t._s(t.__("Solution")))]),t._v(" "),s("p",{staticClass:"font-normal text-sm text-gray-600 dark:text-gray-100 mt-1"},[t._v(t._s(t.questionType.name)+" "+t._s(t.__("Question")))])]),t._v(" "),s("horizontal-stepper",{attrs:{steps:t.steps,"edit-flag":t.editFlag}})],1)]),t._v(" "),s("div",{staticClass:"container mx-auto py-8 px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"card"},[s("div",{staticClass:"card-body"},[s("div",{staticClass:"flex justify-center flex-wrap"},[s("div",{staticClass:"md:w-8/12 w-full py-6 md:pb-0 md:px-6"},[s("form",{on:{submit:function(e){return e.preventDefault(),t.submitForm(e)}}},[s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 font-semibold text-gray-800",attrs:{for:"solution"}},[t._v(t._s(t.__("Solution")))]),t._v(" "),s("ckeditor",{class:[t.$page.props.rtl?"cke_rtl":"cke_ltr",t.errors.solution?"p-invalid":""],attrs:{id:"solution",config:t.editorConfig,"editor-url":t.editorUrl},model:{value:t.form.solution,callback:function(e){t.$set(t.form,"solution",e)},expression:"form.solution"}})],1),t._v(" "),s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 font-semibold text-gray-800",attrs:{for:"hint"}},[t._v(t._s(t.__("Hint")))]),t._v(" "),s("ckeditor",{class:[t.$page.props.rtl?"cke_rtl":"cke_ltr",t.errors.hint?"p-invalid":""],attrs:{id:"hint",config:t.editorConfig,"editor-url":t.editorUrl},model:{value:t.form.hint,callback:function(e){t.$set(t.form,"hint",e)},expression:"form.hint"}})],1),t._v(" "),s("div",{staticClass:"w-full flex justify-end my-8"},[s("Button",{attrs:{type:"submit",label:t.editFlag?t.__("Update"):t.__("Save")}})],1)])])])])])])])}),[],!1,null,null,null).exports},7346:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>_});var r=s(67),a=s(4409),i=s(5e3),n=s(298),o=s(728),l=s(7531),c=s(2263),u=s(3194);function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var s=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==s)return;var r,a,i=[],n=!0,o=!1;try{for(s=s.call(t);!(n=(r=s.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return p(t,e);var s=Object.prototype.toString.call(t).slice(8,-1);"Object"===s&&t.constructor&&(s=t.constructor.name);if("Map"===s||"Set"===s)return Array.from(t);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return p(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,r=new Array(e);s<e;s++)r[s]=t[s];return r}const m={components:{AdminLayout:r.Z,ArcDropdown:a.Z,ArcDropdownLink:i.Z,Toast:n.default,Chip:o.default,Tag:l.default,Button:c.default,NoDataTable:u.Z},props:{questionTypes:Array,questions:Object,sections:Array},data:function(){return{createForm:!1,editForm:!1,currentId:null,columns:[{label:this.__("Code"),field:"code",filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Code"),filterValue:null,trigger:"enter"},sortable:!1,width:"11rem"},{label:this.__("Question"),field:"question",filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Question"),filterValue:null,trigger:"enter"},sortable:!1},{label:this.__("Type"),field:"questionType",sortable:!1,filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Type"),filterValue:null,filterDropdownItems:this.questionTypes}},{label:this.__("Section"),field:"section",sortable:!1,filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Section"),filterValue:null,trigger:"enter"}},{label:this.__("Skill"),field:"skill",sortable:!1,filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Skill"),filterValue:null,trigger:"enter"}},{label:this.__("Topic"),field:"topic",sortable:!1,filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Topic"),filterValue:null,trigger:"enter"}},{label:this.__("Status"),field:"status",sortable:!1,filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Status"),filterValue:null,filterDropdownItems:[{value:1,text:this.__("Active")},{value:0,text:this.__("In-active")}]}},{label:this.__("Actions"),field:"actions",sortable:!1,width:"200px",tdClass:"text-center"}],options:{enabled:!0,mode:"pages",perPage:this.questions.meta.pagination.per_page,setCurrentPage:this.questions.meta.pagination.current_page,perPageDropdown:[10,20,50,100],dropdownAllowAll:!1},serverParams:{columnFilters:{},sort:{field:"",type:""},page:1,perPage:10},loading:!1}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return"Questions - "+this.$page.props.general.app_name+" Admin"}},methods:{updateParams:function(t){this.serverParams=Object.assign({},this.serverParams,t)},onPageChange:function(t){this.updateParams({page:t.currentPage}),this.loadItems(),this.$nextTick((function(){window.renderMathInElement(this.$el)}))},onPerPageChange:function(t){this.updateParams({perPage:t.currentPerPage}),this.loadItems()},onSortChange:function(t){this.updateParams({sort:[{type:t.sortType,field:this.columns[t.columnIndex].field}]}),this.loadItems()},onColumnFilter:function(t){this.updateParams(t),this.serverParams.page=1,this.loadItems()},getQueryParams:function(){for(var t={page:this.serverParams.page,perPage:this.serverParams.perPage},e=0,s=Object.entries(this.serverParams.columnFilters);e<s.length;e++){var r=d(s[e],2),a=r[0],i=r[1];i&&(t[a]=i)}return t},loadItems:function(){this.$inertia.get(route(route().current()),this.getQueryParams(),{replace:!1,preserveState:!0,preserveScroll:!0})},editQuestion:function(t){this.$inertia.get(route("questions.edit",{question:t}))},deleteQuestion:function(t){var e=this;this.$confirm.require({header:this.__("Confirm Delete"),message:this.__("Do you want to delete this record?"),icon:"pi pi-info-circle",acceptClass:"p-button-danger",rejectLabel:this.__("Cancel"),acceptLabel:this.__("Delete"),accept:function(){e.$inertia.delete(route("questions.destroy",{id:t}),{},{onSuccess:function(){e.$toast.add({severity:"info",summary:e.__("Confirmed"),detail:e.__("Record deleted"),life:3e3})}})},reject:function(){}})},handleCopyStatus:function(t){t&&this.$toast.add({severity:"success",summary:this.__("Copied"),detail:this.__("Copied Successfully!"),life:2e3})}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const _=(0,s(1900).Z)(m,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("admin-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v(t._s(t.__("Questions")))])]},proxy:!0},{key:"actions",fn:function(){return[s("div",{staticClass:"flex gap-4 items-center"},[s("inertia-link",{staticClass:"qt-btn qt-btn-primary",attrs:{href:t.route("initiate_import_questions")}},[t._v("\n                "+t._s(t.__("Import Questions"))+"\n            ")]),t._v(" "),s("arc-dropdown",{attrs:{align:"right",width:"48"},scopedSlots:t._u([{key:"trigger",fn:function(){return[s("button",{staticClass:"qt-btn qt-btn-success"},[t._v("\n                        "+t._s(t.__("New"))+" "+t._s(t.__("Question"))+"\n                    ")])]},proxy:!0},{key:"content",fn:function(){return[t._l(t.questionTypes,(function(e){return[s("arc-dropdown-link",{attrs:{href:t.route("questions.create",{question_type:e.code})}},[t._v("\n                            "+t._s(e.text)+"\n                        ")])]}))]},proxy:!0}])})],1)]},proxy:!0}])},[t._v(" "),t._v(" "),s("div",{staticClass:"container mx-auto py-8 px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"card"},[s("div",{staticClass:"card-body"},[s("vue-good-table",{attrs:{mode:"remote","pagination-options":t.options,columns:t.columns,totalRows:t.questions.meta.pagination.total,rows:t.questions.data,rtl:t.$page.props.rtl},on:{"on-page-change":t.onPageChange,"on-column-filter":t.onColumnFilter,"on-per-page-change":t.onPerPageChange},scopedSlots:t._u([{key:"table-row",fn:function(e){return["code"===e.column.field?s("div",[s("Tag",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.row.code,expression:"props.row.code",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.handleCopyStatus,expression:"handleCopyStatus",arg:"success"}],staticClass:"w-full p-mr-2 text-sm cursor-pointer",attrs:{value:e.row.code,icon:"pi pi-copy"}})],1):"question"===e.column.field?s("div",[s("div",{staticClass:"py-4",domProps:{innerHTML:t._s(e.row.question)}})]):"status"===e.column.field?s("div",[s("span",{class:["Active"===e.row.status?"badge-success":"badge-danger","badge"]},[t._v(t._s(t.__(e.row.status)))])]):"actions"===e.column.field?s("div",[s("Button",{staticClass:"p-button-rounded p-button-secondary p-button-text p-mr-2",attrs:{icon:"pi pi-pencil"},on:{click:function(s){return t.editQuestion(e.row.id)}}}),t._v(" "),s("Button",{staticClass:"p-button-rounded p-button-danger p-button-text",attrs:{icon:"pi pi-trash"},on:{click:function(s){return t.deleteQuestion(e.row.id)}}})],1):s("span",[t._v("\n                          "+t._s(e.formattedRow[e.column.field])+"\n                        ")])]}}])},[t._v(" "),s("div",{attrs:{slot:"emptystate"},slot:"emptystate"},[s("no-data-table")],1)])],1)])])])}),[],!1,null,null,null).exports},3886:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>q});var r=s(67),a=s(8801),i=s(4974),n=s(8558),o=s(2263),l=s(9745),c=s(5807),u=s(2187),d=s(4212),p=s(6916),m=s(4019),_=s(9938),f=s.n(_);const v={name:"QuizScheduleForm",components:{InputText:i.default,InputNumber:c.default,Dropdown:u.default,Button:o.default,FormInputShimmer:p.Z,FormSwitchShimmer:m.Z,vSelect:f(),RadioButton:d.default},props:{editFlag:Boolean,quizScheduleId:Number,quizId:Number,userGroups:Array,errors:Object,title:""},data:function(){return{form:{quiz_id:this.quizId,schedule_type:"fixed",start_date:"",end_date:"",start_time:"",end_time:"",grace_period:5,status:"active",user_groups:[]},quizzes:[],disableFlag:!1,scheduleTypes:[{name:this.__("Fixed"),code:"fixed"},{name:this.__("Flexible"),code:"flexible"}],quizStatus:[{name:this.__("Active"),code:"active"},{name:this.__("Expired"),code:"expired"},{name:this.__("Cancelled"),code:"cancelled"}],minDate:(new Date).toISOString().slice(0,10),formValidated:!1,loading:!1,debounce:null}},methods:{submitForm:function(){this.editFlag?this.update():this.create()},create:function(){var t=this;this.formValidated=!0,this.$inertia.post(route("quizzes.schedules.store",{quiz:this.quizId}),this.form,{onSuccess:function(){0===Object.keys(t.errors).length&&t.$emit("close",!0)}})},update:function(){var t=this;this.formValidated=!0,this.$inertia.patch(route("quizzes.schedules.update",{quiz:this.quizId,schedule:this.quizScheduleId}),this.form,{onSuccess:function(){0===Object.keys(t.errors).length&&t.$emit("close",!0)}})},fetch:function(){if(this.editFlag){var t=this;t.loading=!0,axios.get(route("quizzes.schedules.edit",{quiz:this.quizId,schedule:this.quizScheduleId})).then((function(e){var s=e.data.schedule;t.form.schedule_type=s.schedule_type,t.form.start_date=s.start_date,t.form.start_time=s.start_time,t.form.end_date=s.end_date,t.form.end_time=s.end_time,t.form.grace_period=s.grace_period,t.form.status=s.status,t.form.user_groups=e.data.userGroups,t.disableFlag=e.data.disableFlag})).catch((function(e){t.loading=!1})).then((function(){t.loading=!1}))}}},mounted:function(){!0===this.editFlag&&this.fetch()}};var h=s(1900);const g=(0,h.Z)(v,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"overflow-y-auto h-screen px-2"},[s("div",{staticClass:"bg-gray-100 py-4 lg:py-4 rounded"},[s("div",{staticClass:"container px-6 mx-auto flex ltr:flex-row rtl:flex-row-reverse"},[s("div",[s("h4",{staticClass:"text-base font-semibold leading-tight text-gray-800"},[t._v("\n                    "+t._s(t.title)+"\n                ")])])])]),t._v(" "),t.loading?s("div",{staticClass:"my-6 w-11/12 mx-auto xl:w-full xl:mx-0"},[s("form-input-shimmer"),t._v(" "),s("form-input-shimmer"),t._v(" "),s("form-input-shimmer"),t._v(" "),s("form-switch-shimmer")],1):s("form",{staticClass:"my-6 w-11/12 mx-auto xl:w-full xl:mx-0",on:{submit:function(e){return e.preventDefault(),t.submitForm(e)}}},[s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 text-sm font-semibold text-gray-800"},[t._v(t._s(t.__("Schedule Type"))),s("span",{staticClass:"ml-1 text-red-400"},[t._v("*")])]),t._v(" "),s("div",{staticClass:"flex flex-col sm:flex-row gap-4"},t._l(t.scheduleTypes,(function(e){return s("div",{staticClass:"p-field-radiobutton"},[s("RadioButton",{attrs:{id:"schedule_type"+e.code,name:"schedule_type",value:e.code,disabled:t.editFlag},model:{value:t.form.schedule_type,callback:function(e){t.$set(t.form,"schedule_type",e)},expression:"form.schedule_type"}}),t._v(" "),s("label",{staticClass:"text-sm text-gray-800",attrs:{for:"schedule_type"+e.code}},[t._v(t._s(e.name))])],1)})),0)]),t._v(" "),s("div",{staticClass:"flex flex-col sm:flex-row gap-2"},[s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 font-semibold text-gray-800",attrs:{for:"start_date"}},[t._v(t._s(t.__("Start Date")))]),t._v(" "),s("VueCtkDateTimePicker",{class:[t.errors.start_date?"p-invalid":""],attrs:{id:"start_date",label:"Select Start Date","only-date":!0,formatted:"MMMM Do YYYY",format:"YYYY-MM-DD","no-label":!0,"min-date":t.minDate,"no-header":!0,disabled:t.disableFlag},model:{value:t.form.start_date,callback:function(e){t.$set(t.form,"start_date",e)},expression:"form.start_date"}}),t._v(" "),t.errors.start_date?s("small",{staticClass:"p-invalid",attrs:{id:"start_date-help"}},[t._v(t._s(t.errors.start_date))]):t._e()],1),t._v(" "),s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 font-semibold text-gray-800",attrs:{for:"start_time"}},[t._v(t._s(t.__("Start Time")))]),t._v(" "),s("VueCtkDateTimePicker",{class:[t.errors.start_time?"p-invalid":""],attrs:{id:"start_time",label:"Select Start Time","only-time":!0,formatted:"HH:mm",format:"HH:mm:ss","no-label":!0,"no-header":!0,"minute-interval":5,disabled:t.disableFlag},model:{value:t.form.start_time,callback:function(e){t.$set(t.form,"start_time",e)},expression:"form.start_time"}}),t._v(" "),t.errors.start_time?s("small",{staticClass:"p-invalid",attrs:{id:"start_time-help"}},[t._v(t._s(t.errors.start_time))]):t._e()],1)]),t._v(" "),"flexible"===t.form.schedule_type?s("div",{staticClass:"flex flex-col sm:flex-row gap-2"},[s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 font-semibold text-gray-800",attrs:{for:"end_date"}},[t._v(t._s(t.__("End Date")))]),t._v(" "),s("VueCtkDateTimePicker",{class:[t.errors.end_date?"p-invalid":""],attrs:{id:"end_date",label:"Select End Date","only-date":!0,formatted:"MMMM Do YYYY",format:"YYYY-MM-DD","no-label":!0,"min-date":t.minDate,"no-header":!0,disabled:t.disableFlag},model:{value:t.form.end_date,callback:function(e){t.$set(t.form,"end_date",e)},expression:"form.end_date"}}),t._v(" "),t.errors.end_date?s("small",{staticClass:"p-invalid",attrs:{id:"ends_at-help"}},[t._v(t._s(t.errors.end_date))]):t._e()],1),t._v(" "),s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 font-semibold text-gray-800",attrs:{for:"end_time"}},[t._v(t._s(t.__("End Time")))]),t._v(" "),s("VueCtkDateTimePicker",{class:[t.errors.end_time?"p-invalid":""],attrs:{id:"end_time",label:"Select End Time","only-time":!0,formatted:"HH:mm",format:"HH:mm:ss","no-label":!0,"no-header":!0,"minute-interval":5,disabled:t.disableFlag},model:{value:t.form.end_time,callback:function(e){t.$set(t.form,"end_time",e)},expression:"form.end_time"}}),t._v(" "),t.errors.end_time?s("small",{staticClass:"p-invalid",attrs:{id:"end_time-help"}},[t._v(t._s(t.errors.end_time))]):t._e()],1)]):t._e(),t._v(" "),"fixed"===t.form.schedule_type?s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 font-semibold text-gray-800",attrs:{for:"grace_period"}},[t._v(t._s(t.__("Grace Period to Join"))+" ("+t._s(t.__("Minutes"))+")")]),t._v(" "),s("InputNumber",{class:[t.errors.grace_period?"p-invalid":""],attrs:{id:"grace_period",placeholder:"Enter Grace Period","aria-describedby":"grace_period-help",disabled:t.disableFlag},model:{value:t.form.grace_period,callback:function(e){t.$set(t.form,"grace_period",e)},expression:"form.grace_period"}}),t._v(" "),t.errors.grace_period?s("small",{staticClass:"p-invalid",attrs:{id:"grace_period-help"}},[t._v(t._s(t.errors.grace_period))]):t._e()],1):t._e(),t._v(" "),s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 font-semibold text-gray-800",attrs:{for:"users"}},[t._v(t._s(t.__("Schedule to User Groups")))]),t._v(" "),s("v-select",{attrs:{multiple:"",id:"users",options:t.userGroups,reduce:function(t){return t.id},label:"name",disabled:t.disableFlag},model:{value:t.form.user_groups,callback:function(e){t.$set(t.form,"user_groups",e)},expression:"form.user_groups"}}),t._v(" "),t.errors.user_groups?s("small",{staticClass:"p-invalid",attrs:{id:"users-help"}},[t._v(t._s(t.errors.user_groups))]):t._e()],1),t._v(" "),t.editFlag?s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 font-semibold text-gray-800",attrs:{for:"status"}},[t._v(t._s(t.__("Status")))]),t._v(" "),s("Dropdown",{attrs:{id:"status",options:t.quizStatus,optionLabel:"name",optionValue:"code",dataKey:"code",placeholder:"Select Status",disabled:t.disableFlag},model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}}),t._v(" "),t.errors.status?s("small",{staticClass:"p-invalid",attrs:{id:"status-help"}},[t._v(t._s(t.errors.status))]):t._e()],1):t._e(),t._v(" "),t.disableFlag?s("small",{staticClass:"text-sm text-red-400",attrs:{id:"expire-note"}},[t._v(t._s(t.__("schedule_update_message")))]):t._e(),t._v(" "),t.disableFlag?t._e():s("div",{staticClass:"w-full flex"},[s("Button",{attrs:{type:"submit",label:t.editFlag?t.__("Update"):t.__("Create")}})],1)])])}),[],!1,null,null,null).exports;var b=s(298),x=s(728),y=s(7531),w=s(2422),C=s(3194);function k(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var s=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==s)return;var r,a,i=[],n=!0,o=!1;try{for(s=s.call(t);!(n=(r=s.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return S(t,e);var s=Object.prototype.toString.call(t).slice(8,-1);"Object"===s&&t.constructor&&(s=t.constructor.name);if("Map"===s||"Set"===s)return Array.from(t);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return S(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,r=new Array(e);s<e;s++)r[s]=t[s];return r}const A={components:{QuizScheduleForm:g,AdminLayout:r.Z,Column:a.default,InputText:i.default,Toolbar:n.default,Button:o.default,Sidebar:l.default,Toast:b.default,Chip:x.default,Tag:y.default,HorizontalStepper:w.Z,NoDataTable:C.Z},props:{quiz:Object,steps:Array,editFlag:!1,quizSchedules:Object,userGroups:Array,errors:Object},data:function(){return{createForm:!1,editForm:!1,currentId:null,columns:[{label:this.__("Code"),field:"code",filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Code"),filterValue:null,trigger:"enter"},sortable:!1,width:"11rem"},{label:this.__("Type"),field:"type",sortable:!1},{label:this.__("Starts At"),field:"starts_at",sortable:!1},{label:this.__("Ends At"),field:"ends_at",sortable:!1},{label:this.__("Status"),field:"status",sortable:!1,filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Status"),filterValue:null,filterDropdownItems:[{value:"active",text:this.__("Active")},{value:"expired",text:this.__("Expired")},{value:"cancelled",text:this.__("Cancelled")}]}},{label:this.__("Actions"),field:"actions",sortable:!1}],options:{enabled:!0,mode:"pages",perPage:this.quizSchedules.meta.pagination.per_page,setCurrentPage:this.quizSchedules.meta.pagination.current_page,perPageDropdown:[10,20,50,100],dropdownAllowAll:!1},serverParams:{columnFilters:{},sort:{field:"",type:""},page:1,perPage:10},loading:!1}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return"Quiz Schedules - "+this.$page.props.general.app_name+" Admin"}},methods:{updateParams:function(t){this.serverParams=Object.assign({},this.serverParams,t)},onPageChange:function(t){this.updateParams({page:t.currentPage}),this.loadItems()},onPerPageChange:function(t){this.updateParams({perPage:t.currentPerPage}),this.loadItems()},onSortChange:function(t){this.updateParams({sort:[{type:t.sortType,field:this.columns[t.columnIndex].field}]}),this.loadItems()},onColumnFilter:function(t){this.updateParams(t),this.loadItems()},getQueryParams:function(){for(var t={page:this.serverParams.page,perPage:this.serverParams.perPage},e=0,s=Object.entries(this.serverParams.columnFilters);e<s.length;e++){var r=k(s[e],2),a=r[0],i=r[1];i&&(t[a]=i)}return t},loadItems:function(){this.$inertia.get(route(route().current(),{quiz:this.quiz.id}),this.getQueryParams(),{replace:!1,preserveState:!0,preserveScroll:!0})},goToAnalytics:function(t){this.$inertia.get(route("quizzes.overall_report",{quiz:this.quiz.id,schedule:t}))},deleteSchedule:function(t){var e=this;this.$confirm.require({header:this.__("Confirm Delete"),message:this.__("Do you want to delete this record?"),icon:"pi pi-info-circle",acceptClass:"p-button-danger",rejectLabel:this.__("Cancel"),acceptLabel:this.__("Delete"),accept:function(){e.$inertia.delete(route("quizzes.schedules.destroy",{quiz:e.quiz.id,schedule:t}),{},{onSuccess:function(){e.$toast.add({severity:"info",summary:e.__("Confirmed"),detail:e.__("Record deleted"),life:3e3})}})},reject:function(){}})},handleCopyStatus:function(t){t&&this.$toast.add({severity:"success",summary:this.__("Copied"),detail:this.__("Copied Successfully!"),life:2e3})}}};const q=(0,h.Z)(A,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("admin-layout",[s("div",{staticClass:"container mx-auto pt-4 px-4 sm:px-6 lg:px-8"},[s("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"},[s("div",{staticClass:"mb-4 sm:mb-0 md:mb-0 lg:mb-0 xl:mb-0 lg:w-1/2"},[s("h2",{staticClass:"text-gray-800 dark:text-gray-100 text-lg font-bold"},[t._v(t._s(t.__("Quiz"))+" "+t._s(t.__("Schedules")))]),t._v(" "),s("p",{staticClass:"font-normal text-sm text-gray-600 dark:text-gray-100 mt-1",domProps:{innerHTML:t._s(t.editFlag?t.quiz.title:"New Quiz")}})]),t._v(" "),s("horizontal-stepper",{attrs:{steps:t.steps,"edit-flag":t.editFlag}})],1)]),t._v(" "),s("div",{staticClass:"container mx-auto py-8 px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"card"},[s("div",{staticClass:"card-body"},[s("div",{staticClass:"flex justify-end items-center mb-6"},[s("button",{staticClass:"qt-btn qt-btn-success",on:{click:function(e){t.createForm=!0}}},[t._v("\n                        "+t._s(t.__("New"))+" "+t._s(t.__("Schedule"))+"\n                    ")])]),t._v(" "),s("vue-good-table",{attrs:{mode:"remote","pagination-options":t.options,columns:t.columns,totalRows:t.quizSchedules.meta.pagination.total,rows:t.quizSchedules.data,rtl:t.$page.props.rtl},on:{"on-page-change":t.onPageChange,"on-column-filter":t.onColumnFilter,"on-per-page-change":t.onPerPageChange},scopedSlots:t._u([{key:"table-row",fn:function(e){return["code"===e.column.field?s("div",[s("Tag",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.row.code,expression:"props.row.code",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.handleCopyStatus,expression:"handleCopyStatus",arg:"success"}],staticClass:"w-full p-mr-2 text-sm cursor-pointer",attrs:{value:e.row.code,icon:"pi pi-copy"}})],1):"status"===e.column.field?s("div",[s("span",{class:["Active"===e.row.status?"badge-success":"badge-danger","badge"]},[t._v(t._s(t.__(e.row.status)))])]):"actions"===e.column.field?s("div",[s("Button",{staticClass:"p-button-rounded p-button-secondary p-button-text p-mr-2",attrs:{icon:"pi pi-pencil"},on:{click:function(s){t.editForm=!0,t.currentId=e.row.id}}}),t._v(" "),s("Button",{staticClass:"p-button-rounded p-button-secondary p-button-text p-mr-2",attrs:{icon:"pi pi-chart-line"},on:{click:function(s){return t.goToAnalytics(e.row.id)}}}),t._v(" "),s("Button",{staticClass:"p-button-rounded p-button-danger p-button-text",attrs:{icon:"pi pi-trash"},on:{click:function(s){return t.deleteSchedule(e.row.id)}}})],1):s("span",[t._v("\n                          "+t._s(e.formattedRow[e.column.field])+"\n                        ")])]}}])},[t._v(" "),s("div",{attrs:{slot:"emptystate"},slot:"emptystate"},[s("no-data-table",[s("template",{slot:"action"},[s("button",{staticClass:"qt-btn-sm qt-btn-primary",attrs:{type:"button"},on:{click:function(e){t.createForm=!0}}},[t._v("\n                                    "+t._s(t.__("New"))+" "+t._s(t.__("Schedule"))+"\n                                ")])])],2)],1)]),t._v(" "),s("Sidebar",{staticClass:"p-sidebar-md",attrs:{position:"right",visible:t.createForm},on:{"update:visible":function(e){t.createForm=e},hide:t.loadItems}},[s("QuizScheduleForm",{attrs:{errors:t.errors,"user-groups":t.userGroups,"quiz-id":t.quiz.id,title:t.__("New")+" "+t.__("Schedule")},on:{close:function(e){t.createForm=!1}}})],1),t._v(" "),s("Sidebar",{staticClass:"p-sidebar-md",attrs:{position:"right",visible:t.editForm},on:{"update:visible":function(e){t.editForm=e},hide:t.loadItems}},[s("QuizScheduleForm",{attrs:{"edit-flag":t.editForm,"quiz-schedule-id":t.currentId,errors:t.errors,"quiz-id":t.quiz.id,"user-groups":t.userGroups,title:t.__("Edit")+" "+t.__("Schedule")},on:{"update:editFlag":function(e){t.editForm=e},"update:edit-flag":function(e){t.editForm=e},close:function(e){t.editForm=!1}}})],1)],1)])])])}),[],!1,null,null,null).exports},8191:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>l});var r=s(67),a=s(3194);function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var s=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==s)return;var r,a,i=[],n=!0,o=!1;try{for(s=s.call(t);!(n=(r=s.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return n(t,e);var s=Object.prototype.toString.call(t).slice(8,-1);"Object"===s&&t.constructor&&(s=t.constructor.name);if("Map"===s||"Set"===s)return Array.from(t);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return n(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,r=new Array(e);s<e;s++)r[s]=t[s];return r}const o={components:{AdminLayout:r.Z,NoDataTable:a.Z},props:{quiz:Object,quizSessions:Object,schedule:Object},data:function(){return{loading:!1,columns:[{label:this.__("Test Taker"),field:"name",sortable:!1},{label:this.__("Completed On"),field:"completed",sortable:!1},{label:this.__("Percentage"),field:"percentage",sortable:!1},{label:this.__("Score"),field:"score",sortable:!1},{label:this.__("Accuracy"),field:"accuracy",sortable:!1},{label:this.__("IP"),field:"ip",sortable:!1},{label:this.__("Status"),field:"status",sortable:!1},{label:this.__("Actions"),field:"actions",sortable:!1}],options:{enabled:!0,mode:"pages",perPage:this.quizSessions.meta.pagination.per_page,setCurrentPage:this.quizSessions.meta.pagination.current_page,perPageDropdown:[10,20,50,100],dropdownAllowAll:!1},serverParams:{columnFilters:{},sort:{field:"",type:""},page:1,perPage:10}}},methods:{toggleReport:function(){this.detailed=!this.detailed},updateParams:function(t){this.serverParams=Object.assign({},this.serverParams,t)},onPageChange:function(t){this.updateParams({page:t.currentPage}),this.loadItems()},onPerPageChange:function(t){this.updateParams({perPage:t.currentPerPage}),this.loadItems()},onSortChange:function(t){this.updateParams({sort:[{type:t.sortType,field:this.columns[t.columnIndex].field}]}),this.loadItems()},onColumnFilter:function(t){this.updateParams(t),this.serverParams.page=1,this.loadItems()},getQueryParams:function(){for(var t={page:this.serverParams.page,perPage:this.serverParams.perPage},e=0,s=Object.entries(this.serverParams.columnFilters);e<s.length;e++){var r=i(s[e],2),a=r[0],n=r[1];n&&(t[a]=n)}return t},loadItems:function(){this.$inertia.get(route(route().current()),this.getQueryParams(),{replace:!1,preserveState:!0,preserveScroll:!0})}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return this.quiz.title+" Detailed Report - "+this.$page.props.general.app_name}}};const l=(0,s(1900).Z)(o,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("admin-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v(t._s(t.quiz.title)+" - "+t._s(null!==t.schedule?"Schedule":"")+" "+t._s(t.__("Detailed Report")))]),t._v(" "),null!==t.schedule?s("div",{staticClass:"text-xs"},[t._v(t._s(t.__("Schedule"))+" ID: "+t._s(t.schedule.code))]):t._e()]},proxy:!0},{key:"actions",fn:function(){return[null!==t.schedule?s("a",{staticClass:"qt-btn qt-btn-primary",attrs:{href:t.route("quizzes.export_report",{quiz:t.quiz.id,schedule:t.schedule.id}),target:"_blank"}},[t._v("\n            "+t._s(t.__("Download Report"))+"\n        ")]):s("a",{staticClass:"qt-btn qt-btn-primary",attrs:{href:t.route("quizzes.export_report",{quiz:t.quiz.id}),target:"_blank"}},[t._v("\n            "+t._s(t.__("Download Report"))+"\n        ")]),t._v(" "),null!==t.schedule?s("inertia-link",{staticClass:"qt-btn qt-btn-success",attrs:{href:t.route("quizzes.overall_report",{quiz:t.quiz.id,schedule:t.schedule.id})}},[t._v("\n            "+t._s(t.__("Overall Report"))+"\n        ")]):s("inertia-link",{staticClass:"qt-btn qt-btn-success",attrs:{href:t.route("quizzes.overall_report",{quiz:t.quiz.id})}},[t._v("\n            "+t._s(t.__("Overall Report"))+"\n        ")])]},proxy:!0}])},[t._v(" "),t._v(" "),s("div",{staticClass:"py-8"},[s("div",{staticClass:"container mx-auto px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"card"},[s("div",{staticClass:"card-body"},[s("vue-good-table",{attrs:{mode:"remote","pagination-options":t.options,columns:t.columns,totalRows:t.quizSessions.meta.pagination.total,rows:t.quizSessions.data,rtl:t.$page.props.rtl},on:{"on-page-change":t.onPageChange,"on-column-filter":t.onColumnFilter,"on-per-page-change":t.onPerPageChange},scopedSlots:t._u([{key:"table-row",fn:function(e){return["status"===e.column.field?s("div",[s("span",{class:["Passed"===e.row.status?"badge-success":"badge-danger","badge-sm uppercase text-xs"]},[t._v(t._s(t.__(e.row.status)))])]):"actions"===e.column.field?s("div",{staticClass:"py-2"},[s("inertia-link",{staticClass:"qt-btn qt-btn-sm qt-btn-success",attrs:{href:t.route("quiz_session_results",{quiz:e.row.slug,session:e.row.id})}},[t._v("\n                                    "+t._s(t.__("View Results"))+"\n                                ")])],1):s("span",[t._v("\n                                  "+t._s(e.formattedRow[e.column.field])+"\n                                ")])]}}])},[t._v(" "),s("div",{attrs:{slot:"emptystate"},slot:"emptystate"},[s("no-data-table")],1)])],1)])])])])}),[],!1,null,null,null).exports},7705:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>b});var r=s(67),a=s(4974),i=s(5807),n=s(2187),o=s(4212),l=s(2263),c=s(8067),u=s.n(c),d=s(379),p=s(8465),m=s(9055),_=s(2422);function f(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,r)}return s}function v(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?f(Object(s),!0).forEach((function(e){h(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):f(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}function h(t,e,s){return e in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}const g={name:"Details",components:{AdminLayout:r.Z,ckeditor:u().component,InputText:a.default,InputNumber:i.default,Dropdown:n.default,RadioButton:o.default,Button:l.default,InputSwitch:p.default,QuizNavigation:m.Z,HorizontalStepper:_.Z},props:{quiz:Object,steps:Array,editFlag:!1,quizId:Number,initialSubCategories:Array,quizTypes:Array,errors:Object},data:function(){return{form:{title:this.editFlag?this.quiz.title:"",description:this.editFlag?this.quiz.description:"",sub_category_id:this.editFlag?this.quiz.sub_category_id:"",quiz_type_id:this.editFlag?this.quiz.quiz_type_id:"",is_paid:!!this.editFlag&&this.quiz.is_paid,price:this.editFlag?this.quiz.price:null,can_redeem:!!this.editFlag&&this.quiz.can_redeem,points_required:this.editFlag?this.quiz.points_required:null,is_active:!!this.editFlag&&this.quiz.is_active,is_private:!!this.editFlag&&this.quiz.is_private},subCategories:this.initialSubCategories,editorUrl:window.CKEditorURL,editorConfig:{contentsLangDirection:this.$page.props.rtl?"rtl":"ltr"},debounce:null,submitStatus:null}},validations:function(){return{form:v(v({title:{required:d.C1},sub_category_id:{required:d.C1},quiz_type_id:{required:d.C1},price:{}},this.form.is_paid&&{price:{required:d.C1}}),{},{can_redeem:{}},this.form.can_redeem&&{points_required:{required:d.C1}})}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return(this.editFlag?this.quiz.title+" (Details) - ":"Create Quiz - ")+this.$page.props.general.app_name+" Admin"}},methods:{submitForm:function(){var t=this;this.$v.$touch(),this.$v.$invalid?this.submitStatus="ERROR":(this.submitStatus="PENDING",setTimeout((function(){t.submitStatus="OK",t.editFlag?t.update():t.create()}),100))},create:function(){var t=this;this.formValidated=!0,this.$inertia.post(route("quizzes.store"),this.form,{onSuccess:function(){0===Object.keys(t.errors).length&&t.$emit("close",!0)}})},update:function(){var t=this;this.formValidated=!0,this.$inertia.patch(route("quizzes.update",{id:this.quizId}),this.form,{onSuccess:function(){0===Object.keys(t.errors).length&&t.$emit("close",!0)}})},searchSubCategories:function(t,e){if(""!==t){var s=this;e(!0),clearTimeout(this.debounce),this.subCategories=[],this.debounce=setTimeout((function(){axios.get(route("search_sub_categories",{query:t})).then((function(t){s.subCategories=t.data.subCategories,e(!1)})).catch((function(t){e(!1)}))}),600)}}}};const b=(0,s(1900).Z)(g,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("admin-layout",[s("div",{staticClass:"container mx-auto pt-4 px-4 sm:px-6 lg:px-8"},[s("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"},[s("div",{staticClass:"mb-4 sm:mb-0 md:mb-0 lg:mb-0 xl:mb-0 lg:w-1/2"},[s("h2",{staticClass:"text-gray-800 dark:text-gray-100 text-lg font-bold"},[t._v(t._s(t.__("Quiz"))+" "+t._s(t.__("Details")))]),t._v(" "),s("p",{staticClass:"font-normal text-sm text-gray-600 dark:text-gray-100 mt-1",domProps:{innerHTML:t._s(t.editFlag?t.quiz.title:t.__("New")+" "+t.__("Quiz"))}})]),t._v(" "),s("horizontal-stepper",{attrs:{steps:t.steps,"edit-flag":t.editFlag}})],1)]),t._v(" "),s("div",{staticClass:"container mx-auto py-8 px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"card"},[s("div",{staticClass:"card-body"},[s("div",{staticClass:"flex justify-center flex-wrap"},[s("div",{staticClass:"md:w-8/12 w-full py-6 md:pb-0 md:px-6"},[s("form",{on:{submit:function(e){return e.preventDefault(),t.submitForm(e)}}},[s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 text-sm font-semibold text-gray-800",attrs:{for:"title"}},[t._v(t._s(t.__("Title"))),s("span",{staticClass:"ltr:ml-1 rtl:mr-1 text-red-400"},[t._v("*")])]),t._v(" "),s("InputText",{attrs:{id:"title",type:"text",placeholder:t.__("Title"),"aria-describedby":"title-help"},model:{value:t.$v.form.title.$model,callback:function(e){t.$set(t.$v.form.title,"$model",e)},expression:"$v.form.title.$model"}}),t._v(" "),s("div",{staticClass:"form-control-errors"},[t.$v.form.title.$error&&!t.$v.form.title.required?s("p",{staticClass:"text-xs text-red-500 pt-2",attrs:{role:"alert"}},[t._v(t._s(t.__("Title"))+" "+t._s(t.__("is required")))]):t._e()])],1),t._v(" "),s("div",{staticClass:"grid sm:grid-cols-2 sm:gap-4"},[s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 text-sm font-semibold text-gray-800"},[t._v(t._s(t.__("Sub Category"))),s("span",{staticClass:"ltr:ml-1 rtl:mr-1 text-red-400"},[t._v("*")])]),t._v(" "),s("v-select",{attrs:{id:"sub_category_id",options:t.subCategories,reduce:function(t){return t.id},label:"name",dir:t.$page.props.rtl?"rtl":"ltr"},on:{search:t.searchSubCategories},scopedSlots:t._u([{key:"no-options",fn:function(e){e.search;return[e.searching?[t._v(t._s(t.__("No results were found for this search"))+".")]:s("em",{staticClass:"opacity-50"},[t._v(t._s(t.__("Start typing to search"))+".")])]}}]),model:{value:t.form.sub_category_id,callback:function(e){t.$set(t.form,"sub_category_id",e)},expression:"form.sub_category_id"}}),t._v(" "),s("div",{staticClass:"form-control-errors"},[t.$v.form.sub_category_id.$error&&!t.$v.form.sub_category_id.required?s("p",{staticClass:"text-xs text-red-500 pt-2",attrs:{role:"alert"}},[t._v(t._s(t.__("Sub Category"))+" "+t._s(t.__("is required")))]):t._e()])],1),t._v(" "),s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 text-sm font-semibold text-gray-800"},[t._v(t._s(t.__("Quiz Type")))]),t._v(" "),s("v-select",{attrs:{id:"quiz_type_id",options:t.quizTypes,reduce:function(t){return t.id},label:"name",dir:t.$page.props.rtl?"rtl":"ltr"},scopedSlots:t._u([{key:"no-options",fn:function(e){e.search;return[e.searching?[t._v(t._s(t.__("No results were found for this search"))+".")]:s("em",{staticClass:"opacity-50"},[t._v(t._s(t.__("Start typing to search"))+".")])]}}]),model:{value:t.form.quiz_type_id,callback:function(e){t.$set(t.form,"quiz_type_id",e)},expression:"form.quiz_type_id"}}),t._v(" "),s("div",{staticClass:"form-control-errors"},[t.$v.form.quiz_type_id.$error&&!t.$v.form.quiz_type_id.required?s("p",{staticClass:"text-xs text-red-500 pt-2",attrs:{role:"alert"}},[t._v(t._s(t.__("Quiz Type"))+" "+t._s(t.__("is required")))]):t._e()])],1)]),t._v(" "),s("div",{staticClass:"w-full"},[s("div",{staticClass:"flex justify-between items-center mb-8"},[s("div",{staticClass:"w-9/12"},[s("label",{staticClass:"font-semibold text-sm text-gray-800 pb-1",attrs:{for:"can_redeem"}},[t._v(t._s(t.__("Can access with Points"))+" ("+t._s(t.form.can_redeem?"Yes":"No")+")")]),t._v(" "),s("p",{staticClass:"text-gray-500 text-sm"},[t._v("Yes ("+t._s(t.__("User should redeem with points to access quiz"))+"). No ("+t._s(t.__("Anyone can access"))+").")])]),t._v(" "),s("div",{staticClass:"cursor-pointer rounded-full relative shadow-sm"},[s("InputSwitch",{attrs:{id:"can_redeem"},model:{value:t.form.can_redeem,callback:function(e){t.$set(t.form,"can_redeem",e)},expression:"form.can_redeem"}})],1)])]),t._v(" "),t.form.can_redeem?s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 text-sm font-semibold text-gray-800",attrs:{for:"points_required"}},[t._v(t._s(t.__("Points Required to Redeem"))),s("span",{staticClass:"ml-1 text-red-400"},[t._v("*")])]),t._v(" "),s("InputNumber",{attrs:{id:"points_required",placeholder:"Enter Points Required","aria-describedby":"points_required-help"},model:{value:t.$v.form.points_required.$model,callback:function(e){t.$set(t.$v.form.points_required,"$model",e)},expression:"$v.form.points_required.$model"}}),t._v(" "),s("div",{staticClass:"form-control-errors"},[t.$v.form.points_required.$error&&!t.$v.form.points_required.required?s("p",{staticClass:"text-xs text-red-500 pt-2",attrs:{role:"alert"}},[t._v(t._s(t.__("Points"))+" "+t._s(t.__("is required")))]):t._e()])],1):t._e(),t._v(" "),s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 text-sm font-semibold text-gray-800",attrs:{for:"description"}},[t._v(t._s(t.__("Description")))]),t._v(" "),s("ckeditor",{class:[t.$page.props.rtl?"cke_rtl":"cke_ltr"],attrs:{config:t.editorConfig,id:"description","editor-url":t.editorUrl},model:{value:t.form.description,callback:function(e){t.$set(t.form,"description",e)},expression:"form.description"}})],1),t._v(" "),s("div",{staticClass:"w-full"},[s("div",{staticClass:"flex justify-between items-center mb-8"},[s("div",{staticClass:"w-9/12"},[s("label",{staticClass:"font-semibold text-sm text-gray-800 pb-1",attrs:{for:"is_private"},domProps:{innerHTML:t._s(t.form.is_private?t.__("Visibility")+" - "+t.__("Private"):t.__("Visibility")+" - "+t.__("Public"))}}),t._v(" "),s("p",{staticClass:"text-gray-500 text-sm"},[t._v(t._s(t.__("Private"))+" ("+t._s(t.__("Only scheduled user groups can access"))+"). "+t._s(t.__("Public"))+" ("+t._s(t.__("Anyone can access"))+").")])]),t._v(" "),s("div",{staticClass:"cursor-pointer rounded-full relative shadow-sm"},[s("InputSwitch",{attrs:{id:"is_private"},model:{value:t.form.is_private,callback:function(e){t.$set(t.form,"is_private",e)},expression:"form.is_private"}})],1)])]),t._v(" "),t.editFlag?s("div",{staticClass:"w-full"},[s("div",{staticClass:"flex justify-between items-center mb-8"},[s("div",{staticClass:"w-9/12"},[s("label",{staticClass:"font-semibold text-gray-800 text-sm pb-1",attrs:{for:"is_active"},domProps:{innerHTML:t._s(t.form.is_active?t.__("Status")+" - "+t.__("Published"):t.__("Status")+" - "+t.__("Draft"))}}),t._v(" "),s("p",{staticClass:"text-sm text-gray-500"},[t._v(t._s(t.__("Published"))+" ("+t._s(t.__("Shown Everywhere"))+"). "+t._s(t.__("Draft"))+" ("+t._s(t.__("Not Shown"))+").")])]),t._v(" "),s("div",{staticClass:"cursor-pointer rounded-full relative shadow-sm"},[s("InputSwitch",{attrs:{id:"is_active"},model:{value:t.form.is_active,callback:function(e){t.$set(t.form,"is_active",e)},expression:"form.is_active"}})],1)])]):t._e(),t._v(" "),s("div",{staticClass:"w-full flex justify-end my-8"},[s("button",{staticClass:"qt-btn qt-btn-success",attrs:{type:"submit"},domProps:{innerHTML:t._s(t.editFlag?t.__("Update Details"):t.__("Save & Proceed"))}})])])])])])])])])}),[],!1,null,null,null).exports},7673:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var r=s(67),a=s(3427);const i={components:{AdminLayout:r.Z,AdminTestStatCard:a.Z},props:{quiz:Object,stats:Object,schedule:Object},data:function(){return{loading:!1}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return this.quiz.title+" Overall Report - "+this.$page.props.general.app_name}}};const n=(0,s(1900).Z)(i,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("admin-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v(t._s(t.quiz.title)+" - "+t._s(null!==t.schedule?t.__("Schedule"):"")+" "+t._s(t.__("Overall Report")))]),t._v(" "),null!==t.schedule?s("div",{staticClass:"text-xs"},[t._v(t._s(t.__("Schedule"))+" ID: "+t._s(t.schedule.code))]):t._e()]},proxy:!0},{key:"actions",fn:function(){return[null!==t.schedule?s("inertia-link",{staticClass:"qt-btn qt-btn-success",attrs:{href:t.route("quizzes.detailed_report",{quiz:t.quiz.id,schedule:t.schedule.id})}},[t._v("\n            "+t._s(t.__("Detailed Report"))+"\n        ")]):s("inertia-link",{staticClass:"qt-btn qt-btn-success",attrs:{href:t.route("quizzes.detailed_report",{quiz:t.quiz.id})}},[t._v("\n            "+t._s(t.__("Detailed Report"))+"\n        ")])]},proxy:!0}])},[t._v(" "),t._v(" "),s("div",{staticClass:"py-8"},[s("div",{staticClass:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"bg-white shadow rounded-lg w-full overflow-hidden"},[s("div",{staticClass:"grid sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4"},[s("admin-test-stat-card",{attrs:{title:t.__("Total Attempts"),count:t.stats.total_attempts}}),t._v(" "),s("admin-test-stat-card",{attrs:{title:t.__("Pass Attempts"),count:t.stats.pass_count}}),t._v(" "),s("admin-test-stat-card",{attrs:{title:t.__("Fail Attempts"),count:t.stats.failed_count}}),t._v(" "),s("admin-test-stat-card",{attrs:{title:t.__("Unique Test Takers"),count:t.stats.unique_test_takers}}),t._v(" "),s("admin-test-stat-card",{attrs:{title:t.__("Avg. Time Spent"),count:t.stats.avg_time.detailed_readable}}),t._v(" "),s("admin-test-stat-card",{attrs:{title:t.__("Avg. Score"),count:t.stats.avg_score}}),t._v(" "),s("admin-test-stat-card",{attrs:{title:t.__("High Score"),count:t.stats.high_score}}),t._v(" "),s("admin-test-stat-card",{attrs:{title:t.__("Low Score"),count:t.stats.low_score}}),t._v(" "),s("admin-test-stat-card",{attrs:{title:t.__("Avg. Percentage"),count:t.stats.avg_percentage}}),t._v(" "),s("admin-test-stat-card",{attrs:{title:t.__("Avg. Accuracy"),count:t.stats.avg_accuracy}}),t._v(" "),s("admin-test-stat-card",{attrs:{title:t.__("Avg. Speed"),count:t.stats.avg_speed}}),t._v(" "),s("admin-test-stat-card",{attrs:{title:t.__("Avg. Questions Answered"),count:t.stats.avg_questions_answered}})],1)])])])])}),[],!1,null,null,null).exports},4510:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>w});var r=s(67),a=s(5850),i=s(7454),n=s(302),o=s(2829),l=s(4357),c=s(6077),u=s(2682),d=s(8200),p=s(9591),m=s(298),_=s(9055),f=s(5693),v=s(2263),h=s(9938),g=s.n(h),b=s(4974),x=s(2422);const y={name:"QuizQuestions",components:{QuizNavigation:_.Z,TOFPreview:d.Z,LAQPreview:u.Z,SAQPreview:c.Z,ORDPreview:l.Z,MTFPreview:o.Z,FIBPreview:n.Z,MMAPreview:i.Z,AdminLayout:r.Z,MSAPreview:a.Z,AdminQuestionShimmer:p.Z,Toast:m.default,Button:v.default,Checkbox:f.default,vSelect:g(),InputText:b.default,HorizontalStepper:x.Z},props:{quiz:Object,difficultyLevels:Array,questionTypes:Array,steps:Array,editFlag:!1},data:function(){return{qEditFlag:!1,questions:[],pagination:{},difficultyFilter:[],typeFilter:[],skillFilter:null,sectionFilter:null,topicFilter:null,codeFilter:"",debounce:null,loading:!1,processing:!1}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return this.quiz.title+" (Questions) - "+this.$page.props.general.app_name+" Admin"}},methods:{viewQuestions:function(){this.qEditFlag=!1,this.resetFilters()},editQuestions:function(){this.qEditFlag=!0,this.resetFilters()},resetFilters:function(){this.codeFilter="",this.sectionFilter="",this.skillFilter="",this.topicFilter="",this.difficultyFilter=[],this.typeFilter=[],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,section:this.sectionFilter,skill:this.skillFilter,topic:this.topicFilter,code:this.codeFilter}}).then((function(e){var s=e.data.questions.data;t.pagination=e.data.questions.meta.pagination,s.forEach((function(e){return t.questions.push(e)})),t.loading=!1})).catch((function(e){t.loading=!1}))},fetchQuestions:function(){var t=this;t.loading=!0,this.questions=[],axios.get(route("quizzes.fetch_questions",{quiz:this.quiz.id,difficulty_levels:this.difficultyFilter,question_types:this.typeFilter,section:this.sectionFilter,skill:this.skillFilter,topic:this.topicFilter,code:this.codeFilter})).then((function(e){var s=e.data.questions.data;t.pagination=e.data.questions.meta.pagination,s.forEach((function(e){return t.questions.push(e)})),t.loading=!1})).catch((function(e){t.loading=!1}))},fetchAvailableQuestions:function(){var t=this;t.loading=!0,this.questions=[],axios.get(route("quizzes.fetch_available_questions",{quiz:this.quiz.id,difficulty_levels:this.difficultyFilter,question_types:this.typeFilter,section:this.sectionFilter,skill:this.skillFilter,topic:this.topicFilter,code:this.codeFilter})).then((function(e){var s=e.data.questions.data;t.pagination=e.data.questions.meta.pagination,s.forEach((function(e){return t.questions.push(e)})),t.loading=!1})).catch((function(e){t.loading=!1}))},addQuestion:function(t,e){var s=this;s.processing=!0,axios.post(route("quizzes.add_question",{quiz:this.quiz.id}),{question_id:t}).then((function(t){s.questions[e].disabled=!0,s.$toast.add({severity:"success",summary:this.__("Added"),detail:this.__("Question Added Successfully!"),life:2e3}),s.processing=!1})).catch((function(t){s.processing=!1}))},removeQuestion:function(t,e){var s=this,r=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(){r.processing=!0,axios.post(route("quizzes.remove_question",{quiz:s.quiz.id}),{question_id:t}).then((function(t){r.questions[e].disabled=!0,r.$toast.add({severity:"info",summary:this.__("Removed"),detail:this.__("Question removed successfully"),life:3e3}),r.processing=!1})).catch((function(t){r.processing=!1}))},reject:function(){r.processing=!1}})}},mounted:function(){this.fetchQuestions()}};const w=(0,s(1900).Z)(y,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("admin-layout",[s("div",{staticClass:"container mx-auto pt-4 px-4 sm:px-6 lg:px-8"},[s("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"},[s("div",{staticClass:"mb-4 sm:mb-0 md:mb-0 lg:mb-0 xl:mb-0 lg:w-1/2"},[s("h2",{staticClass:"text-gray-800 dark:text-gray-100 text-lg font-bold"},[t._v(t._s(t.__("Quiz"))+" "+t._s(t.__("Questions")))]),t._v(" "),s("p",{staticClass:"font-normal text-sm text-gray-600 dark:text-gray-100 mt-1",domProps:{innerHTML:t._s(t.editFlag?t.quiz.title:"New Quiz")}})]),t._v(" "),s("horizontal-stepper",{attrs:{steps:t.steps,"edit-flag":t.editFlag}})],1)]),t._v(" "),s("div",{staticClass:"container mx-auto py-8 px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"card"},[s("div",{staticClass:"card-body"},[s("div",{staticClass:"flex justify-center flex-wrap"},[s("div",{staticClass:"sm:w-4/12 w-full p-4"},[s("div",[s("h4",{staticClass:"py-2  font-semibold flex items-center gap-2 text-gray-800 border-b"},[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:"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(" "),s("div",{staticClass:"w-full flex flex-col mt-6"},[s("label",{staticClass:"pb-2 text-sm font-semibold text-gray-800",attrs:{for:"code"}},[t._v(t._s(t.__("Code")))]),t._v(" "),s("InputText",{attrs:{type:"text",id:"code",placeholder:"Enter Code","aria-describedby":"code-help"},model:{value:t.codeFilter,callback:function(e){t.codeFilter=e},expression:"codeFilter"}})],1),t._v(" "),s("div",{staticClass:"w-full flex flex-col mt-6"},[s("label",{staticClass:"mb-3 text-sm font-semibold text-gray-800"},[t._v(t._s(t.__("Type")))]),t._v(" "),s("div",{staticClass:"flex flex-col gap-2"},t._l(t.questionTypes,(function(e){return s("div",{staticClass:"p-field-radiobutton items-center"},[s("Checkbox",{attrs:{id:"q_type"+e.id,name:"q_type",value:e.id},model:{value:t.typeFilter,callback:function(e){t.typeFilter=e},expression:"typeFilter"}}),t._v(" "),s("label",{staticClass:"text-sm text-gray-800",attrs:{for:"q_type"+e.id}},[t._v(t._s(e.name))])],1)})),0)]),t._v(" "),s("div",{staticClass:"w-full flex flex-col mt-6"},[s("label",{staticClass:"pb-2 text-sm font-semibold text-gray-800",attrs:{for:"section"}},[t._v(t._s(t.__("Section")))]),t._v(" "),s("InputText",{attrs:{type:"text",id:"section",placeholder:"Enter Section","aria-describedby":"section-help"},model:{value:t.sectionFilter,callback:function(e){t.sectionFilter=e},expression:"sectionFilter"}})],1),t._v(" "),s("div",{staticClass:"w-full flex flex-col mt-6"},[s("label",{staticClass:"mb-3 text-sm font-semibold text-gray-800",attrs:{for:"skill"}},[t._v(t._s(t.__("Skill")))]),t._v(" "),s("InputText",{attrs:{type:"text",id:"skill",placeholder:"Enter Skill","aria-describedby":"skill-help"},model:{value:t.skillFilter,callback:function(e){t.skillFilter=e},expression:"skillFilter"}})],1),t._v(" "),s("div",{staticClass:"w-full flex flex-col mt-6"},[s("label",{staticClass:"mb-3 text-sm font-semibold text-gray-800",attrs:{for:"topic"}},[t._v(t._s(t.__("Topic")))]),t._v(" "),s("InputText",{attrs:{type:"text",id:"topic",placeholder:"Enter Topic","aria-describedby":"topic-help"},model:{value:t.topicFilter,callback:function(e){t.topicFilter=e},expression:"topicFilter"}})],1),t._v(" "),s("div",{staticClass:"w-full flex flex-col mt-6"},[s("label",{staticClass:"mb-3 text-sm font-semibold text-gray-800"},[t._v(t._s(t.__("Difficulty Level")))]),t._v(" "),s("div",{staticClass:"flex flex-col gap-2"},t._l(t.difficultyLevels,(function(e){return s("div",{staticClass:"p-field-radiobutton"},[s("Checkbox",{attrs:{id:"difficulty"+e.id,name:"difficulty",value:e.id},model:{value:t.difficultyFilter,callback:function(e){t.difficultyFilter=e},expression:"difficultyFilter"}}),t._v(" "),s("label",{staticClass:"text-sm text-gray-800",attrs:{for:"difficulty"+e.id}},[t._v(t._s(e.name))])],1)})),0)]),t._v(" "),s("div",{staticClass:"w-full flex items-center gap-2 my-8"},[s("button",{staticClass:"w-full qt-btn qt-btn-primary",attrs:{type:"button"},on:{click:t.resetFilters}},[t._v(t._s(t.__("Reset")))]),t._v(" "),s("button",{staticClass:"w-full qt-btn qt-btn-success",attrs:{type:"button"},on:{click:t.filterQuestions}},[t._v(t._s(t.__("Search")))])])])]),t._v(" "),s("div",{staticClass:"sm:w-8/12 w-full my-4"},[s("div",{staticClass:"my-2 p-4 border border-green-100 shadow-sm rounded-sm bg-green-50"},[s("div",{staticClass:"mb-2 font-semibold"},[t._v(t._s(t.__("Currently"))+" "+t._s(t.qEditFlag?t.__("Adding"):t.__("Viewing"))+" "+t._s(t.__("Questions")))]),t._v(" "),s("div",{staticClass:"flex flex-col sm:flex-row gap-2"},[s("div",[s("a",{staticClass:"text-sm qt-link-success",attrs:{href:"#"},on:{click:function(e){return t.viewQuestions()}}},[t._v(t._s(t.__("View"))+" "+t._s(t.__("Questions")))])]),t._v(" "),s("div",{staticClass:"hidden sm:inline-block"},[t._v("|")]),t._v(" "),s("div",[s("a",{staticClass:"text-sm qt-link-success",attrs:{href:"#"},on:{click:function(e){return t.editQuestions()}}},[t._v(t._s(t.__("Add"))+" "+t._s(t.__("Questions")))])])])]),t._v(" "),s("div",{staticClass:"bg-gray-100 rounded p-6"},[t.loading?s("div",{staticClass:"grid grid-cols-1 gap-4 flex-wrap"},[s("admin-question-shimmer"),t._v(" "),s("admin-question-shimmer"),t._v(" "),s("admin-question-shimmer"),t._v(" "),s("admin-question-shimmer")],1):s("div",[s("div",{staticClass:"text-sm mb-4"},[s("span",{staticClass:"text-gray-500 font-normal"},[t._v(t._s(t.pagination.total)+" "+t._s(t.__("items_found_message"))+".")])]),t._v(" "),s("div",{staticClass:"grid grid-cols-1 gap-4 flex-wrap"},[t._l(t.questions,(function(e,r){return["MSA"===e.question_type?[s("MSAPreview",{attrs:{question:e},scopedSlots:t._u([{key:"action",fn:function(){return[s("button",{staticClass:"qt-btn-sm",class:[t.qEditFlag?"qt-btn-success":"qt-btn-danger",e.disabled||t.processing?"opacity-25":""],attrs:{disabled:e.disabled},domProps:{innerHTML:t._s(t.qEditFlag?t.__("Add"):t.__("Remove"))},on:{click:function(s){t.qEditFlag?t.addQuestion(e.id,r):t.removeQuestion(e.id,r)}}})]},proxy:!0}],null,!0)})]:t._e(),t._v(" "),"MMA"===e.question_type?[s("MMAPreview",{attrs:{question:e},scopedSlots:t._u([{key:"action",fn:function(){return[s("button",{staticClass:"qt-btn-sm",class:[t.qEditFlag?"qt-btn-success":"qt-btn-danger",e.disabled||t.processing?"opacity-25":""],attrs:{disabled:e.disabled},domProps:{innerHTML:t._s(t.qEditFlag?t.__("Add"):t.__("Remove"))},on:{click:function(s){t.qEditFlag?t.addQuestion(e.id,r):t.removeQuestion(e.id,r)}}})]},proxy:!0}],null,!0)})]:t._e(),t._v(" "),"TOF"===e.question_type?[s("TOFPreview",{attrs:{question:e},scopedSlots:t._u([{key:"action",fn:function(){return[s("button",{staticClass:"qt-btn-sm",class:[t.qEditFlag?"qt-btn-success":"qt-btn-danger",e.disabled||t.processing?"opacity-25":""],attrs:{disabled:e.disabled},domProps:{innerHTML:t._s(t.qEditFlag?t.__("Add"):t.__("Remove"))},on:{click:function(s){t.qEditFlag?t.addQuestion(e.id,r):t.removeQuestion(e.id,r)}}})]},proxy:!0}],null,!0)})]:t._e(),t._v(" "),"FIB"===e.question_type?[s("FIBPreview",{attrs:{question:e},scopedSlots:t._u([{key:"action",fn:function(){return[s("button",{staticClass:"qt-btn-sm",class:[t.qEditFlag?"qt-btn-success":"qt-btn-danger",e.disabled||t.processing?"opacity-25":""],attrs:{disabled:e.disabled},domProps:{innerHTML:t._s(t.qEditFlag?t.__("Add"):t.__("Remove"))},on:{click:function(s){t.qEditFlag?t.addQuestion(e.id,r):t.removeQuestion(e.id,r)}}})]},proxy:!0}],null,!0)})]:t._e(),t._v(" "),"MTF"===e.question_type?[s("MTFPreview",{attrs:{question:e},scopedSlots:t._u([{key:"action",fn:function(){return[s("button",{staticClass:"qt-btn-sm",class:[t.qEditFlag?"qt-btn-success":"qt-btn-danger",e.disabled||t.processing?"opacity-25":""],attrs:{disabled:e.disabled},domProps:{innerHTML:t._s(t.qEditFlag?t.__("Add"):t.__("Remove"))},on:{click:function(s){t.qEditFlag?t.addQuestion(e.id,r):t.removeQuestion(e.id,r)}}})]},proxy:!0}],null,!0)})]:t._e(),t._v(" "),"ORD"===e.question_type?[s("ORDPreview",{attrs:{question:e},scopedSlots:t._u([{key:"action",fn:function(){return[s("button",{staticClass:"qt-btn-sm",class:[t.qEditFlag?"qt-btn-success":"qt-btn-danger",e.disabled||t.processing?"opacity-25":""],attrs:{disabled:e.disabled},domProps:{innerHTML:t._s(t.qEditFlag?t.__("Add"):t.__("Remove"))},on:{click:function(s){t.qEditFlag?t.addQuestion(e.id,r):t.removeQuestion(e.id,r)}}})]},proxy:!0}],null,!0)})]:t._e(),t._v(" "),"SAQ"===e.question_type?[s("SAQPreview",{attrs:{question:e},scopedSlots:t._u([{key:"action",fn:function(){return[s("button",{staticClass:"qt-btn-sm",class:[t.qEditFlag?"qt-btn-success":"qt-btn-danger",e.disabled||t.processing?"opacity-25":""],attrs:{disabled:e.disabled},domProps:{innerHTML:t._s(t.qEditFlag?t.__("Add"):t.__("Remove"))},on:{click:function(s){t.qEditFlag?t.addQuestion(e.id,r):t.removeQuestion(e.id,r)}}})]},proxy:!0}],null,!0)})]:t._e()]})),t._v(" "),0===t.questions.length?s("div",{staticClass:"flex justify-center items-center"},[s("h4",{staticClass:" p-4 font-semibold"},[t._v(t._s(t.__("No Questions")))])]):t.pagination&&t.questions.length!==t.pagination.total?s("div",{staticClass:"flex justify-center items-center"},[s("button",{staticClass:"qt-btn qt-btn-success",on:{click:t.loadMoreQuestions}},[t._v(t._s(t.__("Load More")))])]):s("div",{staticClass:"flex text-sm justify-center items-center py-4"},[t._v("\n                                        "+t._s(t.__("no_more_data_message"))+"\n                                    ")])],2)])])])])])])])])}),[],!1,null,null,null).exports},3443:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>h});var r=s(67),a=s(8618),i=s(3244),n=s(3001),o=s(9408),l=s(8642),c=s(789),u=s(9324),d=s(4707),p=s(6487),m=s(8050),_=s(6587),f=s(7598);const v={components:{SAQSolution:s(7189).Z,FIBSolution:f.Z,ORDSolution:_.Z,MTFSolution:m.Z,MSASolution:n.Z,MMASolution:p.Z,AdminLayout:r.Z,DoughnutChart:a.Z,RewardsBadge:i.Z,PracticeQuestionCard:o.Z,PracticeQuestionChip:l.Z,NavigationQuestionCardShimmer:c.Z,PracticeQuestionShimmer:u.Z,PracticeSolutionCard:d.Z},props:{quiz:Object,session:Object},data:function(){return{loading:!1,questions:[],current_question:0,statusChartData:{labels:["Correct","Wrong","Unanswered"],datasets:[{label:"Status",data:[this.session.results.correct_answered_questions,this.session.results.wrong_answered_questions,this.session.results.unanswered_questions],backgroundColor:["rgb(52, 211, 153)","rgb(248, 113, 113)","rgb(156, 163, 175)"],hoverOffset:4}]},timeSpentChartData:{labels:["Correct","Wrong","Other"],datasets:[{label:"Time Spent",data:[this.session.results.time_taken_for_correct_answered.seconds,this.session.results.time_taken_for_wrong_answered.seconds,this.session.results.time_taken_for_other.seconds],backgroundColor:["rgb(52, 211, 153)","rgb(248, 113, 113)","rgb(156, 163, 175)"],hoverOffset:4}]}}},metaInfo:function(){return{title:this.title}},methods:{jumpToQuestion:function(t){this.current_question=t},fetchQuestions:function(){var t=this;t.loading=!0,axios.get(route("fetch_quiz_session_solutions",{quiz:this.quiz.slug,session:this.session.id})).then((function(e){var s=e.data;t.questions=s.questions})).catch((function(e){t.loading=!1})).then((function(){t.loading=!1}))}},computed:{title:function(){return this.quiz.title+" Score Report - "+this.$page.props.general.app_name},totalAnswered:function(){return this.session.results.answered_questions+"/"+this.session.results.total_questions+" Answered"},totalTimeSpent:function(){return this.session.results.total_time_taken.detailed_readable+" Spent"}},mounted:function(){this.fetchQuestions()}};const h=(0,s(1900).Z)(v,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("admin-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v(t._s(t.quiz.title)+" "+t._s(t.__("Score Report")))])]},proxy:!0},{key:"actions",fn:function(){return[s("a",{staticClass:"qt-btn qt-btn-success",attrs:{href:t.route("quiz_session_report",{quiz:t.quiz.slug,session:t.session.id}),target:"_blank"}},[t._v("\n            "+t._s(t.__("Download Score Report"))+"\n        ")])]},proxy:!0}])},[t._v(" "),t._v(" "),s("div",{staticClass:"py-8"},[s("div",{staticClass:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"grid sm:grid-cols-1 md:grid-cols-2 gap-4"},[s("div",{staticClass:"bg-white dark:bg-gray-800 rounded flex flex-col items-center justify-center p-5 relative shadow"},[s("div",{staticClass:"w-full flex sm:justify-center items-center"},[s("table",{staticClass:"w-full table-auto"},[s("tbody",[s("tr",[s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 font-medium text-sm"},[t._v(t._s(t.__("Test Taker")))]),t._v(" "),s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 text-sm"},[t._v(t._s(t.session.name))])]),t._v(" "),s("tr",[s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 font-medium text-sm"},[t._v(t._s(t.__("Email")))]),t._v(" "),s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 text-sm"},[t._v(t._s(t.session.email))])]),t._v(" "),s("tr",[s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 font-medium text-sm"},[t._v(t._s(t.__("Session")))]),t._v(" "),s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 font-mono text-sm uppercase"},[t._v(t._s(t.session.id))])]),t._v(" "),s("tr",{staticClass:"bg-emerald-200"},[s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 font-medium text-sm"},[t._v(t._s(t.__("Completion")))]),t._v(" "),s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 text-sm"},[t._v(t._s(t.session.completed))])]),t._v(" "),s("tr",[s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 font-medium text-sm"},[t._v(t._s(t.__("IP")))]),t._v(" "),s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 text-sm"},[t._v(t._s(t.session.results.ip_address))])]),t._v(" "),s("tr",[s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 font-medium text-sm"},[t._v(t._s(t.__("Device")))]),t._v(" "),s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 text-sm"},[t._v(t._s(t.session.device)+", "+t._s(t.session.os)+", "+t._s(t.session.browser))])])])])])]),t._v(" "),s("div",{staticClass:"grid sm:grid-cols-1 md:grid-cols-2 gap-4"},[s("div",{staticClass:"bg-white dark:bg-gray-800 rounded flex items-center justify-between px-6 py-4 relative shadow"},[s("div",{staticClass:"absolute w-2 h-4 bg-green-700 left-0"}),t._v(" "),s("h3",{staticClass:"focus:outline-none py-6 leading-4 text-gray-800 dark:text-gray-100 font-normal text-base"},[t._v(t._s(t.session.status))]),t._v(" "),s("div",{staticClass:"flex flex-col items-end"},[s("h2",{staticClass:"focus:outline-none text-green-700 dark:text-gray-100 text-xl leading-normal font-bold"},[t._v(t._s(t.session.results.percentage)+"%")]),t._v(" "),s("p",{staticClass:"focus:outline-none ltr:ml-2 rtl:mr-2 mb-1 text-sm text-gray-600 dark:text-gray-400",attrs:{tabindex:"0"}},[t._v("Min. "+t._s(t.session.results.cutoff)+"%")])])]),t._v(" "),s("div",{staticClass:"bg-white dark:bg-gray-800 rounded flex items-center justify-between px-6 py-4 relative shadow"},[s("div",{staticClass:"absolute w-2 h-4 bg-green-700 left-0"}),t._v(" "),s("h3",{staticClass:"focus:outline-none py-6 leading-4 text-gray-800 dark:text-gray-100 font-normal text-base"},[t._v(t._s(t.__("Score")))]),t._v(" "),s("div",{staticClass:"flex flex-col items-end"},[s("h2",{staticClass:"focus:outline-none text-green-700 dark:text-gray-100 text-xl leading-normal font-bold"},[t._v(t._s(t.session.results.score))]),t._v(" "),s("p",{staticClass:"focus:outline-none ltr:ml-2 rtl:mr-2 mb-1 text-sm text-gray-600 dark:text-gray-400",attrs:{tabindex:"0"}},[t._v("Out of "+t._s(t.session.results.total_marks))])])]),t._v(" "),s("div",{staticClass:"bg-white dark:bg-gray-800 rounded flex items-center justify-between px-6 py-4 relative shadow"},[s("div",{staticClass:"absolute w-2 h-4 bg-green-700 left-0"}),t._v(" "),s("h3",{staticClass:"focus:outline-none py-6 leading-4 text-gray-800 dark:text-gray-100 font-normal text-base"},[t._v(t._s(t.__("Accuracy")))]),t._v(" "),s("div",{staticClass:"flex flex-col items-end"},[s("h2",{staticClass:"focus:outline-none text-green-700 dark:text-gray-100 text-xl leading-normal font-bold"},[t._v(t._s(t.session.results.accuracy)+"%")]),t._v(" "),s("p",{staticClass:"focus:outline-none ltr:ml-2 rtl:mr-2 mb-1 text-sm text-gray-600 dark:text-gray-400",attrs:{tabindex:"0"}})])]),t._v(" "),s("div",{staticClass:"bg-white dark:bg-gray-800 rounded flex items-center justify-between px-6 py-4 relative shadow"},[s("div",{staticClass:"absolute w-2 h-4 bg-green-700 left-0"}),t._v(" "),s("h3",{staticClass:"focus:outline-none py-6 leading-4 text-gray-800 dark:text-gray-100 font-normal text-base"},[t._v(t._s(t.__("Speed")))]),t._v(" "),s("div",{staticClass:"flex flex-col items-end"},[s("h2",{staticClass:"focus:outline-none text-green-700 dark:text-gray-100 text-xl leading-normal font-bold"},[t._v(t._s(t.session.results.speed))]),t._v(" "),s("p",{staticClass:"focus:outline-none ltr:ml-2 rtl:mr-2 mb-1 text-sm text-gray-600 dark:text-gray-400",attrs:{tabindex:"0"}},[t._v("Que/Hour")])])])])]),t._v(" "),s("div",{staticClass:"grid sm:grid-cols-1 md:grid-cols-3 gap-8 py-8"},[s("div",{staticClass:"bg-white dark:bg-gray-800 rounded flex flex-col items-center justify-center p-5 relative shadow"},[s("h2",{staticClass:"focus:outline-none text-gray-800 text-base leading-normal font-semibold mb-6"},[t._v("\n                        "+t._s(t.session.results.total_questions)+" "+t._s(t.__("Questions"))+"\n                    ")]),t._v(" "),s("div",{staticClass:"flex gap-4 sm:justify-center items-center"},[s("div",{staticClass:"w-28"},[s("doughnut-chart",{key:"status",attrs:{id:"status","chart-data":t.statusChartData,"element-text":t.totalAnswered}})],1),t._v(" "),s("div",{staticClass:"flex flex-col gap-2 justify-center"},[s("div",{staticClass:"flex gap-2 items-center text-xs"},[s("svg",{staticClass:"w-5 h-5 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("\n                                "+t._s(t.session.results.correct_answered_questions)+" "+t._s(t.__("Correct"))+"\n                            ")]),t._v(" "),s("div",{staticClass:"flex gap-2 items-center text-xs"},[s("svg",{staticClass:"w-5 h-5 text-red-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:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"}})]),t._v("\n                                "+t._s(t.session.results.wrong_answered_questions)+" "+t._s(t.__("Wrong"))+"\n                            ")]),t._v(" "),s("div",{staticClass:"flex gap-2 items-center text-xs"},[s("svg",{staticClass:"w-5 h-5 text-gray-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:"M15 12H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"}})]),t._v("\n                                "+t._s(t.session.results.unanswered_questions)+" "+t._s(t.__("Unanswered"))+"\n                            ")])])])]),t._v(" "),s("div",{staticClass:"bg-white dark:bg-gray-800 rounded flex flex-col items-center justify-center p-5 relative shadow"},[s("h2",{staticClass:"focus:outline-none text-gray-800 text-base leading-normal font-semibold mb-6"},[t._v("\n                        "+t._s(t.session.results.total_duration)+" "+t._s(t.__("Minutes"))+"\n                    ")]),t._v(" "),s("div",{staticClass:"flex gap-4 sm:justify-center items-center"},[s("div",{staticClass:"w-28"},[s("doughnut-chart",{key:"time_spent",attrs:{id:"time_spent","chart-data":t.timeSpentChartData,"element-text":t.totalTimeSpent}})],1),t._v(" "),s("div",{staticClass:"flex flex-col gap-2 justify-center"},[s("div",{staticClass:"flex gap-2 items-center text-xs"},[s("svg",{staticClass:"w-5 h-5 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("\n                                "+t._s(t.session.results.time_taken_for_correct_answered.detailed_readable)+" "+t._s(t.__("Correct"))+"\n                            ")]),t._v(" "),s("div",{staticClass:"flex gap-2 items-center text-xs"},[s("svg",{staticClass:"w-5 h-5 text-red-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:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"}})]),t._v("\n                                "+t._s(t.session.results.time_taken_for_wrong_answered.detailed_readable)+" "+t._s(t.__("Wrong"))+"\n                            ")]),t._v(" "),s("div",{staticClass:"flex gap-2 items-center text-xs"},[s("svg",{staticClass:"w-5 h-5 text-gray-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:"M15 12H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"}})]),t._v("\n                                "+t._s(t.session.results.time_taken_for_other.detailed_readable)+" "+t._s(t.__("Other"))+"\n                            ")])])])]),t._v(" "),s("div",{staticClass:"bg-white dark:bg-gray-800 rounded flex flex-col items-center justify-center p-5 relative shadow"},[s("h2",{staticClass:"focus:outline-none text-gray-800 text-base leading-normal font-semibold mb-6"},[t._v("\n                        "+t._s(t.__("Total Scored Marks"))+"\n                    ")]),t._v(" "),s("div",{staticClass:"w-full flex gap-4 sm:justify-center items-center"},[s("table",{staticClass:"w-full table-auto"},[s("tbody",[s("tr",[s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 text-sm"},[t._v(t._s(t.__("Marks Earned")))]),t._v(" "),s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 font-medium text-sm text-right"},[t._v(t._s(t.session.results.marks_earned))])]),t._v(" "),s("tr",{staticClass:"bg-emerald-200"},[s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 text-sm"},[t._v(t._s(t.__("Negative Marks")))]),t._v(" "),s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 font-medium text-sm text-right"},[t._v("-"+t._s(t.session.results.marks_deducted))])]),t._v(" "),s("tr",[s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 text-sm"},[t._v(t._s(t.__("Total Marks")))]),t._v(" "),s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 font-medium text-sm text-right"},[t._v(t._s(t.session.results.score))])])])])])])]),t._v(" "),s("div",[s("h2",{staticClass:"text-lg font-semibold leading-tight text-gray-800 mb-6"},[t._v(t._s(t.__("User Answers")))]),t._v(" "),s("div",{staticClass:"w-full card"},[s("div",{staticClass:"w-full card-body lg:flex flex-wrap"},[s("div",{staticClass:"py-4 lg:w-1/3 w-full md:pr-6"},[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 flex flex-wrap justify-center items-center gap-2"},t._l(t.questions,(function(e,r){return s("li",{key:e.code,on:{click:function(e){return t.jumpToQuestion(r)}}},[s("practice-question-chip",{attrs:{sno:r+1,is_correct:e.is_correct,status:e.status,active:t.current_question===r}})],1)})),0)]),t._v(" "),s("div",{staticClass:"py-4 lg:w-2/3 w-full md:pl-6 sm:border-l border-gray-200"},[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",t._l(t.questions,(function(e,r){return s("div",{key:e.id},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.current_question===r,expression:"current_question === index"}],attrs:{id:e.code}},[s("div",{staticClass:"flex justify-between items-center mb-6"},[s("div",{staticClass:"font-mono px-2 py-1 inline-block bg-qt-option text-white rounded text-sm mb-2"},[t._v("\n                                                "+t._s(t.__("Time Spent"))+": "+t._s(e.time_taken.detailed_readable)+"\n                                            ")]),t._v(" "),"answered"===e.status?s("div",{staticClass:"font-mono px-2 py-1 inline-block text-white rounded text-sm mb-2",class:e.is_correct?"bg-green-400":"bg-red-400"},[e.is_correct?s("span",[t._v("+"+t._s(e.marks_earned)+" "+t._s(t.__("Marks Earned")))]):t._e(),t._v(" "),e.is_correct?t._e():s("span",[t._v("-"+t._s(e.marks_deducted)+" "+t._s(t.__("Marks Deducted")))])]):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.__("Not Answered"))+"\n                                            ")])]),t._v(" "),s("practice-question-card",{key:e.card,attrs:{question:e,sno:r+1,"total-questions":t.quiz.total_questions}}),t._v(" "),"MSA"===e.questionType||"TOF"===e.questionType?s("div",{staticClass:"mt-4"},[s("MSASolution",{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}})],1):t._e(),t._v(" "),"MMA"===e.questionType?s("div",{staticClass:"mt-4"},[s("MMASolution",{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}})],1):t._e(),t._v(" "),"MTF"===e.questionType?s("div",{staticClass:"mt-4"},[s("MTFSolution",{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}})],1):t._e(),t._v(" "),"ORD"===e.questionType?s("div",{staticClass:"mt-4"},[s("ORDSolution",{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}})],1):t._e(),t._v(" "),"FIB"===e.questionType?s("div",{staticClass:"mt-4"},[s("FIBSolution",{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}})],1):t._e(),t._v(" "),"SAQ"===e.questionType?s("div",{staticClass:"mt-4"},[s("SAQSolution",{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}})],1):t._e(),t._v(" "),s("div",{staticClass:"mt-4"},[s("practice-solution-card",{attrs:{solution:e.solution}})],1)],1)])})),0)])])])])])])])}),[],!1,null,null,null).exports},266:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>h});var r=s(67),a=s(9055),i=s(4974),n=s(5807),o=s(2001),l=s(4212),c=s(2263),u=s(7100),d=s(379),p=s(2422);function m(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,r)}return s}function _(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?m(Object(s),!0).forEach((function(e){f(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):m(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}function f(t,e,s){return e in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}const v={name:"Settings",components:{AdminLayout:r.Z,QuizNavigation:a.Z,InputText:i.default,InputNumber:n.default,SelectButton:o.default,RadioButton:l.default,PopInfo:u.Z,Button:c.default,HorizontalStepper:p.Z},props:{errors:Object,quiz:Object,steps:Array,editFlag:!1,settings:Object},data:function(){return{form:{auto_duration:this.settings.auto_duration,total_duration:this.settings.total_duration,auto_grading:this.settings.auto_grading,correct_marks:this.settings.correct_marks,cutoff:this.settings.cutoff,enable_negative_marking:this.settings.enable_negative_marking,negative_marking_type:this.settings.negative_marking_type,negative_marks:this.settings.negative_marks,restrict_attempts:this.settings.restrict_attempts,no_of_attempts:this.settings.no_of_attempts,disable_question_navigation:this.settings.disable_question_navigation,disable_finish_button:this.settings.disable_finish_button,hide_solutions:this.settings.hide_solutions,list_questions:this.settings.list_questions},autoModes:[{name:"Auto",code:!0},{name:"Manual",code:!1}],choices:[{name:"Yes",code:!0},{name:"No",code:!1}],amountTypes:[{name:"Fixed",code:"fixed"},{name:"Percentage",code:"percentage"}],submitStatus:null}},validations:function(){return{form:_(_(_(_({correct_marks:{},total_duration:{},negative_marks:{},cutoff:{required:d.C1}},!this.form.auto_grading&&{correct_marks:{required:d.C1}}),!this.form.auto_duration&&{total_duration:{required:d.C1}}),this.form.enable_negative_marking&&{negative_marks:{required:d.C1}}),{},{no_of_attempts:{}},this.form.restrict_attempts&&{no_of_attempts:{required:d.C1}})}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return this.quiz.title+" (Settings) - "+this.$page.props.general.app_name+" Admin"}},methods:{submitForm:function(){var t=this;this.$v.$touch(),this.$v.$invalid?this.submitStatus="ERROR":(this.submitStatus="PENDING",setTimeout((function(){t.submitStatus="OK",t.update()}),100))},update:function(){var t=this;this.formValidated=!0,this.$inertia.post(route("quizzes.settings.update",{quiz:this.quiz.id}),this.form,{onSuccess:function(){0===Object.keys(t.errors).length&&t.$emit("close",!0)}})}}};const h=(0,s(1900).Z)(v,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("admin-layout",[s("div",{staticClass:"container mx-auto pt-4 px-4 sm:px-6 lg:px-8"},[s("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"},[s("div",{staticClass:"mb-4 sm:mb-0 md:mb-0 lg:mb-0 xl:mb-0 lg:w-1/2"},[s("h2",{staticClass:"text-gray-800 dark:text-gray-100 text-lg font-bold"},[t._v(t._s(t.__("Quiz"))+" "+t._s(t.__("Settings")))]),t._v(" "),s("p",{staticClass:"font-normal text-sm text-gray-600 dark:text-gray-100 mt-1",domProps:{innerHTML:t._s(t.editFlag?t.quiz.title:t.__("New")+" "+t.__("Quiz"))}})]),t._v(" "),s("horizontal-stepper",{attrs:{steps:t.steps,"edit-flag":t.editFlag}})],1)]),t._v(" "),s("div",{staticClass:"container mx-auto py-8 px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"card"},[s("div",{staticClass:"card-body"},[s("div",{staticClass:"flex justify-center flex-wrap"},[s("div",{staticClass:"w-full py-6 md:pb-0 md:px-6"},[s("form",{on:{submit:function(e){return e.preventDefault(),t.submitForm(e)}}},[s("div",{staticClass:"flex flex-wrap"},[s("div",{staticClass:"md:w-6/12 w-full py-8 md:pb-0 md:px-8 border-r border-gray-200"},[s("div",{staticClass:"w-full flex justify-between items-center mb-6"},[s("div",{staticClass:"flex gap-2"},[s("label",{staticClass:"font-semibold text-sm text-gray-800 pb-1",attrs:{for:"auto_duration"}},[t._v(t._s(t.__("Duration Mode")))]),t._v(" "),s("pop-info",{scopedSlots:t._u([{key:"message",fn:function(){return[s("ul",[s("li",{staticClass:"text-sm text-gray-500"},[s("span",{staticClass:"text-green-400 font-semibold"},[t._v("Auto")]),t._v(" - Duration will be calculated based on questions' default time\n                                                        ")]),t._v(" "),s("li",{staticClass:"text-sm text-gray-500"},[s("span",{staticClass:"text-green-400 font-semibold"},[t._v("Manual")]),t._v(" - Duration will be considered as specified\n                                                        ")])])]},proxy:!0}])})],1),t._v(" "),s("SelectButton",{attrs:{id:"auto_duration",options:t.autoModes,dataKey:"code",optionValue:"code",optionLabel:"name"},model:{value:t.form.auto_duration,callback:function(e){t.$set(t.form,"auto_duration",e)},expression:"form.auto_duration"}})],1),t._v(" "),t.form.auto_duration?t._e():s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 text-sm font-semibold text-gray-800",attrs:{for:"total_duration"}},[t._v(t._s(t.__("Duration"))+" ("+t._s(t.__("Minutes"))+")"),s("span",{staticClass:"ml-1 text-red-400"},[t._v("*")])]),t._v(" "),s("InputNumber",{attrs:{id:"total_duration",placeholder:"Enter Duration (in Minutes)","aria-describedby":"total_duration-help",disabled:t.form.enable_section_timer},model:{value:t.$v.form.total_duration.$model,callback:function(e){t.$set(t.$v.form.total_duration,"$model",e)},expression:"$v.form.total_duration.$model"}}),t._v(" "),s("div",{staticClass:"form-control-errors"},[t.$v.form.total_duration.$error&&!t.$v.form.total_duration.required?s("p",{staticClass:"text-xs text-red-500 pt-2",attrs:{role:"alert"}},[t._v("\n                                                "+t._s(t.__("Duration"))+" "+t._s(t.__("is required"))+"\n                                            ")]):t._e()])],1),t._v(" "),s("div",{staticClass:"w-full flex justify-between items-center mb-6"},[s("div",{staticClass:"flex gap-2"},[s("label",{staticClass:"font-semibold text-sm text-gray-800 pb-1",attrs:{for:"auto_grading"}},[t._v(t._s(t.__("Marks/Points Mode")))]),t._v(" "),s("pop-info",{scopedSlots:t._u([{key:"message",fn:function(){return[s("ul",[s("li",{staticClass:"text-sm text-gray-500"},[s("span",{staticClass:"text-green-400 font-semibold"},[t._v("Auto")]),t._v(" - Marks/Points will be calculated based on questions' default marks\n                                                        ")]),t._v(" "),s("li",{staticClass:"text-sm text-gray-500"},[s("span",{staticClass:"text-green-400 font-semibold"},[t._v("Manual")]),t._v(" - Marks/Points will be assigned to each question as specified\n                                                        ")])])]},proxy:!0}])})],1),t._v(" "),s("SelectButton",{attrs:{id:"auto_grading",options:t.autoModes,dataKey:"code",optionValue:"code",optionLabel:"name"},model:{value:t.form.auto_grading,callback:function(e){t.$set(t.form,"auto_grading",e)},expression:"form.auto_grading"}})],1),t._v(" "),t.form.auto_grading?t._e():s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 text-sm font-semibold text-gray-800",attrs:{for:"correct_marks"}},[t._v(t._s(t.__("Marks for Correct Answer"))),s("span",{staticClass:"ml-1 text-red-400"},[t._v("*")])]),t._v(" "),s("InputNumber",{attrs:{id:"correct_marks",placeholder:"Enter Marks",mode:"decimal",minFractionDigits:2,maxFracionDigits:2,"aria-describedby":"correct_marks-help"},model:{value:t.$v.form.correct_marks.$model,callback:function(e){t.$set(t.$v.form.correct_marks,"$model",e)},expression:"$v.form.correct_marks.$model"}}),t._v(" "),s("div",{staticClass:"form-control-errors"},[t.$v.form.correct_marks.$error&&!t.$v.form.correct_marks.required?s("p",{staticClass:"text-xs text-red-500 pt-2",attrs:{role:"alert"}},[t._v(t._s(t.__("Marks for Correct Answer"))+" "+t._s(t.__("is required")))]):t._e()])],1),t._v(" "),s("div",{staticClass:"w-full flex justify-between items-center mb-6"},[s("div",{staticClass:"flex gap-2"},[s("label",{staticClass:"font-semibold text-sm text-gray-800 pb-1",attrs:{for:"enable_negative_marking"}},[t._v(t._s(t.__("Negative Marking")))]),t._v(" "),s("pop-info",{scopedSlots:t._u([{key:"message",fn:function(){return[s("ul",[s("li",{staticClass:"text-sm text-gray-500"},[s("span",{staticClass:"text-green-400 font-semibold"},[t._v("Yes")]),t._v(" - Negative marking will be considered as specified\n                                                        ")]),t._v(" "),s("li",{staticClass:"text-sm text-gray-500"},[s("span",{staticClass:"text-green-400 font-semibold"},[t._v("No")]),t._v(" - No Negative marking\n                                                        ")])])]},proxy:!0}])})],1),t._v(" "),s("SelectButton",{attrs:{id:"enable_negative_marking",options:t.choices,dataKey:"code",optionValue:"code",optionLabel:"name"},model:{value:t.form.enable_negative_marking,callback:function(e){t.$set(t.form,"enable_negative_marking",e)},expression:"form.enable_negative_marking"}})],1),t._v(" "),t.form.enable_negative_marking?s("div",{staticClass:"w-full flex justify-between items-center mb-6"},[s("div",{staticClass:"flex gap-2"},[s("label",{staticClass:"font-semibold text-sm text-gray-800 pb-1",attrs:{for:"negative_marking_type"}},[t._v(t._s(t.__("Negative Marking Type")))]),t._v(" "),s("pop-info",{scopedSlots:t._u([{key:"message",fn:function(){return[s("ul",[s("li",{staticClass:"text-sm text-gray-500"},[s("span",{staticClass:"text-green-400 font-semibold"},[t._v("Fixed")]),t._v(" - Fixed amount will be deduct from question marks\n                                                        ")]),t._v(" "),s("li",{staticClass:"text-sm text-gray-500"},[s("span",{staticClass:"text-green-400 font-semibold"},[t._v("Percentage")]),t._v(" - Percentage will be deduct from question marks\n                                                        ")])])]},proxy:!0}],null,!1,3010925428)})],1),t._v(" "),s("SelectButton",{attrs:{id:"negative_marking_type",options:t.amountTypes,dataKey:"code",optionValue:"code",optionLabel:"name"},model:{value:t.form.negative_marking_type,callback:function(e){t.$set(t.form,"negative_marking_type",e)},expression:"form.negative_marking_type"}})],1):t._e(),t._v(" "),t.form.enable_negative_marking?s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 text-sm font-semibold text-gray-800",attrs:{for:"negative_marks"}},[t._v(t._s(t.__("Negative Marks"))),s("span",{staticClass:"ml-1 text-red-400"},[t._v("*")])]),t._v(" "),s("InputNumber",{attrs:{id:"negative_marks","aria-describedby":"negative_marks-help",placeholder:"percentage"===t.form.negative_marking_type?"Enter Percentage":"Enter Number",suffix:"percentage"===t.form.negative_marking_type?" %":"",max:100,mode:"decimal",minFractionDigits:"fixed"===t.form.negative_marking_type?2:null,maxFracionDigits:"fixed"===t.form.negative_marking_type?2:null},model:{value:t.$v.form.negative_marks.$model,callback:function(e){t.$set(t.$v.form.negative_marks,"$model",e)},expression:"$v.form.negative_marks.$model"}}),t._v(" "),s("div",{staticClass:"form-control-errors"},[t.$v.form.negative_marks.$error&&!t.$v.form.negative_marks.required?s("p",{staticClass:"text-xs text-red-500 pt-2",attrs:{role:"alert"}},[t._v("\n                                                "+t._s(t.__("Negative Marks"))+" "+t._s(t.__("are required"))+"\n                                            ")]):t._e()])],1):t._e(),t._v(" "),s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 text-sm font-semibold text-gray-800",attrs:{for:"cutoff"}},[t._v(t._s(t.__("Pass Percentage"))),s("span",{staticClass:"ml-1 text-red-400"},[t._v("*")])]),t._v(" "),s("InputNumber",{attrs:{id:"cutoff",placeholder:"Enter Percentage","aria-describedby":"cutoff-help",suffix:" %",max:100},model:{value:t.$v.form.cutoff.$model,callback:function(e){t.$set(t.$v.form.cutoff,"$model",e)},expression:"$v.form.cutoff.$model"}}),t._v(" "),s("div",{staticClass:"form-control-errors"},[t.$v.form.cutoff.$error&&!t.$v.form.cutoff.required?s("p",{staticClass:"text-xs text-red-500 pt-2",attrs:{role:"alert"}},[t._v("\n                                                "+t._s(t.__("Pass Percentage"))+" "+t._s(t.__("is required"))+"\n                                            ")]):t._e()])],1)]),t._v(" "),s("div",{staticClass:"md:w-6/12 w-full py-8 md:pb-0 md:px-8"},[s("div",{staticClass:"w-full flex justify-between items-center mb-6"},[s("div",{staticClass:"flex gap-2"},[s("label",{staticClass:"font-semibold text-sm text-gray-800 pb-1",attrs:{for:"restrict_attempts"}},[t._v(t._s(t.__("Restrict Attempts")))]),t._v(" "),s("pop-info",{scopedSlots:t._u([{key:"message",fn:function(){return[s("ul",[s("li",{staticClass:"text-sm text-gray-500"},[s("span",{staticClass:"text-green-400 font-semibold"},[t._v("Yes")]),t._v(" - Attempts will be restricted as specified\n                                                        ")]),t._v(" "),s("li",{staticClass:"text-sm text-gray-500"},[s("span",{staticClass:"text-green-400 font-semibold"},[t._v("No")]),t._v(" - Unlimited attempts\n                                                        ")])])]},proxy:!0}])})],1),t._v(" "),s("SelectButton",{attrs:{id:"restrict_attempts",options:t.choices,dataKey:"code",optionValue:"code",optionLabel:"name"},model:{value:t.form.restrict_attempts,callback:function(e){t.$set(t.form,"restrict_attempts",e)},expression:"form.restrict_attempts"}})],1),t._v(" "),t.form.restrict_attempts?s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 text-sm font-semibold text-gray-800",attrs:{for:"no_of_attempts"}},[t._v(t._s(t.__("Number of Attempts"))),s("span",{staticClass:"ml-1 text-red-400"},[t._v("*")])]),t._v(" "),s("InputNumber",{attrs:{id:"no_of_attempts",placeholder:"Enter Number","aria-describedby":"no_of_attempts-help"},model:{value:t.$v.form.no_of_attempts.$model,callback:function(e){t.$set(t.$v.form.no_of_attempts,"$model",e)},expression:"$v.form.no_of_attempts.$model"}}),t._v(" "),s("div",{staticClass:"form-control-errors"},[t.$v.form.no_of_attempts.$error&&!t.$v.form.no_of_attempts.required?s("p",{staticClass:"text-xs text-red-500 pt-2",attrs:{role:"alert"}},[t._v("\n                                                "+t._s(t.__("Number of Attempts"))+" "+t._s(t.__("is required"))+"\n                                            ")]):t._e()])],1):t._e(),t._v(" "),s("div",{staticClass:"w-full flex justify-between items-center mb-6"},[s("div",{staticClass:"flex gap-2"},[s("label",{staticClass:"font-semibold text-sm text-gray-800 pb-1",attrs:{for:"disable_finish_button"}},[t._v(t._s(t.__("Disable Finish Button")))]),t._v(" "),s("pop-info",{scopedSlots:t._u([{key:"message",fn:function(){return[s("ul",[s("li",{staticClass:"text-sm text-gray-500"},[s("span",{staticClass:"text-green-400 font-semibold"},[t._v("Yes")]),t._v(" - Test Finish button will be disabled\n                                                        ")]),t._v(" "),s("li",{staticClass:"text-sm text-gray-500"},[s("span",{staticClass:"text-green-400 font-semibold"},[t._v("No")]),t._v(" - Test Finish button will be displayed\n                                                        ")])])]},proxy:!0}])})],1),t._v(" "),s("SelectButton",{attrs:{id:"disable_finish_button",options:t.choices,dataKey:"code",optionValue:"code",optionLabel:"name"},model:{value:t.form.disable_finish_button,callback:function(e){t.$set(t.form,"disable_finish_button",e)},expression:"form.disable_finish_button"}})],1),t._v(" "),s("div",{staticClass:"w-full flex justify-between items-center mb-6"},[s("div",{staticClass:"flex gap-2"},[s("label",{staticClass:"font-semibold text-sm text-gray-800 pb-1",attrs:{for:"list_questions"}},[t._v(t._s(t.__("Enable Question List View")))]),t._v(" "),s("pop-info",{scopedSlots:t._u([{key:"message",fn:function(){return[s("ul",[s("li",{staticClass:"text-sm text-gray-500"},[s("span",{staticClass:"text-green-400 font-semibold"},[t._v("Yes")]),t._v(" - User can be able to see all questions as list\n                                                        ")]),t._v(" "),s("li",{staticClass:"text-sm text-gray-500"},[s("span",{staticClass:"text-green-400 font-semibold"},[t._v("No")]),t._v(" - User cannot be able to see all questions as list\n                                                        ")])])]},proxy:!0}])})],1),t._v(" "),s("SelectButton",{attrs:{id:"list_questions",options:t.choices,dataKey:"code",optionValue:"code",optionLabel:"name"},model:{value:t.form.list_questions,callback:function(e){t.$set(t.form,"list_questions",e)},expression:"form.list_questions"}})],1),t._v(" "),s("div",{staticClass:"w-full flex justify-between items-center mb-6"},[s("div",{staticClass:"flex gap-2"},[s("label",{staticClass:"font-semibold text-sm text-gray-800 pb-1",attrs:{for:"hide_solutions"}},[t._v(t._s(t.__("Hide Solutions")))]),t._v(" "),s("pop-info",{scopedSlots:t._u([{key:"message",fn:function(){return[s("ul",[s("li",{staticClass:"text-sm text-gray-500"},[s("span",{staticClass:"text-green-400 font-semibold"},[t._v("Yes")]),t._v(" - Solutions will not be shown in results\n                                                        ")]),t._v(" "),s("li",{staticClass:"text-sm text-gray-500"},[s("span",{staticClass:"text-green-400 font-semibold"},[t._v("No")]),t._v(" - Solutions will be shown in results\n                                                        ")])])]},proxy:!0}])})],1),t._v(" "),s("SelectButton",{attrs:{id:"hide_solutions",options:t.choices,dataKey:"code",optionValue:"code",optionLabel:"name"},model:{value:t.form.hide_solutions,callback:function(e){t.$set(t.form,"hide_solutions",e)},expression:"form.hide_solutions"}})],1)])]),t._v(" "),s("div",{staticClass:"w-full flex justify-end my-8"},[s("button",{staticClass:"qt-btn qt-btn-success",attrs:{type:"submit"},domProps:{innerHTML:t._s(t.editFlag?t.__("Update"):t.__("Save"))}})])])])])])])])])}),[],!1,null,null,null).exports},7191:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>_});var r=s(67),a=s(4409),i=s(5e3),n=s(298),o=s(728),l=s(7531),c=s(2263),u=s(3194);function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var s=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==s)return;var r,a,i=[],n=!0,o=!1;try{for(s=s.call(t);!(n=(r=s.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return p(t,e);var s=Object.prototype.toString.call(t).slice(8,-1);"Object"===s&&t.constructor&&(s=t.constructor.name);if("Map"===s||"Set"===s)return Array.from(t);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return p(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,r=new Array(e);s<e;s++)r[s]=t[s];return r}const m={components:{AdminLayout:r.Z,ArcDropdown:a.Z,ArcDropdownLink:i.Z,Toast:n.default,Chip:o.default,Tag:l.default,Button:c.default,NoDataTable:u.Z},props:{quizzes:Object,statusFilters:Array},data:function(){return{createForm:!1,editForm:!1,currentId:null,columns:[{label:this.__("Code"),field:"code",filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Code"),filterValue:null,trigger:"enter"},sortable:!1,width:"11rem"},{label:this.__("Title"),field:"title",filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Title"),filterValue:null,trigger:"enter"},sortable:!1},{label:this.__("Category"),field:"category",filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Category"),filterValue:null,trigger:"enter"},sortable:!1},{label:this.__("Type"),field:"quizType",filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Type"),filterValue:null,trigger:"enter"},sortable:!1},{label:this.__("Visibility"),field:"visibility",sortable:!1,filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Visibility"),filterValue:null,filterDropdownItems:[{value:1,text:this.__("Private")},{value:0,text:this.__("Public")}]}},{label:this.__("Status"),field:"status",sortable:!1,filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Status"),filterValue:null,filterDropdownItems:[{value:1,text:this.__("Published")},{value:0,text:this.__("Draft")}]}},{label:this.__("Actions"),field:"actions",sortable:!1,width:"200px",tdClass:"text-center"}],options:{enabled:!0,mode:"pages",perPage:this.quizzes.meta.pagination.per_page,setCurrentPage:this.quizzes.meta.pagination.current_page,perPageDropdown:[10,20,50,100],dropdownAllowAll:!1},serverParams:{columnFilters:{},sort:{field:"",type:""},page:1,perPage:10},loading:!1}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return"Quizzes - "+this.$page.props.general.app_name+" Admin"}},methods:{updateParams:function(t){this.serverParams=Object.assign({},this.serverParams,t)},onPageChange:function(t){this.updateParams({page:t.currentPage}),this.loadItems()},onPerPageChange:function(t){this.updateParams({perPage:t.currentPerPage}),this.loadItems()},onSortChange:function(t){this.updateParams({sort:[{type:t.sortType,field:this.columns[t.columnIndex].field}]}),this.loadItems()},onColumnFilter:function(t){this.updateParams(t),this.serverParams.page=1,this.loadItems()},getQueryParams:function(){for(var t={page:this.serverParams.page,perPage:this.serverParams.perPage},e=0,s=Object.entries(this.serverParams.columnFilters);e<s.length;e++){var r=d(s[e],2),a=r[0],i=r[1];i&&(t[a]=i)}return t},loadItems:function(){this.$inertia.get(route(route().current()),this.getQueryParams(),{replace:!1,preserveState:!0,preserveScroll:!0})},editQuiz:function(t){this.$inertia.get(route("quizzes.edit",{quiz:t}))},goToSchedules:function(t){this.$inertia.get(route("quizzes.schedules.index",{quiz:t}))},goToAnalytics:function(t){this.$inertia.get(route("quizzes.overall_report",{quiz:t}))},deleteExam:function(t){var e=this;this.$confirm.require({header:this.__("Confirm Delete"),message:this.__("Do you want to delete this record?"),icon:"pi pi-info-circle",acceptClass:"p-button-danger",rejectLabel:this.__("Cancel"),acceptLabel:this.__("Delete"),accept:function(){e.$inertia.delete(route("quizzes.destroy",{id:t}),{},{onSuccess:function(){e.$toast.add({severity:"info",summary:e.__("Confirmed"),detail:e.__("Record deleted"),life:3e3})}})},reject:function(){}})},handleCopyStatus:function(t){t&&this.$toast.add({severity:"success",summary:this.__("Copied"),detail:this.__("Copied Successfully!"),life:2e3})}}};const _=(0,s(1900).Z)(m,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("admin-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v(t._s(t.__("Quizzes")))])]},proxy:!0},{key:"actions",fn:function(){return[s("inertia-link",{staticClass:"qt-btn qt-btn-success",attrs:{href:t.route("quizzes.create")}},[t._v("\n            "+t._s(t.__("New"))+" "+t._s(t.__("Quiz"))+"\n        ")])]},proxy:!0}])},[t._v(" "),t._v(" "),s("div",{staticClass:"container mx-auto py-8 px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"card"},[s("div",{staticClass:"card-body"},[s("vue-good-table",{attrs:{mode:"remote","pagination-options":t.options,columns:t.columns,totalRows:t.quizzes.meta.pagination.total,rows:t.quizzes.data,rtl:t.$page.props.rtl},on:{"on-page-change":t.onPageChange,"on-column-filter":t.onColumnFilter,"on-per-page-change":t.onPerPageChange},scopedSlots:t._u([{key:"table-row",fn:function(e){return["code"===e.column.field?s("div",[s("Tag",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.row.code,expression:"props.row.code",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.handleCopyStatus,expression:"handleCopyStatus",arg:"success"}],staticClass:"w-full p-mr-2 mb-2 text-xs cursor-pointer",attrs:{severity:"info",value:e.row.code,icon:"pi pi-copy"}})],1):"status"===e.column.field?s("div",[s("span",{class:["Published"===e.row.status?"badge-success":"badge-danger","badge"]},[t._v(t._s(t.__(e.row.status)))])]):"actions"===e.column.field?s("div",{staticClass:"flex items-center gap-2"},[s("Button",{staticClass:"p-button-rounded p-button-secondary p-button-text p-mr-2",attrs:{icon:"pi pi-pencil"},on:{click:function(s){return t.editQuiz(e.row.id)}}}),t._v(" "),s("Button",{staticClass:"p-button-rounded p-button-secondary p-button-text p-mr-2",attrs:{icon:"pi pi-clock"},on:{click:function(s){return t.goToSchedules(e.row.id)}}}),t._v(" "),s("Button",{staticClass:"p-button-rounded p-button-secondary p-button-text p-mr-2",attrs:{icon:"pi pi-chart-line"},on:{click:function(s){return t.goToAnalytics(e.row.id)}}}),t._v(" "),s("Button",{staticClass:"p-button-rounded p-button-danger p-button-text",attrs:{icon:"pi pi-trash"},on:{click:function(s){return t.deleteExam(e.row.id)}}})],1):s("span",[t._v("\n                          "+t._s(e.formattedRow[e.column.field])+"\n                        ")])]}}])},[t._v(" "),s("div",{attrs:{slot:"emptystate"},slot:"emptystate"},[s("no-data-table",[s("template",{slot:"action"},[s("inertia-link",{staticClass:"qt-btn-sm qt-btn-primary",attrs:{href:t.route("quizzes.create")}},[t._v("\n                                    Create New\n                                ")])],1)],2)],1)])],1)])])])}),[],!1,null,null,null).exports},4422:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>C});var r=s(67),a=s(8801),i=s(4974),n=s(8558),o=s(2263),l=s(9745),c=s(8465),u=s(8407),d=s(3976),p=s(6916),m=s(4019);const _={name:"SectionForm",components:{InputText:i.default,Button:o.default,InputSwitch:c.default,Textarea:u.default,TextEditor:d.Z,FormInputShimmer:p.Z,FormSwitchShimmer:m.Z},props:{editFlag:Boolean,sectionId:Number,errors:Object,title:""},data:function(){return{form:{name:"",icon_path:"",short_description:"",is_active:!0},formValidated:!1,loading:!1}},methods:{submitForm:function(){this.editFlag?this.update():this.create()},create:function(){var t=this;this.formValidated=!0,this.$inertia.post(route("sections.store"),this.form,{onSuccess:function(){0===Object.keys(t.errors).length&&t.$emit("close",!0)}})},update:function(){var t=this;this.formValidated=!0,this.$inertia.patch(route("sections.update",{id:this.sectionId}),this.form,{onSuccess:function(){0===Object.keys(t.errors).length&&t.$emit("close",!0)}})},fetch:function(){if(this.editFlag){var t=this;t.loading=!0,axios.get(route("sections.edit",{id:this.sectionId})).then((function(e){var s=e.data;t.form.name=s.name,t.form.short_description=s.short_description,t.form.icon_path=s.icon_path,t.form.is_active=s.is_active})).catch((function(e){t.loading=!1})).then((function(){t.loading=!1}))}}},mounted:function(){!0===this.editFlag&&this.fetch()}};var f=s(1900);const v=(0,f.Z)(_,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"overflow-y-auto h-screen px-2"},[s("div",{staticClass:"bg-gray-100 py-4 lg:py-4 rounded"},[s("div",{staticClass:"container px-6 mx-auto flex ltr:flex-row rtl:flex-row-reverse"},[s("div",[s("h4",{staticClass:"text-base font-semibold leading-tight text-gray-800"},[t._v("\n                    "+t._s(t.title)+"\n                ")])])])]),t._v(" "),t.loading?s("div",{staticClass:"my-6 w-11/12 mx-auto xl:w-full xl:mx-0"},[s("form-input-shimmer"),t._v(" "),s("form-input-shimmer"),t._v(" "),s("form-input-shimmer"),t._v(" "),s("form-switch-shimmer")],1):s("form",{staticClass:"my-6 w-11/12 mx-auto xl:w-full xl:mx-0",on:{submit:function(e){return e.preventDefault(),t.submitForm(e)}}},[s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 font-semibold text-gray-800",attrs:{for:"name"}},[t._v(t._s(t.__("Section"))+" "+t._s(t.__("Name")))]),t._v(" "),s("InputText",{class:[t.errors.name?"p-invalid":""],attrs:{type:"text",id:"name","aria-describedby":"name-help"},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}}),t._v(" "),t.errors.name?s("small",{staticClass:"p-invalid",attrs:{id:"name-help"}},[t._v(t._s(t.errors.name))]):t._e()],1),t._v(" "),s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 font-semibold text-gray-800",attrs:{for:"short_description"}},[t._v(t._s(t.__("Short Description")))]),t._v(" "),s("Textarea",{class:[t.errors.short_description?"p-invalid":""],attrs:{id:"short_description"},model:{value:t.form.short_description,callback:function(e){t.$set(t.form,"short_description",e)},expression:"form.short_description"}}),t._v(" "),t.errors.short_description?s("small",{staticClass:"p-invalid",attrs:{id:"short_description-help"}},[t._v(t._s(t.errors.short_description))]):t._e()],1),t._v(" "),s("div",{staticClass:"w-full"},[s("div",{staticClass:"flex justify-between items-center mb-8"},[s("div",{staticClass:"w-9/12"},[s("label",{staticClass:"font-semibold text-gray-800 pb-1",attrs:{for:"is_active"},domProps:{innerHTML:t._s(t.form.is_active?t.__("Active"):t.__("In-active"))}}),t._v(" "),s("p",{staticClass:"text-sm text-gray-500"},[t._v(t._s(t.__("Active"))+" ("+t._s(t.__("Shown Everywhere"))+"). "+t._s(t.__("In-active"))+" ("+t._s(t.__("Hidden Everywhere"))+").")])]),t._v(" "),s("div",{staticClass:"cursor-pointer rounded-full relative shadow-sm"},[s("InputSwitch",{attrs:{id:"is_active"},model:{value:t.form.is_active,callback:function(e){t.$set(t.form,"is_active",e)},expression:"form.is_active"}})],1)])]),t._v(" "),s("div",{staticClass:"w-full flex"},[s("Button",{attrs:{type:"submit",label:t.editFlag?t.__("Update"):"Create"}})],1)])])}),[],!1,null,null,null).exports;var h=s(728),g=s(7531),b=s(3194);function x(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var s=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==s)return;var r,a,i=[],n=!0,o=!1;try{for(s=s.call(t);!(n=(r=s.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return y(t,e);var s=Object.prototype.toString.call(t).slice(8,-1);"Object"===s&&t.constructor&&(s=t.constructor.name);if("Map"===s||"Set"===s)return Array.from(t);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return y(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,r=new Array(e);s<e;s++)r[s]=t[s];return r}const w={components:{SectionForm:v,AdminLayout:r.Z,Column:a.default,InputText:i.default,Toolbar:n.default,Button:o.default,Sidebar:l.default,Chip:h.default,Tag:g.default,NoDataTable:b.Z},props:{sections:Object,errors:Object},data:function(){return{createForm:!1,editForm:!1,currentId:null,columns:[{label:this.__("Code"),field:"code",filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Code"),filterValue:null,trigger:"enter"},sortable:!1,width:"11rem"},{label:this.__("Name"),field:"name",filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Name"),filterValue:null,trigger:"enter"},sortable:!1},{label:this.__("Status"),field:"status",sortable:!1,filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Status"),filterValue:null,filterDropdownItems:[{value:1,text:this.__("Active")},{value:0,text:this.__("In-active")}]}},{label:this.__("Actions"),field:"actions",sortable:!1}],options:{enabled:!0,mode:"pages",perPage:this.sections.meta.pagination.per_page,setCurrentPage:this.sections.meta.pagination.current_page,perPageDropdown:[10,20,50,100],dropdownAllowAll:!1},serverParams:{columnFilters:{},sort:{field:"",type:""},page:1,perPage:10},loading:!1}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return"Sections - "+this.$page.props.general.app_name+" Admin"}},methods:{updateParams:function(t){this.serverParams=Object.assign({},this.serverParams,t)},onPageChange:function(t){this.updateParams({page:t.currentPage}),this.loadItems()},onPerPageChange:function(t){this.updateParams({perPage:t.currentPerPage}),this.loadItems()},onSortChange:function(t){this.updateParams({sort:[{type:t.sortType,field:this.columns[t.columnIndex].field}]}),this.loadItems()},onColumnFilter:function(t){this.updateParams(t),this.loadItems()},getQueryParams:function(){for(var t={page:this.serverParams.page,perPage:this.serverParams.perPage},e=0,s=Object.entries(this.serverParams.columnFilters);e<s.length;e++){var r=x(s[e],2),a=r[0],i=r[1];i&&(t[a]=i)}return t},loadItems:function(){this.$inertia.get(route(route().current()),this.getQueryParams(),{replace:!1,preserveState:!0,preserveScroll:!0})},deleteSection:function(t){var e=this;this.$confirm.require({header:this.__("Confirm Delete"),message:this.__("Do you want to delete this record?"),icon:"pi pi-info-circle",acceptClass:"p-button-danger",rejectLabel:this.__("Cancel"),acceptLabel:this.__("Delete"),accept:function(){e.$inertia.delete(route("sections.destroy",{id:t}),{},{onSuccess:function(){e.$toast.add({severity:"info",summary:e.__("Confirmed"),detail:e.__("Record deleted"),life:3e3})}})},reject:function(){}})},handleCopyStatus:function(t){t&&this.$toast.add({severity:"success",summary:this.__("Copied"),detail:this.__("Copied Successfully!"),life:2e3})}}};const C=(0,f.Z)(w,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("admin-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v(t._s(t.__("Sections")))])]},proxy:!0},{key:"actions",fn:function(){return[s("button",{staticClass:"qt-btn qt-btn-success",on:{click:function(e){t.createForm=!0}}},[t._v("\n            "+t._s(t.__("New"))+" "+t._s(t.__("Section"))+"\n        ")])]},proxy:!0}])},[t._v(" "),t._v(" "),s("div",{staticClass:"container mx-auto py-8 px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"card"},[s("div",{staticClass:"card-body"},[s("vue-good-table",{attrs:{mode:"remote","pagination-options":t.options,columns:t.columns,totalRows:t.sections.meta.pagination.total,rows:t.sections.data,rtl:t.$page.props.rtl},on:{"on-page-change":t.onPageChange,"on-column-filter":t.onColumnFilter,"on-per-page-change":t.onPerPageChange},scopedSlots:t._u([{key:"table-row",fn:function(e){return["code"===e.column.field?s("div",[s("Tag",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.row.code,expression:"props.row.code",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.handleCopyStatus,expression:"handleCopyStatus",arg:"success"}],staticClass:"w-full p-mr-2 text-sm cursor-pointer",attrs:{value:e.row.code,icon:"pi pi-copy"}})],1):"status"===e.column.field?s("div",[s("span",{class:[e.row.status?"badge-success":"badge-danger","badge"]},[t._v(t._s(e.row.status?t.__("Active"):t.__("In-active")))])]):"actions"===e.column.field?s("div",[s("Button",{staticClass:"p-button-rounded p-button-secondary p-button-text p-mr-2",attrs:{icon:"pi pi-pencil"},on:{click:function(s){t.editForm=!0,t.currentId=e.row.id}}}),t._v(" "),s("Button",{staticClass:"p-button-rounded p-button-danger p-button-text",attrs:{icon:"pi pi-trash"},on:{click:function(s){return t.deleteSection(e.row.id)}}})],1):s("span",[t._v("\n                          "+t._s(e.formattedRow[e.column.field])+"\n                        ")])]}}])},[t._v(" "),s("div",{attrs:{slot:"emptystate"},slot:"emptystate"},[s("no-data-table",[s("template",{slot:"action"},[s("button",{staticClass:"qt-btn-sm qt-btn-primary",attrs:{type:"button"},on:{click:function(e){t.createForm=!0}}},[t._v("\n                                    "+t._s(t.__("New"))+" "+t._s(t.__("Section"))+"\n                                ")])])],2)],1)]),t._v(" "),s("Sidebar",{staticClass:"p-sidebar-md",attrs:{position:"right",visible:t.createForm},on:{"update:visible":function(e){t.createForm=e},hide:t.loadItems}},[s("SectionForm",{attrs:{errors:t.errors,title:t.__("New")+" "+t.__("Section")},on:{close:function(e){t.createForm=!1}}})],1),t._v(" "),s("Sidebar",{staticClass:"p-sidebar-md",attrs:{position:"right",visible:t.editForm},on:{"update:visible":function(e){t.editForm=e},hide:t.loadItems}},[s("SectionForm",{attrs:{"edit-flag":t.editForm,"section-id":t.currentId,errors:t.errors,title:t.__("Edit")+" "+t.__("Section")},on:{"update:editFlag":function(e){t.editForm=e},"update:edit-flag":function(e){t.editForm=e},close:function(e){t.editForm=!1}}})],1)],1)])])])}),[],!1,null,null,null).exports},9922:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>p});var r=s(67),a=s(4820),i=s(9881),n=s(341),o=s(6173),l=s(3265),c=s(3473),u=s(9684);const d={components:{AdminLayout:r.Z,ArcActionMessage:a.Z,ArcButton:i.Z,ArcFormSection:n.Z,ArcInput:o.Z,ArcTextArea:l.Z,ArcInputError:c.Z,ArcLabel:u.Z},props:{settings:Object},data:function(){return{form:this.$inertia.form({title:this.settings.title,subtitle:this.settings.subtitle,limit:this.settings.limit})}},methods:{updateSettings:function(){this.form.post(route("update_category_settings"),{errorBag:"updateCategorySettings",preserveScroll:!0})}}};const p=(0,s(1900).Z)(d,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("arc-form-section",{on:{submitted:t.updateSettings},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n        "+t._s(t.__("Category Settings"))+"\n    ")]},proxy:!0},{key:"form",fn:function(){return[s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"title",value:t.__("Title")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"title",type:"text",autocomplete:"title"},model:{value:t.form.title,callback:function(e){t.$set(t.form,"title",e)},expression:"form.title"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.title}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"subtitle",value:t.__("Subtitle")}}),t._v(" "),s("arc-text-area",{staticClass:"mt-1 block w-full",attrs:{id:"subtitle"},model:{value:t.form.subtitle,callback:function(e){t.$set(t.form,"subtitle",e)},expression:"form.subtitle"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.subtitle}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"limit",value:t.__("Item Limit")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"limit",type:"number"},model:{value:t.form.limit,callback:function(e){t.$set(t.form,"limit",e)},expression:"form.limit"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.limit}})],1)]},proxy:!0},{key:"actions",fn:function(){return[s("arc-action-message",{staticClass:"mr-3",attrs:{on:t.form.recentlySuccessful}},[t._v("\n            "+t._s(t.__("Saved"))+".\n        ")]),t._v(" "),s("arc-button",{class:{"opacity-25":t.form.processing},attrs:{disabled:t.form.processing}},[t._v("\n            "+t._s(t.__("Save"))+"\n        ")])]},proxy:!0}])})}),[],!1,null,null,null).exports},5884:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>c});var r=s(4820),a=s(8e3),i=s(9881),n=s(2943),o=s(7414);const l={components:{ArcActionMessage:r.Z,ArcActionSection:a.Z,ArcButton:i.Z,ArcConfirmsPassword:n.Z,ArcSecondaryButton:o.Z},data:function(){return{loading:!1}},methods:{clearCache:function(){var t=this;this.loading=!0,this.$inertia.post(route("clear_cache"),{},{preserveScroll:!0,onSuccess:function(){return Promise.all([t.loading=!1])},onFinish:function(){return t.loading=!1}})}}};const c=(0,s(1900).Z)(l,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("arc-action-section",{scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n        "+t._s(t.__("Clear Cache"))+"\n    ")]},proxy:!0},{key:"content",fn:function(){return[s("div",{staticClass:"max-w-xl text-sm text-gray-600"},[t._v("\n            "+t._s(t.__("clear_cache_message"))+"\n        ")]),t._v(" "),s("div",{staticClass:"flex items-center mt-5"},[s("arc-confirms-password",{on:{confirmed:t.clearCache}},[s("arc-button",{class:{"opacity-25":t.loading},attrs:{type:"button",disabled:t.loading}},[t._v("\n                    "+t._s(t.__("Clear Cache"))+"\n                ")])],1)],1)]},proxy:!0}])})}),[],!1,null,null,null).exports},3165:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>p});var r=s(67),a=s(4820),i=s(9881),n=s(341),o=s(6173),l=s(3265),c=s(3473),u=s(9684);const d={components:{AdminLayout:r.Z,ArcActionMessage:a.Z,ArcButton:i.Z,ArcFormSection:n.Z,ArcInput:o.Z,ArcTextArea:l.Z,ArcInputError:c.Z,ArcLabel:u.Z},props:{settings:Object},data:function(){return{form:this.$inertia.form({title:this.settings.title,subtitle:this.settings.subtitle,button_text:this.settings.button_text,button_link:this.settings.button_link})}},methods:{updateSettings:function(){this.form.post(route("update_cta_settings"),{errorBag:"updateCtaSettings",preserveScroll:!0})}}};const p=(0,s(1900).Z)(d,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("arc-form-section",{on:{submitted:t.updateSettings},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n        "+t._s(t.__("CTA Settings"))+"\n    ")]},proxy:!0},{key:"form",fn:function(){return[s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"title",value:t.__("Title")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"title",type:"text",autocomplete:"title"},model:{value:t.form.title,callback:function(e){t.$set(t.form,"title",e)},expression:"form.title"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.title}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"subtitle",value:t.__("Subtitle")}}),t._v(" "),s("arc-text-area",{staticClass:"mt-1 block w-full",attrs:{id:"subtitle"},model:{value:t.form.subtitle,callback:function(e){t.$set(t.form,"subtitle",e)},expression:"form.subtitle"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.subtitle}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"button_text",value:t.__("Button Text")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"button_text",type:"text",autocomplete:"button_text"},model:{value:t.form.button_text,callback:function(e){t.$set(t.form,"button_text",e)},expression:"form.button_text"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.button_text}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"button_link",value:t.__("Button Link")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"button_link",type:"text",autocomplete:"hero_cta_text"},model:{value:t.form.button_link,callback:function(e){t.$set(t.form,"button_link",e)},expression:"form.button_link"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.button_link}})],1)]},proxy:!0},{key:"actions",fn:function(){return[s("arc-action-message",{staticClass:"mr-3",attrs:{on:t.form.recentlySuccessful}},[t._v("\n            "+t._s(t.__("Saved"))+".\n        ")]),t._v(" "),s("arc-button",{class:{"opacity-25":t.form.processing},attrs:{disabled:t.form.processing}},[t._v("\n            "+t._s(t.__("Save"))+"\n        ")])]},proxy:!0}])})}),[],!1,null,null,null).exports},9364:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var r=s(67),a=s(1840),i=s(8923);const n={components:{AdminLayout:r.Z,ArcSectionBorder:a.Z,EmailSettingsForm:i.default},props:{emailSettings:Object},metaInfo:function(){return{title:this.title}},computed:{title:function(){return"General Settings - "+this.$page.props.general.app_name+" Admin"}}};const o=(0,s(1900).Z)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("admin-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v("\n            "+t._s(t.__("Email Settings"))+"\n        ")])]},proxy:!0}])},[t._v(" "),s("div",[s("div",{staticClass:"max-w-7xl mx-auto py-10 sm:px-6 lg:px-8"},[s("email-settings-form",{attrs:{settings:t.emailSettings}})],1)])])}),[],!1,null,null,null).exports},8923:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>p});var r=s(67),a=s(4820),i=s(9881),n=s(341),o=s(6173),l=s(3473),c=s(9684),u=s(7414);const d={components:{AdminLayout:r.Z,ArcActionMessage:a.Z,ArcButton:i.Z,ArcFormSection:n.Z,ArcInput:o.Z,ArcInputError:l.Z,ArcLabel:c.Z,ArcSecondaryButton:u.Z},props:{settings:Object},data:function(){return{form:this.$inertia.form({host:this.settings.host,port:this.settings.port,username:this.settings.username,password:this.settings.password,encryption:this.settings.encryption,from_name:this.settings.from_name,from_address:this.settings.from_address})}},methods:{updateSettings:function(){this.form.post(route("update_email_settings"),{errorBag:"updateEmailSettings",preserveScroll:!0})}}};const p=(0,s(1900).Z)(d,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("arc-form-section",{on:{submitted:t.updateSettings},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n        "+t._s(t.__("Email SMTP Configuration"))+"\n    ")]},proxy:!0},{key:"form",fn:function(){return[s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"host",value:t.__("Host Name")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"host",type:"text"},model:{value:t.form.host,callback:function(e){t.$set(t.form,"host",e)},expression:"form.host"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.host}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"port",value:t.__("Port Number")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"port",type:"number"},model:{value:t.form.port,callback:function(e){t.$set(t.form,"port",e)},expression:"form.port"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.port}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"username",value:t.__("User Name")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"username",type:"text"},model:{value:t.form.username,callback:function(e){t.$set(t.form,"username",e)},expression:"form.username"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.username}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"password",value:t.__("Password")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"password",type:"password"},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.password}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"encryption",value:t.__("Encryption")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"encryption",type:"text"},model:{value:t.form.encryption,callback:function(e){t.$set(t.form,"encryption",e)},expression:"form.encryption"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.encryption}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"from_address",value:t.__("From Address")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"from_address",type:"text"},model:{value:t.form.from_address,callback:function(e){t.$set(t.form,"from_address",e)},expression:"form.from_address"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.from_address}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"from_name",value:t.__("From Name")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"from_name",type:"text"},model:{value:t.form.from_name,callback:function(e){t.$set(t.form,"from_name",e)},expression:"form.from_name"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.from_name}})],1)]},proxy:!0},{key:"actions",fn:function(){return[s("arc-action-message",{staticClass:"mr-3",attrs:{on:t.form.recentlySuccessful}},[t._v("\n            "+t._s(t.__("Saved"))+".\n        ")]),t._v(" "),s("arc-button",{class:{"opacity-25":t.form.processing},attrs:{disabled:t.form.processing}},[t._v("\n            "+t._s(t.__("Save"))+"\n        ")])]},proxy:!0}])})}),[],!1,null,null,null).exports},6843:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>c});var r=s(4820),a=s(8e3),i=s(9881),n=s(2943),o=s(7414);const l={components:{ArcActionMessage:r.Z,ArcActionSection:a.Z,ArcButton:i.Z,ArcConfirmsPassword:n.Z,ArcSecondaryButton:o.Z},data:function(){return{loading:!1}},methods:{expireSchedules:function(){var t=this;this.loading=!0,this.$inertia.post(route("expire_schedules"),{},{preserveScroll:!0,onSuccess:function(){return Promise.all([t.loading=!1])},onFinish:function(){return t.loading=!1}})}}};const c=(0,s(1900).Z)(l,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("arc-action-section",{scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n        "+t._s(t.__("Expire Schedules"))+"\n    ")]},proxy:!0},{key:"content",fn:function(){return[s("div",{staticClass:"max-w-xl text-sm text-gray-600"},[t._v("\n            "+t._s(t.__("expire_schedules_message"))+"\n        ")]),t._v(" "),s("div",{staticClass:"flex items-center mt-5"},[s("arc-confirms-password",{on:{confirmed:t.expireSchedules}},[s("arc-button",{class:{"opacity-25":t.loading},attrs:{type:"button",disabled:t.loading}},[t._v("\n                    "+t._s(t.__("Mark Completed Schedules as Expired"))+"\n                ")])],1)],1)]},proxy:!0}])})}),[],!1,null,null,null).exports},2080:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>p});var r=s(67),a=s(4820),i=s(9881),n=s(341),o=s(6173),l=s(3265),c=s(3473),u=s(9684);const d={components:{AdminLayout:r.Z,ArcActionMessage:a.Z,ArcButton:i.Z,ArcFormSection:n.Z,ArcInput:o.Z,ArcTextArea:l.Z,ArcInputError:c.Z,ArcLabel:u.Z},props:{settings:Object},data:function(){return{features:[1,2,3,4],form:this.$inertia.form({title:this.settings.title,subtitle:this.settings.subtitle,feature1_caption:this.settings.feature1[0],feature1_description:this.settings.feature1[1],feature1_icon_url:this.settings.feature1[2],feature2_caption:this.settings.feature2[0],feature2_description:this.settings.feature2[1],feature2_icon_url:this.settings.feature2[2],feature3_caption:this.settings.feature3[0],feature3_description:this.settings.feature3[1],feature3_icon_url:this.settings.feature3[2],feature4_caption:this.settings.feature4[0],feature4_description:this.settings.feature4[1],feature4_icon_url:this.settings.feature4[2]})}},methods:{updateSettings:function(){this.form.post(route("update_feature_settings"),{errorBag:"updateFeatureSettings",preserveScroll:!0})}}};const p=(0,s(1900).Z)(d,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("arc-form-section",{on:{submitted:t.updateSettings},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n        "+t._s(t.__("Feature Settings"))+"\n    ")]},proxy:!0},{key:"form",fn:function(){return[s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"title",value:t.__("Title")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"title",type:"text",autocomplete:"title"},model:{value:t.form.title,callback:function(e){t.$set(t.form,"title",e)},expression:"form.title"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.title}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"subtitle",value:t.__("Subtitle")}}),t._v(" "),s("arc-text-area",{staticClass:"mt-1 block w-full",attrs:{id:"subtitle"},model:{value:t.form.subtitle,callback:function(e){t.$set(t.form,"subtitle",e)},expression:"form.subtitle"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.subtitle}})],1),t._v(" "),t._l(t.features,(function(e){return s("div",{staticClass:"p-4 bg-gray-50 rounded-md col-span-6 sm:sol-span-4"},[s("div",{staticClass:"col-span-12 py-3 font-bold border-b border-gray-200"},[s("span",[t._v(t._s(t.__("Feature"))+" "+t._s(e))])]),t._v(" "),s("div",{staticClass:"col-span-12 py-3"},[s("arc-label",{attrs:{for:"feature"+e+"_caption",value:t.__("Caption")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"feature"+e+"_caption",type:"text"},model:{value:t.form["feature"+e+"_caption"],callback:function(s){t.$set(t.form,"feature"+e+"_caption",s)},expression:"form['feature'+feature+'_caption']"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors["feature"+e+"_caption"]}})],1),t._v(" "),s("div",{staticClass:"col-span-12 py-3"},[s("arc-label",{attrs:{for:"feature"+e+"_description",value:t.__("Description")}}),t._v(" "),s("arc-text-area",{staticClass:"mt-1 block w-full",attrs:{id:"feature"+e+"_description"},model:{value:t.form["feature"+e+"_description"],callback:function(s){t.$set(t.form,"feature"+e+"_description",s)},expression:"form['feature'+feature+'_description']"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors["feature"+e+"_description"]}})],1),t._v(" "),s("div",{staticClass:"col-span-12 py-3"},[s("arc-label",{attrs:{for:"feature"+e+"_icon_url",value:t.__("Icon URL")+" (100x100)"}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"feature"+e+"_icon_url",type:"text"},model:{value:t.form["feature"+e+"_icon_url"],callback:function(s){t.$set(t.form,"feature"+e+"_icon_url",s)},expression:"form['feature'+feature+'_icon_url']"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors["feature"+e+"_icon_url"]}})],1)])}))]},proxy:!0},{key:"actions",fn:function(){return[s("arc-action-message",{staticClass:"mr-3",attrs:{on:t.form.recentlySuccessful}},[t._v("\n            "+t._s(t.__("Saved"))+".\n        ")]),t._v(" "),s("arc-button",{class:{"opacity-25":t.form.processing},attrs:{disabled:t.form.processing}},[t._v("\n            "+t._s(t.__("Save"))+"\n        ")])]},proxy:!0}])})}),[],!1,null,null,null).exports},1470:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>m});var r=s(67),a=s(4820),i=s(9881),n=s(341),o=s(6173),l=s(3473),c=s(9684),u=s(7414),d=s(8666);const p={components:{AdminLayout:r.Z,ArcActionMessage:a.Z,ArcButton:i.Z,ArcFormSection:n.Z,ArcInput:o.Z,ArcInputError:l.Z,ArcLabel:c.Z,ArcSecondaryButton:u.Z,ColorPicker:d.default},props:{settings:Object},data:function(){return{form:this.$inertia.form({default_font:this.settings.default_font,default_font_url:this.settings.default_font_url})}},methods:{updateSettings:function(){this.form.post(route("update_font_settings"),{errorBag:"updateFontSettings",preserveScroll:!0})}}};const m=(0,s(1900).Z)(p,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("arc-form-section",{on:{submitted:t.updateSettings},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n        "+t._s(t.__("Font Settings"))+"\n    ")]},proxy:!0},{key:"form",fn:function(){return[s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"default_font",value:t.__("Default Font Name")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"default_font",type:"text",placeholder:"E.g. Roboto"},model:{value:t.form.default_font,callback:function(e){t.$set(t.form,"default_font",e)},expression:"form.default_font"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.default_font}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"default_font_url",value:t.__("Default Font URL")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"default_font_url",type:"text"},model:{value:t.form.default_font_url,callback:function(e){t.$set(t.form,"default_font_url",e)},expression:"form.default_font_url"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.default_font_url}})],1)]},proxy:!0},{key:"actions",fn:function(){return[s("arc-action-message",{staticClass:"mr-3",attrs:{on:t.form.recentlySuccessful}},[t._v("\n            "+t._s(t.__("Saved"))+".\n        ")]),t._v(" "),s("arc-button",{class:{"opacity-25":t.form.processing},attrs:{disabled:t.form.processing}},[t._v("\n            "+t._s(t.__("Save"))+"\n        ")])]},proxy:!0}])})}),[],!1,null,null,null).exports},3671:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>m});var r=s(67),a=s(4820),i=s(9881),n=s(341),o=s(6173),l=s(3265),c=s(3473),u=s(9684),d=s(8465);const p={components:{AdminLayout:r.Z,ArcActionMessage:a.Z,ArcButton:i.Z,ArcFormSection:n.Z,ArcInput:o.Z,ArcTextArea:l.Z,ArcInputError:c.Z,ArcLabel:u.Z,InputSwitch:d.default},props:{settings:Object},data:function(){return{social_sites:["facebook","twitter","youtube","instagram","linkedin","github"],form:this.$inertia.form({copyright_text:this.settings.copyright_text,enable_links:this.settings.enable_links,footer_links:this.settings.footer_links,enable_social_links:this.settings.enable_social_links,enable_facebook:this.settings.social_links.facebook[1],facebook_link:this.settings.social_links.facebook[2],enable_twitter:this.settings.social_links.twitter[1],twitter_link:this.settings.social_links.twitter[2],enable_youtube:this.settings.social_links.youtube[1],youtube_link:this.settings.social_links.youtube[2],enable_instagram:this.settings.social_links.instagram[1],instagram_link:this.settings.social_links.instagram[2],enable_linkedin:this.settings.social_links.linkedin[1],linkedin_link:this.settings.social_links.linkedin[2],enable_github:this.settings.social_links.github[1],github_link:this.settings.social_links.github[2]})}},methods:{updateSettings:function(){this.form.post(route("update_footer_settings"),{errorBag:"updateFooterSettings",preserveScroll:!0})}}};const m=(0,s(1900).Z)(p,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("arc-form-section",{on:{submitted:t.updateSettings},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n        "+t._s(t.__("Footer Settings"))+"\n    ")]},proxy:!0},{key:"form",fn:function(){return[s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"copyright_text",value:t.__("Copyright Text")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"copyright_text",type:"text"},model:{value:t.form.copyright_text,callback:function(e){t.$set(t.form,"copyright_text",e)},expression:"form.copyright_text"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.copyright_text}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("div",{staticClass:"flex justify-between items-center"},[s("div",{staticClass:"w-9/12"},[s("label",{staticClass:"text-sm text-gray-800 pb-1",attrs:{for:"enable_links"}},[t._v(t._s(t.__("Enable Footer Links"))+" ("+t._s(t.form.enable_links?t.__("Enabled"):t.__("Disabled"))+")")])]),t._v(" "),s("div",{staticClass:"cursor-pointer rounded-full relative shadow-sm"},[s("InputSwitch",{attrs:{id:"enable_links"},model:{value:t.form.enable_links,callback:function(e){t.$set(t.form,"enable_links",e)},expression:"form.enable_links"}})],1)]),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.enable_links}})],1),t._v(" "),t._l(t.form.footer_links,(function(e,r){return s("div",{staticClass:"p-4 bg-gray-50 rounded-md col-span-6 sm:col-span-4"},[s("div",{staticClass:"col-span-12 flex justify-between items-center py-3 font-bold border-b border-gray-200"},[s("span",[t._v(t._s(t.__("Link"))+" "+t._s(r+1))]),t._v(" "),s("div",{staticClass:"cursor-pointer rounded-full relative shadow-sm"},[s("InputSwitch",{attrs:{id:"enable_link_"+r},model:{value:t.form.footer_links[r][2],callback:function(e){t.$set(t.form.footer_links[r],2,e)},expression:"form.footer_links[index][2]"}})],1)]),t._v(" "),s("div",{staticClass:"col-span-12 py-3"},[s("arc-label",{attrs:{for:"text_"+r,value:t.__("Link Text")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"text_"+r,type:"text"},model:{value:t.form.footer_links[r][0],callback:function(e){t.$set(t.form.footer_links[r],0,e)},expression:"form.footer_links[index][0]"}})],1),t._v(" "),s("div",{staticClass:"col-span-12 py-3"},[s("arc-label",{attrs:{for:"link_"+r,value:t.__("Link")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"link_"+r,type:"text"},model:{value:t.form.footer_links[r][1],callback:function(e){t.$set(t.form.footer_links[r],1,e)},expression:"form.footer_links[index][1]"}})],1)])})),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("div",{staticClass:"flex justify-between items-center"},[s("div",{staticClass:"w-9/12"},[s("label",{staticClass:"text-sm text-gray-800 pb-1",attrs:{for:"enable_social_links"}},[t._v(t._s(t.__("Enable Social Links"))+" ("+t._s(t.form.enable_social_links?t.__("Enabled"):t.__("Disabled"))+")")])]),t._v(" "),s("div",{staticClass:"cursor-pointer rounded-full relative shadow-sm"},[s("InputSwitch",{attrs:{id:"enable_social_links"},model:{value:t.form.enable_social_links,callback:function(e){t.$set(t.form,"enable_social_links",e)},expression:"form.enable_social_links"}})],1)]),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.enable_social_links}})],1),t._v(" "),s("div",{staticClass:"p-4 bg-gray-50 rounded-md col-span-6 sm:col-span-4"},t._l(t.social_sites,(function(e){return s("div",{staticClass:"mb-2"},[s("arc-label",{staticClass:"capitalize",attrs:{for:e+"_link",value:t.__(e)}}),t._v(" "),s("div",{staticClass:"flex justify-between items-center"},[s("div",{staticClass:"cursor-pointer rounded-full relative shadow-sm"},[s("InputSwitch",{attrs:{id:"enable_"+e},model:{value:t.form["enable_"+e],callback:function(s){t.$set(t.form,"enable_"+e,s)},expression:"form['enable_'+site]"}})],1),t._v(" "),s("div",{staticClass:"w-9/12"},[s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:e+"_link",type:"text"},model:{value:t.form[e+"_link"],callback:function(s){t.$set(t.form,e+"_link",s)},expression:"form[site+'_link']"}})],1)]),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors[e+"_link"]}})],1)})),0)]},proxy:!0},{key:"actions",fn:function(){return[s("arc-action-message",{staticClass:"mr-3",attrs:{on:t.form.recentlySuccessful}},[t._v("\n            "+t._s(t.__("Saved"))+".\n        ")]),t._v(" "),s("arc-button",{class:{"opacity-25":t.form.processing},attrs:{disabled:t.form.processing}},[t._v("\n            "+t._s(t.__("Save"))+"\n        ")])]},proxy:!0}])})}),[],!1,null,null,null).exports},7548:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>u});var r=s(67),a=s(1840),i=s(7137),n=s(2657),o=s(3187),l=s(5729);const c={components:{AdminLayout:r.Z,ArcSectionBorder:a.Z,SiteSettingsForm:i.default,SiteLogoForm:n.default,SiteFaviconForm:o.default,SiteWhiteLogoForm:l.default},props:{siteSettings:Object},metaInfo:function(){return{title:this.title}},computed:{title:function(){return"General Settings - "+this.$page.props.general.app_name+" Admin"}}};const u=(0,s(1900).Z)(c,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("admin-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v("\n            "+t._s(t.__("General Settings"))+"\n        ")])]},proxy:!0}])},[t._v(" "),s("div",[s("div",{staticClass:"max-w-7xl mx-auto py-10 sm:px-6 lg:px-8"},[s("site-settings-form",{attrs:{settings:t.siteSettings}}),t._v(" "),s("arc-section-border"),t._v(" "),s("site-logo-form",{attrs:{settings:t.siteSettings}}),t._v(" "),s("arc-section-border"),t._v(" "),s("site-white-logo-form",{attrs:{settings:t.siteSettings}}),t._v(" "),s("arc-section-border"),t._v(" "),s("site-favicon-form",{attrs:{settings:t.siteSettings}})],1)])])}),[],!1,null,null,null).exports},6856:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>m});var r=s(67),a=s(4820),i=s(9881),n=s(341),o=s(6173),l=s(3265),c=s(3473),u=s(9684),d=s(7414);const p={components:{AdminLayout:r.Z,ArcActionMessage:a.Z,ArcButton:i.Z,ArcFormSection:n.Z,ArcInput:o.Z,ArcTextArea:l.Z,ArcInputError:c.Z,ArcLabel:u.Z,ArcSecondaryButton:d.Z},props:{settings:Object},data:function(){return{form:this.$inertia.form({title:this.settings.title,subtitle:this.settings.subtitle,cta_text:this.settings.cta_text,cta_link:this.settings.cta_link,image_path:this.settings.image_path}),imagePreview:null}},methods:{updateSettings:function(){this.$refs.image&&(this.form.image_path=this.$refs.image.files[0]),this.form.post(route("update_hero_settings"),{errorBag:"updateHeroSettings",preserveScroll:!0})},selectNewImage:function(){this.$refs.image.click()},updateImagePreview:function(){var t=this,e=new FileReader;e.onload=function(e){t.imagePreview=e.target.result},e.readAsDataURL(this.$refs.image.files[0])}}};const m=(0,s(1900).Z)(p,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("arc-form-section",{on:{submitted:t.updateSettings},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n        "+t._s(t.__("Hero Settings"))+"\n    ")]},proxy:!0},{key:"form",fn:function(){return[s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"title",value:t.__("Title")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"title",type:"text",autocomplete:"title"},model:{value:t.form.title,callback:function(e){t.$set(t.form,"title",e)},expression:"form.title"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.title}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"subtitle",value:t.__("Subtitle")}}),t._v(" "),s("arc-text-area",{staticClass:"mt-1 block w-full",attrs:{id:"subtitle"},model:{value:t.form.subtitle,callback:function(e){t.$set(t.form,"subtitle",e)},expression:"form.subtitle"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.subtitle}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"cta_text",value:t.__("CTA Text")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"cta_text",type:"text",autocomplete:"cta_text"},model:{value:t.form.cta_text,callback:function(e){t.$set(t.form,"cta_text",e)},expression:"form.cta_text"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.cta_text}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"cta_link",value:t.__("CTA Link")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"cta_link",type:"text",autocomplete:"cta_link"},model:{value:t.form.cta_link,callback:function(e){t.$set(t.form,"cta_link",e)},expression:"form.cta_link"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.cta_link}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("input",{ref:"image",staticClass:"hidden",attrs:{type:"file"},on:{change:t.updateImagePreview}}),t._v(" "),s("arc-label",{attrs:{for:"image",value:t.__("Image")}}),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:!t.imagePreview,expression:"!imagePreview"}],staticClass:"mt-2"},[s("img",{staticClass:"h-64 object-cover",attrs:{src:t.$page.props.assetUrl+t.settings.image_path,alt:"Hero Image"}})]),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.imagePreview,expression:"imagePreview"}],staticClass:"mt-2"},[s("span",{staticClass:"block h-64",style:"background-size: contain; background-repeat: no-repeat; background-position: center center; background-image: url('"+t.imagePreview+"');"})]),t._v(" "),s("arc-secondary-button",{staticClass:"mt-2 ltr:mr-2 rtl:ml-2",attrs:{type:"button"},nativeOn:{click:function(e){return e.preventDefault(),t.selectNewImage(e)}}},[t._v("\n                "+t._s(t.__("Select A New Image"))+"\n            ")]),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.hero_image_path}})],1)]},proxy:!0},{key:"actions",fn:function(){return[s("arc-action-message",{staticClass:"mr-3",attrs:{on:t.form.recentlySuccessful}},[t._v("\n            "+t._s(t.__("Saved"))+".\n        ")]),t._v(" "),s("arc-button",{class:{"opacity-25":t.form.processing},attrs:{disabled:t.form.processing}},[t._v("\n            "+t._s(t.__("Save"))+"\n        ")])]},proxy:!0}])})}),[],!1,null,null,null).exports},8730:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>f});var r=s(67),a=s(1840),i=s(1507),n=s(3304),o=s(2080),l=s(3165),c=s(6856),u=s(6749),d=s(8550),p=s(9922),m=s(3671);const _={components:{AdminLayout:r.Z,ArcSectionBorder:a.Z,HomePageSettingsForm:i.default,TopBarSettingsForm:n.default,FeatureSettingsForm:o.default,CtaSettingsForm:l.default,HeroSettingsForm:c.default,TestimonialSettingsForm:u.default,StatSettingsForm:d.default,CategorySettingsForm:p.default,FooterSettingsForm:m.default},props:{homePageSettings:Object,heroSettings:Object,topBarSettings:Object,featureSettings:Object,ctaSettings:Object,testimonialSettings:Object,statSettings:Object,categorySettings:Object,footerSettings:Object},metaInfo:function(){return{title:this.title}},computed:{title:function(){return"Home Page Settings - "+this.$page.props.general.app_name+" Admin"}}};const f=(0,s(1900).Z)(_,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("admin-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v("\n            "+t._s(t.__("Home Page Settings"))+"\n        ")])]},proxy:!0}])},[t._v(" "),s("div",[s("div",{staticClass:"max-w-7xl mx-auto py-10 sm:px-6 lg:px-8"},[s("home-page-settings-form",{attrs:{settings:t.homePageSettings}}),t._v(" "),s("arc-section-border"),t._v(" "),s("top-bar-settings-form",{attrs:{settings:t.topBarSettings}}),t._v(" "),s("arc-section-border"),t._v(" "),s("hero-settings-form",{attrs:{settings:t.heroSettings}}),t._v(" "),s("arc-section-border"),t._v(" "),s("feature-settings-form",{attrs:{settings:t.featureSettings}}),t._v(" "),s("arc-section-border"),t._v(" "),s("category-settings-form",{attrs:{settings:t.categorySettings}}),t._v(" "),s("arc-section-border"),t._v(" "),s("stat-settings-form",{attrs:{settings:t.statSettings}}),t._v(" "),s("arc-section-border"),t._v(" "),s("testimonial-settings-form",{attrs:{settings:t.testimonialSettings}}),t._v(" "),s("arc-section-border"),t._v(" "),s("cta-settings-form",{attrs:{settings:t.ctaSettings}}),t._v(" "),s("arc-section-border"),t._v(" "),s("footer-settings-form",{attrs:{settings:t.footerSettings}})],1)])])}),[],!1,null,null,null).exports},1507:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>p});var r=s(67),a=s(4820),i=s(9881),n=s(341),o=s(6173),l=(s(3265),s(3473)),c=s(9684),u=s(8465);const d={components:{AdminLayout:r.Z,ArcActionMessage:a.Z,ArcButton:i.Z,ArcFormSection:n.Z,ArcInput:o.Z,ArcInputError:l.Z,ArcLabel:c.Z,InputSwitch:u.default},props:{settings:Object},data:function(){return{form:this.$inertia.form({enable_top_bar:this.settings.enable_top_bar,enable_search:this.settings.enable_search,enable_hero:this.settings.enable_hero,enable_features:this.settings.enable_features,enable_categories:this.settings.enable_categories,enable_testimonials:this.settings.enable_testimonials,enable_stats:this.settings.enable_stats,enable_cta:this.settings.enable_cta,enable_footer:this.settings.enable_footer}),imagePreview:null}},methods:{updateSettings:function(){this.form.post(route("update_home_page_settings"),{errorBag:"updateHomePageSettings",preserveScroll:!0})}}};const p=(0,s(1900).Z)(d,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("arc-form-section",{on:{submitted:t.updateSettings},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n        "+t._s(t.__("Home Page Settings"))+"\n    ")]},proxy:!0},{key:"form",fn:function(){return[s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("div",{staticClass:"flex justify-between items-center"},[s("div",{staticClass:"w-9/12"},[s("label",{staticClass:"text-sm text-gray-800 pb-1",attrs:{for:"enable_top_bar"}},[t._v(t._s(t.__("Enable TopBar"))+" ("+t._s(t.form.enable_top_bar?t.__("Enabled"):t.__("Disabled"))+")")])]),t._v(" "),s("div",{staticClass:"cursor-pointer rounded-full relative shadow-sm"},[s("InputSwitch",{attrs:{id:"enable_top_bar"},model:{value:t.form.enable_top_bar,callback:function(e){t.$set(t.form,"enable_top_bar",e)},expression:"form.enable_top_bar"}})],1)]),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.enable_top_bar}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("div",{staticClass:"flex justify-between items-center"},[s("div",{staticClass:"w-9/12"},[s("label",{staticClass:"text-sm text-gray-800 pb-1",attrs:{for:"enable_hero"}},[t._v(t._s(t.__("Enable Hero"))+" ("+t._s(t.form.enable_hero?t.__("Enabled"):t.__("Disabled"))+")")])]),t._v(" "),s("div",{staticClass:"cursor-pointer rounded-full relative shadow-sm"},[s("InputSwitch",{attrs:{id:"enable_hero"},model:{value:t.form.enable_hero,callback:function(e){t.$set(t.form,"enable_hero",e)},expression:"form.enable_hero"}})],1)]),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.enable_hero}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("div",{staticClass:"flex justify-between items-center"},[s("div",{staticClass:"w-9/12"},[s("label",{staticClass:"text-sm text-gray-800 pb-1",attrs:{for:"enable_features"}},[t._v(t._s(t.__("Enable Features"))+" ("+t._s(t.form.enable_features?t.__("Enabled"):t.__("Disabled"))+")")])]),t._v(" "),s("div",{staticClass:"cursor-pointer rounded-full relative shadow-sm"},[s("InputSwitch",{attrs:{id:"enable_features"},model:{value:t.form.enable_features,callback:function(e){t.$set(t.form,"enable_features",e)},expression:"form.enable_features"}})],1)]),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.enable_features}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("div",{staticClass:"flex justify-between items-center"},[s("div",{staticClass:"w-9/12"},[s("label",{staticClass:"text-sm text-gray-800 pb-1",attrs:{for:"enable_categories"}},[t._v(t._s(t.__("Enable Categories"))+" ("+t._s(t.form.enable_categories?t.__("Enabled"):t.__("Disabled"))+")")])]),t._v(" "),s("div",{staticClass:"cursor-pointer rounded-full relative shadow-sm"},[s("InputSwitch",{attrs:{id:"enable_categories"},model:{value:t.form.enable_categories,callback:function(e){t.$set(t.form,"enable_categories",e)},expression:"form.enable_categories"}})],1)]),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.enable_features}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("div",{staticClass:"flex justify-between items-center"},[s("div",{staticClass:"w-9/12"},[s("label",{staticClass:"text-sm text-gray-800 pb-1",attrs:{for:"enable_stats"}},[t._v(t._s(t.__("Enable Stats"))+" ("+t._s(t.form.enable_stats?t.__("Enabled"):t.__("Disabled"))+")")])]),t._v(" "),s("div",{staticClass:"cursor-pointer rounded-full relative shadow-sm"},[s("InputSwitch",{attrs:{id:"enable_stats"},model:{value:t.form.enable_stats,callback:function(e){t.$set(t.form,"enable_stats",e)},expression:"form.enable_stats"}})],1)]),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.enable_stats}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("div",{staticClass:"flex justify-between items-center"},[s("div",{staticClass:"w-9/12"},[s("label",{staticClass:"text-sm text-gray-800 pb-1",attrs:{for:"enable_testimonials"}},[t._v(t._s(t.__("Enable Testimonials"))+" ("+t._s(t.form.enable_testimonials?t.__("Enabled"):t.__("Disabled"))+")")])]),t._v(" "),s("div",{staticClass:"cursor-pointer rounded-full relative shadow-sm"},[s("InputSwitch",{attrs:{id:"enable_testimonials"},model:{value:t.form.enable_testimonials,callback:function(e){t.$set(t.form,"enable_testimonials",e)},expression:"form.enable_testimonials"}})],1)]),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.enable_testimonials}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("div",{staticClass:"flex justify-between items-center"},[s("div",{staticClass:"w-9/12"},[s("label",{staticClass:"text-sm text-gray-800 pb-1",attrs:{for:"enable_cta"}},[t._v(t._s(t.__("Enable CTA"))+" ("+t._s(t.form.enable_cta?t.__("Enabled"):t.__("Disabled"))+")")])]),t._v(" "),s("div",{staticClass:"cursor-pointer rounded-full relative shadow-sm"},[s("InputSwitch",{attrs:{id:"enable_cta"},model:{value:t.form.enable_cta,callback:function(e){t.$set(t.form,"enable_cta",e)},expression:"form.enable_cta"}})],1)]),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.enable_cta}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("div",{staticClass:"flex justify-between items-center"},[s("div",{staticClass:"w-9/12"},[s("label",{staticClass:"text-sm text-gray-800 pb-1",attrs:{for:"enable_footer"}},[t._v(t._s(t.__("Enable Footer"))+" ("+t._s(t.form.enable_footer?t.__("Enabled"):t.__("Disabled"))+")")])]),t._v(" "),s("div",{staticClass:"cursor-pointer rounded-full relative shadow-sm"},[s("InputSwitch",{attrs:{id:"enable_footer"},model:{value:t.form.enable_footer,callback:function(e){t.$set(t.form,"enable_footer",e)},expression:"form.enable_footer"}})],1)]),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.enable_footer}})],1)]},proxy:!0},{key:"actions",fn:function(){return[s("arc-action-message",{staticClass:"mr-3",attrs:{on:t.form.recentlySuccessful}},[t._v("\n            "+t._s(t.__("Saved"))+".\n        ")]),t._v(" "),s("arc-button",{class:{"opacity-25":t.form.processing},attrs:{disabled:t.form.processing}},[t._v("\n            "+t._s(t.__("Save"))+"\n        ")])]},proxy:!0}])})}),[],!1,null,null,null).exports},6124:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var r=s(67),a=s(1840),i=s(281);const n={components:{AdminLayout:r.Z,ArcSectionBorder:a.Z,LocalizationSettingsForm:i.default},props:{localizationSettings:Object,timezones:Array,languages:Array},metaInfo:function(){return{title:this.title}},computed:{title:function(){return"Localization Settings - "+this.$page.props.general.app_name+" Admin"}}};const o=(0,s(1900).Z)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("admin-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v("\n            "+t._s(t.__("Localization Settings"))+"\n        ")])]},proxy:!0}])},[t._v(" "),s("div",[s("div",{staticClass:"max-w-7xl mx-auto py-10 sm:px-6 lg:px-8"},[s("localization-settings-form",{attrs:{settings:t.localizationSettings,timezones:t.timezones,languages:t.languages}})],1)])])}),[],!1,null,null,null).exports},281:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>f});var r=s(67),a=s(4820),i=s(9881),n=s(341),o=s(6173),l=s(3265),c=s(3473),u=s(9684),d=s(7414),p=s(9938),m=s.n(p);const _={name:"LocalizationSettingsForm",components:{AdminLayout:r.Z,ArcActionMessage:a.Z,ArcButton:i.Z,ArcFormSection:n.Z,ArcInput:o.Z,ArcTextArea:l.Z,ArcInputError:c.Z,ArcLabel:u.Z,ArcSecondaryButton:d.Z,vSelect:m()},props:{settings:Object,timezones:Array,languages:Array},data:function(){return{form:this.$inertia.form({default_locale:this.settings.default_locale,default_direction:this.settings.default_direction,default_timezone:this.settings.default_timezone}),directions:[{id:"ltr",name:"Left to Right (LTR)"},{id:"rtl",name:"Right to Left (RTL)"}],imagePreview:null}},methods:{updateSettings:function(){this.form.post(route("update_localization_settings"),{errorBag:"updateLocalizationSettings",preserveScroll:!0})}}};const f=(0,s(1900).Z)(_,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("arc-form-section",{on:{submitted:t.updateSettings},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n        "+t._s(t.__("Localization Settings"))+"\n    ")]},proxy:!0},{key:"form",fn:function(){return[s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"locale",value:t.__("Default Locale")}}),t._v(" "),s("v-select",{attrs:{id:"locale",options:t.languages,reduce:function(t){return t.id},label:"name",placeholder:"Select a Locale",dir:t.$page.props.rtl?"rtl":"ltr"},model:{value:t.form.default_locale,callback:function(e){t.$set(t.form,"default_locale",e)},expression:"form.default_locale"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.default_locale}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[t.form.default_locale?s("p",{staticClass:"font-mono px-2 py-1 inline-block bg-blue-100 text-gray-600 rounded text-sm"},[s("strong",[t._v('"'+t._s(t.form.default_locale)+'.json"')]),t._v(" "+t._s(t.__("language_file_message"))+"\n            ")]):t._e(),s("p")]),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"direction",value:t.__("Default Direction")}}),t._v(" "),s("v-select",{attrs:{id:"direction",options:t.directions,reduce:function(t){return t.id},label:"name",placeholder:"Select a Direction",dir:t.$page.props.rtl?"rtl":"ltr"},model:{value:t.form.default_direction,callback:function(e){t.$set(t.form,"default_direction",e)},expression:"form.default_direction"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.default_direction}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"timezone",value:t.__("Default Timezone")}}),t._v(" "),s("v-select",{attrs:{id:"timezone",options:t.timezones,placeholder:"Select a Timezone",dir:t.$page.props.rtl?"rtl":"ltr"},model:{value:t.form.default_timezone,callback:function(e){t.$set(t.form,"default_timezone",e)},expression:"form.default_timezone"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.default_timezone}})],1)]},proxy:!0},{key:"actions",fn:function(){return[s("arc-action-message",{staticClass:"mr-3",attrs:{on:t.form.recentlySuccessful}},[t._v("\n            "+t._s(t.__("Saved"))+".\n        ")]),t._v(" "),s("arc-button",{class:{"opacity-25":t.form.processing},attrs:{disabled:t.form.processing}},[t._v("\n            "+t._s(t.__("Save"))+"\n        ")])]},proxy:!0}])})}),[],!1,null,null,null).exports},1381:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>u});var r=s(67),a=s(1840),i=s(5884),n=s(6843),o=s(5684),l=s(3173);const c={components:{AdminLayout:r.Z,ArcSectionBorder:a.Z,ClearCacheForm:i.default,ExpireSchedulesForm:n.default,UpdateAppForm:o.default,StorageLinksForm:l.default},props:{appVersion:String,homePageSettings:Object},metaInfo:function(){return{title:this.title}},computed:{title:function(){return"Maintenance Settings - "+this.$page.props.general.app_name+" Admin"}}};const u=(0,s(1900).Z)(c,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("admin-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v("\n            "+t._s(t.__("Maintenance Settings"))+" (v"+t._s(t.appVersion)+")\n        ")])]},proxy:!0}])},[t._v(" "),s("div",[s("div",{staticClass:"max-w-7xl mx-auto py-10 sm:px-6 lg:px-8"},[s("clear-cache-form"),t._v(" "),s("arc-section-border"),t._v(" "),s("expire-schedules-form"),t._v(" "),s("arc-section-border"),t._v(" "),s("storage-links-form"),t._v(" "),s("arc-section-border"),t._v(" "),s("update-app-form")],1)])])}),[],!1,null,null,null).exports},3187:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>p});var r=s(67),a=s(4820),i=s(9881),n=s(341),o=s(3473),l=s(9684),c=s(7414),u=s(8465);const d={components:{AdminLayout:r.Z,ArcActionMessage:a.Z,ArcButton:i.Z,ArcFormSection:n.Z,ArcInputError:o.Z,ArcLabel:l.Z,ArcSecondaryButton:c.Z,InputSwitch:u.default},props:{settings:Object},data:function(){return{form:this.$inertia.form({favicon_path:this.settings.favicon_path}),logoPreview:null}},methods:{updateSettings:function(){this.$refs.icon&&(this.form.favicon_path=this.$refs.icon.files[0]),this.form.post(route("update_favicon"),{errorBag:"updateFavicon",preserveScroll:!0})},selectNewLogo:function(){this.$refs.icon.click()},updateLogoPreview:function(){var t=this,e=new FileReader;e.onload=function(e){t.logoPreview=e.target.result},e.readAsDataURL(this.$refs.icon.files[0])}}};const p=(0,s(1900).Z)(d,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("arc-form-section",{on:{submitted:t.updateSettings},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n        "+t._s(t.__("Site Favicon"))+"\n    ")]},proxy:!0},{key:"form",fn:function(){return[s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("input",{ref:"icon",staticClass:"hidden",attrs:{id:"icon",type:"file",name:"icon"},on:{change:t.updateLogoPreview}}),t._v(" "),s("arc-label",{attrs:{for:"icon",value:t.__("Site Favicon")}}),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:!t.logoPreview,expression:"!logoPreview"}],staticClass:"my-4"},[s("img",{staticClass:"h-10 object-cover",attrs:{src:t.$page.props.assetUrl+t.settings.favicon_path,alt:t.settings.app_name}})]),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.logoPreview,expression:"logoPreview"}],staticClass:"my-4"},[s("span",{staticClass:"block h-10",style:"background-size: contain; background-repeat: no-repeat; background-position: center center; background-image: url('"+t.logoPreview+"');"})]),t._v(" "),s("arc-secondary-button",{staticClass:"mt-2 ltr:mr-2 rtl:ml-2",attrs:{type:"button"},nativeOn:{click:function(e){return e.preventDefault(),t.selectNewLogo(e)}}},[t._v("\n                "+t._s(t.__("Select A New Image"))+"\n            ")]),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.favicon_path}})],1)]},proxy:!0},{key:"actions",fn:function(){return[s("arc-action-message",{staticClass:"mr-3",attrs:{on:t.form.recentlySuccessful}},[t._v("\n            "+t._s(t.__("Saved"))+".\n        ")]),t._v(" "),s("arc-button",{class:{"opacity-25":t.form.processing},attrs:{disabled:t.form.processing}},[t._v("\n            "+t._s(t.__("Save"))+"\n        ")])]},proxy:!0}])})}),[],!1,null,null,null).exports},2657:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>p});var r=s(67),a=s(4820),i=s(9881),n=s(341),o=s(3473),l=s(9684),c=s(7414),u=s(8465);const d={components:{AdminLayout:r.Z,ArcActionMessage:a.Z,ArcButton:i.Z,ArcFormSection:n.Z,ArcInputError:o.Z,ArcLabel:l.Z,ArcSecondaryButton:c.Z,InputSwitch:u.default},props:{settings:Object},data:function(){return{form:this.$inertia.form({logo_path:this.settings.logo_path}),logoPreview:null}},methods:{updateSettings:function(){this.$refs.logo&&(this.form.logo_path=this.$refs.logo.files[0]),this.form.post(route("update_logo"),{errorBag:"updateLogo",preserveScroll:!0})},selectNewLogo:function(){this.$refs.logo.click()},updateLogoPreview:function(){var t=this,e=new FileReader;e.onload=function(e){t.logoPreview=e.target.result},e.readAsDataURL(this.$refs.logo.files[0])}}};const p=(0,s(1900).Z)(d,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("arc-form-section",{on:{submitted:t.updateSettings},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n        "+t._s(t.__("Site Logo"))+"\n    ")]},proxy:!0},{key:"form",fn:function(){return[s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("input",{ref:"logo",staticClass:"hidden",attrs:{id:"logo",type:"file",name:"logo"},on:{change:t.updateLogoPreview}}),t._v(" "),s("arc-label",{attrs:{for:"logo",value:t.__("Site Logo")}}),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:!t.logoPreview,expression:"!logoPreview"}],staticClass:"my-4"},[s("img",{staticClass:"h-10 object-cover",attrs:{src:t.$page.props.assetUrl+t.settings.logo_path,alt:t.settings.app_name}})]),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.logoPreview,expression:"logoPreview"}],staticClass:"my-4"},[s("span",{staticClass:"block h-10",style:"background-size: contain; background-repeat: no-repeat; background-position: center center; background-image: url('"+t.logoPreview+"');"})]),t._v(" "),s("arc-secondary-button",{staticClass:"mt-2 ltr:mr-2 rtl:ml-2",attrs:{type:"button"},nativeOn:{click:function(e){return e.preventDefault(),t.selectNewLogo(e)}}},[t._v("\n                "+t._s(t.__("Select A New Image"))+"\n            ")]),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.logo_path}})],1)]},proxy:!0},{key:"actions",fn:function(){return[s("arc-action-message",{staticClass:"mr-3",attrs:{on:t.form.recentlySuccessful}},[t._v("\n            "+t._s(t.__("Saved"))+".\n        ")]),t._v(" "),s("arc-button",{class:{"opacity-25":t.form.processing},attrs:{disabled:t.form.processing}},[t._v("\n            "+t._s(t.__("Save"))+"\n        ")])]},proxy:!0}])})}),[],!1,null,null,null).exports},7137:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>_});var r=s(67),a=s(4820),i=s(9881),n=s(341),o=s(6173),l=s(3265),c=s(3473),u=s(9684),d=s(7414),p=s(8465);const m={components:{AdminLayout:r.Z,ArcActionMessage:a.Z,ArcButton:i.Z,ArcFormSection:n.Z,ArcInput:o.Z,ArcTextArea:l.Z,ArcInputError:c.Z,ArcLabel:u.Z,ArcSecondaryButton:d.Z,InputSwitch:p.default},props:{settings:Object},data:function(){return{form:this.$inertia.form({app_name:this.settings.app_name,tag_line:this.settings.tag_line,seo_description:this.settings.seo_description,can_register:this.settings.can_register})}},methods:{updateSettings:function(){this.form.post(route("update_site_settings"),{errorBag:"updateSiteSettings",preserveScroll:!0})}}};const _=(0,s(1900).Z)(m,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("arc-form-section",{on:{submitted:t.updateSettings},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n        "+t._s(t.__("Site Settings"))+"\n    ")]},proxy:!0},{key:"form",fn:function(){return[s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"app_name",value:t.__("Site Name")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"app_name",type:"text",autocomplete:"app_name"},model:{value:t.form.app_name,callback:function(e){t.$set(t.form,"app_name",e)},expression:"form.app_name"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.app_name}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"tag_line",value:t.__("Tag Line")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"tag_line",type:"text",autocomplete:"tag_line"},model:{value:t.form.tag_line,callback:function(e){t.$set(t.form,"tag_line",e)},expression:"form.tag_line"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.tag_line}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"seo_description",value:t.__("SEO Description")}}),t._v(" "),s("arc-text-area",{staticClass:"mt-1 block w-full",attrs:{id:"seo_description"},model:{value:t.form.seo_description,callback:function(e){t.$set(t.form,"seo_description",e)},expression:"form.seo_description"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.seo_description}})],1),t._v(" "),s("div",{staticClass:"p-4 bg-blue-50 rounded col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"can_register",value:t.__("Enable User Registration")}}),t._v(" "),s("div",{staticClass:"flex justify-between items-center my-2"},[s("span",{staticClass:"text-sm text-blue-700"},[t._v(t._s(t.form.can_register?t.__("Enabled"):t.__("Disabled")))]),t._v(" "),s("InputSwitch",{attrs:{id:"can_register"},model:{value:t.form.can_register,callback:function(e){t.$set(t.form,"can_register",e)},expression:"form.can_register"}})],1),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.can_register}})],1)]},proxy:!0},{key:"actions",fn:function(){return[s("arc-action-message",{staticClass:"mr-3",attrs:{on:t.form.recentlySuccessful}},[t._v("\n            "+t._s(t.__("Saved"))+".\n        ")]),t._v(" "),s("arc-button",{class:{"opacity-25":t.form.processing},attrs:{disabled:t.form.processing}},[t._v("\n            "+t._s(t.__("Save"))+"\n        ")])]},proxy:!0}])})}),[],!1,null,null,null).exports},5729:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>p});var r=s(67),a=s(4820),i=s(9881),n=s(341),o=s(3473),l=s(9684),c=s(7414),u=s(8465);const d={components:{AdminLayout:r.Z,ArcActionMessage:a.Z,ArcButton:i.Z,ArcFormSection:n.Z,ArcInputError:o.Z,ArcLabel:l.Z,ArcSecondaryButton:c.Z,InputSwitch:u.default},props:{settings:Object},data:function(){return{form:this.$inertia.form({white_logo_path:this.settings.white_logo_path}),logoPreview:null}},methods:{updateSettings:function(){this.$refs.white_logo&&(this.form.white_logo_path=this.$refs.white_logo.files[0]),this.form.post(route("update_white_logo"),{errorBag:"updateWhiteLogo",preserveScroll:!0})},selectNewLogo:function(){this.$refs.white_logo.click()},updateLogoPreview:function(){var t=this,e=new FileReader;e.onload=function(e){t.logoPreview=e.target.result},e.readAsDataURL(this.$refs.white_logo.files[0])}}};const p=(0,s(1900).Z)(d,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("arc-form-section",{on:{submitted:t.updateSettings},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n        "+t._s(t.__("Site White Logo"))+"\n    ")]},proxy:!0},{key:"form",fn:function(){return[s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("input",{ref:"white_logo",staticClass:"hidden",attrs:{id:"white_logo",type:"file",name:"white_logo"},on:{change:t.updateLogoPreview}}),t._v(" "),s("arc-label",{attrs:{for:"logo",value:t.__("Site White Logo")}}),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:!t.logoPreview,expression:"!logoPreview"}],staticClass:"p-4 bg-gray-500 rounded my-4"},[s("img",{staticClass:"h-10 object-cover",attrs:{src:t.$page.props.assetUrl+t.settings.white_logo_path,alt:t.settings.app_name}})]),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.logoPreview,expression:"logoPreview"}],staticClass:"p-4 bg-gray-500 rounded my-4"},[s("span",{staticClass:"block h-10",style:"background-size: contain; background-repeat: no-repeat; background-position: center center; background-image: url('"+t.logoPreview+"');"})]),t._v(" "),s("arc-secondary-button",{staticClass:"mt-2 ltr:mr-2 rtl:ml-2",attrs:{type:"button"},nativeOn:{click:function(e){return e.preventDefault(),t.selectNewLogo(e)}}},[t._v("\n                "+t._s(t.__("Select A New Image"))+"\n            ")]),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.logo_path}})],1)]},proxy:!0},{key:"actions",fn:function(){return[s("arc-action-message",{staticClass:"mr-3",attrs:{on:t.form.recentlySuccessful}},[t._v("\n            "+t._s(t.__("Saved"))+".\n        ")]),t._v(" "),s("arc-button",{class:{"opacity-25":t.form.processing},attrs:{disabled:t.form.processing}},[t._v("\n            "+t._s(t.__("Save"))+"\n        ")])]},proxy:!0}])})}),[],!1,null,null,null).exports},8550:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>p});var r=s(67),a=s(4820),i=s(9881),n=s(341),o=s(6173),l=s(3265),c=s(3473),u=s(9684);const d={components:{AdminLayout:r.Z,ArcActionMessage:a.Z,ArcButton:i.Z,ArcFormSection:n.Z,ArcInput:o.Z,ArcTextArea:l.Z,ArcInputError:c.Z,ArcLabel:u.Z},props:{settings:Object},data:function(){return{stats:[1,2,3],form:this.$inertia.form({title:this.settings.title,subtitle:this.settings.subtitle,stat1_count:this.settings.stat1[0],stat1_name:this.settings.stat1[1],stat2_count:this.settings.stat2[0],stat2_name:this.settings.stat2[1],stat3_count:this.settings.stat3[0],stat3_name:this.settings.stat3[1]})}},methods:{updateSettings:function(){this.form.post(route("update_stat_settings"),{errorBag:"updateStatSettings",preserveScroll:!0})}}};const p=(0,s(1900).Z)(d,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("arc-form-section",{on:{submitted:t.updateSettings},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n        "+t._s(t.__("Statistics Settings"))+"\n    ")]},proxy:!0},{key:"form",fn:function(){return[s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"title",value:t.__("Title")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"title",type:"text",autocomplete:"title"},model:{value:t.form.title,callback:function(e){t.$set(t.form,"title",e)},expression:"form.title"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.title}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"subtitle",value:t.__("Subtitle")}}),t._v(" "),s("arc-text-area",{staticClass:"mt-1 block w-full",attrs:{id:"subtitle"},model:{value:t.form.subtitle,callback:function(e){t.$set(t.form,"subtitle",e)},expression:"form.subtitle"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.subtitle}})],1),t._v(" "),t._l(t.stats,(function(e){return s("div",{staticClass:"p-4 bg-gray-50 rounded-md col-span-6 sm:sol-span-4"},[s("div",{staticClass:"col-span-12 py-3 font-bold border-b border-gray-200"},[s("span",[t._v(t._s(t.__("Statistic"))+" "+t._s(e))])]),t._v(" "),s("div",{staticClass:"col-span-12 py-3"},[s("arc-label",{attrs:{for:"stat"+e+"_name",value:t.__("Name")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"stat"+e+"_name",type:"text"},model:{value:t.form["stat"+e+"_name"],callback:function(s){t.$set(t.form,"stat"+e+"_name",s)},expression:"form['stat'+stat+'_name']"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors["stat"+e+"_name"]}})],1),t._v(" "),s("div",{staticClass:"col-span-12 py-3"},[s("arc-label",{attrs:{for:"stat"+e+"_count",value:t.__("Count")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"stat"+e+"_count",type:"text"},model:{value:t.form["stat"+e+"_count"],callback:function(s){t.$set(t.form,"stat"+e+"_count",s)},expression:"form['stat'+stat+'_count']"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors["stat"+e+"_count"]}})],1)])}))]},proxy:!0},{key:"actions",fn:function(){return[s("arc-action-message",{staticClass:"mr-3",attrs:{on:t.form.recentlySuccessful}},[t._v("\n            "+t._s(t.__("Saved"))+".\n        ")]),t._v(" "),s("arc-button",{class:{"opacity-25":t.form.processing},attrs:{disabled:t.form.processing}},[t._v("\n            "+t._s(t.__("Save"))+"\n        ")])]},proxy:!0}])})}),[],!1,null,null,null).exports},3173:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>c});var r=s(4820),a=s(8e3),i=s(9881),n=s(2943),o=s(7414);const l={components:{ArcActionMessage:r.Z,ArcActionSection:a.Z,ArcButton:i.Z,ArcConfirmsPassword:n.Z,ArcSecondaryButton:o.Z},data:function(){return{loading:!1}},methods:{fixStorageLinks:function(){var t=this;this.loading=!0,this.$inertia.post(route("fix_storage_links"),{},{preserveScroll:!0,onSuccess:function(){return Promise.all([t.loading=!1])},onFinish:function(){return t.loading=!1}})}}};const c=(0,s(1900).Z)(l,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("arc-action-section",{scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n        "+t._s(t.__("Fix Storage Links"))+"\n    ")]},proxy:!0},{key:"content",fn:function(){return[s("div",{staticClass:"max-w-xl text-sm text-gray-600"},[t._v("\n            "+t._s(t.__("storage_links_message"))+"\n        ")]),t._v(" "),s("div",{staticClass:"flex items-center mt-5"},[s("arc-confirms-password",{on:{confirmed:t.fixStorageLinks}},[s("arc-button",{class:{"opacity-25":t.loading},attrs:{type:"button",disabled:t.loading}},[t._v("\n                    "+t._s(t.__("Fix Storage Links"))+"\n                ")])],1)],1)]},proxy:!0}])})}),[],!1,null,null,null).exports},6749:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>p});var r=s(67),a=s(4820),i=s(9881),n=s(341),o=s(6173),l=s(3265),c=s(3473),u=s(9684);const d={components:{AdminLayout:r.Z,ArcActionMessage:a.Z,ArcButton:i.Z,ArcFormSection:n.Z,ArcInput:o.Z,ArcTextArea:l.Z,ArcInputError:c.Z,ArcLabel:u.Z},props:{settings:Object},data:function(){return{testimonials:[1,2],form:this.$inertia.form({title:this.settings.title,subtitle:this.settings.subtitle,testimonial1_name:this.settings.testimonial1[0],testimonial1_designation:this.settings.testimonial1[1],testimonial1_message:this.settings.testimonial1[2],testimonial1_image:this.settings.testimonial1[3],testimonial2_name:this.settings.testimonial2[0],testimonial2_designation:this.settings.testimonial2[1],testimonial2_message:this.settings.testimonial2[2],testimonial2_image:this.settings.testimonial2[3]})}},methods:{updateSettings:function(){this.form.post(route("update_testimonial_settings"),{errorBag:"updateTestimonialSettings",preserveScroll:!0})}}};const p=(0,s(1900).Z)(d,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("arc-form-section",{on:{submitted:t.updateSettings},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n        "+t._s(t.__("Testimonial Settings"))+"\n    ")]},proxy:!0},{key:"form",fn:function(){return[s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"title",value:t.__("Title")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"title",type:"text",autocomplete:"title"},model:{value:t.form.title,callback:function(e){t.$set(t.form,"title",e)},expression:"form.title"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.title}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"subtitle",value:t.__("Subtitle")}}),t._v(" "),s("arc-text-area",{staticClass:"mt-1 block w-full",attrs:{id:"subtitle"},model:{value:t.form.subtitle,callback:function(e){t.$set(t.form,"subtitle",e)},expression:"form.subtitle"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.subtitle}})],1),t._v(" "),t._l(t.testimonials,(function(e){return s("div",{staticClass:"p-4 bg-gray-50 rounded-md col-span-6 sm:sol-span-4"},[s("div",{staticClass:"col-span-12 py-3 font-bold border-b border-gray-200"},[s("span",[t._v(t._s(t.__("Testimonial"))+" "+t._s(e))])]),t._v(" "),s("div",{staticClass:"col-span-12 py-3"},[s("arc-label",{attrs:{for:"testimonial"+e+"_name",value:t.__("Name")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"testimonial"+e+"_name",type:"text"},model:{value:t.form["testimonial"+e+"_name"],callback:function(s){t.$set(t.form,"testimonial"+e+"_name",s)},expression:"form['testimonial'+testimonial+'_name']"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors["testimonial"+e+"_name"]}})],1),t._v(" "),s("div",{staticClass:"col-span-12 py-3"},[s("arc-label",{attrs:{for:"testimonial"+e+"_designation",value:t.__("Designation")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"testimonial"+e+"_designation",type:"text"},model:{value:t.form["testimonial"+e+"_designation"],callback:function(s){t.$set(t.form,"testimonial"+e+"_designation",s)},expression:"form['testimonial'+testimonial+'_designation']"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors["testimonial"+e+"_designation"]}})],1),t._v(" "),s("div",{staticClass:"col-span-12 py-3"},[s("arc-label",{attrs:{for:"testimonial"+e+"_message",value:t.__("Message")}}),t._v(" "),s("arc-text-area",{staticClass:"mt-1 block w-full",attrs:{id:"testimonial"+e+"_message"},model:{value:t.form["testimonial"+e+"_message"],callback:function(s){t.$set(t.form,"testimonial"+e+"_message",s)},expression:"form['testimonial'+testimonial+'_message']"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors["testimonial"+e+"_message"]}})],1),t._v(" "),s("div",{staticClass:"col-span-12 py-3"},[s("arc-label",{attrs:{for:"testimonial"+e+"_image",value:t.__("Image")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"testimonial"+e+"_image",type:"text"},model:{value:t.form["testimonial"+e+"_image"],callback:function(s){t.$set(t.form,"testimonial"+e+"_image",s)},expression:"form['testimonial'+testimonial+'_image']"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors["testimonial"+e+"_image"]}})],1)])}))]},proxy:!0},{key:"actions",fn:function(){return[s("arc-action-message",{staticClass:"mr-3",attrs:{on:t.form.recentlySuccessful}},[t._v("\n            "+t._s(t.__("Saved"))+".\n        ")]),t._v(" "),s("arc-button",{class:{"opacity-25":t.form.processing},attrs:{disabled:t.form.processing}},[t._v("\n            "+t._s(t.__("Save"))+"\n        ")])]},proxy:!0}])})}),[],!1,null,null,null).exports},1817:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>l});var r=s(67),a=s(1840),i=s(1121),n=s(1470);const o={components:{AdminLayout:r.Z,ArcSectionBorder:a.Z,ThemeSettingsForm:i.default,FontSettingsForm:n.default},props:{themeSettings:Object},metaInfo:function(){return{title:this.title}},computed:{title:function(){return"Theme Settings - "+this.$page.props.general.app_name+" Admin"}}};const l=(0,s(1900).Z)(o,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("admin-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v("\n            "+t._s(t.__("Theme Settings"))+"\n        ")])]},proxy:!0}])},[t._v(" "),s("div",[s("div",{staticClass:"max-w-7xl mx-auto py-10 sm:px-6 lg:px-8"},[s("theme-settings-form",{attrs:{settings:t.themeSettings}}),t._v(" "),s("arc-section-border"),t._v(" "),s("font-settings-form",{attrs:{settings:t.themeSettings}})],1)])])}),[],!1,null,null,null).exports},1121:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>m});var r=s(67),a=s(4820),i=s(9881),n=s(341),o=s(6173),l=s(3473),c=s(9684),u=s(7414),d=s(8666);const p={components:{AdminLayout:r.Z,ArcActionMessage:a.Z,ArcButton:i.Z,ArcFormSection:n.Z,ArcInput:o.Z,ArcInputError:l.Z,ArcLabel:c.Z,ArcSecondaryButton:u.Z,ColorPicker:d.default},props:{settings:Object},data:function(){return{form:this.$inertia.form({primary_color:this.settings.primary_color,secondary_color:this.settings.secondary_color})}},methods:{updateSettings:function(){this.form.post(route("update_theme_settings"),{errorBag:"updateThemeSettings",preserveScroll:!0})}}};const m=(0,s(1900).Z)(p,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("arc-form-section",{on:{submitted:t.updateSettings},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n        "+t._s(t.__("Theme Settings"))+"\n    ")]},proxy:!0},{key:"form",fn:function(){return[s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("div",{staticClass:"grid grid-cols-1 gap-2 items-center justify-between w-full"},[s("div",{staticClass:"p-4 h-12 flex items-center justify-center rounded-sm text-sm font-semibold border border-gray-200",style:{"background-color":"#"+t.form.primary_color,color:"#"+t.form.secondary_color}},[t._v("\n                    Primary BG + Secondary Text\n                ")]),t._v(" "),s("div",{staticClass:"p-4 h-12 flex items-center justify-center rounded-sm text-sm font-semibold border border-gray-200",style:{"background-color":"#"+t.form.secondary_color,color:"#"+t.form.primary_color}},[t._v("\n                    Secondary BG + Primary Text\n                ")]),t._v(" "),s("div",{staticClass:"p-4 h-12 flex items-center justify-center rounded-sm text-sm text-white font-semibold border border-gray-200",style:{"background-color":"#"+t.form.primary_color}},[t._v("\n                    Primary BG + White Text\n                ")]),t._v(" "),s("div",{staticClass:"p-4 h-12 flex items-center justify-center rounded-sm bg-white text-sm font-semibold border border-gray-200",style:{color:"#"+t.form.primary_color}},[t._v("\n                    White BG + Primary Text\n                ")]),t._v(" "),s("div",{staticClass:"p-4 h-12 flex items-center justify-center rounded-sm bg-white text-sm font-semibold border border-gray-200",style:{color:"#"+t.form.secondary_color}},[t._v("\n                    White BG + Secondary Text\n                ")])])]),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"primary_color",value:t.__("Primary Color")+" ("+t.__("Dark")+")"}}),t._v(" "),s("div",{staticClass:"flex items-center"},[s("ColorPicker",{attrs:{format:"hex"},model:{value:t.form.primary_color,callback:function(e){t.$set(t.form,"primary_color",e)},expression:"form.primary_color"}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"primary_color",type:"text"},model:{value:t.form.primary_color,callback:function(e){t.$set(t.form,"primary_color",e)},expression:"form.primary_color"}})],1),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.primary_color}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"secondary_color",value:t.__("Secondary Color")+" ("+t.__("Light")+")"}}),t._v(" "),s("div",{staticClass:"flex items-center"},[s("ColorPicker",{attrs:{format:"hex"},model:{value:t.form.secondary_color,callback:function(e){t.$set(t.form,"secondary_color",e)},expression:"form.secondary_color"}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"secondary_color",type:"text"},model:{value:t.form.secondary_color,callback:function(e){t.$set(t.form,"secondary_color",e)},expression:"form.secondary_color"}})],1),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.secondary_color}})],1)]},proxy:!0},{key:"actions",fn:function(){return[s("arc-action-message",{staticClass:"mr-3",attrs:{on:t.form.recentlySuccessful}},[t._v("\n            "+t._s(t.__("Saved"))+".\n        ")]),t._v(" "),s("arc-button",{class:{"opacity-25":t.form.processing},attrs:{disabled:t.form.processing}},[t._v("\n            "+t._s(t.__("Save"))+"\n        ")])]},proxy:!0}])})}),[],!1,null,null,null).exports},3304:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>p});var r=s(67),a=s(4820),i=s(9881),n=s(341),o=s(6173),l=s(3265),c=s(3473),u=s(9684);const d={components:{AdminLayout:r.Z,ArcActionMessage:a.Z,ArcButton:i.Z,ArcFormSection:n.Z,ArcInput:o.Z,ArcTextArea:l.Z,ArcInputError:c.Z,ArcLabel:u.Z},props:{settings:Object},data:function(){return{form:this.$inertia.form({message:this.settings.message,button_text:this.settings.button_text,button_link:this.settings.button_link})}},methods:{updateSettings:function(){this.form.post(route("update_top_bar_settings"),{errorBag:"updateTopBarSettings",preserveScroll:!0})}}};const p=(0,s(1900).Z)(d,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("arc-form-section",{on:{submitted:t.updateSettings},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n        "+t._s(t.__("Top Bar Settings"))+"\n    ")]},proxy:!0},{key:"form",fn:function(){return[s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"message",value:t.__("Message")}}),t._v(" "),s("arc-text-area",{staticClass:"mt-1 block w-full",attrs:{id:"message"},model:{value:t.form.message,callback:function(e){t.$set(t.form,"message",e)},expression:"form.message"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.message}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"button_text",value:t.__("Button Text")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"button_text",type:"text",autocomplete:"button_text"},model:{value:t.form.button_text,callback:function(e){t.$set(t.form,"button_text",e)},expression:"form.button_text"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.button_text}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"button_link",value:t.__("Button Link")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"button_link",type:"text",autocomplete:"hero_cta_text"},model:{value:t.form.button_link,callback:function(e){t.$set(t.form,"button_link",e)},expression:"form.button_link"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.button_link}})],1)]},proxy:!0},{key:"actions",fn:function(){return[s("arc-action-message",{staticClass:"mr-3",attrs:{on:t.form.recentlySuccessful}},[t._v("\n            "+t._s(t.__("Saved"))+".\n        ")]),t._v(" "),s("arc-button",{class:{"opacity-25":t.form.processing},attrs:{disabled:t.form.processing}},[t._v("\n            "+t._s(t.__("Save"))+"\n        ")])]},proxy:!0}])})}),[],!1,null,null,null).exports},5684:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>c});var r=s(4820),a=s(8e3),i=s(9881),n=s(2943),o=s(7414);const l={components:{ArcActionMessage:r.Z,ArcActionSection:a.Z,ArcButton:i.Z,ArcConfirmsPassword:n.Z,ArcSecondaryButton:o.Z},data:function(){return{loading:!1}},methods:{clearCache:function(){var t=this;this.loading=!0,this.$inertia.post(route("fix_updates"),{},{preserveScroll:!0,onSuccess:function(){return Promise.all([t.loading=!1])},onFinish:function(){return t.loading=!1}})}}};const c=(0,s(1900).Z)(l,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("arc-action-section",{scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n        "+t._s(t.__("Fix App Updates"))+"\n    ")]},proxy:!0},{key:"content",fn:function(){return[s("div",{staticClass:"max-w-xl text-sm text-gray-600"},[t._v("\n            "+t._s(t.__("fix_app_updates_message"))+"\n        ")]),t._v(" "),s("div",{staticClass:"flex items-center mt-5"},[s("arc-confirms-password",{on:{confirmed:t.clearCache}},[s("arc-button",{class:{"opacity-25":t.loading},attrs:{type:"button",disabled:t.loading}},[t._v("\n                    "+t._s(t.__("Fix App Updates"))+"\n                ")])],1)],1)]},proxy:!0}])})}),[],!1,null,null,null).exports},6793:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>k});var r=s(67),a=s(8801),i=s(4974),n=s(8558),o=s(2263),l=s(9745),c=s(8465),u=s(8407),d=s(3976),p=s(2187),m=s(6916),_=s(4019);const f={name:"SkillForm",components:{InputText:i.default,Button:o.default,InputSwitch:c.default,Textarea:u.default,TextEditor:d.Z,FormInputShimmer:m.Z,FormSwitchShimmer:_.Z,Dropdown:p.default},props:{editFlag:Boolean,skillId:Number,sections:Array,errors:Object,title:""},data:function(){return{form:{name:"",section_id:"",short_description:"",is_active:!0},formValidated:!1,loading:!1}},methods:{submitForm:function(){this.editFlag?this.update():this.create()},create:function(){var t=this;this.formValidated=!0,this.$inertia.post(route("skills.store"),this.form,{onSuccess:function(){0===Object.keys(t.errors).length&&t.$emit("close",!0)}})},update:function(){var t=this;this.formValidated=!0,this.$inertia.patch(route("skills.update",{id:this.skillId}),this.form,{onSuccess:function(){0===Object.keys(t.errors).length&&t.$emit("close",!0)}})},fetch:function(){if(this.editFlag){var t=this;t.loading=!0,axios.get(route("skills.edit",{id:this.skillId})).then((function(e){var s=e.data;t.form.name=s.name,t.form.section_id=s.section_id,t.form.short_description=s.short_description,t.form.is_active=s.is_active})).catch((function(e){t.loading=!1})).then((function(){t.loading=!1}))}}},mounted:function(){!0===this.editFlag&&this.fetch()}};var v=s(1900);const h=(0,v.Z)(f,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"overflow-y-auto h-screen px-2"},[s("div",{staticClass:"bg-gray-100 py-4 lg:py-4 rounded"},[s("div",{staticClass:"container px-6 mx-auto flex ltr:flex-row rtl:flex-row-reverse"},[s("div",[s("h4",{staticClass:"text-base font-semibold leading-tight text-gray-800"},[t._v("\n                    "+t._s(t.title)+"\n                ")])])])]),t._v(" "),t.loading?s("div",{staticClass:"my-6 w-11/12 mx-auto xl:w-full xl:mx-0"},[s("form-input-shimmer"),t._v(" "),s("form-input-shimmer"),t._v(" "),s("form-input-shimmer"),t._v(" "),s("form-switch-shimmer")],1):s("form",{staticClass:"my-6 w-11/12 mx-auto xl:w-full xl:mx-0",on:{submit:function(e){return e.preventDefault(),t.submitForm(e)}}},[s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 font-semibold text-gray-800",attrs:{for:"name"}},[t._v(t._s(t.__("Skill"))+" "+t._s(t.__("Name")))]),t._v(" "),s("InputText",{class:[t.errors.name?"p-invalid":""],attrs:{type:"text",id:"name",placeholder:"Enter Skill Name","aria-describedby":"name-help"},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}}),t._v(" "),t.errors.name?s("small",{staticClass:"p-invalid",attrs:{id:"name-help"}},[t._v(t._s(t.errors.name))]):t._e()],1),t._v(" "),s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 font-semibold text-gray-800",attrs:{for:"section"}},[t._v(t._s(t.__("Section")))]),t._v(" "),s("Dropdown",{attrs:{id:"section",options:t.sections,filter:!0,optionLabel:"name",optionValue:"id",dataKey:"id",placeholder:"Select a Section"},model:{value:t.form.section_id,callback:function(e){t.$set(t.form,"section_id",e)},expression:"form.section_id"}}),t._v(" "),t.errors.section_id?s("small",{staticClass:"p-invalid",attrs:{id:"section-help"}},[t._v(t._s(t.errors.section_id))]):t._e()],1),t._v(" "),s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 font-semibold text-gray-800",attrs:{for:"short_description"}},[t._v(t._s(t.__("Short Description")))]),t._v(" "),s("Textarea",{class:[t.errors.short_description?"p-invalid":""],attrs:{id:"short_description"},model:{value:t.form.short_description,callback:function(e){t.$set(t.form,"short_description",e)},expression:"form.short_description"}}),t._v(" "),t.errors.short_description?s("small",{staticClass:"p-invalid",attrs:{id:"short_description-help"}},[t._v(t._s(t.errors.short_description))]):t._e()],1),t._v(" "),s("div",{staticClass:"w-full"},[s("div",{staticClass:"flex justify-between items-center mb-8"},[s("div",{staticClass:"w-9/12"},[s("label",{staticClass:"font-semibold text-gray-800 pb-1",attrs:{for:"is_active"},domProps:{innerHTML:t._s(t.form.is_active?t.__("Active"):t.__("In-active"))}}),t._v(" "),s("p",{staticClass:"text-sm text-gray-500"},[t._v(t._s(t.__("Active"))+" ("+t._s(t.__("Shown Everywhere"))+"). "+t._s(t.__("In-active"))+" ("+t._s(t.__("Hidden Everywhere"))+").")])]),t._v(" "),s("div",{staticClass:"cursor-pointer rounded-full relative shadow-sm"},[s("InputSwitch",{attrs:{id:"is_active"},model:{value:t.form.is_active,callback:function(e){t.$set(t.form,"is_active",e)},expression:"form.is_active"}})],1)])]),t._v(" "),s("div",{staticClass:"w-full flex"},[s("Button",{attrs:{type:"submit",label:t.editFlag?t.__("Update"):t.__("Create")}})],1)])])}),[],!1,null,null,null).exports;var g=s(728),b=s(7531),x=s(3194);function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var s=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==s)return;var r,a,i=[],n=!0,o=!1;try{for(s=s.call(t);!(n=(r=s.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return w(t,e);var s=Object.prototype.toString.call(t).slice(8,-1);"Object"===s&&t.constructor&&(s=t.constructor.name);if("Map"===s||"Set"===s)return Array.from(t);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return w(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,r=new Array(e);s<e;s++)r[s]=t[s];return r}const C={components:{SkillForm:h,AdminLayout:r.Z,Column:a.default,InputText:i.default,Toolbar:n.default,Button:o.default,Sidebar:l.default,Chip:g.default,Tag:b.default,NoDataTable:x.Z},props:{skills:Object,sections:Array,errors:Object},data:function(){return{createForm:!1,editForm:!1,currentId:null,columns:[{label:this.__("Code"),field:"code",filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Code"),filterValue:null,trigger:"enter"},sortable:!1,width:"11rem"},{label:this.__("Name"),field:"name",filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Name"),filterValue:null,trigger:"enter"},sortable:!1},{label:this.__("Section"),field:"section",sortable:!1},{label:this.__("Status"),field:"status",sortable:!1,filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Status"),filterValue:null,filterDropdownItems:[{value:1,text:this.__("Active")},{value:0,text:this.__("In-active")}]}},{label:this.__("Actions"),field:"actions",sortable:!1}],options:{enabled:!0,mode:"pages",perPage:this.skills.meta.pagination.per_page,setCurrentPage:this.skills.meta.pagination.current_page,perPageDropdown:[10,20,50,100],dropdownAllowAll:!1},serverParams:{columnFilters:{},sort:{field:"",type:""},page:1,perPage:10},loading:!1}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return"Skills - "+this.$page.props.general.app_name+" Admin"}},methods:{updateParams:function(t){this.serverParams=Object.assign({},this.serverParams,t)},onPageChange:function(t){this.updateParams({page:t.currentPage}),this.loadItems()},onPerPageChange:function(t){this.updateParams({perPage:t.currentPerPage}),this.loadItems()},onSortChange:function(t){this.updateParams({sort:[{type:t.sortType,field:this.columns[t.columnIndex].field}]}),this.loadItems()},onColumnFilter:function(t){this.updateParams(t),this.loadItems()},getQueryParams:function(){for(var t={page:this.serverParams.page,perPage:this.serverParams.perPage},e=0,s=Object.entries(this.serverParams.columnFilters);e<s.length;e++){var r=y(s[e],2),a=r[0],i=r[1];i&&(t[a]=i)}return t},loadItems:function(){this.$inertia.get(route(route().current()),this.getQueryParams(),{replace:!1,preserveState:!0,preserveScroll:!0})},deleteSkill:function(t){var e=this;this.$confirm.require({header:this.__("Confirm Delete"),message:this.__("Do you want to delete this record?"),icon:"pi pi-info-circle",acceptClass:"p-button-danger",rejectLabel:this.__("Cancel"),acceptLabel:this.__("Delete"),accept:function(){e.$inertia.delete(route("skills.destroy",{id:t}),{},{onSuccess:function(){e.$toast.add({severity:"info",summary:e.__("Confirmed"),detail:e.__("Record deleted"),life:3e3})}})},reject:function(){}})},handleCopyStatus:function(t){t&&this.$toast.add({severity:"success",summary:this.__("Copied"),detail:this.__("Copied Successfully!"),life:2e3})}}};const k=(0,v.Z)(C,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("admin-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v(t._s(t.__("Skills")))])]},proxy:!0},{key:"actions",fn:function(){return[s("button",{staticClass:"qt-btn qt-btn-success",on:{click:function(e){t.createForm=!0}}},[t._v("\n            "+t._s(t.__("New"))+" "+t._s(t.__("Skill"))+"\n        ")])]},proxy:!0}])},[t._v(" "),t._v(" "),s("div",{staticClass:"container mx-auto py-8 px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"card"},[s("div",{staticClass:"card-body"},[s("vue-good-table",{attrs:{mode:"remote","pagination-options":t.options,columns:t.columns,totalRows:t.skills.meta.pagination.total,rows:t.skills.data,rtl:t.$page.props.rtl},on:{"on-page-change":t.onPageChange,"on-column-filter":t.onColumnFilter,"on-per-page-change":t.onPerPageChange},scopedSlots:t._u([{key:"table-row",fn:function(e){return["code"===e.column.field?s("div",[s("Tag",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.row.code,expression:"props.row.code",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.handleCopyStatus,expression:"handleCopyStatus",arg:"success"}],staticClass:"w-full p-mr-2 text-sm cursor-pointer",attrs:{value:e.row.code,icon:"pi pi-copy"}})],1):"status"===e.column.field?s("div",[s("span",{class:[e.row.status?"badge-success":"badge-danger","badge"]},[t._v(t._s(e.row.status?t.__("Active"):t.__("In-active")))])]):"actions"===e.column.field?s("div",[s("Button",{staticClass:"p-button-rounded p-button-secondary p-button-text p-mr-2",attrs:{icon:"pi pi-pencil"},on:{click:function(s){t.editForm=!0,t.currentId=e.row.id}}}),t._v(" "),s("Button",{staticClass:"p-button-rounded p-button-danger p-button-text",attrs:{icon:"pi pi-trash"},on:{click:function(s){return t.deleteSkill(e.row.id)}}})],1):s("span",[t._v("\n                          "+t._s(e.formattedRow[e.column.field])+"\n                        ")])]}}])},[t._v(" "),s("div",{attrs:{slot:"emptystate"},slot:"emptystate"},[s("no-data-table",[s("template",{slot:"action"},[s("button",{staticClass:"qt-btn-sm qt-btn-primary",attrs:{type:"button"},on:{click:function(e){t.createForm=!0}}},[t._v("\n                                    "+t._s(t.__("New"))+" "+t._s(t.__("Skill"))+"\n                                ")])])],2)],1)]),t._v(" "),s("Sidebar",{staticClass:"p-sidebar-md",attrs:{position:"right",visible:t.createForm},on:{"update:visible":function(e){t.createForm=e},hide:t.loadItems}},[s("SkillForm",{attrs:{sections:t.sections,errors:t.errors,title:t.__("New")+" "+t.__("Skill")},on:{close:function(e){t.createForm=!1}}})],1),t._v(" "),s("Sidebar",{staticClass:"p-sidebar-md",attrs:{position:"right",visible:t.editForm},on:{"update:visible":function(e){t.editForm=e},hide:t.loadItems}},[s("SkillForm",{attrs:{sections:t.sections,"edit-flag":t.editForm,"skill-id":t.currentId,errors:t.errors,title:t.__("Edit")+" "+t.__("Skill")},on:{"update:editFlag":function(e){t.editForm=e},"update:edit-flag":function(e){t.editForm=e},close:function(e){t.editForm=!1}}})],1)],1)])])])}),[],!1,null,null,null).exports},4877:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>$});var r=s(67),a=s(8801),i=s(4974),n=s(8558),o=s(2263),l=s(9745),c=s(8465),u=s(8407),d=s(8067),p=s.n(d),m=s(3976),_=s(2187),f=s(5807),v=s(6916),h=s(4019);const g={name:"SubCategoryForm",components:{ckeditor:p().component,InputText:i.default,Button:o.default,InputSwitch:c.default,Textarea:u.default,TextEditor:m.Z,Dropdown:_.default,InputNumber:f.default,FormInputShimmer:v.Z,FormSwitchShimmer:h.Z},props:{editFlag:Boolean,subCategoryId:Number,categories:Array,types:Array,errors:Object,title:""},data:function(){return{editorUrl:window.CKEditorURL,editorConfig:{contentsLangDirection:this.$page.props.rtl?"rtl":"ltr"},form:{name:"",description:"",category_id:"",sub_category_type_id:"",short_description:"",is_active:!0},formValidated:!1,loading:!1}},methods:{submitForm:function(){this.editFlag?this.update():this.create()},create:function(){var t=this;this.formValidated=!0,this.$inertia.post(route("sub-categories.store"),this.form,{onSuccess:function(){0===Object.keys(t.errors).length&&t.$emit("close",!0)}})},update:function(){var t=this;this.formValidated=!0,this.$inertia.patch(route("sub-categories.update",{id:this.subCategoryId}),this.form,{onSuccess:function(){0===Object.keys(t.errors).length&&t.$emit("close",!0)}})},fetch:function(){if(this.editFlag){var t=this;t.loading=!0,axios.get(route("sub-categories.edit",{id:this.subCategoryId})).then((function(e){var s=e.data;t.form.name=s.name,t.form.category_id=s.category_id,t.form.sub_category_type_id=s.sub_category_type_id,t.form.short_description=s.short_description,t.form.description=s.description,t.form.is_private=s.is_private,t.form.is_active=s.is_active})).catch((function(e){t.loading=!1})).then((function(){t.loading=!1}))}}},mounted:function(){!0===this.editFlag&&this.fetch()}};var b=s(1900);const x=(0,b.Z)(g,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"overflow-y-auto h-screen px-2"},[s("div",{staticClass:"bg-gray-100 py-4 lg:py-4 rounded"},[s("div",{staticClass:"container px-6 mx-auto flex ltr:flex-row rtl:flex-row-reverse"},[s("div",[s("h4",{staticClass:"text-base font-semibold leading-tight text-gray-800"},[t._v("\n                    "+t._s(t.title)+"\n                ")])])])]),t._v(" "),t.loading?s("div",{staticClass:"my-6 w-11/12 mx-auto xl:w-full xl:mx-0"},[s("form-input-shimmer"),t._v(" "),s("form-input-shimmer"),t._v(" "),s("form-input-shimmer"),t._v(" "),s("form-switch-shimmer")],1):s("form",{staticClass:"my-6 w-11/12 mx-auto xl:w-full xl:mx-0",on:{submit:function(e){return e.preventDefault(),t.submitForm(e)}}},[s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 font-semibold text-gray-800",attrs:{for:"name"}},[t._v(t._s(t.__("Sub Category"))+" "+t._s(t.__("Name")))]),t._v(" "),s("InputText",{class:[t.errors.name?"p-invalid":""],attrs:{type:"text",id:"name",placeholder:"Enter Category Name","aria-describedby":"name-help"},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}}),t._v(" "),t.errors.name?s("small",{staticClass:"p-invalid",attrs:{id:"name-help"}},[t._v(t._s(t.errors.name))]):t._e()],1),t._v(" "),s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 font-semibold text-gray-800",attrs:{for:"category"}},[t._v(t._s(t.__("Category")))]),t._v(" "),s("Dropdown",{attrs:{id:"category",options:t.categories,filter:!0,optionLabel:"name",optionValue:"id",dataKey:"id",placeholder:"Select a Category"},model:{value:t.form.category_id,callback:function(e){t.$set(t.form,"category_id",e)},expression:"form.category_id"}}),t._v(" "),t.errors.category_id?s("small",{staticClass:"p-invalid",attrs:{id:"category-help"}},[t._v(t._s(t.errors.category_id))]):t._e()],1),t._v(" "),s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 font-semibold text-gray-800",attrs:{for:"type"}},[t._v(t._s(t.__("Type")))]),t._v(" "),s("Dropdown",{attrs:{id:"type",options:t.types,filter:!0,optionLabel:"name",optionValue:"id",dataKey:"id",placeholder:"Select a Type"},model:{value:t.form.sub_category_type_id,callback:function(e){t.$set(t.form,"sub_category_type_id",e)},expression:"form.sub_category_type_id"}}),t._v(" "),t.errors.sub_category_type_id?s("small",{staticClass:"p-invalid",attrs:{id:"type-help"}},[t._v(t._s(t.errors.sub_category_type_id))]):t._e()],1),t._v(" "),s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 font-semibold text-gray-800",attrs:{for:"short_description"}},[t._v(t._s(t.__("Short Description")))]),t._v(" "),s("Textarea",{class:[t.errors.short_description?"p-invalid":""],attrs:{id:"short_description"},model:{value:t.form.short_description,callback:function(e){t.$set(t.form,"short_description",e)},expression:"form.short_description"}}),t._v(" "),t.errors.short_description?s("small",{staticClass:"p-invalid",attrs:{id:"short_description-help"}},[t._v(t._s(t.errors.short_description))]):t._e()],1),t._v(" "),s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 font-semibold text-gray-800",attrs:{for:"description"}},[t._v(t._s(t.__("Description")))]),t._v(" "),s("ckeditor",{class:[t.$page.props.rtl?"cke_rtl":"cke_ltr",t.errors.description?"p-invalid":""],attrs:{id:"description",config:t.editorConfig,"editor-url":t.editorUrl},model:{value:t.form.description,callback:function(e){t.$set(t.form,"description",e)},expression:"form.description"}}),t._v(" "),t.errors.description?s("small",{staticClass:"p-invalid",attrs:{id:"description-help"}},[t._v(t._s(t.errors.description))]):t._e()],1),t._v(" "),s("div",{staticClass:"w-full"},[s("div",{staticClass:"flex justify-between items-center mb-8"},[s("div",{staticClass:"w-9/12"},[s("label",{staticClass:"font-semibold text-gray-800 pb-1",attrs:{for:"is_active"},domProps:{innerHTML:t._s(t.form.is_active?t.__("Active"):t.__("In-active"))}}),t._v(" "),s("p",{staticClass:"text-gray-500"},[t._v(t._s(t.__("Active"))+" ("+t._s(t.__("Shown Everywhere"))+"). "+t._s(t.__("In-active"))+" ("+t._s(t.__("Hidden Everywhere"))+").")])]),t._v(" "),s("div",{staticClass:"cursor-pointer rounded-full relative shadow-sm"},[s("InputSwitch",{attrs:{id:"is_active"},model:{value:t.form.is_active,callback:function(e){t.$set(t.form,"is_active",e)},expression:"form.is_active"}})],1)])]),t._v(" "),s("div",{staticClass:"w-full flex"},[s("Button",{attrs:{type:"submit",label:t.editFlag?t.__("Update"):t.__("Create")}})],1)])])}),[],!1,null,null,null).exports;var y=s(5693);const w={name:"SectionMapForm",components:{Button:o.default,Checkbox:y.default,FormInputShimmer:v.Z,FormSwitchShimmer:h.Z},props:{editFlag:Boolean,subCategoryId:Number,errors:Object,title:""},data:function(){return{sections:[],selected_sections:[],formValidated:!1,loading:!1}},methods:{submitForm:function(){this.update()},update:function(){var t=this;this.formValidated=!0,this.selected_sections.length>0&&this.$inertia.post(route("update_sub_category_sections",{id:this.subCategoryId}),{selected_sections:this.selected_sections},{onSuccess:function(){0===Object.keys(t.errors).length&&t.$emit("close",!0)}})},fetchSections:function(){var t=this;t.loading=!0,axios.get(route("fetch_sub_category_sections",{id:this.subCategoryId})).then((function(e){var s=e.data;t.sections=s.sections,t.selected_sections=s.selected_sections})).catch((function(e){t.loading=!1})).then((function(){t.loading=!1}))}},mounted:function(){this.fetchSections()}};const C=(0,b.Z)(w,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"overflow-y-auto h-screen px-2"},[s("div",{staticClass:"bg-gray-100 py-4 lg:py-4 rounded"},[s("div",{staticClass:"container px-6 mx-auto flex ltr:flex-row rtl:flex-row-reverse"},[s("div",[s("h4",{staticClass:"text-base font-semibold leading-tight text-gray-800"},[t._v("\n                    "+t._s(t.title)+"\n                ")])])])]),t._v(" "),t.loading?s("div",{staticClass:"my-6 w-11/12 mx-auto xl:w-full xl:mx-0"},[s("form-input-shimmer"),t._v(" "),s("form-input-shimmer"),t._v(" "),s("form-input-shimmer"),t._v(" "),s("form-switch-shimmer")],1):s("form",{staticClass:"my-6 w-11/12 mx-auto xl:w-full xl:mx-0",on:{submit:function(e){return e.preventDefault(),t.submitForm(e)}}},[s("h3",{staticClass:"mb-4 font-semibold"},[t._v(t._s(t.__("Select Sections")))]),t._v(" "),t._l(t.sections,(function(e){return s("div",{staticClass:"p-field-checkbox mb-2 py-2 cursor-pointer"},[s("Checkbox",{attrs:{id:"section_"+e.id,name:"section",value:e.id},model:{value:t.selected_sections,callback:function(e){t.selected_sections=e},expression:"selected_sections"}}),t._v(" "),s("label",{staticClass:"ltr:ml-2 rtl:mr-2",attrs:{for:"section_"+e.id}},[t._v(t._s(e.name))])],1)})),t._v(" "),t.formValidated&&0===t.selected_sections.length?s("small",{staticClass:"p-invalid",attrs:{id:"sections-error"}},[t._v(t._s(t.__("Please choose at least one section"))+".")]):t._e(),t._v(" "),s("div",{staticClass:"w-full flex mt-4"},[s("Button",{attrs:{type:"submit",label:t.__("Update")}})],1)],2)])}),[],!1,null,null,null).exports;var k=s(7531),S=s(3194);function A(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var s=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==s)return;var r,a,i=[],n=!0,o=!1;try{for(s=s.call(t);!(n=(r=s.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return q(t,e);var s=Object.prototype.toString.call(t).slice(8,-1);"Object"===s&&t.constructor&&(s=t.constructor.name);if("Map"===s||"Set"===s)return Array.from(t);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return q(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,r=new Array(e);s<e;s++)r[s]=t[s];return r}const P={components:{SubCategoryForm:x,SectionMapForm:C,AdminLayout:r.Z,Column:a.default,InputText:i.default,Toolbar:n.default,Button:o.default,Sidebar:l.default,Tag:k.default,NoDataTable:S.Z},props:{subCategories:Object,categories:Array,types:Array,errors:Object},data:function(){return{createForm:!1,editForm:!1,mapForm:!1,currentId:null,columns:[{label:this.__("Code"),field:"code",filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Code"),filterValue:null,trigger:"enter"},sortable:!1,width:"11rem"},{label:this.__("Name"),field:"name",filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Name"),filterValue:null,trigger:"enter"},sortable:!1},{label:this.__("Category"),field:"category",sortable:!1},{label:this.__("Type"),field:"type",sortable:!1},{label:this.__("Status"),field:"status",sortable:!1,filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Status"),filterValue:null,filterDropdownItems:[{value:1,text:this.__("Active")},{value:0,text:this.__("In-active")}]}},{label:this.__("Actions"),field:"actions",sortable:!1}],pagination:{enabled:!0,mode:"pages",perPage:this.subCategories.meta.pagination.per_page,setCurrentPage:this.subCategories.meta.pagination.current_page,perPageDropdown:[10,20,50,100],dropdownAllowAll:!1},serverParams:{columnFilters:{},sort:{field:"",type:""},page:1,perPage:10},loading:!1}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return"Sub Categories - "+this.$page.props.general.app_name+" Admin"}},methods:{updateParams:function(t){this.serverParams=Object.assign({},this.serverParams,t)},onPageChange:function(t){this.updateParams({page:t.currentPage}),this.loadItems()},onPerPageChange:function(t){this.updateParams({perPage:t.currentPerPage}),this.loadItems()},onSortChange:function(t){this.updateParams({sort:[{type:t.sortType,field:this.columns[t.columnIndex].field}]}),this.loadItems()},onColumnFilter:function(t){this.updateParams(t),this.loadItems()},getQueryParams:function(){for(var t={page:this.serverParams.page,perPage:this.serverParams.perPage},e=0,s=Object.entries(this.serverParams.columnFilters);e<s.length;e++){var r=A(s[e],2),a=r[0],i=r[1];i&&(t[a]=i)}return t},loadItems:function(){this.$inertia.get(route(route().current()),this.getQueryParams(),{replace:!1,preserveState:!0,preserveScroll:!0})},deleteSubCategory:function(t){var e=this;this.$confirm.require({header:this.__("Confirm Delete"),message:this.__("Do you want to delete this record?"),icon:"pi pi-info-circle",acceptClass:"p-button-danger",rejectLabel:this.__("Cancel"),acceptLabel:this.__("Delete"),accept:function(){e.$inertia.delete(route("sub-categories.destroy",{id:t}),{},{onSuccess:function(){e.$toast.add({severity:"info",summary:e.__("Confirmed"),detail:e.__("Record deleted"),life:3e3})}})},reject:function(){}})},handleCopyStatus:function(t){t&&this.$toast.add({severity:"success",summary:this.__("Copied"),detail:this.__("Copied Successfully!"),life:3e3})}}};const $=(0,b.Z)(P,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("admin-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v(t._s(t.__("Sub Categories")))])]},proxy:!0},{key:"actions",fn:function(){return[s("button",{staticClass:"qt-btn qt-btn-success",on:{click:function(e){t.createForm=!0}}},[t._v("\n            "+t._s(t.__("New"))+" "+t._s(t.__("Sub Category"))+"\n        ")])]},proxy:!0}])},[t._v(" "),t._v(" "),s("div",{staticClass:"container mx-auto py-10 px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"card"},[s("div",{staticClass:"card-body"},[s("vue-good-table",{attrs:{mode:"remote","pagination-options":t.pagination,columns:t.columns,totalRows:t.subCategories.meta.pagination.total,rows:t.subCategories.data,rtl:t.$page.props.rtl},on:{"on-page-change":t.onPageChange,"on-column-filter":t.onColumnFilter,"on-per-page-change":t.onPerPageChange},scopedSlots:t._u([{key:"table-row",fn:function(e){return["code"===e.column.field?s("div",[s("Tag",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.row.code,expression:"props.row.code",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.handleCopyStatus,expression:"handleCopyStatus",arg:"success"}],staticClass:"w-full p-mr-2 text-sm cursor-pointer",attrs:{value:e.row.code,icon:"pi pi-copy"}})],1):"status"===e.column.field?s("div",[s("span",{class:[e.row.status?"badge-success":"badge-danger","badge"]},[t._v(t._s(e.row.status?t.__("Active"):t.__("In-active")))])]):"actions"===e.column.field?s("div",[s("Button",{staticClass:"p-button-text",on:{click:function(s){t.mapForm=!0,t.currentId=e.row.id}}},[t._v("\n                                "+t._s(t.__("Map Sections"))+"\n                            ")]),t._v(" "),s("Button",{staticClass:"p-button-rounded p-button-secondary p-button-text p-mr-2",attrs:{icon:"pi pi-pencil"},on:{click:function(s){t.editForm=!0,t.currentId=e.row.id}}}),t._v(" "),s("Button",{staticClass:"p-button-rounded p-button-danger p-button-text",attrs:{icon:"pi pi-trash"},on:{click:function(s){return t.deleteSubCategory(e.row.id)}}})],1):s("div",[t._v("\n                            "+t._s(e.formattedRow[e.column.field])+"\n                        ")])]}}])},[t._v(" "),s("div",{attrs:{slot:"emptystate"},slot:"emptystate"},[s("no-data-table",[s("template",{slot:"action"},[s("button",{staticClass:"qt-btn-sm qt-btn-primary",attrs:{type:"button"},on:{click:function(e){t.createForm=!0}}},[t._v("\n                                    "+t._s(t.__("New"))+" "+t._s(t.__("Sub Category"))+"\n                                ")])])],2)],1)]),t._v(" "),s("Sidebar",{staticClass:"p-sidebar-md",attrs:{position:"right",visible:t.createForm},on:{"update:visible":function(e){t.createForm=e},hide:t.loadItems}},[s("SubCategoryForm",{attrs:{categories:t.categories,types:t.types,errors:t.errors,title:t.__("New")+" "+t.__("Sub Category")},on:{close:function(e){t.createForm=!1}}})],1),t._v(" "),s("Sidebar",{staticClass:"p-sidebar-md",attrs:{position:"right",visible:t.editForm},on:{"update:visible":function(e){t.editForm=e},hide:t.loadItems}},[s("SubCategoryForm",{attrs:{categories:t.categories,types:t.types,"edit-flag":t.editForm,"sub-category-id":t.currentId,errors:t.errors,title:t.__("Edit")+" "+t.__("Sub Category")},on:{"update:editFlag":function(e){t.editForm=e},"update:edit-flag":function(e){t.editForm=e},close:function(e){t.editForm=!1}}})],1),t._v(" "),s("Sidebar",{staticClass:"p-sidebar-md",attrs:{position:"right",visible:t.mapForm},on:{"update:visible":function(e){t.mapForm=e},hide:t.loadItems}},[s("SectionMapForm",{attrs:{"sub-category-id":t.currentId,errors:t.errors,title:t.__("Map Sections")},on:{close:function(e){t.mapForm=!1}}})],1)],1)])])])}),[],!1,null,null,null).exports},5909:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>k});var r=s(67),a=s(8801),i=s(4974),n=s(8558),o=s(2263),l=s(9745),c=s(8465),u=s(8407),d=s(3976),p=s(2187),m=s(6916),_=s(4019);const f={name:"TopicForm",components:{InputText:i.default,Button:o.default,InputSwitch:c.default,Textarea:u.default,TextEditor:d.Z,FormInputShimmer:m.Z,FormSwitchShimmer:_.Z,Dropdown:p.default},props:{editFlag:Boolean,topicId:Number,skills:Array,errors:Object,title:""},data:function(){return{form:{name:"",skill_id:"",short_description:"",is_active:!0},formValidated:!1,loading:!1}},methods:{submitForm:function(){this.editFlag?this.update():this.create()},create:function(){var t=this;this.formValidated=!0,this.$inertia.post(route("topics.store"),this.form,{onSuccess:function(){0===Object.keys(t.errors).length&&t.$emit("close",!0)}})},update:function(){var t=this;this.formValidated=!0,this.$inertia.patch(route("topics.update",{id:this.topicId}),this.form,{onSuccess:function(){0===Object.keys(t.errors).length&&t.$emit("close",!0)}})},fetch:function(){if(this.editFlag){var t=this;t.loading=!0,axios.get(route("topics.edit",{id:this.topicId})).then((function(e){var s=e.data;t.form.name=s.name,t.form.skill_id=s.skill_id,t.form.short_description=s.short_description,t.form.is_active=s.is_active})).catch((function(e){t.loading=!1})).then((function(){t.loading=!1}))}}},mounted:function(){!0===this.editFlag&&this.fetch()}};var v=s(1900);const h=(0,v.Z)(f,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"overflow-y-auto h-screen px-2"},[s("div",{staticClass:"bg-gray-100 py-4 lg:py-4 rounded"},[s("div",{staticClass:"container px-6 mx-auto flex ltr:flex-row rtl:flex-row-reverse"},[s("div",[s("h4",{staticClass:"text-base font-semibold leading-tight text-gray-800"},[t._v("\n                    "+t._s(t.title)+"\n                ")])])])]),t._v(" "),t.loading?s("div",{staticClass:"my-6 w-11/12 mx-auto xl:w-full xl:mx-0"},[s("form-input-shimmer"),t._v(" "),s("form-input-shimmer"),t._v(" "),s("form-input-shimmer"),t._v(" "),s("form-switch-shimmer")],1):s("form",{staticClass:"my-6 w-11/12 mx-auto xl:w-full xl:mx-0",on:{submit:function(e){return e.preventDefault(),t.submitForm(e)}}},[s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 font-semibold text-gray-800",attrs:{for:"name"}},[t._v(t._s(t.__("Topic"))+" "+t._s(t.__("Name")))]),t._v(" "),s("InputText",{class:[t.errors.name?"p-invalid":""],attrs:{type:"text",id:"name",placeholder:t.__("Topic"),"aria-describedby":"name-help"},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}}),t._v(" "),t.errors.name?s("small",{staticClass:"p-invalid",attrs:{id:"name-help"}},[t._v(t._s(t.errors.name))]):t._e()],1),t._v(" "),s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 font-semibold text-gray-800",attrs:{for:"skill"}},[t._v(t._s(t.__("Skill")))]),t._v(" "),s("Dropdown",{attrs:{id:"skill",options:t.skills,filter:!0,optionLabel:"name",optionValue:"id",dataKey:"id",placeholder:"Select a Skill"},model:{value:t.form.skill_id,callback:function(e){t.$set(t.form,"skill_id",e)},expression:"form.skill_id"}}),t._v(" "),t.errors.skill_id?s("small",{staticClass:"p-invalid",attrs:{id:"skill-help"}},[t._v(t._s(t.errors.skill_id))]):t._e()],1),t._v(" "),s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 font-semibold text-gray-800",attrs:{for:"short_description"}},[t._v(t._s(t.__("Short Description")))]),t._v(" "),s("Textarea",{class:[t.errors.short_description?"p-invalid":""],attrs:{id:"short_description"},model:{value:t.form.short_description,callback:function(e){t.$set(t.form,"short_description",e)},expression:"form.short_description"}}),t._v(" "),t.errors.short_description?s("small",{staticClass:"p-invalid",attrs:{id:"short_description-help"}},[t._v(t._s(t.errors.short_description))]):t._e()],1),t._v(" "),s("div",{staticClass:"w-full"},[s("div",{staticClass:"flex justify-between items-center mb-8"},[s("div",{staticClass:"w-9/12"},[s("label",{staticClass:"font-semibold text-gray-800 pb-1",attrs:{for:"is_active"},domProps:{innerHTML:t._s(t.form.is_active?t.__("Active"):t.__("In-active"))}}),t._v(" "),s("p",{staticClass:"text-sm text-gray-500"},[t._v(t._s(t.__("Active"))+" ("+t._s(t.__("Shown Everywhere"))+"). "+t._s(t.__("In-active"))+" ("+t._s(t.__("Hidden Everywhere"))+").")])]),t._v(" "),s("div",{staticClass:"cursor-pointer rounded-full relative shadow-sm"},[s("InputSwitch",{attrs:{id:"is_active"},model:{value:t.form.is_active,callback:function(e){t.$set(t.form,"is_active",e)},expression:"form.is_active"}})],1)])]),t._v(" "),s("div",{staticClass:"w-full flex"},[s("Button",{attrs:{type:"submit",label:t.editFlag?t.__("Update"):t.__("Create")}})],1)])])}),[],!1,null,null,null).exports;var g=s(728),b=s(7531),x=s(3194);function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var s=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==s)return;var r,a,i=[],n=!0,o=!1;try{for(s=s.call(t);!(n=(r=s.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return w(t,e);var s=Object.prototype.toString.call(t).slice(8,-1);"Object"===s&&t.constructor&&(s=t.constructor.name);if("Map"===s||"Set"===s)return Array.from(t);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return w(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,r=new Array(e);s<e;s++)r[s]=t[s];return r}const C={components:{TopicForm:h,AdminLayout:r.Z,Column:a.default,InputText:i.default,Toolbar:n.default,Button:o.default,Sidebar:l.default,Chip:g.default,Tag:b.default,NoDataTable:x.Z},props:{topics:Object,skills:Array,errors:Object},data:function(){return{createForm:!1,editForm:!1,currentId:null,columns:[{label:this.__("Code"),field:"code",filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Code"),filterValue:null,trigger:"enter"},sortable:!1,width:"11rem"},{label:this.__("Name"),field:"name",filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Name"),filterValue:null,trigger:"enter"},sortable:!1},{label:this.__("Skill"),field:"skill",sortable:!1},{label:this.__("Status"),field:"status",sortable:!1,filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Status"),filterValue:null,filterDropdownItems:[{value:1,text:this.__("Active")},{value:0,text:this.__("In-active")}]}},{label:this.__("Actions"),field:"actions",sortable:!1}],options:{enabled:!0,mode:"pages",perPage:this.topics.meta.pagination.per_page,setCurrentPage:this.topics.meta.pagination.current_page,perPageDropdown:[10,20,50,100],dropdownAllowAll:!1},serverParams:{columnFilters:{},sort:{field:"",type:""},page:1,perPage:10},loading:!1}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return"Topics - "+this.$page.props.general.app_name+" Admin"}},methods:{updateParams:function(t){this.serverParams=Object.assign({},this.serverParams,t)},onPageChange:function(t){this.updateParams({page:t.currentPage}),this.loadItems()},onPerPageChange:function(t){this.updateParams({perPage:t.currentPerPage}),this.loadItems()},onSortChange:function(t){this.updateParams({sort:[{type:t.sortType,field:this.columns[t.columnIndex].field}]}),this.loadItems()},onColumnFilter:function(t){this.updateParams(t),this.loadItems()},getQueryParams:function(){for(var t={page:this.serverParams.page,perPage:this.serverParams.perPage},e=0,s=Object.entries(this.serverParams.columnFilters);e<s.length;e++){var r=y(s[e],2),a=r[0],i=r[1];i&&(t[a]=i)}return t},loadItems:function(){this.$inertia.get(route(route().current()),this.getQueryParams(),{replace:!1,preserveState:!0,preserveScroll:!0})},deleteTopic:function(t){var e=this;this.$confirm.require({header:this.__("Confirm Delete"),message:this.__("Do you want to delete this record?"),icon:"pi pi-info-circle",acceptClass:"p-button-danger",rejectLabel:this.__("Cancel"),acceptLabel:this.__("Delete"),accept:function(){e.$inertia.delete(route("topics.destroy",{id:t}),{},{onSuccess:function(){e.$toast.add({severity:"info",summary:e.__("Confirmed"),detail:e.__("Record deleted"),life:3e3})}})},reject:function(){}})},handleCopyStatus:function(t){t&&this.$toast.add({severity:"success",summary:this.__("Copied"),detail:this.__("Copied Successfully!"),life:2e3})}}};const k=(0,v.Z)(C,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("admin-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v(t._s(t.__("Topics")))])]},proxy:!0},{key:"actions",fn:function(){return[s("button",{staticClass:"qt-btn qt-btn-success",on:{click:function(e){t.createForm=!0}}},[t._v("\n            "+t._s(t.__("New"))+" "+t._s(t.__("Topic"))+"\n        ")])]},proxy:!0}])},[t._v(" "),t._v(" "),s("div",{staticClass:"container mx-auto py-8 px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"card"},[s("div",{staticClass:"card-body"},[s("vue-good-table",{attrs:{mode:"remote","pagination-options":t.options,columns:t.columns,totalRows:t.topics.meta.pagination.total,rows:t.topics.data,rtl:t.$page.props.rtl},on:{"on-page-change":t.onPageChange,"on-column-filter":t.onColumnFilter,"on-per-page-change":t.onPerPageChange},scopedSlots:t._u([{key:"table-row",fn:function(e){return["code"===e.column.field?s("div",[s("Tag",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.row.code,expression:"props.row.code",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.handleCopyStatus,expression:"handleCopyStatus",arg:"success"}],staticClass:"w-full p-mr-2 text-sm cursor-pointer",attrs:{value:e.row.code,icon:"pi pi-copy"}})],1):"status"===e.column.field?s("div",[s("span",{class:[e.row.status?"badge-success":"badge-danger","badge"]},[t._v(t._s(e.row.status?t.__("Active"):t.__("In-active")))])]):"actions"===e.column.field?s("div",[s("Button",{staticClass:"p-button-rounded p-button-secondary p-button-text p-mr-2",attrs:{icon:"pi pi-pencil"},on:{click:function(s){t.editForm=!0,t.currentId=e.row.id}}}),t._v(" "),s("Button",{staticClass:"p-button-rounded p-button-danger p-button-text",attrs:{icon:"pi pi-trash"},on:{click:function(s){return t.deleteTopic(e.row.id)}}})],1):s("span",[t._v("\n                          "+t._s(e.formattedRow[e.column.field])+"\n                        ")])]}}])},[t._v(" "),s("div",{attrs:{slot:"emptystate"},slot:"emptystate"},[s("no-data-table",[s("template",{slot:"action"},[s("button",{staticClass:"qt-btn-sm qt-btn-primary",attrs:{type:"button"},on:{click:function(e){t.createForm=!0}}},[t._v("\n                                    "+t._s(t.__("New"))+" "+t._s(t.__("Topic"))+"\n                                ")])])],2)],1)]),t._v(" "),s("Sidebar",{staticClass:"p-sidebar-md",attrs:{position:"right",visible:t.createForm},on:{"update:visible":function(e){t.createForm=e},hide:t.loadItems}},[s("TopicForm",{attrs:{skills:t.skills,errors:t.errors,title:t.__("New")+" "+t.__("Topic")},on:{close:function(e){t.createForm=!1}}})],1),t._v(" "),s("Sidebar",{staticClass:"p-sidebar-md",attrs:{position:"right",visible:t.editForm},on:{"update:visible":function(e){t.editForm=e},hide:t.loadItems}},[s("TopicForm",{attrs:{skills:t.skills,"edit-flag":t.editForm,"topic-id":t.currentId,errors:t.errors,title:t.__("Edit")+" "+t.__("Topic")},on:{"update:editFlag":function(e){t.editForm=e},"update:edit-flag":function(e){t.editForm=e},close:function(e){t.editForm=!1}}})],1)],1)])])])}),[],!1,null,null,null).exports},5738:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>k});var r=s(67),a=s(8801),i=s(4974),n=s(8558),o=s(2263),l=s(9745),c=s(8465),u=s(8067),d=s.n(u),p=s(3976),m=s(6916),_=s(4019);const f={name:"UserGroupForm",components:{ckeditor:d().component,InputText:i.default,Button:o.default,InputSwitch:c.default,TextEditor:p.Z,FormInputShimmer:m.Z,FormSwitchShimmer:_.Z},props:{editFlag:Boolean,userGroupId:Number,errors:Object,title:""},data:function(){return{editorUrl:window.CKEditorURL,editorConfig:{contentsLangDirection:this.$page.props.rtl?"rtl":"ltr"},form:{name:"",description:"",is_private:!1,is_active:!0},formValidated:!1,loading:!1}},methods:{submitForm:function(){this.editFlag?this.update():this.create()},create:function(){var t=this;this.formValidated=!0,this.$inertia.post(route("user-groups.store"),this.form,{onSuccess:function(){0===Object.keys(t.errors).length&&t.$emit("close",!0)}})},update:function(){var t=this;this.formValidated=!0,this.$inertia.patch(route("user-groups.update",{id:this.userGroupId}),this.form,{onSuccess:function(){0===Object.keys(t.errors).length&&t.$emit("close",!0)}})},fetch:function(){if(this.editFlag){var t=this;t.loading=!0,axios.get(route("user-groups.edit",{id:this.userGroupId})).then((function(e){var s=e.data;t.form.name=s.name,t.form.description=s.description,t.form.is_private=s.is_private,t.form.is_active=s.is_active})).catch((function(e){t.loading=!1})).then((function(){t.loading=!1}))}}},mounted:function(){!0===this.editFlag&&this.fetch()}};var v=s(1900);const h=(0,v.Z)(f,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"overflow-y-auto h-screen px-2"},[s("div",{staticClass:"bg-gray-100 py-4 lg:py-4 rounded"},[s("div",{staticClass:"container px-6 mx-auto flex ltr:flex-row rtl:flex-row-reverse"},[s("div",[s("h4",{staticClass:"text-base font-semibold leading-tight text-gray-800"},[t._v("\n                    "+t._s(t.title)+"\n                ")])])])]),t._v(" "),t.loading?s("div",{staticClass:"my-6 w-11/12 mx-auto xl:w-full xl:mx-0"},[s("form-input-shimmer"),t._v(" "),s("form-input-shimmer"),t._v(" "),s("form-input-shimmer"),t._v(" "),s("form-switch-shimmer")],1):s("form",{staticClass:"my-6 w-11/12 mx-auto xl:w-full xl:mx-0",on:{submit:function(e){return e.preventDefault(),t.submitForm(e)}}},[s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 font-semibold text-gray-800",attrs:{for:"name"}},[t._v(t._s(t.__("User Group"))+" "+t._s(t.__("Name"))),s("span",{staticClass:"ml-1 text-red-400"},[t._v("*")])]),t._v(" "),s("InputText",{class:[t.errors.name?"p-invalid":""],attrs:{type:"text",id:"name",placeholder:t.__("Name"),"aria-describedby":"name-help"},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}}),t._v(" "),t.errors.name?s("small",{staticClass:"p-invalid",attrs:{id:"name-help"}},[t._v(t._s(t.errors.name))]):t._e()],1),t._v(" "),s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 font-semibold text-gray-800",attrs:{for:"name"}},[t._v(t._s(t.__("Description"))+" (Max. 1000 Characters)")]),t._v(" "),s("ckeditor",{class:[t.$page.props.rtl?"cke_rtl":"cke_ltr",t.errors.description?"p-invalid":""],attrs:{id:"description",config:t.editorConfig,"editor-url":t.editorUrl},model:{value:t.form.description,callback:function(e){t.$set(t.form,"description",e)},expression:"form.description"}}),t._v(" "),t.errors.description?s("small",{staticClass:"p-invalid",attrs:{id:"description-help"}},[t._v(t._s(t.errors.description))]):t._e()],1),t._v(" "),s("div",{staticClass:"w-full"},[s("div",{staticClass:"flex justify-between items-center mb-8"},[s("div",{staticClass:"w-9/12"},[s("label",{staticClass:"font-semibold text-gray-800 pb-1",attrs:{for:"is_active"},domProps:{innerHTML:t._s(t.form.is_active?t.__("Active"):t.__("In-active"))}}),t._v(" "),s("p",{staticClass:"text-gray-500"},[t._v(t._s(t.__("Active"))+" ("+t._s(t.__("Shown Everywhere"))+"). "+t._s(t.__("In-active"))+" ("+t._s(t.__("Hidden Everywhere"))+").")])]),t._v(" "),s("div",{staticClass:"cursor-pointer rounded-full relative shadow-sm"},[s("InputSwitch",{attrs:{id:"is_active"},model:{value:t.form.is_active,callback:function(e){t.$set(t.form,"is_active",e)},expression:"form.is_active"}})],1)]),t._v(" "),s("div",{staticClass:"flex justify-between items-center mb-8"},[s("div",{staticClass:"w-9/12"},[s("label",{staticClass:"font-semibold text-gray-800 pb-1",attrs:{for:"is_private"},domProps:{innerHTML:t._s(t.form.is_private?t.__("Private Group"):t.__("Public Group"))}}),t._v(" "),s("p",{staticClass:"text-gray-500"},[t._v(t._s(t.__("Private Group"))+" ("+t._s(t.__("Only admin can add users"))+"). "+t._s(t.__("Public Group"))+" ("+t._s(t.__("Anyone can join"))+")")])]),t._v(" "),s("div",{staticClass:"cursor-pointer rounded-full relative shadow-sm"},[s("InputSwitch",{attrs:{id:"is_private"},model:{value:t.form.is_private,callback:function(e){t.$set(t.form,"is_private",e)},expression:"form.is_private"}})],1)])]),t._v(" "),s("div",{staticClass:"w-full flex"},[s("Button",{attrs:{type:"submit",label:t.editFlag?t.__("Update"):t.__("Create")}})],1)])])}),[],!1,null,null,null).exports;var g=s(728),b=s(7531),x=s(3194);function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var s=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==s)return;var r,a,i=[],n=!0,o=!1;try{for(s=s.call(t);!(n=(r=s.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return w(t,e);var s=Object.prototype.toString.call(t).slice(8,-1);"Object"===s&&t.constructor&&(s=t.constructor.name);if("Map"===s||"Set"===s)return Array.from(t);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return w(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,r=new Array(e);s<e;s++)r[s]=t[s];return r}const C={components:{UserGroupForm:h,AdminLayout:r.Z,Column:a.default,InputText:i.default,Toolbar:n.default,Button:o.default,Sidebar:l.default,Chip:g.default,Tag:b.default,NoDataTable:x.Z},props:{userGroups:Object,errors:Object},data:function(){return{createForm:!1,editForm:!1,currentId:null,columns:[{label:this.__("Code"),field:"code",filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Code"),filterValue:null,trigger:"enter"},sortable:!1,width:"12rem"},{label:this.__("Name"),field:"name",filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Name"),filterValue:null,trigger:"enter"},sortable:!1},{label:this.__("Visibility"),field:"visibility",sortable:!1,filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Visibility"),filterValue:null,filterDropdownItems:[{value:1,text:this.__("Private")},{value:0,text:this.__("Public")}]}},{label:this.__("Status"),field:"status",sortable:!1,filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Status"),filterValue:null,filterDropdownItems:[{value:1,text:this.__("Active")},{value:0,text:this.__("In-active")}]},width:"11rem"},{label:this.__("Actions"),field:"actions",sortable:!1,width:"12rem"}],options:{enabled:!0,mode:"pages",perPage:this.userGroups.meta.pagination.per_page,setCurrentPage:this.userGroups.meta.pagination.current_page,perPageDropdown:[10,20,50,100],dropdownAllowAll:!1},serverParams:{columnFilters:{},sort:{field:"",type:""},page:1,perPage:10},loading:!1}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return"User Groups - "+this.$page.props.general.app_name+" Admin"}},methods:{updateParams:function(t){this.serverParams=Object.assign({},this.serverParams,t)},onPageChange:function(t){this.updateParams({page:t.currentPage}),this.loadItems()},onPerPageChange:function(t){this.updateParams({perPage:t.currentPerPage}),this.loadItems()},onSortChange:function(t){this.updateParams({sort:[{type:t.sortType,field:this.columns[t.columnIndex].field}]}),this.loadItems()},onColumnFilter:function(t){this.serverParams.page=1,this.updateParams(t),this.loadItems()},getQueryParams:function(){for(var t={page:this.serverParams.page,perPage:this.serverParams.perPage},e=0,s=Object.entries(this.serverParams.columnFilters);e<s.length;e++){var r=y(s[e],2),a=r[0],i=r[1];i&&(t[a]=i)}return t},loadItems:function(){this.$inertia.get(route(route().current()),this.getQueryParams(),{replace:!1,preserveState:!0,preserveScroll:!0})},deleteUserGroup:function(t){var e=this;this.$confirm.require({header:this.__("Confirm Delete"),message:this.__("Do you want to delete this record?"),icon:"pi pi-info-circle",acceptClass:"p-button-danger",rejectLabel:this.__("Cancel"),acceptLabel:this.__("Delete"),accept:function(){e.$inertia.delete(route("user-groups.destroy",{id:t}),{},{onSuccess:function(){e.$toast.add({severity:"info",summary:e.__("Confirmed"),detail:e.__("Record deleted"),life:3e3})}})},reject:function(){}})},handleCopyStatus:function(t){t&&this.$toast.add({severity:"success",summary:this.__("Copied"),detail:this.__("Copied Successfully!"),life:3e3})}}};const k=(0,v.Z)(C,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("admin-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v(t._s(t.__("User Groups")))])]},proxy:!0},{key:"actions",fn:function(){return[s("button",{staticClass:"qt-btn qt-btn-success",on:{click:function(e){t.createForm=!0}}},[t._v("\n            "+t._s(t.__("New"))+" "+t._s(t.__("User Group"))+"\n        ")])]},proxy:!0}])},[t._v(" "),t._v(" "),s("div",{staticClass:"container mx-auto py-10 px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"card"},[s("div",{staticClass:"card-body"},[s("vue-good-table",{attrs:{mode:"remote","pagination-options":t.options,columns:t.columns,totalRows:t.userGroups.meta.pagination.total,rows:t.userGroups.data,rtl:t.$page.props.rtl},on:{"on-page-change":t.onPageChange,"on-column-filter":t.onColumnFilter,"on-per-page-change":t.onPerPageChange},scopedSlots:t._u([{key:"table-row",fn:function(e){return["code"===e.column.field?s("div",[s("Tag",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.row.code,expression:"props.row.code",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.handleCopyStatus,expression:"handleCopyStatus",arg:"success"}],staticClass:"w-full p-mr-2 text-sm cursor-pointer",attrs:{value:e.row.code,icon:"pi pi-copy"}})],1):"status"===e.column.field?s("div",[s("span",{class:[e.row.status?"badge-success":"badge-danger","badge"]},[t._v(t._s(e.row.status?t.__("Active"):t.__("In-active")))])]):"actions"===e.column.field?s("div",[s("Button",{staticClass:"p-button-rounded p-button-secondary p-button-text p-mr-2",attrs:{icon:"pi pi-pencil"},on:{click:function(s){t.editForm=!0,t.currentId=e.row.id}}}),t._v(" "),s("Button",{staticClass:"p-button-rounded p-button-danger p-button-text",attrs:{icon:"pi pi-trash"},on:{click:function(s){return t.deleteUserGroup(e.row.id)}}})],1):s("span",[t._v("\n                          "+t._s(e.formattedRow[e.column.field])+"\n                        ")])]}}])},[t._v(" "),s("div",{attrs:{slot:"emptystate"},slot:"emptystate"},[s("no-data-table",[s("template",{slot:"action"},[s("button",{staticClass:"qt-btn-sm qt-btn-primary",attrs:{type:"button"},on:{click:function(e){t.createForm=!0}}},[t._v("\n                                    "+t._s(t.__("New"))+" "+t._s(t.__("User Group"))+"\n                                ")])])],2)],1)]),t._v(" "),s("Sidebar",{staticClass:"p-sidebar-md",attrs:{position:"right",visible:t.createForm},on:{"update:visible":function(e){t.createForm=e},hide:t.loadItems}},[s("UserGroupForm",{attrs:{errors:t.errors,title:t.__("New")+" "+t.__("User Group")},on:{close:function(e){t.createForm=!1}}})],1),t._v(" "),s("Sidebar",{staticClass:"p-sidebar-md",attrs:{position:"right",visible:t.editForm},on:{"update:visible":function(e){t.editForm=e},hide:t.loadItems}},[s("UserGroupForm",{attrs:{"edit-flag":t.editForm,"user-group-id":t.currentId,errors:t.errors,title:t.__("Edit")+" "+t.__("User Group")},on:{"update:editFlag":function(e){t.editForm=e},"update:edit-flag":function(e){t.editForm=e},close:function(e){t.editForm=!1}}})],1)],1)])])])}),[],!1,null,null,null).exports},1991:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>k});var r=s(67),a=s(8801),i=s(4974),n=s(8558),o=s(2263),l=s(9745),c=s(8465),u=s(3976),d=s(6916),p=s(4019),m=s(9938),_=s.n(m);const f={name:"UserForm",components:{InputText:i.default,Button:o.default,InputSwitch:c.default,TextEditor:u.Z,FormInputShimmer:d.Z,FormSwitchShimmer:p.Z,vSelect:_()},props:{editFlag:Boolean,userId:Number,errors:Object,roles:Array,userGroups:Array,title:""},data:function(){return{editorUrl:window.CKEditorURL,form:{first_name:"",last_name:"",user_name:"",email:"",role:"",password:"",is_active:!0,user_groups:[]},formValidated:!1,loading:!1}},methods:{submitForm:function(){this.editFlag?this.update():this.create()},create:function(){var t=this;this.formValidated=!0,this.$inertia.post(route("users.store"),this.form,{onSuccess:function(){0===Object.keys(t.errors).length&&t.$emit("close",!0)}})},update:function(){var t=this;this.formValidated=!0,this.$inertia.patch(route("users.update",{id:this.userId}),this.form,{onSuccess:function(){0===Object.keys(t.errors).length&&t.$emit("close",!0)}})},fetch:function(){if(this.editFlag){var t=this;t.loading=!0,axios.get(route("users.edit",{id:this.userId})).then((function(e){var s=e.data.user;t.form.first_name=s.first_name,t.form.last_name=s.last_name,t.form.user_name=s.user_name,t.form.email=s.email,t.form.role=s.role_id,t.form.is_active=s.is_active,t.form.user_groups=e.data.userGroups})).catch((function(e){t.loading=!1})).then((function(){t.loading=!1}))}}},mounted:function(){!0===this.editFlag&&this.fetch()}};var v=s(1900);const h=(0,v.Z)(f,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"overflow-y-auto h-screen px-2"},[s("div",{staticClass:"bg-gray-100 py-4 lg:py-4 rounded"},[s("div",{staticClass:"container px-6 mx-auto flex ltr:flex-row rtl:flex-row-reverse"},[s("div",[s("h4",{staticClass:"text-base font-semibold leading-tight text-gray-800"},[t._v("\n                    "+t._s(t.title)+"\n                ")])])])]),t._v(" "),t.loading?s("div",{staticClass:"my-6 w-11/12 mx-auto xl:w-full xl:mx-0"},[s("form-input-shimmer"),t._v(" "),s("form-input-shimmer"),t._v(" "),s("form-input-shimmer"),t._v(" "),s("form-switch-shimmer")],1):s("form",{staticClass:"my-6 w-11/12 mx-auto xl:w-full xl:mx-0",on:{submit:function(e){return e.preventDefault(),t.submitForm(e)}}},[s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 font-semibold text-gray-800",attrs:{for:"first_name"}},[t._v(t._s(t.__("First Name"))),s("span",{staticClass:"ml-1 text-red-400"},[t._v("*")])]),t._v(" "),s("InputText",{class:[t.errors.first_name?"p-invalid":""],attrs:{type:"text",id:"first_name",placeholder:"Enter First Name","aria-describedby":"first_name-help"},model:{value:t.form.first_name,callback:function(e){t.$set(t.form,"first_name",e)},expression:"form.first_name"}}),t._v(" "),t.errors.first_name?s("small",{staticClass:"p-invalid",attrs:{id:"first_name-help"}},[t._v(t._s(t.errors.first_name))]):t._e()],1),t._v(" "),s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 font-semibold text-gray-800",attrs:{for:"last_name"}},[t._v(t._s(t.__("Last Name"))),s("span",{staticClass:"ml-1 text-red-400"},[t._v("*")])]),t._v(" "),s("InputText",{class:[t.errors.last_name?"p-invalid":""],attrs:{type:"text",id:"last_name",placeholder:"Enter Last Name","aria-describedby":"last_name-help"},model:{value:t.form.last_name,callback:function(e){t.$set(t.form,"last_name",e)},expression:"form.last_name"}}),t._v(" "),t.errors.last_name?s("small",{staticClass:"p-invalid",attrs:{id:"last_name-help"}},[t._v(t._s(t.errors.last_name))]):t._e()],1),t._v(" "),s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 font-semibold text-gray-800",attrs:{for:"email"}},[t._v(t._s(t.__("Email"))),s("span",{staticClass:"ml-1 text-red-400"},[t._v("*")])]),t._v(" "),s("InputText",{class:[t.errors.email?"p-invalid":""],attrs:{type:"email",id:"email",placeholder:"Enter Email","aria-describedby":"email-help"},model:{value:t.form.email,callback:function(e){t.$set(t.form,"email",e)},expression:"form.email"}}),t._v(" "),t.errors.email?s("small",{staticClass:"p-invalid",attrs:{id:"email-help"}},[t._v(t._s(t.errors.email))]):t._e()],1),t._v(" "),s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 font-semibold text-gray-800",attrs:{for:"user_name"}},[t._v(t._s(t.__("User Name"))),s("span",{staticClass:"ml-1 text-red-400"},[t._v("*")])]),t._v(" "),s("InputText",{class:[t.errors.user_name?"p-invalid":""],attrs:{type:"text",id:"user_name",placeholder:"Enter User Name","aria-describedby":"user_name-help"},model:{value:t.form.user_name,callback:function(e){t.$set(t.form,"user_name",e)},expression:"form.user_name"}}),t._v(" "),t.errors.user_name?s("small",{staticClass:"p-invalid",attrs:{id:"user_name-help"}},[t._v(t._s(t.errors.user_name))]):t._e()],1),t._v(" "),s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 font-semibold text-gray-800",attrs:{for:"userRole"}},[t._v(t._s(t.__("User Role"))),s("span",{staticClass:"ml-1 text-red-400"},[t._v("*")])]),t._v(" "),s("v-select",{attrs:{id:"userRole",options:t.roles,reduce:function(t){return t.value},label:"text",placeholder:"Choose Role",dir:t.$page.props.rtl?"rtl":"ltr"},scopedSlots:t._u([{key:"no-options",fn:function(e){e.search;return[e.searching?[t._v(t._s(t.__("No results were found for this search"))+".")]:s("em",{staticClass:"opacity-50"},[t._v(t._s(t.__("Start typing to search"))+".")])]}}]),model:{value:t.form.role,callback:function(e){t.$set(t.form,"role",e)},expression:"form.role"}}),t._v(" "),t.errors.role?s("small",{staticClass:"p-invalid",attrs:{id:"userRole-help"}},[t._v(t._s(t.errors.role))]):t._e()],1),t._v(" "),1!==t.form.role?s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 font-semibold text-gray-800",attrs:{for:"users"}},[t._v(t._s(t.__("User Groups")))]),t._v(" "),s("v-select",{attrs:{multiple:"",id:"users",options:t.userGroups,reduce:function(t){return t.id},label:"name",placeholder:"Select User Groups",dir:t.$page.props.rtl?"rtl":"ltr"},scopedSlots:t._u([{key:"no-options",fn:function(e){e.search;return[e.searching?[t._v(t._s(t.__("No results were found for this search"))+".")]:s("em",{staticClass:"opacity-50"},[t._v(t._s(t.__("Start typing to search"))+".")])]}}],null,!1,1403868184),model:{value:t.form.user_groups,callback:function(e){t.$set(t.form,"user_groups",e)},expression:"form.user_groups"}}),t._v(" "),t.errors.user_groups?s("small",{staticClass:"p-invalid",attrs:{id:"users-help"}},[t._v(t._s(t.errors.user_groups))]):t._e()],1):t._e(),t._v(" "),s("div",{staticClass:"w-full flex flex-col mb-6"},[s("label",{staticClass:"pb-2 font-semibold text-gray-800",attrs:{for:"password"}},[t._v(t._s(t.__("Password"))),t.editFlag?t._e():s("span",{staticClass:"ml-1 text-red-400"},[t._v("*")])]),t._v(" "),s("InputText",{class:[t.errors.password?"p-invalid":""],attrs:{type:"password",id:"password",placeholder:"Enter Password","aria-describedby":"password-help"},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}}),t._v(" "),t.errors.password?s("small",{staticClass:"p-invalid",attrs:{id:"password-help"}},[t._v(t._s(t.errors.password))]):t._e()],1),t._v(" "),s("div",{staticClass:"w-full"},[s("div",{staticClass:"flex justify-between items-center mb-8"},[s("div",{staticClass:"w-9/12"},[s("label",{staticClass:"font-semibold text-gray-800 pb-1",attrs:{for:"is_active"},domProps:{innerHTML:t._s(t.form.is_active?t.__("Status")+" - "+t.__("Active"):t.__("Status")+" - "+t.__("In-active"))}}),t._v(" "),s("p",{staticClass:"text-gray-500"},[t._v(t._s(t.__("Active"))+" ("+t._s(t.__("Allow Login"))+"). "+t._s(t.__("In-active"))+" ("+t._s(t.__("Disallow Login"))+").")])]),t._v(" "),s("div",{staticClass:"cursor-pointer rounded-full relative shadow-sm"},[s("InputSwitch",{attrs:{id:"is_active"},model:{value:t.form.is_active,callback:function(e){t.$set(t.form,"is_active",e)},expression:"form.is_active"}})],1)])]),t._v(" "),s("div",{staticClass:"w-full flex"},[s("Button",{attrs:{type:"submit",label:t.editFlag?t.__("Update"):t.__("Create")}})],1)])])}),[],!1,null,null,null).exports;var g=s(728),b=s(7531),x=s(3194);function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var s=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==s)return;var r,a,i=[],n=!0,o=!1;try{for(s=s.call(t);!(n=(r=s.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return w(t,e);var s=Object.prototype.toString.call(t).slice(8,-1);"Object"===s&&t.constructor&&(s=t.constructor.name);if("Map"===s||"Set"===s)return Array.from(t);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return w(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,r=new Array(e);s<e;s++)r[s]=t[s];return r}const C={components:{UserForm:h,AdminLayout:r.Z,Column:a.default,InputText:i.default,Toolbar:n.default,Button:o.default,Sidebar:l.default,Chip:g.default,Tag:b.default,NoDataTable:x.Z},props:{users:Object,errors:Object,roles:Array,userGroups:Array},data:function(){return{createForm:!1,editForm:!1,currentId:null,columns:[{label:this.__("Name"),field:"fullName",filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Name"),filterValue:null,trigger:"enter"},sortable:!1},{label:this.__("User Name"),field:"userName",filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("User Name"),filterValue:null,trigger:"enter"},sortable:!1},{label:this.__("Email"),field:"email",filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Email"),filterValue:null,trigger:"enter"},sortable:!1},{label:this.__("Role"),field:"role",filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Role"),filterValue:null,filterDropdownItems:this.roles},sortable:!1},{label:this.__("Status"),field:"status",sortable:!1,filterOptions:{enabled:!0,placeholder:this.__("Search")+" "+this.__("Status"),filterValue:null,filterDropdownItems:[{value:1,text:this.__("Active")},{value:0,text:this.__("In-active")}]},width:"11rem"},{label:this.__("Actions"),field:"actions",sortable:!1,width:"12rem"}],options:{enabled:!0,mode:"pages",perPage:this.users.meta.pagination.per_page,setCurrentPage:this.users.meta.pagination.current_page,perPageDropdown:[10,20,50,100],dropdownAllowAll:!1},serverParams:{columnFilters:{},sort:{field:"",type:""},page:1,perPage:10},loading:!1}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return"Users - "+this.$page.props.general.app_name+" Admin"}},methods:{updateParams:function(t){this.serverParams=Object.assign({},this.serverParams,t)},onPageChange:function(t){this.updateParams({page:t.currentPage}),this.loadItems()},onPerPageChange:function(t){this.updateParams({perPage:t.currentPerPage}),this.loadItems()},onSortChange:function(t){this.updateParams({sort:[{type:t.sortType,field:this.columns[t.columnIndex].field}]}),this.loadItems()},onColumnFilter:function(t){this.updateParams(t),this.serverParams.page=1,this.loadItems()},getQueryParams:function(){for(var t={page:this.serverParams.page,perPage:this.serverParams.perPage},e=0,s=Object.entries(this.serverParams.columnFilters);e<s.length;e++){var r=y(s[e],2),a=r[0],i=r[1];i&&(t[a]=i)}return t},loadItems:function(){this.$inertia.get(route(route().current()),this.getQueryParams(),{replace:!1,preserveState:!0,preserveScroll:!0})},deleteUser:function(t){var e=this;this.$confirm.require({header:this.__("Confirm Delete"),message:this.__("Do you want to delete this record?"),icon:"pi pi-info-circle",acceptClass:"p-button-danger",rejectLabel:this.__("Cancel"),acceptLabel:this.__("Delete"),accept:function(){e.$inertia.delete(route("users.destroy",{id:t}),{},{onSuccess:function(){e.$toast.add({severity:"info",summary:e.__("Confirmed"),detail:e.__("Record deleted"),life:3e3})}})},reject:function(){}})},handleCopyStatus:function(t){t&&this.$toast.add({severity:"success",summary:this.__("Copied"),detail:this.__("Copied Successfully!"),life:3e3})}}};const k=(0,v.Z)(C,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("admin-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v(t._s(t.__("Users")))])]},proxy:!0},{key:"actions",fn:function(){return[s("button",{staticClass:"qt-btn qt-btn-success",on:{click:function(e){t.createForm=!0}}},[t._v("\n            "+t._s(t.__("New"))+" "+t._s(t.__("User"))+"\n        ")])]},proxy:!0}])},[t._v(" "),t._v(" "),s("div",{staticClass:"container mx-auto py-10 px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"card"},[s("div",{staticClass:"card-body"},[s("vue-good-table",{attrs:{mode:"remote","pagination-options":t.options,columns:t.columns,totalRows:t.users.meta.pagination.total,rows:t.users.data,rtl:t.$page.props.rtl},on:{"on-page-change":t.onPageChange,"on-column-filter":t.onColumnFilter,"on-per-page-change":t.onPerPageChange},scopedSlots:t._u([{key:"table-row",fn:function(e){return["code"===e.column.field?s("div",[s("Tag",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.row.code,expression:"props.row.code",arg:"copy"}],staticClass:"w-full p-mr-2 cursor-pointer",attrs:{value:e.row.code,icon:"pi pi-copy"}})],1):"status"===e.column.field?s("div",[s("span",{class:[e.row.status?"badge-success":"badge-danger","badge"]},[t._v(t._s(e.row.status?t.__("Active"):t.__("In-active")))])]):"actions"===e.column.field?s("div",[s("Button",{staticClass:"p-button-rounded p-button-secondary p-button-text p-mr-2",attrs:{icon:"pi pi-pencil"},on:{click:function(s){t.editForm=!0,t.currentId=e.row.id}}}),t._v(" "),s("Button",{staticClass:"p-button-rounded p-button-danger p-button-text",attrs:{icon:"pi pi-trash"},on:{click:function(s){return t.deleteUser(e.row.id)}}})],1):s("span",[t._v("\n                            "+t._s(e.formattedRow[e.column.field])+"\n                        ")])]}}])},[t._v(" "),s("div",{attrs:{slot:"emptystate"},slot:"emptystate"},[s("no-data-table",[s("template",{slot:"action"},[s("button",{staticClass:"qt-btn-sm qt-btn-primary",attrs:{type:"button"},on:{click:function(e){t.createForm=!0}}},[t._v("\n                                    "+t._s(t.__("New"))+" "+t._s(t.__("User"))+"\n                                ")])])],2)],1)]),t._v(" "),s("Sidebar",{staticClass:"p-sidebar-md",attrs:{position:"right",visible:t.createForm},on:{"update:visible":function(e){t.createForm=e},hide:t.loadItems}},[s("UserForm",{attrs:{errors:t.errors,roles:t.roles,"user-groups":t.userGroups,title:t.__("New")+" "+t.__("User")},on:{close:function(e){t.createForm=!1}}})],1),t._v(" "),s("Sidebar",{staticClass:"p-sidebar-md",attrs:{position:"right",visible:t.editForm},on:{"update:visible":function(e){t.editForm=e},hide:t.loadItems}},[s("UserForm",{attrs:{"edit-flag":t.editForm,roles:t.roles,"user-id":t.currentId,"user-groups":t.userGroups,errors:t.errors,title:t.__("Edit")+" "+t.__("User")},on:{"update:editFlag":function(e){t.editForm=e},"update:edit-flag":function(e){t.editForm=e},close:function(e){t.editForm=!1}}})],1)],1)])])])}),[],!1,null,null,null).exports},8414:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>c});var r=s(8912),a=s(9881),i=s(6173),n=s(9684),o=s(1334);const l={components:{ArcAuthenticationCard:r.Z,ArcButton:a.Z,ArcInput:i.Z,ArcLabel:n.Z,ArcValidationErrors:o.Z},data:function(){return{form:this.$inertia.form({password:""})}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return"Confirm Password - "+this.$page.props.general.app_name}},methods:{submit:function(){var t=this;this.form.post(this.route("password.confirm"),{onFinish:function(){return t.form.reset()}})}}};const c=(0,s(1900).Z)(l,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("arc-authentication-card",{scopedSlots:t._u([{key:"logo",fn:function(){return[s("inertia-link",{attrs:{href:t.route("welcome")}},[s("img",{staticClass:"h-12",attrs:{src:t.$page.props.assetUrl+t.$page.props.general.logo_path,alt:t.$page.props.general.app_name}})])]},proxy:!0}])},[t._v(" "),s("div",{staticClass:"mb-4 text-sm text-gray-600"},[t._v("\n        This is a secure area of the application. Please confirm your password before continuing.\n    ")]),t._v(" "),s("arc-validation-errors",{staticClass:"mb-4"}),t._v(" "),s("form",{on:{submit:function(e){return e.preventDefault(),t.submit(e)}}},[s("div",[s("arc-label",{attrs:{for:"password",value:"Password"}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"password",type:"password",required:"",autocomplete:"current-password",autofocus:""},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}})],1),t._v(" "),s("div",{staticClass:"flex justify-end mt-4"},[s("arc-button",{staticClass:"ml-4",class:{"opacity-25":t.form.processing},attrs:{disabled:t.form.processing}},[t._v("\n                Confirm\n            ")])],1)])],1)}),[],!1,null,null,null).exports},7835:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>d});var r=s(7328),a=s(8912),i=s(9881),n=s(6173),o=s(9684),l=s(1334),c=s(5591);const u={components:{AuthLayout:r.Z,ArcAuthenticationCard:a.Z,ArcButton:i.Z,ArcInput:n.Z,ArcLabel:o.Z,ArcValidationErrors:l.Z,ApplicationLogo:c.Z},props:{status:String,settings:Object},data:function(){return{form:this.$inertia.form({email:""})}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return"Forgot Password - "+this.$page.props.general.app_name}},methods:{submit:function(){this.form.post(this.route("password.email"))}}};const d=(0,s(1900).Z)(u,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("arc-authentication-card",{staticClass:"px-4 sm:px-6 lg:px-8",scopedSlots:t._u([{key:"logo",fn:function(){return[s("application-logo")]},proxy:!0}])},[t._v(" "),s("div",{staticClass:"mb-4 text-sm text-gray-600"},[t._v("\n        "+t._s(t.__("forgot_password_text"))+"\n    ")]),t._v(" "),t.status?s("div",{staticClass:"mb-4 font-medium text-sm text-green-600"},[t._v("\n        "+t._s(t.status)+"\n    ")]):t._e(),t._v(" "),s("arc-validation-errors",{staticClass:"mb-4"}),t._v(" "),s("form",{on:{submit:function(e){return e.preventDefault(),t.submit(e)}}},[s("div",[s("arc-label",{attrs:{for:"email",value:t.__("Email")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"email",type:"email",required:"",autofocus:""},model:{value:t.form.email,callback:function(e){t.$set(t.form,"email",e)},expression:"form.email"}})],1),t._v(" "),s("div",{staticClass:"flex items-center ltr:justify-end rtl:justify-start mt-4"},[s("arc-button",{class:{"opacity-25":t.form.processing},attrs:{disabled:t.form.processing}},[t._v("\n                "+t._s(t.__("Email Password Reset Link"))+"\n            ")])],1)])],1)}),[],!1,null,null,null).exports},3622:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>_});var r=s(7328),a=s(8075),i=s(1334),n=s(8912),o=s(6173),l=s(9684),c=s(9881);function u(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,r)}return s}function d(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?u(Object(s),!0).forEach((function(e){p(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):u(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}function p(t,e,s){return e in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}const m={components:{AuthLayout:r.Z,ArcAuthenticationCard:n.Z,ArcCheckbox:a.Z,ArcValidationErrors:i.Z,ArcInput:o.Z,ArcLabel:l.Z,ArcButton:c.Z},props:{settings:Object,canResetPassword:Boolean,status:String},data:function(){return{form:this.$inertia.form({email:"",password:"",remember:!1})}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return"Login - "+this.$page.props.general.app_name}},methods:{submit:function(){var t=this;this.form.transform((function(e){return d(d({},e),{},{remember:t.form.remember?"on":""})})).post(this.route("login"),{onFinish:function(){return t.form.reset("password")}})},fillCredentials:function(t){"admin"===t&&(this.form.email="admin",this.form.password="Admin@123"),"instructor"===t&&(this.form.email="instructor",this.form.password="Instructor@123"),"student"===t&&(this.form.email="student",this.form.password="Student@123"),"guest"===t&&(this.form.email="guest",this.form.password="Guest@123")}}};const _=(0,s(1900).Z)(m,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("auth-layout",[s("h1",{staticClass:"mt-8 text-xl sm:text-2xl font-semibold text-black tracking-ringtighter title-font"},[t._v(t._s(t.__("Login To Your Account")))]),t._v(" "),s("arc-validation-errors",{staticClass:"mb-4"}),t._v(" "),t.status?s("div",{staticClass:"mb-4 font-medium text-sm text-green-600"},[t._v("\n        "+t._s(t.status)+"\n    ")]):t._e(),t._v(" "),s("form",{on:{submit:function(e){return e.preventDefault(),t.submit(e)}}},[s("div",{staticClass:"mt-8 w-full"},[s("div",{staticClass:"flex flex-col mt-8"},[s("label",{staticClass:"text-sm leading-tight",attrs:{for:"email"}},[t._v(t._s(t.__("Email"))+" / "+t._s(t.__("User Name")))]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.form.email,expression:"form.email"}],staticClass:"h-10 px-2 w-full rounded mt-2 text-gray-600 focus:outline-none focus:border focus:border-green-700 border-gray-300 border shadow",attrs:{id:"email",type:"text",required:"",autofocus:""},domProps:{value:t.form.email},on:{input:function(e){e.target.composing||t.$set(t.form,"email",e.target.value)}}})]),t._v(" "),s("div",{staticClass:"flex flex-col mt-5"},[s("label",{staticClass:"text-sm leading-tight",attrs:{for:"password"}},[t._v(t._s(t.__("Password")))]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.form.password,expression:"form.password"}],staticClass:"h-10 px-2 w-full rounded mt-2 text-gray-600 focus:outline-none focus:border focus:border-green-700 border-gray-300 border shadow",attrs:{id:"password",type:"password",required:"",autocomplete:"current-password"},domProps:{value:t.form.password},on:{input:function(e){e.target.composing||t.$set(t.form,"password",e.target.value)}}})])]),t._v(" "),s("div",{staticClass:"mt-8 w-full flex justify-between"},[s("label",{staticClass:"flex items-center"},[s("arc-checkbox",{attrs:{name:"remember"},model:{value:t.form.remember,callback:function(e){t.$set(t.form,"remember",e)},expression:"form.remember"}}),t._v(" "),s("span",{staticClass:"ltr:ml-2 rtl:mr-2 text-sm text-gray-600"},[t._v(t._s(t.__("Remember me")))])],1),t._v(" "),t.canResetPassword?s("inertia-link",{staticClass:"text-sm text-secondary",attrs:{href:t.route("password.request")}},[t._v(t._s(t.__("Forgot Password?")))]):t._e()],1),t._v(" "),s("div",{staticClass:"flex items-center mt-8"},[s("arc-button",{staticClass:"h-10 w-full justify-center rounded bg-primary hover:opacity-90",class:{"opacity-25":t.form.processing},attrs:{disabled:t.form.processing}},[t._v("\n                "+t._s(t.__("Login"))+"\n            ")])],1)]),t._v(" "),t.$page.props.isDemo?s("div",{staticClass:"mt-8 justify-between items-center flex gap-4 flex-wrap"},[s("span",{staticClass:"text-sm"},[t._v("Login To:")]),t._v(" "),s("button",{staticClass:"qt-btn qt-btn-sm qt-btn-primary",on:{click:function(e){return t.fillCredentials("admin")}}},[t._v("Admin")]),t._v(" "),s("button",{staticClass:"qt-btn qt-btn-sm qt-btn-primary",on:{click:function(e){return t.fillCredentials("instructor")}}},[t._v("Instructor")]),t._v(" "),s("button",{staticClass:"qt-btn qt-btn-sm qt-btn-primary",on:{click:function(e){return t.fillCredentials("student")}}},[t._v("Student")]),t._v(" "),s("button",{staticClass:"qt-btn qt-btn-sm qt-btn-primary",on:{click:function(e){return t.fillCredentials("guest")}}},[t._v("Guest")])]):t._e(),t._v(" "),!t.$page.props.isDemo&&t.$page.props.general.can_register?s("div",{staticClass:"my-6 flex items-center justify-between"},[s("span",{staticClass:"border-b dark:border-gray-600 w-1/5 md:w-1/4"}),t._v(" "),s("span",{staticClass:"text-xs text-gray-500 dark:text-gray-400 uppercase"},[t._v("or")]),t._v(" "),s("span",{staticClass:"border-b dark:border-gray-600 w-1/5 md:w-1/4"})]):t._e(),t._v(" "),!t.$page.props.isDemo&&t.$page.props.general.can_register?s("div",{staticClass:"mb-6 text-sm text-center"},[s("span",[t._v(t._s(t.__("Don’t Have An Account?"))+" ")]),t._v(" "),s("inertia-link",{staticClass:"underline text-secondary",attrs:{href:t.route("register")}},[t._v(t._s(t.__("Register")))])],1):t._e()],1)}),[],!1,null,null,null).exports},3815:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>p});var r=s(7328),a=s(8912),i=s(8075),n=s(9684),o=s(1334),l=s(5591),c=s(6173),u=s(9881);const d={components:{AuthLayout:r.Z,ArcAuthenticationCard:a.Z,ArcCheckbox:i.Z,ArcInput:c.Z,ArcLabel:n.Z,ArcButton:u.Z,ArcValidationErrors:o.Z,ApplicationLogo:l.Z},props:{settings:Object,status:String},data:function(){return{form:this.$inertia.form({first_name:"",last_name:"",user_name:"",email:"",password:"",password_confirmation:"",terms:!1})}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return"Register - "+this.$page.props.general.app_name}},methods:{submit:function(){var t=this;this.form.post(this.route("register"),{onFinish:function(){return t.form.reset("password","password_confirmation")}})}}};const p=(0,s(1900).Z)(d,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("auth-layout",[s("h1",{staticClass:"mt-8 text-xl sm:text-2xl font-semibold text-black tracking-ringtighter title-font"},[t._v(t._s(t.__("Register New Account")))]),t._v(" "),s("arc-validation-errors",{staticClass:"mb-4"}),t._v(" "),t.status?s("div",{staticClass:"mb-4 font-medium text-sm text-green-600"},[t._v("\n        "+t._s(t.status)+"\n    ")]):t._e(),t._v(" "),s("form",{on:{submit:function(e){return e.preventDefault(),t.submit(e)}}},[s("div",{staticClass:"mt-8 w-full"},[s("div",{staticClass:"md:flex gap-3"},[s("div",{staticClass:"flex w-full flex-col mt-5"},[s("label",{staticClass:"text-sm leading-tight",attrs:{for:"first_name"}},[t._v(t._s(t.__("First Name")))]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.form.first_name,expression:"form.first_name"}],staticClass:"h-10 px-2 w-full rounded mt-2 text-gray-600 focus:outline-none focus:border focus:border-green-700 border-gray-300 border shadow",attrs:{id:"first_name",type:"text",required:"",autofocus:"",autocomplete:"current-password"},domProps:{value:t.form.first_name},on:{input:function(e){e.target.composing||t.$set(t.form,"first_name",e.target.value)}}})]),t._v(" "),s("div",{staticClass:"flex w-full flex-col mt-5"},[s("label",{staticClass:"text-sm leading-tight",attrs:{for:"last_name"}},[t._v(t._s(t.__("Last Name")))]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.form.last_name,expression:"form.last_name"}],staticClass:"h-10 px-2 w-full rounded mt-2 text-gray-600 focus:outline-none focus:border focus:border-green-700 border-gray-300 border shadow",attrs:{id:"last_name",type:"text",required:"",autocomplete:"current-password"},domProps:{value:t.form.last_name},on:{input:function(e){e.target.composing||t.$set(t.form,"last_name",e.target.value)}}})])]),t._v(" "),s("div",{staticClass:"flex flex-col mt-5"},[s("label",{staticClass:"text-sm leading-tight",attrs:{for:"email"}},[t._v(t._s(t.__("Email")))]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.form.email,expression:"form.email"}],staticClass:"h-10 px-2 w-full rounded mt-2 text-gray-600 focus:outline-none focus:border focus:border-green-700 border-gray-300 border shadow",attrs:{id:"email",type:"email",required:""},domProps:{value:t.form.email},on:{input:function(e){e.target.composing||t.$set(t.form,"email",e.target.value)}}})]),t._v(" "),s("div",{staticClass:"flex flex-col mt-5"},[s("label",{staticClass:"text-sm leading-tight",attrs:{for:"user_name"}},[t._v(t._s(t.__("User Name")))]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.form.user_name,expression:"form.user_name"}],staticClass:"h-10 px-2 w-full rounded mt-2 text-gray-600 focus:outline-none focus:border focus:border-green-700 border-gray-300 border shadow",attrs:{id:"user_name",type:"text",required:""},domProps:{value:t.form.user_name},on:{input:function(e){e.target.composing||t.$set(t.form,"user_name",e.target.value)}}})]),t._v(" "),s("div",{staticClass:"md:flex gap-3"},[s("div",{staticClass:"w-full flex flex-col mt-5"},[s("label",{staticClass:"text-sm leading-tight",attrs:{for:"password"}},[t._v(t._s(t.__("Password")))]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.form.password,expression:"form.password"}],staticClass:"h-10 px-2 w-full rounded mt-2 text-gray-600 focus:outline-none focus:border focus:border-green-700 border-gray-300 border shadow",attrs:{id:"password",type:"password",required:"",autocomplete:"current-password"},domProps:{value:t.form.password},on:{input:function(e){e.target.composing||t.$set(t.form,"password",e.target.value)}}})]),t._v(" "),s("div",{staticClass:"w-full flex flex-col mt-5"},[s("label",{staticClass:"text-sm leading-tight",attrs:{for:"password_confirmation"}},[t._v(t._s(t.__("Confirm Password")))]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.form.password_confirmation,expression:"form.password_confirmation"}],staticClass:"h-10 px-2 w-full rounded mt-2 text-gray-600 focus:outline-none focus:border focus:border-green-700 border-gray-300 border shadow",attrs:{id:"password_confirmation",type:"password",required:"",autocomplete:"current-password"},domProps:{value:t.form.password_confirmation},on:{input:function(e){e.target.composing||t.$set(t.form,"password_confirmation",e.target.value)}}})])])]),t._v(" "),s("div",{staticClass:"flex items-center mt-8"},[s("arc-button",{staticClass:"h-10 w-full justify-center rounded bg-primary hover:opacity-90",class:{"opacity-25":t.form.processing},attrs:{disabled:t.form.processing}},[t._v("\n                "+t._s(t.__("Register"))+"\n            ")])],1)]),t._v(" "),s("div",{staticClass:"my-6 flex items-center justify-between"},[s("span",{staticClass:"border-b dark:border-gray-600 w-1/5 md:w-1/4"}),t._v(" "),s("span",{staticClass:"text-xs text-gray-500 dark:text-gray-400 uppercase"},[t._v(t._s(t.__("or")))]),t._v(" "),s("span",{staticClass:"border-b dark:border-gray-600 w-1/5 md:w-1/4"})]),t._v(" "),s("div",{staticClass:"mb-6 text-sm text-center"},[s("span",[t._v(t._s(t.__("Already registered?"))+" ")]),t._v(" "),s("inertia-link",{staticClass:"underline text-secondary",attrs:{href:t.route("login")}},[t._v(t._s(t.__("Login")))])],1)],1)}),[],!1,null,null,null).exports},5318:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>c});var r=s(8912),a=s(9881),i=s(6173),n=s(9684),o=s(1334);const l={components:{ArcAuthenticationCard:r.Z,ArcButton:a.Z,ArcInput:i.Z,ArcLabel:n.Z,ArcValidationErrors:o.Z},props:{email:String,token:String},data:function(){return{form:this.$inertia.form({token:this.token,email:this.email,password:"",password_confirmation:""})}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return"Reset Password - "+this.$page.props.general.app_name}},methods:{submit:function(){var t=this;this.form.post(this.route("password.update"),{onFinish:function(){return t.form.reset("password","password_confirmation")}})}}};const c=(0,s(1900).Z)(l,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("arc-authentication-card",{scopedSlots:t._u([{key:"logo",fn:function(){return[s("inertia-link",{attrs:{href:t.route("welcome")}},[s("img",{staticClass:"h-12",attrs:{src:t.$page.props.assetUrl+t.$page.props.general.logo_path,alt:t.$page.props.general.app_name}})])]},proxy:!0}])},[t._v(" "),s("arc-validation-errors",{staticClass:"mb-4"}),t._v(" "),s("form",{on:{submit:function(e){return e.preventDefault(),t.submit(e)}}},[s("div",[s("arc-label",{attrs:{for:"email",value:t.__("Email")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"email",type:"email",required:"",autofocus:""},model:{value:t.form.email,callback:function(e){t.$set(t.form,"email",e)},expression:"form.email"}})],1),t._v(" "),s("div",{staticClass:"mt-4"},[s("arc-label",{attrs:{for:"password",value:t.__("Password")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"password",type:"password",required:"",autocomplete:"new-password"},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}})],1),t._v(" "),s("div",{staticClass:"mt-4"},[s("arc-label",{attrs:{for:"password_confirmation",value:t.__("Confirm Password")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"password_confirmation",type:"password",required:"",autocomplete:"new-password"},model:{value:t.form.password_confirmation,callback:function(e){t.$set(t.form,"password_confirmation",e)},expression:"form.password_confirmation"}})],1),t._v(" "),s("div",{staticClass:"flex items-center justify-end mt-4"},[s("arc-button",{class:{"opacity-25":t.form.processing},attrs:{disabled:t.form.processing}},[t._v("\n                "+t._s(t.__("Reset Password"))+"\n            ")])],1)])],1)}),[],!1,null,null,null).exports},5470:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>u});var r=s(8912),a=s(8370),i=s(9881),n=s(6173),o=s(9684),l=s(1334);const c={components:{ArcAuthenticationCard:r.Z,ArcAuthenticationCardLogo:a.Z,ArcButton:i.Z,ArcInput:n.Z,ArcLabel:o.Z,ArcValidationErrors:l.Z},data:function(){return{recovery:!1,form:this.$inertia.form({code:"",recovery_code:""})}},methods:{toggleRecovery:function(){var t=this;this.recovery^=!0,this.$nextTick((function(){t.recovery?(t.$refs.recovery_code.focus(),t.form.code=""):(t.$refs.code.focus(),t.form.recovery_code="")}))},submit:function(){this.form.post(this.route("two-factor.login"))}}};const u=(0,s(1900).Z)(c,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("arc-authentication-card",{scopedSlots:t._u([{key:"logo",fn:function(){return[s("arc-authentication-card-logo")]},proxy:!0}])},[t._v(" "),s("div",{staticClass:"mb-4  text-gray-600"},[t.recovery?[t._v("\n            Please confirm access to your account by entering one of your emergency recovery codes.\n        ")]:[t._v("\n            Please confirm access to your account by entering the authentication code provided by your authenticator application.\n        ")]],2),t._v(" "),s("arc-validation-errors",{staticClass:"mb-4"}),t._v(" "),s("form",{on:{submit:function(e){return e.preventDefault(),t.submit(e)}}},[t.recovery?s("div",[s("arc-label",{attrs:{for:"recovery_code",value:"Recovery Code"}}),t._v(" "),s("arc-input",{ref:"recovery_code",staticClass:"mt-1 block w-full",attrs:{id:"recovery_code",type:"text",autocomplete:"one-time-code"},model:{value:t.form.recovery_code,callback:function(e){t.$set(t.form,"recovery_code",e)},expression:"form.recovery_code"}})],1):s("div",[s("arc-label",{attrs:{for:"code",value:"Code"}}),t._v(" "),s("arc-input",{ref:"code",staticClass:"mt-1 block w-full",attrs:{id:"code",type:"text",inputmode:"numeric",autofocus:"",autocomplete:"one-time-code"},model:{value:t.form.code,callback:function(e){t.$set(t.form,"code",e)},expression:"form.code"}})],1),t._v(" "),s("div",{staticClass:"flex items-center justify-end mt-4"},[s("button",{staticClass:" text-gray-600 hover:text-gray-900 underline cursor-pointer",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.toggleRecovery(e)}}},[t.recovery?[t._v("\n                    Use an authentication code\n                ")]:[t._v("\n                    Use a recovery code\n                ")]],2),t._v(" "),s("arc-button",{staticClass:"ml-4",class:{"opacity-25":t.form.processing},attrs:{disabled:t.form.processing}},[t._v("\n                Login\n            ")])],1)])],1)}),[],!1,null,null,null).exports},3098:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>o});var r=s(8912),a=s(9881),i=s(5591);const n={components:{ArcAuthenticationCard:r.Z,ArcButton:a.Z,ApplicationLogo:i.Z},props:{status:String},data:function(){return{form:this.$inertia.form()}},metaInfo:function(){return{title:this.title}},methods:{submit:function(){this.form.post(this.route("verification.send"))}},computed:{verificationLinkSent:function(){return"verification-link-sent"===this.status},title:function(){return"Verification Email - "+this.$page.props.general.app_name}}};const o=(0,s(1900).Z)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("arc-authentication-card",{scopedSlots:t._u([{key:"logo",fn:function(){return[s("application-logo")]},proxy:!0}])},[t._v(" "),s("div",{staticClass:"mb-4 text-sm text-gray-600"},[t._v("\n        "+t._s(t.__("verify_email_message"))+"\n    ")]),t._v(" "),t.verificationLinkSent?s("div",{staticClass:"mb-4 font-medium text-sm text-green-600"},[t._v("\n        "+t._s(t.__("verification_link_sent"))+"\n    ")]):t._e(),t._v(" "),s("form",{on:{submit:function(e){return e.preventDefault(),t.submit(e)}}},[s("div",{staticClass:"mt-4 flex items-center justify-between"},[s("arc-button",{class:{"opacity-25":t.form.processing},attrs:{disabled:t.form.processing}},[t._v("\n                "+t._s(t.__("Resend Verification Email"))+"\n            ")]),t._v(" "),s("inertia-link",{staticClass:"underline text-sm text-gray-600 hover:text-gray-900",attrs:{href:t.route("logout"),method:"post",as:"button"}},[t._v(t._s(t.__("Logout")))])],1)])])}),[],!1,null,null,null).exports},254:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>l});var r=s(67),a=s(3532),i=s(8065),n=s(9594);const o={components:{AdminLayout:r.Z,DashboardStat:a.Z,AdminQuickLinks:i.Z,AdminHelp:n.Z},props:{stats:Array},metaInfo:function(){return{title:this.title}},computed:{title:function(){return"Dashboard - "+this.$page.props.general.app_name+" Instructor"}}};const l=(0,s(1900).Z)(o,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("admin-layout",[s("div",{staticClass:"container mx-auto py-4 px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"flex flex-wrap mb-6"},[s("div",{staticClass:"w-full"},[s("div",{staticClass:"w-full grid sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-8"},t._l(t.stats,(function(t){return s("dashboard-stat",{key:t.key,attrs:{title:t.title,count:t.count}})})),1)])]),t._v(" "),s("div",{staticClass:"flex flex-wrap mb-6"},[s("div",{staticClass:"w-full"},[s("div",{staticClass:"w-full grid sm:grid-cols-1 md:grid-cols-2 gap-8"},[s("admin-help"),t._v(" "),s("admin-quick-links")],1)])])])])}),[],!1,null,null,null).exports},447:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});const r={props:["policy"],components:{ArcAuthenticationCardLogo:s(8370).Z}};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"font-sans text-gray-900 antialiased"},[s("div",{staticClass:"pt-4 bg-gray-100"},[s("div",{staticClass:"min-h-screen flex flex-col items-center pt-6 sm:pt-0"},[s("div",[s("arc-authentication-card-logo")],1),t._v(" "),s("div",{staticClass:"w-full sm:max-w-2xl mt-6 p-6 bg-white shadow-md overflow-hidden sm:rounded-lg prose",domProps:{innerHTML:t._s(t.policy)}})])])])}),[],!1,null,null,null).exports},2321:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>u});var r=s(8e3),a=s(4354),i=s(9584),n=s(6173),o=s(3473),l=s(7414);const c={components:{ArcActionSection:r.Z,ArcDangerButton:i.Z,ArcDialogModal:a.Z,ArcInput:n.Z,ArcInputError:o.Z,ArcSecondaryButton:l.Z},data:function(){return{confirmingUserDeletion:!1,form:this.$inertia.form({password:""})}},methods:{confirmUserDeletion:function(){var t=this;this.confirmingUserDeletion=!0,setTimeout((function(){return t.$refs.password.focus()}),250)},deleteUser:function(){var t=this;this.form.delete(route("current-user.destroy"),{preserveScroll:!0,onSuccess:function(){return t.closeModal()},onError:function(){return t.$refs.password.focus()},onFinish:function(){return t.form.reset()}})},closeModal:function(){this.confirmingUserDeletion=!1,this.form.reset()}}};const u=(0,s(1900).Z)(c,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("arc-action-section",{scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n        Delete Account\n    ")]},proxy:!0},{key:"description",fn:function(){return[t._v("\n        Permanently delete your account.\n    ")]},proxy:!0},{key:"content",fn:function(){return[s("div",{staticClass:"max-w-xl  text-gray-600"},[t._v("\n            Once your account is deleted, all of its resources and data will be permanently deleted. Before deleting your account, please download any data or information that you wish to retain.\n        ")]),t._v(" "),s("div",{staticClass:"mt-5"},[s("arc-danger-button",{nativeOn:{click:function(e){return t.confirmUserDeletion(e)}}},[t._v("\n                Delete Account\n            ")])],1),t._v(" "),s("arc-dialog-modal",{attrs:{show:t.confirmingUserDeletion},on:{close:t.closeModal},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n                Delete Account\n            ")]},proxy:!0},{key:"content",fn:function(){return[t._v("\n                Are you sure you want to delete your account? Once your account is deleted, all of its resources and data will be permanently deleted. Please enter your password to confirm you would like to permanently delete your account.\n\n                "),s("div",{staticClass:"mt-4"},[s("arc-input",{ref:"password",staticClass:"mt-1 block w-3/4",attrs:{type:"password",placeholder:"Password"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.deleteUser(e)}},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.password}})],1)]},proxy:!0},{key:"footer",fn:function(){return[s("arc-secondary-button",{nativeOn:{click:function(e){return t.closeModal(e)}}},[t._v("\n                    Nevermind\n                ")]),t._v(" "),s("arc-danger-button",{staticClass:"ml-2",class:{"opacity-25":t.form.processing},attrs:{disabled:t.form.processing},nativeOn:{click:function(e){return t.deleteUser(e)}}},[t._v("\n                    Delete Account\n                ")])]},proxy:!0}])})]},proxy:!0}])})}),[],!1,null,null,null).exports},6540:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>d});var r=s(4820),a=s(8e3),i=s(9881),n=s(4354),o=s(6173),l=s(3473),c=s(7414);const u={props:["sessions"],components:{ArcActionMessage:r.Z,ArcActionSection:a.Z,ArcButton:i.Z,ArcDialogModal:n.Z,ArcInput:o.Z,ArcInputError:l.Z,ArcSecondaryButton:c.Z},data:function(){return{confirmingLogout:!1,form:this.$inertia.form({password:""})}},methods:{confirmLogout:function(){var t=this;this.confirmingLogout=!0,setTimeout((function(){return t.$refs.password.focus()}),250)},logoutOtherBrowserSessions:function(){var t=this;this.form.delete(route("other-browser-sessions.destroy"),{preserveScroll:!0,onSuccess:function(){return t.closeModal()},onError:function(){return t.$refs.password.focus()},onFinish:function(){return t.form.reset()}})},closeModal:function(){this.confirmingLogout=!1,this.form.reset()}}};const d=(0,s(1900).Z)(u,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("arc-action-section",{scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n        "+t._s(t.__("Browser Sessions"))+"\n    ")]},proxy:!0},{key:"content",fn:function(){return[s("div",{staticClass:"max-w-xl text-sm text-gray-600"},[t._v("\n            "+t._s(t.__("browser_session_message"))+"\n        ")]),t._v(" "),t.sessions.length>0?s("div",{staticClass:"mt-5 space-y-6"},t._l(t.sessions,(function(e,r){return s("div",{key:r,staticClass:"flex items-center"},[s("div",[e.agent.is_desktop?s("svg",{staticClass:"w-8 h-8 text-gray-500",attrs:{fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24",stroke:"currentColor"}},[s("path",{attrs:{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"}})]):s("svg",{staticClass:"w-8 h-8 text-gray-500",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[s("path",{attrs:{d:"M0 0h24v24H0z",stroke:"none"}}),s("rect",{attrs:{x:"7",y:"4",width:"10",height:"16",rx:"1"}}),s("path",{attrs:{d:"M11 5h2M12 17v.01"}})])]),t._v(" "),s("div",{staticClass:"ml-3"},[s("div",{staticClass:" text-gray-600"},[t._v("\n                        "+t._s(e.agent.platform)+" - "+t._s(e.agent.browser)+"\n                    ")]),t._v(" "),s("div",[s("div",{staticClass:"text-xs text-gray-500"},[t._v("\n                            "+t._s(e.ip_address)+",\n\n                            "),e.is_current_device?s("span",{staticClass:"text-green-500 font-semibold"},[t._v("This device")]):s("span",[t._v("Last active "+t._s(e.last_active))])])])])])})),0):t._e(),t._v(" "),s("div",{staticClass:"flex items-center mt-5"},[s("arc-button",{nativeOn:{click:function(e){return t.confirmLogout(e)}}},[t._v("\n                "+t._s(t.__("Logout Other Browser Sessions"))+"\n            ")]),t._v(" "),s("arc-action-message",{staticClass:"ml-3",attrs:{on:t.form.recentlySuccessful}},[t._v("\n                "+t._s(t.__("Done"))+".\n            ")])],1),t._v(" "),s("arc-dialog-modal",{attrs:{show:t.confirmingLogout},on:{close:t.closeModal},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n                "+t._s(t.__("Logout Other Browser Sessions"))+"\n            ")]},proxy:!0},{key:"content",fn:function(){return[t._v("\n                "+t._s(t.__("browser_session_consent"))+"\n\n                "),s("div",{staticClass:"mt-4"},[s("arc-input",{ref:"password",staticClass:"mt-1 block w-3/4",attrs:{type:"password",placeholder:"Password"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.logoutOtherBrowserSessions(e)}},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.password}})],1)]},proxy:!0},{key:"footer",fn:function(){return[s("arc-secondary-button",{nativeOn:{click:function(e){return t.closeModal(e)}}},[t._v("\n                    "+t._s(t.__("Nevermind"))+"\n                ")]),t._v(" "),s("arc-button",{staticClass:"ml-2",class:{"opacity-25":t.form.processing},attrs:{disabled:t.form.processing},nativeOn:{click:function(e){return t.logoutOtherBrowserSessions(e)}}},[t._v("\n                    "+t._s(t.__("Logout Other Browser Sessions"))+"\n                ")])]},proxy:!0}])})]},proxy:!0}])})}),[],!1,null,null,null).exports},9039:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>p});var r=s(4356),a=s(67),i=s(2321),n=s(1840),o=s(6540),l=s(2376),c=s(1637),u=s(5765);const d={props:["sessions"],components:{AppLayout:r.Z,AdminLayout:a.Z,DeleteUserForm:i.default,ArcSectionBorder:n.Z,LogoutOtherBrowserSessionsForm:o.default,TwoFactorAuthenticationForm:l.default,UpdatePasswordForm:c.default,UpdateProfileInformationForm:u.default},metaInfo:function(){return{title:this.title}},computed:{title:function(){return"User Profile - "+this.$page.props.general.app_name},isAdmin:function(){return this.$page.props.isAdmin}}};const p=(0,s(1900).Z)(d,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[t.isAdmin?t._e():s("app-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v("\n                "+t._s(t.__("Profile"))+"\n            ")])]},proxy:!0}],null,!1,1833479166)},[t._v(" "),s("div",[s("div",{staticClass:"max-w-7xl mx-auto py-10 sm:px-6 lg:px-8"},[t.$page.props.jetstream.canUpdateProfileInformation?s("div",[s("update-profile-information-form",{attrs:{user:t.$page.props.user}}),t._v(" "),s("arc-section-border")],1):t._e(),t._v(" "),t.$page.props.jetstream.canUpdatePassword?s("div",[s("update-password-form",{staticClass:"mt-10 sm:mt-0"}),t._v(" "),s("arc-section-border")],1):t._e(),t._v(" "),!t.$page.props.isDemo&&t.$page.props.jetstream.canManageTwoFactorAuthentication?s("div",[s("two-factor-authentication-form",{staticClass:"mt-10 sm:mt-0"}),t._v(" "),s("arc-section-border")],1):t._e(),t._v(" "),t.$page.props.isDemo?t._e():s("logout-other-browser-sessions-form",{staticClass:"mt-10 sm:mt-0",attrs:{sessions:t.sessions}}),t._v(" "),t.$page.props.jetstream.hasAccountDeletionFeatures?[s("arc-section-border"),t._v(" "),s("delete-user-form",{staticClass:"mt-10 sm:mt-0"})]:t._e()],2)])]),t._v(" "),t.isAdmin?s("admin-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v("\n                "+t._s(t.__("Profile"))+"\n            ")])]},proxy:!0}],null,!1,1833479166)},[t._v(" "),s("div",[s("div",{staticClass:"max-w-7xl mx-auto py-10 sm:px-6 lg:px-8"},[t.$page.props.jetstream.canUpdateProfileInformation?s("div",[s("update-profile-information-form",{attrs:{user:t.$page.props.user}}),t._v(" "),s("arc-section-border")],1):t._e(),t._v(" "),t.$page.props.jetstream.canUpdatePassword?s("div",[s("update-password-form",{staticClass:"mt-10 sm:mt-0"}),t._v(" "),s("arc-section-border")],1):t._e(),t._v(" "),!t.$page.props.isDemo&&t.$page.props.jetstream.canManageTwoFactorAuthentication?s("div",[s("two-factor-authentication-form",{staticClass:"mt-10 sm:mt-0"}),t._v(" "),s("arc-section-border")],1):t._e(),t._v(" "),t.$page.props.isDemo?t._e():s("div",[s("logout-other-browser-sessions-form",{staticClass:"mt-10 sm:mt-0",attrs:{sessions:t.sessions}})],1),t._v(" "),t.$page.props.jetstream.hasAccountDeletionFeatures?[s("arc-section-border"),t._v(" "),s("delete-user-form",{staticClass:"mt-10 sm:mt-0"})]:t._e()],2)])]):t._e()],1)}),[],!1,null,null,null).exports},2376:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>c});var r=s(8e3),a=s(9881),i=s(2943),n=s(9584),o=s(7414);const l={components:{ArcActionSection:r.Z,ArcButton:a.Z,ArcConfirmsPassword:i.Z,ArcDangerButton:n.Z,ArcSecondaryButton:o.Z},data:function(){return{enabling:!1,disabling:!1,qrCode:null,recoveryCodes:[]}},methods:{enableTwoFactorAuthentication:function(){var t=this;this.enabling=!0,this.$inertia.post("/user/two-factor-authentication",{},{preserveScroll:!0,onSuccess:function(){return Promise.all([t.showQrCode(),t.showRecoveryCodes()])},onFinish:function(){return t.enabling=!1}})},showQrCode:function(){var t=this;return axios.get("/user/two-factor-qr-code").then((function(e){t.qrCode=e.data.svg}))},showRecoveryCodes:function(){var t=this;return axios.get("/user/two-factor-recovery-codes").then((function(e){t.recoveryCodes=e.data}))},regenerateRecoveryCodes:function(){var t=this;axios.post("/user/two-factor-recovery-codes").then((function(e){t.showRecoveryCodes()}))},disableTwoFactorAuthentication:function(){var t=this;this.disabling=!0,this.$inertia.delete("/user/two-factor-authentication",{preserveScroll:!0,onSuccess:function(){return t.disabling=!1}})}},computed:{twoFactorEnabled:function(){return!this.enabling&&this.$page.props.user.two_factor_enabled}}};const c=(0,s(1900).Z)(l,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("arc-action-section",{scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n        "+t._s(t.__("Two Factor Authentication"))+"\n    ")]},proxy:!0},{key:"content",fn:function(){return[t.twoFactorEnabled?s("h3",{staticClass:"text-lg font-medium text-gray-900"},[t._v("\n            "+t._s(t.__("You have enabled two factor authentication"))+".\n        ")]):s("h3",{staticClass:"text-lg font-medium text-gray-900"},[t._v("\n            "+t._s(t.__("You have not enabled two factor authentication"))+".\n        ")]),t._v(" "),s("div",{staticClass:"mt-3 max-w-xl text-sm text-gray-600"},[s("p",[t._v("\n                "+t._s(t.__("two_factor_message"))+"\n            ")])]),t._v(" "),t.twoFactorEnabled?s("div",[t.qrCode?s("div",[s("div",{staticClass:"mt-4 max-w-xl  text-gray-600"},[s("p",{staticClass:"font-semibold"},[t._v("\n                        "+t._s(t.__("tfa_qr_message"))+"\n                    ")])]),t._v(" "),s("div",{staticClass:"mt-4 dark:p-4 dark:w-56 dark:bg-white",domProps:{innerHTML:t._s(t.qrCode)}})]):t._e(),t._v(" "),t.recoveryCodes.length>0?s("div",[s("div",{staticClass:"mt-4 max-w-xl  text-gray-600"},[s("p",{staticClass:"font-semibold"},[t._v("\n                        "+t._s(t.__("tfa_recovery_message"))+"\n                    ")])]),t._v(" "),s("div",{staticClass:"grid gap-1 max-w-xl mt-4 px-4 py-4 font-mono  bg-gray-100 rounded-lg"},t._l(t.recoveryCodes,(function(e){return s("div",{key:e},[t._v("\n                        "+t._s(e)+"\n                    ")])})),0)]):t._e()]):t._e(),t._v(" "),s("div",{staticClass:"mt-5"},[t.twoFactorEnabled?s("div",[s("arc-confirms-password",{on:{confirmed:t.regenerateRecoveryCodes}},[t.recoveryCodes.length>0?s("arc-secondary-button",{staticClass:"mr-3"},[t._v("\n                        "+t._s(t.__("Regenerate Recovery Codes"))+"\n                    ")]):t._e()],1),t._v(" "),s("arc-confirms-password",{on:{confirmed:t.showRecoveryCodes}},[0===t.recoveryCodes.length?s("arc-secondary-button",{staticClass:"mr-3"},[t._v("\n                        "+t._s(t.__("Show Recovery Codes"))+"\n                    ")]):t._e()],1),t._v(" "),s("arc-confirms-password",{on:{confirmed:t.disableTwoFactorAuthentication}},[s("arc-danger-button",{class:{"opacity-25":t.disabling},attrs:{disabled:t.disabling}},[t._v("\n                        "+t._s(t.__("Disable"))+"\n                    ")])],1)],1):s("div",[s("arc-confirms-password",{on:{confirmed:t.enableTwoFactorAuthentication}},[s("arc-button",{class:{"opacity-25":t.enabling},attrs:{type:"button",disabled:t.enabling}},[t._v("\n                        "+t._s(t.__("Enable"))+"\n                    ")])],1)],1)])]},proxy:!0}])})}),[],!1,null,null,null).exports},1637:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>u});var r=s(4820),a=s(9881),i=s(341),n=s(6173),o=s(3473),l=s(9684);const c={components:{ArcActionMessage:r.Z,ArcButton:a.Z,ArcFormSection:i.Z,ArcInput:n.Z,ArcInputError:o.Z,ArcLabel:l.Z},data:function(){return{form:this.$inertia.form({current_password:"",password:"",password_confirmation:""})}},methods:{updatePassword:function(){var t=this;this.form.put(route("user-password.update"),{errorBag:"updatePassword",preserveScroll:!0,onSuccess:function(){return t.form.reset()},onError:function(){t.form.errors.password&&(t.form.reset("password","password_confirmation"),t.$refs.password.focus()),t.form.errors.current_password&&(t.form.reset("current_password"),t.$refs.current_password.focus())}})}}};const u=(0,s(1900).Z)(c,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("arc-form-section",{on:{submitted:t.updatePassword},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n        "+t._s(t.__("Update Password"))+"\n    ")]},proxy:!0},{key:"form",fn:function(){return[s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"current_password",value:t.__("Current Password")}}),t._v(" "),s("arc-input",{ref:"current_password",staticClass:"mt-1 block w-full",attrs:{id:"current_password",type:"password",autocomplete:"current-password"},model:{value:t.form.current_password,callback:function(e){t.$set(t.form,"current_password",e)},expression:"form.current_password"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.current_password}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"password",value:t.__("New Password")}}),t._v(" "),s("arc-input",{ref:"password",staticClass:"mt-1 block w-full",attrs:{id:"password",type:"password",autocomplete:"new-password"},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.password}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"password_confirmation",value:t.__("Confirm Password")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"password_confirmation",type:"password",autocomplete:"new-password"},model:{value:t.form.password_confirmation,callback:function(e){t.$set(t.form,"password_confirmation",e)},expression:"form.password_confirmation"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.password_confirmation}})],1)]},proxy:!0},{key:"actions",fn:function(){return[s("arc-action-message",{staticClass:"mr-3",attrs:{on:t.form.recentlySuccessful}},[t._v("\n            "+t._s(t.__("Saved"))+".\n        ")]),t._v(" "),s("arc-button",{class:{"opacity-25":t.form.processing},attrs:{disabled:t.form.processing}},[t._v("\n            "+t._s(t.__("Save"))+"\n        ")])]},proxy:!0}])})}),[],!1,null,null,null).exports},5765:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>d});var r=s(9881),a=s(341),i=s(6173),n=s(3473),o=s(9684),l=s(4820),c=s(7414);const u={components:{ArcActionMessage:l.Z,ArcButton:r.Z,ArcFormSection:a.Z,ArcInput:i.Z,ArcInputError:n.Z,ArcLabel:o.Z,ArcSecondaryButton:c.Z},props:["user"],data:function(){return{form:this.$inertia.form({_method:"PUT",first_name:this.user.first_name,last_name:this.user.last_name,email:this.user.email,photo:null}),photoPreview:null}},methods:{updateProfileInformation:function(){this.$refs.photo&&(this.form.photo=this.$refs.photo.files[0]),this.form.post(route("user-profile-information.update"),{errorBag:"updateProfileInformation",preserveScroll:!0})},selectNewPhoto:function(){this.$refs.photo.click()},updatePhotoPreview:function(){var t=this,e=new FileReader;e.onload=function(e){t.photoPreview=e.target.result},e.readAsDataURL(this.$refs.photo.files[0])},deletePhoto:function(){var t=this;this.$inertia.delete(route("current-user-photo.destroy"),{preserveScroll:!0,onSuccess:function(){return t.photoPreview=null}})}}};const d=(0,s(1900).Z)(u,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("arc-form-section",{on:{submitted:t.updateProfileInformation},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n        "+t._s(t.__("Profile Information"))+"\n    ")]},proxy:!0},{key:"form",fn:function(){return[t.$page.props.jetstream.managesProfilePhotos?s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("input",{ref:"photo",staticClass:"hidden",attrs:{type:"file"},on:{change:t.updatePhotoPreview}}),t._v(" "),s("arc-label",{attrs:{for:"photo",value:t.__("Photo")}}),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:!t.photoPreview,expression:"! photoPreview"}],staticClass:"mt-2"},[s("img",{staticClass:"rounded-full h-20 w-20 object-cover",attrs:{src:t.user.profile_photo_url,alt:t.user.name}})]),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.photoPreview,expression:"photoPreview"}],staticClass:"mt-2"},[s("span",{staticClass:"block rounded-full w-20 h-20",style:"background-size: cover; background-repeat: no-repeat; background-position: center center; background-image: url('"+t.photoPreview+"');"})]),t._v(" "),s("arc-secondary-button",{staticClass:"mt-2 ltr:mr-2 rtl:ml-2",attrs:{type:"button"},nativeOn:{click:function(e){return e.preventDefault(),t.selectNewPhoto(e)}}},[t._v("\n                "+t._s(t.__("Select A New Photo"))+"\n            ")]),t._v(" "),t.user.profile_photo_path?s("arc-secondary-button",{staticClass:"mt-2",attrs:{type:"button"},nativeOn:{click:function(e){return e.preventDefault(),t.deletePhoto(e)}}},[t._v("\n                "+t._s(t.__("Remove Photo"))+"\n            ")]):t._e(),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.photo}})],1):t._e(),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"first_name",value:t.__("First Name")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"first_name",type:"text",autocomplete:"first_name"},model:{value:t.form.first_name,callback:function(e){t.$set(t.form,"first_name",e)},expression:"form.first_name"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.first_name}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"last_name",value:t.__("Last Name")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"last_name",type:"text",autocomplete:"last_name"},model:{value:t.form.last_name,callback:function(e){t.$set(t.form,"last_name",e)},expression:"form.last_name"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.last_name}})],1),t._v(" "),s("div",{staticClass:"col-span-6 sm:col-span-4"},[s("arc-label",{attrs:{for:"email",value:t.__("Email")}}),t._v(" "),s("arc-input",{staticClass:"mt-1 block w-full",attrs:{id:"email",type:"email"},model:{value:t.form.email,callback:function(e){t.$set(t.form,"email",e)},expression:"form.email"}}),t._v(" "),s("arc-input-error",{staticClass:"mt-2",attrs:{message:t.form.errors.email}})],1)]},proxy:!0},{key:"actions",fn:function(){return[s("arc-action-message",{staticClass:"mr-3",attrs:{on:t.form.recentlySuccessful}},[t._v("\n            "+t._s(t.__("Saved"))+".\n        ")]),t._v(" "),s("arc-button",{class:{"opacity-25":t.form.processing},attrs:{disabled:t.form.processing}},[t._v("\n            "+t._s(t.__("Save"))+"\n        ")])]},proxy:!0}])})}),[],!1,null,null,null).exports},5620:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});const r={props:["terms"],components:{ArcAuthenticationCardLogo:s(8370).Z}};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"font-sans text-gray-900 antialiased"},[s("div",{staticClass:"pt-4 bg-gray-100"},[s("div",{staticClass:"min-h-screen flex flex-col items-center pt-6 sm:pt-0"},[s("div",[s("jet-authentication-card-logo")],1),t._v(" "),s("div",{staticClass:"w-full sm:max-w-2xl mt-6 p-6 bg-white shadow-md overflow-hidden sm:rounded-lg prose",domProps:{innerHTML:t._s(t.terms)}})])])])}),[],!1,null,null,null).exports},600:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>p});var r=s(4356);const a={name:"SubCategoryCard",props:{category:Object}};var i=s(1900);const n=(0,i.Z)(a,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card w-full cursor-pointer hover:shadow-lg"},[s("inertia-link",{attrs:{href:t.route("practice_skills",{category:t.category.slug})}},[s("div",{staticClass:"card-body h-28 flex flex-col justify-center items-center"},[s("div",{staticClass:"font-semibold mb-2"},[t._v(t._s(t.category.name))]),t._v(" "),s("div",{staticClass:"flex items-center justify-center bg-green-100 rounded"},[s("p",{staticClass:"text-xs leading-loose text-center text-green-700 px-2"},[t._v(t._s(t.category.category)+" "+t._s(t.category.type))])])])])],1)}),[],!1,null,null,null).exports;const o={name:"PracticeSessionCard",props:{practiceSession:Object}};const l=(0,i.Z)(o,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"w-full flex flex-col justify-between items-start rounded shadow bg-white py-6 px-6 hover:shadow-lg"},[s("div",{staticClass:"flex items-center justify-center bg-green-100 rounded mb-1"},[s("p",{staticClass:"font-mono text-xs leading-loose text-center text-green-700 px-2"},[t._v(t._s(t.practiceSession.skill))])]),t._v(" "),s("h1",{staticClass:"text-lg font-semibold text-gray-800 leading-5 py-2"},[t._v(t._s(t.practiceSession.title))]),t._v(" "),s("div",{staticClass:"w-full bg-gray-300 h-1 mr-1 relative rounded mt-4"},[s("div",{staticClass:"h-1 bg-green-700 rounded",style:"width: "+t.practiceSession.percentage_completed+"%"})]),t._v(" "),s("div",{staticClass:"w-full flex items-end justify-between mt-4"},[s("h2",{staticClass:"font-mono text-gray-600 text-sm"},[t._v(t._s(t.practiceSession.percentage_completed)+"% "+t._s(t.__("Completed")))]),t._v(" "),t._t("action")],2)])}),[],!1,null,null,null).exports;var c=s(5990),u=s(2948);const d={components:{AppLayout:r.Z,SubCategoryCard:n,PracticeSessionCard:l,QuizScheduleCard:c.Z,EmptyStudentCard:u.Z},props:{practiceSessions:Array,quizSchedules:Array},metaInfo:function(){return{title:this.title}},computed:{title:function(){return"User Dashboard - "+this.$page.props.general.app_name}}};const p=(0,i.Z)(d,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("app-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v(t._s(t.__("Dashboard")))])]},proxy:!0}])},[t._v(" "),s("div",{staticClass:"py-8"},[s("div",{staticClass:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"flex flex-col items-center"},[s("div",{staticClass:"w-full sm:w-2/3"},[s("div",{staticClass:"flex justify-between items-center mb-4"},[s("div",{staticClass:"relative inline-flex"},[s("h4",{staticClass:"py-4 px-4 text-xl font-semibold leading-tight text-gray-800"},[t._v(t._s(t.__("Live Quizzes")))]),t._v(" "),s("span",{staticClass:"flex absolute h-3 w-3 top-4 ltr:-right-1 rtl:-left-1"},[s("span",{staticClass:"animate-ping absolute inline-flex h-full w-full rounded-full bg-yellow-500 opacity-75"}),t._v(" "),s("span",{staticClass:"relative inline-flex rounded-full h-3 w-3 bg-yellow-500"})])]),t._v(" "),s("inertia-link",{staticClass:"px-4",attrs:{href:t.route("live_quizzes")}},[s("span",{staticClass:"text-sm font-semibold text-green-500 underline"},[t._v(t._s(t.__("View All")))])])],1),t._v(" "),t.quizSchedules.length>0?s("div",{staticClass:"grid grid-cols-1 sm:grid-cols-2 gap-4 px-4 mb-6"},[t._l(t.quizSchedules,(function(e,r){return[s("quiz-schedule-card",{attrs:{quiz:e},scopedSlots:t._u([{key:"action",fn:function(){return[s("inertia-link",{attrs:{href:t.route("quiz_schedule_instructions",{quiz:e.slug,schedule:e.code})}},[s("span",{staticClass:"qt-btn qt-btn-sm qt-btn-success"},[t._v(t._s(t.__("Details")))])])]},proxy:!0}],null,!0)})]}))],2):s("div",{staticClass:"mb-6"},[s("empty-student-card",{attrs:{title:"No Scheduled Quizzes for You"}})],1),t._v(" "),s("div",{staticClass:"flex"},[s("div",{staticClass:"relative inline-flex"},[s("h4",{staticClass:"py-4 px-4 text-xl font-semibold leading-tight text-gray-800 mb-4"},[t._v(t._s(t.__("Continue Practice")))])])]),t._v(" "),t.practiceSessions.length>0?s("div",{staticClass:"grid grid-cols-1 sm:grid-cols-2 gap-4 px-4 mb-6"},[t._l(t.practiceSessions,(function(e,r){return[s("practice-session-card",{key:e.code,attrs:{"practice-session":e},scopedSlots:t._u([{key:"action",fn:function(){return[s("inertia-link",{attrs:{href:t.route("init_practice_set",{slug:e.slug})}},[s("span",{staticClass:"qt-btn qt-btn-sm qt-btn-success"},[t._v(t._s(t.__("Resume Practice")))])])]},proxy:!0}],null,!0)})]}))],2):s("div",{staticClass:"mb-6"},[s("empty-student-card",{attrs:{title:t.__("No Practice Sessions Found")},scopedSlots:t._u([{key:"action",fn:function(){return[s("inertia-link",{attrs:{href:t.route("practice_dashboard")}},[s("span",{staticClass:"qt-btn qt-btn-sm qt-btn-primary"},[t._v(t._s(t.__("Start Practice")))])])]},proxy:!0}])})],1)])])])])])}),[],!1,null,null,null).exports},2411:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>u});var r=s(4356),a=s(5990),i=s(2948);const n={name:"QuizScheduleCardShimmer",components:{Skeleton:s(247).default}};var o=s(1900);const l=(0,o.Z)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"bg-white opacity-75 rounded p-4 mb-6"},[s("Skeleton",{staticClass:"mb-2",attrs:{width:"10rem"}}),t._v(" "),s("Skeleton",{attrs:{height:"1rem"}})],1)}),[],!1,null,null,null).exports,c={components:{QuizScheduleCard:a.Z,EmptyStudentCard:i.Z,AppLayout:r.Z,QuizScheduleCardShimmer:l},data:function(){return{schedules:Object,pagination:Object,debounce:null,loading:!1,paginationLoading:!1}},methods:{fetchSchedules:function(){var t=this;t.loading=!0,axios.get(route("fetch_live_quizzes")).then((function(e){var s=e.data.schedules;t.schedules=s.data,t.pagination=s.meta.pagination,t.loading=!1})).catch((function(e){t.loading=!1})).then((function(){t.loading=!1}))},loadMoreSchedules:function(){var t=this;t.paginationLoading=!0,axios.get(this.pagination.links.next).then((function(e){var s=e.data.schedules.data;t.pagination=e.data.schedules.meta.pagination,s.forEach((function(e){return t.schedules.push(e)})),t.paginationLoading=!1})).catch((function(e){t.paginationLoading=!1}))}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return"Live Quizzes - "+this.$page.props.general.app_name}},created:function(){this.fetchSchedules()}};const u=(0,o.Z)(c,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("app-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v(t._s(t.__("Live Quizzes")))])]},proxy:!0}])},[t._v(" "),s("div",{staticClass:"py-8"},[s("div",{staticClass:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"flex flex-col items-center"},[s("div",{staticClass:"w-full sm:w-2/3"},[s("div",{staticClass:"flex justify-between items-center  mb-4"},[s("div",{staticClass:"relative inline-flex"},[s("h4",{staticClass:"py-4 px-4 text-xl font-semibold leading-tight text-gray-800"},[t._v(t._s(t.__("Live Quizzes")))]),t._v(" "),s("span",{staticClass:"flex absolute h-3 w-3 top-4 -right-1"},[s("span",{staticClass:"animate-ping absolute inline-flex h-full w-full rounded-full bg-yellow-500 opacity-75"}),t._v(" "),s("span",{staticClass:"relative inline-flex rounded-full h-3 w-3 bg-yellow-500"})])]),t._v(" "),s("div",{staticClass:"px-4"},[!t.loading&&t.pagination?s("span",{staticClass:"text-sm text-gray-500"},[t._v(t._s(t.pagination.total)+" "+t._s(t.__("Schedules"))+" "+t._s(t.__("Found")))]):t._e()])]),t._v(" "),t.loading?s("div",{staticClass:"grid grid-cols-1 sm:grid-cols-2 gap-4 auto-rows-auto justify-center"},[s("quiz-schedule-card-shimmer"),t._v(" "),s("quiz-schedule-card-shimmer"),t._v(" "),s("quiz-schedule-card-shimmer"),t._v(" "),s("quiz-schedule-card-shimmer")],1):s("div",{staticClass:"grid grid-cols-1 sm:grid-cols-2 gap-4 px-4 mb-6"},[t._l(t.schedules,(function(e,r){return[s("quiz-schedule-card",{attrs:{quiz:e},scopedSlots:t._u([{key:"action",fn:function(){return[s("inertia-link",{attrs:{href:t.route("quiz_schedule_instructions",{quiz:e.slug,schedule:e.code})}},[s("span",{staticClass:"qt-btn qt-btn-sm qt-btn-success"},[t._v(t._s(t.__("Details")))])])]},proxy:!0}],null,!0)})]}))],2),t._v(" "),t.loading||0!==t.schedules.length?t._e():s("div",{staticClass:"mb-6"},[s("empty-student-card",{attrs:{title:"No Schedules Found"}})],1),t._v(" "),!t.loading&&t.pagination&&t.schedules.length!==t.pagination.total?s("div",{staticClass:"flex justify-center items-center"},[s("button",{staticClass:"qt-btn qt-btn-success flex items-center justify-center",on:{click:t.loadMoreSchedules}},[t.paginationLoading?s("span",{staticClass:"text-sm"},[s("i",{staticClass:"pi pi-spin pi-spinner mr-2"}),t._v(" "+t._s(t.__("Fetching")))]):s("span",[t._v(t._s(t.__("Load More")))])])]):t._e(),t._v(" "),!t.loading&&t.pagination&&t.pagination.total_pages===t.pagination.current_page?s("div",{staticClass:"flex text-sm justify-center items-center py-4"},[t._v("\n                        "+t._s(t.__("no_more_data_message"))+"\n                    ")]):t._e()])])])])])}),[],!1,null,null,null).exports},9607:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>u});var r=s(4356),a=s(2948),i=s(543),n=s(3194);function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var s=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==s)return;var r,a,i=[],n=!0,o=!1;try{for(s=s.call(t);!(n=(r=s.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return l(t,e);var s=Object.prototype.toString.call(t).slice(8,-1);"Object"===s&&t.constructor&&(s=t.constructor.name);if("Map"===s||"Set"===s)return Array.from(t);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return l(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,r=new Array(e);s<e;s++)r[s]=t[s];return r}const c={components:{AppLayout:r.Z,EmptyStudentCard:a.Z,ProgressNavigator:i.Z,NoDataTable:n.Z},props:{practiceSessions:Object,steps:Array,errors:Object},data:function(){return{columns:[{label:this.__("Practice Set")+" "+this.__("Name"),field:"name",sortable:!1},{label:this.__("Completed"),field:"completed",sortable:!1},{label:this.__("Total Points Earned"),field:"total_points_earned",sortable:!1},{label:this.__("Actions"),field:"actions",sortable:!1}],options:{enabled:!0,mode:"pages",perPage:this.practiceSessions.meta.pagination.per_page,setCurrentPage:this.practiceSessions.meta.pagination.current_page,perPageDropdown:[10,20,50,100],dropdownAllowAll:!1},serverParams:{columnFilters:{},sort:{field:"",type:""},page:1,perPage:10}}},methods:{updateParams:function(t){this.serverParams=Object.assign({},this.serverParams,t)},onPageChange:function(t){this.updateParams({page:t.currentPage}),this.loadItems()},onPerPageChange:function(t){this.updateParams({perPage:t.currentPerPage}),this.loadItems()},onSortChange:function(t){this.updateParams({sort:[{type:t.sortType,field:this.columns[t.columnIndex].field}]}),this.loadItems()},onColumnFilter:function(t){this.updateParams(t),this.serverParams.page=1,this.loadItems()},getQueryParams:function(){for(var t={page:this.serverParams.page,perPage:this.serverParams.perPage},e=0,s=Object.entries(this.serverParams.columnFilters);e<s.length;e++){var r=o(s[e],2),a=r[0],i=r[1];i&&(t[a]=i)}return t},loadItems:function(){this.$inertia.get(route(route().current()),this.getQueryParams(),{replace:!1,preserveState:!0,preserveScroll:!0})}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return"My Practice Sessions - "+this.$page.props.general.app_name}}};const u=(0,s(1900).Z)(c,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("app-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v(t._s(t.__("My Practice Sessions")))])]},proxy:!0}])},[t._v(" "),s("div",{staticClass:"max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8"},[s("progress-navigator",{attrs:{steps:t.steps}})],1),t._v(" "),s("div",{staticClass:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"card"},[s("div",{staticClass:"card-body"},[s("vue-good-table",{attrs:{mode:"remote","pagination-options":t.options,columns:t.columns,totalRows:t.practiceSessions.meta.pagination.total,rows:t.practiceSessions.data,rtl:t.$page.props.rtl,"line-numbers":!0},on:{"on-page-change":t.onPageChange,"on-column-filter":t.onColumnFilter,"on-per-page-change":t.onPerPageChange},scopedSlots:t._u([{key:"table-row",fn:function(e){return["status"===e.column.field?s("div",[s("span",{class:["Passed"===e.row.status?"badge-success":"badge-danger","badge-sm uppercase text-xs"]},[t._v(t._s(e.row.status))])]):"actions"===e.column.field?s("div",{staticClass:"py-2"},[s("inertia-link",{staticClass:"qt-btn qt-btn-sm qt-btn-success",attrs:{href:t.route("practice_session_analysis",{practiceSet:e.row.slug,session:e.row.id})}},[t._v("\n                                "+t._s(t.__("View Analysis"))+"\n                            ")])],1):s("span",[t._v("\n                                  "+t._s(e.formattedRow[e.column.field])+"\n                                ")])]}}])},[t._v(" "),s("div",{attrs:{slot:"emptystate"},slot:"emptystate"},[s("no-data-table")],1)])],1)])])])}),[],!1,null,null,null).exports},7553:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>d});var r=s(4356),a=s(3194),i=s(543);const n={name:"PracticeSessionCard",props:{quizSession:Object}};var o=s(1900);const l=(0,o.Z)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"w-full flex flex-col justify-between items-start rounded shadow bg-white py-6 px-6 hover:shadow-lg"},[s("div",{staticClass:"flex items-center justify-center bg-green-100 rounded mb-1"},[s("p",{staticClass:"font-mono text-xs leading-loose text-center text-green-700 px-2"},[t._v(t._s(t.quizSession.quizType))])]),t._v(" "),s("h1",{staticClass:"text-lg font-semibold text-gray-800 leading-5 py-2"},[t._v(t._s(t.quizSession.title))]),t._v(" "),s("div",{staticClass:"w-full flex items-end justify-between mt-4"},[t._t("action")],2)])}),[],!1,null,null,null).exports;var c=s(2948);const u={components:{AppLayout:r.Z,NoDataTable:a.Z,ProgressNavigator:i.Z,QuizSessionCard:l,EmptyStudentCard:c.Z},props:{quizSessions:Array,steps:Array},metaInfo:function(){return{title:this.title}},computed:{title:function(){return"My Progress - "+this.$page.props.general.app_name}}};const d=(0,o.Z)(u,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("app-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v(t._s(t.__("My Progress")))])]},proxy:!0}])},[t._v(" "),s("div",{staticClass:"max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8"},[s("progress-navigator",{attrs:{steps:t.steps}})],1),t._v(" "),s("div",{staticClass:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"flex flex-col items-center"},[s("div",{staticClass:"w-full sm:w-2/3"},[s("div",{staticClass:"flex"},[s("div",{staticClass:"relative inline-flex"},[s("h4",{staticClass:"py-4 px-4 text-xl font-semibold leading-tight text-gray-800 mb-4"},[t._v(t._s(t.__("In-progress Quizzes")))])])]),t._v(" "),t.quizSessions.length>0?s("div",{staticClass:"grid grid-cols-1 sm:grid-cols-2 gap-4 px-4 mb-6"},[t._l(t.quizSessions,(function(e,r){return[s("quiz-session-card",{key:e.code,attrs:{"quiz-session":e},scopedSlots:t._u([{key:"action",fn:function(){return[null===e.quizSchedule?s("inertia-link",{attrs:{href:t.route("init_quiz",{slug:e.slug})}},[s("span",{staticClass:"qt-btn qt-btn-sm qt-btn-success"},[t._v(t._s(t.__("Resume Quiz")))])]):s("inertia-link",{attrs:{href:t.route("init_quiz_schedule",{quiz:e.slug,schedule:e.quizSchedule})}},[s("span",{staticClass:"qt-btn qt-btn-sm qt-btn-success"},[t._v(t._s(t.__("Resume Quiz")))])])]},proxy:!0}],null,!0)})]}))],2):s("div",{staticClass:"mb-6"},[s("empty-student-card",{attrs:{title:t.__("No Sessions Found")},scopedSlots:t._u([{key:"action",fn:function(){return[s("inertia-link",{attrs:{href:t.route("quiz_dashboard")}},[s("span",{staticClass:"qt-btn qt-btn-sm qt-btn-primary"},[t._v(t._s(t.__("View Quizzes")))])])]},proxy:!0}])})],1)])])])])}),[],!1,null,null,null).exports},6146:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>u});var r=s(4356),a=s(2948),i=s(543),n=s(3194);function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var s=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==s)return;var r,a,i=[],n=!0,o=!1;try{for(s=s.call(t);!(n=(r=s.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return l(t,e);var s=Object.prototype.toString.call(t).slice(8,-1);"Object"===s&&t.constructor&&(s=t.constructor.name);if("Map"===s||"Set"===s)return Array.from(t);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return l(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,r=new Array(e);s<e;s++)r[s]=t[s];return r}const c={components:{AppLayout:r.Z,EmptyStudentCard:a.Z,ProgressNavigator:i.Z,NoDataTable:n.Z},props:{quizSessions:Object,steps:Array,errors:Object},data:function(){return{columns:[{label:this.__("Quiz")+" "+this.__("Name"),field:"name",sortable:!1},{label:this.__("Completed"),field:"completed",sortable:!1},{label:this.__("Percentage"),field:"percentage",sortable:!1},{label:this.__("Score"),field:"score",sortable:!1},{label:this.__("Accuracy"),field:"accuracy",sortable:!1},{label:this.__("Status"),field:"status",sortable:!1},{label:this.__("Actions"),field:"actions",sortable:!1}],options:{enabled:!0,mode:"pages",perPage:this.quizSessions.meta.pagination.per_page,setCurrentPage:this.quizSessions.meta.pagination.current_page,perPageDropdown:[10,20,50,100],dropdownAllowAll:!1},serverParams:{columnFilters:{},sort:{field:"",type:""},page:1,perPage:10}}},methods:{updateParams:function(t){this.serverParams=Object.assign({},this.serverParams,t)},onPageChange:function(t){this.updateParams({page:t.currentPage}),this.loadItems()},onPerPageChange:function(t){this.updateParams({perPage:t.currentPerPage}),this.loadItems()},onSortChange:function(t){this.updateParams({sort:[{type:t.sortType,field:this.columns[t.columnIndex].field}]}),this.loadItems()},onColumnFilter:function(t){this.updateParams(t),this.serverParams.page=1,this.loadItems()},getQueryParams:function(){for(var t={page:this.serverParams.page,perPage:this.serverParams.perPage},e=0,s=Object.entries(this.serverParams.columnFilters);e<s.length;e++){var r=o(s[e],2),a=r[0],i=r[1];i&&(t[a]=i)}return t},loadItems:function(){this.$inertia.get(route(route().current()),this.getQueryParams(),{replace:!1,preserveState:!0,preserveScroll:!0})}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return"My Quizzes - "+this.$page.props.general.app_name}}};const u=(0,s(1900).Z)(c,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("app-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v(t._s(t.__("My Quizzes")))])]},proxy:!0}])},[t._v(" "),s("div",{staticClass:"max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8"},[s("progress-navigator",{attrs:{steps:t.steps}})],1),t._v(" "),s("div",{staticClass:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"card"},[s("div",{staticClass:"card-body"},[s("vue-good-table",{attrs:{mode:"remote","pagination-options":t.options,columns:t.columns,totalRows:t.quizSessions.meta.pagination.total,rows:t.quizSessions.data,rtl:t.$page.props.rtl,"line-numbers":!0},on:{"on-page-change":t.onPageChange,"on-column-filter":t.onColumnFilter,"on-per-page-change":t.onPerPageChange},scopedSlots:t._u([{key:"table-row",fn:function(e){return["status"===e.column.field?s("div",[s("span",{class:["Passed"===e.row.status?"badge-success":"badge-danger","badge-sm uppercase text-xs"]},[t._v(t._s(t.__(e.row.status)))])]):"actions"===e.column.field?s("div",{staticClass:"py-2"},[s("inertia-link",{staticClass:"qt-btn qt-btn-sm qt-btn-success",attrs:{href:t.route("quiz_results",{quiz:e.row.slug,session:e.row.id})}},[t._v("\n                                "+t._s(t.__("View Results"))+"\n                            ")])],1):s("span",[t._v("\n                                  "+t._s(e.formattedRow[e.column.field])+"\n                                ")])]}}])},[t._v(" "),s("div",{attrs:{slot:"emptystate"},slot:"emptystate"},[s("no-data-table")],1)])],1)])])])}),[],!1,null,null,null).exports},2067:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>g});var r=s(4356),a=s(8618),i=s(3244),n=s(9408),o=s(8642),l=s(789),c=s(9324),u=s(4707),d=s(7189),p=s(7598),m=s(6587),_=s(8050),f=s(3001),v=s(6487);const h={components:{AppLayout:r.Z,DoughnutChart:a.Z,RewardsBadge:i.Z,PracticeQuestionCard:n.Z,PracticeQuestionChip:o.Z,NavigationQuestionCardShimmer:l.Z,PracticeQuestionShimmer:c.Z,PracticeSolutionCard:u.Z,SAQSolution:d.Z,FIBSolution:p.Z,ORDSolution:m.Z,MTFSolution:_.Z,MSASolution:f.Z,MMASolution:v.Z},props:{practiceSet:Object,session:Object,analytics:Object},data:function(){return{loading:!1,questions:[],current_question:0,statusChartData:{labels:["Correct","Wrong","Unanswered"],datasets:[{label:"Status",data:[this.analytics.correct_answered_questions,this.analytics.wrong_answered_questions,this.analytics.unanswered_questions],backgroundColor:["rgb(52, 211, 153)","rgb(248, 113, 113)","rgb(156, 163, 175)"],hoverOffset:4}]},timeSpentChartData:{labels:["Correct","Wrong","Other"],datasets:[{label:"Time Spent",data:[this.analytics.time_taken_for_correct_answered.seconds,this.analytics.time_taken_for_wrong_answered.seconds,this.analytics.time_taken_for_other.seconds],backgroundColor:["rgb(52, 211, 153)","rgb(248, 113, 113)","rgb(156, 163, 175)"],hoverOffset:4}]}}},methods:{jumpToQuestion:function(t){this.current_question=t},fetchQuestions:function(){var t=this;t.loading=!0,axios.get(route("fetch_practice_set_solutions",{practiceSet:this.practiceSet.slug,session:this.session.code})).then((function(e){var s=e.data;t.questions=s.questions})).catch((function(e){t.loading=!1})).then((function(){t.loading=!1}))}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return this.practiceSet.title+" Analysis - "+this.$page.props.general.app_name},totalAnswered:function(){return this.analytics.answered_questions+"/"+this.analytics.total_questions+" Answered"},totalTimeSpent:function(){return this.analytics.total_time_taken.detailed_readable+" Spent"}},mounted:function(){"completed"===this.session.status&&this.fetchQuestions()}};const g=(0,s(1900).Z)(h,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("app-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v(t._s(t.practiceSet.title)+" "+t._s(t.__("Analysis")))])]},proxy:!0},{key:"actions",fn:function(){return["completed"!==t.session.status?s("inertia-link",{attrs:{href:t.route("go_to_practice",{practiceSet:t.practiceSet.slug,session:t.session.code})}},[s("span",{staticClass:"qt-btn qt-btn-sm qt-btn-success"},[t._v(t._s(t.__("Resume Practice")))])]):t._e()]},proxy:!0}])},[t._v(" "),t._v(" "),s("div",{staticClass:"py-8"},[s("div",{staticClass:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"w-full flex flex-col justify-center items-center"},["completed"!==t.session.status?s("div",{staticClass:"font-mono px-4 py-2 border border-green-200 bg-green-100 text-green-600 rounded text-sm mb-4"},[t._v("\n                    "+t._s(t.__("finish_points_message"))+"\n                ")]):t._e(),t._v(" "),s("div",{staticClass:"w-full card mb-6"},[s("div",{staticClass:"card-body"},[s("div",{staticClass:"flex gap-4 justify-between border-b border-gray-100 items-center h-16 px-4 py-4"},[s("div",{staticClass:"flex items-center gap-2"},[s("svg",{staticClass:"w-7 h-7",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("h4",{staticClass:"font-semibold text-sm"},[t._v(t._s(t.__("Score"))+"/"+t._s(t.__("Points")))])]),t._v(" "),s("div",{staticClass:"text-sm"},[t._v(t._s(t.session.total_points_earned)+" XP")])]),t._v(" "),s("div",{staticClass:"flex gap-4 justify-between border-b border-gray-100 items-center h-16 px-4 py-4"},[s("div",{staticClass:"flex items-center gap-2"},[s("img",{staticClass:"w-7 h-7",attrs:{src:t.$page.props.appUrl+"images/darts.png",alt:"Accuracy"}}),t._v(" "),s("h4",{staticClass:"font-semibold text-sm"},[t._v(t._s(t.__("Accuracy")))])]),t._v(" "),s("div",{staticClass:"text-sm"},[t._v(t._s(t.analytics.accuracy)+"%")])]),t._v(" "),s("div",{staticClass:"grid grid-cols-1 sm:grid-cols-2 gap-4 border-b border-gray-100 justify-center items-center px-4 py-4"},[s("div",{staticClass:"flex gap-4 sm:justify-center items-center"},[s("div",{staticClass:"w-28"},[s("doughnut-chart",{key:"status",attrs:{id:"status","chart-data":t.statusChartData,"element-text":t.totalAnswered}})],1),t._v(" "),s("div",{staticClass:"flex flex-col gap-2 justify-center"},[s("div",{staticClass:"flex gap-2 items-center text-xs"},[s("svg",{staticClass:"w-5 h-5 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("\n                                        "+t._s(t.analytics.correct_answered_questions)+" "+t._s(t.__("Correct"))+"\n                                    ")]),t._v(" "),s("div",{staticClass:"flex gap-2 items-center text-xs"},[s("svg",{staticClass:"w-5 h-5 text-red-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:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"}})]),t._v("\n                                        "+t._s(t.analytics.wrong_answered_questions)+" "+t._s(t.__("Wrong"))+"\n                                    ")]),t._v(" "),s("div",{staticClass:"flex gap-2 items-center text-xs"},[s("svg",{staticClass:"w-5 h-5 text-gray-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:"M15 12H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"}})]),t._v("\n                                        "+t._s(t.analytics.unanswered_questions)+" "+t._s(t.__("Unanswered"))+"\n                                    ")])])]),t._v(" "),s("div",{staticClass:"flex gap-4 sm:justify-center items-center"},[s("div",{staticClass:"w-28"},[s("doughnut-chart",{key:"time_spent",attrs:{id:"time_spent","chart-data":t.timeSpentChartData,"element-text":t.totalTimeSpent}})],1),t._v(" "),s("div",{staticClass:"flex flex-col gap-2 justify-center"},[s("div",{staticClass:"flex gap-2 items-center text-xs"},[s("svg",{staticClass:"w-5 h-5 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("\n                                        "+t._s(t.analytics.time_taken_for_correct_answered.detailed_readable)+" "+t._s(t.__("Correct"))+"\n                                    ")]),t._v(" "),s("div",{staticClass:"flex gap-2 items-center text-xs"},[s("svg",{staticClass:"w-5 h-5 text-red-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:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"}})]),t._v("\n                                        "+t._s(t.analytics.time_taken_for_wrong_answered.detailed_readable)+" "+t._s(t.__("Wrong"))+"\n                                    ")]),t._v(" "),s("div",{staticClass:"flex gap-2 items-center text-xs"},[s("svg",{staticClass:"w-5 h-5 text-gray-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:"M15 12H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"}})]),t._v("\n                                        "+t._s(t.analytics.time_taken_for_other.detailed_readable)+" "+t._s(t.__("Other"))+"\n                                    ")])])])]),t._v(" "),s("div",{staticClass:"flex gap-4 justify-between items-center h-16 px-4 py-4"},[s("div",{staticClass:"flex items-center gap-2"},[s("img",{staticClass:"w-7 h-7",attrs:{src:t.$page.props.appUrl+"images/clock.png",alt:"Speed"}}),t._v(" "),s("h4",{staticClass:"font-semibold text-sm"},[t._v(t._s(t.__("Avg. Speed")))])]),t._v(" "),s("div",{staticClass:"text-sm"},[t._v(t._s(t.analytics.speed)+" que/hr")])])])])]),t._v(" "),"completed"===t.session.status?s("div",[s("h2",{staticClass:"text-lg font-semibold leading-tight text-gray-800 mb-6"},[t._v(t._s(t.__("Solutions")))]),t._v(" "),s("div",{staticClass:"w-full card"},[s("div",{staticClass:"w-full card-body lg:flex flex-wrap"},[s("div",{staticClass:"py-4 lg:w-1/3 w-full md:ltr:pr-6 md:rtl:pl-6"},[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 flex flex-wrap justify-center items-center gap-2"},t._l(t.questions,(function(e,r){return s("li",{key:e.code,on:{click:function(e){return t.jumpToQuestion(r)}}},[s("practice-question-chip",{attrs:{sno:r+1,is_correct:e.is_correct,status:e.status,active:t.current_question===r}})],1)})),0)]),t._v(" "),s("div",{staticClass:"py-4 lg:w-2/3 w-full md:ltr:pl-6 md:rtl:pr-6 sm:ltr:border-l sm:rtl:border-r border-gray-200"},[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",t._l(t.questions,(function(e,r){return s("div",{key:e.id},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.current_question===r,expression:"current_question === index"}],attrs:{id:e.code}},[s("div",{staticClass:"flex justify-between items-center mb-6"},[s("div",{staticClass:"font-mono px-2 py-1 inline-block bg-qt-option text-white rounded text-sm mb-2"},[t._v("\n                                                "+t._s(t.__("Time Spent"))+": "+t._s(e.time_taken.detailed_readable)+"\n                                            ")]),t._v(" "),"answered"===e.status?s("div",{staticClass:"font-mono px-2 py-1 inline-block text-white rounded text-sm mb-2",class:e.is_correct?"bg-green-400":"bg-red-400"},[e.is_correct?s("span",[t._v("+"+t._s(e.points_earned)+" "+t._s(t.__("Points Earned")))]):t._e(),t._v(" "),e.is_correct?t._e():s("span",[t._v(t._s(t.__("No Points")))])]):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.__("Not Answered"))+"\n                                            ")])]),t._v(" "),s("practice-question-card",{key:e.card,attrs:{question:e,sno:r+1,"total-questions":t.practiceSet.total_questions}}),t._v(" "),"MSA"===e.questionType||"TOF"===e.questionType?s("div",{staticClass:"mt-4"},[s("MSASolution",{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}})],1):t._e(),t._v(" "),"MMA"===e.questionType?s("div",{staticClass:"mt-4"},[s("MMASolution",{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}})],1):t._e(),t._v(" "),"MTF"===e.questionType?s("div",{staticClass:"mt-4"},[s("MTFSolution",{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}})],1):t._e(),t._v(" "),"ORD"===e.questionType?s("div",{staticClass:"mt-4"},[s("ORDSolution",{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}})],1):t._e(),t._v(" "),"FIB"===e.questionType?s("div",{staticClass:"mt-4"},[s("FIBSolution",{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}})],1):t._e(),t._v(" "),"SAQ"===e.questionType?s("div",{staticClass:"mt-4"},[s("SAQSolution",{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}})],1):t._e(),t._v(" "),s("div",{staticClass:"mt-4"},[s("practice-solution-card",{attrs:{solution:e.solution}})],1)],1)])})),0)])])])]):t._e()])])])}),[],!1,null,null,null).exports},9626:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>c});var r=s(4356);const a={name:"SectionCard",props:{section:Object}};var i=s(1900);const n={name:"PracticeCategoryCard",components:{SectionCard:(0,i.Z)(a,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"flex flex-col justify-center items-center p-4 rounded hover:bg-blue-50 cursor-pointer"},[s("div",{staticClass:"flex items-center justify-center w-12 h-12 bg-purple-100 rounded-full"},[s("span",{staticClass:"font-mono font-semibold"},[t._v(t._s(t.section.name.charAt(0)))])]),t._v(" "),s("div",{staticClass:"pt-4 text-center"},[s("p",{staticClass:"text-sm leading-none text-gray-800"},[t._v(t._s(t.section.name))])])])}),[],!1,null,null,null).exports},props:{category:Object}};const o=(0,i.Z)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"flex justify-center sm:px-6 px-4"},[s("div",{staticClass:"w-full rounded shadow bg-white dark:bg-gray-800 py-6 px-6"},[s("div",{staticClass:"flex items-center justify-between mb-4"},[s("p",{staticClass:"font-semibold leading-4 ltr:text-left rtl:text-right text-green-800"},[t._v(t._s(t.category.name))]),t._v(" "),s("p",{staticClass:"font-mono text-sm leading-3 ltr:pl-6 rtl:pr-6 text-right text-gray-500 dark:text-gray-400"},[t._v(t._s(t.category.category)+" "+t._s(t.category.type))])]),t._v(" "),s("div",{staticClass:"grid grid-cols-2 sm:grid-cols-4 gap-4 items-center justify-between"},[t._l(t.category.sections,(function(e){return[s("inertia-link",{attrs:{href:t.route("section_practice_sets",{category:t.category.slug,section:e.slug})}},[s("section-card",{attrs:{section:e}})],1)]}))],2)])])}),[],!1,null,null,null).exports,l={components:{AppLayout:r.Z,PracticeCategoryCard:o},props:{categories:Array},metaInfo:function(){return{title:this.title}},computed:{title:function(){return"Practice Dashboard - "+this.$page.props.general.app_name}}};const c=(0,i.Z)(l,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("app-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v(t._s(t.__("Learn & Practice")))])]},proxy:!0}])},[t._v(" "),s("div",{staticClass:"py-8"},[s("div",{staticClass:"max-w-7xl mx-auto sm:px-6 lg:px-8"},[s("div",{staticClass:"flex flex-col justify-center items-center"},[s("div",{staticClass:"w-full sm:w-2/3"},[s("div",{staticClass:"flex flex-col gap-4 justify-center px-4"},[t._l(t.categories,(function(t){return[s("practice-category-card",{attrs:{category:t}})]}))],2)])])])])])}),[],!1,null,null,null).exports},4611:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>N});var r=s(4943);const a={name:"PracticeLayout",components:{PerfectScrollbar:r.PerfectScrollbar},data:function(){return{moved:!0,scrollbarOptions:{maxScrollbarLength:1,suppressScrollX:!0}}},methods:{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)"}};var i=s(1900);const n=(0,i.Z)(a,(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(" "),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._v(" "),s("perfect-scrollbar",{ref:"scroll",staticClass:"h-screen max-h-screen px-4 pt-32 pb-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:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}})])]):t._e(),t._v(" "),t.moved?t._e():s("div",{staticClass:"h-10 w-10 text-white bg-gray-800 absolute ltr:right-0 rtl:left-0 mt-3 z-50 ltr:mr-4 rtl:ml-4 flex items-center shadow rounded justify-center cursor-pointer",attrs:{id:"closeSideBar"},on:{click:function(e){return t.sidebarHandler(!0)}}},[s("svg",{staticClass:"w-6 h-6",attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"}})])]),t._v(" "),s("div",{staticClass:"z-30 h-16 w-full mx-auto absolute top-0 left-0 bg-gray-700 flex items-center px-4"},[t._t("title")],2),t._v(" "),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._v(" "),s("perfect-scrollbar",{ref:"scroll",staticClass:"h-screen max-h-screen overflow-hidden px-4 pt-32 pb-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"},[t._t("default")],2)])}),[],!1,null,null,null).exports;var o=s(9408);const l={name:"DarkQuestionCard",props:{question:Object,sno:Number,active:Boolean,is_correct:Boolean,status:String},computed:{chipClasses:function(){return"answered"===this.status?this.is_correct?"bg-green-400 text-white":"bg-red-400 text-white":this.active?"bg-gray-600 text-gray-200":"text-gray-400"}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const c=(0,i.Z)(l,(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-600 hover:text-gray-200 rounded p-4",class:[t.active?"bg-gray-600 text-gray-200":"text-gray-400"]},[s("div",{staticClass:"flex items-start gap-4"},[s("div",{staticClass:"h-5 w-5 text-sm flex items-center justify-center border border-gray-600 rounded p-4",class:t.chipClasses},[s("span",{staticClass:"leading-relaxed"},[t._v(t._s(t.sno))])]),t._v(" "),s("div",{staticClass:"leading-relaxed text-sm",domProps:{innerHTML:t._s(t.question.question)}})])])])}),[],!1,null,null,null).exports;var u=s(8642),d=s(789),p=s(9324),m=s(4340),_=s(823),f=s(7159);const v={props:{name:{type:String,default:"Submit"}}};const h=(0,i.Z)(v,(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;const g={props:{name:{type:String,default:"Pause"}}};const b=(0,i.Z)(g,(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 x={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 y=(0,i.Z)(x,(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,r){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_"+r,disabled:t.disable},domProps:{value:r+1,checked:t._q(t.answer,r+1)},on:{change:[function(e){t.answer=r+1},t.selectAnswer]}}),t._v(" "),s("label",{class:t.labelClass(r),attrs:{for:t.question_id+"_option_"+r}},[s("span",{staticClass:"o-id"},[s("strong",[t._v(t._s(r+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 w={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 C=(0,i.Z)(w,(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,r){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_"+r,disabled:t.answer.length>=3&&-1===t.answer.indexOf(r+1)||t.disable},domProps:{value:r+1,checked:Array.isArray(t.answer)?t._i(t.answer,r+1)>-1:t.answer},on:{change:[function(e){var s=t.answer,a=e.target,i=!!a.checked;if(Array.isArray(s)){var n=r+1,o=t._i(s,n);a.checked?o<0&&(t.answer=s.concat([n])):o>-1&&(t.answer=s.slice(0,o).concat(s.slice(o+1)))}else t.answer=i},t.selectAnswer]}}),t._v(" "),s("label",{class:t.labelClass(r),attrs:{for:"q_"+t.question_id+"_option_"+r}},[s("span",{staticClass:"o-id squared"},[s("strong",[t._v(t._s(r+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 k=s(9980),S=s.n(k);const A={name:"MTFInteractiveOptions",components:{draggable:S()},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,r){var a=t.parentAnswer.find((function(t){return t.id===s}));e.push(r+1+" - "+a.code)})),"Correct answers are "+e.join(", ")}return""}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const q=(0,i.Z)(A,(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,r){return s("div",{key:e.id,staticClass:"q-option h-full"},[s("label",{staticClass:"h-full",attrs:{for:t.question_id+"_option_"+r}},[s("span",{staticClass:"o-id"},[s("strong",[t._v(t._s(r+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,r){return s("div",{key:e.id,staticClass:"q-option h-full"},[s("label",{staticClass:"h-full",class:t.labelClass(r),attrs:{for:t.question_id+"_pair_"+r}},[s("span",{staticClass:"o-id match"},[s("strong",[t._v(t._s(r+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 P={name:"ORDInteractiveOptions",components:{draggable:S()},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,r){var a=t.parentAnswer.find((function(t){return t.id===s}));e.push(r+1+" - "+a.code)})),"Correct answers are "+e.join(", ")}return""}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const $=(0,i.Z)(P,(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,r){return s("div",{key:e.id,staticClass:"q-option"},[s("label",{class:t.labelClass(r),attrs:{for:t.question_id+"_option_"+r}},[s("span",{staticClass:"o-id match"},[s("strong",[t._v(t._s(r+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 j={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 F=(0,i.Z)(j,(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,r){return s("div",{key:"blank_"+r},[s("div",{staticClass:"mb-2",class:t.labelClass(r)},[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 Z=(0,i.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 O=s(4707),I=s(3244),M=s(6455),z=s.n(M),E=s(1003);const L={components:{SAQInteractiveOptions:Z,FIBInteractiveOptions:F,ORDInteractiveOptions:$,MTFInteractiveOptions:q,MSAInteractiveOptions:y,MMAInteractiveOptions:C,PracticeLayout:n,PracticeQuestionCard:o.Z,DarkQuestionCard:c,PracticeQuestionChip:u.Z,NavigationQuestionCardShimmer:d.Z,PracticeQuestionShimmer:p.Z,PrevButton:m.Z,NextButton:_.Z,FinishButton:f.Z,SubmitButton:h,PauseButton:b,PracticeSolutionCard:O.Z,PerfectScrollbar:r.PerfectScrollbar,RewardsBadge:I.Z,ConfirmDialog:E.default},props:{practiceSet: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].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.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})},reject:function(){}})},finishTest:function(){this.$inertia.post(route("finish_practice_session",{practiceSet:this.practiceSet.slug,session:this.session.code}))},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"),r=this.rewardStrings[Math.floor(Math.random()*this.rewardStrings.length)];setTimeout((function(){s.play(),z().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="">'+r+"! 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(){this.fetchQuestions(1)}};const N=(0,i.Z)(L,(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,r){return s("li",{key:e.code,on:{click:function(e){return t.jumpToQuestion(r)}}},[t.chipView?t._e():s("dark-question-card",{attrs:{question:e,sno:t.getQuestionNo(r),is_correct:e.is_correct,status:e.status,active:t.current_question===r}}),t._v(" "),t.chipView?s("practice-question-chip",{attrs:{sno:t.getQuestionNo(r),is_correct:e.is_correct,status:e.status,active:t.current_question===r}}):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"},[s("rewards-badge",{attrs:{points:t.total_points_earned}}),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,r){return s("div",{key:e.id},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.current_question===r,expression:"current_question === index"}],attrs:{id:e.code}},[s("practice-question-card",{key:e.card,attrs:{question:e,sno:t.getQuestionNo(r),"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:{solution:e.solution}})],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},2708:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>d});var r=s(4356);const a={name:"PracticeSetCard",props:{practiceSet:Object}};var i=s(1900);const n=(0,i.Z)(a,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"w-full flex flex-col justify-between items-start rounded shadow bg-white py-6 px-6 hover:shadow-lg"},[s("div",{staticClass:"flex items-center justify-center bg-green-100 rounded mb-1"},[s("p",{staticClass:"font-mono text-xs leading-loose text-center text-green-700 px-2"},[t._v(t._s(t.practiceSet.skill))])]),t._v(" "),s("h1",{staticClass:"text-lg font-semibold text-gray-800 leading-5 py-2"},[t._v(t._s(t.practiceSet.title))]),t._v(" "),s("div",{staticClass:"w-full flex items-end justify-between mt-4"},[s("h2",{staticClass:"font-mono text-gray-600 text-sm"},[t._v(t._s(t.practiceSet.total_questions)+" "+t._s(t.__("Questions")))]),t._v(" "),t._t("action")],2)])}),[],!1,null,null,null).exports;var o=s(2948);const l={name:"PracticeSetCardShimmer",components:{Skeleton:s(247).default}};const c=(0,i.Z)(l,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"bg-white opacity-75 rounded p-4 mb-6"},[s("Skeleton",{staticClass:"mb-2",attrs:{width:"10rem"}}),t._v(" "),s("Skeleton",{attrs:{height:"1rem"}})],1)}),[],!1,null,null,null).exports,u={components:{AppLayout:r.Z,PracticeSetCard:n,EmptyStudentCard:o.Z,PracticeSetCardShimmer:c},props:{category:Object,section:Object},data:function(){return{practiceSets:[],pagination:{},skills:[],currentSkill:null,debounce:null,loading:!1}},metaInfo:function(){return{title:this.title}},methods:{fetchSets:function(){var t=this;t.loading=!0,axios.get(route("fetch_practice_sets",{category:t.category.slug,section:t.section.slug,skill_id:t.currentSkill})).then((function(e){var s=e.data.sets;t.practiceSets=s.data,t.pagination=s.meta.pagination,t.loading=!1})).catch((function(e){t.loading=!1})).then((function(){t.loading=!1}))},searchSkills:function(t,e){if(""!==t){var s=this;e(!0),clearTimeout(this.debounce),this.skills=[],this.debounce=setTimeout((function(){axios.get(route("search_skills",{query:t,section_id:s.section.id})).then((function(t){s.skills=t.data.skills,e(!1)})).catch((function(t){e(!1)}))}),600)}}},computed:{title:function(){return this.category.name+" "+this.section.name+" Practice Sets - "+this.$page.props.general.app_name},subTitle:function(){return this.practiceSets.length>0?this.practiceSets.length+" Practice Sets in this Section.":"No Practice Sets in this Section."}},created:function(){this.fetchSets()}};const d=(0,i.Z)(u,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("app-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v(t._s(t.__("Practice"))+" "+t._s(t.category.name)+" "+t._s(t.section.name))])]},proxy:!0}])},[t._v(" "),s("div",{staticClass:"py-8"},[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"},[s("div",{staticClass:"w-full sm:w-2/3"},[s("div",{staticClass:"w-full flex flex-col mb-6"},[s("v-select",{staticClass:"bg-white",attrs:{id:"skill",options:t.skills,reduce:function(t){return t.id},label:"name",placeholder:t.__("Search by Skill"),dir:t.$page.props.rtl?"rtl":"ltr"},on:{input:t.fetchSets,search:t.searchSkills},scopedSlots:t._u([{key:"no-options",fn:function(e){e.search;return[e.searching?[t._v(t._s(t.__("No results were found for this search"))+".")]:s("em",{staticClass:"opacity-50"},[t._v(t._s(t.__("Start typing to search"))+".")])]}}]),model:{value:t.currentSkill,callback:function(e){t.currentSkill=e},expression:"currentSkill"}})],1),t._v(" "),t.loading?s("div",{staticClass:"grid grid-cols-1 sm:grid-cols-2 gap-4 auto-rows-auto justify-center"},[s("practice-set-card-shimmer"),t._v(" "),s("practice-set-card-shimmer"),t._v(" "),s("practice-set-card-shimmer"),t._v(" "),s("practice-set-card-shimmer")],1):s("div",{staticClass:"grid grid-cols-1 sm:grid-cols-2 gap-4 auto-rows-auto justify-center"},[t._l(t.practiceSets,(function(e,r){return[s("practice-set-card",{attrs:{"practice-set":e},scopedSlots:t._u([{key:"action",fn:function(){return[s("inertia-link",{attrs:{href:t.route("init_practice_set",{slug:e.slug})}},[s("span",{staticClass:"qt-btn qt-btn-sm qt-btn-success"},[t._v(t._s(t.__("Start Practice")))])])]},proxy:!0}],null,!0)})]}))],2),t._v(" "),t.loading||0!==t.practiceSets.length?t._e():s("empty-student-card",{attrs:{title:"No practice tests found in this section"},scopedSlots:t._u([{key:"action",fn:function(){return[s("inertia-link",{attrs:{href:t.route("practice_dashboard")}},[s("span",{staticClass:"qt-btn qt-btn-sm qt-btn-primary"},[t._v(t._s(t.__("Go Back")))])])]},proxy:!0}],null,!1,1220168680)})],1)])])])])}),[],!1,null,null,null).exports},7993:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>l});var r=s(4356),a=s(3426),i=s(5990),n=s(2948);const o={components:{QuizScheduleCard:i.Z,EmptyStudentCard:n.Z,AppLayout:r.Z,QuizCard:a.Z},props:{quizTypes:Array,quizSchedules:Array},metaInfo:function(){return{title:this.title}},computed:{title:function(){return"Quiz Dashboard - "+this.$page.props.general.app_name}}};const l=(0,s(1900).Z)(o,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("app-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v(t._s(t.__("Quizzes")))])]},proxy:!0}])},[t._v(" "),s("div",{staticClass:"py-8"},[s("div",{staticClass:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"flex flex-col items-center"},[s("div",{staticClass:"w-full sm:w-2/3"},[s("div",{staticClass:"flex justify-between items-center mb-4"},[s("div",{staticClass:"relative inline-flex"},[s("h4",{staticClass:"py-4 px-4 text-xl font-semibold leading-tight text-gray-800"},[t._v(t._s(t.__("Live Quizzes")))]),t._v(" "),s("span",{staticClass:"flex absolute h-3 w-3 top-4 ltr:-right-1 rtl:-left-1"},[s("span",{staticClass:"animate-ping absolute inline-flex h-full w-full rounded-full bg-yellow-500 opacity-75"}),t._v(" "),s("span",{staticClass:"relative inline-flex rounded-full h-3 w-3 bg-yellow-500"})])]),t._v(" "),s("inertia-link",{staticClass:"px-4",attrs:{href:t.route("live_quizzes")}},[s("span",{staticClass:"text-sm font-semibold text-green-500 underline"},[t._v(t._s(t.__("View All")))])])],1),t._v(" "),t.quizSchedules.length>0?s("div",{staticClass:"grid grid-cols-1 sm:grid-cols-2 gap-4 px-4 mb-6"},[t._l(t.quizSchedules,(function(e,r){return[s("quiz-schedule-card",{attrs:{quiz:e},scopedSlots:t._u([{key:"action",fn:function(){return[s("inertia-link",{attrs:{href:t.route("quiz_schedule_instructions",{quiz:e.slug,schedule:e.code})}},[s("span",{staticClass:"qt-btn qt-btn-sm qt-btn-success"},[t._v(t._s(t.__("Details")))])])]},proxy:!0}],null,!0)})]}))],2):s("div",{staticClass:"mb-6"},[s("empty-student-card",{attrs:{title:"No Schedules Found"}})],1),t._v(" "),s("div",{staticClass:"grid grid-cols-1 sm:grid-cols-2 gap-4"},t._l(t.quizTypes,(function(e){return s("div",{staticClass:"mb-6"},[s("div",{staticClass:"flex justify-between items-center mb-4"},[s("h4",{staticClass:"py-4 px-4 text-xl font-semibold leading-tight text-gray-800"},[t._v(t._s(e.name))]),t._v(" "),s("inertia-link",{staticClass:"px-4",attrs:{href:t.route("quizzes_by_type",{type:e.slug})}},[s("span",{staticClass:"text-sm font-semibold text-green-500 underline"},[t._v(t._s(t.__("View All")))])])],1),t._v(" "),e.latest_quiz?s("div",{staticClass:"flex flex-col gap-4 justify-center px-4"},[s("quiz-card",{attrs:{quiz:e.latest_quiz},scopedSlots:t._u([{key:"action",fn:function(){return[s("inertia-link",{attrs:{href:t.route("quiz_instructions",{slug:e.latest_quiz.slug})}},[s("span",{staticClass:"qt-btn qt-btn-sm qt-btn-success"},[t._v(t._s(t.__("Details")))])])]},proxy:!0}],null,!0)})],1):t._e()])})),0)])])])])])}),[],!1,null,null,null).exports},4184:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var r=s(4356),a=s(3426);const i={components:{AppLayout:r.Z,QuizCard:a.Z},props:{quiz:Object,instructions:Object},data:function(){return{agree:!1}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return this.quiz.title+" - "+this.$page.props.general.app_name}}};const n=(0,s(1900).Z)(i,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("app-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v(t._s(t.quiz.title))])]},proxy:!0}])},[t._v(" "),s("div",{staticClass:"py-8"},[s("div",{staticClass:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"flex flex-col items-center"},[s("div",{staticClass:"w-full sm:w-2/3"},[s("div",{staticClass:"card"},[s("div",{staticClass:"card-body"},[s("div",{staticClass:"w-full lg:flex lg:ltr:flex-row lg:rtl:flex-row-reverse flex-wrap px-2 py-2"},[s("div",{staticClass:"py-4 lg:w-2/3 w-full md:pr-6 sm:border-r border-gray-200"},[s("div",{staticClass:"inline-block bg-green-100 rounded mb-1"},[s("p",{staticClass:"font-mono text-xs leading-loose text-center text-green-700 px-2"},[t._v(t._s(t.quiz.category))])]),t._v(" "),s("h1",{staticClass:"text-2xl font-semibold text-gray-800 leading-5 py-2"},[t._v(t._s(t.quiz.title))]),t._v(" "),s("div",{staticClass:"flex items-center mt-1"},[s("div",{staticClass:"w-2 h-2 bg-yellow-600 rounded-full"}),t._v(" "),s("p",{staticClass:"font-mono text-sm leading-3 text-yellow-600 ltr:ml-1 rtl:mr-2"},[t._v(t._s(t.quiz.type))])]),t._v(" "),s("hr",{staticClass:"my-8 border-t border-gray-200"}),t._v(" "),s("div",{staticClass:"flex ltr:flex-row rtl:flex-row-reverse items-center ltr:justify-start rtl:justify-end"},[s("div",[s("p",{staticClass:"font-mono text-sm leading-3 mb-2 text-green-600"},[t._v(t._s(t.__("Total Duration")))]),t._v(" "),s("p",{staticClass:"font-semibold leading-tight"},[t._v(t._s(t.quiz.total_duration)+" "+t._s(t.__("Minutes")))])]),t._v(" "),s("div",{staticClass:"ml-11"},[s("p",{staticClass:"font-mono text-sm leading-3 mb-2 text-green-600"},[t._v(t._s(t.__("No. of Questions")))]),t._v(" "),s("p",{staticClass:"font-semibold leading-tight"},[t._v(t._s(t.quiz.total_questions)+" "+t._s(t.__("Questions")))])]),t._v(" "),s("div",{staticClass:"ml-11"},[s("p",{staticClass:"font-mono text-sm leading-3 mb-2 text-green-600"},[t._v(t._s(t.__("Total Marks")))]),t._v(" "),s("p",{staticClass:"font-semibold leading-tight"},[t._v(t._s(t.quiz.total_marks)+" "+t._s(t.__("Marks")))])])]),t._v(" "),s("hr",{staticClass:"my-8 border-t border-gray-200"}),t._v(" "),s("div",{staticClass:"text-gray-600 text-sm mb-2",domProps:{innerHTML:t._s(t.quiz.description)}}),t._v(" "),s("hr",{staticClass:"my-8 border-t border-gray-200"}),t._v(" "),s("h4",{staticClass:"text-gray-900 font-semibold mb-4"},[t._v("\n                                        "+t._s(t.__("Quiz"))+" "+t._s(t.__("Instructions"))+"\n                                    ")]),t._v(" "),s("div",{staticClass:"text-gray-800 text-sm mb-2"},[s("ul",{staticClass:"ltr:ml-4 rtl:mr-4 list-disc"},t._l(t.instructions.quiz,(function(e){return s("li",{staticClass:"text-sm leading-normal mb-2",domProps:{innerHTML:t._s(e)}})})),0)]),t._v(" "),s("hr",{staticClass:"my-8 border-t border-gray-200"}),t._v(" "),s("h4",{staticClass:"text-gray-900 font-semibold mb-4"},[t._v("\n                                        "+t._s(t.__("Standard Instructions"))+"\n                                    ")]),t._v(" "),s("div",{staticClass:"text-gray-800 text-sm mb-2"},[s("ul",{staticClass:"ltr:ml-4 rtl:mr-4 list-disc"},t._l(t.instructions.standard,(function(e){return s("li",{staticClass:"text-sm leading-normal mb-2",domProps:{innerHTML:t._s(e)}})})),0)])]),t._v(" "),s("div",{staticClass:"py-4 lg:w-1/3 w-full md:pl-6"},[s("h1",{staticClass:"text-2xl font-semibold text-gray-800 leading-5 py-2"},[t._v(t._s(t.quiz.redeem))]),t._v(" "),t.quiz.can_redeem&&!t.quiz.uncompleted_sessions>0?s("div",{staticClass:"font-mono p-2 inline-block bg-yellow-50 text-yellow-500 rounded text-sm my-2"},[t._v("\n                                        Note: You'll need "+t._s(t.quiz.redeem)+" for one attempt of this quiz. "+t._s(t.quiz.redeem)+" will be deducted from your wallet.\n                                    ")]):t._e(),t._v(" "),s("div",{staticClass:"pt-2"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.agree,expression:"agree"}],attrs:{type:"checkbox",id:"agree"},domProps:{checked:Array.isArray(t.agree)?t._i(t.agree,null)>-1:t.agree},on:{change:function(e){var s=t.agree,r=e.target,a=!!r.checked;if(Array.isArray(s)){var i=t._i(s,null);r.checked?i<0&&(t.agree=s.concat([null])):i>-1&&(t.agree=s.slice(0,i).concat(s.slice(i+1)))}else t.agree=a}}}),t._v(" "),s("label",{staticClass:"ml-2 text-sm leading-normal font-normal text-gray-800 cursor-pointer",attrs:{for:"agree"}},[t._v("\n                                            "+t._s(t.__("instructions_consent"))+"\n                                        ")])]),t._v(" "),t.agree?s("inertia-link",{staticClass:"w-full block mt-4 py-3 px-8 text-center font-semibold leading-4 bg-green-700 rounded focus:outline-none hover:bg-green-600 text-white cursor-pointer",attrs:{href:t.route("init_quiz",{quiz:t.quiz.slug})},domProps:{innerHTML:t._s(t.quiz.uncompleted_sessions>0?t.__("Resume Test"):t.__("Start Test"))}}):s("div",{staticClass:"w-full block mt-4 py-3 px-8 text-center font-semibold leading-4 rounded bg-green-600 opacity-75 text-white",domProps:{innerHTML:t._s(t.quiz.uncompleted_sessions>0?t.__("Resume Test"):t.__("Start Test"))}}),t._v(" "),t.quiz.uncompleted_sessions>0?s("p",{staticClass:"font-mono text-sm mt-4 leading-normal text-gray-600"},[t._v("\n                                        Note: You have "+t._s(t.quiz.uncompleted_sessions)+" uncompleted session(s)\n                                    ")]):t._e()],1)])])])])])])])])}),[],!1,null,null,null).exports},9135:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>h});var r=s(4356),a=s(8618),i=s(3244),n=s(3001),o=s(9408),l=s(8642),c=s(789),u=s(9324),d=s(4707),p=s(6487),m=s(8050),_=s(6587),f=s(7598);const v={components:{SAQSolution:s(7189).Z,FIBSolution:f.Z,ORDSolution:_.Z,MTFSolution:m.Z,MSASolution:n.Z,MMASolution:p.Z,AppLayout:r.Z,DoughnutChart:a.Z,RewardsBadge:i.Z,PracticeQuestionCard:o.Z,PracticeQuestionChip:l.Z,NavigationQuestionCardShimmer:c.Z,PracticeQuestionShimmer:u.Z,PracticeSolutionCard:d.Z},props:{quiz:Object,session:Object},data:function(){return{loading:!1,questions:[],current_question:0,statusChartData:{labels:["Correct","Wrong","Unanswered"],datasets:[{label:"Status",data:[this.session.results.correct_answered_questions,this.session.results.wrong_answered_questions,this.session.results.unanswered_questions],backgroundColor:["rgb(52, 211, 153)","rgb(248, 113, 113)","rgb(156, 163, 175)"],hoverOffset:4}]},timeSpentChartData:{labels:["Correct","Wrong","Other"],datasets:[{label:"Time Spent",data:[this.session.results.time_taken_for_correct_answered.seconds,this.session.results.time_taken_for_wrong_answered.seconds,this.session.results.time_taken_for_other.seconds],backgroundColor:["rgb(52, 211, 153)","rgb(248, 113, 113)","rgb(156, 163, 175)"],hoverOffset:4}]}}},metaInfo:function(){return{title:this.title}},methods:{jumpToQuestion:function(t){this.current_question=t},fetchQuestions:function(){var t=this;t.loading=!0,axios.get(route("fetch_quiz_solutions",{quiz:this.quiz.slug,session:this.session.code})).then((function(e){var s=e.data;t.questions=s.questions})).catch((function(e){t.loading=!1})).then((function(){t.loading=!1}))}},computed:{title:function(){return this.quiz.title+" Results - "+this.$page.props.general.app_name},totalAnswered:function(){return this.session.results.answered_questions+"/"+this.session.results.total_questions+" "+this.__("Answered")},totalTimeSpent:function(){return this.session.results.total_time_taken.detailed_readable+" "+this.__("Spent")}},mounted:function(){this.quiz.settings.hide_solutions||this.fetchQuestions()}};const h=(0,s(1900).Z)(v,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("app-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v(t._s(t.quiz.title)+" "+t._s(t.__("Results")))])]},proxy:!0},{key:"actions",fn:function(){return[s("a",{staticClass:"qt-btn qt-btn-sm qt-btn-success",attrs:{href:t.route("download_quiz_report",{quiz:t.quiz.slug,session:t.session.code}),target:"_blank"}},[t._v("\n            "+t._s(t.__("Download Score Report"))+"\n        ")])]},proxy:!0}])},[t._v(" "),t._v(" "),s("div",{staticClass:"py-8"},[s("div",{staticClass:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"grid sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-8"},[s("div",{staticClass:"bg-white dark:bg-gray-800 rounded flex items-center justify-between px-6 py-4 relative shadow"},[s("div",{staticClass:"absolute w-2 h-4 bg-green-700 ltr:left-0 rtl:right-0"}),t._v(" "),s("h3",{staticClass:"focus:outline-none py-6 leading-4 text-gray-800 dark:text-gray-100 font-normal text-base"},[t._v(t._s(t.__(t.session.results.pass_or_fail)))]),t._v(" "),s("div",{staticClass:"flex flex-col items-end"},[s("h2",{staticClass:"focus:outline-none text-green-700 dark:text-gray-100 text-xl leading-normal font-bold"},[t._v(t._s(t.session.results.percentage)+"%")]),t._v(" "),s("p",{staticClass:"focus:outline-none ltr:ml-2 rtl:mr-2 mb-1 text-sm text-gray-600 dark:text-gray-400",attrs:{tabindex:"0"}},[t._v(t._s(t.__("Min."))+" "+t._s(t.session.results.cutoff)+"%")])])]),t._v(" "),s("div",{staticClass:"bg-white dark:bg-gray-800 rounded flex items-center justify-between px-6 py-4 relative shadow"},[s("div",{staticClass:"absolute w-2 h-4 bg-green-700 ltr:left-0 rtl:right-0"}),t._v(" "),s("h3",{staticClass:"focus:outline-none py-6 leading-4 text-gray-800 dark:text-gray-100 font-normal text-base"},[t._v(t._s(t.__("Score")))]),t._v(" "),s("div",{staticClass:"flex flex-col items-end"},[s("h2",{staticClass:"focus:outline-none text-green-700 dark:text-gray-100 text-xl leading-normal font-bold"},[t._v(t._s(t.session.results.score))]),t._v(" "),s("p",{staticClass:"focus:outline-none ltr:ml-2 rtl:mr-2 mb-1 text-sm text-gray-600 dark:text-gray-400",attrs:{tabindex:"0"}},[t._v(t._s(t.__("Marks"))+" "+t._s(t.session.results.total_marks))])])]),t._v(" "),s("div",{staticClass:"bg-white dark:bg-gray-800 rounded flex items-center justify-between px-6 py-4 relative shadow"},[s("div",{staticClass:"absolute w-2 h-4 bg-green-700 ltr:left-0 rtl:right-0"}),t._v(" "),s("h3",{staticClass:"focus:outline-none py-6 leading-4 text-gray-800 dark:text-gray-100 font-normal text-base"},[t._v(t._s(t.__("Accuracy")))]),t._v(" "),s("div",{staticClass:"flex flex-col items-end"},[s("h2",{staticClass:"focus:outline-none text-green-700 dark:text-gray-100 text-xl leading-normal font-bold"},[t._v(t._s(t.session.results.accuracy)+"%")]),t._v(" "),s("p",{staticClass:"focus:outline-none ltr:ml-2 rtl:mr-2 mb-1 text-sm text-gray-600 dark:text-gray-400",attrs:{tabindex:"0"}})])]),t._v(" "),s("div",{staticClass:"bg-white dark:bg-gray-800 rounded flex items-center justify-between px-6 py-4 relative shadow"},[s("div",{staticClass:"absolute w-2 h-4 bg-green-700 ltr:left-0 rtl:right-0"}),t._v(" "),s("h3",{staticClass:"focus:outline-none py-6 leading-4 text-gray-800 dark:text-gray-100 font-normal text-base"},[t._v(t._s(t.__("Speed")))]),t._v(" "),s("div",{staticClass:"flex flex-col items-end"},[s("h2",{staticClass:"focus:outline-none text-green-700 dark:text-gray-100 text-xl leading-normal font-bold"},[t._v(t._s(t.session.results.speed))]),t._v(" "),s("p",{staticClass:"focus:outline-none ltr:ml-2 rtl:mr-2 mb-1 text-sm text-gray-600 dark:text-gray-400",attrs:{tabindex:"0"}},[t._v("Que/Hour")])])])]),t._v(" "),s("div",{staticClass:"grid sm:grid-cols-1 md:grid-cols-3 gap-8 py-8"},[s("div",{staticClass:"bg-white dark:bg-gray-800 rounded flex flex-col items-center justify-center p-5 relative shadow"},[s("h2",{staticClass:"focus:outline-none text-gray-800 text-base leading-normal font-semibold mb-6"},[t._v("\n                        "+t._s(t.__("Total"))+" "+t._s(t.session.results.total_questions)+" "+t._s(t.__("Questions"))+"\n                    ")]),t._v(" "),s("div",{staticClass:"flex gap-4 sm:justify-center items-center"},[s("div",{staticClass:"w-28"},[s("doughnut-chart",{key:"status",attrs:{id:"status","chart-data":t.statusChartData,"element-text":t.totalAnswered}})],1),t._v(" "),s("div",{staticClass:"flex flex-col gap-2 justify-center"},[s("div",{staticClass:"flex gap-2 items-center text-xs"},[s("svg",{staticClass:"w-5 h-5 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("\n                                "+t._s(t.session.results.correct_answered_questions)+" "+t._s(t.__("Correct"))+"\n                            ")]),t._v(" "),s("div",{staticClass:"flex gap-2 items-center text-xs"},[s("svg",{staticClass:"w-5 h-5 text-red-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:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"}})]),t._v("\n                                "+t._s(t.session.results.wrong_answered_questions)+" "+t._s(t.__("Wrong"))+"\n                            ")]),t._v(" "),s("div",{staticClass:"flex gap-2 items-center text-xs"},[s("svg",{staticClass:"w-5 h-5 text-gray-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:"M15 12H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"}})]),t._v("\n                                "+t._s(t.session.results.unanswered_questions)+" "+t._s(t.__("Unanswered"))+"\n                            ")])])])]),t._v(" "),s("div",{staticClass:"bg-white dark:bg-gray-800 rounded flex flex-col items-center justify-center p-5 relative shadow"},[s("h2",{staticClass:"focus:outline-none text-gray-800 text-base leading-normal font-semibold mb-6"},[t._v("\n                        "+t._s(t.__("Total"))+" "+t._s(t.session.results.total_duration)+" "+t._s(t.__("Minutes"))+"\n                    ")]),t._v(" "),s("div",{staticClass:"flex gap-4 sm:justify-center items-center"},[s("div",{staticClass:"w-28"},[s("doughnut-chart",{key:"time_spent",attrs:{id:"time_spent","chart-data":t.timeSpentChartData,"element-text":t.totalTimeSpent}})],1),t._v(" "),s("div",{staticClass:"flex flex-col gap-2 justify-center"},[s("div",{staticClass:"flex gap-2 items-center text-xs"},[s("svg",{staticClass:"w-5 h-5 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("\n                                "+t._s(t.session.results.time_taken_for_correct_answered.detailed_readable)+" "+t._s(t.__("Correct"))+"\n                            ")]),t._v(" "),s("div",{staticClass:"flex gap-2 items-center text-xs"},[s("svg",{staticClass:"w-5 h-5 text-red-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:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"}})]),t._v("\n                                "+t._s(t.session.results.time_taken_for_wrong_answered.detailed_readable)+" "+t._s(t.__("Wrong"))+"\n                            ")]),t._v(" "),s("div",{staticClass:"flex gap-2 items-center text-xs"},[s("svg",{staticClass:"w-5 h-5 text-gray-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:"M15 12H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"}})]),t._v("\n                                "+t._s(t.session.results.time_taken_for_other.detailed_readable)+" "+t._s(t.__("Other"))+"\n                            ")])])])]),t._v(" "),s("div",{staticClass:"bg-white dark:bg-gray-800 rounded flex flex-col items-center justify-center p-5 relative shadow"},[s("h2",{staticClass:"focus:outline-none text-gray-800 text-base leading-normal font-semibold mb-6"},[t._v("\n                        "+t._s(t.__("Total Scored Marks"))+"\n                    ")]),t._v(" "),s("div",{staticClass:"w-full flex gap-4 sm:justify-center items-center"},[s("table",{staticClass:"w-full table-auto"},[s("tbody",[s("tr",[s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 text-sm"},[t._v(t._s(t.__("Marks Earned")))]),t._v(" "),s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 font-medium text-sm text-right"},[t._v(t._s(t.session.results.marks_earned))])]),t._v(" "),s("tr",{staticClass:"bg-emerald-200"},[s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 text-sm"},[t._v(t._s(t.__("Negative Marks")))]),t._v(" "),s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 font-medium text-sm text-right"},[t._v("-"+t._s(t.session.results.marks_deducted))])]),t._v(" "),s("tr",[s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 text-sm"},[t._v(t._s(t.__("Total Marks")))]),t._v(" "),s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 font-medium text-sm text-right"},[t._v(t._s(t.session.results.score))])])])])])])]),t._v(" "),t.quiz.settings.hide_solutions?t._e():s("div",[s("h2",{staticClass:"text-lg font-semibold leading-tight text-gray-800 mb-6"},[t._v(t._s(t.__("Solutions")))]),t._v(" "),s("div",{staticClass:"w-full card"},[s("div",{staticClass:"w-full card-body lg:flex flex-wrap"},[s("div",{staticClass:"py-4 lg:w-1/3 w-full md:ltr:pr-6 md:rtl:pl-6"},[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 flex flex-wrap justify-center items-center gap-2"},t._l(t.questions,(function(e,r){return s("li",{key:e.code,on:{click:function(e){return t.jumpToQuestion(r)}}},[s("practice-question-chip",{attrs:{sno:r+1,is_correct:e.is_correct,status:e.status,active:t.current_question===r}})],1)})),0)]),t._v(" "),s("div",{staticClass:"py-4 lg:w-2/3 w-full md:ltr:pl-6 md:rtl:pr-6 sm:ltr:border-l sm:rtl:border-r border-gray-200"},[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",t._l(t.questions,(function(e,r){return s("div",{key:e.id},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.current_question===r,expression:"current_question === index"}],attrs:{id:e.code}},[s("div",{staticClass:"flex justify-between items-center mb-6"},[s("div",{staticClass:"font-mono px-2 py-1 inline-block bg-qt-option text-white rounded text-sm mb-2"},[t._v("\n                                                "+t._s(t.__("Time Spent"))+": "+t._s(e.time_taken.detailed_readable)+"\n                                            ")]),t._v(" "),"answered"===e.status?s("div",{staticClass:"font-mono px-2 py-1 inline-block text-white rounded text-sm mb-2",class:e.is_correct?"bg-green-400":"bg-red-400"},[e.is_correct?s("span",[t._v("+"+t._s(e.marks_earned)+" "+t._s(t.__("Marks Earned")))]):t._e(),t._v(" "),e.is_correct?t._e():s("span",[t._v("-"+t._s(e.marks_deducted)+" "+t._s(t.__("Marks Deducted")))])]):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.__("Not Answered"))+"\n                                            ")])]),t._v(" "),s("practice-question-card",{key:e.card,attrs:{question:e,sno:r+1,"total-questions":t.quiz.total_questions}}),t._v(" "),"MSA"===e.questionType||"TOF"===e.questionType?s("div",{staticClass:"mt-4"},[s("MSASolution",{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}})],1):t._e(),t._v(" "),"MMA"===e.questionType?s("div",{staticClass:"mt-4"},[s("MMASolution",{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}})],1):t._e(),t._v(" "),"MTF"===e.questionType?s("div",{staticClass:"mt-4"},[s("MTFSolution",{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}})],1):t._e(),t._v(" "),"ORD"===e.questionType?s("div",{staticClass:"mt-4"},[s("ORDSolution",{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}})],1):t._e(),t._v(" "),"FIB"===e.questionType?s("div",{staticClass:"mt-4"},[s("FIBSolution",{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}})],1):t._e(),t._v(" "),"SAQ"===e.questionType?s("div",{staticClass:"mt-4"},[s("SAQSolution",{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}})],1):t._e(),t._v(" "),s("div",{staticClass:"mt-4"},[s("practice-solution-card",{attrs:{solution:e.solution}})],1)],1)])})),0)])])])])])])])}),[],!1,null,null,null).exports},1974:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>u});var r=s(4356),a=s(3426),i=s(4731),n=s.n(i);function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var s=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==s)return;var r,a,i=[],n=!0,o=!1;try{for(s=s.call(t);!(n=(r=s.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return l(t,e);var s=Object.prototype.toString.call(t).slice(8,-1);"Object"===s&&t.constructor&&(s=t.constructor.name);if("Map"===s||"Set"===s)return Array.from(t);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return l(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,r=new Array(e);s<e;s++)r[s]=t[s];return r}const c={components:{AppLayout:r.Z,QuizCard:a.Z,VueCountdown:n()},props:{quiz:Object,schedule:Object,instructions:Object,userHasAccess:Boolean,allowAccess:Boolean,startsIn:Number,closesAt:String},data:function(){return{agree:!1}},methods:{reloadPage:function(){this.$inertia.reload()},transformSlotProps:function(t){var e={};return Object.entries(t).forEach((function(t){var s=o(t,2),r=s[0],a=s[1];e[r]=a<10?"0".concat(a):String(a)})),e}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return this.quiz.title+" - "+this.$page.props.general.app_name},notice:function(){return"expired"===this.schedule.status?{type:"warning",msg:this.__("schedule_expire_note")}:this.userHasAccess?this.startsIn>0?{type:"success",msg:this.__("quiz_access_note")}:this.allowAccess?{type:"success",msg:this.__("schedule_live_note")+this.closesAt+"."}:!this.allowAccess&&this.startsIn<=0?{type:"warning",msg:this.__("schedule_close_note")}:null:{type:"warning",msg:this.__("quiz_no_access_note")}}}};const u=(0,s(1900).Z)(c,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("app-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v(t._s(t.quiz.title))])]},proxy:!0}])},[t._v(" "),s("div",{staticClass:"py-8"},[s("div",{staticClass:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"flex flex-col items-center"},[s("div",{staticClass:"w-full sm:w-2/3"},[t.notice?s("div",{staticClass:"font-mono px-4 py-2 border rounded text-sm mb-4",class:"success"===t.notice.type?"border-green-200 bg-green-100 text-green-600":"border-red-200 bg-red-100 text-red-600"},[t._v("\n                        "+t._s(t.notice.msg)+"\n                    ")]):t._e(),t._v(" "),s("div",{staticClass:"card"},[s("div",{staticClass:"card-body"},[s("div",{staticClass:"w-full lg:flex lg:ltr:flex-row lg:rtl:flex-row-reverse flex-wrap px-2 py-2"},[s("div",{staticClass:"py-4 lg:w-2/3 w-full md:pr-6 sm:border-r border-gray-200"},[s("div",{staticClass:"inline-block bg-green-100 rounded mb-1"},[s("p",{staticClass:"font-mono text-xs leading-loose text-center text-green-700 px-2"},[t._v(t._s(t.quiz.category))])]),t._v(" "),s("h1",{staticClass:"text-2xl font-semibold text-gray-800 leading-normal py-2"},[t._v(t._s(t.quiz.title))]),t._v(" "),s("div",{staticClass:"flex items-center mt-1"},[s("div",{staticClass:"w-2 h-2 bg-yellow-600 rounded-full"}),t._v(" "),s("p",{staticClass:"font-mono text-sm leading-3 text-yellow-600 ltr:ml-1 rtl:mr-1"},[t._v(t._s(t.quiz.type))])]),t._v(" "),"Fixed"===t.schedule.scheduleType?s("div",{staticClass:"w-full my-8 p-4 rounded-sm bg-yellow-50 border border-yellow-100 flex flex-col gap-4"},[s("p",{staticClass:"text-sm uppercase font-mono font-medium leading-3 text-yellow-600"},[t._v(t._s(t.__("Fixed Schedule Time")))]),t._v(" "),s("div",{staticClass:"flex items-center text-gray-600"},[s("i",{staticClass:"pi pi-calendar text-green-500"}),t._v(" "),s("p",{staticClass:"text-sm font-mono leading-none text-gray-700 dark:text-gray-100 ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.schedule.starts_at))])]),t._v(" "),s("div",{staticClass:"flex items-center text-gray-600"},[s("i",{staticClass:"pi pi-clock text-red-500"}),t._v(" "),s("p",{staticClass:"text-sm font-mono leading-none text-gray-700 dark:text-gray-100 ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.schedule.ends_at))])]),t._v(" "),s("div",{staticClass:"flex items-center text-gray-600"},[s("i",{staticClass:"pi pi-globe text-green-500"}),t._v(" "),s("p",{staticClass:"text-sm font-mono leading-none text-gray-700 dark:text-gray-100 ltr:ml-2 rtl:mr-2"},[t._v("Timezone - "+t._s(t.schedule.timezone))])])]):s("div",{staticClass:"w-full my-8 p-4 rounded-sm bg-yellow-50 border border-yellow-100 flex flex-col gap-4"},[s("p",{staticClass:"text-sm uppercase font-mono font-medium leading-3 text-yellow-600"},[t._v(t._s(t.__("Quiz Available Between")))]),t._v(" "),s("div",{staticClass:"flex items-center text-gray-600"},[s("i",{staticClass:"pi pi-calendar text-green-500"}),t._v(" "),s("p",{staticClass:"text-sm font-mono leading-none text-gray-700 dark:text-gray-100 ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.schedule.starts_at))])]),t._v(" "),s("div",{staticClass:"flex items-center text-gray-600"},[s("i",{staticClass:"pi pi-calendar text-red-500"}),t._v(" "),s("p",{staticClass:"text-sm font-mono leading-none text-gray-700 dark:text-gray-100 ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.schedule.ends_at))])]),t._v(" "),s("div",{staticClass:"flex items-center text-gray-600"},[s("i",{staticClass:"pi pi-globe text-green-500"}),t._v(" "),s("p",{staticClass:"text-sm font-mono leading-none text-gray-700 dark:text-gray-100 ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.__("Timezone"))+" - "+t._s(t.schedule.timezone))])])]),t._v(" "),s("div",{staticClass:"flex ltr:flex-row rtl:flex-row-reverse items-center ltr:justify-start rtl:justify-end"},[s("div",[s("p",{staticClass:"font-mono text-sm leading-3 mb-2 text-green-600"},[t._v(t._s(t.__("Total Duration")))]),t._v(" "),s("p",{staticClass:"font-semibold leading-tight"},[t._v(t._s(t.quiz.total_duration)+" "+t._s(t.__("Minutes")))])]),t._v(" "),s("div",{staticClass:"ml-11"},[s("p",{staticClass:"font-mono text-sm leading-3 mb-2 text-green-600"},[t._v(t._s(t.__("No. of Questions")))]),t._v(" "),s("p",{staticClass:"font-semibold leading-tight"},[t._v(t._s(t.quiz.total_questions)+" "+t._s(t.__("Questions")))])]),t._v(" "),s("div",{staticClass:"ml-11"},[s("p",{staticClass:"font-mono text-sm leading-3 mb-2 text-green-600"},[t._v(t._s(t.__("Total Marks")))]),t._v(" "),s("p",{staticClass:"font-semibold leading-tight"},[t._v(t._s(t.quiz.total_marks)+" "+t._s(t.__("Marks")))])])]),t._v(" "),s("hr",{staticClass:"my-8 border-t border-gray-200"}),t._v(" "),s("div",{staticClass:"text-gray-600 text-sm mb-2",domProps:{innerHTML:t._s(t.quiz.description)}}),t._v(" "),s("hr",{staticClass:"my-8 border-t border-gray-200"}),t._v(" "),s("h4",{staticClass:"text-gray-900 font-semibold mb-4"},[t._v("\n                                        "+t._s(t.__("Quiz"))+" "+t._s(t.__("Instructions"))+"\n                                    ")]),t._v(" "),s("div",{staticClass:"text-gray-800 text-sm mb-2"},[s("ul",{staticClass:"ltr:ml-4 rtl:mr-4 list-disc"},t._l(t.instructions.quiz,(function(e){return s("li",{staticClass:"text-sm leading-normal mb-2",domProps:{innerHTML:t._s(e)}})})),0)]),t._v(" "),s("hr",{staticClass:"my-8 border-t border-gray-200"}),t._v(" "),s("h4",{staticClass:"text-gray-900 font-semibold mb-4"},[t._v("\n                                        "+t._s(t.__("Standard Instructions"))+"\n                                    ")]),t._v(" "),s("div",{staticClass:"text-gray-800 text-sm mb-2"},[s("ul",{staticClass:"ltr:ml-4 rtl:mr-4 list-disc"},t._l(t.instructions.standard,(function(e){return s("li",{staticClass:"text-sm leading-normal mb-2",domProps:{innerHTML:t._s(e)}})})),0)])]),t._v(" "),s("div",{staticClass:"py-4 lg:w-1/3 w-full md:pl-6"},[s("h1",{staticClass:"text-2xl font-semibold text-gray-800 leading-5 py-2"},[t._v(t._s(t.quiz.redeem))]),t._v(" "),t.quiz.can_redeem&&!t.quiz.uncompleted_sessions>0?s("div",{staticClass:"font-mono p-2 inline-block bg-yellow-50 text-yellow-500 rounded text-sm my-2"},[t._v("\n                                        Note: You'll need "+t._s(t.quiz.redeem)+" for one attempt of this quiz. "+t._s(t.quiz.redeem)+" will be deducted from your wallet.\n                                    ")]):t._e(),t._v(" "),t.userHasAccess&&t.allowAccess?s("div",[s("div",{staticClass:"pt-2"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.agree,expression:"agree"}],attrs:{type:"checkbox",id:"agree"},domProps:{checked:Array.isArray(t.agree)?t._i(t.agree,null)>-1:t.agree},on:{change:function(e){var s=t.agree,r=e.target,a=!!r.checked;if(Array.isArray(s)){var i=t._i(s,null);r.checked?i<0&&(t.agree=s.concat([null])):i>-1&&(t.agree=s.slice(0,i).concat(s.slice(i+1)))}else t.agree=a}}}),t._v(" "),s("label",{staticClass:"ltr:ml-2 rtl:mr-2 text-sm leading-normal font-normal text-gray-800 cursor-pointer",attrs:{for:"agree"}},[t._v("\n                                                "+t._s(t.__("instructions_consent"))+"\n                                            ")])]),t._v(" "),t.agree?s("inertia-link",{staticClass:"w-full block mt-4 py-3 px-8 text-center font-semibold leading-4 bg-green-700 rounded focus:outline-none hover:bg-green-600 text-white cursor-pointer",attrs:{href:t.route("init_quiz_schedule",{quiz:t.quiz.slug,schedule:t.schedule.code})},domProps:{innerHTML:t._s(t.quiz.uncompleted_sessions>0?"Resume Test":"Start Test")}}):s("div",{staticClass:"w-full block mt-4 py-3 px-8 text-center font-semibold leading-4 rounded bg-green-600 opacity-75 text-white",domProps:{innerHTML:t._s(t.quiz.uncompleted_sessions>0?"Resume Test":"Start Test")}}),t._v(" "),t.quiz.uncompleted_sessions>0?s("p",{staticClass:"font-mono text-sm mt-4 leading-normal text-gray-600"},[t._v("\n                                            Note: You have "+t._s(t.quiz.uncompleted_sessions)+" uncompleted session(s)\n                                        ")]):t._e()],1):t._e(),t._v(" "),t.startsIn>0?s("div",{staticClass:"w-full flex flex-col justify-center items-center shadow mt-4 p-2 rounded bg-green-600 text-white"},[s("div",{staticClass:"mb-2 pb-2 w-full border-b border-green-500 text-center font-mono"},[t._v("Starts in")]),t._v(" "),s("vue-countdown",{staticClass:"w-full",attrs:{time:1e3*t.startsIn,transform:t.transformSlotProps},on:{end:t.reloadPage},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.days,a=e.hours,i=e.minutes,n=e.seconds;return[s("div",{staticClass:"w-full grid grid-flow-col gap-4 justify-center items-center auto-cols-max"},["00"!==r?s("div",{staticClass:"flex items-center flex-col font-mono"},[s("span",{staticClass:"text-base"},[t._v(t._s(r))]),t._v("\n                                                    days\n                                                ")]):t._e(),t._v(" "),s("div",{staticClass:"flex items-center flex-col font-mono"},[s("span",{staticClass:"text-base"},[t._v(t._s(a))]),t._v("\n                                                    hours\n                                                ")]),t._v(" "),s("div",{staticClass:"flex items-center flex-col font-mono"},[s("span",{staticClass:"text-base"},[t._v(t._s(i))]),t._v("\n                                                    min\n                                                ")]),t._v(" "),s("div",{staticClass:"flex items-center flex-col font-mono"},[s("span",{staticClass:"text-base"},[t._v(t._s(n))]),t._v("\n                                                    sec\n                                                ")])])]}}],null,!1,2455122268)})],1):t._e()])])])])])])])])])}),[],!1,null,null,null).exports},4545:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>B});var r=s(4943);const a={name:"QuizLayout",components:{PerfectScrollbar:r.PerfectScrollbar},data:function(){return{moved:!0,fullScreen:!1,scrollbarOptions:{maxScrollbarLength:1,suppressScrollX:!0}}},methods:{sidebarHandler:function(){var t=this.$refs.mobileNav;this.moved?(t.style.transform="translateX(0px)",this.moved=!1):(t.style.transform=this.$page.props.rtl?"translateX(320px)":"translateX(-320px)",this.moved=!0)},toggleFullScreen:function(){this.fullScreen?this.closeFullScreen():this.openFullScreen(),this.fullScreen=!this.fullScreen},openFullScreen:function(){var t=document.documentElement;t.requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.msRequestFullscreen&&t.msRequestFullscreen()},closeFullScreen:function(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()}},mounted:function(){this.$refs.mobileNav.style.transform=this.$page.props.rtl?"translateX(320px)":"translateX(-320px)"}};var i=s(1900);const n=(0,i.Z)(a,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"h-screen max-h-screen overflow-hidden select-none"},[s("div",{staticClass:"w-full h-16 absolute z-30 top-0 ltr:right-0 rtl:left-0 mx-auto bg-gray-800 shadow-lg"},[s("div",{staticClass:"w-full h-full mx-auto px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"h-full flex flex-col justify-center items-center"},[s("div",{staticClass:"w-full flex items-center justify-end gap-4 sm:gap-0 sm:justify-between"},[s("div",{staticClass:"hidden sm:block"},[t._t("title")],2),t._v(" "),s("div",{staticClass:"flex items-center gap-4"},[s("button",{staticClass:"hidden sm:block focus:outline-none text-white text-sm bg-gray-700 hover:bg-gray-600 rounded-sm p-2",on:{click:t.toggleFullScreen}},[s("svg",{staticClass:"w-5 h-5",attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0l-5 5M4 16v4m0 0h4m-4 0l5-5m11 5l-5-5m5 5v-4m0 4h-4"}})])]),t._v(" "),s("h4",{staticClass:"flex items-center text-white text-sm bg-gray-700 rounded-sm px-4 py-2"},[s("svg",{staticClass:"w-5 h-5",attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"}})]),t._v(" "),t._t("timer")],2)])])])])]),t._v(" "),s("div",{staticClass:"z-20 h-16 w-full mx-auto absolute top-16 left-0 bg-white border-b border-gray-200 flex justify-between items-center px-4 sm:px-6 lg:px-8"},[t._t("sections")],2),t._v(" "),s("div",{staticClass:"flex flex-no-wrap bg-white"},[s("div",{staticClass:"relative h-full container mx-auto md:w-4/5 w-full"},[t._t("default")],2),t._v(" "),s("div",{staticClass:"w-96 overflow-hidden absolute sm:relative md:h-full flex-col justify-between hidden border-l border-gray-100 sm:flex sm:flex-col transition duration-150 ease-in-out"},[s("div",{staticClass:"z-20 h-16 w-full mx-auto absolute top-0 right-0 flex items-center px-4 shadow"}),t._v(" "),s("div",{staticClass:"z-20 h-16 w-full mx-auto absolute top-16 ltr:left-0 rtl:right-0 bg-white border-b border-l border-gray-200 flex ltr:flex-row rtl:flex-row-reverse justify-between items-center px-4 sm:px-6 lg:px-8"},[t._t("actions")],2),t._v(" "),s("perfect-scrollbar",{ref:"scroll",staticClass:"h-screen max-h-screen px-4 pt-32 pb-16 bg-gray-50 border-l border-gray-200",attrs:{options:t.scrollbarOptions}},[t._t("questions")],2),t._v(" "),s("div",{staticClass:"w-96 w-full absolute left-0 bottom-0 bg-gray-100 border-t border-l border-gray-200"},[t._t("footer")],2)],1),t._v(" "),s("div",{ref:"mobileNav",staticClass:"w-80 h-full z-40 absolute bg-gray-50 shadow md:h-full flex-col justify-between sm:hidden transition duration-150 ease-in-out"},[t.moved?s("div",{staticClass:"h-10 w-10 text-white bg-gray-800 absolute ltr:right-0 rtl:left-0 mt-3 ltr:-mr-10 rtl:-ml-10 flex items-center shadow ltr:rounded-tr ltr:rounded-br rtl:rounded-tl rtl:rounded-bl justify-center cursor-pointer",attrs:{id:"openSideBar"},on:{click:function(e){return t.sidebarHandler(!0)}}},[s("svg",{staticClass:"w-6 h-6",attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}})])]):t._e(),t._v(" "),t.moved?t._e():s("div",{staticClass:"h-10 w-10 text-white bg-gray-800 absolute ltr:right-0 rtl:left-0 mt-3 z-50 ltr:mr-4 rtl:ml-4 flex items-center shadow rounded justify-center cursor-pointer",attrs:{id:"closeSideBar"},on:{click:function(e){return t.sidebarHandler(!0)}}},[s("svg",{staticClass:"w-6 h-6",attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"}})])]),t._v(" "),s("div",{staticClass:"z-30 h-16 w-full mx-auto absolute top-0 left-0 bg-gray-800 shadow flex items-center px-4"},[t._t("title")],2),t._v(" "),s("div",{staticClass:"z-20 h-16 w-full mx-auto absolute top-16 left-0 bg-gray-50 flex justify-between items-center px-4"},[t._t("actions")],2),t._v(" "),s("perfect-scrollbar",{ref:"scroll",staticClass:"h-screen max-h-screen overflow-hidden px-4 pt-32 pb-16",attrs:{options:t.scrollbarOptions}},[t._t("questions")],2),t._v(" "),s("div",{staticClass:"w-full absolute bottom-0 border-t border-gray-50 bg-white"},[t._t("footer")],2)],1)])])}),[],!1,null,null,null).exports;var o=s(4340),l=s(823);const c={props:{name:{type:String,default:"Clear Response"}}};const u=(0,i.Z)(c,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"h-10 flex items-center justify-center gap-2 px-4 py-2 bg-white text-red-600 hover:bg-red-600 hover:text-white text-sm rounded border border-red-600 cursor-pointer"},[s("svg",{staticClass:"w-4 h-4",attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"}})]),t._v(" "),s("span",[t._v(t._s(t.name))])])}),[],!1,null,null,null).exports;var d=s(7159);const p={name:"MSAInteractiveOptions",props:{parentQid:[Number,String],parentOptions:Array,parentAnswer:[String,Array,Number],status:String},data:function(){return{question_id:this.parentQid,options:this.parentOptions,answer:this.parentAnswer}},watch:{parentAnswer:function(t,e){this.answer=t}},methods:{selectAnswer:function(t){this.$emit("modifyAnswer",this.answer)},labelClass:function(t){return""}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const m=(0,i.Z)(p,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"q-radio"},[s("div",{staticClass:"font-mono px-2 py-1 inline-block bg-gray-100 text-gray-600 rounded text-sm mb-2"},[t._v("\n            "+t._s(t.__("msa_hint"))+"\n        ")]),t._v(" "),s("div",{staticClass:"q-options"},t._l(t.options,(function(e,r){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_"+r},domProps:{value:r+1,checked:t._q(t.answer,r+1)},on:{change:[function(e){t.answer=r+1},t.selectAnswer]}}),t._v(" "),s("label",{staticClass:"cursor-pointer",class:t.labelClass(r),attrs:{for:t.question_id+"_option_"+r}},[s("span",{staticClass:"o-id"},[s("strong",[t._v(t._s(r+1))])]),t._v(" "),s("span",{staticClass:"o-text",domProps:{innerHTML:t._s(e)}})])])})),0)])}),[],!1,null,null,null).exports;const _={props:{parentQid:[Number,String],parentOptions:Array,parentAnswer:[String,Array,Number],status:String},data:function(){return{question_id:this.parentQid,options:this.parentOptions,answer:this.parentAnswer}},watch:{parentAnswer:function(t,e){this.answer=t}},methods:{selectAnswer:function(t){this.$emit("modifyAnswer",this.answer)},labelClass:function(t){return""}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const f=(0,i.Z)(_,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"q-radio"},[s("div",{staticClass:"font-mono px-2 py-1 inline-block bg-gray-100 text-gray-600 rounded text-sm mb-2"},[t._v("\n        "+t._s(t.__("mma_hint"))+"\n    ")]),t._v(" "),s("div",{staticClass:"q-options"},t._l(t.options,(function(e,r){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_"+r,disabled:t.answer.length>=3&&-1===t.answer.indexOf(r+1)},domProps:{value:r+1,checked:Array.isArray(t.answer)?t._i(t.answer,r+1)>-1:t.answer},on:{change:[function(e){var s=t.answer,a=e.target,i=!!a.checked;if(Array.isArray(s)){var n=r+1,o=t._i(s,n);a.checked?o<0&&(t.answer=s.concat([n])):o>-1&&(t.answer=s.slice(0,o).concat(s.slice(o+1)))}else t.answer=i},t.selectAnswer]}}),t._v(" "),s("label",{staticClass:"cursor-pointer",class:t.labelClass(r),attrs:{for:"q_"+t.question_id+"_option_"+r}},[s("span",{staticClass:"o-id squared"},[s("strong",[t._v(t._s(r+1))])]),t._v(" "),s("span",{staticClass:"o-text",domProps:{innerHTML:t._s(e)}})])])})),0)])}),[],!1,null,null,null).exports;var v=s(9980),h=s.n(v);const g={name:"MTFInteractiveOptions",components:{draggable:h()},props:{parentQid:[Number,String],parentOptions:[Array,Object],parentAnswer:[Array,Object],status:String},data:function(){return{question_id:this.parentQid,options:this.parentOptions.matches,answer:void 0!==this.parentAnswer&&"answered"===this.status?this.parentAnswer:this.parentOptions.pairs,touched:!1}},watch:{parentAnswer:function(t,e){this.answer=t}},methods:{selectAnswer:function(t){this.touched=!0,this.$emit("modifyAnswer",this.answer)},labelClass:function(t){return this.touched||"answered"===this.status?"answered cursor-move":"cursor-move"}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const b=(0,i.Z)(g,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"q-radio"},[s("div",{staticClass:"font-mono px-2 py-1 inline-block bg-gray-100 text-gray-600 rounded text-sm mb-2"},[t._v("\n        "+t._s(t.__("mtf_hint"))+"\n    ")]),t._v(" "),s("div",{staticClass:"flex flex-col sm:flex-row gap-2 q-options"},[s("div",{staticClass:"w-full flex flex-col justify-between"},t._l(t.options,(function(e,r){return s("div",{key:e.id,staticClass:"q-option h-full"},[s("label",{staticClass:"h-full",attrs:{for:t.question_id+"_option_"+r}},[s("span",{staticClass:"o-id"},[s("strong",[t._v(t._s(r+1))])]),t._v(" "),s("span",{staticClass:"o-text",domProps:{innerHTML:t._s(e.value)}})])])})),0),t._v(" "),s("div",{staticClass:"w-full"},[s("draggable",{attrs:{group:"options"},on:{end:t.selectAnswer},model:{value:t.answer,callback:function(e){t.answer=e},expression:"answer"}},[s("transition-group",{staticClass:"w-full flex flex-col justify-between",attrs:{name:"flip-list",tag:"div"}},t._l(t.answer,(function(e,r){return s("div",{key:e.id,staticClass:"q-option h-full"},[s("label",{staticClass:"h-full",class:t.labelClass(r),attrs:{for:t.question_id+"_pair_"+r}},[s("span",{staticClass:"o-id match"},[s("strong",[t._v(t._s(r+1))]),t._v(" - "),s("strong",[t._v(t._s(e.code))])]),t._v(" "),s("span",{staticClass:"o-text",domProps:{innerHTML:t._s(e.value)}}),t._v(" "),s("span",{staticClass:"o-bars text-gray-400"},[s("svg",{staticClass:"w-6 h-6",attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h16"}})])])])])})),0)],1)],1)])])}),[],!1,null,null,null).exports;const x={name:"ORDInteractiveOptions",components:{draggable:h()},props:{parentQid:[Number,String],parentOptions:Array,parentAnswer:[String,Array,Number],status:String},data:function(){return{question_id:this.parentQid,options:this.parentOptions,answer:void 0!==this.parentAnswer&&"answered"===this.status?this.parentAnswer:this.parentOptions,touched:!1}},watch:{parentAnswer:function(t,e){this.answer=t}},methods:{selectAnswer:function(t){this.touched=!0,this.$emit("modifyAnswer",this.answer)},labelClass:function(t){return this.touched||"answered"===this.status?"answered cursor-move":"cursor-move"}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const y=(0,i.Z)(x,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"q-radio"},[s("div",{staticClass:"font-mono px-2 py-1 inline-block bg-gray-100 text-gray-600 rounded text-sm mb-2"},[t._v("\n        "+t._s(t.__("ord_hint"))+"\n    ")]),t._v(" "),s("div",{staticClass:"q-options"},[s("draggable",{attrs:{group:"options"},on:{end:t.selectAnswer},model:{value:t.answer,callback:function(e){t.answer=e},expression:"answer"}},[s("transition-group",{attrs:{name:"flip-list",tag:"div"}},t._l(t.answer,(function(e,r){return s("div",{key:e.id,staticClass:"q-option"},[s("label",{class:t.labelClass(r),attrs:{for:t.question_id+"_option_"+r}},[s("span",{staticClass:"o-id match"},[s("strong",[t._v(t._s(r+1))]),t._v(" - "),s("strong",[t._v(t._s(e.code))])]),t._v(" "),s("span",{staticClass:"o-text",domProps:{innerHTML:t._s(e.value)}}),t._v(" "),s("span",{staticClass:"o-bars text-gray-400"},[s("svg",{staticClass:"w-6 h-6",attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h16"}})])])])])})),0)],1)],1)])}),[],!1,null,null,null).exports;const w={name:"FIBInteractiveOptions",props:{parentQid:[Number,String],parentOptions:[String,Array,Number],parentAnswer:[String,Array,Number],status:String},data:function(){return{question_id:this.parentQid,options:this.parentOptions,answer:this.parentAnswer}},watch:{parentAnswer:function(t,e){this.answer=t}},methods:{selectAnswer:function(t){this.touched=!0,this.$emit("modifyAnswer",this.answer)},labelClass:function(t){return!this.answer[t]||""===this.answer[t]&&null===this.answer[t]?"q-input":"q-input answered"}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const C=(0,i.Z)(w,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"q-inputs"},[s("div",{staticClass:"font-mono px-2 py-1 inline-block bg-gray-100 text-gray-600 rounded text-sm mb-2"},[t._v("\n        "+t._s(t.__("fib_hint"))+"\n    ")]),t._v(" "),t._l(t.options,(function(e,r){return s("div",{key:"blank_"+r},[s("div",{class:t.labelClass(r)},[s("div",{staticClass:"i-id"},[s("label",{attrs:{for:t.question_id+"ans_"+(e-1)}},[t._v(t._s(e))])]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.answer[e-1],expression:"answer[blank-1]"}],attrs:{id:t.question_id+"ans_"+(e-1),placeholder:"Type your answer for blank "+e},domProps:{value:t.answer[e-1]},on:{change:t.selectAnswer,input:function(s){s.target.composing||t.$set(t.answer,e-1,s.target.value)}}})])])}))],2)}),[],!1,null,null,null).exports;const k={name:"SAQInteractiveOptions",props:{parentQid:[Number,String],parentOptions:[String,Array,Number],parentAnswer:[String,Array,Number],status:String},data:function(){return{question_id:this.parentQid,options:this.parentOptions,answer:this.parentAnswer}},watch:{parentAnswer:function(t,e){this.answer=t}},methods:{selectAnswer:function(t){this.touched=!0,this.$emit("modifyAnswer",this.answer)},labelClass:function(){return""!==this.answer&&null!==this.answer?"q-input answered":"q-input"}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const S=(0,i.Z)(k,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"q-inputs"},[s("div",{staticClass:"font-mono px-2 py-1 inline-block bg-gray-100 text-gray-600 rounded text-sm mb-2"},[t._v("\n        "+t._s(t.__("saq_hint"))+"\n    ")]),t._v(" "),s("div",{class:t.labelClass()},[s("div",{staticClass:"i-id"},[s("label",{attrs:{for:t.question_id}},[t._v("A")])]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.answer,expression:"answer"}],attrs:{id:t.question_id,placeholder:"Type your answer"},domProps:{value:t.answer},on:{change:t.selectAnswer,input:function(e){e.target.composing||(t.answer=e.target.value)}}})])])}),[],!1,null,null,null).exports;const A={name:"LightQuestionCard",props:{question:Object,sno:Number,active:Boolean,is_correct:Boolean,status:String},computed:{chipClasses:function(){return"answered"===this.status?"bg-green-400 text-white border-green-400":"not_answered"===this.status?"bg-red-400 text-white border-red-400":this.active?"bg-gray-600 text-gray-400 hover:text-gray-200 border-gray-600":"text-gray-400 hover:text-gray-200 border-gray-600"}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const q=(0,i.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-600 hover:text-gray-200 rounded p-4",class:[t.active?"bg-gray-600 text-gray-200":"text-gray-600"]},[s("div",{staticClass:"flex items-start gap-4"},[s("div",{staticClass:"h-5 w-5 text-sm flex items-center justify-center border rounded-sm p-4",class:t.chipClasses},[s("span",{staticClass:"leading-relaxed"},[t._v(t._s(t.sno))])]),t._v(" "),s("div",{staticClass:"leading-relaxed text-sm",domProps:{innerHTML:t._s(t.question.question)}})])])])}),[],!1,null,null,null).exports;const P={name:"ExamQuestionChip",props:{sno:Number,active:Boolean,is_correct:Boolean,status:String},computed:{chipClasses:function(){return"answered"===this.status?"bg-green-400 text-white border-green-400":"not_answered"===this.status?"bg-red-400 text-white border-red-400":this.active?"bg-gray-600 text-gray-200 border-gray-600":"text-gray-600 border-gray-600"}}};const $=(0,i.Z)(P,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"w-full overflow-hidden rounded-sm cursor-pointer"},[s("div",{staticClass:"h-10 w-10 text-sm flex items-center justify-center border hover:bg-gray-600 hover:border-gray-600 hover:text-gray-200 rounded-sm p-4",class:t.chipClasses},[s("span",{},[t._v(t._s(t.sno))])])])}),[],!1,null,null,null).exports;const j={name:"QuizQuestionCard",props:{question:Object,sno:Number,totalQuestions:Number},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const F=(0,i.Z)(j,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"q-data"},[s("div",{staticClass:"flex gap-2 mb-4"},[s("span",{staticClass:"text-sm font-semibold"},[t._v("Q"+t._s(t.sno)+" of "+t._s(t.totalQuestions))]),t._v(" "),s("span",{staticClass:"text-sm"},[t._v("|")]),t._v(" "),s("span",{staticClass:"text-sm text-gray-600 uppercase"},[t._v(t._s(t.question.skill))])]),t._v(" "),s("div",{staticClass:"question",domProps:{innerHTML:t._s(t.question.question)}})])}),[],!1,null,null,null).exports;var T=s(789),Z=s(9324),O=s(1003),I=s(4731),M=s.n(I),z=s(6273),E=s(7840),L=s(6484);function N(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var s=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==s)return;var r,a,i=[],n=!0,o=!1;try{for(s=s.call(t);!(n=(r=s.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Q(t,e);var s=Object.prototype.toString.call(t).slice(8,-1);"Object"===s&&t.constructor&&(s=t.constructor.name);if("Map"===s||"Set"===s)return Array.from(t);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return Q(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,r=new Array(e);s<e;s++)r[s]=t[s];return r}const D={components:{SAQInteractiveOptions:S,FIBInteractiveOptions:C,ORDInteractiveOptions:y,MTFInteractiveOptions:b,MSAInteractiveOptions:m,MMAInteractiveOptions:f,QuizLayout:n,PrevButton:o.Z,NextButton:l.Z,FinishButton:d.Z,ClearButton:u,PerfectScrollbar:r.PerfectScrollbar,LightQuestionCard:q,ExamQuestionChip:$,NavigationQuestionCardShimmer:T.Z,QuizQuestionCard:F,VueCountdown:M(),PracticeQuestionShimmer:Z.Z,ConfirmDialog:O.default,AudioAttachment:z.Z,VideoAttachment:E.Z,ComprehensionAttachment:L.Z},props:{quiz:Object,session:Object,remainingTime:Number,answeredQuestions:Number},data:function(){return{questions:[],answered:this.answeredQuestions,total_time_taken:this.session.total_time_taken,current_question:this.session.current_question,chipView:!0,loading:!0,submitting:!1,scrollbarOptions:{maxScrollbarLength:1,suppressScrollX:!0}}},methods:{submitAnswer:function(){var t=this;t.submitting=!0,axios.post(route("update_quiz_answer",{quiz:this.quiz.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,current_question:this.current_question,status:this.questions[this.current_question].status}).then((function(e){var s=e.data;t.answered=s.answered,t.submitting=!1})).catch((function(e){t.submitting=!1})).then((function(){t.submitting=!1}))},finishAlert:function(){var t=this;this.$confirm.require({message:"Are you sure you want to finish?",header:"Confirmation",icon:"pi pi-exclamation-triangle",accept:function(){t.finishTest()},reject:function(){}})},finishTest:function(){this.$inertia.post(route("finish_quiz_session",{quiz:this.quiz.slug,session:this.session.code}),{total_time_taken:this.total_time_taken,questions:this.questions})},updateAnswer:function(t){this.questions[this.current_question].user_answer=t,this.questions[this.current_question].status="answered"},prevQuestion:function(){0!==this.current_question&&this.current_question--},nextQuestion:function(){"answered"!==this.questions[this.current_question].status&&(this.questions[this.current_question].status="not_answered"),this.submitAnswer(),this.current_question<this.questions.length-1&&this.current_question++},jumpToQuestion:function(t){this.current_question>t?this.currentTransition="prev":this.currentTransition="next",this.current_question=t},clearAnswer:function(){var t=this.questions[this.current_question].questionType;this.questions[this.current_question].user_answer=this.getClearedAnswer(t),this.questions[this.current_question].status="not_answered",this.submitAnswer()},getClearedAnswer:function(t){switch(t){case"MTF":return this.questions[this.current_question].options.pairs;case"ORD":return this.questions[this.current_question].options;case"MMA":case"FIB":return[];case"SAQ":case"LAQ":default:return""}},fetchQuestions:function(){var t=this;t.loading=!0,axios.get(route("fetch_quiz_questions",{quiz:this.quiz.slug,session:this.session.code})).then((function(e){var s=e.data;t.questions=s.questions,"completed"!==t.session.status&&t.startTimer()})).catch((function(e){t.loading=!1})).then((function(){t.loading=!1}))},transformSlotProps:function(t){var e={};return Object.entries(t).forEach((function(t){var s=N(t,2),r=s[0],a=s[1];e[r]=a<10?"0".concat(a):String(a)})),e},startTimer:function(){setInterval(this.incrementTime,1e3)},incrementTime:function(){this.total_time_taken=parseInt(this.total_time_taken)+1,this.questions[this.current_question].time_taken=parseInt(this.questions[this.current_question].time_taken)+1}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return this.quiz.title+" - "+this.$page.props.general.app_name},appUrl:function(){return this.$page.props.appUrl}},mounted:function(){this.fetchQuestions()}};const B=(0,i.Z)(D,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("quiz-layout",{scopedSlots:t._u([{key:"title",fn:function(){return[s("h4",{staticClass:"font-semibold text-white"},[t._v(t._s(t.quiz.title))])]},proxy:!0},{key:"timer",fn:function(){return[s("span",{staticClass:"ltr:ml-2 rtl:mr-2"},[s("vue-countdown",{attrs:{time:1e3*t.remainingTime,transform:t.transformSlotProps},on:{end:t.finishTest},scopedSlots:t._u([{key:"default",fn:function(e){e.days;var s=e.hours,r=e.minutes,a=e.seconds;return[t._v("\n                "+t._s("00"!==s?s+":":"")+t._s(r)+":"+t._s(a)+"\n            ")]}}])})],1)]},proxy:!0},{key:"actions",fn:function(){return[s("h5",{staticClass:"text-sm text-gray-800"},[t._v(t._s(t.answered)+"/"+t._s(t.quiz.total_questions)+" "+t._s(t.__("Answered")))]),t._v(" "),t.quiz.settings.list_questions?s("button",{staticClass:"text-gray-400 hover:text-gray-800 focus:outline-none",on:{click:function(e){t.chipView=!t.chipView}}},[t.chipView?t._e():s("svg",{staticClass:"w-6 h-6",attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"}})]),t._v(" "),t.chipView?s("svg",{staticClass:"w-6 h-6",attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 10h16M4 14h16M4 18h16"}})]):t._e()]):t._e()]},proxy:!0},{key:"sections",fn:function(){return[s("button",{staticClass:"focus:outline-none flex items-center gap-2 text-white text-sm bg-green-800 hover:bg-green-600 rounded-sm py-2 px-4"},[s("svg",{staticClass:"w-5 h-5",attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}})]),t._v(" "),s("span",[t._v(t._s(t.__("All Questions")))])])]},proxy:!0},{key:"questions",fn:function(){return[s("div",[t.loading?s("ul",[s("li",[s("NavigationQuestionCardShimmer")],1),t._v(" "),s("li",[s("NavigationQuestionCardShimmer")],1),t._v(" "),s("li",[s("NavigationQuestionCardShimmer")],1),t._v(" "),s("li",[s("NavigationQuestionCardShimmer")],1)]):s("ul",{staticClass:"my-6",class:{"flex flex-wrap justify-center items-center gap-2":t.chipView}},t._l(t.questions,(function(e,r){return s("li",{key:e.code,on:{click:function(e){return t.jumpToQuestion(r)}}},[t.chipView?t._e():s("light-question-card",{attrs:{question:e,sno:r+1,is_correct:e.is_correct,status:e.status,active:t.current_question===r}}),t._v(" "),t.chipView?s("exam-question-chip",{attrs:{sno:r+1,is_correct:e.is_correct,status:e.status,active:t.current_question===r}}):t._e()],1)})),0)])]},proxy:!0},{key:"footer",fn:function(){return[t.quiz.settings.disable_finish_button?t._e():s("div",{staticClass:"w-full h-16 flex items-center justify-center bg-white px-8"},[s("button",{staticClass:"w-full focus:outline-none",on:{click:t.finishAlert}},[s("finish-button",{attrs:{name:t.__("Finish Test")}})],1)])]},proxy:!0}])},[t._v(" "),t._v(" "),t._v(" "),t._v(" "),t._v(" "),t._v(" "),s("perfect-scrollbar",{ref:"scroll2",staticClass:"h-screen max-h-screen pt-32 pb-16",attrs:{options:t.scrollbarOptions}},[s("div",{staticClass:"mx-auto px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"flex flex-col justify-center"},[t.loading?s("div",{staticClass:"w-full mt-4 py-4 sm:w-2/3"},[s("PracticeQuestionShimmer",{staticClass:"w-full"})],1):s("div",{staticClass:"w-full mt-4 py-4"},t._l(t.questions,(function(e,r){return s("div",{key:e.id,staticClass:"w-full"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.current_question===r,expression:"current_question === index"}],staticClass:"flex flex-col sm:flex-row gap-4",attrs:{id:e.code}},[null!=e.attachment_type?s("div",{staticClass:"w-full sm:w-1/3 sm:ltr:border-r sm:rtl:border-l sm:border-gray-300 ltr:pr-4 rtl:pl-4"},["audio"===e.attachment_type?s("div",[s("audio-attachment",{attrs:{reference:"player_"+e.code,options:e.attachment}})],1):t._e(),t._v(" "),"video"===e.attachment_type?s("div",[s("video-attachment",{attrs:{reference:"player_"+e.code,options:e.attachment}})],1):t._e(),t._v(" "),"comprehension"===e.attachment_type?s("div",[s("comprehension-attachment",{attrs:{passage:e.attachment}})],1):t._e()]):t._e(),t._v(" "),s("div",{staticClass:"w-full sm:w-2/3"},[s("div",[s("quiz-question-card",{key:e.card,attrs:{question:e,sno:r+1,"total-questions":t.quiz.total_questions}}),t._v(" "),"MSA"===e.questionType||"TOF"===e.questionType?s("div",{staticClass:"mt-4"},[s("MSAInteractiveOptions",{key:e.code,attrs:{"parent-qid":e.code,status:e.status,"parent-options":e.options,"parent-answer":e.user_answer},on:{modifyAnswer:t.updateAnswer}})],1):t._e(),t._v(" "),"MMA"===e.questionType?s("div",{staticClass:"mt-4"},[s("MMAInteractiveOptions",{key:e.code,attrs:{"parent-qid":e.code,status:e.status,"parent-options":e.options,"parent-answer":e.user_answer},on:{modifyAnswer:t.updateAnswer}})],1):t._e(),t._v(" "),"MTF"===e.questionType?s("div",{staticClass:"mt-4"},[s("MTFInteractiveOptions",{key:e.code,attrs:{parentQid:e.code,status:e.status,"parent-options":e.options,"parent-answer":e.user_answer},on:{modifyAnswer:t.updateAnswer}})],1):t._e(),t._v(" "),"ORD"===e.questionType?s("div",{staticClass:"mt-4"},[s("ORDInteractiveOptions",{key:e.code,attrs:{parentQid:e.code,status:e.status,"parent-options":e.options,"parent-answer":e.user_answer},on:{modifyAnswer:t.updateAnswer}})],1):t._e(),t._v(" "),"FIB"===e.questionType?s("div",{staticClass:"mt-4"},[s("FIBInteractiveOptions",{key:e.code,attrs:{parentQid:e.code,status:e.status,"parent-options":e.options,"parent-answer":e.user_answer},on:{modifyAnswer:t.updateAnswer}})],1):t._e(),t._v(" "),"SAQ"===e.questionType?s("div",{staticClass:"mt-4"},[s("SAQInteractiveOptions",{key:e.code,attrs:{parentQid:e.code,status:e.status,"parent-options":e.options,"parent-answer":e.user_answer},on:{modifyAnswer:t.updateAnswer}})],1):t._e()],1)])])])})),0)])])]),t._v(" "),s("div",{staticClass:"w-full h-16 absolute z-30 bottom-0 right-0 border-t border-gray-200 mx-auto bg-white"},[s("div",{staticClass:"w-full h-full mx-auto px-4 sm:px-6 lg:px-8"},[t.loading?t._e():s("div",{staticClass:"h-full flex flex-col justify-center items-center"},[s("div",{staticClass:"w-full flex items-center justify-between"},[s("div",{staticClass:"flex items-center gap-2"},[s("button",{staticClass:"focus:outline-none",on:{click:t.clearAnswer}},[s("clear-button",{attrs:{name:t.__("Clear Answer")}})],1)]),t._v(" "),s("div",{staticClass:"flex items-center gap-2"},[s("button",{staticClass:"focus:outline-none",on:{click:t.nextQuestion}},[s("next-button",{attrs:{name:t.__("Save & Next")}})],1)])])])])]),t._v(" "),s("ConfirmDialog")],1)}),[],!1,null,null,null).exports},9501:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>n});var r=s(4356),a=s(3426);const i={components:{AppLayout:r.Z,QuizCard:a.Z},props:{quiz:Object,session:Object},metaInfo:function(){return{title:this.title}},computed:{title:function(){return this.quiz.title+" Thank You - "+this.$page.props.general.app_name}}};const n=(0,s(1900).Z)(i,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("app-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v(t._s(t.quiz.title))])]},proxy:!0}])},[t._v(" "),s("div",{staticClass:"py-8"},[s("div",{staticClass:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"flex flex-col items-center"},[s("div",{staticClass:"w-full sm:w-2/3"},[s("div",{staticClass:"w-full rounded shadow-lg p-8 bg-gradient-to-tl from-green-600 to-green-700"},[s("h1",{staticClass:"text-2xl font-semibold leading-relaxed text-white"},[t._v(t._s(t.__("quiz_thanks"))+" "+t._s(t.quiz.title))]),t._v(" "),s("div",{staticClass:"flex flex-col sm:flex-row mt-7 gap-4"},[s("div",[s("p",{staticClass:"focus:outline-none text-xs text-gray-300"},[t._v(t._s(t.__("Answered")))]),t._v(" "),s("p",{staticClass:"focus:outline-none mt-2 text-base sm:text-lg md:text-xl 2xl:text-2xl text-gray-50"},[t._v("\n                                    "+t._s(t.session.results.answered_questions)+"/"+t._s(t.session.results.total_questions)+"\n                                ")])]),t._v(" "),s("div",{staticClass:"sm:ml-11"},[s("p",{staticClass:"focus:outline-none text-xs text-gray-300"},[t._v(t._s(t.__("Percentage")))]),t._v(" "),s("p",{staticClass:"focus:outline-none mt-2 text-base sm:text-lg md:text-xl 2xl:text-2xl text-gray-50"},[t._v(t._s(t.session.results.percentage)+"%")])]),t._v(" "),s("div",{staticClass:"sm:ml-11"},[s("p",{staticClass:"focus:outline-none text-xs text-gray-300"},[t._v(t._s(t.__("Score")))]),t._v(" "),s("p",{staticClass:"focus:outline-none mt-2 text-base sm:text-lg md:text-xl 2xl:text-2xl text-gray-50"},[t._v("\n                                    "+t._s(t.session.results.score)+"/"+t._s(t.quiz.total_marks)+"\n                                ")])]),t._v(" "),s("div",{staticClass:"sm:ml-11"},[s("p",{staticClass:"focus:outline-none text-xs text-gray-300"},[t._v(t._s(t.__("Pass"))+"/"+t._s(t.__("Fail")))]),t._v(" "),s("p",{staticClass:"focus:outline-none mt-2 text-base sm:text-lg md:text-xl 2xl:text-2xl text-gray-50"},[t._v(t._s(t.__(t.session.results.pass_or_fail)))])])]),t._v(" "),s("div",{staticClass:"pt-7 flex items-center justify-between"},[s("p",{staticClass:"focus:outline-none text-sm text-white"},[t._v(t._s(t.__("Pass Percentage"))+" "+t._s(t.session.results.cutoff)+"%")]),t._v(" "),s("inertia-link",{staticClass:"h-9 flex items-center text-green-700 rounded-sm bg-gray-50 focus:outline-none hover:opacity-90 px-4 py-2 text-sm font-medium leading-3",attrs:{href:t.route("quiz_results",{quiz:t.quiz.slug,session:t.session.code})}},[t._v("\n                                "+t._s(t.__("View Results"))+"\n                            ")])],1)])])])])])])}),[],!1,null,null,null).exports},9256:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>u});var r=s(4356),a=s(3426),i=s(2948);const n={name:"QuizCardShimmer",components:{Skeleton:s(247).default}};var o=s(1900);const l=(0,o.Z)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"bg-white opacity-75 rounded p-4 mb-6"},[s("Skeleton",{staticClass:"mb-2",attrs:{width:"10rem"}}),t._v(" "),s("Skeleton",{attrs:{height:"1rem"}})],1)}),[],!1,null,null,null).exports,c={components:{EmptyStudentCard:i.Z,AppLayout:r.Z,QuizCard:a.Z,QuizCardShimmer:l},props:{type:Object},data:function(){return{quizzes:Object,pagination:Object,debounce:null,loading:!1,paginationLoading:!1}},methods:{fetchQuizzes:function(){var t=this;t.loading=!0,axios.get(route("fetch_quizzes_by_type",{type:t.type.slug})).then((function(e){var s=e.data.quizzes;t.quizzes=s.data,t.pagination=s.meta.pagination,t.loading=!1})).catch((function(e){t.loading=!1})).then((function(){t.loading=!1}))},loadMoreQuizzes:function(){var t=this;t.paginationLoading=!0,axios.get(this.pagination.links.next).then((function(e){var s=e.data.quizzes.data;t.pagination=e.data.quizzes.meta.pagination,s.forEach((function(e){return t.quizzes.push(e)})),t.paginationLoading=!1})).catch((function(e){t.paginationLoading=!1}))}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return this.type.name+" - "+this.$page.props.general.app_name}},mounted:function(){this.fetchQuizzes()}};const u=(0,o.Z)(c,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("app-layout",{scopedSlots:t._u([{key:"header",fn:function(){return[s("h4",{staticClass:"page-heading"},[t._v(t._s(t.type.plural_name))])]},proxy:!0}])},[t._v(" "),s("div",{staticClass:"py-8"},[s("div",{staticClass:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"flex flex-col items-center"},[s("div",{staticClass:"w-full sm:w-2/3"},[s("div",{staticClass:"flex justify-between items-center mb-4"},[s("div",{staticClass:"relative inline-flex"},[s("h4",{staticClass:"py-4 px-4 text-xl font-semibold leading-tight text-gray-800"},[t._v(t._s(t.type.plural_name))])]),t._v(" "),s("div",{staticClass:"px-4"},[!t.loading&&t.pagination?s("span",{staticClass:"text-sm text-gray-500"},[t._v(t._s(t.pagination.total)+" "+t._s(t.__("Quizzes"))+" "+t._s(t.__("Found")))]):t._e()])]),t._v(" "),t.loading?s("div",{staticClass:"grid grid-cols-1 sm:grid-cols-2 gap-4 auto-rows-auto justify-center"},[s("quiz-card-shimmer"),t._v(" "),s("quiz-card-shimmer"),t._v(" "),s("quiz-card-shimmer"),t._v(" "),s("quiz-card-shimmer")],1):s("div",{staticClass:"grid grid-cols-1 sm:grid-cols-2 gap-4 px-4 mb-6"},[t._l(t.quizzes,(function(e,r){return[s("quiz-card",{attrs:{quiz:e},scopedSlots:t._u([{key:"action",fn:function(){return[s("inertia-link",{attrs:{href:t.route("quiz_instructions",{slug:e.slug})}},[s("span",{staticClass:"qt-btn qt-btn-sm qt-btn-success"},[t._v(t._s(t.__("Details")))])])]},proxy:!0}],null,!0)})]}))],2),t._v(" "),t.loading||0!==t.quizzes.length?t._e():s("div",{staticClass:"mb-6"},[s("empty-student-card",{attrs:{title:"No Schedules Found"}})],1),t._v(" "),!t.loading&&t.pagination&&t.quizzes.length!==t.pagination.total?s("div",{staticClass:"flex justify-center items-center"},[s("button",{staticClass:"qt-btn qt-btn-success flex items-center justify-center",on:{click:t.loadMoreQuizzes}},[t.paginationLoading?s("span",{staticClass:"text-sm"},[s("i",{staticClass:"pi pi-spin pi-spinner mr-2"}),t._v(" "+t._s(t.__("Fetching")))]):s("span",[t._v(t._s(t.__("Load More")))])])]):t._e(),t._v(" "),!t.loading&&t.pagination&&t.pagination.total_pages===t.pagination.current_page?s("div",{staticClass:"flex text-sm justify-center items-center py-4"},[t._v("\n                        "+t._s(t.__("no_more_data_message"))+"\n                    ")]):t._e()])])])])])}),[],!1,null,null,null).exports},5160:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>a});const r={components:{AuthLayout:s(7328).Z},metaInfo:function(){return{title:this.title}},computed:{title:function(){return this.$page.props.general.app_name+" - "+this.$page.props.general.tag_line}},props:{settings:Object}};const a=(0,s(1900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("auth-layout",[s("div",[t._v("Hello")])])}),[],!1,null,null,null).exports},3218:(t,e,s)=>{var r={"./API/ApiTokenManager":6170,"./API/ApiTokenManager.vue":6170,"./API/Index":7989,"./API/Index.vue":7989,"./Admin/Categories":3788,"./Admin/Categories.vue":3788,"./Admin/Comprehensions":8807,"./Admin/Comprehensions.vue":8807,"./Admin/Dashboard":8921,"./Admin/Dashboard.vue":8921,"./Admin/ImportQuestions":2232,"./Admin/ImportQuestions.vue":2232,"./Admin/PracticeSet/DetailedReport":7547,"./Admin/PracticeSet/DetailedReport.vue":7547,"./Admin/PracticeSet/Details":8109,"./Admin/PracticeSet/Details.vue":8109,"./Admin/PracticeSet/OverallReport":7626,"./Admin/PracticeSet/OverallReport.vue":7626,"./Admin/PracticeSet/PracticeAnalysis":7938,"./Admin/PracticeSet/PracticeAnalysis.vue":7938,"./Admin/PracticeSet/Questions":3343,"./Admin/PracticeSet/Questions.vue":3343,"./Admin/PracticeSet/Settings":1082,"./Admin/PracticeSet/Settings.vue":1082,"./Admin/PracticeSets":5992,"./Admin/PracticeSets.vue":5992,"./Admin/Question/Attachment":98,"./Admin/Question/Attachment.vue":98,"./Admin/Question/Details":8190,"./Admin/Question/Details.vue":8190,"./Admin/Question/Settings":3024,"./Admin/Question/Settings.vue":3024,"./Admin/Question/Solution":2884,"./Admin/Question/Solution.vue":2884,"./Admin/QuestionTypes":8608,"./Admin/QuestionTypes.vue":8608,"./Admin/Questions":7346,"./Admin/Questions.vue":7346,"./Admin/Quiz/DetailedReport":8191,"./Admin/Quiz/DetailedReport.vue":8191,"./Admin/Quiz/Details":7705,"./Admin/Quiz/Details.vue":7705,"./Admin/Quiz/OverallReport":7673,"./Admin/Quiz/OverallReport.vue":7673,"./Admin/Quiz/Questions":4510,"./Admin/Quiz/Questions.vue":4510,"./Admin/Quiz/SessionResults":3443,"./Admin/Quiz/SessionResults.vue":3443,"./Admin/Quiz/Settings":266,"./Admin/Quiz/Settings.vue":266,"./Admin/QuizSchedules":3886,"./Admin/QuizSchedules.vue":3886,"./Admin/Quizzes":7191,"./Admin/Quizzes.vue":7191,"./Admin/Sections":4422,"./Admin/Sections.vue":4422,"./Admin/Settings/CategorySettingsForm":9922,"./Admin/Settings/CategorySettingsForm.vue":9922,"./Admin/Settings/ClearCacheForm":5884,"./Admin/Settings/ClearCacheForm.vue":5884,"./Admin/Settings/CtaSettingsForm":3165,"./Admin/Settings/CtaSettingsForm.vue":3165,"./Admin/Settings/EmailSettings":9364,"./Admin/Settings/EmailSettings.vue":9364,"./Admin/Settings/EmailSettingsForm":8923,"./Admin/Settings/EmailSettingsForm.vue":8923,"./Admin/Settings/ExpireSchedulesForm":6843,"./Admin/Settings/ExpireSchedulesForm.vue":6843,"./Admin/Settings/FeatureSettingsForm":2080,"./Admin/Settings/FeatureSettingsForm.vue":2080,"./Admin/Settings/FontSettingsForm":1470,"./Admin/Settings/FontSettingsForm.vue":1470,"./Admin/Settings/FooterSettingsForm":3671,"./Admin/Settings/FooterSettingsForm.vue":3671,"./Admin/Settings/GeneralSettings":7548,"./Admin/Settings/GeneralSettings.vue":7548,"./Admin/Settings/HeroSettingsForm":6856,"./Admin/Settings/HeroSettingsForm.vue":6856,"./Admin/Settings/HomePageSettings":8730,"./Admin/Settings/HomePageSettings.vue":8730,"./Admin/Settings/HomePageSettingsForm":1507,"./Admin/Settings/HomePageSettingsForm.vue":1507,"./Admin/Settings/LocalizationSettings":6124,"./Admin/Settings/LocalizationSettings.vue":6124,"./Admin/Settings/LocalizationSettingsForm":281,"./Admin/Settings/LocalizationSettingsForm.vue":281,"./Admin/Settings/MaintenanceSettings":1381,"./Admin/Settings/MaintenanceSettings.vue":1381,"./Admin/Settings/SiteFaviconForm":3187,"./Admin/Settings/SiteFaviconForm.vue":3187,"./Admin/Settings/SiteLogoForm":2657,"./Admin/Settings/SiteLogoForm.vue":2657,"./Admin/Settings/SiteSettingsForm":7137,"./Admin/Settings/SiteSettingsForm.vue":7137,"./Admin/Settings/SiteWhiteLogoForm":5729,"./Admin/Settings/SiteWhiteLogoForm.vue":5729,"./Admin/Settings/StatSettingsForm":8550,"./Admin/Settings/StatSettingsForm.vue":8550,"./Admin/Settings/StorageLinksForm":3173,"./Admin/Settings/StorageLinksForm.vue":3173,"./Admin/Settings/TestimonialSettingsForm":6749,"./Admin/Settings/TestimonialSettingsForm.vue":6749,"./Admin/Settings/ThemeSettings":1817,"./Admin/Settings/ThemeSettings.vue":1817,"./Admin/Settings/ThemeSettingsForm":1121,"./Admin/Settings/ThemeSettingsForm.vue":1121,"./Admin/Settings/TopBarSettingsForm":3304,"./Admin/Settings/TopBarSettingsForm.vue":3304,"./Admin/Settings/UpdateAppForm":5684,"./Admin/Settings/UpdateAppForm.vue":5684,"./Admin/Skills":6793,"./Admin/Skills.vue":6793,"./Admin/SubCategories":4877,"./Admin/SubCategories.vue":4877,"./Admin/Topics":5909,"./Admin/Topics.vue":5909,"./Admin/UserGroups":5738,"./Admin/UserGroups.vue":5738,"./Admin/Users":1991,"./Admin/Users.vue":1991,"./Auth/ConfirmPassword":8414,"./Auth/ConfirmPassword.vue":8414,"./Auth/ForgotPassword":7835,"./Auth/ForgotPassword.vue":7835,"./Auth/Login":3622,"./Auth/Login.vue":3622,"./Auth/Register":3815,"./Auth/Register.vue":3815,"./Auth/ResetPassword":5318,"./Auth/ResetPassword.vue":5318,"./Auth/TwoFactorChallenge":5470,"./Auth/TwoFactorChallenge.vue":5470,"./Auth/VerifyEmail":3098,"./Auth/VerifyEmail.vue":3098,"./Instructor/Dashboard":254,"./Instructor/Dashboard.vue":254,"./PrivacyPolicy":447,"./PrivacyPolicy.vue":447,"./Profile/DeleteUserForm":2321,"./Profile/DeleteUserForm.vue":2321,"./Profile/LogoutOtherBrowserSessionsForm":6540,"./Profile/LogoutOtherBrowserSessionsForm.vue":6540,"./Profile/Show":9039,"./Profile/Show.vue":9039,"./Profile/TwoFactorAuthenticationForm":2376,"./Profile/TwoFactorAuthenticationForm.vue":2376,"./Profile/UpdatePasswordForm":1637,"./Profile/UpdatePasswordForm.vue":1637,"./Profile/UpdateProfileInformationForm":5765,"./Profile/UpdateProfileInformationForm.vue":5765,"./TermsOfService":5620,"./TermsOfService.vue":5620,"./User/Dashboard":600,"./User/Dashboard.vue":600,"./User/LiveQuizzes":2411,"./User/LiveQuizzes.vue":2411,"./User/MyPractice":9607,"./User/MyPractice.vue":9607,"./User/MyProgress":7553,"./User/MyProgress.vue":7553,"./User/MyQuizzes":6146,"./User/MyQuizzes.vue":6146,"./User/PracticeAnalysis":2067,"./User/PracticeAnalysis.vue":2067,"./User/PracticeDashboard":9626,"./User/PracticeDashboard.vue":9626,"./User/PracticeScreen":4611,"./User/PracticeScreen.vue":4611,"./User/PracticeSets":2708,"./User/PracticeSets.vue":2708,"./User/QuizDashboard":7993,"./User/QuizDashboard.vue":7993,"./User/QuizInstructions":4184,"./User/QuizInstructions.vue":4184,"./User/QuizResults":9135,"./User/QuizResults.vue":9135,"./User/QuizScheduleInstructions":1974,"./User/QuizScheduleInstructions.vue":1974,"./User/QuizScreen":4545,"./User/QuizScreen.vue":4545,"./User/QuizThanksScreen":9501,"./User/QuizThanksScreen.vue":9501,"./User/QuizzesByType":9256,"./User/QuizzesByType.vue":9256,"./Welcome":5160,"./Welcome.vue":5160};function a(t){var e=i(t);return s(e)}function i(t){if(!s.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}a.keys=function(){return Object.keys(r)},a.resolve=i,t.exports=a,a.id=3218}},t=>{var e=e=>t(t.s=e);t.O(0,[239,170,898],(()=>(e(5817),e(8916),e(5202))));t.O()}]);