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EAAAA,cAACqF,EAAAA,GAAiB,CAACC,KAAMrF,EAAMkF,OAAOI,wBAEtCvF,EAAAA,cAACwF,EAAAA,KAAI,CAACzH,UAAU,gCAAgCkC,EAAM+E,MACtDhF,EAAAA,cAACqF,EAAAA,GAAiB,CAACC,KAAMrF,EAAMkF,OAAOM,4BAKrDxF,EAAMgF,YACNhF,EAAMyF,qnBC3BnB,MAAMC,EAAU,CAAEC,QAAS,GAAIC,YAAa,IAEvCF,EAAQC,QAAQ,gBAAkB,CAC/BE,EAAG,IAAMC,EAAQ,MACjBC,MAAO,gBACPC,GAAI,GAEJC,KAAK,EACLC,GAAI,YACJC,EAAG,eACHC,EAAG,YAEHC,IAAK,GAGLC,GAAI,4BAKRC,OAAOC,aAAeD,OAAOC,cAAgB,GAC7CD,OAAOC,aAAab,QAAO,OACpBY,OAAOC,aAAab,SAAW,IAC/BD,EAAQC,SAGXY,OAAOC,aAAaZ,YAAW,OAC5BW,OAAOC,aAAaZ,aAAe,IACnCF,EAAQE,aAEY,MAAMa,EAAiB,GAC9BA,EAAe,yDAA2D,CAClFZ,EAAG,IAAMC,EAAQ,MACjBY,GAAI,oCAEpBH,OAAOC,aAAeD,OAAOC,cAAgB,GAC7CD,OAAOC,aAAaC,eAAc,OACPF,OAAOC,aAAaC,gBAAkB,IACtCA,UCtC3BE,EAAOC,QAAU7G,cCAjB4G,EAAOC,QAAUC","sources":["webpack://msdyn365.commerce.online/./src/actions/FlintFoxSearchOrderHeaderEntities.g.ts?576d","webpack://msdyn365.commerce.online/./src/actions/FlintFoxSearchOrderHeaderAction.g.ts?b880","webpack://msdyn365.commerce.online/./src/actions/FlintFoxSearchOrderLinesEntities.g.ts?923f","webpack://msdyn365.commerce.online/./src/actions/FlintFoxSearchOrderLinesAction.g.ts?9707","webpack://msdyn365.commerce.online/./src/modules/search-order/search-order.tsx?ebb0","webpack://msdyn365.commerce.online/./src/modules/search-order/search-order.view.tsx?c68d","webpack://msdyn365.commerce.online/./lib/search-order/module-registration.js?e2e1","webpack://msdyn365.commerce.online/external var \"React\"?0d3b","webpack://msdyn365.commerce.online/external var \"ReactDOM\"?853b"],"sourcesContent":["/* eslint-disable security/detect-object-injection */\r\n// tslint:disable\r\nimport * as EntityClasses from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceModels.g';\r\nimport * as Entities from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceTypes.g';\r\n\r\n/**\r\n * FlintFoxOrderStatusHeader entity interface.\r\n */\r\nexport interface IFlintFoxOrderStatusHeader {\r\n SalesId?: string;\r\n LastName?: string;\r\n OrderDate?: string;\r\n CustomerName?: string;\r\n Channel?: string;\r\n ShippingTo?: string;\r\n PhoneNumber?: string;\r\n MobileNumber?: string;\r\n MerchandiseSubTotalCharges?: string;\r\n GiftWrapCharges?: string;\r\n ShippingCharges?: string;\r\n Tax?: string;\r\n OrderTotal?: string;\r\n InvoicingName?: string;\r\n BilingTo?: string;\r\n CurrencyCode?: string;\r\n CurrencySymbol?: string;\r\n Id: number;\r\n ExtensionProperties?: Entities.CommerceProperty[];\r\n}\r\n\r\n/**\r\n * FlintFoxOrderStatusHeader entity class.\r\n */\r\nexport class FlintFoxOrderStatusHeaderExtensionClass implements IFlintFoxOrderStatusHeader {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public SalesId: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public LastName: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public OrderDate: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public CustomerName: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Channel: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ShippingTo: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public PhoneNumber: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public MobileNumber: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public MerchandiseSubTotalCharges: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public GiftWrapCharges: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ShippingCharges: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Tax: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public OrderTotal: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public InvoicingName: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public BilingTo: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public CurrencyCode: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public CurrencySymbol: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Id: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ExtensionProperties: Entities.CommerceProperty[];\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.SalesId = odataObject.SalesId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.LastName = odataObject.LastName;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.OrderDate = odataObject.OrderDate;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.CustomerName = odataObject.CustomerName;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Channel = odataObject.Channel;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ShippingTo = odataObject.ShippingTo;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.PhoneNumber = odataObject.PhoneNumber;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.MobileNumber = odataObject.MobileNumber;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.MerchandiseSubTotalCharges = odataObject.MerchandiseSubTotalCharges;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.GiftWrapCharges = odataObject.GiftWrapCharges;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ShippingCharges = odataObject.ShippingCharges;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Tax = odataObject.Tax;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.OrderTotal = odataObject.OrderTotal;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.InvoicingName = odataObject.InvoicingName;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.BilingTo = odataObject.BilingTo;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.CurrencyCode = odataObject.CurrencyCode;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.CurrencySymbol = odataObject.CurrencySymbol;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Id = odataObject.Id;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties = undefined;\r\n if (odataObject.ExtensionProperties) {\r\n this.ExtensionProperties = [];\r\n for (var i = 0; i < odataObject.ExtensionProperties.length; i++) {\r\n if (odataObject.ExtensionProperties[i]) {\r\n if (odataObject.ExtensionProperties[i]['@odata.type']) {\r\n var className: string = odataObject.ExtensionProperties[i]['@odata.type'];\r\n className = className.substr(className.lastIndexOf('.') + 1).concat('Class');\r\n if (EntityClasses[className]) {\r\n this.ExtensionProperties[i] = new EntityClasses[className](odataObject.ExtensionProperties[i]);\r\n }\r\n } else {\r\n this.ExtensionProperties[i] = new EntityClasses.CommercePropertyClass(odataObject.ExtensionProperties[i]);\r\n }\r\n } else {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties[i] = undefined;\r\n }\r\n }\r\n }\r\n }\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 * THIS FILE IS AN AUTOGENERATED TYPESCRIPT PROXY EXTENSION.\r\n * TO USE THIS FILE, IT MUST BE ADDED TO A D365COMMERCE APPLICATION\r\n */\r\n// tslint:disable\r\nimport {\r\n AsyncResult,\r\n callActionOrExecute,\r\n DataServiceQuery,\r\n IContext,\r\n IDataServiceRequest,\r\n IQueryResultSettings\r\n} from '@msdyn365-commerce/retail-proxy';\r\n// @ts-ignore\r\nimport * as EntityClasses from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceModels.g';\r\nimport * as DataServiceEntities from './FlintFoxSearchOrderHeaderEntities.g';\r\n\r\n// @ts-ignore\r\nfunction orderStatusHeaderQuery(id?: number): DataServiceQuery {\r\n const key = id ? { Id: id } : null;\r\n return new DataServiceQuery(\r\n 'OrderStatusHeader',\r\n 'FlintFoxOrderStatusHeader',\r\n DataServiceEntities.FlintFoxOrderStatusHeaderExtensionClass,\r\n key\r\n );\r\n}\r\n\r\nexport function createGetOrderStatusHeaderInput(\r\n queryResultSettings: IQueryResultSettings,\r\n orderNumber: string,\r\n lastName: string\r\n): IDataServiceRequest {\r\n const query = orderStatusHeaderQuery().resultSettings(queryResultSettings);\r\n return query.createDataServiceRequestForOperation(\r\n 'GetOrderStatusHeader',\r\n true,\r\n DataServiceEntities.FlintFoxOrderStatusHeaderExtensionClass,\r\n 'true',\r\n { bypassCache: 'none', returnEntity: 'DataServiceEntities.IFlintFoxOrderStatusHeader' },\r\n { OrderNumber: orderNumber, LastName: lastName }\r\n );\r\n}\r\n\r\nexport function getOrderStatusHeaderAsync(\r\n context: IContext,\r\n orderNumber: string,\r\n lastName: string\r\n): AsyncResult {\r\n const request = createGetOrderStatusHeaderInput(context.queryResultSettings || {}, orderNumber, lastName);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n","/* eslint-disable security/detect-object-injection */\r\n// tslint:disable\r\nimport * as EntityClasses from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceModels.g';\r\nimport * as Entities from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceTypes.g';\r\n/**\r\n * FlintFoxOrderStatus entity interface.\r\n */\r\nexport interface IFlintFoxOrderStatus {\r\n Status?: string;\r\n ItemId?: string;\r\n TrackingURL?: string;\r\n ProductName?: string;\r\n Qty: number;\r\n AvailabilityMessageTranslation?: string;\r\n AvailabilityMessage?: string;\r\n ItemPrice?: string;\r\n TotalPrice?: string;\r\n Shipment?: string;\r\n CurrencyCode?: string;\r\n CurrencySymbol?: string;\r\n Id: number;\r\n ExtensionProperties?: Entities.CommerceProperty[];\r\n}\r\n\r\n/**\r\n * FlintFoxOrderStatus entity class.\r\n */\r\nexport class FlintFoxOrderStatusExtensionClass implements IFlintFoxOrderStatus {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Status: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ItemId: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ProductName: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Qty: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public AvailabilityMessage: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ItemPrice: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public TotalPrice: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Shipment: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public TrackingURL: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public CurrencyCode: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public CurrencySymbol: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Id: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ExtensionProperties: Entities.CommerceProperty[];\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Status = odataObject.Status;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ItemId = odataObject.ItemId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ProductName = odataObject.ProductName;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Qty = odataObject.Qty ? parseFloat(odataObject.Qty) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.AvailabilityMessage = odataObject.AvailabilityMessage;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ItemPrice = odataObject.ItemPrice;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.TotalPrice = odataObject.TotalPrice;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Shipment = odataObject.Shipment;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.TrackingURL = odataObject.TrackingURL;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.CurrencyCode = odataObject.CurrencyCode;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.CurrencySymbol = odataObject.CurrencySymbol;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Id = odataObject.Id;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties = undefined;\r\n if (odataObject.ExtensionProperties) {\r\n this.ExtensionProperties = [];\r\n for (var i = 0; i < odataObject.ExtensionProperties.length; i++) {\r\n if (odataObject.ExtensionProperties[i]) {\r\n if (odataObject.ExtensionProperties[i]['@odata.type']) {\r\n var className: string = odataObject.ExtensionProperties[i]['@odata.type'];\r\n className = className.substr(className.lastIndexOf('.') + 1).concat('Class');\r\n if (EntityClasses[className]) {\r\n this.ExtensionProperties[i] = new EntityClasses[className](odataObject.ExtensionProperties[i]);\r\n }\r\n } else {\r\n this.ExtensionProperties[i] = new EntityClasses.CommercePropertyClass(odataObject.ExtensionProperties[i]);\r\n }\r\n } else {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties[i] = undefined;\r\n }\r\n }\r\n }\r\n }\r\n}\r\n","import {\r\n AsyncResult,\r\n callActionOrExecute,\r\n DataServiceQuery,\r\n IContext,\r\n IDataServiceRequest,\r\n IQueryResultSettings\r\n} from '@msdyn365-commerce/retail-proxy';\r\n// @ts-ignore\r\nimport * as EntityClasses from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceModels.g';\r\nimport * as DataServiceEntities from './FlintFoxSearchOrderLinesEntities.g';\r\n\r\n// @ts-ignore\r\nfunction orderStatusQuery(id?: number): DataServiceQuery {\r\n const key = id ? { Id: id } : null;\r\n return new DataServiceQuery('OrderStatus', 'FlintFoxOrderStatus', DataServiceEntities.FlintFoxOrderStatusExtensionClass, key);\r\n}\r\n\r\nexport function createGetOrderStatusInput(\r\n queryResultSettings: IQueryResultSettings,\r\n orderNumber: string,\r\n lastName: string\r\n): IDataServiceRequest {\r\n const query = orderStatusQuery().resultSettings(queryResultSettings);\r\n return query.createDataServiceRequestForOperation(\r\n 'GetOrderStatus',\r\n true,\r\n DataServiceEntities.FlintFoxOrderStatusExtensionClass,\r\n 'true',\r\n { bypassCache: 'none', returnEntity: 'DataServiceEntities.IFlintFoxOrderStatus' },\r\n { OrderNumber: orderNumber, LastName: lastName }\r\n );\r\n}\r\n\r\nexport function getOrderStatusAsync(\r\n context: IContext,\r\n orderNumber: string,\r\n lastName: string\r\n): AsyncResult {\r\n const request = createGetOrderStatusInput(context.queryResultSettings || {}, orderNumber, lastName);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n","/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\nimport * as React from 'react';\r\n\r\nimport { ISearchOrderData } from './search-order.data';\r\nimport { ISearchOrderProps } from './search-order.props.autogenerated';\r\nimport { Button } from '@msdyn365-commerce-modules/utilities';\r\nimport { getOrderStatusHeaderAsync } from '../../actions/FlintFoxSearchOrderHeaderAction.g';\r\nimport { getOrderStatusAsync } from '../../actions/FlintFoxSearchOrderLinesAction.g';\r\nimport { IFlintFoxOrderStatusHeader } from '../../actions/FlintFoxSearchOrderHeaderEntities.g';\r\nimport { IFlintFoxOrderStatus } from '../../actions/FlintFoxSearchOrderLinesEntities.g';\r\nimport { toJS } from 'mobx';\r\n\r\nexport interface ISearchOrderViewProps extends ISearchOrderProps {\r\n form: React.ReactNode;\r\n resultTable: React.ReactNode;\r\n orderTableNode: React.ReactNode;\r\n}\r\n\r\ninterface ISearchOrderState {\r\n lastnameInputValue: string;\r\n orderidInputValue: string;\r\n noResultFound: boolean;\r\n resultDataHeader: IFlintFoxOrderStatusHeader[];\r\n resultDataLineItem: IFlintFoxOrderStatus[];\r\n}\r\n/**\r\n *\r\n * SearchOrder component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass SearchOrder extends React.PureComponent> {\r\n public state: ISearchOrderState = {\r\n lastnameInputValue: '',\r\n orderidInputValue: '',\r\n noResultFound: false,\r\n resultDataHeader: [],\r\n resultDataLineItem: []\r\n };\r\n constructor(props: ISearchOrderProps) {\r\n super(props);\r\n // this.searchOrderLinkClick = this.searchOrderLinkClick.bind(this);\r\n }\r\n\r\n public render(): JSX.Element | null {\r\n const {\r\n data: {},\r\n context: {}\r\n } = this.props;\r\n\r\n const viewProps = {\r\n ...this.props,\r\n form: this._renderForm(this.props),\r\n resultTable: this._renderOrderTable(this.props)\r\n };\r\n return this.props.renderView(viewProps) as React.ReactElement;\r\n }\r\n\r\n private readonly _getData = async () => {\r\n await getOrderStatusHeaderAsync(\r\n { callerContext: this.props.context.actionContext },\r\n this.state.orderidInputValue,\r\n this.state.lastnameInputValue\r\n )\r\n .catch(err => {\r\n console.log(err);\r\n this.setState({\r\n noResultFound: true\r\n });\r\n })\r\n .then(Value => {\r\n if (Value) {\r\n this.setState({\r\n noResultFound: false,\r\n resultDataHeader: toJS(Value)\r\n });\r\n if (this.state.resultDataHeader.length === 0) {\r\n this.setState({\r\n noResultFound: true\r\n });\r\n }\r\n } else {\r\n this.setState({\r\n noResultFound: true\r\n });\r\n }\r\n });\r\n await getOrderStatusAsync(\r\n { callerContext: this.props.context.actionContext },\r\n this.state.orderidInputValue,\r\n this.state.lastnameInputValue\r\n )\r\n .catch(err => {\r\n console.log(err);\r\n })\r\n .then(Value => {\r\n if (Value) {\r\n this.setState({\r\n resultDataLineItem: toJS(Value)\r\n });\r\n } else {\r\n this.setState({\r\n noResultFound: true\r\n });\r\n }\r\n });\r\n };\r\n\r\n private readonly _onInputChangeLastname = (e: React.ChangeEvent) => {\r\n //const error = e.target.value === '' ? '' : this.state.error;\r\n this.setState({\r\n lastnameInputValue: e.target.value\r\n });\r\n };\r\n private readonly _onInputChangeorderid = (e: React.ChangeEvent) => {\r\n //const error = e.target.value === '' ? '' : this.state.error;\r\n this.setState({\r\n orderidInputValue: e.target.value\r\n });\r\n };\r\n\r\n private readonly _renderForm = (props: ISearchOrderProps) => {\r\n const _onSubmit = (event: React.FormEvent) => {\r\n event.preventDefault();\r\n };\r\n const _searchOrder = (event: React.MouseEvent) => {\r\n if (this.state.lastnameInputValue && this.state.orderidInputValue) {\r\n void this._getData();\r\n }\r\n };\r\n\r\n return (\r\n
\r\n \r\n \r\n \r\n \r\n \r\n {props.resources.searchOrderSearchBtnText}\r\n \r\n \r\n );\r\n };\r\n\r\n private readonly _renderOrderTable = (props: ISearchOrderProps) => {\r\n if (this.state.resultDataHeader.length > 0 && this.state.resultDataLineItem.length > 0) {\r\n const headerValues = this.state.resultDataHeader[0];\r\n // console.log('header value', headerValues);\r\n const lineValues = this.state.resultDataLineItem;\r\n // console.log('line value', lineValues);\r\n function lineItemsRendering(lineValues: IFlintFoxOrderStatus[]) {\r\n var lines: JSX.Element[] = [];\r\n lineValues.forEach(function(element: IFlintFoxOrderStatus) {\r\n lines.push(\r\n \r\n \r\n {element.Status}\r\n \r\n \r\n {element.ItemId}\r\n {element.Shipment}\r\n \r\n \r\n {element.TrackingURL}\r\n \r\n \r\n {element.ProductName}\r\n {element.Qty}\r\n {element.AvailabilityMessage}\r\n \r\n {element.CurrencySymbol}\r\n {element.ItemPrice}\r\n \r\n \r\n {element.CurrencySymbol}\r\n {element.TotalPrice}\r\n \r\n \r\n );\r\n });\r\n return lines;\r\n }\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n

\r\n {props.resources.searchOrderOrderLblText} # {headerValues.SalesId}\r\n

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {headerValues.CustomerName}\r\n

\r\n {headerValues.BilingTo}\r\n

\r\n {headerValues.MobileNumber}\r\n

\r\n {headerValues.PhoneNumber}\r\n

\r\n
\r\n
\r\n
\r\n
\r\n {props.resources.searchOrderShippedToLblText}:\r\n

\r\n {headerValues.ShippingTo}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {props.resources.searchOrderChannelLblText}:\r\n

\r\n {headerValues.Channel}\r\n

\r\n
\r\n
\r\n
\r\n
\r\n {props.resources.searchOrderOrderDateLblText}:\r\n

\r\n {headerValues.OrderDate}\r\n

\r\n

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n
\r\n

\r\n {props.resources.searchOrderOrderSummaryLblText}\r\n

\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {lineItemsRendering(lineValues)}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {/* \r\n \r\n \r\n \r\n \r\n \r\n \r\n */}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n {props.resources.searchOrderStatusLblText}\r\n \r\n {props.resources.searchOrderItemLblText}\r\n \r\n {props.resources.searchOrderTrackingLblText}\r\n \r\n {props.resources.searchOrderTrackingUrlText}\r\n \r\n {props.resources.searchOrderProductLblText}\r\n \r\n {props.resources.searchOrderQuantityLblText}\r\n \r\n {props.resources.searchOrderAvailabilityMessageLblText}\r\n \r\n {props.resources.searchOrderItemPriceLblText}\r\n \r\n {props.resources.searchOrderTotalPriceLblText}\r\n
\r\n {props.resources.searchOrderTotalMerchandiseLblText}\r\n \r\n {headerValues.CurrencySymbol}\r\n {headerValues.MerchandiseSubTotalCharges}\r\n
\r\n {props.resources.searchOrderTotalGiftLblText}\r\n \r\n {headerValues.CurrencySymbol}\r\n {headerValues.GiftWrapCharges}\r\n
\r\n {props.resources.searchOrderShippingLblText}\r\n \r\n {headerValues.CurrencySymbol}\r\n {headerValues.ShippingCharges}\r\n
\r\n {props.resources.searchOrderTotalTaxLblText}\r\n \r\n {headerValues.CurrencySymbol}\r\n {headerValues.Tax}\r\n
\r\n {props.resources.searchOrderTotalLblText}\r\n \r\n {headerValues.CurrencySymbol}\r\n {headerValues.OrderTotal}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n );\r\n } else if (this.state.noResultFound) {\r\n return (\r\n
\r\n No Result Found\r\n
\r\n );\r\n } else {\r\n return;\r\n }\r\n };\r\n}\r\n\r\nexport default SearchOrder;\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 React from 'react';\r\nimport { Node } from '@msdyn365-commerce-modules/utilities';\r\nimport { ISearchOrderViewProps } from './search-order';\r\nimport { RichTextComponent } from '@msdyn365-commerce/core-internal';\r\n\r\nexport default (props: ISearchOrderViewProps) => {\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n

{props.config.orderStatusHeading}

\r\n
\r\n \r\n\r\n {props.form}\r\n \r\n
\r\n
\r\n
\r\n
\r\n {props.resultTable}\r\n {props.orderTableNode}\r\n
\r\n );\r\n};\r\n","const binding = { modules: {}, dataActions: {} };\n\n (binding.modules['search-order'] = {\n c: () => require('partner/modules/search-order/search-order.tsx'),\n $type: 'contentModule',\n da: [],\n \n iNM: false,\n ns: '__local__',\n n: 'search-order',\n p: '__local__',\n \n pdp: '',\n \n \n md: 'src/modules/search-order'\n });\n \n\n \n window.__bindings__ = window.__bindings__ || {};\n window.__bindings__.modules = {\n ...window.__bindings__.modules || {},\n ...binding.modules\n };\n \n window.__bindings__.dataActions = {\n ...window.__bindings__.dataActions || {},\n ...binding.dataActions\n };\n export const viewDictionary = {};\n viewDictionary['__local__|__local__|modules|search-order|search-order'] = {\n c: () => require('partner/modules/search-order/search-order.view.tsx'),\n cn: '__local__-__local__-search-order'\n };\nwindow.__bindings__ = window.__bindings__ || {};\nwindow.__bindings__.viewDictionary = {\n ...window.__bindings__.viewDictionary || {},\n ...viewDictionary\n };","module.exports = React;","module.exports = ReactDOM;"],"names":["FlintFoxOrderStatusHeaderExtensionClass","constructor","odataObject","this","SalesId","LastName","OrderDate","CustomerName","Channel","ShippingTo","PhoneNumber","MobileNumber","MerchandiseSubTotalCharges","GiftWrapCharges","ShippingCharges","Tax","OrderTotal","InvoicingName","BilingTo","CurrencyCode","CurrencySymbol","Id","ExtensionProperties","undefined","i","length","className","substr","lastIndexOf","concat","EntityClasses","createGetOrderStatusHeaderInput","queryResultSettings","orderNumber","lastName","id","key","DataServiceQuery","DataServiceEntities","orderStatusHeaderQuery","resultSettings","createDataServiceRequestForOperation","bypassCache","returnEntity","OrderNumber","FlintFoxOrderStatusExtensionClass","Status","ItemId","ProductName","Qty","parseFloat","AvailabilityMessage","ItemPrice","TotalPrice","Shipment","TrackingURL","createGetOrderStatusInput","orderStatusQuery","SearchOrder","React","props","super","state","lastnameInputValue","orderidInputValue","noResultFound","resultDataHeader","resultDataLineItem","_getData","async","context","request","callActionOrExecute","callerContext","getOrderStatusHeaderAsync","actionContext","catch","err","console","log","setState","then","Value","toJS","getOrderStatusAsync","_onInputChangeLastname","e","target","value","_onInputChangeorderid","_renderForm","onSubmit","event","preventDefault","htmlFor","resources","searchOrderLastNameTxtText","type","name","placeholder","onChange","required","searchOrderOrderIdTxtText","Button","title","searchOrderSearchBtnText","onClick","_renderOrderTable","headerValues","lineValues","searchOrderOrderLblText","searchOrderShippedToLblText","searchOrderChannelLblText","searchOrderOrderDateLblText","searchOrderOrderSummaryLblText","searchOrderStatusLblText","searchOrderItemLblText","searchOrderTrackingLblText","searchOrderTrackingUrlText","searchOrderProductLblText","searchOrderQuantityLblText","searchOrderAvailabilityMessageLblText","searchOrderItemPriceLblText","searchOrderTotalPriceLblText","lines","forEach","element","push","href","rel","lineItemsRendering","searchOrderTotalMerchandiseLblText","searchOrderShippingLblText","searchOrderTotalTaxLblText","searchOrderTotalLblText","role","render","data","viewProps","form","resultTable","renderView","config","orderStatusHeading","RichTextComponent","text","orderStatusHeaderText","Node","orderStatusFooterText","orderTableNode","binding","modules","dataActions","c","require","$type","da","iNM","ns","n","p","pdp","md","window","__bindings__","viewDictionary","cn","module","exports","ReactDOM"],"sourceRoot":""}