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Ac,CAC5C,IAAIS,EAAW7R,EAAS2R,EAAO,IAC/BC,EAAEnC,GAAKoC,EACU,KAAbA,IAAiBV,EAAGO,UAAYhB,EAAmBU,EAAGb,EAASY,EAAGO,WAAYF,IAClF/B,IAEF,OAAa,IAANA,EAAU,KAAOmC","sources":["webpack://Msdyn365.Commerce.Online/./src/modules/sysco-business-sign-up/components/sign-up-button.tsx?e48a","webpack://Msdyn365.Commerce.Online/./src/modules/sysco-business-sign-up/components/sign-up-error.tsx?0098","webpack://Msdyn365.Commerce.Online/./src/modules/sysco-business-sign-up/components/sign-up-input.tsx?2d43","webpack://Msdyn365.Commerce.Online/./src/modules/sysco-business-sign-up/components/sign-up-label.tsx?63fb","webpack://Msdyn365.Commerce.Online/./src/modules/sysco-business-sign-up/components/sign-up-radio-button.tsx?2490","webpack://Msdyn365.Commerce.Online/./src/modules/sysco-business-sign-up/components/description-label.tsx?2d20","webpack://Msdyn365.Commerce.Online/./src/modules/sysco-business-sign-up/sysco-business-sign-up.tsx?4a7e","webpack://Msdyn365.Commerce.Online/./src/modules/sysco-business-sign-up/sysco-business-sign-up.view.tsx?b2ee","webpack://Msdyn365.Commerce.Online/./lib/sysco-business-sign-up/module-registration.js?bb24","webpack://Msdyn365.Commerce.Online/external var \"React\"?0d3b","webpack://Msdyn365.Commerce.Online/external var \"ReactDOM\"?853b","webpack://Msdyn365.Commerce.Online/./node_modules/@msdyn365-commerce/bootloader/node_modules/core-js/modules/es.string.match.js?1675"],"sourcesContent":["/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\n\r\n/* eslint-disable no-duplicate-imports */\r\nimport { Button, getPayloadObject, getTelemetryAttributes, ITelemetryContent, Waiting } from '@msdyn365-commerce-modules/utilities';\r\nimport * as React from 'react';\r\n\r\nexport interface IBusinessSignUpButtonProps {\r\n id?: string;\r\n className: string;\r\n text: string;\r\n ariaLabel: string;\r\n disabled?: boolean;\r\n link?: string;\r\n telemetryContent: ITelemetryContent;\r\n onClick?(event: React.MouseEvent): void;\r\n isLoading?: boolean;\r\n}\r\n\r\nexport const SignUpButton: React.FC = ({\r\n id,\r\n className,\r\n text,\r\n ariaLabel,\r\n telemetryContent,\r\n disabled,\r\n link,\r\n onClick,\r\n isLoading\r\n}) => {\r\n const payLoad = getPayloadObject('click', telemetryContent, text);\r\n const attributes = getTelemetryAttributes(telemetryContent, payLoad);\r\n return (\r\n <>\r\n \r\n {text}\r\n \r\n {isLoading ? (\r\n
\r\n \r\n
\r\n ) : null}\r\n \r\n );\r\n};\r\n\r\nexport default SignUpButton;\r\n","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\n\r\n/* eslint-disable no-duplicate-imports */\r\nimport classnames from 'classnames';\r\nimport * as React from 'react';\r\n\r\nexport interface IBusinessSignUpErrorProps {\r\n id?: string;\r\n className: string;\r\n type?: string;\r\n message?: string;\r\n}\r\n\r\nexport const SignUpError: React.FC = ({ id, className, type = 'page', message }) => {\r\n const errorClassName = `${className}__${type}-error`;\r\n\r\n return (\r\n \r\n

{message}

\r\n \r\n );\r\n};\r\n\r\nexport default SignUpError;\r\n","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\n\r\n/* eslint-disable no-duplicate-imports */\r\nimport { INodeProps } from '@msdyn365-commerce-modules/utilities';\r\nimport * as React from 'react';\r\n\r\nimport { InputType } from '../sysco-business-sign-up';\r\n\r\nexport interface IBusinessSignUpInputProps {\r\n id?: string;\r\n type: InputType;\r\n value?: string;\r\n pattern?: string;\r\n className: string;\r\n maxLength?: string;\r\n isRequired: boolean;\r\n fieldReference?: React.RefObject;\r\n onChange?(event: React.ChangeEvent): void;\r\n}\r\n\r\nexport interface IBusinessSignUpInput {\r\n key: string;\r\n AddressItem: INodeProps;\r\n label: React.ReactNode;\r\n alert: React.ReactNode;\r\n input: React.ReactNode;\r\n}\r\n\r\nconst GetMaxLength = (maxLength?: string): number | undefined => {\r\n if (maxLength) {\r\n const parsedMaxLength = Number.parseInt(maxLength, 10);\r\n if (!isNaN(parsedMaxLength)) {\r\n return parsedMaxLength;\r\n }\r\n }\r\n\r\n return undefined;\r\n};\r\n\r\nexport const SignUpInput: React.FC = ({\r\n id,\r\n type,\r\n value,\r\n pattern,\r\n className,\r\n maxLength,\r\n isRequired,\r\n onChange,\r\n fieldReference\r\n}) => {\r\n if (type === InputType.TextArea) {\r\n return (\r\n \r\n );\r\n }\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default SignUpInput;\r\n","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\n\r\n/* eslint-disable no-duplicate-imports */\r\nimport * as React from 'react';\r\n\r\nexport interface IBusinessSignUpLabelProps {\r\n id: string;\r\n forId: string;\r\n className: string;\r\n text: string;\r\n}\r\n\r\nexport const SignUpLabel: React.FC = ({ id, forId, className, text }) => {\r\n if (text === 'Company address') {\r\n return null;\r\n }\r\n return (\r\n \r\n );\r\n};\r\n\r\nexport default SignUpLabel;\r\n","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\n\r\n/* eslint-disable no-duplicate-imports */\r\nimport * as React from 'react';\r\n\r\nexport interface IBusinessSignUpRadioButtonProps {\r\n id: string;\r\n isRequired: boolean;\r\n options: IBusinessSignUpRadioButtonOptionProps[];\r\n}\r\n\r\nexport interface IBusinessSignUpRadioButtonOptionProps {\r\n id: string;\r\n name: string;\r\n value: string;\r\n label: string;\r\n className: string;\r\n onChange(event: React.ChangeEvent): void;\r\n}\r\n\r\nexport const BusinessSignUpRadioButtonOption: React.FC = props => {\r\n const { id, name, value, label, className, onChange } = props;\r\n return (\r\n
\r\n \r\n \r\n
\r\n );\r\n};\r\n\r\nexport default BusinessSignUpRadioButtonOption;\r\n","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\n\r\n/* eslint-disable no-duplicate-imports */\r\nimport * as React from 'react';\r\n\r\nexport interface IBusinessSignUpDescriptionProps {\r\n id: string;\r\n className: string;\r\n text: string;\r\n}\r\n\r\nexport const DescriptionLabel: React.FC = ({ id, className, text }) => {\r\n return (\r\n \r\n {text}\r\n \r\n );\r\n};\r\n\r\nexport default DescriptionLabel;\r\n","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\n\r\n/* eslint-disable no-duplicate-imports */\r\nimport { ContentEditableEvent, getUrlSync, RichText, RichTextComponent, Text } from '@msdyn365-commerce/core';\r\nimport { Address, BusinessPartnerProspect, OrgUnitLocation } from '@msdyn365-commerce/retail-proxy';\r\nimport { createProspectAsync } from '@msdyn365-commerce/retail-proxy/dist/DataActions/BusinessPartnersDataActions.g';\r\nimport {\r\n EmailRegex,\r\n getOrgUnitLocationsByArea,\r\n GetOrgUnitLocationsByAreaInput,\r\n IFullOrgUnitAvailability\r\n} from '@msdyn365-commerce-modules/retail-actions';\r\nimport {\r\n getTelemetryObject,\r\n IModalProps,\r\n IModuleProps,\r\n INodeProps,\r\n ITelemetryContent,\r\n Modal,\r\n ModalBody,\r\n ModalFooter,\r\n ModalHeader\r\n} from '@msdyn365-commerce-modules/utilities';\r\nimport classnames from 'classnames';\r\nimport * as React from 'react';\r\n\r\nimport {\r\n ISyscoBusinessSignUpConfig,\r\n ISyscoBusinessSignUpProps,\r\n ISyscoBusinessSignUpResources\r\n} from './sysco-business-sign-up.props.autogenerated';\r\nimport { SignUpButton, SignUpError, SignUpInput, SignUpLabel } from './components';\r\nimport { IBusinessSignUpRadioButtonOptionProps, BusinessSignUpRadioButtonOption } from './components/sign-up-radio-button';\r\nimport {\r\n ICreateWebFormInstanceTokenResponse,\r\n IRefreshWebFormInstanceTokenResponse,\r\n IStyleOfBusinessEntity,\r\n ITaxExemptionCheckResponse,\r\n ITaxFormPreFilledFieldsEntity\r\n} from '../../custom-actions/DataServiceEntities.g';\r\nimport MsDyn365 from '@msdyn365-commerce/core';\r\nimport {\r\n createDefaultFormInstanceTokenAsync,\r\n createExistingCustomerUserAsync,\r\n createWebFormInstanceTokenAsync,\r\n refreshWebFormInstanceTokenAsync,\r\n taxExemptionCheckAsync,\r\n validateOrganizationAsync\r\n} from '../../custom-actions/DataActionExtension.g';\r\nimport { getAllStylesOfBusinessAsync } from '../../custom-actions/DataActionExtension.g';\r\nimport DescriptionLabel from './components/description-label';\r\n\r\nexport interface IBusinessSignUpExtendedProps extends ISyscoBusinessSignUpProps {\r\n formItems?: IFormItem[];\r\n}\r\n\r\nexport interface IAllStores {\r\n storeLocations: ISingleStore[];\r\n}\r\n\r\nconst errorCircleSvg = (\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 interface ISingleStore {\r\n OrgUnitName?: string;\r\n OrgUnitNumber?: string;\r\n Street?: string;\r\n StreetNumber?: string;\r\n City?: string;\r\n DistrictName?: string;\r\n BuildingCompliment?: string;\r\n Postbox?: string;\r\n Zip?: string;\r\n County?: string;\r\n State?: string;\r\n StateName?: string;\r\n Country?: string;\r\n}\r\n\r\nexport interface IBusinessSignUpItem {\r\n wrapper: INodeProps;\r\n isAddressInput?: boolean;\r\n id: string;\r\n label: React.ReactNode;\r\n errorMessage: React.ReactNode;\r\n input?: React.ReactNode;\r\n description?: React.ReactNode;\r\n}\r\n\r\nexport interface IBusinessState {\r\n isReady: boolean;\r\n formItems: IFormItem[];\r\n addressHasErrors: boolean;\r\n showAddressErrors: boolean;\r\n hasSubmitErrors: boolean;\r\n existingCustomerValue: string;\r\n isResale: boolean;\r\n dbaValue: string;\r\n styleOfBusinesses: IStyleOfBusinessEntity[];\r\n styleofbusiness: string;\r\n taxId: string;\r\n storeName: string;\r\n taxStatus: string;\r\n termsAndConditions: boolean;\r\n agreedToTaxPolicy: boolean;\r\n blobFileNames: string;\r\n docuSignWebFormURL: string;\r\n docuSignInstanceId: string;\r\n docuSignInstanceToken: string;\r\n docuSignWebFormId: string;\r\n isModalOpen: boolean;\r\n loadDocuSign: boolean;\r\n allStores: OrgUnitLocation[];\r\n uploadedFileNamesBlob: { plainNames: string[]; withTimeStamp: string[] };\r\n filesToUpload: File[];\r\n sasToken: string;\r\n blobStorageURL: string;\r\n uploading: boolean;\r\n uploadProgress: { [key: string]: number };\r\n SignUpVia: string;\r\n emailMarketing: boolean;\r\n phoneMarketing: boolean;\r\n integrationKey: string;\r\n hasFormErros: boolean;\r\n termsAndCondtionsModal: boolean;\r\n taxPolicyModal: boolean;\r\n isLoading: boolean;\r\n isTaxEempted: boolean;\r\n moduleUpdating: boolean;\r\n isExitSystemModal: boolean;\r\n isStyleOfBusinessChangeModal: boolean;\r\n existingUserSyscoValidationFalseModal: boolean;\r\n existingUserSyscoValidationTrueModal: boolean;\r\n isExistingUserSyscoValidationResultLoading: boolean;\r\n existingUserSyscoValidationResult: null | {\r\n EmailAlreadyExists: boolean;\r\n IsAccountFound: boolean;\r\n OrganizationName?: undefined | string;\r\n ValidationResult: boolean;\r\n AccountValidation: boolean;\r\n };\r\n isExistingUserSyscoreroutingLoading: boolean;\r\n inputDirty: { [key: string]: boolean };\r\n}\r\n\r\nexport interface IBusinessSignUpLocalAccount {\r\n FormWrapper: INodeProps;\r\n items: IBusinessSignUpItem[];\r\n buttons: React.ReactNode[];\r\n errorMessage: React.ReactNode[];\r\n disclaimer: React.ReactNode;\r\n}\r\n\r\nexport interface IBusinessSignUpViewProps {\r\n className: string;\r\n businessSignUp: IModuleProps;\r\n ContainerWrapper: INodeProps;\r\n heading: React.ReactNode;\r\n businessSignUpForm: IBusinessSignUpLocalAccount;\r\n formItems: IFormItem[];\r\n existingUSBLCustomer: React.ReactNode;\r\n renderReSaleDropDown: React.ReactNode;\r\n renderSubmitTaxDropDown: React.ReactNode;\r\n renderSalesTaxWarning: React.ReactNode;\r\n renderStyleOfBusiness: React.ReactNode;\r\n renderTaxNode: React.ReactNode;\r\n renderStore: React.ReactNode;\r\n renderTermsAndConditions: React.ReactNode;\r\n renderTaxPolicy: React.ReactNode;\r\n renderModal: React.ReactNode;\r\n emailPolicy: React.ReactNode;\r\n phonePolicy: React.ReactNode;\r\n renderExitModal: React.ReactNode;\r\n renderStyleChangeModal: React.ReactNode;\r\n existingValidationErrorModal: React.ReactNode;\r\n existingValidationSuccessModal: React.ReactNode;\r\n}\r\n\r\nexport interface IFormItem {\r\n id: string;\r\n type: InputType;\r\n label: string;\r\n value: string;\r\n maxChars?: string;\r\n infoBox?: string;\r\n isRequired: boolean;\r\n pattern?: string;\r\n address?: Address;\r\n customClass?: string;\r\n fieldReference?: React.RefObject;\r\n radioButtonOptions?: IBusinessSignUpRadioButtonOptionProps[];\r\n radioButtonGroupClass?: string;\r\n description?: string;\r\n}\r\n\r\nexport enum InputType {\r\n // eslint-disable-next-line @typescript-eslint/no-shadow -- Text enum doesn't override the imported Text\r\n Text = 'text',\r\n Address = 'address',\r\n Email = 'email',\r\n TextArea = 'textarea',\r\n RadioButton = 'radiobutton'\r\n}\r\n\r\nexport enum InputID {\r\n FirstName = 'FirstName',\r\n LastName = 'LastName',\r\n Email = 'CompanyEmail',\r\n CompanyName = 'CompanyName',\r\n Address = 'CompanyAddress',\r\n JobTitle = 'JobTitle',\r\n Size = 'CompanySize',\r\n Department = 'Department',\r\n Comment = 'Comment',\r\n ProspectType = 'ProspectType',\r\n AccountNo = 'AccountNumber',\r\n StreetAddress = 'StreetAddress',\r\n ZipCode = 'ZipCode'\r\n}\r\n\r\nexport const renderInputSection = (\r\n resources: ISyscoBusinessSignUpResources,\r\n inputDirty: { [key: string]: boolean },\r\n inputs: IFormItem[],\r\n className: string,\r\n needToReset: boolean,\r\n onInputChange: (event: React.ChangeEvent) => void,\r\n showErrors: boolean,\r\n addressForm?: React.ReactNode,\r\n updateAddress?: (errors: boolean, currAddress?: Address) => void\r\n): IBusinessSignUpItem[] => {\r\n return inputs.map((element, index) => {\r\n const {\r\n id,\r\n type,\r\n label,\r\n maxChars,\r\n description,\r\n isRequired,\r\n pattern,\r\n customClass,\r\n value,\r\n fieldReference,\r\n radioButtonOptions,\r\n radioButtonGroupClass\r\n } = element;\r\n\r\n const baseSignUpItem: IBusinessSignUpItem = {\r\n wrapper: {\r\n className: classnames(className, `${className}-${id}`, customClass)\r\n },\r\n id,\r\n description: description ? : <>,\r\n label: ,\r\n errorMessage: \r\n };\r\n\r\n if (type === InputType.Address) {\r\n if (addressForm) {\r\n baseSignUpItem.isAddressInput = true;\r\n baseSignUpItem.input = (\r\n <>\r\n {React.cloneElement(addressForm as React.ReactElement, {\r\n updateForm: updateAddress,\r\n hasError: showErrors,\r\n isRequired: isRequired === undefined ? false : isRequired,\r\n resetAddress: needToReset\r\n })}\r\n \r\n );\r\n } else {\r\n // If the address slot is not filled, remove this input from the form\r\n inputs.splice(index, 1);\r\n }\r\n } else if (type === InputType.RadioButton) {\r\n baseSignUpItem.input = (\r\n
\r\n {radioButtonOptions &&\r\n radioButtonOptions.map((element, index) => {\r\n return ;\r\n })}\r\n
\r\n );\r\n } else {\r\n const checkIfError = (): React.ReactNode => {\r\n if (!element?.isRequired) {\r\n return null;\r\n }\r\n const { id, value, pattern } = element;\r\n const {\r\n emailValidationError,\r\n genericValidationError,\r\n fieldRequiredError,\r\n streetValidationError,\r\n zipValidationError\r\n } = resources;\r\n if (!value) {\r\n return (\r\n <>\r\n {errorCircleSvg} {fieldRequiredError}\r\n \r\n );\r\n }\r\n const isInvalidPattern = pattern && !new RegExp(pattern).test(value);\r\n if (isInvalidPattern) {\r\n const errorMessages: Record = {\r\n [InputID.Email]: emailValidationError,\r\n [InputID.StreetAddress]: streetValidationError,\r\n [InputID.ZipCode]: zipValidationError\r\n };\r\n\r\n return (\r\n <>\r\n {errorCircleSvg} {errorMessages[id] || genericValidationError}\r\n \r\n );\r\n }\r\n return null;\r\n };\r\n\r\n baseSignUpItem.input = (\r\n <>\r\n \r\n {inputDirty && inputDirty?.[id] && (\r\n
{checkIfError()}
\r\n )}\r\n {element?.infoBox &&
{element?.infoBox}
}\r\n \r\n );\r\n }\r\n\r\n return baseSignUpItem;\r\n });\r\n};\r\n\r\n/**\r\n *\r\n * Business Request Form Modules\r\n * Form that a business can use to submit a request to become a partner with Microsoft.\r\n * @extends {React.Component>}\r\n */\r\nclass BusinessSignUp extends React.Component {\r\n private readonly moduleClassName: string = 'ms-business-sign-up';\r\n private readonly prospectRadioButtonName: string = 'business-sign-up-radio-button';\r\n\r\n // Used as default data\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n public BusinessSignUpDefaultInputs: IFormItem[] = [\r\n {\r\n id: InputID.AccountNo,\r\n type: InputType.Text,\r\n label: 'Sysco Account No *',\r\n value: '',\r\n isRequired: true,\r\n maxChars: '6',\r\n description: this.props.resources.accountNoDescription,\r\n customClass: 'width-100'\r\n },\r\n {\r\n id: InputID.FirstName,\r\n type: InputType.Text,\r\n label: this.props.resources.firstNameLabel,\r\n value: '',\r\n isRequired: true,\r\n customClass: 'width-50'\r\n },\r\n {\r\n id: InputID.LastName,\r\n type: InputType.Text,\r\n label: this.props.resources.lastNameLabel,\r\n value: '',\r\n isRequired: true,\r\n customClass: 'width-50'\r\n },\r\n {\r\n id: InputID.CompanyName,\r\n type: InputType.Text,\r\n label: 'Legal Company Name * (Nombre legal de la empresa)',\r\n value: '',\r\n isRequired: true,\r\n customClass: 'width-50'\r\n },\r\n {\r\n id: InputID.Address,\r\n type: InputType.Address,\r\n label: this.props.resources.companyAddressLabel,\r\n value: '',\r\n isRequired: true,\r\n customClass: 'width-100'\r\n },\r\n {\r\n id: InputID.StreetAddress,\r\n type: InputType.Text,\r\n label: this.props.resources.streetNameLabel,\r\n value: '',\r\n maxChars: '5',\r\n pattern: '^[0-9]{1,}$',\r\n isRequired: true,\r\n customClass: 'width-50',\r\n infoBox: this.props.config?.streetInfoBox ?? this.props.resources.streetInfoBox\r\n },\r\n {\r\n id: InputID.ZipCode,\r\n type: InputType.Text,\r\n label: this.props.resources.zipCodeLabel,\r\n value: '',\r\n isRequired: true,\r\n maxChars: '10',\r\n pattern: '^\\\\d{5}(-\\\\d{4})?$',\r\n customClass: 'width-50'\r\n },\r\n {\r\n id: InputID.Email,\r\n type: InputType.Email,\r\n label: 'Business Email Address * (Correo electrónico empresarial)',\r\n value: '',\r\n isRequired: true,\r\n pattern: EmailRegex.defaultRegex.source,\r\n customClass: 'width-50'\r\n }\r\n ];\r\n\r\n private readonly formChildReference: React.RefObject = React.createRef();\r\n\r\n private needsToReset: boolean = false;\r\n\r\n private readonly telemetryContent: ITelemetryContent;\r\n private docusignContainerRef: React.RefObject;\r\n private styleOfBusinessRef: React.RefObject;\r\n\r\n constructor(props: IBusinessSignUpExtendedProps) {\r\n super(props);\r\n\r\n this.state = {\r\n isReady: false,\r\n formItems: this.props.formItems || this._addedReference(),\r\n addressHasErrors: false,\r\n showAddressErrors: false,\r\n hasSubmitErrors: false,\r\n existingCustomerValue: 'no',\r\n isResale: true,\r\n dbaValue: '',\r\n styleOfBusinesses: [],\r\n styleofbusiness: '',\r\n taxId: '',\r\n storeName: '',\r\n taxStatus: 'Not submitted',\r\n agreedToTaxPolicy: false,\r\n termsAndConditions: false,\r\n docuSignWebFormURL: '',\r\n docuSignWebFormId: '',\r\n docuSignInstanceId: '',\r\n docuSignInstanceToken: '',\r\n blobFileNames: '',\r\n isModalOpen: false,\r\n loadDocuSign: false,\r\n allStores: [],\r\n uploadedFileNamesBlob: { withTimeStamp: [], plainNames: [] },\r\n filesToUpload: [],\r\n sasToken: '',\r\n blobStorageURL: '',\r\n uploading: false,\r\n uploadProgress: {},\r\n SignUpVia: '',\r\n emailMarketing: false,\r\n phoneMarketing: false,\r\n integrationKey: '',\r\n hasFormErros: true,\r\n termsAndCondtionsModal: false,\r\n taxPolicyModal: false,\r\n isLoading: false,\r\n isTaxEempted: false,\r\n moduleUpdating: false,\r\n isExitSystemModal: false,\r\n isStyleOfBusinessChangeModal: false,\r\n existingUserSyscoValidationFalseModal: false,\r\n existingUserSyscoValidationTrueModal: false,\r\n isExistingUserSyscoValidationResultLoading: false,\r\n existingUserSyscoValidationResult: null,\r\n isExistingUserSyscoreroutingLoading: false,\r\n inputDirty: {}\r\n };\r\n this.docusignContainerRef = React.createRef();\r\n this.styleOfBusinessRef = React.createRef();\r\n this.telemetryContent = getTelemetryObject(\r\n this.props.context.request.telemetryPageName!,\r\n this.props.friendlyName,\r\n this.props.telemetry\r\n );\r\n }\r\n\r\n public async componentDidMount(): Promise {\r\n const getAllStyles = await getAllStylesOfBusinessAsync({ callerContext: this.props.context.actionContext });\r\n if (getAllStyles) {\r\n this.setState({ styleOfBusinesses: getAllStyles });\r\n }\r\n const getAllStores = await getOrgUnitLocationsByArea(\r\n new GetOrgUnitLocationsByAreaInput(0, 0, 0, 0, true),\r\n this.props.context.actionContext\r\n );\r\n if (getAllStores && getAllStores.length && getAllStores.length > 0) {\r\n const allStores: OrgUnitLocation[] = [];\r\n getAllStores.map((item: IFullOrgUnitAvailability, index: number) => {\r\n if (item && item.OrgUnitAvailability && item.OrgUnitAvailability.OrgUnitLocation) {\r\n if (!allStores.includes(item.OrgUnitAvailability.OrgUnitLocation)) {\r\n allStores.push(item.OrgUnitAvailability.OrgUnitLocation);\r\n }\r\n }\r\n });\r\n this.setState({ allStores: allStores });\r\n }\r\n this.formChildReference.current?.focus();\r\n }\r\n\r\n public shouldComponentUpdate(nextProps: IBusinessSignUpExtendedProps, nextState: IBusinessState): 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 { config } = this.props;\r\n const { formItems } = this.state;\r\n const { className, heading } = config;\r\n // formItems.push(this._renderRadioButtons())\r\n const viewProps = {\r\n ...this.props,\r\n businessSignUp: {\r\n moduleProps: this.props,\r\n className: classnames(this.moduleClassName, className)\r\n },\r\n ContainerWrapper: {\r\n className: `${this.moduleClassName}__container`\r\n },\r\n existingUSBLCustomer: this._renderRadioButtonExistingUSBLCustomer(),\r\n heading: (\r\n \r\n ),\r\n businessSignUpForm: this._renderForm(),\r\n formItems,\r\n renderReSaleDropDown: this.state.existingCustomerValue === 'yes' ? <> : this._renderResaleDropDown(),\r\n renderSubmitTaxDropDown: this.state.existingCustomerValue === 'yes' ? <> : this._renderSubmitTaxDropDown(),\r\n renderSalesTaxWarning: this.state.isResale ? null : this._renderSalesTaxWarning(),\r\n renderStyleOfBusiness: this.state.existingCustomerValue === 'yes' ? <> : this._renderStyleOfBusiness(),\r\n renderTaxNode: this.state.existingCustomerValue === 'yes' ? <> : this._renderTaxInput(),\r\n renderStore: this.state.existingCustomerValue === 'yes' ? <> : this._renderStore(),\r\n renderTermsAndConditions: this._renderTermsAndConditions(),\r\n renderTaxPolicy: this._renderTaxPolicy(),\r\n renderModal: this._renderModal(),\r\n emailPolicy: this._renderMarketingPolicyEmail(),\r\n phonePolicy: this._renderMarketingPolicyPhone(),\r\n renderExitModal: this._onExitSystem(),\r\n existingValidationErrorModal: this._onValidationError(),\r\n existingValidationSuccessModal: this._onValidationSuccess(),\r\n renderStyleChangeModal: this._onChangeStyleOfBusiness()\r\n };\r\n return this.props.renderView(viewProps) as React.ReactElement;\r\n }\r\n\r\n private _checkFormValidation = () => {\r\n this.setState({ isReady: this._isFormReady() });\r\n };\r\n\r\n private _onExitSystem = (): React.ReactNode => {\r\n const {\r\n resources: { exitSystemMessage }\r\n } = this.props;\r\n const modalPropsTerms: IModalProps = {\r\n applicationNode: MsDyn365.isBrowser ? document.body : '',\r\n isOpen: this.state.isExitSystemModal,\r\n autoFocus: true,\r\n size: 'sm',\r\n keyboard: true,\r\n backdrop: true,\r\n zIndex: 1000,\r\n fade: true,\r\n className: `${this.state.loadDocuSign ? 'document-sign' : ''}`\r\n };\r\n return (\r\n \r\n {!this.state.loadDocuSign && (\r\n this.setState({ isExitSystemModal: !this.state.isExitSystemModal, isModalOpen: true })}\r\n >\r\n )}\r\n {exitSystemMessage}\r\n \r\n this._submitProspectCall()}\r\n telemetryContent={this.telemetryContent}\r\n />\r\n this.setState({ isExitSystemModal: !this.state.isExitSystemModal, isModalOpen: true })}\r\n telemetryContent={this.telemetryContent}\r\n />\r\n \r\n \r\n );\r\n };\r\n\r\n public handleHeadingChange = (event: ContentEditableEvent): void => {\r\n this.props.config.heading.text = event.target.value;\r\n };\r\n private _handleChangeForTermsAndConditions = (event: React.ChangeEvent) => {\r\n if (event.target.checked === true) {\r\n this.setState(\r\n {\r\n termsAndConditions: event.target.checked,\r\n hasSubmitErrors: false,\r\n termsAndCondtionsModal: false,\r\n hasFormErros: this._isFormHasErros()\r\n },\r\n () => {\r\n this._checkFormValidation();\r\n }\r\n );\r\n } else {\r\n this.setState({ termsAndConditions: event.target.checked, hasSubmitErrors: true, hasFormErros: this._isFormHasErros() }, () => {\r\n this._checkFormValidation();\r\n });\r\n }\r\n };\r\n private _renderTermsAndConditions = (): React.ReactNode => {\r\n const {\r\n resources: { linkText, termsAndCondtions, termAndConditionsHeading },\r\n config: { termsAndConditionsRichText }\r\n } = this.props;\r\n const modalProps: IModalProps = {\r\n applicationNode: MsDyn365.isBrowser ? document.body : '',\r\n isOpen: this.state.termsAndCondtionsModal,\r\n autoFocus: true,\r\n size: 'sm',\r\n keyboard: true,\r\n backdrop: true,\r\n zIndex: 1000,\r\n fade: true,\r\n toggle: () =>\r\n this.setState(prevState => ({\r\n termsAndCondtionsModal: !prevState.termsAndCondtionsModal // Toggle the boolean value\r\n }))\r\n };\r\n return (\r\n
\r\n \r\n \r\n \r\n this.setState(prevState => ({\r\n termsAndCondtionsModal: !prevState.termsAndCondtionsModal // Toggle the boolean value\r\n }))\r\n }\r\n >\r\n {termAndConditionsHeading}\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 private _isFormHasErros = (): boolean => {\r\n const { styleofbusiness, termsAndConditions, agreedToTaxPolicy, existingCustomerValue, storeName } = this.state;\r\n if (existingCustomerValue === 'yes') {\r\n if (!termsAndConditions || !agreedToTaxPolicy) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n } else {\r\n if (styleofbusiness === '' || !termsAndConditions || !agreedToTaxPolicy || !storeName) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n };\r\n private _handleChangeForTaxPolicy = (event: React.ChangeEvent) => {\r\n if (event.target.checked === true) {\r\n this.setState(\r\n {\r\n agreedToTaxPolicy: event.target.checked,\r\n hasSubmitErrors: false,\r\n taxPolicyModal: false,\r\n hasFormErros: this._isFormHasErros()\r\n },\r\n () => {\r\n this._checkFormValidation();\r\n }\r\n );\r\n } else {\r\n this.setState({ agreedToTaxPolicy: event.target.checked, hasSubmitErrors: true, hasFormErros: this._isFormHasErros() }, () => {\r\n this._checkFormValidation();\r\n });\r\n }\r\n };\r\n private _renderTaxPolicy = (): React.ReactNode => {\r\n const {\r\n resources: { linkText, customerPolicy, taxPolicyHeading },\r\n config: { taxPolicyRichText }\r\n } = this.props;\r\n const modalPropsTerms: IModalProps = {\r\n applicationNode: MsDyn365.isBrowser ? document.body : '',\r\n isOpen: this.state.taxPolicyModal,\r\n autoFocus: true,\r\n size: 'sm',\r\n keyboard: true,\r\n backdrop: true,\r\n zIndex: 1000,\r\n fade: true,\r\n toggle: () =>\r\n this.setState(prevState => ({\r\n taxPolicyModal: !prevState.taxPolicyModal // Toggle the boolean value\r\n }))\r\n };\r\n return (\r\n
\r\n \r\n \r\n \r\n this.setState(prevState => ({\r\n taxPolicyModal: !prevState.taxPolicyModal // Toggle the boolean value\r\n }))\r\n }\r\n >\r\n {taxPolicyHeading}\r\n \r\n \r\n \r\n {/* */}\r\n \r\n \r\n
\r\n );\r\n };\r\n\r\n private _renderMarketingPolicyEmail = (): React.ReactNode => {\r\n const {\r\n resources: { emailMarketingText }\r\n } = this.props;\r\n return (\r\n
\r\n \r\n
\r\n );\r\n };\r\n\r\n private _handleMarketingPolicyPhone = (event: React.ChangeEvent) => {\r\n if (event.target.checked === true) {\r\n this.setState({ phoneMarketing: event.target.checked, hasSubmitErrors: false });\r\n } else {\r\n this.setState({ phoneMarketing: event.target.checked, hasSubmitErrors: true });\r\n }\r\n };\r\n private _renderMarketingPolicyPhone = (): React.ReactNode => {\r\n const {\r\n resources: { phoneMarketingText }\r\n } = this.props;\r\n return (\r\n
\r\n \r\n
\r\n );\r\n };\r\n\r\n private handleChange = (event: React.ChangeEvent) => {\r\n if (event.target.value === '') {\r\n this.setState({ existingCustomerValue: event.target.value, hasSubmitErrors: true });\r\n } else {\r\n this.setState({ existingCustomerValue: event.target.value, hasSubmitErrors: false, isReady: this._isFormReady() }, () => {\r\n this._checkFormValidation();\r\n });\r\n }\r\n };\r\n\r\n private _renderRadioButtonExistingUSBLCustomer = (): React.ReactNode => {\r\n const {\r\n resources: { existingSyscoCustomer, existingSyscoCustomerNote }\r\n } = this.props;\r\n return (\r\n
\r\n \r\n \r\n {existingSyscoCustomerNote}\r\n \r\n
\r\n \r\n \r\n
\r\n
\r\n );\r\n };\r\n\r\n private handleChangeForResale = (event: React.ChangeEvent) => {\r\n if (event.target.value === 'yes') {\r\n this.setState(\r\n {\r\n isResale: true\r\n },\r\n () => {\r\n this.setState({ hasFormErros: this._isFormHasErros() });\r\n }\r\n );\r\n } else {\r\n this.setState(\r\n {\r\n isResale: false\r\n },\r\n () => {\r\n this.setState({ hasFormErros: this._isFormHasErros() });\r\n }\r\n );\r\n }\r\n };\r\n\r\n private _renderResaleDropDown = (): React.ReactNode => {\r\n const styles = {\r\n dropdownFocus: {\r\n borderColor: '#007bff' // Highlight border on focus\r\n }\r\n };\r\n const {\r\n resources: { reSaleOrTaxExempt }\r\n } = this.props;\r\n return (\r\n
\r\n \r\n (e.target.style.borderColor = styles.dropdownFocus.borderColor)}\r\n onBlur={e => (e.target.style.borderColor = '#ccc')}\r\n >\r\n \r\n \r\n \r\n
\r\n );\r\n };\r\n\r\n private handleChangeSubmitTax = (event: any) => {\r\n if (event.target.value === '') {\r\n this.setState({ dbaValue: event.target.value, hasSubmitErrors: true });\r\n } else {\r\n this.setState({ dbaValue: event.target.value, hasSubmitErrors: false });\r\n }\r\n };\r\n private _renderSubmitTaxDropDown = (): React.ReactNode => {\r\n return (\r\n
\r\n \r\n \r\n
\r\n );\r\n };\r\n\r\n private _renderSalesTaxWarning = (): React.ReactNode => {\r\n const {\r\n resources: { salesTaxWarningDetail, headingForWarning }\r\n } = this.props;\r\n return (\r\n
\r\n

\r\n {headingForWarning} {salesTaxWarningDetail}\r\n

\r\n
\r\n );\r\n };\r\n\r\n private handleChangeStyleOfBusiness = (event: React.ChangeEvent) => {\r\n if (event.target.value === '') {\r\n this.setState({ styleofbusiness: event.target.value, hasSubmitErrors: true, hasFormErros: this._isFormHasErros() });\r\n } else {\r\n this.setState({ styleofbusiness: event.target.value, hasSubmitErrors: false, hasFormErros: this._isFormHasErros() });\r\n }\r\n };\r\n private _renderStyleOfBusiness = (): React.ReactNode => {\r\n const {\r\n resources: { styleOfBusiness }\r\n } = this.props;\r\n return (\r\n
\r\n \r\n \r\n \r\n {this.state.styleOfBusinesses &&\r\n this.state.styleOfBusinesses.length &&\r\n this.state.styleOfBusinesses.length > 0 &&\r\n this.state.styleOfBusinesses.map((style: IStyleOfBusinessEntity) => {\r\n return (\r\n \r\n );\r\n })}\r\n \r\n
\r\n );\r\n };\r\n\r\n private handleTaxIdChange = (event: any) => {\r\n if (event.target.value === '' && this.state.isResale) {\r\n this.setState({ taxId: event.target.value, hasSubmitErrors: true });\r\n } else {\r\n this.setState({ taxId: event.target.value, hasSubmitErrors: false });\r\n }\r\n };\r\n private _renderTaxInput = (): React.ReactNode => {\r\n return (\r\n
\r\n \r\n \r\n
\r\n );\r\n };\r\n\r\n private handleChangeForStore = (event: React.ChangeEvent) => {\r\n if (event.target.value === '') {\r\n this.setState({ storeName: event.target.value, hasSubmitErrors: true, hasFormErros: this._isFormHasErros() }, () => {\r\n this._checkFormValidation();\r\n });\r\n } else {\r\n this.setState({ storeName: event.target.value, hasSubmitErrors: false, hasFormErros: this._isFormHasErros() }, () => {\r\n this._checkFormValidation();\r\n });\r\n }\r\n };\r\n private _renderStore = (): React.ReactNode => {\r\n return (\r\n
\r\n \r\n \r\n
\r\n );\r\n };\r\n\r\n private _renderForm(): IBusinessSignUpLocalAccount {\r\n const { config, resources, slots } = this.props;\r\n const { showAddressErrors, hasSubmitErrors, isReady, formItems } = this.state;\r\n let updatedArray = formItems;\r\n if (this.state.existingCustomerValue === 'yes') {\r\n updatedArray = formItems.filter(\r\n item =>\r\n item.id === InputID.AccountNo ||\r\n item.id === InputID.FirstName ||\r\n item.id === InputID.LastName ||\r\n item.id === InputID.Email ||\r\n item.id === InputID.StreetAddress ||\r\n item.id === InputID.ZipCode\r\n );\r\n } else {\r\n updatedArray = formItems.filter(\r\n item => item.id !== InputID.AccountNo && item.id !== InputID.StreetAddress && item.id !== InputID.ZipCode\r\n );\r\n }\r\n const {\r\n signUpButtonArialabel,\r\n signUpButtonText,\r\n cancelButtonArialabel,\r\n cancelButtonText,\r\n errorMessage,\r\n partialAddressErrorMessage\r\n } = resources;\r\n const addressForm = (slots && slots.addressSlot && slots.addressSlot.length > 0 && slots.addressSlot[0]) || undefined;\r\n const form = {\r\n FormWrapper: {\r\n className: `${this.moduleClassName}__form `\r\n },\r\n items: renderInputSection(\r\n resources,\r\n this.state.inputDirty,\r\n updatedArray,\r\n `${this.moduleClassName}__form-item`,\r\n this.needsToReset,\r\n this._onInputChange.bind(this),\r\n showAddressErrors,\r\n addressForm,\r\n this._onAddressChange\r\n ),\r\n buttons: [\r\n ,\r\n \r\n ],\r\n errorMessage: [\r\n hasSubmitErrors && ,\r\n showAddressErrors && (\r\n \r\n )\r\n ],\r\n disclaimer: config.disclaimer && (\r\n \r\n )\r\n };\r\n\r\n if (this.needsToReset) {\r\n this.needsToReset = false;\r\n }\r\n\r\n return form;\r\n }\r\n\r\n private _onInputChange(event: React.ChangeEvent): void {\r\n const newForm = this.state.formItems;\r\n newForm.forEach(item => {\r\n if (item.type === InputType.RadioButton && event.target.name === this.prospectRadioButtonName) {\r\n item.value = event.target.value;\r\n } else if (item.id === event.target.id) {\r\n this.setState(prevState => ({\r\n inputDirty: { ...prevState.inputDirty, [item.id]: true }\r\n }));\r\n item.value = event.target.value;\r\n }\r\n });\r\n\r\n // Check if form is ready, update state object with latest values, values have changed so reset hasSubmitErrros\r\n // ? (this._isFormHasErros() ? false : true) : false\r\n this.setState({\r\n isReady: this._isFormReady(),\r\n formItems: newForm,\r\n hasSubmitErrors: false\r\n });\r\n }\r\n\r\n private _addedReference(): IFormItem[] {\r\n const newFormFields = this.BusinessSignUpDefaultInputs;\r\n newFormFields[0].fieldReference = this.formChildReference;\r\n return newFormFields;\r\n }\r\n\r\n private readonly _onAddressChange = (errors: boolean, currentAddress?: Address): void => {\r\n // Find address item\r\n const newForm = this.state.formItems;\r\n const addressItem = newForm.find(item => {\r\n return item.type === InputType.Address;\r\n });\r\n\r\n // If found --> set to currentAddress\r\n if (addressItem) {\r\n addressItem.address = currentAddress;\r\n\r\n // Update state with new values and set errors to false if address is not required field\r\n // ? (this._isFormHasErros() ? false : true) : false\r\n this.setState(\r\n {\r\n formItems: newForm,\r\n addressHasErrors: errors,\r\n showAddressErrors: false\r\n },\r\n () => {\r\n this._checkFormValidation();\r\n }\r\n );\r\n }\r\n };\r\n\r\n private readonly _isFormReady = (): boolean => {\r\n const { formItems } = this.state;\r\n let updatedArray = formItems;\r\n if (this.state.existingCustomerValue === 'yes') {\r\n updatedArray = formItems.filter(\r\n item =>\r\n item.id === InputID.AccountNo ||\r\n item.id === InputID.FirstName ||\r\n item.id === InputID.LastName ||\r\n item.id === InputID.Email ||\r\n item.id === InputID.StreetAddress ||\r\n item.id === InputID.ZipCode\r\n );\r\n } else {\r\n updatedArray = formItems.filter(\r\n item => item.id !== InputID.AccountNo && item.id !== InputID.StreetAddress && item.id !== InputID.ZipCode\r\n );\r\n }\r\n\r\n for (const currentInput of updatedArray) {\r\n // Will return FALSE if:\r\n // - input field is required\r\n // IF is address AND addressHasErrors === true\r\n // ELSE value is undefined OR empty\r\n // OR\r\n // - pattern provided and value does not match pattern\r\n\r\n if (currentInput.isRequired) {\r\n if (currentInput.type === InputType.Address) {\r\n if (this.state.addressHasErrors) {\r\n return false;\r\n }\r\n } else if (currentInput.value === undefined || currentInput.value === '') {\r\n return false;\r\n }\r\n }\r\n if (currentInput.pattern !== undefined && currentInput.value.match(currentInput.pattern) === null) {\r\n return false;\r\n }\r\n }\r\n\r\n if (this._isFormHasErros()) {\r\n return false;\r\n }\r\n return true;\r\n };\r\n\r\n private _submitProspectCall = () => {\r\n const { config, context } = this.props;\r\n this.setState({ isLoading: true });\r\n\r\n // Check for matching id and if not empty\r\n const firstName = this._getItem(InputID.FirstName);\r\n const lastName = this._getItem(InputID.LastName);\r\n const companyName = this._getItem(InputID.CompanyName);\r\n const companyEmail = this._getItem(InputID.Email);\r\n const companyAddress = this._getItem(InputID.Address, true);\r\n\r\n // API gets email as part of the address object, but I do not use the email input from the address component, thus we need to copy it over\r\n if (companyEmail && companyEmail.value && companyAddress && companyAddress.address) {\r\n companyAddress.address.Email = companyEmail.value;\r\n }\r\n let newTaxStatus = '';\r\n if (this.state.SignUpVia === 'azureblob' || this.state.SignUpVia === 'docusign') {\r\n newTaxStatus = 'Pending Approval';\r\n } else if (this.state.SignUpVia === 'docuSignInComplete') {\r\n newTaxStatus = 'In-progress';\r\n } else {\r\n newTaxStatus = 'Not submitted';\r\n }\r\n\r\n const selectedStyleOfBusiness = this.state.styleOfBusinesses.find(style => style.RECID.toString() === this.state.styleofbusiness);\r\n\r\n const newPartner: BusinessPartnerProspect = {\r\n FirstName: firstName && firstName.value,\r\n LastName: lastName && lastName.value,\r\n CompanyName: companyName && companyName.value,\r\n Address: companyAddress && companyAddress.address && companyAddress.address,\r\n ProspectTypeValue: 1,\r\n ExtensionProperties: [\r\n {\r\n Key: 'StyleOfBusiness',\r\n Value: {\r\n StringValue: selectedStyleOfBusiness?.StyleOfBusinessName\r\n }\r\n },\r\n {\r\n Key: 'Store',\r\n Value: {\r\n StringValue: this.state.storeName\r\n }\r\n },\r\n {\r\n Key: 'TaxExemptorResale',\r\n Value: {\r\n BooleanValue: this.state.isResale\r\n }\r\n },\r\n {\r\n Key: 'TaxId',\r\n Value: {\r\n StringValue: this.state.taxId\r\n }\r\n },\r\n {\r\n Key: 'BlobFilesNames',\r\n Value: {\r\n StringValue:\r\n this.state.uploadedFileNamesBlob &&\r\n this.state.uploadedFileNamesBlob.withTimeStamp &&\r\n this.state.uploadedFileNamesBlob.withTimeStamp.length &&\r\n this.state.uploadedFileNamesBlob.withTimeStamp.length > 0\r\n ? JSON.stringify(this.state.uploadedFileNamesBlob.withTimeStamp)\r\n : '' // Put blob files names here // Put blob files names here\r\n }\r\n },\r\n {\r\n Key: 'DocuSignWebformId',\r\n Value: {\r\n StringValue: this.state.SignUpVia !== 'azureblob' ? this.state.docuSignWebFormId : '' // Put DocuSignWebFormId\r\n }\r\n },\r\n {\r\n Key: 'DocuSignInstanceId',\r\n Value: {\r\n StringValue: this.state.SignUpVia !== 'azureblob' || this.state.SignUpVia ? this.state.docuSignInstanceId : '' // Put DocuSignInstanceId\r\n }\r\n },\r\n {\r\n Key: 'TaxStatus',\r\n Value: {\r\n StringValue: newTaxStatus\r\n }\r\n },\r\n {\r\n Key: 'DBA',\r\n Value: {\r\n StringValue: this.state.dbaValue\r\n }\r\n },\r\n {\r\n Key: 'MarketingOptInMail',\r\n Value: {\r\n BooleanValue: this.state.emailMarketing\r\n }\r\n },\r\n {\r\n Key: 'MarketingOptInPhone',\r\n Value: {\r\n BooleanValue: this.state.phoneMarketing\r\n }\r\n }\r\n ]\r\n };\r\n if (newPartner?.Address?.Phone) {\r\n newPartner.Address.Phone = newPartner?.Address?.Phone.replace(/[-() ]/g, '');\r\n }\r\n\r\n this.setState({\r\n isReady: false\r\n });\r\n // Create business partner request\r\n createProspectAsync({ callerContext: context.actionContext }, newPartner)\r\n .then(() => {\r\n const successPageURL =\r\n (config.confirmationLink && config.confirmationLink.linkUrl && config.confirmationLink.linkUrl.destinationUrl) ||\r\n getUrlSync('home', this.props.context.actionContext) ||\r\n '';\r\n window.location.href = successPageURL;\r\n this.setState({ isLoading: false });\r\n })\r\n .catch(() => {\r\n this.setState({\r\n hasSubmitErrors: true,\r\n isLoading: false\r\n });\r\n });\r\n };\r\n\r\n // private focusStyleOfBusiness = () => {\r\n // if (this.styleOfBusinessRef.current) {\r\n // this.styleOfBusinessRef.current.focus({ preventScroll: true });\r\n // this.styleOfBusinessRef.current?.scrollIntoView({ behavior: 'smooth', block: 'center' });\r\n // }\r\n // };\r\n\r\n private _onChangeStyleOfBusiness = (): React.ReactNode => {\r\n const {\r\n config: { styleOfBusinessTaxExemptionHeading, styleOfBusinessTaxExemptionMessage }\r\n } = this.props;\r\n const modalPropsTerms: IModalProps = {\r\n applicationNode: MsDyn365.isBrowser ? document.body : '',\r\n isOpen: this.state.isStyleOfBusinessChangeModal,\r\n autoFocus: true,\r\n size: 'sm',\r\n keyboard: true,\r\n backdrop: true,\r\n zIndex: 1000,\r\n fade: true\r\n };\r\n return (\r\n \r\n {!this.state.loadDocuSign && (\r\n this.setState({ isStyleOfBusinessChangeModal: !this.state.isStyleOfBusinessChangeModal })}\r\n >\r\n {styleOfBusinessTaxExemptionHeading}\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n {\r\n this.setState({ isStyleOfBusinessChangeModal: !this.state.isStyleOfBusinessChangeModal });\r\n this._submitProspectCall();\r\n }}\r\n telemetryContent={this.telemetryContent}\r\n />\r\n \r\n \r\n );\r\n };\r\n\r\n private _onValidationSuccess = (): React.ReactNode => {\r\n const {\r\n resources: { orgName, email },\r\n config: { accountFoundAgainst }\r\n } = this.props;\r\n const modalPropsTerms: IModalProps = {\r\n applicationNode: MsDyn365.isBrowser ? document.body : '',\r\n isOpen: this.state.existingUserSyscoValidationTrueModal,\r\n autoFocus: true,\r\n size: 'sm',\r\n keyboard: true,\r\n backdrop: true,\r\n zIndex: 1000,\r\n fade: true\r\n };\r\n const companyEmail = this._getItem(InputID.Email);\r\n\r\n return (\r\n \r\n {!this.state.loadDocuSign && (\r\n this.setState({ existingUserSyscoValidationTrueModal: false })}\r\n >\r\n )}\r\n \r\n
\r\n \r\n
\r\n
{orgName}:
{' '}\r\n
{this.state.existingUserSyscoValidationResult?.OrganizationName}
\r\n
\r\n
\r\n
{email}:
{companyEmail?.value}
\r\n
\r\n
\r\n
\r\n \r\n this.setState({ existingUserSyscoValidationTrueModal: false })}\r\n telemetryContent={this.telemetryContent}\r\n />\r\n this._createUserAccount()}\r\n telemetryContent={this.telemetryContent}\r\n />\r\n \r\n
\r\n );\r\n };\r\n\r\n private readonly _createUserAccount = async () => {\r\n this.setState({ isExistingUserSyscoreroutingLoading: true });\r\n const { config } = this.props;\r\n const account = this._getItem(InputID.AccountNo);\r\n const companyEmail = this._getItem(InputID.Email);\r\n const firstName = this._getItem(InputID.FirstName);\r\n const lastName = this._getItem(InputID.LastName);\r\n\r\n if (account?.value && companyEmail?.value && firstName?.value && lastName?.value) {\r\n createExistingCustomerUserAsync(\r\n { callerContext: this.props.context.actionContext },\r\n `067-${account.value}`,\r\n firstName.value,\r\n lastName.value,\r\n companyEmail.value,\r\n this.state.phoneMarketing,\r\n this.state.emailMarketing\r\n )\r\n .then(val => {\r\n if (val?.Success) {\r\n const successPageURL =\r\n (config.confirmationLink &&\r\n config.confirmationLink.linkUrl &&\r\n config.confirmationLink.linkUrl.destinationUrl) ||\r\n getUrlSync('home', this.props.context.actionContext) ||\r\n '';\r\n window.location.href = successPageURL;\r\n this.setState({ isExistingUserSyscoreroutingLoading: false });\r\n }\r\n })\r\n .catch(() => {\r\n this.setState({ isExistingUserSyscoreroutingLoading: false });\r\n });\r\n }\r\n };\r\n\r\n private getValidationErrorMessage(\r\n accountNotFound: RichText | undefined,\r\n emailAlreadyExists: string,\r\n credentialsError: RichText | undefined\r\n ): string | React.ReactNode {\r\n const { existingUserSyscoValidationResult } = this.state;\r\n const account = this._getItem(InputID.AccountNo);\r\n const companyEmail = this._getItem(InputID.Email);\r\n\r\n if (!existingUserSyscoValidationResult?.AccountValidation) {\r\n if (!existingUserSyscoValidationResult?.IsAccountFound) {\r\n return ;\r\n } else {\r\n return ;\r\n }\r\n } else if (!existingUserSyscoValidationResult?.IsAccountFound) {\r\n return (\r\n
\r\n {accountNotFound}\r\n {account?.value}\r\n
\r\n );\r\n } else if (existingUserSyscoValidationResult?.EmailAlreadyExists) {\r\n return (\r\n
\r\n {emailAlreadyExists} {companyEmail?.value}\r\n
\r\n );\r\n }\r\n return <>;\r\n }\r\n\r\n private _onValidationError = (): React.ReactNode => {\r\n const {\r\n resources: { emailAlreadyExists },\r\n config: { credentialsError, accountNotFoundAgainst }\r\n } = this.props;\r\n const modalPropsTerms: IModalProps = {\r\n applicationNode: MsDyn365.isBrowser ? document.body : '',\r\n isOpen: this.state.existingUserSyscoValidationFalseModal,\r\n autoFocus: true,\r\n size: 'sm',\r\n keyboard: true,\r\n backdrop: true,\r\n zIndex: 1000,\r\n fade: true\r\n };\r\n\r\n return (\r\n \r\n {!this.state.loadDocuSign && (\r\n this.setState({ existingUserSyscoValidationFalseModal: false })}\r\n >\r\n )}\r\n \r\n <>{this.getValidationErrorMessage(accountNotFoundAgainst, emailAlreadyExists, credentialsError)}\r\n \r\n \r\n this.setState({ existingUserSyscoValidationFalseModal: false })}\r\n telemetryContent={this.telemetryContent}\r\n />\r\n \r\n \r\n );\r\n };\r\n\r\n private readonly _onSubmit = async (event: React.MouseEvent) => {\r\n if (this.state.existingCustomerValue === 'yes') {\r\n this.setState({ isExistingUserSyscoValidationResultLoading: true });\r\n const account = this._getItem(InputID.AccountNo);\r\n const companyEmail = this._getItem(InputID.Email);\r\n const streetAddress = this._getItem(InputID.StreetAddress);\r\n const zipCode = this._getItem(InputID.ZipCode);\r\n\r\n if (account?.value && companyEmail?.value) {\r\n try {\r\n const validatedData = await validateOrganizationAsync(\r\n { callerContext: this.props.context.actionContext },\r\n `067-${account.value}`,\r\n companyEmail.value,\r\n zipCode?.value?.trim() ?? '',\r\n streetAddress?.value?.trim() ?? ''\r\n );\r\n if (validatedData) {\r\n this.setState({\r\n existingUserSyscoValidationResult: {\r\n EmailAlreadyExists: validatedData.EmailAlreadyExists,\r\n IsAccountFound: validatedData.IsAccountFound,\r\n OrganizationName: validatedData?.OrganizationName ?? '',\r\n AccountValidation: validatedData?.AccountValidation,\r\n ValidationResult: validatedData.ValidationResult\r\n },\r\n existingUserSyscoValidationFalseModal: !validatedData.ValidationResult,\r\n existingUserSyscoValidationTrueModal: validatedData.ValidationResult\r\n });\r\n }\r\n this.setState({ isExistingUserSyscoValidationResultLoading: false });\r\n } catch (error) {\r\n this.setState({ isExistingUserSyscoValidationResultLoading: false });\r\n console.error('Error occurred on SubmitProspect Call:', error);\r\n }\r\n }\r\n } else {\r\n this.setState({ isLoading: true });\r\n\r\n try {\r\n const {\r\n context: { actionContext }\r\n } = this.props;\r\n const selectedStyleOfBusiness = this.state.styleOfBusinesses.find(\r\n style => style.RECID.toString() === this.state.styleofbusiness\r\n );\r\n const selectedStore = this.state.allStores.find(singleStore => singleStore.OrgUnitNumber === this.state.storeName);\r\n const customTaxExempted: ITaxExemptionCheckResponse = await taxExemptionCheckAsync(\r\n { callerContext: actionContext },\r\n\r\n selectedStore?.State ?? '',\r\n selectedStyleOfBusiness?.StyleOfBusinessName ?? ''\r\n );\r\n\r\n // if (customTaxExempted && customTaxExempted.ApplicableForTaxExemption && customTaxExempted.DocuSignWebFormFound) {\r\n this.setState(\r\n prevState => ({ moduleUpdating: true }),\r\n () => {\r\n this.setState({\r\n isTaxEempted: customTaxExempted.ApplicableForTaxExemption ?? false\r\n });\r\n }\r\n );\r\n // }\r\n } catch (error) {\r\n console.error('Error occurred on SubmitProspect Call:', error);\r\n }\r\n\r\n if (this.state.addressHasErrors) {\r\n this.setState({\r\n showAddressErrors: true\r\n });\r\n\r\n event.preventDefault();\r\n return;\r\n }\r\n if (!this.state.isResale) {\r\n this._submitProspectCall();\r\n } else {\r\n this.setState({ isModalOpen: true, isLoading: false, isStyleOfBusinessChangeModal: false });\r\n }\r\n }\r\n };\r\n\r\n private loadDocuSign = async () => {\r\n const { docuSignInstanceId, docuSignWebFormURL, loadDocuSign, docuSignInstanceToken, integrationKey } = this.state;\r\n if (docuSignInstanceId && docuSignInstanceToken && docuSignWebFormURL && loadDocuSign) {\r\n // Ensure the DocuSign script is loaded\r\n // @ts-ignore\r\n if (MsDyn365.isBrowser && !window.DocuSign) {\r\n console.error('DocuSign SDK not loaded.');\r\n return;\r\n }\r\n //@ts-ignore\r\n const { loadDocuSign } = window.DocuSign;\r\n const docusign = await loadDocuSign(integrationKey);\r\n\r\n // const webFormOptions = {\r\n // instanceToken: docuSignInstanceToken,\r\n // hideProgressBar: false,\r\n // styles: { fontColor: 'black' },\r\n // iframeStyles: { minHeight: '800px' },\r\n // autoResizeHeight: true,\r\n // showFinishLater: true\r\n // };\r\n\r\n // const webFormWidget = docusign.webforms({\r\n // url: docuSignWebFormURL,\r\n // options: webFormOptions\r\n // });\r\n\r\n const webFormOptions = {\r\n instanceToken: docuSignInstanceToken,\r\n hideProgressBar: false,\r\n styles: { fontColor: 'black' },\r\n iframeStyles: { minHeight: '800px' },\r\n autoResizeHeight: true,\r\n showFinishLater: false\r\n };\r\n\r\n // Initialize the webform\r\n const webFormWidget = docusign.webforms({\r\n url: docuSignWebFormURL,\r\n options: webFormOptions\r\n });\r\n\r\n // ✅ Listen for postMessage events from the DocuSign iframe\r\n window.addEventListener(\r\n 'message',\r\n async event => {\r\n // Ensure the message is coming from DocuSign\r\n if (event.origin.includes('docusign.com')) {\r\n if (\r\n //@ts-ignore\r\n event.data.eventType === 'sessionEnd' &&\r\n //@ts-ignore\r\n event.data.content &&\r\n //@ts-ignore\r\n event.data.content.sessionEndType === 'signing_complete'\r\n ) {\r\n this.setState(\r\n prevState => ({ SignUpVia: 'docusign', isModalOpen: false }),\r\n () => this._submitProspectCall()\r\n );\r\n }\r\n } else if (\r\n //@ts-ignore\r\n event.data.eventType === 'sessionEnd' &&\r\n //@ts-ignore\r\n event.data.content &&\r\n //@ts-ignore\r\n event.data.content.sessionEndType === 'finishLater'\r\n ) {\r\n this.setState(\r\n prevState => ({ SignUpVia: 'docuSignInComplete' }),\r\n () => this._submitProspectCall() // Callback function\r\n );\r\n // @ts-ignore\r\n } else if (event.data.eventType === 'sessionEnd' && event.data.content && event.data.content.sessionEndType === '') {\r\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\r\n const response: IRefreshWebFormInstanceTokenResponse = await refreshWebFormInstanceTokenAsync(\r\n // @ts-ignore\r\n { callerContext: this.props.context.actionContext },\r\n this.state.docuSignWebFormURL,\r\n this.state.docuSignInstanceId\r\n );\r\n if (response && response.FormInstanceToken && response.InstanceID && response.FormURL && response.IntegrationKey) {\r\n this.setState({\r\n docuSignWebFormURL: response.FormURL,\r\n docuSignInstanceId: response.InstanceID,\r\n loadDocuSign: true,\r\n docuSignInstanceToken: response.FormInstanceToken,\r\n integrationKey: response.IntegrationKey,\r\n isLoading: false\r\n });\r\n await this.loadDocuSign();\r\n }\r\n }\r\n },\r\n false\r\n );\r\n // webFormWidget.on('signingReady', (event: any) => console.log('Signing Ready:', event));\r\n webFormWidget.on('sessionEnd', async (event: any) => {\r\n if (event.type === 'sessionTimeout') {\r\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\r\n const response: IRefreshWebFormInstanceTokenResponse = await refreshWebFormInstanceTokenAsync(\r\n { callerContext: this.props.context.actionContext },\r\n this.state.docuSignWebFormId,\r\n this.state.docuSignInstanceId\r\n );\r\n if (response && response.FormInstanceToken && response.InstanceID && response.FormURL && response.IntegrationKey) {\r\n this.setState({\r\n docuSignWebFormURL: response.FormURL,\r\n docuSignInstanceId: response.InstanceID,\r\n loadDocuSign: true,\r\n docuSignInstanceToken: response.FormInstanceToken,\r\n integrationKey: response.IntegrationKey\r\n });\r\n await this.loadDocuSign();\r\n }\r\n } else if (event.type === 'signingResult') {\r\n this.setState({ SignUpVia: 'docusign' });\r\n this._submitProspectCall();\r\n } else if (event.type === 'finishLater') {\r\n this.setState(\r\n prevState => ({ SignUpVia: 'docuSignInComplete' }),\r\n () => this._submitProspectCall() // Callback function\r\n );\r\n }\r\n });\r\n // webFormWidget.on('userActivity', (event: any) => console.log('User Activity:', event));\r\n webFormWidget.mount(this.docusignContainerRef.current);\r\n }\r\n };\r\n\r\n private fetchDocuSignData = async (simpleUpload: boolean) => {\r\n const {\r\n config: { sellerName }\r\n } = this.props;\r\n this.setState({ isLoading: true });\r\n const companyAddress = this._getItem(InputID.Address, true);\r\n const firstName = this._getItem(InputID.FirstName);\r\n const lastName = this._getItem(InputID.LastName);\r\n const phoneNumber =\r\n companyAddress && companyAddress.address && companyAddress.address.Phone\r\n ? companyAddress.address.Phone.replace(/[-() ]/g, '')\r\n : '';\r\n try {\r\n const selectedStore = this.state.allStores.find(singleStore => singleStore.OrgUnitNumber === this.state.storeName);\r\n const selectedStyleOfBusiness = this.state.styleOfBusinesses.find(\r\n style => style.RECID.toString() === this.state.styleofbusiness\r\n );\r\n const sellerAddress = this.state.formItems.find(item => item.id === 'CompanyAddress');\r\n const companyName = this.state.formItems.find(item => item.id === 'CompanyName');\r\n const preFilledFields: ITaxFormPreFilledFieldsEntity = {\r\n Email: this._getItem(InputID.Email)?.value ?? '',\r\n TaxId: this.state.taxId,\r\n StyleOfBusiness: selectedStyleOfBusiness?.StyleOfBusinessName,\r\n StatePurchaser: sellerAddress?.address?.State,\r\n CityPurchaser: sellerAddress?.address?.City,\r\n AddressPurchaser: sellerAddress?.address?.Street,\r\n ZipCodePurchaser: sellerAddress?.address?.ZipCode,\r\n FullName: `${firstName?.value} ${lastName?.value}`,\r\n AddressSeller: selectedStore?.Street,\r\n CitySeller: selectedStore?.City,\r\n StateSeller: selectedStore?.State,\r\n ZipCodeSeller: selectedStore?.Zip,\r\n PhoneNumber: phoneNumber,\r\n NameOfPurchaser: companyName?.value,\r\n Title: '',\r\n Seller: sellerName ?? selectedStore?.OrgUnitName\r\n };\r\n\r\n let response: ICreateWebFormInstanceTokenResponse | null = null;\r\n\r\n if (simpleUpload) {\r\n response = await createDefaultFormInstanceTokenAsync({ callerContext: this.props.context.actionContext }, preFilledFields);\r\n } else {\r\n response = await createWebFormInstanceTokenAsync({ callerContext: this.props.context.actionContext }, preFilledFields);\r\n }\r\n if (\r\n response &&\r\n response.FormInstanceToken &&\r\n response.InstanceID &&\r\n response.FormURL &&\r\n response.IntegrationKey &&\r\n response.WebFormID\r\n ) {\r\n this.setState({\r\n docuSignWebFormURL: response.FormURL,\r\n docuSignInstanceId: response.InstanceID,\r\n loadDocuSign: true,\r\n docuSignInstanceToken: response.FormInstanceToken,\r\n SignUpVia: 'docuSignInComplete',\r\n integrationKey: response.IntegrationKey,\r\n docuSignWebFormId: response.WebFormID\r\n });\r\n await this.loadDocuSign();\r\n }\r\n } catch (error) {\r\n console.error('Error fetching DocuSign data:', error);\r\n }\r\n };\r\n\r\n private _renderModal = (): React.ReactNode => {\r\n const {\r\n resources: { modalLabel2, docuSignButtonLabel, notReadyText, exitLinkText, finishItLater, docuUploadButtonLabel, modalLabel1 }\r\n } = this.props;\r\n const modalPropsTerms: IModalProps = {\r\n applicationNode: MsDyn365.isBrowser ? document.body : '',\r\n isOpen: this.state.isModalOpen,\r\n autoFocus: true,\r\n size: 'sm',\r\n keyboard: true,\r\n backdrop: true,\r\n zIndex: 1000,\r\n fade: true,\r\n className: `${this.state.loadDocuSign ? 'document-sign' : ''}`\r\n };\r\n // const docuSignUrl = `https://webforms.docusign.com/signing/${this.state.docuSignWebFormId}?instance=${this.state.docuSignInstanceId}`;\r\n return (\r\n \r\n {!this.state.loadDocuSign && (\r\n this.setState({ isModalOpen: !this.state.isModalOpen })}\r\n >\r\n )}\r\n \r\n {!this.state.loadDocuSign && (\r\n
\r\n

\r\n {modalLabel1}\r\n
\r\n

\r\n {this.state.isTaxEempted && (\r\n

\r\n {modalLabel2}\r\n
\r\n

\r\n )}\r\n
\r\n )}\r\n {!this.state.loadDocuSign && !this.state.isStyleOfBusinessChangeModal && (\r\n
\r\n this.fetchDocuSignData(true)}\r\n telemetryContent={this.telemetryContent}\r\n />\r\n {this.state.isTaxEempted && (\r\n <>\r\n {/* Vertical Divider */}\r\n\r\n
\r\n\r\n this.fetchDocuSignData(false)}\r\n telemetryContent={this.telemetryContent}\r\n />\r\n \r\n )}\r\n
\r\n )}\r\n {this.state.loadDocuSign &&
}\r\n {/* */}\r\n
\r\n \r\n {!this.state.loadDocuSign && (\r\n \r\n {notReadyText}  \r\n {\r\n this.setState({ isExitSystemModal: true, isModalOpen: false, isStyleOfBusinessChangeModal: false });\r\n }}\r\n className='ms-checkout__terms-and-conditions__link'\r\n style={{ color: ' #008CD2', textDecoration: 'underline' }}\r\n >\r\n {exitLinkText}\r\n \r\n \r\n )}\r\n {this.state.loadDocuSign && (\r\n \r\n \r\n {finishItLater}\r\n \r\n \r\n )}\r\n \r\n
\r\n );\r\n };\r\n\r\n private readonly _onCancel = () => {\r\n // Reset values of the form\r\n const cleanForm = this.state.formItems;\r\n cleanForm.forEach(input => {\r\n input.value = '';\r\n });\r\n\r\n // Set reset flag so address input will get reset on next renderInputSection() call\r\n this.needsToReset = true;\r\n\r\n this.setState({\r\n isReady: false,\r\n formItems: cleanForm,\r\n addressHasErrors: true,\r\n showAddressErrors: false,\r\n hasSubmitErrors: false\r\n });\r\n };\r\n\r\n private readonly _getItem = (id: string, isAddress: boolean = false) => {\r\n if (isAddress) {\r\n return this.state.formItems.find(item => {\r\n return item.id === id && item.address;\r\n });\r\n }\r\n return this.state.formItems.find(item => {\r\n return item.id === id && item.value !== '';\r\n });\r\n };\r\n}\r\n\r\nexport default BusinessSignUp;\r\n","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n */\r\n\r\n/* eslint-disable no-duplicate-imports */\r\nimport { Module, Node } from '@msdyn365-commerce-modules/utilities';\r\nimport * as React from 'react';\r\n\r\nimport { IBusinessSignUpItem, IBusinessSignUpViewProps, InputID } from './sysco-business-sign-up';\r\n\r\nconst BusinessSignUpItem: React.FC = ({ id, wrapper, label, errorMessage, input, isAddressInput, description }) => {\r\n return (\r\n \r\n {!isAddressInput && label === 'Phone' ? 'Mobile Phone' : label}\r\n {!isAddressInput && errorMessage}\r\n {description &&
{description}
}\r\n {id === InputID.AccountNo ? (\r\n
\r\n 067 -{' '}\r\n
{input}
\r\n
\r\n ) : (\r\n input\r\n )}\r\n
\r\n );\r\n};\r\n\r\nconst BusinesSignUpView: React.FC = props => {\r\n const {\r\n businessSignUp,\r\n ContainerWrapper,\r\n businessSignUpForm,\r\n existingUSBLCustomer,\r\n renderReSaleDropDown,\r\n renderSubmitTaxDropDown,\r\n renderSalesTaxWarning,\r\n renderStyleOfBusiness,\r\n renderTaxNode,\r\n renderStore,\r\n renderTermsAndConditions,\r\n renderTaxPolicy,\r\n renderModal,\r\n phonePolicy,\r\n emailPolicy,\r\n renderExitModal,\r\n existingValidationErrorModal,\r\n existingValidationSuccessModal,\r\n renderStyleChangeModal\r\n } = props;\r\n\r\n const { FormWrapper, buttons, items } = businessSignUpForm;\r\n return (\r\n \r\n {renderModal}\r\n {renderExitModal}\r\n {existingValidationErrorModal}\r\n {existingValidationSuccessModal}\r\n {renderStyleChangeModal}\r\n \r\n {/* {heading} */}\r\n \r\n {existingUSBLCustomer}\r\n {items &&\r\n items.map((item: IBusinessSignUpItem) => {\r\n if (\r\n item.id === InputID.FirstName ||\r\n item.id === InputID.LastName ||\r\n item.id === InputID.CompanyName ||\r\n item.id === InputID.Email ||\r\n item.id === InputID.AccountNo ||\r\n item.id === InputID.StreetAddress ||\r\n item.id === InputID.ZipCode\r\n ) {\r\n return ;\r\n } else {\r\n return null;\r\n }\r\n })}\r\n <>\r\n {renderReSaleDropDown}\r\n {renderSubmitTaxDropDown}\r\n {renderSalesTaxWarning}\r\n {renderStyleOfBusiness}\r\n {renderStore}\r\n\r\n {renderTaxNode}\r\n \r\n <>\r\n {items &&\r\n items.map((item: IBusinessSignUpItem) => {\r\n if (item.id === InputID.Address || item.id === InputID.Comment) {\r\n return ;\r\n } else {\r\n return null;\r\n }\r\n })}\r\n \r\n {renderTermsAndConditions}\r\n {renderTaxPolicy}\r\n {emailPolicy}\r\n {phonePolicy}\r\n {buttons &&\r\n buttons.map((button: React.ReactNode, index: number) => {\r\n return {button};\r\n })}\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default BusinesSignUpView;\r\n","const binding = { modules: {}, dataActions: {} };\n\n (binding.modules['sysco-business-sign-up'] = {\n c: () => require('partner/modules/sysco-business-sign-up/sysco-business-sign-up.tsx'),\n $type: 'containerModule',\n da: [],\n \n iNM: false,\n ns: '__local__',\n n: 'sysco-business-sign-up',\n p: '__local__',\n \n pdp: '',\n \n \n md: 'src/modules/sysco-business-sign-up'\n });\n \n\n \n window.__bindings__ = window.__bindings__ || {};\n window.__bindings__.modules = {\n ...window.__bindings__.modules || {},\n ...binding.modules\n };\n \n window.__bindings__.dataActions = {\n ...window.__bindings__.dataActions || {},\n ...binding.dataActions\n };\n export const viewDictionary = {};\n viewDictionary['__local__|__local__|modules|sysco-business-sign-up|sysco-business-sign-up'] = {\n c: () => require('partner/modules/sysco-business-sign-up/sysco-business-sign-up.view.tsx'),\n cn: '__local__-__local__-sysco-business-sign-up'\n };\nwindow.__bindings__ = window.__bindings__ || {};\nwindow.__bindings__.viewDictionary = {\n ...window.__bindings__.viewDictionary || {},\n ...viewDictionary\n };","module.exports = React;","module.exports = ReactDOM;","'use strict';\nvar call = require('../internals/function-call');\nvar fixRegExpWellKnownSymbolLogic = require('../internals/fix-regexp-well-known-symbol-logic');\nvar anObject = require('../internals/an-object');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar toLength = require('../internals/to-length');\nvar toString = require('../internals/to-string');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar getMethod = require('../internals/get-method');\nvar advanceStringIndex = require('../internals/advance-string-index');\nvar regExpExec = require('../internals/regexp-exec-abstract');\n\n// @@match logic\nfixRegExpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNative) {\n return [\n // `String.prototype.match` method\n // https://tc39.es/ecma262/#sec-string.prototype.match\n function match(regexp) {\n var O = requireObjectCoercible(this);\n var matcher = isNullOrUndefined(regexp) ? undefined : getMethod(regexp, MATCH);\n return matcher ? call(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString(O));\n },\n // `RegExp.prototype[@@match]` method\n // https://tc39.es/ecma262/#sec-regexp.prototype-@@match\n function (string) {\n var rx = anObject(this);\n var S = toString(string);\n var res = maybeCallNative(nativeMatch, rx, S);\n\n if (res.done) return res.value;\n\n if (!rx.global) return regExpExec(rx, S);\n\n var fullUnicode = rx.unicode;\n rx.lastIndex = 0;\n var A = [];\n var n = 0;\n var result;\n while ((result = regExpExec(rx, S)) !== null) {\n var matchStr = toString(result[0]);\n A[n] = matchStr;\n if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);\n n++;\n }\n return n === 0 ? null : A;\n }\n ];\n});\n"],"names":["SignUpButton","_ref","id","className","text","ariaLabel","telemetryContent","disabled","link","onClick","isLoading","payLoad","getPayloadObject","attributes","getTelemetryAttributes","React","Button","Object","assign","role","href","style","alignSelf","Waiting","SignUpError","type","message","errorClassName","classnames","GetMaxLength","maxLength","parsedMaxLength","Number","parseInt","isNaN","SignUpInput","value","pattern","isRequired","onChange","fieldReference","InputType","TextArea","name","undefined","ref","SignUpLabel","forId","htmlFor","BusinessSignUpRadioButtonOption","props","label","fontSize","color","display","marginBottom","errorCircleSvg","xmlns","width","height","viewBox","fill","stroke","transform","cx","cy","r","d","InputID","renderInputSection","resources","inputDirty","inputs","needToReset","onInputChange","showErrors","addressForm","updateAddress","map","element","index","maxChars","description","customClass","radioButtonOptions","radioButtonGroupClass","baseSignUpItem","wrapper","DescriptionLabel","errorMessage","Address","isAddressInput","input","updateForm","hasError","resetAddress","splice","RadioButton","key","checkIfError","emailValidationError","genericValidationError","fieldRequiredError","streetValidationError","zipValidationError","RegExp","test","errorMessages","Email","StreetAddress","ZipCode","marginTop","gap","infoBox","BusinessSignUp","constructor","_this$props$config$st","_this$props$config","_this","super","this","moduleClassName","prospectRadioButtonName","BusinessSignUpDefaultInputs","AccountNo","Text","accountNoDescription","FirstName","firstNameLabel","LastName","lastNameLabel","CompanyName","companyAddressLabel","streetNameLabel","config","streetInfoBox","zipCodeLabel","EmailRegex","defaultRegex","source","formChildReference","needsToReset","_checkFormValidation","setState","isReady","_isFormReady","_onExitSystem","exitSystemMessage","modalPropsTerms","applicationNode","MsDyn365","isBrowser","document","body","isOpen","state","isExitSystemModal","autoFocus","size","keyboard","backdrop","zIndex","fade","loadDocuSign","Modal","ModalHeader","closeAriaLabel","closeButtonLabel","toggle","isModalOpen","ModalBody","ModalFooter","justifyContent","_submitProspectCall","handleHeadingChange","event","heading","target","_handleChangeForTermsAndConditions","checked","termsAndConditions","hasSubmitErrors","termsAndCondtionsModal","hasFormErros","_isFormHasErros","_renderTermsAndConditions","linkText","termsAndCondtions","termAndConditionsHeading","termsAndConditionsRichText","modalProps","prevState","RichTextComponent","marginLeft","styleofbusiness","agreedToTaxPolicy","existingCustomerValue","storeName","_handleChangeForTaxPolicy","taxPolicyModal","_renderTaxPolicy","customerPolicy","taxPolicyHeading","taxPolicyRichText","_renderMarketingPolicyEmail","emailMarketingText","emailMarketing","_handleMarketingPolicyPhone","phoneMarketing","_renderMarketingPolicyPhone","phoneMarketingText","handleChange","_renderRadioButtonExistingUSBLCustomer","existingSyscoCustomer","existingSyscoCustomerNote","handleChangeForResale","isResale","_renderResaleDropDown","styles","borderColor","reSaleOrTaxExempt","onFocus","e","onBlur","handleChangeSubmitTax","dbaValue","_renderSubmitTaxDropDown","dba","onKeyUp","placeholder","_renderSalesTaxWarning","salesTaxWarningDetail","headingForWarning","handleChangeStyleOfBusiness","_renderStyleOfBusiness","styleOfBusiness","styleOfBusinessRef","styleOfBusinesses","length","RECID","StyleOfBusinessName","handleTaxIdChange","taxId","_renderTaxInput","handleChangeForStore","_renderStore","allStores","singleStore","OrgUnitNumber","OrgUnitName","_onAddressChange","errors","currentAddress","newForm","formItems","addressItem","find","item","address","addressHasErrors","showAddressErrors","updatedArray","filter","currentInput","match","_newPartner$Address","context","firstName","_getItem","lastName","companyName","companyEmail","companyAddress","newTaxStatus","SignUpVia","selectedStyleOfBusiness","toString","newPartner","ProspectTypeValue","ExtensionProperties","Key","Value","StringValue","BooleanValue","uploadedFileNamesBlob","withTimeStamp","JSON","stringify","docuSignWebFormId","docuSignInstanceId","_newPartner$Address2","Phone","replace","createProspectAsync","callerContext","actionContext","then","successPageURL","confirmationLink","linkUrl","destinationUrl","getUrlSync","window","location","catch","_onChangeStyleOfBusiness","styleOfBusinessTaxExemptionHeading","styleOfBusinessTaxExemptionMessage","isStyleOfBusinessChangeModal","_onValidationSuccess","_this$state$existingU","orgName","email","accountFoundAgainst","existingUserSyscoValidationTrueModal","existingUserSyscoValidationResult","OrganizationName","isExistingUserSyscoreroutingLoading","_createUserAccount","async","account","createExistingCustomerUserAsync","val","Success","_onValidationError","emailAlreadyExists","credentialsError","accountNotFoundAgainst","existingUserSyscoValidationFalseModal","getValidationErrorMessage","_onSubmit","isExistingUserSyscoValidationResultLoading","streetAddress","zipCode","_zipCode$value$trim","_zipCode$value","_streetAddress$value$","_streetAddress$value","validatedData","validateOrganizationAsync","trim","_validatedData$Organi","EmailAlreadyExists","IsAccountFound","AccountValidation","ValidationResult","error","console","_selectedStore$State","_selectedStyleOfBusin","selectedStore","customTaxExempted","taxExemptionCheckAsync","State","moduleUpdating","_customTaxExempted$Ap","isTaxEempted","ApplicableForTaxExemption","preventDefault","docuSignWebFormURL","docuSignInstanceToken","integrationKey","DocuSign","webFormOptions","instanceToken","hideProgressBar","fontColor","iframeStyles","minHeight","autoResizeHeight","showFinishLater","webFormWidget","webforms","url","options","addEventListener","origin","includes","data","eventType","content","sessionEndType","response","refreshWebFormInstanceTokenAsync","FormInstanceToken","InstanceID","FormURL","IntegrationKey","on","mount","docusignContainerRef","current","fetchDocuSignData","sellerName","phoneNumber","_this$_getItem$value","_this$_getItem","_sellerAddress$addres","_sellerAddress$addres2","_sellerAddress$addres3","_sellerAddress$addres4","sellerAddress","preFilledFields","TaxId","StyleOfBusiness","StatePurchaser","CityPurchaser","City","AddressPurchaser","Street","ZipCodePurchaser","FullName","AddressSeller","CitySeller","StateSeller","ZipCodeSeller","Zip","PhoneNumber","NameOfPurchaser","Title","Seller","simpleUpload","createDefaultFormInstanceTokenAsync","createWebFormInstanceTokenAsync","WebFormID","_renderModal","modalLabel2","docuSignButtonLabel","notReadyText","exitLinkText","finishItLater","docuUploadButtonLabel","modalLabel1","textDecoration","_onCancel","cleanForm","forEach","isAddress","arguments","_addedReference","taxStatus","blobFileNames","plainNames","filesToUpload","sasToken","blobStorageURL","uploading","uploadProgress","getTelemetryObject","request","telemetryPageName","friendlyName","telemetry","_this$formChildRefere","getAllStyles","getAllStylesOfBusinessAsync","getAllStores","getOrgUnitLocationsByArea","GetOrgUnitLocationsByAreaInput","OrgUnitAvailability","OrgUnitLocation","push","focus","shouldComponentUpdate","nextProps","nextState","render","viewProps","_objectSpread","businessSignUp","moduleProps","ContainerWrapper","existingUSBLCustomer","editProps","onEdit","requestContext","businessSignUpForm","_renderForm","renderReSaleDropDown","renderSubmitTaxDropDown","renderSalesTaxWarning","renderStyleOfBusiness","renderTaxNode","renderStore","renderTermsAndConditions","renderTaxPolicy","renderModal","emailPolicy","phonePolicy","renderExitModal","existingValidationErrorModal","existingValidationSuccessModal","renderStyleChangeModal","renderView","slots","signUpButtonArialabel","signUpButtonText","cancelButtonArialabel","cancelButtonText","partialAddressErrorMessage","addressSlot","form","FormWrapper","items","_onInputChange","bind","buttons","disclaimer","newFormFields","accountNotFound","BusinessSignUpItem","Node","alignContent","Module","Comment","button","binding","modules","dataActions","c","require","$type","da","iNM","ns","n","p","pdp","md","__bindings__","viewDictionary","cn","module","exports","ReactDOM","call","fixRegExpWellKnownSymbolLogic","anObject","isNullOrUndefined","toLength","requireObjectCoercible","getMethod","advanceStringIndex","regExpExec","MATCH","nativeMatch","maybeCallNative","regexp","O","matcher","string","rx","S","res","done","global","fullUnicode","unicode","lastIndex","result","A","matchStr"],"sourceRoot":""}