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AASC,eAAe","sources":["webpack:///./components/withWorldReady.js","webpack:///./pages/error/landingerror.js"],"sourcesContent":["import React from 'react';\nimport { ContextProvider as WorldReadyContextProvider } from '@paypalcorp/worldready-react';\nimport { WorldReadyProvider } from '@paypalcorp/pp-react-worldready';\nimport templateData from './../utility/getTemplateData';\nimport { initializeWorldReady } from '../utility/worldReadyUtils';\n\ninitializeWorldReady();\n\nfunction withWorldReady(\n WrappedComponent,\n locale = `${templateData?.language || 'en'}-${templateData?.country || 'US'}`\n) {\n return (props) => {\n return (\n \n \n \n \n \n );\n };\n}\n\nexport default withWorldReady;\n","import 'consumerweb-shim';\nimport 'core-js/stable'; // If imports from pp-react are required, please test this component on IE\nimport 'regenerator-runtime/runtime';\nimport React, { useEffect, useContext } from 'react';\nimport ReactDOM from 'react-dom';\nimport * as AppActions from '../../actions/AppActions';\nimport { hideSpinnerOverlay } from '../../utility/helper';\nimport Footer from '../../components/footer/footer';\nimport '../../../css/ppvx-app.less';\nimport withTheme from '../../components/withTheme';\nimport FullPageError from './FullPageError';\nimport {\n Context as WorldReadyContext,\n Message,\n} from '@paypalcorp/worldready-react';\nimport withWorldReady from '../../components/withWorldReady';\nimport { MessageFormat } from '@paypalcorp/worldready';\nfunction LandingErrorPage() {\n const worldReady = useContext(WorldReadyContext);\n const isGiftaid = window.location.href.includes('giftaid');\n useEffect(() => {\n AppActions.updateCurrentPage({ currentPage: 'landingError' });\n hideSpinnerOverlay();\n }, []);\n const handleReturn = () => {\n window.location.pathname = new MessageFormat(worldReady, {\n id: 'errors.landingerror.link.paypal',\n }).format();\n };\n\n return (\n <>\n }\n body={\n isGiftaid ? (\n \n ) : (\n \n )\n }\n linkLabel={}\n handleLinkClick={handleReturn}\n showCloseButton={true}\n />\n \n >\n );\n}\n\nconst LandingErrorWithTheme = withWorldReady(withTheme(LandingErrorPage));\n\nReactDOM.render(\n ,\n document.getElementById('donateWrapper')\n);\n"],"names":["initializeWorldReady","WrappedComponent","locale","arguments","length","undefined","concat","templateData","language","country","props","React","WorldReadyContextProvider","WorldReadyProvider","LandingErrorWithTheme","withWorldReady","withTheme","worldReady","useContext","WorldReadyContext","isGiftaid","window","location","href","includes","useEffect","AppActions","currentPage","hideSpinnerOverlay","FullPageError","title","Message","id","body","linkLabel","handleLinkClick","pathname","MessageFormat","format","showCloseButton","Footer","ReactDOM","document","getElementById"],"sourceRoot":""}