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CXf,IAAAC,EAhB4B,KAC1B,IAAIC,EAAO,IAAIC,OAAOC,OAAO,GAQ7B,MALyB,aAAvB,OAAOC,aACP,mBAAOA,YAAYC,GAAG,EAEtBJ,CAAAA,GAAQG,YAAYC,GAAG,IAElB,uCAAuCC,OAAO,CAAC,QAAS,IAC7D,IAAMC,EAAQ,CAACN,EAAOO,GAAAA,KAAKC,MAAM,EAAK,EAAM,GAAK,EAEjD,OADAR,EAAOO,KAAKE,KAAK,CAACT,EAAO,IAClB,CAACU,MAAAA,EAAeJ,EAAQA,EAAAA,EAAgB,GAAKK,QAAQ,CAAC,GAC/D,EACF,YEkBAC,EAjCuB,OAAC,CAAEC,YAAAA,EDRxB,uECQ0D,CAAE,CAAAC,EA8B5D,MA7BAC,CAAAA,EAAAA,EAAAA,SAAAA,EAAU,KACR,IAAMC,EAAO,CACXC,UAAWC,IACXC,MAAO,yCACPC,WAAY,CACVC,SAAU,QACVC,WAAY,CACVC,KAAM,CACJC,IAAKpD,OAAOqD,QAAQ,CAACC,IAAI,CACzBC,SAAUC,SAASD,QAAQ,CAC3BE,MAAO,WACPC,SAAUjB,CACZ,EACAkB,OAAQ,KACV,CACF,CACF,EAEAC,MAAMrC,EAAwB,CAC5BsC,OAAQ,OACRC,QAAS,CACPC,cAAe,SAA4CrC,MAAA,CAAnCsC,KAAK,GAA0BtC,MAAA,SACzD,EACAuC,KAAMC,KAAKC,SAAS,CAACvB,EACvB,GAEA5C,OAAOqD,QAAQ,CAACpB,OAAO,CAACQ,EAC1B,EAAG,EAAE,EAEE,GAAApC,EAAAI,GAAA,EAAC2D,EAAWA,CAAAA,EACrB,mECjCAC,CAAAA,EAAA,QAFgB,IAAM,GAAAC,EAAA7D,GAAA,EAAC8D,EAAAA,CAAcA,CAAAA,CAAAA","sources":["webpack://_N_E/?e844","webpack://_N_E/./components/common/PageLoading/index.jsx","webpack://_N_E/./utils/environments.js","webpack://_N_E/./components/core/CohesionSnippet/constants.js","webpack://_N_E/./utils/tagular/generate-tagular-uuid.js","webpack://_N_E/./components/common/LoaderRedirect/constants.js","webpack://_N_E/./components/common/LoaderRedirect/index.jsx","webpack://_N_E/./pages/404/index.page.jsx"],"sourcesContent":["\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/404\",\n function () {\n return require(\"private-next-pages/404/index.page.jsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/404\"])\n });\n }\n ","const PageLoading = () => (\n
\n \n \n \n \n \n \n \n
\n \n \n \n \n \n \n \n \n \n \n \n \n
\n
\n);\n\nexport default PageLoading;\n","export const isProd = process.env.NEXT_PUBLIC_AMEX_NODE_ENV === \"production\";\nexport const isDev =\n process.env.NEXT_PUBLIC_AMEX_NODE_ENV === \"development\" ||\n process.env.NODE_ENV === \"development\";\nexport const isTest =\n process.env.NEXT_PUBLIC_AMEX_NODE_ENV === \"test\" ||\n process.env.NODE_ENV === \"test\";\n\nexport default {\n isProd,\n isDev,\n isTest,\n};\n","import { isProd } from \"@utils/environments\";\n\nconst TAGULAR_API_KEY =\n \"08b9e791-59e6-45cb-9b5a-0f36db81313a.99f699a5-a066-4883-b240-e01d04c5a220\";\nexport const TAGULAR_WRITE_KEY = {\n prod: \"wk_1NT28kZbS21PSBXbaDWsluHnMBt\",\n dev: \"wk_2cRvcSny92YH8lg1HkLH0q2hqmh\",\n};\nconst TAGULAR_SOURCE_KEY = {\n prod: \"src_1NT28jnozfvl2wDqXLFjdLL0jsj\",\n dev: \"src_2cRvcQaxuaZWYZxQIae3pjaQlAl\",\n};\n\nexport const COHESION_PROXY_COHESION = \"/prx/c/c.js\";\nexport const COHESION_PROXY_TAGULAR = \"/prx/t/v2/t\";\nexport const COHESION_PROXY_TAGGY = \"/prx/tgy\";\n\nconst beamHook = !isProd\n ? `beamHook(event) {\n const params = new URLSearchParams(window.location.search);\n if (params.get('tagdebug') === '1') console.log('[tagularEvent] ' + event['@type'], event)\n }`\n : \"\";\n\nexport const COHESION_CONFIG = `{\n tagular: {\n apiKey: \"${TAGULAR_API_KEY}\",\n writeKey: \"${\n isProd ? TAGULAR_WRITE_KEY[\"prod\"] : TAGULAR_WRITE_KEY[\"dev\"]\n }\",\n sourceKey: \"${\n isProd ? TAGULAR_SOURCE_KEY[\"prod\"] : TAGULAR_SOURCE_KEY[\"dev\"]\n }\",\n cookieDomain: \"americanexpress.com\",\n apiVersion: \"v2/t\",\n taggy: { enabled: true },\n apiHost: \"${COHESION_PROXY_TAGULAR}\",\n ${beamHook}\n },\n consent: {\n required: false,\n },\n}`;\n","/* eslint-disable no-bitwise */\n\n/**\n * Utility: generateTagularUUID\n *\n * Provides a longform uuid string for tagular.\n *\n * Note: This should not be used on components over the useId hooks.\n * @see @hooks/use-id\n */\nconst generateTagularUUID = () => {\n let date = new Date().getTime();\n\n if (\n typeof performance !== \"undefined\" &&\n typeof performance.now === \"function\"\n ) {\n date += performance.now(); // use high-precision timer if available\n }\n return \"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(/[xy]/g, (char) => {\n const value = (date + Math.random() * 16) % 16 | 0;\n date = Math.floor(date / 16);\n return (char === \"x\" ? value : (value & 0x3) | 0x8).toString(16);\n });\n};\n\nexport default generateTagularUUID;\n","export const DEFAULT_REDIRECT_URL =\n \"https://www.americanexpress.com/us/credit-cards/?referrer=RV_redirect\";\n","import PageLoading from \"@common/PageLoading\";\nimport {\n COHESION_PROXY_TAGULAR,\n TAGULAR_WRITE_KEY,\n} from \"@components/core/CohesionSnippet/constants\";\nimport generateTagularUUID from \"@utils/tagular/generate-tagular-uuid\";\nimport { useEffect } from \"react\";\nimport { DEFAULT_REDIRECT_URL } from \"./constants\";\n\nconst LoaderRedirect = ({ redirectUrl = DEFAULT_REDIRECT_URL }) => {\n useEffect(() => {\n const data = {\n messageId: generateTagularUUID(),\n event: \"redventures.usertracking.v2.PageViewed\",\n properties: {\n pageName: \"decom\",\n webContext: {\n page: {\n url: window.location.href,\n referrer: document.referrer,\n title: \"redirect\",\n pageType: redirectUrl,\n },\n sender: \"CAE\",\n },\n },\n };\n\n fetch(COHESION_PROXY_TAGULAR, {\n method: \"POST\",\n headers: {\n Authorization: `Basic ${btoa(`${TAGULAR_WRITE_KEY.prod}:`)}`,\n },\n body: JSON.stringify(data),\n });\n\n window.location.replace(redirectUrl);\n }, []);\n\n return ;\n};\n\nexport default LoaderRedirect;\n","import LoaderRedirect from \"@common/LoaderRedirect\";\n\n/**\n * Page: 404\n */\nconst Page404 = () => ;\n\nexport default Page404;\n"],"names":["window","__NEXT_P","push","__webpack_require__","common_PageLoading","jsx_runtime","jsxs","div","className","jsx","svg","aria-hidden","width","height","style","display","symbol","id","viewBox","path","d","use","xlinkHref","COHESION_PROXY_TAGULAR","isProd","beamHook","concat","generate_tagular_uuid","date","Date","getTime","performance","now","replace","value","Math","random","floor","char","toString","common_LoaderRedirect","redirectUrl","param","useEffect","data","messageId","generateTagularUUID","event","properties","pageName","webContext","page","url","location","href","referrer","document","title","pageType","sender","fetch","method","headers","Authorization","btoa","body","JSON","stringify","PageLoading","__webpack_exports__","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","LoaderRedirect"],"sourceRoot":""}