{"version":3,"sources":["webpack:///./src/api/media.js","webpack:///./src/components/modules/media/preview.vue","webpack:///src/components/modules/media/preview.vue","webpack:///./src/components/modules/media/preview.vue?84b4","webpack:///./src/components/modules/media/preview.vue?2529"],"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","style","concat","zindex","attrs","swd","on","visibleChanged","model","value","showSidebar","callback","$$v","expression","ready","staticClass","staticStyle","_v","_s","fileInf","title","hasOneOf","$store","state","user","access","canEdit","docExt","$event","editDoc","_e","makeTemplate","shareToMessenger","downloadFile","changeFilePublic","isPublic","showMention","showPermission","key","loaderKey","id","prms","undefined","avator","fullName","_f","date","shareToMessengerModal","show","$set","modalTemplate","scopedSlots","_u","fn","modalTemplateTitleTemp","savedoctheme","proxy","directives","name","rawName","modalTemplateTitle","domProps","target","composing","ref","projectEdit","projectMention","module","fileUsersLdeHhh","staticRenderFns","components","loader","component","loading","AsyncLoading","error","AsyncLoadError","delay","timeout","mentionUsers","fileUsers","props","type","String","default","Number","Boolean","objectId","objectTypeId","modalTemplateID","redner","mode","mounted","fileDetail","methods","_objectSpread","mapActions","tarr","arr","hasPermission","perrArr","_this","length","request","url","fileId","$bvToast","toast","autoHideDelay","appendToast","variant","_h","screen","availHeight","_w","availWidth","window","open","_this2","getFileMode","file","extension","_this3","toaster","userInfo","groupId","link","Math","floor","random","e","$emit","$refs","fleUsrs","init","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,E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eAAAlB,MAAA,EACA,KAAAiB,YAAAjB,MAAA,EAEA,KAAAtC,aAAA,EACA,KAAAyH,MAAA,aAIA9F,eAAA,WACA,KAAA4B,YAAAjB,MAAA,GAEAZ,YAAA,WACA,KAAA8B,eAAAlB,MAAA,GAEAoB,gBAAA,WAEA,KAAAgE,MAAAC,QAAAC,UAGAC,SAAA,CACAC,SAAA,WACA,YAAAxF,OAGAyF,MAAA,CACAD,SAAA,SAAAE,GACAA,GACA,KAAA7C,gBC5f8W,I,YCO1WrB,EAAY,eACd,EACA5E,EACAyE,GACA,EACA,KACA,KACA,MAIa,aAAAG,E","file":"js/chunk-183b9768.59713bfb.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('b-sidebar',{style:(`${_vm.zindex!='' ?'z-index:'+_vm.zindex+' !important':''}`),attrs:{\"shadow\":\"\",\"right\":\"\",\"backdrop\":\"\",\"width\":_vm.swd,\"no-header\":\"\"},on:{\"change\":_vm.visibleChanged},model:{value:(_vm.showSidebar),callback:function ($$v) {_vm.showSidebar=$$v},expression:\"showSidebar\"}},[(_vm.ready)?_c('div',{staticClass:\"content-header bd-b pd-0\"},[_c('nav',{staticClass:\"navbar navbar-expand-lg wd-100p\",staticStyle:{\"height\":\"59px\"}},[_c('div',{staticClass:\"dropdown\"},[_c('a',{staticClass:\"order-1 navbar-brand tx-bold tx-spacing--2\",staticStyle:{\"max-width\":\"500px\",\"overflow\":\"hidden\",\"text-overflow\":\"ellipsis\"},attrs:{\"href\":\"javascript:void(0)\",\"data-toggle\":\"dropdown\"}},[_c('a',{staticClass:\"text-white rounded-sm btn- btn-info btn-uppercase pd-x-15 pd-t-10 pd-b-8 mg-r-10\"},[_c('feather',{attrs:{\"type\":\"menu\"}}),_vm._v(\"цэс \")],1),_vm._v(\" \"+_vm._s(_vm.fileInf.title)+\" \"),_c('feather',{attrs:{\"type\":\"chevron-down\"}})],1),_c('div',{staticClass:\"dropdown-menu tx-13\"},[(\n _vm.hasOneOf(['doceditor'], _vm.$store.state.user.access) &&\n _vm.fileInf.canEdit &&\n _vm.docExt == 'document'\n )?_c('a',{staticClass:\"dropdown-item\",attrs:{\"role\":\"button\"},on:{\"click\":function($event){return _vm.editDoc()}}},[_vm._v(\"Засах\")]):_vm._e(),(\n _vm.hasOneOf(['doceditor'], _vm.$store.state.user.access) &&\n _vm.fileInf.canEdit &&\n _vm.docExt == 'document'\n )?_c('a',{staticClass:\"dropdown-item\",attrs:{\"role\":\"button\"},on:{\"click\":function($event){return _vm.makeTemplate()}}},[_vm._v(\"Загвар болгох\")]):_vm._e(),(_vm.hasOneOf(['messenger'], _vm.$store.state.user.access))?_c('a',{staticClass:\"dropdown-item\",attrs:{\"role\":\"button\"},on:{\"click\":function($event){return _vm.shareToMessenger()}}},[_vm._v(\"Мессенжерт хавсралт болгож илгээх\")]):_vm._e(),_c('a',{staticClass:\"dropdown-item\",attrs:{\"role\":\"button\"},on:{\"click\":function($event){return _vm.downloadFile()}}},[_vm._v(\"Хавсралт файлыг татах\")]),_c('a',{staticClass:\"dropdown-item\",attrs:{\"role\":\"button\"},on:{\"click\":function($event){return _vm.changeFilePublic()}}},[_vm._v(\"Төлөв солих (\"+_vm._s(_vm.fileInf.isPublic ? \"нээлттэй\" : \"цоожтой\")+\")\")]),_c('li',[_c('hr',{staticClass:\"dropdown-divider\"})]),_c('a',{staticClass:\"dropdown-item\",attrs:{\"role\":\"button\"},on:{\"click\":function($event){return _vm.showMention()}}},[_vm._v(\"Хуваалцах\")]),_c('a',{staticClass:\"dropdown-item\",attrs:{\"role\":\"button\"},on:{\"click\":function($event){return _vm.showPermission()}}},[_vm._v(\"Тохиргоо\")])])]),_c('button',{staticClass:\"order-2 navbar-toggler\",attrs:{\"type\":\"button\",\"data-toggle\":\"collapse\",\"data-target\":\"#navbarSupportedContent\",\"aria-controls\":\"navbarSupportedContent\",\"aria-expanded\":\"false\",\"aria-label\":\"Toggle navigation\"}},[_c('feather',{attrs:{\"type\":\"menu\"}})],1),_c('div',{staticClass:\"order-2 collapse navbar-collapse\",attrs:{\"id\":\"navbarSupportedContent\"}},[_c('div',{staticClass:\"pa-0 ma-0 mg-l-50\",attrs:{\"fixed\":\"\",\"grow\":\"\",\"dense\":\"\"}}),_c('button',{staticClass:\"btn btn-sm pd-x-15 btn-uppercase mg-l-auto btn-danger\",on:{\"click\":function($event){return _vm.visibleChanged(false)}}},[_c('feather',{staticClass:\"mg-r-5\",attrs:{\"type\":\"x\"}}),_vm._v(\"Хаах \")],1)])])]):_vm._e(),_c('div',{staticClass:\"bg-white\",staticStyle:{\"height\":\"calc(100vh - 115px)\"}},[(_vm.docExt != '')?_c('loader',{key:_vm.loaderKey,attrs:{\"otCompName\":_vm.docExt,\"propFileId\":_vm.id,\"prms\":_vm.prms}}):_vm._e()],1),(_vm.ready)?_c('div',{staticClass:\"bg-gray-200 d-flex align-items-center bd-t pd-x-20 ht-55\"},[_c('div',{staticClass:\"d-flex justify-content-between wd-100p\"},[_c('div',{staticClass:\"d-flex align-items-center\"},[_vm._v(\" №: \"+_vm._s(_vm.fileInf.id)+\" \"),(_vm.fileInf.isPublic)?_c('button',{staticClass:\"btn btn-xs btn-outline-success mg-l-10\",on:{\"click\":function($event){return _vm.downloadFile()}}},[_c('feather',{staticClass:\"mg-r-5\",attrs:{\"type\":\"download\"}}),_vm._v(\"татах \")],1):_vm._e()]),(_vm.fileInf.user != undefined || _vm.fileInf.user != null)?_c('div',{staticClass:\"d-flex align-items-center\"},[_c('img',{staticClass:\"wd-30 rounded-circle mg-r-15\",attrs:{\"src\":_vm.fileInf.user.avator,\"alt\":\"\"}}),_c('div',[_c('h6',{staticClass:\"tx-13 tx-inverse tx-semibold mg-b-0\"},[_vm._v(\" \"+_vm._s(_vm.fileInf.user.fullName)+\" \")]),_c('span',{staticClass:\"d-block tx-11 text-muted\"})])]):_vm._e(),_c('div',{staticClass:\"d-flex align-items-center\"},[_c('div',{staticClass:\"text-muted mg-r-10\"},[_vm._v(\"Бүртгэсэн:\")]),_c('div',{staticClass:\"text-right\"},[_c('h6',{staticClass:\"tx-13 tx-inverse tx-semibold mg-b-0\"},[_vm._v(\" \"+_vm._s(_vm._f(\"moment\")(_vm.fileInf.date,\"dddd, HH:mm\"))+\" \")]),_c('span',{staticClass:\"d-block tx-11 text-muted\"},[_vm._v(_vm._s(_vm._f(\"moment\")(_vm.fileInf.date,\"YYYY.MM.DD\")))])])])]),_c('share-to-messenger',{key:_vm.shareToMessengerModal.key,attrs:{\"isShow\":_vm.shareToMessengerModal.show,\"prms\":_vm.shareToMessengerModal.prms},on:{\"on-hide\":function($event){_vm.shareToMessengerModal.show = false},\"update:isShow\":function($event){return _vm.$set(_vm.shareToMessengerModal, \"show\", $event)},\"update:is-show\":function($event){return _vm.$set(_vm.shareToMessengerModal, \"show\", $event)},\"update:prms\":function($event){return _vm.$set(_vm.shareToMessengerModal, \"prms\", $event)}}}),_c('b-modal',{attrs:{\"title\":\"Загварын нэр оруулна уу\",\"scrollable\":\"\",\"no-fade\":\"\",\"centered\":\"\",\"size\":\"xs\"},on:{\"hide\":function($event){_vm.modalTemplate = false}},scopedSlots:_vm._u([{key:\"modal-footer\",fn:function(){return [_c('div',{staticClass:\"p-t-xs\",staticStyle:{\"color\":\"#999\",\"float\":\"left\"}},[_vm._v(\" Файл : \"+_vm._s(_vm.modalTemplateTitleTemp)+\" \")]),_c('div',{staticClass:\"btn-group\",attrs:{\"role\":\"group\",\"aria-label\":\"үйлдэл\"}},[_c('button',{staticClass:\"btn btn-light\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){_vm.modalTemplate = false}}},[_vm._v(\" Болих \")]),_c('button',{staticClass:\"btn btn-success\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.savedoctheme()}}},[_vm._v(\" Хадгалах \")])])]},proxy:true}],null,false,2352925226),model:{value:(_vm.modalTemplate),callback:function ($$v) {_vm.modalTemplate=$$v},expression:\"modalTemplate\"}},[_c('div',{staticClass:\"modal-body\"},[_c('div',{staticClass:\"form-group\"},[_c('label',{staticClass:\"d-block\",attrs:{\"for\":\"modalTemplateTitle\"}},[_vm._v(\"Загварын нэр\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.modalTemplateTitle),expression:\"modalTemplateTitle\"}],staticClass:\"form-control\",attrs:{\"placeholder\":\"Загварын нэр...\"},domProps:{\"value\":(_vm.modalTemplateTitle)},on:{\"input\":function($event){if($event.target.composing)return;_vm.modalTemplateTitle=$event.target.value}}})])])])],1):_vm._e(),_c('file-users',{ref:\"fleUsrs\",attrs:{\"show\":_vm.projectEdit.show,\"obj\":_vm.fileInf,\"module\":\"file\"},on:{\"update:obj\":function($event){_vm.fileInf=$event},\"on-edit-close\":function($event){_vm.projectEdit.show = false},\"on-share\":_vm.showMention}}),_c('mention-users',{attrs:{\"show\":_vm.projectMention.show,\"obj\":_vm.fileInf,\"module\":_vm.projectMention.module},on:{\"update:obj\":function($event){_vm.fileInf=$event},\"on-force\":_vm.fileUsersLdeHhh,\"on-mention-close\":function($event){_vm.projectMention.show = false}}})],1)\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!./preview.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!./preview.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./preview.vue?vue&type=template&id=dfe3fba6\"\nimport script from \"./preview.vue?vue&type=script&lang=js\"\nexport * from \"./preview.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":""}