{"version":3,"sources":["webpack:///./src/Admin/BootManagement/BootManagementAdmin.vue?ad64","webpack:///./src/Admin/BootManagement/Enums.ts","webpack:///./src/Admin/BootManagement/BootManagementAdmin.vue?3d25","webpack:///./src/Admin/BootManagement/BootManagementAdmin.vue?588b","webpack:///./src/Admin/BootManagement/BootManagementAdmin.vue"],"names":["BootStatus","render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","_v","_s","$t","bootInventorys","length","on","$event","add","_l","addBoot","concat","boot","inventoryID","editBoot","isAddBoot","directives","name","rawName","value","loadingBoots","expression","editing","_e","releaseCode","status","currentType","bootTypeID","model","callback","$$v","$set","key","domProps","type","recID","bootTypeDescription","edit","deleteboot","cancelEdit","save","staticRenderFns","bootManagementAdmin","extend","props","data","bootType","selectedBoot","validationErrors","computed","bootStatusNames","Object","keys","filter","keyVal","isNaN","bootTypeId","bType","find","i","toString","methods","set","VatsAPI","post","location","refreshBoots","response","deleteConfirmMessage","$i18n","t","deleteConfirmTitle","deleteButton","cancelButton","$bvModal","msgBoxConfirm","title","size","buttonSize","okVariant","cancelVariant","okTitle","cancelTitle","centered","confirmDelete","$bvToast","toast","autoHideDelay","get","getMeOnly","e","mounted","component"],"mappings":"uHAAA,ICAYA,EDARC,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,mBAAmB,CAACF,EAAG,MAAM,CAACE,YAAY,OAAO,CAACF,EAAG,MAAM,CAACE,YAAY,OAAO,CAACF,EAAG,KAAK,CAACE,YAAY,mBAAmBC,MAAM,CAAC,IAAM,YAAY,CAACP,EAAIQ,GAAGR,EAAIS,GAAGT,EAAIU,GAAG,uCAAuCN,EAAG,MAAM,CAACE,YAAY,OAAO,CAACF,EAAG,MAAM,CAACE,YAAY,OAAO,CAAEN,EAAIW,gBAAkBX,EAAIW,eAAeC,OAAQR,EAAG,MAAM,CAACE,YAAY,c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M,WAJAnD,KAAK2F,SAASC,MAAM5F,KAAK2E,MAAMC,EAAE,yCAAyCV,WAAY,CAClFgB,MAAOlF,KAAK2E,MAAMC,EAAE,gBAAgBV,WACpC2B,cAAe,MAEb,E,yBAGRE,UAAS,W,6FACX,IACI/F,KAAKwE,eAET,MAAOwB,GAKH,MAJAhG,KAAK2F,SAASC,MAAM5F,KAAK2E,MAAMC,EAAE,yCAAyCV,WAAY,CAClFgB,MAAOlF,KAAK2E,MAAMC,EAAE,gBAAgBV,WACpC2B,cAAe,MAEbG,E,kBAIZC,QAAN,W,0HACqB,OAAjB,EAAAjG,KAAiB,GAAMqE,EAAA,KAAQyB,IAAmB9F,KAAKuE,SAAQ,kC,cAA/D,EAAKnB,SAAY,SAAgFD,KACjGnD,KAAKwE,e,cAIE,ICnQiZ,I,YCO5Z0B,EAAY,eACd,EACApG,EACAiD,GACA,EACA,KACA,KACA,MAIa,aAAAmD,E","file":"js/chunk-2d0d6e99.2b42ad98.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container-fluid\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('h1',{staticClass:\"form-check-label\",attrs:{\"for\":\"me-only\"}},[_vm._v(_vm._s(_vm.$t('admin.bootManagement.header')))])])]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[(_vm.bootInventorys && _vm.bootInventorys.length)?_c('div',{staticClass:\"grid-table\"},[_c('div',{staticClass:\"grid-table-row grid-header-row\"},[_c('span',{staticClass:\"grid-table-cell grid-tooltip\"},[_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.$t('admin.bootManagement.inventoryID'))+\"\\n \")])]),_c('span',{staticClass:\"grid-table-cell grid-tooltip\"},[_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.$t('admin.bootManagement.releaseCode'))+\"\\n \")])]),_c('span',{staticClass:\"grid-table-cell grid-tooltip\"},[_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.$t('admin.bootManagement.status'))+\"\\n \")])]),_c('span',{staticClass:\"grid-table-cell grid-table-tooltip\"},[_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.$t('admin.bootManagement.bootTypeID'))+\"\\n \")])]),_c('span',{staticClass:\"grid-table-cell\"},[_c('div',{staticClass:\"btn-group\"},[_c('button',{staticClass:\"btn btn-outline-primary\",on:{\"click\":function($event){return _vm.add()}}},[_c('i',{staticClass:\"fa fa-plus\"})])])])]),_vm._l(([_vm.addBoot ].concat( _vm.bootInventorys)),function(boot){return [(!!boot.inventoryID || _vm.editBoot.isAddBoot)?_c('div',{directives:[{name:\"wait-indicator\",rawName:\"v-wait-indicator\",value:(_vm.loadingBoots[boot.inventoryID]),expression:\"loadingBoots[boot.inventoryID]\"}],staticClass:\"grid-table-row\"},[(!_vm.editing(boot) && !boot.isAddBoot)?[_c('span',{staticClass:\"grid-table-cell\",attrs:{\"data-title\":_vm.$t('admin.bootManagement.inventoryID')}},[_vm._v(\"\\n \"+_vm._s(boot.inventoryID)+\"\\n \")]),_c('span',{staticClass:\"grid-table-cell\",attrs:{\"data-title\":_vm.$t('admin.bootManagement.releaseCode')}},[_vm._v(\"\\n \"+_vm._s(boot.releaseCode)+\"\\n \")]),_c('span',{staticClass:\"grid-table-cell\",attrs:{\"data-title\":_vm.$t('admin.bootManagement.status')}},[_vm._v(\"\\n \"+_vm._s(_vm.BootStatus[boot.status])+\"\\n \")]),_c('span',{staticClass:\"grid-table-cell\",attrs:{\"data-title\":_vm.$t('admin.bootManagement.bootTypeID')}},[_vm._v(\"\\n \"+_vm._s(_vm.currentType(boot.bootTypeID))+\"\\n \")])]:_vm._e(),(_vm.editing(boot))?[(!_vm.editBoot.isAddBoot)?_c('span',{staticClass:\"grid-table-cell\"},[_vm._v(\"\\n \"+_vm._s(_vm.editBoot.inventoryID)+\"\\n \")]):_vm._e(),(_vm.editBoot.isAddBoot)?_c('span',{staticClass:\"grid-table-cell\"},[_c('b-form-input',{directives:[{name:\"validation-error\",rawName:\"v-validation-error\"}],attrs:{\"placeholder\":_vm.$t('admin.bootManagement.inventoryIDPlaceholder')},model:{value:(_vm.editBoot.inventoryID),callback:function ($$v) {_vm.$set(_vm.editBoot, \"inventoryID\", $$v)},expression:\"editBoot.inventoryID\"}})],1):_vm._e(),_c('span',{staticClass:\"grid-table-cell\"},[_c('b-form-input',{directives:[{name:\"validation-error\",rawName:\"v-validation-error\"}],attrs:{\"placeholder\":_vm.$t('admin.bootManagement.releaseCodePlaceholder')},model:{value:(_vm.editBoot.releaseCode),callback:function ($$v) {_vm.$set(_vm.editBoot, \"releaseCode\", $$v)},expression:\"editBoot.releaseCode\"}})],1),_c('span',{staticClass:\"grid-table-cell\"},[_c('b-form-select',{directives:[{name:\"validation-error\",rawName:\"v-validation-error\"}],model:{value:(_vm.editBoot.status),callback:function ($$v) {_vm.$set(_vm.editBoot, \"status\", $$v)},expression:\"editBoot.status\"}},_vm._l((_vm.bootStatusNames),function(status){return _c('option',{key:status,domProps:{\"value\":_vm.BootStatus[status]}},[_vm._v(\"\\n \"+_vm._s(status)+\"\\n \")])}),0)],1),_c('span',{staticClass:\"grid-table-cell\"},[_c('b-form-select',{directives:[{name:\"validation-error\",rawName:\"v-validation-error\"}],model:{value:(_vm.editBoot.bootTypeID),callback:function ($$v) {_vm.$set(_vm.editBoot, \"bootTypeID\", $$v)},expression:\"editBoot.bootTypeID\"}},_vm._l((_vm.bootType),function(type){return _c('option',{domProps:{\"value\":type.recID}},[_vm._v(\"\\n \"+_vm._s(type.bootTypeDescription)+\"\\n \")])}),0)],1)]:_vm._e(),_c('span',{staticClass:\"grid-table-cell\"},[(!_vm.editing(boot))?_c('b-button-group',[_c('b-button',{attrs:{\"disabled\":_vm.loadingBoots[boot.inventoryID],\"variant\":\"outline-info\"},on:{\"click\":function($event){return _vm.edit(boot)}}},[(!_vm.loadingBoots[boot.inventoryID])?_c('font-awesome-icon',{attrs:{\"icon\":['fas', 'edit']}}):_vm._e(),(_vm.loadingBoots[boot.inventoryID])?_c('b-spinner',{attrs:{\"small\":\"\"}}):_vm._e()],1),_c('b-button',{attrs:{\"disabled\":_vm.loadingBoots[boot.inventoryID],\"variant\":\"outline-danger\"},on:{\"click\":function($event){return _vm.deleteboot(boot)}}},[(!_vm.loadingBoots[boot.inventoryID])?_c('font-awesome-icon',{attrs:{\"icon\":['fas', 'trash']}}):_vm._e(),(_vm.loadingBoots[boot.inventoryID])?_c('b-spinner',{attrs:{\"small\":\"\"}}):_vm._e()],1)],1):_vm._e(),(_vm.editing(boot))?_c('b-button-group',[_c('b-button',{attrs:{\"disabled\":_vm.loadingBoots[_vm.editBoot.inventoryID],\"variant\":\"outline-warning\"},on:{\"click\":function($event){return _vm.cancelEdit()}}},[(!_vm.loadingBoots[_vm.editBoot.inventoryID])?_c('font-awesome-icon',{attrs:{\"icon\":['fas', 'times']}}):_vm._e(),(_vm.loadingBoots[_vm.editBoot.inventoryID])?_c('b-spinner',{attrs:{\"small\":\"\"}}):_vm._e()],1),_c('b-button',{attrs:{\"disabled\":_vm.loadingBoots[_vm.editBoot.inventoryID],\"variant\":\"outline-success\"},on:{\"click\":function($event){return _vm.save(_vm.editBoot)}}},[(!_vm.loadingBoots[_vm.editBoot.inventoryID])?_c('font-awesome-icon',{attrs:{\"icon\":['fas', 'save']}}):_vm._e(),(_vm.loadingBoots[_vm.editBoot.inventoryID])?_c('b-spinner',{attrs:{\"small\":\"\"}}):_vm._e()],1)],1):_vm._e()],1)],2):_vm._e()]})],2):_vm._e()])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export enum BootStatus {\r\n InStock,\r\n Active,\r\n PendingReturn\r\n}\r\n","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport Vue from 'vue';\nimport VatsAPI from '@/Shared/VatsAPI';\nimport { BootInventory } from './BootInventory';\nimport { BootStatus } from './Enums';\nimport { BootType } from './BootType';\nimport { getValidationErrors } from '@/Shared/ValidationErrorDirective';\n\nconst bootManagementAdmin = Vue.extend({\n props: ['location'],\n data() {\n return {\n editBoot: { isAddBoot: false } as any as BootInventory,\n addBoot: { isAddBoot: true } as any as BootInventory,\n bootInventorys: [] as BootInventory[],\n BootStatus,\n bootType: [] as BootType[],\n selectedBoot: null,\n loadingBoots: {} as { [inventoryID: string]: boolean },\n validationErrors: {} as { [key: string]: string[] },\n };\n },\n computed: {\n bootStatusNames(): string[] {\n return Object.keys(this.BootStatus).filter(keyVal => isNaN(keyVal as any));\n },\n currentType(): (bootTypeId: number) => string {\n return (bootTypeId: number) => {\n const bType = this.bootType.find(i => i.recID === bootTypeId);\n if (bType) {\n return bType.bootTypeDescription!;\n }\n return bootTypeId.toString();\n };\n }\n },\n methods: {\n editing(boot: BootInventory) {\n if ((boot as any).isAddBoot) {\n return true;\n }\n else if (this.editBoot && this.editBoot.inventoryID && !(this.editBoot as any).isAddBoot) {\n return this.editBoot.inventoryID === boot.inventoryID;\n }\n else {\n return false;\n }\n },\n edit(boot: BootInventory) {\n this.editBoot = { ...boot };\n },\n add() {\n this.editBoot = { ...this.addBoot };\n },\n async save(boot: BootInventory) {\n Vue.set(this.loadingBoots, boot.inventoryID, true);\n try {\n if ((boot as any).isAddBoot) {\n await VatsAPI.post(`/${this.location}/BootManagementAdmin/AddBootInventory`, boot);\n }\n else {\n await VatsAPI.post(`/${this.location}/BootManagementAdmin/UpdateBootInventory`, boot);\n }\n\n await this.refreshBoots();\n }\n catch (e) {\n this.validationErrors = getValidationErrors(e.response);\n throw e;\n }\n finally {\n Vue.set(this.loadingBoots, boot.inventoryID, false);\n }\n\n this.cancelEdit();\n },\n async deleteboot(boot: BootInventory) {\n const deleteConfirmMessage = this.$i18n.t('admin.bootManagement.deleteConfirmMessage').toString() + `, ${boot.inventoryID}?`;\n const deleteConfirmTitle = this.$i18n.t('admin.bootManagement.deleteConfirmTitle').toString();\n const deleteButton = this.$i18n.t('common.delete').toString();\n const cancelButton = this.$i18n.t('common.cancel').toString();\n\n const confirmDelete = await this.$bvModal.msgBoxConfirm(\n deleteConfirmMessage,\n {\n title: deleteConfirmTitle,\n size: 'sm',\n buttonSize: 'sm',\n okVariant: 'danger',\n cancelVariant: 'info',\n okTitle: deleteButton,\n cancelTitle: cancelButton,\n centered: true\n }\n );\n\n if (confirmDelete) {\n try {\n Vue.set(this.loadingBoots, boot.inventoryID, true);\n await VatsAPI.post(`/${this.location}/BootManagementAdmin/DeleteBootInventory`, boot);\n await this.refreshBoots();\n Vue.set(this.loadingBoots, boot.inventoryID, false);\n }\n catch (e) {\n this.$bvToast.toast(this.$i18n.t('admin.bootManagement.deletebootError').toString(), {\n title: this.$i18n.t('common.error').toString(),\n autoHideDelay: 5000\n });\n throw e;\n }\n }\n },\n cancelEdit() {\n this.editBoot = { isAddBoot: false } as any as BootInventory;\n this.addBoot = { isAddBoot: true } as any as BootInventory;\n },\n async refreshBoots() {\n try {\n this.bootInventorys = (await VatsAPI.get(`/${this.location}/BootManagementAdmin/GetBootInventory`)).data;\n }\n catch (e) {\n this.$bvToast.toast(this.$i18n.t('admin.bootManagement.refreshbootError').toString(), {\n title: this.$i18n.t('common.error').toString(),\n autoHideDelay: 5000\n });\n throw e;\n }\n },\n async getMeOnly() {\n try {\n this.refreshBoots();\n }\n catch (e) {\n this.$bvToast.toast(this.$i18n.t('admin.bootManagement.refreshBootError').toString(), {\n title: this.$i18n.t('common.error').toString(),\n autoHideDelay: 5000\n });\n throw e;\n }\n }\n },\n async mounted() {\n this.bootType = (await VatsAPI.get(`${this.location}/BootManagementAdmin/bootType`)).data;\n this.refreshBoots();\n }\n});\n\nexport default bootManagementAdmin;\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BootManagementAdmin.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BootManagementAdmin.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./BootManagementAdmin.vue?vue&type=template&id=69f38032&\"\nimport script from \"./BootManagementAdmin.vue?vue&type=script&lang=ts&\"\nexport * from \"./BootManagementAdmin.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}