{"version":3,"sources":["webpack:///./components/withWorldReady.js","webpack:///./pages/error/webscrError.js"],"names":["initializeWorldReady","withWorldReady","WrappedComponent","locale","templateData","language","country","props","webscrData","WebscrErrorWithTheme","withTheme","worldReady","useContext","WorldReadyContext","useEffect","webscrErrorCode","IntialData","hideSpinnerOverlay","trackErrorPageIM","pageSpec","PAGE_SPEC","WEBSCR_ERROR_PAGE","errorCode","webscrErrorMessage","MessageFormat","id","format","currency_code","jsonParams","title","WebscrErrorWithWorldReady","ReactDOM","render","document","getElementById"],"mappings":";;;;;yDAAA,kOAMAA,cAkBeC,IAhBf,SACEC,GAEA,IADAC,EACA,kEADwB,OAAZC,UAAY,IAAZA,SAAA,EAAAA,IAAcC,WAAY,KACtC,aAD0D,OAAZD,UAAY,IAAZA,SAAA,EAAAA,IAAcE,UAAW,MAWvE,OATyB,SAACC,GACxB,OACE,kBAAC,IAAD,CAA2BJ,OAAQA,GACjC,kBAAC,IAAD,KACE,kBAACD,EAAqBK,Q;;;;;;w9WCE5BC,EAAaJ,IAAaI,YAAc,GA8B5C,IAAMC,EAAuBC,aA7B7B,WAAuB,QACfC,EAAaC,qBAAWC,KAC9BC,qBAAU,WACR,IAAMC,EAAkBC,IAAWD,gBACnCE,cACAC,YAAiB,CACfC,SAAUC,IAAUC,kBACpBC,UAAWP,MAEZ,IAEH,IAAMA,EAAkBC,IAAWD,gBAE/BQ,EAAqB,IAAIC,IAAcb,EAAY,CACrDc,GAAI,8BAAF,OAAgCV,KACjCW,OAAO,CAAEC,cAAa,UAAEnB,SAAF,UAAEA,EAAYoB,kBAAd,aAAE,EAAwBD,qBAA1B,QAA2C,KAMpE,OALIJ,GAAsB,8BAAJ,OAAkCR,KACtDQ,EAAqB,IAAIC,IAAcb,EAAY,CACjDc,GAAI,6CACHC,UAGH,oCACE,kBAAC,IAAD,CAAeG,MAAON,IACtB,kBAAC,IAAD,UAMAO,EAA4B7B,YAAeQ,GAEjDsB,IAASC,OACP,kBAACF,EAAD,MACAG,SAASC,eAAe,oB","file":"webscrError.0c376b9bd2e7a8a11fc2.bundle.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 const WrapperComponent = (props) => {\n return (\n \n \n \n \n \n );\n };\n return WrapperComponent;\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 IntialData from '../../utility/getTemplateData';\nimport Footer from '../../components/footer/footer';\nimport templateData from '../../utility/getTemplateData';\nimport { hideSpinnerOverlay } from '../../utility/helper';\nimport withTheme from '../../components/withTheme';\nimport FullPageError from './FullPageError';\nimport '../../../css/ppvx-app.less';\nimport '../../../css/ppvx.less';\nimport { trackErrorPageIM } from '../../fpti/fpti';\nimport { PAGE_SPEC } from '../../fpti/fptiConstants';\nimport withWorldReady from '../../components/withWorldReady';\nimport { MessageFormat } from '@paypalcorp/worldready';\nimport { Context as WorldReadyContext } from '@paypalcorp/worldready-react';\nlet webscrData = templateData.webscrData || {};\nfunction WebscrError() {\n const worldReady = useContext(WorldReadyContext);\n useEffect(() => {\n const webscrErrorCode = IntialData.webscrErrorCode;\n hideSpinnerOverlay();\n trackErrorPageIM({\n pageSpec: PAGE_SPEC.WEBSCR_ERROR_PAGE,\n errorCode: webscrErrorCode,\n });\n }, []);\n\n const webscrErrorCode = IntialData.webscrErrorCode;\n\n let webscrErrorMessage = new MessageFormat(worldReady, {\n id: `errors.webscr.webscr.error.${webscrErrorCode}`,\n }).format({ currency_code: webscrData?.jsonParams?.currency_code ?? '' });\n if (webscrErrorMessage == `errors.webscr.webscr.error.${webscrErrorCode}`) {\n webscrErrorMessage = new MessageFormat(worldReady, {\n id: 'errors.webscr.webscr.error.GENERIC_ERROR',\n }).format();\n }\n return (\n <>\n \n \n >\n );\n}\n\nconst WebscrErrorWithTheme = withTheme(WebscrError);\nconst WebscrErrorWithWorldReady = withWorldReady(WebscrErrorWithTheme);\n\nReactDOM.render(\n ,\n document.getElementById('donateWrapper')\n);\n"],"sourceRoot":""}