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CAChB,AAAA,EAAA,GAAA,aAAA,CAAC,EAAA,OAAA,CAFL,CAEQ,KAAMpB,EAAWqB,IAAI,AAAGrB,EAAAA,EAAWoB,OAAO,EAE9C,AAAA,EAAA,GAAA,aAAA,CAAC,EAAA,OAAA,CAF2BpB,CAG1B,eAAe,yEACf,GAAG,iCACH,OAAQ,CACNC,MACE,AAAA,EAAA,GAAA,aAAA,CAAC,EAAA,OAAA,CADHA,CACQ,KAAO,CAAA,OAAA,EAASuB,EAAAA,aAAAA,CAAc,CAAC,AAAGA,EAAAA,EAAAA,aAAAA,CAE5C,C,GAIN,KACExB,EAAWyB,IAAI,CACb,AAAA,EAAA,GAAA,aAAA,CAAC,EAAA,OAAA,CAFL,CAEQ,KAAMzB,EAAWqB,IAAI,AAAGrB,EAAAA,EAAWyB,IAAI,EAE3C,AAAA,EAAA,GAAA,aAAA,CAAC,EAAA,OAAA,CAF2BzB,CAG1B,eAAe,mJACf,GAAG,uCACH,OAAQ,CACNC,MAAAA,CACF,C,GAIN,MACED,EAAW0B,KAAK,EACd,AAAA,EAAA,GAAA,aAAA,CAAC,EAAA,OAAA,CAFL,CAGM,eAAe,0BACf,GAAG,mC,E,EAMf,CAUAU,EAAsBT,YAAY,CAAG,CACnC7B,YAAa,CAAC,CAChB,EAEA,IAAA,EAAesC,C","sources":["","src/containers/RegistrationCompleted.js"],"sourcesContent":["\nfunction $parcel$interopDefault(a) {\n return a && a.__esModule ? a.default : a;\n}\n\nfunction $parcel$defineInteropFlag(a) {\n Object.defineProperty(a, '__esModule', {value: true, configurable: true});\n}\n\nfunction $parcel$export(e, n, v, s) {\n Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});\n}\n\n var $parcel$global =\n typeof globalThis !== 'undefined'\n ? globalThis\n : typeof self !== 'undefined'\n ? self\n : typeof window !== 'undefined'\n ? window\n : typeof global !== 'undefined'\n ? global\n : {};\n var parcelRequire = $parcel$global[\"parcelRequire3c7f\"];\nvar parcelRegister = parcelRequire.register;\nparcelRegister(\"dhDqy\", function(module, exports) {\n\n$parcel$defineInteropFlag(module.exports);\n\n$parcel$export(module.exports, \"default\", function () { return $9abb724f4163c3d0$export$2e2bcd8739ae039; });\n\nvar $ikATC = parcelRequire(\"ikATC\");\n\nvar $cQNHH = parcelRequire(\"cQNHH\");\n\nvar $kV13H = parcelRequire(\"kV13H\");\n\nvar $8mLXY = parcelRequire(\"8mLXY\");\n\nvar $h5HRh = parcelRequire(\"h5HRh\");\n\nvar $iTDkM = parcelRequire(\"iTDkM\");\n\nvar $53xQg = parcelRequire(\"53xQg\");\nparcelRequire(\"8u8eZ\");\n\nvar $hgf0k = parcelRequire(\"hgf0k\");\n\nvar $lCfIL = parcelRequire(\"lCfIL\");\n\nvar $jge0r = parcelRequire(\"jge0r\");\nfunction $9abb724f4163c3d0$var$RegistrationCompleted({ api: api, closeModal: closeModal, customPages: { completed: customPage = {} } }) {\n const useGlobal = (0, $hgf0k.useGlobalScope)(\"contactDetails\");\n const [{ email: { value: email } = {} } = {}] = useGlobal(\"fieldValues\", ()=>undefined);\n const [loading] = (0, $lCfIL.useRequest)(api.finalizeSession);\n (0, $cQNHH.useEffect)(()=>{\n (0, $jge0r.userMetrics).track(\"Completed screen loaded\");\n }, []);\n if (loading) return /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, $8mLXY.default), {\n dark: true\n });\n return /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, $iTDkM.default), {\n buttonText: customPage.buttonText || /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, $kV13H.default), {\n defaultMessage: \"Done\",\n id: \"RegistrationComplete.Done\"\n }),\n isEligible: true,\n onButtonClick: ()=>closeModal(customPage.buttonAction),\n showButton: true,\n subText: customPage.subText ? /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, $h5HRh.default), {\n tags: customPage.tags\n }, customPage.subText) : /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, $kV13H.default), {\n defaultMessage: \"Should you have any questions or concerns, please email us at {email}.\",\n id: \"RegistrationComplete.ContactUs\",\n values: {\n email: /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, $ikATC.default), {\n href: `mailto:${(0, $53xQg.SUPPORT_EMAIL)}`\n }, (0, $53xQg.SUPPORT_EMAIL))\n }\n }),\n text: customPage.text ? /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, $h5HRh.default), {\n tags: customPage.tags\n }, customPage.text) : /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, $kV13H.default), {\n defaultMessage: \"Thank you for your interest. An email has been sent to {email}. You will be contacted by the study medical team shortly to talk about the study.\",\n id: \"Registration.RegistrationNowFinished\",\n values: {\n email: email\n }\n }),\n title: customPage.title || /*#__PURE__*/ (0, (/*@__PURE__*/$parcel$interopDefault($cQNHH))).createElement((0, $kV13H.default), {\n defaultMessage: \"Registration completed!\",\n id: \"Registration.RegistrationComplete\"\n })\n });\n}\n$9abb724f4163c3d0$var$RegistrationCompleted.defaultProps = {\n customPages: {}\n};\nvar $9abb724f4163c3d0$export$2e2bcd8739ae039 = $9abb724f4163c3d0$var$RegistrationCompleted;\n\n});\n\n\n//# sourceMappingURL=RegistrationCompleted.f515f6e7.js.map\n","import Link from '@material-ui/core/Link';\nimport React, { useEffect } from 'react';\nimport { FormattedMessage } from 'react-intl';\nimport Loading from '../components/Loading/Loading';\nimport Md from '../components/Md';\nimport EligibilityPage from '../components/MessagePage/EligibilityPage';\nimport { SUPPORT_EMAIL } from '../helpers/constants';\nimport PropTypes, { customPagesPropType } from '../helpers/propTypes';\nimport { useGlobalScope } from '../hooks/useGlobalState';\nimport { useRequest } from '../prescreener/service';\nimport { userMetrics } from '../userMetrics';\n\nfunction RegistrationCompleted({\n api,\n closeModal,\n customPages: { completed: customPage = {} },\n}) {\n const useGlobal = useGlobalScope('contactDetails');\n const [{ email: { value: email } = {} } = {}] = useGlobal(\n 'fieldValues',\n () => undefined,\n );\n\n const [loading] = useRequest(api.finalizeSession);\n\n useEffect(() => {\n userMetrics.track('Completed screen loaded');\n }, []);\n\n if (loading) {\n return ;\n }\n\n return (\n \n )\n }\n isEligible\n onButtonClick={() => closeModal(customPage.buttonAction)}\n showButton\n subText={\n customPage.subText ? (\n {customPage.subText}\n ) : (\n {SUPPORT_EMAIL}\n ),\n }}\n />\n )\n }\n text={\n customPage.text ? (\n {customPage.text}\n ) : (\n \n )\n }\n title={\n customPage.title || (\n \n )\n }\n />\n );\n}\n\nRegistrationCompleted.propTypes = {\n api: PropTypes.shape({\n finalizeSession: PropTypes.func.isRequired,\n }).isRequired,\n closeModal: PropTypes.func.isRequired,\n customPages: customPagesPropType,\n};\n\nRegistrationCompleted.defaultProps = {\n customPages: {},\n};\n\nexport default RegistrationCompleted;\n"],"names":["$parcel$interopDefault","a","__esModule","default","parcelRequire","$parcel$global","globalThis","self","window","global","parcelRegister","register","module","exports","Object","defineProperty","value","configurable","get","$9abb724f4163c3d0$export$2e2bcd8739ae039","set","s","enumerable","$ikATC","$cQNHH","$kV13H","$8mLXY","$h5HRh","$iTDkM","$53xQg","$hgf0k","$lCfIL","$jge0r","$9abb724f4163c3d0$var$RegistrationCompleted","api","closeModal","customPages","completed","customPage","email","useGlobal","useGlobalScope","undefined","loading","useRequest","finalizeSession","useEffect","userMetrics","track","createElement","dark","buttonText","defaultMessage","id","isEligible","onButtonClick","buttonAction","showButton","subText","tags","values","href","SUPPORT_EMAIL","text","title","defaultProps","Link","React","FormattedMessage","Loading","Md","EligibilityPage","PropTypes","customPagesPropType","RegistrationCompleted"],"version":3,"file":"RegistrationCompleted.f515f6e7.js.map"}