{"version":3,"sources":["webpack:///./src/mixins/table-context.mixin.ts","webpack:///./src/components/account/account-list.component.vue?6f35","webpack:///./src/components/account/account-list.component.vue","webpack:///./src/components/account/account-list.component.vue?0741","webpack:///./src/components/account/account-list.component.vue?aac9"],"names":["SESSION_TABLE_STATE","TableStateMixin","tableContext","currentTableContext","this","getTableContext","table","find","pageName","page","session","sessionStorage","getItem","JSON","parse","context","index","findIndex","push","setItem","stringify","computed","$route","name","render","_vm","_h","$createElement","_c","_self","attrs","_v","staticClass","on","onCreateAccount","veterinarianOffices","length","model","value","callback","$$v","filter","expression","ref","$mq","showTableLoading","sortBy","sortDesc","fields","currentPage","recordsPerPage","$event","onFiltered","onContextChanged","scopedSlots","_u","key","fn","proxy","records","_s","_e","row","_f","routeName","admin","editAccount","params","accountId","onEditUsers","item","onTagsClick","staticRenderFns","veterinarianModule","store","registeredTagModule","AccountListComponent","sortable","stickyColumn","label","tdClass","headerTitle","getNumberOfRecords","errors","getAllErrorMessages","$toasted","error","join","getVetOffices","perPage","getVeterinarianOfficesAction","filteredItems","office","id","$router","editUsers","setSelectedVeterinarianOfficeIdAction","getAllTagsByVeterinarianOfficeIdAction","registrations","setTableContext","newVeterinarianOfficeAction","createAccount","deep","component"],"mappings":"8KAGA,MAAMA,EAAsB,8BAS5B,IAAqBC,EAArB,MAAqBA,wBAAwB,OAA7C,c,oBACS,KAAAC,aAAoC,GAEpC,KAAAC,oBAA2C,KAE3C,UACLC,KAAKF,aAAeE,KAAKC,kBAEzB,MAAMC,EAAQF,KAAKF,aAAaK,KAC7BD,GAAUA,EAAME,WAAaJ,KAAKK,MAGjCH,IACFF,KAAKD,oBAAL,kBAAgCG,IAI5B,kBACN,MAAMI,EAAUC,eAAeC,QAAQZ,GACvC,OAAOU,EAAU,IAAIG,KAAKC,MAAMJ,IAAY,GAGvC,gBAAgBK,GACrB,MAAMC,EAAQZ,KAAKF,aAAae,UAC7BX,GAAUA,EAAME,WAAaJ,KAAKK,OAGtB,IAAXO,EAC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KD,oBAAoB4C,SACzC3C,KAAKqC,OAASrC,KAAKD,oBAAoBsC,QAInC,sBACkC,IAApCrC,KAAK+B,oBAAoBC,cACrBqC,EAAmBiB,+BAItB,qBACLtF,KAAKuD,QAAUvD,KAAK+B,oBAAoBC,OAGnC,WAAWuD,GAChBvF,KAAKuD,QAAUgC,EAAcvD,OAC7BhC,KAAK6C,YAAc,EAGd,kBAAkB2C,GACnBA,EAAOC,IACTzF,KAAK0F,QAAQ5E,KAAK,CAChBK,KAAM,OAAU0C,MAAM8B,UACtB5B,OAAQ,CAAEC,UAAWwB,EAAOC,MAK3B,kBAAkBzB,SACjBK,EAAmBuB,sCAAsC5B,GAG/DO,EAAoBsB,uCAAuC7B,GAE3DhE,KAAK0F,QAAQ5E,KAAK,CAChBK,KAAM,OAAU0C,MAAMiC,gBAInB,iBAAiBnF,GACtBX,KAAK+F,gBAAL,iCACKpF,GADL,IAEEP,SAAUJ,KAAKK,MAAQ,MAIpB,8BACCgE,EAAmB2B,4BAA4B,MAErDhG,KAAK0F,QAAQ5E,KAAK,CAAEK,KAAM,OAAU0C,MAAMoC,kBA1E5C,gBADC,eAAM,sBAAuB,CAAEC,MAAM,I,qKAGrC,MAGD,gBADC,eAAM,gBAAiB,CAAEA,MAAM,I,2EACuB,oB,EAAA,qBAAjB,gBAAiB,W,iFAKtD,MAnEkB,EAAoB,gBAZxC,eAAU,CACTjF,SAAU,gBACR,YACE,OAAO,SAEN,eAAS,OAA0B,CACpC,mBACA,sBACA,sBAIe,WC9J8Y,I,YCO/ZkF,EAAY,eACd,EACA/E,OACAgD,GACA,EACA,KACA,KACA,MAIa,aAAA+B,E","file":"js/chunk-f88cb64e.4a1e8f6f.js","sourcesContent":["import { Component, Vue } from 'vue-property-decorator';\nimport { TableContext } from '@/models/table-context.model';\n\nconst SESSION_TABLE_STATE = 'com.pawfinders.tablecontext';\n\n@Component({\n computed: {\n page(): string | null | undefined {\n return this.$route.name;\n }\n }\n})\nexport default class TableStateMixin extends Vue {\n public tableContext: Array = [];\n public page: string | null | undefined;\n public currentTableContext: TableContext | null = null;\n\n public created() {\n this.tableContext = this.getTableContext();\n\n const table = this.tableContext.find(\n (table) => table.pageName === this.page\n );\n\n if (table) {\n this.currentTableContext = { ...table };\n }\n }\n\n private getTableContext(): Array {\n const session = sessionStorage.getItem(SESSION_TABLE_STATE);\n return session ? [...JSON.parse(session)] : [];\n }\n\n public setTableContext(context: TableContext) {\n const index = this.tableContext.findIndex(\n (table) => table.pageName === this.page\n );\n\n if (index !== -1) {\n this.tableContext[index] = { ...context };\n } else {\n this.tableContext.push(context);\n }\n\n sessionStorage.setItem(\n SESSION_TABLE_STATE,\n JSON.stringify(this.tableContext)\n );\n }\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('b-row',[_c('b-col',{attrs:{\"sm\":\"12\",\"md\":\"6\"}},[_c('h3',[_vm._v(\"Accounts\")])]),_c('b-col',{staticClass:\"d-flex flex-md-row-reverse align-items-center\",attrs:{\"sm\":\"12\",\"md\":\"6\"}},[_c('b-link',{on:{\"click\":_vm.onCreateAccount}},[_c('b-icon-plus-circle',{attrs:{\"scale\":\"1.5\"}}),_c('span',{staticClass:\"ml-2\"},[_vm._v(\"Account\")])],1)],1)],1),_c('b-row',{staticClass:\"mt-3\",attrs:{\"align-v\":\"end\"}},[_c('b-col',{attrs:{\"sm\":\"12\",\"md\":\"6\",\"lg\":\"4\"}},[_c('label',[_vm._v(\"Search\")]),_c('b-form-group',{staticClass:\"mr-md-3 mb-3 mb-lg-0\"},[_c('b-form-input',{attrs:{\"type\":\"search\",\"disabled\":_vm.veterinarianOffices.length === 0,\"placeholder\":\"name, address, etc...\"},model:{value:(_vm.filter),callback:function ($$v) {_vm.filter=$$v},expression:\"filter\"}})],1)],1)],1),_c('b-table',{ref:\"accountTable\",staticClass:\"mt-3\",attrs:{\"stacked\":_vm.$mq === 'sm',\"small\":\"\",\"sort-icon-left\":\"\",\"show-empty\":\"\",\"no-sort-reset\":\"\",\"primary-key\":\"id\",\"responsive\":\"sm\",\"busy\":_vm.showTableLoading,\"sort-by\":_vm.sortBy,\"sort-desc\":_vm.sortDesc,\"fields\":_vm.fields,\"items\":_vm.veterinarianOffices,\"current-page\":_vm.currentPage,\"per-page\":_vm.recordsPerPage,\"filter\":_vm.filter},on:{\"update:busy\":function($event){_vm.showTableLoading=$event},\"update:sortBy\":function($event){_vm.sortBy=$event},\"update:sort-by\":function($event){_vm.sortBy=$event},\"update:sortDesc\":function($event){_vm.sortDesc=$event},\"update:sort-desc\":function($event){_vm.sortDesc=$event},\"filtered\":_vm.onFiltered,\"context-changed\":_vm.onContextChanged},scopedSlots:_vm._u([{key:\"table-busy\",fn:function(){return [_c('div',{staticClass:\"text-center\"},[_c('b-icon-arrow-clockwise',{attrs:{\"font-scale\":\"2\",\"animation\":\"spin\"}})],1)]},proxy:true},{key:\"empty\",fn:function(){return [_c('div',{attrs:{\"role\":\"alert\",\"aria-live\":\"polite\"}},[_c('p',{staticClass:\"text-center mb-0\"},[_vm._v(\" There are no records to display. \")])])]},proxy:true},{key:\"emptyfiltered\",fn:function(){return [_c('div',{attrs:{\"role\":\"alert\",\"aria-live\":\"polite\"}},[_c('p',{staticClass:\"text-center mb-0\"},[_vm._v(\" There are no records matching your request. \")])])]},proxy:true},{key:\"table-caption\",fn:function(){return [(_vm.records > 0 && _vm.filter)?_c('div',{staticClass:\"text-muted small\"},[_vm._v(\" Total filtered records: \"+_vm._s(_vm.records)+\" \")]):_vm._e()]},proxy:true},{key:\"cell(erpNumber)\",fn:function(row){return [_vm._v(\" \"+_vm._s(row.value || 'N/A')+\" \")]}},{key:\"cell(dateModifiedUtc)\",fn:function(row){return [_vm._v(\" \"+_vm._s(_vm._f(\"localTime\")(row.value))+\" \")]}},{key:\"cell(id)\",fn:function(row){return [_c('b-nav',{attrs:{\"align\":_vm.$mq === 'sm' ? 'start' : 'end'}},[_c('b-nav-item-dropdown',{attrs:{\"right\":\"\",\"text\":\"Action\",\"toggle-class\":\"py-0 pl-0\"}},[_c('b-dropdown-item',{attrs:{\"to\":{\n name: _vm.routeName.admin.editAccount,\n params: { accountId: row.value }\n }}},[_c('b-icon-building'),_vm._v(\" Edit Account\")],1),_c('b-dropdown-divider'),_c('b-dropdown-item',{on:{\"click\":function($event){return _vm.onEditUsers(row.item)}}},[_c('b-icon-people'),_vm._v(\" Edit Users\")],1),_c('b-dropdown-divider'),_c('b-dropdown-item',{on:{\"click\":function($event){return _vm.onTagsClick(row.value)}}},[_c('b-icon-tag'),_vm._v(\" Tags \")],1)],1)],1)]}}])}),(_vm.records > _vm.recordsPerPage)?_c('div',{staticClass:\"mt-5\"},[_c('b-pagination',{attrs:{\"align\":_vm.$mq === 'sm' ? 'fill' : 'left',\"size\":\"md\",\"total-rows\":_vm.records,\"per-page\":_vm.recordsPerPage,\"aria-controls\":\"accountTable\"},model:{value:(_vm.currentPage),callback:function ($$v) {_vm.currentPage=$$v},expression:\"currentPage\"}})],1):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Watch } from 'vue-property-decorator';\nimport { mixins } from 'vue-class-component';\nimport { TableField } from '@/models/table-field.model';\nimport { routeName } from '@/constants/route.constants';\nimport store from '@/store';\nimport { getModule } from 'vuex-module-decorators';\nimport VeterinarianModule, {\n VETERINARIAN_MODULE_NAME\n} from '@/store/modules/veterinarian.module';\nimport RegisteredTagModule from '@/store/modules/registered-tag.module';\nimport { mapState } from 'vuex';\nimport { VeterinarianOffice } from '@/models/DTO/veterinarian-office/veterinarian-office.model';\nimport { TableContext } from '@/models/table-context.model';\nimport TableContextMixin from '@/mixins/table-context.mixin';\nimport { BaseAPIErrorModel } from '@/models/DTO/base-api-error.model';\n\nconst veterinarianModule: VeterinarianModule = getModule(\n VeterinarianModule,\n store\n);\n\nconst registeredTagModule: RegisteredTagModule = getModule(\n RegisteredTagModule,\n store\n);\n\n@Component({\n computed: {\n routeName(): typeof routeName {\n return routeName;\n },\n ...mapState(VETERINARIAN_MODULE_NAME, [\n 'showTableLoading',\n 'veterinarianOffices',\n 'errorResponse'\n ])\n }\n})\nexport default class AccountListComponent extends mixins(TableContextMixin) {\n public showTableLoading: boolean;\n public veterinarianOffices: Array;\n public errorResponse: BaseAPIErrorModel | null;\n public currentPage = 1;\n public recordsPerPage = 10;\n public sortBy = 'name';\n public sortDesc = false;\n public filter = '';\n public records = 0;\n\n public fields: Array = [\n {\n key: 'name',\n sortable: true,\n stickyColumn: true\n },\n {\n key: 'erpNumber',\n sortable: true,\n label: 'ERP #'\n },\n {\n key: 'address1',\n sortable: true,\n label: 'Address'\n },\n {\n key: 'city',\n sortable: true,\n label: 'City'\n },\n {\n key: 'state',\n sortable: true,\n label: 'State'\n },\n {\n key: 'zipCode',\n sortable: true,\n label: 'Zip'\n },\n {\n key: 'dateModifiedUtc',\n sortable: true,\n label: 'Modified'\n },\n {\n key: 'id',\n sortable: false,\n label: '',\n tdClass: 'text-right',\n headerTitle: 'Edit veterinarian account actions.'\n }\n ];\n\n @Watch('veterinarianOffices', { deep: true })\n private onVeterinarianOfficesChanged() {\n return this.getNumberOfRecords();\n }\n\n @Watch('errorResponse', { deep: true })\n private onErrorResponseChanged(value: BaseAPIErrorModel) {\n if (value) {\n const errors = value.getAllErrorMessages();\n return this.$toasted.error(errors.join());\n }\n }\n\n public created() {\n this.filter = '';\n this.records = this.veterinarianOffices.length;\n\n this.getVetOffices();\n }\n\n public mounted() {\n if (this.currentTableContext) {\n this.currentPage = this.currentTableContext.currentPage;\n this.recordsPerPage = this.currentTableContext.perPage;\n this.sortBy = this.currentTableContext.sortBy;\n this.sortDesc = this.currentTableContext.sortDesc;\n this.filter = this.currentTableContext.filter;\n }\n }\n\n private async getVetOffices() {\n if (this.veterinarianOffices.length === 0) {\n await veterinarianModule.getVeterinarianOfficesAction();\n }\n }\n\n public getNumberOfRecords() {\n this.records = this.veterinarianOffices.length;\n }\n\n public onFiltered(filteredItems: Array) {\n this.records = filteredItems.length;\n this.currentPage = 1;\n }\n\n public async onEditUsers(office: VeterinarianOffice) {\n if (office.id) {\n this.$router.push({\n name: routeName.admin.editUsers,\n params: { accountId: office.id }\n });\n }\n }\n\n public async onTagsClick(accountId: string) {\n await veterinarianModule.setSelectedVeterinarianOfficeIdAction(accountId);\n\n // no need to wait\n registeredTagModule.getAllTagsByVeterinarianOfficeIdAction(accountId);\n\n this.$router.push({\n name: routeName.admin.registrations\n });\n }\n\n public onContextChanged(context: TableContext) {\n this.setTableContext({\n ...context,\n pageName: this.page || ''\n });\n }\n\n public async onCreateAccount() {\n await veterinarianModule.newVeterinarianOfficeAction(null);\n\n this.$router.push({ name: routeName.admin.createAccount });\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./account-list.component.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./account-list.component.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./account-list.component.vue?vue&type=template&id=df9ec8a8&\"\nimport script from \"./account-list.component.vue?vue&type=script&lang=ts&\"\nexport * from \"./account-list.component.vue?vue&type=script&lang=ts&\"\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":""}