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GAAclI,KAAKH,MAAMW,OACtC2H,EAAOH,GACTrI,EAAAA,cAACyI,EAAAA,GAA0B,CACvBD,KAAMH,EACNK,UAAW,CAAEC,OAAQtI,KAAK8H,iBAAkBS,eAAgBvI,KAAKH,MAAMI,QAAQC,WAGjF0S,EAAkBhR,EAAAA,EAAA,GACjB5B,KAAKH,OAAK,IACbmI,UAAWG,EACXD,UAAWO,GAAAA,CAAW,gBAAiBP,KAE3C,OAAOlI,KAAKH,MAAMgC,WAAW+Q,IAKrC,wFC9BA,MAMA,EANqD/S,GACjDF,EAAAA,cAAA,MAAAuL,OAAAC,OAAA,CAAKjD,UAAWrI,EAAMqI,UAAWtB,GAAI/G,EAAM+G,IAAQ/G,EAAMuL,uBAAuBvL,IAC3EA,EAAMmI","sources":["webpack://Msdyn365.Commerce.Online/./src/modules/commision-junction/commision-junction.props.autogenerated.ts?52cb","webpack://Msdyn365.Commerce.Online/./src/modules/commision-junction/commision-junction.tsx?9c98","webpack://Msdyn365.Commerce.Online/./src/modules/commision-junction/commision-junction.view.tsx?eff9","webpack://Msdyn365.Commerce.Online/./src/modules/custom-code/custom-code.tsx?fb76","webpack://Msdyn365.Commerce.Online/./src/modules/email-verification/email-verification.tsx?5d82","webpack://Msdyn365.Commerce.Online/./src/modules/email-verification/email-verification.view.tsx?2421","webpack://Msdyn365.Commerce.Online/./src/modules/region-tile-selector/region-tile-selector.tsx?fe8a","webpack://Msdyn365.Commerce.Online/./src/modules/region-tile-selector/region-tile-selector.view.tsx?5b84","webpack://Msdyn365.Commerce.Online/./src/modules/msdyn365-pva-chat-connector/msdyn365-pva-chat-connector.tsx?797a","webpack://Msdyn365.Commerce.Online/./src/modules/msdyn365-pva-chat-connector/msdyn365-pva-chat-connector.view.tsx?cb2f","webpack://Msdyn365.Commerce.Online/./src/modules/default-external-script/default-external-script.tsx?2a33","webpack://Msdyn365.Commerce.Online/./src/modules/default-inline-script/default-inline-script.tsx?5ccd","webpack://Msdyn365.Commerce.Online/./src/modules/default-inline-style/default-inline-style.tsx?3552","webpack://Msdyn365.Commerce.Online/./src/modules/default-metatags/default-metatags.tsx?97a7","webpack://Msdyn365.Commerce.Online/./src/utils/script-utils.ts?cb52","webpack://Msdyn365.Commerce.Online/./src/modules/product-page-summary/product-page-summary.tsx?2924","webpack://Msdyn365.Commerce.Online/./src/modules/text-block/text-block.tsx?db84","webpack://Msdyn365.Commerce.Online/./src/modules/text-block/text-block.view.tsx?9307"],"sourcesContent":["/**\r\n * Copyright (c) Microsoft Corporation\r\n * All rights reserved. See License.txt in the project root for license information.\r\n * ICommisionJunction contentModule Interface Properties\r\n * THIS FILE IS AUTO-GENERATED - MANUAL MODIFICATIONS WILL BE LOST\r\n */\r\n\r\nimport * as Msdyn365 from '@msdyn365-commerce/core';\r\n\r\nexport const enum pageType {\r\n accountCenter = 'accountCenter',\r\n accountSignup = 'accountSignup',\r\n applicationStart = 'applicationStart',\r\n branchLocator = 'branchLocator',\r\n cart = 'cart',\r\n category = 'category',\r\n conversionConfirmation = 'conversionConfirmation',\r\n department = 'department',\r\n homepage = 'homepage',\r\n information = 'information',\r\n productDetail = 'productDetail',\r\n propertyDetail = 'propertyDetail',\r\n propertyResults = 'propertyResults',\r\n searchResults = 'searchResults',\r\n storeLocator = 'storeLocator',\r\n subCategory = 'subCategory'\r\n}\r\n\r\nexport interface ICommisionJunctionConfig extends Msdyn365.IModuleConfig {\r\n isCJEnabled?: boolean;\r\n cookieName?: string;\r\n enterpriseId?: string;\r\n pageType?: pageType;\r\n}\r\n\r\nexport interface ICommisionJunctionProps extends Msdyn365.IModule {\r\n config: ICommisionJunctionConfig;\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 { ICookieSetOptions } from '@msdyn365-commerce/core-internal';\r\nimport { getCartState, ICartState } from '@msdyn365-commerce/global-state';\r\nimport { SalesOrder } from '@msdyn365-commerce/retail-proxy';\r\nimport CryptoJS from 'crypto-js';\r\nimport * as React from 'react';\r\nimport { ICommisionJunctionData } from './commision-junction.data';\r\nimport { ICommisionJunctionProps, pageType } from './commision-junction.props.autogenerated';\r\n\r\ninterface ISiteTagItem {\r\n itemId: string | undefined;\r\n unitPrice: number | undefined;\r\n quantity: number | undefined;\r\n discount?: number | undefined;\r\n}\r\n\r\ninterface ISiteTag {\r\n enterpriseId: string | undefined;\r\n pageType: pageType | undefined;\r\n userId: string;\r\n emailHash: string;\r\n cartSubtotal: number | undefined;\r\n items: ISiteTagItem[];\r\n}\r\n\r\ninterface IConversionTag {\r\n actionTrackerId: number;\r\n amount: number;\r\n cjeventOrder: string;\r\n coupon?: string;\r\n currency: string;\r\n enterpriseId: string | undefined;\r\n orderId: string;\r\n pageType: pageType | undefined;\r\n userId: string;\r\n emailHash: string;\r\n items: ISiteTagItem[];\r\n}\r\n\r\nexport interface ICommisionJunctionViewProps extends ICommisionJunctionExtentedProps {\r\n isCJEnabled: boolean;\r\n siteTag: ISiteTag;\r\n conversionTag?: IConversionTag;\r\n}\r\n\r\nexport interface ICommisionJunctionExtentedProps extends ICommisionJunctionProps {\r\n salesOrder?: SalesOrder;\r\n}\r\n\r\n/**\r\n * Age Gate state.\r\n */\r\nexport interface ICommisionJunctionState {\r\n cartData?: ICartState;\r\n}\r\n/**\r\n *\r\n * CommisionJunction component\r\n * @extends {React.PureComponent, ICommisionJunctionState>}\r\n */\r\nclass CommisionJunction extends React.PureComponent, ICommisionJunctionState> {\r\n constructor(props: ICommisionJunctionExtentedProps) {\r\n super(props);\r\n this.state = { cartData: undefined };\r\n }\r\n\r\n public async componentDidMount() {\r\n if (this.props.config.pageType !== pageType.conversionConfirmation) {\r\n const currentCartState = await getCartState(this.props.context.actionContext);\r\n\r\n if (currentCartState !== undefined) {\r\n this.setState({\r\n cartData: currentCartState\r\n });\r\n }\r\n }\r\n }\r\n\r\n private readonly _isConsentGiven: boolean = this.props.context.request.cookies.isConsentGiven();\r\n public render(): JSX.Element | null {\r\n const cookieName = this.props.config.cookieName || 'cje';\r\n const { cjevent = '' } = this.props.context.request.query || {};\r\n if (cjevent && cjevent !== null && cjevent !== '') {\r\n const cookieOptions: ICookieSetOptions = {\r\n secure: true,\r\n sameSite: 'none'\r\n };\r\n cookieOptions.maxAge = 395 * 24 * 60 * 60;\r\n this.props.context.request.cookies.set(cookieName, cjevent, cookieOptions);\r\n }\r\n\r\n const isCJEnabled = this._isConsentGiven && this.props.config.isCJEnabled;\r\n\r\n let siteTag: ISiteTag | null = null;\r\n let conversionTag: IConversionTag | null = null;\r\n if (isCJEnabled) {\r\n if (this.props.config.pageType !== pageType.conversionConfirmation) {\r\n siteTag = this._setSiteTag();\r\n } else {\r\n conversionTag = this._setConversionTag();\r\n }\r\n }\r\n const viewProps = {\r\n ...this.props,\r\n isConsentGiven: this._isConsentGiven,\r\n isCJEnabled: this._isConsentGiven && this.props.config.isCJEnabled,\r\n siteTag: siteTag,\r\n conversionTag: conversionTag\r\n };\r\n return this.props.renderView(viewProps);\r\n }\r\n\r\n private _setSiteTag(): ISiteTag {\r\n const enterpriseId = this.props.config.enterpriseId;\r\n let emailAddressHash;\r\n if (this.props.context.request.user.emailAddress !== undefined && this.props.context.request.user.emailAddress !== null) {\r\n const email = this.props.context.request.user.emailAddress.toLocaleLowerCase().trim();\r\n emailAddressHash = CryptoJS.SHA256(email).toString(CryptoJS.enc.Hex);\r\n }\r\n const items: ISiteTagItem[] = [];\r\n let subTotalAmount: number = 0;\r\n subTotalAmount = (this.state.cartData && this.state.cartData.cart.SubtotalAmount) || 0;\r\n const cartLines = this.state.cartData && this.state.cartData.cart.CartLines;\r\n if (cartLines && cartLines?.length > 0) {\r\n cartLines.map(cartline => {\r\n const item = {\r\n itemId: cartline.ItemId,\r\n unitPrice: cartline.Price,\r\n quantity: cartline.Quantity,\r\n discount: cartline.DiscountAmount\r\n };\r\n\r\n items.push(item);\r\n });\r\n }\r\n\r\n return {\r\n enterpriseId: enterpriseId,\r\n pageType: this.props.config.pageType,\r\n userId: this.props.context.request.user.customerAccountNumber || '',\r\n emailHash: emailAddressHash || '',\r\n cartSubtotal: subTotalAmount,\r\n items: items\r\n };\r\n }\r\n\r\n private _setConversionTag(): IConversionTag | null {\r\n const { salesId = '', transactionId = '' } = this.props.context.request.query || {};\r\n const channelReferenceId = this.props?.salesOrder?.ChannelReferenceId || '';\r\n const enterpriseId = this.props.config.enterpriseId;\r\n const cjeCookieValue = this.props.context.request.cookies.get(this.props.config.cookieName || 'cje').value;\r\n const items: ISiteTagItem[] = [];\r\n const salesOrder = this.props.salesOrder;\r\n const totalAmount: number | undefined = salesOrder && salesOrder.NetAmountWithoutTax;\r\n const currencyCode: string | undefined = salesOrder && salesOrder.CurrencyCode;\r\n const orderId: string | undefined = salesId || channelReferenceId || transactionId;\r\n let emailAddressHash;\r\n if (this.props.context.request.user.emailAddress !== undefined && this.props.context.request.user.emailAddress !== null) {\r\n const email = this.props.context.request.user.emailAddress.toLocaleLowerCase().trim();\r\n emailAddressHash = CryptoJS.SHA256(email).toString(CryptoJS.enc.Hex);\r\n }\r\n const coupons: string[] = [];\r\n\r\n const salesLines = salesOrder?.SalesLines;\r\n if (salesLines && salesLines?.length > 0) {\r\n salesLines.map(salesLine => {\r\n const item: ISiteTagItem = {\r\n itemId: salesLine.ItemId,\r\n unitPrice: salesLine.Price,\r\n quantity: salesLine.Quantity\r\n };\r\n salesLine.DiscountLines!.map(discount => {\r\n // eslint-disable-next-line @typescript-eslint/restrict-plus-operands\r\n if (discount.DiscountCode && discount.DiscountCode !== '') {\r\n coupons.push(discount.DiscountCode);\r\n }\r\n item.discount = (item.discount || 0) + (discount.EffectiveAmount || 0);\r\n });\r\n items.push(item);\r\n });\r\n }\r\n\r\n if (currencyCode !== undefined && enterpriseId !== undefined && orderId !== undefined && totalAmount !== undefined) {\r\n const couponsUnq = [...new Set(coupons)];\r\n return {\r\n actionTrackerId: 430475,\r\n amount: totalAmount,\r\n cjeventOrder: cjeCookieValue || '',\r\n coupon: couponsUnq.length > 0 ? `${couponsUnq.join(',')}` : '',\r\n currency: currencyCode,\r\n enterpriseId: enterpriseId,\r\n orderId: orderId,\r\n pageType: this.props.config.pageType,\r\n userId: this.props.context.request.user.customerAccountNumber || '',\r\n emailHash: emailAddressHash || '',\r\n items: items\r\n };\r\n }\r\n\r\n return null;\r\n }\r\n}\r\n\r\nexport default CommisionJunction;\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\nimport * as React from 'react';\r\nimport { ICommisionJunctionViewProps } from './commision-junction';\r\n\r\nclass CommisionJunctionViewProps extends React.PureComponent {\r\n public constructor(props: ICommisionJunctionViewProps) {\r\n super(props);\r\n }\r\n\r\n public windowFunction(): void {\r\n if (this.props.isCJEnabled) {\r\n this.props.siteTag && this._addSiteTag();\r\n this.props.conversionTag && this._addConversionTag();\r\n }\r\n }\r\n\r\n public componentDidMount(): void {\r\n this.windowFunction();\r\n }\r\n\r\n public componentDidUpdate(): void {\r\n this.windowFunction();\r\n const script = document.createElement('script');\r\n script.src = 'https://www.mczbf.com/tags/12703/tag.js';\r\n script.type = 'text/javascript';\r\n script.async = true;\r\n script.id = 'cjapitag';\r\n document.body.appendChild(script);\r\n }\r\n\r\n public render(): JSX.Element | null {\r\n return <>;\r\n }\r\n\r\n /**\r\n * HandlePageLoad.\r\n */\r\n private readonly _addSiteTag = () => {\r\n if (!(window as any).cj) {\r\n (window as any).cj = {};\r\n }\r\n (window as any).cj.sitePage = this.props.siteTag;\r\n };\r\n\r\n private readonly _addConversionTag = () => {\r\n if (!(window as any).cj) {\r\n (window as any).cj = {};\r\n }\r\n (window as any).cj.order = this.props.conversionTag;\r\n };\r\n}\r\nexport default CommisionJunctionViewProps;\r\n","/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\nimport { SDK_FRAGMENT_NAME } from '@msdyn365-commerce/core-internal';\r\nimport * as React from 'react';\r\nimport { ICustomCodeProps } from './custom-code.props.autogenerated';\r\n\r\n/**\r\n *\r\n * CustomCode component\r\n */\r\nclass CustomCode extends React.PureComponent> {\r\n constructor(props: ICustomCodeProps<{}>) {\r\n super(props);\r\n }\r\n public render(): JSX.Element | null {\r\n const { config } = this.props;\r\n const code = config.code;\r\n const staticUrl = `${this.props?.context?.request?.url?.staticCdnUrl}${process.env.SUBMISSIONID}/`;\r\n const codeC = code\r\n ?.split('href=\"/')\r\n .join(`href=\"${staticUrl}`)\r\n .split('src=\"/')\r\n .join(`src=\"${staticUrl}`);\r\n // tslint:disable:react-no-dangerous-html -- intentionally set inner html\r\n return React.createElement(SDK_FRAGMENT_NAME, {\r\n key: this.props.id,\r\n dangerouslySetInnerHTML: { __html: codeC }\r\n });\r\n }\r\n}\r\nexport default CustomCode;\r\n","/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\nimport * as MsDyn365 from '@msdyn365-commerce/core';\r\nimport classnames from 'classnames';\r\nimport * as React from 'react';\r\nimport { IEmailVerificationProps } from './email-verification.props.autogenerated';\r\n\r\nexport interface IEmailVerificationViewProps extends IEmailVerificationProps<{}> {\r\n paragraph?: React.ReactNode;\r\n source?: React.ReactNode;\r\n className?: string;\r\n}\r\n\r\n/**\r\n *\r\n * EmailVerification component\r\n */\r\nclass EmailVerification extends React.PureComponent> {\r\n public render(): JSX.Element | null {\r\n const { paragraph, className } = this.props.config;\r\n const text = paragraph && (\r\n \r\n );\r\n const EmailVerificationViewProps = {\r\n ...this.props,\r\n paragraph: text,\r\n className: classnames('ms-text-block', className)\r\n };\r\n return this.props.renderView(EmailVerificationViewProps) as React.ReactElement;\r\n }\r\n\r\n public handleTextChange = (event: MsDyn365.ContentEditableEvent) => (this.props.config.paragraph = event.target.value);\r\n}\r\nexport default EmailVerification;\r\n","/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\nimport * as React from 'react';\r\nimport { addToNewsLetterWelcomeOffer_Len_CAPAsync } from '../../actions/DataActionExtension.g';\r\nimport { IEmailVerificationViewProps } from './email-verification';\r\n\r\nconst EmailVerificationView: React.FC = props => {\r\n const euHostname = 'eu.venchi.com';\r\n const localeString = props?.context?.request?.locale ? props?.context?.request?.locale?.toLowerCase() : '';\r\n const sitePath = props?.context?.request?.sitePath ? props?.context?.request?.sitePath?.substring(1) : '';\r\n // TODO: enable loyalty flow\r\n const source = props?.config?.source || '';\r\n const hostname = props?.context?.request?.url?.requestUrl?.hostname || '';\r\n let locale: string;\r\n if (hostname.toLowerCase() === euHostname && sitePath === '') {\r\n locale = 'eu';\r\n } else {\r\n locale = sitePath !== '' ? sitePath : localeString;\r\n }\r\n\r\n const channelId: number = props.context.request.apiSettings.channelId;\r\n const requestParams = props.context.request.query;\r\n const email = requestParams?.email;\r\n const token = requestParams?.token;\r\n let message = props.resources.emailVerificationSuccessMessage;\r\n const [loading, setLoading] = React.useState(false);\r\n const [subscribeMessage, setSubscribeMessage] = React.useState({\r\n state: false,\r\n message: '',\r\n class: ''\r\n });\r\n React.useEffect(() => {\r\n if (email && token) {\r\n setLoading(true);\r\n // TODO: enable loyalty flow\r\n addToNewsLetterWelcomeOffer_Len_CAPAsync(\r\n { callerContext: props.context?.actionContext },\r\n channelId,\r\n email,\r\n token,\r\n locale,\r\n source\r\n )\r\n .then(result => {\r\n // message = result[0].Error ? result[0].Error : message;\r\n setLoading(false);\r\n if (result.Status) {\r\n setSubscribeMessage({\r\n state: true,\r\n message: message,\r\n class: 'success'\r\n });\r\n } else {\r\n message = result.Error ? result.Error : '';\r\n switch (message) {\r\n case 'token-email_notValid':\r\n message = props.resources.tokenEmailNotValid;\r\n break;\r\n case 'registerToCRM_error':\r\n message = props.resources.registerToCrmError;\r\n break;\r\n case 'SendCoupon_error':\r\n message = props.resources.sendCouponError;\r\n break;\r\n case 'already_confirmed':\r\n message = props.resources.emailAlreadyConfirmed;\r\n break;\r\n case 'already_subscribed':\r\n message = props.resources.alreadySubscribedText;\r\n break;\r\n default:\r\n // code block\r\n }\r\n setSubscribeMessage({\r\n state: true,\r\n message: message,\r\n class: 'error'\r\n });\r\n }\r\n })\r\n .catch(error => {\r\n message = error.message;\r\n setSubscribeMessage({\r\n state: true,\r\n message: error.message,\r\n class: 'error'\r\n });\r\n });\r\n }\r\n }, []);\r\n return (\r\n
\r\n {props.paragraph}\r\n {loading ? (\r\n
\r\n
\r\n
\r\n ) : (\r\n ''\r\n )}\r\n {subscribeMessage.state ? (\r\n
\r\n {subscribeMessage.message}\r\n
\r\n ) : (\r\n ''\r\n )}\r\n
\r\n );\r\n};\r\n\r\nexport default EmailVerificationView;\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 { IRegionTileSelectorData } from './region-tile-selector.data';\r\nimport { IRegionTileSelectorProps } from './region-tile-selector.props.autogenerated';\r\n\r\nexport interface IRegionTileSelectorViewProps extends IRegionTileSelectorProps {}\r\n\r\n/**\r\n *\r\n * RegionTileSelector component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass RegionTileSelector extends React.PureComponent> {\r\n public render(): JSX.Element | null {\r\n return this.props.renderView(this.props);\r\n }\r\n}\r\n\r\nexport default RegionTileSelector;\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// import * as Reactstrap from 'reactstrap';\r\nimport { IRegionTileSelectorViewProps } from './region-tile-selector';\r\n\r\nexport default (props: IRegionTileSelectorViewProps) => {\r\n // const { regions, useQueryParameter, queryParameter, checkStoreKiosk } = props.config;\r\n const { regions, queryParameter, checkStoreKiosk } = props.config;\r\n const { regionSelectorHeading } = props.resources;\r\n\r\n // Append the queryParameter + store to redirects\r\n const store_code = props.context.request.query?.store;\r\n const store_kiosk = props.context.request.query?.kiosk ? true : false;\r\n\r\n return (\r\n
\r\n
\r\n

{regionSelectorHeading}

\r\n
\r\n
\r\n {regions?.map((region, index) => (\r\n // eslint-disable-next-line react/jsx-key\r\n {\r\n if (typeof window !== undefined && region.url !== undefined) {\r\n window.location.href =\r\n checkStoreKiosk && store_kiosk\r\n ? `https://${region.url}/loyalty-store-sign-up?${queryParameter}=${store_code}&kiosk=true`\r\n : `https://${region.url}/loyalty-store-sign-up?${queryParameter}=${store_code}`;\r\n }\r\n }}\r\n >\r\n
\r\n {region.displayString}\r\n

{region.displayString}

\r\n

{region.displaySubString}

\r\n
\r\n
\r\n ))}\r\n
\r\n
\r\n );\r\n};\r\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 { isOboRequest } from '@msdyn365-commerce/core-internal';\nimport { IMsdyn365PvaChatConnectorData } from './msdyn365-pva-chat-connector.data';\nimport { IMsdyn365PvaChatConnectorConfig, IMsdyn365PvaChatConnectorProps } from './msdyn365-pva-chat-connector.props.autogenerated';\n\nexport interface IPvaChatConnectorViewProps extends IMsdyn365PvaChatConnectorProps {\n config: IMsdyn365PvaChatConnectorConfig;\n}\n\n/**\n * PvaChatConnector component\n * @extends {React.PureComponent>}\n */\nclass PvaChatConnector extends React.PureComponent> {\n // Loads CDN version of Botframework-Webchat library\n public componentDidMount(): void {\n if (isOboRequest(this.props.context.request)) {\n return;\n }\n\n const url = this.props.config.botFrameworkCDNURL || this.props.context.app.config.pvaChatConnectorBotFrameworkCDNURL;\n const script = document.createElement('script');\n script.src = url;\n script.async = true;\n script.crossOrigin = 'anonymous';\n document.body.appendChild(script);\n }\n\n public render(): JSX.Element | null {\n if (isOboRequest(this.props.context.request)) {\n return null;\n }\n\n return this.props.renderView(this.props);\n }\n}\n\nexport default PvaChatConnector;\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 { Chat, IPvaChatConnectorViewProps } from './index';\n\nexport default (props: IPvaChatConnectorViewProps) => {\n // Only for CDN loading check, won't be needed with npm package of Botframework-WebChat\n const [loaded, setLoaded] = React.useState(false);\n const p = {\n ...props\n };\n\n // Just to verify that CDN Chat Widget js lib is loaded\n // Remove this block if moving to npm package of Botframework-WebChat\n const interval = setInterval(() => {\n const t = typeof window;\n if (t !== 'undefined' && window.WebChat) {\n setLoaded(true);\n clearInterval(interval);\n }\n }, 100);\n\n return
{loaded && }
;\n};\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport { SDK_FRAGMENT_NAME, msdyn365Commerce } from '@msdyn365-commerce/core-internal';\nimport * as path from 'path';\nimport * as React from 'react';\nimport { isAbsoluteUrl, isRelativeUrl, logDebug, logError } from '../../utils/script-utils';\nimport { IDefaultExternalScriptProps } from './default-external-script.props.autogenerated';\n\n/**\n *\n * DefaultExternalScript component\n * @extends {React.PureComponent>}\n */\nclass DefaultExternalScript extends React.PureComponent> {\n constructor(props: IDefaultExternalScriptProps<{}>) {\n super(props);\n }\n\n public render(): JSX.Element | null {\n const { config } = this.props;\n logDebug(`Adding script tags for '${this.props.id}/${this.props.typeName}'`, this.props.telemetry);\n let source = config.scriptSource;\n\n let relativeBaseUrl: string = '';\n // Construct the relative base url, i.e. the base url from which statics will be served\n if (this.props.context) {\n relativeBaseUrl += this.props.context.request.url.staticCdnUrl;\n relativeBaseUrl += msdyn365Commerce.getEnvironmentVariable('SUBMISSIONID') || '';\n }\n\n if (isRelativeUrl(source)) {\n // If the source is a relative URL prepend the relative base url to the resolved source url for the actual source\n source = `${relativeBaseUrl}/${path.join(source)}`;\n } else if (source === '' || !isAbsoluteUrl(source)) {\n logError(\n 'Invalid external script - not a url. The external source is not an external or relative url, please use default-inline-script if you wish to load inline scripts',\n this.props.telemetry\n );\n return null;\n }\n const scriptHtml = ``;\n\n return React.createElement(SDK_FRAGMENT_NAME, { key: this.props.id, dangerouslySetInnerHTML: { __html: scriptHtml } });\n }\n}\n\nexport default DefaultExternalScript;\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport { isNonceEnabled, SDK_FRAGMENT_NAME } from '@msdyn365-commerce/core-internal';\nimport * as React from 'react';\nimport { isAbsoluteUrl, isRelativeUrl, logDebug, logError } from '../../utils/script-utils';\nimport { IDefaultInlineScriptProps } from './default-inline-script.props.autogenerated';\n\n/**\n *\n * DefaultScript\n * @extends {React.PureComponent>}\n */\nclass DefaultInlineScript extends React.PureComponent> {\n constructor(props: IDefaultInlineScriptProps<{}>) {\n super(props);\n }\n\n public render(): JSX.Element | null {\n const { config } = this.props;\n logDebug(`Adding script tags for '${this.props.id}/${this.props.typeName}'`, this.props.telemetry);\n const source = config.inlineScript;\n\n if (!source || source === '' || isAbsoluteUrl(source) || isRelativeUrl(source)) {\n logError(\n 'Invalid inline script - Empty inline source defined or a url is being used as a source. Use default-external-script to load scripts from an external or relative url.',\n this.props.telemetry\n );\n return null;\n }\n\n if (source.includes('')) {\n logError('Invalid inline script - inline script should not contain html tags', this.props.telemetry);\n return null;\n }\n\n const nonceToken = this.props.context && isNonceEnabled(this.props.context.request);\n const scriptHtml = ``;\n return React.createElement(SDK_FRAGMENT_NAME, { key: this.props.id, dangerouslySetInnerHTML: { __html: scriptHtml } });\n }\n}\n\nexport default DefaultInlineScript;\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport { SDK_FRAGMENT_NAME } from '@msdyn365-commerce/core-internal';\nimport * as React from 'react';\nimport { isAbsoluteUrl, isRelativeUrl, logDebug, logError } from '../../utils/script-utils';\nimport { IDefaultInlineStyleProps } from './default-inline-style.props.autogenerated';\n\n/**\n *\n * DefaultStyle\n * @extends {React.PureComponent>}\n */\n\nconst DefaultInlineStyle = (props: IDefaultInlineStyleProps<{}>) => {\n const { config, id, typeName, telemetry } = props;\n logDebug(`Adding style tags for '${id}/${typeName}'`, telemetry);\n const source = config.inlineStyle;\n\n if (!source || source === '' || isAbsoluteUrl(source) || isRelativeUrl(source)) {\n logError('Invalid inline style - Empty inline source defined or a url is being used as a source.', telemetry);\n return null;\n }\n\n if (source.includes('')) {\n logError('Invalid inline style - inline style should not contain html tags', telemetry);\n return null;\n }\n\n const styleHtml = ``;\n return React.createElement(SDK_FRAGMENT_NAME, { key: id, dangerouslySetInnerHTML: { __html: styleHtml } });\n};\n\nexport default DefaultInlineStyle;\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\nimport { isNonceEnabled, SDK_FRAGMENT_NAME } from '@msdyn365-commerce/core-internal';\nimport { IDefaultMetatagsData } from './default-metatags.data';\nimport { IDefaultMetatagsProps } from './default-metatags.props.autogenerated';\n\n/**\n *\n * DefaultPageSummaryMetadata component\n * @extends {React.PureComponent>}\n */\nclass DefaultMetaTags extends React.PureComponent> {\n public render(): JSX.Element {\n const { data, config } = this.props;\n const nonceToken = this.props.context && isNonceEnabled(this.props.context.request);\n let metaTagsHtml: string = '';\n let metaTags;\n if (config.metaTags) {\n metaTags = nonceToken ? this._addNonceToInlineScript(config.metaTags, nonceToken) : config.metaTags;\n metaTagsHtml = metaTags && metaTags.join('\\n');\n } else if (data.metaTags) {\n metaTags = data.metaTags;\n let metaTagsText = metaTags.map(simpleText => simpleText.text);\n metaTagsText = nonceToken ? this._addNonceToInlineScript(metaTagsText, nonceToken) : metaTagsText;\n metaTagsHtml = metaTagsText && metaTagsText.join('\\n');\n }\n return React.createElement(SDK_FRAGMENT_NAME, { key: this.props.id, dangerouslySetInnerHTML: { __html: metaTagsHtml } });\n }\n\n private _addNonceToInlineScript(metaTags: string[], nonceToken: string): string[] {\n const inlineScripRegex = /(.*?)<\\/script>/g;\n return metaTags\n .map(metaTag => {\n if (inlineScripRegex.test(metaTag)) {\n return metaTag.replace(/