{"version":3,"sources":["webpack:///./src/views/pages/app/learningUnits/detail.vue?51fd","webpack:///./src/views/pages/app/learningUnits/detail.vue?fa20","webpack:///./src/views/pages/app/learningUnits/detail.vue?4817","webpack:///./src/views/pages/app/learningUnits/detail.vue","webpack:///./src/services/generated/types/model/request/GetLearningPathUnitByLearningPathPagedListRequestModel.ts","webpack:///./src/services/viewModel/request/LearnitPaths/GetLearningPathUnitByLearningPathPagedListRequestViewModel.ts"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","staticClass","on","$event","closeLearningUnit","_v","learningUnit","contentTypeUrl","title","_e","isLoading","pictureDocumentId","scopedSlots","_u","key","fn","learningProgress","favorite","$router","push","_s","subTitle","comment","undefined","openLearningUnit","startLearningUnit","getStartButtonText","statusPercentage","isLoadingButton","downloadLearningUnit","$t","completeLearningUnit","learningPathId","learningPath","_l","luInPath","id","class","hasAccess","goToUnit","style","isPublic","proxy","relatedLearningUnit","ref","staticRenderFns","Vue","extend","auth","data","learningContentDialogVisible","allLearningUnitsInPath","LearningPathUnitResourceViewModel","relatedLearningUnits","picturePath","LearningPathResourceViewModel","computed","isAdmin","$auth","isInRole","currentRoute","params","parseInt","learningUnitId","beforeMount","_a","$service","api","learnitUnits","getLearningPathUnitById","sent","getSimilarLearningPathUnitList","response","items","_b","learnitPaths","getLearningPathById","loadLearningPathUnits","methods","getLearningPathUnitByLearningPathPagedList","GetLearningPathUnitByLearningPathPagedListRequestViewModel","downloadLearningPathUnitCertificate","fileName","concat","utils","downloadFile","$log","error","error_1","getImage","get","responseType","baseURL","withCredentials","getUser","user","o","LearningProgressResourceViewModel","entityId","entityType","learningUnitEntityType","userId","setOrUpdateLearningProgress","path","$route","component","GetLearningPathUnitByLearningPathPagedListRequestModel","_super","__extends","Object","defineProperty","prototype","dto","value","validFrom","validUntil","statusIds","levelIds","searchCriteria","transformFromQuery","queries","Number","parseFloat","isNaN","BaseModel","transformToDTO","transformFromDTO"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,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A,EAAQ,uBACnEP,EAA2C,UAAnCO,EAAQ,6BAA6CjG,EAC7D5B,KAAKqH,IAAI,uBAAyBC,EAClCA,EAAuC,SAA/BO,EAAQ,oBAAuCA,EAAQ,mBAC/DP,EAAuC,UAA/BO,EAAQ,yBAAyCjG,EACzD5B,KAAKqH,IAAI,mBAAqBC,GAElCP,EA1EA,CAA6FkB,Q,ICP7F5C,EAAA,SAAA2B,GAAA,SAAA3B,I,+CAGA,OAHwF4B,eAAA5B,EAAA2B,GAC5E3B,EAAA+B,UAAAc,eAAV,aACU7C,EAAA+B,UAAAe,iBAAV,aACF9C,EAHA,CAAwF0B,G","file":"js/chunk-5dd89629.99341e10.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p-container',[_c('p-root-portal',[(_vm.learningContentDialogVisible)?_c('div',[_c('p-overlay',[_c('p-row',{attrs:{\"column\":\"\",\"no-gutters\":\"\"}},[_c('p-col',{attrs:{\"justify-end\":\"\"}},[_c('p-button',{staticClass:\"ma-3\",on:{\"click\":function($event){return _vm.closeLearningUnit()}}},[_c('p-icon',[_vm._v(\"close\")])],1)],1),_c('p-col',{attrs:{\"align-center\":\"\",\"justify-center\":\"\"}},[_c('iframe',{staticClass:\"externalContent\",attrs:{\"src\":_vm.learningUnit.contentTypeUrl,\"title\":_vm.learningUnit.title,\"frameborder\":\"0\"}})])],1)],1)],1):_vm._e()]),_c('ktgl-learning-entry',{attrs:{\"loading\":_vm.isLoading,\"picture-id\":_vm.learningUnit.pictureDocumentId},scopedSlots:_vm._u([{key:\"lead\",fn:function(){return [_c('p-row',{staticClass:\"absolute-top-right mr-3 mt-3\"},[_c('ktgl-learning-progress',{attrs:{\"value\":_vm.learningUnit.learningProgress}}),_c('ktgl-learning-favorite',{attrs:{\"value\":_vm.learningUnit.favorite}}),(_vm.isAdmin)?_c('p-button',{attrs:{\"dense\":\"\"},on:{\"click\":function($event){return _vm.$router.push((\"/ktgl/learnit/learningUnits/\" + (_vm.learningUnit.id) + \"/edit\"))}}},[_c('p-icon',{attrs:{\"dense\":\"\"}},[_vm._v(\" edit \")])],1):_vm._e()],1),_c('div',{staticClass:\"mt-2 mb-1\"},[_c('h3',{staticClass:\"mb-1\"},[_vm._v(\" \"+_vm._s(_vm.learningUnit.title)+\" \")]),_c('h5',[_vm._v(\" \"+_vm._s(_vm.learningUnit.subTitle)+\" \")])]),_c('p',[_vm._v(_vm._s(_vm.learningUnit.comment))]),_c('p-row',{attrs:{\"justify-end\":\"\",\"sm12\":\"\",\"md6\":\"\",\"lg4\":\"\"}},[(_vm.learningUnit.learningProgress === undefined)?_c('p-button',{on:{\"click\":function($event){_vm.openLearningUnit(), _vm.startLearningUnit()}}},[_vm._v(\" \"+_vm._s(_vm.learningUnit.getStartButtonText)+\" \")]):_c('p-button',{attrs:{\"secondary\":\"\"},on:{\"click\":function($event){_vm.openLearningUnit(), _vm.startLearningUnit()}}},[_vm._v(\" \"+_vm._s(_vm.learningUnit.getStartButtonText)+\" \")]),(_vm.learningUnit.learningProgress && _vm.learningUnit.learningProgress.statusPercentage === 100)?_c('p-button',{attrs:{\"disabled\":_vm.isLoadingButton,\"loading\":_vm.isLoadingButton},on:{\"click\":function($event){return _vm.downloadLearningUnit()}}},[_vm._v(\" \"+_vm._s(_vm.$t('learnit.baseData.button.printCertificate'))+\" \")]):_vm._e(),(_vm.learningUnit.learningProgress && _vm.learningUnit.learningProgress.statusPercentage === 0)?_c('p-button',{on:{\"click\":function($event){return _vm.completeLearningUnit()}}},[_vm._v(\" \"+_vm._s(_vm.$t('app.unitOrPath.finish'))+\" \")]):_vm._e()],1),(_vm.learningPathId !== undefined)?[_c('p-divider',{staticClass:\"my-3\"}),_c('p-row',{attrs:{\"column\":\"\",\"dense\":\"\",\"align-center\":\"\",\"justify-center\":\"\"}},[_c('p-col',[_c('span',[_vm._v(_vm._s(_vm.$t('page.learningUnits.label.learningUnitsInPath'))+\" \\\"\"+_vm._s(_vm.learningPath.title)+\"\\\":\")])]),_c('p-col',{attrs:{\"xs12\":\"\",\"md10\":\"\",\"lg8\":\"\",\"xl6\":\"\"}},_vm._l((_vm.allLearningUnitsInPath),function(luInPath){return _c('p-row',{key:luInPath.id,staticClass:\"ktgl-learning-path-units-list\",attrs:{\"dense\":\"\",\"nowrap\":\"\"}},[_c('p-button',{class:{'text-color-interaction': luInPath.id === _vm.learningUnit.id},attrs:{\"disabled\":!luInPath.hasAccess,\"secondary\":\"\",\"stretch\":\"\",\"title\":luInPath.title},on:{\"click\":function($event){return _vm.goToUnit(luInPath.id)}}},[_c('div',{staticClass:\"text-truncate\"},[_vm._v(\" \"+_vm._s(luInPath.title)+\" \")])]),_c('ktgl-learning-progress',{attrs:{\"value\":luInPath.learningProgress}}),_c('p-col',{staticClass:\"ix-1 ml-2\",attrs:{\"align-center\":\"\",\"justify-end\":\"\"}},[_c('ktgl-learning-lock',{style:({'visibility': luInPath.isPublic ? 'hidden' : 'visible'}),attrs:{\"is-public\":luInPath.isPublic}})],1)],1)}),1)],1),_c('p-row',{attrs:{\"justify-start\":\"\"}},[_c('p-button',{staticClass:\"mt-7\",attrs:{\"secondary\":\"\"},on:{\"click\":function($event){return _vm.$router.push('/ktgl/learnit/learningPaths/' + _vm.learningPathId)}}},[_c('p-icon',{attrs:{\"left\":\"\"}},[_vm._v(\" chevron_left \")]),_vm._v(\" \"+_vm._s(_vm.$t('page.learningUnits.button.backToLearningPath'))+\" \")],1)],1)]:_vm._e()]},proxy:true},{key:\"extra\",fn:function(){return [_c('h3',[_vm._v(_vm._s(_vm.$t('page.learningUnits.title.relatedLearningUnits')))]),_c('p-divider',{staticClass:\"mb-2\"}),_c('p-row',_vm._l((_vm.relatedLearningUnits),function(relatedLearningUnit){return _c('p-col',{key:relatedLearningUnit.id,attrs:{\"sm12\":\"\",\"md6\":\"\",\"lg4\":\"\",\"xl3\":\"\"}},[_c('ktgl-learning-entry-card',{attrs:{\"title\":relatedLearningUnit.title,\"subtitle\":relatedLearningUnit.subTitle,\"description\":relatedLearningUnit.comment,\"is-public\":relatedLearningUnit.isPublic,\"favorite\":relatedLearningUnit.favorite,\"progress\":relatedLearningUnit.learningProgress},scopedSlots:_vm._u([{key:\"action\",fn:function(ref){\nvar hasAccess = ref.hasAccess;\nreturn [_c('p-button',{attrs:{\"stretch\":\"\",\"disabled\":!hasAccess},on:{\"click\":function($event){return _vm.$router.push((\"/ktgl/learnit/learningUnits/\" + (relatedLearningUnit.id)))}}},[_vm._v(\" \"+_vm._s(_vm.$t('page.learningPaths.button.toLearningUnit'))+\" \")])]}}],null,true)})],1)}),1)]},proxy:true}])})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport Vue from 'vue';\nimport LearningPathUnitResourceViewModel from '@/src/services/viewModel/resource/LearningPathUnitResourceViewModel';\nimport LearningPathUnitListResourceViewModel from '@/src/services/viewModel/resource/LearningPathUnitListResourceViewModel';\nimport GetLearningPathUnitByLearningPathPagedListRequestViewModel from '@/src/services/viewModel/request/LearnitPaths/GetLearningPathUnitByLearningPathPagedListRequestViewModel';\nimport LearningPathResourceViewModel from '@/src/services/viewModel/resource/LearningPathResourceViewModel';\nimport LearningProgressResourceViewModel from '@/src/services/viewModel/resource/LearningProgressResourceViewModel';\n\nexport default Vue.extend({\n auth: true,\n data: () => ({\n isLoading: false,\n isLoadingButton: false,\n learningContentDialogVisible: false,\n allLearningUnitsInPath: [] as any[],\n learningUnit: new LearningPathUnitResourceViewModel(),\n relatedLearningUnits: [] as LearningPathUnitListResourceViewModel[],\n picturePath: '/img/learnit-unit-default.png',\n learningPath: new LearningPathResourceViewModel(),\n }),\n computed: {\n isAdmin(): boolean {\n return this.$auth.isInRole('Admin', 'Hostadmin');\n },\n learningPathId(): number | undefined {\n const { learningPathId } = this.$router.currentRoute.params;\n if (learningPathId) {\n return parseInt(learningPathId, 10);\n }\n return undefined;\n },\n learningUnitId() {\n const { learningUnitId } = this.$router.currentRoute.params;\n if (learningUnitId) {\n return parseInt(learningUnitId, 10);\n }\n return undefined;\n },\n },\n async beforeMount() {\n this.isLoading = true;\n if (this.learningUnitId) {\n this.learningUnit = await this.$service.api.learnitUnits.getLearningPathUnitById(this.learningUnitId!);\n const response = await this.$service.api.learnitUnits.getSimilarLearningPathUnitList(this.learningUnitId!);\n this.relatedLearningUnits = response.items;\n if (this.learningPathId) {\n this.learningPath = await this.$service.api.learnitPaths.getLearningPathById(this.learningPathId);\n await this.loadLearningPathUnits();\n }\n }\n\n this.isLoading = false;\n },\n methods: {\n async loadLearningPathUnits() {\n const response = await this.$service.api.learnitPaths.getLearningPathUnitByLearningPathPagedList(this.learningPathId!, new GetLearningPathUnitByLearningPathPagedListRequestViewModel());\n this.allLearningUnitsInPath = response.items;\n },\n closeLearningUnit() {\n this.learningContentDialogVisible = false;\n },\n openLearningUnit() {\n this.learningContentDialogVisible = true;\n },\n async downloadLearningUnit() {\n this.isLoadingButton = true;\n try {\n const response = await this.$service.api.learnitUnits.downloadLearningPathUnitCertificate(this.learningUnitId!);\n const fileName = `Zertifikat-${this.learningUnit.title}.pdf`;\n this.$service.utils.downloadFile(fileName, response);\n } catch (error) {\n this.$log.error(error);\n }\n this.isLoadingButton = false;\n },\n getImage() {\n return this.$service.get('', {\n responseType: 'blob',\n baseURL: 'https://source.unsplash.com/featured?learning,teaching,computer',\n withCredentials: false,\n });\n },\n async startLearningUnit() {\n const user = await this.$auth.getUser();\n const o = new LearningProgressResourceViewModel();\n o.entityId = this.learningUnit.id;\n o.entityType = this.learningUnit.learningUnitEntityType;\n o.userId = user?.id!;\n if (this.learningUnit.learningProgress === undefined || this.learningUnit.learningProgress.statusPercentage !== 0) {\n await this.$service.api.learningProgress.setOrUpdateLearningProgress(o);\n }\n this.learningUnit = await this.$service.api.learnitUnits.getLearningPathUnitById(this.learningUnit.id!);\n },\n async completeLearningUnit() {\n const user = await this.$auth.getUser();\n const o = new LearningProgressResourceViewModel();\n o.entityId = this.learningUnit.id;\n o.entityType = this.learningUnit.learningUnitEntityType;\n o.userId = user?.id!;\n o.statusPercentage = 100;\n await this.$service.api.learningProgress.setOrUpdateLearningProgress(o);\n this.learningUnit = await this.$service.api.learnitUnits.getLearningPathUnitById(this.learningUnit.id!);\n },\n goToUnit(learningUnitId: number) {\n const path = `/ktgl/learnit/learningPaths/${this.learningPathId}/learningUnits/${learningUnitId}`;\n if (this.$route.path !== path) {\n this.$router.push(path);\n }\n },\n },\n});\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--14-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./detail.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--14-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./detail.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./detail.vue?vue&type=template&id=bb103216&\"\nimport script from \"./detail.vue?vue&type=script&lang=ts&\"\nexport * from \"./detail.vue?vue&type=script&lang=ts&\"\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","// ╭────────────────────────────────────────────────────────────────────────────────────╮\r\n// ┊ This file was automatically generated\r\n// ┊ Please do not modify manually\r\n// ┊ ©gl it 2022 - http://www.gl-it.ch\r\n// ╰────────────────────────────────────────────────────────────────────────────────────╯\r\n\r\nimport BaseModel from '@glittr/frontend-core/src/plugins/servicelayer/serviceTypes/baseModel';\r\nimport GetLearningPathUnitByLearningPathPagedListRequestDTO from '../../dto/request/GetLearningPathUnitByLearningPathPagedListRequestDTO';\r\n\r\nexport default abstract class GetLearningPathUnitByLearningPathPagedListRequestModel extends BaseModel {\r\n // #region ──BodyRequest──────────────────────────╮\r\n // #endregion ───────────────────────────────────────╯\r\n // #region ──HeaderRequest──────────────────────────╮\r\n // #endregion ─────────────────────────────────────────╯\r\n // #region ──QueryRequest──────────────────────────╮\r\n /**\r\n * @type {int64}\r\n */\r\n get userId() { return this.dto.userId; }\r\n set userId(value) { this.dto.userId = value; }\r\n /**\r\n * @type {date-time}\r\n */\r\n get validFrom() { return this.dto.validFrom; }\r\n set validFrom(value) { this.dto.validFrom = value; }\r\n /**\r\n * @type {date-time}\r\n */\r\n get validUntil() { return this.dto.validUntil; }\r\n set validUntil(value) { this.dto.validUntil = value; }\r\n /**\r\n */\r\n get statusIds() { return this.dto.statusIds; }\r\n set statusIds(value) { this.dto.statusIds = value; }\r\n /**\r\n */\r\n get levelIds() { return this.dto.levelIds; }\r\n set levelIds(value) { this.dto.levelIds = value; }\r\n /**\r\n */\r\n get searchCriteria() { return this.dto.searchCriteria; }\r\n set searchCriteria(value) { this.dto.searchCriteria = value; }\r\n /**\r\n * @type {int32}\r\n */\r\n get 'paging.CurrentPage'() { return this.dto['paging.CurrentPage']; }\r\n set 'paging.CurrentPage'(value) { this.dto['paging.CurrentPage'] = value; }\r\n /**\r\n * @type {int32}\r\n */\r\n get 'paging.PageSize'() { return this.dto['paging.PageSize']; }\r\n set 'paging.PageSize'(value) { this.dto['paging.PageSize'] = value; }\r\n /**\r\n */\r\n get 'paging.IncludeCount'() { return this.dto['paging.IncludeCount']; }\r\n set 'paging.IncludeCount'(value) { this.dto['paging.IncludeCount'] = value; }\r\n /**\r\n */\r\n get 'paging.NoPaging'() { return this.dto['paging.NoPaging']; }\r\n set 'paging.NoPaging'(value) { this.dto['paging.NoPaging'] = value; }\r\n // #endregion ────────────────────────────────────────╯\r\n\r\n protected transformFromQuery(queries: Record): void {\r\n let value: any;\r\n value = Number.parseFloat(queries.userId);\r\n value = Number.isNaN(value) ? undefined : value;\r\n this.dto.userId = value;\r\n this.dto.validFrom = queries.validFrom;\r\n this.dto.validUntil = queries.validUntil;\r\n this.dto.searchCriteria = queries.searchCriteria;\r\n value = Number.parseFloat(queries['paging.CurrentPage']);\r\n value = Number.isNaN(value) ? undefined : value;\r\n this.dto['paging.CurrentPage'] = value;\r\n value = Number.parseFloat(queries['paging.PageSize']);\r\n value = Number.isNaN(value) ? undefined : value;\r\n this.dto['paging.PageSize'] = value;\r\n value = queries['paging.IncludeCount'] === 'true' ? true : queries['paging.IncludeCount'];\r\n value = queries['paging.IncludeCount'] === 'false' ? false : undefined;\r\n this.dto['paging.IncludeCount'] = value;\r\n value = queries['paging.NoPaging'] === 'true' ? true : queries['paging.NoPaging'];\r\n value = queries['paging.NoPaging'] === 'false' ? false : undefined;\r\n this.dto['paging.NoPaging'] = value;\r\n }\r\n}\r\n","import GetLearningPathUnitByLearningPathPagedListRequestModel from '../../../generated/types/model/request/GetLearningPathUnitByLearningPathPagedListRequestModel';\r\n\r\nexport default class GetLearningPathUnitByLearningPathPagedListRequestViewModel extends GetLearningPathUnitByLearningPathPagedListRequestModel {\r\n protected transformToDTO() {}\r\n protected transformFromDTO() {}\r\n}\r\n"],"sourceRoot":""}