{"version":3,"sources":["webpack:///./src/utilities/address/parse.js","webpack:///./src/pages/Homeowner/directoryContact/List.vue?51ed","webpack:///./src/pages/Homeowner/directoryContact/component/Linked.vue?c0a2","webpack:///src/pages/Homeowner/directoryContact/component/Linked.vue","webpack:///./src/pages/Homeowner/directoryContact/component/Linked.vue?d4fa","webpack:///./src/pages/Homeowner/directoryContact/component/Linked.vue","webpack:///./src/pages/Homeowner/directoryContact/keys/methods.js","webpack:///./src/pages/Homeowner/directoryContact/keys/data.js","webpack:///./src/pages/Homeowner/directoryContact/keys/computed.js","webpack:///./src/pages/Homeowner/directoryContact/keys/watch.js","webpack:///src/pages/Homeowner/directoryContact/List.vue","webpack:///./src/pages/Homeowner/directoryContact/List.vue?4ef3","webpack:///./src/pages/Homeowner/directoryContact/List.vue","webpack:///./src/services/HomeownerDirectoryContact/store.js"],"names":["address","isForeign","_get","_address","addressTwo","addressThree","addressFour","addressFive","length","addressLine1","addressLine2","city","state","postalCode","zip","render","_vm","this","_h","$createElement","_c","_self","attrs","staticClass","_v","_s","$t","region","filters","rows","columns","perPage","loading","scopedSlots","_u","key","fn","style","width","height","class","show","float","background","border","on","$event","staticStyle","proxy","staticRenderFns","domProps","text","props","component","methods","determineRows","list","Array","isArray","map","entry","parsedAddress","parseAddress","displayName","phone1","phone2","phone","emailAddress1","emailAddress2","email","emails","Linked","phones","loadDirectoryContacts","currentOwnerId","params","ownerID","retrieveAllForHoaShared","isDebug","console","debug","homeownerDirectoryContact","dispatch","then","reload","data","toggle","directoryContactList","formatDateFn","value","moment","format","field","label","aria","sortable","searchable","styles","dateSelector","display","padding","textAlign","verticalAlign","flexWrap","alignItems","justifyContent","filterButton","marginTop","computed","mapGetters","watch","Modal","undefined","$emit","name","components","PageContentLayoutOnly","ModernTable","mounted","i18n","messages","en","actions","getDirectoryContactList","log","kms","get","result","JSON","stringify","results","notifyProblem","error","getDirectoryContactById","directoryContactID","directoryContact","updateDirectoryContact","payload","done","put","homeownerDirectoryContactID","notifyMess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BAEzCb,OAAIc,IAAJ,oCAA6CF,GAFJ,OAEzDP,EAFyD,OAI3C,GAAhB,EAAKpD,SAAiBC,QAAQC,MAAM,WAAagD,KAAKC,UAAUC,IAEhEhD,QAAwB8B,GAAZ9B,GAAuBH,QAAQC,MAAME,GAEjDgD,EAAQU,4BAA8B,GACxCC,eAAc,+CACdH,KAEAI,eAAY,wDAZiD,qDAe/DX,eACE,wEAA0E,KAAUY,SAEtFhE,QAAQqD,MAAR,MAlB+D,6DAuB7DY,oBA9EQ,cAiFZ,uLAFE9D,EAEF,EAFEA,SACAN,EACF,EADEA,QAASb,EACX,EADWA,YAAaC,EACxB,EADwBA,OAAQC,EAChC,EADgCA,OAAQE,EACxC,EADwCA,cAAeC,EACvD,EADuDA,cAAe6E,EACtE,EADsEA,UAAWP,EACjF,EADiFA,KAElE,GAAX5D,GAAiBC,QAAQC,MAAM,+BADnC,kBAGwB6C,OAAIqB,KAAJ,oCAA8C,CAClEtE,UACAb,cACAC,SACAC,SACAE,gBACAC,gBACA6E,cAVJ,OAGQf,EAHR,OAasB,GAAhB,EAAKpD,SAAiBC,QAAQC,MAAM,WAAagD,KAAKC,UAAUC,IAEhEhD,QAAwB8B,GAAZ9B,GAAuBH,QAAQC,MAAME,GAEjDgD,EAAQU,4BAA8B,GACxCC,eAAc,6CACdH,EAAK,CAAES,QAASjB,KAEhBY,eAAY,sDArBhB,qDAwBEX,eAAc,sDACdpD,QAAQqD,MAAR,MAzBF,8DA+BJgB,OAAIC,IAAIC,QACD,IAAMrE,EAA4B,IAAIqE,OAAKC,MAAM,CACtD3I,MAAO,GACP4I,UAAW,GACXC,QAAS,GACT/B","file":"js/directoryContact.2951428c.js","sourcesContent":["/*\r\n Example:\r\n import parseAddress from '@/utilities/address/parse'\r\n\r\n const parsedAddress = parseAddress ({\r\n address: {\r\n addressOne\r\n addressTwo\r\n\r\n foreignAddress\r\n\r\n // foreign address fields\r\n addressThree\r\n addressFour\r\n addressFive\r\n\r\n // USA address fields\r\n city\r\n state\r\n postalCode\r\n }\r\n })\r\n*/\r\n\r\nimport _get from 'lodash/get'\r\n\r\nexport default ({ address }) => {\r\n if (typeof address !== 'object' || address === null) {\r\n // console.error('address/parse can only parse addresses that are iterable objects, got', address)\r\n return ''\r\n }\r\n\r\n /*\r\n false -> USA Address\r\n addressOne\r\n addressTwo (if non-empty)\r\n city, state postalCode\r\n\r\n true -> foreign\r\n addressOne\r\n addressTwo\r\n addressThree\r\n addressFour (if non-empty)\r\n addressFive (if non-empty)\r\n */\r\n var isForeign = _get(address, 'foreignAddress', false)\r\n\r\n if (!isForeign) {\r\n let _address = _get(address, 'addressOne', '')\r\n\r\n if (_address && _address.length > 0) {\r\n _address += ','\r\n }\r\n\r\n const addressTwo = _get(address, 'addressTwo', null)\r\n if (typeof addressTwo === 'string' && addressTwo.length > 0) {\r\n _address += ' ' + addressTwo\r\n }\r\n\r\n const addressLine1 = _get(address, 'addressLine1', '')\r\n if (typeof addressLine1 === 'string' && addressLine1.length > 0) {\r\n _address += ' ' + addressLine1 + ','\r\n }\r\n\r\n const addressLine2 = _get(address, 'addressLine2', '')\r\n if (typeof addressLine2 === 'string' && addressLine2.length > 0) {\r\n _address += ' ' + addressLine2\r\n }\r\n\r\n const city = _get(address, 'city', null)\r\n if (typeof city === 'string') {\r\n _address += ' ' + city + ','\r\n }\r\n\r\n const state = _get(address, 'state', null)\r\n if (typeof state === 'string') {\r\n _address += ' ' + state\r\n }\r\n\r\n const postalCode = _get(address, 'postalCode', null)\r\n if (typeof postalCode === 'string') {\r\n _address += ' ' + postalCode\r\n }\r\n\r\n const zip = _get(address, 'zip', null)\r\n if (typeof zip === 'string') {\r\n _address += ' ' + zip\r\n }\r\n\r\n return _address\r\n } else {\r\n let _address = _get(address, 'addressOne', '')\r\n const addressTwo = _get(address, 'addressTwo', '')\r\n const addressThree = _get(address, 'addressThree', '')\r\n const addressFour = _get(address, 'addressFour', '')\r\n const addressFive = _get(address, 'addressFive', '')\r\n\r\n if (typeof addressTwo === 'string' && addressTwo.length > 0) {\r\n _address += ' ' + addressTwo\r\n }\r\n if (typeof addressThree === 'string' && addressThree.length > 0) {\r\n _address += ' ' + addressThree\r\n }\r\n if (typeof addressFour === 'string' && addressFour.length > 0) {\r\n _address += ' ' + addressFour\r\n }\r\n if (typeof addressFive === 'string' && addressFive.length > 0) {\r\n _address += ' ' + addressFive\r\n }\r\n\r\n return _address\r\n }\r\n}\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('PageContentLayoutOnly',{attrs:{\"role\":\"region\"}},[_c('div',{staticClass:\"level-left level-item title\"},[_vm._v(_vm._s(_vm.$t('directoryContact.title')))]),_c('ModernTable',{attrs:{\"region\":_vm.region,\"filters\":_vm.filters,\"rows\":_vm.rows,\"columns\":_vm.columns,\"pagination\":{\n perPage: 12\n },\"loading\":_vm.loading,\"headerColor\":\"#FFF\",\"condensed\":\"\"},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_c('div',{style:({ width: '100%', height: '60px' })},[_c('b-button',{class:'filter-button ' + (_vm.filters.show ? 'active' : ''),style:({ float: 'right', background: 'none', border: 0 }),attrs:{\"type\":\"is-ghost\"},on:{\"click\":function($event){_vm.filters.show = !_vm.filters.show}}},[_c('b-icon',{staticStyle:{\"display\":\"inline-block\"},attrs:{\"pack\":\"mdi\",\"icon\":\"filter-outline\",\"size\":\"is-small\"}}),_c('div',{staticStyle:{\"display\":\"inline-block\"}},[_vm._v(\"Filter\")])],1)],1)]},proxy:true}])})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{domProps:{\"innerHTML\":_vm._s(_vm.text)}})}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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!./Linked.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!./Linked.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Linked.vue?vue&type=template&id=2a12fab6&\"\nimport script from \"./Linked.vue?vue&type=script&lang=js&\"\nexport * from \"./Linked.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","import _get from 'lodash/get'\r\nimport Linked from './../component/Linked'\r\nimport parseAddress from '@/utilities/address/parse'\r\nimport { homeownerDirectoryContact } from '@/services/HomeownerDirectoryContact/store'\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 parsedAddress = parseAddress({\r\n address: _get(entry, 'address', null)\r\n })\r\n\r\n const displayName = _get(entry, 'displayName', '')\r\n const phone1 = _get(entry, 'phone1', '')\r\n const phone2 = _get(entry, 'phone2', '')\r\n let phone = ``\r\n if (phone1 && phone2)\r\n phone = `${phone1}, ${phone2}`\r\n if (phone2 && !phone1)\r\n phone = `${phone2}`\r\n if (phone1 && !phone2)\r\n phone = `${phone1}`\r\n\r\n const emailAddress1 = _get(entry, 'emailAddress1', '')\r\n const emailAddress2 = _get(entry, 'emailAddress2', '')\r\n let email = ``\r\n if (emailAddress2 && emailAddress1)\r\n email = `${emailAddress1}, ${emailAddress2}`\r\n if (emailAddress2 && !emailAddress1)\r\n email = `${emailAddress2}`\r\n if (emailAddress1 && !emailAddress2)\r\n email = `${emailAddress1}`\r\n\r\n return {\r\n displayName: displayName,\r\n address: parsedAddress,\r\n emails: {\r\n component: Linked,\r\n props: {\r\n text: email\r\n }\r\n },\r\n phones: {\r\n component: Linked,\r\n props: {\r\n text: phone\r\n }\r\n }\r\n }\r\n })\r\n\r\n this.rows = rows\r\n },\r\n\r\n async loadDirectoryContacts() {\r\n if (this.currentOwnerId && this.currentOwnerId > 0) {\r\n const params = {\r\n ownerID: this.currentOwnerId,\r\n retrieveAllForHoaShared: true\r\n }\r\n\r\n if (this.isDebug == true) console.debug('in loadDirectoryContacts()...')\r\n await homeownerDirectoryContact\r\n .dispatch('getDirectoryContactList', {\r\n params\r\n })\r\n .then(({ list }) => {\r\n this.determineRows(list)\r\n })\r\n }\r\n },\r\n\r\n reload() {\r\n this.loading = true\r\n\r\n this.rows = []\r\n this.loadDirectoryContacts()\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 toggle: false,\r\n directoryContactList: [],\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: 'displayName',\r\n label: 'Name',\r\n aria: 'Name',\r\n width: '20%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'address',\r\n label: 'Address',\r\n aria: 'Address',\r\n width: '30%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'email',\r\n label: 'E-mail',\r\n aria: 'E-mail',\r\n width: '30%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'phone',\r\n label: 'Phone',\r\n aria: 'Phone',\r\n width: '30%',\r\n sortable: true,\r\n searchable: true\r\n }\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","import { mapGetters } from 'vuex'\r\n\r\nexport const computed = {\r\n ...mapGetters('user', ['currentHoaId', 'currentUnitId', 'currentOwnerId'])\r\n}\r\n","export const watch = {\r\n currentOwnerId(ownerID) {\r\n console.debug(ownerID)\r\n this.reload()\r\n },\r\n toggle() {\r\n if (this.toggle == false) {\r\n this.reload()\r\n this.toggle = false\r\n if (this.Modal && this.Modal != undefined) {\r\n this.Modal.$emit('update:toggle', (this.toggle = false))\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=58bc2ab4&\"\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","/*\r\n\timport { homeownerDirectoryContact } from '@/services/HomeownerDirectoryContact/store';\r\n*/\r\n\r\nimport Vue from 'vue'\r\nimport Vuex from 'vuex'\r\nimport kms from '@/services/kms'\r\nimport { notifyProblem, notifyMessage, notifyError } from '@/services/notify'\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 homeownerDirectoryContact.dispatch ('getDirectoryContactList', {\r\n hoaId\r\n });\r\n */\r\n\r\n //Homeowner Directory Contact List\r\n async getDirectoryContactList({}, { params }) {\r\n console.log('in getDirectoryContactList...')\r\n try {\r\n const result = await kms.get('/Roster/HomeownerDirectoryContact/List', {\r\n params\r\n })\r\n\r\n if (isDebug == true) console.debug('getDirectoryContactList log=' + JSON.stringify(result))\r\n\r\n return {\r\n list: result.results\r\n }\r\n } catch (exception) {\r\n notifyProblem(`The directory contact 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 //Get by Id\r\n async getDirectoryContactById({}, { directoryContactID }) {\r\n try {\r\n console.debug('in getDirectoryContactById...')\r\n const directoryContact = await kms.get(\r\n `/Roster/HomeownerDirectoryContact/${directoryContactID}`\r\n )\r\n\r\n if (isDebug == true)\r\n console.debug('getDirectoryContactById=' + JSON.stringify(directoryContact))\r\n\r\n return {\r\n result: directoryContact\r\n }\r\n } catch (exception) {\r\n notifyProblem(`There was a problem retrieving the directory contact.`)\r\n console.error(exception)\r\n }\r\n\r\n return {\r\n result: {}\r\n }\r\n },\r\n\r\n // Update Directory Contact\r\n async updateDirectoryContact({ dispatch }, { payload = {}, done }) {\r\n try {\r\n const results = await kms.put(`/Roster/HomeownerDirectoryContact`, 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.homeownerDirectoryContactID > 0) {\r\n notifyMessage(`Successfully updated the directory contact.`)\r\n done()\r\n } else {\r\n notifyError('There was a problem updating this directory contact.')\r\n }\r\n } catch (exception) {\r\n notifyProblem(\r\n `There was a problem processing the update for this directory contact.` + exception.message\r\n )\r\n console.error(exception)\r\n }\r\n },\r\n\r\n // Add Directory Contact\r\n async addDirectoryContact(\r\n { dispatch },\r\n { ownerID, displayName, phone1, phone2, emailAddress1, emailAddress2, isSharing, done }\r\n ) {\r\n if (isDebug == true) console.debug('...in addOwnerPaymentMethod')\r\n try {\r\n const results = await kms.post(`/Roster/HomeownerDirectoryContact`, {\r\n ownerID,\r\n displayName,\r\n phone1,\r\n phone2,\r\n emailAddress1,\r\n emailAddress2,\r\n isSharing\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.homeownerDirectoryContactID > 0) {\r\n notifyMessage(`Successfully added the directory contact.`)\r\n done({ details: results })\r\n } else {\r\n notifyError('There was a problem adding this directory contact.')\r\n }\r\n } catch (exception) {\r\n notifyProblem(`There was a problem adding this directory contact.`)\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 homeownerDirectoryContact = new Vuex.Store({\r\n state: {},\r\n mutations: {},\r\n getters: {},\r\n actions\r\n})\r\n"],"sourceRoot":""}