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AAAA,UAAS,CACNjP,KAAMnC,KAAKL,MAAMsF,OAAOkM,YACxBE,MAAOrR,KAAKL,MAAMsF,OAAOoM,MAAK,aAClBrR,KAAKL,MAAMsF,OAAOkB,UAC9BxC,UAAU,iBACViM,UAAW5P,KAAK4P,UAChB1J,KAAMlG,KAAKL,MAAMsF,OAAOiM,cACxB9K,iBAAkBpG,KAAKoG,oBAZ3BpG,KAAKL,MAAMI,UAAUc,MAAM,oEACpB,OAiBnB,qrBChCA,MAAMyQ,UAAkB7R,EAAAA,cAAxBC,cAAAA,SAAAA,WAiBW,KAAA6R,iBAAoBrF,GAA0ClM,KAAKL,MAAMsF,OAAOd,QAAU+H,EAAMtI,OAAO4D,MAhBvGtG,SACH,MAAM,QAAEiD,EAAF,UAAWR,GAAc3D,KAAKL,MAAMsF,OACpCiB,EAAO/B,GACT1E,EAAAA,cAAC+R,EAAAA,GAA0B,CACvBtL,KAAM/B,EACNyL,UAAW,CAAEC,OAAQ7P,KAAKuR,iBAAkB/Q,eAAgBR,KAAKL,MAAME,QAAQsP,WAGjFsC,EAAkB,OACjBzR,KAAKL,OADY,IAEpBwE,QAAS+B,EACTvC,UAAWqD,GAAAA,CAAW,gBAAiBrD,KAE3C,OAAO3D,KAAKL,MAAM+B,WAAW+P,IAMrC,wECjCA,MAMA,EANqD9R,GACjDF,EAAAA,cAAAA,MAAAA,OAAAA,OAAAA,CAAKkE,UAAWhE,EAAMgE,UAAWD,GAAI/D,EAAM+D,IAAQ/D,EAAM+R,uBAAuB/R,IAC3EA,EAAMwE","sources":["webpack://Msdyn365.Commerce.Online/./src/modules/dyn-bioz-micro-badge-v1/dyn-bioz-micro-badge-v1.tsx?502a","webpack://Msdyn365.Commerce.Online/./src/modules/dyn-bioz-micro-badge-v1/dyn-bioz-micro-badge-v1.view.tsx?e7d6","webpack://Msdyn365.Commerce.Online/./src/modules/dyn-wordpress-page/dyn-wordpress-page.tsx?c283","webpack://Msdyn365.Commerce.Online/./src/modules/dyn-wordpress-page/dyn-wordpress-page.view.tsx?6a0f","webpack://Msdyn365.Commerce.Online/./src/themes/dyn-tebutheme/views/ratings-histogram.view.tsx?7769","webpack://Msdyn365.Commerce.Online/./src/modules/business-sign-up/components/sign-up-button.tsx?e1d9","webpack://Msdyn365.Commerce.Online/./src/modules/business-sign-up/components/sign-up-error.tsx?7f8a","webpack://Msdyn365.Commerce.Online/./src/modules/business-sign-up/components/sign-up-input.tsx?5bbe","webpack://Msdyn365.Commerce.Online/./src/modules/business-sign-up/components/sign-up-label.tsx?4988","webpack://Msdyn365.Commerce.Online/./src/modules/business-sign-up/components/sign-up-radio-button.tsx?f8c1","webpack://Msdyn365.Commerce.Online/./src/modules/business-sign-up/business-sign-up.tsx?13a2","webpack://Msdyn365.Commerce.Online/./src/modules/business-sign-up/business-sign-up.view.tsx?e2f8","webpack://Msdyn365.Commerce.Online/./src/modules/back-top-footer/back-top-footer.tsx?f47e","webpack://Msdyn365.Commerce.Online/./src/modules/html-block/html-block.tsx?c080","webpack://Msdyn365.Commerce.Online/./src/modules/html-block/html-block.view.tsx?b072"],"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\nimport * as React from 'react';\r\n\r\nimport { IDynBiozMicroBadgeV1Data } from './dyn-bioz-micro-badge-v1.data';\r\nimport { IDynBiozMicroBadgeV1Props } from './dyn-bioz-micro-badge-v1.props.autogenerated';\r\nimport { reaction } from 'mobx'; //computed\r\nimport { observer } from 'mobx-react';\r\nimport { AttributesForSelectedVariantInput, getAttributesForSelectedVariant } from '@msdyn365-commerce-modules/product-specification';\r\n\r\nexport interface IDynBiozMicroBadgeV1ViewProps extends IDynBiozMicroBadgeV1Props {\r\n catalogNumber?: string;\r\n}\r\n\r\n/**\r\n *\r\n * DynBiozMicroBadgeV1 component\r\n * @extends {React.PureComponent>}\r\n */\r\n@observer\r\nclass DynBiozMicroBadgeV1 extends React.PureComponent> {\r\n public constructor(props: IDynBiozMicroBadgeV1Props) {\r\n super(props);\r\n }\r\n\r\n public async componentDidMount(): Promise {\r\n const { context, data, telemetry } = this.props;\r\n\r\n reaction(\r\n () => (data.product.result ? data.product.result.RecordId : null),\r\n () => {\r\n if (context && data.product.result) {\r\n const actionInput = new AttributesForSelectedVariantInput(\r\n data.product.result.RecordId,\r\n\r\n +context.actionContext.requestContext.apiSettings.channelId,\r\n data.product.result\r\n );\r\n\r\n getAttributesForSelectedVariant(actionInput, this.props.context.actionContext).catch((error: Error) => {\r\n telemetry.error(error.message);\r\n telemetry.debug('Unable to update attributes for Product');\r\n telemetry.error(error.message);\r\n });\r\n }\r\n }\r\n );\r\n }\r\n\r\n public shouldComponentUpdate(nextProps: IDynBiozMicroBadgeV1Props): boolean {\r\n if (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 | null {\r\n const { data } = this.props;\r\n\r\n const catalogNumber =\r\n data.productSpecificationData.result?.find(attribute => attribute.Name === 'ERP_Bioz_BadgeRepresentative')?.TextValue ?? '';\r\n let viewProps = {\r\n ...this.props,\r\n catalogNumber: catalogNumber\r\n };\r\n return this.props.renderView(viewProps);\r\n }\r\n}\r\n\r\nexport default DynBiozMicroBadgeV1;\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 { IDynBiozMicroBadgeV1ViewProps } from './dyn-bioz-micro-badge-v1';\r\n\r\nexport const useScriptDynBiozMicroBadgeV1 = (catalogNumberFormatted: string, position: string) => {\r\n React.useEffect(() => {\r\n // Adding the CSS link\r\n const cssLink1: HTMLLinkElement = document.createElement('link');\r\n cssLink1.rel = 'stylesheet';\r\n cssLink1.href = 'https://cdn.bioz.com/assets/font-awesome-reg.css';\r\n document.head.appendChild(cssLink1);\r\n\r\n const cssLink2: HTMLLinkElement = document.createElement('link');\r\n cssLink2.rel = 'stylesheet';\r\n cssLink2.href = 'https://cdn.bioz.com/assets/tooltipster.css';\r\n document.head.appendChild(cssLink2);\r\n\r\n const cssLink3: HTMLLinkElement = document.createElement('link');\r\n cssLink3.rel = 'stylesheet';\r\n cssLink3.href = 'https://cdn.bioz.com/assets/tooltipster-theme2.css';\r\n document.head.appendChild(cssLink3);\r\n\r\n const cssLink4: HTMLLinkElement = document.createElement('link');\r\n cssLink4.rel = 'stylesheet';\r\n cssLink4.href = 'https://cdn.bioz.com/assets/v_widget-2.5.css';\r\n document.head.appendChild(cssLink4);\r\n\r\n // Scripts\r\n const scriptJQuery: HTMLScriptElement = document.createElement('script');\r\n scriptJQuery.src = 'https://cdn.bioz.com/assets/jquery-2.2.4.js';\r\n\r\n const script1: HTMLScriptElement = document.createElement('script');\r\n script1.src = 'https://cdn.bioz.com/assets/bioz-w-api-2.5.min.js';\r\n\r\n const script2: HTMLScriptElement = document.createElement('script');\r\n script2.src = 'https://cdn.bioz.com/assets/v_widget-2.5.tebubio.js';\r\n\r\n const script3: HTMLScriptElement = document.createElement('script');\r\n script3.src = 'https://cdn.bioz.com/assets/tooltipster.js';\r\n\r\n const inlineScript: HTMLScriptElement = document.createElement('script');\r\n inlineScript.innerHTML = `\r\n var _type = \"commercial\";\r\n var _company = \"19338\";\r\n var _vendor = \"tebu-bio sa\";\r\n var _vendor_partner_color = \"#0F37AF\";\r\n var _form_url = \"https://back-badge-8.bioz.com\";\r\n var _key = \"\";\r\n var _form_mobile = false;\r\n `;\r\n\r\n // Promises to ensure scripts are loaded\r\n const promiseJQuery = new Promise(resolve => {\r\n scriptJQuery.addEventListener('load', resolve);\r\n });\r\n\r\n // Last script to be loaded\r\n const addInlineScript2 = () => {\r\n const inlineScript2: HTMLScriptElement = document.createElement('script');\r\n inlineScript2.innerHTML = `\r\n var widget_micro_obj = new v_widget_obj(\"s\", 1);\r\n widget_micro_obj.request_catalog_number_widget_data_internal(\"${catalogNumberFormatted}\", \"${catalogNumberFormatted}\");\r\n `;\r\n document.body.appendChild(inlineScript2);\r\n };\r\n\r\n document.head.appendChild(scriptJQuery);\r\n\r\n // Once scriptJQuery is loaded\r\n promiseJQuery\r\n .then(() => {\r\n document.head.appendChild(script1);\r\n document.head.appendChild(script3);\r\n document.body.appendChild(inlineScript);\r\n\r\n // Load script2 after jQuery and wait for script 2 is fully loded\r\n return new Promise(resolve => {\r\n script2.addEventListener('load', resolve);\r\n document.body.appendChild(script2);\r\n });\r\n })\r\n .then(addInlineScript2); // Once script2 is loaded, add the inlineScript2;\r\n\r\n return () => {\r\n document.head.removeChild(scriptJQuery);\r\n document.head.removeChild(cssLink1);\r\n document.head.removeChild(cssLink2);\r\n document.head.removeChild(cssLink3);\r\n document.head.removeChild(script1);\r\n document.head.removeChild(cssLink4);\r\n document.head.removeChild(script2);\r\n document.head.removeChild(script3);\r\n document.body.removeChild(inlineScript);\r\n };\r\n }, []);\r\n};\r\n\r\nexport default (props: IDynBiozMicroBadgeV1ViewProps) => {\r\n const { catalogNumber } = props;\r\n const catalogNumberFormatted = catalogNumber?.replace(/[ .]/g, '_');\r\n const biozBlock = catalogNumberFormatted ? (\r\n <>\r\n
\r\n
Specification
\r\n
\r\n
\r\n
\r\n \r\n Powered by Bioz\r\n \r\n
\r\n
\r\n
\r\n {useScriptDynBiozMicroBadgeV1(catalogNumberFormatted ?? '', 'wrapper-bioz-title')}\r\n \r\n ) : (\r\n
Specification
\r\n );\r\n return <>{biozBlock};\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\n\r\nimport { IDynWordpressPageData } from './dyn-wordpress-page.data';\r\nimport { IDynWordpressPageProps } from './dyn-wordpress-page.props.autogenerated';\r\nimport * as Msdyn365 from '@msdyn365-commerce/core';\r\n\r\nexport interface IDynWordpressPageViewProps extends IDynWordpressPageProps {\r\n postNodes: React.ReactNode;\r\n}\r\n\r\nexport interface PageGQL {\r\n content: string;\r\n date: Date;\r\n slug: string;\r\n title: string;\r\n status: string;\r\n databaseId: number;\r\n}\r\n\r\nexport interface SeoPressData {\r\n title: string;\r\n description: string;\r\n canonical: string;\r\n og: {\r\n title: string;\r\n description: string;\r\n image: string;\r\n };\r\n twitter: {\r\n title: string;\r\n description: string;\r\n image: string;\r\n };\r\n robots: {\r\n noindex: boolean;\r\n nofollow: boolean;\r\n noodp: boolean;\r\n noarchive: boolean;\r\n nosnippet: boolean;\r\n noimageindex: boolean;\r\n };\r\n redirections: {\r\n enabled: boolean;\r\n status: string;\r\n type: number;\r\n value: string;\r\n };\r\n}\r\n\r\nexport interface PageGQLWithSeo {\r\n post: PageGQL | null;\r\n seo: SeoPressData | null;\r\n}\r\n\r\n/**\r\n *\r\n * DynWordpressPost component\r\n * @extends {React.PureComponent>}\r\n */\r\n\r\nclass DynWordpressPage extends React.PureComponent> {\r\n public _getpostNodes(): React.ReactNode | undefined {\r\n return (\r\n
\r\n {/*\r\n // WP REST API\r\n this.props.data.wpPost.result?.title.rendered\r\n // WP GRAPHQL\r\n this.props.data.wpPost.result?.title\r\n */}\r\n
\r\n \r\n );\r\n }\r\n\r\n public render(): JSX.Element | null {\r\n const dynWordpressPostProps: IDynWordpressPageViewProps = {\r\n ...this.props,\r\n postNodes: this._getpostNodes()\r\n };\r\n\r\n return this.props.renderView(dynWordpressPostProps);\r\n }\r\n}\r\n\r\nexport default DynWordpressPage;\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// import { HtmlHeadInclude } from '@msdyn365-commerce/core-internal';\r\nimport * as React from 'react';\r\nimport { IDynWordpressPageViewProps } from './dyn-wordpress-page';\r\n\r\n// First string is your URL\r\n// Second string can be head or body\r\n// Third parameter is true or false.\r\nexport const useScript = (url: string, position: string, async: boolean) => {\r\n React.useEffect(() => {\r\n const placement: Element | null = document.querySelector(position);\r\n const script: HTMLScriptElement = document.createElement('script');\r\n\r\n script.src = url;\r\n script.async = typeof async === 'undefined' ? false : async;\r\n\r\n placement?.appendChild(script);\r\n\r\n return () => {\r\n placement?.removeChild(script);\r\n };\r\n });\r\n};\r\n\r\nexport const useMetaLink = (rel: string, media: string, href: string) => {\r\n React.useEffect(() => {\r\n const placement: Element | null = document.querySelector('head');\r\n const link = document.createElement('link');\r\n\r\n link.setAttribute('rel', rel);\r\n link.setAttribute('media', media);\r\n link.setAttribute('href', href);\r\n\r\n placement?.appendChild(link);\r\n\r\n return () => {\r\n placement?.removeChild(link);\r\n };\r\n });\r\n};\r\n\r\nexport default (props: IDynWordpressPageViewProps) => {\r\n const { postNodes, data } = props;\r\n\r\n return (\r\n <>\r\n {data.wpPost.result?.post?.databaseId &&\r\n useMetaLink(\r\n 'stylesheet',\r\n 'all',\r\n `${props.config.blogUrl}/wp-content/uploads/elementor/css/post-${data.wpPost.result?.post?.databaseId}.css`\r\n )}\r\n {/* \r\n {data.wpPost.result?.post?.databaseId && (\r\n \r\n )}\r\n */}\r\n {postNodes}\r\n \r\n );\r\n};\r\n","/*--------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * See License.txt in the project root for license information.\r\n *--------------------------------------------------------------*/\r\n\r\n/* eslint-disable no-duplicate-imports */\r\nimport { IHistogramItemViewProps, IRatingsHistogramViewProps } from '@msdyn365-commerce-modules/ratings-reviews';\r\nimport { Module, Node } from '@msdyn365-commerce-modules/utilities';\r\nimport * as React from 'react';\r\n\r\nconst RatingsHistogramView: React.FC = props => {\r\n const { heading, histogramItems, histogramProps, moduleProps } = props;\r\n return (\r\n \r\n {heading}\r\n \r\n {histogramItems.map(item => {\r\n return histogramItem(item);\r\n })}\r\n \r\n \r\n );\r\n};\r\n\r\nconst histogramItem = (props: IHistogramItemViewProps) => {\r\n return (\r\n \r\n {props.starLabel}\r\n {props.bar}\r\n {props.percentage}\r\n \r\n );\r\n};\r\n\r\nexport default RatingsHistogramView;\r\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport { Button, getPayloadObject, getTelemetryAttributes, ITelemetryContent } from '@msdyn365-commerce-modules/utilities';\nimport * as React from 'react';\n\nexport interface IBusinessSignUpButtonProps {\n id?: string;\n className: string;\n text: string;\n ariaLabel: string;\n disabled?: boolean;\n link?: string;\n telemetryContent: ITelemetryContent;\n onClick?(event: React.MouseEvent): void;\n}\n\nexport const SignUpButton: React.FC = ({\n id,\n className,\n text,\n ariaLabel,\n telemetryContent,\n disabled,\n link,\n onClick\n}) => {\n const payLoad = getPayloadObject('click', telemetryContent, text);\n const attributes = getTelemetryAttributes(telemetryContent, payLoad);\n return (\n \n {text}\n \n );\n};\n\nexport default SignUpButton;\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport classnames from 'classnames';\nimport * as React from 'react';\n\nexport interface IBusinessSignUpErrorProps {\n id?: string;\n className: string;\n type?: string;\n message?: string;\n}\n\nexport const SignUpError: React.FC = ({ id, className, type = 'page', message }) => {\n const errorClassName = `${className}__${type}-error`;\n\n return (\n \n

{message}

\n \n );\n};\n\nexport default SignUpError;\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport { INodeProps } from '@msdyn365-commerce-modules/utilities';\nimport * as React from 'react';\n\nimport { InputType } from '../business-sign-up';\n\nexport interface IBusinessSignUpInputProps {\n id?: string;\n type: InputType;\n value?: string;\n pattern?: string;\n className: string;\n maxLength?: string;\n isRequired: boolean;\n fieldReference?: React.RefObject;\n onChange?(event: React.ChangeEvent): void;\n}\n\nexport interface IBusinessSignUpInput {\n key: string;\n AddressItem: INodeProps;\n label: React.ReactNode;\n alert: React.ReactNode;\n input: React.ReactNode;\n}\n\nconst GetMaxLength = (maxLength?: string): number | undefined => {\n if (maxLength) {\n const parsedMaxLength = Number.parseInt(maxLength, 10);\n if (!isNaN(parsedMaxLength)) {\n return parsedMaxLength;\n }\n }\n\n return undefined;\n};\n\nexport const SignUpInput: React.FC = ({\n id,\n type,\n value,\n pattern,\n className,\n maxLength,\n isRequired,\n onChange,\n fieldReference\n}) => {\n if (type === InputType.TextArea) {\n return (\n \n );\n }\n\n return (\n \n );\n};\n\nexport default SignUpInput;\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport * as React from 'react';\n\nexport interface IBusinessSignUpLabelProps {\n id: string;\n forId: string;\n className: string;\n text: string;\n}\n\nexport const SignUpLabel: React.FC = ({ id, forId, className, text }) => (\n \n);\n\nexport default SignUpLabel;\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport * as React from 'react';\n\nexport interface IBusinessSignUpRadioButtonProps {\n id: string;\n isRequired: boolean;\n options: IBusinessSignUpRadioButtonOptionProps[];\n}\n\nexport interface IBusinessSignUpRadioButtonOptionProps {\n id: string;\n name: string;\n value: string;\n label: string;\n className: string;\n onChange(event: React.ChangeEvent): void;\n}\n\nexport const BusinessSignUpRadioButtonOption: React.FC = props => {\n const { id, name, value, label, className, onChange } = props;\n return (\n
\n \n \n
\n );\n};\n\nexport default BusinessSignUpRadioButtonOption;\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport { ContentEditableEvent, getUrlSync, RichTextComponent, Text } from '@msdyn365-commerce/core';\nimport { Address, BusinessPartnerProspect } from '@msdyn365-commerce/retail-proxy';\nimport { createProspectAsync } from '@msdyn365-commerce/retail-proxy/dist/DataActions/BusinessPartnersDataActions.g';\nimport { EmailRegex } from '@msdyn365-commerce-modules/retail-actions';\nimport { getTelemetryObject, IModuleProps, INodeProps, ITelemetryContent } from '@msdyn365-commerce-modules/utilities';\nimport classnames from 'classnames';\nimport * as React from 'react';\n\nimport { IBusinessSignUpConfig, IBusinessSignUpProps } from './business-sign-up.props.autogenerated';\nimport { SignUpButton, SignUpError, SignUpInput, SignUpLabel } from './components';\nimport { IBusinessSignUpRadioButtonOptionProps, BusinessSignUpRadioButtonOption } from './components/sign-up-radio-button';\n\nexport interface IBusinessSignUpExtendedProps extends IBusinessSignUpProps {\n formItems?: IFormItem[];\n}\n\nexport interface IBusinessSignUpItem {\n wrapper: INodeProps;\n isAddressInput?: boolean;\n id: string;\n label: React.ReactNode;\n errorMessage: React.ReactNode;\n input?: React.ReactNode;\n}\n\nexport interface IBusinessState {\n isReady: boolean;\n formItems: IFormItem[];\n addressHasErrors: boolean;\n showAddressErrors: boolean;\n hasSubmitErrors: boolean;\n}\n\nexport interface IBusinessSignUpLocalAccount {\n FormWrapper: INodeProps;\n items: IBusinessSignUpItem[];\n buttons: React.ReactNode[];\n errorMessage: React.ReactNode[];\n disclaimer: React.ReactNode;\n}\n\nexport interface IBusinessSignUpViewProps {\n className: string;\n businessSignUp: IModuleProps;\n ContainerWrapper: INodeProps;\n heading: React.ReactNode;\n businessSignUpForm: IBusinessSignUpLocalAccount;\n formItems: IFormItem[];\n}\n\nexport interface IFormItem {\n id: string;\n type: InputType;\n label: string;\n value: string;\n maxChars?: string;\n isRequired: boolean;\n pattern?: string;\n address?: Address;\n customClass?: string;\n fieldReference?: React.RefObject;\n radioButtonOptions?: IBusinessSignUpRadioButtonOptionProps[];\n radioButtonGroupClass?: string;\n}\n\nexport enum InputType {\n // eslint-disable-next-line @typescript-eslint/no-shadow -- Text enum doesn't override the imported Text\n Text = 'text',\n Address = 'address',\n Email = 'email',\n TextArea = 'textarea',\n RadioButton = 'radiobutton'\n}\n\nexport enum InputID {\n FirstName = 'FirstName',\n LastName = 'LastName',\n Email = 'CompanyEmail',\n CompanyName = 'CompanyName',\n Address = 'CompanyAddress',\n JobTitle = 'JobTitle',\n Size = 'CompanySize',\n Department = 'Department',\n Comment = 'Comment',\n ProspectType = 'ProspectType'\n}\n\nexport const renderInputSection = (\n inputs: IFormItem[],\n className: string,\n needToReset: boolean,\n onInputChange: (event: React.ChangeEvent) => void,\n showErrors: boolean,\n addressForm?: React.ReactNode,\n updateAddress?: (errors: boolean, currAddress?: Address) => void\n): IBusinessSignUpItem[] => {\n return inputs.map((element, index) => {\n const {\n id,\n type,\n label,\n maxChars,\n isRequired,\n pattern,\n customClass,\n value,\n fieldReference,\n radioButtonOptions,\n radioButtonGroupClass\n } = element;\n\n const baseSignUpItem: IBusinessSignUpItem = {\n wrapper: {\n className: classnames(className, `${className}-${id}`, customClass)\n },\n id,\n label: ,\n errorMessage: \n };\n\n if (type === InputType.Address) {\n if (addressForm) {\n baseSignUpItem.isAddressInput = true;\n baseSignUpItem.input = (\n <>\n {React.cloneElement(addressForm as React.ReactElement, {\n updateForm: updateAddress,\n hasError: showErrors,\n isRequired: isRequired === undefined ? false : isRequired,\n resetAddress: needToReset\n })}\n \n );\n } else {\n // If the address slot is not filled, remove this input from the form\n inputs.splice(index, 1);\n }\n } else if (type === InputType.RadioButton) {\n baseSignUpItem.input = (\n
\n {radioButtonOptions &&\n radioButtonOptions.map((element, index) => {\n return ;\n })}\n
\n );\n } else {\n baseSignUpItem.input = (\n \n );\n }\n\n return baseSignUpItem;\n });\n};\n\n/**\n *\n * Business Request Form Modules\n * Form that a business can use to submit a request to become a partner with Microsoft.\n * @extends {React.Component>}\n */\nclass BusinessSignUp extends React.Component {\n private readonly moduleClassName: string = 'ms-business-sign-up';\n private readonly prospectRadioButtonName: string = 'business-sign-up-radio-button';\n\n // Used as default data\n // eslint-disable-next-line @typescript-eslint/member-ordering\n public BusinessSignUpDefaultInputs: IFormItem[] = [\n {\n id: InputID.ProspectType,\n type: InputType.RadioButton,\n label: this.props.resources.prospectTypeLabel,\n value: '',\n isRequired: true,\n customClass: 'width-100',\n radioButtonGroupClass: 'radio-option-container',\n radioButtonOptions: [\n {\n id: `${InputID.ProspectType}-buyer`,\n name: this.prospectRadioButtonName,\n value: '1', // Buyer\n label: this.props.resources.prospectTypeBuyerLabel,\n className: `${this.moduleClassName}__form-item-radio-button-option`,\n onChange: this._onInputChange.bind(this)\n },\n {\n id: `${InputID.ProspectType}-seller`,\n name: this.prospectRadioButtonName,\n value: '2', // Seller\n className: `${this.moduleClassName}__form-item-radio-button-option`,\n label: this.props.resources.prospectTypeSellerLabel,\n onChange: this._onInputChange.bind(this)\n }\n ]\n },\n {\n id: InputID.FirstName,\n type: InputType.Text,\n label: this.props.resources.firstNameLabel,\n value: '',\n isRequired: true,\n customClass: 'width-25'\n },\n {\n id: InputID.LastName,\n type: InputType.Text,\n label: this.props.resources.lastNameLabel,\n value: '',\n isRequired: true,\n customClass: 'width-25'\n },\n {\n id: InputID.Email,\n type: InputType.Email,\n label: this.props.resources.emailAddressLabel,\n value: '',\n isRequired: true,\n pattern: EmailRegex.defaultRegex.source,\n customClass: 'width-50'\n },\n {\n id: InputID.CompanyName,\n type: InputType.Text,\n label: this.props.resources.companyLabel,\n value: '',\n isRequired: true,\n customClass: 'width-50'\n },\n {\n id: InputID.Department,\n type: InputType.Text,\n label: this.props.resources.departmentLabel,\n value: '',\n isRequired: false,\n customClass: 'width-50'\n },\n {\n id: InputID.JobTitle,\n type: InputType.Text,\n label: this.props.resources.jobTitleLabel,\n value: '',\n isRequired: false,\n customClass: 'width-50'\n },\n {\n id: InputID.Size,\n type: InputType.Text,\n label: this.props.resources.companySizeLabel,\n value: '',\n isRequired: false,\n customClass: 'width-50'\n },\n {\n id: InputID.Address,\n type: InputType.Address,\n label: this.props.resources.companyAddressLabel,\n value: '',\n isRequired: false,\n customClass: 'width-100'\n },\n {\n id: InputID.Comment,\n type: InputType.TextArea,\n label: this.props.resources.commentLabel,\n value: '',\n isRequired: false,\n customClass: 'width-100'\n }\n ];\n\n private readonly formChildReference: React.RefObject = React.createRef();\n\n private needsToReset: boolean = false;\n\n private readonly telemetryContent: ITelemetryContent;\n\n constructor(props: IBusinessSignUpExtendedProps) {\n super(props);\n\n this.state = {\n isReady: false,\n formItems: this.props.formItems || this._addedReference(),\n addressHasErrors: false,\n showAddressErrors: false,\n hasSubmitErrors: false\n };\n this.telemetryContent = getTelemetryObject(\n this.props.context.request.telemetryPageName!,\n this.props.friendlyName,\n this.props.telemetry\n );\n }\n\n public componentDidMount(): void {\n this.formChildReference.current?.focus();\n }\n\n public shouldComponentUpdate(nextProps: IBusinessSignUpExtendedProps, nextState: IBusinessState): boolean {\n if (this.state === nextState && this.props.data === nextProps.data) {\n return false;\n }\n return true;\n }\n\n public render(): JSX.Element {\n const { config } = this.props;\n const { formItems } = this.state;\n const { className, heading } = config;\n\n const viewProps = {\n ...this.props,\n businessSignUp: {\n moduleProps: this.props,\n className: classnames(this.moduleClassName, className)\n },\n ContainerWrapper: {\n className: `${this.moduleClassName}__container`\n },\n heading: (\n \n ),\n businessSignUpForm: this._renderForm(),\n formItems\n };\n\n return this.props.renderView(viewProps) as React.ReactElement;\n }\n\n /**\n * Handle the heading change event.\n * @param event - Content Editable Event.\n */\n public handleHeadingChange = (event: ContentEditableEvent): void => {\n this.props.config.heading.text = event.target.value;\n };\n\n private _renderForm(): IBusinessSignUpLocalAccount {\n const { config, resources, slots } = this.props;\n const { showAddressErrors, hasSubmitErrors, isReady, formItems } = this.state;\n const {\n signUpButtonArialabel,\n signUpButtonText,\n cancelButtonArialabel,\n cancelButtonText,\n errorMessage,\n partialAddressErrorMessage\n } = resources;\n const addressForm = (slots && slots.addressSlot && slots.addressSlot.length > 0 && slots.addressSlot[0]) || undefined;\n\n const form = {\n FormWrapper: {\n className: `${this.moduleClassName}__form `\n },\n items: renderInputSection(\n formItems,\n `${this.moduleClassName}__form-item`,\n this.needsToReset,\n this._onInputChange.bind(this),\n showAddressErrors,\n addressForm,\n this._onAddressChange\n ),\n buttons: [\n ,\n \n ],\n errorMessage: [\n hasSubmitErrors && ,\n showAddressErrors && (\n \n )\n ],\n disclaimer: config.disclaimer && (\n \n )\n };\n\n if (this.needsToReset) {\n this.needsToReset = false;\n }\n\n return form;\n }\n\n private _onInputChange(event: React.ChangeEvent): void {\n const newForm = this.state.formItems;\n newForm.forEach(item => {\n if (item.type === InputType.RadioButton && event.target.name === this.prospectRadioButtonName) {\n item.value = event.target.value;\n } else if (item.id === event.target.id) {\n item.value = event.target.value;\n }\n });\n\n // Check if form is ready, update state object with latest values, values have changed so reset hasSubmitErrros\n this.setState({\n isReady: this._isFormReady(),\n formItems: newForm,\n hasSubmitErrors: false\n });\n }\n\n private _addedReference(): IFormItem[] {\n const newFormFields = this.BusinessSignUpDefaultInputs;\n newFormFields[0].fieldReference = this.formChildReference;\n return newFormFields;\n }\n\n private readonly _onAddressChange = (errors: boolean, currentAddress?: Address): void => {\n // Find address item\n const newForm = this.state.formItems;\n const addressItem = newForm.find(item => {\n return item.type === InputType.Address;\n });\n\n // If found --> set to currentAddress\n if (addressItem) {\n addressItem.address = currentAddress;\n\n // Update state with new values and set errors to false if address is not required field\n this.setState(\n {\n formItems: newForm,\n addressHasErrors: errors,\n showAddressErrors: false\n },\n () => {\n this.setState({ isReady: this._isFormReady() });\n }\n );\n }\n };\n\n private readonly _isFormReady = (): boolean => {\n const { formItems } = this.state;\n\n for (const currentInput of formItems) {\n // Will return FALSE if:\n // - input field is required\n // IF is address AND addressHasErrors === true\n // ELSE value is undefined OR empty\n // OR\n // - pattern provided and value does not match pattern\n\n if (currentInput.isRequired) {\n if (currentInput.type === InputType.Address) {\n if (this.state.addressHasErrors) {\n return false;\n }\n } else if (currentInput.value === undefined || currentInput.value === '') {\n return false;\n }\n }\n if (currentInput.pattern !== undefined && currentInput.value.match(currentInput.pattern) === null) {\n return false;\n }\n }\n\n return true;\n };\n\n private readonly _onSubmit = (event: React.MouseEvent) => {\n if (this.state.addressHasErrors) {\n this.setState({\n showAddressErrors: true\n });\n\n event.preventDefault();\n return;\n }\n\n const { config, context } = this.props;\n\n // Check for matching id and if not empty\n const firstName = this._getItem(InputID.FirstName);\n const lastName = this._getItem(InputID.LastName);\n const companyName = this._getItem(InputID.CompanyName);\n const companyEmail = this._getItem(InputID.Email);\n const companyAddress = this._getItem(InputID.Address, true);\n const jobTitle = this._getItem(InputID.JobTitle);\n const department = this._getItem(InputID.Department);\n const companySize = this._getItem(InputID.Size);\n const comments = this._getItem(InputID.Comment);\n const prospectType = this._getItem(InputID.ProspectType);\n\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\n if (companyEmail && companyEmail.value && companyAddress && companyAddress.address) {\n companyAddress.address.Email = companyEmail.value;\n }\n\n const newPartner: BusinessPartnerProspect = {\n FirstName: firstName && firstName.value,\n LastName: lastName && lastName.value,\n CompanyName: companyName && companyName.value,\n Address: companyAddress && companyAddress.address && companyAddress.address,\n JobTitle: jobTitle && jobTitle.value,\n Department: department && department.value,\n CompanySize: (companySize && Number.parseInt(companySize.value, 10)) || 0,\n Comments: comments && comments.value,\n ProspectTypeValue: (prospectType && Number.parseInt(prospectType.value, 10)) || 0\n };\n\n this.setState({\n isReady: false\n });\n\n // Create business partner request\n createProspectAsync({ callerContext: context.actionContext }, newPartner)\n .then(() => {\n const successPageURL =\n (config.confirmationLink && config.confirmationLink.linkUrl && config.confirmationLink.linkUrl.destinationUrl) ||\n getUrlSync('home', this.props.context.actionContext) ||\n '';\n window.location.href = successPageURL;\n })\n .catch(() => {\n this.setState({\n hasSubmitErrors: true\n });\n });\n };\n\n private readonly _onCancel = () => {\n // Reset values of the form\n const cleanForm = this.state.formItems;\n cleanForm.forEach(input => {\n input.value = '';\n });\n\n // Set reset flag so address input will get reset on next renderInputSection() call\n this.needsToReset = true;\n\n this.setState({\n isReady: false,\n formItems: cleanForm,\n addressHasErrors: true,\n showAddressErrors: false,\n hasSubmitErrors: false\n });\n };\n\n private readonly _getItem = (id: string, isAddress: boolean = false) => {\n if (isAddress) {\n return this.state.formItems.find(item => {\n return item.id === id && item.address;\n });\n }\n return this.state.formItems.find(item => {\n return item.id === id && item.value !== '';\n });\n };\n}\n\nexport default BusinessSignUp;\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport { Module, Node } from '@msdyn365-commerce-modules/utilities';\nimport * as React from 'react';\n\nimport { IBusinessSignUpItem, IBusinessSignUpViewProps } from './business-sign-up';\n\nconst BusinessSignUpItem: React.FC = ({ wrapper, label, errorMessage, input, isAddressInput }) => {\n // Hide label and error message if rendering address section\n return (\n \n {!isAddressInput && label}\n {!isAddressInput && errorMessage}\n {input}\n \n );\n};\n\nconst BusinesSignUpView: React.FC = props => {\n const { businessSignUp, ContainerWrapper, heading, businessSignUpForm } = props;\n\n const { FormWrapper, buttons, items, errorMessage, disclaimer } = businessSignUpForm;\n\n return (\n \n \n {heading}\n \n {items &&\n items.map((item: IBusinessSignUpItem) => {\n return ;\n })}\n {errorMessage &&\n errorMessage.map((error: React.ReactNode, index: number) => {\n return {error};\n })}\n {buttons &&\n buttons.map((button: React.ReactNode, index: number) => {\n return {button};\n })}\n {disclaimer}\n \n \n \n );\n};\n\nexport default BusinesSignUpView;\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport * as Msdyn365 from '@msdyn365-commerce/core';\nimport { BackToTop, getTelemetryObject, ITelemetryContent } from '@msdyn365-commerce-modules/utilities';\nimport * as React from 'react';\n\nimport { IBackTopFooterProps } from './back-top-footer.props.autogenerated';\n\n/**\n *\n * BackTopFooter component.\n * @extends {React.PureComponent>}\n */\nclass BackTopFooter extends React.PureComponent> {\n private readonly editProps: Msdyn365.ITextEditProps = {\n requestContext: this.props.context.request,\n onEdit: (event: Msdyn365.ContentEditableEvent) => (this.props.config.backtoTopText = event.target.value)\n };\n\n private readonly telemetryContent?: ITelemetryContent;\n\n constructor(props: IBackTopFooterProps<{}>) {\n super(props);\n this.telemetryContent = getTelemetryObject(\n this.props.context.request.telemetryPageName!,\n this.props.friendlyName,\n this.props.telemetry\n );\n }\n\n public render(): JSX.Element | null {\n if (!this.props.config.destination) {\n this.props.telemetry.error('BackToTop.destination has not been provided, module wont render.');\n return null;\n }\n\n return (\n \n );\n }\n}\n\nexport default BackTopFooter;\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport * as React from 'react';\nimport * as MsDyn365 from '@msdyn365-commerce/core';\nimport classnames from 'classnames';\n\nimport { IHtmlBlockProps } from './html-block.props.autogenerated';\n\nexport interface IHtmlBlockViewProps extends IHtmlBlockProps<{}> {\n content?: React.ReactNode;\n className?: string;\n}\n\n/**\n *\n * HtmlBlock component\n * @extends {React.PureComponent>}\n */\nclass HtmlBlock extends React.PureComponent> {\n public render(): JSX.Element | null {\n const { content, className } = this.props.config;\n const text = content && (\n \n );\n const htmlBlockViewProps = {\n ...this.props,\n content: text,\n className: classnames('ms-html-block', className)\n };\n return this.props.renderView(htmlBlockViewProps) as React.ReactElement;\n }\n\n public handleTextChange = (event: MsDyn365.ContentEditableEvent) => (this.props.config.content = event.target.value);\n}\n\nexport default HtmlBlock;\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport * as React from 'react';\nimport { IHtmlBlockViewProps } from './html-block';\n\nconst HtmlBlockView: React.FC = props => (\n
\n {props.content}\n
\n);\n\nexport default HtmlBlockView;\n"],"names":["DynBiozMicroBadgeV1","React","constructor","props","super","context","data","telemetry","this","reaction","product","result","RecordId","actionInput","AttributesForSelectedVariantInput","actionContext","requestContext","apiSettings","channelId","getAttributesForSelectedVariant","catch","error","message","debug","shouldComponentUpdate","nextProps","render","catalogNumber","productSpecificationData","find","attribute","Name","TextValue","viewProps","renderView","observer","useScriptDynBiozMicroBadgeV1","catalogNumberFormatted","position","cssLink1","document","createElement","rel","href","head","appendChild","cssLink2","cssLink3","cssLink4","scriptJQuery","src","script1","script2","script3","inlineScript","innerHTML","promiseJQuery","Promise","resolve","addEventListener","then","body","inlineScript2","removeChild","replace","biozBlock","id","className","target","DynWordpressPage","_getpostNodes","dangerouslySetInnerHTML","Msdyn365","wpPost","post","content","dynWordpressPostProps","postNodes","useScript","url","async","placement","querySelector","script","useMetaLink","media","link","setAttribute","databaseId","config","blogUrl","histogramItem","Node","Object","buttonProps","starLabel","bar","percentage","heading","histogramItems","histogramProps","moduleProps","Module","map","item","SignUpButton","text","ariaLabel","telemetryContent","disabled","onClick","payLoad","getPayloadObject","attributes","getTelemetryAttributes","Button","role","SignUpError","type","errorClassName","classnames","GetMaxLength","maxLength","parsedMaxLength","Number","parseInt","isNaN","SignUpInput","value","pattern","isRequired","onChange","fieldReference","InputType","TextArea","name","undefined","ref","SignUpLabel","forId","htmlFor","BusinessSignUpRadioButtonOption","label","InputID","renderInputSection","inputs","needToReset","onInputChange","showErrors","addressForm","updateAddress","element","index","maxChars","customClass","radioButtonOptions","radioButtonGroupClass","baseSignUpItem","wrapper","errorMessage","Address","isAddressInput","input","updateForm","hasError","resetAddress","splice","RadioButton","key","BusinessSignUp","moduleClassName","prospectRadioButtonName","BusinessSignUpDefaultInputs","ProspectType","resources","prospectTypeLabel","prospectTypeBuyerLabel","_onInputChange","bind","prospectTypeSellerLabel","FirstName","Text","firstNameLabel","LastName","lastNameLabel","Email","emailAddressLabel","EmailRegex","CompanyName","companyLabel","Department","departmentLabel","JobTitle","jobTitleLabel","Size","companySizeLabel","companyAddressLabel","Comment","commentLabel","formChildReference","needsToReset","handleHeadingChange","event","_onAddressChange","errors","currentAddress","newForm","state","formItems","addressItem","address","setState","addressHasErrors","showAddressErrors","isReady","_isFormReady","currentInput","match","_onSubmit","preventDefault","firstName","_getItem","lastName","companyName","companyEmail","companyAddress","jobTitle","department","companySize","comments","prospectType","newPartner","CompanySize","Comments","ProspectTypeValue","createProspectAsync","callerContext","successPageURL","confirmationLink","linkUrl","destinationUrl","getUrlSync","window","location","hasSubmitErrors","_onCancel","cleanForm","forEach","isAddress","_addedReference","getTelemetryObject","request","telemetryPageName","friendlyName","componentDidMount","current","focus","nextState","businessSignUp","ContainerWrapper","editProps","onEdit","businessSignUpForm","_renderForm","slots","signUpButtonArialabel","signUpButtonText","cancelButtonArialabel","cancelButtonText","partialAddressErrorMessage","addressSlot","length","form","FormWrapper","items","buttons","disclaimer","RichTextComponent","newFormFields","BusinessSignUpItem","button","BackTopFooter","backtoTopText","destination","BackToTop","title","HtmlBlock","handleTextChange","MsDyn365","htmlBlockViewProps","renderModuleAttributes"],"sourceRoot":""}