{"version":3,"sources":["webpack:///./src/views/Pages/Transactions.vue","webpack:///src/views/Pages/Transactions.vue","webpack:///./src/views/Pages/Transactions.vue?1063","webpack:///./src/views/Pages/Transactions.vue?5671"],"names":["render","_vm","this","_c","_self","hasRole","directives","name","rawName","value","showFilter","expression","attrs","on","nameSelected","_v","staticClass","model","form","startDate","callback","$$v","$set","endDate","statuses","modules","hideFilter","_e","staticRenderFns","title","inject","components","_defineProperty","_Table","_TableColumn","_Dropdown","_DropdownItem","_DropdownMenu","flatPicker","TransactionSearchResults","props","itemLimit","type","Number","default","created","$route","query","Date","alert","showApproved","showDeclined","module","$localStorageService","getItem","filter","m","data","text","customerId","paymentPlans","currentPage","methods","customer","id","component"],"mappings":"+HAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAQF,EAAII,QAAQ,oBAAqBF,EAAG,MAAM,CAACA,EAAG,SAAS,CAACG,WAAW,CAAC,CAACC,KAAK,OAAOC,QAAQ,SAASC,MAAOR,EAAIS,WAAYC,WAAW,eAAeC,MAAM,CAAC,eAAe,aAAa,CAACT,EAAG,QAAQ,CAACA,EAAG,QAAQ,CAACA,EAAG,aAAa,CAACS,MAAM,CAAC,MAAQ,YAAY,CAACT,EAAG,iBAAiB,CAACU,GAAG,CAAC,aAAeZ,EAAIa,gBAAgBX,EAAG,QAAQ,CAACF,EAAIc,GAAG,qCAAqC,IAAI,GAAGZ,EAAG,QAAQ,CAACA,EAAG,QAAQ,CAACa,YAAY,sBAAsB,CAACf,EAAIc,GAAG,gBAAgBZ,EAAG,oBAAoB,CAACa,YAAY,YAAYJ,MAAM,CAAC,GAAK,YAAY,OAAS,MAAMK,MAAM,CAACR,MAAOR,EAAIiB,KAAKC,UAAWC,SAAS,SAAUC,GAAMpB,EAAIqB,KAAKrB,EAAIiB,KAAM,YAAaG,IAAMV,WAAW,qBAAqB,GAAGR,EAAG,QAAQ,CAACA,EAAG,QAAQ,CAACa,YAAY,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eC7JoW,I,YCOhWkB,EAAY,eACd,EACAjE,EACA4B,GACA,EACA,KACA,KACA,MAIa,aAAAqC,E","file":"js/Pages-Transactions-vue.e9300020.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.hasRole('VIEWTRANSACTIONS'))?_c('div',[_c('b-card',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showFilter),expression:\"showFilter\"}],attrs:{\"header-class\":\"border-0\"}},[_c('b-row',[_c('b-col',[_c('base-input',{attrs:{\"label\":\"Patient\"}},[_c('customerSelect',{on:{\"nameSelected\":_vm.nameSelected}}),_c('small',[_vm._v(\"Search by first name or e-mail\")])],1)],1),_c('b-col',[_c('label',{staticClass:\"form-control-label\"},[_vm._v(\"Start Date\")]),_c('b-form-datepicker',{staticClass:\"col-sm-12\",attrs:{\"id\":\"startDate\",\"locale\":\"en\"},model:{value:(_vm.form.startDate),callback:function ($$v) {_vm.$set(_vm.form, \"startDate\", $$v)},expression:\"form.startDate\"}})],1),_c('b-col',[_c('label',{staticClass:\"form-control-label\"},[_vm._v(\"End Date\")]),_c('b-form-datepicker',{staticClass:\"col-sm-12\",attrs:{\"id\":\"endDate\",\"locale\":\"en\"},model:{value:(_vm.form.endDate),callback:function ($$v) {_vm.$set(_vm.form, \"endDate\", $$v)},expression:\"form.endDate\"}})],1),_c('b-col',[_c('label',{staticClass:\"form-control-label\"},[_vm._v(\"Status\")]),_c('b-form-checkbox-group',{attrs:{\"options\":_vm.statuses,\"stacked\":\"\"},model:{value:(_vm.form.statuses),callback:function ($$v) {_vm.$set(_vm.form, \"statuses\", $$v)},expression:\"form.statuses\"}})],1),_c('b-col',[_c('label',{staticClass:\"form-control-label\"},[_vm._v(\"Modules\")]),_c('b-form-checkbox-group',{attrs:{\"options\":_vm.modules,\"stacked\":\"\"},model:{value:(_vm.form.modules),callback:function ($$v) {_vm.$set(_vm.form, \"modules\", $$v)},expression:\"form.modules\"}})],1)],1)],1),_c('b-card',{attrs:{\"body-class\":\"p-0\",\"header-class\":\"border-0\"}},[_c('transaction-search-results',{attrs:{\"query\":_vm.form},on:{\"hideFilter\":_vm.hideFilter}})],1)],1):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div v-if=\"hasRole('VIEWTRANSACTIONS')\">\n <b-card header-class=\"border-0\" v-show=\"showFilter\">\n <b-row>\n <b-col>\n <base-input label=\"Patient\">\n <customerSelect v-on:nameSelected=\"nameSelected\"></customerSelect>\n <small>Search by first name or e-mail</small>\n </base-input>\n </b-col>\n <b-col>\n <label class=\"form-control-label\">Start Date</label>\n <b-form-datepicker\n id=\"startDate\"\n v-model=\"form.startDate\"\n class=\"col-sm-12\"\n locale=\"en\"\n ></b-form-datepicker>\n </b-col>\n <b-col>\n <label class=\"form-control-label\">End Date</label>\n <b-form-datepicker\n id=\"endDate\"\n v-model=\"form.endDate\"\n class=\"col-sm-12\"\n locale=\"en\"\n ></b-form-datepicker>\n </b-col>\n <b-col>\n <label class=\"form-control-label\">Status</label>\n <b-form-checkbox-group\n :options=\"statuses\"\n v-model=\"form.statuses\"\n stacked\n />\n </b-col>\n <b-col>\n <label class=\"form-control-label\">Modules</label>\n <b-form-checkbox-group\n :options=\"modules\"\n v-model=\"form.modules\"\n stacked\n />\n </b-col>\n </b-row>\n </b-card>\n\n <b-card body-class=\"p-0\" header-class=\"border-0\">\n <transaction-search-results :query=\"form\" @hideFilter=\"hideFilter\" />\n </b-card>\n </div>\n</template>\n<script>\nimport flatPicker from \"vue-flatpickr-component\";\nimport \"flatpickr/dist/flatpickr.css\";\nimport TransactionSearchResults from \"@/views/Components/Transactions/SearchResults\";\n\nimport {\n Table,\n TableColumn,\n DropdownMenu,\n DropdownItem,\n Dropdown,\n} from \"element-ui\";\n\nexport default {\n name: \"light-table\",\n title: \"Transactions\",\n inject: [\"hasRole\"],\n components: {\n [Table.name]: Table,\n [TableColumn.name]: TableColumn,\n [Dropdown.name]: Dropdown,\n [DropdownItem.name]: DropdownItem,\n [DropdownMenu.name]: DropdownMenu,\n flatPicker,\n TransactionSearchResults,\n },\n props: {\n itemLimit: {\n type: Number,\n default: 9,\n },\n },\n created() {\n if (this.$route.query.startDate) {\n this.form.startDate = new Date(this.$route.query.startDate);\n }\n\n if (this.$route.query.endDate) {\n alert(this.$route.query.endDate);\n this.form.endDate = new Date(this.$route.query.endDate);\n }\n\n if (this.$route.query.showApproved) {\n this.form.statuses = [\"APPROVED\"];\n }\n\n if (this.$route.query.showDeclined) {\n this.form.statuses = [\"DECLINED\"];\n }\n\n if (this.$route.query.module == \"OTHER\") {\n this.form.modules = [\"TERMINAL\", \"VIRTUALTERMINAL\"];\n } else if (this.$route.query.module) {\n this.form.modules = [this.$route.query.module];\n }\n\n if (this.$localStorageService.getItem(\"gatewayCode\") != \"OPENDENTAL\") {\n // remove Reimbursements from modules\n\n this.modules = this.modules.filter((m) => m.value != \"INSURANCE\");\n }\n },\n data() {\n return {\n showFilter: true,\n statuses: [\n { value: \"APPROVED\", text: \"Approved\" },\n { value: \"DECLINED\", text: \"Declined\" },\n ],\n modules: [\n { value: \"TERMINAL\", text: \"Terminal\" },\n { value: \"PAYMENTPLAN\", text: \"Payment Plan\" },\n { value: \"MEMBERSHIP\", text: \"Membership\" },\n { value: \"TEXTTOPAY\", text: \"Payment Request\" },\n { value: \"VIRTUALTERMINAL\", text: \"Virtual Terminal\" },\n { value: \"INSURANCE\", text: \"Reimbursements\" },\n { value: \"PAYMENTPAGE\", text: \"Payment Page\" },\n ],\n form: {\n startDate: null,\n endDate: null,\n customerId: null,\n modules: [\n \"TERMINAL\",\n \"PAYMENTPLAN\",\n \"TEXTTOPAY\",\n \"VIRTUALTERMINAL\",\n \"MEMBERSHIP\",\n \"PAYMENTPAGE\",\n \"INSURANCE\",\n ],\n statuses: [\"APPROVED\", \"DECLINED\"],\n },\n paymentPlans: [],\n currentPage: 1,\n };\n },\n methods: {\n hideFilter() {\n var self = this;\n this.showFilter = false;\n },\n nameSelected(customer) {\n this.form.customerId = customer.id;\n },\n query() {},\n },\n};\n</script>\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!./Transactions.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!./Transactions.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Transactions.vue?vue&type=template&id=f35198f8\"\nimport script from \"./Transactions.vue?vue&type=script&lang=js\"\nexport * from \"./Transactions.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}