{"version":3,"sources":["webpack:///./src/pages/Management/vendors/tabs/InsuranceCoverages/List.vue?9d2f","webpack:///./src/services/Vendors/VendorInsuranceCoverages/store.js","webpack:///./src/pages/Management/vendors/tabs/InsuranceCoverages/components/Download.vue?51ad","webpack:///src/pages/Management/vendors/tabs/InsuranceCoverages/components/Download.vue","webpack:///./src/pages/Management/vendors/tabs/InsuranceCoverages/components/Download.vue?e4c8","webpack:///./src/pages/Management/vendors/tabs/InsuranceCoverages/components/Download.vue","webpack:///./src/pages/Management/vendors/tabs/InsuranceCoverages/components/Details.vue?a117","webpack:///./src/pages/Management/vendors/tabs/InsuranceCoverages/components/Coverages/index.vue?970f","webpack:///src/pages/Management/vendors/tabs/InsuranceCoverages/components/Coverages/index.vue","webpack:///./src/pages/Management/vendors/tabs/InsuranceCoverages/components/Coverages/index.vue?ff58","webpack:///./src/pages/Management/vendors/tabs/InsuranceCoverages/components/Coverages/index.vue","webpack:///src/pages/Management/vendors/tabs/InsuranceCoverages/components/Details.vue","webpack:///./src/pages/Management/vendors/tabs/InsuranceCoverages/components/Details.vue?3cae","webpack:///./src/pages/Management/vendors/tabs/InsuranceCoverages/components/Details.vue","webpack:///./src/pages/Management/vendors/tabs/InsuranceCoverages/keys/methods.js","webpack:///./src/pages/Management/vendors/tabs/InsuranceCoverages/keys/data.js","webpack:///src/pages/Management/vendors/tabs/InsuranceCoverages/List.vue","webpack:///./src/pages/Management/vendors/tabs/InsuranceCoverages/List.vue?b13e","webpack:///./src/pages/Management/vendors/tabs/InsuranceCoverages/List.vue","webpack:///./src/services/Vendors/store.js","webpack:///./src/services/blobutility.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","$t","region","filters","rows","columns","perPage","loading","rowOnClick","tableWrapper","height","scopedSlots","_u","key","fn","style","width","class","show","float","background","border","on","$event","staticStyle","_v","proxy","staticRenderFns","isDebug","actions","getVendorInsuranceCoverageList","vendorGlobalID","console","log","kms","get","params","result","debug","JSON","stringify","list","results","notifyProblem","error","Vue","use","Vuex","vendorInsuranceCoverage","Store","state","mutations","getters","vendorGlobalInsuranceID","documentID","staticClass","preventDefault","downloadPdf","props","Number","String","Function","component","margin","coverages","_l","coverage","indexA","Object","assign","justifyContent","length","marginBottom","padding","flexBasis","color","fontWeight","_e","coverageType","undefined","coverageAmount","_s","_f","Array","isArray","display","borderRadius","type","default","data","theme","mounted","methods","watch","components","Coverages","determineRows","map","entry","policyNumber","_get","isVerified","insuranceCompany","agentName","agentPhone","agentEmail","_expandable","Details","certificate","Download","loadVendorInsuranceCoverages","getVendorGlobalID","dispatch","then","reload","vendorID","$route","id","vendorList","asRawBase64","asBase64","path","returned","contentType","blob","base64toBlob","showPdf","notifyMessage","notifyWarning","formatDateFn","value","moment","format","field","label","aria","sortable","searchable","styles","filterButton","marginTop","name","PageContentLayoutOnly","ModernTable","computed","i18n","messages","en","getVendorList","hoaId","getVendorById","vendor","b64Data","sliceSize","byteCharacters","atob","byteArrays","offset","slice","byteNumbers","i","charCodeAt","byteArray","Uint8Array","push","Blob","newBlob","window","navigator","msSaveOrOpenBlob","URL","createObjectURL","link","document","createElement","download","setAttribute","href","open","click","setTimeout","revokeObjectURL","showAnyType","mimeType"],"mappings":"4IAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,wBAAwB,CAACE,MAAM,CAAC,aAAaN,EAAIO,GAAG,iCAAiC,KAAO,WAAW,CAACH,EAAG,cAAc,CAACE,MAAM,CAAC,OAASN,EAAIQ,OAAO,QAAUR,EAAIS,QAAQ,KAAOT,EAAIU,KAAK,QAAUV,EAAIW,QAAQ,WAAa,CAC3TC,QAAS,IACT,QAAUZ,EAAIa,QAAQ,YAAc,OAAO,UAAY,GAAG,gBAAiB,EAAK,WAAab,EAAIc,WAAW,QAAU,CACtHC,aAAc,CACZC,OAAQ,yBAETC,YAAYjB,EAAIkB,GAAG,CAAC,CAACC,IA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AAK,CAACzC,GAAO,CAAErC,KAAM,oBAEvC,GAAIgF,OAAOC,WAAaD,OAAOC,UAAUC,iBACvCF,OAAOC,UAAUC,iBAAiBH,OAC7B,CACL,IAAM7E,EAAO8E,OAAOG,IAAIC,gBAAgBL,GACpCM,EAAOC,SAASC,cAAc,KAClCF,EAAKG,SAAW,eAChBH,EAAKI,aAAa,WAAY,gBAC9BJ,EAAKK,KAAOxF,EACZmF,EAAKO,QAELC,YAAW,WACTb,OAAOG,IAAIW,gBAAgB5F,QAQpB6F,EAAc,SAAC1D,EAAM2D,GAChCvJ,QAAQM,MAAM,kBACd,IAAIgI,EAAU,IAAID,KAAK,CAACzC,GAAO,CAAErC,KAAMgG,IACvC,GAAIhB,OAAOC,WAAaD,OAAOC,UAAUC,iBACvCF,OAAOC,UAAUC,iBAAiBH,OAC7B,CACL,IAAM7E,EAAO8E,OAAOG,IAAIC,gBAAgBL,GACpCM,EAAOC,SAASC,cAAc,KAClCF,EAAKK,KAAOxF,EAEZ8E,OAAOW,KAAKzF,EAAM,UAElB2F,YAAW,WACTb,OAAOG,IAAIW,gBAAgB5F","file":"js/vendors.vendorInsuranceCoverages.c61614f6.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('PageContentLayoutOnly',{attrs:{\"aria-label\":_vm.$t('vendorInsuranceCoverage.title'),\"role\":\"region\"}},[_c('ModernTable',{attrs:{\"region\":_vm.region,\"filters\":_vm.filters,\"rows\":_vm.rows,\"columns\":_vm.columns,\"pagination\":{\n perPage: 12\n },\"loading\":_vm.loading,\"headerColor\":\"#FFF\",\"condensed\":\"\",\"expandableRows\":true,\"rowOnClick\":_vm.rowOnClick,\"_styles\":{\n tableWrapper: {\n height: 'calc(100vh - 240px)'\n }\n }},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_c('div',{style:({ width: '100%', height: '60px' })},[_c('b-button',{class:'filter-button ' + (_vm.filters.show ? 'active' : ''),style:({ float: 'right', background: 'none', border: 0 }),attrs:{\"type\":\"is-ghost\"},on:{\"click\":function($event){_vm.filters.show = !_vm.filters.show}}},[_c('b-icon',{staticStyle:{\"display\":\"inline-block\"},attrs:{\"pack\":\"mdi\",\"icon\":\"filter-outline\",\"size\":\"is-small\"}}),_c('div',{staticStyle:{\"display\":\"inline-block\"}},[_vm._v(\"Filter\")])],1)],1)]},proxy:true}])})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","/*\r\n import { vendorInsuranceCoverage } from '@/services/Vendors/VendorInsuranceCoverages/store'\r\n*/\r\n\r\nimport Vue from 'vue'\r\nimport Vuex from 'vuex'\r\n\r\nimport { notifyProblem } from '@/services/notify'\r\nimport kms from '@/services/kms'\r\n\r\nconst isDebug = true\r\n\r\n/* eslint-disable no-empty-pattern */\r\nconst actions = {\r\n /*\r\n const { list } = await vendorInsuranceCoverage.dispatch ('getVendorInsuranceCoverageList', {\r\n vendorID\r\n });\r\n */\r\n async getVendorInsuranceCoverageList({}, { vendorGlobalID }) {\r\n console.log('in getVendorInsuranceCoverageList...')\r\n try {\r\n const result = await kms.get('/Vendors/VendorGlobalInsurance/List', {\r\n params: {\r\n vendorGlobalID\r\n }\r\n })\r\n\r\n if (isDebug == true)\r\n console.debug('getVendorInsuranceCoverageList log=' + JSON.stringify(result))\r\n\r\n return {\r\n list: result.results\r\n }\r\n } catch (exception) {\r\n notifyProblem(`The vendor contact insurance coverage list could not be retrieved.`)\r\n console.error(exception)\r\n }\r\n\r\n return {\r\n list: []\r\n }\r\n }\r\n}\r\n/* eslint-enable no-empty-pattern */\r\n\r\nVue.use(Vuex)\r\nexport const vendorInsuranceCoverage = new Vuex.Store({\r\n state: {},\r\n mutations: {},\r\n getters: {},\r\n actions\r\n})\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(\n (typeof _vm.vendorGlobalInsuranceID === 'string' ||\n typeof _vm.vendorGlobalInsuranceID === 'number') &&\n _vm.documentID > 0\n )?_c('span',[_c('button',{staticClass:\"button is-info is-light is-small is-outline is-rounded\",on:{\"click\":function($event){$event.preventDefault();return _vm.downloadPdf(_vm.vendorGlobalInsuranceID)}}},[_vm._v(\" Pdf \")])]):_c('span',[_vm._v(\" \")])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n 0\r\n \"\r\n >\r\n \r\n Pdf\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!./Download.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!./Download.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Download.vue?vue&type=template&id=2daea308&\"\nimport script from \"./Download.vue?vue&type=script&lang=js&\"\nexport * from \"./Download.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('h4',{style:({ margin: '0 10px' })},[_vm._v(\"Coverages\")]),_c('Coverages',{attrs:{\"coverages\":_vm.coverages}})],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',{attrs:{\"coverages\":\"\"}},[_vm._l((_vm.list),function(coverage,indexA){return _c('div',{key:indexA,style:(Object.assign({}, {justifyContent: 'space-between'},\n (indexA !== _vm.list.length - 1 ? { marginBottom: '6px' } : {}),\n {padding: '0px 10px'})),attrs:{\"coverages\":\"\"}},[_c('div',{staticClass:\"pb-5\",style:({ flexBasis: '33%' })},[(indexA == 0)?_c('div',{staticClass:\"columns pt-5\",style:({ color: _vm.color[8], fontWeight: 'bold' })},[_c('div',{staticClass:\"column is-6\"},[_vm._v(\"Coverage Type\")]),_c('div',{staticClass:\"column is-2 has-text-right\"},[_vm._v(\"Amount\")])]):_vm._e(),(\n coverage.coverageType &&\n coverage.coverageType != undefined &&\n coverage.coverageAmount &&\n coverage.coverageAmount != undefined\n )?_c('div',{staticClass:\"columns pb-5\",style:({ color: _vm.color[8], height: '27px' })},[_c('div',{staticClass:\"column is-6\"},[_vm._v(_vm._s(coverage.coverageType))]),_c('div',{staticClass:\"column is-2 has-text-right\"},[_vm._v(_vm._s(_vm._f(\"currency\")(coverage.coverageAmount)))])]):_c('div',{style:({ color: _vm.color[8] })},[_vm._v(\" N/A \")])])])}),(!Array.isArray(_vm.list) || _vm.list.length === 0)?_c('div',{style:({\n display: 'flex',\n justifyContent: 'space-between',\n marginBottom: '6px',\n padding: '8px 12px',\n borderRadius: '6px',\n color: _vm.color[8]\n }),attrs:{\"coverages-not-found\":\"\"}},[_vm._v(\" Coverage type details were not found. \")]):_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n \r\n \r\n \r\n Coverage Type\r\n Amount\r\n \r\n \r\n {{ coverage.coverageType }}\r\n {{ coverage.coverageAmount | currency }}\r\n \r\n \r\n N/A\r\n \r\n \r\n \r\n\r\n \r\n Coverage type details were not found.\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=09e5f010&\"\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 \r\n Coverages\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!./Details.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!./Details.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Details.vue?vue&type=template&id=63d533fc&\"\nimport script from \"./Details.vue?vue&type=script&lang=js&\"\nexport * from \"./Details.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import _get from 'lodash/get'\r\nimport { vendorList } from '@/services/Vendors/store'\r\nimport { vendorInsuranceCoverage } from '@/services/Vendors/VendorInsuranceCoverages/store'\r\nimport kms from '@/services/kms'\r\nimport Download from '../components/Download'\r\nimport { base64toBlob, showPdf } from '@/services/blobutility'\r\nimport { notifyProblem, notifyMessage, notifyWarning } from '@/services/notify'\r\nimport Details from './../components/Details'\r\n\r\nexport const methods = {\r\n rowOnClick() {},\r\n\r\n determineRows: function(list) {\r\n if (!Array.isArray(list)) {\r\n return\r\n }\r\n\r\n var rows = list.map(entry => {\r\n const policyNumber = _get(entry, 'policyNumber', '')\r\n const isVerified = _get(entry, 'isVerified', false)\r\n const insuranceCompany = _get(entry, 'insuranceCompany', '')\r\n const agentName = _get(entry, 'insuranceAgentName', '')\r\n const agentPhone = _get(entry, 'insuranceAgentPhone', '')\r\n const agentEmail = _get(entry, 'insuranceAgentEmail', '')\r\n\r\n const coverages = _get(entry, 'vendorGlobalInsuranceCoverages', null)\r\n\r\n return {\r\n _expandable: {\r\n // expanded: false,\r\n\r\n // whether or not to show the expandable icon\r\n show: true,\r\n\r\n // the component to show when the expandable icon is pressed\r\n component: Details,\r\n\r\n // props to send to the expandable icon\r\n props: {\r\n coverages: coverages\r\n }\r\n },\r\n policyNumber: policyNumber,\r\n isVerified: isVerified,\r\n insuranceCompany: insuranceCompany,\r\n agentName: agentName,\r\n agentPhone: agentPhone,\r\n agentEmail: agentEmail,\r\n certificate: {\r\n component: Download,\r\n props: {\r\n documentID: _get(entry, ['certificateDocumentID'], 0),\r\n vendorGlobalInsuranceID: _get(entry, 'vendorGlobalInsuranceID', 0),\r\n downloadPdf: vendorGlobalInsuranceID => {\r\n this.downloadPdf(vendorGlobalInsuranceID)\r\n }\r\n }\r\n }\r\n }\r\n })\r\n\r\n this.rows = rows\r\n },\r\n\r\n async loadVendorInsuranceCoverages() {\r\n if (this.isDebug == true) console.debug('in loadVendorInsuranceCoverages()...')\r\n await this.getVendorGlobalID()\r\n\r\n await vendorInsuranceCoverage\r\n .dispatch('getVendorInsuranceCoverageList', {\r\n vendorGlobalID: this.vendorGlobalID\r\n })\r\n .then(({ list }) => {\r\n this.determineRows(list)\r\n })\r\n },\r\n\r\n reload() {\r\n this.loading = true\r\n\r\n this.vendorID = this.$route.params.id || 0\r\n\r\n if (this.isDebug == true) console.debug('params vendorID=' + this.vendorID)\r\n\r\n this.rows = []\r\n\r\n this.loadVendorInsuranceCoverages()\r\n\r\n this.loading = false\r\n },\r\n\r\n async getVendorGlobalID() {\r\n await vendorList\r\n .dispatch('getVendorById', {\r\n vendorID: this.vendorID\r\n })\r\n .then(({ result }) => {\r\n if (result) {\r\n this.vendorGlobalID = result.vendorGlobalID\r\n if (this.isDebug == true) console.debug('getVendorGlobalID=' + this.vendorGlobalID)\r\n }\r\n })\r\n },\r\n\r\n async downloadPdf(vendorGlobalInsuranceID) {\r\n if (this.isDebug == true) console.debug('downloadPdf...')\r\n\r\n if (!vendorGlobalInsuranceID || vendorGlobalInsuranceID == undefined) {\r\n notifyProblem('The vendorGlobalInsuranceID is invalid for the download.')\r\n }\r\n\r\n try {\r\n const params = {\r\n vendorGlobalInsuranceID: vendorGlobalInsuranceID,\r\n asRawBase64: true,\r\n asBase64: true\r\n }\r\n\r\n const path = `/Vendors/VendorGlobalInsurance/GetCertificateFile`\r\n const returned = await kms.get(path, {\r\n params\r\n })\r\n\r\n if (this.isDebug == true)\r\n console.debug(\r\n 'path base64 path=' +\r\n path +\r\n ' - params' +\r\n JSON.stringify(params) +\r\n ' - returned=' +\r\n JSON.stringify(returned)\r\n )\r\n if (returned && returned != undefined) {\r\n if (this.isDebug == true) console.debug('base64pdf........................' + returned)\r\n const contentType = 'application/pdf'\r\n const blob = base64toBlob(returned, contentType)\r\n showPdf(blob)\r\n notifyMessage(`Successfully downloaded the certificate.`)\r\n return\r\n }\r\n } catch (e) {\r\n if (this.isDebug == true) console.debug(e)\r\n notifyWarning('There was a problem downloading the certificate.')\r\n }\r\n }\r\n}\r\n","import moment from 'moment'\r\n\r\nexport const data = () => ({\r\n isDebug: true,\r\n loading: false,\r\n vendorID: 0,\r\n vendorGlobalID: 0,\r\n formatDateFn: function(value) {\r\n return value != null ? moment(value, 'YYYY/MM/DD HH:mm:ss').format('MM-DD-YYYY') : ''\r\n },\r\n\r\n filters: {\r\n show: false\r\n },\r\n\r\n region: {},\r\n\r\n rows: [],\r\n\r\n columns: [\r\n {\r\n field: 'policyNumber',\r\n label: 'Policy #',\r\n aria: 'Policy #',\r\n width: '10%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'verified',\r\n label: 'Verified',\r\n aria: 'Verified',\r\n width: '10%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'insuranceCompany',\r\n label: 'Insurance Company',\r\n aria: 'Insurance Company',\r\n width: '25%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'agentName',\r\n label: 'Agent Name',\r\n aria: 'Agent Name',\r\n width: '20%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'agentPhone',\r\n label: 'Agent Phone',\r\n aria: 'Agent Phone',\r\n width: '15%',\r\n sortable: true,\r\n searchable: true\r\n },\r\n {\r\n field: 'agentEmail',\r\n label: 'Agent Email',\r\n aria: 'Agent Email',\r\n width: '25%',\r\n sortable: true,\r\n searchable: true\r\n }\r\n ],\r\n\r\n styles: {\r\n filterButton: {\r\n float: 'right',\r\n marginTop: '4px'\r\n }\r\n }\r\n})\r\n","\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Filter\r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./List.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./List.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./List.vue?vue&type=template&id=973edcb0&\"\nimport script from \"./List.vue?vue&type=script&lang=js&\"\nexport * from \"./List.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","/*\r\n import { vendorList } from '@/services/Vendors/store'\r\n*/\r\n\r\nimport Vue from 'vue'\r\nimport Vuex from 'vuex'\r\n\r\nimport { notifyProblem } from '@/services/notify'\r\nimport kms from '@/services/kms'\r\n\r\nconst isDebug = true\r\n\r\n/* eslint-disable no-empty-pattern */\r\nconst actions = {\r\n /*\r\n const { list } = await vendorList.dispatch ('getVendorList', {\r\n hoaId\r\n });\r\n */\r\n async getVendorList({}, { hoaId }) {\r\n console.log('in getVendorList...')\r\n try {\r\n const result = await kms.get('/Vendors/Vendor/List', {\r\n params: {\r\n hoaId\r\n }\r\n })\r\n\r\n if (isDebug == true) console.debug('getVendorList log=' + JSON.stringify(result))\r\n\r\n return {\r\n list: result.results\r\n }\r\n } catch (exception) {\r\n notifyProblem(`The vendors list could not be retrieved.`)\r\n console.error(exception)\r\n }\r\n\r\n return {\r\n list: []\r\n }\r\n },\r\n\r\n //Vendor by Id\r\n async getVendorById({}, { vendorID }) {\r\n try {\r\n console.debug('in getVendorById...' + vendorID)\r\n const vendor = await kms.get(`/Vendors/Vendor/${vendorID}`)\r\n\r\n if (isDebug == true) console.debug('getVendorById=' + JSON.stringify(vendor))\r\n\r\n return {\r\n result: vendor\r\n }\r\n } catch (exception) {\r\n notifyProblem(`There was a problem retrieving the vendor.`)\r\n console.error(exception)\r\n }\r\n\r\n return {\r\n vendor: {}\r\n }\r\n }\r\n}\r\n/* eslint-enable no-empty-pattern */\r\n\r\nVue.use(Vuex)\r\nexport const vendorList = new Vuex.Store({\r\n state: {},\r\n mutations: {},\r\n getters: {},\r\n actions\r\n})\r\n","/*\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"],"sourceRoot":""}