{"version":3,"sources":["webpack:///./src/utilities/Date/parse.js","webpack:///./src/services/Vendors/store.js","webpack:///./src/pages/Management/vendors/tabs/Licenses/List.vue?3ddd","webpack:///./src/services/Vendors/VendorLicenses/store.js","webpack:///./src/pages/Management/vendors/tabs/Licenses/keys/methods.js","webpack:///./src/pages/Management/vendors/tabs/Licenses/keys/data.js","webpack:///src/pages/Management/vendors/tabs/Licenses/List.vue","webpack:///./src/pages/Management/vendors/tabs/Licenses/List.vue?b933","webpack:///./src/pages/Management/vendors/tabs/Licenses/List.vue"],"names":["parseDate","date","format","console","debug","parsed","moment","isValid","exception","message","error","isDebug","actions","getVendorList","hoaId","log","kms","get","params","result","JSON","stringify","list","results","notifyProblem","getVendorById","vendorID","vendor","Vue","use","Vuex","vendorList","Store","state","mutations","getters","render","_vm","this","_h","$createElement","_c","_self","attrs","$t","region","filters","rows","columns","perPage","loading","scopedSlots","_u","key","fn","style","width","height","class","show","float","background","border","on","$event","staticStyle","_v","proxy","staticRenderFns","getVendorLicenseList","vendorGlobalID","vendorLicense","methods","determineRows","Array","isArray","map","entry","dateFormat","type","_get","code","licenseNumber","inactive","isVerified","expirationDate","active","getVendorGlobalID","dispatch","then","loadVendorLicenses","reload","$route","id","data","formatDateFn","value","field","label","aria","sortable","searchable","styles","filterButton","marginTop","name","components","PageContentLayoutOnly","ModernTable","computed","watch","mounted","i18n","messages","en","component"],"mappings":"0HAAA,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,4JCjBHU,GAAU,EAGVC,EAAU,CAMRC,cANQ,cAMqB,8KAATC,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MACP4C,UAAU,EACVC,YAAY,GAEd,CACEJ,MAAO,gBACPC,MAAO,YACPC,KAAM,YACN3C,MAAO,MACP4C,UAAU,EACVC,YAAY,GAEd,CACEJ,MAAO,QACPC,MAAO,QACPC,KAAM,QACN3C,MAAO,MACP4C,UAAU,EACVC,YAAY,GAEd,CACEJ,MAAO,SACPC,MAAO,SACPC,KAAM,SACN3C,MAAO,MACP4C,UAAU,EACVC,YAAY,GAEd,CACEJ,MAAO,aACPC,MAAO,WACPC,KAAM,WACN3C,MAAO,MACP4C,UAAU,EACVC,YAAY,GAEd,CACEJ,MAAO,iBACPC,MAAO,iBACPC,KAAM,iBACN3C,MAAO,MACP4C,UAAU,EACVC,YAAY,IAIhBC,OAAQ,CACNC,aAAc,CACZ3C,MAAO,QACP4C,UAAW,UC1CjB,GACEC,KAAM,iBACNC,WAAY,CACVC,sBAAJ,OACIC,YAAJ,QAGEd,KAAF,EACEtB,QAAF,EAEEqC,SAAU,OAAZ,OAAY,CAAZ,GACA,gBACI,MAAJ,YAAM,OAAN,yBAIEC,MAAO,GAEPC,QAlBF,WAmBIzE,KAAKqD,UAGPqB,KAAM,CACJC,SAAU,CACRC,GAAI,CAAV,qCC/D0Y,I,YCOtYC,EAAY,eACd,EACA/E,EACAgC,GACA,EACA,KACA,KACA,MAIa,aAAA+C,E","file":"js/vendors.vendorLicenses.b3590359.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","/*\r\n import { vendorList } from '@/services/Vendors/store'\r\n*/\r\n\r\nimport Vue from 'vue'\r\nimport Vuex from 'vuex'\r\n\r\nimport { notifyProblem } 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 vendorList.dispatch ('getVendorList', {\r\n hoaId\r\n });\r\n */\r\n async getVendorList({}, { hoaId }) {\r\n console.log('in getVendorList...')\r\n try {\r\n const result = await kms.get('/Vendors/Vendor/List', {\r\n params: {\r\n hoaId\r\n }\r\n })\r\n\r\n if (isDebug == true) console.debug('getVendorList log=' + JSON.stringify(result))\r\n\r\n return {\r\n list: result.results\r\n }\r\n } catch (exception) {\r\n notifyProblem(`The vendors 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 //Vendor by Id\r\n async getVendorById({}, { vendorID }) {\r\n try {\r\n console.debug('in getVendorById...' + vendorID)\r\n const vendor = await kms.get(`/Vendors/Vendor/${vendorID}`)\r\n\r\n if (isDebug == true) console.debug('getVendorById=' + JSON.stringify(vendor))\r\n\r\n return {\r\n result: vendor\r\n }\r\n } catch (exception) {\r\n notifyProblem(`There was a problem retrieving the vendor.`)\r\n console.error(exception)\r\n }\r\n\r\n return {\r\n vendor: {}\r\n }\r\n }\r\n}\r\n/* eslint-enable no-empty-pattern */\r\n\r\nVue.use(Vuex)\r\nexport const vendorList = new Vuex.Store({\r\n state: {},\r\n mutations: {},\r\n getters: {},\r\n actions\r\n})\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('PageContentLayoutOnly',{attrs:{\"aria-label\":_vm.$t('vendorLicense.title'),\"role\":\"region\"}},[_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 }","/*\r\n import { vendorLicense } from '@/services/Vendors/VendorLicenses/store'\r\n*/\r\n\r\nimport Vue from 'vue'\r\nimport Vuex from 'vuex'\r\n\r\nimport { notifyProblem } 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 vendorLicense.dispatch ('getVendorLicenseList', {\r\n vendorID\r\n });\r\n */\r\n async getVendorLicenseList({}, { vendorGlobalID }) {\r\n console.log('in getVendorLicenseList...')\r\n try {\r\n const result = await kms.get('/Vendors/VendorGlobalLicense/List', {\r\n params: {\r\n vendorGlobalID\r\n }\r\n })\r\n\r\n if (isDebug == true) console.debug('getVendorLicenseList log=' + JSON.stringify(result))\r\n\r\n return {\r\n list: result.results\r\n }\r\n } catch (exception) {\r\n notifyProblem(`The vendor licenses 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/* eslint-enable no-empty-pattern */\r\n\r\nVue.use(Vuex)\r\nexport const vendorLicense = new Vuex.Store({\r\n state: {},\r\n mutations: {},\r\n getters: {},\r\n actions\r\n})\r\n","import _get from 'lodash/get'\r\nimport { vendorLicense } from '@/services/Vendors/VendorLicenses/store'\r\nimport { vendorList } from '@/services/Vendors/store'\r\nimport { parseDate } from '@/utilities/Date/parse'\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 var dateFormat = 'LL'\r\n\r\n const type = _get(entry, 'type', '')\r\n const code = _get(entry, 'code', '')\r\n const licenseNumber = _get(entry, 'licenseNumber', '')\r\n const state = _get(entry, 'stateAbbreviation', '')\r\n const inactive = _get(entry, 'isInactive', false)\r\n const isVerified = _get(entry, 'isVerified', false)\r\n const expirationDate = parseDate(_get(entry, 'expirationDate', null), dateFormat)\r\n\r\n return {\r\n type: type,\r\n code: code,\r\n licenseNumber: licenseNumber,\r\n state: state,\r\n active: !inactive,\r\n isVerified: isVerified,\r\n expirationDate: expirationDate\r\n }\r\n })\r\n\r\n this.rows = rows\r\n },\r\n\r\n async getVendorGlobalID() {\r\n await vendorList\r\n .dispatch('getVendorById', {\r\n vendorID: this.vendorID\r\n })\r\n .then(({ result }) => {\r\n if (result) {\r\n this.vendorGlobalID = result.vendorGlobalID\r\n if (this.isDebug == true) console.debug('getVendorGlobalID=' + this.vendorGlobalID)\r\n }\r\n })\r\n },\r\n\r\n async loadVendorLicenses() {\r\n if (this.isDebug == true) console.debug('in loadVendorLicenses()...')\r\n\r\n await this.getVendorGlobalID()\r\n\r\n await vendorLicense\r\n .dispatch('getVendorLicenseList', {\r\n vendorGlobalID: this.vendorGlobalID\r\n })\r\n .then(({ list }) => {\r\n this.determineRows(list)\r\n })\r\n },\r\n\r\n reload() {\r\n this.loading = true\r\n\r\n this.vendorID = this.$route.params.id || 0\r\n\r\n this.rows = []\r\n this.loadVendorLicenses()\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 vendorID: 0,\r\n vendorGlobalID: 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: 'type',\r\n label: 'Type',\r\n aria: 'Type',\r\n width: '10%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'code',\r\n label: 'Code',\r\n aria: 'Code',\r\n width: '10%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'licenseNumber',\r\n label: 'License #',\r\n aria: 'License #',\r\n width: '10%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'state',\r\n label: 'State',\r\n aria: 'State',\r\n width: '10%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'active',\r\n label: 'Active',\r\n aria: 'Active',\r\n width: '10%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'isVerified',\r\n label: 'Verified',\r\n aria: 'Verified',\r\n width: '10%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'expirationDate',\r\n label: 'ExpirationDate',\r\n aria: 'ExpirationDate',\r\n width: '15%',\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
\r\n \r\n \r\n Filter
\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=764d2a5b&\"\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"],"sourceRoot":""}