{"version":3,"sources":["webpack:///./src/@core/dev-extreme/utils/pager.js","webpack:///./src/http/requests/inventory/inventoryService.js","webpack:///./src/@core/dev-extreme/mixins/grid/base.js"],"names":["Pager","options","sortArr","arguments","length","undefined","_classCallCheck","_defineProperty","pageSize","allowedPageSizes","showInfo","showNavigationButtons","showPageSizeSelector","visible","staticPageSize","this","sortArray","_toConsumableArray","selector","desc","defaultOptions","Object","assign","size","page","staticPageable","concat","_createClass","key","value","skip","take","R","Number","parseInt","ObjectToQueryString","arr","_this","splice","forEach","element","field","replace","toLowerCase","order","push","_this2","_this3","a","toString","queryString","obj","sortString","_regeneratorRuntime","e","t","r","prototype","n","hasOwnProperty","o","defineProperty","i","Symbol","iterator","c","asyncIterator","u","toStringTag","define","enumerable","configurable","writable","wrap","Generator","create","Context","makeInvokeMethod","tryCatch","type","arg","call","h","l","f","s","y","GeneratorFunction","GeneratorFunctionPrototype","p","d","getPrototypeOf","v","values","g","defineIteratorMethods","_invoke","AsyncIterator","invoke","_typeof","resolve","__await","then","callInvokeWithMethodAndArg","Error","done","method","delegate","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","return","TypeError","resultName","next","nextLoc","pushTryEntry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","resetTryEntry","completion","reset","isNaN","displayName","isGeneratorFunction","constructor","name","mark","setPrototypeOf","__proto__","awrap","async","Promise","keys","reverse","pop","prev","charAt","slice","stop","rval","handle","complete","finish","catch","delegateYield","asyncGeneratorStep","_asyncToGenerator","apply","_next","_throw","fetchById","id","_callee","promise","_context","reject","axios","get","endpoints","inventory","Controller","findById","response","data","body","error","result","fetchByQuery","searchFilter","pageable","post","getByQuery","getByQueryIndividualItems","fetchItemsByLocation","getItemsByLocation","fetchItemsByProductId","getItemsByProduct","inventorySnapshot","countItemsByCompanyIdAndStoreAndAction","query","fetchItemsByAsinAndParams","itemList","getItemsByAsinAndParams","moveInventory","put","moveInventoryByLocation","createOrAdd","item","_callee2","_context2","decrementItemQuantity","_callee3","_context3","updateReserveItemsByProductId","_callee4","_context4","update","delete","mergeMskuFnsku","_callee5","_context5","getByIds","ids","_callee6","_context6","amazonInventoryQuery","_callee7","_context7","updateReservedById","_callee8","_context8","decrementItemQuantityById","_callee9","_context9","setLocationById","_callee10","_context10","updateMskuById","msku","_callee11","_context11","updateAsinById","asin","upc","_callee12","_context12","updateExpirationDateById","expirationDate","_callee13","_context13","pager","computed","pagerOptions","toCreateOptions","setHeight","methods","customizeColumns","columns","column","cssClass","setPagination","context","setContext","onContentReady","onInitialized","component","option","onExporting","workbook","ExcelJS","Workbook","worksheet","addWorksheet","exportDataGrid","autoFilterEnabled","xlsx","writeBuffer","buffer","saveAs","Blob","cancel"],"mappings":"06DAC8D,IAEzCA,EAAK,WAWxB,SAAAA,EAAYC,GAA8B,IAArBC,EAAOC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,QAAGE,EAASC,EAAA,KAAAN,GAAAO,EAAA,sBAVvB,CACfC,SAAU,GACVC,iBAAkB,CAAC,GAAI,GAAI,IAAK,IAAK,IAAK,KAC1CC,UAAU,EACVC,uBAAuB,EACvBC,sBAAsB,EACtBC,SAAS,EACTC,eAAgB,MAIhBC,KAAKC,UAAad,GAAWA,EAAQE,OAAS,EAACa,EAAQf,GAAW,CAAC,CAAEgB,SAAU,KAAMC,MAAM,IAC3FJ,KAAKK,eAAiBC,OAAOC,OAAOP,KAAKK,eAAgBnB,GACzDc,KAAKQ,KAAOR,KAAKK,eAAeZ,SAChCO,KAAKS,KAAO,EACZT,KAAKU,eAAiB,eAAHC,OAAkBX,KAAKK,eAAeN,gBAC1D,OAAAa,EAAA3B,EAAA,EAAA4B,IAAA,gBAAAC,MAED,SAAcC,EAAMC,GACdC,OAAKC,OAAQH,IAASA,GAAQ,GAAKE,OAAKC,OAAQF,IAASA,EAAO,IAClEhB,KAAKS,KAAOU,UAAYJ,EAAO,GAAKC,EAAQ,EAAI,IAChDhB,KAAKQ,KAAOQ,KAEf,CAA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3E,EAAI4E,IAAgB,OAA/F,OAAN7D,EAAM+D,EAAA9H,KAAA8H,EAAA3H,OAAA,SACL4D,EAAOH,KAAKC,MAAI,wBAAAiE,EAAA3F,UAAA0F,MAF0BlF,M,kCCxSrD,sEAOMvJ,EAAU,GACV2O,EAAQ,IAAI5O,OAAMC,GAET,QACbwK,KAAI,WACF,MAAO,CACLM,SAAU,IAAI/K,SAGlB6O,SAAU,CACRC,aAAc,CACZ3E,IAAG,WACD,OAAOyE,EAAMG,oBAGjBC,UAAS,WACP,MAAO,wBAKXC,QAAS,CACPC,iBAAgB,SAACC,GACfA,EAAQ5M,SAAQ,SAAA6M,GACdA,EAAOC,SAAW,gCAGtBC,cAAa,SAACC,GACZxO,KAAKgK,SAASyE,WAAWD,IAE3BE,eAAc,SAACnM,KAEfoM,cAAa,SAACpM,GACZA,EAAEqM,UAAUC,OAAO,qBAAqB,IAE1CC,YAAW,SAACvM,GACV,IAAMwM,EAAW,IAAIC,IAAQC,SACvBC,EAAYH,EAASI,aAAa,gBACxCC,eAAe,CACbR,UAAWrM,EAAEqM,UACbM,UAAWA,EACXG,mBAAmB,IAClB9J,MAAK,WACNwJ,EAASO,KAAKC,cAAchK,MAAK,SAAAiK,GAC/BC,IACE,IAAIC,KAAK,CAACF,GAAS,CAAExL,KAAM,6BAC3B,oBAINzB,EAAEoN,QAAS","file":"js/chunk-ba6c4746.de307f78.js","sourcesContent":["import * as R from 'ramda'\nimport { ObjectToQueryString } from '@robustshell/utils/index'\n\nexport default class Pager {\n defaultOptions = {\n pageSize: 25, // take\n allowedPageSizes: [25, 50, 100, 150, 200, 250],\n showInfo: true,\n showNavigationButtons: true,\n showPageSizeSelector: true,\n visible: true,\n staticPageSize: 200,\n }\n\n constructor(options, sortArr = undefined) {\n this.sortArray = (sortArr && sortArr.length > 0) ? [...sortArr] : [{ selector: 'id', desc: true }]\n this.defaultOptions = Object.assign(this.defaultOptions, options)\n this.size = this.defaultOptions.pageSize\n this.page = 0\n this.staticPageable = `page=0&size=${this.defaultOptions.staticPageSize}`\n }\n\n setPageNumber(skip, take) {\n if (R.is(Number, skip) && skip >= 0 && R.is(Number, take) && take > 0) {\n this.page = parseInt((((skip - 1) / take) + 1), 10)\n this.size = take\n }\n }\n\n toCreatePageable() {\n return ObjectToQueryString({ page: this.page, size: this.size })\n }\n\n toCreateOptions() {\n return {\n pageSize: this.defaultOptions.pageSize,\n allowedPageSizes: this.defaultOptions.allowedPageSizes,\n showInfo: this.defaultOptions.showInfo,\n showNavigationButtons: this.defaultOptions.showNavigationButtons,\n showPageSizeSelector: this.defaultOptions.showPageSizeSelector,\n visible: this.defaultOptions.visible,\n }\n }\n\n setSortOrder(arr) {\n if (arr && arr.length > 0) {\n this.sortArray.splice(0, this.sortArray.length)\n arr.forEach(element => {\n const field = element.selector.replace(/([a-z])([A-Z])/gm, '$1_$2').toLowerCase()\n const order = element.desc ? 'desc' : 'asc'\n this.sortArray.push(field)\n this.sortArray.push(order)\n })\n }\n }\n\n setSortQuery(arr) {\n if (arr && arr.length > 0) {\n this.sortArray.splice(0, this.sortArray.length)\n arr.forEach(element => {\n const field = element.selector // Keep the camelCase format\n const order = element.desc ? 'desc' : 'asc'\n this.sortArray.push(field)\n this.sortArray.push(order)\n })\n }\n }\n\n // for camelCase pageable sort, used with toCreateSortable method\n addSortOrder(arr) {\n this.sortArray = []\n arr.forEach(a => this.sortArray.push(a))\n }\n\n toCreateSortOrder() {\n return `${this.sortArray.toString()}`\n }\n\n // camelCase pageable sort\n toCreateSortable() {\n let queryString = ''\n this.sortArray.forEach(obj => {\n const sortString = `sort=${obj.selector},${obj.desc ? 'desc' : 'asc'}`\n queryString += `&${sortString}`\n })\n return queryString\n }\n}\n","import axios from '@axios'\nimport endpoints from '@/http/endpoints/index'\n\nexport default {\n\n async fetchById(id) {\n const promise = new Promise((resolve, reject) => {\n axios.get(endpoints.inventory.Controller.findById(id))\n .then(response => {\n resolve({\n data: response.data.body,\n })\n })\n .catch(error => reject(error))\n })\n\n promise.then(\n result => result,\n error => error,\n )\n\n return promise\n },\n\n fetchByQuery(searchFilter, pageable = {}) {\n const promise = new Promise((resolve, reject) => {\n axios.post(endpoints.inventory.Controller.getByQuery(pageable), searchFilter)\n .then(response => {\n resolve({\n data: response.data.body,\n })\n })\n .catch(error => reject(error))\n })\n\n promise.then(\n result => result,\n error => error,\n )\n\n return promise\n },\n\n getByQueryIndividualItems(searchFilter, pageable = {}) {\n const promise = new Promise((resolve, reject) => {\n axios.post(endpoints.inventory.Controller.getByQueryIndividualItems(pageable), searchFilter)\n .then(response => {\n resolve({\n data: response.data.body,\n })\n })\n .catch(error => reject(error))\n })\n\n promise.then(\n result => result,\n error => error,\n )\n\n return promise\n },\n\n fetchItemsByLocation(searchFilter, pageable = {}) {\n const promise = new Promise((resolve, reject) => {\n axios.post(endpoints.inventory.Controller.getItemsByLocation(pageable), searchFilter)\n .then(response => {\n resolve({\n data: response.data.body,\n })\n })\n .catch(error => reject(error))\n })\n\n promise.then(\n result => result,\n error => error,\n )\n\n return promise\n },\n\n fetchItemsByProductId(searchFilter, pageable = {}) {\n const promise = new Promise((resolve, reject) => {\n axios.post(endpoints.inventory.Controller.getItemsByProduct(pageable), searchFilter)\n .then(response => {\n resolve({\n data: response.data.body,\n })\n })\n .catch(error => reject(error))\n })\n\n promise.then(\n result => result,\n error => error,\n )\n\n return promise\n },\n\n inventorySnapshot(searchFilter, pageable = {}) {\n const promise = new Promise((resolve, reject) => {\n axios.post(endpoints.inventory.Controller.inventorySnapshot(pageable), searchFilter)\n .then(response => {\n resolve({\n data: response.data.body,\n })\n })\n .catch(error => reject(error))\n })\n\n promise.then(\n result => result,\n error => error,\n )\n\n return promise\n },\n\n countItemsByCompanyIdAndStoreAndAction(query) {\n const promise = new Promise((resolve, reject) => {\n axios.get(endpoints.inventory.Controller.countItemsByCompanyIdAndStoreAndAction(query))\n .then(response => {\n resolve({\n data: response.data.body,\n })\n })\n .catch(error => reject(error))\n })\n\n promise.then(\n result => result,\n error => error,\n )\n\n return promise\n },\n\n fetchItemsByAsinAndParams(query, itemList) {\n const promise = new Promise((resolve, reject) => {\n axios.post(endpoints.inventory.Controller.getItemsByAsinAndParams(query), itemList)\n .then(response => {\n resolve({\n data: response.data.body,\n })\n })\n .catch(error => reject(error))\n })\n\n promise.then(\n result => result,\n error => error,\n )\n\n return promise\n },\n\n moveInventory(data) {\n return new Promise((resolve, reject) => {\n axios.put(endpoints.inventory.Controller.moveInventory(), data)\n .then(response => {\n resolve({\n data: response.data.body,\n })\n })\n .catch(error => {\n reject(error)\n })\n })\n },\n\n moveInventoryByLocation(data) {\n return new Promise((resolve, reject) => {\n axios.put(endpoints.inventory.Controller.moveInventoryByLocation(), data)\n .then(response => {\n resolve(response)\n })\n .catch(error => {\n reject(error)\n })\n })\n },\n\n async createOrAdd(item) {\n return new Promise((resolve, reject) => {\n axios.post(endpoints.inventory.Controller.createOrAdd(), item)\n .then(response => {\n resolve({\n data: response.data.body,\n })\n })\n .catch(error => { reject(error) })\n })\n },\n\n async decrementItemQuantity(item) {\n const promise = new Promise((resolve, reject) => {\n axios\n .put(endpoints.inventory.Controller.decrementItemQuantity(), item)\n .then(response => {\n resolve({\n data: response.data.body,\n })\n })\n .catch(error => reject(error))\n })\n promise.then(\n result => result,\n error => error,\n )\n return promise\n },\n\n async updateReserveItemsByProductId(item) {\n const promise = new Promise((resolve, reject) => {\n axios\n .put(endpoints.inventory.Controller.updateReserveItemsByProductId(), item)\n .then(response => {\n resolve({\n data: response.data.body,\n })\n })\n .catch(error => reject(error))\n })\n promise.then(\n result => result,\n error => error,\n )\n return promise\n },\n\n update(data) {\n return new Promise((resolve, reject) => {\n axios.put(endpoints.inventory.Controller.update(), data)\n .then(response => {\n resolve(response)\n })\n .catch(error => {\n reject(error)\n })\n })\n },\n\n delete(id) {\n return new Promise((resolve, reject) => {\n axios.delete(endpoints.inventory.Controller.delete(id))\n .then(response => {\n resolve(response)\n })\n .catch(error => {\n reject(error)\n })\n })\n },\n async mergeMskuFnsku(data) {\n return new Promise((resolve, reject) => {\n axios.put(endpoints.inventory.Controller.mergeMskuFnsku(), data)\n .then(response => {\n resolve({\n data: response.data.body,\n })\n })\n .catch(error => { reject(error) })\n })\n },\n\n async getByIds(ids) {\n const result = await axios.post(endpoints.inventory.Controller.getByIds(), ids)\n return result.data.body\n },\n\n async amazonInventoryQuery(data, pageable) {\n const result = await axios.post(endpoints.inventory.Controller.amazonInventoryQuery(pageable), data)\n return result.data.body\n },\n\n async updateReservedById(data) {\n const result = await axios.put(endpoints.inventory.Controller.updateReservedById(), data)\n return result.data.body\n },\n async decrementItemQuantityById(data) {\n const result = await axios.put(endpoints.inventory.Controller.decrementItemQuantityById(), data)\n return result.data.body\n },\n async setLocationById(data) {\n const result = await axios.put(endpoints.inventory.Controller.setLocationById(), data)\n return result.data.body\n },\n async updateMskuById(id, msku) {\n const result = await axios.put(endpoints.inventory.Controller.updateMskuById(id, msku))\n return result.data.body\n },\n async updateAsinById(id, asin, msku, upc) {\n const result = await axios.put(endpoints.inventory.Controller.updateAsinById(id, asin, msku, upc))\n return result.data.body\n },\n async updateExpirationDateById(id, expirationDate) {\n const result = await axios.put(endpoints.inventory.Controller.updateExpirationDateById(id, expirationDate))\n return result.data.body\n },\n}\n","/* eslint-disable no-param-reassign */\n/* eslint-disable no-unused-vars */\nimport { exportDataGrid } from 'devextreme/excel_exporter'\nimport ExcelJS from 'exceljs'\nimport saveAs from 'file-saver'\nimport Pager from '@core/dev-extreme/utils/pager'\n\nconst options = {}\nconst pager = new Pager(options)\n\nexport default {\n data() {\n return {\n pageable: new Pager(),\n }\n },\n computed: {\n pagerOptions: {\n get() {\n return pager.toCreateOptions()\n },\n },\n setHeight() {\n return 'calc(100vh - 195px)'\n // return window.innerHeight / 1.2\n },\n },\n\n methods: {\n customizeColumns(columns) {\n columns.forEach(column => {\n column.cssClass = 'dx-column-vertical-middle'\n })\n },\n setPagination(context) {\n this.pageable.setContext(context)\n },\n onContentReady(e) {\n },\n onInitialized(e) {\n e.component.option('loadPanel.enabled', false)\n },\n onExporting(e) {\n const workbook = new ExcelJS.Workbook()\n const worksheet = workbook.addWorksheet('ReceiveItems')\n exportDataGrid({\n component: e.component,\n worksheet: worksheet,\n autoFilterEnabled: true,\n }).then(() => {\n workbook.xlsx.writeBuffer().then(buffer => {\n saveAs(\n new Blob([buffer], { type: 'application/octet-stream' }),\n 'Items.xlsx',\n )\n })\n })\n e.cancel = true\n },\n },\n}\n"],"sourceRoot":""}