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WhB,EAAAA,EAAA,GAC5B2B,OAAOC,aAAaZ,aAAe,IACnCF,EAAQE,aAEY,MAAMa,EAAiB,GAC9BA,EAAe,mFAAqF,CAC5GZ,EAAGA,IAAMC,EAAQ,MACjBY,GAAI,iDAEpBH,OAAOC,aAAeD,OAAOC,cAAgB,GAC7CD,OAAOC,aAAaC,eAAc7B,EAAAA,EAAA,GACP2B,OAAOC,aAAaC,gBAAkB,IACtCA,UCtC3BE,EAAOC,QAAU7C,cCAjB4C,EAAOC,QAAUC","sources":["webpack://Dobbies.Commerce/./src/modules/dobbies-footer-copyrights/dobbies-footer-copyrights.tsx?725c","webpack://Dobbies.Commerce/./src/modules/dobbies-footer-copyrights/dobbies-footer-copyrights.view.tsx?71ae","webpack://Dobbies.Commerce/./lib/dobbies-footer-copyrights/module-registration.js?9297","webpack://Dobbies.Commerce/external var \"React\"?0d3b","webpack://Dobbies.Commerce/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\r\nimport * as React from 'react';\r\n\r\nimport { IDobbiesFooterCopyrightsProps } from './dobbies-footer-copyrights.props.autogenerated';\r\n\r\nimport { IModuleProps, INodeProps } from '@msdyn365-commerce-modules/utilities';\r\nimport { RichText, RichTextComponent } from '@msdyn365-commerce/core';\r\nimport classnames from 'classnames';\r\n\r\nexport interface IDobbiesFooterCopyrightsViewProps extends IDobbiesFooterCopyrightsProps<{}> {\r\n moduleProps: IModuleProps;\r\n contentProps: INodeProps;\r\n copyRightsText: React.ReactNode;\r\n}\r\n\r\n/**\r\n *\r\n * DobbiesFooterCopyrights component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass DobbiesFooterCopyrights extends React.PureComponent> {\r\n public render(): JSX.Element | null {\r\n const { copyRights, className } = this.props.config;\r\n const viewProps = {\r\n ...this.props,\r\n moduleProps: { className: classnames('ms-dobbies-footer-copyrights', className), moduleProps: this.props, tag: 'div' },\r\n contentProps: { className: 'ms-dobbies-footer-copyrights__content', tag: 'div' },\r\n copyRightsText: this.getCopyRightText(copyRights)\r\n };\r\n return this.props.renderView(viewProps) as React.ReactElement;\r\n }\r\n /* Following function renders richtext for copy rights */\r\n private getCopyRightText = (copyRights: RichText | undefined): React.ReactNode => {\r\n return (\r\n
\r\n {copyRights && (\r\n \r\n \r\n \r\n )}\r\n
\r\n );\r\n };\r\n}\r\n\r\nexport default DobbiesFooterCopyrights;\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\nimport { Module, Node } from '@msdyn365-commerce-modules/utilities';\r\nimport * as React from 'react';\r\nimport { IDobbiesFooterCopyrightsViewProps } from './dobbies-footer-copyrights';\r\n\r\nexport default (props: IDobbiesFooterCopyrightsViewProps) => {\r\n const { moduleProps, contentProps, copyRightsText } = props;\r\n\r\n /* VSI Customization - START */\r\n /* condition either to show or hide the header */\r\n if (props.context.request.query!.onlyBody && props.context.request.query!.onlyBody === 'true') {\r\n return null;\r\n }\r\n /* VSI Customization - END */\r\n\r\n return (\r\n \r\n {copyRightsText}\r\n \r\n );\r\n};\r\n","const binding = { modules: {}, dataActions: {} };\n\n (binding.modules['dobbies-footer-copyrights'] = {\n c: () => require('partner/modules/dobbies-footer-copyrights/dobbies-footer-copyrights.tsx'),\n $type: 'contentModule',\n da: [],\n \n iNM: false,\n ns: '__local__',\n n: 'dobbies-footer-copyrights',\n p: '__local__',\n \n pdp: '',\n \n \n md: 'src/modules/dobbies-footer-copyrights'\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|dobbies-footer-copyrights|dobbies-footer-copyrights'] = {\n c: () => require('partner/modules/dobbies-footer-copyrights/dobbies-footer-copyrights.view.tsx'),\n cn: '__local__-__local__-dobbies-footer-copyrights'\n };\nwindow.__bindings__ = window.__bindings__ || {};\nwindow.__bindings__.viewDictionary = {\n ...window.__bindings__.viewDictionary || {},\n ...viewDictionary\n };","module.exports = React;","module.exports = ReactDOM;"],"names":["DobbiesFooterCopyrights","React","constructor","getCopyRightText","copyRights","className","classnames","this","props","config","RichTextComponent","text","render","viewProps","_objectSpread","moduleProps","tag","contentProps","copyRightsText","renderView","context","request","query","onlyBody","Module","Object","assign","Node","binding","modules","dataActions","c","require","$type","da","iNM","ns","n","p","pdp","md","window","__bindings__","viewDictionary","cn","module","exports","ReactDOM"],"sourceRoot":""}