{"version":3,"sources":["webpack:///./src/components/admin/admin-user.component.vue?94a7","webpack:///./src/components/admin/admin-user-form.component.vue?5f33","webpack:///./src/components/admin/admin-user-form.component.vue","webpack:///./src/components/admin/admin-user-form.component.vue?8326","webpack:///./src/components/admin/admin-user-form.component.vue?c3f1","webpack:///./src/components/admin/admin-user-list.component.vue?08da","webpack:///./src/components/admin/admin-user-list.component.vue","webpack:///./src/components/admin/admin-user-list.component.vue?ddeb","webpack:///./src/components/admin/admin-user-list.component.vue?e03f","webpack:///./src/components/admin/admin-user.component.vue","webpack:///./src/components/admin/admin-user.component.vue?58cc","webpack:///./src/components/admin/admin-user.component.vue?9e93","webpack:///./src/mixins/table-context.mixin.ts","webpack:///./src/components/shared/confirmation.component.vue?cd30","webpack:///./src/components/shared/confirmation.component.vue","webpack:///./src/components/shared/confirmation.component.vue?e0c3","webpack:///./src/components/shared/confirmation.component.vue?be44"],"names":["render","_vm","this","_h","$createElement","_c","_self","_v","staticClass","attrs","staticRenderFns","ref","scopedSlots","_u","key","fn","handleSubmit","reset","on","$event","preventDefault","onSaveClick","accountId","classes","class","model","value","callback","$$v","email","trim","expression","showButtonLoading","_e","onResetClick","adminUserModule","store","authenticationModule","AdminUserFormComponent","errors","getAllErrorMessages","$toasted","error","join","registerAdminAction","registerAdminSuccess","success","getAllAdminUsersAction","$refs","adminUserForm","default","deep","components","ValidationObserver","ValidationProvider","computed","component","adminUsers","length","filter","$mq","sortBy","sortDesc","fields","currentPage","recordsPerPage","showTableLoading","onFiltered","onContextChanged","proxy","records","_s","row","item","_f","isLockedOut","jwtEmail","onUnlockUserClick","onLockUserClick","onResetPasswordClick","confirmationMessage","confirmationAction","confirmationTitle","lockUser","unlockUser","resetPassword","veterinarianOfficeUserModule","AdminUserListComponent","selectedUserId","selectedUserRole","selectedUserEmail","sortable","label","tdClass","headerTitle","getNumberOfRecords","getAdminUsers","currentTableContext","perPage","filteredItems","id","roles","$bvModal","show","context","setTableContext","pageName","page","event","confirmed","includes","Admin","lockAdminUserAction","Veterinarian","VeterinarianUser","lockoutVeterinarianOfficeUserAction","errorResponse","errorVetUserResponse","unlockAdminUserAction","unlockVeterinarianOfficeUserAction","setPasswordAction","resetPasswordSuccess","ConfirmationComponent","AdminUserComponent","SESSION_TABLE_STATE","TableStateMixin","tableContext","getTableContext","table","find","session","sessionStorage","getItem","JSON","parse","index","findIndex","push","setItem","stringify","$route","name","modalId","onHideEvent","title","message","onCancelClick","onProceedClick","$emit","action","hide","required"],"mappings":"yHAAA,I,EAAIA,OAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,QAAQ,CAACA,EAAG,QAAQ,CAACA,EAAG,KAAK,CAACJ,EAAIM,GAAG,sBAAsB,GAAGF,EAAG,QAAQ,CAACA,EAAG,QAAQ,CAACG,YAAY,OAAOC,MAAM,CAAC,GAAK,KAAK,GAAK,MAAM,CAACJ,EAAG,2BAA2B,GAAGA,EAAG,QAAQ,CAACI,MAAM,CAAC,GAAK,KAAK,GAAK,MAAM,CAACJ,EAAG,2BAA2B,IAAI,IAAI,IAC/VK,EAAkB,G,wBCDlB,8DAAS,WAAa,IAAIT,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,qBAAqB,CAACM,IAAI,gBAAgBC,YAAYX,EAAIY,GAAG,CAAC,CAACC,IAAI,UAAUC,GAAG,SAASJ,GACtM,IAAIK,EAAeL,EAAIK,aACnBC,EAAQN,EAAIM,MAChB,MAAO,CAACZ,EAAG,OAAO,CAACa,GAAG,CAAC,OAAS,SAASC,GAAgC,OAAxBA,EAAOC,iBAAwBJ,EAAaf,EAAIoB,cAAc,MAAQ,SAASF,GAAgC,OAAxBA,EAAOC,iBAAwBH,EAAME,MAAW,CAACd,EAAG,SAAS,CAACI,MAAM,CAAC,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AU,I,oEAOZ,gBAHC,eAAK,CACJA,UAAU,I,mEAKZ,gBADC,iB,kEAhBkB,EAAqB,gBADzC,QACoB,WC1B8Y,I,YCO/Z/F,EAAY,eACd,EACAxD,OACAU,GACA,EACA,KACA,KACA,MAIa,OAAA8C,E","file":"js/chunk-61562db6.abc5c263.js","sourcesContent":["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',[_c('h3',[_vm._v(\"Active Admins\")])])],1),_c('b-row',[_c('b-col',{staticClass:\"my-3\",attrs:{\"sm\":\"12\",\"md\":\"4\"}},[_c('AdminUserFormComponent')],1),_c('b-col',{attrs:{\"sm\":\"12\",\"md\":\"8\"}},[_c('AdminUserListComponent')],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('ValidationObserver',{ref:\"adminUserForm\",scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar handleSubmit = ref.handleSubmit;\nvar reset = ref.reset;\nreturn [_c('form',{on:{\"submit\":function($event){$event.preventDefault();return handleSubmit(_vm.onSaveClick)},\"reset\":function($event){$event.preventDefault();return reset($event)}}},[_c('b-card',{attrs:{\"title\":_vm.accountId ? 'Edit User' : 'Add User'}},[_c('ValidationProvider',{attrs:{\"rules\":\"required|email\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar classes = ref.classes;\nreturn [_c('b-form-group',{staticClass:\"mb-3\"},[_c('b-form-input',{class:classes,attrs:{\"type\":\"email\",\"placeholder\":\"email address\"},model:{value:(_vm.email),callback:function ($$v) {_vm.email=(typeof $$v === 'string'? $$v.trim(): $$v)},expression:\"email\"}})],1),_c('div',{staticClass:\"d-flex flex-row-reverse justify-content-between align-items-center\"},[_c('b-button',{staticClass:\"w-50\",attrs:{\"disabled\":_vm.showButtonLoading,\"type\":\"submit\"}},[_vm._v(\"Save \"),(_vm.showButtonLoading)?_c('b-icon-arrow-clockwise',{attrs:{\"animation\":\"spin\"}}):_vm._e()],1),_c('b-button',{attrs:{\"size\":\"sm\",\"variant\":\"link\",\"disabled\":_vm.showButtonLoading},on:{\"click\":_vm.onResetClick}},[_vm._v(\" Cancel\")])],1)]}}],null,true)})],1)],1)]}}])})],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\nimport { Component, Vue, Prop, Watch } from 'vue-property-decorator';\nimport { ValidationProvider, ValidationObserver } from 'vee-validate';\nimport AuthenticationModule, {\n AUTHENTICATION_MODULE_NAME\n} from '@/store/modules/authentication.module';\nimport AdminUserModule from '@/store/modules/admin-user.module';\nimport store from '@/store';\nimport { getModule } from 'vuex-module-decorators';\nimport { mapState } from 'vuex';\nimport { BaseAPIErrorModel } from '@/models/DTO/base-api-error.model';\n\nconst adminUserModule: AdminUserModule = getModule(AdminUserModule, store);\n\nconst authenticationModule: AuthenticationModule = getModule(\n AuthenticationModule,\n store\n);\n\n@Component({\n components: {\n ValidationObserver,\n ValidationProvider\n },\n computed: {\n ...mapState(AUTHENTICATION_MODULE_NAME, [\n 'showButtonLoading',\n 'errorResponse',\n 'registerAdminSuccess'\n ])\n }\n})\nexport default class AdminUserFormComponent extends Vue {\n @Prop({\n default: null\n })\n public accountId: string;\n\n public showButtonLoading: boolean;\n public errorResponse: BaseAPIErrorModel | null;\n public registerAdminSuccess: boolean | null;\n public email = '';\n\n public $refs: {\n adminUserForm: HTMLFormElement;\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 async onSaveClick() {\n await authenticationModule.registerAdminAction({\n email: this.email\n });\n\n if (this.registerAdminSuccess) {\n this.onResetClick();\n this.$toasted.success(\n 'An invitation email has been sent with instructions on how to sign in.'\n );\n\n await adminUserModule.getAllAdminUsersAction();\n }\n }\n\n public onResetClick() {\n this.email = '';\n this.$refs.adminUserForm.reset();\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!./admin-user-form.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!./admin-user-form.component.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./admin-user-form.component.vue?vue&type=template&id=5d6d8436&\"\nimport script from \"./admin-user-form.component.vue?vue&type=script&lang=ts&\"\nexport * from \"./admin-user-form.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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('b-row',{staticClass:\"my-3\",attrs:{\"align-v\":\"end\"}},[_c('b-col',{attrs:{\"sm\":\"12\",\"md\":\"8\",\"lg\":\"6\"}},[_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.adminUsers.length < 5,\"placeholder\":\"email\"},model:{value:(_vm.filter),callback:function ($$v) {_vm.filter=$$v},expression:\"filter\"}})],1)],1)],1),_c('b-table',{ref:\"adminUserTable\",attrs:{\"stacked\":_vm.$mq === 'sm',\"small\":\"\",\"sort-icon-left\":\"\",\"show-empty\":\"\",\"no-sort-reset\":\"\",\"primary-key\":\"id\",\"responsive\":\"sm\",\"sort-by\":_vm.sortBy,\"sort-desc\":_vm.sortDesc,\"fields\":_vm.fields,\"items\":_vm.adminUsers,\"current-page\":_vm.currentPage,\"per-page\":_vm.recordsPerPage,\"filter\":_vm.filter,\"busy\":_vm.showTableLoading},on:{\"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},\"update:busy\":function($event){_vm.showTableLoading=$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(email)\",fn:function(row){return [(row.item.isLockedOut)?_c('b-icon-lock-fill',{attrs:{\"variant\":\"danger\",\"scale\":\".8\"}}):_vm._e(),_vm._v(\" \"+_vm._s(row.value)+\" \")]}},{key:\"cell(dateModifiedUtc)\",fn:function(row){return [_vm._v(\" \"+_vm._s(_vm._f(\"localTime\")(row.value))+\" \")]}},{key:\"cell(id)\",fn:function(row){return [(!row.item.isLockedOut)?_c('b-nav',{attrs:{\"align\":_vm.$mq === 'sm' ? 'start' : 'end'}},[_c('b-nav-item-dropdown',{attrs:{\"disabled\":row.item.email === _vm.jwtEmail,\"right\":\"\",\"text\":\"Action\",\"toggle-class\":\"py-0 pl-0\"}},[_c('b-dropdown-item',{on:{\"click\":function($event){return _vm.onLockUserClick(row.item)}}},[_c('b-iconstack',[_c('b-icon-person',{attrs:{\"stacked\":\"\",\"shift-h\":\"-2\"}}),_c('b-icon-lock',{attrs:{\"stacked\":\"\",\"scale\":\"0.5\",\"shift-h\":\"6\",\"shift-v\":\"2\"}})],1),_vm._v(\" Lock User \")],1),_c('b-dropdown-divider'),_c('b-dropdown-item',{on:{\"click\":function($event){return _vm.onResetPasswordClick(row.item)}}},[_c('b-icon-shield-lock'),_vm._v(\" Reset Password \")],1)],1)],1):_c('b-nav',{attrs:{\"align\":_vm.$mq === 'sm' ? 'start' : 'end'}},[_c('b-nav-item-dropdown',{attrs:{\"disabled\":row.item.email === _vm.jwtEmail,\"right\":\"\",\"text\":\"Action\",\"toggle-class\":\"py-0 pl-0\"}},[_c('b-dropdown-item',{on:{\"click\":function($event){return _vm.onUnlockUserClick(row.item)}}},[_c('b-iconstack',[_c('b-icon-person',{attrs:{\"stacked\":\"\",\"shift-h\":\"-3\"}}),_c('b-icon-unlock',{attrs:{\"stacked\":\"\",\"scale\":\"0.5\",\"shift-h\":\"5\",\"shift-v\":\"2\"}})],1),_vm._v(\" Unlock User \")],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.adminUsers.length,\"per-page\":_vm.recordsPerPage,\"aria-controls\":\"adminUserTable\"},model:{value:(_vm.currentPage),callback:function ($$v) {_vm.currentPage=$$v},expression:\"currentPage\"}})],1):_vm._e(),_c('ConfirmationComponent',{attrs:{\"modalId\":\"admin-user-list-modal\",\"message\":_vm.confirmationMessage,\"action\":_vm.confirmationAction,\"title\":_vm.confirmationTitle},on:{\"lock-user-action\":_vm.lockUser,\"unlock-user-action\":_vm.unlockUser,\"reset-password-action\":_vm.resetPassword}})],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\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 { AdminUserModel } from '@/models/DTO/admin/admin-user.model';\nimport { mapState } from 'vuex';\nimport { BaseAPIErrorModel } from '@/models/DTO/base-api-error.model';\nimport AdminUserModule, {\n ADMIN_USER_MODULE_NAME\n} from '@/store/modules/admin-user.module';\nimport AuthenticationModule, {\n AUTHENTICATION_MODULE_NAME\n} from '@/store/modules/authentication.module';\nimport VeterinarianOfficeUserModule, {\n VETERINARIAN_USER_MODULE_NAME\n} from '@/store/modules/veterinarian-office-user.module';\nimport store from '@/store';\nimport { getModule } from 'vuex-module-decorators';\nimport TableContextMixin from '@/mixins/table-context.mixin';\nimport { TableContext } from '@/models/table-context.model';\nimport ConfirmationComponent from '@/components/shared/confirmation.component.vue';\nimport { BvModalEvent } from 'bootstrap-vue';\nimport { Role } from '@/constants/role.constants';\n\nconst adminUserModule: AdminUserModule = getModule(AdminUserModule, store);\n\nconst authenticationModule: AuthenticationModule = getModule(\n AuthenticationModule,\n store\n);\n\nconst veterinarianOfficeUserModule: VeterinarianOfficeUserModule = getModule(\n VeterinarianOfficeUserModule,\n store\n);\n\n@Component({\n components: {\n ConfirmationComponent\n },\n computed: {\n ...mapState(ADMIN_USER_MODULE_NAME, [\n 'adminUsers',\n 'showTableLoading',\n 'errorResponse'\n ]),\n ...mapState(AUTHENTICATION_MODULE_NAME, ['resetPasswordSuccess']),\n ...mapState(VETERINARIAN_USER_MODULE_NAME, {\n errorVetUserResponse: 'errorResponse'\n })\n }\n})\nexport default class AdminUserListComponent extends mixins(TableContextMixin) {\n public adminUsers: Array;\n public showTableLoading: boolean;\n public errorResponse: BaseAPIErrorModel | null;\n public errorVetUserResponse: BaseAPIErrorModel | null;\n public resetPasswordSuccess: boolean | null;\n public currentPage = 1;\n public recordsPerPage = 10;\n public sortBy = 'email';\n public sortDesc = false;\n public filter = '';\n public records = 0;\n\n // Confirmation variables\n public selectedUserId = '';\n public selectedUserRole: Array = [];\n public selectedUserEmail = '';\n public confirmationMessage = 'Are you sure you want to proceed?';\n public confirmationAction = '';\n public confirmationTitle = '';\n\n public fields: Array = [\n {\n key: 'email',\n sortable: true,\n label: 'Email'\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 admin user actions.'\n }\n ];\n\n public get jwtEmail(): string {\n return authenticationModule.jwtEmail;\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 @Watch('errorVetUserResponse', { deep: true })\n private onErrorVetUserResponseChanged(value: BaseAPIErrorModel) {\n if (value) {\n const errors = value.getAllErrorMessages();\n return this.$toasted.error(errors.join());\n }\n }\n\n @Watch('adminUsers', { deep: true })\n private onItemsChanged() {\n return this.getNumberOfRecords();\n }\n\n public created() {\n this.filter = '';\n this.records = this.adminUsers.length;\n\n this.getAdminUsers();\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 public async getAdminUsers() {\n if (this.adminUsers.length === 0) {\n await adminUserModule.getAllAdminUsersAction();\n }\n }\n\n public getNumberOfRecords() {\n this.records = this.adminUsers.length;\n }\n\n public onFiltered(filteredItems: Array) {\n this.records = filteredItems.length;\n this.currentPage = 1;\n }\n\n public onLockUserClick(row: AdminUserModel) {\n // Trigger confirmation\n this.selectedUserId = row.id || '';\n this.selectedUserRole = row.roles || [];\n this.confirmationAction = 'lock-user-action';\n this.confirmationTitle = `Lock user ${row.email}`;\n this.selectedUserEmail = row.email;\n\n this.$bvModal.show('admin-user-list-modal');\n }\n\n public onUnlockUserClick(row: AdminUserModel) {\n // Trigger confirmation\n this.selectedUserId = row.id || '';\n this.selectedUserRole = row.roles || [];\n this.confirmationAction = 'unlock-user-action';\n this.confirmationTitle = `Unlocking user ${row.email}`;\n this.selectedUserEmail = row.email;\n\n this.$bvModal.show('admin-user-list-modal');\n }\n\n public onResetPasswordClick(row: AdminUserModel) {\n // Trigger confirmation\n this.selectedUserId = row.id || '';\n this.confirmationAction = 'reset-password-action';\n this.confirmationTitle = `Reset password for ${row.email}`;\n this.selectedUserEmail = row.email;\n\n this.$bvModal.show('admin-user-list-modal');\n }\n\n public onContextChanged(context: TableContext) {\n this.setTableContext({\n ...context,\n pageName: this.page || ''\n });\n }\n\n public async lockUser(event: BvModalEvent) {\n if (event.confirmed) {\n if (this.selectedUserRole.includes(Role.Admin)) {\n await adminUserModule.lockAdminUserAction(this.selectedUserId);\n } else if (\n this.selectedUserRole.includes(Role.Veterinarian) ||\n this.selectedUserRole.includes(Role.VeterinarianUser)\n ) {\n await veterinarianOfficeUserModule.lockoutVeterinarianOfficeUserAction(\n this.selectedUserId\n );\n }\n\n if (!this.errorResponse && !this.errorVetUserResponse) {\n await adminUserModule.getAllAdminUsersAction();\n }\n }\n }\n\n public async unlockUser(event: BvModalEvent) {\n if (event.confirmed) {\n if (this.selectedUserRole.includes(Role.Admin)) {\n await adminUserModule.unlockAdminUserAction(this.selectedUserId);\n } else if (\n this.selectedUserRole.includes(Role.Veterinarian) ||\n this.selectedUserRole.includes(Role.VeterinarianUser)\n ) {\n await veterinarianOfficeUserModule.unlockVeterinarianOfficeUserAction(\n this.selectedUserId\n );\n }\n\n if (!this.errorResponse && !this.errorVetUserResponse) {\n await adminUserModule.getAllAdminUsersAction();\n }\n }\n }\n\n public async resetPassword(event: BvModalEvent) {\n if (event.confirmed) {\n await authenticationModule.setPasswordAction({\n email: this.selectedUserEmail\n });\n\n if (this.resetPasswordSuccess) {\n this.$toasted.success(\n 'An email has been sent with a new autogenerated password.'\n );\n }\n }\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!./admin-user-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!./admin-user-list.component.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./admin-user-list.component.vue?vue&type=template&id=fe4c4e2a&\"\nimport script from \"./admin-user-list.component.vue?vue&type=script&lang=ts&\"\nexport * from \"./admin-user-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","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue } from 'vue-property-decorator';\nimport AdminUserFormComponent from '@/components/admin/admin-user-form.component.vue';\nimport AdminUserListComponent from '@/components/admin/admin-user-list.component.vue';\n\n@Component({\n components: {\n AdminUserFormComponent,\n AdminUserListComponent\n }\n})\nexport default class AdminUserComponent extends Vue {}\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!./admin-user.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!./admin-user.component.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./admin-user.component.vue?vue&type=template&id=f93bcb0c&\"\nimport script from \"./admin-user.component.vue?vue&type=script&lang=ts&\"\nexport * from \"./admin-user.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","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('b-modal',{attrs:{\"id\":_vm.modalId,\"title\":\"Confirmation\",\"hide-footer\":\"\"},on:{\"hide\":_vm.onHideEvent}},[(_vm.title)?_c('h6',{staticClass:\"text-primary\"},[_vm._v(_vm._s(_vm.title))]):_vm._e(),_c('p',{staticClass:\"mb-4\"},[_vm._v(_vm._s(_vm.message))]),_c('div',{staticClass:\"d-flex flex-row-reverse align-items-center\"},[_c('b-button-group',[_c('b-button',{attrs:{\"variant\":\"danger\"},on:{\"click\":_vm.onCancelClick}},[_vm._v(\" Cancel \")]),_c('b-button',{on:{\"click\":_vm.onProceedClick}},[_vm._v(\" Proceed \")])],1)],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\nimport { Component, Vue, Prop } from 'vue-property-decorator';\n\n@Component\nexport default class ConfirmationComponent extends Vue {\n @Prop({\n required: true\n })\n public modalId: string;\n\n @Prop({\n required: true\n })\n public message: string;\n\n @Prop({\n required: true\n })\n public action: string;\n\n @Prop()\n public title: string;\n\n public onProceedClick() {\n this.$emit(this.action, { confirmed: true });\n this.$bvModal.hide(this.modalId);\n }\n\n public onCancelClick() {\n this.$emit(this.action, { confirmed: false });\n this.$bvModal.hide(this.modalId);\n }\n\n public onHideEvent() {\n this.$emit('hide-action');\n this.$bvModal.hide(this.modalId);\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!./confirmation.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!./confirmation.component.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./confirmation.component.vue?vue&type=template&id=54820b78&\"\nimport script from \"./confirmation.component.vue?vue&type=script&lang=ts&\"\nexport * from \"./confirmation.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":""}