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AIE,EAAQd,MAAQc,EAAQd,KAAKC,OAASD,EACxC,OAAOc,GAbXtB,EAAIiB,YAAYJ,SAAQ,SAASG,GAC/B,GAAIA,EAAIR,KAAM,CACZ,IAAIH,EAAO,IAAIkB,IACfpB,EAA0Ba,EAAKX,GAC/Ba,EAAeF,EAAIR,KAAKC,OAASJ,MA4DvCmB,EAAOC,QAAUzB,EAEbwB,EAAOC,QAAP,eAhDJ,SAAkBzB,EAAK0B,GAErB,IAAIC,EAAS,CACXrB,KAAMN,EAAIM,KACVW,YAAa,CAACE,EAAcnB,EAAK0B,KAE/B1B,EAAI4B,eAAe,SACrBD,EAAO1B,IAAMD,EAAIC,KAKnB,IAAI4B,EAASX,EAAeQ,IAAkB,IAAIH,IAC9CO,EAAU,IAAIP,IACdQ,EAAU,IAAIR,IAOlB,IAJAM,EAAOhB,SAAQ,SAASmB,GACtBD,EAAQxB,IAAIyB,MAGPD,EAAQE,KAAO,GAAG,CACvB,IAAIC,EAAWH,EACfA,EAAU,IAAIR,IAEdW,EAASrB,SAAQ,SAASmB,GACnBF,EAAQK,IAAIH,KACfF,EAAQvB,IAAIyB,IACId,EAAec,IAAY,IAAIT,KACrCV,SAAQ,SAASuB,GACzBL,EAAQxB,IAAI6B,UAapB,OAPAN,EAAQjB,SAAQ,SAASmB,GACvB,IAAIK,EAAKlB,EAAcnB,EAAKgC,GACxBK,GACFV,EAAOV,YAAYqB,KAAKD,MAIrBV,EAK8BY,CAASvC,EAAK,oB","sources":["webpack://clear-works/./app/javascript/v2/cache/updates/updateAppointmentsCounter.js","webpack://clear-works/./app/javascript/v2/cache/updates/appendAppointment.js","webpack://clear-works/./app/javascript/v2/cache/updates/appendTimeOff.js","webpack://clear-works/./app/javascript/v2/cache/updates/removeAppointment.js","webpack://clear-works/./app/javascript/v2/cache/updates/removeTimeOff.js","webpack://clear-works/./app/javascript/v2/hooks/subscriptions/useAppointmentsSubscription.js","webpack://clear-works/./app/javascript/v2/hooks/subscriptions/useTimeOffsSubscription.js","webpack://clear-works/./app/javascript/v2/hooks/subscriptions/usePatientsSubscription.js","webpack://clear-works/./app/javascript/v2/SubscriptionContainer.js","webpack://clear-works/./app/javascript/v2/utils/globalFetch.js","webpack://clear-works/./app/javascript/v2/index.js","webpack://clear-works/./app/javascript/packs/v2_clearworks_app.js","webpack://clear-works/./app/javascript/v2/graphql/queries/fragments/AppointmentsCountInfo.gql","webpack://clear-works/./app/javascript/v2/graphql/queries/fragments/ContractFields.gql","webpack://clear-works/./app/javascript/v2/graphql/queries/fragments/PatientFields.gql","webpack://clear-works/./app/javascript/v2/graphql/subscriptions/AppointmentRemoved.gql","webpack://clear-works/./app/javascript/v2/graphql/subscriptions/AppointmentScheduled.gql","webpack://clear-works/./app/javascript/v2/graphql/subscriptions/PatientUpdated.gql","webpack://clear-works/./app/javascript/v2/graphql/subscriptions/TimeOffCreated.gql","webpack://clear-works/./app/javascript/v2/graphql/subscriptions/TimeOffRemoved.gql"],"sourcesContent":["import get from 'lodash/get'\n\nimport Datetime from '@/v2/modules/Datetime'\n\nimport AppointmentsCountInfo from '@/v2/graphql/queries/fragments/AppointmentsCountInfo.gql'\n\nconst updateAppointmentsCounter = (cache, appointment, amount) => {\n if (appointment) {\n const appointmentDate = Datetime.fromISO(get(appointment, 'startsAt'))\n const fragmentId = `DaySchedule:${appointmentDate.toQueryFormat()}`\n\n try {\n const countFragment = cache.readFragment({\n id: fragmentId,\n fragment: AppointmentsCountInfo,\n fragmentName: 'AppointmentsCountInfo',\n })\n\n cache.writeFragment({\n id: fragmentId,\n fragment: AppointmentsCountInfo,\n fragmentName: 'AppointmentsCountInfo',\n data: {\n ...countFragment,\n appointmentsCount: countFragment.appointmentsCount + amount,\n },\n })\n } catch (e) {\n // Trying to write an undefined cache. Ignoring exception.\n }\n }\n}\n\nexport default updateAppointmentsCounter\n","import get from 'lodash/get'\n\nimport Datetime from '@/v2/modules/Datetime'\n\nimport DayScheduleFragment from '@/v2/graphql/queries/fragments/DayScheduleInfo.gql'\n\nconst appendAppointment = (cache, appointment) => {\n if (appointment.id) {\n const startsAt = Datetime.fromISO(get(appointment, 'startsAt'))\n const fragmentId = `DaySchedule:${startsAt.toQueryFormat()}`\n\n try {\n const result = cache.readFragment({\n id: fragmentId,\n fragment: DayScheduleFragment,\n fragmentName: 'DayScheduleInfo',\n })\n\n const alreadyInList = result.appointments.find(\n e => e.id === appointment.id\n )\n\n if (!alreadyInList) {\n cache.writeFragment({\n id: fragmentId,\n fragment: DayScheduleFragment,\n fragmentName: 'DayScheduleInfo',\n data: {\n ...result,\n appointments: [...result.appointments, appointment],\n },\n })\n }\n } catch (e) {\n // Trying to write an undefined cache. Ignoring exception.\n }\n }\n}\n\nexport default appendAppointment\n","import get from 'lodash/get'\n\nimport Datetime from '@/v2/modules/Datetime'\n\nimport DayScheduleFragment from '@/v2/graphql/queries/fragments/DayScheduleInfo.gql'\n\nconst appendTimeOff = (cache, timeOff) => {\n if (timeOff.id) {\n const startsAt = Datetime.fromISO(get(timeOff, 'startsAt'))\n const fragmentId = `DaySchedule:${startsAt.toQueryFormat()}`\n\n try {\n const result = cache.readFragment({\n id: fragmentId,\n fragment: DayScheduleFragment,\n fragmentName: 'DayScheduleInfo',\n })\n\n const alreadyInList = result.timeOffs.find(({ id }) => id === timeOff.id)\n\n if (!alreadyInList) {\n cache.writeFragment({\n id: fragmentId,\n fragment: DayScheduleFragment,\n fragmentName: 'DayScheduleInfo',\n data: {\n ...result,\n timeOffs: [...result.timeOffs, timeOff],\n },\n })\n }\n } catch (e) {\n // Trying to write an undefined cache. Ignoring exception.\n }\n }\n}\n\nexport default appendTimeOff\n","import get from 'lodash/get'\n\nimport Datetime from '@/v2/modules/Datetime'\n\nimport DayScheduleFragment from '@/v2/graphql/queries/fragments/DayScheduleInfo.gql'\n\nconst removeAppointment = (cache, appointment) => {\n if (appointment.id) {\n const startsAt = Datetime.fromISO(get(appointment, 'startsAt'))\n const fragmentId = `DaySchedule:${startsAt.toQueryFormat()}`\n\n try {\n const result = cache.readFragment({\n id: fragmentId,\n fragment: DayScheduleFragment,\n fragmentName: 'DayScheduleInfo',\n })\n\n cache.writeFragment({\n id: fragmentId,\n fragment: DayScheduleFragment,\n fragmentName: 'DayScheduleInfo',\n data: {\n ...result,\n appointments: result.appointments.filter(\n _appointment => _appointment.id !== appointment.id\n ),\n },\n })\n } catch (e) {\n // Trying to write an undefined cache. Ignoring exception.\n }\n }\n}\n\nexport default removeAppointment\n","import get from 'lodash/get'\n\nimport Datetime from '@/v2/modules/Datetime'\n\nimport DayScheduleFragment from '@/v2/graphql/queries/fragments/DayScheduleInfo.gql'\n\nconst removeTimeOff = (cache, timeOff) => {\n if (timeOff.id) {\n const startsAt = Datetime.fromISO(get(timeOff, 'startsAt'))\n const fragmentId = `DaySchedule:${startsAt.toQueryFormat()}`\n\n try {\n const result = cache.readFragment({\n id: fragmentId,\n fragment: DayScheduleFragment,\n fragmentName: 'DayScheduleInfo',\n })\n\n cache.writeFragment({\n id: fragmentId,\n fragment: DayScheduleFragment,\n fragmentName: 'DayScheduleInfo',\n data: {\n ...result,\n timeOffs: result.timeOffs.filter(\n _timeOff => _timeOff.id !== timeOff.id\n ),\n },\n })\n } catch (e) {\n // Trying to write an undefined cache. Ignoring exception.\n }\n }\n}\n\nexport default removeTimeOff\n","import { useSubscription } from '@apollo/client'\n\nimport {\n updateAppointmentsCounter,\n appendAppointment,\n removeAppointment,\n} from '@/v2/cache/updates'\n\nimport AppointmentScheduled from '@/v2/graphql/subscriptions/AppointmentScheduled.gql'\nimport AppointmentRemoved from '@/v2/graphql/subscriptions/AppointmentRemoved.gql'\n\nconst useAppointmentsSubscription = () => {\n useSubscription(AppointmentRemoved, {\n onSubscriptionData: ({ client, subscriptionData }) => {\n const { appointmentRemoved } = subscriptionData.data\n\n if (appointmentRemoved) {\n removeAppointment(client, appointmentRemoved)\n updateAppointmentsCounter(client, appointmentRemoved, -1)\n }\n },\n })\n\n useSubscription(AppointmentScheduled, {\n onSubscriptionData: ({ client, subscriptionData }) => {\n const { appointmentScheduled } = subscriptionData.data\n\n if (appointmentScheduled) {\n updateAppointmentsCounter(client, appointmentScheduled, 1)\n appendAppointment(client, appointmentScheduled)\n }\n },\n })\n}\n\nexport default useAppointmentsSubscription\n","import { useSubscription } from '@apollo/client'\n\nimport { appendTimeOff, removeTimeOff } from '@/v2/cache/updates'\n\nimport TimeOffRemoved from '@/v2/graphql/subscriptions/TimeOffRemoved.gql'\nimport TimeOffCreated from '@/v2/graphql/subscriptions/TimeOffCreated.gql'\n\nconst useTimeOffsSubscription = () => {\n useSubscription(TimeOffRemoved, {\n onSubscriptionData: ({ client, subscriptionData }) => {\n const { timeOffRemoved } = subscriptionData.data\n\n if (timeOffRemoved) {\n removeTimeOff(client, timeOffRemoved)\n }\n },\n })\n\n useSubscription(TimeOffCreated, {\n onSubscriptionData: ({ client, subscriptionData }) => {\n const { timeOffCreated } = subscriptionData.data\n\n if (timeOffCreated) {\n appendTimeOff(client, timeOffCreated)\n }\n },\n })\n}\n\nexport default useTimeOffsSubscription\n","import { useSubscription } from '@apollo/client'\n\nimport PatientUpdated from '@/v2/graphql/subscriptions/PatientUpdated.gql'\n\nconst usePatientsSubscription = () => useSubscription(PatientUpdated)\n\nexport default usePatientsSubscription\n","import useAppointmentsSubscription from '@/v2/hooks/subscriptions/useAppointmentsSubscription'\nimport useTimeOffsSubscription from '@/v2/hooks/subscriptions/useTimeOffsSubscription'\nimport usePatientsSubscription from '@/v2/hooks/subscriptions/usePatientsSubscription'\n\nconst SubscriptionContainer = ({ children }) => {\n useAppointmentsSubscription()\n useTimeOffsSubscription()\n usePatientsSubscription()\n\n return children\n}\n\nexport default SubscriptionContainer\n","const originalFetch = window.fetch\n\nwindow.fetch = async (...args) => {\n const response = await originalFetch(...args)\n if (response.status === 401) {\n sessionStorage.setItem('isLoggedIn', false)\n history.replaceState(null, '', '/v2/login')\n location.href = '/v2/login'\n }\n return response\n}\n","import React, { useEffect } from 'react'\nimport * as Sentry from '@sentry/react'\nimport { ApolloProvider } from '@apollo/client'\nimport { BrowserRouter as Router } from 'react-router-dom'\nimport apolloClient from '@/v2/graphql/configs/ApolloClient'\nimport ThemeContainer from '@/v2/components/layouts/ThemeContainer'\nimport { TabProvider } from '@/v2/contexts/TabsContext'\nimport { SnackbarProvider } from '@/v2/contexts/SnackbarContext'\nimport { AuthProvider } from '@/v2/contexts/AuthContext'\nimport SubscriptionContainer from '@/v2/SubscriptionContainer'\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query'\nimport '@/v2/utils/globalFetch'\n\nconst queryClient = new QueryClient({\n defaultOptions: {\n queries: {\n staleTime: 1000 * 20, // 20 seconds\n },\n },\n})\n\nconst AppV2 = () => {\n useEffect(() => {\n const startSentry = async () => {\n if (!((navigator.brave && (await navigator.brave.isBrave())) || false)) {\n Sentry.init({\n dsn: process.env.SENTRY_REACT_DSN,\n integrations: [new Sentry.BrowserTracing()],\n environment:\n window.location.host === 'smilebar.clearworks-staging.xyz'\n ? 'staging'\n : process.env.NODE_ENV,\n tracesSampleRate: 0.01,\n replaysSessionSampleRate: 0,\n replaysOnErrorSampleRate: 1.0,\n ignoreErrors: ['NotAllowedError'],\n })\n }\n }\n startSentry()\n }, [])\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nexport default AppV2\n","import React from 'react'\nimport ReactDOM from 'react-dom'\nimport MainBoundary from '@/v2/components/boundaries/MainBoundary'\nimport AppV2 from '@/v2/'\n\ndocument.addEventListener('DOMContentLoaded', () => {\n const clearworksApp = document.createElement('div')\n clearworksApp.setAttribute('id', 'clearworks-app')\n\n const root = document.body.appendChild(clearworksApp)\n\n if (!window.location.href.includes('/v2')) {\n const url = window.location.href.replace(\n window.location.origin,\n `${window.location.origin}/v2`\n )\n window.location.href = url\n return null\n }\n\n if (root) {\n ReactDOM.render(\n \n \n ,\n root\n )\n }\n})\n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"AppointmentsCountInfo\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"DaySchedule\"}},\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"appointmentsCount\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"confirmedAppointmentsCount\"},\"arguments\":[],\"directives\":[]}]}}],\"loc\":{\"start\":0,\"end\":99}};\n doc.loc.source = {\"body\":\"fragment AppointmentsCountInfo on DaySchedule {\\n appointmentsCount\\n confirmedAppointmentsCount\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"AppointmentsCountInfo\"] = oneQuery(doc, \"AppointmentsCountInfo\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"ContractFields\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Contract\"}},\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"identifierToken\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"signed\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"active\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"emailSent\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"patientLegalName\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"billingAddress\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"patientBirthdate\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"patientSsn\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"downPayment\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"monthlyPaymentCount\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"monthlyPaymentAmount\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"totalCost\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"createdAt\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"interestRate\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"discountRate\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"description\"},\"arguments\":[],\"directives\":[]}]}}],\"loc\":{\"start\":0,\"end\":288}};\n doc.loc.source = {\"body\":\"fragment ContractFields on Contract {\\n id\\n identifierToken\\n signed\\n active\\n emailSent\\n patientLegalName\\n billingAddress\\n patientBirthdate\\n patientSsn\\n downPayment\\n monthlyPaymentCount\\n monthlyPaymentAmount\\n totalCost\\n createdAt\\n interestRate\\n discountRate\\n description\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"ContractFields\"] = oneQuery(doc, \"ContractFields\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"PatientFields\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Patient\"}},\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"photo\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"fullName\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"firstName\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"middleName\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"lastName\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"phoneNumber\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"email\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"ssn\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"gender\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"dob\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"address1\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"address2\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"city\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"state\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"country\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"zipcode\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"emergencyName\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"emergencyRelationship\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"emergencyEmail\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"emergencyPhoneNumber\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"referredBy\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"contactMethod\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"contactHandle\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"pregnant\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"premedication\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"latexAllergy\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"fakeGfPatientId\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"googleClientId\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"intakeForm\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"status\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"identifierToken\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"createdAt\"},\"arguments\":[],\"directives\":[]}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"contract\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"ContractFields\"},\"directives\":[]}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"contracts\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"ContractFields\"},\"directives\":[]}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"nextAppointments\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"limit\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"limit\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"AppointmentFields\"},\"directives\":[]}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"previousAppointments\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"limit\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"limit\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"AppointmentFields\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":751}};\n doc.loc.source = {\"body\":\"#import './ContractFields.gql'\\n#import './AppointmentFields.gql'\\n\\nfragment PatientFields on Patient {\\n id\\n photo\\n fullName\\n firstName\\n middleName\\n lastName\\n phoneNumber\\n email\\n ssn\\n gender\\n dob\\n address1\\n address2\\n city\\n state\\n country\\n zipcode\\n emergencyName\\n emergencyRelationship\\n emergencyEmail\\n emergencyPhoneNumber\\n referredBy\\n contactMethod\\n contactHandle\\n pregnant\\n premedication\\n latexAllergy\\n fakeGfPatientId\\n googleClientId\\n intakeForm {\\n id\\n status\\n identifierToken\\n createdAt\\n }\\n contract {\\n ...ContractFields\\n }\\n contracts {\\n ...ContractFields\\n }\\n nextAppointments(limit: $limit) {\\n ...AppointmentFields\\n }\\n previousAppointments(limit: $limit) {\\n ...AppointmentFields\\n }\\n\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require('./ContractFields.gql').definitions));\ndoc.definitions = doc.definitions.concat(unique(require('./AppointmentFields.gql').definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"PatientFields\"] = oneQuery(doc, \"PatientFields\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"subscription\",\"name\":{\"kind\":\"Name\",\"value\":\"AppointmentRemoved\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"appointmentRemoved\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"startsAt\"},\"arguments\":[],\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":83}};\n doc.loc.source = {\"body\":\"subscription AppointmentRemoved {\\n appointmentRemoved {\\n id\\n startsAt\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"AppointmentRemoved\"] = oneQuery(doc, \"AppointmentRemoved\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"subscription\",\"name\":{\"kind\":\"Name\",\"value\":\"AppointmentScheduled\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"appointmentScheduled\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"AppointmentFields\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":146}};\n doc.loc.source = {\"body\":\"#import '../queries/fragments/AppointmentFields.gql'\\n\\nsubscription AppointmentScheduled {\\n appointmentScheduled {\\n ...AppointmentFields\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require('../queries/fragments/AppointmentFields.gql').definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"AppointmentScheduled\"] = oneQuery(doc, \"AppointmentScheduled\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"subscription\",\"name\":{\"kind\":\"Name\",\"value\":\"PatientUpdated\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"limit\"}},\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Int\"}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"patientUpdated\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"PatientFields\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":139}};\n doc.loc.source = {\"body\":\"#import '../queries/fragments/PatientFields.gql'\\n\\nsubscription PatientUpdated($limit: Int) {\\n patientUpdated {\\n ...PatientFields\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require('../queries/fragments/PatientFields.gql').definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"PatientUpdated\"] = oneQuery(doc, \"PatientUpdated\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"subscription\",\"name\":{\"kind\":\"Name\",\"value\":\"TimeOffCreated\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"timeOffCreated\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"TimeOffFields\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":126}};\n doc.loc.source = {\"body\":\"#import '../queries/fragments/TimeOffFields.gql'\\n\\nsubscription TimeOffCreated {\\n timeOffCreated {\\n ...TimeOffFields\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require('../queries/fragments/TimeOffFields.gql').definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"TimeOffCreated\"] = oneQuery(doc, \"TimeOffCreated\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"subscription\",\"name\":{\"kind\":\"Name\",\"value\":\"TimeOffRemoved\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"timeOffRemoved\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"startsAt\"},\"arguments\":[],\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":75}};\n doc.loc.source = {\"body\":\"subscription TimeOffRemoved {\\n timeOffRemoved {\\n id\\n startsAt\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"TimeOffRemoved\"] = oneQuery(doc, \"TimeOffRemoved\");\n \n"],"names":["cache","appointment","amount","fragmentId","Datetime","get","toQueryFormat","countFragment","readFragment","id","fragment","AppointmentsCountInfo","fragmentName","writeFragment","data","appointmentsCount","e","result","DayScheduleFragment","appointments","find","timeOff","timeOffs","filter","_appointment","_timeOff","useSubscription","AppointmentRemoved","onSubscriptionData","client","appointmentRemoved","subscriptionData","removeAppointment","updateAppointmentsCounter","AppointmentScheduled","appointmentScheduled","appendAppointment","TimeOffRemoved","timeOffRemoved","removeTimeOff","TimeOffCreated","timeOffCreated","appendTimeOff","PatientUpdated","children","useAppointmentsSubscription","useTimeOffsSubscription","usePatientsSubscription","originalFetch","window","fetch","response","status","sessionStorage","setItem","history","replaceState","location","href","queryClient","QueryClient","defaultOptions","queries","staleTime","useEffect","startSentry","navigator","brave","isBrave","Sentry","dsn","process","integrations","environment","host","tracesSampleRate","replaysSessionSampleRate","replaysOnErrorSampleRate","ignoreErrors","QueryClientProvider","ApolloProvider","apolloClient","ThemeContainer","document","addEventListener","clearworksApp","createElement","setAttribute","root","body","appendChild","includes","url","replace","origin","ReactDOM","MainBoundary","showSVG","doc","loc","source","collectFragmentReferences","node","refs","kind","add","name","value","type","selectionSet","selections","forEach","selection","variableDefinitions","def","definitions","definitionRefs","findOperation","i","length","element","Set","module","exports","operationName","newDoc","hasOwnProperty","opRefs","allRefs","newRefs","refName","size","prevRefs","has","childRef","op","push","oneQuery","names","unique","defs","concat"],"sourceRoot":""}