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,OAAOC,aAAaZ,YAApB,OACGW,OAAOC,aAAaZ,aAAe,IACnCF,EAAQE,aAEY,MAAMa,EAAiB,GAC9BA,EAAe,qGAAuG,CAC9HZ,EAAG,IAAMC,EAAQ,MACjBY,GAAI,0DAEpBH,OAAOC,aAAeD,OAAOC,cAAgB,GAC7CD,OAAOC,aAAaC,eAApB,OAC2BF,OAAOC,aAAaC,gBAAkB,IACtCA,uBCtC3BE,EAAOC,QAAU/C,2BCAjB8C,EAAOC,QAAUC","sources":["webpack://mattressfirm/./src/modules/mfrm-footer-customer-service-block/mfrm-footer-customer-service-block.tsx?ce71","webpack://mattressfirm/./src/modules/mfrm-footer-customer-service-block/mfrm-footer-customer-service-block.view.tsx?f3f4","webpack://mattressfirm/./lib/mfrm-footer-customer-service-block/module-registration.js?875c","webpack://mattressfirm/external var \"React\"?0d3b","webpack://mattressfirm/external var \"ReactDOM\"?853b"],"sourcesContent":["/*!\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 * as MsDyn365 from '@msdyn365-commerce/core';\r\nimport classnames from 'classnames';\r\nimport { IMfrmFooterCustomerServiceBlockData } from './mfrm-footer-customer-service-block.data';\r\nimport { IMfrmFooterCustomerServiceBlockProps } from './mfrm-footer-customer-service-block.props.autogenerated';\r\n\r\nexport interface IMfrmFooterCustomerServiceBlockViewProps\r\n extends IMfrmFooterCustomerServiceBlockProps {\r\n paragraph: MsDyn365.RichText;\r\n phoneNumber: string;\r\n className: string;\r\n}\r\n\r\n/**\r\n *\r\n * MfrmFooterCustomerServiceBlock component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass MfrmFooterCustomerServiceBlock extends React.PureComponent<\r\n IMfrmFooterCustomerServiceBlockProps\r\n > {\r\n public render(): JSX.Element | null {\r\n const { paragraph, className, phoneNumber } = this.props.config;\r\n\r\n const text = paragraph && (\r\n \r\n );\r\n\r\n const footerPhoneNumber = phoneNumber &&\r\n (\r\n {\r\n // @ts-ignore\r\n if (utag) {\r\n // @ts-ignore\r\n // tslint:disable-next-line: object-literal-key-quotes\r\n utag.link({ 'event': 'call-engagement', 'event_type': 'call_engagement', 'event_category': 'call', 'event_action': 'footer click', 'event_label': 'call engagement', 'event_noninteraction': 'false' });\r\n }\r\n }}\r\n >\r\n {phoneNumber}\r\n \r\n );\r\n\r\n const mfrmfooterCustomerServiceBlockProps = {\r\n ...this.props,\r\n paragraph: text,\r\n phoneNumber: footerPhoneNumber,\r\n className: classnames('ms-text-block', className)\r\n };\r\n return this.props.renderView(mfrmfooterCustomerServiceBlockProps);\r\n }\r\n\r\n public handleTextChange = (event: MsDyn365.ContentEditableEvent) => (this.props.config.paragraph = event.target.value);\r\n}\r\n\r\nexport default MfrmFooterCustomerServiceBlock;\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\nimport { IMfrmFooterCustomerServiceBlockViewProps } from './mfrm-footer-customer-service-block';\r\n\r\nexport default (props: IMfrmFooterCustomerServiceBlockViewProps) => {\r\n const { className, paragraph, phoneNumber } = props;\r\n\r\n return (\r\n
\r\n {phoneNumber}\r\n {paragraph}\r\n
\r\n );\r\n};\r\n","const binding = { modules: {}, dataActions: {} };\n\n (binding.modules['mfrm-footer-customer-service-block'] = {\n c: () => require('partner/modules/mfrm-footer-customer-service-block/mfrm-footer-customer-service-block.tsx'),\n $type: 'contentModule',\n da: [],\n \n iNM: false,\n ns: '__local__',\n n: 'mfrm-footer-customer-service-block',\n p: '__local__',\n \n pdp: '',\n \n \n md: 'src/modules/mfrm-footer-customer-service-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|mfrm-footer-customer-service-block|mfrm-footer-customer-service-block'] = {\n c: () => require('partner/modules/mfrm-footer-customer-service-block/mfrm-footer-customer-service-block.view.tsx'),\n cn: '__local__-__local__-mfrm-footer-customer-service-block'\n };\nwindow.__bindings__ = window.__bindings__ || {};\nwindow.__bindings__.viewDictionary = {\n ...window.__bindings__.viewDictionary || {},\n ...viewDictionary\n };","module.exports = React;","module.exports = ReactDOM;"],"names":["MfrmFooterCustomerServiceBlock","React","constructor","handleTextChange","event","this","props","config","paragraph","target","value","render","className","phoneNumber","text","MsDyn365","editProps","onEdit","requestContext","context","request","footerPhoneNumber","href","replace","onClick","utag","link","mfrmfooterCustomerServiceBlockProps","classnames","renderView","binding","modules","dataActions","c","require","$type","da","iNM","ns","n","p","pdp","md","window","__bindings__","viewDictionary","cn","module","exports","ReactDOM"],"sourceRoot":""}