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AAA,cAAA,KAAGqB,KAAK,gDAAgDC,OAAO,SAASC,IAAI,uBACvE,IAAG,qnBCvDxB,MAAMC,EAAU,CAAEC,QAAS,GAAIC,YAAa,IAEvCF,EAAQC,QAAQ,sBAAwB,CACrCE,EAAGA,IAAMC,EAAQ,MACjBC,MAAO,gBACPC,GAAI,GAEJC,KAAK,EACLC,GAAI,YACJC,EAAG,qBACHC,EAAG,YAEHC,IAAK,GAGLC,GAAI,kCAKR9B,OAAO+B,aAAe/B,OAAO+B,cAAgB,GAC7C/B,OAAO+B,aAAaZ,QAAOa,EAAAA,EAAA,GACpBhC,OAAO+B,aAAaZ,SAAW,IAC/BD,EAAQC,SAGXnB,OAAO+B,aAAaX,YAAWY,EAAAA,EAAA,GAC5BhC,OAAO+B,aAAaX,aAAe,IACnCF,EAAQE,aAEY,MAAMa,EAAiB,GAC9BA,EAAe,qEAAuE,CAC9FZ,EAAGA,IAAMC,EAAQ,MACjBY,GAAI,0CAEpBlC,OAAO+B,aAAe/B,OAAO+B,cAAgB,GAC7C/B,OAAO+B,aAAaE,eAAcD,EAAAA,EAAA,GACPhC,OAAO+B,aAAaE,gBAAkB,IACtCA,UCtC3BE,EAAOC,QAAU1C","sources":["webpack://Dobbies.Commerce/./src/modules/dobbies-trustpilot/dobbies-trustpilot.tsx?bb50","webpack://Dobbies.Commerce/./src/modules/dobbies-trustpilot/dobbies-trustpilot.view.tsx?b99d","webpack://Dobbies.Commerce/./lib/dobbies-trustpilot/module-registration.js?25e5","webpack://Dobbies.Commerce/external var \"React\"?0d3b"],"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 { IDobbiesTrustpilotData } from './dobbies-trustpilot.data';\r\nimport { IDobbiesTrustpilotProps } from './dobbies-trustpilot.props.autogenerated';\r\n\r\nexport interface IDobbiesTrustpilotViewProps extends IDobbiesTrustpilotProps {}\r\n\r\n/**\r\n *\r\n * DobbiesTrustpilot component\r\n * @extends {React.PureComponent>}\r\n */\r\nclass DobbiesTrustpilot extends React.PureComponent> {\r\n public render(): JSX.Element | null {\r\n return this.props.renderView(this.props);\r\n }\r\n}\r\n\r\nexport default DobbiesTrustpilot;\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\ndeclare global {\r\n interface Window {\r\n Trustpilot: any;\r\n }\r\n}\r\n\r\nimport * as React from 'react';\r\nimport { IDobbiesTrustpilotViewProps } from './dobbies-trustpilot';\r\n\r\nexport default (props: IDobbiesTrustpilotViewProps) => {\r\n const ref = React.useRef(null);\r\n React.useEffect(() => {\r\n if (window.Trustpilot) {\r\n window.Trustpilot.loadFromElement(ref.current, true);\r\n }\r\n }, []);\r\n const { config } = props;\r\n if (config.dataTags) {\r\n return (\r\n \r\n \r\n {' '}\r\n Trustpilot\r\n \r\n \r\n );\r\n } else {\r\n return (\r\n \r\n \r\n {' '}\r\n Trustpilot\r\n \r\n \r\n );\r\n }\r\n};\r\n","const binding = { modules: {}, dataActions: {} };\n\n (binding.modules['dobbies-trustpilot'] = {\n c: () => require('partner/modules/dobbies-trustpilot/dobbies-trustpilot.tsx'),\n $type: 'contentModule',\n da: [],\n \n iNM: false,\n ns: '__local__',\n n: 'dobbies-trustpilot',\n p: '__local__',\n \n pdp: '',\n \n \n md: 'src/modules/dobbies-trustpilot'\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-trustpilot|dobbies-trustpilot'] = {\n c: () => require('partner/modules/dobbies-trustpilot/dobbies-trustpilot.view.tsx'),\n cn: '__local__-__local__-dobbies-trustpilot'\n };\nwindow.__bindings__ = window.__bindings__ || {};\nwindow.__bindings__.viewDictionary = {\n ...window.__bindings__.viewDictionary || {},\n ...viewDictionary\n };","module.exports = React;"],"names":["DobbiesTrustpilot","React","render","this","props","renderView","ref","window","Trustpilot","loadFromElement","current","config","dataTags","className","classname","dataLocale","dataTemplateId","dataBusinessunitId","dataStyleHeight","dataStyleWidth","dataTheme","dataStars","href","target","rel","binding","modules","dataActions","c","require","$type","da","iNM","ns","n","p","pdp","md","__bindings__","_objectSpread","viewDictionary","cn","module","exports"],"sourceRoot":""}