{"version":3,"sources":["webpack:///./src/support/CreateRequest.vue?3260","webpack:///./src/views/CreateSupportRequest.vue?138d","webpack:///./src/views/CreateSupportRequest.vue","webpack:///./src/support/CreateRequest.vue","webpack:///./src/support/supportRequestWebServices.ts","webpack:///./src/support/CreateRequest.vue?2ee4","webpack:///./src/support/CreateRequest.vue?e045","webpack:///./src/support/CreateRequest.vue?092b","webpack:///./src/views/CreateSupportRequest.vue?a186","webpack:///./src/views/CreateSupportRequest.vue?7263","webpack:///./src/views/CreateSupportRequest.vue?d7b6"],"names":["render","_vm","this","_c","_self","_setupProxy","staticClass","attrs","breadcrumbsList","_v","_s","$t","staticRenderFns","on","$event","preventDefault","onSubmit","apply","arguments","typeOptions","model","value","request","type","callback","$$v","$set","expression","directives","name","rawName","isUserLoggedIn","isLoading","senderEmail","content","url","SupportRequestType","sendSupportRequest","axios","post","CreateRequest","Vue","constructor","store","getters","module","user","email","Suggestion","text","SpamOrAbuse","Other","mounted","$route","params","aboutUserId","then","$toasted","success","toString","duration","$router","push","catch","finally","error","pushError","response","data","Component","components","component","CreateSupportRequest","commit","setActiveModuleName","href"],"mappings":"6IAAA,W,kCCAA,W,gECAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,MAAM,CAACG,YAAY,iBAAiB,CAACH,EAAG,MAAM,CAACG,YAAY,oBAAoB,CAACH,EAAG,eAAe,CAACI,MAAM,CAAC,MAAQN,EAAIO,mBAAmBL,EAAG,KAAK,CAACF,EAAIQ,GAAGR,EAAIS,GAAGT,EAAIU,GAAG,mCAAmCR,EAAG,MAAMF,EAAIQ,GAAGR,EAAIS,GAAGT,EAAIU,GAAG,kDAAkDR,EAAG,OAAO,CAACG,YAAY,cAAcH,EAAG,OAAO,CAACG,YAAY,cAAcH,EAAG,OAAO,CAACG,YAAY,cAAcH,EAAG,OAAO,CAACG,YAAY,cAAcH,EAAG,OAAO,CA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ACbC,MAAM,UAEZC,QAAQ,KACP9D,KAAK8B,WAAY,IAElB+B,MAAOE,IAAS,QACfC,gBAAU,UAAAD,EAAME,gBAAN,mBAAgBC,YAAhB,eAAsBH,QAASA,OAxC5BzB,EAAa,gBAJjC6B,eAAU,CACTC,WAAY,MAGO9B,WCXmX,I,wBCQpY+B,EAAY,eACd,EACA,EACA,GACA,EACA,KACA,WACA,MAIa,EAAAA,E,QCRf,IAAqBC,EAArB,cAAkD/B,aAChDW,UACET,OAAM8B,OAAO5B,OAAO6B,oBAAoBxE,KAAKS,GAAG,oBAG/B,sBACjB,MAAQ,CACJ,CACEsC,KAAM/C,KAAKS,GAAG,QACdgE,KAAM,KAER,CACE1B,KAAM/C,KAAKS,GAAG,uBACdgE,KAAM,QAbKH,EAAoB,gBALxCH,eAAU,CACTC,WAAY,CACV9B,oBAGiBgC,WCX0X,ICQ3Y,G,UAAY,eACd,EACAxE,EACAY,GACA,EACA,KACA,WACA,OAIa,e","file":"js/support~ea1f58e8.792c0521.js","sourcesContent":["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!./CreateRequest.vue?vue&type=style&index=0&id=c26386b2&prod&lang=scss&scoped=true&\"","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!./CreateSupportRequest.vue?vue&type=style&index=0&id=b63c7dd6&prod&lang=scss&scoped=true&\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"question-page\"},[_c('div',{staticClass:\"container-custom\"},[_c('b-breadcrumb',{attrs:{\"items\":_vm.breadcrumbsList}}),_c('h1',[_vm._v(_vm._s(_vm.$t('Ask us for anything you want!'))),_c('br'),_vm._v(_vm._s(_vm.$t('We will try to answer as soon as possible!')))]),_c('span',{staticClass:\"dot dot-1\"}),_c('span',{staticClass:\"dot dot-2\"}),_c('span',{staticClass:\"dot dot-3\"}),_c('span',{staticClass:\"dot dot-4\"}),_c('span',{staticClass:\"dot dot-5\"}),_c('span',{staticClass:\"dot dot-6\"}),_c('create-request')],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"contact-form\"},[_c('b-form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.onSubmit.apply(null, arguments)}}},[_c('b-form-group',{attrs:{\"label\":`${_vm.$t('Want')}`}},[_c('b-form-radio-group',{attrs:{\"options\":_vm.typeOptions,\"value-field\":\"value\",\"text-field\":\"text\"},model:{value:(_vm.request.type),callback:function ($$v) {_vm.$set(_vm.request, \"type\", $$v)},expression:\"request.type\"}})],1),_c('b-form-group',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.isUserLoggedIn),expression:\"!isUserLoggedIn\"}],attrs:{\"id\":\"input-group-1\",\"label\":`${_vm.$t('Email address')}*`,\"disabled\":_vm.isLoading,\"label-for\":\"email\"}},[_c('b-form-input',{attrs:{\"id\":\"email\",\"autocomplete\":\"off\",\"type\":\"email\",\"name\":\"email\",\"disabled\":_vm.isLoading,\"required\":\"\"},model:{value:(_vm.request.senderEmail),callback:function ($$v) {_vm.$set(_vm.request, \"senderEmail\", $$v)},expression:\"request.senderEmail\"}})],1),_c('b-form-group',{attrs:{\"label\":`${_vm.$t('Content')}*`,\"label-for\":\"Content\"}},[_c('b-form-textarea',{attrs:{\"id\":\"Content\",\"name\":\"Content\",\"disabled\":_vm.isLoading,\"required\":\"\"},model:{value:(_vm.request.content),callback:function ($$v) {_vm.$set(_vm.request, \"content\", $$v)},expression:\"request.content\"}})],1),_c('b-button',{staticClass:\"primary\",attrs:{\"type\":\"submit\",\"size\":\"lg\",\"disabled\":_vm.isLoading,\"variant\":\"primary\"}},[_vm._v(_vm._s(_vm.$t(\"Send a message\")))])],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import * as axios from 'axios';\n\nconst url = `${process.env.VUE_APP_API_URL}/supportrequest`;\n\nexport enum SupportRequestType\n{\n Suggestion,\n SpamOrAbuse,\n Other\n}\n\nexport interface CreateSupportRequestRequest\n{\n type: SupportRequestType;\n content: string;\n senderEmail: string;\n aboutUserId: string;\n}\n\nexport function sendSupportRequest(model: CreateSupportRequestRequest) {\n return axios.default.post(`${url}`, model);\n}\n","\nimport { Component, Prop, Vue } from \"vue-property-decorator\";\nimport { AxiosResponse } from \"axios\";\nimport store from \"../store\";\nimport { CreateSupportRequestRequest, SupportRequestType, sendSupportRequest } from \"./supportRequestWebServices\";\nimport { pushError } from \"@/core\";\n\n@Component({\n components: {\n }\n})\nexport default class CreateRequest extends Vue {\n request: CreateSupportRequestRequest = {\n senderEmail: store.getters.module.user?.email,\n type: SupportRequestType.Suggestion\n } as CreateSupportRequestRequest;\n isLoading = false;\n\n get typeOptions() {\n return [\n { text: this.$t(\"Ask a question\"), value: SupportRequestType.Suggestion },\n { text: this.$t(\"Report spam/abuse\"), value: SupportRequestType.SpamOrAbuse },\n { text: this.$t(\"Other\"), value: SupportRequestType.Other }\n ]\n }\n\n get isUserLoggedIn() {\n return !!store.getters.module.user;\n }\n\n mounted() {\n if(this.$route.params.aboutUserId) {\n this.request.aboutUserId = this.$route.params.aboutUserId;\n this.request.type = SupportRequestType.SpamOrAbuse;\n }\n }\n\n onSubmit() {\n this.isLoading = true;\n sendSupportRequest(this.request)\n .then(() => {\n this.$toasted.success(this.$t(\"Your request has been successfully sent. We will get back to you as soon as possible.\").toString(), {\n duration: 5000,\n });\n this.$router.push('/')\n .catch(() => { /* noop */ });\n })\n .finally(() => {\n this.isLoading = false;\n })\n .catch((error) => {\n pushError(error.response?.data?.error || error);\n });\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!./CreateRequest.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!./CreateRequest.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CreateRequest.vue?vue&type=template&id=c26386b2&scoped=true&\"\nimport script from \"./CreateRequest.vue?vue&type=script&lang=ts&\"\nexport * from \"./CreateRequest.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./CreateRequest.vue?vue&type=style&index=0&id=c26386b2&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 \"c26386b2\",\n null\n \n)\n\nexport default component.exports","\nimport Vue from \"vue\";\nimport Component from \"vue-class-component\";\nimport CreateRequest from \"@/support/CreateRequest.vue\";\nimport store from \"@/store\";\n\n@Component({\n components: {\n CreateRequest\n },\n})\nexport default class CreateSupportRequest extends Vue {\n mounted() {\n store.commit.module.setActiveModuleName(this.$t(\"Contact support\"));\n }\n\n get breadcrumbsList() {\n return [\n {\n text: this.$t('Home'),\n href: '/'\n },\n {\n text: this.$t('Feedback/Suggestion'),\n href: '#'\n }\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!./CreateSupportRequest.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!./CreateSupportRequest.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CreateSupportRequest.vue?vue&type=template&id=b63c7dd6&scoped=true&\"\nimport script from \"./CreateSupportRequest.vue?vue&type=script&lang=ts&\"\nexport * from \"./CreateSupportRequest.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./CreateSupportRequest.vue?vue&type=style&index=0&id=b63c7dd6&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 \"b63c7dd6\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}