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,OAAOC,aAAaC,eAAc9G,EAAAA,EAAA,GACP4G,OAAOC,aAAaC,gBAAkB,IACtCA,UC/G3BE,EAAOC,QAAU9M,cCAjB6M,EAAOC,QAAUC","sources":["webpack://Msdyn365.Commerce.Online/./src/actions/get-organization-customer.ts?79c2","webpack://Msdyn365.Commerce.Online/./src/modules/dlvry-checkout-v2-guest-profile/components/get-add-contact-info.tsx?f3b0","webpack://Msdyn365.Commerce.Online/./src/modules/dlvry-checkout-v2-guest-profile/components/get-show-contact-info.tsx?90ed","webpack://Msdyn365.Commerce.Online/./src/modules/dlvry-checkout-v2-guest-profile/dlvry-checkout-v2-guest-profile.tsx?4f9c","webpack://Msdyn365.Commerce.Online/./src/modules/dlvry-checkout-v2-guest-profile/dlvry-checkout-v2-guest-profile.view.tsx?3a1c","webpack://Msdyn365.Commerce.Online/./src/modules/dlvry-checkout-v2/actions/checkout-applied-state.ts?8f07","webpack://Msdyn365.Commerce.Online/./lib/dlvry-checkout-v2-guest-profile/module-registration.js?0c56","webpack://Msdyn365.Commerce.Online/external var \"React\"?0d3b","webpack://Msdyn365.Commerce.Online/external var \"ReactDOM\"?853b"],"sourcesContent":["import { createObservableDataAction, IActionContext, IAction, ICreateActionContext, IGeneric, IAny, ICommerceApiSettings } from '@msdyn365-commerce/core';\r\nimport { CacheType, callActionOrExecute, Customer, DataServiceQuery, IActionInput, IDataServiceRequest } from \"@msdyn365-commerce/retail-proxy\";\r\nimport * as Entities from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceModels.g';\r\n\r\nexport class GetOrganizationCustomerInput implements IActionInput {\r\n private readonly user: string | undefined;\r\n private readonly query: DataServiceQuery;\r\n\r\n constructor(apiSettings: ICommerceApiSettings, user: string) {\r\n this.user = user;\r\n\r\n this.query = new DataServiceQuery();\r\n }\r\n\r\n public getDataServiceRequest = (): IDataServiceRequest => {\r\n return this.query.createDataServiceRequestForOperation(\r\n 'GetOrganizationCustomer',\r\n false,\r\n Entities.CustomerClass,\r\n 'false',\r\n {\r\n bypassCache: 'get',\r\n returnEntity: 'Entities.CustomerClass'\r\n },\r\n {}\r\n );\r\n };\r\n\r\n public shouldCacheOutput = (): boolean => false;\r\n\r\n public getCacheKey = () => `OrganizationCustomer-${this.user}`;\r\n public getCacheObjectType = () => 'OrganizationCustomer';\r\n public dataCacheType = (): CacheType => 'request';\r\n}\r\n\r\nconst createInput = (inputData: ICreateActionContext>): GetOrganizationCustomerInput => {\r\n const { user } = inputData.requestContext;\r\n return new GetOrganizationCustomerInput(inputData.requestContext.apiSettings, user.customerAccountNumber ?? \"\");\r\n};\r\n\r\nexport const getOrganizationCustomerAction = async (input: GetOrganizationCustomerInput, ctx: IActionContext): Promise => {\r\n if (!ctx.requestContext.user.isAuthenticated) {\r\n return {};\r\n }\r\n var customer = await callActionOrExecute(input.getDataServiceRequest(), ctx);\r\n return customer;\r\n};\r\n\r\nexport const getOrganizationCustomer = createObservableDataAction({\r\n id: 'src/actions/get-organization-customer',\r\n action: >getOrganizationCustomerAction,\r\n input: createInput\r\n});\r\n\r\nexport default getOrganizationCustomer;\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 { Button, INodeProps } from '@msdyn365-commerce-modules/utilities';\r\nimport classnames from 'classnames';\r\nimport * as React from 'react';\r\n\r\nexport interface IAddContactInfoInput {\r\n inputRef?: React.RefObject;\r\n customerRequisitionInputRef?: React.RefObject;\r\n customerReferenceInputRef?: React.RefObject;\r\n customerMessageInputRef?: React.RefObject;\r\n hasError: boolean;\r\n email: string;\r\n customerRequisition: string;\r\n customerRequisitionLocked: boolean;\r\n customerReference: string;\r\n customerReferenceLocked: boolean;\r\n customerMessage: string;\r\n resources: {\r\n emailLabel: string;\r\n emailErrortext: string;\r\n saveBtnLabel: string;\r\n cancelBtnLabel: string;\r\n customerRequisitionLabel: string;\r\n customerReferenceLabel: string;\r\n customerMessageLabel: string;\r\n };\r\n canSubmit: boolean;\r\n canCancel: boolean;\r\n onChange(email: string): void;\r\n onChangeCustomerRequisition(customerRequisition: string): void;\r\n onChangeCustomerReference(customerReference: string): void;\r\n onChangeCustomerMessage(customerMessage: string): void;\r\n onSubmit(): void;\r\n onCancel(): void;\r\n}\r\n\r\nexport interface IAddContactInfo {\r\n addFormProps: INodeProps;\r\n submitButton: React.ReactNode;\r\n cancelButton: React.ReactNode;\r\n inputGroupProps: INodeProps;\r\n label: React.ReactNode;\r\n error: React.ReactNode;\r\n input: React.ReactNode;\r\n customerReferenceLabel: React.ReactNode;\r\n customerRequisitionLabel: React.ReactNode;\r\n customerMessageLabel: React.ReactNode;\r\n customerRequisitionInput: React.ReactNode;\r\n customerReferenceInput: React.ReactNode;\r\n customerMessageInput: React.ReactNode;\r\n}\r\n\r\n/**\r\n * On Input change handler function.\r\n * @param onChange -On change input function.\r\n * @returns Call of onChange function.\r\n */\r\nconst onInputChangeHandler = (onChange: (email: string) => void) => (event: React.ChangeEvent): void => {\r\n onChange(event.target.value || '');\r\n};\r\nconst onCustomerRequisitionChangeHandler = (onChange: (customerRequisition: string) => void) => (event: React.ChangeEvent): void => {\r\n onChange(event.target.value || '');\r\n};\r\nconst onCustomerReferenceHandler = (onChange: (customerReference: string) => void) => (event: React.ChangeEvent): void => {\r\n onChange(event.target.value || '');\r\n};\r\nconst onCustomerMessageHandler = (onChange: (customerReference: string) => void) => (event: React.ChangeEvent): void => {\r\n onChange(event.target.value || '');\r\n};\r\n\r\nconst getAddContactInfo = ({\r\n hasError,\r\n inputRef,\r\n email,\r\n customerReference,\r\n customerReferenceLocked,\r\n customerRequisition,\r\n customerRequisitionLocked,\r\n customerMessage,\r\n canSubmit,\r\n canCancel,\r\n onChange,\r\n onChangeCustomerRequisition,\r\n onChangeCustomerReference,\r\n onChangeCustomerMessage,\r\n onSubmit,\r\n onCancel,\r\n customerReferenceInputRef,\r\n customerRequisitionInputRef,\r\n customerMessageInputRef,\r\n resources: {\r\n emailLabel,\r\n emailErrortext,\r\n saveBtnLabel,\r\n cancelBtnLabel,\r\n customerMessageLabel,\r\n customerReferenceLabel,\r\n customerRequisitionLabel\r\n }\r\n}: IAddContactInfoInput): IAddContactInfo => {\r\n const onInputChange = onInputChangeHandler(onChange);\r\n const onCustomerRequisitionChange = onCustomerRequisitionChangeHandler(onChangeCustomerRequisition);\r\n const onCustomerReferenceChange = onCustomerReferenceHandler(onChangeCustomerReference);\r\n const onCustomerMessageChange = onCustomerMessageHandler(onChangeCustomerMessage);\r\n\r\n return {\r\n addFormProps: { className: 'ms-checkout-guest-profile__add-contact-info' },\r\n submitButton: canSubmit && (\r\n \r\n ),\r\n cancelButton: canCancel && (\r\n \r\n ),\r\n inputGroupProps: { className: classnames('ms-checkout-guest-profile__input', { 'is-invalid': hasError }) },\r\n label: (\r\n \r\n ),\r\n customerReferenceLabel: (\r\n \r\n ),\r\n customerRequisitionLabel: (\r\n \r\n ),\r\n customerMessageLabel: (\r\n \r\n ),\r\n error: hasError && (\r\n \r\n {emailErrortext}\r\n \r\n ),\r\n input: (\r\n \r\n ),\r\n customerRequisitionInput: (\r\n
\r\n \r\n
\r\n ),\r\n customerReferenceInput: (\r\n
\r\n \r\n
\r\n ),\r\n customerMessageInput: (\r\n \r\n )\r\n };\r\n};\r\n\r\nexport default getAddContactInfo;\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 { Button, INodeProps } from '@msdyn365-commerce-modules/utilities';\r\nimport classnames from 'classnames';\r\nimport * as React from 'react';\r\n\r\nexport interface IShowContactInfoInput {\r\n canEdit: boolean;\r\n email: string;\r\n customerRequisition:string;\r\n customerRequisitionLocked:boolean;\r\n customerReference: string;\r\n customerReferenceLocked: boolean;\r\n customerMessage: string;\r\n resources: {\r\n editBtnLabel: string;\r\n };\r\n onEdit(): void;\r\n}\r\n\r\nexport interface IShowContactInfo {\r\n showInfoProps: INodeProps;\r\n email: React.ReactNode;\r\n customerRequisition: React.ReactNode;\r\n customerReference: React.ReactNode;\r\n customerMessage: React.ReactNode;\r\n editButton?: React.ReactNode;\r\n}\r\n\r\nconst getContactInfo = ({\r\n canEdit,\r\n email,\r\n customerRequisition,\r\n customerRequisitionLocked,\r\n customerReference,\r\n customerReferenceLocked,\r\n customerMessage,\r\n resources: {\r\n editBtnLabel\r\n },\r\n onEdit\r\n}: IShowContactInfoInput): IShowContactInfo => ({\r\n showInfoProps: { className: 'ms-checkout-guest-profile__selected-item' },\r\n email: {email},\r\n customerRequisition: (\r\n
\r\n {customerRequisition}\r\n
\r\n ),\r\n customerReference: (\r\n
\r\n {customerReference}\r\n
\r\n ),\r\n customerMessage:
{customerMessage}
,\r\n editButton: canEdit && (\r\n \r\n )\r\n});\r\n\r\nexport default getContactInfo;\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 { IModuleStateProps, withModuleState } from '@msdyn365-commerce-modules/checkout-utilities';\r\nimport { EmailRegex, StringExtensions } from '@msdyn365-commerce-modules/retail-actions';\r\nimport { IModuleProps } from '@msdyn365-commerce-modules/utilities';\r\nimport { CheckoutModule, ErrorLocation } from '@msdyn365-commerce/global-state';\r\nimport classnames from 'classnames';\r\nimport { action, computed, reaction, when } from 'mobx';\r\nimport { observer } from 'mobx-react';\r\nimport * as React from 'react';\r\nimport { focusOnCheckoutError } from '@msdyn365-commerce-modules/checkout';\r\nimport { ErrorComponent } from '@msdyn365-commerce-modules/checkout';\r\n\r\nimport { IDlvryCheckoutV2GuestProfileData } from './dlvry-checkout-v2-guest-profile.data';\r\nimport { IDlvryCheckoutV2GuestProfileProps } from './dlvry-checkout-v2-guest-profile.props.autogenerated';\r\nimport getAddContactInfo, { IAddContactInfo } from './components/get-add-contact-info';\r\nimport getShowContactInfo, { IShowContactInfo } from './components/get-show-contact-info';\r\nimport { CheckoutAppliedStateInput } from '../dlvry-checkout-v2/actions/checkout-applied-state';\r\n\r\nexport * from './components/get-add-contact-info';\r\nexport * from './components/get-show-contact-info';\r\n\r\ninterface ICheckoutGuestProfileState {\r\n email: string;\r\n customerRequisition: string;\r\n customerRequisitionLocked: boolean;\r\n customerReference: string;\r\n customerReferenceLocked: boolean;\r\n customerMessage: string;\r\n hasCheckoutError?: boolean;\r\n errorMessage?: string;\r\n}\r\n\r\nexport interface ICheckoutGuestProfileModuleProps extends IDlvryCheckoutV2GuestProfileProps, IModuleStateProps {}\r\n\r\nexport interface ICheckoutGuestProfileViewProps extends IDlvryCheckoutV2GuestProfileProps, ICheckoutGuestProfileState {\r\n moduleProps: IModuleProps;\r\n showContactInfo?: IShowContactInfo;\r\n addContactInfo?: IAddContactInfo;\r\n alert?: React.ReactNode;\r\n checkoutErrorRef?: React.RefObject;\r\n\r\n onChange?(email: string): void;\r\n onEdit?(): void;\r\n onSubmit?(): void;\r\n onCancel?(): void;\r\n}\r\n\r\n/**\r\n *\r\n * CheckoutGuestProfile component.\r\n * @extends {React.PureComponent, ICheckoutGuestProfileState>}\r\n */\r\n// @ts-expect-error\r\n@withModuleState\r\n@observer\r\nclass CheckoutGuestProfile extends React.Component {\r\n public state: ICheckoutGuestProfileState = {\r\n email:\r\n (this.props.context &&\r\n this.props.context.request &&\r\n this.props.context.request.user &&\r\n this.props.context.request.user.isAuthenticated &&\r\n this.props.context.request.user.emailAddress) ||\r\n '',\r\n customerRequisition: '',\r\n customerRequisitionLocked: false,\r\n customerReference: '',\r\n customerReferenceLocked: false,\r\n customerMessage: ''\r\n };\r\n\r\n private readonly CustomerRequisition = 'CUSTOMER_REQUISITION';\r\n private readonly CustomerReference = 'CUSTOMER_REFERENCE';\r\n private readonly CustomerMessage = 'CUSTOMER_MESSAGE';\r\n\r\n private readonly inputRef: React.RefObject = React.createRef();\r\n private readonly customerReferenceInputRef: React.RefObject = React.createRef();\r\n private readonly customerRequisitionInputRef: React.RefObject = React.createRef();\r\n private readonly customerMessageInputRef: React.RefObject = React.createRef();\r\n\r\n private readonly checkoutErrorRef: 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 @computed get hasEmailError(): boolean {\r\n return this.props.moduleState.hasError && !this.state.hasCheckoutError;\r\n }\r\n\r\n public componentDidMount(): void {\r\n when(\r\n () => this.isDataReady,\r\n async () => {\r\n this.setState({\r\n customerReference: await this.getExtensionProperty(this.CustomerReference),\r\n customerRequisition: await this.getExtensionProperty(this.CustomerRequisition),\r\n customerMessage: await this.getExtensionProperty(this.CustomerMessage)\r\n });\r\n\r\n await this.init();\r\n }\r\n );\r\n\r\n reaction(\r\n () => this.props.data.checkout.result?.isExpressCheckoutApplied,\r\n async isExpressCheckoutApplied => {\r\n const emailAddressFromExpressCheckout = this.props.data.checkout.result?.emailAddressFromExpressCheckout ?? '';\r\n const isEmailFromExpressCheckoutDifferent =\r\n !StringExtensions.isNullOrEmpty(emailAddressFromExpressCheckout) &&\r\n emailAddressFromExpressCheckout !== this.state.email;\r\n\r\n if (\r\n isExpressCheckoutApplied &&\r\n (!this.props.data.checkout.result?.isExpressAddressApplied || isEmailFromExpressCheckoutDifferent)\r\n ) {\r\n await this.submitEmail(emailAddressFromExpressCheckout);\r\n }\r\n }\r\n );\r\n\r\n if (this.props.data.checkout.result?.shouldEnableCheckoutErrorDisplayMessaging) {\r\n reaction(\r\n () => this.props.data.checkout.result?.checkoutError,\r\n checkoutError => {\r\n if (checkoutError && checkoutError.errorLocation === ErrorLocation.CheckoutGuestProfile && checkoutError.errorMessage) {\r\n this._setErrorMessage(checkoutError.errorMessage);\r\n }\r\n }\r\n );\r\n\r\n reaction(\r\n () => this.props.data.checkout.result?.checkoutErrorFocus,\r\n checkoutErrorFocus => {\r\n if (checkoutErrorFocus === CheckoutModule.CheckoutGuestProfile) {\r\n void focusOnCheckoutError(this.checkoutErrorRef, this.props.context.actionContext);\r\n }\r\n }\r\n );\r\n }\r\n }\r\n\r\n public shouldComponentUpdate(nextProps: ICheckoutGuestProfileModuleProps, nextState: ICheckoutGuestProfileState): 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, hasExternalSubmitGroup }\r\n } = this.props;\r\n const { email, hasCheckoutError, errorMessage } = this.state;\r\n // const email = this.props.data.checkout.result?.guestCheckoutEmail ?? '';\r\n\r\n const viewProps: ICheckoutGuestProfileViewProps = {\r\n ...this.props,\r\n ...this.state,\r\n checkoutErrorRef: this.checkoutErrorRef,\r\n onChange: this.onChange,\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('ms-checkout-guest-profile', className, isReady ? 'show' : 'add')\r\n },\r\n alert: hasCheckoutError && errorMessage && (\r\n \r\n ),\r\n showContactInfo: isReady\r\n ? getShowContactInfo({\r\n canEdit: !hasExternalSubmitGroup,\r\n email,\r\n customerRequisition: this.state.customerRequisition,\r\n customerRequisitionLocked: this.state.customerRequisitionLocked,\r\n customerReference: this.state.customerReference,\r\n customerReferenceLocked: this.state.customerReferenceLocked,\r\n customerMessage: this.state.customerMessage,\r\n resources,\r\n onEdit: this.onEdit\r\n })\r\n : undefined,\r\n addContactInfo: !isReady\r\n ? getAddContactInfo({\r\n email: this.state.email,\r\n customerReference: this.state.customerReference,\r\n customerReferenceLocked: this.state.customerReferenceLocked,\r\n customerRequisition: this.state.customerRequisition,\r\n customerRequisitionLocked: this.state.customerRequisitionLocked,\r\n customerMessage: this.state.customerMessage,\r\n hasError: this.hasEmailError,\r\n resources,\r\n inputRef: this.inputRef,\r\n customerReferenceInputRef: this.customerReferenceInputRef,\r\n customerRequisitionInputRef: this.customerRequisitionInputRef,\r\n customerMessageInputRef: this.customerMessageInputRef,\r\n onChange: this.onChange,\r\n onChangeCustomerRequisition: this.onChangeCustomerRequisition,\r\n onChangeCustomerReference: this.onChangeCustomerReference,\r\n onChangeCustomerMessage: this.onChangeCustomerMessage,\r\n canSubmit: !hasExternalSubmitGroup,\r\n onSubmit: this.onSubmit,\r\n canCancel: !hasExternalSubmitGroup && !!email,\r\n onCancel: this.onCancel\r\n })\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 checkoutState = this.props.data.checkout.result;\r\n const hasInvoiceLine = checkoutState?.checkoutCart.hasInvoiceLine;\r\n const email = this.getInitialEmail();\r\n\r\n await this.loadFixedReferenceAndRequisition();\r\n\r\n const isEmailValid = this.isEmailValid(email);\r\n this.props.moduleState.init({\r\n onEdit: this.onEdit,\r\n onCancel: this.onCancel,\r\n onSubmit: this.onSubmit,\r\n status: hasInvoiceLine ? 'disabled' : email && isEmailValid ? 'ready' : 'updating',\r\n hasError: !!email && !isEmailValid\r\n });\r\n\r\n if (email) {\r\n await this.updateGuestProfile(email);\r\n checkoutState?.updateHasGuestCheckoutEmail({ newHasGuestCheckoutEmail: true });\r\n } else {\r\n checkoutState?.updateHasGuestCheckoutEmail({ newHasGuestCheckoutEmail: false });\r\n }\r\n\r\n if (email || this.state.email) {\r\n await this.onSubmit();\r\n }\r\n };\r\n\r\n private readonly onChange = (rowEmail: string): void => {\r\n const email = (rowEmail || '').replace(new RegExp('[<>]', 'gi'), '');\r\n this.setState({ email });\r\n if (this.props.moduleState.hasError) {\r\n // Clear error during user updating the email\r\n this.props.moduleState.setHasError(false);\r\n this.setState({\r\n hasCheckoutError: false\r\n });\r\n }\r\n };\r\n\r\n private readonly onChangeCustomerRequisition = (customerRequisition: string): void => {\r\n this.setState({ customerRequisition });\r\n };\r\n\r\n private readonly onChangeCustomerReference = (customerReference: string): void => {\r\n this.setState({ customerReference });\r\n };\r\n\r\n private readonly onChangeCustomerMessage = (customerMessage: string): void => {\r\n this.setState({ customerMessage });\r\n };\r\n\r\n private readonly setErrorMsgOboUserEmailEmpty = (): string => {\r\n // Clear prior error\r\n this.props.moduleState.setHasError(false);\r\n this.setState({\r\n hasCheckoutError: false\r\n });\r\n return '';\r\n };\r\n\r\n private readonly isEmailValid = (email: string): boolean => {\r\n return EmailRegex.defaultRegex.test(email);\r\n };\r\n\r\n private readonly getExtensionProperty = async (propertyName: string): Promise => {\r\n const checkout = await this.props.data.checkout;\r\n\r\n if (\r\n this.props.context &&\r\n this.props.context.request &&\r\n this.props.context.request.user &&\r\n this.props.context.request.user.isAuthenticated &&\r\n checkout\r\n ) {\r\n const extensionProperty = checkout.checkoutCart.cart.ExtensionProperties?.find(property => {\r\n return property.Key === propertyName;\r\n });\r\n if (extensionProperty && extensionProperty.Value?.StringValue) {\r\n return extensionProperty.Value.StringValue;\r\n }\r\n }\r\n return '';\r\n };\r\n\r\n private readonly getInitialEmail = (): string => {\r\n const checkoutState = this.props.data.checkout.result;\r\n const customerAccountInformation = this.props.data.accountInformation?.result;\r\n const emailOnCart = checkoutState?.checkoutCart.cart.ReceiptEmail;\r\n const hasInvoiceLine = checkoutState?.checkoutCart.hasInvoiceLine;\r\n\r\n let updateEmail: string = '';\r\n\r\n // if obo enabled and profile selected, we need to send the order status to obo user not store manager.\r\n if (Msdyn365.isOboRequest(this.props.context.request)) {\r\n updateEmail =\r\n customerAccountInformation && customerAccountInformation.Email !== undefined\r\n ? customerAccountInformation.Email\r\n : this.setErrorMsgOboUserEmailEmpty();\r\n } else {\r\n updateEmail = this.state.email;\r\n }\r\n\r\n const email = hasInvoiceLine\r\n ? this.props.context.request.user.emailAddress ?? ''\r\n : emailOnCart ??\r\n (checkoutState?.isExpressCheckoutApplied && !StringExtensions.isNullOrEmpty(checkoutState.emailAddressFromExpressCheckout)\r\n ? checkoutState.emailAddressFromExpressCheckout\r\n : undefined) ??\r\n updateEmail;\r\n\r\n return email;\r\n };\r\n\r\n private readonly loadFixedReferenceAndRequisition = async (): Promise => {\r\n const org = await this.props.data.organizationInformation;\r\n const ref = org?.ExtensionProperties?.find(x => x.Key === 'FIXED_REF')?.Value?.StringValue;\r\n const req = org?.ExtensionProperties?.find(x => x.Key === 'FIXED_REQ')?.Value?.StringValue;\r\n\r\n this.setState({\r\n customerReference: ref ?? this.state.customerReference,\r\n customerReferenceLocked: Boolean(ref),\r\n customerRequisition: req ?? this.state.customerRequisition,\r\n customerRequisitionLocked: Boolean(req)\r\n });\r\n };\r\n\r\n private readonly updateGuestProfile = async (newGuestCheckoutEmail: string): Promise => {\r\n if (this.props.data.checkout.result) {\r\n // await this.props.data.checkout.result.updateGuestCheckoutEmail({ newGuestCheckoutEmail });\r\n\r\n const newApplied = { ...await this.props.data.checkoutAppliedState };\r\n newApplied.applied.customerInformation = true;\r\n newApplied.newCartObject.Comment = await this.getExtensionProperty(this.CustomerReference);\r\n newApplied.newCartObject.ReceiptEmail = newGuestCheckoutEmail;\r\n newApplied.newCartObject.ExtensionProperties = [\r\n { Key: this.CustomerRequisition, Value: { StringValue: await this.getExtensionProperty(this.CustomerRequisition) } },\r\n { Key: this.CustomerReference, Value: { StringValue: await this.getExtensionProperty(this.CustomerReference) } },\r\n { Key: this.CustomerMessage, Value: { StringValue: await this.getExtensionProperty(this.CustomerMessage) } }\r\n ];\r\n this.props.context.actionContext.update(new CheckoutAppliedStateInput(), newApplied);\r\n\r\n this.setState({ email: newGuestCheckoutEmail });\r\n }\r\n };\r\n\r\n private readonly onEdit = (): void => {\r\n this.props.telemetry.information('Guest profile onEdit is called.');\r\n\r\n this.props.moduleState.onUpdating();\r\n };\r\n\r\n private readonly onSubmit = async (): Promise => {\r\n this.props.telemetry.information('Guest profile onSubmit is called.');\r\n\r\n if (!this.props.data.checkout.result) {\r\n console.error('Could not find checkout cart to update guest checkout email.');\r\n return;\r\n }\r\n\r\n const { email, customerRequisition, customerReference, customerMessage } = this.state;\r\n\r\n const isValid = this.isEmailValid(email);\r\n if (!isValid) {\r\n this.props.moduleState.setHasError(true);\r\n\r\n const input = this.inputRef.current?.focus && (this.inputRef.current as HTMLElement);\r\n input?.focus();\r\n return;\r\n }\r\n\r\n try {\r\n /* const newCheckoutCart: Partial = {\r\n Comment: customerReference,\r\n ReceiptEmail: email,\r\n ExtensionProperties: [\r\n { Key: 'CUSTOMER_REQUISITION', Value: { StringValue: customerRequisition } },\r\n { Key: 'CUSTOMER_REFERENCE', Value: { StringValue: customerReference } },\r\n { Key: 'CUSTOMER_MESSAGE', Value: { StringValue: customerMessage } }\r\n ]\r\n };\r\n\r\n await this.props.data.checkout.result?.checkoutCart.updateCart({\r\n newCartObject: newCheckoutCart as Cart\r\n }); */\r\n // This will do an check internally to compare against email on cart and not send another\r\n // request if it's the same.\r\n // await this.props.data.checkout.result?.updateGuestCheckoutEmail({ newGuestCheckoutEmail: email });\r\n this.setState({ email });\r\n\r\n const newApplied = { ...await this.props.data.checkoutAppliedState };\r\n newApplied.applied.customerInformation = true;\r\n newApplied.newCartObject.Comment = customerReference;\r\n newApplied.newCartObject.ReceiptEmail = email;\r\n newApplied.newCartObject.ExtensionProperties = [\r\n { Key: this.CustomerRequisition, Value: { StringValue: customerRequisition } },\r\n { Key: this.CustomerReference, Value: { StringValue: customerReference } },\r\n { Key: this.CustomerMessage, Value: { StringValue: customerMessage } }\r\n ];\r\n this.props.context.actionContext.update(new CheckoutAppliedStateInput(), newApplied);\r\n\r\n this.props.moduleState.onReady();\r\n } catch (error) {\r\n alert('Error submitting ref and/or req to checkout cart.');\r\n console.error('Error submitting ref and/or req to checkout cart.');\r\n console.error(error);\r\n this.props.moduleState.setHasError(true);\r\n }\r\n };\r\n\r\n /**\r\n * Submit the email address.\r\n * @param email - The email to be submitted.\r\n *\r\n */\r\n private readonly submitEmail = async (email: string): Promise => {\r\n const isValid = this.isEmailValid(email);\r\n if (!isValid) {\r\n this.props.moduleState.setHasError(true);\r\n\r\n const input = this.inputRef.current?.focus && (this.inputRef.current as HTMLElement);\r\n input?.focus();\r\n } else {\r\n await this.updateGuestProfile(email);\r\n this.props.moduleState.onReady();\r\n }\r\n };\r\n\r\n private readonly onCancel = (): void => {\r\n this.props.telemetry.information('Guest profile onCancel is called.');\r\n\r\n // Reset to the saved value\r\n if (!this.props.data.checkout.result) {\r\n return;\r\n }\r\n\r\n const newCartObject = this.props.data.checkoutAppliedState.result?.newCartObject;\r\n const email = newCartObject?.ReceiptEmail ?? this.getInitialEmail();\r\n const customerReference = newCartObject?.ExtensionProperties?.find(x => x.Key === this.CustomerReference)?.Value?.StringValue ?? '';\r\n const customerRequisition = newCartObject?.ExtensionProperties?.find(x => x.Key === this.CustomerRequisition)?.Value?.StringValue ?? '';\r\n const customerMessage = newCartObject?.ExtensionProperties?.find(x => x.Key === this.CustomerMessage)?.Value?.StringValue ?? '';\r\n\r\n if (!email) {\r\n // It has no saved email, set to status updating and request user to fill the email form\r\n this.props.moduleState.onUpdating();\r\n } else {\r\n // It has saved email, set to status ready\r\n this.setState({\r\n email,\r\n customerReference,\r\n customerRequisition,\r\n customerMessage\r\n });\r\n this.props.moduleState.setHasError(false);\r\n this.setState({\r\n hasCheckoutError: false\r\n });\r\n this.props.moduleState.onReady();\r\n }\r\n };\r\n\r\n @action\r\n private readonly _setErrorMessage = (errorMessage: string): void => {\r\n this.props.telemetry.error(errorMessage);\r\n this.props.moduleState.setHasError(true);\r\n this.props.moduleState.onUpdating();\r\n this.setState({\r\n hasCheckoutError: true,\r\n errorMessage\r\n });\r\n };\r\n}\r\n\r\nexport default CheckoutGuestProfile;\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 { IAddContactInfo, ICheckoutGuestProfileViewProps, IShowContactInfo } from './dlvry-checkout-v2-guest-profile';\r\n\r\nexport const ShowContactInfo: React.FC = ({ showInfoProps, email, editButton, customerRequisition, customerReference, customerMessage }) => (\r\n \r\n {email}\r\n {customerReference}\r\n {customerRequisition}\r\n {customerMessage}\r\n {editButton}\r\n \r\n);\r\n\r\nexport const AddContactInfo: React.FC = ({\r\n addFormProps,\r\n submitButton,\r\n cancelButton,\r\n inputGroupProps,\r\n label,\r\n error,\r\n input,\r\n customerReferenceInput,\r\n customerRequisitionInput,\r\n customerReferenceLabel,\r\n customerRequisitionLabel,\r\n customerMessageLabel,\r\n customerMessageInput\r\n}) => (\r\n \r\n \r\n {label}\r\n {error}\r\n {input}\r\n {customerReferenceLabel}\r\n {customerReferenceInput}\r\n {customerRequisitionLabel}\r\n {customerRequisitionInput}\r\n {customerMessageLabel}\r\n {customerMessageInput}\r\n \r\n {submitButton}\r\n {cancelButton}\r\n \r\n);\r\n\r\nconst CheckoutGuestProfileView: React.FC = ({\r\n moduleProps,\r\n checkoutErrorRef,\r\n alert,\r\n showContactInfo,\r\n addContactInfo\r\n}) => {\r\n return (\r\n \r\n {alert}\r\n {showContactInfo && }\r\n {addContactInfo && }\r\n \r\n );\r\n};\r\n\r\nexport default CheckoutGuestProfileView;\r\n","import {\r\n CacheType,\r\n createObservableDataAction,\r\n IAction,\r\n IActionContext,\r\n IActionInput,\r\n IAny,\r\n ICreateActionContext,\r\n IGeneric\r\n} from '@msdyn365-commerce/core';\r\nimport { Cart, CartLine } from '@msdyn365-commerce/retail-proxy';\r\n\r\nexport interface ICheckoutAppliedState {\r\n applied: {\r\n customerInformation: boolean;\r\n shippingInformation: boolean;\r\n deliveryOptions: boolean;\r\n },\r\n newCartObject: Partial;\r\n newCartLinesObject: CartLine[];\r\n}\r\n\r\nexport class CheckoutAppliedStateInput implements IActionInput {\r\n public getCacheKey = () => `CheckoutAppliedState`;\r\n public getCacheObjectType = () => 'CheckoutAppliedState';\r\n public dataCacheType = (): CacheType => 'request';\r\n}\r\n\r\nexport async function checkoutAppliedStateAction(input: CheckoutAppliedStateInput, ctx: IActionContext): Promise {\r\n return {\r\n applied: {\r\n customerInformation: false,\r\n shippingInformation: false,\r\n deliveryOptions: false\r\n },\r\n newCartObject: {},\r\n newCartLinesObject: []\r\n };\r\n}\r\n\r\nconst createInput = (inputData: ICreateActionContext>): IActionInput => {\r\n return new CheckoutAppliedStateInput();\r\n};\r\n\r\nexport default createObservableDataAction({\r\n action: >checkoutAppliedStateAction,\r\n input: createInput\r\n});\r\n","const binding = { modules: {}, dataActions: {} };\n\n const registerActionId = (actionPath) => {\n if (binding.dataActions[actionPath] &&\n binding.dataActions[actionPath].default &&\n binding.dataActions[actionPath].default.prototype &&\n binding.dataActions[actionPath].default.prototype.id) {\n binding.dataActions[binding.dataActions[actionPath].default.prototype.id] = binding.dataActions[actionPath];\n } else {\n Object.keys(binding.dataActions[actionPath] || {}).forEach(exportName => {\n if (binding.dataActions[actionPath][exportName] &&\n binding.dataActions[actionPath][exportName].prototype &&\n binding.dataActions[actionPath][exportName].prototype.Action) {\n binding.dataActions[binding.dataActions[actionPath][exportName].prototype.id] = binding.dataActions[actionPath][exportName];\n }\n })\n }\n };\n\n const registerSanitizedActionPath = (sanitizedActionPath, dataAction) => {\n if (process.env.NODE_ENV === 'development') {\n if (!dataAction.default) {\n throw new Error('Data action path does not have a default export');\n }\n if (!(dataAction.default.prototype.id && binding.dataActions[dataAction.default.prototype.id]) || !binding.dataActions[sanitizedActionPath]) {\n binding.dataActions[sanitizedActionPath] = dataAction;\n }\n } else {\n binding.dataActions[sanitizedActionPath] = dataAction;\n if (!binding.dataActions[sanitizedActionPath].default) {\n throw new Error('Data action path ' + sanitizedActionPath + ' does not have a default export');\n }\n binding.dataActions[sanitizedActionPath].default.prototype.RegistrationId = sanitizedActionPath;\n if (binding.dataActions[sanitizedActionPath].default.prototype.id) {\n binding.dataActions[binding.dataActions[sanitizedActionPath].default.prototype.id] = sanitizedActionPath;\n }\n }\n };\n \n\n (binding.modules['dlvry-checkout-v2-guest-profile'] = {\n c: () => require('partner/modules/dlvry-checkout-v2-guest-profile/dlvry-checkout-v2-guest-profile.tsx'),\n $type: 'contentModule',\n da: [{name:'accountInformation', path:'@msdyn365-commerce-modules/retail-actions/dist/lib/get-customer', runOn: 0},{name:'cart', path:'@msdyn365-commerce/global-state/dist/lib/data-actions/cart-state-data-action', runOn: 1},{name:'checkout', path:'@msdyn365-commerce/global-state/dist/lib/data-actions/checkout-state-data-action', runOn: 1},{name:'checkoutAppliedState', path:'modules/dlvry-checkout-v2/actions/checkout-applied-state', runOn: 0},{name:'organizationInformation', path:'actions/get-organization-customer', runOn: 0}],\n \n iNM: false,\n ns: '__local__',\n n: 'dlvry-checkout-v2-guest-profile',\n p: '__local__',\n \n pdp: '',\n \n \n md: 'src/modules/dlvry-checkout-v2-guest-profile'\n });\n \n\n {\n const sanitizedActionPath = '@msdyn365-commerce-modules/retail-actions/dist/lib/get-customer';\n let dataAction = require('@msdyn365-commerce-modules/retail-actions/dist/lib/get-customer');\n registerSanitizedActionPath(sanitizedActionPath, dataAction);\n }\n \n\n {\n const sanitizedActionPath = '@msdyn365-commerce/global-state/dist/lib/data-actions/cart-state-data-action';\n let dataAction = require('@msdyn365-commerce/global-state/dist/lib/data-actions/cart-state-data-action');\n registerSanitizedActionPath(sanitizedActionPath, dataAction);\n }\n \n\n {\n const sanitizedActionPath = '@msdyn365-commerce/global-state/dist/lib/data-actions/checkout-state-data-action';\n let dataAction = require('@msdyn365-commerce/global-state/dist/lib/data-actions/checkout-state-data-action');\n registerSanitizedActionPath(sanitizedActionPath, dataAction);\n }\n \n\n {\n const sanitizedActionPath = 'actions/get-organization-customer';\n let dataAction = require('partner/actions/get-organization-customer');\n registerSanitizedActionPath(sanitizedActionPath, dataAction);\n }\n \n\n {\n const sanitizedActionPath = 'modules/dlvry-checkout-v2/actions/checkout-applied-state';\n let dataAction = require('partner/modules/dlvry-checkout-v2/actions/checkout-applied-state');\n registerSanitizedActionPath(sanitizedActionPath, dataAction);\n }\n \n\n \n window.__bindings__ = window.__bindings__ || {};\n window.__bindings__.modules = {\n ...window.__bindings__.modules || {},\n ...binding.modules\n };\n \n window.__bindings__.dataActions = {\n ...window.__bindings__.dataActions || {},\n ...binding.dataActions\n };\n export const viewDictionary = {};\n viewDictionary['__local__|__local__|modules|dlvry-checkout-v2-guest-profile|dlvry-checkout-v2-guest-profile'] = {\n c: () => require('partner/modules/dlvry-checkout-v2-guest-profile/dlvry-checkout-v2-guest-profile.view.tsx'),\n cn: '__local__-__local__-dlvry-checkout-v2-guest-profile'\n };\nwindow.__bindings__ = window.__bindings__ || {};\nwindow.__bindings__.viewDictionary = {\n ...window.__bindings__.viewDictionary || {},\n ...viewDictionary\n };","module.exports = React;","module.exports = ReactDOM;"],"names":["GetOrganizationCustomerInput","constructor","apiSettings","user","getDataServiceRequest","this","query","createDataServiceRequestForOperation","Entities","bypassCache","returnEntity","shouldCacheOutput","getCacheKey","getCacheObjectType","dataCacheType","DataServiceQuery","getOrganizationCustomerAction","async","input","ctx","requestContext","isAuthenticated","callActionOrExecute","getOrganizationCustomer","createObservableDataAction","id","action","inputData","_user$customerAccount","customerAccountNumber","_ref","hasError","inputRef","email","customerReference","customerReferenceLocked","customerRequisition","customerRequisitionLocked","customerMessage","canSubmit","canCancel","onChange","onChangeCustomerRequisition","onChangeCustomerReference","onChangeCustomerMessage","onSubmit","onCancel","customerReferenceInputRef","customerRequisitionInputRef","customerMessageInputRef","resources","emailLabel","emailErrortext","saveBtnLabel","cancelBtnLabel","customerMessageLabel","customerReferenceLabel","customerRequisitionLabel","onInputChange","event","target","value","onInputChangeHandler","onCustomerRequisitionChange","onCustomerRequisitionChangeHandler","onCustomerReferenceChange","onCustomerReferenceHandler","onCustomerMessageChange","onCustomerMessageHandler","addFormProps","className","submitButton","React","Button","title","color","onClick","cancelButton","inputGroupProps","classnames","label","error","role","ref","type","customerRequisitionInput","undefined","maxLength","readOnly","customerReferenceInput","customerMessageInput","rows","canEdit","editBtnLabel","onEdit","showInfoProps","editButton","CheckoutGuestProfile","state","props","context","request","emailAddress","CustomerRequisition","CustomerReference","CustomerMessage","checkoutErrorRef","init","checkoutState","data","checkout","result","hasInvoiceLine","checkoutCart","getInitialEmail","loadFixedReferenceAndRequisition","isEmailValid","moduleState","status","updateGuestProfile","updateHasGuestCheckoutEmail","newHasGuestCheckoutEmail","rowEmail","replace","RegExp","setState","setHasError","hasCheckoutError","setErrorMsgOboUserEmailEmpty","EmailRegex","defaultRegex","test","getExtensionProperty","_checkout$checkoutCar","_extensionProperty$Va","extensionProperty","cart","ExtensionProperties","find","property","Key","propertyName","Value","StringValue","_this$props$data$acco","_this$props$context$r","customerAccountInformation","accountInformation","emailOnCart","ReceiptEmail","updateEmail","Msdyn365","Email","isExpressCheckoutApplied","StringExtensions","isNullOrEmpty","emailAddressFromExpressCheckout","_org$ExtensionPropert","_org$ExtensionPropert2","org","organizationInformation","x","req","Boolean","newApplied","_objectSpread","checkoutAppliedState","applied","customerInformation","newCartObject","Comment","newGuestCheckoutEmail","actionContext","update","CheckoutAppliedStateInput","telemetry","information","onUpdating","console","onReady","alert","_this$inputRef$curren","current","focus","submitEmail","_this$inputRef$curren2","_this$props$data$chec","_newCartObject$Receip","_newCartObject$Extens","_newCartObject$Extens2","_newCartObject$Extens3","_newCartObject$Extens4","_newCartObject$Extens5","_newCartObject$Extens6","_setErrorMessage","errorMessage","componentDidMount","_this$props$data$chec6","when","isDataReady","reaction","_this$props$data$chec2","_this$props$data$chec3","_this$props$data$chec4","_this$props$data$chec5","isEmailFromExpressCheckoutDifferent","isExpressAddressApplied","shouldEnableCheckoutErrorDisplayMessaging","_this$props$data$chec7","checkoutError","errorLocation","ErrorLocation","_this$props$data$chec8","checkoutErrorFocus","CheckoutModule","focusOnCheckoutError","shouldComponentUpdate","nextProps","nextState","render","config","isReady","hasExternalSubmitGroup","viewProps","moduleProps","ErrorComponent","Object","assign","errorMessageTitle","message","showContactInfo","getShowContactInfo","addContactInfo","getAddContactInfo","hasEmailError","renderView","__decorate","computed","withModuleState","observer","ShowContactInfo","Node","AddContactInfo","_ref2","_ref3","Module","checkoutAppliedStateAction","shippingInformation","deliveryOptions","newCartLinesObject","binding","modules","dataActions","registerSanitizedActionPath","sanitizedActionPath","dataAction","default","Error","prototype","RegistrationId","c","require","$type","da","name","path","runOn","iNM","ns","n","p","pdp","md","window","__bindings__","viewDictionary","cn","module","exports","ReactDOM"],"sourceRoot":""}