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AOC,cAAgB,CAAC,EAC9CD,OAAOC,aAAaC,eAAc7C,EAAAA,EAAA,GACP2C,OAAOC,aAAaC,gBAAkB,CAAC,GACvCA,UCtC3BE,EAAOC,QAAU3G,cCAjB0G,EAAOC,QAAUC","sources":["webpack://Msdyn365.Commerce.Online/./src/modules/ecomm-footer/components/link.tsx?5cd1","webpack://Msdyn365.Commerce.Online/./src/modules/ecomm-footer/ecomm-footer.tsx?c894","webpack://Msdyn365.Commerce.Online/./src/modules/ecomm-footer/ecomm-footer.view.tsx?69b1","webpack://Msdyn365.Commerce.Online/./lib/ecomm-footer/module-registration.js?95c0","webpack://Msdyn365.Commerce.Online/external var \"React\"?0d3b","webpack://Msdyn365.Commerce.Online/external var \"ReactDOM\"?853b"],"sourcesContent":["import * as React from 'react';\r\n\r\nimport { ICoreContext } from '@msdyn365-commerce/core';\r\nimport { getPayloadObject, getTelemetryAttributes, ITelemetryContent, onTelemetryClick } from '@msdyn365-commerce-modules/utilities';\r\n\r\ninterface ILink {\r\n text?: string;\r\n context: ICoreContext;\r\n href?: string;\r\n ariaLabel?: string;\r\n index: string;\r\n noclick?: boolean;\r\n telemetryContent: ITelemetryContent;\r\n}\r\n\r\n/**\r\n *\r\n * EcommContentTemplate1View component\r\n * @extends {React.PureComponent}\r\n */\r\n export class Link extends React.PureComponent {\r\n public render(): JSX.Element | null {\r\n const payLoad = getPayloadObject('click', this.props.telemetryContent, '', '');\r\n const linkText = this.props.text !== undefined ? this.props.text : '';\r\n\r\n payLoad.contentAction.etext = linkText;\r\n\r\n // Construct telemetry attribute to render.\r\n const attribute = getTelemetryAttributes(this.props.telemetryContent, payLoad);\r\n\r\n return (\r\n \r\n {linkText}\r\n \r\n \r\n );\r\n }\r\n }\r\n\r\nexport default Link;","/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\nimport * as React from 'react';\r\n\r\nimport * as MsDyn365 from '@msdyn365-commerce/core';\r\n\r\nimport { getTelemetryObject, ITelemetryContent } from '@msdyn365-commerce-modules/utilities';\r\n\r\nimport { Link } from './components/link';\r\n\r\nimport { IEcommFooterData } from './ecomm-footer.data';\r\nimport { IEcommFooterProps, ILinksData } from './ecomm-footer.props.autogenerated';\r\n\r\nexport interface IEcommFooterViewProps extends IEcommFooterProps {\r\n information: React.ReactNode;\r\n openingHoursDescription: React.ReactNode;\r\n etiquetteDescription: React.ReactNode;\r\n links?: React.ReactNode[];\r\n}\r\n\r\n/**\r\n *\r\n * EcommFooter component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass EcommFooter extends React.PureComponent> {\r\n private telemetryContent: ITelemetryContent = getTelemetryObject(this.props.context.request.telemetryPageName!,\r\n this.props.friendlyName, this.props.telemetry);\r\n\r\n public render(): JSX.Element | null {\r\n const { config } = this.props;\r\n\r\n let navi = this._getCustomNaviLinks(0);\r\n\r\n const information = config.information && ;\r\n\r\n const openingHours = config.openingHoursDescription && ;\r\n \r\n const etiquette = config.etiquetteDescription && ;\r\n\r\n const EcommFooterViewProps = {\r\n ...this.props,\r\n information: information,\r\n openingHoursDescription: openingHours,\r\n etiquetteDescription: etiquette,\r\n links: navi\r\n };\r\n\r\n return this.props.renderView(EcommFooterViewProps);\r\n }\r\n\r\n private _getCustomNaviLinks = (itemPosition: number): JSX.Element[] | null => {\r\n const { links } = this.props.config;\r\n\r\n if (!links || !(links.length > 0)) {\r\n this.props.context.telemetry.error('Navigation links content is empty, links will not render.');\r\n return null;\r\n }\r\n\r\n return (\r\n links.map((value: ILinksData, index: number) => {\r\n itemPosition++;\r\n\r\n return (\r\n \r\n );\r\n })\r\n );\r\n }\r\n\r\n private _handleOpeningHours = (event: MsDyn365.ContentEditableEvent) => this.props.config.openingHoursDescription = event.target.value;\r\n\r\n private _handleEtiquette = (event: MsDyn365.ContentEditableEvent) => this.props.config.etiquetteDescription = event.target.value;\r\n}\r\n\r\nexport default EcommFooter;\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 { IEcommFooterViewProps } from './ecomm-footer';\r\n\r\n/**\r\n *\r\n * EcommFooterView component\r\n * @extends {React.PureComponent}\r\n */\r\nexport class EcommFooterView extends React.PureComponent {\r\n public state: any = { hasMounted: false };\r\n\r\n public componentDidMount(): void {\r\n if (!this.state.hasMounted) { \r\n this.setState({ hasMounted: true });\r\n }\r\n }\r\n\r\n public render(): JSX.Element | null {\r\n if (!this.state.hasMounted) {\r\n return null;\r\n }\r\n\r\n const { config } = this.props;\r\n \r\n return (\r\n
\r\n \r\n {this._renderDetails()}\r\n {this._renderOthers()}\r\n
\r\n );\r\n }\r\n\r\n private _renderDetails(): JSX.Element | null {\r\n const { config, information, openingHoursDescription, etiquetteDescription } = this.props;\r\n\r\n const contactUrl = config.contactUrl?.linkUrl ? config.contactUrl?.linkUrl.destinationUrl : null;\r\n\r\n return (\r\n
\r\n
\r\n
{config.mainTitle}
\r\n

{information}

\r\n {contactUrl && {config.contactUrl?.linkText}}\r\n
{config.socialMediaPrompt}
\r\n
\r\n
\r\n {config.socialMedias && config.socialMedias.map(item => {\r\n return ;\r\n })}\r\n
\r\n
\r\n
\r\n
\r\n

{config.openingHoursTitle}

\r\n

{openingHoursDescription}

\r\n
\r\n
\r\n

{config.etiquetteTitle}

\r\n

{etiquetteDescription}

\r\n
\r\n
\r\n );\r\n }\r\n\r\n private _renderOthers(): JSX.Element | null {\r\n const { config, links } = this.props;\r\n\r\n return (\r\n
\r\n
{links && links.map((link, index) => {link})}
\r\n

{config.copyright}

\r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default EcommFooterView;","const binding = { modules: {}, dataActions: {} };\n\n (binding.modules['ecomm-footer'] = {\n c: () => require('partner/modules/ecomm-footer/ecomm-footer.tsx'),\n $type: 'contentModule',\n da: [],\n \n iNM: false,\n ns: '__local__',\n n: 'ecomm-footer',\n p: '__local__',\n \n pdp: '',\n \n \n md: 'src/modules/ecomm-footer'\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|ecomm-footer|ecomm-footer'] = {\n c: () => require('partner/modules/ecomm-footer/ecomm-footer.view.tsx'),\n cn: '__local__-__local__-ecomm-footer'\n };\nwindow.__bindings__ = window.__bindings__ || {};\nwindow.__bindings__.viewDictionary = {\n ...window.__bindings__.viewDictionary || {},\n ...viewDictionary\n };","module.exports = React;","module.exports = ReactDOM;"],"names":["Link","React","render","payLoad","getPayloadObject","this","props","telemetryContent","linkText","undefined","text","contentAction","etext","attribute","getTelemetryAttributes","Object","assign","href","ariaLabel","onClick","onTelemetryClick","noclick","itemProp","content","index","EcommFooter","constructor","getTelemetryObject","context","request","telemetryPageName","friendlyName","telemetry","_getCustomNaviLinks","itemPosition","links","config","length","map","value","key","linkUrl","destinationUrl","toString","error","_handleOpeningHours","event","openingHoursDescription","target","_handleEtiquette","etiquetteDescription","navi","information","MsDyn365","editProps","onEdit","requestContext","openingHours","etiquette","EcommFooterViewProps","_objectSpread","renderView","EcommFooterView","state","hasMounted","componentDidMount","setState","className","backToTop","_renderDetails","_renderOthers","_config$contactUrl","_config$contactUrl2","_config$contactUrl3","contactUrl","mainTitle","id","renderModuleAttributes","socialMediaPrompt","socialMedias","item","url","src","image","alt","role","openingHoursTitle","etiquetteTitle","link","copyright","binding","modules","dataActions","c","require","$type","da","iNM","ns","n","p","pdp","md","window","__bindings__","viewDictionary","cn","module","exports","ReactDOM"],"sourceRoot":""}