{"version":3,"sources":["webpack:///./src/views/modules/lms/components/points/goPoints.vue","webpack:///src/views/modules/lms/components/points/goPoints.vue","webpack:///./src/views/modules/lms/components/points/goPoints.vue?d108","webpack:///./src/views/modules/lms/components/points/goPoints.vue?641b","webpack:///./src/views/modules/lms/components/points/index.js"],"names":["render","_vm","this","_c","_self","staticClass","class","hideBorder","points","rdy","isLicensedMembers","_v","licenseUnlimit","_s","_f","obj","d1","d2","_e","style","concat","perc","remainDays","toFixed","_l","pointOptions","p","i","key","attrs","on","$event","pointInfo","name","point","maxPoint","reduce","sum","st","parseInt","$store","state","app","activeGroup","id","hidePrint","yrChanged","model","value","yrsCur","callback","$$v","expression","yrs","yr","printMission","pntInf","modal","$set","domProps","info","staticRenderFns","moment","require","components","MessageBox","Select","Option","props","type","Boolean","default","userId","String","userTaskId","Number","data","licenseHas","alert","minDays","leftDays","expireDays","show","msg","Date","getFullYear","mounted","init","methods","e","toggleBodyClass","addRemoveClass","className","el","document","body","classList","add","remove","_this","self","request","api","method","url","params","selectedUserId","year","store","then","res","today","due","diff","Cookies","get","showLicenseAlert","currentYear","push","_this2","confirmButtonText","action","localSave","set","expires","hasOneOf","_this3","window","open","link","component","index"],"mappings":"0MAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,OAAOC,MAAM,CAAE,OAAQL,EAAIM,aAAc,CAAEN,EAAIO,OAAOC,IAAKN,EAAG,MAAM,CAACE,YAAY,mCAAmC,CAAEJ,EAAIS,oBAAqBP,EAAG,MAAM,CAACA,EAAG,MAAM,CAACE,YAAY,6BAA6B,CAACJ,EAAIU,GAAG,YAAaV,EAAIW,eAAgBT,EAAG,MAAM,CAACE,YAAY,6DAA6D,CAACJ,EAAIU,GAAG,kBAAkBR,EAAG,MAAM,CAACE,YAAY,aAAa,CAACJ,EAAIU,GAAG,IAAIV,EAAIY,GAAGZ,EAAIa,GAAG,SAAPb,CAAi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A8B,OAAAzC,IAAAW,EACA,KAAA8B,OAAAC,OAAA,KClU6Y,I,YCOzYyE,EAAY,eACd,EACAlI,EACA6D,GACA,EACA,KACA,KACA,MAIa,aAAAqE,E,2CClBf,uBACeC","file":"js/chunk-6d553109.b9d7a602.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"card\",class:{ 'bd-0': _vm.hideBorder }},[(_vm.points.rdy)?_c('div',{staticClass:\"card-header pd-x-10-f tx-medium\"},[(_vm.isLicensedMembers())?_c('div',[_c('div',{staticClass:\"d-flex align-items-center\"},[_vm._v(\" Лиценз \"),(_vm.licenseUnlimit)?_c('div',{staticClass:\"mg-l-auto badge badge-primary text-uppercase pd-t-5 tx-11\"},[_vm._v(\" ХЯЗГААРГҮЙ \")]):_c('div',{staticClass:\"mg-l-auto\"},[_vm._v(\" \"+_vm._s(_vm._f(\"moment\")(_vm.points.obj.d1,\"YY.MM.DD\"))+\" - \"+_vm._s(_vm._f(\"moment\")(_vm.points.obj.d2,\"YY.MM.DD\"))+\" \")])]),(!_vm.licenseUnlimit)?_c('div',{staticClass:\"tx-color-03 tx-11 text-uppercase mg-t-5\"},[_c('div',{staticClass:\"progress ht-4 op-7 mg-b-5\"},[_c('div',{staticClass:\"progress-bar bg-success\",style:(`width: ${100 - _vm.points.obj.perc}% !important`)})]),_c('div',{staticClass:\"d-flex align-items-center\"},[_vm._v(\" Хугацаа дуусахад \"),_c('div',{staticClass:\"mg-l-auto\"},[_vm._v(\" \"+_vm._s(_vm.points.obj.remainDays.toFixed(0, 10))+\" \"),_c('sup',[_vm._v(\"хоног\")])])])]):_vm._e()]):_c('div',[_vm._v(\"Үүргийн биелэлт\")])]):_vm._e(),(_vm.points.rdy)?_c('div',{staticClass:\"card-body pd-0-f\"},[_vm._l((_vm.points.obj.pointOptions),function(p,i){return _c('div',{key:i,class:`media pd-x-10 pd-y-0 mg-t-20`,attrs:{\"role\":\"button\"},on:{\"click\":function($event){return _vm.pointInfo(p)}}},[_c('div',{staticClass:\"media-body\"},[_c('div',{staticClass:\"d-flex align-items-center\"},[_c('h6',{staticClass:\"tx-13 mg-b-2\"},[_vm._v(\" \"+_vm._s(p.name)+\" ? \"),_c('span',{staticClass:\"tx-color-03 tx-normal tx-11\"},[_vm._v(\"/\"+_vm._s(((p.point * 100) / p.maxPoint).toFixed(0))+\"%/\")])]),_c('strong',{staticClass:\"tx-medium mg-l-auto\"},[_vm._v(_vm._s(p.point))])]),_c('div',{staticClass:\"progress ht-4 op-7 mg-b-5\"},[_c('div',{staticClass:\"progress-bar bg-gray-500\",style:(`width: ${((p.point * 100) / p.maxPoint).toFixed(\n 0\n )}% !important`)})]),_c('div',{staticClass:\"d-flex justify-content-between tx-12\"},[_c('span',{staticClass:\"tx-color-03\"},[_vm._v(\"Боломжит оноо\")]),_c('span',{staticClass:\"tx-color-03 mg-l-auto\"},[_vm._v(_vm._s(p.maxPoint))])])])])}),_c('div',{staticClass:\"media pd-x-10 pd-y-10 mg-t-20 bd-t bg-light\"},[_c('div',{staticClass:\"media-body\"},[_c('div',{staticClass:\"d-flex\"},[_c('h6',{staticClass:\"tx-13 mg-b-2\"},[_vm._v(\"Нийт оноо\")]),_c('strong',{staticClass:\"mg-l-auto tx-medium\"},[_vm._v(_vm._s(_vm.points.obj.pointOptions.reduce( (sum, st) => sum + parseInt(st.point), 0 )))])]),_c('div',{staticClass:\"progress ht-4 op-7\"},[_c('div',{staticClass:\"progress-bar\",style:(`width: ${(\n (_vm.points.obj.pointOptions.reduce(\n (sum, st) => sum + parseInt(st.point),\n 0\n ) *\n 100) /\n _vm.points.obj.pointOptions.reduce(\n (sum, st) => sum + parseInt(st.maxPoint),\n 0\n )\n ).toFixed(0)}% !important`)})]),_c('div',{staticClass:\"d-flex justify-content-between tx-12\"},[_c('span',{staticClass:\"tx-color-03\"},[_vm._v(\"Боломжит оноо\")]),_c('span',{staticClass:\"tx-color-03 mg-l-auto\"},[_vm._v(_vm._s(_vm.points.obj.pointOptions.reduce( (sum, st) => sum + parseInt(st.maxPoint), 0 )))])])])])],2):_vm._e(),(\n (_vm.$store.state.app.activeGroup.id == 9157 ||\n _vm.$store.state.app.activeGroup.id == 6126) &&\n !_vm.hidePrint\n )?_c('div',{staticClass:\"card-footer pd-5-f\"},[_c('div',{staticClass:\"d-flex align-items-center mg-b-5\"},[_c('div',[_vm._v(\"Он\")]),_c('div',{staticClass:\"mg-l-auto\"},[_c('Select',{attrs:{\"size\":\"mini\"},on:{\"change\":_vm.yrChanged},model:{value:(_vm.yrsCur),callback:function ($$v) {_vm.yrsCur=$$v},expression:\"yrsCur\"}},_vm._l((_vm.yrs),function(yr,i){return _c('Option',{key:i,attrs:{\"value\":yr,\"label\":yr}})}),1)],1)]),_c('button',{staticClass:\"btn btn-xs btn-block btn-success btn-uppercase\",on:{\"click\":function($event){return _vm.printMission()}}},[_c('feather',{staticClass:\"mg-r-5\",attrs:{\"type\":\"printer\"}}),(_vm.$store.state.app.activeGroup.id == 6126)?_c('span',[_vm._v(\"Ёс зүйн тодорхойлолт хэвлэх\")]):_c('span',[_vm._v(\"Үүргийн биелэлт хэвлэх\")])],1)]):_vm._e(),_c('b-modal',{attrs:{\"title\":_vm.pntInf.obj.name,\"hide-footer\":\"\"},model:{value:(_vm.pntInf.modal),callback:function ($$v) {_vm.$set(_vm.pntInf, \"modal\", $$v)},expression:\"pntInf.modal\"}},[_c('div',{domProps:{\"innerHTML\":_vm._s(_vm.pntInf.obj.info)}})])],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!./goPoints.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!./goPoints.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./goPoints.vue?vue&type=template&id=13a3cdab\"\nimport script from \"./goPoints.vue?vue&type=script&lang=js\"\nexport * from \"./goPoints.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","import index from \"./goPoints.vue\";\nexport default index;\n"],"sourceRoot":""}