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,aAAc,4CACpC,CAAEJ,WAAYA,IAKFK,CAA8BL,GAC9C,OAAOM,EAAAA,EAAAA,qBAA8DL,EAASF,EAAQQ,eAepF,SAAUC,EACZT,EACAC,GAEA,MAAMC,EAhBJ,SAAgDD,GAElD,OADcP,IACDS,qCACT,8BACA,EACAL,EACA,QACA,CAAEM,YAAa,MAAOC,aAAc,gDACpC,CAAEJ,WAAYA,IAQFS,CAAsCT,GACtD,OAAOM,EAAAA,EAAAA,qBAAkEL,EAASF,EAAQQ,eAqExF,SAAUG,EACZX,EACAY,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,GAEA,MAAMnC,EA/FJ,SACFU,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,GAGA,OADc3C,IACDS,qCACT,yBACA,EACAL,EACA,QACA,CAAEM,YAAa,MAAOC,aAAc,oDACpC,CACIO,cAAeA,EACfC,WAAYA,EACZC,KAAMA,EACNC,cAAeA,EACfC,kBAAmBA,EACnBC,SAAUA,EACVC,WAAYA,EACZC,UAAWA,EACXC,gBAAiBA,EACjBC,WAAYA,EACZC,mBAAoBA,EACpBC,cAAeA,EACfC,qBAAsBA,EACtBC,gBAAiBA,EACjBC,mBAAoBA,EACpBC,cAAeA,EACfC,aAAcA,EACdC,YAAaA,EACbC,cAAeA,EACfC,YAAaA,EACbC,WAAYA,EACZC,mBAAoBA,EACpBC,mBAAoBA,EACpBC,oBAAqBA,EACrBC,oBAAqBA,EACrBC,yBAA0BA,IAkClBC,CACZ1B,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,E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,QAASA,EACTG,YAAaA,EACbF,UAAWA,EACXlH,aAAcA,EACdmH,YAAaA,EACbpH,oBAAqBA,OAMzC,iDCjHD,MAAMyN,EAAgB9R,IAKzB,GAAIqS,EAAAA,GAASC,WAAaC,OAAOC,WAAY,CACzC,MAAMC,EAAezS,EAAQE,QAAQuS,aACrC,GAAIA,EACA,OAAIA,EAAaC,IAAMH,OAAOC,YAAcC,EAAaC,GAAGC,EACjD,KACAF,EAAaG,IAAML,OAAOC,YAAcC,EAAaG,GAAGD,EACxD,KACAF,EAAaI,IAAMN,OAAOC,YAAcC,EAAaI,GAAGF,EACxD,KACAF,EAAaK,IAAMP,OAAOC,YAAcC,EAAaK,GAAGH,EACxD,KAEJ,KAIf,MAAO","sources":["webpack://suedwolle/./src/custom-proxy/RetailExtension/DataServiceEntities.g.ts?28a0","webpack://suedwolle/./src/custom-proxy/RetailExtension/DataActionExtension.g.ts?e047","webpack://suedwolle/./src/themes/suedwolle/views/components/sw-modal.component.tsx?1f76","webpack://suedwolle/./src/themes/suedwolle/views/components/sw-returnorder-stepper.component.tsx?7964","webpack://suedwolle/./src/utilities/get-viewport.ts?6aa6"],"sourcesContent":["/* eslint-disable security/detect-object-injection */\r\n\r\n// tslint:disable\r\n// import * as EntityClasses from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceModels.g';\r\n// import * as Entities from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceTypes.g';\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// import { jsonLightReadStringPropertyValue } from '@msdyn365-commerce/retail-proxy/dist/externals';\r\n\r\n/**\r\n * SWGCustomerDataView entity interface.\r\n */\r\nexport interface ISWGCustomerDataView {\r\n    ID: number;\r\n    MailField1?: string;\r\n    AdrNumber?: string;\r\n    CompName?: string;\r\n    SW_CountryIntex?: string;\r\n    Street1?: string;\r\n    Town1?: string;\r\n    Zip1?: string;\r\n    TurnOverTaxID?: string;\r\n    Currency?: string;\r\n    Payment?: string;\r\n    DelTerm?: string;\r\n    BKNOOTCODE?: string;\r\n    MailField2?: string;\r\n    Email?: string;\r\n    ExtensionProperties?: Entities.CommerceProperty[];\r\n}\r\n\r\n/**\r\n * SWGCustomerDataEditable entity interface.\r\n */\r\nexport interface ISWGCustomerDataEditable {\r\n    ID?: number;\r\n    Salutation?: string[];\r\n    FirstName?: string;\r\n    PersonProfessionalTitle?: string;\r\n    DateOfBirth?: string;\r\n    PrimaryContactFax?: string;\r\n    PrimaryContactFaxRecId?: string;\r\n    OrgPrimaryFax?: string;\r\n    OrgPrimaryFaxRecId?: string;\r\n    OrgPrimaryPhone?: string;\r\n    OrgPrimaryPhoneRecId?: string;\r\n    OrgPrimaryURL?: string;\r\n    OrgPrimaryURLRecId?: string;\r\n    DeliveryName?: string;\r\n    DeliveryStreet?: string;\r\n    DeliveryCountry?: string;\r\n    DeliveryZip?: string;\r\n    DeliveryCity?: string;\r\n    DilveryContactNumber?: string;\r\n    PartyRecId?: string;\r\n    AddressRecId?: string;\r\n    DeliveryPhoneRecId?: string;\r\n    PersonalTitle?: string;\r\n    PrimaryContactPhone?: string;\r\n    PrimaryContactPhoneRecId?: string;\r\n    ExtensionProperties?: Entities.CommerceProperty[];\r\n}\r\n\r\n/**\r\n * SWGUpdateCustomerDataEntity entity interface.\r\n */\r\nexport interface ISWGUpdateCustomerDataEntity {\r\n    ID: number;\r\n    IsSuccess: boolean;\r\n    Message?: string;\r\n    ExtensionProperties?: Entities.CommerceProperty[];\r\n}\r\n\r\n/**\r\n * SWGCustomerDataView entity class.\r\n */\r\nexport class SWGCustomerDataViewExtensionClass implements ISWGCustomerDataView {\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 MailField1: 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 AdrNumber: 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 CompName: 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 SW_CountryIntex: 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 Street1: 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 Town1: 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 Zip1: 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 TurnOverTaxID: 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 Currency: 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 Payment: 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 DelTerm: 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 BKNOOTCODE: 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 MailField2: 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 Email: 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 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.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.MailField1 = odataObject.MailField1;\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.AdrNumber = odataObject.AdrNumber;\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.CompName = odataObject.CompName;\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.SW_CountryIntex = odataObject.SW_CountryIntex;\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.Street1 = odataObject.Street1;\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.Town1 = odataObject.Town1;\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.Zip1 = odataObject.Zip1;\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.TurnOverTaxID = odataObject.TurnOverTaxID;\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.Currency = odataObject.Currency;\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.Payment = odataObject.Payment;\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.DelTerm = odataObject.DelTerm;\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.BKNOOTCODE = odataObject.BKNOOTCODE;\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.MailField2 = odataObject.MailField2;\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.Email = odataObject.Email;\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/**\r\n * SWGCustomerDataEditable entity class.\r\n */\r\nexport class SWGCustomerDataEditableExtensionClass implements ISWGCustomerDataEditable {\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 Salutation: 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 FirstName: 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 PersonProfessionalTitle: 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 DateOfBirth: 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 PrimaryContactFax: 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 PrimaryContactFaxRecId: 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 OrgPrimaryFax: 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 OrgPrimaryFaxRecId: 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 OrgPrimaryPhone: 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 OrgPrimaryPhoneRecId: 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 OrgPrimaryURL: 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 OrgPrimaryURLRecId: 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 DeliveryName: 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 DeliveryStreet: 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 DeliveryCountry: 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 DeliveryZip: 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 DeliveryCity: 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 DilveryContactNumber: 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 PartyRecId: 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 AddressRecId: 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 DeliveryPhoneRecId: 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 PersonalTitle: 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 PrimaryContactPhone: 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 PrimaryContactPhoneRecId: 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 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.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.Salutation = undefined;\r\n        if (odataObject.Salutation) {\r\n            this.Salutation = [];\r\n            for (var i = 0; i < odataObject.Salutation.length; i++) {\r\n                if (odataObject.Salutation[i]) {\r\n                    // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n                    this.Salutation[i] = odataObject.Salutation[i];\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.Salutation[i] = undefined;\r\n                }\r\n            }\r\n        }\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.FirstName = odataObject.FirstName;\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.PersonProfessionalTitle = odataObject.PersonProfessionalTitle;\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.DateOfBirth = odataObject.DateOfBirth;\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.PrimaryContactFax = odataObject.PrimaryContactFax;\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.PrimaryContactFaxRecId = odataObject.PrimaryContactFaxRecId;\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.OrgPrimaryFax = odataObject.OrgPrimaryFax;\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.OrgPrimaryFaxRecId = odataObject.OrgPrimaryFaxRecId;\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.OrgPrimaryPhone = odataObject.OrgPrimaryPhone;\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.OrgPrimaryPhoneRecId = odataObject.OrgPrimaryPhoneRecId;\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.OrgPrimaryURL = odataObject.OrgPrimaryURL;\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.OrgPrimaryURLRecId = odataObject.OrgPrimaryURLRecId;\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.DeliveryName = odataObject.DeliveryName;\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.DeliveryStreet = odataObject.DeliveryStreet;\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.DeliveryCountry = odataObject.DeliveryCountry;\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.DeliveryZip = odataObject.DeliveryZip;\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.DeliveryCity = odataObject.DeliveryCity;\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.DilveryContactNumber = odataObject.DilveryContactNumber;\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.PartyRecId = odataObject.PartyRecId;\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.AddressRecId = odataObject.AddressRecId;\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.DeliveryPhoneRecId = odataObject.DeliveryPhoneRecId;\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.PersonalTitle = odataObject.PersonalTitle;\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.PrimaryContactPhone = odataObject.PrimaryContactPhone;\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.PrimaryContactPhoneRecId = odataObject.PrimaryContactPhoneRecId;\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 (let 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/**\r\n * SWGUpdateCustomerDataEntity entity class.\r\n */\r\nexport class SWGUpdateCustomerDataEntityExtensionClass implements ISWGUpdateCustomerDataEntity {\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 IsSuccess: boolean;\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 Message: 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 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.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.IsSuccess = odataObject.IsSuccess;\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.Message = odataObject.Message;\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/**\r\n * SWGInventoryData entity interface.\r\n */\r\nexport interface ISWGInventoryData {\r\n    Id: number;\r\n    ItemRecId: number;\r\n    ProductId: number;\r\n    AvailPhysical: number;\r\n    PackingType?: string;\r\n    PackingTypeName?: string;\r\n    BusinessModeId?: string;\r\n    BusinessModeValue?: string;\r\n    InventBatchId?: string;\r\n    BatchProdDate?: string;\r\n    InventQualityId?: string;\r\n    InventQualityName?: string;\r\n    ConsumedQuantity?: string;\r\n    ExtensionProperties?: Entities.CommerceProperty[];\r\n}\r\n\r\n/**\r\n * SWGInventoryData entity class.\r\n */\r\nexport class SWGInventoryDataExtensionClass implements ISWGInventoryData {\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 ItemRecId: 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 ProductId: 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 AvailPhysical: 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 PackingType: 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 PackingTypeName: 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 BusinessModeId: 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 BusinessModeValue: 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 InventBatchId: 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 BatchProdDate: 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 InventQualityId: 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 InventQualityName: 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 ConsumedQuantity: 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 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.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.ItemRecId = odataObject.ItemRecId ? parseInt(odataObject.ItemRecId, 10) : 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.ProductId = odataObject.ProductId ? parseInt(odataObject.ProductId, 10) : 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.AvailPhysical = odataObject.AvailPhysical ? parseFloat(odataObject.AvailPhysical) : 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.PackingType = odataObject.PackingType;\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.PackingTypeName = odataObject.PackingTypeName;\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.BusinessModeId = odataObject.BusinessModeId;\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.BusinessModeValue = odataObject.BusinessModeValue;\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.InventBatchId = odataObject.InventBatchId;\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.BatchProdDate = odataObject.BatchProdDate;\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.InventQualityId = odataObject.InventQualityId;\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.InventQualityName = odataObject.InventQualityName;\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.ConsumedQuantity = odataObject.ConsumedQuantity;\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\n// import {\r\n//     AsyncResult,\r\n//     callActionOrExecute,\r\n//     DataServiceQuery,\r\n//     IContext,\r\n//     IDataServiceRequest,\r\n//     IQueryResultSettings\r\n//     // IQueryResultSettings,\r\n//     // NullResult\r\n// } from '@msdyn365-commerce/retail-proxy';\r\nimport {\r\n    AsyncResult,\r\n    callActionOrExecute,\r\n    DataServiceQuery,\r\n    IContext,\r\n    IDataServiceRequest,\r\n    IQueryResultSettings\r\n    // IQueryResultSettings,\r\n    // NullResult\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\n// import * as Entities from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceTypes.g';\r\nimport * as DataServiceEntities from './DataServiceEntities.g';\r\n\r\n// @ts-ignore\r\nfunction sWGCustomerDataQuery(iD?: number): DataServiceQuery {\r\n    const key = iD ? { ID: iD } : null;\r\n    return new DataServiceQuery('SWGCustomerData', 'SWGCustomerDataView', DataServiceEntities.SWGCustomerDataViewExtensionClass, key);\r\n}\r\n\r\nexport function createSWGGetCustomerDataInput(customerId: string): IDataServiceRequest {\r\n    const query = sWGCustomerDataQuery();\r\n    return query.createDataServiceRequestForOperation(\r\n        'SWGGetCustomerData',\r\n        true,\r\n        DataServiceEntities.SWGCustomerDataViewExtensionClass,\r\n        'false',\r\n        { bypassCache: 'get', returnEntity: 'DataServiceEntities.ISWGCustomerDataView' },\r\n        { customerId: customerId }\r\n    );\r\n}\r\n\r\nexport function sWGGetCustomerDataAsync(context: IContext, customerId: string): AsyncResult<DataServiceEntities.ISWGCustomerDataView> {\r\n    const request = createSWGGetCustomerDataInput(customerId);\r\n    return callActionOrExecute<DataServiceEntities.ISWGCustomerDataView>(request, context.callerContext);\r\n}\r\n\r\nexport function createSWGGetCustomerEditableDataInput(customerId: string): IDataServiceRequest {\r\n    const query = sWGCustomerDataQuery();\r\n    return query.createDataServiceRequestForOperation(\r\n        'SWGGetCustomerEditableData',\r\n        true,\r\n        DataServiceEntities.SWGCustomerDataEditableExtensionClass,\r\n        'false',\r\n        { bypassCache: 'get', returnEntity: 'DataServiceEntities.ISWGCustomerDataEditable' },\r\n        { customerId: customerId }\r\n    );\r\n}\r\n\r\nexport function sWGGetCustomerEditableDataAsync(\r\n    context: IContext,\r\n    customerId: string\r\n): AsyncResult<DataServiceEntities.ISWGCustomerDataEditable> {\r\n    const request = createSWGGetCustomerEditableDataInput(customerId);\r\n    return callActionOrExecute<DataServiceEntities.ISWGCustomerDataEditable>(request, context.callerContext);\r\n}\r\n\r\nexport function createSWGUpdateCustomerDataInput(\r\n    accountNumber: string,\r\n    partyRecID: string,\r\n    name: string,\r\n    personalTitle: string,\r\n    professionalTitle: string,\r\n    birthDay: string,\r\n    birthMonth: string,\r\n    birthYear: string,\r\n    primaryFaxRecId: string,\r\n    primaryFax: string,\r\n    orgPrimaryFaxRecId: string,\r\n    orgPrimaryFax: string,\r\n    orgPrimaryPhoneRecId: string,\r\n    orgPrimaryPhone: string,\r\n    orgPrimaryUrlRecId: string,\r\n    orgPrimaryUrl: string,\r\n    addressRecId: string,\r\n    addressName: string,\r\n    addressStreet: string,\r\n    addressCity: string,\r\n    addressZip: string,\r\n    addressCountryCode: string,\r\n    deliveryPhoneRecId: string,\r\n    deliveryPhoneNumber: string,\r\n    primaryContactPhone: string,\r\n    primaryContactPhoneRecId: string\r\n): IDataServiceRequest {\r\n    const query = sWGCustomerDataQuery();\r\n    return query.createDataServiceRequestForOperation(\r\n        'SWGUpdateCustomerData',\r\n        true,\r\n        DataServiceEntities.SWGUpdateCustomerDataEntityExtensionClass,\r\n        'false',\r\n        { bypassCache: 'get', returnEntity: 'DataServiceEntities.ISWGUpdateCustomerDataEntity' },\r\n        {\r\n            accountNumber: accountNumber,\r\n            partyRecID: partyRecID,\r\n            name: name,\r\n            personalTitle: personalTitle,\r\n            professionalTitle: professionalTitle,\r\n            birthDay: birthDay,\r\n            birthMonth: birthMonth,\r\n            birthYear: birthYear,\r\n            primaryFaxRecId: primaryFaxRecId,\r\n            primaryFax: primaryFax,\r\n            orgPrimaryFaxRecId: orgPrimaryFaxRecId,\r\n            orgPrimaryFax: orgPrimaryFax,\r\n            orgPrimaryPhoneRecId: orgPrimaryPhoneRecId,\r\n            orgPrimaryPhone: orgPrimaryPhone,\r\n            orgPrimaryUrlRecId: orgPrimaryUrlRecId,\r\n            orgPrimaryUrl: orgPrimaryUrl,\r\n            addressRecId: addressRecId,\r\n            addressName: addressName,\r\n            addressStreet: addressStreet,\r\n            addressCity: addressCity,\r\n            addressZip: addressZip,\r\n            addressCountryCode: addressCountryCode,\r\n            deliveryPhoneRecId: deliveryPhoneRecId,\r\n            deliveryPhoneNumber: deliveryPhoneNumber,\r\n            primaryContactPhone: primaryContactPhone,\r\n            primaryContactPhoneRecId: primaryContactPhoneRecId\r\n        }\r\n    );\r\n}\r\n\r\nexport function sWGUpdateCustomerDataAsync(\r\n    context: IContext,\r\n    accountNumber: string,\r\n    partyRecID: string,\r\n    name: string,\r\n    personalTitle: string,\r\n    professionalTitle: string,\r\n    birthDay: string,\r\n    birthMonth: string,\r\n    birthYear: string,\r\n    primaryFaxRecId: string,\r\n    primaryFax: string,\r\n    orgPrimaryFaxRecId: string,\r\n    orgPrimaryFax: string,\r\n    orgPrimaryPhoneRecId: string,\r\n    orgPrimaryPhone: string,\r\n    orgPrimaryUrlRecId: string,\r\n    orgPrimaryUrl: string,\r\n    addressRecId: string,\r\n    addressName: string,\r\n    addressStreet: string,\r\n    addressCity: string,\r\n    addressZip: string,\r\n    addressCountryCode: string,\r\n    deliveryPhoneRecId: string,\r\n    deliveryPhoneNumber: string,\r\n    primaryContactPhone: string,\r\n    primaryContactPhoneRecId: string\r\n): AsyncResult<DataServiceEntities.ISWGUpdateCustomerDataEntity> {\r\n    const request = createSWGUpdateCustomerDataInput(\r\n        accountNumber,\r\n        partyRecID,\r\n        name,\r\n        personalTitle,\r\n        professionalTitle,\r\n        birthDay,\r\n        birthMonth,\r\n        birthYear,\r\n        primaryFaxRecId,\r\n        primaryFax,\r\n        orgPrimaryFaxRecId,\r\n        orgPrimaryFax,\r\n        orgPrimaryPhoneRecId,\r\n        orgPrimaryPhone,\r\n        orgPrimaryUrlRecId,\r\n        orgPrimaryUrl,\r\n        addressRecId,\r\n        addressName,\r\n        addressStreet,\r\n        addressCity,\r\n        addressZip,\r\n        addressCountryCode,\r\n        deliveryPhoneRecId,\r\n        deliveryPhoneNumber,\r\n        primaryContactPhone,\r\n        primaryContactPhoneRecId\r\n    );\r\n    return callActionOrExecute<DataServiceEntities.ISWGUpdateCustomerDataEntity>(request, context.callerContext);\r\n}\r\n\r\n// @ts-ignore\r\nfunction sWGInventoryDataQuery(id?: number): DataServiceQuery {\r\n    const key = id ? { Id: id } : null;\r\n    return new DataServiceQuery('SWGInventoryData', 'SWGInventoryData', DataServiceEntities.SWGInventoryDataExtensionClass, key);\r\n}\r\n\r\nexport function createSWGGetInventoryDataInput(\r\n    queryResultSettings: IQueryResultSettings,\r\n    productId: number,\r\n    requestedQuantity: number\r\n): IDataServiceRequest {\r\n    const query = sWGInventoryDataQuery().resultSettings(queryResultSettings);\r\n    return query.createDataServiceRequestForOperation(\r\n        'SWGGetInventoryData',\r\n        true,\r\n        DataServiceEntities.SWGInventoryDataExtensionClass,\r\n        'true',\r\n        { bypassCache: 'get', returnEntity: 'DataServiceEntities.ISWGInventoryData' },\r\n        { productId: productId, requestedQuantity: requestedQuantity }\r\n    );\r\n}\r\n\r\nexport function sWGGetInventoryDataAsync(\r\n    context: IContext,\r\n    productId: number,\r\n    requestedQuantity: number\r\n): AsyncResult<DataServiceEntities.ISWGInventoryData[]> {\r\n    const request = createSWGGetInventoryDataInput(context.queryResultSettings || {}, productId, requestedQuantity);\r\n    return callActionOrExecute<DataServiceEntities.ISWGInventoryData[]>(request, context.callerContext);\r\n}\r\n","import React from 'react';\r\nimport { Modal, ModalBody, ModalFooter, ModalHeader } from '@msdyn365-commerce-modules/utilities';\r\n\r\ninterface ISWModalProps {\r\n    isOpen: boolean;\r\n    onModalToggle: () => void;\r\n    className: string;\r\n    modalTitle?: React.ReactNode;\r\n    modalBody?: React.ReactNode;\r\n    modalFooter?: React.ReactNode;\r\n}\r\n\r\nexport default function SWModal(props: ISWModalProps) {\r\n    const { isOpen, onModalToggle, className, modalTitle, modalBody, modalFooter } = props;\r\n\r\n    return (\r\n        <Modal\r\n            isOpen={isOpen}\r\n            zIndex={1050}\r\n            applicationNode={'renderPage'}\r\n            autoFocus={true}\r\n            toggle={onModalToggle}\r\n            className={`sw-modal ${className}`}\r\n        >\r\n            {modalTitle && <ModalHeader>{modalTitle}</ModalHeader>}\r\n            {modalBody && <ModalBody className='sw-modal-body'>{modalBody}</ModalBody>}\r\n            {modalFooter && <ModalFooter>{modalFooter}</ModalFooter>}\r\n        </Modal>\r\n    );\r\n}\r\n","import React from 'react';\r\nimport Stepper, { Step } from 'react-material-stepper';\r\nimport { IAny, ICoreContext, IGeneric } from '@msdyn365-commerce/core-internal';\r\nimport { StepperAction, StepperContent, StepperContext } from 'react-material-stepper';\r\nimport Label from 'reactstrap/lib/Label';\r\nimport html2canvas from 'html2canvas';\r\nimport { ISalesLine, IOrderInformation, IOrderSummary } from '@msdyn365-commerce-modules/order-management';\r\nimport { IOrderDetailsResources, IReturnReasonOptionsData } from './../../definition-extensions/order-details.ext.props.autogenerated';\r\nimport { _getViewPort } from '../../../../utilities/get-viewport';\r\nimport { ISWGCustomerDataView } from '../../../../custom-proxy/RetailExtension/DataServiceEntities.g';\r\nimport 'react-material-stepper/dist/react-stepper.css';\r\nimport { PDFDocument, PDFFont, RGB, rgb, StandardFonts } from 'pdf-lib';\r\n\r\ninterface IReturnOrderSalesLine extends ISalesLine {\r\n    returnQuantity?: number;\r\n    returnPrice?: number;\r\n    returnRemarks?: string;\r\n    returnRemarksPlaceholder?: string;\r\n    returnReason?: string;\r\n}\r\ninterface ReturnOrderStepperProps {\r\n    salesLines?: ISalesLine[];\r\n    context: ICoreContext<IGeneric<IAny>>;\r\n    orderInformation?: IOrderInformation;\r\n    orderId?: string;\r\n    orderSummary?: IOrderSummary;\r\n    resources: IOrderDetailsResources;\r\n    returnReasonOptions: IReturnReasonOptionsData[];\r\n    logoUrl?: string;\r\n    statement?: string;\r\n    companyEmail?: string;\r\n    companyData?: ISWGCustomerDataView;\r\n    returnModalInfoText?: string;\r\n    toggleModal: () => void;\r\n}\r\ninterface StepProps {\r\n    vertical?: boolean;\r\n    resources: IOrderDetailsResources;\r\n    context: ICoreContext<IGeneric<IAny>>;\r\n    returnModalInfoText?: string;\r\n    companyEmail?: string;\r\n}\r\n\r\ninterface ProductDetailsStepProps extends StepProps {\r\n    salesLines: IReturnOrderSalesLine[];\r\n    returnReasonOptions: IReturnReasonOptionsData[];\r\n}\r\n\r\ninterface SummaryStepProps extends StepProps {\r\n    orderInformation: IOrderInformation;\r\n    orderSummary: IOrderSummary;\r\n    orderId?: string;\r\n    logoUrl?: string;\r\n    statement?: string;\r\n    companyData?: ISWGCustomerDataView;\r\n    toggleModal: () => void;\r\n}\r\n\r\nconst ReturnOrderStepper: React.FunctionComponent<ReturnOrderStepperProps> = ({\r\n    salesLines,\r\n    orderInformation,\r\n    orderSummary,\r\n    context,\r\n    orderId,\r\n    resources,\r\n    logoUrl,\r\n    statement,\r\n    companyEmail,\r\n    companyData,\r\n    returnModalInfoText,\r\n    returnReasonOptions,\r\n    toggleModal\r\n}) => {\r\n    const viewPort = _getViewPort(context);\r\n    const isMobile = viewPort === 'sm' || viewPort === 'xs';\r\n    return salesLines ? (\r\n        <div>\r\n            <Stepper vertical={isMobile}>\r\n                <Step stepId='product-detail' title={resources.selectProductsStepLabel}>\r\n                    <ProductDetailStep\r\n                        returnReasonOptions={returnReasonOptions}\r\n                        salesLines={salesLines}\r\n                        context={context}\r\n                        resources={resources}\r\n                        returnModalInfoText={returnModalInfoText}\r\n                        companyEmail={companyEmail}\r\n                    />\r\n                </Step>\r\n                <Step stepId='comments-and-bankaccount' title={resources.additionalInfoStepLabel}>\r\n                    <CommentsAndBankAccountStep\r\n                        context={context}\r\n                        resources={resources}\r\n                        returnModalInfoText={returnModalInfoText}\r\n                        companyEmail={companyEmail}\r\n                    />\r\n                </Step>\r\n                {orderInformation && orderSummary && (\r\n                    <Step stepId='summary' title={resources.summaryStepLabel}>\r\n                        <SummaryStep\r\n                            orderInformation={orderInformation}\r\n                            orderSummary={orderSummary}\r\n                            context={context}\r\n                            resources={resources}\r\n                            orderId={orderId}\r\n                            logoUrl={logoUrl}\r\n                            toggleModal={toggleModal}\r\n                            statement={statement}\r\n                            companyEmail={companyEmail}\r\n                            companyData={companyData}\r\n                            returnModalInfoText={returnModalInfoText}\r\n                        />\r\n                    </Step>\r\n                )}\r\n            </Stepper>\r\n        </div>\r\n    ) : null;\r\n};\r\n\r\nexport const ProductDetailStep: React.FunctionComponent<ProductDetailsStepProps> = ({\r\n    salesLines,\r\n    vertical,\r\n    context,\r\n    resources,\r\n    returnReasonOptions,\r\n    returnModalInfoText,\r\n    companyEmail\r\n}) => {\r\n    const [selectedProducts, setSelectedProducts] = React.useState<IReturnOrderSalesLine[]>([]);\r\n\r\n    React.useEffect(() => {\r\n        const previouslySelectedProducts: IReturnOrderSalesLine[] = getData('product-detail');\r\n        if (previouslySelectedProducts && previouslySelectedProducts.length !== 0) {\r\n            setSelectedProducts(selectedProducts => [...previouslySelectedProducts]);\r\n        }\r\n    }, []);\r\n\r\n    const { resolve, reject, getData } = React.useContext(StepperContext);\r\n    const onSubmit = (event: React.FormEvent) => {\r\n        event.preventDefault();\r\n        if (selectedProducts.length === 0 || validateReturnReasonAndRemarks()) {\r\n            reject(resources.selectProductsStepLabel);\r\n        } else {\r\n            resolve(selectedProducts);\r\n        }\r\n    };\r\n\r\n    const validateReturnReasonAndRemarks = () => {\r\n        const emptyDataProducts = selectedProducts.filter(product => {\r\n            return !product.returnRemarks || product.returnRemarks === '' || !product.returnReason || product.returnReason === '';\r\n        });\r\n        return emptyDataProducts.length > 0;\r\n    };\r\n\r\n    const handleQuantityChange = (event: React.ChangeEvent<HTMLSelectElement>, selectedLine: IReturnOrderSalesLine) => {\r\n        selectedLine.returnQuantity = Number(event.target.value);\r\n        selectedLine.returnPrice = (selectedLine.data.salesLine.Price || 0) * selectedLine.returnQuantity;\r\n    };\r\n\r\n    const handleOnChange = (event: React.ChangeEvent<HTMLInputElement>, selectedLine: IReturnOrderSalesLine) => {\r\n        const selectedProduct = selectedProducts.find(salesLine => {\r\n            return salesLine.data.salesLine.ProductId === selectedLine.data.salesLine.ProductId;\r\n        });\r\n\r\n        if (selectedProduct) {\r\n            const filteredProducts = selectedProducts.filter(product => {\r\n                return selectedProduct.data.salesLine.ProductId !== product.data.salesLine.ProductId;\r\n            });\r\n            setSelectedProducts(filteredProducts);\r\n        } else {\r\n            setSelectedProducts(selectedProducts => [...selectedProducts, selectedLine]);\r\n        }\r\n    };\r\n\r\n    const handleRemarksChange = (event: React.ChangeEvent<HTMLTextAreaElement>, selectedLine: IReturnOrderSalesLine) => {\r\n        const { value } = event.target;\r\n        selectedLine.returnRemarks = value;\r\n    };\r\n    const handleReasonChange = (event: React.ChangeEvent<HTMLSelectElement>, selectedLine: IReturnOrderSalesLine) => {\r\n        event.persist();\r\n        const updatedSelectedProducts = [...selectedProducts];\r\n        const selectedProductIndex = selectedProducts.findIndex(salesLine => {\r\n            return salesLine.data.salesLine.ProductId === selectedLine.data.salesLine.ProductId;\r\n        });\r\n        if (selectedProductIndex < 0) {\r\n            return;\r\n        }\r\n        const selectedProduct = selectedProducts[selectedProductIndex];\r\n        const selectedOption = event.target.selectedOptions[0];\r\n        const inputPlaceholder = selectedOption.getAttribute('data-option-placeholder');\r\n\r\n        if (inputPlaceholder && selectedProduct) {\r\n            selectedProduct.returnRemarksPlaceholder = inputPlaceholder;\r\n        } else {\r\n            selectedProduct.returnRemarksPlaceholder = '';\r\n        }\r\n        const { value } = event.target;\r\n        selectedProduct.returnReason = value;\r\n        updatedSelectedProducts[selectedProductIndex] = selectedProduct;\r\n        setSelectedProducts(updatedSelectedProducts);\r\n    };\r\n\r\n    return (\r\n        <StepperContent\r\n            className='first-step'\r\n            onSubmit={onSubmit}\r\n            actions={\r\n                <>\r\n                    <p>\r\n                        <i className='msi-InfoCircle' aria-hidden='true'></i>\r\n                        {returnModalInfoText} <a href={`mailto:${companyEmail}`}>{companyEmail}</a>\r\n                    </p>\r\n                    <React.Fragment>\r\n                        <div className='stepper__content__actions-btns'>\r\n                            <StepperAction type='submit'>{resources.continueButtonLabel}</StepperAction>\r\n                        </div>\r\n                    </React.Fragment>\r\n                </>\r\n            }\r\n        >\r\n            <div className='checkbox-wrapper'>\r\n                {salesLines &&\r\n                    salesLines.map((salesLine, index) => {\r\n                        const isSalesLineExists = selectedProducts.find(product => {\r\n                            return product.data.salesLine.ProductId === salesLine.data.salesLine.ProductId;\r\n                        });\r\n                        return (\r\n                            <div className='product-checkbox' key={index}>\r\n                                <input\r\n                                    name={salesLine.data.salesLine.ProductId?.toString()}\r\n                                    type='checkbox'\r\n                                    checked={isSalesLineExists ? true : false}\r\n                                    onChange={(e: React.ChangeEvent<HTMLInputElement>) => handleOnChange(e, salesLine)}\r\n                                />\r\n                                <div className='product-info'>\r\n                                    <div className='product-specs-wrapper'>\r\n                                        <div className='product-specs'>\r\n                                            <Label check>{salesLine.data.product?.Description}</Label>\r\n                                            <div>\r\n                                                {resources.priceLabel}:{' '}\r\n                                                {context.cultureFormatter.formatCurrency(salesLine.data.salesLine.TotalAmount!)}\r\n                                            </div>\r\n                                            <div>\r\n                                                {resources.productDimensionTypeColor}:{' '}\r\n                                                {salesLine.data.product?.Dimensions &&\r\n                                                    salesLine.data.product?.Dimensions.length &&\r\n                                                    salesLine.data.product?.Dimensions[0].DimensionValue?.Value}\r\n                                            </div>\r\n                                            <div>\r\n                                                <label>{salesLine.data.salesLine.SalesOrderUnitOfMeasure?.toLowerCase()}: </label>\r\n                                                <select\r\n                                                    defaultValue={\r\n                                                        salesLine.returnQuantity?.toString() ||\r\n                                                        salesLine.data.salesLine.Quantity?.toString() ||\r\n                                                        '1'\r\n                                                    }\r\n                                                    onChange={event => handleQuantityChange(event, salesLine)}\r\n                                                >\r\n                                                    {Array.from(Array(salesLine.data.salesLine.Quantity), (value, i) => {\r\n                                                        return (\r\n                                                            <option key={i} value={i + 1}>\r\n                                                                {i + 1}\r\n                                                            </option>\r\n                                                        );\r\n                                                    })}\r\n                                                </select>\r\n                                            </div>\r\n                                        </div>\r\n\r\n                                        <div className='reason'>\r\n                                            <label>{resources.returnReasonLabel}*</label>\r\n                                            <select\r\n                                                disabled={!isSalesLineExists}\r\n                                                defaultValue={salesLine.returnReason}\r\n                                                onChange={event => handleReasonChange(event, salesLine)}\r\n                                            >\r\n                                                {!salesLine.returnReason && <option value=''>{resources.selectReasonOptionLabel}</option>}\r\n                                                {returnReasonOptions.map((reason, i) => {\r\n                                                    return (\r\n                                                        <option\r\n                                                            value={`${reason.optionText}`}\r\n                                                            data-option-placeholder={reason.inputPlaceholder}\r\n                                                        >\r\n                                                            {reason.optionText}\r\n                                                        </option>\r\n                                                    );\r\n                                                })}\r\n                                            </select>\r\n                                        </div>\r\n                                        <div className='remarks'>\r\n                                            <label>{resources.remarksLabel}*</label>\r\n                                            <textarea\r\n                                                disabled={!isSalesLineExists}\r\n                                                placeholder={salesLine.returnRemarksPlaceholder}\r\n                                                defaultValue={salesLine.returnRemarks}\r\n                                                onChange={event => handleRemarksChange(event, salesLine)}\r\n                                            />\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                        );\r\n                    })}\r\n            </div>\r\n        </StepperContent>\r\n    );\r\n};\r\n\r\nexport const CommentsAndBankAccountStep: React.FunctionComponent<StepProps> = ({\r\n    vertical,\r\n    resources,\r\n    returnModalInfoText,\r\n    companyEmail\r\n}) => {\r\n    const { resolve, reject, getData, goAt } = React.useContext(StepperContext);\r\n    // const commentsField = React.useRef<HTMLDivElement>();\r\n    const bankAccountField = React.useRef<HTMLDivElement>();\r\n    // const SwiftCodeField = React.useRef<HTMLDivElement>();\r\n    // const accountHolderField = React.useRef<HTMLDivElement>();\r\n    // const commentsRef = React.useRef<HTMLTextAreaElement>();\r\n    const bankAccountRef = React.useRef<HTMLInputElement>();\r\n    const SwiftCodeRef = React.useRef<HTMLInputElement>();\r\n    const accountHolderRef = React.useRef<HTMLInputElement>();\r\n    const data = getData('comments-and-bankaccount') || {};\r\n\r\n    const back = () => goAt('product-detail');\r\n    const onSubmit = (event: React.FormEvent) => {\r\n        event.preventDefault();\r\n        // const comments: string = commentsRef.current?.value!;\r\n        const bankAccount: string = bankAccountRef.current?.value!;\r\n        const accountHolder: string = accountHolderRef.current?.value!;\r\n        const swiftCode: string = SwiftCodeRef.current?.value!;\r\n        if (bankAccount.length === 0 || accountHolder.length === 0) {\r\n            reject(resources.additionalInfoStepLabel);\r\n        } else {\r\n            resolve({\r\n                // comments,\r\n                bankAccount,\r\n                accountHolder,\r\n                swiftCode\r\n            });\r\n        }\r\n    };\r\n\r\n    return (\r\n        <StepperContent\r\n            className='second-step'\r\n            onSubmit={onSubmit}\r\n            actions={\r\n                <>\r\n                    <p>\r\n                        <i className='msi-InfoCircle' aria-hidden='true'></i>\r\n                        {returnModalInfoText} <a href={`mailto:${companyEmail}`}>{companyEmail}</a>\r\n                    </p>\r\n                    <React.Fragment>\r\n                        <div className='stepper__content__actions-btns'>\r\n                            <StepperAction type='button' onClick={back}>\r\n                                {resources.previousButtonLabel}\r\n                            </StepperAction>\r\n                            <StepperAction type='submit'>{resources.continueButtonLabel}</StepperAction>\r\n                        </div>\r\n                    </React.Fragment>\r\n                </>\r\n            }\r\n        >\r\n            <div className='form-group' ref={bankAccountField as React.RefObject<HTMLInputElement>}>\r\n                <label>{resources.accountHolderNameLabel}*</label>\r\n                <input\r\n                    name='Account Holder'\r\n                    ref={accountHolderRef as React.RefObject<HTMLInputElement>}\r\n                    defaultValue={data.accountHolder}\r\n                    type='text'\r\n                />\r\n                <label>{resources.accountNumberLabel}*</label>\r\n                <input\r\n                    name='Bank Account'\r\n                    ref={bankAccountRef as React.RefObject<HTMLInputElement>}\r\n                    defaultValue={data.bankAccount}\r\n                    type='text'\r\n                />\r\n                <label>{resources.accountSwiftCodeLabel}</label>\r\n                <input\r\n                    name='Swift Code'\r\n                    ref={SwiftCodeRef as React.RefObject<HTMLInputElement>}\r\n                    defaultValue={data.swiftCode}\r\n                    type='text'\r\n                />\r\n            </div>\r\n            {/* <div className='form-group' ref={commentsField as React.RefObject<HTMLInputElement>}>\r\n                <label>{resources.remarksLabel}</label>\r\n                <textarea name='Comments' ref={commentsRef as React.RefObject<HTMLTextAreaElement>} defaultValue={data.comments} />\r\n            </div> */}\r\n        </StepperContent>\r\n    );\r\n};\r\n\r\nexport const SummaryStep: React.FunctionComponent<SummaryStepProps> = ({\r\n    orderInformation,\r\n    orderSummary,\r\n    context,\r\n    resources,\r\n    orderId,\r\n    logoUrl,\r\n    statement,\r\n    companyEmail,\r\n    companyData,\r\n    returnModalInfoText,\r\n    toggleModal\r\n}) => {\r\n    const { resolve, getData, goAt } = React.useContext(StepperContext);\r\n    const [isLoading, setIsLoading] = React.useState(false);\r\n\r\n    const selectedProducts: IReturnOrderSalesLine[] = getData('product-detail');\r\n    const commentsAndBankAccount = getData('comments-and-bankaccount');\r\n    const back = () => goAt('comments-and-bankaccount');\r\n    //can be used incase summary is needed\r\n    //const summary = getData('summary');\r\n\r\n    const onSubmit = (event: React.FormEvent) => {\r\n        event.preventDefault();\r\n        resolve({ selectedProducts, commentsAndBankAccount, orderInformation, orderSummary });\r\n    };\r\n    const createOrderReturn = async () => {\r\n        const pdfContainer = document.getElementById('pdf-container');\r\n        if (pdfContainer) {\r\n            setIsLoading(true);\r\n            const height = pdfContainer.clientHeight;\r\n\r\n            try {\r\n                const canvas = await html2canvas(pdfContainer, {\r\n                    imageTimeout: 0,\r\n                    height: height,\r\n                    scale: 3\r\n                });\r\n                const contentDataURL = canvas.toDataURL('image/jpeg');\r\n                const pdfDoc = await PDFDocument.create();\r\n                const page = pdfDoc.addPage();\r\n                const { width, height: pageHeight } = page.getSize();\r\n                const imgProps = await pdfDoc.embedJpg(contentDataURL);\r\n                const pdfHeight = (imgProps.height * width) / imgProps.width;\r\n\r\n                const helveticaFont = await pdfDoc.embedFont(StandardFonts.Helvetica);\r\n                const helveticaBoldFont = await pdfDoc.embedFont(StandardFonts.HelveticaBold);\r\n\r\n                const embedLogoImage = async (logoUrl: string) => {\r\n                    const response = await fetch(logoUrl);\r\n                    const arrayBuffer = await response.arrayBuffer();\r\n                    const contentType = response.headers.get('content-type');\r\n\r\n                    if (contentType!.includes('image/jpeg')) {\r\n                        return await pdfDoc.embedJpg(arrayBuffer);\r\n                    } else if (contentType!.includes('image/png')) {\r\n                        return await pdfDoc.embedPng(arrayBuffer);\r\n                    } else {\r\n                        throw new Error('Unsupported image format');\r\n                    }\r\n                };\r\n\r\n                if (logoUrl) {\r\n                    try {\r\n                        const logoImage = await embedLogoImage(logoUrl);\r\n                        page.drawImage(logoImage, {\r\n                            x: 185,\r\n                            y: pageHeight - 45,\r\n                            width: 200,\r\n                            height: 30\r\n                        });\r\n                    } catch (error) {\r\n                        console.error('Error embedding logo image:', error);\r\n                    }\r\n                }\r\n\r\n                const drawTextWithWrapping = (\r\n                    text: string,\r\n                    x: number,\r\n                    y: number,\r\n                    maxWidth: number,\r\n                    fontSize: number,\r\n                    font: PDFFont,\r\n                    color: RGB\r\n                ) => {\r\n                    const words = text.split(' ');\r\n                    let line = '';\r\n                    let lineHeight = fontSize + 2; // Adjust line height as needed\r\n                    let cursorY = y;\r\n                    page.setFont(font);\r\n                    page.setFontSize(fontSize);\r\n\r\n                    words.forEach((word: string) => {\r\n                        const testLine = line + word + ' ';\r\n                        const testWidth = font.widthOfTextAtSize(testLine, fontSize);\r\n                        if (testWidth > maxWidth && line !== '') {\r\n                            page.drawText(line, { x, y: cursorY });\r\n                            line = word + ' ';\r\n                            cursorY -= lineHeight;\r\n                        } else {\r\n                            line = testLine;\r\n                        }\r\n                    });\r\n                    page.drawText(line, { x, y: cursorY });\r\n                };\r\n\r\n                drawTextWithWrapping('Instructions', 12, pageHeight - 65, width - 24, 16, helveticaBoldFont, rgb(0.17, 0.15, 0.18));\r\n                drawTextWithWrapping(statement || '', 12, pageHeight - 85, 517, 12, helveticaFont, rgb(0, 0, 0));\r\n                drawTextWithWrapping(`Email: ${companyEmail}`, 12, pageHeight - 127, width - 24, 12, helveticaFont, rgb(0, 0, 0));\r\n\r\n                page.drawImage(imgProps, {\r\n                    x: 0,\r\n                    y: pageHeight - 130 - pdfHeight,\r\n                    width: width,\r\n                    height: pdfHeight\r\n                });\r\n\r\n                const pdfBytes = await pdfDoc.save();\r\n                const blob = new Blob([pdfBytes], { type: 'application/pdf' });\r\n                const url = URL.createObjectURL(blob);\r\n\r\n                const link = document.createElement('a');\r\n                link.href = url;\r\n                link.download = `${orderId || ''}.pdf`;\r\n                document.body.appendChild(link);\r\n                link.click();\r\n                document.body.removeChild(link);\r\n\r\n                setIsLoading(false);\r\n                goAt('product-detail');\r\n                toggleModal();\r\n            } catch (error) {\r\n                console.error('Error generating PDF:', error);\r\n                setIsLoading(false);\r\n            }\r\n        }\r\n    };\r\n\r\n    return (\r\n        <StepperContent\r\n            className='third-step'\r\n            onSubmit={onSubmit}\r\n            actions={\r\n                <>\r\n                    <p>\r\n                        <i className='msi-InfoCircle' aria-hidden='true'></i>\r\n                        {returnModalInfoText} <a href={`mailto:${companyEmail}`}>{companyEmail}</a>\r\n                    </p>\r\n                    <React.Fragment>\r\n                        <div className='stepper__content__actions-btns'>\r\n                            <StepperAction type='button' onClick={back}>\r\n                                {resources.previousButtonLabel}\r\n                            </StepperAction>\r\n                            <StepperAction\r\n                                type='button'\r\n                                className={`mdc-button--unelevated ${isLoading ? 'is-busy' : ''}`}\r\n                                onClick={createOrderReturn}\r\n                            >\r\n                                {resources.completeButtonLabel}\r\n                            </StepperAction>\r\n                        </div>\r\n                    </React.Fragment>\r\n                </>\r\n            }\r\n        >\r\n            {' '}\r\n            <div className='pdf-wrapper'>\r\n                <div id='pdf-container'>\r\n                    {companyData && (\r\n                        <div className='company-wrapper'>\r\n                            <h2>{resources.companyInfoHeading}</h2>\r\n                            <ul>\r\n                                <li>\r\n                                    <span>{resources.companyAccountNumberLabel}:</span>\r\n                                    <span>{companyData.AdrNumber}</span>\r\n                                </li>\r\n                                <li>\r\n                                    <span>{resources.contactPersonNameLabel}:</span>\r\n                                    <span>{context.request.user.name}</span>\r\n                                </li>\r\n                                <li>\r\n                                    <span>{resources.contactPersonEmailLabel}:</span>\r\n                                    <span>{context.request.user.emailAddress}</span>\r\n                                </li>\r\n                                <li>\r\n                                    <span>{resources.odCompanyNameLabel}:</span>\r\n                                    <span>{companyData.CompName}</span>\r\n                                </li>\r\n                                <li>\r\n                                    {/* <h3>{resources.companyAddressLabel}</h3> */}\r\n                                    <span>{resources.odCompanyAddressLabel}:</span>\r\n                                    <span>{`${companyData.Street1}, ${companyData.Town1}, ${companyData.SW_CountryIntex}`}</span>\r\n                                </li>\r\n                                <li>\r\n                                    <span>{resources.odCompanyZipcodeLabel}:</span>\r\n                                    <span>{companyData.Zip1}</span>\r\n                                </li>\r\n                            </ul>\r\n                        </div>\r\n                    )}\r\n                    <h2>{resources.orderInfoHeading}</h2>\r\n                    <h3 className='order-id'>{orderInformation.salesId}</h3>\r\n                    <div className='products'>\r\n                        {selectedProducts &&\r\n                            selectedProducts.map((salesLine, index) => {\r\n                                return (\r\n                                    <div key={index} className='product'>\r\n                                        <span className='product-name'>{salesLine.data.product?.Description}</span>\r\n                                        <span>\r\n                                            <b>{resources.productDimensionTypeColor}</b>:{' '}\r\n                                            {salesLine.data.product?.Dimensions &&\r\n                                                salesLine.data.product?.Dimensions.length &&\r\n                                                salesLine.data.product?.Dimensions[0].DimensionValue?.Value}\r\n                                        </span>\r\n\r\n                                        <span>\r\n                                            <b>{resources.priceLabel}</b>:{' '}\r\n                                            {context.cultureFormatter.formatCurrency(\r\n                                                salesLine.returnPrice ? salesLine.returnPrice : salesLine.data.salesLine.TotalAmount || 0\r\n                                            )}\r\n                                        </span>\r\n                                        <span>\r\n                                            <b>{salesLine.data.salesLine.SalesOrderUnitOfMeasure}</b>:{' '}\r\n                                            {salesLine.returnQuantity ? salesLine.returnQuantity : salesLine.data.salesLine.Quantity}\r\n                                        </span>\r\n                                        <span>\r\n                                            <b>{resources.returnReasonLabel}</b>: {salesLine.returnReason}\r\n                                        </span>\r\n                                        <span>\r\n                                            <b>{resources.remarksLabel}</b>: {salesLine.returnRemarks}\r\n                                        </span>\r\n                                    </div>\r\n                                );\r\n                            })}\r\n                    </div>\r\n                    <div className='account-info'>\r\n                        <h2>{resources.bankAccountInfoLabel}</h2>\r\n                        <span className='account-value'>\r\n                            <b>{resources.accountHolderNameLabel}</b>: {commentsAndBankAccount.accountHolder}\r\n                        </span>\r\n                        <span className='account-value'>\r\n                            <b>{resources.accountNumberLabel}</b>: {commentsAndBankAccount.bankAccount}\r\n                        </span>\r\n                        <span className='account-value'>\r\n                            <b>{resources.accountSwiftCodeLabel}</b>: {commentsAndBankAccount.swiftCode}\r\n                        </span>\r\n                    </div>\r\n                    {/* <div className='comment-section'>\r\n                        <h3>{resources.remarksLabel}</h3>\r\n                        <p className='comments'>{commentsAndBankAccount.comments}</p>\r\n                    </div> */}\r\n                </div>\r\n            </div>\r\n        </StepperContent>\r\n    );\r\n};\r\n\r\nexport default ReturnOrderStepper;\r\n","import MsDyn365, { ICoreContext } from '@msdyn365-commerce/core';\r\nexport type GridSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';\r\nexport const _getViewPort = (context: ICoreContext): GridSize => {\r\n    // if (context.request && context.request.device && context.request.device.Type === 'Mobile') {\r\n    //     return 'xs';\r\n    // }\r\n\r\n    if (MsDyn365.isBrowser && window.innerWidth) {\r\n        const gridSettings = context.request.gridSettings;\r\n        if (gridSettings) {\r\n            if (gridSettings.xs && window.innerWidth <= gridSettings.xs.w) {\r\n                return 'xs';\r\n            } else if (gridSettings.sm && window.innerWidth <= gridSettings.sm.w) {\r\n                return 'sm';\r\n            } else if (gridSettings.md && window.innerWidth <= gridSettings.md.w) {\r\n                return 'md';\r\n            } else if (gridSettings.lg && window.innerWidth <= gridSettings.lg.w) {\r\n                return 'lg';\r\n            }\r\n            return 'xl';\r\n        }\r\n    }\r\n\r\n    return 'xs';\r\n};\r\n"],"names":["SWGCustomerDataViewExtensionClass","constructor","odataObject","this","ID","MailField1","AdrNumber","CompName","SW_CountryIntex","Street1","Town1","Zip1","TurnOverTaxID","Currency","Payment","DelTerm","BKNOOTCODE","MailField2","Email","ExtensionProperties","undefined","i","length","className","substr","lastIndexOf","concat","EntityClasses","SWGCustomerDataEditableExtensionClass","Salutation","FirstName","PersonProfessionalTitle","DateOfBirth","PrimaryContactFax","PrimaryContactFaxRecId","OrgPrimaryFax","OrgPrimaryFaxRecId","OrgPrimaryPhone","OrgPrimaryPhoneRecId","OrgPrimaryURL","OrgPrimaryURLRecId","DeliveryName","DeliveryStreet","DeliveryCountry","DeliveryZip","DeliveryCity","DilveryContactNumber","PartyRecId","AddressRecId","DeliveryPhoneRecId","PersonalTitle","PrimaryContactPhone","PrimaryContactPhoneRecId","SWGUpdateCustomerDataEntityExtensionClass","IsSuccess","Message","SWGInventoryDataExtensionClass","Id","ItemRecId","parseInt","ProductId","AvailPhysical","parseFloat","PackingType","PackingTypeName","BusinessModeId","BusinessModeValue","InventBatchId","BatchProdDate","InventQualityId","InventQualityName","ConsumedQuantity","sWGCustomerDataQuery","iD","key","DataServiceQuery","DataServiceEntities","sWGGetCustomerDataAsync","context","customerId","request","createDataServiceRequestForOperation","bypassCache","returnEntity","createSWGGetCustomerDataInput","callActionOrExecute","callerContext","sWGGetCustomerEditableDataAsync","createSWGGetCustomerEditableDataInput","sWGUpdateCustomerDataAsync","accountNumber","partyRecID","name","personalTitle","professionalTitle","birthDay","birthMonth","birthYear","primaryFaxRecId","primaryFax","orgPrimaryFaxRecId","orgPrimaryFax","orgPrimaryPhoneRecId","orgPrimaryPhone","orgPrimaryUrlRecId","orgPrimaryUrl","addressRecId","addressName","addressStreet","addressCity","addressZip","addressCountryCode","deliveryPhoneRecId","deliveryPhoneNumber","primaryContactPhone","primaryContactPhoneRecId","createSWGUpdateCustomerDataInput","createSWGGetInventoryDataInput","queryResultSettings","productId","requestedQuantity","id","sWGInventoryDataQuery","resultSettings","sWGGetInventoryDataAsync","SWModal","props","isOpen","onModalToggle","modalTitle","modalBody","modalFooter","React","Modal","zIndex","applicationNode","autoFocus","toggle","ModalHeader","ModalBody","ModalFooter","ProductDetailStep","_ref2","salesLines","vertical","resources","returnReasonOptions","returnModalInfoText","companyEmail","selectedProducts","setSelectedProducts","previouslySelectedProducts","getData","resolve","reject","StepperContext","validateReturnReasonAndRemarks","filter","product","returnRemarks","returnReason","StepperContent","onSubmit","event","preventDefault","selectProductsStepLabel","actions","href","StepperAction","type","continueButtonLabel","map","salesLine","index","_salesLine$data$sales","_salesLine$data$produ","_salesLine$data$produ2","_salesLine$data$produ3","_salesLine$data$produ4","_salesLine$data$sales2","_salesLine$returnQuan","_salesLine$data$sales3","isSalesLineExists","find","data","toString","checked","onChange","e","handleOnChange","selectedLine","selectedProduct","filteredProducts","Label","check","Description","priceLabel","cultureFormatter","formatCurrency","TotalAmount","productDimensionTypeColor","Dimensions","DimensionValue","Value","SalesOrderUnitOfMeasure","toLowerCase","defaultValue","returnQuantity","Quantity","handleQuantityChange","Number","target","value","returnPrice","Price","Array","from","returnReasonLabel","disabled","handleReasonChange","persist","updatedSelectedProducts","selectedProductIndex","findIndex","inputPlaceholder","selectedOptions","getAttribute","returnRemarksPlaceholder","selectReasonOptionLabel","reason","optionText","remarksLabel","placeholder","handleRemarksChange","CommentsAndBankAccountStep","_ref3","goAt","bankAccountField","bankAccountRef","SwiftCodeRef","accountHolderRef","_bankAccountRef$curre","_accountHolderRef$cur","_SwiftCodeRef$current","bankAccount","current","accountHolder","swiftCode","additionalInfoStepLabel","onClick","back","previousButtonLabel","ref","accountHolderNameLabel","accountNumberLabel","accountSwiftCodeLabel","SummaryStep","_ref4","orderInformation","orderSummary","orderId","logoUrl","statement","companyData","toggleModal","isLoading","setIsLoading","commentsAndBankAccount","async","pdfContainer","document","getElementById","height","clientHeight","contentDataURL","html2canvas","imageTimeout","scale","toDataURL","pdfDoc","PDFDocument","create","page","addPage","width","pageHeight","getSize","imgProps","embedJpg","pdfHeight","helveticaFont","embedFont","StandardFonts","Helvetica","helveticaBoldFont","HelveticaBold","embedLogoImage","response","fetch","arrayBuffer","contentType","headers","get","includes","embedPng","Error","logoImage","drawImage","x","y","error","console","drawTextWithWrapping","text","maxWidth","fontSize","font","color","words","split","line","lineHeight","cursorY","setFont","setFontSize","forEach","word","testLine","widthOfTextAtSize","drawText","rgb","pdfBytes","save","blob","Blob","url","URL","createObjectURL","link","createElement","download","body","appendChild","click","removeChild","completeButtonLabel","companyInfoHeading","companyAccountNumberLabel","contactPersonNameLabel","user","contactPersonEmailLabel","emailAddress","odCompanyNameLabel","odCompanyAddressLabel","odCompanyZipcodeLabel","orderInfoHeading","salesId","_salesLine$data$produ5","_salesLine$data$produ6","_salesLine$data$produ7","_salesLine$data$produ8","bankAccountInfoLabel","_ref","viewPort","_getViewPort","isMobile","Stepper","Step","stepId","title","summaryStepLabel","MsDyn365","isBrowser","window","innerWidth","gridSettings","xs","w","sm","md","lg"],"sourceRoot":""}