{"version":3,"sources":["webpack:///./src/pages/Homeowner/communityCenter/tabs/frequentlyAskedQuestions/List.vue?80cc","webpack:///./src/pages/Shared/frequentlyAskedQuestions/View.vue?96e0","webpack:///./src/services/FrequentlyAskedQuestions/store.js","webpack:///./src/pages/Shared/frequentlyAskedQuestions/keys/methods.js","webpack:///./src/pages/Shared/frequentlyAskedQuestions/keys/data.js","webpack:///src/pages/Shared/frequentlyAskedQuestions/View.vue","webpack:///./src/pages/Shared/frequentlyAskedQuestions/View.vue?1eea","webpack:///./src/pages/Shared/frequentlyAskedQuestions/View.vue","webpack:///./src/pages/Homeowner/communityCenter/tabs/frequentlyAskedQuestions/keys/methods.js","webpack:///./src/pages/Homeowner/communityCenter/tabs/frequentlyAskedQuestions/keys/data.js","webpack:///src/pages/Homeowner/communityCenter/tabs/frequentlyAskedQuestions/List.vue","webpack:///./src/pages/Homeowner/communityCenter/tabs/frequentlyAskedQuestions/List.vue?aea7","webpack:///./src/pages/Homeowner/communityCenter/tabs/frequentlyAskedQuestions/List.vue","webpack:///./src/components/buttons/Button/index.vue?c8d3","webpack:///src/components/buttons/Button/index.vue","webpack:///./src/components/buttons/Button/index.vue?18df","webpack:///./src/components/buttons/Button/index.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","parseInt","frequentlyAskedQuestionID","staticRenderFns","_l","c","index","key","staticStyle","question","answer","on","$event","preventDefault","processPlus","class","toggleIndex","togglePlus","staticClass","_v","_s","_e","isDebug","actions","getFrequentlyAskedQuestionList","hoaID","console","log","kms","get","results","debug","JSON","stringify","list","notifyProblem","error","deleteFrequentlyAskedQuestions","dispatch","done","path","delete","undefined","notifyMessage","notifyError","addFrequentlyAskedQuestion","payload","post","sortOrder","details","updateFrequentlyAskedQuestion","put","Vue","use","Vuex","frequentlyAskedQuestionStore","Store","state","mutations","getters","methods","determineRows","Array","isArray","rows","map","entry","dateFormat","faqId","_get","createdDate","date","moment","format","exception","component","Button","props","onClick","processEdit","text","erase","confirmDelete","id","$buefy","dialog","confirm","title","message","confirmText","type","hasIcon","onConfirm","deleteFaq","reload","newFrequentlyAskedQuestion","$router","push","loadFrequentlyAskedQuestions","currentHoaId","hoaId","then","selectedFaq","toggle","FAQ","loading","data","showFilters","frequentlyAskedQuestions","formatDateFn","value","filters","show","region","columns","field","label","aria","width","sortable","searchable","styles","filterButton","float","marginTop","name","components","PageContentLayoutOnly","computed","watch","Modal","$emit","mounted","i18n","messages","en","ViewFrequentlyAskedQuestions","visible","isprimary","tooltip","disabled","apply","arguments"],"mappings":"mJAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,+BAA+B,CAACE,MAAM,CAAC,0BAA4BC,SAASP,EAAIQ,+BAC/KC,EAAkB,G,wBCDlB,EAAS,WAAa,IAAIT,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,wBAAwB,CAACE,MAAM,CAAC,KAAO,WAAWN,EAAIU,GAAIV,EAAQ,MAAE,SAASW,EAAEC,GAAO,OAAOR,EAAG,MAAM,CAACS,IAAID,EAAME,YAAY,CAAC,iBAAiB,SAAS,CAAEH,EAAEI,UAAYJ,EAAEK,OAAQZ,EAAG,MAAM,CAACA,EAAG,MAAM,CAACa,GAAG,CAAC,MAAQ,SAASC,GAAgC,OAAxBA,EAAOC,iBAAwBnB,EAAIoB,YAAYR,MAAU,CAACR,EAAG,IAAI,CAACiB,MAAO,IAAMrB,EAAIsB,cAAgBV,EAAQZ,EAAIuB,WAAa,qBAAsBnB,EAAG,OAAO,CAACoB,YAAY,gBAAgBV,YAAY,CAAC,MAAQ,UAAU,CAACd,EAAIyB,GAAGzB,EAAI0B,GAAKd,EAAQ,EAAK,MAAOZ,EAAI0B,GAAGf,EAAEI,UAAY,SAA6B,qBAAnBf,EAAIuB,YAAqCvB,EAAIsB,cAAgBV,EAA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BuH,OAAQ,CACNC,aAAc,CACZC,MAAO,QACPC,UAAW,UCIjB,GACEC,KAAM,oCAENC,WAAY,CACVU,6BAAJ,GAGE9B,KAAF,EACE9C,QAAF,EAEEoE,SAAU,OAAZ,OAAY,CAAZ,GACA,iCACA,2CAIEC,MAAO,GAEPG,QAlBF,WAmBIzI,KAAKmG,UAGPuC,KAAM,CACJC,SAAU,CACRC,GAAI,CAAV,kECnC0Y,ICOtY,EAAY,eACd,EACA9I,EACAU,GACA,EACA,KACA,KACA,MAIa,e,2CClBf,IAAIV,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAASF,EAAI+I,UAA2B,IAAhB/I,EAAI+I,cAAqC/F,IAAhBhD,EAAI+I,QAAuB3I,EAAG,WAAW,CAACiB,WAAwB2B,IAAlBhD,EAAIgJ,YAA6C,IAAlBhJ,EAAIgJ,UACrN,mDACA,yDAAyD1I,MAAM,CAAC,MAAQN,EAAIiJ,QAAQ,SAAWjJ,EAAIkJ,eAA6BlG,IAAjBhD,EAAIkJ,WAA2C,IAAjBlJ,EAAIkJ,UAAmBjI,GAAG,CAAC,MAAQ,SAASC,GAAgC,OAAxBA,EAAOC,iBAAwBnB,EAAIoF,QAAQ+D,MAAM,KAAMC,cAAc,CAACpJ,EAAIyB,GAAGzB,EAAI0B,GAAG1B,EAAIsF,SAAStF,EAAI2B,MAC1SlB,EAAkB,GCatB,GACE0E,MAAO,CAAC,UAAW,OAAQ,UAAW,WAAY,YAAa,YCjB4S,I,YCOzWF,EAAY,eACd,EACAlF,EACAU,GACA,EACA,KACA,KACA,MAIa,OAAAwE,E","file":"js/communityCenter.frequentlyAskedQuestions.31b10fe3.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ViewFrequentlyAskedQuestions',{attrs:{\"frequentlyAskedQuestionID\":parseInt(_vm.frequentlyAskedQuestionID)}})}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('PageContentLayoutOnly',{attrs:{\"role\":\"region\"}},_vm._l((_vm.rows),function(c,index){return _c('div',{key:index,staticStyle:{\"padding-bottom\":\"10px\"}},[(c.question && c.answer)?_c('div',[_c('div',{on:{\"click\":function($event){$event.preventDefault();return _vm.processPlus(index)}}},[_c('i',{class:(\"\" + (_vm.toggleIndex === index ? _vm.togglePlus : 'icon-pluscircle'))}),_c('span',{staticClass:\"pl-3 subtitle\",staticStyle:{\"color\":\"black\"}},[_vm._v(_vm._s(((index + 1) + \". \"))+_vm._s(c.question || ''))])]),(_vm.togglePlus === 'icon-minuscircle' && _vm.toggleIndex === index)?_c('div',{staticClass:\"pl-6 subtitle\"},[_vm._v(\" \"+_vm._s(c.answer || '')+\" \")]):_vm._e()]):_vm._e()])}),0)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","/*\r\n import { frequentlyAskedQuestionStore } from '@/services/FrequentlyAskedQuestions/store'\r\n*/\r\n\r\nimport Vue from 'vue'\r\nimport Vuex from 'vuex'\r\nimport { notifyProblem, 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 /*\r\n const { list } = await frequentlyAskedQuestionStore.dispatch ('getFrequentlyAskedQuestionList', {\r\n hoaId\r\n });\r\n */\r\n\r\n async getFrequentlyAskedQuestionList({}, { hoaID }) {\r\n console.log('in getFrequentlyAskedQuestionList...' + hoaID)\r\n try {\r\n const results = await kms.get(\r\n `/FrequentlyAskedQuestions/FrequentlyAskedQuestion/List?hoaID=${hoaID}`\r\n )\r\n\r\n if (isDebug == true)\r\n console.debug('getFrequentlyAskedQuestionList log=' + JSON.stringify(results))\r\n\r\n return {\r\n list: results.results\r\n }\r\n } catch (exception) {\r\n notifyProblem(`The FAQ 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 deleteFrequentlyAskedQuestions({ dispatch }, { frequentlyAskedQuestionID, done }) {\r\n try {\r\n const path = `/FrequentlyAskedQuestions/FrequentlyAskedQuestion/${frequentlyAskedQuestionID}?forceDelete=false`\r\n\r\n const results = await kms.delete(path)\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) {\r\n notifyMessage(`Successfully deleted the frequently asked question.`)\r\n done()\r\n } else {\r\n notifyError('There was a problem deleting the frequently asked question.')\r\n }\r\n } catch (exception) {\r\n notifyProblem(`There was a problem deleting the frequently asked question.`)\r\n console.error(exception)\r\n }\r\n },\r\n\r\n async addFrequentlyAskedQuestion({ dispatch }, { payload, done }) {\r\n if (isDebug == true) console.debug('...in addFrequentlyAskedQuestion')\r\n try {\r\n const results = await kms.post(`/FrequentlyAskedQuestions/FrequentlyAskedQuestion`, {\r\n hoaID: payload.hoaID,\r\n question: payload.question,\r\n answer: payload.answer,\r\n sortOrder: payload.sortOrder\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.frequentlyAskedQuestionID > 0) {\r\n notifyMessage(`Successfully added the frequently asked question.`)\r\n done({ details: results })\r\n } else {\r\n notifyError('There was a problem adding this frequently asked question.')\r\n }\r\n } catch (exception) {\r\n notifyError(`There was a problem adding this frequently asked question.`)\r\n console.error(exception)\r\n }\r\n },\r\n\r\n async updateFrequentlyAskedQuestion({ dispatch }, { payload = {}, done }) {\r\n try {\r\n const results = await kms.put(`/FrequentlyAskedQuestions/FrequentlyAskedQuestion`, payload)\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.frequentlyAskedQuestionID > 0) {\r\n notifyMessage(`Successfully updated this frequently asked question.`)\r\n done({ details: results })\r\n } else {\r\n notifyError('There was a problem updating this frequently asked question.')\r\n }\r\n } catch (exception) {\r\n notifyError(`There was a problem processing the update for this frequently asked question.`)\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 frequentlyAskedQuestionStore = new Vuex.Store({\r\n state: {},\r\n mutations: {},\r\n getters: {},\r\n actions\r\n})\r\n","import Button from '@/components/buttons/Button'\r\nimport _get from 'lodash/get'\r\nimport { frequentlyAskedQuestionStore } from '@/services/FrequentlyAskedQuestions/store'\r\nimport moment from 'moment'\r\n\r\nexport const methods = {\r\n determineRows: function(list) {\r\n if (!Array.isArray(list)) {\r\n return\r\n }\r\n\r\n var rows = list.map(entry => {\r\n const dateFormat = 'LL'\r\n const faqId = _get(entry, 'frequentlyAskedQuestionID', 0)\r\n const question = _get(entry, 'question', '')\r\n const answer = _get(entry, 'answer', '')\r\n let createdDate = _get(entry, ['createdDate'], '')\r\n let date = createdDate\r\n\r\n try {\r\n date = moment(createdDate).format(dateFormat)\r\n } catch (exception) {\r\n console.error(exception)\r\n }\r\n\r\n return {\r\n question,\r\n answer,\r\n createdDate: {\r\n date,\r\n format: dateFormat\r\n },\r\n details: {\r\n component: Button,\r\n props: {\r\n onClick: () => {\r\n this.processEdit(entry)\r\n },\r\n text: 'Edit'\r\n }\r\n },\r\n erase: {\r\n component: Button,\r\n props: {\r\n onClick: () => {\r\n this.confirmDelete(question, faqId)\r\n },\r\n text: 'Delete'\r\n }\r\n }\r\n }\r\n })\r\n\r\n this.rows = rows\r\n },\r\n\r\n confirmDelete(question, id) {\r\n this.$buefy.dialog.confirm({\r\n title: 'Deleting FAQ',\r\n message: `Are you sure you want to delete this frequently asked question, '${question}'?`,\r\n confirmText: 'Delete Question',\r\n type: 'is-danger',\r\n hasIcon: true,\r\n onConfirm: () => this.deleteFaq(id)\r\n })\r\n },\r\n\r\n async deleteFaq(id) {\r\n console.debug('deleteFaq...')\r\n await frequentlyAskedQuestionStore.dispatch('deleteFrequentlyAskedQuestions', {\r\n frequentlyAskedQuestionID: id,\r\n done: async () => {\r\n this.reload()\r\n }\r\n })\r\n },\r\n\r\n processPlus(index) {\r\n this.toggleIndex = index\r\n if (this.togglePlus === 'icon-pluscircle') {\r\n this.togglePlus = 'icon-minuscircle'\r\n } else {\r\n this.togglePlus = 'icon-pluscircle'\r\n }\r\n },\r\n\r\n newFrequentlyAskedQuestion() {\r\n this.$router.push('/newFrequentlyAskedQuestion')\r\n },\r\n\r\n async loadFrequentlyAskedQuestions() {\r\n console.debug('in loadFrequentlyAskedQuestions()...' + this.currentHoaId || this.hoaId)\r\n\r\n await frequentlyAskedQuestionStore\r\n .dispatch('getFrequentlyAskedQuestionList', {\r\n hoaID: this.currentHoaId || this.hoaId\r\n })\r\n .then(({ list }) => {\r\n if (list) {\r\n this.determineRows(list)\r\n }\r\n })\r\n },\r\n\r\n addFrequentlyAskedQuestion() {\r\n console.debug('add addFrequentlyAskedQuestion...')\r\n this.selectedFaq = null\r\n this.toggle = true\r\n },\r\n\r\n processEdit(FAQ) {\r\n if (FAQ) {\r\n this.selectedFaq = FAQ\r\n this.toggle = true\r\n }\r\n },\r\n\r\n async reload() {\r\n this.loading = true\r\n\r\n this.rows = []\r\n await this.loadFrequentlyAskedQuestions()\r\n\r\n this.loading = false\r\n }\r\n}\r\n","import moment from 'moment'\r\n\r\nexport const data = () => ({\r\n isDebug: true,\r\n loading: false,\r\n showFilters: false,\r\n selectedFaq: null,\r\n toggle: false,\r\n togglePlus: 'icon-pluscircle',\r\n toggleIndex: 0,\r\n frequentlyAskedQuestions: [],\r\n frequentlyAskedQuestionID: 0,\r\n formatDateFn: function(value) {\r\n return value != null ? moment(value, 'YYYY/MM/DD HH:mm:ss').format('MM-DD-YYYY') : ''\r\n },\r\n\r\n filters: {\r\n show: false\r\n },\r\n\r\n region: {},\r\n\r\n rows: [],\r\n\r\n columns: [\r\n {\r\n field: 'question',\r\n label: 'Question',\r\n aria: 'Question',\r\n width: '40%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'answer',\r\n label: 'Answer',\r\n aria: 'Answer',\r\n width: '40%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'createdDate',\r\n label: 'Created',\r\n width: '20%',\r\n date: true,\r\n sortable: true,\r\n searchable: true\r\n }\r\n ],\r\n\r\n styles: {\r\n filterButton: {\r\n float: 'right',\r\n marginTop: '4px'\r\n }\r\n }\r\n})\r\n","\r\n \r\n \r\n \r\n \r\n {{ `${index + 1}. ` }}{{ c.question || '' }}\r\n \r\n \r\n {{ c.answer || '' }}\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!./View.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!./View.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./View.vue?vue&type=template&id=e708659c&\"\nimport script from \"./View.vue?vue&type=script&lang=js&\"\nexport * from \"./View.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","export const methods = {\r\n async reload() {\r\n this.loading = true\r\n\r\n this.loading = false\r\n }\r\n}\r\n","export const data = () => ({\r\n isDebug: true,\r\n loading: false,\r\n frequentlyAskedQuestionID: 0,\r\n styles: {\r\n filterButton: {\r\n float: 'right',\r\n marginTop: '4px'\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!./List.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!./List.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./List.vue?vue&type=template&id=642365ac&\"\nimport script from \"./List.vue?vue&type=script&lang=js&\"\nexport * from \"./List.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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return ((_vm.visible && _vm.visible === true) || _vm.visible === undefined)?_c('b-button',{class:_vm.isprimary !== undefined && _vm.isprimary === true\n ? 'button is-primary is-small is-outline is-rounded'\n : 'button is-info is-light is-small is-outline is-rounded',attrs:{\"title\":_vm.tooltip,\"disabled\":_vm.disabled && _vm.disabled !== undefined && _vm.disabled === true},on:{\"click\":function($event){$event.preventDefault();return _vm.onClick.apply(null, arguments)}}},[_vm._v(_vm._s(_vm.text))]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n {{ text }}\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=036d99d6&\"\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":""}