(function(t){function e(e){for(var a,i,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?D.a.orderBy(s.slice(0,4),["end_date","scorm.scorm_name"],["desc","asc"]):D.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(p["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(r){a.e(r)}finally{a.f()}e=D.a.orderBy(e,["start_date"],["desc"]),t.assignments=e},setLmsIndAssignments:function(t,e){var s,a=Object(p["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(r){a.e(r)}finally{a.f()}e=D.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)})))()}}},O={state:{googleCourses:[],googleCourseWorks:[],googleReady:!1},getters:{courseworks:function(t){var e,s=[],a=new Date,n=a.getUTCMonth()+1,r=a.getUTCDate(),i=a.getUTCFullYear(),o=Object(p["a"])(t.googleCourseWorks);try{for(o.s();!(e=o.n()).done;){var c=e.value;c.dueDate&&c.dueDate.year>=i&&c.dueDate.month>=n&&c.dueDate.day&&c.dueDate.day>=r&&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,r=a.getUTCDate(),i=a.getUTCFullYear(),o=Object(p["a"])(t.googleCourseWorks);try{for(o.s();!(e=o.n()).done;){var c=e.value;c.dueDate&&c.dueDate.year>=i&&c.dueDate.month>=n&&c.dueDate.day&&c.dueDate.day>=r&&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 A=D.a.merge(T,S,$,O),R=A.state,L=A.getters,I=A.mutations,E=A.actions,P=new l["a"].Store({plugins:[Object(x["a"])()],state:R,getters:L,mutations:I,actions:E}),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,w().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,w().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,w().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,w().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=P.state.username,s=P.state.password,t.next=5,w().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,w().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,w().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]])})))()}},N={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,w().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,w().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,w().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,r,i,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(p["a"])(a),e.prev=5,n.s();case 7:if((r=n.n()).done){e.next=25;break}return i=r.value,o={},o.text=i.name,o.value=i.id,o.icon="fa fa-sitemap",o.type="class",o.children=[],o.selected=!1,o.opened=!1,e.next=19,w().get("organization/".concat(i.id,"/students"));case 19:c=e.sent,l=Object(p["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=i.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,w().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]])})))()},createCompassStudent: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,w().post("/user/compass/student",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]])})))()}},M={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,N.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=M,z=s("0f04"),F=s("2877");function U(t){this["$style"]=z["default"].locals||z["default"]}var q=Object(F["a"])(H,_,g,!1,U,null,null),G=q.exports,Y={name:"headerCustom",data:function(){return{wsCode:null,libraryBtn:!0,gradeReady:!1}},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:return s=!1,a=t.userDetails.organization.find((function(t){return"main"===t.type})).id,e.next=4,t.userDetails.organization.filter((function(t){return"grade"===t.type})).forEach((function(e){var s=t.libraryShowClasses.filter((function(t){return t===e.id})).length;s>0&&(t.gradeReady=!0)}));case 4:if(11614!==a&&11558!==a&&!0!==t.gradeReady){e.next=7;break}return t.libraryBtn=!1,e.abrupt("return",0);case 7:if(48710!==a&&66238!==a&&!0!==t.gradeReady){e.next=16;break}return e.next=10,j.getPiriScorms(0,999,"reader");case 10:return n=e.sent,s=n,t.libraryBtn=!!s,e.abrupt("return",s?1:0);case 16:if(!t.collections.data){e.next=20;break}return s=t.collections.data.find((function(t){return 213===t.id})),t.libraryBtn=!!s,e.abrupt("return",s?1:0);case 20:return e.abrupt("return",s);case 21: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(),"localhost"===window.location.hostname?window.location="http://localhost:8080":window.location="https://akkenglish.com"},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:G},mounted:function(){Object(m["a"])("[title]")}},V=Y,J=s("c356");s("6d24");function W(t){this["$style"]=J["default"].locals||J["default"]}var K=Object(F["a"])(V,d,u,!1,W,"6c46225a",null),Z=K.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 rt(t){this["$style"]=nt["default"].locals||nt["default"]}var it=Object(F["a"])(at,Q,X,!1,rt,null,null),ot=it.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?t.activeLmsHomeworks.length>0&&t.timetohomeworks()&&!0===t.lmsLoading?s("div",{staticClass:"row",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",{class:t.$style.customTable},[s("div",{class:t.$style.divMaterialColumn},[s("p",{class:t.$style.noContent},[t._v("There is no Assignment.")])])]):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("vue-custom-tooltip",{attrs:{label:t.scormTitle?t.scormTitle:t.title,position:"is-bottom"}},[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()])])],1),"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(p["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,gt=s("710f");function pt(t){this["$style"]=gt["default"].locals||gt["default"]}var ht=Object(F["a"])(_t,dt,ut,!1,pt,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,wt=s("f4fc");function kt(t){this["$style"]=wt["default"].locals||wt["default"]}var Dt=Object(F["a"])(Ct,ct,lt,!1,kt,null,null),xt=Dt.exports,Tt=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"row",staticStyle:{background:"#fff","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"},[s("div",{staticClass:"row mt-1"}),s("div",{staticClass:"row mt-2"},[Number(this.grade)>=2&&Number(this.grade)<=5||t.findTeacGrade(2,5)?s("div",{staticClass:"col-md-6 mt-1"},[s("a",{attrs:{target:"_blank"},on:{click:function(e){return t.checkHll()}}},[s("div",{class:t.$style.divPlatform},[s("div",{class:[t.$style.divPlatformBtn,t.$style.divPlatformBtnHLL]})])])]):t._e(),Number(this.grade)>=6&&Number(this.grade)<=8||t.findTeacGrade(6,8)?s("div",{staticClass:"col-md-6 mt-1"},[s("a",{attrs:{target:"_blank"},on:{click:function(e){return t.nom()}}},[s("div",{class:t.$style.divPlatform},[s("div",{class:[t.$style.divPlatformBtn,t.$style.divPlatformBtnNewsOMatic]})])])]):t._e(),"103"===t.grade||t.findTeacGrade(103,103)?s("div",{staticClass:"col-md-12 mt-1"},[s("a",{attrs:{href:"https://englishplaybox.net/#/"+t.amkepbdemo1,target:"_blank"}},[s("div",{class:t.$style.divPlatform},[s("div",{class:[t.$style.divPlatformBtnModal,t.$style.divPlatformBtnEnglishPlayBox]}),s("div",{class:t.$style.txtPlatform},[t._v("ENGLISH PLAYBOX LEVEL 1")])])])]):"104"===t.grade||t.findTeacGrade(104,104)?s("div",{staticClass:"col-md-12 mt-1"},[s("a",{attrs:{href:"https://englishplaybox.net/#/"+t.amkepbdemo2,target:"_blank"}},[s("div",{class:t.$style.divPlatform},[s("div",{class:[t.$style.divPlatformBtnModal,t.$style.divPlatformBtnEnglishPlayBox]}),s("div",{class:t.$style.txtPlatform},[t._v("ENGLISH PLAYBOX LEVEL 2")])])])]):"105"===t.grade||t.findTeacGrade(104,105)?s("div",{staticClass:"col-md-12 mt-1"},[s("a",{attrs:{href:"https://englishplaybox.net/#/"+t.amkepbdemo3,target:"_blank"}},[s("div",{class:t.$style.divPlatform},[s("div",{class:[t.$style.divPlatformBtnModal,t.$style.divPlatformBtnEnglishPlayBox]}),s("div",{class:t.$style.txtPlatform},[t._v("ENGLISH PLAYBOX LEVEL 3")])])])]):t._e()])])])},St=[],jt=(s("25f0"),s("3d20")),$t=s.n(jt),Ot=s("3452"),At=s.n(Ot),Rt={name:"platforms",data:function(){return{teacherGrades:[],grade:"",level:"",roleType:"",campusId:null,querystingtext:"",kwquerystingtext:"",hexaquerystingtext:"",zoom:"",checkTime:!0,logCompassSchool:"",logCompassUser:"",logCompassPass:"",ues_digital_code:"",ues_digital_code_check:"",compass_ready:!1,amkepbdemo1:null,amkepbdemo2:null,amkepbdemo3:null}},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}}),mounted:function(){},beforeMount:function(){this.setData(),null!=this.userDetails.uesdigital_code&&(this.ues_digital_code=this.userDetails.uesdigital_code,this.logCompassUser=null!=this.userDetails.compass_username?atob(this.userDetails.compass_username):"",this.logCompassPass=null!=this.userDetails.compass_password?atob(this.userDetails.compass_password):"",this.logCompassSchool=this.userDetails.compass_school)},watch:{userDetails:function(){this.setData()},logCompassUser:function(){}},components:{},methods:Object(c["a"])(Object(c["a"])({},Object(l["b"])(["getUserDetails"])),{},{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,N.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)})))()},doSomethingOnHidden:function(){},setData:function(){var t=this;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(console.log("userDetails",t.userDetails),!t.userDetails){e.next=16;break}for(a in t.level=t.userDetails.organization.find((function(t){return"level"===t.type})).name,s=t.userDetails.organization.filter((function(t){return"grade"===t.type})),s)t.teacherGrades.push(s[a].name.split("-")[0]);return 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.campusId=t.userDetails.organization.find((function(t){return"campus"===t.type})).id,t.roleType=t.userDetails.role_type,t.title=t.userDetails.title,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=15,t.timeStamp();case 15:t.checkTime=e.sent;case 16:t.kwquerystingtext="?username=".concat(btoa("uesnlkw_teacher"),"&password=").concat(btoa("123456")),t.amkepbdemo1="?username=".concat(btoa("epbdemo1"),"&password=").concat(btoa("123456")),t.amkepbdemo2="?username=".concat(btoa("epbdemo2"),"&password=").concat(btoa("123456")),t.amkepbdemo3="?username=".concat(btoa("epbdemo3"),"&password=").concat(btoa("123456"));case 20:case"end":return e.stop()}}),e)})))()},findTeacGrade:function(t,e){var s=this.teacherGrades.filter((function(s){return s>=t&&s<=e}));return s.length>0},showDeutschbesten:function(){return 68129==this.campusId?"teacher"==this.roleType?1==this.findTeacGrade(1,7)||1==this.findTeacGrade(9,11):1==this.grade||2==this.grade||3==this.grade||4==this.grade||5==this.grade||6==this.grade||7==this.grade||9==this.grade||10==this.grade||11==this.grade:68127==this.campusId?"teacher"==this.roleType?1==this.findTeacGrade(4,7):4==this.grade||5==this.grade||6==this.grade||7==this.grade:(68137==this.campusId||68138==this.campusId)&&("teacher"==this.roleType?1==this.findTeacGrade(5,7)||1==this.findTeacGrade(9,10):5==this.grade||6==this.grade||7==this.grade||9==this.grade||10==this.grade)},checkHll:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var s,a,n,r,i,o,c,l;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t.ready=!1,e.next=4,t.userDetails;case 4:if(s=e.sent,a=s.user_id,n=s.first_name,r=s.last_name,i=s.role_type,o=s.organization.find((function(t){return"campus"===t.type})).hll_company_code,"student"!==s.role_type){e.next=15;break}c=encodeURIComponent(s.organization.find((function(t){return"grade"===t.type})).name),window.go_hll(a,a,n,r,c,i,o),e.next=20;break;case 15:if("teacher"!==s.role_type){e.next=20;break}return l=[],e.next=19,s.organization.filter((function(t){return"grade"===t.type})).forEach((function(t){l.push(encodeURIComponent(t.name))}));case 19:window.go_hll(a,a,n,r,l,i,o);case 20:setTimeout((function(){t.ready=!0}),1e3),e.next=28;break;case 23:e.prev=23,e.t0=e["catch"](0),console.log("err",e.t0),$t()("Giriş Yapılamadı!","Bir Hata Oluştu","error"),t.ready=!0;case 28:case"end":return e.stop()}}),e,null,[[0,23]])})))()},nom:function(){window.open("https://app.newsomatic.net/login","_blank")},nomSSO:function(){this.newsomaticUser=null!=this.userDetails.compass_username?atob(this.userDetails.compass_username):"",this.newsomaticPass=null!=this.userDetails.compass_password?atob(this.userDetails.compass_password):"","teacher"===this.roleType?window.open("https://app.newsomatic.net/login","_blank"):""!=this.newsomaticUser?$t.a.fire({title:"News-o-Matic",html:' \n
\x3c!-- Eğer uesDigital kodu girilmişse --\x3e\n \n \n \n \n \n \n \n \n \n \n \n \n
User name'.concat(this.newsomaticUser,'
Password').concat(this.newsomaticPass,"
\n
"),showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Go to News-o-matic"}).then((function(t){t.value&&window.open("https://app.newsomatic.net/login","_blank")})):$t.a.fire({title:"Uyarı!",text:"Kullanıcı bilgileriniz en kısa sürede burada görünecektir...",confirmButtonText:"Kapat"})},RLP:function(){try{this.ready=!1;var t="VswFYGzh2k45N7Q8R9@TBuCVexFY.G2J3K4N6p7Q%9SATB-VdWeXFZHJ3m5N",e={};this.userDetails&&(e.username=this.userDetails.email,e.first_name=this.userDetails.first_name,e.last_name=this.userDetails.last_name,e.role_type=this.userDetails.role_type,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.class=this.userDetails.organization.find((function(t){return"grade"===t.type}))?this.userDetails.organization.find((function(t){return"grade"===t.type})).name.split("-")[0]:0,e.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.user_id=this.userDetails.user_id);var s=JSON.stringify(e),a=decodeURIComponent(s),n=At.a.AES.encrypt(a,t).toString();this.ready=!0,window.open("https://service.ueslms.com/#/rlp/?sso="+btoa(n))}catch(r){console.log("err",r),$t()("Giriş Yapılamadı!","Bir Hata Oluştu","error"),this.ready=!0}}})},Lt=Rt,It=s("231d");s("c822");function Et(t){this["$style"]=It["default"].locals||It["default"]}var Pt=Object(F["a"])(Lt,Tt,St,!1,Et,"c8d7e86e",null),Bt=Pt.exports,Nt=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":"#222222",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)},Mt=[],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=[],Ft={name:"Loading",props:["message"],data:function(){return{}}},Ut=Ft,qt=s("cf46");function Gt(t){this["$style"]=qt["default"].locals||qt["default"]}var Yt=Object(F["a"])(Ut,Ht,zt,!1,Gt,null,null),Vt=Yt.exports,Jt=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()])])},Wt=[],Kt={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(p["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=Kt,Qt=s("147f");function Xt(t){this["$style"]=Qt["default"].locals||Qt["default"]}var te=Object(F["a"])(Zt,Jt,Wt,!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)}}}),re=ne,ie=s("f488");function oe(t){this["$style"]=ie["default"].locals||ie["default"]}var ce=Object(F["a"])(re,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:Vt,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=D.a.uniqBy(this.scorms,"scorm_type").map((function(t){return t.scorm_type})),this.typesOptions="",this.typesOptions+='',D.a.orderBy(this.scormTypes).forEach((function(e){var s="");t.typesOptions+=s})),this.scormLevels=D.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+='',D.a.orderBy(this.scormLevels,"name").forEach((function(e){var s="");t.levelsOptions+=s})),this.scormCategories=D.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+='',D.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=D.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=D.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=D.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 ge=Object(F["a"])(ue,Nt,Mt,!1,_e,null,null),pe=ge.exports,he={name:"home",data:function(){return{ready:!1,info:null,main:null}},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:return t.getUserDetails(),e.next=3,t.userDetails.organization.find((function(t){return"main"===t.type})).id;case 3:if(t.main=e.sent,!(t.$store.state.freeContents.length>0&&t.$store.state.assignments.length>0)){e.next=11;break}t.ready=!0,t.getPackages(),t.getLmsAssignments(),t.getLmsIndAssignments(),e.next=18;break;case 11:return e.next=13,t.getLmsAssignments();case 13:return e.next=15,t.getLmsIndAssignments();case 15:return e.next=17,t.getPackages();case 17:t.ready=!0;case 18:case"end":return e.stop()}}),e)})))()},components:{HeaderCustom:Z,Chart:ot,Homeworks:xt,Platforms:Bt,Collections:pe},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}})},ve=he,fe=s("baa6");function ye(t){this["$style"]=fe["default"].locals||fe["default"]}var be=Object(F["a"])(ve,r,i,!1,ye,null,null),Ce=be.exports,we=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":"70px"}},[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(134, 113, 62, 0.11) !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(134, 113, 62, 0.11) !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)])])])},ke=[],De=s("1940"),xe=s.n(De),Te={name:"login",data:function(){return{username:"",password:"",isChecked:!1,primaryColor:b.a.primaryColor,ready:!0,ipAdress:""}},beforeMount:function(){""!=this.username&&""!=this.password&&this.$router.push("/home"),this.autoLogin()},mounted:function(){localStorage.clear(),this.delete_cookie("access_token")},components:{InnerLoading:Vt},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=16;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:t.$router.push("/home"),e.next=17;break;case 16:xe()("Error!","Username or Password is invalid.","error");case 17:t.ready=!0;case 18:case"end":return e.stop()}}),e)})))()},autoLogin:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var s,a,n,r,i,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===D.a.isEmpty(s)&&(t.ready=!1,n=decodeURIComponent(atob(s.sso)),r="HJx7t2KxTCHYvtzB4w7AQhVRaf7bTm9WWFQpBMiR@j7Gpgw8",i=At.a.AES.decrypt(n,r).toString(At.a.enc.Utf8),a=JSON.parse(i)),!1!==D.a.isEmpty(a)){e.next=36;break}return"teacher"===a.roleType.toLowerCase()?(a.password="Ues1234!",!a.classes&&a.class&&(a.classes=a.class)):(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=20;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:t.$router.push("/home"),e.next=36;break;case 20:return e.next=22,t.$store.dispatch("loginSso",a);case 22:if(d=e.sent,!d.success){e.next=35;break}return t.setFirst(!0),e.next=27,v.a.get("https://api.ipify.org?format=json").catch((function(t){console.log("err",t)}));case 27:return u=e.sent,t.ipAdress=u?u.data.ip:"127.0.0.1",m=navigator.userAgent,e.next=32,B.loginLog(m,t.ipAdress).then((function(){t.$router.push("/home")})).catch((function(t){return console.log("err",t)}));case 32:t.$router.push("/home"),e.next=36;break;case 35:xe()("Error!","Giriş yapamazsınız, okul yönetimi ile iletişime geçiniz.","error");case 36:t.ready=!0;case 37:case"end":return e.stop()}}),e)})))()},delete_cookie:function(t){return Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:document.cookie=t+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;";case 1:case"end":return e.stop()}}),e)})))()}})},Se=Te,je=s("1fc8");s("7148");function $e(t){this["$style"]=je["default"].locals||je["default"]}var Oe=Object(F["a"])(Se,we,ke,!1,$e,null,null),Ae=Oe.exports,Re=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",t._l(t.activeDataSett,(function(e,a,n){return s("div",{key:a,staticStyle:{"margin-top":"10px"}},[s("div",{staticClass:"alert alert-success",staticStyle:{"padding-bottom":"0px"}},[e.length>0?s("div",{staticStyle:{"font-weight":"bold"},attrs:{"data-toggle":"collapse",href:"#collapseExample"+e[0].assignment_id,role:"button","aria-expanded":"true"}},[s("h5",[t._v(" "+t._s(e[0].assignment_name)+" ")]),s("span",{staticStyle:{float:"right",position:"absolute",right:"5px",top:"10px"}},[t._v(" Due Date: "+t._s(t.convertDate(e[0].end_date))+" ")])]):t._e()]),s("div",{staticClass:"row",class:t.$style.columns+" collapse "+(0===n?"show":""),attrs:{id:"collapseExample"+e[0].assignment_id}},t._l(e,(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)})),0)])})),0):s("div",[s("p",{class:t.$style.noContent},[t._v("There is no Assignment.")])])]):s("div",[s("InnerLoading")],1)])])],1)},Le=[],Ie={name:"assignments",data:function(){return{ready:!1,data:[],title:"",contentType:"",searchText:"",activeTab:"",activeDataSet:[],activeDataSett:[],tabData:["current","past"],pagination:null,assignments2:null}},components:{HeaderCustom:Z,Card:vt,Search:le,InnerLoading:Vt},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,r;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]&&(r=n.split("=")[1],e.updateView(r)));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=D.a.orderBy(this.activeDataSet,["start_date","scorm.scorm_name"],["desc","asc"]),this.activeDataSett=D()(this.activeDataSet).groupBy((function(t){return t.assignment_name})).value()):"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"},[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 collapse-row collapsed",attrs:{"data-toggle":"collapse","data-target":"#accordion"+a,"aria-expanded":"true","aria-controls":"#accordion"+a}})])],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",{staticClass:"collapse",attrs:{id:"accordion"+a}},[s("td",{attrs:{colspan:"8"}},[s("div",{staticClass:"flex-wrap"},[t._l(t.collapseOpenClose(e),(function(t,e){return[s("div",{key:e,staticClass:"col-md-3 col-6 mb-3 float-left"},[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)},ze=[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("×")])])}],Fe=s("ade3"),Ue=s("2909"),qe=(s("a434"),s("b64b"),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)])])}),Ge=[],Ye={name:"pagination",props:["data"],data:function(){return{currentPage:this.data.current_page}},methods:{getDataByPagination:function(t){this.currentPage=t,this.$emit("goToPage",t)}}},Ve=Ye,Je=(s("e345"),Object(F["a"])(Ve,qe,Ge,!1,null,"ee423f5e",null)),We=Je.exports,Ke=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()])])},Ze=[],Qe=(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()])])])}),Xe=[],ts={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(p["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)}}},es=ts,ss=s("d7bf");function as(t){this["$style"]=ss["default"].locals||ss["default"]}var ns=Object(F["a"])(es,Qe,Xe,!1,as,null,null),rs=ns.exports,is={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,r,i,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(p["a"])(e.globalLessonsArr);try{for(n.s();!(r=n.n()).done;)i=r.value,e.inArray(i.id,e.historyScorms)?i.isHistory=!0:i.isHistory=!1}catch(g){n.e(g)}finally{n.f()}e.globalLessonsArr.forEach((function(t){t.isSelected=!1})),o=[],c=Object(p["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(g){c.e(g)}finally{c.f()}for(u=function(){var t=_[m],s=D.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,xe()("Assignments","Scorm Added successfully!","success").then((function(){}));case 9:xe()("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)}}()),xe()("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 D.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=D.a.uniq(this.activeDataSet.map((function(t){return t.name}))),this.uniqData=D.a.uniqBy(this.activeDataSet,(function(t){return[t.assignment_name,t.name].join()})),this.uniqData.length>0&&(this.startDateMin=D.a.orderBy(this.uniqData,"start_date")[0].start_date.split(" ")[0],this.startDateMax=D.a.orderBy(this.uniqData,"start_date","desc")[0].start_date.split(" ")[0],this.dueDateMin=D.a.orderBy(this.uniqData,"end_date","desc")[0].end_date.split(" ")[0])},unselectAllSelectedLessons:function(){this.selectedAssignments=[];var t,e=document.getElementsByClassName("check"),s=Object(p["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,r=document.getElementsByClassName("check"),i=Object(p["a"])(r);try{for(i.s();!(s=i.n()).done;){var o,c=s.value;if(c.checked=n,"on"!==c.value&&n)(o=this.selectedAssignments).push.apply(o,Object(Ue["a"])(c.value.split(",")))}}catch(u){i.e(u)}finally{i.f()}n||(this.selectedAssignments=[])}else{var l;if(t.target.checked)(l=this.selectedAssignments).push.apply(l,Object(Ue["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,xe()({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?xe()("Assignments","Removed successfully!","success").then((function(){t.ready=!0,t.selectedAssignments=[],location.reload()})):(t.ready=!0,console.log("Assignment Delete Error",e.data),xe()("","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=D.a.uniqBy(this.activeDataSet,"assignment_name"),this.ready=!0},filterMeth:function(){var t=this;this.uniqData=D.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},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)})))()}}}),ws=Cs,ks=(s("c95d"),s("cc8a"));function Ds(t){this["$style"]=ks["default"].locals||ks["default"]}var xs=Object(F["a"])(ws,ys,bs,!1,Ds,"44e9034b",null),Ts=xs.exports,Ss=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)},js=[],$s=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)}}})])])])},Os=[],As={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}},Rs=As,Ls=s("af63");function Is(t){this["$style"]=Ls["default"].locals||Ls["default"]}var Es=Object(F["a"])(Rs,$s,Os,!1,Is,null,null),Ps=Es.exports,Bs=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)])},Ns=[],Ms={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,r,i,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(p["a"])(e.globalLessonsArr);try{for(n.s();!(r=n.n()).done;)i=r.value,e.inArray(i.id,e.historyScorms)?i.isHistory=!0:i.isHistory=!1}catch(g){n.e(g)}finally{n.f()}e.globalLessonsArr.forEach((function(t){t.isSelected=!1})),o=[],c=Object(p["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(g){c.e(g)}finally{c.f()}for(u=function(){var t=_[m],s=D.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)}},Js=Vs,Ws=s("ffef");function Ks(t){this["$style"]=Ws["default"].locals||Ws["default"]}var Zs=Object(F["a"])(Js,Gs,Ys,!1,Ks,null,null),Qs=Zs.exports,Xs=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)])])},ta=[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"})])])}],ea={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:58: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:58: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"})}},sa=ea,aa=s("c32f");function na(t){this["$style"]=aa["default"].locals||aa["default"]}var ra=Object(F["a"])(sa,Xs,ta,!1,na,null,null),ia=ra.exports,oa={name:"assignmentCreate",data:function(){return{currentstep:1,assignmentData:{},globalSelectedLessons:[]}},components:{HeaderCustom:Z,FirstStep:Ps,SecondStep:qs,ThirdStep:Qs,FourthStep:ia},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}xe()("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?xe()("Assignment","Created Successfully!","success").then((function(){t.$router.push({name:"teacherAssignments"})})):(xe()("","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"},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)])])])})),0),t._m(6)])])])],1)},ga=[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")])])}],pa=(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:[]}},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:Vt,VueCustomTooltip:ms["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=D.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=D.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=D.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=D.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=D.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=D.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=D.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=D.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=D.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,r,i,o,c,l,d,u,m,_,g,h,v,f,y,b,C,w,k,x;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(p["a"])(t.selectedAssignments);try{for(i=function(){var e=r.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(Ue["a"])(s),Object(Ue["a"])(n))},n.s();!(r=n.n()).done;)i()}catch(T){n.e(T)}finally{n.f()}o=[],c=regeneratorRuntime.mark((function e(){var s,n,r;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:r=e.sent,"group"===t.selectedType?r.success&&o.push(r.data):o.push(r.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)},wa=[],ka={name:"lessons",data:function(){return{scormData:[],linkData:[],title:"",ready:!1}},components:{HeaderCustom:Z,Card:rs,Search:le,InnerLoading:Vt},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}})},Da=ka,xa=s("3ae6");function Ta(t){this["$style"]=xa["default"].locals||xa["default"]}var Sa=Object(F["a"])(Da,Ca,wa,!1,Ta,null,null),ja=Sa.exports,$a=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"})])])])},Oa=[],Aa={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,r=t/this.scormWidth>e/this.scormHeight;if(this.isFit){r?(s=e,a=this.scormHeight):(s=t,a=this.scormWidth),this.styleFrame.margin="0";var i=s/a;this.styleFrame.left="".concat((t-n*i)/2,"px"),this.styleFrame.transform="scale(".concat(i,")")}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)}},Ra=Aa,La=(s("648a"),Object(F["a"])(Ra,$a,Oa,!1,null,"1be4e944",null)),Ia=La.exports,Ea=function(){var t=this,e=this,s=e.$createElement,a=e._self._c||s;return a("div",[a("HeaderCustom"),a("div",{staticClass:"container"},[e._m(0),e.parent?[e._m(1),a("div",{staticClass:"row"},e._l(e.resources.filter((function(e){return e.package_parent_id===t.$route.params.id})),(function(t,s){return a("div",{key:s,staticClass:"col-md-4 mt-3"},[a("div",{staticClass:"row",class:e.$style.customCard,attrs:{title:t.package_name},on:{click:function(s){return e.setChild(t.package_id)}}},[a("div",{staticClass:"col-md-6 justify-content-center align-self-center"},[a("img",{class:e.$style.coverImg,staticStyle:{width:"100px"},attrs:{src:t.package_image?t.package_image:"../../../static/img/no-cover.png"}})]),a("div",{staticClass:"col-md-6 justify-content-center align-self-center"},[a("h1",{class:e.$style.contentTitle},[e._v(e._s(t.package_name))])])])])})),0)]:e.parent?e._e():[a("div",{staticClass:"row"},[a("button",{staticClass:"mt-5 ml-4 btn",staticStyle:{"background-color":"white",color:"#222222","box-shadow":"0 4px 8px 0 rgba(0, 0, 0, 0.1) !important"},attrs:{type:"button"},on:{click:function(t){e.parent=!0}}},[a("i",{staticClass:"fa-2x fas fa-arrow-alt-circle-left"})])]),a("div",{staticClass:"row"},e._l(e.childData,(function(t,s){return a("div",{key:s,staticClass:"col-md-4 mt-3"},[a("div",{staticClass:"row",class:e.$style.customCard,attrs:{title:t.link_name},on:{click:function(s){return e.openLink(t)}}},[a("div",{staticClass:"col-md-6 justify-content-center align-self-center"},[a("img",{class:e.$style.coverImg,staticStyle:{width:"100px"},attrs:{src:t.thumbnail_url?t.thumbnail_url:"../../../static/img/no-cover.png"}})]),a("div",{staticClass:"col-md-6 justify-content-center align-self-center"},[a("h1",{class:e.$style.contentTitle},[e._v(e._s(t.link_name))])])])])})),0)]],2)],1)},Pa=[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"row mt-5"},[s("div",{staticClass:"col-3 mt-5"})])},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"row"},[s("button",{staticClass:"mt-5 ml-4 btn",staticStyle:{"background-color":"#ededee",color:"#ededee"},attrs:{type:"button"}},[t._v("s")])])}],Ba={name:"teacherResources",data:function(){return{resources:[],childData:[],parent:!0}},components:{HeaderCustom:Z},computed:{},beforeMount:function(){this.getPackages()},watch:{},methods:{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.$route.params.id||t.$router.go(-1),e.next=3,j.getLink();case 3:s=e.sent,t.resources=s.data.data.filter((function(t){return"link"===t.package_type}));case 5:case"end":return e.stop()}}),e)})))()},openLink:function(t){window.open(t.link_url,"_blank")},setChild:function(t){var e=this.resources.find((function(e){return e.package_id===t}));this.childData=e.package_links,this.parent=!1}}},Na=Ba,Ma=s("b565");function Ha(t){this["$style"]=Ma["default"].locals||Ma["default"]}var za=Object(F["a"])(Na,Ea,Pa,!1,Ha,null,null),Fa=za.exports,Ua=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"},[t.categories.length>0?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":"#222222",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)},qa=[],Ga=(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:[],routerCollectionId:0,historyScorms:[]}},components:{HeaderCustom:Z,Card:vt,Search:le,InnerLoading:Vt,lmsPagination:We},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,r,i;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(p["a"])(t.scormData);try{for(n.s();!(r=n.n()).done;)i=r.value,t.inArray(i.id,t.historyScorms)?i.isHistory=!0:i.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=D.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+='',D.a.orderBy(this.themes,"name").forEach((function(e){var s="");t.themesOptString+=s})),this.categories=D.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+='',D.a.orderBy(this.categories,"name").forEach((function(e){var s="");t.categoriesOptString+=s}))},inArray:function(t,e){for(var s=e.length,a=0;a1)){s.next=18;break}r=e.pagination.current_page;case 10:if(!(r<=e.pagination.last_page)){s.next=18;break}return s.next=13,j.getScorms(a,r);case 13:i=s.sent,i.data.forEach((function(t){e.searchData.push(t)}));case 15:r++,s.next=10;break;case 18:e.fillDropdowns(),setTimeout((function(){e.ready=!0}),1e3);case 20:case"end":return s.stop()}}),s)})))()},goBack:function(){this.$router.push({name:"collections",params:{id:this.routerCollectionId,searchList:"collections"}})}}),watch:{selectedTheme:function(){this.setPackages()},selectedCategory:function(){this.setPackages()},$route:function(){this.setData()}}}),Ya=Ga,Va=s("6b2b");function Ja(t){this["$style"]=Va["default"].locals||Va["default"]}var Wa=Object(F["a"])(Ya,Ua,qa,!1,Ja,null,null),Ka=Wa.exports,Za=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"},[t.categories.length>0?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)},Qa=[],Xa={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,grade:null,libraryShowClasses:[66283],gradeReady:!1}},components:{HeaderCustom:Z,Card:ee,Search:le,InnerLoading:Vt,lmsPagination:We},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.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.title="myEDULIBRARY",t.setData();case 3: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=D.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+='',D.a.orderBy(this.themes,"name").forEach((function(e){var s="");t.themesOptString+=s})),this.categories=D.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+='',D.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,r,i;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return e.ready=!1,parseInt(e.$route.params.id,10),a=e.userDetails.organization.find((function(t){return"main"===t.type})).id,s.next=5,e.userDetails.organization.filter((function(t){return"grade"===t.type})).forEach((function(t){var s=e.libraryShowClasses.filter((function(e){return e===t.id})).length;s>0&&(e.gradeReady=!0)}));case 5:if(48710!==a&&3432!==a&&66238!==a&&!0!==e.gradeReady){s.next=14;break}return s.next=8,j.getPiriScorms(t);case 8:n=s.sent,e.pagination=n.pagination,e.searchData=n.data,e.scormData=n.data,s.next=29;break;case 14:if(3432!==a||6!==e.grade){s.next=23;break}return s.next=17,j.getPiriScorms(t);case 17:r=s.sent,e.pagination=r.pagination,e.searchData=r.data,e.scormData=r.data,s.next=29;break;case 23:return s.next=25,j.getLibraryScorms(0,t,"reader");case 25:i=s.sent,e.pagination=i.pagination,e.searchData=i.data,e.scormData=i.data;case 29:e.fillDropdowns(),setTimeout((function(){e.ready=!0}),1e3);case 31:case"end":return s.stop()}}),s)})))()}}),watch:{selectedTheme:function(){this.setPackages()},selectedCategory:function(){this.setPackages()},$route:function(){this.setData()}}},tn=Xa,en=s("3d64");function sn(t){this["$style"]=en["default"].locals||en["default"]}var an=Object(F["a"])(tn,Za,Qa,!1,sn,null,null),nn=an.exports,rn=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div")},on=[],cn={mounted:function(){this.logout()},methods:{logout:function(){f.cookie.set(b.a.global_key.tokenName,"",0),f.cookie.set(b.a.global_key.mcourserTokenName,"",0),localStorage.clear(),window.location="/"}}},ln=cn,dn=Object(F["a"])(ln,rn,on,!1,null,null,null),un=dn.exports;a["a"].use(n["a"]);var mn=new n["a"]({routes:[{path:"/",name:"login",component:Ae},{path:"/home",name:"home",component:Ce},{path:"/assignments",name:"studentAssignments",component:Me,beforeEnter:function(t,e,s){"teacher"===P.state.roleType&&s({name:"teacherAssignments"}),s()}},{path:"/assignments",name:"teacherAssignments",component:fs},{path:"/teacherResources",name:"teachersResources",component:Fa},{path:"/mycontents",name:"mycontents",component:pe},{path:"/mycontents/:id",name:"lessons",component:ja},{path:"/collections/:id?/:searchList?",name:"collections",component:pe},{path:"/scorms/:id",name:"scorms",component:Ka},{path:"/library/:id?",name:"library",component:nn},{path:"/scorm/:id/:packageType?/:packageId?/:scormCode/:scormTitle/:scormDesc?",name:"scorm",component:Ia,props:!0},{path:"/assignment/details/:id/:community/:userId?",name:"assignmentDetails",component:Ts},{path:"/assignment/create",name:"assignmentCreate",component:ma},{path:"/assignment/report",name:"assignmentRepor",component:ba},{path:"/logout",name:"logoutPage",component:un}]}),_n=mn,gn=n["a"].prototype.push;n["a"].prototype.push=function(t){return gn.call(this,t).catch((function(){}))},mn.afterEach((function(t){"login"!==t.name&&(f.cookie.get("access_token")||mn.push({name:"login"}))}));var pn=s("4a7a"),hn=s.n(pn),vn=s("d3c8"),fn=s.n(vn),yn=s("859b"),bn=(s("d355"),function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{attrs:{id:"app"}},[s("router-view"),s("NlTawk")],1)])}),Cn=[],wn=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{directives:[{name:"show",rawName:"v-show",value:t.nlTawk,expression:"nlTawk"}]},[s("a",{attrs:{href:"https://tawk.to/chat/60754be5067c2605c0c1dcbc/1f3530unq",target:"_blank"}},[s("div",{class:t.$style.divTawk},[s("svg",{staticClass:"tawk-min-chat-icon",class:t.$style.divTawkIcon,attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"#fff",viewBox:"0 0 800 800",height:"100%",width:"50%",role:"img",alt:"Chat icon"}},[s("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M400 26.2c-193.3 0-350 156.7-350 350 0 136.2 77.9 254.3 191.5\n 312.1 15.4 8.1 31.4 15.1 48.1 20.8l-16.5 63.5c-2 7.8 5.4 14.7 13\n 12.1l229.8-77.6c14.6-5.3 28.8-11.6 42.4-18.7C672 630.6 750 512.5 750\n 376.2c0-193.3-156.7-350-350-350zm211.1 510.7c-10.8 26.5-41.9 77.2-121.5\n 77.2-79.9 0-110.9-51-121.6-77.4-2.8-6.8 5-13.4 13.8-11.8 76.2 13.7 147.7 13 215.3.3 8.9-1.8 16.8 4.8 14 11.7z"}})])])])])},kn=[],Dn={data:function(){return{nlTawk:!1}},beforeMount:function(){return Object(o["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})))()},computed:Object(c["a"])({},Object(l["e"])(["userDetails"]))},xn=Dn,Tn=s("4279");function Sn(t){this["$style"]=Tn["default"].locals||Tn["default"]}var jn=Object(F["a"])(xn,wn,kn,!1,Sn,null,null),$n=jn.exports;s("a7c1");var On={name:"app",components:{NlTawk:$n}},An=On,Rn=Object(F["a"])(An,bn,Cn,!1,null,null,null),Ln=Rn.exports;a["a"].config.productionTip=!1,a["a"].use(n["a"]),a["a"].use(ms["a"],{name:"VueCustomTooltip",color:"#fff",background:"#000",borderRadius:12,fontWeight:400}),a["a"].component("v-select",hn.a),a["a"].component("v-jstree",fn.a),a["a"].component("datetime",yn["Datetime"]),s("ab8b"),s("3e48");var In="localhost"===window.location.hostname;In&&(window["ga-diasble-UA-127427549-9"]=!0),a["a"].config.productionTip=!1,new a["a"]({render:function(t){return t(Ln)},router:_n,store:P}).$mount("#app")},"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}))},"6d24":function(t,e,s){"use strict";s("8d0c")},"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",divPlatformBtnMyEduExams:"style_divPlatformBtnMyEduExams_c4LxI",divPlatformBtnAssessment:"style_divPlatformBtnAssessment_2U8G2",divPlatformBtnNewsOMatic:"style_divPlatformBtnNewsOMatic_33Igv",divPlatformBtnHLL:"style_divPlatformBtnHLL_oL01U",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",divPlatformBtnEnglishPlayBox:"style_divPlatformBtnEnglishPlayBox_1Q2qK",divPlatformBtnRLP:"style_divPlatformBtnRLP_AQIJL",divPlatformBtnDeutschbesten:"style_divPlatformBtnDeutschbesten_1SJZp",divPlatformBtnTeachersResources:"style_divPlatformBtnTeachersResources_3nNDZ",divPlatformTeacherContents:"style_divPlatformTeacherContents_3RBPt",divPlatformBtnLogCompass:"style_divPlatformBtnLogCompass_2uGAZ",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}))},"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"}},"8d0c":function(t,e,s){},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"}},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"}},a6e3:function(t,e,s){},a7c1:function(t,e,s){},ad3b: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}))},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"}},c7c8:function(t,e,s){"use strict";var a=s("71f8"),n=s.n(a);s.d(e,"default",(function(){return n.a}))},c822:function(t,e,s){"use strict";s("a6e3")},c877:function(t,e,s){"use strict";s("fde2")},c925:function(t,e,s){},c95d:function(t,e,s){"use strict";s("1508")},cc8a:function(t,e,s){"use strict";var a=s("ed00"),n=s.n(a);s.d(e,"default",(function(){return n.a}))},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")},e3d8:function(t,e,s){"use strict";s("ad3b")},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:"#222222",secondaryColor:"#86713E",backgroundColor:"whitesmoke"},apiKey:"KeJqBkF4Se6g3cSLft96CYhpRIn5ZU5wIFVsYxECySYg461t"}},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}))},fba0:function(t,e,s){"use strict";var a=s("9742"),n=s.n(a);s.d(e,"default",(function(){return n.a}))},fde2:function(t,e,s){},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.a4793f79.js.map