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OAAOC,cAAgB,GAC7CD,OAAOC,aAAab,QAAOhB,EAAAA,EAAA,GACpB4B,OAAOC,aAAab,SAAW,IAC/BD,EAAQC,SAGXY,OAAOC,aAAaZ,YAAWjB,EAAAA,EAAA,GAC5B4B,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,eAAc9B,EAAAA,EAAA,GACP4B,OAAOC,aAAaC,gBAAkB,IACtCA,UCtC3BE,EAAOC,QAAUhD,cCAjB+C,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\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","RichTextComponent","text","href","src","alt","render","this","props","config","viewProps","_objectSpread","moduleProps","classnames","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":""}