{"version":3,"sources":["webpack:///./src/utilities/Date/parse.js","webpack:///./src/pages/Management/units/tabs/Notes/Main.vue?ad1f","webpack:///./src/pages/Management/units/tabs/Notes/Main.vue?eaac","webpack:///./src/pages/Management/units/tabs/Notes/keys/data.js","webpack:///./src/pages/Management/units/tabs/Notes/keys/methods.js","webpack:///./src/pages/Management/units/tabs/Notes/components/OwnerNoteActions.vue?d08c","webpack:///src/pages/Management/units/tabs/Notes/components/OwnerNoteActions.vue","webpack:///./src/pages/Management/units/tabs/Notes/components/OwnerNoteActions.vue?8589","webpack:///./src/pages/Management/units/tabs/Notes/components/OwnerNoteActions.vue","webpack:///./src/pages/Management/units/tabs/Notes/components/UnitNoteActions.vue?d738","webpack:///src/pages/Management/units/tabs/Notes/components/UnitNoteActions.vue","webpack:///./src/pages/Management/units/tabs/Notes/components/UnitNoteActions.vue?0c21","webpack:///./src/pages/Management/units/tabs/Notes/components/UnitNoteActions.vue","webpack:///./src/pages/Management/units/tabs/Notes/keys/watch.js","webpack:///src/pages/Management/units/tabs/Notes/Main.vue","webpack:///./src/pages/Management/units/tabs/Notes/Main.vue?0834","webpack:///./src/pages/Management/units/tabs/Notes/Main.vue"],"names":["parseDate","date","format","console","debug","parsed","moment","isValid","exception","message","error","render","_vm","this","_h","$createElement","_c","_self","attrs","$t","staticClass","_v","style","marginBottom","on","$event","openUnitNoteModal","unitNotesTable","region","filters","rows","columns","perPage","openOwnerNoteModal","ownerNotesTable","unitNotesModal","ref","staticStyle","model","value","callback","$$v","selectedNote","expression","action","float","preventDefault","addUnitNote","_e","updateUnitNote","selectedID","scopedSlots","_u","key","fn","errors","_s","ownerNotesModal","handleSubmit","onFormSubmit","updateOwnerNote","staticRenderFns","data","loading","confirmModal","formatDateFn","formatFn","formatNumberFn","selectedRow","unitNoteList","ownerNoteList","unitID","ownerID","formShow","hasPermission","show","field","label","aria","width","sortable","searchable","methods","confirmUnitNoteDelete","note","id","$buefy","dialog","confirm","title","confirmText","type","hasIcon","onConfirm","deleteUnitNote","confirmOwnerNoteDelete","deleteOwnerNote","reload","getRefreshedUnitNotes","getRefreshedOwnerNotes","loadAddNote","loadUpdateNote","initButtons","kms","get","params","$route","results","orderBy","isDebug","JSON","stringify","notifyError","undefined","payload","path","post","unitNoteID","notifyMessage","notifyProblem","forceDelete","delete","recordID","formComplete","put","ownerNoteID","addOwnerNote","props","hasMatchingAspNetUser","Boolean","Function","String","Number","component","watch","hoaId","dateFormat","_get","Array","isArray","map","noteText","author","modificationDate","actions","OwnerNoteActions","_note","_id","UnitNoteActions","components","Modal","ModernTable","PageContentLayoutOnly","ValidInput","ValidationObserver","ValidationProvider","Object","default","computed","mounted","i18n","messages","en"],"mappings":"8GAAA,2DAQaA,EAAY,SAACC,GAAwB,IAAlBC,EAAkB,uDAAT,KACvC,GAAoB,kBAATD,EAET,OADAE,QAAQC,MAAR,+CAA8D,CAAEH,SACzDA,EAGT,IACE,IAAMI,EAASC,IAAOL,GAClBI,EAAOE,YACTN,EAAOK,IAAOL,GAAMC,OAAOA,IAE7B,MAAOM,GACHA,GAAaA,EAAUC,QACzBN,QAAQO,MAAMF,EAAUC,SAExBN,QAAQO,MAAMF,GAIlB,OAAOP,I,oCC3BT,yBAA6lB,EAAG,G,yCCAhmB,IAAIU,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,wBAAwB,CAACE,MAAM,CAAC,aAAaN,EAAIO,GAAG,eAAe,KAAO,WAAW,CAACH,EAAG,SAAS,CAACI,YAAY,mBAAmBF,MAAM,CAAC,SAAW,UAAU,KAAO,aAAa,CAACF,EAAG,aAAa,CAACE,MAAM,CAAC,MAAQ,mBAAmB,CAACF,EAAG,MAAMA,EAAG,iBAAiB,CAACE,MAAM,CAAC,KAAO,mBAAmB,WAAW,GAAG,mBAAmB,uBAAuB,CAACN,EAAIS,GAAG,6HAA6HL,EAAG,WAAW,CAACI,YAAY,aAAaE,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yBAIEC,QAhCF,WAiCIlJ,KAAK0D,OAAS1D,KAAK6F,OAAOD,OAAOpB,GACjCxE,KAAK2D,QAAU,IAAnB,wDAEI3D,KAAKoF,SAEe,GAAhBpF,KAAKgG,SAAiB1G,QAAQC,MAAM,kBAAoBS,KAAK0D,SAGnE+D,MAAF,EAEEpD,QAAF,EAEE8E,KAAM,CACJC,SAAU,CACRC,GAAI,CAAV,0BCpO0Y,ICQtY,G,UAAY,eACd,EACAvJ,EACAkD,GACA,EACA,KACA,KACA,OAIa,e","file":"js/unit.notes.2f221fcd.js","sourcesContent":["/*\r\n Example:\r\n import { parseDate } from '@/utilities/Date/parse'\r\n\r\n const parsedDate = parseDate (date, 'LL');\r\n*/\r\nimport moment from 'moment'\r\n\r\nexport const parseDate = (date, format = 'LL') => {\r\n if (typeof date !== 'string') {\r\n console.debug(`parseDate can only parse a date string. got:`, { date })\r\n return date\r\n }\r\n\r\n try {\r\n const parsed = moment(date)\r\n if (parsed.isValid()) {\r\n date = moment(date).format(format)\r\n }\r\n } catch (exception) {\r\n if (exception && exception.message) {\r\n console.error(exception.message)\r\n } else {\r\n console.error(exception)\r\n }\r\n }\r\n\r\n return date\r\n}\r\n","import mod from \"-!../../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Main.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Main.vue?vue&type=style&index=0&lang=scss&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('PageContentLayoutOnly',{attrs:{\"aria-label\":_vm.$t('notes.title'),\"role\":\"region\"}},[_c('b-tabs',{staticClass:\"block whitecolor\",attrs:{\"position\":\"is-left\",\"type\":\"is-boxed\"}},[_c('b-tab-item',{attrs:{\"label\":\"Property Notes\"}},[_c('br'),_c('b-notification',{attrs:{\"type\":\"is-info is-light\",\"has-icon\":\"\",\"aria-close-label\":\"Close notification\"}},[_vm._v(\" Property Notes are related to the property itself, and will be shown regardless of the current owner of the property. \")]),_c('b-button',{staticClass:\"is-rounded\",style:({ marginBottom: '10px' }),attrs:{\"type\":\"is-primary\"},on:{\"click\":function($event){return _vm.openUnitNoteModal('add')}}},[_vm._v(\"Add Property Note\")]),_c('ModernTable',{attrs:{\"unit-notes-table\":\"\",\"region\":_vm.unitNotesTable.region,\"filters\":_vm.unitNotesTable.filters,\"rows\":_vm.unitNotesTable.rows,\"columns\":_vm.unitNotesTable.columns,\"pagination\":{\n perPage: 10\n },\"headerColor\":\"#FFF\",\"condensed\":\"\",\"readMoreColumn\":\"Note\"}})],1),_c('b-tab-item',{attrs:{\"label\":\"Owner Notes\"}},[_c('br'),_c('b-notification',{attrs:{\"type\":\"is-info is-light\",\"has-icon\":\"\",\"aria-close-label\":\"Close notification\"}},[_vm._v(\" Owner Notes are related to the specific owner being viewed. In the event of a turnover of the property to a new owner, the owner notes will follow the owner and will be visible in the previous owner's details. \")]),_c('b-button',{staticClass:\"is-rounded\",style:({ marginBottom: '10px' }),attrs:{\"type\":\"is-primary\"},on:{\"click\":function($event){return _vm.openOwnerNoteModal('add')}}},[_vm._v(\"Add Owner Note\")]),_c('ModernTable',{attrs:{\"owner-notes-table\":\"\",\"region\":_vm.ownerNotesTable.region,\"filters\":_vm.ownerNotesTable.filters,\"rows\":_vm.ownerNotesTable.rows,\"columns\":_vm.ownerNotesTable.columns,\"pagination\":{\n perPage: 10\n },\"headerColor\":\"#FFF\",\"condensed\":\"\",\"readMoreColumn\":\"Note\"}})],1)],1),_c('Modal',{attrs:{\"toggle\":_vm.unitNotesModal},on:{\"update:toggle\":function($event){_vm.unitNotesModal=$event}}},[_c('ValidationObserver',{ref:\"form\"},[_c('transition',{attrs:{\"name\":\"fade\",\"mode\":\"out-in\",\"appear\":\"\"}},[_c('form',{staticClass:\"form\"},[_c('fieldset',[_c('div',{staticClass:\"column is-12\"},[_c('valid-input',{staticClass:\"is-small\",staticStyle:{\"width\":\"50px !important\"},attrs:{\"name\":\"UnitNote\",\"label\":\"Property Note\",\"maxlength\":\"8000\",\"type\":\"textarea\",\"vid\":\"unitNote\",\"placeholder\":\"Property Note\",\"spellcheck\":\"true\",\"aria-label\":\"Property Note\",\"rules\":\"max:8000|required\"},model:{value:(_vm.selectedNote),callback:function ($$v) {_vm.selectedNote=$$v},expression:\"selectedNote\"}}),(_vm.action && _vm.action == 'add')?_c('button',{staticClass:\"button is-primary is-rounded\",style:({ float: 'right' }),on:{\"click\":function($event){$event.preventDefault();return _vm.addUnitNote(_vm.selectedNote)}}},[_vm._v(\" Add \")]):_vm._e(),(_vm.action && _vm.action == 'update')?_c('button',{staticClass:\"button is-primary is-rounded\",style:({ float: 'right' }),on:{\"click\":function($event){$event.preventDefault();return _vm.updateUnitNote(_vm.selectedNote, _vm.selectedID)}}},[_vm._v(\" Update \")]):_vm._e()],1)]),_c('fieldset',[_c('ValidationProvider',{attrs:{\"vid\":\"providerErrors\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\n var errors = ref.errors;\nreturn [_c('div',{staticClass:\"field\"},[_c('span',[_vm._v(_vm._s(errors[0]))])])]}}])})],1)])])],1)],1),_c('Modal',{attrs:{\"toggle\":_vm.ownerNotesModal},on:{\"update:toggle\":function($event){_vm.ownerNotesModal=$event}}},[_c('ValidationObserver',{ref:\"form2\",scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\n var handleSubmit = ref.handleSubmit;\nreturn [_c('transition',{attrs:{\"name\":\"fade\",\"mode\":\"out-in\",\"appear\":\"\"}},[_c('form',{staticClass:\"form2\",on:{\"submit\":function($event){$event.preventDefault();return handleSubmit(_vm.onFormSubmit)}}},[_c('fieldset',[_c('div',{staticClass:\"column is-12\"},[_c('valid-input',{staticClass:\"is-small\",staticStyle:{\"width\":\"50px !important\"},attrs:{\"name\":\"OwnerNote\",\"label\":\"Owner Note\",\"maxlength\":\"8000\",\"type\":\"textarea\",\"vid\":\"ownerNote\",\"placeholder\":\"Owner Note\",\"spellcheck\":\"true\",\"aria-label\":\"Owner Note\",\"rules\":\"max:8000|required\"},model:{value:(_vm.selectedNote),callback:function ($$v) {_vm.selectedNote=$$v},expression:\"selectedNote\"}}),(_vm.action && _vm.action == 'add')?_c('button',{staticClass:\"button is-primary is-rounded\",style:({ float: 'right' }),attrs:{\"type\":\"submit\"}},[_vm._v(\" Add \")]):_vm._e(),(_vm.action && _vm.action == 'update')?_c('button',{staticClass:\"button is-primary is-rounded\",style:({ float: 'right' }),on:{\"click\":function($event){$event.preventDefault();return _vm.updateOwnerNote(_vm.selectedNote, _vm.selectedID)}}},[_vm._v(\" Update \")]):_vm._e()],1)]),_c('fieldset',[_c('ValidationProvider',{attrs:{\"vid\":\"providerErrors\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\n var errors = ref.errors;\nreturn [_c('div',{staticClass:\"field\"},[_c('span',[_vm._v(_vm._s(errors[0]))])])]}}],null,true)})],1)])])]}}])})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import moment from 'moment'\r\n\r\nexport const data = function() {\r\n return {\r\n loading: false,\r\n confirmModal: false,\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 formatFn: function(value) {\r\n return value != null ? value : ''\r\n },\r\n formatNumberFn: function(value) {\r\n return value != null ? value : 0\r\n },\r\n selectedRow: null,\r\n unitNoteList: [{}],\r\n ownerNoteList: [{}],\r\n unitID: null,\r\n ownerID: null,\r\n selectedID: null,\r\n selectedNote: '',\r\n formShow: false,\r\n action: '',\r\n hasPermission: false,\r\n\r\n ownerNotesModal: false,\r\n ownerNotesTable: {\r\n region: {},\r\n filters: {\r\n show: false\r\n },\r\n rows: [],\r\n columns: [\r\n {\r\n field: 'author',\r\n\r\n label: 'Author',\r\n aria: 'Author',\r\n width: '5%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'note',\r\n\r\n label: 'Note',\r\n aria: 'Note',\r\n width: '50%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'modificationDate',\r\n date: true,\r\n\r\n label: 'Last Modified',\r\n aria: 'Last Modified',\r\n width: '5%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'actions',\r\n label: 'Actions',\r\n width: '15%'\r\n }\r\n ]\r\n },\r\n\r\n unitNotesModal: false,\r\n unitNotesTable: {\r\n region: {},\r\n filters: {\r\n show: false\r\n },\r\n rows: [],\r\n columns: [\r\n {\r\n field: 'author',\r\n\r\n label: 'Author',\r\n aria: 'Author',\r\n width: '5%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'note',\r\n\r\n label: 'Note',\r\n aria: 'Note',\r\n width: '50%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'modificationDate',\r\n date: true,\r\n\r\n label: 'Last Modified',\r\n aria: 'Last Modified',\r\n width: '5%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'actions',\r\n label: 'Actions',\r\n width: '15%'\r\n }\r\n ]\r\n }\r\n }\r\n}\r\n","import { notifyMessage, notifyProblem, notifyError } from '@/services/notify'\r\nimport { orderBy } from 'lodash'\r\n\r\nexport const methods = {\r\n confirmUnitNoteDelete(note, id) {\r\n this.$buefy.dialog.confirm({\r\n title: 'Deleting Property Note',\r\n message: `Are you sure you want to delete this Property Note, '${note}'?`,\r\n confirmText: 'Delete Property Note',\r\n type: 'is-danger',\r\n hasIcon: true,\r\n onConfirm: () => this.deleteUnitNote(id)\r\n })\r\n },\r\n confirmOwnerNoteDelete(note, id) {\r\n this.$buefy.dialog.confirm({\r\n title: 'Deleting Owner Note',\r\n message: `Are you sure you want to delete this Owner Note, '${note}'?`,\r\n confirmText: 'Delete Owner Note',\r\n type: 'is-danger',\r\n hasIcon: true,\r\n onConfirm: () => this.deleteOwnerNote(id)\r\n })\r\n },\r\n\r\n reload() {\r\n this.getRefreshedUnitNotes()\r\n this.getRefreshedOwnerNotes()\r\n },\r\n\r\n openUnitNoteModal(action) {\r\n this.selectedID = null\r\n this.selectedNote = ''\r\n this.action = action\r\n this.unitNotesModal = true\r\n },\r\n openOwnerNoteModal(action) {\r\n this.selectedID = null\r\n this.selectedNote = ''\r\n this.action = action\r\n this.ownerNotesModal = true\r\n },\r\n\r\n loadAddNote() {\r\n this.selectedID = null\r\n this.selectedNote = ''\r\n this.formShow = !this.formShow\r\n this.action = this.action == '' ? 'add' : ''\r\n },\r\n loadUpdateNote(note, id) {\r\n this.selectedID = id\r\n this.selectedNote = note\r\n this.formShow = true\r\n this.action = 'update'\r\n },\r\n\r\n initButtons() {\r\n this.selectedID = null\r\n this.selectedNote = ''\r\n this.formShow = false\r\n this.action = ''\r\n },\r\n\r\n // Unit Notes ~ API calls\r\n async getRefreshedUnitNotes() {\r\n const { results } = await this.kms.get(`/Roster/UnitNote/List`, {\r\n params: {\r\n unitID: this.$route.params.id\r\n }\r\n })\r\n\r\n this.unitNoteList = orderBy(results, 'createdDate', 'desc')\r\n\r\n if (this.isDebug == true) console.debug('results=' + JSON.stringify(this.unitNoteList))\r\n\r\n this.initButtons()\r\n },\r\n async addUnitNote(note) {\r\n if (this.isDebug == true) console.debug('in addUnitNote...')\r\n\r\n if (!note) {\r\n notifyError('Please enter a note. Note is a required field.')\r\n return\r\n }\r\n\r\n if (this.unitID && this.unitID != undefined && this.unitID > 0 && note && note != undefined) {\r\n try {\r\n this.loading = true\r\n const payload = {\r\n unitID: this.unitID,\r\n note: note\r\n }\r\n const path = `/Roster/UnitNote`\r\n const results = await this.kms.post(path, payload)\r\n\r\n if (this.isDebug == true) console.debug('results=' + JSON.stringify(results))\r\n\r\n if (results.unitNoteID > 0) {\r\n this.getRefreshedUnitNotes()\r\n notifyMessage(`Successfully added property note.`)\r\n this.unitNotesModal = false\r\n } else {\r\n notifyProblem('There was a problem adding the new property note.')\r\n }\r\n } catch (e) {\r\n notifyProblem(e)\r\n }\r\n }\r\n\r\n this.loading = false\r\n },\r\n async deleteUnitNote(id) {\r\n if (id <= 0) {\r\n notifyProblem('Unable to delete this property note.')\r\n return\r\n }\r\n\r\n try {\r\n this.loading = true\r\n const data = { unitNoteID: id, forceDelete: false }\r\n const path = `/Roster/UnitNote/${id}?forceDelete=false`\r\n const results = await this.kms.delete(path, data)\r\n\r\n if (this.isDebug == true) console.debug(JSON.stringify(results))\r\n\r\n if (results.recordID >= 0) {\r\n this.formComplete = true\r\n\r\n this.getRefreshedUnitNotes()\r\n\r\n notifyMessage(`The selected property note was successfully deleted.`)\r\n } else {\r\n notifyProblem('There was a problem deleting this property note.')\r\n }\r\n } catch (e) {\r\n notifyProblem(e)\r\n }\r\n\r\n this.loading = false\r\n },\r\n async updateUnitNote(note, id) {\r\n if (this.isDebug == true) console.debug(JSON.stringify(note))\r\n\r\n if (!note || id <= 0 || !this.unitID) {\r\n notifyProblem('Unable to update this property note.')\r\n return\r\n }\r\n\r\n try {\r\n this.loading = true\r\n const data = {\r\n unitNoteID: id,\r\n unitID: this.unitID,\r\n note: note\r\n }\r\n const path = `/Roster/UnitNote`\r\n const results = await this.kms.put(path, data)\r\n\r\n if (this.isDebug == true) console.debug(JSON.stringify(results))\r\n\r\n if (results.unitNoteID >= 0) {\r\n this.formComplete = true\r\n\r\n this.getRefreshedUnitNotes()\r\n\r\n notifyMessage(`The selected property note was successfully updated.`)\r\n\r\n this.unitNotesModal = false\r\n } else {\r\n notifyProblem('There was a problem updating this property note.')\r\n }\r\n } catch (e) {\r\n notifyProblem(e)\r\n }\r\n this.loading = false\r\n },\r\n\r\n // Owner Notes ~ API calls\r\n async getRefreshedOwnerNotes() {\r\n const { results } = await this.kms.get(`/Roster/OwnerNote/List`, {\r\n params: {\r\n ownerID: this.ownerID\r\n }\r\n })\r\n\r\n this.ownerNoteList = orderBy(results, 'createdDate', 'desc')\r\n\r\n if (this.isDebug == true) console.debug('results=' + JSON.stringify(this.ownerNoteList))\r\n\r\n this.initButtons()\r\n },\r\n async deleteOwnerNote(id) {\r\n if (id <= 0) {\r\n notifyProblem('Unable to delete this owner note.')\r\n return\r\n }\r\n\r\n try {\r\n this.loading = true\r\n const data = { ownerNoteID: id, forceDelete: false }\r\n const path = `/Roster/OwnerNote/${id}?forceDelete=false`\r\n const results = await this.kms.delete(path, data)\r\n\r\n if (this.isDebug == true) console.debug(JSON.stringify(results))\r\n\r\n if (results.recordID >= 0) {\r\n this.formComplete = true\r\n\r\n this.getRefreshedOwnerNotes()\r\n\r\n notifyMessage(`The selected owner note was successfully deleted.`)\r\n } else {\r\n notifyProblem('There was a problem deleting this owner note.')\r\n }\r\n } catch (e) {\r\n notifyProblem(e)\r\n }\r\n\r\n this.loading = false\r\n },\r\n async updateOwnerNote(note, id) {\r\n if (this.isDebug == true) console.debug(JSON.stringify(note))\r\n\r\n if (!note || id <= 0 || !this.ownerID) {\r\n notifyProblem('Unable to update this owner note.')\r\n return\r\n }\r\n\r\n try {\r\n this.loading = true\r\n const data = {\r\n ownerNoteID: id,\r\n ownerID: this.ownerID,\r\n note: note\r\n }\r\n const path = `/Roster/OwnerNote`\r\n const results = await this.kms.put(path, data)\r\n\r\n if (this.isDebug == true) console.debug(JSON.stringify(results))\r\n\r\n if (results.ownerNoteID >= 0) {\r\n this.formComplete = true\r\n\r\n this.getRefreshedOwnerNotes()\r\n\r\n notifyMessage(`The selected owner note was successfully updated.`)\r\n this.ownerNotesModal = false\r\n } else {\r\n notifyProblem('There was a problem updating this owner note.')\r\n }\r\n } catch (e) {\r\n notifyProblem(e)\r\n }\r\n this.loading = false\r\n },\r\n\r\n async onFormSubmit() {\r\n await this.addOwnerNote()\r\n },\r\n\r\n async addOwnerNote() {\r\n if (this.isDebug == true) console.debug('in addOwnerNote...' + this.ownerID)\r\n\r\n if (!this.selectedNote) {\r\n notifyError('Please enter a note. Note is a required field.')\r\n }\r\n\r\n if (\r\n this.ownerID &&\r\n this.ownerID != undefined &&\r\n this.ownerID > 0 &&\r\n this.selectedNote &&\r\n this.selectedNote != undefined\r\n ) {\r\n try {\r\n this.loading = true\r\n const payload = {\r\n ownerID: this.ownerID,\r\n note: this.selectedNote\r\n }\r\n const path = `/Roster/OwnerNote`\r\n const results = await this.kms.post(path, payload)\r\n\r\n if (this.isDebug == true) console.debug('results=' + JSON.stringify(results))\r\n\r\n if (results.ownerNoteID > 0) {\r\n this.getRefreshedOwnerNotes()\r\n notifyMessage(`Successfully added owner note.`)\r\n this.ownerNotesModal = false\r\n } else {\r\n notifyProblem('There was a problem adding the new owner note.')\r\n }\r\n } catch (e) {\r\n notifyProblem(e)\r\n }\r\n }\r\n\r\n this.loading = false\r\n }\r\n}\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.hasMatchingAspNetUser)?_c('button',{staticClass:\"button is-info is-light is-small is-outline is-rounded\",on:{\"click\":function($event){return _vm.loadUpdateNote(_vm.note, _vm.ownerNoteID)}}},[_vm._v(\" Edit \")]):_vm._e(),_vm._v(\"   \"),(_vm.hasMatchingAspNetUser)?_c('button',{staticClass:\"button is-info is-light is-small is-outline is-rounded\",on:{\"click\":function($event){return _vm.confirmOwnerNoteDelete(_vm.note, _vm.ownerNoteID)}}},[_vm._v(\" Delete \")]):_vm._e()])}\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!./OwnerNoteActions.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!./OwnerNoteActions.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./OwnerNoteActions.vue?vue&type=template&id=610fa7f0&\"\nimport script from \"./OwnerNoteActions.vue?vue&type=script&lang=js&\"\nexport * from \"./OwnerNoteActions.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 _c('div',[(_vm.hasMatchingAspNetUser)?_c('button',{staticClass:\"button is-info is-light is-small is-outline is-rounded\",on:{\"click\":function($event){return _vm.loadUpdateNote(_vm.note, _vm.unitNoteID)}}},[_vm._v(\" Edit\")]):_vm._e(),_vm._v(\"  \"),(_vm.hasMatchingAspNetUser)?_c('button',{staticClass:\"button is-info is-light is-small is-outline is-rounded\",on:{\"click\":function($event){return _vm.confirmUnitNoteDelete(_vm.note, _vm.unitNoteID)}}},[_vm._v(\" Delete \")]):_vm._e()])}\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!./UnitNoteActions.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!./UnitNoteActions.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./UnitNoteActions.vue?vue&type=template&id=1cd5ac4f&\"\nimport script from \"./UnitNoteActions.vue?vue&type=script&lang=js&\"\nexport * from \"./UnitNoteActions.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 OwnerNoteActions from './../components/OwnerNoteActions'\r\nimport UnitNoteActions from './../components/UnitNoteActions'\r\nimport { parseDate } from '@/utilities/Date/parse'\r\nimport _get from 'lodash/get'\r\n\r\nexport const watch = {\r\n hoaId() {\r\n this.reload()\r\n },\r\n ownerNoteList() {\r\n const dateFormat = 'LL'\r\n\r\n const ownerNoteList = _get(this, 'ownerNoteList', [])\r\n if (!Array.isArray(ownerNoteList)) {\r\n return\r\n }\r\n\r\n const rows = ownerNoteList.map(note => {\r\n const id = _get(note, 'ownerNoteID', '')\r\n const noteText = _get(note, 'note', '')\r\n\r\n return {\r\n author: _get(note, 'aspNetName', ''),\r\n note: noteText,\r\n modificationDate: {\r\n date: parseDate(_get(note, 'modifiedDate', ''), dateFormat),\r\n format: dateFormat\r\n },\r\n actions: {\r\n component: OwnerNoteActions,\r\n props: {\r\n hasMatchingAspNetUser: _get(note, 'hasMatchingAspNetUser', false),\r\n\r\n loadUpdateNote: (_note, _id) => {\r\n this.selectedID = _id\r\n this.selectedNote = _note\r\n this.action = 'update'\r\n this.ownerNotesModal = true\r\n },\r\n\r\n confirmOwnerNoteDelete: (_note, _id) => {\r\n this.$buefy.dialog.confirm({\r\n title: 'Deleting Owner Note',\r\n message: `Are you sure you want to delete this Owner Note, '${_note}'?`,\r\n confirmText: 'Delete Owner Note',\r\n type: 'is-danger',\r\n hasIcon: true,\r\n onConfirm: () => this.deleteOwnerNote(_id)\r\n })\r\n },\r\n\r\n note: noteText,\r\n ownerNoteID: id\r\n }\r\n }\r\n }\r\n })\r\n\r\n this.ownerNotesTable.rows = rows\r\n },\r\n unitNoteList() {\r\n const dateFormat = 'LL'\r\n\r\n const unitNoteList = _get(this, 'unitNoteList', [])\r\n if (!Array.isArray(unitNoteList)) {\r\n return\r\n }\r\n\r\n const rows = unitNoteList.map(note => {\r\n const id = _get(note, 'unitNoteID', '')\r\n const noteText = _get(note, 'note', '')\r\n\r\n return {\r\n author: _get(note, 'aspNetName', ''),\r\n note: noteText,\r\n modificationDate: {\r\n date: parseDate(_get(note, 'modifiedDate', ''), dateFormat),\r\n format: dateFormat\r\n },\r\n actions: {\r\n component: UnitNoteActions,\r\n props: {\r\n hasMatchingAspNetUser: _get(note, 'hasMatchingAspNetUser', false),\r\n\r\n loadUpdateNote: (_note, _id) => {\r\n this.selectedID = _id\r\n this.selectedNote = _note\r\n this.action = 'update'\r\n this.unitNotesModal = true\r\n },\r\n\r\n confirmUnitNoteDelete: (_note, _id) => {\r\n this.$buefy.dialog.confirm({\r\n title: 'Deleting Property Note',\r\n message: `Are you sure you want to delete this Property Note, '${_note}'?`,\r\n confirmText: 'Delete Property Note',\r\n type: 'is-danger',\r\n hasIcon: true,\r\n onConfirm: () => this.deleteUnitNote(_id)\r\n })\r\n },\r\n\r\n note: noteText,\r\n unitNoteID: id\r\n }\r\n }\r\n }\r\n })\r\n\r\n this.unitNotesTable.rows = rows\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!./Main.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!./Main.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Main.vue?vue&type=template&id=6f5f4438&\"\nimport script from \"./Main.vue?vue&type=script&lang=js&\"\nexport * from \"./Main.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Main.vue?vue&type=style&index=0&lang=scss&\"\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":""}