(function(t){function e(e){for(var a,r,o=e[0],c=e[1],l=e[2],u=0,m=[];ue.getTime()&&"Completed"!==t.state_name})).length},activeLmsHomeworks:function(t){var e=new Date,s=t.assignments.filter((function(t){return new Date(t.start_date).getTime()e.getTime()&&"Completed"!==t.state_name}));return t.assignmentsCount=s.length,s.length>0?x.a.orderBy(s.slice(0,4),["end_date","scorm.scorm_name"],["desc","asc"]):x.a.orderBy(t.assignments.slice(0,4),["end_date","scorm.scorm_name"],["desc","asc"])}},mutations:{setPackages:function(t,e){"teacher"===t.roleType?t.freeContents=e:"student"===t.roleType&&(t.freeContents=e?e.filter((function(t){return"free"===t.package_type})):[])},setCollections:function(t,e){t.collections=e},setScorms:function(t,e){t.scorms=e},setLmsAssignments:function(t,e){var s,a=Object(g["a"])(e);try{for(a.s();!(s=a.n()).done;){var n=s.value;100===n.scorm.scorm_scores.total_score?n.state_name="Completed":0===n.scorm.scorm_scores.total_score?n.state_name="Not Started":n.state_name="Ongoing"}}catch(i){a.e(i)}finally{a.f()}e=x.a.orderBy(e,["start_date"],["desc"]),t.assignments=e},setLmsIndAssignments:function(t,e){var s,a=Object(g["a"])(e);try{for(a.s();!(s=a.n()).done;){var n=s.value;100===n.scorm.scorm_scores.total_score?n.state_name="Completed":0===n.scorm.scorm_scores.total_score?n.state_name="Not Started":n.state_name="Ongoing"}}catch(i){a.e(i)}finally{a.f()}e=x.a.orderBy(e,["start_date"],["desc"]),t.individualAssignments=e},setAssignments:function(t,e){t.assignmentss=e.data.data},setIndAssignments:function(t,e){t.individualAssignments=e.data.data}},actions:{getPackages:function(t){return Object(o["a"])(regeneratorRuntime.mark((function e(){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,j.getPackages();case 2:s=e.sent,t.commit("setPackages",s.data);case 4:case"end":return e.stop()}}),e)})))()},getCollections:function(t){return Object(o["a"])(regeneratorRuntime.mark((function e(){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,j.getCollections();case 2:s=e.sent,t.commit("setCollections",s.data);case 4:case"end":return e.stop()}}),e)})))()},getScorms:function(t){return Object(o["a"])(regeneratorRuntime.mark((function e(){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,j.getScorms();case 2:s=e.sent,t.commit("setScorms",s.data);case 4:case"end":return e.stop()}}),e)})))()},getLmsAssignments:function(t){return Object(o["a"])(regeneratorRuntime.mark((function e(){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,j.getAssignments(1,"id");case 2:s=e.sent,t.commit("setAssignments",s),t.commit("setLmsAssignments",s.data.data);case 5:case"end":return e.stop()}}),e)})))()},getLmsIndAssignments:function(t){return Object(o["a"])(regeneratorRuntime.mark((function e(){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,j.getAssignments(1,"id","individual");case 2:s=e.sent,t.commit("setLmsIndAssignments",s.data.data);case 4:case"end":return e.stop()}}),e)})))()}}},A={state:{googleCourses:[],googleCourseWorks:[],googleReady:!1},getters:{courseworks:function(t){var e,s=[],a=new Date,n=a.getUTCMonth()+1,i=a.getUTCDate(),r=a.getUTCFullYear(),o=Object(g["a"])(t.googleCourseWorks);try{for(o.s();!(e=o.n()).done;){var c=e.value;c.dueDate&&c.dueDate.year>=r&&c.dueDate.month>=n&&c.dueDate.day&&c.dueDate.day>=i&&s.push(c)}}catch(l){o.e(l)}finally{o.f()}return s.filter((function(t){return"ASSIGNMENT"===t.workType}))},courseworkCount:function(t){var e,s=[],a=new Date,n=a.getUTCMonth()+1,i=a.getUTCDate(),r=a.getUTCFullYear(),o=Object(g["a"])(t.googleCourseWorks);try{for(o.s();!(e=o.n()).done;){var c=e.value;c.dueDate&&c.dueDate.year>=r&&c.dueDate.month>=n&&c.dueDate.day&&c.dueDate.day>=i&&s.push(c)}}catch(l){o.e(l)}finally{o.f()}return s.filter((function(t){return"ASSIGNMENT"===t.workType})).length}},mutations:{setGoogleCourses:function(t,e){t.googleCourses=e},setGoogleCourseWorks:function(t,e){t.googleCourseWorks=e,t.googleReady=!0}},actions:{getGoogleClassroomData:function(t){return Object(o["a"])(regeneratorRuntime.mark((function e(){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,window.fetchCourses();case 2:s=e.sent,t.commit("setGoogleCourses",s.courses),t.commit("setGoogleCourseWorks",s.courseWorks);case 5:case"end":return e.stop()}}),e)})))()}}};a["a"].use(l["a"]);var O=x.a.merge(T,S,$,A),R=O.state,L=O.getters,P=O.mutations,I=O.actions,E=new l["a"].Store({plugins:[Object(D["a"])()],state:R,getters:L,mutations:P,actions:I}),B={login:function(t,e){return Object(o["a"])(regeneratorRuntime.mark((function s(){var a;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,k().post("/authenticate",{email:t,password:e,api_key:b.a.apiKey});case 3:if(a=s.sent,"Request failed with status code 401"!==a.message){s.next=6;break}return s.abrupt("return",{success:!1});case 6:return s.next=8,f.cookie.set(b.a.global_key.tokenName,a.data.token);case 8:return s.abrupt("return",{success:!0,data:a.data});case 11:return s.prev=11,s.t0=s["catch"](0),s.abrupt("return",{success:!1,data:s.t0.message});case 14:case"end":return s.stop()}}),s,null,[[0,11]])})))()},loginSso:function(t){return Object(o["a"])(regeneratorRuntime.mark((function e(){var s,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,s=null,"student"!==t.roleType.toLowerCase()){e.next=8;break}return e.next=5,k().post("/platformUserCreate",{school_id:t.school_id,campus_name:t.campus_name,first_name:t.first_name,last_name:t.last_name,username:t.username,password:t.password,api_key:b.a.apiKey,role:t.roleType,class:t.class,branch:t.branch});case 5:s=e.sent,e.next=12;break;case 8:if("teacher"!==t.roleType.toLowerCase()){e.next=12;break}return e.next=11,k().post("/platformUserCreate",{school_id:t.school_id,campus_name:t.campus_name,first_name:t.first_name,last_name:t.last_name,username:t.username,password:t.password,api_key:b.a.apiKey,role:t.roleType,classes:t.classes});case 11:s=e.sent;case 12:if(422===s.data.status_code){e.next=21;break}return e.next=15,k().post("/authenticate",{email:t.username,password:t.password,api_key:b.a.apiKey});case 15:if(a=e.sent,"Request failed with status code 401"!==a.message){e.next=18;break}return e.abrupt("return",{success:!1});case 18:return e.next=20,f.cookie.set(b.a.global_key.tokenName,a.data.token);case 20:return e.abrupt("return",{success:!0,data:a.data});case 21:return e.abrupt("return",{success:!0,data:s.data.message});case 24:return e.prev=24,e.t0=e["catch"](0),e.abrupt("return",{success:!1,data:e.t0.message});case 27:case"end":return e.stop()}}),e,null,[[0,24]])})))()},refreshToken:function(){return Object(o["a"])(regeneratorRuntime.mark((function t(){var e,s,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e=E.state.username,s=E.state.password,t.next=5,k().post("/authenticate",{email:e,password:s,api_key:b.a.apiKey});case 5:return a=t.sent,t.next=8,f.cookie.set(b.a.global_key.tokenName,a.data.token);case 8:return t.abrupt("return",{success:!0,data:a.data});case 11:return t.prev=11,t.t0=t["catch"](0),t.abrupt("return",{success:!1,data:t.t0.message});case 14:case"end":return t.stop()}}),t,null,[[0,11]])})))()},checkSchool:function(){return Object(o["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,k().post("/organization/checkNLSchool");case 3:return e=t.sent,t.abrupt("return",{success:!0,data:e.data});case 7:return t.prev=7,t.t0=t["catch"](0),t.abrupt("return",{success:!1,data:t.t0.message});case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))()},loginLog:function(t,e){return Object(o["a"])(regeneratorRuntime.mark((function s(){var a;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,k().post("/user/loginLog",{api_key:b.a.apiKey,user_agent:t,ip_address:e});case 3:return a=s.sent,s.abrupt("return",{success:!0,data:a.data});case 7:return s.prev=7,s.t0=s["catch"](0),s.abrupt("return",{success:!1,data:s.t0.message});case 10:case"end":return s.stop()}}),s,null,[[0,7]])})))()}},M={getStudentDetails:function(){return Object(o["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,B.refreshToken();case 3:return t.next=5,k().post("/user");case 5:return e=t.sent,t.abrupt("return",{success:!0,data:e.data.data});case 9:return t.prev=9,t.t0=t["catch"](0),t.abrupt("return",{success:!1,data:t.t0.message});case 12:case"end":return t.stop()}}),t,null,[[0,9]])})))()},getTimeStamp:function(){return Object(o["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,B.refreshToken();case 3:return t.next=5,k().get("/settings/datetime");case 5:return e=t.sent,t.abrupt("return",{success:!0,data:e.data});case 9:return t.prev=9,t.t0=t["catch"](0),t.abrupt("return",{success:!1,data:t.t0.message});case 12:case"end":return t.stop()}}),t,null,[[0,9]])})))()},setProfilePicture:function(t){return Object(o["a"])(regeneratorRuntime.mark((function e(){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,B.refreshToken();case 3:return e.next=5,k().post("/user/avatarUpdate",t);case 5:if(s=e.sent,!0!==s.data.success){e.next=8;break}return e.abrupt("return",!0);case 8:return e.abrupt("return",!1);case 11:return e.prev=11,e.t0=e["catch"](0),e.abrupt("return",!1);case 14:case"end":return e.stop()}}),e,null,[[0,11]])})))()},getTeacherStudents:function(t){return Object(o["a"])(regeneratorRuntime.mark((function e(){var s,a,n,i,r,o,c,l,d,u,m;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=[],e.next=3,B.refreshToken();case 3:a=t.filter((function(t){return"grade"===t.type})),n=Object(g["a"])(a),e.prev=5,n.s();case 7:if((i=n.n()).done){e.next=25;break}return r=i.value,o={},o.text=r.name,o.value=r.id,o.icon="fa fa-sitemap",o.type="class",o.children=[],o.selected=!1,o.opened=!1,e.next=19,k().get("organization/".concat(r.id,"/students"));case 19:c=e.sent,l=Object(g["a"])(c.data);try{for(l.s();!(d=l.n()).done;)u=d.value,m={},m.text=u.student_name,m.icon="fa fa-user",m.value=u.user_id,m.type="student",m.selected=!1,m.parentValue=r.id,o.children.push(m)}catch(_){l.e(_)}finally{l.f()}s.push(o);case 23:e.next=7;break;case 25:e.next=30;break;case 27:e.prev=27,e.t0=e["catch"](5),n.e(e.t0);case 30:return e.prev=30,n.f(),e.finish(30);case 33:return e.abrupt("return",s);case 34:case"end":return e.stop()}}),e,null,[[5,27,30,33]])})))()},createUser:function(t){return Object(o["a"])(regeneratorRuntime.mark((function e(){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,k().post("/authenticate/createuser",t);case 3:return s=e.sent,e.abrupt("return",{success:!0,data:s.data});case 7:return e.prev=7,e.t0=e["catch"](0),e.abrupt("return",{success:!1,data:e.t0.message});case 10:case"end":return e.stop()}}),e,null,[[0,7]])})))()}},N={name:"profile",data:function(){return{selectedFile:null}},computed:Object(c["a"])(Object(c["a"])({},Object(l["c"])(["profileData"])),{},{imgpath:function(){var t=this.profileData.avatar?this.profileData.avatar:"/static/img/default-avatar.png";return t}}),methods:{hideImg:function(){this.$refs.profilePicture.style.opacity=.5},showImg:function(){this.$refs.profilePicture.style.opacity=1},onFileSelected:function(t){this.selectedFile=t.target.files[0],this.upload(this.selectedFile)},upload:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function s(){var a,n;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return a=new FormData,a.append("avatar",t),s.next=4,M.setProfilePicture(a);case 4:n=s.sent,console.log("deneme",n),n&&e.$store.dispatch("getUserDetails");case 7:case"end":return s.stop()}}),s)})))()}}},H=N,z=s("0f04"),q=s("2877");function F(t){this["$style"]=z["default"].locals||z["default"]}var U=Object(q["a"])(H,_,p,!1,F,null,null),Y=U.exports,V={name:"headerCustom",data:function(){return{wsCode:null}},methods:{readyLibrary:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var s,a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(s=!1,a=t.userDetails.organization.find((function(t){return"main"===t.type})).id,!t.collections.data){e.next=7;break}return s=t.collections.data.find((function(t){return 213===t.id})),e.abrupt("return",s?1:0);case 7:if(48710!==a){e.next=13;break}return e.next=10,j.getPiriScorms(0,999,"reader");case 10:return n=e.sent,s=n,e.abrupt("return",s?1:0);case 13:return e.abrupt("return",s);case 14:case"end":return e.stop()}}),e)})))()},readyResources:function(){var t=!1;return this.userDetails?(t=11558!==this.userDetails.organization.find((function(t){return"main"===t.type})).id,t?1:0):t},logout:function(){f.cookie.set(b.a.global_key.tokenName,"",0),f.cookie.set(b.a.global_key.mcourserTokenName,"",0),localStorage.clear(),window.location="/"},back:function(){this.$router.go(-1)},home:function(){this.$router.push("/home")}},props:["isHome"],computed:Object(c["a"])({},Object(l["e"])(["roleType","grade","username","password","userDetails","collections"])),components:{Profile:Y},mounted:function(){Object(m["a"])("[title]")}},G=V,W=s("c356");s("fc36");function K(t){this["$style"]=W["default"].locals||W["default"]}var J=Object(q["a"])(G,d,u,!1,K,"e2f3bcb4",null),Z=J.exports,Q=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"row pt-1",staticStyle:{background:"#ededee","border-radius":"10px","box-shadow":"0.5px 0.866px 4px 0px rgba(2, 8, 2, 0.2)","padding-bottom":"25px"}},[s("div",{staticClass:"col-md-12"},[s("span",{staticClass:"text-left",class:t.$style.title},[t._v("ASSIGNMENTS")])]),s("div",{staticClass:"col-md-12 col-sm-12 mt-1 align-self-start"},[s("div",{staticClass:"row justify-content-between",class:t.$style.outNav},[s("div",{staticClass:"col-md-5",staticStyle:{background:"white","box-shadow":"0 4px 8px 0 rgba(0, 0, 0, 0.1) !important"}},[s("vue-c3",{directives:[{name:"show",rawName:"v-show",value:t.totalCount>0,expression:"totalCount > 0"}],attrs:{handler:t.countHandler}})],1),s("div",{staticClass:"col-md-5",staticStyle:{background:"white","box-shadow":"0 4px 8px 0 rgba(0, 0, 0, 0.1) !important"}},[s("vue-c3",{directives:[{name:"show",rawName:"v-show",value:t.totalCount2>0,expression:"totalCount2 > 0"}],attrs:{handler:t.countHandler2}})],1),s("div",{directives:[{name:"show",rawName:"v-show",value:t.noContent(),expression:"noContent()"}],staticClass:"col-md-12 mb-5"},[t._v(" There is no Assignment. ")])])])])},X=[],tt=s("4533"),et=s.n(tt),st={name:"chart",data:function(){return{countHandler:new a["a"],countHandler2:new a["a"],scoreHandler:new a["a"],scoreHandler2:new a["a"],totalCount:null,totalCount2:null}},components:{VueC3:et.a},computed:Object(c["a"])({},Object(l["c"])(["stats","stats2"])),methods:{setCharts:function(){var t=this,e={data:{columns:[["Ongoing",this.stats.count.ongoing]],onclick:function(){t.$router.push("/assignments")},type:"donut"},legend:{show:!0,position:"right"},tooltip:{show:!1},size:{height:200},color:{pattern:[b.a.colors.secondaryColor]},donut:{label:{format:function(t){return t}},title:"Total: ".concat(this.stats.count.total)},title:{text:"Group"},padding:{top:5}},s={data:{columns:[["Average",parseInt(this.stats.avgScore,10)],["Remaining",100-parseInt(this.stats.avgScore,10)]],onclick:function(){t.$router.push("/assignments")},type:"donut"},legend:{show:!0,position:"right"},tooltip:{show:!1},size:{height:200},color:{pattern:[b.a.colors.primaryColor,"#dee2e6"]},donut:{label:{format:function(t){return t},show:!1},title:"".concat(parseInt(this.stats.avgScore,10),"%")},title:{text:"Average Score"},padding:{top:5}};this.countHandler.$emit("init",e),this.scoreHandler.$emit("init",s)},setCharts2:function(){var t=this,e={data:{columns:[["Ongoing",this.stats2.count.ongoing]],onclick:function(){t.$router.push({name:"teacherAssignments",params:{type:"individual"}})},type:"donut"},legend:{show:!0,position:"right"},tooltip:{show:!1},size:{height:200},color:{pattern:[b.a.colors.secondaryColor]},donut:{label:{format:function(t){return t}},title:"Total: ".concat(this.stats2.count.total)},title:{text:"Individual"},padding:{top:5}},s={data:{columns:[["Average",parseInt(this.stats2.avgScore,10)],["Remaining",100-parseInt(this.stats2.avgScore,10)]],onclick:function(){t.$router.push({name:"teacherAssignments",params:{type:"individual"}})},type:"donut"},legend:{show:!0,position:"right"},tooltip:{show:!1},size:{height:200},color:{pattern:[b.a.colors.primaryColor,"#dee2e6"]},donut:{label:{format:function(t){return t},show:!1},title:"".concat(parseInt(this.stats2.avgScore,10),"%")},title:{text:"Average Score"},padding:{top:5}};this.countHandler2.$emit("init",e),this.scoreHandler2.$emit("init",s)},noContent:function(){var t=!1;return 0===this.totalCount&&0===this.totalCount2&&(t=!0),t}},mounted:function(){this.ready=!1,this.setCharts(),this.setCharts2(),this.totalCount=this.stats.count.total,this.totalCount2=this.stats2.count.total,this.ready=!0},watch:{stats:function(){this.setCharts(),this.totalCount=this.stats.count.total,this.totalCount2=this.stats2.count.total},stats2:function(){this.setCharts2(),this.totalCount=this.stats.count.total,this.totalCount2=this.stats2.count.total}}},at=st,nt=s("2686");function it(t){this["$style"]=nt["default"].locals||nt["default"]}var rt=Object(q["a"])(at,Q,X,!1,it,null,null),ot=rt.exports,ct=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"row",staticStyle:{background:"white","border-radius":"10px","box-shadow":"0.5px 0.866px 4px 0px rgba(2, 8, 2, 0.2)","padding-bottom":"25px"}},[s("div",{staticClass:"col-md-12",class:t.$style.divColHomeworks},[s("div",{class:t.$style.divHomeworks},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-md-12"},[s("router-link",{class:t.$style.customLink,attrs:{to:{name:"studentAssignments"}}},[s("span",{staticClass:"float-left",class:t.$style.title},[t._v("ASSIGNMENTS")]),t.assignmentsCount>4?s("span",{staticClass:"float-right",class:t.$style.title},[t._v("Show More ("+t._s(t.activeLmsHomeworks.length)+" / "+t._s(t.assignmentsCount)+")")]):t._e()])],1)]),t.lmsLoading?s("div",{staticClass:"row mt-2",class:t.$style.customTable},t._l(t.activeLmsHomeworks,(function(t){return s("div",{key:t.scorm.scorm_id,staticClass:"col-md-3 mt-1"},[s("Card",{attrs:{contentType:"scorm",scormCode:t.scorm.scorm_code,scormTitle:t.scorm.scorm_name,id:t.scorm.scorm_id,title:t.assignment_name,packageId:t.assignment_id,imgpath:"https://www.ueslms.com/uploads/scorm-big-image"!==t.scorm.scorm_big_image?t.scorm.scorm_image:t.scorm.scorm_big_image,score:t.scorm.scorm_scores.total_score,date:t.end_date,scormDesc:t.scorm.scorm_desc,collPath:t.scorm.collection_path}})],1)})),0):s("div",{staticClass:"row",class:t.$style.customTable},[s("div",{staticClass:"col-md-10 offset-md-1",class:t.$style.divMaterialColumn},[s("div",{class:t.$style.lmsLoading})])])])])])},lt=[],dt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card",class:t.$style.divCard,attrs:{title:t.scormDesc}},[s("div",{class:t.$style.customCard,on:{click:function(e){return t.goToContent()}}},[s("div",{staticClass:"row",class:t.$style.topCard},[s("div",{staticClass:"col-md-12",staticStyle:{width:"100%","max-height":"185px",overflow:"hidden"}},[s("img",{staticStyle:{width:"100%"},attrs:{src:t.imgpath,alt:"Content Cover",onerror:"this.src='https://cdn0.iconfinder.com/data/icons/seo-smart-pack/128/grey_new_seo-37-512.png'"}})])]),s("div",{staticClass:"col-md-12",staticStyle:{display:"flex","flex-direction":"column"}},["teacher"==t.roleType&&1==t.isHistory?s("h4",{class:t.$style.pathTitle},[t._v(" Already assigned ")]):t._e(),"scorm"==t.contentType&&"student"==t.roleType?s("h4",{class:t.$style.pathTitle},[t._v(" "+t._s(t.collPath)+" ")]):t._e(),"details"==t.contentType&&"teacher"==t.roleType?s("h4",{class:t.$style.pathTitle},[t._v(" "+t._s(t.collPath)+" ")]):t._e(),s("h1",{class:t.$style.contentTitle},[t._v(t._s(t.scormTitle?t.scormTitle:t.title))]),s("div",{staticClass:"row justify-content-center"},[s("div",["Not Started"===t.stateName?s("span",{staticClass:"badge badge-light",class:t.$style.divState},[t._v(t._s(t.stateName))]):"Ongoing"===t.stateName?s("span",{staticClass:"badge badge-info",class:t.$style.divState},[t._v(t._s(t.stateName))]):"Completed"===t.stateName?s("span",{staticClass:"badge badge-success",class:t.$style.divState},[t._v(t._s(t.stateName))]):"Expired"===t.stateName?s("span",{staticClass:"badge badge-danger",class:t.$style.divState},[t._v(t._s(t.stateName))]):t._e()])])]),"scorm"==t.contentType&&t.title?s("div",{staticClass:"row justify-content-center",class:t.$style.progressRow},[s("div",{staticClass:"col-md-12"},[s("div",{staticClass:"progress"},[s("div",{staticClass:"progress-bar progress-bar-striped",style:this.styleObject,attrs:{role:"progressbar","aria-valuemin":"10","aria-valuemax":"100"}},[t._v(t._s(t.score?Math.floor(t.score):0)+"%")])])])]):t._e(),t.date?s("div",{staticClass:"row d-flex justify-content-bottom align-items-center mt-3",class:t.$style.bottomCard},["student"===this.$store.state.roleType&&"assignment"===this.packageType||t.date?s("span",{staticClass:"col-lg-5 offset-lg-1 col-md-5 offset-md-1 col-sm-5 offset-sm-1 col-xs-5 offset-xs-1 badge badge-info",class:[t.$style.customBadge,t.$style.customBadgeFirst]},[t._v("Due Date")]):t._e(),t.date?s("span",{staticClass:"col-lg-6 col-md-5 col-sm-5 col-xs-5 badge",class:t.$style.customBadge},[t._v(t._s(t.convertDate(t.date)))]):t._e()]):t._e()])])},ut=[],mt=(s("5319"),{name:"card",data:function(){return{routerObj:{},styleObject:{width:"",color:"#fff"},scoreCard:0}},props:["title","imgpath","score","date","contentType","id","packageType","stateName","scormTitle","scormCode","scormDesc","linkUrl","packageId","coverImageHeight","assignmentId","communityType","collPath","isHistory"],mounted:function(){this.setRouterObject(),this.setCoverImageHeight(),this.setScoreProgess()},updated:function(){this.setRouterObject(),this.setCoverImageHeight()},computed:Object(c["a"])({},Object(l["e"])(["roleType","userDetails"])),methods:{goToContent:function(){"link"===this.contentType?window.open(this.linkUrl,"_blank"):"code"===this.contentType?window.open("https://content.ueslms.com/scorms/".concat(this.linkUrl,"/index_new.html"),"_blank"):"details"===this.contentType?(this.routerObj={name:"assignmentDetails",params:{id:this.assignmentId,community:this.communityType}},this.$router.push(this.routerObj)):this.$router.push(this.routerObj)},setRouterObject:function(){"scorm"===this.contentType?(Object(m["a"])("[title]"),"student"===this.roleType?this.date&&!this.linkUrl?this.routerObj={name:"assignmentDetails",params:{id:this.packageId,community:"individual"}}:this.routerObj={name:this.contentType,params:{id:this.id,packageId:this.packageId,scormTitle:this.scormTitle,scormDesc:this.scormDesc,scormCode:this.scormCode,packageType:null,timestamp:null}}:"teacher"===this.roleType&&(this.routerObj={name:this.contentType,params:{id:this.id,packageId:this.packageId,scormTitle:this.scormTitle,scormDesc:this.scormDesc,scormCode:this.scormCode,packageType:null,timestamp:null}})):"free"===this.contentType?this.routerObj={name:"scorm",params:{id:this.id,packageId:this.packageId,scormTitle:this.scormTitle,scormDesc:this.scormDesc,scormCode:this.scormCode,timestamp:null}}:this.routerObj={name:"collectionsPackage"===this.contentType?"collections":this.contentType,params:{id:this.id,searchList:"collectionsPackage"===this.contentType?"packages":"collections"}}},setCoverImageHeight:function(){if(this.coverImageHeight){var t,e=document.getElementsByClassName("cardCoverImg"),s=Object(g["a"])(e);try{for(s.s();!(t=s.n()).done;){var a=t.value;a.style.minHeight=this.coverImageHeight,a.style.width="auto"}}catch(n){s.e(n)}finally{s.f()}}},convertDate:function(t){function e(t){return t<10?"0".concat(t):t}var s=t.replace(/-/g,"/"),a=new Date(s),n=[e(a.getDate()),e(a.getMonth()+1),a.getFullYear()].join("-");return"".concat(n)},setScoreProgess:function(){this.score<5?this.styleObject.width="10%":this.styleObject.width="".concat(this.score,"%")}}}),_t=mt,pt=s("710f");function gt(t){this["$style"]=pt["default"].locals||pt["default"]}var ht=Object(q["a"])(_t,dt,ut,!1,gt,null,null),vt=ht.exports,ft=s("c1df"),yt=s.n(ft),bt={name:"homeworks",computed:Object(c["a"])(Object(c["a"])({},Object(l["c"])(["courseworks","lmsHomeworkCount","courseworkCount","activeLmsHomeworks"])),Object(l["e"])(["assignments","assignmentsCount"])),components:{Card:vt},methods:{timetohomeworks:function(){return yt()().valueOf()yt()(this.activeLmsHomeworks[0].start_date).valueOf()}},props:["lmsLoading","googleLoading"]},Ct=bt,kt=s("f4fc");function wt(t){this["$style"]=kt["default"].locals||kt["default"]}var xt=Object(q["a"])(Ct,ct,lt,!1,wt,null,null),Dt=xt.exports,Tt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"row",staticStyle:{background:"#ededee","border-radius":"10px","box-shadow":"0.5px 0.866px 4px 0px rgba(2, 8, 2, 0.2)","padding-bottom":"25px"}},[s("div",{staticClass:"col-md-12 col-sm-12 mt-1"},["student"===t.roleType?s("div",{staticClass:"row mt-2"},[s("br"),Number(this.grade)>=5&&Number(this.grade)<=7?s("div",{staticClass:"col-md-6 mt-3"},[s("a",{attrs:{href:"https://www.hexagonia.com.tr"+t.hexaquerystingtext,target:"_blank"}},[s("div",{class:t.$style.divPlatform},[s("div",{class:[t.$style.divPlatformBtn,t.$style.divPlatformBtnHexagonia]})])])]):t._e(),Number(this.grade)>=1&&Number(this.grade)<=4?s("div",{staticClass:"col-md-6 mt-3"},[s("a",{attrs:{href:"https://www.kidzwonder.com"+t.kwquerystingtext,target:"_blank"}},[s("div",{class:t.$style.divPlatform},[s("div",{class:[t.$style.divPlatformBtn,t.$style.divPlatformBtnKidzwonder]})])])]):t._e(),null!=this.rlpCode&&"###"!=this.rlpCode||"###"==this.rlpCode?[s("div",{staticClass:"col-md-6 mt-3"},[s("a",{attrs:{"data-toggle":"modal","data-target":"#rlpDescription"}},[s("div",{class:t.$style.divPlatform},[s("div",{class:[t.$style.divPlatformBtn,t.$style.divPlatformBtnRLP]})])])])]:t._e()],2):"teacher"===t.roleType?s("div",{staticClass:"row mt-2"},[null!=this.rlpUse?s("div",{staticClass:"col-md-6"},[s("a",{attrs:{href:"https://richmondlp.com/login",target:"blank"}},[s("div",{class:t.$style.divPlatform},[s("div",{class:[t.$style.divPlatformBtn,t.$style.divPlatformBtnRLP]})])])]):t._e(),s("div",{staticClass:"col-md-6"},[s("a",{attrs:{href:"https://www.uesportals.com/#/login/signin"+t.querystingtext,target:"_blank"}},[s("div",{class:t.$style.divPlatform},[s("div",{class:[t.$style.divPlatformBtn,t.$style.divPlatformBtnHexagonia]})])])]),s("div",{staticClass:"col-md-6"},[s("a",{attrs:{href:"https://www.uesportals.com/#/login/signin"+t.kwquerystingtext,target:"_blank"}},[s("div",{class:t.$style.divPlatform},[s("div",{class:[t.$style.divPlatformBtn,t.$style.divPlatformBtnKidzwonder]})])])]),s("div",{staticClass:"col-md-6 mt-3"},[s("a",{attrs:{href:"https://drive.google.com/drive/folders/1Mfg-4F718VRJbmlVy2FzFVxL2XmN6HhW?usp=sharing",target:"_blank"}},[s("div",{class:t.$style.divPlatform},[s("div",{class:t.$style.txtPlatform},[t._v("READERS")]),s("div",{class:[t.$style.divPlatformBtn,t.$style.divPlatformBtnReaders]})])])])]):t._e()]),s("div",{staticClass:"modal fade",attrs:{id:"rlpDescription",tabindex:"-1",role:"dialog","aria-labelledby":"exampleModalCenterTitle1","aria-hidden":"true"}},[s("div",{staticClass:"modal-dialog modal-lg modal-dialog-centered",attrs:{role:"document"}},[s("div",{staticClass:"modal-content"},[t._m(0),s("div",{staticClass:"modal-body"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-md-12 mt-1"},[s("div",{class:t.$style.divPlatform},[null!=this.rlpCode&&"###"!=this.rlpCode?[t._m(1),t._m(2),t._m(3),t._m(4),t._m(5),t._m(6),t._m(7)]:"###"==this.rlpCode?[t._m(8),t._m(9),t._m(10),t._m(11),t._m(12),t._m(13)]:t._e()],2)]),null!=this.rlpCode&&"###"!=this.rlpCode?s("div",{staticClass:"col-md-12 mt-1"},[s("div",{class:t.$style.divPlatform,staticStyle:{height:"auto !important"}},[s("div",{staticClass:"row mt-3 mb-3"},[s("div",{staticClass:"col-8"},[s("p",{ref:"code",staticStyle:{margin:"5px 5px 5px 5px"},on:{focus:function(t){return t.target.select()}}},[t._v(t._s(t.rlpCode))]),s("input",{attrs:{type:"hidden",id:"rlp-code"},domProps:{value:t.rlpCode}})]),s("div",{staticClass:"col-4"},[s("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:function(e){return t.copyCode()}}},[t._v("Kodu Kopyala")])])])])]):t._e(),s("div",{staticClass:"col-md-6 mt-1"},[s("a",{attrs:{target:"_blank","data-dismiss":"modal"},on:{click:function(e){return t.RLP()}}},[s("div",{class:t.$style.divPlatform},[s("div",{class:[t.$style.divPlatformBtn,t.$style.divPlatformBtnRLP]})])])]),null!=this.rlpCode&&"###"!=this.rlpCode?s("div",{staticClass:"col-md-6 mt-1"},[s("a",{attrs:{href:"https://www.youtube.com/embed/5VS7u30m_Gc?si=2K_RXLa5Y_u_L64y",target:"blank"}},[s("div",{class:t.$style.divPlatform},[s("div",{class:[t.$style.divPlatformBtn,t.$style.divPlatformBtnRLPYoutube]})])])]):t._e(),"###"==this.rlpCode?s("div",{staticClass:"col-md-6 mt-1"},[s("a",{attrs:{href:"https://www.youtube.com/embed/O2x4o_LeEqY?si=ctl_x10KvOEDzTVe",target:"blank"}},[s("div",{class:t.$style.divPlatform},[s("div",{class:[t.$style.divPlatformBtn,t.$style.divPlatformBtnRLPYoutube]})])])]):t._e()])]),t._m(14)])])])])},St=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"modal-header"},[s("h5",{staticClass:"modal-title",attrs:{id:"exampleModalLongTitle1"}},[t._v("Richmond Learning Platform Aktivasyon Adımları")]),s("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[s("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("p",{staticStyle:{margin:"5px 5px 5px 5px"}},[s("b",{staticStyle:{color:"red"}},[t._v("1.")]),t._v(" Platforma ilk defa erişiyorsanız, öncelikle aşağıdaki "),s("b",[t._v('"Kodu Kopyala"')]),t._v(" butonuna basarak kitap kodunuzu kopyalayınız.")])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("p",{staticStyle:{margin:"5px 5px 5px 5px"}},[s("b",{staticStyle:{color:"red"}},[t._v("2.")]),t._v(" Altta gördüğünüz "),s("b",[t._v('"Richmond Learning Platform')]),t._v(" simgesine tıklayınız ve siteye geçiş yapınız.")])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("p",{staticStyle:{margin:"5px 5px 5px 5px"}},[s("b",{staticStyle:{color:"red"}},[t._v("3.")]),t._v(" Ekranda "),s("b",[t._v('"MY PRODUCTS"')]),t._v(" başlığı altında bulunan "),s("b",[t._v('"ADD ACCESS CODE"')]),t._v(" butonuna basın ve kopyaladığınız kodu "),s("b",[t._v('"Please Enter a Code"')]),t._v(" alanına yapıştırınız.")])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("p",{staticStyle:{margin:"5px 5px 5px 5px"}},[s("b",{staticStyle:{color:"red"}},[t._v("4.")]),t._v(" Kodu yapıştırdıktan sonra sağ alt bölümde görünen "),s("b",[t._v('"Add Product"')]),t._v(" butonuna tıklayınız.")])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("p",{staticStyle:{margin:"5px 5px 5px 5px"}},[s("b",{staticStyle:{color:"red"}},[t._v("5.")]),t._v(" Ardından ekranda göreceğiniz "),s("b",[t._v('"START"')]),t._v(" butonuna tıklayınız.")])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("p",{staticStyle:{margin:"5px 5px 5px 5px"}},[s("b",{staticStyle:{color:"red"}},[t._v("6.")]),t._v(" Artık hesabınızda kitabınız aktif edilmiştir. Platformu kullanmaya başlayabilirsiniz.")])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("p",{staticStyle:{margin:"5px 5px 5px 5px"}},[s("b",{staticStyle:{color:"red"}},[t._v("7.")]),t._v(" Sonraki erişimlerinizde sadece "),s("b",[t._v('"Richmond Learning Platform"')]),t._v(" butonuna basıp platformu kullanabilirsiniz.")])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("p",{staticStyle:{margin:"5px 5px 5px 5px"}},[s("b",{staticStyle:{color:"red"}},[t._v("1.")]),t._v(" Platforma ilk defa erişiyorsanız altta gördüğünüz "),s("b",[t._v('"Richmond Learning Platform')]),t._v(" simgesine tıklayınız ve siteye geçiş yapınız.")])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("p",{staticStyle:{margin:"5px 5px 5px 5px"}},[s("b",{staticStyle:{color:"red"}},[t._v("2.")]),t._v(" Ekranda "),s("b",[t._v('"MY PRODUCTS"')]),t._v(" başlığı altında bulunan "),s("b",[t._v('"ADD ACCESS CODE"')]),t._v(" butonuna basın ve kitabınızda ön kapak içinde bulunan kodu "),s("b",[t._v('"Please Enter a Code"')]),t._v(" alanına yazınız.")])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("p",{staticStyle:{margin:"5px 5px 5px 5px"}},[s("b",{staticStyle:{color:"red"}},[t._v("3.")]),t._v(" Kodu yazdıktan sonra sağ alt bölümde görünen "),s("b",[t._v('"Add Product"')]),t._v(" butonuna tıklayınız.")])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("p",{staticStyle:{margin:"5px 5px 5px 5px"}},[s("b",{staticStyle:{color:"red"}},[t._v("4.")]),t._v(" Ardından ekranda göreceğiniz "),s("b",[t._v('"START"')]),t._v(" butonuna tıklayınız.")])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("p",{staticStyle:{margin:"5px 5px 5px 5px"}},[s("b",{staticStyle:{color:"red"}},[t._v("5.")]),t._v(" Artık hesabınızda kitabınız aktif edilmiştir. Platformu kullanmaya başlayabilirsiniz.")])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("p",{staticStyle:{margin:"5px 5px 5px 5px"}},[s("b",{staticStyle:{color:"red"}},[t._v("6.")]),t._v(" Sonraki erişimlerinizde sadece "),s("b",[t._v('"Richmond Learning Platform"')]),t._v(" butonuna basıp platformu kullanabilirsiniz.")])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"modal-footer"},[s("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Close")])])}],jt=(s("25f0"),s("3452")),$t=s.n(jt),At=s("1940"),Ot=s.n(At),Rt={name:"platforms",data:function(){return{rlpUse:null,rlpCode:null,grade:"",grade_id:null,level:"",roleType:"",querystingtext:"",kwquerystingtext:"",hexaquerystingtext:"",zoom:"",checkTime:!0}},computed:Object(c["a"])(Object(c["a"])({},Object(l["e"])(["userDetails","username","password"])),{},{levelName:function(){return this.$store.state.userDetails.organization.find((function(t){return"level"===t.type})).name}}),beforeMount:function(){this.setData()},watch:{userDetails:function(){this.setData()}},methods:{copyCode:function(){var t=document.querySelector("#rlp-code");t.setAttribute("type","text"),t.select(),document.execCommand("copy"),t.setAttribute("type","hidden"),window.getSelection().removeAllRanges()},timeStamp:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,M.getTimeStamp();case 2:if(s=e.sent,"demo"!==t.title){e.next=5;break}return e.abrupt("return",!0);case 5:if(!s.data.is_weekend){e.next=7;break}return e.abrupt("return",!1);case 7:return e.abrupt("return",s.data.data.split(" ")[1]>"08:00:00"&&s.data.data.split(" ")[1]<"17:00:00");case 8:case"end":return e.stop()}}),e)})))()},setData:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.userDetails){e.next=15;break}return t.level=t.userDetails.organization.find((function(t){return"level"===t.type})).name,t.grade=t.userDetails.organization.find((function(t){return"grade"===t.type}))?t.userDetails.organization.find((function(t){return"grade"===t.type})).name.split("-")[0]:0,t.main=t.userDetails.organization.find((function(t){return"main"===t.type})).id,t.zoom=t.userDetails.organization.filter((function(t){return"grade"===t.type})),t.roleType=t.userDetails.role_type,t.title=t.userDetails.title,t.rlpUse=t.userDetails.organization.find((function(t){return"campus"===t.type})).rlp_institute_code,t.rlpCode=t.userDetails.rlp_code?t.userDetails.rlp_code:null,"student"==t.userDetails.role_type&&(t.grade_id=t.userDetails.organization.find((function(t){return"grade"===t.type})).id,"49349"==t.grade_id&&(t.rlpCode="###")),t.querystingtext="?username=".concat(btoa(t.username),"&password=").concat(btoa(t.password)),"en"===t.userDetails.lang?t.hexaquerystingtext="?username=".concat(btoa("steve.jobs"),"&password=").concat(btoa("090807")):t.hexaquerystingtext=t.querystingtext,e.next=14,t.timeStamp();case 14:t.checkTime=e.sent;case 15:t.kwquerystingtext=t.querystingtext;case 16:case"end":return e.stop()}}),e)})))()},goTeacherLink:function(t){this.$router.push({name:"teachersResources",params:{id:t}})},RLP:function(){try{this.ready=!1;var t="VswFYGzh2k45N7Q8R9@TBuCVexFY.G2J3K4N6p7Q%9SATB-VdWeXFZHJ3m5N",e={},s={};this.userDetails&&(e.school_id=this.userDetails.organization.find((function(t){return"main"===t.type})).id,e.campus_id=this.userDetails.organization.find((function(t){return"campus"===t.type})).id,e.campus_name=this.userDetails.organization.find((function(t){return"campus"===t.type})).name,e.first_name=this.userDetails.first_name,e.last_name=this.userDetails.last_name,e.username=this.userDetails.email,e.role_type=this.userDetails.role_type,s.grade=this.userDetails.organization.find((function(t){return"grade"===t.type}))?this.userDetails.organization.find((function(t){return"grade"===t.type})).name.split("-")[0]:0,s.branch=this.userDetails.organization.find((function(t){return"grade"===t.type}))?this.userDetails.organization.find((function(t){return"grade"===t.type})).name.split("-")[1]:"",e.class=[s]);var a=JSON.stringify(e),n=decodeURIComponent(a),i=$t.a.AES.encrypt(n,t).toString();this.ready=!0,window.open("https://service.ueslms.com/#/rlp/?sso="+btoa(i))}catch(r){console.log("err",r),Ot()("Giriş Yapılamadı!","Bir Hata Oluştu","error"),this.ready=!0}}}},Lt=Rt,Pt=s("231d");s("a755");function It(t){this["$style"]=Pt["default"].locals||Pt["default"]}var Et=Object(q["a"])(Lt,Tt,St,!1,It,"d82b20bc",null),Bt=Et.exports,Mt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.isHome?s("div",{staticClass:"row",staticStyle:{background:"white","border-radius":"10px","box-shadow":"0.5px 0.866px 4px 0px rgba(2, 8, 2, 0.2)"}},[s("div",{staticClass:"col-md-12 col-sm-12 mt-1"},[s("div",{class:t.$style.divCollectionsHome},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-md-12"},[s("router-link",{class:t.$style.customNavItem,attrs:{to:{name:"collections"}}},[s("span",{staticClass:"title text-left",class:t.$style.title},[t._v("RESOURCES")])])],1)]),t.ready?this.data.length>0?s("div",{class:t.$style.columns},["parent"===t.viewState?s("div",{staticClass:"row"},[t._l(t.data.filter((function(t){return 0===t.parent})).slice(0,4),(function(e,a){return s("div",{key:a,staticClass:"col-md-3 mt-1"},[s("Card2",{class:t.$style.columnHome,attrs:{contentType:t.contentType,id:e.id,title:e.name,imgpath:e.image}})],1)})),t._l(t.packageData.slice(0,4-t.data.length),(function(e){return s("div",{key:e.package_name,staticClass:"col-md-3 mt-1"},[s("Card2",{class:t.$style.columnHome,attrs:{contentType:"collectionsPackage",id:e.package_id,title:e.package_name,imgpath:e.package_image?e.package_image:"https://storage.googleapis.com/ueslmscom/uploads/collection/1560865423.jpg"}})],1)}))],2):t._e()]):s("div",[s("p",{class:t.$style.noContentHome},[t._v("There is no content here.")])]):s("div",[s("InnerLoading",{class:t.$style.divLoadingHome})],1)])])]):s("div",[s("HeaderCustom"),s("div",{staticClass:"container",class:t.$style.myContentsDiv},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-md-4 offset-md-4"},[s("Search")],1)]),s("div",{staticClass:"row"},[s("div",{staticClass:"col-md-4"},["child"!==t.viewState||t.readers?t._e():s("button",{staticClass:"btn mt-3",staticStyle:{"background-color":"#6f2b8f",color:"white"},on:{click:function(e){return t.$router.push({name:"collections"})}}},[s("i",{staticClass:"fas fa-arrow-circle-left"}),t._v(" Back")])]),s("div",{staticClass:"col-md-4"},[s("h1",{staticClass:"title menuTitle",class:t.$style.menuTitle,staticStyle:{"font-weight":"normal"}},[t._v(t._s(t.title))])]),s("div",{staticClass:"col-md-4"})]),t.ready?this.data.length>0||this.packageData.length>0?s("div",{class:t.$style.columns},[s("hr"),"parent"===t.viewState?s("div",{staticClass:"row"},[t._l(t.data,(function(e,a){return s("div",{key:a,staticClass:"col-lg-3 col-md-4 col-6 col-sm-6 col-xs-12 mt-2",class:t.$style.column},[s("Card",{attrs:{contentType:t.contentType,id:e.id,title:e.name,imgpath:e.image?e.image:"https://storage.googleapis.com/ueslmscom/uploads/collection/1560865423.jpg"}})],1)})),t._l(t.packageData,(function(e){return s("div",{key:e.package_name,staticClass:"col-lg-3 col-md-4 col-6 col-sm-6 col-xs-12 mt-2",class:t.$style.column},[s("Card",{attrs:{contentType:"collectionsPackage",id:e.package_id,title:e.package_name,imgpath:e.package_image?e.package_image:"https://storage.googleapis.com/ueslmscom/uploads/collection/1560865423.jpg"}})],1)}))],2):"child"!==t.viewState||t.readers?s("div",{staticClass:"row"},t._l(t.packageData,(function(e,a){return s("div",{key:a,staticClass:"col-lg-2 col-md-3 col-6 col-sm-6 col-xs-12 mt-2",class:t.$style.column},[s("Card",{attrs:{contentType:"lessons",collectionId:parseInt(t.$route.params.id,10),packageType:e.package_type,id:e.package_id,title:e.package_name,imgpath:e.package_image?e.package_image:"https://storage.googleapis.com/ueslmscom/uploads/collection/1560865423.jpg",score:e.package_avg_score}})],1)})),0):s("div",{staticClass:"row"},t._l(t.data,(function(e,a){return s("div",{key:a,staticClass:"col-lg-2 col-md-3 col-6 col-sm-6 col-xs-12 mt-2",class:t.$style.column},[s("Card",{attrs:{contentType:t.contentType,collectionId:parseInt(t.$route.params.id,10),id:e.id,title:e.name,imgpath:e.image}})],1)})),0)]):s("div",[s("p",{class:t.$style.noContent},[t._v("There is no content here.")])]):s("div",[s("InnerLoading")],1)])],1)},Nt=[],Ht=(s("caad"),s("2532"),function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{class:t.$style.loading},[s("p",{class:t.$style.loadingText},[t._v(t._s(t.message))])])])}),zt=[],qt={name:"Loading",props:["message"],data:function(){return{}}},Ft=qt,Ut=s("cf46");function Yt(t){this["$style"]=Ut["default"].locals||Ut["default"]}var Vt=Object(q["a"])(Ft,Ht,zt,!1,Yt,null,null),Gt=Vt.exports,Wt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card",class:t.$style.divCard,attrs:{title:t.scormDesc}},[s("div",{class:t.$style.customCard,on:{click:function(e){return t.goToContent()}}},[s("div",{staticClass:"row",class:t.$style.topCard},[s("div",{staticClass:"col-md-12",staticStyle:{width:"100%"}},[s("img",{staticStyle:{width:"100%"},attrs:{src:t.imgpath,onerror:"this.src='https://cdn0.iconfinder.com/data/icons/seo-smart-pack/128/grey_new_seo-37-512.png'"}})])]),s("div",{staticClass:"col-md-12",staticStyle:{display:"flex","flex-direction":"column"}},[s("h1",{class:t.$style.contentTitle},[t._v(t._s(t.scormTitle?t.scormTitle:t.title))])]),t.date?s("div",{staticClass:"row d-flex justify-content-bottom align-items-center mt-3",class:t.$style.bottomCard},["student"===this.$store.state.roleType&&"assignment"===this.packageType||t.date?s("span",{staticClass:"col-lg-5 offset-lg-1 col-md-5 offset-md-1 col-sm-5 offset-sm-1 col-xs-5 offset-xs-1 badge badge-info",class:[t.$style.customBadge,t.$style.customBadgeFirst]},[t._v("Due Date")]):t._e(),t.date?s("span",{staticClass:"col-lg-6 col-md-5 col-sm-5 col-xs-5 badge",class:t.$style.customBadge},[t._v(t._s(t.convertDate(t.date)))]):t._e()]):t._e()])])},Kt=[],Jt={name:"card",data:function(){return{routerObj:{}}},props:["title","imgpath","score","date","contentType","id","packageType","stateName","scormTitle","scormCode","scormDesc","linkUrl","packageId","coverImageHeight","collectionId"],mounted:function(){this.setRouterObject(),this.setCoverImageHeight()},updated:function(){this.setRouterObject(),this.setCoverImageHeight()},computed:Object(c["a"])({},Object(l["e"])(["roleType","userDetails"])),methods:{goToContent:function(){"link"===this.contentType?window.open(this.linkUrl,"_blank"):this.$router.push(this.routerObj)},setRouterObject:function(){"scorm"===this.contentType?(Object(m["a"])("[title]"),"student"===this.roleType?this.date&&!this.linkUrl?this.routerObj={name:"assignmentDetails",params:{id:this.packageId,community:"individual"}}:this.routerObj={name:this.contentType,params:{id:this.id,packageId:this.packageId,scormTitle:this.scormTitle,scormDesc:this.scormDesc,scormCode:this.scormCode,packageType:null,timestamp:null}}:"teacher"===this.roleType&&(this.routerObj={name:this.contentType,params:{id:this.id,packageId:this.packageId,scormTitle:this.scormTitle,scormDesc:this.scormDesc,scormCode:this.scormCode,packageType:null,timestamp:null}})):"free"===this.contentType?this.routerObj={name:"scorm",params:{id:this.id,packageId:this.packageId,scormTitle:this.scormTitle,scormDesc:this.scormDesc,scormCode:this.scormCode,timestamp:null}}:this.routerObj={name:"collectionsPackage"===this.contentType?"collections":this.contentType,params:{collectionId:this.collectionId,id:this.id,searchList:"collectionsPackage"===this.contentType?"packages":"collections"}}},setCoverImageHeight:function(){if(this.coverImageHeight){var t,e=document.getElementsByClassName("cardCoverImg"),s=Object(g["a"])(e);try{for(s.s();!(t=s.n()).done;){var a=t.value;a.style.minHeight=this.coverImageHeight,a.style.width="auto"}}catch(n){s.e(n)}finally{s.f()}}},convertDate:function(t){function e(t){return t<10?"0".concat(t):t}var s=t.replace(/-/g,"/"),a=new Date(s),n=[e(a.getDate()),e(a.getMonth()+1),a.getFullYear()].join("-");return"".concat(n)}}},Zt=Jt,Qt=s("147f");function Xt(t){this["$style"]=Qt["default"].locals||Qt["default"]}var te=Object(q["a"])(Zt,Wt,Kt,!1,Xt,null,null),ee=te.exports,se=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{class:t.$style.divSearch},[s("span",{class:t.$style.searchIcon},[s("i",{staticClass:"fa fa-search fa-1x",class:t.$style.icon,attrs:{"aria-hidden":"true"}})]),this.txtSearch?s("span",{class:t.$style.removeIcon,on:{click:t.cleanText}},[s("i",{staticClass:"fa fa-remove fa-1x",class:t.$style.icon,attrs:{"aria-hidden":"true"}})]):t._e(),s("input",{directives:[{name:"model",rawName:"v-model",value:t.txtSearch,expression:"txtSearch"}],staticClass:"form-control",class:t.$style.txtSearch,attrs:{type:"text",placeholder:"Search"},domProps:{value:t.txtSearch},on:{keyup:t.search,input:function(e){e.target.composing||(t.txtSearch=e.target.value)}}})])},ae=[],ne=(s("841c"),{data:function(){return{txtSearch:""}},methods:{search:function(){this.$parent.search(this.txtSearch)},cleanText:function(){this.txtSearch="",this.$parent.search(this.txtSearch)}}}),ie=ne,re=s("f488");function oe(t){this["$style"]=re["default"].locals||re["default"]}var ce=Object(q["a"])(ie,se,ae,!1,oe,null,null),le=ce.exports,de={name:"collections",data:function(){return{data:[],packageData:[],title:"",contentType:"",viewState:"",ready:!1,collectionId:0,scormTypes:[],scormLevels:[],scormCategories:[],selectedType:"all",selectedLevel:0,selectedCategory:0,searchText:"",typesOptions:"",levelsOptions:"",categoriesOptions:"",readers:!1}},watch:{$route:function(){this.setPage()},selectedType:function(){this.setDataByFilter()},selectedLevel:function(){this.setDataByFilter()},selectedCategory:function(){this.setDataByFilter()}},components:{HeaderCustom:Z,Card:ee,Search:le,InnerLoading:Gt,Card2:vt},props:["isHome"],computed:Object(c["a"])({},Object(l["e"])(["collections","scorms","freeContents"])),beforeMount:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.title="RESOURCES",t.isHome||t.fillDropdowns(),0!==t.freeContents.length){e.next=5;break}return e.next=5,t.getPackages();case 5:if(0!==t.collections.length){e.next=8;break}return e.next=8,t.getCollections();case 8:if(e.t0=0===t.collections.length,!e.t0){e.next=13;break}return e.next=12,t.getCollections();case 12:e.t0=e.sent;case 13:if(!e.t0){e.next=17;break}if(0!==t.scorms.length){e.next=17;break}return e.next=17,t.getScorms();case 17:t.viewState="parent",//! Eğer Collectionlardaki kırılım sayısı 2 ise direk scorms sayfasına gitmeli //! 3 ise colections sayfasına gitmeli t.contentType="collections",t.setPage(),t.ready=!0;case 21:case"end":return e.stop()}}),e)})))()},methods:Object(c["a"])(Object(c["a"])({},Object(l["b"])(["getPackages","getCollections","getScorms"])),{},{search:function(t){this.searchText=t?t.toLocaleLowerCase("tr-TR"):"",this.setDataByFilter()},fillDropdowns:function(){var t=this;this.scormTypes=x.a.uniqBy(this.scorms,"scorm_type").map((function(t){return t.scorm_type})),this.typesOptions="",this.typesOptions+='',x.a.orderBy(this.scormTypes).forEach((function(e){var s="");t.typesOptions+=s})),this.scormLevels=x.a.uniqBy(this.scorms,"scorm_level.name").filter((function(t){return t.scorm_level&&null!==t.scorm_level.id})).map((function(t){return t.scorm_level})),this.levelsOptions="",this.levelsOptions+='',x.a.orderBy(this.scormLevels,"name").forEach((function(e){var s="");t.levelsOptions+=s})),this.scormCategories=x.a.uniqBy(this.scorms,"scorm_category.name").filter((function(t){return t.scorm_category&&null!==t.scorm_category.id})).map((function(t){return t.scorm_category})),this.categoriesOptions="",this.categoriesOptions+='',x.a.orderBy(this.scormCategories,"name").forEach((function(e){var s="");t.categoriesOptions+=s}))},setDataByFilter:function(){var t=this;this.searchText?(this.setPage(),this.data=this.data.filter((function(e){return e.name.toLocaleLowerCase("tr-TR").includes(t.searchText)})),this.packageData=this.packageData.filter((function(e){return e.package_name.toLocaleLowerCase("tr-TR").includes(t.searchText)}))):this.setPage()},setPage:function(){var t=parseInt(this.$route.params.id,10);if(t){this.collectionId=t,this.viewState="child";var e=this.$route.params.searchList;this.contentType="scorms","packages"===e?(this.packageData=this.freeContents.data.filter((function(e){return e.package_parent_id===t})),this.packageData=x.a.orderBy(this.packageData,["name"]),this.data=[],this.readers=!0):"collections"===e&&(this.data=this.collections.data.filter((function(e){return e.parent===t})),this.data=x.a.orderBy(this.data,["name"]),this.packageData=[],this.readers=!1)}else this.viewState="parent",this.contentType="collections",this.data=this.collections.data.filter((function(t){return 0===t.parent&&213!==t.id})),this.data=x.a.orderBy(this.data,["name"]),this.packageData=this.freeContents.filter((function(t){return!t.package_parent_id})),this.readers=!1}})},ue=de,me=s("7df7");function _e(t){this["$style"]=me["default"].locals||me["default"]}var pe=Object(q["a"])(ue,Mt,Nt,!1,_e,null,null),ge=pe.exports,he=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"col-md-12 mt-1",staticStyle:{padding:"0px"}},[s("div",{class:t.$style.divPlatform,on:{click:function(e){return t.$router.push("/teacherResources")}}},[s("div",{class:[t.$style.divPlatformBtn,t.$style.divPlatformBtnTeachersArea]})])])])},ve=[],fe={name:"platforms",data:function(){return{monitoringSheetsClicked:!1,kwButtonClicked:!1,placementButtonClicked:!1,placementSecondaryCode:"",placementHighCode:"",querystringtext:"",teacherKwCredentials1:"",teacherKwCredentials2:"",teacherKwCredentials3:"",teacherKwCredentials4:"",hexagonia5Credentials:"",teacherKwReportCredentials:"",teacherUesReportCredentials:"",aimData:[],subAimData:[],subAimClicked:!1,schoolData:{}}},computed:Object(c["a"])({},Object(l["e"])(["userDetails","username","password","grade","lang"])),beforeMount:function(){this.setData()},mounted:function(){Object(m["a"])("[title]",{placement:"top"})},watch:{userDetails:function(){this.setData()}},methods:{setData:function(){this.userDetails&&(this.querystringtext="?username=".concat(btoa(this.username),"&password=").concat(btoa(this.password)),this.teacherKwCredentials1="?username=".concat(btoa("teacherkw00188"),"&password=").concat(btoa("abijrs")),this.teacherKwCredentials2="?username=".concat(btoa("teacherkw02715"),"&password=").concat(btoa("abijrs")),this.teacherKwCredentials3="?username=".concat(btoa("teacherkw05188"),"&password=").concat(btoa("abijrs")),this.teacherKwCredentials4="?username=".concat(btoa("teacherkw07677"),"&password=").concat(btoa("abijrs")),this.hexagonia5Credentials="?username=".concat(btoa("hexagonia01"),"&password=").concat(btoa("hexagonia01")),this.placementSecondaryCode="?code=".concat(btoa("secondary")),this.placementHighCode="?code=".concat(btoa("high")),this.teacherUesReportCredentials=this.querystringtext)},monitoringSheetsModalClosed:function(){this.monitoringSheetsClicked=!1,this.kwButtonClicked=!1,this.subAimClicked=!1,this.placementButtonClicked=!1}}},ye=fe,be=s("5708");s("cde9");function Ce(t){this["$style"]=be["default"].locals||be["default"]}var ke=Object(q["a"])(ye,he,ve,!1,Ce,"35c84acf",null),we=ke.exports,xe={name:"home",data:function(){return{ready:!1,info:null,main:0}},methods:Object(c["a"])(Object(c["a"])({},Object(l["b"])(["getPackages","getLmsAssignments","getLmsIndAssignments","getUserDetails"])),Object(l["d"])(["setFirst"])),beforeMount:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.getUserDetails(),t.main=t.userDetails.organization.find((function(t){return"grade"===t.type})).name,!(t.$store.state.freeContents.length>0&&t.$store.state.assignments.length>0)){e.next=9;break}t.ready=!0,t.getPackages(),t.getLmsAssignments(),t.getLmsIndAssignments(),e.next=16;break;case 9:return e.next=11,t.getLmsAssignments();case 11:return e.next=13,t.getLmsIndAssignments();case 13:return e.next=15,t.getPackages();case 15:t.ready=!0;case 16:case"end":return e.stop()}}),e)})))()},components:{HeaderCustom:Z,Chart:ot,Homeworks:Dt,Platforms:Bt,Collections:ge,TeachersArea:we},computed:Object(c["a"])(Object(c["a"])({},Object(l["e"])(["userDetails","username","password"])),{},{isStudent:function(){var t=this.$store.state.roleType;return"student"===t},isTeacher:function(){var t=this.$store.state.roleType;return"teacher"===t}})},De=xe,Te=s("baa6");function Se(t){this["$style"]=Te["default"].locals||Te["default"]}var je=Object(q["a"])(De,i,r,!1,Se,null,null),$e=je.exports,Ae=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{class:t.$style.divLogin},[s("img",{staticStyle:{width:"100%",height:"100%",position:"absolute",bottom:"0"},attrs:{src:"static/img/resim.png",alt:""}}),s("div",{class:t.$style.loginform},[s("div",{staticStyle:{color:"white","text-align":"center","margin-bottom":"30px"}},[s("div",{class:t.$style.logo})]),t.ready?s("div",{staticClass:"row",class:t.$style.inputs},[s("div",{staticClass:"col-md-12"},[s("i",{staticClass:"fas fa-user",staticStyle:{position:"absolute",margin:"10px",color:"#b5badd"}}),s("input",{directives:[{name:"model",rawName:"v-model",value:t.username,expression:"username"}],staticClass:"form-control mb-3",class:t.$style.inputText,staticStyle:{"padding-left":"30px",border:"none","background-color":"rgba(233, 236, 239, 0.32941176470588235) !important"},attrs:{type:"text",placeholder:"User Name"},domProps:{value:t.username},on:{input:function(e){e.target.composing||(t.username=e.target.value)}}}),s("i",{staticClass:"fas fa-unlock-alt",staticStyle:{position:"absolute",margin:"10px",color:"#b5badd"}}),s("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],staticClass:"form-control mb-3",class:t.$style.inputText,staticStyle:{"padding-left":"30px",border:"none","background-color":"rgba(233, 236, 239, 0.32941176470588235) !important"},attrs:{type:"password",placeholder:"Password"},domProps:{value:t.password},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.login(e)},input:function(e){e.target.composing||(t.password=e.target.value)}}}),s("button",{staticClass:"btn btn-block",class:t.$style.loginButton,on:{click:t.login}},[t._v("Login")])])]):s("div",[s("InnerLoading")],1)])])])},Oe=[],Re={name:"login",data:function(){return{username:"",password:"",isChecked:!1,primaryColor:b.a.primaryColor,ready:!0,ipAdress:""}},beforeMount:function(){localStorage.clear(),this.autoLogin()},components:{InnerLoading:Gt},methods:Object(c["a"])(Object(c["a"])({},Object(l["d"])(["setFirst"])),{},{login:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var s,a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.ready=!1,e.next=3,t.$store.dispatch("login",{username:t.username,password:t.password});case 3:if(s=e.sent,!s.success){e.next=15;break}return t.setFirst(!0),e.next=8,v.a.get("https://api.ipify.org?format=json").catch((function(t){console.log("err",t)}));case 8:return a=e.sent,t.ipAdress=a?a.data.ip:"127.0.0.1",n=navigator.userAgent,e.next=13,B.loginLog(n,t.ipAdress).then((function(){t.$router.push("/home")})).catch((function(t){return console.log("err",t)}));case 13:e.next=16;break;case 15:Ot()("Error!","Username or Password is invalid.","error");case 16:t.ready=!0;case 17:case"end":return e.stop()}}),e)})))()},autoLogin:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var s,a,n,i,r,o,c,l,d,u,m;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(s=t.$route.query,a={},!1===x.a.isEmpty(s)&&(t.ready=!1,n=decodeURIComponent(atob(s.sso)),i="HJx7t2KxTCHYvtzB4w7AQhVRaf7bTm9WWFQpBMiR@j7Gpgw8",r=$t.a.AES.decrypt(n,i).toString($t.a.enc.Utf8),a=JSON.parse(r)),!1!==x.a.isEmpty(a)){e.next=34;break}return"teacher"===a.roleType.toLowerCase()?a.password="Ues1234!":(a.password="123456",a.roleType="student"),e.next=7,t.$store.dispatch("login",{username:a.username,password:a.password});case 7:if(o=e.sent,!o.success){e.next=19;break}return t.setFirst(!0),e.next=12,v.a.get("https://api.ipify.org?format=json").catch((function(t){console.log("err",t)}));case 12:return c=e.sent,t.ipAdress=c?c.data.ip:"127.0.0.1",l=navigator.userAgent,e.next=17,B.loginLog(l,t.ipAdress).then((function(){t.$router.push("/home")})).catch((function(t){return console.log("err",t)}));case 17:e.next=34;break;case 19:return e.next=21,t.$store.dispatch("loginSso",a);case 21:if(d=e.sent,!d.success){e.next=33;break}return t.setFirst(!0),e.next=26,v.a.get("https://api.ipify.org?format=json").catch((function(t){console.log("err",t)}));case 26:return u=e.sent,t.ipAdress=u?u.data.ip:"127.0.0.1",m=navigator.userAgent,e.next=31,B.loginLog(m,t.ipAdress).then((function(){t.$router.push("/home")})).catch((function(t){return console.log("err",t)}));case 31:e.next=34;break;case 33:Ot()("Error!","Giriş yapamazsınız, okul yönetimi ile iletişime geçiniz.","error");case 34:t.ready=!0;case 35:case"end":return e.stop()}}),e)})))()}})},Le=Re,Pe=s("1fc8");s("7148");function Ie(t){this["$style"]=Pe["default"].locals||Pe["default"]}var Ee=Object(q["a"])(Le,Ae,Oe,!1,Ie,null,null),Be=Ee.exports,Me=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("HeaderCustom"),s("div",{staticClass:"container",class:t.$style.myContentsDiv},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-md-4 offset-md-4"},[s("Search",{ref:"txtSearch",attrs:{searchList:this.data},on:{search:t.search}})],1),s("div",{staticClass:"col-md-12"},[s("h1",{staticClass:"title menuTitle",class:t.$style.menuTitle,staticStyle:{"font-weight":"normal"}},[t._v(t._s(t.title))])])]),s("div",[s("ul",{staticClass:"nav nav-tabs row"},[s("li",{staticClass:"nav-item col"},[s("a",{ref:"current",staticClass:"nav-link active",class:t.$style.customNavLink,attrs:{href:"#"},on:{click:function(e){return t.updateView("current")}}},[t._v("Current Assignments")])]),s("li",{staticClass:"nav-item col"},[s("a",{ref:"past",staticClass:"nav-link",class:t.$style.customNavLink,attrs:{href:"#"},on:{click:function(e){return t.updateView("past")}}},[t._v("Past Assignments")])])]),t.ready?s("div",[t.activeDataSet.length>0?s("div",{staticClass:"row",class:t.$style.columns},[t._l(t.activeDataSet,(function(e,a){return s("div",{key:a,staticClass:"col-md-3",class:t.$style.column},[s("Card",{attrs:{contentType:t.contentType,scormCode:e.scorm.scorm_code,scormTitle:e.scorm.scorm_name,id:e.scorm.scorm_id,title:e.assignment_name,imgpath:e.scorm.scorm_image,score:e.scorm.scorm_scores.total_score,date:e.end_date,stateName:e.state_name,scormDesc:e.scorm.scorm_desc,packageId:e.assignment_id,collPath:e.scorm.collection_path}})],1)})),s("div",{staticClass:"col-md-12"},[this.pagination&&this.activeDataSet.length>0?s("lmsPagination",{attrs:{data:this.pagination},on:{goToPage:t.goToPage}}):t._e()],1)],2):s("div",[s("p",{class:t.$style.noContent},[t._v("There is no Assignment.")])])]):s("div",[s("InnerLoading")],1)])])],1)},Ne=[],He=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"card-body"},[s("nav",{staticClass:"d-flex justify-content-center"},[s("ul",{staticClass:"pagination mt-1 mb-1"},[t.data.last_page>0&&1===t.data.current_page?s("li",{staticClass:"page-item disabled"},[s("a",{staticClass:"page-link",attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.getDataByPagination(1)}}},[t._v("«")])]):t.data.last_page>0?s("li",{staticClass:"page-item"},[s("a",{staticClass:"page-link",attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.getDataByPagination(1)}}},[t._v("«")])]):t._e(),t._l(t.data.last_page,(function(e,a){return[t.data.current_page===e?s("li",{key:a,staticClass:"page-item active"},[s("a",{staticClass:"page-link current-page-link",attrs:{href:"javascript:void(0)"},on:{click:function(s){return t.getDataByPagination(e)}}},[t._v(t._s(e))])]):Number(e)<=Number(t.currentPage+5)&&Number(e)>=Number(t.currentPage-5)?s("li",{key:a,staticClass:"page-item"},[s("a",{staticClass:"page-link",attrs:{href:"javascript:void(0)"},on:{click:function(s){return t.getDataByPagination(e)}}},[t._v(t._s(e))])]):t._e()]})),t.data.last_page>0&&t.data.current_page===t.data.last_page?s("li",{staticClass:"page-item disabled"},[s("a",{staticClass:"page-link",attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.getDataByPagination(t.data.last_page)}}},[t._v("»")])]):t.data.last_page>0?s("li",{staticClass:"page-item"},[s("a",{staticClass:"page-link",attrs:{href:"javascript:void(0)"},on:{click:function(e){return t.getDataByPagination(t.data.last_page)}}},[t._v("»")])]):t._e()],2)])])},ze=[],qe={name:"pagination",props:["data"],data:function(){return{currentPage:this.data.current_page}},methods:{getDataByPagination:function(t){this.currentPage=t,this.$emit("goToPage",t)}}},Fe=qe,Ue=(s("e345"),Object(q["a"])(Fe,He,ze,!1,null,"ee423f5e",null)),Ye=Ue.exports,Ve={name:"assignments",data:function(){return{ready:!1,data:[],title:"",contentType:"",searchText:"",activeTab:"",activeDataSet:[],tabData:["current","past"],pagination:null,assignments2:null}},components:{HeaderCustom:Z,Card:vt,Search:le,InnerLoading:Gt,lmsPagination:Ye},computed:Object(c["a"])(Object(c["a"])({},Object(l["c"])(["courseworks"])),Object(l["e"])(["assignments"])),beforeMount:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.setData();case 1:case"end":return e.stop()}}),e)})))()},methods:Object(c["a"])(Object(c["a"])({},Object(l["b"])(["getLmsAssignments"])),{},{updateView:function(t){t||(t="current"),this.activeTab=t,this.setTabView(),this.setTabData()},setData:function(){var t=this.$route.query;t.page?this.getData(t.page):this.goToPage(1)},goToPage:function(t){this.$router.push({name:"studentAssignments",params:{},query:{page:t}})},getData:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function s(){var a,n,i;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return e.ready=!1,e.title="ASSIGNMENTS",e.activeTab="",s.next=5,j.getAssignments(t);case 5:a=s.sent,e.assignments2=a.data.data,e.pagination=a.data.pagination,e.contentType="scorm",e.updateView(),e.ready=!0,window.location.search&&window.location.search.includes("?")&&(n=window.location.search.split("?")[1],"tab"===n.split("=")[0]&&(i=n.split("=")[1],e.updateView(i)));case 12:case"end":return s.stop()}}),s)})))()},setTabView:function(){var t=this;this.tabData.forEach((function(e){t.$refs[e].classList="nav-link"})),this.$refs[this.activeTab].classList="nav-link active"},setTabData:function(){var t=this,e=new Date;"current"===this.activeTab?(this.activeDataSet=this.assignments2.filter((function(s){return t.dateFromString(s.start_date).getTime()e.getTime()&&(s.assignment_name.toLocaleLowerCase("tr-TR").includes(t.searchText)||s.scorm.scorm_name.toLocaleLowerCase("tr-TR").includes(t.searchText))})),this.activeDataSet=x.a.orderBy(this.activeDataSet,["end_date","scorm.scorm_name"],["asc","asc"])):"past"===this.activeTab&&(this.activeDataSet=this.assignments2.filter((function(s){return t.dateFromString(s.end_date).getTime()0)},on:{click:function(e){return t.remove()}}},[s("i",{staticClass:"fa fa-trash"}),t._v(" Remove")])]),s("div",{staticClass:"col-lg-2 col-md-2 col-sm-12 mt-1"},[s("button",{staticClass:"btn",class:t.$style.otherButtons,attrs:{disabled:!(this.selectedAssignments.length>0),"data-toggle":"modal","data-target":"#editAllModal"}},[s("i",{staticClass:"fas fa-pencil-alt"}),t._v(" Edit ")])]),s("div",{staticClass:"col-lg-2 offset-lg-2 col-md-2 col-sm-12 mt-1 "}),s("div",{staticClass:"col-lg-2 col-md-3 col-sm-12 mt-1 "},[s("button",{staticClass:"btn",class:t.$style.createAssignmentBtn,on:{click:function(e){return t.goTo("/assignment/create")}}},[s("i",{staticClass:"fa fa-plus-circle"}),t._v(" Create")])]),s("div",{staticClass:"col-lg-2 col-md-3 col-sm-12 mt-1"},[s("button",{staticClass:"btn",class:t.$style.createAssignmentBtn,attrs:{"data-toggle":"collapse","data-target":"#collapseExample"}},[s("i",{staticClass:"fas fa-filter"}),t._v(" Filter")])])]),s("div",{staticClass:"row collapse mt-3 mb-3 justify-content-md-center",staticStyle:{width:"100%"},attrs:{id:"collapseExample"}},[s("div",{staticClass:"col-md-2 col-6 mt-4 text-center"},[s("select",{directives:[{name:"model",rawName:"v-model",value:t.selectedFilter,expression:"selectedFilter"}],staticClass:"form-control",attrs:{name:"",id:""},on:{change:[function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.selectedFilter=e.target.multiple?s:s[0]},function(e){return t.filterMeth()}]}},[s("option",{attrs:{selected:"",value:"all"}},[t._v("All")]),t._l(t.filterData,(function(e){return s("option",{key:e},[t._v(t._s(e))])}))],2)]),s("div",{staticClass:"col-md-3 mt-1 text-center"},[s("span",[t._v("Start Date")]),s("datetime",{attrs:{type:"date","min-datetime":t.startDateMin,"max-datetime":t.startDateMax,onchange:t.filterMeth()},model:{value:t.startDate,callback:function(e){t.startDate=e},expression:"startDate"}})],1),s("div",{staticClass:"col-md-3 mt-1 text-center"},[s("span",[t._v("End Date")]),s("datetime",{attrs:{type:"date","min-datetime":t.startDateMin,onchange:t.filterMeth()},model:{value:t.dueDate,callback:function(e){t.dueDate=e},expression:"dueDate"}})],1),s("div",{staticClass:"col-md-1 mt-4"},[s("button",{staticClass:"btn",class:t.$style.createAssignmentBtn,attrs:{title:"Reset"},on:{click:function(e){return t.resetFilter()}}},[s("i",{staticClass:"fas fa-undo-alt"})])])]),s("ul",{staticClass:"nav nav-tabs mt-5 row"},[s("li",{staticClass:"nav-item col"},[s("a",{ref:"individual",staticClass:"nav-link",staticStyle:{cursor:"pointer"},on:{click:function(e){return t.changeData("individual")}}},[t._v("Individual Assignments")])]),s("li",{staticClass:"nav-item col"},[s("a",{ref:"group",staticClass:"nav-link active",staticStyle:{cursor:"pointer"},on:{click:function(e){return t.changeData("group")}}},[t._v("Group Assignments")])])]),t.ready?s("div",[this.activeDataSet.length>0?s("div",{staticClass:"table-responsive",class:t.$style.columns},[s("table",{staticClass:"table table-hover table-bordered",class:t.$style.customTable},[s("thead",{class:t.$style.customThead},[s("tr",[s("th",[t._v("#")]),"completed"!==t.activeTab?s("th",[s("input",{staticClass:"check",attrs:{type:"checkbox",id:"allCheckBox"},on:{click:t.cbClicked}})]):t._e(),s("th",[t._v("Assignment Name")]),s("th",[t._v("Assignee")]),s("th",[t._v("Start Date")]),s("th",[t._v("Due Date")]),s("th",[t._v("Details")]),s("th",[t._v("Edit")])])]),t._l(this.uniqData,(function(e,a){return s("tbody",{key:a},[s("tr",{staticClass:"table-light collapse-row collapsed",attrs:{"data-toggle":"collapse","data-target":"#accordion"+a}},[s("td",[t._v(t._s(a+1))]),"completed"!==t.activeTab?s("td",[s("input",{staticClass:"check",attrs:{type:"checkbox"},domProps:{value:t.removeArray(e)},on:{click:t.cbClicked}})]):t._e(),s("td",[t._v(t._s(e.assignment_name))]),s("td",[t._v(t._s(e.name))]),s("td",[t._v(t._s(t.convertDate(e.start_date)))]),s("td",[t._v(t._s(t.convertDate(e.end_date)))]),s("td",{staticStyle:{cursor:"pointer"}},[s("vue-custom-tooltip",{attrs:{label:"Assignment Details"}},[s("i",{staticClass:"fas fa-eye"})])],1),s("td",[s("vue-custom-tooltip",{attrs:{label:"Assignment Edit",position:"is-left"}},[s("a",{attrs:{"data-toggle":"modal","data-target":"#editModal"},on:{click:function(s){return t.editModal(e)}}},[s("i",{staticClass:"fas fa-pencil-alt"})])])],1)]),s("tr",[s("td",{attrs:{colspan:"7"}},[s("div",{staticClass:"collapse d-flex flex-wrap",attrs:{id:"accordion"+a}},[t._l(t.collapseOpenClose(e),(function(t,e){return[s("div",{key:e,staticClass:"col-md-3 col-6 mb-3"},[s("Card",{key:e,attrs:{contentType:"details",assignmentId:t.assignment_id,communityType:t.assignment_type,id:t.scorm.scorm_id,title:t.scorm.scorm_name,imgpath:t.scorm.scorm_image?t.scorm.scorm_image:"https://storage.googleapis.com/ueslmscom/uploads/collection/1560865423.jpg",linkUrl:t.scorm.scorm_code,collPath:t.scorm.collection_path}})],1)]}))],2)])])])}))],2),s("div",{staticClass:"modal fade",attrs:{id:"editAllModal",tabindex:"-1",role:"dialog","aria-labelledby":"exampleModalCenterTitle","aria-hidden":"true"}},[s("div",{staticClass:"modal-dialog modal-dialog-centered",attrs:{role:"document"}},[s("div",{staticClass:"modal-content"},[t._m(0),s("div",{staticClass:"modal-body"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-md-6 mt-1 text-center"},[s("span",[t._v("Due Date")]),s("datetime",{attrs:{type:"date",onchange:t.filterEdit()},model:{value:t.allEdit.end_date,callback:function(e){t.$set(t.allEdit,"end_date",e)},expression:"allEdit.end_date"}})],1)])]),s("div",{staticClass:"modal-footer"},[s("button",{staticClass:"btn btn-secondary",attrs:{type:"button"},on:{click:t.editAll}},[t._v("Update")])])])])]),s("div",{staticClass:"modal fade",attrs:{id:"editModal",tabindex:"-1",role:"dialog","aria-labelledby":"exampleModalCenterTitle","aria-hidden":"true"}},[s("div",{staticClass:"modal-dialog modal-dialog-centered",staticStyle:{"max-width":"90%"}},[s("div",{staticClass:"modal-content"},[s("div",{staticClass:"modal-header"},[s("h5",{staticClass:"modal-title",attrs:{id:"exampleModalLongTitle"}},[t._v("Update Assessment: "+t._s(t.selectEdit.name))]),t._m(1)]),s("div",{staticClass:"modal-body"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-md-6 mt-1 mb-1 text-center"},[s("span",[t._v("Assignment Name")]),s("br"),s("input",{directives:[{name:"model",rawName:"v-model",value:t.selectEdit.name,expression:"selectEdit.name"}],class:t.$style.editInput,attrs:{type:"text",width:"20"},domProps:{value:t.selectEdit.name},on:{input:function(e){e.target.composing||t.$set(t.selectEdit,"name",e.target.value)}}})]),s("div",{staticClass:"col-md-6 mt-1 mb-1 text-center"},[s("span",[t._v("Due Date")]),s("datetime",{attrs:{type:"date",name:"editDueDate",width:"300px","min-datetime":t.selectEdit.start_date,onchange:t.filterEdit()},model:{value:t.selectEdit.end_date,callback:function(e){t.$set(t.selectEdit,"end_date",e)},expression:"selectEdit.end_date"}})],1)]),s("div",{staticClass:"row"},[s("ScormAdd",{attrs:{resources:this.assignmentData.assignment_scorms?this.globalSelectedLessons:[]},on:{selectedLessons:t.onClickChild}})],1)]),s("div",{staticClass:"modal-footer"},[s("button",{staticClass:"btn btn-secondary",attrs:{type:"button"},on:{click:t.editUpdate}},[t._v("Update")])])])])]),s("div",{staticClass:"col-md-12"},[this.pagination&&this.activeDataSet.length>0?s("lmsPagination",{attrs:{data:this.pagination},on:{goToPage:t.goToPage}}):t._e()],1)]):s("div",[s("p",{class:t.$style.noContent},[t._v("There is no Assignment.")])])]):s("div",[s("InnerLoading")],1)])])],1)},Xe=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"modal-header"},[s("h5",{staticClass:"modal-title",attrs:{id:"exampleModalLongTitle"}},[t._v("Update Assignments")]),s("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[s("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[s("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])])}],ts=s("ade3"),es=s("2909"),ss=(s("a434"),s("b64b"),function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"row"},[s("div",{staticClass:"col-md-6"},[s("div",{staticClass:"alert alert-info",class:t.$style.customAlert},[s("small",[t._v("Please choose a course and lessons. You should select lesson card from right column to the left. If you add many resources then will be created many assignments with one resource. Please remember that students have to have access to this course.")])]),t.selectedLessons.length>0?s("div",{staticClass:"row"},t._l(t.selectedLessons,(function(e,a){return s("div",{key:a,staticClass:"col-md-10 ml-5 mr-5",class:t.$style.divSelectedLessons},[s("div",{staticClass:"row d-flex justify-content-center align-items-center"},[s("div",{staticClass:"col-lg-5 col-md-12 text-center",class:t.$style.lessonTitle},[t._v(" "+t._s(e.name)+" ")]),s("div",{staticClass:"col-lg-5 col-md-12 text-center"},[s("img",{class:t.$style.lessonImg,attrs:{src:e.big_image?e.big_image:e.image}})]),s("div",{staticClass:"col-lg-2 col-md-12"},[s("button",{staticClass:"btn btn-danger btn-block mb-3",on:{click:function(s){return t.unselectLesson(e.id)}}},[s("span",{staticClass:"fa fa-minus-circle"})])])])])})),0):t._e()]),s("div",{staticClass:"col-md-6"},[s("div",{staticClass:"row",class:t.$style.customRow},[s("div",{staticClass:"col-md-3"},[s("label",{class:t.$style.customLabel},[t._v("Collections:*")])]),s("div",{staticClass:"col-md-9"},[s("v-select",{attrs:{label:"name",options:t.parentCollections},model:{value:t.selectedCollection,callback:function(e){t.selectedCollection=e},expression:"selectedCollection"}})],1)]),s("div",{staticClass:"row",class:t.$style.customRow},[s("div",{staticClass:"col-md-3"},[s("label",{class:t.$style.customLabel},[t._v("Courses:*")])]),s("div",{staticClass:"col-md-9"},["Select a Collection"!==this.selectedCollection?s("v-select",{attrs:{label:"name",options:this.coursesArr},model:{value:t.selectedCourse,callback:function(e){t.selectedCourse=e},expression:"selectedCourse"}}):s("v-select",{attrs:{label:"name"},model:{value:t.selectedCourse,callback:function(e){t.selectedCourse=e},expression:"selectedCourse"}})],1)]),this.lessonsArr.length>0?s("div",{staticClass:"row",class:t.$style.customRow},t._l(this.lessonsArr.filter((function(t){return!1===t.isSelected})),(function(e,a){return s("div",{key:a,staticClass:"col-md-10 ml-5 mr-5",class:t.$style.lessonDiv},[s("div",{staticClass:"row d-flex justify-content-center align-items-center"},[s("div",{staticClass:"col-lg-5 col-md-12 text-center",class:t.$style.lessonTitle},[t._v(" "+t._s(e.name)+" "),e.isHistory?s("p",{staticStyle:{"font-weight":"bold","text-decoration":"underline","font-size":"10px"}},[t._v("Already assigned")]):t._e()]),s("div",{staticClass:"col-lg-5 col-md-12 text-center"},[s("img",{class:t.$style.lessonImg,attrs:{src:e.big_image?e.big_image:e.image}})]),s("div",{staticClass:"col-lg-2 col-md-12"},[s("button",{staticClass:"btn btn-success btn-block mb-3",on:{click:function(s){return t.selectLesson(e.id)}}},[s("span",{staticClass:"fa fa-plus"})])])])])})),0):t._e()])])}),as=[],ns=(s("c740"),function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{class:t.$style.divCard,attrs:{title:t.scormDesc}},[s("div",{class:t.$style.customCard,on:{click:function(e){return t.goToContent()}}},[s("div",{staticClass:"row",class:t.$style.topCard},[s("div",{staticClass:"col-md-12"},[s("img",{staticClass:"cardCoverImg",class:t.$style.coverImg,attrs:{src:t.imgpath,alt:"Content Cover",onerror:"this.src='https://cdn0.iconfinder.com/data/icons/seo-smart-pack/128/grey_new_seo-37-512.png'"}})]),s("div",{staticClass:"col-md-12"},[s("h1",{class:t.$style.contentTitle},[t._v(t._s(t.scormTitle?t.scormTitle:t.title))]),s("div",{staticClass:"row justify-content-center"},[s("div",["Not Started"===t.stateName?s("span",{staticClass:"badge badge-light",class:t.$style.divState},[t._v(t._s(t.stateName))]):"Ongoing"===t.stateName?s("span",{staticClass:"badge badge-info",class:t.$style.divState},[t._v(t._s(t.stateName))]):"Completed"===t.stateName?s("span",{staticClass:"badge badge-success",class:t.$style.divState},[t._v(t._s(t.stateName))]):"Expired"===t.stateName?s("span",{staticClass:"badge badge-danger",class:t.$style.divState},[t._v(t._s(t.stateName))]):t._e()])])])]),s("div",{directives:[{name:"show",rawName:"v-show",value:"scorm"===this.contentType,expression:"this.contentType === 'scorm'"}],staticClass:"row d-flex justify-content-center align-items-center mt-3",class:t.$style.bottomCard},["student"===this.$store.state.roleType&&t.score?s("span",{staticClass:"col-lg-5 offset-lg-1 col-md-5 offset-md-1 col-sm-5 offset-sm-1 col-xs-5 offset-xs-1 badge badge-primary",class:[t.$style.customBadge,t.$style.customBadgeFirst]},[t._v("Score")]):t._e(),"student"===this.$store.state.roleType&&t.score?s("span",{staticClass:"col-lg-6 col-md-5 col-sm-5 col-xs-6 badge",class:t.$style.customBadge},[t._v(t._s(parseInt(t.score))+"%")]):t._e(),"student"===this.$store.state.roleType&&"assignment"===this.packageType||t.date?s("span",{staticClass:"col-lg-5 offset-lg-1 col-md-5 offset-md-1 col-sm-5 offset-sm-1 col-xs-5 offset-xs-1 badge badge-info",class:[t.$style.customBadge,t.$style.customBadgeFirst]},[t._v("Due Date")]):t._e(),t.date?s("span",{staticClass:"col-lg-6 col-md-5 col-sm-5 col-xs-5 badge",class:t.$style.customBadge},[t._v(t._s(t.convertDate(t.date)))]):t._e()])])])}),is=[],rs={name:"card",data:function(){return{routerObj:{}}},props:["title","imgpath","score","date","contentType","id","packageType","stateName","scormTitle","scormCode","scormDesc","linkUrl","packageId","coverImageHeight"],mounted:function(){this.setRouterObject(),this.setCoverImageHeight()},updated:function(){this.setRouterObject(),this.setCoverImageHeight()},computed:Object(c["a"])({},Object(l["e"])(["roleType","userDetails"])),methods:{goToContent:function(){"link"===this.contentType?window.open(this.linkUrl,"_blank"):this.$router.push(this.routerObj)},setRouterObject:function(){"scorm"===this.contentType?(Object(m["a"])("[title]"),"student"===this.roleType?this.date&&!this.linkUrl?this.routerObj={name:"assignmentDetails",params:{id:this.packageId,community:"individual"}}:this.routerObj={name:this.contentType,params:{id:this.id,packageId:this.packageId,scormTitle:this.scormTitle,scormDesc:this.scormDesc,scormCode:this.scormCode,packageType:null,timestamp:null}}:"teacher"===this.roleType&&(this.routerObj={name:this.contentType,params:{id:this.id,packageId:this.packageId,scormTitle:this.scormTitle,scormDesc:this.scormDesc,scormCode:this.scormCode,packageType:null,timestamp:null}})):"free"===this.contentType?this.routerObj={name:"scorm",params:{id:this.id,packageId:this.packageId,scormTitle:this.scormTitle,scormDesc:this.scormDesc,scormCode:this.scormCode,timestamp:null}}:this.routerObj={name:"collectionsPackage"===this.contentType?"collections":this.contentType,params:{id:this.id,searchList:"collectionsPackage"===this.contentType?"packages":"collections"}}},setCoverImageHeight:function(){if(this.coverImageHeight){var t,e=document.getElementsByClassName("cardCoverImg"),s=Object(g["a"])(e);try{for(s.s();!(t=s.n()).done;){var a=t.value;a.style.minHeight=this.coverImageHeight,a.style.width="auto"}}catch(n){s.e(n)}finally{s.f()}}},convertDate:function(t){function e(t){return t<10?"0".concat(t):t}var s=t.replace(/-/g,"/"),a=new Date(s),n=[e(a.getDate()),e(a.getMonth()+1),a.getFullYear()].join("-");return"".concat(n)}}},os=rs,cs=s("d7bf");function ls(t){this["$style"]=cs["default"].locals||cs["default"]}var ds=Object(q["a"])(os,ns,is,!1,ls,null,null),us=ds.exports,ms={name:"ScormAdd",data:function(){return{selectedCollection:"Select a Collection",selectedCollectionId:0,selectedCourse:"Select a Collection",allCourses:[],globalLessonsArr:[],selectedLessons:[],parentCollections:[],childCollections:[],historyScorms:[]}},props:["resources"],beforeMount:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.resources.length>0&&(t.selectedLessons=t.resources),t.parentCollections=t.collections.data.filter((function(t){return 0===t.parent})),e.next=4,j.getHistoryScorms();case 4:s=e.sent,t.historyScorms=s.scorm_ids;case 6:case"end":return e.stop()}}),e)})))()},watch:{selectedCollection:function(t){null!==t?(this.selectedCollectionId=t.id,this.selectedCourse="Select a Course"):(this.selectedCollection="Select a Collection",this.selectedCollectionId=0,this.selectedCourse=null)},selectedCourse:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function s(){return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:null!==t&&"Select a Course"!==t?e.setGlobalLessons(t.id):0!==e.selectedCollectionId?e.selectedCourse="Select a Course":e.selectedCourse="Select a Collection";case 1:case"end":return s.stop()}}),s)})))()}},computed:Object(c["a"])(Object(c["a"])({},Object(l["e"])(["collections","scorms"])),{},{coursesArr:function(){var t=this;if(this.selectedCollectionId)return this.collections.data.filter((function(e){return e.parent===t.selectedCollectionId}))},lessonsArr:function(){return this.globalLessonsArr}}),methods:{setGlobalLessons:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function s(){var a,n,i,r,o,c,l,d,u,m,_;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.next=2,j.getScorms(t,1,200);case 2:a=s.sent,e.globalLessonsArr=a.data,n=Object(g["a"])(e.globalLessonsArr);try{for(n.s();!(i=n.n()).done;)r=i.value,e.inArray(r.id,e.historyScorms)?r.isHistory=!0:r.isHistory=!1}catch(p){n.e(p)}finally{n.f()}e.globalLessonsArr.forEach((function(t){t.isSelected=!1})),o=[],c=Object(g["a"])(e.globalLessonsArr);try{for(d=function(){var t=l.value;t.isSelected=!1;var s=e.selectedLessons.find((function(e){return e.id==t.id}));s&&o.push(t)},c.s();!(l=c.n()).done;)d()}catch(p){c.e(p)}finally{c.f()}for(u=function(){var t=_[m],s=x.a.findIndex(e.globalLessonsArr,(function(e){return e.id==t.id}));e.globalLessonsArr.splice(s,1)},m=0,_=o;m<_.length;m++)u();case 12:case"end":return s.stop()}}),s)})))()},inArray:function(t,e){for(var s=e.length,a=0;a0)){e.next=9;break}return e.next=7,j.addScorms(a,n);case 7:e.sent,Ot()("Assignments","Scorm Added successfully!","success").then((function(){}));case 9:Ot()("Assignments","Updated successfully!","success").then((function(){t.selectEdit=[],location.reload()}));case 10:case"end":return e.stop()}}),e)})))()},editAll:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:s={assignment_end_date:t.allEdit.end_date},t.selectedAssignments.forEach(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,j.editAssignmentDate(e,s);case 2:t.sent;case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),Ot()("Assignments","Updated successfully!","success").then((function(){t.selectEdit=[],location.reload()}));case 3:case"end":return e.stop()}}),e)})))()},collapseOpenClose:function(t){var e=this.activeDataSet.filter((function(e){return e.assignment_name===t.assignment_name&&e.name===t.name}));return x.a.orderBy(e,["scorm.scorm_name"])},editModal:function(t){var e=this.activeDataSet.filter((function(e){return e.assignment_name===t.assignment_name&&e.name===t.name}));return this.selectEdit.lessons=e,this.selectEdit.name=t.name,this.selectEdit.id=t.assignment_id,this.selectEdit.name=t.assignment_name,this.selectEdit.end_date=t.end_date,this.selectEdit.start_date=t.start_date,!0},removeArray:function(t){var e=this.activeDataSet.filter((function(e){return e.assignment_name===t.assignment_name&&e.name===t.name})).map((function(t){return t.assignment_id}));return e},changeData:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function s(){return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:if("group"!==t){s.next=6;break}e.$refs.individual.classList="nav-link",e.$refs.group.classList="nav-link active",e.setData(),s.next=16;break;case 6:return e.ready=!1,e.$refs.group.classList="nav-link",e.$refs.individual.classList="nav-link active",s.next=11,j.getAssignments(1,"id","individual");case 11:e.assignments2=s.sent,e.$store.commit("setIndAssignments",e.assignments2),e.pagination=e.assignments2.data.pagination,e.updateView("individual"),e.ready=!0;case 16:case"end":return s.stop()}}),s)})))()},setTabView:function(){},setTabData:function(){var t=this;this.activeDataSet=this.assignments2.data.data.filter((function(e){return e.assignment_type===t.activeTab&&(e.assignment_name.toLocaleLowerCase("tr-TR").includes(t.searchText)||e.scorm.scorm_name.toLocaleLowerCase("tr-TR").includes(t.searchText)||e.name.toLocaleLowerCase("tr-TR").includes(t.searchText))})),this.filterData=x.a.uniq(this.activeDataSet.map((function(t){return t.name}))),this.uniqData=x.a.uniqBy(this.activeDataSet,(function(t){return[t.assignment_name,t.name].join()})),this.uniqData.length>0&&(this.startDateMin=x.a.orderBy(this.uniqData,"start_date")[0].start_date.split(" ")[0],this.startDateMax=x.a.orderBy(this.uniqData,"start_date","desc")[0].start_date.split(" ")[0],this.dueDateMin=x.a.orderBy(this.uniqData,"end_date","desc")[0].end_date.split(" ")[0])},unselectAllSelectedLessons:function(){this.selectedAssignments=[];var t,e=document.getElementsByClassName("check"),s=Object(g["a"])(e);try{for(s.s();!(t=s.n()).done;){var a=t.value;a.checked=!1}}catch(n){s.e(n)}finally{s.f()}},goTo:function(t){this.$router.push(t)},convertDate:function(t){function e(t){return t<10?"0".concat(t):t}var s=t.replace(/-/g,"/"),a=new Date(s),n=[e(a.getDate()),e(a.getMonth()+1),a.getFullYear()].join("-");return"".concat(n)},search:function(t){this.searchText=t?t.toLocaleLowerCase("tr-TR"):"",this.updateView(this.activeTab)},cbClicked:function(t){var e=this;if("allCheckBox"===t.target.id){this.selectedAssignments=[];var s,a=document.getElementById("allCheckBox"),n=a.checked,i=document.getElementsByClassName("check"),r=Object(g["a"])(i);try{for(r.s();!(s=r.n()).done;){var o,c=s.value;if(c.checked=n,"on"!==c.value&&n)(o=this.selectedAssignments).push.apply(o,Object(es["a"])(c.value.split(",")))}}catch(u){r.e(u)}finally{r.f()}n||(this.selectedAssignments=[])}else{var l;if(t.target.checked)(l=this.selectedAssignments).push.apply(l,Object(es["a"])(t.target.value.split(",")));else if(!t.target.checked){var d=t.target.value.split(",");d.forEach((function(t){var s=e.selectedAssignments.indexOf(t);e.selectedAssignments.splice(s,1)}))}}},remove:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.ready=!1,Ot()({title:"Are you sure?",text:"Once deleted, you will not be able to recover this assignments!",icon:"warning",buttons:!0,dangerMode:!0}).then((function(e){e?j.deleteAssignments(t.selectedAssignments).then((function(e){e.success?Ot()("Assignments","Removed successfully!","success").then((function(){t.ready=!0,t.selectedAssignments=[],location.reload()})):(t.ready=!0,console.log("Assignment Delete Error",e.data),Ot()("","An error occured while you removing assignments","error"))})):t.ready=!0}));case 2:case"end":return e.stop()}}),e)})))()},setData:function(){var t=this.$route.query;t.page?this.getData(t.page):this.goToPage(1)},goToPage:function(t){this.$router.push({name:"teacherAssignments",params:{},query:{page:t}})},getData:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function s(){return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return e.ready=!1,e.contentType="lesson",e.title="ASSIGNMENTS",s.next=5,j.getAssignments(t,"id");case 5:return e.assignments2=s.sent,e.$store.commit("setAssignments",e.assignments2),e.pagination=e.assignments2.data.pagination,s.next=10,e.getStudentsUnselected();case 10:e.updateView(),e.ready=!0;case 12:case"end":return s.stop()}}),s)})))()},resetFilter:function(){this.ready=!1,this.selectedFilter="all",this.startDate=null,this.dueDate=null,this.uniqData=x.a.uniqBy(this.activeDataSet,"assignment_name"),this.ready=!0},filterMeth:function(){var t=this;this.uniqData=x.a.uniqBy(this.activeDataSet,(function(t){return[t.assignment_name,t.name].join()})),"all"!==this.selectedFilter&&(this.uniqData=this.uniqData.filter((function(e){return e.name===t.selectedFilter}))),this.startDate&&(this.uniqData=this.uniqData.filter((function(e){return e.start_date.split(" ")[0]>=t.startDate.split("T")[0]}))),this.dueDate&&(this.uniqData=this.uniqData.filter((function(e){return e.start_date.split(" ")[0]<=t.dueDate.split("T")[0]})))},filterEdit:function(){this.selectEdit.end_date&&(this.selectEdit.end_date=this.selectEdit.end_date.split("T")[0]),this.selectEdit.end_date&&(this.selectEdit.end_date=this.selectEdit.end_date.split("T")[0]),this.allEdit.end_date&&(this.allEdit.end_date=this.allEdit.end_date.split("T")[0])},setAssignmentData:function(t){for(var e=0,s=Object.keys(t);eyt()(this.assignmentData.start_date).valueOf()}}),beforeMount:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:"individual"===t.$route.params.community?t.setIndividualAssignment():"group"===t.$route.params.community&&t.setGroupAsssignment();case 1:case"end":return e.stop()}}),e)})))()},components:{HeaderCustom:Z,InnerLoading:Gt},watch:{$route:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("individual"!==t.$route.params.community){e.next=5;break}return e.next=3,t.setIndividualAssignment();case 3:e.next=8;break;case 5:if("group"!==t.$route.params.community){e.next=8;break}return e.next=8,t.setGroupAsssignment();case 8:case"end":return e.stop()}}),e)})))()}}}),js=Ss,$s=(s("6f7c"),s("cc8a"));function As(t){this["$style"]=$s["default"].locals||$s["default"]}var Os=Object(q["a"])(js,Ds,Ts,!1,As,"7fd8632d",null),Rs=Os.exports,Ls=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("HeaderCustom"),s("div",{staticClass:"container"},[s("div",{class:t.$style.divCreateAssignment},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-md-12 col-sm-12 col-xs-12",class:t.$style.divTitle},[s("h3",[t._v("Create Assignment")])])]),s("div",{staticClass:"row",class:t.$style.divSteps},[s("div",{staticClass:"col-md-3 col-sm-3 col-xs-3 step",class:t.$style.customStep,attrs:{id:"step1"},on:{click:function(e){t.currentstep=1}}},[t._v("DETAILS")]),s("div",{staticClass:"col-md-3 col-sm-3 col-xs-3 step",class:t.$style.customStep,attrs:{id:"step2"},on:{click:function(e){t.currentstep=2}}},[t._v(" RESOURCES")]),s("div",{staticClass:"col-md-3 col-sm-3 col-xs-3 step",class:t.$style.customStep,attrs:{id:"step3"},on:{click:function(e){t.currentstep=3}}},[t._v(" ASSIGNEES")]),s("div",{staticClass:"col-md-3 col-sm-3 col-xs-3 step",class:t.$style.customStep,attrs:{id:"step4"},on:{click:function(e){t.currentstep=4}}},[t._v(" OPTIONS")])]),1===this.currentstep?s("FirstStep",{attrs:{title:this.assignmentData.assignment_name,desc:this.assignmentData.assignment_desc}}):t._e(),2===this.currentstep?s("SecondStep",{attrs:{resources:this.assignmentData.assignment_scorms?this.globalSelectedLessons:[]}}):t._e(),3===this.currentstep?s("ThirdStep"):t._e(),4===this.currentstep?s("FourthStep",{attrs:{sDate:this.assignmentData.assignment_start_date?this.assignmentData.assignment_start_date:null,dDate:this.assignmentData.assignment_end_date?this.assignmentData.assignment_end_date:null,block:!!this.assignmentData.block_after_due_date&&this.assignmentData.block_after_due_date,single:!!this.assignmentData.single_access&&this.assignmentData.single_access}}):t._e(),s("div",{staticClass:"row",class:t.$style.divBtn},[s("div",{staticClass:"col-md-2"},[1!==this.currentstep?s("button",{staticClass:"btn",class:t.$style.backBtn,on:{click:t.decreaseStep}},[s("i",{staticClass:"fa fa-arrow-left fa-3x",class:t.$style.icon,attrs:{"aria-hidden":"true"}})]):t._e()]),s("div",{staticClass:"col-md-2 offset-md-8"},[4!==this.currentstep?s("button",{staticClass:"btn",class:t.$style.nextBtn,on:{click:t.increaseStep}},[s("i",{staticClass:"fa fa-arrow-right fa-3x",class:t.$style.icon,attrs:{"aria-hidden":"true"}})]):t._e(),4===this.currentstep?s("button",{staticClass:"btn",class:t.$style.btnCreate,on:{click:t.createAssignment}},[t._v(" Create Assignment ")]):t._e()])])],1)])],1)},Ps=[],Is=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"row",class:t.$style.customRow},[s("div",{staticClass:"col-md-2 col-sm-2 col-xs-2"},[s("label",{class:t.$style.customLabel},[t._v("Title:*")])]),s("div",{staticClass:"col-md-9 col-sm-9 col-xs-9"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.assignmentTitle,expression:"assignmentTitle"}],ref:"txtTitle",staticClass:"form-control",attrs:{type:"text",placeholder:"Assignment Title (Required)"},domProps:{value:t.assignmentTitle},on:{input:function(e){e.target.composing||(t.assignmentTitle=e.target.value)}}})])]),s("div",{staticClass:"row",class:t.$style.customRow},[s("div",{staticClass:"col-md-2 col-sm-2 col-xs-2"},[s("label",{class:t.$style.customLabel},[t._v("Description:")])]),s("div",{staticClass:"col-md-9 col-sm-9 col-xs-9"},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.assignmentDesc,expression:"assignmentDesc"}],ref:"txtDesc",staticClass:"form-control",class:t.$style.customTextarea,attrs:{rows:"6",placeholder:"Assignment Description"},domProps:{value:t.assignmentDesc},on:{input:function(e){e.target.composing||(t.assignmentDesc=e.target.value)}}})])])])},Es=[],Bs={name:"firstStep",data:function(){return{assignmentTitle:"",assignmentDesc:""}},beforeDestroy:function(){var t={};t.assignment_name=this.$refs.txtTitle.value,t.assignment_desc=this.$refs.txtDesc.value,this.$parent.setAssignmentData(t)},props:["title","desc"],beforeMount:function(){this.assignmentTitle=this.title,this.assignmentDesc=this.desc}},Ms=Bs,Ns=s("af63");function Hs(t){this["$style"]=Ns["default"].locals||Ns["default"]}var zs=Object(q["a"])(Ms,Is,Es,!1,Hs,null,null),qs=zs.exports,Fs=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{class:t.$style.divSecondStep},[t.ready?s("div",{staticClass:"row m-0"},[s("div",{staticClass:"col-md-6"},[s("div",{staticClass:"alert alert-info",class:t.$style.customAlert},[s("small",[t._v("Please choose a course and lessons. You should select lesson card from right column to the left. If you add many resources then will be created many assignments with one resource. Please remember that students have to have access to this course.")])]),t.selectedLessons.length>0?s("div",{staticClass:"row text-center mt-3"},[s("div",{staticClass:"col-md-10 ml-5 mr-5"},[s("button",{staticClass:"btn btn-danger",on:{click:t.unselectAllScorms}},[t._v("Remove All Lessons")])])]):t._e(),t.selectedLessons.length>0?s("div",{staticClass:"row"},t._l(t.selectedLessons,(function(e,a){return s("div",{key:a,staticClass:"col-md-10 ml-5 mr-5",class:t.$style.divSelectedLessons},[s("div",{staticClass:"row d-flex justify-content-center align-items-center"},[s("div",{staticClass:"col-lg-5 col-md-12 text-center",class:t.$style.lessonTitle},[t._v(" "+t._s(e.name)+" ")]),s("div",{staticClass:"col-lg-5 col-md-12 text-center"},[s("img",{class:t.$style.lessonImg,attrs:{src:e.big_image?e.big_image:e.image}})]),s("div",{staticClass:"col-lg-2 col-md-12"},[s("button",{staticClass:"btn btn-danger btn-block mb-3",on:{click:function(s){return t.unselectLesson(e.id)}}},[s("span",{staticClass:"fa fa-minus-circle"})])])])])})),0):t._e()]),s("div",{staticClass:"col-md-6"},[s("div",{staticClass:"row",class:t.$style.customRow},[s("div",{staticClass:"col-md-3"},[s("label",{class:t.$style.customLabel},[t._v("Collections:*")])]),s("div",{staticClass:"col-md-9"},[s("v-select",{attrs:{label:"name",options:t.parentCollections},model:{value:t.selectedCollection,callback:function(e){t.selectedCollection=e},expression:"selectedCollection"}})],1)]),s("div",{staticClass:"row",class:t.$style.customRow},[s("div",{staticClass:"col-md-3"},[s("label",{class:t.$style.customLabel},[t._v("Courses:*")])]),s("div",{staticClass:"col-md-9"},["Select a Collection"!==this.selectedCollection?s("v-select",{attrs:{label:"name",options:this.coursesArr},model:{value:t.selectedCourse,callback:function(e){t.selectedCourse=e},expression:"selectedCourse"}}):s("v-select",{attrs:{label:"name"},model:{value:t.selectedCourse,callback:function(e){t.selectedCourse=e},expression:"selectedCourse"}})],1)]),this.lessonsArr.length>0&&this.lessonsArr.filter((function(t){return!1===t.isSelected})).length>0?s("div",{staticClass:"row text-center mt-3"},[s("div",{staticClass:"col-md-10 ml-5 mr-5"},[s("button",{staticClass:"btn btn-primary",on:{click:t.addedAllScorms}},[t._v("Select All Lessons")])])]):t._e(),this.lessonsArr.length>0?s("div",{staticClass:"row",class:t.$style.customRow},t._l(this.lessonsArr.filter((function(t){return!1===t.isSelected})),(function(e,a){return s("div",{key:a,staticClass:"col-md-10 ml-5 mr-5",class:t.$style.lessonDiv},[s("div",{staticClass:"row d-flex justify-content-center align-items-center"},[s("div",{staticClass:"col-lg-5 col-md-12 text-center",class:t.$style.lessonTitle},[t._v(" "+t._s(e.name)+" "),e.isHistory?s("p",{staticStyle:{"font-weight":"bold","text-decoration":"underline",color:"green","font-size":"10px"}},[t._v("Already assigned")]):t._e()]),s("div",{staticClass:"col-lg-5 col-md-12 text-center"},[s("img",{class:t.$style.lessonImg,attrs:{src:e.big_image?e.big_image:e.image}})]),s("div",{staticClass:"col-lg-2 col-md-12"},[s("button",{staticClass:"btn btn-success btn-block mb-3",on:{click:function(s){return t.selectLesson(e.id)}}},[s("span",{staticClass:"fa fa-plus"})])])])])})),0):t._e()])]):s("div",[s("InnerLoading",{class:t.$style.divLoadingHome})],1)])},Us=[],Ys={name:"secondStep",data:function(){return{selectedCollection:"Select a Collection",selectedCollectionId:0,selectedCourse:"Select a Collection",allCourses:[],historyScorms:[],globalLessonsArr:[],selectedLessons:[],parentCollections:[],childCollections:[],ready:!0}},props:["resources"],beforeMount:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.resources.length>0&&(t.selectedLessons=t.resources),t.parentCollections=t.collections.data.filter((function(t){return 0===t.parent})),e.next=4,j.getHistoryScorms();case 4:s=e.sent,t.historyScorms=s.scorm_ids;case 6:case"end":return e.stop()}}),e)})))()},watch:{selectedCollection:function(t){this.ready=!1,null!==t?(this.selectedCollectionId=t.id,this.selectedCourse="Select a Course"):(this.selectedCollection="Select a Collection",this.selectedCollectionId=0,this.selectedCourse=null),this.ready=!0},selectedCourse:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function s(){return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:e.ready=!1,null!==t&&"Select a Course"!==t?e.setGlobalLessons(t.id):0!==e.selectedCollectionId?e.selectedCourse="Select a Course":e.selectedCourse="Select a Collection",e.ready=!0;case 3:case"end":return s.stop()}}),s)})))()}},computed:Object(c["a"])(Object(c["a"])({},Object(l["e"])(["collections","scorms"])),{},{coursesArr:function(){var t=this;if(this.ready=!1,this.selectedCollectionId)return this.ready=!0,this.collections.data.filter((function(e){return e.parent===t.selectedCollectionId}));this.ready=!0},lessonsArr:function(){return this.globalLessonsArr}}),methods:{setGlobalLessons:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function s(){var a,n,i,r,o,c,l,d,u,m,_;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return e.ready=!1,s.next=3,j.getScorms(t,1,200);case 3:a=s.sent,e.globalLessonsArr=a.data,n=Object(g["a"])(e.globalLessonsArr);try{for(n.s();!(i=n.n()).done;)r=i.value,e.inArray(r.id,e.historyScorms)?r.isHistory=!0:r.isHistory=!1}catch(p){n.e(p)}finally{n.f()}e.globalLessonsArr.forEach((function(t){t.isSelected=!1})),o=[],c=Object(g["a"])(e.globalLessonsArr);try{for(d=function(){var t=l.value;t.isSelected=!1;var s=e.selectedLessons.find((function(e){return e.id==t.id}));s&&o.push(t)},c.s();!(l=c.n()).done;)d()}catch(p){c.e(p)}finally{c.f()}for(u=function(){var t=_[m],s=x.a.findIndex(e.globalLessonsArr,(function(e){return e.id==t.id}));e.globalLessonsArr.splice(s,1)},m=0,_=o;m<_.length;m++)u();e.ready=!0;case 14:case"end":return s.stop()}}),s)})))()},inArray:function(t,e){for(var s=e.length,a=0;a0&&a.length>0?(e.assignment_type="mixed",e.studentIds=a,e.groupIds=s):s.length>0?(e.assignment_type="group",e.ids=s):a.length>0&&(e.assignment_type="individual",e.ids=a),this.$parent.setAssignmentData(e)}},ta=Xs,ea=s("ffef");function sa(t){this["$style"]=ea["default"].locals||ea["default"]}var aa=Object(q["a"])(ta,Zs,Qs,!1,sa,null,null),na=aa.exports,ia=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"row",class:t.$style.customRow},[t._m(0),s("div",{staticClass:"col-md-3"},[s("datetime",{attrs:{type:"date",placeholder:"Start Date (Required)","min-datetime":t.startDateMin,"max-datetime":t.startDateMax},model:{value:t.startDate,callback:function(e){t.startDate=e},expression:"startDate"}})],1),t._m(1)]),s("div",{staticClass:"row",class:t.$style.customRow},[t._m(2),s("div",{staticClass:"col-md-3"},[s("datetime",{attrs:{type:"date",placeholder:"Due Date (Required)","min-datetime":t.dueDateMin},model:{value:t.dueDate,callback:function(e){t.dueDate=e},expression:"dueDate"}})],1),t._m(3)])])},ra=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"col-md-1 offset-md-4"},[s("span",{attrs:{title:"Start Date"}},[s("i",{staticClass:"fa fa-calendar"})])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"col-md-1",attrs:{title:"If you specify this date then assignees will not have access to the assignment and will not see it on their lists before this date."}},[s("span",[s("i",{staticClass:"fa fa-question-circle"})])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"col-md-1 offset-md-4"},[s("span",{attrs:{title:"Due Date"}},[s("i",{staticClass:"fa fa-calendar"})])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"col-md-1",attrs:{title:"If you specify this date then assignees will see it as date before which they have to complete and submit the assignment."}},[s("span",[s("i",{staticClass:"fa fa-question-circle"})])])}],oa={name:"fourthstep",data:function(){return{startDate:null,dueDate:null,isBlockAfterDueDate:!1,isSingleAccess:!1,startDateMin:null,startDateMax:null,dueDateMin:null}},props:["sDate","dDate","block","single"],beforeMount:function(){var t=new Date;this.startDateMin=t.toISOString(),this.dueDateMin=t.toISOString(),this.startDate=this.sDate,this.dueDate=this.dDate,this.isBlockAfterDueDate=this.block,this.isSingleAccess=this.single},beforeDestroy:function(){var t={};t.assignment_start_date=this.startDate;var e=this.dueDate.split("T");t.assignment_end_date=e[0]+"T23:59:59.000Z",t.block_after_due_date=this.isBlockAfterDueDate,t.single_access=this.isSingleAccess,t.status=!0,this.$parent.setAssignmentData(t)},updated:function(){var t={};t.assignment_start_date=this.startDate;var e=this.dueDate.split("T");t.assignment_end_date=e[0]+"T23:59:59.000Z",t.block_after_due_date=this.isBlockAfterDueDate,t.single_access=this.isSingleAccess,t.status=!0,this.$parent.setAssignmentData(t),this.dueDate&&(this.startDateMax=this.dueDate),this.startDate&&(this.dueDateMin=this.startDate)},mounted:function(){Object(m["a"])("[title]",{placement:"right"})}},ca=oa,la=s("c32f");function da(t){this["$style"]=la["default"].locals||la["default"]}var ua=Object(q["a"])(ca,ia,ra,!1,da,null,null),ma=ua.exports,_a={name:"assignmentCreate",data:function(){return{currentstep:1,assignmentData:{},globalSelectedLessons:[]}},components:{HeaderCustom:Z,FirstStep:qs,SecondStep:Js,ThirdStep:na,FourthStep:ma},methods:{increaseStep:function(){this.currentstep+=1},decreaseStep:function(){this.currentstep-=1},createAssignment:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var s,a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.assignmentData.assignment_start_date&&t.assignmentData.assignment_end_date&&t.assignmentData.assignment_name&&0!==t.assignmentData.assignment_scorms.length&&t.assignmentData.assignment_type){e.next=4;break}Ot()("Error!","The required fields must be filled.","error"),e.next=28;break;case 4:if(t.assignmentData.assignment_start_date="".concat(t.assignmentData.assignment_start_date.split("T")[0]," ").concat(t.assignmentData.assignment_start_date.split("T")[1].split(".")[0]),t.assignmentData.assignment_end_date="".concat(t.assignmentData.assignment_end_date.split("T")[0]," ").concat(t.assignmentData.assignment_end_date.split("T")[1].split(".")[0]),s=null,"mixed"!==t.assignmentData.assignment_type){e.next=24;break}return a=t.assignmentData.studentIds,n=t.assignmentData.groupIds,delete t.assignmentData.groupIds,delete t.assignmentData.studentIds,t.assignmentData.ids=a,t.assignmentData.assignment_type="individual",e.next=16,j.setAssignment(t.assignmentData);case 16:return s=e.sent,t.assignmentData.ids=n,t.assignmentData.assignment_type="group",e.next=21,j.setAssignment(t.assignmentData);case 21:s=e.sent,e.next=27;break;case 24:return e.next=26,j.setAssignment(t.assignmentData);case 26:s=e.sent;case 27:!0===s.success?Ot()("Assignment","Created Successfully!","success").then((function(){t.$router.push({name:"teacherAssignments"})})):(Ot()("","An error occured while you creating assignments","error"),console.log("ASSIGNMENT CREATION ERROR",s.data));case 28:case"end":return e.stop()}}),e)})))()},setAssignmentData:function(t){for(var e=0,s=Object.keys(t);e0&&"group"===t.type?s("div",{staticClass:"row",attrs:{id:"section-to-print"}},[s("div",{staticClass:"col-md-12 table-responsive"},[s("table",{staticClass:"table table-hover table-bordered",class:t.$style.customTable},[t._l(this.selectedAssignments,(function(e){return s("thead",{key:e.id},[s("tr",[s("td",{staticStyle:{color:"red"}},[t._v("#")]),s("td",{staticStyle:{color:"red"}},[t._v(t._s(e.assignment_name))])])])})),t._m(0),t._l(t.tableData,(function(e,a){return s("tbody",{key:a},[s("tr",[s("td",[t._v(t._s(a+1))]),s("td",[t._v(t._s(e.name))]),s("td",[t._v(t._s(e.total_checks_count))]),s("td",[t._v(t._s(e.total_errors_count))]),s("td",[t._v(t._s(e.total_mistake_count))]),s("td",[t._v(t._s(e.avg_score.toFixed(0))+"%")]),s("td",[t._v(t._s(t.millisToMinutesAndSeconds(e.total_time)))]),s("td",[s("vue-custom-tooltip",{attrs:{label:"Details",position:"is-left"}},[s("a",{attrs:{"data-toggle":"modal","data-target":"#editModal"},on:{click:function(s){return t.reportDetails(e.user_id)}}},[s("i",{staticClass:"fas fa-eye"})])])],1)])])}))],2)])]):t.tableData.length&&t.ready>0&&"individual"===t.type?s("div",{staticClass:"row",attrs:{id:"section-to-print"}},[s("div",{staticClass:"col-md-12 table-responsive"},[s("table",{staticClass:"table table-hover table-bordered",class:t.$style.customTable},[t._m(1),t._l(t.tableData,(function(e,a){return s("tbody",{key:a},[s("tr",[s("td",[t._v(t._s(a+1))]),s("td",[t._v(t._s(e.name))]),s("td",[t._v(t._s(e.scorm_name))]),s("td",[t._v(t._s(e.total_checks_count))]),s("td",[t._v(t._s(e.total_errors_count))]),s("td",[t._v(t._s(e.total_mistake_count))]),s("td",[t._v(t._s(e.avg_score.toFixed(0))+"%")]),s("td",[t._v(t._s(t.millisToMinutesAndSeconds(e.total_time)))]),s("td",[s("vue-custom-tooltip",{attrs:{label:"Details",position:"is-left"}},[s("a",{attrs:{"data-toggle":"modal","data-target":"#editModal"},on:{click:function(s){return t.reportDetails(e.user_id)}}},[s("i",{staticClass:"fas fa-eye"})])])],1)])])}))],2)])]):t.ready?t._e():s("div",[s("InnerLoading")],1)]),s("div",{staticClass:"modal fade",attrs:{id:"editModal",tabindex:"-1",role:"dialog","aria-labelledby":"exampleModalCenterTitle","aria-hidden":"true"}},[s("div",{staticClass:"modal-dialog modal-dialog-centered",staticStyle:{"max-width":"90%"}},[s("div",{staticClass:"modal-content"},[s("div",{staticClass:"modal-header"},[s("h5",{staticClass:"modal-title",attrs:{id:"exampleModalLongTitle"}},[t._v("Assignments Details: "+t._s(t.checkReport[0]?t.checkReport[0].report.name:"")+" ")]),t._m(2)]),s("div",{staticClass:"modal-body"},[s("a",{attrs:{href:"#"}},[t._v("test")]),s("export-excel",{staticClass:"btn btn-default",attrs:{data:t.excelData,fields:t.json_fields,name:"filename.xls"}},[t._v(" Download Excel (you can customize this with html code!) ")]),t._l(t.checkReport,(function(e,a){return s("div",{key:a,staticClass:"row",class:t.$style.customRow},[s("div",{staticClass:"jumbotron col-sm-3 col-md-3",class:t.$style.customJumbotron},[s("h6",{class:t.$style.txtLessonName},[t._v(t._s(e.scorm_name))]),s("hr"),s("img",{class:t.$style.lessonImg,attrs:{src:e.scorm_image}}),s("hr"),s("h6",{staticClass:"text-center",class:t.$style.txtLessonName},[t._v("Description")]),s("hr"),s("i",[t._v(t._s(e.scorm_desc?e.scorm_desc:"Lesson has no description."))])]),s("div",{staticClass:"jumbotron col-sm-9 col-md-9",class:t.$style.customJumbotronViceVersa},[s("div",{staticClass:"table-responsive"},[s("table",{staticClass:"table table-hover table-bordered"},[t._m(3,!0),s("tbody",[s("tr",[s("td",[t._v(" Total ")]),s("td",[t._v(t._s(Math.floor(e.report.scorm_scores.total_score)))]),s("td",[t._v(t._s(e.report.scorm_scores.total_checks_count))]),s("td",[t._v(t._s(e.report.scorm_scores.total_errors_count))]),s("td",[t._v(t._s(e.report.scorm_scores.total_mistake_count))]),s("td",[t._v(t._s(t.millisToMinutesAndSeconds(e.report.scorm_scores.total_time)))])]),t._m(4,!0)]),0===e.report.scorm_scores.paginated_results.length?s("tbody",[t._m(5,!0)]):t._l(e.report.scorm_scores.paginated_results,(function(e,a){return s("tbody",{key:a},[s("tr",[s("td",[t._v(t._s(e.page_name))]),s("td",[t._v(t._s(Math.floor(100*e.score))+"%")]),s("td",[t._v(t._s(e.checks_count))]),s("td",[t._v(t._s(e.errors_count))]),s("td",[t._v(t._s(e.mistake_count))]),s("td",[t._v(t._s(t.millisToMinutesAndSeconds(e.time))+" ")])])])}))],2)])])])}))],2),t._m(6)])])])],1)},ba=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("thead",[s("tr",[s("th",[t._v("#")]),s("th",[t._v("Student Name")]),s("th",[t._v("Total Checks")]),s("th",[t._v("Total Errors")]),s("th",[t._v("Total Mistakes")]),s("th",[t._v("Average Score")]),s("th",[t._v("Total Time")]),s("th",[t._v("Details")])])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("thead",[s("tr",[s("th",[t._v("#")]),s("th",[t._v("Student Name")]),s("th",[t._v("Lesson Name")]),s("th",[t._v("Total Checks")]),s("th",[t._v("Total Errors")]),s("th",[t._v("Total Mistakes")]),s("th",[t._v("Average Score")]),s("th",[t._v("Total Time")]),s("th",[t._v("Details")])])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[s("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("thead",[s("tr",[s("th",[t._v("Lesson")]),s("th",[t._v("Score")]),s("th",[t._v("Checks")]),s("th",[t._v("Errors")]),s("th",[t._v("Mistakes")]),s("th",[t._v("Time")])])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("tr",[s("td",{attrs:{colspan:"6"}},[t._v("Activities")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("tr",[s("td",{attrs:{colspan:"6"}},[t._v(" There is no activity. ")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"modal-footer"},[s("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Close")])])}],Ca=(s("3ca3"),s("ddb0"),{name:"assignmentReport",data:function(){return{assignmentTypes:["group","individual"],selectedStartDate:null,selectedEndDate:null,selectedType:"Select Type",assignmentType:"group",selectedAssignee:"Select Type",assigneesArr:[],assignmentsArr:[],selectedAssignments:[],tableData:[],studentDetails:[],modalData:null,modalLoading:!1,ready:!0,type:null,reportAll:[],checkReport:[],excelData:[],json_fields:{"User Name":"name","Total Score":"totalScore","Total Check":"totalCheck","Total Error":"totalErrors","Total Mistake":"totalMistake","Total Time":"scorm_scores.total_time","User ID":"user_id",Scores:{field:"scorm_scores.paginated_results",callback:function(t){return"Landline Phone - ".concat(t)}}},json_meta:[[{key:"charset",value:"utf-8"}]]}},computed:Object(c["a"])(Object(c["a"])(Object(c["a"])({},Object(l["e"])(["assignmentss"])),Object(l["e"])(["assignments"])),Object(l["e"])(["individualAssignments"])),components:{HeaderCustom:Z,InnerLoading:Gt,VueCustomTooltip:fs["a"]},beforeMount:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.getLmsAssignments();case 2:return e.next=4,t.getLmsIndAssignments();case 4:case"end":return e.stop()}}),e)})))()},watch:{selectedStartDate:function(t){var e=this;this.assignmentsArr=[],this.tableData=[],this.selectedAssignments=[],document.getElementById("btnReport").disabled=!0,document.getElementById("btnPrint").disabled=!0,"group"===this.selectedType?(this.assignmentsArr=this.assignments.filter((function(s){return yt()(s.start_date).format("YYYY-MM-DD")>=t&&s.name===e.selectedAssignee})).map((function(t){return{assignment_name_show:"".concat(t.assignment_name," ( ").concat(t.start_date.split(" ")[0]," )"),assignment_name:t.assignment_name,lesson_name:t.scorm.scorm_name,id:t.assignment_id,start_date:t.start_date,end_date:t.end_date}})),null!=this.selectedEndDate&&(this.assignmentsArr=this.assignmentsArr.filter((function(t){return yt()(t.start_date).format("YYYY-MM-DD")<=e.selectedEndDate}))),this.assignmentsArr=x.a.uniqBy(this.assignmentsArr,"assignment_name")):"individual"===this.selectedType&&(this.assignmentsArr=this.individualAssignments.filter((function(s){return yt()(s.start_date).format("YYYY-MM-DD")>=t&&s.name===e.selectedAssignee})).map((function(t){return{assignment_name_show:"".concat(t.assignment_name," ( ").concat(t.start_date.split(" ")[0]," )"),assignment_name:t.assignment_name,lesson_name:t.scorm.scorm_name,id:t.assignment_id,start_date:t.start_date,end_date:t.end_date}})),null!=this.selectedEndDate&&(this.assignmentsArr=this.assignmentsArr.filter((function(t){return yt()(t.start_date).format("YYYY-MM-DD")<=e.selectedEndDate}))),this.assignmentsArr=x.a.uniqBy(this.assignmentsArr,"assignment_name"))},selectedEndDate:function(t){var e=this;this.assignmentsArr=[],this.tableData=[],this.selectedAssignments=[],document.getElementById("btnReport").disabled=!0,document.getElementById("btnPrint").disabled=!0,"group"===this.selectedType?(this.assignmentsArr=this.assignments.filter((function(s){return yt()(s.start_date).format("YYYY-MM-DD")<=t&&yt()(s.start_date).format("YYYY-MM-DD")>=e.selectedStartDate&&s.name===e.selectedAssignee})).map((function(t){return{assignment_name_show:"".concat(t.assignment_name," ( ").concat(t.start_date.split(" ")[0]," )"),assignment_name:t.assignment_name,lesson_name:t.scorm.scorm_name,id:t.assignment_id,start_date:t.start_date,end_date:t.end_date}})),this.assignmentsArr=x.a.uniqBy(this.assignmentsArr,"assignment_name")):"individual"===this.selectedType&&(this.assignmentsArr=this.individualAssignments.filter((function(s){return yt()(s.start_date).format("YYYY-MM-DD")<=t&&yt()(s.start_date).format("YYYY-MM-DD")>=e.selectedStartDate&&s.name===e.selectedAssignee})).map((function(t){return{assignment_name_show:"".concat(t.assignment_name," ( ").concat(t.start_date.split(" ")[0]," )"),assignment_name:t.assignment_name,lesson_name:t.scorm.scorm_name,id:t.assignment_id,start_date:t.start_date,end_date:t.end_date}})),this.assignmentsArr=x.a.uniqBy(this.assignmentsArr,"assignment_name"))},selectedAssignee:function(t){this.tableData=[],this.selectedAssignments=[],this.selectedStartDate=null,this.selectedEndDate=null,document.getElementById("btnReport").disabled=!0,document.getElementById("btnPrint").disabled=!0,"Select an Assignee"!==t&&"group"===this.selectedType?(this.assignmentsArr=this.assignments.filter((function(e){return e.name===t})).map((function(t){return{assignment_name_show:"".concat(t.assignment_name," ( ").concat(t.start_date.split(" ")[0]," )"),assignment_name:t.assignment_name,lesson_name:t.scorm.scorm_name,id:t.assignment_id,start_date:t.start_date,end_date:t.end_date}})),this.assignmentsArr=x.a.uniqBy(this.assignmentsArr,"assignment_name")):"Select an Assignee"!==t&&"individual"===this.selectedType&&(this.assignmentsArr=this.individualAssignments.filter((function(e){return e.name===t})).map((function(t){return{assignment_name_show:"".concat(t.assignment_name," ( ").concat(t.start_date.split(" ")[0]," )"),assignment_name:t.assignment_name,lesson_name:t.scorm.scorm_name,id:t.assignment_id,start_date:t.start_date,end_date:t.end_date}})),this.assignmentsArr=x.a.uniqBy(this.assignmentsArr,"assignment_name"))}},methods:Object(c["a"])(Object(c["a"])({},Object(l["b"])(["getLmsAssignments","getLmsIndAssignments"])),{},{getNewArray:function(){if(this.tableData=[],this.selectedAssignments.assignment_name){var t=new Array(this.selectedAssignments);this.selectedAssignments=t,this.selectedAssignments[0].assignment_name?document.getElementById("btnReport").disabled=!1:document.getElementById("btnReport").disabled=!0}},dateFilter:function(t){return t.split(" 00:00:00")},newAssignees:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.selectedAssignee=[],t.selectedStartDate=null,t.selectedEndDate=null,document.getElementById("btnReport").disabled=!0,document.getElementById("btnPrint").disabled=!0,"group"!==t.selectedType){e.next=10;break}t.assigneesArr=x.a.uniqBy(t.assignments.filter((function(t){return"group"===t.assignment_type})),"name").map((function(t){return t.name})),t.assigneesArr=t.assigneesArr.sort(),e.next=19;break;case 10:if(!t.individualAssignments){e.next=14;break}t.assigneesArr=x.a.uniqBy(t.individualAssignments.filter((function(t){return"individual"===t.assignment_type})),"name").map((function(t){return t.name})),e.next=19;break;case 14:return e.next=16,j.getAssignments(1,"id","individual");case 16:s=e.sent,t.$store.commit("setIndAssignments",s),t.assigneesArr=x.a.uniqBy(s.filter((function(t){return"individual"===t.assignment_type})),"name").map((function(t){return t.name}));case 19:case"end":return e.stop()}}),e)})))()},getReport:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var s,a,n,i,r,o,c,l,d,u,m,_,p,h,v,f,y,b,C,k,w,D;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.ready=!1,t.tableData=[],s=[],a=null,a="group"===t.selectedType?t.assignments:t.individualAssignments,n=Object(g["a"])(t.selectedAssignments);try{for(r=function(){var e=i.value,n=a.filter((function(s){return s.assignment_name===e.assignment_name&&s.start_date===e.start_date&&s.end_date===e.end_date&&s.name===t.selectedAssignee})).map((function(t){return{assignment_name:t.assignment_name,lesson_name:t.scorm.scorm_name,id:t.assignment_id}}));s=[].concat(Object(es["a"])(s),Object(es["a"])(n))},n.s();!(i=n.n()).done;)r()}catch(T){n.e(T)}finally{n.f()}o=[],c=regeneratorRuntime.mark((function e(){var s,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=d[l],n=a.find((function(t){return t.assignment_id===s.id})),e.next=4,j.getPaginatedScores(n.assignment_id);case 4:i=e.sent,"group"===t.selectedType?i.success&&o.push(i.data):o.push(i.data);case 6:case"end":return e.stop()}}),e)})),l=0,d=s;case 10:if(!(l0?s("div",{staticClass:"row",class:t.$style.columns},t._l(this.scormData,(function(e,a){return s("div",{key:a,staticClass:"col-md-4",class:t.$style.column},[s("Card",{attrs:{contentType:"free",id:e.scorm_id,title:e.scorm_name,imgpath:e.scorm_image,score:e.scorm_scores.total_score,scormCode:e.scorm_code,scormTitle:e.scorm_name,scormDesc:e.scorm_desc,packageId:e.package_id,date:e.package_end_date}})],1)})),0):t.linkData.length>0?s("div",{staticClass:"row",class:t.$style.columns},t._l(this.linkData,(function(e,a){return s("div",{key:a,staticClass:"col-md-4",class:t.$style.column},[s("Card",{attrs:{contentType:"link",id:e.link_id,title:e.link_name,imgpath:e.thumbnail_url,linkUrl:e.link_url}})],1)})),0):t._e():s("div",[s("InnerLoading")],1)])],1)},ja=[],$a={name:"lessons",data:function(){return{scormData:[],linkData:[],title:"",ready:!1}},components:{HeaderCustom:Z,Card:us,Search:le,InnerLoading:Gt},computed:Object(c["a"])(Object(c["a"])({},Object(l["e"])(["freeContents"])),Object(l["c"])(["freeScorms"])),beforeMount:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.getPackages();case 2:t.setPackages(),t.ready=!0;case 4:case"end":return e.stop()}}),e)})))()},watch:{freeContents:function(){this.setPackages()},freeScorms:function(){this.setPackages()}},methods:Object(c["a"])(Object(c["a"])({},Object(l["b"])(["getPackages"])),{},{search:function(t){t?this.setPackages(t):this.setPackages()},setPackages:function(t){var e=parseInt(this.$route.params.id,10);t?(this.scormData=this.freeScorms.filter((function(s){return s.package_id===e&&s.scorm_name.toLowerCase().includes(t.toLowerCase())})),this.linkData=this.freeContents.find((function(t){return t.package_id===e})).package_links.filter((function(e){return e.link_name.includes(t.toLowerCase())}))):(this.scormData=this.freeScorms.filter((function(t){return t.package_id===e})),this.linkData=this.freeContents.find((function(t){return t.package_id===e})).package_links),this.title=this.freeContents.find((function(t){return t.package_id===e})).package_name}})},Aa=$a,Oa=s("3ae6");function Ra(t){this["$style"]=Oa["default"].locals||Oa["default"]}var La=Object(q["a"])(Aa,Sa,ja,!1,Ra,null,null),Pa=La.exports,Ia=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{ref:"content",attrs:{id:"content"}},[s("nav",{attrs:{role:"navigation"}},[s("div",{staticClass:"menu"},[s("div",{staticClass:"sizing-btns",on:{click:function(e){return t.fit()}}},[t._v(t._s(t.isFit?"Original Size":"Fit to Window"))]),"demo"!==this.userDetails.title?s("div",{staticClass:"save-btn",on:{click:function(e){return t.saveAndExit()}}},[t._v("Save and Exit")]):s("div",{staticClass:"save-btn",on:{click:function(e){return t.saveAndExit()}}},[t._v("Exit")])])]),t.isLoaded?s("iframe",{ref:"iframe",style:[t.styleFrame,{opacity:t.isReady?1:0}],attrs:{id:"iframe",allowfullscreen:"allowfullscreen",src:"https://content.ueslms.com/scorms/"+t.$route.params.scormCode+"/index_new.html"}}):t._e(),t.isReady?t._e():s("div",{staticClass:"loading"},[s("div",{staticClass:"icon"})])])])},Ea=[],Ba={name:"Scorm",props:["packageId","scormTitle","scormDesc","scormCode","timestamp","packageType"],data:function(){return{isLoaded:!1,isReady:!1,state:null,isFit:!0,styleFrame:{left:0,transform:0},scormWidth:0,scormHeight:0}},computed:Object(c["a"])({},Object(l["e"])(["userDetails"])),methods:{sentState:function(){if(this.state){var t=this.$refs.iframe.contentWindow||this.$refs.iframe.contentDocument,e="SET_STATE;|".concat(this.state);t.postMessage(e,"*"),console.log("SENT STATE (in app)")}},getState:function(){var t=this,e={user_id:Number(this.userDetails.user_id),scorm_id:Number(this.$route.params.id),stateable_type:this.$route.params.packageType?this.$route.params.packageType:"package",stateable_id:Number(this.$route.params.packageId)};j.loadState(e).then((function(e){e[0]&&(t.state=e[0].state),t.isLoaded=!0})).catch((function(t){console.log("ERR",t)}))},saveStateScore:function(t,e){var s=this,a={user_id:Number(this.userDetails.user_id),scorm_id:Number(this.$route.params.id),stateable_type:this.$route.params.packageType?this.$route.params.packageType:"package",stateable_id:Number(this.$route.params.packageId),state:t,score:'{"score": '.concat(JSON.stringify(e),"}")};"demo"!==this.userDetails.title?j.saveStateScore(a).then((function(t){s.$router.go(-1)})).catch((function(t){console.log("ERR",t)})):this.$router.go(-1)},fit:function(){this.isFit=!this.isFit,this.onResize()},onResize:function(){var t=this.$refs.content.offsetWidth,e=this.$refs.content.offsetHeight-50,s=t,a=this.scormWidth,n=this.scormWidth,i=t/this.scormWidth>e/this.scormHeight;if(this.isFit){i?(s=e,a=this.scormHeight):(s=t,a=this.scormWidth),this.styleFrame.margin="0";var r=s/a;this.styleFrame.left="".concat((t-n*r)/2,"px"),this.styleFrame.transform="scale(".concat(r,")")}else this.styleFrame.left="0",this.styleFrame.right="0",this.styleFrame.margin="auto",this.styleFrame.transform="scale(1)",this.$refs.content.style.overflowX="auto"},fillResize:function(t,e){this.$refs.iframe&&(this.scormWidth=t+40,this.scormHeight=e+40,this.$refs.iframe.style.width="".concat(this.scormWidth-20,"px"),this.$refs.iframe.style.height="".concat(this.scormHeight-20,"px"),this.onResize(),this.isReady=!0)},saveAndExit:function(){this.isReady=!1;var t=this.$refs.iframe.contentWindow||this.$refs.iframe.contentDocument;t.postMessage("SAVEANDCLOSE","*")},onMessageReceived:function(t){if(0===t.data.indexOf("LOADED"))this.isSuccess=!0,console.log("RECEIVED LOADED (in app)");else if(0===t.data.indexOf("PLAYER_LOADED"))this.sentState(),console.log("RECEIVED PLAYER LOADED (in app)");else if(0===t.data.indexOf("GET_STATE_SCORE;|")){var e=t.data.split(";|");this.saveStateScore(e[1],JSON.parse(e[2])),console.log("RECEIVED STATE AND SCORE (in app)")}else if(0===t.data.indexOf("RESIZE:")){var s=t.data.split("RESIZE:"),a=s[1].split(";")[0],n=s[1].split(";")[1];this.fillResize(parseFloat(a),parseFloat(n))}}},beforeMount:function(){this.scormCode?this.getState():this.$router.push("/")},mounted:function(){window.addEventListener("resize",this.onResize),window.addEventListener("message",this.onMessageReceived,!1)},beforeDestroy:function(){window.removeEventListener("resize",this.onResize),window.removeEventListener("message",this.onMessageReceived)}},Ma=Ba,Na=(s("648a"),Object(q["a"])(Ma,Ia,Ea,!1,null,"1be4e944",null)),Ha=Na.exports,za=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("HeaderCustom"),s("div",{staticClass:"container"},[t.ready?t._e():s("div",[s("InnerLoading",{class:t.$style.divLoadingHome})],1),0===t.currentParent?s("div",{staticClass:"row"},t._l(t.resources,(function(e,a){return s("div",{key:a,staticClass:"col-md-4 mt-5"},[s("div",{staticClass:"row",class:t.$style.customCard,on:{click:function(s){return t.setCurrentParent(e.package_id,e.package_name)}}},[s("div",{staticClass:"col-md-6 justify-content-center align-self-center"},[s("img",{class:t.$style.coverImg,staticStyle:{width:"100px"},attrs:{src:e.package_image?e.package_image:"../../../static/img/no-cover.png"}})]),s("div",{staticClass:"col-md-6 justify-content-center align-self-center"},[s("h1",{class:t.$style.contentTitle},[t._v(t._s(e.package_name))])])])])})),0):444===t.currentParent?[s("div",{staticClass:"row"},[s("button",{staticClass:"col-md-2 mt-5 ml-4 btn",staticStyle:{"background-color":"#012866",color:"white"},attrs:{type:"button"},on:{click:t.setCurrentPage}},[t._v("Back")])])]:[s("div",{staticClass:"row"},[s("button",{staticClass:"col-md-2 mt-5 ml-4 btn",staticStyle:{"background-color":"#012866",color:"white"},attrs:{type:"button"},on:{click:t.setCurrentPage}},[t._v("Back")])]),s("div",{staticClass:"row"},t._l(t.childData,(function(e,a){return s("div",{key:a,staticClass:"col-md-4 mt-3"},[s("div",{staticClass:"row",class:t.$style.customCard,attrs:{title:e.link_name},on:{click:function(s){return t.openLink(e)}}},[s("div",{staticClass:"col-md-6 justify-content-center align-self-center"},[s("img",{class:t.$style.coverImg,staticStyle:{width:"100px"},attrs:{src:e.thumbnail_url?e.thumbnail_url:"../../../static/img/no-cover.png"}})]),s("div",{staticClass:"col-md-6 justify-content-center align-self-center"},[s("h1",{class:t.$style.contentTitle},[t._v(t._s(e.link_name))])])])])})),0)],33===t.currentParent?s("div",{staticClass:"row mt-4"},[s("div",{staticClass:"col-md-12"},[s("div",{class:t.$style.divExplain},[s("code",{class:t.$style.customCode},[t._v(" .iso uzantılı dosyaları Windows 10 kurulu bilgisayarlarda açmak için dosyaya çift tıklamanız ya da sağ tıklayarak bağla seçeneğini seçmeniz yeterli olacaktır. Daha alt Windows versiyonlarında ise .iso uzantılı dosyaları açmak için dosyaya sağ tıklayarak "),s("b",[t._v("Winrar ile Aç")]),t._v(" seçeneğini seçmeniz yeterli olacaktır. Bilgisayarınızda "),s("b",[t._v("Winrar")]),t._v(" kurulu değil ise "),t._m(0),t._v(" indirebilirsiniz. ")])])])]):t._e(),s("div",{staticClass:"modal fade",attrs:{id:"exampleModalCenter",tabindex:"-1",role:"dialog","aria-labelledby":"exampleModalCenterTitle","aria-hidden":"true"}},[s("div",{staticClass:"modal-dialog modal-dialog-centered modal-lg",attrs:{role:"document"}},[s("div",{staticClass:"modal-content"},[s("div",{staticClass:"modal-header"},[s("h5",{staticClass:"modal-title",attrs:{id:"exampleModalLongTitle"}},[t._v(t._s(t.title))]),t._m(1)]),s("div",{staticClass:"modal-body"},[s("div",{staticClass:"embed-responsive embed-responsive-16by9"},[s("iframe",{staticClass:"embed-responsive-item",attrs:{src:t.youtubeLink,allowfullscreen:""}})])])])])])],2)],1)},qa=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("a",{attrs:{href:"https://www.win-rar.com/postdownload.html?&L=5",target:"_blank"}},[s("u",[t._v("buradan")])])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[s("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])])}],Fa={name:"resources",data:function(){return{currentParent:0,resources:[],childData:[],youtubeLink:"",title:"",unique:null,school:null,campus:null,ready:!0}},components:{HeaderCustom:Z,InnerLoading:Gt},computed:Object(c["a"])({},Object(l["e"])(["userDetails"])),beforeMount:function(){this.getPackages()},updated:function(){Object(m["a"])("[title]",{placement:"top"})},methods:{setCurrentPage:function(){this.currentParent=0},openYoutubeModal:function(t){1===t?(this.youtubeLink="https://www.youtube.com/embed/_alxnbmYOWQ",this.title="FNL English"):2===t?(this.youtubeLink="https://www.youtube.com/embed/QnMzHzz7YdQ",this.title="FNL Report"):3===t?(this.youtubeLink="https://www.youtube.com/embed/xi65fqUscIg",this.title="Hexagonia"):4===t?(this.youtubeLink="https://www.youtube.com/embed/mHbolxKvqaw",this.title="Karnevall"):5===t?(this.youtubeLink="https://www.youtube.com/embed/_5GE1L7hsEY",this.title="Kidzwonder Çağ 1"):6===t&&(this.youtubeLink="https://www.youtube.com/embed/bUWy8HS636E",this.title="Kidzwonder Çağ 2")},openLink:function(t){window.open(t.link_url,"_blank")},setCurrentParent:function(t){if("youtube"===t)this.currentParent=999;else if("aim"===t)if(this.school=this.userDetails.organization.find((function(t){return"main"===t.type})),this.school){var e,s=this.userDetails.organization.filter((function(t){return"grade"===t.type})),a=[],n=Object(g["a"])(s);try{for(n.s();!(e=n.n()).done;){var i=e.value;a.push(i.name.split("-")[0])}}catch(o){n.e(o)}finally{n.f()}this.unique=a.filter((function(t,e,s){return s.indexOf(t)===e})),this.aimActive=!0,this.currentParent=444}else Ot()("Error!","Bir Problem Yaşıyoruz En Kısa Sürede Düzelteceğiz.","error");else{var r=this.resources.find((function(e){return e.package_id===t}));this.childData=r.package_links,this.currentParent=t}},getPackages:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.ready=!1,e.next=3,j.getLink();case 3:s=e.sent,void 0!=s.data?t.resources=s.data.data.filter((function(t){return"link"===t.package_type})):(Ot()("Atanmış paket bulunamadı!"),window.location="/#/home"),t.ready=!0;case 6:case"end":return e.stop()}}),e)})))()},setBreadcrumbData:function(t){var e=document.getElementById("customBreadcrumb");e.innerHTML="";var s=null;s=document.createElement("a"),s.className="breadcrumb-item",s.style.color=y["colors"].primaryColor,s.innerText="Teachers' Resources",s.setAttribute("href","/resources"),e.appendChild(s);var a=[],n=this.currentData.find((function(e){return e.id===t}));a.push(n);var i=!0,r=n.parent;while(i){var o=this.currentData.find((function(t){return t.id===r}));o?(a.unshift(o),r=o.parent):i=!1}for(var c=0;c0?s("div",{staticClass:"col-md-4"},[s("div",{class:t.$style.divDdl},[s("select",{directives:[{name:"model",rawName:"v-model",value:t.selectedCategory,expression:"selectedCategory"}],staticClass:"form-control",class:t.$style.combobox,domProps:{innerHTML:t._s(t.categoriesOptString)},on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.selectedCategory=e.target.multiple?s:s[0]}}})])]):t._e(),t.themes.length>0?s("div",{staticClass:"col-md-4"},[s("div",{class:t.$style.divDdl},[s("select",{directives:[{name:"model",rawName:"v-model",value:t.selectedTheme,expression:"selectedTheme"}],staticClass:"form-control",class:t.$style.combobox,domProps:{innerHTML:t._s(t.themesOptString)},on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.selectedTheme=e.target.multiple?s:s[0]}}})])]):t._e(),t.categories.length>0&&t.themes.length>0?s("div",{staticClass:"col-md-4"},[s("div",{class:t.$style.divDdl},[s("Search",{class:t.$style.divSearch})],1)]):s("div",{staticClass:"col-md-4 offset-md-4"},[s("Search")],1)]),s("div",{staticClass:"row"},[s("div",{staticClass:"col-md-3"},[s("button",{staticClass:"btn mt-3",staticStyle:{"background-color":"#6f2b8f",color:"white"},on:{click:function(e){return t.goBack()}}},[s("i",{staticClass:"fas fa-arrow-circle-left"}),t._v(" Back")])]),s("div",{staticClass:"col-md-6"},[s("h1",{staticClass:"title menuTitle",class:t.$style.menuTitle,staticStyle:{"font-weight":"normal"}},[t._v(t._s(t.title))])]),s("div",{staticClass:"col-md-3"})]),s("hr"),t.ready?t.scormData.length>0?s("div",{staticClass:"row",class:t.$style.columns},[t._l(this.scormData,(function(e,a){return s("div",{key:a,staticClass:"col-lg-3 col-md-4 col-sm-6 col-xs-12",class:t.$style.column},[s("Card",{attrs:{coverImageHeight:t.coverImgHeight,contentType:"scorm",id:e.id,scormTitle:e.name,imgpath:e.big_image?e.big_image:e.image,scormCode:e.scorm_code,scormDesc:e.scorm_details1,isHistory:e.isHistory,packageId:parseInt(t.$route.params.id,10)}})],1)})),s("div",{staticClass:"col-md-12"},[this.pagination&&this.scormData.length>0?s("lmsPagination",{attrs:{data:this.pagination},on:{goToPage:t.goToPage}}):t._e()],1)],2):s("div",[s("p",{class:t.$style.noContent},[t._v("There is no content here.")])]):s("div",[s("InnerLoading")],1)])],1)},Ja=[],Za=(s("498a"),{name:"lessons",data:function(){return{scormData:[],linkData:[],title:"",pagination:null,ready:!1,themes:[],categories:[],themesOptString:"",categoriesOptString:"",selectedTheme:0,selectedCategory:0,searchText:"",coverImgHeight:null,searchData:null,routerCollectionId:0,historyScorms:[]}},components:{HeaderCustom:Z,Card:vt,Search:le,InnerLoading:Gt,lmsPagination:Ye},computed:Object(c["a"])({},Object(l["e"])(["scorms"])),beforeMount:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var s,a,n,i,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.routerCollectionId=t.$route.params.collectionId,s=parseInt(t.$route.params.id,10),46===s&&(t.coverImgHeight="240px"),t.title=t.$store.state.collections.data.find((function(t){return t.id===s})).name,t.setData(),e.next=7,j.getHistoryScorms();case 7:a=e.sent,t.historyScorms=a.scorm_ids,n=Object(g["a"])(t.scormData);try{for(n.s();!(i=n.n()).done;)r=i.value,t.inArray(r.id,t.historyScorms)?r.isHistory=!0:r.isHistory=!1}catch(o){n.e(o)}finally{n.f()}case 11:case"end":return e.stop()}}),e)})))()},methods:Object(c["a"])(Object(c["a"])({},Object(l["b"])(["getPackages"])),{},{search:function(t){t?(this.searchText=t.toLocaleLowerCase("tr-TR").trim(),this.setPackages()):(this.searchText="",this.setPackages())},setData:function(){var t=this.$route.query;t.page?this.getData(t.page):this.goToPage(1)},setPackages:function(){var t=this;parseInt(this.$route.params.id,10);this.scormData=this.searchData.filter((function(e){return!t.searchText||e.name.toLocaleLowerCase("tr-TR").includes(t.searchText)})).filter((function(e){return 0===Number(t.selectedTheme)||null!==e.scorm_theme&&e.scorm_theme.id===Number(t.selectedTheme)})).filter((function(e){return 0===Number(t.selectedCategory)||null!==e.scorm_category&&e.scorm_category.id===Number(t.selectedCategory)})),this.fillDropdowns()},fillDropdowns:function(){var t=this;this.themes=x.a.uniqBy(this.scormData,"scorm_theme.name").filter((function(t){return t.scorm_theme&&null!==t.scorm_theme.id})).map((function(t){return t.scorm_theme})),this.themesOptString="",this.themesOptString+='',x.a.orderBy(this.themes,"name").forEach((function(e){var s="");t.themesOptString+=s})),this.categories=x.a.uniqBy(this.scormData,"scorm_category.name").filter((function(t){return t.scorm_category&&null!==t.scorm_category.id})).map((function(t){return t.scorm_category})),this.categoriesOptString="",this.categoriesOptString+='',x.a.orderBy(this.categories,"name").forEach((function(e){var s="");t.categoriesOptString+=s}))},inArray:function(t,e){for(var s=e.length,a=0;a0?s("div",{staticClass:"col-md-4"},[s("div",{class:t.$style.divDdl},[s("select",{directives:[{name:"model",rawName:"v-model",value:t.selectedCategory,expression:"selectedCategory"}],staticClass:"form-control",class:t.$style.combobox,domProps:{innerHTML:t._s(t.categoriesOptString)},on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.selectedCategory=e.target.multiple?s:s[0]}}})])]):t._e(),t.themes.length>0?s("div",{staticClass:"col-md-4"},[s("div",{class:t.$style.divDdl},[s("select",{directives:[{name:"model",rawName:"v-model",value:t.selectedTheme,expression:"selectedTheme"}],staticClass:"form-control",class:t.$style.combobox,domProps:{innerHTML:t._s(t.themesOptString)},on:{change:function(e){var s=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.selectedTheme=e.target.multiple?s:s[0]}}})])]):t._e(),t.categories.length>0&&t.themes.length>0?s("div",{staticClass:"col-md-4"},[s("div",{class:t.$style.divDdl},[s("Search",{class:t.$style.divSearch})],1)]):s("div",{staticClass:"col-md-4 offset-md-4"},[s("Search")],1)]),s("div",{staticClass:"row"},[s("div",{staticClass:"col-md-12"},[s("h1",{staticClass:"title menuTitle",class:t.$style.menuTitle,staticStyle:{"font-weight":"normal"}},[t._v(t._s(t.title))]),s("hr")])]),t.ready?t.scormData.length>0?s("div",{staticClass:"row",class:t.$style.columns},[t._l(this.scormData,(function(e,a){return s("div",{key:a,staticClass:"col-lg-2 col-md-3 col-sm-6 col-xs-12",class:t.$style.column},[s("Card",{attrs:{coverImageHeight:t.coverImgHeight,contentType:"scorm",id:e.id,scormTitle:e.name,imgpath:e.big_image?e.big_image:e.image,scormCode:e.scorm_code,scormDesc:e.scorm_details1,packageId:e.collection}})],1)})),s("div",{staticClass:"col-md-12"},[this.pagination&&this.scormData.length>0?s("lmsPagination",{attrs:{data:this.pagination},on:{goToPage:t.goToPage}}):t._e()],1)],2):s("div",[s("p",{class:t.$style.noContent},[t._v("There is no content here.")])]):s("div",[s("InnerLoading")],1)])],1)},nn=[],rn={name:"Library",data:function(){return{scormData:[],linkData:[],title:"",pagination:null,ready:!1,themes:[],categories:[],themesOptString:"",categoriesOptString:"",selectedTheme:0,selectedCategory:0,searchText:"",coverImgHeight:null,searchData:null}},components:{HeaderCustom:Z,Card:ee,Search:le,InnerLoading:Gt,lmsPagination:Ye},computed:Object(c["a"])({},Object(l["e"])(["scorms","userDetails"])),beforeMount:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.title="myEDULIBRARY",t.setData();case 2:case"end":return e.stop()}}),e)})))()},methods:Object(c["a"])(Object(c["a"])({},Object(l["b"])(["getPackages"])),{},{search:function(t){t?(this.searchText=t.toLocaleLowerCase("tr-TR").trim(),this.setPackages()):(this.searchText="",this.setPackages())},setData:function(){this.getData(1)},setPackages:function(){var t=this;parseInt(this.$route.params.id,10);this.scormData=this.searchData.filter((function(e){return!t.searchText||e.name.toLocaleLowerCase("tr-TR").includes(t.searchText)})).filter((function(e){return 0===Number(t.selectedTheme)||null!==e.scorm_theme&&e.scorm_theme.id===Number(t.selectedTheme)})).filter((function(e){return 0===Number(t.selectedCategory)||null!==e.scorm_category&&e.scorm_category.id===Number(t.selectedCategory)})),this.fillDropdowns()},fillDropdowns:function(){var t=this;this.themes=x.a.uniqBy(this.scormData,"scorm_theme.name").filter((function(t){return t.scorm_theme&&null!==t.scorm_theme.id})).map((function(t){return t.scorm_theme})),this.themesOptString="",this.themesOptString+='',x.a.orderBy(this.themes,"name").forEach((function(e){var s="");t.themesOptString+=s})),this.categories=x.a.uniqBy(this.scormData,"scorm_category.name").filter((function(t){return t.scorm_category&&null!==t.scorm_category.id})).map((function(t){return t.scorm_category})),this.categoriesOptString="",this.categoriesOptString+='',x.a.orderBy(this.categories,"name").forEach((function(e){var s="");t.categoriesOptString+=s}))},goToPage:function(t){return null},getData:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function s(){var a,n,i;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:if(e.ready=!1,parseInt(e.$route.params.id,10),a=e.userDetails.organization.find((function(t){return"main"===t.type})).id,48710!==a){s.next=12;break}return s.next=6,j.getPiriScorms(t);case 6:n=s.sent,e.pagination=n.pagination,e.searchData=n.data,e.scormData=n.data,s.next=18;break;case 12:return s.next=14,j.getScorms(0,t,"reader");case 14:i=s.sent,e.pagination=i.pagination,e.searchData=i.data,e.scormData=i.data;case 18:e.fillDropdowns(),setTimeout((function(){e.ready=!0}),1e3);case 20:case"end":return s.stop()}}),s)})))()}}),watch:{selectedTheme:function(){this.setPackages()},selectedCategory:function(){this.setPackages()},$route:function(){this.setData()}}},on=rn,cn=s("3d64");function ln(t){this["$style"]=cn["default"].locals||cn["default"]}var dn=Object(q["a"])(on,an,nn,!1,ln,null,null),un=dn.exports;a["a"].use(n["a"]);var mn=new n["a"]({routes:[{path:"/",name:"login",component:Be},{path:"/home",name:"home",component:$e},{path:"/assignments",name:"studentAssignments",component:Ze,beforeEnter:function(t,e,s){"teacher"===E.state.roleType&&s({name:"teacherAssignments"}),s()}},{path:"/assignments",name:"teacherAssignments",component:xs},{path:"/teacherResources",name:"teachersResources",component:Wa},{path:"/mycontents",name:"mycontents",component:ge},{path:"/mycontents/:id",name:"lessons",component:Pa},{path:"/collections/:id?/:searchList?",name:"collections",component:ge},{path:"/scorms/:id",name:"scorms",component:sn},{path:"/library/:id?",name:"library",component:un},{path:"/scorm/:id/:packageType?/:packageId?/:scormCode/:scormTitle/:scormDesc?",name:"scorm",component:Ha,props:!0},{path:"/assignment/details/:id/:community/:userId?",name:"assignmentDetails",component:Rs},{path:"/assignment/create",name:"assignmentCreate",component:fa},{path:"/assignment/report",name:"assignmentRepor",component:Ta}]}),_n=mn;mn.afterEach((function(t){"login"!==t.name&&(f.cookie.get("access_token")||mn.push({name:"login"})),"login"===t.name&&f.cookie.get("access_token")&&mn.push({path:"/"})}));var pn=s("4a7a"),gn=s.n(pn),hn=s("d3c8"),vn=s.n(hn),fn=s("859b"),yn=(s("d355"),s("bf15")),bn=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{attrs:{id:"app"}},[s("router-view")],1)])},Cn=[];s("a7c1");var kn={name:"app"},wn=kn,xn=Object(q["a"])(wn,bn,Cn,!1,null,null,null),Dn=xn.exports;a["a"].config.productionTip=!1,a["a"].use(n["a"]),a["a"].use(yn["a"]),a["a"].use(fs["a"],{name:"VueCustomTooltip",color:"#fff",background:"#000",borderRadius:12,fontWeight:400}),a["a"].component("v-select",gn.a),a["a"].component("v-jstree",vn.a),a["a"].component("datetime",fn["Datetime"]),s("ab8b"),s("3e48");var Tn="localhost"===window.location.hostname;Tn&&(window["ga-diasble-UA-127427549-9"]=!0),a["a"].config.productionTip=!1,new a["a"]({render:function(t){return t(Dn)},router:_n,store:E}).$mount("#app")},5708:function(t,e,s){"use strict";var a=s("5cd4"),n=s.n(a);s.d(e,"default",(function(){return n.a}))},"57fa":function(t,e,s){},"5cd4":function(t,e,s){t.exports={menuTitle:"style_menuTitle_2nIIH","nav-link":"style_nav-link_1ZiW3",active:"style_active_1hl36","nav-tabs":"style_nav-tabs_1uBNu","nav-item":"style_nav-item_1VFlv","v-select":"style_v-select_joc9p","dropdown-menu":"style_dropdown-menu_3D8Vl","selected-tag":"style_selected-tag_1P0Aq",highlight:"style_highlight_2PDQ4","vdatetime-calendar__month__day--selected":"style_vdatetime-calendar__month__day--selected_bFNSq","vdatetime-popup__actions__button":"style_vdatetime-popup__actions__button_3xEa4","vdatetime-popup__header":"style_vdatetime-popup__header_1YMLy","swal-button--confirm":"style_swal-button--confirm_2tHpC",divPlatform:"style_divPlatform_Onev8",divPlatformHigher:"style_divPlatformHigher_3kw8i",divPlatformBtn:"style_divPlatformBtn_37U54",divPlatformBtnTeachersArea:"style_divPlatformBtnTeachersArea_3Pf3_",txtPlatform:"style_txtPlatform_3q8bz",modalContent:"style_modalContent_2eHrr",modalDialog:"style_modalDialog_29eby",modalTitle:"style_modalTitle_Nhgh5",disableCol:"style_disableCol_3cgNb",disableBtn:"style_disableBtn_2WHqT"}},"613c":function(t,e,s){},"648a":function(t,e,s){"use strict";s("4775")},"668b":function(t,e,s){t.exports={menuTitle:"style_menuTitle_1WJQH","nav-link":"style_nav-link_20Rma",active:"style_active_2VkPD","nav-tabs":"style_nav-tabs_i2Qib","nav-item":"style_nav-item_YKDqP","v-select":"style_v-select_2pJwB","dropdown-menu":"style_dropdown-menu_oVKxr","selected-tag":"style_selected-tag_3Ma9d",highlight:"style_highlight_DlL3q","vdatetime-calendar__month__day--selected":"style_vdatetime-calendar__month__day--selected_108Bx","vdatetime-popup__actions__button":"style_vdatetime-popup__actions__button_2JLmu","vdatetime-popup__header":"style_vdatetime-popup__header_1rYLQ","swal-button--confirm":"style_swal-button--confirm_6KIye",divCreateAssignment:"style_divCreateAssignment_hGuaU",divTitle:"style_divTitle_2oKwh",divBtn:"style_divBtn_1vrSp",nextBtn:"style_nextBtn_2OMk0",backBtn:"style_backBtn_2V8zO",btnCreate:"style_btnCreate_33kTv",icon:"style_icon_zN8ko",customStep:"style_customStep_3gXh7",divSteps:"style_divSteps_14wxw",divRequiredFieldsAlert:"style_divRequiredFieldsAlert_1-lyh",fadeIn:"style_fadeIn_X5eIT",divSuccessAlert:"style_divSuccessAlert_UOtvg"}},"6b2b":function(t,e,s){"use strict";var a=s("d117"),n=s.n(a);s.d(e,"default",(function(){return n.a}))},"6f7c":function(t,e,s){"use strict";s("a1fc")},"710f":function(t,e,s){"use strict";var a=s("3205"),n=s.n(a);s.d(e,"default",(function(){return n.a}))},7148:function(t,e,s){"use strict";s("37a9")},"71f8":function(t,e,s){t.exports={menuTitle:"style_menuTitle_3J29s","nav-link":"style_nav-link_Y7d8r",active:"style_active_noKys","nav-tabs":"style_nav-tabs_IsqH_","nav-item":"style_nav-item_k3r3_","v-select":"style_v-select_362i4","dropdown-menu":"style_dropdown-menu_2RmTS","selected-tag":"style_selected-tag_1tFXu",highlight:"style_highlight_oeP4t","vdatetime-calendar__month__day--selected":"style_vdatetime-calendar__month__day--selected_3GAUv","vdatetime-popup__actions__button":"style_vdatetime-popup__actions__button_JuCOF","vdatetime-popup__header":"style_vdatetime-popup__header_1RqsX","swal-button--confirm":"style_swal-button--confirm_XJqNB",columns:"style_columns_vpR8c",myContentsDiv:"style_myContentsDiv_1n7PE",column:"style_column_qhE98",noContent:"style_noContent_2nJiX",editInput:"style_editInput_K_KNi",btnDetails:"style_btnDetails_2cIh2",customThead:"style_customThead_3AxwJ",customTable:"style_customTable_y3laH",customSubmitCount:"style_customSubmitCount_1T7ns","modal-dialog":"style_modal-dialog_3opg0",createAssignmentBtn:"style_createAssignmentBtn_1wqHq",otherButtons:"style_otherButtons_2FcjY",divPagination:"style_divPagination_RxjyK",btnPage:"style_btnPage_a4LGO",coverImg:"style_coverImg_1CzC2",contentTitle:"style_contentTitle_1pAQ_",contentSubTitle:"style_contentSubTitle_1H7Sm",customLink:"style_customLink_gRzpz",divMaterial:"style_divMaterial_1WBUq",contentDesc:"style_contentDesc_qGEub",divDueDate:"style_divDueDate_kb0Kv",txtDueDate:"style_txtDueDate_1GNYX",customBadge:"style_customBadge_1CSP6",customCard:"style_customCard_1dtXq"}},"72e2":function(t,e,s){t.exports={menuTitle:"style_menuTitle_rgh1D","nav-link":"style_nav-link_3LuS-",active:"style_active_23x_O","nav-tabs":"style_nav-tabs_6xSrd","nav-item":"style_nav-item_1jnzP","v-select":"style_v-select_32iWE","dropdown-menu":"style_dropdown-menu_25vDM","selected-tag":"style_selected-tag_JROyx",highlight:"style_highlight_2oqCr","vdatetime-calendar__month__day--selected":"style_vdatetime-calendar__month__day--selected_15sls","vdatetime-popup__actions__button":"style_vdatetime-popup__actions__button_3WG-r","vdatetime-popup__header":"style_vdatetime-popup__header_AEbpU","swal-button--confirm":"style_swal-button--confirm_jfHoE",divPlatform:"style_divPlatform_2Y98v",divPlatformBtn:"style_divPlatformBtn_1-CVS",divPlatformBtnModal:"style_divPlatformBtnModal_KD6tv",title:"style_title_WNYoe",divPlatformBtnHexagonia:"style_divPlatformBtnHexagonia_kf32Q",divPlatformBtnMyEduCams:"style_divPlatformBtnMyEduCams_3Djds",divPlatformBtnAssessment:"style_divPlatformBtnAssessment_2U8G2",divPlatformBtnVlp:"style_divPlatformBtnVlp_a8MgV",divPlatformBtnTeacherResources:"style_divPlatformBtnTeacherResources_jse1k",divPlatformBtnKidzwonder:"style_divPlatformBtnKidzwonder_3ZHhE",divPlatformBtnUesAssessment:"style_divPlatformBtnUesAssessment_2u_zJ",divPlatformBtnKarnevall:"style_divPlatformBtnKarnevall_3De7Y",divPlatformBtnGoogle:"style_divPlatformBtnGoogle_1oWMe",divPlatformBtnAgk:"style_divPlatformBtnAgk_1eTgG",divPlatformBtnReaders:"style_divPlatformBtnReaders_1BW2U",divPlatformBtnRLP:"style_divPlatformBtnRLP_AQIJL",divPlatformBtnRLPYoutube:"style_divPlatformBtnRLPYoutube_1wwP8",divPlatformRLPDesc:"style_divPlatformRLPDesc_IzS_e",divPlatformBtnTeachersResources:"style_divPlatformBtnTeachersResources_3nNDZ",divPlatformTeacherContents:"style_divPlatformTeacherContents_3RBPt",txtPlatform:"style_txtPlatform_pL5E9",disableLink:"style_disableLink_3P2TX",divPlatformBtnDisable:"style_divPlatformBtnDisable_Yu6_8"}},"7df7":function(t,e,s){"use strict";var a=s("e809"),n=s.n(a);s.d(e,"default",(function(){return n.a}))},8228:function(t,e,s){"use strict";s("f8d2")},8237:function(t,e,s){},"83f0":function(t,e,s){t.exports={menuTitle:"style_menuTitle_3qwzD","nav-link":"style_nav-link_m1fNm",active:"style_active_3Y70g","nav-tabs":"style_nav-tabs_2MbQ5","nav-item":"style_nav-item_3_FrD","v-select":"style_v-select_14XZz","dropdown-menu":"style_dropdown-menu_1Tfcz","selected-tag":"style_selected-tag_12uzX",highlight:"style_highlight_11CHS","vdatetime-calendar__month__day--selected":"style_vdatetime-calendar__month__day--selected_3oP1Y","vdatetime-popup__actions__button":"style_vdatetime-popup__actions__button_3KJkg","vdatetime-popup__header":"style_vdatetime-popup__header_UtrDF","swal-button--confirm":"style_swal-button--confirm_221jX",coverImg:"style_coverImg_11wd6",contentTitle:"style_contentTitle_3cgqH",customCard:"style_customCard_18i-l",divExplain:"style_divExplain_39OSi",customCode:"style_customCode_3T-Yi",customBreadCrumb:"style_customBreadCrumb_38svJ","modal-dialog":"style_modal-dialog_2h6Un","modal-body":"style_modal-body_PZkNd",close:"style_close_2DOcK","modal-content":"style_modal-content_38uTA"}},"85a8":function(t,e,s){t.exports={menuTitle:"style_menuTitle_1sSvH","nav-link":"style_nav-link_jhh4A",active:"style_active_1n-1U","nav-tabs":"style_nav-tabs_1YoF3","nav-item":"style_nav-item_3BYiA","v-select":"style_v-select_au7fU","dropdown-menu":"style_dropdown-menu_2sfM6","selected-tag":"style_selected-tag_YLe8o",highlight:"style_highlight_1VYqA","vdatetime-calendar__month__day--selected":"style_vdatetime-calendar__month__day--selected_3UC5i","vdatetime-popup__actions__button":"style_vdatetime-popup__actions__button_2nJCR","vdatetime-popup__header":"style_vdatetime-popup__header_3XrDd","swal-button--confirm":"style_swal-button--confirm_pN__D",columns:"style_columns_2ZSTM",myContentsDiv:"style_myContentsDiv_1WB3y",column:"style_column_2RWqB",noContent:"style_noContent_3OeOA",btnDetails:"style_btnDetails_l2eBA",customThead:"style_customThead_1T2Vo",customTable:"style_customTable_2002y",customSubmitCount:"style_customSubmitCount_JR5Gk",createAssignmentBtn:"style_createAssignmentBtn_2l32A",otherButtons:"style_otherButtons_3bVJ0",divPagination:"style_divPagination_SWiTx",btnPage:"style_btnPage_v2mmr",coverImg:"style_coverImg_qX_ZQ",contentTitle:"style_contentTitle_2WBN1",contentSubTitle:"style_contentSubTitle_2ddmM",customLink:"style_customLink_1KlsA",divMaterial:"style_divMaterial_3SCum",contentDesc:"style_contentDesc_2_N4K",divDueDate:"style_divDueDate_2poFE",txtDueDate:"style_txtDueDate_r2Ajk",customBadge:"style_customBadge_1Oc7A",customCard:"style_customCard_1yzOd"}},"8a85":function(t,e,s){"use strict";s("0884")},9742:function(t,e,s){t.exports={customRow:"style_customRow_2OR4z",customLabel:"style_customLabel_A5Jc8",customTextarea:"style_customTextarea_1I4ZL",column:"style_column_2b4Oe",lessonDiv:"style_lessonDiv_16XIE",divSelectedLessons:"style_divSelectedLessons_33ME7",lessonImg:"style_lessonImg_2sCvJ",lessonTitle:"style_lessonTitle__-dZ2",dropDiv:"style_dropDiv_1zB-J",divSecondStep:"style_divSecondStep_4lQBU",divCollectionsHome:"style_divCollectionsHome_TYhaL",customAlert:"style_customAlert_OUlTF","style-chooser":"style_style-chooser_3wJri",vs__search:"style_vs__search_3YTar","vs__dropdown-toggle":"style_vs__dropdown-toggle_123ox","vs__dropdown-menu":"style_vs__dropdown-menu_Gd59H",vs__clear:"style_vs__clear_1LjZb","vs__open-indicator":"style_vs__open-indicator_1-yui"}},"98b9":function(t,e,s){t.exports={menuTitle:"style_menuTitle_3BrIe","nav-link":"style_nav-link_P7BZO",active:"style_active_vqgUn","nav-tabs":"style_nav-tabs_1JVcS","nav-item":"style_nav-item_3xtFz","v-select":"style_v-select_2P6-W","dropdown-menu":"style_dropdown-menu_3GyIG","selected-tag":"style_selected-tag_2p7nB",highlight:"style_highlight_2r76F","vdatetime-calendar__month__day--selected":"style_vdatetime-calendar__month__day--selected_38gnn","vdatetime-popup__actions__button":"style_vdatetime-popup__actions__button_3NJZW","vdatetime-popup__header":"style_vdatetime-popup__header_3wfmP","swal-button--confirm":"style_swal-button--confirm_3IZ_b",divReport:"style_divReport_12QGw",title:"style_title_2w_YU",btnReport:"style_btnReport_2ZW4i",customTable:"style_customTable_1_x5j"}},9990:function(t,e,s){},a076:function(t,e,s){t.exports={menuTitle:"style_menuTitle_1OYA4","nav-link":"style_nav-link_1_BUx",active:"style_active_2Bop3","nav-tabs":"style_nav-tabs_3duAo","nav-item":"style_nav-item_39z89","v-select":"style_v-select_lqUQO","dropdown-menu":"style_dropdown-menu_3sYmJ","selected-tag":"style_selected-tag_2xnly",highlight:"style_highlight_3Nejb","vdatetime-calendar__month__day--selected":"style_vdatetime-calendar__month__day--selected_2s1FW","vdatetime-popup__actions__button":"style_vdatetime-popup__actions__button_tzZZq","vdatetime-popup__header":"style_vdatetime-popup__header_PLPIQ","swal-button--confirm":"style_swal-button--confirm_362Ef",divCard:"style_divCard_3BjKY",customCard:"style_customCard_3dlmI",coverImg:"style_coverImg_-cv8_",contentTitle:"style_contentTitle_bz-gS",topCard:"style_topCard_wWH5R",bottomCard:"style_bottomCard_1LDGy",customBadge:"style_customBadge_omnLG",customBadgeFirst:"style_customBadgeFirst_3njb8",divState:"style_divState_35266",btnPreview:"style_btnPreview_eeYgQ",heartbeat:"style_heartbeat_2Tfxz"}},a1fc:function(t,e,s){},a755:function(t,e,s){"use strict";s("bc1e")},a7c1:function(t,e,s){},af63:function(t,e,s){"use strict";var a=s("1461"),n=s.n(a);s.d(e,"default",(function(){return n.a}))},b565:function(t,e,s){"use strict";var a=s("83f0"),n=s.n(a);s.d(e,"default",(function(){return n.a}))},baa6:function(t,e,s){"use strict";var a=s("13fb"),n=s.n(a);s.d(e,"default",(function(){return n.a}))},bc1e:function(t,e,s){},c099:function(t,e,s){"use strict";var a=s("3e70"),n=s.n(a);s.d(e,"default",(function(){return n.a}))},c32f:function(t,e,s){"use strict";var a=s("c58b"),n=s.n(a);s.d(e,"default",(function(){return n.a}))},c356:function(t,e,s){"use strict";var a=s("3f57"),n=s.n(a);s.d(e,"default",(function(){return n.a}))},c58b:function(t,e,s){t.exports={customRow:"style_customRow_36IKA"}},c65c:function(t,e,s){"use strict";s("8237")},c7c8:function(t,e,s){"use strict";var a=s("71f8"),n=s.n(a);s.d(e,"default",(function(){return n.a}))},c925:function(t,e,s){},cc8a:function(t,e,s){"use strict";var a=s("ed00"),n=s.n(a);s.d(e,"default",(function(){return n.a}))},cde9:function(t,e,s){"use strict";s("57fa")},cf46:function(t,e,s){"use strict";var a=s("47d2"),n=s.n(a);s.d(e,"default",(function(){return n.a}))},d117:function(t,e,s){t.exports={menuTitle:"style_menuTitle_1mppX","nav-link":"style_nav-link_2Cd66",active:"style_active_DoNqU","nav-tabs":"style_nav-tabs_1qF0Z","nav-item":"style_nav-item_vct43","v-select":"style_v-select_3tuvj","dropdown-menu":"style_dropdown-menu_v_sJh","selected-tag":"style_selected-tag_3FFnT",highlight:"style_highlight_rAhV9","vdatetime-calendar__month__day--selected":"style_vdatetime-calendar__month__day--selected_3OLBq","vdatetime-popup__actions__button":"style_vdatetime-popup__actions__button_3eRQb","vdatetime-popup__header":"style_vdatetime-popup__header_3vlmv","swal-button--confirm":"style_swal-button--confirm_W1s9L",columns:"style_columns_HBCNU",myContentsDiv:"style_myContentsDiv_MegEW",column:"style_column_1fdah",searchIcon:"style_searchIcon_2bcW6",txtSearch:"style_txtSearch_2GenR",noContent:"style_noContent_1UIgJ",divDdl:"style_divDdl_3EBZX",combobox:"style_combobox_A5J0Y",divSearch:"style_divSearch_1MmUB"}},d2a9:function(t,e,s){t.exports={menuTitle:"style_menuTitle_9FAdK","nav-link":"style_nav-link_j_DW0",active:"style_active_1c9Wm","nav-tabs":"style_nav-tabs_1VSxr","nav-item":"style_nav-item_2bccv","v-select":"style_v-select_1bGO5","dropdown-menu":"style_dropdown-menu_2BM41","selected-tag":"style_selected-tag_3SqIS",highlight:"style_highlight_2N9JU","vdatetime-calendar__month__day--selected":"style_vdatetime-calendar__month__day--selected_m0Srd","vdatetime-popup__actions__button":"style_vdatetime-popup__actions__button_aNtsb","vdatetime-popup__header":"style_vdatetime-popup__header_3fhNa","swal-button--confirm":"style_swal-button--confirm_2fXwO",loginform:"style_loginform_3CV2u",divHelpDesk:"style_divHelpDesk_3TeQz",inputs:"style_inputs_3oIeo",loginButton:"style_loginButton_2ZA2z",logo:"style_logo_1Zvyb",icon:"style_icon_MFpr3",inputText:"style_inputText_59TZd",error:"style_error_1wAjt",divLogin:"style_divLogin_-ZDVb",ssoBtn:"style_ssoBtn_1WfV9"}},d7bf:function(t,e,s){"use strict";var a=s("a076"),n=s.n(a);s.d(e,"default",(function(){return n.a}))},d973:function(t,e,s){"use strict";var a=s("98b9"),n=s.n(a);s.d(e,"default",(function(){return n.a}))},dc32:function(t,e,s){"use strict";var a=s("668b"),n=s.n(a);s.d(e,"default",(function(){return n.a}))},dd5f:function(t,e,s){t.exports={menuTitle:"style_menuTitle_1DmCC","nav-link":"style_nav-link_fc7DI",active:"style_active_1-oCd","nav-tabs":"style_nav-tabs_XCjZm","nav-item":"style_nav-item_1ldQ5","v-select":"style_v-select_k_z3S","dropdown-menu":"style_dropdown-menu_2o9bH","selected-tag":"style_selected-tag__meGV",highlight:"style_highlight_78DpH","vdatetime-calendar__month__day--selected":"style_vdatetime-calendar__month__day--selected_3is1F","vdatetime-popup__actions__button":"style_vdatetime-popup__actions__button_2UsXn","vdatetime-popup__header":"style_vdatetime-popup__header_2n9NN","swal-button--confirm":"style_swal-button--confirm_foq-2",profile:"style_profile_3_epm",divProfile:"style_divProfile_Tenco",img:"style_img_xWQ4_",contentTitleDiv:"style_contentTitleDiv_3LB1_",contentTitle:"style_contentTitle_MI2zq",uploadButton:"style_uploadButton_L_At2",fileUpload:"style_fileUpload_2pFA_",customTag:"style_customTag_3YRA0",secondTag:"style_secondTag_1mBtr",secondTagGrade:"style_secondTagGrade_1Bd29"}},e345:function(t,e,s){"use strict";s("613c")},e809:function(t,e,s){t.exports={menuTitle:"style_menuTitle_3JmvT","nav-link":"style_nav-link_1WhDh",active:"style_active_3Gb_X","nav-tabs":"style_nav-tabs_1cGrQ","nav-item":"style_nav-item_2o8Vl","v-select":"style_v-select_3R1-n","dropdown-menu":"style_dropdown-menu_2hBxH","selected-tag":"style_selected-tag_36ZsU",highlight:"style_highlight_3z9QI","vdatetime-calendar__month__day--selected":"style_vdatetime-calendar__month__day--selected_23J5e","vdatetime-popup__actions__button":"style_vdatetime-popup__actions__button_2MZ74","vdatetime-popup__header":"style_vdatetime-popup__header_1Lq48","swal-button--confirm":"style_swal-button--confirm_2Kt_n",myContentsDiv:"style_myContentsDiv_1-egV",columns:"style_columns_sdY8A",noContent:"style_noContent_1bW-q",customCardHeader:"style_customCardHeader_1v8Bs",coverImg:"style_coverImg_2vqN_",contentTitle:"style_contentTitle_2Nsg5",customLink:"style_customLink_2-Y0A",divMaterial:"style_divMaterial_3lpW-",menuTitleHome:"style_menuTitleHome_2FoOH",title:"style_title_5I6T9",divCollectionsHome:"style_divCollectionsHome_3tuox",columnHome:"style_columnHome_q42rF",noContentHome:"style_noContentHome_DnrvB",divLoadingHome:"style_divLoadingHome_VemMt",divDdl:"style_divDdl_3-0MS",combobox:"style_combobox_DW4fU",divSearch:"style_divSearch_Aj7cO"}},ed00:function(t,e,s){t.exports={menuTitle:"style_menuTitle_1kGX6","nav-link":"style_nav-link_1PvR-",active:"style_active_lXiH_","nav-tabs":"style_nav-tabs_1c9zS","nav-item":"style_nav-item_35GE9","v-select":"style_v-select_36rdF","dropdown-menu":"style_dropdown-menu_3LYwY","selected-tag":"style_selected-tag_1ori7",highlight:"style_highlight_1s4F7","vdatetime-calendar__month__day--selected":"style_vdatetime-calendar__month__day--selected_3qttA","vdatetime-popup__actions__button":"style_vdatetime-popup__actions__button_a0JXT","vdatetime-popup__header":"style_vdatetime-popup__header_14vCt","swal-button--confirm":"style_swal-button--confirm_3ktyF",customContainer:"style_customContainer_1OmW8",customJumbotron:"style_customJumbotron_1hkJ8",btnDetails:"style_btnDetails_3_6IQ",customJumbotronViceVersa:"style_customJumbotronViceVersa_2Nj-t",divNames:"style_divNames_ggj-i",customTable:"style_customTable_B9E6Z",divGroupLessonIcon:"style_divGroupLessonIcon_2VT6n",heart:"style_heart_1Qybj",heartbeat:"style_heartbeat_1pZl6",lmsLoading:"style_lmsLoading_2wufo",lessonImg:"style_lessonImg_3mh7W",txtLessonName:"style_txtLessonName_32_VT",hrColumn:"style_hrColumn_3fKbR",dateColumn:"style_dateColumn_3a_MP"}},f121:function(t,e){t.exports={global_key:{tokenName:"access_token"},colors:{primaryColor:"#6f2b8f",secondaryColor:"#d42e12",backgroundColor:"whitesmoke"},apiKey:"M9oa6RN39P4r4E1CQy2h7y2VGhapYKqwxiH0jWIv3N19mjS1"}},f488:function(t,e,s){"use strict";var a=s("4a58"),n=s.n(a);s.d(e,"default",(function(){return n.a}))},f4fc:function(t,e,s){"use strict";var a=s("1867"),n=s.n(a);s.d(e,"default",(function(){return n.a}))},f8d2:function(t,e,s){},fba0:function(t,e,s){"use strict";var a=s("9742"),n=s.n(a);s.d(e,"default",(function(){return n.a}))},fc36:function(t,e,s){"use strict";s("9990")},ffef:function(t,e,s){"use strict";var a=s("c925"),n=s.n(a);s.d(e,"default",(function(){return n.a}))}}); //# sourceMappingURL=app.f7ce2a77.js.map