{"version":3,"sources":["webpack:///./src/pages/Shared/customerSupport/index.vue?cb87","webpack:///./src/pages/Shared/customerSupport/keys/data.js","webpack:///./src/services/HelpDesk/store.js","webpack:///./src/pages/Shared/customerSupport/keys/methods.js","webpack:///src/pages/Shared/customerSupport/index.vue","webpack:///./src/pages/Shared/customerSupport/index.vue?c236","webpack:///./src/pages/Shared/customerSupport/index.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","_v","_s","$t","ref","scopedSlots","_u","key","fn","handleSubmit","on","$event","preventDefault","onFormSubmit","setReadOnly","model","value","formData","callback","$$v","$set","expression","_l","option","domProps","label","staticStyle","loading","errors","staticRenderFns","data","isDebug","helpDeskSubjects","helpDeskSubjectID","message","styles","dateSelector","display","padding","textAlign","verticalAlign","flexWrap","alignItems","justifyContent","filterButton","float","marginTop","actions","getHelpDeskSupportList","console","log","path","kms","get","results","debug","JSON","stringify","list","notifyError","error","addHelpDesk","dispatch","payload","done","post","hoaID","unitID","vendorUserID","aspNetUserID","undefined","helpDeskID","notifyMessage","result","Vue","use","Vuex","helpDeskStore","Store","state","mutations","getters","methods","reload","loadHelpDeskSubjects","then","map","a","name","currentHoaId","currentUnitId","_get","authUser","components","ValidInput","ValidationObserver","ValidationProvider","computed","created","mounted","i18n","messages","en","helpDesk","component"],"mappings":"wHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,UAAUC,MAAM,CAAC,mBAAmB,KAAK,CAACH,EAAG,MAAM,CAACE,YAAY,aAAa,CAACF,EAAG,MAAM,CAACE,YAAY,cAAc,CAACF,EAAG,MAAM,CAACE,YAAY,+BAA+B,CAACN,EAAIQ,GAAGR,EAAIS,GAAGT,EAAIU,GAAG,wBAAwBN,EAAG,MAAM,CAACE,YAAY,aAAa,CAACF,EAAG,qBAAqB,CAACO,IAAI,OAAOC,YAAY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KA,cAAgB,KACtFtB,aAAcuB,IAAK,EAAKC,SAAU,eAAgB,MAClDvB,aAAc,QAGhBpB,QAAQM,MAAM,4BAA8BC,KAAKC,UAAUM,IAjBxC,kBAoBXc,EAAcf,SAAS,cAAe,CAC1CC,QAASA,EACTC,KAAM,YAAgB,IAAbS,EAAa,EAAbA,OACHA,IACF,EAAK3D,aAAc,MAxBR,4DA6BjB6C,eAAY,2DAA6D,KAAEzB,SA7B1D,QAgCnB,EAAKP,SAAU,EAhCI,8D,YCuDvB,GACE6D,KAAM,iBACNK,WAAY,CACVC,WAAJ,OACIC,mBAAJ,OACIC,mBAAJ,QAGElE,KAAF,EAEEmE,SAAU,OAAZ,OAAY,CAAZ,GACA,oEAGEC,QAdF,aAgBEC,QAhBF,WAiBIzG,KAAKyF,UAGPD,QAAF,EAEEkB,KAAM,CACJC,SAAU,CACRC,GAAI,CACFC,SAAU,CAAlB,8BCrG6W,I,YCOzWC,EAAY,eACd,EACAhH,EACAqC,GACA,EACA,KACA,KACA,MAIa,aAAA2E,E","file":"js/customerSupport.3e5c2dd4.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"section\",attrs:{\"customer-support\":\"\"}},[_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"level pl-2\"},[_c('div',{staticClass:\"level-left level-item title\"},[_vm._v(_vm._s(_vm.$t('helpDesk.title')))])]),_c('div',{staticClass:\"box is-12\"},[_c('ValidationObserver',{ref:\"form\",scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar handleSubmit = ref.handleSubmit;\nreturn [_c('transition',{attrs:{\"name\":\"fade\",\"mode\":\"out-in\",\"appear\":\"\"}},[_c('form',{staticClass:\"form\",on:{\"submit\":function($event){$event.preventDefault();return handleSubmit(_vm.onFormSubmit)}}},[_c('fieldset',[_c('div',{staticClass:\"pb-5 pt-5\"},[_c('b-field',{attrs:{\"label\":\"Select Subject\"}},[_c('b-select',{attrs:{\"disabled\":_vm.setReadOnly,\"required\":\"true\",\"placeholder\":\"Select a Subject\"},model:{value:(_vm.formData.helpDeskSubjectID),callback:function ($$v) {_vm.$set(_vm.formData, \"helpDeskSubjectID\", $$v)},expression:\"formData.helpDeskSubjectID\"}},_vm._l((_vm.helpDeskSubjects),function(option){return _c('option',{key:option.value,domProps:{\"value\":option.value}},[_vm._v(\" \"+_vm._s(option.label)+\" \")])}),0)],1)],1),_c('div',{staticClass:\"is-12 pt-5\"},[_c('valid-input',{staticClass:\"is-small\",staticStyle:{\"width\":\"50px !important\"},attrs:{\"disabled\":_vm.setReadOnly,\"name\":\"Message\",\"label\":\"Message\",\"type\":\"textarea\",\"vid\":\"Message\",\"placeholder\":\"Message\",\"spellcheck\":\"true\",\"aria-label\":\"Message\",\"rules\":\"required|max:8000\"},model:{value:(_vm.formData.message),callback:function ($$v) {_vm.$set(_vm.formData, \"message\", $$v)},expression:\"formData.message\"}})],1),(_vm.setReadOnly === false)?_c('div',{staticClass:\"pb-3 pt-6\"},[_c('button',{staticClass:\"button is-primary is-rounded\",attrs:{\"type\":\"submit\",\"disabled\":_vm.loading}},[_vm._v(\" Submit \")])]):_c('div',{staticClass:\"pt-5 font-bold\"},[_vm._v(\" Support request has been successfully submitted. \")])]),_c('fieldset',[_c('ValidationProvider',{attrs:{\"vid\":\"providerErrors\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('div',{staticClass:\"field\"},[_c('span',[_vm._v(_vm._s(errors[0]))])])]}}],null,true)})],1)])])]}}])})],1)])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export const data = () => ({\r\n isDebug: true,\r\n loading: false,\r\n helpDeskSubjects: [],\r\n setReadOnly: false,\r\n formData: {\r\n helpDeskSubjectID: 0,\r\n message: null\r\n },\r\n\r\n styles: {\r\n dateSelector: {\r\n display: 'flex',\r\n padding: '12px',\r\n textAlign: 'center',\r\n verticalAlign: 'middle',\r\n flexWrap: 'wrap',\r\n alignItems: 'center',\r\n justifyContent: 'flex-end'\r\n },\r\n filterButton: {\r\n float: 'right',\r\n marginTop: '4px'\r\n }\r\n }\r\n})\r\n","/*\r\n import { helpDeskStore } from '@/services/HelpDesk/store'\r\n*/\r\n\r\nimport Vue from 'vue'\r\nimport Vuex from 'vuex'\r\nimport { notifyError, notifyMessage } from '@/services/notify'\r\nimport kms from '@/services/kms'\r\n\r\nconst isDebug = true\r\n\r\n/* eslint-disable no-empty-pattern */\r\nconst actions = {\r\n async getHelpDeskSupportList({}) {\r\n console.log('in getHelpDeskSupportList...')\r\n try {\r\n let path = `/HelpDesks/HelpDeskSubject/List`\r\n\r\n const results = await kms.get(path)\r\n\r\n if (isDebug == true) console.debug('getHelpDeskSupportList log=' + JSON.stringify(results))\r\n\r\n return {\r\n list: results.results\r\n }\r\n } catch (exception) {\r\n notifyError(`The help desk support list could not be retrieved.`)\r\n console.error(exception)\r\n }\r\n\r\n return {\r\n list: []\r\n }\r\n },\r\n\r\n async addHelpDesk({ dispatch }, { payload, done }) {\r\n if (isDebug == true) console.debug('...in addHelpDesk')\r\n try {\r\n const results = await kms.post(`/HelpDesks/HelpDesk`, {\r\n helpDeskSubjectID: payload.helpDeskSubjectID,\r\n message: payload.message,\r\n hoaID: payload.hoaID,\r\n unitID: payload.unitID,\r\n vendorUserID: payload.vendorUserID,\r\n aspNetUserID: payload.aspNetUserID\r\n })\r\n\r\n if (this.isDebug == true) console.debug('results=' + JSON.stringify(results))\r\n\r\n if (dispatch && dispatch != undefined) console.debug(dispatch)\r\n\r\n if (results.helpDeskID > 0) {\r\n notifyMessage(`Successfully submitted your customer support message.`)\r\n done({ result: results.helpDeskID })\r\n } else {\r\n notifyError('There was a problem adding this customer support message.')\r\n }\r\n } catch (exception) {\r\n notifyError(`There was a problem adding this customer support message.`)\r\n console.error(exception)\r\n }\r\n }\r\n}\r\n/* eslint-enable no-empty-pattern */\r\n\r\nVue.use(Vuex)\r\nexport const helpDeskStore = new Vuex.Store({\r\n state: {},\r\n mutations: {},\r\n getters: {},\r\n actions\r\n})\r\n","import { helpDeskStore } from '@/services/HelpDesk/store'\r\nimport { notifyError } from '@/services/notify'\r\nimport _get from 'lodash/get'\r\n\r\nexport const methods = {\r\n async reload() {\r\n console.debug('in reload...')\r\n\r\n await this.loadHelpDeskSubjects()\r\n },\r\n\r\n async loadHelpDeskSubjects() {\r\n if (this.isDebug == true) console.debug('in loadMessageTypes()...')\r\n await helpDeskStore.dispatch('getHelpDeskSupportList', {}).then(({ list }) => {\r\n this.helpDeskSubjects = list.map(a => ({\r\n value: a.helpDeskSubjectID,\r\n label: `${a.name}`\r\n }))\r\n })\r\n },\r\n\r\n async onFormSubmit() {\r\n if (!this.formData || this.formData == undefined) {\r\n notifyError('There was a problem submitting your message to customer support.')\r\n return\r\n }\r\n\r\n this.loading = true\r\n\r\n const payload = {\r\n helpDeskSubjectID: this.formData.helpDeskSubjectID,\r\n message: this.formData.message,\r\n hoaID: this.currentHoaId !== undefined && this.currentHoaId ? this.currentHoaId : null,\r\n unitID: this.currentUnitId !== undefined && this.currentUnitId ? this.currentUnitId : null,\r\n vendorUserID: _get(this.authUser, 'vendorUserID', null),\r\n aspNetUserID: 'stub'\r\n }\r\n\r\n console.debug('customer support payload=' + JSON.stringify(payload))\r\n\r\n try {\r\n await helpDeskStore.dispatch('addHelpDesk', {\r\n payload: payload,\r\n done: ({ result }) => {\r\n if (result) {\r\n this.setReadOnly = true\r\n }\r\n }\r\n })\r\n } catch (e) {\r\n notifyError('There was a problem with your custoer support submittal.' + e.message)\r\n }\r\n\r\n this.loading = false\r\n }\r\n}\r\n","\r\n \r\n \r\n \r\n {{ $t('helpDesk.title') }}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{ option.label }}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Submit\r\n \r\n \r\n \r\n Support request has been successfully submitted.\r\n \r\n \r\n \r\n \r\n \r\n {{ errors[0] }}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=b23b7d7c&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\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":""}