{"version":3,"sources":["webpack:///./components/withWorldReady.js","webpack:///./pages/error/webscrError.js"],"names":["initializeWorldReady","withWorldReady","WrappedComponent","locale","arguments","length","undefined","concat","templateData","language","country","props","React","createElement","WorldReadyContextProvider","WorldReadyProvider","webscrData","WebscrErrorWithTheme","withTheme","_webscrData$jsonParam","_webscrData$jsonParam2","worldReady","useContext","WorldReadyContext","useEffect","webscrErrorCode","IntialData","hideSpinnerOverlay","trackErrorPageIM","pageSpec","PAGE_SPEC","WEBSCR_ERROR_PAGE","errorCode","webscrErrorMessage","MessageFormat","id","format","currency_code","jsonParams","Fragment","FullPageError","title","Footer","WebscrErrorWithWorldReady","ReactDOM","render","document","getElementById"],"mappings":";;;;;yDAAA,kOAMAA,cAkBeC,IAhBf,SACEC,GAEA,IADAC,EAAMC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,MAAAG,QAAkB,OAAZC,UAAY,IAAZA,SAAY,EAAZA,IAAcC,WAAY,KAAI,KAAAF,QAAgB,OAAZC,UAAY,IAAZA,SAAY,EAAZA,IAAcE,UAAW,MAWvE,OATyB,SAACC,GACxB,OACEC,IAAAC,cAACC,IAAyB,CAACX,OAAQA,GACjCS,IAAAC,cAACE,IAAkB,KACjBH,IAAAC,cAACX,EAAqBS,Q;;;;;;w9WCE5BK,EAAaR,IAAaQ,YAAc,GA8B5C,IAAMC,EAAuBC,aA7B7B,WAAuB,IAAAC,EAAAC,EACfC,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,8BAAF5B,OAAgCkB,KACjCW,OAAO,CAAEC,cAAoD,QAAvClB,EAAEH,SAAsB,QAAZI,EAAVJ,EAAYsB,kBAAU,IAAAlB,OAAZ,EAAVA,EAAwBiB,qBAAa,IAAAlB,IAAI,KAMpE,OALIc,GAAsB,8BAAJ1B,OAAkCkB,KACtDQ,EAAqB,IAAIC,IAAcb,EAAY,CACjDc,GAAI,6CACHC,UAGHxB,IAAAC,cAAAD,IAAA2B,SAAA,KACE3B,IAAAC,cAAC2B,IAAa,CAACC,MAAOR,IACtBrB,IAAAC,cAAC6B,IAAM,UAMPC,EAA4B1C,YAAegB,GAEjD2B,IAASC,OACPjC,IAAAC,cAAC8B,EAAyB,MAC1BG,SAASC,eAAe,oB","file":"webscrError.d9ecf97d008b50bff037.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