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AAaC,eAActB,EAAAA,EAAA,GACPoB,OAAOC,aAAaC,gBAAkB,IACtCA,I,MCtC3BE,EAAOC,QAAU7C,O,OCAjB4C,EAAOC,QAAUC,W","sources":["webpack://Msdyn365.Commerce.Online/./src/modules/custom-contentcode-block/custom-contentcode-block.tsx?3093","webpack://Msdyn365.Commerce.Online/./src/modules/custom-contentcode-block/custom-contentcode-block.view.tsx?f7a6","webpack://Msdyn365.Commerce.Online/./lib/custom-contentcode-block/module-registration.js?4b3f","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/* eslint-disable no-duplicate-imports */\r\nimport * as MsDyn365 from '@msdyn365-commerce/core';\r\nimport classnames from 'classnames';\r\nimport * as React from 'react';\r\nimport { ICustomContentcodeBlockProps } from './custom-contentcode-block.props.autogenerated';\r\n\r\nexport interface ITextBlockViewProps extends ICustomContentcodeBlockProps<{}> {\r\n paragraph?: React.ReactNode;\r\n className?: string;\r\n}\r\n\r\n/**\r\n *\r\n * TextBlock component\r\n */\r\nclass TextBlock 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 textBlockViewProps = {\r\n ...this.props,\r\n paragraph: text,\r\n className: classnames('ms-text-block', className)\r\n };\r\n return this.props.renderView(textBlockViewProps) 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 TextBlock;\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/* eslint-disable no-duplicate-imports */\r\nimport * as React from 'react';\r\nimport { ITextBlockViewProps } from './custom-contentcode-block';\r\n\r\nconst TextBlockView: React.FC = props => (\r\n
\r\n {props.paragraph}\r\n
\r\n);\r\n\r\nexport default TextBlockView;\r\n","const binding = { modules: {}, dataActions: {} };\n\n (binding.modules['custom-contentcode-block'] = {\n c: () => require('partner/modules/custom-contentcode-block/custom-contentcode-block.tsx'),\n $type: 'contentModule',\n da: [],\n \n iNM: false,\n ns: '__local__',\n n: 'custom-contentcode-block',\n p: '__local__',\n \n pdp: '',\n \n \n md: 'src/modules/custom-contentcode-block'\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|custom-contentcode-block|custom-contentcode-block'] = {\n c: () => require('partner/modules/custom-contentcode-block/custom-contentcode-block.view.tsx'),\n cn: '__local__-__local__-custom-contentcode-block'\n };\nwindow.__bindings__ = window.__bindings__ || {};\nwindow.__bindings__.viewDictionary = {\n ...window.__bindings__.viewDictionary || {},\n ...viewDictionary\n };","module.exports = React;","module.exports = ReactDOM;"],"names":["TextBlock","React","constructor","handleTextChange","event","this","props","config","paragraph","target","value","render","className","text","MsDyn365","editProps","onEdit","requestContext","context","request","textBlockViewProps","_objectSpread","classnames","renderView","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":""}