{"version":3,"sources":["webpack:///./src/views/pages/app/learningUnits/list.vue?6dd8","webpack:///./src/views/pages/app/learningUnits/list.vue?0433","webpack:///./src/views/pages/app/learningUnits/list.vue?c27c","webpack:///./src/views/pages/app/learningUnits/list.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_v","_s","$t","attrs","model","value","filter","callback","$$v","$set","expression","_e","errorResponse","_l","learningUnit","key","id","title","subTitle","comment","isPublic","favorite","learningProgress","scopedSlots","_u","fn","ref","hasAccess","on","$event","$router","push","staticRenderFns","Vue","extend","auth","data","learningUnits","GetLearningPathUnitPagedListRequestViewModel","pagination","isLoading","undefined","isUserVerified","computed","isAdmin","$auth","isInRole","watch","deep","handler","_this","$withoutWatchers","currentPage","$debounce","refreshList","pageSize","mounted","$service","api","users","getHasAccessToPrivateContent","methods","learnitUnits","getLearningPathUnitPagedList","response","_a","sent","items","error_1","component"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,cAAc,CAACA,EAAG,KAAK,CAACE,YAAY,QAAQ,CAACN,EAAIO,GAAG,IAAIP,EAAIQ,GAAGR,EAAIS,GAAG,mCAAmC,OAAOL,EAAG,aAAaA,EAAG,QAAQ,CAACE,YAAY,aAAa,CAACF,EAAG,QAAQ,CAACM,MAAM,CAAC,gBAAgB,KAAK,CAACN,EAAG,eAAe,CAACM,MAAM,CAAC,eAAe,SAAS,MAAQV,EAAIS,GAAG,oBAAoBE,MAAM,CAACC,MAAOZ,EAAIa,OAAqB,eAAEC,SAAS,SAAUC,GAAMf,EAAIgB,KAAKhB,EAAIa,OAAQ,iBAAkBE,IAAME,WAAW,4BAA4B,GAAIjB,EAAW,QAAEI,EAAG,QAAQ,CAACM,MAAM,CAAC,YAAY,GAAG,cAAc,KAAK,CAACN,EAAG,cAAc,CAACM,MAAM,CAAC,GAAK,uCAAuC,CAACN,E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Ae6B,EACfC,gBAAgB,IAElBC,SAAU,CACRC,QAAO,WACL,OAAOlD,KAAKmD,MAAMC,SAAS,QAAS,eAGxCC,MAAO,CACLzC,OAAQ,CACN0C,MAAM,EACNC,QAAO,WAAP,IAAAC,EAAA,KACExD,KAAKyD,kBAAiB,WACpBD,EAAKX,WAAWa,YAAc,KAEhC1D,KAAK2D,WAAU,WACbH,EAAKI,gBACJ,IAAK5D,KAFRA,KAKJ6C,WAAY,CACVS,MAAM,EACNC,QAAO,WAAP,IAAAC,EAAA,KACExD,KAAK2D,WAAU,WACbH,EAAKC,kBAAiB,WACpBD,EAAK5C,OAAO,sBAAwB4C,EAAKX,WAAWa,YACpDF,EAAK5C,OAAO,mBAAqB4C,EAAKX,WAAWgB,YAEnDL,EAAKI,gBACJ,IAAK5D,KANRA,MAUA8D,QAAO,W,oGACX9D,KAAK8C,WAAY,EACjB9C,KAAKY,OAAO,wBAAyB,EACrCZ,KAAKY,OAAO,oBAAqB,EACjCZ,KAAKgD,eAAiBhD,KAAK+D,SAASC,IAAIC,MAAMC,+BAC9ClE,KAAK8C,WAAY,E,WAEnBqB,QAAS,CACDP,YAAN,W,4HACE5D,KAAK8C,WAAY,E,iBAEE,O,sBAAA,GAAM9C,KAAK+D,SAASC,IAAII,aAAaC,6BAA6BrE,KAAKY,S,cAAlF0D,EAAWC,EAAAC,OACjBxE,KAAK2C,cAAgB2B,EAASG,M,+BAE9BzE,KAAKkB,cAAgBwD,E,oBAEvB1E,KAAK8C,WAAY,E,eC/Gsc,I,YCOzd6B,EAAY,eACd,EACA7E,EACAwC,GACA,EACA,KACA,KACA,MAIa,aAAAqC,E","file":"js/chunk-2d0ced65.e7cf4c68.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p-container',[_c('h1',{staticClass:\"mb-2\"},[_vm._v(\" \"+_vm._s(_vm.$t('learnit.glossary.learningUnits'))+\" \")]),_c('p-divider'),_c('p-row',{staticClass:\"mt-2 mb-2\"},[_c('p-col',{attrs:{\"justify-start\":\"\"}},[_c('p-text-field',{attrs:{\"context-icon\":\"search\",\"label\":_vm.$t('core.app.search')},model:{value:(_vm.filter.searchCriteria),callback:function ($$v) {_vm.$set(_vm.filter, \"searchCriteria\", $$v)},expression:\"filter.searchCriteria\"}})],1),(_vm.isAdmin)?_c('p-col',{attrs:{\"align-end\":\"\",\"justify-end\":\"\"}},[_c('router-link',{attrs:{\"to\":\"/ktgl/learnit/learningUnits/create\"}},[_c('p-button',[_c('p-icon',[_vm._v(\"add\")])],1)],1)],1):_vm._e()],1),_c('p-divider'),(_vm.errorResponse)?_c('p-request-alert',{staticClass:\"mt-2\",attrs:{\"dismissable\":false},model:{value:(_vm.errorResponse),callback:function ($$v) {_vm.errorResponse=$$v},expression:\"errorResponse\"}}):_vm._e(),(_vm.isLoading)?_c('p-progress-linear',{staticClass:\"mt-2 mb-2\",attrs:{\"indeterminate\":\"\"}}):_c('p-row',{staticClass:\"mt-2\"},_vm._l((_vm.learningUnits),function(learningUnit){return _c('p-col',{key:learningUnit.id,attrs:{\"sm12\":\"\",\"md6\":\"\",\"lg4\":\"\",\"xl3\":\"\"}},[_c('ktgl-learning-entry-card',{attrs:{\"stretch-button\":\"\",\"title\":learningUnit.title,\"subtitle\":learningUnit.subTitle,\"description\":learningUnit.comment,\"is-public\":learningUnit.isPublic,\"favorite\":learningUnit.favorite,\"progress\":learningUnit.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/\" + (learningUnit.id)))}}},[_vm._v(\" \"+_vm._s(_vm.$t('page.learningPaths.button.toLearningUnit'))+\" \")])]}}],null,true)})],1)}),1)],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\nimport Vue from 'vue';\nimport ResponsePagingInfo from '@glittr/frontend-core/src/plugins/servicelayer/responseTypes/responsePagingInfo';\nimport GetLearningPathUnitPagedListRequestViewModel from '@/src/services/viewModel/request/LearnitUnits/GetLearningPathUnitPagedListRequestViewModel';\n\nexport default Vue.extend({\n auth: true,\n data: () => ({\n learningUnits: [] as any,\n filter: new GetLearningPathUnitPagedListRequestViewModel(),\n pagination: {} as ResponsePagingInfo,\n isLoading: false,\n errorResponse: undefined as any,\n isUserVerified: false,\n }),\n computed: {\n isAdmin() {\n return this.$auth.isInRole('Admin', 'Hostadmin');\n },\n },\n watch: {\n filter: {\n deep: true,\n handler() {\n this.$withoutWatchers(() => {\n this.pagination.currentPage = 1;\n });\n this.$debounce(() => {\n this.refreshList();\n }, 300, this)();\n },\n },\n pagination: {\n deep: true,\n handler() {\n this.$debounce(() => {\n this.$withoutWatchers(() => {\n this.filter['paging.CurrentPage'] = this.pagination.currentPage;\n this.filter['paging.PageSize'] = this.pagination.pageSize;\n });\n this.refreshList();\n }, 600, this)();\n },\n },\n },\n async mounted() {\n this.isLoading = true;\n this.filter['paging.IncludeCount'] = true;\n this.filter['paging.NoPaging'] = false;\n this.isUserVerified = this.$service.api.users.getHasAccessToPrivateContent();\n this.isLoading = false;\n },\n methods: {\n async refreshList() {\n this.isLoading = true;\n try {\n const response = await this.$service.api.learnitUnits.getLearningPathUnitPagedList(this.filter);\n this.learningUnits = response.items;\n } catch (error: any) {\n this.errorResponse = error;\n }\n this.isLoading = false;\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!./list.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!./list.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./list.vue?vue&type=template&id=ce412a74&\"\nimport script from \"./list.vue?vue&type=script&lang=ts&\"\nexport * from \"./list.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"],"sourceRoot":""}