{"version":3,"sources":["webpack:///./src/workspaces/warehouse/mixins/barcode.js","webpack:///./src/workspaces/warehouse/mixins/readDWSSKU.js","webpack:///./src/workspaces/warehouse/mixins/audio.js","webpack:///./src/workspaces/warehouse/components/PickedBoxModal.vue","webpack:///src/workspaces/warehouse/components/PickedBoxModal.vue","webpack:///./src/workspaces/warehouse/components/PickedBoxModal.vue?e9fb","webpack:///./src/workspaces/warehouse/components/PickedBoxModal.vue?a1c4","webpack:///./src/workspaces/warehouse/components/PickedBoxErrorModal.vue","webpack:///src/workspaces/warehouse/components/PickedBoxErrorModal.vue","webpack:///./src/workspaces/warehouse/components/PickedBoxErrorModal.vue?fc65","webpack:///./src/workspaces/warehouse/components/PickedBoxErrorModal.vue?530e","webpack:///./src/workspaces/warehouse/components/PalletBoxModal.vue","webpack:///src/workspaces/warehouse/components/PalletBoxModal.vue","webpack:///./src/workspaces/warehouse/components/PalletBoxModal.vue?f885","webpack:///./src/workspaces/warehouse/components/PalletBoxModal.vue?6baf"],"names":["data","code","watch","lodash","debounce","value","this","methods","checkInput","e","tagName","press","target","key","focus","inputs","Array","from","document","querySelectorAll","mounted","window","addEventListener","pickBarcode","destroyed","removeEventListener","handleReadDWSSKU","JSON","parse","type","enterPicker","box_id","setTimeout","$store","getters","readyState","playSuccess","Audio","process","play","playFail","render","_vm","_c","_self","attrs","title","show","fetching","on","$event","$emit","scopedSlots","_u","fn","hasRemoveBoxesListener","staticClass","_v","_s","skuSelected","length","data_table","onSelectAll","_e","removing","content","proxy","onPickSku","referenceFields","item","findIndex","id","selectSku","quantity_picked","referer_quantity","updated_at","staticRenderFns","component","exportDataToCSV","idx","isEmpty","box","staticStyle","quantity_in_inventory","quantity_available_in_pallet","pallet","pallet_id","quantityPickPallet","disabled","palletBoxLoading","enterSku","location","quantity","quantityRemoved","remove","quantitySwap","loading","changePallet"],"mappings":"kHAAA,gBACe,QACbA,KAAI,WACF,MAAO,CACLC,KAAM,KAGVC,MAAO,CACLD,KAAME,OAAOC,U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AGA,gBACA,OACA,WACA,WACA,QACA,kBACA,eACA,qBACA,UACA,eAGA,OACA,KACA,aACA,oBACA,OACA,eACA,uBACA,oBACA,0BACA,kBACA,mBAIA,MACA,aACA,+BACA,OACA,8DACA,sDAKA,iBACA,MACA,yCACA,aACA,eAIA,gBACA,gBACA,kDACA,4CACA,IACA,6BACA,oEACA,qBACA,2CAGA,SACA,wBACA,cACA,oBACA,sBACA,GACA,oBAGA,iCACA,sDACA,GACA,iBACA,oBAEA,YACA,+CACA,iBAEA,+BACA,wCACA,GACA,cACA,iBACA,iBAIA,+BACA,6BACA,iBACA,yBAEA,kBACA,kBAGA,kBACA,2CACA,4BACA,+DAEA,iCACA,YACA,+CACA,iBACA,mBACA,8BAGA,gDACA,YACA,0CACA,QACA,qCAEA,iBACA,oBACA,iBAGA,mCACA,gBACA,YACA,0DACA,kCACA,4BACA,6BAEA,iBACA,mCACA,0BAEA,eACA,iBACA,aACA,sBAEA,oBACA,iBAGA,+BACA,YACA,0CACA,2BACA,yBACA,+CAEA,iBACA,mBACA,gCClSsX,I,YCOlXC,EAAY,eACd,EACApC,EACAmC,GACA,EACA,KACA,KACA,MAIa,OAAAC,E","file":"js/chunk-7ae442de.94dc7acc.js","sourcesContent":["import lodash from \"@/core/plugins/lodash\";\nexport default {\n data() {\n return {\n code: \"\"\n }\n },\n watch: {\n code: lodash.debounce(function (value) {\n if (value) this.code = \"\"\n }, 300),\n },\n methods: {\n checkInput(e) {\n if (!e) return false\n if (e.tagName == \"INPUT\" || e.tagName === 'TEXTAREA') return true\n },\n press(e) {\n if (this.checkInput(e.target)) return;\n if (e.key == \"Enter\") {\n if (this.code) {\n const code = this.code\n this.code = \"\";\n return code\n }\n return;\n }\n this.code += e.key;\n },\n focus() {\n const inputs = Array.from(document.querySelectorAll(\"input\"));\n inputs[0].focus()\n },\n },\n mounted() {\n window.addEventListener(\"keypress\", this.pickBarcode);\n },\n destroyed() {\n window.removeEventListener(\"keypress\", this.pickBarcode);\n },\n}\n","\nexport default {\n methods: {\n handleReadDWSSKU(e) {\n const data = JSON.parse(e.data);\n if (data.type == \"DWS_SKU\") {\n this.enterPicker(data.box_id);\n }\n },\n },\n mounted() {\n setTimeout(() => {\n if (this.$store.getters[\"printer.value\"]?.readyState)\n this.$store.getters[\"printer.value\"].addEventListener(\n \"message\",\n this.handleReadDWSSKU\n );\n }, 1000);\n },\n destroyed() {\n if (this.$store.getters[\"printer.value\"]?.readyState)\n this.$store.getters[\"printer.value\"].removeEventListener(\n \"message\",\n this.handleReadDWSSKU\n );\n },\n}\n","export default {\n methods: {\n playSuccess() { new Audio(process.env.VUE_APP_ASSETS_URL + \"/worf.mp3\").play() },\n playFail() { new Audio(process.env.VUE_APP_ASSETS_URL + \"/wrong-answer.mp3\").play() }\n }\n}\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('TModal',{attrs:{\"title\":_vm.title,\"size\":\"lg\",\"show\":_vm.show,\"fetching\":_vm.fetching},on:{\"update:show\":function($event){return _vm.$emit('update:show', $event)}},scopedSlots:_vm._u([{key:\"actions\",fn:function(){return [(_vm.hasRemoveBoxesListener)?_c('div',{staticClass:\"w-100 d-flex align-items-center justify-content-between\"},[_c('div',{staticClass:\"d-flex\"},[_c('TMessage',{attrs:{\"content\":\"Selected\",\"bold\":\"\"}}),_c('span',{staticClass:\"ml-2\"},[_vm._v(_vm._s(_vm.skuSelected.length))]),(_vm.skuSelected.length < _vm.data_table.length)?_c('CLink',{staticClass:\"ml-2 d-flex align-items-center\",on:{\"click\":_vm.onSelectAll}},[_c('CIcon',{staticClass:\"mr-1\",attrs:{\"name\":\"cil-check\"}}),_c('TMessage',{attrs:{\"content\":\"Select all\",\"bold\":\"\"}})],1):_vm._e(),(_vm.skuSelected.length)?_c('CLink',{staticClass:\"ml-2 d-flex text-danger align-items-center\",on:{\"click\":function($event){_vm.skuSelected = []}}},[_c('CIcon',{staticClass:\"mr-1\",attrs:{\"name\":\"cil-x-circle\"}}),_c('TMessage',{attrs:{\"content\":\"Deselect all\",\"bold\":\"\",\"color\":\"text-danger\"}})],1):_vm._e()],1),_c('div',[(_vm.removing || _vm.fetching)?_c('TSpinner',{attrs:{\"loading\":_vm.removing || _vm.fetching}}):_vm._e(),(!!_vm.skuSelected.length && !_vm.removing)?_c('TButtonRemove',{attrs:{\"options\":{ content: 'Unload box from container' }},on:{\"click\":function($event){return _vm.$emit('remove-boxes', _vm.skuSelected)}}}):_vm._e()],1)]):_c('span')]},proxy:true}])},[(_vm.hasRemoveBoxesListener)?_c('SInputSku',{attrs:{\"disabled\":!_vm.data_table.length,\"placeholder\":\"Select SKU\"},on:{\"enter\":_vm.onPickSku}}):_vm._e(),_c('TTableSimple',{attrs:{\"fields\":_vm.referenceFields,\"items\":_vm.data_table,\"noResult\":\"\"},scopedSlots:_vm._u([{key:\"_\",fn:function({ item }){return [_c('td',[_c('div',{staticClass:\"d-flex align-items-center justify-content-center\"},[(!item.removing)?_c('TButtonRemove',{on:{\"click\":function($event){return _vm.$emit('remove', item, $event)}}}):_c('TSpinner',{attrs:{\"loading\":true}}),(_vm.hasRemoveBoxesListener)?_c('div',{staticClass:\"ml-3\"},[_c('TInputCheckbox',{attrs:{\"checked\":_vm.lodash.findIndex(_vm.skuSelected, ['id', item.id]) !== -1},on:{\"change\":function($event){return _vm.selectSku(item)}}})],1):_vm._e()],1)])]}},{key:\"quantity_picked\",fn:function({ item }){return [_c('td',[_c('TMessageNumber',{attrs:{\"value\":item.quantity_picked,\"editable\":\"\"},on:{\"change\":function($event){return _vm.$emit('focus-quantity:change', item, $event)}}})],1)]}},{key:\"referer_quantity\",fn:function({ item }){return [_c('td',[_c('TMessageNumber',{attrs:{\"value\":item.referer_quantity}})],1)]}},{key:\"updated_at\",fn:function({ item }){return [_c('td',[_c('TMessageDateTime',{attrs:{\"content\":item.updated_at}})],1)]}}])})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\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/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PickedBoxModal.vue?vue&type=script&lang=js&\"; 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/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PickedBoxModal.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./PickedBoxModal.vue?vue&type=template&id=3e663efd&\"\nimport script from \"./PickedBoxModal.vue?vue&type=script&lang=js&\"\nexport * from \"./PickedBoxModal.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 render(){var _vm=this,_c=_vm._self._c;return _c('TModal',{attrs:{\"title\":\"Watch data was been error\",\"size\":\"lg\",\"show\":_vm.show},on:{\"update:show\":function($event){return _vm.$emit('update:show', $event)}},scopedSlots:_vm._u([{key:\"actions\",fn:function(){return [_c('span',[_c('TButtonSave',{attrs:{\"options\":{ content: 'Export CSV' }},on:{\"click\":_vm.exportDataToCSV}})],1)]},proxy:true}])},[_c('TTableSimple',{attrs:{\"fields\":_vm.referenceFields,\"items\":_vm.data_table,\"noResult\":\"\"},scopedSlots:_vm._u([{key:\"_\",fn:function({ item }){return [_c('td',[_c('div',[_vm._v(_vm._s(item.idx))])])]}},{key:\"data\",fn:function({ item }){return [_c('td',[_c('div',[_vm._v(_vm._s(item.data))])])]}},{key:\"type\",fn:function({ item }){return [_c('td',[_c('div',[_vm._v(_vm._s(item.type))])])]}}])})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\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/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PickedBoxErrorModal.vue?vue&type=script&lang=js&\"; 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/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PickedBoxErrorModal.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./PickedBoxErrorModal.vue?vue&type=template&id=35fceb5a&\"\nimport script from \"./PickedBoxErrorModal.vue?vue&type=script&lang=js&\"\nexport * from \"./PickedBoxErrorModal.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 render(){var _vm=this,_c=_vm._self._c;return _c('TModal',{attrs:{\"title\":\"Assemble to stock\",\"size\":\"lg\",\"show\":_vm.show},on:{\"update:show\":function($event){return _vm.$emit('update:show', $event)}},scopedSlots:_vm._u([{key:\"actions\",fn:function(){return [_c('span')]},proxy:true}])},[(!_vm.lodash.isEmpty(_vm.data))?_c('div',{staticClass:\"mb-3\"},[_c('div',{staticClass:\"d-flex h4\"},[_c('TMessage',{attrs:{\"content\":\"Box\"}}),_vm._v(\": \"),_c('h4',{staticClass:\"ml-1\"},[_vm._v(_vm._s(_vm.box.id))])],1),_c('div',{staticClass:\"d-flex\"},[_c('TMessage',{attrs:{\"content\":\"Quantity in stock\",\"bold\":\"\"}}),_vm._v(\": \"),_c('CBadge',{staticClass:\"my-auto ml-1\",staticStyle:{\"font-size\":\"90%\"},attrs:{\"color\":\"info\"}},[_vm._v(\" \"+_vm._s(_vm.data.quantity_in_inventory)+\" \")])],1),_c('div',{staticClass:\"d-flex\"},[_c('TMessage',{attrs:{\"content\":\"Available quantity\",\"bold\":\"\"}}),_vm._v(\": \"),_c('CBadge',{staticClass:\"my-auto ml-1\",staticStyle:{\"font-size\":\"90%\"},attrs:{\"color\":\"info\"}},[_vm._v(\" \"+_vm._s(_vm.data.quantity_available_in_pallet)+\" \")])],1)]):_vm._e(),(!_vm.lodash.isEmpty(_vm.pallet))?_c('div',{staticClass:\"card border-info p-3\"},[_c('div',{staticClass:\"d-flex\"},[_c('TMessage',{attrs:{\"content\":_vm.pallet.pallet_id,\"size\":\"h4\",\"color\":\"primary\",\"noTranslate\":\"\"}}),(_vm.pallet.pallet && _vm.pallet.pallet.location)?_c('SMessagePalletLocation',{staticClass:\"my-auto ml-1\",staticStyle:{\"font-size\":\"90%\"},attrs:{\"location\":_vm.pallet.pallet.location}}):_vm._e()],1),(!_vm.lodash.isEmpty(_vm.data))?_c('div',{staticClass:\"d-flex\"},[_c('TMessage',{attrs:{\"content\":\"Quantity in pallets\",\"bold\":\"\"}}),_vm._v(\": \"),_c('CBadge',{staticClass:\"my-auto ml-1\",staticStyle:{\"font-size\":\"90%\"},attrs:{\"color\":\"info\"}},[_vm._v(\" \"+_vm._s(_vm.pallet.quantity)+\" \")])],1):_vm._e(),_c('TMessage',{staticClass:\"h4 mt-3\",attrs:{\"content\":\"Unload goods from pallets\",\"bold\":\"\"}}),_c('div',{staticClass:\"d-flex mb-3\"},[_c('TInputNumber',{attrs:{\"value\":_vm.quantityRemoved},on:{\"update:value\":function($event){_vm.quantityRemoved=$event}}}),_c('TButton',{staticClass:\"ml-1\",staticStyle:{\"width\":\"100px\"},attrs:{\"options\":{\n disabled:\n _vm.quantityRemoved > _vm.pallet.quantity ||\n !_vm.quantityRemoved ||\n _vm.palletBoxLoading,\n },\"content\":\"Remove\"},on:{\"click\":_vm.remove}})],1),_c('div',[_c('TMessage',{staticClass:\"h4\",attrs:{\"content\":\"Convert pallet\",\"bold\":\"\"}}),_c('CRow',[_c('CCol',{attrs:{\"col\":\"12\",\"lg\":\"6\"}},[_c('SSelectPallet',{staticClass:\"mb-2\",attrs:{\"label\":\"Select pallet\",\"value\":_vm.pallet_id},on:{\"update:value\":function($event){_vm.pallet_id=$event}}})],1),_c('CCol',{attrs:{\"col\":\"12\",\"lg\":\"6\"}},[_c('TInputNumber',{staticClass:\"mb-2\",attrs:{\"value\":_vm.quantitySwap,\"label\":\"Quantity\"},on:{\"update:value\":function($event){_vm.quantitySwap=$event}}})],1)],1),_c('TButton',{staticClass:\"ml-auto\",staticStyle:{\"width\":\"100px\"},attrs:{\"options\":{\n disabled:\n _vm.quantitySwap > _vm.pallet.quantity || !_vm.quantitySwap || _vm.loading,\n },\"content\":\"Change\"},on:{\"click\":_vm.changePallet}})],1)],1):_c('div',[_c('TMessage',{staticClass:\"h4\",attrs:{\"content\":\"Assemble to pallets\",\"bold\":\"\"}}),_c('CRow',[_c('CCol',{attrs:{\"col\":\"12\",\"lg\":\"6\"}},[_c('SSelectPallet',{staticClass:\"mb-2\",attrs:{\"label\":\"Select pallet\",\"value\":_vm.pallet_id},on:{\"update:value\":function($event){_vm.pallet_id=$event}}})],1),_c('CCol',{attrs:{\"col\":\"12\",\"lg\":\"6\"}},[_c('TInputNumber',{staticClass:\"mb-2\",attrs:{\"value\":_vm.quantityPickPallet,\"label\":\"Quantity\"},on:{\"update:value\":function($event){_vm.quantityPickPallet=$event}}})],1)],1),_c('TButton',{staticClass:\"ml-auto\",staticStyle:{\"width\":\"100px\"},attrs:{\"options\":{\n disabled:\n _vm.quantityPickPallet > _vm.data.quantity_in_inventory ||\n !_vm.quantityPickPallet ||\n _vm.palletBoxLoading,\n },\"content\":\"Confirm\"},on:{\"click\":_vm.enterSku}})],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\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/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PalletBoxModal.vue?vue&type=script&lang=js&\"; 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/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PalletBoxModal.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./PalletBoxModal.vue?vue&type=template&id=344556da&\"\nimport script from \"./PalletBoxModal.vue?vue&type=script&lang=js&\"\nexport * from \"./PalletBoxModal.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"],"sourceRoot":""}