{"version":3,"sources":["webpack:///./node_modules/lodash/_compareMultiple.js","webpack:///./src/pages/Management/accounts/reportsFinancial/components/DocumentListModal/List.vue?e6cd","webpack:///./node_modules/lodash/_baseEach.js","webpack:///./src/pages/Management/accounts/reportsFinancial/List.vue?9085","webpack:///./node_modules/lodash/_baseOrderBy.js","webpack:///./node_modules/lodash/orderBy.js","webpack:///./node_modules/lodash/_createBaseEach.js","webpack:///./node_modules/lodash/_baseMap.js","webpack:///./src/pages/Management/accounts/reportsFinancial/List.vue?f63b","webpack:///./src/pages/Management/accounts/reportsFinancial/components/DocumentListModal/List.vue?029d","webpack:///./src/services/FinancialReportDocuments/store.js","webpack:///./src/services/FinancialReportSets/store.js","webpack:///./src/pages/Management/accounts/reportsFinancial/components/Button.vue?6449","webpack:///src/pages/Management/accounts/reportsFinancial/components/Button.vue","webpack:///./src/pages/Management/accounts/reportsFinancial/components/Button.vue?80be","webpack:///./src/pages/Management/accounts/reportsFinancial/components/Button.vue","webpack:///./src/pages/Management/accounts/reportsFinancial/components/DocumentListModal/keys/methods.js","webpack:///./src/pages/Management/accounts/reportsFinancial/components/DocumentListModal/keys/data.js","webpack:///src/pages/Management/accounts/reportsFinancial/components/DocumentListModal/List.vue","webpack:///./src/pages/Management/accounts/reportsFinancial/components/DocumentListModal/List.vue?2481","webpack:///./src/pages/Management/accounts/reportsFinancial/components/DocumentListModal/List.vue","webpack:///./src/pages/Management/accounts/reportsFinancial/keys/methods.js","webpack:///./src/pages/Management/accounts/reportsFinancial/keys/data.js","webpack:///src/pages/Management/accounts/reportsFinancial/List.vue","webpack:///./src/pages/Management/accounts/reportsFinancial/List.vue?ceac","webpack:///./src/pages/Management/accounts/reportsFinancial/List.vue","webpack:///./src/services/blobutility.js","webpack:///./node_modules/lodash/_compareAscending.js","webpack:///./node_modules/lodash/_baseSortBy.js"],"names":["compareAscending","compareMultiple","object","other","orders","index","objCriteria","criteria","othCriteria","length","ordersLength","result","order","module","exports","baseForOwn","createBaseEach","baseEach","arrayMap","baseGet","baseIteratee","baseMap","baseSortBy","baseUnary","identity","isArray","baseOrderBy","collection","iteratees","iteratee","value","key","orderBy","guard","undefined","isArrayLike","eachFunc","fromRight","iterable","Object","Array","render","_vm","this","_h","$createElement","_c","_self","style","display","_v","_s","$t","attrs","region","rows","columns","perPage","loading","toggle","on","$event","selectedReportSet","staticRenderFns","months","financialReportSet","month","staticClass","preventDefault","viewCombinedFinancialReports","apply","arguments","closeModal","isDebug","actions","getFinancialReportDocumentList","financialReportSetID","console","log","kms","get","results","debug","JSON","stringify","list","notifyProblem","error","getDocumentFile","dispatch","params","done","path","details","Vue","use","Vuex","financialReportDocumentStore","Store","state","mutations","getters","getFinancialReportSetList","hoaID","getMergedDocumentsFile","mergeFileName","post","asBase64","asBase64Raw","financialReportSetStore","visible","disabled","onClick","text","_e","props","component","methods","reload","getDocumentList","$emit","$","click","determineReportRows","map","entry","reportName","_get","financialReportDocumentID","view","Button","viewReport","then","financialReportSetList","message","contentType","blob","base64toBlob","showPdf","asRawBase64","notifyWarning","open","isOpen","data","isFetching","openOnFocus","filters","show","field","label","aria","width","sortable","searchable","styles","formRow","padding","whiteSpace","filterButton","float","marginTop","name","components","PageContentLayoutOnly","ModernTable","computed","watch","hoaId","mounted","i18n","messages","en","toggleFilters","filteredRows","_orderBy","filter","f","completedTime","monthName","year","monthYear","loadFinancialReportSetList","report","paddingRight","textAlign","amountField","assign","Modal","DocumentListModal","b64Data","sliceSize","byteCharacters","atob","byteArrays","offset","slice","byteNumbers","i","charCodeAt","byteArray","Uint8Array","push","Blob","type","newBlob","window","navigator","msSaveOrOpenBlob","URL","createObjectURL","link","document","createElement","download","setAttribute","href","downloadPdf","setTimeout","revokeObjectURL","showAnyType","mimeType","isSymbol","valIsDefined","valIsNull","valIsReflexive","valIsSymbol","othIsDefined","othIsNull","othIsReflexive","othIsSymbol","array","comparer","sort"],"mappings":"qGAAA,IAAIA,EAAmB,EAAQ,QAgB/B,SAASC,EAAgBC,EAAQC,EAAOC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\n\n/**\n * Used by `_.orderBy` to compare multiple properties of a value to another\n * and stable sort them.\n *\n * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,\n * specify an order of \"desc\" for descending or \"asc\" for ascending sort order\n * of corresponding values.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {boolean[]|string[]} orders The order to sort by for each property.\n * @returns {number} Returns the sort order indicator for `object`.\n */\nfunction compareMultiple(object, other, orders) {\n var index = -1,\n objCriteria = object.criteria,\n othCriteria = other.criteria,\n length = objCriteria.length,\n ordersLength = orders.length;\n\n while (++index < length) {\n var result = compareAscending(objCriteria[index], othCriteria[index]);\n if (result) {\n if (index >= ordersLength) {\n return result;\n }\n var order = orders[index];\n return result * (order == 'desc' ? -1 : 1);\n }\n }\n // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications\n // that causes it, under certain circumstances, to provide the same value for\n // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247\n // for more details.\n //\n // This also ensures a stable sort in V8 and other engines.\n // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.\n return object.index - other.index;\n}\n\nmodule.exports = compareMultiple;\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!./List.vue?vue&type=style&index=0&id=274e285d&lang=scss&scoped=true&\"; 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!./List.vue?vue&type=style&index=0&id=274e285d&lang=scss&scoped=true&\"","var baseForOwn = require('./_baseForOwn'),\n createBaseEach = require('./_createBaseEach');\n\n/**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\nvar baseEach = createBaseEach(baseForOwn);\n\nmodule.exports = baseEach;\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!./List.vue?vue&type=style&index=0&id=e743ed76&lang=scss&scoped=true&\"; 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!./List.vue?vue&type=style&index=0&id=e743ed76&lang=scss&scoped=true&\"","var arrayMap = require('./_arrayMap'),\n baseGet = require('./_baseGet'),\n baseIteratee = require('./_baseIteratee'),\n baseMap = require('./_baseMap'),\n baseSortBy = require('./_baseSortBy'),\n baseUnary = require('./_baseUnary'),\n compareMultiple = require('./_compareMultiple'),\n identity = require('./identity'),\n isArray = require('./isArray');\n\n/**\n * The base implementation of `_.orderBy` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\n * @param {string[]} orders The sort orders of `iteratees`.\n * @returns {Array} Returns the new sorted array.\n */\nfunction baseOrderBy(collection, iteratees, orders) {\n if (iteratees.length) {\n iteratees = arrayMap(iteratees, function(iteratee) {\n if (isArray(iteratee)) {\n return function(value) {\n return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);\n }\n }\n return iteratee;\n });\n } else {\n iteratees = [identity];\n }\n\n var index = -1;\n iteratees = arrayMap(iteratees, baseUnary(baseIteratee));\n\n var result = baseMap(collection, function(value, key, collection) {\n var criteria = arrayMap(iteratees, function(iteratee) {\n return iteratee(value);\n });\n return { 'criteria': criteria, 'index': ++index, 'value': value };\n });\n\n return baseSortBy(result, function(object, other) {\n return compareMultiple(object, other, orders);\n });\n}\n\nmodule.exports = baseOrderBy;\n","var baseOrderBy = require('./_baseOrderBy'),\n isArray = require('./isArray');\n\n/**\n * This method is like `_.sortBy` except that it allows specifying the sort\n * orders of the iteratees to sort by. If `orders` is unspecified, all values\n * are sorted in ascending order. Otherwise, specify an order of \"desc\" for\n * descending or \"asc\" for ascending sort order of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @param {string[]} [orders] The sort orders of `iteratees`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 34 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'barney', 'age': 36 }\n * ];\n *\n * // Sort by `user` in ascending order and by `age` in descending order.\n * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n */\nfunction orderBy(collection, iteratees, orders, guard) {\n if (collection == null) {\n return [];\n }\n if (!isArray(iteratees)) {\n iteratees = iteratees == null ? [] : [iteratees];\n }\n orders = guard ? undefined : orders;\n if (!isArray(orders)) {\n orders = orders == null ? [] : [orders];\n }\n return baseOrderBy(collection, iteratees, orders);\n}\n\nmodule.exports = orderBy;\n","var isArrayLike = require('./isArrayLike');\n\n/**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n}\n\nmodule.exports = createBaseEach;\n","var baseEach = require('./_baseEach'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * The base implementation of `_.map` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction baseMap(collection, iteratee) {\n var index = -1,\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value, key, collection) {\n result[++index] = iteratee(value, key, collection);\n });\n return result;\n}\n\nmodule.exports = baseMap;\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('PageContentLayoutOnly',[_c('div',[_c('h3',{style:({ display: 'inline-block' })},[_vm._v(\" \"+_vm._s((\"\" + (_vm.$t('reportFinancial.title'))))+\" \")])]),_c('ModernTable',{attrs:{\"region\":_vm.region,\"rows\":_vm.rows,\"columns\":_vm.columns,\"pagination\":{\n perPage: 12\n },\"loading\":_vm.loading}}),_c('Modal',{attrs:{\"toggle\":_vm.toggle},on:{\"update:toggle\":function($event){_vm.toggle=$event}}},[_c('DocumentListModal',{attrs:{\"financialReportSet\":_vm.selectedReportSet}})],1)],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('PageContentLayoutOnly',[_c('div',{attrs:{\"document-list-modal\":\"\"}},[_c('h3',{style:({ display: 'inline-block' })},[_vm._v(\" \"+_vm._s(((_vm.months[_vm.financialReportSet.month - 1]) + \" \" + (_vm.financialReportSet.year)))+\" \")])]),_c('div',{staticClass:\"pt-3 pb-5\"},[_c('b-button',{attrs:{\"type\":\"is-primary\"},on:{\"click\":function($event){$event.preventDefault();return _vm.viewCombinedFinancialReports.apply(null, arguments)}}},[_vm._v(\"View Combined Financial Reports\")])],1),_c('ModernTable',{attrs:{\"region\":_vm.region,\"rows\":_vm.rows,\"columns\":_vm.columns,\"loading\":_vm.loading}}),_c('div',[_c('b-button',{attrs:{\"type\":\"is-primary\"},on:{\"click\":function($event){$event.preventDefault();return _vm.closeModal.apply(null, arguments)}}},[_vm._v(\"Close\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","/*\r\n import { financialReportDocumentStore } from '@/services/FinancialReportDocuments/store'\r\n*/\r\n\r\nimport Vue from 'vue'\r\nimport Vuex from 'vuex'\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 financialReportDocumentStore.dispatch ('getFinancialReportDocumentList', {\r\n hoaId\r\n });\r\n */\r\n\r\n async getFinancialReportDocumentList({}, { financialReportSetID }) {\r\n console.log('in getFinancialReportDocumentList...' + financialReportSetID)\r\n try {\r\n const results = await kms.get(\r\n `/FinancialReports/FinancialReportDocument/List?financialReportSetID=${financialReportSetID}`\r\n )\r\n\r\n if (isDebug == true)\r\n console.debug('getFinancialReportDocumentList log=' + JSON.stringify(results))\r\n\r\n return {\r\n list: results.results\r\n }\r\n } catch (exception) {\r\n notifyProblem(`The financial report document 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 getDocumentFile({ dispatch }, { params, done }) {\r\n const path = `/FinancialReports/FinancialReportDocument/GetFile`\r\n const result = await kms.get(path, {\r\n params\r\n })\r\n\r\n if (this.isDebug == true) console.debug('getDocumentFile=' + JSON.stringify(result))\r\n\r\n if (dispatch && dispatch != undefined) console.debug(dispatch)\r\n\r\n if (result) {\r\n console.debug(`The monthly financial report has been opened in a new tab.`)\r\n done({ details: result })\r\n } else {\r\n console.error('There was a problem retrieving the monthly financial report.')\r\n }\r\n }\r\n}\r\n/* eslint-enable no-empty-pattern */\r\n\r\nVue.use(Vuex)\r\nexport const financialReportDocumentStore = new Vuex.Store({\r\n state: {},\r\n mutations: {},\r\n getters: {},\r\n actions\r\n})\r\n","/*\r\n import { financialReportSetStore } from '@/services/FinancialReportSets/store'\r\n*/\r\n\r\nimport Vue from 'vue'\r\nimport Vuex from 'vuex'\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 financialReportSetStore.dispatch ('getFinancialReportSetList', {\r\n hoaId\r\n });\r\n */\r\n\r\n async getFinancialReportSetList({}, { hoaID }) {\r\n console.log('in getFinancialReportSetList...' + hoaID)\r\n try {\r\n const results = await kms.get(`/FinancialReports/FinancialReportSet/List?hoaID=${hoaID}`)\r\n\r\n if (isDebug == true) console.debug('getFinancialReportSetList log=' + JSON.stringify(results))\r\n\r\n return {\r\n list: results.results\r\n }\r\n } catch (exception) {\r\n notifyProblem(`The financial report set 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 getMergedDocumentsFile({ dispatch }, { financialReportSetID, mergeFileName, done }) {\r\n const path = `/FinancialReports/FinancialReportSet/RenderMergedFinancialDocument?financialReportSetID=${financialReportSetID}&mergeFileName=${mergeFileName}&asBase64=true&asBase64Raw=true`\r\n const result = await kms.post(path, {\r\n financialReportSetID,\r\n mergeFileName,\r\n asBase64: true,\r\n asBase64Raw: true\r\n })\r\n\r\n if (this.isDebug == true) console.debug('getMergedDocumentsFile=' + JSON.stringify(result))\r\n\r\n if (dispatch && dispatch != undefined) console.debug(dispatch)\r\n\r\n if (result) {\r\n console.debug(`The monthly financial reports merged document has been opened in a new tab.`)\r\n done({ details: result })\r\n } else {\r\n console.error(\r\n 'There was a problem retrieving the combined monthly financial reports document.'\r\n )\r\n }\r\n }\r\n}\r\n/* eslint-enable no-empty-pattern */\r\n\r\nVue.use(Vuex)\r\nexport const financialReportSetStore = 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 ((_vm.visible && _vm.visible == true) || _vm.visible == undefined)?_c('b-button',{staticClass:\"button is-info is-light is-small is-outline is-rounded\",attrs:{\"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\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!./Button.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!./Button.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Button.vue?vue&type=template&id=f2f7cbcc&\"\nimport script from \"./Button.vue?vue&type=script&lang=js&\"\nexport * from \"./Button.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 { financialReportDocumentStore } from '@/services/FinancialReportDocuments/store'\r\nimport { financialReportSetStore } from '@/services/FinancialReportSets/store'\r\nimport _get from 'lodash/get'\r\nimport Button from '@/pages/Management/accounts/reportsFinancial/components/Button'\r\nimport { notifyWarning, notifyProblem } from '@/services/notify'\r\nimport { base64toBlob, showPdf } from '@/services/blobutility'\r\nimport $ from 'jquery'\r\n\r\nexport const methods = {\r\n async reload() {\r\n this.loading = true\r\n\r\n await this.getDocumentList()\r\n\r\n this.loading = false\r\n },\r\n\r\n closeModal() {\r\n // auto-close modal\r\n this.$emit('update:toggle', (this.toggle = false))\r\n $('#clickclose').click()\r\n this.loading = false\r\n },\r\n\r\n determineReportRows(list) {\r\n if (this.isDebug == true) console.debug('determineReportRows()...' + JSON.stringify(list))\r\n\r\n if (list && list != undefined) {\r\n var rows = list.map(entry => {\r\n const reportName = _get(entry, 'reportName', '')\r\n const financialReportDocumentID = _get(entry, 'financialReportDocumentID', 0)\r\n this.financialReportSetID = _get(entry, 'financialReportSetID', 0)\r\n\r\n return {\r\n reportName,\r\n view: {\r\n component: Button,\r\n props: {\r\n onClick: () => {\r\n this.viewReport(financialReportDocumentID)\r\n },\r\n text: 'View'\r\n }\r\n }\r\n }\r\n })\r\n\r\n this.rows = rows\r\n }\r\n },\r\n\r\n async getDocumentList() {\r\n this.loading = true\r\n try {\r\n await financialReportDocumentStore\r\n .dispatch('getFinancialReportDocumentList', {\r\n financialReportSetID: this.financialReportSet.financialReportSetID\r\n })\r\n .then(({ list }) => {\r\n if (list && list != null) {\r\n this.financialReportSetList = this.determineReportRows(list)\r\n }\r\n })\r\n } catch (error) {\r\n console.debug('getDocumentList error=' + error.message)\r\n this.loading = false\r\n }\r\n\r\n this.loading = false\r\n },\r\n\r\n async viewCombinedFinancialReports() {\r\n console.debug('viewCombinedFinancialReports...' + this.financialReportSetID)\r\n\r\n try {\r\n await financialReportSetStore.dispatch('getMergedDocumentsFile', {\r\n financialReportSetID: this.financialReportSetID,\r\n mergeFileName: 'mergedDocuments',\r\n done: ({ details }) => {\r\n if (details) {\r\n //display merged pdf of combined reports\r\n const contentType = 'application/pdf'\r\n const blob = base64toBlob(details, contentType)\r\n showPdf(blob)\r\n console.debug(\r\n `Successfully opened the combined monthly financials report in a new tab.`\r\n )\r\n return\r\n }\r\n }\r\n })\r\n } catch (error) {\r\n console.debug('getDocumentList error=' + error.message)\r\n this.loading = false\r\n }\r\n },\r\n\r\n async viewReport(financialReportDocumentID) {\r\n if (this.isDebug == true)\r\n console.debug('financialReportDocumentID=' + financialReportDocumentID)\r\n\r\n if (financialReportDocumentID == undefined || !financialReportDocumentID) {\r\n notifyProblem('There is a problem downloading this document.')\r\n }\r\n\r\n try {\r\n const params = {\r\n financialReportDocumentID: financialReportDocumentID,\r\n asBase64: true,\r\n asRawBase64: true\r\n }\r\n\r\n await financialReportDocumentStore.dispatch('getDocumentFile', {\r\n params,\r\n done: ({ details }) => {\r\n if (details) {\r\n if (this.isDebug == true) console.debug('base64pdf........................' + details)\r\n\r\n const contentType = 'application/pdf'\r\n const blob = base64toBlob(details, contentType)\r\n showPdf(blob)\r\n console.debug(`Successfully opened the monthly financial report in a new tab.`)\r\n return\r\n }\r\n }\r\n })\r\n } catch (e) {\r\n if (this.isDebug == true) console.debug(e)\r\n notifyWarning('There was a problem opening the monthly financial report.')\r\n }\r\n },\r\n\r\n open() {\r\n this.isOpen = true\r\n this.loading = false\r\n }\r\n}\r\n","export function data() {\r\n return {\r\n isDebug: true,\r\n isOpen: false,\r\n loading: true,\r\n isFetching: false,\r\n openOnFocus: true,\r\n financialReportSetID: null,\r\n months: [\r\n 'January',\r\n 'February',\r\n 'March',\r\n 'April',\r\n 'May',\r\n 'June',\r\n 'July',\r\n 'August',\r\n 'September',\r\n 'October',\r\n 'November',\r\n 'December'\r\n ],\r\n\r\n filters: {\r\n show: true\r\n },\r\n\r\n region: {},\r\n\r\n rows: [],\r\n\r\n columns: [\r\n {\r\n field: 'reportName',\r\n label: 'Report Name',\r\n aria: 'Report Name',\r\n width: '95%',\r\n sortable: false,\r\n searchable: false\r\n }\r\n ],\r\n\r\n styles: {\r\n formRow: {\r\n padding: '10px',\r\n whiteSpace: 'nowrap'\r\n },\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","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=274e285d&scoped=true&\"\nimport script from \"./List.vue?vue&type=script&lang=js&\"\nexport * from \"./List.vue?vue&type=script&lang=js&\"\nimport style0 from \"./List.vue?vue&type=style&index=0&id=274e285d&lang=scss&scoped=true&\"\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 \"274e285d\",\n null\n \n)\n\nexport default component.exports","import { financialReportSetStore } from '@/services/FinancialReportSets/store'\r\nimport _get from 'lodash/get'\r\nimport Button from '../components/Button'\r\nimport { notifyProblem } from '@/services/notify'\r\nimport _orderBy from 'lodash/orderBy'\r\n\r\nexport const methods = {\r\n toggleFilters: function() {\r\n this.filters.show = !this.filters.show\r\n },\r\n\r\n determineReportRows(list) {\r\n if (this.isDebug == true) console.debug('determineReportRows()...' + JSON.stringify(list))\r\n\r\n if (list && list != undefined) {\r\n //Filter by month descending and only completedTime being populated\r\n const filteredRows = _orderBy(list, 'month', 'desc').filter(\r\n f => f.completedTime !== undefined && f.completedTime\r\n )\r\n\r\n var rows = filteredRows.map(entry => {\r\n const month = _get(entry, 'month', 0)\r\n let monthName = ''\r\n const year = _get(entry, 'year', 0)\r\n\r\n if (month > 0) {\r\n monthName = this.months[month - 1]\r\n }\r\n\r\n return {\r\n monthYear: `${monthName} ${year}`,\r\n view: {\r\n component: Button,\r\n props: {\r\n onClick: () => {\r\n this.viewReport(entry)\r\n },\r\n text: 'View'\r\n }\r\n }\r\n }\r\n })\r\n\r\n this.rows = rows\r\n }\r\n },\r\n\r\n async reload() {\r\n this.loading = true\r\n\r\n await this.loadFinancialReportSetList()\r\n\r\n this.loading = false\r\n },\r\n\r\n async loadFinancialReportSetList() {\r\n this.toggle = false\r\n await financialReportSetStore\r\n .dispatch('getFinancialReportSetList', {\r\n hoaID: this.hoaId\r\n })\r\n .then(({ list }) => {\r\n if (list && list != null) {\r\n this.financialReportSetList = this.determineReportRows(list)\r\n }\r\n })\r\n },\r\n\r\n async viewReport(report) {\r\n if (this.isDebug == true) console.debug('viewReport=' + JSON.stringify(report))\r\n\r\n if (report == undefined || !report) {\r\n notifyProblem('There is a problem loading report documents.')\r\n return\r\n }\r\n\r\n this.selectedReportSet = report\r\n this.toggle = true\r\n }\r\n}\r\n","var field = {\r\n width: '100px',\r\n display: 'inline-block',\r\n paddingRight: '6px',\r\n textAlign: 'left'\r\n}\r\n\r\nexport const data = () => ({\r\n isDebug: true,\r\n toggle: false,\r\n financialReportSetList: [],\r\n selectedReportSet: null,\r\n loading: false,\r\n months: [\r\n 'January',\r\n 'February',\r\n 'March',\r\n 'April',\r\n 'May',\r\n 'June',\r\n 'July',\r\n 'August',\r\n 'September',\r\n 'October',\r\n 'November',\r\n 'December'\r\n ],\r\n\r\n filters: {\r\n show: true\r\n },\r\n\r\n region: {},\r\n\r\n rows: [],\r\n\r\n columns: [\r\n {\r\n field: 'monthYear',\r\n label: 'Month-Year',\r\n aria: 'Month-Year',\r\n width: '95%',\r\n sortable: false,\r\n searchable: false\r\n }\r\n ],\r\n\r\n styles: {\r\n formRow: {\r\n padding: '10px',\r\n whiteSpace: 'nowrap'\r\n },\r\n filterButton: {\r\n float: 'right',\r\n marginTop: '4px'\r\n },\r\n amountField: Object.assign({}, field, {\r\n width: '125px'\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=e743ed76&scoped=true&\"\nimport script from \"./List.vue?vue&type=script&lang=js&\"\nexport * from \"./List.vue?vue&type=script&lang=js&\"\nimport style0 from \"./List.vue?vue&type=style&index=0&id=e743ed76&lang=scss&scoped=true&\"\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 \"e743ed76\",\n null\n \n)\n\nexport default component.exports","/*\r\n import { base64toBlob, showPdf } from '@/services/blobutility'\r\n*/\r\n\r\nexport const base64toBlob = (b64Data, contentType) => {\r\n const sliceSize = 512\r\n const byteCharacters = atob(b64Data)\r\n const byteArrays = []\r\n\r\n for (let offset = 0; offset < byteCharacters.length; offset += sliceSize) {\r\n const slice = byteCharacters.slice(offset, offset + sliceSize)\r\n\r\n const byteNumbers = new Array(slice.length)\r\n for (let i = 0; i < slice.length; i++) {\r\n byteNumbers[i] = slice.charCodeAt(i)\r\n }\r\n\r\n const byteArray = new Uint8Array(byteNumbers)\r\n byteArrays.push(byteArray)\r\n }\r\n\r\n const blob = new Blob(byteArrays, { type: contentType })\r\n return blob\r\n}\r\n\r\nexport const showPdf = blob => {\r\n var newBlob = new Blob([blob], { type: 'application/pdf' })\r\n\r\n if (window.navigator && window.navigator.msSaveOrOpenBlob) {\r\n window.navigator.msSaveOrOpenBlob(newBlob)\r\n } else {\r\n const data = window.URL.createObjectURL(newBlob)\r\n\r\n var link = document.createElement('a')\r\n link.download = 'download.pdf'\r\n link.setAttribute('download', 'download.pdf')\r\n link.href = data\r\n\r\n window.open(link, '_blank')\r\n }\r\n\r\n return\r\n}\r\n\r\nexport const downloadPdf = blob => {\r\n var newBlob = new Blob([blob], { type: 'application/pdf' })\r\n\r\n if (window.navigator && window.navigator.msSaveOrOpenBlob) {\r\n window.navigator.msSaveOrOpenBlob(newBlob)\r\n } else {\r\n const data = window.URL.createObjectURL(newBlob)\r\n var link = document.createElement('a')\r\n link.download = 'download.pdf'\r\n link.setAttribute('download', 'download.pdf')\r\n link.href = data\r\n link.click()\r\n\r\n setTimeout(function() {\r\n window.URL.revokeObjectURL(data)\r\n 100\r\n })\r\n }\r\n\r\n return\r\n}\r\n\r\nexport const showAnyType = (blob, mimeType) => {\r\n console.debug('showAnyType...')\r\n var newBlob = new Blob([blob], { type: mimeType })\r\n if (window.navigator && window.navigator.msSaveOrOpenBlob) {\r\n window.navigator.msSaveOrOpenBlob(newBlob)\r\n } else {\r\n const data = window.URL.createObjectURL(newBlob)\r\n var link = document.createElement('a')\r\n link.href = data\r\n\r\n window.open(data, '_blank')\r\n\r\n setTimeout(function() {\r\n window.URL.revokeObjectURL(data)\r\n 100\r\n })\r\n }\r\n\r\n return\r\n}\r\n","var isSymbol = require('./isSymbol');\n\n/**\n * Compares values to sort them in ascending order.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {number} Returns the sort order indicator for `value`.\n */\nfunction compareAscending(value, other) {\n if (value !== other) {\n var valIsDefined = value !== undefined,\n valIsNull = value === null,\n valIsReflexive = value === value,\n valIsSymbol = isSymbol(value);\n\n var othIsDefined = other !== undefined,\n othIsNull = other === null,\n othIsReflexive = other === other,\n othIsSymbol = isSymbol(other);\n\n if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||\n (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||\n (valIsNull && othIsDefined && othIsReflexive) ||\n (!valIsDefined && othIsReflexive) ||\n !valIsReflexive) {\n return 1;\n }\n if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||\n (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||\n (othIsNull && valIsDefined && valIsReflexive) ||\n (!othIsDefined && valIsReflexive) ||\n !othIsReflexive) {\n return -1;\n }\n }\n return 0;\n}\n\nmodule.exports = compareAscending;\n","/**\n * The base implementation of `_.sortBy` which uses `comparer` to define the\n * sort order of `array` and replaces criteria objects with their corresponding\n * values.\n *\n * @private\n * @param {Array} array The array to sort.\n * @param {Function} comparer The function to define sort order.\n * @returns {Array} Returns `array`.\n */\nfunction baseSortBy(array, comparer) {\n var length = array.length;\n\n array.sort(comparer);\n while (length--) {\n array[length] = array[length].value;\n }\n return array;\n}\n\nmodule.exports = baseSortBy;\n"],"sourceRoot":""}