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OACnD1I,EAAAA,cAAA,QAAMiH,IAAKyB,EAAK5J,UAAU,WACvB2J,EACI,IAETsiB,EACI,GAERC,GAEH5lB,EACc,C,uCCnBnB,IAfgB,SAAHpH,GAAA,IACXitB,EAAgBjtB,EAAhBitB,iBAAgBC,EAAAltB,EAChBmtB,OAAAA,OAAM,IAAAD,GAAOA,EACbE,EAAcptB,EAAdotB,eACAhmB,EAAQpH,EAARoH,SAAQ,OAER+lB,EACEnrB,EAAAA,cAACirB,EAAgBhrB,OAAAC,OAAA,GACVkrB,EAAc,CACnBhmB,SAAUA,KAGZA,CACA,C","sources":["webpack://biostatus/./app/javascript/bundles/Registration/primary/FabrxCheckbox.jsx","webpack://biostatus/./app/javascript/bundles/common/components/FloatingLabelInput.jsx","webpack://biostatus/./app/javascript/bundles/common/components/FloatingLabelSelect.jsx","webpack://biostatus/./app/javascript/bundles/common/components/HelpText.jsx","webpack://biostatus/./app/javascript/bundles/common/components/ModalHeader.jsx","webpack://biostatus/./app/javascript/bundles/common/components/Select/Select.jsx","webpack://biostatus/./app/javascript/bundles/common/components/Select/components/CheckboxOption.jsx","webpack://biostatus/./app/javascript/bundles/common/components/Select/components/SearchPlaceholder.jsx","webpack://biostatus/./app/javascript/bundles/common/components/Select/index.js","webpack://biostatus/./app/javascript/bundles/common/utils/index.js","webpack://biostatus/./app/javascript/bundles/shared_labs/utils/index.js","webpack://biostatus/./app/javascript/bundles/common/components/TooltipWrapper.tsx","webpack://biostatus/./app/javascript/bundles/common/components/Wrapped.tsx"],"sourcesContent":["import React from 'react';\n\nconst FabrxCheckbox = ({\n id = `checkbox-${Date.now()}-${Math.floor(Math.random() * 100)}`,\n name,\n label,\n checked,\n onChange,\n radio,\n className,\n labelClassName = \"\",\n inputClassName = \"\",\n ariaLabel,\n value=false,\n defaultChecked=false,\n autoFocus = false,\n checkMarkStyle=true,\n dataTestHook,\n disabled=false,\n}) => {\n const inputProps = { id, checked, defaultChecked, autoFocus, name, className: `form-check-input ${inputClassName}`, disabled };\n if (value) inputProps.value = value;\n\n return (\n
\n {\n const checked = e.target.value === 'on';\n onChange(checked);\n }}\n {...inputProps}\n />\n \n
\n)};\n\nexport default FabrxCheckbox;\n","import React from 'react';\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\nimport { faCircleExclamation } from '@fortawesome/pro-regular-svg-icons';\n\nconst FloatingLabelInput = ({\n ariaDescribedby,\n ariaInvalid,\n ariaLabel,\n ariaRequired,\n autoComplete,\n autoFocus,\n className,\n dataTestHook,\n inputMode,\n inputRef = React.createRef(),\n id,\n isDisabled,\n label,\n max,\n maxLength,\n min,\n minLength,\n name,\n onChange,\n onKeyDown,\n onKeyUp,\n onKeyPress,\n onFocus,\n onBlur,\n onInput,\n pattern,\n placeholder,\n readOnly,\n style,\n type,\n validation,\n value,\n displayIcon,\n prependIcon,\n appendIcon,\n ...props\n}) => {\n return (\n
\n {prependIcon && ()}\n \n {label}\n \n \n {appendIcon}\n {(displayIcon && validation === \"is-invalid\") && (\n \n )}\n
\n )\n}\n\nexport default FloatingLabelInput\n","import React from 'react';\nimport Select, { components } from 'react-select';\n\nexport const customStyles = {\n menuPortal: (provided) => ({\n ...provided,\n marginTop: '1px',\n zIndex: '15',\n }),\n\n menu: (base) => ({\n ...base,\n width: \"max-content\",\n minWidth: \"100%\"\n }),\n\n control: (provided, state) => ({\n ...provided,\n borderRadius: '12px',\n minHeight: '48px',\n backgroundColor: state.isDisabled ? 'rgba(249, 249, 249, 0.5)' : '#fff',\n borderColor: state.isDisabled ? '#E2E7F0' : '#CBD2E0',\n }),\n\n dropdownIndicator: (provided) => ({\n ...provided,\n color: '#5D6F88',\n }),\n\n multiValue: (provided) => ({\n ...provided,\n marginTop: '8px',\n }),\n\n singleValue: (provided, state) => ({\n ...provided,\n color: state.isDisabled ? 'unset' : '#2D3648',\n }),\n\n placeholder: (provided, state) => ({\n ...provided,\n opacity: state.isFocused ? '1' : '0',\n color: '#5D6F88',\n }),\n};\n\nexport const selectTheme = (theme) => ({\n ...theme,\n colors: {\n ...theme.colors,\n primary: '#2862FA',\n primary75: '#2862FA75',\n primary50: '#2862FA50',\n primary25: '#2862FA25',\n danger: '#F46363',\n dangerLight: '#EECDCF',\n neutral90: '#1A202C',\n neutral20: '#CBD2E0',\n },\n});\n\nexport const DropdownIndicator = () => (\n \n);\n\nconst Option = ({innerProps, children, data, ...props}) => (\n \n {children}\n \n);\n\nconst SelectContainer = ({innerProps, children, dataTestHook, ...props}) => (\n \n {children}\n \n);\n\nexport const IndicatorSeparator = () => null;\n\nconst FloatingLabelSelect = ({\n ariaDescribedby,\n ariaInvalid,\n ariaLabel,\n ariaRequired,\n autoFocus,\n className,\n classNamePrefix,\n components = {},\n containerClassName,\n defaultValue,\n filledValue,\n filterOption,\n id,\n isClearable,\n isDisabled,\n isMulti,\n isSearchable,\n label,\n menuPortalTarget,\n name,\n onChange,\n options,\n placeholder,\n readOnly,\n type,\n value,\n maxItems,\n style = {},\n inputRef = React.createRef(),\n hideSelectedOptions = true,\n controlShouldRenderValue = true,\n}) => {\n const isOptionDisabled = () => maxItems && value?.length >= maxItems;\n return (\n \n \n ,\n ...components\n }}\n defaultValue={defaultValue}\n filterOption={filterOption}\n inputId={id}\n key={value?.length || ''}\n isClearable={isClearable}\n isDisabled={isDisabled}\n isMulti={isMulti}\n isSearchable={isSearchable}\n menuPortalTarget={menuPortalTarget}\n name={name}\n onChange={onChange}\n options={options}\n placeholder={placeholder || ''}\n readOnly={readOnly}\n ref={inputRef}\n styles={{ ...customStyles, ...style }}\n type={type}\n value={value}\n required={ariaRequired}\n isOptionDisabled={isOptionDisabled}\n hideSelectedOptions={hideSelectedOptions}\n controlShouldRenderValue={controlShouldRenderValue}\n theme={selectTheme}\n />\n \n );\n};\n\nexport default FloatingLabelSelect;\n","import React, { useState } from 'react';\nimport { Tooltip, OverlayTrigger } from 'react-bootstrap';\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\n\nconst HelpText = ({\n text,\n size = 'sm',\n placement = 'bottom',\n activeClass = 'text-primary',\n inactiveClass = 'text-secondary',\n icon = ['far', 'question-circle'],\n style,\n}) => {\n const [className, setClassName] = useState(inactiveClass);\n const updateClassName = (className) => () => setClassName(className);\n\n return (\n \n {typeof text === 'string'\n ? text.split(/\\n|\\\\n|
/).map((subText, idx) => (\n \n {subText}\n \n ))\n : text}\n \n }\n onEnter={updateClassName(activeClass)}\n onExit={updateClassName(inactiveClass)}\n >\n \n \n );\n};\n\nexport default HelpText;\n","import React from 'react';\nimport Modal from 'react-bootstrap/Modal';\n\nconst ModalHeader = ({ children, closeButton, onHide, ...props }) => (\n \n {children}\n {closeButton && onHide && (\n \n )}\n \n);\n\nexport default ModalHeader;\n","import React, { useCallback, useMemo } from 'react';\nimport ReactSelect, { createFilter } from 'react-select';\n\nconst Select = ({\n className = '',\n isMulti,\n value: valueProp = isMulti ? [] : null,\n options: optionsProp,\n onChange: onChangeProp = () => {},\n name,\n valueKey = 'value',\n labelKey = 'label',\n includeBlank,\n blankLabel = '',\n ...props\n}) => {\n const options = useMemo(() => {\n const newOptions = optionsProp.map((opt) => ({\n ...opt,\n value: opt[valueKey],\n label: opt[labelKey],\n }));\n\n if (includeBlank) newOptions.unshift({ value: '', label: blankLabel });\n\n return newOptions;\n }, [optionsProp]);\n\n const value = useMemo(() => {\n return isMulti\n ? options.filter((option) => valueProp.includes(option.value))\n : options.find((option) => valueProp === option.value);\n }, [isMulti, valueProp, options]);\n\n const onChange = useCallback(\n (option) => {\n const value = isMulti ? option.map((o) => o.value) : option.value;\n onChangeProp(value);\n },\n [onChangeProp, isMulti],\n );\n\n const selectTheme = (theme) => ({\n ...theme,\n colors: {\n ...theme.colors,\n primary: \"#2862FA\",\n primary75: \"#2862FA75\",\n primary50: \"#2862FA50\",\n primary25: \"#2862FA25\",\n danger: \"#F46363\",\n dangerLight: \"#EECDCF\",\n neutral90: \"#1A202C\",\n }\n })\n\n return (\n
\n null }}\n name={name}\n onChange={onChange}\n isMulti={isMulti}\n theme={selectTheme}\n {...props}\n />\n
\n );\n};\n\nexport default Select;\n","import React from 'react';\nimport styled, { css } from 'styled-components';\n\nimport FabrxCheckbox from '../../../../Registration/primary/FabrxCheckbox';\n\nconst CustomOptionContainer = styled.div`\n display: flex;\n flex-direction: row;\n padding-inline: 1.25rem !important;\n padding-block: 0.75rem !important;\n border-bottom: 1px solid #e2e7f0;\n\n cursor: pointer;\n\n &:hover {\n background-color: #f7fafc;\n }\n\n ${({isDisabled}) => isDisabled && css`\n color: #A0ABC0;\n background-color: #F7F9FC;\n `}\n ${({isLastElement}) => isLastElement && css`\n border-bottom: 0px;\n `}\n`;\n\nconst CheckboxOption = ({ innerProps, isDisabled, ...props }) => (\n \n (value ? props.selectOption : props.clearValue)}\n />\n {props.children}\n \n);\n\nexport default CheckboxOption;\n","import React from 'react';\nimport { components } from 'react-select';\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\n\nconst SearchPlaceholder = (props) =>\n components.DropdownIndicator && (\n \n \n \n {props.children}\n \n \n );\n\nexport default SearchPlaceholder;\n","import Select from './Select';\n\nexport { default as CheckboxOption } from './components/CheckboxOption';\nexport { default as SearchPlaceholder } from './components/SearchPlaceholder';\n\nexport default Select;\n","import { DateObject } from 'react-multi-date-picker';\nimport { differenceInDays, differenceInMonths, differenceInYears } from 'date-fns';\nimport isToday from 'date-fns/isToday';\nimport parseISO from 'date-fns/parseISO';\nimport axios from 'axios';\n\nexport const arraysAreEqual = (arr1, arr2) => {\n if (arr1.length !== arr2.length) return false;\n return arr1.every((el, i) => el === arr2[i]);\n}\n\nexport const waitFor = (delay) =>\n new Promise((resolve) => setTimeout(resolve, delay));\n\nexport function createUuid() {\n var dt = new Date().getTime();\n var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(\n /[xy]/g,\n function (c) {\n var r = (dt + Math.random() * 16) % 16 | 0;\n dt = Math.floor(dt / 16);\n return (c == 'x' ? r : (r & 0x3) | 0x8).toString(16);\n },\n );\n return uuid;\n}\n\nexport const sumProperty = (array, prop) => {\n return array.map((obj) => obj[prop]).reduce((a, b) => a + (b || 0), 0);\n};\n\nexport const sum = (l) => l.reduce((partialSum, a) => partialSum + a, 0);\n\nexport const formatNumberWithCommas = (n) =>\n n?.toString()?.replace(/\\B(?=(\\d{3})+(?!\\d))/g, ',');\n\nexport const calculateAge = (dateOfBirth) => {\n const today = new Date();\n return differenceInYears(today, dateOfBirth);\n};\n\nexport const calculateAgeInDays = (dateOfBirth) =>\n differenceInDays(new Date(), dateOfBirth);\n\nexport const calculateAgeInMonths = (dateOfBirth) =>\n differenceInMonths(new Date(), dateOfBirth);\n\nexport const dateStringToDate = (dateString) => {\n const dateObject = new DateObject(dateString);\n return (\n new Date(\n dateObject.year,\n dateObject.month.index,\n dateObject.day\n )\n );\n};\n\nexport const ageInMonthsYear = (ageInMonths) =>\n ageInMonths && Math.floor(ageInMonths / 12);\n\nexport const ageInMonthsRemainder = (ageInMonths) =>\n ageInMonths && ageInMonths % 12;\n\nexport const today = (day) => isToday(parseISO(day));\n\nexport const humanize = (str) =>\n str &&\n str\n .replace(/^[\\s_]+|[\\s_]+$/g, '')\n .replace(/[_\\s]+/g, ' ')\n .replace(/^[a-z]/, function (m) {\n return m.toUpperCase();\n });\n\nexport const loadAppointmentSlots = ({\n accessKey,\n testGroupSlug,\n onLoad,\n accessCode = null,\n testLocationId = null,\n}) => {\n const availabilitiesParams = { test_location_id: testLocationId };\n if (accessKey) availabilitiesParams.key = accessKey;\n if (accessCode) availabilitiesParams.access_code = accessCode;\n axios\n .post(\n `/test_groups/${testGroupSlug}/appointment_slot_availabilities`,\n availabilitiesParams,\n )\n .then(({ data }) => {\n onLoad(data);\n });\n};\n\nexport const validateEmail = (email) =>\n RegExp(\n /^[a-z0-9._-]+@[a-z0-9-]+(\\.[a-z0-9-]+)*\\.[a-z]{2,}$/i,\n ).test(email);\n\nexport const withinAgeRange = (age, minimumAge, maximumAge) => {\n if (age) {\n if (minimumAge && age < minimumAge) return false;\n if (maximumAge && age > maximumAge) return false;\n }\n return true;\n};\n\nexport const dataURItoBlob = (dataURI, makeToFile = false) => {\n // convert base64 to raw binary data held in a string\n var byteString = atob(dataURI.split(',')[1]);\n\n // separate out the mime component\n var mimeString = dataURI.split(',')[0].split(':')[1].split(';')[0];\n\n // write the bytes of the string to an ArrayBuffer\n var ab = new ArrayBuffer(byteString.length);\n var ia = new Uint8Array(ab);\n for (var i = 0; i < byteString.length; i++) {\n ia[i] = byteString.charCodeAt(i);\n }\n if (makeToFile) {\n return new File([ab], 'webcam_photo.jpg', {\n type: 'image/jpeg',\n lastModified: new Date().getTime(),\n });\n }\n return new Blob([ab], { type: mimeString });\n};\n\nexport const languageObject = {\n am: 'አማርኛ',\n ar: 'العربية',\n bn: 'বাঙালি',\n en: 'English',\n es: 'Español',\n fa: 'فارسی',\n fr: 'Français',\n hat: 'Kreyòl ayisyen',\n hi: 'हिन्दी, हिंदी',\n hmn: 'Hmong',\n hy: 'հայերէն',\n ja: '日本',\n kar: 'Karen',\n ko: '한국어',\n lo: 'ລາວ',\n my: 'မြန်မာဘာသာ',\n ne: 'नेपाली',\n om: 'Afaan Oromoo',\n ru: 'русский',\n so: 'Soomaali',\n tl: 'Tagalog',\n uk: 'українська',\n ur: 'اردو',\n vi: 'Tiếng Việt',\n zh: '中文',\n};\n\nexport const countryCodeObject = {\n AD: 'ca-AD',\n AE: 'ar-AE',\n AF: 'fa-AF',\n AG: 'en-AG',\n AI: 'en-AI',\n AL: 'sq-AL',\n AM: 'am-Am',\n AN: 'any',\n AO: 'pt-AO',\n AR: 'es-AR',\n AS: 'any',\n AT: 'de-AT',\n AU: 'en-AU',\n AW: 'nl-AW',\n AX: 'any',\n AZ: 'az-AZ',\n BA: 'bs-BA',\n BB: 'any',\n BD: 'bn-BD',\n BE: 'fr-BE',\n BF: 'fr-BF',\n BG: 'bg-BG',\n BH: 'ar-BH',\n BI: 'any',\n BJ: 'fr-BJ',\n BM: 'en-BM',\n BN: 'any',\n BO: 'es-BO',\n BR: 'pt-BR',\n BS: 'en-BS',\n BT: 'dz-BT',\n BW: 'en-BW',\n BY: 'be-BY',\n BZ: 'any',\n CA: 'en-CA',\n CC: 'any',\n CD: 'any',\n CF: 'any',\n CG: 'any',\n CH: 'de-CH',\n CI: 'any',\n CK: 'any',\n CL: 'es-CL',\n CM: 'any',\n CN: 'zh-CN',\n CO: 'es-CO',\n CR: 'es-CR',\n CU: 'es-CU',\n CV: 'any',\n CX: 'any',\n CY: 'el-CY',\n CZ: 'cs-CZ',\n DE: 'de-DE',\n DJ: 'any',\n DK: 'da-DK',\n DM: 'any',\n DO: 'es-DO',\n DZ: 'ar-DZ',\n EC: 'es-EC',\n EE: 'et-EE',\n EG: 'ar-EG',\n ER: 'any',\n ES: 'es-ES',\n ET: 'any',\n FI: 'fi-FI',\n FJ: 'fj-FJ',\n FK: 'any',\n FM: 'any',\n FO: 'fo-FO',\n FR: 'fr-FR',\n GA: 'any',\n GB: 'en-GB',\n GD: 'any',\n GE: 'ka-GE',\n GF: 'fr-GF',\n GG: 'en-GG',\n GH: 'en-GH',\n GI: 'any',\n GL: 'kl-GL',\n GM: 'any',\n GN: 'any',\n GP: 'fr-GP',\n GQ: 'any',\n GR: 'el-GR',\n GT: 'any',\n GU: 'any',\n GW: 'any',\n GY: 'en-GY',\n HK: 'en-HK',\n HN: 'es-HN',\n HR: 'any',\n HT: 'any',\n HU: 'hu-HU',\n ID: 'id-ID',\n IE: 'en-IE',\n IL: 'he-IL',\n IM: 'any',\n IN: 'en-IN',\n IO: 'any',\n IQ: 'ar-IQ',\n IR: 'ir-IR',\n IS: 'any',\n IT: 'it-IT',\n JE: 'any',\n JM: 'en-JM',\n JO: 'ar-JO',\n JP: 'ja-JP',\n KE: 'en-KE',\n KG: 'ky-KG',\n KH: 'any',\n KI: 'en-KI',\n KM: 'any',\n KN: 'any',\n KP: 'any',\n KR: 'ko-KR',\n KW: 'ar-KW',\n KY: 'any',\n KZ: 'kk-KZ',\n LA: 'any',\n LB: 'az-LB',\n LC: 'any',\n LI: 'any',\n LK: 'si-LK',\n LR: 'any',\n LS: 'en-LS',\n LT: 'lt-LT',\n LU: 'de-LU',\n LV: 'any',\n LY: 'az-LY',\n MA: 'any',\n MC: 'any',\n MD: 'any',\n ME: 'any',\n MF: 'any',\n MG: 'mg-MG',\n MH: 'any',\n MK: 'any',\n ML: 'any',\n MM: 'my-MM',\n MN: 'mn-MN',\n MO: 'en-MO',\n MP: 'any',\n MQ: 'fr-MQ',\n MR: 'any',\n MS: 'any',\n MT: 'en-MT',\n MU: 'en-MU',\n MV: 'dv-MV',\n MW: 'any',\n MX: 'es-MX',\n MY: 'ms-MY',\n MZ: 'mz-MZ',\n NA: 'any',\n NC: 'any',\n NE: 'any',\n NF: 'any',\n NG: 'en-NG',\n NI: 'es-NI',\n NL: 'nl-NL',\n NO: 'nb-NO',\n NP: 'ne-NP',\n NR: 'any',\n NU: 'any',\n NZ: 'en-NZ',\n OM: 'any',\n PA: 'es-PA',\n PE: 'es-PE',\n PF: 'fr-PF',\n PG: 'en-PG',\n PH: 'en-PH',\n PK: 'en-PK',\n PL: 'pl-PL',\n PM: 'any',\n PN: 'any',\n PR: 'any',\n PS: 'ar-PS',\n PT: 'pt-PT',\n PW: 'any',\n PY: 'es-PY',\n QA: 'any',\n RE: 'fr-RE',\n RO: 'ro-RO',\n RS: 'sr-RS',\n RU: 'ru-RU',\n RW: 'en-RW',\n SA: 'ar-SA',\n SB: 'any',\n SC: 'any',\n SD: 'any',\n SE: 'sv-SE',\n SG: 'en-SG',\n SH: 'any',\n SI: 'sl-SI',\n SJ: 'any',\n SK: 'sk-SK',\n SL: 'en-SL',\n SM: 'it-SM',\n SN: 'any',\n SO: 'any',\n SR: 'any',\n ST: 'any',\n SV: 'es-SV',\n SY: 'ar-SY',\n SZ: 'any',\n TC: 'any',\n TD: 'any',\n TG: 'any',\n TH: 'th-TH',\n TJ: 'tg-TJ',\n TK: 'any',\n TL: 'any',\n TM: 'tk-TM',\n TN: 'ar-TN',\n TO: 'any',\n TR: 'tr-TR',\n TT: 'any',\n TV: 'any',\n TW: 'zh-TW',\n TZ: 'en-TZ',\n UA: 'uk-UA',\n UG: 'en-UG',\n US: 'en-US',\n UY: 'es-UY',\n UZ: 'uz-UZ',\n VA: 'any',\n VC: 'any',\n VE: 'es-VE',\n VG: 'any',\n VI: 'any',\n VN: 'vi-VN',\n VU: 'any',\n WF: 'any',\n WS: 'any',\n YE: 'ar-YE',\n YT: 'any',\n ZA: 'en-ZA',\n ZM: 'en-ZM',\n ZW: 'en-ZW',\n};\n\nexport const US_TIME_ZONES = {\n 'America/Puerto_Rico': 'Atlantic',\n 'America/New_York': 'Eastern',\n 'America/Chicago': 'Central',\n 'America/Denver': 'Mountain',\n 'America/Los_Angeles': 'Pacific',\n 'Pacific/Honolulu': 'Hawaii-Aleutian Islands',\n 'America/Adak': 'Hawaii-Aleutian Islands',\n 'Pacific/Pago_Pago': 'American Samoa',\n 'Pacific/Majuro': 'Marshall Islands',\n 'Pacific/Guam': 'Guam',\n 'Pacific/Palau': 'Palau',\n 'Pacific/Pohnpei': 'Micronesia',\n};\n\nexport function onlyUnique(value, index, self) {\n return self.indexOf(value) === index;\n}\n\nexport const formatBytes = (bytes, decimals = 1) => {\n if (!+bytes) return '0 Bytes';\n\n const k = 1024;\n const dm = decimals < 0 ? 0 : decimals;\n const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];\n\n const i = Math.floor(Math.log(bytes) / Math.log(k));\n\n return `${parseFloat((bytes / Math.pow(k, i)).toFixed(dm))} ${sizes[i]}`;\n};\n\nexport const getClientTimeZone = () => {\n return Intl.DateTimeFormat().resolvedOptions().timeZone;\n};\n\nexport const conversationMainIssues = [\n { label: 'Test', value: 'test' },\n { label: 'Vaccine', value: 'vaccine' },\n { label: 'Other', value: 'other' },\n];\n\n// https://stackoverflow.com/a/54246501\nexport const camelToSnakeCase = (str) =>\n str.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`);\n\nexport const stringToId = (label) => label?.toLowerCase()?.replace(/\\s+/g, '-');\n","import { format } from 'date-fns';\n\nexport const unixToDateTime = (unixTime) => {\n if (unixTime) {\n const standardDate = new Date(unixTime * 1000);\n const date = format(standardDate, 'yyyy-MM-dd');\n const time = format(standardDate, 'HH:mm');\n\n const formattedTime = date + 'T' + time;\n return formattedTime;\n } else {\n return null;\n }\n};\n\nexport const formattedDateTime = (dateTime) => {\n if (!dateTime) return null;\n let date, time;\n try {\n date = dateTime.split('T')[0];\n time = dateTime.split('T')[1].split('.')[0];\n } catch {\n date = format(new Date(dateTime), 'yyyy-MM-dd');\n time = format(new Date(dateTime), 'HH:mm');\n }\n\n const formattedTime = date + 'T' + time;\n\n return formattedTime;\n};\n\nexport const toUnix = (dateTime) => {\n return dateTime ? Math.round(new Date(dateTime).getTime() / 1000) : null;\n};\n\nexport const formatTextUid = (uid) => {\n if (!uid) return uid;\n\n if (uid.length < 15) {\n return uid;\n }\n return uid.substr(0, 6) + '...' + uid.substr(uid.length - 6);\n};\n\nexport const getCookie = (key) => {\n var b = document.cookie.match('(^|;)\\\\s*' + key + '\\\\s*=\\\\s*([^;]+)');\n return b ? unescape(b.pop()) : '';\n};\n\nexport const getTestGroups = () =>\n getCookie('testGroups') || localStorage.getItem('testGroups');\n\nexport const testRedirect = (test) => {\n let serviceSpecification = test.test_configuration.service_specification;\n let route = genericTestSpecificationRouteMappings[serviceSpecification];\n let url;\n\n if (route) {\n url = `/${route}_test_results/${test.uid}`;\n } else {\n route = serviceSpecificationRouteMappings[serviceSpecification];\n url = `/${route}/results/${test.uid}`;\n }\n if (url) {\n window.location.href = url;\n }\n};\n\nconst genericTestSpecificationRouteMappings = {\n rapid_chembio: 'chembio',\n rapid_flowflex: 'flowflex',\n rapid_indicaid: 'indicaid',\n rapid_lucira: 'lucira',\n rapid_lumira: 'lumira',\n rapid_quidel_lyra: 'quidel_lyra',\n rapid_quidel_quickvue: 'quidel_quickvue',\n rapid_quidel_quickvue_rsv: 'quidel_quickvue_rsv',\n rapid_status_strep_a_flip: 'status_strep_a_flip',\n rapid_universal: 'universal',\n};\nconst serviceSpecificationRouteMappings = {\n ...genericTestSpecificationRouteMappings,\n alere_cholestech_ldx: 'alere_cholestech_ldx',\n abbott_id_now_rsv: 'abbott_id_now_rsv',\n cepheid_rapid_pcr: 'cepheid',\n cobas: 'cobas',\n hba1c: 'a1c',\n i_health: 'i_health',\n istat_creatinine: 'istat_creatinine',\n lead_venous: 'lead_venous',\n luminostics_rapid_pcr: 'luminostics',\n naat_abbott_id_now: 'abbottidnow',\n naat_accula: 'accula',\n naat_cue: 'cue',\n naat_lucira_flu_ab_covid19: 'lucira_flu_ab_covid19',\n rapid_antigen_abbott_covid19: 'abbott',\n rapid_antigen_bdveritor_covid19: 'bdveritor',\n rapid_antigen_bdveritor_flu_ab_covid19: 'bdveritor_flu_ab_covid19',\n rapid_antigen_carestart_covid19: 'carestart',\n rapid_antigen_lifesign_status_flu_ab_covid19:\n 'lifesign_status_flu_ab_covid19',\n rapid_antigen_quidel_covid19: 'quidel',\n rapid_assure_ecotest_covid19: 'assure_ecotest_covid19',\n rapid_bdveritor_flu_ab: 'bdveritor_flu_ab',\n rapid_hcv: 'rapid_hcv',\n rapid_hiv: 'hiv',\n rapid_syphilis: 'rapid_syphilis',\n rapid_i_health: 'i_health',\n rapid_quidel_quickvue_influenza_ab: 'quidel_quickvue_flu_ab',\n sofia2: 'sofia2',\n spitfire_rapid_pcr: 'spitfire',\n visby_rapid_pcr: 'visby',\n xpert_xpress: 'xpert_xpress',\n abbott_id_now_flu_a_b_2: 'abbott_id_now_flu_a_b_2',\n creatinine: 'creatinine',\n lead_standard_profile: 'lead_standard_profile',\n rapid_pcr_flu_ab_multiplex: 'rapid_pcr_flu_ab_multiplex',\n blood_glucose: 'blood_glucose',\n hemoglobin: 'hemoglobin',\n a1c_now: 'a1c_now',\n total_cholesterol_fasted: 'total_cholesterol_fasted',\n total_cholesterol_unfasted: 'total_cholesterol_unfasted',\n blood_glucose_fasted: 'blood_glucose_fasted'\n};\n\nexport const getTestResultType = (service_specification) => {\n return serviceSpecificationRouteMappings[service_specification];\n};\n\nexport const uploadPhoto = (\n testImageData,\n url,\n dispatchTestResults,\n hasUnapprovedResult = false,\n reloadAfterDispatch = true,\n) => {\n if (hasUnapprovedResult) {\n return toastr.error(\n 'Cannot save positive result photo without final approval.',\n );\n } else {\n const requestOptions = {\n method: 'PUT',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify({ test: { test_image_base64: testImageData } }),\n redirect: 'manual',\n };\n\n fetch(url, requestOptions).then((response) => {\n if (response.ok) {\n dispatchTestResults(reloadAfterDispatch);\n } else {\n return toastr.error('Failed to save photo.');\n }\n });\n }\n};\n\nexport const getTestErrorMessage = (error) =>\n error.response.status === 401\n ? 'Not authorized to perform this action'\n : error.response.data?.error || 'Problem locating test';\n\nexport const parseRange = (rangeString) => {\n let [from, to] = rangeString.split('..');\n if (!from) from = Number.NEGATIVE_INFINITY;\n if (!to) to = Number.POSITIVE_INFINITY;\n return { from: parseFloat(from), to: parseFloat(to) };\n};\n\nexport const formatRangeValue = (value, rangeProps) => {\n let valueLabel = value.from;\n if (rangeProps?.cut_off) {\n const cutOff = rangeProps.cut_off;\n const beginlessRange = rangeProps.from == Number.NEGATIVE_INFINITY;\n const endlessRange = rangeProps.to == Number.POSITIVE_INFINITY;\n if (beginlessRange && value.from < cutOff) {\n valueLabel = `<${cutOff}`;\n } else if (endlessRange && value.from > cutOff) {\n valueLabel = `>${cutOff}`;\n }\n } else {\n if (value.from && value.to) {\n if (value.from != value.to) {\n valueLabel = `${value.from} - ${value.to}`;\n } else {\n valueLabel = value.from;\n }\n } else if (value.from) {\n valueLabel = `>${value.from}`;\n } else {\n valueLabel = `<${value.to}`;\n }\n }\n return valueLabel;\n};\n\nexport const hasExistingData = (data) => {\n if (!data) return false;\n\n const { result, notes, results } = data;\n\n return result || notes || results.find(resultHasValue);\n};\n\nexport const resultHasValue = (result) => {\n return result.value || result.value_numeric || result.value_date_time;\n};\n","import React, {\n FC,\n JSXElementConstructor,\n ReactElement,\n ReactNode,\n} from 'react';\nimport { Tooltip, OverlayTrigger } from 'react-bootstrap';\nimport {\n OverlayTriggerProps,\n OverlayTriggerRenderProps,\n} from 'react-bootstrap/esm/OverlayTrigger';\n\ninterface TooltipProps {\n tooltipContent: string | React.ReactNode;\n placement?: 'top' | 'right' | 'bottom' | 'left';\n children:\n | ReactElement>\n | ((props: OverlayTriggerRenderProps) => ReactNode);\n overlayProps?: OverlayTriggerProps;\n}\n\nconst TooltipWrapper: FC = ({\n tooltipContent,\n placement = 'bottom',\n children,\n overlayProps,\n}) => (\n (\n \n {typeof tooltipContent === 'string'\n ? tooltipContent.split(/\\n|\\\\n|
/).map((subText, idx) => (\n \n {subText}\n \n ))\n : tooltipContent}\n
\n )}\n {...overlayProps}\n >\n {children}\n \n);\n\nexport default TooltipWrapper;\n","import React from 'react';\n\ninterface WrappedProps {\n WrapperComponent: React.ComponentType;\n wrapIf?: boolean;\n componentProps: Omit;\n children: React.ReactNode;\n}\n\nconst Wrapped = ({\n WrapperComponent,\n wrapIf = true,\n componentProps,\n children,\n}: WrappedProps) =>\n wrapIf ? (\n \n ) : (\n children\n );\n\nexport default Wrapped;\n"],"names":["_ref","_ref$id","id","concat","Date","now","Math","floor","random","name","label","checked","onChange","radio","className","_ref$labelClassName","labelClassName","_ref$inputClassName","inputClassName","ariaLabel","_ref$value","value","_ref$defaultChecked","defaultChecked","_ref$autoFocus","autoFocus","_ref$checkMarkStyle","checkMarkStyle","dataTestHook","_ref$disabled","disabled","inputProps","React","Object","assign","type","e","target","htmlFor","ariaDescribedby","ariaInvalid","ariaRequired","autoComplete","inputMode","_ref$inputRef","inputRef","isDisabled","max","maxLength","min","minLength","onKeyDown","onKeyUp","onKeyPress","onFocus","onBlur","onInput","pattern","placeholder","readOnly","style","validation","displayIcon","prependIcon","appendIcon","props","_objectWithoutProperties","_excluded","undefined","ref","FontAwesomeIcon","icon","faCircleExclamation","color","size","position","marginTop","right","customStyles","menuPortal","provided","_objectSpread","zIndex","menu","base","width","minWidth","control","state","borderRadius","minHeight","backgroundColor","borderColor","dropdownIndicator","multiValue","singleValue","opacity","isFocused","selectTheme","theme","colors","primary","primary75","primary50","primary25","danger","dangerLight","neutral90","neutral20","DropdownIndicator","alt","src","marginRight","height","Option","innerProps","children","data","components","SelectContainer","_ref2","_excluded2","IndicatorSeparator","_ref3","classNamePrefix","_ref3$components","containerClassName","defaultValue","filledValue","filterOption","isClearable","isMulti","isSearchable","menuPortalTarget","options","maxItems","_ref3$style","_ref3$inputRef","_ref3$hideSelectedOpt","hideSelectedOptions","_ref3$controlShouldRe","controlShouldRenderValue","Select","_SelectContainer","inputId","key","length","styles","required","isOptionDisabled","text","_ref$size","_ref$placement","placement","_ref$activeClass","activeClass","_ref$inactiveClass","inactiveClass","_ref$icon","_useState2","_slicedToArray","useState","setClassName","updateClassName","OverlayTrigger","overlay","Tooltip","split","map","subText","idx","onEnter","onExit","closeButton","onHide","Modal","Header","onClick","_ref$className","valueProp","optionsProp","_ref$onChange","onChangeProp","_ref$valueKey","valueKey","_ref$labelKey","labelKey","includeBlank","_ref$blankLabel","blankLabel","useMemo","newOptions","opt","unshift","filter","option","includes","find","useCallback","o","ReactSelect","createFilter","ignoreAccents","CustomOptionContainer","styled","div","_templateObject","_taggedTemplateLiteral","css","_templateObject2","isLastElement","_templateObject3","FabrxCheckbox","isSelected","selectOption","clearValue","Placeholder","arraysAreEqual","arr1","arr2","every","el","i","createUuid","dt","getTime","replace","c","r","toString","sumProperty","array","prop","obj","reduce","a","b","sum","l","partialSum","formatNumberWithCommas","n","_n$toString","calculateAge","dateOfBirth","today","differenceInYears","calculateAgeInDays","differenceInDays","calculateAgeInMonths","differenceInMonths","dateStringToDate","dateString","dateObject","DateObject","year","month","index","day","ageInMonthsYear","ageInMonths","ageInMonthsRemainder","isToday","parseISO","humanize","str","m","toUpperCase","loadAppointmentSlots","accessKey","testGroupSlug","onLoad","_ref$accessCode","accessCode","_ref$testLocationId","testLocationId","availabilitiesParams","test_location_id","access_code","axios","post","then","validateEmail","email","RegExp","test","withinAgeRange","age","minimumAge","maximumAge","dataURItoBlob","dataURI","makeToFile","arguments","byteString","atob","mimeString","ab","ArrayBuffer","ia","Uint8Array","charCodeAt","File","lastModified","Blob","languageObject","am","ar","bn","en","es","fa","fr","hat","hi","hmn","hy","ja","kar","ko","lo","my","ne","om","ru","so","tl","uk","ur","vi","zh","countryCodeObject","AD","AE","AF","AG","AI","AL","AM","AN","AO","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BM","BN","BO","BR","BS","BT","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GT","GU","GW","GY","HK","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","ST","SV","SY","SZ","TC","TD","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW","onlyUnique","self","indexOf","formatBytes","bytes","decimals","dm","log","parseFloat","pow","toFixed","getClientTimeZone","Intl","DateTimeFormat","resolvedOptions","timeZone","conversationMainIssues","camelToSnakeCase","letter","toLowerCase","stringToId","_label$toLowerCase","unixToDateTime","unixTime","standardDate","format","formattedDateTime","dateTime","date","time","_unused","toUnix","round","formatTextUid","uid","substr","getCookie","document","cookie","match","unescape","pop","getTestGroups","localStorage","getItem","testRedirect","url","serviceSpecification","test_configuration","service_specification","route","genericTestSpecificationRouteMappings","serviceSpecificationRouteMappings","window","location","href","rapid_chembio","rapid_flowflex","rapid_indicaid","rapid_lucira","rapid_lumira","rapid_quidel_lyra","rapid_quidel_quickvue","rapid_quidel_quickvue_rsv","rapid_status_strep_a_flip","rapid_universal","alere_cholestech_ldx","abbott_id_now_rsv","cepheid_rapid_pcr","cobas","hba1c","i_health","istat_creatinine","lead_venous","luminostics_rapid_pcr","naat_abbott_id_now","naat_accula","naat_cue","naat_lucira_flu_ab_covid19","rapid_antigen_abbott_covid19","rapid_antigen_bdveritor_covid19","rapid_antigen_bdveritor_flu_ab_covid19","rapid_antigen_carestart_covid19","rapid_antigen_lifesign_status_flu_ab_covid19","rapid_antigen_quidel_covid19","rapid_assure_ecotest_covid19","rapid_bdveritor_flu_ab","rapid_hcv","rapid_hiv","rapid_syphilis","rapid_i_health","rapid_quidel_quickvue_influenza_ab","sofia2","spitfire_rapid_pcr","visby_rapid_pcr","xpert_xpress","abbott_id_now_flu_a_b_2","creatinine","lead_standard_profile","rapid_pcr_flu_ab_multiplex","blood_glucose","hemoglobin","a1c_now","total_cholesterol_fasted","total_cholesterol_unfasted","blood_glucose_fasted","getTestResultType","uploadPhoto","testImageData","dispatchTestResults","reloadAfterDispatch","toastr","error","requestOptions","method","headers","body","JSON","stringify","test_image_base64","redirect","fetch","response","ok","getTestErrorMessage","_error$response$data","status","parseRange","rangeString","_rangeString$split2","from","to","Number","NEGATIVE_INFINITY","POSITIVE_INFINITY","formatRangeValue","rangeProps","valueLabel","cut_off","cutOff","beginlessRange","endlessRange","hasExistingData","result","notes","results","resultHasValue","value_numeric","value_date_time","tooltipContent","overlayProps","WrapperComponent","_ref$wrapIf","wrapIf","componentProps"],"sourceRoot":""}