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B0B,EAAO1B,SAAS+B,OAKjC1G,EAAKuG,mBAAmBjQ,EAAI8P,EAAQI,EAAYC,GAJ5CzG,EAAKmG,cAAc7P,EAAI8P,GAKtC,EAMiBpG,EAAA3D,uBAAyB,WACtC,QAAS2D,EAAK7G,MAAM8N,aACxB,EAOiBjH,EAAAqF,eAAiB,SAAC/O,GAG/B,QAFgB0J,EAAKyD,MACEnN,EAE3B,EAjQI0J,EAAK+D,kBAAiB,CAC1B,CAiQJ,OArQ0BmD,EAAAA,EAAAA,IAAArD,EAAAD,GAMfC,EAAA3C,UAAArF,sBAAP,SAA6BC,GACzB,OAAIjD,KAAKM,QAAU2C,CAIvB,EAEO+H,EAAA3C,UAAAlF,OAAP,WACY,IAAA1F,EAAOuC,KAAKM,MAAK7C,GACzB,OAAOV,EAAAA,cAAC+N,GAAgBU,EAAAA,EAAAA,IAAA,GAAKxL,KAAKM,MAAK,CAAEC,YAAaP,KAAKgM,sBAAsBvO,KACrF,EAhBEuN,GAAW/G,EAAAA,EAAAA,IAAA,CADhBG,EAAAA,IAAQ,uCACH4G,EAqQL,CArQD,CAA0BjO,EAAAA,UAwQ9B","sources":["webpack://Msdyn365.Commerce.Online/./src/modules/lli-checkout-additional-info/components/get-add-additional-info.tsx?3f28","webpack://Msdyn365.Commerce.Online/./src/modules/lli-checkout-additional-info/components/get-show-additional-info.tsx?abdb","webpack://Msdyn365.Commerce.Online/./src/modules/lli-checkout-additional-info/lli-checkout-additional-info.tsx?1022","webpack://Msdyn365.Commerce.Online/./src/modules/lli-checkout-additional-info/lli-checkout-additional-info.view.tsx?9d38","webpack://Msdyn365.Commerce.Online/./src/modules/obrien-product-registration-form/obrien-product-registration-form.tsx?ae0b","webpack://Msdyn365.Commerce.Online/./src/modules/obrien-product-registration-form/obrien-product-registration-form.view.tsx?e07b","webpack://Msdyn365.Commerce.Online/../../src/checkout-state-data-action.ts?8344","webpack://Msdyn365.Commerce.Online/../../src/checkout-state.ts?acd8","webpack://Msdyn365.Commerce.Online/../../../src/module-state-manager/module-state.ts?7579","webpack://Msdyn365.Commerce.Online/../../../src/module-state-manager/with-module-state.tsx?61ca"],"sourcesContent":["/*--------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * See License.txt in the project root for license information.\r\n *--------------------------------------------------------------*/\r\n\r\n/* eslint-disable no-duplicate-imports */\r\nimport { Button, INodeProps } from '@msdyn365-commerce-modules/utilities';\r\nimport classnames from 'classnames';\r\nimport * as React from 'react';\r\nimport DatePicker from \"react-datepicker\";\r\n\r\nexport interface IAddAdditionalInfoInput {\r\n orderReferenceRef?: React.RefObject;\r\n orderNotesRef?: React.RefObject;\r\n hasError: boolean;\r\n orderReference: string;\r\n orderNotes: string;\r\n requestedShippingDate: Date | null;\r\n resources: {\r\n orderReferenceInputLabel: string;\r\n orderNotesInputLabel: string;\r\n requestedShippingDateInputLabel: string;\r\n noRequestedShippingDatePlaceholder: string;\r\n additionalInfoErrortext: string;\r\n saveBtnLabel: string;\r\n cancelBtnLabel: string;\r\n };\r\n canSubmit: boolean;\r\n canCancel: boolean;\r\n onOrderReferenceChange(orderReference: string): void;\r\n onOrderNotesChange(orderNotes: string): void;\r\n onRequestedShippingDateChange(requestedShippingDate: Date | null): void;\r\n onSubmit(): void;\r\n onCancel(): void;\r\n}\r\n\r\nexport interface IAddAdditionalInfo {\r\n addFormProps: INodeProps;\r\n submitButton: React.ReactNode;\r\n cancelButton: React.ReactNode;\r\n inputGroupProps: INodeProps;\r\n orderReferenceProps: {\r\n label: React.ReactNode;\r\n input: React.ReactNode;\r\n };\r\n orderNotesProps: {\r\n label: React.ReactNode;\r\n input: React.ReactNode;\r\n };\r\n requestedShippingDateProps: {\r\n label: React.ReactNode;\r\n input: React.ReactNode;\r\n }\r\n error: React.ReactNode;\r\n}\r\n\r\n/**\r\n * On Order Reference Input change handler function.\r\n * @param onOrderReferenceChange -On change input function.\r\n * @returns Call of onOrderReferenceChange function.\r\n */\r\n const onOrderReferenceInputChangeHandler = (onOrderReferenceChange: (orderReference: string) => void) => (event: React.ChangeEvent): void => {\r\n onOrderReferenceChange(event.target.value || '');\r\n};\r\n\r\n/**\r\n * On Order Notes Input change handler function.\r\n * @param onOrderNotesChange -On change input function.\r\n * @returns Call of onOrderNotesChange function.\r\n */\r\nconst onOrderNotesInputChangeHandler = (onOrderNotesChange: (orderNotes: string) => void) => (event: React.ChangeEvent): void => {\r\n onOrderNotesChange(event.target.value || '');\r\n};\r\n\r\nconst getAddAdditionalInfo = ({\r\n hasError,\r\n orderReferenceRef, \r\n orderNotesRef, \r\n orderReference,\r\n orderNotes,\r\n requestedShippingDate,\r\n canSubmit,\r\n canCancel,\r\n onOrderReferenceChange, \r\n onOrderNotesChange, \r\n onRequestedShippingDateChange,\r\n onSubmit,\r\n onCancel,\r\n resources: { \r\n orderReferenceInputLabel, \r\n orderNotesInputLabel, \r\n requestedShippingDateInputLabel, \r\n noRequestedShippingDatePlaceholder,\r\n additionalInfoErrortext, \r\n saveBtnLabel, \r\n cancelBtnLabel }\r\n}: IAddAdditionalInfoInput): IAddAdditionalInfo => {\r\n const onOrderReferenceInputChange = onOrderReferenceInputChangeHandler(onOrderReferenceChange);\r\n const onOrderNotesInputChange = onOrderNotesInputChangeHandler(onOrderNotesChange);\r\n\r\n return {\r\n addFormProps: { className: 'lli-checkout-additional_info__add-additional-info' },\r\n submitButton: canSubmit && (\r\n \r\n {saveBtnLabel}\r\n \r\n ),\r\n cancelButton: canCancel && (\r\n \r\n {cancelBtnLabel}\r\n \r\n ),\r\n inputGroupProps: { className: classnames('lli-checkout-additional_info__input', { 'is-invalid': hasError }) },\r\n orderReferenceProps: {\r\n label: (\r\n \r\n ),\r\n input: (\r\n \r\n )\r\n },\r\n orderNotesProps: {\r\n label: (\r\n \r\n ),\r\n input: (\r\n \r\n )\r\n },\r\n requestedShippingDateProps: {\r\n label: (\r\n \r\n ),\r\n input: (\r\n \r\n \r\n \r\n )\r\n },\r\n error: hasError && (\r\n \r\n {additionalInfoErrortext}\r\n \r\n )\r\n };\r\n};\r\n\r\nexport default getAddAdditionalInfo;\r\n","/*--------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * See License.txt in the project root for license information.\r\n *--------------------------------------------------------------*/\r\n\r\n/* eslint-disable no-duplicate-imports */\r\nimport { Button, INodeProps } from '@msdyn365-commerce-modules/utilities';\r\nimport * as React from 'react';\r\n\r\nexport interface IShowAdditionalInfoInput {\r\n canEdit: boolean;\r\n orderReference: string;\r\n orderNotes: string;\r\n requestedShippingDate: Date | null;\r\n resources: {\r\n editBtnLabel: string;\r\n orderReferenceDisplayLabel: string;\r\n orderNotesDisplayLabel: string;\r\n requestedShippingDateDisplayLabel: string;\r\n noRequestedShippingDateMessage: string;\r\n };\r\n onEdit(): void;\r\n}\r\n\r\nexport interface IShowAdditionalInfo {\r\n showInfoProps: INodeProps;\r\n orderReference: React.ReactNode;\r\n orderNotes: React.ReactNode;\r\n requestedShippingDate: React.ReactNode;\r\n editButton?: React.ReactNode;\r\n}\r\n\r\nconst dateFormat : Intl.DateTimeFormatOptions = { \r\n weekday: 'long', \r\n year: 'numeric', \r\n month: 'long', \r\n day: 'numeric' \r\n};\r\n\r\nconst getAdditionalInfo = ({\r\n canEdit, \r\n orderReference, \r\n orderNotes, \r\n requestedShippingDate, \r\n resources: { \r\n editBtnLabel, \r\n orderReferenceDisplayLabel,\r\n orderNotesDisplayLabel,\r\n requestedShippingDateDisplayLabel,\r\n noRequestedShippingDateMessage\r\n }, \r\n onEdit \r\n}: IShowAdditionalInfoInput): IShowAdditionalInfo => ({\r\n showInfoProps: { className: 'lli-checkout-additional_info__selected-item' },\r\n orderReference: \r\n {orderReference}
\r\n
,\r\n orderNotes: \r\n {orderNotes}
\r\n
,\r\n requestedShippingDate: \r\n {(requestedShippingDate && requestedShippingDate.toLocaleDateString(undefined, dateFormat)) || noRequestedShippingDateMessage}\r\n ,\r\n editButton: canEdit && (\r\n \r\n {editBtnLabel}\r\n \r\n )\r\n});\r\n\r\nexport default getAdditionalInfo;\r\n","/*--------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * See License.txt in the project root for license information.\r\n *--------------------------------------------------------------*/\r\n\r\n/* eslint-disable no-duplicate-imports */\r\nimport { IModuleStateProps, withModuleState } from '@msdyn365-commerce-modules/checkout-utilities';\r\nimport { IModuleProps } from '@msdyn365-commerce-modules/utilities';\r\nimport classnames from 'classnames';\r\nimport { computed, when } from 'mobx';\r\nimport { observer } from 'mobx-react';\r\nimport * as React from 'react';\r\n\r\nimport { ILliCheckoutAdditionalInfoData } from './lli-checkout-additional-info.data';\r\nimport { ILliCheckoutAdditionalInfoProps } from './lli-checkout-additional-info.props.autogenerated';\r\n\r\nimport getAddAdditionalInfo, { IAddAdditionalInfo } from './components/get-add-additional-info';\r\nimport getShowAdditionalInfo, { IShowAdditionalInfo } from './components/get-show-additional-info';\r\nimport { AttributeTextValue, AttributeValueBase } from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceTypes.g';\r\n\r\nexport * from './components/get-add-additional-info';\r\nexport * from './components/get-show-additional-info';\r\n\r\ninterface ICheckoutAdditionalInfoState {\r\n orderReference: string;\r\n orderNotes: string;\r\n requestedShippingDate: Date | null; // stored as ISO string in attribute, this also means \"T07\" indicates timezone\r\n}\r\n\r\nexport interface ICheckoutAdditionalInfoModuleProps extends ILliCheckoutAdditionalInfoProps, IModuleStateProps { }\r\n\r\nexport interface ILliCheckoutAdditionalInfoViewProps extends ILliCheckoutAdditionalInfoProps, ICheckoutAdditionalInfoState {\r\n moduleProps: IModuleProps;\r\n showAdditionalInfo?: IShowAdditionalInfo;\r\n addAdditionalInfo?: IAddAdditionalInfo;\r\n\r\n onOrderReferenceChange?(orderReference: string): void;\r\n onOrderNotesChange?(orderNotes: string): void;\r\n onRequestedShippingDateChange?(requestedShippingDate: Date): void;\r\n\r\n onEdit?(): void;\r\n onSubmit?(): void;\r\n onCancel?(): void;\r\n}\r\n\r\n/**\r\n *\r\n * LliCheckoutAdditionalInfo component\r\n * @extends {React.PureComponent, ICheckoutAdditionalInfoState>}\r\n */\r\n// @ts-expect-error\r\n@withModuleState\r\n@observer\r\nclass LliCheckoutAdditionalInfo extends React.PureComponent {\r\n public state: ICheckoutAdditionalInfoState = {\r\n orderReference: '',\r\n orderNotes: '',\r\n requestedShippingDate: null\r\n };\r\n\r\n private readonly orderReferenceRef: React.RefObject = React.createRef();\r\n private readonly orderNotesRef: React.RefObject = React.createRef();\r\n \r\n @computed get isDataReady(): boolean {\r\n return (this.props.data.checkout.result && this.props.data.checkout.status) === 'SUCCESS';\r\n }\r\n\r\n public componentDidMount(): void {\r\n when(\r\n () => this.isDataReady,\r\n async () => {\r\n await this.init();\r\n }\r\n );\r\n }\r\n\r\n public shouldComponentUpdate(nextProps: ICheckoutAdditionalInfoModuleProps,\r\n nextState: ICheckoutAdditionalInfoState): boolean {\r\n if (this.state === nextState && this.props.data === nextProps.data) {\r\n return false;\r\n }\r\n return true;\r\n }\r\n\r\n public render(): JSX.Element {\r\n const {\r\n config: { className },\r\n resources,\r\n moduleState: { isReady, hasError, hasExternalSubmitGroup }\r\n } = this.props;\r\n const orderReference = this.getTextAttribute(\"OrderReference\") ?? this.state.orderReference;\r\n const orderNotes = this.getTextAttribute(\"Notes\") ?? this.state.orderNotes;\r\n const requestedShippingDateText = this.getTextAttribute(\"RequestedshipDate\") || this.dateToString(this.state.requestedShippingDate);\r\n const requestedShippingDate = (requestedShippingDateText && new Date(requestedShippingDateText)) || null;\r\n\r\n const viewProps: ILliCheckoutAdditionalInfoViewProps = {\r\n ...this.props,\r\n ...this.state,\r\n onOrderReferenceChange: this.onOrderReferenceChange,\r\n onOrderNotesChange: this.onOrderNotesChange,\r\n onRequestedShippingDateChange: this.onRequestedShippingDateChange,\r\n onEdit: this.onEdit,\r\n onCancel: this.onCancel,\r\n onSubmit: this.onSubmit,\r\n\r\n moduleProps: {\r\n moduleProps: this.props,\r\n className: classnames('lli-checkout-additional-info', className)\r\n },\r\n showAdditionalInfo: isReady ? getShowAdditionalInfo({\r\n canEdit: !hasExternalSubmitGroup,\r\n orderReference,\r\n orderNotes,\r\n requestedShippingDate,\r\n resources,\r\n onEdit: this.onEdit\r\n }) : undefined,\r\n addAdditionalInfo: !isReady ? getAddAdditionalInfo({\r\n orderReference: this.state.orderReference,\r\n orderNotes: this.state.orderNotes,\r\n requestedShippingDate: this.state.requestedShippingDate,\r\n hasError,\r\n resources,\r\n orderReferenceRef: this.orderReferenceRef,\r\n orderNotesRef: this.orderNotesRef,\r\n onOrderReferenceChange: this.onOrderReferenceChange,\r\n onOrderNotesChange: this.onOrderNotesChange,\r\n onRequestedShippingDateChange: this.onRequestedShippingDateChange,\r\n canSubmit: !hasExternalSubmitGroup,\r\n onSubmit: this.onSubmit,\r\n canCancel: !hasExternalSubmitGroup && !!orderReference,\r\n onCancel: this.onCancel\r\n }) : undefined\r\n };\r\n\r\n return this.props.renderView(viewProps) as React.ReactElement;\r\n }\r\n\r\n private readonly init = async (): Promise => {\r\n const orderReference = this.getTextAttribute(\"OrderReference\") || this.state.orderReference;\r\n const orderNotes = this.getTextAttribute(\"Notes\") || this.state.orderNotes;\r\n const requestedShippingDate = this.getTextAttribute(\"RequestedshipDate\") || this.dateToString(this.state.requestedShippingDate) || \"\";\r\n \r\n await this.updateTextAttribute([\r\n {name: \"OrderReference\", value: orderReference},\r\n {name: \"Notes\", value: orderNotes},\r\n {name: \"RequestedshipDate\", value: requestedShippingDate}\r\n ]);\r\n\r\n this.setState({ orderReference, orderNotes, requestedShippingDate: (requestedShippingDate && new Date(requestedShippingDate)) || null });\r\n \r\n this.props.moduleState.init({\r\n onEdit: this.onEdit,\r\n onCancel: this.onCancel,\r\n onSubmit: this.onSubmit,\r\n status: !!orderReference ? 'ready' : 'updating',\r\n hasError: false // false so error won't show on init\r\n });\r\n };\r\n\r\n private readonly onOrderReferenceChange = (orderReference: string): void => {\r\n this.setState({ orderReference });\r\n if (this.props.moduleState.hasError) {\r\n // Clear error user updates order reference\r\n this.props.moduleState.setHasError(false);\r\n }\r\n };\r\n\r\n private readonly onOrderNotesChange = (orderNotes: string): void => {\r\n this.setState({ orderNotes });\r\n };\r\n\r\n private readonly onRequestedShippingDateChange = (requestedShippingDate: Date | null): void => {\r\n this.setState({ requestedShippingDate });\r\n }\r\n\r\n private readonly isOrderReferenceValid = (orderReference: string): boolean => {\r\n return !!orderReference;\r\n }\r\n\r\n private readonly onEdit = (): void => {\r\n this.props.moduleState.onUpdating();\r\n };\r\n\r\n private readonly onSubmit = async (): Promise => {\r\n const { orderReference, orderNotes, requestedShippingDate } = this.state;\r\n \r\n const isValid = this.isOrderReferenceValid(orderReference);\r\n if (!isValid) {\r\n this.props.moduleState.setHasError(true);\r\n\r\n // eslint-disable-next-line xss/no-mixed-html -- Get error, focus back on the input field.\r\n const input = this.orderReferenceRef.current?.focus && (this.orderReferenceRef.current as HTMLElement);\r\n input?.focus();\r\n } else {\r\n this.props.moduleState.onReady();\r\n await this.updateTextAttribute([\r\n {name: \"OrderReference\", value: orderReference},\r\n {name: \"Notes\", value: orderNotes},\r\n {name: \"RequestedshipDate\", value: this.dateToString(requestedShippingDate) || \"\"}\r\n ]);\r\n \r\n this.setState({ orderReference, orderNotes, requestedShippingDate });\r\n }\r\n };\r\n\r\n private readonly onCancel = (): void => {\r\n const orderReference = this.getTextAttribute(\"OrderReference\") || \"\";\r\n const orderNotes = this.getTextAttribute(\"Notes\") || \"\";\r\n const requestedShippingDateText = this.getTextAttribute(\"RequestedshipDate\") || \"\";\r\n const requestedShippingDate = (requestedShippingDateText && new Date(requestedShippingDateText)) || null;\r\n\r\n if (!orderReference) {\r\n // It has no saved order reference, set to status updating and request user to fill the order reference form\r\n this.props.moduleState.onUpdating();\r\n \r\n } else {\r\n // It has saved order reference, set to status ready\r\n this.setState({\r\n orderReference,\r\n orderNotes,\r\n requestedShippingDate\r\n });\r\n this.props.moduleState.setHasError(false);\r\n this.props.moduleState.onReady();\r\n }\r\n };\r\n\r\n private readonly updateTextAttribute = async (args: {name: string, value: string}[]): Promise => {\r\n const cartState = this.props.data.checkout.result?.checkoutCart;\r\n\r\n let newAttributeValues:AttributeValueBase[] = cartState?.attributeValues || [];\r\n\r\n for (var newAttr of args) {\r\n newAttributeValues = newAttributeValues.filter(attr => attr.Name !== newAttr.name);\r\n newAttributeValues.push({\r\n // @ts-ignore\r\n '@odata.type': '#Microsoft.Dynamics.Commerce.Runtime.DataModel.AttributeTextValue',\r\n Name: newAttr.name,\r\n ExtensionProperties: [],\r\n TextValue: newAttr.value,\r\n TextValueTranslations: []\r\n });\r\n }\r\n\r\n await cartState?.updateAttributeValues({newAttributeValues});\r\n };\r\n\r\n private readonly getTextAttribute = (attributeName: string): string | undefined => {\r\n const attributeOnCart = this.props.data.checkout.result?.checkoutCart.attributeValues.find(attr => attr.Name === attributeName) as AttributeTextValue;\r\n const val = attributeOnCart?.TextValue;\r\n return val;\r\n }\r\n\r\n private readonly dateToString = (date: Date | null) => {\r\n if (!date) return \"\";\r\n let year = date.getFullYear();\r\n let month = (1 + date.getMonth()).toString().padStart(2, '0');\r\n let day = date.getDate().toString().padStart(2, '0');\r\n \r\n return month + '/' + day + '/' + year;\r\n }\r\n}\r\n\r\nexport default LliCheckoutAdditionalInfo;\r\n","/*--------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * See License.txt in the project root for license information.\r\n *--------------------------------------------------------------*/\r\n\r\n/* eslint-disable no-duplicate-imports */\r\nimport { Module, Node } from '@msdyn365-commerce-modules/utilities';\r\nimport * as React from 'react';\r\n\r\nimport { IAddAdditionalInfo, ILliCheckoutAdditionalInfoViewProps, IShowAdditionalInfo } from './lli-checkout-additional-info';\r\n\r\nexport const ShowAdditionalInfo: React.FC = ({ showInfoProps, orderReference, orderNotes, requestedShippingDate, editButton }) => (\r\n \r\n {orderReference}\r\n {orderNotes}\r\n {requestedShippingDate}\r\n {editButton}\r\n \r\n);\r\n\r\nexport const AddAdditionalInfo: React.FC = ({\r\n addFormProps,\r\n submitButton,\r\n cancelButton,\r\n inputGroupProps,\r\n orderReferenceProps,\r\n orderNotesProps,\r\n requestedShippingDateProps,\r\n error\r\n}) => (\r\n \r\n \r\n {error}\r\n {orderReferenceProps.label}\r\n {orderReferenceProps.input}\r\n {orderNotesProps.label}\r\n {orderNotesProps.input}\r\n {requestedShippingDateProps.label}\r\n {requestedShippingDateProps.input}\r\n \r\n {submitButton}\r\n {cancelButton}\r\n \r\n);\r\n\r\nconst LliCheckoutAdditionalInfoView: React.FC = ({ moduleProps, showAdditionalInfo, addAdditionalInfo }) => {\r\n return (\r\n \r\n {showAdditionalInfo && }\r\n {addAdditionalInfo && }\r\n \r\n );\r\n};\r\n\r\nexport default LliCheckoutAdditionalInfoView;\r\n","/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\nimport * as React from 'react';\r\n\r\nimport { IObrienProductRegistrationFormData } from './obrien-product-registration-form.data';\r\nimport { IObrienProductRegistrationFormProps } from './obrien-product-registration-form.props.autogenerated';\r\n\r\nexport interface IObrienProductRegistrationFormViewProps extends IObrienProductRegistrationFormProps {\r\n\r\n}\r\n\r\n/**\r\n *\r\n * ObrienProductRegistrationForm component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass ObrienProductRegistrationForm extends React.PureComponent> {\r\n public render(): JSX.Element | null {\r\n\r\n return this.props.renderView(this.props);\r\n }\r\n}\r\n\r\nexport default ObrienProductRegistrationForm;\r\n","import React, { Component } from \"react\";\r\nimport * as emailjs from \"emailjs-com\";\r\nimport { Button, Form, Label, Input } from \"reactstrap\";\r\nimport Swal from \"sweetalert2\";\r\n// @ts-ignore\r\nimport DatePicker from \"react-datepicker\";\r\n// @ts-ignore\r\nimport ReCAPTCHA from \"react-google-recaptcha\";\r\n\r\n\r\nclass RegistrationForm extends Component {\r\n state = {\r\n name: \"\",\r\n email: \"\",\r\n phone: \"\",\r\n address: \"\",\r\n city: \"\",\r\n zip: \"\",\r\n statepick: \"\",\r\n item: \"\",\r\n date: new Date(),\r\n product: \"\",\r\n message: \"\",\r\n recaptchaRef: \"\",\r\n };\r\n\r\n\r\n\r\n // @ts-ignore\r\n handleSubmit(e) {\r\n e.preventDefault();\r\n\r\n const {\r\n name,\r\n email,\r\n phone,\r\n address,\r\n city,\r\n statepick,\r\n zip,\r\n item,\r\n date,\r\n product,\r\n message,\r\n recaptchaRef,\r\n } = this.state;\r\n\r\n let templateParams = {\r\n from_name: name,\r\n from_email: email,\r\n phone: phone,\r\n address: address,\r\n city: city,\r\n statepck: statepick,\r\n zip: zip,\r\n item: item,\r\n date: date,\r\n to_name: \"O'Brien Watersports\",\r\n product: product,\r\n message: message,\r\n recaptchaRef: recaptchaRef,\r\n };\r\n\r\n emailjs.send(\r\n \"obrien_365\",\r\n \"obrien_product_registrat\",\r\n templateParams,\r\n \"user_vOc0ylPHeC2nCdyLQJAiW\"\r\n );\r\n\r\n this.resetForm();\r\n }\r\n resetForm() {\r\n this.setState({\r\n name: \"\",\r\n email: \"\",\r\n phone: \"\",\r\n address: \"\",\r\n city: \"\",\r\n statepick: \"\",\r\n zip: \"\",\r\n item: \"\",\r\n date: \"\",\r\n product: \"\",\r\n message: \"\",\r\n recaptchaRef: \"\",\r\n });\r\n Swal.fire({\r\n title: \"Email Successfully Sent to the O'Brien Team\",\r\n icon: \"success\",\r\n });\r\n }\r\n // @ts-ignore\r\n handleChange = (param, e) => {\r\n this.setState({ [param]: e.target.value });\r\n };\r\n\r\n // @ts-ignore\r\n dateChange = (date) => {\r\n this.setState({\r\n date: date,\r\n });\r\n };\r\n\r\n render() {\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n );\r\n }\r\n}\r\nexport default RegistrationForm;\r\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport {\n CacheType,\n createObservableDataAction,\n IAction,\n IActionContext,\n IActionInput,\n IAny,\n ICommerceApiSettings,\n ICreateActionContext,\n IGeneric\n} from '@msdyn365-commerce/core';\nimport { buildCacheKey } from '@msdyn365-commerce-modules/retail-actions';\n\nimport { CheckoutState } from './checkout-state';\n\n/**\n * CheckoutState - action input.\n */\nexport class CheckoutStateInput implements IActionInput {\n private readonly apiSettings: ICommerceApiSettings;\n\n constructor(apiSettings: ICommerceApiSettings) {\n this.apiSettings = apiSettings;\n }\n\n public getCacheKey = () => buildCacheKey('CheckoutState', this.apiSettings);\n\n public getCacheObjectType = () => 'CheckoutState';\n\n public dataCacheType = (): CacheType => 'request';\n}\n\n/**\n * CheckoutState - action.\n * @param input\n * @param ctx\n */\nexport async function checkoutStateAction(input: CheckoutStateInput, ctx: IActionContext): Promise {\n return new CheckoutState();\n}\n\n/**\n * CheckoutState - create new input for create action.\n * @param inputData\n */\nconst createInput = (inputData: ICreateActionContext>): IActionInput => {\n return new CheckoutStateInput(inputData.requestContext.apiSettings);\n};\n\n/**\n * CheckoutState - create action.\n */\nexport const checkoutStateActionDataAction = createObservableDataAction({\n action: >checkoutStateAction,\n input: createInput\n});\n\nexport default checkoutStateActionDataAction;\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport { IGiftCardExtend } from '@msdyn365-commerce/global-state';\nimport { Address, GiftCard, TenderLine, TokenizedPaymentCard } from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceTypes.g';\nimport { action, computed, observable } from 'mobx';\n\n/**\n * State information related to what is needed to succesfully perform a checkout.\n */\nexport class CheckoutState {\n @observable private _tokenizedPaymentCard: TokenizedPaymentCard | undefined;\n\n @computed public get tokenizedPaymentCard(): Readonly | undefined {\n return this._tokenizedPaymentCard;\n }\n\n @observable private _tenderLine: TenderLine | undefined;\n\n @computed public get tenderLine(): Readonly | undefined {\n return this._tenderLine;\n }\n\n @observable private _billingAddress: Address | undefined;\n\n @computed public get billingAddress(): Readonly
| undefined {\n return this._billingAddress;\n }\n\n @observable private _shippingAddress: Address | undefined;\n\n @computed public get shippingAddress(): Readonly
| undefined {\n return this._shippingAddress;\n }\n\n @observable private _cardPrefix: string | undefined;\n\n @computed public get cardPrefix(): Readonly | undefined {\n return this._cardPrefix;\n }\n\n @observable private _giftCards: GiftCard[] = [];\n\n @computed public get giftCards(): readonly GiftCard[] {\n return this._giftCards;\n }\n\n @observable private _giftCardExtends: IGiftCardExtend[] = [];\n\n @computed public get giftCardExtends(): readonly IGiftCardExtend[] {\n return this._giftCardExtends;\n }\n\n @observable private _loyaltyCardNumber?: string;\n\n @computed public get loyaltyCardNumber(): Readonly | undefined {\n return this._loyaltyCardNumber;\n }\n\n @observable private _loyaltyAmount: number = 0;\n\n @computed public get loyaltyAmount(): Readonly | number {\n return this._loyaltyAmount;\n }\n\n @observable private _guestCheckoutEmail: string = '';\n\n @computed public get guestCheckoutEmail(): Readonly | string {\n return this._guestCheckoutEmail;\n }\n\n @observable private _isTermsAndConditionAccepted: boolean = false;\n\n @computed public get isTermsAndConditionAccepted(): Readonly | boolean {\n return this._isTermsAndConditionAccepted;\n }\n\n @observable private _customerAccountAmount: number = 0;\n\n @computed public get customerAccountAmount(): Readonly | number {\n return this._customerAccountAmount;\n }\n\n @action\n public updateTokenizedPaymentCard(newTokenizedPaymentCard: TokenizedPaymentCard): void {\n this._tokenizedPaymentCard = newTokenizedPaymentCard;\n }\n\n @action\n public updateTenderLine(newTenderLine: TenderLine | undefined): void {\n this._tenderLine = newTenderLine;\n }\n\n @action\n public updateShippingAddress(newShippingAddress: Address): void {\n this._shippingAddress = newShippingAddress;\n }\n\n @action\n public updateBillingAddress(newBillingAddress: Address): void {\n this._billingAddress = newBillingAddress;\n }\n\n @action\n public updateCardPrefix(newCardPrefix: string): void {\n this._cardPrefix = newCardPrefix;\n }\n\n @action\n public removeGiftCard(giftCardNumber: string): void {\n this._giftCards = this._giftCards.filter(giftCard => giftCard.Id !== giftCardNumber);\n }\n\n @action\n public removeGiftCardExtend(giftCardNumber: string): void {\n this._giftCardExtends = this._giftCardExtends.filter(giftCard => giftCard.Id !== giftCardNumber);\n }\n\n @action\n public addGiftCard(giftCard: GiftCard): void {\n this._giftCards = [giftCard, ...this._giftCards];\n }\n\n @action\n public addGiftCardExtend(giftCard: IGiftCardExtend): void {\n this._giftCardExtends = [giftCard, ...this._giftCards];\n }\n\n @action\n public updateLoyaltyCardNumber(newLoyaltyCardNumber: string): void {\n this._loyaltyCardNumber = newLoyaltyCardNumber;\n }\n\n @action\n public updateLoyaltyAmount(newAmount: number): void {\n this._loyaltyAmount = newAmount;\n }\n\n @action\n public updateGuestCheckoutEmail(newGuestCheckoutEmail: string): void {\n this._guestCheckoutEmail = newGuestCheckoutEmail;\n }\n\n @action\n public updateTermsAndConditionsAcceptance(newIsTermsAndConditionAccepted: boolean): void {\n this._isTermsAndConditionAccepted = newIsTermsAndConditionAccepted;\n }\n\n @action\n public updateCustomerAccountAmount(newAmount: number): void {\n this._customerAccountAmount = newAmount;\n }\n}\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport { CacheType, IActionContext, IActionInput } from '@msdyn365-commerce/core';\n\nimport { IModuleStates } from './module-state.data';\n\n/**\n * GetModulesInput.\n */\nexport class ModuleStatesCacheKey implements IActionInput {\n public getCacheKey = () => 'ModuleState';\n\n public getCacheObjectType = () => 'ModuleState';\n\n public dataCacheType = (): CacheType => 'none';\n}\n\nexport function getModuleStates(ctx: IActionContext): IModuleStates {\n const cacheKey = new ModuleStatesCacheKey();\n\n let moduleStates = ctx.get(cacheKey.getCacheObjectType(), cacheKey.getCacheKey());\n if (moduleStates) {\n return moduleStates;\n }\n ctx.update(cacheKey, {});\n moduleStates = ctx.get(cacheKey.getCacheObjectType(), cacheKey.getCacheKey());\n return moduleStates;\n}\n\nexport function updateModuleStates(value: IModuleStates, ctx: IActionContext): void {\n const cacheKey = new ModuleStatesCacheKey();\n ctx.update(cacheKey, value);\n}\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport { IModule } from '@msdyn365-commerce/core';\nimport { ArrayExtensions } from '@msdyn365-commerce-modules/retail-actions';\nimport isMatch from 'lodash/isMatch';\nimport { observer } from 'mobx-react';\nimport * as React from 'react';\n\nimport { getModuleStates, updateModuleStates } from './module-state';\nimport { IModuleState, IModuleStateManager, IModuleStateProps, IModuleStates } from './module-state.data';\n\nexport interface IProps extends IModule, IModuleStateProps {\n enableControl?: boolean;\n}\n\nconst sectionContainerModuleId = 'section-container';\nconst paymentInstrumentModuleId = 'payment-instrument';\n\nconst withModuleState =

(WrappedComponent: React.ComponentType

): React.ComponentType

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

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

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