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A,cAAA,OAAKuB,IAAKd,EAAWc,IAAKC,IAAI,GAAGC,KAAK,iBAAmBzB,EAAAA,cAAA,OAAKY,UAAWE,EAAQF,YAE/H,OACEZ,EAAAA,cAAA,OAAKY,UAAWC,EAAoBD,WAClCZ,EAAAA,cAAA,WAAMsB,GACNtB,EAAAA,cAAA,OAAKY,UAAU,OACbZ,EAAAA,cAAA,OAAKY,UAAU,mBAAmBc,GAClC1B,EAAAA,cAAA,OAAKY,UAAU,mBAAmBe,IAI1C,EAGF,+mBChDA,MAAMC,EAAU,CAAEC,QAAS,CAAC,EAAGC,YAAa,CAAC,GAExCF,EAAQC,QAAQ,4BAA8B,CAC3CE,EAAGA,IAAMC,EAAQ,MACjBC,MAAO,gBACPC,GAAI,GAEJC,KAAK,EACLC,GAAI,YACJC,EAAG,2BACHC,EAAG,YAEHC,IAAK,GAGLC,GAAI,wCAKRC,OAAOC,aAAeD,OAAOC,cAAgB,CAAC,EAC9CD,OAAOC,aAAab,QAAOvB,EAAAA,EAAA,GACpBmC,OAAOC,aAAab,SAAW,CAAC,GAChCD,EAAQC,SAGXY,OAAOC,aAAaZ,YAAWxB,EAAAA,EAAA,GAC5BmC,OAAOC,aAAaZ,aAAe,CAAC,GACpCF,EAAQE,aAEY,MAAMa,EAAiB,CAAC,EAC/BA,EAAe,iFAAmF,CAC1GZ,EAAGA,IAAMC,EAAQ,MACjBY,GAAI,gDAEpBH,OAAOC,aAAeD,OAAOC,cAAgB,CAAC,EAC9CD,OAAOC,aAAaC,eAAcrC,EAAAA,EAAA,GACPmC,OAAOC,aAAaC,gBAAkB,CAAC,GACvCA,UCtC3BE,EAAOC,QAAU9C","sources":["webpack://Msdyn365.Commerce.Online/./src/modules/ecomm-content-template-3/ecomm-content-template-3.tsx?44d5","webpack://Msdyn365.Commerce.Online/./src/modules/ecomm-content-template-3/ecomm-content-template-3.view.tsx?f45b","webpack://Msdyn365.Commerce.Online/./lib/ecomm-content-template-3/module-registration.js?04ea","webpack://Msdyn365.Commerce.Online/external var \"React\"?0d3b"],"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 React from 'react';\r\n\r\nimport * as MsDyn365 from '@msdyn365-commerce/core';\r\n\r\nimport { IEcommContentTemplate3Data } from './ecomm-content-template-3.data';\r\nimport { IEcommContentTemplate3Props } from './ecomm-content-template-3.props.autogenerated';\r\n\r\nexport interface IEcommContentTemplate3ViewProps extends IEcommContentTemplate3Props {\r\n firstImage: MsDyn365.IImageData;\r\n secondImage: MsDyn365.IImageData;\r\n thirdImage: MsDyn365.IImageData;\r\n anchorID: string;\r\n TemplateContainerStyle: any;\r\n ImageContainerStyle: any;\r\n NoImage: any;\r\n}\r\n\r\n/**\r\n *\r\n * EcommContentTemplate3 component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass EcommContentTemplate3 extends React.PureComponent> {\r\n public render(): JSX.Element | null {\r\n const { config } = this.props;\r\n\r\n const EcommContentTemplateViewProps = {\r\n ...this.props,\r\n firstImage: config.firstImage,\r\n secondImage: config.secondImage,\r\n thirdImage: config.thirdImage,\r\n anchorID: config.anchorID,\r\n TemplateContainerStyle: {\r\n className: 'ecomm-content-template-3'\r\n },\r\n ImageContainerStyle: {\r\n className: 'img-container'\r\n },\r\n NoImage: {\r\n className: 'msc-empty_image'\r\n }\r\n };\r\n\r\n return this.props.renderView(EcommContentTemplateViewProps);\r\n }\r\n}\r\n\r\nexport default EcommContentTemplate3;\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 { IEcommContentTemplate3ViewProps } from './ecomm-content-template-3';\r\n\r\n/**\r\n *\r\n * EcommContentTemplate1View component\r\n * @extends {React.PureComponent}\r\n */\r\n export class EcommContentTemplate3View 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._renderImage()}
;\r\n }\r\n\r\n return
{this._renderImage()}
;\r\n }\r\n\r\n private _renderImage(): JSX.Element | null {\r\n const { firstImage, secondImage, thirdImage, ImageContainerStyle, NoImage } = this.props;\r\n\r\n let imgFirst = firstImage && firstImage.src ? :
;\r\n let imgSecond = secondImage && secondImage.src ? :
;\r\n let imgThird = thirdImage && thirdImage.src ? :
;\r\n\r\n return (\r\n
\r\n
{imgFirst}
\r\n
\r\n
{imgSecond}
\r\n
{imgThird}
\r\n
\r\n
\r\n );\r\n }\r\n }\r\n\r\nexport default EcommContentTemplate3View;","const binding = { modules: {}, dataActions: {} };\n\n (binding.modules['ecomm-content-template-3'] = {\n c: () => require('partner/modules/ecomm-content-template-3/ecomm-content-template-3.tsx'),\n $type: 'contentModule',\n da: [],\n \n iNM: false,\n ns: '__local__',\n n: 'ecomm-content-template-3',\n p: '__local__',\n \n pdp: '',\n \n \n md: 'src/modules/ecomm-content-template-3'\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-3|ecomm-content-template-3'] = {\n c: () => require('partner/modules/ecomm-content-template-3/ecomm-content-template-3.view.tsx'),\n cn: '__local__-__local__-ecomm-content-template-3'\n };\nwindow.__bindings__ = window.__bindings__ || {};\nwindow.__bindings__.viewDictionary = {\n ...window.__bindings__.viewDictionary || {},\n ...viewDictionary\n };","module.exports = React;"],"names":["EcommContentTemplate3","React","render","config","this","props","EcommContentTemplateViewProps","_objectSpread","firstImage","secondImage","thirdImage","anchorID","TemplateContainerStyle","className","ImageContainerStyle","NoImage","renderView","EcommContentTemplate3View","resultStyle","classname","style","id","_renderImage","imgFirst","src","alt","role","imgSecond","imgThird","binding","modules","dataActions","c","require","$type","da","iNM","ns","n","p","pdp","md","window","__bindings__","viewDictionary","cn","module","exports"],"sourceRoot":""}