{"version":3,"sources":["webpack:///./src/views/goals/components/ConditionDisplay.vue?6eb7","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/goals/components/CreatedGoal.vue?fea7","webpack:///./src/views/goals/components/CreatedGoal.vue","webpack:///./src/views/goals/components/CreatedGoal.vue?01b7","webpack:///./src/views/goals/components/CreatedGoal.vue?a352"],"names":["render","_vm","this","_h","$createElement","_c","_self","VList","staticStyle","_v","_s","value","staticRenderFns","ConditionDisplay","condition","type","ConditionType","DueDate","val","d","DateTime","fromISO","now","fromMillis","Date","$t","toString","rel","setLocale","$i18n","locale","toRelative","includes","split","msgstr","SessionScore","n","FillerWords","SpeechClarity","OverallScore","Repetition","SpeechSpeed","n1","n2","Sentiment","Pitch","Volume","Pauses","Vue","__decorate","Prop","default","Component","component","VListItem","attrs","VOverlay","staticClass","removing","removedGoalID","goal","ID","VProgressCircular","Target","_f","CreatedAt","VListItemAction","VTooltip","scopedSlots","_u","key","fn","ref","on","VBtn","_g","$event","showConditions","VIcon","_e","showUsers","removeGoal","VDialog","model","callback","$$v","confirmDialog","expression","VCard","VSpacer","confirm","directives","name","rawName","_l","cond","i","user","class","usersCount","Username","Email","VProgressLinear","Progress","CreatedGoal","Conditions","length","AssingedUsers","removeGoalAction","Getter","Action","components"],"mappings":"0JAEIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAGE,EAAA,KAAkB,CAAEN,EAAa,UAAEI,EAAG,OAAO,CAACG,YAAY,CAAC,cAAc,QAAQ,CAACP,EAAIQ,GAAGR,EAAIS,GAAGT,EAAIU,UAAUN,EAAG,OAAO,CAACJ,EAAIQ,GAAGR,EAAIS,GAAGT,EAAIU,aAC1OC,EAAkB,G,gKCYDC,EAAgB,2HA6ClC,OA7CkC,uCAGnC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,uB,0BAME,EAAAxB,WAAY,EACZ,EAAAH,gBAAiB,EAcjB,EAAAS,eAAgB,EAChB,EAAAI,SAAU,EAAM,EAUf,OACF,2CAzBC,WACE,OAAuC,IAAhCxF,KAAK0D,KAAK6C,WAAWC,SAC7B,2BACD,WACE,OAAOxG,KAAK0D,KAAK6C,WAAWC,SAC7B,oBACD,WACE,OAA0C,IAAnCxG,KAAK0D,KAAK+C,cAAcD,SAChC,sBACD,WACE,OAAOxG,KAAK0D,KAAK+C,cAAcD,SAChC,wBAID,WACMxG,KAAKwD,WACJxD,KAAKwF,SAIVxF,KAAK0G,iBAAiB1G,KAAK0D,KAAKC,IAChC3D,KAAKoF,eAAgB,EACrBpF,KAAKwF,SAAU,GALbxF,KAAKoF,eAAgB,OAMxB,EAhC6B,CAAStC,cACVC,gBAA5BC,eAAK,CAAEC,QAAS,iBAAM,OAAK,2BACOF,gBAAlC4D,eAAO,4BAA0B,+BACH5D,gBAA9B4D,eAAO,wBAAsB,oCACF5D,gBAA3B6D,eAAO,qBAAmB,uCAJRN,EAAW,gBAD/BpD,eAAU,CAAE2D,WAAY,CAAElG,kCACN2F,WCzJqZ,I,YCOtanD,EAAY,eACd,EACArD,EACAY,GACA,EACA,KACA,KACA,MAIa,aAAAyC,E","file":"assets/js/chunk-5471779e.1bba6ea6.js","sourcesContent":["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 { 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 { VExpandTransition } from 'vuetify/lib/components/transitions';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VListItem } from 'vuetify/lib/components/VList';\nimport { VListItemAction } 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 { VOverlay } from 'vuetify/lib/components/VOverlay';\nimport { VProgressCircular } from 'vuetify/lib/components/VProgressCircular';\nimport { VProgressLinear } from 'vuetify/lib/components/VProgressLinear';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\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(VListItem,{attrs:{\"outlined\":\"\"}},[_c(VOverlay,{staticClass:\"d-flex align-center justify-center\",attrs:{\"absolute\":\"\",\"value\":_vm.removing && _vm.removedGoalID == _vm.goal.ID}},[_c(VProgressCircular,{attrs:{\"indeterminate\":\"\",\"size\":\"64\"}})],1),_c(VListItemContent,[_c(VListItemTitle,{staticClass:\"mr-2 font-weight-bold main--text\"},[_c('span',[_vm._v(_vm._s(_vm.$t(\"goals.complete\", { n: _vm.goal.Target })))])]),_c(VListItemSubtitle,[_c('span',[_vm._v(_vm._s(_vm._f(\"format\")(_vm.goal.CreatedAt)))])])],1),_c(VListItemAction,{staticClass:\"mx-0\"},[_c(VTooltip,{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [(_vm.hasConditions)?_c(VBtn,_vm._g({staticClass:\"mr-2 white--text primary\",attrs:{\"icon\":\"\"},on:{\"click\":function($event){_vm.showConditions = !_vm.showConditions}}},on),[_c(VIcon,[_vm._v(\"mdi-bullseye\")])],1):_vm._e()]}}])},[_c('span',[_vm._v(_vm._s(_vm.$t(\"goals.conds\")))])])],1),_c(VListItemAction,{staticClass:\"mx-0\"},[_c(VTooltip,{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [(_vm.hasUsers)?_c(VBtn,_vm._g({staticClass:\"mr-2 white--text primary\",attrs:{\"icon\":\"\"},on:{\"click\":function($event){_vm.showUsers = !_vm.showUsers}}},on),[_c(VIcon,[_vm._v(\"mdi-account\")])],1):_vm._e()]}}])},[_c('span',[_vm._v(_vm._s(_vm.$t(\"goals.assignedu\")))])])],1),_c(VListItemAction,{staticClass:\"mx-0\"},[_c(VTooltip,{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [(_vm.hasUsers)?_c(VBtn,_vm._g({staticClass:\"white--text primary\",attrs:{\"icon\":\"\"},on:{\"click\":_vm.removeGoal}},on),[_c(VIcon,[_vm._v(\"mdi-delete\")])],1):_vm._e()]}}])},[_c('span',[_vm._v(_vm._s(_vm.$t(\"goals.remove\")))])])],1)],1),_c(VDialog,{attrs:{\"max-width\":\"400px\"},model:{value:(_vm.confirmDialog),callback:function ($$v) {_vm.confirmDialog=$$v},expression:\"confirmDialog\"}},[_c(VCard,[_c(VCardTitle,{staticClass:\"headline font-weight-bold\"},[_c('span',[_vm._v(_vm._s(_vm.$t(\"goals.confirm\")))])]),_c(VCardText,[_c('span',[_vm._v(_vm._s(_vm.$t(\"goals.confirmmsg\")))])]),_c(VCardActions,[_c(VSpacer),_c(VBtn,{attrs:{\"text\":\"\",\"color\":\"prezpRed\"},on:{\"click\":function($event){_vm.confirmDialog = false}}},[_c('span',[_vm._v(_vm._s(_vm.$t(\"global.cancel\")))])]),_c(VBtn,{attrs:{\"color\":\"primary\",\"elevation\":\"0\"},on:{\"click\":function () {\n _vm.confirm = true;\n _vm.removeGoal();\n }}},[_c('span',[_vm._v(_vm._s(_vm.$t(\"global.confirm\")))])])],1)],1)],1),(_vm.hasConditions)?_c(VExpandTransition,[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showConditions),expression:\"showConditions\"}]},[_c('div',{staticClass:\"pa-4\"},_vm._l((_vm.goal.Conditions),function(cond,i){return _c('ConditionDisplay',{key:i,attrs:{\"condition\":cond}})}),1)])]):_vm._e(),(_vm.hasUsers)?_c(VExpandTransition,[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showUsers),expression:\"showUsers\"}]},[_c('div',{staticClass:\"pa-4\"},_vm._l((_vm.goal.AssingedUsers),function(user,i){return _c('div',{key:i,class:{ 'mb-4': i !== _vm.usersCount - 1 }},[_c('div',[_vm._v(_vm._s(user.Username)+\" (\"+_vm._s(user.Email)+\")\")]),_c(VTooltip,{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\n var on = ref.on;\nreturn [_c(VProgressLinear,_vm._g({staticClass:\"mt-2\",attrs:{\"rounded\":\"\",\"height\":\"10px\",\"background-opacity\":\"0.2\",\"value\":(user.Progress / _vm.goal.Target) * 100}},on))]}}],null,true)},[_c('span',[_vm._v(_vm._s(user.Progress)+\"/\"+_vm._s(_vm.goal.Target))])])],1)}),0)])]):_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\r\nimport Vue from \"vue\";\r\nimport { Action, Getter } from \"vuex-class\";\r\nimport { Component, Prop } from \"vue-property-decorator\";\r\n\r\nimport { Goal } from \"@/core/models\";\r\nimport ConditionDisplay from \"./ConditionDisplay.vue\";\r\n\r\n@Component({ components: { ConditionDisplay } })\r\nexport default class CreatedGoal extends Vue {\r\n @Prop({ default: () => [] }) goal!: Goal;\r\n @Getter(\"goals/removeGoalLoading\") removing!: boolean;\r\n @Getter(\"goals/removedGoalID\") removedGoalID!: boolean;\r\n @Action(\"goals/removeGoal\") removeGoalAction!: Function;\r\n\r\n showUsers = false;\r\n showConditions = false;\r\n get hasConditions() {\r\n return this.goal.Conditions.length !== 0;\r\n }\r\n get conditionsCount() {\r\n return this.goal.Conditions.length;\r\n }\r\n get hasUsers() {\r\n return this.goal.AssingedUsers.length !== 0;\r\n }\r\n get usersCount() {\r\n return this.goal.AssingedUsers.length;\r\n }\r\n\r\n confirmDialog = false;\r\n confirm = false;\r\n removeGoal() {\r\n if (this.removing) return;\r\n if (!this.confirm) {\r\n this.confirmDialog = true;\r\n return;\r\n }\r\n this.removeGoalAction(this.goal.ID);\r\n this.confirmDialog = false;\r\n this.confirm = 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!./CreatedGoal.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!./CreatedGoal.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CreatedGoal.vue?vue&type=template&id=4b0b1132&\"\nimport script from \"./CreatedGoal.vue?vue&type=script&lang=ts&\"\nexport * from \"./CreatedGoal.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":""}