{"version":3,"sources":["webpack:///./src/views/modules/lms/student/pages/offline/offline.vue","webpack:///src/views/modules/lms/student/pages/offline/offline.vue","webpack:///./src/views/modules/lms/student/pages/offline/offline.vue?e360","webpack:///./src/views/modules/lms/student/pages/offline/offline.vue?9804","webpack:///./src/views/modules/lms/student/pages/offline/index.js"],"names":["render","_vm","this","_c","_self","staticClass","style","concat","scrollHeight","nav","class","$store","state","app","isMobile","on","$event","toggleNavbar","_l","courses","c","i","key","_v","_s","name","attaches","filter","x","courseId","id","a","ai","deleteAttach","ext","staticStyle","title","getLessonName","lessonId","attrs","attachDelete","obj","model","value","modal","callback","$$v","$set","expression","mode","_e","params","bid","iid","bot","deleteAttachConfirm","staticRenderFns","_","require","components","vueCustomScrollbar","studentNav","component","loading","AsyncLoading","error","AsyncLoadError","delay","timeout","data","PDFJS_URL","contentToolbarHeight","content","right","lessons","fileSystem","fsType","window","PERSISTENT","fsSize","mounted","toggleBodyClass","addEventListener","getWindowHeight","configure","beforeDestroy","removeEventListener","destroyed","methods","_objectSpread","mapActions","addRemoveClass","className","el","document","body","classList","add","remove","shown","navbarMode","contentSub","navSub","rightSub","screen","width","innerHeight","undefined","activeGroup","init","self","requestFileSystem","webkitRequestFileSystem","storageInfo","webkitStorageInfo","requestQuota","gb","fs","errorHandler","_courses","localStorage","getItem","_json","JSON","parse","_lessons","_attaches","orderBy","lid","rv","length","readFile","getFileMode","path","success","attachment","root","getFile","fileEntry","file","reader","FileReader","onloadend","e","readAfter","result","readAsArrayBuffer","blob","Blob","video2","getElementById","src","URL","createObjectURL","load","onloadeddata","play","type","fileURL","open","options","pdfOpenParams","pagemode","navpanes","toolbar","statusbar","view","page","forcePDFJS","$nextTick","PDFObject","embed","image2","fileEntry1","deleteAttachAfter","_this","map","st","indexOf","splice","setItem","stringify","ci","handleOfflineAttaches","index"],"mappings":"iMAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,C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M,E,sEClBf,wBACe0H","file":"js/chunk-1a62f81e.b2e0b555.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"container lms-wrapper no-right-sidebar pd-x-0 pd-lg-x-10 pd-xl-x-0\"},[_c('div',{staticClass:\"lms-sidebar\"},[_c('div',{staticClass:\"lms-sidebar-body\"},[_c('vue-custom-scrollbar',{style:(`height: ${_vm.scrollHeight.nav}px`)},[_c('div',{class:`card ${_vm.$store.state.app.isMobile ? 'bd-0' : ''}`},[_c('div',{staticClass:\"card-body\"},[_c('student-nav',{on:{\"route-changed\":function($event){return _vm.toggleNavbar(false)}}})],1)])])],1)]),_c('div',{staticClass:\"lms-content\"},[_c('div',{staticClass:\"lms-content-body\"},_vm._l((_vm.courses),function(c,i){return _c('div',{key:`courses_${i}`,staticClass:\"mg-b-20\"},[_c('div',{staticClass:\"d-flex align-items-center justify-content-between mg-b-2\"},[_c('h6',{staticClass:\"tx-13 tx-uppercase tx-semibold mg-b-0\"},[_vm._v(_vm._s(c.name))])]),_c('ul',{staticClass:\"list-group wd-md-50p\"},_vm._l((_vm.attaches.filter(x => x.courseId == c.id)),function(a,ai){return _c('li',{key:ai,staticClass:\"list-group-item d-flex align-items-center\",on:{\"click\":function($event){return _vm.deleteAttach(a)}}},[_c('div',{staticClass:\"avatar avatar-sm mg-r-5\"},[_c('span',{staticClass:\"avatar-initial rounded-circle bg-gray-600\"},[_vm._v(_vm._s(a.ext))])]),_c('div',{staticStyle:{\"max-width\":\"80%\"}},[_c('h6',{staticClass:\"tx-13 tx-inverse tx-semibold mg-b-0 text-truncate\"},[_vm._v(\" \"+_vm._s(a.title)+\" \")]),_c('span',{staticClass:\"d-block tx-11 text-muted\"},[_vm._v(_vm._s(_vm.getLessonName(a.lessonId)))])]),_c('div',{staticClass:\"mg-l-auto\"},[_c('a',[_c('feather',{attrs:{\"type\":\"arrow-right\"}})],1)])])}),0)])}),0)]),_c('b-modal',{attrs:{\"centered\":\"\",\"title\":_vm.attachDelete.obj.title,\"hide-footer\":\"\"},model:{value:(_vm.attachDelete.modal),callback:function ($$v) {_vm.$set(_vm.attachDelete, \"modal\", $$v)},expression:\"attachDelete.modal\"}},[(_vm.attachDelete.mode == 1)?_c('div',[_c('video',{attrs:{\"id\":\"video2\",\"width\":\"100%\",\"height\":\"240\",\"controls\":\"\"}})]):(_vm.attachDelete.mode == 2)?_c('div',{staticStyle:{\"max-width\":\"100%\",\"overflow\":\"auto\",\"height\":\"70vh\"}},[_c('img',{attrs:{\"id\":\"image2\"}})]):(_vm.attachDelete.mode == 3)?_c('div',[_c('iframe',{attrs:{\"src\":\"\",\"id\":\"pdf2\"}})]):(_vm.attachDelete.mode == 4)?_c('div'):_vm._e(),_c('div',{staticClass:\"btn-group text-center wd-100p mg-t-20\"},[_c('router-link',{staticClass:\"btn btn-primary\",attrs:{\"to\":{\n name: 'lmsCourseView',\n params: { id: _vm.attachDelete.obj.courseId, bid: 0, iid: 0, bot: 0 }\n }}},[_vm._v(\"Сургалтыг үзэх\")]),_c('button',{staticClass:\"btn btn-light\",on:{\"click\":function($event){_vm.attachDelete.modal = false}}},[_vm._v(\" Хаах \")]),_c('button',{staticClass:\"btn btn-danger\",on:{\"click\":function($event){return _vm.deleteAttachConfirm()}}},[_vm._v(\" Устгах \")])],1)])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","