{"version":3,"sources":["webpack:///./src/views/seminars/components/VideoMenu.vue?dc7f","webpack:///./src/views/seminars/components/VideoMenu.vue","webpack:///./src/views/seminars/components/VideoMenu.vue?9584","webpack:///./src/views/seminars/components/VideoMenu.vue?c262","webpack:///./src/views/seminars/components/VideoSubmission.vue?0a6e","webpack:///./src/views/seminars/components/VideoSubmission.vue?7725","webpack:///./src/views/seminars/components/VideoSubmission.vue","webpack:///./src/views/seminars/components/VideoSubmission.vue?ad01","webpack:///./src/views/seminars/components/VideoSubmission.vue?352f","webpack:///./src/views/seminars/components/VideoRatings.vue?b474","webpack:///./src/views/seminars/components/VideoRatings.vue?f4b5","webpack:///./src/views/seminars/components/VideoRatings.vue","webpack:///./src/views/seminars/components/VideoRatings.vue?319f","webpack:///./src/views/seminars/components/VideoRatings.vue?502a"],"names":["render","_vm","this","_h","$createElement","_c","_self","VMenu","attrs","scopedSlots","_u","key","fn","ref","on","VBtn","_g","sharing","removing","VIcon","_v","VList","VListItem","canShare","isShared","callToggle","_s","$t","_e","VDialog","model","value","callback","$$v","removeDialog","expression","VCard","VSpacer","$event","remove","staticRenderFns","VideoMenu","submission","userId","seminar","ownerId","toggleShared","id","$emit","removeSubmission","Vue","__decorate","Prop","default","Getter","Action","Component","component","_f","createdAt","submitter","staticClass","class","horizontal","videoURI","elementTitle","handleRated","goToVideo","VideoSubmission","isRateable","skipped","user","users","find","x","username","el","elements","elementId","other","submissions","filter","length","title","idx","findIndex","type","maxShared","maxNumShared","numShared","payload","$router","push","components","VideoPlayer","VideoRatings","selected","hasRated","stopPropagation","rate","VTooltip","isLoading","VProgressCircular","countRatings","openRatings","ratingsDialog","selectedType","shown","ratings","_l","r","i","getUser","rater","rateLoading","typeLoading","rateVideo","submissionId","videoRatings","some","u","email","owner"],"mappings":"4RAYIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAAEJ,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EAAE7C,SAAQ,aAAK6C,EAAEC,MAAK,KAJ1B1E,KAAmB,QAAjB,EAAK7C,KAAK0C,eAAO,OAAO,QAAP,EAAZ,EAAc8E,aAAK,WAAP,EAAZ,EAAqB3E,IACvB,GAAP,OAAU7C,KAAK0C,QAAQ8E,MAAM/C,SAAQ,aAAKzE,KAAK0C,QAAQ8E,MAAMD,MAAK,aAC7D,OAGV,EArF8B,CAASvE,cACRC,gBAA/BC,eAAK,CAAEC,QAAS,kBAAM,MAAQ,+BACKF,gBAAnCC,eAAK,CAAEC,QAAS,gBAAkB,8BACCF,gBAAnCC,eAAK,CAAEC,QAAS,gBAAkB,iCACbF,gBAArBG,eAAO,eAAa,6BACKH,gBAAzBG,eAAO,mBAAiB,4BAEzBH,gBADCI,eAAO,uBAAqB,gCANVwC,EAAY,gBADhCvC,eAAU,CAAEqC,WAAY,CAAEC,uBACNC,WC3KsZ,I,wBCQvatC,EAAY,eACd,EACAzD,EACAwC,GACA,EACA,KACA,WACA,MAIa,aAAAiB,E","file":"assets/js/chunk-15f568f7.1aad27b6.js","sourcesContent":["import { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardActions } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VCardTitle } from 'vuetify/lib/components/VCard';\nimport { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VList } from 'vuetify/lib/components/VList';\nimport { VListItem } from 'vuetify/lib/components/VList';\nimport { VMenu } from 'vuetify/lib/components/VMenu';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\n\nvar render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.canView)?_c(VMenu,{attrs:{\"bottom\":\"\",\"offset-y\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [_c(VBtn,_vm._g({attrs:{\"icon\":\"\",\"loading\":_vm.sharing || _vm.removing}},on),[_c(VIcon,[_vm._v(\"mdi-dots-vertical\")])],1)]}}],null,false,931124527)},[_c(VList,[_c(VListItem,{attrs:{\"disabled\":!_vm.canShare && !_vm.isShared},on:{\"click\":_vm.callToggle}},[_vm._v(\" \"+_vm._s(_vm.isShared ? _vm.$t(\"seminars.video_presentation.unshare\") : _vm.$t(\"seminars.video_presentation.share\"))+\" \")])],1)],1):_vm._e(),(_vm.canView)?_c(VDialog,{attrs:{\"max-width\":\"400px\"},model:{value:(_vm.removeDialog),callback:function ($$v) {_vm.removeDialog=$$v},expression:\"removeDialog\"}},[_c(VCard,{attrs:{\"outlined\":\"\"}},[_c(VCardTitle,[_vm._v(_vm._s(_vm.$t(\"seminars.video_presentation.delete\")))]),_c(VCardText,[_vm._v(\" \"+_vm._s(_vm.$t(\"seminars.video_presentation.delConfirm\"))+\" \")]),_c(VCardActions,[_c(VSpacer),_c(VBtn,{attrs:{\"elevation\":\"0\"},on:{\"click\":function($event){_vm.removeDialog = false}}},[_c('span',[_vm._v(_vm._s(_vm.$t(\"global.cancel\")))])]),_c(VBtn,{attrs:{\"elevation\":\"0\",\"color\":\"primary\"},on:{\"click\":_vm.remove}},[_c('span',[_vm._v(_vm._s(_vm.$t(\"global.confirm\")))])])],1)],1)],1):_vm._e()],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\r\nimport Vue from \"vue\";\r\nimport { Action, Getter } from \"vuex-class\";\r\nimport { Component, Prop } from \"vue-property-decorator\";\r\n\r\nimport { Seminar, Submission } from \"@/core/models\";\r\n\r\n@Component\r\nexport default class VideoMenu extends Vue {\r\n @Prop({ default: () => true }) canShare!: boolean;\r\n @Prop({ default: () => undefined }) submission?: Submission;\r\n @Getter(\"seminars/selected\") seminar?: Seminar;\r\n @Getter(\"profile/id\") userId!: string;\r\n @Action(\"seminars/toggleShared\") toggleShared!: (id: number) => Promise;\r\n @Action(\"seminars/removeSubmission\")\r\n removeSubmission!: (id: number) => Promise;\r\n\r\n get canView() {\r\n return (\r\n this.submission?.userId === this.userId ||\r\n this.userId === this.seminar?.ownerId\r\n );\r\n }\r\n\r\n get isShared() {\r\n return (this.submission as any).isShared || false;\r\n }\r\n\r\n sharing = false;\r\n async callToggle() {\r\n if (!this.submission || this.sharing) return;\r\n this.sharing = true;\r\n await this.toggleShared(this.submission.id);\r\n this.$emit(\"update\");\r\n this.sharing = false;\r\n }\r\n\r\n removing = false;\r\n removeDialog = false;\r\n async remove() {\r\n if (!this.submission || this.removing) return;\r\n this.removing = true;\r\n await this.removeSubmission(this.submission.id);\r\n this.$emit(\"update\");\r\n this.removing = false;\r\n this.removeDialog = false;\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VideoMenu.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VideoMenu.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./VideoMenu.vue?vue&type=template&id=6b9645fb&\"\nimport script from \"./VideoMenu.vue?vue&type=script&lang=ts&\"\nexport * from \"./VideoMenu.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","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VideoSubmission.vue?vue&type=style&index=0&id=18315b1a&prod&lang=scss&scoped=true&\"","import { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardSubtitle } from 'vuetify/lib/components/VCard';\nimport { VCardTitle } from 'vuetify/lib/components/VCard';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\n\nvar render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.isSkipped)?_c('div',[_c(VCard,{attrs:{\"outlined\":\"\"}},[_c(VCardTitle,[_vm._v(_vm._s(_vm.$t(\"video_presentation.skipped\")))]),_c(VCardSubtitle,[_vm._v(\" \"+_vm._s(_vm._f(\"formatwithtime\")(_vm.submission.createdAt))+\" \")]),_c(VCardSubtitle,[_vm._v(_vm._s(_vm.submitter))])],1)],1):_c('div',{staticClass:\"wrapper\",class:{ horizontal: _vm.horizontal }},[_c('div',{staticClass:\"video-wrapper\"},[_c('VideoPlayer',{attrs:{\"id\":_vm.id,\"url\":_vm.submission.videoURI}})],1),_c('div',{staticClass:\"mt-4 flex-1\"},[_c('div',{staticClass:\"d-flex\"},[_c('div',{staticClass:\"flex-1 mr-4\"},[_c('h3',[_vm._v(_vm._s(_vm._f(\"truncate\")(_vm.elementTitle,100)))]),_c('div',[_c('span',{staticClass:\"subtitle-2 text-truncate\"},[_vm._v(\" \"+_vm._s(_vm._f(\"truncate\")(_vm.submitter,50))+\" \")])]),_c('div',{staticClass:\"text-truncate\"},[_c('span',{staticClass:\"subtitle-2 text-truncate\"},[_vm._v(\" \"+_vm._s(_vm._f(\"formatwithtime\")(_vm.submission.createdAt))+\" \")])])]),_c('VideoMenu',{attrs:{\"submission\":_vm.submission,\"can-share\":_vm.canShare}})],1),_c('div',{staticClass:\"mt-4\"},[(_vm.isRateable)?_c('VideoRatings',{attrs:{\"seminar\":_vm.seminar,\"submission\":_vm.submission},on:{\"rated\":_vm.handleRated}}):_vm._e()],1),_c('div',{staticClass:\"mt-4\"},[_c(VBtn,{attrs:{\"small\":\"\",\"elevation\":\"0\"},on:{\"click\":_vm.goToVideo}},[_c('span',[_vm._v(\"See Details\")]),_c(VIcon,{attrs:{\"right\":\"\"}},[_vm._v(\"mdi-chevron-right\")])],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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport Vue from \"vue\";\r\nimport { Getter } from \"vuex-class\";\r\nimport { Component, Prop } from \"vue-property-decorator\";\r\n\r\nimport { Seminar, Submission } from \"@/core/models\";\r\nimport VideoPlayer from \"@/components/common/VideoPlayer.vue\";\r\nimport VideoRatings from \"./VideoRatings.vue\";\r\nimport VideoMenu from \"./VideoMenu.vue\";\r\n\r\n@Component({ components: { VideoPlayer, VideoRatings, VideoMenu } })\r\nexport default class VideoSubmission extends Vue {\r\n @Prop({ default: () => false }) horizontal!: boolean;\r\n @Prop({ default: () => \"unknown_video\" }) id!: string;\r\n @Prop({ default: () => undefined }) seminar?: Seminar;\r\n @Prop({ default: () => undefined }) submission?: Submission;\r\n @Getter(\"profile/id\") userId!: string;\r\n\r\n get isRateable() {\r\n return (this.submission as any).isRateable || false;\r\n }\r\n\r\n get isSkipped() {\r\n return this.submission?.skipped;\r\n }\r\n\r\n get submitter() {\r\n const user = this.seminar?.users?.find(\r\n x => x.id === this.submission?.userId,\r\n );\r\n if (!user) return \"<>\";\r\n return `${user.username}`;\r\n }\r\n\r\n get elementTitle() {\r\n const el = this.seminar?.elements?.find(\r\n x => x.id === this.submission?.elementId,\r\n );\r\n if (!el) return \"\";\r\n const other = el.submissions?.filter(\r\n x => x.elementId === this.submission?.elementId,\r\n );\r\n if (!other || other.length < 2) return el.title;\r\n const idx = other?.findIndex(x => x.id === this.submission?.id);\r\n return `${el.title} (${idx + 1})`;\r\n }\r\n\r\n get canShare() {\r\n const el = this.seminar?.elements?.find(\r\n x => x.id === this.submission?.elementId,\r\n );\r\n if (!el || el.type !== \"video_presentation\") return false;\r\n\r\n const maxShared = el.maxNumShared || 0;\r\n const numShared =\r\n this.seminar?.submissions?.filter(\r\n x => x.elementId === el.id && x.isShared,\r\n ).length || 0;\r\n\r\n return numShared < maxShared;\r\n }\r\n\r\n handleRated(payload: any) {\r\n this.$emit(\"rated\", payload);\r\n }\r\n\r\n goToVideo() {\r\n if (!this.submission?.id) return;\r\n this.$router.push(`/seminars/submission/${this.submission.id}`);\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VideoSubmission.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VideoSubmission.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./VideoSubmission.vue?vue&type=template&id=18315b1a&scoped=true&\"\nimport script from \"./VideoSubmission.vue?vue&type=script&lang=ts&\"\nexport * from \"./VideoSubmission.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./VideoSubmission.vue?vue&type=style&index=0&id=18315b1a&prod&lang=scss&scoped=true&\"\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 \"18315b1a\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VideoRatings.vue?vue&type=style&index=0&id=da0e81ac&prod&lang=scss&scoped=true&\"","import { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VCardTitle } from 'vuetify/lib/components/VCard';\nimport { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VList } from 'vuetify/lib/components/VList';\nimport { VListItem } from 'vuetify/lib/components/VList';\nimport { VListItemContent } from 'vuetify/lib/components/VList';\nimport { VListItemSubtitle } from 'vuetify/lib/components/VList';\nimport { VListItemTitle } from 'vuetify/lib/components/VList';\nimport { VProgressCircular } from 'vuetify/lib/components/VProgressCircular';\nimport { VTooltip } from 'vuetify/lib/components/VTooltip';\n\nvar render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"d-flex flex-wrap align-center\"},[_c('div',{staticClass:\"rating-button\",class:{ selected: _vm.hasRated('amusing') },on:{\"click\":function($event){$event.stopPropagation();return _vm.rate('amusing')}}},[(_vm.extended)?_c('span',{staticClass:\"text\"},[_vm._v(\" \"+_vm._s(_vm.$t(\"seminars.ratings.amusing\"))+\" \")]):_vm._e(),(_vm.extended)?_c('span',{staticClass:\"icon\"},[_vm._v(\"😮\")]):_c(VTooltip,{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [_c('span',_vm._g({staticClass:\"icon\"},on),[_vm._v(\"😮\")])]}}])},[_c('span',[_vm._v(_vm._s(_vm.$t(\"seminars.ratings.amusing\")))])]),(_vm.isLoading('amusing'))?_c(VProgressCircular,{attrs:{\"indeterminate\":\"\",\"size\":\"16\",\"width\":\"2\"}}):_c('div',[_vm._v(_vm._s(_vm.countRatings(\"amusing\")))])],1),_c('div',{staticClass:\"rating-button\",class:{ selected: _vm.hasRated('creative') },on:{\"click\":function($event){$event.stopPropagation();return _vm.rate('creative')}}},[(_vm.extended)?_c('span',{staticClass:\"text\"},[_vm._v(\" \"+_vm._s(_vm.$t(\"seminars.ratings.creative\"))+\" \")]):_vm._e(),(_vm.extended)?_c('span',{staticClass:\"icon\"},[_vm._v(\"🎨\")]):_c(VTooltip,{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [_c('span',_vm._g({staticClass:\"icon\"},on),[_vm._v(\"🎨\")])]}}])},[_c('span',[_vm._v(_vm._s(_vm.$t(\"seminars.ratings.creative\")))])]),(_vm.isLoading('creative'))?_c(VProgressCircular,{attrs:{\"indeterminate\":\"\",\"size\":\"16\",\"width\":\"2\"}}):_c('div',[_vm._v(_vm._s(_vm.countRatings(\"creative\")))])],1),_c('div',{staticClass:\"rating-button\",class:{ selected: _vm.hasRated('professional') },on:{\"click\":function($event){$event.stopPropagation();return _vm.rate('professional')}}},[(_vm.extended)?_c('span',{staticClass:\"text\"},[_vm._v(\" \"+_vm._s(_vm.$t(\"seminars.ratings.professional\"))+\" \")]):_vm._e(),(_vm.extended)?_c('span',{staticClass:\"icon\"},[_vm._v(\"💼\")]):_c(VTooltip,{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [_c('span',_vm._g({staticClass:\"icon\"},on),[_vm._v(\"💼\")])]}}])},[_c('span',[_vm._v(_vm._s(_vm.$t(\"seminars.ratings.professional\")))])]),(_vm.isLoading('professional'))?_c(VProgressCircular,{attrs:{\"indeterminate\":\"\",\"size\":\"16\",\"width\":\"2\"}}):_c('div',[_vm._v(_vm._s(_vm.countRatings(\"professional\")))])],1),(_vm.extended)?_c(VBtn,{staticClass:\"ml-4\",attrs:{\"text\":\"\",\"small\":\"\"},on:{\"click\":_vm.openRatings}},[_c('span',[_vm._v(\"Details\")])]):_vm._e()],1),(_vm.extended)?_c(VDialog,{attrs:{\"max-width\":\"600px\"},model:{value:(_vm.ratingsDialog),callback:function ($$v) {_vm.ratingsDialog=$$v},expression:\"ratingsDialog\"}},[_c(VCard,{attrs:{\"outlined\":\"\"}},[_c(VCardTitle,[_vm._v(\"Ratings for this video\")]),_c(VCardText,[_c('div',{staticClass:\"ratings-toggle\"},[_c('div',{staticClass:\"tab-wrapper mr-4\"},[_c('div',{staticClass:\"tab\",on:{\"click\":function($event){_vm.selectedType = ''}}},[_c('div',[_vm._v(\"All\")])]),_c('div',{staticClass:\"indicator\",class:{ shown: _vm.selectedType === '' }})]),_c('div',{staticClass:\"tab-wrapper mr-4\"},[_c('div',{staticClass:\"tab\",on:{\"click\":function($event){_vm.selectedType = 'amusing'}}},[_c('span',{staticClass:\"icon\"},[_vm._v(\"😮\")]),_c('div',[_vm._v(_vm._s(_vm.countRatings(\"amusing\")))])]),_c('div',{staticClass:\"indicator\",class:{ shown: _vm.selectedType === 'amusing' }})]),_c('div',{staticClass:\"tab-wrapper mr-4\"},[_c('div',{staticClass:\"tab\",on:{\"click\":function($event){_vm.selectedType = 'creative'}}},[_c('span',{staticClass:\"icon\"},[_vm._v(\"🎨\")]),_c('div',[_vm._v(_vm._s(_vm.countRatings(\"creative\")))])]),_c('div',{staticClass:\"indicator\",class:{ shown: _vm.selectedType === 'creative' }})]),_c('div',{staticClass:\"tab-wrapper\"},[_c('div',{staticClass:\"tab\",on:{\"click\":function($event){_vm.selectedType = 'professional'}}},[_c('span',{staticClass:\"icon\"},[_vm._v(\"💼\")]),_c('div',[_vm._v(_vm._s(_vm.countRatings(\"professional\")))])]),_c('div',{staticClass:\"indicator\",class:{ shown: _vm.selectedType === 'professional' }})])]),(!_vm.ratings.length)?_c('div',[_vm._v(\"None\")]):_c('div',[_c(VList,_vm._l((_vm.filteredRatigns),function(r,i){return _c(VListItem,{key:i},[_c(VListItemContent,[_c(VListItemTitle,[_vm._v(_vm._s(_vm.getUser(r.rater)))]),_c(VListItemSubtitle,[_vm._v(\" \"+_vm._s(_vm._f(\"formatwithtime\")(r.createdAt))+\" \")]),(_vm.selectedType === '')?_c(VListItemSubtitle,[_vm._v(\" \"+_vm._s(_vm.$t((\"seminars.ratings.\" + (r.type))))+\" \")]):_vm._e()],1)],1)}),1)],1)])],1)],1):_vm._e()],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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport Vue from \"vue\";\r\nimport { Action, Getter } from \"vuex-class\";\r\nimport { Component, Prop } from \"vue-property-decorator\";\r\n\r\nimport {\r\n RateVideoAction,\r\n Rating,\r\n Seminar,\r\n SimpleUser,\r\n Submission,\r\n} from \"@/core/models\";\r\nimport VideoPlayer from \"@/components/common/VideoPlayer.vue\";\r\n\r\n@Component({ components: { VideoPlayer } })\r\nexport default class VideoRatings extends Vue {\r\n @Prop({ default: () => false }) extended!: boolean;\r\n @Prop({ default: () => undefined }) seminar?: Seminar;\r\n @Prop({ default: () => undefined }) submission?: Submission;\r\n @Getter(\"profile/id\") userId!: string;\r\n @Getter(\"seminars/users\") users!: SimpleUser[];\r\n @Action(\"seminars/rateVideo\")\r\n rateVideo!: (d: RateVideoAction) => Promise;\r\n\r\n get ownSub() {\r\n return this.submission?.userId === this.userId;\r\n }\r\n\r\n get isShared() {\r\n return (this.submission as any).isShared || false;\r\n }\r\n\r\n get isRateable() {\r\n return (this.submission as any).isRateable || false;\r\n }\r\n\r\n rateLoading = false;\r\n typeLoading = \"\";\r\n async rate(type: string) {\r\n if (\r\n !this.submission?.id ||\r\n this.rateLoading ||\r\n this.submission.type === \"watch_feedback\"\r\n )\r\n return;\r\n\r\n this.rateLoading = true;\r\n this.typeLoading = type;\r\n await this.rateVideo({\r\n submissionId: this.submission.id,\r\n type,\r\n });\r\n this.$emit(\"rated\", {\r\n submissionId: this.submission.id,\r\n type,\r\n });\r\n this.typeLoading = \"\";\r\n this.rateLoading = false;\r\n }\r\n\r\n isLoading(type: string) {\r\n return this.rateLoading && this.typeLoading === type;\r\n }\r\n\r\n countRatings(type: string) {\r\n const ratings = (this.submission as any)?.videoRatings as\r\n | Rating[]\r\n | undefined;\r\n if (!ratings?.length) return 0;\r\n return ratings.filter(x => x.type === type).length;\r\n }\r\n\r\n hasRated(type: string) {\r\n const ratings = (this.submission as any)?.videoRatings as\r\n | Rating[]\r\n | undefined;\r\n if (!ratings?.length) return false;\r\n return ratings.some(x => x.type === type && x.rater === this.userId);\r\n }\r\n\r\n selectedType = \"\";\r\n ratingsDialog = false;\r\n ratings: Rating[] = [];\r\n openRatings() {\r\n if (!this.submission) return;\r\n this.ratingsDialog = true;\r\n this.ratings = (this.submission as any).videoRatings;\r\n }\r\n get filteredRatigns() {\r\n if (!this.selectedType) return this.ratings;\r\n return this.ratings.filter(x => x.type === this.selectedType);\r\n }\r\n getUser(id: string) {\r\n const u = this.users.find(x => x.id === id);\r\n if (!u) {\r\n if (id === this.seminar?.owner?.id)\r\n return `${this.seminar.owner.username} (${this.seminar.owner.email}) - Owner`;\r\n return \"\";\r\n }\r\n return `${u.username} (${u.email})`;\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VideoRatings.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VideoRatings.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./VideoRatings.vue?vue&type=template&id=da0e81ac&scoped=true&\"\nimport script from \"./VideoRatings.vue?vue&type=script&lang=ts&\"\nexport * from \"./VideoRatings.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./VideoRatings.vue?vue&type=style&index=0&id=da0e81ac&prod&lang=scss&scoped=true&\"\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 \"da0e81ac\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}