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a,GAAInB,EAAMmB,IAAQnB,EAAMoB,uBAAuBpB,IAC3EA,EAAME,kBCXfmB,EAAOC,QAAU3B,cCAjB0B,EAAOC,QAAUC","sources":["webpack://henrys-ecommerce/./lib/text-block/module-registration.js?a78c","webpack://henrys-ecommerce/./src/modules/text-block/text-block.tsx?db84","webpack://henrys-ecommerce/./src/modules/text-block/text-block.view.tsx?9307","webpack://henrys-ecommerce/external var \"React\"?0d3b","webpack://henrys-ecommerce/external var \"ReactDOM\"?853b"],"sourcesContent":["const binding = { modules: {}, dataActions: {} };\n\n    (binding.modules['text-block'] = {\n        c: () => require('@msdyn365-commerce-modules/text-block/dist/lib/modules/text-block/text-block'),\n        $type: 'contentModule',\n        da: [],\n        \n        iNM: true,\n        ns: '@msdyn365-commerce-modules',\n        n: 'text-block',\n        p: 'text-block',\n        \n        pdp: '',\n        \n        \n        md: 'node_modules/@msdyn365-commerce-modules/text-block/dist/lib/modules/text-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['@msdyn365-commerce-modules|text-block|modules|text-block|text-block'] = {\n                c: () => require('@msdyn365-commerce-modules/text-block/dist/lib/modules/text-block/text-block.view.js'),\n                cn: '@msdyn365-commerce-modules-text-block-text-block'\n            };\nwindow.__bindings__ = window.__bindings__ || {};\nwindow.__bindings__.viewDictionary = {\n                        ...window.__bindings__.viewDictionary || {},\n                        ...viewDictionary\n                    };","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport * as MsDyn365 from '@msdyn365-commerce/core';\nimport classnames from 'classnames';\nimport * as React from 'react';\n\nimport { ITextBlockProps } from './text-block.props.autogenerated';\n\nexport interface ITextBlockViewProps extends ITextBlockProps<{}> {\n    paragraph?: React.ReactNode;\n    className?: string;\n}\n\n/**\n *\n * TextBlock component.\n */\nclass TextBlock extends React.PureComponent<ITextBlockProps<{}>> {\n    public render(): JSX.Element | null {\n        const { paragraph, className } = this.props.config;\n        const text = paragraph && (\n            <MsDyn365.RichTextComponent\n                text={paragraph}\n                editProps={{ onEdit: this.handleTextChange, requestContext: this.props.context.request }}\n            />\n        );\n        const textBlockViewProps = {\n            ...this.props,\n            paragraph: text,\n            className: classnames('ms-text-block', className)\n        };\n        return this.props.renderView(textBlockViewProps) as React.ReactElement;\n    }\n\n    public handleTextChange = (event: MsDyn365.ContentEditableEvent) => (this.props.config.paragraph = event.target.value);\n}\nexport default TextBlock;\n","/*!\n * Copyright (c) Microsoft Corporation.\n * All rights reserved. See LICENSE in the project root for license information.\n */\n\nimport * as React from 'react';\n\nimport { ITextBlockViewProps } from './text-block';\n\nconst TextBlockView: React.FC<ITextBlockViewProps> = props => (\n    <div className={props.className} id={props.id} {...props.renderModuleAttributes(props)}>\n        {props.paragraph}\n    </div>\n);\n\nexport default TextBlockView;\n","module.exports = React;","module.exports = ReactDOM;"],"names":["binding","modules","dataActions","c","require","$type","da","iNM","ns","n","p","pdp","md","window","__bindings__","_objectSpread","viewDictionary","cn","TextBlock","React","constructor","handleTextChange","event","this","props","config","paragraph","target","value","render","className","text","MsDyn365","editProps","onEdit","requestContext","context","request","textBlockViewProps","classnames","renderView","Object","assign","id","renderModuleAttributes","module","exports","ReactDOM"],"sourceRoot":""}