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,EAAOtB,gBAAgBO,EAAShE,MACpC,CAAC7B,KAAKsF,gBAAgBO,EAASY,KAIxC,MAAO,CACLZ,QAAS7F,KAAKyE,UAAUhS,GACxBoQ,MAAOE,MAAMyC,QAAQiB,GAAOA,EAAM,CAACA,KAUvCxF,EAAOwE,iBAAmB,WAExB,OADe1C,MAAM3D,UAAUyH,MAAMvH,KAAKoB,SAASoG,iBAAiB,mBACpD5J,QAAO,SAAUC,EAAK4J,GAGpC,OADA5J,EADS4J,EAAQtU,GAAGoU,MAAM,IAChBE,EACH5J,IACN,KAGE2H,EAnO6B,GAsOtC1G,EAAA,QAAqB0G,G,sBCrPrB3G,EAAOC,QAAU,EAAjB,S","sources":["webpack://_N_E/./pages/locations.tsx","webpack://_N_E/./src/components/layout/Form.tsx","webpack://_N_E/./src/components/layout/PageContent.tsx","webpack://_N_E/./src/components/shared/GeoLocate.tsx","webpack://_N_E/./src/components/shared/AccessibleLocation.tsx","webpack://_N_E/./src/components/shared/LaneInfo.tsx","webpack://_N_E/./src/components/shared/Modal.tsx","webpack://_N_E/./src/components/shared/Spinner.tsx","webpack://_N_E/./src/components/shared/TopBanner.tsx","webpack://_N_E/./src/hooks/useTokenVerification.ts","webpack://_N_E/./src/hooks/useSessionTimer.ts","webpack://_N_E/./src/utils/apiErrorMessages.tsx","webpack://_N_E/?c5e8","webpack://_N_E/./node_modules/string-hash/index.js","webpack://_N_E/./node_modules/styled-jsx/dist/lib/stylesheet.js","webpack://_N_E/./node_modules/styled-jsx/dist/style.js","webpack://_N_E/./node_modules/styled-jsx/dist/stylesheet-registry.js","webpack://_N_E/./node_modules/styled-jsx/style.js"],"sourcesContent":["import React, { ChangeEvent, useCallback, useEffect, useState } from 'react'\n\nimport { useRouter } from 'next/router'\nimport { Box, Button, Flex, Text, Link, InputGroup } from '@clear/design-system'\nimport { Map } from '@components/storybook'\nimport PageContent from '@components/layout/PageContent'\nimport Spinner from '@components/shared/Spinner'\nimport TopBanner from '@components/shared/TopBanner'\nimport getEnrollmentLocations from '@api/getEnrollmentLocations'\nimport {\n determineMapZoomLevel,\n getNearbyEnrollmentLocations,\n EnrollmentLocation,\n} from '@utils/getNearbyEnrollmentLocations'\nimport { useEnrollmentContext } from '@components/EnrollmentContext'\nimport { HeadTitle } from '@components/layout/HeadTitle'\nimport { getGlobalErrorMessage } from '@utils/apiErrorMessages'\nimport { ErrorMessage } from '@components/layout/Form'\nimport { useJsApiLoader } from '@react-google-maps/api'\nimport { GeoLocate } from '@components/shared/GeoLocate'\nimport { LaneInfo } from '@components/shared/LaneInfo'\n\nconst LocationsPage: React.FC = () => {\n const router = useRouter()\n const { setSelectedPlan } = useEnrollmentContext()\n const [isLoading, setIsLoading] = useState(false)\n const [errors] = useState({})\n const [searchLocation, setSearchLocation] = useState(null)\n const [searchInput, setSearchInput] = useState('')\n const [mapSearchError, setMapSearchError] = useState(false)\n const [enrollmentLocations, setEnrollmentLocations] =\n useState>()\n const [locationsWithinRange, setLocationsWithinRange] = useState<\n EnrollmentLocation[]\n >([])\n\n const handleSearch = useCallback(\n async (searchCriteria: string) => {\n setIsLoading(true)\n setMapSearchError(false)\n setLocationsWithinRange([])\n try {\n setIsLoading(true)\n const { enrollmentLocationsNearSearch } =\n await getNearbyEnrollmentLocations(\n enrollmentLocations,\n searchInput || searchCriteria\n )\n const sortedEnrollmentLocationsNearSearch =\n enrollmentLocationsNearSearch.sort((a, b) => a.distance - b.distance)\n setLocationsWithinRange(sortedEnrollmentLocationsNearSearch)\n setSearchLocation(\n enrollmentLocationsNearSearch[0]?.location || searchInput\n )\n setIsLoading(false)\n setSearchInput('')\n } catch (e) {\n console.log(e)\n setIsLoading(false)\n setMapSearchError(true)\n setSearchInput('')\n }\n },\n [\n setLocationsWithinRange,\n setSearchLocation,\n setMapSearchError,\n searchInput,\n enrollmentLocations,\n setIsLoading,\n ]\n )\n\n const { isLoaded } = useJsApiLoader({\n id: 'google-map-script',\n googleMapsApiKey: process.env.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY || '',\n })\n\n const handleSelectPlan = async (plan: string) => {\n setSelectedPlan(plan)\n await router.push(\n `/enroll/you${router.query.test === 'true' ? '?test=true' : ''}`\n )\n }\n\n const updateSearchBar = useCallback(\n (e: ChangeEvent) => {\n setSearchInput(e.target.value)\n },\n [setSearchInput]\n )\n\n useEffect(() => {\n const fetchData = async () => {\n const response = await getEnrollmentLocations()\n setEnrollmentLocations(response.data)\n }\n fetchData()\n }, [])\n\n useEffect(() => {\n if (\n router.query.code &&\n enrollmentLocations &&\n !locationsWithinRange.length &&\n !isLoading &&\n isLoaded\n ) {\n const codeQuery =\n typeof router.query.code === 'string' ? router.query.code : ''\n setSearchInput(codeQuery)\n handleSearch(codeQuery)\n }\n }, [\n enrollmentLocations,\n handleSearch,\n isLoaded,\n isLoading,\n locationsWithinRange.length,\n router.query.code,\n ])\n\n const geoLocateSuccessHandler = (position: GeolocationPosition) => {\n handleSearch(`${position.coords.latitude},${position.coords.longitude}`)\n }\n\n const handleKeyDown = (e: any) => {\n if (e.key === 'Enter') {\n handleSearch(searchInput)\n }\n }\n\n return (\n <>\n \n \n \n \n \n \n Find an Enrollment Location\n \n \n <>\n \n {\n handleKeyDown(e)\n }}\n iconClick={() => handleSearch(searchInput)}\n onChange={updateSearchBar}\n label=\"Search for locations\"\n value={searchInput}\n placeholder=\"Zip / City / Airport Code\"\n autoComplete=\"off\"\n data-cy=\"searchBar\"\n />\n \n \n {mapSearchError && (\n \n Sorry, that's not a valid search. Please try again.\n \n )}\n {locationsWithinRange.length ? (\n \n \n {locationsWithinRange?.map((location: EnrollmentLocation) => (\n \n \n {location?.name}\n \n \n {location?.distance} miles away •{' '}\n \n {location?.address}\n \n \n {location?.open && (\n \n Open Daily\n \n )}\n \n {location?.lanes.map(\n ({\n name,\n description,\n isAccessible,\n availability,\n accessibilityMessage,\n id,\n }) => (\n \n )\n )}\n \n \n ))}\n \n {isLoaded ? (\n \n \n \n ) : (\n <>Loading google maps\n )}\n \n ) : null}\n {!locationsWithinRange.length &&\n searchLocation &&\n !mapSearchError &&\n !isLoading && (\n \n \n \n \n No locations found\n \n \n Please adjust your search for better results.\n \n \n \n )}\n \n\n \n {locationsWithinRange && locationsWithinRange[0]?.distance > 40 && (\n \n \n Need a closer location?\n \n \n Visit the{' '}\n \n TSA website\n {' '}\n for more enrollment location options.\n \n \n )}\n \n To expedite in-person enrollment, fill out an application online\n before heading to an enrollment location near you. If you choose\n not to complete an online application, you can still enroll\n in-person at one of our enrollment locations—no appointment\n needed. Be sure to bring any required documentation with you. Find\n out what to bring under the Application section of FAQs{' '}\n \n here\n \n .\n \n handleSelectPlan('tpc-enroll-5-plan')}\n data-cy=\"enroll-button\"\n />\n \n {isLoading && }\n {getGlobalErrorMessage(errors) && (\n {getGlobalErrorMessage(errors)}\n )}\n \n \n \n )\n}\n\nexport default LocationsPage\n","import React, { FormHTMLAttributes } from 'react'\nimport { Text, TextProps, Flex, FlexProps } from '@clear/design-system'\n\ntype FormProps = FlexProps & FormHTMLAttributes\n\nexport const Form: React.FC = (props) => (\n \n)\n\nexport const Row: React.FC = (props) => (\n \n)\n\nexport const Actions: React.FC = (props) => (\n \n)\n\nexport const StepTitle: React.FC = (props) => (\n \n)\n\nexport const StepSubTitle: React.FC = (props) => (\n \n)\n\nexport const ErrorMessage = React.forwardRef(\n ({ children, ...props }, ref) => (\n \n Error: {children}\n \n )\n)\n\nErrorMessage.displayName = 'ErrorMessage'\n","import React, { useState, useEffect } from 'react'\nimport { useRouter } from 'next/router'\nimport { Box, BoxProps } from '@clear/design-system'\nimport { Modal } from '@components/shared/Modal'\nimport useEnrollmentApi from '@hooks/useEnrollmentApi'\nimport { useSessionTimer } from '@hooks/useSessionTimer'\n\ntype PageContentProps = BoxProps\nconst PageContent: React.FC = ({ ...props }) => {\n const { clearState: clearEnrollmentState } = useEnrollmentApi()\n const router = useRouter()\n const sessionTimeout =\n (router && router.query && router.query.sessionTimeout) || ''\n const pathname = (router && router.pathname) || ''\n const [showSessionModal, setShowSessionModal] = useState(false)\n\n const successClickFunction = () => {\n router.push('/')\n }\n\n useEffect(() => {\n const shouldShowModal = sessionTimeout === 'true' && pathname !== '/'\n if (shouldShowModal) {\n setShowSessionModal(true)\n }\n }, [pathname, sessionTimeout])\n\n useSessionTimer(clearEnrollmentState)\n\n return (\n \n \n \n \n )\n}\n\nexport default PageContent\n","import React, { useState } from 'react'\nimport { Flex, Icon, Text, Box } from '@clear/design-system'\nimport { Modal } from '@components/shared/Modal'\n\ninterface GeoLocateProps {\n onSuccessHandler: (position: GeolocationPosition) => void\n onErrorHandler?: (error?: GeolocationPositionError) => void\n}\n\nexport function GeoLocate({\n onSuccessHandler,\n onErrorHandler,\n}: GeoLocateProps) {\n const [status, setStatus] = useState('')\n const [showModal, setShowModal] = useState(false)\n\n const geoLocateErrorHandler = (error: GeolocationPositionError) => {\n setShowModal(true)\n onErrorHandler && onErrorHandler(error)\n }\n\n function doGeoLocate() {\n if (!navigator.geolocation) {\n setStatus('Geolocation is not supported by your browser')\n } else {\n navigator.geolocation.getCurrentPosition(\n onSuccessHandler,\n geoLocateErrorHandler\n )\n }\n }\n\n return (\n \n \n \n \n \n USE MY LOCATION WITH GOOGLE MAPS\n \n \n \n {status && {status}}\n setShowModal(false)}\n canClose={true}\n />\n \n )\n}\n","import React from 'react'\nimport { Text } from '@clear/design-system'\n\ninterface AccessibilityLocationProps {\n isAccessible: boolean\n accessibilityMessage: string\n}\n\nexport const AccessibleLocation = ({\n isAccessible,\n accessibilityMessage,\n}: AccessibilityLocationProps) => {\n return (\n \n \n {isAccessible ? (\n <>\n \"Accessible\n Accessible Enrollment Location\n \n ) : (\n <>{accessibilityMessage}\n )}\n \n \n )\n}\n","import React from 'react'\nimport { Box, Text } from '@clear/design-system'\nimport { AccessibleLocation } from './AccessibleLocation'\n\ninterface Availability {\n days?: string\n hours: string\n}\n\nexport interface LaneInfo {\n name: string\n description: string\n isAccessible: boolean\n accessibilityMessage: string\n availability: Availability[]\n id: number\n}\n\nexport const LaneInfo = ({\n name,\n description,\n isAccessible,\n accessibilityMessage,\n availability,\n}: LaneInfo) => {\n return (\n <>\n \n {name}\n \n {description}\n \n {availability.map(({ hours, days }) => (\n
\n {days && {days}} {hours}\n
\n ))}\n
\n \n \n )\n}\n","import React, { SetStateAction, ReactNode } from 'react'\nimport { Flex, Text, Button } from '@clear/design-system'\nimport { ColorType } from '@clear/design-system/lib/theme/colors'\nimport Link from 'next/link'\n\nexport interface ModalProps {\n header?: string\n body: string | ReactNode\n bodyNote?: string\n showModal: boolean\n setShowModal: React.Dispatch>\n canClose?: boolean\n successButtonText?: string\n closeButtonText?: string\n successLink?: string\n successClick?: () => void\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-function\nconst noop = () => {}\n\nexport function Modal(props: ModalProps) {\n const {\n header,\n body,\n bodyNote,\n showModal,\n setShowModal,\n canClose,\n successButtonText = 'success',\n successLink,\n successClick,\n } = props\n\n const handleCloseModal = () => setShowModal(false)\n\n return (\n <>\n {showModal ? (\n <>\n \n e.stopPropagation()}\n mx={[6, null]}\n >\n {/* header */}\n \n {header && (\n \n {header}\n \n )}\n \n {body}\n \n {bodyNote && (\n \n {bodyNote}\n \n )}\n \n \n {successLink ? (\n \n \n \n ) : (\n \n )}\n \n
\n \n
\n \n ) : null}\n \n )\n}\n","import React from 'react'\n\nexport default function Spinner() {\n return (\n
\n
\n
\n
\n
\n
\n \n
\n
\n )\n}\n","import React from 'react'\nimport { Banner } from '@components/storybook'\n\nconst TopBanner = () => (\n \n)\n\nexport default TopBanner\n","import { useRouter } from 'next/router'\nimport { useEffect } from 'react'\nimport { getAccessToken, setAccessToken } from '@api/utils'\n\nconst beforeUnloadListener = (event: any) => {\n event.preventDefault()\n return (event.returnValue = 'Are you sure you want to exit?')\n}\n\nexport function useTokenVerification(disabled = false) {\n const router = useRouter()\n\n useEffect(() => {\n if (!disabled) {\n try {\n const token = getAccessToken()\n if (token) {\n addEventListener('beforeunload', beforeUnloadListener, {\n capture: true,\n })\n }\n } catch (err) {\n console.log({ tokenError: err })\n setAccessToken('')\n router.push('/')\n }\n return () => {\n removeEventListener('beforeunload', beforeUnloadListener, {\n capture: true,\n })\n }\n }\n }, [router, disabled])\n}\n","import { useRouter } from 'next/router'\nimport { useIdleTimer } from 'react-idle-timer'\nimport { useTokenVerification } from './useTokenVerification'\nimport { setAccessToken, setSessionId } from '@api/utils'\n\nconst FIFTEEN_MINUTES_IN_MILLIS = 1000 * 60 * 15\n\nexport const getInactivityTimeout = (\n INACTIVITY_TIMEOUT = FIFTEEN_MINUTES_IN_MILLIS\n) => INACTIVITY_TIMEOUT\n\nexport function useSessionTimer(\n timeoutCallback?: () => void,\n disableTokenVerification?: boolean,\n inactivityTimeout?: number\n) {\n const router = useRouter()\n\n useTokenVerification(disableTokenVerification)\n\n const sessionTimeoutHandler = async () => {\n timeoutCallback && timeoutCallback()\n // Sign out of cognito\n setAccessToken('')\n setSessionId('')\n await router.push(\n {\n pathname: router.route,\n query: { sessionTimeout: 'true' },\n },\n undefined,\n { shallow: true }\n )\n }\n\n const idleTimerFunctions = useIdleTimer({\n timeout: getInactivityTimeout(inactivityTimeout),\n onIdle: sessionTimeoutHandler,\n debounce: 500,\n })\n\n return {\n ...idleTimerFunctions,\n sessionTimeoutHandler,\n }\n}\n","import { Enrollment } from '@clear-denver/tpc-openapi-typescript'\n\ninterface ErrorMessage {\n key: string\n errorMessage: string\n}\n\nexport const getGlobalErrorMessage = (errors: any) => {\n return errors?.global?.length ? errors?.global[0].errorMessage : undefined\n}\n\nexport const createGlobalErrorMessage = (e: any) => {\n const globalError = {\n global: [\n {\n key: 'global',\n errorMessage: e.message,\n },\n ],\n }\n return globalError\n}\n\nexport interface ErrorsByProperty {\n [key: string]: Array\n}\n\nexport const getApiErrorsByProperty = (\n errors: Array,\n formState: { [key: string]: any }\n): ErrorsByProperty => {\n const errorsByProperty = errors.reduce((acc: any, err: any) => {\n const formKeys = Object.keys(formState)\n const errorKey = formKeys.includes(err.property) ? err.property : 'global'\n if (!acc[errorKey]) acc[errorKey] = []\n acc[errorKey].push({\n key: err.property,\n errorMessage: err.message,\n })\n return acc\n }, {})\n\n return errorsByProperty\n}\n\nexport async function extractErrors(\n error: Response,\n data: any\n): Promise\nexport async function extractErrors(\n error: Error,\n data: any\n): Promise\nexport async function extractErrors(error: any, data: any) {\n try {\n const errorBody = await error.json()\n return getApiErrorsByProperty(\n errorBody.errors || errorBody.businessErrors,\n data\n )\n } catch {\n return createGlobalErrorMessage(error)\n }\n}\n\nexport function setFormErrors(\n errorsByProperty: ErrorsByProperty,\n setError: T\n) {\n Object.keys(errorsByProperty).forEach((errorKey) => {\n typeof setError === 'function' &&\n setError(errorKey, {\n message: errorsByProperty[errorKey][0].errorMessage,\n })\n })\n}\n","\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/locations\",\n function () {\n return require(\"private-next-pages/locations.tsx\");\n }\n ]);\n ","\"use strict\";\n\nfunction hash(str) {\n var hash = 5381,\n i = str.length;\n\n while(i) {\n hash = (hash * 33) ^ str.charCodeAt(--i);\n }\n\n /* JavaScript does bitwise operations (like XOR, above) on 32-bit signed\n * integers. Since we want the results to be always positive, convert the\n * signed int to an unsigned by doing an unsigned bitshift. */\n return hash >>> 0;\n}\n\nmodule.exports = hash;\n","\"use strict\";\n\nexports.__esModule = true;\nexports[\"default\"] = void 0;\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n/*\nBased on Glamor's sheet\nhttps://github.com/threepointone/glamor/blob/667b480d31b3721a905021b26e1290ce92ca2879/src/sheet.js\n*/\nvar isProd = typeof process !== 'undefined' && process.env && process.env.NODE_ENV === 'production';\n\nvar isString = function isString(o) {\n return Object.prototype.toString.call(o) === '[object String]';\n};\n\nvar StyleSheet = /*#__PURE__*/function () {\n function StyleSheet(_temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n _ref$name = _ref.name,\n name = _ref$name === void 0 ? 'stylesheet' : _ref$name,\n _ref$optimizeForSpeed = _ref.optimizeForSpeed,\n optimizeForSpeed = _ref$optimizeForSpeed === void 0 ? isProd : _ref$optimizeForSpeed,\n _ref$isBrowser = _ref.isBrowser,\n isBrowser = _ref$isBrowser === void 0 ? typeof window !== 'undefined' : _ref$isBrowser;\n\n invariant(isString(name), '`name` must be a string');\n this._name = name;\n this._deletedRulePlaceholder = \"#\" + name + \"-deleted-rule____{}\";\n invariant(typeof optimizeForSpeed === 'boolean', '`optimizeForSpeed` must be a boolean');\n this._optimizeForSpeed = optimizeForSpeed;\n this._isBrowser = isBrowser;\n this._serverSheet = undefined;\n this._tags = [];\n this._injected = false;\n this._rulesCount = 0;\n var node = this._isBrowser && document.querySelector('meta[property=\"csp-nonce\"]');\n this._nonce = node ? node.getAttribute('content') : null;\n }\n\n var _proto = StyleSheet.prototype;\n\n _proto.setOptimizeForSpeed = function setOptimizeForSpeed(bool) {\n invariant(typeof bool === 'boolean', '`setOptimizeForSpeed` accepts a boolean');\n invariant(this._rulesCount === 0, 'optimizeForSpeed cannot be when rules have already been inserted');\n this.flush();\n this._optimizeForSpeed = bool;\n this.inject();\n };\n\n _proto.isOptimizeForSpeed = function isOptimizeForSpeed() {\n return this._optimizeForSpeed;\n };\n\n _proto.inject = function inject() {\n var _this = this;\n\n invariant(!this._injected, 'sheet already injected');\n this._injected = true;\n\n if (this._isBrowser && this._optimizeForSpeed) {\n this._tags[0] = this.makeStyleTag(this._name);\n this._optimizeForSpeed = 'insertRule' in this.getSheet();\n\n if (!this._optimizeForSpeed) {\n if (!isProd) {\n console.warn('StyleSheet: optimizeForSpeed mode not supported falling back to standard mode.');\n }\n\n this.flush();\n this._injected = true;\n }\n\n return;\n }\n\n this._serverSheet = {\n cssRules: [],\n insertRule: function insertRule(rule, index) {\n if (typeof index === 'number') {\n _this._serverSheet.cssRules[index] = {\n cssText: rule\n };\n } else {\n _this._serverSheet.cssRules.push({\n cssText: rule\n });\n }\n\n return index;\n },\n deleteRule: function deleteRule(index) {\n _this._serverSheet.cssRules[index] = null;\n }\n };\n };\n\n _proto.getSheetForTag = function getSheetForTag(tag) {\n if (tag.sheet) {\n return tag.sheet;\n } // this weirdness brought to you by firefox\n\n\n for (var i = 0; i < document.styleSheets.length; i++) {\n if (document.styleSheets[i].ownerNode === tag) {\n return document.styleSheets[i];\n }\n }\n };\n\n _proto.getSheet = function getSheet() {\n return this.getSheetForTag(this._tags[this._tags.length - 1]);\n };\n\n _proto.insertRule = function insertRule(rule, index) {\n invariant(isString(rule), '`insertRule` accepts only strings');\n\n if (!this._isBrowser) {\n if (typeof index !== 'number') {\n index = this._serverSheet.cssRules.length;\n }\n\n this._serverSheet.insertRule(rule, index);\n\n return this._rulesCount++;\n }\n\n if (this._optimizeForSpeed) {\n var sheet = this.getSheet();\n\n if (typeof index !== 'number') {\n index = sheet.cssRules.length;\n } // this weirdness for perf, and chrome's weird bug\n // https://stackoverflow.com/questions/20007992/chrome-suddenly-stopped-accepting-insertrule\n\n\n try {\n sheet.insertRule(rule, index);\n } catch (error) {\n if (!isProd) {\n console.warn(\"StyleSheet: illegal rule: \\n\\n\" + rule + \"\\n\\nSee https://stackoverflow.com/q/20007992 for more info\");\n }\n\n return -1;\n }\n } else {\n var insertionPoint = this._tags[index];\n\n this._tags.push(this.makeStyleTag(this._name, rule, insertionPoint));\n }\n\n return this._rulesCount++;\n };\n\n _proto.replaceRule = function replaceRule(index, rule) {\n if (this._optimizeForSpeed || !this._isBrowser) {\n var sheet = this._isBrowser ? this.getSheet() : this._serverSheet;\n\n if (!rule.trim()) {\n rule = this._deletedRulePlaceholder;\n }\n\n if (!sheet.cssRules[index]) {\n // @TBD Should we throw an error?\n return index;\n }\n\n sheet.deleteRule(index);\n\n try {\n sheet.insertRule(rule, index);\n } catch (error) {\n if (!isProd) {\n console.warn(\"StyleSheet: illegal rule: \\n\\n\" + rule + \"\\n\\nSee https://stackoverflow.com/q/20007992 for more info\");\n } // In order to preserve the indices we insert a deleteRulePlaceholder\n\n\n sheet.insertRule(this._deletedRulePlaceholder, index);\n }\n } else {\n var tag = this._tags[index];\n invariant(tag, \"old rule at index `\" + index + \"` not found\");\n tag.textContent = rule;\n }\n\n return index;\n };\n\n _proto.deleteRule = function deleteRule(index) {\n if (!this._isBrowser) {\n this._serverSheet.deleteRule(index);\n\n return;\n }\n\n if (this._optimizeForSpeed) {\n this.replaceRule(index, '');\n } else {\n var tag = this._tags[index];\n invariant(tag, \"rule at index `\" + index + \"` not found\");\n tag.parentNode.removeChild(tag);\n this._tags[index] = null;\n }\n };\n\n _proto.flush = function flush() {\n this._injected = false;\n this._rulesCount = 0;\n\n if (this._isBrowser) {\n this._tags.forEach(function (tag) {\n return tag && tag.parentNode.removeChild(tag);\n });\n\n this._tags = [];\n } else {\n // simpler on server\n this._serverSheet.cssRules = [];\n }\n };\n\n _proto.cssRules = function cssRules() {\n var _this2 = this;\n\n if (!this._isBrowser) {\n return this._serverSheet.cssRules;\n }\n\n return this._tags.reduce(function (rules, tag) {\n if (tag) {\n rules = rules.concat(Array.prototype.map.call(_this2.getSheetForTag(tag).cssRules, function (rule) {\n return rule.cssText === _this2._deletedRulePlaceholder ? null : rule;\n }));\n } else {\n rules.push(null);\n }\n\n return rules;\n }, []);\n };\n\n _proto.makeStyleTag = function makeStyleTag(name, cssString, relativeToTag) {\n if (cssString) {\n invariant(isString(cssString), 'makeStyleTag acceps only strings as second parameter');\n }\n\n var tag = document.createElement('style');\n if (this._nonce) tag.setAttribute('nonce', this._nonce);\n tag.type = 'text/css';\n tag.setAttribute(\"data-\" + name, '');\n\n if (cssString) {\n tag.appendChild(document.createTextNode(cssString));\n }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n\n if (relativeToTag) {\n head.insertBefore(tag, relativeToTag);\n } else {\n head.appendChild(tag);\n }\n\n return tag;\n };\n\n _createClass(StyleSheet, [{\n key: \"length\",\n get: function get() {\n return this._rulesCount;\n }\n }]);\n\n return StyleSheet;\n}();\n\nexports[\"default\"] = StyleSheet;\n\nfunction invariant(condition, message) {\n if (!condition) {\n throw new Error(\"StyleSheet: \" + message + \".\");\n }\n}","\"use strict\";\n\nexports.__esModule = true;\nexports[\"default\"] = JSXStyle;\nexports.flush = flush;\n\nvar _react = require(\"react\");\n\nvar _stylesheetRegistry = _interopRequireDefault(require(\"./stylesheet-registry\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nvar styleSheetRegistry = new _stylesheetRegistry[\"default\"]();\n\nfunction JSXStyle(props) {\n if (typeof window === 'undefined') {\n styleSheetRegistry.add(props);\n return null;\n }\n\n (0, _react.useLayoutEffect)(function () {\n styleSheetRegistry.add(props);\n return function () {\n styleSheetRegistry.remove(props);\n }; // props.children can be string[], will be striped since id is identical\n }, [props.id, String(props.dynamic)]);\n return null;\n}\n\nJSXStyle.dynamic = function (info) {\n return info.map(function (tagInfo) {\n var baseId = tagInfo[0];\n var props = tagInfo[1];\n return styleSheetRegistry.computeId(baseId, props);\n }).join(' ');\n};\n\nfunction flush() {\n var cssRules = styleSheetRegistry.cssRules();\n styleSheetRegistry.flush();\n return cssRules;\n}","\"use strict\";\n\nexports.__esModule = true;\nexports[\"default\"] = void 0;\n\nvar _stringHash = _interopRequireDefault(require(\"string-hash\"));\n\nvar _stylesheet = _interopRequireDefault(require(\"./lib/stylesheet\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nvar sanitize = function sanitize(rule) {\n return rule.replace(/\\/style/gi, '\\\\/style');\n};\n\nvar StyleSheetRegistry = /*#__PURE__*/function () {\n function StyleSheetRegistry(_temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n _ref$styleSheet = _ref.styleSheet,\n styleSheet = _ref$styleSheet === void 0 ? null : _ref$styleSheet,\n _ref$optimizeForSpeed = _ref.optimizeForSpeed,\n optimizeForSpeed = _ref$optimizeForSpeed === void 0 ? false : _ref$optimizeForSpeed,\n _ref$isBrowser = _ref.isBrowser,\n isBrowser = _ref$isBrowser === void 0 ? typeof window !== 'undefined' : _ref$isBrowser;\n\n this._sheet = styleSheet || new _stylesheet[\"default\"]({\n name: 'styled-jsx',\n optimizeForSpeed: optimizeForSpeed\n });\n\n this._sheet.inject();\n\n if (styleSheet && typeof optimizeForSpeed === 'boolean') {\n this._sheet.setOptimizeForSpeed(optimizeForSpeed);\n\n this._optimizeForSpeed = this._sheet.isOptimizeForSpeed();\n }\n\n this._isBrowser = isBrowser;\n this._fromServer = undefined;\n this._indices = {};\n this._instancesCounts = {};\n this.computeId = this.createComputeId();\n this.computeSelector = this.createComputeSelector();\n }\n\n var _proto = StyleSheetRegistry.prototype;\n\n _proto.add = function add(props) {\n var _this = this;\n\n if (undefined === this._optimizeForSpeed) {\n this._optimizeForSpeed = Array.isArray(props.children);\n\n this._sheet.setOptimizeForSpeed(this._optimizeForSpeed);\n\n this._optimizeForSpeed = this._sheet.isOptimizeForSpeed();\n }\n\n if (this._isBrowser && !this._fromServer) {\n this._fromServer = this.selectFromServer();\n this._instancesCounts = Object.keys(this._fromServer).reduce(function (acc, tagName) {\n acc[tagName] = 0;\n return acc;\n }, {});\n }\n\n var _this$getIdAndRules = this.getIdAndRules(props),\n styleId = _this$getIdAndRules.styleId,\n rules = _this$getIdAndRules.rules; // Deduping: just increase the instances count.\n\n\n if (styleId in this._instancesCounts) {\n this._instancesCounts[styleId] += 1;\n return;\n }\n\n var indices = rules.map(function (rule) {\n return _this._sheet.insertRule(rule);\n }) // Filter out invalid rules\n .filter(function (index) {\n return index !== -1;\n });\n this._indices[styleId] = indices;\n this._instancesCounts[styleId] = 1;\n };\n\n _proto.remove = function remove(props) {\n var _this2 = this;\n\n var _this$getIdAndRules2 = this.getIdAndRules(props),\n styleId = _this$getIdAndRules2.styleId;\n\n invariant(styleId in this._instancesCounts, \"styleId: `\" + styleId + \"` not found\");\n this._instancesCounts[styleId] -= 1;\n\n if (this._instancesCounts[styleId] < 1) {\n var tagFromServer = this._fromServer && this._fromServer[styleId];\n\n if (tagFromServer) {\n tagFromServer.parentNode.removeChild(tagFromServer);\n delete this._fromServer[styleId];\n } else {\n this._indices[styleId].forEach(function (index) {\n return _this2._sheet.deleteRule(index);\n });\n\n delete this._indices[styleId];\n }\n\n delete this._instancesCounts[styleId];\n }\n };\n\n _proto.update = function update(props, nextProps) {\n this.add(nextProps);\n this.remove(props);\n };\n\n _proto.flush = function flush() {\n this._sheet.flush();\n\n this._sheet.inject();\n\n this._fromServer = undefined;\n this._indices = {};\n this._instancesCounts = {};\n this.computeId = this.createComputeId();\n this.computeSelector = this.createComputeSelector();\n };\n\n _proto.cssRules = function cssRules() {\n var _this3 = this;\n\n var fromServer = this._fromServer ? Object.keys(this._fromServer).map(function (styleId) {\n return [styleId, _this3._fromServer[styleId]];\n }) : [];\n\n var cssRules = this._sheet.cssRules();\n\n return fromServer.concat(Object.keys(this._indices).map(function (styleId) {\n return [styleId, _this3._indices[styleId].map(function (index) {\n return cssRules[index].cssText;\n }).join(_this3._optimizeForSpeed ? '' : '\\n')];\n }) // filter out empty rules\n .filter(function (rule) {\n return Boolean(rule[1]);\n }));\n }\n /**\n * createComputeId\n *\n * Creates a function to compute and memoize a jsx id from a basedId and optionally props.\n */\n ;\n\n _proto.createComputeId = function createComputeId() {\n var cache = {};\n return function (baseId, props) {\n if (!props) {\n return \"jsx-\" + baseId;\n }\n\n var propsToString = String(props);\n var key = baseId + propsToString; // return `jsx-${hashString(`${baseId}-${propsToString}`)}`\n\n if (!cache[key]) {\n cache[key] = \"jsx-\" + (0, _stringHash[\"default\"])(baseId + \"-\" + propsToString);\n }\n\n return cache[key];\n };\n }\n /**\n * createComputeSelector\n *\n * Creates a function to compute and memoize dynamic selectors.\n */\n ;\n\n _proto.createComputeSelector = function createComputeSelector(selectoPlaceholderRegexp) {\n if (selectoPlaceholderRegexp === void 0) {\n selectoPlaceholderRegexp = /__jsx-style-dynamic-selector/g;\n }\n\n var cache = {};\n return function (id, css) {\n // Sanitize SSR-ed CSS.\n // Client side code doesn't need to be sanitized since we use\n // document.createTextNode (dev) and the CSSOM api sheet.insertRule (prod).\n if (!this._isBrowser) {\n css = sanitize(css);\n }\n\n var idcss = id + css;\n\n if (!cache[idcss]) {\n cache[idcss] = css.replace(selectoPlaceholderRegexp, id);\n }\n\n return cache[idcss];\n };\n };\n\n _proto.getIdAndRules = function getIdAndRules(props) {\n var _this4 = this;\n\n var css = props.children,\n dynamic = props.dynamic,\n id = props.id;\n\n if (dynamic) {\n var styleId = this.computeId(id, dynamic);\n return {\n styleId: styleId,\n rules: Array.isArray(css) ? css.map(function (rule) {\n return _this4.computeSelector(styleId, rule);\n }) : [this.computeSelector(styleId, css)]\n };\n }\n\n return {\n styleId: this.computeId(id),\n rules: Array.isArray(css) ? css : [css]\n };\n }\n /**\n * selectFromServer\n *\n * Collects style tags from the document with id __jsx-XXX\n */\n ;\n\n _proto.selectFromServer = function selectFromServer() {\n var elements = Array.prototype.slice.call(document.querySelectorAll('[id^=\"__jsx-\"]'));\n return elements.reduce(function (acc, element) {\n var id = element.id.slice(2);\n acc[id] = element;\n return acc;\n }, {});\n };\n\n return StyleSheetRegistry;\n}();\n\nexports[\"default\"] = StyleSheetRegistry;\n\nfunction invariant(condition, message) {\n if (!condition) {\n throw new Error(\"StyleSheetRegistry: \" + message + \".\");\n }\n}","module.exports = require('./dist/style')\n"],"names":["router","useRouter","setSelectedPlan","useEnrollmentContext","useState","isLoading","setIsLoading","errors","searchLocation","setSearchLocation","searchInput","setSearchInput","mapSearchError","setMapSearchError","enrollmentLocations","setEnrollmentLocations","locationsWithinRange","setLocationsWithinRange","handleSearch","useCallback","searchCriteria","getNearbyEnrollmentLocations","enrollmentLocationsNearSearch","sortedEnrollmentLocationsNearSearch","sort","a","b","distance","location","console","log","isLoaded","useJsApiLoader","id","googleMapsApiKey","process","handleSelectPlan","plan","push","query","test","updateSearchBar","e","target","value","useEffect","getEnrollmentLocations","response","data","fetchData","code","length","codeQuery","title","description","flexDirection","mt","textAlign","mb","as","variant","color","fontSize","display","alignItems","justifyContent","width","icon","onKeyDown","key","handleKeyDown","iconClick","onChange","label","placeholder","autoComplete","onSuccessHandler","position","coords","latitude","longitude","pr","map","name","href","encodeURI","address","open","className","lanes","isAccessible","availability","accessibilityMessage","airportCode","height","center","zoom","determineMapZoomLevel","locationMarkers","full","ml","src","alt","pb","text","textProps","onClick","getGlobalErrorMessage","Form","props","Row","mx","Actions","StepTitle","StepSubTitle","my","ErrorMessage","React","ref","children","displayName","clearEnrollmentState","useEnrollmentApi","clearState","sessionTimeout","pathname","showSessionModal","setShowSessionModal","useSessionTimer","px","showModal","setShowModal","header","body","successButtonText","successClick","canClose","GeoLocate","onErrorHandler","status","setStatus","geoLocateErrorHandler","error","border","backgroundColor","sx","cursor","navigator","geolocation","getCurrentPosition","successLink","AccessibleLocation","LaneInfo","hours","days","noop","Modal","bodyNote","p","stopPropagation","passHref","size","Spinner","backgroundImage","heading","subHeading","gradientStart","showGradient","beforeUnloadListener","event","preventDefault","returnValue","FIFTEEN_MINUTES_IN_MILLIS","getInactivityTimeout","INACTIVITY_TIMEOUT","timeoutCallback","disableTokenVerification","inactivityTimeout","disabled","getAccessToken","addEventListener","capture","err","tokenError","setAccessToken","removeEventListener","useTokenVerification","sessionTimeoutHandler","setSessionId","route","undefined","shallow","useIdleTimer","timeout","onIdle","debounce","global","errorMessage","createGlobalErrorMessage","message","getApiErrorsByProperty","formState","reduce","acc","errorKey","Object","keys","includes","property","extractErrors","json","errorBody","businessErrors","setFormErrors","errorsByProperty","setError","forEach","window","__NEXT_P","module","exports","str","hash","i","charCodeAt","_defineProperties","descriptor","enumerable","configurable","writable","defineProperty","__esModule","isProd","env","isString","o","prototype","toString","call","StyleSheet","_temp","_ref","_ref$name","_ref$optimizeForSpeed","optimizeForSpeed","_ref$isBrowser","isBrowser","invariant","this","_name","_deletedRulePlaceholder","_optimizeForSpeed","_isBrowser","_serverSheet","_tags","_injected","_rulesCount","node","document","querySelector","_nonce","getAttribute","Constructor","protoProps","staticProps","_proto","setOptimizeForSpeed","bool","flush","inject","isOptimizeForSpeed","_this","makeStyleTag","getSheet","warn","cssRules","insertRule","rule","index","cssText","deleteRule","getSheetForTag","tag","sheet","styleSheets","ownerNode","insertionPoint","replaceRule","trim","textContent","parentNode","removeChild","_this2","rules","concat","Array","cssString","relativeToTag","createElement","setAttribute","type","appendChild","createTextNode","head","getElementsByTagName","insertBefore","get","condition","Error","JSXStyle","obj","_react","styleSheetRegistry","add","useLayoutEffect","remove","String","dynamic","info","tagInfo","baseId","computeId","join","_stringHash","_interopRequireDefault","_stylesheet","StyleSheetRegistry","_ref$styleSheet","styleSheet","_sheet","_fromServer","_indices","_instancesCounts","createComputeId","computeSelector","createComputeSelector","isArray","selectFromServer","tagName","_this$getIdAndRules","getIdAndRules","styleId","indices","filter","tagFromServer","update","nextProps","_this3","fromServer","Boolean","cache","propsToString","selectoPlaceholderRegexp","css","replace","idcss","_this4","slice","querySelectorAll","element"],"sourceRoot":""}