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,GAAc,OAAE3K,GAA+B7B,EAAA,MAAwB,CAC1H0J,cAAe,CAAE/C,UAAW,4CAC5B5H,MAAOH,EAAAA,cAAA,QAAM+H,UAAU,6CAA6C5H,GACpE4K,WAAYhC,GACR/I,EAAAA,cAACgN,EAAAA,OAAM,CAACjF,UAAU,sCAAsCW,MAAOkF,EAAcX,MAAM,OAAOC,QAASjK,GAC9F2K,gDCNb,MAUA,EAV2BxM,IAAA,IAAC,QACxB2H,EAAO,YACP9E,EACA+D,WAAW,aAAE4F,GAAc,OAC3B3K,GACwB7B,EAAA,MAA4B,CACpD0J,cAAe,CAAE/C,UAAW,4CAC5B9D,YAAajE,EAAAA,cAAA,QAAM+H,UAAU,6CAA6C9D,gDCP9E,MAUA,EAV6B7C,IAAA,IAAC,QAC1B2H,EAAO,cACPO,EACAtB,WAAW,aAAE4F,GAAc,OAC3B3K,GAC0B7B,EAAA,MAA8B,CACxD0J,cAAe,CAAE/C,UAAW,4CAC5BuB,cAAetJ,EAAAA,cAAA,QAAM+H,UAAU,0CAA0CuB,gDCZ7E,MAKA,EALoBlI,IAAA,IAAC,gBAAEsI,GAAqCtI,EAAA,MAAqB,CAC7E0J,cAAe,CAAE/C,UAAW,4CAC5B2B,gBAAiB1J,EAAAA,cAAA,QAAM+H,UAAU,6CAA6C2B,YCnBlFmE,EAAOC,QAAU9N,cCAjB6N,EAAOC,QAAUC","sources":["webpack://Dobbies.Commerce/./lib/checkout-guest-profile/module-registration.js?4b3c","webpack://Dobbies.Commerce/./src/modules/checkout-guest-profile/checkout-guest-profile.tsx?c2ce","webpack://Dobbies.Commerce/./src/modules/checkout-guest-profile/checkout-guest-profile.view.tsx?2e47","webpack://Dobbies.Commerce/./src/modules/checkout-guest-profile/components/get-add-contact-info.tsx?c9f6","webpack://Dobbies.Commerce/./src/modules/checkout-guest-profile/components/get-add-customer-reference-info.tsx?dda7","webpack://Dobbies.Commerce/./src/modules/checkout-guest-profile/components/get-add-customer-requisition-info.tsx?b5a7","webpack://Dobbies.Commerce/./src/modules/checkout-guest-profile/components/get-add-note-info.tsx?7024","webpack://Dobbies.Commerce/./src/modules/checkout-guest-profile/components/get-show-contact-info.tsx?e9b5","webpack://Dobbies.Commerce/./src/modules/checkout-guest-profile/components/get-show-customer-reference-info.tsx?025f","webpack://Dobbies.Commerce/./src/modules/checkout-guest-profile/components/get-show-customer-requisition-info.tsx?85d3","webpack://Dobbies.Commerce/./src/modules/checkout-guest-profile/components/get-show-note-info.tsx?44a0","webpack://Dobbies.Commerce/external var \"React\"?0d3b","webpack://Dobbies.Commerce/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(email: 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: (customerRef: 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","componentDidMount","_this$props$data$chec5","when","isDataReady","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","hasEmailError","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":""}