{"version":3,"sources":["webpack:///./src/views/seminars/components/Rephrase.vue?323f","webpack:///./src/views/seminars/components/Rephrase.vue","webpack:///./src/views/seminars/components/Rephrase.vue?63c6","webpack:///./src/views/seminars/components/Rephrase.vue?c3f6","webpack:///./src/views/goals/components/ConditionDisplay.vue?c96a","webpack:///./src/views/goals/components/ConditionDisplay.vue","webpack:///./src/views/goals/components/ConditionDisplay.vue?c258","webpack:///./src/views/goals/components/ConditionDisplay.vue?9fce","webpack:///./src/views/seminars/components/GoalElement.vue?0e0b","webpack:///./src/views/seminars/components/GoalElement.vue","webpack:///./src/views/seminars/components/GoalElement.vue?f5fc","webpack:///./src/views/seminars/components/GoalElement.vue?df52","webpack:///./src/views/seminars/components/Content.vue?0882","webpack:///./src/views/seminars/components/Content.vue","webpack:///./src/views/seminars/components/Content.vue?5725","webpack:///./src/views/seminars/components/Content.vue?bfea","webpack:///./src/views/seminars/components/RecordVideo.vue?1587","webpack:///./src/views/seminars/components/RecordVideo.vue","webpack:///./src/views/seminars/components/RecordVideo.vue?fbba","webpack:///./src/views/seminars/components/RecordVideo.vue?ebd8","webpack:///./src/views/seminars/components/WatchVideo.vue?5a34","webpack:///./src/views/seminars/components/WatchVideo.vue","webpack:///./src/views/seminars/components/WatchVideo.vue?c375","webpack:///./src/views/seminars/components/WatchVideo.vue?4eb2","webpack:///./src/views/seminars/components/WatchFeedback.vue?bcae","webpack:///./src/views/seminars/components/WatchFeedback.vue","webpack:///./src/views/seminars/components/WatchFeedback.vue?f5f1","webpack:///./src/views/seminars/components/WatchFeedback.vue?d412","webpack:///./src/views/seminars/components/RephraseSubmission.vue?1c78","webpack:///./src/views/seminars/components/RephraseSubmission.vue","webpack:///./src/views/seminars/components/RephraseSubmission.vue?250d","webpack:///./src/views/seminars/components/RephraseSubmission.vue?ae3a","webpack:///./src/views/seminars/components/GapTextSubmission.vue?ee1e","webpack:///./src/views/seminars/components/GapTextSubmission.vue","webpack:///./src/views/seminars/components/GapTextSubmission.vue?f664","webpack:///./src/views/seminars/components/GapTextSubmission.vue?9b03","webpack:///./node_modules/core-js/modules/es.string.replace-all.js","webpack:///./src/views/seminars/components/GiveFeedback.vue?dfa0","webpack:///./src/views/seminars/components/GiveFeedback.vue","webpack:///./src/views/seminars/components/GiveFeedback.vue?10ae","webpack:///./src/views/seminars/components/GiveFeedback.vue?337c","webpack:///./src/views/seminars/components/Content.vue?f41a","webpack:///./src/views/seminars/components/GapText.vue?7b4c","webpack:///./src/views/seminars/components/GapText.vue","webpack:///./src/views/seminars/components/GapText.vue?8772","webpack:///./src/views/seminars/components/GapText.vue?1a47","webpack:///./src/views/seminars/components/VRTraining.vue?f991","webpack:///./src/views/seminars/components/VRTraining.vue","webpack:///./src/views/seminars/components/VRTraining.vue?7c5e","webpack:///./src/views/seminars/components/VRTraining.vue?0a9e"],"names":["render","_vm","this","_h","$createElement","_c","_self","VDivider","staticClass","submissions","length","_l","submission","i","key","attrs","element","sentence","class","first","last","sentences","_v","_s","_e","VTextField","model","value","inputs","callback","$$v","$set","expression","_f","skipped","createdAt","submit","staticRenderFns","RephraseElement","submitting","seminar","filter","x","elementId","id","find","Error","some","displaySnackbar","$t","toString","data","answers","seminarId","api","post","addSubmission","description","type","Array","fill","Vue","__decorate","Prop","default","Action","Component","components","RephraseSubmission","ElementControls","component","VList","staticStyle","ConditionDisplay","condition","ConditionType","DueDate","val","d","DateTime","fromISO","now","fromMillis","Date","rel","setLocale","$i18n","locale","toRelative","includes","split","msgstr","SessionScore","n","FillerWords","SpeechClarity","OverallScore","Repetition","SpeechSpeed","n1","n2","Sentiment","Pitch","Volume","Pauses","Condition","target","progress","cond","isAssignedToUser","VBtn","assigning","on","assignToGoal","VSpacer","refreshing","refresh","VIcon","GoalElement","console","debug","assignToGoalAction","goalId","setAssignedToGoalAction","makeCall","refreshGoalElement","window","addEventListener","removeEventListener","Getter","SubmissionFooter","VSheet","percent","VProgressLinear","owner","email","myEmail","openEdit","skipping","skipElement","block","title","body","domProps","isLast","SeminarContent","complete","elements","elementStatus","Math","round","isNaN","calcPercent","route","$router","push","blocks","blocksWithEls","lastBlock","lastElement","skip","next","Watch","immediate","WatchVideo","RecordVideo","GiveFeedback","WatchFeedback","GapText","Rephrase","Categorize","VRTraining","canShare","isTimed","expectedLen","maxLen","upload","maxNumSubs","numReq","sharedSubs","maxNumShared","numReqShared","RecordVideoElement","isShared","requiredSubmissions","requiredNumShared","maxSubmissions","maxShared","rateableSubmissions","blob","askForFeedback","FormData","file","File","append","headers","log","VideoRecorder","VideoPlayer","VideoSubmission","videoURI","WatchVideoElement","videos","VCol","video","rateFeedback","WatchFeedbackElement","loading","one","users","username","get","rateFeedbackVideo","getVideos","_","solutions","formattedText","GapTextSubmission","base","text","replaceAll","forEach","replace","$","requireObjectCoercible","isRegExp","getRegExpFlags","wellKnownSymbol","IS_PURE","REPLACE","RegExpPrototype","RegExp","prototype","proto","searchValue","replaceValue","IS_REG_EXP","flags","replacer","string","searchString","template","result","position","index","O","String","call","indexOf","TypeError","undefined","join","uri","uploading","GiveFeedbackElement","submitted","end","userId","subId","getVideo","line","part","j","GapTextElement","map","parts","gapCount","reduce","cum","cur","y","trim","flat","requiredScore","sub","VRow","score","getting","getSubs","VRTrainingElement","getSubmissions","error"],"mappings":"uLAGIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAGE,EAAA,KAAS,CAACC,YAAY,SAAUP,EAAIQ,YAAYC,OAAS,EAAGL,EAAG,MAAMJ,EAAIU,GAAIV,EAAe,aAAE,SAASW,EAAWC,GAAG,OAAOR,EAAG,qBAAqB,CAACS,IAAID,EAAEL,YAAY,OAAOO,MAAM,CAAC,QAAUd,EAAIe,QAAQ,WAAaJ,QAAgB,GAAGP,EAAG,MAAMJ,EAAIU,GAAIV,EAAIe,QAAiB,WAAE,SAASC,EAASJ,GAAG,OAAOR,EAAG,MAAM,CAACS,IAA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WU,cACjC,MAAOoO,GACPlK,QAAQ6E,IAAIqF,GAEdvR,KAAKmR,SAAU,EAAM,gDACtB,qDAhBA,MAgBA,EA7BmC,CAASxN,cACTC,gBAAnCC,eAAK,CAAEC,QAAS,eAAkB,oEACCF,gBAAnCC,eAAK,CAAEC,QAAS,eAAkB,oEAEnCF,gBADCG,eAAO,2BAA0B,6EAEPH,gBAA1BG,eAAO,mBAAkB,8EALPsN,EAAiB,gBADrCrN,eAAU,CAAEC,WAAY,CAAE+D,kCACNqJ,WC1CoZ,I,YCOrajN,EAAY,eACd,EACAtE,EACAqC,GACA,EACA,KACA,KACA,MAIa,aAAAiC,E","file":"assets/js/chunk-00a60ad6.223256ae.js","sourcesContent":["import { VDivider } from 'vuetify/lib/components/VDivider';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\n\nvar render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c(VDivider,{staticClass:\"mb-4\"}),(_vm.submissions.length > 0)?_c('div',_vm._l((_vm.submissions),function(submission,i){return _c('RephraseSubmission',{key:i,staticClass:\"mt-4\",attrs:{\"element\":_vm.element,\"submission\":submission}})}),1):_c('div',_vm._l((_vm.element.sentences),function(sentence,i){return _c('div',{key:i,staticClass:\"rephrase-row\"},[_c('div',{staticClass:\"left\",class:{\n first: i === 0,\n last: i === _vm.element.sentences.length - 1,\n }},[_c('div',[_vm._v(_vm._s(sentence))]),(i !== _vm.element.sentences.length - 1)?_c(VDivider,{staticClass:\"mt-2 mb-n2\"}):_vm._e()],1),_c('div',{staticClass:\"middle\",class:{\n first: i === 0,\n last: i === _vm.element.sentences.length - 1,\n }},[_c(VTextField,{staticClass:\"mx-2 pa-0 other\",attrs:{\"outlined\":\"\",\"hide-details\":\"\",\"placeholder\":\"Your answer\"},model:{value:(_vm.inputs[i]),callback:function ($$v) {_vm.$set(_vm.inputs, i, $$v)},expression:\"inputs[i]\"}}),(i !== _vm.element.sentences.length - 1)?_c(VDivider,{staticClass:\"mt-2 mb-n2\"}):_vm._e()],1),_c('div',{staticClass:\"flex-1 pa-2\"})])}),0),(_vm.skipped)?_c('div',[_c('h4',{staticClass:\"mt-4\"},[_vm._v(\" This task was skipped on \"+_vm._s(_vm._f(\"formatwithtime\")(_vm.skipped.createdAt))+\". \")])]):_vm._e(),_c('ElementControls',{attrs:{\"submit\":_vm.submit}})],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\r\nimport Vue from \"vue\";\r\nimport { Action } from \"vuex-class\";\r\nimport { Component, Prop } from \"vue-property-decorator\";\r\n\r\nimport api from \"@/core/utils/api\";\r\nimport type { Seminar, SeminarElement, Submission } from \"@/core/models\";\r\nimport RephraseSubmission from \"./RephraseSubmission.vue\";\r\nimport ElementControls from \"./ElementControls.vue\";\r\n\r\n@Component({ components: { RephraseSubmission, ElementControls } })\r\nexport default class RephraseElement extends Vue {\r\n @Prop({ default: () => undefined }) seminar?: Seminar;\r\n @Prop({ default: () => ({} as SeminarElement) }) element!: SeminarElement;\r\n @Action(\"seminars/addSubmission\") addSubmission!: (s: Submission) => void;\r\n @Action(\"displaySnackbar\") displaySnackbar!: (m: string) => void;\r\n\r\n get submissions() {\r\n return (\r\n this.seminar?.submissions?.filter(\r\n x => x.elementId === this.element.id && !x.skipped,\r\n ) || []\r\n );\r\n }\r\n\r\n get skipped() {\r\n return this.seminar?.submissions?.find(\r\n x => x.skipped && x.elementId === this.element.id,\r\n );\r\n }\r\n\r\n submitting = false;\r\n inputs: string[] = [];\r\n async submit() {\r\n if (this.submitting) throw new Error(\"Submit loading...\");\r\n\r\n if (this.inputs.some(x => !x.length)) {\r\n this.displaySnackbar(this.$t(\"seminars.rephrase.error\").toString());\r\n throw new Error(\"Not all inputs have been filled out\");\r\n }\r\n\r\n this.submitting = true;\r\n try {\r\n const data = {\r\n elementId: this.element.id,\r\n answers: this.inputs,\r\n seminarId: this.element.seminarId,\r\n };\r\n const submission = (await api.post(\r\n \"/api/Submissions/Rephrase\",\r\n data,\r\n )) as Submission;\r\n this.addSubmission(submission);\r\n } catch (error) {\r\n this.displaySnackbar(error.description);\r\n }\r\n this.submitting = false;\r\n }\r\n\r\n // todo delete element -> refresh\r\n // todo go to seminar and load it\r\n // todo solve issue where site always loads at home page\r\n\r\n created() {\r\n if (this.element.type !== \"rephrase\") return;\r\n this.inputs = new Array(this.element.sentences.length).fill(\"\");\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!./Rephrase.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!./Rephrase.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Rephrase.vue?vue&type=template&id=d3cf0bac&\"\nimport script from \"./Rephrase.vue?vue&type=script&lang=ts&\"\nexport * from \"./Rephrase.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","import { VListItemSubtitle } from 'vuetify/lib/components/VList';\n\nvar render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(VListItemSubtitle,[(_vm.isDueDate)?_c('span',{staticStyle:{\"font-weight\":\"600\"}},[_vm._v(_vm._s(_vm.value))]):_c('span',[_vm._v(_vm._s(_vm.value))])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\r\nimport Vue from \"vue\";\r\nimport { DateTime } from \"luxon\";\r\nimport { Component, Prop } from \"vue-property-decorator\";\r\n\r\nimport { Condition, ConditionType } from \"@/core/models\";\r\n\r\n@Component\r\nexport default class ConditionDisplay extends Vue {\r\n @Prop({ default: () => {} }) condition!: Condition;\r\n\r\n get isDueDate() {\r\n return this.condition.type === ConditionType.DueDate;\r\n }\r\n get value() {\r\n let val = this.condition.value;\r\n const type = this.condition.type;\r\n if (type === ConditionType.DueDate) {\r\n const d = DateTime.fromISO(val);\r\n const now = DateTime.fromMillis(Date.now());\r\n if (d < now) return this.$t(\"goals.condmsg.overdue\").toString();\r\n const rel = d.setLocale(this.$i18n.locale).toRelative();\r\n return `${this.$t(\"goals.condmsg.duein\")} ${rel}`;\r\n }\r\n\r\n if (typeof val === \"string\" && val.includes(\";\")) val = val.split(\";\");\r\n\r\n const msgstr = `goals.condmsg.${type}`;\r\n switch (type) {\r\n case ConditionType.SessionScore:\r\n return this.$t(msgstr, { n: val });\r\n case ConditionType.FillerWords:\r\n return this.$t(msgstr, { n: val });\r\n case ConditionType.SpeechClarity:\r\n return this.$t(msgstr, { n: val });\r\n case ConditionType.OverallScore:\r\n return this.$t(msgstr, { n: val });\r\n case ConditionType.Repetition:\r\n return this.$t(msgstr, { n: val });\r\n case ConditionType.SpeechSpeed:\r\n return this.$t(msgstr, { n1: val[0], n2: val[1] });\r\n case ConditionType.Sentiment:\r\n return this.$t(msgstr, { n1: val[0], n2: val[1] });\r\n case ConditionType.Pitch:\r\n return this.$t(msgstr, { n1: val[0], n2: val[1] });\r\n case ConditionType.Volume:\r\n return this.$t(msgstr, { n1: val[0], n2: val[1] });\r\n case ConditionType.Pauses:\r\n return this.$t(msgstr, { n1: val[0], n2: val[1] });\r\n\r\n default:\r\n return \"\";\r\n }\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!./ConditionDisplay.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!./ConditionDisplay.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ConditionDisplay.vue?vue&type=template&id=15e84086&\"\nimport script from \"./ConditionDisplay.vue?vue&type=script&lang=ts&\"\nexport * from \"./ConditionDisplay.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","import { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\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',[_c('div',[_c('b',[_vm._v(_vm._s(_vm.$t(\"seminars.goal.target\"))+\": \")]),_c('u',[_vm._v(_vm._s(_vm.element.target))])]),(_vm.element.isAssignedToUser)?_c('div',{staticClass:\"mb-4\"},[_c('b',[_vm._v(_vm._s(_vm.$t(\"seminars.goal.progress\"))+\": \")]),_c('u',[_vm._v(_vm._s(_vm.element.progress))])]):_vm._e(),_vm._l((_vm.element.conditions),function(cond,i){return _c('div',{key:i,staticClass:\"mt-2\"},[_c('ConditionDisplay',{attrs:{\"condition\":cond}})],1)}),(!_vm.element.isAssignedToUser)?_c('div',{staticClass:\"mt-4\"},[_c('h3',[_vm._v(_vm._s(_vm.$t(\"seminars.goal.title\")))]),_c('p',[_vm._v(_vm._s(_vm.$t(\"seminars.goal.description\")))]),_c(VBtn,{attrs:{\"elevation\":\"0\",\"color\":\"primary\",\"loading\":_vm.assigning,\"disabled\":_vm.assigning},on:{\"click\":_vm.assignToGoal}},[_c('span',[_vm._v(_vm._s(_vm.$t(\"seminars.goal.assign\")))])])],1):_vm._e(),_c('div',{staticClass:\"d-flex\"},[_c(VSpacer),_c(VBtn,{attrs:{\"elevation\":\"0\",\"loading\":_vm.refreshing,\"disabled\":_vm.refreshing},on:{\"click\":function () { return _vm.refresh(true); }}},[_c('span',[_vm._v(_vm._s(_vm.$t(\"seminars.vr_training.refresh\")))]),_c(VIcon,{attrs:{\"right\":\"\"}},[_vm._v(\"mdi-refresh\")])],1)],1)],2)}\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\r\nimport Vue from \"vue\";\r\nimport { Action, Getter } from \"vuex-class\";\r\nimport { Component, Prop } from \"vue-property-decorator\";\r\n\r\nimport type { GetSubsRequest, Seminar, SeminarElement } from \"@/core/models\";\r\nimport { Goal } from \"@/core/models\";\r\n\r\nimport ConditionDisplay from \"@/views/goals/components/ConditionDisplay.vue\";\r\nimport SubmissionFooter from \"./SubmissionFooter.vue\";\r\n\r\n@Component({ components: { SubmissionFooter, ConditionDisplay } })\r\nexport default class GoalElement extends Vue {\r\n @Prop({ default: () => undefined }) seminar?: Seminar;\r\n @Prop({ default: () => undefined }) element?: SeminarElement;\r\n\r\n @Getter(\"goals/getAssignedGoals\") goals!: Goal[];\r\n @Action(\"goals/assignToGoal\")\r\n assignToGoalAction!: (id: number) => Promise;\r\n\r\n @Action(\"seminars/getSubmissions\")\r\n getSubmissions!: (r: GetSubsRequest) => Promise;\r\n @Action(\"seminars/refreshGoalElement\")\r\n refreshGoalElement!: (d: {\r\n element: SeminarElement;\r\n makeCall: boolean;\r\n }) => Promise;\r\n @Action(\"seminars/setAssignedToGoal\")\r\n setAssignedToGoalAction!: (e: SeminarElement) => Promise;\r\n\r\n @Action(\"displaySnackbar\") displaySnackbar!: (m: string) => void;\r\n\r\n // tood show skipped submission\r\n\r\n assigning = false;\r\n async assignToGoal() {\r\n if (this.element?.type !== \"goal\") return;\r\n\r\n console.debug(\"[goals] element\", this.element);\r\n this.assigning = true;\r\n await this.assignToGoalAction(this.element.goalId);\r\n await this.setAssignedToGoalAction(this.element);\r\n this.assigning = false;\r\n }\r\n\r\n refreshing = false;\r\n async refresh(makeCall = false) {\r\n if (!this.element) return;\r\n\r\n this.refreshing = await this.refreshGoalElement({\r\n element: this.element,\r\n makeCall,\r\n });\r\n\r\n if (makeCall)\r\n window.addEventListener(\"got-goals\", () => this.refresh(false));\r\n }\r\n\r\n beforeDestroy() {\r\n window.removeEventListener(\"got-goals\", () => this.refresh(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!./GoalElement.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!./GoalElement.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./GoalElement.vue?vue&type=template&id=9890ff3a&\"\nimport script from \"./GoalElement.vue?vue&type=script&lang=ts&\"\nexport * from \"./GoalElement.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","import { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VProgressLinear } from 'vuetify/lib/components/VProgressLinear';\nimport { VSheet } from 'vuetify/lib/components/VSheet';\n\nvar render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"wrapper\"},[(_vm.seminar)?_c(VSheet,{staticClass:\"py-4 px-8 mb-4\",attrs:{\"rounded\":\"\"}},[_c('div',{staticClass:\"py-4 d-flex\"},[_c('div',{staticClass:\"flex-1\"},[_c('div',{staticClass:\"mb-2 accentText--text font-weight-bold\"},[_vm._v(\" \"+_vm._s(_vm.$t(\"seminars.percentComplete\", { percent: _vm.percent }))+\" \")]),_c(VProgressLinear,{staticStyle:{\"width\":\"200px\"},attrs:{\"value\":_vm.percent,\"height\":\"8px\",\"rounded\":\"\"}})],1),_c('div',{staticClass:\"d-flex\"},[(_vm.seminar.owner.email === _vm.myEmail)?_c(VBtn,{attrs:{\"icon\":\"\",\"small\":\"\",\"color\":\"accentText\"},on:{\"click\":_vm.openEdit}},[_c(VIcon,[_vm._v(\"mdi-pencil\")])],1):_vm._e(),_c('div',{staticClass:\"mx-2\"}),_c(VBtn,{attrs:{\"small\":\"\",\"outlined\":\"\",\"color\":\"accentText\",\"loading\":_vm.skipping,\"disabled\":_vm.skipping},on:{\"click\":_vm.skipElement}},[_c('span',[_vm._v(_vm._s(_vm.$t(\"seminars.skipTask\")))])])],1)]),_c('div',{staticClass:\"overline mt-4\"},[_vm._v(_vm._s(_vm.block.title))]),_c('h1',{staticClass:\"mb-4 mt-n2\"},[_vm._v(_vm._s(_vm.element.title))]),(_vm.element.body !== null)?_c('div',{domProps:{\"innerHTML\":_vm._s(_vm.element.body)}}):_vm._e(),_c('div',{staticClass:\"content\"},[(_vm.element.type === 'watch_video')?_c('WatchVideo',{attrs:{\"element\":_vm.element}}):(_vm.element.type === 'video_presentation')?_c('RecordVideo',{attrs:{\"element\":_vm.element,\"seminar\":_vm.seminar}}):(_vm.element.type === 'give_feedback')?_c('GiveFeedback',{attrs:{\"element\":_vm.element,\"seminar\":_vm.seminar}}):(_vm.element.type === 'watch_feedback')?_c('WatchFeedback',{attrs:{\"element\":_vm.element}}):(_vm.element.type === 'gap_text')?_c('GapText',{attrs:{\"element\":_vm.element,\"seminar\":_vm.seminar}}):(_vm.element.type === 'rephrase')?_c('Rephrase',{attrs:{\"element\":_vm.element,\"seminar\":_vm.seminar}}):(_vm.element.type === 'categorize')?_c('Categorize',{attrs:{\"element\":_vm.element,\"seminar\":_vm.seminar}}):(_vm.element.type === 'vr_training')?_c('VRTraining',{attrs:{\"element\":_vm.element,\"seminar\":_vm.seminar}}):(_vm.element.type === 'goal')?_c('GoalElement',{attrs:{\"element\":_vm.element,\"seminar\":_vm.seminar}}):_vm._e(),(_vm.shouldShowControls)?_c('ElementControls',{attrs:{\"is-last\":_vm.isLast,\"submit\":function () {}}}):_vm._e()],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\r\nimport Vue from \"vue\";\r\nimport { Action, Getter } from \"vuex-class\";\r\nimport { Component, Watch } from \"vue-property-decorator\";\r\nimport type { Seminar, SeminarBlock, SeminarElement } from \"@/core/models\";\r\n\r\nimport WatchVideo from \"./WatchVideo.vue\";\r\nimport RecordVideo from \"./RecordVideo.vue\";\r\nimport GiveFeedback from \"./GiveFeedback.vue\";\r\nimport WatchFeedback from \"./WatchFeedback.vue\";\r\nimport GapText from \"./GapText.vue\";\r\nimport Rephrase from \"./Rephrase.vue\";\r\nimport Categorize from \"./Categorize.vue\";\r\nimport VRTraining from \"./VRTraining.vue\";\r\nimport GoalElement from \"./GoalElement.vue\";\r\nimport ElementControls from \"./ElementControls.vue\";\r\n\r\nimport { elementStatus } from \"@/core/utils/seminars\";\r\n\r\n@Component({\r\n components: {\r\n WatchVideo,\r\n RecordVideo,\r\n GiveFeedback,\r\n WatchFeedback,\r\n GapText,\r\n Rephrase,\r\n Categorize,\r\n VRTraining,\r\n GoalElement,\r\n ElementControls,\r\n },\r\n})\r\nexport default class SeminarContent extends Vue {\r\n @Getter(\"profile/getUserEmail\") myEmail!: string;\r\n @Getter(\"profile/id\") userId!: string;\r\n\r\n @Getter(\"seminars/block\") block?: SeminarBlock;\r\n @Getter(\"seminars/selected\") seminar?: Seminar;\r\n @Getter(\"seminars/blocks\") blocks!: SeminarBlock[];\r\n @Getter(\"seminars/element\") element?: SeminarElement;\r\n\r\n @Action(\"seminars/next\") next!: () => void;\r\n @Action(\"seminars/skip\") skip!: (el: SeminarElement) => Promise;\r\n\r\n percent = 0;\r\n calcPercent() {\r\n if (!this.block) return;\r\n const complete = this.block.elements.filter(\r\n x => elementStatus(x, this.seminar) === \"completed\",\r\n ).length;\r\n const val = Math.round((complete / this.block.elements.length) * 100);\r\n this.percent = isNaN(val) ? 0 : val;\r\n }\r\n\r\n @Watch(\"seminar\", { immediate: true })\r\n seminarChanged() {\r\n this.calcPercent();\r\n }\r\n @Watch(\"block\", { immediate: true })\r\n blockChanged() {\r\n this.calcPercent();\r\n }\r\n\r\n openEdit() {\r\n if (!this.seminar || !this.block || !this.element) return;\r\n const route = `/seminars/edit/${this.seminar.id}?block=${this.block.id}&element=${this.element.id}`;\r\n this.$router.push(route);\r\n }\r\n\r\n get isLast() {\r\n if (!this.blocks?.length || !this.block || !this.element) return false;\r\n const blocksWithEls = this.blocks.filter(x => x.elements.length > 0);\r\n const lastBlock = blocksWithEls[blocksWithEls.length - 1];\r\n const lastElement = lastBlock.elements[lastBlock.elements.length - 1];\r\n return (\r\n lastElement.id === this.element.id && this.element.type === \"read_text\"\r\n );\r\n }\r\n get shouldShowControls() {\r\n return (\r\n this.element?.type === \"read_text\" ||\r\n this.element?.type === \"watch_video\" ||\r\n this.element?.type === \"vr_training\"\r\n );\r\n }\r\n\r\n skipping = false;\r\n async skipElement() {\r\n if (!this.element) return;\r\n this.skipping = true;\r\n try {\r\n await this.skip(this.element);\r\n this.next();\r\n } catch (error) {\r\n console.debug(error);\r\n }\r\n this.skipping = 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!./Content.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!./Content.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Content.vue?vue&type=template&id=0a7c255c&scoped=true&\"\nimport script from \"./Content.vue?vue&type=script&lang=ts&\"\nexport * from \"./Content.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./Content.vue?vue&type=style&index=0&id=0a7c255c&prod&scoped=true&lang=scss&\"\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 \"0a7c255c\",\n null\n \n)\n\nexport default component.exports","import { VDivider } from 'vuetify/lib/components/VDivider';\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',[_c(VDivider,{staticClass:\"my-4\"}),(_vm.submissions.length > 0)?_c('div',_vm._l((_vm.submissions),function(submission,i){return _c('div',{key:i,staticClass:\"mt-4\"},[_c('VideoSubmission',{attrs:{\"id\":(\"presentation_\" + (submission.userId) + \"_\" + i),\"seminar\":_vm.seminar,\"submission\":submission,\"horizontal\":true}})],1)}),0):_vm._e(),(_vm.canRecord)?_c('VideoRecorder',{attrs:{\"loading\":_vm.submitting,\"can-share\":_vm.canShare,\"is-timed\":_vm.element.isTimed,\"expected-len\":_vm.element.expectedLen,\"max-len\":_vm.element.maxLen,\"can-ask-for-feedback\":false},on:{\"upload\":_vm.upload}}):_vm._e(),_c('div',{staticClass:\"d-flex mt-4\"},[(_vm.skipped)?_c('div',[_c('h4',{staticClass:\"mt-4\"},[_vm._v(\" This task was skipped on \"+_vm._s(_vm._f(\"formatwithtime\")(_vm.skipped.createdAt))+\". \")])]):_vm._e(),_c(VSpacer),_c('div',[_c('div',{staticClass:\"px-4 py-2 rounded-lg lightgray2 mb-4\"},[_c('div',[_vm._v(\" \"+_vm._s(_vm.submissions.length)+\"/\"+_vm._s(_vm.maxNumSubs)+\" \"+_vm._s(_vm.$t(\"seminars.video_presentation.submissions\"))+\" \")]),(_vm.submissions.length < _vm.numReq)?_c('div',[_vm._v(\" \"+_vm._s(_vm.numReq)+\" \"+_vm._s(_vm.$t(\"seminars.video_presentation.reqSubmissions\"))+\" \")]):_vm._e()]),(_vm.canShare)?_c('div',{staticClass:\"px-4 py-2 rounded-lg lightgray2\"},[_c('span',[_vm._v(\" \"+_vm._s(_vm.sharedSubs.length)+\"/\"+_vm._s(_vm.maxNumShared)+\" \"+_vm._s(_vm.$t(\"seminars.video_presentation.sharedSubmissions\"))+\" \"),(_vm.sharedSubs.length < _vm.numReqShared)?_c('div',[_vm._v(\" \"+_vm._s(_vm.numReqShared)+\" \"+_vm._s(_vm.$t(\"seminars.video_presentation.reqSharedSubmissions\"))+\" \")]):_vm._e()])]):_vm._e()])],1),_c('ElementControls',{attrs:{\"submit\":function () {}}})],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\r\nimport Vue from \"vue\";\r\nimport { Action } from \"vuex-class\";\r\nimport { Component, Prop } from \"vue-property-decorator\";\r\n\r\nimport api from \"@/core/utils/api\";\r\nimport type { Seminar, SeminarElement, Submission } from \"@/core/models\";\r\n\r\nimport VideoRecorder from \"@/components/common/VideoRecorder.vue\";\r\nimport VideoPlayer from \"@/components/common/VideoPlayer.vue\";\r\nimport SubmissionFooter from \"./SubmissionFooter.vue\";\r\nimport ElementControls from \"./ElementControls.vue\";\r\nimport VideoSubmission from \"./VideoSubmission.vue\";\r\n\r\n@Component({\r\n components: {\r\n VideoRecorder,\r\n SubmissionFooter,\r\n VideoPlayer,\r\n ElementControls,\r\n VideoSubmission,\r\n },\r\n})\r\nexport default class RecordVideoElement extends Vue {\r\n @Prop({ default: () => ({} as Seminar) }) seminar!: Seminar;\r\n @Prop({ default: () => ({} as SeminarElement) }) element!: SeminarElement;\r\n @Action(\"seminars/addSubmission\") addSubmission!: (s: Submission) => void;\r\n\r\n get submissions() {\r\n return (\r\n this.seminar.submissions?.filter(\r\n x => x.elementId === this.element.id && !x.skipped,\r\n ) || []\r\n );\r\n }\r\n\r\n get sharedSubs() {\r\n return (\r\n this.seminar.submissions?.filter(\r\n x => x.elementId === this.element.id && !x.skipped && x.isShared,\r\n ) || []\r\n );\r\n }\r\n\r\n get skipped() {\r\n return this.seminar?.submissions?.find(\r\n x => x.skipped && x.elementId === this.element.id,\r\n );\r\n }\r\n\r\n get numReq() {\r\n if (this.element.type !== \"video_presentation\") return 0;\r\n return this.element.requiredSubmissions || 1;\r\n }\r\n\r\n get numReqShared() {\r\n if (this.element.type !== \"video_presentation\") return 0;\r\n return this.element.requiredNumShared || 0;\r\n }\r\n\r\n get maxNumSubs() {\r\n if (this.element.type !== \"video_presentation\") return 1;\r\n return this.element.maxSubmissions || 10;\r\n }\r\n\r\n get maxNumShared() {\r\n if (this.element.type !== \"video_presentation\") return 1;\r\n return this.element.maxNumShared || 2;\r\n }\r\n\r\n get canRecord() {\r\n if (this.element.type !== \"video_presentation\") return false;\r\n return this.submissions.length < this.maxNumSubs;\r\n }\r\n\r\n get canShare() {\r\n if (this.element.type !== \"video_presentation\") return false;\r\n const maxShared = this.element.maxNumShared;\r\n return (\r\n this.element.rateableSubmissions &&\r\n maxShared &&\r\n this.sharedSubs.length < maxShared\r\n );\r\n }\r\n\r\n submitting = false;\r\n async upload({\r\n blob,\r\n isShared,\r\n askForFeedback,\r\n }: {\r\n blob: Blob;\r\n isShared: boolean;\r\n askForFeedback: boolean;\r\n }) {\r\n this.submitting = true;\r\n try {\r\n const data = new FormData();\r\n const file = new File([blob], \"record_video.mp4\", { type: \"video/mp4\" });\r\n data.append(\"elementId\", this.element.id.toString());\r\n data.append(\"isShared\", isShared.toString());\r\n data.append(\"seminarId\", this.seminar.id.toString());\r\n data.append(\"askForFeedback\", askForFeedback.toString());\r\n data.append(\"videoFile\", file);\r\n const submission = (await api.post(\r\n \"/api/Submissions/VideoPresentation\",\r\n data,\r\n { headers: { \"Content-Type\": \"multipart/form-data\" } },\r\n )) as Submission;\r\n submission.isShared = isShared;\r\n this.addSubmission(submission);\r\n } catch (error) {\r\n console.log(error);\r\n }\r\n this.submitting = 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!./RecordVideo.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!./RecordVideo.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./RecordVideo.vue?vue&type=template&id=211b9bed&\"\nimport script from \"./RecordVideo.vue?vue&type=script&lang=ts&\"\nexport * from \"./RecordVideo.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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.element.videoURI)?_c('div',{staticStyle:{\"max-width\":\"1000px\",\"margin\":\"0 auto\"}},[_c('VideoPlayer',{attrs:{\"id\":(\"watch_video_\" + (_vm.element.id)),\"url\":_vm.element.videoURI}})],1):_c('div',[_vm._v(\"Video not found\")])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\r\nimport Vue from \"vue\";\r\nimport { Component, Prop } from \"vue-property-decorator\";\r\n\r\nimport type { SeminarElement } from \"@/core/models\";\r\nimport VideoPlayer from \"@/components/common/VideoPlayer.vue\";\r\n\r\n@Component({ components: { VideoPlayer } })\r\nexport default class WatchVideoElement extends Vue {\r\n @Prop({ default: () => ({} as SeminarElement) }) element!: SeminarElement;\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!./WatchVideo.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!./WatchVideo.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./WatchVideo.vue?vue&type=template&id=60152498&\"\nimport script from \"./WatchVideo.vue?vue&type=script&lang=ts&\"\nexport * from \"./WatchVideo.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","import { VCol } 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',[_c('h3',[_vm._v(_vm._s(_vm.$t(\"seminars.watch_feedback.title\")))]),_c('p',[_vm._v(_vm._s(_vm.$t(\"seminars.watch_feedback.text\")))]),(_vm.videos.length > 0)?_c(VCol,{attrs:{\"cols\":\"12\",\"md\":\"8\"}},_vm._l((_vm.videos),function(video,i){return _c('div',{key:i,staticClass:\"mb-4\"},[_c('VideoSubmission',{attrs:{\"id\":(\"watch_feedback_\" + i),\"seminar\":_vm.seminar,\"submission\":video},on:{\"rate\":_vm.rateFeedback}})],1)}),0):_c('div',[_vm._v(_vm._s(_vm.$t(\"seminars.watch_feedback.no_feedback\")))]),(_vm.skipped)?_c('div',[_c('h4',{staticClass:\"mt-4\"},[_vm._v(\" This task was skipped on \"+_vm._s(_vm._f(\"formatwithtime\")(_vm.skipped.createdAt))+\". \")])]):_vm._e(),_c('ElementControls',{attrs:{\"submit\":_vm.submit}})],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\r\nimport Vue from \"vue\";\r\nimport { Action, Getter } from \"vuex-class\";\r\nimport { Component, Prop, Watch } from \"vue-property-decorator\";\r\n\r\nimport type {\r\n RateVideoAction,\r\n Seminar,\r\n SeminarElement,\r\n SimpleUser,\r\n Submission,\r\n} from \"@/core/models\";\r\nimport api from \"@/core/utils/api\";\r\nimport VideoSubmission from \"./VideoSubmission.vue\";\r\nimport ElementControls from \"./ElementControls.vue\";\r\n\r\n@Component({ components: { VideoSubmission, ElementControls } })\r\nexport default class WatchFeedbackElement extends Vue {\r\n @Prop({ default: () => ({} as SeminarElement) }) element!: SeminarElement;\r\n\r\n @Getter(\"profile/id\") userId!: string;\r\n\r\n @Getter(\"seminars/users\") users!: SimpleUser[];\r\n @Getter(\"seminars/selected\") seminar?: Seminar;\r\n\r\n @Action(\"seminars/next\") next!: () => void;\r\n @Action(\"seminars/addSubmission\") addSubmission!: (s: Submission) => void;\r\n @Action(\"seminars/rateFeedbackVideo\") rateFeedbackVideo!: (d: any) => void;\r\n\r\n user(id: string) {\r\n const one = this.users.find(x => x.id === id);\r\n if (!one) return \"Seminar owner\";\r\n return `${one.username} (${one.email})`;\r\n }\r\n\r\n get skipped() {\r\n return this.seminar?.submissions?.find(\r\n x => x.skipped && x.elementId === this.element.id,\r\n );\r\n }\r\n\r\n videos: Submission[] = [];\r\n loading = false;\r\n async getVideos() {\r\n if (!this.seminar) return;\r\n this.loading = true;\r\n try {\r\n this.videos = (await api.get(\r\n `/api/Elements/Feedback/${this.seminar.id}`,\r\n )) as Submission[];\r\n } catch (error) {\r\n console.log(error);\r\n }\r\n this.loading = false;\r\n }\r\n\r\n async submit() {\r\n if (!this.videos.length) throw new Error(\"no_video\");\r\n const submission = (await api.post(\"/api/Submissions/WatchFeedback\", {\r\n elementId: this.element.id,\r\n seminarId: this.element.seminarId,\r\n })) as Submission;\r\n this.addSubmission(submission);\r\n this.next();\r\n }\r\n\r\n rateFeedback(d: RateVideoAction) {\r\n if (!this.seminar) return;\r\n this.rateFeedbackVideo({ ...d, seminarId: this.seminar.id });\r\n }\r\n\r\n @Watch(\"seminar\", { immediate: true })\r\n seminarUpdated() {\r\n this.getVideos();\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!./WatchFeedback.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!./WatchFeedback.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./WatchFeedback.vue?vue&type=template&id=84a3b30c&\"\nimport script from \"./WatchFeedback.vue?vue&type=script&lang=ts&\"\nexport * from \"./WatchFeedback.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","import { VDivider } from 'vuetify/lib/components/VDivider';\n\nvar render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_vm._l((_vm.sentences),function(_,i){return _c('div',{key:((_vm.submission.createdAt) + \"_\" + i),staticClass:\"rephrase-row\"},[_c('div',{staticClass:\"left\",class:{ first: i === 0, last: i === _vm.sentences.length - 1 }},[_c('div',[_vm._v(_vm._s(_vm.sentences[i]))]),(i !== _vm.sentences.length - 1)?_c(VDivider,{staticClass:\"mt-2 mb-n2\"}):_vm._e()],1),_c('div',{staticClass:\"middle\",class:{ first: i === 0, last: i === _vm.sentences.length - 1 }},[_c('div',[_vm._v(_vm._s(_vm.answers[i]))]),(i !== _vm.sentences.length - 1)?_c(VDivider,{staticClass:\"mt-2 mb-n2\"}):_vm._e()],1),_c('div',{staticClass:\"right\",class:{ first: i === 0, last: i === _vm.sentences.length - 1 }},[_c('div',[_vm._v(_vm._s(_vm.solutions[i]))]),(i !== _vm.sentences.length - 1)?_c(VDivider,{staticClass:\"mt-2 mb-n2\"}):_vm._e()],1)])}),_c('SubmissionFooter',{attrs:{\"submission\":_vm.submission}})],2)}\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\r\nimport Vue from \"vue\";\r\nimport { Component, Prop } from \"vue-property-decorator\";\r\n\r\nimport type { SeminarElement, Submission } from \"@/core/models\";\r\nimport SubmissionFooter from \"./SubmissionFooter.vue\";\r\n\r\n@Component({ components: { SubmissionFooter } })\r\nexport default class RephraseSubmission extends Vue {\r\n @Prop({ default: () => undefined }) element?: SeminarElement;\r\n @Prop({ default: () => undefined }) submission?: Submission;\r\n\r\n sentences: string[] = [];\r\n solutions: string[] = [];\r\n answers: string[] = [];\r\n created() {\r\n if (\r\n this.element?.type !== \"rephrase\" ||\r\n this.submission?.type !== \"rephrase\"\r\n )\r\n return;\r\n this.sentences = this.element.sentences;\r\n this.solutions = this.element.answers;\r\n this.answers = (this.submission as any).answers;\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!./RephraseSubmission.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!./RephraseSubmission.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./RephraseSubmission.vue?vue&type=template&id=b420f562&\"\nimport script from \"./RephraseSubmission.vue?vue&type=script&lang=ts&\"\nexport * from \"./RephraseSubmission.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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{domProps:{\"innerHTML\":_vm._s(_vm.formattedText)}}),_c('SubmissionFooter',{attrs:{\"submission\":_vm.submission}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\r\nimport Vue from \"vue\";\r\nimport { Component, Prop } from \"vue-property-decorator\";\r\n\r\nimport type { SeminarElement, Submission } from \"@/core/models\";\r\nimport SubmissionFooter from \"./SubmissionFooter.vue\";\r\n\r\n@Component({ components: { SubmissionFooter } })\r\nexport default class GapTextSubmission extends Vue {\r\n @Prop({ default: () => undefined }) element?: SeminarElement;\r\n @Prop({ default: () => undefined }) submission?: Submission;\r\n\r\n get formattedText() {\r\n if (this.element?.type !== \"gap_text\") return \"<>\";\r\n const answers =\r\n this.submission?.type !== \"gap_text\"\r\n ? new Array(this.element.answers.length).fill(\"\")\r\n : this.submission.answers;\r\n\r\n let base = this.element.text.replaceAll(/[\\n\\r+]/g, \"
\");\r\n this.element.answers.forEach(\r\n (x, i) =>\r\n (base = base.replace(\"__\", `${x} (${answers[i]})`)),\r\n );\r\n return base;\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!./GapTextSubmission.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!./GapTextSubmission.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./GapTextSubmission.vue?vue&type=template&id=034dea52&\"\nimport script from \"./GapTextSubmission.vue?vue&type=script&lang=ts&\"\nexport * from \"./GapTextSubmission.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","'use strict';\nvar $ = require('../internals/export');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar isRegExp = require('../internals/is-regexp');\nvar getRegExpFlags = require('../internals/regexp-flags');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\n\nvar REPLACE = wellKnownSymbol('replace');\nvar RegExpPrototype = RegExp.prototype;\n\n// `String.prototype.replaceAll` method\n// https://github.com/tc39/proposal-string-replace-all\n$({ target: 'String', proto: true }, {\n replaceAll: function replaceAll(searchValue, replaceValue) {\n var O = requireObjectCoercible(this);\n var IS_REG_EXP, flags, replacer, string, searchString, template, result, position, index;\n if (searchValue != null) {\n IS_REG_EXP = isRegExp(searchValue);\n if (IS_REG_EXP) {\n flags = String(requireObjectCoercible('flags' in RegExpPrototype\n ? searchValue.flags\n : getRegExpFlags.call(searchValue)\n ));\n if (!~flags.indexOf('g')) throw TypeError('`.replaceAll` does not allow non-global regexes');\n }\n replacer = searchValue[REPLACE];\n if (replacer !== undefined) {\n return replacer.call(searchValue, O, replaceValue);\n } else if (IS_PURE && IS_REG_EXP) {\n return String(O).replace(searchValue, replaceValue);\n }\n }\n string = String(O);\n searchString = String(searchValue);\n if (searchString === '') return replaceAll.call(string, /(?:)/g, replaceValue);\n template = string.split(searchString);\n if (typeof replaceValue !== 'function') {\n return template.join(String(replaceValue));\n }\n result = template[0];\n position = result.length;\n for (index = 1; index < template.length; index++) {\n result += String(replaceValue(searchString, position, string));\n position += searchString.length + template[index].length;\n result += template[index];\n }\n return result;\n }\n});\n","import { VCol } 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.submissions.length > 0)?_c('div',[_c('h3',{staticClass:\"mb-4\"},[_vm._v(_vm._s(_vm.$t(\"seminars.give_feedback.yourSubmissions\")))]),_vm._l((_vm.submissions),function(submission,i){return _c('VideoSubmission',{key:i,attrs:{\"id\":(\"feedback_\" + (submission.userId) + \"_\" + (submission.feedbackFor)),\"seminar\":_vm.seminar,\"submission\":submission,\"horizontal\":true}})})],2):_c('div',[_c('h3',[_vm._v(_vm._s(_vm.$t(\"seminars.give_feedback.title\")))]),_c('p',[_vm._v(_vm._s(_vm.$t(\"seminars.give_feedback.text\")))]),(_vm.video)?_c('div',[_c(VCol,{attrs:{\"cols\":\"12\",\"md\":\"8\"}},[_c('VideoPlayer',{attrs:{\"id\":(\"give_feedback_to_\" + (_vm.video.userId)),\"url\":_vm.video.uri}})],1),_c('VideoRecorder',{attrs:{\"can-share\":false,\"default-shared\":_vm.canShare,\"loading\":_vm.uploading,\"is-timed\":_vm.element.isTimed,\"expected-len\":_vm.element.expectedLen,\"max-len\":_vm.element.maxLen},on:{\"upload\":_vm.upload}})],1):_c('div',[_c('h3',[_vm._v(_vm._s(_vm.$t(\"seminars.give_feedback.noVideo\")))]),_c('p',[_vm._v(\" \"+_vm._s(_vm.$t(\"seminars.give_feedback.noVideoDetail\"))+\" \")])])]),(_vm.skipped)?_c('div',[_c('h4',{staticClass:\"mt-4\"},[_vm._v(\" This task was skipped on \"+_vm._s(_vm._f(\"formatwithtime\")(_vm.skipped.createdAt))+\". \")])]):_vm._e(),_c('ElementControls',{attrs:{\"submit\":function () {}}})],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\r\nimport Vue from \"vue\";\r\nimport { Action, Getter } from \"vuex-class\";\r\nimport { Component, Prop, Watch } from \"vue-property-decorator\";\r\n\r\nimport api from \"@/core/utils/api\";\r\nimport VideoRecorder from \"@/components/common/VideoRecorder.vue\";\r\nimport VideoPlayer from \"@/components/common/VideoPlayer.vue\";\r\nimport type { Seminar, SeminarElement, Submission } from \"@/core/models\";\r\nimport ElementControls from \"./ElementControls.vue\";\r\nimport VideoSubmission from \"./VideoSubmission.vue\";\r\n\r\ntype Video = {\r\n subId: number;\r\n userId: string;\r\n uri: string;\r\n};\r\n\r\n@Component({\r\n components: {\r\n VideoRecorder,\r\n VideoPlayer,\r\n ElementControls,\r\n VideoSubmission,\r\n },\r\n})\r\nexport default class GiveFeedbackElement extends Vue {\r\n @Getter(\"seminars/selectedId\") id!: number;\r\n @Prop({ default: () => undefined }) seminar?: Seminar;\r\n @Prop({ default: () => ({} as SeminarElement) }) element!: SeminarElement;\r\n @Action(\"seminars/addSubmission\") addSubmission!: (s: Submission) => void;\r\n\r\n get submissions() {\r\n return (\r\n this.seminar?.submissions?.filter(\r\n x => x.elementId === this.element.id && !x.skipped,\r\n ) || []\r\n );\r\n }\r\n\r\n get skipped() {\r\n return this.seminar?.submissions?.find(\r\n x => x.skipped && x.elementId === this.element.id,\r\n );\r\n }\r\n\r\n get canShare() {\r\n if (this.element.type !== \"give_feedback\") return false;\r\n return this.element.rateableSubmissions || false;\r\n }\r\n\r\n loading = false;\r\n video: Video | null = null;\r\n async getVideo() {\r\n this.loading = true;\r\n try {\r\n const end = `/api/Elements/RandomVideoPresentation/${this.element.id}`;\r\n this.video = (await api.get(end)) || null;\r\n console.log(this.video);\r\n } catch (error) {\r\n console.log(error);\r\n }\r\n this.loading = false;\r\n }\r\n\r\n submitted = false;\r\n uploading = false;\r\n async upload({\r\n blob,\r\n askForFeedback,\r\n }: {\r\n blob: Blob;\r\n askForFeedback: boolean;\r\n }) {\r\n if (!this.video) throw new Error(\"no_video\");\r\n\r\n this.uploading = true;\r\n try {\r\n const data = new FormData();\r\n data.append(\"elementId\", this.element.id.toString());\r\n data.append(\"feedbackFor\", this.video.userId);\r\n data.append(\"feedbackForSubmission\", this.video.subId.toString());\r\n data.append(\"isShared\", this.canShare.toString());\r\n data.append(\"videoFile\", blob);\r\n data.append(\"seminarId\", this.element.seminarId.toString());\r\n data.append(\"askForFeedback\", askForFeedback.toString());\r\n const submission = (await api.post(\r\n \"/api/Submissions/GiveFeedback\",\r\n data,\r\n { headers: { \"Content-Type\": \"multipart/form-data\" } },\r\n )) as Submission;\r\n this.addSubmission(submission);\r\n } catch (error) {\r\n console.log(error);\r\n }\r\n this.uploading = false;\r\n }\r\n\r\n @Watch(\"id\", { immediate: true })\r\n seminarUpdated() {\r\n if (!this.id) return;\r\n this.getVideo();\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!./GiveFeedback.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!./GiveFeedback.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./GiveFeedback.vue?vue&type=template&id=7a42aedc&\"\nimport script from \"./GiveFeedback.vue?vue&type=script&lang=ts&\"\nexport * from \"./GiveFeedback.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!./Content.vue?vue&type=style&index=0&id=0a7c255c&prod&scoped=true&lang=scss&\"","import { VDivider } from 'vuetify/lib/components/VDivider';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\n\nvar render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c(VDivider,{staticClass:\"my-4\"}),(_vm.submissions.length > 0)?_c('div',_vm._l((_vm.submissions),function(submission,i){return _c('GapTextSubmission',{key:i,staticClass:\"mt-4\",attrs:{\"element\":_vm.element,\"submission\":submission}})}),1):_c('div',[_c('div',[_c('div',_vm._l((_vm.parts),function(line,i){return _c('div',{key:i,staticClass:\"d-flex flex-wrap align-baseline\"},_vm._l((line),function(part,j){return _c('div',{key:j,staticClass:\"d-flex flex-wrap align-baseline\"},[_c('span',[_vm._v(_vm._s(part))]),(j !== line.length - 1)?_c(VTextField,{staticStyle:{\"max-width\":\"100px\",\"padding\":\"0px 10px\",\"margin\":\"0\"},attrs:{\"hide-details\":\"\",\"autocomplete\":\"prezp\"},model:{value:(_vm.inputs[i][j]),callback:function ($$v) {_vm.$set(_vm.inputs[i], j, $$v)},expression:\"inputs[i][j]\"}}):_vm._e()],1)}),0)}),0)])]),(_vm.skipped)?_c('div',[_c('h4',{staticClass:\"mt-4\"},[_vm._v(\" This task was skipped on \"+_vm._s(_vm._f(\"formatwithtime\")(_vm.skipped.createdAt))+\". \")])]):_vm._e(),_c('ElementControls',{attrs:{\"submit\":_vm.submit}})],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\r\nimport Vue from \"vue\";\r\nimport { Action } from \"vuex-class\";\r\nimport { Component, Prop, Watch } from \"vue-property-decorator\";\r\n\r\nimport api from \"@/core/utils/api\";\r\nimport type { Seminar, SeminarElement, Submission } from \"@/core/models\";\r\n\r\nimport GapTextSubmission from \"./GapTextSubmission.vue\";\r\nimport ElementControls from \"./ElementControls.vue\";\r\n\r\n@Component({ components: { GapTextSubmission, ElementControls } })\r\nexport default class GapTextElement extends Vue {\r\n @Prop({ default: () => undefined }) seminar?: Seminar;\r\n @Prop({ default: () => ({} as SeminarElement) }) element!: SeminarElement;\r\n @Action(\"seminars/addSubmission\") addSubmission!: (s: Submission) => void;\r\n @Action(\"displaySnackbar\") displaySnackbar!: (m: string) => void;\r\n\r\n inputs: string[][] = [];\r\n get parts() {\r\n if (this.element.type !== \"gap_text\") return [];\r\n return this.element.text.split(\"\\n\").map(x => x.split(\"__\"));\r\n }\r\n @Watch(\"element\", { immediate: true })\r\n elementChanged() {\r\n if (this.element.type !== \"gap_text\") return;\r\n this.parts.forEach(x => {\r\n const gapCount = x\r\n .map(x => x.split(\"__\").length)\r\n .reduce((cum, cur) => cum + cur);\r\n this.inputs.push(new Array(gapCount - 1).fill(\"\"));\r\n });\r\n }\r\n\r\n get submissions() {\r\n return (\r\n this.seminar?.submissions?.filter(\r\n x => x.elementId === this.element.id && !x.skipped,\r\n ) || []\r\n );\r\n }\r\n\r\n get skipped() {\r\n return this.seminar?.submissions?.find(\r\n x => x.skipped && x.elementId === this.element.id,\r\n );\r\n }\r\n\r\n submitting = false;\r\n async submit() {\r\n if (this.element.type !== \"gap_text\") throw new Error(\"invalid\");\r\n\r\n if (this.inputs.some(x => x.some(y => y.trim().length === 0))) {\r\n this.displaySnackbar(this.$t(\"seminars.gap_text.error\").toString());\r\n throw new Error(\"invalid\");\r\n }\r\n\r\n this.submitting = true;\r\n try {\r\n const data = {\r\n elementId: this.element.id,\r\n answers: this.inputs.flat(),\r\n seminarId: this.element.seminarId,\r\n };\r\n const submission = (await api.post(\r\n \"/api/Submissions/GapText\",\r\n data,\r\n )) as Submission;\r\n this.addSubmission(submission);\r\n } catch (error) {\r\n this.displaySnackbar(error.description);\r\n }\r\n this.submitting = 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!./GapText.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!./GapText.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./GapText.vue?vue&type=template&id=b560e0fe&\"\nimport script from \"./GapText.vue?vue&type=script&lang=ts&\"\nexport * from \"./GapText.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","import { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VRow } from 'vuetify/lib/components/VGrid';\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',[_c('h3',[_vm._v(\" \"+_vm._s(_vm.$t(\"seminars.vr_training.requiredScore\"))+\": \"+_vm._s(_vm.element.requiredScore)+\" \")]),(_vm.submissions.length > 0)?_c('div',{staticClass:\"mt-4\"},[_c('h4',{staticClass:\"mb-4\"},[_vm._v(_vm._s(_vm.$t(\"seminars.vr_training.yourSubmissions\")))]),_vm._l((_vm.submissions),function(sub,i){return _c(VRow,{key:i,staticClass:\"mb-4\"},[_c(VCol,{staticClass:\"pa-0\",attrs:{\"cols\":\"6\",\"md\":\"1\"}},[_vm._v(\" \"+_vm._s(_vm.$t(\"seminars.vr_training.score\"))+\": \"),_c('b',[_vm._v(_vm._s(Math.round(sub.score * 10) / 10))])]),_c(VCol,{staticClass:\"pa-0\",attrs:{\"cols\":\"6\",\"md\":\"3\"}},[_c('SubmissionFooter',{attrs:{\"submission\":sub,\"margin-top\":false}})],1)],1)})],2):_vm._e(),_c('div',{staticClass:\"d-flex\"},[_c(VSpacer),_c(VBtn,{attrs:{\"elevation\":\"0\",\"loading\":_vm.getting,\"disabled\":_vm.getting},on:{\"click\":_vm.getSubs}},[_c('span',[_vm._v(_vm._s(_vm.$t(\"seminars.vr_training.refresh\")))]),_c(VIcon,{attrs:{\"right\":\"\"}},[_vm._v(\"mdi-refresh\")])],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\r\nimport Vue from \"vue\";\r\nimport { Action } from \"vuex-class\";\r\nimport { Component, Prop } from \"vue-property-decorator\";\r\n\r\nimport type { GetSubsRequest, Seminar, SeminarElement } from \"@/core/models\";\r\nimport SubmissionFooter from \"../components/SubmissionFooter.vue\";\r\n\r\n@Component({ components: { SubmissionFooter } })\r\nexport default class VRTrainingElement extends Vue {\r\n @Prop({ default: () => undefined }) seminar?: Seminar;\r\n @Prop({ default: () => undefined }) element?: SeminarElement;\r\n @Action(\"seminars/getSubmissions\")\r\n getSubmissions!: (r: GetSubsRequest) => Promise;\r\n @Action(\"displaySnackbar\") displaySnackbar!: (m: string) => void;\r\n\r\n get submissions() {\r\n return (\r\n this.seminar?.submissions?.filter(\r\n x => x.elementId === this.element?.id && !x.skipped,\r\n ) || []\r\n );\r\n }\r\n\r\n getting = false;\r\n async getSubs() {\r\n const seminarId = this.seminar?.id;\r\n const elementId = this.element?.id;\r\n if (!seminarId) return this.displaySnackbar(\"Seminar not found\");\r\n if (!elementId) return this.displaySnackbar(\"Element not found\");\r\n\r\n this.getting = true;\r\n try {\r\n this.getSubmissions({ elementId, seminarId });\r\n } catch (error) {\r\n console.log(error);\r\n }\r\n this.getting = 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!./VRTraining.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!./VRTraining.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./VRTraining.vue?vue&type=template&id=7b5a53c6&\"\nimport script from \"./VRTraining.vue?vue&type=script&lang=ts&\"\nexport * from \"./VRTraining.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":""}