(function(){var t={6700:function(t,e,s){var i={"./af":3906,"./af.js":3906,"./ar":902,"./ar-dz":3853,"./ar-dz.js":3853,"./ar-kw":299,"./ar-kw.js":299,"./ar-ly":6825,"./ar-ly.js":6825,"./ar-ma":6379,"./ar-ma.js":6379,"./ar-sa":7700,"./ar-sa.js":7700,"./ar-tn":2059,"./ar-tn.js":2059,"./ar.js":902,"./az":6043,"./az.js":6043,"./be":7936,"./be.js":7936,"./bg":4078,"./bg.js":4078,"./bm":4014,"./bm.js":4014,"./bn":9554,"./bn-bd":7114,"./bn-bd.js":7114,"./bn.js":9554,"./bo":6529,"./bo.js":6529,"./br":5437,"./br.js":5437,"./bs":9647,"./bs.js":9647,"./ca":9951,"./ca.js":9951,"./cs":6113,"./cs.js":6113,"./cv":7965,"./cv.js":7965,"./cy":5858,"./cy.js":5858,"./da":3515,"./da.js":3515,"./de":2831,"./de-at":6263,"./de-at.js":6263,"./de-ch":1127,"./de-ch.js":1127,"./de.js":2831,"./dv":4510,"./dv.js":4510,"./el":8616,"./el.js":8616,"./en-au":4595,"./en-au.js":4595,"./en-ca":3545,"./en-ca.js":3545,"./en-gb":9609,"./en-gb.js":9609,"./en-ie":3727,"./en-ie.js":3727,"./en-il":3302,"./en-il.js":3302,"./en-in":6305,"./en-in.js":6305,"./en-nz":9128,"./en-nz.js":9128,"./en-sg":4569,"./en-sg.js":4569,"./eo":650,"./eo.js":650,"./es":6358,"./es-do":4214,"./es-do.js":4214,"./es-mx":8639,"./es-mx.js":8639,"./es-us":232,"./es-us.js":232,"./es.js":6358,"./et":7279,"./et.js":7279,"./eu":5515,"./eu.js":5515,"./fa":7981,"./fa.js":7981,"./fi":7090,"./fi.js":7090,"./fil":9208,"./fil.js":9208,"./fo":2799,"./fo.js":2799,"./fr":3463,"./fr-ca":2213,"./fr-ca.js":2213,"./fr-ch":2848,"./fr-ch.js":2848,"./fr.js":3463,"./fy":1468,"./fy.js":1468,"./ga":8163,"./ga.js":8163,"./gd":7078,"./gd.js":7078,"./gl":6312,"./gl.js":6312,"./gom-deva":682,"./gom-deva.js":682,"./gom-latn":9178,"./gom-latn.js":9178,"./gu":5009,"./gu.js":5009,"./he":2795,"./he.js":2795,"./hi":7009,"./hi.js":7009,"./hr":6506,"./hr.js":6506,"./hu":4683,"./hu.js":4683,"./hy-am":3864,"./hy-am.js":3864,"./id":5626,"./id.js":5626,"./is":6649,"./is.js":6649,"./it":151,"./it-ch":5348,"./it-ch.js":5348,"./it.js":151,"./ja":9830,"./ja.js":9830,"./jv":3751,"./jv.js":3751,"./ka":3365,"./ka.js":3365,"./kk":5980,"./kk.js":5980,"./km":9571,"./km.js":9571,"./kn":5880,"./kn.js":5880,"./ko":6809,"./ko.js":6809,"./ku":6773,"./ku.js":6773,"./ky":5505,"./ky.js":5505,"./lb":553,"./lb.js":553,"./lo":1237,"./lo.js":1237,"./lt":1563,"./lt.js":1563,"./lv":1057,"./lv.js":1057,"./me":6495,"./me.js":6495,"./mi":3096,"./mi.js":3096,"./mk":3874,"./mk.js":3874,"./ml":6055,"./ml.js":6055,"./mn":7747,"./mn.js":7747,"./mr":7113,"./mr.js":7113,"./ms":8687,"./ms-my":7948,"./ms-my.js":7948,"./ms.js":8687,"./mt":4532,"./mt.js":4532,"./my":4655,"./my.js":4655,"./nb":6961,"./nb.js":6961,"./ne":2512,"./ne.js":2512,"./nl":8448,"./nl-be":2936,"./nl-be.js":2936,"./nl.js":8448,"./nn":9031,"./nn.js":9031,"./oc-lnc":5174,"./oc-lnc.js":5174,"./pa-in":118,"./pa-in.js":118,"./pl":3448,"./pl.js":3448,"./pt":3518,"./pt-br":2447,"./pt-br.js":2447,"./pt.js":3518,"./ro":817,"./ro.js":817,"./ru":262,"./ru.js":262,"./sd":8990,"./sd.js":8990,"./se":3842,"./se.js":3842,"./si":7711,"./si.js":7711,"./sk":756,"./sk.js":756,"./sl":3772,"./sl.js":3772,"./sq":6187,"./sq.js":6187,"./sr":732,"./sr-cyrl":5713,"./sr-cyrl.js":5713,"./sr.js":732,"./ss":9455,"./ss.js":9455,"./sv":9770,"./sv.js":9770,"./sw":959,"./sw.js":959,"./ta":6459,"./ta.js":6459,"./te":5302,"./te.js":5302,"./tet":7975,"./tet.js":7975,"./tg":1294,"./tg.js":1294,"./th":2385,"./th.js":2385,"./tk":4613,"./tk.js":4613,"./tl-ph":8668,"./tl-ph.js":8668,"./tlh":8190,"./tlh.js":8190,"./tr":4506,"./tr.js":4506,"./tzl":7485,"./tzl.js":7485,"./tzm":9852,"./tzm-latn":2350,"./tzm-latn.js":2350,"./tzm.js":9852,"./ug-cn":730,"./ug-cn.js":730,"./uk":99,"./uk.js":99,"./ur":2100,"./ur.js":2100,"./uz":6002,"./uz-latn":6322,"./uz-latn.js":6322,"./uz.js":6002,"./vi":4207,"./vi.js":4207,"./x-pseudo":4674,"./x-pseudo.js":4674,"./yo":570,"./yo.js":570,"./zh-cn":3644,"./zh-cn.js":3644,"./zh-hk":2591,"./zh-hk.js":2591,"./zh-mo":9503,"./zh-mo.js":9503,"./zh-tw":8080,"./zh-tw.js":8080};function a(t){var e=n(t);return s(e)}function n(t){if(!s.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}a.keys=function(){return Object.keys(i)},a.resolve=n,t.exports=a,a.id=6700},6489:function(t,e,s){"use strict";var i=s(6369),a=function(){var t=this,e=t._self._c;return e("div",[t.isLoged&&"/scormView"!=this.$route.path?e("div",{staticClass:"topbarnav"},[e("app-top-nav-bar")],1):t._e(),e("div",{class:"/scormView"!=this.$route.path&&"/login"!=this.$route.path?"mainDiv":"mainDiv2",style:t.ScrollBarColor},[e("div",{attrs:{id:"main-wrapper log-wrap"}},[t.isLoading?e("app-Loading"):t._e(),e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1),t.isLoged?e("div",[t._m(0),t._m(1)]):t._e()])])},n=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"patter-one-main"},[e("img",{staticClass:"patter-one",attrs:{src:"assets/img/bg/patter-one.png",alt:"Img"}}),e("img",{staticClass:"patter-two",attrs:{src:"assets/img/bg/home-middle.png",alt:"Img"}})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"shapes"},[e("img",{staticClass:"shapes-one",staticStyle:{right:"0rem"},attrs:{src:"assets/img/bg/home-right.png",alt:"Img"}})])}],r=function(){var t=this,e=t._self._c;return e("header",{staticClass:"header header-two"},[e("div",{staticClass:"header-fixed"},[e("nav",{staticClass:"navbar navbar-expand-lg header-nav scroll-sticky add-header-bg"},[e("div",{staticClass:"container"},[e("div",{staticClass:"navbar-header"},[e("a",{attrs:{id:"mobile_btn"},on:{click:t.MobilMenuClicked}},[t._m(0)]),e("a",{staticClass:"navbar-brand logo"},[e("img",{staticClass:"img-fluid",staticStyle:{"max-width":"80%"},attrs:{src:`/assets/img/schoollogo/${this.$store.state.DomainAdi}.png`,alt:"Logo"}})])]),e("div",{staticClass:"main-menu-wrapper"},[e("div",{staticClass:"menu-header"},[e("a",{staticClass:"menu-logo"}),e("a",{staticClass:"menu-close",attrs:{id:"menu_close"},on:{click:t.MobilMenuClicked}},[e("i",{staticClass:"fas fa-times"})])]),e("ul",{staticClass:"main-nav"},[e("li",{staticClass:"has-submenu menu-effect",class:"/home"==this.$route.path?"active":"",attrs:{id:"Menu1"}},[e("a",{attrs:{href:"javascript:void(0);"},on:{click:function(e){return t.AnaMenuClicked(1)}}},[t._v("Home")])]),("teacher"==t.getRol?t.getOkulAyarlar.OgretmenMenu1:t.getOkulAyarlar.OgrenciMenu1)?e("li",{staticClass:"has-submenu menu-effect",class:"/library"==this.$route.path?"active":"",attrs:{id:"Menu2"}},[e("a",{attrs:{href:"javascript:void(0);"},on:{click:function(e){return t.AnaMenuClicked(2)}}},[t._v("Library")])]):t._e(),("teacher"==t.getRol?t.getOkulAyarlar.OgretmenMenu2:t.getOkulAyarlar.OgrenciMenu2)?e("li",{staticClass:"has-submenu menu-effect",class:"/links"==this.$route.path?"active":"",attrs:{id:"Menu3"}},[e("a",{attrs:{href:"javascript:void(0);"},on:{click:function(e){return t.AnaMenuClicked(3)}}},[t._v("Links")])]):t._e(),("teacher"==t.getRol?t.getOkulAyarlar.OgretmenMenu3:t.getOkulAyarlar.OgrenciMenu3)?e("li",{staticClass:"has-submenu menu-effect",class:"/resources"==this.$route.path?"active":"",attrs:{id:"Menu4"}},[e("a",{attrs:{href:"javascript:void(0);"},on:{click:function(e){return t.AnaMenuClicked(4)}}},[t._v("Resources")])]):t._e(),("teacher"==t.getRol?t.getOkulAyarlar.OgretmenMenu4:t.getOkulAyarlar.OgrenciMenu4)?e("li",{staticClass:"has-submenu menu-effect",class:"/assignments"==this.$route.path||"/assignment/create"==this.$route.path?"active":"",attrs:{id:"Menu5"}},[e("a",{attrs:{href:"javascript:void(0);"},on:{click:function(e){return t.AnaMenuClicked(5)}}},[t._v("Assignments")])]):t._e(),"teacher"==t.getRol&&1==t.getOkulAyarlar.OgretmenMenu5?e("li",{staticClass:"has-submenu menu-effect",class:"/assignment/report"==this.$route.path?"active":"",attrs:{id:"Menu6"}},[e("a",{attrs:{href:"javascript:void(0);"},on:{click:function(e){return t.AnaMenuClicked(6)}}},[t._v("Report")])]):t._e(),e("li",{staticClass:"login-link"},[e("a",{attrs:{href:"javascript:void(0);"},on:{click:function(e){return e.preventDefault(),t.Logout()}}},[t._v("Log Out")])])])]),e("ul",{staticClass:"main-nav"},[e("li",{staticClass:"nav-item"},[e("a",{attrs:{href:"javascript:void(0);"},on:{click:function(e){return e.preventDefault(),t.ModalGosterKapat()}}},[t._v(" "+t._s(this.$store.state.users.KullaniciDetaylari?.first_name??"")+" "+t._s(this.$store.state.users.KullaniciDetaylari?.last_name??"")+" "),e("i",{staticClass:"fas fa-chevron-down"})])])])])]),t.Modal?e("div",{staticClass:"modal fade show",staticStyle:{display:"block"},attrs:{id:"withdraw-request","aria-modal":"true",role:"dialog"}},[e("div",{staticClass:"modal-dialog modal-dialog-centered withdraw-modal"},[e("div",{staticClass:"modal-content"},[e("div",{staticClass:"page-wrapper-new p-0"},[e("div",{staticClass:"content",staticStyle:{"min-height":"184.062px"}},[e("div",{staticClass:"modal-header border-0 custom-modal-header"},[t._m(1),e("button",{staticClass:"close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close"},on:{click:function(e){return e.preventDefault(),t.ModalGosterKapat()}}},[e("i",{staticClass:"feather-x"})])]),e("div",{staticClass:"modal-body custom-modal-body"},[e("div",{staticClass:"settings-widget dash-profile",style:t.ProfileStyleObject},[e("div",{staticClass:"settings-menu"},[t._m(2),e("div",{staticClass:"profile-group"},[e("div",{staticClass:"profile-name text-center"},[e("h4",[t._v(t._s(t.getKullaniciDetaylari?.first_name??"")+" "+t._s(t.getKullaniciDetaylari?.last_name??""))]),e("p",[t._v(t._s(t.getRol))]),e("hr"),e("h6",[t._v(t._s(t.getOkulAdi??""))]),e("h6",[t._v(t._s(t.getKampusAdi??""))]),e("h6",[t._v(t._s(t.getSinifSube??""))]),e("a",{staticClass:"add-course btn-primary THMbutton THMbuttonShadow",style:t.Button2StyleObject,attrs:{href:"javascript:void(0);"},on:{click:function(e){return e.preventDefault(),t.Logout()}}},[e("i",{staticClass:"feather-log-out me-1"}),t._v(" Log Out ")])])])])])])])])])])]):t._e(),t.Modal?e("div",{staticClass:"modal-backdrop fade show"}):t._e()])])},o=[function(){var t=this,e=t._self._c;return e("span",{staticClass:"bar-icon"},[e("span"),e("span"),e("span")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"page-title"},[e("h4",[t._v("My Profile")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"profile-bg"},[e("div",{staticClass:"profile-img"},[e("img",{attrs:{src:"assets/img/profile-picture.png",alt:"Img"}})])])}],l=(s(7658),s(3822)),c={data(){return{Modal:!1}},computed:{...(0,l.Se)(["getOkulAyarlar","getRol","getKullaniciDetaylari","getOkulAdi","getKampusAdi","getSinifSube","ProfileStyleObject","Button2StyleObject"])},methods:{logout(){this.$store.dispatch("logout")},ModalGosterKapat(){this.Modal=!this.Modal},Logout(){this.Modal=!this.Modal,this.$store.dispatch("logout")},MobilMenuClicked(){const t=document.querySelector("#mainTag");"ligth"==t.className?t.className="ligth menu-opened":t.className="ligth"},AnaMenuClicked(t){const e=document.querySelectorAll(".has-submenu");e.forEach((t=>{t.classList.remove("active")}));const s=document.querySelector("#Menu"+t);s.classList.add("active"),2==t&&"/library"!=this.$route.fullPath&&this.$router.push({path:"/library"}),3==t&&"/links"!=this.$route.fullPath&&this.$router.push({path:"/links"}),4==t&&"/resources"!=this.$route.fullPath&&this.$router.push({path:"/resources"}),5==t&&"/assignments"!=this.$route.fullPath&&this.$router.push({path:"/assignments"}),6==t&&"/assignment/report"!=this.$route.fullPath&&this.$router.push({path:"/assignment/report"}),1!=t||"/home"==this.$route.fullPath&&"/"==this.$route.fullPath||this.$router.push({path:"/home"})}}},m=c,d=s(1001),u=(0,d.Z)(m,r,o,!1,null,"0ad05b5e",null),h=u.exports,g=function(){var t=this;t._self._c;return t._m(0)},p=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"loader-wrapper"},[e("div",{staticClass:"loader"},[e("span",{staticStyle:{color:"#555454"}},[t._v("Please wait...")])])])}],y={name:"Loading"},f=y,S=(0,d.Z)(f,g,p,!1,null,"1b065329",null),v=S.exports,_=s(8082),C=s.n(_);s(7561),s(3440),s(5352),s(9772),s(8910),s(6613),s(7454);const b={KullaniciDetaylari:null},A={getKullaniciDetaylari(){return b.KullaniciDetaylari},getSinifSube(){if("student"==b.KullaniciDetaylari.role_type)return b.KullaniciDetaylari.organization.find((t=>"grade"===t.type))?b.KullaniciDetaylari.organization.find((t=>"grade"===t.type)).name:0;{const t=b.KullaniciDetaylari.organization.filter((t=>"grade"===t.type));let e=[];for(let i in t)e.push(t[i].name);let s=e.toString().replaceAll(","," / ");return s}},getSinifId(){return b.KullaniciDetaylari.organization.find((t=>"grade"===t.type))?b.KullaniciDetaylari.organization.find((t=>"grade"===t.type)).id:0},getSinifSeviye(){return(b.KullaniciDetaylari.organization.find((t=>"grade"===t.type))?b.KullaniciDetaylari.organization.find((t=>"grade"===t.type)).name:0).split("-")[0]},getKampusTipi(){return b.KullaniciDetaylari.organization.find((t=>"campus"===t.type)).school_type},getKampusAdi(){return b.KullaniciDetaylari.organization.find((t=>"campus"===t.type)).name},getKampusId(){return b.KullaniciDetaylari.organization.find((t=>"campus"===t.type)).id},getOkulId(){return b.KullaniciDetaylari.organization.find((t=>"main"===t.type)).id},getOkulAdi(){return b.KullaniciDetaylari.organization.find((t=>"main"===t.type)).name},getRol(){return b.KullaniciDetaylari?.role_type},getOgretmenSinifSeviyeleri(){let t=[];const e=b.KullaniciDetaylari.organization.filter((t=>"grade"===t.type));for(let s in e)t.push(e[s].name.split("-")[0]);return[...new Set(t)]},getOgretmenSinifSubeIdleri(){let t=[];const e=b.KullaniciDetaylari.organization.filter((t=>"grade"===t.type));for(let s in e)t.push(e[s].id);return[...new Set(t)]}},D={setKullaniciDetaylari(t,e){t.KullaniciDetaylari=e},setStorageKullaniciDetaylari(t){"localhost:8080"==location.host?localStorage.setItem("LMSKullaniciDetaylari",JSON.stringify(t).toString()):localStorage.setItem("LMSData1",C().AES.encrypt(JSON.stringify(t).toString(),this.state.Passphrase).toString())},clearKullaniciDetaylari(t){t.KullaniciDetaylari=null}},k={};var w={state:b,getters:A,mutations:D,actions:k};function x(t){const e=parseInt(t.slice(1),16),s=e>>16&255,i=e>>8&255,a=255&e;return[s,i,a]}function O(t,e,s){return"#"+((1<<24)+(t<<16)+(e<<8)+s).toString(16).slice(1).toUpperCase()}function T(t){const[e,s,i]=x(t),a=(.299*e+.587*s+.114*i)/255;return a>.5?"#000000":"#FFFFFF"}function j(t,e){const[s,i,a]=x(t),n=[];for(let r=0;r<=e;r++){const t=r/e,o=Math.round(s+t*(255-s)),l=Math.round(i+t*(255-i)),c=Math.round(a+t*(255-a));n.push(O(o,l,c))}return n}const I={Button1StyleObject(){const t=rs.state.OkulAyarlar?.Button1Color??"#CC0000",e=rs.state.OkulAyarlar?.Button1TextColor??"#FFFFFF";return{"--color":t,"--color-hover":j(t,5)[1],color:e}},Button2StyleObject(){const t=rs.state.OkulAyarlar?.Button2Color??"#010a17",e=rs.state.OkulAyarlar?.Button2TextColor??"#FFFFFF";return{"--color":t,"--color-hover":j(t,5)[1],color:e}},TableStyleObject(){const t=rs.state.OkulAyarlar?.BackgroundColor??"#CC0000";return{"--color":j(t,5)[3]+"52","--color-hover":j(t,5)[3]+"22"}},Text1StyleObject(){const t=rs.state.OkulAyarlar?.BackgroundColor??"#000000";return{color:j(t,5)[0]}},InputStyleObject(){return{"--border-color":rs.state.RenkTonlari[4]?.color??"#dc3545","--focus-color":rs.state.RenkTonlari[2]?.color??"#dc3545"}},NextButtonStyleObject(){const t="#1d9cfd",e="#FFFFFF";return{"--color":t,"--color-hover":j(t,5)[1],color:e}},BackButtonStyleObject(){const t="#ff4667",e="#FFFFFF";return{"--color":t,"--color-hover":j(t,5)[1],color:e}},SaveButtonStyleObject(){const t="#159f46",e="#FFFFFF";return{"--color":t,"--color-hover":j(t,5)[1],color:e}},CardStyleObject(){const t=rs.state.OkulAyarlar?.BackgroundColor??"#000000",e=rs.state.RenkTonlari[4]?.color??"#413655";return{"--box-shadow-color":e,"--background":j(t,5)[1],"--color":j(t,5)[0],"--color-h3":j(t,5)[5],"--in-class-bgcolor":j(t,5)[3],"--icbox-shadow-color":j(t,5)[3]}},ProfileStyleObject(){const t=rs.state.OkulAyarlar?.BackgroundColor??"#000000";return{"--background":j(t,5)[1]}},VSelectStyleObject(){return{"--vs-colors--lightest":rs.state.RenkTonlari[4]?.color??"#dc3545","--focus-color":rs.state.RenkTonlari[2]?.color??"#dc3545"}},CourseHoverStyleObject(){const t=rs.state.OkulAyarlar?.BackgroundColor??"#CC0000",e=rs.state.OkulAyarlar?.Button1TextColor??"#FFFFFF";return{"--ovelay-bg":j(t,5)[0]+"62","--ovelay-btn":"#00000030","--txt-color":e}},ScrollBarColor(){const t=rs.state.OkulAyarlar?.BackgroundColor??"#CC0000";return{"--background-color":j(t,5)[3]}}};var L={getters:I},M=s(6265),G=s.n(M),$=s(2631),R=function(){var t=this,e=t._self._c;return e("div",{staticClass:"main-wrapper log-wrap"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-7 login-bg",style:{"background-color":this.$store.state.RenkTonlari[0]?.color??"#fff"}},[e("div",{staticClass:"welcome-login",staticStyle:{"margin-left":"auto","margin-right":"auto"}},[t._m(0),e("div",{staticClass:"mentor-course text-center"},[e("h2",{style:{color:t.ZeminRengiIcinYazi(this.$store.state.RenkTonlari[4]?.color??"#fff")}},[t._v("Welcome to "),e("br"),t._v("UESLMS")]),e("p",{style:{color:t.ZeminRengiIcinYazi(this.$store.state.RenkTonlari[4]?.color??"#fff")}},[t._v("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.")])])])]),e("div",{staticClass:"col-md-5 login-wrap-bg"},[e("div",{staticClass:"login-wrapper",staticStyle:{"background-color":"#fff"},style:{"justify-content":1==t.getOkulAyarlar.GoogleLogIn?"space-around":""}},[e("div",{staticClass:"loginbox"},[e("div",{staticClass:"w-100"},[0==t.getOkulAyarlar.GoogleLogIn?e("div",{staticClass:"img-logo"},[e("img",{staticClass:"img-fluid",attrs:{src:`/assets/img/schoollogo/${this.$store.state.DomainAdi}.png`,alt:"Logo"}}),e("h1",{staticStyle:{"margin-left":"15px","padding-top":"24px"}},[t._v("Log into Your Account")])]):t._e(),1==t.getOkulAyarlar.GoogleLogIn?e("div",[e("div",{staticClass:"img-logo",staticStyle:{"justify-content":"center"}},[e("img",{staticClass:"img-fluid",attrs:{src:`/assets/img/schoollogo/${this.$store.state.DomainAdi}.png`,alt:"Logo"}}),e("h1",{staticStyle:{"margin-left":"15px","padding-top":"24px","text-align":"center"}},[t._v("Log into Your Account")]),e("img",{staticClass:"img-fluid",attrs:{src:"assets/img/google.png",alt:"Logo"}})]),e("div",{staticClass:"d-grid"},[e("button",{staticClass:"btn btn-primary btn-start THMbutton",style:t.Button1StyleObject,attrs:{type:"submit"}},[t._v("Sign In with Google")])])]):e("div",[e("div",{staticClass:"input-block"},[e("label",{staticClass:"form-control-label"},[t._v("User Name")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.KullaniciAdi,expression:"KullaniciAdi"}],staticClass:"form-control THMinput",style:t.InputStyleObject,attrs:{type:"text",placeholder:"Enter your user name"},domProps:{value:t.KullaniciAdi},on:{input:function(e){e.target.composing||(t.KullaniciAdi=e.target.value)}}})]),e("div",{staticClass:"input-block"},[e("label",{staticClass:"form-control-label"},[t._v("Password")]),e("div",{staticClass:"pass-group"},["checkbox"===t.SifreTipi?e("input",{directives:[{name:"model",rawName:"v-model",value:t.Sifre,expression:"Sifre"}],staticClass:"form-control pass-input THMinput",style:t.InputStyleObject,attrs:{placeholder:"Enter your password",type:"checkbox"},domProps:{checked:Array.isArray(t.Sifre)?t._i(t.Sifre,null)>-1:t.Sifre},on:{change:function(e){var s=t.Sifre,i=e.target,a=!!i.checked;if(Array.isArray(s)){var n=null,r=t._i(s,n);i.checked?r<0&&(t.Sifre=s.concat([n])):r>-1&&(t.Sifre=s.slice(0,r).concat(s.slice(r+1)))}else t.Sifre=a}}}):"radio"===t.SifreTipi?e("input",{directives:[{name:"model",rawName:"v-model",value:t.Sifre,expression:"Sifre"}],staticClass:"form-control pass-input THMinput",style:t.InputStyleObject,attrs:{placeholder:"Enter your password",type:"radio"},domProps:{checked:t._q(t.Sifre,null)},on:{change:function(e){t.Sifre=null}}}):e("input",{directives:[{name:"model",rawName:"v-model",value:t.Sifre,expression:"Sifre"}],staticClass:"form-control pass-input THMinput",style:t.InputStyleObject,attrs:{placeholder:"Enter your password",type:t.SifreTipi},domProps:{value:t.Sifre},on:{input:function(e){e.target.composing||(t.Sifre=e.target.value)}}}),e("span",{staticClass:"toggle-password",class:t.SifreIcon,on:{click:function(e){return t.SifreGoster()}}})])]),e("div",{staticClass:"d-grid"},[e("button",{staticClass:"btn btn-primary btn-start THMbutton",style:t.Button1StyleObject,attrs:{type:"submit"},on:{click:function(e){return t.Login()}}},[t._v("Log In")])])])])])])])])])},K=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"login-banner"},[e("img",{staticClass:"img-fluid",attrs:{src:"/assets/img/login-img.png",alt:"Logo"}})])}];const H=G().create();H.defaults.timeout=3e5,H.interceptors.request.use((t=>{const e=rs.state.token;return t.baseURL="https://www.ueslms.com/api/v2",t.headers.Authorization=`Bearer ${e}`,t})),H.interceptors.response.use((t=>t),(t=>t));var Y=()=>H,E={async getPackages(){try{return await ns.UesLmsTokenYenile(),{success:!0,data:[]}}catch(t){return{success:!1,data:t.message}}},async AssignmentsGetir(t){try{await ns.UesLmsTokenYenile();let e=null;return e=t?await Y().post("/assignments",{platform_id:rs.state.OkulAyarlar.PlatformId,assignment_ids:null,paginate:999999,type:"individual"}):await Y().post("/assignments",{platform_id:rs.state.OkulAyarlar.PlatformId,assignment_ids:null,paginate:999999}),{success:!0,data:e.data}}catch(e){return{success:!1,data:e.message}}},async AssignmentSkorGetir(t){try{await ns.UesLmsTokenYenile();const e=await Y().post(`/assignment/${t}`);return{success:!0,data:e.data.data}}catch(e){return{success:!1,data:e.message}}},async loadState(t){try{const e=await Y().post("/state/load",t);return e.data}catch(e){return{success:!1,data:e.message}}},async saveStateScore(t){try{const e=await Y().post("/state/save",t);return e.data}catch(e){return{success:!1,data:e.message}}},async getCollections(){try{await ns.UesLmsTokenYenile();const t=await Y().post("/collections");return t.response&&200!==t.response.status?(console.log("Collection Error",t.response.data.error),t.data=[]):rs.commit("setResources",t.data.data),{success:!0,data:t.data}}catch(t){return{success:!1,data:t.message}}},async getScorms(t,e){try{let s;return await ns.UesLmsTokenYenile(),"reader"===e?s=await Y(!0).post("/scorms",{type:"reader",paginate:9999}):e?"IAR"==e&&(console.log({collection_id:t,paginate:9999}),s=await Y(!0).post("/scorms",{collection_id:t,paginate:9999})):s=await Y(!0).post("/scorms",{collection_id:t}),s.data}catch(s){return{success:!1,data:s.message}}},async AssignmentOlustur(t){try{await ns.UesLmsTokenYenile();const e=await Y().post("/assignment/create",t);return!1===e.data.success?{success:!1,data:e.data.message}:{success:!0}}catch(e){return{success:!1,data:e.message}}},async AssignmentSil(t){try{await ns.UesLmsTokenYenile();let e=!1,s="";for(const i of t){const t=await Y().post(`/assignment/${i}/deleteassignment`);if(!0!==t.data.data.success){e=!1,s=t.data.message;break}e=!0}return!1===e?{success:!1,data:s}:{success:!0}}catch(e){return{success:!1,data:e.message}}},async AssignmentUpdate(t,e){await ns.UesLmsTokenYenile();try{const s=await Y().post(`/assignment/${t}/update`,e);return s}catch(s){return{success:!1,data:s.message}}},async OgretmenOgrencileriGetir(t){const e=[],s=t.filter((t=>"grade"===t.type));for(const i of s){const t={};t.text=i.name,t.value=i.id,t.icon="fa fa-sitemap",t.type="class",t.children=[],t.selected=!1,t.opened=!1;const s=await Y().get(`organization/${i.id}/students`);for(const e of s.data){const s={};s.text=e.student_name,s.icon="fa fa-user",s.value=e.user_id,s.type="student",s.selected=!1,s.parentValue=i.id,t.children.push(s)}e.push(t)}rs.commit("setOgretmenOgrencileri",e)},async editAssignment(t,e){try{const s=await Y().post(`/assignment/${t}/update`,{assignment_name:e.assignment_name,assignment_end_date:e.assignment_end_date});return s}catch(s){return{success:!1,data:s.message}}},async editAssignmentDate(t,e){try{const s=await Y().post(`/assignment/${t}/update`,{assignment_end_date:e.assignment_end_date});return s}catch(s){return{success:!1,data:s.message}}},async addScorms(t,e){try{const s=await Y().post(`/assignment/${t}/addScorm`,{scorms_ids:e});return s}catch(s){return{success:!1,data:s.message}}}},z={name:"login",data(){return{color:"#012866",THMBackgroundColor:null,KullaniciAdi:"",Sifre:"",Giris:!1,SifreTipi:"password",SifreIcon:"feather-eye",reg:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,24}))$/}},async beforeMount(){await this.OkulAyarlar()},computed:{...(0,l.Se)(["getOkulAyarlar","Button1StyleObject","InputStyleObject"])},methods:{RenkTonlariOlustur(t){this.$store.state.RenkTonlari=j(t,this.$store.state.RenkTonlama).map((t=>{const e=T(t);return{color:t,textColor:e}}))},ZeminRengiIcinYazi(t){return T(t)},async OkulAyarlar(){this.$store.state.DomainAdi=window.location.hostname;const t={DomainAdi:window.location.hostname};try{this.$store.commit("setLoading",!0);const e=await ns.OkulAyarlar(t);this.$store.commit("setOkulAyarlar",e),this.$store.commit("setStorageOkulAyarlar",e),this.RenkTonlariOlustur(this.$store.state.OkulAyarlar.BackgroundColor),this.$store.commit("setLoading",!1)}catch(e){return this.$store.commit("setLoading",!1),void this.$toast.open({message:"Okul Tema bilgileri bulunamadı.",type:"error",duration:3e3,dismissible:!0,position:"top"})}},SifreGoster(){"text"===this.SifreTipi?(this.SifreTipi="password",this.SifreIcon="feather-eye"):(this.SifreTipi="text",this.SifreIcon="feather-eye-off")},async Login(){this.Giris=!0;const t={email:this.KullaniciAdi,password:this.Sifre,api_key:this.$store.state.OkulAyarlar.ApiKey};try{this.$store.commit("setLoading",!0);const e=await ns.UesLmsTokenAl(t);0==e.success?(this.$store.commit("setLoading",!1),this.$toast.open({message:e.data,type:"error",duration:3e3,dismissible:!0,position:"top"})):(this.KullaniciBilgiAl(this.KullaniciAdi,this.Sifre),this.$store.commit("setLoading",!1))}catch(e){return this.$store.commit("setLoading",!1),void this.$toast.open({message:e.message,type:"error",duration:3e3,dismissible:!0,position:"top"})}},async KullaniciBilgiAl(){try{this.$store.commit("setLoading",!0);const t=await ns.KullaniciBilgiAl(this.KullaniciAdi,this.Sifre);this.$store.commit("setLoading",!1),0==t.success?this.$toast.open({message:t.data,type:"error",duration:3e3,dismissible:!0,position:"top"}):(this.$store.commit("setLoading",!1),this.$router.push({path:"/home"}),"teacher"==this.$store.state.KullaniciDetaylari.role_type&&E.OgretmenOgrencileriGetir(this.$store.state.KullaniciDetaylari.organization)),this.$store.commit("setLoading",!1)}catch(t){return this.$store.commit("setLoading",!1),void this.$toast.open({message:t.message,type:"error",duration:3e3,dismissible:!0,position:"top"})}}}},B=z,P=(0,d.Z)(B,R,K,!1,null,"cb06c084",null),F=P.exports,N=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"main-wrapper"},["student"==t.getRol?e("AssignmentList",{attrs:{Gosterim:"Gosterim"}}):t._e(),"teacher"==t.getRol?e("IAR"):t._e(),e("LearningTools"),e("Links",{attrs:{Konum:1}})],1)])},V=[],U=function(){var t=this,e=t._self._c;return e("div",[t.Hazir?t._e():e("section",{staticClass:"home-two-slide d-flex align-items-center",staticStyle:{"margin-top":"131px","justify-content":"center"}},[t._m(0)]),e("section",{staticClass:"topcategory-sec"},[e("div",{staticClass:"container"},["student"==t.getRol?e("div",{staticClass:"header-two-title text-center",attrs:{"data-aos":"fade-up"}},[e("p",{staticClass:"tagline",staticStyle:{"margin-bottom":"-1rem"},style:t.Text1StyleObject},[t._v("Online Learning Tools")]),e("div",{staticClass:"header-two-text"})]):t._e(),e("div",{staticClass:"top-category-group"},[e("div",{staticClass:"row",staticStyle:{"justify-content":"center"}},[t.Hazir?t._e():e("span",{staticClass:"loader"}),"student"==t.getRol&&t.Hazir&&t.OgrenimAraclari.length>0?t._l(t.OgrenimAraclari,(function(s){return e("div",{key:"l-"+s.UrunId,staticClass:"col-xl-3 col-lg-4 col-md-4 col-sm-6 d-flex",attrs:{"data-aos":"fade-down"}},[e("div",{staticClass:"categories-item flex-fill",style:t.CardStyleObject},[e("div",{staticStyle:{height:"100px"}},[e("div",{staticClass:"categories-icon",staticStyle:{"text-align":"center"}},[e("img",{staticClass:"img-fluid",attrs:{src:`/assets/img/learningtools/${s.UrunGorselAdi}`}})])]),e("div",{staticClass:"categories-content",style:t.CardStyleObject},[e("h3",{staticStyle:{"text-align":"center","font-size":"16px!important"},style:t.CardStyleObject},[t._v(t._s(s.UrunAdi))])])])])})):t._e(),"teacher"==t.getRol&&t.Hazir&&t.DemoHesaplar.length>0?[e("div",{staticClass:"header-two-title text-center",attrs:{"data-aos":"fade-up"}},[e("p",{staticClass:"tagline",staticStyle:{"margin-bottom":"-1rem"},style:t.Text1StyleObject},[t._v("In-Class Tools")]),e("div",{staticClass:"header-two-text"})]),t._l(t.DemoHesaplar,(function(s){return e("div",{key:"d-"+s.UrunId,staticClass:"col-xl-3 col-lg-4 col-md-4 col-sm-6 d-flex",attrs:{"data-aos":"fade-down"}},[e("div",{staticClass:"categories-item in-class flex-fill",style:t.CardStyleObject},[e("div",{staticStyle:{height:"100px"}},[e("div",{staticClass:"categories-icon",staticStyle:{"text-align":"center"}},[e("img",{staticClass:"img-fluid",attrs:{src:`/assets/img/learningtools/${s.UrunGorselAdi}`}})])]),e("div",{staticClass:"categories-content",style:t.CardStyleObject},[e("h3",{staticStyle:{"text-align":"center","font-size":"16px!important"},style:t.CardStyleObject},[t._v("In-Class")]),e("h3",{staticStyle:{"text-align":"center","font-size":"16px!important"},style:t.CardStyleObject},[t._v(t._s(s.UrunAdi))])])])])}))]:t._e()],2)])])])])},Z=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("span",{staticClass:"loader"})])}],J={name:"learningTools",data(){return{Hazir:!1,OgrenimAraclari:[],DemoHesaplar:[]}},beforeMount(){this.IlkYukleme()},computed:{...(0,l.Se)(["getKullaniciDetaylari","getSinifSeviye","getSinifSeviye","getKampusTipi","getKampusAdi","getKampusId","getOkulId","getOkulAdi","getRol","getOgretmenSinifSeviyeleri","getOgretmenSinifSubeIdleri","CardStyleObject","Text1StyleObject"])},methods:{async IlkYukleme(){this.getKullaniciDetaylari&&await this.OgrenimAraclariGetir()},async OgrenimAraclariGetir(){let t=null;try{let e,s;"teacher"==this.Rol?(this.getOgretmenSinifSubeIdleri.length>0&&(e=this.getOgretmenSinifSubeIdleri.map((t=>({SinifId:t})))),this.getOgretmenSinifSeviyeleri.length>0&&(s=this.getOgretmenSinifSeviyeleri.map((t=>({SinifSeviye:t}))))):(e=[{SinifId:this.getSinifId}],s=[{SinifSeviye:this.getSinifSeviye}]);const i={OkulId:this.getOkulId,KampusId:this.getKampusId,SinifSeviye:s,SinifId:e},a={OkulId:this.getOkulId,SinifSeviye:s};t=1,this.$store.commit("setLoading",!0);const n=await ns.OgrenimAraclariGetir(i);this.OgrenimAraclari=n,t=2;const r=await ns.DemoHesaplariGetir(a);this.DemoHesaplar=r,this.$store.commit("setLoading",!1),this.Hazir=!0}catch(e){return this.Hazir=!0,this.$store.commit("setLoading",!1),void this.$toast.open({message:1==t?"Lerarning Tools Araçları hatası!":"InClass Araçları hatası!",type:"error",duration:3e3,dismissible:!0,position:"top"})}},activated(){},created(){}}},q=J,W=(0,d.Z)(q,U,Z,!1,null,"b7ed1af2",null),Q=W.exports,X=function(){var t=this,e=t._self._c;return 1==("teacher"==this.getRol?this.getOkulAyarlar.OgretmenMenu4:this.getOkulAyarlar.OgrenciMenu4)?e("div",[t.Gosterim&&t.InnerLoading?e("section",{staticClass:"home-two-slide d-flex align-items-center",staticStyle:{"margin-top":"131px","justify-content":"center"}},[t._m(0)]):t._e(),t.Hazir&&t.Assignments.length>0?e("section",{staticClass:"home-two-slide d-flex align-items-center"},[e("div",{staticClass:"container"},[t.Gosterim&&t.KayitSayisi>0||!t.Gosterim&&t.Hazir&&t.Assignments.length>0?e("div",{staticClass:"row"},[e("div",{staticClass:"col-lg-12 col-12",attrs:{"data-aos":"fade-up"}},[e("div",{staticClass:"home-slide-face"},[e("div",{staticClass:"container"},[e("div",{staticClass:"header-two-title text-center",attrs:{"data-aos":"fade-up"}},[t.Gosterim&&t.KayitSayisi>0?e("p",{staticClass:"tagline",staticStyle:{"margin-bottom":"-1rem"},style:t.Text1StyleObject},[t._v(" Assignments ("+t._s(t.AssignmentsGosterim.length)+"/"+t._s(t.Assignments.length)+") ")]):t.Gosterim?t._e():e("p",{staticClass:"tagline",staticStyle:{"margin-bottom":"-1rem"},style:t.Text1StyleObject},[t._v(" Assignments ")])]),e("div",{staticClass:"featured-courses-two",staticStyle:{"margin-bottom":"25px!important"}},[e("div",{staticClass:"row",staticStyle:{"justify-content":"center"}},[[t.Gosterim?t._e():e("div",{staticClass:"wishlist-tab"},[e("ul",{staticClass:"nav",staticStyle:{"justify-content":"center"},attrs:{role:"tablist"}},[e("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[e("a",{staticClass:"THMbutton THMbuttonShadow",class:0==this.AktifTab?"active":"",staticStyle:{width:"195px","text-align":"center"},style:1==t.AktifTab?t.Button2StyleObject:t.Button1StyleObject,attrs:{href:"javascript:void(0);",role:"tab"},on:{click:function(e){return t.AktifTabDegis(0)}}},[t._v(" Current Assignments ")])]),e("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[e("a",{staticClass:"THMbutton THMbuttonShadow",class:1==this.AktifTab?"active":"",staticStyle:{width:"195px","text-align":"center"},style:0==t.AktifTab?t.Button2StyleObject:t.Button1StyleObject,attrs:{href:"javascript:void(0);",role:"tab"},on:{click:function(e){return t.AktifTabDegis(1)}}},[t._v(" Past Assignments ")])])]),t.AssignmentsGosterim.length>0||""!=t.Aranan?e("div",{staticClass:"fade-up",staticStyle:{"justify-items":"center"}},[e("div",{staticClass:"banner-content"},[e("form",{staticClass:"form"},[e("div",{staticClass:"input-group"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.Aranan,expression:"Aranan"}],staticClass:"form-control",attrs:{type:"email",placeholder:"Search"},domProps:{value:t.Aranan},on:{keyup:t.AramaYap,input:function(e){e.target.composing||(t.Aranan=e.target.value)}}})])])])]):t._e()]),t.Gosterim||0!=t.KayitSayisi?t._e():e("h5",{staticStyle:{"text-align":"center"},style:t.Text1StyleObject},[t._v("There is no assignment.")]),t._l(t.AssignmentsGosterim,(function(s){return e("div",{key:s.assignment_id,staticClass:"col-xl-3 col-lg-4 col-md-4 col-sm-6 d-flex",staticStyle:{cursor:"pointer"},on:{click:function(e){return t.AssignmentDetayGit(s.assignment_id)}}},[e("div",{staticClass:"featured-details-two",style:t.CardStyleObject},[e("div",{staticClass:"product-item-two"},[e("div",{staticClass:"product-img-two"},[e("a",{staticStyle:{"font-size":"18px !important"},attrs:{href:"javascript:void(0);"}},[e("img",{staticClass:"img-fluid",attrs:{alt:"Img",src:s.scorm.scorm_image}})])]),e("div",{staticClass:"course-details-content"},[e("div",{staticClass:"name-text featured-info-two"},[e("p",{staticClass:"me-3"},[t._v(t._s(s.assignment_name))]),e("h3",{staticStyle:{"margin-top":"-10px"}},[e("span",[t._v(t._s(s.scorm.collection_path))])]),e("h3",{staticClass:"title instructor-text"},[e("a",[t._v(t._s(s.scorm.scorm_name))])])]),e("div",{staticClass:"range",style:{"--p":parseInt(s.scorm.scorm_scores.total_score)}}),e("div",{staticClass:"featured-info-time d-flex align-items-center"},[e("div",{staticClass:"hours-time-two d-flex align-items-center"},[t._m(1,!0),e("h3",[e("span",[t._v("Due Date: "+t._s(t.DateFormat(s.end_date)))])])]),e("div",{staticClass:"course-view d-inline-flex align-items-center"},[e("div",{staticClass:"price combo"},[t.IsExpired(s.end_date)?e("h3",[t._v("continues")]):t._e(),t.IsExpired(s.end_date)?t._e():e("h3",{staticStyle:{color:"#ff0100 !important"}},[t._v("expired")])])])])])])])])}))]],2)]),t.Gosterim&&t.KayitSayisi>0?e("div",{staticClass:"col-lg-12",staticStyle:{"margin-bottom":"-20px"},attrs:{"data-aos":"fade-up"}},[e("div",{staticClass:"about-button more-details text-center"},[e("button",{staticClass:"btn btn-primary btn-start THMbutton THMbuttonShadow",style:t.Button1StyleObject,on:{click:function(e){return t.AssignmentsGit()}}},[t._v("View all Assignments "),e("i",{staticClass:"fas fa-arrow-right ms-2"})])])]):t._e()])])])]):t._e()])]):t._e()]):t._e()},tt=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("span",{staticClass:"loader"})])},function(){var t=this,e=t._self._c;return e("span",[e("i",{staticClass:"fa-regular fa-clock me-2"})])}],et=s(6797),st=s.n(et),it={name:"AssignmentList",props:{Gosterim:null},data(){return{Aranan:"",AramaSonuclari:[],Hazir:!1,Assignments:[],AssignmentsGosterim:[],SistemTarihi:null,AktifTab:0,GecerliSayfa:1,KayitSayisi:0,InnerLoading:!0}},async beforeMount(){await this.SistemTarihiGetir(),this.IlkYukleme()},activated(){},computed:{...(0,l.Se)(["getKullaniciDetaylari","getOkulAyarlar","getRol","Button1StyleObject","Button2StyleObject","CardStyleObject","Text1StyleObject"]),ToplamKayitSayisi(){return this.KayitSayisi}},methods:{DateFormat(t){return st()(t).format("DD.MM.YYYY")},AssignmentDetayGit(t){const e=this.AssignmentsGosterim.find((e=>e.assignment_id==t));this.$router.push({name:"assignmentDetails",params:{Assignment:e}})},IsExpired(t){var e=new Date(this.SistemTarihi),s=new Date(t);return!(e.getTime()>s.getTime())},AktifTabDegis(t){if(this.AktifTab=t,this.Aranan="",this.Assignments.length>0){const e=1==t?this.Assignments.filter((t=>t.end_date<=this.SistemTarihi)):this.Assignments.filter((t=>t.end_date>=this.SistemTarihi));e.sort(((t,e)=>t.create_date-e.create_date)),this.AssignmentsGosterim=e}this.KayitSayisi=this.AssignmentsGosterim.length},AssignmentsGit(){this.$router.push({path:"/assignments"})},async SistemTarihiGetir(){try{const t=await ns.SistemTarihiGetir();t&&(this.SistemTarihi=t)}catch(t){return}},async IlkYukleme(){this.getKullaniciDetaylari&&await this.AssignmentsGetir()},async AssignmentsGetir(){this.KayitSayisi=0;try{this.$store.commit("setLoading",!0);const t=await E.AssignmentsGetir();1==t.success&&(this.Assignments=t.data.data,this.Assignments.length>0&&(this.Gosterim?(this.AktifTabDegis(0),this.AssignmentsGosterim=this.AssignmentsGosterim.slice(0,4)):this.AktifTabDegis(0))),this.KayitSayisi=this.AssignmentsGosterim.length,this.$store.commit("setLoading",!1),this.Hazir=!0,this.InnerLoading=!1}catch(t){return this.InnerLoading=!1,this.$store.commit("setLoading",!1),void this.$toast.open({message:"Assignment listesi alınamadı!",type:"error",duration:3e3,dismissible:!0,position:"top"})}},async sayfaDegistir(t){const e=this.Assignments.filter((t=>t.start_date<=this.SistemTarihi));e.sort(((t,e)=>t.create_date-e.create_date)),this.AssignmentsGosterim=e.slice(4*(t-1),4*t)},AramaYap(){if(this.Assignments.length>0){const t=1==this.AktifTab?this.Assignments.filter((t=>t.end_date<=this.SistemTarihi)):this.Assignments.filter((t=>t.end_date>=this.SistemTarihi));t.sort(((t,e)=>t.create_date-e.create_date));const e=this.Aranan.toLowerCase();this.AssignmentsGosterim=t.filter((t=>this.searchInSpecificKeys(t,e)))}this.KayitSayisi=this.AssignmentsGosterim.length},deepSearch(t,e){for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)){const i=t[s];if(s.toLowerCase().includes(e)||"string"===typeof i&&i.toLowerCase().includes(e)||"number"===typeof i&&i.toString().includes(e))return!0;if("object"===typeof i&&null!==i&&this.deepSearch(i,e))return!0}return!1},searchInSpecificKeys(t,e){const s=["assignment_name","assignment_desc","scorm_name"];for(const i of s)if(Object.prototype.hasOwnProperty.call(t,i)){const s=t[i];if("string"===typeof s&&s.toLowerCase().includes(e))return!0}if(t.scorm)for(const i of s)if(Object.prototype.hasOwnProperty.call(t.scorm,i)){const s=t.scorm[i];if("string"===typeof s&&s.toLowerCase().includes(e))return!0}return!1}}},at=it,nt=(0,d.Z)(at,X,tt,!1,null,"6709d0b1",null),rt=nt.exports,ot=function(){var t=this,e=t._self._c;return e("div",[0!=t.LocalKonum||t.Hazir?t._e():e("section",{staticClass:"home-two-slide d-flex align-items-center",staticStyle:{"justify-content":"center"}},[t._m(0)]),t.Linkler.length>0?e("section",{class:{"topcategory-sec":0==t.LocalKonum,"topcategory-sec sec2":1==t.LocalKonum}},[e("div",{staticClass:"container"},[e("div",{staticClass:"header-two-title text-center",attrs:{"data-aos":"fade-up"}},[e("p",{staticClass:"tagline",staticStyle:{"margin-bottom":"-1rem"},style:t.Text1StyleObject},[t._v("Links")]),e("div",{staticClass:"header-two-text"})]),e("div",{staticClass:"top-category-group"},[e("div",{staticClass:"row",staticStyle:{"justify-content":"center"}},[t.Hazir?t._e():e("span",{staticClass:"loader"}),t.Hazir&&t.Linkler.length>0?t._l(t.Linkler,(function(s,i){return e("div",{key:i,staticClass:"col-xl-3 col-lg-4 col-md-4 col-sm-6 d-flex",attrs:{"data-aos":"fade-down"},on:{click:function(e){return t.linkGit(s.Link)}}},[e("div",{staticClass:"categories-item flex-fill",style:t.CardStyleObject},[e("div",{staticStyle:{height:"100px"}},[e("div",{staticClass:"categories-icon",staticStyle:{"text-align":"center"}},[e("img",{staticClass:"img-fluid",staticStyle:{height:"100px"},attrs:{src:`/assets/img/links/${s.GorselAdi}`}})])]),e("div",{staticClass:"categories-content",style:t.CardStyleObject},[e("h3",{staticStyle:{"text-align":"center","font-size":"16px!important"},style:t.CardStyleObject},[t._v(t._s(s.LinkBaslik))])])])])})):t._e()],2)])])]):t._e()])},lt=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("span",{staticClass:"loader"})])}],ct={name:"links",props:["Konum"],data(){return{Hazir:!1,Linkler:[],LocalKonum:this.Konum??0}},beforeMount(){const t="teacher"==this.getRol?this.getOkulAyarlar.OgretmenMenu2:this.getOkulAyarlar.OgrenciMenu2;0!=t?this.IlkYukleme():this.$router.push({path:"/home"})},computed:{...(0,l.Se)(["getKullaniciDetaylari","getOkulAyarlar","getSinifSeviye","getKampusTipi","getKampusAdi","getKampusId","getOkulId","getOkulAdi","getRol","getOgretmenSinifSeviyeleri","getOgretmenSinifSubeIdleri","getSinifId","Button1StyleObject","CardStyleObject","Text1StyleObject"])},methods:{async IlkYukleme(){this.getKullaniciDetaylari&&await this.linkListesi()},async linkListesi(){try{let t,e;"teacher"==this.getRol?(this.getOgretmenSinifSubeIdleri.length>0&&(t=this.getOgretmenSinifSubeIdleri.map((t=>({SinifId:t})))),this.getOgretmenSinifSeviyeleri.length>0&&(e=this.getOgretmenSinifSeviyeleri.map((t=>({SinifSeviye:t}))))):(t=[{SinifId:this.getSinifId}],e=[{SinifSeviye:this.getSinifSeviye}]);const s={OkulId:this.getOkulId,KampusId:this.getKampusId,SinifSeviye:e,SinifId:t,Rol:"teacher"==this.getRol?1:0};this.$store.commit("setLoading",!0);const i=await ns.OkulLinkleriGetir(s);this.Linkler=i.filter((t=>t.Konum==this.LocalKonum)),this.$store.commit("setLoading",!1),this.Hazir=!0}catch(t){return this.Hazir=!0,this.$store.commit("setLoading",!1),void this.$toast.open({message:"Öğrenim Araçları listesi alınamadı!",type:"error",duration:3e3,dismissible:!0,position:"top"})}},linkGit(t){window.open(t,"_blank")},activated(){},created(){}}},mt=ct,dt=(0,d.Z)(mt,ot,lt,!1,null,"230ccae3",null),ut=dt.exports,ht=function(){var t=this,e=t._self._c;return e("div",[0!=t.LocalKonum||t.Hazir?t._e():e("section",{staticClass:"home-two-slide d-flex align-items-center",staticStyle:{"justify-content":"center"}},[t._m(0)]),t.IAR.length>0?e("section",{class:{"topcategory-sec":0==t.LocalKonum,"topcategory-sec sec2":1==t.LocalKonum}},[e("div",{staticClass:"container"},[e("div",{staticClass:"header-two-title text-center",attrs:{"data-aos":"fade-up"}},[e("p",{staticClass:"tagline",staticStyle:{"margin-bottom":"-1rem"},style:t.Text1StyleObject},[t._v("Interactive Readers")]),e("div",{staticClass:"header-two-text"})]),e("div",{staticClass:"top-category-group"},[e("div",{staticClass:"row",staticStyle:{"justify-content":"center"}},[t.Hazir?t._e():e("span",{staticClass:"loader"}),t.Hazir&&t.IAR.length>0?t._l(t.IAR,(function(s,i){return e("div",{key:i,staticClass:"col-xl-3 col-lg-4 col-md-4 col-sm-6 d-flex",attrs:{"data-aos":"fade-down"},on:{click:function(e){return t.IARGit(s.ScormId)}}},[e("div",{staticClass:"categories-item flex-fill",style:t.CardStyleObject},[e("div",{staticStyle:{height:"100px"}},[e("div",{staticClass:"categories-icon",staticStyle:{"text-align":"center"}},[e("img",{staticClass:"img-fluid",staticStyle:{height:"100px"},attrs:{src:`/assets/img/iar/${s.GorselAdi}`}})])]),e("div",{staticClass:"categories-content",style:t.CardStyleObject},[e("h3",{staticStyle:{"text-align":"center","font-size":"16px!important"},style:t.CardStyleObject},[t._v(t._s(s.IARAdi))])])])])})):t._e()],2)])])]):t._e()])},gt=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("span",{staticClass:"loader"})])}],pt={name:"iar",data(){return{Hazir:!1,IAR:[],LocalKonum:this.Konum??0}},beforeMount(){const t="teacher"==this.getRol?1:0;0!=t?this.IlkYukleme():this.$router.push({path:"/home"})},computed:{...(0,l.Se)(["getKullaniciDetaylari","getSinifSeviye","getOkulId","getRol","getOgretmenSinifSeviyeleri","getSinifId","Button1StyleObject","CardStyleObject","Text1StyleObject"])},methods:{async IlkYukleme(){this.getKullaniciDetaylari&&await this.IARkListesi()},async IARkListesi(){try{let t;"teacher"==this.getRol?this.getOgretmenSinifSeviyeleri.length>0&&(t=this.getOgretmenSinifSeviyeleri.map((t=>({SinifSeviye:t})))):t=[{SinifSeviye:this.getSinifSeviye}];const e={OkulId:this.getOkulId,SinifSeviye:t},s=await ns.IARGetir(e);this.IAR=s,this.Hazir=!0}catch(t){return this.Hazir=!0,this.$store.commit("setLoading",!1),void this.$toast.open({message:"Inter Active Readers listesi alınamadı!",type:"error",duration:3e3,dismissible:!0,position:"top"})}},IARGit(t){this.$router.push({path:"interActiveReaders/"+t})},activated(){},created(){}}},yt=pt,ft=(0,d.Z)(yt,ht,gt,!1,null,"7e7620fa",null),St=ft.exports,vt={name:"mainPage",components:{LearningTools:Q,AssignmentList:rt,Links:ut,IAR:St},data(){return{file:null,content:null}},mounted(){this.getCollection()},computed:{...(0,l.Se)(["getRol"])},methods:{async getCollection(){try{await E.getCollections()}catch(t){console.log("Colletion yüklenemedi")}}},activated(){},created(){}},_t=vt,Ct=(0,d.Z)(_t,N,V,!1,null,"a5b93c9c",null),bt=Ct.exports,At=function(){var t=this,e=t._self._c;return e("div",{staticClass:"main-wrapper"},["student"==t.getRol&&1==(this.Izin="teacher"==this.getRol?this.getOkulAyarlar.OgretmenMenu4:this.getOkulAyarlar.OgrenciMenu4)?e("AssignmentList"):t._e(),"teacher"==t.getRol&&1==(this.Izin="teacher"==this.getRol?this.getOkulAyarlar.OgretmenMenu4:this.getOkulAyarlar.OgrenciMenu4)?e("AssignmentsTeacher"):t._e()],1)},Dt=[],kt=function(){var t=this,e=t._self._c;return e("div",[e("section",{staticClass:"home-two-slide d-flex align-items-center"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-lg-12 col-12",attrs:{"data-aos":"fade-up"}},[e("div",{staticClass:"home-slide-face"},[e("div",{staticClass:"container"},[e("div",{staticClass:"header-two-title text-center",attrs:{"data-aos":"fade-up"}},[e("p",{staticClass:"tagline",staticStyle:{"margin-bottom":"-1rem"},style:t.Text1StyleObject},[t._v(" Assignments ")])]),e("div",{staticClass:"featured-courses-two",staticStyle:{"margin-bottom":"25px!important"}},[e("div",{staticClass:"row",staticStyle:{"justify-content":"center"}},[[e("div",{staticClass:"wishlist-tab"},[e("ul",{staticClass:"nav",staticStyle:{"justify-content":"center"},attrs:{role:"tablist"}},[e("li",{staticClass:"nav-item"},[e("a",{staticClass:"THMbutton THMbuttonShadow",style:t.Button1StyleObject,attrs:{href:"javascript:void(0);"},on:{click:function(e){return t.Create()}}},[e("i",{staticClass:"feather-plus me-2"}),t._v(" Create ")])]),e("li",{staticClass:"nav-item"},[e("div",{staticClass:"form",staticStyle:{display:"flex"}},[e("label",{staticClass:"form-label",staticStyle:{"margin-top":"13px"},style:t.Text1StyleObject},[t._v("Multi Tasking  ")]),e("select",{directives:[{name:"model",rawName:"v-model",value:t.IslemAdi,expression:"IslemAdi"}],staticClass:"form-select select",staticStyle:{width:"80px",padding:"4px"},style:t.InputStyleObject,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.IslemAdi=e.target.multiple?s:s[0]},function(e){return t.IslemReset()}]}},[e("option",{attrs:{value:"Edit"}},[t._v("Edit")]),e("option",{attrs:{value:"Delete"}},[t._v("Delete")])])])]),"Edit"==t.IslemAdi?e("li",{staticClass:"nav-item"},[e("a",{staticClass:"THMbutton THMbuttonShadow",class:this.Secilenler.length>0||1==this.HepsiSecilimi?"":"li-disabled",staticStyle:{width:"110px"},style:t.Button1StyleObject,attrs:{href:"javascript:void(0);"},on:{click:function(e){return t.EditModalGosterKapat()}}},[e("i",{staticClass:"feather-edit-2 me-2"}),t._v(" Edit ")])]):e("li",{staticClass:"nav-item"},[e("a",{staticClass:"THMbutton THMbuttonShadow",class:this.Secilenler.length>0||1==this.HepsiSecilimi?"":"li-disabled",staticStyle:{width:"110px"},style:t.Button1StyleObject,attrs:{href:"javascript:void(0);"},on:{click:function(e){return t.SilSor()}}},[e("i",{staticClass:"feather-trash me-2"}),t._v(" Delete ")])]),e("ul",{staticClass:"nav",staticStyle:{"justify-content":"center"},attrs:{role:"tablist"}},[e("li",{staticClass:"nav-item"},[e("div",{staticClass:"form",staticStyle:{display:"flex"}},[e("label",{staticClass:"form-label",staticStyle:{"margin-top":"13px"},style:t.Text1StyleObject},[t._v("Start Date  ")]),e("select",{directives:[{name:"model",rawName:"v-model",value:t.Op1,expression:"Op1"}],staticClass:"form-select select nodownimg",staticStyle:{width:"35px",padding:"4px"},style:t.InputStyleObject,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.Op1=e.target.multiple?s:s[0]},function(e){return t.Filtre()}]}},t._l(t.Operator,(function(s){return e("option",{key:s,domProps:{value:s}},[t._v(t._s(s))])})),0),e("date-picker",{staticStyle:{"padding-top":"4px"},style:t.InputStyleObject,attrs:{valueType:"YYYY-MM-DD",format:t.format,placeholder:"Start Date"},on:{change:function(e){return t.Filtre()}},scopedSlots:t._u([{key:"header",fn:function({emit:s}){return[e("button",{staticClass:"mx-btn mx-btn-text",on:{click:function(t){s(new Date)}}},[t._v("Bugün")])]}}]),model:{value:t.StartDate,callback:function(e){t.StartDate=e},expression:"StartDate"}})],1)]),e("li",{staticClass:"nav-item"},[e("div",{staticClass:"form",staticStyle:{display:"flex"}},[e("label",{staticClass:"form-label",staticStyle:{"margin-top":"13px"},style:t.Text1StyleObject},[t._v("Due Date  ")]),e("select",{directives:[{name:"model",rawName:"v-model",value:t.Op2,expression:"Op2"}],staticClass:"form-select select nodownimg",staticStyle:{width:"35px",padding:"4px"},style:t.InputStyleObject,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.Op2=e.target.multiple?s:s[0]},function(e){return t.Filtre()}]}},t._l(t.Operator,(function(s){return e("option",{key:s,domProps:{value:s}},[t._v(t._s(s))])})),0),e("date-picker",{staticStyle:{"padding-top":"4px"},style:t.InputStyleObject,attrs:{valueType:"YYYY-MM-DD",format:t.format,placeholder:"Due Date"},on:{change:function(e){return t.Filtre()}},scopedSlots:t._u([{key:"header",fn:function({emit:s}){return[e("button",{staticClass:"mx-btn mx-btn-text",on:{click:function(t){s(new Date)}}},[t._v("Bugün")])]}}]),model:{value:t.DueDate,callback:function(e){t.DueDate=e},expression:"DueDate"}})],1)]),e("li",{staticClass:"nav-item"},[e("div",{staticClass:"form",staticStyle:{display:"flex"}},[e("label",{staticClass:"form-label",staticStyle:{"margin-top":"13px"},style:t.Text1StyleObject},[t._v("Assignee  ")]),e("select",{directives:[{name:"model",rawName:"v-model",value:t.Assignee,expression:"Assignee"}],staticClass:"form-select select",style:t.InputStyleObject,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.Assignee=e.target.multiple?s:s[0]},function(e){return t.Filtre()}]}},[e("option",{attrs:{value:"All"}},[t._v("All")]),t._l(t.AssigneeListe,(function(s){return e("option",{key:s.name,domProps:{value:s.name}},[t._v(t._s(s.name))])}))],2)])])])])]),e("div",{staticClass:"settings-menu p-0"},[e("div",{staticClass:"checkout-form"},[e("div",{staticClass:"wishlist-tab",staticStyle:{"text-align":"center"}},[e("ul",{staticClass:"nav",staticStyle:{"justify-content":"center"},attrs:{role:"tablist"}},[e("li",{staticClass:"nav-item"},[e("a",{staticClass:"THMbutton THMbuttonShadow",staticStyle:{width:"100%","min-width":"210px"},style:"group"==t.AssignmentTip?t.Button1StyleObject:t.Button2StyleObject,attrs:{href:"javascript:void(0);",role:"tab"},on:{click:function(e){return t.AssignmentsGetir("group")}}},[t._v("Group Assignments")])]),e("li",{staticClass:"nav-item"},[e("a",{staticClass:"active THMbutton THMbuttonShadow",staticStyle:{width:"100%","min-width":"210px"},style:"individual"==t.AssignmentTip?t.Button1StyleObject:t.Button2StyleObject,attrs:{href:"javascript:void(0);",role:"tab"},on:{click:function(e){return t.AssignmentsGetir("individual")}}},[t._v("Individual Assignments")])])])]),e("div",{staticClass:"tab-pane active show"},[t.InnerLoading?e("section",{staticClass:"home-two-slide d-flex align-items-center",staticStyle:{"margin-top":"131px","justify-content":"center"}},[t._m(0)]):e("div",{staticClass:"table-responsive custom-table"},[0==t.AssignmentsGosterim.length&&1==t.Hazir?e("h5",{staticStyle:{"text-align":"center"},style:t.Text1StyleObject},[t._v("There is no assignment.")]):e("table",{staticClass:"table table-hover table-nowrap mb-0",style:t.TableStyleObject},[e("thead",[e("tr",[e("th",{staticClass:"text-center",staticStyle:{width:"40px"}},[t._v("#")]),e("th",{staticClass:"text-center",staticStyle:{width:"50px"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.HepsiSecilimi,expression:"HepsiSecilimi"}],staticClass:"form-check-input",style:t.Button1StyleObject,attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.HepsiSecilimi)?t._i(t.HepsiSecilimi,null)>-1:t.HepsiSecilimi},on:{change:[function(e){var s=t.HepsiSecilimi,i=e.target,a=!!i.checked;if(Array.isArray(s)){var n=null,r=t._i(s,n);i.checked?r<0&&(t.HepsiSecilimi=s.concat([n])):r>-1&&(t.HepsiSecilimi=s.slice(0,r).concat(s.slice(r+1)))}else t.HepsiSecilimi=a},function(e){return t.HepsiniSec()}]}})]),e("th",[t._v("Assignment Name")]),e("th",{staticClass:"text-center"},[t._v("Assignee")]),e("th",{staticClass:"text-center"},[t._v("Start Date")]),e("th",{staticClass:"text-center"},[t._v("Due Date")]),e("th",{staticClass:"text-center"},[t._v("Status")]),e("th",{staticClass:"text-center"},[t._v("Details")]),e("th",{staticClass:"text-center"},[t._v("Edit")])])]),t._l(t.AssignmentsGosterim,(function(s,i){return e("tbody",{key:i},[e("tr",{staticStyle:{height:"20px !important"}},[e("td",{staticClass:"text-center"},[t._v(t._s(i+1))]),"Edit"==t.IslemAdi?e("td",{staticClass:"text-center"},[e("input",{directives:[{name:"model",rawName:"v-model",value:s.selected,expression:"item.selected"}],staticClass:"form-check-input",class:{"li-disabled":"Expired"==t.Durum(s.start_date,s.end_date)},style:t.Button1StyleObject,attrs:{type:"checkbox"},domProps:{checked:Array.isArray(s.selected)?t._i(s.selected,null)>-1:s.selected},on:{change:[function(e){var i=s.selected,a=e.target,n=!!a.checked;if(Array.isArray(i)){var r=null,o=t._i(i,r);a.checked?o<0&&t.$set(s,"selected",i.concat([r])):o>-1&&t.$set(s,"selected",i.slice(0,o).concat(i.slice(o+1)))}else t.$set(s,"selected",n)},function(e){return t.Sec(i)}]}})]):e("td",{staticClass:"text-center"},[e("input",{directives:[{name:"model",rawName:"v-model",value:s.selected,expression:"item.selected"}],staticClass:"form-check-input",style:t.Button1StyleObject,attrs:{type:"checkbox"},domProps:{checked:Array.isArray(s.selected)?t._i(s.selected,null)>-1:s.selected},on:{change:[function(e){var i=s.selected,a=e.target,n=!!a.checked;if(Array.isArray(i)){var r=null,o=t._i(i,r);a.checked?o<0&&t.$set(s,"selected",i.concat([r])):o>-1&&t.$set(s,"selected",i.slice(0,o).concat(i.slice(o+1)))}else t.$set(s,"selected",n)},function(e){return t.Sec(i)}]}})]),e("td",[e("span",{staticClass:"title-course"},[t._v(t._s(s.assignment_name))])]),e("td",{staticClass:"text-center"},[t._v(t._s(s.name))]),e("td",{staticClass:"text-center"},[t._v(t._s(t.DateFormat(s.start_date)))]),e("td",{staticClass:"text-center"},[t._v(t._s(t.DateFormat(s.end_date)))]),e("td",{staticClass:"text-center"},[e("span",{class:{"status-badge badge-light-warning":"Not Started"==t.Durum(s.start_date,s.end_date),"status-badge badge-light-danger":"Expired"==t.Durum(s.start_date,s.end_date),"status-badge badge-light-success":"Continues"==t.Durum(s.start_date,s.end_date)}},[t._v(" "+t._s(t.Durum(s.start_date,s.end_date))+" ")])]),e("td",{staticClass:"text-center"},[t.DetayGoster.includes(i)?e("svg",{directives:[{name:"tippy",rawName:"v-tippy"}],staticClass:"main-grid-item-icon",staticStyle:{cursor:"pointer"},attrs:{title:"Hide Details",viewBox:"0 0 24 24",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},on:{click:function(e){return t.DetayGosterGizle(i)}}},[e("polyline",{attrs:{points:"17 11 12 6 7 11"}}),e("polyline",{attrs:{points:"17 18 12 13 7 18"}})]):e("svg",{directives:[{name:"tippy",rawName:"v-tippy"}],staticClass:"main-grid-item-icon",staticStyle:{cursor:"pointer"},attrs:{title:"Show Details",viewBox:"0 0 24 24",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},on:{click:function(e){return t.DetayGosterGizle(i)}}},[e("polyline",{attrs:{points:"7 13 12 18 17 13"}}),e("polyline",{attrs:{points:"7 6 12 11 17 6"}})])]),e("td",{staticClass:"text-center"},[e("i",{directives:[{name:"tippy",rawName:"v-tippy"}],staticClass:"feather-edit-2 me-2",class:{"li-disabled":"Expired"==t.Durum(s.start_date,s.end_date)||t.Secilenler.length>1||1==t.HepsiSecilimi},staticStyle:{cursor:"pointer"},attrs:{title:"Edit Assignment"},on:{click:function(e){return t.EditModalGosterKapat(i)}}})])]),e("tr",[t.DetayGoster.includes(i)?e("td",{attrs:{colspan:"9",id:i}},[t.DetayGoster.includes(i)?e("div",{attrs:{id:i}},[[e("AssignmentCardForList",{attrs:{Assignments:t.Assignments,assignment_name:s.assignment_name,name:s.name,start_date:s.start_date,end_date:s.end_date}})]],2):t._e()]):t._e()])])}))],2)])])])])]],2)])])])])])])]),t.Modal?e("EditAssignment",{attrs:{Mod:0==t.Secilenler.length||1==t.Secilenler.length?"single":"multi",SingleEditIndex:t.SingleEditIndex}}):t._e()],1)},wt=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("span",{staticClass:"loader"})])}],xt=s(4852),Ot=function(){var t=this,e=t._self._c;return e("div",{staticClass:"row",staticStyle:{"justify-content":"center"}},t._l(this.AssignmentsGosterim,(function(s){return e("div",{key:s.assignment_id,staticClass:"col-xl-2 col-lg-3 col-md-4 col-sm-4 d-flex",staticStyle:{cursor:"pointer"}},[e("div",{staticClass:"featured-details-two",style:t.CardStyleObject},[e("div",{staticClass:"product-item-two"},[e("div",{staticClass:"product-img-two"},[e("a",{staticStyle:{"font-size":"18px !important"},attrs:{href:"javascript:void(0);"}},[e("img",{staticClass:"img-fluid",attrs:{alt:"Img",src:s.scorm.scorm_image}})])]),e("div",{staticClass:"course-details-content"},[e("div",{staticClass:"name-text featured-info-two"},[e("p",{staticClass:"me-3"},[t._v(t._s(s.assignment_name))]),e("h3",{staticStyle:{"margin-top":"-10px"}},[e("span",[t._v(t._s(s.scorm.collection_path))])]),e("h3",{staticClass:"title instructor-text"},[e("a",[t._v(t._s(s.scorm.scorm_name))])])])])])])])})),0)},Tt=[],jt={name:"AssignmentCardForList",props:["Assignments","assignment_name","name","start_date","end_date"],data(){return{Hazir:!1,AssignmentsGosterim:[],SistemTarihi:null,KayitSayisi:0,StartDate:null,DueDate:null,format:"DD.MM.YYYY"}},async mounted(){await this.SistemTarihiGetir(),this.AssignmentsListele()},computed:{...(0,l.Se)(["CardStyleObject"]),ToplamKayitSayisi(){return this.KayitSayisi}},methods:{DateFormat(t){return st()(t).format("DD.MM.YYYY")},IsExpired(t){var e=new Date(this.SistemTarihi),s=new Date(t);return!(e.getTime()>s.getTime())},Durum(t,e){var s=new Date(this.SistemTarihi),i=new Date(t),a=new Date(e);return i.getTime()>s.getTime()?"Not Started":a.getTime()0){this.AssignmentsGosterim=this.Assignments;const t=this.Assignments.filter((t=>t.assignment_name==this.assignment_name&&t.name==this.name&&t.start_date==this.start_date&&t.end_date==this.end_date)),e=[...new Map(t.map((t=>[JSON.stringify(t),t]))).values()];this.AssignmentsGosterim=e.sort(((t,e)=>e.start_date-t.start_date)),this.AssignmentsGosterim.sort(((t,e)=>e.start_date-t.start_date));const s=this.AssignmentsGosterim.map((({name:t})=>({name:t}))),i=[...new Map(s.map((t=>[JSON.stringify(t),t]))).values()];this.AssigneeListe=i}this.KayitSayisi=this.AssignmentsGosterim.length}catch(t){console.log("Assignment Göster",t)}},activated(){},created(){}}},It=jt,Lt=(0,d.Z)(It,Ot,Tt,!1,null,"3e10a07f",null),Mt=Lt.exports,Gt=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"modal fade show",staticStyle:{display:"block"},attrs:{id:"withdraw-request","aria-modal":"true",role:"dialog"}},[e("div",{staticClass:"modal-dialog modal-dialog-centered withdraw-modal"},[e("div",{staticClass:"modal-content"},[e("div",{staticClass:"page-wrapper-new p-0"},[e("div",{staticClass:"content",staticStyle:{"min-height":"184.062px"}},[e("div",{staticClass:"modal-header border-0 custom-modal-header"},[t._m(0),e("button",{staticClass:"close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close"},on:{click:function(e){return e.preventDefault(),t.$parent.EditModalGosterKapat()}}},[e("i",{staticClass:"feather-x"})])]),e("hr",{staticStyle:{margin:"18px 0px 0px 0px"}}),e("div",{staticClass:"checkout-form",staticStyle:{padding:"25px"}},[e("div",{staticClass:"row"},["single"==t.Mod?e("div",{staticClass:"col-md-8"},[e("div",{staticClass:"input-block"},[e("label",{staticClass:"form-control-label"},[t._v("Title")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.Title,expression:"Title"}],staticClass:"form-control THMinput",style:t.InputStyleObject,attrs:{type:"text",placeholder:"Assignment Title"},domProps:{value:t.Title},on:{input:function(e){e.target.composing||(t.Title=e.target.value)}}})])]):t._e(),e("div",{class:"single"==t.Mod?"col-md-4":"col-md-12"},[e("div",{staticClass:"input-block"},[e("label",{staticClass:"form-control-label"},[t._v("Due Date")]),e("date-picker",{staticStyle:{"padding-top":"4px",display:"inline"},style:t.InputStyleObject,attrs:{valueType:"YYYY-MM-DD",format:t.format,placeholder:"Due Date","disabled-date":t.StartDateTarihleriEngelle},scopedSlots:t._u([{key:"header",fn:function({emit:s}){return[e("button",{staticClass:"mx-btn mx-btn-text",on:{click:function(t){s(new Date)}}},[t._v("Bugün")])]}}]),model:{value:t.DueDate,callback:function(e){t.DueDate=e},expression:"DueDate"}})],1)])]),e("hr",{staticStyle:{margin:"18px 0px 0px 0px"}}),e("div",{staticClass:"col-md-4 offset-md-8",staticStyle:{"text-align":"end","margin-top":"10px"}},[e("button",{staticClass:"btn btn-primary btn-start THMbutton THMbuttonShadow",class:1==t.KayitAktif()?"":"li-disabled",style:t.SaveButtonStyleObject,attrs:{type:"submit"},on:{click:function(e){return t.Update()}}},[t._v("Update ")])])])])])])])]),e("div",{staticClass:"modal-backdrop fade show"})])},$t=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"page-title"},[e("h5",[t._v("Edit Assignments")])])}],Rt={name:"editAssignments",props:["Mod","SingleEditIndex"],components:{DatePicker:xt.Z},data(){return{SistemTarihi:null,format:"DD.MM.YYYY",Title:null,DueDate:null,DueTime:null}},async mounted(){this.SistemTarihiGetir()},computed:{...(0,l.Se)(["getKullaniciDetaylari","InputStyleObject","BackButtonStyleObject","SaveButtonStyleObject"]),ToplamKayitSayisi(){return this.KayitSayisi}},methods:{DateFormat(t){return st()(t).format("DD.MM.YYYY")},StartDateTarihleriEngelle(t){const e=new Date;return e.setHours(0,0,0,0),t","<",">=","<="],Op1:">=",Op2:"<=",DetayGoster:[],HepsiSecilimi:!1,Secilenler:[],Modal:!1,SingleEditIndex:null,IslemAdi:"Edit"}},async beforeMount(){await this.SistemTarihiGetir(),this.IlkYukleme()},computed:{...(0,l.Se)(["getKullaniciDetaylari","Button1StyleObject","Button2StyleObject","Text1StyleObject","InputStyleObject","TableStyleObject","InputStyleObject","SaveButtonStyleObject"]),ToplamKayitSayisi(){return this.KayitSayisi}},methods:{DateFormat(t){return st()(t).format("DD.MM.YYYY")},IsExpired(t){var e=new Date(this.SistemTarihi),s=new Date(t);return!(e.getTime()>s.getTime())},IslemReset(){this.Secilenler=[],this.HepsiSecilimi=!1,this.AssignmentsGosterim.forEach((t=>{t.selected=!1}))},HepsiniSec(){this.Secilenler=[],this.AssignmentsGosterim.forEach(((t,e)=>{("Edit"==this.IslemAdi&&"Expired"!=this.Durum(t.start_date,t.end_date)||"Delete"==this.IslemAdi)&&(t.selected=this.HepsiSecilimi,1==this.HepsiSecilimi&&this.Sec(e))}))},async Sec(t){const e=this.Secilenler.indexOf(t);e>-1?this.Secilenler.splice(e,1):this.Secilenler.push(t)},DetayGosterGizle(t){const e=this.DetayGoster.indexOf(t);e>-1?this.DetayGoster.splice(e,1):this.DetayGoster.push(t)},AssignmentDetayGit(t){const e=this.AssignmentsGosterim.find((e=>e.assignment_id==t));this.$router.push({name:"assignmentDetails",params:{Assignment:e}})},Durum(t,e){var s=new Date(this.SistemTarihi),i=new Date(t),a=new Date(e);return i.getTime()>s.getTime()?"Not Started":a.getTime()0){this.AssignmentsGosterim=this.Assignments;const t=this.Assignments.map((({assignment_name:t,name:e,start_date:s,end_date:i})=>({assignment_name:t,name:e,start_date:s,end_date:i}))),e=[...new Map(t.map((t=>[JSON.stringify(t),t]))).values()];this.AssignmentsGosterim=e.sort(((t,e)=>e.start_date-t.start_date)),this.AssignmentsGosterim.sort(((t,e)=>e.start_date-t.start_date)),this.AssignmentsGosterim=this.AssignmentsGosterim.map((t=>({...t,selected:!1}))),this.HepsiSecilimi=!1;const s=this.AssignmentsGosterim.map((({name:t})=>({name:t}))),i=[...new Map(s.map((t=>[JSON.stringify(t),t]))).values()];this.AssigneeListe=i}this.KayitSayisi=this.AssignmentsGosterim.length}catch(t){console.log("Assignment Göster",t)}},Filtre(){const t=this.Assignments.map((({assignment_name:t,name:e,create_date:s,start_date:i,end_date:a})=>({assignment_name:t,name:e,create_date:s,start_date:i,end_date:a}))),e=[...new Map(t.map((t=>[JSON.stringify(t),t]))).values()];let s=[],i={};this.StartDate&&(i.key="start_date",i.operator="="==this.Op1?"==":this.Op1,i.value=this.StartDate.split(" ")[0],s.push(i)),i={},this.DueDate&&(i.key="end_date",i.operator="="==this.Op2?"==":this.Op2,i.value=this.DueDate.split(" ")[0],s.push(i)),i={},"All"!=this.Assignee&&(i.key="name",i.operator="==",i.value=this.Assignee,s.push(i));const a=this.Filtre_DinamikParametre(e,s);this.AssignmentsGosterim=a},Filtre_DinamikParametre(t,e){return t.filter((t=>e.every((e=>{const{key:s,operator:i,value:a}=e,n="date"==s?t[s]?.split(" ")[0]:t[s];switch(i){case"==":return n==a;case">=":return n>=a;case"<=":return n<=a;case">":return n>a;case"<":return n{t.isConfirmed&&this.AssignmentSil()}))},AssignmentSil(){let t=[];this.AssignmentsGosterim.forEach((e=>{if(1==e.selected){const s=this.Assignments.filter((t=>t.assignment_name==e.assignment_name&&t.name==e.name&&t.start_date==e.start_date&&t.end_date==e.end_date)),i=s.map((t=>t.assignment_id));t=t.concat(i)}})),this.$store.commit("setLoading",!0),E.AssignmentSil(t).then((t=>{t.success?(this.$store.commit("setLoading",!1),this.$toast.open({message:"Delete successful",type:"success",duration:3e3,dismissible:!0,position:"top"}),this.DeleteHepsiSecilimi=!1,this.DeleteSecilenler=[],location.reload()):(this.$store.commit("setLoading",!1),this.ready=!0,console.log("Assignment Delete Error",t.data),this.$toast.open({message:"An error occured while you removing assignments",type:"error",duration:3e3,dismissible:!0,position:"top"}))}))},EditModalGosterKapat(t){this.SingleEditIndex=t,1==this.Modal&&(this.SingleEditIndex=null),this.Modal=!this.Modal},async AssignmentUpdate(t,e,s){let i,a=[];if("undefined"!=typeof t){const n=this.AssignmentsGosterim[t],r=this.Assignments.filter((t=>t.assignment_name==n.assignment_name&&t.name==n.name&&t.start_date==n.start_date&&t.end_date==n.end_date));a=r.map((t=>t.assignment_id)),i=null==e||""==e.trim()?{assignment_end_date:s}:{assignment_name:e,assignment_end_date:s}}else i={assignment_end_date:s},this.AssignmentsGosterim.forEach((t=>{if(1==t.selected){const e=this.Assignments.filter((e=>e.assignment_name==t.assignment_name&&e.name==t.name&&e.start_date==t.start_date&&e.end_date==t.end_date)),s=e.map((t=>t.assignment_id));a=a.concat(s)}}));try{this.$store.commit("setLoading",!0),this.EditModalGosterKapat(),await Promise.all(a.map((t=>E.AssignmentUpdate(t,i)))),this.$store.commit("setLoading",!1),this.$toast.open({message:"Update successful",type:"success",duration:3e3,dismissible:!0,position:"top"}),location.reload()}catch(n){this.$store.commit("setLoading",!1),this.$toast.open({message:"An error occured while you update assignments",type:"error",duration:3e3,dismissible:!0,position:"top"})}},activated(){},created(){}}},zt=Et,Bt=(0,d.Z)(zt,kt,wt,!1,null,"559eebfd",null),Pt=Bt.exports,Ft={name:"Assignments",components:{AssignmentList:rt,AssignmentsTeacher:Pt},data(){return{file:null,content:null,Izin:0}},computed:{...(0,l.Se)(["getKullaniciDetaylari","getOkulAyarlar","getRol"])},methods:{},activated(){},created(){}},Nt=Ft,Vt=(0,d.Z)(Nt,At,Dt,!1,null,"57460aec",null),Ut=Vt.exports,Zt=function(){var t=this,e=t._self._c;return e("div",[e("section",{staticClass:"home-two-slide d-flex align-items-center"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-lg-12 col-12",attrs:{"data-aos":"fade-up"}},[e("div",{staticClass:"home-slide-face"},[e("div",{staticClass:"container"},[e("div",{staticClass:"header-two-title text-center",attrs:{"data-aos":"fade-up"}},[e("p",{staticClass:"tagline",staticStyle:{"margin-bottom":"-1rem"},style:t.Text1StyleObject},[t._v(" Create Assignment ")])]),e("div",{staticClass:"featured-courses-two",staticStyle:{"margin-bottom":"25px!important"}},[e("div",{staticClass:"row",staticStyle:{"justify-content":"center"}},[[e("div",{staticClass:"settings-menu p-0"},[e("div",{staticClass:"checkout-form"},[e("div",{staticClass:"col-lg-12",staticStyle:{display:"flex"}},[e("div",{staticClass:"col-md-8"},[e("div",{staticClass:"wishlist-tab",staticStyle:{"text-align":"center"}},[e("ul",{staticClass:"nav",attrs:{role:"tablist"}},[e("li",{staticClass:"nav-item",staticStyle:{"margin-left":"0px"}},[e("a",{staticClass:"THMbutton THMbuttonShadow",staticStyle:{width:"100%","min-width":"200px"},style:0==t.AktifTab?t.Button1StyleObject:t.Button2StyleObject,attrs:{href:"javascript:void(0);",role:"tab"},on:{click:function(e){return t.AktifTabDegis(0)}}},[t._v("Details")])]),e("li",{staticClass:"nav-item"},[e("a",{staticClass:"active THMbutton THMbuttonShadow",staticStyle:{width:"100%","min-width":"200px"},style:1==t.AktifTab?t.Button1StyleObject:t.Button2StyleObject,attrs:{href:"javascript:void(0);",role:"tab"},on:{click:function(e){return t.AktifTabDegis(1)}}},[t._v("Assignees")])]),e("li",{staticClass:"nav-item"},[e("a",{staticClass:"active THMbutton THMbuttonShadow",staticStyle:{width:"100%","min-width":"200px"},style:2==t.AktifTab?t.Button1StyleObject:t.Button2StyleObject,attrs:{href:"javascript:void(0);",role:"tab"},on:{click:function(e){return t.AktifTabDegis(2)}}},[t._v("Resources")])])])])]),e("div",{staticClass:"col-md-4",staticStyle:{"justify-items":"flex-end"}},[e("div",{staticClass:"wishlist-tab",staticStyle:{"text-align":"center"}},[e("ul",{staticClass:"nav",attrs:{role:"tablist"}},[e("li",{staticClass:"nav-item",staticStyle:{"margin-right":"0px","margin-left":"15px"}},[e("a",{staticClass:"active THMbutton THMbuttonShadow",staticStyle:{width:"100%","min-width":"90px"},style:t.BackButtonStyleObject,attrs:{href:"javascript:void(0);",role:"tab"},on:{click:function(e){return t.Vazgec()}}},[t._v("Cancel")])]),1==t.KayitAktif()?e("li",{staticClass:"nav-item",staticStyle:{"margin-right":"0px","margin-left":"15px"}},[e("a",{staticClass:"active THMbutton THMbuttonShadow",staticStyle:{width:"100%","min-width":"90px"},style:t.SaveButtonStyleObject,attrs:{href:"javascript:void(0);",role:"tab"},on:{click:function(e){return t.AssignmentOlustur()}}},[t._v("Save")])]):t._e()])])])]),e("div",{staticClass:"tab-pane active show"},[e("hr",{staticStyle:{"margin-top":"2px"}}),0==t.AktifTab?[e("div",{staticClass:"input-block"},[e("label",{staticClass:"form-control-label"},[t._v("Assignment Name")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.Title,expression:"Title"}],staticClass:"form-control THMinput",style:t.InputStyleObject,attrs:{type:"text",placeholder:"Assignment Name (Required)"},domProps:{value:t.Title},on:{input:function(e){e.target.composing||(t.Title=e.target.value)}}})]),e("div",{staticClass:"input-block"},[e("label",{staticClass:"form-control-label"},[t._v("Description")]),e("div",{staticClass:"pass-group"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.Description,expression:"Description"}],staticClass:"form-control pass-input THMinput",style:t.InputStyleObject,attrs:{rows:"4",placeholder:"Assignment Description"},domProps:{value:t.Description},on:{input:function(e){e.target.composing||(t.Description=e.target.value)}}})])]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-6"},[e("div",{staticClass:"input-block"},[e("label",{staticClass:"form-control-label"},[t._v("Start Date")]),e("date-picker",{staticStyle:{"padding-top":"4px",display:"inline"},style:t.InputStyleObject,attrs:{valueType:"YYYY-MM-DD",format:t.format,placeholder:"Start Date (Required)","disabled-date":t.StartDateTarihleriEngelle},scopedSlots:t._u([{key:"header",fn:function({emit:s}){return[e("button",{staticClass:"mx-btn mx-btn-text",on:{click:function(t){s(new Date)}}},[t._v("Bugün")])]}}],null,!1,3623527613),model:{value:t.StartDate,callback:function(e){t.StartDate=e},expression:"StartDate"}})],1)]),e("div",{staticClass:"col-md-6"},[e("div",{staticClass:"input-block"},[e("label",{staticClass:"form-control-label"},[t._v("Due Date ")]),e("date-picker",{staticStyle:{"padding-top":"4px",display:"inline"},style:t.InputStyleObject,attrs:{valueType:"YYYY-MM-DD",format:t.format,placeholder:"Due Date (Required)","disabled-date":t.DueDateTarihleriEngelle},scopedSlots:t._u([{key:"header",fn:function({emit:s}){return[e("button",{staticClass:"mx-btn mx-btn-text",on:{click:function(t){s(new Date)}}},[t._v("Bugün")])]}}],null,!1,3623527613),model:{value:t.DueDate,callback:function(e){t.DueDate=e},expression:"DueDate"}})],1)])])]:t._e(),[1==this.AktifTab?e("Assignees"):t._e()],2==t.AktifTab?[t._m(0),e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-6"},[e("div",{staticClass:"input-block"},[e("label",{staticClass:"form-control-label"},[t._v("Collections")]),e("v-select",{attrs:{placeholder:"Select a Collection",options:t.ParentData,reduce:t=>t.id,label:"name"},on:{input:function(e){return t.childResources()}},model:{value:t.ParentId,callback:function(e){t.ParentId=e},expression:"ParentId"}})],1)]),e("div",{staticClass:"col-md-6"},[e("div",{staticClass:"input-block"},[e("label",{staticClass:"form-control-label"},[t._v("Courses")]),e("v-select",{attrs:{placeholder:"Select a Course",options:t.ChildData,reduce:t=>t.id,label:"name"},on:{input:function(e){return t.getScorms()}},model:{value:t.ChildId,callback:function(e){t.ChildId=e},expression:"ChildId"}})],1)])]),0!=this.ScormData.length?e("div",{staticClass:"col-lg-12",staticStyle:{display:"flex","margin-bottom":"15px"}},[2==t.AktifTab?e("div",{staticClass:"col-md-2"},[e("button",{staticClass:"btn btn-primary btn-start THMbutton THMbuttonShadow",staticStyle:{"margin-right":"10px"},style:t.NextButtonStyleObject,attrs:{type:"submit"},on:{click:function(e){return t.HepsiniSec()}}},[t._v(" Select All ")])]):t._e(),this.SecilenScormlar.length>0?e("div",{staticClass:"col-md-2 offset-md-8",staticStyle:{"text-align":"end"}},[e("button",{staticClass:"btn btn-primary btn-start THMbutton THMbuttonShadow",style:t.BackButtonStyleObject,attrs:{type:"submit"},on:{click:function(e){return t.HepsiniSil()}}},[t._v("Remove All ")])]):t._e()]):t._e(),e("div",{staticClass:"row"},[e("Courses",{attrs:{Gosterim:"assignment"}})],1)]:t._e(),e("hr",{staticStyle:{"margin-top":"2px"}}),e("div",{staticClass:"col-lg-12",staticStyle:{display:"flex"}},[e("div",{staticClass:"col-md-2"},[0!=t.AktifTab?e("button",{staticClass:"btn btn-primary btn-start THMbutton THMbuttonShadow",staticStyle:{"margin-right":"10px"},style:t.BackButtonStyleObject,attrs:{type:"submit"},on:{click:function(e){return t.OncekiAdim()}}},[e("i",{staticClass:"fas fa-arrow-left",staticStyle:{"margin-left":"0px","margin-right":"6px"}}),t._v(" Previous ")]):t._e()]),e("div",{staticClass:"col-md-2 offset-md-8",staticStyle:{"text-align":"end"}},[2!=t.AktifTab?e("button",{staticClass:"btn btn-primary btn-start THMbutton THMbuttonShadow",style:t.NextButtonStyleObject,attrs:{type:"submit"},on:{click:function(e){return t.SonrakiAdim()}}},[t._v("Next "),e("i",{staticClass:"fas fa-arrow-right ms-2"})]):t._e()])])],2)])])]],2)])])])])])])])])},Jt=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"announcement-head"},[e("div",{staticClass:"announcement-titlte"},[e("h6",[t._v("Please choose a course and lessons. You should select lesson card from left column to the right. 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. ")])])])}],qt=function(){var t=this,e=t._self._c;return e("div",[t._m(0),e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-8 offset-md-1"},[e("v-jstree",{attrs:{data:t.treeArr,"show-checkbox":"",multiple:"","allow-batch":"","whole-row":""},on:{"item-click":t.itemClick}})],1)])])},Wt=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"announcement-head"},[e("div",{staticClass:"announcement-titlte"},[e("h6",[t._v("Please select students or groups to assign. If you click checkbox near of the group name, that's meaning is you will assign as a group assignment. Otherwise, even if you click all checkbox one by one under the certain group name, that will assign as a individual assignments type.")])])])}],Qt={name:"assignees",data(){return{treeData:[]}},computed:{...(0,l.rn)(["OgretmenOgrencileri"]),treeArr(){return this.treeData}},methods:{itemClick(t){if("student"!==t.model.type||t.model.selected){if("student"===t.model.type&&t.model.selected){const e=this.treeData.find((e=>e.value===t.model.parentValue));let s=!0;for(const t of e.children)if(!t.selected){s=!1;break}s&&(this.treeData.find((e=>e.value===t.model.parentValue)).selected=!0)}}else{this.treeData.find((e=>e.value===t.model.parentValue));this.treeData.find((e=>e.value===t.model.parentValue)).selected=!1}},ResetSelected(){const t=e=>{e.forEach((e=>{e.selected=!1,e.children&&e.children.length>0&&t(e.children)}))};t(this.$store.state.OgretmenOgrencileri)}},beforeMount(){this.ResetSelected(),this.treeData=this.OgretmenOgrencileri},beforeDestroy(){const t={};let e=[],s=[];for(const i of this.treeData)i.selected?e=[...e,i.value]:s=[...s,...i.children.filter((t=>t.selected)).map((t=>t.value))];e.length>0&&s.length>0?(t.assignment_type="mixed",t.studentIds=s,t.groupIds=e):e.length>0?(t.assignment_type="group",t.ids=e):s.length>0&&(t.assignment_type="individual",t.ids=s),this.$parent.AssigneeData=t}},Xt=Qt,te=(0,d.Z)(Xt,qt,Wt,!1,null,null,null),ee=te.exports,se=function(){var t=this,e=t._self._c;return e("div",{staticClass:"featured-courses-two",staticStyle:{"margin-bottom":"25px!important"}},[e("div",{staticClass:"row",staticStyle:{"justify-content":"center"}},[[0==this.$parent.ScormData.length?e("h5",{staticStyle:{"text-align":"center"},style:t.Text1StyleObject},[t._v("There is no contents.")]):t._e(),t._l(this.$parent.ScormData,(function(s){return e("div",{key:s.id,staticClass:"col-xl-2 col-lg-3 col-md-3 col-sm-4 d-flex",staticStyle:{cursor:"pointer"},on:{click:function(e){"resource"==t.Gosterim?t.DerseGit(s.id):t.Sec(s.id)}}},[e("div",{staticClass:"featured-details-two",class:0==t.Secilimi(s.id)?"":"ovelayed",style:t.CardStyleObject},[e("div",{staticClass:"product-item-two"},[e("div",{staticClass:"product-img-two"},[e("a",{staticStyle:{"font-size":"18px !important"},attrs:{href:"javascript:void(0);"}},[e("img",{staticClass:"img-fluid",attrs:{alt:"Img",src:s.image}})])]),e("div",{staticClass:"course-details-content"},[e("div",[e("p",{staticClass:"me-3"},[t._v(t._s(s.name))])])])]),"assignment"==t.Gosterim&&0==t.Secilimi(s.id)?e("div",{staticClass:"course-ovelay",style:t.CourseHoverStyleObject},[e("a",{staticClass:"course-hoverbtn"},[t._v("Select")])]):t._e(),"assignment"==t.Gosterim&&1==t.Secilimi(s.id)?e("div",{staticClass:"course-ovelay",style:t.CourseHoverStyleObject},[e("a",{staticClass:"course-hoverbtn"},[t._v("Remove")])]):t._e()])])}))]],2)])},ie=[],ae={name:"course",props:{Gosterim:null},data(){return{}},computed:{...(0,l.Se)(["Text1StyleObject","CardStyleObject","CourseHoverStyleObject"])},methods:{Secilimi(t){if("assignment"==this.Gosterim)return this.$parent.SecilenScormlar.includes(t)},DerseGit(t){const e=this.$parent.ScormData.find((e=>e.id==t)),s={scorm_id:e.id,assignment_id:e.collection,scormTitle:e.name,scormDesc:e.desc,scormCode:e.scorm_code,packageType:"scorm",timestamp:null};this.$router.push({name:"scormView",params:{ScormView:s}})},async Sec(t){console.log(t);const e=this.$parent.SecilenScormlar.indexOf(t);e>-1?this.$parent.SecilenScormlar.splice(e,1):this.$parent.SecilenScormlar.push(t)},activated(){},created(){}}},ne=ae,re=(0,d.Z)(ne,se,ie,!1,null,"3de3534c",null),oe=re.exports,le={name:"createAssignment",props:{Gosterim:null},components:{DatePicker:xt.Z,Assignees:ee,Courses:oe},data(){return{Hazir:!1,SistemTarihi:null,AktifTab:0,KayitSayisi:0,InnerLoading:!0,format:"DD.MM.YYYY",Title:null,Description:null,StartDate:null,DueDate:null,Collections:[],ParentData:[],ParentId:null,ChildData:[],ChildId:null,Scorms:[],ScormData:[],SecilenScormlar:[],AssigneeData:{}}},async mounted(){const t="teacher"==this.getRol?this.getOkulAyarlar.OgretmenMenu4:0;0!=t?(this.SistemTarihiGetir(),await this.getCollections()):this.$router.push({path:"/home"})},computed:{...(0,l.Se)(["getKullaniciDetaylari","getOkulAyarlar","getRol","Button1StyleObject","Button2StyleObject","Text1StyleObject","InputStyleObject","NextButtonStyleObject","BackButtonStyleObject","SaveButtonStyleObject","VSelectStyleObject"]),ToplamKayitSayisi(){return this.KayitSayisi}},methods:{DateFormat(t){return st()(t).format("DD.MM.YYYY")},StartDateTarihleriEngelle(t){const e=new Date;return e.setHours(0,0,0,0),t{const e=this.SecilenScormlar.indexOf(t.id);-1==e&&this.SecilenScormlar.push(t.id)}))},OncekiAdim(){this.AktifTab-=1},SonrakiAdim(){this.AktifTab+=1},async SistemTarihiGetir(){try{const t=await ns.SistemTarihiGetir();t&&(this.SistemTarihi=t)}catch(t){return}},async getCollections(){try{this.$store.commit("setLoading",!0);const t=await E.getCollections();this.Collections=t.data.data,this.parentCollection(),this.$store.commit("setLoading",!1),this.Hazir=!0}catch(t){this.Hazir=!0,this.$store.commit("setLoading",!1),console.log("Colletion yüklenemedi")}},async parentCollection(){try{const t=this.Collections;this.ParentData=t.filter((t=>0==t.parent))}catch(t){return void console.log("Resouces hata:",t)}},childResources(){try{const t=this.Collections;this.ChildData=t.filter((t=>t.parent==this.ParentId)),this.KayitSayisi=this.ChildData.length}catch(t){return void console.log("Resouces hata:",t)}},async getScorms(){this.ScormData=[];try{this.$store.commit("setLoading",!0);const t=await E.getScorms(this.ChildId);this.ScormData=t.data,this.Scorms=t.data,this.$store.commit("setLoading",!1)}catch(t){this.$store.commit("setLoading",!1),console.log("Scorm Data yüklenemedi")}},Vazgec(){this.$router.push({name:"assignments"})},KayitAktif(){return!!(this.Title&&0!=this.Title.length&&this.StartDate&&0!=this.DueDate&&this.AssigneeData&&0!=this.AssigneeData.length&&this.SecilenScormlar&&0!=this.SecilenScormlar.length)},async AssignmentOlustur(){const t={};t.assignment_name=this.Title,t.assignment_desc=this.Description,t.assignment_start_date=`${this.StartDate} 00:00:00`,t.assignment_end_date=`${this.DueDate} 23:59:00`,t.block_after_due_date=!1,t.single_access=!1,t.status=!0,t.assignment_scorms=this.SecilenScormlar;let e=null;if("mixed"===this.AssigneeData.assignment_type){const{studentIds:s}=this.AssigneeData,{groupIds:i}=this.AssigneeData;t.ids=s,t.assignment_type="individual",this.$store.commit("setLoading",!0),e=await E.AssignmentOlustur(t),t.ids=i,t.assignment_type="group",e=await E.AssignmentOlustur(t)}else t.assignment_type=this.AssigneeData.assignment_type,t.ids=this.AssigneeData.ids,this.$store.commit("setLoading",!0),e=await E.AssignmentOlustur(t);!0===e.success?(this.$store.commit("setLoading",!1),this.$toast.open({message:"Created Successfully!",type:"success",duration:3e3,dismissible:!0,position:"top"}),this.$router.push({name:"assignments"})):(this.$store.commit("setLoading",!1),this.$toast.open({message:"An error occured while you creating assignments",type:"error",duration:3e3,dismissible:!0,position:"top"}),console.log("ASSIGNMENT CREATION ERROR",e.data))},beforeDestroy(){this.SecilenScormlar=[],this.AssigneeData={}}}},ce=le,me=(0,d.Z)(ce,Zt,Jt,!1,null,"60451a2c",null),de=me.exports,ue=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{"margin-top":"120px"}},[t.InnerLoading?e("section",{staticClass:"home-two-slide d-flex align-items-center",staticStyle:{"margin-top":"131px","justify-content":"center"}},[t._m(0)]):t._e(),t.InnerLoading?t._e():e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"settings-menu p-0"},[e("div",{staticClass:"profile-heading"},[e("div",{staticClass:"withdrawel-head"},[e("div",{staticClass:"title-withdrawel"},[t._m(1),e("div",{staticClass:"info-withdraw"},[e("div",{staticClass:"d-flex"},[e("h3",{staticStyle:{color:"#f66962"}},[t._v(t._s(t.Assignment.assignment_name??"-- -- --")+" :")]),e("h4",[t._v(" "+t._s(t.Assignment.scorm.scorm_name??"-- -- --"))])]),e("p",[t._v(t._s(t.Assignment.assignment_desc??"There is no description."))])])]),"student"==t.getRol&&t.DersAktifMi()?e("div",{staticClass:"add-announcement-btn"},[e("a",{staticClass:"btn btn-primary THMbutton THMbuttonShadow",style:t.Button1StyleObject,on:{click:function(e){return t.DerseGit()}}},[t._v("Go to Lesson")])]):t._e()])]),e("div",{staticClass:"checkout-form instructor-earnings-card"},[e("div",{staticClass:"row border-bottom"},[e("div",{staticClass:"col-lg-3 col-md-4 col-sm-6 d-flex"},[e("div",{staticClass:"card dash-info flex-fill"},[e("div",{staticClass:"card-body"},[e("h6",[t._v("Create Date")]),e("p",[t._v(t._s(t.DateFormat(t.Assignment.create_date)))])])])]),e("div",{staticClass:"col-lg-3 col-md-4 col-sm-6 d-flex"},[e("div",{staticClass:"card dash-info flex-fill"},[e("div",{staticClass:"card-body"},[e("h6",[t._v("Start Date")]),e("p",[t._v(t._s(t.DateFormat(t.Assignment.sart_date)))])])])]),e("div",{staticClass:"col-lg-3 col-md-4 col-sm-6 d-flex"},[e("div",{staticClass:"card dash-info flex-fill"},[e("div",{staticClass:"card-body"},[e("h6",[t._v("Due Date")]),e("p",[t._v(t._s(t.DateFormat(t.Assignment.end_date)))])])])]),e("div",{staticClass:"col-lg-3 col-md-4 col-sm-6 d-flex"},[e("div",{staticClass:"card dash-info"},[e("h6",[t._v("Status")]),new Date(this.Assignment.end_date).getTime()s.getTime())},unixTime_DakikaSaniye(t){return ge(t)},async SistemTarihiGetir(){try{const t=await ns.SistemTarihiGetir();t&&(this.SistemTarihi=t)}catch(t){return}},DersAktifMi(){return st()(this.SistemTarihi).valueOf()st()(this.Assignment.start_date).valueOf()},DerseGit(){const t={scorm_id:this.Assignment.scorm.scorm_id,assignment_id:this.Assignment.assignment_id,scormTitle:this.Assignment.scorm.scorm_name,scormDesc:this.Assignment.scorm.scorm_desc,scormCode:this.Assignment.scorm.scorm_code,packageType:"assignment",timestamp:null};this.$router.push({name:"scormView",params:{ScormView:t}})},async AssignmentSkorGetir(){this.KayitSayisi=0;try{this.$store.commit("setLoading",!0);const t=await E.AssignmentSkorGetir(this.Assignment.assignment_id);if(1==t.success){let e;e="group"==t.data.assignment_type?t.data.users.find((t=>t.user_id==this.getKullaniciDetaylari.user_id))?.scorm_scores:t.data.users.scorm_scores,this.Assignment.scorm.scorm_scores.total_checks_count=e.total_checks_count,this.Assignment.scorm.scorm_scores.total_errors_count=e.total_errors_count,this.Assignment.scorm.scorm_scores.total_mistake_count=e.total_mistake_count,this.Assignment.scorm.scorm_scores.total_score=parseInt(e.total_score),this.Assignment.scorm.scorm_scores.total_time=e.total_time}this.$store.commit("setLoading",!1)}catch(t){return this.$store.commit("setLoading",!1),void this.$toast.open({message:"Assignment detayları alınamadı!",type:"error",duration:3e3,dismissible:!0,position:"top"})}},activated(){},created(){}}},ye=pe,fe=(0,d.Z)(ye,ue,he,!1,null,"bc2002b6",null),Se=fe.exports,ve=function(){var t=this,e=t._self._c;return e("div",[e("section",{staticClass:"home-two-slide d-flex align-items-center"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-lg-12 col-12",attrs:{"data-aos":"fade-up"}},[e("div",{staticClass:"home-slide-face"},[e("div",{staticClass:"container"},[e("div",{staticClass:"header-two-title text-center",attrs:{"data-aos":"fade-up"}},[e("p",{staticClass:"tagline",staticStyle:{"margin-bottom":"-1rem"},style:t.Text1StyleObject},[t._v(" Assignments Report ")])]),e("div",{staticClass:"featured-courses-two",staticStyle:{"margin-bottom":"25px!important"}},[e("div",{staticClass:"row",staticStyle:{"justify-content":"center"}},[[e("div",{staticClass:"settings-menu p-0"},[e("div",{staticClass:"checkout-form"},[e("div",{staticClass:"tab-pane active show"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-6"},[e("div",{staticClass:"input-block"},[e("label",{staticClass:"form-control-label"},[t._v("Assignmnet Type")]),e("v-select",{attrs:{options:t.AssignmentTip,reduce:t=>t.name,label:"title"},on:{input:function(e){return t.AssigneeListele()}},model:{value:t.SeciliAssignmentTip,callback:function(e){t.SeciliAssignmentTip=e},expression:"SeciliAssignmentTip"}})],1)]),e("div",{staticClass:"col-md-6"},[e("div",{staticClass:"input-block"},[e("label",{staticClass:"form-control-label"},[t._v("Assignee")]),e("v-select",{attrs:{options:t.AssigneeListe,reduce:t=>t.name,label:"name"},on:{input:function(e){return t.Filtre()}},model:{value:t.SeciliAssignee,callback:function(e){t.SeciliAssignee=e},expression:"SeciliAssignee"}})],1)])]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-3"},[e("div",{staticClass:"input-block"},[e("label",{staticClass:"form-control-label"},[t._v("Start Date")]),e("date-picker",{staticStyle:{"padding-top":"4px",display:"inline"},style:t.InputStyleObject,attrs:{valueType:"YYYY-MM-DD",format:t.format,placeholder:"Start Date (Required)"},on:{change:function(e){return t.Filtre()}},scopedSlots:t._u([{key:"header",fn:function({emit:s}){return[e("button",{staticClass:"mx-btn mx-btn-text",on:{click:function(t){s(new Date)}}},[t._v("Bugün")])]}}]),model:{value:t.StartDate,callback:function(e){t.StartDate=e},expression:"StartDate"}})],1)]),e("div",{staticClass:"col-md-3"},[e("div",{staticClass:"input-block"},[e("label",{staticClass:"form-control-label"},[t._v("Due Date ")]),e("date-picker",{staticStyle:{"padding-top":"4px",display:"inline"},style:t.InputStyleObject,attrs:{valueType:"YYYY-MM-DD",format:t.format,placeholder:"Due Date (Required)"},on:{change:function(e){return t.Filtre()}},scopedSlots:t._u([{key:"header",fn:function({emit:s}){return[e("button",{staticClass:"mx-btn mx-btn-text",on:{click:function(t){s(new Date)}}},[t._v("Bugün")])]}}]),model:{value:t.DueDate,callback:function(e){t.DueDate=e},expression:"DueDate"}})],1)]),e("div",{staticClass:"col-md-6"},[e("div",{staticClass:"input-block"},[e("label",{staticClass:"form-control-label"},[t._v("Assignments")]),e("v-select",{attrs:{placeholder:"Select a Course",options:t.AssignmentListe,reduce:t=>t.title,label:"title"},on:{input:function(e){return t.TabloTemizle()}},model:{value:t.SeciliAssignment,callback:function(e){t.SeciliAssignment=e},expression:"SeciliAssignment"}})],1)])]),e("div",{staticClass:"about-button more-details text-center"},[e("button",{staticClass:"btn btn-primary btn-start THMbutton THMbuttonShadow",class:1==t.RaporButonAktif()?"":"li-disabled",style:t.Button1StyleObject,on:{click:function(e){return t.AssignmentRapor()}}},[t._v("Get Report ")])]),t.InnerLoading?e("section",{staticClass:"home-two-slide d-flex align-items-center",staticStyle:{"margin-top":"131px","justify-content":"center"}},[t._m(0)]):e("div",{staticClass:"table-responsive custom-table",staticStyle:{"margin-top":"15px"}},[0==t.RaporAnaTablo.length&&1==t.Hazir?e("h5",{staticStyle:{"text-align":"center"},style:t.Text1StyleObject},[t._v("There is no data.")]):t._e(),t.RaporAnaTablo.length>0?e("table",{staticClass:"table table-hover table-nowrap mb-0",style:t.TableStyleObject},[e("thead",[e("tr",[e("th",{staticClass:"text-center"},[t._v("#")]),e("th",[t._v("Student Name")]),"individual"==t.SeciliAssignmentTip?e("th",[t._v("Lesson Name")]):t._e(),e("th",{staticClass:"text-center"},[t._v("T.Checks")]),e("th",{staticClass:"text-center"},[t._v("T.Errors")]),e("th",{staticClass:"text-center"},[t._v("T.Mistakes")]),e("th",{staticClass:"text-center"},[t._v("Average Score")]),e("th",{staticClass:"text-center"},[t._v("T.Time")]),e("th",{staticClass:"text-center"},[t._v("Details")])])]),t._l(t.RaporAnaTablo,(function(s,i){return e("tbody",{key:i},[e("tr",{staticStyle:{height:"20px !important"}},[e("td",{staticClass:"text-center"},[t._v(t._s(i+1))]),e("td",[e("span",{staticClass:"title-course"},[t._v(t._s(s.name))])]),"individual"==t.SeciliAssignmentTip?e("td",[e("span",{staticClass:"title-course"},[t._v(t._s(s.scorm_name))])]):t._e(),e("td",{staticClass:"text-center"},[t._v(t._s(s.total_checks_count))]),e("td",{staticClass:"text-center"},[t._v(t._s(s.total_errors_count))]),e("td",{staticClass:"text-center"},[t._v(t._s(s.total_mistake_count))]),e("td",{staticClass:"text-center"},[t._v(t._s(t._f("sayi_format")(s.avg_score,2,!0))+"%")]),e("td",{staticClass:"text-center"},[t._v(t._s(t.millisToMinutesAndSeconds(s.total_time)))]),e("td",{staticClass:"text-center"},[t.DetayGoster.includes(i)?e("svg",{directives:[{name:"tippy",rawName:"v-tippy"}],staticClass:"main-grid-item-icon",staticStyle:{cursor:"pointer"},attrs:{title:"Hide Details",viewBox:"0 0 24 24",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},on:{click:function(e){return t.DetayGosterGizle(i)}}},[e("polyline",{attrs:{points:"17 11 12 6 7 11"}}),e("polyline",{attrs:{points:"17 18 12 13 7 18"}})]):e("svg",{directives:[{name:"tippy",rawName:"v-tippy"}],staticClass:"main-grid-item-icon",staticStyle:{cursor:"pointer"},attrs:{title:"Show Details",viewBox:"0 0 24 24",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},on:{click:function(e){return t.DetayGosterGizle(i)}}},[e("polyline",{attrs:{points:"7 13 12 18 17 13"}}),e("polyline",{attrs:{points:"7 6 12 11 17 6"}})])])]),e("tr",[t.DetayGoster.includes(i)?e("td",{attrs:{colspan:"9",id:i}},[t.DetayGoster.includes(i)?e("div",{attrs:{id:i}},[e("ReportUserDetails",{attrs:{DetailData:t.AssignmentDetayData,UserId:s.user_id,AssignmentId:s.assignment_id??0}})],1):t._e()]):t._e()])])}))],2):t._e()])])])])]],2)])])])])])])]),t.Modal?e("EditAssignment",{attrs:{Mod:0==t.Secilenler.length||1==t.Secilenler.length?"single":"multi",SingleEditIndex:t.SingleEditIndex}}):t._e()],1)},_e=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("span",{staticClass:"loader"})])}],Ce=function(){var t=this,e=t._self._c;return e("div",t._l(this.DetayData,(function(s){return e("div",{key:s.assignment_id,staticClass:"row border-bottom"},[e("div",{staticClass:"col-lg-3 d-flex"},[e("div",{staticClass:"card dash-info flex-fill",staticStyle:{background:"none",border:"none"}},[e("p",{staticStyle:{"margin-left":"23px","margin-bottom":"-15px","white-space":"normal","overflow-wrap":"break-word"},style:t.Text1StyleObject},[t._v(" Lesson: "+t._s(s.scorm_name??"-- -- --")+" ")]),e("div",{staticClass:"card-body"},[e("a",{staticStyle:{"font-size":"18px !important"},attrs:{href:"javascript:void(0);"}},[e("img",{staticClass:"img-fluid",staticStyle:{width:"auto",height:"140px"},attrs:{alt:"Img",src:s.scorm_image}})])])])]),e("div",{staticClass:"col-lg-9 d-flex"},[e("table",{staticClass:"table table-hover table-nowrap mb-0",style:t.TableStyleObject},[t._m(0,!0),"group"==s.assignment_type?[e("tbody",[e("tr",{staticStyle:{height:"20px !important"}},[e("td",[t._v("Total")]),e("td",{staticClass:"text-center"},[t._v(t._s(s.users[0].scorm_scores.total_score))]),e("td",{staticClass:"text-center"},[t._v(t._s(s.users[0].scorm_scores.total_checks_count))]),e("td",{staticClass:"text-center"},[t._v(t._s(s.users[0].scorm_scores.total_errors_count))]),e("td",{staticClass:"text-center"},[t._v(t._s(s.users[0].scorm_scores.total_mistake_count))]),e("td",{staticClass:"text-center"},[t._v(t._s(t.millisToMinutesAndSeconds(s.users[0].scorm_scores.total_time)))])]),0==s.users[0].scorm_scores.paginated_results.length?e("tr",{staticStyle:{height:"20px !important"}},[t._m(1,!0),t._m(2,!0)]):e("tr",{staticStyle:{height:"20px !important"}},[t._m(3,!0)])]),t._l(s.users[0].scorm_scores.paginated_results,(function(s,i){return e("tbody",{key:i},[e("tr",{staticStyle:{height:"20px !important"}},[e("td",[e("span",{staticClass:"title-course"},[t._v(t._s(s.page_name))])]),e("td",{staticClass:"text-center"},[t._v(t._s(Math.floor(100*s.score))+"%")]),e("td",{staticClass:"text-center"},[t._v(t._s(s.checks_count))]),e("td",{staticClass:"text-center"},[t._v(t._s(s.errors_count))]),e("td",{staticClass:"text-center"},[t._v(t._s(s.mistake_count))]),e("td",{staticClass:"text-center"},[t._v(t._s(t.millisToMinutesAndSeconds(s.time)))])])])}))]:[e("tbody",[e("tr",{staticStyle:{height:"20px !important"}},[e("td",[t._v("Total")]),e("td",{staticClass:"text-center"},[t._v(t._s(s.users.scorm_scores.total_score))]),e("td",{staticClass:"text-center"},[t._v(t._s(s.users.scorm_scores.total_checks_count))]),e("td",{staticClass:"text-center"},[t._v(t._s(s.users.scorm_scores.total_errors_count))]),e("td",{staticClass:"text-center"},[t._v(t._s(s.users.scorm_scores.total_mistake_count))]),e("td",{staticClass:"text-center"},[t._v(t._s(t.millisToMinutesAndSeconds(s.users.scorm_scores.total_time)))])]),0==s.users.scorm_scores.paginated_results.length?e("tr",{staticStyle:{height:"20px !important"}},[t._m(4,!0),t._m(5,!0)]):e("tr",{staticStyle:{height:"20px !important"}},[t._m(6,!0)])]),t._l(s.users.scorm_scores.paginated_results,(function(s,i){return e("tbody",{key:i},[e("tr",{staticStyle:{height:"20px !important"}},[e("td",[e("span",{staticClass:"title-course"},[t._v(t._s(s.page_name))])]),e("td",{staticClass:"text-center"},[t._v(t._s(Math.floor(100*s.score))+"%")]),e("td",{staticClass:"text-center"},[t._v(t._s(s.checks_count))]),e("td",{staticClass:"text-center"},[t._v(t._s(s.errors_count))]),e("td",{staticClass:"text-center"},[t._v(t._s(s.mistake_count))]),e("td",{staticClass:"text-center"},[t._v(t._s(t.millisToMinutesAndSeconds(s.time)))])])])}))]],2)])])})),0)},be=[function(){var t=this,e=t._self._c;return e("thead",[e("tr",[e("th",[t._v("Lesson")]),e("th",{staticClass:"text-center"},[t._v("Score")]),e("th",{staticClass:"text-center"},[t._v("Checks")]),e("th",{staticClass:"text-center"},[t._v("Errors")]),e("th",{staticClass:"text-center"},[t._v("Mistakes")]),e("th",{staticClass:"text-center"},[t._v("Time")])])])},function(){var t=this,e=t._self._c;return e("td",[e("span",{staticClass:"title-course"},[t._v("Activities")])])},function(){var t=this,e=t._self._c;return e("td",{staticClass:"text-center",attrs:{colspan:"5"}},[e("span",{staticClass:"title-course"},[t._v("There is no activities")])])},function(){var t=this,e=t._self._c;return e("td",{attrs:{colspan:"6"}},[e("span",{staticClass:"title-course"},[t._v("Avtivities")])])},function(){var t=this,e=t._self._c;return e("td",[e("span",{staticClass:"title-course"},[t._v("Activities")])])},function(){var t=this,e=t._self._c;return e("td",{staticClass:"text-center",attrs:{colspan:"5"}},[e("span",{staticClass:"title-course"},[t._v("There is no activities")])])},function(){var t=this,e=t._self._c;return e("td",{attrs:{colspan:"6"}},[e("span",{staticClass:"title-course"},[t._v("Avtivities")])])}],Ae={name:"ReportUserDetails",props:["DetailData","UserId","AssignmentId"],data(){return{Hazir:!1,DetayData:[],SistemTarihi:null,KayitSayisi:0,StartDate:null,DueDate:null,format:"DD.MM.YYYY"}},async mounted(){await this.KullaniciSkorlariGetir()},computed:{...(0,l.Se)(["CardStyleObject","Text1StyleObject","TableStyleObject"]),filteredAssignments(){return this.assignments.map((t=>{const e=t.users.filter((t=>t.user_id===this.targetUserId));return 0===e.length?null:{...t,users:e}})).filter((t=>null!==t))}},methods:{DateFormat(t){return st()(t).format("DD.MM.YYYY")},millisToMinutesAndSeconds(t){let e=Math.floor(t/6e4),s=(t%6e4/1e3).toFixed(0);return e<10&&(e=`0${e}`),s<10&&(s=`${e}`),`${e}:${s}`},async KullaniciSkorlariGetir(){try{"group"==this.DetailData[0].assignment_type?this.DetayData=this.DetailData.map((t=>{const e=t.users.filter((t=>t.user_id===this.UserId));return e.length>0?{...t,users:e}:null})).filter((t=>null!==t)):this.DetayData=this.DetailData.filter((t=>t.assignment_id==this.AssignmentId))}catch(t){console.log("Assignment Göster",t)}},activated(){},created(){}}},De=Ae,ke=(0,d.Z)(De,Ce,be,!1,null,"8d49ab82",null),we=ke.exports,xe={name:"AssignmentReport",components:{DatePicker:xt.Z,ReportUserDetails:we},data(){return{Hazir:!1,InnerLoading:!1,AssignmentTip:[{name:"group",title:"Group"},{name:"individual",title:"Individual"}],SeciliAssignmentTip:null,GroupAssignments:[],IndividualAssignments:[],AssigneeListe:[],SeciliAssignee:null,AssignmentListe:[],SeciliAssignment:null,AssignmentsGosterim:[],SistemTarihi:null,StartDate:null,DueDate:null,format:"DD.MM.YYYY",DetayGoster:[],Modal:!1,AssignmentDetayData:[],RaporAnaTablo:[]}},async beforeMount(){await this.SistemTarihiGetir(),this.IlkYukleme()},async mounted(){const t="teacher"==this.getRol?this.getOkulAyarlar.OgretmenMenu5:0;0!=t?this.SistemTarihiGetir():this.$router.push({path:"/home"})},computed:{...(0,l.Se)(["getKullaniciDetaylari","getRol","getOkulAyarlar","Button1StyleObject","Button2StyleObject","Text1StyleObject","InputStyleObject","TableStyleObject","InputStyleObject","SaveButtonStyleObject"]),ToplamKayitSayisi(){return this.KayitSayisi}},methods:{DateFormat(t){return st()(t).format("DD.MM.YYYY")},TabloTemizle(){this.Hazir=!1,this.RaporAnaTablo=[]},IsExpired(t){var e=new Date(this.SistemTarihi),s=new Date(t);return!(e.getTime()>s.getTime())},millisToMinutesAndSeconds(t){let e=Math.floor(t/6e4),s=(t%6e4/1e3).toFixed(0);return e<10&&(e=`0${e}`),s<10&&(s=`${e}`),`${e}:${s}`},DetayGosterGizle(t){const e=this.DetayGoster.indexOf(t);e>-1?this.DetayGoster.splice(e,1):this.DetayGoster.push(t)},Durum(t,e){var s=new Date(this.SistemTarihi),i=new Date(t),a=new Date(e);return i.getTime()>s.getTime()?"Not Started":a.getTime()({...t,title:t.assignment_name+" ( SD: "+t.start_date.split(" ")[0]+" )"}))));const e=await E.AssignmentsGetir("individual");1==e.success&&(this.IndividualAssignments=e.data.data,this.IndividualAssignments=this.IndividualAssignments.map((t=>({...t,title:t.assignment_name+" ( SD: "+t.start_date.split(" ")[0]+" )"}))))}catch(t){return void this.$toast.open({message:"Assignment listesi alınamadı!",type:"error",duration:3e3,dismissible:!0,position:"top"})}},async AssigneeListele(){try{if(this.AssignmentListe=[],this.AssigneeListe=[],this.SeciliAssignee=null,this.SeciliAssignment=null,this.TabloTemizle(),null!=this.SeciliAssignmentTip){const t="group"==this.SeciliAssignmentTip?this.GroupAssignments.map((({name:t})=>({name:t}))):this.IndividualAssignments.map((({name:t})=>({name:t}))),e=[...new Map(t.map((t=>[JSON.stringify(t),t]))).values()];this.AssigneeListe=e}}catch(t){console.log("Assignee Liste Hatası",t)}},Filtre(){if(this.AssignmentListe=[],this.SeciliAssignment=null,this.TabloTemizle(),null!=this.SeciliAssignmentTip&&null!=this.SeciliAssignee){const t="group"==this.SeciliAssignmentTip?this.GroupAssignments:this.IndividualAssignments,e=t.map((t=>({...t,due_date:st()(t.end_date).format("YYYY-MM-DD"),title:t.assignment_name+" ( SD: "+t.start_date.split(" ")[0]+" )"}))).map((({assignment_name:t,name:e,start_date:s,due_date:i,title:a})=>({assignment_name:t,name:e,start_date:s,due_date:i,title:a}))),s=[...new Map(e.map((t=>[JSON.stringify(t),t]))).values()];let i=[],a={};this.StartDate&&(a.key="start_date",a.operator=">=",a.value=this.StartDate.split(" ")[0],i.push(a)),a={},this.DueDate&&(a.key="end_date",a.operator="<=",a.value=this.DueDate.split(" ")[0],i.push(a)),a={},null!=this.SeciliAssignee&&(a.key="name",a.operator="==",a.value=this.SeciliAssignee,i.push(a));const n=this.Filtre_DinamikParametre(s,i);this.AssignmentListe=n}},Filtre_DinamikParametre(t,e){return t.filter((t=>e.every((e=>{const{key:s,operator:i,value:a}=e,n="date"==s?t[s]?.split(" ")[0]:t[s];switch(i){case"==":return n==a;case">=":return n>=a;case"<=":return n<=a;case">":return n>a;case"<":return nt.title==this.SeciliAssignment&&t.name==this.SeciliAssignee));t=s.map((t=>t.assignment_id));const i=[];for(const n of t){const t=await E.AssignmentSkorGetir(n);i.push(t.data)}this.AssignmentDetayData=i;let a=[];if("group"==this.SeciliAssignmentTip){for(const t of i)a=[...a,...t.users];for(const t of a){const e=a.filter((e=>e.user_id===t.user_id));let s=0,i=0,n=0,r=0,o=0;for(let t=0;t[JSON.stringify(t),t]))).values()],this.Hazir=!0,this.InnerLoading=!1}else{for(const t of i){const e=i.filter((e=>e.users.user_id===t.users.user_id));for(let t=0;t[JSON.stringify(t),t]))).values()],this.Hazir=!0,this.InnerLoading=!1}},activated(){},created(){}}},Oe=xe,Te=(0,d.Z)(Oe,ve,_e,!1,null,"09c5ee84",null),je=Te.exports,Ie=function(){var t=this,e=t._self._c;return e("div",[e("div",{ref:"content",attrs:{id:"content"}},[t.isReady?e("nav",{attrs:{role:"navigation"}},[e("div",{staticClass:"menu"},[e("div",{staticClass:"sizing-btns THMbutton THMbuttonShadow",style:t.Button1StyleObject,on:{click:function(e){return t.fit()}}},[t._v(t._s(t.isFit?"Original Size":"Fit to Window"))]),"teacher"!==this.getRol&&"demo"==this.getKullaniciDetaylari.title?e("div",{staticClass:"save-btn THMbutton THMbuttonShadow",staticStyle:{cursor:"pointer"},style:t.Button2StyleObject,on:{click:function(e){return t.saveAndExit()}}},[t._v(" Exit ")]):e("div",{staticClass:"save-btn THMbutton THMbuttonShadow",staticStyle:{cursor:"pointer"},style:t.Button2StyleObject,on:{click:function(e){return t.saveAndExit()}}},[t._v("Save and Exit")])])]):t._e(),t.isReady?t._e():e("section",{staticClass:"home-two-slide d-flex align-items-center",staticStyle:{"margin-top":"131px","justify-content":"center"}},[t._m(0)]),t.isLoaded?e("iframe",{ref:"iframe",style:[t.styleFrame,{opacity:t.isReady?1:0}],attrs:{id:"iframe",allowfullscreen:"allowfullscreen",src:`https://content.ueslms.com/scorms/${t.ScormViewData.scormCode}/index_new.html`}}):t._e()]),e("div")])},Le=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("span",{staticClass:"loader"})])}],Me={name:"Scorm",data(){return{isLoaded:!1,isReady:!1,state:null,isFit:!0,styleFrame:{left:0,transform:0},scormWidth:0,scormHeight:0,ScormViewData:{}}},computed:{...(0,l.rn)(["getScormView","getRol"]),...(0,l.Se)(["getKullaniciDetaylari","Button1StyleObject","Button2StyleObject","ScrollBarColor"])},methods:{sentState(){if(!this.state)return;const t=this.$refs.iframe.contentWindow||this.$refs.iframe.contentDocument,e=`SET_STATE;|${this.state}`;t.postMessage(e,"*"),console.log("SENT STATE (in app)")},getState(){const t={user_id:Number(this.$store.state.KullaniciDetaylari.user_id),scorm_id:Number(this.ScormViewData.scorm_id),stateable_type:this.ScormViewData.packageType?this.ScormViewData.packageType:"package",stateable_id:Number(this.ScormViewData.assignment_id)};E.loadState(t).then((t=>{t[0]&&(this.state=t[0].state),this.isLoaded=!0})).catch((t=>{console.log("ERR",t)}))},saveStateScore(t,e){const s={user_id:Number(this.$store.state.KullaniciDetaylari.user_id),scorm_id:Number(this.ScormViewData.scorm_id),stateable_type:this.ScormViewData.packageType?this.ScormViewData.packageType:"package",stateable_id:Number(this.ScormViewData.assignment_id),state:t,score:`{"score": ${JSON.stringify(e)}}`};"teacher"!==this.getRol&&"demo"!==this.getKullaniciDetaylari.title?E.saveStateScore(s).then((t=>{this.$router.go(-1)})).catch((t=>{console.log("ERR",t)})):this.$router.go(-1)},fit(){this.isFit=!this.isFit,this.onResize()},onResize(){const t=this.$refs.content.offsetWidth,e=this.$refs.content.offsetHeight-50;let s=t,i=this.scormWidth,a=this.scormWidth,n=t/this.scormWidth>e/this.scormHeight;if(this.isFit){n?(s=e,i=this.scormHeight):(s=t,i=this.scormWidth),this.styleFrame.margin="0";const r=s/i;this.styleFrame.left=(t-a*r)/2+"px",this.styleFrame.transform=`scale(${r})`}else this.styleFrame.left="0",this.styleFrame.right="0",this.styleFrame.margin="auto",this.styleFrame.transform="scale(1)",this.$refs.content.style.overflowX="auto"},fillResize(t,e){this.$refs.iframe&&(this.scormWidth=t+40,this.scormHeight=e+40,this.$refs.iframe.style.width=this.scormWidth-20+"px",this.$refs.iframe.style.height=this.scormHeight-20+"px",this.onResize(),this.isReady=!0)},saveAndExit(){this.isReady=!1;const t=this.$refs.iframe.contentWindow||this.$refs.iframe.contentDocument;t.postMessage("SAVEANDCLOSE","*")},onMessageReceived(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;|")){const 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:")){const e=t.data.split("RESIZE:"),s=e[1].split(";")[0],i=e[1].split(";")[1];this.fillResize(parseFloat(s),parseFloat(i))}}},async beforeMount(){this.$route.params.ScormView?(this.ScormViewData=this.$route.params.ScormView,this.$store.commit("setScormView",this.$route.params.ScormView),this.InnerLoading=!1,this.ScormViewData.scormCode?this.getState():this.$router.push("/")):(this.ScormViewData=await this.getScormView,this.InnerLoading=!1,this.ScormViewData.scormCode?this.getState():this.$router.push("/"))},mounted(){document.body.style.overflowY="auto",window.addEventListener("resize",this.onResize),window.addEventListener("message",this.onMessageReceived,!1)},beforeDestroy(){document.body.style.overflowY="hidden",window.removeEventListener("resize",this.onResize),window.removeEventListener("message",this.onMessageReceived)}},Ge=Me,$e=(0,d.Z)(Ge,Ie,Le,!1,null,"93640a48",null),Re=$e.exports,Ke=function(){var t=this,e=t._self._c;return e("div",[t.Hazir?t._e():e("section",{staticClass:"home-two-slide d-flex align-items-center",staticStyle:{"margin-top":"131px","justify-content":"center"}},[t._m(0)]),t.Hazir?e("section",{staticClass:"home-two-slide d-flex align-items-center"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-lg-12 col-12",attrs:{"data-aos":"fade-up"}},[e("div",{staticClass:"home-slide-face"},[e("div",{staticClass:"container"},[e("div",{staticClass:"header-two-title text-center",attrs:{"data-aos":"fade-up"}},[e("p",{staticClass:"tagline",staticStyle:{"margin-bottom":"-1rem"},style:t.Text1StyleObject},[t._v(" Resources ")])]),e("div",{staticClass:"featured-courses-two",staticStyle:{"margin-bottom":"25px!important"}},[e("div",{staticClass:"row",staticStyle:{"justify-content":"center"}},[e("div",{staticClass:"dash-pagination"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col-4",staticStyle:{"margin-top":"-25px"}},["parent"!==t.Gosterim?e("a",{staticClass:"btn btn-primary btn-start THMbutton THMbuttonShadow",style:t.Button1StyleObject,attrs:{href:"#"},on:{click:function(e){return t.GeriGit()}}},[e("i",{staticClass:"fas fa-arrow-left ms-2"}),t._v(" Back ")]):t._e()]),e("div",{staticClass:"col-4"},[e("div",{staticClass:"fade-up",staticStyle:{"justify-items":"center"}},[e("div",{staticClass:"banner-content"},[e("form",{staticClass:"form"},[e("div",{staticClass:"input-group"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.Aranan,expression:"Aranan"}],staticClass:"form-control",attrs:{type:"email",placeholder:"Search"},domProps:{value:t.Aranan},on:{keyup:t.AramaYap,input:function(e){e.target.composing||(t.Aranan=e.target.value)}}})])])])])]),e("div",{staticClass:"col-4"},[e("div",{staticClass:"header-two-title text-center",attrs:{"data-aos":"fade-up"}},[e("p",{staticClass:"tagline",staticStyle:{"margin-bottom":"-1.5rem","text-align":"end"},style:t.Text1StyleObject},[t._v(" "+t._s(t.BaslikGetir())+" ")])])])])]),"parent"==t.Gosterim?[0==t.ParentData.length?e("h5",{staticStyle:{"text-align":"center"},style:t.Text1StyleObject},[t._v("There is no resources.")]):t._e(),t._l(t.ParentData,(function(s){return e("div",{key:s.id,staticClass:"col-xl-2 col-lg-4 col-md-4 col-sm-6 d-flex",staticStyle:{cursor:"pointer"},on:{click:function(e){return t.childResources(s.id)}}},[e("div",{staticClass:"featured-details-two",style:t.CardStyleObject},[e("div",{staticClass:"product-item-two"},[e("div",{staticClass:"product-img-two"},[e("a",{staticStyle:{"font-size":"18px !important"},attrs:{href:"javascript:void(0);"}},[e("img",{staticClass:"img-fluid",attrs:{alt:"Img",src:s.image}})])]),e("div",{staticClass:"course-details-content"},[e("div",[e("p",{staticClass:"me-3"},[t._v(t._s(s.name))])])])])])])}))]:t._e(),"child"==t.Gosterim?[0==t.ChildData.length?e("h5",{staticStyle:{"text-align":"center"},style:t.Text1StyleObject},[t._v("There is no details.")]):t._e(),t._l(t.ChildData,(function(s){return e("div",{key:s.id,staticClass:"col-xl-2 col-lg-2 col-md-3 col-sm-4 d-flex",staticStyle:{cursor:"pointer"},on:{click:function(e){return t.getScorms(s.id)}}},[e("div",{staticClass:"featured-details-two",style:t.CardStyleObject},[e("div",{staticClass:"product-item-two"},[e("div",{staticClass:"product-img-two"},[e("a",{staticStyle:{"font-size":"18px !important"},attrs:{href:"javascript:void(0);"}},[e("img",{staticClass:"img-fluid",attrs:{alt:"Img",src:s.image}})])]),e("div",{staticClass:"course-details-content"},[e("div",[e("p",{staticClass:"me-3"},[t._v(t._s(s.name))])])])])])])}))]:t._e(),"scorm"==t.Gosterim?e("Courses",{attrs:{Gosterim:"resource"}}):t._e()],2)])])])])])])]):t._e()])},He=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("span",{staticClass:"loader"})])}],Ye={name:"resources",components:{Courses:oe},data(){return{Aranan:"",AramaSonuclari:[],Hazir:!1,Resources:[],ParentData:[],ParentId:null,ChildData:[],ChildId:null,Scorms:[],ScormData:[],Gosterim:"parent",SistemTarihi:null,GecerliSayfa:1,KayitSayisi:0,InnerLoading:!0}},async beforeMount(){const t="teacher"==this.getRol?this.getOkulAyarlar.OgretmenMenu3:this.getOkulAyarlar.OgrenciMenu3;0!=t?(await this.SistemTarihiGetir(),await this.getResources()):this.$router.push({path:"/home"})},computed:{...(0,l.Se)(["getKullaniciDetaylari","getOkulAyarlar","getRol","getScormView","Button1StyleObject","CardStyleObject","Text1StyleObject"]),ToplamKayitSayisi(){return this.KayitSayisi}},methods:{DateFormat(t){return st()(t).format("DD.MM.YYYY")},async SistemTarihiGetir(){try{const t=await ns.SistemTarihiGetir();t&&(this.SistemTarihi=t)}catch(t){return}},BaslikGetir(){return this.ParentId>0&&"child"==this.Gosterim?this.Resources.find((t=>t.id==this.ParentId)).name:this.ChildId>0&&"scorm"==this.Gosterim?this.Resources.find((t=>t.id==this.ChildId)).name:void 0},async getResources(){try{this.$store.commit("setLoading",!0);const t=await E.getCollections();this.Resources=t.data.data,this.parentResources(),this.$store.commit("setLoading",!1),this.Hazir=!0}catch(t){this.Hazir=!0,this.$store.commit("setLoading",!1),console.log("Colletion yüklenemedi")}},async parentResources(){this.KayitSayisi=0,"/scormView"==this.$store.state.previousRoute?(this.ParentId=this.Resources.find((t=>t.id==this.ChildId)),this.getScorms(this.getScormView.assignment_id),this.childResources(this.Resources.find((t=>t.id==this.ChildId)).parent),this.Gosterim="scorm"):this.Gosterim="parent";try{const t=this.Resources;this.ParentData=t.filter((t=>0==t.parent&&213!==t.id&&531!==t.id&&530!==t.id)),this.KayitSayisi=t.length}catch(t){return void console.log("Resouces hata:",t)}},childResources(t){this.KayitSayisi=0,this.Gosterim="child",this.ParentId=t;try{const e=this.Resources;this.ChildData=e.filter((e=>e.parent==t)),this.KayitSayisi=this.ChildData.length}catch(e){return void console.log("Resouces hata:",e)}},async getScorms(t){this.Gosterim="scorm",this.ChildId=t,this.ScormData=[];try{this.$store.commit("setLoading",!0);const e=await E.getScorms(t);this.ScormData=e.data,this.Scorms=e.data,this.$store.commit("setLoading",!1)}catch(e){this.$store.commit("setLoading",!1),console.log("Scorm Data yüklenemedi")}},GeriGit(){"child"==this.Gosterim?(this.Gosterim="parent",this.ParentId=null,this.Aranan=""):"scorm"==this.Gosterim&&(this.Gosterim="child",this.Aranan="")},DerseGit(t){const e=this.ScormData.find((e=>e.id==t)),s={scorm_id:e.id,assignment_id:e.collection,scormTitle:e.name,scormDesc:e.desc,scormCode:e.scorm_code,packageType:"scorm",timestamp:null};this.$router.push({name:"scormView",params:{ScormView:s}})},AramaYap(){if(""!=this.Aranan){if("parent"==this.Gosterim&&0==this.ParentData.length)return;if("child"==this.Gosterim&&0==this.ChildData.length)return;if("scorm"==this.Gosterim&&0==this.ScormData.length)return;const t="parent"==this.Gosterim?this.Resources.filter((t=>0==t.parent&&213!==t.id&&531!==t.id&&530!==t.id)):"child"==this.Gosterim?this.Resources.filter((t=>t.parent==this.ParentId)):this.ScormData,e=this.Aranan.toLowerCase(),s=t.filter((t=>this.searchInSpecificKeys(t,e)));"parent"==this.Gosterim?this.ParentData=s:"child"==this.Gosterim?this.ChildData=s:this.ScormData=s}else"parent"==this.Gosterim?this.parentResources():"child"==this.Gosterim?this.childResources(this.ParentId):this.ScormData=this.Scorms;this.KayitSayisi=this.ParentData.length},deepSearch(t,e){for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)){const i=t[s];if(s.toLowerCase().includes(e)||"string"===typeof i&&i.toLowerCase().includes(e)||"number"===typeof i&&i.toString().includes(e))return!0;if("object"===typeof i&&null!==i&&this.deepSearch(i,e))return!0}return!1},searchInSpecificKeys(t,e){const s=["name"];for(const i of s)if(Object.prototype.hasOwnProperty.call(t,i)){const s=t[i];if("string"===typeof s&&s.toLowerCase().includes(e))return!0}if(t.scorm)for(const i of s)if(Object.prototype.hasOwnProperty.call(t.scorm,i)){const s=t.scorm[i];if("string"===typeof s&&s.toLowerCase().includes(e))return!0}return!1},activated(){},created(){}}},Ee=Ye,ze=(0,d.Z)(Ee,Ke,He,!1,null,"361ee496",null),Be=ze.exports,Pe=function(){var t=this,e=t._self._c;return e("div",[t.Hazir?t._e():e("section",{staticClass:"home-two-slide d-flex align-items-center",staticStyle:{"margin-top":"131px","justify-content":"center"}},[t._m(0)]),t.Hazir?e("section",{staticClass:"home-two-slide d-flex align-items-center"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-lg-12 col-12",attrs:{"data-aos":"fade-up"}},[e("div",{staticClass:"home-slide-face"},[e("div",{staticClass:"container"},[e("div",{staticClass:"header-two-title text-center",attrs:{"data-aos":"fade-up"}},[e("p",{staticClass:"tagline",staticStyle:{"margin-bottom":"-1rem"},style:t.Text1StyleObject},[t._v(" Library (myEDULIBRARY) ")])]),e("div",{staticClass:"featured-courses-two",staticStyle:{"margin-bottom":"25px!important"}},[e("div",{staticClass:"row",staticStyle:{"justify-content":"center"}},[e("div",{staticClass:"dash-pagination"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col-4"}),e("div",{staticClass:"col-4"},[e("div",{staticClass:"fade-up",staticStyle:{"justify-items":"center"}},[e("div",{staticClass:"banner-content"},[e("form",{staticClass:"form"},[e("div",{staticClass:"input-group"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.Aranan,expression:"Aranan"}],staticClass:"form-control",attrs:{type:"email",placeholder:"Search"},domProps:{value:t.Aranan},on:{keyup:t.AramaYap,input:function(e){e.target.composing||(t.Aranan=e.target.value)}}})])])])])]),e("div",{staticClass:"col-4"})])]),[0==t.ScormData.length?e("h5",{staticStyle:{"text-align":"center"},style:t.Text1StyleObject},[t._v("There is no contents.")]):t._e(),t._l(t.ScormData,(function(s){return e("div",{key:s.id,staticClass:"col-xl-2 col-lg-3 col-md-4 col-sm-4 d-flex",staticStyle:{cursor:"pointer"},on:{click:function(e){return t.DerseGit(s.id)}}},[e("div",{staticClass:"featured-details-two",style:t.CardStyleObject},[e("div",{staticClass:"product-item-two"},[e("div",{staticClass:"product-img-two"},[e("a",{staticStyle:{"font-size":"18px !important"},attrs:{href:"javascript:void(0);"}},[e("img",{staticClass:"img-fluid",attrs:{alt:"Img",src:s.image}})])]),e("div",{staticClass:"course-details-content"},[e("div",[e("p",{staticClass:"me-3"},[t._v(t._s(s.name))])])])])])])}))]],2)])])])])])])]):t._e()])},Fe=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("span",{staticClass:"loader"})])}],Ne={name:"library",data(){return{Aranan:"",AramaSonuclari:[],Hazir:!1,Scorms:[],ScormData:[],GecerliSayfa:1,KayitSayisi:0,InnerLoading:!0}},async beforeMount(){const t="teacher"==this.getRol?this.getOkulAyarlar.OgretmenMenu1:this.getOkulAyarlar.OgrenciMenu1;0!=t?await this.getScorms():this.$router.push({path:"/home"})},computed:{...(0,l.Se)(["getKullaniciDetaylari","getScormView","getRol","getOkulAyarlar","Button1StyleObject","CardStyleObject","Text1StyleObject"]),ToplamKayitSayisi(){return this.KayitSayisi}},methods:{DateFormat(t){return st()(t).format("DD.MM.YYYY")},async getScorms(){this.ScormData=[];try{this.$store.commit("setLoading",!0);const t=await E.getScorms(0,"reader");this.ScormData=t.data,this.Scorms=t.data,this.$store.commit("setLoading",!1),this.Hazir=!0}catch(t){this.Hazir=!0,this.$store.commit("setLoading",!1),console.log("Scorm Data yüklenemedi")}},DerseGit(t){const e=this.ScormData.find((e=>e.id==t)),s={scorm_id:e.id,assignment_id:e.collection,scormTitle:e.name,scormDesc:e.desc,scormCode:e.scorm_code,packageType:"scorm",timestamp:null};this.$router.push({name:"scormView",params:{ScormView:s}})},AramaYap(){if(""!=this.Aranan){const t=this.Scorms,e=this.Aranan.toLowerCase(),s=t.filter((t=>this.searchInSpecificKeys(t,e)));this.ScormData=s}else this.ScormData=this.Scorms;this.KayitSayisi=this.ScormData.length},deepSearch(t,e){for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)){const i=t[s];if(s.toLowerCase().includes(e)||"string"===typeof i&&i.toLowerCase().includes(e)||"number"===typeof i&&i.toString().includes(e))return!0;if("object"===typeof i&&null!==i&&this.deepSearch(i,e))return!0}return!1},searchInSpecificKeys(t,e){const s=["name"];for(const i of s)if(Object.prototype.hasOwnProperty.call(t,i)){const s=t[i];if("string"===typeof s&&s.toLowerCase().includes(e))return!0}if(t.scorm)for(const i of s)if(Object.prototype.hasOwnProperty.call(t.scorm,i)){const s=t.scorm[i];if("string"===typeof s&&s.toLowerCase().includes(e))return!0}return!1},activated(){},created(){}}},Ve=Ne,Ue=(0,d.Z)(Ve,Pe,Fe,!1,null,"5558890d",null),Ze=Ue.exports,Je=function(){var t=this,e=t._self._c;return e("div",[t.Hazir?t._e():e("section",{staticClass:"home-two-slide d-flex align-items-center",staticStyle:{"margin-top":"131px","justify-content":"center"}},[t._m(0)]),t.Hazir?e("section",{staticClass:"home-two-slide d-flex align-items-center"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-lg-12 col-12",attrs:{"data-aos":"fade-up"}},[e("div",{staticClass:"home-slide-face"},[e("div",{staticClass:"container"},[e("div",{staticClass:"header-two-title text-center",attrs:{"data-aos":"fade-up"}},[e("p",{staticClass:"tagline",staticStyle:{"margin-bottom":"-1rem"},style:t.Text1StyleObject},[t._v(" Interactive Readers ("+t._s(this.Scorms[0].collection_name)+") ")])]),e("div",{staticClass:"featured-courses-two",staticStyle:{"margin-bottom":"25px!important"}},[e("div",{staticClass:"row",staticStyle:{"justify-content":"center"}},[e("div",{staticClass:"dash-pagination"},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col-4"}),e("div",{staticClass:"col-4"},[e("div",{staticClass:"fade-up",staticStyle:{"justify-items":"center"}},[e("div",{staticClass:"banner-content"},[e("form",{staticClass:"form"},[e("div",{staticClass:"input-group"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.Aranan,expression:"Aranan"}],staticClass:"form-control",attrs:{type:"email",placeholder:"Search"},domProps:{value:t.Aranan},on:{keyup:t.AramaYap,input:function(e){e.target.composing||(t.Aranan=e.target.value)}}})])])])])]),e("div",{staticClass:"col-4"})])]),t._l(t.GrupData,(function(s,i){return e("div",{key:i,staticClass:"row text-center",staticStyle:{"justify-content":"center"}},[e("h5",{staticStyle:{"text-align":"center"},style:t.Text1StyleObject},[t._v(t._s(i))]),t._l(s,(function(s){return e("div",{key:s.id,staticClass:"col-lg-3 col-md-4 col-sm-4 d-flex",staticStyle:{cursor:"pointer","margin-top":"15px"},on:{click:function(e){return t.DerseGit(s.id)}}},[e("div",{staticClass:"featured-details-two",style:t.CardStyleObject},[e("div",{staticClass:"product-item-two"},[e("div",{staticClass:"product-img-two"},[e("a",{staticStyle:{"font-size":"18px !important"},attrs:{href:"javascript:void(0);"}},[e("img",{staticClass:"img-fluid",attrs:{alt:"Img",src:s.image}})])]),e("div",{staticClass:"course-details-content"},[e("div",[e("p",{staticClass:"me-3"},[t._v(t._s(s.name))])])])])])])}))],2)}))],2)])])])])])])]):t._e()])},qe=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("span",{staticClass:"loader"})])}],We={name:"iaReader",data(){return{ScormId:this.$route.params.id,Aranan:"",AramaSonuclari:[],Hazir:!1,Scorms:[],ScormData:[],GecerliSayfa:1,KayitSayisi:0,InnerLoading:!0}},async beforeMount(){const t="teacher"==this.getRol?1:0;0!=t&&this.$route.params.id?(this.ScormId=this.$route.params.id,await this.getScorms()):this.$router.push({path:"/home"})},computed:{...(0,l.Se)(["getKullaniciDetaylari","getScormView","getRol","getOkulAyarlar","Button1StyleObject","CardStyleObject","Text1StyleObject","TableStyleObject"]),GrupData(){return this.ScormData.reduce(((t,e)=>(t[e.desc]||(t[e.desc]=[]),t[e.desc].push(e),t)),{})}},methods:{DateFormat(t){return st()(t).format("DD.MM.YYYY")},async getScorms(){this.ScormData=[];try{this.$store.commit("setLoading",!0);const t=await E.getScorms(this.ScormId,"IAR");this.ScormData=t.data,this.Scorms=t.data,this.$store.commit("setLoading",!1),this.Hazir=!0}catch(t){this.Hazir=!0,this.$store.commit("setLoading",!1),console.log("Scorm Data yüklenemedi")}},DerseGit(t){const e=this.ScormData.find((e=>e.id==t)),s={scorm_id:e.id,assignment_id:e.collection,scormTitle:e.name,scormDesc:e.desc,scormCode:e.scorm_code,packageType:"scorm",timestamp:null};this.$router.push({name:"scormView",params:{ScormView:s}})},AramaYap(){if(""!=this.Aranan){const t=this.Scorms,e=this.Aranan.toLowerCase(),s=t.filter((t=>this.searchInSpecificKeys(t,e)));this.ScormData=s}else this.ScormData=this.Scorms;this.KayitSayisi=this.ScormData.length},deepSearch(t,e){for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)){const i=t[s];if(s.toLowerCase().includes(e)||"string"===typeof i&&i.toLowerCase().includes(e)||"number"===typeof i&&i.toString().includes(e))return!0;if("object"===typeof i&&null!==i&&this.deepSearch(i,e))return!0}return!1},searchInSpecificKeys(t,e){const s=["name"];for(const i of s)if(Object.prototype.hasOwnProperty.call(t,i)){const s=t[i];if("string"===typeof s&&s.toLowerCase().includes(e))return!0}if(t.scorm)for(const i of s)if(Object.prototype.hasOwnProperty.call(t.scorm,i)){const s=t.scorm[i];if("string"===typeof s&&s.toLowerCase().includes(e))return!0}return!1},activated(){},created(){}}},Qe=We,Xe=(0,d.Z)(Qe,Je,qe,!1,null,"5e7b3056",null),ts=Xe.exports;i["default"].use($.ZP);const es=[{name:"login",path:"/login",component:F,meta:{auth:!1}},{name:"mainPage",path:"/",component:bt,meta:{auth:!0}},{name:"home",path:"/home",component:bt,meta:{auth:!0}},{name:"assignments",path:"/assignments",component:Ut,meta:{auth:!0}},{name:"createAssignment",path:"/assignment/create",component:de,meta:{auth:!0,roles:["teacher"]}},{name:"assignmentDetails",path:"/assignmentDetails",component:Se,meta:{auth:!0,roles:["student"]}},{name:"assignmentReport",path:"/assignment/report",component:je,meta:{auth:!0,roles:["teacher"]}},{name:"scormView",path:"/scormView",component:Re,meta:{auth:!0}},{name:"interActiveReaders",path:"/interActiveReaders/:id",component:ts,meta:{auth:!0,roles:["teacher"]}},{name:"links",path:"/links",component:ut,meta:{auth:!0}},{name:"resources",path:"/resources",component:Be,meta:{auth:!0}},{name:"library",path:"/library",component:Ze,meta:{auth:!0}},{path:"*",redirect:"/home"}],ss=new $.ZP({routes:es});ss.beforeEach((async(t,e,s)=>{let i=null;try{i=await os.cookie.getKullaniciDetaylari()}catch(a){return void s("/login")}if(rs.commit("SET_PREVIOUS_ROUTE",e.fullPath),"auth"in t.meta&&t.meta.auth&&!i)return s("/login");if("auth"in t.meta&&!t.meta.auth){if(i)return s({name:"home"});s()}else if("auth"in t.meta&&t.meta.auth&&i){if("/login"===t.path)return void await ss.replace("/home");s()}else s()}));const is=G().create();is.defaults.timeout=3e5,is.interceptors.request.use((t=>{const e=rs.state.token;return t.baseURL="https://uescustomlms-api.ey.r.appspot.com",t.headers.Authorization=`Bearer ${e}`,t})),is.interceptors.response.use((t=>t.data),(t=>{const e=t.response.status;throw 200!==e&&"JsonWebTokenError"===t.response.data.message&&(rs.commit("setLoading",!1),rs.dispatch("logout"),ss.push({name:"login"}).catch((()=>{}))),t}));var as=()=>is,ns={async OkulAyarlar(t){const e=await as().post("lms/SchoolConfig",t),s=C().AES.decrypt(e.dataObj,rs.state.Passphrase).toString(C().enc.Utf8),i=JSON.parse(s);return i},async UesLmsTokenAl(t){try{const e=await Y().post("/authenticate",t);return"Request failed with status code 401"===e.message?{success:!1,data:e.message}:(rs.commit("setToken",e.data),rs.commit("setStorageToken",e.data),await rs.dispatch("actionToken",{token:e.data.token,expiresIn:216e3}),{success:!0,data:e.data})}catch(e){return{success:!1,data:e.message}}},async UesLmsTokenYenile(){try{const t={email:rs.state.users.KullaniciDetaylari.KullaniciAdi,password:rs.state.users.KullaniciDetaylari.Sifre,api_key:rs.state.OkulAyarlar.ApiKey},e=await Y().post("/authenticate",t);return"Request failed with status code 401"===e.message?{success:!1,data:e.message}:(rs.commit("setToken",e.data),rs.commit("setStorageToken",e.data),await rs.dispatch("actionToken",{token:e.data.token,expiresIn:216e3}),{success:!0,data:e.data})}catch(t){return{success:!1,data:t.message}}},async KullaniciBilgiAl(t,e){try{const s=await Y().post("/user"),i=s.data.data;return i.KullaniciAdi=t,i.Sifre=e,rs.commit("setKullaniciDetaylari",i),rs.commit("setStorageKullaniciDetaylari",i),{success:!0}}catch(s){return{success:!1,data:s.message}}},async OgrenimAraclariGetir(t){const e=JSON.stringify(t);let s=C().AES.encrypt(e,rs.state.Passphrase).toString();const i={dataObj:s},a=await as().post("lms/LearningTools",i),n=C().AES.decrypt(a.dataObj,rs.state.Passphrase).toString(C().enc.Utf8),r=JSON.parse(n);return r},async DemoHesaplariGetir(t){const e=JSON.stringify(t);let s=C().AES.encrypt(e,rs.state.Passphrase).toString();const i={dataObj:s},a=await as().post("lms/InClassTools",i),n=C().AES.decrypt(a.dataObj,rs.state.Passphrase).toString(C().enc.Utf8),r=JSON.parse(n);return r},async OkulLinkleriGetir(t){const e=JSON.stringify(t);let s=C().AES.encrypt(e,rs.state.Passphrase).toString();const i={dataObj:s},a=await as().post("lms/Links",i),n=C().AES.decrypt(a.dataObj,rs.state.Passphrase).toString(C().enc.Utf8),r=JSON.parse(n);return r},async IARGetir(t){const e=JSON.stringify(t);let s=C().AES.encrypt(e,rs.state.Passphrase).toString();const i={dataObj:s},a=await as().post("lms/InterActiveReaders",i),n=C().AES.decrypt(a.dataObj,rs.state.Passphrase).toString(C().enc.Utf8),r=JSON.parse(n);return r},async SistemTarihiGetir(){const t=await as().post("lms/SystemDate");return st()(t).format("YYYY-MM-DD HH:mm:ss")}};i["default"].use(l.ZP);const rs=new l.ZP.Store({state:{token:"",expiresIn:null,Passphrase:"HJx7t7bTm9WWFQpB2KxAQhVRafMiR@j7TCHYvtzB4w7Gpgw8",isLoading:!1,isLoged:!1,paramOffset:0,paramRows:10,rowCount:0,currentPage:1,AssignmentDetay:{},ScormView:{},Resources:[],OkulAyarlar:{},RenkTonlama:5,RenkTonlari:[],DomainAdi:null,previousRoute:null,OgretmenOgrencileri:[]},modules:{users:w,theme:L},getters:{isLoged(t){return""!==t.token},getToken(t){return t.token},isLoading(t){return t.isLoading},paramOffset(t){return t.paramOffset},paramRows(t){return t.paramRows},rowCount(t){return t.rowCount},isLogIn(t){return t.isLoged},getOkulAyarlar(t){return t.OkulAyarlar},async getAssignmentDetay(t){return await os.cookie.getAssignmentDetay(),t.AssignmentDetay},getScormView(t){return os.cookie.getScormView(),t.ScormView}},mutations:{SET_PREVIOUS_ROUTE(t,e){t.previousRoute=e},setToken(t,e){t.token=e.token},setStorageToken(t,e){"localhost:8080"==location.host?localStorage.setItem("LMSTokenData",JSON.stringify(e).toString()):localStorage.setItem("LMSData0",C().AES.encrypt(JSON.stringify(e).toString(),this.state.Passphrase).toString())},clearToken(t){t.token=""},getToken(t){return t.token},setLoading(t,e){t.isLoading=e},set_rowCount(t,e){t.rowCount=e},setIsLogIn(t){return t.isLoged=t},setOkulAyarlar(t,e){t.OkulAyarlar=e},setKullaniciDetaylari(t,e){t.KullaniciDetaylari=e},setOgretmenOgrencileri(t,e){t.OgretmenOgrencileri=e},setStorageOkulAyarlar(t){"localhost:8080"==location.host?localStorage.setItem("LMSOkulAyarlar",JSON.stringify(t.OkulAyarlar).toString()):localStorage.setItem("LMSData2",C().AES.encrypt(JSON.stringify(t.OkulAyarlar).toString(),this.state.Passphrase).toString())},clearOkulAyarlar(t){t.OkulAyarlar=null},setAssignmentDetay(t,e){t.AssignmentDetay=e,"localhost:8080"==location.host?localStorage.setItem("LMSAssignmentDetay",JSON.stringify(e).toString()):localStorage.setItem("LMSData3",C().AES.encrypt(JSON.stringify(e).toString(),this.state.Passphrase).toString())},setScormView(t,e){t.ScormView=e,"localhost:8080"==location.host?localStorage.setItem("LMSScormView",JSON.stringify(e).toString()):localStorage.setItem("LMSData4",C().AES.encrypt(JSON.stringify(e).toString(),this.state.Passphrase).toString())},setResources(t,e){t.Resources=e,"localhost:8080"==location.host?localStorage.setItem("LMSResources",JSON.stringify(e).toString()):localStorage.setItem("LMSData5",C().AES.encrypt(JSON.stringify(e).toString(),this.state.Passphrase).toString())},clearResources(t){t.Resources=null}},actions:{async appInit({commit:t,dispatch:e}){rs.state.DomainAdi=window.location.hostname;const s={DomainAdi:window.location.hostname};try{const i=await ns.OkulAyarlar(s);t("setOkulAyarlar",i),t("setStorageOkulAyarlar",i),await e("RenkTonlariOlustur",i.BackgroundColor),document.body.style.backgroundColor=rs.state.RenkTonlari[4]?.color??"#fff"}catch(a){return}const i=await os.cookie.getKullaniciDetaylari();if(!i)return e("logout"),!1;{let s=(new Date).getTime();if(s>=this.state.expiresIn)return void e("logout");const i={email:rs.state.users.KullaniciDetaylari.KullaniciAdi,password:rs.state.users.KullaniciDetaylari.Sifre,api_key:rs.state.OkulAyarlar.ApiKey};try{const s=await ns.UesLmsTokenAl(i);if(s&&"Request failed with status code 401"!==s.message){t("setToken",s.data.token),t("setStorageToken",s.data),await e("actionToken",{token:s.data.token,expiresIn:216e3}),await ns.KullaniciBilgiAl(rs.state.users.KullaniciDetaylari.KullaniciAdi,rs.state.users.KullaniciDetaylari.Sifre),await os.cookie.getKullaniciDetaylari(),"teacher"==rs.state.KullaniciDetaylari.role_type&&E.OgretmenOgrencileriGetir(rs.state.KullaniciDetaylari.organization);try{await E.getCollections()}catch(a){console.log("Colletion yüklenemedi")}}else e("logout")}catch(a){return void ss.push("/login")}}},RenkTonlariOlustur(t,e){rs.state.RenkTonlari=j(e,rs.state.RenkTonlama).map((t=>{const e=T(t);return{color:t,textColor:e}}))},clearStorage({commit:t}){"localhost:8080"!==location.host?(localStorage.removeItem("LMSData0"),localStorage.removeItem("LMSData1"),localStorage.removeItem("LMSData3"),localStorage.removeItem("LMSData4"),localStorage.removeItem("LMSData5")):(localStorage.removeItem("LMSTokenData"),localStorage.removeItem("LMSKullaniciDetaylari"),localStorage.removeItem("LMSAssignmentDetay"),localStorage.removeItem("LMSScormView"),localStorage.removeItem("LMSResources")),t("clearToken"),t("clearKullaniciDetaylari"),t("clearResources")},async actionToken({commit:t,dispatch:e},s){const i={token:s.token,expiresIn:(new Date).getTime()+100*+s.expiresIn};t("setToken",i),t("setStorageToken",i),await e("setTimeoutTimer",1e3*+s.expiresIn)},logout({dispatch:t}){t("clearStorage"),window.location="#/login"},setTimeoutTimer({dispatch:t},e){setTimeout((()=>{t("logout")}),e)}}});var os={upperTR(t){let e={i:"İ","ş":"Ş","ğ":"Ğ","ü":"Ü","ö":"Ö","ç":"Ç","ı":"I"};return t=t.replace(/(([iışğüçö]))/g,(function(t){return e[t]})),t.toUpperCase()},cookie:{async getKullaniciDetaylari(){let t,e,s,i=rs.state.Passphrase;if(null!==localStorage.getItem("LMSData0")||null!==localStorage.getItem("LMSTokenData")){let s="localhost:8080"!==location.host?C().AES.decrypt(localStorage.getItem("LMSData0"),i).toString(C().enc.Utf8):localStorage.getItem("LMSTokenData");e=JSON.parse(s),t=e.token}else t="";if(null!==localStorage.getItem("LMSData1")||null!==localStorage.getItem("LMSKullaniciDetaylari")){let t="localhost:8080"!==location.host?C().AES.decrypt(localStorage.getItem("LMSData1"),i).toString(C().enc.Utf8):localStorage.getItem("LMSKullaniciDetaylari");s=JSON.parse(t)}if(""!==t){rs.commit("setToken",e),rs.commit("setKullaniciDetaylari",s.KullaniciDetaylari),e.expiresIn,rs.state.expiresIn=e.expiresIn;let i=(new Date).getTime();return i>=e.expiresIn?(rs.state.token="",!1):(rs.state.token=t,!0)}return!1},async getOkulAyarlar(){let t,e=rs.state.Passphrase;if(null!==localStorage.getItem("LMSData2")||null!==localStorage.getItem("LMSOkulAyarlar")){let s="localhost:8080"!==location.host?C().AES.decrypt(localStorage.getItem("LMSData2"),e).toString(C().enc.Utf8):localStorage.getItem("LMSOkulAyarlar");t=JSON.parse(s),rs.commit("setOkulAyarlar",t)}},async getAssignmentDetay(){let t,e=rs.state.Passphrase;if(null!==localStorage.getItem("LMSData3")||null!==localStorage.getItem("LMSAssignmentDetay")){let s="localhost:8080"!==location.host?C().AES.decrypt(localStorage.getItem("LMSData3"),e).toString(C().enc.Utf8):localStorage.getItem("LMSAssignmentDetay");t=JSON.parse(s),rs.commit("setAssignmentDetay",t)}},async getScormView(){let t,e=rs.state.Passphrase;if(null!==localStorage.getItem("LMSData4")||null!==localStorage.getItem("LMSScormView")){let s="localhost:8080"!==location.host?C().AES.decrypt(localStorage.getItem("LMSData4"),e).toString(C().enc.Utf8):localStorage.getItem("LMSScormView");t=JSON.parse(s),rs.commit("setScormView",t)}}}},ls={name:"app",data(){return{}},components:{appTopNavBar:h,appLoading:v},async beforeMount(){},async mounted(){},async beforeCreate(){await this.$store.dispatch("appInit")},async created(){os.cookie.getKullaniciDetaylari(),this.$store.state.paramOffset=0,this.$store.state.paramRowsOffset=20},computed:{...(0,l.Se)(["ScrollBarColor"]),isLoged(){return this.$store.state.token},isLoading(){return this.$store.getters.isLoading}},methods:{RenkTonuVer(t,e,s){return j(t,e)[s]},async setBackgroundColor(){}},watch:{}},cs=ls,ms=(0,d.Z)(cs,a,n,!1,null,null,null),ds=ms.exports,us=s(5577);function hs(){var t=this,e={i:"İ","ş":"Ş","ğ":"Ğ","ü":"Ü","ö":"Ö","ç":"Ç","ı":"I"};return t=t.replace(/(([iışğüçö]))/g,(function(t){return e[t]})),t.toUpperCase()}var gs=s(4659),ps=s(6882),ys=s(6553),fs=s.n(ys),Ss=s(9414),vs=s.n(Ss),_s=s(8640),Cs=s(6644),bs=s.n(Cs),As=s(4226),Ds=s.n(As),ks=s(4435),ws=s(3373),xs=s.n(ws),Os=s(1087),Ts=s(1191),js=s(6215),Is=s.n(js);i["default"].use(fs()),i["default"].use(vs());const Ls={name:"_blank",specs:["fullscreen=yes","titlebar=yes","scrollbars=yes"],styles:["/assets/vendor/bootstrap/css/bootstrap.min.css","/assets/css/main.css"],timeout:100,autoClose:!0,windowTitle:window.document.title};i["default"].use(_s.Z,Ls),i["default"].use(ps.XG7),i["default"].component("v-jstree",bs()),i["default"].component("v-select",Ds()),i["default"].component("v-select2",ks.Z),i["default"].use(us.ZP),i["default"].use(gs.ZP),i["default"].use(xs()),i["default"].component("apexChart",xs()),i["default"].use(Os.ZP),i["default"].use(Ts.ZP),i["default"].directive("upperTR",{update(t){let e=t.value,s={i:"İ","ş":"Ş","ğ":"Ğ","ü":"Ü","ö":"Ö","ç":"Ç","ı":"I"};e=e.replace(/(([iışğüçö]))/g,(function(t){return s[t]})),t.value=e.toUpperCase()}}),String.prototype.turkishToUpper=hs,i["default"].filter("upperTR",(t=>{if(null!==t){let e=t,s={i:"İ","ş":"Ş","ğ":"Ğ","ü":"Ü","ö":"Ö","ç":"Ç","ı":"I"};return e=e.replace(/(([iışğüçö]))/g,(function(t){return s[t]})),e.toUpperCase()}})),i["default"].filter("para",(t=>parseFloat(t).toLocaleString(void 0,{minimumFractionDigits:2})+" TL")),i["default"].filter("para_6digit",(t=>parseFloat(t).toLocaleString(void 0,{maximumFractionDigits:6}))),i["default"].filter("para_2digit",(t=>parseFloat(t).toLocaleString(void 0,{maximumFractionDigits:2}))),i["default"].filter("sayi",(t=>parseFloat(t).toLocaleString(void 0,{minimumFractionDigits:0}))),i["default"].filter("sayi_format",((t,e,s)=>{if(null==t)return 0;if(1==s){const s=t.toString().split("."),i=parseInt(s[0]).toLocaleString(void 0,{minimumFractionDigits:0}).replace(",",".");let a=0;if(a=i,s[1]){const t=parseFloat("0."+s[1]).toFixed(e),i=t.toString().split(".");"undefined"!==typeof i[1]&&(a=a+","+i[1])}return a}return 0==s?parseFloat(t).toFixed(e):t})),i["default"].use(Is());new i["default"];i["default"].config.productionTip=!1,new i["default"]({router:ss,store:rs,VueToast:Is(),render:t=>t(ds)}).$mount("#app")},2480:function(){},6608:function(){}},e={};function s(i){var a=e[i];if(void 0!==a)return a.exports;var n=e[i]={id:i,loaded:!1,exports:{}};return t[i].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}s.m=t,function(){var t=[];s.O=function(e,i,a,n){if(!i){var r=1/0;for(m=0;m=n)&&Object.keys(s.O).every((function(t){return s.O[t](i[l])}))?i.splice(l--,1):(o=!1,n0&&t[m-1][2]>n;m--)t[m]=t[m-1];t[m]=[i,a,n]}}(),function(){s.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return s.d(e,{a:e}),e}}(),function(){s.d=function(t,e){for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}}(),function(){s.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){s.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){s.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t}}(),function(){var t={143:0};s.O.j=function(e){return 0===t[e]};var e=function(e,i){var a,n,r=i[0],o=i[1],l=i[2],c=0;if(r.some((function(e){return 0!==t[e]}))){for(a in o)s.o(o,a)&&(s.m[a]=o[a]);if(l)var m=l(s)}for(e&&e(i);c