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M,GAAYJ,UAAUK,SACtDX,EAAQE,YAAYF,EAAQE,YAAYE,GAAYM,GAAYJ,UAAUjB,IAAMW,EAAQE,YAAYE,GAAYM,QA2B5H,CACI,MAAMN,EAAa,0CACnBJ,EAAQE,YAAYE,GAAcQ,EAAQ,KAC1CT,EAAiBC,GAGrB,CACI,MAAMA,EAAa,uCACnBJ,EAAQE,YAAYE,GAAcQ,EAAQ,KAC1CT,EAAiBC,GAGrB,CACI,MAAMA,EAAa,qCACnBJ,EAAQE,YAAYE,GAAcQ,EAAQ,KAC1CT,EAAiBC,GAIzBS,OAAOC,aAAeD,OAAOC,cAAgB,GAC7CD,OAAOC,aAAab,QAAOc,EAAAA,EAAA,GACpBF,OAAOC,aAAab,SAAW,IAC/BD,EAAQC,SAGXY,OAAOC,aAAaE,mBAAqB,GACzCH,OAAOC,aAAaE,mBAA8B,UAACD,EAAA,GAC5Cf,EAAQE,iCCnEvBe,EAAOC,QAAUC,2BCAjBF,EAAOC,QAAUE","sources":["webpack://Msdyn365.Commerce.Online/./src/actions/eve-order-upload-storage.action.ts?5246","webpack://Msdyn365.Commerce.Online/./src/actions/eve-quick-order-items.action.ts?f266","webpack://Msdyn365.Commerce.Online/./src/actions/eve-quick-order-tab.action.ts?2820","webpack://Msdyn365.Commerce.Online/./lib/__local__/module-registration.js?8a42","webpack://Msdyn365.Commerce.Online/external var \"React\"?0d3b","webpack://Msdyn365.Commerce.Online/external var \"ReactDOM\"?853b"],"sourcesContent":["/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\n\r\nimport * as Msdyn365 from '@msdyn365-commerce/core';\r\nimport { ProductVariant } from '@msdyn365-commerce/retail-proxy';\r\nimport { Cell } from 'read-excel-file/types';\r\n\r\n/**\r\n * EveOrderUploadStorage Input Action\r\n */\r\nexport class EveOrderUploadStorageInput implements Msdyn365.IActionInput {\r\n constructor() {}\r\n\r\n public getCacheKey = () => `EVE-ORDER-UPLOAD-STORAGE`;\r\n public getCacheObjectType = () => 'EVE-ORDER-UPLOAD-STORAGE';\r\n public dataCacheType = (): Msdyn365.CacheType => 'application';\r\n}\r\n\r\nexport interface IEveOrderUploadStorageData {\r\n filename?: string;\r\n items?: {\r\n name?: string;\r\n itemNumber: string;\r\n configuration: string;\r\n source: string;\r\n quantity: number;\r\n notFound?: boolean;\r\n variants?: ProductVariant[];\r\n }[];\r\n itemsFoundOnSearch?: {\r\n name?: string;\r\n itemNumber: string;\r\n configuration: string;\r\n source: string;\r\n quantity: number;\r\n selectedVariant?: ProductVariant;\r\n variants?: ProductVariant[];\r\n }[];\r\n rejectedItems?: {\r\n itemNumber: Cell;\r\n configuration: Cell;\r\n source: Cell;\r\n quantity: Cell;\r\n }[];\r\n}\r\n\r\nconst createInput = (args: Msdyn365.ICreateActionContext): Msdyn365.IActionInput => {\r\n return new EveOrderUploadStorageInput();\r\n};\r\n\r\nasync function action(input: EveOrderUploadStorageInput, ctx: Msdyn365.IActionContext): Promise {\r\n return {};\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n action: >action,\r\n id: 'EveOrderUploadStorage',\r\n input: createInput\r\n});\r\n","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\n\r\nimport * as Msdyn365 from '@msdyn365-commerce/core';\r\nimport { ProductVariant } from '@msdyn365-commerce/retail-proxy';\r\n\r\n/**\r\n * This data action is for storing and syncing data between desktop and mobile view for quick order items set by user\r\n * EveQuickOrderItems Input Action\r\n */\r\nexport class EveQuickOrderItemsInput implements Msdyn365.IActionInput {\r\n constructor() {}\r\n public getCacheKey = () => `EVE-QUICK-ORDER-ITEMS`;\r\n public getCacheObjectType = () => 'EVE-QUICK-ORDER-ITEMS';\r\n public dataCacheType = (): Msdyn365.CacheType => 'none';\r\n}\r\n\r\nexport interface IEveQuickOrderItemsData {\r\n isInit?: boolean;\r\n items: {\r\n itemNumber: string;\r\n quantity: number;\r\n selectedVariantID?: string;\r\n selectedVariant?: ProductVariant;\r\n discount?: { [key in 'minQuantity' | 'discountValue']: string }[];\r\n variants?: ProductVariant[];\r\n description?: { [key in 'name' | 'text']?: string };\r\n }[];\r\n}\r\n\r\nconst createInput = (args: Msdyn365.ICreateActionContext): Msdyn365.IActionInput => {\r\n return new EveQuickOrderItemsInput();\r\n};\r\n\r\nasync function action(input: EveQuickOrderItemsInput, ctx: Msdyn365.IActionContext): Promise {\r\n return { items: new Array(9).fill({ itemNumber: '', quantity: 0 }), isInit: true };\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n action: >action,\r\n id: 'EveQuickOrderItems',\r\n input: createInput\r\n});\r\n","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\n\r\nimport * as Msdyn365 from '@msdyn365-commerce/core';\r\n\r\n/**\r\n * EveQuickOrderTab Input Action\r\n */\r\nexport class EveQuickOrderTabInput implements Msdyn365.IActionInput {\r\n constructor() {}\r\n\r\n public getCacheKey = () => `EVE-QUICK-ORDER-TAB`;\r\n public getCacheObjectType = () => 'EVE-QUICK-ORDER-TAB';\r\n public dataCacheType = (): Msdyn365.CacheType => 'none';\r\n}\r\n\r\nexport interface IEveQuickOrderTabData {\r\n currentTab: 'manual' | 'rfq' | 'import';\r\n}\r\n\r\nconst createInput = (args: Msdyn365.ICreateActionContext): Msdyn365.IActionInput => {\r\n return new EveQuickOrderTabInput();\r\n};\r\n\r\nasync function action(input: EveQuickOrderTabInput, ctx: Msdyn365.IActionContext): Promise {\r\n return { currentTab: 'manual' };\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n action: >action,\r\n id: 'EveQuickOrderTab',\r\n input: createInput\r\n});\r\n","const binding = { modules: {}, dataActions: {} };\n\n const registerActionId = (actionPath) => {\n if (binding.dataActions[actionPath] &&\n binding.dataActions[actionPath].default &&\n binding.dataActions[actionPath].default.prototype &&\n binding.dataActions[actionPath].default.prototype.id) {\n binding.dataActions[binding.dataActions[actionPath].default.prototype.id] = binding.dataActions[actionPath];\n } else {\n Object.keys(binding.dataActions[actionPath] || {}).forEach(exportName => {\n if (binding.dataActions[actionPath][exportName] &&\n binding.dataActions[actionPath][exportName].prototype &&\n binding.dataActions[actionPath][exportName].prototype.Action) {\n binding.dataActions[binding.dataActions[actionPath][exportName].prototype.id] = binding.dataActions[actionPath][exportName];\n }\n })\n }\n };\n\n const registerSanitizedActionPath = (sanitizedActionPath, dataAction) => {\n if (process.env.NODE_ENV === 'development') {\n if (!dataAction.default) {\n throw new Error('Data action path does not have a default export');\n }\n if (!(dataAction.default.prototype.id && binding.dataActions[dataAction.default.prototype.id]) || !binding.dataActions[sanitizedActionPath]) {\n binding.dataActions[sanitizedActionPath] = dataAction;\n }\n } else {\n binding.dataActions[sanitizedActionPath] = dataAction;\n if (!binding.dataActions[sanitizedActionPath].default) {\n throw new Error('Data action path ' + sanitizedActionPath + ' does not have a default export');\n }\n binding.dataActions[sanitizedActionPath].default.prototype.RegistrationId = sanitizedActionPath;\n if (binding.dataActions[sanitizedActionPath].default.prototype.id) {\n binding.dataActions[binding.dataActions[sanitizedActionPath].default.prototype.id] = sanitizedActionPath;\n }\n }\n };\n \n\n { \n const actionPath = 'actions/eve-order-upload-storage.action';\n binding.dataActions[actionPath] = require('partner/actions/eve-order-upload-storage.action');\n registerActionId(actionPath);\n }\n\n { \n const actionPath = 'actions/eve-quick-order-items.action';\n binding.dataActions[actionPath] = require('partner/actions/eve-quick-order-items.action');\n registerActionId(actionPath);\n }\n\n { \n const actionPath = 'actions/eve-quick-order-tab.action';\n binding.dataActions[actionPath] = require('partner/actions/eve-quick-order-tab.action');\n registerActionId(actionPath);\n }\n\n \n window.__bindings__ = window.__bindings__ || {};\n window.__bindings__.modules = {\n ...window.__bindings__.modules || {},\n ...binding.modules\n };\n \n window.__bindings__.packageDataActions = {};\n window.__bindings__.packageDataActions['__local__'] = {\n ...binding.dataActions\n };","module.exports = React;","module.exports = ReactDOM;"],"names":["EveOrderUploadStorageInput","constructor","getCacheKey","getCacheObjectType","dataCacheType","Msdyn365","action","async","input","ctx","id","args","EveQuickOrderItemsInput","items","Array","fill","itemNumber","quantity","isInit","EveQuickOrderTabInput","currentTab","binding","modules","dataActions","registerActionId","actionPath","default","prototype","Object","keys","forEach","exportName","Action","require","window","__bindings__","_objectSpread","packageDataActions","module","exports","React","ReactDOM"],"sourceRoot":""}