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,cAAgB,CAAC,EAC9CD,OAAOC,aAAab,QAAOZ,EAAAA,EAAA,GACpBwB,OAAOC,aAAab,SAAW,CAAC,GAChCD,EAAQC,SAGXY,OAAOC,aAAaZ,YAAWb,EAAAA,EAAA,GAC5BwB,OAAOC,aAAaZ,aAAe,CAAC,GACpCF,EAAQE,aAEY,MAAMa,EAAiB,CAAC,EAC/BA,EAAe,iEAAmE,CAC1FZ,EAAGA,IAAMC,EAAQ,MACjBY,GAAI,wCAEpBH,OAAOC,aAAeD,OAAOC,cAAgB,CAAC,EAC9CD,OAAOC,aAAaC,eAAc1B,EAAAA,EAAA,GACPwB,OAAOC,aAAaC,gBAAkB,CAAC,GACvCA,E,QCtC3BE,EAAOC,QAAUlD,K,SCAjBiD,EAAOC,QAAUC,Q","sources":["webpack://Msdyn365.Commerce.Online/./src/modules/eshop-page-title/eshop-page-title.tsx?b8f5","webpack://Msdyn365.Commerce.Online/./src/modules/eshop-page-title/eshop-page-title.view.tsx?d5f0","webpack://Msdyn365.Commerce.Online/./lib/eshop-page-title/module-registration.js?f9de","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\n/* tslint:disable: no-duplicate-imports */\r\nimport * as MsDyn365 from '@msdyn365-commerce/core';\r\n\r\nimport * as React from 'react';\r\n\r\nimport { IEshopPageTitleProps } from './eshop-page-title.props.autogenerated';\r\n\r\nexport interface IEshopPageTitleViewProps extends IEshopPageTitleProps<{}> {\r\n title?: React.ReactNode;\r\n enablePrimaryColour: boolean;\r\n className: string;\r\n TitleStyle: string;\r\n TitlePrimaryColour: string;\r\n}\r\n\r\n/**\r\n *\r\n * EshopPageTitle component\r\n */\r\nclass EshopPageTitle extends React.PureComponent> {\r\n public render(): JSX.Element | null {\r\n const { config } = this.props;\r\n\r\n const text = config.title && ;\r\n\r\n let userStyle = config.className ? config.className : ' ';\r\n\r\n const PageTitleViewProps = {\r\n ...this.props,\r\n title: text,\r\n enablePrimaryColour: config.enablePrimaryColour,\r\n className: userStyle,\r\n TitleStyle: 'eshop-page-title',\r\n TitlePrimaryColour: 'eshop-page-title enable-primary-colour'\r\n };\r\n\r\n return this.props.renderView(PageTitleViewProps) as React.ReactElement;\r\n }\r\n\r\n private _handleTextChange = (event: MsDyn365.ContentEditableEvent) => this.props.config.title = event.target.value;\r\n}\r\nexport default EshopPageTitle;\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/* tslint:disable: no-duplicate-imports */\r\nimport * as React from 'react';\r\n\r\nimport { IEshopPageTitleViewProps } from './eshop-page-title';\r\n\r\n/**\r\n *\r\n * EshopContentTemplate1View component\r\n * @extends {React.PureComponent}\r\n */\r\nexport class EshopPageTitleView extends React.PureComponent {\r\n public render(): JSX.Element | null {\r\n const { title, enablePrimaryColour, className, TitleStyle, TitlePrimaryColour } = this.props;\r\n\r\n let resultStyle = `${className}` + ` ` + `${TitleStyle}`;\r\n\r\n if (enablePrimaryColour) {\r\n resultStyle = `${className}` + ` ` + `${TitlePrimaryColour}`;\r\n }\r\n\r\n return (\r\n
\r\n {title}\r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default EshopPageTitleView;","const binding = { modules: {}, dataActions: {} };\n\n (binding.modules['eshop-page-title'] = {\n c: () => require('partner/modules/eshop-page-title/eshop-page-title.tsx'),\n $type: 'contentModule',\n da: [],\n \n iNM: false,\n ns: '__local__',\n n: 'eshop-page-title',\n p: '__local__',\n \n pdp: '',\n \n \n md: 'src/modules/eshop-page-title'\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|eshop-page-title|eshop-page-title'] = {\n c: () => require('partner/modules/eshop-page-title/eshop-page-title.view.tsx'),\n cn: '__local__-__local__-eshop-page-title'\n };\nwindow.__bindings__ = window.__bindings__ || {};\nwindow.__bindings__.viewDictionary = {\n ...window.__bindings__.viewDictionary || {},\n ...viewDictionary\n };","module.exports = React;","module.exports = ReactDOM;"],"names":["EshopPageTitle","React","constructor","_handleTextChange","event","this","props","config","title","target","value","render","text","MsDyn365","editProps","onEdit","requestContext","context","request","userStyle","className","PageTitleViewProps","_objectSpread","enablePrimaryColour","TitleStyle","TitlePrimaryColour","renderView","EshopPageTitleView","resultStyle","Object","assign","id","renderModuleAttributes","binding","modules","dataActions","c","require","$type","da","iNM","ns","n","p","pdp","md","window","__bindings__","viewDictionary","cn","module","exports","ReactDOM"],"sourceRoot":""}