{"version":3,"sources":["components/Signin.tsx","index.tsx"],"names":["Signin","Utilities","checkHTTPS","forwardUrl","URLSearchParams","window","location","search","get","forwardingUrl","re","RegExp","match","isValidSession","localStorage","Keepalive","checkForKeepalive","href","sessionStorage","getItem","removeItem","e","_jsx","className","children","SigninWidget","clearMsgURL","sendLinkstoSameTab","ReactDOM","render","React","StrictMode","document","getElementById"],"mappings":"gMAyEeA,EA1DU,WACvBC,UAAUC,aAEV,IAAMC,EAAa,IAAIC,gBAAgBC,OAAOC,SAASC,QAAQC,IAC7D,cAGEC,EAAgB,GACpB,GAAmB,OAAfN,EAAqB,CACvB,IAAMO,EAAK,IAAIC,OACb,4EAGAF,EADEN,EAAWS,MAAMF,GACH,gBAEAP,CAEpB,CAEA,IAAIU,GAA0B,EAC9B,IAEMC,eACFD,EAAiBE,UAAUC,qBAGxBH,EAgBHR,OAAOC,SAASW,KAAO,iBAf6B,OAAhDC,eAAeC,QAAQ,sBACzBD,eAAeE,WAAW,qBAEqB,OAA7CF,eAAeC,QAAQ,mBACzBD,eAAeE,WAAW,kBAGN,OAAlBX,GAA4C,KAAlBA,IAI1BA,EAHGS,eAAiC,iBAGpBA,eAAiC,iBAFjC,iBAQxB,CAAE,MAAOG,GACP,CAGF,OACEC,cAAA,OAAKC,UAAU,mBAAkBC,SAC/BF,cAACG,IAAY,CACXtB,WAAYM,EACZiB,YAAY,4BACZC,oBAAoB,KAI5B,ECpEAC,IAASC,OACPP,cAACQ,IAAMC,WAAU,CAAAP,SACfF,cAACtB,EAAM,MAETgC,SAASC,eAAe,Q","file":"static/js/main.1af4d065.chunk.js","sourcesContent":["import SigninWidget from \"@eCommerce/legacy-signin-widget\";\nimport \"./Signin.css\";\n\ndeclare global {\n interface keepalive {\n checkForKeepalive: () => boolean;\n }\n interface utilities {\n checkHTTPS: () => void;\n }\n}\n\ndeclare let Keepalive: keepalive;\ndeclare let Utilities: utilities;\n\nconst Signin: React.FC = (): JSX.Element => {\n Utilities.checkHTTPS();\n\n const forwardUrl = new URLSearchParams(window.location.search).get(\n \"forwardUrl\"\n );\n\n let forwardingUrl = \"\";\n if (forwardUrl !== null) {\n const re = new RegExp(\n /^((?:(?:(?:\\w[.\\-+]?)*)\\w)+)((?:(?:(?:\\w[.\\-+]?){0,62})\\w)+)\\.(\\w{2,6})$/\n );\n if (forwardUrl.match(re)) {\n forwardingUrl = \"/rewards/home\";\n } else {\n forwardingUrl = forwardUrl;\n }\n }\n\n let isValidSession: boolean = true;\n try {\n //check to see if local storage enabled\n if (localStorage) {\n isValidSession = Keepalive.checkForKeepalive();\n }\n\n if (!isValidSession) {\n if (sessionStorage.getItem(\"isChallengeActive\") !== null) {\n sessionStorage.removeItem(\"isChallengeActive\");\n }\n if (sessionStorage.getItem(\"linkedAccounts\") !== null) {\n sessionStorage.removeItem(\"linkedAccounts\");\n }\n\n if (forwardingUrl === null || forwardingUrl === \"\") {\n if (!sessionStorage[\"lastRequestedURL\"]) {\n forwardingUrl = \"/rewards/home\";\n } else {\n forwardingUrl = sessionStorage[\"lastRequestedURL\"];\n }\n }\n } else {\n window.location.href = \"/rewards/home\";\n }\n } catch (e) {\n //ignore exception\n }\n\n return (\n