\r\n
\r\n \r\n \r\n Home\r\n \r\n Facilities \r\n Keys \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 Apply \r\n \r\n \r\n
\r\n
Keys
\r\n
\r\n
\r\n \r\n Actions \r\n \r\n \r\n
\r\n
\r\n\r\n \r\n \r\n \r\n View\r\n \r\n Delete\r\n \r\n
\r\n \r\n\r\n \r\n {{ row.item.createdDate | moment('MM/DD/YYYY') }} \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n\r\n
\r\n Confirm \r\n Are you sure you want to delete key {{ deletingRow.keyNumber }}? Doing so will delete all data associated with the key.
\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!./TheFacilitiesKeysList.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!./TheFacilitiesKeysList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TheFacilitiesKeysList.vue?vue&type=template&id=4abf1984&\"\nimport script from \"./TheFacilitiesKeysList.vue?vue&type=script&lang=js&\"\nexport * from \"./TheFacilitiesKeysList.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('b-breadcrumb',[_c('b-breadcrumb-item',{attrs:{\"to\":\"/\"}},[_c('i',{staticClass:\"fa fa-home\"}),_vm._v(\" Home \")]),_c('b-breadcrumb-item',{attrs:{\"to\":\"/Facilities/Offices\"}},[_vm._v(\"Facilities\")]),_c('b-breadcrumb-item',{attrs:{\"to\":\"/Facilities/Keys\"}},[_vm._v(\"Keys\")]),_c('b-breadcrumb-item',{attrs:{\"active\":\"\"}},[_vm._v(_vm._s(_vm.keyNumber))])],1),_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"bg-dark card-header text-white\"},[_vm._v(\"Key Number \"+_vm._s(_vm.keyNumber))]),_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"pb-3\"},[_c('b',[_vm._v(\"Key Type:\")]),_vm._v(\" \"+_vm._s(_vm.facilitiesKeyTypeName)+\" \")]),_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-header\"},[_c('ul',{staticClass:\"card-header-tabs nav nav-tabs\"},[_c('li',{staticClass:\"nav-item\"},[_c('a',{staticClass:\"active nav-link\",attrs:{\"data-toggle\":\"tab\",\"href\":\"#\"},on:{\"click\":function($event){_vm.currentTabComponent='TheFacilitiesKeyLockList'}}},[_vm._v(\"Locks\")])]),_c('li',{staticClass:\"nav-item\"},[_c('a',{staticClass:\"nav-link\",attrs:{\"data-toggle\":\"tab\",\"href\":\"#\"},on:{\"click\":function($event){_vm.currentTabComponent='TheFacilitiesKeyCopyList'}}},[_vm._v(\"Copies\")])])])]),_c('div',{attrs:{\"id\":\"tab-container\"}},[_c('keep-alive',[_c(_vm.currentTabComponent,{tag:\"component\",attrs:{\"facilities-key-id\":_vm.id,\"facilities-key-type-name\":_vm.facilitiesKeyTypeName,\"facilities-key-number\":_vm.keyNumber,\"facilities-key-type-id\":_vm.facilitiesKeyTypeId}})],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('AppLoadingContainer',{attrs:{\"predicate\":_vm.isLoading}},[_c('div',{staticClass:\"card-body\"},[_c('AppFormCardCollapsable',{staticClass:\"mb-3\",attrs:{\"display-footer\":true},on:{\"submit\":function($event){$event.preventDefault();return _vm.onFilterSubmit()}},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_vm._v(\"Filter\")]},proxy:true},{key:\"body\",fn:function(){return [_c('div',{staticClass:\"form-row justify-content-center\"},[_c('b-form-group',{staticClass:\"col-auto\",attrs:{\"label\":\"Lock Type\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar lockTypeValue = ref.lockTypeValue;\nreturn [_c('b-form-radio-group',{attrs:{\"options\":_vm.lockTypes,\"aria-describedby\":lockTypeValue},model:{value:(_vm.filterOptions.lockType),callback:function ($$v) {_vm.$set(_vm.filterOptions, \"lockType\", $$v)},expression:\"filterOptions.lockType\"}})]}}])}),_c('div',{staticClass:\"col-auto form-group\"},[_c('label',{attrs:{\"for\":\"buildingId\"}},[_vm._v(\"Building\")]),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.filterOptions.buildingId),expression:\"filterOptions.buildingId\"}],staticClass:\"form-control\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.filterOptions, \"buildingId\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option',{domProps:{\"value\":null}},[_vm._v(\"All\")]),_vm._l((_vm.buildings),function(possibleBuilding){return _c('option',{key:possibleBuilding.id,domProps:{\"value\":possibleBuilding.id}},[_vm._v(_vm._s(possibleBuilding.name))])})],2)]),_c('div',{staticClass:\"col-md-4 form-group\"},[_c('label',[_vm._v(\"Lock Notes/Name/Location\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.filterOptions.lockIdentity),expression:\"filterOptions.lockIdentity\"}],staticClass:\"form-control\",attrs:{\"placeholder\":\"Notes/Name/Location\"},domProps:{\"value\":(_vm.filterOptions.lockIdentity)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.filterOptions, \"lockIdentity\", $event.target.value)}}})])],1),_c('div',{staticClass:\"form-row justify-content-center\"},[_c('b-form-group',{staticClass:\"col-auto\",attrs:{\"label\":\"Search By\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar suiteOrRoomValue = ref.suiteOrRoomValue;\nreturn [_c('b-form-radio-group',{attrs:{\"options\":_vm.suiteOrRoom,\"aria-describedby\":suiteOrRoomValue},model:{value:(_vm.searchForSuiteOrRoom),callback:function ($$v) {_vm.searchForSuiteOrRoom=$$v},expression:\"searchForSuiteOrRoom\"}})]}}])}),(_vm.searchForSuiteOrRoom === 2)?_c('div',{staticClass:\"col-auto form-group\"},[_c('label',[_vm._v(\"Suite\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.filterOptions.suite),expression:\"filterOptions.suite\"}],staticClass:\"form-control\",attrs:{\"placeholder\":\"Suite\"},domProps:{\"value\":(_vm.filterOptions.suite)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.filterOptions, \"suite\", $event.target.value)}}})]):_vm._e(),(_vm.searchForSuiteOrRoom === 1)?_c('div',{staticClass:\"col-auto form-group\"},[_c('label',[_vm._v(\"Room\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.filterOptions.room),expression:\"filterOptions.room\"}],staticClass:\"form-control\",attrs:{\"placeholder\":\"Room\"},domProps:{\"value\":(_vm.filterOptions.room)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.filterOptions, \"room\", $event.target.value)}}})]):_vm._e()],1)]},proxy:true},{key:\"footer\",fn:function(){return [_c('button',{staticClass:\"btn btn-primary\",attrs:{\"type\":\"submit\"}},[_vm._v(\"Apply\")])]},proxy:true}])}),_c('div',{staticClass:\"mb-2 text-right\"},[_c('router-link',{staticClass:\"btn btn-sm btn-primary d-print-none\",attrs:{\"to\":{name:'AddKeyLocks',params:{facilitiesKeyId:_vm.facilitiesKeyId,facilitiesKeyTypeName:_vm.facilitiesKeyTypeName,facilitiesKeyNumber:_vm.facilitiesKeyNumber,facilitiesKeyTypeId:_vm.facilitiesKeyTypeId}},\"data-toggle\":\"tooltip\",\"title\":\"Add key locks\"}},[_c('i',{staticClass:\"fa fa-plus\"}),_vm._v(\"Add Locks \")])],1),_c('BTable',{attrs:{\"busy\":_vm.isLoading,\"fields\":_vm.tableFields,\"items\":_vm.facilitiesKeyLocks,\"responsive\":true,\"primary-key\":\"id\",\"show-empty\":\"\",\"striped\":\"\",\"table-class\":\"table-align-middle\"},scopedSlots:_vm._u([{key:\"cell(id)\",fn:function(row){return [_c('div',{staticClass:\"btn-group col-auto\"},[_c('router-link',{staticClass:\"btn btn-sm btn-warning d-print-none\",attrs:{\"to\":{ name:'EditKeyLock', params:{ id: row.item.id, facilitiesKeyId: _vm.facilitiesKeyId, facilitiesKeyNumber: _vm.facilitiesKeyNumber, facilitiesKeyTypeName: _vm.facilitiesKeyTypeName } },\"data-toggle\":\"tooltip\",\"title\":\"Edit key copy\"}},[_c('i',{staticClass:\"fa fa-pencil-alt\"}),_vm._v(\"Edit \")]),_c('button',{staticClass:\"btn btn-danger btn-sm d-print-none\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.onDeleteClick(row.item)}}},[_c('i',{staticClass:\"fa fa-trash\"}),_vm._v(\"Delete \")])],1)]}},{key:\"cell(buildingId)\",fn:function(row){return [_c('span',[_vm._v(_vm._s(row.item.buildingName)+\" \"+_vm._s(row.item.spaceType)+\" \"+_vm._s(row.item.spaceIdentity))])]}},{key:\"cell(createdDate)\",fn:function(row){return [_c('span',[_vm._v(_vm._s(_vm._f(\"moment\")(row.item.createdDate,'MM/DD/YYYY')))])]}},{key:\"cell(lastModifiedDate)\",fn:function(row){return [_c('span',[_vm._v(_vm._s(_vm._f(\"moment\")(row.item.lastModifiedDate,'MM/DD/YYYY')))])]}},{key:\"custom-foot\",fn:function(){return [_c('b-tr',[_c('b-td',{attrs:{\"colspan\":_vm.tableFields.length}},[_c('AppTablePagination',{attrs:{\"page\":_vm.filterOptions.page,\"pageSize\":_vm.filterOptions.pageSize,\"totalCount\":_vm.totalFacilitiesKeyLocks},on:{\"update:page\":[function($event){return _vm.$set(_vm.filterOptions, \"page\", $event)},function($event){return _vm.loadData()}],\"update:pageSize\":[function($event){return _vm.$set(_vm.filterOptions, \"pageSize\", $event)},function($event){return _vm.loadData()}],\"update:page-size\":function($event){return _vm.$set(_vm.filterOptions, \"pageSize\", $event)},\"update:totalCount\":function($event){_vm.totalFacilitiesKeyLocks=$event},\"update:total-count\":function($event){_vm.totalFacilitiesKeyLocks=$event}}})],1)],1)]},proxy:true}])})],1),_c('AppModalConfirm',{attrs:{\"visible\":_vm.deletingRow},on:{\"close\":function($event){_vm.deletingRow=null},\"confirm\":function($event){return _vm.onDeleteConfirmed(_vm.deletingRow)}},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_vm._v(\"Confirm\")]},proxy:true}])},[(_vm.deletingRow)?_c('p',[_vm._v(\"Are you sure you want to delete lock\"+_vm._s(_vm.deletingRow.lockIdentity === null ? '' : ' \\'' + _vm.deletingRow.lockIdentity + '\\'')+\" \"+_vm._s(_vm.deletingRow.buildingName === null ? '' : ' for ' + _vm.deletingRow.buildingName)+_vm._s(_vm.deletingRow.spaceType === null ? '' : ' ' + _vm.deletingRow.spaceType)+_vm._s(_vm.deletingRow.spaceIdentity === null ? '' : ' ' + _vm.deletingRow.spaceIdentity)+\"?\")]):_vm._e()])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","
\r\n \r\n \r\n \r\n
\r\n Filter \r\n \r\n \r\n \r\n \r\n \r\n Apply \r\n \r\n \r\n
\r\n \r\n Add Locks\r\n \r\n
\r\n
\r\n\r\n \r\n \r\n \r\n Edit\r\n \r\n Delete\r\n \r\n
\r\n \r\n\r\n \r\n {{ row.item.buildingName }} {{ row.item.spaceType }} {{ row.item.spaceIdentity }} \r\n \r\n\r\n \r\n {{ row.item.createdDate | moment('MM/DD/YYYY') }} \r\n \r\n\r\n \r\n {{ row.item.lastModifiedDate | moment('MM/DD/YYYY') }} \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n \r\n Confirm \r\n Are you sure you want to delete lock{{ deletingRow.lockIdentity === null ? '' : ' \\'' + deletingRow.lockIdentity + '\\'' }}\r\n {{ deletingRow.buildingName === null ? '' : ' for ' + deletingRow.buildingName }}{{ deletingRow.spaceType === null ? '' : ' ' + deletingRow.spaceType }}{{ deletingRow.spaceIdentity === null ? '' : ' ' + deletingRow.spaceIdentity }}?
\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!./TheFacilitiesKeyLockList.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!./TheFacilitiesKeyLockList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TheFacilitiesKeyLockList.vue?vue&type=template&id=d9568458&\"\nimport script from \"./TheFacilitiesKeyLockList.vue?vue&type=script&lang=js&\"\nexport * from \"./TheFacilitiesKeyLockList.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('AppLoadingContainer',{attrs:{\"predicate\":_vm.isLoading}},[_c('div',{staticClass:\"card-body\"},[_c('AppFormCardCollapsable',{staticClass:\"mb-3\",attrs:{\"display-footer\":true},on:{\"submit\":function($event){$event.preventDefault();return _vm.onFilterSubmit()}},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_vm._v(\"Filter\")]},proxy:true},{key:\"body\",fn:function(){return [_c('div',{staticClass:\"form-row justify-content-center\"},[_c('div',{staticClass:\"col-auto form-group\"},[_c('label',{attrs:{\"for\":\"facilitiesKeyCopyStatusId\"}},[_vm._v(\"Status\")]),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.filterOptions.facilitiesKeyCopyStatusId),expression:\"filterOptions.facilitiesKeyCopyStatusId\"}],staticClass:\"form-control\",on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.filterOptions, \"facilitiesKeyCopyStatusId\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])},function($event){return _vm.clearFilter()}]}},[_c('option',{domProps:{\"value\":null}},[_vm._v(\"All\")]),_vm._l((_vm.facilitiesKeyCopyStatusList),function(status){return _c('option',{key:status.id,domProps:{\"value\":status.id}},[_vm._v(_vm._s(status.name))])})],2)]),(_vm.filterOptions.facilitiesKeyCopyStatusId === null || _vm.filterOptions.facilitiesKeyCopyStatusId.toUpperCase() === _vm.facilitiesKeyCopyStatuses.Issued)?_c('div',{staticClass:\"col-md-5 form-group\"},[_c('label',[_vm._v(\"Issued to Name\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.filterOptions.issuedToName),expression:\"filterOptions.issuedToName\"}],staticClass:\"form-control\",attrs:{\"placeholder\":\"Name\"},domProps:{\"value\":(_vm.filterOptions.issuedToName)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.filterOptions, \"issuedToName\", $event.target.value)}}})]):_vm._e(),(_vm.filterOptions.facilitiesKeyCopyStatusId === null || _vm.filterOptions.facilitiesKeyCopyStatusId.toUpperCase() === _vm.facilitiesKeyCopyStatuses.Stored)?_c('div',{staticClass:\"col-md-5 form-group\"},[_c('label',[_vm._v(\"Hook Number\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.filterOptions.hookNumber),expression:\"filterOptions.hookNumber\"}],staticClass:\"form-control\",attrs:{\"placeholder\":\"Hook Number\"},domProps:{\"value\":(_vm.filterOptions.hookNumber)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.filterOptions, \"hookNumber\", $event.target.value)}}})]):_vm._e()])]},proxy:true},{key:\"footer\",fn:function(){return [_c('button',{staticClass:\"btn btn-primary\",attrs:{\"type\":\"submit\"}},[_vm._v(\"Apply\")])]},proxy:true}])}),_c('div',{staticClass:\"mb-2 text-right\"},[_c('router-link',{staticClass:\"btn btn-sm btn-primary d-print-none\",attrs:{\"to\":{name:'AddKeyCopies',params:{facilitiesKeyId:_vm.facilitiesKeyId,facilitiesKeyTypeName:_vm.facilitiesKeyTypeName,facilitiesKeyNumber:_vm.facilitiesKeyNumber}},\"data-toggle\":\"tooltip\",\"title\":\"Add key copy\"}},[_c('i',{staticClass:\"fa fa-plus\"}),_vm._v(\"Add Copies \")])],1),_c('BTable',{attrs:{\"busy\":_vm.isLoading,\"fields\":_vm.tableFields,\"items\":_vm.facilitiesKeyCopies,\"responsive\":true,\"primary-key\":\"id\",\"show-empty\":\"\",\"striped\":\"\",\"table-class\":\"table-align-middle\"},scopedSlots:_vm._u([{key:\"cell(id)\",fn:function(row){return [_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-4 col-lg-3\"},[_c('a',{staticClass:\"ml-3\",on:{\"click\":function($event){return _vm.toggleHistories(row)}}},[(!row.item._showDetails)?_c('i',{staticClass:\"fa fa-caret-down fa-lg\"}):_vm._e(),(row.item._showDetails)?_c('i',{staticClass:\"fa fa-caret-up fa-lg\"}):_vm._e()])]),_c('div',{staticClass:\"btn-group col-auto\"},[_c('router-link',{staticClass:\"btn btn-sm btn-warning d-print-none\",attrs:{\"to\":{ name:'EditKeyCopy', params:{ id: row.item.id, facilitiesKeyId: _vm.facilitiesKeyId, facilitiesKeyNumber: _vm.facilitiesKeyNumber, facilitiesKeyTypeName: _vm.facilitiesKeyTypeName, facilitiesKeyCopyNumber: row.item.copyNumber } },\"data-toggle\":\"tooltip\",\"title\":\"Edit key copy\"}},[_c('i',{staticClass:\"fa fa-pencil-alt\"}),_vm._v(\"Edit \")]),_c('button',{staticClass:\"btn btn-danger btn-sm d-print-none\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.onDeleteClick(row.item)}}},[_c('i',{staticClass:\"fa fa-trash\"}),_vm._v(\"Delete \")])],1)])]}},{key:\"row-details\",fn:function(row){return [_c('BTable',{attrs:{\"busy\":row.item.isLoadingHistory,\"fields\":_vm.innerTableFields,\"items\":row.item.facilitiesKeyCopyHistories,\"responsive\":true,\"primary-key\":\"id\",\"show-empty\":\"\",\"table-class\":\"table-align-middle\"},scopedSlots:_vm._u([{key:\"cell(actionDate)\",fn:function(innerRow){return [_c('span',[_vm._v(_vm._s(_vm._f(\"moment\")(innerRow.item.actionDate,'MM/DD/YYYY')))])]}},{key:\"custom-foot\",fn:function(){return [_c('b-tr',[_c('b-td',{attrs:{\"colspan\":_vm.innerTableFields.length}},[_c('AppTablePagination',{attrs:{\"page\":row.item.historyFilterOptions.page,\"pageSize\":row.item.historyFilterOptions.pageSize,\"totalCount\":row.item.totalFacilitiesKeyCopyHistories},on:{\"update:page\":[function($event){return _vm.$set(row.item.historyFilterOptions, \"page\", $event)},function($event){return _vm.loadHistoryData(row)}],\"update:pageSize\":[function($event){return _vm.$set(row.item.historyFilterOptions, \"pageSize\", $event)},function($event){return _vm.loadHistoryData(row)}],\"update:page-size\":function($event){return _vm.$set(row.item.historyFilterOptions, \"pageSize\", $event)},\"update:totalCount\":function($event){return _vm.$set(row.item, \"totalFacilitiesKeyCopyHistories\", $event)},\"update:total-count\":function($event){return _vm.$set(row.item, \"totalFacilitiesKeyCopyHistories\", $event)}}})],1)],1)]},proxy:true}],null,true)})]}},{key:\"custom-foot\",fn:function(){return [_c('b-tr',[_c('b-td',{attrs:{\"colspan\":_vm.tableFields.length}},[_c('AppTablePagination',{attrs:{\"page\":_vm.filterOptions.page,\"pageSize\":_vm.filterOptions.pageSize,\"totalCount\":_vm.totalFacilitiesKeyCopies},on:{\"update:page\":[function($event){return _vm.$set(_vm.filterOptions, \"page\", $event)},function($event){return _vm.loadData()}],\"update:pageSize\":[function($event){return _vm.$set(_vm.filterOptions, \"pageSize\", $event)},function($event){return _vm.loadData()}],\"update:page-size\":function($event){return _vm.$set(_vm.filterOptions, \"pageSize\", $event)},\"update:totalCount\":function($event){_vm.totalFacilitiesKeyCopies=$event},\"update:total-count\":function($event){_vm.totalFacilitiesKeyCopies=$event}}})],1)],1)]},proxy:true}])})],1),_c('AppModalConfirm',{attrs:{\"visible\":_vm.deletingRow},on:{\"close\":function($event){_vm.deletingRow=null},\"confirm\":function($event){return _vm.onDeleteConfirmed(_vm.deletingRow)}},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_vm._v(\"Confirm\")]},proxy:true}])},[(_vm.deletingRow)?_c('p',[_vm._v(\"Are you sure you want to delete key copy \"+_vm._s(_vm.deletingRow.copyNumber)+\"?\")]):_vm._e()])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","
\r\n \r\n \r\n \r\n
\r\n Filter \r\n \r\n \r\n \r\n \r\n Apply \r\n \r\n \r\n
\r\n \r\n Add Copies\r\n \r\n
\r\n
\r\n\r\n \r\n \r\n
\r\n
\r\n \r\n Edit\r\n \r\n Delete\r\n \r\n
\r\n
\r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n {{ innerRow.item.actionDate | moment('MM/DD/YYYY') }} \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n \r\n Confirm \r\n Are you sure you want to delete key copy {{ deletingRow.copyNumber }}?
\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!./TheFacilitiesKeyCopyList.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!./TheFacilitiesKeyCopyList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TheFacilitiesKeyCopyList.vue?vue&type=template&id=24aa6b20&\"\nimport script from \"./TheFacilitiesKeyCopyList.vue?vue&type=script&lang=js&\"\nexport * from \"./TheFacilitiesKeyCopyList.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\r\n
\r\n \r\n \r\n Home\r\n \r\n Facilities \r\n Keys \r\n {{keyNumber}} \r\n \r\n\r\n
\r\n
Key Number {{keyNumber}}
\r\n
\r\n
\r\n Key Type: {{ facilitiesKeyTypeName }}\r\n
\r\n
\r\n \r\n
\r\n \r\n \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!./TheFacilitiesKeyDetails.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!./TheFacilitiesKeyDetails.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TheFacilitiesKeyDetails.vue?vue&type=template&id=3c96fc0d&\"\nimport script from \"./TheFacilitiesKeyDetails.vue?vue&type=script&lang=js&\"\nexport * from \"./TheFacilitiesKeyDetails.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('b-breadcrumb',[_c('b-breadcrumb-item',{attrs:{\"to\":\"/\"}},[_c('i',{staticClass:\"fa fa-home\"}),_vm._v(\" Home \")]),_c('b-breadcrumb-item',{attrs:{\"to\":\"/Facilities/Keys\"}},[_vm._v(\"Facilities\")]),_c('b-breadcrumb-item',{attrs:{\"to\":\"/Facilities/Keys\"}},[_vm._v(\"Keys\")]),_c('b-breadcrumb-item',{attrs:{\"active\":\"\"}},[_vm._v(\"Add\")])],1),_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.onSubmit()}}},[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"bg-dark card-header text-white\"},[_vm._v(\"Create New Key\")]),_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"row\"},[_c('b-form-group',{staticClass:\"col-lg-12\",class:{'is-invalid': _vm.$v.facilitiesKeyTypeId.$invalid && _vm.isValidating},attrs:{\"label\":\"Key Type\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar facilitiseKeyTypeValue = ref.facilitiseKeyTypeValue;\nreturn [_c('b-form-radio-group',{attrs:{\"options\":_vm.facilitiesKeyTypes,\"aria-describedby\":facilitiseKeyTypeValue},model:{value:(_vm.facilitiesKeyTypeId),callback:function ($$v) {_vm.facilitiesKeyTypeId=$$v},expression:\"facilitiesKeyTypeId\"}}),(!_vm.$v.facilitiesKeyTypeId.required && _vm.isValidating)?_c('span',{staticClass:\"invalid-feedback\"},[_vm._v(\"Field is required\")]):_vm._e()]}}])})],1),(_vm.facilitiesKeyTypeId.toUpperCase() !== _vm.facilitiesKeyTypeList.Standard)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-6 col-md-12 form-group\"},[_c('label',{attrs:{\"for\":\"buildingId\"}},[_vm._v(\"Building\")]),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.buildingId),expression:\"buildingId\"}],staticClass:\"form-control\",class:{'is-invalid': _vm.$v.buildingId.$invalid && _vm.isValidating},on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.buildingId=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},[_c('option',{attrs:{\"disabled\":\"\"},domProps:{\"value\":null}},[_vm._v(\"--Select Building--\")]),_vm._l((_vm.buildingOptions),function(building){return _c('option',{key:building.id,domProps:{\"value\":building.id}},[_vm._v(_vm._s(building.name))])})],2),(!_vm.$v.buildingId.required && _vm.isValidating)?_c('span',{staticClass:\"invalid-feedback\"},[_vm._v(\"Field is required\")]):_vm._e()])]):_vm._e(),(_vm.facilitiesKeyTypeId.toUpperCase() === _vm.facilitiesKeyTypeList['Suite Master'] && _vm.buildingId !== null)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-6 col-md-12 form-group\"},[_c('label',{attrs:{\"for\":\"buildingSpaceId\"}},[_vm._v(\"Suite\")]),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.buildingSpaceId),expression:\"buildingSpaceId\"}],staticClass:\"form-control\",class:{'is-invalid': _vm.$v.buildingSpaceId.$invalid && _vm.isValidating},on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.buildingSpaceId=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},[_c('option',{attrs:{\"disabled\":\"\"},domProps:{\"value\":null}},[_vm._v(\"--Select Suite--\")]),_vm._l((_vm.buildingSpaceOptions),function(buildingSpace){return _c('option',{key:buildingSpace.id,domProps:{\"value\":buildingSpace.id}},[_vm._v(_vm._s(buildingSpace.spaceType)+\" \"+_vm._s(buildingSpace.spaceIdentity))])})],2),(!_vm.$v.buildingSpaceId.required && _vm.isValidating)?_c('span',{staticClass:\"invalid-feedback\"},[_vm._v(\"Field is required\")]):_vm._e()])]):_vm._e(),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-4 col-md-6 form-group\"},[_c('label',{attrs:{\"for\":\"keyNumber\"}},[_vm._v(\"Key Number\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.keyNumber),expression:\"keyNumber\"}],staticClass:\"form-control\",class:{'is-invalid': _vm.$v.keyNumber.$invalid && _vm.isValidating},attrs:{\"maxlength\":\"30\"},domProps:{\"value\":(_vm.keyNumber)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.keyNumber=$event.target.value}}}),(!_vm.$v.keyNumber.required && _vm.isValidating)?_c('span',{staticClass:\"invalid-feedback\"},[_vm._v(\"Field is required\")]):_vm._e(),(!_vm.$v.keyNumber.alphaNum && _vm.isValidating)?_c('span',{staticClass:\"invalid-feedback\"},[_vm._v(\"Field cannot include special characters\")]):_vm._e()])])]),_c('div',{staticClass:\"card-footer d-print-none text-right\"},[_c('button',{staticClass:\"btn btn-primary\",attrs:{\"disabled\":_vm.isSubmitting,\"type\":\"submit\"}},[_vm._v(\"Save\")]),_c('RouterLink',{staticClass:\"btn btn-danger\",attrs:{\"to\":{name:'Keys'}}},[_vm._v(\"Back\")])],1)])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","
\r\n \r\n\r\n
\r\n \r\n \r\n Home\r\n \r\n Facilities \r\n Keys \r\n Add \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!./TheFacilitiesKeyAddForm.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!./TheFacilitiesKeyAddForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TheFacilitiesKeyAddForm.vue?vue&type=template&id=4aee92d5&\"\nimport script from \"./TheFacilitiesKeyAddForm.vue?vue&type=script&lang=js&\"\nexport * from \"./TheFacilitiesKeyAddForm.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('b-breadcrumb',[_c('b-breadcrumb-item',{attrs:{\"to\":\"/\"}},[_c('i',{staticClass:\"fa fa-home\"}),_vm._v(\" Home \")]),_c('b-breadcrumb-item',{attrs:{\"to\":\"/Facilities/Keys\"}},[_vm._v(\"Facilities\")]),_c('b-breadcrumb-item',{attrs:{\"to\":\"/Facilities/Keys\"}},[_vm._v(\"Keys\")]),_c('b-breadcrumb-item',{attrs:{\"to\":{name:'KeyDetails',params:{id:_vm.facilitiesKeyId,keyNumber:_vm.facilitiesKeyNumber}}}},[_vm._v(_vm._s(_vm.facilitiesKeyNumber))]),_c('b-breadcrumb-item',{attrs:{\"active\":\"\"}},[_vm._v(\"Add Copies\")])],1),_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.onSubmit()}}},[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"bg-dark card-header text-white\"},[_vm._v(\"Create New Copies\")]),_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"pb-3\"},[_c('b',[_vm._v(\"Key Type:\")]),_vm._v(\" \"+_vm._s(_vm.facilitiesKeyTypeName)+\" \")]),_c('AppAlertNote',[_vm._v(\" Changing the range after setting will reset the list of key copies in the form \")]),(_vm.lastCopyNumber !== null)?_c('AppAlertNote',[_vm._v(\" The last copy number was \"+_vm._s(_vm.lastCopyNumber)+\" \")]):_vm._e(),_c('div',{staticClass:\"row\"},[_c('b-form-group',{staticClass:\"col-lg-6 col-md-12\",attrs:{\"label\":\"Format\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar formatValue = ref.formatValue;\nreturn [_c('b-form-radio-group',{attrs:{\"options\":_vm.formatOptions,\"aria-describedby\":formatValue,\"disabled\":!_vm.rangeEnabled},on:{\"change\":function($event){return _vm.clearValues()}},model:{value:(_vm.format),callback:function ($$v) {_vm.format=$$v},expression:\"format\"}})]}}])})],1),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-2 col-md-3 form-group\"},[_c('label',{attrs:{\"for\":\"startLetter\"}},[_vm._v(\"Starting Letter\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.startLetter),expression:\"startLetter\"}],staticClass:\"form-control\",class:{'is-invalid': _vm.$v.startLetter.$invalid && _vm.isValidating},attrs:{\"maxlength\":\"1\",\"disabled\":!_vm.rangeEnabled},domProps:{\"value\":(_vm.startLetter)},on:{\"input\":[function($event){if($event.target.composing){ return; }_vm.startLetter=$event.target.value},function($event){_vm.startLetter = $event.target.value.toUpperCase();_vm.createLetterRange();}]}}),(!_vm.$v.startLetter.required && _vm.isValidating)?_c('span',{staticClass:\"invalid-feedback\"},[_vm._v(\"Field is required\")]):_vm._e(),(!_vm.$v.startLetter.alpha && _vm.isValidating)?_c('span',{staticClass:\"invalid-feedback\"},[_vm._v(\"Field cannot include anything other than letters\")]):_vm._e()]),_c('div',{staticClass:\"col-lg-2 col-md-3 form-group\"},[_c('label',{attrs:{\"for\":\"endLetter\"}},[_vm._v(\"Ending Letter\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.endLetter),expression:\"endLetter\"}],staticClass:\"form-control\",class:{'is-invalid': _vm.$v.endLetter.$invalid && _vm.isValidating},attrs:{\"maxlength\":\"1\",\"disabled\":!_vm.rangeEnabled},domProps:{\"value\":(_vm.endLetter)},on:{\"input\":[function($event){if($event.target.composing){ return; }_vm.endLetter=$event.target.value},function($event){_vm.endLetter = $event.target.value.toUpperCase();_vm.createLetterRange();}]}}),(!_vm.$v.endLetter.required && _vm.isValidating)?_c('span',{staticClass:\"invalid-feedback\"},[_vm._v(\"Field is required\")]):_vm._e(),(!_vm.$v.endLetter.alpha && _vm.isValidating)?_c('span',{staticClass:\"invalid-feedback\"},[_vm._v(\"Field cannot include anything other than letters\")]):_vm._e()])]),(_vm.format !== 1)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-2 col-md-3 form-group\"},[_c('label',{attrs:{\"for\":\"startNumber\"}},[_vm._v(\"Starting Number\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.startNumber),expression:\"startNumber\"}],staticClass:\"form-control\",class:{'is-invalid': _vm.$v.startNumber.$invalid && _vm.isValidating},attrs:{\"disabled\":!_vm.rangeEnabled},domProps:{\"value\":(_vm.startNumber)},on:{\"input\":[function($event){if($event.target.composing){ return; }_vm.startNumber=$event.target.value},function($event){return _vm.createNumberRange()}]}}),(!_vm.$v.startNumber.required && _vm.isValidating)?_c('span',{staticClass:\"invalid-feedback\"},[_vm._v(\"Field is required\")]):_vm._e(),(!_vm.$v.startNumber.alpha && _vm.isValidating)?_c('span',{staticClass:\"invalid-feedback\"},[_vm._v(\"Field cannot include anything other than numbers\")]):_vm._e()]),_c('div',{staticClass:\"col-lg-2 col-md-3 form-group\"},[_c('label',{attrs:{\"for\":\"endNumber\"}},[_vm._v(\"Ending Number\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.endNumber),expression:\"endNumber\"}],staticClass:\"form-control\",class:{'is-invalid': _vm.$v.endNumber.$invalid && _vm.isValidating},attrs:{\"disabled\":!_vm.rangeEnabled},domProps:{\"value\":(_vm.endNumber)},on:{\"input\":[function($event){if($event.target.composing){ return; }_vm.endNumber=$event.target.value},function($event){return _vm.createNumberRange()}]}}),(!_vm.$v.endNumber.required && _vm.isValidating)?_c('span',{staticClass:\"invalid-feedback\"},[_vm._v(\"Field is required\")]):_vm._e(),(!_vm.$v.endNumber.alpha && _vm.isValidating)?_c('span',{staticClass:\"invalid-feedback\"},[_vm._v(\"Field cannot include anything other than numbers\")]):_vm._e()])]):_vm._e(),(_vm.showRangeEnabledButton)?_c('div',{staticClass:\"mb-2 text-left\"},[_c('button',{staticClass:\"btn btn-primary d-print-none\",on:{\"click\":function($event){$event.preventDefault();return _vm.toggleRangeFields()}}},[_vm._v(\" \"+_vm._s(_vm.rangeEnabled ? 'Set Range' : 'Change Range')+\" \")])]):_vm._e(),(!_vm.rangeEnabled && _vm.newFacilitiesKeyCopies.length > 0)?_c('BTable',{attrs:{\"fields\":_vm.tableFields,\"items\":_vm.newFacilitiesKeyCopies,\"responsive\":true,\"primary-key\":\"copyNumber\",\"show-empty\":\"\",\"striped\":\"\",\"table-class\":\"table-align-middle\"},scopedSlots:_vm._u([{key:\"cell(copyNumber)\",fn:function(row){return [_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(row.item.copyNumber),expression:\"row.item.copyNumber\"}],staticClass:\"form-control\",class:{'is-invalid': _vm.$v.newFacilitiesKeyCopies.$each[row.index].copyNumber.$invalid && _vm.isValidating},attrs:{\"maxlength\":\"3\"},domProps:{\"value\":(row.item.copyNumber)},on:{\"input\":[function($event){if($event.target.composing){ return; }_vm.$set(row.item, \"copyNumber\", $event.target.value)},function($event){row.item.copyNumber = $event.target.value.toUpperCase()}]}}),(!_vm.$v.newFacilitiesKeyCopies.$each[row.index].copyNumber.required && _vm.isValidating)?_c('span',{staticClass:\"invalid-feedback\"},[_vm._v(\"Field is required\")]):_vm._e(),(!_vm.$v.newFacilitiesKeyCopies.$each[row.index].copyNumber.letterNumberFormat && _vm.isValidating && _vm.format !== 1)?_c('span',{staticClass:\"invalid-feedback\"},[_vm._v(\"The field must be in the [Capital-Letter][Number] format\")]):_vm._e(),(!_vm.$v.newFacilitiesKeyCopies.$each[row.index].copyNumber.letterNumber && _vm.isValidating && _vm.format !== 0)?_c('span',{staticClass:\"invalid-feedback\"},[_vm._v(\"The field must be in the [Capital-Letter] format\")]):_vm._e()]}},{key:\"cell(facilitiesKeyCopyStatusId)\",fn:function(row){return [_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(row.item.facilitiesKeyCopyStatusId),expression:\"row.item.facilitiesKeyCopyStatusId\"}],staticClass:\"form-control\",class:{'is-invalid': _vm.$v.newFacilitiesKeyCopies.$each[row.index].facilitiesKeyCopyStatusId.$invalid && _vm.isValidating},on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(row.item, \"facilitiesKeyCopyStatusId\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])},function($event){return _vm.updateRowValues(row.index)}]}},[_c('option',{attrs:{\"disabled\":\"\"},domProps:{\"value\":null}},[_vm._v(\"--Select Status--\")]),_vm._l((_vm.facilitiesKeyCopyStatusList),function(facilitiesKeyCopyStatus){return _c('option',{key:facilitiesKeyCopyStatus.id,domProps:{\"value\":facilitiesKeyCopyStatus.id}},[_vm._v(_vm._s(facilitiesKeyCopyStatus.name))])})],2),(!_vm.$v.newFacilitiesKeyCopies.$each[row.index].facilitiesKeyCopyStatusId.required && _vm.isValidating)?_c('span',{staticClass:\"invalid-feedback\"},[_vm._v(\"Field is required\")]):_vm._e()]}},{key:\"cell(hookNumber)\",fn:function(row){return [_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(row.item.hookNumber),expression:\"row.item.hookNumber\"}],staticClass:\"form-control\",class:{'is-invalid': _vm.$v.newFacilitiesKeyCopies.$each[row.index].hookNumber.$invalid && _vm.isValidating},attrs:{\"disabled\":row.item.facilitiesKeyCopyStatusId !== _vm.facilitiesKeyCopyStatuses.Stored,\"maxlength\":\"3\"},domProps:{\"value\":(row.item.hookNumber)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(row.item, \"hookNumber\", $event.target.value)}}}),(!_vm.$v.newFacilitiesKeyCopies.$each[row.index].hookNumber.required && _vm.isValidating)?_c('span',{staticClass:\"invalid-feedback\"},[_vm._v(\"Field is required\")]):_vm._e()]}},{key:\"cell(issuedToPersonId)\",fn:function(row){return [_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(row.item.issuedToPersonId),expression:\"row.item.issuedToPersonId\"}],staticClass:\"form-control\",class:{'is-invalid': _vm.$v.newFacilitiesKeyCopies.$each[row.index].issuedToPersonId.$invalid && _vm.isValidating},attrs:{\"disabled\":row.item.facilitiesKeyCopyStatusId !== _vm.facilitiesKeyCopyStatuses.Issued},on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(row.item, \"issuedToPersonId\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option',{attrs:{\"disabled\":\"\"},domProps:{\"value\":null}},[_vm._v(\"--Select Person--\")]),_vm._l((_vm.people),function(person){return _c('option',{key:person.id,domProps:{\"value\":person.id}},[_vm._v(_vm._s(person.name))])})],2),(!_vm.$v.newFacilitiesKeyCopies.$each[row.index].issuedToPersonId.required && _vm.isValidating)?_c('span',{staticClass:\"invalid-feedback\"},[_vm._v(\"Field is required\")]):_vm._e()]}}],null,false,3067070673)}):_vm._e()],1),_c('div',{staticClass:\"card-footer d-print-none text-right\"},[_c('button',{staticClass:\"btn btn-primary\",attrs:{\"disabled\":_vm.isSubmitting || _vm.rangeEnabled,\"type\":\"submit\"}},[_vm._v(\"Save\")]),_c('RouterLink',{staticClass:\"btn btn-danger\",attrs:{\"to\":{name:'KeyDetails',params:{id:_vm.facilitiesKeyId,keyNumber:_vm.facilitiesKeyNumber}}}},[_vm._v(\"Back\")])],1)])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","
\r\n \r\n\r\n
\r\n \r\n \r\n Home\r\n \r\n Facilities \r\n Keys \r\n {{facilitiesKeyNumber}} \r\n Add Copies \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!./TheFacilitiesKeyCopyAddForm.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!./TheFacilitiesKeyCopyAddForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TheFacilitiesKeyCopyAddForm.vue?vue&type=template&id=e6ad2e5c&\"\nimport script from \"./TheFacilitiesKeyCopyAddForm.vue?vue&type=script&lang=js&\"\nexport * from \"./TheFacilitiesKeyCopyAddForm.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('b-breadcrumb',[_c('b-breadcrumb-item',{attrs:{\"to\":\"/\"}},[_c('i',{staticClass:\"fa fa-home\"}),_vm._v(\" Home \")]),_c('b-breadcrumb-item',{attrs:{\"to\":\"/Facilities/Keys\"}},[_vm._v(\"Facilities\")]),_c('b-breadcrumb-item',{attrs:{\"to\":\"/Facilities/Keys\"}},[_vm._v(\"Keys\")]),_c('b-breadcrumb-item',{attrs:{\"to\":{name:'KeyDetails',params:{id:_vm.facilitiesKeyId,keyNumber:_vm.facilitiesKeyNumber}}}},[_vm._v(_vm._s(_vm.facilitiesKeyNumber))]),_c('b-breadcrumb-item',{attrs:{\"active\":\"\"}},[_vm._v(\"Edit Copy \"+_vm._s(_vm.facilitiesKeyCopyNumber))])],1),_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.onSubmit()}}},[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"bg-dark card-header text-white\"},[_vm._v(\"Edit Copy \"+_vm._s(_vm.facilitiesKeyCopyNumber))]),_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"pb-3\"},[_c('b',[_vm._v(\"Key Type:\")]),_vm._v(\" \"+_vm._s(_vm.facilitiesKeyTypeName)+\" \")]),_c('div',{staticClass:\"col-lg-4 col-sm-12 form-group\"},[_c('label',{attrs:{\"for\":\"facilitiesKeyCopyStatusId\"}},[_vm._v(\"Status\")]),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.facilitiesKeyCopyStatusId),expression:\"facilitiesKeyCopyStatusId\"}],staticClass:\"form-control\",class:{'is-invalid': _vm.$v.facilitiesKeyCopyStatusId.$invalid && _vm.isValidating},on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.facilitiesKeyCopyStatusId=$event.target.multiple ? $$selectedVal : $$selectedVal[0]},function($event){return _vm.clearValues()}]}},[_c('option',{attrs:{\"disabled\":\"\"},domProps:{\"value\":null}},[_vm._v(\"--Select Status--\")]),_vm._l((_vm.facilitiesKeyCopyStatusList),function(facilitiesKeyCopyStatus){return _c('option',{key:facilitiesKeyCopyStatus.id,domProps:{\"value\":facilitiesKeyCopyStatus.id}},[_vm._v(_vm._s(facilitiesKeyCopyStatus.name))])})],2),(!_vm.$v.facilitiesKeyCopyStatusId.required && _vm.isValidating)?_c('span',{staticClass:\"invalid-feedback\"},[_vm._v(\"Field is required\")]):_vm._e()]),(_vm.facilitiesKeyCopyStatusId === _vm.facilitiesKeyCopyStatuses.Issued)?_c('div',{staticClass:\"col-lg-4 col-sm-12 form-group\"},[_c('label',{attrs:{\"for\":\"statusForPersonId\"}},[_vm._v(\"Issue to\")]),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.statusForPersonId),expression:\"statusForPersonId\"}],staticClass:\"form-control\",class:{'is-invalid': _vm.$v.statusForPersonId.$invalid && _vm.isValidating},on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.statusForPersonId=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},[_c('option',{attrs:{\"disabled\":\"\"},domProps:{\"value\":null}},[_vm._v(\"--Select Person--\")]),_vm._l((_vm.people),function(person){return _c('option',{key:person.id,domProps:{\"value\":person.id}},[_vm._v(_vm._s(person.name))])})],2),(!_vm.$v.statusForPersonId.required && _vm.isValidating)?_c('span',{staticClass:\"invalid-feedback\"},[_vm._v(\"Field is required\")]):_vm._e()]):_vm._e(),(_vm.facilitiesKeyCopyStatusId === _vm.facilitiesKeyCopyStatuses.Stored)?_c('div',{staticClass:\"col-lg-2 col-sm-8 form-group\"},[_c('label',{attrs:{\"for\":\"hookNumber\"}},[_vm._v(\"Hook Number\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.hookNumber),expression:\"hookNumber\"}],staticClass:\"form-control\",class:{'is-invalid': _vm.$v.hookNumber.$invalid && _vm.isValidating},attrs:{\"maxlength\":\"3\"},domProps:{\"value\":(_vm.hookNumber)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.hookNumber=$event.target.value}}}),(!_vm.$v.hookNumber.required && _vm.isValidating)?_c('span',{staticClass:\"invalid-feedback\"},[_vm._v(\"Field is required\")]):_vm._e()]):_vm._e()]),_c('div',{staticClass:\"card-footer d-print-none text-right\"},[_c('button',{staticClass:\"btn btn-primary\",attrs:{\"disabled\":_vm.isSubmitting,\"type\":\"submit\"}},[_vm._v(\"Save\")]),_c('RouterLink',{staticClass:\"btn btn-danger\",attrs:{\"to\":{name:'KeyDetails',params:{id:_vm.facilitiesKeyId,keyNumber:_vm.facilitiesKeyNumber}}}},[_vm._v(\"Back\")])],1)])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","
\r\n \r\n\r\n
\r\n \r\n \r\n Home\r\n \r\n Facilities \r\n Keys \r\n {{facilitiesKeyNumber}} \r\n Edit Copy {{facilitiesKeyCopyNumber}} \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!./TheFacilitiesKeyCopyEditForm.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!./TheFacilitiesKeyCopyEditForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TheFacilitiesKeyCopyEditForm.vue?vue&type=template&id=39d772eb&\"\nimport script from \"./TheFacilitiesKeyCopyEditForm.vue?vue&type=script&lang=js&\"\nexport * from \"./TheFacilitiesKeyCopyEditForm.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('b-breadcrumb',[_c('b-breadcrumb-item',{attrs:{\"to\":\"/\"}},[_c('i',{staticClass:\"fa fa-home\"}),_vm._v(\" Home \")]),_c('b-breadcrumb-item',{attrs:{\"to\":\"/Facilities/Keys\"}},[_vm._v(\"Facilities\")]),_c('b-breadcrumb-item',{attrs:{\"to\":\"/Facilities/Keys\"}},[_vm._v(\"Keys\")]),_c('b-breadcrumb-item',{attrs:{\"to\":{name:'KeyDetails',params:{id:_vm.facilitiesKeyId,keyNumber:_vm.facilitiesKeyNumber}}}},[_vm._v(_vm._s(_vm.facilitiesKeyNumber))]),_c('b-breadcrumb-item',{attrs:{\"active\":\"\"}},[_vm._v(\"Add Locks\")])],1),_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.onSubmit()}}},[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"bg-dark card-header text-white\"},[_vm._v(\"Create New Locks\")]),_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"pb-3\"},[_c('b',[_vm._v(\"Key Type:\")]),_vm._v(\" \"+_vm._s(_vm.facilitiesKeyTypeName)+\" \")]),_c('AppCardCollapsable',{staticClass:\"mb-3\",attrs:{\"display-footer\":false,\"is-expanded\":true},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_vm._v(\"Select From Existing Locks\")]},proxy:true},{key:\"body\",fn:function(){return [(!_vm.hideLockFor)?_c('div',{staticClass:\"row\"},[_c('b-form-group',{staticClass:\"col-lg-6 col-md-12\",attrs:{\"label\":\"Search Locks By\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar lockForValue = ref.lockForValue;\nreturn [_c('b-form-radio-group',{attrs:{\"options\":_vm.lockForOptions,\"aria-describedby\":lockForValue,\"disabled\":!_vm.searchEnabled},model:{value:(_vm.lockFor),callback:function ($$v) {_vm.lockFor=$$v},expression:\"lockFor\"}})]}}],null,false,305097344)})],1):_vm._e(),(_vm.lockFor !== 2)?_c('div',{staticClass:\"row\"},[_c('b-form-group',{staticClass:\"col-lg-6 col-md-12\",attrs:{\"label\":\"Lock Type\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar lockTypeValue = ref.lockTypeValue;\nreturn [_c('b-form-radio-group',{attrs:{\"options\":_vm.lockTypeOptions,\"aria-describedby\":lockTypeValue,\"disabled\":!_vm.searchEnabled},model:{value:(_vm.facilitiesLocksFilterOptions.lockType),callback:function ($$v) {_vm.$set(_vm.facilitiesLocksFilterOptions, \"lockType\", $$v)},expression:\"facilitiesLocksFilterOptions.lockType\"}})]}}],null,false,2803513489)})],1):_vm._e(),(_vm.lockFor !== 2)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-6 col-md-12 form-group\"},[_c('label',{attrs:{\"for\":\"buildingId\"}},[_vm._v(\"Building\")]),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.facilitiesLocksFilterOptions.buildingId),expression:\"facilitiesLocksFilterOptions.buildingId\"}],staticClass:\"form-control\",attrs:{\"disabled\":!_vm.searchEnabled},on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.facilitiesLocksFilterOptions, \"buildingId\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option',{attrs:{\"disabled\":\"\"},domProps:{\"value\":null}},[_vm._v(\"--Select Building--\")]),_vm._l((_vm.possibleBuildings),function(possibleBuilding){return _c('option',{key:possibleBuilding.id,domProps:{\"value\":possibleBuilding.id}},[_vm._v(_vm._s(possibleBuilding.name))])})],2)])]):_vm._e(),(_vm.lockFor === 1)?_c('div',{staticClass:\"row\"},[_c('b-form-group',{staticClass:\"col-lg-6 col-md-12\",attrs:{\"label\":\"Room or Suite?\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar spaceTypeValue = ref.spaceTypeValue;\nreturn [_c('b-form-radio-group',{attrs:{\"options\":_vm.spaceTypeOptions,\"aria-describedby\":spaceTypeValue,\"disabled\":!_vm.searchEnabled},model:{value:(_vm.spaceType),callback:function ($$v) {_vm.spaceType=$$v},expression:\"spaceType\"}})]}}],null,false,2787053888)})],1):_vm._e(),_c('div',{staticClass:\"row\"},[(_vm.lockFor === 1)?_c('div',{staticClass:\"col-lg-2 col-md-3 form-group\"},[_c('label',{attrs:{\"for\":\"spaceIdentity\"}},[_vm._v(_vm._s(_vm.spaceTypeName)+\" Number\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.spaceIdentity),expression:\"spaceIdentity\"}],staticClass:\"form-control\",attrs:{\"maxlength\":\"30\",\"disabled\":!_vm.searchEnabled},domProps:{\"value\":(_vm.spaceIdentity)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.spaceIdentity=$event.target.value}}})]):_vm._e(),_c('div',{staticClass:\"col-lg-3 col-md-4 form-group\"},[_c('label',{attrs:{\"for\":\"lockIdentity\"}},[_vm._v(\"Lock Notes/Name/Location\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.facilitiesLocksFilterOptions.lockIdentity),expression:\"facilitiesLocksFilterOptions.lockIdentity\"}],staticClass:\"form-control\",attrs:{\"maxlength\":\"30\",\"disabled\":!_vm.searchEnabled,\"placeholder\":_vm.lockFor !== 2 ? 'Optional' : ''},domProps:{\"value\":(_vm.facilitiesLocksFilterOptions.lockIdentity)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.facilitiesLocksFilterOptions, \"lockIdentity\", $event.target.value)}}})])]),_c('div',{staticClass:\"mb-3 text-left\"},[_c('button',{staticClass:\"btn btn-primary d-print-none\",attrs:{\"disabled\":!_vm.canSearch},on:{\"click\":function($event){$event.preventDefault();return _vm.toggleSearchFields()}}},[_vm._v(\" \"+_vm._s(_vm.searchEnabled ? 'Search' : 'Modify Search')+\" \")])]),(!_vm.searchEnabled)?_c('BTable',{attrs:{\"busy\":_vm.isSearching,\"fields\":_vm.possibleLocksTableFields,\"items\":_vm.possibleLocks,\"responsive\":true,\"primary-key\":\"id\",\"show-empty\":\"\",\"striped\":\"\",\"table-class\":\"table-align-middle\"},scopedSlots:_vm._u([{key:\"cell(id)\",fn:function(row){return [_c('AppCheckBox',{on:{\"change\":function($event){return _vm.selectLock(row, $event)}},model:{value:(row.item.isSelected),callback:function ($$v) {_vm.$set(row.item, \"isSelected\", $$v)},expression:\"row.item.isSelected\"}})]}},{key:\"cell(spaceType)\",fn:function(row){return [_vm._v(\" \"+_vm._s(row.item.spaceType)+\" \"+_vm._s(row.item.spaceIdentity)+\" \")]}},{key:\"custom-foot\",fn:function(){return [_c('b-tr',[_c('b-td',{attrs:{\"colspan\":_vm.possibleLocksTableFields.length}},[_c('AppTablePagination',{attrs:{\"page\":_vm.facilitiesLocksFilterOptions.page,\"pageSize\":_vm.facilitiesLocksFilterOptions.pageSize,\"totalCount\":_vm.facilitiesLocksTotalCount},on:{\"update:page\":[function($event){return _vm.$set(_vm.facilitiesLocksFilterOptions, \"page\", $event)},function($event){return _vm.loadPossibleLocks()}],\"update:pageSize\":[function($event){return _vm.$set(_vm.facilitiesLocksFilterOptions, \"pageSize\", $event)},function($event){return _vm.loadPossibleLocks()}],\"update:page-size\":function($event){return _vm.$set(_vm.facilitiesLocksFilterOptions, \"pageSize\", $event)},\"update:totalCount\":function($event){_vm.facilitiesLocksTotalCount=$event},\"update:total-count\":function($event){_vm.facilitiesLocksTotalCount=$event}}})],1)],1)]},proxy:true}],null,false,2810697089)}):_vm._e()]},proxy:true}])}),_c('BTable',{attrs:{\"fields\":_vm.tableFields,\"items\":_vm.newFacilitiesKeyLocks,\"responsive\":true,\"primary-key\":\"id\",\"show-empty\":\"\",\"striped\":\"\",\"table-class\":\"table-align-middle\"},scopedSlots:_vm._u([{key:\"cell(facilitiesLockId)\",fn:function(row){return [_c('button',{staticClass:\"btn btn-danger d-print-none\",on:{\"click\":function($event){$event.preventDefault();return _vm.removeLock(row)}}},[_vm._v(\" Remove \")])]}},{key:\"cell(spaceType)\",fn:function(row){return [_vm._v(\" \"+_vm._s(row.item.spaceType)+\" \"+_vm._s(row.item.spaceIdentity)+\" \")]}},{key:\"cell(notes)\",fn:function(row){return [_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(row.item.notes),expression:\"row.item.notes\"}],staticClass:\"form-control\",attrs:{\"maxlength\":\"1000\"},domProps:{\"value\":(row.item.notes)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(row.item, \"notes\", $event.target.value)}}})]}}])})],1),_c('div',{staticClass:\"card-footer d-print-none text-right\"},[_c('button',{staticClass:\"btn btn-primary\",attrs:{\"disabled\":_vm.isSubmitting || _vm.rangeEnabled,\"type\":\"submit\"}},[_vm._v(\"Save\")]),_c('RouterLink',{staticClass:\"btn btn-danger\",attrs:{\"to\":{name:'KeyDetails',params:{id:_vm.facilitiesKeyId,keyNumber:_vm.facilitiesKeyNumber}}}},[_vm._v(\"Back\")])],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',_vm._b({staticClass:\"card\"},'div',_vm.$attrs,false),[_c('div',{class:_vm.headerClasses,attrs:{\"data-target\":'#'+_vm.id,\"data-toggle\":\"collapse\"}},[_vm._t(\"header\")],2),_c('div',{class:'collapse' + (_vm.isExpanded ? ' show' : ''),attrs:{\"id\":_vm.id,\"aria-expanded\":_vm.isExpanded}},[_c('div',{staticClass:\"card-body\"},[_vm._t(\"body\")],2),(_vm.displayFooter)?_c('div',{staticClass:\"card-footer text-right\"},[_vm._t(\"footer\")],2):_vm._e()])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","
\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!./AppCardCollapsable.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!./AppCardCollapsable.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AppCardCollapsable.vue?vue&type=template&id=db49b72c&scoped=true&\"\nimport script from \"./AppCardCollapsable.vue?vue&type=script&lang=js&\"\nexport * from \"./AppCardCollapsable.vue?vue&type=script&lang=js&\"\nimport style0 from \"./AppCardCollapsable.vue?vue&type=style&index=0&id=db49b72c&scoped=true&lang=css&\"\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 \"db49b72c\",\n null\n \n)\n\nexport default component.exports","import {AxiosResponse} from \"axios\"\r\nimport {\r\n FacilitiesLocksFilterOptions,\r\n FacilitiesLock,\r\n NewFacilitiesLock,\r\n UpdateFacilitiesLock\r\n} from \"@/services/models/FacilitiesLock\";\r\nimport {PagedData} from \"@/services/models/shared/PagedData\";\r\nimport BimsHttpService from \"@/services/BimsHttpService\";\r\n\r\nclass FacilitiesLocksService {\r\n /**\r\n * @description Returns a paged list of facilities locks\r\n */\r\n getFacilitiesLocks(filter: FacilitiesLocksFilterOptions\r\n ): Promise
> {\r\n return BimsHttpService.get(`/facilitieslocks`, {\r\n params: filter\r\n }).then((response: AxiosResponse>) => {\r\n return response.data as PagedData;\r\n });\r\n }\r\n\r\n /**\r\n * @description Returns the facilities lock with the specified id\r\n */\r\n getFacilitiesLock(id: string): Promise {\r\n return BimsHttpService.get(`/facilitieslocks/${id}`).then((response: AxiosResponse) => {\r\n return response.data as FacilitiesLock;\r\n });\r\n }\r\n\r\n /**\r\n * @description Adds new facilities lock\r\n */\r\n addFacilitiesLocks(facilitiesLocks: Array): Promise {\r\n return BimsHttpService.post(`/facilitieslocks`,\r\n facilitiesLocks\r\n ).then(response => {\r\n return response.data\r\n });\r\n }\r\n\r\n /**\r\n * @description Updates the facilities lock\r\n */\r\n updateFacilitiesLock(id: string, facilitiesLock: UpdateFacilitiesLock): Promise {\r\n return BimsHttpService.put(`/facilitieslocks/${id}`,\r\n facilitiesLock\r\n )\r\n }\r\n\r\n /**\r\n * @description Deletes the facilities lock\r\n */\r\n deleteFacilitiesLock(id: string): Promise {\r\n return BimsHttpService.delete(`/facilitieslocks/${id}`)\r\n }\r\n}\r\n\r\nexport default new FacilitiesLocksService();\r\n","\r\n \r\n\r\n
\r\n \r\n \r\n Home\r\n \r\n Facilities \r\n Keys \r\n {{facilitiesKeyNumber}} \r\n Add Locks \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!./TheFacilitiesKeyLockAddForm.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!./TheFacilitiesKeyLockAddForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TheFacilitiesKeyLockAddForm.vue?vue&type=template&id=412b7857&\"\nimport script from \"./TheFacilitiesKeyLockAddForm.vue?vue&type=script&lang=js&\"\nexport * from \"./TheFacilitiesKeyLockAddForm.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('b-breadcrumb',[_c('b-breadcrumb-item',{attrs:{\"to\":\"/\"}},[_c('i',{staticClass:\"fa fa-home\"}),_vm._v(\" Home \")]),_c('b-breadcrumb-item',{attrs:{\"to\":\"/Facilities/Keys\"}},[_vm._v(\"Facilities\")]),_c('b-breadcrumb-item',{attrs:{\"to\":\"/Facilities/Keys\"}},[_vm._v(\"Keys\")]),_c('b-breadcrumb-item',{attrs:{\"to\":{name:'KeyDetails',params:{id:_vm.facilitiesKeyId,keyNumber:_vm.facilitiesKeyNumber}}}},[_vm._v(_vm._s(_vm.facilitiesKeyNumber))]),_c('b-breadcrumb-item',{attrs:{\"active\":\"\"}},[_vm._v(\"Edit Lock\")])],1),_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.onSubmit()}}},[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"bg-dark card-header text-white\"},[_vm._v(\"Edit Lock\")]),_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"pb-3\"},[_c('b',[_vm._v(\"Key Type:\")]),_vm._v(\" \"+_vm._s(_vm.facilitiesKeyTypeName)+\" \")]),_c('div',{staticClass:\"row pb-3\"},[(_vm.lockType !== null)?_c('div',{staticClass:\"col-12 col-sm-5 col-md-3\"},[_c('b',[_vm._v(\"Lock Types:\")]),_vm._v(\" \"+_vm._s(_vm.lockType)+\" \")]):_vm._e(),(_vm.buildingName !== null || _vm.spaceType !== null || _vm.spaceIdentity !== null)?_c('div',{staticClass:\"col-12 col-sm-5 col-md-3\"},[_c('b',[_vm._v(\"Lock For:\")]),_vm._v(\" \"+_vm._s(_vm.buildingName)+\" \"+_vm._s(_vm.spaceType)+\" \"+_vm._s(_vm.spaceIdentity)+\" \")]):_vm._e()]),(_vm.lockIdentity !== null)?_c('div',{staticClass:\"pb-3\"},[_c('b',[_vm._v(\"Lock Notes/Name/Location:\")]),_vm._v(\" \"+_vm._s(_vm.lockIdentity)+\" \")]):_vm._e(),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12 col-sm-6 col-md-4\"},[_c('label',{attrs:{\"for\":\"notes\"}},[_vm._v(\"Additional Notes\")]),_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.notes),expression:\"notes\"}],staticClass:\"form-control\",attrs:{\"maxlength\":\"1000\"},domProps:{\"value\":(_vm.notes)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.notes=$event.target.value}}})])])]),_c('div',{staticClass:\"card-footer d-print-none text-right\"},[_c('button',{staticClass:\"btn btn-primary\",attrs:{\"disabled\":_vm.isSubmitting || _vm.rangeEnabled,\"type\":\"submit\"}},[_vm._v(\"Save\")]),_c('RouterLink',{staticClass:\"btn btn-danger\",attrs:{\"to\":{name:'KeyDetails',params:{id:_vm.facilitiesKeyId,keyNumber:_vm.facilitiesKeyNumber}}}},[_vm._v(\"Back\")])],1)])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n\r\n
\r\n \r\n \r\n Home\r\n \r\n Facilities \r\n Keys \r\n {{facilitiesKeyNumber}} \r\n Edit Lock \r\n \r\n\r\n
\r\n \r\n
Edit Lock
\r\n
\r\n
\r\n Key Type: {{ facilitiesKeyTypeName }}\r\n
\r\n
\r\n
\r\n Lock Types: {{ lockType }}\r\n
\r\n
\r\n Lock For: {{ buildingName }} {{ spaceType }} {{ spaceIdentity }}\r\n
\r\n
\r\n
\r\n Lock Notes/Name/Location: {{ lockIdentity }}\r\n
\r\n
\r\n
\r\n Additional Notes \r\n \r\n
\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!./TheFacilitiesKeyLockEditForm.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!./TheFacilitiesKeyLockEditForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TheFacilitiesKeyLockEditForm.vue?vue&type=template&id=60051736&\"\nimport script from \"./TheFacilitiesKeyLockEditForm.vue?vue&type=script&lang=js&\"\nexport * from \"./TheFacilitiesKeyLockEditForm.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('b-breadcrumb',[_c('b-breadcrumb-item',{attrs:{\"to\":\"/\"}},[_c('i',{staticClass:\"fa fa-home\"}),_vm._v(\" Home \")]),_c('b-breadcrumb-item',{attrs:{\"to\":\"/Facilities/Keys\"}},[_vm._v(\"Facilities\")]),_c('b-breadcrumb-item',{attrs:{\"active\":\"\"}},[_vm._v(\"Locks\")])],1),_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-header\"},[_c('ul',{staticClass:\"card-header-tabs nav nav-tabs\"},[_c('li',{staticClass:\"nav-item\"},[_c('RouterLink',{staticClass:\"nav-link\",attrs:{\"to\":{name:'Keys'}}},[_vm._v(\" Keys \")])],1),_c('li',{staticClass:\"nav-item\"},[_c('RouterLink',{staticClass:\"active nav-link\",attrs:{\"to\":{name:'Locks'}}},[_vm._v(\" Locks \")])],1)])]),_c('div',{staticClass:\"card-body\"},[_c('AppFormCardCollapsable',{staticClass:\"mb-3\",attrs:{\"display-footer\":true},on:{\"submit\":function($event){$event.preventDefault();return _vm.onFilterSubmit()}},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_vm._v(\"Filter\")]},proxy:true},{key:\"body\",fn:function(){return [_c('div',{staticClass:\"form-row justify-content-center\"},[_c('b-form-group',{staticClass:\"col-auto\",attrs:{\"label\":\"Lock Type\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar lockTypeValue = ref.lockTypeValue;\nreturn [_c('b-form-radio-group',{attrs:{\"options\":_vm.lockTypes,\"aria-describedby\":lockTypeValue},model:{value:(_vm.filterOptions.lockType),callback:function ($$v) {_vm.$set(_vm.filterOptions, \"lockType\", $$v)},expression:\"filterOptions.lockType\"}})]}}])}),_c('div',{staticClass:\"col-auto form-group\"},[_c('label',{attrs:{\"for\":\"buildingId\"}},[_vm._v(\"Building\")]),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.filterOptions.buildingId),expression:\"filterOptions.buildingId\"}],staticClass:\"form-control\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.filterOptions, \"buildingId\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option',{domProps:{\"value\":null}},[_vm._v(\"All\")]),_vm._l((_vm.buildings),function(possibleBuilding){return _c('option',{key:possibleBuilding.id,domProps:{\"value\":possibleBuilding.id}},[_vm._v(_vm._s(possibleBuilding.name))])})],2)]),_c('div',{staticClass:\"col-md-4 form-group\"},[_c('label',[_vm._v(\"Notes/Name/Location\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.filterOptions.lockIdentity),expression:\"filterOptions.lockIdentity\"}],staticClass:\"form-control\",attrs:{\"placeholder\":\"Notes/Name/Location\"},domProps:{\"value\":(_vm.filterOptions.lockIdentity)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.filterOptions, \"lockIdentity\", $event.target.value)}}})])],1),_c('div',{staticClass:\"form-row justify-content-center\"},[_c('b-form-group',{staticClass:\"col-auto\",attrs:{\"label\":\"Search By\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar suiteOrRoomValue = ref.suiteOrRoomValue;\nreturn [_c('b-form-radio-group',{attrs:{\"options\":_vm.suiteOrRoom,\"aria-describedby\":suiteOrRoomValue},model:{value:(_vm.searchForSuiteOrRoom),callback:function ($$v) {_vm.searchForSuiteOrRoom=$$v},expression:\"searchForSuiteOrRoom\"}})]}}])}),(_vm.searchForSuiteOrRoom === 2)?_c('div',{staticClass:\"col-auto form-group\"},[_c('label',[_vm._v(\"Suite\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.filterOptions.suite),expression:\"filterOptions.suite\"}],staticClass:\"form-control\",attrs:{\"placeholder\":\"Suite\"},domProps:{\"value\":(_vm.filterOptions.suite)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.filterOptions, \"suite\", $event.target.value)}}})]):_vm._e(),(_vm.searchForSuiteOrRoom === 1)?_c('div',{staticClass:\"col-auto form-group\"},[_c('label',[_vm._v(\"Room\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.filterOptions.room),expression:\"filterOptions.room\"}],staticClass:\"form-control\",attrs:{\"placeholder\":\"Room\"},domProps:{\"value\":(_vm.filterOptions.room)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.filterOptions, \"room\", $event.target.value)}}})]):_vm._e()],1)]},proxy:true},{key:\"footer\",fn:function(){return [_c('button',{staticClass:\"btn btn-primary\",attrs:{\"type\":\"submit\"}},[_vm._v(\"Apply\")])]},proxy:true}])}),_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"bg-dark card-header text-white\"},[_vm._v(\"Locks\")]),_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"d-print-none dropdown mb-3 text-right\"},[_vm._m(0),_c('div',{staticClass:\"dropdown-menu\"},[_c('RouterLink',{staticClass:\"btn btn-outline-light dropdown-item text-left\",attrs:{\"to\":{name: 'AddLock'},\"title\":\"Add New Lock\"}},[_c('i',{staticClass:\"fa fa-plus\"}),_vm._v(\"Add \")])],1)]),_c('BTable',{attrs:{\"busy\":_vm.isLoading,\"fields\":_vm.tableFields,\"items\":_vm.facilitiesLocks,\"responsive\":true,\"primary-key\":\"id\",\"show-empty\":\"\",\"striped\":\"\",\"table-class\":\"table-align-middle\"},scopedSlots:_vm._u([{key:\"cell(id)\",fn:function(row){return [_c('div',{staticClass:\"btn-group\"},[_c('router-link',{staticClass:\"btn btn-sm btn-warning d-print-none\",attrs:{\"to\":{ name:'EditLock', params:{ id: row.item.id } },\"data-toggle\":\"tooltip\",\"title\":\"Edit lock details\"}},[_c('i',{staticClass:\"fa fa-pencil-alt\"}),_vm._v(\"Edit \")]),_c('button',{staticClass:\"btn btn-danger btn-sm d-print-none\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.onDeleteClick(row.item)}}},[_c('i',{staticClass:\"fa fa-trash\"}),_vm._v(\"Delete \")])],1)]}},{key:\"cell(spaceType)\",fn:function(row){return [_c('span',[_vm._v(_vm._s(row.item.spaceType)+\" \"+_vm._s(row.item.spaceIdentity))])]}},{key:\"custom-foot\",fn:function(){return [_c('b-tr',[_c('b-td',{attrs:{\"colspan\":_vm.tableFields.length}},[_c('AppTablePagination',{attrs:{\"page\":_vm.filterOptions.page,\"pageSize\":_vm.filterOptions.pageSize,\"totalCount\":_vm.totalFacilitiesLocks},on:{\"update:page\":[function($event){return _vm.$set(_vm.filterOptions, \"page\", $event)},function($event){return _vm.loadData()}],\"update:pageSize\":[function($event){return _vm.$set(_vm.filterOptions, \"pageSize\", $event)},function($event){return _vm.loadData()}],\"update:page-size\":function($event){return _vm.$set(_vm.filterOptions, \"pageSize\", $event)},\"update:totalCount\":function($event){_vm.totalFacilitiesLocks=$event},\"update:total-count\":function($event){_vm.totalFacilitiesLocks=$event}}})],1)],1)]},proxy:true}])})],1),_c('AppModalConfirm',{attrs:{\"visible\":_vm.deletingRow},on:{\"close\":function($event){_vm.deletingRow=null},\"confirm\":function($event){return _vm.onDeleteConfirmed(_vm.deletingRow)}},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_vm._v(\"Confirm\")]},proxy:true}])},[(_vm.deletingRow)?_c('p',[_vm._v(\"Are you sure you want to delete lock\"+_vm._s(_vm.deletingRow.lockIdentity === null ? '' : ' \\'' + _vm.deletingRow.lockIdentity + '\\'')+\" \"+_vm._s(_vm.deletingRow.buildingId !== null || _vm.deletingRow.buildingSpaceId !== null ? ' for ' + _vm.deletingRow.buildingName : '')+\" \"+_vm._s(_vm.deletingRow.buildingSpaceId !== null ? ', ' + _vm.deletingRow.spaceType + ' ' + _vm.deletingRow.spaceIdentity : '')+\"?\")]):_vm._e()])],1)],1)])],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('button',{staticClass:\"btn btn-secondary dropdown-toggle\",staticStyle:{\"width\":\"100px\"},attrs:{\"aria-expanded\":\"false\",\"aria-haspopup\":\"true\",\"data-toggle\":\"dropdown\",\"type\":\"button\"}},[_c('span',[_vm._v(\"Actions\")])])}]\n\nexport { render, staticRenderFns }","\r\n \r\n
\r\n \r\n \r\n Home\r\n \r\n Facilities \r\n Locks \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 Apply \r\n \r\n \r\n
\r\n
Locks
\r\n
\r\n
\r\n \r\n Actions \r\n \r\n \r\n
\r\n
\r\n\r\n \r\n \r\n \r\n Edit\r\n \r\n Delete\r\n \r\n
\r\n \r\n\r\n \r\n {{ row.item.spaceType }} {{ row.item.spaceIdentity }} \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n
\r\n Confirm \r\n Are you sure you want to delete lock{{ deletingRow.lockIdentity === null ? '' : ' \\'' + deletingRow.lockIdentity + '\\'' }}\r\n {{ deletingRow.buildingId !== null || deletingRow.buildingSpaceId !== null ? ' for ' + deletingRow.buildingName : '' }}\r\n {{ deletingRow.buildingSpaceId !== null ? ', ' + deletingRow.spaceType + ' ' + deletingRow.spaceIdentity : '' }}?
\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!./TheFacilitiesLocksList.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!./TheFacilitiesLocksList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TheFacilitiesLocksList.vue?vue&type=template&id=6c5d6559&\"\nimport script from \"./TheFacilitiesLocksList.vue?vue&type=script&lang=js&\"\nexport * from \"./TheFacilitiesLocksList.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('b-breadcrumb',[_c('b-breadcrumb-item',{attrs:{\"to\":\"/\"}},[_c('i',{staticClass:\"fa fa-home\"}),_vm._v(\" Home \")]),_c('b-breadcrumb-item',{attrs:{\"to\":\"/Facilities/Keys\"}},[_vm._v(\"Facilities\")]),_c('b-breadcrumb-item',{attrs:{\"to\":\"/Facilities/Locks\"}},[_vm._v(\"Locks\")]),_c('b-breadcrumb-item',{attrs:{\"active\":\"\"}},[_vm._v(\"Add\")])],1),_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.onSubmit()}}},[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"bg-dark card-header text-white\"},[_vm._v(\"Create New Lock\")]),_c('div',{staticClass:\"card-body\"},[_c('transition',{attrs:{\"name\":\"fade\"}},[(_vm.$v.newFacilitiesLocks.$invalid && !_vm.$v.newFacilitiesLocks.mustBeUnique && _vm.isValidating)?_c('AppNotification',{attrs:{\"type\":\"danger\"}},[_vm._v(\" \"+_vm._s(\"Cannot add duplicate locks\")+\" \")]):_vm._e()],1),_c('div',{staticClass:\"row\"},[_c('b-form-group',{staticClass:\"col-lg-6 col-md-12\",attrs:{\"label\":\"Lock for\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar lockFor = ref.lockFor;\nreturn [_c('b-form-radio-group',{attrs:{\"options\":_vm.addLockForOptions,\"aria-describedby\":lockFor},model:{value:(_vm.addLockFor),callback:function ($$v) {_vm.addLockFor=$$v},expression:\"addLockFor\"}})]}}])})],1),(_vm.addLockFor === 2)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-2 col-md-3 form-group\"},[_c('label',{attrs:{\"for\":\"totalOtherToAdd\"}},[_vm._v(\"Number of Locks to Add\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.totalOtherToAdd),expression:\"totalOtherToAdd\"}],staticClass:\"form-control\",domProps:{\"value\":(_vm.totalOtherToAdd)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.totalOtherToAdd=$event.target.value}}})])]):_vm._e(),(_vm.addLockFor === 2)?_c('div',{staticClass:\"mb-3 text-left\"},[_c('button',{staticClass:\"btn btn-success d-print-none\",on:{\"click\":function($event){$event.preventDefault();return _vm.addForLock()}}},[_c('i',{staticClass:\"fa fa-plus\"}),_vm._v(\" Add \")])]):_vm._e(),(_vm.addLockFor !== 2)?_c('AppCardCollapsable',{staticClass:\"mb-3\",attrs:{\"display-footer\":false,\"is-expanded\":true},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_vm._v(\"Select From Existing\")]},proxy:true},{key:\"body\",fn:function(){return [_c('div',{staticClass:\"row\"},[(_vm.addLockFor === 1)?_c('div',{staticClass:\"col-lg-6 col-md-12 form-group\"},[_c('label',{attrs:{\"for\":\"buildingLookupId\"}},[_vm._v(\"Building\")]),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.buildingLookupId),expression:\"buildingLookupId\"}],staticClass:\"form-control\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.buildingLookupId=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},[_c('option',{attrs:{\"disabled\":\"\"},domProps:{\"value\":null}},[_vm._v(\"--Select Building--\")]),_vm._l((_vm.possibleBuildings),function(possibleBuilding){return _c('option',{key:possibleBuilding.id,domProps:{\"value\":possibleBuilding.id}},[_vm._v(_vm._s(possibleBuilding.name))])})],2)]):_vm._e()]),(_vm.addLockFor !== 2)?_c('BTable',{attrs:{\"busy\":_vm.isSearching,\"fields\":_vm.possibleBuildingsOrSpacesTableFields,\"items\":_vm.possibleBuildingsOrSpaces,\"responsive\":true,\"primary-key\":\"id\",\"show-empty\":\"\",\"striped\":\"\",\"table-class\":\"table-align-middle\"},scopedSlots:_vm._u([{key:\"cell(id)\",fn:function(row){return [_c('button',{staticClass:\"btn btn-success d-print-none\",on:{\"click\":function($event){$event.preventDefault();return _vm.addForLock(row)}}},[_c('i',{staticClass:\"fa fa-plus\"}),_vm._v(\" Add \")])]}},{key:\"cell(spaceType)\",fn:function(row){return [_vm._v(\" \"+_vm._s(row.item.spaceType)+\" \"+_vm._s(row.item.spaceIdentity)+\" \")]}},{key:\"custom-foot\",fn:function(){return [_c('b-tr',[_c('b-td',{attrs:{\"colspan\":_vm.possibleBuildingsOrSpacesTableFields.length}},[_c('AppTablePagination',{attrs:{\"page\":_vm.filterOptions.page,\"pageSize\":_vm.filterOptions.pageSize,\"totalCount\":_vm.possibleBuildingsOrSpacesTotalCount},on:{\"update:page\":[function($event){return _vm.$set(_vm.filterOptions, \"page\", $event)},function($event){return _vm.loadNextBuildingsOrSpaces()}],\"update:pageSize\":[function($event){return _vm.$set(_vm.filterOptions, \"pageSize\", $event)},function($event){return _vm.loadNextBuildingsOrSpaces()}],\"update:page-size\":function($event){return _vm.$set(_vm.filterOptions, \"pageSize\", $event)},\"update:totalCount\":function($event){_vm.possibleBuildingsOrSpacesTotalCount=$event},\"update:total-count\":function($event){_vm.possibleBuildingsOrSpacesTotalCount=$event}}})],1)],1)]},proxy:true}],null,false,1209404552)}):_vm._e()]},proxy:true}],null,false,2566738933)}):_vm._e(),_c('BTable',{attrs:{\"fields\":_vm.tableFields,\"items\":_vm.newFacilitiesLocks,\"responsive\":true,\"show-empty\":\"\",\"striped\":\"\",\"table-class\":\"table-align-middle\"},scopedSlots:_vm._u([{key:\"cell(id)\",fn:function(row){return [_c('button',{staticClass:\"btn btn-danger d-print-none\",on:{\"click\":function($event){$event.preventDefault();return _vm.removeLock(row.index)}}},[_c('i',{staticClass:\"fa fa-trash\"}),_vm._v(\" Remove \")])]}},{key:\"cell(lockType)\",fn:function(row){return [_c('b-form-group',{staticClass:\"col-lg-6 col-md-12\",class:{'is-invalid': _vm.$v.newFacilitiesLocks.$each[row.index].lockType.$invalid && _vm.isValidating},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar lockTypeValue = ref.lockTypeValue;\nreturn [_c('b-form-radio-group',{attrs:{\"options\":_vm.lockTypes,\"aria-describedby\":lockTypeValue,\"disabled\":row.item.buildingId === null && row.item.buildingSpaceId === null},model:{value:(row.item.lockType),callback:function ($$v) {_vm.$set(row.item, \"lockType\", $$v)},expression:\"row.item.lockType\"}}),(!_vm.$v.newFacilitiesLocks.$each[row.index].lockType.required && _vm.isValidating)?_c('span',{staticClass:\"invalid-feedback\"},[_vm._v(\"Field is required\")]):_vm._e()]}}],null,true)})]}},{key:\"cell(spaceType)\",fn:function(row){return [_vm._v(\" \"+_vm._s(row.item.spaceType)+\" \"+_vm._s(row.item.spaceIdentity)+\" \")]}},{key:\"cell(lockIdentity)\",fn:function(row){return [_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.newFacilitiesLocks[row.index].lockIdentity),expression:\"newFacilitiesLocks[row.index].lockIdentity\"}],staticClass:\"form-control\",class:{'is-invalid': _vm.$v.newFacilitiesLocks.$each[row.index].lockIdentity.$invalid && _vm.isValidating},attrs:{\"maxlength\":\"30\"},domProps:{\"value\":(_vm.newFacilitiesLocks[row.index].lockIdentity)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.newFacilitiesLocks[row.index], \"lockIdentity\", $event.target.value)}}})]}}])})],1),_c('div',{staticClass:\"card-footer d-print-none text-right\"},[_c('button',{staticClass:\"btn btn-primary\",attrs:{\"disabled\":_vm.isSubmitting,\"type\":\"submit\"}},[_vm._v(\"Save\")]),_c('RouterLink',{staticClass:\"btn btn-danger\",attrs:{\"to\":{name:'Locks'}}},[_vm._v(\"Back\")])],1)])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","
\r\n \r\n\r\n
\r\n \r\n \r\n Home\r\n \r\n Facilities \r\n Locks \r\n Add \r\n \r\n\r\n
\r\n \r\n
Create New Lock
\r\n
\r\n
\r\n \r\n {{ \"Cannot add duplicate locks\" }}\r\n \r\n \r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n Number of Locks to Add \r\n \r\n
\r\n
\r\n
\r\n \r\n Add\r\n \r\n
\r\n
\r\n Select From Existing \r\n \r\n \r\n
\r\n Building \r\n \r\n --Select Building-- \r\n {{possibleBuilding.name}} \r\n \r\n
\r\n
\r\n \r\n\r\n \r\n \r\n Add\r\n \r\n \r\n \r\n {{row.item.spaceType}} {{row.item.spaceIdentity}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n \r\n \r\n Remove\r\n \r\n \r\n\r\n \r\n \r\n \r\n Field is required \r\n \r\n \r\n\r\n \r\n \r\n {{row.item.spaceType}} {{row.item.spaceIdentity}}\r\n \r\n\r\n \r\n \r\n \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!./TheFacilitiesLockAddForm.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!./TheFacilitiesLockAddForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TheFacilitiesLockAddForm.vue?vue&type=template&id=390150ff&\"\nimport script from \"./TheFacilitiesLockAddForm.vue?vue&type=script&lang=js&\"\nexport * from \"./TheFacilitiesLockAddForm.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('b-breadcrumb',[_c('b-breadcrumb-item',{attrs:{\"to\":\"/\"}},[_c('i',{staticClass:\"fa fa-home\"}),_vm._v(\" Home \")]),_c('b-breadcrumb-item',{attrs:{\"to\":\"/Facilities/Keys\"}},[_vm._v(\"Facilities\")]),_c('b-breadcrumb-item',{attrs:{\"to\":\"/Facilities/Locks\"}},[_vm._v(\"Locks\")]),_c('b-breadcrumb-item',{attrs:{\"active\":\"\"}},[_vm._v(\"Edit\")])],1),_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.onSubmit()}}},[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"bg-dark card-header text-white\"},[_vm._v(\"Edit Lock\")]),_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"row pb-3\"},[_c('b-form-group',{staticClass:\"col-lg-2 col-md-4 col-sm-12\",attrs:{\"label\":\"Lock Type\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar lockTypeValue = ref.lockTypeValue;\nreturn [_c('b-form-radio-group',{attrs:{\"options\":_vm.lockTypes,\"aria-describedby\":lockTypeValue,\"disabled\":\"\"},model:{value:(_vm.lockType),callback:function ($$v) {_vm.lockType=$$v},expression:\"lockType\"}})]}}])}),(_vm.buildingId !== null || _vm.buildingSpaceId !== null)?_c('div',{staticClass:\"col-lg-4 col-sm-12 form-group\"},[_c('label',{attrs:{\"for\":\"buildingId\"}},[_vm._v(\"Building\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.buildingName),expression:\"buildingName\"}],staticClass:\"form-control\",attrs:{\"readonly\":\"\"},domProps:{\"value\":(_vm.buildingName)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.buildingName=$event.target.value}}})]):_vm._e(),(_vm.buildingSpaceId !== null)?_c('div',{staticClass:\"col-lg-4 col-sm-12 form-group\"},[_c('label',{attrs:{\"for\":\"buildingSpaceId\"}},[_vm._v(_vm._s(_vm.spaceType))]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.spaceIdentity),expression:\"spaceIdentity\"}],staticClass:\"form-control\",attrs:{\"readonly\":\"\"},domProps:{\"value\":(_vm.spaceIdentity)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.spaceIdentity=$event.target.value}}})]):_vm._e()],1),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-6 col-md-12 form-group\"},[_c('label',{attrs:{\"for\":\"lockIdentity\"}},[_vm._v(\"Notes/Name/Location\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.lockIdentity),expression:\"lockIdentity\"}],staticClass:\"form-control\",class:{'is-invalid': _vm.$v.lockIdentity.$invalid && _vm.isValidating},attrs:{\"maxlength\":\"30\"},domProps:{\"value\":(_vm.lockIdentity)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.lockIdentity=$event.target.value}}})])])]),_c('div',{staticClass:\"card-footer d-print-none text-right\"},[_c('button',{staticClass:\"btn btn-primary\",attrs:{\"disabled\":_vm.isSubmitting,\"type\":\"submit\"}},[_vm._v(\"Save\")]),_c('RouterLink',{staticClass:\"btn btn-danger\",attrs:{\"to\":{name:'Locks'}}},[_vm._v(\"Back\")])],1)])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","
\r\n \r\n\r\n
\r\n \r\n \r\n Home\r\n \r\n Facilities \r\n Locks \r\n Edit \r\n \r\n\r\n
\r\n \r\n
Edit Lock
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n Building \r\n \r\n
\r\n
\r\n {{ spaceType }} \r\n \r\n
\r\n
\r\n
\r\n
\r\n Notes/Name/Location \r\n \r\n
\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!./TheFacilitiesLockEditForm.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!./TheFacilitiesLockEditForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TheFacilitiesLockEditForm.vue?vue&type=template&id=4b5d051c&\"\nimport script from \"./TheFacilitiesLockEditForm.vue?vue&type=script&lang=js&\"\nexport * from \"./TheFacilitiesLockEditForm.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('b-breadcrumb',[_c('b-breadcrumb-item',{attrs:{\"to\":\"/\"}},[_c('i',{staticClass:\"fa fa-home\"}),_vm._v(\" Home \")]),_c('b-breadcrumb-item',{attrs:{\"to\":\"/FinancialServices/NetworkIDTs\"}},[_vm._v(\"Financial Services\")]),_c('b-breadcrumb-item',{attrs:{\"active\":\"\"}},[_vm._v(\"Leasing IDTs\")])],1),_vm._m(0)],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"bg-dark card-header text-white\"},[_vm._v(\"Leasing IDTs\")]),_c('div',{staticClass:\"card-body\"})])}]\n\nexport { render, staticRenderFns }","
\r\n \r\n
\r\n \r\n \r\n Home\r\n \r\n Financial Services \r\n Leasing IDTs \r\n \r\n\r\n
\r\n
Leasing IDTs
\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!./TheLeasingIDTsList.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!./TheLeasingIDTsList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TheLeasingIDTsList.vue?vue&type=template&id=ca5c1eb8&\"\nimport script from \"./TheLeasingIDTsList.vue?vue&type=script&lang=js&\"\nexport * from \"./TheLeasingIDTsList.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('b-breadcrumb',[_c('b-breadcrumb-item',{attrs:{\"to\":\"/\"}},[_c('i',{staticClass:\"fa fa-home\"}),_vm._v(\" Home \")]),_c('b-breadcrumb-item',{attrs:{\"to\":\"/FinancialServices/NetworkIDTs\"}},[_vm._v(\"Financial Services\")]),_c('b-breadcrumb-item',{attrs:{\"active\":\"\"}},[_vm._v(\"Network IDTs\")])],1),_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"bg-dark card-header text-white\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col text-start\"},[_vm._v(\"Network IDTs\")]),_c('div',{staticClass:\"col\",staticStyle:{\"text-align\":\"right\"}},[_vm._v(\"Total: \"+_vm._s(_vm._f(\"currency\")(_vm.totalAmountCharged)))])])]),_c('div',{staticClass:\"card-body\"},[_c('transition',{attrs:{\"name\":\"fade\"}},[(_vm.alertMessage.message)?_c('AppNotification',{attrs:{\"type\":_vm.alertMessage.type}},[_vm._v(\" \"+_vm._s(_vm.alertMessage.message)+\" \")]):_vm._e()],1),_c('AppFormCardCollapsable',{staticClass:\"mb-3\",attrs:{\"display-footer\":true},on:{\"submit\":function($event){$event.preventDefault();return _vm.onFilterSubmit()}},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_vm._v(\"Filter\")]},proxy:true},{key:\"body\",fn:function(){return [_c('div',{staticClass:\"form-row\"},[_c('div',{staticClass:\"col-md-4 col-sm-6 form-group\"},[_c('label',[_vm._v(\"SL\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.filterOptions.sl),expression:\"filterOptions.sl\"}],staticClass:\"form-control\",attrs:{\"placeholder\":\"SL Number\"},domProps:{\"value\":(_vm.filterOptions.sl)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.filterOptions, \"sl\", $event.target.value)}}})]),_c('div',{staticClass:\"col-md-4 col-sm-6 form-group\"},[_c('label',[_vm._v(\"SA\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.filterOptions.sa),expression:\"filterOptions.sa\"}],staticClass:\"form-control\",attrs:{\"placeholder\":\"SA Number\"},domProps:{\"value\":(_vm.filterOptions.sa)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.filterOptions, \"sa\", $event.target.value)}}})]),_c('div',{staticClass:\"col-md-4 col-sm-6 form-group\"},[_c('label',[_vm._v(\"FAMIS Department Code\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.filterOptions.famisDepartment),expression:\"filterOptions.famisDepartment\"}],staticClass:\"form-control\",attrs:{\"placeholder\":\"FAMIS Department Code\"},domProps:{\"value\":(_vm.filterOptions.famisDepartment)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.filterOptions, \"famisDepartment\", $event.target.value)}}})])])]},proxy:true},{key:\"footer\",fn:function(){return [_c('button',{staticClass:\"btn btn-primary\",attrs:{\"type\":\"submit\"}},[_vm._v(\"Apply\")])]},proxy:true}])}),_c('div',{staticClass:\"d-print-none dropdown mb-3 text-right\"},[_c('button',{staticClass:\"btn btn-secondary dropdown-toggle\",staticStyle:{\"width\":\"100px\"},attrs:{\"aria-expanded\":\"false\",\"aria-haspopup\":\"true\",\"data-toggle\":\"dropdown\",\"type\":\"button\",\"disabled\":_vm.isPerformingAction}},[_c('span',[_vm._v(\"Actions\")])]),_c('div',{staticClass:\"dropdown-menu\"},[_c('RouterLink',{staticClass:\"btn btn-outline-light dropdown-item text-left\",attrs:{\"to\":{ name: 'AddNetworkIDT' },\"title\":\"Add New Record\"}},[_c('i',{staticClass:\"fa fa-plus\"}),_vm._v(\"Add Record \")]),_c('button',{staticClass:\"btn btn-outline-light dropdown-item text-left\",on:{\"click\":function($event){_vm.isAddModalVisible=true}}},[_c('i',{staticClass:\"fa fa-plus\"}),_vm._v(\" Add Network IDT Number \")]),_c('a',{staticClass:\"btn btn-outline-light dropdown-item text-left\",attrs:{\"href\":\"javascript:void(0)\",\"title\":\"Export missing and frozen network IDT account list to a CSV\"},on:{\"click\":function($event){$event.preventDefault();return _vm.downloadNetworkIDTFrozenAndMissingAccounts()}}},[_c('i',{staticClass:\"fa fa-file-excel\"}),_vm._v(\"Download Missing and Frozen Accounts .csv \")])],1)]),_c('BTable',{attrs:{\"busy\":_vm.isLoading,\"fields\":_vm.tableFields,\"items\":_vm.networkIDTs,\"responsive\":true,\"show-empty\":\"\",\"striped\":\"\",\"table-class\":\"table-align-middle\"},scopedSlots:_vm._u([{key:\"cell(null)\",fn:function(row){return [_c('div',{staticClass:\"btn-group\"},[_c('router-link',{staticClass:\"btn btn-sm btn-warning d-print-none\",attrs:{\"to\":{\n name: 'EditNetworkIDT',\n params: {\n sl: row.item.sl,\n sa: row.item.sa,\n famisDepartment: row.item.famisDepartment,\n amountCharged: row.item.amountCharged\n },\n },\"data-toggle\":\"tooltip\",\"title\":\"Edit Network IDT Details\"}},[_c('i',{staticClass:\"fa fa-pencil-alt\"}),_vm._v(\"Edit \")])],1)]}},{key:\"cell(amountCharged)\",fn:function(row){return [_vm._v(\" \"+_vm._s(_vm._f(\"currency\")(row.item.amountCharged))+\" \")]}},{key:\"cell(accountStatus)\",fn:function(row){return [_vm._v(\" \"+_vm._s(row.item.accountMissing ? 'Missing' : row.item.accountFrozen ? 'Frozen' : 'Active')+\" \")]}},{key:\"custom-foot\",fn:function(){return [_c('b-tr',[_c('b-td',{attrs:{\"colspan\":_vm.tableFields.length}},[_c('AppTablePagination',{attrs:{\"page\":_vm.filterOptions.page,\"pageSize\":_vm.filterOptions.pageSize,\"totalCount\":_vm.totalNetworkIDTs},on:{\"update:page\":[function($event){return _vm.$set(_vm.filterOptions, \"page\", $event)},function($event){return _vm.loadData()}],\"update:pageSize\":[function($event){return _vm.$set(_vm.filterOptions, \"pageSize\", $event)},function($event){return _vm.loadData()}],\"update:page-size\":function($event){return _vm.$set(_vm.filterOptions, \"pageSize\", $event)},\"update:totalCount\":function($event){_vm.totalNetworkIDTs=$event},\"update:total-count\":function($event){_vm.totalNetworkIDTs=$event}}})],1)],1)]},proxy:true}])}),_c('TheNetworkIDTNumberAddForm',{attrs:{\"visible\":_vm.isAddModalVisible},on:{\"close\":function($event){_vm.isAddModalVisible=false}}})],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { PagedData } from \"@/services/models/shared/PagedData\";\r\nimport { AxiosResponse } from \"axios\";\r\nimport {\r\n NetworkIDT,\r\n NetworkIDTFilterOptions,\r\n NetworkIDTListItem,\r\n NewNetworkIDT,\r\n UpdateNetworkIDT,\r\n} from \"@/services/models/NetworkIDT\";\r\nimport BimsHttpService from \"@/services/BimsHttpService\";\r\nimport FileProvider from \"@/utilities/providers/FileProvider\";\r\n\r\nclass NetworkIDTService {\r\n /**\r\n * @description Returns a paged list of network IDTs.\r\n */\r\n getNetworkIDTs(\r\n filter: NetworkIDTFilterOptions\r\n ): Promise
> {\r\n return BimsHttpService.get(`/networkIDTs`, {\r\n params: filter,\r\n }).then((response: AxiosResponse>) => {\r\n return response.data as PagedData;\r\n });\r\n }\r\n\r\n /**\r\n * @description Returns the network IDT with the specified SL, SA, and Famis Department\r\n */\r\n getNetworkIDT(\r\n sl: string,\r\n sa: string,\r\n famisDepartment: string\r\n ): Promise {\r\n return BimsHttpService.get(`/networkIDTs/specificNetworkIDT`, {\r\n params: { sl, sa, famisDepartment },\r\n }).then((response: AxiosResponse) => {\r\n return response.data as NetworkIDT;\r\n });\r\n }\r\n /**\r\n * @description Adds a new network IDT\r\n */\r\n addNetworkIDT(networkIDT: NewNetworkIDT): Promise {\r\n return BimsHttpService.post(`/networkIDTs`, networkIDT);\r\n }\r\n\r\n /**\r\n * @description Updates the network IDT\r\n */\r\n updateNetworkIDT(networkIDT: UpdateNetworkIDT): Promise {\r\n return BimsHttpService.put(`/networkIDTs`, networkIDT);\r\n }\r\n\r\n /**\r\n * @description Checks if any Network IDT Numbers exist and returns the list.\r\n */\r\n checkNetworkIDTNumbersExist(): Promise<{ exists: boolean; networkIDTNumbers: any[] }> {\r\n return BimsHttpService.get(`/networkIDTs/numbers/check`)\r\n .then((response: AxiosResponse<{ exists: boolean; networkIDTNumbers: any[] }>) => {\r\n return response.data;\r\n });\r\n }\r\n\r\n /**\r\n * @description Creates a new Network IDT Number.\r\n */\r\n createNetworkIDTNumber(idtNumber: string): Promise {\r\n return BimsHttpService.post(`/networkIDTs/numbers`, {\r\n IDTNumber: idtNumber,\r\n });\r\n }\r\n /**\r\n * @description Fetches the total amount charged from the backend.\r\n */\r\n getTotalAmountCharged(): Promise {\r\n return BimsHttpService.get(`/networkIDTs/totalAmountCharged`)\r\n .then((response: AxiosResponse) => {\r\n return response.data;\r\n });\r\n }\r\n\r\n /**\r\n * @description Downloads the CSV export for the base account listing\r\n */\r\n public downloadNetworkIDTFrozenAndMissingAccounts(): Promise {\r\n return BimsHttpService.get(`/networkIDTs/accounts/frozenAndMissing/report`).then(response => {\r\n return FileProvider.ForceFileDownload(response)\r\n })\r\n }\r\n}\r\n\r\nexport default new NetworkIDTService();\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.visible)?_c('AppModal',_vm._b({on:{\"close\":function($event){return _vm.onClose()}},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_vm._v(\"Add Network IDT Number\")]},proxy:true},{key:\"footer\",fn:function(){return [_c('button',{staticClass:\"btn btn-primary\",attrs:{\"disabled\":_vm.isSubmitting,\"type\":\"submit\"},on:{\"click\":function($event){$event.preventDefault();return _vm.onSubmit()}}},[_vm._v(\" Submit \")]),_c('button',{staticClass:\"btn btn-danger\",attrs:{\"disabled\":_vm.isSubmitting,\"type\":\"button\"},on:{\"click\":function($event){return _vm.onClose()}}},[_vm._v(\" Close \")])]},proxy:true}],null,false,865762942)},'AppModal',_vm.$attrs,false),[_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.onSubmit()}}},[(_vm.existingRecordWarning)?_c('b-alert',{attrs:{\"variant\":\"warning\",\"show\":\"\"}},[_vm._v(\" A Network IDT number already exists. Adding a new one will overwrite the existing number. \")]):_vm._e(),_c('div',{staticClass:\"form-group\"},[_c('label',{attrs:{\"for\":\"networkIDTNumber\"}},[_vm._v(\"Network IDT Number\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.networkIDTNumber),expression:\"networkIDTNumber\"}],staticClass:\"form-control\",class:{'is-invalid': _vm.$v.networkIDTNumber.$invalid && _vm.isValidating},attrs:{\"type\":\"number\"},domProps:{\"value\":(_vm.networkIDTNumber)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.networkIDTNumber=$event.target.value}}}),(!_vm.$v.networkIDTNumber.required && _vm.isValidating)?_c('span',{staticClass:\"invalid-feedback\"},[_vm._v(\" Field is required \")]):_vm._e()])],1)]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n Add Network IDT Number \r\n \r\n \r\n A Network IDT number already exists. Adding a new one will overwrite the existing number.\r\n \r\n\r\n \r\n Network IDT Number \r\n \r\n \r\n Field is required\r\n \r\n
\r\n \r\n\r\n \r\n \r\n Submit\r\n \r\n \r\n Close\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!./TheNetworkIDTNumberAddForm.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!./TheNetworkIDTNumberAddForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TheNetworkIDTNumberAddForm.vue?vue&type=template&id=42658b15&\"\nimport script from \"./TheNetworkIDTNumberAddForm.vue?vue&type=script&lang=js&\"\nexport * from \"./TheNetworkIDTNumberAddForm.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","export function currency(value: any) {\r\n if (typeof value !== \"number\") {\r\n return value;\r\n }\r\n const formatter = new Intl.NumberFormat('en-US', {\r\n style: 'currency',\r\n currency: 'USD',\r\n minimumFractionDigits: 2\r\n });\r\n return formatter.format(value);\r\n}\r\n","\r\n \r\n
\r\n \r\n \r\n Home\r\n \r\n Financial Services \r\n Network IDTs \r\n \r\n
\r\n
\r\n
\r\n
Network IDTs
\r\n
Total: {{ totalAmountCharged | currency }}
\r\n
\r\n
\r\n
\r\n
\r\n \r\n {{ alertMessage.message }}\r\n \r\n \r\n \r\n
\r\n Filter \r\n \r\n \r\n \r\n \r\n Apply \r\n \r\n \r\n\r\n
\r\n \r\n Actions \r\n \r\n \r\n
\r\n\r\n
\r\n \r\n \r\n \r\n Edit\r\n \r\n
\r\n \r\n\r\n \r\n {{ row.item.amountCharged | currency }}\r\n \r\n\r\n \r\n {{ row.item.accountMissing ? 'Missing' : row.item.accountFrozen ? 'Frozen' : 'Active' }}\r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \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!./TheNetworkIDTsList.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!./TheNetworkIDTsList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TheNetworkIDTsList.vue?vue&type=template&id=1907ae71&\"\nimport script from \"./TheNetworkIDTsList.vue?vue&type=script&lang=js&\"\nexport * from \"./TheNetworkIDTsList.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('b-breadcrumb',[_c('b-breadcrumb-item',{attrs:{\"to\":\"/\"}},[_c('i',{staticClass:\"fa fa-home\"}),_vm._v(\" Home \")]),_c('b-breadcrumb-item',{attrs:{\"to\":\"/FinancialServices/NetworkIDTs\"}},[_vm._v(\" Financial Services \")]),_c('b-breadcrumb-item',{attrs:{\"to\":\"/FinancialServices/NetworkIDTs\"}},[_vm._v(\" Network IDTs \")]),_c('b-breadcrumb-item',{attrs:{\"active\":\"\"}},[_vm._v(\"Add Network IDT\")])],1),_c('AppLoadingContainer',{attrs:{\"predicate\":!_vm.isLoaded}},[_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.onSubmit()}}},[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"bg-dark card-header text-white\"},[_vm._v(\"Add New Network IDT\")]),_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-4 col-sm-12 form-group\"},[_c('label',{attrs:{\"for\":\"sl\"}},[_vm._v(\"SL\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.networkIDT.sl),expression:\"networkIDT.sl\"}],staticClass:\"form-control\",attrs:{\"placeholder\":\"SL\"},domProps:{\"value\":(_vm.networkIDT.sl)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.networkIDT, \"sl\", $event.target.value)}}}),_c('transition',{attrs:{\"name\":\"fade\"}},[(_vm.$v.networkIDT.sl.$invalid && _vm.submissionAttempted)?_c('AppNotification',{attrs:{\"type\":\"danger\"}},[_vm._v(\" \"+_vm._s(\"SL must be 6 characters long\")+\" \")]):_vm._e()],1)],1),_c('div',{staticClass:\"col-md-4 col-sm-12 form-group\"},[_c('label',{attrs:{\"for\":\"sa\"}},[_vm._v(\"SA\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.networkIDT.sa),expression:\"networkIDT.sa\"}],staticClass:\"form-control\",attrs:{\"placeholder\":\"SA\"},domProps:{\"value\":(_vm.networkIDT.sa)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.networkIDT, \"sa\", $event.target.value)}}}),_c('transition',{attrs:{\"name\":\"fade\"}},[(_vm.$v.networkIDT.sa.$invalid && _vm.submissionAttempted)?_c('AppNotification',{attrs:{\"type\":\"danger\"}},[_vm._v(\" \"+_vm._s(\"SA must be 5 characters long\")+\" \")]):_vm._e()],1)],1),_c('div',{staticClass:\"col-md-4 col-sm-12 form-group\"},[_c('label',{attrs:{\"for\":\"famisDepartment\"}},[_vm._v(\"FAMIS Department\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.networkIDT.famisDepartment),expression:\"networkIDT.famisDepartment\"}],staticClass:\"form-control\",attrs:{\"placeholder\":\"FAMIS Department\"},domProps:{\"value\":(_vm.networkIDT.famisDepartment)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.networkIDT, \"famisDepartment\", $event.target.value)}}}),_c('transition',{attrs:{\"name\":\"fade\"}},[(_vm.$v.networkIDT.famisDepartment.$invalid && _vm.submissionAttempted)?_c('AppNotification',{attrs:{\"type\":\"danger\"}},[_vm._v(\" \"+_vm._s(\"Department must be 3 to 5 characters long\")+\" \")]):_vm._e()],1)],1),_c('div',{staticClass:\"col-md-4 col-sm-12 form-group\"},[_c('label',{attrs:{\"for\":\"amountCharged\"}},[_vm._v(\"Amount Charged\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.networkIDT.amountCharged),expression:\"networkIDT.amountCharged\"}],staticClass:\"form-control\",attrs:{\"type\":\"number\",\"min\":\"0.01\",\"placeholder\":\"Amount Charged\"},domProps:{\"value\":(_vm.networkIDT.amountCharged)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.networkIDT, \"amountCharged\", $event.target.value)}}}),_c('transition',{attrs:{\"name\":\"fade\"}},[(_vm.$v.networkIDT.amountCharged.$invalid && _vm.submissionAttempted)?_c('AppNotification',{attrs:{\"type\":\"danger\"}},[_vm._v(\" \"+_vm._s(\"Amount Charged must be left blank or given a number greater than 0\")+\" \")]):_vm._e()],1)],1)])]),_c('div',{staticClass:\"card-footer d-print-none text-right\"},[_c('button',{staticClass:\"btn btn-primary\",attrs:{\"disabled\":_vm.isSubmitting,\"type\":\"submit\"}},[_vm._v(\"Submit\")]),_c('RouterLink',{staticClass:\"btn btn-danger\",attrs:{\"to\":{ name: 'NetworkIDTs' }}},[_vm._v(\"Back\")])],1)])])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n
\r\n \r\n \r\n Home\r\n \r\n \r\n Financial Services\r\n \r\n \r\n Network IDTs\r\n \r\n Add Network IDT \r\n \r\n\r\n
\r\n \r\n \r\n
Add New Network IDT
\r\n
\r\n
\r\n
\r\n
SL \r\n
\r\n
\r\n \r\n {{ \"SL must be 6 characters long\" }}\r\n \r\n \r\n
\r\n\r\n
\r\n
SA \r\n
\r\n
\r\n \r\n {{ \"SA must be 5 characters long\" }}\r\n \r\n \r\n
\r\n\r\n
\r\n
FAMIS Department \r\n
\r\n
\r\n \r\n {{ \"Department must be 3 to 5 characters long\" }}\r\n \r\n \r\n
\r\n\r\n
\r\n
Amount Charged \r\n
\r\n
\r\n \r\n {{ \"Amount Charged must be left blank or given a number greater than 0\" }}\r\n \r\n \r\n
\r\n
\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!./TheNetworkIDTAddForm.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!./TheNetworkIDTAddForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TheNetworkIDTAddForm.vue?vue&type=template&id=b8af5194&\"\nimport script from \"./TheNetworkIDTAddForm.vue?vue&type=script&lang=js&\"\nexport * from \"./TheNetworkIDTAddForm.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('b-breadcrumb',[_c('b-breadcrumb-item',{attrs:{\"to\":\"/\"}},[_c('i',{staticClass:\"fa fa-home\"}),_vm._v(\" Home \")]),_c('b-breadcrumb-item',{attrs:{\"to\":\"/FinancialServices/NetworkIDTs\"}},[_vm._v(\"Financial Services\")]),_c('b-breadcrumb-item',{attrs:{\"to\":\"/FinancialServices/NetworkIDTs\"}},[_vm._v(\"Network IDTs\")]),_c('b-breadcrumb-item',{attrs:{\"active\":\"\"}},[_vm._v(\" \"+_vm._s(_vm.networkIDT.famisDepartment)+\" / \"+_vm._s(_vm.networkIDT.sl)+\" - \"+_vm._s(_vm.networkIDT.sa)+\" \")])],1),_c('AppLoadingContainer',{attrs:{\"predicate\":!_vm.isLoaded}},[_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.onSubmit()}}},[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"bg-dark card-header text-white\"},[_vm._v(\"Edit Network IDT\")]),_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-4 col-sm-12 form-group\"},[_c('label',{attrs:{\"for\":\"sl\"}},[_vm._v(\"SL\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.networkIDT.sl),expression:\"networkIDT.sl\"}],staticClass:\"form-control\",attrs:{\"disabled\":\"\"},domProps:{\"value\":(_vm.networkIDT.sl)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.networkIDT, \"sl\", $event.target.value)}}})]),_c('div',{staticClass:\"col-md-4 col-sm-12 form-group\"},[_c('label',{attrs:{\"for\":\"sa\"}},[_vm._v(\"SA\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.networkIDT.sa),expression:\"networkIDT.sa\"}],staticClass:\"form-control\",attrs:{\"disabled\":\"\"},domProps:{\"value\":(_vm.networkIDT.sa)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.networkIDT, \"sa\", $event.target.value)}}})]),_c('div',{staticClass:\"col-md-4 col-sm-12 form-group\"},[_c('label',{attrs:{\"for\":\"famisDepartment\"}},[_vm._v(\"FAMIS Department\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.networkIDT.famisDepartment),expression:\"networkIDT.famisDepartment\"}],staticClass:\"form-control\",attrs:{\"disabled\":\"\"},domProps:{\"value\":(_vm.networkIDT.famisDepartment)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.networkIDT, \"famisDepartment\", $event.target.value)}}})]),_c('div',{staticClass:\"col-md-4 col-sm-12 form-group\"},[_c('label',{attrs:{\"for\":\"amountCharged\"}},[_vm._v(\"Amount Charged\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.networkIDT.amountCharged),expression:\"networkIDT.amountCharged\"}],staticClass:\"form-control\",attrs:{\"type\":\"number\",\"min\":\"0.01\",\"placeholder\":\"Amount Charged\"},domProps:{\"value\":(_vm.networkIDT.amountCharged)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.networkIDT, \"amountCharged\", $event.target.value)}}}),_c('transition',{attrs:{\"name\":\"fade\"}},[(_vm.$v.networkIDT.amountCharged.$invalid && _vm.submissionAttempted)?_c('AppNotification',{attrs:{\"type\":\"danger\"}},[_vm._v(\" \"+_vm._s(\"Amount Charged must be left blank or given a number greater than 0\")+\" \")]):_vm._e()],1)],1)])]),_c('div',{staticClass:\"card-footer d-print-none text-right\"},[_c('button',{staticClass:\"btn btn-primary\",attrs:{\"disabled\":_vm.isSubmitting,\"type\":\"submit\"}},[_vm._v(\"Submit\")]),_c('RouterLink',{staticClass:\"btn btn-danger\",attrs:{\"to\":{ name: 'NetworkIDTs' }}},[_vm._v(\"Back\")])],1)])])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n
\r\n \r\n \r\n Home\r\n \r\n Financial Services \r\n Network IDTs \r\n \r\n {{ networkIDT.famisDepartment }} / {{ networkIDT.sl }} - {{ networkIDT.sa }}\r\n \r\n \r\n\r\n
\r\n \r\n \r\n
Edit Network IDT
\r\n
\r\n
\r\n
\r\n SL \r\n \r\n
\r\n
\r\n SA \r\n \r\n
\r\n
\r\n FAMIS Department \r\n \r\n
\r\n
\r\n
Amount Charged \r\n
\r\n
\r\n \r\n {{ \"Amount Charged must be left blank or given a number greater than 0\" }}\r\n \r\n \r\n
\r\n
\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!./TheNetworkIDTEditForm.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!./TheNetworkIDTEditForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TheNetworkIDTEditForm.vue?vue&type=template&id=09c06607&\"\nimport script from \"./TheNetworkIDTEditForm.vue?vue&type=script&lang=js&\"\nexport * from \"./TheNetworkIDTEditForm.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('b-breadcrumb',[_c('b-breadcrumb-item',{attrs:{\"to\":\"/\"}},[_c('i',{staticClass:\"fa fa-home\"}),_vm._v(\" Home \")]),_c('b-breadcrumb-item',{attrs:{\"to\":\"/HumanResources/VISAs\"}},[_vm._v(\"Human Resources\")]),_c('b-breadcrumb-item',{attrs:{\"active\":\"\"}},[_vm._v(\"VISAs\")])],1),_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"bg-dark card-header text-white\"},[_vm._v(\"VISAs\")]),_c('div',{staticClass:\"card-body\"},[_c('AppFormCardCollapsable',{staticClass:\"mb-3\",attrs:{\"display-footer\":true},on:{\"submit\":function($event){$event.preventDefault();return _vm.onFilterSubmit()}},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_vm._v(\"Filter\")]},proxy:true},{key:\"body\",fn:function(){return [_c('div',{staticClass:\"form-row\"},[_c('div',{staticClass:\"col-md-4 col-sm-6 form-group\"},[_c('label',[_vm._v(\"Name\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.filterOptions.name),expression:\"filterOptions.name\"}],staticClass:\"form-control\",attrs:{\"placeholder\":\"Name\"},domProps:{\"value\":(_vm.filterOptions.name)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.filterOptions, \"name\", $event.target.value)}}})]),_c('div',{staticClass:\"col-md-2 col-sm-6 form-group\"},[_c('label',[_vm._v(\"UIN\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.filterOptions.uin),expression:\"filterOptions.uin\"}],staticClass:\"form-control\",attrs:{\"placeholder\":\"UIN\"},domProps:{\"value\":(_vm.filterOptions.uin)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.filterOptions, \"uin\", $event.target.value)}}})]),_c('div',{staticClass:\"col-md-2 col-sm-6 form-group\"},[_c('label',[_vm._v(\"Supervisor Name\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.filterOptions.supervisorName),expression:\"filterOptions.supervisorName\"}],staticClass:\"form-control\",attrs:{\"placeholder\":\"Supervisor Name\"},domProps:{\"value\":(_vm.filterOptions.supervisorName)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.filterOptions, \"supervisorName\", $event.target.value)}}})]),_c('div',{staticClass:\"col-md-2 col-sm-6 form-group\"},[_c('label',[_vm._v(\"VISA Expiration Date\")]),_c('b-input-group',{staticClass:\"mb-3\"},[_c('b-form-input',{attrs:{\"type\":\"text\",\"placeholder\":\"MM/DD/YYYY\",\"disabled\":true},model:{value:(_vm.visaExpirationDate),callback:function ($$v) {_vm.visaExpirationDate=$$v},expression:\"visaExpirationDate\"}}),_c('b-input-group-append',[_c('b-form-datepicker',{attrs:{\"button-only\":\"\",\"right\":\"\",\"reset-button\":\"\",\"locale\":\"en-US\",\"aria-controls\":\"visaExpirationDate\"},on:{\"context\":function($event){return _vm.updateVisaExpirationDateFromButton()}},model:{value:(_vm.filterOptions.visaExpirationDate),callback:function ($$v) {_vm.$set(_vm.filterOptions, \"visaExpirationDate\", $$v)},expression:\"filterOptions.visaExpirationDate\"}})],1)],1)],1)]),(!_vm.readOnly)?_c('div',{staticClass:\"form-row\"},[_c('div',{staticClass:\"col-md-2 col-sm-6 form-group\"},[_c('label',[_vm._v(\"VISA Type\")]),_c('b-form-select',{attrs:{\"options\":_vm.visaTypes,\"multiple\":\"\",\"select-size\":4},model:{value:(_vm.filterOptions.visaTypes),callback:function ($$v) {_vm.$set(_vm.filterOptions, \"visaTypes\", $$v)},expression:\"filterOptions.visaTypes\"}})],1),_c('div',{staticClass:\"col-md-2 col-sm-6 form-group\"},[_c('AppCheckBox',{model:{value:(_vm.filterOptions.onlyHRProcessingVISA),callback:function ($$v) {_vm.$set(_vm.filterOptions, \"onlyHRProcessingVISA\", $$v)},expression:\"filterOptions.onlyHRProcessingVISA\"}},[_vm._v(\"Only Show Those Processing \")])],1),_c('div',{staticClass:\"col-md-2 col-sm-6 form-group\"},[_c('AppCheckBox',{on:{\"change\":function($event){return _vm.updateEmploymentStatus()}},model:{value:(_vm.filterOptions.onlyShowActive),callback:function ($$v) {_vm.$set(_vm.filterOptions, \"onlyShowActive\", $$v)},expression:\"filterOptions.onlyShowActive\"}},[_vm._v(\"Only Show Currently Employed \")])],1),_c('div',{staticClass:\"col-md-2 col-sm-6 form-group\"},[_c('AppCheckBox',{model:{value:(_vm.filterOptions.includeStudents),callback:function ($$v) {_vm.$set(_vm.filterOptions, \"includeStudents\", $$v)},expression:\"filterOptions.includeStudents\"}},[_vm._v(\"Include Students \")])],1),_c('div',{staticClass:\"col-md-2 col-sm-6 form-group\"},[_c('AppCheckBox',{model:{value:(_vm.filterOptions.excludeLawfulPermanentResidents),callback:function ($$v) {_vm.$set(_vm.filterOptions, \"excludeLawfulPermanentResidents\", $$v)},expression:\"filterOptions.excludeLawfulPermanentResidents\"}},[_vm._v(\"Exclude Lawful Permanent Residents \")])],1)]):_vm._e(),(!_vm.filterOptions.onlyShowActive)?_c('div',{staticClass:\"form-row\"},[_c('div',{staticClass:\"col-md-2\"},[_c('label',[_vm._v(\"Employement Status\")]),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.filterOptions.employmentStatus),expression:\"filterOptions.employmentStatus\"}],staticClass:\"form-control\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.filterOptions, \"employmentStatus\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option',{domProps:{\"value\":null}},[_vm._v(\"All\")]),_vm._l((_vm.employmentStatuses),function(status){return _c('option',{key:status.key,domProps:{\"value\":status.value}},[_vm._v(_vm._s(status.key))])})],2)])]):_vm._e()]},proxy:true},{key:\"footer\",fn:function(){return [_c('button',{staticClass:\"btn btn-primary\",attrs:{\"type\":\"submit\"}},[_vm._v(\"Apply\")])]},proxy:true}])}),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col d-print-none dropdown mb-3 text-right\"},[_c('button',{staticClass:\"btn btn-secondary dropdown-toggle\",staticStyle:{\"width\":\"100px\"},attrs:{\"disabled\":_vm.isPerformingAction,\"aria-expanded\":\"false\",\"aria-haspopup\":\"true\",\"data-toggle\":\"dropdown\",\"type\":\"button\"}},[_c('span',[_vm._v(\"Actions\")])]),_c('div',{staticClass:\"dropdown-menu\"},[_c('a',{staticClass:\"btn btn-outline-light dropdown-item text-left\",attrs:{\"href\":\"javascript:void(0)\",\"title\":\"Export VISA People List to a CSV\"},on:{\"click\":function($event){$event.preventDefault();return _vm.downloadCsvExport()}}},[_c('i',{staticClass:\"fa fa-file-excel\"}),_vm._v(\"Download .csv \")])])])]),_c('BTable',{attrs:{\"busy\":_vm.isLoading,\"fields\":_vm.tableFields,\"items\":_vm.visas,\"responsive\":true,\"primary-key\":\"id\",\"show-empty\":\"\",\"striped\":\"\",\"table-class\":\"table-align-middle\"},scopedSlots:_vm._u([{key:\"cell(id)\",fn:function(row){return [_c('router-link',{staticClass:\"btn btn-sm btn-warning d-print-none\",attrs:{\"to\":{\n name: 'VisaDetails',\n params: {\n id: row.item.id,\n personName: row.item.name,\n personUIN: row.item.uin,\n },\n },\"data-toggle\":\"tooltip\",\"title\":\"Edit person details\"}},[_c('i',{staticClass:\"fa fa-pencil-alt\"}),_vm._v(\"Edit \")])]}},{key:\"cell(visaType)\",fn:function(row){return [_c('span',[_vm._v(_vm._s(row.item.visaType || \"-\"))])]}},{key:\"cell(visaExpirationDate)\",fn:function(row){return [_c('span',[_vm._v(_vm._s(row.item.visaExpirationDate ? new Date(row.item.visaExpirationDate).toLocaleDateString() : \"-\"))])]}},{key:\"cell(h1BStartDate)\",fn:function(row){return [_c('span',[_vm._v(_vm._s(row.item.h1BStartDate ? new Date(row.item.h1BStartDate).toLocaleDateString() : \"-\"))])]}},{key:\"cell(hrProcessingVISA)\",fn:function(row){return [_c('AppDisplayTemplateBoolean',{attrs:{\"value\":row.item.hrProcessingVISA}})]}},{key:\"custom-foot\",fn:function(){return [_c('b-tr',[_c('b-td',{attrs:{\"colspan\":_vm.tableFields.length}},[_c('AppTablePagination',{attrs:{\"page\":_vm.filterOptions.page,\"pageSize\":_vm.filterOptions.pageSize,\"totalCount\":_vm.totalVisas},on:{\"update:page\":[function($event){return _vm.$set(_vm.filterOptions, \"page\", $event)},function($event){return _vm.loadData()}],\"update:pageSize\":[function($event){return _vm.$set(_vm.filterOptions, \"pageSize\", $event)},function($event){return _vm.loadData()}],\"update:page-size\":function($event){return _vm.$set(_vm.filterOptions, \"pageSize\", $event)},\"update:totalCount\":function($event){_vm.totalVisas=$event},\"update:total-count\":function($event){_vm.totalVisas=$event}}})],1)],1)]},proxy:true}])})],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import {PersonListItem} from \"@/services/models/Person\";\r\nimport {PersonVisaInformation, PersonVisaFilterOptions, NewPersonVisaNote, PersonVisaAttachment, PersonVisaNote} from \"@/services/models/PersonVisaInformation\";\r\nimport {PagedData} from \"@/services/models/shared/PagedData\";\r\nimport {AxiosResponse} from \"axios\";\r\nimport BimsHttpService from \"@/services/BimsHttpService\";\r\nimport FileProvider from \"@/utilities/providers/FileProvider\";\r\n\r\nclass PersonVisaService {\r\n /**\r\n * @description Returns a paged list of people with some VISA information\r\n */\r\n getPeopleVisaList(filter: PersonVisaFilterOptions): Promise> {\r\n return BimsHttpService.post(`/peoplevisas`, filter).then((response: AxiosResponse>) => {\r\n return response.data as PagedData;\r\n });\r\n }\r\n\r\n /**\r\n * @description Returns a paged list of people with some VISA information based on management's Id\r\n */\r\n getPeopleVisaListByManagmentId(managerPersonId: string, filter: PersonVisaFilterOptions): Promise> {\r\n return BimsHttpService.get(`/peoplevisas/employees/${managerPersonId}`, { params: filter }).then((response: AxiosResponse>) => {\r\n return response.data as PagedData;\r\n });\r\n }\r\n\r\n /**\r\n * @description Returns the person with the specified id\r\n */\r\n getPersonVisaInformation(id: string): Promise {\r\n return BimsHttpService.get(`/peoplevisas/${id}`).then((response: AxiosResponse) => {\r\n return response.data as PersonVisaInformation;\r\n });\r\n }\r\n\r\n /**\r\n * @description Returns a list of person VISA notes.\r\n */\r\n getPersonVisaNoteList(personId: string): Promise> {\r\n return BimsHttpService.get(`/peoplevisas/${personId}/Notes`).then((response: AxiosResponse>) => {\r\n return response.data as Array;\r\n });\r\n }\r\n\r\n /**\r\n * @description Returns a list of person VISA attachments.\r\n */\r\n getPersonVisaAttachmentList(personId: string): Promise> {\r\n return BimsHttpService.get(`/peoplevisas/${personId}/Attachments`).then((response: AxiosResponse>) => {\r\n return response.data as Array;\r\n });\r\n }\r\n\r\n /**\r\n * @description Adds new person visa note for the specified id\r\n */\r\n addPersonVisaNote(id: string, data: NewPersonVisaNote): Promise {\r\n return BimsHttpService.post(`/peoplevisas/${id}/notes`,\r\n data\r\n ).then(response => {\r\n return response.data\r\n });\r\n } \r\n\r\n /**\r\n * @description Adds new person visa attachment for the specified id\r\n */\r\n addPersonVisaAttachment(id: string, data: any): Promise {\r\n return BimsHttpService.put(`/peoplevisas/${id}/attachments`, data)\r\n } \r\n\r\n /**\r\n * @description Updates person visa information for the specified id\r\n */\r\n updatePersonVisaInformation(id: string, data: any): Promise {\r\n return BimsHttpService.put(`/peoplevisas/${id}`, data)\r\n } \r\n\r\n /**\r\n * @description Deletes the person visa note\r\n */\r\n deletePersonVisaNote(id: string): Promise {\r\n return BimsHttpService.delete(`/peoplevisas/notes/${id}`)\r\n }\r\n\r\n /**\r\n * @description Marks the person visa attachment as deleted\r\n */\r\n deletePersonVisaAttachment(id: string): Promise {\r\n return BimsHttpService.delete(`/peoplevisas/attachments/${id}`)\r\n }\r\n\r\n /**\r\n * @description Downloads the person visa attachment with specified id\r\n */\r\n downloadPersonVisaAttachment (id: string): Promise {\r\n return BimsHttpService.get(`/peoplevisas/Attachments/${id}`, { responseType: 'arraybuffer' })\r\n .then((response: AxiosResponse) => {\r\n const url = window.URL.createObjectURL(new Blob([response.data]));\r\n const link = document.createElement(\"a\");\r\n link.href = url;\r\n \r\n link.setAttribute(\"download\", (response.headers['content-disposition'].split('filename=')[1].split(';')[0]).replace(/['\"]+/g, ''));\r\n document.body.appendChild(link);\r\n link.click();\r\n \r\n // Remove the child after the doanload has completed\r\n document.body.removeChild(link);\r\n })\r\n .catch(error => {\r\n throw new TextDecoder('utf-8').decode(new Uint8Array(error.response.data)).replace(/['\"]+/g, '')\r\n });\r\n }\r\n\r\n /**\r\n * @description Downloads the CSV export for visa people list\r\n */\r\n public getExcelExport(\r\n filter: PersonVisaFilterOptions\r\n ): Promise {\r\n return BimsHttpService.post(\r\n `peoplevisas/export`, filter).then(response => {\r\n return FileProvider.ForceFileDownload(response)\r\n })\r\n }\r\n\r\n /**\r\n * @description Downloads the CSV export for visa people list by management id\r\n */\r\n public getExcelExportByManagmentId(\r\n managerPersonId: string,\r\n filter: PersonVisaFilterOptions\r\n ): Promise {\r\n return BimsHttpService.get(\r\n `peoplevisas/employees/${managerPersonId}/export`, {\r\n params: filter\r\n }).then(response => {\r\n return FileProvider.ForceFileDownload(response)\r\n })\r\n }\r\n}\r\n\r\nexport default new PersonVisaService()\r\n","\r\n \r\n
\r\n \r\n \r\n Home\r\n \r\n Human Resources \r\n VISAs \r\n \r\n\r\n
\r\n
VISAs
\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 Apply \r\n \r\n \r\n\r\n
\r\n
\r\n \r\n Actions \r\n \r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n \r\n Edit\r\n \r\n \r\n\r\n \r\n {{ row.item.visaType || \"-\" }} \r\n \r\n\r\n \r\n {{\r\n row.item.visaExpirationDate\r\n ? new Date(row.item.visaExpirationDate).toLocaleDateString()\r\n : \"-\"\r\n }} \r\n \r\n\r\n \r\n {{\r\n row.item.h1BStartDate\r\n ? new Date(row.item.h1BStartDate).toLocaleDateString()\r\n : \"-\"\r\n }} \r\n \r\n\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \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!./TheVisaList.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!./TheVisaList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TheVisaList.vue?vue&type=template&id=32caaab5&\"\nimport script from \"./TheVisaList.vue?vue&type=script&lang=js&\"\nexport * from \"./TheVisaList.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('b-breadcrumb',[_c('b-breadcrumb-item',{attrs:{\"to\":\"/\"}},[_c('i',{staticClass:\"fa fa-home\"}),_vm._v(\" Home \")]),_c('b-breadcrumb-item',{attrs:{\"to\":\"/HumanResources/VISAs\"}},[_vm._v(\"Human Resources\")]),_c('b-breadcrumb-item',{attrs:{\"to\":\"/HumanResources/VISAs\"}},[_vm._v(\"VISAs\")]),_c('b-breadcrumb-item',{attrs:{\"active\":\"\"}},[_vm._v(_vm._s(_vm.personName))])],1),_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"bg-dark card-header text-white\"},[_vm._v(\"Edit VISA Information\")]),_c('div',{staticClass:\"card-body\"},[_c('h4',[_vm._v(\"(\"+_vm._s(_vm.personUIN)+\") \"+_vm._s(_vm.personName))]),_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-header\"},[_c('ul',{staticClass:\"card-header-tabs nav nav-tabs\"},[_c('li',{staticClass:\"nav-item\"},[_c('a',{staticClass:\"active nav-link\",attrs:{\"data-toggle\":\"tab\",\"href\":\"#\"},on:{\"click\":function($event){_vm.currentTabComponent = 'TheVisaGeneralInfoForm'}}},[_vm._v(\"General\")])]),_c('li',{staticClass:\"nav-item\"},[_c('a',{staticClass:\"nav-link\",attrs:{\"data-toggle\":\"tab\",\"href\":\"#\"},on:{\"click\":function($event){_vm.currentTabComponent = 'TheVisaNotesList'}}},[_vm._v(\"Notes\")])]),_c('li',{staticClass:\"nav-item\"},[_c('a',{staticClass:\"nav-link\",attrs:{\"data-toggle\":\"tab\",\"href\":\"#\"},on:{\"click\":function($event){_vm.currentTabComponent = 'TheVisaAttachmentList'}}},[_vm._v(\"Attachments\")])])])]),_c('div',{attrs:{\"id\":\"tab-container\"}},[_c('keep-alive',[_c(_vm.currentTabComponent,{tag:\"component\",attrs:{\"id\":_vm.id}})],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('AppLoadingContainer',{attrs:{\"predicate\":!_vm.isLoaded}},[_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.onSubmit()}}},[_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-3 col-lg-4 form-group\"},[_c('label',{attrs:{\"for\":\"title\"}},[_vm._v(\"Title\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.visaInfo.titleDescription),expression:\"visaInfo.titleDescription\"}],staticClass:\"form-control\",attrs:{\"disabled\":\"\"},domProps:{\"value\":(_vm.visaInfo.titleDescription)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.visaInfo, \"titleDescription\", $event.target.value)}}})]),_c('div',{staticClass:\"col-md-3 col-lg-4 form-group\"},[_c('label',{attrs:{\"for\":\"emailAddress\"}},[_vm._v(\"Email Address\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.visaInfo.emailAddress),expression:\"visaInfo.emailAddress\"}],staticClass:\"form-control\",attrs:{\"disabled\":\"\"},domProps:{\"value\":(_vm.visaInfo.emailAddress)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.visaInfo, \"emailAddress\", $event.target.value)}}})]),_c('div',{staticClass:\"col-md-3 col-lg-4 form-group\"},[_c('label',{attrs:{\"for\":\"supervisor\"}},[_vm._v(\"Supervisor\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.visaInfo.supervisorName),expression:\"visaInfo.supervisorName\"}],staticClass:\"form-control\",attrs:{\"disabled\":\"\"},domProps:{\"value\":(_vm.visaInfo.supervisorName)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.visaInfo, \"supervisorName\", $event.target.value)}}})])]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-2 col-sm-6 form-group\"},[_c('label',{attrs:{\"for\":\"visaExpirationDate\"}},[_vm._v(\"VISA Expiration Date\")]),_c('input',{staticClass:\"form-control\",attrs:{\"disabled\":\"\"},domProps:{\"value\":_vm.formattedVisaExpirationDate}})]),_c('div',{staticClass:\"col-lg-2 col-sm-6 form-group\"},[_c('label',{attrs:{\"for\":\"visaType\"}},[_vm._v(\"VISA Type\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.visaInfo.visaType),expression:\"visaInfo.visaType\"}],staticClass:\"form-control\",attrs:{\"disabled\":\"\"},domProps:{\"value\":(_vm.visaInfo.visaType)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.visaInfo, \"visaType\", $event.target.value)}}})]),_c('div',{staticClass:\"col-lg-8 col-sm-12 form-group\"},[_c('label',{attrs:{\"for\":\"citizenship\"}},[_vm._v(\"Citizen Status\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.visaInfo.citizenship),expression:\"visaInfo.citizenship\"}],staticClass:\"form-control\",attrs:{\"disabled\":\"\"},domProps:{\"value\":(_vm.visaInfo.citizenship)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.visaInfo, \"citizenship\", $event.target.value)}}})])]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-6 col-lg-4 form-group\"},[_c('label',{attrs:{\"for\":\"employeeType\"}},[_vm._v(\"Employee Type\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.visaInfo.employeeType),expression:\"visaInfo.employeeType\"}],staticClass:\"form-control\",attrs:{\"disabled\":\"\"},domProps:{\"value\":(_vm.visaInfo.employeeType)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.visaInfo, \"employeeType\", $event.target.value)}}})]),_c('div',{staticClass:\"col-md-2 form-group\"},[_c('label',{attrs:{\"for\":\"isActive\"}},[_vm._v(\"Is Active\")]),_c('b-form-checkbox',{attrs:{\"disabled\":\"\"},model:{value:(_vm.visaInfo.isActive),callback:function ($$v) {_vm.$set(_vm.visaInfo, \"isActive\", $$v)},expression:\"visaInfo.isActive\"}})],1),_c('div',{staticClass:\"col-md-2 form-group\"},[_c('label',{attrs:{\"for\":\"isActive\"}},[_vm._v(\"HR Is Processing\")]),_c('b-form-checkbox',{model:{value:(_vm.visaInfo.hrProcessingVISA),callback:function ($$v) {_vm.$set(_vm.visaInfo, \"hrProcessingVISA\", $$v)},expression:\"visaInfo.hrProcessingVISA\"}})],1)]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-4 col-lg-4 form-group\"},[_c('label',{attrs:{\"for\":\"h1BStartDate\"}},[_vm._v(\"H-1B Start Date\")]),_c('b-input-group',{staticClass:\"mb-3\"},[_c('b-form-input',{attrs:{\"type\":\"text\",\"placeholder\":\"MM/DD/YYYY\",\"disabled\":true},model:{value:(_vm.h1BStartDate),callback:function ($$v) {_vm.h1BStartDate=$$v},expression:\"h1BStartDate\"}}),_c('b-input-group-append',[_c('b-form-datepicker',{attrs:{\"button-only\":\"\",\"right\":\"\",\"reset-button\":\"\",\"locale\":\"en-US\",\"aria-controls\":\"h1BStartDate\"},on:{\"context\":function($event){return _vm.updateH1BStartDateFromButton()}},model:{value:(_vm.visaInfo.h1BStartDate),callback:function ($$v) {_vm.$set(_vm.visaInfo, \"h1BStartDate\", $$v)},expression:\"visaInfo.h1BStartDate\"}})],1)],1)],1)])]),_c('div',{staticClass:\"card-footer d-print-none text-right\"},[_c('button',{staticClass:\"btn btn-primary\",attrs:{\"disabled\":_vm.isSubmitting,\"type\":\"submit\"}},[_vm._v(\"Save\")]),_c('RouterLink',{staticClass:\"btn btn-danger\",attrs:{\"to\":{ name: 'VISAs' }}},[_vm._v(\"Back\")])],1)])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n Employee Type \r\n \r\n
\r\n
\r\n Is Active \r\n \r\n
\r\n
\r\n HR Is Processing \r\n \r\n
\r\n
\r\n
\r\n
\r\n H-1B Start Date \r\n \r\n \r\n \r\n \r\n \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!./TheVisaGeneralInfoForm.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!./TheVisaGeneralInfoForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TheVisaGeneralInfoForm.vue?vue&type=template&id=6d00db1b&\"\nimport script from \"./TheVisaGeneralInfoForm.vue?vue&type=script&lang=js&\"\nexport * from \"./TheVisaGeneralInfoForm.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('AppLoadingContainer',{attrs:{\"predicate\":_vm.isLoading}},[_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"mb-2 text-right\"},[_c('button',{staticClass:\"btn btn-success d-print-none\",on:{\"click\":_vm.showAddNoteModal}},[_c('i',{staticClass:\"fa fa-plus\"}),_vm._v(\"Add Note\")])]),_c('BTable',{attrs:{\"busy\":_vm.isLoading,\"fields\":_vm.tableFields,\"items\":_vm.notes,\"responsive\":true,\"primary-key\":\"id\",\"show-empty\":\"\",\"striped\":\"\",\"table-class\":\"table-align-middle\"},scopedSlots:_vm._u([{key:\"cell(actions)\",fn:function(row){return [_c('button',{staticClass:\"btn btn-danger btn-sm d-print-none\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.onDeleteClick(row.item)}}},[_c('i',{staticClass:\"fa fa-trash\"}),_vm._v(\" Delete \")])]}},{key:\"cell(note)\",fn:function(row){return [_c('p',{staticStyle:{\"width\":\"550px\",\"word-wrap\":\"break-word\"}},[_vm._v(_vm._s(row.item.note))])]}},{key:\"cell(createdDate)\",fn:function(row){return [_c('span',[_vm._v(_vm._s(_vm._f(\"moment\")(row.item.createdDate,'MM/DD/YYYY')))])]}}])})],1),_c('AppModalConfirm',{attrs:{\"visible\":_vm.deletingRow},on:{\"close\":function($event){_vm.deletingRow=null},\"confirm\":function($event){return _vm.onDeleteConfirmed(_vm.deletingRow)}},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_vm._v(\"Confirm\")]},proxy:true}])},[(_vm.deletingRow)?_c('p',[_vm._v(\"Are you sure you want to delete the note?\")]):_vm._e()]),_c('b-modal',{ref:\"addNoteModal\",attrs:{\"header-class\":\"bg-maroon text-white\",\"id\":\"add-note-modal\",\"title\":\"Add Note\"},on:{\"ok\":_vm.onAddNote},scopedSlots:_vm._u([{key:\"modal-footer\",fn:function(ref){\nvar cancel = ref.cancel;\nreturn [_c('button',{staticClass:\"btn btn-primary\",attrs:{\"disabled\":_vm.isSubmitting,\"type\":\"submit\"},on:{\"click\":_vm.onAddNote}},[_vm._v(\"Save\")]),_c('button',{staticClass:\"btn btn-danger\",on:{\"click\":cancel}},[_vm._v(\"Close\")])]}}])},[_c('b-form',{on:{\"submit\":function($event){$event.stopPropagation();$event.preventDefault();return _vm.onAddNote($event)}}},[_c('b-form-group',{attrs:{\"label\":\"Note\"}},[_c('b-form-textarea',{attrs:{\"rows\":\"4\",\"required\":\"\"},model:{value:(_vm.newNote),callback:function ($$v) {_vm.newNote=$$v},expression:\"newNote\"}})],1)],1)],1),_c('div',{staticClass:\"card-footer d-print-none text-right\"},[_c('RouterLink',{staticClass:\"btn btn-danger\",attrs:{\"to\":{ name: 'VISAs' }}},[_vm._v(\"Back\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n \r\n
\r\n Add Note \r\n
\r\n
\r\n \r\n \r\n Delete\r\n \r\n \r\n \r\n {{ row.item.note }}
\r\n \r\n \r\n {{ row.item.createdDate | moment('MM/DD/YYYY') }} \r\n \r\n \r\n
\r\n\r\n \r\n Confirm \r\n Are you sure you want to delete the note?
\r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Save \r\n Close \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!./TheVisaNotesList.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!./TheVisaNotesList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TheVisaNotesList.vue?vue&type=template&id=09680f10&\"\nimport script from \"./TheVisaNotesList.vue?vue&type=script&lang=js&\"\nexport * from \"./TheVisaNotesList.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('AppLoadingContainer',{attrs:{\"predicate\":_vm.isLoading}},[_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"mb-2 text-right\"},[_c('button',{staticClass:\"btn btn-success d-print-none\",attrs:{\"disabled\":_vm.disableButtons},on:{\"click\":_vm.showAddAttachmentModal}},[_c('i',{staticClass:\"fa fa-plus\"}),_vm._v(\"Add Attachment\")])]),_c('BTable',{attrs:{\"busy\":_vm.isLoading,\"fields\":_vm.tableFields,\"items\":_vm.attachments,\"responsive\":true,\"primary-key\":\"id\",\"show-empty\":\"\",\"striped\":\"\",\"table-class\":\"table-align-middle\"},scopedSlots:_vm._u([{key:\"cell(actions)\",fn:function(row){return [_c('div',{staticClass:\"btn-group btn-group-sm\"},[_c('button',{staticClass:\"btn btn-primary btn-sm d-print-none\",attrs:{\"disabled\":_vm.disableButtons},on:{\"click\":function($event){return _vm.downloadAttachment(row.item.id)}}},[_c('i',{staticClass:\"fas fa-file-download\"})]),_c('button',{staticClass:\"btn btn-danger btn-sm d-print-none\",attrs:{\"type\":\"button\",\"disabled\":_vm.disableButtons},on:{\"click\":function($event){return _vm.onDeleteClick(row.item)}}},[_c('i',{staticClass:\"fa fa-trash\"})])])]}},{key:\"cell(createdDate)\",fn:function(row){return [_c('span',[_vm._v(_vm._s(_vm._f(\"moment\")(row.item.createdDate,'MM/DD/YYYY')))])]}}])})],1),_c('AppModalConfirm',{attrs:{\"visible\":_vm.deletingRow},on:{\"close\":function($event){_vm.deletingRow=null},\"confirm\":function($event){return _vm.onDeleteConfirmed(_vm.deletingRow)}},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_vm._v(\"Confirm\")]},proxy:true}])},[(_vm.deletingRow)?_c('p',[_vm._v(\"Are you sure you want to delete the attachment?\")]):_vm._e()]),_c('b-modal',{ref:\"addAttachmentModal\",attrs:{\"header-class\":\"bg-maroon text-white\",\"id\":\"add-attachment-modal\",\"title\":\"Add Attachment\"},on:{\"ok\":_vm.onAddAttachment},scopedSlots:_vm._u([{key:\"modal-footer\",fn:function(ref){\nvar cancel = ref.cancel;\nreturn [_c('button',{staticClass:\"btn btn-primary\",attrs:{\"disabled\":_vm.isSubmitting,\"type\":\"submit\"},on:{\"click\":_vm.onAddAttachment}},[_vm._v(\"Save\")]),_c('button',{staticClass:\"btn btn-danger\",on:{\"click\":cancel}},[_vm._v(\"Close\")])]}}])},[_c('b-form',{on:{\"submit\":function($event){$event.stopPropagation();$event.preventDefault();return _vm.onAddAttachment($event)}}},[_c('b-form-group',{attrs:{\"label\":\"Attachment\"}},[_c('b-form-file',{attrs:{\"state\":Boolean(_vm.newAttachment),\"placeholder\":\"Choose a file\"},model:{value:(_vm.newAttachment),callback:function ($$v) {_vm.newAttachment=$$v},expression:\"newAttachment\"}})],1)],1)],1),_c('div',{staticClass:\"card-footer d-print-none text-right\"},[_c('RouterLink',{staticClass:\"btn btn-danger\",attrs:{\"to\":{ name: 'VISAs' }}},[_vm._v(\"Back\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n \r\n
\r\n Add Attachment \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n {{ row.item.createdDate | moment('MM/DD/YYYY') }} \r\n \r\n \r\n
\r\n\r\n \r\n Confirm \r\n Are you sure you want to delete the attachment?
\r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Save \r\n Close \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!./TheVisaAttachmentList.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!./TheVisaAttachmentList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TheVisaAttachmentList.vue?vue&type=template&id=681ca19e&\"\nimport script from \"./TheVisaAttachmentList.vue?vue&type=script&lang=js&\"\nexport * from \"./TheVisaAttachmentList.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
\r\n \r\n \r\n Home\r\n \r\n Human Resources \r\n VISAs \r\n {{ personName }} \r\n \r\n\r\n
\r\n
Edit VISA Information
\r\n
\r\n
({{ personUIN }}) {{ personName }} \r\n
\r\n \r\n
\r\n \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!./TheVisaDetails.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!./TheVisaDetails.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TheVisaDetails.vue?vue&type=template&id=323262ee&\"\nimport script from \"./TheVisaDetails.vue?vue&type=script&lang=js&\"\nexport * from \"./TheVisaDetails.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('b-breadcrumb',[_c('b-breadcrumb-item',{attrs:{\"to\":\"/\"}},[_c('i',{staticClass:\"fa fa-home\"}),_vm._v(\" Home \")]),_c('b-breadcrumb-item',{attrs:{\"to\":\"/Oracle/Accounts\"}},[_vm._v(\"Oracle\")]),_c('b-breadcrumb-item',{attrs:{\"active\":\"\"}},[_vm._v(\"Roles\")])],1),_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"bg-dark card-header text-white\"},[_vm._v(\"Oracle Module Roles\")]),_c('div',{staticClass:\"card-body\"},[_c('AppFormCardCollapsable',{staticClass:\"mb-3\",attrs:{\"display-footer\":true},on:{\"submit\":function($event){$event.preventDefault();return _vm.onFilterSubmit($event)}},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_vm._v(\"Filter\")]},proxy:true},{key:\"body\",fn:function(){return [_c('div',{staticClass:\"form-row\"},[_c('div',{staticClass:\"col-md-4 col-sm-6 form-group\"},[_c('label',[_vm._v(\"Organization Code\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.filterOptions.organizationCode),expression:\"filterOptions.organizationCode\"}],staticClass:\"form-control\",attrs:{\"placeholder\":\"Organization Code\"},domProps:{\"value\":(_vm.filterOptions.organizationCode)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.filterOptions, \"organizationCode\", $event.target.value)}}})]),_c('div',{staticClass:\"col-md-4 col-sm-6 form-group\"},[_c('label',[_vm._v(\"Role Name\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.filterOptions.role),expression:\"filterOptions.role\"}],staticClass:\"form-control\",attrs:{\"placeholder\":\"Role Name\"},domProps:{\"value\":(_vm.filterOptions.role)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.filterOptions, \"role\", $event.target.value)}}})])])]},proxy:true},{key:\"footer\",fn:function(){return [_c('button',{staticClass:\"btn btn-primary\",attrs:{\"type\":\"submit\"}},[_vm._v(\"Apply\")])]},proxy:true}])}),_c('div',{staticClass:\"d-print-none dropdown mb-3 text-right\"},[_vm._m(0),_c('div',{staticClass:\"dropdown-menu\"},[_c('RouterLink',{staticClass:\"btn btn-outline-light dropdown-item text-left\",attrs:{\"to\":{name: 'AddOracleModuleRole'},\"title\":\"Add new module role\"}},[_c('i',{staticClass:\"fa fa-plus\"}),_vm._v(\"Add \")])],1)]),_c('BTable',{attrs:{\"busy\":_vm.isLoading,\"fields\":_vm.tableFields,\"items\":_vm.moduleRoles,\"responsive\":true,\"show-empty\":\"\",\"striped\":\"\",\"table-class\":\"table-align-middle\"},scopedSlots:_vm._u([{key:\"custom-foot\",fn:function(){return [_c('b-tr',[_c('b-td',{attrs:{\"colspan\":_vm.tableFields.length}},[_c('AppTablePagination',{attrs:{\"page\":_vm.filterOptions.page,\"pageSize\":_vm.filterOptions.pageSize,\"totalCount\":_vm.totalModuleRoles},on:{\"update:page\":[function($event){return _vm.$set(_vm.filterOptions, \"page\", $event)},function($event){return _vm.loadData()}],\"update:pageSize\":[function($event){return _vm.$set(_vm.filterOptions, \"pageSize\", $event)},function($event){return _vm.loadData()}],\"update:page-size\":function($event){return _vm.$set(_vm.filterOptions, \"pageSize\", $event)},\"update:totalCount\":function($event){_vm.totalModuleRoles=$event},\"update:total-count\":function($event){_vm.totalModuleRoles=$event}}})],1)],1)]},proxy:true}])})],1)])],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('button',{staticClass:\"btn btn-secondary dropdown-toggle\",staticStyle:{\"width\":\"100px\"},attrs:{\"aria-expanded\":\"false\",\"aria-haspopup\":\"true\",\"data-toggle\":\"dropdown\",\"type\":\"button\"}},[_c('span',[_vm._v(\"Actions\")])])}]\n\nexport { render, staticRenderFns }","import {PagedData} from \"@/services/models/shared/PagedData\";\r\nimport {AxiosResponse} from \"axios\"\r\nimport {\r\n NewOracleAccountModuleRole,\r\n NewOracleModuleRole,\r\n OracleAccount,\r\n OracleAccountFilterOptions,\r\n OracleAccountListItem,\r\n OracleModule,\r\n OracleModuleOrganizationRoleListItem,\r\n OracleModuleRole,\r\n OracleOrganizationRoleFilterOptions,\r\n UpdateOracleAccountModuleRole\r\n} from \"@/services/models/Oracle\";\r\nimport BimsHttpService from \"@/services/BimsHttpService\";\r\n\r\n\r\nclass OracleService {\r\n /**\r\n * @description Returns a paged list of organization roles.\r\n */\r\n getModuleOrganizationRoleList(filter: OracleOrganizationRoleFilterOptions): Promise> {\r\n return BimsHttpService.get(`/oracle/modules/OrganizationRoles`, {\r\n params: filter\r\n }).then((response: AxiosResponse>) => {\r\n return response.data as PagedData;\r\n });\r\n }\r\n\r\n /**\r\n * @description Retrieves all module organization roles\r\n */\r\n getAllModuleOrganizationRoles(): Promise {\r\n const vm = this;\r\n return vm.getModuleOrganizationRoleList({\r\n pageSize: 1\r\n } as OracleOrganizationRoleFilterOptions)\r\n .then((response) => {\r\n return vm.getModuleOrganizationRoleList({\r\n pageSize: response.totalCount,\r\n page: 1\r\n } as OracleOrganizationRoleFilterOptions)\r\n .then((responses) => {\r\n return responses.data;\r\n })\r\n })\r\n }\r\n\r\n /**\r\n * @description Retrieves all module roles for the given module id\r\n */\r\n getModuleRoles(moduleRoleId: number): Promise {\r\n return BimsHttpService.get(`/oracle/modules/${moduleRoleId}/roles`,).then((response: AxiosResponse) => {\r\n return response.data;\r\n });\r\n }\r\n\r\n /**\r\n * @description Adds a new module role\r\n */\r\n addModuleRole(moduleRole: NewOracleModuleRole): Promise {\r\n return BimsHttpService.post(`/oracle/modules/OrganizationRoles`,\r\n moduleRole\r\n );\r\n }\r\n\r\n /**\r\n * @description Returns a paged list of oracle accounts.\r\n */\r\n getOracleAccountList(filter: OracleAccountFilterOptions): Promise> {\r\n return BimsHttpService.get(`/oracle/accounts`, {\r\n params: filter\r\n }).then((response: AxiosResponse>) => {\r\n return response.data as PagedData;\r\n });\r\n }\r\n\r\n /**\r\n * @description Returns the oracle account with the specified id\r\n */\r\n getOracleAccount(id: number): Promise {\r\n return BimsHttpService.get(`/oracle/accounts/${id}`).then((response: AxiosResponse) => {\r\n return response.data as OracleAccount;\r\n });\r\n }\r\n\r\n /**\r\n * @description Creates the oracle account module role\r\n */\r\n addAccountModuleRole(accountId: number, moduleRole: NewOracleAccountModuleRole): Promise {\r\n return BimsHttpService.post(`/oracle/accounts/${accountId}/moduleRoles/`,\r\n moduleRole\r\n );\r\n }\r\n\r\n /**\r\n * @description Updates the oracle account module role\r\n */\r\n updateAccountModuleRole(accountId: number, moduleRole: UpdateOracleAccountModuleRole): Promise {\r\n return BimsHttpService.put(`/oracle/accounts/${accountId}/moduleRoles/${moduleRole.moduleRoleId}`,\r\n moduleRole\r\n , {\r\n params: {\r\n organizationRoleName: moduleRole.organizationRoleName,\r\n }\r\n });\r\n }\r\n\r\n /**\r\n * @description Deletes the oracle account module role\r\n */\r\n deleteAccountModuleRole(accountId: number, moduleRoleId: number, organizationRoleName: string): Promise {\r\n return BimsHttpService.delete(`/oracle/accounts/${accountId}/moduleRoles/${moduleRoleId}`, {\r\n params: {\r\n organizationRoleName\r\n }\r\n });\r\n }\r\n\r\n /**\r\n * @description Retrieves all oracle modules\r\n */\r\n getAllModules(): Promise {\r\n return BimsHttpService.get(`/oracle/modules`).then((response: AxiosResponse) => {\r\n return response.data as OracleModule[];\r\n });\r\n }\r\n}\r\n\r\nexport default new OracleService()\r\n","\r\n \r\n
\r\n \r\n \r\n Home\r\n \r\n Oracle \r\n Roles \r\n \r\n\r\n
\r\n
Oracle Module Roles
\r\n
\r\n \r\n
\r\n Filter \r\n \r\n \r\n \r\n \r\n Apply \r\n \r\n \r\n\r\n
\r\n \r\n Actions \r\n \r\n \r\n
\r\n\r\n
\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \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!./TheOracleModuleRoleList.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!./TheOracleModuleRoleList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TheOracleModuleRoleList.vue?vue&type=template&id=b85a976c&\"\nimport script from \"./TheOracleModuleRoleList.vue?vue&type=script&lang=js&\"\nexport * from \"./TheOracleModuleRoleList.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('b-breadcrumb',[_c('b-breadcrumb-item',{attrs:{\"to\":\"/\"}},[_c('i',{staticClass:\"fa fa-home\"}),_vm._v(\" Home \")]),_c('b-breadcrumb-item',{attrs:{\"to\":\"/Oracle/Accounts\"}},[_vm._v(\"Oracle\")]),_c('b-breadcrumb-item',{attrs:{\"to\":\"/Oracle/ModuleRoles\"}},[_vm._v(\"Roles\")]),_c('b-breadcrumb-item',{attrs:{\"active\":\"\"}},[_vm._v(\"Add\")])],1),_c('AppLoadingContainer',{attrs:{\"predicate\":!_vm.isLoaded}},[_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.onSubmit($event)}}},[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"bg-dark card-header text-white\"},[_vm._v(\"Create New Oracle Module Role\")]),_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-6 col-sm-12 form-group\"},[_c('label',{attrs:{\"for\":\"Role\"}},[_vm._v(\"Role Name\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.moduleRole.role),expression:\"moduleRole.role\"}],staticClass:\"form-control\",class:{'is-invalid': !_vm.$v.moduleRole.role.required},attrs:{\"autocomplete\":\"off\",\"placeholder\":\"Role Name\"},domProps:{\"value\":(_vm.moduleRole.role)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.moduleRole, \"role\", $event.target.value)}}}),(!_vm.$v.moduleRole.role.required)?_c('span',{staticClass:\"invalid-feedback\"},[_vm._v(\"Field is required\")]):_vm._e()]),_c('div',{staticClass:\"col-md-6 form-group\"},[_c('label',{attrs:{\"for\":\"OrganizationId\"}},[_vm._v(\"Organization\")]),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.moduleRole.organizationId),expression:\"moduleRole.organizationId\"}],staticClass:\"form-control\",class:{'is-invalid': _vm.$v.moduleRole.organizationId.$invalid},on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.moduleRole, \"organizationId\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option',{attrs:{\"disabled\":\"\"},domProps:{\"value\":null}},[_vm._v(\"-- Select Organization --\")]),_vm._l((_vm.organizationList),function(org){return _c('option',{key:org.id,domProps:{\"value\":org.id}},[_vm._v(\" \"+_vm._s(org.code+\"-\"+org.name)+\" \")])})],2),(!_vm.$v.moduleRole.organizationId.required)?_c('span',{staticClass:\"invalid-feedback\"},[_vm._v(\"Field is required\")]):_vm._e()])])]),_c('div',{staticClass:\"card-footer d-print-none text-right\"},[_c('button',{staticClass:\"btn btn-primary\",attrs:{\"disabled\":_vm.isSubmitting,\"type\":\"submit\"}},[_vm._v(\"Save\")]),_c('RouterLink',{staticClass:\"btn btn-danger\",attrs:{\"to\":{name:'OracleModuleRoles'}}},[_vm._v(\"Back\")])],1)])])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n\r\n
\r\n \r\n \r\n Home\r\n \r\n Oracle \r\n Roles \r\n Add \r\n \r\n\r\n
\r\n \r\n \r\n
Create New Oracle Module Role
\r\n
\r\n
\r\n
\r\n Role Name \r\n \r\n Field is required \r\n
\r\n
\r\n Organization \r\n \r\n -- Select Organization -- \r\n \r\n {{org.code+\"-\"+org.name}}\r\n \r\n \r\n Field is required \r\n
\r\n
\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!./TheOracleModuleRoleAddForm.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!./TheOracleModuleRoleAddForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TheOracleModuleRoleAddForm.vue?vue&type=template&id=d9053faa&\"\nimport script from \"./TheOracleModuleRoleAddForm.vue?vue&type=script&lang=js&\"\nexport * from \"./TheOracleModuleRoleAddForm.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('b-breadcrumb',[_c('b-breadcrumb-item',{attrs:{\"to\":\"/\"}},[_c('i',{staticClass:\"fa fa-home\"}),_vm._v(\" Home \")]),_c('b-breadcrumb-item',{attrs:{\"to\":\"/Oracle/Accounts\"}},[_vm._v(\"Oracle\")]),_c('b-breadcrumb-item',{attrs:{\"active\":\"\"}},[_vm._v(\"Accounts\")])],1),_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"bg-dark card-header text-white\"},[_vm._v(\"Oracle Accounts\")]),_c('div',{staticClass:\"card-body\"},[_c('AppFormCardCollapsable',{staticClass:\"mb-3\",attrs:{\"display-footer\":true},on:{\"submit\":function($event){$event.preventDefault();return _vm.onFilterSubmit($event)}},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_vm._v(\"Filter\")]},proxy:true},{key:\"body\",fn:function(){return [_c('div',{staticClass:\"form-row\"},[_c('div',{staticClass:\"col-md-4 col-sm-6 form-group\"},[_c('label',[_vm._v(\"Account Name\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.filterOptions.userName),expression:\"filterOptions.userName\"}],staticClass:\"form-control\",attrs:{\"placeholder\":\"Account Username\"},domProps:{\"value\":(_vm.filterOptions.userName)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.filterOptions, \"userName\", $event.target.value)}}})]),_c('div',{staticClass:\"col-md-4 col-sm-6 form-group\"},[_c('label',[_vm._v(\"Person Name\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.filterOptions.personName),expression:\"filterOptions.personName\"}],staticClass:\"form-control\",attrs:{\"placeholder\":\"Person Name\"},domProps:{\"value\":(_vm.filterOptions.personName)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.filterOptions, \"personName\", $event.target.value)}}})]),_c('div',{staticClass:\"col-md-4 col-sm-6 form-group\"},[_c('label',[_vm._v(\"Module Access\")]),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.filterOptions.moduleId),expression:\"filterOptions.moduleId\"}],staticClass:\"form-control\",on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.filterOptions, \"moduleId\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option',{domProps:{\"value\":null}},[_vm._v(\"-- Filter By Module Access --\")]),_vm._l((_vm.moduleList),function(module){return _c('option',{key:module.id,domProps:{\"value\":module.id}},[_vm._v(\" \"+_vm._s(module.name)+\" \")])})],2)])]),_c('div',{staticClass:\"form-row\"},[_c('div',{staticClass:\"col-md-4 col-sm-6 form-group\"},[_c('AppCheckBox',{model:{value:(_vm.filterOptions.onlyShowActiveAccounts),callback:function ($$v) {_vm.$set(_vm.filterOptions, \"onlyShowActiveAccounts\", $$v)},expression:\"filterOptions.onlyShowActiveAccounts\"}},[_vm._v(\"Only Show Active Accounts \")])],1)])]},proxy:true},{key:\"footer\",fn:function(){return [_c('button',{staticClass:\"btn btn-primary\",attrs:{\"type\":\"submit\"}},[_vm._v(\"Apply\")])]},proxy:true}])}),_c('BTable',{attrs:{\"busy\":_vm.isLoading,\"fields\":_vm.tableFields,\"items\":_vm.accounts,\"responsive\":true,\"show-empty\":\"\",\"striped\":\"\",\"table-class\":\"table-align-middle\"},scopedSlots:_vm._u([{key:\"cell(id)\",fn:function(row){return [_c('router-link',{staticClass:\"btn btn-sm btn-warning d-print-none\",attrs:{\"to\":{name:'OracleAccountDetails',params:{id:row.item.id,accountName:row.item.userName}},\"data-toggle\":\"tooltip\",\"title\":\"Edit account details\"}},[_c('i',{staticClass:\"fa fa-pencil-alt\"}),_vm._v(\"Edit \")])]}},{key:\"cell(expirationDate)\",fn:function(row){return [_c('span',[_vm._v(_vm._s(_vm._f(\"moment\")(row.item.expirationDate,'MM/DD/YYYY')))])]}},{key:\"custom-foot\",fn:function(){return [_c('b-tr',[_c('b-td',{attrs:{\"colspan\":_vm.tableFields.length}},[_c('AppTablePagination',{attrs:{\"page\":_vm.filterOptions.page,\"pageSize\":_vm.filterOptions.pageSize,\"totalCount\":_vm.totalAccounts},on:{\"update:page\":[function($event){return _vm.$set(_vm.filterOptions, \"page\", $event)},function($event){return _vm.loadData()}],\"update:pageSize\":[function($event){return _vm.$set(_vm.filterOptions, \"pageSize\", $event)},function($event){return _vm.loadData()}],\"update:page-size\":function($event){return _vm.$set(_vm.filterOptions, \"pageSize\", $event)},\"update:totalCount\":function($event){_vm.totalAccounts=$event},\"update:total-count\":function($event){_vm.totalAccounts=$event}}})],1)],1)]},proxy:true}])})],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n\r\n
\r\n \r\n \r\n Home\r\n \r\n Oracle \r\n Accounts \r\n \r\n\r\n
\r\n
Oracle Accounts
\r\n
\r\n \r\n
\r\n Filter \r\n \r\n \r\n \r\n \r\n \r\n Apply \r\n \r\n \r\n\r\n
\r\n\r\n \r\n \r\n Edit\r\n \r\n \r\n\r\n \r\n {{row.item.expirationDate | moment('MM/DD/YYYY')}} \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \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!./TheOracleAccountList.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!./TheOracleAccountList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TheOracleAccountList.vue?vue&type=template&id=4171af25&\"\nimport script from \"./TheOracleAccountList.vue?vue&type=script&lang=js&\"\nexport * from \"./TheOracleAccountList.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('b-breadcrumb',[_c('b-breadcrumb-item',{attrs:{\"to\":\"/\"}},[_c('i',{staticClass:\"fa fa-home\"}),_vm._v(\" Home \")]),_c('b-breadcrumb-item',{attrs:{\"to\":\"/Oracle/Accounts\"}},[_vm._v(\"Oracle\")]),_c('b-breadcrumb-item',{attrs:{\"to\":\"/Oracle/Accounts\"}},[_vm._v(\"Accounts\")]),_c('b-breadcrumb-item',{attrs:{\"active\":\"\"}},[_vm._v(_vm._s(_vm.accountName))])],1),_c('AppLoadingContainer',{attrs:{\"predicate\":!_vm.isLoaded}},[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"bg-dark card-header text-white\"},[_vm._v(\"Edit Account Roles\")]),_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"mb-2 text-right\"},[_c('button',{staticClass:\"btn btn-primary d-print-none\",attrs:{\"data-toggle\":\"modal\"},on:{\"click\":function($event){_vm.isModalVisible=true}}},[_c('i',{staticClass:\"fa fa-plus\"}),_vm._v(\"Add Role \")])]),_c('TheOracleAccountModuleRoleForm',{attrs:{\"account-id\":_vm.id,\"visible\":_vm.isModalVisible},on:{\"close\":function($event){_vm.isModalVisible=false},\"create\":function($event){return _vm.onCreate()}}}),_c('div',{staticClass:\"table-responsive\"},[_c('table',{staticClass:\"table table-striped\"},[_c('thead',[_c('tr',[_c('th',{staticStyle:{\"width\":\"100px\"}}),_c('th',[_vm._v(\"Module\")]),_c('th',[_vm._v(\"Function Role\")]),_c('th',[_vm._v(\"Organization Role\")]),_c('th',{staticClass:\"text-center\"},[_vm._v(\"Grant MyStuff Access\")])])]),_c('tbody',_vm._l((_vm.account.moduleRoles),function(role,index){return _c('OracleAccountModuleRoleRow',{key:index,attrs:{\"module-role\":role},on:{\"delete\":_vm.onDeleteClick}})}),1)])])],1)]),_c('div',{staticClass:\"card-footer d-print-none text-right\"},[_c('RouterLink',{staticClass:\"btn btn-danger\",attrs:{\"to\":{name:'OracleAccounts'}}},[_vm._v(\"Back\")])],1),_c('AppModalConfirm',{attrs:{\"visible\":_vm.deletingRow},on:{\"close\":function($event){_vm.deletingRow=null},\"confirm\":function($event){return _vm.onDeleteConfirmed(_vm.deletingRow)}},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_vm._v(\"Confirm\")]},proxy:true}])},[(_vm.deletingRow)?_c('p',[_vm._v(\"Are you sure you want to delete the role '\"+_vm._s(_vm.deletingRow.moduleRoleName)+\"'?\")]):_vm._e()])],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('tr',{class:{'disabled':_vm.isSubmitting}},[_c('td',[_c('button',{staticClass:\"btn btn-sm btn-danger\",attrs:{\"disabled\":_vm.isSubmitting},on:{\"click\":_vm.onDelete}},[_c('i',{staticClass:\"fa fa-trash\"}),_vm._v(\"Delete \")])]),_c('td',[_vm._v(_vm._s(_vm.moduleRole.moduleName))]),_c('td',[_vm._v(_vm._s(_vm.moduleRole.moduleRoleName))]),_c('td',[_vm._v(_vm._s(_vm.moduleRole.organizationRoleName))]),_c('td',{staticClass:\"text-center\"},[_c('AppCheckBox',{attrs:{\"disabled\":_vm.isSubmitting},on:{\"click\":_vm.onUpdate},model:{value:(_vm.moduleRole.grantMyStuffAccess),callback:function ($$v) {_vm.$set(_vm.moduleRole, \"grantMyStuffAccess\", $$v)},expression:\"moduleRole.grantMyStuffAccess\"}})],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n \r\n Delete\r\n \r\n \r\n {{moduleRole.moduleName}} \r\n {{moduleRole.moduleRoleName}} \r\n {{moduleRole.organizationRoleName}} \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!./OracleAccountModuleRoleRow.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!./OracleAccountModuleRoleRow.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./OracleAccountModuleRoleRow.vue?vue&type=template&id=11cfc47c&\"\nimport script from \"./OracleAccountModuleRoleRow.vue?vue&type=script&lang=js&\"\nexport * from \"./OracleAccountModuleRoleRow.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 (_vm.visible)?_c('AppModal',_vm._b({on:{\"close\":function($event){return _vm.onClose()}},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_vm._v(\"Add Oracle Application Role\")]},proxy:true},{key:\"footer\",fn:function(){return [_c('button',{staticClass:\"btn btn-primary\",attrs:{\"disabled\":_vm.isSubmitting,\"type\":\"submit\"},on:{\"click\":function($event){$event.preventDefault();return _vm.onSubmit()}}},[_vm._v(\"Save \")]),_c('button',{staticClass:\"btn btn-danger\",attrs:{\"disabled\":_vm.isSubmitting,\"data-dismiss\":\"modal\",\"type\":\"button\"},on:{\"click\":function($event){return _vm.onClose()}}},[_vm._v(\" Close \")])]},proxy:true}],null,false,3211848717)},'AppModal',_vm.$attrs,false),[_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.onSubmit()}}},[_c('transition',{attrs:{\"name\":\"fade\"}},[(_vm.alertMessage.message)?_c('AppNotification',{attrs:{\"type\":_vm.alertMessage.type}},[_vm._v(\" \"+_vm._s(_vm.alertMessage.message)+\" \")]):_vm._e()],1),_c('div',{staticClass:\"form-group\"},[_c('label',{attrs:{\"for\":\"moduleId\"}},[_vm._v(\"Module\")]),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.moduleId),expression:\"moduleId\"}],staticClass:\"form-control\",class:{'is-invalid': _vm.$v.moduleId.$invalid},on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.moduleId=$event.target.multiple ? $$selectedVal : $$selectedVal[0]},_vm.onModuleIdChange]}},[_c('option',{attrs:{\"disabled\":\"\"},domProps:{\"value\":null}},[_vm._v(\"--Select Module--\")]),_vm._l((_vm.modules),function(module){return _c('option',{key:module.id,domProps:{\"value\":module.id}},[_vm._v(_vm._s(module.name))])})],2),(!_vm.$v.moduleId.required)?_c('span',{staticClass:\"invalid-feedback\"},[_vm._v(\"Field is required\")]):_vm._e()]),_c('div',{staticClass:\"form-group\"},[_c('label',{attrs:{\"for\":\"moduleRoleId\"}},[_vm._v(\"Function Role\")]),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.moduleRoleId),expression:\"moduleRoleId\"}],staticClass:\"form-control\",class:{'is-invalid': _vm.$v.moduleRoleId.$invalid},on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.moduleRoleId=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},[_c('option',{attrs:{\"disabled\":\"\"},domProps:{\"value\":null}},[_vm._v(\"--Select Function Role--\")]),_vm._l((_vm.moduleRoles),function(moduleRole){return _c('option',{key:moduleRole.id,domProps:{\"value\":moduleRole.id}},[_vm._v(\" \"+_vm._s(moduleRole.name)+\" \")])})],2),(!_vm.$v.moduleRoleId.required)?_c('span',{staticClass:\"invalid-feedback\"},[_vm._v(\"Field is required\")]):_vm._e()]),_c('div',{staticClass:\"form-group\"},[_c('label',{attrs:{\"for\":\"moduleRoleId\"}},[_vm._v(\"Organization Role\")]),_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.organizationModuleRoleName),expression:\"organizationModuleRoleName\"}],staticClass:\"form-control\",class:{'is-invalid': _vm.$v.organizationModuleRoleName.$invalid},on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.organizationModuleRoleName=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},[_c('option',{attrs:{\"disabled\":\"\"},domProps:{\"value\":null}},[_vm._v(\"--Select Role--\")]),_vm._l((_vm.organizationModuleRoles),function(organizationModuleRole){return _c('option',{key:organizationModuleRole,domProps:{\"value\":organizationModuleRole}},[_vm._v(_vm._s(organizationModuleRole)+\" \")])})],2),(!_vm.$v.organizationModuleRoleName.required)?_c('span',{staticClass:\"invalid-feedback\"},[_vm._v(\"Field is required\")]):_vm._e()]),_c('div',{staticClass:\"form-group\"},[_c('AppCheckBox',{model:{value:(_vm.grantMyStuffAccess),callback:function ($$v) {_vm.grantMyStuffAccess=$$v},expression:\"grantMyStuffAccess\"}},[_vm._v(\"Grant MyStuff Access \")])],1)],1)]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n Add Oracle Application Role \r\n \r\n \r\n \r\n {{alertMessage.message}}\r\n \r\n \r\n \r\n Module \r\n \r\n --Select Module-- \r\n {{module.name}} \r\n \r\n Field is required \r\n
\r\n \r\n Function Role \r\n \r\n --Select Function Role-- \r\n \r\n {{moduleRole.name}}\r\n \r\n \r\n Field is required \r\n
\r\n \r\n Organization Role \r\n \r\n --Select Role-- \r\n {{organizationModuleRole}}\r\n \r\n \r\n Field is required \r\n
\r\n \r\n \r\n \r\n Save\r\n \r\n \r\n Close\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!./TheOracleAccountModuleRoleForm.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!./TheOracleAccountModuleRoleForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TheOracleAccountModuleRoleForm.vue?vue&type=template&id=689c20e4&\"\nimport script from \"./TheOracleAccountModuleRoleForm.vue?vue&type=script&lang=js&\"\nexport * from \"./TheOracleAccountModuleRoleForm.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\r\n
\r\n \r\n \r\n Home\r\n \r\n Oracle \r\n Accounts \r\n {{accountName}} \r\n \r\n\r\n
\r\n \r\n
Edit Account Roles
\r\n
\r\n\r\n
\r\n Add Role\r\n \r\n
\r\n\r\n
\r\n\r\n
\r\n
\r\n \r\n \r\n \r\n Module \r\n Function Role \r\n Organization Role \r\n Grant MyStuff Access \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n\r\n \r\n Confirm \r\n Are you sure you want to delete the role '{{deletingRow.moduleRoleName}}'?
\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!./TheOracleAccountDetails.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!./TheOracleAccountDetails.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TheOracleAccountDetails.vue?vue&type=template&id=a13f24fc&\"\nimport script from \"./TheOracleAccountDetails.vue?vue&type=script&lang=js&\"\nexport * from \"./TheOracleAccountDetails.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('h1',{staticClass:\"text-danger\"},[_vm._v(\"Error.\")]),_c('h2',{staticClass:\"text-danger\"},[_vm._v(\"An error occurred while processing your request.\")]),(_vm.errorMessage)?_c('p',[_vm._v(\" \"+_vm._s(_vm.errorMessage)+\" \")]):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n
Error. \r\n
An error occurred while processing your request. \r\n\r\n
\r\n {{errorMessage}}\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!./Error.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!./Error.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Error.vue?vue&type=template&id=513c51f6&\"\nimport script from \"./Error.vue?vue&type=script&lang=js&\"\nexport * from \"./Error.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('b-breadcrumb',[_c('b-breadcrumb-item',{attrs:{\"to\":\"/\"}},[_c('i',{staticClass:\"fa fa-home\"}),_vm._v(\" Home \")]),_c('b-breadcrumb-item',{attrs:{\"to\":\"/AzureBillingPeriods\"}},[_vm._v(\"Azure Billing Periods\")])],1),_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"bg-dark card-header text-white\"},[_vm._v(\"Billing Periods\")]),_c('div',{staticClass:\"card-body\"},[_c('BTable',{attrs:{\"busy\":_vm.isLoading,\"fields\":_vm.tableFields,\"items\":_vm.billingPeriods,\"responsive\":true,\"primary-key\":\"id\",\"show-empty\":\"\",\"striped\":\"\",\"table-class\":\"table-align-middle\"},scopedSlots:_vm._u([{key:\"cell(id)\",fn:function(row){return [_c('div',{staticClass:\"btn-group btn-group-sm\"},[_c('router-link',{staticClass:\"btn btn-sm btn-primary d-print-none\",attrs:{\"to\":{name:'AzureBillingPeriodSubscriptions',params:{billingPeriodId:row.item.id}},\"data-toggle\":\"tooltip\",\"title\":\"View Billing Period Details\"}},[_vm._v(\" Details \")]),_c('button',{staticClass:\"btn btn-secondary btn-sm d-print-none\",on:{\"click\":function($event){return _vm.downloadInvoice(row.item.id)}}},[_c('i',{staticClass:\"fa fa-file-invoice-dollar\"}),_vm._v(\" Invoice \")])],1)]}},{key:\"cell(startDate)\",fn:function(row){return [_c('span',[_vm._v(_vm._s(_vm._f(\"date\")(row.item.startDate)))])]}},{key:\"cell(endDate)\",fn:function(row){return [_c('span',[_vm._v(_vm._s(_vm._f(\"date\")(row.item.endDate)))])]}},{key:\"cell(totalUsage)\",fn:function(row){return [_c('span',[_vm._v(_vm._s(_vm._f(\"currency\")(row.item.totalUsage)))])]}},{key:\"cell(totalOverage)\",fn:function(row){return [_c('span',[_vm._v(_vm._s(_vm._f(\"currency\")(row.item.totalOverage)))])]}},{key:\"cell(totalAdjustments)\",fn:function(row){return [_c('span',[_vm._v(_vm._s(_vm._f(\"currency\")(row.item.totalAdjustments)))])]}},{key:\"custom-foot\",fn:function(){return [_c('b-tr',[_c('b-td',{attrs:{\"colspan\":_vm.tableFields.length}},[_c('AppTablePagination',{attrs:{\"page\":_vm.filterOptions.page,\"pageSize\":_vm.filterOptions.pageSize,\"totalCount\":_vm.totalBillingPeriods},on:{\"update:page\":[function($event){return _vm.$set(_vm.filterOptions, \"page\", $event)},function($event){return _vm.loadData()}],\"update:pageSize\":[function($event){return _vm.$set(_vm.filterOptions, \"pageSize\", $event)},function($event){return _vm.loadData()}],\"update:page-size\":function($event){return _vm.$set(_vm.filterOptions, \"pageSize\", $event)},\"update:totalCount\":function($event){_vm.totalBillingPeriods=$event},\"update:total-count\":function($event){_vm.totalBillingPeriods=$event}}})],1)],1)]},proxy:true}])})],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import {PagedData} from \"@/services/models/shared/PagedData\";\r\nimport {AxiosResponse} from \"axios\";\r\nimport {\r\n AzureBillingAdjustment,\r\n AzureBillingCharge,\r\n AzureBillingPeriodFilterOptions,\r\n AzureBillingPeriodListItem,\r\n AzureBillingPeriodSubscription,\r\n NewAzureBillingAdjustment,\r\n UpdateSubscription\r\n} from \"@/services/models/AzureBilling\";\r\nimport FileProvider from \"@/utilities/providers/FileProvider\";\r\nimport BimsHttpService from \"@/services/BimsHttpService\";\r\n\r\nclass AzureBillingService {\r\n /**\r\n * @description Returns a paged list of azure billing periods.\r\n */\r\n getBillingPeriodsList(filter: AzureBillingPeriodFilterOptions): Promise> {\r\n return BimsHttpService.get(`/azureBillingPeriods`, {params: filter}).then((response: AxiosResponse>) => {\r\n return response.data as PagedData;\r\n });\r\n }\r\n\r\n /**\r\n * @description Downloads the azure billing invoice pdf for the given billing period\r\n */\r\n public downloadInvoice(billingPeriodId: number): Promise {\r\n return BimsHttpService.get(\r\n `/azureBillingPeriods/${billingPeriodId}/export`, {\r\n responseType: 'blob'\r\n }).then(response => {\r\n return FileProvider.ForceFileDownload(response)\r\n })\r\n }\r\n\r\n /**\r\n * @description Returns all subscriptions for the given billing period id\r\n */\r\n getBillingPeriodSubscriptions(billingPeriodId: number): Promise {\r\n return BimsHttpService.get(`/azureBillingPeriods/${billingPeriodId}/subscriptions`).then((response: AxiosResponse) => {\r\n return response.data as AzureBillingPeriodSubscription[];\r\n });\r\n }\r\n\r\n /**\r\n * @description Returns all subscriptions for the given billing period id\r\n */\r\n getSubscription(billingPeriodId: number, subscriptionId: string): Promise {\r\n return BimsHttpService.get(`/azureBillingPeriods/${billingPeriodId}/subscriptions/${subscriptionId}`).then((response: AxiosResponse) => {\r\n return response.data as AzureBillingPeriodSubscription;\r\n });\r\n }\r\n\r\n /**\r\n * @description Returns all subscriptions for the given billing period id\r\n */\r\n updateSubscription(billingPeriodId: number, subscriptionId: string, subscription: UpdateSubscription): Promise {\r\n return BimsHttpService.put(`/azureBillingPeriods/${billingPeriodId}/subscriptions/${subscriptionId}`, subscription).then((response: AxiosResponse) => {\r\n return response.data as AzureBillingPeriodSubscription;\r\n });\r\n }\r\n\r\n /**\r\n * @description Returns all subscriptions for the given billing period id\r\n */\r\n getSubscriptionCharges(billingPeriodId: number, subscriptionId: string): Promise {\r\n return BimsHttpService.get(`/azureBillingPeriods/${billingPeriodId}/subscriptions/${subscriptionId}/charges`).then((response: AxiosResponse) => {\r\n return response.data as AzureBillingCharge[];\r\n });\r\n }\r\n\r\n /**\r\n * @description Returns all subscriptions for the given billing period id\r\n */\r\n getSubscriptionAdjustments(billingPeriodId: number, subscriptionId: string): Promise {\r\n return BimsHttpService.get(`/azureBillingPeriods/${billingPeriodId}/subscriptions/${subscriptionId}/adjustments`).then((response: AxiosResponse) => {\r\n return response.data as AzureBillingAdjustment[];\r\n });\r\n }\r\n\r\n /**\r\n * @description Returns all subscriptions for the given billing period id\r\n */\r\n addSubscriptionAdjustment(billingPeriodId: number, subscriptionId: string, adjustment: NewAzureBillingAdjustment): Promise {\r\n return BimsHttpService.post(`/azureBillingPeriods/${billingPeriodId}/subscriptions/${subscriptionId}/adjustments`, adjustment).then((response: AxiosResponse) => {\r\n return response.data;\r\n });\r\n }\r\n\r\n /**\r\n * @description Returns all subscriptions for the given billing period id\r\n */\r\n deleteSubscriptionAdjustment(id: string): Promise {\r\n return BimsHttpService.delete(`/azureBillingPeriods/subscriptions/adjustments/${id}`);\r\n }\r\n}\r\n\r\nexport default new AzureBillingService()\r\n","// displays the full date\r\nexport function date(value: string | Date) {\r\n if (!value) {\r\n return null;\r\n }\r\n return new Date(value).toLocaleDateString(\"en-US\");\r\n}\r\n","\r\n \r\n\r\n
\r\n \r\n \r\n Home\r\n \r\n Azure Billing Periods \r\n \r\n\r\n
\r\n
Billing Periods
\r\n
\r\n\r\n
\r\n\r\n \r\n \r\n \r\n Details\r\n \r\n Invoice\r\n \r\n
\r\n \r\n\r\n \r\n {{row.item.startDate | date}} \r\n \r\n\r\n \r\n {{row.item.endDate | date}} \r\n \r\n\r\n \r\n {{row.item.totalUsage | currency}} \r\n \r\n\r\n \r\n {{row.item.totalOverage | currency}} \r\n \r\n\r\n \r\n {{row.item.totalAdjustments | currency}} \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \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!./TheAzureBillingPeriodList.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!./TheAzureBillingPeriodList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TheAzureBillingPeriodList.vue?vue&type=template&id=97ebf19a&\"\nimport script from \"./TheAzureBillingPeriodList.vue?vue&type=script&lang=js&\"\nexport * from \"./TheAzureBillingPeriodList.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('b-breadcrumb',[_c('b-breadcrumb-item',{attrs:{\"to\":\"/\"}},[_c('i',{staticClass:\"fa fa-home\"}),_vm._v(\" Home \")]),_c('b-breadcrumb-item',{attrs:{\"to\":\"/AzureBillingPeriods\"}},[_vm._v(\"Azure Billing Periods\")]),_c('b-breadcrumb-item',[_vm._v(_vm._s(_vm.billingPeriodId))]),_c('b-breadcrumb-item',{attrs:{\"active\":\"\"}},[_vm._v(\"Subscriptions\")])],1),_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"bg-dark card-header text-white\"},[_vm._v(\"Subscription Listing\")]),_c('div',{staticClass:\"card-body\"},[_c('BTable',{attrs:{\"busy\":_vm.isLoading,\"fields\":_vm.tableFields,\"items\":_vm.subscriptions,\"responsive\":true,\"primary-key\":\"id\",\"show-empty\":\"\",\"striped\":\"\",\"per-page\":_vm.filterOptions.pageSize,\"current-page\":_vm.filterOptions.page,\"table-class\":\"table-align-middle\"},scopedSlots:_vm._u([{key:\"cell(id)\",fn:function(row){return [_c('router-link',{staticClass:\"btn btn-sm btn-warning d-print-none\",attrs:{\"to\":{name:'AzureBillingSubscriptionDetails',params:{subscriptionId:row.item.id,billingPeriodId:_vm.billingPeriodId}},\"data-toggle\":\"tooltip\",\"title\":\"Edit general code details\"}},[_c('i',{staticClass:\"fa fa-pencil-alt\"}),_vm._v(\"Edit \")])]}},{key:\"cell(costCenter)\",fn:function(row){return [_c('span',[_vm._v(_vm._s(row.item.sl + '-'+row.item.sa))])]}},{key:\"custom-foot\",fn:function(){return [_c('b-tr',[_c('b-td',{attrs:{\"colspan\":_vm.tableFields.length}},[_c('AppTablePagination',{attrs:{\"page\":_vm.filterOptions.page,\"pageSize\":_vm.filterOptions.pageSize,\"totalCount\":_vm.totalSubscriptions},on:{\"update:page\":function($event){return _vm.$set(_vm.filterOptions, \"page\", $event)},\"update:pageSize\":function($event){return _vm.$set(_vm.filterOptions, \"pageSize\", $event)},\"update:page-size\":function($event){return _vm.$set(_vm.filterOptions, \"pageSize\", $event)},\"update:totalCount\":function($event){_vm.totalSubscriptions=$event},\"update:total-count\":function($event){_vm.totalSubscriptions=$event}}})],1)],1)]},proxy:true}])})],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n\r\n
\r\n \r\n \r\n Home\r\n \r\n Azure Billing Periods \r\n {{billingPeriodId}} \r\n Subscriptions \r\n \r\n\r\n
\r\n
Subscription Listing
\r\n
\r\n\r\n
\r\n\r\n \r\n \r\n Edit\r\n \r\n \r\n\r\n \r\n {{row.item.sl + '-'+row.item.sa}} \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \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!./TheAzureBillingPeriodSubscriptionList.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!./TheAzureBillingPeriodSubscriptionList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TheAzureBillingPeriodSubscriptionList.vue?vue&type=template&id=5cc558b8&\"\nimport script from \"./TheAzureBillingPeriodSubscriptionList.vue?vue&type=script&lang=js&\"\nexport * from \"./TheAzureBillingPeriodSubscriptionList.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('b-breadcrumb',[_c('b-breadcrumb-item',{attrs:{\"to\":\"/\"}},[_c('i',{staticClass:\"fa fa-home\"}),_vm._v(\" Home \")]),_c('b-breadcrumb-item',{attrs:{\"to\":\"/AzureBillingPeriods\"}},[_vm._v(\"Azure Billing Periods\")]),_c('b-breadcrumb-item',[_vm._v(_vm._s(_vm.billingPeriodId))]),_c('b-breadcrumb-item',{attrs:{\"to\":{name:'AzureBillingPeriodSubscriptions',params:{billingPeriodId:_vm.billingPeriodId}}}},[_vm._v(\"Subscriptions\")]),_c('b-breadcrumb-item',{attrs:{\"active\":\"\"}},[_vm._v(_vm._s(_vm.subscriptionId))])],1),_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"bg-dark card-header text-white\"},[_vm._v(\"Edit Azure Billing Subscription\")]),_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-header\"},[_c('ul',{staticClass:\"card-header-tabs nav nav-tabs\"},[_c('li',{staticClass:\"nav-item\"},[_c('a',{staticClass:\"active nav-link\",attrs:{\"data-toggle\":\"tab\",\"href\":\"#\"},on:{\"click\":function($event){_vm.currentTabComponent='TheAzureBillingSubscriptionForm'}}},[_vm._v(\"Subscription\")])]),_c('li',{staticClass:\"nav-item\"},[_c('a',{staticClass:\"nav-link\",attrs:{\"data-toggle\":\"tab\",\"href\":\"#\"},on:{\"click\":function($event){_vm.currentTabComponent='TheAzureBillingChargesList'}}},[_vm._v(\"Charges\")])]),_c('li',{staticClass:\"nav-item\"},[_c('a',{staticClass:\"nav-link\",attrs:{\"data-toggle\":\"tab\",\"href\":\"#\"},on:{\"click\":function($event){_vm.currentTabComponent='TheAzureBillingAdjustmentList'}}},[_vm._v(\"Adjustments\")])])])]),_c('div',{attrs:{\"id\":\"tab-container\"}},[_c('keep-alive',[_c(_vm.currentTabComponent,{tag:\"component\",attrs:{\"billing-period-id\":_vm.billingPeriodId,\"subscription-id\":_vm.subscriptionId}})],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('AppLoadingContainer',{attrs:{\"predicate\":!_vm.isLoaded}},[_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.onSubmit()}}},[_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-3 col-sm-12 form-group\"},[_c('label',{attrs:{\"for\":\"name\"}},[_vm._v(\"Subscription Name\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.name),expression:\"name\"}],staticClass:\"form-control\",class:{'is-invalid': _vm.$v.name.$invalid},attrs:{\"autocomplete\":\"off\",\"placeholder\":\"Subscription Name\"},domProps:{\"value\":(_vm.name)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.name=$event.target.value}}}),(_vm.$v.name)?_c('span',{staticClass:\"invalid-feedback\"},[_vm._v(\"Please enter a name\")]):_vm._e()]),_c('div',{staticClass:\"col-md-3 col-sm-12 form-group\"},[_c('label',{attrs:{\"for\":\"sl\"}},[_vm._v(\"SL\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.sl),expression:\"sl\"}],staticClass:\"form-control\",class:{'is-invalid': _vm.$v.sl.$invalid},attrs:{\"autocomplete\":\"off\",\"maxLength\":\"6\",\"placeholder\":\"SL Number\"},domProps:{\"value\":(_vm.sl)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.sl=$event.target.value}}}),(_vm.$v.sl)?_c('span',{staticClass:\"invalid-feedback\"},[_vm._v(\"Please enter a valid SL\")]):_vm._e()]),_c('div',{staticClass:\"col-md-3 col-sm-12 form-group\"},[_c('label',{attrs:{\"for\":\"sa\"}},[_vm._v(\"SA\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.sa),expression:\"sa\"}],staticClass:\"form-control\",class:{'is-invalid': _vm.$v.sa.$invalid},attrs:{\"autocomplete\":\"off\",\"maxlength\":\"5\",\"placeholder\":\"SA number\"},domProps:{\"value\":(_vm.sa)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.sa=$event.target.value}}}),(_vm.$v.sa)?_c('span',{staticClass:\"invalid-feedback\"},[_vm._v(\"Please enter a valid SA\")]):_vm._e()])])]),_c('div',{staticClass:\"card-footer d-print-none text-right\"},[_c('button',{staticClass:\"btn btn-primary\",attrs:{\"disabled\":_vm.isSubmitting,\"type\":\"submit\"}},[_vm._v(\"Save\")]),_c('RouterLink',{staticClass:\"btn btn-danger\",attrs:{\"disabled\":_vm.isSubmitting,\"to\":{name:'AzureBillingPeriodSubscriptions',params:{billingPeriodId:_vm.billingPeriodId}}}},[_vm._v(\"Back \")])],1)])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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!./TheAzureBillingSubscriptionForm.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!./TheAzureBillingSubscriptionForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TheAzureBillingSubscriptionForm.vue?vue&type=template&id=0afdab36&\"\nimport script from \"./TheAzureBillingSubscriptionForm.vue?vue&type=script&lang=js&\"\nexport * from \"./TheAzureBillingSubscriptionForm.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('AppLoadingContainer',{attrs:{\"predicate\":!_vm.isLoaded}},[_c('div',{staticClass:\"card-body\"},[_c('BTable',{attrs:{\"current-page\":_vm.filterOptions.page,\"fields\":_vm.tableFields,\"items\":_vm.charges,\"per-page\":_vm.filterOptions.pageSize,\"responsive\":true,\"primary-key\":\"id\",\"show-empty\":\"\",\"striped\":\"\",\"table-class\":\"table-align-middle\"},scopedSlots:_vm._u([{key:\"cell(cost)\",fn:function(row){return [_vm._v(\" \"+_vm._s(_vm._f(\"currency\")(row.item.cost))+\" \")]}},{key:\"custom-foot\",fn:function(){return [_c('b-tr',[_c('b-td',{attrs:{\"colspan\":_vm.tableFields.length}},[_c('AppTablePagination',{attrs:{\"page\":_vm.filterOptions.page,\"pageSize\":_vm.filterOptions.pageSize,\"totalCount\":_vm.totalCharges},on:{\"update:page\":function($event){return _vm.$set(_vm.filterOptions, \"page\", $event)},\"update:pageSize\":function($event){return _vm.$set(_vm.filterOptions, \"pageSize\", $event)},\"update:page-size\":function($event){return _vm.$set(_vm.filterOptions, \"pageSize\", $event)},\"update:totalCount\":function($event){_vm.totalCharges=$event},\"update:total-count\":function($event){_vm.totalCharges=$event}}})],1)],1)]},proxy:true}])})],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n \r\n
\r\n\r\n \r\n {{row.item.cost | currency}}\r\n \r\n\r\n \r\n \r\n \r\n \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!./TheAzureBillingChargesList.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!./TheAzureBillingChargesList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TheAzureBillingChargesList.vue?vue&type=template&id=a34ed64a&\"\nimport script from \"./TheAzureBillingChargesList.vue?vue&type=script&lang=js&\"\nexport * from \"./TheAzureBillingChargesList.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('AppLoadingContainer',{attrs:{\"predicate\":!_vm.isLoaded}},[_c('div',{staticClass:\"card-body\"},[_c('div',{staticClass:\"mb-2 text-right\"},[_c('button',{directives:[{name:\"b-modal\",rawName:\"v-b-modal.adjustment-modal\",modifiers:{\"adjustment-modal\":true}}],staticClass:\"btn btn-primary d-print-none\",attrs:{\"data-toggle\":\"modal\"}},[_c('i',{staticClass:\"fa fa-plus\"}),_vm._v(\"Add Adjustment \")])]),_c('BTable',{attrs:{\"current-page\":_vm.filterOptions.page,\"fields\":_vm.tableFields,\"items\":_vm.adjustments,\"per-page\":_vm.filterOptions.pageSize,\"responsive\":true,\"primary-key\":\"id\",\"show-empty\":\"\",\"striped\":\"\",\"table-class\":\"table-align-middle\"},scopedSlots:_vm._u([{key:\"cell(id)\",fn:function(row){return [_c('button',{staticClass:\"btn btn-sm btn-danger\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.onDelete(row.item.id)}}},[_c('i',{staticClass:\"fa fa-trash\"}),_vm._v(\" Delete \")])]}},{key:\"cell(amount)\",fn:function(row){return [_vm._v(\" \"+_vm._s(_vm._f(\"currency\")(row.item.amount))+\" \")]}},{key:\"custom-foot\",fn:function(){return [_c('b-tr',[_c('b-td',{attrs:{\"colspan\":_vm.tableFields.length}},[_c('AppTablePagination',{attrs:{\"page\":_vm.filterOptions.page,\"pageSize\":_vm.filterOptions.pageSize,\"totalCount\":_vm.totalAdjustments},on:{\"update:page\":function($event){return _vm.$set(_vm.filterOptions, \"page\", $event)},\"update:pageSize\":function($event){return _vm.$set(_vm.filterOptions, \"pageSize\", $event)},\"update:page-size\":function($event){return _vm.$set(_vm.filterOptions, \"pageSize\", $event)},\"update:totalCount\":function($event){_vm.totalAdjustments=$event},\"update:total-count\":function($event){_vm.totalAdjustments=$event}}})],1)],1)]},proxy:true}])})],1),_c('b-modal',{attrs:{\"header-class\":\"bg-maroon text-white\",\"title\":\"Add Adjustment\",\"id\":\"adjustment-modal\"},scopedSlots:_vm._u([{key:\"modal-footer\",fn:function(ref){\nvar cancel = ref.cancel;\nreturn [_c('button',{staticClass:\"btn btn-primary\",attrs:{\"disabled\":_vm.isSubmitting,\"type\":\"submit\"},on:{\"click\":_vm.onSubmit}},[_vm._v(\"Save\")]),_c('button',{staticClass:\"btn btn-danger\",on:{\"click\":cancel}},[_vm._v(\"Close\")])]}}])},[_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.onSubmit()}}},[_c('div',{staticClass:\"container-fluid\"},[_c('div',{staticClass:\"form-group row\"},[_c('div',{staticClass:\"col-3 col-sm-12\"},[_c('label',[_vm._v(\"Adjustment Name\")])]),_c('div',{staticClass:\"col-9 col-sm-12\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.adjustmentName),expression:\"adjustmentName\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\",\"placeholder\":\"Adjustment Name\"},domProps:{\"value\":(_vm.adjustmentName)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.adjustmentName=$event.target.value}}})])]),_c('div',{staticClass:\"form-group row\"},[_c('div',{staticClass:\"col-3 col-sm-12\"},[_c('label',[_vm._v(\"Adjustment Amount\")])]),_c('div',{staticClass:\"col-9 col-sm-12\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model.number\",value:(_vm.adjustmentAmount),expression:\"adjustmentAmount\",modifiers:{\"number\":true}}],staticClass:\"form-control\",attrs:{\"type\":\"text\",\"placeholder\":\"Adjustment Amount\"},domProps:{\"value\":(_vm.adjustmentAmount)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.adjustmentAmount=_vm._n($event.target.value)},\"blur\":function($event){return _vm.$forceUpdate()}}})])])])])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n \r\n\r\n
\r\n Add Adjustment\r\n \r\n
\r\n\r\n
\r\n\r\n \r\n \r\n Delete\r\n \r\n \r\n\r\n \r\n {{row.item.amount | currency}}\r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n Save \r\n Close \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!./TheAzureBillingAdjustmentList.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!./TheAzureBillingAdjustmentList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TheAzureBillingAdjustmentList.vue?vue&type=template&id=a1d1b036&\"\nimport script from \"./TheAzureBillingAdjustmentList.vue?vue&type=script&lang=js&\"\nexport * from \"./TheAzureBillingAdjustmentList.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\r\n
\r\n \r\n \r\n Home\r\n \r\n Azure Billing Periods \r\n {{billingPeriodId}} \r\n Subscriptions \r\n {{subscriptionId}} \r\n \r\n\r\n
\r\n
Edit Azure Billing Subscription
\r\n
\r\n
\r\n \r\n
\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!./TheAzureBillingSubscriptionDetails.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!./TheAzureBillingSubscriptionDetails.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TheAzureBillingSubscriptionDetails.vue?vue&type=template&id=788b199c&\"\nimport script from \"./TheAzureBillingSubscriptionDetails.vue?vue&type=script&lang=js&\"\nexport * from \"./TheAzureBillingSubscriptionDetails.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 Vue from \"vue\";\r\nimport VueRouter, { Route, RouteConfig } from \"vue-router\";\r\nimport store from \"../store\";\r\nimport { ApplicationRole, Role } from \"@/services/models/Role\";\r\nimport Home from \"../views/Home.vue\";\r\nimport TheOrganizationList from \"../views/organizations/TheOrganizationList.vue\";\r\nimport TheOrganizationForm from \"../views/organizations/TheOrganizationDetails.vue\";\r\nimport ThePersonList from \"../views/people/ThePersonList.vue\";\r\nimport ThePersonDetails from \"../views/people/ThePersonDetails.vue\";\r\nimport TheGeneralCodeAddForm from \"../views/generalCodes/TheGeneralCodeAddForm.vue\";\r\nimport TheGeneralCodeEditForm from \"../views/generalCodes/TheGeneralCodeEditForm.vue\";\r\nimport TheGeneralCodeList from \"../views/generalCodes/TheGeneralCodeList.vue\";\r\nimport TheAdministrativeLocationList from \"../views/administrativeLocations/TheAdministrativeLocationList.vue\";\r\nimport TheAdministrativeLocationAddForm from \"../views/administrativeLocations/TheAdministrativeLocationAddForm.vue\";\r\nimport TheAdministrativeLocationEditForm from \"../views/administrativeLocations/TheAdministrativeLocationEditForm.vue\";\r\nimport TheBuildingList from \"../views/buildings/TheBuildingList.vue\";\r\nimport TheBuildingAddForm from \"../views/buildings/TheBuildingAddForm.vue\";\r\nimport TheBuildingEditForm from \"../views/buildings/TheBuildingEditForm.vue\";\r\nimport TheFacilitiesKeysList from \"../views/facilitiesKeys/TheFacilitiesKeysList.vue\";\r\nimport TheFacilitiesKeyDetails from \"../views/facilitiesKeys/TheFacilitiesKeyDetails.vue\";\r\nimport TheFacilitiesKeyAddForm from \"../views/facilitiesKeys/TheFacilitiesKeyAddForm.vue\";\r\nimport TheFacilitiesKeyCopyAddForm from \"../views/facilitiesKeys/TheFacilitiesKeyCopyAddForm.vue\";\r\nimport TheFacilitiesKeyCopyEditForm from \"../views/facilitiesKeys/TheFacilitiesKeyCopyEditForm.vue\";\r\nimport TheFacilitiesKeyLockAddForm from \"../views/facilitiesKeys/TheFacilitiesKeyLockAddForm.vue\";\r\nimport TheFacilitiesKeyLockEditForm from \"../views/facilitiesKeys/TheFacilitiesKeyLockEditForm.vue\";\r\nimport TheFacilitiesLocksList from \"../views/facilitiesLocks/TheFacilitiesLocksList.vue\";\r\nimport TheFacilitiesLockAddForm from \"../views/facilitiesLocks/TheFacilitiesLockAddForm.vue\";\r\nimport TheFacilitiesLockEditForm from \"../views/facilitiesLocks/TheFacilitiesLockEditForm.vue\";\r\nimport TheLeasingIDTsList from \"../views/leasingIDTs/TheLeasingIDTsList.vue\";\r\nimport TheNetworkIDTsList from \"../views/networkIDTs/TheNetworkIDTsList.vue\";\r\nimport TheNetworkIDTAddForm from \"../views/networkIDTs/TheNetworkIDTAddForm.vue\";\r\nimport TheNetworkIDTTotalModal from \"@/views/networkIDTs/TheNetworkIDTTotalModal.vue\";\r\nimport TheNetworkIDTEditForm from \"../views/networkIDTs/TheNetworkIDTEditForm.vue\";\r\nimport TheVisaList from \"../views/visas/TheVisaList.vue\";\r\nimport TheVisaDetails from \"../views/visas/TheVisaDetails.vue\";\r\nimport TheComputerAssetList from \"../views/computers/TheComputerAssetList.vue\";\r\nimport TheComputerAssetAddForm from \"../views/computers/TheComputerAssetAddForm.vue\";\r\nimport TheComputerAssetEditForm from \"../views/computers/TheComputerAssetEditForm.vue\";\r\nimport TheComputerLeaseList from \"../views/computers/TheComputerLeaseList.vue\";\r\nimport TheComputerLeaseAddForm from \"../views/computers/TheComputerLeaseAddForm.vue\";\r\nimport TheComputerLeaseEditForm from \"../views/computers/TheComputerLeaseEditForm.vue\";\r\nimport TheOracleModuleRoleList from \"../views/oracle/TheOracleModuleRoleList.vue\";\r\nimport TheOracleModuleRoleAddForm from \"../views/oracle/TheOracleModuleRoleAddForm.vue\";\r\nimport TheOracleAccountList from \"../views/oracle/TheOracleAccountList.vue\";\r\nimport TheOracleAccountDetails from \"../views/oracle/TheOracleAccountDetails.vue\";\r\nimport Error from \"../views/Error.vue\";\r\nimport TheAzureBillingPeriodList from \"@/views/azureBilling/TheAzureBillingPeriodList.vue\";\r\nimport TheAzureBillingPeriodSubscriptionList from \"@/views/azureBilling/TheAzureBillingPeriodSubscriptionList.vue\";\r\nimport TheAzureBillingSubscriptionDetails from \"@/views/azureBilling/TheAzureBillingSubscriptionDetails.vue\";\r\n\r\nVue.use(VueRouter);\r\n\r\n/**\r\n * @description Checks to see if the current user has a role in one of the specified params. If it does then the user is\r\n * navigated to that route, if not the routing is aborted.\r\n * @return {boolean}\r\n */\r\nfunction authorizeRoute(\r\n to: Route,\r\n from: Route,\r\n next: Function,\r\n ...roles: ApplicationRole[]\r\n) {\r\n // Admin role has full access\r\n const isAdministrator: boolean = store.getters.user\r\n ? store.getters.user.roles.find(\r\n (r: Role) => r.id.toUpperCase() == ApplicationRole.Administrator\r\n )\r\n : false;\r\n const hasRole: boolean = !store.getters.user\r\n ? false\r\n : store.getters.user.roles.some(\r\n (r: Role) => roles.indexOf(r.id.toUpperCase() as ApplicationRole) >= 0\r\n );\r\n\r\n if (isAdministrator || hasRole) {\r\n // Proceed to the next route\r\n next();\r\n } else {\r\n // the user didn't have permissions\r\n next(false);\r\n }\r\n}\r\n\r\nconst routes: Array = [\r\n {\r\n path: \"/\",\r\n name: \"Home\",\r\n component: Home,\r\n },\r\n {\r\n path: \"/Error\",\r\n name: \"Error\",\r\n component: Error,\r\n props: true,\r\n },\r\n {\r\n path: \"/Organizations\",\r\n name: \"Organizations\",\r\n component: TheOrganizationList,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(\r\n to,\r\n from,\r\n next,\r\n ApplicationRole.DatabaseAdministrator,\r\n ApplicationRole.Facilities,\r\n ApplicationRole.NetworkAdministrator,\r\n ApplicationRole.Business,\r\n ApplicationRole.TTIWebsiteAdministrator\r\n );\r\n },\r\n },\r\n {\r\n path: \"/Organizations/:id\",\r\n name: \"OrganizationDetails\",\r\n props: true,\r\n component: TheOrganizationForm,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(\r\n to,\r\n from,\r\n next,\r\n ApplicationRole.DatabaseAdministrator,\r\n ApplicationRole.Facilities,\r\n ApplicationRole.NetworkAdministrator,\r\n ApplicationRole.Business,\r\n ApplicationRole.TTIWebsiteAdministrator\r\n );\r\n },\r\n },\r\n {\r\n path: \"/People\",\r\n name: \"People\",\r\n component: ThePersonList,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(\r\n to,\r\n from,\r\n next,\r\n ApplicationRole.DatabaseAdministrator,\r\n ApplicationRole.Facilities,\r\n ApplicationRole.NetworkAdministrator,\r\n ApplicationRole.Business,\r\n ApplicationRole.TTIWebsiteAdministrator\r\n );\r\n },\r\n },\r\n {\r\n path: \"/People/:id\",\r\n name: \"PersonDetails\",\r\n component: ThePersonDetails,\r\n props: true,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(\r\n to,\r\n from,\r\n next,\r\n ApplicationRole.DatabaseAdministrator,\r\n ApplicationRole.Facilities,\r\n ApplicationRole.NetworkAdministrator,\r\n ApplicationRole.Business,\r\n ApplicationRole.TTIWebsiteAdministrator\r\n );\r\n },\r\n },\r\n {\r\n path: \"/GeneralCodes\",\r\n name: \"GeneralCodes\",\r\n component: TheGeneralCodeList,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(to, from, next, ApplicationRole.DatabaseAdministrator);\r\n },\r\n },\r\n {\r\n path: \"/GeneralCodes/Add\",\r\n name: \"AddGeneralCode\",\r\n component: TheGeneralCodeAddForm,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(to, from, next, ApplicationRole.DatabaseAdministrator);\r\n },\r\n },\r\n {\r\n path: \"/GeneralCodes/:id\",\r\n name: \"GeneralCodeDetails\",\r\n props: true,\r\n component: TheGeneralCodeEditForm,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(to, from, next, ApplicationRole.DatabaseAdministrator);\r\n },\r\n },\r\n {\r\n path: \"/AdministrativeLocations\",\r\n name: \"AdministrativeLocations\",\r\n component: TheAdministrativeLocationList,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(\r\n to,\r\n from,\r\n next,\r\n ApplicationRole.DatabaseAdministrator,\r\n ApplicationRole.HR\r\n );\r\n },\r\n },\r\n {\r\n path: \"/AdministrativeLocations/Add\",\r\n name: \"AddAdministrativeLocation\",\r\n component: TheAdministrativeLocationAddForm,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(\r\n to,\r\n from,\r\n next,\r\n ApplicationRole.DatabaseAdministrator,\r\n ApplicationRole.HR\r\n );\r\n },\r\n },\r\n {\r\n path: \"/AdministrativeLocations/:id\",\r\n name: \"AdministrativeLocationDetails\",\r\n props: true,\r\n component: TheAdministrativeLocationEditForm,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(\r\n to,\r\n from,\r\n next,\r\n ApplicationRole.DatabaseAdministrator,\r\n ApplicationRole.HR\r\n );\r\n },\r\n },\r\n {\r\n path: \"/Facilities/Offices\",\r\n name: \"Buildings\",\r\n component: TheBuildingList,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(\r\n to,\r\n from,\r\n next,\r\n ApplicationRole.DatabaseAdministrator,\r\n ApplicationRole.Facilities\r\n );\r\n },\r\n },\r\n {\r\n path: \"/Facilities/Offices/Add\",\r\n name: \"AddBuilding\",\r\n component: TheBuildingAddForm,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(\r\n to,\r\n from,\r\n next,\r\n ApplicationRole.DatabaseAdministrator,\r\n ApplicationRole.Facilities\r\n );\r\n },\r\n },\r\n {\r\n path: \"/Facilities/Offices/:id\",\r\n name: \"BuildingDetails\",\r\n props: true,\r\n component: TheBuildingEditForm,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(\r\n to,\r\n from,\r\n next,\r\n ApplicationRole.DatabaseAdministrator,\r\n ApplicationRole.Facilities\r\n );\r\n },\r\n },\r\n {\r\n path: \"/Facilities/Keys\",\r\n name: \"Keys\",\r\n component: TheFacilitiesKeysList,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(\r\n to,\r\n from,\r\n next,\r\n ApplicationRole.DatabaseAdministrator,\r\n ApplicationRole.Facilities\r\n );\r\n }\r\n },\r\n {\r\n path: '/Facilities/Keys/:id',\r\n name: 'KeyDetails',\r\n component: TheFacilitiesKeyDetails,\r\n props: true,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(to, from, next, ApplicationRole.DatabaseAdministrator, ApplicationRole.Facilities)\r\n }\r\n },\r\n {\r\n path: '/Facilities/Keys/Add',\r\n name: 'AddKey',\r\n component: TheFacilitiesKeyAddForm,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(to, from, next, ApplicationRole.DatabaseAdministrator, ApplicationRole.Facilities)\r\n }\r\n },\r\n {\r\n path: '/Facilities/Keys/:facilitiesKeyId/AddCopies',\r\n name: 'AddKeyCopies',\r\n component: TheFacilitiesKeyCopyAddForm,\r\n props: true,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(to, from, next, ApplicationRole.DatabaseAdministrator, ApplicationRole.Facilities)\r\n }\r\n },\r\n {\r\n path: '/Facilities/Keys/EditCopy/:id',\r\n name: 'EditKeyCopy',\r\n component: TheFacilitiesKeyCopyEditForm,\r\n props: true,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(to, from, next, ApplicationRole.DatabaseAdministrator, ApplicationRole.Facilities)\r\n }\r\n },\r\n {\r\n path: '/Facilities/Keys/:facilitiesKeyId/AddLocks',\r\n name: 'AddKeyLocks',\r\n component: TheFacilitiesKeyLockAddForm,\r\n props: true,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(to, from, next, ApplicationRole.DatabaseAdministrator, ApplicationRole.Facilities)\r\n }\r\n },\r\n {\r\n path: '/Facilities/Keys/EditLock/:id',\r\n name: 'EditKeyLock',\r\n component: TheFacilitiesKeyLockEditForm,\r\n props: true,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(to, from, next, ApplicationRole.DatabaseAdministrator, ApplicationRole.Facilities)\r\n }\r\n },\r\n {\r\n path: '/Facilities/Locks',\r\n name: 'Locks',\r\n component: TheFacilitiesLocksList,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(to, from, next, ApplicationRole.DatabaseAdministrator, ApplicationRole.Facilities)\r\n }\r\n },\r\n {\r\n path: '/Facilities/Locks/Add',\r\n name: 'AddLock',\r\n component: TheFacilitiesLockAddForm,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(to, from, next, ApplicationRole.DatabaseAdministrator, ApplicationRole.Facilities)\r\n }\r\n },\r\n {\r\n path: '/Facilities/Locks/Edit/:id',\r\n name: 'EditLock',\r\n component: TheFacilitiesLockEditForm,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(to, from, next, ApplicationRole.DatabaseAdministrator, ApplicationRole.Facilities)\r\n }\r\n },\r\n {\r\n path: '/HumanResources/VISAs',\r\n name: 'VISAs',\r\n component: TheVisaList,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(to, from, next, ApplicationRole.DatabaseAdministrator, ApplicationRole.HR, ApplicationRole.Management)\r\n }\r\n },\r\n {\r\n path: '/HumanResources/VISAs/:id',\r\n name: 'VisaDetails',\r\n props: true,\r\n component: TheVisaDetails,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(to, from, next, ApplicationRole.DatabaseAdministrator, ApplicationRole.HR)\r\n }\r\n },\r\n {\r\n path: \"/FinancialServices/NetworkIDTs\",\r\n name: \"NetworkIDTs\",\r\n component: TheNetworkIDTsList,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(\r\n to,\r\n from,\r\n next,\r\n ApplicationRole.Business\r\n );\r\n }\r\n },\r\n {\r\n path: \"/FinancialServices/NetworkIDTs/Add\",\r\n name: \"AddNetworkIDT\",\r\n component: TheNetworkIDTAddForm,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(\r\n to,\r\n from,\r\n next,\r\n ApplicationRole.Business\r\n );\r\n }\r\n },\r\n {\r\n path: \"/FinancialServices/NetworkIDTs/Edit/:famisDepartment/:sl-:sa\",\r\n name: \"EditNetworkIDT\",\r\n component: TheNetworkIDTEditForm,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(\r\n to,\r\n from,\r\n next,\r\n ApplicationRole.Business\r\n );\r\n },\r\n },\r\n {\r\n path: \"/FinancialServices/LeasingIDTs\",\r\n name: \"LeasingIDTs\",\r\n component: TheLeasingIDTsList,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(\r\n to,\r\n from,\r\n next,\r\n ApplicationRole.Business\r\n );\r\n }\r\n },\r\n /*{\r\n path: '/FinancialServices/Computers/Assets',\r\n name: 'ComputerAssets',\r\n component: TheComputerAssetList,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(to, from, next, ApplicationRole.Business)\r\n }\r\n },\r\n {\r\n path: '/FinancialServices/Computers/Assets/Add',\r\n name: 'AddComputerAsset',\r\n component: TheComputerAssetAddForm,\r\n props: true,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(to, from, next, ApplicationRole.Business)\r\n }\r\n },\r\n {\r\n path: '/FinancialServices/Computers/Assets/Edit/:id',\r\n name: 'EditComputerAsset',\r\n props: true,\r\n component: TheComputerAssetEditForm,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(to, from, next, ApplicationRole.Business)\r\n }\r\n },\r\n {\r\n path: '/FinancialServices/Computers/Leases',\r\n name: 'ComputerLeases',\r\n component: TheComputerLeaseList,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(to, from, next, ApplicationRole.Business)\r\n }\r\n },\r\n {\r\n path: '/FinancialServices/Computers/Leases/Add',\r\n name: 'AddComputerLease',\r\n component: TheComputerLeaseAddForm,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(to, from, next, ApplicationRole.Business)\r\n }\r\n },\r\n {\r\n path: '/FinancialServices/Computers/Leases/Edit/:id',\r\n name: 'EditComputerLease',\r\n props: true,\r\n component: TheComputerLeaseEditForm,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(to, from, next, ApplicationRole.Business)\r\n }\r\n },*/\r\n {\r\n path: \"/Oracle/ModuleRoles\",\r\n name: \"OracleModuleRoles\",\r\n component: TheOracleModuleRoleList,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(to, from, next, ApplicationRole.DatabaseAdministrator);\r\n },\r\n },\r\n {\r\n path: \"/Oracle/ModuleRoles/Add\",\r\n name: \"AddOracleModuleRole\",\r\n component: TheOracleModuleRoleAddForm,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(to, from, next, ApplicationRole.DatabaseAdministrator);\r\n },\r\n },\r\n {\r\n path: \"/Oracle/Accounts\",\r\n name: \"OracleAccounts\",\r\n component: TheOracleAccountList,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(to, from, next, ApplicationRole.DatabaseAdministrator);\r\n },\r\n },\r\n {\r\n path: \"/Oracle/Accounts/:id\",\r\n name: \"OracleAccountDetails\",\r\n props: true,\r\n component: TheOracleAccountDetails,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(to, from, next, ApplicationRole.DatabaseAdministrator);\r\n },\r\n },\r\n {\r\n path: \"/AzureBillingPeriods\",\r\n name: \"AzureBillingPeriods\",\r\n component: TheAzureBillingPeriodList,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(\r\n to,\r\n from,\r\n next,\r\n ApplicationRole.DatabaseAdministrator,\r\n ApplicationRole.NetworkAdministrator\r\n );\r\n },\r\n },\r\n {\r\n path: \"/AzureBillingPeriods/:billingPeriodId/Subscriptions\",\r\n name: \"AzureBillingPeriodSubscriptions\",\r\n component: TheAzureBillingPeriodSubscriptionList,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(\r\n to,\r\n from,\r\n next,\r\n ApplicationRole.DatabaseAdministrator,\r\n ApplicationRole.NetworkAdministrator\r\n );\r\n },\r\n },\r\n {\r\n path: \"/AzureBillingPeriods/:billingPeriodId/Subscriptions/:subscriptionId\",\r\n name: \"AzureBillingSubscriptionDetails\",\r\n component: TheAzureBillingSubscriptionDetails,\r\n beforeEnter(to, from, next) {\r\n authorizeRoute(\r\n to,\r\n from,\r\n next,\r\n ApplicationRole.DatabaseAdministrator,\r\n ApplicationRole.NetworkAdministrator\r\n );\r\n },\r\n },\r\n];\r\n\r\nconst router = new VueRouter({\r\n routes,\r\n scrollBehavior(to, from, savedPosition) {\r\n // return desired position\r\n if (savedPosition) {\r\n return savedPosition\r\n } else {\r\n return { x: 0, y: 0 }\r\n }\r\n }\r\n});\r\n\r\nexport default router\r\n","import {ApplicationRole, Role} from \"@/services/models/Role\";\r\nimport store from \"../store\";\r\nimport {ToastType} from \"@/services/models/shared/ToastType\";\r\nimport Vue from \"vue\";\r\n\r\nexport default Vue.mixin({\r\n computed:{\r\n applicationRoles():ApplicationRole[]{\r\n return store.getters.user?.roles ?? [];\r\n }\r\n },\r\n methods: {\r\n hasApplicationRole(...roles: ApplicationRole[]): boolean {\r\n // Admin role has full access\r\n const isAdministrator: boolean = !store.getters.user ? false : store.getters.user.roles.find((r: Role) => r.id.toUpperCase() == ApplicationRole.Administrator);\r\n const hasRole: boolean = !store.getters.user ? false : store.getters.user.roles.some((r: Role) => roles.indexOf(r.id.toUpperCase() as ApplicationRole) >= 0);\r\n\r\n return isAdministrator || hasRole;\r\n },\r\n\r\n redirectToError(message) {\r\n this.$router.replace({\r\n name: 'Error', params: {\r\n errorMessage: message\r\n }\r\n })\r\n },\r\n\r\n /**\r\n * Creates an alert message toast\r\n * @param type The toast type variant\r\n * @param message The toast message content\r\n */\r\n alert(type: ToastType, message: string) {\r\n\r\n let options = {};\r\n\r\n switch (type) {\r\n case ToastType.Success:\r\n options = {\r\n title: 'Success',\r\n variant: 'success',\r\n };\r\n break;\r\n case ToastType.Information:\r\n options = {\r\n title: 'Information',\r\n variant: 'info',\r\n };\r\n break;\r\n case ToastType.Warning:\r\n options = {\r\n title: 'Warning',\r\n variant: 'warning',\r\n };\r\n break;\r\n case ToastType.Danger:\r\n options = {\r\n title: 'Error',\r\n variant: 'danger',\r\n };\r\n break;\r\n default:\r\n options = {\r\n title: '',\r\n variant: 'default',\r\n };\r\n }\r\n\r\n // Set tot he toast on the root to avoid issues with routing\r\n this.$root.$bvToast.toast(message, {\r\n ...options,\r\n toaster: \"b-toaster-top-right\",\r\n autoHideDelay: 5000,\r\n toastClass: null,\r\n headerClass: null,\r\n bodyClass: null,\r\n });\r\n }\r\n }\r\n});\r\n","import Vue from 'vue'\r\nimport App from './App.vue'\r\nimport router from './router'\r\nimport store from './store'\r\nimport PortalVue from 'portal-vue'\r\nimport BootstrapVue from 'bootstrap-vue'\r\nimport Vuelidate from \"vuelidate\"\r\nimport coreMixin from \"./mixins/CoreMixin\"\r\nimport moment from 'moment'\r\nimport 'bootstrap'\r\nimport \"bootstrap/dist/css/bootstrap.min.css\"\r\nimport 'bootstrap-vue/dist/bootstrap-vue.css'\r\nimport '@fortawesome/fontawesome-free/css/all.min.css'\r\nimport './assets/styles.css'\r\n\r\nVue.use(PortalVue);\r\nVue.use(BootstrapVue);\r\nVue.use(require('vue-moment'), {\r\n moment\r\n});\r\nVue.use(Vuelidate);\r\n\r\nif (self===top) {\r\n new Vue({\r\n mixins: [coreMixin],\r\n router,\r\n store,\r\n render: h => h(App),\r\n }).$mount('#app');\r\n}\r\n","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AppCardRouterButton.vue?vue&type=style&index=0&id=402fc1d7&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AppCardRouterButton.vue?vue&type=style&index=0&id=402fc1d7&scoped=true&lang=css&\"","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AppTablePagination.vue?vue&type=style&index=0&id=e54bbf3a&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AppTablePagination.vue?vue&type=style&index=0&id=e54bbf3a&scoped=true&lang=css&\"","module.exports = __webpack_public_path__ + \"img/footer.390ce47f.png\";","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AppCardCollapsable.vue?vue&type=style&index=0&id=db49b72c&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AppCardCollapsable.vue?vue&type=style&index=0&id=db49b72c&scoped=true&lang=css&\""],"sourceRoot":""}