{"version":3,"sources":["webpack:///./src/Admin/NotificationManagement/NotificationManagementAdmin.vue?cd90","webpack:///./src/Admin/NotificationManagement/NotificationManagementAdmin.vue?8f56","webpack:///./src/Admin/NotificationManagement/NotificationManagementAdmin.vue?0e06","webpack:///./src/Admin/NotificationManagement/NotificationManagementAdmin.vue?050d","webpack:///./src/Admin/NotificationManagement/NotificationManagementAdmin.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_v","_s","$t","directives","name","rawName","value","expression","attrs","domProps","Array","isArray","filterExpired","_i","on","$event","$$a","$$el","target","$$c","checked","$$v","$$i","concat","slice","refreshNotifications","notificationsAdmin","length","add","_l","addNotification","notification","recID","editNotification","isaddNotification","loadingNotifications","class","getNotificationStatusClass","editing","_e","vehicleState","vehicleLicense","_f","startDate","endDate","noteCodeDescription","noteText","location","model","callback","$set","v","placement","visibility","lookup","description","edit","deleteNotification","recrID","cancelEdit","save","staticRenderFns","NotificationsAdmin","extend","beforeMount","$typedStore","modules","userModule","actions","getAllowedLocations","locations","allowedLocations","selectedLocation","find","item","urlSegment","toUpperCase","selectedLocationId","locationId","props","data","noteTypeLkup","selectedCodeDescription","validationErrors","selectedLocationDBName","selectedLocations","methods","set","url","VatsAPI","post","response","deleteConfirmMessage","$i18n","t","toString","deleteConfirmTitle","deleteButton","cancelButton","$bvModal","msgBoxConfirm","title","size","buttonSize","okVariant","cancelVariant","okTitle","cancelTitle","centered","confirmDelete","$bvToast","toast","autoHideDelay","get","Date","locationChanged","statusClass","todayDate","mounted","payload","lookupType","NoteType","lookupsModule","getLocationLookups","code","lookups","push","component"],"mappings":"kHAAA,yBAA0kB,EAAG,G,yCCA7kB,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,aAAa,CAACF,EAAG,MAAM,CAACA,EAAG,KAAK,CAACJ,EAAIO,GAAGP,EAAIQ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AAO3G,KAAKmG,MAAMC,EAAE,gBAAgBC,WACpCiB,cAAe,MAEb,E,yBAGRG,gBAAe,W,oHACjB,SAAMzH,KAAK+B,wB,cAAX,S,YAEJY,2BAAA,SAA2BN,GACvB,IAAIqF,EAAsB,GACpBC,EAAY,IAAIH,KAItB,OAHInF,EAAaa,QAAUyE,IACvBD,EAAc,WAEXA,IAGTE,QAAO,W,8HAGO,OAFhB5H,KAAK+B,uBACC8F,EAAU,CAAEC,WAAY,OAAmBC,SAAU1E,SAAUrD,KAAKqD,UAC1D,GAAMrD,KAAKuE,YAAYC,QAAQwD,cAActD,QAAQuD,mBAAmBJ,I,OACxF,IAAWK,KADLC,EAAU,SACGA,EACXA,EAAQD,IACRlI,KAAKuF,aAAa6C,KAAKD,EAAQD,I,oBAMhC,IC3SyZ,I,wBCQpaG,EAAY,eACd,EACAvI,EACAqE,GACA,EACA,KACA,WACA,MAIa,aAAAkE,E","file":"js/chunk-2ace3437.54d87755.js","sourcesContent":["import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/index.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!./NotificationManagementAdmin.vue?vue&type=style&index=0&id=0c403585&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/index.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!./NotificationManagementAdmin.vue?vue&type=style&index=0&id=0c403585&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container\"},[_c('div',[_c('h3',[_vm._v(_vm._s(_vm.$t('admin.notificationManagement.heading')))]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.filterExpired),expression:\"filterExpired\"}],staticClass:\"form-check-input\",attrs:{\"id\":\"me-only\",\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.filterExpired)?_vm._i(_vm.filterExpired,null)>-1:(_vm.filterExpired)},on:{\"change\":[function($event){var $$a=_vm.filterExpired,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.filterExpired=$$a.concat([$$v]))}else{$$i>-1&&(_vm.filterExpired=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.filterExpired=$$c}},function($event){return _vm.refreshNotifications($event)}]}}),_c('label',{staticClass:\"form-check-label\",attrs:{\"for\":\"me-only\"}},[_vm._v(_vm._s(_vm.$t('admin.notificationManagement.filterExpired'))+\"?\")]),_c('br')]),(_vm.notificationsAdmin && _vm.notificationsAdmin.length)?_c('div',{staticClass:\"grid-table\"},[_c('div',{staticClass:\"grid-table-row grid-header-row\"},[_c('span',{staticClass:\"grid-table-cell grid-tooltip\"},[_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.$t('admin.notificationManagement.state'))+\"\\n \")])]),_c('span',{staticClass:\"grid-table-cell grid-tooltip\"},[_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.$t('admin.notificationManagement.plate'))+\"\\n \")])]),_c('span',{staticClass:\"grid-table-cell grid-tooltip\"},[_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.$t('admin.notificationManagement.startDate'))+\"\\n \")])]),_c('span',{staticClass:\"grid-table-cell grid-table-tooltip\"},[_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.$t('admin.notificationManagement.endDate'))+\"\\n \")])]),_c('span',{staticClass:\"grid-table-cell grid-tooltip\"},[_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.$t('admin.notificationManagement.code'))+\"\\n \")])]),_c('span',{staticClass:\"grid-table-cell grid-tooltip\"},[_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.$t('admin.notificationManagement.noticeText'))+\"\\n \")])]),_c('span',{staticClass:\"grid-table-cell\"},[_c('b-button',{attrs:{\"variant\":\"primary\"},on:{\"click\":function($event){return _vm.add()}}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('common.addNew'))+\" \\n \"),_c('font-awesome-icon',{attrs:{\"icon\":['fas', 'plus']}})],1)],1)]),_vm._l(([_vm.addNotification ].concat( _vm.notificationsAdmin)),function(notification){return [(!!notification.recID || _vm.editNotification.isaddNotification)?_c('div',{directives:[{name:\"wait-indicator\",rawName:\"v-wait-indicator\",value:(_vm.loadingNotifications[notification.recID]),expression:\"loadingNotifications[notification.recID]\"}],staticClass:\"grid-table-row status-highlighting\",class:_vm.getNotificationStatusClass(notification)},[(!_vm.editing(notification) && !notification.isaddNotification)?[_c('span',{staticClass:\"grid-table-cell\",attrs:{\"data-title\":_vm.$t('admin.notificationManagement.state')}},[_vm._v(\"\\n \"+_vm._s(notification.vehicleState)+\"\\n \")]),_c('span',{staticClass:\"grid-table-cell\",attrs:{\"data-title\":_vm.$t('admin.notificationManagement.plate')}},[_vm._v(\"\\n \"+_vm._s(notification.vehicleLicense)+\"\\n \")]),_c('span',{staticClass:\"grid-table-cell\",attrs:{\"data-title\":_vm.$t('admin.notificationManagement.startDate')}},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"formatDate\")(notification.startDate))+\"\\n \")]),_c('span',{staticClass:\"grid-table-cell\",attrs:{\"data-title\":_vm.$t('admin.notificationManagement.endDate')}},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"formatDate\")(notification.endDate))+\"\\n \")]),_c('span',{staticClass:\"grid-table-cell\",attrs:{\"data-title\":_vm.$t('admin.notificationManagement.code')}},[_vm._v(\"\\n \"+_vm._s(notification.noteCodeDescription)+\"\\n \")]),_c('span',{staticClass:\"grid-table-cell\",attrs:{\"data-title\":_vm.$t('admin.notificationManagement.description')}},[_vm._v(\"\\n \"+_vm._s(notification.noteText)+\"\\n \")])]:_vm._e(),(_vm.editing(notification))?[_c('span',{staticClass:\"grid-table-cell\"},[_c('LocationLookupDropdown',{attrs:{\"type\":\"State\",\"location\":_vm.location},model:{value:(_vm.editNotification.vehicleState),callback:function ($$v) {_vm.$set(_vm.editNotification, \"vehicleState\", $$v)},expression:\"editNotification.vehicleState\"}})],1),_c('span',{staticClass:\"grid-table-cell\"},[_c('b-form-input',{directives:[{name:\"validation-error\",rawName:\"v-validation-error\"}],attrs:{\"value\":_vm.editNotification.vehicleLicense,\"placeholder\":\"Plate\"},on:{\"change\":function (v) { return _vm.editNotification.vehicleLicense = v; }}})],1),_c('span',{staticClass:\"grid-table-cell\"},[_c('v-date-picker',{directives:[{name:\"validation-error\",rawName:\"v-validation-error\"}],staticClass:\"col-sm-14 date-picker\",attrs:{\"input-props\":{ class: 'form-control' },\"popover\":{ placement: 'bottom-end', visibility: 'visible' },\"id\":\"StartDate\"},model:{value:(_vm.editNotification.startDate),callback:function ($$v) {_vm.$set(_vm.editNotification, \"startDate\", $$v)},expression:\"editNotification.startDate\"}})],1),_c('span',{staticClass:\"grid-table-cell\"},[_c('v-date-picker',{directives:[{name:\"validation-error\",rawName:\"v-validation-error\"}],staticClass:\"col-sm-14 date-picker\",attrs:{\"input-props\":{ class: 'form-control' },\"popover\":{ placement: 'bottom-end', visibility: 'visible' },\"id\":\"EndDate\"},model:{value:(_vm.editNotification.endDate),callback:function ($$v) {_vm.$set(_vm.editNotification, \"endDate\", $$v)},expression:\"editNotification.endDate\"}})],1),_c('span',{staticClass:\"grid-table-cell\"},[_c('b-form-select',{staticClass:\"form-control\",model:{value:(_vm.editNotification.noteCodeDescription),callback:function ($$v) {_vm.$set(_vm.editNotification, \"noteCodeDescription\", $$v)},expression:\"editNotification.noteCodeDescription\"}},_vm._l((_vm.noteTypeLkup),function(lookup){return _c('option',{domProps:{\"value\":lookup.description}},[_vm._v(\"\\n \"+_vm._s(lookup.description)+\"\\n \")])}),0)],1),_c('span',{staticClass:\"grid-table-cell\"},[_c('b-form-input',{directives:[{name:\"validation-error\",rawName:\"v-validation-error\"}],attrs:{\"value\":_vm.editNotification.noteText,\"placeholder\":\"Notice Text\"},on:{\"change\":function (v) { return _vm.editNotification.noteText = v; }}})],1)]:_vm._e(),_c('span',{staticClass:\"grid-table-cell\"},[(!_vm.editing(notification))?_c('b-button-group',[_c('b-button',{attrs:{\"disabled\":_vm.loadingNotifications[notification.recID],\"variant\":\"info\"},on:{\"click\":function($event){return _vm.edit(notification)}}},[(!_vm.loadingNotifications[notification.recID])?_c('font-awesome-icon',{attrs:{\"icon\":['fas', 'edit']}}):_vm._e(),(_vm.loadingNotifications[notification.recID])?_c('b-spinner',{attrs:{\"small\":\"\"}}):_vm._e()],1),_c('b-button',{attrs:{\"disabled\":_vm.loadingNotifications[notification.recID],\"variant\":\"danger\"},on:{\"click\":function($event){return _vm.deleteNotification(notification)}}},[(!_vm.loadingNotifications[notification.recrID])?_c('font-awesome-icon',{attrs:{\"icon\":['fas', 'trash']}}):_vm._e(),(_vm.loadingNotifications[notification.recID])?_c('b-spinner',{attrs:{\"small\":\"\"}}):_vm._e()],1)],1):_vm._e(),(_vm.editing(notification))?_c('b-button-group',[_c('b-button',{attrs:{\"disabled\":_vm.loadingNotifications[_vm.editNotification.recID],\"variant\":\"warning\"},on:{\"click\":function($event){return _vm.cancelEdit()}}},[(!_vm.loadingNotifications[_vm.editNotification.recID])?_c('font-awesome-icon',{attrs:{\"icon\":['fas', 'times']}}):_vm._e(),(_vm.loadingNotifications[_vm.editNotification.recID])?_c('b-spinner',{attrs:{\"small\":\"\"}}):_vm._e()],1),_c('b-button',{attrs:{\"disabled\":_vm.loadingNotifications[_vm.editNotification.recID],\"variant\":\"success\"},on:{\"click\":function($event){return _vm.save(_vm.editNotification)}}},[(!_vm.loadingNotifications[_vm.editNotification.recID])?_c('font-awesome-icon',{attrs:{\"icon\":['fas', 'save']}}):_vm._e(),(_vm.loadingNotifications[_vm.editNotification.recID])?_c('b-spinner',{attrs:{\"small\":\"\"}}):_vm._e()],1)],1):_vm._e()],1)],2):_vm._e()]})],2):_vm._e()])}\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\nimport Vue from 'vue';\nimport VatsAPI from '@/Shared/VatsAPI';\nimport { Notification } from './Notification';\nimport { Location } from '@/Stores/UserStore';\nimport { getValidationErrors } from '@/Shared/ValidationErrorDirective';\nimport { LocationLookupType, ILookupType } from '@/Stores/LookupStore';\n\nconst NotificationsAdmin = Vue.extend({\n async beforeMount() {\n const locations: Location[] = await this.$typedStore.modules.userModule.actions.getAllowedLocations();\n this.allowedLocations = locations;\n this.selectedLocation = this.allowedLocations\n .find(item => item.urlSegment.toUpperCase() === this.location.toUpperCase())\n || null;\n if (this.selectedLocation) {\n this.selectedLocationId = this.selectedLocation.locationId;\n }\n },\n props: ['location'],\n data() {\n return {\n filterExpired: false,\n editNotification: { isaddNotification: false } as any as Notification,\n addNotification: { isaddNotification: true } as any as Notification,\n notificationsAdmin: [] as Notification[],\n noteTypeLkup: [] as ILookupType[],\n selectedCodeDescription: null,\n loadingNotifications: {} as { [recID: string]: boolean },\n validationErrors: {} as { [key: string]: string[] },\n selectedLocationId: null as number | null,\n selectedLocation: null as Location | null,\n selectedLocationDBName: '',\n selectedLocations: [],\n allowedLocations: [] as Location[]\n };\n },\n methods: {\n editing(notification: Notification) {\n if ((notification as any).isaddNotification) {\n return true;\n }\n else if (this.editNotification && this.editNotification.recID\n && !(this.editNotification as any).isaddNotification) {\n return this.editNotification.recID === notification.recID;\n }\n else {\n return false;\n }\n },\n edit(notification: Notification) {\n this.editNotification = { ...notification };\n },\n add() {\n this.editNotification = { ...this.addNotification };\n },\n async save(notification: Notification) {\n Vue.set(this.loadingNotifications, notification.recID, true);\n try {\n let url = `${this.location}/NotificationsAdmin/AddNotification`;\n if ((notification as any).isaddNotification) {\n await VatsAPI.post(url, notification);\n }\n else {\n url = `/${this.location}/NotificationsAdmin/UpdateNotification`;\n await VatsAPI.post(url, notification);\n }\n\n await this.refreshNotifications();\n }\n catch (e) {\n this.validationErrors = getValidationErrors(e.response);\n throw e;\n }\n finally {\n Vue.set(this.loadingNotifications, notification.recID, false);\n }\n\n this.cancelEdit();\n },\n async deleteNotification(notification: Notification) {\n const deleteConfirmMessage = this.$i18n.t('admin.notificationManagement.deleteConfirmMessage').toString() + `, ${notification.recID}?`;\n const deleteConfirmTitle = this.$i18n.t('admin.notificationManagement.deleteConfirmTitle').toString();\n const deleteButton = this.$i18n.t('common.delete').toString();\n const cancelButton = this.$i18n.t('common.cancel').toString();\n\n const confirmDelete = await this.$bvModal.msgBoxConfirm(\n deleteConfirmMessage,\n {\n title: deleteConfirmTitle,\n size: 'sm',\n buttonSize: 'sm',\n okVariant: 'danger',\n cancelVariant: 'info',\n okTitle: deleteButton,\n cancelTitle: cancelButton,\n centered: true\n }\n );\n if (confirmDelete) {\n try {\n Vue.set(this.loadingNotifications, notification.recID, true);\n await VatsAPI.post(`${this.location}/NotificationsAdmin/DeleteNotification`, notification);\n await this.refreshNotifications();\n Vue.set(this.loadingNotifications, notification.recID, false);\n }\n catch (e) {\n this.$bvToast.toast(this.$i18n.t('admin.notificationManagement.deleteUserError').toString(), {\n title: this.$i18n.t('common.error').toString(),\n autoHideDelay: 5000\n });\n throw e;\n }\n }\n },\n cancelEdit() {\n this.editNotification = { isaddNotification: false } as any as Notification;\n this.addNotification = { isaddNotification: true } as any as Notification;\n },\n async refreshNotifications() {\n try {\n if (this.filterExpired) {\n this.notificationsAdmin = (await VatsAPI.get(`/${this.location}/NotificationsAdmin/GetFilteredNotifications`)).data;\n }\n else {\n this.notificationsAdmin = (await VatsAPI.get(`/${this.location}/NotificationsAdmin/GetNotifications`)).data;\n }\n for (const notification of this.notificationsAdmin) {\n notification.startDate = new Date(notification.startDate);\n notification.endDate = new Date(notification.endDate);\n }\n }\n catch (e) {\n this.$bvToast.toast(this.$i18n.t('admin.notificationManagement.refreshUserError').toString(), {\n title: this.$i18n.t('common.error').toString(),\n autoHideDelay: 5000\n });\n throw e;\n }\n },\n async locationChanged() {\n await this.refreshNotifications();\n },\n getNotificationStatusClass(notification: Notification): string {\n let statusClass: string = '';\n const todayDate = new Date();\n if (notification.endDate < todayDate) {\n statusClass = 'expired';\n }\n return statusClass;\n },\n },\n async mounted() {\n this.refreshNotifications();\n const payload = { lookupType: LocationLookupType.NoteType, location: this.location };\n const lookups = await this.$typedStore.modules.lookupsModule.actions.getLocationLookups(payload);\n for (const code in lookups) {\n if (lookups[code]) {\n this.noteTypeLkup.push(lookups[code]);\n }\n }\n }\n});\n\nexport default NotificationsAdmin;\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NotificationManagementAdmin.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./NotificationManagementAdmin.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./NotificationManagementAdmin.vue?vue&type=template&id=0c403585&scoped=true&\"\nimport script from \"./NotificationManagementAdmin.vue?vue&type=script&lang=ts&\"\nexport * from \"./NotificationManagementAdmin.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./NotificationManagementAdmin.vue?vue&type=style&index=0&id=0c403585&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 \"0c403585\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}