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aAAE2F,GAAc,OAAE3K,GAA+B7B,EAAA,MAAwB,CAC1H0J,cAAe,CAAE9C,UAAW,4CAC5B7H,MAAOH,EAAAA,cAAA,QAAMgI,UAAU,6CAA6C7H,GACpE4K,WAAY/B,GACRhJ,EAAAA,cAACgN,EAAAA,OAAM,CAAChF,UAAU,sCAAsCW,MAAOiF,EAAcX,MAAM,OAAOC,QAASjK,GAC9F2K,GAGZ,6CCTD,MAUA,EAV2BxM,IAAA,IAAC,QACxB4H,EAAO,YACP/E,EACAgE,WAAW,aAAE2F,GAAc,OAC3B3K,GACwB7B,EAAA,MAA4B,CACpD0J,cAAe,CAAE9C,UAAW,4CAC5B/D,YAAajE,EAAAA,cAAA,QAAMgI,UAAU,6CAA6C/D,GAC7E,6CCRD,MAUA,EAV6B7C,IAAA,IAAC,QAC1B4H,EAAO,cACPO,EACAtB,WAAW,aAAE2F,GAAc,OAC3B3K,GAC0B7B,EAAA,MAA8B,CACxD0J,cAAe,CAAE9C,UAAW,4CAC5BuB,cAAevJ,EAAAA,cAAA,QAAMgI,UAAU,0CAA0CuB,GAC5E,6CCbD,MAKA,EALoBnI,IAAA,IAAC,gBAAEuI,GAAqCvI,EAAA,MAAqB,CAC7E0J,cAAe,CAAE9C,UAAW,4CAC5B2B,gBAAiB3J,EAAAA,cAAA,QAAMgI,UAAU,6CAA6C2B,GACjF,SCpBDkE,EAAOC,QAAU9N,cCAjB6N,EAAOC,QAAUC","sources":["webpack://morland-ecommerce/./lib/checkout-guest-profile/module-registration.js?4b3c","webpack://morland-ecommerce/./src/modules/checkout-guest-profile/checkout-guest-profile.tsx?c2ce","webpack://morland-ecommerce/./src/modules/checkout-guest-profile/checkout-guest-profile.view.tsx?2e47","webpack://morland-ecommerce/./src/modules/checkout-guest-profile/components/get-add-contact-info.tsx?c9f6","webpack://morland-ecommerce/./src/modules/checkout-guest-profile/components/get-add-customer-reference-info.tsx?dda7","webpack://morland-ecommerce/./src/modules/checkout-guest-profile/components/get-add-customer-requisition-info.tsx?b5a7","webpack://morland-ecommerce/./src/modules/checkout-guest-profile/components/get-add-note-info.tsx?7024","webpack://morland-ecommerce/./src/modules/checkout-guest-profile/components/get-show-contact-info.tsx?e9b5","webpack://morland-ecommerce/./src/modules/checkout-guest-profile/components/get-show-customer-reference-info.tsx?025f","webpack://morland-ecommerce/./src/modules/checkout-guest-profile/components/get-show-customer-requisition-info.tsx?85d3","webpack://morland-ecommerce/./src/modules/checkout-guest-profile/components/get-show-note-info.tsx?44a0","webpack://morland-ecommerce/external var \"React\"?0d3b","webpack://morland-ecommerce/external var \"ReactDOM\"?853b"],"sourcesContent":["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['checkout-guest-profile'] = {\n c: () => require('@msdyn365-commerce-modules/checkout/dist/lib/modules/checkout-guest-profile/checkout-guest-profile'),\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}],\n \n iNM: true,\n ns: '@msdyn365-commerce-modules',\n n: 'checkout-guest-profile',\n p: 'checkout',\n \n pdp: '',\n \n \n md: 'node_modules/@msdyn365-commerce-modules/checkout/dist/lib/modules/checkout-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 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['@msdyn365-commerce-modules|checkout|modules|checkout-guest-profile|checkout-guest-profile'] = {\n c: () => require('@msdyn365-commerce-modules/checkout/dist/lib/modules/checkout-guest-profile/checkout-guest-profile.view.js'),\n cn: '@msdyn365-commerce-modules-checkout-checkout-guest-profile'\n };\nwindow.__bindings__ = window.__bindings__ || {};\nwindow.__bindings__.viewDictionary = {\n ...window.__bindings__.viewDictionary || {},\n ...viewDictionary\n };","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport * as Msdyn365 from '@msdyn365-commerce/core';\nimport { IModuleStateProps, withModuleState } from '@msdyn365-commerce-modules/checkout-utilities';\nimport { EmailRegex, StringExtensions } from '@msdyn365-commerce-modules/retail-actions';\nimport { IModuleProps } from '@msdyn365-commerce-modules/utilities';\nimport { CheckoutModule, ErrorLocation } from '@msdyn365-commerce/global-state';\nimport classnames from 'classnames';\nimport { action, computed, reaction, when } from 'mobx';\nimport { observer } from 'mobx-react';\nimport * as React from 'react';\nimport { Note } from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceTypes.g';\nimport { focusOnCheckoutError } from '../../checkout-errors';\nimport { ErrorComponent } from '../../common';\n\nimport { ICheckoutGuestProfileData } from './checkout-guest-profile.data';\nimport { ICheckoutGuestProfileProps } from './checkout-guest-profile.props.autogenerated';\nimport getAddContactInfo, { IAddContactInfo } from './components/get-add-contact-info';\nimport getAddCustomerRefInfo, { IAddCustomerRefInfo } from './components/get-add-customer-reference-info';\nimport getAddPurchaseOrderInfo, { IAddPurchaseOrderInfo } from './components/get-add-customer-requisition-info';\nimport getShowContactInfo, { IShowContactInfo } from './components/get-show-contact-info';\nimport getNoteInfo, { IShowNoteInfo } from './components/get-show-note-info';\nimport getCustomerRefInfo, { IShowCustomerRefInfo } from './components/get-show-customer-reference-info';\nimport getPurchaseOrderInfo, { IShowPurchaseOrderInfo } from './components/get-show-customer-requisition-info';\nimport getAddNoteInfo, { IAddNoteInfo } from './components/get-add-note-info';\n\ninterface ICheckoutGuestProfileState {\n email: string;\n customerRequisition?: string;\n customerReference?: string;\n note?: Note;\n hasCheckoutError?: boolean;\n errorMessage?: string;\n}\n\nexport interface ICheckoutGuestProfileModuleProps extends ICheckoutGuestProfileProps, IModuleStateProps {}\n\nexport interface ICheckoutGuestProfileViewProps extends ICheckoutGuestProfileProps, ICheckoutGuestProfileState {\n moduleProps: IModuleProps;\n showContactInfo?: IShowContactInfo;\n showCustomerRefInfo?: IShowCustomerRefInfo;\n showPurchaseOrderInfo?: IShowPurchaseOrderInfo;\n showNoteInfo?: IShowNoteInfo;\n addPurchaseOrderInfo?: IAddPurchaseOrderInfo;\n addCustomerRefInfo?: IAddCustomerRefInfo;\n addNoteInfo?: IAddNoteInfo;\n addContactInfo?: IAddContactInfo;\n alert?: React.ReactNode;\n checkoutErrorRef?: React.RefObject;\n\n onChange?(email: string, customerRequisition?: string, customerReference?: string, note?: Note): void;\n onEdit?(): void;\n onSubmit?(): void;\n onCancel?(): void;\n}\n\n/**\n *\n * CheckoutGuestProfile component.\n * @extends {React.PureComponent, ICheckoutGuestProfileState>}\n */\n// @ts-expect-error\n@withModuleState\n@observer\nclass CheckoutGuestProfile extends React.Component {\n public state: ICheckoutGuestProfileState = {\n email:\n (this.props.context &&\n this.props.context.request &&\n this.props.context.request.user &&\n this.props.context.request.user.isAuthenticated &&\n this.props.context.request.user.emailAddress) ||\n ''\n };\n\n private readonly inputRef: React.RefObject = React.createRef();\n\n private readonly checkoutErrorRef: React.RefObject = React.createRef();\n\n private readonly customerReferenceRef: React.RefObject = React.createRef();\n\n private readonly customerRequisitionRef: React.RefObject = React.createRef();\n\n private readonly noteRef: React.RefObject = React.createRef();\n\n @computed get isDataReady(): boolean {\n return (this.props.data.checkout.result && this.props.data.checkout.status) === 'SUCCESS';\n }\n\n @computed get hasEmailError(): boolean {\n return this.props.moduleState.hasError && !this.state.hasCheckoutError;\n }\n\n public componentDidMount(): void {\n when(\n () => this.isDataReady,\n async () => {\n await this.init();\n }\n );\n\n reaction(\n () => this.props.data.checkout.result?.isExpressCheckoutApplied,\n async isExpressCheckoutApplied => {\n const emailAddressFromExpressCheckout = this.props.data.checkout.result?.emailAddressFromExpressCheckout ?? '';\n const isEmailFromExpressCheckoutDifferent =\n !StringExtensions.isNullOrEmpty(emailAddressFromExpressCheckout) &&\n emailAddressFromExpressCheckout !== this.state.email;\n\n if (\n isExpressCheckoutApplied &&\n (!this.props.data.checkout.result?.isExpressAddressApplied || isEmailFromExpressCheckoutDifferent)\n ) {\n await this.submitEmail(emailAddressFromExpressCheckout);\n }\n }\n );\n\n if (this.props.data.checkout.result?.shouldEnableCheckoutErrorDisplayMessaging) {\n reaction(\n () => this.props.data.checkout.result?.checkoutError,\n checkoutError => {\n if (checkoutError && checkoutError.errorLocation === ErrorLocation.CheckoutGuestProfile && checkoutError.errorMessage) {\n this._setErrorMessage(checkoutError.errorMessage);\n }\n }\n );\n\n reaction(\n () => this.props.data.checkout.result?.checkoutErrorFocus,\n checkoutErrorFocus => {\n if (checkoutErrorFocus === CheckoutModule.CheckoutGuestProfile) {\n focusOnCheckoutError(this.checkoutErrorRef, this.props.context.actionContext);\n }\n }\n );\n }\n }\n\n public shouldComponentUpdate(nextProps: ICheckoutGuestProfileModuleProps, nextState: ICheckoutGuestProfileState): boolean {\n if (this.state === nextState && this.props.data === nextProps.data) {\n return false;\n }\n return true;\n }\n\n public render(): JSX.Element {\n const {\n config: { className },\n resources,\n moduleState: { isReady, hasExternalSubmitGroup }\n } = this.props;\n const { hasCheckoutError, errorMessage } = this.state;\n const email = this.props.data.checkout.result?.guestCheckoutEmail ?? '';\n const customerRef = this.props.data.checkout.result?.checkoutCart?.cart?.Comment ?? '';\n const customerRequisition = this.props.data.checkout.result?.checkoutCart?.cart?.CustomerRequisition ?? '';\n const note = this.props.data.checkout.result?.checkoutCart?.cart?.Notes ?? [];\n\n const viewProps: ICheckoutGuestProfileViewProps = {\n ...this.props,\n ...this.state,\n checkoutErrorRef: this.checkoutErrorRef,\n onChange: this.onChange,\n onEdit: this.onEdit,\n onCancel: this.onCancel,\n onSubmit: this.onSubmit,\n\n moduleProps: {\n moduleProps: this.props,\n className: classnames('ms-checkout-guest-profile', className, isReady ? 'show' : 'add')\n },\n alert: hasCheckoutError && errorMessage && (\n \n ),\n showContactInfo: isReady\n ? getShowContactInfo({\n canEdit: !hasExternalSubmitGroup,\n email,\n resources,\n onEdit: this.onEdit\n })\n : undefined,\n showCustomerRefInfo:\n isReady && this.props.config.enableCustomerReference\n ? getCustomerRefInfo({\n canEdit: !hasExternalSubmitGroup,\n customerRef,\n resources,\n onEdit: this.onEdit\n })\n : undefined,\n showPurchaseOrderInfo:\n isReady && this.props.config.enableCustomerRequisition\n ? getPurchaseOrderInfo({\n canEdit: !hasExternalSubmitGroup,\n purchaseOrder: customerRequisition,\n resources,\n onEdit: this.onEdit\n })\n : undefined,\n showNoteInfo:\n isReady && this.props.config.enableCartNote\n ? getNoteInfo({\n noteDescription: note !== undefined ? note[0]?.Description : ''\n })\n : undefined,\n addContactInfo: !isReady\n ? getAddContactInfo({\n email: this.state.email,\n hasError: this.hasEmailError,\n resources,\n inputRef: this.inputRef,\n onChange: this.onChange,\n canSubmit: !hasExternalSubmitGroup,\n onSubmit: this.onSubmit,\n canCancel: !hasExternalSubmitGroup && !!email,\n onCancel: this.onCancel\n })\n : undefined,\n addPurchaseOrderInfo:\n !isReady && this.props.config.enableCustomerRequisition\n ? getAddPurchaseOrderInfo({\n purchaseOrderNumber: this.state.customerRequisition,\n resources,\n inputRef: this.customerRequisitionRef,\n onChange: this.onChangeCustomerRequisition,\n canSubmit: !hasExternalSubmitGroup,\n onSubmit: this.onSubmit,\n canCancel: !hasExternalSubmitGroup && !!email,\n onCancel: this.onCancel,\n hasError: this.hasEmailError\n })\n : undefined,\n addCustomerRefInfo:\n !isReady && this.props.config.enableCustomerReference\n ? getAddCustomerRefInfo({\n customerRef: this.state.customerReference,\n resources,\n inputRef: this.customerReferenceRef,\n onChange: this.onChangeCustomerRef,\n canSubmit: !hasExternalSubmitGroup,\n onSubmit: this.onSubmit,\n canCancel: !hasExternalSubmitGroup && !!email,\n onCancel: this.onCancel,\n hasError: this.hasEmailError\n })\n : undefined,\n addNoteInfo:\n !isReady && this.props.config.enableCartNote\n ? getAddNoteInfo({\n note: this.state.note,\n resources,\n inputRef: this.noteRef,\n onChange: this.onChangeNote,\n canSubmit: !hasExternalSubmitGroup,\n onSubmit: this.onSubmit,\n canCancel: !hasExternalSubmitGroup && !!email,\n onCancel: this.onCancel,\n hasError: this.hasEmailError\n })\n : undefined\n };\n\n return this.props.renderView(viewProps) as React.ReactElement;\n }\n\n private readonly init = async (): Promise => {\n const checkoutState = this.props.data.checkout.result;\n const customerAccountInformation = this.props.data.accountInformation?.result;\n const checkoutCart = checkoutState?.checkoutCart.cart;\n\n const hasInvoiceLine = checkoutState?.checkoutCart.hasInvoiceLine;\n let updateEmail: string = '';\n\n // if obo enabled and profile selected, we need to send the order status to obo user not store manager.\n if (Msdyn365.isOboRequest(this.props.context.request)) {\n updateEmail =\n customerAccountInformation && customerAccountInformation.Email !== undefined\n ? customerAccountInformation.Email\n : this.setErrorMsgOboUserEmailEmpty();\n } else {\n updateEmail = this.state.email;\n }\n\n const emailOnCart = checkoutCart?.ReceiptEmail;\n const notes = checkoutCart?.Notes !== undefined && checkoutState?.checkoutCart.cart.Notes;\n const customerRequisition = checkoutCart?.CustomerRequisition;\n const customerReference = checkoutCart?.Comment;\n\n const email = hasInvoiceLine\n ? this.props.context.request.user.emailAddress ?? ''\n : emailOnCart ??\n (checkoutState?.isExpressCheckoutApplied && !StringExtensions.isNullOrEmpty(checkoutState.emailAddressFromExpressCheckout)\n ? checkoutState.emailAddressFromExpressCheckout\n : undefined) ??\n updateEmail;\n\n const isEmailValid = this.isEmailValid(email);\n this.props.moduleState.init({\n onEdit: this.onEdit,\n onCancel: this.onCancel,\n onSubmit: this.onSubmit,\n status: hasInvoiceLine ? 'disabled' : email && isEmailValid ? 'ready' : 'updating',\n hasError: !!email && !isEmailValid\n });\n\n if (email) {\n notes !== undefined\n ? await this.updateGuestProfile(email, customerReference, customerRequisition, notes[0])\n : await this.updateGuestProfile(email, customerReference, customerRequisition);\n checkoutState?.updateHasGuestCheckoutEmail({ newHasGuestCheckoutEmail: true });\n } else {\n checkoutState?.updateHasGuestCheckoutEmail({ newHasGuestCheckoutEmail: false });\n }\n };\n\n private readonly onChange = (rowEmail: string): void => {\n const email = (rowEmail || '').replace(new RegExp('[<>]', 'gi'), '');\n this.setState({ email });\n if (this.props.moduleState.hasError) {\n // Clear error during user updating the email\n this.props.moduleState.setHasError(false);\n this.setState({\n hasCheckoutError: false\n });\n }\n };\n\n private readonly onChangeCustomerRef = (customerRef: string): void => {\n this.setState({ customerReference: customerRef });\n };\n\n private readonly onChangeCustomerRequisition = (customerRequisition: string): void => {\n this.setState({ customerRequisition: customerRequisition });\n };\n\n private readonly onChangeNote = (note: string): void => {\n if (note === '') {\n this.setState({ note: undefined });\n } else {\n const defaultNote = this.props.config.defaultNoteTitle;\n this.setState({ note: { Description: note, Title: defaultNote, RestrictionValue: 1 } });\n }\n };\n\n private readonly setErrorMsgOboUserEmailEmpty = (): string => {\n // Clear prior error\n this.props.moduleState.setHasError(false);\n this.setState({\n hasCheckoutError: false\n });\n return '';\n };\n\n private readonly isEmailValid = (email: string): boolean => {\n return EmailRegex.defaultRegex.test(email);\n };\n\n private readonly updateGuestProfile = async (\n newGuestCheckoutEmail: string,\n customerReference?: string,\n customerRequisition?: string,\n note?: Note\n ): Promise => {\n if (this.props.data.checkout.result) {\n await this.props.data.checkout.result.updateGuestCheckoutEmail({\n newGuestCheckoutEmail,\n customerReference,\n customerRequisition,\n note\n });\n this.setState({ email: newGuestCheckoutEmail });\n this.setState({ note: note });\n this.setState({ customerReference: customerReference });\n this.setState({ customerRequisition: customerRequisition });\n }\n };\n\n private readonly onEdit = (): void => {\n this.props.telemetry.information('Guest profile onEdit is called.');\n\n this.props.moduleState.onUpdating();\n };\n\n private readonly onSubmit = async (): Promise => {\n this.props.telemetry.information('Guest profile onSubmit is called.');\n\n const { email } = this.state;\n const { customerReference, customerRequisition, note } = this.state;\n await this.submitEmail(email, customerReference, customerRequisition, note);\n };\n\n /**\n * Submit the email address.\n * @param email - The email to be submitted.\n *\n */\n private readonly submitEmail = async (\n email: string,\n customerReference?: string,\n customerRequisition?: string,\n note?: Note\n ): Promise => {\n const isValid = this.isEmailValid(email);\n if (!isValid) {\n this.props.moduleState.setHasError(true);\n\n const input = this.inputRef.current?.focus && (this.inputRef.current as HTMLElement);\n input?.focus();\n } else {\n this.props.moduleState.onReady();\n await this.updateGuestProfile(email, customerReference, customerRequisition, note);\n }\n };\n\n private readonly onCancel = (): void => {\n this.props.telemetry.information('Guest profile onCancel is called.');\n\n // Reset to the saved value\n if (!this.props.data.checkout.result) {\n return;\n }\n\n const checkoutState = this.props.data.checkout.result;\n const checkoutCart = checkoutState?.checkoutCart.cart;\n const email = checkoutState.guestCheckoutEmail;\n const notes = checkoutCart?.Notes !== undefined && checkoutState?.checkoutCart.cart.Notes;\n const customerRequisition = checkoutCart?.CustomerRequisition;\n const customerReference = checkoutCart?.Comment;\n if (!email) {\n // It has no saved email, set to status updating and request user to fill the email form\n this.props.moduleState.onUpdating();\n } else {\n // It has saved email, set to status ready\n this.setState({\n email\n });\n if (notes !== undefined) {\n this.setState({ note: notes[0] });\n }\n this.setState({ customerReference: customerReference });\n this.setState({ customerRequisition: customerRequisition });\n this.props.moduleState.setHasError(false);\n this.setState({\n hasCheckoutError: false\n });\n this.props.moduleState.onReady();\n }\n };\n\n @action\n private readonly _setErrorMessage = (errorMessage: string): void => {\n this.props.telemetry.error(errorMessage);\n this.props.moduleState.setHasError(true);\n this.props.moduleState.onUpdating();\n this.setState({\n hasCheckoutError: true,\n errorMessage\n });\n };\n}\n\nexport default CheckoutGuestProfile;\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport { Module, Node } from '@msdyn365-commerce-modules/utilities';\nimport * as React from 'react';\n\nimport { IAddContactInfo } from './components/get-add-contact-info';\nimport { IAddCustomerRefInfo } from './components/get-add-customer-reference-info';\nimport { IAddPurchaseOrderInfo } from './components/get-add-customer-requisition-info';\nimport { IShowContactInfo } from './components/get-show-contact-info';\nimport { IShowNoteInfo } from './components/get-show-note-info';\nimport { IShowCustomerRefInfo } from './components/get-show-customer-reference-info';\nimport { IShowPurchaseOrderInfo } from './components/get-show-customer-requisition-info';\nimport { IAddNoteInfo } from './components/get-add-note-info';\nimport { ICheckoutGuestProfileViewProps } from './checkout-guest-profile';\n\nexport const ShowContactInfo: React.FC = ({ showInfoProps, email, editButton }) => (\n \n {email}\n {editButton}\n \n);\n\nexport const ShowCustomerRefInfo: React.FC = ({ showInfoProps, customerRef }) => (\n {customerRef}\n);\n\nexport const ShowPurchaseOrderInfo: React.FC = ({ showInfoProps, purchaseOrder }) => (\n {purchaseOrder}\n);\n\nexport const ShowNoteInfo: React.FC = ({ showInfoProps, noteDescription }) => (\n {noteDescription}\n);\n\nexport const AddContactInfo: React.FC = ({\n addFormProps,\n submitButton,\n cancelButton,\n inputGroupProps,\n label,\n error,\n input\n}) => (\n \n \n {label}\n {error}\n {input}\n \n {submitButton}\n {cancelButton}\n \n);\n\nexport const AddPurchaseOrderInfo: React.FC = ({\n addFormProps,\n submitButton,\n cancelButton,\n inputGroupProps,\n label,\n input\n}) => (\n \n \n {label}\n {input}\n \n {submitButton}\n {cancelButton}\n \n);\n\nexport const AddNoteInfo: React.FC = ({ addFormProps, submitButton, cancelButton, inputGroupProps, label, input }) => (\n \n \n {label}\n {input}\n \n {submitButton}\n {cancelButton}\n \n);\n\nexport const AddCustomerRefInfo: React.FC = ({\n addFormProps,\n submitButton,\n cancelButton,\n inputGroupProps,\n label,\n input\n}) => (\n \n \n {label}\n {input}\n \n {submitButton}\n {cancelButton}\n \n);\n\nconst CheckoutGuestProfileView: React.FC = ({\n moduleProps,\n checkoutErrorRef,\n alert,\n showContactInfo,\n showPurchaseOrderInfo,\n showCustomerRefInfo,\n showNoteInfo,\n addContactInfo,\n addPurchaseOrderInfo,\n addCustomerRefInfo,\n addNoteInfo\n}) => {\n return (\n \n {alert}\n {showContactInfo && }\n {showCustomerRefInfo && }\n {showPurchaseOrderInfo && }\n {showNoteInfo && }\n {addContactInfo && }\n {addCustomerRefInfo && }\n {addPurchaseOrderInfo && }\n {addNoteInfo && }\n \n );\n};\n\nexport default CheckoutGuestProfileView;\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport { Button, INodeProps } from '@msdyn365-commerce-modules/utilities';\nimport classnames from 'classnames';\nimport * as React from 'react';\n\nexport interface IAddContactInfoInput {\n inputRef?: React.RefObject;\n hasError: boolean;\n email: string;\n resources: {\n emailLabel: string;\n emailErrortext: string;\n saveBtnLabel: string;\n cancelBtnLabel: string;\n };\n canSubmit: boolean;\n canCancel: boolean;\n onChange(email: string): void;\n onSubmit(): void;\n onCancel(): void;\n}\n\nexport interface IAddContactInfo {\n addFormProps: INodeProps;\n submitButton: React.ReactNode;\n cancelButton: React.ReactNode;\n inputGroupProps: INodeProps;\n label: React.ReactNode;\n error: React.ReactNode;\n input: React.ReactNode;\n}\n\n/**\n * On Input change handler function.\n * @param onChange -On change input function.\n * @returns Call of onChange function.\n */\nconst onInputChangeHandler = (onChange: (email: string) => void) => (event: React.ChangeEvent): void => {\n onChange(event.target.value || '');\n};\n\nconst getAddContactInfo = ({\n hasError,\n inputRef,\n email,\n canSubmit,\n canCancel,\n onChange,\n onSubmit,\n onCancel,\n resources: { emailLabel, emailErrortext, saveBtnLabel, cancelBtnLabel }\n}: IAddContactInfoInput): IAddContactInfo => {\n const onInputChange = onInputChangeHandler(onChange);\n\n return {\n addFormProps: { className: 'ms-checkout-guest-profile__add-contact-info' },\n submitButton: canSubmit && (\n \n ),\n cancelButton: canCancel && (\n \n ),\n inputGroupProps: { className: classnames('ms-checkout-guest-profile__input', { 'is-invalid': hasError }) },\n label: (\n \n ),\n error: hasError && (\n \n {emailErrortext}\n \n ),\n input: (\n \n )\n };\n};\n\nexport default getAddContactInfo;\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport { Button, INodeProps } from '@msdyn365-commerce-modules/utilities';\nimport classnames from 'classnames';\nimport * as React from 'react';\n\nexport interface IAddCustomerRefInfoInput {\n inputRef?: React.RefObject;\n hasError: boolean;\n customerRef: string | undefined;\n resources: {\n customerRefLabel: string;\n customerRefErrortext: string;\n saveBtnLabel: string;\n cancelBtnLabel: string;\n };\n canSubmit: boolean;\n canCancel: boolean;\n onChange(email: string): void;\n onSubmit(): void;\n onCancel(): void;\n}\n\nexport interface IAddCustomerRefInfo {\n addFormProps: INodeProps;\n submitButton: React.ReactNode;\n cancelButton: React.ReactNode;\n inputGroupProps: INodeProps;\n label: React.ReactNode;\n error: React.ReactNode;\n input: React.ReactNode;\n}\n\n/**\n * On Input change handler function.\n * @param onChange -On change input function.\n * @returns Call of onChange function.\n */\nconst onInputChangeHandler = (onChange: (customerRef: string) => void) => (event: React.ChangeEvent): void => {\n onChange(event.target.value || '');\n};\n\nconst getAddCustomerRefInfo = ({\n hasError,\n inputRef,\n customerRef,\n canSubmit,\n canCancel,\n onChange,\n onSubmit,\n onCancel,\n resources: { customerRefLabel, customerRefErrortext, saveBtnLabel, cancelBtnLabel }\n}: IAddCustomerRefInfoInput): IAddCustomerRefInfo => {\n const onInputChange = onInputChangeHandler(onChange);\n\n return {\n addFormProps: { className: 'ms-checkout-guest-profile__add-customer-reference-number' },\n submitButton: canSubmit && (\n \n ),\n cancelButton: canCancel && (\n \n ),\n inputGroupProps: { className: classnames('ms-checkout-guest-profile__input', { 'is-invalid': hasError }) },\n label: (\n \n ),\n error: hasError && (\n \n {customerRefErrortext}\n \n ),\n input: (\n \n )\n };\n};\n\nexport default getAddCustomerRefInfo;\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport { Button, INodeProps } from '@msdyn365-commerce-modules/utilities';\nimport classnames from 'classnames';\nimport * as React from 'react';\n\nexport interface IAddPurchaseOrderInfoInput {\n inputRef?: React.RefObject;\n hasError: boolean;\n purchaseOrderNumber: string | undefined;\n resources: {\n purchaseOrderLabel: string;\n purchaseOrderErrortext: string;\n saveBtnLabel: string;\n cancelBtnLabel: string;\n };\n canSubmit: boolean;\n canCancel: boolean;\n onChange(email: string): void;\n onSubmit(): void;\n onCancel(): void;\n}\n\nexport interface IAddPurchaseOrderInfo {\n addFormProps: INodeProps;\n submitButton: React.ReactNode;\n cancelButton: React.ReactNode;\n inputGroupProps: INodeProps;\n label: React.ReactNode;\n error: React.ReactNode;\n input: React.ReactNode;\n}\n\n/**\n * On Input change handler function.\n * @param onChange -On change input function.\n * @returns Call of onChange function.\n */\nconst onInputChangeHandler = (onChange: (purchaseOrder: string) => void) => (event: React.ChangeEvent): void => {\n onChange(event.target.value || '');\n};\n\nconst getAddPurchaseOrderInfo = ({\n hasError,\n inputRef,\n purchaseOrderNumber,\n canSubmit,\n canCancel,\n onChange,\n onSubmit,\n onCancel,\n resources: { purchaseOrderLabel, purchaseOrderErrortext, saveBtnLabel, cancelBtnLabel }\n}: IAddPurchaseOrderInfoInput): IAddPurchaseOrderInfo => {\n const onInputChange = onInputChangeHandler(onChange);\n\n return {\n addFormProps: { className: 'ms-checkout-guest-profile__add-customer-requisition' },\n submitButton: canSubmit && (\n \n ),\n cancelButton: canCancel && (\n \n ),\n inputGroupProps: { className: classnames('ms-checkout-guest-profile__input', { 'is-invalid': hasError }) },\n label: (\n \n ),\n error: hasError && (\n \n {purchaseOrderErrortext}\n \n ),\n input: (\n \n )\n };\n};\n\nexport default getAddPurchaseOrderInfo;\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport { Button, INodeProps } from '@msdyn365-commerce-modules/utilities';\nimport { Note } from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceTypes.g';\nimport classnames from 'classnames';\nimport * as React from 'react';\n\nexport interface IAddNoteInfoInput {\n inputRef?: React.RefObject;\n hasError: boolean;\n note?: Note;\n onChange(note: string): void;\n resources: {\n noteLabel: string;\n noteErrortext: string;\n saveBtnLabel: string;\n cancelBtnLabel: string;\n };\n canSubmit: boolean;\n canCancel: boolean;\n onSubmit(): void;\n onCancel(): void;\n}\n\nexport interface IAddNoteInfo {\n addFormProps: INodeProps;\n submitButton: React.ReactNode;\n cancelButton: React.ReactNode;\n inputGroupProps: INodeProps;\n label: React.ReactNode;\n error: React.ReactNode;\n input: React.ReactNode;\n}\n\n/**\n * On Input change handler function.\n * @param onChange -On change input function.\n * @returns Call of onChange function.\n */\nconst onInputChangeHandler = (onChange: (note: string) => void) => (event: React.ChangeEvent): void => {\n onChange(event.target.value || '');\n};\n\nconst getAddNoteInfo = ({\n hasError,\n inputRef,\n note,\n canSubmit,\n canCancel,\n onSubmit,\n onCancel,\n onChange,\n resources: { noteLabel, noteErrortext, saveBtnLabel, cancelBtnLabel }\n}: IAddNoteInfoInput): IAddNoteInfo => {\n const onInputChange = onInputChangeHandler(onChange);\n return {\n addFormProps: { className: 'ms-checkout-guest-profile__add-notes-info' },\n submitButton: canSubmit && (\n \n ),\n cancelButton: canCancel && (\n \n ),\n inputGroupProps: { className: classnames('ms-checkout-guest-profile__input', { 'is-invalid': hasError }) },\n label: (\n \n ),\n error: hasError && (\n \n {noteErrortext}\n \n ),\n input: (\n \n )\n };\n};\n\nexport default getAddNoteInfo;\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport { Button, INodeProps } from '@msdyn365-commerce-modules/utilities';\nimport * as React from 'react';\n\nexport interface IShowContactInfoInput {\n canEdit: boolean;\n email: string;\n resources: {\n editBtnLabel: string;\n };\n onEdit(): void;\n}\n\nexport interface IShowContactInfo {\n showInfoProps: INodeProps;\n email: React.ReactNode;\n editButton?: React.ReactNode;\n}\n\nconst getContactInfo = ({ canEdit, email, resources: { editBtnLabel }, onEdit }: IShowContactInfoInput): IShowContactInfo => ({\n showInfoProps: { className: 'ms-checkout-guest-profile__selected-item' },\n email: {email},\n editButton: canEdit && (\n \n )\n});\n\nexport default getContactInfo;\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport { INodeProps } from '@msdyn365-commerce-modules/utilities';\nimport * as React from 'react';\n\nexport interface IShowCustomerRefInfoInput {\n canEdit: boolean;\n customerRef: string;\n resources: {\n editBtnLabel: string;\n };\n onEdit(): void;\n}\n\nexport interface IShowCustomerRefInfo {\n showInfoProps: INodeProps;\n customerRef: React.ReactNode;\n}\n\nconst getCustomerRefInfo = ({\n canEdit,\n customerRef,\n resources: { editBtnLabel },\n onEdit\n}: IShowCustomerRefInfoInput): IShowCustomerRefInfo => ({\n showInfoProps: { className: 'ms-checkout-guest-profile__selected-item' },\n customerRef: {customerRef}\n});\n\nexport default getCustomerRefInfo;\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport { INodeProps } from '@msdyn365-commerce-modules/utilities';\nimport * as React from 'react';\n\nexport interface IShowPurchaseOrderInfoInput {\n canEdit: boolean;\n purchaseOrder: string;\n resources: {\n editBtnLabel: string;\n };\n onEdit(): void;\n}\n\nexport interface IShowPurchaseOrderInfo {\n showInfoProps: INodeProps;\n purchaseOrder: React.ReactNode;\n}\n\nconst getPurchaseOrderInfo = ({\n canEdit,\n purchaseOrder,\n resources: { editBtnLabel },\n onEdit\n}: IShowPurchaseOrderInfoInput): IShowPurchaseOrderInfo => ({\n showInfoProps: { className: 'ms-checkout-guest-profile__selected-item' },\n purchaseOrder: {purchaseOrder}\n});\n\nexport default getPurchaseOrderInfo;\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport { INodeProps } from '@msdyn365-commerce-modules/utilities';\nimport * as React from 'react';\n\nexport interface IShowNoteInfoInput {\n noteDescription?: string;\n}\n\nexport interface IShowNoteInfo {\n showInfoProps: INodeProps;\n noteDescription: React.ReactNode;\n}\n\nconst getNoteInfo = ({ noteDescription }: IShowNoteInfoInput): IShowNoteInfo => ({\n showInfoProps: { className: 'ms-checkout-guest-profile__selected-item' },\n noteDescription: {noteDescription}\n});\n\nexport default getNoteInfo;\n","module.exports = React;","module.exports = ReactDOM;"],"names":["binding","modules","dataActions","registerSanitizedActionPath","sanitizedActionPath","dataAction","default","Error","prototype","RegistrationId","id","c","require","$type","da","name","path","runOn","iNM","ns","n","p","pdp","md","window","__bindings__","_objectSpread","viewDictionary","cn","CheckoutGuestProfile","React","constructor","state","email","this","props","context","request","user","isAuthenticated","emailAddress","inputRef","checkoutErrorRef","customerReferenceRef","customerRequisitionRef","noteRef","init","async","_this$props$data$acco","_this$props$context$r","_ref","checkoutState","data","checkout","result","customerAccountInformation","accountInformation","checkoutCart","cart","hasInvoiceLine","updateEmail","Msdyn365","undefined","Email","setErrorMsgOboUserEmailEmpty","emailOnCart","ReceiptEmail","notes","Notes","customerRequisition","CustomerRequisition","customerReference","Comment","isExpressCheckoutApplied","StringExtensions","isNullOrEmpty","emailAddressFromExpressCheckout","isEmailValid","moduleState","onEdit","onCancel","onSubmit","status","hasError","updateGuestProfile","updateHasGuestCheckoutEmail","newHasGuestCheckoutEmail","onChange","rowEmail","replace","RegExp","setState","setHasError","hasCheckoutError","onChangeCustomerRef","customerRef","onChangeCustomerRequisition","onChangeNote","note","defaultNote","config","defaultNoteTitle","Description","Title","RestrictionValue","EmailRegex","defaultRegex","test","newGuestCheckoutEmail","updateGuestCheckoutEmail","telemetry","information","onUpdating","submitEmail","onReady","_this$inputRef$curren","input","current","focus","guestCheckoutEmail","_setErrorMessage","errorMessage","error","isDataReady","hasEmailError","componentDidMount","_this$props$data$chec5","when","reaction","_this$props$data$chec","_this$props$data$chec2","_this$props$data$chec3","_this$props$data$chec4","isEmailFromExpressCheckoutDifferent","isExpressAddressApplied","shouldEnableCheckoutErrorDisplayMessaging","_this$props$data$chec6","checkoutError","errorLocation","ErrorLocation","_this$props$data$chec7","checkoutErrorFocus","CheckoutModule","focusOnCheckoutError","actionContext","shouldComponentUpdate","nextProps","nextState","render","_this$props$data$chec8","_this$props$data$chec9","_this$props$data$chec10","_this$props$data$chec11","_this$props$data$chec12","_this$props$data$chec13","_this$props$data$chec14","_this$props$data$chec15","_note$","className","resources","isReady","hasExternalSubmitGroup","viewProps","moduleProps","classnames","alert","ErrorComponent","Object","assign","title","errorMessageTitle","message","showContactInfo","getShowContactInfo","canEdit","showCustomerRefInfo","enableCustomerReference","getCustomerRefInfo","showPurchaseOrderInfo","enableCustomerRequisition","getPurchaseOrderInfo","purchaseOrder","showNoteInfo","enableCartNote","getNoteInfo","noteDescription","addContactInfo","getAddContactInfo","canSubmit","canCancel","addPurchaseOrderInfo","getAddPurchaseOrderInfo","purchaseOrderNumber","addCustomerRefInfo","getAddCustomerRefInfo","addNoteInfo","getAddNoteInfo","renderView","__decorate","computed","action","withModuleState","observer","ShowContactInfo","showInfoProps","editButton","Node","ShowCustomerRefInfo","_ref2","ShowPurchaseOrderInfo","_ref3","ShowNoteInfo","_ref4","AddContactInfo","_ref5","addFormProps","submitButton","cancelButton","inputGroupProps","label","AddPurchaseOrderInfo","_ref6","AddNoteInfo","_ref7","AddCustomerRefInfo","_ref8","_ref9","Module","ref","emailLabel","emailErrortext","saveBtnLabel","cancelBtnLabel","onInputChange","event","target","value","onInputChangeHandler","Button","color","onClick","role","type","customerRefLabel","customerRefErrortext","maxLength","purchaseOrderLabel","purchaseOrderErrortext","noteLabel","noteErrortext","editBtnLabel","module","exports","ReactDOM"],"sourceRoot":""}