{"version":3,"sources":["i18n.js","versions.ts","services/Environments.ts","services/ApiClient.tsx","components/checkout/CheckoutRouter.tsx","WithFAQContext.tsx","components/icons/icon-404-ice.svg","common/payactiveLogo/logo3.png","components/checkout/Footer.tsx","NotFound404.tsx","App.tsx","serviceWorker.js","index.tsx"],"names":["i18n","use","Backend","LanguageDetector","initReactI18next","init","backend","loadPath","process","whitelist","fallbackLng","load","debug","ns","defaultNS","keySeparator","interpolation","escapeValue","formatSeparator","detection","order","react","wait","useSuspense","Environments","ApiClient","this","_instance","create","_instanceHardRetry","hardRetry","instance","axios","interceptors","request","config","headers","timeout","TIMEOUT","error","Promise","reject","axiosRetry","retries","retryCondition","_error","shouldResetTimeout","checkoutId","REACT_APP_API_DOMAIN","window","location","hostname","local","replace","dev","stage","prod","sandbox","response","Error","data","message","CheckoutRouter","useRouteMatch","params","redirectToAppPayment","FAQContext","React","createContext","toggleFAQ","deepLinkId","faqProps","open","WithAlertContext","children","useState","setFaqProps","Provider","value","Footer","t","useTranslation","Grid","sx","position","bottom","minWidth","style","maxWidth","alt","src","logo","Typography","fontWeight","fontSize","top","color","variant","useStyles","makeStyles","theme","headerText","opacity","textAlign","backButton","marginBottom","backgroundColor","textTransform","width","headerIcon","marginTop","footerLogo","margin","NotFound404","classes","history","useHistory","container","direction","alignItems","justifyContent","minHeight","Box","flexWrap","m","xs","md","Paper","elevation","Icon404","className","marginLeft","marginRight","href","icon","name","label","onClick","goBack","generateClassName","createGenerateClassName","productionPrefix","disableGlobal","App","reCaptchaKey","StylesProvider","StyledEngineProvider","injectFirst","ThemeProvider","CssBaseline","path","Boolean","match","ReactDOM","render","StrictMode","document","getElementById","navigator","serviceWorker","ready","then","registration","unregister","catch","console"],"mappings":"yQAOAA,IACGC,IAAIC,KACJD,IAAIE,KACJF,IAAIG,KACJC,KAAK,CACJC,QAAS,CACPC,SAAS,GAAD,OAAKC,GAAL,uCCbmB,SDe7BC,UAAW,CAAC,KAAM,MAClBC,YAAa,KACbC,KAAM,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hB,EAAQV,WACnBiC,QAAS,kBAAMtB,EAAQuB,iBAI7B,cAAC3D,EAAD,O,aCvFA4D,EAAoBC,YAAwB,CAChDC,iBAAkB,IAClBC,eAAe,IAiCFC,MA9Bf,WACE,OACE,cAAC,IAAD,CAAyBC,aAAa,2CAAtC,SACE,cAACC,EAAA,EAAD,CAAgBN,kBAAmBA,EAAnC,SACE,cAACO,EAAA,EAAD,CAAsBC,aAAW,EAAjC,SACE,eAACC,EAAA,EAAD,CAAehD,MAAOA,YAAtB,UACE,cAACiD,EAAA,EAAD,IACA,cAAC,EAAD,UACE,cAAC,IAAD,UACE,qBAAKnB,UAAU,MAAM3C,MAAO,CAAEmB,gBAAiB,WAA/C,SACE,qBAAKwB,UAAU,kDAAf,SACE,eAAC,IAAD,WACE,cAAC,IAAD,CAAOoB,KAAI,UAAK9I,GAAL,gBAAX,SACE,cAACsD,EAAD,MAEF,cAAC,IAAD,UACE,cAACmD,EAAD,2BC5BJsC,QACW,cAA7BtG,OAAOC,SAASC,UAEe,UAA7BF,OAAOC,SAASC,UAEhBF,OAAOC,SAASC,SAASqG,MAAM,2DCXnCC,IAASC,OACP,cAAC,IAAMC,WAAP,UACE,cAAC,EAAD,MAEFC,SAASC,eAAe,SDqHpB,kBAAmBC,WACrBA,UAAUC,cAAcC,MACrBC,MAAK,SAACC,GACLA,EAAaC,gBAEdC,OAAM,SAAC7H,GACN8H,QAAQ9H,MAAMA,EAAMsB,c","file":"static/js/main.baa219ba.chunk.js","sourcesContent":["import i18n from 'i18next';\nimport { initReactI18next } from 'react-i18next';\nimport LanguageDetector from 'i18next-browser-languagedetector';\nimport Backend from 'i18next-xhr-backend';\nimport { versions } from './versions';\n\nconst build = versions.BuildId;\ni18n\n .use(Backend)\n .use(LanguageDetector)\n .use(initReactI18next)\n .init({\n backend: {\n loadPath: `${process.env.PUBLIC_URL}/i18n/{{ns}}/{{lng}}.json?v=${build}`,\n },\n whitelist: ['en', 'de'],\n fallbackLng: 'en',\n load: 'languageOnly',\n debug: false,\n ns: ['global'],\n defaultNS: 'global',\n keySeparator: false,\n interpolation: {\n escapeValue: false,\n formatSeparator: ',',\n },\n detection: {\n order: ['querystring', 'navigator'],\n },\n react: {\n wait: true,\n useSuspense: false,\n },\n });\n\nexport default i18n;\n","export const versions= {BuildId: '4024'}\n","export enum Environments {\n local = 'localhost',\n dev = 'dev.checkout.payactive.io',\n stage = 'stage.checkout.payactive.io',\n prod = 'checkout.payactive.io',\n sandbox = 'sandbox.checkout.payactive.io'\n}\n\nexport function getAllEnvironments(): string[] {\n return Object.values(Environments);\n}","import axios, { AxiosError, AxiosInstance, AxiosRequestConfig } from 'axios';\nimport axiosRetry from 'axios-retry';\nimport React from 'react';\nimport { Redirect } from 'react-router-dom';\nimport { Environments } from './Environments';\n\ninterface MatchParams {\n checkoutId: string;\n}\nexport default class ApiClient {\n private static _instance: AxiosInstance;\n private static _instanceHardRetry: AxiosInstance;\n\n private static TIMEOUT: number = 20_000;\n\n public static get client(): AxiosInstance {\n return this._instance || (this._instance = this.create());\n }\n\n public static get clientHardRetry(): AxiosInstance {\n return this._instanceHardRetry || (this._instanceHardRetry = this.create(true));\n }\n\n private static create(hardRetry = false): AxiosInstance {\n const instance = axios.create();\n instance.interceptors.request.use(\n (config: AxiosRequestConfig) => {\n if (!!config.headers) {\n config.headers['Accept'] = 'application/json';\n config.headers['Content-Type'] = 'application/json';\n }\n config.timeout = ApiClient.TIMEOUT;\n return config;\n },\n (error) => {\n Promise.reject(error);\n },\n );\n if (hardRetry) {\n axiosRetry(instance, {\n retries: 3,\n retryCondition: (_error) => true,\n shouldResetTimeout: true,\n });\n } else {\n axiosRetry(instance, { retries: 3 });\n }\n return instance;\n }\n\n public static redirectToAppPayment(checkoutId?: string): any {\n if (process.env.REACT_APP_API_DOMAIN) {\n return process.env.REACT_APP_API_DOMAIN;\n }\n\n switch (window.location.hostname) {\n case Environments.local:\n return window.location.replace(`http://localhost:3001/checkout/${checkoutId}`);\n\n case Environments.dev:\n return window.location.replace(`https://dev.payactive.io/payment/checkout/${checkoutId}`);\n\n case Environments.stage:\n return window.location.replace(`https://stage.payactive.io/payment/checkout/${checkoutId}`);\n\n case Environments.prod:\n return window.location.replace(`https://www.payactive.io/payment/checkout/${checkoutId}`);\n\n case Environments.sandbox:\n return window.location.replace(\n `https://sandbox.payactive.io/payment/checkout/${checkoutId}`,\n );\n\n default:\n return window.location.replace(`https://www.payactive.io/payment/checkout/${checkoutId}`);\n }\n }\n\n public static handleError(error: AxiosError<{ message: string }>): Error {\n if (error.response) {\n return new Error(error.response.data.message);\n } else if (error.request) {\n return new Error('Network problem');\n } else {\n return new Error('Unknown');\n }\n }\n}\n","import React, { ReactElement } from 'react';\nimport { useRouteMatch } from 'react-router-dom';\nimport ApiClient from '../../services/ApiClient';\n\ninterface Props {}\n\ninterface MatchParams {\n checkoutId: string;\n}\n\nexport default function CheckoutRouter({}: Props): ReactElement {\n const match = useRouteMatch();\n const checkoutId = match.params.checkoutId;\n\n return ApiClient.redirectToAppPayment(checkoutId);\n}\n","import React, { useState } from 'react';\n\ninterface FaqProps {\n open: boolean,\n deepLinkId: string\n}\n\nconst FAQContext = React.createContext({\n toggleFAQ: (deepLinkId: string) => {},\n faqProps: {\n open: false,\n deepLinkId: ''\n }\n})\n\ninterface Props {\n children: React.ReactElement\n}\n\nexport default function WithAlertContext({ children }: Props) {\n\n const [faqProps, setFaqProps] = useState({\n open: false,\n deepLinkId: ''\n })\n\n const toggleFAQ = (deepLinkId: string) => { \n setFaqProps({\n open: !faqProps.open,\n deepLinkId: deepLinkId\n })\n }\n\n return (\n \n {children}\n \n )\n}\n\nexport { FAQContext };\n\n","export default __webpack_public_path__ + \"static/media/icon-404-ice.3add0984.svg\";","export default __webpack_public_path__ + \"static/media/logo3.c9621920.png\";","import React, { ReactElement } from 'react';\nimport logo from '../../common/payactiveLogo/logo3.png';\nimport { Grid, Typography } from '@mui/material';\nimport { useTranslation } from 'react-i18next';\nimport theme from '@payactive/app-common/dist/themes/main';\ninterface Props {}\nexport default function Footer({}: Props): ReactElement {\n const { t } = useTranslation('checkout');\n return (\n \n \n \n {t('sicher Zahlung')}\n \n \n );\n}\n","import React, { Fragment, ReactElement } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { Box, Paper, Typography } from '@mui/material';\nimport Grid from '@mui/material/Grid';\nimport makeStyles from '@mui/styles/makeStyles';\nimport Icon404 from './components/icons/icon-404-ice.svg';\nimport { Button as ButtonAppCommon } from '@payactive/app-common';\nimport { useHistory } from 'react-router-dom';\nimport Footer from './components/checkout/Footer';\n\nconst useStyles = makeStyles((theme) => ({\n headerText: {\n color: '#232323',\n opacity: '1',\n fontSize: '18px',\n textAlign: 'center',\n },\n backButton: {\n marginBottom: '20%',\n '&.MuiButton-contained': {\n backgroundColor: '#262626',\n '&:hover': {\n backgroundColor: '#262626',\n },\n '&:disabled': {\n backgroundColor: '#CCCCCC',\n color: 'white',\n },\n textTransform: 'none',\n fontWeight: 400,\n fontSize: '16px',\n width: '30%',\n },\n '& .MuiIcon-root': {\n fontSize: '25px',\n },\n },\n headerIcon: {\n marginTop: '20%',\n marginBottom: '5%',\n },\n footerLogo: {\n maxWidth: 150 + 'px',\n margin: '-1%',\n },\n}));\n\nexport default function NotFound404(): ReactElement {\n const classes = useStyles();\n const { t } = useTranslation('checkout');\n\n const history = useHistory();\n\n return (\n \n :not(style)': {\n m: 10,\n width: {\n xs: 300,\n md: 350,\n },\n },\n }}\n >\n \n \"logo\"\n \n {'Ooooh...'}\n \n \n {t('Product not found')}\n \n \n {`${t('404 Go back text')}`}{' '}\n \n support@payactive.eu\n \n \n \n {t('previous page')}\n \n history.goBack()}\n />\n \n \n