{"version":3,"sources":["webpack:///./src/views/Assistant.vue","webpack:///./src/views/Assistant.vue?1ca3","webpack:///./src/views/Assistant.vue?ab8e","webpack:///./src/views/Assistant.vue?ec53","webpack:///./src/views/Kevin.vue","webpack:///./src/views/Kevin.vue?83d9","webpack:///./src/views/Kevin.vue?49aa","webpack:///./src/views/Kevin.vue?c7f6","webpack:///./src/assistants/RatingStars.vue","webpack:///./src/assistants/RatingStars.vue?432b","webpack:///./src/assistants/RatingStars.vue?a6f0","webpack:///./src/assistants/RatingStars.vue?4a51","webpack:///./src/accountSetup/assistantHeightHelper.ts"],"names":["render","_vm","this","_c","_self","_setupProxy","staticClass","attrs","$route","params","id","staticRenderFns","Assistant","Vue","Component","components","AssistantDetails","component","SupportUserId","Constants","undefined","ratingInfo","canBeRated","on","ratingEdited","model","value","ratingFormValue","callback","$$v","expression","_v","_s","averageRating","totalRatings","_l","number","key","_e","RatingStars","constructor","rateUser","userId","then","$emit","catch","error","pushError","response","data","toFixed","mounted","givenRatingByUser","ratingEnable","loggedUser","store","getters","module","user","__decorate","Prop","required","default","heightScaleOptions","text","scaleRatios","regionScales","getHeightInOtherScale","height","prevScale","newScale","displayHeight","scale","Object","keys","includes","getLanguage","Math","round"],"mappings":"8HAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,MAAM,CAACG,YAAY,aAAa,CAACH,EAAG,MAAM,CAACG,YAAY,mBAAmBH,EAAG,MAAM,CAACG,YAAY,sBAAsB,CAACH,EAAG,MAAM,CAACG,YAAY,oBAAoB,CAACH,EAAG,oBAAoB,CAACI,MAAM,CAAC,OAASN,EAAIO,OAAOC,OAAOC,OAAO,QAElUC,EAAkB,G,gDCQtB,IAAqBC,EAArB,cAAuCC,eAAlBD,EAAS,gBAL7BE,eAAU,CACTC,WAAY,CACVC,4BAGiBJ,WCV+W,I,YCOhYK,EAAY,eACd,EACAjB,EACAW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,KAAQ,mCAFvBvB,EAAW,gBAD/BzB,QACoByB,WCTiX,I,YCOlYtB,EAAY,eACd,EACAjB,EACAW,GACA,EACA,KACA,KACA,MAIa,OAAAM,E,2CClBf,sHAIO,MAAM8C,EAA6D,CACxE,CAAEC,KAAM,SAAUtC,MAAO,UACzB,CAAEsC,KAAM,KAAMtC,MAAO,OAGjBuC,EAAc,CAChB,GAAM,EACN,OAAU,MAGRC,EAA8C,CAChD,GAAM,CAAE,KAAM,KAAM,KAAM,KAAM,MAChC,OAAU,CAAE,OAGHC,EAAwB,CAACC,EAAgBC,EAAwBC,IACnEF,EAASH,EAAYI,GAAaJ,EAAYK,GAG5CC,EAAiBH,IAC1B,GAAKA,EACD,IAAK,IAAII,KAASC,OAAOC,KAAKR,GAC1B,GAAIA,EAAaM,GAAOG,SAASC,kBAC7B,MAAO,GAAGC,KAAKC,MAAMX,EAAsBC,EAAQ,KAAMI,OAA0BA,M","file":"js/assistants~f71cff67.3d1aea7f.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"user-view\"},[_c('div',{staticClass:\"user-view__top\"}),_c('div',{staticClass:\"user-view__content\"},[_c('div',{staticClass:\"container-custom\"},[_c('assistant-details',{attrs:{\"userId\":_vm.$route.params.id}})],1)])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport Vue from \"vue\";\nimport Component from \"vue-class-component\";\nimport AssistantDetails from \"@/assistants/Details.vue\";\n\n@Component({\n components: {\n AssistantDetails,\n },\n})\nexport default class Assistant extends Vue {}\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Assistant.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Assistant.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Assistant.vue?vue&type=template&id=1a723a2b&\"\nimport script from \"./Assistant.vue?vue&type=script&lang=ts&\"\nexport * from \"./Assistant.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 render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"user-view\"},[_c('div',{staticClass:\"user-view__top\"}),_c('div',{staticClass:\"user-view__content\"},[_c('div',{staticClass:\"container-custom\"},[_c('assistant-details',{attrs:{\"userId\":_vm.SupportUserId}})],1)])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport Vue from \"vue\";\nimport Component from \"vue-class-component\";\nimport AssistantDetails from \"@/assistants/Details.vue\";\nimport Constants from \"@/Constants\";\n\n@Component({\n components: {\n AssistantDetails,\n },\n})\nexport default class Assistant extends Vue {\n get SupportUserId() { return Constants.SupportUserId };\n}\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Kevin.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Kevin.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Kevin.vue?vue&type=template&id=0c25318e&\"\nimport script from \"./Kevin.vue?vue&type=script&lang=ts&\"\nexport * from \"./Kevin.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 render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return (_vm.ratingInfo !== undefined)?_c('div',{staticClass:\"rating\"},[(!_vm.canBeRated)?_c('div',{staticClass:\"rateForm rateSummary\"},[_vm._l((5),function(number){return _c('span',{key:number,staticClass:\"rating-stars\"},[(number <= _vm.averageRating)?[_c('b-icon',{attrs:{\"icon\":\"star-fill\"}})]:[_c('b-icon',{attrs:{\"icon\":\"star\"}})]],2)}),_c('span',{staticClass:\"rating-value\"},[_vm._v(_vm._s(_vm.averageRating)+\"/5\")]),_c('span',{staticClass:\"rating-count\"},[_vm._v(\"(\"+_vm._s(_vm.totalRatings)+\")\")])],2):_c('div',[_c('b-form-rating',{staticClass:\"rateForm\",attrs:{\"variant\":\"warning\",\"precision\":\"1\",\"no-border\":\"\",\"size\":\"lg\"},on:{\"change\":_vm.ratingEdited},model:{value:(_vm.ratingFormValue),callback:function ($$v) {_vm.ratingFormValue=$$v},expression:\"ratingFormValue\"}}),_c('div',{staticClass:\"rateSummary\"},[_c('span',{staticClass:\"rating-value\"},[_vm._v(_vm._s(_vm.averageRating)+\"/5\")]),_c('span',{staticClass:\"rating-count\"},[_vm._v(\"(\"+_vm._s(_vm.totalRatings)+\")\")])])],1)]):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport { Component, Prop, Vue } from \"vue-property-decorator\";\nimport store from \"@/store\";\nimport { rateUser } from \"@/serviceClients/userWebServices\";\nimport { UserRatingInfo } from \"./assistantsWebServices\";\nimport { pushError } from \"../core\";\nimport './RatingStars.scss'\n\n@Component\nexport default class RatingStars extends Vue {\n @Prop() ratingInfo!: UserRatingInfo;\n @Prop({ required: false, default: true }) ratingEnable!: boolean;\n userId!: string;\n ratingFormValue = 0;\n\n ratingEdited() {\n rateUser(this.userId, this.ratingFormValue)\n .then(() => this.$emit(\"onRated\"))\n .catch((error) => {\n pushError(error.response?.data?.error || error);\n });\n }\n\n get averageRating() {\n return this.ratingInfo.averageRating.toFixed(1);\n }\n\n get totalRatings() {\n return this.ratingInfo.totalRatings;\n }\n\n mounted() {\n this.ratingFormValue = this.ratingInfo?.givenRatingByUser ?? 0;\n }\n\n get canBeRated() {\n if (!this.ratingEnable) {\n return false;\n }\n\n const loggedUser = store.getters.module.user;\n this.userId = this.$route.params.id;\n return (\n !!loggedUser &&\n loggedUser.id !== this.userId &&\n this.ratingInfo?.canBeRated\n );\n }\n}\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RatingStars.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RatingStars.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./RatingStars.vue?vue&type=template&id=34e2859d&\"\nimport script from \"./RatingStars.vue?vue&type=script&lang=ts&\"\nexport * from \"./RatingStars.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 { getLanguage } from \"@/core/translate\"\n\nexport type HeightScale = \"inches\" | \"cm\" \n\nexport const heightScaleOptions: { text: string, value: HeightScale }[] = [\n { text: \"inches\", value: \"inches\" },\n { text: \"cm\", value: \"cm\" },\n]\n\nconst scaleRatios = {\n 'cm': 1,\n 'inches': 2.54,\n}\n\nconst regionScales: { [scale: string]: string[] } = {\n 'cm': [ 'pl', 'uk', 'ru', 'ja', 'ro' ],\n 'inches': [ 'en' ],\n}\n\nexport const getHeightInOtherScale = (height: number, prevScale: HeightScale, newScale: HeightScale): number => {\n return height * scaleRatios[prevScale] / scaleRatios[newScale]\n}\n\nexport const displayHeight = (height: number | undefined) => {\n if(!!height) {\n for (var scale of Object.keys(regionScales)) {\n if (regionScales[scale].includes(getLanguage())) {\n return `${Math.round(getHeightInOtherScale(height, 'cm', scale as HeightScale))} ${scale}`\n }\n }\n }\n}\n"],"sourceRoot":""}