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ACA4N,EACAI,EACAC,GAEA,IACMJ,EADUvG,EAAK0D,MACEhL,GACvB,QAAK6N,IAKAA,EAAO1B,UAAuC,IAA3B0B,EAAO1B,SAAS+B,OAKjC5G,EAAKyG,mBAAmB/N,EAAI4N,EAAQI,EAAYC,GAJ5C3G,EAAKqG,cAAc3N,EAAI4N,GAKtC,EAMiBtG,EAAAvB,uBAAyB,WACtC,QAASuB,EAAKzE,MAAM6L,aACxB,EAOiBpH,EAAAuF,eAAiB,SAAC7M,GAG/B,QAFgBsH,EAAK0D,MACEhL,EAE3B,EAjQIsH,EAAKiE,kBAAiB,CAC1B,CAiQJ,OArQ0BoD,EAAAA,EAAAA,IAAAtD,EAAAD,GAMfC,EAAA7C,UAAAjD,sBAAP,SAA6BC,GACzB,OAAIjD,KAAKM,QAAU2C,CAIvB,EAEO6F,EAAA7C,UAAA9C,OAAP,WACY,IAAA1F,EAAOuC,KAAKM,MAAK7C,GACzB,OAAOV,EAAAA,cAAC6L,GAAgBU,EAAAA,EAAAA,IAAA,GAAKtJ,KAAKM,MAAK,CAAEC,YAAaP,KAAK8J,sBAAsBrM,KACrF,EAhBEqL,GAAW7E,EAAAA,EAAAA,IAAA,CADhBG,EAAAA,IAAQ,uCACH0E,EAqQL,CArQD,CAA0B/L,EAAAA,UAwQ9B","sources":["webpack://Msdyn365.Commerce.Online/./src/modules/lli-checkout-additional-info/components/get-add-additional-info.tsx?3f28","webpack://Msdyn365.Commerce.Online/./src/modules/lli-checkout-additional-info/components/get-show-additional-info.tsx?abdb","webpack://Msdyn365.Commerce.Online/./src/modules/lli-checkout-additional-info/lli-checkout-additional-info.tsx?1022","webpack://Msdyn365.Commerce.Online/./src/modules/lli-checkout-additional-info/lli-checkout-additional-info.view.tsx?9d38","webpack://Msdyn365.Commerce.Online/../../src/checkout-state-data-action.ts?8344","webpack://Msdyn365.Commerce.Online/../../src/checkout-state.ts?acd8","webpack://Msdyn365.Commerce.Online/../../src/checkout-utilities.data.ts?b2cc","webpack://Msdyn365.Commerce.Online/../../../src/module-state-manager/module-state.ts?7579","webpack://Msdyn365.Commerce.Online/../../../src/module-state-manager/with-module-state.tsx?61ca"],"sourcesContent":["/*--------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * See License.txt in the project root for license information.\r\n *--------------------------------------------------------------*/\r\n\r\n/* eslint-disable no-duplicate-imports */\r\nimport { Button, INodeProps } from '@msdyn365-commerce-modules/utilities';\r\nimport classnames from 'classnames';\r\nimport * as React from 'react';\r\nimport DatePicker from \"react-datepicker\";\r\n\r\nexport interface IAddAdditionalInfoInput {\r\n orderReferenceRef?: React.RefObject;\r\n orderNotesRef?: React.RefObject;\r\n hasError: boolean;\r\n orderReference: string;\r\n orderNotes: string;\r\n requestedShippingDate: Date | null;\r\n resources: {\r\n orderReferenceInputLabel: string;\r\n orderNotesInputLabel: string;\r\n requestedShippingDateInputLabel: string;\r\n noRequestedShippingDatePlaceholder: string;\r\n additionalInfoErrortext: string;\r\n saveBtnLabel: string;\r\n cancelBtnLabel: string;\r\n };\r\n canSubmit: boolean;\r\n canCancel: boolean;\r\n onOrderReferenceChange(orderReference: string): void;\r\n onOrderNotesChange(orderNotes: string): void;\r\n onRequestedShippingDateChange(requestedShippingDate: Date | null): void;\r\n onSubmit(): void;\r\n onCancel(): void;\r\n}\r\n\r\nexport interface IAddAdditionalInfo {\r\n addFormProps: INodeProps;\r\n submitButton: React.ReactNode;\r\n cancelButton: React.ReactNode;\r\n inputGroupProps: INodeProps;\r\n orderReferenceProps: {\r\n label: React.ReactNode;\r\n input: React.ReactNode;\r\n };\r\n orderNotesProps: {\r\n label: React.ReactNode;\r\n input: React.ReactNode;\r\n };\r\n requestedShippingDateProps: {\r\n label: React.ReactNode;\r\n input: React.ReactNode;\r\n }\r\n error: React.ReactNode;\r\n}\r\n\r\n/**\r\n * On Order Reference Input change handler function.\r\n * @param onOrderReferenceChange -On change input function.\r\n * @returns Call of onOrderReferenceChange function.\r\n */\r\n const onOrderReferenceInputChangeHandler = (onOrderReferenceChange: (orderReference: string) => void) => (event: React.ChangeEvent): void => {\r\n onOrderReferenceChange(event.target.value || '');\r\n};\r\n\r\n/**\r\n * On Order Notes Input change handler function.\r\n * @param onOrderNotesChange -On change input function.\r\n * @returns Call of onOrderNotesChange function.\r\n */\r\nconst onOrderNotesInputChangeHandler = (onOrderNotesChange: (orderNotes: string) => void) => (event: React.ChangeEvent): void => {\r\n onOrderNotesChange(event.target.value || '');\r\n};\r\n\r\nconst getAddAdditionalInfo = ({\r\n hasError,\r\n orderReferenceRef, \r\n orderNotesRef, \r\n orderReference,\r\n orderNotes,\r\n requestedShippingDate,\r\n canSubmit,\r\n canCancel,\r\n onOrderReferenceChange, \r\n onOrderNotesChange, \r\n onRequestedShippingDateChange,\r\n onSubmit,\r\n onCancel,\r\n resources: { \r\n orderReferenceInputLabel, \r\n orderNotesInputLabel, \r\n requestedShippingDateInputLabel, \r\n noRequestedShippingDatePlaceholder,\r\n additionalInfoErrortext, \r\n saveBtnLabel, \r\n cancelBtnLabel }\r\n}: IAddAdditionalInfoInput): IAddAdditionalInfo => {\r\n const onOrderReferenceInputChange = onOrderReferenceInputChangeHandler(onOrderReferenceChange);\r\n const onOrderNotesInputChange = onOrderNotesInputChangeHandler(onOrderNotesChange);\r\n\r\n return {\r\n addFormProps: { className: 'lli-checkout-additional_info__add-additional-info' },\r\n submitButton: canSubmit && (\r\n \r\n {saveBtnLabel}\r\n \r\n ),\r\n cancelButton: canCancel && (\r\n \r\n {cancelBtnLabel}\r\n \r\n ),\r\n inputGroupProps: { className: classnames('lli-checkout-additional_info__input', { 'is-invalid': hasError }) },\r\n orderReferenceProps: {\r\n label: (\r\n \r\n ),\r\n input: (\r\n \r\n )\r\n },\r\n orderNotesProps: {\r\n label: (\r\n \r\n ),\r\n input: (\r\n \r\n )\r\n },\r\n requestedShippingDateProps: {\r\n label: (\r\n \r\n ),\r\n input: (\r\n \r\n \r\n \r\n )\r\n },\r\n error: hasError && (\r\n \r\n {additionalInfoErrortext}\r\n \r\n )\r\n };\r\n};\r\n\r\nexport default getAddAdditionalInfo;\r\n","/*--------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * See License.txt in the project root for license information.\r\n *--------------------------------------------------------------*/\r\n\r\n/* eslint-disable no-duplicate-imports */\r\nimport { Button, INodeProps } from '@msdyn365-commerce-modules/utilities';\r\nimport * as React from 'react';\r\n\r\nexport interface IShowAdditionalInfoInput {\r\n canEdit: boolean;\r\n orderReference: string;\r\n orderNotes: string;\r\n requestedShippingDate: Date | null;\r\n resources: {\r\n editBtnLabel: string;\r\n orderReferenceDisplayLabel: string;\r\n orderNotesDisplayLabel: string;\r\n requestedShippingDateDisplayLabel: string;\r\n noRequestedShippingDateMessage: string;\r\n };\r\n onEdit(): void;\r\n}\r\n\r\nexport interface IShowAdditionalInfo {\r\n showInfoProps: INodeProps;\r\n orderReference: React.ReactNode;\r\n orderNotes: React.ReactNode;\r\n requestedShippingDate: React.ReactNode;\r\n editButton?: React.ReactNode;\r\n}\r\n\r\nconst dateFormat : Intl.DateTimeFormatOptions = { \r\n weekday: 'long', \r\n year: 'numeric', \r\n month: 'long', \r\n day: 'numeric' \r\n};\r\n\r\nconst getAdditionalInfo = ({\r\n canEdit, \r\n orderReference, \r\n orderNotes, \r\n requestedShippingDate, \r\n resources: { \r\n editBtnLabel, \r\n orderReferenceDisplayLabel,\r\n orderNotesDisplayLabel,\r\n requestedShippingDateDisplayLabel,\r\n noRequestedShippingDateMessage\r\n }, \r\n onEdit \r\n}: IShowAdditionalInfoInput): IShowAdditionalInfo => ({\r\n showInfoProps: { className: 'lli-checkout-additional_info__selected-item' },\r\n orderReference: \r\n {orderReference}
\r\n
,\r\n orderNotes: \r\n {orderNotes}
\r\n
,\r\n requestedShippingDate: \r\n {(requestedShippingDate && requestedShippingDate.toLocaleDateString(undefined, dateFormat)) || noRequestedShippingDateMessage}\r\n ,\r\n editButton: canEdit && (\r\n \r\n {editBtnLabel}\r\n \r\n )\r\n});\r\n\r\nexport default getAdditionalInfo;\r\n","/*--------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * See License.txt in the project root for license information.\r\n *--------------------------------------------------------------*/\r\n\r\n/* eslint-disable no-duplicate-imports */\r\nimport { IModuleStateProps, withModuleState } from '@msdyn365-commerce-modules/checkout-utilities';\r\nimport { IModuleProps } from '@msdyn365-commerce-modules/utilities';\r\nimport classnames from 'classnames';\r\nimport { computed, when } from 'mobx';\r\nimport { observer } from 'mobx-react';\r\nimport * as React from 'react';\r\n\r\nimport { ILliCheckoutAdditionalInfoData } from './lli-checkout-additional-info.data';\r\nimport { ILliCheckoutAdditionalInfoProps } from './lli-checkout-additional-info.props.autogenerated';\r\n\r\nimport getAddAdditionalInfo, { IAddAdditionalInfo } from './components/get-add-additional-info';\r\nimport getShowAdditionalInfo, { IShowAdditionalInfo } from './components/get-show-additional-info';\r\nimport { AttributeTextValue, AttributeValueBase } from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceTypes.g';\r\n\r\nexport * from './components/get-add-additional-info';\r\nexport * from './components/get-show-additional-info';\r\n\r\ninterface ICheckoutAdditionalInfoState {\r\n orderReference: string;\r\n orderNotes: string;\r\n requestedShippingDate: Date | null; // stored as ISO string in attribute, this also means \"T07\" indicates timezone\r\n}\r\n\r\nexport interface ICheckoutAdditionalInfoModuleProps extends ILliCheckoutAdditionalInfoProps, IModuleStateProps { }\r\n\r\nexport interface ILliCheckoutAdditionalInfoViewProps extends ILliCheckoutAdditionalInfoProps, ICheckoutAdditionalInfoState {\r\n moduleProps: IModuleProps;\r\n showAdditionalInfo?: IShowAdditionalInfo;\r\n addAdditionalInfo?: IAddAdditionalInfo;\r\n\r\n onOrderReferenceChange?(orderReference: string): void;\r\n onOrderNotesChange?(orderNotes: string): void;\r\n onRequestedShippingDateChange?(requestedShippingDate: Date): void;\r\n\r\n onEdit?(): void;\r\n onSubmit?(): void;\r\n onCancel?(): void;\r\n}\r\n\r\n/**\r\n *\r\n * LliCheckoutAdditionalInfo component\r\n * @extends {React.PureComponent, ICheckoutAdditionalInfoState>}\r\n */\r\n// @ts-expect-error\r\n@withModuleState\r\n@observer\r\nclass LliCheckoutAdditionalInfo extends React.PureComponent {\r\n public state: ICheckoutAdditionalInfoState = {\r\n orderReference: '',\r\n orderNotes: '',\r\n requestedShippingDate: null\r\n };\r\n\r\n private readonly orderReferenceRef: React.RefObject = React.createRef();\r\n private readonly orderNotesRef: React.RefObject = React.createRef();\r\n \r\n @computed get isDataReady(): boolean {\r\n return (this.props.data.checkout.result && this.props.data.checkout.status) === 'SUCCESS';\r\n }\r\n\r\n public componentDidMount(): void {\r\n when(\r\n () => this.isDataReady,\r\n async () => {\r\n await this.init();\r\n }\r\n );\r\n }\r\n\r\n public shouldComponentUpdate(nextProps: ICheckoutAdditionalInfoModuleProps,\r\n nextState: ICheckoutAdditionalInfoState): boolean {\r\n if (this.state === nextState && this.props.data === nextProps.data) {\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n public render(): JSX.Element {\r\n const {\r\n config: { className },\r\n resources,\r\n moduleState: { isReady, hasError, hasExternalSubmitGroup }\r\n } = this.props;\r\n const orderReference = this.getTextAttribute(\"OrderReference\") ?? this.state.orderReference;\r\n const orderNotes = this.getTextAttribute(\"Notes\") ?? this.state.orderNotes;\r\n const requestedShippingDateText = this.getTextAttribute(\"RequestedshipDate\") || this.dateToString(this.state.requestedShippingDate);\r\n const requestedShippingDate = (requestedShippingDateText && new Date(requestedShippingDateText)) || null;\r\n\r\n const viewProps: ILliCheckoutAdditionalInfoViewProps = {\r\n ...this.props,\r\n ...this.state,\r\n onOrderReferenceChange: this.onOrderReferenceChange,\r\n onOrderNotesChange: this.onOrderNotesChange,\r\n onRequestedShippingDateChange: this.onRequestedShippingDateChange,\r\n onEdit: this.onEdit,\r\n onCancel: this.onCancel,\r\n onSubmit: this.onSubmit,\r\n\r\n moduleProps: {\r\n moduleProps: this.props,\r\n className: classnames('lli-checkout-additional-info', className)\r\n },\r\n showAdditionalInfo: isReady ? getShowAdditionalInfo({\r\n canEdit: !hasExternalSubmitGroup,\r\n orderReference,\r\n orderNotes,\r\n requestedShippingDate,\r\n resources,\r\n onEdit: this.onEdit\r\n }) : undefined,\r\n addAdditionalInfo: !isReady ? getAddAdditionalInfo({\r\n orderReference: this.state.orderReference,\r\n orderNotes: this.state.orderNotes,\r\n requestedShippingDate: this.state.requestedShippingDate,\r\n hasError,\r\n resources,\r\n orderReferenceRef: this.orderReferenceRef,\r\n orderNotesRef: this.orderNotesRef,\r\n onOrderReferenceChange: this.onOrderReferenceChange,\r\n onOrderNotesChange: this.onOrderNotesChange,\r\n onRequestedShippingDateChange: this.onRequestedShippingDateChange,\r\n canSubmit: !hasExternalSubmitGroup,\r\n onSubmit: this.onSubmit,\r\n canCancel: !hasExternalSubmitGroup && !!orderReference,\r\n onCancel: this.onCancel\r\n }) : undefined\r\n };\r\n\r\n return this.props.renderView(viewProps) as React.ReactElement;\r\n }\r\n\r\n private readonly init = async (): Promise => {\r\n const orderReference = this.getTextAttribute(\"OrderReference\") || this.state.orderReference;\r\n const orderNotes = this.getTextAttribute(\"Notes\") || this.state.orderNotes;\r\n const requestedShippingDate = this.getTextAttribute(\"RequestedshipDate\") || this.dateToString(this.state.requestedShippingDate) || \"\";\r\n \r\n await this.updateTextAttribute([\r\n {name: \"OrderReference\", value: orderReference},\r\n {name: \"Notes\", value: orderNotes},\r\n {name: \"RequestedshipDate\", value: requestedShippingDate}\r\n ]);\r\n\r\n this.setState({ orderReference, orderNotes, requestedShippingDate: (requestedShippingDate && new Date(requestedShippingDate)) || null });\r\n \r\n this.props.moduleState.init({\r\n onEdit: this.onEdit,\r\n onCancel: this.onCancel,\r\n onSubmit: this.onSubmit,\r\n status: !!orderReference ? 'ready' : 'updating',\r\n hasError: false // false so error won't show on init\r\n });\r\n };\r\n\r\n private readonly onOrderReferenceChange = (orderReference: string): void => {\r\n this.setState({ orderReference });\r\n if (this.props.moduleState.hasError) {\r\n // Clear error user updates order reference\r\n this.props.moduleState.setHasError(false);\r\n }\r\n };\r\n\r\n private readonly onOrderNotesChange = (orderNotes: string): void => {\r\n this.setState({ orderNotes });\r\n };\r\n\r\n private readonly onRequestedShippingDateChange = (requestedShippingDate: Date | null): void => {\r\n this.setState({ requestedShippingDate });\r\n }\r\n\r\n private readonly isOrderReferenceValid = (orderReference: string): boolean => {\r\n return !!orderReference;\r\n }\r\n\r\n private readonly onEdit = (): void => {\r\n this.props.moduleState.onUpdating();\r\n };\r\n\r\n private readonly onSubmit = async (): Promise => {\r\n const { orderReference, orderNotes, requestedShippingDate } = this.state;\r\n \r\n const isValid = this.isOrderReferenceValid(orderReference);\r\n if (!isValid) {\r\n this.props.moduleState.setHasError(true);\r\n\r\n // eslint-disable-next-line xss/no-mixed-html -- Get error, focus back on the input field.\r\n const input = this.orderReferenceRef.current?.focus && (this.orderReferenceRef.current as HTMLElement);\r\n input?.focus();\r\n } else {\r\n this.props.moduleState.onReady();\r\n await this.updateTextAttribute([\r\n {name: \"OrderReference\", value: orderReference},\r\n {name: \"Notes\", value: orderNotes},\r\n {name: \"RequestedshipDate\", value: this.dateToString(requestedShippingDate) || \"\"}\r\n ]);\r\n \r\n this.setState({ orderReference, orderNotes, requestedShippingDate });\r\n }\r\n };\r\n\r\n private readonly onCancel = (): void => {\r\n const orderReference = this.getTextAttribute(\"OrderReference\") || \"\";\r\n const orderNotes = this.getTextAttribute(\"Notes\") || \"\";\r\n const requestedShippingDateText = this.getTextAttribute(\"RequestedshipDate\") || \"\";\r\n const requestedShippingDate = (requestedShippingDateText && new Date(requestedShippingDateText)) || null;\r\n\r\n if (!orderReference) {\r\n // It has no saved order reference, set to status updating and request user to fill the order reference form\r\n this.props.moduleState.onUpdating();\r\n \r\n } else {\r\n // It has saved order reference, set to status ready\r\n this.setState({\r\n orderReference,\r\n orderNotes,\r\n requestedShippingDate\r\n });\r\n this.props.moduleState.setHasError(false);\r\n this.props.moduleState.onReady();\r\n }\r\n };\r\n\r\n private readonly updateTextAttribute = async (args: {name: string, value: string}[]): Promise => {\r\n const cartState = this.props.data.checkout.result?.checkoutCart;\r\n\r\n let newAttributeValues:AttributeValueBase[] = cartState?.attributeValues || [];\r\n\r\n for (var newAttr of args) {\r\n newAttributeValues = newAttributeValues.filter(attr => attr.Name !== newAttr.name);\r\n newAttributeValues.push({\r\n // @ts-ignore\r\n '@odata.type': '#Microsoft.Dynamics.Commerce.Runtime.DataModel.AttributeTextValue',\r\n Name: newAttr.name,\r\n ExtensionProperties: [],\r\n TextValue: newAttr.value,\r\n TextValueTranslations: []\r\n });\r\n }\r\n\r\n await cartState?.updateAttributeValues({newAttributeValues});\r\n };\r\n\r\n private readonly getTextAttribute = (attributeName: string): string | undefined => {\r\n const attributeOnCart = this.props.data.checkout.result?.checkoutCart.attributeValues.find(attr => attr.Name === attributeName) as AttributeTextValue;\r\n const val = attributeOnCart?.TextValue;\r\n return val;\r\n }\r\n\r\n private readonly dateToString = (date: Date | null) => {\r\n if (!date) return \"\";\r\n let year = date.getFullYear();\r\n let month = (1 + date.getMonth()).toString().padStart(2, '0');\r\n let day = date.getDate().toString().padStart(2, '0');\r\n \r\n return month + '/' + day + '/' + year;\r\n }\r\n}\r\n\r\nexport default LliCheckoutAdditionalInfo;\r\n","/*--------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * See License.txt in the project root for license information.\r\n *--------------------------------------------------------------*/\r\n\r\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 { IAddAdditionalInfo, ILliCheckoutAdditionalInfoViewProps, IShowAdditionalInfo } from './lli-checkout-additional-info';\r\n\r\nexport const ShowAdditionalInfo: React.FC = ({ showInfoProps, orderReference, orderNotes, requestedShippingDate, editButton }) => (\r\n \r\n {orderReference}\r\n {orderNotes}\r\n {requestedShippingDate}\r\n {editButton}\r\n \r\n);\r\n\r\nexport const AddAdditionalInfo: React.FC = ({\r\n addFormProps,\r\n submitButton,\r\n cancelButton,\r\n inputGroupProps,\r\n orderReferenceProps,\r\n orderNotesProps,\r\n requestedShippingDateProps,\r\n error\r\n}) => (\r\n \r\n \r\n {error}\r\n {orderReferenceProps.label}\r\n {orderReferenceProps.input}\r\n {orderNotesProps.label}\r\n {orderNotesProps.input}\r\n {requestedShippingDateProps.label}\r\n {requestedShippingDateProps.input}\r\n \r\n {submitButton}\r\n {cancelButton}\r\n \r\n);\r\n\r\nconst LliCheckoutAdditionalInfoView: React.FC = ({ moduleProps, showAdditionalInfo, addAdditionalInfo }) => {\r\n return (\r\n \r\n {showAdditionalInfo && }\r\n {addAdditionalInfo && }\r\n \r\n );\r\n};\r\n\r\nexport default LliCheckoutAdditionalInfoView;\r\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport {\n CacheType,\n createObservableDataAction,\n IAction,\n IActionContext,\n IActionInput,\n IAny,\n ICommerceApiSettings,\n ICreateActionContext,\n IGeneric\n} from '@msdyn365-commerce/core';\nimport { buildCacheKey } from '@msdyn365-commerce-modules/retail-actions';\n\nimport { CheckoutState } from './checkout-state';\n\n/**\n * CheckoutState - action input.\n */\nexport class CheckoutStateInput implements IActionInput {\n private readonly apiSettings: ICommerceApiSettings;\n\n constructor(apiSettings: ICommerceApiSettings) {\n this.apiSettings = apiSettings;\n }\n\n public getCacheKey = () => buildCacheKey('CheckoutState', this.apiSettings);\n\n public getCacheObjectType = () => 'CheckoutState';\n\n public dataCacheType = (): CacheType => 'request';\n}\n\n/**\n * CheckoutState - action.\n * @param input\n * @param ctx\n */\nexport async function checkoutStateAction(input: CheckoutStateInput, ctx: IActionContext): Promise {\n return new CheckoutState();\n}\n\n/**\n * CheckoutState - create new input for create action.\n * @param inputData\n */\nconst createInput = (inputData: ICreateActionContext>): IActionInput => {\n return new CheckoutStateInput(inputData.requestContext.apiSettings);\n};\n\n/**\n * CheckoutState - create action.\n */\nexport const checkoutStateActionDataAction = createObservableDataAction({\n action: >checkoutStateAction,\n input: createInput\n});\n\nexport default checkoutStateActionDataAction;\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport { IGiftCardExtend } from '@msdyn365-commerce/global-state';\nimport { Address, GiftCard, TenderLine, TokenizedPaymentCard } from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceTypes.g';\nimport { action, computed, observable } from 'mobx';\n\n/**\n * State information related to what is needed to succesfully perform a checkout.\n */\nexport class CheckoutState {\n @observable private _tokenizedPaymentCard: TokenizedPaymentCard | undefined;\n\n @computed public get tokenizedPaymentCard(): Readonly | undefined {\n return this._tokenizedPaymentCard;\n }\n\n @observable private _tenderLine: TenderLine | undefined;\n\n @computed public get tenderLine(): Readonly | undefined {\n return this._tenderLine;\n }\n\n @observable private _billingAddress: Address | undefined;\n\n @computed public get billingAddress(): Readonly
| undefined {\n return this._billingAddress;\n }\n\n @observable private _shippingAddress: Address | undefined;\n\n @computed public get shippingAddress(): Readonly
| undefined {\n return this._shippingAddress;\n }\n\n @observable private _cardPrefix: string | undefined;\n\n @computed public get cardPrefix(): Readonly | undefined {\n return this._cardPrefix;\n }\n\n @observable private _giftCards: GiftCard[] = [];\n\n @computed public get giftCards(): readonly GiftCard[] {\n return this._giftCards;\n }\n\n @observable private _giftCardExtends: IGiftCardExtend[] = [];\n\n @computed public get giftCardExtends(): readonly IGiftCardExtend[] {\n return this._giftCardExtends;\n }\n\n @observable private _loyaltyCardNumber?: string;\n\n @computed public get loyaltyCardNumber(): Readonly | undefined {\n return this._loyaltyCardNumber;\n }\n\n @observable private _loyaltyAmount: number = 0;\n\n @computed public get loyaltyAmount(): Readonly | number {\n return this._loyaltyAmount;\n }\n\n @observable private _guestCheckoutEmail: string = '';\n\n @computed public get guestCheckoutEmail(): Readonly | string {\n return this._guestCheckoutEmail;\n }\n\n @observable private _isTermsAndConditionAccepted: boolean = false;\n\n @computed public get isTermsAndConditionAccepted(): Readonly | boolean {\n return this._isTermsAndConditionAccepted;\n }\n\n @observable private _customerAccountAmount: number = 0;\n\n @computed public get customerAccountAmount(): Readonly | number {\n return this._customerAccountAmount;\n }\n\n @action\n public updateTokenizedPaymentCard(newTokenizedPaymentCard: TokenizedPaymentCard): void {\n this._tokenizedPaymentCard = newTokenizedPaymentCard;\n }\n\n @action\n public updateTenderLine(newTenderLine: TenderLine | undefined): void {\n this._tenderLine = newTenderLine;\n }\n\n @action\n public updateShippingAddress(newShippingAddress: Address): void {\n this._shippingAddress = newShippingAddress;\n }\n\n @action\n public updateBillingAddress(newBillingAddress: Address): void {\n this._billingAddress = newBillingAddress;\n }\n\n @action\n public updateCardPrefix(newCardPrefix: string): void {\n this._cardPrefix = newCardPrefix;\n }\n\n @action\n public removeGiftCard(giftCardNumber: string): void {\n this._giftCards = this._giftCards.filter(giftCard => giftCard.Id !== giftCardNumber);\n }\n\n @action\n public removeGiftCardExtend(giftCardNumber: string): void {\n this._giftCardExtends = this._giftCardExtends.filter(giftCard => giftCard.Id !== giftCardNumber);\n }\n\n @action\n public addGiftCard(giftCard: GiftCard): void {\n this._giftCards = [giftCard, ...this._giftCards];\n }\n\n @action\n public addGiftCardExtend(giftCard: IGiftCardExtend): void {\n this._giftCardExtends = [giftCard, ...this._giftCards];\n }\n\n @action\n public updateLoyaltyCardNumber(newLoyaltyCardNumber: string): void {\n this._loyaltyCardNumber = newLoyaltyCardNumber;\n }\n\n @action\n public updateLoyaltyAmount(newAmount: number): void {\n this._loyaltyAmount = newAmount;\n }\n\n @action\n public updateGuestCheckoutEmail(newGuestCheckoutEmail: string): void {\n this._guestCheckoutEmail = newGuestCheckoutEmail;\n }\n\n @action\n public updateTermsAndConditionsAcceptance(newIsTermsAndConditionAccepted: boolean): void {\n this._isTermsAndConditionAccepted = newIsTermsAndConditionAccepted;\n }\n\n @action\n public updateCustomerAccountAmount(newAmount: number): void {\n this._customerAccountAmount = newAmount;\n }\n}\n","/*--------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * See License.txt in the project root for license information.\n *--------------------------------------------------------------*/\n\n/**\n * EnabledPaymentsForOBO enum.\n */\n export enum EnabledPaymentsForOBO {\n OnCustomerAccount = 1,\n ExpressPayment = 0,\n Loyalty = 0,\n GiftCard = 0,\n PaymentInstrument = 0,\n ApplePay = 0\n}\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport { CacheType, IActionContext, IActionInput } from '@msdyn365-commerce/core';\n\nimport { IModuleStates } from './module-state.data';\n\n/**\n * GetModulesInput.\n */\nexport class ModuleStatesCacheKey implements IActionInput {\n public getCacheKey = () => 'ModuleState';\n\n public getCacheObjectType = () => 'ModuleState';\n\n public dataCacheType = (): CacheType => 'none';\n}\n\nexport function getModuleStates(ctx: IActionContext): IModuleStates {\n const cacheKey = new ModuleStatesCacheKey();\n\n let moduleStates = ctx.get(cacheKey.getCacheObjectType(), cacheKey.getCacheKey());\n if (moduleStates) {\n return moduleStates;\n }\n ctx.update(cacheKey, {});\n moduleStates = ctx.get(cacheKey.getCacheObjectType(), cacheKey.getCacheKey());\n return moduleStates;\n}\n\nexport function updateModuleStates(value: IModuleStates, ctx: IActionContext): void {\n const cacheKey = new ModuleStatesCacheKey();\n ctx.update(cacheKey, value);\n}\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport { IModule } from '@msdyn365-commerce/core';\nimport { ArrayExtensions } from '@msdyn365-commerce-modules/retail-actions';\nimport isMatch from 'lodash/isMatch';\nimport { observer } from 'mobx-react';\nimport * as React from 'react';\n\nimport { getModuleStates, updateModuleStates } from './module-state';\nimport { IModuleState, IModuleStateManager, IModuleStateProps, IModuleStates } from './module-state.data';\n\nexport interface IProps extends IModule, IModuleStateProps {\n enableControl?: boolean;\n}\n\nconst sectionContainerModuleId = 'section-container';\nconst paymentInstrumentModuleId = 'payment-instrument';\n\nconst withModuleState =

(WrappedComponent: React.ComponentType

): React.ComponentType

=> {\n /**\n *\n * ModuleState component.\n * @extends {React.Component

}\n */\n @observer\n class ModuleState extends React.Component

{\n constructor(props: P) {\n super(props);\n this.initializeState();\n }\n\n public shouldComponentUpdate(nextProps: IModuleStateProps): boolean {\n if (this.props === nextProps) {\n return false;\n }\n return true;\n }\n\n public render(): JSX.Element | null {\n const { id } = this.props;\n return ;\n }\n\n private readonly initializeState = (): void => {\n const { id, typeName, context } = this.props;\n const states = getModuleStates(context.actionContext);\n if (!states) {\n this.props.telemetry.error('withModuleState initializeState() - states not found');\n return;\n }\n\n if (states[id]) {\n // State has been initialized\n return;\n }\n\n updateModuleStates(\n {\n ...states,\n [id]: {\n id,\n typeName,\n hasInitialized: false,\n hasError: false,\n isRequired: true,\n isCancellable: true,\n isSubmitContainer: false,\n status: undefined,\n childIds: []\n }\n },\n context.actionContext\n );\n };\n\n /**\n * GetModuleStateManager\n * Get module state manager by id.\n * @param id\n */\n private readonly getModuleStateManager = (id: string): IModuleStateManager => {\n const moduleState = this.get()[id];\n return {\n ...moduleState!,\n hasInitialized: this.validate(id, { hasInitialized: true }, true), // All has initialized is initialized\n hasError: this.validate(id, { hasError: true }), // Partial has error is error\n isReady: this.validate(id, { status: 'ready' }, true, true), // All ready is ready (exclued disabled and skipped)\n isUpdating: this.validate(id, { status: 'updating' }), // Partial updating is updating\n isPending: this.validate(id, { status: 'pending' }), // Partial pending is pending\n isSkipped: this.validate(id, { status: 'skipped' }, true, true), // All skipped is skipped (exclued disabled)\n isDisabled: this.validate(id, { status: 'disabled' }, true), // All disabled is disabled\n isCancelAllowed: this.validate(id, { isCancellable: true }, true, true), // Partial not allowed is not allowed\n shouldSubmitContainer: this.validate(id, { isSubmitContainer: true }), // Partial submit is submit.\n hasExternalSubmitGroup: this.hasExternalSubmitGroup(),\n hasModuleState: this.hasModuleState(id),\n setIsRequired: (value: boolean): void => {\n this.update(id, { isRequired: value });\n },\n setIsCancellable: (value: boolean): void => {\n this.update(id, { isCancellable: value });\n },\n setIsSubmitContainer: (value: boolean): void => {\n this.update(id, { isSubmitContainer: value });\n },\n setHasError: (value: boolean): void => {\n this.update(id, { hasError: value });\n },\n onReady: (): void => {\n this.update(id, { status: 'ready' });\n },\n onUpdating: (): void => {\n this.update(id, { status: 'updating' });\n },\n onPending: (): void => {\n this.update(id, { status: 'pending' });\n },\n onSkip: (): void => {\n this.update(id, { status: 'skipped' });\n },\n onDisable: (): void => {\n this.update(id, { status: 'disabled' });\n },\n getModule: (moduleId: string): IModuleStateManager => this.getModuleStateManager(moduleId),\n getModuleByTypeName: (typeName: string): IModuleStateManager => this.getModuleStateManagerByTypeName(typeName),\n init: (options?: Partial): void => {\n if (moduleState?.hasInitialized) {\n // State has been initialized\n return;\n }\n this.update(id, {\n hasInitialized: true,\n ...options\n });\n }\n };\n };\n\n /**\n * GetModuleStateManagerByTypeName\n * Get module state manager by type name.\n * @param typeName\n */\n private readonly getModuleStateManagerByTypeName = (typeName: string): IModuleStateManager => {\n const moduleStates = getModuleStates(this.props.context.actionContext);\n const moduleState = Object.values(moduleStates).find(_moduleState => _moduleState?.typeName === typeName);\n return this.getModuleStateManager((moduleState && moduleState.id) || '');\n };\n\n /**\n * Get\n * Get all module states.\n */\n private readonly get = (): IModuleStates => {\n return getModuleStates(this.props.context.actionContext);\n };\n\n /**\n * Update\n * Update module state.\n * @param id\n * @param value\n */\n private readonly update = (id: string, value: Partial): void => {\n // Console.log('withModuleState - update', id, value);\n const modules = this.get();\n if (!modules[id]) {\n this.props.telemetry.error(`withModuleState update() - Module state with id ${id} is not found.`);\n return;\n }\n modules[id] = {\n ...modules[id]!,\n ...value\n };\n };\n\n private readonly _validateLeaf = (id: string, source: Partial): boolean => {\n const modules = this.get();\n const module = modules[id];\n if (!module) {\n return false;\n }\n return isMatch(module, source);\n };\n\n private readonly _validateContainer = (\n id: string,\n source: Partial,\n allMatched?: boolean,\n skipSkippableItem?: boolean\n ): boolean => {\n const modules = this.get();\n const module = modules[id];\n if (!module) {\n // Module doesn't has module state\n return !!allMatched;\n }\n\n if (skipSkippableItem && (module.status === 'disabled' || module.status === 'skipped')) {\n // Skip disabled or skipped modules\n return !!allMatched;\n }\n\n // It is leaf module\n if (!module.childIds || module.childIds.length === 0) {\n return this._validateLeaf(id, source);\n }\n\n let childIds = module.childIds;\n\n if (this.props.context.app.config.shouldEnableSinglePaymentAuthorizationCheckout) {\n // For new checkout flow, we bypass the isReady check for payment section container to enable the place order button.\n childIds = childIds.filter(childId => !this._isPaymentSectionContainer(childId));\n }\n\n // It is container module\n const method = allMatched ? 'every' : 'some';\n return childIds[method](childId => this._validateContainer(childId, source, allMatched, skipSkippableItem));\n };\n\n /**\n * Check if it is a section container with payment module.\n * @param moduleId -- The id of the module.\n * @returns If it is a section container with payment module.\n */\n private readonly _isPaymentSectionContainer = (moduleId: string): boolean => {\n if (!moduleId.includes(sectionContainerModuleId)) {\n return false;\n }\n\n const modules = this.get();\n const module = modules[moduleId];\n\n if (module && ArrayExtensions.hasElements(module.childIds.filter(childId => childId.includes(paymentInstrumentModuleId)))) {\n return true;\n }\n\n return false;\n };\n\n /**\n * Validate\n * Validate current module and all its child module match the provided condition.\n * @param id\n * @param source\n * @param allMatched\n * @param skipSkippableItem\n */\n private readonly validate = (\n id: string,\n source: Partial,\n allMatched?: boolean,\n skipSkippableItem?: boolean\n ): boolean => {\n const modules = this.get();\n const module = modules[id];\n if (!module) {\n return false;\n }\n\n // It is leaf module\n if (!module.childIds || module.childIds.length === 0) {\n return this._validateLeaf(id, source);\n }\n\n // It is container module\n return this._validateContainer(id, source, allMatched, skipSkippableItem);\n };\n\n /**\n * HasExternalSubmitGroup\n * Module will use external submit group.\n */\n private readonly hasExternalSubmitGroup = (): boolean => {\n return !!this.props.enableControl;\n };\n\n /**\n * HasModuleState\n * Module is using module state manager.\n * @param id\n */\n private readonly hasModuleState = (id: string): boolean => {\n const modules = this.get();\n const module = modules[id];\n return !!module;\n };\n }\n\n return ModuleState;\n};\n\nexport default withModuleState;\n"],"names":["_ref","hasError","orderReferenceRef","orderNotesRef","orderReference","orderNotes","requestedShippingDate","canSubmit","canCancel","onOrderReferenceChange","onOrderNotesChange","onRequestedShippingDateChange","onSubmit","onCancel","resources","orderReferenceInputLabel","orderNotesInputLabel","requestedShippingDateInputLabel","noRequestedShippingDatePlaceholder","additionalInfoErrortext","saveBtnLabel","cancelBtnLabel","onOrderReferenceInputChange","event","target","value","onOrderReferenceInputChangeHandler","onOrderNotesInputChange","onOrderNotesInputChangeHandler","addFormProps","className","submitButton","React","Button","title","color","onClick","cancelButton","inputGroupProps","classnames","orderReferenceProps","label","id","input","ref","type","onChange","maxLength","orderNotesProps","requestedShippingDateProps","DatePicker","selected","dateFormat","isClearable","placeholderText","popperModifiers","name","options","offset","error","role","weekday","year","month","day","canEdit","editBtnLabel","orderReferenceDisplayLabel","orderNotesDisplayLabel","requestedShippingDateDisplayLabel","noRequestedShippingDateMessage","onEdit","showInfoProps","toLocaleDateString","undefined","editButton","LliCheckoutAdditionalInfo","constructor","state","init","async","this","getTextAttribute","dateToString","updateTextAttribute","setState","Date","props","moduleState","status","setHasError","isOrderReferenceValid","onUpdating","onReady","_this$orderReferenceR","current","focus","requestedShippingDateText","_this$props$data$chec","cartState","data","checkout","result","checkoutCart","newAttributeValues","attributeValues","newAttr","args","filter","attr","Name","push","ExtensionProperties","TextValue","TextValueTranslations","updateAttributeValues","attributeName","_this$props$data$chec2","attributeOnCart","find","date","getFullYear","getMonth","toString","padStart","getDate","isDataReady","componentDidMount","when","shouldComponentUpdate","nextProps","nextState","render","_this$getTextAttribut","_this$getTextAttribut2","config","isReady","hasExternalSubmitGroup","viewProps","_objectSpread","moduleProps","showAdditionalInfo","getShowAdditionalInfo","addAdditionalInfo","getAddAdditionalInfo","renderView","__decorate","computed","withModuleState","observer","ShowAdditionalInfo","Node","Object","assign","AddAdditionalInfo","_ref2","_ref3","Module","CheckoutStateInput","apiSettings","_this","getCacheKey","buildCacheKey","getCacheObjectType","dataCacheType","createObservableDataAction","action","ctx","CheckoutState","inputData","requestContext","_giftCards","_giftCardExtends","_loyaltyAmount","_guestCheckoutEmail","_isTermsAndConditionAccepted","_customerAccountAmount","defineProperty","prototype","_tokenizedPaymentCard","_tenderLine","_billingAddress","_shippingAddress","_cardPrefix","_loyaltyCardNumber","updateTokenizedPaymentCard","newTokenizedPaymentCard","updateTenderLine","newTenderLine","updateShippingAddress","newShippingAddress","updateBillingAddress","newBillingAddress","updateCardPrefix","newCardPrefix","removeGiftCard","giftCardNumber","giftCard","Id","removeGiftCardExtend","addGiftCard","__spreadArrays","addGiftCardExtend","updateLoyaltyCardNumber","newLoyaltyCardNumber","updateLoyaltyAmount","newAmount","updateGuestCheckoutEmail","newGuestCheckoutEmail","updateTermsAndConditionsAcceptance","newIsTermsAndConditionAccepted","updateCustomerAccountAmount","observable","EnabledPaymentsForOBO","ModuleStatesCacheKey","getModuleStates","cacheKey","moduleStates","get","update","updateModuleStates","WrappedComponent","_super","ModuleState","call","initializeState","_b","typeName","context","states","actionContext","__assign","_a","hasInitialized","isRequired","isCancellable","isSubmitContainer","childIds","telemetry","getModuleStateManager","validate","isUpdating","isPending","isSkipped","isDisabled","isCancelAllowed","shouldSubmitContainer","hasModuleState","setIsRequired","setIsCancellable","setIsSubmitContainer","onPending","onSkip","onDisable","getModule","moduleId","getModuleByTypeName","getModuleStateManagerByTypeName","values","_moduleState","modules","_validateLeaf","source","module","isMatch","_validateContainer","allMatched","skipSkippableItem","length","app","shouldEnableSinglePaymentAuthorizationCheckout","childId","_isPaymentSectionContainer","includes","ArrayExtensions","hasElements","enableControl","__extends"],"sourceRoot":""}