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AQkqB,GACJ,IAAK,KACD,OAAOlqB,EAAUmzB,sCACrB,IAAK,KACD,OAAOnzB,EAAUozB,qCACrB,IAAK,KACD,OAAOpzB,EAAUqzB,wCACrB,IAAK,KACD,OAAOrzB,EAAUszB,uCACrB,IAAK,KACD,OAAOtzB,EAAUuzB,wCACrB,IAAK,KACD,OAAOvzB,EAAUwzB,yCACrB,IAAK,KACD,OAAOxzB,EAAUyzB,wCACrB,QACI,OAAOzzB,EAAUizB,+BCjDLC,CAAsChJ,EAAMlqB,wBCtBpE,IAAI0zB,EAAI,EAAQ,IACZC,EAAmB,EAAQ,KAC3BC,EAAY,EAAQ,IACpBC,EAAW,EAAQ,IACnBC,EAAoB,EAAQ,IAC5BC,EAAqB,EAAQ,KAIjCL,EAAE,CAAE73B,OAAQ,QAASm4B,OAAO,GAAQ,CAClCpc,QAAS,SAAiBqc,GACxB,IAEIC,EAFAC,EAAIN,EAAS10B,MACbi1B,EAAYN,EAAkBK,GAKlC,OAHAP,EAAUK,IACVC,EAAIH,EAAmBI,EAAG,IACxBlzB,OAAS0yB,EAAiBO,EAAGC,EAAGA,EAAGC,EAAW,EAAG,EAAGH,EAAYI,UAAUpzB,OAAS,EAAIozB,UAAU,QAAKh1B,GACjG60B,qBCfY,EAAQ,IAG/BI,CAAiB","sources":["webpack://msdyn365-lxs-master-theme/./src/components/alert.tsx?b7ad","webpack://msdyn365-lxs-master-theme/./src/components/modal.tsx?9ee9","webpack://msdyn365-lxs-master-theme/./src/components/tooltip.tsx?aefd","webpack://msdyn365-lxs-master-theme/./src/configuration/punctuations.ts?567f","webpack://msdyn365-lxs-master-theme/./src/configuration/debounce-input-delay.ts?ccfa","webpack://msdyn365-lxs-master-theme/./src/configuration/create-order.ts?6b0d","webpack://msdyn365-lxs-master-theme/./src/configuration/error-codes.ts?249e","webpack://msdyn365-lxs-master-theme/./src/configuration/tooltip.ts?0d42","webpack://msdyn365-lxs-master-theme/./src/configuration/total-price-default.ts?b7fb","webpack://msdyn365-lxs-master-theme/./src/configuration/status-codes.ts?4c3a","webpack://msdyn365-lxs-master-theme/./src/configuration/order-history.ts?ce2d","webpack://msdyn365-lxs-master-theme/./src/configuration/back-to-top-footer.ts?29ba","webpack://msdyn365-lxs-master-theme/./src/modules/lxs-create-order/lxs-create-order.tsx?ab8b","webpack://msdyn365-lxs-master-theme/./src/modules/lxs-create-order/components/process-bar.tsx?f39f","webpack://msdyn365-lxs-master-theme/./src/modules/lxs-create-order/components/address-information.tsx?407c","webpack://msdyn365-lxs-master-theme/./src/components/skeleton.tsx?99be","webpack://msdyn365-lxs-master-theme/./src/modules/lxs-create-order/components/debounced-input.tsx?2045","webpack://msdyn365-lxs-master-theme/./src/modules/lxs-create-order/components/dropdown.tsx?a43b","webpack://msdyn365-lxs-master-theme/./src/modules/lxs-create-order/components/search-box.tsx?21a7","webpack://msdyn365-lxs-master-theme/./src/modules/lxs-create-order/components/highlight-search-term.tsx?605b","webpack://msdyn365-lxs-master-theme/./src/modules/lxs-create-order/components/soldtos.tsx?f483","webpack://msdyn365-lxs-master-theme/./src/modules/lxs-create-order/components/shiptos.tsx?16df","webpack://msdyn365-lxs-master-theme/./src/modules/lxs-create-order/components/back-button.tsx?b994","webpack://msdyn365-lxs-master-theme/./src/modules/lxs-create-order/components/order-header-info.tsx?9407","webpack://msdyn365-lxs-master-theme/./src/modules/lxs-create-order/components/selected-products.tsx?b621","webpack://msdyn365-lxs-master-theme/./src/modules/lxs-create-order/components/products.tsx?dd5e","webpack://msdyn365-lxs-master-theme/./src/modules/lxs-create-order/components/items-table.tsx?3569","webpack://msdyn365-lxs-master-theme/./src/components/loading-button.tsx?5d02","webpack://msdyn365-lxs-master-theme/./src/modules/lxs-create-order/components/disclaimer.tsx?ceb3","webpack://msdyn365-lxs-master-theme/./src/modules/lxs-create-order/components/overview.tsx?51a4","webpack://msdyn365-lxs-master-theme/./src/modules/lxs-create-order/components/order-info.tsx?c780","webpack://msdyn365-lxs-master-theme/./src/modules/lxs-create-order/components/order-error.tsx?9b53","webpack://msdyn365-lxs-master-theme/./src/utilities/get-create-order-page-url.tsx?cfcb","webpack://msdyn365-lxs-master-theme/./src/modules/lxs-create-order/components/acknowledgement-action-buttons.tsx?eb95","webpack://msdyn365-lxs-master-theme/./src/utilities/get-order-history-page-url.tsx?bb8c","webpack://msdyn365-lxs-master-theme/./src/modules/lxs-create-order/components/acknowledgement-items-table.tsx?87c4","webpack://msdyn365-lxs-master-theme/./src/modules/lxs-create-order/components/acknowledgement.tsx?8102","webpack://msdyn365-lxs-master-theme/./src/modules/lxs-create-order/components/message-view.tsx?424d","webpack://msdyn365-lxs-master-theme/./src/modules/lxs-create-order/lxs-create-order.view.tsx?5d6f","webpack://msdyn365-lxs-master-theme/./src/modules/order-history/order-history.tsx?937d","webpack://msdyn365-lxs-master-theme/./src/utilities/get-order-details-page-url.tsx?1867","webpack://msdyn365-lxs-master-theme/./src/modules/order-history/components/debounced-input.tsx?8616","webpack://msdyn365-lxs-master-theme/./src/modules/order-history/components/search-box.tsx?7f15","webpack://msdyn365-lxs-master-theme/./src/modules/order-history/components/order-history-table.tsx?87f1","webpack://msdyn365-lxs-master-theme/./src/modules/order-history/order-history.view.tsx?1cca","webpack://msdyn365-lxs-master-theme/./src/utilities/format-address.ts?ebd9","webpack://msdyn365-lxs-master-theme/./src/utilities/convert-html-to-plain-text.ts?7a71","webpack://msdyn365-lxs-master-theme/./src/utilities/convert-sap-to-html-line-breaks.ts?e5c4","webpack://msdyn365-lxs-master-theme/./src/utilities/convert-sap-to-newline-line-breaks.ts?e631","webpack://msdyn365-lxs-master-theme/./src/utilities/convert-newline-to-sap-line-breaks.ts?efdf","webpack://msdyn365-lxs-master-theme/./src/utilities/format-currency.ts?a84f","webpack://msdyn365-lxs-master-theme/./src/utilities/format-date.ts?1998","webpack://msdyn365-lxs-master-theme/./src/utilities/format-number.ts?628f","webpack://msdyn365-lxs-master-theme/./src/utilities/format-time.ts?9fe6","webpack://msdyn365-lxs-master-theme/./src/utilities/map-item-status-code-to-text.ts?338d","webpack://msdyn365-lxs-master-theme/./src/utilities/map-overall-status-code-to-text.ts?279a","webpack://msdyn365-lxs-master-theme/./src/utilities/format-status-code-for-tooltip.tsx?878f","webpack://msdyn365-lxs-master-theme/./node_modules/@msdyn365-commerce/bootloader/node_modules/core-js/modules/es.array.flat-map.js?a1b3","webpack://msdyn365-lxs-master-theme/./node_modules/@msdyn365-commerce/bootloader/node_modules/core-js/modules/es.array.unscopables.flat-map.js?8a78"],"sourcesContent":["import React, { CSSProperties } from 'react';\r\n\r\nexport type AlertType = 'warning' | 'info' | 'danger' | 'success';\r\n\r\ninterface IAlertProps {\r\n type: AlertType;\r\n message: string;\r\n label?: string;\r\n iconSize?: number;\r\n closable?: boolean;\r\n onClose?: () => void;\r\n}\r\n\r\nconst alert = ({ type, message, iconSize = 1, closable = false, onClose }: IAlertProps): JSX.Element => {\r\n const customStyles = { '--icon-size': `${iconSize}rem` };\r\n return (\r\n
\r\n \r\n {message}\r\n \r\n {closable &&
\r\n );\r\n};\r\n\r\nexport default alert;\r\n","import React, { FC, ReactNode, createContext, useContext, useEffect, useState } from 'react';\r\nimport classname from 'classnames';\r\nimport { Module, Node, Modal, ModalBody, ModalFooter, ModalHeader, IModuleProps } from '@msdyn365-commerce-modules/utilities';\r\n\r\ninterface ModalProviderNewProps {\r\n children: ReactNode;\r\n props: any;\r\n}\r\n\r\ntype ModalContextType = {\r\n isOpen: boolean;\r\n setOpen: (data: ModalProviderContentProps) => void;\r\n setClose: () => void;\r\n};\r\n\r\ninterface ModalProviderContentProps {\r\n content: ReactNode;\r\n header?: string;\r\n size?: 'sm' | 'lg' | 'xl';\r\n}\r\n\r\nexport const ModalContext = createContext({\r\n isOpen: false,\r\n setOpen: () => {},\r\n setClose: () => {}\r\n});\r\n\r\nexport const ModalProvider: FC = ({ children, props }) => {\r\n const [isOpen, setIsOpen] = useState(false);\r\n const [content, setContent] = useState({ content: null, header: '', size: 'sm' });\r\n const [isMounted, setIsMounted] = useState(false);\r\n\r\n useEffect(() => {\r\n setIsMounted(true);\r\n }, []);\r\n\r\n const setOpen = (data: ModalProviderContentProps) => {\r\n if (data.content) {\r\n setContent(data);\r\n setIsOpen(true);\r\n }\r\n };\r\n\r\n const setClose = () => {\r\n setIsOpen(false);\r\n setTimeout(() => {\r\n setContent({ content: null, header: '', size: 'sm' });\r\n }, 300);\r\n };\r\n\r\n if (!isMounted) {\r\n return null;\r\n }\r\n\r\n const modalContainer: IModuleProps = {\r\n tag: Modal,\r\n moduleProps: props,\r\n className: classname({ [`msc-modal__dialog-${content.size}`]: true }),\r\n isOpen,\r\n 'aria-label': 'open-modal',\r\n toggle: setClose,\r\n modalTransition: { timeout: 0 },\r\n shouldUpdateFocusToFirstElement: true\r\n };\r\n\r\n const modalHeaderContainer = {\r\n tag: ModalHeader,\r\n moduleProps: props,\r\n className: '',\r\n toggle: setClose,\r\n closeButtonTabIndex: 1\r\n };\r\n\r\n const modalFooterContainer = { tag: ModalFooter, className: '' };\r\n\r\n const modalBodyContainer = { tag: ModalBody, className: '' };\r\n\r\n return (\r\n \r\n {children}\r\n \r\n {content.header ?? ''}\r\n {content.content}\r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport const useModal = () => {\r\n const context = useContext(ModalContext);\r\n if (!context) {\r\n throw new Error('useModal must be used within the modal provider');\r\n }\r\n return context;\r\n};\r\n","import React, { MouseEvent, useEffect, useRef, useState } from 'react';\r\nimport { createPortal } from 'react-dom';\r\nimport { TOOLTIP_OFFSET, TOOLTIP_X_OFFSET } from '../configuration';\r\n\r\ninterface ITooltipContainerProps {\r\n label: string;\r\n content: string | JSX.Element;\r\n}\r\n\r\nconst tooltipContainer = ({ label, content }: ITooltipContainerProps): JSX.Element => {\r\n const ref = useRef(null);\r\n const [tooltip, setTooltip] = useState<{\r\n show: boolean;\r\n position: { top: number; left: number };\r\n windowSize: { height: number; width: number };\r\n }>({\r\n show: false,\r\n position: { top: 0, left: 0 },\r\n windowSize: { height: 0, width: 0 }\r\n });\r\n\r\n const handleMouseEnter = (e: MouseEvent): void => {\r\n const rect = (e.target as HTMLSpanElement)?.getBoundingClientRect();\r\n\r\n // windowSize is needed before mouseEnter is active. Caused by overflow-x: auto (example: scrolling table)\r\n setTooltip({\r\n show: true,\r\n position: {\r\n top: rect.top + window.scrollY,\r\n left: rect.right + window.scrollX + TOOLTIP_OFFSET\r\n },\r\n windowSize: {\r\n height: window.innerHeight,\r\n width: window.innerWidth\r\n }\r\n });\r\n };\r\n\r\n useEffect(() => {\r\n if (tooltip.show && ref.current) {\r\n const rect = ((ref.current as unknown) as HTMLDivElement).getBoundingClientRect();\r\n const newPosition = { ...tooltip.position };\r\n if (rect.right > tooltip.windowSize.width) {\r\n const overflowWidth = rect.right - tooltip.windowSize.width;\r\n newPosition.left = tooltip.position.left - overflowWidth - TOOLTIP_X_OFFSET;\r\n }\r\n if (rect.bottom > window.innerHeight) {\r\n const overflowHeight = rect.bottom - window.innerHeight;\r\n newPosition.top = tooltip.position.top - overflowHeight - TOOLTIP_OFFSET;\r\n }\r\n\r\n setTooltip({\r\n ...tooltip,\r\n position: newPosition\r\n });\r\n }\r\n }, [tooltip.show]);\r\n\r\n const handleMouseLeave = (): void => {\r\n setTooltip({ ...tooltip, show: false });\r\n };\r\n\r\n return (\r\n <>\r\n handleMouseEnter(e)} onMouseLeave={handleMouseLeave}>\r\n {label}\r\n \r\n {tooltip.show &&\r\n createPortal(\r\n \r\n {content}\r\n ,\r\n document.body\r\n )}\r\n \r\n );\r\n};\r\n\r\nexport default tooltipContainer;\r\n","/**\r\n * The constant will be used if no data is provied by the API.\r\n */\r\nexport const NO_DATA_FALLBACK = '-';\r\n\r\n/**\r\n * The constant will be used to separate multiple values inside Order History Filter.\r\n */\r\nexport const MULTI_VALUE_SEPARATOR = ', ';\r\n","/**\r\n * Delay in milliseconds for search input in various modules.\r\n */\r\n\r\nexport const DEBOUNCE_INPUT_DELAY = 500;\r\n","/**\r\n * The TextId for the HeaderTexts within the create order request, that describes the additional information.\r\n */\r\nexport const CREATE_ORDER_ADDITIONAL_INFORMATION_TEXT_ID = 'Z400';\r\n\r\n/**\r\n * The maximum character limit for the Additional Information text field within the create order request.\r\n */\r\nexport const CREATE_ORDER_ADDITIONAL_INFORMATION_TEXT_LIMIT = 1000;\r\n\r\n/**\r\n * The Value for the EndCustomer Dropdown when the response is 0000000000\r\n */\r\nexport const CREATE_ORDER_NO_ENDCUSTOMER_VALUE = '0000000000';\r\n\r\n/**\r\n * The Value to wait for the cart to be saved. This prevents failing the requests due to many requests in a short time.\r\n */\r\nexport const CREATE_ORDER_SAVE_CART_DELAY = 200;\r\n\r\n/**\r\n * Values that are used for ID attributes in table instances.\r\n */\r\nexport const CREATE_ORDER_COLUMN_ORDER_NUMBER = 'orderNumber';\r\nexport const CREATE_ORDER_COLUMN_ACTION = 'action';\r\nexport const CREATE_ORDER_COLUMN_PRODUCT_NAME = 'productName';\r\nexport const CREATE_ORDER_COLUMN_PRODUCT_NUMBER = 'productNumber';\r\nexport const CREATE_ORDER_COLUMN_UNIT = 'unit';\r\nexport const CREATE_ORDER_COLUMN_INCOTERM = 'incoterm';\r\nexport const CREATE_ORDER_COLUMN_SALES_ORG = 'salesOrg';\r\nexport const CREATE_ORDER_COLUMN_BUSINESS_UNIT = 'businessUnit';\r\nexport const CREATE_ORDER_COLUMN_DIVISION_TEXT = 'divisionText';\r\nexport const CREATE_ORDER_COLUMN_SALES_ORG_TEXT = 'salesOrgText';\r\nexport const CREATE_ORDER_COLUMN_DISTRIBUTION_CHANNEL = 'distributionChannel';\r\nexport const CREATE_ORDER_COLUMN_END_CUSTOMER = 'endCustomer';\r\nexport const CREATE_ORDER_COLUMN_CUSTOMER_PRODUCT_NUMBER = 'customerProductNumber';\r\nexport const CREATE_ORDER_COLUMN_REQUESTED_DELIVERY_DATE = 'requestedDeliveryDate';\r\n","/**\r\n * Describes all 5xx error codes.\r\n */\r\nexport const ERROR_CODE_SERVER_ERROR_INDEX = 5;\r\n","/**\r\n * The Value for the offset that the Tooltip is displayed\r\n */\r\nexport const TOOLTIP_OFFSET = 10;\r\nexport const TOOLTIP_X_OFFSET = 60;\r\n","/**\r\n * Default value for total price while there is no price yet calculated.\r\n */\r\nexport const TOTAL_PRICE_DEFAULT = '0.00';\r\n","/**\r\n * All possible status codes for an item.\r\n */\r\nexport const STATUS_CODES = ['05', '10', '20', '30', '40', '70', '80', '90'] as const;\r\n\r\n/**\r\n * All possible status codes for the overall status of an item.\r\n */\r\nexport const OVERALL_STATUS_CODES = ['05', '10', '20', '30', '40', '90'] as const;\r\n","// Filter\r\nexport const ORDER_HISTORY_FILTER_STATUS = 'status';\r\nexport const ORDER_HISTORY_FILTER_FROM_DATE = 'fromDate';\r\nexport const ORDER_HISTORY_FILTER_TO_DATE = 'toDate';\r\nexport const ORDER_HISTORY_FILTER_CREATED_ON = 'createdOn';\r\nexport const ORDER_HISTORY_FILTER_FULLNAME = 'fullName';\r\n\r\n// Table columns\r\nexport const ORDER_HISTORY_COLUMN_ORDER_NUMBER = 'orderNumber';\r\nexport const ORDER_HISTORY_COLUMN_ACTION = 'action';\r\nexport const ORDER_HISTORY_COLUMN_PO_NUMBER = 'poNumber';\r\nexport const ORDER_HISTORY_COLUMN_SOLD_TO_NAME = 'soldToName';\r\nexport const ORDER_HISTORY_COLUMN_SHIP_TO_NAME = 'shipToName';\r\n\r\nexport enum OrderStatus {\r\n Unknown = '00',\r\n Queued = '05',\r\n Submitted = '10',\r\n Canceled = '20',\r\n Confirmed = '30',\r\n Processing = '40',\r\n Completed = '90'\r\n}\r\n","/**\r\n * The threshold to show the back to top button.\r\n */\r\nexport const BACK_TO_TOP_THRESHOLD: number = 300 as const;\r\n\r\nexport const BACK_TO_TOP_HIDE_DELAY: number = 2000 as const;\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 * as Msdyn365 from '@msdyn365-commerce/core';\r\nimport { IModuleProps, INodeProps } from '@msdyn365-commerce-modules/utilities';\r\nimport classname from 'classnames';\r\nimport { toJS, observable, action, computed } from 'mobx';\r\nimport { observer } from 'mobx-react';\r\nimport { Toaster, toast } from 'sonner';\r\nimport { ModalProvider } from '../../components/modal';\r\nimport { ILxsCreateOrderData, ILxsCreateOrderState, ILxsOrderData, IOrderHeader } from './lxs-create-order.data';\r\nimport {\r\n CREATE_ORDER_ADDITIONAL_INFORMATION_TEXT_ID,\r\n CREATE_ORDER_NO_ENDCUSTOMER_VALUE,\r\n CREATE_ORDER_SAVE_CART_DELAY,\r\n ERROR_CODE_SERVER_ERROR_INDEX\r\n} from '../../configuration';\r\nimport getSoldTosAction, { GetSoldTosInput, ISoldToTableData } from '../../actions/get-sold-tos.action';\r\nimport getShipTosAction, { GetShipTosInput, IShipToTableData } from '../../actions/get-ship-tos.action';\r\nimport getAllProductsAction, { GetAllProductsInput, IGetAllProductsResult } from '../../actions/get-all-products.action';\r\nimport { IGetCartData } from '../../actions/get-cart.action';\r\nimport getCartOrderNumberAction, { GetCartOrderNumberInput, IGetCartOrderNumberData } from '../../actions/get-cart-order-number.action';\r\nimport postCartAction, { IPostCartData, IPostCartItems, PostCartInput } from '../../actions/post-cart.action';\r\nimport postCreateOrderAction, {\r\n IPostCreateOrderData,\r\n IPostCreateOrderResponseData,\r\n PostCreateOrderInput\r\n} from '../../actions/post-create-order.action';\r\nimport { ILxsCreateOrderProps } from './lxs-create-order.props.autogenerated';\r\n\r\nexport interface IHeader {\r\n headerProps: INodeProps;\r\n heading: React.ReactNode;\r\n orderCountLabel?: React.ReactNode;\r\n extraActions?: React.ReactNode;\r\n}\r\n\r\nexport interface ILxsCreateOrderViewProps extends ILxsCreateOrderProps {\r\n moduleProps: IModuleProps;\r\n header: IHeader;\r\n soldToData: ISoldToTableData[];\r\n shipToData?: IShipToTableData[];\r\n productsData?: IGetAllProductsResult[];\r\n props: any;\r\n pageSize: number;\r\n step: number;\r\n hasNoReorderItems: boolean;\r\n orderData: ILxsOrderData;\r\n saveCartError: boolean;\r\n confirmedOrderData: IPostCreateOrderResponseData;\r\n processStarted: boolean;\r\n cartData: IGetCartData;\r\n productsHaveEndcustomers: boolean;\r\n setStep: React.Dispatch>;\r\n setOrderData: Function;\r\n setSoldTo: (soldTo: ISoldToTableData) => void;\r\n setShipTo: (shipTo: IShipToTableData) => void;\r\n setProducts: React.Dispatch>;\r\n setOrderHeader: (orderHeader: IOrderHeader) => void;\r\n loadSoldTos: () => void;\r\n setCartData: () => void;\r\n placeOrder: () => void;\r\n}\r\n\r\n/**\r\n *\r\n * LxsCreateOrder component\r\n * @extends {React.PureComponent>}\r\n */\r\n@observer\r\nclass LxsCreateOrder extends React.PureComponent {\r\n @observable\r\n public soldToData: ISoldToTableData[] | undefined;\r\n\r\n @action\r\n public setSoldToData(soldToData: any) {\r\n this.soldToData = toJS(soldToData.value);\r\n }\r\n @observable\r\n public shipToData: IShipToTableData[] | undefined;\r\n\r\n @action\r\n public setShipToData(shipToData: any) {\r\n this.shipToData = toJS(shipToData.value);\r\n }\r\n\r\n @observable\r\n public products: IGetAllProductsResult[] | undefined;\r\n\r\n @action\r\n public setProductsData(validProducts: IGetAllProductsResult[]) {\r\n this.products = toJS(validProducts);\r\n }\r\n\r\n @observable\r\n public productsHaveEndcustomers: boolean = false;\r\n\r\n @action\r\n public setProductsHaveEndcustomers(productsHaveEndcustomers: boolean) {\r\n this.productsHaveEndcustomers = productsHaveEndcustomers;\r\n }\r\n\r\n @observable\r\n public confirmedOrderData: IPostCreateOrderResponseData = {} as IPostCreateOrderResponseData;\r\n\r\n @action\r\n public setConfirmedOrderData(orderData: IPostCreateOrderResponseData) {\r\n this.confirmedOrderData = toJS(orderData);\r\n }\r\n\r\n constructor(props: ILxsCreateOrderViewProps) {\r\n super(props);\r\n this.state = {\r\n step: 0,\r\n orderData: {} as ILxsOrderData,\r\n processStarted: false,\r\n saveCartError: false,\r\n hasNoReorderItems: false\r\n };\r\n }\r\n\r\n @computed\r\n get cartTableData(): IGetCartData {\r\n const rawData = this.props.data.getCart;\r\n if (rawData?.error) {\r\n if (rawData.error.errorCode && Number(String(rawData.error.errorCode).charAt(0)) === ERROR_CODE_SERVER_ERROR_INDEX) {\r\n this._showToast(this.props.resources.globalErrorHeading, this.props.resources.globalErrorServiceNotAvailable);\r\n }\r\n return {} as IGetCartData;\r\n }\r\n return toJS(rawData.result);\r\n }\r\n\r\n private _getSoldTos = async () => {\r\n this.soldToData = undefined;\r\n const actionInput = new GetSoldTosInput();\r\n const soldToData = await getSoldTosAction(actionInput, this.props.context.actionContext);\r\n if (soldToData.error && Number(String(soldToData.error.errorCode).charAt(0)) === ERROR_CODE_SERVER_ERROR_INDEX) {\r\n this._showToast(this.props.resources.globalErrorHeading, this.props.resources.globalErrorServiceNotAvailable);\r\n } else {\r\n this.setSoldToData(soldToData);\r\n }\r\n };\r\n\r\n private _getShipTos = async (id: string) => {\r\n this.shipToData = undefined;\r\n const actionInput = new GetShipTosInput(id);\r\n const shipTos = await getShipTosAction(actionInput, this.props.context.actionContext);\r\n if (shipTos.error && Number(String(shipTos.error.errorCode).charAt(0)) === ERROR_CODE_SERVER_ERROR_INDEX) {\r\n this._showToast(this.props.resources.globalErrorHeading, this.props.resources.globalErrorServiceNotAvailable);\r\n } else {\r\n this.setShipToData(shipTos);\r\n }\r\n };\r\n\r\n private _getReorderData = async (orderNumber: string) => {\r\n const actionInput = new GetCartOrderNumberInput(orderNumber);\r\n const rawData = await getCartOrderNumberAction(actionInput, this.props.context.actionContext);\r\n if (rawData.error && Number(String(rawData.error.errorCode).charAt(0)) === ERROR_CODE_SERVER_ERROR_INDEX) {\r\n this._showToast(this.props.resources.globalErrorHeading, this.props.resources.globalErrorServiceNotAvailable);\r\n } else if (rawData.Items && rawData.Items.length === 0) {\r\n this.setState({ step: 0, hasNoReorderItems: true });\r\n } else {\r\n const data: IGetCartOrderNumberData = rawData ? toJS(rawData) : ({} as IGetCartOrderNumberData);\r\n await this._getProducts(data.SoldToId, data.ShipToId);\r\n\r\n /**\r\n * If the user go to another step, we need to make sure, that the soldTo and shipTo data is loaded\r\n */\r\n void this._getSoldTos();\r\n void this._getShipTos(data.SoldToId);\r\n this.setState({ processStarted: true });\r\n\r\n const products = ((data.Items.slice() as unknown) as IPostCartItems[]).map(product => ({\r\n ...product,\r\n Quantity: !!Number(product.Quantity) ? Number(product.Quantity).toFixed(0) : '',\r\n EndCustomerName: this.productsHaveEndcustomers ? product.EndCustomerName : CREATE_ORDER_NO_ENDCUSTOMER_VALUE,\r\n EndCustomerNumber: this.productsHaveEndcustomers ? product.EndCustomerNumber : CREATE_ORDER_NO_ENDCUSTOMER_VALUE\r\n }));\r\n\r\n this.setState({\r\n orderData: {\r\n soldTo: {\r\n ...data.SoldTo,\r\n Id: data?.SoldToId,\r\n RecordCreatedDate: '',\r\n SalesAreas: [],\r\n ExtensionProperties: []\r\n },\r\n shipTo: {\r\n ...data.ShipTo,\r\n Id: data.ShipToId,\r\n RecordCreatedDate: '',\r\n SalesAreas: [],\r\n ExtensionProperties: []\r\n },\r\n products,\r\n orderHeader: {\r\n AdditionalInfo: data.AdditionalInfo,\r\n DistributionChannel: data.DistributionChannel,\r\n Division: data.Division,\r\n DivisionText: data.DivisionText,\r\n Incoterm1: data.Incoterm1,\r\n SalesOrg: data.SalesOrg,\r\n SalesOrgText: data.SalesOrgText,\r\n // The SAP delivers the BusinessUnit as Division, so we need to map it to BusinessUnit\r\n BusinessUnit: data.Division,\r\n CustomerPONumber: data.Items.length > 0 ? data.Items[0].CustomerProductNumber : ''\r\n }\r\n },\r\n step: 3\r\n });\r\n }\r\n };\r\n\r\n private _getProducts = async (soldTo: string, shipTo: string) => {\r\n this.products = undefined;\r\n const actionInput = new GetAllProductsInput(soldTo, shipTo);\r\n const allProducts = await getAllProductsAction(actionInput, this.props.context.actionContext);\r\n if (allProducts.error && Number(String(allProducts.error.errorCode).charAt(0)) === ERROR_CODE_SERVER_ERROR_INDEX) {\r\n this._showToast(this.props.resources.globalErrorHeading, this.props.resources.globalErrorServiceNotAvailable);\r\n } else {\r\n this.setProductsData(allProducts.Products);\r\n this.setProductsHaveEndcustomers(allProducts.EndCustomers);\r\n }\r\n };\r\n\r\n private _loadCartData = async () => {\r\n const cartData = this.props.data.getCart.result;\r\n await this._getSoldTos();\r\n const tempState = {} as ILxsCreateOrderState;\r\n\r\n if (cartData.SoldTo) {\r\n tempState.orderData = {\r\n ...tempState.orderData,\r\n soldTo: {\r\n ...cartData.SoldTo,\r\n Id: cartData.SoldToId,\r\n RecordCreatedDate: '',\r\n ExtensionProperties: [],\r\n SalesAreas: cartData.SoldTo.SalesAreas as any\r\n }\r\n };\r\n\r\n await this._getShipTos(cartData.SoldToId);\r\n }\r\n\r\n if (cartData.ShipTo) {\r\n tempState.orderData = {\r\n ...tempState.orderData,\r\n shipTo: {\r\n ...cartData.ShipTo,\r\n Id: cartData.ShipToId,\r\n RecordCreatedDate: '',\r\n ExtensionProperties: [],\r\n SalesAreas: cartData.ShipTo.SalesAreas as any\r\n }\r\n };\r\n\r\n await this._getProducts(cartData.SoldToId, cartData.ShipToId);\r\n }\r\n\r\n if (cartData.Items) {\r\n tempState.orderData = {\r\n ...tempState.orderData,\r\n products: (cartData.Items.slice() as unknown) as IPostCartItems[]\r\n };\r\n }\r\n\r\n if (cartData.CustomerPo) {\r\n tempState.orderData.orderHeader = {\r\n ...tempState.orderData.orderHeader,\r\n CustomerPONumber: cartData.CustomerPo\r\n };\r\n }\r\n\r\n if (cartData.AdditionalInfo) {\r\n tempState.orderData.orderHeader = {\r\n ...tempState.orderData.orderHeader,\r\n AdditionalInfo: cartData.AdditionalInfo\r\n };\r\n }\r\n\r\n if (cartData.DistributionChannel) {\r\n tempState.orderData.orderHeader = {\r\n ...tempState.orderData.orderHeader,\r\n DistributionChannel: cartData.DistributionChannel\r\n };\r\n }\r\n\r\n if (cartData.SoldTo && cartData.SoldTo.SalesAreas) {\r\n tempState.orderData.orderHeader = {\r\n ...tempState.orderData.orderHeader,\r\n Division: cartData.SoldTo.SalesAreas[0].Division,\r\n DivisionText: cartData.SoldTo.SalesAreas[0].DivisionText,\r\n SalesOrg: cartData.SoldTo.SalesAreas[0].SalesOrg,\r\n SalesOrgText: cartData.SoldTo.SalesAreas[0].SalesOrgText\r\n };\r\n }\r\n\r\n if (cartData.Incoterm1) {\r\n tempState.orderData.orderHeader = {\r\n ...tempState.orderData.orderHeader,\r\n Incoterm1: cartData.Incoterm1\r\n };\r\n }\r\n\r\n if (cartData.OrderType) {\r\n tempState.orderData.orderHeader = {\r\n ...tempState.orderData.orderHeader,\r\n OrderType: cartData.OrderType\r\n };\r\n }\r\n\r\n if (cartData.Step) {\r\n tempState.step = cartData.Step;\r\n }\r\n\r\n tempState.processStarted = true;\r\n this.setState(tempState);\r\n };\r\n\r\n private _saveCartDebouncer: () => () => Promise = (): (() => Promise) => {\r\n let called: boolean = false;\r\n\r\n return async () => {\r\n if (!called) {\r\n called = true;\r\n setTimeout(async () => {\r\n await this._saveCart().then(res => {\r\n if (((res as unknown) as any)?.Exception) {\r\n this.setState({ saveCartError: true });\r\n }\r\n });\r\n called = false;\r\n }, CREATE_ORDER_SAVE_CART_DELAY);\r\n }\r\n };\r\n };\r\n\r\n private _saveCartHandler: () => Promise = this._saveCartDebouncer();\r\n\r\n private _saveCart = async () => {\r\n try {\r\n const { orderData, step } = this.state;\r\n const { soldTo, shipTo, products } = orderData;\r\n const orderHeader = orderData.orderHeader;\r\n const Items = products?.map((product, index) => ({\r\n ...product,\r\n Number: index * 10\r\n }));\r\n\r\n const cartData: IPostCartData = {\r\n SalesOrg: orderHeader?.SalesOrg ?? '',\r\n AdditionalInfo: orderHeader?.AdditionalInfo ?? '',\r\n CustomerPo: orderHeader?.CustomerPONumber ?? '',\r\n DistributionChannel: orderHeader?.DistributionChannel ?? '',\r\n Division: orderHeader?.Division ?? '',\r\n Incoterm1: orderHeader?.Incoterm1 ?? '',\r\n OrderType: orderHeader?.OrderType ?? '',\r\n SoldToId: soldTo?.Id ?? null,\r\n ShipToId: shipTo?.Id ?? null,\r\n Items: Items ?? [],\r\n Step: step\r\n };\r\n\r\n const actionInput = new PostCartInput(cartData);\r\n const postCartResponse = await postCartAction(actionInput, this.props.context.actionContext);\r\n return postCartResponse;\r\n } catch (error) {\r\n console.error('Error saving cart', error);\r\n return error;\r\n }\r\n };\r\n\r\n private _collectOrderData = (): IPostCreateOrderData => {\r\n const { orderData } = this.state;\r\n const { soldTo, shipTo, products, orderHeader } = orderData;\r\n return {\r\n Language: this.props.context.request.locale,\r\n Order: {\r\n Incoterm1: orderHeader?.Incoterm1 ?? '',\r\n PurchaseOrderNumbExt: orderHeader?.CustomerPONumber ?? '',\r\n SalesOrg: orderHeader?.SalesOrg ?? '',\r\n DistributionChannel: orderHeader?.DistributionChannel ?? '',\r\n Division: orderHeader?.Division ?? '',\r\n SoldTo: soldTo?.Id ?? '',\r\n ShiptTo: shipTo?.Id ?? '',\r\n OrderLines:\r\n products?.map(product => ({\r\n ProductNumber: product.ProductNumber,\r\n RequestedDate: product.RequestedDate,\r\n RequestedQty: product.Quantity,\r\n Unit: product.UnitOfMeasure,\r\n EndCustomer: product.EndCustomerNumber\r\n })) ?? [],\r\n HeaderTexts: [\r\n {\r\n TextId: CREATE_ORDER_ADDITIONAL_INFORMATION_TEXT_ID,\r\n Value: orderHeader?.AdditionalInfo ?? ''\r\n }\r\n ]\r\n }\r\n };\r\n };\r\n\r\n private _placeOrder = async (placeOrderData: IPostCreateOrderData) => {\r\n const actionInput = new PostCreateOrderInput(placeOrderData);\r\n const response = await postCreateOrderAction(actionInput, this.props.context.actionContext);\r\n if (!!response['@odata.context']) {\r\n this.setConfirmedOrderData(response);\r\n this.setState({ step: 6 });\r\n }\r\n };\r\n\r\n private _showToast = (heading: string, description: string) => {\r\n toast.error(\r\n
\r\n
\r\n

{heading}

\r\n \r\n
\r\n
\r\n {description}\r\n
\r\n
\r\n );\r\n };\r\n\r\n public componentDidMount(): void {\r\n /**\r\n * If the user wants to reorder an order, we need to load the order data\r\n */\r\n const { orderNumber = '' } = this.props.context.actionContext.requestContext.query ?? {};\r\n if (!!orderNumber) {\r\n this.setState({ step: 0 });\r\n void this._getReorderData(orderNumber);\r\n }\r\n\r\n /**\r\n * If there is no cart data or an error occured,\r\n * we need to load the soldTo data to be able to create a new order\r\n */\r\n if (!this.props.data.getCart?.result?.['@odata.context']) {\r\n this.setState({ step: 1, processStarted: true });\r\n void this._getSoldTos();\r\n }\r\n }\r\n\r\n public componentDidUpdate(_: Readonly, prevState: Readonly): void {\r\n /**\r\n * If the user goes back to the first two steps,\r\n * we need to clear the products to avoid conflicts\r\n */\r\n if (prevState.step > 2 && this.state.step <= 2) {\r\n this.setState({ orderData: { ...this.state.orderData, products: [] } });\r\n }\r\n\r\n /**\r\n * To improve the user experience, we need to scroll to the top of the page\r\n */\r\n if (prevState.step !== this.state.step) {\r\n window.scrollTo({ top: 0, behavior: 'smooth' });\r\n }\r\n }\r\n\r\n public render(): JSX.Element | null {\r\n const {\r\n config: { heading, pageSize }\r\n } = this.props;\r\n\r\n const loadSoldTos = () => {\r\n this.setState({ processStarted: true, step: 1 });\r\n void this._getSoldTos();\r\n };\r\n const setCartData = () => {\r\n void this._loadCartData();\r\n };\r\n\r\n const setSoldTo = (soldTo: ISoldToTableData) => {\r\n if (soldTo && soldTo.Id) {\r\n void this._getShipTos(soldTo.Id);\r\n }\r\n this.setState({ step: 2 });\r\n const newOrderData = { ...this.state.orderData, soldTo };\r\n delete newOrderData.shipTo;\r\n this.setState({ orderData: newOrderData }, () => {\r\n void this._saveCartHandler();\r\n });\r\n };\r\n const setShipTo = (shipTo: IShipToTableData) => {\r\n if (shipTo.Id) {\r\n void this._getProducts(this.state.orderData.soldTo.Id, shipTo.Id);\r\n }\r\n this.setState({ step: 3 });\r\n this.setState({ orderData: { ...this.state.orderData, shipTo } }, () => {\r\n void this._saveCartHandler();\r\n });\r\n };\r\n\r\n const setProducts = (products: IPostCartItems[]) => {\r\n this.setState(\r\n prevState => ({\r\n orderData: {\r\n ...prevState.orderData,\r\n products\r\n }\r\n }),\r\n () => {\r\n void this._saveCartHandler();\r\n }\r\n );\r\n };\r\n const setOrderHeader = (orderHeader: IOrderHeader) => {\r\n this.setState(\r\n prevState => ({\r\n orderData: {\r\n ...prevState.orderData,\r\n orderHeader: orderHeader\r\n }\r\n }),\r\n () => {\r\n void this._saveCartHandler();\r\n }\r\n );\r\n };\r\n\r\n const placeOrder = () => {\r\n const placeOrderData = this._collectOrderData();\r\n void this._placeOrder(placeOrderData);\r\n };\r\n\r\n const setStep = (step: number) => {\r\n this.setState({ step }, () => {\r\n if (step > 3 && step < 6) {\r\n void this._saveCartHandler();\r\n }\r\n });\r\n };\r\n\r\n const viewProps = {\r\n ...this.props,\r\n pageSize: pageSize || 10,\r\n moduleProps: { moduleProps: this.props, className: classname('lxs-create-order', this.props.config.className) },\r\n header: {\r\n headerProps: { className: 'lxs-create-order__header' },\r\n heading: heading && heading.text && (\r\n \r\n )\r\n },\r\n cartData: this.cartTableData,\r\n soldToData: toJS(this.soldToData),\r\n shipToData: toJS(this.shipToData),\r\n productsData: toJS(this.products),\r\n step: this.state.step,\r\n hasNoReorderItems: this.state.hasNoReorderItems,\r\n orderData: this.state.orderData,\r\n processStarted: this.state.processStarted,\r\n saveCartError: this.state.saveCartError,\r\n confirmedOrderData: this.confirmedOrderData,\r\n productsHaveEndcustomers: this.productsHaveEndcustomers,\r\n setStep: (step: number) => setStep(step),\r\n loadSoldTos: () => loadSoldTos(),\r\n setCartData: () => setCartData(),\r\n setSoldTo: (soldTo: ISoldToTableData) => setSoldTo(soldTo),\r\n setShipTo: (shipTo: IShipToTableData) => setShipTo(shipTo),\r\n setProducts: (products: IPostCartItems[]) => setProducts(products),\r\n setOrderData: (orderData: any) => this.setState({ orderData }),\r\n placeOrder: () => placeOrder(),\r\n setOrderHeader: setOrderHeader\r\n };\r\n return (\r\n <>\r\n \r\n {this.props.renderView(viewProps) as React.ReactElement}\r\n \r\n );\r\n }\r\n\r\n public handleLxsCreateOrderHeadingChange = (event: Msdyn365.ContentEditableEvent) =>\r\n (this.props.config.heading!.text = event.target.value);\r\n}\r\n\r\nexport default LxsCreateOrder;\r\n","import React from 'react';\r\nimport { ILxsCreateOrderResources } from '../lxs-create-order.props.autogenerated';\r\nimport { ISoldToTableData } from '../../../actions/get-sold-tos.action';\r\nimport { IShipToTableData } from '../../../actions/get-ship-tos.action';\r\nimport { IPostCartItems } from '../../../actions/post-cart.action';\r\nimport { useModal } from '../../../components/modal';\r\n\r\nexport default function processBar({\r\n step,\r\n resources,\r\n products,\r\n setStep,\r\n setSoldTo,\r\n setShipTo\r\n}: {\r\n step: number;\r\n resources: ILxsCreateOrderResources;\r\n products: IPostCartItems[];\r\n setStep: React.Dispatch>;\r\n setSoldTo: (soldTo: ISoldToTableData) => void;\r\n setShipTo: (shipTo: IShipToTableData) => void;\r\n}) {\r\n const processBlocked: boolean = step === 6;\r\n const { setOpen, setClose } = useModal();\r\n const goTo = (nextStep: number) => {\r\n if (!processBlocked && nextStep <= Number(step)) {\r\n setStep(nextStep);\r\n } else {\r\n return;\r\n }\r\n };\r\n\r\n return (\r\n
\r\n
    \r\n {\r\n if (!processBlocked && step >= 1) {\r\n if (products.length > 0) {\r\n setOpen({\r\n content: (\r\n
    \r\n

    {resources.createOrderDeleteProductsHint}

    \r\n {\r\n setSoldTo({} as ISoldToTableData);\r\n goTo(1);\r\n setClose();\r\n }}\r\n >\r\n {resources.createOrderDeleteProductsHintConfirm}\r\n \r\n
    \r\n ),\r\n size: 'sm'\r\n });\r\n } else {\r\n setSoldTo({} as ISoldToTableData);\r\n goTo(1);\r\n }\r\n }\r\n }}\r\n >\r\n {resources.createOrderSoldToSelectionHeading}\r\n \r\n {\r\n if (!processBlocked && step >= 2) {\r\n if (products.length > 0) {\r\n setOpen({\r\n content: (\r\n
    \r\n

    {resources.createOrderDeleteProductsHint}

    \r\n {\r\n setShipTo({} as IShipToTableData);\r\n goTo(2);\r\n setClose();\r\n }}\r\n >\r\n {resources.createOrderDeleteProductsHintConfirm}\r\n \r\n
    \r\n ),\r\n size: 'sm'\r\n });\r\n } else {\r\n setShipTo({} as IShipToTableData);\r\n goTo(2);\r\n }\r\n }\r\n }}\r\n >\r\n {resources.createOrderShipToSelectionHeading}\r\n \r\n {\r\n if (step >= 3) {\r\n goTo(3);\r\n }\r\n }}\r\n >\r\n {resources.createOrderProductsHeading}\r\n \r\n
  1. goTo(4)}>\r\n {resources.createOrderOrderHeadingInfoHeading}\r\n
  2. \r\n
  3. goTo(5)}>\r\n {resources.createOrderOverviewHeading}\r\n
  4. \r\n
  5. \r\n {resources.createOrderAcknowledgementHeading}\r\n
  6. \r\n
\r\n
\r\n );\r\n}\r\n","import React from 'react';\r\nimport { ISoldToTableData } from '../../../actions/get-sold-tos.action';\r\nimport { IShipToTableData } from '../../../actions/get-ship-tos.action';\r\nimport { ILxsCreateOrderResources } from '../lxs-create-order.props.autogenerated';\r\nimport { formatAddress } from '../../../utilities/format-address';\r\nimport { NO_DATA_FALLBACK } from '../../../configuration';\r\n\r\nfunction Address({ address, headline }: { address: ISoldToTableData | IShipToTableData; headline: string }) {\r\n return (\r\n
\r\n

{headline}

\r\n {formatAddress(address).map(line => (\r\n

\r\n {line}\r\n

\r\n ))}\r\n
\r\n );\r\n}\r\n\r\nexport default function addressInformation({\r\n soldTo,\r\n shipTo,\r\n resources\r\n}: {\r\n soldTo: ISoldToTableData;\r\n shipTo: IShipToTableData;\r\n resources: ILxsCreateOrderResources;\r\n}) {\r\n return (\r\n
\r\n

{resources.createOrderAddressInformation}

\r\n
\r\n
\r\n {soldTo && Object.keys(soldTo).length ? (\r\n
\r\n ) : (\r\n NO_DATA_FALLBACK\r\n )}\r\n
\r\n
\r\n {shipTo && Object.keys(shipTo).length ? (\r\n
\r\n ) : (\r\n NO_DATA_FALLBACK\r\n )}\r\n
\r\n
\r\n
\r\n );\r\n}\r\n","import React from 'react';\r\n\r\nconst skeleton = (): JSX.Element => {\r\n return ;\r\n};\r\n\r\nexport default skeleton;\r\n","import React, { useCallback, useState } from 'react';\r\nimport { DEBOUNCE_INPUT_DELAY } from '../../../configuration';\r\n\r\nexport const DebouncedInput: React.FC = React.memo(\r\n ({ resources, value: initialValue, onChange, debounce = DEBOUNCE_INPUT_DELAY, ...props }) => {\r\n const [value, setValue] = useState(initialValue);\r\n const handleChange = useCallback(\r\n (e: React.ChangeEvent) => {\r\n const currentValue = e.target.value;\r\n setValue(currentValue);\r\n const timeoutId = setTimeout(() => onChange(currentValue), debounce);\r\n return () => clearTimeout(timeoutId);\r\n },\r\n [onChange, debounce]\r\n );\r\n return ;\r\n }\r\n);\r\n","import React from 'react';\r\nimport { ILxsCreateOrderResources } from '../lxs-create-order.props.autogenerated';\r\n\r\ninterface DropdownProps {\r\n id: string;\r\n options?: { value: string; label: string }[];\r\n resources: ILxsCreateOrderResources;\r\n label: string;\r\n value: string;\r\n disabled: boolean;\r\n onChange: (value: string) => void;\r\n}\r\n\r\nconst Dropdown: React.FC = ({ id, options, resources, label, value, disabled, onChange }) => {\r\n return (\r\n <>\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default Dropdown;\r\n","import React from 'react';\r\nimport { ILxsCreateOrderResources } from '../lxs-create-order.props.autogenerated';\r\nimport { DebouncedInput } from './debounced-input';\r\nimport Dropdown from './dropdown';\r\nimport { ColumnFiltersState } from '@tanstack/react-table';\r\nimport Alert from '../../../components/alert';\r\nimport { CREATE_ORDER_COLUMN_INCOTERM, CREATE_ORDER_COLUMN_SALES_ORG, CREATE_ORDER_COLUMN_BUSINESS_UNIT } from '../../../configuration';\r\n\r\nexport default function({\r\n globalFilter,\r\n resources,\r\n salesOrgOptions,\r\n businessUnitOptions,\r\n columnFilters,\r\n isColumnFilterValid,\r\n incotermOptions,\r\n filterDisabled,\r\n setColumnFilters,\r\n setGlobalFilter\r\n}: {\r\n globalFilter: string;\r\n resources: ILxsCreateOrderResources;\r\n salesOrgOptions?: { value: string; label: string }[];\r\n businessUnitOptions?: { value: string; label: string }[];\r\n incotermOptions?: { value: string; label: string }[];\r\n columnFilters: ColumnFiltersState;\r\n isColumnFilterValid: boolean;\r\n filterDisabled: boolean;\r\n setGlobalFilter: React.Dispatch>;\r\n setColumnFilters: React.Dispatch>;\r\n}) {\r\n const [alertVisible, setAlertVisible] = React.useState(true);\r\n return (\r\n
\r\n

{resources.createOrderSearchHeading}

\r\n
\r\n
\r\n
\r\n \r\n setGlobalFilter(value)}\r\n placeholder={resources.createOrderSearchPlaceholder}\r\n resources={resources}\r\n id='search-soldtos'\r\n />\r\n
\r\n
\r\n
\r\n\r\n

{resources.createOrderFilterHeading}

\r\n
\r\n
\r\n
\r\n filter.id === CREATE_ORDER_COLUMN_SALES_ORG)?.value as string) ?? ''}\r\n options={salesOrgOptions}\r\n resources={resources}\r\n onChange={(salesOrg: string) =>\r\n setColumnFilters(prev => {\r\n const currentFilters = prev.slice();\r\n const salesOrgFilter = currentFilters.find(filter => filter.id === CREATE_ORDER_COLUMN_SALES_ORG);\r\n if (salesOrgFilter) {\r\n salesOrgFilter.value = salesOrg;\r\n } else {\r\n currentFilters.push({ id: CREATE_ORDER_COLUMN_SALES_ORG, value: salesOrg });\r\n }\r\n return currentFilters;\r\n })\r\n }\r\n label={resources.createOrderSalesOrgLabel}\r\n >\r\n
\r\n
\r\n
\r\n
\r\n filter.id === CREATE_ORDER_COLUMN_BUSINESS_UNIT)?.value as string) ?? ''}\r\n options={businessUnitOptions}\r\n resources={resources}\r\n onChange={(businessUnit: string) => {\r\n setColumnFilters(prev => {\r\n const currentFilters = prev.slice();\r\n const businessUnitFilter = currentFilters.find(\r\n filter => filter.id === CREATE_ORDER_COLUMN_BUSINESS_UNIT\r\n );\r\n if (businessUnitFilter) {\r\n businessUnitFilter.value = businessUnit;\r\n } else {\r\n currentFilters.push({ id: CREATE_ORDER_COLUMN_BUSINESS_UNIT, value: businessUnit });\r\n }\r\n return currentFilters;\r\n });\r\n }}\r\n label={resources.createOrderBusinessUnitLabel}\r\n >\r\n
\r\n
\r\n
\r\n {incotermOptions && incotermOptions.length > 0 && (\r\n
\r\n filter.id === CREATE_ORDER_COLUMN_INCOTERM)?.value as string) ?? ''}\r\n options={incotermOptions}\r\n resources={resources}\r\n onChange={(incoterm: string) => {\r\n setColumnFilters(prev => {\r\n const currentFilters = prev.slice();\r\n const incotermFilter = currentFilters.find(filter => filter.id === CREATE_ORDER_COLUMN_INCOTERM);\r\n if (incotermFilter) {\r\n incotermFilter.value = incoterm;\r\n } else {\r\n currentFilters.push({ id: CREATE_ORDER_COLUMN_INCOTERM, value: incoterm });\r\n }\r\n return currentFilters;\r\n });\r\n }}\r\n label={resources.createOrderIncoterms1Label}\r\n >\r\n
\r\n )}\r\n
\r\n
\r\n {!isColumnFilterValid && alertVisible && (\r\n
\r\n
\r\n setAlertVisible(false)}\r\n />\r\n
\r\n
\r\n )}\r\n
\r\n );\r\n}\r\n","import React from 'react';\r\n\r\nconst highlightSearchTerm = (text: string, searchTerm: string): JSX.Element => {\r\n if (!searchTerm.trim()) {\r\n return {text};\r\n }\r\n const parts = text?.split(new RegExp(`(${searchTerm})`, 'gi'));\r\n\r\n return (\r\n \r\n {parts.map((part, index) =>\r\n part.toLowerCase() === searchTerm.toLowerCase() ? (\r\n \r\n {part}\r\n \r\n ) : (\r\n part\r\n )\r\n )}\r\n \r\n );\r\n};\r\n\r\nexport default highlightSearchTerm;\r\n","import React, { useEffect, useState } from 'react';\r\n\r\nimport {\r\n useReactTable,\r\n ColumnFiltersState,\r\n getCoreRowModel,\r\n getFilteredRowModel,\r\n getFacetedRowModel,\r\n getFacetedUniqueValues,\r\n getFacetedMinMaxValues,\r\n getPaginationRowModel,\r\n getSortedRowModel,\r\n ColumnDef,\r\n flexRender,\r\n getExpandedRowModel,\r\n SortingState,\r\n VisibilityState\r\n} from '@tanstack/react-table';\r\n\r\nimport AddressInformation from '../components/address-information';\r\nimport Alert from '../../../components/alert';\r\nimport Skeleton from '../../../components/skeleton';\r\nimport SearchBox from './search-box';\r\nimport highlightSearchTerm from './highlight-search-term';\r\nimport { ILxsOrderData } from '../lxs-create-order.data';\r\nimport { IShipToTableData } from '../../../actions/get-ship-tos.action';\r\nimport { ISalesArea, ISoldToTableData } from '../../../actions/get-sold-tos.action';\r\nimport {\r\n NO_DATA_FALLBACK,\r\n CREATE_ORDER_COLUMN_ACTION,\r\n CREATE_ORDER_COLUMN_SALES_ORG,\r\n CREATE_ORDER_COLUMN_BUSINESS_UNIT\r\n} from '../../../configuration';\r\nimport { ILxsCreateOrderResources } from '../lxs-create-order.props.autogenerated';\r\n\r\nexport default function SoldTosSelectionTable({\r\n resources,\r\n globalFilter,\r\n soldToData,\r\n pageSize,\r\n processStarted,\r\n columnFilters,\r\n isColumnFilterValid,\r\n filterDisabled,\r\n orderData,\r\n setColumnFilters,\r\n setGlobalFilter,\r\n setSoldTo,\r\n loadSoldTos\r\n}: {\r\n resources: ILxsCreateOrderResources;\r\n globalFilter: string;\r\n soldToData: ISoldToTableData[] | undefined;\r\n pageSize: number;\r\n processStarted: boolean;\r\n columnFilters: ColumnFiltersState;\r\n isColumnFilterValid: boolean;\r\n filterDisabled: boolean;\r\n orderData: ILxsOrderData;\r\n setColumnFilters: React.Dispatch>;\r\n setGlobalFilter: React.Dispatch>;\r\n setSoldTo: (soldTo: ISoldToTableData) => void;\r\n loadSoldTos: () => void;\r\n}) {\r\n const [pageIndex, setPageIndex] = useState(0);\r\n\r\n const columns = React.useMemo[]>(\r\n () => [\r\n {\r\n accessorFn: row => row.Name1,\r\n id: 'name',\r\n cell: info => highlightSearchTerm(String(info.getValue()), globalFilter) ?? NO_DATA_FALLBACK,\r\n header: () => resources.createOrderTableNameHeading,\r\n footer: props => props.column.id\r\n },\r\n {\r\n accessorFn: row => row.Id,\r\n id: 'id',\r\n cell: info => highlightSearchTerm(String(info.getValue()), globalFilter) ?? NO_DATA_FALLBACK,\r\n header: () => resources.createOrderTablePartnerNumber,\r\n footer: props => props.column.id\r\n },\r\n {\r\n accessorFn: row => row.VatId,\r\n id: 'vat',\r\n cell: info => highlightSearchTerm(String(info.getValue()), globalFilter) ?? NO_DATA_FALLBACK,\r\n header: () => resources.createOrderTableVatHeading,\r\n footer: props => props.column.id\r\n },\r\n {\r\n accessorFn: row => row.Street1,\r\n id: 'street',\r\n cell: info => highlightSearchTerm(String(info.getValue()), globalFilter) ?? NO_DATA_FALLBACK,\r\n header: () => resources.createOrderTableStreetHeading,\r\n footer: props => props.column.id\r\n },\r\n {\r\n accessorFn: row => row.HouseNumber,\r\n id: 'streetNumber',\r\n cell: info => highlightSearchTerm(String(info.getValue()), globalFilter) ?? NO_DATA_FALLBACK,\r\n header: () => resources.createOrderTableStreetNumberHeading,\r\n footer: props => props.column.id\r\n },\r\n {\r\n accessorFn: row => row.PostlCode,\r\n id: 'postalCode',\r\n cell: info => highlightSearchTerm(String(info.getValue()), globalFilter) ?? NO_DATA_FALLBACK,\r\n header: () => resources.createOrderTableZipHeading,\r\n footer: props => props.column.id\r\n },\r\n {\r\n accessorFn: row => row.City,\r\n id: 'city',\r\n cell: info => highlightSearchTerm(String(info.getValue()), globalFilter) ?? NO_DATA_FALLBACK,\r\n header: () => resources.createOrderTableCityHeading,\r\n footer: props => props.column.id\r\n },\r\n {\r\n accessorFn: row => row.Country,\r\n id: 'country',\r\n cell: info => highlightSearchTerm(String(info.getValue()), globalFilter) ?? NO_DATA_FALLBACK,\r\n header: () => resources.createOrderTableCountryHeading,\r\n footer: props => props.column.id\r\n },\r\n {\r\n accessorFn: row => row.SalesAreas?.map((salesArea: any) => salesArea.SalesOrg).join(', '),\r\n id: CREATE_ORDER_COLUMN_SALES_ORG,\r\n cell: info => info.getValue()\r\n },\r\n {\r\n accessorFn: row => row.SalesAreas?.map((salesArea: any) => salesArea.Division).join(', '),\r\n id: CREATE_ORDER_COLUMN_BUSINESS_UNIT,\r\n cell: info => info.getValue()\r\n },\r\n {\r\n id: CREATE_ORDER_COLUMN_ACTION,\r\n cell: info => info.getValue(),\r\n header: () => resources.createOrderTableActionHeading,\r\n footer: props => props.column.id,\r\n enableSorting: false\r\n }\r\n ],\r\n [globalFilter]\r\n );\r\n\r\n const data: ISoldToTableData[] = soldToData ?? ([] as ISoldToTableData[]);\r\n const [columnVisibility] = useState({\r\n [CREATE_ORDER_COLUMN_SALES_ORG]: false,\r\n [CREATE_ORDER_COLUMN_BUSINESS_UNIT]: false\r\n });\r\n const [sorting, setSorting] = useState([]);\r\n\r\n const table = useReactTable({\r\n data,\r\n columns,\r\n filterFns: {},\r\n state: {\r\n sorting,\r\n columnVisibility,\r\n columnFilters,\r\n globalFilter,\r\n pagination: {\r\n pageIndex: pageIndex,\r\n pageSize: pageSize\r\n }\r\n },\r\n onColumnFiltersChange: setColumnFilters,\r\n onGlobalFilterChange: setGlobalFilter,\r\n globalFilterFn: 'includesString',\r\n getCoreRowModel: getCoreRowModel(),\r\n getExpandedRowModel: getExpandedRowModel(),\r\n onSortingChange: setSorting,\r\n getFilteredRowModel: getFilteredRowModel(),\r\n getSortedRowModel: getSortedRowModel(),\r\n getPaginationRowModel: getPaginationRowModel(),\r\n getFacetedRowModel: getFacetedRowModel(),\r\n getFacetedUniqueValues: getFacetedUniqueValues(),\r\n getFacetedMinMaxValues: getFacetedMinMaxValues(),\r\n debugTable: false,\r\n debugHeaders: false,\r\n debugColumns: false,\r\n autoResetAll: false\r\n });\r\n const totalEntries = table.getFilteredRowModel().rows.length;\r\n\r\n const getSalesOrgOptions = () => {\r\n const salesOrgOptions: { value: string; label: string }[] = (soldToData ?? [])\r\n ?.map(data =>\r\n data.SalesAreas.map((area: ISalesArea) => {\r\n if (area.OrderCreate) {\r\n return { value: area.SalesOrg, label: area.SalesOrgText };\r\n }\r\n return { value: '', label: '' };\r\n })\r\n )\r\n .flat()\r\n .filter(item => !!item?.value && !!item?.label);\r\n return [...new Map(salesOrgOptions.map(v => [v?.value, v])).values()] ?? [];\r\n };\r\n const getBusinessUnitOptions = () => {\r\n const businessUnitOptions = (soldToData ?? [])\r\n ?.map(data =>\r\n data.SalesAreas.map((area: ISalesArea) => {\r\n if (area.OrderCreate) {\r\n return { value: area.Division, label: area.DivisionText };\r\n }\r\n return { value: '', label: '' };\r\n })\r\n )\r\n .flat()\r\n .filter(item => !!item?.value && !!item?.label);\r\n return [...new Map(businessUnitOptions.map(v => [v?.value, v])).values()] ?? [];\r\n };\r\n\r\n useEffect(() => {\r\n setPageIndex(0);\r\n }, [globalFilter, columnFilters]);\r\n\r\n return (\r\n <>\r\n
\r\n
\r\n \r\n\r\n {totalEntries > 0 && (\r\n

\r\n {totalEntries} {resources.createOrderSearchSoldTosHeading}\r\n

\r\n )}\r\n\r\n
\r\n \r\n \r\n {table.getHeaderGroups().map(headerGroup => (\r\n \r\n {headerGroup.headers.map(header => {\r\n const sortValue =\r\n { asc: 'msc-table-sorting--asc', desc: 'msc-table-sorting--desc' }[\r\n header.column.getIsSorted() as string\r\n ] ?? null;\r\n return (\r\n \r\n );\r\n })}\r\n \r\n ))}\r\n \r\n \r\n {!soldToData ? (\r\n // if soldToData has not finished loading yet, display loading animation\r\n Array.from({ length: pageSize }).map(() => {\r\n return table.getHeaderGroups().map(headerGroup => (\r\n \r\n {headerGroup.headers.map(column => (\r\n \r\n ))}\r\n \r\n ));\r\n })\r\n ) : !processStarted && soldToData && soldToData.length === 0 ? (\r\n // Error while fetching soldToData\r\n \r\n ) : processStarted && soldToData && soldToData.length === 0 ? (\r\n // soldToData has been fetched but is empty\r\n \r\n ) : table.getRowModel().rows?.length ? (\r\n // soldToData is valid and will be filtered\r\n table.getRowModel().rows.map(row => (\r\n \r\n \r\n {row.getVisibleCells().map(cell => {\r\n return cell.column?.id === CREATE_ORDER_COLUMN_ACTION ? (\r\n \r\n ) : (\r\n \r\n );\r\n })}\r\n \r\n \r\n ))\r\n ) : (\r\n // no soldToData matches filter\r\n \r\n \r\n \r\n )}\r\n \r\n
\r\n {header.isPlaceholder ? null : (\r\n \r\n {flexRender(header.column.columnDef.header, header.getContext())}\r\n \r\n )}\r\n
\r\n \r\n
\r\n \r\n \r\n \r\n
\r\n {\r\n setGlobalFilter('');\r\n setSoldTo(row.original);\r\n }}\r\n >\r\n {resources.createOrderSelectButton}\r\n \r\n {flexRender(cell.column.columnDef.cell, cell.getContext())}
\r\n \r\n
\r\n
\r\n {totalEntries > 0 && totalEntries > pageSize && (\r\n
\r\n setPageIndex(pageIndex - 1)}\r\n disabled={!table.getCanPreviousPage()}\r\n >\r\n \r\n {table.getState().pagination.pageIndex + 1} / {table.getPageCount()}\r\n \r\n setPageIndex(pageIndex + 1)}\r\n disabled={!table.getCanNextPage()}\r\n >\r\n
\r\n )}\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n );\r\n}\r\n","import React, { useEffect, useState } from 'react';\r\n\r\nimport {\r\n useReactTable,\r\n ColumnFiltersState,\r\n getCoreRowModel,\r\n getFilteredRowModel,\r\n getFacetedRowModel,\r\n getFacetedUniqueValues,\r\n getFacetedMinMaxValues,\r\n getPaginationRowModel,\r\n getSortedRowModel,\r\n ColumnDef,\r\n flexRender,\r\n getExpandedRowModel,\r\n VisibilityState,\r\n SortingState\r\n} from '@tanstack/react-table';\r\nimport { ILxsCreateOrderResources } from '../lxs-create-order.props.autogenerated';\r\nimport Alert from '../../../components/alert';\r\nimport Skeleton from '../../../components/skeleton';\r\nimport AddressInformation from '../components/address-information';\r\nimport highlightSearchTerm from './highlight-search-term';\r\nimport SearchBox from './search-box';\r\nimport { ISalesArea, IShipToTableData } from '../../../actions/get-ship-tos.action';\r\nimport {\r\n NO_DATA_FALLBACK,\r\n CREATE_ORDER_COLUMN_ACTION,\r\n CREATE_ORDER_COLUMN_SALES_ORG,\r\n CREATE_ORDER_COLUMN_BUSINESS_UNIT\r\n} from '../../../configuration';\r\nimport { ILxsOrderData } from '../lxs-create-order.data';\r\n\r\nexport default function ShipTos({\r\n resources,\r\n globalFilter,\r\n setGlobalFilter,\r\n pageSize,\r\n shipToData,\r\n columnFilters,\r\n isColumnFilterValid,\r\n filterDisabled,\r\n orderData,\r\n setIsColumnFilterValid,\r\n setColumnFilters,\r\n setShipTo\r\n}: {\r\n resources: ILxsCreateOrderResources;\r\n globalFilter: string;\r\n setGlobalFilter: React.Dispatch>;\r\n pageSize: number;\r\n shipToData: IShipToTableData[] | undefined;\r\n columnFilters: ColumnFiltersState;\r\n isColumnFilterValid: boolean;\r\n filterDisabled: boolean;\r\n orderData: ILxsOrderData;\r\n setIsColumnFilterValid: React.Dispatch>;\r\n setColumnFilters: React.Dispatch>;\r\n setShipTo: (shipTo: IShipToTableData) => void;\r\n}) {\r\n const [pageIndex, setPageIndex] = useState(0);\r\n\r\n const columns = React.useMemo[]>(\r\n () => [\r\n {\r\n accessorFn: row => row.Name1,\r\n id: 'name',\r\n cell: info => highlightSearchTerm(String(info.getValue()), globalFilter) ?? NO_DATA_FALLBACK,\r\n header: () => resources.createOrderTableNameHeading,\r\n footer: props => props.column.id\r\n },\r\n {\r\n accessorFn: row => row.Id,\r\n id: 'id',\r\n cell: info => highlightSearchTerm(String(info.getValue()), globalFilter) ?? NO_DATA_FALLBACK,\r\n header: () => 'id',\r\n footer: props => props.column.id\r\n },\r\n {\r\n accessorFn: row => row.VatId,\r\n id: 'vat',\r\n cell: info => highlightSearchTerm(String(info.getValue()), globalFilter) ?? NO_DATA_FALLBACK,\r\n header: () => resources.createOrderTableVatHeading,\r\n footer: props => props.column.id\r\n },\r\n {\r\n accessorFn: row => row.Street1,\r\n id: 'street',\r\n cell: info => highlightSearchTerm(String(info.getValue()), globalFilter) ?? NO_DATA_FALLBACK,\r\n header: () => resources.createOrderTableStreetHeading,\r\n footer: props => props.column.id\r\n },\r\n {\r\n accessorFn: row => row.HouseNumber,\r\n id: 'streetNumber',\r\n cell: info => highlightSearchTerm(String(info.getValue()), globalFilter) ?? NO_DATA_FALLBACK,\r\n header: () => resources.createOrderTableStreetNumberHeading,\r\n footer: props => props.column.id\r\n },\r\n {\r\n accessorFn: row => row.PostlCode,\r\n id: 'postalCode',\r\n cell: info => highlightSearchTerm(String(info.getValue()), globalFilter) ?? NO_DATA_FALLBACK,\r\n header: () => resources.createOrderTableZipHeading,\r\n footer: props => props.column.id\r\n },\r\n {\r\n accessorFn: row => row.City,\r\n id: 'city',\r\n cell: info => highlightSearchTerm(String(info.getValue()), globalFilter) ?? NO_DATA_FALLBACK,\r\n header: () => resources.createOrderTableCityHeading,\r\n footer: props => props.column.id\r\n },\r\n {\r\n accessorFn: row => row.Country,\r\n id: 'country',\r\n cell: info => highlightSearchTerm(String(info.getValue()), globalFilter) ?? NO_DATA_FALLBACK,\r\n header: () => resources.createOrderTableCountryHeading,\r\n footer: props => props.column.id\r\n },\r\n {\r\n accessorFn: row => row.SalesAreas?.map((salesArea: any) => salesArea.SalesOrg).join(', '),\r\n id: CREATE_ORDER_COLUMN_SALES_ORG,\r\n cell: info => info.getValue()\r\n },\r\n {\r\n accessorFn: row => row.SalesAreas?.map((salesArea: any) => salesArea.Division).join(', '),\r\n id: CREATE_ORDER_COLUMN_BUSINESS_UNIT,\r\n cell: info => info.getValue()\r\n },\r\n {\r\n id: CREATE_ORDER_COLUMN_ACTION,\r\n cell: info => info.getValue(),\r\n header: () => resources.createOrderTableActionHeading,\r\n footer: props => props.column.id,\r\n enableSorting: false\r\n }\r\n ],\r\n [globalFilter]\r\n );\r\n\r\n const data = shipToData ?? [];\r\n const [columnVisibility] = useState({\r\n [CREATE_ORDER_COLUMN_SALES_ORG]: false,\r\n [CREATE_ORDER_COLUMN_BUSINESS_UNIT]: false\r\n });\r\n const [sorting, setSorting] = useState([]);\r\n\r\n const table = useReactTable({\r\n data,\r\n columns,\r\n filterFns: {},\r\n state: {\r\n sorting,\r\n columnFilters,\r\n columnVisibility,\r\n globalFilter,\r\n pagination: {\r\n pageIndex: pageIndex,\r\n pageSize: pageSize\r\n }\r\n },\r\n onColumnFiltersChange: setColumnFilters,\r\n onGlobalFilterChange: setGlobalFilter,\r\n globalFilterFn: 'includesString',\r\n getCoreRowModel: getCoreRowModel(),\r\n getExpandedRowModel: getExpandedRowModel(),\r\n onSortingChange: setSorting,\r\n getFilteredRowModel: getFilteredRowModel(),\r\n getSortedRowModel: getSortedRowModel(),\r\n getPaginationRowModel: getPaginationRowModel(),\r\n getFacetedRowModel: getFacetedRowModel(),\r\n getFacetedUniqueValues: getFacetedUniqueValues(),\r\n getFacetedMinMaxValues: getFacetedMinMaxValues(),\r\n debugTable: false,\r\n debugHeaders: false,\r\n debugColumns: false,\r\n autoResetAll: false\r\n });\r\n\r\n const totalEntries = table.getFilteredRowModel().rows?.length ?? 0;\r\n\r\n const getSalesOrgOptions = () => {\r\n const salesOrgOptions = (shipToData || [])\r\n ?.flatMap(data =>\r\n data.SalesAreas.map((area: ISalesArea) => {\r\n if (area.OrderCreate) {\r\n return { value: area.SalesOrg, label: area.SalesOrgText };\r\n }\r\n return { value: '', label: '' };\r\n })\r\n )\r\n .filter(item => !!item?.value && !!item?.label);\r\n return [...new Map(salesOrgOptions.map(v => [v?.value, v])).values()] ?? [];\r\n };\r\n const getBusinessUnitOptions = () => {\r\n const businessUnitOptions = (shipToData || [])\r\n ?.flatMap(data =>\r\n data.SalesAreas.map((area: ISalesArea) => {\r\n if (area.OrderCreate) {\r\n return { value: area.Division, label: area.DivisionText };\r\n }\r\n return { value: '', label: '' };\r\n })\r\n )\r\n .filter(item => !!item?.value && !!item?.label);\r\n return [...new Map(businessUnitOptions.map(v => [v?.value, v])).values()] ?? [];\r\n };\r\n\r\n useEffect(() => {\r\n if (shipToData && shipToData.length > 0 && totalEntries === 0 && columnFilters.length > 0) {\r\n setIsColumnFilterValid(false);\r\n } else {\r\n setIsColumnFilterValid(true);\r\n }\r\n }, [shipToData, columnFilters]);\r\n\r\n useEffect(() => {\r\n setPageIndex(0);\r\n }, [globalFilter, columnFilters]);\r\n\r\n return (\r\n <>\r\n
\r\n
\r\n \r\n\r\n {totalEntries > 0 && (\r\n

\r\n {totalEntries} {resources.createOrderSearchShipTosHeading}\r\n

\r\n )}\r\n\r\n
\r\n \r\n \r\n {table.getHeaderGroups().map(headerGroup => (\r\n \r\n {headerGroup.headers.map(header => {\r\n const sortValue =\r\n { asc: 'msc-table-sorting--asc', desc: 'msc-table-sorting--desc' }[\r\n header.column.getIsSorted() as string\r\n ] ?? null;\r\n return (\r\n \r\n );\r\n })}\r\n \r\n ))}\r\n \r\n \r\n {!shipToData ? (\r\n Array.from({ length: pageSize }).map(() => {\r\n return table.getHeaderGroups().map(headerGroup => (\r\n \r\n {headerGroup.headers.map(column => (\r\n \r\n ))}\r\n \r\n ));\r\n })\r\n ) : shipToData && shipToData.length === 0 ? (\r\n \r\n ) : table.getRowModel().rows?.length ? (\r\n table.getRowModel().rows.map(row => (\r\n \r\n \r\n {row.getVisibleCells().map(cell => {\r\n return cell.column?.id === CREATE_ORDER_COLUMN_ACTION ? (\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 {header.isPlaceholder ? null : (\r\n \r\n {flexRender(header.column.columnDef.header, header.getContext())}\r\n \r\n )}\r\n
\r\n \r\n
\r\n \r\n
\r\n {\r\n setGlobalFilter('');\r\n setShipTo(row.original);\r\n }}\r\n >\r\n {resources.createOrderSelectButton}\r\n \r\n {flexRender(cell.column.columnDef.cell, cell.getContext())}
\r\n \r\n
\r\n
\r\n {totalEntries > 0 && totalEntries > pageSize && (\r\n
\r\n setPageIndex(pageIndex - 1)}\r\n disabled={!table.getCanPreviousPage()}\r\n >\r\n \r\n {table.getState().pagination.pageIndex + 1} / {table.getPageCount()}\r\n \r\n setPageIndex(pageIndex + 1)}\r\n disabled={!table.getCanNextPage()}\r\n >\r\n
\r\n )}\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n );\r\n}\r\n","import React, { useCallback } from 'react';\r\nimport { ISoldToTableData } from '../../../actions/get-sold-tos.action';\r\n\r\ninterface BackButtonProps {\r\n step: number;\r\n setStep: (step: number) => void;\r\n setSoldTo: (data: ISoldToTableData) => void;\r\n resources: {\r\n createOrderPreviousPageButton: string;\r\n };\r\n}\r\n\r\nexport const BackButton: React.FC = React.memo(({ step, setStep, setSoldTo, resources }) => {\r\n const handlePreviousClick = useCallback(() => {\r\n if (step === 2) {\r\n setSoldTo({} as ISoldToTableData);\r\n }\r\n setStep(step - 1);\r\n }, [step, setStep, setSoldTo]);\r\n\r\n if (![2, 5].includes(step)) {\r\n return null;\r\n }\r\n\r\n return (\r\n \r\n );\r\n});\r\n","import React, { useState } from 'react';\r\nimport { ILxsCreateOrderResources } from '../lxs-create-order.props.autogenerated';\r\nimport { ILxsOrderData, IOrderHeader } from '../lxs-create-order.data';\r\nimport { toast } from 'sonner';\r\nimport AddressInformation from '../components/address-information';\r\nimport { IShipToTableData } from '../../../actions/get-ship-tos.action';\r\nimport {\r\n convertSapToHtmlLinebreaks,\r\n convertSapToNewlineLinebreaks,\r\n convertNewlineToSapLinebreaks,\r\n convertHtmlToPlainText\r\n} from '../../../utilities';\r\nimport { NO_DATA_FALLBACK, CREATE_ORDER_ADDITIONAL_INFORMATION_TEXT_LIMIT } from '../../../configuration';\r\n\r\nexport const OrderHeaderInfo = ({\r\n setOrderHeader,\r\n setStep,\r\n resources,\r\n orderData,\r\n step\r\n}: {\r\n orderData: ILxsOrderData;\r\n resources: ILxsCreateOrderResources;\r\n step: number;\r\n setStep?: React.Dispatch>;\r\n setOrderHeader?: (orderHeader: IOrderHeader) => void;\r\n}) => {\r\n const [additionalInfoValue, setAdditionalInfoValue] = useState('');\r\n const [customerPoNumberValue, setCustomerPoNumberValue] = useState('');\r\n\r\n const showToast = (message: string) => {\r\n toast.info(\r\n
\r\n
\r\n

{resources.createOrderOrderHeadingInfoToastHeading}

\r\n \r\n
\r\n
\r\n {message}\r\n
\r\n
\r\n );\r\n };\r\n\r\n const handleChange = (\r\n event: React.ChangeEvent,\r\n setValue: React.Dispatch>\r\n ) => {\r\n setValue(event.target.value);\r\n };\r\n\r\n const sanitizeAndUpdate = (\r\n inputValue: string,\r\n convertHtmlToPlainText: (input: string) => string,\r\n setInputValue: React.Dispatch>,\r\n updateOrderHeader: (sanitizedValue: string) => void,\r\n showToast: (message: string) => void,\r\n resources: ILxsCreateOrderResources\r\n ) => {\r\n const originalValue = inputValue;\r\n const sanitizedValue = convertHtmlToPlainText(inputValue);\r\n setInputValue(sanitizedValue);\r\n updateOrderHeader(sanitizedValue);\r\n\r\n if (originalValue !== '' && originalValue !== sanitizedValue) {\r\n showToast(resources.createOrderOrderHeadingInfoSanitizeText);\r\n }\r\n };\r\n\r\n const handleBlur = (\r\n event: React.FocusEvent,\r\n setInputValue: React.Dispatch>,\r\n updateOrderHeader: (sanitizedValue: string) => void\r\n ) => {\r\n sanitizeAndUpdate(event.target.value, convertHtmlToPlainText, setInputValue, updateOrderHeader, showToast, resources);\r\n };\r\n\r\n return (\r\n
\r\n
\r\n
\r\n

{resources.createOrderGeneralOrderHeading}

\r\n
\r\n
\r\n \r\n {step === 5 ? (\r\n

{orderData.orderHeader?.CustomerPONumber ?? NO_DATA_FALLBACK}

\r\n ) : (\r\n \r\n handleBlur(event, setCustomerPoNumberValue, sanitizedValue =>\r\n setOrderHeader?.({ ...orderData.orderHeader, CustomerPONumber: sanitizedValue })\r\n )\r\n }\r\n onChange={event => handleChange(event, setCustomerPoNumberValue)}\r\n placeholder={resources.createOrderCustomerPoPlaceholder}\r\n >\r\n )}\r\n
\r\n
\r\n \r\n

{orderData.orderHeader?.SalesOrgText ?? NO_DATA_FALLBACK}

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

{orderData.orderHeader?.DivisionText ?? NO_DATA_FALLBACK}

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

{orderData.orderHeader?.Incoterm1 ?? NO_DATA_FALLBACK}

\r\n
\r\n
\r\n
\r\n
\r\n \r\n {step === 5 ? (\r\n orderData.orderHeader?.AdditionalInfo ? (\r\n

\r\n ) : (\r\n

{NO_DATA_FALLBACK}

\r\n )\r\n ) : (\r\n \r\n handleBlur(event, setAdditionalInfoValue, sanitizedValue =>\r\n setOrderHeader?.({\r\n ...orderData.orderHeader,\r\n AdditionalInfo: convertNewlineToSapLinebreaks(sanitizedValue)\r\n })\r\n )\r\n }\r\n onChange={event => handleChange(event, setAdditionalInfoValue)}\r\n placeholder={resources.createOrderMessagePlaceholderLabel}\r\n rows={6}\r\n >\r\n )}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n {step === 4 && (\r\n
\r\n {\r\n setStep?.(step - 1);\r\n }}\r\n >\r\n {resources.createOrderPreviousPageButton}\r\n \r\n {\r\n setStep?.(5);\r\n }}\r\n >\r\n {resources.createOrderNextPageButton}\r\n \r\n
\r\n )}\r\n
\r\n );\r\n};\r\n","import React, { Dispatch, SetStateAction, useEffect, useMemo, useState } from 'react';\r\nimport { ILxsCreateOrderResources } from '../lxs-create-order.props.autogenerated';\r\nimport {\r\n CellContext,\r\n ColumnDef,\r\n ColumnFiltersState,\r\n RowData,\r\n VisibilityState,\r\n flexRender,\r\n getCoreRowModel,\r\n getExpandedRowModel,\r\n getFacetedMinMaxValues,\r\n getFacetedRowModel,\r\n getFacetedUniqueValues,\r\n getFilteredRowModel,\r\n getSortedRowModel,\r\n useReactTable\r\n} from '@tanstack/react-table';\r\nimport { ILxsOrderData } from '../lxs-create-order.data';\r\nimport { IPostCartItems } from '../../../actions/post-cart.action';\r\nimport { IGetAllProductsResult } from '../../../actions/get-all-products.action';\r\nimport {\r\n CREATE_ORDER_NO_ENDCUSTOMER_VALUE,\r\n CREATE_ORDER_COLUMN_PRODUCT_NAME,\r\n CREATE_ORDER_COLUMN_PRODUCT_NUMBER,\r\n CREATE_ORDER_COLUMN_ACTION,\r\n CREATE_ORDER_COLUMN_END_CUSTOMER,\r\n CREATE_ORDER_COLUMN_CUSTOMER_PRODUCT_NUMBER,\r\n CREATE_ORDER_COLUMN_REQUESTED_DELIVERY_DATE,\r\n NO_DATA_FALLBACK\r\n} from '../../../configuration';\r\n\r\ntype CustomCellContext = CellContext & {\r\n products: IPostCartItems[];\r\n setProducts: Dispatch>;\r\n};\r\n\r\nexport default function SelectedProducts({\r\n resources,\r\n orderData,\r\n productsData,\r\n productsHaveEndcustomers,\r\n goto,\r\n setProducts\r\n}: {\r\n productsData: IGetAllProductsResult[] | undefined;\r\n resources: ILxsCreateOrderResources;\r\n orderData: ILxsOrderData;\r\n productsHaveEndcustomers: boolean;\r\n goto: (step: number) => void;\r\n setProducts: Dispatch>;\r\n}) {\r\n const [columnFilters, setColumnFilters] = React.useState([]);\r\n\r\n const columns: ColumnDef[] = useMemo(\r\n () => [\r\n {\r\n accessorFn: row => row.ProductName,\r\n id: CREATE_ORDER_COLUMN_PRODUCT_NAME,\r\n cell: info => info.getValue() ?? NO_DATA_FALLBACK,\r\n header: () => resources.createOrderProductsTableProductName,\r\n footer: props => props.column.id\r\n },\r\n {\r\n accessorFn: row => row.ProductNumber,\r\n id: CREATE_ORDER_COLUMN_PRODUCT_NUMBER,\r\n cell: info => info.getValue() ?? NO_DATA_FALLBACK,\r\n header: () => resources.createOrderProductsTableProductNumber,\r\n footer: props => props.column.id\r\n },\r\n {\r\n accessorFn: row => row.CustomerProductNumber,\r\n id: CREATE_ORDER_COLUMN_CUSTOMER_PRODUCT_NUMBER,\r\n cell: info => info.getValue() ?? NO_DATA_FALLBACK,\r\n header: () => resources.createOrderSelectedProductsTableCustomerProductNumber,\r\n footer: props => props.column.id\r\n },\r\n {\r\n accessorFn: row => row.RequestedDate,\r\n id: CREATE_ORDER_COLUMN_REQUESTED_DELIVERY_DATE,\r\n cell: props => {\r\n const customProps = props as CustomCellContext;\r\n const currentProductIndex = customProps.row.index;\r\n const tomorrow = new Date(+new Date() + 86400000);\r\n const currentDate = new Date(customProps.products[Number(currentProductIndex)].RequestedDate);\r\n const validDate = new Date(currentDate).getTime() > new Date(tomorrow).getTime() ? currentDate : tomorrow;\r\n\r\n useEffect(() => {\r\n const newProducts = customProps.products.slice();\r\n newProducts[Number(currentProductIndex)].RequestedDate = validDate;\r\n customProps.setProducts(newProducts);\r\n }, []);\r\n return (\r\n
\r\n
\r\n {\r\n e.key === 'Enter' && e.preventDefault();\r\n }}\r\n placeholder='dd.mm.yyyy'\r\n min={tomorrow.toISOString().substring(0, 10)}\r\n value={(validDate && validDate?.toISOString().substring(0, 10)) ?? undefined}\r\n onChange={date => {\r\n const newProducts = customProps.products.slice();\r\n newProducts[Number(currentProductIndex)].RequestedDate = new Date(date.target.value);\r\n customProps.setProducts(newProducts);\r\n }}\r\n />\r\n
\r\n
\r\n );\r\n },\r\n header: () => resources.createOrderSelectedProductsTableRequestedDeliveryDate,\r\n footer: props => props.column.id\r\n },\r\n {\r\n accessorFn: row => row.Quantity,\r\n id: 'quantity',\r\n cell: props => {\r\n const customProps = props as CustomCellContext;\r\n const currentProductIndex = customProps.row.index;\r\n const [value, setValue] = useState(customProps.products[Number(currentProductIndex)].Quantity);\r\n return (\r\n
\r\n
\r\n
\r\n {\r\n e.key === 'Enter' && e.preventDefault();\r\n }}\r\n onChange={event => {\r\n const validated = event.target.value.match(/^\\d*$/);\r\n if (validated) {\r\n setValue(event.target.value.replace(/^[0|\\D]*/, ''));\r\n } else {\r\n return;\r\n }\r\n }}\r\n onBlur={() => {\r\n const newProducts = customProps.products.slice();\r\n newProducts[Number(currentProductIndex)].Quantity = value;\r\n customProps.setProducts(newProducts);\r\n }}\r\n />\r\n
\r\n {customProps.products[Number(currentProductIndex)].UnitOfMeasure ?? undefined}\r\n
\r\n
\r\n
\r\n
\r\n );\r\n },\r\n header: () => resources.createOrderSelectedProductsTableQuantity,\r\n footer: props => props.column.id\r\n },\r\n {\r\n accessorFn: row => row.EndCustomerName,\r\n id: CREATE_ORDER_COLUMN_END_CUSTOMER,\r\n cell: props => {\r\n const customProps = props as CustomCellContext;\r\n const currentProductIndex: number = customProps.row.index;\r\n\r\n const relevantProducts = productsData?.find(\r\n product => product.ProductNumber === customProps.row.original.ProductNumber\r\n );\r\n const hasEndCustomers: boolean | undefined = relevantProducts?.EndCustomers.some(\r\n customer => customer.EndCustomerNumber !== CREATE_ORDER_NO_ENDCUSTOMER_VALUE\r\n );\r\n\r\n useEffect(() => {\r\n if (relevantProducts?.EndCustomers?.length === 1) {\r\n const newProducts = customProps.products.slice();\r\n newProducts[Number(currentProductIndex)].EndCustomerName =\r\n relevantProducts?.EndCustomers[0]?.EndCustomerDisplayName ?? '';\r\n newProducts[Number(currentProductIndex)].EndCustomerNumber =\r\n relevantProducts?.EndCustomers[0]?.EndCustomerNumber ?? '';\r\n customProps.setProducts(newProducts);\r\n }\r\n }, []);\r\n return (\r\n
\r\n
\r\n
\r\n {\r\n const newProducts = customProps.products.slice();\r\n const correctProduct = relevantProducts?.EndCustomers.find(\r\n product => product.EndCustomerNumber === event.target.value\r\n );\r\n if (!!correctProduct) {\r\n newProducts[Number(currentProductIndex)].EndCustomerName =\r\n correctProduct?.EndCustomerDisplayName ?? '';\r\n newProducts[Number(currentProductIndex)].EndCustomerNumber =\r\n correctProduct?.EndCustomerNumber ?? '';\r\n } else {\r\n newProducts[Number(currentProductIndex)].EndCustomerName = '';\r\n newProducts[Number(currentProductIndex)].EndCustomerNumber = '';\r\n }\r\n customProps.setProducts(newProducts);\r\n }}\r\n >\r\n {hasEndCustomers &&\r\n relevantProducts?.EndCustomers &&\r\n relevantProducts?.EndCustomers?.length > 1 && (\r\n \r\n )}\r\n {relevantProducts?.EndCustomers.map(endCustomer => {\r\n if (endCustomer.EndCustomerNumber === CREATE_ORDER_NO_ENDCUSTOMER_VALUE) {\r\n return (\r\n \r\n );\r\n }\r\n return (\r\n \r\n );\r\n })}\r\n \r\n
\r\n
\r\n
\r\n );\r\n },\r\n header: () => resources.createOrderSelectedProductsTableEndCustomer,\r\n footer: props => props.column.id\r\n },\r\n {\r\n id: CREATE_ORDER_COLUMN_ACTION,\r\n cell: info => info.getValue() ?? NO_DATA_FALLBACK,\r\n header: () => resources.createOrderProductsTableActionTitle,\r\n footer: props => props.column.id\r\n }\r\n ],\r\n []\r\n );\r\n\r\n const [columnVisibility] = useState({\r\n [CREATE_ORDER_COLUMN_END_CUSTOMER]: productsHaveEndcustomers ?? true\r\n });\r\n\r\n const table = useReactTable({\r\n data: orderData.products ?? [],\r\n columns,\r\n filterFns: {},\r\n state: {\r\n columnFilters,\r\n columnVisibility\r\n },\r\n onColumnFiltersChange: setColumnFilters,\r\n globalFilterFn: 'includesString',\r\n getCoreRowModel: getCoreRowModel(),\r\n getExpandedRowModel: getExpandedRowModel(),\r\n getFilteredRowModel: getFilteredRowModel(),\r\n getSortedRowModel: getSortedRowModel(),\r\n getFacetedRowModel: getFacetedRowModel(),\r\n getFacetedUniqueValues: getFacetedUniqueValues(),\r\n getFacetedMinMaxValues: getFacetedMinMaxValues(),\r\n debugTable: false,\r\n debugHeaders: false,\r\n debugColumns: false\r\n });\r\n\r\n return (\r\n <>\r\n
\r\n
\r\n
\r\n

{resources.createOrderSelectedProductsHeading}

\r\n setProducts([])}>\r\n {resources.createOrderSelectedProductsRemoveAll}\r\n \r\n
\r\n
\r\n {\r\n goto(4);\r\n }}\r\n >\r\n \r\n \r\n {table.getHeaderGroups().map(headerGroup => (\r\n \r\n {headerGroup.headers.map(header => {\r\n return (\r\n \r\n );\r\n })}\r\n \r\n ))}\r\n \r\n \r\n {table.getRowModel().rows.map(row => (\r\n \r\n \r\n {row.getVisibleCells().map(cell => {\r\n return cell.column?.id === CREATE_ORDER_COLUMN_ACTION ? (\r\n \r\n ) : (\r\n \r\n );\r\n })}\r\n \r\n \r\n ))}\r\n \r\n
\r\n {header.isPlaceholder ? null : (\r\n <>{flexRender(header.column.columnDef.header, header.getContext())}\r\n )}\r\n
\r\n {\r\n const newSelectedProducts = orderData.products\r\n ? orderData.products.slice()\r\n : [];\r\n const selectedProductIndex = newSelectedProducts.findIndex(\r\n p => p.ProductNumber === cell.row.original.ProductNumber\r\n );\r\n if (selectedProductIndex !== -1) {\r\n newSelectedProducts.splice(selectedProductIndex, 1);\r\n setProducts(\r\n newSelectedProducts.map(product => ({\r\n CustomerAccountNumber: product.CustomerAccountNumber,\r\n Number: product.Number,\r\n Quantity: product.Quantity,\r\n ProductNumber: product.ProductNumber,\r\n ProductName: product.ProductName,\r\n CustomerProductNumber: product.CustomerProductNumber,\r\n RequestedDate: product.RequestedDate,\r\n UnitOfMeasure: product.UnitOfMeasure,\r\n EndCustomerNumber: product.EndCustomerNumber,\r\n EndCustomerName: product.EndCustomerName\r\n }))\r\n );\r\n }\r\n }}\r\n >\r\n {resources.createOrderSelectedProductsTableActionLabel}\r\n \r\n \r\n {flexRender(cell.column.columnDef.cell, {\r\n ...cell.getContext(),\r\n products: orderData.products,\r\n setProducts: setProducts\r\n })}\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n );\r\n}\r\n","import React, { Dispatch, SetStateAction, useState, useMemo, useEffect } from 'react';\r\nimport { ILxsCreateOrderResources } from '../lxs-create-order.props.autogenerated';\r\nimport {\r\n ColumnDef,\r\n ColumnFiltersState,\r\n SortingState,\r\n VisibilityState,\r\n flexRender,\r\n getCoreRowModel,\r\n getExpandedRowModel,\r\n getFacetedMinMaxValues,\r\n getFacetedRowModel,\r\n getFacetedUniqueValues,\r\n getFilteredRowModel,\r\n getPaginationRowModel,\r\n getSortedRowModel,\r\n useReactTable\r\n} from '@tanstack/react-table';\r\nimport { IGetAllProductsResult } from '../../../actions/get-all-products.action';\r\nimport SearchBox from './search-box';\r\nimport { ILxsOrderData } from '../lxs-create-order.data';\r\nimport { IPostCartItems } from '../../../actions/post-cart.action';\r\nimport Alert from '../../../components/alert';\r\nimport highlightSearchTerm from './highlight-search-term';\r\nimport { toast } from 'sonner';\r\nimport Skeleton from '../../../components/skeleton';\r\nimport AddressInformation from '../components/address-information';\r\nimport { IShipToTableData } from '../../../actions/get-ship-tos.action';\r\nimport SelectedProducts from './selected-products';\r\nimport {\r\n NO_DATA_FALLBACK,\r\n CREATE_ORDER_NO_ENDCUSTOMER_VALUE,\r\n CREATE_ORDER_COLUMN_PRODUCT_NAME,\r\n CREATE_ORDER_COLUMN_PRODUCT_NUMBER,\r\n CREATE_ORDER_COLUMN_ACTION,\r\n CREATE_ORDER_COLUMN_UNIT,\r\n CREATE_ORDER_COLUMN_INCOTERM,\r\n CREATE_ORDER_COLUMN_SALES_ORG,\r\n CREATE_ORDER_COLUMN_SALES_ORG_TEXT,\r\n CREATE_ORDER_COLUMN_BUSINESS_UNIT,\r\n CREATE_ORDER_COLUMN_DIVISION_TEXT,\r\n CREATE_ORDER_COLUMN_DISTRIBUTION_CHANNEL\r\n} from '../../../configuration';\r\nimport { useModal } from '../../../components/modal';\r\n\r\nexport default function products({\r\n step,\r\n resources,\r\n orderData,\r\n pageSize,\r\n globalFilter,\r\n productsData,\r\n columnFilters,\r\n isColumnFilterValid,\r\n filterDisabled,\r\n productsHaveEndcustomers,\r\n setShipTo,\r\n setStep,\r\n setIsColumnFilterValid,\r\n setColumnFilters,\r\n setProducts,\r\n setGlobalFilter,\r\n setFilterDisabled\r\n}: {\r\n step: number;\r\n resources: ILxsCreateOrderResources;\r\n orderData: ILxsOrderData;\r\n pageSize: number;\r\n globalFilter: string;\r\n productsData: IGetAllProductsResult[] | undefined;\r\n columnFilters: ColumnFiltersState;\r\n isColumnFilterValid: boolean;\r\n filterDisabled: boolean;\r\n productsHaveEndcustomers: boolean;\r\n setStep: Dispatch>;\r\n setShipTo: (shipTo: IShipToTableData) => void;\r\n setIsColumnFilterValid: React.Dispatch>;\r\n setColumnFilters: React.Dispatch>;\r\n setProducts: Dispatch>;\r\n setGlobalFilter: Dispatch>;\r\n setFilterDisabled: Dispatch>;\r\n}) {\r\n const [pageIndex, setPageIndex] = useState(0);\r\n\r\n const { setOpen, setClose } = useModal();\r\n\r\n const columns = useMemo[]>(\r\n () => [\r\n {\r\n accessorFn: row => row.ProductName,\r\n id: CREATE_ORDER_COLUMN_PRODUCT_NAME,\r\n cell: info => highlightSearchTerm(String(info.getValue()), globalFilter) ?? NO_DATA_FALLBACK,\r\n header: () => resources.createOrderProductsTableProductName,\r\n footer: props => props.column.id\r\n },\r\n {\r\n accessorFn: row => row.ProductNumber,\r\n id: CREATE_ORDER_COLUMN_PRODUCT_NUMBER,\r\n cell: info => highlightSearchTerm(String(info.getValue()), globalFilter) ?? NO_DATA_FALLBACK,\r\n header: () => resources.createOrderProductsTableProductNumber,\r\n footer: props => props.column.id\r\n },\r\n {\r\n accessorFn: row => row.UnitOfMeasure,\r\n id: CREATE_ORDER_COLUMN_UNIT,\r\n cell: info => highlightSearchTerm(String(info.getValue()), globalFilter) ?? NO_DATA_FALLBACK,\r\n header: () => resources.createOrderProductsTableUnit,\r\n footer: props => props.column.id\r\n },\r\n {\r\n accessorFn: row => row.Incoterm1,\r\n id: CREATE_ORDER_COLUMN_INCOTERM,\r\n cell: info => highlightSearchTerm(String(info.getValue()), globalFilter) ?? NO_DATA_FALLBACK,\r\n header: () => resources.createOrderProductsTableIncoterm,\r\n footer: props => props.column.id\r\n },\r\n {\r\n accessorFn: row => row.SalesOrg,\r\n id: CREATE_ORDER_COLUMN_SALES_ORG,\r\n cell: info => info.getValue()\r\n },\r\n {\r\n accessorFn: row => row.Division,\r\n id: CREATE_ORDER_COLUMN_BUSINESS_UNIT,\r\n cell: info => info.getValue()\r\n },\r\n {\r\n id: CREATE_ORDER_COLUMN_ACTION,\r\n cell: info => info.getValue(),\r\n header: () => resources.createOrderProductsTableActionTitle,\r\n footer: props => props.column.id,\r\n enableSorting: false\r\n }\r\n ],\r\n [globalFilter]\r\n );\r\n\r\n /* CAUTION: data needs to be defined for table,\r\n productsData can be undefined in order to show Skeleton while loading.\r\n They are similar but not the same. */\r\n const data = productsData ?? [];\r\n const [columnVisibility] = useState({\r\n [CREATE_ORDER_COLUMN_SALES_ORG]: false,\r\n [CREATE_ORDER_COLUMN_BUSINESS_UNIT]: false\r\n });\r\n const [sorting, setSorting] = useState([]);\r\n\r\n const table = useReactTable({\r\n data,\r\n columns,\r\n filterFns: {},\r\n state: {\r\n sorting,\r\n columnVisibility,\r\n columnFilters,\r\n globalFilter,\r\n pagination: {\r\n pageIndex: pageIndex,\r\n pageSize: pageSize\r\n }\r\n },\r\n onColumnFiltersChange: setColumnFilters,\r\n onGlobalFilterChange: setGlobalFilter,\r\n globalFilterFn: 'includesString',\r\n onSortingChange: setSorting,\r\n getCoreRowModel: getCoreRowModel(),\r\n getExpandedRowModel: getExpandedRowModel(),\r\n getFilteredRowModel: getFilteredRowModel(),\r\n getSortedRowModel: getSortedRowModel(),\r\n getPaginationRowModel: getPaginationRowModel(),\r\n getFacetedRowModel: getFacetedRowModel(),\r\n getFacetedUniqueValues: getFacetedUniqueValues(),\r\n getFacetedMinMaxValues: getFacetedMinMaxValues(),\r\n debugTable: false,\r\n debugHeaders: false,\r\n debugColumns: false,\r\n autoResetAll: false\r\n });\r\n const totalEntries: number = table.getFilteredRowModel().rows.length;\r\n\r\n const getSalesOrgOptions = () => {\r\n const salesOrgOptions: { value: string; label: string }[] = data\r\n .map(data => ({ value: data.SalesOrg, label: data.SalesOrgText }))\r\n .filter(item => !!item?.value && !!item?.label);\r\n return [...new Map(salesOrgOptions.map(v => [v?.value, v])).values()] ?? [];\r\n };\r\n const getBusinessUnitOptions = () => {\r\n const businessUnitOptions = data\r\n .map(data => ({ value: data.Division, label: data.DivisionText }))\r\n .filter(item => !!item?.value && !!item?.label);\r\n return [...new Map(businessUnitOptions.map(v => [v?.value, v])).values()] ?? [];\r\n };\r\n const getIncotermOptions = () => {\r\n const incotermOptions = data\r\n .map(data => ({ value: data.Incoterm1, label: data.Incoterm1 }))\r\n .filter(item => !!item?.value && !!item?.label);\r\n return [...new Map(incotermOptions.map(v => [v?.value, v])).values()] ?? [];\r\n };\r\n\r\n useEffect(() => {\r\n if (data.length > 0 && totalEntries === 0 && columnFilters.length > 0) {\r\n setIsColumnFilterValid(false);\r\n }\r\n }, [data, columnFilters]);\r\n\r\n useEffect(() => {\r\n setPageIndex(0);\r\n }, [globalFilter, columnFilters]);\r\n\r\n return (\r\n
\r\n
\r\n
\r\n \r\n\r\n {totalEntries > 0 && (\r\n

\r\n {totalEntries} {resources.createOrderSearchProductsHeading}\r\n

\r\n )}\r\n\r\n
\r\n \r\n \r\n {table.getHeaderGroups().map(headerGroup => (\r\n \r\n {headerGroup.headers.map(header => {\r\n const sortValue =\r\n { asc: 'msc-table-sorting--asc', desc: 'msc-table-sorting--desc' }[\r\n header.column.getIsSorted() as string\r\n ] ?? null;\r\n return (\r\n \r\n );\r\n })}\r\n \r\n ))}\r\n \r\n \r\n {!productsData ? (\r\n Array.from({ length: pageSize }).map(() => {\r\n return table.getHeaderGroups().map(headerGroup => (\r\n \r\n {headerGroup.headers.map(column => (\r\n \r\n ))}\r\n \r\n ));\r\n })\r\n ) : productsData.length === 0 ? (\r\n \r\n ) : table.getRowModel().rows?.length ? (\r\n table.getRowModel().rows.map(row => (\r\n \r\n \r\n {row.getVisibleCells().map(cell => {\r\n return cell.column?.id === CREATE_ORDER_COLUMN_ACTION ? (\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 {header.isPlaceholder ? null : (\r\n \r\n {flexRender(header.column.columnDef.header, header.getContext())}\r\n \r\n )}\r\n
\r\n \r\n
\r\n \r\n
\r\n {\r\n const products = orderData.products ? orderData.products.slice() : [];\r\n products.push({\r\n CustomerAccountNumber: '',\r\n Number: 0,\r\n Quantity: '',\r\n ProductNumber: row.original.ProductNumber,\r\n ProductName: row.original.ProductName,\r\n CustomerProductNumber: row.original.CustomerProductNumber,\r\n RequestedDate: new Date(),\r\n UnitOfMeasure: row.original.UnitOfMeasure,\r\n EndCustomerNumber: productsHaveEndcustomers\r\n ? ''\r\n : CREATE_ORDER_NO_ENDCUSTOMER_VALUE,\r\n EndCustomerName: productsHaveEndcustomers\r\n ? ''\r\n : CREATE_ORDER_NO_ENDCUSTOMER_VALUE\r\n });\r\n\r\n if (!filterDisabled) {\r\n setFilterDisabled(true);\r\n const productColumnFilters = [\r\n {\r\n id: CREATE_ORDER_COLUMN_BUSINESS_UNIT,\r\n value: row.original.Division\r\n },\r\n {\r\n id: CREATE_ORDER_COLUMN_DIVISION_TEXT,\r\n value: row.original.DivisionText\r\n },\r\n {\r\n id: CREATE_ORDER_COLUMN_SALES_ORG,\r\n value: row.original.SalesOrg\r\n },\r\n {\r\n id: CREATE_ORDER_COLUMN_SALES_ORG_TEXT,\r\n value: row.original.SalesOrgText\r\n },\r\n {\r\n id: CREATE_ORDER_COLUMN_INCOTERM,\r\n value: row.original.Incoterm1\r\n },\r\n {\r\n id: CREATE_ORDER_COLUMN_DISTRIBUTION_CHANNEL,\r\n value: row.original.DistributionChannel\r\n }\r\n ];\r\n setColumnFilters(productColumnFilters);\r\n }\r\n\r\n // Give user feedback that the item was added to the cart\r\n toast.success(\r\n
\r\n
\r\n

{resources.createOrderItemAddedHeading}

\r\n toast.dismiss()}\r\n >\r\n
\r\n
\r\n {resources.createOrderItemAddedDescription}\r\n
\r\n
\r\n );\r\n\r\n setProducts(products);\r\n // Scroll to the selected products container to show the added product\r\n const selectedProductsContainer = document.querySelector(\r\n '.msc-pagination'\r\n );\r\n selectedProductsContainer?.scrollIntoView({\r\n behavior: 'smooth'\r\n });\r\n }}\r\n >\r\n {resources.createOrderProductsTableActionLabel}\r\n \r\n
{flexRender(cell.column.columnDef.cell, cell.getContext())}
\r\n \r\n
\r\n
\r\n {totalEntries > 0 && totalEntries > pageSize && (\r\n
\r\n setPageIndex(pageIndex - 1)}\r\n disabled={!table.getCanPreviousPage()}\r\n >\r\n \r\n {table.getState().pagination.pageIndex + 1} / {table.getPageCount()}\r\n \r\n setPageIndex(pageIndex + 1)}\r\n disabled={!table.getCanNextPage()}\r\n >\r\n
\r\n )}\r\n
\r\n
\r\n \r\n
\r\n
\r\n {orderData.products && orderData.products.length > 0 && (\r\n setStep(step)}\r\n orderData={orderData}\r\n productsData={productsData}\r\n resources={resources}\r\n productsHaveEndcustomers={productsHaveEndcustomers}\r\n setProducts={setProducts}\r\n />\r\n )}\r\n
\r\n {\r\n if (orderData?.products !== undefined && orderData.products.length > 0) {\r\n setOpen({\r\n content: (\r\n
\r\n

{resources.createOrderDeleteProductsHint}

\r\n {\r\n setShipTo({} as IShipToTableData);\r\n setStep?.(step - 1);\r\n setClose();\r\n }}\r\n >\r\n {resources.createOrderDeleteProductsHintConfirm}\r\n \r\n
\r\n ),\r\n size: 'sm'\r\n });\r\n } else {\r\n setShipTo({} as IShipToTableData);\r\n setStep?.(step - 1);\r\n }\r\n }}\r\n >\r\n {resources.createOrderPreviousPageButton}\r\n \r\n \r\n {resources.createOrderNextPageButton}\r\n \r\n
\r\n
\r\n );\r\n}\r\n","import React from 'react';\r\nimport { ICoreContext } from '@msdyn365-commerce/core';\r\nimport { formatDate, formatNumber } from '../../../utilities';\r\nimport { ILxsCreateOrderResources } from '../../lxs-create-order/lxs-create-order.props.autogenerated';\r\nimport { ILxsOrderData } from '../lxs-create-order.data';\r\n\r\nexport default function orderItems({\r\n context,\r\n itemsData,\r\n resources,\r\n productsHaveEndcustomers\r\n}: {\r\n context: ICoreContext;\r\n itemsData: ILxsOrderData;\r\n resources: ILxsCreateOrderResources;\r\n productsHaveEndcustomers: boolean;\r\n}) {\r\n return (\r\n <>\r\n

{resources.createOrderItemsHeading}

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {productsHaveEndcustomers && }\r\n \r\n \r\n \r\n {itemsData?.products?.map((item, index) => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n {productsHaveEndcustomers && }\r\n \r\n ))}\r\n \r\n
{resources.createOrderItemsTablePosition}{resources.createOrderItemsTableProductName}{resources.createOrderItemsTableProductNumber}{resources.createOrderSelectedProductsTableRequestedDeliveryDate}{resources.createOrderSelectedProductsReqQuantity}{resources.createOrderSelectedProductsTableEndCustomer}
{(index + 1) * 10}{item.ProductName}{item.ProductNumber}{formatDate(context, new Date(item.RequestedDate))}{`${formatNumber(context, Number(item.Quantity))} ${item.UnitOfMeasure}`}{item.EndCustomerName}
\r\n
\r\n \r\n );\r\n}\r\n","import React from 'react';\r\n\r\ninterface ILoadingButtonProps {\r\n label: string;\r\n disabled?: boolean;\r\n onClick: () => void;\r\n}\r\n\r\nconst loadingButton = ({ label, disabled, onClick }: ILoadingButtonProps) => {\r\n const [isLoading, setIsLoading] = React.useState(false);\r\n return (\r\n {\r\n setIsLoading(true);\r\n onClick();\r\n }}\r\n disabled={disabled || isLoading}\r\n >\r\n {isLoading && }\r\n {label}\r\n \r\n );\r\n};\r\n\r\nexport default loadingButton;\r\n","import React from 'react';\r\nimport { ILxsCreateOrderResources } from '../lxs-create-order.props.autogenerated';\r\nimport LoadingButton from '../../../components/loading-button';\r\ninterface IDisclaimerProps {\r\n resources: ILxsCreateOrderResources;\r\n placeOrder: () => void;\r\n}\r\n\r\nconst disclaimer = ({ resources, placeOrder }: IDisclaimerProps) => {\r\n const [accepted, setAccepted] = React.useState(false);\r\n return (\r\n
\r\n
\r\n

\r\n

\r\n
\r\n \r\n
\r\n placeOrder()}\r\n />\r\n
\r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default disclaimer;\r\n","import React from 'react';\r\nimport { OrderHeaderInfo } from './order-header-info';\r\nimport { ILxsCreateOrderResources } from '../lxs-create-order.props.autogenerated';\r\nimport { ILxsOrderData } from '../lxs-create-order.data';\r\nimport OrderItems from '../components/items-table';\r\nimport Disclaimer from '../components/disclaimer';\r\nimport { ICoreContext } from '@msdyn365-commerce/core';\r\n\r\ninterface IOverviewProps {\r\n orderData: ILxsOrderData;\r\n resources: ILxsCreateOrderResources;\r\n step: number;\r\n context: ICoreContext;\r\n productsHaveEndcustomers: boolean;\r\n placeOrder: () => void;\r\n}\r\n\r\nexport default function overview({ orderData, resources, step, context, productsHaveEndcustomers, placeOrder }: IOverviewProps) {\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n );\r\n}\r\n","import React from 'react';\r\nimport { CREATE_ORDER_ADDITIONAL_INFORMATION_TEXT_ID, NO_DATA_FALLBACK } from '../../../configuration';\r\nimport { convertSapToHtmlLinebreaks } from '../../../utilities';\r\nimport { IPostCreateOrderResponseData } from '../../../actions/post-create-order.action';\r\nimport { ILxsCreateOrderResources } from '../lxs-create-order.props.autogenerated';\r\n\r\nexport const OrderInfo = ({\r\n resources,\r\n orderData: { Order }\r\n}: {\r\n orderData: IPostCreateOrderResponseData;\r\n resources: ILxsCreateOrderResources;\r\n}) => {\r\n return (\r\n
\r\n

{resources.createOrderGeneralOrderHeading}

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

{Order.OrderNumber ? Order.OrderNumber : NO_DATA_FALLBACK}

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

{Order.PurchaseOrderNumbExt ? Order.PurchaseOrderNumbExt : NO_DATA_FALLBACK}

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

{Order.OrderType ? Order.OrderType : NO_DATA_FALLBACK}

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

{Order.Incoterm1 ? Order.Incoterm1 : NO_DATA_FALLBACK}

\r\n
\r\n
\r\n
\r\n
\r\n \r\n {Order.HeaderTexts?.find(text => text.TextId === CREATE_ORDER_ADDITIONAL_INFORMATION_TEXT_ID)?.Value ? (\r\n text.TextId === CREATE_ORDER_ADDITIONAL_INFORMATION_TEXT_ID)?.Value ??\r\n ''\r\n )\r\n }}\r\n >

\r\n ) : (\r\n

{NO_DATA_FALLBACK}

\r\n )}\r\n
\r\n
\r\n
\r\n );\r\n};\r\n","import React from 'react';\r\nimport Alert from '../../../components/alert';\r\nimport { ILxsCreateOrderResources } from '../lxs-create-order.props.autogenerated';\r\nimport { IPostCreateOrderResponseData } from '../../../actions/post-create-order.action';\r\n\r\nexport const OrderError = ({ resources, orderData }: { resources: ILxsCreateOrderResources; orderData: IPostCreateOrderResponseData }) => {\r\n return (\r\n <>\r\n \r\n

{resources.createOrderErrorCreateOrderHint}

\r\n
    \r\n {orderData.Messages.map(error => (\r\n
  • \r\n {resources.globalErrorCodeLabel} {error.ReturnCode}\r\n
  • \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 */\r\n\r\n/* eslint-disable no-duplicate-imports */\r\nimport { getUrlSync, IActionContext } from '@msdyn365-commerce/core';\r\n\r\n/**\r\n * Retrieves the url for order details page.\r\n * @param actionContext - Core action context.\r\n * @returns Url to create order page.\r\n */\r\nexport const getCreateOrderPageUrl = (actionContext: IActionContext): string => {\r\n const createOrderUrl = getUrlSync('createOrder', actionContext) || '';\r\n return createOrderUrl;\r\n};\r\n","import React from 'react';\r\nimport { ICoreContext } from '@msdyn365-commerce/core';\r\nimport { getCreateOrderPageUrl } from '../../../utilities/get-create-order-page-url';\r\nimport { ILxsCreateOrderResources } from '../lxs-create-order.props.autogenerated';\r\nimport { getOrderHistoryPageUrl } from '../../../utilities/get-order-history-page-url';\r\n\r\ninterface IAcknowledgementActionButtonsProps {\r\n context: ICoreContext;\r\n resources: ILxsCreateOrderResources;\r\n}\r\n\r\nconst acknowledgementActionButtons = ({ context, resources }: IAcknowledgementActionButtonsProps) => {\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default acknowledgementActionButtons;\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 { getUrlSync, IActionContext } from '@msdyn365-commerce/core';\r\n\r\n/**\r\n * Retrieves the url for order history page.\r\n * @param actionContext - Core action context.\r\n * @returns Url to order History.\r\n */\r\nexport const getOrderHistoryPageUrl = (actionContext: IActionContext): string => {\r\n return getUrlSync('orders', actionContext) || '';\r\n};\r\n","import React from 'react';\r\nimport { ICoreContext } from '@msdyn365-commerce/core';\r\nimport { formatDate, formatNumber } from '../../../utilities';\r\nimport { ILxsCreateOrderResources } from '../lxs-create-order.props.autogenerated';\r\nimport { IPostCreateOrderResponseData } from '../../../actions/post-create-order.action';\r\nimport { NO_DATA_FALLBACK } from '../../../configuration';\r\n\r\nexport default function orderItems({\r\n context,\r\n itemsData,\r\n resources,\r\n productsHaveEndcustomers\r\n}: {\r\n context: ICoreContext;\r\n itemsData: IPostCreateOrderResponseData;\r\n resources: ILxsCreateOrderResources;\r\n productsHaveEndcustomers: boolean;\r\n}) {\r\n return (\r\n <>\r\n

{resources.createOrderItemsHeading}

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {productsHaveEndcustomers && }\r\n \r\n \r\n \r\n {itemsData?.Order.OrderLines?.map((item, index) => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n {productsHaveEndcustomers && }\r\n \r\n ))}\r\n \r\n
{resources.createOrderItemsTablePosition}{resources.createOrderItemsTableProductName}{resources.createOrderItemsTableProductNumber}{resources.createOrderSelectedProductsTableRequestedDeliveryDate}{resources.createOrderSelectedProductsReqQuantity}{resources.createOrderSelectedProductsTableEndCustomer}
{(index + 1) * 10}{item.ProductName}{item.ProductNumber}{!!item.RequestedDate ? formatDate(context, new Date(item.RequestedDate)) : NO_DATA_FALLBACK}{`${formatNumber(context, Number(item.RequestedQty))} ${item.RequestedUnit}`}{item.EndCustomer}
\r\n
\r\n \r\n );\r\n}\r\n","import React from 'react';\r\nimport { ICoreContext } from '@msdyn365-commerce/core';\r\nimport { ILxsCreateOrderResources } from '../lxs-create-order.props.autogenerated';\r\nimport { OrderInfo } from './order-info';\r\nimport { OrderError } from './order-error';\r\nimport { IPostCreateOrderResponseData } from '../../../actions/post-create-order.action';\r\nimport AcknowledgementActionButtons from '../components/acknowledgement-action-buttons';\r\nimport OrderItems from './acknowledgement-items-table';\r\nimport AddressInformation from '../components/address-information';\r\n\r\ninterface IAcknowledgementProps {\r\n context: ICoreContext;\r\n orderData: IPostCreateOrderResponseData;\r\n resources: ILxsCreateOrderResources;\r\n productsHaveEndcustomers: boolean;\r\n}\r\n\r\nexport default function acknowledgement({ context, orderData, resources, productsHaveEndcustomers }: IAcknowledgementProps) {\r\n return (\r\n
\r\n
\r\n {orderData.Order.OrderNumber === '' ? (\r\n \r\n ) : (\r\n <>\r\n
\r\n

{resources.createOrderConfirmationAlertTitle}

\r\n {resources.createOrderConfirmationAlertHint}\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","import React from 'react';\r\nimport { ILxsCreateOrderResources } from '../lxs-create-order.props.autogenerated';\r\nimport Alert from '../../../components/alert';\r\nimport { IGetCartData } from '../../../actions/get-cart.action';\r\n\r\ninterface MessageViewProps {\r\n cartData: IGetCartData;\r\n resources: ILxsCreateOrderResources;\r\n processStarted: boolean;\r\n isReordering: boolean;\r\n hasNoReorderItems: boolean;\r\n loadSoldTos: () => void;\r\n setCartData: () => void;\r\n}\r\n\r\nconst messageView = ({\r\n cartData,\r\n resources,\r\n processStarted,\r\n isReordering,\r\n hasNoReorderItems,\r\n loadSoldTos,\r\n setCartData\r\n}: MessageViewProps) => {\r\n return (\r\n
\r\n
\r\n {hasNoReorderItems ? (\r\n <>\r\n \r\n \r\n
\r\n \r\n
\r\n \r\n ) : isReordering ? (\r\n <>\r\n \r\n \r\n \r\n ) : !!cartData && cartData['@odata.context'] && !cartData.SoldTo && !processStarted ? (\r\n <>\r\n \r\n \r\n
\r\n \r\n
\r\n \r\n ) : !!cartData && !!cartData['@odata.context'] && !processStarted ? (\r\n <>\r\n \r\n \r\n
\r\n \r\n \r\n
\r\n \r\n ) : null}\r\n
\r\n
\r\n );\r\n};\r\n\r\nexport default messageView;\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\nimport React, { ReactElement, useEffect, useState } from 'react';\r\nimport { ColumnFiltersState } from '@tanstack/react-table';\r\nimport { Module, Node } from '@msdyn365-commerce-modules/utilities';\r\nimport { IHeader, ILxsCreateOrderViewProps } from './lxs-create-order';\r\nimport ProcessBar from './components/process-bar';\r\nimport SoldTos from './components/soldtos';\r\nimport ShipTos from './components/shiptos';\r\nimport { BackButton } from './components/back-button';\r\nimport { OrderHeaderInfo } from './components/order-header-info';\r\nimport Products from './components/products';\r\nimport Overview from './components/overview';\r\nimport Acknowledgement from './components/acknowledgement';\r\nimport Alert from '../../components/alert';\r\nimport MessageView from './components/message-view';\r\nimport {\r\n CREATE_ORDER_COLUMN_INCOTERM,\r\n CREATE_ORDER_COLUMN_SALES_ORG,\r\n CREATE_ORDER_COLUMN_BUSINESS_UNIT,\r\n CREATE_ORDER_COLUMN_SALES_ORG_TEXT,\r\n CREATE_ORDER_COLUMN_DIVISION_TEXT,\r\n CREATE_ORDER_COLUMN_DISTRIBUTION_CHANNEL\r\n} from '../../configuration';\r\nimport { ILxsCreateOrderResources } from './lxs-create-order.props.autogenerated';\r\n\r\nfunction SwitchComponents({ active, children, resources }: { active: any; children: ReactElement[]; resources: ILxsCreateOrderResources }) {\r\n const activeItems = children.filter(child => child.key === active.toString());\r\n return activeItems && activeItems.length ? (\r\n activeItems[0]\r\n ) : (\r\n

\r\n {resources.createOrderNoChildWithKey} “{active}“\r\n

\r\n );\r\n}\r\n\r\nexport const CreateOrderSoldTosHeader: React.FC = ({ headerProps, heading, orderCountLabel, extraActions }) => (\r\n \r\n {heading}\r\n {orderCountLabel}\r\n {extraActions}\r\n \r\n);\r\n\r\nconst CreateOrderView: React.FC = ({\r\n moduleProps,\r\n header,\r\n pageSize,\r\n resources,\r\n context,\r\n soldToData,\r\n shipToData,\r\n productsData,\r\n saveCartError,\r\n confirmedOrderData,\r\n productsHaveEndcustomers,\r\n setSoldTo,\r\n setShipTo,\r\n cartData,\r\n processStarted,\r\n loadSoldTos,\r\n setProducts,\r\n setCartData,\r\n placeOrder,\r\n orderData,\r\n step,\r\n setStep,\r\n hasNoReorderItems,\r\n setOrderHeader\r\n}) => {\r\n const [globalFilter, setGlobalFilter] = useState('');\r\n const [columnFilters, setColumnFilters] = useState([]);\r\n const [isColumnFilterValid, setIsColumnFilterValid] = useState(true);\r\n const [filterDisabled, setFilterDisabled] = useState(false);\r\n const { orderNumber = '' } = context.actionContext.requestContext.query ?? {};\r\n useEffect(() => {\r\n if (orderData.products && orderData.products.length === 0 && filterDisabled) {\r\n setFilterDisabled(false);\r\n setColumnFilters([]);\r\n } else if (orderData.products && orderData.products.length > 0 && !filterDisabled && isColumnFilterValid) {\r\n setColumnFilters([\r\n { id: CREATE_ORDER_COLUMN_SALES_ORG, value: orderData.orderHeader?.SalesOrg },\r\n { id: CREATE_ORDER_COLUMN_SALES_ORG_TEXT, value: orderData.orderHeader?.SalesOrgText },\r\n { id: CREATE_ORDER_COLUMN_BUSINESS_UNIT, value: orderData.orderHeader?.Division },\r\n { id: CREATE_ORDER_COLUMN_DIVISION_TEXT, value: orderData.orderHeader?.DivisionText },\r\n { id: CREATE_ORDER_COLUMN_INCOTERM, value: orderData.orderHeader?.Incoterm1 },\r\n { id: CREATE_ORDER_COLUMN_DISTRIBUTION_CHANNEL, value: orderData.orderHeader?.DistributionChannel }\r\n ]);\r\n setFilterDisabled(true);\r\n }\r\n }, [orderData]);\r\n\r\n useEffect(() => {\r\n if (step > 2) {\r\n setOrderHeader({\r\n ...orderData.orderHeader,\r\n SalesOrg: (columnFilters.find(filter => filter.id === CREATE_ORDER_COLUMN_SALES_ORG)?.value as string) ?? '',\r\n SalesOrgText: (columnFilters.find(filter => filter.id === CREATE_ORDER_COLUMN_SALES_ORG_TEXT)?.value as string) ?? '',\r\n Division: (columnFilters.find(filter => filter.id === CREATE_ORDER_COLUMN_BUSINESS_UNIT)?.value as string) ?? '',\r\n DivisionText: (columnFilters.find(filter => filter.id === CREATE_ORDER_COLUMN_DIVISION_TEXT)?.value as string) ?? '',\r\n Incoterm1: (columnFilters.find(filter => filter.id === CREATE_ORDER_COLUMN_INCOTERM)?.value as string) ?? '',\r\n DistributionChannel:\r\n (columnFilters.find(filter => filter.id === CREATE_ORDER_COLUMN_DISTRIBUTION_CHANNEL)?.value as string) ?? ''\r\n });\r\n }\r\n }, [columnFilters]);\r\n\r\n useEffect(() => {\r\n if (!isColumnFilterValid) {\r\n setColumnFilters([]);\r\n }\r\n }, [isColumnFilterValid]);\r\n\r\n useEffect(() => {\r\n setGlobalFilter('');\r\n }, [step]);\r\n\r\n return (\r\n \r\n {context.actionContext.requestContext.user.isAuthenticated ? (\r\n <>\r\n \r\n\r\n {saveCartError && (\r\n
\r\n
\r\n \r\n
\r\n
\r\n )}\r\n
\r\n
\r\n \r\n {header && }\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 {resources.createOrderLogIn}\r\n \r\n
\r\n )}\r\n
\r\n );\r\n};\r\n\r\nexport default CreateOrderView;\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\n/* eslint-disable no-duplicate-imports */\r\nimport * as Msdyn365 from '@msdyn365-commerce/core';\r\nimport { IModuleProps, INodeProps } from '@msdyn365-commerce-modules/utilities';\r\nimport { toJS } from 'mobx';\r\n\r\nimport classname from 'classnames';\r\nimport { observable, computed } from 'mobx';\r\nimport { observer } from 'mobx-react';\r\nimport * as React from 'react';\r\n\r\nimport { IOrderHistoryData } from './order-history.data';\r\nimport { IOrderHistoryProps } from './order-history.props.autogenerated';\r\nimport { IOrderHistoryTableData } from '../../actions/get-order-history.action';\r\nimport { Toaster, toast } from 'sonner';\r\nimport { ERROR_CODE_SERVER_ERROR_INDEX } from '../../configuration';\r\n\r\nexport interface IHeader {\r\n headerProps: INodeProps;\r\n heading: React.ReactNode;\r\n orderHistoryOrderCountLabel?: React.ReactNode;\r\n extraActions?: React.ReactNode;\r\n}\r\n\r\nexport interface IOrderHistoryViewState {\r\n isDataReady: boolean;\r\n hasError: boolean;\r\n errorCode?: string;\r\n errorMessage?: string;\r\n}\r\n\r\nexport interface IOrderHistoryViewProps extends IOrderHistoryProps {\r\n orderHistoryProps: IModuleProps;\r\n pageSize: number;\r\n emptyMessage?: React.ReactNode;\r\n header: IHeader;\r\n viewState: IOrderHistoryViewState;\r\n orderHistoryTableData: IOrderHistoryTableData[];\r\n props: IOrderHistoryProps;\r\n}\r\n\r\n/**\r\n *\r\n * OrderHistory component.\r\n * @extends {React.Component>}\r\n */\r\n@observer\r\nclass OrderHistory extends React.Component> {\r\n @observable private viewState!: IOrderHistoryViewState;\r\n\r\n @computed\r\n get orderHistoryTableData(): any {\r\n const rawData = this.props.data.getOrderHistory?.result;\r\n if (rawData?.error) {\r\n if (rawData.error.errorCode && Number(String(rawData.error.errorCode).charAt(0)) === ERROR_CODE_SERVER_ERROR_INDEX) {\r\n this._showToast(this.props.resources.globalErrorHeading, this.props.resources.globalErrorServiceNotAvailable);\r\n }\r\n return [] as IOrderHistoryTableData[];\r\n }\r\n return toJS(rawData?.value);\r\n }\r\n private _showToast = (heading: string, description: string) => {\r\n toast.error(\r\n
\r\n
\r\n

{heading}

\r\n \r\n
\r\n
\r\n {description}\r\n
\r\n
\r\n );\r\n };\r\n\r\n public render(): JSX.Element {\r\n const {\r\n config: { heading, pageSize, className },\r\n resources: { orderHistoryNoOrderHistoryLabel }\r\n } = this.props;\r\n\r\n let viewProps: IOrderHistoryViewProps = {\r\n ...this.props,\r\n\r\n viewState: this.viewState,\r\n orderHistoryProps: {\r\n moduleProps: this.props,\r\n className: classname('ms-order-history', className)\r\n },\r\n header: {\r\n headerProps: { className: 'ms-order-history__header' },\r\n heading: heading && heading.text && (\r\n \r\n )\r\n },\r\n pageSize: pageSize || 10,\r\n\r\n orderHistoryTableData: this.orderHistoryTableData,\r\n props: this.props\r\n };\r\n\r\n if (!this.orderHistoryTableData || this.orderHistoryTableData === 0) {\r\n if (this.viewState?.errorCode === 'Microsoft_Dynamics_Commerce_Runtime_AuthorizationFailed') {\r\n viewProps = {\r\n ...viewProps,\r\n emptyMessage:

{this.viewState.errorMessage}

\r\n };\r\n } else {\r\n viewProps = {\r\n ...viewProps,\r\n emptyMessage:

{orderHistoryNoOrderHistoryLabel}

\r\n };\r\n }\r\n }\r\n\r\n return (\r\n <>\r\n \r\n {this.props.renderView(viewProps) as React.ReactElement}\r\n \r\n );\r\n }\r\n\r\n public handleOrderHistoryHeadingChange = (event: Msdyn365.ContentEditableEvent) =>\r\n (this.props.config.heading!.text = event.target.value);\r\n}\r\n\r\nexport default OrderHistory;\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\n/* eslint-disable no-duplicate-imports */\r\nimport { getUrlSync, IActionContext } from '@msdyn365-commerce/core';\r\n\r\n/**\r\n * Retrieves the url for order details page.\r\n * @param actionContext - Core action context.\r\n * @param salesOrder - Order information.\r\n * @returns Url to order details.\r\n */\r\nexport const getOrderDetailsPageUrl = (actionContext: IActionContext, salesNumber: number): string => {\r\n const orderDetailsUrl = getUrlSync('orderDetails', actionContext) || '';\r\n const separator = orderDetailsUrl.includes('?') ? '&' : '?';\r\n return `${orderDetailsUrl}${separator}transactionId=${salesNumber}`;\r\n};\r\n","import React, { useCallback, useState } from 'react';\r\nimport { DEBOUNCE_INPUT_DELAY } from '../../../configuration';\r\n\r\nexport const DebouncedInput: React.FC = React.memo(\r\n ({ resources, value: initialValue, onChange, debounce = DEBOUNCE_INPUT_DELAY, ...props }) => {\r\n const [value, setValue] = useState(initialValue);\r\n const handleChange = useCallback(\r\n (e: React.ChangeEvent) => {\r\n const currentValue = e.target.value;\r\n setValue(currentValue);\r\n const timeoutId = setTimeout(() => onChange(currentValue), debounce);\r\n return () => clearTimeout(timeoutId);\r\n },\r\n [onChange, debounce]\r\n );\r\n return ;\r\n }\r\n);\r\n","import React from 'react';\r\nimport { IOrderHistoryResources } from './../order-history.props.autogenerated';\r\nimport { DebouncedInput } from './debounced-input';\r\n\r\nexport default function({\r\n globalFilter,\r\n setGlobalFilter,\r\n resources\r\n}: {\r\n globalFilter: string;\r\n setGlobalFilter: React.Dispatch>;\r\n resources: IOrderHistoryResources;\r\n}) {\r\n return (\r\n
\r\n

{resources.orderHistorySearchHeading}

\r\n
\r\n \r\n setGlobalFilter(String(value))}\r\n placeholder={resources.orderHistorySearchPlaceholder}\r\n resources={resources}\r\n />\r\n
\r\n
\r\n );\r\n}\r\n","import React, { Dispatch, SetStateAction, useEffect, useMemo, useState } from 'react';\r\n\r\nimport {\r\n useReactTable,\r\n ColumnFiltersState,\r\n getCoreRowModel,\r\n getFilteredRowModel,\r\n getFacetedRowModel,\r\n getFacetedUniqueValues,\r\n getFacetedMinMaxValues,\r\n getPaginationRowModel,\r\n getSortedRowModel,\r\n FilterFn,\r\n ColumnDef,\r\n flexRender,\r\n getExpandedRowModel,\r\n Table,\r\n ColumnFilter\r\n} from '@tanstack/react-table';\r\nimport { ICoreContext } from '@msdyn365-commerce/core';\r\nimport {\r\n formatDate,\r\n formatCurrency,\r\n formatNumber,\r\n mapOverallStatus,\r\n mapItemStatusCodeToText,\r\n formatOverallStatusCodeForTooltip,\r\n formatStatusCodeForTooltip\r\n} from '../../../utilities';\r\nimport { getOrderDetailsPageUrl } from '../../../utilities/get-order-details-page-url';\r\nimport {\r\n MULTI_VALUE_SEPARATOR,\r\n NO_DATA_FALLBACK,\r\n ORDER_HISTORY_FILTER_CREATED_ON,\r\n ORDER_HISTORY_FILTER_FROM_DATE,\r\n ORDER_HISTORY_FILTER_FULLNAME,\r\n ORDER_HISTORY_FILTER_STATUS,\r\n ORDER_HISTORY_FILTER_TO_DATE,\r\n ORDER_HISTORY_COLUMN_ORDER_NUMBER,\r\n ORDER_HISTORY_COLUMN_ACTION,\r\n ORDER_HISTORY_COLUMN_PO_NUMBER,\r\n ORDER_HISTORY_COLUMN_SOLD_TO_NAME,\r\n ORDER_HISTORY_COLUMN_SHIP_TO_NAME,\r\n OrderStatus\r\n} from '../../../configuration';\r\nimport Tooltip from '../../../components/tooltip';\r\nimport SearchBox from './search-box';\r\nimport { IOrderHistoryResources } from '../order-history.props.autogenerated';\r\nimport { IOrderHistoryTableData, IOrderHistorySchedulLine, IOrderHistoryLine } from '../../../actions/get-order-history.action';\r\n\r\nexport default function CreateOrderTable({\r\n resources,\r\n context,\r\n globalFilter,\r\n setGlobalFilter,\r\n orderHistoryTableData,\r\n pageSize\r\n}: {\r\n resources: IOrderHistoryResources;\r\n context: ICoreContext;\r\n globalFilter: string;\r\n setGlobalFilter: Dispatch>;\r\n orderHistoryTableData: IOrderHistoryTableData[];\r\n pageSize: number;\r\n props?: IOrderHistoryTableData;\r\n}) {\r\n /*\r\n * Sample filter function for multiple values.\r\n * Use for later reference.\r\n */\r\n const multiSelectFilter: FilterFn = (row, columnId, value) => {\r\n const currentValue = mapOverallStatus(resources).getText(row.getValue(columnId));\r\n const selectedValues = value.split(MULTI_VALUE_SEPARATOR);\r\n return selectedValues.includes(currentValue);\r\n };\r\n\r\n /*\r\n * Sample filter function for date ranges.\r\n * Use for later reference.\r\n */\r\n const dateRangeFilter: FilterFn = (row, columnId, value) => {\r\n const currentValue = row.getValue(columnId);\r\n const [from, to] = value;\r\n return (\r\n (!from || new Date(from).getTime() <= new Date(currentValue.split('T')[0]).getTime()) &&\r\n (!to || new Date(currentValue.split('T')[0]).getTime() <= new Date(to).getTime())\r\n );\r\n };\r\n const [expanded, setExpanded] = useState({});\r\n\r\n const [searchTerm, setSearchTerm] = useState(false);\r\n\r\n const [pageIndex, setPageIndex] = useState(0);\r\n\r\n const [columnFilters, setColumnFilters] = useState([]);\r\n\r\n const columns = useMemo[]>(\r\n () => [\r\n {\r\n accessorFn: row => row.OrderNumber,\r\n id: ORDER_HISTORY_COLUMN_ORDER_NUMBER,\r\n header: resources.orderHistoryOrderNumberText,\r\n cell: info => {\r\n if (info.row.original.Status === OrderStatus.Queued) {\r\n return flexRender(highlightSearchTerm(String(info.getValue()), globalFilter), info);\r\n }\r\n return flexRender(\r\n \r\n {highlightSearchTerm(String(info.getValue()), globalFilter)}\r\n ,\r\n info\r\n );\r\n },\r\n footer: props => props.column.id\r\n },\r\n {\r\n accessorFn: row => row.PoNumber,\r\n id: ORDER_HISTORY_COLUMN_PO_NUMBER,\r\n cell: info => highlightSearchTerm(String(info.getValue()), globalFilter),\r\n header: () => resources.orderHistorySalesOrderPONumber,\r\n footer: props => props.column.id\r\n },\r\n {\r\n accessorFn: row => row.ConfirmedDate,\r\n id: ORDER_HISTORY_FILTER_CREATED_ON,\r\n header: resources.orderHistorySalesOrderCreatedOn,\r\n cell: info => formatDate(context, new Date(info.getValue())),\r\n footer: props => props.column.id,\r\n filterFn: dateRangeFilter\r\n },\r\n {\r\n accessorFn: row => row.Status,\r\n id: ORDER_HISTORY_FILTER_STATUS,\r\n cell: info => highlightSearchTerm(mapOverallStatus(resources).getText(String(info.getValue())), globalFilter),\r\n header: () => (\r\n \r\n ),\r\n footer: props => props.column.id,\r\n filterFn: multiSelectFilter\r\n },\r\n {\r\n accessorFn: row => row.SoldToName,\r\n id: ORDER_HISTORY_COLUMN_SOLD_TO_NAME,\r\n cell: info => highlightSearchTerm(String(info.getValue()), globalFilter),\r\n header: () => resources.orderHistorySalesOrderSoldTo,\r\n footer: props => props.column.id\r\n },\r\n {\r\n accessorFn: row => row.ShipToName,\r\n id: ORDER_HISTORY_COLUMN_SHIP_TO_NAME,\r\n cell: info => highlightSearchTerm(String(info.getValue()), globalFilter),\r\n header: () => resources.orderHistorySalesOrderShipTo,\r\n footer: props => props.column.id\r\n },\r\n {\r\n id: ORDER_HISTORY_COLUMN_ACTION,\r\n cell: info => info.getValue() ?? NO_DATA_FALLBACK,\r\n header: () => resources.orderHistorySalesOrderAction,\r\n footer: props => props.column.id,\r\n enableSorting: false\r\n }\r\n ],\r\n [globalFilter]\r\n );\r\n\r\n const highlightSearchTerm = (text: string, searchTerm: string): JSX.Element => {\r\n if (!searchTerm.trim()) {\r\n return {text};\r\n }\r\n const parts = text?.split(new RegExp(`(${searchTerm})`, 'gi'));\r\n\r\n return (\r\n \r\n {parts.map((part, index) =>\r\n part.toLowerCase() === searchTerm.toLowerCase() ? (\r\n \r\n {part}\r\n \r\n ) : (\r\n part\r\n )\r\n )}\r\n \r\n );\r\n };\r\n\r\n // Filter function to search for all order items based on user input\r\n const customGlobalFilter: FilterFn = (row, _, filterValue) => {\r\n let highlightRow = false;\r\n\r\n filterValue !== '' && setSearchTerm(true);\r\n\r\n // Check for top-level properties\r\n const inMainData = Object.entries(row.original).some(([key, value]) => {\r\n if (typeof value === 'string') {\r\n if (key === 'Status') {\r\n const mappedValue = mapOverallStatus(resources).getText(value);\r\n return mappedValue.toLowerCase().includes(filterValue.toLowerCase());\r\n } else {\r\n return value.toLowerCase().includes(filterValue.toLowerCase());\r\n }\r\n }\r\n return false;\r\n });\r\n\r\n if (inMainData) {\r\n highlightRow = true;\r\n }\r\n\r\n // Check for OrderLines inside the top-level items\r\n const inOrderLines = row.original.OrderLines.some(orderLine => {\r\n return Object.entries(orderLine).some(([key, value]) => {\r\n const mappedValue = typeof value === 'string' && key === 'Status' ? mapItemStatusCodeToText(value, resources) : value;\r\n const match = mappedValue\r\n .toString()\r\n .toLowerCase()\r\n .includes(filterValue.toLowerCase());\r\n if (match) {\r\n highlightRow = true;\r\n }\r\n return match;\r\n });\r\n });\r\n\r\n row.original.highlight = highlightRow;\r\n row.original.highlightOrderLines = inOrderLines;\r\n\r\n return highlightRow || inOrderLines;\r\n };\r\n\r\n const [data] = useState(orderHistoryTableData);\r\n\r\n const defaultSorting = useMemo(\r\n () => [\r\n {\r\n id: ORDER_HISTORY_FILTER_CREATED_ON,\r\n desc: true\r\n },\r\n {\r\n id: ORDER_HISTORY_COLUMN_ORDER_NUMBER,\r\n desc: true\r\n }\r\n ],\r\n []\r\n );\r\n\r\n const table = useReactTable({\r\n data,\r\n columns,\r\n filterFns: {},\r\n initialState: { sorting: defaultSorting },\r\n state: {\r\n expanded,\r\n columnFilters,\r\n globalFilter,\r\n pagination: {\r\n pageIndex: pageIndex,\r\n pageSize: pageSize\r\n }\r\n },\r\n onColumnFiltersChange: setColumnFilters,\r\n onGlobalFilterChange: setGlobalFilter,\r\n globalFilterFn: customGlobalFilter,\r\n getCoreRowModel: getCoreRowModel(),\r\n getExpandedRowModel: getExpandedRowModel(),\r\n getFilteredRowModel: getFilteredRowModel(),\r\n getSortedRowModel: getSortedRowModel(),\r\n getPaginationRowModel: getPaginationRowModel(),\r\n getFacetedRowModel: getFacetedRowModel(),\r\n getFacetedUniqueValues: getFacetedUniqueValues(),\r\n getFacetedMinMaxValues: getFacetedMinMaxValues(),\r\n debugTable: false,\r\n debugHeaders: false,\r\n debugColumns: false\r\n });\r\n\r\n const totalEntries = table.getFilteredRowModel().rows.length;\r\n\r\n const addUrlDateParameter = (paramName: string, paramValue: string) => {\r\n const currentUrl = new URL(window.location.href);\r\n currentUrl.searchParams.set(paramName, paramValue);\r\n window.history.pushState({}, '', (currentUrl as unknown) as string);\r\n };\r\n\r\n const removeUrlParameter = (paramName: string) => {\r\n const currentUrl = new URL(window.location.href);\r\n currentUrl.searchParams.delete(paramName);\r\n window.history.pushState({}, '', (currentUrl as unknown) as string);\r\n setExpanded({});\r\n };\r\n\r\n const addUrlStatusParameter = (values: string[]) => {\r\n const currentUrl = new URL(window.location.href);\r\n currentUrl.searchParams.delete(ORDER_HISTORY_FILTER_STATUS);\r\n values.forEach(val => currentUrl.searchParams.append(ORDER_HISTORY_FILTER_STATUS, val));\r\n window.history.pushState({}, '', (currentUrl as unknown) as string);\r\n };\r\n\r\n useEffect(() => {\r\n if (table.getState().columnFilters[0]?.id === ORDER_HISTORY_FILTER_FULLNAME) {\r\n if (table.getState().sorting[0]?.id !== ORDER_HISTORY_FILTER_FULLNAME) {\r\n table.setSorting([{ id: ORDER_HISTORY_FILTER_FULLNAME, desc: false }]);\r\n }\r\n }\r\n }, [table.getState().columnFilters[0]?.id]);\r\n\r\n useEffect(() => {\r\n const url = new URL(window.location.href);\r\n const fromDate = url.searchParams.get(ORDER_HISTORY_FILTER_FROM_DATE) ?? '';\r\n const toDate = url.searchParams.get(ORDER_HISTORY_FILTER_TO_DATE) ?? '';\r\n const filters = [];\r\n if (fromDate || toDate) {\r\n filters.push({ id: ORDER_HISTORY_FILTER_CREATED_ON, value: [fromDate, toDate] });\r\n }\r\n const status = url.searchParams.getAll(ORDER_HISTORY_FILTER_STATUS);\r\n\r\n /**\r\n * Filter out invalid status codes, to prevent adding them to the filter state.\r\n */\r\n const validStatus = status.filter(code => mapOverallStatus(resources).getCodeExists(code));\r\n\r\n if (validStatus.length > 0) {\r\n filters.push({\r\n id: ORDER_HISTORY_FILTER_STATUS,\r\n value: validStatus\r\n .map(code => {\r\n return mapOverallStatus(resources).getText(code);\r\n })\r\n .join(MULTI_VALUE_SEPARATOR)\r\n });\r\n }\r\n\r\n /**\r\n * If the URL contains invalid status codes, update the URL to remove them.\r\n */\r\n if (validStatus.length !== status.length) {\r\n addUrlStatusParameter(validStatus);\r\n }\r\n\r\n setColumnFilters(filters);\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (searchTerm && !globalFilter) {\r\n setSearchTerm(false);\r\n setExpanded({});\r\n }\r\n\r\n setPageIndex(0);\r\n }, [globalFilter, columnFilters]);\r\n\r\n const ActiveFiltersDisplay = ({ columnFilters }: { columnFilters: ColumnFiltersState }) => {\r\n return (\r\n
\r\n
{resources.orderHistoryActiveFilterHeading}
\r\n\r\n {columnFilters.map((filter: ColumnFilter, index: number) => (\r\n
\r\n {filter.id === ORDER_HISTORY_FILTER_STATUS ? (\r\n <>\r\n {resources.orderHistoryFilterStatusLegend}\r\n
\r\n {(filter.value as string).split(MULTI_VALUE_SEPARATOR).map((value: string) => (\r\n
\r\n {value}\r\n {\r\n const newFilters = columnFilters.find(\r\n (item: ColumnFilter) => item.id === ORDER_HISTORY_FILTER_STATUS\r\n );\r\n if (newFilters) {\r\n const separatedFilter = (newFilters.value as string).split(MULTI_VALUE_SEPARATOR);\r\n separatedFilter.splice(\r\n separatedFilter.findIndex(i => i === value),\r\n 1\r\n );\r\n const key = mapOverallStatus(resources).getCode(value);\r\n const currentUrl = new URL(window.location.href);\r\n const status = currentUrl.searchParams.getAll(ORDER_HISTORY_FILTER_STATUS);\r\n addUrlStatusParameter(status.filter((val: string) => val !== key));\r\n const concatenatedFilter = separatedFilter.join(MULTI_VALUE_SEPARATOR);\r\n if (concatenatedFilter) {\r\n setColumnFilters([\r\n ...columnFilters.filter(fil => fil.id !== ORDER_HISTORY_FILTER_STATUS),\r\n { id: ORDER_HISTORY_FILTER_STATUS, value: concatenatedFilter }\r\n ]);\r\n } else {\r\n setColumnFilters(\r\n columnFilters.filter(fil => fil.id !== ORDER_HISTORY_FILTER_STATUS)\r\n );\r\n }\r\n }\r\n }}\r\n className='ms-order-history__active-filter-item-remove-button'\r\n >\r\n
\r\n ))}\r\n
\r\n \r\n ) : filter.id === ORDER_HISTORY_FILTER_CREATED_ON ? (\r\n (filter.value as string[]).map((date, index) => {\r\n if (date === '') {\r\n return null;\r\n }\r\n return (\r\n <>\r\n \r\n {index === 0 ? resources.orderHistoryFilterFrom : resources.orderHistoryFilterTo}\r\n \r\n
\r\n
\r\n {formatDate(context, new Date(date))}\r\n {\r\n const newFilters = columnFilters.find(\r\n (item: ColumnFilter) => item.id === ORDER_HISTORY_FILTER_CREATED_ON\r\n );\r\n if (newFilters) {\r\n (newFilters.value as string[]).splice(index, 1, '');\r\n if ((newFilters.value as string[])[0] === '') {\r\n removeUrlParameter(ORDER_HISTORY_FILTER_FROM_DATE);\r\n }\r\n if ((newFilters.value as string[])[1] === '') {\r\n removeUrlParameter(ORDER_HISTORY_FILTER_TO_DATE);\r\n }\r\n if (newFilters && (newFilters.value as string[]).some(val => val !== '')) {\r\n setColumnFilters([\r\n ...columnFilters.filter(\r\n fil => fil.id !== ORDER_HISTORY_FILTER_CREATED_ON\r\n ),\r\n { id: ORDER_HISTORY_FILTER_CREATED_ON, value: newFilters.value }\r\n ]);\r\n } else {\r\n setColumnFilters(\r\n columnFilters.filter(fil => fil.id !== ORDER_HISTORY_FILTER_CREATED_ON)\r\n );\r\n }\r\n }\r\n }}\r\n className='ms-order-history__active-filter-item-remove-button'\r\n >\r\n
\r\n
\r\n \r\n );\r\n })\r\n ) : (\r\n <>\r\n {filter.id}\r\n
\r\n
\r\n {filter.value}\r\n {\r\n setColumnFilters(columnFilters.filter((item: ColumnFilter) => item !== filter));\r\n }}\r\n className='ms-order-history__active-filter-item-remove-button'\r\n >\r\n
\r\n
\r\n \r\n )}\r\n
\r\n ))}\r\n
\r\n );\r\n };\r\n\r\n const ResetFilters = () => {\r\n setColumnFilters([]);\r\n removeUrlParameter(ORDER_HISTORY_FILTER_FROM_DATE);\r\n removeUrlParameter(ORDER_HISTORY_FILTER_TO_DATE);\r\n removeUrlParameter(ORDER_HISTORY_FILTER_STATUS);\r\n };\r\n /*\r\n * Allows to filter table column specific externally.\r\n * Use for later reference.\r\n */\r\n function FilterBox({ table }: { table: Table }) {\r\n const createdOnColumn = table.getColumn(ORDER_HISTORY_FILTER_CREATED_ON);\r\n const dateValue = createdOnColumn?.getFilterValue();\r\n const [from, to] = (dateValue as string[]) || ['', ''];\r\n const statusColumn = table.getColumn(ORDER_HISTORY_FILTER_STATUS);\r\n const uniqueVals = statusColumn?.getFacetedUniqueValues();\r\n const uniqueKeys = Array.from(uniqueVals?.keys() || []).sort();\r\n const setMultiValue = (input: HTMLInputElement, column: any) => {\r\n const currentUrl = new URL(window.location.href);\r\n const status = currentUrl.searchParams.getAll(ORDER_HISTORY_FILTER_STATUS);\r\n const value = mapOverallStatus(resources).getText(input.value);\r\n let values = [...(column?.getFilterValue() ? column?.getFilterValue().split(MULTI_VALUE_SEPARATOR) : [])];\r\n if (input.checked && !values.includes(value)) {\r\n values.push(value);\r\n addUrlStatusParameter([...status, input.value]);\r\n } else {\r\n values = values.filter((val: string) => val !== value);\r\n addUrlStatusParameter(status.filter((val: string) => val !== input.value));\r\n setExpanded({});\r\n }\r\n column?.setFilterValue(values.sort().join(MULTI_VALUE_SEPARATOR));\r\n };\r\n const setDateValue = (column: any, from: string, to: string) => {\r\n column?.setFilterValue([from, to]);\r\n };\r\n\r\n const [selectedFromDate, setSelectedFromDate] = useState(from);\r\n const [selectedToDate, setSelectedToDate] = useState(to);\r\n\r\n return (\r\n
\r\n

{resources.orderHistoryFilterHeading}

\r\n\r\n \r\n \r\n
\r\n {resources.orderHistoryFilterTimeframeLegend}\r\n
\r\n
\r\n \r\n {\r\n setSelectedFromDate(e.target.value);\r\n }}\r\n onBlur={() => {\r\n setDateValue(createdOnColumn, selectedFromDate, to);\r\n addUrlDateParameter(ORDER_HISTORY_FILTER_FROM_DATE, selectedFromDate);\r\n }}\r\n max={\r\n (columnFilters.find(item => item.id === ORDER_HISTORY_FILTER_CREATED_ON)?.value as string[])[1] ?? undefined\r\n }\r\n />\r\n
\r\n
\r\n \r\n item.id === ORDER_HISTORY_FILTER_CREATED_ON)?.value as string[])[0] ?? undefined\r\n }\r\n onChange={e => setSelectedToDate(e.target.value)}\r\n onBlur={() => {\r\n setDateValue(createdOnColumn, from, selectedToDate);\r\n addUrlDateParameter(ORDER_HISTORY_FILTER_TO_DATE, selectedToDate);\r\n }}\r\n />\r\n
\r\n
\r\n {uniqueKeys.length > 0 && (\r\n \r\n
\r\n
\r\n {resources.orderHistoryFilterStatusLegend}\r\n {uniqueKeys.map(key => (\r\n
\r\n \r\n
\r\n ))}\r\n
\r\n
\r\n )}\r\n
\r\n );\r\n }\r\n\r\n return (\r\n <>\r\n
\r\n
\r\n

\r\n {totalEntries} {resources.orderHistoryTotalNumberOfOrders}\r\n

\r\n\r\n
\r\n \r\n \r\n {table.getHeaderGroups().map(headerGroup => (\r\n \r\n {headerGroup.headers.map(header => {\r\n const sortValue =\r\n { asc: 'msc-table-sorting--asc', desc: 'msc-table-sorting--desc' }[\r\n header.column.getIsSorted() as string\r\n ] ?? null;\r\n return (\r\n \r\n );\r\n })}\r\n \r\n ))}\r\n \r\n \r\n {/* TODO: better to check against value array from endpoint response? */}\r\n {orderHistoryTableData.length === 0 ? (\r\n \r\n ) : table.getRowModel().rows.length === 0 ? (\r\n \r\n ) : (\r\n table.getRowModel().rows.map(row => (\r\n \r\n \r\n {row.getVisibleCells().map(cell => {\r\n const highlightClass =\r\n cell.column.id === ORDER_HISTORY_COLUMN_ACTION &&\r\n row.original.highlightOrderLines &&\r\n globalFilter !== ''\r\n ? 'ms-order-history__highlight-search-term'\r\n : '';\r\n if (cell.column.id === ORDER_HISTORY_COLUMN_ACTION) {\r\n return (\r\n \r\n cell.column.id === ORDER_HISTORY_COLUMN_ACTION &&\r\n setExpanded(old => ({ ...old, [row.id]: !old[row.id] }))\r\n }\r\n >\r\n \r\n \r\n {resources.orderHistoryDetailsFindLines}\r\n \r\n \r\n \r\n );\r\n } else {\r\n return (\r\n \r\n );\r\n }\r\n })}\r\n \r\n {row.getIsExpanded() && (\r\n \r\n \r\n \r\n )}\r\n \r\n ))\r\n )}\r\n \r\n
\r\n {header.isPlaceholder ? null : (\r\n <>\r\n \r\n {flexRender(header.column.columnDef.header, header.getContext())}\r\n \r\n \r\n )}\r\n
\r\n
\r\n \r\n {resources.orderHistoryNoDataMessageHeading}\r\n \r\n
\r\n

{resources.orderHistoryNoDataMessage}

\r\n
\r\n
\r\n \r\n {resources.orderHistoryEmptyTableMessageHeading}\r\n \r\n
\r\n

{resources.orderHistoryEmptyTableMessage}

\r\n
\r\n {flexRender(cell.column.columnDef.cell, cell.getContext())}\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 {row.original.OrderLines.map(\r\n (orderLine: IOrderHistoryLine, index: number) => {\r\n return (\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
{resources.orderHistoryDetailsLineNumber}{resources.orderHistoryDetailsProductName}\r\n \r\n {resources.orderHistoryDetailsRequestedDate}{resources.orderHistoryDetailsConfirmedDate}{resources.orderHistoryDetailsRequestedQuantity}{resources.orderHistoryDetailsConfirmedQuantity}\r\n \r\n
\r\n {highlightSearchTerm(\r\n orderLine.LineNumber,\r\n globalFilter ?? ''\r\n )}\r\n \r\n {highlightSearchTerm(\r\n orderLine.ProductName,\r\n globalFilter ?? ''\r\n )}\r\n \r\n {highlightSearchTerm(\r\n mapItemStatusCodeToText(\r\n orderLine.Status,\r\n resources\r\n ),\r\n globalFilter ?? ''\r\n )}\r\n \r\n {orderLine.RequestedDate &&\r\n formatDate(\r\n context,\r\n new Date(orderLine.RequestedDate)\r\n )}\r\n \r\n {orderLine.ScheduleLines.map(\r\n (\r\n sLine: IOrderHistorySchedulLine,\r\n index: number\r\n ) => {\r\n return (\r\n \r\n {sLine.ConfirmedDate &&\r\n formatDate(\r\n context,\r\n new Date(\r\n sLine.ConfirmedDate\r\n )\r\n )}\r\n \r\n );\r\n }\r\n )}\r\n \r\n \r\n {highlightSearchTerm(\r\n formatNumber(\r\n context,\r\n Number(orderLine.RequestedQty)\r\n ),\r\n globalFilter ?? ''\r\n )}\r\n {` ${orderLine.RequestedUnit}`}\r\n \r\n \r\n {orderLine.ScheduleLines.map(\r\n (sLine: IOrderHistorySchedulLine) => {\r\n return (\r\n \r\n {highlightSearchTerm(\r\n formatNumber(\r\n context,\r\n Number(\r\n sLine.ConfirmedQty\r\n )\r\n ),\r\n globalFilter ?? ''\r\n )}\r\n {` ${sLine.ConfirmedUnit}`}\r\n \r\n );\r\n }\r\n )}\r\n \r\n {orderLine.Currency\r\n ? formatCurrency(\r\n context,\r\n orderLine.Currency,\r\n Number(orderLine.NetValue)\r\n )\r\n : NO_DATA_FALLBACK}\r\n
\r\n
\r\n
\r\n
\r\n {totalEntries > 0 && totalEntries > pageSize && (\r\n
\r\n setPageIndex(pageIndex - 1)}\r\n disabled={!table.getCanPreviousPage()}\r\n >\r\n \r\n {table.getState().pagination.pageIndex + 1} / {table.getPageCount()}\r\n \r\n setPageIndex(pageIndex + 1)}\r\n disabled={!table.getCanNextPage()}\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 * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\n\r\n/* eslint-disable no-duplicate-imports */\r\nimport { Module, Node } from '@msdyn365-commerce-modules/utilities';\r\nimport * as React from 'react';\r\n\r\nimport { IGroup, IGroupDelivery, IGroups } from '@msdyn365-commerce-modules/order-management';\r\nimport { IOrderInformation } from '@msdyn365-commerce-modules/order-management';\r\nimport { ISalesLine } from '@msdyn365-commerce-modules/order-management';\r\nimport { IHeader, IOrderHistoryViewProps } from './order-history';\r\nimport OrderHistory from './components/order-history-table';\r\nimport Alert from '../../components/alert';\r\n\r\nexport const OrderHistoryOrderInfomation: React.FC = ({\r\n orderInformationProps,\r\n salesId,\r\n receiptId,\r\n channelName,\r\n createdDate,\r\n count,\r\n amount,\r\n channelReferenceId\r\n}) => (\r\n \r\n {channelName}\r\n {salesId}\r\n {receiptId}\r\n {createdDate}\r\n {count}\r\n {amount}\r\n {channelReferenceId}\r\n \r\n);\r\n\r\nexport const OrderHistoryGroupDelivery: React.FC = ({\r\n deliveryProps,\r\n heading,\r\n count,\r\n processing,\r\n address,\r\n trackingInfo\r\n}) => (\r\n \r\n {heading}\r\n {count}\r\n {processing}\r\n {address}\r\n {trackingInfo}\r\n \r\n);\r\n\r\nexport const OrderHistoryGroup: React.FC = ({ groupProps, delivery, salesLinesProps, salesLines }) => (\r\n \r\n {delivery && }\r\n {salesLines && (\r\n \r\n {salesLines.map((salesLine: ISalesLine) => (\r\n {salesLine.salesLine}\r\n ))}\r\n \r\n )}\r\n \r\n);\r\n\r\nexport const OrderHistoryGroups: React.FC = ({ groupsProps, groups }) => (\r\n \r\n {groups.map((group: IGroup, index: number) => (\r\n \r\n ))}\r\n \r\n);\r\n\r\nexport const OrderHistoryHeader: React.FC = ({ headerProps, heading, orderHistoryOrderCountLabel, extraActions }) => (\r\n \r\n {heading}\r\n {orderHistoryOrderCountLabel}\r\n {extraActions}\r\n \r\n);\r\n\r\nconst OrderHistoryView: React.FC = ({\r\n orderHistoryProps,\r\n header,\r\n pageSize,\r\n resources,\r\n context,\r\n orderHistoryTableData\r\n}) => {\r\n const [globalFilter, setGlobalFilter] = React.useState('');\r\n\r\n return (\r\n \r\n {context.actionContext.requestContext.user.isAuthenticated ? (\r\n <>\r\n {header && }\r\n\r\n \r\n \r\n ) : (\r\n <>\r\n
\r\n \r\n {\r\n \r\n }\r\n \r\n {resources.orderHistoryLogIn}\r\n \r\n
\r\n \r\n )}\r\n
\r\n );\r\n};\r\n\r\nexport default OrderHistoryView;\r\n","export const formatAddress = (address: any): string[] => {\r\n const keys = new Array(9).fill(0).map((_, i) => `ShortAddress${i + 1}`);\r\n\r\n return Object.keys(address)\r\n .filter(key => keys.includes(key))\r\n .reduce((acc, key) => {\r\n if (!!address[String(key)]) {\r\n acc.push(address[String(key)] as string);\r\n }\r\n return acc;\r\n }, [] as string[]);\r\n};\r\n","export const convertHtmlToPlainText = (string: string): string => {\r\n const stringWithoutHtml = string.replace(/<\\/?[^>]+(>|$)/g, ''); // remove HTML tags\r\n return stringWithoutHtml;\r\n};\r\n","export const convertSapToHtmlLinebreaks = (string: string): string => {\r\n const convertedContent = string.replace(/(\\\\n)/g, '
');\r\n\r\n return convertedContent;\r\n};\r\n","export const convertSapToNewlineLinebreaks = (string: string): string => {\r\n const convertedContent = string.replace(/(\\\\n)/g, '\\n');\r\n\r\n return convertedContent;\r\n};\r\n","export const convertNewlineToSapLinebreaks = (string: string): string => {\r\n const convertedContent = string.replace(/(\\r\\n|\\n|\\r)/gm, '\\\\n');\r\n\r\n return convertedContent;\r\n};\r\n","import { CultureInfoFormatter, ICoreContext } from '@msdyn365-commerce/core';\r\n\r\n/**\r\n * Get the formatted currency.\r\n * @param props - The props.\r\n * @param price - The price.\r\n * @param shouldUseFreePriceText - The shouldUseFreePriceText.\r\n * @returns The formatted currency.\r\n */\r\nexport const formatCurrency = (context: ICoreContext, currency: string | undefined, price: number | undefined): string => {\r\n if (price === undefined || currency === undefined) {\r\n return '';\r\n }\r\n\r\n const cultureInfoFormatter = new CultureInfoFormatter(context.request.locale, currency);\r\n\r\n return cultureInfoFormatter.formatCurrency(price);\r\n};\r\n","import { ICoreContext, IDateFormatOptions } from '@msdyn365-commerce/core';\r\n\r\n/**\r\n * Formats date.\r\n * @param context - Core context.\r\n * @param date - Date to display.\r\n * @returns String value.\r\n */\r\n// Example usage: formatDate(this.props.context, new Date(CreatedDate)\r\n\r\nexport const formatDate = (context: ICoreContext, date: Date | undefined) => {\r\n if (date === undefined) {\r\n return '';\r\n }\r\n\r\n const dateOptions: IDateFormatOptions = { year: 'numeric', month: 'numeric', day: 'numeric' };\r\n return context.cultureFormatter.formatDate(date, dateOptions);\r\n};\r\n","import { ICoreContext } from '@msdyn365-commerce/core';\r\n\r\n/**\r\n * Formats a number.\r\n * @param context - Core context.\r\n * @param date - Number to display.\r\n * @returns String value.\r\n */\r\n// Example usage: formatNumber(this.props.context, new Date(CreatedDate)\r\n\r\nexport const formatNumber = (context: ICoreContext, number: number | undefined) => {\r\n if (number === undefined) {\r\n return '';\r\n }\r\n\r\n /**\r\n * don't do this, since it adds separators in unwanted places\r\n const numberOptions: INumberFormatOptions = { style: 'decimal' };\r\n const formattedNumber = context.cultureFormatter.formatNumber(number, numberOptions);\r\n //const formattedNumber = number.toString().replace(/\\.\\d+$/, '');\r\n */\r\n // Simply drop decimal points and convert to string\r\n return Math.trunc(number).toString();\r\n};\r\n","import { ICoreContext, ITimeFormatOptions } from '@msdyn365-commerce/core';\r\n\r\n/**\r\n * Formats time.\r\n * @param context - Core context.\r\n * @param time - Time to display.\r\n * @returns String value.\r\n */\r\n// Example usage: formatTime(this.props.context, new Date(CreatedTime)\r\n\r\nexport const formatTime = (context: ICoreContext, time: Date | undefined) => {\r\n if (time === undefined) {\r\n return '';\r\n }\r\n\r\n const timeOptions: ITimeFormatOptions = { hour: 'numeric', minute: 'numeric', second: 'numeric', timeZone: 'UTC' };\r\n return context.cultureFormatter.formatDate(time, timeOptions);\r\n};\r\n","/**\r\n * Map Item Status Code To Text.\r\n * @param code - String mapping code.\r\n * @param resources - Object with translation keys.\r\n * @returns String value.\r\n */\r\n\r\nexport const mapItemStatusCodeToText = (code: string, resources: any): string => {\r\n switch (code) {\r\n case '00':\r\n return resources.globalStatusItemUnknown;\r\n case '05':\r\n return resources.globalStatusItemQueued;\r\n case '10':\r\n return resources.globalStatusItemSubmitted;\r\n case '20':\r\n return resources.globalStatusItemItemCanceled;\r\n case '30':\r\n return resources.globalStatusItemConfirmed;\r\n case '40':\r\n return resources.globalStatusItemProcessing;\r\n case '70':\r\n return resources.globalStatusItemGoodsDispatched;\r\n case '80':\r\n return resources.globalStatusItemInvoiced;\r\n case '90':\r\n return resources.globalStatusItemCompleted;\r\n default:\r\n return resources.globalStatusError;\r\n }\r\n};\r\nexport const mapItemStatusCodeDescriptionToText = (code: string, resources: any): string => {\r\n switch (code) {\r\n case '00':\r\n return resources.globalStatusItemUnknownDescription;\r\n case '05':\r\n return resources.globalStatusItemQueuedDescription;\r\n case '10':\r\n return resources.globalStatusItemSubmittedDescription;\r\n case '20':\r\n return resources.globalStatusItemItemCanceledDescription;\r\n case '30':\r\n return resources.globalStatusItemConfirmedDescription;\r\n case '40':\r\n return resources.globalStatusItemProcessingDescription;\r\n case '70':\r\n return resources.globalStatusItemGoodsDispatchedDescription;\r\n case '80':\r\n return resources.globalStatusItemInvoicedDescription;\r\n case '90':\r\n return resources.globalStatusItemCompletedDescription;\r\n default:\r\n return resources.globalStatusErrorDescription;\r\n }\r\n};\r\n","/**\r\n * Map Overall Status Function.\r\n * @param resources - Object with translation keys.\r\n * @returns getter functions for text and code.\r\n */\r\n\r\nexport const mapOverallStatus = (resources: any) => {\r\n const map = new Map([\r\n ['00', resources.globalStatusOverallUnknown],\r\n ['05', resources.globalStatusOverallQueued],\r\n ['10', resources.globalStatusOverallSubmitted],\r\n ['20', resources.globalStatusOverallCanceled],\r\n ['30', resources.globalStatusOverallConfirmed],\r\n ['40', resources.globalStatusOverallProcessing],\r\n ['90', resources.globalStatusOverallCompleted]\r\n ]);\r\n\r\n /**\r\n * Get true if status code exists.\r\n * @param code - Status code.\r\n * @returns True or false.\r\n */\r\n const getCodeExists = (code: string): boolean => {\r\n return map.has(code);\r\n };\r\n\r\n /**\r\n * Get text from status code.\r\n * @param code - Status code.\r\n * @returns Translation as string.\r\n */\r\n const getText = (code: string): string => {\r\n return map.get(code) ?? resources.globalStatusError;\r\n };\r\n\r\n /**\r\n * Get status code from text.\r\n * @param text - Translation.\r\n * @returns Status code as string.\r\n */\r\n const getCode = (text: string): string => {\r\n for (const [key, value] of map.entries()) {\r\n if (value === text) {\r\n return key;\r\n }\r\n }\r\n return '';\r\n };\r\n\r\n return {\r\n getCodeExists,\r\n getText,\r\n getCode\r\n };\r\n};\r\nexport const mapOverallStatusCodeDescriptionToText = (code: string, resources: any): string => {\r\n switch (code) {\r\n case '00':\r\n return resources.globalStatusOverallUnknownDescription;\r\n case '05':\r\n return resources.globalStatusOverallQueuedDescription;\r\n case '10':\r\n return resources.globalStatusOverallSubmittedDescription;\r\n case '20':\r\n return resources.globalStatusOverallCanceledDescription;\r\n case '30':\r\n return resources.globalStatusOverallConfirmedDescription;\r\n case '40':\r\n return resources.globalStatusOverallProcessingDescription;\r\n case '90':\r\n return resources.globalStatusOverallCompletedDescription;\r\n default:\r\n return resources.globalStatusErrorDescription;\r\n }\r\n};\r\n","import React from 'react';\r\nimport { STATUS_CODES, OVERALL_STATUS_CODES } from '../configuration';\r\nimport { mapItemStatusCodeDescriptionToText, mapItemStatusCodeToText } from './map-item-status-code-to-text';\r\nimport { mapOverallStatusCodeDescriptionToText, mapOverallStatus } from './map-overall-status-code-to-text';\r\n\r\nexport const formatStatusCodeForTooltip = (resources: any) => {\r\n return (\r\n
\r\n {STATUS_CODES.map(code => (\r\n
\r\n {mapItemStatusCodeToText(code, resources)}\r\n

{mapItemStatusCodeDescriptionToText(code, resources)}

\r\n
\r\n ))}\r\n
\r\n );\r\n};\r\nexport const formatOverallStatusCodeForTooltip = (resources: any) => {\r\n return (\r\n
\r\n {OVERALL_STATUS_CODES.map(code => (\r\n
\r\n {mapOverallStatus(resources).getText(code)}\r\n

{mapOverallStatusCodeDescriptionToText(code, resources)}

\r\n
\r\n ))}\r\n
\r\n );\r\n};\r\n","'use strict';\nvar $ = require('../internals/export');\nvar flattenIntoArray = require('../internals/flatten-into-array');\nvar aCallable = require('../internals/a-callable');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar arraySpeciesCreate = require('../internals/array-species-create');\n\n// `Array.prototype.flatMap` method\n// https://tc39.es/ecma262/#sec-array.prototype.flatmap\n$({ target: 'Array', proto: true }, {\n flatMap: function flatMap(callbackfn /* , thisArg */) {\n var O = toObject(this);\n var sourceLen = lengthOfArrayLike(O);\n var A;\n aCallable(callbackfn);\n A = arraySpeciesCreate(O, 0);\n A.length = flattenIntoArray(A, O, O, sourceLen, 0, 1, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n return A;\n }\n});\n","'use strict';\n// this method was added to unscopables after implementation\n// in popular engines, so it's moved to a separate module\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('flatMap');\n"],"names":["_ref","type","message","iconSize","closable","onClose","customStyles","React","className","role","style","onClick","ModalContext","createContext","isOpen","setOpen","setClose","ModalProvider","_content$header","children","props","setIsOpen","useState","content","setContent","header","size","isMounted","setIsMounted","useEffect","setTimeout","modalContainer","tag","Modal","moduleProps","classname","toggle","modalTransition","timeout","shouldUpdateFocusToFirstElement","modalHeaderContainer","ModalHeader","closeButtonTabIndex","modalFooterContainer","ModalFooter","modalBodyContainer","ModalBody","Provider","value","data","Module","Object","assign","Node","useModal","context","useContext","Error","label","ref","useRef","tooltip","setTooltip","show","position","top","left","windowSize","height","width","current","rect","getBoundingClientRect","newPosition","_objectSpread","right","overflowWidth","TOOLTIP_X_OFFSET","bottom","window","innerHeight","overflowHeight","TOOLTIP_OFFSET","onMouseEnter","e","_e$target","target","scrollY","scrollX","innerWidth","handleMouseEnter","onMouseLeave","handleMouseLeave","createPortal","document","body","NO_DATA_FALLBACK","MULTI_VALUE_SEPARATOR","DEBOUNCE_INPUT_DELAY","CREATE_ORDER_ADDITIONAL_INFORMATION_TEXT_ID","CREATE_ORDER_ADDITIONAL_INFORMATION_TEXT_LIMIT","CREATE_ORDER_NO_ENDCUSTOMER_VALUE","CREATE_ORDER_SAVE_CART_DELAY","CREATE_ORDER_COLUMN_ACTION","CREATE_ORDER_COLUMN_PRODUCT_NAME","CREATE_ORDER_COLUMN_PRODUCT_NUMBER","CREATE_ORDER_COLUMN_UNIT","CREATE_ORDER_COLUMN_INCOTERM","CREATE_ORDER_COLUMN_SALES_ORG","CREATE_ORDER_COLUMN_BUSINESS_UNIT","CREATE_ORDER_COLUMN_DIVISION_TEXT","CREATE_ORDER_COLUMN_SALES_ORG_TEXT","CREATE_ORDER_COLUMN_DISTRIBUTION_CHANNEL","CREATE_ORDER_COLUMN_END_CUSTOMER","CREATE_ORDER_COLUMN_CUSTOMER_PRODUCT_NUMBER","CREATE_ORDER_COLUMN_REQUESTED_DELIVERY_DATE","ERROR_CODE_SERVER_ERROR_INDEX","TOTAL_PRICE_DEFAULT","STATUS_CODES","OVERALL_STATUS_CODES","ORDER_HISTORY_FILTER_STATUS","ORDER_HISTORY_FILTER_FROM_DATE","ORDER_HISTORY_FILTER_TO_DATE","ORDER_HISTORY_FILTER_CREATED_ON","ORDER_HISTORY_FILTER_FULLNAME","ORDER_HISTORY_COLUMN_ORDER_NUMBER","ORDER_HISTORY_COLUMN_ACTION","ORDER_HISTORY_COLUMN_PO_NUMBER","ORDER_HISTORY_COLUMN_SOLD_TO_NAME","ORDER_HISTORY_COLUMN_SHIP_TO_NAME","OrderStatus","BACK_TO_TOP_THRESHOLD","BACK_TO_TOP_HIDE_DELAY","LxsCreateOrder","constructor","super","productsHaveEndcustomers","confirmedOrderData","_getSoldTos","async","this","soldToData","undefined","actionInput","GetSoldTosInput","getSoldTosAction","actionContext","error","Number","String","errorCode","charAt","_showToast","resources","globalErrorHeading","globalErrorServiceNotAvailable","setSoldToData","_getShipTos","shipToData","GetShipTosInput","id","shipTos","getShipTosAction","setShipToData","_getReorderData","GetCartOrderNumberInput","orderNumber","rawData","getCartOrderNumberAction","Items","length","setState","step","hasNoReorderItems","toJS","_getProducts","SoldToId","ShipToId","processStarted","products","slice","map","product","Quantity","toFixed","EndCustomerName","EndCustomerNumber","orderData","soldTo","SoldTo","Id","RecordCreatedDate","SalesAreas","ExtensionProperties","shipTo","ShipTo","orderHeader","AdditionalInfo","DistributionChannel","Division","DivisionText","Incoterm1","SalesOrg","SalesOrgText","BusinessUnit","CustomerPONumber","CustomerProductNumber","GetAllProductsInput","allProducts","getAllProductsAction","setProductsData","Products","setProductsHaveEndcustomers","EndCustomers","_loadCartData","cartData","getCart","result","tempState","CustomerPo","OrderType","Step","_saveCartDebouncer","called","_saveCart","then","res","Exception","saveCartError","_saveCartHandler","_orderHeader$SalesOrg","_orderHeader$Addition","_orderHeader$Customer","_orderHeader$Distribu","_orderHeader$Division","_orderHeader$Incoterm","_orderHeader$OrderTyp","_soldTo$Id","_shipTo$Id","state","index","PostCartInput","postCartAction","console","_collectOrderData","_orderHeader$Incoterm2","_orderHeader$Customer2","_orderHeader$SalesOrg2","_orderHeader$Distribu2","_orderHeader$Division2","_soldTo$Id2","_shipTo$Id2","_products$map","_orderHeader$Addition2","Language","request","locale","Order","PurchaseOrderNumbExt","ShiptTo","OrderLines","ProductNumber","RequestedDate","RequestedQty","Unit","UnitOfMeasure","EndCustomer","HeaderTexts","TextId","Value","_placeOrder","PostCreateOrderInput","placeOrderData","response","postCreateOrderAction","setConfirmedOrderData","heading","description","toast","dismiss","handleLxsCreateOrderHeadingChange","event","config","text","validProducts","componentDidMount","_this$props$context$a","_this$props$data$getC","requestContext","query","componentDidUpdate","_","prevState","scrollTo","behavior","render","pageSize","loadSoldTos","setCartData","setSoldTo","newOrderData","setShipTo","setProducts","placeOrder","setStep","viewProps","headerProps","Msdyn365","editProps","onEdit","cartTableData","productsData","setOrderData","setOrderHeader","Toaster","richColors","toastOptions","classNames","default","success","warning","info","renderView","__decorate","observable","action","computed","observer","processBar","processBlocked","goTo","nextStep","createOrderDeleteProductsHint","createOrderDeleteProductsHintConfirm","title","createOrderSoldToSelectionHeading","createOrderShipToSelectionHeading","createOrderProductsHeading","createOrderOrderHeadingInfoHeading","createOrderOverviewHeading","createOrderAcknowledgementHeading","Address","address","headline","formatAddress","line","key","addressInformation","_ref2","createOrderAddressInformation","keys","createOrderSoldTo","createOrderShipTo","skeleton","DebouncedInput","initialValue","onChange","debounce","_objectWithoutProperties","_excluded","setValue","handleChange","useCallback","currentValue","timeoutId","clearTimeout","options","disabled","htmlFor","createOrderSearchDefaultOption","option","_columnFilters$find$v","_columnFilters$find","_columnFilters$find$v2","_columnFilters$find2","_columnFilters$find$v3","_columnFilters$find3","globalFilter","salesOrgOptions","businessUnitOptions","columnFilters","isColumnFilterValid","incotermOptions","filterDisabled","setColumnFilters","setGlobalFilter","alertVisible","setAlertVisible","createOrderSearchHeading","createOrderSearchLabel","placeholder","createOrderSearchPlaceholder","createOrderFilterHeading","Dropdown","find","filter","salesOrg","prev","currentFilters","salesOrgFilter","push","createOrderSalesOrgLabel","businessUnit","businessUnitFilter","createOrderBusinessUnitLabel","incoterm","incotermFilter","createOrderIncoterms1Label","Alert","createOrderFilterNotValid","highlightSearchTerm","searchTerm","trim","parts","split","RegExp","part","toLowerCase","SoldTosSelectionTable","_table$getRowModel$ro","_orderData$shipTo","pageIndex","setPageIndex","columns","accessorFn","row","Name1","cell","_highlightSearchTerm","getValue","createOrderTableNameHeading","footer","column","_highlightSearchTerm2","createOrderTablePartnerNumber","VatId","_highlightSearchTerm3","createOrderTableVatHeading","Street1","_highlightSearchTerm4","createOrderTableStreetHeading","HouseNumber","_highlightSearchTerm5","createOrderTableStreetNumberHeading","PostlCode","_highlightSearchTerm6","createOrderTableZipHeading","City","_highlightSearchTerm7","createOrderTableCityHeading","Country","_highlightSearchTerm8","createOrderTableCountryHeading","_row$SalesAreas","salesArea","join","_row$SalesAreas2","createOrderTableActionHeading","enableSorting","columnVisibility","sorting","setSorting","table","useReactTable","filterFns","pagination","onColumnFiltersChange","onGlobalFilterChange","globalFilterFn","getCoreRowModel","getExpandedRowModel","onSortingChange","getFilteredRowModel","getSortedRowModel","getPaginationRowModel","getFacetedRowModel","getFacetedUniqueValues","getFacetedMinMaxValues","debugTable","debugHeaders","debugColumns","autoResetAll","totalEntries","rows","SearchBox","getSalesOrgOptions","_ref3","area","OrderCreate","flat","item","Map","v","values","getBusinessUnitOptions","_ref4","_ref5","createOrderSearchSoldTosHeading","getHeaderGroups","headerGroup","headers","_asc$desc$header$colu","sortValue","asc","desc","getIsSorted","colSpan","isPlaceholder","getCanSort","getToggleSortingHandler","flexRender","columnDef","getContext","createOrderNoDataMessage","createOrderNoSoldTosMessage","getRowModel","getVisibleCells","_cell$column","original","createOrderSelectButton","createOrderEmptyTableMessage","Array","from","Skeleton","getCanPreviousPage","getState","getPageCount","getCanNextPage","AddressInformation","ShipTos","_table$getFilteredRow","_table$getFilteredRow2","setIsColumnFilterValid","flatMap","createOrderSearchShipTosHeading","BackButton","handlePreviousClick","includes","createOrderPreviousPageButton","OrderHeaderInfo","_orderData$orderHeade","_orderData$orderHeade2","_orderData$orderHeade3","_orderData$orderHeade4","_orderData$orderHeade5","_orderData$orderHeade6","_orderData$orderHeade7","_orderData$orderHeade8","_orderData$orderHeade9","_orderData$orderHeade10","_orderData$orderHeade11","_orderData$orderHeade12","_orderData$orderHeade13","_orderData$products","additionalInfoValue","setAdditionalInfoValue","customerPoNumberValue","setCustomerPoNumberValue","showToast","createOrderOrderHeadingInfoToastHeading","handleBlur","setInputValue","updateOrderHeader","sanitizeAndUpdate","inputValue","convertHtmlToPlainText","originalValue","sanitizedValue","createOrderOrderHeadingInfoSanitizeText","createOrderGeneralOrderHeading","createOrderCustomerPoLabel","autoFocus","defaultValue","onBlur","createOrderCustomerPoPlaceholder","createOrderAdditionalInfoLabel","dangerouslySetInnerHTML","__html","convertSapToHtmlLinebreaks","convertSapToNewlineLinebreaks","maxLength","convertNewlineToSapLinebreaks","createOrderMessagePlaceholderLabel","createOrderNextPageButton","SelectedProducts","goto","useMemo","ProductName","_info$getValue","createOrderProductsTableProductName","_info$getValue2","createOrderProductsTableProductNumber","_info$getValue3","createOrderSelectedProductsTableCustomerProductNumber","customProps","currentProductIndex","tomorrow","Date","currentDate","validDate","getTime","newProducts","onKeyDown","preventDefault","min","toISOString","substring","date","createOrderSelectedProductsTableRequestedDeliveryDate","_customProps$products","required","match","replace","createOrderSelectedProductsTableQuantity","_customProps$products2","_relevantProducts$End6","relevantProducts","hasEndCustomers","some","customer","_relevantProducts$End","_relevantProducts$End2","_relevantProducts$End3","_relevantProducts$End4","_relevantProducts$End5","EndCustomerDisplayName","correctProduct","_correctProduct$EndCu","_correctProduct$EndCu2","endCustomer","createOrderSelectedProductsTableNoEndCustomer","createOrderSelectedProductsTableEndCustomer","_info$getValue4","createOrderProductsTableActionTitle","createOrderSelectedProductsHeading","createOrderSelectedProductsRemoveAll","onSubmit","newSelectedProducts","selectedProductIndex","findIndex","p","splice","CustomerAccountNumber","createOrderSelectedProductsTableActionLabel","setFilterDisabled","createOrderProductsTableUnit","createOrderProductsTableIncoterm","getIncotermOptions","createOrderSearchProductsHeading","productColumnFilters","createOrderItemAddedHeading","createOrderItemAddedDescription","selectedProductsContainer","querySelector","scrollIntoView","createOrderProductsTableActionLabel","form","orderItems","_itemsData$products","itemsData","createOrderItemsHeading","createOrderItemsTablePosition","createOrderItemsTableProductName","createOrderItemsTableProductNumber","createOrderSelectedProductsReqQuantity","formatDate","formatNumber","isLoading","setIsLoading","accepted","setAccepted","createOrderOverviewDisclaimerText","name","checked","createOrderOverviewDisclaimerAcceptLabel","LoadingButton","createOrderOverviewDisclaimerPlaceOrderLabel","overview","OrderItems","Disclaimer","OrderInfo","_Order$HeaderTexts","_Order$HeaderTexts$fi","_Order$HeaderTexts2","createOrderOrderNumberLabel","OrderNumber","createOrderOrderTypeLabel","OrderError","createOrderErrorCreateOrder","createOrderErrorCreateOrderHint","Messages","ReturnCode","globalErrorCodeLabel","getCreateOrderPageUrl","getUrlSync","href","createOrderShowOrderLabel","createOrderCreateNewOrderLabel","_itemsData$Order$Orde","RequestedUnit","acknowledgement","createOrderConfirmationAlertTitle","createOrderConfirmationAlertHint","AcknowledgementActionButtons","isReordering","createOrderReorderingNoItems","createOrderReorderingMessageNoItems","createOrderCartExistsRestart","createOrderReordering","createOrderReorderingMessage","createOrderExistingDataInvalid","createOrderExistingDataInvalidMessage","createOrderCartExistsHint","createOrderCartExistsExplanation","createOrderCartExistsResume","SwitchComponents","active","activeItems","child","toString","createOrderNoChildWithKey","CreateOrderSoldTosHeader","orderCountLabel","extraActions","_context$actionContex","_columnFilters$find$v4","_columnFilters$find4","_columnFilters$find$v5","_columnFilters$find5","_columnFilters$find$v6","_columnFilters$find6","user","isAuthenticated","ProcessBar","createOrderErrorSaveCart","MessageView","SoldTos","Overview","Acknowledgement","createOrderNotLoggedIn","createOrderNotLoggedInExplanation","signInUrl","createOrderLogIn","OrderHistory","handleOrderHistoryHeadingChange","_this$props$data$getO","getOrderHistory","orderHistoryNoOrderHistoryLabel","viewState","orderHistoryProps","orderHistoryTableData","_this$viewState","emptyMessage","errorMessage","getOrderDetailsPageUrl","salesNumber","orderDetailsUrl","separator","orderHistorySearchHeading","orderHistorySearchLabel","orderHistorySearchPlaceholder","CreateOrderTable","_table$getState$colum2","multiSelectFilter","columnId","mapOverallStatus","getText","dateRangeFilter","to","expanded","setExpanded","setSearchTerm","orderHistoryOrderNumberText","Status","Queued","PoNumber","orderHistorySalesOrderPONumber","ConfirmedDate","orderHistorySalesOrderCreatedOn","filterFn","Tooltip","formatOverallStatusCodeForTooltip","orderHistorySalesOrderStatus","SoldToName","orderHistorySalesOrderSoldTo","ShipToName","orderHistorySalesOrderShipTo","orderHistorySalesOrderAction","defaultSorting","initialState","customGlobalFilter","filterValue","highlightRow","entries","inOrderLines","orderLine","mapItemStatusCodeToText","highlight","highlightOrderLines","addUrlDateParameter","paramName","paramValue","currentUrl","URL","location","searchParams","set","history","pushState","removeUrlParameter","delete","addUrlStatusParameter","forEach","val","append","_table$getState$colum","_table$getState$sorti","_url$searchParams$get","_url$searchParams$get2","url","fromDate","get","toDate","filters","status","getAll","validStatus","code","getCodeExists","ActiveFiltersDisplay","orderHistoryActiveFilterHeading","orderHistoryFilterStatusLegend","newFilters","separatedFilter","i","getCode","concatenatedFilter","fil","orderHistoryFilterFrom","orderHistoryFilterTo","ResetFilters","FilterBox","createdOnColumn","getColumn","dateValue","getFilterValue","statusColumn","uniqueVals","uniqueKeys","sort","setDateValue","setFilterValue","selectedFromDate","setSelectedFromDate","selectedToDate","setSelectedToDate","orderHistoryFilterHeading","orderHistoryResetFilter","orderHistoryFilterTimeframeLegend","orderHistoryFilterFromLabel","max","orderHistoryFilterToLabel","setMultiValue","input","orderHistoryTotalNumberOfOrders","orderHistoryNoDataMessageHeading","orderHistoryNoDataMessage","orderHistoryEmptyTableMessageHeading","orderHistoryEmptyTableMessage","highlightClass","old","getIsExpanded","orderHistoryDetailsFindLines","orderHistoryDetailsLineNumber","orderHistoryDetailsProductName","orderHistoryDetailsStatus","formatStatusCodeForTooltip","orderHistoryDetailsRequestedDate","orderHistoryDetailsConfirmedDate","orderHistoryDetailsRequestedQuantity","orderHistoryDetailsConfirmedQuantity","orderHistoryDetailsNetValue","globalTableNetValueToolTip","LineNumber","ScheduleLines","sLine","ConfirmedQty","ConfirmedUnit","Currency","formatCurrency","NetValue","OrderHistoryOrderInfomation","orderInformationProps","salesId","receiptId","channelName","createdDate","count","amount","channelReferenceId","OrderHistoryGroupDelivery","deliveryProps","processing","trackingInfo","OrderHistoryGroup","groupProps","delivery","salesLinesProps","salesLines","salesLine","LineId","OrderHistoryGroups","groupsProps","groups","group","OrderHistoryHeader","orderHistoryOrderCountLabel","_ref6","orderHistoryNotLoggedIn","orderHistoryNotLoggedInExplanation","orderHistoryLogIn","fill","reduce","acc","string","currency","price","CultureInfoFormatter","cultureFormatter","year","month","day","number","Math","trunc","formatTime","time","hour","minute","second","timeZone","globalStatusItemUnknown","globalStatusItemQueued","globalStatusItemSubmitted","globalStatusItemItemCanceled","globalStatusItemConfirmed","globalStatusItemProcessing","globalStatusItemGoodsDispatched","globalStatusItemInvoiced","globalStatusItemCompleted","globalStatusError","globalStatusOverallUnknown","globalStatusOverallQueued","globalStatusOverallSubmitted","globalStatusOverallCanceled","globalStatusOverallConfirmed","globalStatusOverallProcessing","globalStatusOverallCompleted","has","_map$get","mapItemStatusCodeDescriptionToText","globalStatusItemUnknownDescription","globalStatusItemQueuedDescription","globalStatusItemSubmittedDescription","globalStatusItemItemCanceledDescription","globalStatusItemConfirmedDescription","globalStatusItemProcessingDescription","globalStatusItemGoodsDispatchedDescription","globalStatusItemInvoicedDescription","globalStatusItemCompletedDescription","globalStatusErrorDescription","mapOverallStatusCodeDescriptionToText","globalStatusOverallUnknownDescription","globalStatusOverallQueuedDescription","globalStatusOverallSubmittedDescription","globalStatusOverallCanceledDescription","globalStatusOverallConfirmedDescription","globalStatusOverallProcessingDescription","globalStatusOverallCompletedDescription","$","flattenIntoArray","aCallable","toObject","lengthOfArrayLike","arraySpeciesCreate","proto","callbackfn","A","O","sourceLen","arguments","addToUnscopables"],"sourceRoot":""}