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AC,EAC9CD,OAAOC,aAAaC,eAAchC,EAAAA,EAAA,GACP8B,OAAOC,aAAaC,gBAAkB,CAAC,GACvCA,UCtC3BE,EAAOC,QAAUxD,cCAjBuD,EAAOC,QAAUC","sources":["webpack://Msdyn365.Commerce.Online/./src/modules/ecomm-content-template-4/ecomm-content-template-4.tsx?92ab","webpack://Msdyn365.Commerce.Online/./src/modules/ecomm-content-template-4/ecomm-content-template-4.view.tsx?eae7","webpack://Msdyn365.Commerce.Online/./lib/ecomm-content-template-4/module-registration.js?5aa1","webpack://Msdyn365.Commerce.Online/external var \"React\"?0d3b","webpack://Msdyn365.Commerce.Online/external var \"ReactDOM\"?853b"],"sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\nimport * as MsDyn365 from '@msdyn365-commerce/core';\r\n\r\nimport * as React from 'react';\r\n\r\nimport { IEcommContentTemplate4Data } from './ecomm-content-template-4.data';\r\nimport { IEcommContentTemplate4Props } from './ecomm-content-template-4.props.autogenerated';\r\n\r\nexport interface IEcommContentTemplate4ViewProps extends IEcommContentTemplate4Props {\r\n title: React.ReactNode;\r\n enablePrimaryColour: boolean;\r\n description: React.ReactNode;\r\n className: string;\r\n anchorID: string;\r\n TemplateContainerStyle: any;\r\n InfoContainerStyle: any;\r\n TitlePrimaryColour: any;\r\n}\r\n\r\n/**\r\n *\r\n * EcommContentTemplate4 component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass EcommContentTemplate4 extends React.PureComponent> {\r\n public render(): JSX.Element | null {\r\n const { config } = this.props;\r\n\r\n const title = config.title && ;\r\n const text = config.description && ;\r\n\r\n const EcommContentTemplateViewProps = {\r\n ...this.props,\r\n title: title,\r\n enablePrimaryColour: config.enablePrimaryColour,\r\n description: text,\r\n anchorID: config.anchorID,\r\n TemplateContainerStyle: {\r\n className: 'ecomm-content-template-4'\r\n },\r\n InfoContainerStyle: {\r\n className: 'info-container'\r\n },\r\n TitlePrimaryColour: {\r\n className: 'enable-primary-colour'\r\n }\r\n };\r\n\r\n return this.props.renderView(EcommContentTemplateViewProps);\r\n }\r\n\r\n private _handleTitleChange = (event: MsDyn365.ContentEditableEvent) => this.props.config.title = event.target.value;\r\n\r\n private _handleTextChange = (event: MsDyn365.ContentEditableEvent) => this.props.config.description = event.target.value;\r\n}\r\n\r\nexport default EcommContentTemplate4;","/*!\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\n\r\nimport { IEcommContentTemplate4ViewProps } from './ecomm-content-template-4';\r\n\r\n/**\r\n *\r\n * EcommContentTemplate1View component\r\n * @extends {React.PureComponent}\r\n */\r\nexport class EcommContentTemplate4View extends React.PureComponent {\r\n public render(): JSX.Element | null {\r\n const { config, anchorID, TemplateContainerStyle } = this.props;\r\n\r\n const resultStyle = config.className && config.className !== '' ? `${TemplateContainerStyle.className}` + ` ` + `${config.className}` : TemplateContainerStyle.className;\r\n\r\n if (anchorID) {\r\n const style = `anchor ` + `${resultStyle}`;\r\n\r\n return
{this._renderInfo()}
;\r\n }\r\n\r\n return
{this._renderInfo()}
;\r\n }\r\n\r\n private _renderInfo(): JSX.Element | null {\r\n const { title, enablePrimaryColour, description, InfoContainerStyle, TitlePrimaryColour } = this.props;\r\n\r\n let result = (

{title}

);\r\n\r\n if (enablePrimaryColour) {\r\n result = (

{title}

);\r\n }\r\n\r\n return (\r\n
\r\n {result}\r\n

{description}

\r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default EcommContentTemplate4View;","const binding = { modules: {}, dataActions: {} };\n\n (binding.modules['ecomm-content-template-4'] = {\n c: () => require('partner/modules/ecomm-content-template-4/ecomm-content-template-4.tsx'),\n $type: 'contentModule',\n da: [],\n \n iNM: false,\n ns: '__local__',\n n: 'ecomm-content-template-4',\n p: '__local__',\n \n pdp: '',\n \n \n md: 'src/modules/ecomm-content-template-4'\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-content-template-4|ecomm-content-template-4'] = {\n c: () => require('partner/modules/ecomm-content-template-4/ecomm-content-template-4.view.tsx'),\n cn: '__local__-__local__-ecomm-content-template-4'\n };\nwindow.__bindings__ = window.__bindings__ || {};\nwindow.__bindings__.viewDictionary = {\n ...window.__bindings__.viewDictionary || {},\n ...viewDictionary\n };","module.exports = React;","module.exports = ReactDOM;"],"names":["EcommContentTemplate4","React","constructor","_handleTitleChange","event","this","props","config","title","target","value","_handleTextChange","description","render","MsDyn365","text","editProps","onEdit","requestContext","context","request","EcommContentTemplateViewProps","_objectSpread","enablePrimaryColour","anchorID","TemplateContainerStyle","className","InfoContainerStyle","TitlePrimaryColour","renderView","EcommContentTemplate4View","resultStyle","style","id","_renderInfo","result","Object","assign","renderModuleAttributes","binding","modules","dataActions","c","require","$type","da","iNM","ns","n","p","pdp","md","window","__bindings__","viewDictionary","cn","module","exports","ReactDOM"],"sourceRoot":""}