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E,GAAYK,GAAYH,UAAUvI,IAAMiI,EAAQE,YAAYE,GAAYK,QA2B5H,CACI,MAAML,EAAa,mDACnBJ,EAAQE,YAAYE,GAAcO,EAAQ,MAC1CR,EAAiBC,GAGrB,CACI,MAAMA,EAAa,wDACnBJ,EAAQE,YAAYE,GAAcO,EAAQ,MAC1CR,EAAiBC,GAGrB,CACI,MAAMA,EAAa,mDACnBJ,EAAQE,YAAYE,GAAcO,EAAQ,KAC1CR,EAAiBC,GAGrB,CACI,MAAMA,EAAa,0CACnBJ,EAAQE,YAAYE,GAAcO,EAAQ,KAC1CR,EAAiBC,GAGrB,CACI,MAAMA,EAAa,sCACnBJ,EAAQE,YAAYE,GAAcO,EAAQ,KAC1CR,EAAiBC,GAIzBQ,OAAOC,aAAeD,OAAOC,cAAgB,GAC7CD,OAAOC,aAAaZ,QAAOnF,EAAAA,EAAA,GACpB8F,OAAOC,aAAaZ,SAAW,IAC/BD,EAAQC,SAGXW,OAAOC,aAAaC,mBAAqB,GACzCF,OAAOC,aAAaC,mBAA8B,UAAChG,EAAA,GAC5CkF,EAAQE,iCC/EvBa,EAAOC,QAAUC,2BCAjBF,EAAOC,QAAUE","sources":["webpack://suedwolle/./src/actions/check-line-inventory.ts?456d","webpack://suedwolle/./src/actions/custom-add-order-template-to-cart.action.ts?6986","webpack://suedwolle/./src/actions/get-full-order-template-with-inventory.action.ts?193e","webpack://suedwolle/./src/actions/out-of-stock-order-template-lines.action.ts?2adc","webpack://suedwolle/./src/actions/savesubmit-enabledisable.action.ts?d0df","webpack://suedwolle/./src/actions/search-order-history.action.ts?1ac3","webpack://suedwolle/./src/utilities/helpers.ts?b4a4","webpack://suedwolle/./lib/__local__/module-registration.js?8a42","webpack://suedwolle/external var \"React\"?0d3b","webpack://suedwolle/external var \"ReactDOM\"?853b"],"sourcesContent":["import { IProductInventoryInformation } from '@msdyn365-commerce-modules/retail-actions';\r\nimport { IActionContext } from '@msdyn365-commerce/core';\r\nimport { AttributeValue, Cart } from '@msdyn365-commerce/retail-proxy';\r\nimport { getQuantityThreshold, percentageValue } from '../utilities/helpers';\r\n\r\nexport const checkLineInventory = async (\r\n    ctx: IActionContext,\r\n    productRecId: number,\r\n    productQuantity: number,\r\n    inventory: IProductInventoryInformation[],\r\n    cart?: Cart,\r\n    unitOfMeasure?: string\r\n) => {\r\n    let lineQuantity = productQuantity;\r\n    let originalQuantity = productQuantity;\r\n    let quantityToSubtract = 0;\r\n    const quantityThreshold = ctx.requestContext.app.config.quantityThreshold;\r\n    const upperQuantityThreshold = ctx.requestContext.app.config.upperQuantityThreshold\r\n    const upperWeightThresholdKG = ctx.requestContext.app.config.upperWeightThresholdKG\r\n \r\n    const quantityThresholdAttributeName = ctx.requestContext.app.config.quantityThresholdAttributeName;\r\n    const cartline = cart?.CartLines?.find(cartLine => cartLine.ProductId === productRecId);\r\n\r\n    if (cartline && cartline.Quantity) {\r\n        const thresholdAttributeValue: AttributeValue | undefined = cartline?.AttributeValues?.find(\r\n            attr => attr.Name === quantityThresholdAttributeName\r\n        );\r\n        // eslint-disable-next-line radix\r\n        quantityToSubtract = parseInt(thresholdAttributeValue?.TextValue || '0');\r\n        originalQuantity = cartline.Quantity - quantityToSubtract;\r\n        originalQuantity += productQuantity;\r\n    }\r\n    let thresholdQuantity = 0;\r\n    if (quantityThreshold > 0 && upperQuantityThreshold > 0 ) {\r\n        const weightCheckOnThreshold = getQuantityThreshold(originalQuantity ,  upperWeightThresholdKG) ? quantityThreshold : upperQuantityThreshold;\r\n        const quantityToAdd = unitOfMeasure === 'pcs' ? 0 : percentageValue(originalQuantity, weightCheckOnThreshold) ;\r\n        thresholdQuantity = quantityToAdd;\r\n        lineQuantity += quantityToAdd;\r\n        lineQuantity -= quantityToSubtract;\r\n    }\r\n    const lineInventory = inventory.find(availability => availability.ProductAvailableQuantity.ProductId === productRecId);\r\n    const totalAvailable = lineInventory?.ProductAvailableQuantity?.AvailableQuantity || 0;\r\n\r\n    const res = {\r\n        isValidQuantity: totalAvailable !== 0 && originalQuantity + thresholdQuantity <= totalAvailable,\r\n        lineQuantity,\r\n        thresholdQuantity\r\n    };\r\n    return res;\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 {\r\n    CacheType,\r\n    createObservableDataAction,\r\n    IAction,\r\n    IActionContext,\r\n    IActionInput,\r\n    ICreateActionContext\r\n} from '@msdyn365-commerce/core';\r\nimport { getCartState } from '@msdyn365-commerce/global-state';\r\nimport { AsyncResult, CartLine, QueryResultSettings } from '@msdyn365-commerce/retail-proxy';\r\nimport {\r\n    getPaginatedOrderTemplateLinesAction,\r\n    GetPaginatedOrderTemplateLinesInput,\r\n    mapAggregatedProductInventoryInformation,\r\n    IProductInventoryInformation,\r\n    createInventoryAvailabilitySearchCriteria\r\n} from '@msdyn365-commerce-modules/retail-actions';\r\nimport { addCartLinesAsync, updateAsync, updateCartLinesAsync } from '@msdyn365-commerce/retail-proxy/dist/DataActions/CartsDataActions.g';\r\nimport { checkLineInventory } from './check-line-inventory';\r\nimport { getEstimatedAvailabilityAsync } from '@msdyn365-commerce/retail-proxy/dist/DataActions/ProductsDataActions.g';\r\nimport { addAttribute, _makeAttribute } from '../utilities/helpers';\r\nimport { IOutOfStockOrderTemplateLinesData, OutOfStockOrderTemplateLinesInput } from './out-of-stock-order-template-lines.action';\r\n\r\n/**\r\n * CustomAddOrderTemplateToCart Input Action\r\n */\r\nexport class CustomAddOrderTemplateToCartInput implements IActionInput {\r\n    public readonly orderTemplateId: string;\r\n\r\n    constructor(orderTemplateId: string) {\r\n        this.orderTemplateId = orderTemplateId;\r\n    }\r\n    // TODO: Determine if the results of this get action should cache the results and if so provide\r\n    // a cache object type and an appropriate cache key\r\n    public getCacheKey = () => `TODO`;\r\n    public getCacheObjectType = () => 'TODO';\r\n    public dataCacheType = (): CacheType => 'none';\r\n}\r\n\r\n/**\r\n * CreateInput method for the AddOrderTemplateToCart method.\r\n * @param {ICreateActionContext} inputData The input data passed to the createInput method.\r\n * @param {string} orderTemplateId The id of template.\r\n */\r\nexport const customAddOrderTemplateToCartInput = (\r\n    inputData: ICreateActionContext,\r\n    orderTemplateId: string\r\n): CustomAddOrderTemplateToCartInput => {\r\n    const { requestContext } = inputData;\r\n    if (!requestContext.user.isAuthenticated) {\r\n        throw new Error('Unable to create order template. User is not authenticated.');\r\n    }\r\n    return new CustomAddOrderTemplateToCartInput(orderTemplateId);\r\n};\r\n\r\n/**\r\n * The action method for the AddOrderTemplateToCart data action.\r\n * @param {CustomAddOrderTemplateToCartInput} input The action input.\r\n * @param {IActionContext} ctx The action context.\r\n * @param context\r\n */\r\nexport async function customAddOrderTemplateToCartAction(\r\n    input: CustomAddOrderTemplateToCartInput,\r\n    context: IActionContext\r\n): Promise<CartLine[]> {\r\n    const cartState = await getCartState(context);\r\n    const chunkCount = 1000;\r\n    const queryResultSettings: QueryResultSettings = {\r\n        Paging: {\r\n            Top: chunkCount,\r\n            Skip: 0\r\n        }\r\n    };\r\n    const getPaginatedOrderTemplateLinesInput = new GetPaginatedOrderTemplateLinesInput(input.orderTemplateId, queryResultSettings);\r\n    let orderTemplateLines = await getPaginatedOrderTemplateLinesAction(getPaginatedOrderTemplateLinesInput, context);\r\n    let addedCartLines: CartLine[] = [];\r\n    const cartLinesToUpdate: CartLine[] = [];\r\n    let productAvailabilities: IProductInventoryInformation[] = [];\r\n    for (let skip = chunkCount; orderTemplateLines.lines.length > 0; skip += chunkCount) {\r\n        const cartLines: CartLine[] = orderTemplateLines.lines.map(productLine => {\r\n            const cartLine: CartLine = {\r\n                ItemId: productLine.fullProduct?.ProductDetails.ItemId,\r\n                ProductId: productLine.productListLine.ProductId,\r\n                Quantity: productLine.productListLine.Quantity,\r\n                TrackingId: '',\r\n                UnitOfMeasureSymbol: productLine.productListLine.UnitOfMeasure\r\n            };\r\n            return cartLine;\r\n        });\r\n        // VSI Customization\r\n        const productIds = cartLines.map(line => line.ProductId!);\r\n        const searchCriteria = createInventoryAvailabilitySearchCriteria(context, productIds, true);\r\n        const linesProductAvailabilities = await getEstimatedAvailabilityAsync(\r\n            { callerContext: context, bypassCache: 'get' },\r\n            searchCriteria\r\n        );\r\n        if (\r\n            linesProductAvailabilities &&\r\n            linesProductAvailabilities.ProductWarehouseInventoryAvailabilities &&\r\n            linesProductAvailabilities.ProductWarehouseInventoryAvailabilities.length > 0\r\n        ) {\r\n            productAvailabilities = mapAggregatedProductInventoryInformation(context, linesProductAvailabilities);\r\n        }\r\n        for (const [i, cartline] of cartLines.entries()) {\r\n            const lineResult = await checkLineInventory(\r\n                context,\r\n                cartline.ProductId!,\r\n                cartline.Quantity!,\r\n                productAvailabilities,\r\n                cartState.cart\r\n            );\r\n            if (!lineResult.isValidQuantity) {\r\n                const templateLine = orderTemplateLines.lines.find(\r\n                    productLine => productLine.productListLine.ProductId === cartline.ProductId!\r\n                );\r\n                const outOfStockItems = context.get('OutOfStockOrderTemplateLinesObject', 'OutOfStockOrderTemplateLines') as AsyncResult<\r\n                    IOutOfStockOrderTemplateLinesData\r\n                >;\r\n                const outOfStockItemsData = outOfStockItems && outOfStockItems.result?.outOfStockItems;\r\n                if (templateLine && outOfStockItemsData) {\r\n                    let outOfStockItems = [...outOfStockItemsData];\r\n                    outOfStockItems.push(templateLine.productListLine.LineId!);\r\n                    outOfStockItems = [...new Set(outOfStockItems)];\r\n                    context.update(new OutOfStockOrderTemplateLinesInput(), {\r\n                        outOfStockItems\r\n                    });\r\n                }\r\n                cartLines.splice(i, 1);\r\n            } else {\r\n                cartline.Quantity = lineResult.lineQuantity;\r\n                cartline.ExtensionProperties = [];\r\n                cartline.ExtensionProperties?.push({\r\n                    Key: 'threshold',\r\n                    Value: {\r\n                        StringValue: lineResult.thresholdQuantity.toString()\r\n                    }\r\n                });\r\n            }\r\n        }\r\n        if (cartLines.length === 0) {\r\n            throw new Error('Unable to add order template to cart.');\r\n        }\r\n        // VSI Customization End\r\n        const updatedCart = await addCartLinesAsync({ callerContext: context }, cartState.cart.Id, cartLines, cartState.cart.Version).catch(\r\n            error => {\r\n                context.telemetry.trace(error);\r\n                context.telemetry.trace('Unable to add order template to cart.');\r\n                throw error;\r\n            }\r\n        );\r\n        addedCartLines = addedCartLines.concat(cartLines);\r\n        // VSI Customization\r\n        updatedCart.CartLines?.forEach(cartLine => {\r\n            const existingLine = addedCartLines.find(line => line.ProductId === cartLine.ProductId);\r\n            if (existingLine && existingLine.ExtensionProperties) {\r\n                cartLine.ExtensionProperties = [...existingLine.ExtensionProperties];\r\n                cartLinesToUpdate.push(cartLine);\r\n            }\r\n        });\r\n        // VSI Customization End\r\n        getPaginatedOrderTemplateLinesInput.queryResultSettings.Paging!.Skip = skip;\r\n        orderTemplateLines = await getPaginatedOrderTemplateLinesAction(getPaginatedOrderTemplateLinesInput, context);\r\n    }\r\n    // VSI Customization\r\n    for (const line of cartLinesToUpdate) {\r\n        const threshold = line.ExtensionProperties?.find(property => property.Key === 'threshold');\r\n        if (line.AttributeValues) {\r\n            let cartLineAttributes = [...line.AttributeValues];\r\n            const quantityThresholdAttributeName = context.requestContext.app.config.quantityThresholdAttributeName;\r\n            const attributeObj = _makeAttribute(quantityThresholdAttributeName, threshold?.Value?.StringValue);\r\n            cartLineAttributes = addAttribute(cartLineAttributes, attributeObj);\r\n            line.AttributeValues = cartLineAttributes;\r\n        }\r\n    }\r\n    if (cartLinesToUpdate.length === 0) {\r\n        throw new Error('Unable to add order template to cart.');\r\n    }\r\n    const updatedCart = await updateCartLinesAsync({ callerContext: context }, cartState?.cart.Id || '', cartLinesToUpdate);\r\n    await updateAsync({ callerContext: context }, updatedCart);\r\n    // VSI Customization End\r\n    await cartState.refreshCart({});\r\n    return addedCartLines;\r\n}\r\n\r\nexport const customAddOrderTemplateToCartActionDataAction = createObservableDataAction<CartLine[]>({\r\n    id: '@msdyn365-commerce-modules/retail-actions/order-templates/add-order-template-to-cart',\r\n    action: <IAction<CartLine[]>>customAddOrderTemplateToCartAction,\r\n    input: customAddOrderTemplateToCartInput\r\n});\r\nexport default customAddOrderTemplateToCartActionDataAction;\r\n","/*--------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * See License.txt in the project root for license information.\r\n *--------------------------------------------------------------*/\r\n\r\nimport {\r\n    CacheType,\r\n    createObservableDataAction,\r\n    IAction,\r\n    IActionContext,\r\n    IActionInput,\r\n    ICreateActionContext\r\n} from '@msdyn365-commerce/core';\r\nimport { IQueryResultSettings } from '@msdyn365-commerce/retail-proxy';\r\nimport { ProductList } from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceTypes.g';\r\nimport {\r\n    getOrderTemplates,\r\n    GetOrderTemplatesInput,\r\n    getPaginatedOrderTemplateLinesAction,\r\n    GetPaginatedOrderTemplateLinesInput,\r\n    QueryResultSettingsProxy,\r\n    OrderTemplate,\r\n    OrderTemplateLine,\r\n    createInventoryAvailabilitySearchCriteria,\r\n    mapAggregatedProductInventoryInformation,\r\n    IProductInventoryInformation\r\n} from '@msdyn365-commerce-modules/retail-actions';\r\nimport { getEstimatedAvailabilityAsync } from '@msdyn365-commerce/retail-proxy/dist/DataActions/ProductsDataActions.g';\r\n\r\nexport interface OrderTemplateInventoryData {\r\n    LineId?: string;\r\n    isStockAvailable: boolean;\r\n}\r\n\r\nexport class OrderTemplateWithInventory extends OrderTemplate {\r\n    public inventory: IProductInventoryInformation[];\r\n\r\n    constructor(\r\n        productList: ProductList,\r\n        orderTemplateLines: OrderTemplateLine[],\r\n        totalLines: number,\r\n        inventory: IProductInventoryInformation[]\r\n    ) {\r\n        super(productList, orderTemplateLines, totalLines);\r\n        this.inventory = inventory;\r\n    }\r\n}\r\n\r\n/**\r\n *  Input class for the GetOrderTemplates data action.\r\n */\r\nexport class GetFullOrderTemplateWithInventoryInput implements IActionInput {\r\n    public orderTemplateId: string;\r\n\r\n    public queryResultSettings: IQueryResultSettings;\r\n\r\n    constructor(orderTemplateId: string, queryResultSettings: IQueryResultSettings) {\r\n        this.orderTemplateId = orderTemplateId;\r\n        this.queryResultSettings = queryResultSettings;\r\n    }\r\n\r\n    public getCacheKey = () => `GetFullOrderTemplateWithInventory|${this.orderTemplateId}`;\r\n\r\n    public getCacheObjectType = () => 'GetFullOrderTemplateWithInventory';\r\n\r\n    public dataCacheType = (): CacheType => 'none';\r\n}\r\n\r\n/**\r\n * CreateInput method for the GetOrderTemplate method.\r\n * @param inputData The input data passed to the createInput method.\r\n * @param orderTemplateId\r\n */\r\nexport const createGetFullOrderTemplateWithInventoryInput = (\r\n    inputData: ICreateActionContext,\r\n    orderTemplateId: string\r\n): GetFullOrderTemplateWithInventoryInput => {\r\n    const { requestContext } = inputData;\r\n    if (!requestContext.user.isAuthenticated) {\r\n        throw new Error('Unable to get full order templates. User is not authenticated.');\r\n    }\r\n    const queryResultSettings: IQueryResultSettings = QueryResultSettingsProxy.fromInputData(inputData).QueryResultSettings;\r\n    queryResultSettings.count = true;\r\n\r\n    return new GetFullOrderTemplateWithInventoryInput(orderTemplateId, queryResultSettings);\r\n};\r\n\r\n/**\r\n * The action method for the GetFullOrderTemplateWithInventory data action.\r\n * @param input The action input.\r\n * @param ctx The action context.\r\n */\r\nexport async function GetFullOrderTemplateWithInventoryAction(\r\n    input: GetFullOrderTemplateWithInventoryInput,\r\n    ctx: IActionContext\r\n): Promise<OrderTemplateWithInventory> {\r\n    if (!ctx.requestContext.user.isAuthenticated) {\r\n        throw new Error('Unable to get full order template. User is not authenticated.');\r\n    }\r\n\r\n    const inputParams = new GetOrderTemplatesInput(input.orderTemplateId);\r\n    const productLists: ProductList[] = await getOrderTemplates(inputParams, ctx);\r\n\r\n    if (!productLists || productLists.length !== 1) {\r\n        throw new Error('Unable to get full order template. Order template was not found.');\r\n    }\r\n\r\n    const inputLines = new GetPaginatedOrderTemplateLinesInput(productLists[0].Id, input.queryResultSettings);\r\n    const linesState = await getPaginatedOrderTemplateLinesAction(inputLines, ctx);\r\n\r\n    let productAvailabilities: IProductInventoryInformation[] = [];\r\n    const productIds = linesState.lines.map(line => line.productListLine.ProductId!);\r\n    const searchCriteria = createInventoryAvailabilitySearchCriteria(ctx, productIds, true);\r\n    const linesProductAvailabilities = await getEstimatedAvailabilityAsync({ callerContext: ctx, bypassCache: 'get' }, searchCriteria);\r\n    if (\r\n        linesProductAvailabilities &&\r\n        linesProductAvailabilities.ProductWarehouseInventoryAvailabilities &&\r\n        linesProductAvailabilities.ProductWarehouseInventoryAvailabilities.length > 0\r\n    ) {\r\n        productAvailabilities = mapAggregatedProductInventoryInformation(ctx, linesProductAvailabilities);\r\n    }\r\n\r\n    return new OrderTemplateWithInventory(productLists[0], linesState.lines, linesState.totalCount, productAvailabilities);\r\n}\r\n\r\n/**\r\n * The GetFullOrderTemplateWithInventory Data Action\r\n * Returns order templates.\r\n */\r\nexport const GetFullOrderTemplateWithInventoryActionDataAction = createObservableDataAction<OrderTemplateWithInventory>({\r\n    id: '@msdyn365-commerce-modules/retail-actions/order-templates/get-full-order-template',\r\n    action: <IAction<OrderTemplateWithInventory>>GetFullOrderTemplateWithInventoryAction,\r\n    input: createGetFullOrderTemplateWithInventoryInput\r\n});\r\n\r\nexport default GetFullOrderTemplateWithInventoryActionDataAction;\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 * OutOfStockOrderTemplateLines Input Action\r\n */\r\nexport class OutOfStockOrderTemplateLinesInput implements Msdyn365.IActionInput {\r\n    // TODO: Construct the input needed to run the action\r\n    constructor() {}\r\n\r\n    // TODO: Determine if the results of this get action should cache the results and if so provide\r\n    // a cache object type and an appropriate cache key\r\n    public getCacheKey = () => `OutOfStockOrderTemplateLines`;\r\n    public getCacheObjectType = () => 'OutOfStockOrderTemplateLinesObject';\r\n    public dataCacheType = (): Msdyn365.CacheType => 'application';\r\n}\r\n\r\n// TODO: Create a data model here or import one to capture the response of the action\r\nexport interface IOutOfStockOrderTemplateLinesData {\r\n    outOfStockItems: string[];\r\n}\r\n\r\n/**\r\n * TODO: Use this function to create the input required to make the action call\r\n */\r\nconst createInput = (args: Msdyn365.ICreateActionContext): Msdyn365.IActionInput => {\r\n    return new OutOfStockOrderTemplateLinesInput();\r\n};\r\n\r\n/**\r\n * TODO: Use this function to call your action and process the results as needed\r\n */\r\nasync function action(input: OutOfStockOrderTemplateLinesInput, ctx: Msdyn365.IActionContext): Promise<IOutOfStockOrderTemplateLinesData> {\r\n    // const apiSettings = Msdyn365.msdyn365Commerce.apiSettings;\r\n\r\n    // TODO: Uncomment the below line to get the value from a service\r\n    // const response = await Msdyn365.sendRequest<IOutOfStockOrderTemplateLinesData[]>('/get/example/id/1', 'get');\r\n    return { outOfStockItems: [] };\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n    action: <Msdyn365.IAction<IOutOfStockOrderTemplateLinesData>>action,\r\n    // TODO: Give your data action a unique id\r\n    id: 'OutOfStockOrderTemplateLines',\r\n    input: createInput\r\n    // TODO: Uncomment the below line if this is a meant to be a batched data action\r\n    // isBatched: true\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 * SavesubmitEnabledisable Input Action\r\n */\r\nexport class SavesubmitEnabledisableInput implements Msdyn365.IActionInput {\r\n    // TODO: Construct the input needed to run the action\r\n    constructor() {}\r\n\r\n    // TODO: Determine if the results of this get action should cache the results and if so provide\r\n    // a cache object type and an appropriate cache key\r\n    public getCacheKey = () => `SavesubmitEnabledisableInput`;\r\n    public getCacheObjectType = () => 'SavesubmitEnabledisableInput';\r\n    public dataCacheType = (): Msdyn365.CacheType => 'application';\r\n}\r\n\r\n// TODO: Create a data model here or import one to capture the response of the action\r\nexport interface ISavesubmitEnabledisableData {\r\n    disableButton: boolean;\r\n    disableRadio: boolean;\r\n    disableText: boolean;\r\n}\r\n\r\n/**\r\n * TODO: Use this function to create the input required to make the action call\r\n */\r\nconst createInput = (args: Msdyn365.ICreateActionContext): Msdyn365.IActionInput => {\r\n    return new SavesubmitEnabledisableInput();\r\n};\r\n\r\n/**\r\n * TODO: Use this function to call your action and process the results as needed\r\n */\r\nasync function action(input: SavesubmitEnabledisableInput, ctx: Msdyn365.IActionContext): Promise<ISavesubmitEnabledisableData> {\r\n    // const apiSettings = Msdyn365.msdyn365Commerce.apiSettings;\r\n\r\n    // TODO: Uncomment the below line to get the value from a service\r\n    // const response = await Msdyn365.sendRequest<ISavesubmitEnabledisableData[]>('/get/example/id/1', 'get');\r\n    return { disableButton: false, disableRadio: false, disableText: false };\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n    action: <Msdyn365.IAction<ISavesubmitEnabledisableData>>action,\r\n    // TODO: Give your data action a unique id\r\n    id: 'SavesubmitEnabledisable',\r\n    input: createInput\r\n    // TODO: Uncomment the below line if this is a meant to be a batched data action\r\n    // isBatched: true\r\n});\r\n","/* eslint-disable security/detect-object-injection */\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/* Custom Data Action to get sales lines after Search order API returns result because\r\n    Search order API does not return sales lines data\r\n*/\r\n\r\nimport * as Msdyn365 from '@msdyn365-commerce/core';\r\nimport { SalesOrder } from '@msdyn365-commerce/retail-proxy';\r\nimport {\r\n    searchOrdersAsync,\r\n    getSalesOrderDetailsBySalesIdAsync,\r\n    getSalesOrderDetailsByTransactionIdAsync\r\n} from '@msdyn365-commerce/retail-proxy/dist/DataActions/SalesOrdersDataActions.g';\r\nimport { buildCacheKey } from '@msdyn365-commerce-modules/retail-actions';\r\n\r\ninterface ISearchOrderHistoryCriteria {\r\n    key: string;\r\n    searchTerm: string;\r\n    accountNumber?: string;\r\n}\r\n/**\r\n * SearchOrderHistory Input Action\r\n */\r\nexport class SearchOrderHistoryInput implements Msdyn365.IActionInput {\r\n    public searchCriteria: ISearchOrderHistoryCriteria;\r\n    private readonly apiSettings: Msdyn365.ICommerceApiSettings;\r\n    // TODO: Construct the input needed to run the action\r\n    constructor(searchCriteria: ISearchOrderHistoryCriteria, apiSettings: Msdyn365.ICommerceApiSettings) {\r\n        this.searchCriteria = searchCriteria;\r\n        this.apiSettings = apiSettings;\r\n    }\r\n\r\n    // TODO: Determine if the results of this get action should cache the results and if so provide\r\n    // a cache object type and an appropriate cache key\r\n    public getCacheKey = () => buildCacheKey('SearchOrderHistory', this.apiSettings);\r\n    public getCacheObjectType = () => 'SearchOrderHistory';\r\n    public dataCacheType = (): Msdyn365.CacheType => 'application';\r\n}\r\n\r\n// TODO: Create a data model here or import one to capture the response of the action\r\nexport interface ISearchOrderHistoryData {\r\n    salesOrders: SalesOrder[];\r\n}\r\n\r\n/**\r\n * TODO: Use this function to call your action and process the results as needed\r\n */\r\nexport async function SearchOrderHistoryAction(\r\n    input: SearchOrderHistoryInput,\r\n    ctx: Msdyn365.IActionContext\r\n): Promise<ISearchOrderHistoryData> {\r\n    // const apiSettings = Msdyn365.msdyn365Commerce.apiSettings;\r\n    try {\r\n        const context = { callerContext: ctx };\r\n        const {\r\n            searchCriteria: { key, searchTerm, accountNumber }\r\n        } = input;\r\n        const query = {\r\n            CustomerAccountNumber: accountNumber\r\n        };\r\n        /* if order status option is not selected then perform normal query\r\n            else fetch all orders then filter on client side\r\n        */\r\n        if (key !== 'OrderStatusValues') {\r\n            query[key] = searchTerm;\r\n        }\r\n        const response = await searchOrdersAsync(context, query);\r\n        let salesOrders: SalesOrder[] = await Promise.all(\r\n            response.map(async salesOrder => {\r\n                let order = null;\r\n                // get sales lines for each order because SearchOrders API only provides data for order header\r\n                if (salesOrder.SalesId) {\r\n                    order = await getSalesOrderDetailsBySalesIdAsync(context, salesOrder.SalesId);\r\n                } else {\r\n                    order = await getSalesOrderDetailsByTransactionIdAsync(context, salesOrder.Id, 0);\r\n                }\r\n                return {\r\n                    ...salesOrder,\r\n                    SalesLines: order.SalesLines\r\n                };\r\n            })\r\n        );\r\n        // Filter orders based on order status ( 4 = shipped, 7 = cancelled )\r\n        if (key === 'OrderStatusValues') {\r\n            switch (searchTerm) {\r\n                case '4':\r\n                    salesOrders = salesOrders.filter(order => {\r\n                        const salesLine = order.SalesLines && order.SalesLines.length > 0 ? order.SalesLines[0] : null;\r\n                        return salesLine?.SalesStatusValue === 4;\r\n                    });\r\n                    break;\r\n\r\n                case '7':\r\n                    salesOrders = salesOrders.filter(order => {\r\n                        const salesLine = order.SalesLines && order.SalesLines.length > 0 ? order.SalesLines[0] : null;\r\n                        return salesLine?.SalesStatusValue === 7;\r\n                    });\r\n                    break;\r\n\r\n                default:\r\n                    salesOrders = salesOrders.filter(order => {\r\n                        const salesLine = order.SalesLines && order.SalesLines.length > 0 ? order.SalesLines[0] : null;\r\n                        return salesLine?.SalesStatusValue !== 7 && salesLine?.SalesStatusValue !== 4;\r\n                    });\r\n            }\r\n        }\r\n        return { salesOrders: salesOrders };\r\n    } catch (error) {\r\n        return { salesOrders: [] };\r\n    }\r\n    // TODO: Uncomment the below line to get the value from a service\r\n    // const response = await Msdyn365.sendRequest<ISearchOrderHistoryData[]>('/get/example/id/1', 'get');\r\n}\r\n\r\nexport default Msdyn365.createObservableDataAction({\r\n    action: <Msdyn365.IAction<ISearchOrderHistoryData>>SearchOrderHistoryAction,\r\n    // TODO: Give your data action a unique id\r\n    id: 'SearchOrderHistory'\r\n    // TODO: Uncomment the below line if this is a meant to be a batched data action\r\n    // isBatched: true\r\n});\r\n","/* eslint-disable security/detect-object-injection */\r\nimport { AttributeValue, AttributeValueBase } from '@msdyn365-commerce/retail-proxy';\r\n\r\nexport interface IBtachAttribute {\r\n    InventBatchId: string | undefined;\r\n    ConsumedQuantity: string | undefined;\r\n}\r\nexport interface IBatchCache {\r\n    originalQuantity: number;\r\n    productID: number | undefined;\r\n    batchAttribute: IBtachAttribute[] | null | undefined;\r\n}\r\nexport interface IProductAttributeRecordIds {\r\n    segmentAttributeRecordId?: number;\r\n    collectionAttributeRecordId?: number;\r\n    colourCardAttributeRecordId?: number;\r\n    treatmentAttributeRecordId?: number;\r\n    spinningTechAttributeRecordId?: number;\r\n    countAttributeRecordId?: number;\r\n    twistAttributeRecordId?: number;\r\n    turnAttributeRecordId?: number;\r\n    guageAttributeRecordId?: number;\r\n    compositionAttributeRecordId?: number;\r\n    micronAttributeRecordId?: number;\r\n    stockSupportedAttributeRecordId?: number;\r\n    availabilityAttributeRecordId?: number;\r\n    certificatesAttributeRecordId?: number;\r\n    careLabelAttributeRecordId?: number;\r\n    waxedAttributeRecordId?: number;\r\n    nominalCountAttributeRecordId?: number;\r\n    colorTypeAttributeRecordId?: number;\r\n    businessModeAttributeRecordId?: number;\r\n    bobbinAttributeRecordId?: number;\r\n}\r\nexport const findProductAttributes = (attributeRecordIds: IProductAttributeRecordIds, attributes?: AttributeValue[]) => {\r\n    const segmentAttribute = attributes?.find(attr => attr.RecordId === attributeRecordIds.segmentAttributeRecordId);\r\n    const collectionAttribute = attributes?.find(attr => attr.RecordId === attributeRecordIds.collectionAttributeRecordId);\r\n    const colourCardAttribute = attributes?.find(attr => attr.RecordId === attributeRecordIds.colourCardAttributeRecordId);\r\n    const treatmentAttribute = attributes?.find(attr => attr.RecordId === attributeRecordIds.treatmentAttributeRecordId);\r\n    const spinningTechAttribute = attributes?.find(attr => attr.RecordId === attributeRecordIds.spinningTechAttributeRecordId);\r\n    const countAttribute = attributes?.find(attr => attr.RecordId === attributeRecordIds.countAttributeRecordId);\r\n    const twistAttribute = attributes?.find(attr => attr.RecordId === attributeRecordIds.twistAttributeRecordId);\r\n    const turnAttribute = attributes?.find(attr => attr.RecordId === attributeRecordIds.turnAttributeRecordId);\r\n    const guageAttribute = attributes?.find(attr => attr.RecordId === attributeRecordIds.guageAttributeRecordId);\r\n    const compositionAttribute = attributes?.find(attr => attr.RecordId === attributeRecordIds.compositionAttributeRecordId);\r\n    const micronAttribute = attributes?.find(attr => attr.RecordId === attributeRecordIds.micronAttributeRecordId);\r\n    const stockSupportedAttribute = attributes?.find(attr => attr.RecordId === attributeRecordIds.stockSupportedAttributeRecordId);\r\n    const availabilityAttribute = attributes?.find(attr => attr.RecordId === attributeRecordIds.availabilityAttributeRecordId);\r\n    const waxedAttribute = attributes?.find(attr => attr.RecordId === attributeRecordIds.waxedAttributeRecordId);\r\n    const certificatesAttribute = attributes?.find(attr => attr.RecordId === attributeRecordIds.certificatesAttributeRecordId);\r\n    const careLabelAttribute = attributes?.find((attr: AttributeValue) => attr.RecordId === attributeRecordIds.careLabelAttributeRecordId);\r\n    const colorTypeAttribute = attributes?.find((attr: AttributeValue) => attr.RecordId === attributeRecordIds.colorTypeAttributeRecordId);\r\n    const businessModeAttribute = attributes?.find(\r\n        (attr: AttributeValue) => attr.RecordId === attributeRecordIds.businessModeAttributeRecordId\r\n    );\r\n    const nominalCountAttribute = attributes?.find(\r\n        (attr: AttributeValue) => attr.RecordId === attributeRecordIds.nominalCountAttributeRecordId\r\n    );\r\n    const bobbianAttribute = attributes?.find(attr => attr.RecordId === attributeRecordIds.bobbinAttributeRecordId);\r\n\r\n    \r\n    return {\r\n        segmentAttribute,\r\n        collectionAttribute,\r\n        colourCardAttribute,\r\n        treatmentAttribute,\r\n        spinningTechAttribute,\r\n        countAttribute,\r\n        twistAttribute,\r\n        turnAttribute,\r\n        guageAttribute,\r\n        compositionAttribute,\r\n        micronAttribute,\r\n        stockSupportedAttribute,\r\n        availabilityAttribute,\r\n        certificatesAttribute,\r\n        careLabelAttribute,\r\n        waxedAttribute,\r\n        nominalCountAttribute,\r\n        colorTypeAttribute,\r\n        businessModeAttribute,\r\n        bobbianAttribute\r\n    };\r\n};\r\n\r\n// List of customer fields to hide from my profile page\r\nexport const additionalCustomerFields = [\r\n    'ID',\r\n    'ExtensionProperties',\r\n    'PartyRecId',\r\n    'AddressRecId',\r\n    'DeliveryPhoneRecId',\r\n    'PrimaryContactFaxRecId',\r\n    'OrgPrimaryFaxRecId',\r\n    'OrgPrimaryPhoneRecId',\r\n    'OrgPrimaryURLRecId',\r\n    'PrimaryContactPhoneRecId',\r\n    'Salutation',\r\n    'FirstName',\r\n    'Status',\r\n    'DeliveryName',\r\n    'DeliveryStreet',\r\n    'DeliveryCountry',\r\n    'DeliveryZip',\r\n    'DeliveryCity',\r\n    'DilveryContactNumber'\r\n];\r\n\r\n//function to convertFirstLetterToLowerCase of a string.\r\nexport function convertFirstLetterToLowerCase(text: string) {\r\n    return text.charAt(0).toLowerCase() + text.slice(1);\r\n}\r\n\r\n// Regex to remove all special characters from Product Item Code (e.g. VICTORIA,NM 30/2,S,W)\r\nexport const itemCodeRegex = /[^\\w\\s]/gi;\r\n\r\n// Function to calculate % value of a number (e.g 20% of 10 = 2)\r\nexport const percentageValue = (total: number, percentage: number) => Math.ceil((total / 100) * percentage);\r\n\r\n// Function to check if attribute exists then update value else add new attribute\r\nexport const addAttribute = (currentAttributes: AttributeValue[], attributeObj: AttributeValue): AttributeValue[] => {\r\n    const attrIndex = currentAttributes.findIndex((attr: AttributeValue) => attr.Name?.toLowerCase() === attributeObj.Name?.toLowerCase());\r\n    if (attrIndex > -1) {\r\n        currentAttributes[attrIndex] = attributeObj;\r\n    } else {\r\n        currentAttributes.push(attributeObj);\r\n    }\r\n    return currentAttributes;\r\n};\r\n\r\n// Function to create attribute object\r\nexport const _makeAttribute = (AttributeName: string, attributeValue: string | undefined) => {\r\n    const attributeObj = {\r\n        // @ts-ignore\r\n        '@odata.type': '#Microsoft.Dynamics.Commerce.Runtime.DataModel.AttributeTextValue',\r\n        Name: AttributeName,\r\n        TextValue: attributeValue,\r\n        TextValueTranslations: []\r\n    };\r\n    return attributeObj;\r\n};\r\nexport const _makeExtentionProperty = (key: string, value: string) => {\r\n    const extentionPropertyObj = [\r\n        {\r\n            Key: key,\r\n            Value: { StringValue: value }\r\n        }\r\n    ];\r\n    return extentionPropertyObj;\r\n};\r\n\r\nexport const getBatchRecordUtility = (): IBatchCache[] | undefined => {\r\n    const result = localStorage.getItem('sw_BatchRecord');\r\n    return JSON.parse(result!);\r\n};\r\n\r\nexport const setBatchRecordUtility = (obj: IBatchCache) => {\r\n    const oldBatchRecord = getBatchRecordUtility();\r\n    if (oldBatchRecord) {\r\n        // console.log('oldBatchRecord',oldBatchRecord);\r\n        const newBatchRecord =\r\n            oldBatchRecord &&\r\n            oldBatchRecord?.map(item => {\r\n                if (item.productID === obj.productID) {\r\n                    return {\r\n                        ...item,\r\n                        originalQuantity: item.originalQuantity + obj.originalQuantity,\r\n                        batchAttribute: obj.batchAttribute\r\n                    };\r\n                } else {\r\n                    return item;\r\n                }\r\n            });\r\n        // console.log('after 2nd update BatchRecord',newBatchRecord);\r\n        return localStorage.setItem('sw_BatchRecord', JSON.stringify(newBatchRecord));\r\n    } else {\r\n        // console.log('first update BatchRecord',JSON.stringify([obj]));\r\n        return localStorage.setItem('sw_BatchRecord', JSON.stringify([obj]));\r\n    }\r\n};\r\nexport const removeBatchRecordUtility = () => {\r\n    return localStorage.removeItem('sw_BatchRecord');\r\n};\r\n\r\nexport const splitQuantityThresholdMessage = (value?: string, locale?: string) => {\r\n    let quantityThresholdMessagesArray: string[] = [];\r\n    switch (locale) {\r\n        case 'it':\r\n            const it =\r\n                'Hai ordinato _ kg e noi aggiungeremo _ ulteriori kg a scopo di pagamento. Non ti verrà addebitato in fase di fatturazione.';\r\n            quantityThresholdMessagesArray = it.split('_');\r\n            break;\r\n        case 'de':\r\n            const de =\r\n                'Du hast _ kg bestellt und wir fügen _ zusätzliches kg zu Zahlungszwecken hinzu. Diese wird bei Rechnungsstellung nicht verrechnet.';\r\n            quantityThresholdMessagesArray = de.split('_');\r\n            break;\r\n        default:\r\n            const en =\r\n                'You ordered _ kg and we’ll add _ additional kg for payment purposes. It will not be charged to you at invoicing.';\r\n            quantityThresholdMessagesArray = value ? value.split('_') : en.split('_');\r\n            break;\r\n    }\r\n    return {\r\n        thresholdPrefix: quantityThresholdMessagesArray[0],\r\n        thresholdContent: quantityThresholdMessagesArray[1],\r\n        thresholdPostfix: quantityThresholdMessagesArray[2]\r\n    };\r\n};\r\n\r\nexport const getAttributeTextValue = (attributes: AttributeValueBase[], name: string) => {\r\n    if (attributes?.length > 0) {\r\n        const quantityThreshold = attributes.find(cartLineData => {\r\n            return cartLineData.Name === name;\r\n        });\r\n        // @ts-ignore\r\n        return quantityThreshold?.TextValue!;\r\n    } else {\r\n        return 0;\r\n    }\r\n};\r\n\r\nexport const getQuantityThreshold = (qty : number, upperWeightThresholdKG : number) => {\r\n    const quantityThreshold = qty >=0 && qty <=upperWeightThresholdKG ? true : false;\r\n    return quantityThreshold;\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/custom-add-order-template-to-cart.action';\n            binding.dataActions[actionPath] = require('partner/actions/custom-add-order-template-to-cart.action');\n            registerActionId(actionPath);\n        }\n\n        {   \n            const actionPath = 'actions/get-full-order-template-with-inventory.action';\n            binding.dataActions[actionPath] = require('partner/actions/get-full-order-template-with-inventory.action');\n            registerActionId(actionPath);\n        }\n\n        {   \n            const actionPath = 'actions/out-of-stock-order-template-lines.action';\n            binding.dataActions[actionPath] = require('partner/actions/out-of-stock-order-template-lines.action');\n            registerActionId(actionPath);\n        }\n\n        {   \n            const actionPath = 'actions/savesubmit-enabledisable.action';\n            binding.dataActions[actionPath] = require('partner/actions/savesubmit-enabledisable.action');\n            registerActionId(actionPath);\n        }\n\n        {   \n            const actionPath = 'actions/search-order-history.action';\n            binding.dataActions[actionPath] = require('partner/actions/search-order-history.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":["checkLineInventory","async","ctx","productRecId","productQuantity","inventory","cart","unitOfMeasure","_cart$CartLines","_lineInventory$Produc","lineQuantity","originalQuantity","quantityToSubtract","quantityThreshold","requestContext","app","config","upperQuantityThreshold","upperWeightThresholdKG","quantityThresholdAttributeName","cartline","CartLines","find","cartLine","ProductId","Quantity","_cartline$AttributeVa","thresholdAttributeValue","AttributeValues","attr","Name","parseInt","TextValue","thresholdQuantity","weightCheckOnThreshold","getQuantityThreshold","quantityToAdd","percentageValue","lineInventory","availability","ProductAvailableQuantity","totalAvailable","AvailableQuantity","isValidQuantity","CustomAddOrderTemplateToCartInput","constructor","orderTemplateId","getCacheKey","getCacheObjectType","dataCacheType","this","customAddOrderTemplateToCartInput","inputData","user","isAuthenticated","Error","customAddOrderTemplateToCartAction","input","context","cartState","getCartState","chunkCount","queryResultSettings","Paging","Top","Skip","getPaginatedOrderTemplateLinesInput","GetPaginatedOrderTemplateLinesInput","orderTemplateLines","getPaginatedOrderTemplateLinesAction","addedCartLines","cartLinesToUpdate","productAvailabilities","skip","lines","length","_updatedCart$CartLine","cartLines","map","productLine","_productLine$fullProd","ItemId","fullProduct","ProductDetails","productListLine","TrackingId","UnitOfMeasureSymbol","UnitOfMeasure","productIds","line","searchCriteria","createInventoryAvailabilitySearchCriteria","linesProductAvailabilities","getEstimatedAvailabilityAsync","callerContext","bypassCache","ProductWarehouseInventoryAvailabilities","mapAggregatedProductInventoryInformation","i","entries","lineResult","_cartline$ExtensionPr","ExtensionProperties","push","Key","Value","StringValue","toString","_outOfStockItems$resu","templateLine","outOfStockItems","get","outOfStockItemsData","result","LineId","Set","update","OutOfStockOrderTemplateLinesInput","splice","updatedCart","addCartLinesAsync","Id","Version","catch","error","telemetry","trace","concat","forEach","existingLine","_line$ExtensionProper","threshold","property","_threshold$Value","cartLineAttributes","attributeObj","_makeAttribute","addAttribute","updateCartLinesAsync","updateAsync","refreshCart","customAddOrderTemplateToCartActionDataAction","createObservableDataAction","id","action","OrderTemplateWithInventory","OrderTemplate","productList","totalLines","super","GetFullOrderTemplateWithInventoryInput","createGetFullOrderTemplateWithInventoryInput","QueryResultSettingsProxy","fromInputData","QueryResultSettings","count","GetFullOrderTemplateWithInventoryAction","inputParams","GetOrderTemplatesInput","productLists","getOrderTemplates","inputLines","linesState","totalCount","GetFullOrderTemplateWithInventoryActionDataAction","Msdyn365","args","SavesubmitEnabledisableInput","disableButton","disableRadio","disableText","SearchOrderHistoryInput","apiSettings","buildCacheKey","SearchOrderHistoryAction","key","searchTerm","accountNumber","query","CustomerAccountNumber","response","searchOrdersAsync","salesOrders","Promise","all","order","salesOrder","SalesId","getSalesOrderDetailsBySalesIdAsync","getSalesOrderDetailsByTransactionIdAsync","_objectSpread","SalesLines","filter","salesLine","SalesStatusValue","findProductAttributes","attributeRecordIds","attributes","segmentAttribute","RecordId","segmentAttributeRecordId","collectionAttribute","collectionAttributeRecordId","colourCardAttribute","colourCardAttributeRecordId","treatmentAttribute","treatmentAttributeRecordId","spinningTechAttribute","spinningTechAttributeRecordId","countAttribute","countAttributeRecordId","twistAttribute","twistAttributeRecordId","turnAttribute","turnAttributeRecordId","guageAttribute","guageAttributeRecordId","compositionAttribute","compositionAttributeRecordId","micronAttribute","micronAttributeRecordId","stockSupportedAttribute","stockSupportedAttributeRecordId","availabilityAttribute","availabilityAttributeRecordId","waxedAttribute","waxedAttributeRecordId","certificatesAttribute","certificatesAttributeRecordId","careLabelAttribute","careLabelAttributeRecordId","colorTypeAttribute","colorTypeAttributeRecordId","businessModeAttribute","businessModeAttributeRecordId","nominalCountAttribute","nominalCountAttributeRecordId","bobbianAttribute","bobbinAttributeRecordId","additionalCustomerFields","convertFirstLetterToLowerCase","text","charAt","toLowerCase","slice","itemCodeRegex","total","percentage","Math","ceil","currentAttributes","attrIndex","findIndex","_attr$Name","_attributeObj$Name","AttributeName","attributeValue","TextValueTranslations","_makeExtentionProperty","value","splitQuantityThresholdMessage","locale","quantityThresholdMessagesArray","split","en","thresholdPrefix","thresholdContent","thresholdPostfix","getAttributeTextValue","name","cartLineData","qty","binding","modules","dataActions","registerActionId","actionPath","default","prototype","Object","keys","exportName","Action","require","window","__bindings__","packageDataActions","module","exports","React","ReactDOM"],"sourceRoot":""}