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AK0D,MAAMb,SAAW7C,KAAK0D,MAAMK,SAAW/D,KAAK0D,MAAMO,uBAE5IjE,KAAK8F,qBAAuB9F,KAAKmB,MAAMA,MAAM4E,UAAUC,0BAE3B,KAA5BhG,KAAK0D,MAAMhB,cAAuB1C,KAAK0D,MAAMrB,aAC7CrC,KAAKiG,yBAA2BjG,KAAKmB,MAAMA,MAAM4E,UAAUE,0BAG/D,MAAM9D,EAAWnC,KAAK0D,MAAMvB,SACtBE,EAAarC,KAAK0D,MAAMrB,WAC9B,OACInB,IAAAA,cAAAA,IAAAA,SAAA,KACKiB,GACGjB,IAAAA,cAAA,QAAMwE,UAAW,GAAGA,WAAoBQ,KAAK,QAAO,YAAW,aAEvDlG,KAAK8F,sBACL5E,IAAAA,cAAAA,IAAAA,SAAA,KACIA,IAAAA,cAAA,QAAMwE,UAAW,GAAGA,gBAAuB,cAAc,SACxD1F,KAAK8F,uBAKrBzD,GACGnB,IAAAA,cAAA,QAAMwE,UAAW,GAAGA,WAAoBQ,KAAK,QAAO,YAAW,aAEvDlG,KAAKiG,0BACL/E,IAAAA,cAAAA,IAAAA,SAAA,KACIA,IAAAA,cAAA,QAAMwE,UAAW,GAAGA,gBAAuB,cAAc,SACxD1F,KAAKiG,2BAOlC,GAn6BEsE,GAAkB0M,EAAAA,EAAAA,IAAA,CADvBC,EAAAA,IACK3M,GAy8BN","sources":["webpack://Citta2.0/./src/data-actions/pdp-enquiry/submit-pdp-enquiry-form-data.ts?9564","webpack://Citta2.0/./src/modules/citta-enquire-form/citta-enquire-form.tsx?4786","webpack://Citta2.0/./src/modules/citta-enquire-form/citta-enquire-form.view.tsx?c1aa","webpack://Citta2.0/./src/components/citta-notify-me/notify-me.tsx?1aee","webpack://Citta2.0/./src/themes/citta/views/components/add-to-cart.component.tsx?7134"],"sourcesContent":["/*---------------------------------------------------------------------------------------------\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 { CacheType, createObservableDataAction, IAction, IActionContext, IActionInput } from '@msdyn365-commerce/core';\r\nimport { createProductEnquiryAsync } from '../generated/DataActionExtension.g';\r\nimport { IDXC_ProductEnquiryResponse } from '../generated/DataServiceEntities.g';\r\n\r\n/**\r\n * SubmitContactFormDataActionInput Input Action\r\n */\r\n\r\nexport class SubmitPdpEnquiryFormDataActionInput implements IActionInput {\r\n public firstName: string;\r\n public lastName: string;\r\n public email: string;\r\n public phone: string;\r\n public storeName: string;\r\n public product: string;\r\n public enquiry: string;\r\n public customisations: string;\r\n public fabricType: string;\r\n public fabricColour: string;\r\n public consultationType: string;\r\n public channelId: string;\r\n public subscribeNewsletter: number;\r\n\r\n // Construct the input needed to run the action\r\n constructor(\r\n firstName: string,\r\n lastName: string,\r\n email: string,\r\n phone: string,\r\n storeName: string,\r\n product: string,\r\n enquiry: string,\r\n customisations: string,\r\n fabricType: string,\r\n fabricColour: string,\r\n consultationType: string,\r\n channelId: string,\r\n subscribeNewsletter: number) {\r\n this.firstName = firstName;\r\n this.lastName = lastName;\r\n this.email = email;\r\n this.phone = phone;\r\n this.storeName = storeName;\r\n this.product = product;\r\n this.enquiry = enquiry;\r\n this.customisations = customisations;\r\n this.fabricType = fabricType;\r\n this.fabricColour = fabricColour;\r\n this.consultationType = consultationType;\r\n this.channelId = channelId;\r\n this.subscribeNewsletter = subscribeNewsletter;\r\n }\r\n\r\n // TODO: Determine if the results of this get action should cache the results and if so provide\r\n // a cache object type and an appropriate cache key\r\n public getCacheKey = () => 'ContactForm2020';\r\n public getCacheObjectType = () => 'ContactForm';\r\n public dataCacheType = (): CacheType => 'request';\r\n}\r\n\r\n/**\r\n * TODO: Use this function to create the input required to make the action call\r\n */\r\nconst createInput = (args: SubmitPdpEnquiryFormDataActionInput): IActionInput => {\r\n return args;\r\n};\r\n\r\n/**\r\n * TODO: Use this function to call your action and process the results as needed\r\n */\r\nexport async function submitPdpEnquiryFormAction(\r\n input: SubmitPdpEnquiryFormDataActionInput,\r\n ctx: IActionContext\r\n): Promise {\r\n // Input only needs token\r\n let result: IDXC_ProductEnquiryResponse = {success: false};\r\n try {\r\n result = await createProductEnquiryAsync(\r\n { callerContext: ctx },\r\n input.firstName,\r\n input.lastName,\r\n input.email,\r\n input.phone,\r\n input.storeName,\r\n input.product,\r\n input.enquiry,\r\n input.customisations,\r\n input.fabricType,\r\n input.fabricColour,\r\n input.consultationType,\r\n input.channelId,\r\n input.subscribeNewsletter);\r\n } catch (error) {\r\n console.log(error);\r\n }\r\n return Array.isArray(result) ? result[0] : result;\r\n}\r\n\r\nexport const ISubmitPdpEnquiryFormDataActionAction = createObservableDataAction({\r\n action: >submitPdpEnquiryFormAction,\r\n input: createInput\r\n});\r\n","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\n\r\nimport * as React from 'react';\r\nimport { Button, Modal, ModalBody, ModalHeader } from '@msdyn365-commerce-modules/utilities';\r\n\r\nimport { ICittaEnquireFormData } from './citta-enquire-form.data';\r\nimport { ICittaEnquireFormProps } from './citta-enquire-form.props.autogenerated';\r\nimport { submitPdpEnquiryFormAction, SubmitPdpEnquiryFormDataActionInput } from '../../data-actions/pdp-enquiry/submit-pdp-enquiry-form-data';\r\n\r\nexport interface ICittaEnquireFormViewProps extends ICittaEnquireFormProps {\r\n ModalItem: React.ReactNode;\r\n EnquireButton: React.ReactNode;\r\n}\r\n\r\ninterface ICittaEnquireFormState {\r\n isOpen: boolean;\r\n responseReceived: boolean;\r\n design: string;\r\n name: string;\r\n lastName: string;\r\n emailAddress: string;\r\n phoneNumber: string;\r\n storePickerValue: string;\r\n storePickerText: string;\r\n enquiryMessage: string;\r\n upholstery: string;\r\n dError: boolean;\r\n nError: boolean;\r\n lNError: boolean;\r\n eAError: boolean;\r\n pHError: boolean;\r\n pCError: boolean;\r\n reqError: boolean;\r\n eAValError: boolean;\r\n enquiryMessageError: boolean;\r\n cHError: boolean;\r\n nLSError: boolean;\r\n}\r\n\r\n/**\r\n *\r\n * CittaEnquireForm component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass CittaEnquireForm extends React.PureComponent, ICittaEnquireFormState> {\r\n private response: boolean = false;\r\n\r\n private _designInputRef: React.RefObject;\r\n private _nameInputRef: React.RefObject;\r\n private _lastNameInputRef: React.RefObject;\r\n private _emailAddressInputRef: React.RefObject;\r\n private _phoneNumberInputRef: React.RefObject;\r\n private _enquiryMessageInputRef: React.RefObject;\r\n private _productTypePickerSelectRef: React.RefObject;\r\n private _storePickerSelectRef: React.RefObject;\r\n private _upholsteryInputRef: React.RefObject;\r\n private requiredErrorMessage: string | undefined;\r\n private eAValidationErrorMessage: string | undefined;\r\n\r\n private designValue: boolean = false;\r\n private nameValue: boolean = false;\r\n private lastNameValue: boolean = false;\r\n private emailAddressValue: boolean = false;\r\n private phoneNumberValue: boolean = false;\r\n private formInputValues: boolean = false;\r\n\r\n constructor(props: ICittaEnquireFormProps) {\r\n super(props);\r\n\r\n this.state = {\r\n isOpen: false,\r\n responseReceived: false,\r\n design: props.config.productDesign || '',\r\n name: '',\r\n lastName: '',\r\n emailAddress: '',\r\n phoneNumber: '',\r\n enquiryMessage: '',\r\n storePickerValue: '',\r\n storePickerText: '',\r\n upholstery: '',\r\n dError: false,\r\n cHError: false,\r\n lNError: false,\r\n eAError: false,\r\n pHError: false,\r\n nError: false,\r\n reqError: false,\r\n pCError: false,\r\n eAValError: false,\r\n enquiryMessageError: false,\r\n nLSError: false\r\n }\r\n\r\n this._designInputRef = React.createRef();\r\n this._nameInputRef = React.createRef();\r\n this._lastNameInputRef = React.createRef();\r\n this._emailAddressInputRef = React.createRef();\r\n this._phoneNumberInputRef = React.createRef();\r\n this._enquiryMessageInputRef = React.createRef();\r\n this._productTypePickerSelectRef = React.createRef();\r\n this._storePickerSelectRef = React.createRef();\r\n this._upholsteryInputRef = React.createRef();\r\n\r\n this._closeModal = this._closeModal.bind(this);\r\n this._openModal = this._openModal.bind(this);\r\n this._handleSend = this._handleSend.bind(this);\r\n }\r\n \r\n public render(): JSX.Element | null {\r\n const viewProps: ICittaEnquireFormViewProps = {\r\n ... this.props,\r\n ModalItem: this._renderEnquiremodal(),\r\n EnquireButton: this._renderEnquireButton()\r\n };\r\n return this.props.renderView(viewProps) as React.ReactElement;\r\n }\r\n\r\n\r\n private _closeModal(): void {\r\n this.setState(prevState => ({\r\n isOpen: !prevState.isOpen\r\n }));\r\n }\r\n private _openModal(): void {\r\n this.setState(prevState => ({\r\n isOpen: !prevState.isOpen,\r\n responseReceived: false\r\n }));\r\n }\r\n\r\n private _renderEnquireButton(): JSX.Element {\r\n return (\r\n \r\n )\r\n }\r\n\r\n private _renderAlert(className: string): JSX.Element {\r\n const inputBoxErrors = (this.state.nError || this.state.lNError || this.state.eAError || this.state.pHError || this.state.cHError || this.state.enquiryMessageError);\r\n if (inputBoxErrors) {\r\n this.requiredErrorMessage = this.props.resources.requiredTextErrorMessage;\r\n }\r\n if (this.state.emailAddress !== '' && this.state.eAValError) {\r\n this.eAValidationErrorMessage = this.props.resources.eAValidationErrorMessage;\r\n }\r\n\r\n const reqError = this.state.reqError;\r\n const eAValError = this.state.eAValError;\r\n return (\r\n <>\r\n {reqError && (\r\n \r\n {\r\n this.requiredErrorMessage &&\r\n <>\r\n \r\n )}\r\n {eAValError && (\r\n \r\n {\r\n this.eAValidationErrorMessage &&\r\n <>\r\n \r\n )}\r\n \r\n );\r\n }\r\n\r\n private handleChange = (inputText: string) => (e: React.ChangeEvent) => {\r\n const value = e.target.value;\r\n switch (inputText) {\r\n case 'designInput': {\r\n this.setState({ design: value, reqError: false, dError: false, eAValError: false, nLSError: false });\r\n break;\r\n }\r\n case 'nameInput': {\r\n this.setState({ name: value, reqError: false, nError: false, eAValError: false, nLSError: false });\r\n break;\r\n }\r\n case 'lastNameInput': {\r\n this.setState({ lastName: value, reqError: false, lNError: false, eAValError: false, nLSError: false });\r\n break;\r\n }\r\n case 'emailAddress': {\r\n this.setState({ emailAddress: value, reqError: false, eAError: false, eAValError: false, nLSError: false });\r\n break;\r\n }\r\n case 'phoneNumber': {\r\n this.setState({ phoneNumber: value, reqError: false, pHError: false, eAValError: false, nLSError: false });\r\n break;\r\n }\r\n case 'upholstery': {\r\n this.setState({ upholstery: value, reqError: false, eAValError: false, nLSError: false });\r\n break;\r\n }\r\n default: null;\r\n }\r\n }\r\n\r\n private onChangeSelect = (e: React.ChangeEvent) => {\r\n const text = e.target.options[e.target.options.selectedIndex].textContent;\r\n this.setState({ storePickerValue: e.target.value || '', storePickerText: text || '' });\r\n };\r\n\r\n private isEmailValid = (email: string): boolean => {\r\n const regex = /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\r\n return regex.test(email);\r\n };\r\n\r\n private handleMessageChange = (e: React.ChangeEvent) => {\r\n const value = e.target.value;\r\n this.setState({ enquiryMessage: value, reqError: false, eAValError: false, nLSError: false });\r\n }\r\n\r\n private _renderEnquiremodal(): JSX.Element {\r\n const { config, resources } = this.props;\r\n const cittaStoresList: string = this.props.context.app.config.cittaStoresList || 'Città BLOC,000010|Città Grey Lynn,000012|Città Hamilton,000013|Città Merivale,000016|Città Wellington,000017|Città Wellington Thorndon,000018|Città Newmarket,000041|Città Takapuna,000044';\r\n const cittaStores: string[] = cittaStoresList.split('|');\r\n // const colors = this._getDimensionValues(this.props.data.productDimensions || [], this.colorProductDimensionTypeValue);\r\n // const sizes = this._getDimensionValues(this.props.data.productDimensions || [], this.sizeProductDimensionTypeValue);\r\n\r\n return (\r\n
\r\n \r\n {config.modalHeader || 'enquire in-store'}\r\n \r\n
\r\n {this.state.responseReceived && this.response\r\n ?
\r\n

{resources.responseSuccessMessage}

\r\n
: null}\r\n {this.state.responseReceived && !this.response ?
\r\n

{resources.responseErrorMessage}

\r\n
: null}\r\n {!this.state.responseReceived ?
\r\n
\r\n {this.state.dError ? this._renderAlert('contact-form-design') : ''}\r\n
\r\n
\r\n {this.state.nError ? this._renderAlert('contact-form-name') : ''}\r\n
\r\n
\r\n {this.state.lNError ? this._renderAlert('contact-form-name') : ''}\r\n
\r\n
\r\n {this.state.eAError || this.state.eAValError ? this._renderAlert('contact-form-emailaddress') : ''}\r\n
\r\n
\r\n {this.state.pHError ? this._renderAlert('contact-form-phonenumber') : ''}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {/* {sizes && (\r\n
\r\n \r\n
\r\n {\r\n sizes.map((size, index) => {\r\n return (\r\n
\r\n \r\n
\r\n );\r\n })\r\n }\r\n
\r\n {this.state.cHError ? this._renderAlert('contact-form-customizations') : ''}\r\n
\r\n )}\r\n {colors && (\r\n
\r\n
\r\n
\r\n
\r\n )} */}\r\n
\r\n {this.state.enquiryMessageError ? this._renderAlert('enquire-form-message') : ''}\r\n
\r\n
\r\n \r\n {resources.enquireSendButtonText}\r\n \r\n\r\n Store Locations\r\n
\r\n
\r\n : null}\r\n
\r\n
\r\n \r\n
\r\n );\r\n }\r\n\r\n // tslint:disable-next-line: cyclomatic-complexity\r\n private async _handleSend(e: React.MouseEvent | React.KeyboardEvent | React.FormEvent): Promise {\r\n this.designValue = (this._designInputRef && this._designInputRef.current && this._designInputRef.current.value) ? true : false;\r\n this.nameValue = (this._nameInputRef && this._nameInputRef.current && this._nameInputRef.current.value) ? true : false;\r\n this.lastNameValue = (this._lastNameInputRef && this._lastNameInputRef.current && this._lastNameInputRef.current.value) ? true : false;\r\n this.emailAddressValue = (this._emailAddressInputRef && this._emailAddressInputRef.current && this._emailAddressInputRef.current.value) ? true : false;\r\n this.phoneNumberValue = (this._phoneNumberInputRef && this._phoneNumberInputRef.current && this._phoneNumberInputRef.current.value) ? true : false;\r\n\r\n const de = (this._designInputRef && this._designInputRef.current && this._designInputRef.current.value) ? this._designInputRef.current.value : '';\r\n const nA = (this._nameInputRef && this._nameInputRef.current && this._nameInputRef.current.value) ? this._nameInputRef.current.value : '';\r\n const lN = (this._lastNameInputRef && this._lastNameInputRef.current && this._lastNameInputRef.current.value) ? this._lastNameInputRef.current.value : '';\r\n const eA = (this._emailAddressInputRef && this._emailAddressInputRef.current && this._emailAddressInputRef.current.value) ? this._emailAddressInputRef.current.value : '';\r\n const pN = (this._phoneNumberInputRef && this._phoneNumberInputRef.current && this._phoneNumberInputRef.current.value) ? this._phoneNumberInputRef.current.value : '';\r\n const up = (this._upholsteryInputRef && this._upholsteryInputRef.current && this._upholsteryInputRef.current.value) ? this._upholsteryInputRef.current.value : '';\r\n const sP = this.state.storePickerText;\r\n const cI = this._storePickerSelectRef.current!.value;\r\n\r\n\r\n const pT = (this._productTypePickerSelectRef && this._productTypePickerSelectRef.current && this._productTypePickerSelectRef.current.value) ? this._productTypePickerSelectRef.current.value : '';\r\n const eM = (this._enquiryMessageInputRef && this._enquiryMessageInputRef.current && this._enquiryMessageInputRef.current.value) ? this._enquiryMessageInputRef.current.value : '';\r\n // const eAVal = this._emailAddressInputRef.current!.value;\r\n // const pID = this.props.data.product.ItemId || '';\r\n // const sN = this.state.subcribeNewsletterChecked ? 1 : 0;\r\n\r\n if (!this.designValue) {\r\n this.setState({\r\n dError: true,\r\n reqError: true\r\n });\r\n } else if (!this.nameValue) {\r\n this.setState({\r\n nError: true,\r\n reqError: true\r\n });\r\n } else if (!this.lastNameValue) {\r\n this.setState({\r\n lNError: true,\r\n reqError: true\r\n });\r\n } else if (!this.emailAddressValue) {\r\n this.setState({\r\n eAError: true,\r\n reqError: true\r\n });\r\n } else if (!this.isEmailValid(eA)) {\r\n this.setState({\r\n eAValError: true\r\n });\r\n } else if (!this.phoneNumberValue) {\r\n this.setState({\r\n pHError: true,\r\n reqError: true\r\n });\r\n } else {\r\n this.formInputValues = (this.nameValue && this.lastNameValue && this.emailAddressValue && this.phoneNumberValue) ? true : false;\r\n\r\n if (this.formInputValues && !this.state.eAValError) {\r\n try {\r\n const result = await submitPdpEnquiryFormAction(new SubmitPdpEnquiryFormDataActionInput(nA, lN, eA, pN, sP, de, eM, '', pT, up, 'Enquire Custom Furniture', cI, 0), this.props.context.actionContext);\r\n this.response = result.success;\r\n\r\n //scroll to top of div\r\n\r\n this.setState({ responseReceived: true });\r\n } catch {\r\n console.log('Please fill the form!');\r\n }\r\n }\r\n }\r\n }\r\n}\r\n\r\nexport default CittaEnquireForm;\r\n","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\n\r\nimport * as React from 'react';\r\nimport { ICittaEnquireFormViewProps } from './citta-enquire-form';\r\n\r\nexport default (props: ICittaEnquireFormViewProps) => {\r\n return (\r\n
\r\n {props.EnquireButton}\r\n {props.ModalItem}\r\n
\r\n );\r\n};\r\n","\r\nimport { Button } from '@msdyn365-commerce-modules/utilities';\r\nimport * as React from 'react';\r\nimport { INotifyMeProps } from './notify-me.props';\r\nimport { INotifyMeState } from './notify-me.state';\r\n\r\n/**\r\n *\r\n * Notify Me component\r\n */\r\nexport class NotifyMe extends React.Component {\r\n private _firstNameInputRef: React.RefObject;\r\n private _lastNameInputRef: React.RefObject;\r\n private _emailAddressInputRef: React.RefObject;\r\n\r\n private requiredErrorMessage: string | undefined;\r\n private eAValidationErrorMessage: string | undefined;\r\n\r\n private firstNameValue: boolean = false;\r\n private lastNameValue: boolean = false;\r\n private emailAddressValue: boolean = false;\r\n\r\n constructor(props: INotifyMeProps) {\r\n super(props);\r\n this.state = {\r\n fNError: false,\r\n lNError: false,\r\n eAError: false,\r\n eAValError: false,\r\n subscribeChecked: false,\r\n firstName: '',\r\n lastName: '',\r\n emailAddress: ''\r\n };\r\n\r\n this._firstNameInputRef = React.createRef();\r\n this._lastNameInputRef = React.createRef();\r\n this._emailAddressInputRef = React.createRef();\r\n this._handleSend = this._handleSend.bind(this);\r\n }\r\n\r\n public render(): JSX.Element | null {\r\n const {\r\n notifyFormText,\r\n firstNamePlaceholderText,\r\n lastNamePlaceholderText,\r\n emailAddressPlaceholderText,\r\n notifyContactMessage,\r\n notifyContactMessageLink,\r\n sendButtonText\r\n } = this.props;\r\n\r\n return (\r\n
\r\n
\r\n

\r\n {notifyFormText}\r\n

\r\n
\r\n {this.state.fNError ? this._renderAlert('contact-notifyform-firstname') : ''}\r\n \r\n
\r\n
\r\n {this.state.lNError ? this._renderAlert('contact-notifyform-lastname') : ''}\r\n \r\n
\r\n
\r\n {this.state.eAError || this.state.eAValError ? this._renderAlert('contact-notifyform-emailaddress') : ''}\r\n
\r\n
\r\n \r\n {sendButtonText}\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n );\r\n }\r\n\r\n private isEmailValid = (email: string): boolean => {\r\n const regex = /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\r\n return regex.test(email);\r\n };\r\n\r\n private handleChange = (inputText: string) => (e: React.ChangeEvent | React.ChangeEvent ) => {\r\n const value = e.target.value;\r\n switch (inputText) {\r\n case 'firstName': {\r\n this.setState({ firstName: value, reqError: false, fNError: false, lNError: false, eAError: false, eAValError: false });\r\n break;\r\n }\r\n case 'lastName': {\r\n this.setState({ lastName: value, reqError: false, fNError: false, lNError: false, eAError: false, eAValError: false });\r\n break;\r\n }\r\n case 'emailAddress': {\r\n this.setState({ emailAddress: value, reqError: false, fNError: false, lNError: false, eAError: false, eAValError: false });\r\n break;\r\n }\r\n case 'subscribe': {\r\n this.setState(prevState => ({subscribeChecked: !prevState.subscribeChecked }));\r\n break;\r\n }\r\n default: null;\r\n }\r\n }\r\n\r\n private _renderAlert(className: string): JSX.Element {\r\n const inputBoxErrors = (this.state.fNError || this.state.lNError || this.state.eAError);\r\n if (inputBoxErrors) {\r\n this.requiredErrorMessage = this.props.requiredTextErrorMessage;\r\n }\r\n if (this.state.emailAddress !== '' && this.state.eAValError) {\r\n this.eAValidationErrorMessage = this.props.eAValidationErrorMessage;\r\n }\r\n\r\n const reqError = this.state.reqError;\r\n const eAValError = this.state.eAValError;\r\n return (\r\n <>\r\n {reqError && (\r\n \r\n {\r\n this.requiredErrorMessage &&\r\n <>\r\n \r\n )}\r\n {eAValError && (\r\n \r\n {\r\n this.eAValidationErrorMessage &&\r\n <>\r\n \r\n )}\r\n \r\n );\r\n }\r\n\r\n // tslint:disable-next-line: cyclomatic-complexity\r\n private async _handleSend(e: React.MouseEvent | React.KeyboardEvent | React.FormEvent): Promise {\r\n this.firstNameValue = (this._firstNameInputRef && this._firstNameInputRef.current && this._firstNameInputRef.current.value) ? true : false;\r\n this.lastNameValue = (this._lastNameInputRef && this._lastNameInputRef.current && this._lastNameInputRef.current.value) ? true : false;\r\n this.emailAddressValue = (this._emailAddressInputRef && this._emailAddressInputRef.current && this._emailAddressInputRef.current.value) ? true : false;\r\n\r\n const fnA = (this._firstNameInputRef && this._firstNameInputRef.current && this._firstNameInputRef.current.value) ? this._firstNameInputRef.current.value : '';\r\n const lnA = (this._lastNameInputRef && this._lastNameInputRef.current && this._lastNameInputRef.current.value) ? this._lastNameInputRef.current.value : '';\r\n const eA = (this._emailAddressInputRef && this._emailAddressInputRef.current && this._emailAddressInputRef.current.value) ? this._emailAddressInputRef.current.value : '';\r\n const eAVal = this._emailAddressInputRef.current!.value;\r\n\r\n const { subscribeChecked } = this.state;\r\n\r\n if (!this.firstNameValue) {\r\n this.setState({\r\n fNError: true,\r\n reqError: true\r\n });\r\n } else if (!this.lastNameValue) {\r\n this.setState({\r\n lNError: true,\r\n reqError: true\r\n });\r\n } else if (!this.emailAddressValue) {\r\n this.setState({\r\n eAError: true,\r\n reqError: true\r\n });\r\n } else if (!this.isEmailValid(eAVal)) {\r\n this.setState({\r\n eAValError: true\r\n });\r\n } else {\r\n if (this.emailAddressValue && !this.state.eAValError) {\r\n this.props.notifySubmitClicked(fnA, lnA, eA, subscribeChecked);\r\n }\r\n this.setState({\r\n firstName: '',\r\n lastName: '',\r\n emailAddress: '',\r\n subscribeChecked: false\r\n });\r\n }\r\n }\r\n}\r\n","import { IBuyboxData, IBuyboxViewProps } from '@msdyn365-commerce-modules/buybox';\r\n// import * as MsDyn365 from '@msdyn365-commerce/core';\r\nimport { IProductInventoryInformation } from '@msdyn365-commerce-modules/retail-actions';\r\nimport { Button, getPayloadObject, getTelemetryAttributes, IPopupProps, ITelemetryContent, Modal, ModalBody, ModalHeader, Popup } from '@msdyn365-commerce-modules/utilities';\r\nimport { ProductDimensionFull } from '@msdyn365-commerce/commerce-entities';\r\nimport { PriceComponent } from '@msdyn365-commerce/components';\r\nimport { IComponentProps, IGridSettings, IImageSettings, TelemetryEvent } from '@msdyn365-commerce/core';\r\nimport { getCartState, ICartActionResult } from '@msdyn365-commerce/global-state';\r\nimport {\r\n AttributeValue, ProductAvailableQuantity, ProductDimension, ProductPrice, SimpleProduct\r\n} from '@msdyn365-commerce/retail-proxy';\r\nimport classnames from 'classnames';\r\nimport { reaction } from 'mobx';\r\nimport { observer } from 'mobx-react';\r\nimport React from 'react';\r\nimport { NotifyMe } from '../../../../components/citta-notify-me/notify-me';\r\nimport { submitPdpEnquiryFormAction, SubmitPdpEnquiryFormDataActionInput } from '../../../../data-actions/pdp-enquiry/submit-pdp-enquiry-form-data';\r\nimport { IBuyboxProps as IBuyboxExtentionProps } from '../../definition-extensions/buybox.ext.props.autogenerated';\r\n\r\n\r\nenum SOH {\r\n stockAvailability = 'StockAvailability',\r\n stockThreshold = 'StockThreshold',\r\n estimatedDate = 'EstimatedDate',\r\n soldOut = 'Sold Out',\r\n comingSoon = 'Coming Soon',\r\n inStock = 'In Stock',\r\n notifyMe = 'Notify Me',\r\n expectedinStock = 'Expected in Stock:',\r\n enquireNow = 'Enquire Now'\r\n}\r\n\r\nexport interface IAddToCartComponentProps extends IComponentProps<{ product: SimpleProduct; price?: ProductPrice; productDimensions?: ProductDimensionFull[]; productAvailableQuantity: IProductInventoryInformation[] | undefined }> {\r\n className?: string;\r\n addToCartText: string;\r\n outOfStockText: string;\r\n disabled?: boolean;\r\n quantity?: number;\r\n navigationUrl?: string;\r\n productAvailability?: ProductAvailableQuantity;\r\n getSelectedProduct?: Promise;\r\n\r\n imageSettings?: IImageSettings;\r\n gridSettings?: IGridSettings;\r\n props: IBuyboxViewProps & IBuyboxExtentionProps;\r\n isLoading?: boolean;\r\n isUpdatingDimension?: boolean;\r\n\r\n dialogStrings?: {\r\n goToCartText: string;\r\n continueShoppingText: string;\r\n headerItemOneText: string;\r\n headerItemFormatText: string;\r\n headerMessageText: string;\r\n freePriceText: string;\r\n originalPriceText: string;\r\n currentPriceText: string;\r\n };\r\n telemetryContent?: ITelemetryContent;\r\n\r\n onAdd?(result: ICartActionResult): void;\r\n onError?(result: IAddToCartFailureResult): void;\r\n changeUpdatingDimension?(isUpdatingDimension: boolean): void;\r\n}\r\n\r\nexport declare type ICartActionFailureReason = 'EMPTYINPUT' | 'MISSINGDIMENSION' | 'OUTOFSTOCK' | 'CARTACTIONFAILED';\r\nexport interface IAddToCartFailureResult {\r\n failureReason: ICartActionFailureReason;\r\n\r\n stockLeft?: number;\r\n cartActionResult?: ICartActionResult;\r\n missingDimensions?: ProductDimension[];\r\n}\r\n\r\ninterface IAddToCartState {\r\n isOpen: boolean;\r\n responseReceived: boolean;\r\n notifyResponseSuccess: boolean;\r\n name: string;\r\n lastName: string;\r\n emailAddress: string;\r\n phoneNumber: string;\r\n enquiryMessage: string;\r\n storePickerValue: string;\r\n storePickerText: string;\r\n nError: boolean;\r\n lNError: boolean;\r\n eAError: boolean;\r\n pHError: boolean;\r\n reqError: boolean;\r\n eAValError: boolean;\r\n enquiryMessageError: boolean;\r\n cHError: boolean;\r\n nLSError: boolean;\r\n subcribeNewsletterChecked: boolean;\r\n customizationsCheckedItems: string[];\r\n productTypePickerValue: string;\r\n disabled: boolean;\r\n modalOpen: boolean;\r\n isNotifyOpen: boolean;\r\n addToCartButtonText: string;\r\n productsAddedToCart: number[];\r\n}\r\n/**\r\n *\r\n * The AddToCartComponent renders the AddToCartComponent section.\r\n * @extends {React.Component}\r\n */\r\n@observer\r\nclass AddToCartComponent extends React.Component {\r\n private _productAttributeInStoreOnly: string | undefined;\r\n private response: boolean = false;\r\n private _nameInputRef: React.RefObject;\r\n private _lastNameInputRef: React.RefObject;\r\n private _emailAddressInputRef: React.RefObject;\r\n private _phoneNumberInputRef: React.RefObject;\r\n private _enquiryMessageInputRef: React.RefObject;\r\n private _storePickerSelectRef: React.RefObject;\r\n private _productTypePickerSelectRef: React.RefObject;\r\n private requiredErrorMessage: string | undefined;\r\n private eAValidationErrorMessage: string | undefined;\r\n\r\n private nameValue: boolean = false;\r\n private lastNameValue: boolean = false;\r\n private emailAddressValue: boolean = false;\r\n private phoneNumberValue: boolean = false;\r\n private addressMessageValue: boolean = false;\r\n\r\n private formInputValues: boolean = false;\r\n\r\n // ProductDimensionType 1:Color 3:Size refer ProductDimensionType enum in @msdyn365-commerce/retail-proxy/dist/Entities/CommerceTypes.g\r\n private colorProductDimensionTypeValue: number = 1;\r\n private sizeProductDimensionTypeValue: number = 3;\r\n\r\n constructor(props: IAddToCartComponentProps, state: IAddToCartState) {\r\n super(props);\r\n this.state = {\r\n isOpen: false,\r\n responseReceived: false,\r\n notifyResponseSuccess: false,\r\n name: '',\r\n lastName: '',\r\n emailAddress: '',\r\n phoneNumber: '',\r\n enquiryMessage: '',\r\n storePickerValue: '',\r\n storePickerText: 'Città BLOC',\r\n nError: false,\r\n lNError: false,\r\n eAError: false,\r\n pHError: false,\r\n reqError: false,\r\n eAValError: false,\r\n enquiryMessageError: false,\r\n cHError: false,\r\n nLSError: false,\r\n subcribeNewsletterChecked: false,\r\n customizationsCheckedItems: [],\r\n productTypePickerValue: '',\r\n disabled: false,\r\n modalOpen: false,\r\n isNotifyOpen: false,\r\n addToCartButtonText: this.props.addToCartText,//this.props.props.resources.addToCartText || 'Add to Cart', //HSO DS Changed Add to cart text from static to dynamic\r\n productsAddedToCart: []\r\n };\r\n this._productAttributeInStoreOnly = this.props.props.config.inStoreOnlyValue && this.props.props.config.inStoreOnlyValue.toUpperCase() || 'IN STORE ONLY';\r\n\r\n this._nameInputRef = React.createRef();\r\n this._lastNameInputRef = React.createRef();\r\n this._emailAddressInputRef = React.createRef();\r\n this._phoneNumberInputRef = React.createRef();\r\n this._enquiryMessageInputRef = React.createRef();\r\n this._storePickerSelectRef = React.createRef();\r\n this._productTypePickerSelectRef = React.createRef();\r\n this._closeModal = this._closeModal.bind(this);\r\n this._openModal = this._openModal.bind(this);\r\n this._handleSend = this._handleSend.bind(this);\r\n this._onClickHandler = this._onClickHandler.bind(this);\r\n this._onClick = this._onClick.bind(this);\r\n this._propogateResult = this._propogateResult.bind(this);\r\n this._propogateError = this._propogateError.bind(this);\r\n this._getLinkText = this._getLinkText.bind(this);\r\n this._addToCartError = this._addToCartError.bind(this);\r\n this._shouldShowOutOfStock = this._shouldShowOutOfStock.bind(this);\r\n this._isIntermediateState = this._isIntermediateState.bind(this);\r\n this._openNotifyModal = this._openNotifyModal.bind(this);\r\n this._closeNotifyModal = this._closeNotifyModal.bind(this);\r\n this._submitNotify = this._submitNotify.bind(this);\r\n }\r\n\r\n public async componentDidMount(): Promise {\r\n // @ts-ignore: Compiler not reconizing condition check for function params\r\n reaction(\r\n () => this.props.props.data.product.result ? this.props.props.data.product.result.RecordId : null,\r\n () => {\r\n if (this.props.context && this.props.props.data.product.result) {\r\n const isProductAddedToCartBefore = this.state.productsAddedToCart.indexOf(this.props.props.data.product.result.RecordId) >= 0;\r\n if (isProductAddedToCartBefore) {\r\n this.setState({ addToCartButtonText: this.props.props.resources.addedToCartText || 'Added to Cart' });\r\n } else {\r\n this.setState({ addToCartButtonText: this.props.props.resources.addToCartText || 'Add to Cart' });\r\n }\r\n }\r\n }\r\n );\r\n }\r\n\r\n public render(): JSX.Element | null {\r\n const priceComponent = this.props.data.price ? (\r\n ) : '';\r\n\r\n const popupProps: IPopupProps = {\r\n context: this.props.context,\r\n className: 'msc-add-to-cart',\r\n id: this.props.id,\r\n typeName: this.props.typeName,\r\n data: { product: this.props.data.product, price: this.props.data.price },\r\n dialogStrings: this.props.dialogStrings,\r\n imageSettings: this.props.imageSettings,\r\n gridSettings: this.props.context.request.gridSettings,\r\n productQuantity: this.props.quantity !== undefined ? this.props.quantity : 1,\r\n priceComponent: priceComponent,\r\n navigationUrl: this.props.navigationUrl,\r\n modalOpen: this.state.modalOpen,\r\n setModalOpen: (isModalOpen: boolean): void => {\r\n this.setState({ modalOpen: isModalOpen });\r\n }\r\n };\r\n\r\n const renderModalPopup = ;\r\n const label = this._getLinkText(this.props);\r\n const payload = getPayloadObject(TelemetryEvent.AddToCart, this.props.telemetryContent!, label, '');\r\n const attributes = getTelemetryAttributes(this.props.telemetryContent!, payload);\r\n const isInStoreOnly = this._getProductAttributes(this._productAttributeInStoreOnly);\r\n\r\n const activateNotifyModal = this.props.props.config.activateNotifyModal;\r\n return (\r\n <>\r\n {renderModalPopup}\r\n {isInStoreOnly ?\r\n \r\n {SOH.enquireNow}\r\n :\r\n \r\n {this._getLinkText(this.props)}\r\n \r\n }\r\n {this._renderEnquiremodal()}\r\n {activateNotifyModal && this._renderNotifyModal()}\r\n \r\n );\r\n }\r\n\r\n private async _onClickHandler(event: React.MouseEvent): Promise {\r\n await this._onClick(event, this.props);\r\n }\r\n\r\n private async _onClick(_event: React.MouseEvent, props: IAddToCartComponentProps): Promise {\r\n const cartError = this._addToCartError(props);\r\n let productToAdd = props.data.product;\r\n\r\n if (cartError) {\r\n this._propogateError(props, cartError);\r\n return;\r\n }\r\n\r\n if (!(props.getSelectedProduct === undefined)) {\r\n productToAdd = (await props.getSelectedProduct) || props.data.product;\r\n }\r\n\r\n const productsAddedToCart = this.state.productsAddedToCart;\r\n const productId = productToAdd && productToAdd.RecordId;\r\n\r\n const cartState = await getCartState(props.context.actionContext);\r\n\r\n\r\n //HSO DS\r\n let productAvailability = props.productAvailability?.AvailableQuantity;\r\n let stockcheck = props.context.app.config.enableStockCheck;\r\n const HSOConfigprop = props.data.productAvailableQuantity\r\n && props.data.productAvailableQuantity && props.data.productAvailableQuantity[0].ProductAvailableQuantity\r\n && props.data.productAvailableQuantity[0].ProductAvailableQuantity.ExtensionProperties\r\n && props.data.productAvailableQuantity[0].ProductAvailableQuantity.ExtensionProperties.find((property => property.Key === 'HSOConfig'));\r\n\r\n const HSOConfigpropval = HSOConfigprop && HSOConfigprop.Value && HSOConfigprop.Value.IntegerValue;\r\n let HSOConfig = 0;\r\n if (HSOConfigpropval != undefined) {\r\n HSOConfig = HSOConfigpropval;\r\n }\r\n if (HSOConfig == 1) {\r\n\r\n const StockThresholdprop = props.data.productAvailableQuantity\r\n && props.data.productAvailableQuantity && props.data.productAvailableQuantity[0].ProductAvailableQuantity\r\n && props.data.productAvailableQuantity[0].ProductAvailableQuantity.ExtensionProperties\r\n && props.data.productAvailableQuantity[0].ProductAvailableQuantity.ExtensionProperties.find((property => property.Key === 'StockThreshold'));\r\n\r\n const StockThresholdpropval = StockThresholdprop && StockThresholdprop.Value && StockThresholdprop.Value.IntegerValue;\r\n let StockThreshold = 0;\r\n if (StockThresholdpropval != undefined) {\r\n StockThreshold = StockThresholdpropval;\r\n }\r\n\r\n const onhandpropval = props.data.productAvailableQuantity\r\n && props.data.productAvailableQuantity && props.data.productAvailableQuantity[0].ProductAvailableQuantity\r\n && props.data.productAvailableQuantity[0].ProductAvailableQuantity.AvailableQuantity\r\n let onhand = 0;\r\n if (onhandpropval != undefined) {\r\n onhand = Number(onhandpropval);\r\n }\r\n\r\n const estimatedDateProperty = props.data.productAvailableQuantity\r\n && props.data.productAvailableQuantity && props.data.productAvailableQuantity[0].ProductAvailableQuantity\r\n && props.data.productAvailableQuantity[0].ProductAvailableQuantity.ExtensionProperties\r\n && props.data.productAvailableQuantity[0].ProductAvailableQuantity.ExtensionProperties.find((property => property.Key === 'EstimatedDate'));\r\n\r\n const estimatedDateValue = estimatedDateProperty && estimatedDateProperty.Value && estimatedDateProperty.Value.StringValue;\r\n let estimatedDate = \"\";\r\n if (estimatedDateValue == undefined) {\r\n estimatedDate = \"\";\r\n } else {\r\n estimatedDate = estimatedDateValue;\r\n }\r\n\r\n if (StockThreshold != 0 && onhand < StockThreshold && estimatedDate != \"\") {\r\n productAvailability = 1;\r\n stockcheck = false;\r\n }\r\n }\r\n await cartState.addProductToCart({\r\n product: productToAdd, additionalProperties: { orderQuantityLimitsFeatureIsEnabled: true },\r\n count: props.quantity, availableQuantity: productAvailability, enableStockCheck: stockcheck\r\n })\r\n .then(result => {\r\n if (result.status === 'SUCCESS') {\r\n if (props.dialogStrings && props.context.app.config.addToCartBehavior === 'showModal') {\r\n this.setState({\r\n disabled: false,\r\n modalOpen: true\r\n });\r\n }\r\n if (productId) {\r\n productsAddedToCart.push(productId);\r\n }\r\n this.setState({\r\n addToCartButtonText: this.props.addToCartText, //this.props.props.resources.addedToCartText || 'Added to Cart', HSO DS\r\n productsAddedToCart: productsAddedToCart\r\n });\r\n }\r\n });\r\n }\r\n\r\n private _propogateResult(props: IAddToCartComponentProps, result: ICartActionResult): void {\r\n if (props.onAdd) {\r\n props.onAdd(result);\r\n }\r\n }\r\n\r\n private _propogateError(props: IAddToCartComponentProps, result: IAddToCartFailureResult): void {\r\n if (props.onError) {\r\n props.onError(result);\r\n }\r\n }\r\n\r\n private _getLinkText(props: IAddToCartComponentProps): string {\r\n if (props.data.productAvailableQuantity\r\n && props.data.productAvailableQuantity[0].ProductAvailableQuantity\r\n && props.data.productAvailableQuantity[0].ProductAvailableQuantity.ExtensionProperties) {\r\n const stockAvailabilityProperty = props.data.productAvailableQuantity[0].ProductAvailableQuantity.ExtensionProperties.find((property => property.Key === SOH.stockAvailability));\r\n if ((stockAvailabilityProperty && stockAvailabilityProperty.Value?.StringValue === SOH.soldOut) || stockAvailabilityProperty === undefined) {\r\n return props.outOfStockText;\r\n } else if (stockAvailabilityProperty && stockAvailabilityProperty.Value?.StringValue === SOH.comingSoon) {\r\n //HSO DS\r\n\r\n const HSOConfigprop = props.data.productAvailableQuantity\r\n && props.data.productAvailableQuantity && props.data.productAvailableQuantity[0].ProductAvailableQuantity\r\n && props.data.productAvailableQuantity[0].ProductAvailableQuantity.ExtensionProperties\r\n && props.data.productAvailableQuantity[0].ProductAvailableQuantity.ExtensionProperties.find((property => property.Key === 'HSOConfig'));\r\n\r\n const HSOConfigpropval = HSOConfigprop && HSOConfigprop.Value && HSOConfigprop.Value.IntegerValue;\r\n let HSOConfig = 0;\r\n if (HSOConfigpropval != undefined) {\r\n HSOConfig = HSOConfigpropval;\r\n }\r\n if (HSOConfig == 1) {\r\n const StockThresholdprop = props.data.productAvailableQuantity\r\n && props.data.productAvailableQuantity && props.data.productAvailableQuantity[0].ProductAvailableQuantity\r\n && props.data.productAvailableQuantity[0].ProductAvailableQuantity.ExtensionProperties\r\n && props.data.productAvailableQuantity[0].ProductAvailableQuantity.ExtensionProperties.find((property => property.Key === 'StockThreshold'));\r\n\r\n const StockThresholdpropval = StockThresholdprop && StockThresholdprop.Value && StockThresholdprop.Value.IntegerValue;\r\n let StockThreshold = 0;\r\n if (StockThresholdpropval != undefined) {\r\n StockThreshold = StockThresholdpropval;\r\n }\r\n\r\n const onhandpropval = props.data.productAvailableQuantity\r\n && props.data.productAvailableQuantity && props.data.productAvailableQuantity[0].ProductAvailableQuantity\r\n && props.data.productAvailableQuantity[0].ProductAvailableQuantity.AvailableQuantity\r\n let onhand = 0;\r\n if (onhandpropval != undefined) {\r\n onhand = Number(onhandpropval);\r\n }\r\n\r\n const estimatedDateProperty = props.data.productAvailableQuantity\r\n && props.data.productAvailableQuantity && props.data.productAvailableQuantity[0].ProductAvailableQuantity\r\n && props.data.productAvailableQuantity[0].ProductAvailableQuantity.ExtensionProperties\r\n && props.data.productAvailableQuantity[0].ProductAvailableQuantity.ExtensionProperties.find((property => property.Key === 'EstimatedDate'));\r\n\r\n const estimatedDateValue = estimatedDateProperty && estimatedDateProperty.Value && estimatedDateProperty.Value.StringValue;\r\n let estimatedDate = \"\";\r\n if (estimatedDateValue == undefined) {\r\n estimatedDate = \"\";\r\n } else {\r\n estimatedDate = estimatedDateValue;\r\n }\r\n\r\n if (StockThreshold != 0 && onhand < StockThreshold && estimatedDate != \"\") {\r\n return this.state.addToCartButtonText;\r\n\r\n } else {\r\n return SOH.notifyMe;\r\n }\r\n } else {\r\n return SOH.notifyMe;\r\n }\r\n\r\n } else {\r\n return this.state.addToCartButtonText;\r\n }\r\n }\r\n\r\n if (!this._shouldShowOutOfStock(props, false)) {\r\n return this.state.addToCartButtonText;\r\n }\r\n\r\n return props.outOfStockText;\r\n }\r\n\r\n private _getLinkAriaLabel(props: IAddToCartComponentProps): string {\r\n if (props.data.productAvailableQuantity\r\n && props.data.productAvailableQuantity[0].ProductAvailableQuantity\r\n && props.data.productAvailableQuantity[0].ProductAvailableQuantity.ExtensionProperties) {\r\n const stockAvailabilityProperty = props.data.productAvailableQuantity[0].ProductAvailableQuantity.ExtensionProperties.find((property => property.Key === SOH.stockAvailability));\r\n if ((stockAvailabilityProperty && stockAvailabilityProperty.Value?.StringValue === SOH.soldOut) || stockAvailabilityProperty === undefined) {\r\n return props.outOfStockText;\r\n } else if (stockAvailabilityProperty && stockAvailabilityProperty.Value?.StringValue === SOH.comingSoon) {\r\n return this.state.addToCartButtonText;// return SOH.notifyMe; HSO DS\r\n } else {\r\n return this.state.addToCartButtonText;\r\n }\r\n }\r\n\r\n if (!this._shouldShowOutOfStock(props, false)) {\r\n return this.state.addToCartButtonText;\r\n }\r\n\r\n return props.outOfStockText;\r\n }\r\n\r\n private _addToCartError(props: IAddToCartComponentProps): IAddToCartFailureResult | undefined {\r\n if (!props.data || !props.data.product.RecordId) {\r\n // No product exists, won't be able to add to cart\r\n return { failureReason: 'EMPTYINPUT' };\r\n }\r\n\r\n if (props.data.product.Dimensions) {\r\n const missingDimensions = props.data.product.Dimensions.filter(dimension => !(dimension.DimensionValue && dimension.DimensionValue.Value));\r\n\r\n if (missingDimensions.length > 0) {\r\n // At least one dimension with no value exists on the product, won't be able to add to cart\r\n return { failureReason: 'MISSINGDIMENSION', missingDimensions: missingDimensions };\r\n }\r\n }\r\n\r\n if (this._shouldShowOutOfStock(props, true)) {\r\n const availableQuantity = (props.productAvailability && props.productAvailability.AvailableQuantity) || 0;\r\n const stockLeft = Math.max(availableQuantity, 0);\r\n\r\n return { failureReason: 'OUTOFSTOCK', stockLeft: stockLeft };\r\n }\r\n\r\n // Only allow adding to cart if not showing out of stock\r\n return undefined;\r\n }\r\n\r\n // tslint:disable-next-line: cyclomatic-complexity\r\n private _shouldShowOutOfStock = (props: IAddToCartComponentProps, includeCurrentQuantity: boolean): boolean => {\r\n if (this.props.data.productAvailableQuantity\r\n && this.props.data.productAvailableQuantity[0].ProductAvailableQuantity\r\n && this.props.data.productAvailableQuantity[0].ProductAvailableQuantity.ExtensionProperties) {\r\n const stockAvailabilityProperty = this.props.data.productAvailableQuantity[0].ProductAvailableQuantity.ExtensionProperties.find((property => property.Key === SOH.stockAvailability));\r\n return (stockAvailabilityProperty && stockAvailabilityProperty.Value?.StringValue === SOH.soldOut) || stockAvailabilityProperty === undefined;\r\n }\r\n\r\n if (this.props.data.productAvailableQuantity\r\n && this.props.data.productAvailableQuantity[0].ProductAvailableQuantity\r\n && this.props.data.productAvailableQuantity[0].ProductAvailableQuantity.ExtensionProperties) {\r\n const stockThresholdProperty = this.props.data.productAvailableQuantity[0].ProductAvailableQuantity.ExtensionProperties.find((property => property.Key === SOH.stockThreshold));\r\n const stockThreshold = stockThresholdProperty && stockThresholdProperty?.Value?.IntegerValue || this.props.context.app.config.outOfStockThreshold;\r\n if (this.props.data.productAvailableQuantity\r\n && this.props.data.productAvailableQuantity[0].ProductAvailableQuantity\r\n && this.props.data.productAvailableQuantity[0].ProductAvailableQuantity.AvailableQuantity !== undefined &&\r\n // tslint:disable-next-line: restrict-plus-operands\r\n this.props.data.productAvailableQuantity[0].ProductAvailableQuantity.AvailableQuantity >= stockThreshold + 1) {\r\n return false;\r\n }\r\n }\r\n\r\n if (props.context.app.config.enableStockCheck === undefined || props.context.app.config.enableStockCheck === false || props.isLoading || props.isUpdatingDimension) {\r\n // Out of stock turn off, don't bother showing out of stock\r\n return false;\r\n }\r\n\r\n if (!props.data || !props.data.product.RecordId) {\r\n // No product exists, don't bother showing out of stock\r\n return false;\r\n }\r\n\r\n if (props.data.product.Dimensions) {\r\n if (props.data.product.Dimensions.find(dimension => !(dimension.DimensionValue && dimension.DimensionValue.Value))) {\r\n // At least one dimension with no value exists on the product, so also don't show out of stock\r\n return false;\r\n }\r\n }\r\n const includedQuantityNumber = includeCurrentQuantity && props.quantity ? props.quantity : 1;\r\n\r\n return (props.productAvailability\r\n && props.productAvailability.AvailableQuantity !== undefined\r\n && props.productAvailability.AvailableQuantity <= includedQuantityNumber || false);\r\n };\r\n\r\n private _isIntermediateState(props: IAddToCartComponentProps): boolean {\r\n if (props.data.product.Dimensions) {\r\n if (props.data.product.Dimensions.find(dimension => !(dimension.DimensionValue && dimension.DimensionValue.Value))) {\r\n // At least one dimension with no value exists on the product, so also not in intermediate state\r\n return false;\r\n }\r\n }\r\n\r\n if (!props.isLoading && !props.isUpdatingDimension) {\r\n return false;\r\n }\r\n\r\n return true;\r\n }\r\n\r\n private _renderNotifyModal(): JSX.Element {\r\n const { config, resources } = this.props.props;\r\n const { responseReceived, notifyResponseSuccess } = this.state;\r\n\r\n return (\r\n
\r\n \r\n {config.notifyModalHeader}\r\n\r\n \r\n {responseReceived && notifyResponseSuccess ?\r\n
\r\n
{config.notifyModalSuccessHeader}
\r\n\r\n
{config.notifyModalSuccessMessage}
\r\n
\r\n :\r\n \r\n }\r\n
\r\n \r\n
\r\n );\r\n }\r\n\r\n private _closeNotifyModal(): void {\r\n this.setState(prevState => ({\r\n isNotifyOpen: !prevState.isNotifyOpen,\r\n notifyResponseSuccess: false,\r\n responseReceived: false\r\n }));\r\n }\r\n private _openNotifyModal(): void {\r\n this.setState(prevState => ({\r\n isNotifyOpen: !prevState.isNotifyOpen,\r\n notifyResponseSuccess: false,\r\n responseReceived: false\r\n }));\r\n }\r\n\r\n private async _submitNotify(fName: string, lName: string, email: string, subscribeChecked: boolean): Promise {\r\n const { context } = this.props;\r\n\r\n // @ts-ignore\r\n const market = context.request.channel.ChannelNaturalId;\r\n\r\n const product = this.props.data.product;\r\n\r\n const pID = product.ItemId || '';\r\n // const { config } = this.props.props;\r\n // let response = await MsDyn365.commerceApiRequest(\r\n // this.props.context.request,\r\n // 'PostNotifyMe',\r\n // 'post',\r\n // {\r\n // firstName: fName,\r\n // lastName: lName,\r\n // emailAddress: email,\r\n // optIn: subscribeChecked,\r\n // itemId: pID,\r\n // country: config.notifyCountry,\r\n // emarsysGroupId: config.notifyEmarsysGroup,\r\n // emarsysSkuField: config.notifyEmarsysSkuField\r\n // }\r\n // ) as any;\r\n\r\n // if (response?.data.Result !== 'Error') {\r\n // this.setState({ responseReceived: true, notifyResponseSuccess: true });\r\n // }\r\n\r\n // dont post to AX at the moment\r\n this.formInputValues = (fName && lName && email) ? true : false;\r\n\r\n if (this.formInputValues) {\r\n let productImageUrl = product.PrimaryImageUrl;\r\n let url = window.location.href;\r\n\r\n try {\r\n const price = !isNaN(product.Price) ? product.Price.toFixed(2).replace(/\\d(?=(\\d{3})+\\.)/g, '$&,') : product.Price.toString();\r\n const result = await submitPdpEnquiryFormAction(new SubmitPdpEnquiryFormDataActionInput(fName, lName, email, price, '', pID, 'Notify when back in stock', url, productImageUrl!, product.Name || '', 'Notify when back in stock', market || 'unknown', 0), this.props.context.actionContext);\r\n this.response = result.success;\r\n this.setState({ responseReceived: true, notifyResponseSuccess: true });\r\n } catch {\r\n console.log('Please fill the form!');\r\n }\r\n }\r\n }\r\n\r\n // tslint:disable: max-func-body-length\r\n private _renderEnquiremodal(): JSX.Element {\r\n const { config, resources } = this.props.props;\r\n const cittaStoresList: string = this.props.context.app.config.cittaStoresList || 'Città BLOC,000010|Città Grey Lynn,000012|Città Hamilton,000013|Città Merivale,000016|Città Wellington,000017|Città Wellington Thorndon,000018|Città Newmarket,000041|Città Takapuna,000044';\r\n const cittaStores: string[] = cittaStoresList.split('|');\r\n\r\n const colors = this._getDimensionValues(this.props.data.productDimensions || [], this.colorProductDimensionTypeValue);\r\n const sizes = this._getDimensionValues(this.props.data.productDimensions || [], this.sizeProductDimensionTypeValue);\r\n\r\n return (\r\n
\r\n \r\n {config.modalHeader || 'enquire in-store'}\r\n \r\n
\r\n {this.state.responseReceived && this.response\r\n ?
\r\n

{resources.responseSuccessMessage}

\r\n
: null}\r\n {this.state.responseReceived && !this.response ?
\r\n

{resources.responseErrorMessage}

\r\n
: null}\r\n {!this.state.responseReceived ?
\r\n
\r\n
\r\n
\r\n {this.state.nError ? this._renderAlert('contact-form-name') : ''}\r\n
\r\n
\r\n {this.state.lNError ? this._renderAlert('contact-form-name') : ''}\r\n
\r\n
\r\n {this.state.eAError || this.state.eAValError ? this._renderAlert('contact-form-emailaddress') : ''}\r\n
\r\n
\r\n {this.state.pHError ? this._renderAlert('contact-form-phonenumber') : ''}\r\n
\r\n {sizes && (\r\n
\r\n \r\n
\r\n {\r\n sizes.map((size, index) => {\r\n return (\r\n
\r\n \r\n
\r\n );\r\n })\r\n }\r\n
\r\n {this.state.cHError ? this._renderAlert('contact-form-customizations') : ''}\r\n
\r\n )}\r\n {colors && (\r\n
\r\n
\r\n
\r\n
\r\n )}\r\n
\r\n {this.state.enquiryMessageError ? this._renderAlert('enquire-form-message') : ''}\r\n
\r\n
\r\n \r\n {resources.enquireSendButtonText}\r\n \r\n\r\n Store Locations\r\n
\r\n
\r\n : null}\r\n
\r\n
\r\n \r\n
\r\n );\r\n }\r\n\r\n private handleChange = (inputText: string) => (e: React.ChangeEvent) => {\r\n const value = e.target.value;\r\n switch (inputText) {\r\n case 'nameInput': {\r\n this.setState({ name: value, reqError: false, nError: false, eAValError: false, nLSError: false });\r\n break;\r\n }\r\n case 'lastNameInput': {\r\n this.setState({ lastName: value, reqError: false, lNError: false, eAValError: false, nLSError: false });\r\n break;\r\n }\r\n case 'emailAddress': {\r\n this.setState({ emailAddress: value, reqError: false, eAError: false, eAValError: false, nLSError: false });\r\n break;\r\n }\r\n case 'phoneNumber': {\r\n this.setState({ phoneNumber: value, reqError: false, pHError: false, eAValError: false, nLSError: false });\r\n break;\r\n }\r\n case 'subsNwsltr': {\r\n this.setState({ subcribeNewsletterChecked: true, reqError: false, pHError: false, eAValError: false, nLSError: false });\r\n break;\r\n }\r\n default: null;\r\n }\r\n }\r\n\r\n private handleMessageChange = (e: React.ChangeEvent) => {\r\n const value = e.target.value;\r\n this.setState({ enquiryMessage: value, reqError: false, eAValError: false, nLSError: false });\r\n }\r\n\r\n private productTypeOnChangeSelect = (e: React.ChangeEvent) => {\r\n this.setState({ productTypePickerValue: e.target.value || '' });\r\n };\r\n\r\n private customizationOnChange = (value: string) => (e: React.ChangeEvent) => {\r\n const isChecked = e.target.checked;\r\n let customizationsCheckedItems = this.state.customizationsCheckedItems;\r\n if (isChecked) {\r\n customizationsCheckedItems.push(value);\r\n } else {\r\n customizationsCheckedItems = customizationsCheckedItems.filter(item => item !== value);\r\n }\r\n this.setState({ customizationsCheckedItems: customizationsCheckedItems, cHError: false });\r\n }\r\n\r\n private onChangeSelect = (e: React.ChangeEvent) => {\r\n const text = e.target.options[e.target.options.selectedIndex].textContent;\r\n this.setState({ storePickerValue: e.target.value || '', storePickerText: text || '' });\r\n };\r\n\r\n private _closeModal(): void {\r\n this.setState(prevState => ({\r\n isOpen: !prevState.isOpen\r\n }));\r\n }\r\n private _openModal(): void {\r\n this.setState(prevState => ({\r\n isOpen: !prevState.isOpen,\r\n responseReceived: false\r\n }));\r\n }\r\n\r\n // tslint:disable-next-line: cyclomatic-complexity\r\n private async _handleSend(e: React.MouseEvent | React.KeyboardEvent | React.FormEvent): Promise {\r\n this.nameValue = (this._nameInputRef && this._nameInputRef.current && this._nameInputRef.current.value) ? true : false;\r\n this.lastNameValue = (this._lastNameInputRef && this._lastNameInputRef.current && this._lastNameInputRef.current.value) ? true : false;\r\n this.emailAddressValue = (this._emailAddressInputRef && this._emailAddressInputRef.current && this._emailAddressInputRef.current.value) ? true : false;\r\n this.phoneNumberValue = (this._phoneNumberInputRef && this._phoneNumberInputRef.current && this._phoneNumberInputRef.current.value) ? true : false;\r\n this.addressMessageValue = (this._enquiryMessageInputRef && this._enquiryMessageInputRef.current && this._enquiryMessageInputRef.current.value) ? true : false;\r\n\r\n const sP = this.state.storePickerText;\r\n const nA = (this._nameInputRef && this._nameInputRef.current && this._nameInputRef.current.value) ? this._nameInputRef.current.value : '';\r\n const lN = (this._lastNameInputRef && this._lastNameInputRef.current && this._lastNameInputRef.current.value) ? this._lastNameInputRef.current.value : '';\r\n const eA = (this._emailAddressInputRef && this._emailAddressInputRef.current && this._emailAddressInputRef.current.value) ? this._emailAddressInputRef.current.value : '';\r\n const pN = (this._phoneNumberInputRef && this._phoneNumberInputRef.current && this._phoneNumberInputRef.current.value) ? this._phoneNumberInputRef.current.value : '';\r\n const pT = (this._productTypePickerSelectRef && this._productTypePickerSelectRef.current && this._productTypePickerSelectRef.current.value) ? this._productTypePickerSelectRef.current.value : '';\r\n const eM = (this._enquiryMessageInputRef && this._enquiryMessageInputRef.current && this._enquiryMessageInputRef.current.value) ? this._enquiryMessageInputRef.current.value : '';\r\n const cU = this.state.customizationsCheckedItems.toString();\r\n const cI = this._storePickerSelectRef.current!.value;\r\n const eAVal = this._emailAddressInputRef.current!.value;\r\n const pID = this.props.data.product.ItemId || '';\r\n const sN = this.state.subcribeNewsletterChecked ? 1 : 0;\r\n\r\n if (!this.nameValue) {\r\n this.setState({\r\n nError: true,\r\n reqError: true\r\n });\r\n } else if (!this.lastNameValue) {\r\n this.setState({\r\n lNError: true,\r\n reqError: true\r\n });\r\n } else if (!this.emailAddressValue) {\r\n this.setState({\r\n eAError: true,\r\n reqError: true\r\n });\r\n } else if (!this.isEmailValid(eAVal)) {\r\n this.setState({\r\n eAValError: true\r\n });\r\n } else if (!this.phoneNumberValue) {\r\n this.setState({\r\n pHError: true,\r\n reqError: true\r\n });\r\n } else if (this.state.customizationsCheckedItems.length < 1) {\r\n this.setState({\r\n cHError: true,\r\n reqError: true\r\n });\r\n } else if (!this.addressMessageValue) {\r\n this.setState({\r\n enquiryMessageError: true,\r\n reqError: true\r\n });\r\n } else {\r\n this.formInputValues = (this.nameValue && this.lastNameValue && this.emailAddressValue && this.phoneNumberValue && this.addressMessageValue) ? true : false;\r\n\r\n if (this.formInputValues && !this.state.eAValError) {\r\n try {\r\n const result = await submitPdpEnquiryFormAction(new SubmitPdpEnquiryFormDataActionInput(nA, lN, eA, pN, sP, pID, eM, cU, pT, '', 'Enquire in Store', cI, sN), this.props.context.actionContext);\r\n this.response = result.success;\r\n this.setState({ responseReceived: true });\r\n } catch {\r\n console.log('Please fill the form!');\r\n }\r\n }\r\n }\r\n }\r\n\r\n private isEmailValid = (email: string): boolean => {\r\n const regex = /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\r\n return regex.test(email);\r\n };\r\n\r\n private _renderAlert(className: string): JSX.Element {\r\n const inputBoxErrors = (this.state.nError || this.state.lNError || this.state.eAError || this.state.pHError || this.state.cHError || this.state.enquiryMessageError);\r\n if (inputBoxErrors) {\r\n this.requiredErrorMessage = this.props.props.resources.requiredTextErrorMessage;\r\n }\r\n if (this.state.emailAddress !== '' && this.state.eAValError) {\r\n this.eAValidationErrorMessage = this.props.props.resources.eAValidationErrorMessage;\r\n }\r\n\r\n const reqError = this.state.reqError;\r\n const eAValError = this.state.eAValError;\r\n return (\r\n <>\r\n {reqError && (\r\n \r\n {\r\n this.requiredErrorMessage &&\r\n <>\r\n \r\n )}\r\n {eAValError && (\r\n \r\n {\r\n this.eAValidationErrorMessage &&\r\n <>\r\n \r\n )}\r\n \r\n );\r\n }\r\n\r\n private _getProductAttributes = (key: string | undefined): boolean => {\r\n // @ts-ignore\r\n const prodAttributes: AttributeValue[] | undefined = this.props && this.props.data && this.props.props.data && this.props.props.data.productAttributes.result;\r\n if (prodAttributes && prodAttributes.length) {\r\n const filterAttributes = prodAttributes.filter(\r\n attribute => attribute.Name && attribute.Name.toUpperCase() === key\r\n );\r\n if (\r\n filterAttributes &&\r\n filterAttributes.length) {\r\n filterAttributes[0].Name?.toUpperCase() === key ? true : false;\r\n return filterAttributes[0].BooleanValue || false;\r\n }\r\n return false;\r\n }\r\n return false;\r\n }\r\n\r\n private _getDimensionValues = (dimensions: ProductDimensionFull[], dimensionTypeValue: number): string[] => {\r\n if (dimensions && dimensionTypeValue) {\r\n const dimensionTypeValues: ProductDimensionFull[] = dimensions.filter(dimension => dimension.DimensionTypeValue === dimensionTypeValue);\r\n // tslint:disable-next-line: prefer-const\r\n let values: string[] = [];\r\n if (dimensionTypeValues) {\r\n dimensionTypeValues && dimensionTypeValues.forEach(elements => {\r\n elements.DimensionValues && elements.DimensionValues.forEach(value => {\r\n values.push(value.Value || '');\r\n });\r\n });\r\n return values;\r\n }\r\n }\r\n return [];\r\n }\r\n}\r\n\r\nexport default AddToCartComponent;\r\n"],"names":["SubmitPdpEnquiryFormDataActionInput","constructor","firstName","lastName","email","phone","storeName","product","enquiry","customisations","fabricType","fabricColour","consultationType","channelId","subscribeNewsletter","getCacheKey","getCacheObjectType","dataCacheType","this","async","submitPdpEnquiryFormAction","input","ctx","result","success","createProductEnquiryAsync","callerContext","error","console","log","Array","isArray","createObservableDataAction","action","args","CittaEnquireForm","React","props","super","response","designValue","nameValue","lastNameValue","emailAddressValue","phoneNumberValue","formInputValues","handleChange","inputText","e","value","target","setState","design","reqError","dError","eAValError","nLSError","name","nError","lNError","emailAddress","eAError","phoneNumber","pHError","upholstery","onChangeSelect","text","options","selectedIndex","textContent","storePickerValue","storePickerText","isEmailValid","test","handleMessageChange","enquiryMessage","state","isOpen","responseReceived","config","productDesign","cHError","pCError","enquiryMessageError","_designInputRef","_nameInputRef","_lastNameInputRef","_emailAddressInputRef","_phoneNumberInputRef","_enquiryMessageInputRef","_productTypePickerSelectRef","_storePickerSelectRef","_upholsteryInputRef","_closeModal","bind","_openModal","_handleSend","render","viewProps","_objectSpread","ModalItem","_renderEnquiremodal","EnquireButton","_renderEnquireButton","renderView","prevState","Button","color","className","onClick","buttonText","_renderAlert","requiredErrorMessage","resources","requiredTextErrorMessage","eAValidationErrorMessage","role","cittaStores","context","app","cittaStoresList","split","Modal","autoFocus","fade","zIndex","toggle","applicationNode","ModalHeader","modalHeader","ModalBody","responseSuccessMessage","responseErrorMessage","id","ref","type","onChange","enquireDesignPlaceholderText","placeholder","enquireNamePlaceholderText","enquireLastNamePlaceholderText","enquireEmailAddressPlaceholderText","enquirePhoneNumberPlaceholderText","key","map","storeData","index","store","selected","enquireUpholsteryPlaceholderText","enquireMessagePlaceholderText","title","enquireSendButtonText","href","current","de","nA","lN","eA","pN","up","sP","cI","pT","eM","actionContext","_unused","NotifyMe","firstNameValue","fNError","subscribeChecked","_firstNameInputRef","notifyFormText","firstNamePlaceholderText","lastNamePlaceholderText","emailAddressPlaceholderText","notifyContactMessage","notifyContactMessageLink","sendButtonText","required","fnA","lnA","eAVal","notifySubmitClicked","SOH","AddToCartComponent","addressMessageValue","colorProductDimensionTypeValue","sizeProductDimensionTypeValue","_shouldShowOutOfStock","includeCurrentQuantity","data","productAvailableQuantity","ProductAvailableQuantity","ExtensionProperties","_stockAvailabilityPro","stockAvailabilityProperty","find","property","Key","stockAvailability","Value","StringValue","soldOut","undefined","_stockThresholdProper","stockThresholdProperty","stockThreshold","IntegerValue","outOfStockThreshold","AvailableQuantity","enableStockCheck","isLoading","isUpdatingDimension","RecordId","Dimensions","dimension","DimensionValue","includedQuantityNumber","quantity","productAvailability","subcribeNewsletterChecked","productTypeOnChangeSelect","productTypePickerValue","customizationOnChange","isChecked","checked","customizationsCheckedItems","push","filter","item","_getProductAttributes","prodAttributes","productAttributes","length","filterAttributes","attribute","Name","toUpperCase","_filterAttributes$0$N","BooleanValue","_getDimensionValues","dimensions","dimensionTypeValue","dimensionTypeValues","DimensionTypeValue","values","forEach","elements","DimensionValues","notifyResponseSuccess","disabled","modalOpen","isNotifyOpen","addToCartButtonText","addToCartText","productsAddedToCart","_productAttributeInStoreOnly","inStoreOnlyValue","_onClickHandler","_onClick","_propogateResult","_propogateError","_getLinkText","_addToCartError","_isIntermediateState","_openNotifyModal","_closeNotifyModal","_submitNotify","reaction","indexOf","addedToCartText","_this$props$dialogStr","_this$props$dialogStr2","_this$props$dialogStr3","priceComponent","price","PriceComponent","typeName","freePriceText","dialogStrings","originalPriceText","currentPriceText","popupProps","imageSettings","gridSettings","request","productQuantity","navigationUrl","setModalOpen","isModalOpen","renderModalPopup","Popup","Object","assign","label","payload","getPayloadObject","TelemetryEvent","AddToCart","telemetryContent","attributes","getTelemetryAttributes","isInStoreOnly","activateNotifyModal","enquireNow","classnames","_getLinkAriaLabel","_renderNotifyModal","event","_event","_props$productAvailab","cartError","productToAdd","getSelectedProduct","productId","cartState","getCartState","stockcheck","HSOConfigprop","HSOConfigpropval","HSOConfig","StockThresholdprop","StockThresholdpropval","StockThreshold","onhandpropval","onhand","Number","estimatedDateProperty","estimatedDateValue","estimatedDate","addProductToCart","additionalProperties","orderQuantityLimitsFeatureIsEnabled","count","availableQuantity","then","status","addToCartBehavior","onAdd","onError","_stockAvailabilityPro2","_stockAvailabilityPro3","outOfStockText","comingSoon","notifyMe","_stockAvailabilityPro4","_stockAvailabilityPro5","failureReason","missingDimensions","stockLeft","Math","max","notifyModalHeader","notifyModalSuccessHeader","notifyModalSuccessMessage","notifyFirstNamePlaceholderText","notifyLastNamePlaceholderText","notifyEmailAddressPlaceholderText","notifySendButtonText","fName","lName","market","channel","ChannelNaturalId","pID","ItemId","productImageUrl","PrimaryImageUrl","url","window","location","isNaN","Price","toString","toFixed","replace","colors","productDimensions","sizes","customisationsLabel","size","tabIndex","htmlFor","cU","sN","_unused2","__decorate","observer"],"sourceRoot":""}