{"version":3,"sources":["webpack:///./src/api/media.js","webpack:///./src/components/modules/media/previewPage.vue","webpack:///src/components/modules/media/previewPage.vue","webpack:///./src/components/modules/media/previewPage.vue?8ea2","webpack:///./src/components/modules/media/previewPage.vue?1738"],"names":["filePreData","_ref","data","params","store","Promise","resolve","requestApi","api","method","then","res","rs","dynamicDispatcher","filePreviewDetail","_ref2","fileInheritedDetail","_ref3","editorFileInfo","_ref4","render","_vm","this","_c","_self","ref","staticClass","hideDownload","force","hasPermission","on","download","_v","_e","docExt","key","loaderKey","attrs","parseInt","id","prms","minusHeight","$event","$emit","onImgLoaded","$store","state","app","isMobile","staticStyle","concat","qrImg","style","qrLeft","showDescr","domProps","_s","fileInf","desc","staticRenderFns","name","components","loader","component","loading","AsyncLoading","error","AsyncLoadError","delay","timeout","props","swd","type","String","default","Number","show","Boolean","Object","showSidebar","img","w","h","mounted","fileDetail","undefined","isFull","methods","_objectSpread","hasOneOf","tarr","arr","perrArr","user","access","mapActions","playerResume","$refs","mediaLdr","_this","_prms","lessonId","courseId","cid","boxId","bid","objectTypeId","bot","isCompleted","activeGroup","getFileMode","file","extension","generateQr","updateRecentView","_this2","grpLatinName","request","url","qr","userInfo","user_name","base64","visibleChanged","e","_this3","attachId","iid","window","open","link","Math","floor","random","self","document","createElement","src","onload","naturalWidth","clientWidth","computed","courseid","watch","val"],"mappings":"iTAGaA,EAAc,SAAHC,GAAgC,IAA1BC,EAAID,EAAJC,KAAMC,EAAMF,EAANE,OAAQC,EAAKH,EAALG,MAC1C,OAAO,IAAIC,SAAQ,SAAAC,GACjBC,eAAW,CACTC,IAAK,oBACLC,OAAQ,MACRN,OAAQA,EACRD,KAAMA,IACLQ,MAAK,SAAAC,GACN,GAAW,GAAPA,EAAc,CAChB,IAAIC,EAAKC,eAAkBF,EAAKP,GAE9BE,EADQ,GAANM,GACMA,QAKVN,GAAQ,UAMHQ,EAAoB,SAAHC,GAAgC,IAA1Bb,EAAIa,EAAJb,KAAMC,EAAMY,EAANZ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AEAiF,EAAAjF,QACAiF,EAAArC,MAAA,YAAA2C,YAAA5D,EAAA2D,cAAA,SAIAE,SAAA,CACAC,SAAA,WACA,YAAAlE,OAGAmE,MAAA,CACAD,SAAA,SAAAE,GACAA,GACA,KAAA5D,gBC3UkX,I,YCO9WrB,EAAY,eACd,EACA3C,EACAuC,GACA,EACA,KACA,KACA,MAIa,aAAAI,E","file":"js/chunk-cd1c2b64.3f433c2a.js","sourcesContent":["import { requestApi, requestUploader } from \"@/api/core\";\nimport { dynamicDispatcher } from \"@/libs/util\";\n\nexport const filePreData = ({ data, params, store }) => {\n return new Promise(resolve => {\n requestApi({\n api: \"Media/FilePreData\",\n method: \"get\",\n params: params,\n data: data\n }).then(res => {\n if (res != false) {\n let rs = dynamicDispatcher(res, store);\n if (rs != false) {\n resolve(rs);\n } else {\n resolve(false);\n }\n } else {\n resolve(false);\n }\n });\n });\n};\n\nexport const filePreviewDetail = ({ data, params, store }) => {\n return new Promise(resolve => {\n requestApi({\n api: \"Media/FilePreviewDetail\",\n method: \"get\",\n params: params,\n data: data\n }).then(res => {\n if (res != false) {\n let rs = dynamicDispatcher(res, store);\n if (rs != false) {\n resolve(rs);\n } else {\n resolve(false);\n }\n } else {\n resolve(false);\n }\n });\n });\n};\n\nexport const fileInheritedDetail = ({ data, params, store }) => {\n return new Promise(resolve => {\n requestApi({\n api: \"Media/FileInheritedDetail\",\n method: \"get\",\n params: params,\n data: data\n }).then(res => {\n if (res != false) {\n let rs = dynamicDispatcher(res, store);\n if (rs != false) {\n resolve(rs);\n } else {\n resolve(false);\n }\n } else {\n resolve(false);\n }\n });\n });\n};\n\nexport const editorFileInfo = ({ data, params, store }) => {\n return new Promise(resolve => {\n requestApi({\n api: \"Media/EditorFileInfo\",\n method: \"get\",\n params: params,\n data: data\n }).then(res => {\n if (res != false) {\n let rs = dynamicDispatcher(res, store);\n if (rs != false) {\n resolve(rs);\n } else {\n resolve(false);\n }\n } else {\n resolve(false);\n }\n });\n });\n};\n\nexport const uploader = ({ file, params, store }) => {\n return new Promise(resolve => {\n //console.log(file);\n requestUploader({\n //api: \"Media/uploader\",\n file: file,\n //method: \"post\",\n params: params\n //data: data\n }).then(res => {\n if (res != false) {\n let rs = dynamicDispatcher(res, store);\n if (rs != false) {\n resolve(rs);\n } else {\n resolve(false);\n }\n } else {\n resolve(false);\n }\n });\n });\n};\n\nexport const boxInAttachmentList = ({ data, params, store }) => {\n return new Promise(resolve => {\n requestApi({\n api: \"Media/BoxInAttachmentList\",\n method: \"get\",\n params: params,\n data: data\n }).then(res => {\n if (res != false) {\n let rs = dynamicDispatcher(res, store);\n if (rs != false) {\n resolve(rs);\n } else {\n resolve(false);\n }\n } else {\n resolve(false);\n }\n });\n });\n};\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('div',{ref:\"item_cnt\",staticClass:\"pos-relative\"},[(!_vm.hideDownload && _vm.force && _vm.hasPermission(['admin', 'learningadmin']))?_c('div',[_c('div',{staticClass:\"bg-white pd-10 bd-b\"},[_c('button',{staticClass:\"btn btn-outline-success btn-xs\",on:{\"click\":_vm.download}},[_c('i',{staticClass:\"icon ion-md-download tx-14 mg-r-5 pd-t-5\"}),_vm._v(\" татах\")])])]):_vm._e(),(_vm.docExt != '')?_c('loader',{key:_vm.loaderKey,ref:\"mediaLdr\",attrs:{\"otCompName\":_vm.docExt,\"propFileId\":parseInt(_vm.id, 0),\"prms\":_vm.prms,\"minusHeight\":_vm.force && _vm.minusHeight == 170 ? 0 : _vm.minusHeight,\"force\":_vm.force},on:{\"on-completed-info\":function($event){return _vm.$emit('on-completed-info', $event)},\"on-img-loaded\":_vm.onImgLoaded,\"on-finish-video\":function($event){return _vm.$emit('on-finish-video', $event)},\"on-hide-finish-btn\":function($event){return _vm.$emit('on-hide-finish-btn', $event)},\"on-interactive-media\":function($event){return _vm.$emit('on-interactive-media', $event)},\"on-interactive-html\":function($event){return _vm.$emit('on-interactive-html', $event)}}}):_vm._e(),(_vm.$store.state.app.isMobile)?_c('div',{staticClass:\"bg-white pd-1 bd rounded-1\",staticStyle:{\"position\":\"absolute\",\"top\":\"10px\",\"right\":\"10px\"}},[_c('img',{staticClass:\"wd-40 ht-40\",attrs:{\"src\":`data:image/png;base64, ${_vm.qrImg}`}})]):_c('div',[(_vm.docExt == 'image')?_c('div',{staticClass:\"bg-white pd-5 bd rounded-3\",style:(`position: absolute; bottom: 30px; left: ${_vm.qrLeft}px`)},[_c('img',{staticClass:\"wd-60 ht-60\",attrs:{\"src\":`data:image/png;base64, ${_vm.qrImg}`}})]):_c('div',{staticClass:\"bg-white pd-5 bd rounded-3\",staticStyle:{\"position\":\"absolute\",\"bottom\":\"80px\",\"right\":\"30px\"}},[_c('img',{staticClass:\"wd-60 ht-60\",attrs:{\"src\":`data:image/png;base64, ${_vm.qrImg}`}})])])],1),(_vm.showDescr())?_c('div',{staticClass:\"pd-x-10 pd-y-15 tx-13 tx-color-02\",domProps:{\"innerHTML\":_vm._s(_vm.fileInf.desc)}}):_vm._e(),_c('img',{attrs:{\"id\":\"imgtmp\"}})])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./previewPage.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./previewPage.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./previewPage.vue?vue&type=template&id=280bdd6b\"\nimport script from \"./previewPage.vue?vue&type=script&lang=js\"\nexport * from \"./previewPage.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}