{"version":3,"sources":["webpack:///./src/services/BankAccounts/BankAccount/_utilities/filterAccounts.js","webpack:///./src/services/BankAccounts/BankAccount/List.js","webpack:///./src/utilities/Date/parse.js","webpack:///./node_modules/core-js/internals/this-number-value.js","webpack:///./src/pages/Management/plaid/List/Main.vue?8ae0","webpack:///./src/services/BankAccounts/BankAccountUnlinked/List.js","webpack:///./src/pages/Management/plaid/List/components/Menu.vue?cce0","webpack:///src/pages/Management/plaid/List/components/Menu.vue","webpack:///./src/pages/Management/plaid/List/components/Menu.vue?51ea","webpack:///./src/pages/Management/plaid/List/components/Menu.vue","webpack:///./src/pages/Management/plaid/List/keys/methods.js","webpack:///./src/pages/Management/plaid/List/keys/data.js","webpack:///./src/pages/Management/plaid/List/keys/computed.js","webpack:///src/pages/Management/plaid/List/Main.vue","webpack:///./src/pages/Management/plaid/List/Main.vue?c721","webpack:///./src/pages/Management/plaid/List/Main.vue","webpack:///./src/pages/Management/plaid/FinancialAccountDetails/index.vue?800e","webpack:///./src/pages/Management/plaid/FinancialAccountDetails/components/Activity/index.vue?66e7","webpack:///./src/pages/Management/plaid/FinancialAccountDetails/components/Activity/parts/watch.js","webpack:///./src/services/CheckbookReconciliation/BankAccountListing/List.js","webpack:///./src/pages/Management/plaid/FinancialAccountDetails/components/Activity/parts/methods.js","webpack:///./src/pages/Management/plaid/FinancialAccountDetails/components/Activity/parts/data.js","webpack:///./src/pages/Management/plaid/FinancialAccountDetails/components/Activity/parts/computed.js","webpack:///src/pages/Management/plaid/FinancialAccountDetails/components/Activity/index.vue","webpack:///./src/pages/Management/plaid/FinancialAccountDetails/components/Activity/index.vue?8a24","webpack:///./src/pages/Management/plaid/FinancialAccountDetails/components/Activity/index.vue","webpack:///./src/pages/Management/plaid/FinancialAccountDetails/components/UpdateModal/index.vue?4ab4","webpack:///./src/pages/Management/plaid/FinancialAccountDetails/components/UpdateModal/keys/methods.js","webpack:///src/pages/Management/plaid/FinancialAccountDetails/components/UpdateModal/index.vue","webpack:///./src/pages/Management/plaid/FinancialAccountDetails/components/UpdateModal/index.vue?6774","webpack:///./src/pages/Management/plaid/FinancialAccountDetails/components/UpdateModal/index.vue","webpack:///./src/pages/Management/plaid/FinancialAccountDetails/components/TxDetails/index.vue?2ef4","webpack:///src/pages/Management/plaid/FinancialAccountDetails/components/TxDetails/index.vue","webpack:///./src/pages/Management/plaid/FinancialAccountDetails/components/TxDetails/index.vue?a6a3","webpack:///./src/pages/Management/plaid/FinancialAccountDetails/components/TxDetails/index.vue","webpack:///./src/pages/Management/plaid/FinancialAccountDetails/keys/watch.js","webpack:///./src/pages/Management/plaid/FinancialAccountDetails/keys/methods/list/upsert.js","webpack:///./src/pages/Management/plaid/FinancialAccountDetails/keys/data.js","webpack:///./src/services/BankAccounts/BankAccount/Get.js","webpack:///./src/services/BankAccounts/BankAccountUnlinked/Get.js","webpack:///./src/pages/Management/plaid/FinancialAccountDetails/keys/methods/list/refresh.js","webpack:///./src/services/CheckbookReconciliation/BankDataProvider/GetDefaultByProviderName.js","webpack:///./src/pages/Management/plaid/FinancialAccountDetails/keys/methods/list/getProviderId.js","webpack:///./src/pages/Management/plaid/FinancialAccountDetails/keys/methods/list/eraseAccount.js","webpack:///./src/pages/Management/plaid/FinancialAccountDetails/keys/methods/list/getLinkedUpsertDetails.js","webpack:///./src/pages/Management/plaid/FinancialAccountDetails/keys/methods/list/getUnlinkedUpsertDetails.js","webpack:///./src/services/BankAccounts/BankAccount/UpsertBankAccountForClient.js","webpack:///./src/pages/Management/plaid/FinancialAccountDetails/keys/methods/list/upsertLinked.js","webpack:///./src/pages/Management/plaid/FinancialAccountDetails/keys/methods/list/upsertUnlinked.js","webpack:///./src/services/BankAccounts/BankAccount/Delete.js","webpack:///./src/pages/Management/plaid/FinancialAccountDetails/keys/methods/list/eraseLinkedAccount.js","webpack:///./src/services/BankAccounts/BankAccountUnlinked/Delete.js","webpack:///./src/pages/Management/plaid/FinancialAccountDetails/keys/methods/list/eraseUnlinkedAccount.js","webpack:///./src/pages/Management/plaid/FinancialAccountDetails/keys/methods/index.js","webpack:///./src/pages/Management/plaid/FinancialAccountDetails/keys/computed.js","webpack:///./src/pages/Management/plaid/FinancialAccountDetails/keys/mounted.js","webpack:///src/pages/Management/plaid/FinancialAccountDetails/index.vue","webpack:///./src/pages/Management/plaid/FinancialAccountDetails/index.vue?c781","webpack:///./src/pages/Management/plaid/FinancialAccountDetails/index.vue","webpack:///./src/services/BankAccounts/BankAccountUnlinked/UpsertBankAccountForClient.js","webpack:///./node_modules/core-js/internals/number-parse-float.js","webpack:///./src/services/CheckbookReconciliation/FinancialInstitution/Post.js","webpack:///./src/pages/Management/plaid/List/components/Menu.vue?fe1d","webpack:///./node_modules/core-js/modules/es.number.to-fixed.js","webpack:///./node_modules/core-js/modules/es.number.parse-float.js"],"names":["filterAccounts","accounts","filter","account","isLinked","_get","listBankAccounts","filterUnlinked","params","message","kms","get","result","Array","isArray","console","info","Error","bankAccounts","successful","error","parseDate","date","format","debug","parsed","moment","isValid","exception","classof","module","exports","value","TypeError","render","_vm","this","_h","$createElement","_c","_self","style","height","attrs","region","filters","rows","columns","perPage","loading","scopedSlots","_u","key","fn","staticStyle","_v","_s","$t","staticClass","position","top","right","class","show","float","marginTop","on","toggleFilters","proxy","staticRenderFns","listUnlinkedBankAccounts","unlinkedBankAccounts","results","$event","onAccountDetailsClick","onReconcileClick","props","id","Number","Function","component","methods","refresh","list","hoaID","then","concat","notifyProblem","parseAccounts","dateFormat","map","accountType","processIsLinked","isClosed","bankAccountID","accountName","financialInstitutionName","defaultTargetDate","name","institution","balance","parseFloat","toFixed","createdDate","menu","Menu","redirectToAccountDetails","redirectToReconcile","$router","push","financialInstitution","finInstBankName","data","title","role","ariaLabel","field","label","aria","width","sortable","searchable","prefix","numeric","boolean","computed","mapState","state","components","watch","hoaId","mounted","i18n","messages","en","undefined","ref","handleSubmit","preventDefault","upsert","margin","padding","_e","model","callback","$$v","$set","expression","bankAccountTypes","_l","option","domProps","Object","assign","display","breakpoint","flexDirection","marginRight","plaidAccountType","plaidAccountMask","interestIncomeAccounts","errors","activityReady","paddingBottom","justifyContent","alignItems","log","getBankAccountListings","listings","update","finAccountName","parseInt","isInteger","showUnreconciledOnly","parseListings","tx","formatDate","transactionDate","payee","description","amount","checkNumber","clearedDate","user","selectedHoaId","ModernTable","isOpen","modalContent","modal","maxHeight","prevToolTip","length","prevPrevented","prevStep","nextToolTip","nextPrevented","nextStep","step","open","Modal","PlaidLink","type","String","default","selectedRow","row","bankAccountListingID","financialAccountID","plaidAccountIds","bankAccountListings","txsRows","formatCurrency","details","TxDetails","financialInstitutionID","notifyError","upsertLinked","upsertUnlinked","Promise","resolve","setTimeout","skipPresets","PRESET_FORM_VALUES","freeze","bankName","accountNumber","routingNumber","bankAccountTypeID","bankDataProviderAccountID","bankGLAccountID","interestIncomeGLAccountID","found","errorMessage","accountIsClosed","assetAccounts","confirmModal","getBankAccount","bankAccount","getUnlinkedBankAccount","unlinkedBankAccount","formData","$refs","form","reset","getProviderId","$route","_cloneDeep","loadBankAccountTypesList","currentFinancialInstitutionName","getGLAccountsList","parseTypes","parsedAccounts","activity","getDefaultProviderByName","provider","providerName","isDefault","bankDataProviderID","parseInteger","eraseAccount","$buefy","dialog","confirm","confirmText","hasIcon","onConfirm","eraseLinkedAccount","eraseUnlinkedAccount","getLinkedUpsertDetails","today","toDate","plaidInstitutionId","closedDate","modifiedDate","getUnlinkedUpsertDetails","toString","newFinInstName","addFinInstituion","json","providerInstitutionID","setAsUnlinked","upsertBankAccountForClient","purpose","post","notifyMessage","ValidationError","setErrors","fields","upsertUnlinkedBankAccountForClient","deleteBankAccount","delete","deleteUnlinkedBankAccount","mapActions","openUpdateModal","updateModal","$emit","onCancel","win","bankaccount","selectedPlaidAccountIds","selectedPlaidInstitutionId","txsColumns","Activity","PageContent","UpdateModal","ValidInput","ValidSelect","ValidationObserver","ValidationProvider","global","trim","whitespaces","$parseFloat","FORCED","Infinity","string","trimmedString","charAt","path","$","toInteger","thisNumberValue","repeat","fails","nativeToFixed","floor","Math","pow","x","n","acc","x2","call","target","proto","forced","fractionDigits","e","z","j","k","number","fractDigits","sign","multiply","c","index","c2","divide","dataToString","s","t","RangeError","slice","stat"],"mappings":"uNAEO,SAASA,EAAT,GAAsC,IAAZC,EAAY,EAAZA,SAC/B,OAAOA,EAASC,QAAO,SAAAC,GACrB,IAAMC,EAAWC,IAAKF,EAAS,WAAY,MAC3C,OAAiB,IAAbC,KCcD,SAAeE,IAAtB,+B,8DAAO,wKAAyE,GAAzE,IAAkCC,sBAAlC,aAAyDC,cAAzD,MAAkE,GAAlE,EACDC,EADC,0FAIkBC,OAAIC,IAAJ,iCAA0C,CAC7DH,WALC,UAIGI,EAJH,OAQGX,EAAWI,IAAKO,EAAQ,UAAW,IACpCC,MAAMC,QAAQb,GAThB,uBAUDc,QAAQC,KAAKJ,GACP,IAAIK,MAAJ,8CAXL,eAcCC,EAAe,GAEjBA,EADEX,EACaP,EAAe,CAAEC,aAEjBA,EAlBd,kBAqBI,CACLkB,YAAY,EACZV,QAAS,GACTG,SAEAM,iBA1BC,qCA6BHH,QAAQK,MAAR,MA7BG,iCAkCE,CACLD,YAAY,EACZV,UACAG,OAAQ,KAERM,aAAc,KAvCX,0D,8DCnBP,2DAQaG,EAAY,SAACC,GAAwB,IAAlBC,EAAkB,uDAAT,KACvC,GAAoB,kBAATD,EAET,OADAP,QAAQS,MAAR,+CAA8D,CAAEF,SACzDA,EAGT,IACE,IAAMG,EAASC,IAAOJ,GAClBG,EAAOE,YACTL,EAAOI,IAAOJ,GAAMC,OAAOA,IAE7B,MAAOK,GACHA,GAAaA,EAAUnB,QACzBM,QAAQK,MAAMQ,EAAUnB,SAExBM,QAAQK,MAAMQ,GAIlB,OAAON,I,uBC3BT,IAAIO,EAAU,EAAQ,QAItBC,EAAOC,QAAU,SAAUC,GACzB,GAAoB,iBAATA,GAAuC,UAAlBH,EAAQG,GACtC,MAAMC,UAAU,wBAElB,OAAQD,I,2CCRV,IAAIE,EAAS,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AGU,EAAG,GACxDC,GAAK,iBACLD,EAAI,GAAKA,EACLA,EAAI,EAAG,CACTO,EAAS,EAAGN,GACZC,EAAIG,EACJ,MAAOH,GAAK,EACVK,EAAS,IAAK,GACdL,GAAK,EAEPK,EAASjB,EAAI,GAAIY,EAAG,GAAI,GACxBA,EAAIF,EAAI,EACR,MAAOE,GAAK,GACVS,EAAO,GAAK,IACZT,GAAK,GAEPS,EAAO,GAAKT,GACZK,EAAS,EAAG,GACZI,EAAO,GACPhV,EAASiV,SAETL,EAAS,EAAGN,GACZM,EAAS,IAAMP,EAAG,GAClBrU,EAASiV,IAAiB3B,EAAOU,KAAK,IAAKU,GAU7C,OAPEA,EAAc,GAChBF,EAAIxU,EAAOmL,OACXnL,EAAS2U,GAAQH,GAAKE,EAClB,KAAOpB,EAAOU,KAAK,IAAKU,EAAcF,GAAKxU,EAC3CA,EAAOqV,MAAM,EAAGb,EAAIE,GAAe,IAAM1U,EAAOqV,MAAMb,EAAIE,KAE9D1U,EAAS2U,EAAO3U,EACTA,M,qBC3Hb,IAAImT,EAAI,EAAQ,QACZ1N,EAAa,EAAQ,QAIzB0N,EAAE,CAAEc,OAAQ,SAAUqB,MAAM,EAAMnB,OAAQjQ,OAAOuB,YAAcA,GAAc,CAC3EA,WAAYA,K","file":"js/bankAccounts.6659bb90.js","sourcesContent":["import _get from 'lodash/get'\r\n\r\nexport function filterAccounts({ accounts }) {\r\n return accounts.filter(account => {\r\n const isLinked = _get(account, 'isLinked', null)\r\n if (isLinked === true) {\r\n return true\r\n }\r\n\r\n return false\r\n })\r\n}\r\n","/*\r\n example:\r\n import { notifyProblem } from '@/services/notify'\r\n\r\n import { listBankAccounts } from '@/services/BankAccounts/BankAccount/List';\r\n\r\n const { bankAccounts, successful, mesage } = await listBankAccounts ({\r\n params: {\r\n hoaID: '',\r\n // hasCheckingOnly: true\r\n }\r\n })\r\n*/\r\n\r\nimport kms from '@/services/kms'\r\nimport _get from 'lodash/get'\r\n\r\nimport { filterAccounts } from './_utilities/filterAccounts'\r\n\r\nexport async function listBankAccounts({ filterUnlinked = true, params = {} } = {}) {\r\n let message = `A problem occurred and the bank accounts list could not be retrieved.`\r\n\r\n try {\r\n const result = await kms.get(`/BankAccounts/BankAccount/List`, {\r\n params\r\n })\r\n\r\n const accounts = _get(result, 'results', [])\r\n if (!Array.isArray(accounts)) {\r\n console.info(result)\r\n throw new Error(`Bank accounts wasn't returned as an array.`)\r\n }\r\n\r\n let bankAccounts = []\r\n if (filterUnlinked) {\r\n bankAccounts = filterAccounts({ accounts })\r\n } else {\r\n bankAccounts = accounts\r\n }\r\n\r\n return {\r\n successful: true,\r\n message: '',\r\n result,\r\n //\r\n bankAccounts\r\n }\r\n } catch (exception) {\r\n console.error(exception)\r\n }\r\n\r\n // notifyProblem (message);\r\n\r\n return {\r\n successful: false,\r\n message,\r\n result: null,\r\n //\r\n bankAccounts: []\r\n }\r\n}\r\n","/*\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","var classof = require('../internals/classof-raw');\n\n// `thisNumberValue` abstract operation\n// https://tc39.github.io/ecma262/#sec-thisnumbervalue\nmodule.exports = function (value) {\n if (typeof value != 'number' && classof(value) != 'Number') {\n throw TypeError('Incorrect invocation');\n }\n return +value;\n};\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('PageContent',{style:({\n height: \"calc(100vh - 64px)\"\n }),attrs:{\"tests-id\":\"bankAccounts-page\",\"containerStyles\":{ height: '100%' },\"id\":\"bankAccounts-page\"}},[_c('div',[_c('ModernTable',{attrs:{\"region\":_vm.region,\"filters\":_vm.filters,\"rows\":_vm.rows,\"columns\":_vm.columns,\"pagination\":{\n perPage: 12\n },\"loading\":_vm.loading},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_c('h3',{staticStyle:{\"display\":\"inline-block\"}},[_vm._v(_vm._s(_vm.$t('title')))]),_c('div',{staticClass:\"buttons\"},[_c('b-button',{attrs:{\"tests-id\":\"add-linked\",\"tag\":\"router-link\",\"to\":\"/account/createlinked\",\"type\":\"is-primary\",\"rounded\":\"\"}},[_vm._v(\" Add Linked \")]),_c('b-button',{attrs:{\"tests-id\":\"add-un-linked\",\"tag\":\"router-link\",\"to\":\"/account/createunlinked\",\"type\":\"is-primary\",\"rounded\":\"\"}},[_vm._v(\" Add Un-linked \")]),_c('b-button',{attrs:{\"tests-id\":\"reconciliation-details\",\"tag\":\"router-link\",\"to\":\"bankAccountReconcileDetailList\",\"type\":\"is-primary\",\"rounded\":\"\"}},[_vm._v(\" Reconciliation Details \")])],1),_c('div',{style:({ position: 'absolute', top: 0, right: 0 })},[_c('b-button',{class:'filter-button ' + (_vm.filters.show ? 'active' : ''),style:({\n float: 'right',\n marginTop: '4px'\n }),attrs:{\"type\":\"is-ghost\"},on:{\"click\":_vm.toggleFilters}},[_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 example:\r\n import { listUnlinkedBankAccounts } from '@/services/BankAccountUnlinked/BankAccount/List';\r\n import { notifyProblem } from '@/services/notify'\r\n\r\n await listBankAccounts ({\r\n params: {\r\n hoaID: \r\n }\r\n })\r\n .then (({ successful, message, unlinkedBankAccounts }) => {\r\n if (!successful) {\r\n notifyProblem (message);\r\n return;\r\n }\r\n })\r\n \r\n*/\r\n\r\nimport kms from '@/services/kms'\r\n\r\nexport async function listUnlinkedBankAccounts({ params = {} } = {}) {\r\n try {\r\n const result = await kms.get(`/BankAccounts/BankAccountUnlinked/List`, { params })\r\n\r\n return {\r\n successful: true,\r\n message: '',\r\n result,\r\n //\r\n unlinkedBankAccounts: result.results\r\n }\r\n } catch (exception) {\r\n console.error(exception)\r\n }\r\n\r\n return {\r\n successful: false,\r\n message: `A problem occurred and the bank accounts list could not be retrieved.`,\r\n result: null,\r\n //\r\n bankAccounts: []\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',{attrs:{\"id\":\"menucontrol\"}},[_c('b-dropdown',{attrs:{\"aria-role\":\"menu\",\"position\":\"is-bottom-left\",\"close-on-click\":false},scopedSlots:_vm._u([{key:\"trigger\",fn:function(){return [_c('b-button',{staticClass:\"ellipsisbutton font-bold button is-info is-light is-small is-outline is-rounded\",attrs:{\"icon-right\":\"menu-down\"}},[_vm._v(\"More Actions\")])]},proxy:true}])},[_c('div',[_c('b-dropdown-item',{staticClass:\"ellipsis font-bold button is-info is-light is-small is-outline\",attrs:{\"aria-role\":\"menuitem\",\"has-link\":\"\"},on:{\"click\":function($event){return _vm.onAccountDetailsClick()}}},[_vm._v(\" Account Details \")])],1),_c('div',[_c('b-dropdown-item',{staticClass:\"ellipsis font-bold button is-info is-light is-small is-outline\",attrs:{\"aria-role\":\"menuitem\",\"has-link\":\"\"},on:{\"click\":function($event){return _vm.onReconcileClick()}}},[_vm._v(\"Reconcile \")])],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n \r\n \r\n More Actions\r\n \r\n \r\n \r\n Account Details\r\n \r\n \r\n \r\n Reconcile\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!./Menu.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!./Menu.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Menu.vue?vue&type=template&id=1bb727dd&scoped=true&\"\nimport script from \"./Menu.vue?vue&type=script&lang=js&\"\nexport * from \"./Menu.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Menu.vue?vue&type=style&index=0&id=1bb727dd&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 \"1bb727dd\",\n null\n \n)\n\nexport default component.exports","/*\r\n\r\n\r\n*/\r\n\r\nimport { listBankAccounts } from '@/services/BankAccounts/BankAccount/List'\r\nimport { listUnlinkedBankAccounts } from '@/services/BankAccounts/BankAccountUnlinked/List'\r\n\r\nimport { notifyProblem } from '@/services/notify'\r\n\r\nimport _get from 'lodash/get'\r\nimport { parseDate } from '@/utilities/Date/parse'\r\nimport Menu from './../components/Menu'\r\n\r\nexport const methods = {\r\n async refresh() {\r\n this.loading = true\r\n\r\n let list = []\r\n\r\n await listBankAccounts({\r\n params: {\r\n hoaID: this.hoaID\r\n }\r\n }).then(({ successful, message, bankAccounts }) => {\r\n if (!successful) {\r\n notifyProblem(message)\r\n return\r\n }\r\n\r\n list = list.concat(bankAccounts)\r\n })\r\n\r\n await listUnlinkedBankAccounts({\r\n params: {\r\n hoaID: this.hoaID\r\n }\r\n }).then(({ successful, message, unlinkedBankAccounts }) => {\r\n if (!successful) {\r\n notifyProblem(message)\r\n return\r\n }\r\n\r\n list = list.concat(unlinkedBankAccounts)\r\n })\r\n\r\n this.rows = this.parseAccounts({ accounts: list })\r\n\r\n this.loading = false\r\n },\r\n\r\n toggleFilters: function() {\r\n this.filters.show = !this.filters.show\r\n },\r\n\r\n parseAccounts({ accounts }) {\r\n if (!Array.isArray(accounts)) {\r\n return []\r\n }\r\n\r\n const dateFormat = 'LL'\r\n\r\n return accounts.map(account => {\r\n const isLinked = _get(account, 'isLinked', null)\r\n\r\n let accountType\r\n if (isLinked) {\r\n accountType = _get(account, 'plaidAccountType', null)\r\n } else {\r\n accountType = _get(account, 'accountType', null)\r\n }\r\n\r\n let processIsLinked = 'no'\r\n if (isLinked && isLinked === true) {\r\n processIsLinked = 'yes'\r\n }\r\n\r\n let isClosed = _get(account, 'isClosed', null)\r\n if (isClosed && isClosed === true) {\r\n isClosed = 'yes'\r\n } else {\r\n isClosed = 'no'\r\n }\r\n\r\n const bankAccountID = _get(account, 'bankAccountID', 0)\r\n const accountName = _get(account, 'name', '')\r\n const financialInstitutionName = _get(account, 'bankAcfinancialInstitution.namecountID', '')\r\n const defaultTargetDate = _get(account, 'defaultTargetDate', '')\r\n\r\n return {\r\n name: _get(account, 'name', null),\r\n\r\n institution: _get(account, 'financialInstitution.name', null),\r\n balance: Number.parseFloat(_get(account, 'summedBankAccountListings', 0)).toFixed(2),\r\n accountType,\r\n isClosed,\r\n processIsLinked,\r\n createdDate: {\r\n date: parseDate(_get(account, 'createdDate', null), dateFormat),\r\n format: dateFormat\r\n },\r\n menu: {\r\n component: Menu,\r\n props: {\r\n onAccountDetailsClick: () => {\r\n this.redirectToAccountDetails(bankAccountID)\r\n },\r\n onReconcileClick: () => {\r\n this.redirectToReconcile(\r\n bankAccountID,\r\n accountName,\r\n financialInstitutionName,\r\n defaultTargetDate\r\n )\r\n }\r\n }\r\n }\r\n }\r\n })\r\n },\r\n\r\n redirectToAccountDetails(id) {\r\n this.$router.push({\r\n name: 'bankAccount',\r\n params: {\r\n id: id\r\n }\r\n })\r\n },\r\n\r\n redirectToReconcile(id, name, financialInstitution, defaultTargetDate) {\r\n this.$router.push({\r\n name: 'bankAccountReconcile',\r\n params: {\r\n id: id,\r\n finInstBankName: `${name} - ${financialInstitution}`,\r\n defaultTargetDate: defaultTargetDate\r\n }\r\n })\r\n }\r\n}\r\n","export function data() {\r\n return {\r\n loading: false,\r\n\r\n region: {\r\n title: this.$t('title'),\r\n role: 'main',\r\n ariaLabel: this.$t('title')\r\n },\r\n filters: {\r\n show: false\r\n },\r\n rows: [],\r\n columns: [\r\n {\r\n field: 'name',\r\n\r\n label: 'Name',\r\n aria: 'Name',\r\n width: '10%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'institution',\r\n\r\n label: 'Institution',\r\n aria: 'Institution',\r\n width: '10%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'balance',\r\n prefix: '$',\r\n numeric: true,\r\n\r\n label: 'Balance',\r\n aria: 'Balance',\r\n width: '10%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'accountType',\r\n\r\n label: 'Account Type',\r\n aria: 'Account Type',\r\n width: '10%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'isClosed',\r\n boolean: true,\r\n\r\n label: 'Is Closed',\r\n aria: 'Is Closed',\r\n width: '10%',\r\n sortable: true,\r\n searchable: [\r\n {\r\n label: 'all',\r\n filter: ''\r\n },\r\n {\r\n label: 'yes',\r\n filter: 'yes'\r\n },\r\n {\r\n label: 'no',\r\n filter: 'no'\r\n }\r\n ]\r\n },\r\n {\r\n field: 'processIsLinked',\r\n boolean: true,\r\n\r\n label: 'Is Linked',\r\n aria: 'Is Linked',\r\n width: '10%',\r\n sortable: true,\r\n searchable: [\r\n {\r\n label: 'all',\r\n filter: ''\r\n },\r\n {\r\n label: 'yes',\r\n filter: 'yes'\r\n },\r\n {\r\n label: 'no',\r\n filter: 'no'\r\n }\r\n ]\r\n },\r\n {\r\n field: 'createdDate',\r\n date: true,\r\n label: 'Created',\r\n aria: 'Created',\r\n width: '10%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'menu',\r\n width: '10%'\r\n }\r\n /*{\r\n field: 'details',\r\n width: '5%'\r\n },\r\n {\r\n field: 'reconciliation',\r\n width: '5%'\r\n }*/\r\n ]\r\n }\r\n}\r\n","//\r\n//\r\nimport { mapState } from 'vuex'\r\nimport _get from 'lodash/get'\r\n//\r\nexport const computed = {\r\n ...mapState({\r\n hoaID: state => _get(state, ['user', 'selectedHoaId'], null)\r\n })\r\n}\r\n","\r\n \r\n \r\n \r\n \r\n {{ $t('title') }}\r\n \r\n \r\n Add Linked\r\n \r\n \r\n Add Un-linked\r\n \r\n \r\n Reconciliation Details\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","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=1623a00e&\"\nimport script from \"./Main.vue?vue&type=script&lang=js&\"\nexport * from \"./Main.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('PageContent',{attrs:{\"title\":_vm.$t('bankAccount.detailsTitle')}},[(_vm.found)?_c('div',[(_vm.account && _vm.account != undefined)?_c('div',{staticClass:\"box is-8\"},[_c('ValidationObserver',{ref:\"form\",scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar handleSubmit = ref.handleSubmit;\nreturn [_c('transition',{attrs:{\"name\":\"fade\",\"mode\":\"out-in\",\"appear\":\"\"}},[_c('form',{staticClass:\"form\",on:{\"submit\":function($event){$event.preventDefault();return handleSubmit(_vm.upsert)}}},[_c('fieldset',[_c('div',{staticClass:\"form-grid\"},[(_vm.isLinked)?_c('div',{staticClass:\"column is-8 has-text-left\"},[_c('b-field',{attrs:{\"label\":\"Account Name\"}},[_c('h4',{style:({\n margin: 0,\n padding: 0\n })},[_vm._v(\" \"+_vm._s(_vm.account.name)+\" \")])])],1):_vm._e(),(!_vm.isLinked)?_c('div',{staticClass:\"column is-8\"},[_c('valid-input',{attrs:{\"vid\":\"name\",\"name\":\"Account Name\",\"label\":\"Account Name\",\"placeholder\":\"Account Number\",\"type\":\"text\",\"disabled\":true,\"readonly\":true,\"rules\":\"required\"},model:{value:(_vm.account.name),callback:function ($$v) {_vm.$set(_vm.account, \"name\", $$v)},expression:\"account.name\"}})],1):_vm._e(),(\n !_vm.isLinked &&\n _vm.bankAccountTypes &&\n _vm.bankAccountTypes != undefined &&\n _vm.account &&\n _vm.account != undefined\n )?_c('div',{staticClass:\"column is-8\"},[_c('valid-select',{attrs:{\"placeholder\":\"Account Type\",\"label\":\"Account Type\",\"vid\":\"accountType\",\"rules\":\"required\",\"disabled\":true,\"readonly\":true},model:{value:(_vm.account.bankAccountTypeID),callback:function ($$v) {_vm.$set(_vm.account, \"bankAccountTypeID\", $$v)},expression:\"account.bankAccountTypeID\"}},_vm._l((_vm.bankAccountTypes),function(option){return _c('option',{key:option.value,domProps:{\"value\":option.value}},[_vm._v(_vm._s(option.label))])}),0)],1):_vm._e(),(!_vm.isLinked)?_c('div',{staticClass:\"column is-8\"},[_c('valid-input',{attrs:{\"vid\":\"financialInstitutionName\",\"name\":\"Financial Institution Name\",\"label\":\"Financial Institution Name\",\"placeholder\":\"Financial Institution Name\",\"type\":\"text\",\"disabled\":true,\"readonly\":true,\"rules\":\"required\"},model:{value:(_vm.account.financialInstitution.name),callback:function ($$v) {_vm.$set(_vm.account.financialInstitution, \"name\", $$v)},expression:\"account.financialInstitution.name\"}})],1):_vm._e(),_c('div',{staticClass:\"column is-8\",style:(Object.assign({}, {display: 'flex'},\n (_vm.breakpoint === 'desktop'\n ? { flexDirection: 'row' }\n : { flexDirection: 'column' })))},[(_vm.isLinked)?_c('b-field',{style:({ marginRight: '8px' }),attrs:{\"label\":\"Financial Instituion\",\"disabled\":true,\"readonly\":true}},[_c('b-tag',{style:({\n margin: 0\n }),attrs:{\"size\":\"is-large\"}},[_vm._v(_vm._s(_vm.account.financialInstitution.name))])],1):_vm._e(),(_vm.isLinked)?_c('b-field',{style:({ marginRight: '8px' }),attrs:{\"label\":\"Linked Account\"}},[_c('b-tag',{attrs:{\"size\":\"is-large\"}},[_vm._v(_vm._s(_vm.account.plaidAccountType))])],1):_vm._e(),(_vm.isLinked)?_c('b-field',{attrs:{\"label\":\"Account Number\"}},[_c('b-tag',{attrs:{\"size\":\"is-large\"}},[_vm._v(\"**** **** **** \"+_vm._s(_vm.account.plaidAccountMask))])],1):_vm._e()],1),_c('div',{staticClass:\"column is-8\"},[_c('valid-select',{attrs:{\"placeholder\":\"Asset Account\",\"label\":\"Asset Account\",\"vid\":\"assetAccount\",\"rules\":\"required\",\"disabled\":true,\"readonly\":true},model:{value:(_vm.account.bankGLAccountID),callback:function ($$v) {_vm.$set(_vm.account, \"bankGLAccountID\", $$v)},expression:\"account.bankGLAccountID\"}},_vm._l((_vm.assetAccounts),function(option){return _c('option',{key:option.value,domProps:{\"value\":option.value}},[_vm._v(_vm._s(option.label))])}),0)],1),(\n _vm.interestIncomeAccounts &&\n _vm.interestIncomeAccounts != undefined &&\n _vm.account &&\n _vm.account != undefined\n )?_c('div',{staticClass:\"column is-8\"},[_c('valid-select',{attrs:{\"placeholder\":\"Interest Income\",\"label\":\"Interest Income\",\"vid\":\"interestIncome\",\"rules\":\"required\",\"disabled\":true,\"readonly\":true},model:{value:(_vm.account.interestIncomeGLAccountID),callback:function ($$v) {_vm.$set(_vm.account, \"interestIncomeGLAccountID\", $$v)},expression:\"account.interestIncomeGLAccountID\"}},_vm._l((_vm.interestIncomeAccounts),function(option){return _c('option',{key:option.value,domProps:{\"value\":option.value}},[_vm._v(_vm._s(option.label))])}),0)],1):_vm._e(),(!_vm.isLinked && _vm.account && _vm.account != undefined)?_c('div',{staticClass:\"column is-8\"},[_c('valid-input',{attrs:{\"vid\":\"accountNumber\",\"name\":\"Account Number\",\"label\":\"Account Number\",\"maxlength\":\"34\",\"type\":\"text\",\"placeholder\":\"Account Number\",\"disabled\":true,\"readonly\":true,\"rules\":\"required|max:34|numeric\"},model:{value:(_vm.account.accountNumber),callback:function ($$v) {_vm.$set(_vm.account, \"accountNumber\", $$v)},expression:\"account.accountNumber\"}})],1):_vm._e(),(!_vm.isLinked && _vm.account && _vm.account != undefined)?_c('div',{staticClass:\"column is-8\"},[_c('valid-input',{attrs:{\"vid\":\"routingNumber\",\"name\":\"Routing Number\",\"label\":\"Routing Number\",\"maxlength\":\"9\",\"type\":\"text\",\"placeholder\":\"Routing Number\",\"disabled\":true,\"readonly\":true,\"rules\":\"required|max:9|length:9|numeric\"},model:{value:(_vm.account.routingNumber),callback:function ($$v) {_vm.$set(_vm.account, \"routingNumber\", $$v)},expression:\"account.routingNumber\"}})],1):_vm._e(),_c('div',{staticClass:\"column is-8 card\"},[_c('b-field',{attrs:{\"label\":\"Account is Closed\"}},[_vm._v(\" \"+_vm._s((\"\" + (_vm.account.isClosed === true ? 'Yes' : 'No')))+\" \")])],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)])])]}}],null,false,1049483527)})],1):_vm._e(),_c('Activity',{ref:\"activity\",attrs:{\"ready\":_vm.activityReady,\"isLinked\":_vm.isLinked,\"bankAccountID\":_vm._get(_vm.account, 'bankAccountID', ''),\"finInstBankName\":_vm._get(_vm.account, ['financialInstitution', 'name'], ''),\"finAccountName\":_vm._get(_vm.account, 'name', '')}}),_c('UpdateModal',{ref:\"updateModal\"})],1):_vm._e(),_c('b-loading',{attrs:{\"is-full-page\":true,\"can-cancel\":false},model:{value:(_vm.loading),callback:function ($$v) {_vm.loading=$$v},expression:\"loading\"}})],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('div',{staticClass:\"card\",style:({ paddingBottom: '20px' })},[_c('div',{style:({\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n margin: '20px'\n })},[_c('h4',{style:({ margin: 0 })},[_vm._v(\"Bank Account Listings\")])]),_c('ModernTable',{attrs:{\"columns\":_vm.columns,\"rows\":_vm.rows,\"filters\":{\n show: true\n },\"pagination\":{\n perPage: 12\n }}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export const watch = {\r\n hoaId(hoaId) {\r\n console.log('hoaId', hoaId)\r\n //this.refresh()\r\n },\r\n bankAccountID(bankAccountID) {\r\n console.log('watch', bankAccountID)\r\n // this.refresh()\r\n },\r\n activityReady(activityReady) {\r\n console.log('activityReady', activityReady)\r\n\r\n // this.refresh ()\r\n }\r\n}\r\n","/*\r\n\timport { getBankAccountListings } from '@/services/CheckbookReconciliation/BankAccountListing/List';\r\n\r\n await getBankAccountListings ({\r\n params: {\r\n\t\t\thoaID,\r\n \r\n //\r\n // optional\r\n bankAccountID: \r\n showUnreconciledOnly:\r\n targetDate: \r\n startDate:\r\n }\r\n })\r\n .then (({ listings, successful, message }) => {\r\n if (!successful) {\r\n console.error (message);\r\n throw new Error (message);\r\n }\r\n })\r\n\r\n*/\r\n\r\nimport kms from '@/services/kms'\r\nimport _get from 'lodash/get'\r\n\r\nexport async function getBankAccountListings({ params }) {\r\n let message = 'The transactions list could not be retrieved.'\r\n\r\n try {\r\n const result = await kms.get(`/CheckbookReconciliation/BankAccountListing/List`, {\r\n params\r\n })\r\n\r\n let list = _get(result, 'results', [])\r\n if (!Array.isArray(list)) {\r\n list = []\r\n }\r\n\r\n return {\r\n successful: true,\r\n message,\r\n listings: list\r\n }\r\n } catch (exception) {\r\n console.error(exception)\r\n }\r\n\r\n return {\r\n successful: false,\r\n message,\r\n listings: []\r\n }\r\n}\r\n","import { formatDate } from '@/filters'\r\nimport { getBankAccountListings } from '@/services/CheckbookReconciliation/BankAccountListing/List'\r\nimport _get from 'lodash/get'\r\nimport { notifyProblem } from '@/services/notify'\r\n\r\nexport const methods = {\r\n async update({ isLinked, bankAccountID, finInstBankName, finAccountName }) {\r\n /*\r\n :isLinked=\"isLinked\"\r\n :bankAccountID=\"_get(account, 'bankAccountID', '')\"\r\n :finInstBankName=\"_get(account, ['financialInstitution', 'name'], '')\"\r\n :finAccountName=\"_get(account, 'name', '')\"\r\n */\r\n\r\n console.log('update')\r\n\r\n this.isLinked = isLinked\r\n this.bankAccountID = bankAccountID\r\n this.finInstBankName = finInstBankName\r\n this.finAccountName = finAccountName\r\n\r\n this.refresh()\r\n },\r\n async refresh() {\r\n console.log('refresh', this.activityReady)\r\n\r\n const hoaID = this.hoaId\r\n\r\n const bankAccountID = parseInt(this.bankAccountID)\r\n if (!Number.isInteger(bankAccountID) || bankAccountID <= 0) {\r\n notifyProblem(`A problem occurred and the bank account id could not be parsed.`)\r\n return\r\n }\r\n\r\n await getBankAccountListings({\r\n params: {\r\n hoaID,\r\n\r\n bankAccountID,\r\n showUnreconciledOnly: false\r\n }\r\n }).then(({ listings, successful, message }) => {\r\n if (!successful) {\r\n console.error(message)\r\n throw new Error(message)\r\n }\r\n\r\n this.rows = this.parseListings({ listings })\r\n })\r\n\r\n console.log('rows', this.rows)\r\n },\r\n parseListings({ listings }) {\r\n // const financialInstitution = this.finInstBankName\r\n // const accountName = this.finAccountName\r\n\r\n // const isLinked = this.isLinked\r\n\r\n return listings.map(tx => {\r\n return {\r\n date: formatDate(tx.transactionDate),\r\n\r\n payee: _get(tx, ['bankAccount', 'name'], ''),\r\n description: _get(tx, ['description'], ''),\r\n amount: Number.parseFloat(_get(tx, ['amount'], 0)).toFixed(2),\r\n\r\n checkNumber: _get(tx, ['checkNumber'], ''),\r\n\r\n clearedDate: formatDate(_get(tx, ['clearedDate'], ''))\r\n\r\n /*\r\n this is a button for editing an particular\r\n bank account listing\r\n \r\n ...(!isLinked\r\n ? {\r\n details: {\r\n component: TxDetails,\r\n props: {\r\n id: _get(tx, ['bankAccountListingID'], ''),\r\n finInstBankName: `${financialInstitution} - ${accountName}`\r\n }\r\n }\r\n }\r\n : {})\r\n */\r\n }\r\n })\r\n }\r\n}\r\n","export function data() {\r\n return {\r\n rows: []\r\n }\r\n}\r\n","import { mapState } from 'vuex'\r\n\r\nexport const computed = {\r\n ...mapState({\r\n hoaId: state => state.user.selectedHoaId\r\n }),\r\n columns() {\r\n // const isLinked = this.isLinked\r\n\r\n return [\r\n {\r\n field: 'date',\r\n label: 'Date',\r\n width: '20%',\r\n\r\n date: true,\r\n\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'payee',\r\n label: 'Payee',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'description',\r\n label: 'Description',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'amount',\r\n prefix: '$',\r\n numeric: true,\r\n label: 'Amount',\r\n aria: 'Amount',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'checkNumber',\r\n label: 'Check Number',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'clearedDate',\r\n label: 'Cleared Date',\r\n sortable: true,\r\n searchable: true\r\n }\r\n\r\n /*\r\n ...(!isLinked\r\n ? [\r\n {\r\n field: 'details',\r\n label: ''\r\n }\r\n ]\r\n : [])\r\n */\r\n ]\r\n }\r\n}\r\n","\r\n \r\n \r\n Bank Account Listings\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!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=3e39ccf9&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"update-modal\":\"\"}},[_c('Modal',{attrs:{\"toggle\":_vm.isOpen,\"styles\":{\n modalContent: { height: '500px' },\n modal: { maxHeight: '90vh' }\n }},on:{\"update:toggle\":function($event){_vm.isOpen=$event}},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_vm._v(\"Bank Account Updater\")]},proxy:true},{key:\"footer\",fn:function(){return [_c('div',{style:({ float: 'right' })},[_c('b-tooltip',{attrs:{\"active\":_vm.prevToolTip.length >= 1,\"label\":_vm.prevToolTip,\"position\":\"is-right\"}},[_c('b-button',{style:({ marginRight: '8px' }),attrs:{\"prev-button\":\"\",\"icon-left\":\"chevron-left\",\"size\":\"is-medium\",\"disabled\":_vm.prevPrevented},on:{\"click\":_vm.prevStep}})],1),_c('b-tooltip',{attrs:{\"active\":_vm.nextToolTip.length >= 1,\"label\":_vm.nextToolTip,\"position\":\"is-left\"}},[_c('b-button',{attrs:{\"next-button\":\"\",\"icon-left\":\"chevron-right\",\"size\":\"is-medium\",\"disabled\":_vm.nextPrevented},on:{\"click\":_vm.nextStep}})],1)],1)]},proxy:true}])},[_c('div',[_c('transition',{attrs:{\"name\":\"fade\",\"mode\":\"out-in\",\"appear\":\"\"}},[_c('b-steps',{attrs:{\"has-navigation\":false,\"label-position\":\"bottom\",\"size\":\"is-small\"},model:{value:(_vm.step),callback:function ($$v) {_vm.step=$$v},expression:\"step\"}},[_c('b-step-item',{attrs:{\"label\":\"Link Account\"}},[_c('plaid-link')],1)],1)],1)],1),_c('b-loading',{model:{value:(_vm.loading),callback:function ($$v) {_vm.loading=$$v},expression:\"loading\"}})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export const methods = {\r\n prevStep() {},\r\n nextStep() {},\r\n open() {\r\n this.isOpen = true\r\n }\r\n}\r\n","\r\n \r\n \r\n Bank Account Updater\r\n\r\n \r\n \r\n = 1\" :label=\"prevToolTip\" position=\"is-right\">\r\n \r\n \r\n\r\n = 1\" :label=\"nextToolTip\" position=\"is-left\">\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \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!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=937bd4f8&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('router-link',{staticClass:\"button is-info is-light is-small is-outline is-rounded\",attrs:{\"to\":{\n name: 'bankaccountlisting',\n params: {\n id: _vm.id,\n finInstBankName: _vm.finInstBankName\n }\n }}},[_vm._v(\"Details\")])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n Details\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!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=799f5e04&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import { formatDate } from '@/filters'\r\nimport { formatCurrency } from '@/filters'\r\n\r\nimport _get from 'lodash/get'\r\n\r\nimport TxDetails from '../components/TxDetails'\r\n\r\nexport const watch = {\r\n hoaId() {\r\n this.refresh()\r\n },\r\n\r\n selectedRow(row) {\r\n this.$router.push({\r\n name: 'bankaccountlisting',\r\n params: {\r\n id: row.bankAccountListingID,\r\n finInstBankName: this.financialAccountID\r\n }\r\n })\r\n },\r\n\r\n plaidAccountIds(plaidAccountIds) {\r\n console.log({ plaidAccountIds })\r\n },\r\n\r\n bankAccountListings(bankAccountListings) {\r\n const financialInstitution = _get(this, ['account', 'financialInstitution', 'name'], '')\r\n const accountName = _get(this, ['account', 'name'], '')\r\n\r\n const isLinked = this.isLinked\r\n\r\n this.txsRows = bankAccountListings.map(tx => {\r\n return {\r\n date: formatDate(tx.transactionDate),\r\n\r\n payee: _get(tx, ['bankAccount', 'name'], ''),\r\n description: _get(tx, ['description'], ''),\r\n amount: formatCurrency(_get(tx, ['amount'], '')),\r\n\r\n checkNumber: _get(tx, ['checkNumber'], ''),\r\n\r\n clearedDate: formatDate(_get(tx, ['clearedDate'], '')),\r\n\r\n ...(!isLinked\r\n ? {\r\n details: {\r\n component: TxDetails,\r\n props: {\r\n id: _get(tx, ['bankAccountListingID'], ''),\r\n finInstBankName: `${financialInstitution} - ${accountName}`\r\n }\r\n }\r\n }\r\n : {})\r\n }\r\n })\r\n }\r\n}\r\n","//\r\n//\r\n//\r\nimport { notifyError } from '@/services/notify'\r\n//\r\n//\r\nexport async function upsert() {\r\n this.loading = true\r\n\r\n if (this.account.financialInstitutionID == null) {\r\n notifyError('Please link to your Plaid Bank Account.')\r\n return\r\n }\r\n\r\n if (this.isLinked) {\r\n await this.upsertLinked()\r\n } else {\r\n await this.upsertUnlinked()\r\n }\r\n\r\n await new Promise(resolve => {\r\n setTimeout(() => {\r\n resolve()\r\n }, 500)\r\n })\r\n\r\n this.refresh({ skipPresets: true })\r\n}\r\n","export const PRESET_FORM_VALUES = Object.freeze({\r\n bankName: '',\r\n accountNumber: '',\r\n routingNumber: '',\r\n bankAccountTypeID: 0,\r\n bankDataProviderAccountID: '',\r\n bankGLAccountID: 0,\r\n interestIncomeGLAccountID: 0,\r\n financialInstitution: {}\r\n})\r\n\r\nexport function data() {\r\n return {\r\n loading: true,\r\n found: null,\r\n errorMessage: null,\r\n isLinked: null,\r\n activityReady: false,\r\n account: {\r\n ...PRESET_FORM_VALUES\r\n },\r\n accountIsClosed: null,\r\n financialAccountID: '',\r\n interestIncomeAccounts: [],\r\n assetAccounts: [],\r\n confirmModal: false\r\n }\r\n}\r\n","/*\r\n example:\r\n import { getBankAccount } from '@/services/BankAccounts/BankAccount/Get';\r\n\r\n const { successful, message, bankAccount } = await getBankAccount ({\r\n bankAccountID\r\n });\r\n*/\r\n\r\nimport kms from '@/services/kms'\r\n//import { notifyProblem } from '@/services/notify'\r\n\r\nexport async function getBankAccount({ bankAccountID } = {}) {\r\n let message = `This bank account could not be found. Possibly, the necessary credentials weren't provided, it doesn't exist, or it was deleted.`\r\n\r\n try {\r\n const result = await kms.get(`/BankAccounts/BankAccount/${bankAccountID}`)\r\n\r\n return {\r\n successful: true,\r\n message: '',\r\n result,\r\n //\r\n bankAccount: result\r\n }\r\n } catch (exception) {\r\n console.error(exception)\r\n }\r\n\r\n // notifyProblem (message);\r\n\r\n return {\r\n successful: false,\r\n message,\r\n result: null,\r\n //\r\n bankAccount: null\r\n }\r\n}\r\n","/*\r\n example:\r\n import { getUnlinkedBankAccount } from '@/services/BankAccounts/BankAccountUnlinked/Get';\r\n\r\n const { unlinkedBankAccount, successful, message } = await getUnlinkedBankAccount ({\r\n bankAccountID\r\n });\r\n*/\r\n\r\nimport kms from '@/services/kms'\r\n//import { notifyProblem } from '@/services/notify'\r\n\r\nexport async function getUnlinkedBankAccount({ bankAccountID } = {}) {\r\n let message = `This unlinked bank account could not be found. Possibly, it doesn't exist or was deleted.`\r\n\r\n try {\r\n const result = await kms.get(`/BankAccounts/BankAccountUnlinked/${bankAccountID}`)\r\n\r\n return {\r\n unlinkedBankAccount: result,\r\n //\r\n successful: true,\r\n message: '',\r\n result\r\n }\r\n } catch (exception) {\r\n console.error(exception)\r\n }\r\n\r\n // notifyProblem (message);\r\n\r\n return {\r\n unlinkedBankAccount: null,\r\n //\r\n successful: false,\r\n message,\r\n result: null\r\n }\r\n}\r\n","//\r\nimport { PRESET_FORM_VALUES } from './../../data'\r\n//\r\nimport { getBankAccount } from '@/services/BankAccounts/BankAccount/Get'\r\nimport { getGLAccountsList } from '@/services/GeneralLedger/Account/List'\r\nimport { getUnlinkedBankAccount } from '@/services/BankAccounts/BankAccountUnlinked/Get'\r\n//\r\nimport { notifyError } from '@/services/notify'\r\n//\r\nimport _get from 'lodash/get'\r\nimport _cloneDeep from 'lodash/cloneDeep'\r\n//\r\nexport async function refresh({ skipPresets = false } = {}) {\r\n this.loading = true\r\n\r\n console.log('refreshing account details')\r\n\r\n let isLinked = null\r\n\r\n try {\r\n if (!skipPresets) {\r\n this.formData = { ...PRESET_FORM_VALUES }\r\n if (this.$refs.form) {\r\n this.$refs.form.reset()\r\n }\r\n }\r\n\r\n await this.getProviderId()\r\n\r\n const bankAccountID = this.$route.params.id\r\n this.bankAccountID = bankAccountID\r\n\r\n const hoaID = this.hoaId\r\n\r\n const { successful, message, bankAccount } = await getBankAccount({\r\n bankAccountID\r\n })\r\n if (!successful) {\r\n this.found = false\r\n this.loading = false\r\n notifyError(message)\r\n return\r\n }\r\n\r\n this.found = true\r\n\r\n const account = _cloneDeep(bankAccount)\r\n\r\n isLinked = _get(account, ['isLinked'], null)\r\n this.isLinked = isLinked\r\n\r\n if (isLinked) {\r\n this.account = account\r\n\r\n this.accountIsClosed = this.account.isClosed\r\n } else {\r\n await this.loadBankAccountTypesList()\r\n\r\n const { unlinkedBankAccount, successful, message } = await getUnlinkedBankAccount({\r\n bankAccountID\r\n })\r\n if (!successful) {\r\n this.found = false\r\n this.loading = false\r\n notifyError(message)\r\n return\r\n }\r\n\r\n this.account = unlinkedBankAccount\r\n this.currentFinancialInstitutionName = _get(\r\n unlinkedBankAccount,\r\n ['financialInstitution', 'name'],\r\n null\r\n )\r\n }\r\n\r\n console.log('???')\r\n\r\n await getGLAccountsList({\r\n parseTypes: true,\r\n params: {\r\n hoaID\r\n }\r\n }).then(({ successful, message, parsedAccounts }) => {\r\n if (!successful) {\r\n notifyError(message)\r\n throw new Error(message)\r\n }\r\n\r\n console.log({ parsedAccounts })\r\n\r\n this.interestIncomeAccounts = parsedAccounts['Income']\r\n this.assetAccounts = parsedAccounts['Asset']\r\n })\r\n\r\n console.log('?????')\r\n } catch (e) {\r\n notifyError(e)\r\n }\r\n\r\n console.log('account refreshed?')\r\n\r\n this.activityReady = true\r\n this.loading = false\r\n\r\n // this.$forceUpdate();\r\n\r\n const account = this.account\r\n\r\n console.log('activity', this.$refs.activity)\r\n\r\n this.$refs.activity.update({\r\n isLinked,\r\n bankAccountID: _get(account, 'bankAccountID', ''),\r\n finInstBankName: _get(account, ['financialInstitution', 'name'], ''),\r\n finAccountName: _get(account, 'name', '')\r\n })\r\n}\r\n","/*\r\n\timport { getDefaultProviderByName } from '@/services/CheckbookReconciliation/BankDataProvider/GetDefaultByProviderName';\r\n import { notifyMessage, notifyError } from '@/services/notify'\r\n\r\n await getDefaultProviderByName ({\r\n params: {\r\n providerName,\r\n isDefault\r\n }\r\n })\r\n .then (({ result, successful, message }) => {\r\n if (!successful) {\r\n notifyError (message);\r\n throw new Error (message);\r\n }\r\n \r\n \r\n })\r\n*/\r\n\r\nimport kms from '@/services/kms'\r\n//\r\nexport async function getDefaultProviderByName({ params }) {\r\n let message = 'A problem occurred and the provider details could not be retrieved.'\r\n\r\n try {\r\n const provider = await kms.get(\r\n `/CheckbookReconciliation/BankDataProvider/GetDefaultByProviderName`,\r\n {\r\n params\r\n }\r\n )\r\n\r\n return {\r\n successful: true,\r\n message,\r\n provider\r\n }\r\n } catch (exception) {\r\n console.error(exception)\r\n }\r\n\r\n return {\r\n successful: false,\r\n message,\r\n provider: []\r\n }\r\n}\r\n","//\r\n//\r\n//\r\n//\r\n//\r\n//\\___\r\nimport { getDefaultProviderByName } from '@/services/CheckbookReconciliation/BankDataProvider/GetDefaultByProviderName'\r\n//\r\nimport { notifyError } from '@/services/notify'\r\n//\r\nimport { parseInteger } from '@/utilities/parse/Integer'\r\n//\r\n//\r\nexport async function getProviderId() {\r\n await getDefaultProviderByName({\r\n params: {\r\n providerName: 'Plaid',\r\n isDefault: true\r\n }\r\n }).then(({ provider, successful, message }) => {\r\n if (!successful) {\r\n notifyError(message)\r\n throw new Error(message)\r\n }\r\n\r\n this.bankDataProviderID = parseInteger(provider.bankDataProviderID)\r\n })\r\n}\r\n","//\r\nimport _get from 'lodash/get'\r\n//\r\n//\r\nexport async function eraseAccount() {\r\n const isLinked = this.isLinked\r\n\r\n const accountName = _get(this, ['account', 'name'], '')\r\n\r\n await new Promise(resolve => {\r\n this.$buefy.dialog.confirm({\r\n title: 'Deleting account',\r\n message: `Are you sure you would like to delete this account, '${accountName}'?`,\r\n confirmText: 'Delete Account',\r\n type: 'is-danger',\r\n hasIcon: true,\r\n onConfirm: () => {\r\n resolve()\r\n }\r\n })\r\n })\r\n\r\n if (isLinked) {\r\n await this.eraseLinkedAccount()\r\n } else {\r\n await this.eraseUnlinkedAccount()\r\n }\r\n}\r\n","import { notifyProblem } from '@/services/notify'\r\n\r\nimport moment from 'moment'\r\nimport _get from 'lodash/get'\r\n\r\nexport function getLinkedUpsertDetails() {\r\n const account = _get(this, 'account', null)\r\n const today = moment().toDate()\r\n //\r\n //\r\n //\r\n //\r\n const hoaID = this.hoaId\r\n if (!Number.isInteger(hoaID)) {\r\n notifyProblem(\r\n `A problem occurred with the update, the HOA id found was not the correct format. Received Id: ${hoaID}`\r\n )\r\n return false\r\n }\r\n //\r\n const isLinked = true\r\n //\r\n const name = _get(account, 'name', '')\r\n //\r\n //\r\n // The id of the data provider, for example:\r\n // plaid = either Integer or Integer string\r\n const bankDataProviderID = _get(account, 'bankDataProviderID', '')\r\n //\r\n // The id of the commerce account, from the provider,\r\n // if plaid is provider:\r\n // requirements: alpha numeric string?\r\n const bankDataProviderAccountID = _get(account, 'bankDataProviderAccountID', '')\r\n //\r\n // internal id of the bank account\r\n // requirements: integer\r\n const bankAccountID = _get(account, 'bankAccountID', '')\r\n if (!Number.isInteger(bankAccountID)) {\r\n notifyProblem(\r\n `A problem occurred with the update, the bank account id found was not the correct format. Received Id: ${bankAccountID}`\r\n )\r\n return false\r\n }\r\n //\r\n // The label of the account, as received via plaid\r\n // requirements: string?\r\n const plaidAccountType = _get(account, 'plaidAccountType', '')\r\n //\r\n // essentially this is the last 4 digits of the account number:\r\n // for example: \"************1234\"\r\n //\r\n // requirements: 16 digit string??\r\n const plaidAccountMask = _get(account, 'plaidAccountMask', '')\r\n //\r\n //\r\n const plaidInstitutionId = _get(account, 'plaidInstitutionId', null)\r\n //\r\n // internal id of the financial instituion\r\n // requirements: integer\r\n const financialInstitutionID = _get(\r\n account,\r\n ['financialInstitution', 'financialInstitutionID'],\r\n null\r\n )\r\n if (!Number.isInteger(financialInstitutionID)) {\r\n notifyProblem(\r\n `A problem occurred with the update. The financial institution id found was not the correct format. Received Id: ${financialInstitutionID}`\r\n )\r\n return false\r\n }\r\n //\r\n // the linked \"Asset\" Account\r\n // requirements: integer\r\n const bankGLAccountID = _get(account, 'bankGLAccountID', '')\r\n if (!Number.isInteger(bankGLAccountID)) {\r\n notifyProblem(\r\n `A problem occurred with the update. The Asset Account id found was not the correct format. Received Id: ${bankGLAccountID}`\r\n )\r\n return false\r\n }\r\n //\r\n // the linked \"Interest Income\" Account\r\n // requirements: integer\r\n const interestIncomeGLAccountID = _get(account, 'interestIncomeGLAccountID', '')\r\n if (!Number.isInteger(interestIncomeGLAccountID)) {\r\n notifyProblem(\r\n `A problem occurred with the update. The Interest Income Account id found was not the correct format. Received Id: ${bankGLAccountID}`\r\n )\r\n return false\r\n }\r\n //\r\n // whether or not the account is closed\r\n // requirements: boolean\r\n const isClosed = _get(account, 'isClosed', '')\r\n if (typeof isClosed !== 'boolean') {\r\n notifyProblem(\r\n `A problem occurred with the update. The account is value found was not the correct format. Received: ${isClosed}`\r\n )\r\n return false\r\n }\r\n\r\n let closedDate = null\r\n if (isClosed) {\r\n closedDate = today\r\n }\r\n\r\n const modifiedDate = today\r\n\r\n return {\r\n hoaID,\r\n //\r\n isLinked,\r\n //\r\n name,\r\n //\r\n bankDataProviderID,\r\n //\r\n bankDataProviderAccountID,\r\n bankAccountID,\r\n plaidAccountMask,\r\n plaidAccountType,\r\n //\r\n plaidInstitutionId,\r\n financialInstitutionID,\r\n //\r\n bankGLAccountID,\r\n interestIncomeGLAccountID,\r\n //\r\n closedDate,\r\n //\r\n modifiedDate\r\n }\r\n}\r\n","//\r\nimport { notifyProblem } from '@/services/notify'\r\nimport { addFinInstituion } from '@/services/CheckbookReconciliation/FinancialInstitution/Post'\r\n//\r\nimport moment from 'moment'\r\nimport _get from 'lodash/get'\r\nimport { parseInteger } from '@/utilities/parse/Integer'\r\n//\r\nexport async function getUnlinkedUpsertDetails() {\r\n const account = _get(this, 'account', null)\r\n const today = moment().toDate()\r\n //\r\n //\r\n //\r\n //\r\n const hoaID = this.hoaId\r\n if (!Number.isInteger(hoaID)) {\r\n notifyProblem(\r\n `A problem occurred with the update, the HOA id found was not the correct format. Received Id: ${hoaID}`\r\n )\r\n return false\r\n }\r\n //\r\n const isLinked = false\r\n //\r\n const name = _get(account, 'name', '')\r\n //\r\n // internal id of the bank account\r\n // requirements: integer\r\n const bankAccountID = parseInteger(_get(account, 'bankAccountID', ''))\r\n if (!Number.isInteger(bankAccountID)) {\r\n notifyProblem(\r\n `A problem occurred with the update, the bank account id found was not the correct format. Received Id: ${bankAccountID}`\r\n )\r\n return false\r\n }\r\n //\r\n const bankAccountTypeID = parseInteger(_get(account, 'bankAccountTypeID', ''))\r\n if (!Number.isInteger(bankAccountTypeID)) {\r\n notifyProblem(\r\n `A problem occurred with the update, the bank account type id found was not the correct format. Received Id: ${bankAccountTypeID}`\r\n )\r\n return false\r\n }\r\n //\r\n let accountNumber = parseInteger(_get(account, 'accountNumber', ''))\r\n if (!Number.isInteger(accountNumber)) {\r\n notifyProblem(\r\n `A problem occurred with the update, the account number found was not the correct format. Received: ${accountNumber}`\r\n )\r\n return false\r\n }\r\n accountNumber = accountNumber.toString()\r\n //\r\n let routingNumber = parseInteger(_get(account, 'routingNumber', ''))\r\n if (!Number.isInteger(routingNumber)) {\r\n notifyProblem(\r\n `A problem occurred with the update, the routing number found was not the correct format. Received: ${routingNumber}`\r\n )\r\n return false\r\n }\r\n routingNumber = routingNumber.toString()\r\n\r\n //\r\n // the linked \"Asset\" Account\r\n // requirements: integer\r\n const bankGLAccountID = _get(account, 'bankGLAccountID', '')\r\n if (!Number.isInteger(bankGLAccountID)) {\r\n notifyProblem(\r\n `A problem occurred with the update. The Asset Account id found was not the correct format. Received Id: ${bankGLAccountID}`\r\n )\r\n return false\r\n }\r\n //\r\n // the linked \"Interest Income\" Account\r\n // requirements: integer\r\n const interestIncomeGLAccountID = _get(account, 'interestIncomeGLAccountID', '')\r\n if (!Number.isInteger(interestIncomeGLAccountID)) {\r\n notifyProblem(\r\n `A problem occurred with the update. The Interest Income Account id found was not the correct format. Received Id: ${bankGLAccountID}`\r\n )\r\n return false\r\n }\r\n //\r\n // whether or not the account is closed\r\n // requirements: boolean\r\n const isClosed = _get(account, 'isClosed', '')\r\n if (typeof isClosed !== 'boolean') {\r\n notifyProblem(\r\n `A problem occurred with the update. The account is value found was not the correct format. Received: ${isClosed}`\r\n )\r\n return false\r\n }\r\n\r\n let closedDate = null\r\n if (isClosed) {\r\n closedDate = today\r\n }\r\n\r\n const modifiedDate = today\r\n\r\n const newFinInstName = _get(account, ['financialInstitution', 'name'], '')\r\n const currentFinancialInstitutionName = this.currentFinancialInstitutionName\r\n\r\n let financialInstitutionID = null\r\n if (newFinInstName !== currentFinancialInstitutionName) {\r\n await addFinInstituion({\r\n json: {\r\n hoaID,\r\n name: newFinInstName,\r\n providerInstitutionID: null,\r\n setAsUnlinked: true\r\n }\r\n }).then(({ successful, message, data }) => {\r\n if (!successful) {\r\n console.error(message)\r\n } else {\r\n financialInstitutionID = data.financialInstitutionID\r\n }\r\n })\r\n\r\n if (financialInstitutionID === null) {\r\n return false\r\n }\r\n }\r\n\r\n if (financialInstitutionID === null) {\r\n financialInstitutionID = this.account.financialInstitutionID\r\n }\r\n\r\n return {\r\n hoaID,\r\n //\r\n isLinked,\r\n //\r\n name,\r\n //\r\n bankAccountID,\r\n bankAccountTypeID,\r\n accountNumber,\r\n routingNumber,\r\n //\r\n bankGLAccountID,\r\n interestIncomeGLAccountID,\r\n //\r\n financialInstitutionID,\r\n //\r\n closedDate,\r\n //\r\n modifiedDate\r\n }\r\n}\r\n","/*\r\n example:\r\n import { upsertBankAccountForClient } from '@/services/BankAccounts/BankAccount/UpsertBankAccountForClient';\r\n*/\r\n\r\n/*\r\n Prerequisites:\r\n bankGLAccountID:\r\n /management/managechartofaccounts\r\n \r\n interestIncomeGLAccountID:\r\n /management/managechartofaccounts\r\n*/\r\n\r\n/*\r\n ///////////////////////////////////////////\r\n // Upserting a linked account\r\n ///////////////////////////////////////////\r\n\r\n const { successful, message } = await upsertBankAccountForClient ({\r\n authorization,\r\n json: {\r\n \"hoaID\": 993, \r\n //\r\n \"bankDataProviderID\": 1,\r\n //\r\n \"name\": \"KeyBank - Student Loan\",\r\n \r\n \"plaidAccountMask\": \"7777\",\r\n \"plaidAccountType\": \"Plaid Student Loan\",\r\n //\r\n // plaid data:\r\n // institution -> plaidInstitutionId): e.g. the id of the: bank, credit union, etc.\r\n // account -> bankDataProviderAccountID): e.g. checking, savings, mortgage, etc.\r\n //\r\n // internal data:\r\n // institution -> financialInstitutionID): e.g. the id of the: bank, credit union, etc.\r\n //\r\n \"plaidInstitutionId\": \"ins_29\",\r\n \"bankDataProviderAccountID\": \"5EX6WrdLAvuLRqv78b59ijvXLz3lEGFpzVJBR\",\r\n \"financialInstitutionID\": 46,\r\n //\r\n \"bankGLAccountID\": 2565,\r\n \"interestIncomeGLAccountID\": 2564\r\n }\r\n }).then (({ successful, message, result }) => {\r\n if (!successful) {\r\n notifyError (message)\r\n throw new Error (message)\r\n }\r\n \r\n \r\n })\r\n*/\r\n\r\nimport kms from '@/services/kms'\r\n\r\nexport async function upsertBankAccountForClient({\r\n json,\r\n\r\n // \"updated\" or \"added\"\r\n purpose = 'upserted'\r\n} = {}) {\r\n let message = `The account could not be ${purpose}.`\r\n\r\n let exception = null\r\n\r\n try {\r\n const result = await kms.post(`/BankAccounts/BankAccount/UpsertBankAccountForClient`, json)\r\n\r\n return {\r\n successful: true,\r\n message: `The account was ${purpose} successfully.`,\r\n result,\r\n exception: null\r\n }\r\n } catch (_exception) {\r\n console.error(_exception)\r\n\r\n exception = _exception\r\n }\r\n\r\n return {\r\n successful: false,\r\n message,\r\n result: null,\r\n exception\r\n }\r\n}\r\n\r\n///////\r\n","//\r\nimport { upsertBankAccountForClient } from '@/services/BankAccounts/BankAccount/UpsertBankAccountForClient'\r\n//\r\nimport { notifyMessage, notifyProblem } from '@/services/notify'\r\nimport { ValidationError } from '@/services/errors'\r\n//\r\nexport async function upsertLinked() {\r\n const json = this.getLinkedUpsertDetails()\r\n if (json === false) {\r\n return\r\n }\r\n\r\n const { successful, message, exception } = await upsertBankAccountForClient({\r\n json,\r\n purpose: 'updated'\r\n })\r\n if (!successful) {\r\n if (exception instanceof ValidationError) {\r\n this.$refs.form.setErrors(exception.fields)\r\n }\r\n\r\n notifyProblem(message)\r\n } else {\r\n notifyMessage(message)\r\n }\r\n}\r\n","//\r\nimport { upsertUnlinkedBankAccountForClient } from '@/services/BankAccounts/BankAccountUnlinked/UpsertBankAccountForClient'\r\n//\r\nimport { notifyMessage, notifyProblem } from '@/services/notify'\r\nimport { ValidationError } from '@/services/errors'\r\n//\r\nexport async function upsertUnlinked() {\r\n const json = await this.getUnlinkedUpsertDetails()\r\n if (json === false) {\r\n return\r\n }\r\n\r\n const { successful, message, exception } = await upsertUnlinkedBankAccountForClient({\r\n json,\r\n purpose: 'updated'\r\n })\r\n if (!successful) {\r\n if (exception instanceof ValidationError) {\r\n this.$refs.form.setErrors(exception.fields)\r\n }\r\n\r\n notifyProblem(message)\r\n } else {\r\n notifyMessage(message)\r\n }\r\n}\r\n","/*\r\n\timport { deleteBankAccount } from '@/services/BankAccounts/BankAccount/Delete';\r\n\r\n const { result, successful, message } = await deleteBankAccount ({\r\n bankAccountID\r\n });\r\n if (!successful) {\r\n console.error (message);\r\n return;\r\n }\r\n*/\r\n\r\nimport kms from '@/services/kms'\r\n\r\nexport async function deleteBankAccount({ bankAccountID }) {\r\n let message = 'The bank account could not be deleted.'\r\n\r\n try {\r\n const result = await kms.delete(`/BankAccounts/BankAccount/${bankAccountID}?forceDelete=false`)\r\n\r\n return {\r\n successful: true,\r\n message: '',\r\n result\r\n }\r\n } catch (exception) {\r\n console.error(exception)\r\n }\r\n\r\n return {\r\n successful: false,\r\n message,\r\n result: null\r\n }\r\n}\r\n","import { deleteBankAccount } from '@/services/BankAccounts/BankAccount/Delete'\r\n\r\nimport { notifyError, notifyMessage } from '@/services/notify'\r\n\r\nimport _get from 'lodash/get'\r\n\r\nexport async function eraseLinkedAccount() {\r\n const bankAccountID = _get(this, ['account', 'bankAccountID'], '')\r\n const accountName = _get(this, ['account', 'name'], '')\r\n\r\n const { successful, message } = await deleteBankAccount({\r\n bankAccountID\r\n })\r\n if (!successful) {\r\n console.error(message)\r\n notifyError(message)\r\n return\r\n }\r\n\r\n notifyMessage(`${accountName} was successfully deleted.`)\r\n this.$router.push('/bankAccounts')\r\n}\r\n","/*\r\n\timport { deleteUnlinkedBankAccount } from '@/services/BankAccounts/BankAccountUnlinked/Delete';\r\n\r\n const { result, successful, message } = await deleteUnlinkedBankAccount ({\r\n bankAccountID\r\n });\r\n if (!successful) {\r\n console.error (message);\r\n return;\r\n }\r\n*/\r\n\r\nimport kms from '@/services/kms'\r\n\r\nexport async function deleteUnlinkedBankAccount({ bankAccountID }) {\r\n let message = 'The unlinked bank account could not be deleted.'\r\n\r\n try {\r\n const result = await kms.delete(\r\n `/BankAccounts/BankAccountUnlinked/${bankAccountID}?forceDelete=false`\r\n )\r\n\r\n return {\r\n successful: true,\r\n message: '',\r\n result\r\n }\r\n } catch (exception) {\r\n console.error(exception)\r\n }\r\n\r\n return {\r\n successful: false,\r\n message,\r\n result: null\r\n }\r\n}\r\n","import { deleteUnlinkedBankAccount } from '@/services/BankAccounts/BankAccountUnlinked/Delete'\r\n\r\nimport { notifyError, notifyMessage } from '@/services/notify'\r\n\r\nimport _get from 'lodash/get'\r\n\r\nexport async function eraseUnlinkedAccount() {\r\n const bankAccountID = _get(this, ['account', 'bankAccountID'], '')\r\n const accountName = _get(this, ['account', 'name'], '')\r\n\r\n const { successful, message } = await deleteUnlinkedBankAccount({\r\n bankAccountID\r\n })\r\n if (!successful) {\r\n console.error(message)\r\n notifyError(message)\r\n return\r\n }\r\n\r\n notifyMessage(`${accountName} was successfully deleted.`)\r\n this.$router.push('/bankAccounts')\r\n}\r\n","import { upsert } from './list/upsert'\r\nimport { refresh } from './list/refresh'\r\nimport { getProviderId } from './list/getProviderId'\r\nimport { eraseAccount } from './list/eraseAccount'\r\nimport { getLinkedUpsertDetails } from './list/getLinkedUpsertDetails'\r\nimport { getUnlinkedUpsertDetails } from './list/getUnlinkedUpsertDetails'\r\nimport { upsertLinked } from './list/upsertLinked'\r\nimport { upsertUnlinked } from './list/upsertUnlinked'\r\nimport { eraseLinkedAccount } from './list/eraseLinkedAccount'\r\nimport { eraseUnlinkedAccount } from './list/eraseUnlinkedAccount'\r\nimport _get from 'lodash/get'\r\nimport { mapActions } from 'vuex'\r\n\r\nexport const methods = {\r\n _get,\r\n upsert,\r\n refresh,\r\n getProviderId,\r\n getUnlinkedUpsertDetails,\r\n getLinkedUpsertDetails,\r\n upsertLinked,\r\n upsertUnlinked,\r\n eraseAccount,\r\n eraseLinkedAccount,\r\n eraseUnlinkedAccount,\r\n\r\n ...mapActions('bankaccount', ['loadBankAccountTypesList']),\r\n ...mapActions('hoa', ['loadAssetGLAccountsList', 'loadInterestIncomeGLAccountsList']),\r\n\r\n openUpdateModal() {\r\n this.$refs.updateModal.open()\r\n },\r\n onConfirm() {\r\n this.$emit('confirm')\r\n },\r\n onCancel() {\r\n this.$emit('cancel')\r\n }\r\n}\r\n","import { mapState } from 'vuex'\r\n\r\nexport const computed = {\r\n ...mapState({\r\n hoaId: state => state.user.selectedHoaId,\r\n breakpoint: state => state.win.breakpoint,\r\n bankAccountListings: state => state.bankaccount.bankAccountListings,\r\n bankAccountTypes: state => state.bankaccount.bankAccountTypes,\r\n plaidAccountIds: state => state.bankaccount.selectedPlaidAccountIds,\r\n plaidInstitutionId: state => state.bankaccount.selectedPlaidInstitutionId\r\n }),\r\n\r\n txsColumns() {\r\n const isLinked = this.isLinked\r\n\r\n return [\r\n {\r\n field: 'date',\r\n label: 'Date',\r\n width: '20%',\r\n\r\n date: true,\r\n\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'payee',\r\n label: 'Payee',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'description',\r\n label: 'Description',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'amount',\r\n label: 'Amount',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'checkNumber',\r\n label: 'Check Number',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'clearedDate',\r\n label: 'Cleared Date',\r\n sortable: true,\r\n searchable: true\r\n },\r\n ...(!isLinked\r\n ? [\r\n {\r\n field: 'details',\r\n label: ''\r\n }\r\n ]\r\n : [])\r\n ]\r\n }\r\n}\r\n","export function mounted() {\r\n console.log('mounted?')\r\n\r\n this.refresh()\r\n}\r\n","\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{ account.name }}\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n\r\n \r\n \r\n {{ option.label }}\r\n \r\n \r\n\r\n \r\n \r\n \r\n\r\n \r\n \r\n {{ account.financialInstitution.name }}\r\n \r\n\r\n \r\n {{ account.plaidAccountType }}\r\n \r\n\r\n \r\n **** **** **** {{ account.plaidAccountMask }}\r\n \r\n \r\n\r\n \r\n \r\n {{ option.label }}\r\n \r\n \r\n \r\n \r\n {{ option.label }}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{ `${account.isClosed === true ? 'Yes' : 'No'}` }}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{ errors[0] }}\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n\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!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=c077c5e2&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","/*\r\n example:\r\n import { upsertUnlinkedBankAccountForClient } from '@/services/BankAccounts/BankAccount/UpsertBankAccountForClient';\r\n*/\r\n\r\n/*\r\n ///////////////////////////////////////////\r\n // Upserting a linked account\r\n ///////////////////////////////////////////\r\n\r\n await upsertUnlinkedBankAccountForClient ({\r\n authorization,\r\n json: {\r\n \"hoaID\": 993, \r\n //\r\n \"bankDataProviderID\": 1,\r\n //\r\n \"name\": \"KeyBank - Student Loan\",\r\n \r\n \"plaidAccountMask\": \"7777\",\r\n \"plaidAccountType\": \"Plaid Student Loan\",\r\n //\r\n // plaid data:\r\n // institution -> plaidInstitutionId): e.g. the id of the: bank, credit union, etc.\r\n // account -> bankDataProviderAccountID): e.g. checking, savings, mortgage, etc.\r\n //\r\n // internal data:\r\n // institution -> financialInstitutionID): e.g. the id of the: bank, credit union, etc.\r\n //\r\n \"plaidInstitutionId\": \"ins_29\",\r\n \"bankDataProviderAccountID\": \"5EX6WrdLAvuLRqv78b59ijvXLz3lEGFpzVJBR\",\r\n \"financialInstitutionID\": 46,\r\n //\r\n \"bankGLAccountID\": 2565,\r\n \"interestIncomeGLAccountID\": 2564\r\n }\r\n }).then (({ successful, message, result }) => {\r\n if (!successful) {\r\n notifyError (message)\r\n throw new Error (message)\r\n }\r\n \r\n \r\n })\r\n*/\r\nimport kms from '@/services/kms'\r\n\r\nexport async function upsertUnlinkedBankAccountForClient({ json, purpose = 'upserted' } = {}) {\r\n let exception = null\r\n\r\n try {\r\n const result = await kms.post(\r\n `/BankAccounts/BankAccountUnlinked/UpsertBankAccountForClient`,\r\n json\r\n )\r\n\r\n return {\r\n successful: true,\r\n message: `The account was ${purpose} successfully.`,\r\n result,\r\n exception: null\r\n }\r\n } catch (_exception) {\r\n exception = _exception\r\n\r\n console.error(exception)\r\n }\r\n\r\n return {\r\n successful: false,\r\n message: `The account could not be ${purpose}.`,\r\n result: null,\r\n exception\r\n }\r\n}\r\n\r\n///////\r\n","var global = require('../internals/global');\nvar trim = require('../internals/string-trim').trim;\nvar whitespaces = require('../internals/whitespaces');\n\nvar $parseFloat = global.parseFloat;\nvar FORCED = 1 / $parseFloat(whitespaces + '-0') !== -Infinity;\n\n// `parseFloat` method\n// https://tc39.github.io/ecma262/#sec-parsefloat-string\nmodule.exports = FORCED ? function parseFloat(string) {\n var trimmedString = trim(String(string));\n var result = $parseFloat(trimmedString);\n return result === 0 && trimmedString.charAt(0) == '-' ? -0 : result;\n} : $parseFloat;\n","/*\r\n example:\r\n import { addFinInstituion } from '@/services/CheckbookReconciliation/FinancialInstitution/Post';\r\n\r\n await addFinInstituion ({\r\n json: {\r\n hoaID: '',\r\n name: 'A Financial Institution',\r\n providerInstitutionID: null\r\n }\r\n }).then (({\r\n data,\r\n successful, \r\n message\r\n }) => {\r\n if (!successful) {\r\n throw new Error (message)\r\n return;\r\n }\r\n })\r\n \r\n*/\r\n\r\n//\r\nimport kms from '@/services/kms'\r\nimport { notifyProblem } from '@/services/notify'\r\n//\r\nexport async function addFinInstituion({ json } = {}) {\r\n const message = `A problem occurred and the financial institution could not be added.`\r\n const path = `/CheckbookReconciliation/FinancialInstitution`\r\n\r\n try {\r\n const result = await kms.post(path, json)\r\n\r\n return {\r\n successful: true,\r\n message: '',\r\n data: result\r\n }\r\n } catch (exception) {\r\n console.error(exception)\r\n }\r\n\r\n notifyProblem(message)\r\n\r\n return {\r\n successful: false,\r\n message,\r\n data: null\r\n }\r\n}\r\n\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!./Menu.vue?vue&type=style&index=0&id=1bb727dd&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!./Menu.vue?vue&type=style&index=0&id=1bb727dd&lang=scss&scoped=true&\"","'use strict';\nvar $ = require('../internals/export');\nvar toInteger = require('../internals/to-integer');\nvar thisNumberValue = require('../internals/this-number-value');\nvar repeat = require('../internals/string-repeat');\nvar fails = require('../internals/fails');\n\nvar nativeToFixed = 1.0.toFixed;\nvar floor = Math.floor;\n\nvar pow = function (x, n, acc) {\n return n === 0 ? acc : n % 2 === 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc);\n};\n\nvar log = function (x) {\n var n = 0;\n var x2 = x;\n while (x2 >= 4096) {\n n += 12;\n x2 /= 4096;\n }\n while (x2 >= 2) {\n n += 1;\n x2 /= 2;\n } return n;\n};\n\nvar FORCED = nativeToFixed && (\n 0.00008.toFixed(3) !== '0.000' ||\n 0.9.toFixed(0) !== '1' ||\n 1.255.toFixed(2) !== '1.25' ||\n 1000000000000000128.0.toFixed(0) !== '1000000000000000128'\n) || !fails(function () {\n // V8 ~ Android 4.3-\n nativeToFixed.call({});\n});\n\n// `Number.prototype.toFixed` method\n// https://tc39.github.io/ecma262/#sec-number.prototype.tofixed\n$({ target: 'Number', proto: true, forced: FORCED }, {\n // eslint-disable-next-line max-statements\n toFixed: function toFixed(fractionDigits) {\n var number = thisNumberValue(this);\n var fractDigits = toInteger(fractionDigits);\n var data = [0, 0, 0, 0, 0, 0];\n var sign = '';\n var result = '0';\n var e, z, j, k;\n\n var multiply = function (n, c) {\n var index = -1;\n var c2 = c;\n while (++index < 6) {\n c2 += n * data[index];\n data[index] = c2 % 1e7;\n c2 = floor(c2 / 1e7);\n }\n };\n\n var divide = function (n) {\n var index = 6;\n var c = 0;\n while (--index >= 0) {\n c += data[index];\n data[index] = floor(c / n);\n c = (c % n) * 1e7;\n }\n };\n\n var dataToString = function () {\n var index = 6;\n var s = '';\n while (--index >= 0) {\n if (s !== '' || index === 0 || data[index] !== 0) {\n var t = String(data[index]);\n s = s === '' ? t : s + repeat.call('0', 7 - t.length) + t;\n }\n } return s;\n };\n\n if (fractDigits < 0 || fractDigits > 20) throw RangeError('Incorrect fraction digits');\n // eslint-disable-next-line no-self-compare\n if (number != number) return 'NaN';\n if (number <= -1e21 || number >= 1e21) return String(number);\n if (number < 0) {\n sign = '-';\n number = -number;\n }\n if (number > 1e-21) {\n e = log(number * pow(2, 69, 1)) - 69;\n z = e < 0 ? number * pow(2, -e, 1) : number / pow(2, e, 1);\n z *= 0x10000000000000;\n e = 52 - e;\n if (e > 0) {\n multiply(0, z);\n j = fractDigits;\n while (j >= 7) {\n multiply(1e7, 0);\n j -= 7;\n }\n multiply(pow(10, j, 1), 0);\n j = e - 1;\n while (j >= 23) {\n divide(1 << 23);\n j -= 23;\n }\n divide(1 << j);\n multiply(1, 1);\n divide(2);\n result = dataToString();\n } else {\n multiply(0, z);\n multiply(1 << -e, 0);\n result = dataToString() + repeat.call('0', fractDigits);\n }\n }\n if (fractDigits > 0) {\n k = result.length;\n result = sign + (k <= fractDigits\n ? '0.' + repeat.call('0', fractDigits - k) + result\n : result.slice(0, k - fractDigits) + '.' + result.slice(k - fractDigits));\n } else {\n result = sign + result;\n } return result;\n }\n});\n","var $ = require('../internals/export');\nvar parseFloat = require('../internals/number-parse-float');\n\n// `Number.parseFloat` method\n// https://tc39.github.io/ecma262/#sec-number.parseFloat\n$({ target: 'Number', stat: true, forced: Number.parseFloat != parseFloat }, {\n parseFloat: parseFloat\n});\n"],"sourceRoot":""}