@planningcenter/topbar 9.4.3 → 9.5.0-rc.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/dist/topbar.css +1 -1
  2. package/dist/topbar.css.map +1 -1
  3. package/dist/topbar.js +1 -1
  4. package/dist/topbar.js.map +1 -1
  5. package/dist/topbar.modern.js +1 -1
  6. package/dist/topbar.modern.js.map +1 -1
  7. package/dist/topbar.module.js +1 -1
  8. package/dist/topbar.module.js.map +1 -1
  9. package/dist/topbar.umd.js +1 -1
  10. package/dist/topbar.umd.js.map +1 -1
  11. package/dist/types/modules/apps_provider.d.ts.map +1 -1
  12. package/dist/types/modules/colors.d.ts +1 -0
  13. package/dist/types/modules/colors.d.ts.map +1 -1
  14. package/dist/types/modules/toolbar/index.d.ts.map +1 -1
  15. package/dist/types/modules/toolbar/tools/chat/chat_api_context.d.ts +12 -0
  16. package/dist/types/modules/toolbar/tools/chat/chat_api_context.d.ts.map +1 -0
  17. package/dist/types/modules/toolbar/tools/chat/chat_context.d.ts +26 -0
  18. package/dist/types/modules/toolbar/tools/chat/chat_context.d.ts.map +1 -0
  19. package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/groups.d.ts +5 -0
  20. package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/groups.d.ts.map +1 -0
  21. package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/hooks/index.d.ts +4 -0
  22. package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/hooks/index.d.ts.map +1 -0
  23. package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/hooks/use_chat_groups.d.ts +16 -0
  24. package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/hooks/use_chat_groups.d.ts.map +1 -0
  25. package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/hooks/use_chat_member_ability.d.ts +6 -0
  26. package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/hooks/use_chat_member_ability.d.ts.map +1 -0
  27. package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/hooks/use_chat_members.d.ts +10 -0
  28. package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/hooks/use_chat_members.d.ts.map +1 -0
  29. package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/index.d.ts +2 -0
  30. package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/index.d.ts.map +1 -0
  31. package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/people.d.ts +10 -0
  32. package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/people.d.ts.map +1 -0
  33. package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/section.d.ts +5 -0
  34. package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/section.d.ts.map +1 -0
  35. package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/settings.d.ts +5 -0
  36. package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/settings.d.ts.map +1 -0
  37. package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/title.d.ts +6 -0
  38. package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/title.d.ts.map +1 -0
  39. package/dist/types/modules/toolbar/tools/chat/components/channel_list_view/avatar_group.d.ts +6 -0
  40. package/dist/types/modules/toolbar/tools/chat/components/channel_list_view/avatar_group.d.ts.map +1 -0
  41. package/dist/types/modules/toolbar/tools/chat/components/channel_list_view/channel_list_blank_state.d.ts +2 -0
  42. package/dist/types/modules/toolbar/tools/chat/components/channel_list_view/channel_list_blank_state.d.ts.map +1 -0
  43. package/dist/types/modules/toolbar/tools/chat/components/channel_list_view/index.d.ts +6 -0
  44. package/dist/types/modules/toolbar/tools/chat/components/channel_list_view/index.d.ts.map +1 -0
  45. package/dist/types/modules/toolbar/tools/chat/components/channel_list_view/list.d.ts.map +1 -0
  46. package/dist/types/modules/toolbar/tools/chat/components/channel_list_view/loading_error_indicator.d.ts.map +1 -0
  47. package/dist/types/modules/toolbar/tools/chat/components/channel_list_view/preview.d.ts +7 -0
  48. package/dist/types/modules/toolbar/tools/chat/components/channel_list_view/preview.d.ts.map +1 -0
  49. package/dist/types/modules/toolbar/tools/chat/components/channel_metas.d.ts +4 -0
  50. package/dist/types/modules/toolbar/tools/chat/components/channel_metas.d.ts.map +1 -0
  51. package/dist/types/modules/toolbar/tools/chat/components/channel_view/custom_reaction_selector.d.ts +4 -0
  52. package/dist/types/modules/toolbar/tools/chat/components/channel_view/custom_reaction_selector.d.ts.map +1 -0
  53. package/dist/types/modules/toolbar/tools/chat/components/channel_view/custom_reactions_list.d.ts +3 -0
  54. package/dist/types/modules/toolbar/tools/chat/components/channel_view/custom_reactions_list.d.ts.map +1 -0
  55. package/dist/types/modules/toolbar/tools/chat/components/channel_view/hooks/index.d.ts +3 -0
  56. package/dist/types/modules/toolbar/tools/chat/components/channel_view/hooks/index.d.ts.map +1 -0
  57. package/dist/types/modules/toolbar/tools/chat/components/channel_view/hooks/use_emojis.d.ts +4 -0
  58. package/dist/types/modules/toolbar/tools/chat/components/channel_view/hooks/use_emojis.d.ts.map +1 -0
  59. package/dist/types/modules/toolbar/tools/chat/components/channel_view/hooks/use_reactions.d.ts +4 -0
  60. package/dist/types/modules/toolbar/tools/chat/components/channel_view/hooks/use_reactions.d.ts.map +1 -0
  61. package/dist/types/modules/toolbar/tools/chat/components/channel_view/index.d.ts.map +1 -0
  62. package/dist/types/modules/toolbar/tools/chat/components/channel_view/message_input.d.ts.map +1 -0
  63. package/dist/types/modules/toolbar/tools/chat/components/child_notice.d.ts +5 -0
  64. package/dist/types/modules/toolbar/tools/chat/components/child_notice.d.ts.map +1 -0
  65. package/dist/types/modules/toolbar/tools/chat/components/index.d.ts +32 -0
  66. package/dist/types/modules/toolbar/tools/chat/components/index.d.ts.map +1 -0
  67. package/dist/types/modules/toolbar/tools/chat/components/new_chat_view.d.ts +2 -0
  68. package/dist/types/modules/toolbar/tools/chat/components/new_chat_view.d.ts.map +1 -0
  69. package/dist/types/modules/toolbar/tools/chat/components/person_list_item/avatar.d.ts +7 -0
  70. package/dist/types/modules/toolbar/tools/chat/components/person_list_item/avatar.d.ts.map +1 -0
  71. package/dist/types/modules/toolbar/tools/chat/components/person_list_item/index.d.ts +3 -0
  72. package/dist/types/modules/toolbar/tools/chat/components/person_list_item/index.d.ts.map +1 -0
  73. package/dist/types/modules/toolbar/tools/chat/components/person_list_item/person.d.ts +8 -0
  74. package/dist/types/modules/toolbar/tools/chat/components/person_list_item/person.d.ts.map +1 -0
  75. package/dist/types/modules/toolbar/tools/chat/components/services/hooks/index.d.ts +4 -0
  76. package/dist/types/modules/toolbar/tools/chat/components/services/hooks/index.d.ts.map +1 -0
  77. package/dist/types/modules/toolbar/tools/chat/components/services/hooks/use_chat_people.d.ts +20 -0
  78. package/dist/types/modules/toolbar/tools/chat/components/services/hooks/use_chat_people.d.ts.map +1 -0
  79. package/dist/types/modules/toolbar/tools/chat/components/services/hooks/use_services_chat_filter.d.ts +9 -0
  80. package/dist/types/modules/toolbar/tools/chat/components/services/hooks/use_services_chat_filter.d.ts.map +1 -0
  81. package/dist/types/modules/toolbar/tools/chat/components/services/hooks/use_team_options.d.ts +3 -0
  82. package/dist/types/modules/toolbar/tools/chat/components/services/hooks/use_team_options.d.ts.map +1 -0
  83. package/dist/types/modules/toolbar/tools/chat/components/services/index.d.ts +4 -0
  84. package/dist/types/modules/toolbar/tools/chat/components/services/index.d.ts.map +1 -0
  85. package/dist/types/modules/toolbar/tools/chat/components/services/people.d.ts +4 -0
  86. package/dist/types/modules/toolbar/tools/chat/components/services/people.d.ts.map +1 -0
  87. package/dist/types/modules/toolbar/tools/chat/components/services/people_blank_state.d.ts +2 -0
  88. package/dist/types/modules/toolbar/tools/chat/components/services/people_blank_state.d.ts.map +1 -0
  89. package/dist/types/modules/toolbar/tools/chat/components/services/plans.d.ts +6 -0
  90. package/dist/types/modules/toolbar/tools/chat/components/services/plans.d.ts.map +1 -0
  91. package/dist/types/modules/toolbar/tools/chat/components/services/teams.d.ts +6 -0
  92. package/dist/types/modules/toolbar/tools/chat/components/services/teams.d.ts.map +1 -0
  93. package/dist/types/modules/toolbar/tools/chat/components/services/utils/index.d.ts +34 -0
  94. package/dist/types/modules/toolbar/tools/chat/components/services/utils/index.d.ts.map +1 -0
  95. package/dist/types/modules/toolbar/tools/chat/components/services_chat_options.d.ts +9 -0
  96. package/dist/types/modules/toolbar/tools/chat/components/services_chat_options.d.ts.map +1 -0
  97. package/dist/types/modules/toolbar/tools/chat/constants.d.ts +6 -0
  98. package/dist/types/modules/toolbar/tools/chat/constants.d.ts.map +1 -0
  99. package/dist/types/modules/toolbar/tools/chat/hooks/index.d.ts +6 -0
  100. package/dist/types/modules/toolbar/tools/chat/hooks/index.d.ts.map +1 -0
  101. package/dist/types/modules/toolbar/tools/chat/hooks/use_channels_loading.d.ts +2 -0
  102. package/dist/types/modules/toolbar/tools/chat/hooks/use_channels_loading.d.ts.map +1 -0
  103. package/dist/types/modules/toolbar/tools/chat/hooks/use_chat.d.ts +3 -0
  104. package/dist/types/modules/toolbar/tools/chat/hooks/use_chat.d.ts.map +1 -0
  105. package/dist/types/modules/toolbar/tools/chat/hooks/use_chat_api.d.ts +4 -0
  106. package/dist/types/modules/toolbar/tools/chat/hooks/use_chat_api.d.ts.map +1 -0
  107. package/dist/types/modules/toolbar/tools/chat/hooks/use_chat_stream_user.d.ts +7 -0
  108. package/dist/types/modules/toolbar/tools/chat/hooks/use_chat_stream_user.d.ts.map +1 -0
  109. package/dist/types/modules/toolbar/tools/chat/hooks/use_client.d.ts +4 -0
  110. package/dist/types/modules/toolbar/tools/chat/hooks/use_client.d.ts.map +1 -0
  111. package/dist/types/modules/toolbar/tools/chat/index.d.ts +4 -0
  112. package/dist/types/modules/toolbar/tools/chat/index.d.ts.map +1 -0
  113. package/dist/types/modules/toolbar/tools/chat/utils/index.d.ts +2 -0
  114. package/dist/types/modules/toolbar/tools/chat/utils/index.d.ts.map +1 -0
  115. package/dist/types/modules/toolbar/tools/index.d.ts +1 -1
  116. package/dist/types/modules/toolbar/tools/index.d.ts.map +1 -1
  117. package/dist/types/modules/toolbar/tools/tasks.d.ts.map +1 -1
  118. package/package.json +7 -7
  119. package/dist/types/modules/hooks/use_cross_frame_messaging.d.ts +0 -7
  120. package/dist/types/modules/hooks/use_cross_frame_messaging.d.ts.map +0 -1
  121. package/dist/types/modules/toolbar/tools/messages/components/channel_list_view/index.d.ts +0 -4
  122. package/dist/types/modules/toolbar/tools/messages/components/channel_list_view/index.d.ts.map +0 -1
  123. package/dist/types/modules/toolbar/tools/messages/components/channel_list_view/list.d.ts.map +0 -1
  124. package/dist/types/modules/toolbar/tools/messages/components/channel_list_view/loading_error_indicator.d.ts.map +0 -1
  125. package/dist/types/modules/toolbar/tools/messages/components/channel_list_view/preview.d.ts +0 -9
  126. package/dist/types/modules/toolbar/tools/messages/components/channel_list_view/preview.d.ts.map +0 -1
  127. package/dist/types/modules/toolbar/tools/messages/components/channel_view/index.d.ts.map +0 -1
  128. package/dist/types/modules/toolbar/tools/messages/components/channel_view/message_input.d.ts.map +0 -1
  129. package/dist/types/modules/toolbar/tools/messages/components/index.d.ts +0 -4
  130. package/dist/types/modules/toolbar/tools/messages/components/index.d.ts.map +0 -1
  131. package/dist/types/modules/toolbar/tools/messages/components/new_message_view.d.ts +0 -2
  132. package/dist/types/modules/toolbar/tools/messages/components/new_message_view.d.ts.map +0 -1
  133. package/dist/types/modules/toolbar/tools/messages/hooks/index.d.ts +0 -4
  134. package/dist/types/modules/toolbar/tools/messages/hooks/index.d.ts.map +0 -1
  135. package/dist/types/modules/toolbar/tools/messages/hooks/use_channels_loading.d.ts +0 -2
  136. package/dist/types/modules/toolbar/tools/messages/hooks/use_channels_loading.d.ts.map +0 -1
  137. package/dist/types/modules/toolbar/tools/messages/hooks/use_client.d.ts +0 -6
  138. package/dist/types/modules/toolbar/tools/messages/hooks/use_client.d.ts.map +0 -1
  139. package/dist/types/modules/toolbar/tools/messages/hooks/use_messages.d.ts +0 -4
  140. package/dist/types/modules/toolbar/tools/messages/hooks/use_messages.d.ts.map +0 -1
  141. package/dist/types/modules/toolbar/tools/messages/index.d.ts +0 -4
  142. package/dist/types/modules/toolbar/tools/messages/index.d.ts.map +0 -1
  143. package/dist/types/modules/toolbar/tools/messages/messages_context.d.ts +0 -12
  144. package/dist/types/modules/toolbar/tools/messages/messages_context.d.ts.map +0 -1
  145. /package/dist/types/modules/toolbar/tools/{messages → chat}/components/channel_list_view/list.d.ts +0 -0
  146. /package/dist/types/modules/toolbar/tools/{messages → chat}/components/channel_list_view/loading_error_indicator.d.ts +0 -0
  147. /package/dist/types/modules/toolbar/tools/{messages → chat}/components/channel_view/index.d.ts +0 -0
  148. /package/dist/types/modules/toolbar/tools/{messages → chat}/components/channel_view/message_input.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"topbar.js","sources":["../modules/api_request.ts","../modules/hooks/use_local_storage.ts","../modules/hooks/use_topbar_api.ts","../modules/store.js","../modules/hooks/jolt.ts","../modules/utils.ts","../modules/hooks/use_notifications_has_unread.ts","../modules/apps_provider.tsx","../modules/connected_people_provider.tsx","../modules/display_switch.tsx","../modules/mono_app_symbols.tsx","../modules/mono_app_icon.tsx","../modules/mono_app_text.tsx","../modules/mono_app_name.tsx","../modules/styles.tsx","../modules/symbols.tsx","../modules/unbutton.tsx","../modules/components/apps_button.tsx","../modules/color_app_squircles.tsx","../modules/color_app_icon.tsx","../modules/get_apps_switch_product_path.tsx","../modules/components/hoverable_list_item.tsx","../modules/components/outsider.tsx","../modules/components/popover_root.tsx","../modules/components/popup.tsx","../modules/components/apps_menu.tsx","../modules/formatters.tsx","../modules/hooks/use_store.tsx","../modules/styled_root.tsx","../modules/colors.tsx","../modules/components/popup_root.tsx","../modules/not_small_topbar/user_menu.tsx","../modules/components/hoverable.tsx","../modules/not_small_topbar/user_menu_trigger.tsx","../modules/not_small_topbar/index.tsx","../modules/platform_announcements.tsx","../modules/product_announcement.tsx","../modules/avatar.tsx","../modules/client_storage.tsx","../modules/small_topbar/account_settings_link.tsx","../modules/small_topbar/close_menu_button.tsx","../modules/get_login_profile_path.tsx","../modules/mfa_status.tsx","../modules/theme.ts","../modules/small_topbar/user_profile_menu.tsx","../modules/small_topbar/index.tsx","../modules/toolbar/components/drawer.tsx","../modules/toolbar/components/drawer_header.tsx","../modules/toolbar/components/drawer_heading.tsx","../modules/toolbar/components/scroll_container.tsx","../modules/toolbar/hooks/use_toolbar_reducer.tsx","../modules/toolbar/components/switch_view.tsx","../modules/toolbar/tools/messages/messages_context.tsx","../modules/toolbar/tools/messages/hooks/use_messages.tsx","../modules/toolbar/tools/messages/components/channel_list_view/loading_error_indicator.tsx","../modules/toolbar/tools/messages/components/channel_list_view/list.tsx","../modules/toolbar/tools/messages/components/channel_list_view/preview.tsx","../modules/toolbar/tools/messages/components/channel_list_view/index.tsx","../modules/toolbar/tools/messages/hooks/use_channels_loading.ts","../modules/toolbar/tools/messages/components/channel_view/message_input.tsx","../modules/toolbar/tools/messages/components/channel_view/index.tsx","../modules/toolbar/tools/messages/components/new_message_view.tsx","../modules/toolbar/tools/messages/index.tsx","../modules/toolbar/tools/messages/hooks/use_client.ts","../modules/components/eyebrow.tsx","../modules/components/notification_item.tsx","../modules/hooks/use_hover.tsx","../modules/components/notifications_menu_blank_state.tsx","../modules/hooks/use_notifications.ts","../modules/toolbar/tools/notifications.tsx","../modules/hooks/use_cross_frame_messaging.ts","../modules/toolbar/tools/tasks.tsx","../modules/toolbar/index.tsx","../modules/hooks/use_debounce.ts","../modules/toolbar/components/user_profile.tsx","../modules/hooks/use_media_query.tsx"],"sourcesContent":["export type Fetch = typeof fetch\n\nexport const defaultFetch: Fetch = (url, options) => {\n return fetch(url, { credentials: \"include\", mode: \"cors\", ...options })\n}\n\nexport const railsCsrfFetch: Fetch = (url, { headers, ...rest }) => {\n return fetch(url, {\n headers: { ...headers, \"X-CSRF-Token\": inferRailsCsrfToken() },\n ...rest,\n credentials: \"include\",\n mode: \"cors\",\n })\n}\n\nfunction inferRailsCsrfToken(): string | null {\n return (\n window?.Rails?.csrfToken() ||\n document\n .querySelector('meta[name=\"csrf-token\"]')\n ?.getAttribute(\"content\") ||\n null\n )\n}\n\nexport default function apiRequest(\n fetch: Fetch,\n url: string,\n { method = \"GET\", data = null } = {}\n): Promise<{ json: any; ok: boolean; response: Response }> {\n const options: RequestInit = {\n headers: {\n Accept: \"application/json\",\n \"Content-Type\": \"application/json\",\n },\n method,\n redirect: \"follow\",\n }\n\n if (data && method !== \"GET\") {\n options.body = JSON.stringify(data)\n }\n\n return fetch(url, options).then(\n (response) =>\n response\n .json()\n .then((json) => ({ json, ok: response.ok, response }))\n .catch(() => ({ json: null, ok: response.ok, response })),\n (e) => {\n console.warn(e)\n\n return { json: null, ok: false, response: null }\n }\n )\n}\n","import { useEffect, useState } from \"react\"\n\n// Adapted from https://usehooks.com/useLocalStorage\nfunction useLocalStorage(key: string, initialValue: any) {\n // State to store our value\n // Pass initial state function to useState so logic is only executed once\n const [storedValue, setStoredValue] = useState(() => {\n try {\n // Get from local storage by key\n const item = window.localStorage.getItem(key)\n\n // Parse stored json or if none return initialValue\n return item ? JSON.parse(item) : initialValue\n } catch (error) {\n // If error also return initialValue\n return initialValue\n }\n })\n\n // Reflect the state into localStorage as a side effect.\n const localStorageRepresentation = JSON.stringify(storedValue)\n useEffect(() => {\n window.localStorage.setItem(key, localStorageRepresentation)\n }, [key, localStorageRepresentation])\n\n // When we are done with this key, drop it from localStorage completely\n const dropKey = () => window.localStorage.removeItem(key)\n\n return { dropKey, setStoredValue, storedValue }\n}\n\nexport default useLocalStorage\n","import pcoUrl, { Environment } from \"@planningcenter/url\"\nimport { useEffect, useState } from \"react\"\n\nimport apiRequest, { Fetch } from \"../api_request\"\nimport { TopbarAPIResponse } from \"../interfaces\"\nimport useLocalStorage from \"./use_local_storage\"\n\nconst useTopbarAPI = ({\n configuredFetch,\n env,\n}: {\n configuredFetch: Fetch\n env: Environment\n}) => {\n const { storedValue: localResp, setStoredValue: setLocalResp } =\n useLocalStorage(\"Topbar\", {})\n const [resp, setResp] = useState<TopbarAPIResponse>(localResp)\n\n useEffect(() => {\n fetch()\n }, [])\n\n const fetch = () => {\n apiRequest(\n configuredFetch,\n `${pcoUrl(env)(\"api\")}/people/v2/me/topbar`\n ).then(({ json, ok }: { json: TopbarAPIResponse; ok: boolean }) => {\n if (ok) {\n setResp(json)\n setLocalResp(json)\n }\n })\n }\n\n return resp\n}\n\nexport default useTopbarAPI\n","function createStore(initialState) {\n let currentState = initialState\n const listeners = new Set()\n\n return {\n getState: () => currentState,\n setState: (newState) => {\n currentState = newState\n listeners.forEach((listener) => listener(currentState))\n },\n subscribe: (listener) => {\n listeners.add(listener)\n return () => listeners.delete(listener)\n },\n }\n}\n\nconst store = createStore({})\n\nexport default store\n","import Jolt, * as JoltLib from \"@planningcenter/jolt-client\"\nimport pcoUrl, * as PCO_URL from \"@planningcenter/url\"\nimport React, { useEffect } from \"react\"\n\nimport apiRequest, { railsCsrfFetch } from \"../api_request\"\nimport { JoltMessage } from \"../interfaces\"\n\nconst wssUrl = (env: PCO_URL.Environment) => {\n switch (env) {\n case \"development\":\n case \"test\":\n return \"wss://1csnwvu025.execute-api.us-east-1.amazonaws.com/v1/\"\n case \"staging\":\n return \"wss://xvk2ac1o3l.execute-api.us-east-1.amazonaws.com/v1/\"\n default:\n return \"wss://yxe88gasn3.execute-api.us-east-1.amazonaws.com/v1/\"\n }\n}\n\ntype UseJoltChannelSubscriptionProps = {\n channelName: string\n enableJoltLogging?: boolean\n enabled?: boolean\n env: PCO_URL.Environment\n fetchSubscribeToken: (cid: string) => Promise<string>\n joltPromise?: () => Promise<Jolt | undefined | void>\n}\n\nexport const useJoltChannelSubscription = ({\n channelName,\n enableJoltLogging = false,\n enabled = true,\n env,\n fetchSubscribeToken,\n joltPromise = () => Promise.resolve(),\n}: UseJoltChannelSubscriptionProps): JoltLib.ChannelSubscription => {\n const [joltChannel, setJoltChannel]: [\n JoltLib.ChannelSubscription,\n React.Dispatch<React.SetStateAction<JoltLib.ChannelSubscription>>\n ] = React.useState()\n const [joltInstance, setJoltInstance] = React.useState<Jolt>()\n const [usingIndependentJoltInstance, setUsingIndependentJoltInstance] =\n React.useState(false)\n\n const subscribeToJoltChannel = React.useCallback(async () => {\n let jolt = await joltPromise().then((j) => j)\n\n const fetchSubscribeTokenFn = async (_channel: string, cid: string) =>\n fetchSubscribeToken(cid)\n\n const fetchAuthTokenFn = async () =>\n apiRequest(\n railsCsrfFetch,\n `${pcoUrl(env)(\n \"api\"\n )}/notifications/v2/me/notifications_jolt_authorize`,\n {\n data: { data: { attributes: {} } },\n method: \"POST\",\n }\n ).then(({ json }) => json.data.id)\n\n if (!jolt) {\n setUsingIndependentJoltInstance(true)\n jolt = new Jolt(\n wssUrl(env),\n {\n fetchAuthTokenFn,\n fetchSubscribeTokenFn,\n },\n { logToConsole: enableJoltLogging }\n )\n }\n\n const channel =\n jolt.subscriptions.find((s) => s.channel === channelName) ||\n jolt.subscribe(channelName, { fetchSubscribeTokenFn })\n setJoltChannel(channel)\n setJoltInstance(jolt)\n }, [apiRequest, channelName, env, pcoUrl, railsCsrfFetch])\n\n React.useEffect(() => {\n if (enabled) {\n subscribeToJoltChannel()\n }\n }, [enabled, subscribeToJoltChannel])\n\n React.useEffect(() => {\n const pcoPageExpiredHandler = (event) => {\n if (!event.data.hasOwnProperty(\"PCOPageExpiredCurrentPersonACID\")) return\n if (\n event.data.PCOPageExpiredCurrentPersonACID ===\n window?.pcoPageExpired?.currentPersonACID\n )\n return\n if (joltInstance) joltInstance.disconnect()\n }\n\n window.addEventListener(\"message\", pcoPageExpiredHandler)\n return () => window.removeEventListener(\"message\", pcoPageExpiredHandler)\n }, [joltInstance])\n\n React.useEffect(() => {\n return () => {\n if (joltInstance && usingIndependentJoltInstance) {\n joltInstance.disconnect()\n }\n }\n }, [joltInstance])\n\n return joltChannel\n}\n\nexport const useJoltEffect = (\n channelSubscription: JoltLib.ChannelSubscription,\n eventName: string,\n callback: (data: JoltMessage) => unknown\n) => {\n return useEffect(() => {\n if (channelSubscription) {\n channelSubscription.bind(eventName, callback)\n\n return () => channelSubscription.unbind(eventName, callback)\n } else {\n return () => void 0\n }\n }, [channelSubscription, callback])\n}\n","export const capitalize = (s: string) => s.charAt(0).toUpperCase() + s.slice(1)\n\nexport const HSLtoHSLA = (hsl: string, a: number = 1) => {\n const hslArray = hsl.replace(/[a-z()%]/g, \"\").split(\" \")\n const h = hslArray[0]\n const s = hslArray[1]\n const l = hslArray[2]\n\n return `hsla(${h}, ${s}%, ${l}%, ${a})`\n}\n\nexport const debounce = (func, wait) => {\n let timeout\n\n return function (...args: any) {\n const context = this\n\n const later = () => {\n timeout = null\n func.apply(context, args)\n }\n\n clearTimeout(timeout)\n timeout = setTimeout(later, wait)\n\n if (!timeout) {\n func.apply(context, args)\n }\n }\n}\n","import React from \"react\"\nimport pcoUrl, * as PCO_URL from \"@planningcenter/url\"\nimport { ChannelSubscription } from \"@planningcenter/jolt-client\"\n\nimport useLocalStorage from \"./use_local_storage\"\nimport { useDebounce } from \"./use_debounce\"\nimport { useJoltEffect } from \"./jolt\"\nimport apiRequest, { defaultFetch } from \"../api_request\"\n\nconst noop = () => {}\n\ntype NotificationsHookProps = {\n enabled?: boolean\n env: PCO_URL.Environment\n joltChannel: ChannelSubscription\n}\n\nexport const useNotificationsHasUnread = ({\n env,\n enabled,\n joltChannel,\n}: NotificationsHookProps): boolean => {\n const { storedValue, setStoredValue } = useLocalStorage(\n \"Topbar:Notifications:hasUnread\",\n false\n )\n\n const fetchHasUnread = useDebounce(() => {\n const url = `${pcoUrl(env)(\"api\")}/notifications/v2/me/unread`\n\n apiRequest(defaultFetch, url)\n .then(({ json }) => {\n setStoredValue(json.data.attributes.unread)\n })\n .catch(noop)\n }, 300)\n\n React.useEffect(() => {\n if (enabled) {\n fetchHasUnread()\n }\n }, [enabled])\n\n useJoltEffect(\n enabled ? joltChannel : undefined,\n \"notifications.v2.events.notification.created\",\n fetchHasUnread\n )\n\n useJoltEffect(\n enabled ? joltChannel : undefined,\n \"notifications.v2.events.notification.updated\",\n fetchHasUnread\n )\n\n useJoltEffect(\n enabled ? joltChannel : undefined,\n \"notifications.v2.events.notification.destroyed\",\n fetchHasUnread\n )\n\n return storedValue\n}\n","import { useEffect } from \"react\"\nimport pcoUrl from \"@planningcenter/url\"\n\nimport apiRequest, { defaultFetch, railsCsrfFetch } from \"./api_request\"\nimport useTopbarAPI from \"./hooks/use_topbar_api\"\nimport { useJoltChannelSubscription } from \"./hooks/jolt\"\nimport { AppsProviderProps, TopbarAPIResponse } from \"./interfaces\"\nimport store from \"./store\"\nimport { useNotificationsHasUnread } from \"./hooks/use_notifications_has_unread\"\n\nexport const AppsProvider = ({\n configuredFetch = defaultFetch,\n env,\n formatter = mapApps,\n joltPromise,\n render,\n userId,\n}: AppsProviderProps) => {\n const topbarResponse = useTopbarAPI({ configuredFetch, env })\n const apps = formatter(topbarResponse)\n const hasConnectedPeople =\n topbarResponse?.data?.attributes?.has_connected_people\n const mfaEnabled =\n topbarResponse?.data?.attributes?.features?.includes(\"mfa_enabled\")\n const mfaConfigured = !!topbarResponse?.data?.attributes?.mfa_configured\n const notificationsEnabled = !window.notificationsDisabled\n const organizationTimeZone =\n topbarResponse?.data?.attributes?.org_time_zone || \"America/Los_Angeles\"\n const messagingEnabled =\n topbarResponse?.data?.attributes?.features?.includes(\"messaging_enabled\")\n\n const notificationsJoltChannel = useJoltChannelSubscription({\n channelName: `notifications.people.${userId}`,\n enableJoltLogging: true,\n enabled: true,\n env,\n fetchSubscribeToken: async (cid) => {\n const subscribeUrl = `${pcoUrl(env)(\n \"api\"\n )}/notifications/v2/me/notifications_jolt_subscribe`\n return apiRequest(railsCsrfFetch, subscribeUrl, {\n data: { data: { attributes: { cid } } },\n method: \"POST\",\n }).then(({ json }) => json.data.id)\n },\n joltPromise,\n })\n\n const notificationsHasUnread = useNotificationsHasUnread({\n env,\n enabled: true,\n joltChannel: notificationsJoltChannel,\n })\n\n useEffect(() => {\n const state = store.getState()\n\n store.setState({\n ...state,\n hasConnectedPeople,\n indicatorVisible: {\n ...state.indicatorVisible,\n Notifications: notificationsHasUnread\n },\n joltPromise,\n messagingEnabled,\n mfaConfigured,\n mfaEnabled,\n notifications: {\n env,\n enabled: notificationsEnabled,\n joltChannel: notificationsJoltChannel,\n },\n notificationsEnabled,\n notificationsJoltChannel,\n organizationTimeZone,\n userId,\n })\n }, [\n joltPromise,\n mfaConfigured,\n mfaEnabled,\n notificationsEnabled,\n notificationsHasUnread,\n organizationTimeZone,\n userId,\n ])\n\n // TODO: remove `fetch` and `remove` (breaking changes)\n return render(apps || [], {\n fetch: () => {}, // no-op because we already have fresh data\n remove: () => {}, // no-op because we are no longer caching anyway\n })\n}\n\nexport function mapApps(resp: TopbarAPIResponse) {\n return resp?.data?.attributes?.apps || []\n}\n","import pcoUrl, { Environment } from \"@planningcenter/url\"\nimport React from \"react\"\n\nimport apiRequest, { defaultFetch, Fetch } from \"./api_request\"\nimport { ConnectedPerson } from \"./interfaces\"\n\nexport function remove() {\n window.localStorage.removeItem(\"Topbar:ConnectedPeople\")\n}\n\nexport class ConnectedPeopleProvider extends React.Component<\n {\n configuredFetch?: Fetch\n env: Environment\n render: (connectedPeople: ConnectedPerson[], callback: any) => JSX.Element\n },\n {\n connectedPeople: ConnectedPerson[]\n }\n> {\n constructor(props: any) {\n super(props)\n\n this.state = {\n connectedPeople: [],\n }\n }\n\n public static defaultProps = {\n configuredFetch: defaultFetch,\n }\n\n fetch() {\n apiRequest(\n this.props.configuredFetch,\n `${pcoUrl(this.props.env)(\"api\")}/login/v2/me/connected_people`\n ).then(({ json }) => {\n const connectedPeople = json.data\n\n return this.setState(\n {\n connectedPeople,\n },\n () =>\n window.localStorage.setItem(\n \"Topbar:ConnectedPeople\",\n JSON.stringify(connectedPeople)\n )\n )\n })\n }\n\n unlink() {\n apiRequest(\n this.props.configuredFetch,\n `${pcoUrl(this.props.env)(\"api\")}/login/v2/me/unlink`,\n {\n method: \"POST\",\n }\n ).then(({ json }) => {\n window.location = json.meta.redirect_to\n })\n }\n\n switch(toId: string, returnPath: string) {\n apiRequest(\n this.props.configuredFetch,\n `${pcoUrl(this.props.env)(\"api\")}/login/v2/me/switch_connected_person`,\n {\n data: {\n data: {\n attributes: {\n id: toId,\n return_path: returnPath,\n },\n },\n },\n method: \"POST\",\n }\n ).then(({ json }) => {\n window.location = json.meta.redirect_to\n })\n }\n\n componentDidMount() {\n const connectedPeople = JSON.parse(\n window.localStorage.getItem(\"Topbar:ConnectedPeople\")\n )\n\n if (connectedPeople) return this.setState({ connectedPeople })\n\n return this.fetch()\n }\n\n render() {\n return this.props.render(this.state.connectedPeople || [], {\n fetch: this.fetch.bind(this),\n remove: remove.bind(this),\n switch: this.switch.bind(this),\n unlink: this.unlink.bind(this),\n })\n }\n}\n","import React from \"react\"\n\nimport { debounce } from \"./utils\"\n\nexport class PointBreak extends React.Component<\n {\n render: (breakpoint: string) => React.ReactElement<any>\n },\n {\n width: number\n }\n> {\n constructor(props: any) {\n super(props)\n\n this.state = {\n width: window.innerWidth,\n }\n\n this.setWindowWidth = this.setWindowWidth.bind(this)\n }\n\n setWindowWidth() {\n this.setState({ width: window.innerWidth })\n }\n\n componentDidMount() {\n window.addEventListener(\"resize\", debounce(this.setWindowWidth, 100), false)\n }\n\n componentWillUnmount() {\n window.removeEventListener(\n \"resize\",\n debounce(this.setWindowWidth, 100),\n false\n )\n }\n\n breakpointString(width) {\n if (width < 480) return \"xs\"\n if (width < 600) return \"sm\"\n if (width < 720) return \"md\"\n if (width < 960) return \"lg\"\n return \"xl\"\n }\n\n render() {\n return <>{this.props.render(this.breakpointString(this.state.width))}</>\n }\n}\n\nexport class DisplaySwitch extends React.Component<\n {\n notSmallTopbar: (breakpointShortand: string) => React.ReactElement<any>\n smallBreakpoints: String[]\n smallTopbar: (breakpointShorthand: string) => React.ReactElement<any>\n },\n {}\n> {\n public static defaultProps = {\n smallBreakpoints: [\"xs\", \"sm\"],\n }\n\n render() {\n return (\n <PointBreak\n render={(breakpoint) => {\n if (this.props.smallBreakpoints.indexOf(breakpoint) !== -1) {\n return this.props.smallTopbar(breakpoint)\n }\n\n return this.props.notSmallTopbar(breakpoint)\n }}\n />\n )\n }\n}\n","import React from \"react\"\n\nexport function Squircle({ color = \"#fff\" }): JSX.Element {\n return (\n <path\n fill={color}\n d=\"M10.008.045C2.047.045.056,2.036.056,10s1.991,9.952,9.952,9.952S19.96,17.959,19.96,10,17.969.045,10.008.045Z\"\n />\n )\n}\n\nexport function Accounts({ color }): JSX.Element {\n return (\n <path\n fill={color}\n d=\"M16.95,9.28h0l-1.33-.23c-.12,0-.24-.04-.34-.11-.1-.07-.18-.16-.23-.27-.12-.45-.3-.89-.54-1.3-.04-.11-.05-.24-.03-.35,.02-.12,.08-.23,.16-.32l.78-1.1h0s0-.03,0-.04l-.03-.02-.04-.04-.87-.87-.05-.05h0s-.02-.02-.03,0l-1.11,.78c-.09,.08-.2,.13-.32,.16-.12,.02-.24,.01-.35-.03-.41-.24-.84-.42-1.3-.54-.11-.05-.2-.13-.27-.23-.07-.1-.11-.22-.11-.34l-.22-1.33h0s-.01-.03-.02-.03h-1.41s-.02,0-.02,.02l-.23,1.34c0,.12-.04,.24-.11,.34-.07,.1-.16,.18-.27,.23-.45,.12-.89,.3-1.3,.54-.11,.04-.24,.05-.35,.03-.12-.02-.23-.08-.32-.16l-1.1-.78h0s-.02-.01-.03,0l-.02,.03-.04,.04-.87,.87-.05,.05h0s0,.03,0,.04l.78,1.11c.08,.09,.13,.2,.16,.32,.02,.12,.01,.24-.03,.35-.24,.4-.42,.84-.54,1.29-.05,.11-.13,.2-.23,.27-.1,.07-.22,.11-.34,.11l-1.33,.22h0s-.02,0-.02,.02v1.41s0,.02,.02,.02l1.34,.23c.12,0,.24,.05,.34,.11,.1,.07,.18,.16,.23,.27,.12,.45,.3,.89,.54,1.29,.04,.11,.05,.24,.03,.35-.02,.12-.08,.23-.16,.32l-.78,1.11s0,.02,0,.03h0l.05,.06,.87,.87,.04,.04,.02,.02s.02,0,.03,0h0l1.1-.79c.09-.08,.2-.13,.32-.16,.12-.02,.24-.01,.35,.03,.4,.24,.84,.42,1.29,.54,.11,.05,.2,.13,.27,.23,.07,.1,.11,.22,.11,.34l.23,1.34s0,.02,.02,.02h1.41s.02,0,.02-.02h0l.22-1.34c0-.12,.05-.24,.11-.34,.07-.1,.16-.18,.27-.23,.45-.12,.89-.3,1.29-.54,.11-.04,.24-.05,.35-.03,.12,.02,.23,.08,.32,.16l1.11,.78s.02,0,.03,0h0l.05-.06,.87-.87,.04-.04,.02-.02s0-.02,0-.03h0l-.78-1.11c-.08-.09-.13-.2-.16-.32-.02-.12-.01-.24,.03-.35,.24-.4,.42-.84,.54-1.29,.05-.11,.13-.2,.23-.27s.22-.11,.34-.11l1.34-.23s.02,0,.02-.02v-1.4s0-.02-.02-.02Zm-4.67,3.01c-.45,.45-1.03,.76-1.65,.88-.63,.12-1.27,.06-1.86-.18-.59-.24-1.09-.66-1.45-1.19-.35-.53-.54-1.15-.54-1.79s.19-1.26,.54-1.79c.35-.53,.86-.94,1.45-1.19,.59-.24,1.24-.31,1.86-.18,.63,.12,1.2,.43,1.65,.88,.3,.3,.54,.66,.7,1.05,.16,.39,.25,.81,.25,1.24s-.08,.84-.25,1.24c-.16,.39-.4,.75-.7,1.05Z\"\n />\n )\n}\n\nexport function API({ color }): JSX.Element {\n return (\n <path\n fill={color}\n d=\"M11.08,12.387a3.277,3.277,0,0,0,.21-.86l1.47-.23-.25-1.63-1.48.22A3.167,3.167,0,0,0,9.93,8.5l.54-1.37-1.54-.6L8.39,7.9a3.393,3.393,0,0,0-1.76.27l-.92-1.15-1.3,1.03.93,1.16a3.462,3.462,0,0,0-.43.78A3.333,3.333,0,0,0,4.69,11l-1.49.23.25,1.69,1.59-.24a3.278,3.278,0,0,0,1.02,1.2l-.54,1.39,1.55.6.54-1.39a3.319,3.319,0,0,0,1.74-.27l.93,1.17,1.3-1.04-.93-1.17A3.258,3.258,0,0,0,11.08,12.387ZM9.81,11.9A1.953,1.953,0,0,1,7.29,13a1.942,1.942,0,1,1,2.52-1.1Zm5.89-4.32a1.581,1.581,0,0,0,.04-.38,2.066,2.066,0,0,0-1.39-1.95v-.82H12.97v.82A2.066,2.066,0,0,0,11.58,7.2a1.581,1.581,0,0,0,.04.38l-.71.41.7,1.2.7-.4a2.073,2.073,0,0,0,2.7,0l.7.4.7-1.2Zm-2.04.67A1.045,1.045,0,1,1,14.7,7.2,1.041,1.041,0,0,1,13.66,8.247Z\"\n />\n )\n}\n\nexport function Calendar({ color }): JSX.Element {\n return (\n <path\n fill={color}\n d=\"M14.18,6.5h-.91V5.8a.55.55,0,0,0-.55-.55h-.26a.55.55,0,0,0-.55.55v.7H8.09V5.8a.55.55,0,0,0-.55-.55H7.28a.55.55,0,0,0-.55.55v.7H5.82a.58.58,0,0,0-.58.59v7.08a.58.58,0,0,0,.58.58h8.36a.58.58,0,0,0,.58-.58V7.09A.58.58,0,0,0,14.18,6.5Zm-.91,6.71H6.73V9.09h6.54Z\"\n />\n )\n}\n\nexport function CheckIns({ color }): JSX.Element {\n return (\n <path\n fill={color}\n d=\"M14.175,8.341,9.258,13.256a1.157,1.157,0,0,1-1.638,0L5.161,10.8A1.159,1.159,0,1,1,6.8,9.16L8.439,10.8l4.1-4.1a1.159,1.159,0,0,1,1.639,1.639Z\"\n />\n )\n}\n\nexport function ChurchCenter({ color }): JSX.Element {\n return (\n <path\n fill={color}\n d=\"M13.91,14.763a.334.334,0,0,1-.331.338l-1.959-.016a.334.334,0,0,1-.338-.331s.005-.233.005-1.8a3.674,3.674,0,0,0-1.279-2.638,3.674,3.674,0,0,0-1.279,2.638c0,1.565.005,1.8.005,1.8a.334.334,0,0,1-.338.331L6.437,15.1a.334.334,0,0,1-.331-.338s-.242-6.457-.02-6.65h0L9.671,5.021a.522.522,0,0,1,.684,0l3.58,3.092H13.93C14.152,8.325,13.91,14.763,13.91,14.763Z\"\n />\n )\n}\n\nexport function Giving({ color }): JSX.Element {\n return (\n <path\n fill={color}\n d=\"M10.3,13.769a.508.508,0,0,1-.592,0c-1.259-.888-5.982-4.494-3.268-6.83a2.386,2.386,0,0,1,3.215.205l.349.349.349-.349a2.386,2.386,0,0,1,3.215-.205C16.286,9.275,11.563,12.881,10.3,13.769Z\"\n />\n )\n}\n\nexport function Groups({ color }): JSX.Element {\n return (\n <path\n fill={color}\n d=\"M13.769,11.313V8.683a1.867,1.867,0,1,0-2.443-2.449H8.69A1.867,1.867,0,1,0,6.243,8.681v2.632A1.867,1.867,0,1,0,8.69,13.76h2.632a1.867,1.867,0,1,0,2.447-2.447Zm-1.455,0a1.873,1.873,0,0,0-.992.992H8.69a1.877,1.877,0,0,0-.992-.992V8.681a1.877,1.877,0,0,0,.992-.992h2.636a1.872,1.872,0,0,0,.988.99Z\"\n />\n )\n}\n\nexport function Home({ color }): JSX.Element {\n return (\n <path\n fill={color}\n d=\"M14.7619 8.93233C14.7619 8.72768 14.6587 8.53243 14.4775 8.39414L10.5927 5.43C10.2573 5.17413 9.74265 5.17413 9.40731 5.42999L5.52252 8.39414C5.34128 8.53243 5.2381 8.72768 5.2381 8.93233V13.0794C5.2381 13.4827 5.63079 13.8095 6.11521 13.8095H13.8848C14.3692 13.8095 14.7619 13.4826 14.7619 13.0794V8.93233Z\"\n />\n )\n}\n\nexport function People({ color }): JSX.Element {\n return (\n <path\n fill={color}\n d=\"M8.177,5.732A2.018,2.018,0,1,1,6.159,7.75,2.019,2.019,0,0,1,8.177,5.732Zm2.494,8.53H5.664A.565.565,0,0,1,5.1,13.7V12.422a1.841,1.841,0,0,1,1.841-1.841H9.394a1.841,1.841,0,0,1,1.841,1.841V13.7A.565.565,0,0,1,10.671,14.262ZM12.814,6.94A1.513,1.513,0,1,1,11.3,8.453,1.513,1.513,0,0,1,12.814,6.94Zm1.537,6.093H12.413a.565.565,0,0,1-.565-.565v-.049a2.292,2.292,0,0,0-.2-.957.555.555,0,0,0-.062-.141.8.8,0,0,0-.061-.11,1.19,1.19,0,0,0-.092-.16,1.131,1.131,0,0,1,.908-.472h1.472a1.108,1.108,0,0,1,1.105,1.1v.785A.565.565,0,0,1,14.351,13.033Z\"\n />\n )\n}\n\nexport function Publishing({ color }): JSX.Element {\n return (\n <path\n fill={color}\n d=\"M7.287,13.575a.478.478,0,0,1-.477.477H5.856a.478.478,0,0,1-.477-.477V6.407a.478.478,0,0,1,.477-.477H6.81a.478.478,0,0,1,.477.477Zm7.293,0a.477.477,0,0,1-.477.477H9.268a.478.478,0,0,1-.477-.477V12.6a.478.478,0,0,1,.477-.477H14.1a.477.477,0,0,1,.477.477Zm0-3.473a.477.477,0,0,1-.476.477H9.268a.478.478,0,0,1-.477-.477V6.407a.478.478,0,0,1,.477-.477H14.1a.477.477,0,0,1,.477.477Z\"\n />\n )\n}\n\nexport function Registrations({ color }): JSX.Element {\n return (\n <path\n fill={color}\n d=\"M4.48,11.09a.51.51,0,0,0,0,.71l.7.7a.22.22,0,0,0,.27,0,1.47,1.47,0,0,1,1.8.22,1.5,1.5,0,0,1,.23,1.81.21.21,0,0,0,0,.27l.7.7a.51.51,0,0,0,.71,0l2-2a.16.16,0,0,0,0-.22L6.7,9.1a.17.17,0,0,0-.23,0Zm11-2.89-.71-.7a.21.21,0,0,0-.26,0,1.47,1.47,0,0,1-1.79-.23,1.49,1.49,0,0,1-.24-1.79.22.22,0,0,0,0-.27l-.7-.7a.51.51,0,0,0-.71,0L7.47,8.11a.14.14,0,0,0,0,.22l4.2,4.2a.14.14,0,0,0,.22,0l3.63-3.62A.51.51,0,0,0,15.52,8.2Z\"\n />\n )\n}\n\nexport function Services({ color }): JSX.Element {\n return (\n <path\n fill={color}\n d=\"M6.5,6.559A1.059,1.059,0,1,1,5.443,5.5,1.059,1.059,0,0,1,6.5,6.559ZM5.443,8.943A1.059,1.059,0,1,0,6.5,10,1.059,1.059,0,0,0,5.443,8.943Zm0,3.443A1.059,1.059,0,1,0,6.5,13.445,1.059,1.059,0,0,0,5.443,12.386ZM15,6.087a.485.485,0,0,0-.485-.485H8.136a.485.485,0,0,0-.485.485V7.03a.485.485,0,0,0,.485.485h6.38A.485.485,0,0,0,15,7.03ZM15,9.53a.485.485,0,0,0-.485-.485H8.136a.485.485,0,0,0-.485.485v.943a.485.485,0,0,0,.485.485h6.38A.485.485,0,0,0,15,10.473Zm0,3.443a.485.485,0,0,0-.485-.485H8.136a.485.485,0,0,0-.485.485v.943a.485.485,0,0,0,.485.485h6.38A.485.485,0,0,0,15,13.916Z\"\n />\n )\n}\n","import React from \"react\"\n\nimport * as AppSymbols from \"./mono_app_symbols\"\n\nfunction Squircle({ color = \"#fff\" }): JSX.Element {\n return (\n <path\n d=\"M10.008.045C2.047.045.056,2.036.056,10s1.991,9.952,9.952,9.952S19.96,17.959,19.96,10,17.969.045,10.008.045Z\"\n fill={color}\n />\n )\n}\n\nexport function MonoAppIcon({\n appName,\n colors,\n style,\n size = 20,\n ...platformProps\n}: {\n appName: string\n colors: any\n size?: number\n // TODO: shared type\n style?: any\n}): JSX.Element {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width={size}\n height={size}\n viewBox=\"0 0 20 20\"\n role=\"img\"\n aria-labelledby=\"title desc\"\n style={{ display: \"block\", ...style }}\n {...platformProps}\n >\n <title id=\"title\">Planning Center {appName} App Icon</title>\n\n <desc id=\"desc\">\n An image symbolizing the Planning Center {appName} app.\n </desc>\n\n {appName === \"Accounts\" ? null : <Squircle />}\n\n {AppSymbols[appName] ? (\n React.createElement(AppSymbols[appName], {\n color: appName != \"Accounts\" ? colors.base0 : \"#fff\",\n })\n ) : (\n <div>appName not supported</div>\n )}\n </svg>\n )\n}\n","import React from \"react\"\n\nexport function Accounts({ color, size = 20 }): JSX.Element {\n return (\n <svg\n data-name=\"Layer 1\"\n height={size}\n id=\"4ce749c7-c01e-4a9b-9496-b14fd2e761aa\"\n viewBox=\"0 0 77.073 20\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <title>accounts-text</title>\n <path\n fill={color}\n d=\"M4.729,5.537A10.859,10.859,0,0,0,1.262,6.1a.566.566,0,0,0-.4.717l.194.819a.579.579,0,0,0,.7.5,10.108,10.108,0,0,1,2.748-.47,1.416,1.416,0,0,1,1.065.349A2.307,2.307,0,0,1,6,9.682,7.706,7.706,0,0,0,4.1,9.418c-2.493,0-4.1,1.305-4.1,3.327a3.2,3.2,0,0,0,3.328,3.434,4.385,4.385,0,0,0,3.011-1.161l.181.509c.1.249.231.415.515.415h.712a.6.6,0,0,0,.59-.589v-5.3C8.337,7.581,8.065,5.537,4.729,5.537ZM3.78,14.181a1.343,1.343,0,0,1-1.436-1.459c0-.91.777-1.522,1.932-1.522a4.726,4.726,0,0,1,1.7.3v1.556A2.983,2.983,0,0,1,3.78,14.181ZM18.6,13.194c.4.361.326.669.2.865a4.646,4.646,0,0,1-3.977,2.12,5.2,5.2,0,0,1-5.2-5.31,5.285,5.285,0,0,1,5.225-5.332,4.461,4.461,0,0,1,3.711,1.768.6.6,0,0,1-.1.869l-.775.71c-.361.335-.64.056-.806-.11A2.909,2.909,0,0,0,14.9,7.816,2.938,2.938,0,0,0,12,10.847,2.921,2.921,0,0,0,14.837,13.9a2.623,2.623,0,0,0,2.03-.965c.082-.081.161-.16.241-.233a.574.574,0,0,1,.819-.049Zm9.661,0c.4.361.326.669.2.865a4.644,4.644,0,0,1-3.976,2.12,5.2,5.2,0,0,1-5.2-5.31A5.286,5.286,0,0,1,24.5,5.537a4.459,4.459,0,0,1,3.71,1.768.6.6,0,0,1-.1.869l-.775.71c-.361.335-.641.056-.806-.11a2.779,2.779,0,0,0-4.869,2.073A2.92,2.92,0,0,0,24.5,13.9a2.625,2.625,0,0,0,2.03-.965c.081-.081.161-.16.241-.233a.573.573,0,0,1,.818-.049Zm5.86-7.657A5.323,5.323,0,1,0,39.3,10.826,5.317,5.317,0,0,0,34.117,5.537Zm2.838,5.289a2.857,2.857,0,1,1-5.7,0,2.853,2.853,0,1,1,5.7,0ZM49.346,6.341v9.012a.616.616,0,0,1-.612.589h-.517c-.34,0-.474-.245-.561-.485l-.2-.536a4.084,4.084,0,0,1-3.1,1.258c-3.388,0-3.823-2.5-3.823-4.685V6.341a.621.621,0,0,1,.59-.588h1.207a.6.6,0,0,1,.59.588v5.3c0,1.539.58,2.256,1.825,2.256a2.357,2.357,0,0,0,2.214-1.544l0-6.016c0-.544.349-.588.676-.588h1.1A.624.624,0,0,1,49.346,6.341Zm11.089,4.01v5a.605.605,0,0,1-.591.589H58.637a.6.6,0,0,1-.59-.589V10.265c0-1.579-.655-2.449-1.846-2.449a2.939,2.939,0,0,0-2.514,1.355v6.182c0,.4-.229.589-.7.589h-1.1a.6.6,0,0,1-.59-.589V6.341a.6.6,0,0,1,.59-.588h.518a.5.5,0,0,1,.522.391l.235.67a4.691,4.691,0,0,1,3.3-1.277C59.134,5.537,60.435,7.111,60.435,10.351Zm8.048,4.379a.556.556,0,0,1-.283.721,6.126,6.126,0,0,1-2.822.728c-2.337,0-2.637-1.651-2.637-3.09V7.816H61.713a.6.6,0,0,1-.589-.59V6.341a.569.569,0,0,1,.589-.588h1.028V3.088a.59.59,0,0,1,.59-.59h1.228a.573.573,0,0,1,.568.59V5.753h2.515a.582.582,0,0,1,.59.588v.885a.613.613,0,0,1-.59.59H65.127V13c0,.828.323.9.683.9a3.241,3.241,0,0,0,1.536-.458.523.523,0,0,1,.431-.064.558.558,0,0,1,.317.335Zm7.869-1.576c0,1.5-1.262,3.025-3.672,3.025a5.927,5.927,0,0,1-3.343-1.033h0a.523.523,0,0,1-.208-.663l.452-.926a.494.494,0,0,1,.3-.254.635.635,0,0,1,.505.076l.032.017a4.485,4.485,0,0,0,2.389.7c.74,0,1.2-.328,1.2-.855,0-.58-.666-.985-2.066-1.618-1.435-.648-2.763-1.49-2.763-3.253,0-1.41,1.056-2.832,3.414-2.832a5.7,5.7,0,0,1,2.973.752.706.706,0,0,1,.256.882l-.344.689a.582.582,0,0,1-.8.247,5.057,5.057,0,0,0-2.087-.485c-.8,0-1.156.385-1.156.768,0,.546.574.9,1.633,1.361C75.052,10.588,76.352,11.279,76.352,13.154Z\"\n />\n </svg>\n )\n}\n\nexport function API({ color, size = 20 }): JSX.Element {\n return (\n <svg\n data-name=\"Layer 1\"\n height={size}\n id=\"bed028ef-58ee-4c4c-a757-08ecc3276857\"\n viewBox=\"0 0 119.5 20\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <title>api-text</title>\n <path\n fill={color}\n d=\"M9.136.675H7.908a.621.621,0,0,0-.59.589V5.5a6.9,6.9,0,0,0-2.384-.469A5.013,5.013,0,0,0,.012,10.343c0,2.989,2.048,5.331,4.663,5.331a4.885,4.885,0,0,0,3.22-1.3l.16.543a.591.591,0,0,0,.564.519h.517a.6.6,0,0,0,.59-.59V1.264A.6.6,0,0,0,9.136.675ZM7.34,7.847v4.175A2.745,2.745,0,0,1,4.978,13.4,2.815,2.815,0,0,1,2.4,10.343a2.913,2.913,0,0,1,2.772-3.03A4.941,4.941,0,0,1,7.34,7.847Zm8.833-2.813A5.081,5.081,0,0,0,11.1,10.343a5.046,5.046,0,0,0,5.094,5.331,5.712,5.712,0,0,0,3.761-1.256.512.512,0,0,0,.064-.819l-.582-.906a.467.467,0,0,0-.3-.22.619.619,0,0,0-.45.147,3.737,3.737,0,0,1-2.368.818,2.818,2.818,0,0,1-2.854-2.484h6.755a.578.578,0,0,0,.566-.532c.023-.175.045-.524.045-.7A4.571,4.571,0,0,0,16.173,5.034ZM16.13,7.1a2.23,2.23,0,0,1,2.334,2.032H13.591A2.411,2.411,0,0,1,16.13,7.1ZM30.587,5.982l-4.3,9.366a.561.561,0,0,1-.515.326h-.129a.59.59,0,0,1-.534-.323l-4.31-9.373a.484.484,0,0,1-.024-.49.542.542,0,0,1,.493-.239h1.315a.543.543,0,0,1,.534.344l2.571,5.914,2.7-5.91c.161-.348.486-.348.773-.348h.97a.544.544,0,0,1,.494.239A.488.488,0,0,1,30.587,5.982Zm4.983-.948A5.081,5.081,0,0,0,30.5,10.343a5.045,5.045,0,0,0,5.094,5.331,5.706,5.706,0,0,0,3.76-1.256.512.512,0,0,0,.065-.819l-.582-.906a.467.467,0,0,0-.3-.22.616.616,0,0,0-.45.147,3.738,3.738,0,0,1-2.369.818,2.819,2.819,0,0,1-2.854-2.484h6.755a.58.58,0,0,0,.567-.532c.023-.175.044-.524.044-.7A4.57,4.57,0,0,0,35.57,5.034ZM35.527,7.1a2.23,2.23,0,0,1,2.334,2.032H32.988A2.413,2.413,0,0,1,35.527,7.1Zm8.426-5.833V14.847a.606.606,0,0,1-.59.59H42.156a.6.6,0,0,1-.59-.59V1.264a.606.606,0,0,1,.59-.589h1.207A.621.621,0,0,1,43.953,1.264Zm6.576,3.77a5.322,5.322,0,1,0,5.18,5.287A5.315,5.315,0,0,0,50.529,5.034Zm2.836,5.287a2.856,2.856,0,1,1-5.695,0,2.852,2.852,0,1,1,5.7,0Zm8.65-5.287a4.76,4.76,0,0,0-3.08,1.1l-.2-.487a.523.523,0,0,0-.539-.4h-.539a.606.606,0,0,0-.59.59V19.422a.6.6,0,0,0,.59.59h1.207a.58.58,0,0,0,.633-.59V15.066a5.6,5.6,0,0,0,2.427.608,5.075,5.075,0,0,0,4.9-5.331A5.026,5.026,0,0,0,62.015,5.034Zm2.427,5.309A2.9,2.9,0,0,1,61.648,13.4a4.112,4.112,0,0,1-2.19-.678v-4.1a2.628,2.628,0,0,1,2.277-1.3A2.787,2.787,0,0,1,64.442,10.343ZM72.73,5.034a5.081,5.081,0,0,0-5.073,5.309,5.046,5.046,0,0,0,5.095,5.331,5.711,5.711,0,0,0,3.76-1.256.512.512,0,0,0,.065-.819l-.583-.906a.463.463,0,0,0-.3-.22.61.61,0,0,0-.45.147,3.735,3.735,0,0,1-2.368.818,2.818,2.818,0,0,1-2.854-2.484h6.754a.577.577,0,0,0,.567-.532c.023-.178.045-.527.045-.7A4.57,4.57,0,0,0,72.73,5.034ZM72.687,7.1a2.23,2.23,0,0,1,2.334,2.032H70.147A2.413,2.413,0,0,1,72.687,7.1ZM85.434,5.6a.518.518,0,0,1,.009.524L84.926,7.2a.584.584,0,0,1-.334.323.543.543,0,0,1-.424-.032,2.366,2.366,0,0,0-.854-.181A2.734,2.734,0,0,0,81.08,8.561v6.286c0,.59-.485.59-.8.59h-.991a.6.6,0,0,1-.59-.59V5.839a.605.605,0,0,1,.59-.59H79.8a.576.576,0,0,1,.544.435l.213.688a3.921,3.921,0,0,1,2.971-1.338C84.277,5.034,85.17,5.183,85.434,5.6Zm11.8-5.4a.621.621,0,0,0-.469-.3h-.216a.62.62,0,0,0-.472.305l-6.615,14.5a.508.508,0,0,0,.02.5.517.517,0,0,0,.451.229h1.357a.652.652,0,0,0,.6-.392l1.284-2.884h6.9l1.306,2.884a.618.618,0,0,0,.6.392h1.358a.517.517,0,0,0,.451-.229.508.508,0,0,0,.021-.494Zm1.916,9.871H94.116l2.5-5.627ZM110.327.12h-4.913a.526.526,0,0,0-.526.525V14.912a.526.526,0,0,0,.526.525h1.4a.54.54,0,0,0,.525-.525V9.963h3.009A4.922,4.922,0,1,0,110.327.12Zm2.493,4.856a2.563,2.563,0,0,1-2.536,2.643H107.34V2.507h2.944A2.476,2.476,0,0,1,112.82,4.976ZM119.087.645V14.912a.54.54,0,0,1-.526.525h-1.422a.54.54,0,0,1-.525-.525V.645a.539.539,0,0,1,.525-.525h1.422A.539.539,0,0,1,119.087.645Z\"\n />\n </svg>\n )\n}\n\nexport function Calendar({ color, size = 20 }): JSX.Element {\n return (\n <svg\n data-name=\"Layer 1\"\n height={size}\n id=\"Layer_1\"\n viewBox=\"0 0 73.83 20\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <title>calendar-text</title>\n <path\n fill={color}\n d=\"M9,12.56c.39.36.32.66.19.85a4.65,4.65,0,0,1-4,2.12A5.21,5.21,0,0,1,0,10.21,5.3,5.3,0,0,1,5.23,4.87,4.49,4.49,0,0,1,9,6.64a.6.6,0,0,1-.1.85l-.78.71c-.35.33-.61.07-.78-.11a3,3,0,0,0-2-1,3,3,0,0,0-2.94,3.06,3,3,0,0,0,2.87,3.09,2.63,2.63,0,0,0,2.05-1l.25-.23A.55.55,0,0,1,8.32,12Zm9.25-3.17v5.33a.59.59,0,0,1-.57.57H17c-.27,0-.4-.16-.5-.4l-.19-.54a4.39,4.39,0,0,1-3,1.18A3.2,3.2,0,0,1,9.91,12.1c0-2,1.61-3.33,4.11-3.33a7.24,7.24,0,0,1,1.92.28,2.33,2.33,0,0,0-.43-1.72A1.44,1.44,0,0,0,14.43,7a10.27,10.27,0,0,0-2.77.48A.56.56,0,0,1,11,7l-.2-.82a.56.56,0,0,1,.39-.7,10.9,10.9,0,0,1,3.48-.57C18,4.87,18.25,6.92,18.25,9.39Zm-2.34,3V10.83a4.91,4.91,0,0,0-1.72-.3c-1.17,0-2,.62-2,1.55a1.37,1.37,0,0,0,1.46,1.48A3,3,0,0,0,15.91,12.42ZM22,.47H20.79a.6.6,0,0,0-.58.57V14.72a.59.59,0,0,0,.58.57H22a.59.59,0,0,0,.57-.57V1A.61.61,0,0,0,22,.47ZM33.75,9.56c0,.18,0,.53,0,.71a.57.57,0,0,1-.55.52H26.35a2.84,2.84,0,0,0,2.89,2.53,3.84,3.84,0,0,0,2.39-.82.57.57,0,0,1,.43-.15.45.45,0,0,1,.29.21l.58.92a.48.48,0,0,1-.06.79,5.67,5.67,0,0,1-3.76,1.26A5.05,5.05,0,0,1,24,10.19a5.1,5.1,0,0,1,5.08-5.32A4.58,4.58,0,0,1,33.75,9.56ZM26.46,9h4.95A2.27,2.27,0,0,0,29,6.91,2.45,2.45,0,0,0,26.46,9Zm13.8-4.12a4.72,4.72,0,0,0-3.32,1.3l-.24-.7a.48.48,0,0,0-.51-.38h-.52a.59.59,0,0,0-.57.57v9.06a.58.58,0,0,0,.57.57h1.11c.45,0,.68-.19.68-.57V8.5A3,3,0,0,1,40,7.13c1.21,0,1.88.88,1.88,2.48v5.11a.58.58,0,0,0,.57.57h1.21a.6.6,0,0,0,.58-.57v-5C44.24,6.45,42.94,4.87,40.26,4.87ZM55.29,1V14.72a.58.58,0,0,1-.57.57H54.2a.57.57,0,0,1-.55-.5l-.17-.58a4.89,4.89,0,0,1-3.24,1.32c-2.62,0-4.67-2.34-4.67-5.34A5,5,0,0,1,50.5,4.87a6.85,6.85,0,0,1,2.39.48h0V1a.61.61,0,0,1,.58-.57h1.23A.59.59,0,0,1,55.29,1ZM52.93,11.88V7.67a5,5,0,0,0-2.19-.54,2.94,2.94,0,0,0-2.81,3.06,2.85,2.85,0,0,0,2.61,3.09A2.76,2.76,0,0,0,52.93,11.88Zm12-2.49v5.33a.59.59,0,0,1-.57.57h-.72c-.27,0-.39-.16-.5-.4L63,14.35a4.39,4.39,0,0,1-3,1.18A3.2,3.2,0,0,1,56.6,12.1c0-2,1.62-3.33,4.11-3.33a7.24,7.24,0,0,1,1.92.28,2.33,2.33,0,0,0-.43-1.72A1.42,1.42,0,0,0,61.12,7a10.27,10.27,0,0,0-2.77.48A.56.56,0,0,1,57.67,7l-.2-.82a.56.56,0,0,1,.39-.7,10.9,10.9,0,0,1,3.48-.57C64.67,4.87,64.94,6.92,64.94,9.39Zm-2.34,3V10.83a4.91,4.91,0,0,0-1.72-.3c-1.17,0-2,.62-2,1.55a1.37,1.37,0,0,0,1.46,1.48A3,3,0,0,0,62.6,12.42Zm11-7c-.26-.42-1.18-.57-1.9-.57a4,4,0,0,0-3,1.37l-.23-.73A.56.56,0,0,0,68,5.09h-.52a.59.59,0,0,0-.58.57v9.06a.58.58,0,0,0,.58.57h1c.32,0,.79,0,.79-.57V8.4A2.77,2.77,0,0,1,71.5,7.13a2.47,2.47,0,0,1,.86.18.5.5,0,0,0,.41,0A.56.56,0,0,0,73.1,7l.52-1.09A.48.48,0,0,0,73.61,5.44Z\"\n />\n </svg>\n )\n}\n\nexport function CheckIns({ color, size = 20 }): JSX.Element {\n return (\n <svg\n data-name=\"Layer 1\"\n height={size}\n id=\"dc713595-39c2-41c4-b1d9-3ef8c295b738\"\n viewBox=\"0 0 79.311 20\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <title>check-ins-text</title>\n <path\n fill={color}\n d=\"M40.221,13.213c.4.362.326.669.2.866A4.646,4.646,0,0,1,36.44,16.2a5.2,5.2,0,0,1-5.2-5.311,5.286,5.286,0,0,1,5.225-5.331,4.462,4.462,0,0,1,3.711,1.768.605.605,0,0,1-.1.869L39.3,8.9c-.362.333-.64.055-.806-.109a2.9,2.9,0,0,0-1.967-.959,2.937,2.937,0,0,0-2.9,3.031,2.92,2.92,0,0,0,2.837,3.054,2.62,2.62,0,0,0,2.03-.965c.082-.081.162-.16.242-.234a.572.572,0,0,1,.818-.049h0Zm-9.679-2.971c0,.178-.022.526-.044.7a.579.579,0,0,1-.567.531H23.174a2.82,2.82,0,0,0,2.855,2.485,3.736,3.736,0,0,0,2.369-.818.609.609,0,0,1,.45-.147.459.459,0,0,1,.3.219l.583.907a.513.513,0,0,1-.065.819A5.708,5.708,0,0,1,25.9,16.2a5.046,5.046,0,0,1-5.1-5.332,5.081,5.081,0,0,1,5.074-5.31A4.572,4.572,0,0,1,30.542,10.242ZM23.3,9.653h4.874A2.23,2.23,0,0,0,25.835,7.62,2.412,2.412,0,0,0,23.3,9.653Zm-7.751-4.1a4.789,4.789,0,0,0-2.773.924V2.339a.621.621,0,0,0-.59-.588H10.974a.6.6,0,0,0-.59.588V15.373a.59.59,0,0,0,.59.589H12.16a.575.575,0,0,0,.611-.589V9.193a2.871,2.871,0,0,1,2.493-1.357c1.2,0,1.867.884,1.867,2.492v5.045a.59.59,0,0,0,.59.589h1.207a.606.606,0,0,0,.59-.589v-5C19.518,7.221,18.144,5.557,15.544,5.557ZM8.315,12.674h0a.573.573,0,0,0-.818.049c-.08.074-.16.154-.242.235a2.624,2.624,0,0,1-2.029.964,2.92,2.92,0,0,1-2.838-3.054,2.938,2.938,0,0,1,2.9-3.031A2.906,2.906,0,0,1,7.257,8.8c.166.164.444.442.8.109l.775-.71a.6.6,0,0,0,.1-.869A4.464,4.464,0,0,0,5.225,5.557,5.285,5.285,0,0,0,0,10.888,5.2,5.2,0,0,0,5.2,16.2a4.647,4.647,0,0,0,3.977-2.12c.13-.2.2-.5-.2-.866ZM55.084,9.566h-4.1a.514.514,0,0,0-.525.525v.926a.51.51,0,0,0,.525.5h4.1a.51.51,0,0,0,.526-.5v-.926A.514.514,0,0,0,55.084,9.566Zm20.945.2C74.97,9.308,74.4,8.955,74.4,8.41c0-.383.357-.769,1.156-.769a5.059,5.059,0,0,1,2.087.486.581.581,0,0,0,.8-.248l.344-.689a.706.706,0,0,0-.256-.882,5.705,5.705,0,0,0-2.973-.751c-2.358,0-3.413,1.422-3.413,2.831,0,1.764,1.327,2.606,2.762,3.253,1.4.634,2.066,1.038,2.066,1.618,0,.528-.459.856-1.2.856a4.5,4.5,0,0,1-2.39-.7l-.031-.018a.629.629,0,0,0-.506-.075.494.494,0,0,0-.3.254l-.452.926a.523.523,0,0,0,.21.664A5.935,5.935,0,0,0,75.639,16.2c2.41,0,3.672-1.522,3.672-3.025C79.311,11.3,78.011,10.609,76.029,9.769Zm-9.2-4.212a4.687,4.687,0,0,0-3.3,1.277l-.235-.67a.5.5,0,0,0-.522-.392h-.517a.605.605,0,0,0-.591.59v9.011a.591.591,0,0,0,.591.589h1.1c.469,0,.7-.193.7-.589V9.19A2.934,2.934,0,0,1,66.57,7.836c1.191,0,1.846.87,1.846,2.45v5.087a.59.59,0,0,0,.59.589h1.207a.606.606,0,0,0,.59-.589v-5C70.8,7.131,69.5,5.557,66.829,5.557Zm-8.3-4.275a1.543,1.543,0,0,0-1.538,1.581,1.532,1.532,0,0,0,1.538,1.559,1.57,1.57,0,1,0,0-3.14Zm-12.215,9.1,3.949-3.716a.548.548,0,0,0,.14-.588.484.484,0,0,0-.476-.3H48.355a1.063,1.063,0,0,0-.7.331L44.008,9.4V2.339a.62.62,0,0,0-.59-.588H42.211a.6.6,0,0,0-.59.588V15.373a.59.59,0,0,0,.59.589h1.207a.606.606,0,0,0,.59-.589V11.329l3.783,4.4a.711.711,0,0,0,.542.237H50.1a.468.468,0,0,0,.461-.256.561.561,0,0,0-.094-.582ZM59.135,5.772H57.928a.605.605,0,0,0-.59.59v9.011a.59.59,0,0,0,.59.589h1.207a.606.606,0,0,0,.59-.589V6.362A.621.621,0,0,0,59.135,5.772Z\"\n />\n </svg>\n )\n}\n\nexport function ChurchCenter({ color, size = 20 }): JSX.Element {\n return (\n <svg\n data-name=\"Layer 1\"\n height={size}\n id=\"e2e8a225-c349-4aea-935c-64b6ad436be8\"\n viewBox=\"0 0 118.083 20\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <title>church-center-text</title>\n <path\n fill={color}\n d=\"M5.188,16.2A5.187,5.187,0,0,1,0,10.908,5.27,5.27,0,0,1,5.209,5.591a4.453,4.453,0,0,1,3.7,1.762.588.588,0,0,1-.1.844l-.776.712c-.346.319-.607.062-.779-.109a2.93,2.93,0,0,0-1.983-.966A2.959,2.959,0,0,0,2.35,10.887a2.942,2.942,0,0,0,2.859,3.076,2.642,2.642,0,0,0,2.045-.971c.082-.081.162-.16.242-.234a.552.552,0,0,1,.794-.047l.669.539c.388.352.318.651.193.841A4.629,4.629,0,0,1,5.188,16.2ZM19.5,15.4V10.391c0-3.14-1.368-4.8-3.959-4.8a4.788,4.788,0,0,0-2.788.939l-.006-4.209a.609.609,0,0,0-.571-.57H10.964a.592.592,0,0,0-.571.57V15.4a.58.58,0,0,0,.571.572H12.15a.558.558,0,0,0,.593-.572V9.207a2.893,2.893,0,0,1,2.515-1.373c1.217,0,1.888.893,1.888,2.514V15.4a.579.579,0,0,0,.571.572h1.208A.593.593,0,0,0,19.5,15.4Zm8.7-.468.2.566c.09.246.218.474.544.474h.518a.6.6,0,0,0,.592-.572V6.378a.612.612,0,0,0-.592-.57h-1.1c-.332,0-.657.044-.657.57l0,6.023a2.38,2.38,0,0,1-2.236,1.562c-1.259,0-1.845-.723-1.845-2.277V6.378a.585.585,0,0,0-.571-.57H21.843a.6.6,0,0,0-.57.57v5.156c0,2.175.433,4.67,3.807,4.67A4.06,4.06,0,0,0,28.193,14.928Zm6.2.468V9.1A2.755,2.755,0,0,1,36.65,7.834a2.382,2.382,0,0,1,.863.184.53.53,0,0,0,.41.032.571.571,0,0,0,.324-.315l.518-1.077a.5.5,0,0,0-.009-.507c-.259-.413-1.18-.56-1.89-.56a3.975,3.975,0,0,0-2.984,1.356l-.223-.719a.555.555,0,0,0-.525-.42h-.518a.585.585,0,0,0-.571.57V15.4a.58.58,0,0,0,.571.572h.993C33.922,15.968,34.4,15.968,34.4,15.4Zm13.35-1.305c.125-.19.2-.489-.193-.841l-.669-.539a.552.552,0,0,0-.794.047c-.08.074-.16.153-.242.234a2.642,2.642,0,0,1-2.044.971,2.942,2.942,0,0,1-2.86-3.076,2.959,2.959,0,0,1,2.924-3.053A2.93,2.93,0,0,1,45.85,8.8c.172.171.433.428.779.109l.776-.712a.588.588,0,0,0,.1-.844,4.452,4.452,0,0,0-3.7-1.762,5.271,5.271,0,0,0-5.21,5.317,5.187,5.187,0,0,0,5.188,5.3A4.629,4.629,0,0,0,47.745,14.091ZM58.089,15.4V10.391c0-3.14-1.368-4.8-3.959-4.8a4.79,4.79,0,0,0-2.788.939l-.006-4.209a.609.609,0,0,0-.571-.57H49.557a.592.592,0,0,0-.571.57V15.4a.58.58,0,0,0,.571.572h1.187a.557.557,0,0,0,.592-.572V9.207a2.893,2.893,0,0,1,2.515-1.373c1.217,0,1.888.893,1.888,2.514V15.4a.579.579,0,0,0,.571.572h1.208A.593.593,0,0,0,58.089,15.4Zm12.926-1.305c.126-.19.2-.489-.192-.841l-.669-.539a.553.553,0,0,0-.8.047c-.08.074-.159.153-.242.234a2.64,2.64,0,0,1-2.044.971,2.941,2.941,0,0,1-2.859-3.076A2.8,2.8,0,0,1,69.121,8.8c.171.171.433.428.778.109l.777-.712a.587.587,0,0,0,.1-.844,4.449,4.449,0,0,0-3.7-1.762,5.271,5.271,0,0,0-5.21,5.317,5.187,5.187,0,0,0,5.188,5.3A4.629,4.629,0,0,0,71.015,14.091Zm10.247-3.83c0,.177-.022.525-.044.7a.562.562,0,0,1-.549.516H73.887a2.838,2.838,0,0,0,2.877,2.526,3.743,3.743,0,0,0,2.382-.824.6.6,0,0,1,.436-.143.447.447,0,0,1,.283.212l.584.907a.492.492,0,0,1-.063.794A5.7,5.7,0,0,1,76.634,16.2a5.031,5.031,0,0,1-5.08-5.317,5.068,5.068,0,0,1,5.059-5.3A4.558,4.558,0,0,1,81.262,10.261Zm-2.335-.57a2.251,2.251,0,0,0-2.358-2.073,2.433,2.433,0,0,0-2.564,2.073ZM91.707,15.4V10.391c0-3.23-1.3-4.8-3.959-4.8a4.657,4.657,0,0,0-3.306,1.3l-.246-.7a.479.479,0,0,0-.5-.376h-.518a.585.585,0,0,0-.571.57V15.4a.58.58,0,0,0,.571.572h1.1c.457,0,.679-.187.679-.572V9.2a2.96,2.96,0,0,1,2.536-1.37c1.2,0,1.867.877,1.867,2.471V15.4a.58.58,0,0,0,.571.572h1.208A.594.594,0,0,0,91.707,15.4Zm7.779.081a.538.538,0,0,0,.277-.7l-.389-1.014a.537.537,0,0,0-.306-.325.493.493,0,0,0-.415.061,3.249,3.249,0,0,1-1.548.462c-.445,0-.7-.15-.7-.918V7.834h2.536a.594.594,0,0,0,.571-.571V6.378a.564.564,0,0,0-.571-.57H96.4V3.12a.555.555,0,0,0-.549-.571h-1.23a.579.579,0,0,0-.571.571V5.808H93.005a.552.552,0,0,0-.571.57v.885a.579.579,0,0,0,.571.571h1.048v5.3c0,1.431.3,3.073,2.62,3.073A6.067,6.067,0,0,0,99.486,15.477Zm10.11-5.216c0,.177-.022.525-.044.7a.561.561,0,0,1-.549.516h-6.782a2.838,2.838,0,0,0,2.877,2.526,3.743,3.743,0,0,0,2.382-.824.6.6,0,0,1,.437-.143.446.446,0,0,1,.282.212l.584.907a.491.491,0,0,1-.063.794,5.7,5.7,0,0,1-3.752,1.252,5.032,5.032,0,0,1-5.08-5.317,5.068,5.068,0,0,1,5.059-5.3A4.557,4.557,0,0,1,109.6,10.261Zm-2.335-.57A2.25,2.25,0,0,0,104.9,7.618a2.434,2.434,0,0,0-2.565,2.073Zm6.026,5.705V9.1a2.755,2.755,0,0,1,2.255-1.265,2.388,2.388,0,0,1,.864.184.528.528,0,0,0,.409.032.568.568,0,0,0,.324-.315l.519-1.077a.5.5,0,0,0-.009-.507c-.26-.413-1.181-.56-1.891-.56a3.977,3.977,0,0,0-2.984,1.356l-.223-.719a.555.555,0,0,0-.525-.42h-.518a.585.585,0,0,0-.571.57V15.4a.58.58,0,0,0,.571.572h.993C112.814,15.968,113.287,15.968,113.287,15.4Z\"\n />\n </svg>\n )\n}\n\nexport function Giving({ color, size = 20 }): JSX.Element {\n return (\n <svg\n data-name=\"Layer 1\"\n height={size}\n id=\"a221b42b-722d-4eb3-b043-fff7f3c6686f\"\n viewBox=\"0 0 50.486 20\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <title>giving-text</title>\n <path\n fill={color}\n d=\"M9.17,5.089H8.588c-.335,0-.42.255-.474.416l-.2.473a4.791,4.791,0,0,0-3.1-1.1A5.026,5.026,0,0,0,0,10.184a5.085,5.085,0,0,0,4.923,5.332,5.459,5.459,0,0,0,2.428-.629v.342c0,2.113-1.285,2.557-2.363,2.557a3.619,3.619,0,0,1-2.259-.905.567.567,0,0,0-.474-.114.553.553,0,0,0-.365.3l-.516.948a.563.563,0,0,0,.126.7A5.489,5.489,0,0,0,5.031,20a4.407,4.407,0,0,0,4.728-4.771V5.679A.6.6,0,0,0,9.17,5.089Zm-1.8,3.378V12.5a3.951,3.951,0,0,1-2.191.74,2.973,2.973,0,0,1-2.8-3.054A2.82,2.82,0,0,1,5.1,7.152,2.835,2.835,0,0,1,7.373,8.467Zm6.745-2.788v9.01a.6.6,0,0,1-.59.589H12.321a.59.59,0,0,1-.59-.589V5.679a.605.605,0,0,1,.59-.59h1.207A.62.62,0,0,1,14.118,5.679Zm.388-3.508A1.572,1.572,0,0,1,12.924,3.73a1.532,1.532,0,0,1-1.538-1.559A1.543,1.543,0,0,1,12.924.59,1.564,1.564,0,0,1,14.506,2.171Zm10.3,3.156a.49.49,0,0,1-.027.5l-4.307,9.367a.558.558,0,0,1-.514.327h-.13a.6.6,0,0,1-.534-.323L14.984,5.817a.487.487,0,0,1-.025-.49.545.545,0,0,1,.494-.238h1.315a.547.547,0,0,1,.535.344l2.572,5.917,2.7-5.913c.16-.348.486-.348.773-.348h.97A.545.545,0,0,1,24.807,5.327Zm3.249.352v9.01a.6.6,0,0,1-.59.589H26.259a.59.59,0,0,1-.59-.589V5.679a.605.605,0,0,1,.59-.59h1.207A.62.62,0,0,1,28.056,5.679Zm.388-3.508A1.572,1.572,0,0,1,26.863,3.73a1.532,1.532,0,0,1-1.539-1.559A1.544,1.544,0,0,1,26.863.59,1.564,1.564,0,0,1,28.444,2.171Zm10.69,7.517v5a.6.6,0,0,1-.59.589H37.337a.59.59,0,0,1-.59-.589V9.6c0-1.581-.655-2.451-1.846-2.451a2.938,2.938,0,0,0-2.514,1.355v6.182c0,.4-.229.589-.7.589h-1.1a.59.59,0,0,1-.59-.589V5.679a.605.605,0,0,1,.59-.59h.517a.5.5,0,0,1,.522.391l.235.67a4.692,4.692,0,0,1,3.3-1.276C37.834,4.874,39.134,6.448,39.134,9.688Zm10.456-4.6h-.582c-.336,0-.42.255-.473.416l-.2.473a4.777,4.777,0,0,0-3.1-1.1,5.026,5.026,0,0,0-4.815,5.31,5.085,5.085,0,0,0,4.923,5.332,5.459,5.459,0,0,0,2.428-.629v.342c0,2.113-1.285,2.557-2.363,2.557a3.619,3.619,0,0,1-2.259-.905.567.567,0,0,0-.474-.114.553.553,0,0,0-.365.3l-.516.948a.563.563,0,0,0,.126.7A5.489,5.489,0,0,0,45.451,20a4.407,4.407,0,0,0,4.729-4.771V5.679A.605.605,0,0,0,49.59,5.089Zm-1.8,7.409a3.944,3.944,0,0,1-2.19.74,2.973,2.973,0,0,1-2.795-3.054,2.693,2.693,0,0,1,4.985-1.717Z\"\n />\n </svg>\n )\n}\n\nexport function Home({ color, size = 20 }): JSX.Element {\n return (\n <svg\n id=\"a221b42b-722d-4eb3-b043-fff7f3c6686f\"\n data-name=\"Layer 1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n height={size}\n viewBox=\"0 0 47.624 20\"\n >\n <title>home-text</title>\n <path\n fill={color}\n d=\"M8.952,9.7V14.69a.584.584,0,0,1-.553.57H7.229a.57.57,0,0,1-.553-.57V9.658c0-1.616-.649-2.506-1.827-2.506A2.791,2.791,0,0,0,2.414,8.52v6.17a.547.547,0,0,1-.573.57H.692a.569.569,0,0,1-.553-.57v-13a.583.583,0,0,1,.553-.569H1.861a.6.6,0,0,1,.553.569V5.857a4.544,4.544,0,0,1,2.706-.94C7.627,4.917,8.952,6.571,8.952,9.7Zm11.261.473a5.239,5.239,0,0,1-5,5.322,5.185,5.185,0,0,1-5.022-5.322A5.213,5.213,0,0,1,15.21,4.917,5.2,5.2,0,0,1,20.213,10.174Zm-2.234,0a2.789,2.789,0,1,0-5.558,0,2.884,2.884,0,0,0,2.789,3.087A2.876,2.876,0,0,0,17.979,10.174Zm14.59-5.257a4.475,4.475,0,0,0-3.248,1.519,3.34,3.34,0,0,0-2.956-1.519,4.128,4.128,0,0,0-3.031,1.289L23.111,5.5a.487.487,0,0,0-.506-.367h-.48a.584.584,0,0,0-.553.569V14.69a.57.57,0,0,0,.553.57h1.169a.577.577,0,0,0,.553-.57V8.512a2.367,2.367,0,0,1,2.184-1.36c1.216,0,1.808.806,1.808,2.463V14.69a.555.555,0,0,0,.552.57h1.191a.559.559,0,0,0,.532-.57V9.551a10.249,10.249,0,0,0-.077-1.3l.06-.064a2.793,2.793,0,0,1,2.159-1.034c1.2,0,1.807.829,1.807,2.463V14.69a.538.538,0,0,0,.553.57h1.17a.549.549,0,0,0,.553-.57V9.7C36.339,7.647,35.948,4.917,32.569,4.917ZM47.042,9.572c0,.176-.021.523-.043.7a.549.549,0,0,1-.531.514H39.9A2.778,2.778,0,0,0,42.687,13.3a3.573,3.573,0,0,0,2.306-.82.6.6,0,0,1,.422-.144.431.431,0,0,1,.274.211l.566.9a.5.5,0,0,1-.061.791A5.416,5.416,0,0,1,42.562,15.5c-2.85,0-4.919-2.229-4.919-5.3a4.988,4.988,0,0,1,4.9-5.279A4.479,4.479,0,0,1,47.042,9.572ZM40.016,9h4.765A2.2,2.2,0,0,0,42.5,6.937,2.375,2.375,0,0,0,40.016,9Z\"\n />\n </svg>\n )\n}\n\nexport function Groups({ color, size = 20 }): JSX.Element {\n return (\n <svg\n data-name=\"Layer 1\"\n height={size}\n id=\"08e4075e-8ca4-4400-a3ae-98f53270d1d0\"\n viewBox=\"0 0 58.688 20\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <title>groups-text</title>\n <path\n fill={color}\n d=\"M9.17,5.09H8.588c-.335,0-.42.255-.474.416l-.2.472a4.791,4.791,0,0,0-3.1-1.1A5.027,5.027,0,0,0,0,10.185a5.085,5.085,0,0,0,4.923,5.332,5.465,5.465,0,0,0,2.428-.63v.342c0,2.113-1.285,2.557-2.363,2.557a3.631,3.631,0,0,1-2.259-.9.568.568,0,0,0-.473-.115.556.556,0,0,0-.366.3l-.516.947a.574.574,0,0,0,.126.7A5.487,5.487,0,0,0,5.031,20a4.407,4.407,0,0,0,4.728-4.771V5.679A.6.6,0,0,0,9.17,5.09Zm-1.8,3.378V12.5a3.951,3.951,0,0,1-2.191.74,2.972,2.972,0,0,1-2.8-3.053A2.821,2.821,0,0,1,5.1,7.152,2.835,2.835,0,0,1,7.373,8.468Zm11.092-2.5-.517,1.077a.588.588,0,0,1-.335.323.535.535,0,0,1-.424-.032,2.351,2.351,0,0,0-.854-.183A2.738,2.738,0,0,0,14.1,8.4v6.288c0,.59-.485.59-.806.59H12.3a.6.6,0,0,1-.59-.59V5.679a.6.6,0,0,1,.59-.589h.517a.574.574,0,0,1,.544.434l.213.688A3.931,3.931,0,0,1,16.55,4.874c.749,0,1.642.149,1.9.568A.517.517,0,0,1,18.465,5.967Zm4.994-1.093a5.323,5.323,0,0,0,0,10.643,5.323,5.323,0,0,0,0-10.643Zm0,8.364A2.907,2.907,0,0,1,20.6,10.163a2.852,2.852,0,1,1,5.7,0A2.9,2.9,0,0,1,23.459,13.238ZM38.688,5.679v9.01a.616.616,0,0,1-.611.59H37.56c-.34,0-.475-.246-.561-.486l-.2-.535a4.082,4.082,0,0,1-3.1,1.259c-3.389,0-3.824-2.5-3.824-4.686V5.679a.621.621,0,0,1,.59-.589h1.207a.605.605,0,0,1,.591.589v5.3c0,1.539.579,2.256,1.824,2.256A2.356,2.356,0,0,0,36.3,11.694l0-6.015c0-.544.334-.589.677-.589h1.1A.632.632,0,0,1,38.688,5.679Zm6.9-.805a4.752,4.752,0,0,0-3.081,1.1l-.2-.488a.523.523,0,0,0-.54-.4h-.538a.6.6,0,0,0-.59.589V19.266a.6.6,0,0,0,.59.589H42.44a.58.58,0,0,0,.633-.589V14.909a5.612,5.612,0,0,0,2.428.608,5.075,5.075,0,0,0,4.9-5.332A5.027,5.027,0,0,0,45.587,4.874ZM43.029,8.457a2.633,2.633,0,0,1,2.278-1.305,2.789,2.789,0,0,1,2.708,3.033,2.9,2.9,0,0,1-2.794,3.053,4.131,4.131,0,0,1-2.192-.676Zm15.349,4.034c0,1.5-1.262,3.026-3.672,3.026a5.921,5.921,0,0,1-3.343-1.034h0a.522.522,0,0,1-.208-.663l.452-.925a.493.493,0,0,1,.3-.254.633.633,0,0,1,.5.075l.037.02a4.488,4.488,0,0,0,2.384.7c.74,0,1.2-.329,1.2-.856,0-.581-.666-.985-2.066-1.619-1.435-.646-2.763-1.487-2.763-3.252,0-1.41,1.056-2.832,3.414-2.832a5.71,5.71,0,0,1,2.973.752.705.705,0,0,1,.256.881L57.5,7.2a.58.58,0,0,1-.8.248,5.043,5.043,0,0,0-2.087-.485c-.8,0-1.156.386-1.156.768,0,.545.574.9,1.633,1.361C57.078,9.926,58.378,10.616,58.378,12.491Z\"\n />\n </svg>\n )\n}\n\nexport function People({ color, size = 20 }): JSX.Element {\n return (\n <svg\n data-name=\"Layer 1\"\n height={size}\n id=\"c461f8d4-1c6e-406e-af2d-8d7721d891d5\"\n viewBox=\"0 0 57.729 20\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <title>people-text</title>\n <path\n fill={color}\n d=\"M4.944,5.019a4.754,4.754,0,0,0-3.08,1.1l-.2-.487a.521.521,0,0,0-.539-.4H.59A.606.606,0,0,0,0,5.823V19.41A.6.6,0,0,0,.59,20H1.8a.58.58,0,0,0,.633-.59V15.053a5.593,5.593,0,0,0,2.428.607,5.075,5.075,0,0,0,4.9-5.331A5.027,5.027,0,0,0,4.944,5.019ZM2.387,8.6A2.63,2.63,0,0,1,4.665,7.3a2.789,2.789,0,0,1,2.708,3.032,2.9,2.9,0,0,1-2.795,3.054,4.109,4.109,0,0,1-2.191-.678ZM15.663,5.019a5.083,5.083,0,0,0-5.075,5.31,5.046,5.046,0,0,0,5.1,5.331A5.707,5.707,0,0,0,19.445,14.4a.511.511,0,0,0,.065-.818l-.583-.907a.459.459,0,0,0-.295-.22.609.609,0,0,0-.45.147,3.735,3.735,0,0,1-2.369.82,2.819,2.819,0,0,1-2.854-2.487h6.756a.578.578,0,0,0,.567-.531c.022-.177.045-.525.045-.7A4.572,4.572,0,0,0,15.663,5.019Zm-2.583,4.1a2.411,2.411,0,0,1,2.539-2.033,2.231,2.231,0,0,1,2.335,2.033Zm13.145-4.1a5.322,5.322,0,0,0,0,10.641,5.322,5.322,0,0,0,0-10.641Zm2.837,5.289a2.856,2.856,0,1,1-5.7,0,2.852,2.852,0,1,1,5.7,0Zm8.653-5.289a4.758,4.758,0,0,0-3.081,1.1l-.2-.487a.522.522,0,0,0-.54-.4h-.538a.606.606,0,0,0-.591.589V19.41a.592.592,0,0,0,.591.59h1.207a.58.58,0,0,0,.633-.59V15.05a5.541,5.541,0,0,0,2.428.61,5.075,5.075,0,0,0,4.9-5.331A5.027,5.027,0,0,0,37.715,5.019ZM35.158,8.6a2.629,2.629,0,0,1,2.277-1.3,2.789,2.789,0,0,1,2.708,3.032,2.9,2.9,0,0,1-2.794,3.054,4.109,4.109,0,0,1-2.191-.678ZM46.324,1.247V14.834a.606.606,0,0,1-.59.59H44.527a.6.6,0,0,1-.59-.59V1.247a.6.6,0,0,1,.59-.589h1.207A.621.621,0,0,1,46.324,1.247Zm6.459,3.772a5.083,5.083,0,0,0-5.075,5.31,5.047,5.047,0,0,0,5.1,5.331A5.713,5.713,0,0,0,56.566,14.4a.511.511,0,0,0,.064-.818l-.583-.907a.459.459,0,0,0-.295-.22.6.6,0,0,0-.449.147,3.739,3.739,0,0,1-2.369.82,2.821,2.821,0,0,1-2.855-2.487h6.756a.577.577,0,0,0,.567-.531c.022-.177.045-.525.045-.7A4.572,4.572,0,0,0,52.783,5.019ZM52.74,7.081a2.231,2.231,0,0,1,2.334,2.033H50.2A2.412,2.412,0,0,1,52.74,7.081Z\"\n />\n </svg>\n )\n}\n\nexport function Publishing({ color, size = 20 }): JSX.Element {\n return (\n <svg\n id=\"Layer_1\"\n data-name=\"Layer 1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n height={size}\n viewBox=\"0 0 84.973 20\"\n >\n <title>publishing-text</title>\n <path\n d=\"M4.905,5.03A4.709,4.709,0,0,0,1.829,6.141l-.2-.511a.5.5,0,0,0-.52-.385H.568A.59.59,0,0,0,0,5.812V19.374a.575.575,0,0,0,.568.568h1.2a.559.559,0,0,0,.611-.568v-4.4a5.573,5.573,0,0,0,2.437.618A5.036,5.036,0,0,0,9.681,10.3,4.988,4.988,0,0,0,4.905,5.03ZM2.338,8.575A2.642,2.642,0,0,1,4.626,7.261,2.8,2.8,0,0,1,7.343,10.3a2.908,2.908,0,0,1-2.8,3.06,4.117,4.117,0,0,1-2.2-.684Zm17.4-2.763v8.974a.6.6,0,0,1-.59.569h-.515c-.326,0-.456-.238-.541-.472l-.2-.562a4.046,4.046,0,0,1-3.1,1.27c-3.358,0-3.788-2.484-3.788-4.647V5.812a.606.606,0,0,1,.568-.567h1.2a.59.59,0,0,1,.568.567v5.282c0,1.546.584,2.266,1.837,2.266A2.368,2.368,0,0,0,17.4,11.806V5.812c0-.524.323-.567.654-.567h1.094A.609.609,0,0,1,19.737,5.812Zm6.74-.782A6.836,6.836,0,0,0,24.1,5.5l-.018.006V1.246a.606.606,0,0,0-.568-.567H22.29a.583.583,0,0,0-.568.567v13.54a.576.576,0,0,0,.568.569h.516a.569.569,0,0,0,.542-.5l.17-.576a4.845,4.845,0,0,0,3.217,1.31c2.6,0,4.711-2.374,4.711-5.291A5.071,5.071,0,0,0,26.477,5.03ZM24.061,7.76a5.243,5.243,0,0,1,2.18-.5A3,3,0,0,1,29.107,10.3a2.9,2.9,0,0,1-2.694,3.06A2.761,2.761,0,0,1,24.061,12ZM35.225,1.246v13.54a.591.591,0,0,1-.568.569h-1.2a.576.576,0,0,1-.569-.569V1.246a.59.59,0,0,1,.569-.567h1.2A.606.606,0,0,1,35.225,1.246Zm4.349,4.566v8.974a.591.591,0,0,1-.568.569H37.8a.576.576,0,0,1-.568-.569V5.812a.582.582,0,0,1,.568-.567h1.2A.606.606,0,0,1,39.574,5.812Zm.387-3.577a1.547,1.547,0,0,1-1.556,1.534,1.508,1.508,0,0,1-1.513-1.534A1.519,1.519,0,0,1,38.405.679,1.539,1.539,0,0,1,39.961,2.235ZM48.143,12.6c0,1.488-1.25,2.994-3.638,2.994a5.875,5.875,0,0,1-3.318-1.026h0a.5.5,0,0,1-.2-.636l.45-.922a.47.47,0,0,1,.291-.243.613.613,0,0,1,.487.073l.036.02a4.489,4.489,0,0,0,2.385.7c.737,0,1.214-.342,1.214-.871,0-.589-.667-.994-2.069-1.629-1.423-.642-2.74-1.476-2.74-3.222,0-1.394,1.045-2.8,3.38-2.8a5.67,5.67,0,0,1,2.951.745.684.684,0,0,1,.248.853l-.343.687a.56.56,0,0,1-.769.238,5.05,5.05,0,0,0-2.087-.485c-.808,0-1.17.394-1.17.784,0,.554.575.91,1.638,1.372C46.853,10.057,48.143,10.742,48.143,12.6ZM58.461,9.805v4.981a.592.592,0,0,1-.569.569h-1.2a.576.576,0,0,1-.568-.569V9.763c0-1.614-.668-2.5-1.879-2.5a2.881,2.881,0,0,0-2.5,1.366v6.159a.554.554,0,0,1-.589.569H49.97a.576.576,0,0,1-.568-.569V1.246A.582.582,0,0,1,49.97.679h1.2a.606.606,0,0,1,.567.567V5.967a4.766,4.766,0,0,1,2.782-.937C57.1,5.03,58.461,6.681,58.461,9.805Zm4.2-3.993v8.974a.59.59,0,0,1-.567.569h-1.2a.576.576,0,0,1-.568-.569V5.812a.59.59,0,0,1,.568-.567h1.2A.606.606,0,0,1,62.657,5.812Zm.387-3.577a1.547,1.547,0,0,1-1.556,1.534,1.507,1.507,0,0,1-1.512-1.534A1.518,1.518,0,0,1,61.488.679,1.539,1.539,0,0,1,63.044,2.235Zm10.647,7.57v4.981a.591.591,0,0,1-.569.569h-1.2a.576.576,0,0,1-.568-.569V9.72c0-1.586-.66-2.459-1.858-2.459a2.944,2.944,0,0,0-2.523,1.364v6.161c0,.383-.221.569-.676.569H65.2a.576.576,0,0,1-.568-.569V5.812a.59.59,0,0,1,.568-.567h.516a.474.474,0,0,1,.5.375l.245.7a4.64,4.64,0,0,1,3.29-1.288C72.4,5.03,73.691,6.592,73.691,9.805Zm10.432-4.56h-.579c-.32,0-.4.236-.454.4l-.2.5a4.737,4.737,0,0,0-3.1-1.112A4.988,4.988,0,0,0,75.01,10.3a5.046,5.046,0,0,0,4.884,5.291,5.429,5.429,0,0,0,2.437-.64v.372c0,2.121-1.29,2.566-2.373,2.566a3.629,3.629,0,0,1-2.261-.9.547.547,0,0,0-.456-.111.535.535,0,0,0-.352.292l-.514.944a.551.551,0,0,0,.123.673A5.444,5.444,0,0,0,80,20.056a4.371,4.371,0,0,0,4.69-4.733V5.812A.582.582,0,0,0,84.123,5.245ZM80.151,13.36a2.979,2.979,0,0,1-2.8-3.06,2.7,2.7,0,0,1,5-1.715v4.029A3.973,3.973,0,0,1,80.151,13.36Z\"\n fill={color}\n />\n </svg>\n )\n}\n\nexport function Registrations({ color, size = 20 }): JSX.Element {\n return (\n <svg\n id=\"2da9f999-408b-4466-9b5d-b1268727ac81\"\n data-name=\"Layer 1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n height={size}\n viewBox=\"0 0 105.758 20\"\n >\n <title>registrations-text</title>\n <path\n fill={color}\n d=\"M6.751,5.966,6.234,7.043a.589.589,0,0,1-.336.324.545.545,0,0,1-.423-.033,2.375,2.375,0,0,0-.854-.182A2.74,2.74,0,0,0,2.387,8.4v6.288c0,.59-.485.59-.8.59H.59a.6.6,0,0,1-.59-.59V5.679A.6.6,0,0,1,.59,5.09h.517a.574.574,0,0,1,.544.433l.212.685A4,4,0,0,1,4.836,4.874c.749,0,1.643.148,1.9.567A.517.517,0,0,1,6.751,5.966Zm9.583,3.593c0,.181-.022.53-.044.705a.578.578,0,0,1-.567.531H8.966a2.82,2.82,0,0,0,2.855,2.486,3.74,3.74,0,0,0,2.369-.819.608.608,0,0,1,.45-.148.465.465,0,0,1,.295.22l.583.907a.513.513,0,0,1-.065.819,5.708,5.708,0,0,1-3.762,1.256,5.046,5.046,0,0,1-5.1-5.331A5.083,5.083,0,0,1,11.67,4.874,4.572,4.572,0,0,1,16.334,9.559ZM11.627,6.937A2.411,2.411,0,0,0,9.087,8.97h4.874A2.23,2.23,0,0,0,11.627,6.937ZM26.8,5.679v9.55A4.407,4.407,0,0,1,22.071,20a5.486,5.486,0,0,1-3.53-1.284.564.564,0,0,1-.127-.7l.516-.948a.555.555,0,0,1,.365-.3.561.561,0,0,1,.474.114,3.622,3.622,0,0,0,2.259.905c1.078,0,2.364-.444,2.364-2.557v-.342a5.472,5.472,0,0,1-2.429.629,5.084,5.084,0,0,1-4.922-5.331,5.027,5.027,0,0,1,4.814-5.311,4.777,4.777,0,0,1,3.1,1.1l.2-.473c.053-.161.138-.415.473-.415h.582A.6.6,0,0,1,26.8,5.679ZM22.136,7.152a2.821,2.821,0,0,0-2.708,3.033,2.972,2.972,0,0,0,2.794,3.053,3.948,3.948,0,0,0,2.191-.74V8.468A2.834,2.834,0,0,0,22.136,7.152ZM29.965.6a1.544,1.544,0,0,0-1.538,1.582A1.55,1.55,0,0,0,29.965,3.74a1.571,1.571,0,1,0,0-3.141Zm.6,4.491H29.361a.6.6,0,0,0-.59.589v9.01a.59.59,0,0,0,.59.59h1.208a.6.6,0,0,0,.589-.59V5.679A.62.62,0,0,0,30.569,5.09Zm5.91,4c-1.059-.462-1.632-.815-1.632-1.36,0-.383.357-.769,1.155-.769a5.048,5.048,0,0,1,2.088.486.582.582,0,0,0,.8-.248l.345-.689a.709.709,0,0,0-.256-.882A5.713,5.713,0,0,0,36,4.874c-2.357,0-3.413,1.422-3.413,2.831,0,1.764,1.328,2.606,2.763,3.253,1.4.634,2.065,1.038,2.065,1.618,0,.528-.459.856-1.2.856a4.5,4.5,0,0,1-2.387-.7l-.034-.018a.644.644,0,0,0-.5-.076.494.494,0,0,0-.3.254l-.452.925a.517.517,0,0,0,.208.663h0a5.917,5.917,0,0,0,3.342,1.034c2.411,0,3.672-1.522,3.672-3.025C39.761,10.617,38.461,9.926,36.479,9.087Zm10.558,3.964a.556.556,0,0,0-.316-.335.523.523,0,0,0-.432.063,3.244,3.244,0,0,1-1.537.459c-.359,0-.681-.069-.681-.9V7.152h2.514a.605.605,0,0,0,.59-.59V5.679a.577.577,0,0,0-.59-.589H44.071V2.424a.574.574,0,0,0-.569-.59H42.273a.59.59,0,0,0-.589.59V5.09H40.657a.57.57,0,0,0-.59.589v.883a.59.59,0,0,0,.59.59h1.027v5.274c0,1.438.3,3.09,2.637,3.09a6.116,6.116,0,0,0,2.822-.729.556.556,0,0,0,.283-.721Zm8.023-7.61c-.263-.419-1.156-.567-1.905-.567a4,4,0,0,0-2.973,1.335l-.212-.686a.574.574,0,0,0-.544-.433h-.517a.6.6,0,0,0-.59.589v9.01a.59.59,0,0,0,.59.59H49.9c.321,0,.806,0,.806-.59V8.4A2.738,2.738,0,0,1,52.94,7.152a2.369,2.369,0,0,1,.853.182.548.548,0,0,0,.424.033.6.6,0,0,0,.336-.324l.517-1.077A.517.517,0,0,0,55.06,5.441Zm8.351,3.946v5.3a.605.605,0,0,1-.59.59H62.11c-.284,0-.412-.166-.516-.416l-.181-.509A4.386,4.386,0,0,1,58.4,15.516a3.2,3.2,0,0,1-3.328-3.435c0-2.021,1.611-3.327,4.1-3.327a7.7,7.7,0,0,1,1.892.265,2.3,2.3,0,0,0-.417-1.668A1.414,1.414,0,0,0,59.588,7a10.1,10.1,0,0,0-2.749.47.577.577,0,0,1-.7-.494l-.194-.82a.566.566,0,0,1,.4-.717A10.865,10.865,0,0,1,59.8,4.874C63.14,4.874,63.411,6.918,63.411,9.387Zm-4.06,1.149c-1.174,0-1.933.6-1.933,1.524a1.343,1.343,0,0,0,1.436,1.458,2.987,2.987,0,0,0,2.191-1.125V10.835A4.853,4.853,0,0,0,59.351,10.536Zm11.773,2.515a.556.556,0,0,0-.316-.335.523.523,0,0,0-.432.063,3.244,3.244,0,0,1-1.537.459c-.359,0-.681-.069-.681-.9V7.152h2.514a.605.605,0,0,0,.59-.59V5.679a.577.577,0,0,0-.59-.589H68.158V2.424a.574.574,0,0,0-.569-.59H66.36a.591.591,0,0,0-.59.59V5.09H64.744a.57.57,0,0,0-.59.589v.883a.591.591,0,0,0,.59.59H65.77v5.274c0,1.438.3,3.09,2.638,3.09a6.107,6.107,0,0,0,2.821-.729.556.556,0,0,0,.284-.721ZM74.2,5.09H72.994a.605.605,0,0,0-.591.589v9.01a.591.591,0,0,0,.591.59H74.2a.605.605,0,0,0,.59-.59V5.679A.621.621,0,0,0,74.2,5.09ZM73.6.6a1.543,1.543,0,0,0-1.538,1.582A1.55,1.55,0,0,0,73.6,3.74,1.571,1.571,0,1,0,73.6.6Zm12.869,9.563a5.341,5.341,0,0,1-5.182,5.354,5.323,5.323,0,1,1,5.182-5.354Zm-2.344,0a2.853,2.853,0,1,0-5.7,0,2.857,2.857,0,1,0,5.7,0Zm8.867-5.288a4.7,4.7,0,0,0-3.3,1.277l-.235-.671a.5.5,0,0,0-.522-.39h-.518a.6.6,0,0,0-.589.589v9.01a.6.6,0,0,0,.589.59h1.1c.469,0,.7-.192.7-.59V8.507A2.939,2.939,0,0,1,92.73,7.152c1.191,0,1.847.87,1.847,2.451v5.086a.6.6,0,0,0,.59.59h1.207a.605.605,0,0,0,.59-.59v-5C96.964,6.448,95.664,4.874,92.989,4.874Zm9.2,4.213c-1.059-.462-1.633-.815-1.633-1.36,0-.383.358-.769,1.156-.769a5.04,5.04,0,0,1,2.087.486.585.585,0,0,0,.8-.248l.344-.689a.709.709,0,0,0-.255-.882,5.718,5.718,0,0,0-2.974-.751C99.355,4.874,98.3,6.3,98.3,7.705c0,1.764,1.328,2.606,2.763,3.253,1.4.634,2.066,1.038,2.066,1.618,0,.528-.46.856-1.2.856a4.49,4.49,0,0,1-2.387-.7l-.034-.018A.633.633,0,0,0,99,12.64a.49.49,0,0,0-.3.253l-.452.925a.516.516,0,0,0,.209.663h0a5.923,5.923,0,0,0,3.342,1.034c2.411,0,3.673-1.522,3.673-3.025C105.472,10.617,104.172,9.926,102.19,9.087Z\"\n />\n </svg>\n )\n}\n\nexport function Services({ color, size = 20 }): JSX.Element {\n return (\n <svg\n id=\"bd77a8f3-6992-4241-927e-9fdc3bf67b80\"\n data-name=\"Layer 1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n height={size}\n viewBox=\"0 0 67.995 20\"\n >\n <title>services-text</title>\n <path\n fill={color}\n d=\"M7.277,12.49c0,1.5-1.262,3.026-3.672,3.026A5.924,5.924,0,0,1,.262,14.482h0a.521.521,0,0,1-.209-.663L.5,12.893a.5.5,0,0,1,.305-.254.62.62,0,0,1,.5.075l.036.019a4.479,4.479,0,0,0,2.385.7c.74,0,1.2-.328,1.2-.856,0-.582-.666-.985-2.066-1.618C1.432,10.311.105,9.469.105,7.705c0-1.41,1.055-2.832,3.413-2.832a5.717,5.717,0,0,1,2.974.752.7.7,0,0,1,.255.881L6.4,7.2a.58.58,0,0,1-.8.248,5.04,5.04,0,0,0-2.087-.485c-.8,0-1.155.386-1.155.768,0,.546.573.9,1.632,1.361C5.977,9.925,7.277,10.615,7.277,12.49ZM17.622,9.559c0,.178-.022.528-.044.7a.58.58,0,0,1-.568.532H10.255a2.818,2.818,0,0,0,2.854,2.485,3.734,3.734,0,0,0,2.369-.819.64.64,0,0,1,.451-.148.472.472,0,0,1,.294.22l.583.907a.513.513,0,0,1-.065.82,5.715,5.715,0,0,1-3.761,1.256,5.047,5.047,0,0,1-5.1-5.332,5.083,5.083,0,0,1,5.074-5.311A4.573,4.573,0,0,1,17.622,9.559ZM15.249,8.97a2.229,2.229,0,0,0-2.334-2.034,2.412,2.412,0,0,0-2.54,2.034Zm8.511-4.1a3.929,3.929,0,0,0-2.972,1.338l-.213-.688a.575.575,0,0,0-.544-.434h-.518a.6.6,0,0,0-.589.589v9.01a.6.6,0,0,0,.589.59h.992c.32,0,.8,0,.8-.59V8.4a2.74,2.74,0,0,1,2.235-1.249,2.351,2.351,0,0,1,.854.183.534.534,0,0,0,.424.032.584.584,0,0,0,.334-.323l.518-1.077a.517.517,0,0,0-.01-.525C25.4,5.022,24.509,4.873,23.76,4.873Zm11.569.216H34.36c-.288,0-.613,0-.774.348l-2.695,5.912L28.319,5.433a.545.545,0,0,0-.535-.344H26.469a.544.544,0,0,0-.493.238.489.489,0,0,0,.024.49l4.311,9.376a.6.6,0,0,0,.534.323h.13a.56.56,0,0,0,.514-.327L35.8,5.822a.49.49,0,0,0,.027-.5A.545.545,0,0,0,35.329,5.089Zm3.154,0H37.276a.6.6,0,0,0-.59.589v9.01a.6.6,0,0,0,.59.59h1.207a.605.605,0,0,0,.59-.59V5.678A.621.621,0,0,0,38.483,5.089ZM37.879.6A1.543,1.543,0,0,0,36.341,2.18a1.532,1.532,0,0,0,1.538,1.559,1.57,1.57,0,1,0,0-3.14Zm10.8,11.392a.567.567,0,0,0-.818.047c-.08.073-.16.152-.241.233a2.623,2.623,0,0,1-2.031.966,2.92,2.92,0,0,1-2.838-3.053,2.778,2.778,0,0,1,4.87-2.073c.165.164.444.443.806.11l.774-.71a.606.606,0,0,0,.1-.87,4.465,4.465,0,0,0-3.711-1.768,5.285,5.285,0,0,0-5.225,5.332,5.2,5.2,0,0,0,5.2,5.311,4.647,4.647,0,0,0,3.977-2.12c.13-.2.2-.5-.2-.866ZM59.784,9.559c0,.178-.022.528-.044.7a.58.58,0,0,1-.567.532H52.417a2.818,2.818,0,0,0,2.854,2.485,3.734,3.734,0,0,0,2.369-.819.641.641,0,0,1,.451-.148.472.472,0,0,1,.294.22l.583.907a.513.513,0,0,1-.065.82,5.712,5.712,0,0,1-3.761,1.256,5.047,5.047,0,0,1-5.1-5.332A5.083,5.083,0,0,1,55.12,4.873,4.573,4.573,0,0,1,59.784,9.559ZM52.537,8.97h4.874a2.229,2.229,0,0,0-2.334-2.034A2.412,2.412,0,0,0,52.537,8.97ZM64.4,9.087c-1.06-.462-1.633-.816-1.633-1.361,0-.382.357-.768,1.156-.768a5.047,5.047,0,0,1,2.087.485.58.58,0,0,0,.8-.248l.344-.689a.706.706,0,0,0-.256-.881,5.71,5.71,0,0,0-2.973-.752c-2.358,0-3.414,1.422-3.414,2.832,0,1.764,1.328,2.606,2.763,3.253,1.4.633,2.066,1.036,2.066,1.618,0,.528-.459.856-1.2.856a4.485,4.485,0,0,1-2.384-.7l-.037-.02a.632.632,0,0,0-.5-.075.493.493,0,0,0-.3.254l-.452.925a.521.521,0,0,0,.209.663h0a5.923,5.923,0,0,0,3.342,1.034c2.412,0,3.673-1.522,3.673-3.026C67.685,10.615,66.385,9.925,64.4,9.087Z\"\n />\n </svg>\n )\n}\n","import React from \"react\"\n\nimport * as MonoAppText from \"./mono_app_text\"\n\nexport function MonoAppName({ appName, color, size = 20 }) {\n return MonoAppText[appName] ? (\n React.createElement(MonoAppText[appName], { color, size })\n ) : (\n <div>appName not supported</div>\n )\n}\n","export const slightBackgroundTransition = {\n transition: \"background-color 120ms ease-in\",\n}\n\nexport const fontFamily = {\n fontFamily: `inherit`,\n}\n\nexport const IEFlex1 = {\n flex: \"1 1 auto\",\n}\n","import React from \"react\"\n\nexport const Bell = ({\n dot = false,\n dotFill = \"#fff\",\n fill = \"#fff\",\n style,\n ...props\n}: {\n dot?: boolean\n dotFill?: string\n fill?: string\n style?: object\n}) => {\n const bellPath = (\n <path\n d=\"M21.482,16.626,19.1,13.649V9a7,7,0,0,0-14,0v4.649L2.478,16.929A1.89,1.89,0,0,0,3.952,20H9.285a2.983,2.983,0,0,0,5.633,0H19.86a2.077,2.077,0,0,0,1.622-3.374ZM19.86,18H4.182l2.7-3.375A1,1,0,0,0,7.1,14V9a5,5,0,0,1,10,0v5a1,1,0,0,0,.219.625l2.6,3.25Z\"\n fill=\"white\"\n />\n )\n return (\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n style={{ display: \"block\", ...style }}\n {...props}\n stroke=\"none\"\n >\n <title>bell</title>\n <defs>\n <mask id=\"mask-no-dot\">{bellPath}</mask>\n <mask id=\"mask-dot\">\n {bellPath}\n <circle cx=\"18\" cy=\"6\" fill=\"black\" r=\"7\" />\n </mask>\n </defs>\n <rect\n fill={fill}\n height=\"24\"\n mask={dot ? \"url(#mask-dot)\" : \"url(#mask-no-dot\"}\n width=\"24\"\n x=\"0\"\n y=\"0\"\n />\n {dot && <circle cx=\"18\" cy=\"6\" r=\"4\" fill={dotFill || fill} />}\n </svg>\n )\n}\n\nexport const BlankStateIcon = ({\n dark = false,\n id = \"default\",\n style,\n ...nativeProps\n}: {\n dark?: boolean\n id?: string\n style?: object\n}) => (\n <svg\n fill=\"none\"\n height=\"123\"\n style={{ ...style }}\n width=\"160\"\n {...nativeProps}\n >\n <g clipPath={`url(#clip-path-blank-state-${id})`}>\n <path\n opacity=\".6\"\n d=\"M155.367 66.751c-6.081 17.955-18.824 33.158-32.579 41.991-14.045 8.977-28.96 11.294-46.19 7.529-16.941-3.764-33.738-11.583-47.638-18.968C15.204 89.63 4.344 82.533 1.593 71.385-1.013 60.525 4.78 45.61 18.68 30.842 32.435 16.362 54.3 2.896 80.362.579c25.919-2.606 49.666 6.082 63.276 18.534 13.901 12.597 17.666 29.828 11.729 47.638z\"\n fill={dark ? \"#414141\" : \"#E1F0F9\"}\n />\n <g opacity=\".2\">\n <path\n opacity=\".2\"\n d=\"M90.643 122.063c-9.702 0-19.258-2.606-29.25-7.674-12.741-6.66-26.352-16.796-41.41-30.841C8.832 72.688-.29 62.697 0 50.678c.145-8.542 5.503-17.81 14.914-26.352l1.448 1.593c-9.122 8.108-14.19 16.94-14.335 24.76-.29 11.294 8.543 20.85 19.403 31.42C36.344 96 49.81 105.992 62.263 112.508c13.031 6.805 25.629 8.977 38.371 6.516l.434 2.027c-3.475.724-6.95 1.013-10.425 1.013zM116.706 115.982l-.869-1.738c13.756-6.226 25.919-16.507 34.027-28.67l1.738 1.159c-8.254 12.453-20.706 22.878-34.896 29.249zM158.552 71.385l-2.027-.58c2.896-11.294.869-22.877-5.792-33.303-10.715-17.086-32-29.973-55.457-33.882-19.258-3.475-40.108-.29-58.642 8.688l-.869-1.883c18.824-9.122 40.109-12.307 59.8-8.832 24.037 3.91 45.901 17.23 56.906 34.75 7.095 11.005 9.267 23.023 6.081 35.042z\"\n fill=\"#BAC7D3\"\n />\n </g>\n <path\n d=\"M115.258 20.706l-.145 4.199c0 .869.289 1.882 1.013 2.461l3.186 2.752c.724.724.29 1.882-.724 1.882l-4.199-.145c-.869 0-1.882.29-2.462 1.014l-2.896 3.33c-.724.724-1.882.29-1.882-.724l.145-4.199c0-.869-.29-1.882-1.014-2.462l-3.185-2.75c-.724-.725-.29-1.883.724-1.883l4.199.145c.869 0 1.882-.29 2.461-1.014l2.751-3.185c.724-.87 2.028-.435 2.028.579zM92.959 30.842v1.882c0 .434.144.869.579 1.158l1.448 1.159c.29.29.145.869-.29.869h-1.882c-.434 0-.869.144-1.158.579l-1.159 1.448c-.29.29-.869.145-.869-.29v-1.882c0-.435-.144-.869-.579-1.159l-1.448-1.158c-.29-.29-.145-.869.29-.869h1.882c.435 0 .869-.145 1.159-.579l1.158-1.448c.29-.434.869-.29.869.29z\"\n fill=\"#FCC846\"\n />\n <path\n d=\"M68.778 36.633l-19.982 57.63 57.919-20.127-37.937-37.502z\"\n fill=\"#48A5E5\"\n />\n <path\n d=\"M82.099 54.299H62.696l2.027-5.647h12.308l5.068 5.647zM99.91 70.082H57.194l2.027-5.648h33.737l6.95 5.648zM72.398 85.864H51.692l1.737-5.647h35.91l-16.941 5.647z\"\n fill=\"#79CAF2\"\n />\n <path\n d=\"M107.613 73.964c1.44-1.5-6.087-11.069-16.813-21.374-10.726-10.305-20.588-17.443-22.029-15.944-1.44 1.5 6.087 11.069 16.813 21.374 10.726 10.305 20.588 17.443 22.029 15.944z\"\n fill={dark ? \"#525252\" : \"#636363\"}\n />\n <path\n d=\"M113.086 55.747h-3.041c-.724 0-1.303.29-1.737.868l-1.883 2.607c-.434.579-1.448.29-1.448-.435l-.144-3.185c0-.724-.29-1.303-.869-1.738l-2.607-1.882c-.579-.434-.289-1.448.435-1.448l3.185-.145c.724 0 1.303-.29 1.738-.869l1.882-2.606c.435-.58 1.448-.29 1.448.434l.145 3.186c0 .724.29 1.303.869 1.738l2.606 1.882c.579.58.29 1.593-.579 1.593z\"\n fill=\"#FCC846\"\n />\n </g>\n <defs>\n <clipPath id={`clip-path-blank-state-${id}`}>\n <path fill=\"#fff\" d=\"M0 0h160v122.063H0z\" />\n </clipPath>\n </defs>\n </svg>\n)\n\nexport const ChevronIcon = ({\n fill = \"#000\",\n size = 24,\n style,\n ...nativeProps\n}: {\n fill?: string\n size?: number\n style?: object\n}) => (\n <svg\n height={size}\n style={{ display: \"block\", ...style }}\n viewBox=\"0 0 16 16\"\n width={size}\n {...nativeProps}\n >\n <title>chevron</title>\n <path\n d=\"M10.209 16L2.255 8.045L10.209 0.0910034L11.977 1.859L5.789 8.045L11.977 14.233L10.209 16Z\"\n fill={fill}\n />\n </svg>\n)\n\nexport const Cog = ({\n fill = \"#000\",\n size = 24,\n style,\n ...nativeProps\n}: {\n fill?: string\n size?: number\n style?: object\n}) => (\n <svg\n height={size}\n style={{ display: \"block\", ...style }}\n viewBox=\"0 0 16 16\"\n width={size}\n {...nativeProps}\n >\n <title>cog icon</title>\n <path\n d=\"M15.975 7.169H15.965L14.44 6.91C14.3024 6.90264 14.1694 6.85837 14.0548 6.78182C13.9403 6.70528 13.8484 6.59929 13.789 6.475C13.653 5.95399 13.4465 5.45403 13.175 4.989C13.1286 4.85874 13.118 4.71844 13.1442 4.58267C13.1704 4.44691 13.2325 4.32064 13.324 4.217L14.224 2.957L14.23 2.949C14.24 2.934 14.24 2.923 14.23 2.914L14.2 2.89L14.155 2.844L13.155 1.844L13.095 1.784L13.085 1.775C13.076 1.765 13.065 1.765 13.05 1.775L11.782 2.675C11.6788 2.76662 11.5529 2.82887 11.4175 2.85525C11.2821 2.88164 11.142 2.87119 11.012 2.825C10.5462 2.55339 10.0456 2.34649 9.524 2.21C9.40004 2.1505 9.29435 2.05878 9.218 1.94443C9.14164 1.83007 9.09744 1.6973 9.09 1.56L8.833 0.035V0.025C8.828 0.008 8.821 0 8.807 0H7.193C7.179 0 7.172 0.008 7.169 0.025L6.91 1.56C6.90286 1.69763 6.85866 1.83078 6.7821 1.94537C6.70553 2.05996 6.59942 2.15173 6.475 2.211C5.95399 2.34697 5.45403 2.55355 4.989 2.825C4.85874 2.87138 4.71844 2.88203 4.58267 2.85583C4.44691 2.82962 4.32064 2.76753 4.217 2.676L2.957 1.776L2.949 1.77C2.934 1.76 2.923 1.76 2.914 1.77L2.89 1.8L2.844 1.845L1.844 2.845L1.784 2.905L1.775 2.915C1.765 2.924 1.765 2.935 1.775 2.95L2.675 4.218C2.76662 4.32118 2.82887 4.44706 2.85525 4.5825C2.88164 4.71794 2.87119 4.85797 2.825 4.988C2.55382 5.45174 2.34724 5.95035 2.211 6.47C2.15164 6.59477 2.05996 6.70138 1.94549 6.77875C1.83101 6.85612 1.69791 6.90144 1.56 6.91L0.035 7.167H0.025C0.008 7.167 0 7.177 0 7.191V8.807C0 8.821 0.008 8.828 0.025 8.831L1.56 9.09C1.69791 9.09856 1.83101 9.14388 1.94549 9.22125C2.05996 9.29862 2.15164 9.40523 2.211 9.53C2.34701 10.0494 2.5536 10.5477 2.825 11.011C2.87138 11.1413 2.88203 11.2816 2.85583 11.4173C2.82962 11.5531 2.76753 11.6794 2.676 11.783L1.776 13.051C1.766 13.066 1.766 13.077 1.776 13.086L1.785 13.096L1.845 13.156L2.845 14.156L2.891 14.201L2.915 14.225C2.924 14.235 2.935 14.235 2.95 14.225L2.958 14.219L4.218 13.319C4.32118 13.2274 4.44706 13.1651 4.5825 13.1387C4.71794 13.1124 4.85797 13.1228 4.988 13.169C5.452 13.4406 5.95095 13.6475 6.471 13.784C6.59563 13.8433 6.70214 13.9348 6.77951 14.0491C6.85687 14.1634 6.90227 14.2963 6.911 14.434L7.17 15.97C7.17 15.987 7.18 15.995 7.194 15.995H8.807C8.821 15.995 8.828 15.987 8.831 15.97V15.96L9.088 14.434C9.09673 14.2963 9.14213 14.1634 9.21949 14.0491C9.29686 13.9348 9.40337 13.8433 9.528 13.784C10.0474 13.648 10.5457 13.4414 11.009 13.17C11.1393 13.1236 11.2796 13.113 11.4153 13.1392C11.5511 13.1654 11.6774 13.2275 11.781 13.319L13.049 14.219C13.064 14.229 13.075 14.229 13.084 14.219L13.094 14.21L13.154 14.15L14.154 13.15L14.199 13.104L14.223 13.08C14.233 13.071 14.233 13.06 14.223 13.045L14.217 13.037L13.317 11.777C13.2254 11.6738 13.1631 11.5479 13.1367 11.4125C13.1104 11.2771 13.1208 11.137 13.167 11.007C13.4386 10.543 13.6455 10.044 13.782 9.524C13.8414 9.39923 13.933 9.29262 14.0475 9.21525C14.162 9.13788 14.2951 9.09256 14.433 9.084L15.968 8.825C15.985 8.825 15.993 8.815 15.993 8.801V7.193C16 7.179 15.992 7.172 15.975 7.169ZM10.619 10.619C10.1012 11.1357 9.44195 11.4873 8.72443 11.6295C8.00691 11.7716 7.26336 11.6979 6.58772 11.4176C5.91208 11.1374 5.33467 10.6631 4.92844 10.0548C4.52222 9.44652 4.30541 8.73147 4.30541 8C4.30541 7.26854 4.52222 6.55348 4.92844 5.94519C5.33467 5.33689 5.91208 4.86265 6.58772 4.58238C7.26336 4.30211 8.00691 4.22839 8.72443 4.37054C9.44195 4.51268 10.1012 4.86431 10.619 5.381C10.9634 5.72468 11.2366 6.1329 11.423 6.5823C11.6095 7.03171 11.7054 7.51346 11.7054 8C11.7054 8.48654 11.6095 8.96829 11.423 9.4177C11.2366 9.8671 10.9634 10.2753 10.619 10.619Z\"\n fill={fill}\n />\n </svg>\n)\n\nexport const DisclosureChevronIcon = ({\n colors,\n style,\n ...nativeProps\n}: {\n colors: any\n style?: object\n}) => (\n <svg\n color={colors.base3}\n height=\"16\"\n viewBox=\"0 0 16 16\"\n width=\"16\"\n {...{ style }}\n {...nativeProps}\n >\n <title>chevron</title>\n <polygon\n fill=\"currentColor\"\n points=\"11.931 4.892 8 8.824 4.069 4.892 2.927 6.034 8 11.108 9.142 9.966 13.073 6.034 11.931 4.892\"\n />\n </svg>\n)\n\nexport const HelpIcon = ({\n colors,\n style,\n ...nativeProps\n}: {\n colors: any\n style?: object\n}) => (\n <svg\n color={colors.base3}\n height=\"24\"\n style={{ display: \"block\" }}\n viewBox=\"0 0 24 24\"\n width=\"24\"\n {...nativeProps}\n >\n <title>help</title>\n <path\n d=\"M12,22A10,10,0,1,1,22,12,10.011,10.011,0,0,1,12,22ZM12,4a8,8,0,1,0,8,8A8.009,8.009,0,0,0,12,4Zm-.342,11.067a1.41,1.41,0,1,0,1.41,1.41A1.41,1.41,0,0,0,11.658,15.067Zm1.914-2.488c1.938-1.885,2.232-3.607.872-5.118A3.37,3.37,0,0,0,11.9,6.307h-.017A5.121,5.121,0,0,0,8.343,7.959L9.817,9.311a3.153,3.153,0,0,1,2.067-1h.008a1.366,1.366,0,0,1,1.065.493c.494.549.517,1.085-.78,2.345A4.612,4.612,0,0,0,10.632,14.2h2A2.733,2.733,0,0,1,13.572,12.579Z\"\n fill=\"currentColor\"\n />\n </svg>\n)\n\nexport const ExclamationTriangle = ({\n fill = \"#000\",\n size = 24,\n style,\n ...nativeProps\n}: {\n fill?: string\n size: number\n style?: object\n}) => (\n <svg\n height={size}\n style={{ display: \"block\", ...style }}\n viewBox=\"0 0 16 16\"\n width={size}\n {...nativeProps}\n >\n <title>exclamation triangle icon</title>\n <path\n d=\"M15.669 13.676L8.65499 1.56099C8.58867 1.44593 8.49322 1.35037 8.37823 1.28392C8.26325 1.21748 8.13279 1.1825 7.99999 1.1825C7.86718 1.1825 7.73672 1.21748 7.62174 1.28392C7.50675 1.35037 7.4113 1.44593 7.34499 1.56099L0.330986 13.676C0.264196 13.7911 0.228916 13.9217 0.2287 14.0548C0.228484 14.1878 0.26334 14.3186 0.329756 14.4339C0.396172 14.5492 0.491802 14.6449 0.60701 14.7115C0.722218 14.778 0.852933 14.813 0.985986 14.813H15.014C15.147 14.813 15.2778 14.778 15.393 14.7115C15.5082 14.6449 15.6038 14.5492 15.6702 14.4339C15.7366 14.3186 15.7715 14.1878 15.7713 14.0548C15.7711 13.9217 15.7358 13.7911 15.669 13.676ZM8.75699 12.542H7.24299V11.028H8.75699V12.542ZM8.75699 9.51399H7.24299V6.48499H8.75699V9.51399Z\"\n fill={fill}\n />\n </svg>\n)\n\nexport const Spyglass = ({\n fill = \"#000\",\n style,\n ...nativeProps\n}: {\n fill?: string\n style?: object\n}) => (\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n style={{ display: \"block\", ...style }}\n {...nativeProps}\n >\n <title>search spyglass icon</title>\n <path\n d=\"M17.352,15.481a8.517,8.517,0,1,0-2.209,2.033l4.642,4.642,2.121-2.121Zm-6.757,1.364a6.5,6.5,0,1,1,6.5-6.5A6.508,6.508,0,0,1,10.595,16.845Z\"\n fill={fill}\n />\n </svg>\n)\n\nexport const X = ({\n fill = \"#A0A0A0\",\n style,\n ...nativeProps\n}: {\n fill?: string\n style?: object\n}) => (\n <svg\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n style={{ display: \"block\", ...style }}\n {...nativeProps}\n >\n <title>close-x</title>\n <path\n d=\"M9.142,8l3.814,3.814-1.142,1.142L8,9.142,4.186,12.956,3.044,11.814,6.858,8,3.044,4.186,4.186,3.044,8,6.858l3.814-3.814,1.142,1.142Z\"\n fill={fill}\n />\n </svg>\n)\n","import React from \"react\"\n\nimport { fontFamily } from \"./styles\"\n\nexport function Unbutton({\n style,\n ...nativeProps\n}: {\n children: any\n id?: string\n onClick?: any\n onMouseDown?: any\n onMouseEnter?: any\n onMouseLeave?: any\n onMouseUp?: any\n style?: object\n}): JSX.Element {\n return (\n <button\n style={{\n WebkitAppearance: \"none\",\n appearance: \"none\",\n backgroundColor: \"transparent\",\n border: \"none\",\n cursor: \"pointer\",\n display: \"inline-block\",\n outline: 0,\n padding: 0,\n ...fontFamily,\n ...style,\n }}\n {...nativeProps}\n />\n )\n}\n","import React from \"react\"\n\nimport { MonoAppIcon } from \"../mono_app_icon\"\nimport { MonoAppName } from \"../mono_app_name\"\nimport { slightBackgroundTransition } from \"../styles\"\nimport { DisclosureChevronIcon } from \"../symbols\"\nimport { Unbutton } from \"../unbutton\"\n\nconst AppsButton = ({\n appName,\n colors,\n displayIconOnly,\n expanded,\n onClick,\n style = null,\n ...nativeProps\n}: {\n appName: string\n colors: any\n displayIconOnly?: boolean\n expanded: boolean\n onClick: any\n style?: object\n}) => {\n const [down, setDown] = React.useState(false)\n const [entered, setEntered] = React.useState(false)\n\n const getBackgroundColor = () => {\n if (expanded && !down) return colors.base1\n if (entered && down) return colors.base2\n if (entered) return colors.base1\n return \"transparent\"\n }\n\n return (\n <Unbutton\n onClick={onClick}\n onMouseDown={() => setDown(true)}\n onMouseEnter={() => setEntered(true)}\n onMouseLeave={() => setEntered(false)}\n onMouseUp={() => setDown(false)}\n style={{\n alignItems: \"center\",\n backgroundColor: getBackgroundColor(),\n display: \"flex\",\n height: \"100%\",\n outline: 0, // TODO: #improve-outline-a11y\n paddingLeft: \"16px\",\n paddingRight: \"16px\",\n whiteSpace: \"nowrap\",\n ...slightBackgroundTransition,\n ...style,\n }}\n {...nativeProps}\n >\n <MonoAppIcon\n appName={appName.replace(/[\\s-]/, \"\")}\n colors={colors}\n size={24}\n />\n {!displayIconOnly && (\n <>\n {appName === \"Accounts\" ? (\n <div\n style={{\n color: \"#fff\",\n fontSize: \"14px\",\n fontWeight: 500,\n marginLeft: 3,\n }}\n >\n Account settings\n </div>\n ) : (\n <>\n <div key=\"spacer-1\" style={{ margin: 4 }} />\n <MonoAppName\n appName={appName.replace(/[\\s-]/, \"\")}\n color=\"#fff\"\n key=\"mono-app-name\"\n size={24}\n />\n </>\n )}\n <div key=\"space-2\" style={{ margin: 4 }} />\n <DisclosureChevronIcon\n colors={colors}\n key=\"disclosure-chevron-icon\"\n style={{ display: \"block\" }}\n />\n </>\n )}\n </Unbutton>\n )\n}\n\nexport default AppsButton\n","// TODO: Use Fragments when we React 16 is a baseline\nimport React from \"react\"\n\nexport function Accounts(): JSX.Element[] {\n return [\n <defs key=\"def\">\n <linearGradient\n id=\"2e1ed2e7-b842-4126-8f57-f6b6dd63ddb6\"\n x1=\"1.844\"\n y1=\"1.833\"\n x2=\"18.622\"\n y2=\"18.612\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop offset=\"0\" stopColor=\"#32a0f0\" />\n <stop offset=\"1\" stopColor=\"#3f75e5\" />\n </linearGradient>\n </defs>,\n <title key=\"title\">accounts-squircle</title>,\n <path\n key=\"path\"\n d=\"M19.96,10c0,7.962-1.991,9.952-9.952,9.952S.056,17.959.056,10,2.047.045,10.008.045,19.96,2.036,19.96,10Z\"\n fill=\"url(#2e1ed2e7-b842-4126-8f57-f6b6dd63ddb6)\"\n />,\n ]\n}\n\nexport function API(): JSX.Element[] {\n return [\n <defs key=\"def\">\n <linearGradient\n id=\"c8ec303e-a96d-4850-93ae-70864e3306bb\"\n x1=\"0.991\"\n y1=\"0.983\"\n x2=\"19.295\"\n y2=\"19.288\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop offset=\"0\" stopColor=\"#32a0f0\" />\n <stop offset=\"1\" stopColor=\"#3f75e5\" />\n </linearGradient>\n </defs>,\n <title key=\"title\">api-squircle</title>,\n <path\n key=\"path\"\n d=\"M20,10c0,7.991-2,9.989-9.989,9.989S.019,17.991.019,10s2-9.989,9.989-9.989S20,2.009,20,10Z\"\n fill=\"url(#c8ec303e-a96d-4850-93ae-70864e3306bb)\"\n />,\n ]\n}\n\nexport function Calendar(): JSX.Element[] {\n return [\n <defs key=\"defs\">\n <linearGradient\n id=\"calendar-gradient\"\n x1=\"2.05\"\n y1=\"2.04\"\n x2=\"17.97\"\n y2=\"17.96\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop offset=\"0\" stopColor=\"#f25437\" />\n <stop offset=\"1\" stopColor=\"#cd4e39\" />\n </linearGradient>\n </defs>,\n <title key=\"title\">calendar-squircle</title>,\n <path\n key=\"path\"\n d=\"M20,10c0,8-2,10-10,10S.06,18,.06,10,2.05.05,10,.05,20,2,20,10Z\"\n fill=\"url(#calendar-gradient)\"\n />,\n ]\n}\n\nexport function CheckIns(): JSX.Element[] {\n return [\n <defs key=\"def\">\n <linearGradient\n id=\"679bc2bf-38c8-45ab-9ee3-a2ff814fead7\"\n x1=\"1.75\"\n y1=\"1.739\"\n x2=\"18.156\"\n y2=\"18.145\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop offset=\"0\" stopColor=\"#a76ebe\" />\n <stop offset=\"1\" stopColor=\"#875e96\" />\n </linearGradient>\n </defs>,\n <title key=\"title\">check-ins-squircle</title>,\n <path\n key=\"path\"\n d=\"M10.008.045C2.047.045.056,2.036.056,10s1.991,9.952,9.952,9.952S19.96,17.959,19.96,10,17.969.045,10.008.045Z\"\n fill=\"url(#679bc2bf-38c8-45ab-9ee3-a2ff814fead7)\"\n />,\n ]\n}\n\nexport function ChurchCenter(): JSX.Element[] {\n return [\n <defs key=\"def\">\n <linearGradient\n id=\"6de99831-a6f8-498e-9bf3-9d55c8d887fa\"\n x1=\"2.04\"\n y1=\"2.029\"\n x2=\"17.976\"\n y2=\"17.965\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop offset=\"0\" stopColor=\"#42a5f5\" />\n <stop offset=\"1\" stopColor=\"#66bb6a\" />\n </linearGradient>\n </defs>,\n <title key=\"title\">church-center-squircle</title>,\n <path\n key=\"path\"\n d=\"M10.008.037C2.04.037.048,2.029.048,10s1.992,9.96,9.96,9.96,9.96-1.992,9.96-9.96S17.976.037,10.008.037Z\"\n fill=\"url(#6de99831-a6f8-498e-9bf3-9d55c8d887fa)\"\n />,\n ]\n}\n\nexport function Giving(): JSX.Element[] {\n return [\n <defs key=\"def\">\n <linearGradient\n id=\"0aae6372-b733-476d-af45-8777c08c1e24\"\n x1=\"2.047\"\n y1=\"2.036\"\n x2=\"17.969\"\n y2=\"17.959\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop offset=\"0\" stopColor=\"#f5c426\" />\n <stop offset=\"1\" stopColor=\"#f2b327\" />\n </linearGradient>\n </defs>,\n <title key=\"title\">giving-squircle</title>,\n <path\n key=\"path\"\n d=\"M10.008.045C2.047.045.056,2.036.056,10s1.991,9.952,9.952,9.952S19.96,17.959,19.96,10,17.969.045,10.008.045Z\"\n fill=\"url(#0aae6372-b733-476d-af45-8777c08c1e24)\"\n />,\n ]\n}\n\nexport function Groups(): JSX.Element[] {\n return [\n <defs key=\"def\">\n <linearGradient\n id=\"86d10072-1c7f-4a02-88fe-0735565ae99a\"\n x1=\"1.939\"\n y1=\"1.928\"\n x2=\"18.146\"\n y2=\"18.135\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop offset=\"0\" stopColor=\"#ff962d\" />\n <stop offset=\"1\" stopColor=\"#fc7638\" />\n </linearGradient>\n </defs>,\n <title key=\"title\">groups-squircle</title>,\n <path\n key=\"path\"\n d=\"M19.96,10c0,7.962-1.991,9.952-9.952,9.952S.056,17.959.056,10,2.047.045,10.008.045,19.96,2.036,19.96,10Z\"\n fill=\"url(#86d10072-1c7f-4a02-88fe-0735565ae99a)\"\n />,\n ]\n}\n\nexport function Home(): JSX.Element[] {\n return [\n <defs key=\"def\">\n <linearGradient\n id=\"paint0_linear_1_2\"\n x1=\"-2.23242\"\n y1=\"0.320978\"\n x2=\"19.9609\"\n y2=\"22.5228\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop offset=\"0\" stopColor=\"#289DFF\" />\n <stop offset=\"1\" stopColor=\"#2266F7\" />\n </linearGradient>\n </defs>,\n <title key=\"title\">home-squircle</title>,\n <path\n key=\"path\"\n d=\"M9.99962 0C1.99854 0 0 2.00015 0 10C0 17.9998 1.99854 20 9.99962 20C18.0007 20 20 18.0014 20 10C20 1.99862 17.9999 0 9.99962 0Z\"\n fill=\"url(#paint0_linear_1_2)\"\n />,\n ]\n}\n\nexport function People(): JSX.Element[] {\n return [\n <defs key=\"def\">\n <linearGradient\n id=\"7f805f16-2322-4b42-b61a-2bf71eadb25a\"\n x1=\"2.047\"\n y1=\"2.036\"\n x2=\"17.969\"\n y2=\"17.958\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop offset=\"0\" stopColor=\"#32a0f0\" />\n <stop offset=\"1\" stopColor=\"#3f75e5\" />\n </linearGradient>\n </defs>,\n <title key=\"title\">people-squircle</title>,\n <path\n key=\"path\"\n d=\"M19.96,10c0,7.962-1.991,9.952-9.952,9.952S.056,17.959.056,10,2.047.045,10.008.045,19.96,2.036,19.96,10Z\"\n fill=\"url(#7f805f16-2322-4b42-b61a-2bf71eadb25a)\"\n />,\n ]\n}\n\nexport function Publishing(): JSX.Element[] {\n return [\n <defs key=\"def\">\n <linearGradient\n id=\"publishing-gradient\"\n x1=\"2.047\"\n y1=\"2.036\"\n x2=\"17.969\"\n y2=\"17.958\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop offset=\"0\" stopColor=\"#787882\" />\n <stop offset=\"1\" stopColor=\"#5f5f69\" />\n </linearGradient>\n <linearGradient\n id=\"publishing-gradient-2\"\n x1=\"2.03\"\n y1=\"2.03\"\n x2=\"17.952\"\n y2=\"17.952\"\n gradientTransform=\"translate(2.563 -2.028) rotate(13.283)\"\n xlinkHref=\"#publishing-gradient\"\n />\n </defs>,\n <title key=\"title\">publishing-squircle</title>,\n <path\n d=\"M19.96,10c0,7.962-1.991,9.952-9.952,9.952S.056,17.959.056,10,2.047.045,10.008.045,19.96,2.036,19.96,10Z\"\n fill=\"url(#publishing-gradient)\"\n key=\"path\"\n />,\n <circle\n cx=\"9.991\"\n cy=\"9.991\"\n r=\"9.951\"\n transform=\"translate(-2.028 2.563) rotate(-13.283)\"\n fill=\"url(#publishing-gradient-2)\"\n key=\"circle\"\n />,\n ]\n}\n\nexport function Registrations(): JSX.Element[] {\n return [\n <defs key=\"def\">\n <linearGradient\n id=\"bd67604d-f11c-4431-bd82-159c57241115\"\n x1=\"2.047\"\n y1=\"2.036\"\n x2=\"17.969\"\n y2=\"17.958\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop offset=\"0\" stopColor=\"#41b99e\" />\n <stop offset=\"1\" stopColor=\"#46948d\" />\n </linearGradient>\n </defs>,\n <title key=\"title\">registrations-squircle</title>,\n <path\n key=\"path\"\n d=\"M19.96,10c0,7.962-1.991,9.952-9.952,9.952S.056,17.959.056,10,2.047.045,10.008.045,19.96,2.036,19.96,10Z\"\n fill=\"url(#bd67604d-f11c-4431-bd82-159c57241115)\"\n />,\n ]\n}\n\nexport function Services(): JSX.Element[] {\n return [\n <defs key=\"def\">\n <linearGradient\n id=\"00f9217c-0536-41ea-b265-a8689874be71\"\n x1=\"2.04\"\n y1=\"2.029\"\n x2=\"17.976\"\n y2=\"17.965\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop offset=\"0\" stopColor=\"#6eaa50\" />\n <stop offset=\"1\" stopColor=\"#6a9639\" />\n </linearGradient>\n </defs>,\n <title key=\"title\">services-squircle</title>,\n <path\n key=\"path\"\n d=\"M19.968,10c0,7.968-1.992,9.96-9.96,9.96S.048,17.965.048,10,2.04.037,10.008.037,19.968,2.029,19.968,10Z\"\n fill=\"url(#00f9217c-0536-41ea-b265-a8689874be71)\"\n />,\n ]\n}\n","import React from \"react\"\n\nimport * as ColorAppSquircles from \"./color_app_squircles\"\nimport * as AppSymbols from \"./mono_app_symbols\"\n\nexport function ColorAppIcon({\n appName,\n size = 20,\n}: {\n appName: string\n size?: number\n}): JSX.Element {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width={size}\n height={size}\n viewBox=\"0 0 20 20\"\n style={{ display: \"block\" }}\n >\n {ColorAppSquircles[appName] ? (\n React.createElement(ColorAppSquircles[appName], { key: \"key1\" })\n ) : (\n <span key=\"key1\" />\n )}\n {AppSymbols[appName] ? (\n React.createElement(AppSymbols[appName], { color: \"#fff\", key: \"key2\" })\n ) : (\n <div key=\"key3\">appName not supported</div>\n )}\n </svg>\n )\n}\n","export default function getAppsSwitchProductPath(productName: string): string {\n const basePath = `/apps/${productName.toLowerCase()}`\n const referer = window?.location?.pathname?.toString()\n\n if (!referer) return basePath\n\n const params = new URLSearchParams()\n params.append(\"referer\", referer)\n\n return `${basePath}?${params.toString()}`\n}\n","import React from \"react\"\n\nconst HoverableListItem = ({\n active = false,\n component: C = \"span\",\n style = null,\n ...nativeProps\n}: {\n active?: boolean\n children?: React.ReactNode\n component?: any\n href?: string\n onClick?: any\n style?: object\n}) => {\n const [entered, setEntered] = React.useState(false)\n\n const getBackgroundColor = () =>\n active ? \"#ededed\" : entered ? \"#f7f7f7\" : \"transparent\"\n\n return (\n <C\n onMouseEnter={() => setEntered(true)}\n onMouseLeave={() => setEntered(false)}\n style={{ ...style, backgroundColor: getBackgroundColor() }}\n {...nativeProps}\n />\n )\n}\n\nexport default HoverableListItem\n","import React from \"react\"\n\nexport default class Outsider extends React.Component<\n {\n cleanup: boolean\n component: any\n onOutsideClick: any\n visible: boolean\n },\n {}\n> {\n private container: HTMLElement\n\n constructor(props: any) {\n super(props)\n this.handleOutsideClick = this.handleOutsideClick.bind(this)\n }\n\n componentWillUnmount() {\n document.removeEventListener(\"click\", this.handleOutsideClick, true)\n }\n\n handleOutsideClick(e) {\n if (this.container.contains(e.target)) return\n\n e.stopPropagation()\n e.preventDefault()\n\n return this.props.onOutsideClick()\n }\n\n render() {\n const { cleanup, onOutsideClick, visible, ...props } = this.props\n\n if (cleanup) {\n document.removeEventListener(\"click\", this.handleOutsideClick, true)\n } else {\n document.addEventListener(\"click\", this.handleOutsideClick, true)\n }\n\n return <div ref={(c) => (this.container = c)} {...props} />\n }\n}\n","import React from \"react\"\n\nconst PopupRoot = ({\n style = null,\n ...nativeProps\n}: {\n children?: React.ReactNode\n style?: object\n}) => (\n <div\n style={{\n alignSelf: \"flex-end\",\n display: \"flex\",\n position: \"relative\",\n ...style,\n }}\n {...nativeProps}\n />\n)\n\nexport default PopupRoot\n","import React from \"react\"\n\nconst Popup = ({\n component: C = \"div\",\n style = null,\n ...nativeProps\n}: {\n children?: React.ReactNode\n cleanup?: any\n component?: any\n onOutsideClick?: any\n style?: object\n}) => (\n <C\n style={{\n background: \"#FFFFFF\",\n borderRadius: \"3px\",\n boxShadow: \"0 0 0 1px #D4D9E2, 0 8px 32px rgba(0,0,0,.3)\",\n overflow: \"hidden\",\n position: \"absolute\",\n ...style,\n }}\n {...nativeProps}\n />\n)\n\nexport default Popup\n","import pcoUrl, * as PCO_URL from \"@planningcenter/url\"\nimport React from \"react\"\n\nimport { ColorAppIcon } from \"../color_app_icon\"\nimport getAppsSwitchProductPath from \"../get_apps_switch_product_path\"\nimport { App } from \"../interfaces\"\nimport { MonoAppName } from \"../mono_app_name\"\nimport * as AppSymbols from \"../mono_app_symbols\"\nimport { fontFamily } from \"../styles\"\nimport HoverableListItem from \"./hoverable_list_item\"\nimport Outsider from \"./outsider\"\nimport PopupRoot from \"./popover_root\"\nimport Popup from \"./popup\"\n\nconst AppsMenu = ({\n appName,\n apps,\n env,\n toggle,\n visible,\n}: {\n appName: string\n apps: App[]\n env: PCO_URL.Environment\n toggle: any\n visible: boolean\n}) => {\n const accountsProduct = apps.find(({ name }) => name === \"Accounts\")\n const homeProduct = apps.find(({ name }) => name === \"Home\")\n const restProducts = [...apps]\n .filter(({ name }) => name !== \"Home\" && name !== \"Accounts\")\n .sort((a, b) => a.name.localeCompare(b.name))\n\n const listItemProps = {\n ...fontFamily,\n alignItems: \"center\",\n display: \"flex\",\n height: \"48px\",\n overflow: \"hidden\",\n padding: \"0 16px\",\n verticalAlign: \"middle\",\n }\n\n return (\n <PopupRoot>\n <Popup\n cleanup={!visible}\n component={Outsider}\n onOutsideClick={toggle}\n style={{\n marginTop: \"8px\",\n ...(visible\n ? { opacity: 1, transition: \"none\", visibility: \"visible\" }\n : {\n opacity: 0,\n transition: \"all 120ms ease-in\",\n visibility: \"hidden\",\n }),\n }}\n >\n <menu\n data-pendo=\"app-switcher\"\n style={{ margin: 0, minWidth: 180, padding: 0 }}\n >\n {homeProduct && (\n <HoverableListItem\n component=\"a\"\n data-pendo={`app-switcher--change-app--${homeProduct.name}`}\n data-turbolinks={false}\n href={\n appName === homeProduct.name\n ? `${pcoUrl(env)(\"accounts\")}/apps/${appName}`\n : pcoUrl(env)(\"accounts\") +\n getAppsSwitchProductPath(homeProduct.name)\n }\n style={{ ...listItemProps, borderBottom: \"1px solid #ededed\" }}\n >\n <div style={{ marginRight: \"6px\" }}>\n <ColorAppIcon appName=\"Home\" size={20} />\n </div>\n <MonoAppName appName=\"Home\" color=\"#444\" size={18} />\n </HoverableListItem>\n )}\n {restProducts.map(({ name }, i) => {\n const isFirst = i === 0\n const isLast = i === restProducts.length - 1\n return (\n <HoverableListItem\n component=\"a\"\n data-pendo={`app-switcher--change-app--${name}`}\n data-turbolinks={false}\n href={\n name === appName\n ? `${pcoUrl(env)(\"accounts\")}/apps/${name.toLowerCase()}`\n : pcoUrl(env)(\"accounts\") + getAppsSwitchProductPath(name)\n }\n key={name}\n style={{\n ...listItemProps,\n height: \"40px\",\n paddingBottom: isLast ? \"4px\" : null,\n paddingTop: isFirst ? \"4px\" : null,\n }}\n >\n <div style={{ marginRight: \"6px\" }}>\n <ColorAppIcon appName={name.replace(/[\\s-]/, \"\")} size={20} />\n </div>\n <MonoAppName\n appName={name.replace(/[\\s-]/, \"\")}\n color=\"#444\"\n size={18}\n />\n </HoverableListItem>\n )\n })}\n {accountsProduct && (\n <HoverableListItem\n component=\"a\"\n data-pendo={`app-switcher--change-app--${accountsProduct.name}`}\n data-turbolinks={false}\n href={\n pcoUrl(env)(\"accounts\") +\n getAppsSwitchProductPath(accountsProduct.name)\n }\n style={{\n ...listItemProps,\n borderTop: \"1px solid #ededed\",\n padding: \"0 12px\",\n textDecoration: \"none\",\n }}\n >\n <svg\n height={22}\n style={{ display: \"block\", marginRight: \"2px\" }}\n viewBox=\"0 0 20 20\"\n width={22}\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n {React.createElement(AppSymbols[\"Accounts\"], {\n color: \"#9e9e9e\",\n key: \"key2\",\n })}\n </svg>\n <div\n style={{\n color: \"#737373\",\n fontSize: \"12px\",\n lineHeight: \"28px\",\n }}\n >\n Account settings\n </div>\n </HoverableListItem>\n )}\n </menu>\n </Popup>\n </PopupRoot>\n )\n}\n\nexport default AppsMenu\n","import { App, ConnectedPerson } from \"./interfaces\"\n\nconst sortByAttribute =\n (attr: string) =>\n (arr: any[]): any[] =>\n arr.slice().sort((a, b) => a[attr].localeCompare(b[attr]))\n\nexport const appsMenuFormatter = (apps: App[]): App[] =>\n sortByAttribute(\"name\")(apps).reduce(\n (acc, item) =>\n (item.name || \"\") === \"Church Center\" || (item.name || \"\") === \"API\"\n ? acc\n : item.name === \"Home\"\n ? [item, ...acc]\n : [...acc, item],\n []\n )\n\nexport const connectedPeopleMenuFormatter = (\n connectedPeople: ConnectedPerson[]\n): ConnectedPerson[] =>\n connectedPeople\n .slice()\n .sort((a, b) =>\n a.attributes[\"organization_name\"].localeCompare(\n b.attributes[\"organization_name\"]\n )\n )\n","import { useSyncExternalStore } from \"use-sync-external-store/shim\"\n\nimport store from \"../store\"\n\nconst useStore = <StoreShape = any,>(selector = (state: StoreShape) => state) =>\n useSyncExternalStore(store.subscribe, () => selector(store.getState())) as StoreShape\n\nexport default useStore\n","import React from \"react\"\n\nexport function StyledRoot({ children, style, ...nativeProps }): JSX.Element {\n return (\n <nav\n className=\"simple\"\n data-pendo=\"topbar\"\n aria-label=\"topbar-navigation\"\n style={{\n MozOsxFontSmoothing: \"grayscale\",\n WebkitFontSmoothing: \"antialiased\",\n alignItems: \"center\",\n color: \"white\",\n display: \"flex\",\n height: \"48px\",\n position: \"relative\",\n ...style,\n }}\n {...nativeProps}\n >\n <style>{`\n @media only print {\n .simple {\n display: none !important;\n }\n }\n `}</style>\n {children}\n </nav>\n )\n}\n","const colors = {\n danger43: \"hsl(8 60% 43%)\",\n danger45: \"hsl(8 60% 45%)\", // base\n danger47: \"hsl(8 60% 47%)\",\n danger93: \"hsl(9 59% 93%)\",\n danger97: \"hsl(7 60% 97%)\",\n darkNeutral07: \"hsl(0 0% 7%)\",\n darkNeutral12: \"hsl(0 0% 12%)\",\n darkNeutral15: \"hsl(0 0% 15%)\",\n darkNeutral17: \"hsl(0 0% 17%)\",\n darkNeutral19: \"hsl(0 0% 19%)\",\n darkNeutral24: \"hsl(0 0% 24%)\",\n darkNeutral32: \"hsl(0 0% 32%)\",\n darkNeutral50: \"hsl(0 0% 50%)\",\n darkNeutral68: \"hsl(0 0% 68%)\",\n darkNeutral88: \"hsl(0 0% 88%)\",\n darkNeutral98: \"hsl(0 0% 98%)\",\n home: { brand62: \"rgba(70, 126, 246, 1)\" },\n interaction45: \"hsl(221 75% 45%)\",\n interaction50: \"hsl(221 91% 50%)\",\n interaction55: \"hsl(221 91% 55%)\", // base\n interaction66: \"hsl(221 91% 66%)\", // controls\n interaction91: \"hsl(221 91% 91%)\",\n interaction93: \"hsl(221 91% 93%)\",\n lightNeutral12: \"hsl(0 0% 12%)\",\n lightNeutral24: \"hsl(0 0% 24%)\",\n lightNeutral45: \"hsl(0 0% 45%)\",\n lightNeutral62: \"hsl(0 0% 62%)\",\n lightNeutral81: \"hsl(0 0% 81%)\",\n lightNeutral88: \"hsl(0 0% 88%)\",\n lightNeutral93: \"hsl(0 0% 93%)\",\n lightNeutral95: \"hsl(0 0% 95%)\",\n lightNeutral97: \"hsl(0 0% 97%)\",\n lightNeutral98: \"hsl(0 0% 98%)\",\n lightNeutral100: \"hsl(0 0% 100%)\",\n success23: \"hsl(86 91% 23%)\",\n success25: \"hsl(86 91% 25%)\", // base\n success27: \"hsl(86 91% 27%)\",\n success91: \"hsl(95 50% 91%)\",\n success97: \"hsl(93 53% 97%)\",\n warning49: \"hsl(42 84% 49%)\",\n warning55: \"hsl(42 84% 55%)\", // base\n warning63: \"hsl(42 84% 63%)\",\n warning94: \"hsl(42 84% 94%)\",\n warning97: \"hsl(42 84% 97%)\",\n}\n\nexport default colors\n","import React from \"react\"\n\nconst PopupRoot = ({\n style = null,\n ...nativeProps\n}: {\n children?: React.ReactNode\n style?: object\n}) => (\n <div\n style={{\n alignSelf: \"flex-end\",\n display: \"flex\",\n position: \"relative\",\n ...style,\n }}\n {...nativeProps}\n />\n)\n\nexport default PopupRoot\n","import {\n Button,\n Divider,\n Icon,\n StackView,\n Text,\n ThemeProvider,\n} from \"@planningcenter/tapestry-react\"\nimport pcoUrl from \"@planningcenter/url\"\nimport * as PCO_URL from \"@planningcenter/url\"\nimport React from \"react\"\n\nimport { default as themeColors } from \"../colors\"\nimport HoverableListItem from \"../components/hoverable_list_item\"\nimport Outsider from \"../components/outsider\"\nimport Popup from \"../components/popup\"\nimport PopupRoot from \"../components/popup_root\"\nimport { connectedPeopleMenuFormatter } from \"../formatters\"\nimport { ConnectedPerson } from \"../interfaces\"\nimport { fontFamily, IEFlex1 } from \"../styles\"\n\ninterface UserMenuProps {\n appName: string\n connectedPeople: ConnectedPerson[]\n env: PCO_URL.Environment\n hasConnectedPeople: boolean\n requestClearAppsCache: any\n requestClearConnectedPeopleCache: any\n requestSwitchConnectedPerson: any\n requestUnlinkConnectedPeople: any\n setUserMenuVisible: Function\n userMenuVisible: boolean\n}\n\nexport const UserMenu = ({\n appName,\n connectedPeople,\n env,\n hasConnectedPeople,\n requestClearAppsCache,\n requestClearConnectedPeopleCache,\n requestSwitchConnectedPerson,\n requestUnlinkConnectedPeople,\n setUserMenuVisible,\n userMenuVisible,\n}: UserMenuProps) => {\n const logoutUrl = `${pcoUrl(env)(\"login\")}/logout`\n\n return (\n <PopupRoot>\n <Popup\n component={Outsider}\n onOutsideClick={() => setUserMenuVisible(false)}\n cleanup={!userMenuVisible}\n style={{\n color: \"#525252\",\n marginTop: \"8px\",\n maxHeight: \"75vh\",\n maxWidth: \"320px\",\n minWidth: \"242px\",\n overflow: \"auto\",\n right: 0,\n ...(userMenuVisible\n ? {\n opacity: 1,\n transition: \"none\",\n visibility: \"visible\",\n }\n : {\n opacity: 0,\n transition: \"all 120ms ease-in\",\n visibility: \"hidden\",\n }),\n cursor: \"default\",\n }}\n >\n <div>\n {hasConnectedPeople ? (\n <div\n style={{\n alignItems: \"center\",\n backgroundColor: \"#eee\",\n display: \"flex\",\n lineHeight: \"32px\",\n padding: \"0 16px\",\n }}\n >\n <div\n style={{\n ...IEFlex1,\n color: \"#666\",\n fontSize: \"12px\",\n textTransform: \"uppercase\",\n whiteSpace: \"nowrap\",\n ...fontFamily,\n }}\n >\n Linked Accounts\n </div>\n\n <div\n style={{\n ...IEFlex1,\n alignItems: \"center\",\n fontSize: \"12px\",\n textAlign: \"right\",\n }}\n >\n <a\n href=\"\"\n onClick={(e) => {\n requestClearAppsCache()\n requestClearConnectedPeopleCache()\n requestUnlinkConnectedPeople()\n e.preventDefault()\n }}\n style={{\n color: \"#666\",\n marginLeft: \"64px\",\n textDecoration: \"none\",\n ...fontFamily,\n }}\n >\n unlink\n </a>\n </div>\n </div>\n ) : (\n <noscript />\n )}\n\n <style>{`\n .NotSmallTopbar__connected-people-list > *:first-child > * { border-top-width: 0 !important }\n `}</style>\n <ul\n className=\"NotSmallTopbar__connected-people-list\"\n style={{ listStyleType: \"none\", margin: 0, padding: 0 }}\n >\n {connectedPeopleMenuFormatter(connectedPeople).map(\n ({ id, attributes: person }) => (\n <HoverableListItem component=\"li\" key={id}>\n <a\n href=\"\"\n onClick={(e) => {\n requestClearAppsCache()\n requestClearConnectedPeopleCache()\n requestSwitchConnectedPerson(id, `${appName}/`)\n e.preventDefault()\n }}\n style={{\n borderTop: \"1px solid #ddd\",\n color: \"#444\",\n display: \"block\",\n lineHeight: \"48px\",\n overflow: \"hidden\",\n paddingLeft: \"16px\",\n paddingRight: \"16px\",\n textDecoration: \"none\",\n textOverflow: \"ellipsis\",\n whiteSpace: \"nowrap\",\n ...fontFamily,\n }}\n >\n {person.organization_name}\n </a>\n </HoverableListItem>\n )\n )}\n </ul>\n </div>\n\n <ThemeProvider>\n {hasConnectedPeople && <Divider />}\n <form method=\"POST\" action={logoutUrl}>\n <Button\n data-turbolinks={false}\n hover={{ backgroundColor: themeColors.lightNeutral97 }}\n onClick={() => {\n requestClearAppsCache()\n requestClearConnectedPeopleCache()\n return\n }}\n style={{ padding: 0 }}\n theme={false}\n type=\"submit\"\n width=\"100%\"\n >\n <StackView\n distribution=\"space-between\"\n alignment=\"center\"\n axis=\"horizontal\"\n grow={1}\n paddingHorizontal={2}\n paddingVertical={1.5}\n spacing={4}\n >\n <Text color={themeColors.lightNeutral45} lineHeight=\"24px\">\n Log out\n </Text>\n <Icon\n name=\"general.intoBox\"\n fill={themeColors.lightNeutral45}\n />\n </StackView>\n </Button>\n </form>\n </ThemeProvider>\n </Popup>\n </PopupRoot>\n )\n}\n","import React from \"react\"\n\nimport { fontFamily } from \"../styles\"\n\nconst Hoverable = ({\n active = null,\n component: C = \"div\",\n hover = null,\n innerRef = null,\n style = null,\n ...nativeProps\n}: {\n active?: any\n children?: React.ReactNode\n component?: any\n hover?: any\n href?: string\n innerRef?: any\n onClick?: any\n style?: object\n type?: string\n}) => {\n const [down, setDown] = React.useState(false)\n const [entered, setEntered] = React.useState(false)\n\n return (\n <C\n onMouseDown={() => setDown(true)}\n onMouseEnter={() => setEntered(true)}\n onMouseLeave={() => setEntered(false)}\n onMouseUp={() => setDown(false)}\n style={{\n ...fontFamily,\n ...style,\n ...(entered && hover),\n ...(down && active),\n }}\n {...(innerRef && { ref: innerRef })}\n {...nativeProps}\n />\n )\n}\n\nexport default Hoverable\n","import React from \"react\"\n\nimport Hoverable from \"../components/hoverable\"\nimport { slightBackgroundTransition } from \"../styles\"\nimport { DisclosureChevronIcon } from \"../symbols\"\n\ninterface UserMenuTriggerProps {\n colors: any\n orgName: string\n requestConnectedPeopleFetch: any\n setUserMenuVisible: Function\n showOrgName: boolean\n}\n\nexport const UserMenuTrigger = ({\n colors,\n orgName,\n requestConnectedPeopleFetch,\n setUserMenuVisible,\n showOrgName,\n}: UserMenuTriggerProps) => {\n return (\n <div\n style={{\n cursor: \"pointer\",\n marginLeft: \"16px\",\n position: \"relative\",\n whiteSpace: \"nowrap\",\n }}\n data-pendo=\"topbar-org-switcher\"\n >\n <Hoverable\n component=\"button\"\n type=\"button\"\n style={{\n WebkitAppearance: \"none\",\n alignItems: \"center\",\n appearance: \"none\",\n backgroundColor: colors.base1,\n border: \"none\",\n borderRadius: \"9999px\",\n color: colors.text || \"#fff\",\n // TODO: #improve-outline-a11y\n cursor: \"pointer\",\n display: \"flex\",\n fontSize: \"13px\",\n lineHeight: \"32px\",\n outline: 0,\n padding: 0,\n ...slightBackgroundTransition,\n }}\n active={{ backgroundColor: colors.base3 }}\n hover={{ backgroundColor: colors.base2 }}\n onClick={() => {\n setUserMenuVisible((visible) => !visible)\n requestConnectedPeopleFetch()\n }}\n >\n <div style={{ marginLeft: 8 }} />\n\n {showOrgName ? (\n <div\n style={{\n fontSize: \"13px\",\n margin: \"0 8px 0 8px\",\n maxWidth: \"240px\",\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n whiteSpace: \"nowrap\",\n }}\n >\n {orgName}\n </div>\n ) : (\n <div style={{ margin: \"0 4px 0 4px\" }} />\n )}\n <div style={{ paddingRight: \"8px\" }}>\n <DisclosureChevronIcon colors={colors} style={{ margin: \"-3px\" }} />\n </div>\n </Hoverable>\n </div>\n )\n}\n","import React from \"react\"\n\nimport AppsButton from \"../components/apps_button\"\nimport AppsMenu from \"../components/apps_menu\"\nimport { appsMenuFormatter } from \"../formatters\"\nimport useStore from \"../hooks/use_store\"\nimport { SharedTopbarProps } from \"../interfaces\"\nimport { StyledRoot } from \"../styled_root\"\nimport { fontFamily, slightBackgroundTransition } from \"../styles\"\nimport { UserMenu } from \"./user_menu\"\nimport { UserMenuTrigger } from \"./user_menu_trigger\"\n\ninterface NotSmallTopbarProps {\n onLinkToProfileClick?: () => any\n search?: any\n showOrgName?: boolean\n}\n\nconst Topbar = (props: NotSmallTopbarProps & SharedTopbarProps) => {\n const [appsMenuVisible, setAppsMenuVisible] = React.useState(false)\n const [routesVisible, setRoutesVisible] = React.useState(true)\n const [userMenuVisible, setUserMenuVisible] = React.useState(false)\n const { hasConnectedPeople, notificationsEnabled } = useStore()\n\n return (\n <StyledRoot\n style={{\n paddingLeft: \"8px\",\n paddingRight: \"16px\",\n ...props.style,\n }}\n >\n <AppsMenu\n env={props.env}\n appName={props.appName}\n apps={appsMenuFormatter(props.apps)}\n visible={appsMenuVisible}\n toggle={() => setAppsMenuVisible((visible) => !visible)}\n />\n\n <AppsButton\n colors={props.colors}\n expanded={appsMenuVisible}\n onClick={() => {\n setAppsMenuVisible((visible) => !visible)\n props.requestAppsFetch()\n }}\n appName={props.appName}\n />\n\n <div style={{ margin: \"12px\" }} />\n\n {routesVisible && props.routes}\n\n <div style={{ margin: \"auto\" }} />\n\n {!notificationsEnabled && props.notifications()}\n\n {props.search({\n hideRoutes: () => setRoutesVisible(false),\n showRoutes: () => setRoutesVisible(true),\n })}\n\n <UserMenuTrigger\n colors={props.colors}\n orgName={props.orgName}\n requestConnectedPeopleFetch={props.requestConnectedPeopleFetch}\n setUserMenuVisible={setUserMenuVisible}\n showOrgName={props.showOrgName}\n />\n\n <UserMenu\n appName={props.appName}\n hasConnectedPeople={hasConnectedPeople}\n connectedPeople={props.connectedPeople}\n env={props.env}\n requestClearAppsCache={props.requestClearAppsCache}\n requestClearConnectedPeopleCache={\n props.requestClearConnectedPeopleCache\n }\n requestSwitchConnectedPerson={props.requestSwitchConnectedPerson}\n requestUnlinkConnectedPeople={props.requestUnlinkConnectedPeople}\n setUserMenuVisible={setUserMenuVisible}\n userMenuVisible={userMenuVisible}\n />\n </StyledRoot>\n )\n}\n\nTopbar.defaultProps = {\n notifications: () => null,\n search: () => null,\n showOrgName: true,\n useDummyNotifications: false,\n}\n\nconst Route = ({\n active,\n colors,\n style = null,\n ...nativeProps\n}: {\n active: boolean\n children: React.ReactNode\n colors: any\n href?: string\n style?: object\n}) => {\n const [entered, setEntered] = React.useState(false)\n const [down, setDown] = React.useState(false)\n\n const getBackgroundColor = () => {\n if (entered && down) return colors.base2\n if (entered || active) return colors.base1\n return \"transparent\"\n }\n\n const getTextColor = () => {\n return colors.text || \"#fff\"\n }\n\n return (\n <a\n style={{\n backgroundColor: getBackgroundColor(),\n borderRadius: \"9999px\",\n color: getTextColor(),\n fontSize: \"14px\",\n fontWeight: 600,\n lineHeight: \"32px\",\n marginRight: \"4px\", // off-grid\n paddingLeft: \"12px\",\n paddingRight: \"12px\",\n textDecoration: \"none\",\n textTransform: \"capitalize\",\n verticalAlign: \"middle\",\n whiteSpace: \"nowrap\",\n ...fontFamily,\n ...slightBackgroundTransition,\n ...style,\n }}\n onMouseEnter={() => setEntered(true)}\n onMouseLeave={() => setEntered(false)}\n onMouseDown={() => setDown(true)}\n onMouseUp={() => setDown(false)}\n {...nativeProps}\n />\n )\n}\n\nexport { Route, Topbar }\n","import pcURL, { Environment } from \"@planningcenter/url\"\nimport React from \"react\"\n\nimport apiRequest, { defaultFetch, Fetch } from \"./api_request\"\nimport { PointBreak } from \"./display_switch\"\nimport { X as XSymbol } from \"./symbols\"\n\nconst entries = function (obj) {\n const ownProps = Object.keys(obj)\n let i = ownProps.length\n const resArray = new Array(i) // preallocate the Array\n while (i--) resArray[i] = [ownProps[i], obj[ownProps[i]]]\n\n return resArray\n}\n\nfunction formatter(announcements) {\n return entries(announcements).map((entry) => ({\n data: entry[1],\n id: entry[0],\n }))\n}\n\nclass Provider extends React.Component<\n {\n children: (announcements: any, callback: any) => React.ReactElement<any>\n configuredFetch: Fetch\n env: Environment\n formatter?: any\n initialAnnouncements: object\n },\n {\n announcements: object[]\n }\n> {\n constructor(props: any) {\n super(props)\n\n this.state = {\n announcements: props.initialAnnouncements,\n }\n }\n\n public static defaultProps = {\n formatter: formatter,\n }\n\n dismissAnnouncements(id) {\n this.setState(({ announcements }) => {\n const newAnnouncements = announcements\n if (announcements[id]) delete newAnnouncements[id]\n\n return { announcements: newAnnouncements }\n })\n\n return apiRequest(\n this.props.configuredFetch,\n `${pcURL(this.props.env)(\n \"api\"\n )}/people/v2/me/platform_notifications/${id}/dismiss`,\n { method: \"POST\" }\n )\n }\n\n render() {\n return (\n <>\n {this.props.children(\n { announcements: this.props.formatter(this.state.announcements) },\n { dismissAnnouncements: this.dismissAnnouncements.bind(this) }\n )}\n </>\n )\n }\n}\n\nexport class StyledAnnouncement extends React.Component<\n { style?: object },\n {}\n> {\n render() {\n const { style, ...platformProps } = this.props\n\n return (\n <PointBreak\n render={(breakpoint) => (\n <div\n style={{\n alignItems: \"center\",\n display: \"flex\",\n justifyContent: \"space-between\",\n paddingBottom: 14,\n paddingLeft: [\"xs\", \"sm\"].indexOf(breakpoint) !== -1 ? 16 : 24,\n paddingRight: 18,\n paddingTop: 14,\n ...style,\n }}\n {...platformProps}\n />\n )}\n />\n )\n }\n}\n\nexport class StyleProvider extends React.Component<\n {\n className?: string\n colors: any\n style?: object\n },\n {}\n> {\n render() {\n const { children, className, colors, style, ...platformProps } = this.props\n\n return (\n <div\n className={[\"__Topbar_PlatformAnnouncements_link\"].join(\" \").trim()}\n style={{\n backgroundColor: \"#282828\",\n color: \"white\",\n fontSize: \"14px\",\n ...style,\n }}\n {...platformProps}\n >\n <style>{`\n .__Topbar_PlatformAnnouncements_link { color: white }\n .__Topbar_PlatformAnnouncements_link a { color: ${colors.base0} }\n .__Topbar_PlatformAnnouncements_link a:hover { color: ${colors.base1} }\n .__Topbar_PlatformAnnouncements_link a:active { color: ${colors.base2} }\n `}</style>\n {children}\n </div>\n )\n }\n}\n\nexport default class PlatformAnnouncements extends React.Component<\n {\n colors: any\n configuredFetch?: Fetch\n data: object\n env: Environment\n renderItem?: any\n },\n {}\n> {\n public static defaultProps = {\n configuredFetch: defaultFetch,\n renderItem: ({ announcement, actions }) => (\n <DissmissibleAnnouncement\n key={announcement.id}\n html={announcement.data.html}\n onClick={() => actions.dismissAnnouncements(announcement.id)}\n />\n ),\n }\n\n render() {\n return (\n <StyleProvider colors={this.props.colors}>\n <Provider\n env={this.props.env}\n initialAnnouncements={this.props.data}\n configuredFetch={this.props.configuredFetch}\n >\n {(data, actions) =>\n Boolean(data.announcements.length > 0) ? (\n <div>\n {data.announcements.map((announcement) =>\n this.props.renderItem({ actions, announcement })\n )}\n </div>\n ) : null\n }\n </Provider>\n </StyleProvider>\n )\n }\n}\n\nfunction StyledDismissButton({ ...props }: any): JSX.Element {\n return (\n <button\n type=\"button\"\n style={{\n WebkitAppearance: \"none\",\n backgroundColor: \"transparent\",\n borderWidth: 0,\n cursor: \"pointer\",\n\n margin: -8,\n // larger click target without increasing box\n padding: 8,\n }}\n {...props}\n >\n <XSymbol fill=\"white\" style={{ height: 20, width: 20 }} />\n </button>\n )\n}\n\nfunction DissmissibleAnnouncement(props: {\n html: string\n onClick: () => any\n}): JSX.Element {\n return (\n <StyledAnnouncement>\n <span\n dangerouslySetInnerHTML={{\n __html: props.html,\n }}\n />\n\n <StyledDismissButton onClick={props.onClick} />\n </StyledAnnouncement>\n )\n}\n","import React from \"react\"\n\nimport { PointBreak } from \"./display_switch\"\nimport { X as XSymbol } from \"./symbols\"\n\n/*\nProductAnnouncement:\nDisplays a dismissible product announcements when provided an `html` prop.\nRenders nothing when no `html` prop is falsy.\n\nWhen the dismiss button is clicked, ProductAnnouncement will immediately dissappear.\nPass an `onClick` prop to coordinate this dismissal with a server request that will prevent message from being passed to future page views.\n\nIt should look something like this in your application's Topbar composition:\n\n```jsx\n<ProductAnnouncement\n colors={shared.colors}\n html={this.props.productAnnouncement}\n onClick={() => alert(\"Sending fire-and-forget dismiss request to server\")}\n/>\n```\n\nAttributes like `className`, `id`, `data-*`, and `aria-*` are all applied to the root element.\n*/\n\nexport function ProductAnnouncement({\n colors,\n html = \"\",\n onClick = (_event) => {\n /* noop */\n },\n ...props\n}: {\n colors: object\n html: string\n onClick: (event: any) => any\n}) {\n const [dismissed, updateDismissed] = React.useState(false)\n\n return dismissed || !html ? null : (\n <StyleProvider colors={colors} {...props}>\n <StyledAnnouncement>\n <span dangerouslySetInnerHTML={{ __html: html }} />\n <StyledDismissButton\n onClick={(event) => {\n onClick(event)\n updateDismissed(true)\n }}\n />\n </StyledAnnouncement>\n </StyleProvider>\n )\n}\n\nexport class StyleProvider extends React.Component<\n {\n className?: string\n colors: any\n style?: object\n },\n {}\n> {\n render() {\n const { children, className, colors, style, ...platformProps } = this.props\n\n return (\n <div\n className={[\"Topbar_ProductAnnouncement\", className]\n .filter(Boolean)\n .join(\" \")\n .trim()}\n style={{\n backgroundColor: colors.base1,\n ...style,\n }}\n {...platformProps}\n >\n <style>{`\n .Topbar_ProductAnnouncement {\n color: white;\n font-size: 14px;\n }\n .Topbar_ProductAnnouncement a { color: white; font-weight: bold; }\n `}</style>\n {children}\n </div>\n )\n }\n}\n\nexport class StyledAnnouncement extends React.Component<\n { style?: object },\n {}\n> {\n render() {\n const { style, ...platformProps } = this.props\n\n return (\n <PointBreak\n render={(breakpoint) => (\n <div\n style={{\n alignItems: \"center\",\n boxSizing: \"border-box\",\n display: \"flex\",\n justifyContent: \"space-between\",\n paddingBottom: 14,\n paddingLeft: [\"xs\", \"sm\"].indexOf(breakpoint) !== -1 ? 16 : 24,\n paddingRight: 18,\n paddingTop: 14,\n ...style,\n }}\n {...platformProps}\n />\n )}\n />\n )\n }\n}\n\nexport function StyledDismissButton({ ...props }: any): JSX.Element {\n return (\n <button\n type=\"button\"\n style={{\n WebkitAppearance: \"none\",\n backgroundColor: \"transparent\",\n borderWidth: 0,\n cursor: \"pointer\",\n\n margin: -8,\n // larger click target without increasing box\n padding: 8,\n }}\n {...props}\n >\n <XSymbol fill=\"white\" style={{ height: 20, width: 20 }} />\n </button>\n )\n}\n","import pcoUrl, { Environment } from \"@planningcenter/url\"\nimport React from \"react\"\n\nexport function Avatar({\n env,\n url: incomingUrl = \"\",\n style,\n ...nativeProps\n}: {\n env: Environment\n style?: object\n url?: string\n}): JSX.Element {\n const url =\n incomingUrl || `${pcoUrl(env)(\"people\")}/static/no_photo_thumbnail_gray.svg`\n\n return (\n <div\n style={{\n backgroundColor: \"white\",\n backgroundImage: `url(${url})`,\n backgroundPosition: \"center\",\n backgroundSize: \"cover\",\n borderRadius: \"50%\",\n height: \"26px\",\n marginLeft: \"4px\",\n width: \"26px\",\n ...style,\n }}\n {...nativeProps}\n />\n )\n}\n","import React from \"react\"\n\nexport class ClientStorage extends React.Component<\n {\n item: string\n method?: \"localStorage\" | \"sessionStorage\"\n render: (apps: any, other: any) => React.ReactElement<any>\n },\n {}\n> {\n public static defaultProps = {\n method: \"localStorage\",\n }\n\n update(value) {\n window[this.props.method].setItem(this.props.item, JSON.stringify(value))\n return this.forceUpdate()\n }\n\n render() {\n return (\n <>\n {this.props.render(\n JSON.parse(window[this.props.method].getItem(this.props.item)) ||\n undefined,\n this.update.bind(this)\n )}\n </>\n )\n }\n}\n","import pcoUrl, { Environment } from \"@planningcenter/url\"\nimport React from \"react\"\n\nimport { default as themeColors } from \"../colors\"\nimport getAppsSwitchProductPath from \"../get_apps_switch_product_path\"\nimport * as AppSymbols from \"../mono_app_symbols\"\n\nexport function AccountSettingsLink({ env }: { env: Environment }) {\n const accountsName = \"accounts\"\n\n return (\n <a\n style={{\n alignItems: \"center\",\n display: \"flex\",\n height: \"48px\",\n paddingLeft: \"12px\",\n paddingRight: \"16px\",\n textDecoration: \"none\",\n }}\n data-pendo={`app-switcher--change-app--${accountsName}`}\n data-turbolinks={false}\n href={pcoUrl(env)(accountsName) + getAppsSwitchProductPath(accountsName)}\n >\n <svg\n height={22}\n style={{ display: \"block\", marginRight: \"2px\" }}\n viewBox=\"0 0 20 20\"\n width={22}\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n {React.createElement(AppSymbols[\"Accounts\"], {\n color: themeColors.lightNeutral45,\n key: \"key2\",\n })}\n </svg>\n <div\n style={{\n color: themeColors.lightNeutral45,\n fontSize: \"12px\",\n lineHeight: \"48px\",\n textDecoration: \"none\",\n }}\n >\n Account settings\n </div>\n </a>\n )\n}\n","import React from \"react\"\n\nimport { default as themeColors } from \"../colors\"\nimport { X } from \"../symbols\"\n\nexport const CloseMenuButton = ({\n color = themeColors.lightNeutral100,\n size = 22,\n style = {},\n}: {\n color?: string\n size?: number\n style?: object\n}) => (\n <div style={style}>\n <X fill={color} style={{ height: `${size}px`, width: `${size}px` }} />\n </div>\n)\n","import pcoUrl, { Environment } from \"@planningcenter/url\"\n\ntype props = {\n appName: string\n env: Environment\n userId: string\n}\n\nexport default function getLoginProfilePath({\n env,\n appName,\n userId,\n}: props): string {\n const basePath = pcoUrl(env)(\"login\") + `/people/AC${userId}`\n const pathname = window?.location?.pathname?.toString()\n\n if (!pathname) return basePath\n\n const params = new URLSearchParams()\n params.append(\"return\", `${appName}/${pathname}`)\n\n return `${basePath}?${params.toString()}`\n}\n","import React from \"react\"\n\ntype MFAStatusProps = {\n isActive: boolean\n}\n\nconst MFAStatus = ({ isActive }: MFAStatusProps) => {\n const statusColor = isActive ? \"hsl(86, 91%, 27%)\" : \"hsl(8, 60%, 47%)\"\n\n const displayStatusIcon = () =>\n isActive ? (\n <svg width=\"12\" height=\"12\" viewBox=\"0 0 16 16\" fill=\"none\">\n <path\n d=\"M12.588 5.31499H11.832V3.79999C11.8159 2.80798 11.4105 1.86207 10.7032 1.16625C9.99602 0.470436 9.04363 0.0804749 8.0515 0.0804749C7.05937 0.0804749 6.10698 0.470436 5.39976 1.16625C4.69253 1.86207 4.28713 2.80798 4.271 3.79999V5.31499H3.515C3.1138 5.31525 2.72906 5.47454 2.44508 5.75795C2.16111 6.04136 2.00106 6.42579 2 6.82699V14.388C2.00132 14.7891 2.16146 15.1734 2.44537 15.4567C2.72929 15.7401 3.11388 15.8995 3.515 15.9H12.588C12.9886 15.8987 13.3724 15.7389 13.6557 15.4557C13.939 15.1724 14.0987 14.7886 14.1 14.388V6.82699C14.0987 6.42639 13.939 6.04257 13.6557 5.7593C13.3724 5.47603 12.9886 5.31631 12.588 5.31499ZM8.051 12.115C7.75171 12.1152 7.45909 12.0266 7.21015 11.8605C6.96121 11.6944 6.76713 11.4581 6.65246 11.1817C6.53779 10.9052 6.50768 10.601 6.56595 10.3074C6.62422 10.0139 6.76824 9.74418 6.97979 9.53249C7.19135 9.32079 7.46094 9.17659 7.75446 9.11813C8.04798 9.05967 8.35225 9.08958 8.62877 9.20406C8.90529 9.31855 9.14165 9.51247 9.30794 9.7613C9.47424 10.0101 9.563 10.3027 9.563 10.602C9.56327 11.0036 9.40424 11.389 9.1208 11.6735C8.83736 11.9581 8.45264 12.1187 8.051 12.12V12.115ZM10.395 5.31499H5.707V3.79999C5.707 3.17832 5.95396 2.58211 6.39354 2.14253C6.83313 1.70294 7.42933 1.45599 8.051 1.45599C8.67267 1.45599 9.26887 1.70294 9.70846 2.14253C10.148 2.58211 10.395 3.17832 10.395 3.79999V5.31499Z\"\n fill={statusColor}\n />\n </svg>\n ) : (\n <svg width=\"12\" height=\"12\" viewBox=\"0 0 16 16\" fill=\"none\">\n <path\n d=\"M13.7,5.8a1.5,1.5,0,0,0-1.1-.4H5.7V3.8a2.34,2.34,0,0,1,.7-1.7,2.19,2.19,0,0,1,1.7-.7,2.34,2.34,0,0,1,1.7.7,2.67,2.67,0,0,1,.7,1.4h1.4a4.12,4.12,0,0,0-1.1-2.4A4.73,4.73,0,0,0,8.1.1,4,4,0,0,0,5.4,1.2,3.63,3.63,0,0,0,4.3,3.8V5.3H3.5a2.1,2.1,0,0,0-1.1.4A2.1,2.1,0,0,0,2,6.8v7.6a2.1,2.1,0,0,0,.4,1.1,1.5,1.5,0,0,0,1.1.4h9.1a2.1,2.1,0,0,0,1.1-.4,1.5,1.5,0,0,0,.4-1.1V6.8A1.53,1.53,0,0,0,13.7,5.8ZM9.1,11.7a1.5,1.5,0,0,1-1.1.4H8a1.14,1.14,0,0,1-.8-.3,4.35,4.35,0,0,1-.6-.7,2.77,2.77,0,0,1-.1-.9A3,3,0,0,1,7,9.5a1.23,1.23,0,0,1,.8-.4,1.41,1.41,0,0,1,.9.1,1.34,1.34,0,0,1,.7.6,1.14,1.14,0,0,1,.3.8A2.38,2.38,0,0,1,9.1,11.7Z\"\n fill={statusColor}\n />\n </svg>\n )\n\n return (\n <div\n style={{\n alignItems: \"center\",\n display: \"flex\",\n fontSize: \"13px\",\n marginBottom: 2,\n marginTop: 4,\n }}\n >\n {displayStatusIcon()}\n\n <span\n style={{\n color: \"#888\",\n marginLeft: 4,\n whiteSpace: \"nowrap\",\n }}\n >\n Two-step verification {isActive ? \"active\" : \"inactive\"}\n </span>\n </div>\n )\n}\n\nexport default MFAStatus\n","import * as churchCenter from \"@planningcenter/icons/paths/church-center\"\nimport * as general from \"@planningcenter/icons/paths/general\"\nimport * as people from \"@planningcenter/icons/paths/people\"\nimport * as toolbar from \"@planningcenter/icons/paths/toolbar\"\nimport { designSystem } from \"@planningcenter/tapestry-react\"\n\nconst { generateColorScale } = designSystem\n\nexport const topbarTheme = {\n colors: {\n ...generateColorScale({\n baseColor: \"#2266f7\",\n key: \"primary\",\n }),\n },\n icons: {\n churchCenter,\n general,\n people,\n toolbar,\n },\n id: \"topbar\",\n}\n","import {\n Button,\n HeadingUppercase,\n Link,\n List,\n StackView,\n Text,\n ThemeProvider,\n} from \"@planningcenter/tapestry-react\"\nimport pcoUrl, { Environment } from \"@planningcenter/url\"\nimport React from \"react\"\n\nimport { Avatar } from \"../avatar\"\nimport { default as themeColors } from \"../colors\"\nimport { connectedPeopleMenuFormatter } from \"../formatters\"\nimport getLoginProfilePath from \"../get_login_profile_path\"\nimport { ConnectedPerson } from \"../interfaces\"\nimport MFAStatus from \"../mfa_status\"\nimport { topbarTheme } from \"../theme\"\n\nexport function UserProfileMenu({\n appName,\n connectedPeople,\n env,\n hasConnectedPeople,\n linkToProfile,\n mfaConfigured,\n mfaEnabled,\n requestClearAppsCache,\n requestClearConnectedPeopleCache,\n requestSwitchConnectedPerson,\n requestUnlinkConnectedPeople,\n setUserMenuVisible,\n userAvatarPath,\n userId,\n userName,\n}: {\n appName: string\n connectedPeople: ConnectedPerson[]\n env: Environment\n hasConnectedPeople: boolean\n linkToProfile: boolean\n mfaConfigured: boolean\n mfaEnabled: boolean\n requestClearAppsCache: any\n requestClearConnectedPeopleCache: any\n requestSwitchConnectedPerson: any\n requestUnlinkConnectedPeople: any\n setUserMenuVisible: any\n userAvatarPath: string\n userId: string\n userName: string\n}) {\n return (\n <ThemeProvider theme={topbarTheme}>\n <StackView axis=\"vertical\" width=\"100%\">\n <StackView\n axis=\"horizontal\"\n alignItems=\"start\"\n distribution=\"space-between\"\n >\n <StackView\n axis=\"horizontal\"\n spacing={2}\n padding={2}\n paddingRight={0}\n shrink={1}\n >\n <StackView shrink={0}>\n <Avatar\n env={env}\n url={userAvatarPath}\n style={{ height: 48, width: 48 }}\n />\n </StackView>\n <StackView spacing={1} shrink={1}>\n <Text color={themeColors.lightNeutral24} weight={700} truncate>\n {userName}\n </Text>\n {linkToProfile && (\n <Link\n as=\"a\"\n href={`/people/AC${userId}`}\n color={themeColors.lightNeutral45}\n underline={false}\n >\n My profile\n </Link>\n )}\n {mfaEnabled && (\n <Link\n as=\"a\"\n href={getLoginProfilePath({\n appName: appName,\n env: env,\n userId: userId,\n })}\n color={themeColors.lightNeutral45}\n underline={false}\n >\n My login settings\n <MFAStatus isActive={mfaConfigured} />\n </Link>\n )}\n <form method=\"POST\" action={`${pcoUrl(env)(\"login\")}/logout`}>\n <Button\n color={themeColors.lightNeutral45}\n data-turbolinks={false}\n onClick={() => {\n requestClearAppsCache()\n requestClearConnectedPeopleCache()\n return\n }}\n type=\"submit\"\n >\n Log out\n </Button>\n </form>\n </StackView>\n </StackView>\n <Button\n color={themeColors.lightNeutral45}\n icon=\"general.x\"\n onClick={() => setUserMenuVisible(false)}\n padding={2}\n theme=\"naked\"\n title=\"Close Menu\"\n />\n </StackView>\n {hasConnectedPeople && (\n <>\n <StackView\n backgroundColor={themeColors.lightNeutral95}\n paddingVertical={1.5}\n paddingHorizontal={2}\n marginTop={1}\n borderBottom={`1px solid ${themeColors.lightNeutral88}`}\n >\n <HeadingUppercase\n color={themeColors.lightNeutral62}\n fontWeight={500}\n >\n Linked Accounts\n </HeadingUppercase>\n </StackView>\n\n <List dividerColor={themeColors.lightNeutral88} width=\"100%\">\n {connectedPeopleMenuFormatter(connectedPeople).map(\n ({ id, attributes: person }) => (\n <List.Item\n key={id}\n onClick={(e) => {\n requestClearAppsCache()\n requestClearConnectedPeopleCache()\n requestSwitchConnectedPerson(id, `${appName}/`)\n e.preventDefault()\n }}\n color={themeColors.lightNeutral45}\n padding={2}\n >\n <Text truncate>{person.organization_name}</Text>\n </List.Item>\n )\n )}\n <List.Item\n onClick={(e) => {\n requestClearAppsCache()\n requestClearConnectedPeopleCache()\n requestUnlinkConnectedPeople()\n e.preventDefault()\n }}\n color={themeColors.danger47}\n padding={2}\n underline={false}\n >\n <Text size={3}>Unlink my accounts</Text>\n </List.Item>\n </List>\n </>\n )}\n </StackView>\n </ThemeProvider>\n )\n}\n","import pcoUrl from \"@planningcenter/url\"\nimport React from \"react\"\n\nimport { Avatar } from \"../avatar\"\nimport { ClientStorage as LocalStorageProvider } from \"../client_storage\"\nimport { ColorAppIcon } from \"../color_app_icon\"\nimport { default as themeColors } from \"../colors\"\nimport { appsMenuFormatter } from \"../formatters\"\nimport getAppsSwitchProductPath from \"../get_apps_switch_product_path\"\nimport useStore from \"../hooks/use_store\"\nimport { SharedTopbarProps } from \"../interfaces\"\nimport { MonoAppIcon } from \"../mono_app_icon\"\nimport { MonoAppName } from \"../mono_app_name\"\nimport { StyledRoot } from \"../styled_root\"\nimport { fontFamily, IEFlex1 } from \"../styles\"\nimport { DisclosureChevronIcon } from \"../symbols\"\nimport { Unbutton } from \"../unbutton\"\nimport { capitalize, HSLtoHSLA } from \"../utils\"\nimport { AccountSettingsLink } from \"./account_settings_link\"\nimport { CloseMenuButton } from \"./close_menu_button\"\nimport { UserProfileMenu } from \"./user_profile_menu\"\n\nconst MENU_GUTTER = 57\nconst NAVBAR_HEIGHT = 52\n\nconst UserMenuAppLockup = ({\n appName: originalAppName,\n}: {\n appName: string\n}) => {\n const appName = originalAppName.replace(/[\\s-]/, \"\")\n\n return (\n <div style={{ alignItems: \"center\", display: \"flex\" }}>\n <div style={{ marginRight: \"6px\" }}>\n <ColorAppIcon appName={appName} size={20} />\n </div>\n <MonoAppName\n appName={appName}\n color={themeColors.lightNeutral24}\n size={18}\n />\n </div>\n )\n}\n\ninterface SmallTopbarProps {\n currentRouteComponent?: any\n}\n\ninterface PropagateableEvent {\n forcePropagation: Boolean\n}\n\nconst Topbar = (props: SharedTopbarProps & SmallTopbarProps) => {\n const [routesMenuVisible, setRoutesMenuVisible] = React.useState(false)\n const [productSwitcherVisible, setProductSwitcherVisible] =\n React.useState(false)\n const [userMenuVisible, setUserMenuVisible] = React.useState(false)\n const { hasConnectedPeople, mfaConfigured, mfaEnabled, userId } = useStore()\n\n const appColors = props.colors\n\n const activeRoute =\n props.routes.filter(({ props: { active } }) => active) || []\n\n const CurrentRouteComponent = props.currentRouteComponent\n const currentRouteText =\n (activeRoute &&\n activeRoute[0] &&\n activeRoute[0].props &&\n activeRoute[0].props.children) ||\n props.appName\n\n const accountsProduct = props.apps.find(({ name }) => name === \"Accounts\")\n\n const homeProduct = props.apps.find(({ name }) => name === \"Home\")\n\n const restProducts = [...props.apps].filter(\n ({ name }) => name !== \"Home\" && name !== \"Accounts\"\n )\n\n const borderColor = themeColors.lightNeutral88\n\n return (\n <StyledRoot style={{ ...props.style }}>\n <div\n style={{\n alignItems: \"center\",\n display: \"flex\",\n height: \"48px\",\n justifyContent: \"center\",\n paddingLeft: \"16px\",\n paddingRight: \"16px\",\n }}\n onClick={() => {\n props.requestAppsFetch()\n props.requestConnectedPeopleFetch()\n\n setRoutesMenuVisible(false)\n setProductSwitcherVisible((visible) => !visible)\n }}\n >\n <MonoAppIcon\n appName={props.appName.replace(/[\\s-]/, \"\")}\n colors={appColors}\n size={26}\n />\n </div>\n <div\n style={{\n left: 0,\n position: \"absolute\",\n top: \"48px\",\n width: \"100%\",\n }}\n >\n {routesMenuVisible && props.routes}\n </div>\n <LocalStorageProvider\n item=\"Topbar:Small:Menus:Products:visibility\"\n render={() => (\n <div\n style={{\n MozUserSelect: \"none\",\n WebkitTapHighlightColor: \"transparent\",\n WebkitUserSelect: \"none\",\n backgroundColor: HSLtoHSLA(themeColors.lightNeutral12, 0.75),\n bottom: 0,\n color: \"black\",\n display: productSwitcherVisible ? \"block\" : \"none\",\n left: 0,\n msUserSelect: \"none\",\n position: \"fixed\",\n right: 0,\n top: 0,\n userSelect: \"none\",\n }}\n onClick={() => {\n setProductSwitcherVisible((visible) => !visible)\n setUserMenuVisible(false)\n }}\n >\n <CloseMenuButton\n style={{\n position: \"absolute\",\n right: \"17px\",\n top: \"12px\",\n }}\n />\n <div\n onClick={(e) => {\n const { forcePropagation } = e as unknown as PropagateableEvent\n if (!forcePropagation) {\n e.stopPropagation()\n }\n }}\n style={{\n backgroundColor: themeColors.lightNeutral100,\n borderRight: `1px solid ${borderColor}`,\n display: \"flex\",\n flexDirection: \"column\",\n height: `calc(100% - ${NAVBAR_HEIGHT}px - env(safe-area-inset-bottom))`,\n position: \"relative\",\n width: `calc(100% - ${MENU_GUTTER}px)`,\n }}\n >\n <div\n style={{\n alignItems: \"center\",\n backgroundColor: themeColors.lightNeutral98,\n borderBottom: `1px solid ${borderColor}`,\n display: \"flex\",\n height: \"48px\",\n paddingLeft: \"16px\",\n paddingRight: \"16px\",\n }}\n >\n <div style={{ ...IEFlex1 }}>\n <a\n style={{\n alignItems: \"center\",\n display: \"flex\",\n height: \"48px\",\n paddingRight: \"16px\",\n }}\n data-pendo={`app-switcher--change-app--${homeProduct?.name}`}\n data-turbolinks={false}\n href={\n homeProduct\n ? pcoUrl(props.env)(\"accounts\") +\n getAppsSwitchProductPath(homeProduct?.name)\n : undefined\n }\n >\n <div style={{ alignItems: \"center\", display: \"flex\" }}>\n <UserMenuAppLockup\n appName={homeProduct ? homeProduct.name : props.appName}\n />\n </div>\n </a>\n </div>\n </div>\n\n <div\n style={{\n ...IEFlex1,\n WebkitOverflowScrolling: \"touch\",\n overflowY: \"scroll\",\n }}\n >\n <ul data-pendo=\"app-switcher\" style={{ margin: 0, padding: 0 }}>\n {appsMenuFormatter(restProducts).map(({ name }, i) => {\n const isFirst = i === 0\n const isLast =\n i === appsMenuFormatter(restProducts).length - 1\n return (\n <li key={name} style={{ listStyleType: \"none\" }}>\n <a\n style={{\n alignItems: \"center\",\n display: \"flex\",\n height: \"40px\",\n paddingBottom: isLast ? \"4px\" : 0,\n paddingLeft: \"16px\",\n paddingRight: \"16px\",\n paddingTop: isFirst ? \"4px\" : 0,\n }}\n data-pendo={`app-switcher--change-app--${name}`}\n data-turbolinks={false}\n href={\n pcoUrl(props.env)(\"accounts\") +\n getAppsSwitchProductPath(name)\n }\n >\n <UserMenuAppLockup appName={name} />\n </a>\n </li>\n )\n })}\n </ul>\n\n {accountsProduct && (\n <div\n style={{\n borderTop: `1px solid ${borderColor}`,\n }}\n >\n <AccountSettingsLink env={props.env} />\n </div>\n )}\n </div>\n\n <div\n style={{\n borderTop: `1px solid ${borderColor}`,\n display: \"flex\",\n flexDirection: \"row\",\n lineHeight: \"48px\",\n textAlign: \"center\",\n }}\n >\n <div style={{ ...IEFlex1 }}>\n <Unbutton\n style={{\n color: themeColors.lightNeutral24,\n fontSize: \"15px\",\n fontWeight: 600,\n }}\n onClick={(e) => {\n e.forcePropagation = true\n }}\n id=\"jsLaunchHelpdesk\"\n >\n Help\n </Unbutton>\n </div>\n </div>\n </div>\n </div>\n )}\n />\n <div\n style={{\n ...IEFlex1,\n fontWeight: 600,\n lineHeight: \"48px\",\n textAlign: \"center\",\n }}\n onClick={\n props.routes.length > 0\n ? () => {\n setProductSwitcherVisible(false)\n setRoutesMenuVisible((visible) => !visible)\n }\n : null\n }\n >\n <CurrentRouteComponent>\n {capitalize(currentRouteText)}\n </CurrentRouteComponent>\n {props.routes.length > 0 && (\n <DisclosureChevronIcon\n colors={appColors}\n style={{ marginLeft: \"4px\", verticalAlign: \"middle\" }}\n />\n )}\n </div>\n\n <button\n onClick={() => setUserMenuVisible(!userMenuVisible)}\n style={{\n background: \"none\",\n border: \"none\",\n margin: \"0 12px\",\n padding: 0,\n }}\n >\n <Avatar env={props.env} url={props.userAvatarPath} />\n </button>\n\n <div\n style={{\n MozUserSelect: \"none\",\n WebkitTapHighlightColor: \"transparent\",\n WebkitUserSelect: \"none\",\n bottom: 0,\n color: \"black\",\n display: userMenuVisible ? \"block\" : \"none\",\n left: 0,\n msUserSelect: \"none\",\n position: \"fixed\",\n right: 0,\n top: 0,\n userSelect: \"none\",\n }}\n >\n <div\n onClick={(e) => e.stopPropagation()}\n style={{\n WebkitOverflowScrolling: \"touch\",\n backgroundColor: \"#fff\",\n display: \"flex\",\n flexDirection: \"column\",\n height: \"100%\",\n overflowY: \"scroll\",\n position: \"relative\",\n width: \"100%\",\n }}\n >\n <UserProfileMenu\n appName={props.appName}\n env={props.env}\n connectedPeople={props.connectedPeople}\n hasConnectedPeople={hasConnectedPeople}\n linkToProfile={props.linkToProfile}\n mfaConfigured={mfaConfigured}\n mfaEnabled={mfaEnabled}\n requestClearAppsCache={props.requestClearAppsCache}\n requestClearConnectedPeopleCache={\n props.requestClearConnectedPeopleCache\n }\n requestSwitchConnectedPerson={props.requestSwitchConnectedPerson}\n requestUnlinkConnectedPeople={props.requestUnlinkConnectedPeople}\n setUserMenuVisible={setUserMenuVisible}\n userAvatarPath={props.userAvatarPath}\n userId={userId}\n userName={props.userName}\n />\n </div>\n </div>\n </StyledRoot>\n )\n}\n\nTopbar.defaultProps = {\n currentRouteComponent: (props) => <span {...props} />,\n linkToProfile: true,\n}\n\nconst Route = ({ active, ...props }) => (\n <a\n style={{\n backgroundColor: \"#444\",\n borderBottom: \"1px solid #333\",\n color: \"#fff\",\n display: \"block\",\n fontWeight: 600,\n lineHeight: \"47px\",\n position: \"relative\",\n textAlign: \"center\",\n textDecoration: \"none\",\n textTransform: \"capitalize\",\n whiteSpace: \"nowrap\",\n ...fontFamily,\n ...(active && { backgroundColor: \"#333\" }),\n }}\n {...props}\n />\n)\n\nexport { Route, Topbar }\n","import { StackView } from \"@planningcenter/tapestry-react\"\nimport React from \"react\"\n\ntype DrawerProps = {\n bottom?: number | string\n children: React.ReactNode\n hasShadow?: boolean\n height?: number | string\n id?: string\n overflow?: \"auto\" | \"hidden\" | \"scroll\" | \"visible\"\n position?: \"absolute\" | \"fixed\"\n width?: number | string\n}\n\nexport function Drawer({\n bottom = \"auto\",\n children,\n hasShadow = false,\n height = \"100%\",\n id = \"toolbarDrawer\",\n overflow = \"visible\",\n position = \"absolute\",\n width = \"100%\",\n}: DrawerProps) {\n return (\n <StackView\n backgroundColor=\"surface\"\n elevation={hasShadow && open ? 2 : undefined}\n left={0}\n position=\"absolute\"\n zIndex={1}\n {...{ bottom, height, id, overflow, position, width }}\n >\n {children}\n </StackView>\n )\n}\n","import { Box, Button, StackView } from \"@planningcenter/tapestry-react\"\nimport React from \"react\"\n\nimport { default as themeColors } from \"../../colors\"\n\ninterface DrawerHeaderProps {\n children: React.ReactNode\n closeDrawer?: Function\n}\n\nexport function DrawerHeader({ children, closeDrawer }: DrawerHeaderProps) {\n return (\n <StackView\n alignment=\"start\"\n axis=\"horizontal\"\n color=\"foreground\"\n distribution=\"space-between\"\n padding={2}\n paddingTop={1}\n >\n <Box>{children}</Box>\n {closeDrawer && (\n <Button\n icon={{\n fill: themeColors.lightNeutral24,\n name: \"general.x\",\n size: \"md\",\n }}\n onClick={() => closeDrawer()}\n title=\"Close\"\n theme={false}\n hover={{\n backgroundColor: themeColors.lightNeutral95,\n }}\n />\n )}\n </StackView>\n )\n}\n","import { Heading } from \"@planningcenter/tapestry-react\"\nimport React from \"react\"\n\nexport function DrawerHeading({ children, ...props }) {\n return (\n <Heading\n {...props}\n letterSpacing=\".002em\"\n level={2}\n lineHeight=\"35px\"\n weight={700}\n >\n {children}\n </Heading>\n )\n}\n","import { Box, StackView, StackViewProps } from \"@planningcenter/tapestry-react\"\nimport React, { useEffect, useRef, useState } from \"react\"\n\n// TODO: This component could prob be genrealized to provide overflow-y scroll indication, as well, if needed.\n// `top`/`bottom` // `left`/`right` → `start`/`end`\n\nconst INDICATOR_STYLES = {\n bottom: {\n background: \"linear-gradient(rgba(0, 0, 0, 0.07), rgba(255, 255, 255, 0))\",\n top: 0,\n },\n top: {\n background: \"linear-gradient(rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.07))\",\n bottom: 0,\n },\n}\n\ntype OmittedStackViewProps = Omit<\n StackViewProps,\n \"innerRef\" | \"overflow\" | \"spacing\"\n // `spacing` will cause the appearance of extra top & bottom padding\n // it's preferable to wrap the children in a StackView with the desired spacing\n>\n\ninterface ScrollContainerProps extends OmittedStackViewProps {\n children: React.ReactNode\n}\n\n// Perf: should this component be memoized?\nexport const ScrollContainer: React.FC<ScrollContainerProps> = ({\n children,\n ...props\n}) => {\n const [overflowTop, setOverflowTop] = useState(false)\n const [overflowBottom, setOverflowBottom] = useState(false)\n\n const containerRef = useRef(null)\n const bottomEdgeRef = useRef(null)\n const topEdgeRef = useRef(null)\n\n // Perf: should this be debounced?\n const handleResize = () => {\n const container = containerRef?.current\n\n if (container) {\n const hasOverflowBottom =\n container.scrollHeight - container.clientHeight >\n container.scrollTop + 1\n\n setOverflowBottom(hasOverflowBottom)\n }\n }\n\n useEffect(() => {\n const container = containerRef?.current\n\n if (!container) {\n return () => {} // noop\n }\n\n setOverflowBottom(container.scrollHeight > container.clientHeight)\n\n // setup intersection observers\n const options = { root: container, threshold: 1 }\n const bottomObserver = new IntersectionObserver(\n ([{ isIntersecting }]) => setOverflowBottom(!isIntersecting),\n options\n )\n const topObserver = new IntersectionObserver(\n ([{ isIntersecting }]) => setOverflowTop(!isIntersecting),\n options\n )\n\n const bottomTarget = bottomEdgeRef?.current\n const topTarget = topEdgeRef?.current\n\n if (bottomTarget) {\n bottomObserver.observe(bottomTarget)\n }\n if (topTarget) {\n topObserver.observe(topTarget)\n }\n\n // setup resize observer\n const resizeObserver = new ResizeObserver(handleResize)\n resizeObserver.observe(container)\n\n return () => {\n if (bottomTarget) {\n bottomObserver.unobserve(bottomTarget)\n }\n if (topTarget) {\n topObserver.unobserve(topTarget)\n }\n resizeObserver.unobserve(container)\n }\n }, [])\n\n return (\n <StackView grow={1} position=\"relative\" shrink={1}>\n {overflowBottom && <OverflowIndicator edge=\"top\" />}\n {overflowTop && <OverflowIndicator edge=\"bottom\" />}\n <StackView\n basis={2}\n grow={1}\n innerRef={containerRef}\n overflow=\"auto\"\n role=\"region\"\n shrink={1}\n {...props}\n >\n <Box innerRef={topEdgeRef} />\n {children}\n <Box innerRef={bottomEdgeRef} />\n </StackView>\n </StackView>\n )\n}\n\nconst OverflowIndicator = ({ edge }) => {\n return (\n <Box\n height={1}\n left={0}\n pointerEvents=\"none\"\n position=\"absolute\"\n right={0}\n role=\"presentation\"\n zIndex={10}\n {...INDICATOR_STYLES[edge]}\n />\n )\n}\n","import * as React from \"react\"\n\nenum ActionType {\n close = \"close\",\n mount = \"mount\",\n open = \"open\",\n set = \"set\",\n unmount = \"unmount\",\n}\n\ntype ToolbarState = {\n currentContent: any // TODO: update with Tool type\n mounted: boolean\n open: boolean\n}\n\ntype ToolbarDispatch = {\n payload?: any\n type: ActionType\n}\n\nconst initialState: ToolbarState = {\n currentContent: null,\n mounted: false,\n open: false,\n}\n\nconst reducer = (\n state: ToolbarState,\n action: ToolbarDispatch\n): ToolbarState => {\n switch (action.type) {\n case ActionType.mount:\n return { ...state, currentContent: action.payload.content, mounted: true }\n case ActionType.unmount:\n return { ...state, currentContent: null, mounted: false }\n case ActionType.open:\n return { ...state, open: true }\n case ActionType.close:\n return { ...state, open: false }\n case ActionType.set:\n return { ...state, currentContent: action.payload.content }\n }\n}\n\nconst useToolbarReducer = (overrides?: Partial<ToolbarState>) =>\n React.useReducer(reducer, { ...initialState, ...overrides })\n\nexport { ActionType, useToolbarReducer }\n","import { StackView } from \"@planningcenter/tapestry-react\"\nimport React, { ReactNode } from \"react\"\n\ninterface SwitchViewProps {\n activeIndex: number\n children: ReactNode\n}\n\nconst SwitchView: React.FC<SwitchViewProps> = ({ activeIndex, children }) => {\n const childCount = React.Children.count(children)\n\n const validatedIndex =\n activeIndex < 0\n ? 0\n : activeIndex > childCount - 1\n ? childCount - 1\n : activeIndex\n\n return (\n <StackView grow={1} overflow=\"hidden\" position=\"relative\">\n {React.Children.map(children, (view, index) => {\n const inView = index === validatedIndex\n return (\n <StackView\n aria-hidden={!inView}\n height=\"100%\"\n key={index}\n opacity={inView ? 1 : 0}\n pointerEvents={inView ? \"auto\" : \"none\"}\n position=\"absolute\"\n top={0}\n width=\"100%\"\n transform={\n inView\n ? \"translateX(0)\"\n : index < activeIndex\n ? \"translateX(-100px)\"\n : \"translateX(100px)\"\n }\n transition=\"transform 200ms ease-in-out, opacity 100ms 50ms ease-in-out\"\n >\n {view}\n </StackView>\n )\n })}\n </StackView>\n )\n}\n\nexport { SwitchView }\n","import React, { ReactNode } from \"react\"\n\ntype MessagesContextValue = {\n [key: string]: any\n}\n\ninterface MessagesProviderProps {\n children: ReactNode\n value?: MessagesContextValue\n}\n\nconst MessagesContext = React.createContext<MessagesContextValue>({})\n\nconst MessagesProvider: React.FC<MessagesProviderProps> = ({\n children,\n value,\n}) => {\n return (\n <MessagesContext.Provider value={value}>\n {children}\n </MessagesContext.Provider>\n )\n}\n\nexport { MessagesContext, MessagesProvider }\n","import { useContext } from \"react\"\n\nimport { MessagesContext } from \"../messages_context\"\n\nexport const useMessages = () => {\n const context = useContext(MessagesContext)\n if (!context) {\n throw new Error(\"useMessages must be used within a MessagesProvider\")\n }\n return context\n}\n","import { Icon, StackView, Text } from \"@planningcenter/tapestry-react\"\nimport React from \"react\"\n\nexport const LoadingErrorIndicator = () => (\n <StackView alignment=\"center\" spacing={2} padding={2} paddingTop=\"10%\">\n <Icon name=\"general.exclamationTriangle\" color=\"warning\" size=\"xl\" />\n <Text color=\"foregroundSecondary\" align=\"center\">\n An error occured while connecting to the chat, please try again.\n </Text>\n </StackView>\n)\n","import { Button, Divider, StackView } from \"@planningcenter/tapestry-react\"\nimport React, { isValidElement, PropsWithChildren, ReactNode } from \"react\"\nimport { ChannelListMessengerProps } from \"stream-chat-react\"\n\nimport colors from \"../../../../../colors\"\nimport { ScrollContainer } from \"../../../../components\"\nimport { useMessages } from \"../../hooks\"\nimport { LoadingErrorIndicator } from \"./loading_error_indicator\"\n\nexport const List = (props: PropsWithChildren<ChannelListMessengerProps>) => {\n const { children, error = null, loading } = props\n const { switchToNewMessageView } = useMessages()\n\n if (error) return <LoadingErrorIndicator />\n\n // The `loading` prop is initially false, which causes the default Stream loading indicator\n // to flash on screen for a split second. This is a hack to prevent that.\n let preLoading = false\n React.Children.map(children, (child: ReactNode) => {\n if (isValidElement(child) && child.props.listType === \"channel\") {\n preLoading = true\n }\n })\n\n if (loading || preLoading) return null\n\n return (\n <StackView grow={1} shrink={1}>\n <ScrollContainer>{children}</ScrollContainer>\n <Divider />\n <StackView paddingVertical={2} alignment=\"center\">\n <Button\n aria-label=\"Switch to new message\"\n backgroundColor={colors.interaction55}\n color=\"surface\"\n css={{\n \"&:hover, &:active\": {\n backgroundColor: colors.interaction55,\n },\n }}\n onClick={switchToNewMessageView}\n width=\"75%\"\n >\n New message\n </Button>\n </StackView>\n </StackView>\n )\n}\n","import datetimeFmt from \"@churchcenter/datetime-fmt\"\nimport {\n Badge,\n Box,\n Dropdown,\n GridView,\n Heading,\n StackView,\n Text,\n} from \"@planningcenter/tapestry-react\"\nimport React from \"react\"\n\nimport colors from \"../../../../../colors\"\nimport { useMessages } from \"../../hooks\"\n\nconst getTimeStamp = (channel) =>\n channel.state.last_message_at\n ? datetimeFmt.date(channel.state.last_message_at, {\n style: \"abbreviated\",\n year: false,\n })\n : \"\"\n\nconst UnreadBadge = ({ unread }) => {\n if (unread < 1) return null\n\n const clampedValue = unread <= 99 ? unread.toString() : \"99+\"\n\n return (\n <Badge\n title={clampedValue}\n size=\"xs\"\n color={colors.interaction66}\n radius=\"pill\"\n minWidth={3}\n />\n )\n}\n\nexport const Preview = ({\n Avatar,\n channel,\n displayTitle,\n latestMessage,\n setActiveChannel,\n unread,\n}) => {\n const {\n setActionsOpenForChannel,\n actionsOpenForChannel,\n switchToChannelView,\n } = useMessages()\n const channelActionsOpen = actionsOpenForChannel === channel.id\n const latestMessageText = latestMessage?.props?.children || \"\"\n\n const handleChannelClick = (\n e: React.MouseEvent<HTMLDivElement> | React.KeyboardEvent<HTMLDivElement>\n ) => {\n const target = e.target as HTMLElement\n if (target.getAttribute(\"data-type\") !== \"actions-dropdown\") {\n setActiveChannel(channel)\n switchToChannelView()\n }\n }\n\n const handleChannelKeyDown = (event: React.KeyboardEvent<HTMLDivElement>) => {\n if (event.key === \"Enter\" || event.key === \" \") {\n handleChannelClick(event)\n }\n }\n\n return (\n <GridView\n alignment=\"start\"\n aria-label={`Select Channel: ${displayTitle || \"\"}`}\n backgroundColor={channelActionsOpen ? \"surfaceTertiary\" : \"surface\"}\n borderBottomColor=\"separatorTertiary\"\n borderBottomWidth={1}\n columns=\"auto 1fr auto\"\n cursor=\"pointer\"\n css={{\n \"&:hover\": {\n \".actions-dropdown\": { visibility: \"visible\" },\n backgroundColor: \"surfaceTertiary\",\n },\n }}\n minHeight={10}\n onClick={handleChannelClick}\n onKeyDown={handleChannelKeyDown}\n padding={1}\n paddingHorizontal={2}\n radius={0}\n role=\"button\"\n spacing={1}\n tabIndex={0}\n width=\"100%\"\n >\n <Avatar />\n <StackView height=\"100%\" alignment=\"start\" paddingRight={1}>\n <Heading level={5} maxWidth=\"100%\" truncate weight={500}>\n {displayTitle}\n </Heading>\n <Text\n color=\"foregroundSecondary\"\n css={{\n WebkitBoxOrient: \"vertical\",\n WebkitLineClamp: \"2\",\n display: \"-webkit-box\",\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n }}\n lineHeight=\"1.3\"\n maxWidth=\"100%\"\n size={5}\n textAlign=\"left\"\n >\n {latestMessageText}\n </Text>\n <StackView basis={0.5} grow={1} />\n <StackView\n alignment=\"center\"\n axis=\"horizontal\"\n borderColor=\"separatorTertiary\"\n borderWidth={1}\n padding={0.5}\n radius={4}\n spacing={0.5}\n >\n {/* Product icon placeholder */}\n <Box\n backgroundColor=\"green-5\"\n height=\"13px\"\n radius={5}\n width=\"13px\"\n />\n <Text\n color=\"foregroundSecondary\"\n lineHeight=\"13px\"\n size={6}\n textTransform=\"uppercase\"\n >\n Resource date\n </Text>\n </StackView>\n </StackView>\n <StackView alignment=\"end\" minWidth={6} height=\"100%\">\n <Text color=\"foregroundSecondary\" size={5} textTransform=\"uppercase\">\n {getTimeStamp(channel)}\n </Text>\n <StackView alignment=\"end\" alignSelf=\"stretch\" grow={1}>\n <UnreadBadge unread={unread} />\n </StackView>\n <Box onClick={(e) => e.stopPropagation()}>\n <Dropdown\n alignSelf=\"end\"\n className=\"actions-dropdown\"\n data-type=\"actions-dropdown\"\n icon={{\n name: \"people.importProgress\",\n size: \"lg\",\n }}\n radius=\"circle\"\n iconRight={false}\n lockScrollWhileOpen={true}\n onClose={() => setActionsOpenForChannel(null)}\n onOpen={() => setActionsOpenForChannel(channel.id)}\n placement=\"top-end\"\n popoverProps={{ offset: 4, shouldFlip: true }}\n right=\"1.5px\"\n size=\"xs\"\n theme=\"dark\"\n title=\"Message actions\"\n variant=\"naked\"\n visibility={channelActionsOpen ? \"visible\" : \"hidden\"}\n >\n {/* @ts-expect-error TODO: Tapestry TS bug */}\n <Dropdown.Item onSelect={() => {}}>Mark as unread</Dropdown.Item>\n {/* @ts-expect-error TODO: Tapestry TS bug */}\n <Dropdown.Item onSelect={() => {}}>Mute</Dropdown.Item>\n </Dropdown>\n </Box>\n </StackView>\n </GridView>\n )\n}\n","import { Spinner, StackView } from \"@planningcenter/tapestry-react\"\nimport React from \"react\"\nimport { ChannelList, InfiniteScroll } from \"stream-chat-react\"\n\nimport { DrawerHeader, DrawerHeading } from \"../../../../components\"\nimport { useChannelsLoading } from \"../../hooks\"\nimport { List } from \"./list\"\nimport { Preview } from \"./preview\"\n\nconst FILTERS = { type: \"messaging\" }\n\nexport const ChannelListView = ({ closeDrawer }) => {\n const channelsLoading = useChannelsLoading()\n\n return (\n <>\n <DrawerHeader closeDrawer={closeDrawer}>\n <StackView axis=\"horizontal\" alignment=\"center\" spacing={1}>\n <DrawerHeading>Messages</DrawerHeading>\n {channelsLoading && (\n <Spinner\n color=\"hsl(0 0% 62%)\"\n thickness={2}\n trackColor=\"hsl(0 0% 97%)\"\n />\n )}\n </StackView>\n </DrawerHeader>\n <ChannelList\n filters={FILTERS}\n List={List}\n // Infinite scroll implementation details may need to be revisited once we have real data to work with.\n // https://getstream.io/chat/docs/sdk/react/guides/channel-list-infinite-scroll/#what-to-take-into-consideration\n Paginator={InfiniteScroll}\n Preview={Preview}\n />\n </>\n )\n}\n","import { useEffect, useState } from \"react\"\nimport { useChatContext } from \"stream-chat-react\"\n\nexport const useChannelsLoading = (): boolean => {\n const [loading, setLoading] = useState(true)\n const { channelsQueryState } = useChatContext(\"ChannelList\")\n const { queryInProgress } = channelsQueryState\n const _loading = queryInProgress === \"reload\"\n\n useEffect(() => {\n setLoading(_loading)\n }, [queryInProgress])\n\n return loading\n}\n","import {\n Box,\n Button,\n Icon,\n StackView,\n Text,\n} from \"@planningcenter/tapestry-react\"\nimport { nanoid } from \"nanoid\"\nimport React, { useEffect, useState } from \"react\"\nimport { useDropzone } from \"react-dropzone\"\nimport { UploadButton } from \"react-file-utils\"\nimport {\n AttachmentPreviewList,\n ChatAutoComplete,\n EmojiPicker,\n EmojiPickerIcon,\n useChannelStateContext,\n useMessageInputContext,\n} from \"stream-chat-react\"\n\nimport colors from \"../../../../../colors\"\n\nexport const MessageInput = () => {\n const {\n closeEmojiPicker,\n emojiPickerIsOpen,\n handleEmojiKeyDown,\n handleSubmit,\n isUploadEnabled,\n maxFilesLeft,\n numberOfUploads,\n openEmojiPicker,\n text,\n uploadNewFiles,\n } = useMessageInputContext()\n\n const { multipleUploads } = useChannelStateContext()\n\n const { getRootProps, isDragActive, isDragReject } = useDropzone({\n disabled: !isUploadEnabled || maxFilesLeft === 0,\n multiple: multipleUploads,\n noClick: true,\n onDrop: uploadNewFiles,\n })\n\n const isInputChildOfModal = useIsInputChildOfModal()\n const wrapInputRef = useAutoFocus()\n\n return (\n <StackView\n {...getRootProps({\n borderColor: isInputChildOfModal ? \"transparent\" : \"separatorTertiary\",\n borderWidth: isInputChildOfModal ? 0 : 1,\n className: `custom-message-input-wrapper ${\n isInputChildOfModal ? \"is-modal-child\" : \"\"\n }`,\n marginHorizontal: isInputChildOfModal ? 0 : 1,\n position: \"relative\",\n radius: 8,\n refKey: \"innerRef\",\n })}\n >\n {isDragActive && <DropzoneUI isDragReject={isDragReject} />}\n {isUploadEnabled && !!numberOfUploads && <AttachmentPreviewList />}\n <Box innerRef={wrapInputRef}>\n <ChatAutoComplete placeholder=\"Send a message\" />\n </Box>\n <StackView\n alignment=\"center\"\n axis=\"horizontal\"\n distribution=\"space-between\"\n padding={1.5}\n spacing={1}\n >\n <StackView\n alignment=\"center\"\n axis=\"horizontal\"\n height=\"100%\"\n spacing={1}\n >\n <EmojiPickerUI\n closeEmojiPicker={closeEmojiPicker}\n emojiPickerIsOpen={emojiPickerIsOpen}\n handleEmojiKeyDown={handleEmojiKeyDown}\n openEmojiPicker={openEmojiPicker}\n />\n <FileUploadUI\n isUploadEnabled={isUploadEnabled}\n maxFilesLeft={maxFilesLeft}\n multipleUploads={multipleUploads}\n uploadNewFiles={uploadNewFiles}\n />\n </StackView>\n <Button\n alignSelf=\"center\"\n className=\"focus-visible\"\n color={colors.lightNeutral100}\n css={{\n \"&:active\": { backgroundColor: colors.interaction45 },\n \"&:hover\": { backgroundColor: colors.interaction50 },\n \"&[aria-disabled='true']\": {\n \"&:hover\": {\n backgroundColor: `${colors.lightNeutral81}`,\n },\n backgroundColor: colors.lightNeutral81,\n },\n backgroundColor: colors.interaction55,\n }}\n disabled={!numberOfUploads && !text.length}\n onClick={handleSubmit}\n title={isInputChildOfModal ? \"Save\" : \"Send\"}\n tabIndex={0}\n />\n </StackView>\n </StackView>\n )\n}\n\nconst FileUploadUI = ({\n isUploadEnabled,\n maxFilesLeft,\n multipleUploads,\n uploadNewFiles,\n}) => {\n const id = React.useMemo(() => nanoid(), [])\n const inputEl = document.getElementById(id)\n\n const handleKeyDown = (event) => {\n if (inputEl && (event.key === \"Enter\" || event.key === \" \")) {\n event.preventDefault()\n inputEl.click()\n }\n }\n return (\n <>\n <label htmlFor={id} tabIndex={0} onKeyDown={handleKeyDown}>\n <Icon\n color={colors.lightNeutral45}\n css={{\n \"&:active\": { fill: colors.lightNeutral12 },\n \"&:hover\": { fill: colors.lightNeutral24 },\n }}\n cursor=\"pointer\"\n height=\"20px\"\n name=\"churchCenter.photosO\"\n width=\"20px\"\n />\n </label>\n <UploadButton\n aria-label=\"File upload\"\n className=\"file-input\"\n disabled={!isUploadEnabled || maxFilesLeft === 0}\n id={id}\n multiple={multipleUploads}\n onFileChange={uploadNewFiles}\n />\n </>\n )\n}\n\nconst EmojiPickerUI = ({\n closeEmojiPicker,\n emojiPickerIsOpen,\n handleEmojiKeyDown,\n openEmojiPicker,\n}) => (\n <>\n <Button\n aria-label=\"Toggle emoji picker\"\n className=\"focus-visible\"\n css={{\n \"&:active\": { fill: colors.lightNeutral12 },\n \"&:hover\": { fill: colors.lightNeutral24 },\n }}\n fill={colors.lightNeutral45}\n onClick={emojiPickerIsOpen ? closeEmojiPicker : openEmojiPicker}\n onKeyDown={handleEmojiKeyDown}\n paddingHorizontal={0}\n size={\"sm\" as never}\n theme={false}\n tooltip=\"Pick an emoji\"\n >\n <Box width=\"23px\" height=\"23px\">\n <EmojiPickerIcon />\n </Box>\n </Button>\n <EmojiPicker small={true} />\n </>\n)\n\nconst DropzoneUI = ({ isDragReject }) => (\n <StackView\n alignment=\"center\"\n backgroundColor=\"surfaceTertiary\"\n borderColor={isDragReject ? \"error-dark\" : \"success-darker\"}\n borderRadius={8}\n borderStyle=\"dashed\"\n borderWidth={1}\n bottom={0}\n distribution=\"center\"\n left={0}\n position=\"absolute\"\n right={0}\n top={0}\n zIndex={10}\n >\n <Text\n color={isDragReject ? \"error-dark\" : \"success-darker\"}\n size={4}\n weight={600}\n >\n {isDragReject\n ? \"Some of the files will not be accepted\"\n : \"Drop your files here\"}\n </Text>\n </StackView>\n)\n\nconst useIsInputChildOfModal = () => {\n const [isChildOfModal, setIsChildOfModal] = useState(false)\n\n useEffect(() => {\n const modal = document.querySelector(\".str-chat__modal__inner\")\n const input = document.querySelector(\".custom-message-input-wrapper\")\n setIsChildOfModal(modal?.contains(input))\n }, [])\n\n return isChildOfModal\n}\n\nconst useAutoFocus = () => {\n const wrapInputRef = React.useRef(null)\n\n useEffect(() => {\n if (wrapInputRef.current) {\n const input = wrapInputRef.current?.querySelector(\"textarea\")\n input?.focus()\n input?.setSelectionRange(input?.value?.length, input?.value?.length)\n }\n }, [])\n\n return wrapInputRef\n}\n","import { Button, StackView } from \"@planningcenter/tapestry-react\"\nimport React from \"react\"\nimport {\n Channel,\n MessageInput,\n MessageList,\n useChatContext,\n Window,\n} from \"stream-chat-react\"\n\nimport { DrawerHeading } from \"../../../../components\"\nimport { useMessages } from \"../../hooks\"\nimport { MessageInput as MessageInputComponent } from \"./message_input\"\n\nexport const ChannelView = () => {\n const { channel } = useChatContext()\n const { switchToChannelListView } = useMessages()\n const title = channel?.data?.name || \"Channel name\"\n\n return (\n <>\n <StackView\n alignment=\"center\"\n axis=\"horizontal\"\n padding={2}\n paddingTop={1}\n spacing={1}\n >\n <Button\n aria-label=\"Switch to message list\"\n icon=\"general.leftChevron\"\n onClick={switchToChannelListView}\n size={\"sm\" as never} // TODO: Tapestry TS bug\n title=\"Back to message list\"\n variant=\"naked\"\n />\n <DrawerHeading truncate>{title}</DrawerHeading>\n </StackView>\n <StackView grow={1} paddingBottom={2} shrink={1}>\n <Channel\n channel={channel}\n Input={MessageInputComponent}\n EditMessageInput={MessageInputComponent}\n >\n <Window>\n {/*\n TODO: explore implementing <ScrollContainer> in <MessageList>\n https://getstream.io/chat/docs/sdk/react/components/core-components/message_list/#internalinfinitescrollprops\n */}\n <MessageList messageActions={[\"edit\", \"delete\", \"react\"]} />\n <MessageInput grow={true} />\n </Window>\n </Channel>\n </StackView>\n </>\n )\n}\n","import {\n Box,\n Button,\n Divider,\n Heading,\n StackView,\n Text,\n} from \"@planningcenter/tapestry-react\"\nimport React from \"react\"\nimport { Channel, MessageInput } from \"stream-chat-react\"\n\nimport { DrawerHeading, ScrollContainer } from \"../../../components\"\nimport { useMessages } from \"../hooks\"\n\nexport const NewMessageView = () => {\n const { switchToChannelListView } = useMessages()\n return (\n <>\n <StackView\n alignment=\"center\"\n axis=\"horizontal\"\n spacing={1}\n padding={2}\n paddingTop={1}\n >\n <Button\n aria-label=\"Switch to message list\"\n icon=\"general.leftChevron\"\n onClick={switchToChannelListView}\n size={\"sm\" as never} // TODO: Tapestry TS bug\n title=\"Back to message list\"\n variant=\"naked\"\n />\n <DrawerHeading truncate>New Message</DrawerHeading>\n </StackView>\n <StackView grow={1} shrink={1}>\n <StackView padding={2} spacing={2}>\n <Text align=\"center\" color=\"foregroundTertiary\">\n Message definitions placeholder\n </Text>\n </StackView>\n <Divider />\n <StackView grow={1}>\n <StackView padding={2}>\n <Text color=\"foregroundSecondary\" size={5}>\n Selected service type name\n </Text>\n <StackView\n alignment=\"baseline\"\n axis=\"horizontal\"\n distribution=\"space-between\"\n spacing={1}\n >\n {/* Date | Team name */}\n <Heading\n color=\"foreground\"\n letterSpacing=\".002em\"\n level={2}\n weight={700}\n >\n June 5th, 2024 | Audio\n </Heading>\n {/* number of team members */}\n <Text color=\"foreground\">25</Text>\n </StackView>\n </StackView>\n <ScrollContainer>\n <StackView paddingBottom={2} paddingLeft={2} spacing={2}>\n {Array.from({ length: 25 }, (_, i) => `Person ${i + 1}`).map(\n (opt) => (\n <TeamMemberListItem key={opt} />\n )\n )}\n </StackView>\n </ScrollContainer>\n </StackView>\n <Divider />\n <StackView paddingBottom={2} spacing={1}>\n <StackView padding={2} paddingBottom={0}>\n <Text align=\"center\" size={5} color=\"foregroundSecondary\">\n Message groups are dynamically updated based on the settings\n above. Any volunteer changes made in Services to a team or plan\n will be reflected in this group.\n </Text>\n </StackView>\n <Channel>\n <MessageInput />\n </Channel>\n </StackView>\n </StackView>\n </>\n )\n}\n\nconst TeamMemberListItem = () => {\n return (\n <StackView alignment=\"center\" axis=\"horizontal\" spacing={1}>\n {/* Avatar placeholder */}\n <Box\n backgroundColor=\"grey-5\"\n borderColor=\"grey-6\"\n borderWidth={2}\n height=\"36px\"\n radius=\"circle\"\n width=\"36px\"\n />\n <Text size={3} truncate>\n Person Name\n </Text>\n </StackView>\n )\n}\n","import React from \"react\"\nimport { Chat } from \"stream-chat-react\"\n\nimport { DrawerHeader, DrawerHeading, SwitchView } from \"../../components\"\nimport { ToolbarTool } from \"../../types\"\nimport { ChannelListView, ChannelView, NewMessageView } from \"./components\"\nimport { useClient } from \"./hooks\"\nimport { MessagesProvider } from \"./messages_context\"\n\nconst USER_TOKEN =\n \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiYmxhY2stZGF3bi0wIiwiZXhwIjoxNjc4MzI3NDc0fQ.BpHu7s4yGSE5xS8wrYcV9CsbLKD5ta7gKHVHWA6Xdaw\"\n\nconst USER = {\n id: \"black-dawn-0\",\n image: \"https://getstream.io/random_png/?id=black-dawn-0&name=black\",\n name: \"black\",\n}\n\nconst MessagesComponent = ({ closeDrawer }) => {\n const chatClient = useClient({\n apiKey: \"dz5f4d5kzrue\",\n tokenOrProvider: USER_TOKEN,\n userData: USER,\n })\n\n const [actionsOpenForChannel, setActionsOpenForChannel] =\n React.useState(false)\n const [activeIndex, setActiveIndex] = React.useState(0)\n\n const switchToChannelListView = () => setActiveIndex(0)\n const switchToNewMessageView = () => setActiveIndex(1)\n const switchToChannelView = () => setActiveIndex(2)\n\n return (\n <MessagesProvider\n value={{\n actionsOpenForChannel,\n setActionsOpenForChannel,\n switchToChannelListView,\n switchToChannelView,\n switchToNewMessageView,\n }}\n >\n {chatClient ? (\n <Chat client={chatClient} theme=\"str-chat__theme-light\">\n <SwitchView activeIndex={activeIndex}>\n <ChannelListView closeDrawer={closeDrawer} />\n <NewMessageView />\n <ChannelView />\n </SwitchView>\n </Chat>\n ) : (\n <>\n <DrawerHeader closeDrawer={closeDrawer}>\n <DrawerHeading>Messages</DrawerHeading>\n </DrawerHeader>\n </>\n )}\n </MessagesProvider>\n )\n}\n\nconst Messages: ToolbarTool = {\n component: MessagesComponent,\n icons: {\n active: \"general.textMessage\",\n static: \"general.outlinedTextMessage\",\n },\n name: \"Messages\",\n}\n\nexport { Messages }\n","import React from \"react\"\nimport { StreamChat } from \"stream-chat\"\n\nexport const useClient = ({ apiKey, userData, tokenOrProvider }) => {\n const [chatClient, setChatClient] = React.useState(null)\n\n React.useEffect(() => {\n const client = new StreamChat(apiKey)\n // prevents application from setting stale client (user changed, for example)\n let didUserConnectInterrupt = false\n\n const connectionPromise = client\n .connectUser(userData, tokenOrProvider)\n .then(() => {\n if (!didUserConnectInterrupt) setChatClient(client)\n })\n\n return () => {\n didUserConnectInterrupt = true\n setChatClient(null)\n // wait for connection to finish before initiating closing sequence\n connectionPromise\n .then(() => client.disconnectUser())\n .then(() => {\n console.log(\"connection closed\")\n })\n }\n }, [apiKey, userData.id, tokenOrProvider])\n\n return chatClient\n}\n","import React from \"react\"\n\nimport colors from \"../colors\"\n\nconst Eyebrow = ({\n dark,\n style,\n ...props\n}: {\n children?: React.ReactNode\n dark: boolean\n style?: object\n}) => (\n <div\n style={{\n color: dark ? colors.lightNeutral62 : colors.lightNeutral24,\n fontSize: \"10px\",\n fontWeight: 400,\n textTransform: \"uppercase\",\n ...style,\n }}\n {...props}\n />\n)\n\nexport default Eyebrow\n","import datetimeFmt from \"@churchcenter/datetime-fmt\"\nimport React from \"react\"\n\nimport colors from \"../colors\"\nimport useHover from \"../hooks/use_hover\"\nimport useStore from \"../hooks/use_store\"\nimport { Notification } from \"../interfaces\"\nimport { fontFamily } from \"../styles\"\nimport Eyebrow from \"./eyebrow\"\nimport HoverableListItem from \"./hoverable_list_item\"\n\nconst MarkReadDot = ({\n isRead = false,\n onClick,\n}: {\n isRead?: boolean\n onClick: any\n}) => {\n const hoverRef = React.useRef(null)\n const isHover = useHover(hoverRef)\n\n return (\n <div\n ref={hoverRef}\n style={{\n alignItems: \"center\",\n display: \"flex\",\n height: \"12px\",\n justifyContent: \"center\",\n width: \"12px\",\n }}\n {...{ onClick }}\n >\n <svg height=\"12\" viewBox=\"0 0 12 12\" width=\"12\">\n <title>unread dot</title>\n <circle\n cx=\"6\"\n cy=\"6\"\n fill={isHover ? colors.interaction66 : colors.lightNeutral81}\n r=\"6\"\n style={{ transition: \"all 0.2s\" }}\n />\n <circle cx=\"6\" cy=\"6\" fill={colors.lightNeutral100} r=\"5\" />\n {!isRead && <circle cx=\"6\" cy=\"6\" r=\"4\" fill={colors.interaction66} />}\n </svg>\n </div>\n )\n}\n\nconst NotificationItem = ({\n mobile = false,\n isLast,\n onMarkAsRead = async () => Promise.resolve({}),\n onToggleRead,\n showBottomBorder,\n notification,\n}: {\n isLast?: boolean\n mobile?: boolean\n notification: Notification\n onMarkAsRead?: (notification: Notification) => Promise<any>\n onToggleRead: any\n showBottomBorder?: boolean\n}) => {\n const { appName, createdAt, isRead, link, title } = notification\n const { organizationTimeZone } = useStore()\n\n const [isActive, setIsActive] = React.useState(false)\n\n const appColors = {\n Calendar: \"9 61% 50%\",\n \"Check-Ins\": \"283 22% 48%\",\n Giving: \"43 88% 64%\",\n Groups: \"17 96% 62%\",\n People: \"220 74% 57%\",\n Publishing: \"220 12% 31%\",\n Registrations: \"175 36% 43%\",\n Services: \"88 45% 41%\",\n }\n\n const handleDotClick = (e) => {\n e.preventDefault()\n e.stopPropagation()\n onToggleRead()\n }\n\n const handleClick = async (_e) => {\n setIsActive(true)\n await onMarkAsRead(notification)\n window.location.href = link\n }\n\n const datetimeFmtOptions = { style: \"relative\" } as {\n style?: string\n timeZone?: string\n }\n if (organizationTimeZone) {\n datetimeFmtOptions.timeZone = organizationTimeZone\n }\n\n return (\n <HoverableListItem\n active={isActive}\n data-turbolinks={false}\n href={link}\n onClick={handleClick}\n style={{\n alignItems: \"flex-start\",\n borderBottom:\n showBottomBorder || !isLast\n ? `1px solid ${\n mobile ? colors.lightNeutral24 : colors.lightNeutral93\n }`\n : \"none\",\n cursor: \"pointer\",\n display: \"flex\",\n overflow: \"hidden\",\n padding: \"12px 16px\",\n textDecoration: \"none\",\n verticalAlign: \"middle\",\n ...fontFamily,\n }}\n >\n <div\n style={{\n display: \"flex\",\n flexDirection: \"column\",\n flexGrow: 1,\n justifyContent: \"center\",\n }}\n >\n <div\n style={{\n alignItems: \"center\",\n borderLeft: `4px solid hsl(${appColors[appName] || \"0 0% 81%\"} / ${\n isRead ? \"40%\" : \"100%\"\n }`,\n display: \"flex\",\n marginBottom: \"10px\",\n paddingLeft: \"8px\",\n }}\n >\n <div style={{ flexGrow: 1, marginRight: \"16px\" }}>\n <Eyebrow\n dark={mobile}\n style={{ marginBottom: \"6px\", userSelect: \"none\" }}\n >\n {appName}\n </Eyebrow>\n <h1\n style={{\n color: mobile ? colors.lightNeutral88 : colors.darkNeutral12,\n fontSize: \"14px\",\n fontWeight: 500,\n lineHeight: \"1.3em\",\n margin: 0,\n userSelect: \"none\",\n }}\n >\n {title}\n </h1>\n </div>\n {!mobile && <MarkReadDot onClick={handleDotClick} {...{ isRead }} />}\n </div>\n <div\n style={{\n color: mobile ? colors.lightNeutral62 : colors.lightNeutral24,\n fontSize: \"12px\",\n paddingLeft: \"12px\",\n userSelect: \"none\",\n }}\n >\n {datetimeFmt.datetime(createdAt, datetimeFmtOptions)}\n </div>\n </div>\n </HoverableListItem>\n )\n}\n\nexport default NotificationItem\n","import { RefObject, useEffect, useState } from \"react\"\n\nfunction useHover<T extends HTMLElement = HTMLElement>(\n elementRef: RefObject<T>\n): boolean {\n const [value, setValue] = useState<boolean>(false)\n\n const handleMouseEnter = () => setValue(true)\n const handleMouseLeave = () => setValue(false)\n\n useEffect(() => {\n const node = elementRef?.current\n if (!node) return undefined\n\n node.addEventListener(\"mouseenter\", handleMouseEnter)\n node.addEventListener(\"mouseleave\", handleMouseLeave)\n\n return () => {\n node.removeEventListener(\"mouseenter\", handleMouseEnter)\n node.removeEventListener(\"mouseleave\", handleMouseLeave)\n }\n }, [elementRef])\n\n return value\n}\n\nexport default useHover\n","import { Heading, StackView, Text } from \"@planningcenter/tapestry-react\"\nimport React from \"react\"\n\nimport { BlankStateIcon } from \"../symbols\"\n\nconst NotificationsMenuBlankState = ({\n context,\n dark = false,\n description,\n title = \"No notifications\",\n}: {\n context?: string\n dark?: boolean\n description: string\n style?: object\n title?: string\n}) => (\n <StackView alignment=\"center\" distribution=\"center\" padding={4}>\n <BlankStateIcon id={context} {...{ dark }} />\n <Heading\n color={dark ? \"#fafafa\" : \"#3d3d3d\"}\n fontWeight={500}\n marginTop={1}\n size={3}\n >\n {title}\n </Heading>\n <Text align=\"center\" color={dark ? \"#fafafa\" : \"#3d3d3d\"} size={4}>\n {description}\n </Text>\n </StackView>\n)\n\nexport default NotificationsMenuBlankState\n","import pcoUrl, * as PCO_URL from \"@planningcenter/url\"\nimport React from \"react\"\nimport { ChannelSubscription } from \"@planningcenter/jolt-client\"\n\nimport apiRequest, { defaultFetch, railsCsrfFetch } from \"../api_request\"\nimport {\n JoltMessage,\n JoltMessageNotificationDataPayload,\n Notification,\n} from \"../interfaces\"\nimport { useJoltEffect } from \"./jolt\"\n\nconst notificationsOrganizer = (\n notifications: Notification[]\n): { read: Notification[]; unread: Notification[] } => {\n const { read, unread } = [...notifications]\n .sort((a: Notification, b: Notification) => {\n return a.createdAt < b.createdAt ? 1 : -1\n })\n .reduce(\n (acc, notification) => {\n return notification.isRead\n ? { ...acc, read: [...acc.read, notification] }\n : { ...acc, unread: [...acc.unread, notification] }\n },\n { read: [], unread: [] }\n )\n return { read, unread }\n}\n\nconst buildNotificationFromApiResponse = (resp, json): Notification => {\n const findInIncluded = ({ type, id }, included) => {\n return included.find((i) => {\n return i.type === type && i.id === id\n })\n }\n\n const appName: string = findInIncluded(\n resp.relationships.app.data,\n json.included\n )?.attributes?.name\n\n // There is technically the possibility that there are multiple web payloads\n // returned from the API endpoint. However, at this point I'm not sure in\n // which situations that would be the case. For v1 of this feature, we'll\n // assume that there is only one web payload we need to worry about and it is\n // the first in the array that is returned.\n const notificationData = JSON.parse(\n findInIncluded(\n {\n id: resp?.relationships?.web_payloads?.data[0]?.id,\n type: \"Payload\",\n },\n json.included\n )?.attributes?.content\n )\n\n return {\n appName,\n createdAt: new Date(resp.attributes.created_at),\n id: resp.id,\n isRead: resp.attributes.read_at?.length > 0,\n link: notificationData?.link,\n title: notificationData?.title,\n }\n}\n\nexport type NotificationsHookProps = {\n enabled?: boolean\n env: PCO_URL.Environment\n joltChannel: ChannelSubscription\n}\n\nconst useNotifications = ({\n enabled,\n env,\n joltChannel,\n}: NotificationsHookProps): {\n handleMarkAllAsRead: () => any\n handleMarkAsRead: (notification: Notification) => Promise<any>\n handleToggleRead: (notification: Notification) => Promise<any>\n hasError: boolean\n isLoading: boolean\n read: Notification[]\n unread: Notification[]\n} => {\n const [notifications, setNotifications]: [\n Notification[],\n React.Dispatch<React.SetStateAction<Notification[]>>\n ] = React.useState([])\n\n const [isLoading, setIsLoading] = React.useState(true)\n const [hasError, setHasError] = React.useState(false)\n const { read, unread } = notificationsOrganizer(notifications)\n\n const fetchNotifications = () => {\n try {\n setHasError(false)\n apiRequest(\n defaultFetch,\n `${pcoUrl(env)(\n \"api\"\n )}/notifications/v2/me/notifications?include=app,web_payloads&per_page=100&order=read_at,-created_at`\n ).then(({ json }) => {\n const notifications = json.data.map((resp) =>\n buildNotificationFromApiResponse(resp, json)\n )\n\n setIsLoading(false)\n setNotifications(notifications)\n })\n } catch (exception) {\n setHasError(true)\n console.error(\n \"topbar encountered error when fetching all notifications\",\n exception\n )\n }\n }\n\n React.useEffect(() => {\n if (enabled) {\n fetchNotifications()\n }\n }, [enabled])\n\n const fetchNotification = async (id: string) => {\n try {\n setHasError(false)\n return apiRequest(\n defaultFetch,\n `${pcoUrl(env)(\n \"api\"\n )}/notifications/v2/me/notifications/${id}?include=app,web_payloads`\n ).then(({ json }) => json)\n } catch (exception) {\n setHasError(true)\n console.error(\n \"topbar encountered error when fetching a single notification\",\n exception\n )\n }\n }\n\n const extractPayloadFromJoltMessage = (\n notification: JoltMessage\n ): JoltMessageNotificationDataPayload => JSON.parse(notification.data)\n\n const updateStateFromJoltMessage = React.useCallback(\n (message: JoltMessage) => {\n try {\n const joltMessageNotificationDataPayload =\n extractPayloadFromJoltMessage(message)\n\n fetchNotification(joltMessageNotificationDataPayload.data.id).then(\n (resp) => {\n const notification = buildNotificationFromApiResponse(\n resp.data,\n resp\n )\n\n setNotifications((notifications) => [\n ...notifications.filter(\n (candidate) => candidate.id !== notification.id\n ),\n notification,\n ])\n }\n )\n } catch (exception) {\n console.error(\n \"topbar encountered error when updating state from jolt message\",\n exception\n )\n }\n },\n [\n buildNotificationFromApiResponse,\n extractPayloadFromJoltMessage,\n fetchNotifications,\n read,\n setNotifications,\n unread,\n ]\n )\n\n const removeNotification = React.useCallback(\n (message: JoltMessage) => {\n const joltMessageNotificationDataPayload =\n extractPayloadFromJoltMessage(message)\n const newNotifications = notifications.filter(\n (candidate) =>\n candidate.id !== joltMessageNotificationDataPayload.data.id\n )\n setNotifications(newNotifications)\n },\n [extractPayloadFromJoltMessage, notifications, setNotifications]\n )\n\n useJoltEffect(\n enabled ? joltChannel : undefined,\n \"notifications.v2.events.notification.created\",\n updateStateFromJoltMessage\n )\n\n useJoltEffect(\n enabled ? joltChannel : undefined,\n \"notifications.v2.events.notification.updated\",\n updateStateFromJoltMessage\n )\n\n useJoltEffect(\n enabled ? joltChannel : undefined,\n \"notifications.v2.events.notification.destroyed\",\n removeNotification\n )\n\n const markAsReadOrUnread = async (\n notificationIds: string[],\n readOrUnread: \"read\" | \"unread\"\n ) => {\n const included = notificationIds.reduce(\n (acc, id: string) => [\n ...acc,\n {\n attributes: { action: readOrUnread },\n id,\n type: \"graph_notification\",\n },\n ],\n []\n )\n\n return apiRequest(\n railsCsrfFetch,\n `${pcoUrl(env)(\"api\")}/notifications/v2/me/bulk_update`,\n {\n data: {\n data: {\n attributes: {},\n relationships: {\n notifications: {\n data: {\n source: \"/included/graph_notification/*\",\n },\n },\n },\n type: \"BulkUpdate\",\n },\n included,\n },\n method: \"POST\",\n }\n ).then((e) => {\n if (!e.ok) {\n // TODO: show an alert or something?\n\n setIsLoading(false)\n setHasError(true)\n // Rollback any optimistic UI updates\n setNotifications((notifications) =>\n notifications.map((n) =>\n notificationIds.includes(n.id) ? { ...n, isRead: !n.isRead } : n\n )\n )\n }\n })\n }\n\n const handleToggleRead = async (notification: Notification) => {\n const action = notification.isRead ? \"unread\" : \"read\"\n\n // optimistic UI update\n setNotifications((notifications) =>\n notifications.map((n) =>\n notification.id == n.id ? { ...n, isRead: action === \"read\" } : n\n )\n )\n\n return markAsReadOrUnread([notification.id], action)\n }\n\n const handleMarkAsRead = async (notification: Notification) => {\n return markAsReadOrUnread([notification.id], \"read\")\n }\n\n const handleMarkAllAsRead = () => {\n const unreadIds = unread.map((n) => n.id)\n\n // optimistic UI update\n setNotifications((notifications) =>\n notifications.map((n) =>\n unreadIds.includes(n.id) ? { ...n, isRead: true } : n\n )\n )\n\n markAsReadOrUnread(\n unread.map((u: Notification) => u.id),\n \"read\"\n )\n }\n\n return {\n handleMarkAllAsRead,\n handleMarkAsRead,\n handleToggleRead,\n hasError,\n isLoading,\n read,\n unread,\n }\n}\n\nexport default useNotifications\n","import { Heading, Spinner, StackView } from \"@planningcenter/tapestry-react\"\nimport React from \"react\"\nimport { Transition, TransitionGroup } from \"react-transition-group\"\n\nimport { default as themeColors } from \"../../colors\"\nimport NotificationItem from \"../../components/notification_item\"\nimport NotificationsMenuBlankState from \"../../components/notifications_menu_blank_state\"\nimport { Notification } from \"../../interfaces\"\nimport store from \"../../store\"\nimport { ExclamationTriangle } from \"../../symbols\"\nimport { DrawerHeader, DrawerHeading, ScrollContainer } from \"../components\"\nimport { ToolbarTool } from \"../types\"\nimport useNotifications from \"../../hooks/use_notifications\"\n\nconst SectionHeaderButton = ({\n disabled,\n onClick,\n title,\n ...props\n}: {\n disabled?: boolean\n onClick: any\n title: string\n}) => (\n <StackView\n color={disabled ? themeColors.lightNeutral62 : themeColors.interaction66}\n cursor={disabled ? \"default\" : \"pointer\"}\n fontSize={5}\n fontWeight={600}\n userSelect=\"none\"\n onClick={!disabled && onClick}\n {...props}\n >\n {title}\n </StackView>\n)\n\nconst SectionHeaderTitle = ({\n ...props\n}: {\n children?: React.ReactNode\n padding?: number\n}) => (\n <Heading\n color={themeColors.lightNeutral12}\n lineHeight={2}\n size={5}\n textTransform=\"uppercase\"\n userSelect=\"none\"\n {...props}\n />\n)\n\nfunction NotificationsComponent({ closeDrawer }) {\n const [showRead, setShowRead] = React.useState(false)\n\n const duration = 300\n\n const defaultStyle = { transition: `opacity ${duration}ms ease-in-out` }\n\n const transitionStyles = {\n entered: { opacity: 1 },\n entering: { opacity: 0.2 },\n }\n\n const { env, enabled, joltChannel } = store.getState()[\"notifications\"]\n\n const {\n handleMarkAllAsRead,\n handleMarkAsRead,\n handleToggleRead,\n hasError,\n isLoading,\n read,\n unread,\n } = useNotifications({ env, enabled, joltChannel })\n\n return (\n <>\n <DrawerHeader closeDrawer={closeDrawer}>\n <StackView spacing={0.5}>\n <StackView alignment=\"center\" axis=\"horizontal\" spacing={1}>\n <DrawerHeading>Notifications</DrawerHeading>\n {isLoading && (\n <Spinner\n color=\"hsl(0 0% 62%)\"\n thickness={2}\n trackColor=\"hsl(0 0% 97%)\"\n />\n )}\n {hasError && (\n <ExclamationTriangle fill=\"hsl(8 60% 47%)\" size={16} />\n )}\n </StackView>\n {read.length > 0 && (\n <SectionHeaderButton\n onClick={() => setShowRead((showRead) => !showRead)}\n title={`${showRead ? \"Hide\" : \"Show\"} read`}\n />\n )}\n </StackView>\n </DrawerHeader>\n <ScrollContainer>\n <StackView alignment=\"stretch\" spacing={2}>\n <div\n style={{\n boxSizing: \"border-box\",\n display: \"flex\",\n flexDirection: \"column\",\n justifyContent: \"space-between\",\n margin: 0,\n padding: \"4px 0\",\n }}\n >\n {!isLoading && unread.length === 0 && (\n <NotificationsMenuBlankState\n context=\"toolbar\"\n description={`When you have ${\n read.length > 0 ? \"unread \" : \"\"\n }notifications they will show up here.`}\n {...(read.length > 0 && { title: \"No unread notifications\" })}\n />\n )}\n {unread.length > 0 && (\n <StackView\n axis=\"horizontal\"\n alignment=\"center\"\n distribution=\"space-between\"\n padding={2}\n >\n <SectionHeaderTitle>Unread</SectionHeaderTitle>\n {unread.length > 0 && (\n <SectionHeaderButton\n onClick={() => handleMarkAllAsRead()}\n title={`Mark ${unread.length} as read`}\n />\n )}\n </StackView>\n )}\n <TransitionGroup exit={false}>\n {unread.map((notification: Notification, idx) => (\n <Transition key={notification.id} timeout={0}>\n {(state) => (\n <div\n style={{\n ...defaultStyle,\n ...transitionStyles[state],\n }}\n >\n <NotificationItem\n isLast={unread.length === idx + 1}\n key={notification.id}\n onMarkAsRead={handleMarkAsRead}\n onToggleRead={() => handleToggleRead(notification)}\n showBottomBorder={read.length > 0}\n {...{ notification }}\n />\n </div>\n )}\n </Transition>\n ))}\n </TransitionGroup>\n {read.length > 0 && showRead && (\n <>\n <SectionHeaderTitle padding={2}>Read</SectionHeaderTitle>\n <TransitionGroup exit={false}>\n {read.map((notification: Notification) => (\n <Transition key={notification.id} timeout={0}>\n {(state) => (\n <div\n style={{\n ...defaultStyle,\n ...transitionStyles[state],\n }}\n >\n <div style={{ opacity: 0.6 }}>\n <NotificationItem\n key={notification.id}\n onToggleRead={() =>\n handleToggleRead(notification)\n }\n showBottomBorder\n {...{ notification }}\n />\n </div>\n </div>\n )}\n </Transition>\n ))}\n </TransitionGroup>\n </>\n )}\n </div>\n </StackView>\n </ScrollContainer>\n </>\n )\n}\n\nconst Notifications: ToolbarTool = {\n component: NotificationsComponent,\n icons: {\n active: \"toolbar.notification\",\n static: \"toolbar.notificationO\",\n },\n name: \"Notifications\",\n}\n\nexport { Notifications }\n","import * as PCO_URL from \"@planningcenter/url\"\nimport { useCallback, useEffect } from \"react\"\n\ntype HandlerFunc = (message: { data: object }) => void\n\nconst defaultHandlerFunc = () => null\n\nfunction useCrossFrameMessaging(\n env: PCO_URL.Environment,\n handler: HandlerFunc = defaultHandlerFunc\n) {\n useEffect(() => {\n window.addEventListener(\"message\", handler)\n\n return () => window.removeEventListener(\"message\", handler)\n }, [handler])\n\n return useCallback(\n (message: object) => {\n const frame = getFrame(env)\n\n if (frame.contentWindow) {\n window.postMessage(message, \"*\")\n frame.contentWindow.postMessage(message, \"*\")\n } else {\n throw new Error(\n \"Cannot use iframe for cross-frame messaging. `contentWindow` is missing!\"\n )\n }\n },\n [env]\n )\n}\n\nfunction getFrame(env: PCO_URL.Environment) {\n const src = iframeSource(env)\n\n const foundFrame = document.querySelector<HTMLIFrameElement>(\n `iframe[src=\"${src}\"]`\n )\n\n if (foundFrame) return foundFrame\n\n const iframe = document.createElement(\"iframe\")\n iframe.src = src\n iframe.style.cssText =\n \"height: 0px; width: 0px; opacity: 0; position: absolute; left: -1000px; top: -1000px;\"\n document.body.appendChild(iframe)\n\n return iframe\n}\n\nfunction iframeSource(env: PCO_URL.Environment) {\n switch (env) {\n case \"production\":\n return \"https://pco-cross-storage.s3.amazonaws.com/hub.html\"\n case \"staging\":\n return \"https://pco-cross-storage-staging.s3.amazonaws.com/hub.html\"\n default:\n return \"https://pco-cross-storage-dev.s3.amazonaws.com/hub.html\"\n }\n}\n\nexport default useCrossFrameMessaging\n","import {\n components,\n UiExtensionFirstPartyComponent,\n} from \"@planningcenter/add-ons\"\nimport Jolt from \"@planningcenter/jolt-client\"\nimport pcoUrl, { Environment } from \"@planningcenter/url\"\nimport React, { useCallback, useState } from \"react\"\n\nimport apiRequest, { railsCsrfFetch } from \"../../api_request\"\nimport { useJoltChannelSubscription, useJoltEffect } from \"../../hooks/jolt\"\nimport useCrossFrameMessaging from \"../../hooks/use_cross_frame_messaging\"\nimport { JoltMessage } from \"../../interfaces\"\nimport { DrawerHeader, DrawerHeading, SwitchView } from \"../components\"\nimport { ToolbarTool } from \"../types\"\n\nconst { LoadingIndicator, StackView } = components\n\ntype TasksComponentProps = {\n closeDrawer: () => unknown\n env: Environment\n joltPromise: () => Promise<Jolt | void>\n}\n\ntype JoltChannelRequest = {\n channelName: string\n subscribeUrl: string\n}\n\nfunction TasksComponent({\n closeDrawer,\n env,\n joltPromise,\n}: TasksComponentProps) {\n const source = `${pcoUrl(env)(\"home\" as any)}/addons/toolbar.tasks.list.js`\n\n const [crossFrameMessages, setCrossFrameMessages] = useState([])\n const [latestJoltMessage, setLatestJoltMessage] = useState<JoltMessage & { timestamp: number }>()\n const [requestedJoltChannel, setRequestedJoltChannel] = useState<JoltChannelRequest>()\n\n const postCrossFrameMessage = useCrossFrameMessaging(\n env,\n useCallback((message: { data?: { homeTasksMessage?: string } }) => {\n if (message.data?.hasOwnProperty(\"homeTasksMessage\")) {\n let parsedMessage = null\n try {\n parsedMessage = JSON.parse(message.data.homeTasksMessage)\n } catch (e) {\n console.error(e)\n }\n if (parsedMessage) {\n setCrossFrameMessages((cfm) => [...cfm, parsedMessage])\n }\n }\n }, [])\n )\n\n const joltChannel = useJoltChannelSubscription({\n channelName: requestedJoltChannel?.channelName,\n enabled: !!requestedJoltChannel,\n env,\n fetchSubscribeToken: async (connection_id) => {\n const subscribeUrl = requestedJoltChannel.subscribeUrl\n\n const response = await apiRequest(railsCsrfFetch, subscribeUrl, {\n data: { data: { attributes: { connection_id } } },\n method: \"POST\",\n })\n\n return response.json.data.id\n },\n joltPromise,\n })\n\n const handleJoltMessage = useCallback((message: JoltMessage) => {\n setLatestJoltMessage({ ...message, timestamp: (new Date()).getTime() })\n }, [])\n\n useJoltEffect(joltChannel, \"\", handleJoltMessage)\n\n const sendNotificationThatTaskListChanged = useCallback(\n (homeTasksMessage: object) => {\n const message = {\n homeTasksMessage: JSON.stringify(homeTasksMessage),\n }\n setTimeout(() => {\n postCrossFrameMessage(message)\n }, 1)\n },\n [postCrossFrameMessage]\n )\n\n function pendoTrackEvent(event: string, properties = {}) {\n if (!window?.pendo) {\n return console.warn(\"`window.pendo` is undefined\")\n }\n window.pendo.track(event, properties)\n }\n\n return (\n <UiExtensionFirstPartyComponent\n grow={1}\n display=\"flex\"\n extensionId=\"2\"\n url={source}\n loadingFallback={\n <StackView flex={1} axis=\"vertical\">\n <DrawerHeader closeDrawer={closeDrawer}>\n <StackView axis=\"horizontal\" spacing={1}>\n <DrawerHeading>Tasks</DrawerHeading>\n <LoadingIndicator />\n </StackView>\n </DrawerHeader>\n </StackView>\n }\n additionalComponents={{ DrawerHeader, DrawerHeading, SwitchView }}\n args={{\n closeDrawer,\n crossFrameMessages,\n latestJoltMessage,\n requestJoltChannel: setRequestedJoltChannel,\n sendNotificationThatTaskListChanged,\n trackPendo: pendoTrackEvent,\n }}\n />\n )\n}\n\nconst Tasks: ToolbarTool = {\n component: TasksComponent,\n icons: {\n active: \"toolbar.checklist\",\n static: \"toolbar.checklistO\",\n },\n name: \"Tasks\",\n}\n\nexport { Tasks }\n","import { UiExtensionDataContext } from \"@planningcenter/add-ons\"\nimport Jolt from \"@planningcenter/jolt-client\"\nimport {\n Avatar,\n Box,\n Button,\n Divider,\n Icon,\n StackView,\n ThemeProvider,\n} from \"@planningcenter/tapestry-react\"\nimport pcoUrl, { Environment } from \"@planningcenter/url\"\nimport React from \"react\"\n\nimport { default as themeColors } from \"../colors\"\nimport getLoginProfilePath from \"../get_login_profile_path\"\nimport useMediaQuery from \"../hooks/use_media_query\"\nimport useStore from \"../hooks/use_store\"\nimport { topbarTheme } from \"../theme\"\nimport { Drawer, UserProfile as OriginalUserProfile } from \"./components\"\nimport { ActionType, useToolbarReducer } from \"./hooks\"\nimport { Messages, Notifications, Tasks } from \"./tools\"\nimport { ToolbarTool } from \"./types\"\n\nconst TOOLBAR_WIDTH = 48\nconst DRAWER_WIDTH = 360\nconst DURATION = 100\nconst NAVBAR_HEIGHT = 52\n\ntype ToolbarProps = {\n appName: string\n env: Environment\n linkToProfile?: boolean\n userAvatarPath: string\n userName: string\n}\n\nconst IndicatorDot = (props) => (\n <Box\n backgroundColor={themeColors.home.brand62}\n height={1.5}\n pointerEvents=\"none\"\n position=\"absolute\"\n radius=\"50%\"\n right={0.25}\n top={0.25}\n width={1.5}\n zIndex={6}\n {...props}\n />\n)\n\nexport function Toolbar({\n appName,\n env,\n linkToProfile = true,\n userAvatarPath,\n userName,\n}: ToolbarProps): JSX.Element {\n const [state, dispatch] = useToolbarReducer()\n const { currentContent, mounted, open } = state\n const {\n indicatorVisible,\n joltPromise,\n messagingEnabled,\n userId,\n } = useStore<{\n indicatorVisible: boolean\n joltPromise: () => Promise<Jolt | void>\n messagingEnabled: boolean\n userId: string\n }>()\n\n React.useEffect(() => {\n if (open) {\n document.body.style.overflow = \"hidden\"\n window.scrollTo(0, 0)\n } else {\n document.body.style.overflow = \"auto\"\n }\n }, [open])\n\n const loginSettingsUrl = getLoginProfilePath({\n appName: appName.replace(/[\\s-]/, \"\"),\n env: env,\n userId: userId,\n })\n const logoutUrl = `${pcoUrl(env)(\"login\")}/logout`\n const profileUrl = `/people/AC${userId}`\n\n const TOOLS: ToolbarTool[] = [\n Notifications,\n Tasks,\n messagingEnabled && Messages,\n ].filter(Boolean)\n\n const openDrawer = (content) => {\n dispatch({ payload: { content }, type: ActionType.mount })\n setTimeout(() => dispatch({ type: ActionType.open }))\n }\n\n const closeDrawer = () => {\n dispatch({ type: ActionType.close })\n setTimeout(() => dispatch({ type: ActionType.unmount }), DURATION)\n }\n\n const toggleDrawer = (content: ToolbarTool | typeof UserProfile) => {\n if (!open) {\n return openDrawer(content)\n }\n\n return currentContent.name === content.name\n ? closeDrawer()\n : dispatch({ payload: { content }, type: ActionType.set })\n }\n\n const UserProfile: Omit<ToolbarTool, \"icons\"> = {\n component: () =>\n OriginalUserProfile({\n closeDrawer,\n linkToProfile,\n loginSettingsUrl,\n logoutUrl,\n profileUrl,\n userAvatarPath,\n userName,\n }),\n name: \"Profile\",\n }\n\n const isMobile = useMediaQuery(\"(max-width: 600px)\")\n\n const [visibleWindowHeight, setVisibleWindowHeight] = React.useState(0)\n\n React.useLayoutEffect(() => {\n const handleResize = () => {\n setVisibleWindowHeight(window.innerHeight)\n }\n\n window.addEventListener(\"resize\", handleResize)\n\n return () => window.removeEventListener(\"resize\", handleResize)\n }, [])\n\n const handleToolOnClick = (tool: ToolbarTool) => {\n openDrawer(tool)\n document\n .getElementById(`toolbarDrawer${tool.name}`)\n ?.scrollTo({ behavior: \"smooth\", top: 0 })\n }\n\n const currentToolProps = {\n closeDrawer,\n env,\n joltPromise,\n userId,\n }\n\n return (\n <ThemeProvider theme={topbarTheme}>\n {isMobile ? (\n <>\n <StackView\n left={0}\n position=\"absolute\"\n right={0}\n pointerEvents=\"none\"\n style={{ minHeight: visibleWindowHeight }}\n top={0}\n zIndex={10001}\n >\n <StackView\n alignItems=\"start\"\n axis=\"horizontal\"\n backgroundColor=\"white\"\n borderTopColor=\"separatorTertiary\"\n borderTopWidth={1}\n bottom={0}\n distribution=\"fill\"\n height={`calc(${NAVBAR_HEIGHT}px + env(safe-area-inset-bottom))`}\n left={0}\n position=\"fixed\"\n pointerEvents=\"auto\"\n right={0}\n >\n <StackView alignment=\"center\" flex=\"1\" position=\"relative\">\n <Button\n css={{ WebkitTapHighlightColor: \"transparent\" }}\n color={\n !open\n ? themeColors.lightNeutral24\n : themeColors.lightNeutral62\n }\n hover={{ color: themeColors.lightNeutral24 }}\n icon={{\n name: open\n ? \"toolbar.planningCenterO\"\n : \"toolbar.planningCenter\",\n size: \"20px\",\n }}\n onClick={() => closeDrawer()}\n padding={2}\n theme={false}\n title={`Home`}\n />\n </StackView>\n {TOOLS.map((tool) => (\n <StackView\n alignment=\"center\"\n flex=\"1\"\n key={tool.name}\n position=\"relative\"\n >\n <Button\n aria-label={`${tool.name}`}\n color={\n open && currentContent === tool\n ? themeColors.lightNeutral24\n : themeColors.lightNeutral62\n }\n css={{ WebkitTapHighlightColor: \"transparent\" }}\n hover={{ color: themeColors.lightNeutral24 }}\n key={tool.name}\n onClick={() => handleToolOnClick(tool)}\n paddingHorizontal={2}\n paddingVertical={2}\n theme={false}\n >\n <Box position=\"relative\">\n {indicatorVisible?.[tool.name] && (\n <IndicatorDot right={-0.5} top={-0.5} />\n )}\n <Icon\n name={\n open && currentContent === tool\n ? tool.icons.active\n : tool.icons.static\n }\n size=\"20px\"\n />\n </Box>\n </Button>\n </StackView>\n ))}\n </StackView>\n </StackView>\n <UiExtensionDataContext>\n {mounted && (\n <Drawer\n id={`toolbarDrawer${currentContent.name}`}\n bottom={`${NAVBAR_HEIGHT}px`}\n height={`calc(100% - ${NAVBAR_HEIGHT}px)`}\n overflow=\"auto\"\n position=\"absolute\"\n >\n <currentContent.component {...currentToolProps} />\n </Drawer>\n )}\n </UiExtensionDataContext>\n </>\n ) : (\n <StackView\n height=\"100vh\"\n position=\"absolute\"\n right={0}\n width={\n open\n ? `calc(${DRAWER_WIDTH}px + ${TOOLBAR_WIDTH}px)`\n : `${TOOLBAR_WIDTH}px`\n }\n transition={`all ${DURATION}ms ease-in-out`}\n >\n <StackView\n backgroundColor=\"surface\"\n borderLeftColor=\"separatorTertiary\"\n borderLeftWidth={1}\n grow={1}\n paddingVertical={1}\n spacing={<Divider margin={2} />}\n zIndex={2}\n position=\"absolute\"\n right={0}\n height=\"100%\"\n width={`${TOOLBAR_WIDTH}px`}\n >\n <StackView\n alignment=\"center\"\n data-pendo=\"toolbar-profile-support-wrapper\"\n spacing={2}\n >\n <Button\n data-pendo=\"toolbar-profile\"\n onClick={() => toggleDrawer(UserProfile)}\n radius={0}\n theme={false}\n >\n <Avatar\n alt={`${userName}'s avatar`}\n hover={{ outlineColor: themeColors.lightNeutral62 }}\n outlineColor={\n open && currentContent.name == \"Profile\"\n ? themeColors.lightNeutral62\n : \"transparent\"\n }\n outlineOffset=\"2px\"\n outlineStyle=\"solid\"\n outlineWidth=\"2px\"\n size=\"sm\"\n source={userAvatarPath}\n />\n </Button>\n\n <Button\n color={themeColors.lightNeutral62}\n data-pendo=\"toolbar-support\"\n hover={{\n color: themeColors.lightNeutral24,\n }}\n icon={{\n name: \"general.outlinedQuestionCircle\",\n pointerEvents: \"none\",\n size: \"20px\",\n }}\n id=\"jsLaunchHelpdesk\"\n title=\"Help\"\n theme={false}\n />\n </StackView>\n <StackView alignment=\"center\" spacing={2}>\n {TOOLS.map((tool) => (\n <Box\n data-pendo={`toolbar-${tool.name.toLowerCase()}`}\n key={tool.name}\n position=\"relative\"\n >\n {indicatorVisible?.[tool.name] && <IndicatorDot />}\n <Button\n color={\n open && currentContent === tool\n ? themeColors.lightNeutral24\n : themeColors.lightNeutral62\n }\n hover={{\n color: themeColors.lightNeutral24,\n }}\n icon={{\n name:\n open && currentContent === tool\n ? tool.icons.active\n : tool.icons.static,\n size: \"20px\",\n }}\n key={tool.name}\n onClick={() => toggleDrawer(tool)}\n title={`Open ${tool.name} drawer`}\n theme={false}\n />\n </Box>\n ))}\n </StackView>\n </StackView>\n <UiExtensionDataContext>\n {mounted && (\n <Drawer\n hasShadow\n id={`toolbarDrawer${currentContent.name}`}\n width={`${DRAWER_WIDTH}px`}\n >\n <currentContent.component {...currentToolProps} />\n </Drawer>\n )}\n </UiExtensionDataContext>\n </StackView>\n )}\n </ThemeProvider>\n )\n}\n","import React from \"react\"\nimport { debounce } from \"../utils\"\n\nexport const useDebounce = <\n F extends (...args: Parameters<F>) => ReturnType<F>\n>(\n fn: F,\n t: number = 0\n): F => {\n return React.useMemo(() => <F>debounce(fn, t), [])\n}\n","import {\n Avatar,\n Button,\n Divider,\n GridView,\n Heading,\n Icon,\n Link,\n StackView,\n Text,\n} from \"@planningcenter/tapestry-react\"\nimport React from \"react\"\n\nimport { default as themeColors } from \"../../colors\"\nimport { remove } from \"../../connected_people_provider\"\nimport useStore from \"../../hooks/use_store\"\n\nconst requestClearConnectedPeopleCache = () => remove()\n\ninterface Props {\n closeDrawer: () => void\n linkToProfile: boolean\n loginSettingsUrl: string\n logoutUrl: string\n profileUrl: string\n userAvatarPath: string\n userName: string\n}\n\nexport function UserProfile({\n closeDrawer,\n linkToProfile,\n loginSettingsUrl,\n logoutUrl,\n profileUrl,\n userName,\n userAvatarPath,\n}: Props) {\n const { mfaConfigured, mfaEnabled } = useStore()\n\n return (\n <StackView axis=\"vertical\" spacing={<Divider />}>\n <GridView\n columns=\"auto 1fr auto\"\n alignment=\"start\"\n spacing={2}\n padding={2}\n paddingTop={1}\n width=\"100%\"\n >\n <Avatar source={userAvatarPath} size=\"md\" />\n <StackView axis=\"vertical\" spacing={1} grow={0} shrink={1}>\n <Heading\n level={3}\n weight={600}\n paddingTop={0.5}\n color={themeColors.lightNeutral12}\n >\n {userName}\n </Heading>\n {linkToProfile && (\n <Link to={profileUrl} style={{ color: themeColors.lightNeutral45 }}>\n My profile\n </Link>\n )}\n {mfaEnabled && (\n <>\n <Link\n to={loginSettingsUrl}\n style={{ color: themeColors.lightNeutral45 }}\n >\n My login settings\n </Link>\n <StackView\n axis=\"horizontal\"\n alignment=\"center\"\n spacing={0.5}\n width=\"100%\"\n >\n <Icon\n name={mfaConfigured ? \"general.lock\" : \"general.unlock\"}\n size=\"sm\"\n color={\n mfaConfigured ? themeColors.success25 : themeColors.danger45\n }\n />\n <Text\n size={5}\n weight={400}\n color={themeColors.lightNeutral62}\n wrap={true}\n >\n Two-step verification {mfaConfigured ? \"active\" : \"inactive\"}\n </Text>\n </StackView>\n </>\n )}\n </StackView>\n <Button\n icon={{\n fill: themeColors.lightNeutral24,\n name: \"general.x\",\n size: \"md\",\n }}\n onClick={closeDrawer}\n title=\"Close\"\n variant=\"naked\"\n theme={false}\n hover={{\n backgroundColor: themeColors.lightNeutral95,\n }}\n />\n </GridView>\n <form method=\"POST\" action={logoutUrl}>\n <Button\n data-turbolinks={false}\n onClick={() => {\n requestClearConnectedPeopleCache()\n return\n }}\n style={{ padding: 0 }}\n theme={false}\n type=\"submit\"\n width=\"100%\"\n >\n <StackView\n distribution=\"space-between\"\n alignment=\"center\"\n axis=\"horizontal\"\n grow={1}\n paddingHorizontal={3}\n paddingVertical={2}\n >\n <Text color={themeColors.lightNeutral45}>Log out</Text>\n <Icon name=\"general.intoBox\" fill={themeColors.lightNeutral45} />\n </StackView>\n </Button>\n </form>\n </StackView>\n )\n}\n","import { useEffect, useState } from \"react\"\n\nfunction useMediaQuery(query: string): boolean {\n const getMatches = (query: string): boolean => {\n // Prevents SSR issues\n if (typeof window !== \"undefined\") {\n return window.matchMedia(query).matches\n }\n return false\n }\n\n const [matches, setMatches] = useState<boolean>(getMatches(query))\n\n function handleChange() {\n setMatches(getMatches(query))\n }\n\n useEffect(() => {\n const matchMedia = window.matchMedia(query)\n\n // Triggered at the first client-side load and if query changes\n handleChange()\n\n // Listen matchMedia\n if (matchMedia.addListener) {\n matchMedia.addListener(handleChange)\n } else {\n matchMedia.addEventListener(\"change\", handleChange)\n }\n\n return () => {\n if (matchMedia.removeListener) {\n matchMedia.removeListener(handleChange)\n } else {\n matchMedia.removeEventListener(\"change\", handleChange)\n }\n }\n }, [query])\n\n return matches\n}\n\nexport default useMediaQuery\n"],"names":["_excluded","defaultFetch","url","options","fetch","_extends","credentials","mode","railsCsrfFetch","_ref","_window","_window$Rails","_document$querySelect","headers","rest","_objectWithoutPropertiesLoose","window","Rails","csrfToken","document","querySelector","getAttribute","apiRequest","_temp","_ref2","_ref2$method","method","_ref2$data","data","Accept","redirect","body","JSON","stringify","then","response","json","ok","e","console","warn","useLocalStorage","key","initialValue","_useState","useState","item","localStorage","getItem","parse","error","storedValue","setStoredValue","localStorageRepresentation","useEffect","setItem","dropKey","removeItem","currentState","listeners","useJoltChannelSubscription","channelName","_ref$enableJoltLoggin","enableJoltLogging","_ref$enabled","enabled","env","fetchSubscribeToken","_ref$joltPromise","joltPromise","Promise","resolve","_React$useState","React","joltChannel","setJoltChannel","_React$useState2","joltInstance","setJoltInstance","_React$useState3","usingIndependentJoltInstance","setUsingIndependentJoltInstance","subscribeToJoltChannel","useCallback","j","jolt","fetchSubscribeTokenFn","_channel","cid","reject","Jolt","wssUrl","fetchAuthTokenFn","pcoUrl","attributes","id","logToConsole","channel","subscriptions","find","s","subscribe","pcoPageExpiredHandler","event","_window$pcoPageExpire","hasOwnProperty","PCOPageExpiredCurrentPersonACID","pcoPageExpired","currentPersonACID","disconnect","addEventListener","removeEventListener","useJoltEffect","channelSubscription","eventName","callback","bind","unbind","store","Set","getState","setState","newState","forEach","listener","add","HSLtoHSLA","hsl","a","hslArray","replace","split","l","debounce","func","wait","timeout","args","slice","call","arguments","context","this","clearTimeout","setTimeout","apply","noop","mapApps","resp","_resp$data","_resp$data$attributes","apps","remove","ConnectedPeopleProvider","_React$Component","props","_this","state","connectedPeople","_inheritsLoose","_proto","prototype","_this2","configuredFetch","unlink","location","meta","redirect_to","toId","returnPath","return_path","_ref3","componentDidMount","render","switch","Component","defaultProps","PointBreak","width","innerWidth","setWindowWidth","_assertThisInitialized","componentWillUnmount","breakpointString","DisplaySwitch","_React$Component2","_proto2","breakpoint","smallBreakpoints","indexOf","smallTopbar","notSmallTopbar","Accounts","createElement","fill","color","d","_ref$color","_ref4","_ref5","_ref6","_ref7","_ref8","_ref9","_ref10","_ref11","_ref12","_ref13","Squircle","MonoAppIcon","appName","colors","style","_ref2$size","size","platformProps","xmlns","height","viewBox","role","display","AppSymbols","base0","_ref$size","_ref3$size","_ref4$size","_ref5$size","_ref6$size","_ref7$size","_ref8$size","_ref9$size","_ref10$size","_ref11$size","_ref12$size","MonoAppName","MonoAppText","slightBackgroundTransition","transition","fontFamily","IEFlex1","flex","_excluded2","_excluded5","_excluded7","_excluded8","_excluded9","BlankStateIcon","_ref2$dark","dark","_ref2$id","nativeProps","clipPath","opacity","DisclosureChevronIcon","base3","points","ExclamationTriangle","_ref7$fill","X","_ref9$fill","Unbutton","WebkitAppearance","appearance","backgroundColor","border","cursor","outline","padding","AppsButton","displayIconOnly","expanded","onClick","_ref$style","down","setDown","entered","setEntered","onMouseDown","onMouseEnter","onMouseLeave","onMouseUp","alignItems","base1","base2","paddingLeft","paddingRight","whiteSpace","Fragment","fontSize","fontWeight","marginLeft","margin","x1","y1","x2","y2","gradientUnits","offset","stopColor","gradientTransform","xlinkHref","cx","cy","r","transform","ColorAppIcon","ColorAppSquircles","getAppsSwitchProductPath","productName","_window$location","_window$location$path","basePath","toLowerCase","referer","pathname","toString","params","URLSearchParams","append","HoverableListItem","_ref$active","active","_ref$component","component","C","Outsider","container","handleOutsideClick","contains","target","stopPropagation","preventDefault","onOutsideClick","_this$props","cleanup","ref","c","PopupRoot","alignSelf","position","Popup","background","borderRadius","boxShadow","overflow","AppsMenu","toggle","visible","accountsProduct","name","homeProduct","restProducts","concat","filter","sort","b","localeCompare","listItemProps","verticalAlign","marginTop","visibility","minWidth","href","borderBottom","marginRight","map","i","isFirst","isLast","length","paddingBottom","paddingTop","borderTop","textDecoration","lineHeight","appsMenuFormatter","attr","arr","reduce","acc","connectedPeopleMenuFormatter","useStore","selector","useSyncExternalStore","StyledRoot","children","className","MozOsxFontSmoothing","WebkitFontSmoothing","danger43","danger45","danger47","danger93","danger97","darkNeutral07","darkNeutral12","darkNeutral15","darkNeutral17","darkNeutral19","darkNeutral24","darkNeutral32","darkNeutral50","darkNeutral68","darkNeutral88","darkNeutral98","home","brand62","interaction45","interaction50","interaction55","interaction66","interaction91","interaction93","lightNeutral12","lightNeutral24","lightNeutral45","lightNeutral62","lightNeutral81","lightNeutral88","lightNeutral93","lightNeutral95","lightNeutral97","lightNeutral98","lightNeutral100","success23","success25","success27","success91","success97","warning49","warning55","warning63","warning94","warning97","UserMenu","hasConnectedPeople","requestClearAppsCache","requestClearConnectedPeopleCache","requestSwitchConnectedPerson","requestUnlinkConnectedPeople","setUserMenuVisible","userMenuVisible","logoutUrl","maxHeight","maxWidth","right","textTransform","textAlign","listStyleType","person","textOverflow","organization_name","ThemeProvider","Divider","action","Button","hover","themeColors","theme","type","StackView","distribution","alignment","axis","grow","paddingHorizontal","paddingVertical","spacing","Text","Icon","Hoverable","_ref$hover","_ref$innerRef","innerRef","UserMenuTrigger","orgName","requestConnectedPeopleFetch","showOrgName","text","Topbar","appsMenuVisible","setAppsMenuVisible","routesVisible","setRoutesVisible","_useStore","notificationsEnabled","requestAppsFetch","routes","notifications","search","hideRoutes","showRoutes","useDummyNotifications","Provider","announcements","initialAnnouncements","dismissAnnouncements","newAnnouncements","pcURL","formatter","obj","ownProps","Object","keys","resArray","Array","entries","entry","StyledAnnouncement","justifyContent","StyleProvider","_React$Component3","_this$props2","join","trim","PlatformAnnouncements","_React$Component4","_proto4","actions","Boolean","announcement","renderItem","StyledDismissButton","_objectDestructuringEmpty","borderWidth","XSymbol","DissmissibleAnnouncement","dangerouslySetInnerHTML","__html","html","_excluded3","boxSizing","Avatar","_ref$url","incomingUrl","backgroundImage","backgroundPosition","backgroundSize","ClientStorage","update","value","forceUpdate","undefined","AccountSettingsLink","accountsName","CloseMenuButton","getLoginProfilePath","userId","MFAStatus","isActive","statusColor","marginBottom","topbarTheme","generateColorScale","designSystem","baseColor","icons","churchCenter","general","people","toolbar","UserProfileMenu","linkToProfile","mfaConfigured","mfaEnabled","userName","shrink","userAvatarPath","weight","truncate","Link","as","underline","icon","title","HeadingUppercase","List","dividerColor","Item","UserMenuAppLockup","routesMenuVisible","setRoutesMenuVisible","productSwitcherVisible","setProductSwitcherVisible","appColors","activeRoute","CurrentRouteComponent","currentRouteComponent","currentRouteText","borderColor","left","top","LocalStorageProvider","MozUserSelect","WebkitTapHighlightColor","WebkitUserSelect","bottom","msUserSelect","userSelect","forcePropagation","borderRight","flexDirection","WebkitOverflowScrolling","overflowY","charAt","toUpperCase","Drawer","_ref$bottom","_ref$hasShadow","hasShadow","_ref$height","_ref$id","_ref$overflow","_ref$position","_ref$width","elevation","open","zIndex","DrawerHeader","closeDrawer","Box","DrawerHeading","Heading","letterSpacing","level","ActionType","INDICATOR_STYLES","ScrollContainer","overflowTop","setOverflowTop","_useState2","overflowBottom","setOverflowBottom","containerRef","useRef","bottomEdgeRef","topEdgeRef","handleResize","current","scrollHeight","clientHeight","scrollTop","root","threshold","bottomObserver","IntersectionObserver","isIntersecting","topObserver","bottomTarget","topTarget","observe","resizeObserver","ResizeObserver","unobserve","OverflowIndicator","edge","basis","pointerEvents","SwitchView","activeIndex","childCount","Children","count","validatedIndex","view","index","inView","initialState","currentContent","mounted","reducer","mount","payload","content","unmount","close","set","MessagesContext","createContext","MessagesProvider","useMessages","useContext","Error","LoadingErrorIndicator","align","_props$error","loading","switchToNewMessageView","preLoading","child","isValidElement","listType","css","UnreadBadge","unread","clampedValue","Badge","radius","Preview","_latestMessage$props","displayTitle","latestMessage","setActiveChannel","_useMessages","setActionsOpenForChannel","switchToChannelView","channelActionsOpen","actionsOpenForChannel","latestMessageText","handleChannelClick","GridView","borderBottomColor","borderBottomWidth","columns","minHeight","onKeyDown","tabIndex","WebkitBoxOrient","WebkitLineClamp","last_message_at","datetimeFmt","date","year","getTimeStamp","Dropdown","iconRight","lockScrollWhileOpen","onClose","onOpen","placement","popoverProps","shouldFlip","variant","onSelect","FILTERS","ChannelListView","setLoading","queryInProgress","_loading","channelsLoading","useChatContext","channelsQueryState","Spinner","thickness","trackColor","ChannelList","filters","Paginator","InfiniteScroll","MessageInput","_useMessageInputConte","useMessageInputContext","closeEmojiPicker","emojiPickerIsOpen","handleEmojiKeyDown","handleSubmit","isUploadEnabled","maxFilesLeft","numberOfUploads","openEmojiPicker","uploadNewFiles","multipleUploads","useChannelStateContext","_useDropzone","useDropzone","disabled","multiple","noClick","onDrop","getRootProps","isDragActive","isDragReject","isInputChildOfModal","useIsInputChildOfModal","wrapInputRef","useAutoFocus","marginHorizontal","refKey","DropzoneUI","AttachmentPreviewList","ChatAutoComplete","placeholder","EmojiPickerUI","FileUploadUI","useMemo","nanoid","inputEl","getElementById","htmlFor","click","UploadButton","onFileChange","tooltip","EmojiPickerIcon","EmojiPicker","small","borderStyle","isChildOfModal","setIsChildOfModal","modal","input","_wrapInputRef$current","_input$value","_input$value2","focus","setSelectionRange","ChannelView","_channel$data","switchToChannelListView","Channel","Input","MessageInputComponent","EditMessageInput","Window","MessageList","messageActions","NewMessageView","from","_","opt","TeamMemberListItem","USER","image","Messages","chatClient","apiKey","userData","tokenOrProvider","setChatClient","client","StreamChat","didUserConnectInterrupt","connectionPromise","connectUser","disconnectUser","log","useClient","setActiveIndex","Chat","static","Eyebrow","MarkReadDot","_ref$isRead","elementRef","setValue","handleMouseEnter","handleMouseLeave","isRead","hoverRef","isHover","node","NotificationItem","_ref2$mobile","mobile","_ref2$onMarkAsRead","onMarkAsRead","onToggleRead","showBottomBorder","notification","createdAt","link","organizationTimeZone","setIsActive","datetimeFmtOptions","timeZone","_e","flexGrow","borderLeft","Calendar","Giving","Groups","People","Publishing","Registrations","Services","datetime","NotificationsMenuBlankState","_ref$dark","description","_ref$title","buildNotificationFromApiResponse","_findInIncluded","_findInIncluded$attri","_findInIncluded2","_findInIncluded2$attr","_resp$relationships","_resp$relationships$w","_resp$relationships$w2","_resp$attributes$read","findInIncluded","included","relationships","app","notificationData","web_payloads","Date","created_at","read_at","SectionHeaderButton","SectionHeaderTitle","Notifications","showRead","setShowRead","defaultStyle","duration","transitionStyles","entering","_store$getState$notif","_useNotifications","setNotifications","isLoading","setIsLoading","hasError","setHasError","_notificationsOrganiz","_sort$reduce","read","notificationsOrganizer","fetchNotifications","exception","extractPayloadFromJoltMessage","updateStateFromJoltMessage","message","fetchNotification","candidate","removeNotification","joltMessageNotificationDataPayload","newNotifications","markAsReadOrUnread","notificationIds","readOrUnread","source","n","includes","handleMarkAllAsRead","unreadIds","u","handleMarkAsRead","handleToggleRead","useNotifications","TransitionGroup","exit","idx","Transition","defaultHandlerFunc","LoadingIndicator","components","Tasks","crossFrameMessages","setCrossFrameMessages","latestJoltMessage","setLatestJoltMessage","_useState3","requestedJoltChannel","setRequestedJoltChannel","postCrossFrameMessage","handler","frame","src","iframeSource","foundFrame","iframe","cssText","appendChild","getFrame","contentWindow","postMessage","useCrossFrameMessaging","_message$data","parsedMessage","homeTasksMessage","cfm","connection_id","subscribeUrl","handleJoltMessage","timestamp","getTime","sendNotificationThatTaskListChanged","UiExtensionFirstPartyComponent","extensionId","loadingFallback","additionalComponents","requestJoltChannel","trackPendo","properties","pendo","track","IndicatorDot","_topbarResponse$data","_topbarResponse$data$","_topbarResponse$data2","_topbarResponse$data3","_topbarResponse$data4","_topbarResponse$data5","_topbarResponse$data6","_topbarResponse$data7","_topbarResponse$data8","_topbarResponse$data9","_topbarResponse$data10","_topbarResponse$data11","_ref$configuredFetch","_ref$formatter","topbarResponse","_useLocalStorage","setLocalResp","setResp","useTopbarAPI","has_connected_people","features","mfa_configured","notificationsDisabled","org_time_zone","messagingEnabled","notificationsJoltChannel","notificationsHasUnread","fn","t","fetchHasUnread","useNotificationsHasUnread","indicatorVisible","_ref$dot","dot","_ref$dotFill","dotFill","_ref$fill","bellPath","stroke","mask","x","y","_React$useState4","_React$useState5","_ref$html","_ref$onClick","_event","updateDismissed","_ref8$fill","_ref$linkToProfile","_useToolbarReducer","useReducer","overrides","dispatch","scrollTo","loginSettingsUrl","profileUrl","TOOLS","openDrawer","toggleDrawer","UserProfile","to","wrap","OriginalUserProfile","isMobile","query","getMatches","matchMedia","matches","setMatches","handleChange","addListener","removeListener","useMediaQuery","visibleWindowHeight","setVisibleWindowHeight","useLayoutEffect","innerHeight","currentToolProps","borderTopColor","borderTopWidth","NAVBAR_HEIGHT","tool","_document$getElementB","behavior","handleToolOnClick","UiExtensionDataContext","DRAWER_WIDTH","TOOLBAR_WIDTH","borderLeftColor","borderLeftWidth","alt","outlineColor","outlineOffset","outlineStyle","outlineWidth"],"mappings":"+3DAEA,IAAAA,EAAA,CAAA,WAAaC,EAAsB,SAACC,EAAKC,GACvC,OAAOC,MAAMF,EAAGG,GAAIC,YAAa,UAAWC,KAAM,QAAWJ,GAC/D,EAEaK,EAAwB,SAACN,EAAGO,OASbC,EAAAC,EAAAC,EATiBC,EAAOJ,EAAPI,QAAYC,EAAIC,EAAAN,EAAAT,GAC3D,OAAOI,MAAMF,EAAGG,EACdQ,CAAAA,QAAOR,EAAA,GAAOQ,EAAS,CAAA,gBASjB,OAANH,EAAAM,SAAa,OAAPL,EAAND,EAAQO,YAAF,EAANN,EAAeO,eACfN,OAD0BA,EAC1BO,SACGC,cAAc,iCADjBR,EAAAA,EAEIS,aAAa,aACjB,QAZGP,EACHR,CAAAA,YAAa,UACbC,KAAM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ApQ,MAAOsQ,GAAYzC,eACR,aAAA,kBACXwC,MAAO,CACLrQ,MAAOsQ,GAAY3C,gBAErB+J,KAAM,CACJhO,KAAM,iCACNoT,cAAe,OACf3b,KAAM,QAERvH,GAAG,mBACH+d,MAAM,OACNpH,OAAO,KAGXjY,UAAAwH,cAAC2Q,EAASA,UAAC,CAAAE,UAAU,SAASK,QAAS,GACpCkkB,EAAMxqB,IAAI,SAACisB,UACVr+B,EAAC,QAAAwH,cAAA2a,EAAAA,6BACwBkc,EAAKjtB,KAAKrC,cACjC9Q,IAAKogC,EAAKjtB,KACVV,SAAS,aAEQ,MAAhBwqB,OAAgB,EAAhBA,EAAmBmD,EAAKjtB,QAASpR,UAACwH,cAAA0xB,GAAe,MAClDl5B,EAAAA,QAACwH,cAAAsQ,UACCpQ,MACEqa,GAAQoD,IAAmBkZ,EACvBrmB,GAAY3C,eACZ2C,GAAYzC,eAElBwC,MAAO,CACLrQ,MAAOsQ,GAAY3C,gBAErB+J,KAAM,CACJhO,KACE2Q,GAAQoD,IAAmBkZ,EACvBA,EAAKlgB,MAAM3O,OACX6uB,EAAKlgB,MAAY,OACvBtV,KAAM,QAER5K,IAAKogC,EAAKjtB,KACV9E,QAAS,WAAA,OAAMwwB,EAAauB,EAAK,EACjChf,cAAegf,EAAKjtB,KAAI,UACxB6G,OAAO,IAEL,KAIZjY,EAAAA,QAACwH,cAAAi3B,EAAsBA,4BACpBrZ,GACCplB,EAAC,QAAAwH,cAAA6Z,GACC,CAAAG,WACA,EAAAlgB,GAAE,gBAAkB6jB,EAAe/T,KACnC3K,MAAUi4B,SAEV1+B,EAAA,QAAAwH,cAAC2d,EAAezV,UAAS9T,EAAA,CAAA,EAAKqiC,OAQ9C"}
1
+ {"version":3,"file":"topbar.js","sources":["../modules/api_request.ts","../modules/hooks/use_local_storage.ts","../modules/hooks/use_topbar_api.ts","../modules/store.js","../modules/hooks/jolt.ts","../modules/utils.ts","../modules/hooks/use_notifications_has_unread.ts","../modules/apps_provider.tsx","../modules/connected_people_provider.tsx","../modules/display_switch.tsx","../modules/mono_app_symbols.tsx","../modules/mono_app_icon.tsx","../modules/mono_app_text.tsx","../modules/mono_app_name.tsx","../modules/styles.tsx","../modules/symbols.tsx","../modules/unbutton.tsx","../modules/components/apps_button.tsx","../modules/color_app_squircles.tsx","../modules/color_app_icon.tsx","../modules/get_apps_switch_product_path.tsx","../modules/components/hoverable_list_item.tsx","../modules/components/outsider.tsx","../modules/components/popover_root.tsx","../modules/components/popup.tsx","../modules/components/apps_menu.tsx","../modules/formatters.tsx","../modules/hooks/use_store.tsx","../modules/styled_root.tsx","../modules/colors.tsx","../modules/components/popup_root.tsx","../modules/not_small_topbar/user_menu.tsx","../modules/components/hoverable.tsx","../modules/not_small_topbar/user_menu_trigger.tsx","../modules/not_small_topbar/index.tsx","../modules/platform_announcements.tsx","../modules/product_announcement.tsx","../modules/avatar.tsx","../modules/client_storage.tsx","../modules/small_topbar/account_settings_link.tsx","../modules/small_topbar/close_menu_button.tsx","../modules/get_login_profile_path.tsx","../modules/mfa_status.tsx","../modules/theme.ts","../modules/small_topbar/user_profile_menu.tsx","../modules/small_topbar/index.tsx","../modules/toolbar/tools/chat/hooks/use_channels_loading.ts","../modules/toolbar/tools/chat/chat_context.tsx","../modules/toolbar/tools/chat/hooks/use_chat.tsx","../modules/toolbar/tools/chat/chat_api_context.tsx","../modules/toolbar/tools/chat/hooks/use_chat_api.ts","../modules/toolbar/tools/chat/utils/index.ts","../modules/toolbar/tools/chat/hooks/use_chat_stream_user.ts","../modules/toolbar/components/drawer.tsx","../modules/toolbar/components/drawer_header.tsx","../modules/toolbar/components/drawer_heading.tsx","../modules/toolbar/components/scroll_container.tsx","../modules/toolbar/hooks/use_toolbar_reducer.tsx","../modules/toolbar/components/switch_view.tsx","../modules/toolbar/tools/chat/components/channel_details_view/section.tsx","../modules/toolbar/tools/chat/components/channel_details_view/groups.tsx","../modules/toolbar/tools/chat/components/person_list_item/avatar.tsx","../modules/toolbar/tools/chat/components/person_list_item/person.tsx","../modules/toolbar/tools/chat/components/child_notice.tsx","../modules/toolbar/tools/chat/components/channel_details_view/people.tsx","../modules/toolbar/tools/chat/components/channel_details_view/settings.tsx","../modules/toolbar/tools/chat/components/channel_details_view/title.tsx","../modules/toolbar/tools/chat/components/channel_details_view/index.tsx","../modules/toolbar/tools/chat/components/channel_details_view/hooks/use_chat_groups.ts","../modules/toolbar/tools/chat/components/channel_details_view/hooks/use_chat_members.ts","../modules/toolbar/tools/chat/components/channel_details_view/hooks/use_chat_member_ability.ts","../modules/toolbar/tools/chat/components/channel_list_view/loading_error_indicator.tsx","../node_modules/@babel/runtime/helpers/esm/extends.js","../node_modules/remove-accents/index.js","../node_modules/match-sorter/dist/match-sorter.esm.js","../modules/toolbar/tools/chat/constants.ts","../modules/toolbar/tools/chat/components/services/utils/index.ts","../modules/toolbar/tools/chat/components/channel_list_view/list.tsx","../modules/toolbar/tools/chat/components/channel_metas.tsx","../modules/toolbar/tools/chat/components/channel_list_view/avatar_group.tsx","../modules/toolbar/tools/chat/components/channel_list_view/preview.tsx","../modules/toolbar/tools/chat/components/channel_list_view/channel_list_blank_state.tsx","../modules/toolbar/tools/chat/components/channel_list_view/index.tsx","../modules/toolbar/tools/chat/components/channel_view/hooks/use_reactions.ts","../modules/toolbar/tools/chat/components/channel_view/hooks/use_emojis.ts","../modules/toolbar/tools/chat/components/channel_view/custom_reaction_selector.tsx","../modules/toolbar/tools/chat/components/channel_view/custom_reactions_list.tsx","../modules/toolbar/tools/chat/components/channel_view/message_input.tsx","../modules/toolbar/tools/chat/components/channel_view/index.tsx","../modules/toolbar/tools/chat/components/services/hooks/use_services_chat_filter.ts","../modules/toolbar/tools/chat/components/services/people.tsx","../modules/toolbar/tools/chat/components/services/hooks/use_chat_people.ts","../modules/toolbar/tools/chat/components/services/plans.tsx","../modules/toolbar/tools/chat/components/services/teams.tsx","../modules/toolbar/tools/chat/components/services/hooks/use_team_options.ts","../modules/toolbar/tools/chat/components/services/people_blank_state.tsx","../modules/toolbar/tools/chat/components/services_chat_options.tsx","../modules/toolbar/tools/chat/components/new_chat_view.tsx","../modules/toolbar/tools/chat/components/index.ts","../modules/toolbar/tools/chat/index.tsx","../modules/toolbar/tools/chat/hooks/use_client.ts","../modules/components/eyebrow.tsx","../modules/components/notification_item.tsx","../modules/hooks/use_hover.tsx","../modules/components/notifications_menu_blank_state.tsx","../modules/hooks/use_notifications.ts","../modules/toolbar/tools/notifications.tsx","../modules/toolbar/tools/tasks.tsx","../modules/toolbar/index.tsx","../modules/hooks/use_debounce.ts","../modules/toolbar/components/user_profile.tsx","../modules/hooks/use_media_query.tsx"],"sourcesContent":["export type Fetch = typeof fetch\n\nexport const defaultFetch: Fetch = (url, options) => {\n return fetch(url, { credentials: \"include\", mode: \"cors\", ...options })\n}\n\nexport const railsCsrfFetch: Fetch = (url, { headers, ...rest }) => {\n return fetch(url, {\n headers: { ...headers, \"X-CSRF-Token\": inferRailsCsrfToken() },\n ...rest,\n credentials: \"include\",\n mode: \"cors\",\n })\n}\n\nfunction inferRailsCsrfToken(): string | null {\n return (\n window?.Rails?.csrfToken() ||\n document\n .querySelector('meta[name=\"csrf-token\"]')\n ?.getAttribute(\"content\") ||\n null\n )\n}\n\nexport default function apiRequest(\n fetch: Fetch,\n url: string,\n { method = \"GET\", data = null } = {}\n): Promise<{ json: any; ok: boolean; response: Response }> {\n const options: RequestInit = {\n headers: {\n Accept: \"application/json\",\n \"Content-Type\": \"application/json\",\n },\n method,\n redirect: \"follow\",\n }\n\n if (data && method !== \"GET\") {\n options.body = JSON.stringify(data)\n }\n\n return fetch(url, options).then(\n (response) =>\n response\n .json()\n .then((json) => ({ json, ok: response.ok, response }))\n .catch(() => ({ json: null, ok: response.ok, response })),\n (e) => {\n console.warn(e)\n\n return { json: null, ok: false, response: null }\n }\n )\n}\n","import { useEffect, useState } from \"react\"\n\n// Adapted from https://usehooks.com/useLocalStorage\nfunction useLocalStorage(key: string, initialValue: any) {\n // State to store our value\n // Pass initial state function to useState so logic is only executed once\n const [storedValue, setStoredValue] = useState(() => {\n try {\n // Get from local storage by key\n const item = window.localStorage.getItem(key)\n\n // Parse stored json or if none return initialValue\n return item ? JSON.parse(item) : initialValue\n } catch (error) {\n // If error also return initialValue\n return initialValue\n }\n })\n\n // Reflect the state into localStorage as a side effect.\n const localStorageRepresentation = JSON.stringify(storedValue)\n useEffect(() => {\n window.localStorage.setItem(key, localStorageRepresentation)\n }, [key, localStorageRepresentation])\n\n // When we are done with this key, drop it from localStorage completely\n const dropKey = () => window.localStorage.removeItem(key)\n\n return { dropKey, setStoredValue, storedValue }\n}\n\nexport default useLocalStorage\n","import pcoUrl, { Environment } from \"@planningcenter/url\"\nimport { useEffect, useState } from \"react\"\n\nimport apiRequest, { Fetch } from \"../api_request\"\nimport { TopbarAPIResponse } from \"../interfaces\"\nimport useLocalStorage from \"./use_local_storage\"\n\nconst useTopbarAPI = ({\n configuredFetch,\n env,\n}: {\n configuredFetch: Fetch\n env: Environment\n}) => {\n const { storedValue: localResp, setStoredValue: setLocalResp } =\n useLocalStorage(\"Topbar\", {})\n const [resp, setResp] = useState<TopbarAPIResponse>(localResp)\n\n useEffect(() => {\n fetch()\n }, [])\n\n const fetch = () => {\n apiRequest(\n configuredFetch,\n `${pcoUrl(env)(\"api\")}/people/v2/me/topbar`\n ).then(({ json, ok }: { json: TopbarAPIResponse; ok: boolean }) => {\n if (ok) {\n setResp(json)\n setLocalResp(json)\n }\n })\n }\n\n return resp\n}\n\nexport default useTopbarAPI\n","function createStore(initialState) {\n let currentState = initialState\n const listeners = new Set()\n\n return {\n getState: () => currentState,\n setState: (newState) => {\n currentState = newState\n listeners.forEach((listener) => listener(currentState))\n },\n subscribe: (listener) => {\n listeners.add(listener)\n return () => listeners.delete(listener)\n },\n }\n}\n\nconst store = createStore({})\n\nexport default store\n","import Jolt, * as JoltLib from \"@planningcenter/jolt-client\"\nimport pcoUrl, * as PCO_URL from \"@planningcenter/url\"\nimport React, { useEffect } from \"react\"\n\nimport apiRequest, { railsCsrfFetch } from \"../api_request\"\nimport { JoltMessage } from \"../interfaces\"\n\nconst wssUrl = (env: PCO_URL.Environment) => {\n switch (env) {\n case \"development\":\n case \"test\":\n return \"wss://1csnwvu025.execute-api.us-east-1.amazonaws.com/v1/\"\n case \"staging\":\n return \"wss://xvk2ac1o3l.execute-api.us-east-1.amazonaws.com/v1/\"\n default:\n return \"wss://yxe88gasn3.execute-api.us-east-1.amazonaws.com/v1/\"\n }\n}\n\ntype UseJoltChannelSubscriptionProps = {\n channelName: string\n enableJoltLogging?: boolean\n enabled?: boolean\n env: PCO_URL.Environment\n fetchSubscribeToken: (cid: string) => Promise<string>\n joltPromise?: () => Promise<Jolt | undefined | void>\n}\n\nexport const useJoltChannelSubscription = ({\n channelName,\n enableJoltLogging = false,\n enabled = true,\n env,\n fetchSubscribeToken,\n joltPromise = () => Promise.resolve(),\n}: UseJoltChannelSubscriptionProps): JoltLib.ChannelSubscription => {\n const [joltChannel, setJoltChannel]: [\n JoltLib.ChannelSubscription,\n React.Dispatch<React.SetStateAction<JoltLib.ChannelSubscription>>\n ] = React.useState()\n const [joltInstance, setJoltInstance] = React.useState<Jolt>()\n const [usingIndependentJoltInstance, setUsingIndependentJoltInstance] =\n React.useState(false)\n\n const subscribeToJoltChannel = React.useCallback(async () => {\n let jolt = await joltPromise().then((j) => j)\n\n const fetchSubscribeTokenFn = async (_channel: string, cid: string) =>\n fetchSubscribeToken(cid)\n\n const fetchAuthTokenFn = async () =>\n apiRequest(\n railsCsrfFetch,\n `${pcoUrl(env)(\n \"api\"\n )}/notifications/v2/me/notifications_jolt_authorize`,\n {\n data: { data: { attributes: {} } },\n method: \"POST\",\n }\n ).then(({ json }) => json.data.id)\n\n if (!jolt) {\n setUsingIndependentJoltInstance(true)\n jolt = new Jolt(\n wssUrl(env),\n {\n fetchAuthTokenFn,\n fetchSubscribeTokenFn,\n },\n { logToConsole: enableJoltLogging }\n )\n }\n\n const channel =\n jolt.subscriptions.find((s) => s.channel === channelName) ||\n jolt.subscribe(channelName, { fetchSubscribeTokenFn })\n setJoltChannel(channel)\n setJoltInstance(jolt)\n }, [apiRequest, channelName, env, pcoUrl, railsCsrfFetch])\n\n React.useEffect(() => {\n if (enabled) {\n subscribeToJoltChannel()\n }\n }, [enabled, subscribeToJoltChannel])\n\n React.useEffect(() => {\n const pcoPageExpiredHandler = (event) => {\n if (!event.data.hasOwnProperty(\"PCOPageExpiredCurrentPersonACID\")) return\n if (\n event.data.PCOPageExpiredCurrentPersonACID ===\n window?.pcoPageExpired?.currentPersonACID\n )\n return\n if (joltInstance) joltInstance.disconnect()\n }\n\n window.addEventListener(\"message\", pcoPageExpiredHandler)\n return () => window.removeEventListener(\"message\", pcoPageExpiredHandler)\n }, [joltInstance])\n\n React.useEffect(() => {\n return () => {\n if (joltInstance && usingIndependentJoltInstance) {\n joltInstance.disconnect()\n }\n }\n }, [joltInstance])\n\n return joltChannel\n}\n\nexport const useJoltEffect = (\n channelSubscription: JoltLib.ChannelSubscription,\n eventName: string,\n callback: (data: JoltMessage) => unknown\n) => {\n return useEffect(() => {\n if (channelSubscription) {\n channelSubscription.bind(eventName, callback)\n\n return () => channelSubscription.unbind(eventName, callback)\n } else {\n return () => void 0\n }\n }, [channelSubscription, callback])\n}\n","export const capitalize = (s: string) => s.charAt(0).toUpperCase() + s.slice(1)\n\nexport const HSLtoHSLA = (hsl: string, a: number = 1) => {\n const hslArray = hsl.replace(/[a-z()%]/g, \"\").split(\" \")\n const h = hslArray[0]\n const s = hslArray[1]\n const l = hslArray[2]\n\n return `hsla(${h}, ${s}%, ${l}%, ${a})`\n}\n\nexport const debounce = (func, wait) => {\n let timeout\n\n return function (...args: any) {\n const context = this\n\n const later = () => {\n timeout = null\n func.apply(context, args)\n }\n\n clearTimeout(timeout)\n timeout = setTimeout(later, wait)\n\n if (!timeout) {\n func.apply(context, args)\n }\n }\n}\n","import React from \"react\"\nimport pcoUrl, * as PCO_URL from \"@planningcenter/url\"\nimport { ChannelSubscription } from \"@planningcenter/jolt-client\"\n\nimport useLocalStorage from \"./use_local_storage\"\nimport { useDebounce } from \"./use_debounce\"\nimport { useJoltEffect } from \"./jolt\"\nimport apiRequest, { defaultFetch } from \"../api_request\"\n\nconst noop = () => {}\n\ntype NotificationsHookProps = {\n enabled?: boolean\n env: PCO_URL.Environment\n joltChannel: ChannelSubscription\n}\n\nexport const useNotificationsHasUnread = ({\n env,\n enabled,\n joltChannel,\n}: NotificationsHookProps): boolean => {\n const { storedValue, setStoredValue } = useLocalStorage(\n \"Topbar:Notifications:hasUnread\",\n false\n )\n\n const fetchHasUnread = useDebounce(() => {\n const url = `${pcoUrl(env)(\"api\")}/notifications/v2/me/unread`\n\n apiRequest(defaultFetch, url)\n .then(({ json }) => {\n setStoredValue(json.data.attributes.unread)\n })\n .catch(noop)\n }, 300)\n\n React.useEffect(() => {\n if (enabled) {\n fetchHasUnread()\n }\n }, [enabled])\n\n useJoltEffect(\n enabled ? joltChannel : undefined,\n \"notifications.v2.events.notification.created\",\n fetchHasUnread\n )\n\n useJoltEffect(\n enabled ? joltChannel : undefined,\n \"notifications.v2.events.notification.updated\",\n fetchHasUnread\n )\n\n useJoltEffect(\n enabled ? joltChannel : undefined,\n \"notifications.v2.events.notification.destroyed\",\n fetchHasUnread\n )\n\n return storedValue\n}\n","import { useEffect } from \"react\"\nimport pcoUrl from \"@planningcenter/url\"\n\nimport apiRequest, { defaultFetch, railsCsrfFetch } from \"./api_request\"\nimport useTopbarAPI from \"./hooks/use_topbar_api\"\nimport { useJoltChannelSubscription } from \"./hooks/jolt\"\nimport { AppsProviderProps, TopbarAPIResponse } from \"./interfaces\"\nimport store from \"./store\"\nimport { useNotificationsHasUnread } from \"./hooks/use_notifications_has_unread\"\n\nexport const AppsProvider = ({\n configuredFetch = defaultFetch,\n env,\n formatter = mapApps,\n joltPromise,\n render,\n userId,\n}: AppsProviderProps) => {\n const topbarResponse = useTopbarAPI({ configuredFetch, env })\n const apps = formatter(topbarResponse)\n const hasConnectedPeople =\n topbarResponse?.data?.attributes?.has_connected_people\n const mfaEnabled =\n topbarResponse?.data?.attributes?.features?.includes(\"mfa_enabled\")\n const mfaConfigured = !!topbarResponse?.data?.attributes?.mfa_configured\n const notificationsEnabled = !window.notificationsDisabled\n const organizationTimeZone =\n topbarResponse?.data?.attributes?.org_time_zone || \"America/Los_Angeles\"\n const chatEnabled = topbarResponse?.data?.attributes?.features?.includes(\"chat_enabled\")\n\n const notificationsJoltChannel = useJoltChannelSubscription({\n channelName: `notifications.people.${userId}`,\n enableJoltLogging: true,\n enabled: true,\n env,\n fetchSubscribeToken: async (cid) => {\n const subscribeUrl = `${pcoUrl(env)(\n \"api\"\n )}/notifications/v2/me/notifications_jolt_subscribe`\n return apiRequest(railsCsrfFetch, subscribeUrl, {\n data: { data: { attributes: { cid } } },\n method: \"POST\",\n }).then(({ json }) => json.data.id)\n },\n joltPromise,\n })\n\n const notificationsHasUnread = useNotificationsHasUnread({\n env,\n enabled: true,\n joltChannel: notificationsJoltChannel,\n })\n\n useEffect(() => {\n const state = store.getState()\n\n store.setState({\n ...state,\n hasConnectedPeople,\n indicatorVisible: {\n ...state.indicatorVisible,\n Notifications: notificationsHasUnread\n },\n joltPromise,\n chatEnabled,\n mfaConfigured,\n mfaEnabled,\n notifications: {\n env,\n enabled: notificationsEnabled,\n joltChannel: notificationsJoltChannel,\n },\n notificationsEnabled,\n notificationsJoltChannel,\n organizationTimeZone,\n userId,\n })\n }, [\n joltPromise,\n mfaConfigured,\n mfaEnabled,\n notificationsEnabled,\n notificationsHasUnread,\n organizationTimeZone,\n userId,\n ])\n\n // TODO: remove `fetch` and `remove` (breaking changes)\n return render(apps || [], {\n fetch: () => {}, // no-op because we already have fresh data\n remove: () => {}, // no-op because we are no longer caching anyway\n })\n}\n\nexport function mapApps(resp: TopbarAPIResponse) {\n return resp?.data?.attributes?.apps || []\n}\n","import pcoUrl, { Environment } from \"@planningcenter/url\"\nimport React from \"react\"\n\nimport apiRequest, { defaultFetch, Fetch } from \"./api_request\"\nimport { ConnectedPerson } from \"./interfaces\"\n\nexport function remove() {\n window.localStorage.removeItem(\"Topbar:ConnectedPeople\")\n}\n\nexport class ConnectedPeopleProvider extends React.Component<\n {\n configuredFetch?: Fetch\n env: Environment\n render: (connectedPeople: ConnectedPerson[], callback: any) => JSX.Element\n },\n {\n connectedPeople: ConnectedPerson[]\n }\n> {\n constructor(props: any) {\n super(props)\n\n this.state = {\n connectedPeople: [],\n }\n }\n\n public static defaultProps = {\n configuredFetch: defaultFetch,\n }\n\n fetch() {\n apiRequest(\n this.props.configuredFetch,\n `${pcoUrl(this.props.env)(\"api\")}/login/v2/me/connected_people`\n ).then(({ json }) => {\n const connectedPeople = json.data\n\n return this.setState(\n {\n connectedPeople,\n },\n () =>\n window.localStorage.setItem(\n \"Topbar:ConnectedPeople\",\n JSON.stringify(connectedPeople)\n )\n )\n })\n }\n\n unlink() {\n apiRequest(\n this.props.configuredFetch,\n `${pcoUrl(this.props.env)(\"api\")}/login/v2/me/unlink`,\n {\n method: \"POST\",\n }\n ).then(({ json }) => {\n window.location = json.meta.redirect_to\n })\n }\n\n switch(toId: string, returnPath: string) {\n apiRequest(\n this.props.configuredFetch,\n `${pcoUrl(this.props.env)(\"api\")}/login/v2/me/switch_connected_person`,\n {\n data: {\n data: {\n attributes: {\n id: toId,\n return_path: returnPath,\n },\n },\n },\n method: \"POST\",\n }\n ).then(({ json }) => {\n window.location = json.meta.redirect_to\n })\n }\n\n componentDidMount() {\n const connectedPeople = JSON.parse(\n window.localStorage.getItem(\"Topbar:ConnectedPeople\")\n )\n\n if (connectedPeople) return this.setState({ connectedPeople })\n\n return this.fetch()\n }\n\n render() {\n return this.props.render(this.state.connectedPeople || [], {\n fetch: this.fetch.bind(this),\n remove: remove.bind(this),\n switch: this.switch.bind(this),\n unlink: this.unlink.bind(this),\n })\n }\n}\n","import React from \"react\"\n\nimport { debounce } from \"./utils\"\n\nexport class PointBreak extends React.Component<\n {\n render: (breakpoint: string) => React.ReactElement<any>\n },\n {\n width: number\n }\n> {\n constructor(props: any) {\n super(props)\n\n this.state = {\n width: window.innerWidth,\n }\n\n this.setWindowWidth = this.setWindowWidth.bind(this)\n }\n\n setWindowWidth() {\n this.setState({ width: window.innerWidth })\n }\n\n componentDidMount() {\n window.addEventListener(\"resize\", debounce(this.setWindowWidth, 100), false)\n }\n\n componentWillUnmount() {\n window.removeEventListener(\n \"resize\",\n debounce(this.setWindowWidth, 100),\n false\n )\n }\n\n breakpointString(width) {\n if (width < 480) return \"xs\"\n if (width < 600) return \"sm\"\n if (width < 720) return \"md\"\n if (width < 960) return \"lg\"\n return \"xl\"\n }\n\n render() {\n return <>{this.props.render(this.breakpointString(this.state.width))}</>\n }\n}\n\nexport class DisplaySwitch extends React.Component<\n {\n notSmallTopbar: (breakpointShortand: string) => React.ReactElement<any>\n smallBreakpoints: String[]\n smallTopbar: (breakpointShorthand: string) => React.ReactElement<any>\n },\n {}\n> {\n public static defaultProps = {\n smallBreakpoints: [\"xs\", \"sm\"],\n }\n\n render() {\n return (\n <PointBreak\n render={(breakpoint) => {\n if (this.props.smallBreakpoints.indexOf(breakpoint) !== -1) {\n return this.props.smallTopbar(breakpoint)\n }\n\n return this.props.notSmallTopbar(breakpoint)\n }}\n />\n )\n }\n}\n","import React from \"react\"\n\nexport function Squircle({ color = \"#fff\" }): JSX.Element {\n return (\n <path\n fill={color}\n d=\"M10.008.045C2.047.045.056,2.036.056,10s1.991,9.952,9.952,9.952S19.96,17.959,19.96,10,17.969.045,10.008.045Z\"\n />\n )\n}\n\nexport function Accounts({ color }): JSX.Element {\n return (\n <path\n fill={color}\n d=\"M16.95,9.28h0l-1.33-.23c-.12,0-.24-.04-.34-.11-.1-.07-.18-.16-.23-.27-.12-.45-.3-.89-.54-1.3-.04-.11-.05-.24-.03-.35,.02-.12,.08-.23,.16-.32l.78-1.1h0s0-.03,0-.04l-.03-.02-.04-.04-.87-.87-.05-.05h0s-.02-.02-.03,0l-1.11,.78c-.09,.08-.2,.13-.32,.16-.12,.02-.24,.01-.35-.03-.41-.24-.84-.42-1.3-.54-.11-.05-.2-.13-.27-.23-.07-.1-.11-.22-.11-.34l-.22-1.33h0s-.01-.03-.02-.03h-1.41s-.02,0-.02,.02l-.23,1.34c0,.12-.04,.24-.11,.34-.07,.1-.16,.18-.27,.23-.45,.12-.89,.3-1.3,.54-.11,.04-.24,.05-.35,.03-.12-.02-.23-.08-.32-.16l-1.1-.78h0s-.02-.01-.03,0l-.02,.03-.04,.04-.87,.87-.05,.05h0s0,.03,0,.04l.78,1.11c.08,.09,.13,.2,.16,.32,.02,.12,.01,.24-.03,.35-.24,.4-.42,.84-.54,1.29-.05,.11-.13,.2-.23,.27-.1,.07-.22,.11-.34,.11l-1.33,.22h0s-.02,0-.02,.02v1.41s0,.02,.02,.02l1.34,.23c.12,0,.24,.05,.34,.11,.1,.07,.18,.16,.23,.27,.12,.45,.3,.89,.54,1.29,.04,.11,.05,.24,.03,.35-.02,.12-.08,.23-.16,.32l-.78,1.11s0,.02,0,.03h0l.05,.06,.87,.87,.04,.04,.02,.02s.02,0,.03,0h0l1.1-.79c.09-.08,.2-.13,.32-.16,.12-.02,.24-.01,.35,.03,.4,.24,.84,.42,1.29,.54,.11,.05,.2,.13,.27,.23,.07,.1,.11,.22,.11,.34l.23,1.34s0,.02,.02,.02h1.41s.02,0,.02-.02h0l.22-1.34c0-.12,.05-.24,.11-.34,.07-.1,.16-.18,.27-.23,.45-.12,.89-.3,1.29-.54,.11-.04,.24-.05,.35-.03,.12,.02,.23,.08,.32,.16l1.11,.78s.02,0,.03,0h0l.05-.06,.87-.87,.04-.04,.02-.02s0-.02,0-.03h0l-.78-1.11c-.08-.09-.13-.2-.16-.32-.02-.12-.01-.24,.03-.35,.24-.4,.42-.84,.54-1.29,.05-.11,.13-.2,.23-.27s.22-.11,.34-.11l1.34-.23s.02,0,.02-.02v-1.4s0-.02-.02-.02Zm-4.67,3.01c-.45,.45-1.03,.76-1.65,.88-.63,.12-1.27,.06-1.86-.18-.59-.24-1.09-.66-1.45-1.19-.35-.53-.54-1.15-.54-1.79s.19-1.26,.54-1.79c.35-.53,.86-.94,1.45-1.19,.59-.24,1.24-.31,1.86-.18,.63,.12,1.2,.43,1.65,.88,.3,.3,.54,.66,.7,1.05,.16,.39,.25,.81,.25,1.24s-.08,.84-.25,1.24c-.16,.39-.4,.75-.7,1.05Z\"\n />\n )\n}\n\nexport function API({ color }): JSX.Element {\n return (\n <path\n fill={color}\n d=\"M11.08,12.387a3.277,3.277,0,0,0,.21-.86l1.47-.23-.25-1.63-1.48.22A3.167,3.167,0,0,0,9.93,8.5l.54-1.37-1.54-.6L8.39,7.9a3.393,3.393,0,0,0-1.76.27l-.92-1.15-1.3,1.03.93,1.16a3.462,3.462,0,0,0-.43.78A3.333,3.333,0,0,0,4.69,11l-1.49.23.25,1.69,1.59-.24a3.278,3.278,0,0,0,1.02,1.2l-.54,1.39,1.55.6.54-1.39a3.319,3.319,0,0,0,1.74-.27l.93,1.17,1.3-1.04-.93-1.17A3.258,3.258,0,0,0,11.08,12.387ZM9.81,11.9A1.953,1.953,0,0,1,7.29,13a1.942,1.942,0,1,1,2.52-1.1Zm5.89-4.32a1.581,1.581,0,0,0,.04-.38,2.066,2.066,0,0,0-1.39-1.95v-.82H12.97v.82A2.066,2.066,0,0,0,11.58,7.2a1.581,1.581,0,0,0,.04.38l-.71.41.7,1.2.7-.4a2.073,2.073,0,0,0,2.7,0l.7.4.7-1.2Zm-2.04.67A1.045,1.045,0,1,1,14.7,7.2,1.041,1.041,0,0,1,13.66,8.247Z\"\n />\n )\n}\n\nexport function Calendar({ color }): JSX.Element {\n return (\n <path\n fill={color}\n d=\"M14.18,6.5h-.91V5.8a.55.55,0,0,0-.55-.55h-.26a.55.55,0,0,0-.55.55v.7H8.09V5.8a.55.55,0,0,0-.55-.55H7.28a.55.55,0,0,0-.55.55v.7H5.82a.58.58,0,0,0-.58.59v7.08a.58.58,0,0,0,.58.58h8.36a.58.58,0,0,0,.58-.58V7.09A.58.58,0,0,0,14.18,6.5Zm-.91,6.71H6.73V9.09h6.54Z\"\n />\n )\n}\n\nexport function CheckIns({ color }): JSX.Element {\n return (\n <path\n fill={color}\n d=\"M14.175,8.341,9.258,13.256a1.157,1.157,0,0,1-1.638,0L5.161,10.8A1.159,1.159,0,1,1,6.8,9.16L8.439,10.8l4.1-4.1a1.159,1.159,0,0,1,1.639,1.639Z\"\n />\n )\n}\n\nexport function ChurchCenter({ color }): JSX.Element {\n return (\n <path\n fill={color}\n d=\"M13.91,14.763a.334.334,0,0,1-.331.338l-1.959-.016a.334.334,0,0,1-.338-.331s.005-.233.005-1.8a3.674,3.674,0,0,0-1.279-2.638,3.674,3.674,0,0,0-1.279,2.638c0,1.565.005,1.8.005,1.8a.334.334,0,0,1-.338.331L6.437,15.1a.334.334,0,0,1-.331-.338s-.242-6.457-.02-6.65h0L9.671,5.021a.522.522,0,0,1,.684,0l3.58,3.092H13.93C14.152,8.325,13.91,14.763,13.91,14.763Z\"\n />\n )\n}\n\nexport function Giving({ color }): JSX.Element {\n return (\n <path\n fill={color}\n d=\"M10.3,13.769a.508.508,0,0,1-.592,0c-1.259-.888-5.982-4.494-3.268-6.83a2.386,2.386,0,0,1,3.215.205l.349.349.349-.349a2.386,2.386,0,0,1,3.215-.205C16.286,9.275,11.563,12.881,10.3,13.769Z\"\n />\n )\n}\n\nexport function Groups({ color }): JSX.Element {\n return (\n <path\n fill={color}\n d=\"M13.769,11.313V8.683a1.867,1.867,0,1,0-2.443-2.449H8.69A1.867,1.867,0,1,0,6.243,8.681v2.632A1.867,1.867,0,1,0,8.69,13.76h2.632a1.867,1.867,0,1,0,2.447-2.447Zm-1.455,0a1.873,1.873,0,0,0-.992.992H8.69a1.877,1.877,0,0,0-.992-.992V8.681a1.877,1.877,0,0,0,.992-.992h2.636a1.872,1.872,0,0,0,.988.99Z\"\n />\n )\n}\n\nexport function Home({ color }): JSX.Element {\n return (\n <path\n fill={color}\n d=\"M14.7619 8.93233C14.7619 8.72768 14.6587 8.53243 14.4775 8.39414L10.5927 5.43C10.2573 5.17413 9.74265 5.17413 9.40731 5.42999L5.52252 8.39414C5.34128 8.53243 5.2381 8.72768 5.2381 8.93233V13.0794C5.2381 13.4827 5.63079 13.8095 6.11521 13.8095H13.8848C14.3692 13.8095 14.7619 13.4826 14.7619 13.0794V8.93233Z\"\n />\n )\n}\n\nexport function People({ color }): JSX.Element {\n return (\n <path\n fill={color}\n d=\"M8.177,5.732A2.018,2.018,0,1,1,6.159,7.75,2.019,2.019,0,0,1,8.177,5.732Zm2.494,8.53H5.664A.565.565,0,0,1,5.1,13.7V12.422a1.841,1.841,0,0,1,1.841-1.841H9.394a1.841,1.841,0,0,1,1.841,1.841V13.7A.565.565,0,0,1,10.671,14.262ZM12.814,6.94A1.513,1.513,0,1,1,11.3,8.453,1.513,1.513,0,0,1,12.814,6.94Zm1.537,6.093H12.413a.565.565,0,0,1-.565-.565v-.049a2.292,2.292,0,0,0-.2-.957.555.555,0,0,0-.062-.141.8.8,0,0,0-.061-.11,1.19,1.19,0,0,0-.092-.16,1.131,1.131,0,0,1,.908-.472h1.472a1.108,1.108,0,0,1,1.105,1.1v.785A.565.565,0,0,1,14.351,13.033Z\"\n />\n )\n}\n\nexport function Publishing({ color }): JSX.Element {\n return (\n <path\n fill={color}\n d=\"M7.287,13.575a.478.478,0,0,1-.477.477H5.856a.478.478,0,0,1-.477-.477V6.407a.478.478,0,0,1,.477-.477H6.81a.478.478,0,0,1,.477.477Zm7.293,0a.477.477,0,0,1-.477.477H9.268a.478.478,0,0,1-.477-.477V12.6a.478.478,0,0,1,.477-.477H14.1a.477.477,0,0,1,.477.477Zm0-3.473a.477.477,0,0,1-.476.477H9.268a.478.478,0,0,1-.477-.477V6.407a.478.478,0,0,1,.477-.477H14.1a.477.477,0,0,1,.477.477Z\"\n />\n )\n}\n\nexport function Registrations({ color }): JSX.Element {\n return (\n <path\n fill={color}\n d=\"M4.48,11.09a.51.51,0,0,0,0,.71l.7.7a.22.22,0,0,0,.27,0,1.47,1.47,0,0,1,1.8.22,1.5,1.5,0,0,1,.23,1.81.21.21,0,0,0,0,.27l.7.7a.51.51,0,0,0,.71,0l2-2a.16.16,0,0,0,0-.22L6.7,9.1a.17.17,0,0,0-.23,0Zm11-2.89-.71-.7a.21.21,0,0,0-.26,0,1.47,1.47,0,0,1-1.79-.23,1.49,1.49,0,0,1-.24-1.79.22.22,0,0,0,0-.27l-.7-.7a.51.51,0,0,0-.71,0L7.47,8.11a.14.14,0,0,0,0,.22l4.2,4.2a.14.14,0,0,0,.22,0l3.63-3.62A.51.51,0,0,0,15.52,8.2Z\"\n />\n )\n}\n\nexport function Services({ color }): JSX.Element {\n return (\n <path\n fill={color}\n d=\"M6.5,6.559A1.059,1.059,0,1,1,5.443,5.5,1.059,1.059,0,0,1,6.5,6.559ZM5.443,8.943A1.059,1.059,0,1,0,6.5,10,1.059,1.059,0,0,0,5.443,8.943Zm0,3.443A1.059,1.059,0,1,0,6.5,13.445,1.059,1.059,0,0,0,5.443,12.386ZM15,6.087a.485.485,0,0,0-.485-.485H8.136a.485.485,0,0,0-.485.485V7.03a.485.485,0,0,0,.485.485h6.38A.485.485,0,0,0,15,7.03ZM15,9.53a.485.485,0,0,0-.485-.485H8.136a.485.485,0,0,0-.485.485v.943a.485.485,0,0,0,.485.485h6.38A.485.485,0,0,0,15,10.473Zm0,3.443a.485.485,0,0,0-.485-.485H8.136a.485.485,0,0,0-.485.485v.943a.485.485,0,0,0,.485.485h6.38A.485.485,0,0,0,15,13.916Z\"\n />\n )\n}\n","import React from \"react\"\n\nimport * as AppSymbols from \"./mono_app_symbols\"\n\nfunction Squircle({ color = \"#fff\" }): JSX.Element {\n return (\n <path\n d=\"M10.008.045C2.047.045.056,2.036.056,10s1.991,9.952,9.952,9.952S19.96,17.959,19.96,10,17.969.045,10.008.045Z\"\n fill={color}\n />\n )\n}\n\nexport function MonoAppIcon({\n appName,\n colors,\n style,\n size = 20,\n ...platformProps\n}: {\n appName: string\n colors: any\n size?: number\n // TODO: shared type\n style?: any\n}): JSX.Element {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width={size}\n height={size}\n viewBox=\"0 0 20 20\"\n role=\"img\"\n aria-labelledby=\"title desc\"\n style={{ display: \"block\", ...style }}\n {...platformProps}\n >\n <title id=\"title\">Planning Center {appName} App Icon</title>\n\n <desc id=\"desc\">\n An image symbolizing the Planning Center {appName} app.\n </desc>\n\n {appName === \"Accounts\" ? null : <Squircle />}\n\n {AppSymbols[appName] ? (\n React.createElement(AppSymbols[appName], {\n color: appName != \"Accounts\" ? colors.base0 : \"#fff\",\n })\n ) : (\n <div>appName not supported</div>\n )}\n </svg>\n )\n}\n","import React from \"react\"\n\nexport function Accounts({ color, size = 20 }): JSX.Element {\n return (\n <svg\n data-name=\"Layer 1\"\n height={size}\n id=\"4ce749c7-c01e-4a9b-9496-b14fd2e761aa\"\n viewBox=\"0 0 77.073 20\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <title>accounts-text</title>\n <path\n fill={color}\n d=\"M4.729,5.537A10.859,10.859,0,0,0,1.262,6.1a.566.566,0,0,0-.4.717l.194.819a.579.579,0,0,0,.7.5,10.108,10.108,0,0,1,2.748-.47,1.416,1.416,0,0,1,1.065.349A2.307,2.307,0,0,1,6,9.682,7.706,7.706,0,0,0,4.1,9.418c-2.493,0-4.1,1.305-4.1,3.327a3.2,3.2,0,0,0,3.328,3.434,4.385,4.385,0,0,0,3.011-1.161l.181.509c.1.249.231.415.515.415h.712a.6.6,0,0,0,.59-.589v-5.3C8.337,7.581,8.065,5.537,4.729,5.537ZM3.78,14.181a1.343,1.343,0,0,1-1.436-1.459c0-.91.777-1.522,1.932-1.522a4.726,4.726,0,0,1,1.7.3v1.556A2.983,2.983,0,0,1,3.78,14.181ZM18.6,13.194c.4.361.326.669.2.865a4.646,4.646,0,0,1-3.977,2.12,5.2,5.2,0,0,1-5.2-5.31,5.285,5.285,0,0,1,5.225-5.332,4.461,4.461,0,0,1,3.711,1.768.6.6,0,0,1-.1.869l-.775.71c-.361.335-.64.056-.806-.11A2.909,2.909,0,0,0,14.9,7.816,2.938,2.938,0,0,0,12,10.847,2.921,2.921,0,0,0,14.837,13.9a2.623,2.623,0,0,0,2.03-.965c.082-.081.161-.16.241-.233a.574.574,0,0,1,.819-.049Zm9.661,0c.4.361.326.669.2.865a4.644,4.644,0,0,1-3.976,2.12,5.2,5.2,0,0,1-5.2-5.31A5.286,5.286,0,0,1,24.5,5.537a4.459,4.459,0,0,1,3.71,1.768.6.6,0,0,1-.1.869l-.775.71c-.361.335-.641.056-.806-.11a2.779,2.779,0,0,0-4.869,2.073A2.92,2.92,0,0,0,24.5,13.9a2.625,2.625,0,0,0,2.03-.965c.081-.081.161-.16.241-.233a.573.573,0,0,1,.818-.049Zm5.86-7.657A5.323,5.323,0,1,0,39.3,10.826,5.317,5.317,0,0,0,34.117,5.537Zm2.838,5.289a2.857,2.857,0,1,1-5.7,0,2.853,2.853,0,1,1,5.7,0ZM49.346,6.341v9.012a.616.616,0,0,1-.612.589h-.517c-.34,0-.474-.245-.561-.485l-.2-.536a4.084,4.084,0,0,1-3.1,1.258c-3.388,0-3.823-2.5-3.823-4.685V6.341a.621.621,0,0,1,.59-.588h1.207a.6.6,0,0,1,.59.588v5.3c0,1.539.58,2.256,1.825,2.256a2.357,2.357,0,0,0,2.214-1.544l0-6.016c0-.544.349-.588.676-.588h1.1A.624.624,0,0,1,49.346,6.341Zm11.089,4.01v5a.605.605,0,0,1-.591.589H58.637a.6.6,0,0,1-.59-.589V10.265c0-1.579-.655-2.449-1.846-2.449a2.939,2.939,0,0,0-2.514,1.355v6.182c0,.4-.229.589-.7.589h-1.1a.6.6,0,0,1-.59-.589V6.341a.6.6,0,0,1,.59-.588h.518a.5.5,0,0,1,.522.391l.235.67a4.691,4.691,0,0,1,3.3-1.277C59.134,5.537,60.435,7.111,60.435,10.351Zm8.048,4.379a.556.556,0,0,1-.283.721,6.126,6.126,0,0,1-2.822.728c-2.337,0-2.637-1.651-2.637-3.09V7.816H61.713a.6.6,0,0,1-.589-.59V6.341a.569.569,0,0,1,.589-.588h1.028V3.088a.59.59,0,0,1,.59-.59h1.228a.573.573,0,0,1,.568.59V5.753h2.515a.582.582,0,0,1,.59.588v.885a.613.613,0,0,1-.59.59H65.127V13c0,.828.323.9.683.9a3.241,3.241,0,0,0,1.536-.458.523.523,0,0,1,.431-.064.558.558,0,0,1,.317.335Zm7.869-1.576c0,1.5-1.262,3.025-3.672,3.025a5.927,5.927,0,0,1-3.343-1.033h0a.523.523,0,0,1-.208-.663l.452-.926a.494.494,0,0,1,.3-.254.635.635,0,0,1,.505.076l.032.017a4.485,4.485,0,0,0,2.389.7c.74,0,1.2-.328,1.2-.855,0-.58-.666-.985-2.066-1.618-1.435-.648-2.763-1.49-2.763-3.253,0-1.41,1.056-2.832,3.414-2.832a5.7,5.7,0,0,1,2.973.752.706.706,0,0,1,.256.882l-.344.689a.582.582,0,0,1-.8.247,5.057,5.057,0,0,0-2.087-.485c-.8,0-1.156.385-1.156.768,0,.546.574.9,1.633,1.361C75.052,10.588,76.352,11.279,76.352,13.154Z\"\n />\n </svg>\n )\n}\n\nexport function API({ color, size = 20 }): JSX.Element {\n return (\n <svg\n data-name=\"Layer 1\"\n height={size}\n id=\"bed028ef-58ee-4c4c-a757-08ecc3276857\"\n viewBox=\"0 0 119.5 20\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <title>api-text</title>\n <path\n fill={color}\n d=\"M9.136.675H7.908a.621.621,0,0,0-.59.589V5.5a6.9,6.9,0,0,0-2.384-.469A5.013,5.013,0,0,0,.012,10.343c0,2.989,2.048,5.331,4.663,5.331a4.885,4.885,0,0,0,3.22-1.3l.16.543a.591.591,0,0,0,.564.519h.517a.6.6,0,0,0,.59-.59V1.264A.6.6,0,0,0,9.136.675ZM7.34,7.847v4.175A2.745,2.745,0,0,1,4.978,13.4,2.815,2.815,0,0,1,2.4,10.343a2.913,2.913,0,0,1,2.772-3.03A4.941,4.941,0,0,1,7.34,7.847Zm8.833-2.813A5.081,5.081,0,0,0,11.1,10.343a5.046,5.046,0,0,0,5.094,5.331,5.712,5.712,0,0,0,3.761-1.256.512.512,0,0,0,.064-.819l-.582-.906a.467.467,0,0,0-.3-.22.619.619,0,0,0-.45.147,3.737,3.737,0,0,1-2.368.818,2.818,2.818,0,0,1-2.854-2.484h6.755a.578.578,0,0,0,.566-.532c.023-.175.045-.524.045-.7A4.571,4.571,0,0,0,16.173,5.034ZM16.13,7.1a2.23,2.23,0,0,1,2.334,2.032H13.591A2.411,2.411,0,0,1,16.13,7.1ZM30.587,5.982l-4.3,9.366a.561.561,0,0,1-.515.326h-.129a.59.59,0,0,1-.534-.323l-4.31-9.373a.484.484,0,0,1-.024-.49.542.542,0,0,1,.493-.239h1.315a.543.543,0,0,1,.534.344l2.571,5.914,2.7-5.91c.161-.348.486-.348.773-.348h.97a.544.544,0,0,1,.494.239A.488.488,0,0,1,30.587,5.982Zm4.983-.948A5.081,5.081,0,0,0,30.5,10.343a5.045,5.045,0,0,0,5.094,5.331,5.706,5.706,0,0,0,3.76-1.256.512.512,0,0,0,.065-.819l-.582-.906a.467.467,0,0,0-.3-.22.616.616,0,0,0-.45.147,3.738,3.738,0,0,1-2.369.818,2.819,2.819,0,0,1-2.854-2.484h6.755a.58.58,0,0,0,.567-.532c.023-.175.044-.524.044-.7A4.57,4.57,0,0,0,35.57,5.034ZM35.527,7.1a2.23,2.23,0,0,1,2.334,2.032H32.988A2.413,2.413,0,0,1,35.527,7.1Zm8.426-5.833V14.847a.606.606,0,0,1-.59.59H42.156a.6.6,0,0,1-.59-.59V1.264a.606.606,0,0,1,.59-.589h1.207A.621.621,0,0,1,43.953,1.264Zm6.576,3.77a5.322,5.322,0,1,0,5.18,5.287A5.315,5.315,0,0,0,50.529,5.034Zm2.836,5.287a2.856,2.856,0,1,1-5.695,0,2.852,2.852,0,1,1,5.7,0Zm8.65-5.287a4.76,4.76,0,0,0-3.08,1.1l-.2-.487a.523.523,0,0,0-.539-.4h-.539a.606.606,0,0,0-.59.59V19.422a.6.6,0,0,0,.59.59h1.207a.58.58,0,0,0,.633-.59V15.066a5.6,5.6,0,0,0,2.427.608,5.075,5.075,0,0,0,4.9-5.331A5.026,5.026,0,0,0,62.015,5.034Zm2.427,5.309A2.9,2.9,0,0,1,61.648,13.4a4.112,4.112,0,0,1-2.19-.678v-4.1a2.628,2.628,0,0,1,2.277-1.3A2.787,2.787,0,0,1,64.442,10.343ZM72.73,5.034a5.081,5.081,0,0,0-5.073,5.309,5.046,5.046,0,0,0,5.095,5.331,5.711,5.711,0,0,0,3.76-1.256.512.512,0,0,0,.065-.819l-.583-.906a.463.463,0,0,0-.3-.22.61.61,0,0,0-.45.147,3.735,3.735,0,0,1-2.368.818,2.818,2.818,0,0,1-2.854-2.484h6.754a.577.577,0,0,0,.567-.532c.023-.178.045-.527.045-.7A4.57,4.57,0,0,0,72.73,5.034ZM72.687,7.1a2.23,2.23,0,0,1,2.334,2.032H70.147A2.413,2.413,0,0,1,72.687,7.1ZM85.434,5.6a.518.518,0,0,1,.009.524L84.926,7.2a.584.584,0,0,1-.334.323.543.543,0,0,1-.424-.032,2.366,2.366,0,0,0-.854-.181A2.734,2.734,0,0,0,81.08,8.561v6.286c0,.59-.485.59-.8.59h-.991a.6.6,0,0,1-.59-.59V5.839a.605.605,0,0,1,.59-.59H79.8a.576.576,0,0,1,.544.435l.213.688a3.921,3.921,0,0,1,2.971-1.338C84.277,5.034,85.17,5.183,85.434,5.6Zm11.8-5.4a.621.621,0,0,0-.469-.3h-.216a.62.62,0,0,0-.472.305l-6.615,14.5a.508.508,0,0,0,.02.5.517.517,0,0,0,.451.229h1.357a.652.652,0,0,0,.6-.392l1.284-2.884h6.9l1.306,2.884a.618.618,0,0,0,.6.392h1.358a.517.517,0,0,0,.451-.229.508.508,0,0,0,.021-.494Zm1.916,9.871H94.116l2.5-5.627ZM110.327.12h-4.913a.526.526,0,0,0-.526.525V14.912a.526.526,0,0,0,.526.525h1.4a.54.54,0,0,0,.525-.525V9.963h3.009A4.922,4.922,0,1,0,110.327.12Zm2.493,4.856a2.563,2.563,0,0,1-2.536,2.643H107.34V2.507h2.944A2.476,2.476,0,0,1,112.82,4.976ZM119.087.645V14.912a.54.54,0,0,1-.526.525h-1.422a.54.54,0,0,1-.525-.525V.645a.539.539,0,0,1,.525-.525h1.422A.539.539,0,0,1,119.087.645Z\"\n />\n </svg>\n )\n}\n\nexport function Calendar({ color, size = 20 }): JSX.Element {\n return (\n <svg\n data-name=\"Layer 1\"\n height={size}\n id=\"Layer_1\"\n viewBox=\"0 0 73.83 20\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <title>calendar-text</title>\n <path\n fill={color}\n d=\"M9,12.56c.39.36.32.66.19.85a4.65,4.65,0,0,1-4,2.12A5.21,5.21,0,0,1,0,10.21,5.3,5.3,0,0,1,5.23,4.87,4.49,4.49,0,0,1,9,6.64a.6.6,0,0,1-.1.85l-.78.71c-.35.33-.61.07-.78-.11a3,3,0,0,0-2-1,3,3,0,0,0-2.94,3.06,3,3,0,0,0,2.87,3.09,2.63,2.63,0,0,0,2.05-1l.25-.23A.55.55,0,0,1,8.32,12Zm9.25-3.17v5.33a.59.59,0,0,1-.57.57H17c-.27,0-.4-.16-.5-.4l-.19-.54a4.39,4.39,0,0,1-3,1.18A3.2,3.2,0,0,1,9.91,12.1c0-2,1.61-3.33,4.11-3.33a7.24,7.24,0,0,1,1.92.28,2.33,2.33,0,0,0-.43-1.72A1.44,1.44,0,0,0,14.43,7a10.27,10.27,0,0,0-2.77.48A.56.56,0,0,1,11,7l-.2-.82a.56.56,0,0,1,.39-.7,10.9,10.9,0,0,1,3.48-.57C18,4.87,18.25,6.92,18.25,9.39Zm-2.34,3V10.83a4.91,4.91,0,0,0-1.72-.3c-1.17,0-2,.62-2,1.55a1.37,1.37,0,0,0,1.46,1.48A3,3,0,0,0,15.91,12.42ZM22,.47H20.79a.6.6,0,0,0-.58.57V14.72a.59.59,0,0,0,.58.57H22a.59.59,0,0,0,.57-.57V1A.61.61,0,0,0,22,.47ZM33.75,9.56c0,.18,0,.53,0,.71a.57.57,0,0,1-.55.52H26.35a2.84,2.84,0,0,0,2.89,2.53,3.84,3.84,0,0,0,2.39-.82.57.57,0,0,1,.43-.15.45.45,0,0,1,.29.21l.58.92a.48.48,0,0,1-.06.79,5.67,5.67,0,0,1-3.76,1.26A5.05,5.05,0,0,1,24,10.19a5.1,5.1,0,0,1,5.08-5.32A4.58,4.58,0,0,1,33.75,9.56ZM26.46,9h4.95A2.27,2.27,0,0,0,29,6.91,2.45,2.45,0,0,0,26.46,9Zm13.8-4.12a4.72,4.72,0,0,0-3.32,1.3l-.24-.7a.48.48,0,0,0-.51-.38h-.52a.59.59,0,0,0-.57.57v9.06a.58.58,0,0,0,.57.57h1.11c.45,0,.68-.19.68-.57V8.5A3,3,0,0,1,40,7.13c1.21,0,1.88.88,1.88,2.48v5.11a.58.58,0,0,0,.57.57h1.21a.6.6,0,0,0,.58-.57v-5C44.24,6.45,42.94,4.87,40.26,4.87ZM55.29,1V14.72a.58.58,0,0,1-.57.57H54.2a.57.57,0,0,1-.55-.5l-.17-.58a4.89,4.89,0,0,1-3.24,1.32c-2.62,0-4.67-2.34-4.67-5.34A5,5,0,0,1,50.5,4.87a6.85,6.85,0,0,1,2.39.48h0V1a.61.61,0,0,1,.58-.57h1.23A.59.59,0,0,1,55.29,1ZM52.93,11.88V7.67a5,5,0,0,0-2.19-.54,2.94,2.94,0,0,0-2.81,3.06,2.85,2.85,0,0,0,2.61,3.09A2.76,2.76,0,0,0,52.93,11.88Zm12-2.49v5.33a.59.59,0,0,1-.57.57h-.72c-.27,0-.39-.16-.5-.4L63,14.35a4.39,4.39,0,0,1-3,1.18A3.2,3.2,0,0,1,56.6,12.1c0-2,1.62-3.33,4.11-3.33a7.24,7.24,0,0,1,1.92.28,2.33,2.33,0,0,0-.43-1.72A1.42,1.42,0,0,0,61.12,7a10.27,10.27,0,0,0-2.77.48A.56.56,0,0,1,57.67,7l-.2-.82a.56.56,0,0,1,.39-.7,10.9,10.9,0,0,1,3.48-.57C64.67,4.87,64.94,6.92,64.94,9.39Zm-2.34,3V10.83a4.91,4.91,0,0,0-1.72-.3c-1.17,0-2,.62-2,1.55a1.37,1.37,0,0,0,1.46,1.48A3,3,0,0,0,62.6,12.42Zm11-7c-.26-.42-1.18-.57-1.9-.57a4,4,0,0,0-3,1.37l-.23-.73A.56.56,0,0,0,68,5.09h-.52a.59.59,0,0,0-.58.57v9.06a.58.58,0,0,0,.58.57h1c.32,0,.79,0,.79-.57V8.4A2.77,2.77,0,0,1,71.5,7.13a2.47,2.47,0,0,1,.86.18.5.5,0,0,0,.41,0A.56.56,0,0,0,73.1,7l.52-1.09A.48.48,0,0,0,73.61,5.44Z\"\n />\n </svg>\n )\n}\n\nexport function CheckIns({ color, size = 20 }): JSX.Element {\n return (\n <svg\n data-name=\"Layer 1\"\n height={size}\n id=\"dc713595-39c2-41c4-b1d9-3ef8c295b738\"\n viewBox=\"0 0 79.311 20\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <title>check-ins-text</title>\n <path\n fill={color}\n d=\"M40.221,13.213c.4.362.326.669.2.866A4.646,4.646,0,0,1,36.44,16.2a5.2,5.2,0,0,1-5.2-5.311,5.286,5.286,0,0,1,5.225-5.331,4.462,4.462,0,0,1,3.711,1.768.605.605,0,0,1-.1.869L39.3,8.9c-.362.333-.64.055-.806-.109a2.9,2.9,0,0,0-1.967-.959,2.937,2.937,0,0,0-2.9,3.031,2.92,2.92,0,0,0,2.837,3.054,2.62,2.62,0,0,0,2.03-.965c.082-.081.162-.16.242-.234a.572.572,0,0,1,.818-.049h0Zm-9.679-2.971c0,.178-.022.526-.044.7a.579.579,0,0,1-.567.531H23.174a2.82,2.82,0,0,0,2.855,2.485,3.736,3.736,0,0,0,2.369-.818.609.609,0,0,1,.45-.147.459.459,0,0,1,.3.219l.583.907a.513.513,0,0,1-.065.819A5.708,5.708,0,0,1,25.9,16.2a5.046,5.046,0,0,1-5.1-5.332,5.081,5.081,0,0,1,5.074-5.31A4.572,4.572,0,0,1,30.542,10.242ZM23.3,9.653h4.874A2.23,2.23,0,0,0,25.835,7.62,2.412,2.412,0,0,0,23.3,9.653Zm-7.751-4.1a4.789,4.789,0,0,0-2.773.924V2.339a.621.621,0,0,0-.59-.588H10.974a.6.6,0,0,0-.59.588V15.373a.59.59,0,0,0,.59.589H12.16a.575.575,0,0,0,.611-.589V9.193a2.871,2.871,0,0,1,2.493-1.357c1.2,0,1.867.884,1.867,2.492v5.045a.59.59,0,0,0,.59.589h1.207a.606.606,0,0,0,.59-.589v-5C19.518,7.221,18.144,5.557,15.544,5.557ZM8.315,12.674h0a.573.573,0,0,0-.818.049c-.08.074-.16.154-.242.235a2.624,2.624,0,0,1-2.029.964,2.92,2.92,0,0,1-2.838-3.054,2.938,2.938,0,0,1,2.9-3.031A2.906,2.906,0,0,1,7.257,8.8c.166.164.444.442.8.109l.775-.71a.6.6,0,0,0,.1-.869A4.464,4.464,0,0,0,5.225,5.557,5.285,5.285,0,0,0,0,10.888,5.2,5.2,0,0,0,5.2,16.2a4.647,4.647,0,0,0,3.977-2.12c.13-.2.2-.5-.2-.866ZM55.084,9.566h-4.1a.514.514,0,0,0-.525.525v.926a.51.51,0,0,0,.525.5h4.1a.51.51,0,0,0,.526-.5v-.926A.514.514,0,0,0,55.084,9.566Zm20.945.2C74.97,9.308,74.4,8.955,74.4,8.41c0-.383.357-.769,1.156-.769a5.059,5.059,0,0,1,2.087.486.581.581,0,0,0,.8-.248l.344-.689a.706.706,0,0,0-.256-.882,5.705,5.705,0,0,0-2.973-.751c-2.358,0-3.413,1.422-3.413,2.831,0,1.764,1.327,2.606,2.762,3.253,1.4.634,2.066,1.038,2.066,1.618,0,.528-.459.856-1.2.856a4.5,4.5,0,0,1-2.39-.7l-.031-.018a.629.629,0,0,0-.506-.075.494.494,0,0,0-.3.254l-.452.926a.523.523,0,0,0,.21.664A5.935,5.935,0,0,0,75.639,16.2c2.41,0,3.672-1.522,3.672-3.025C79.311,11.3,78.011,10.609,76.029,9.769Zm-9.2-4.212a4.687,4.687,0,0,0-3.3,1.277l-.235-.67a.5.5,0,0,0-.522-.392h-.517a.605.605,0,0,0-.591.59v9.011a.591.591,0,0,0,.591.589h1.1c.469,0,.7-.193.7-.589V9.19A2.934,2.934,0,0,1,66.57,7.836c1.191,0,1.846.87,1.846,2.45v5.087a.59.59,0,0,0,.59.589h1.207a.606.606,0,0,0,.59-.589v-5C70.8,7.131,69.5,5.557,66.829,5.557Zm-8.3-4.275a1.543,1.543,0,0,0-1.538,1.581,1.532,1.532,0,0,0,1.538,1.559,1.57,1.57,0,1,0,0-3.14Zm-12.215,9.1,3.949-3.716a.548.548,0,0,0,.14-.588.484.484,0,0,0-.476-.3H48.355a1.063,1.063,0,0,0-.7.331L44.008,9.4V2.339a.62.62,0,0,0-.59-.588H42.211a.6.6,0,0,0-.59.588V15.373a.59.59,0,0,0,.59.589h1.207a.606.606,0,0,0,.59-.589V11.329l3.783,4.4a.711.711,0,0,0,.542.237H50.1a.468.468,0,0,0,.461-.256.561.561,0,0,0-.094-.582ZM59.135,5.772H57.928a.605.605,0,0,0-.59.59v9.011a.59.59,0,0,0,.59.589h1.207a.606.606,0,0,0,.59-.589V6.362A.621.621,0,0,0,59.135,5.772Z\"\n />\n </svg>\n )\n}\n\nexport function ChurchCenter({ color, size = 20 }): JSX.Element {\n return (\n <svg\n data-name=\"Layer 1\"\n height={size}\n id=\"e2e8a225-c349-4aea-935c-64b6ad436be8\"\n viewBox=\"0 0 118.083 20\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <title>church-center-text</title>\n <path\n fill={color}\n d=\"M5.188,16.2A5.187,5.187,0,0,1,0,10.908,5.27,5.27,0,0,1,5.209,5.591a4.453,4.453,0,0,1,3.7,1.762.588.588,0,0,1-.1.844l-.776.712c-.346.319-.607.062-.779-.109a2.93,2.93,0,0,0-1.983-.966A2.959,2.959,0,0,0,2.35,10.887a2.942,2.942,0,0,0,2.859,3.076,2.642,2.642,0,0,0,2.045-.971c.082-.081.162-.16.242-.234a.552.552,0,0,1,.794-.047l.669.539c.388.352.318.651.193.841A4.629,4.629,0,0,1,5.188,16.2ZM19.5,15.4V10.391c0-3.14-1.368-4.8-3.959-4.8a4.788,4.788,0,0,0-2.788.939l-.006-4.209a.609.609,0,0,0-.571-.57H10.964a.592.592,0,0,0-.571.57V15.4a.58.58,0,0,0,.571.572H12.15a.558.558,0,0,0,.593-.572V9.207a2.893,2.893,0,0,1,2.515-1.373c1.217,0,1.888.893,1.888,2.514V15.4a.579.579,0,0,0,.571.572h1.208A.593.593,0,0,0,19.5,15.4Zm8.7-.468.2.566c.09.246.218.474.544.474h.518a.6.6,0,0,0,.592-.572V6.378a.612.612,0,0,0-.592-.57h-1.1c-.332,0-.657.044-.657.57l0,6.023a2.38,2.38,0,0,1-2.236,1.562c-1.259,0-1.845-.723-1.845-2.277V6.378a.585.585,0,0,0-.571-.57H21.843a.6.6,0,0,0-.57.57v5.156c0,2.175.433,4.67,3.807,4.67A4.06,4.06,0,0,0,28.193,14.928Zm6.2.468V9.1A2.755,2.755,0,0,1,36.65,7.834a2.382,2.382,0,0,1,.863.184.53.53,0,0,0,.41.032.571.571,0,0,0,.324-.315l.518-1.077a.5.5,0,0,0-.009-.507c-.259-.413-1.18-.56-1.89-.56a3.975,3.975,0,0,0-2.984,1.356l-.223-.719a.555.555,0,0,0-.525-.42h-.518a.585.585,0,0,0-.571.57V15.4a.58.58,0,0,0,.571.572h.993C33.922,15.968,34.4,15.968,34.4,15.4Zm13.35-1.305c.125-.19.2-.489-.193-.841l-.669-.539a.552.552,0,0,0-.794.047c-.08.074-.16.153-.242.234a2.642,2.642,0,0,1-2.044.971,2.942,2.942,0,0,1-2.86-3.076,2.959,2.959,0,0,1,2.924-3.053A2.93,2.93,0,0,1,45.85,8.8c.172.171.433.428.779.109l.776-.712a.588.588,0,0,0,.1-.844,4.452,4.452,0,0,0-3.7-1.762,5.271,5.271,0,0,0-5.21,5.317,5.187,5.187,0,0,0,5.188,5.3A4.629,4.629,0,0,0,47.745,14.091ZM58.089,15.4V10.391c0-3.14-1.368-4.8-3.959-4.8a4.79,4.79,0,0,0-2.788.939l-.006-4.209a.609.609,0,0,0-.571-.57H49.557a.592.592,0,0,0-.571.57V15.4a.58.58,0,0,0,.571.572h1.187a.557.557,0,0,0,.592-.572V9.207a2.893,2.893,0,0,1,2.515-1.373c1.217,0,1.888.893,1.888,2.514V15.4a.579.579,0,0,0,.571.572h1.208A.593.593,0,0,0,58.089,15.4Zm12.926-1.305c.126-.19.2-.489-.192-.841l-.669-.539a.553.553,0,0,0-.8.047c-.08.074-.159.153-.242.234a2.64,2.64,0,0,1-2.044.971,2.941,2.941,0,0,1-2.859-3.076A2.8,2.8,0,0,1,69.121,8.8c.171.171.433.428.778.109l.777-.712a.587.587,0,0,0,.1-.844,4.449,4.449,0,0,0-3.7-1.762,5.271,5.271,0,0,0-5.21,5.317,5.187,5.187,0,0,0,5.188,5.3A4.629,4.629,0,0,0,71.015,14.091Zm10.247-3.83c0,.177-.022.525-.044.7a.562.562,0,0,1-.549.516H73.887a2.838,2.838,0,0,0,2.877,2.526,3.743,3.743,0,0,0,2.382-.824.6.6,0,0,1,.436-.143.447.447,0,0,1,.283.212l.584.907a.492.492,0,0,1-.063.794A5.7,5.7,0,0,1,76.634,16.2a5.031,5.031,0,0,1-5.08-5.317,5.068,5.068,0,0,1,5.059-5.3A4.558,4.558,0,0,1,81.262,10.261Zm-2.335-.57a2.251,2.251,0,0,0-2.358-2.073,2.433,2.433,0,0,0-2.564,2.073ZM91.707,15.4V10.391c0-3.23-1.3-4.8-3.959-4.8a4.657,4.657,0,0,0-3.306,1.3l-.246-.7a.479.479,0,0,0-.5-.376h-.518a.585.585,0,0,0-.571.57V15.4a.58.58,0,0,0,.571.572h1.1c.457,0,.679-.187.679-.572V9.2a2.96,2.96,0,0,1,2.536-1.37c1.2,0,1.867.877,1.867,2.471V15.4a.58.58,0,0,0,.571.572h1.208A.594.594,0,0,0,91.707,15.4Zm7.779.081a.538.538,0,0,0,.277-.7l-.389-1.014a.537.537,0,0,0-.306-.325.493.493,0,0,0-.415.061,3.249,3.249,0,0,1-1.548.462c-.445,0-.7-.15-.7-.918V7.834h2.536a.594.594,0,0,0,.571-.571V6.378a.564.564,0,0,0-.571-.57H96.4V3.12a.555.555,0,0,0-.549-.571h-1.23a.579.579,0,0,0-.571.571V5.808H93.005a.552.552,0,0,0-.571.57v.885a.579.579,0,0,0,.571.571h1.048v5.3c0,1.431.3,3.073,2.62,3.073A6.067,6.067,0,0,0,99.486,15.477Zm10.11-5.216c0,.177-.022.525-.044.7a.561.561,0,0,1-.549.516h-6.782a2.838,2.838,0,0,0,2.877,2.526,3.743,3.743,0,0,0,2.382-.824.6.6,0,0,1,.437-.143.446.446,0,0,1,.282.212l.584.907a.491.491,0,0,1-.063.794,5.7,5.7,0,0,1-3.752,1.252,5.032,5.032,0,0,1-5.08-5.317,5.068,5.068,0,0,1,5.059-5.3A4.557,4.557,0,0,1,109.6,10.261Zm-2.335-.57A2.25,2.25,0,0,0,104.9,7.618a2.434,2.434,0,0,0-2.565,2.073Zm6.026,5.705V9.1a2.755,2.755,0,0,1,2.255-1.265,2.388,2.388,0,0,1,.864.184.528.528,0,0,0,.409.032.568.568,0,0,0,.324-.315l.519-1.077a.5.5,0,0,0-.009-.507c-.26-.413-1.181-.56-1.891-.56a3.977,3.977,0,0,0-2.984,1.356l-.223-.719a.555.555,0,0,0-.525-.42h-.518a.585.585,0,0,0-.571.57V15.4a.58.58,0,0,0,.571.572h.993C112.814,15.968,113.287,15.968,113.287,15.4Z\"\n />\n </svg>\n )\n}\n\nexport function Giving({ color, size = 20 }): JSX.Element {\n return (\n <svg\n data-name=\"Layer 1\"\n height={size}\n id=\"a221b42b-722d-4eb3-b043-fff7f3c6686f\"\n viewBox=\"0 0 50.486 20\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <title>giving-text</title>\n <path\n fill={color}\n d=\"M9.17,5.089H8.588c-.335,0-.42.255-.474.416l-.2.473a4.791,4.791,0,0,0-3.1-1.1A5.026,5.026,0,0,0,0,10.184a5.085,5.085,0,0,0,4.923,5.332,5.459,5.459,0,0,0,2.428-.629v.342c0,2.113-1.285,2.557-2.363,2.557a3.619,3.619,0,0,1-2.259-.905.567.567,0,0,0-.474-.114.553.553,0,0,0-.365.3l-.516.948a.563.563,0,0,0,.126.7A5.489,5.489,0,0,0,5.031,20a4.407,4.407,0,0,0,4.728-4.771V5.679A.6.6,0,0,0,9.17,5.089Zm-1.8,3.378V12.5a3.951,3.951,0,0,1-2.191.74,2.973,2.973,0,0,1-2.8-3.054A2.82,2.82,0,0,1,5.1,7.152,2.835,2.835,0,0,1,7.373,8.467Zm6.745-2.788v9.01a.6.6,0,0,1-.59.589H12.321a.59.59,0,0,1-.59-.589V5.679a.605.605,0,0,1,.59-.59h1.207A.62.62,0,0,1,14.118,5.679Zm.388-3.508A1.572,1.572,0,0,1,12.924,3.73a1.532,1.532,0,0,1-1.538-1.559A1.543,1.543,0,0,1,12.924.59,1.564,1.564,0,0,1,14.506,2.171Zm10.3,3.156a.49.49,0,0,1-.027.5l-4.307,9.367a.558.558,0,0,1-.514.327h-.13a.6.6,0,0,1-.534-.323L14.984,5.817a.487.487,0,0,1-.025-.49.545.545,0,0,1,.494-.238h1.315a.547.547,0,0,1,.535.344l2.572,5.917,2.7-5.913c.16-.348.486-.348.773-.348h.97A.545.545,0,0,1,24.807,5.327Zm3.249.352v9.01a.6.6,0,0,1-.59.589H26.259a.59.59,0,0,1-.59-.589V5.679a.605.605,0,0,1,.59-.59h1.207A.62.62,0,0,1,28.056,5.679Zm.388-3.508A1.572,1.572,0,0,1,26.863,3.73a1.532,1.532,0,0,1-1.539-1.559A1.544,1.544,0,0,1,26.863.59,1.564,1.564,0,0,1,28.444,2.171Zm10.69,7.517v5a.6.6,0,0,1-.59.589H37.337a.59.59,0,0,1-.59-.589V9.6c0-1.581-.655-2.451-1.846-2.451a2.938,2.938,0,0,0-2.514,1.355v6.182c0,.4-.229.589-.7.589h-1.1a.59.59,0,0,1-.59-.589V5.679a.605.605,0,0,1,.59-.59h.517a.5.5,0,0,1,.522.391l.235.67a4.692,4.692,0,0,1,3.3-1.276C37.834,4.874,39.134,6.448,39.134,9.688Zm10.456-4.6h-.582c-.336,0-.42.255-.473.416l-.2.473a4.777,4.777,0,0,0-3.1-1.1,5.026,5.026,0,0,0-4.815,5.31,5.085,5.085,0,0,0,4.923,5.332,5.459,5.459,0,0,0,2.428-.629v.342c0,2.113-1.285,2.557-2.363,2.557a3.619,3.619,0,0,1-2.259-.905.567.567,0,0,0-.474-.114.553.553,0,0,0-.365.3l-.516.948a.563.563,0,0,0,.126.7A5.489,5.489,0,0,0,45.451,20a4.407,4.407,0,0,0,4.729-4.771V5.679A.605.605,0,0,0,49.59,5.089Zm-1.8,7.409a3.944,3.944,0,0,1-2.19.74,2.973,2.973,0,0,1-2.795-3.054,2.693,2.693,0,0,1,4.985-1.717Z\"\n />\n </svg>\n )\n}\n\nexport function Home({ color, size = 20 }): JSX.Element {\n return (\n <svg\n id=\"a221b42b-722d-4eb3-b043-fff7f3c6686f\"\n data-name=\"Layer 1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n height={size}\n viewBox=\"0 0 47.624 20\"\n >\n <title>home-text</title>\n <path\n fill={color}\n d=\"M8.952,9.7V14.69a.584.584,0,0,1-.553.57H7.229a.57.57,0,0,1-.553-.57V9.658c0-1.616-.649-2.506-1.827-2.506A2.791,2.791,0,0,0,2.414,8.52v6.17a.547.547,0,0,1-.573.57H.692a.569.569,0,0,1-.553-.57v-13a.583.583,0,0,1,.553-.569H1.861a.6.6,0,0,1,.553.569V5.857a4.544,4.544,0,0,1,2.706-.94C7.627,4.917,8.952,6.571,8.952,9.7Zm11.261.473a5.239,5.239,0,0,1-5,5.322,5.185,5.185,0,0,1-5.022-5.322A5.213,5.213,0,0,1,15.21,4.917,5.2,5.2,0,0,1,20.213,10.174Zm-2.234,0a2.789,2.789,0,1,0-5.558,0,2.884,2.884,0,0,0,2.789,3.087A2.876,2.876,0,0,0,17.979,10.174Zm14.59-5.257a4.475,4.475,0,0,0-3.248,1.519,3.34,3.34,0,0,0-2.956-1.519,4.128,4.128,0,0,0-3.031,1.289L23.111,5.5a.487.487,0,0,0-.506-.367h-.48a.584.584,0,0,0-.553.569V14.69a.57.57,0,0,0,.553.57h1.169a.577.577,0,0,0,.553-.57V8.512a2.367,2.367,0,0,1,2.184-1.36c1.216,0,1.808.806,1.808,2.463V14.69a.555.555,0,0,0,.552.57h1.191a.559.559,0,0,0,.532-.57V9.551a10.249,10.249,0,0,0-.077-1.3l.06-.064a2.793,2.793,0,0,1,2.159-1.034c1.2,0,1.807.829,1.807,2.463V14.69a.538.538,0,0,0,.553.57h1.17a.549.549,0,0,0,.553-.57V9.7C36.339,7.647,35.948,4.917,32.569,4.917ZM47.042,9.572c0,.176-.021.523-.043.7a.549.549,0,0,1-.531.514H39.9A2.778,2.778,0,0,0,42.687,13.3a3.573,3.573,0,0,0,2.306-.82.6.6,0,0,1,.422-.144.431.431,0,0,1,.274.211l.566.9a.5.5,0,0,1-.061.791A5.416,5.416,0,0,1,42.562,15.5c-2.85,0-4.919-2.229-4.919-5.3a4.988,4.988,0,0,1,4.9-5.279A4.479,4.479,0,0,1,47.042,9.572ZM40.016,9h4.765A2.2,2.2,0,0,0,42.5,6.937,2.375,2.375,0,0,0,40.016,9Z\"\n />\n </svg>\n )\n}\n\nexport function Groups({ color, size = 20 }): JSX.Element {\n return (\n <svg\n data-name=\"Layer 1\"\n height={size}\n id=\"08e4075e-8ca4-4400-a3ae-98f53270d1d0\"\n viewBox=\"0 0 58.688 20\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <title>groups-text</title>\n <path\n fill={color}\n d=\"M9.17,5.09H8.588c-.335,0-.42.255-.474.416l-.2.472a4.791,4.791,0,0,0-3.1-1.1A5.027,5.027,0,0,0,0,10.185a5.085,5.085,0,0,0,4.923,5.332,5.465,5.465,0,0,0,2.428-.63v.342c0,2.113-1.285,2.557-2.363,2.557a3.631,3.631,0,0,1-2.259-.9.568.568,0,0,0-.473-.115.556.556,0,0,0-.366.3l-.516.947a.574.574,0,0,0,.126.7A5.487,5.487,0,0,0,5.031,20a4.407,4.407,0,0,0,4.728-4.771V5.679A.6.6,0,0,0,9.17,5.09Zm-1.8,3.378V12.5a3.951,3.951,0,0,1-2.191.74,2.972,2.972,0,0,1-2.8-3.053A2.821,2.821,0,0,1,5.1,7.152,2.835,2.835,0,0,1,7.373,8.468Zm11.092-2.5-.517,1.077a.588.588,0,0,1-.335.323.535.535,0,0,1-.424-.032,2.351,2.351,0,0,0-.854-.183A2.738,2.738,0,0,0,14.1,8.4v6.288c0,.59-.485.59-.806.59H12.3a.6.6,0,0,1-.59-.59V5.679a.6.6,0,0,1,.59-.589h.517a.574.574,0,0,1,.544.434l.213.688A3.931,3.931,0,0,1,16.55,4.874c.749,0,1.642.149,1.9.568A.517.517,0,0,1,18.465,5.967Zm4.994-1.093a5.323,5.323,0,0,0,0,10.643,5.323,5.323,0,0,0,0-10.643Zm0,8.364A2.907,2.907,0,0,1,20.6,10.163a2.852,2.852,0,1,1,5.7,0A2.9,2.9,0,0,1,23.459,13.238ZM38.688,5.679v9.01a.616.616,0,0,1-.611.59H37.56c-.34,0-.475-.246-.561-.486l-.2-.535a4.082,4.082,0,0,1-3.1,1.259c-3.389,0-3.824-2.5-3.824-4.686V5.679a.621.621,0,0,1,.59-.589h1.207a.605.605,0,0,1,.591.589v5.3c0,1.539.579,2.256,1.824,2.256A2.356,2.356,0,0,0,36.3,11.694l0-6.015c0-.544.334-.589.677-.589h1.1A.632.632,0,0,1,38.688,5.679Zm6.9-.805a4.752,4.752,0,0,0-3.081,1.1l-.2-.488a.523.523,0,0,0-.54-.4h-.538a.6.6,0,0,0-.59.589V19.266a.6.6,0,0,0,.59.589H42.44a.58.58,0,0,0,.633-.589V14.909a5.612,5.612,0,0,0,2.428.608,5.075,5.075,0,0,0,4.9-5.332A5.027,5.027,0,0,0,45.587,4.874ZM43.029,8.457a2.633,2.633,0,0,1,2.278-1.305,2.789,2.789,0,0,1,2.708,3.033,2.9,2.9,0,0,1-2.794,3.053,4.131,4.131,0,0,1-2.192-.676Zm15.349,4.034c0,1.5-1.262,3.026-3.672,3.026a5.921,5.921,0,0,1-3.343-1.034h0a.522.522,0,0,1-.208-.663l.452-.925a.493.493,0,0,1,.3-.254.633.633,0,0,1,.5.075l.037.02a4.488,4.488,0,0,0,2.384.7c.74,0,1.2-.329,1.2-.856,0-.581-.666-.985-2.066-1.619-1.435-.646-2.763-1.487-2.763-3.252,0-1.41,1.056-2.832,3.414-2.832a5.71,5.71,0,0,1,2.973.752.705.705,0,0,1,.256.881L57.5,7.2a.58.58,0,0,1-.8.248,5.043,5.043,0,0,0-2.087-.485c-.8,0-1.156.386-1.156.768,0,.545.574.9,1.633,1.361C57.078,9.926,58.378,10.616,58.378,12.491Z\"\n />\n </svg>\n )\n}\n\nexport function People({ color, size = 20 }): JSX.Element {\n return (\n <svg\n data-name=\"Layer 1\"\n height={size}\n id=\"c461f8d4-1c6e-406e-af2d-8d7721d891d5\"\n viewBox=\"0 0 57.729 20\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <title>people-text</title>\n <path\n fill={color}\n d=\"M4.944,5.019a4.754,4.754,0,0,0-3.08,1.1l-.2-.487a.521.521,0,0,0-.539-.4H.59A.606.606,0,0,0,0,5.823V19.41A.6.6,0,0,0,.59,20H1.8a.58.58,0,0,0,.633-.59V15.053a5.593,5.593,0,0,0,2.428.607,5.075,5.075,0,0,0,4.9-5.331A5.027,5.027,0,0,0,4.944,5.019ZM2.387,8.6A2.63,2.63,0,0,1,4.665,7.3a2.789,2.789,0,0,1,2.708,3.032,2.9,2.9,0,0,1-2.795,3.054,4.109,4.109,0,0,1-2.191-.678ZM15.663,5.019a5.083,5.083,0,0,0-5.075,5.31,5.046,5.046,0,0,0,5.1,5.331A5.707,5.707,0,0,0,19.445,14.4a.511.511,0,0,0,.065-.818l-.583-.907a.459.459,0,0,0-.295-.22.609.609,0,0,0-.45.147,3.735,3.735,0,0,1-2.369.82,2.819,2.819,0,0,1-2.854-2.487h6.756a.578.578,0,0,0,.567-.531c.022-.177.045-.525.045-.7A4.572,4.572,0,0,0,15.663,5.019Zm-2.583,4.1a2.411,2.411,0,0,1,2.539-2.033,2.231,2.231,0,0,1,2.335,2.033Zm13.145-4.1a5.322,5.322,0,0,0,0,10.641,5.322,5.322,0,0,0,0-10.641Zm2.837,5.289a2.856,2.856,0,1,1-5.7,0,2.852,2.852,0,1,1,5.7,0Zm8.653-5.289a4.758,4.758,0,0,0-3.081,1.1l-.2-.487a.522.522,0,0,0-.54-.4h-.538a.606.606,0,0,0-.591.589V19.41a.592.592,0,0,0,.591.59h1.207a.58.58,0,0,0,.633-.59V15.05a5.541,5.541,0,0,0,2.428.61,5.075,5.075,0,0,0,4.9-5.331A5.027,5.027,0,0,0,37.715,5.019ZM35.158,8.6a2.629,2.629,0,0,1,2.277-1.3,2.789,2.789,0,0,1,2.708,3.032,2.9,2.9,0,0,1-2.794,3.054,4.109,4.109,0,0,1-2.191-.678ZM46.324,1.247V14.834a.606.606,0,0,1-.59.59H44.527a.6.6,0,0,1-.59-.59V1.247a.6.6,0,0,1,.59-.589h1.207A.621.621,0,0,1,46.324,1.247Zm6.459,3.772a5.083,5.083,0,0,0-5.075,5.31,5.047,5.047,0,0,0,5.1,5.331A5.713,5.713,0,0,0,56.566,14.4a.511.511,0,0,0,.064-.818l-.583-.907a.459.459,0,0,0-.295-.22.6.6,0,0,0-.449.147,3.739,3.739,0,0,1-2.369.82,2.821,2.821,0,0,1-2.855-2.487h6.756a.577.577,0,0,0,.567-.531c.022-.177.045-.525.045-.7A4.572,4.572,0,0,0,52.783,5.019ZM52.74,7.081a2.231,2.231,0,0,1,2.334,2.033H50.2A2.412,2.412,0,0,1,52.74,7.081Z\"\n />\n </svg>\n )\n}\n\nexport function Publishing({ color, size = 20 }): JSX.Element {\n return (\n <svg\n id=\"Layer_1\"\n data-name=\"Layer 1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n height={size}\n viewBox=\"0 0 84.973 20\"\n >\n <title>publishing-text</title>\n <path\n d=\"M4.905,5.03A4.709,4.709,0,0,0,1.829,6.141l-.2-.511a.5.5,0,0,0-.52-.385H.568A.59.59,0,0,0,0,5.812V19.374a.575.575,0,0,0,.568.568h1.2a.559.559,0,0,0,.611-.568v-4.4a5.573,5.573,0,0,0,2.437.618A5.036,5.036,0,0,0,9.681,10.3,4.988,4.988,0,0,0,4.905,5.03ZM2.338,8.575A2.642,2.642,0,0,1,4.626,7.261,2.8,2.8,0,0,1,7.343,10.3a2.908,2.908,0,0,1-2.8,3.06,4.117,4.117,0,0,1-2.2-.684Zm17.4-2.763v8.974a.6.6,0,0,1-.59.569h-.515c-.326,0-.456-.238-.541-.472l-.2-.562a4.046,4.046,0,0,1-3.1,1.27c-3.358,0-3.788-2.484-3.788-4.647V5.812a.606.606,0,0,1,.568-.567h1.2a.59.59,0,0,1,.568.567v5.282c0,1.546.584,2.266,1.837,2.266A2.368,2.368,0,0,0,17.4,11.806V5.812c0-.524.323-.567.654-.567h1.094A.609.609,0,0,1,19.737,5.812Zm6.74-.782A6.836,6.836,0,0,0,24.1,5.5l-.018.006V1.246a.606.606,0,0,0-.568-.567H22.29a.583.583,0,0,0-.568.567v13.54a.576.576,0,0,0,.568.569h.516a.569.569,0,0,0,.542-.5l.17-.576a4.845,4.845,0,0,0,3.217,1.31c2.6,0,4.711-2.374,4.711-5.291A5.071,5.071,0,0,0,26.477,5.03ZM24.061,7.76a5.243,5.243,0,0,1,2.18-.5A3,3,0,0,1,29.107,10.3a2.9,2.9,0,0,1-2.694,3.06A2.761,2.761,0,0,1,24.061,12ZM35.225,1.246v13.54a.591.591,0,0,1-.568.569h-1.2a.576.576,0,0,1-.569-.569V1.246a.59.59,0,0,1,.569-.567h1.2A.606.606,0,0,1,35.225,1.246Zm4.349,4.566v8.974a.591.591,0,0,1-.568.569H37.8a.576.576,0,0,1-.568-.569V5.812a.582.582,0,0,1,.568-.567h1.2A.606.606,0,0,1,39.574,5.812Zm.387-3.577a1.547,1.547,0,0,1-1.556,1.534,1.508,1.508,0,0,1-1.513-1.534A1.519,1.519,0,0,1,38.405.679,1.539,1.539,0,0,1,39.961,2.235ZM48.143,12.6c0,1.488-1.25,2.994-3.638,2.994a5.875,5.875,0,0,1-3.318-1.026h0a.5.5,0,0,1-.2-.636l.45-.922a.47.47,0,0,1,.291-.243.613.613,0,0,1,.487.073l.036.02a4.489,4.489,0,0,0,2.385.7c.737,0,1.214-.342,1.214-.871,0-.589-.667-.994-2.069-1.629-1.423-.642-2.74-1.476-2.74-3.222,0-1.394,1.045-2.8,3.38-2.8a5.67,5.67,0,0,1,2.951.745.684.684,0,0,1,.248.853l-.343.687a.56.56,0,0,1-.769.238,5.05,5.05,0,0,0-2.087-.485c-.808,0-1.17.394-1.17.784,0,.554.575.91,1.638,1.372C46.853,10.057,48.143,10.742,48.143,12.6ZM58.461,9.805v4.981a.592.592,0,0,1-.569.569h-1.2a.576.576,0,0,1-.568-.569V9.763c0-1.614-.668-2.5-1.879-2.5a2.881,2.881,0,0,0-2.5,1.366v6.159a.554.554,0,0,1-.589.569H49.97a.576.576,0,0,1-.568-.569V1.246A.582.582,0,0,1,49.97.679h1.2a.606.606,0,0,1,.567.567V5.967a4.766,4.766,0,0,1,2.782-.937C57.1,5.03,58.461,6.681,58.461,9.805Zm4.2-3.993v8.974a.59.59,0,0,1-.567.569h-1.2a.576.576,0,0,1-.568-.569V5.812a.59.59,0,0,1,.568-.567h1.2A.606.606,0,0,1,62.657,5.812Zm.387-3.577a1.547,1.547,0,0,1-1.556,1.534,1.507,1.507,0,0,1-1.512-1.534A1.518,1.518,0,0,1,61.488.679,1.539,1.539,0,0,1,63.044,2.235Zm10.647,7.57v4.981a.591.591,0,0,1-.569.569h-1.2a.576.576,0,0,1-.568-.569V9.72c0-1.586-.66-2.459-1.858-2.459a2.944,2.944,0,0,0-2.523,1.364v6.161c0,.383-.221.569-.676.569H65.2a.576.576,0,0,1-.568-.569V5.812a.59.59,0,0,1,.568-.567h.516a.474.474,0,0,1,.5.375l.245.7a4.64,4.64,0,0,1,3.29-1.288C72.4,5.03,73.691,6.592,73.691,9.805Zm10.432-4.56h-.579c-.32,0-.4.236-.454.4l-.2.5a4.737,4.737,0,0,0-3.1-1.112A4.988,4.988,0,0,0,75.01,10.3a5.046,5.046,0,0,0,4.884,5.291,5.429,5.429,0,0,0,2.437-.64v.372c0,2.121-1.29,2.566-2.373,2.566a3.629,3.629,0,0,1-2.261-.9.547.547,0,0,0-.456-.111.535.535,0,0,0-.352.292l-.514.944a.551.551,0,0,0,.123.673A5.444,5.444,0,0,0,80,20.056a4.371,4.371,0,0,0,4.69-4.733V5.812A.582.582,0,0,0,84.123,5.245ZM80.151,13.36a2.979,2.979,0,0,1-2.8-3.06,2.7,2.7,0,0,1,5-1.715v4.029A3.973,3.973,0,0,1,80.151,13.36Z\"\n fill={color}\n />\n </svg>\n )\n}\n\nexport function Registrations({ color, size = 20 }): JSX.Element {\n return (\n <svg\n id=\"2da9f999-408b-4466-9b5d-b1268727ac81\"\n data-name=\"Layer 1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n height={size}\n viewBox=\"0 0 105.758 20\"\n >\n <title>registrations-text</title>\n <path\n fill={color}\n d=\"M6.751,5.966,6.234,7.043a.589.589,0,0,1-.336.324.545.545,0,0,1-.423-.033,2.375,2.375,0,0,0-.854-.182A2.74,2.74,0,0,0,2.387,8.4v6.288c0,.59-.485.59-.8.59H.59a.6.6,0,0,1-.59-.59V5.679A.6.6,0,0,1,.59,5.09h.517a.574.574,0,0,1,.544.433l.212.685A4,4,0,0,1,4.836,4.874c.749,0,1.643.148,1.9.567A.517.517,0,0,1,6.751,5.966Zm9.583,3.593c0,.181-.022.53-.044.705a.578.578,0,0,1-.567.531H8.966a2.82,2.82,0,0,0,2.855,2.486,3.74,3.74,0,0,0,2.369-.819.608.608,0,0,1,.45-.148.465.465,0,0,1,.295.22l.583.907a.513.513,0,0,1-.065.819,5.708,5.708,0,0,1-3.762,1.256,5.046,5.046,0,0,1-5.1-5.331A5.083,5.083,0,0,1,11.67,4.874,4.572,4.572,0,0,1,16.334,9.559ZM11.627,6.937A2.411,2.411,0,0,0,9.087,8.97h4.874A2.23,2.23,0,0,0,11.627,6.937ZM26.8,5.679v9.55A4.407,4.407,0,0,1,22.071,20a5.486,5.486,0,0,1-3.53-1.284.564.564,0,0,1-.127-.7l.516-.948a.555.555,0,0,1,.365-.3.561.561,0,0,1,.474.114,3.622,3.622,0,0,0,2.259.905c1.078,0,2.364-.444,2.364-2.557v-.342a5.472,5.472,0,0,1-2.429.629,5.084,5.084,0,0,1-4.922-5.331,5.027,5.027,0,0,1,4.814-5.311,4.777,4.777,0,0,1,3.1,1.1l.2-.473c.053-.161.138-.415.473-.415h.582A.6.6,0,0,1,26.8,5.679ZM22.136,7.152a2.821,2.821,0,0,0-2.708,3.033,2.972,2.972,0,0,0,2.794,3.053,3.948,3.948,0,0,0,2.191-.74V8.468A2.834,2.834,0,0,0,22.136,7.152ZM29.965.6a1.544,1.544,0,0,0-1.538,1.582A1.55,1.55,0,0,0,29.965,3.74a1.571,1.571,0,1,0,0-3.141Zm.6,4.491H29.361a.6.6,0,0,0-.59.589v9.01a.59.59,0,0,0,.59.59h1.208a.6.6,0,0,0,.589-.59V5.679A.62.62,0,0,0,30.569,5.09Zm5.91,4c-1.059-.462-1.632-.815-1.632-1.36,0-.383.357-.769,1.155-.769a5.048,5.048,0,0,1,2.088.486.582.582,0,0,0,.8-.248l.345-.689a.709.709,0,0,0-.256-.882A5.713,5.713,0,0,0,36,4.874c-2.357,0-3.413,1.422-3.413,2.831,0,1.764,1.328,2.606,2.763,3.253,1.4.634,2.065,1.038,2.065,1.618,0,.528-.459.856-1.2.856a4.5,4.5,0,0,1-2.387-.7l-.034-.018a.644.644,0,0,0-.5-.076.494.494,0,0,0-.3.254l-.452.925a.517.517,0,0,0,.208.663h0a5.917,5.917,0,0,0,3.342,1.034c2.411,0,3.672-1.522,3.672-3.025C39.761,10.617,38.461,9.926,36.479,9.087Zm10.558,3.964a.556.556,0,0,0-.316-.335.523.523,0,0,0-.432.063,3.244,3.244,0,0,1-1.537.459c-.359,0-.681-.069-.681-.9V7.152h2.514a.605.605,0,0,0,.59-.59V5.679a.577.577,0,0,0-.59-.589H44.071V2.424a.574.574,0,0,0-.569-.59H42.273a.59.59,0,0,0-.589.59V5.09H40.657a.57.57,0,0,0-.59.589v.883a.59.59,0,0,0,.59.59h1.027v5.274c0,1.438.3,3.09,2.637,3.09a6.116,6.116,0,0,0,2.822-.729.556.556,0,0,0,.283-.721Zm8.023-7.61c-.263-.419-1.156-.567-1.905-.567a4,4,0,0,0-2.973,1.335l-.212-.686a.574.574,0,0,0-.544-.433h-.517a.6.6,0,0,0-.59.589v9.01a.59.59,0,0,0,.59.59H49.9c.321,0,.806,0,.806-.59V8.4A2.738,2.738,0,0,1,52.94,7.152a2.369,2.369,0,0,1,.853.182.548.548,0,0,0,.424.033.6.6,0,0,0,.336-.324l.517-1.077A.517.517,0,0,0,55.06,5.441Zm8.351,3.946v5.3a.605.605,0,0,1-.59.59H62.11c-.284,0-.412-.166-.516-.416l-.181-.509A4.386,4.386,0,0,1,58.4,15.516a3.2,3.2,0,0,1-3.328-3.435c0-2.021,1.611-3.327,4.1-3.327a7.7,7.7,0,0,1,1.892.265,2.3,2.3,0,0,0-.417-1.668A1.414,1.414,0,0,0,59.588,7a10.1,10.1,0,0,0-2.749.47.577.577,0,0,1-.7-.494l-.194-.82a.566.566,0,0,1,.4-.717A10.865,10.865,0,0,1,59.8,4.874C63.14,4.874,63.411,6.918,63.411,9.387Zm-4.06,1.149c-1.174,0-1.933.6-1.933,1.524a1.343,1.343,0,0,0,1.436,1.458,2.987,2.987,0,0,0,2.191-1.125V10.835A4.853,4.853,0,0,0,59.351,10.536Zm11.773,2.515a.556.556,0,0,0-.316-.335.523.523,0,0,0-.432.063,3.244,3.244,0,0,1-1.537.459c-.359,0-.681-.069-.681-.9V7.152h2.514a.605.605,0,0,0,.59-.59V5.679a.577.577,0,0,0-.59-.589H68.158V2.424a.574.574,0,0,0-.569-.59H66.36a.591.591,0,0,0-.59.59V5.09H64.744a.57.57,0,0,0-.59.589v.883a.591.591,0,0,0,.59.59H65.77v5.274c0,1.438.3,3.09,2.638,3.09a6.107,6.107,0,0,0,2.821-.729.556.556,0,0,0,.284-.721ZM74.2,5.09H72.994a.605.605,0,0,0-.591.589v9.01a.591.591,0,0,0,.591.59H74.2a.605.605,0,0,0,.59-.59V5.679A.621.621,0,0,0,74.2,5.09ZM73.6.6a1.543,1.543,0,0,0-1.538,1.582A1.55,1.55,0,0,0,73.6,3.74,1.571,1.571,0,1,0,73.6.6Zm12.869,9.563a5.341,5.341,0,0,1-5.182,5.354,5.323,5.323,0,1,1,5.182-5.354Zm-2.344,0a2.853,2.853,0,1,0-5.7,0,2.857,2.857,0,1,0,5.7,0Zm8.867-5.288a4.7,4.7,0,0,0-3.3,1.277l-.235-.671a.5.5,0,0,0-.522-.39h-.518a.6.6,0,0,0-.589.589v9.01a.6.6,0,0,0,.589.59h1.1c.469,0,.7-.192.7-.59V8.507A2.939,2.939,0,0,1,92.73,7.152c1.191,0,1.847.87,1.847,2.451v5.086a.6.6,0,0,0,.59.59h1.207a.605.605,0,0,0,.59-.59v-5C96.964,6.448,95.664,4.874,92.989,4.874Zm9.2,4.213c-1.059-.462-1.633-.815-1.633-1.36,0-.383.358-.769,1.156-.769a5.04,5.04,0,0,1,2.087.486.585.585,0,0,0,.8-.248l.344-.689a.709.709,0,0,0-.255-.882,5.718,5.718,0,0,0-2.974-.751C99.355,4.874,98.3,6.3,98.3,7.705c0,1.764,1.328,2.606,2.763,3.253,1.4.634,2.066,1.038,2.066,1.618,0,.528-.46.856-1.2.856a4.49,4.49,0,0,1-2.387-.7l-.034-.018A.633.633,0,0,0,99,12.64a.49.49,0,0,0-.3.253l-.452.925a.516.516,0,0,0,.209.663h0a5.923,5.923,0,0,0,3.342,1.034c2.411,0,3.673-1.522,3.673-3.025C105.472,10.617,104.172,9.926,102.19,9.087Z\"\n />\n </svg>\n )\n}\n\nexport function Services({ color, size = 20 }): JSX.Element {\n return (\n <svg\n id=\"bd77a8f3-6992-4241-927e-9fdc3bf67b80\"\n data-name=\"Layer 1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n height={size}\n viewBox=\"0 0 67.995 20\"\n >\n <title>services-text</title>\n <path\n fill={color}\n d=\"M7.277,12.49c0,1.5-1.262,3.026-3.672,3.026A5.924,5.924,0,0,1,.262,14.482h0a.521.521,0,0,1-.209-.663L.5,12.893a.5.5,0,0,1,.305-.254.62.62,0,0,1,.5.075l.036.019a4.479,4.479,0,0,0,2.385.7c.74,0,1.2-.328,1.2-.856,0-.582-.666-.985-2.066-1.618C1.432,10.311.105,9.469.105,7.705c0-1.41,1.055-2.832,3.413-2.832a5.717,5.717,0,0,1,2.974.752.7.7,0,0,1,.255.881L6.4,7.2a.58.58,0,0,1-.8.248,5.04,5.04,0,0,0-2.087-.485c-.8,0-1.155.386-1.155.768,0,.546.573.9,1.632,1.361C5.977,9.925,7.277,10.615,7.277,12.49ZM17.622,9.559c0,.178-.022.528-.044.7a.58.58,0,0,1-.568.532H10.255a2.818,2.818,0,0,0,2.854,2.485,3.734,3.734,0,0,0,2.369-.819.64.64,0,0,1,.451-.148.472.472,0,0,1,.294.22l.583.907a.513.513,0,0,1-.065.82,5.715,5.715,0,0,1-3.761,1.256,5.047,5.047,0,0,1-5.1-5.332,5.083,5.083,0,0,1,5.074-5.311A4.573,4.573,0,0,1,17.622,9.559ZM15.249,8.97a2.229,2.229,0,0,0-2.334-2.034,2.412,2.412,0,0,0-2.54,2.034Zm8.511-4.1a3.929,3.929,0,0,0-2.972,1.338l-.213-.688a.575.575,0,0,0-.544-.434h-.518a.6.6,0,0,0-.589.589v9.01a.6.6,0,0,0,.589.59h.992c.32,0,.8,0,.8-.59V8.4a2.74,2.74,0,0,1,2.235-1.249,2.351,2.351,0,0,1,.854.183.534.534,0,0,0,.424.032.584.584,0,0,0,.334-.323l.518-1.077a.517.517,0,0,0-.01-.525C25.4,5.022,24.509,4.873,23.76,4.873Zm11.569.216H34.36c-.288,0-.613,0-.774.348l-2.695,5.912L28.319,5.433a.545.545,0,0,0-.535-.344H26.469a.544.544,0,0,0-.493.238.489.489,0,0,0,.024.49l4.311,9.376a.6.6,0,0,0,.534.323h.13a.56.56,0,0,0,.514-.327L35.8,5.822a.49.49,0,0,0,.027-.5A.545.545,0,0,0,35.329,5.089Zm3.154,0H37.276a.6.6,0,0,0-.59.589v9.01a.6.6,0,0,0,.59.59h1.207a.605.605,0,0,0,.59-.59V5.678A.621.621,0,0,0,38.483,5.089ZM37.879.6A1.543,1.543,0,0,0,36.341,2.18a1.532,1.532,0,0,0,1.538,1.559,1.57,1.57,0,1,0,0-3.14Zm10.8,11.392a.567.567,0,0,0-.818.047c-.08.073-.16.152-.241.233a2.623,2.623,0,0,1-2.031.966,2.92,2.92,0,0,1-2.838-3.053,2.778,2.778,0,0,1,4.87-2.073c.165.164.444.443.806.11l.774-.71a.606.606,0,0,0,.1-.87,4.465,4.465,0,0,0-3.711-1.768,5.285,5.285,0,0,0-5.225,5.332,5.2,5.2,0,0,0,5.2,5.311,4.647,4.647,0,0,0,3.977-2.12c.13-.2.2-.5-.2-.866ZM59.784,9.559c0,.178-.022.528-.044.7a.58.58,0,0,1-.567.532H52.417a2.818,2.818,0,0,0,2.854,2.485,3.734,3.734,0,0,0,2.369-.819.641.641,0,0,1,.451-.148.472.472,0,0,1,.294.22l.583.907a.513.513,0,0,1-.065.82,5.712,5.712,0,0,1-3.761,1.256,5.047,5.047,0,0,1-5.1-5.332A5.083,5.083,0,0,1,55.12,4.873,4.573,4.573,0,0,1,59.784,9.559ZM52.537,8.97h4.874a2.229,2.229,0,0,0-2.334-2.034A2.412,2.412,0,0,0,52.537,8.97ZM64.4,9.087c-1.06-.462-1.633-.816-1.633-1.361,0-.382.357-.768,1.156-.768a5.047,5.047,0,0,1,2.087.485.58.58,0,0,0,.8-.248l.344-.689a.706.706,0,0,0-.256-.881,5.71,5.71,0,0,0-2.973-.752c-2.358,0-3.414,1.422-3.414,2.832,0,1.764,1.328,2.606,2.763,3.253,1.4.633,2.066,1.036,2.066,1.618,0,.528-.459.856-1.2.856a4.485,4.485,0,0,1-2.384-.7l-.037-.02a.632.632,0,0,0-.5-.075.493.493,0,0,0-.3.254l-.452.925a.521.521,0,0,0,.209.663h0a5.923,5.923,0,0,0,3.342,1.034c2.412,0,3.673-1.522,3.673-3.026C67.685,10.615,66.385,9.925,64.4,9.087Z\"\n />\n </svg>\n )\n}\n","import React from \"react\"\n\nimport * as MonoAppText from \"./mono_app_text\"\n\nexport function MonoAppName({ appName, color, size = 20 }) {\n return MonoAppText[appName] ? (\n React.createElement(MonoAppText[appName], { color, size })\n ) : (\n <div>appName not supported</div>\n )\n}\n","export const slightBackgroundTransition = {\n transition: \"background-color 120ms ease-in\",\n}\n\nexport const fontFamily = {\n fontFamily: `inherit`,\n}\n\nexport const IEFlex1 = {\n flex: \"1 1 auto\",\n}\n","import React from \"react\"\n\nexport const Bell = ({\n dot = false,\n dotFill = \"#fff\",\n fill = \"#fff\",\n style,\n ...props\n}: {\n dot?: boolean\n dotFill?: string\n fill?: string\n style?: object\n}) => {\n const bellPath = (\n <path\n d=\"M21.482,16.626,19.1,13.649V9a7,7,0,0,0-14,0v4.649L2.478,16.929A1.89,1.89,0,0,0,3.952,20H9.285a2.983,2.983,0,0,0,5.633,0H19.86a2.077,2.077,0,0,0,1.622-3.374ZM19.86,18H4.182l2.7-3.375A1,1,0,0,0,7.1,14V9a5,5,0,0,1,10,0v5a1,1,0,0,0,.219.625l2.6,3.25Z\"\n fill=\"white\"\n />\n )\n return (\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n style={{ display: \"block\", ...style }}\n {...props}\n stroke=\"none\"\n >\n <title>bell</title>\n <defs>\n <mask id=\"mask-no-dot\">{bellPath}</mask>\n <mask id=\"mask-dot\">\n {bellPath}\n <circle cx=\"18\" cy=\"6\" fill=\"black\" r=\"7\" />\n </mask>\n </defs>\n <rect\n fill={fill}\n height=\"24\"\n mask={dot ? \"url(#mask-dot)\" : \"url(#mask-no-dot\"}\n width=\"24\"\n x=\"0\"\n y=\"0\"\n />\n {dot && <circle cx=\"18\" cy=\"6\" r=\"4\" fill={dotFill || fill} />}\n </svg>\n )\n}\n\nexport const BlankStateIcon = ({\n dark = false,\n id = \"default\",\n style,\n ...nativeProps\n}: {\n dark?: boolean\n id?: string\n style?: object\n}) => (\n <svg\n fill=\"none\"\n height=\"123\"\n style={{ ...style }}\n width=\"160\"\n {...nativeProps}\n >\n <g clipPath={`url(#clip-path-blank-state-${id})`}>\n <path\n opacity=\".6\"\n d=\"M155.367 66.751c-6.081 17.955-18.824 33.158-32.579 41.991-14.045 8.977-28.96 11.294-46.19 7.529-16.941-3.764-33.738-11.583-47.638-18.968C15.204 89.63 4.344 82.533 1.593 71.385-1.013 60.525 4.78 45.61 18.68 30.842 32.435 16.362 54.3 2.896 80.362.579c25.919-2.606 49.666 6.082 63.276 18.534 13.901 12.597 17.666 29.828 11.729 47.638z\"\n fill={dark ? \"#414141\" : \"#E1F0F9\"}\n />\n <g opacity=\".2\">\n <path\n opacity=\".2\"\n d=\"M90.643 122.063c-9.702 0-19.258-2.606-29.25-7.674-12.741-6.66-26.352-16.796-41.41-30.841C8.832 72.688-.29 62.697 0 50.678c.145-8.542 5.503-17.81 14.914-26.352l1.448 1.593c-9.122 8.108-14.19 16.94-14.335 24.76-.29 11.294 8.543 20.85 19.403 31.42C36.344 96 49.81 105.992 62.263 112.508c13.031 6.805 25.629 8.977 38.371 6.516l.434 2.027c-3.475.724-6.95 1.013-10.425 1.013zM116.706 115.982l-.869-1.738c13.756-6.226 25.919-16.507 34.027-28.67l1.738 1.159c-8.254 12.453-20.706 22.878-34.896 29.249zM158.552 71.385l-2.027-.58c2.896-11.294.869-22.877-5.792-33.303-10.715-17.086-32-29.973-55.457-33.882-19.258-3.475-40.108-.29-58.642 8.688l-.869-1.883c18.824-9.122 40.109-12.307 59.8-8.832 24.037 3.91 45.901 17.23 56.906 34.75 7.095 11.005 9.267 23.023 6.081 35.042z\"\n fill=\"#BAC7D3\"\n />\n </g>\n <path\n d=\"M115.258 20.706l-.145 4.199c0 .869.289 1.882 1.013 2.461l3.186 2.752c.724.724.29 1.882-.724 1.882l-4.199-.145c-.869 0-1.882.29-2.462 1.014l-2.896 3.33c-.724.724-1.882.29-1.882-.724l.145-4.199c0-.869-.29-1.882-1.014-2.462l-3.185-2.75c-.724-.725-.29-1.883.724-1.883l4.199.145c.869 0 1.882-.29 2.461-1.014l2.751-3.185c.724-.87 2.028-.435 2.028.579zM92.959 30.842v1.882c0 .434.144.869.579 1.158l1.448 1.159c.29.29.145.869-.29.869h-1.882c-.434 0-.869.144-1.158.579l-1.159 1.448c-.29.29-.869.145-.869-.29v-1.882c0-.435-.144-.869-.579-1.159l-1.448-1.158c-.29-.29-.145-.869.29-.869h1.882c.435 0 .869-.145 1.159-.579l1.158-1.448c.29-.434.869-.29.869.29z\"\n fill=\"#FCC846\"\n />\n <path\n d=\"M68.778 36.633l-19.982 57.63 57.919-20.127-37.937-37.502z\"\n fill=\"#48A5E5\"\n />\n <path\n d=\"M82.099 54.299H62.696l2.027-5.647h12.308l5.068 5.647zM99.91 70.082H57.194l2.027-5.648h33.737l6.95 5.648zM72.398 85.864H51.692l1.737-5.647h35.91l-16.941 5.647z\"\n fill=\"#79CAF2\"\n />\n <path\n d=\"M107.613 73.964c1.44-1.5-6.087-11.069-16.813-21.374-10.726-10.305-20.588-17.443-22.029-15.944-1.44 1.5 6.087 11.069 16.813 21.374 10.726 10.305 20.588 17.443 22.029 15.944z\"\n fill={dark ? \"#525252\" : \"#636363\"}\n />\n <path\n d=\"M113.086 55.747h-3.041c-.724 0-1.303.29-1.737.868l-1.883 2.607c-.434.579-1.448.29-1.448-.435l-.144-3.185c0-.724-.29-1.303-.869-1.738l-2.607-1.882c-.579-.434-.289-1.448.435-1.448l3.185-.145c.724 0 1.303-.29 1.738-.869l1.882-2.606c.435-.58 1.448-.29 1.448.434l.145 3.186c0 .724.29 1.303.869 1.738l2.606 1.882c.579.58.29 1.593-.579 1.593z\"\n fill=\"#FCC846\"\n />\n </g>\n <defs>\n <clipPath id={`clip-path-blank-state-${id}`}>\n <path fill=\"#fff\" d=\"M0 0h160v122.063H0z\" />\n </clipPath>\n </defs>\n </svg>\n)\n\nexport const ChevronIcon = ({\n fill = \"#000\",\n size = 24,\n style,\n ...nativeProps\n}: {\n fill?: string\n size?: number\n style?: object\n}) => (\n <svg\n height={size}\n style={{ display: \"block\", ...style }}\n viewBox=\"0 0 16 16\"\n width={size}\n {...nativeProps}\n >\n <title>chevron</title>\n <path\n d=\"M10.209 16L2.255 8.045L10.209 0.0910034L11.977 1.859L5.789 8.045L11.977 14.233L10.209 16Z\"\n fill={fill}\n />\n </svg>\n)\n\nexport const Cog = ({\n fill = \"#000\",\n size = 24,\n style,\n ...nativeProps\n}: {\n fill?: string\n size?: number\n style?: object\n}) => (\n <svg\n height={size}\n style={{ display: \"block\", ...style }}\n viewBox=\"0 0 16 16\"\n width={size}\n {...nativeProps}\n >\n <title>cog icon</title>\n <path\n d=\"M15.975 7.169H15.965L14.44 6.91C14.3024 6.90264 14.1694 6.85837 14.0548 6.78182C13.9403 6.70528 13.8484 6.59929 13.789 6.475C13.653 5.95399 13.4465 5.45403 13.175 4.989C13.1286 4.85874 13.118 4.71844 13.1442 4.58267C13.1704 4.44691 13.2325 4.32064 13.324 4.217L14.224 2.957L14.23 2.949C14.24 2.934 14.24 2.923 14.23 2.914L14.2 2.89L14.155 2.844L13.155 1.844L13.095 1.784L13.085 1.775C13.076 1.765 13.065 1.765 13.05 1.775L11.782 2.675C11.6788 2.76662 11.5529 2.82887 11.4175 2.85525C11.2821 2.88164 11.142 2.87119 11.012 2.825C10.5462 2.55339 10.0456 2.34649 9.524 2.21C9.40004 2.1505 9.29435 2.05878 9.218 1.94443C9.14164 1.83007 9.09744 1.6973 9.09 1.56L8.833 0.035V0.025C8.828 0.008 8.821 0 8.807 0H7.193C7.179 0 7.172 0.008 7.169 0.025L6.91 1.56C6.90286 1.69763 6.85866 1.83078 6.7821 1.94537C6.70553 2.05996 6.59942 2.15173 6.475 2.211C5.95399 2.34697 5.45403 2.55355 4.989 2.825C4.85874 2.87138 4.71844 2.88203 4.58267 2.85583C4.44691 2.82962 4.32064 2.76753 4.217 2.676L2.957 1.776L2.949 1.77C2.934 1.76 2.923 1.76 2.914 1.77L2.89 1.8L2.844 1.845L1.844 2.845L1.784 2.905L1.775 2.915C1.765 2.924 1.765 2.935 1.775 2.95L2.675 4.218C2.76662 4.32118 2.82887 4.44706 2.85525 4.5825C2.88164 4.71794 2.87119 4.85797 2.825 4.988C2.55382 5.45174 2.34724 5.95035 2.211 6.47C2.15164 6.59477 2.05996 6.70138 1.94549 6.77875C1.83101 6.85612 1.69791 6.90144 1.56 6.91L0.035 7.167H0.025C0.008 7.167 0 7.177 0 7.191V8.807C0 8.821 0.008 8.828 0.025 8.831L1.56 9.09C1.69791 9.09856 1.83101 9.14388 1.94549 9.22125C2.05996 9.29862 2.15164 9.40523 2.211 9.53C2.34701 10.0494 2.5536 10.5477 2.825 11.011C2.87138 11.1413 2.88203 11.2816 2.85583 11.4173C2.82962 11.5531 2.76753 11.6794 2.676 11.783L1.776 13.051C1.766 13.066 1.766 13.077 1.776 13.086L1.785 13.096L1.845 13.156L2.845 14.156L2.891 14.201L2.915 14.225C2.924 14.235 2.935 14.235 2.95 14.225L2.958 14.219L4.218 13.319C4.32118 13.2274 4.44706 13.1651 4.5825 13.1387C4.71794 13.1124 4.85797 13.1228 4.988 13.169C5.452 13.4406 5.95095 13.6475 6.471 13.784C6.59563 13.8433 6.70214 13.9348 6.77951 14.0491C6.85687 14.1634 6.90227 14.2963 6.911 14.434L7.17 15.97C7.17 15.987 7.18 15.995 7.194 15.995H8.807C8.821 15.995 8.828 15.987 8.831 15.97V15.96L9.088 14.434C9.09673 14.2963 9.14213 14.1634 9.21949 14.0491C9.29686 13.9348 9.40337 13.8433 9.528 13.784C10.0474 13.648 10.5457 13.4414 11.009 13.17C11.1393 13.1236 11.2796 13.113 11.4153 13.1392C11.5511 13.1654 11.6774 13.2275 11.781 13.319L13.049 14.219C13.064 14.229 13.075 14.229 13.084 14.219L13.094 14.21L13.154 14.15L14.154 13.15L14.199 13.104L14.223 13.08C14.233 13.071 14.233 13.06 14.223 13.045L14.217 13.037L13.317 11.777C13.2254 11.6738 13.1631 11.5479 13.1367 11.4125C13.1104 11.2771 13.1208 11.137 13.167 11.007C13.4386 10.543 13.6455 10.044 13.782 9.524C13.8414 9.39923 13.933 9.29262 14.0475 9.21525C14.162 9.13788 14.2951 9.09256 14.433 9.084L15.968 8.825C15.985 8.825 15.993 8.815 15.993 8.801V7.193C16 7.179 15.992 7.172 15.975 7.169ZM10.619 10.619C10.1012 11.1357 9.44195 11.4873 8.72443 11.6295C8.00691 11.7716 7.26336 11.6979 6.58772 11.4176C5.91208 11.1374 5.33467 10.6631 4.92844 10.0548C4.52222 9.44652 4.30541 8.73147 4.30541 8C4.30541 7.26854 4.52222 6.55348 4.92844 5.94519C5.33467 5.33689 5.91208 4.86265 6.58772 4.58238C7.26336 4.30211 8.00691 4.22839 8.72443 4.37054C9.44195 4.51268 10.1012 4.86431 10.619 5.381C10.9634 5.72468 11.2366 6.1329 11.423 6.5823C11.6095 7.03171 11.7054 7.51346 11.7054 8C11.7054 8.48654 11.6095 8.96829 11.423 9.4177C11.2366 9.8671 10.9634 10.2753 10.619 10.619Z\"\n fill={fill}\n />\n </svg>\n)\n\nexport const DisclosureChevronIcon = ({\n colors,\n style,\n ...nativeProps\n}: {\n colors: any\n style?: object\n}) => (\n <svg\n color={colors.base3}\n height=\"16\"\n viewBox=\"0 0 16 16\"\n width=\"16\"\n {...{ style }}\n {...nativeProps}\n >\n <title>chevron</title>\n <polygon\n fill=\"currentColor\"\n points=\"11.931 4.892 8 8.824 4.069 4.892 2.927 6.034 8 11.108 9.142 9.966 13.073 6.034 11.931 4.892\"\n />\n </svg>\n)\n\nexport const HelpIcon = ({\n colors,\n style,\n ...nativeProps\n}: {\n colors: any\n style?: object\n}) => (\n <svg\n color={colors.base3}\n height=\"24\"\n style={{ display: \"block\" }}\n viewBox=\"0 0 24 24\"\n width=\"24\"\n {...nativeProps}\n >\n <title>help</title>\n <path\n d=\"M12,22A10,10,0,1,1,22,12,10.011,10.011,0,0,1,12,22ZM12,4a8,8,0,1,0,8,8A8.009,8.009,0,0,0,12,4Zm-.342,11.067a1.41,1.41,0,1,0,1.41,1.41A1.41,1.41,0,0,0,11.658,15.067Zm1.914-2.488c1.938-1.885,2.232-3.607.872-5.118A3.37,3.37,0,0,0,11.9,6.307h-.017A5.121,5.121,0,0,0,8.343,7.959L9.817,9.311a3.153,3.153,0,0,1,2.067-1h.008a1.366,1.366,0,0,1,1.065.493c.494.549.517,1.085-.78,2.345A4.612,4.612,0,0,0,10.632,14.2h2A2.733,2.733,0,0,1,13.572,12.579Z\"\n fill=\"currentColor\"\n />\n </svg>\n)\n\nexport const ExclamationTriangle = ({\n fill = \"#000\",\n size = 24,\n style,\n ...nativeProps\n}: {\n fill?: string\n size: number\n style?: object\n}) => (\n <svg\n height={size}\n style={{ display: \"block\", ...style }}\n viewBox=\"0 0 16 16\"\n width={size}\n {...nativeProps}\n >\n <title>exclamation triangle icon</title>\n <path\n d=\"M15.669 13.676L8.65499 1.56099C8.58867 1.44593 8.49322 1.35037 8.37823 1.28392C8.26325 1.21748 8.13279 1.1825 7.99999 1.1825C7.86718 1.1825 7.73672 1.21748 7.62174 1.28392C7.50675 1.35037 7.4113 1.44593 7.34499 1.56099L0.330986 13.676C0.264196 13.7911 0.228916 13.9217 0.2287 14.0548C0.228484 14.1878 0.26334 14.3186 0.329756 14.4339C0.396172 14.5492 0.491802 14.6449 0.60701 14.7115C0.722218 14.778 0.852933 14.813 0.985986 14.813H15.014C15.147 14.813 15.2778 14.778 15.393 14.7115C15.5082 14.6449 15.6038 14.5492 15.6702 14.4339C15.7366 14.3186 15.7715 14.1878 15.7713 14.0548C15.7711 13.9217 15.7358 13.7911 15.669 13.676ZM8.75699 12.542H7.24299V11.028H8.75699V12.542ZM8.75699 9.51399H7.24299V6.48499H8.75699V9.51399Z\"\n fill={fill}\n />\n </svg>\n)\n\nexport const Spyglass = ({\n fill = \"#000\",\n style,\n ...nativeProps\n}: {\n fill?: string\n style?: object\n}) => (\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n style={{ display: \"block\", ...style }}\n {...nativeProps}\n >\n <title>search spyglass icon</title>\n <path\n d=\"M17.352,15.481a8.517,8.517,0,1,0-2.209,2.033l4.642,4.642,2.121-2.121Zm-6.757,1.364a6.5,6.5,0,1,1,6.5-6.5A6.508,6.508,0,0,1,10.595,16.845Z\"\n fill={fill}\n />\n </svg>\n)\n\nexport const X = ({\n fill = \"#A0A0A0\",\n style,\n ...nativeProps\n}: {\n fill?: string\n style?: object\n}) => (\n <svg\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n style={{ display: \"block\", ...style }}\n {...nativeProps}\n >\n <title>close-x</title>\n <path\n d=\"M9.142,8l3.814,3.814-1.142,1.142L8,9.142,4.186,12.956,3.044,11.814,6.858,8,3.044,4.186,4.186,3.044,8,6.858l3.814-3.814,1.142,1.142Z\"\n fill={fill}\n />\n </svg>\n)\n","import React from \"react\"\n\nimport { fontFamily } from \"./styles\"\n\nexport function Unbutton({\n style,\n ...nativeProps\n}: {\n children: any\n id?: string\n onClick?: any\n onMouseDown?: any\n onMouseEnter?: any\n onMouseLeave?: any\n onMouseUp?: any\n style?: object\n}): JSX.Element {\n return (\n <button\n style={{\n WebkitAppearance: \"none\",\n appearance: \"none\",\n backgroundColor: \"transparent\",\n border: \"none\",\n cursor: \"pointer\",\n display: \"inline-block\",\n outline: 0,\n padding: 0,\n ...fontFamily,\n ...style,\n }}\n {...nativeProps}\n />\n )\n}\n","import React from \"react\"\n\nimport { MonoAppIcon } from \"../mono_app_icon\"\nimport { MonoAppName } from \"../mono_app_name\"\nimport { slightBackgroundTransition } from \"../styles\"\nimport { DisclosureChevronIcon } from \"../symbols\"\nimport { Unbutton } from \"../unbutton\"\n\nconst AppsButton = ({\n appName,\n colors,\n displayIconOnly,\n expanded,\n onClick,\n style = null,\n ...nativeProps\n}: {\n appName: string\n colors: any\n displayIconOnly?: boolean\n expanded: boolean\n onClick: any\n style?: object\n}) => {\n const [down, setDown] = React.useState(false)\n const [entered, setEntered] = React.useState(false)\n\n const getBackgroundColor = () => {\n if (expanded && !down) return colors.base1\n if (entered && down) return colors.base2\n if (entered) return colors.base1\n return \"transparent\"\n }\n\n return (\n <Unbutton\n onClick={onClick}\n onMouseDown={() => setDown(true)}\n onMouseEnter={() => setEntered(true)}\n onMouseLeave={() => setEntered(false)}\n onMouseUp={() => setDown(false)}\n style={{\n alignItems: \"center\",\n backgroundColor: getBackgroundColor(),\n display: \"flex\",\n height: \"100%\",\n outline: 0, // TODO: #improve-outline-a11y\n paddingLeft: \"16px\",\n paddingRight: \"16px\",\n whiteSpace: \"nowrap\",\n ...slightBackgroundTransition,\n ...style,\n }}\n {...nativeProps}\n >\n <MonoAppIcon\n appName={appName.replace(/[\\s-]/, \"\")}\n colors={colors}\n size={24}\n />\n {!displayIconOnly && (\n <>\n {appName === \"Accounts\" ? (\n <div\n style={{\n color: \"#fff\",\n fontSize: \"14px\",\n fontWeight: 500,\n marginLeft: 3,\n }}\n >\n Account settings\n </div>\n ) : (\n <>\n <div key=\"spacer-1\" style={{ margin: 4 }} />\n <MonoAppName\n appName={appName.replace(/[\\s-]/, \"\")}\n color=\"#fff\"\n key=\"mono-app-name\"\n size={24}\n />\n </>\n )}\n <div key=\"space-2\" style={{ margin: 4 }} />\n <DisclosureChevronIcon\n colors={colors}\n key=\"disclosure-chevron-icon\"\n style={{ display: \"block\" }}\n />\n </>\n )}\n </Unbutton>\n )\n}\n\nexport default AppsButton\n","// TODO: Use Fragments when we React 16 is a baseline\nimport React from \"react\"\n\nexport function Accounts(): JSX.Element[] {\n return [\n <defs key=\"def\">\n <linearGradient\n id=\"2e1ed2e7-b842-4126-8f57-f6b6dd63ddb6\"\n x1=\"1.844\"\n y1=\"1.833\"\n x2=\"18.622\"\n y2=\"18.612\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop offset=\"0\" stopColor=\"#32a0f0\" />\n <stop offset=\"1\" stopColor=\"#3f75e5\" />\n </linearGradient>\n </defs>,\n <title key=\"title\">accounts-squircle</title>,\n <path\n key=\"path\"\n d=\"M19.96,10c0,7.962-1.991,9.952-9.952,9.952S.056,17.959.056,10,2.047.045,10.008.045,19.96,2.036,19.96,10Z\"\n fill=\"url(#2e1ed2e7-b842-4126-8f57-f6b6dd63ddb6)\"\n />,\n ]\n}\n\nexport function API(): JSX.Element[] {\n return [\n <defs key=\"def\">\n <linearGradient\n id=\"c8ec303e-a96d-4850-93ae-70864e3306bb\"\n x1=\"0.991\"\n y1=\"0.983\"\n x2=\"19.295\"\n y2=\"19.288\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop offset=\"0\" stopColor=\"#32a0f0\" />\n <stop offset=\"1\" stopColor=\"#3f75e5\" />\n </linearGradient>\n </defs>,\n <title key=\"title\">api-squircle</title>,\n <path\n key=\"path\"\n d=\"M20,10c0,7.991-2,9.989-9.989,9.989S.019,17.991.019,10s2-9.989,9.989-9.989S20,2.009,20,10Z\"\n fill=\"url(#c8ec303e-a96d-4850-93ae-70864e3306bb)\"\n />,\n ]\n}\n\nexport function Calendar(): JSX.Element[] {\n return [\n <defs key=\"defs\">\n <linearGradient\n id=\"calendar-gradient\"\n x1=\"2.05\"\n y1=\"2.04\"\n x2=\"17.97\"\n y2=\"17.96\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop offset=\"0\" stopColor=\"#f25437\" />\n <stop offset=\"1\" stopColor=\"#cd4e39\" />\n </linearGradient>\n </defs>,\n <title key=\"title\">calendar-squircle</title>,\n <path\n key=\"path\"\n d=\"M20,10c0,8-2,10-10,10S.06,18,.06,10,2.05.05,10,.05,20,2,20,10Z\"\n fill=\"url(#calendar-gradient)\"\n />,\n ]\n}\n\nexport function CheckIns(): JSX.Element[] {\n return [\n <defs key=\"def\">\n <linearGradient\n id=\"679bc2bf-38c8-45ab-9ee3-a2ff814fead7\"\n x1=\"1.75\"\n y1=\"1.739\"\n x2=\"18.156\"\n y2=\"18.145\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop offset=\"0\" stopColor=\"#a76ebe\" />\n <stop offset=\"1\" stopColor=\"#875e96\" />\n </linearGradient>\n </defs>,\n <title key=\"title\">check-ins-squircle</title>,\n <path\n key=\"path\"\n d=\"M10.008.045C2.047.045.056,2.036.056,10s1.991,9.952,9.952,9.952S19.96,17.959,19.96,10,17.969.045,10.008.045Z\"\n fill=\"url(#679bc2bf-38c8-45ab-9ee3-a2ff814fead7)\"\n />,\n ]\n}\n\nexport function ChurchCenter(): JSX.Element[] {\n return [\n <defs key=\"def\">\n <linearGradient\n id=\"6de99831-a6f8-498e-9bf3-9d55c8d887fa\"\n x1=\"2.04\"\n y1=\"2.029\"\n x2=\"17.976\"\n y2=\"17.965\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop offset=\"0\" stopColor=\"#42a5f5\" />\n <stop offset=\"1\" stopColor=\"#66bb6a\" />\n </linearGradient>\n </defs>,\n <title key=\"title\">church-center-squircle</title>,\n <path\n key=\"path\"\n d=\"M10.008.037C2.04.037.048,2.029.048,10s1.992,9.96,9.96,9.96,9.96-1.992,9.96-9.96S17.976.037,10.008.037Z\"\n fill=\"url(#6de99831-a6f8-498e-9bf3-9d55c8d887fa)\"\n />,\n ]\n}\n\nexport function Giving(): JSX.Element[] {\n return [\n <defs key=\"def\">\n <linearGradient\n id=\"0aae6372-b733-476d-af45-8777c08c1e24\"\n x1=\"2.047\"\n y1=\"2.036\"\n x2=\"17.969\"\n y2=\"17.959\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop offset=\"0\" stopColor=\"#f5c426\" />\n <stop offset=\"1\" stopColor=\"#f2b327\" />\n </linearGradient>\n </defs>,\n <title key=\"title\">giving-squircle</title>,\n <path\n key=\"path\"\n d=\"M10.008.045C2.047.045.056,2.036.056,10s1.991,9.952,9.952,9.952S19.96,17.959,19.96,10,17.969.045,10.008.045Z\"\n fill=\"url(#0aae6372-b733-476d-af45-8777c08c1e24)\"\n />,\n ]\n}\n\nexport function Groups(): JSX.Element[] {\n return [\n <defs key=\"def\">\n <linearGradient\n id=\"86d10072-1c7f-4a02-88fe-0735565ae99a\"\n x1=\"1.939\"\n y1=\"1.928\"\n x2=\"18.146\"\n y2=\"18.135\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop offset=\"0\" stopColor=\"#ff962d\" />\n <stop offset=\"1\" stopColor=\"#fc7638\" />\n </linearGradient>\n </defs>,\n <title key=\"title\">groups-squircle</title>,\n <path\n key=\"path\"\n d=\"M19.96,10c0,7.962-1.991,9.952-9.952,9.952S.056,17.959.056,10,2.047.045,10.008.045,19.96,2.036,19.96,10Z\"\n fill=\"url(#86d10072-1c7f-4a02-88fe-0735565ae99a)\"\n />,\n ]\n}\n\nexport function Home(): JSX.Element[] {\n return [\n <defs key=\"def\">\n <linearGradient\n id=\"paint0_linear_1_2\"\n x1=\"-2.23242\"\n y1=\"0.320978\"\n x2=\"19.9609\"\n y2=\"22.5228\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop offset=\"0\" stopColor=\"#289DFF\" />\n <stop offset=\"1\" stopColor=\"#2266F7\" />\n </linearGradient>\n </defs>,\n <title key=\"title\">home-squircle</title>,\n <path\n key=\"path\"\n d=\"M9.99962 0C1.99854 0 0 2.00015 0 10C0 17.9998 1.99854 20 9.99962 20C18.0007 20 20 18.0014 20 10C20 1.99862 17.9999 0 9.99962 0Z\"\n fill=\"url(#paint0_linear_1_2)\"\n />,\n ]\n}\n\nexport function People(): JSX.Element[] {\n return [\n <defs key=\"def\">\n <linearGradient\n id=\"7f805f16-2322-4b42-b61a-2bf71eadb25a\"\n x1=\"2.047\"\n y1=\"2.036\"\n x2=\"17.969\"\n y2=\"17.958\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop offset=\"0\" stopColor=\"#32a0f0\" />\n <stop offset=\"1\" stopColor=\"#3f75e5\" />\n </linearGradient>\n </defs>,\n <title key=\"title\">people-squircle</title>,\n <path\n key=\"path\"\n d=\"M19.96,10c0,7.962-1.991,9.952-9.952,9.952S.056,17.959.056,10,2.047.045,10.008.045,19.96,2.036,19.96,10Z\"\n fill=\"url(#7f805f16-2322-4b42-b61a-2bf71eadb25a)\"\n />,\n ]\n}\n\nexport function Publishing(): JSX.Element[] {\n return [\n <defs key=\"def\">\n <linearGradient\n id=\"publishing-gradient\"\n x1=\"2.047\"\n y1=\"2.036\"\n x2=\"17.969\"\n y2=\"17.958\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop offset=\"0\" stopColor=\"#787882\" />\n <stop offset=\"1\" stopColor=\"#5f5f69\" />\n </linearGradient>\n <linearGradient\n id=\"publishing-gradient-2\"\n x1=\"2.03\"\n y1=\"2.03\"\n x2=\"17.952\"\n y2=\"17.952\"\n gradientTransform=\"translate(2.563 -2.028) rotate(13.283)\"\n xlinkHref=\"#publishing-gradient\"\n />\n </defs>,\n <title key=\"title\">publishing-squircle</title>,\n <path\n d=\"M19.96,10c0,7.962-1.991,9.952-9.952,9.952S.056,17.959.056,10,2.047.045,10.008.045,19.96,2.036,19.96,10Z\"\n fill=\"url(#publishing-gradient)\"\n key=\"path\"\n />,\n <circle\n cx=\"9.991\"\n cy=\"9.991\"\n r=\"9.951\"\n transform=\"translate(-2.028 2.563) rotate(-13.283)\"\n fill=\"url(#publishing-gradient-2)\"\n key=\"circle\"\n />,\n ]\n}\n\nexport function Registrations(): JSX.Element[] {\n return [\n <defs key=\"def\">\n <linearGradient\n id=\"bd67604d-f11c-4431-bd82-159c57241115\"\n x1=\"2.047\"\n y1=\"2.036\"\n x2=\"17.969\"\n y2=\"17.958\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop offset=\"0\" stopColor=\"#41b99e\" />\n <stop offset=\"1\" stopColor=\"#46948d\" />\n </linearGradient>\n </defs>,\n <title key=\"title\">registrations-squircle</title>,\n <path\n key=\"path\"\n d=\"M19.96,10c0,7.962-1.991,9.952-9.952,9.952S.056,17.959.056,10,2.047.045,10.008.045,19.96,2.036,19.96,10Z\"\n fill=\"url(#bd67604d-f11c-4431-bd82-159c57241115)\"\n />,\n ]\n}\n\nexport function Services(): JSX.Element[] {\n return [\n <defs key=\"def\">\n <linearGradient\n id=\"00f9217c-0536-41ea-b265-a8689874be71\"\n x1=\"2.04\"\n y1=\"2.029\"\n x2=\"17.976\"\n y2=\"17.965\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop offset=\"0\" stopColor=\"#6eaa50\" />\n <stop offset=\"1\" stopColor=\"#6a9639\" />\n </linearGradient>\n </defs>,\n <title key=\"title\">services-squircle</title>,\n <path\n key=\"path\"\n d=\"M19.968,10c0,7.968-1.992,9.96-9.96,9.96S.048,17.965.048,10,2.04.037,10.008.037,19.968,2.029,19.968,10Z\"\n fill=\"url(#00f9217c-0536-41ea-b265-a8689874be71)\"\n />,\n ]\n}\n","import React from \"react\"\n\nimport * as ColorAppSquircles from \"./color_app_squircles\"\nimport * as AppSymbols from \"./mono_app_symbols\"\n\nexport function ColorAppIcon({\n appName,\n size = 20,\n}: {\n appName: string\n size?: number\n}): JSX.Element {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width={size}\n height={size}\n viewBox=\"0 0 20 20\"\n style={{ display: \"block\" }}\n >\n {ColorAppSquircles[appName] ? (\n React.createElement(ColorAppSquircles[appName], { key: \"key1\" })\n ) : (\n <span key=\"key1\" />\n )}\n {AppSymbols[appName] ? (\n React.createElement(AppSymbols[appName], { color: \"#fff\", key: \"key2\" })\n ) : (\n <div key=\"key3\">appName not supported</div>\n )}\n </svg>\n )\n}\n","export default function getAppsSwitchProductPath(productName: string): string {\n const basePath = `/apps/${productName.toLowerCase()}`\n const referer = window?.location?.pathname?.toString()\n\n if (!referer) return basePath\n\n const params = new URLSearchParams()\n params.append(\"referer\", referer)\n\n return `${basePath}?${params.toString()}`\n}\n","import React from \"react\"\n\nconst HoverableListItem = ({\n active = false,\n component: C = \"span\",\n style = null,\n ...nativeProps\n}: {\n active?: boolean\n children?: React.ReactNode\n component?: any\n href?: string\n onClick?: any\n style?: object\n}) => {\n const [entered, setEntered] = React.useState(false)\n\n const getBackgroundColor = () =>\n active ? \"#ededed\" : entered ? \"#f7f7f7\" : \"transparent\"\n\n return (\n <C\n onMouseEnter={() => setEntered(true)}\n onMouseLeave={() => setEntered(false)}\n style={{ ...style, backgroundColor: getBackgroundColor() }}\n {...nativeProps}\n />\n )\n}\n\nexport default HoverableListItem\n","import React from \"react\"\n\nexport default class Outsider extends React.Component<\n {\n cleanup: boolean\n component: any\n onOutsideClick: any\n visible: boolean\n },\n {}\n> {\n private container: HTMLElement\n\n constructor(props: any) {\n super(props)\n this.handleOutsideClick = this.handleOutsideClick.bind(this)\n }\n\n componentWillUnmount() {\n document.removeEventListener(\"click\", this.handleOutsideClick, true)\n }\n\n handleOutsideClick(e) {\n if (this.container.contains(e.target)) return\n\n e.stopPropagation()\n e.preventDefault()\n\n return this.props.onOutsideClick()\n }\n\n render() {\n const { cleanup, onOutsideClick, visible, ...props } = this.props\n\n if (cleanup) {\n document.removeEventListener(\"click\", this.handleOutsideClick, true)\n } else {\n document.addEventListener(\"click\", this.handleOutsideClick, true)\n }\n\n return <div ref={(c) => (this.container = c)} {...props} />\n }\n}\n","import React from \"react\"\n\nconst PopupRoot = ({\n style = null,\n ...nativeProps\n}: {\n children?: React.ReactNode\n style?: object\n}) => (\n <div\n style={{\n alignSelf: \"flex-end\",\n display: \"flex\",\n position: \"relative\",\n ...style,\n }}\n {...nativeProps}\n />\n)\n\nexport default PopupRoot\n","import React from \"react\"\n\nconst Popup = ({\n component: C = \"div\",\n style = null,\n ...nativeProps\n}: {\n children?: React.ReactNode\n cleanup?: any\n component?: any\n onOutsideClick?: any\n style?: object\n}) => (\n <C\n style={{\n background: \"#FFFFFF\",\n borderRadius: \"3px\",\n boxShadow: \"0 0 0 1px #D4D9E2, 0 8px 32px rgba(0,0,0,.3)\",\n overflow: \"hidden\",\n position: \"absolute\",\n ...style,\n }}\n {...nativeProps}\n />\n)\n\nexport default Popup\n","import pcoUrl, * as PCO_URL from \"@planningcenter/url\"\nimport React from \"react\"\n\nimport { ColorAppIcon } from \"../color_app_icon\"\nimport getAppsSwitchProductPath from \"../get_apps_switch_product_path\"\nimport { App } from \"../interfaces\"\nimport { MonoAppName } from \"../mono_app_name\"\nimport * as AppSymbols from \"../mono_app_symbols\"\nimport { fontFamily } from \"../styles\"\nimport HoverableListItem from \"./hoverable_list_item\"\nimport Outsider from \"./outsider\"\nimport PopupRoot from \"./popover_root\"\nimport Popup from \"./popup\"\n\nconst AppsMenu = ({\n appName,\n apps,\n env,\n toggle,\n visible,\n}: {\n appName: string\n apps: App[]\n env: PCO_URL.Environment\n toggle: any\n visible: boolean\n}) => {\n const accountsProduct = apps.find(({ name }) => name === \"Accounts\")\n const homeProduct = apps.find(({ name }) => name === \"Home\")\n const restProducts = [...apps]\n .filter(({ name }) => name !== \"Home\" && name !== \"Accounts\")\n .sort((a, b) => a.name.localeCompare(b.name))\n\n const listItemProps = {\n ...fontFamily,\n alignItems: \"center\",\n display: \"flex\",\n height: \"48px\",\n overflow: \"hidden\",\n padding: \"0 16px\",\n verticalAlign: \"middle\",\n }\n\n return (\n <PopupRoot>\n <Popup\n cleanup={!visible}\n component={Outsider}\n onOutsideClick={toggle}\n style={{\n marginTop: \"8px\",\n ...(visible\n ? { opacity: 1, transition: \"none\", visibility: \"visible\" }\n : {\n opacity: 0,\n transition: \"all 120ms ease-in\",\n visibility: \"hidden\",\n }),\n }}\n >\n <menu\n data-pendo=\"app-switcher\"\n style={{ margin: 0, minWidth: 180, padding: 0 }}\n >\n {homeProduct && (\n <HoverableListItem\n component=\"a\"\n data-pendo={`app-switcher--change-app--${homeProduct.name}`}\n data-turbolinks={false}\n href={\n appName === homeProduct.name\n ? `${pcoUrl(env)(\"accounts\")}/apps/${appName}`\n : pcoUrl(env)(\"accounts\") +\n getAppsSwitchProductPath(homeProduct.name)\n }\n style={{ ...listItemProps, borderBottom: \"1px solid #ededed\" }}\n >\n <div style={{ marginRight: \"6px\" }}>\n <ColorAppIcon appName=\"Home\" size={20} />\n </div>\n <MonoAppName appName=\"Home\" color=\"#444\" size={18} />\n </HoverableListItem>\n )}\n {restProducts.map(({ name }, i) => {\n const isFirst = i === 0\n const isLast = i === restProducts.length - 1\n return (\n <HoverableListItem\n component=\"a\"\n data-pendo={`app-switcher--change-app--${name}`}\n data-turbolinks={false}\n href={\n name === appName\n ? `${pcoUrl(env)(\"accounts\")}/apps/${name.toLowerCase()}`\n : pcoUrl(env)(\"accounts\") + getAppsSwitchProductPath(name)\n }\n key={name}\n style={{\n ...listItemProps,\n height: \"40px\",\n paddingBottom: isLast ? \"4px\" : null,\n paddingTop: isFirst ? \"4px\" : null,\n }}\n >\n <div style={{ marginRight: \"6px\" }}>\n <ColorAppIcon appName={name.replace(/[\\s-]/, \"\")} size={20} />\n </div>\n <MonoAppName\n appName={name.replace(/[\\s-]/, \"\")}\n color=\"#444\"\n size={18}\n />\n </HoverableListItem>\n )\n })}\n {accountsProduct && (\n <HoverableListItem\n component=\"a\"\n data-pendo={`app-switcher--change-app--${accountsProduct.name}`}\n data-turbolinks={false}\n href={\n pcoUrl(env)(\"accounts\") +\n getAppsSwitchProductPath(accountsProduct.name)\n }\n style={{\n ...listItemProps,\n borderTop: \"1px solid #ededed\",\n padding: \"0 12px\",\n textDecoration: \"none\",\n }}\n >\n <svg\n height={22}\n style={{ display: \"block\", marginRight: \"2px\" }}\n viewBox=\"0 0 20 20\"\n width={22}\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n {React.createElement(AppSymbols[\"Accounts\"], {\n color: \"#9e9e9e\",\n key: \"key2\",\n })}\n </svg>\n <div\n style={{\n color: \"#737373\",\n fontSize: \"12px\",\n lineHeight: \"28px\",\n }}\n >\n Account settings\n </div>\n </HoverableListItem>\n )}\n </menu>\n </Popup>\n </PopupRoot>\n )\n}\n\nexport default AppsMenu\n","import { App, ConnectedPerson } from \"./interfaces\"\n\nconst sortByAttribute =\n (attr: string) =>\n (arr: any[]): any[] =>\n arr.slice().sort((a, b) => a[attr].localeCompare(b[attr]))\n\nexport const appsMenuFormatter = (apps: App[]): App[] =>\n sortByAttribute(\"name\")(apps).reduce(\n (acc, item) =>\n (item.name || \"\") === \"Church Center\" || (item.name || \"\") === \"API\"\n ? acc\n : item.name === \"Home\"\n ? [item, ...acc]\n : [...acc, item],\n []\n )\n\nexport const connectedPeopleMenuFormatter = (\n connectedPeople: ConnectedPerson[]\n): ConnectedPerson[] =>\n connectedPeople\n .slice()\n .sort((a, b) =>\n a.attributes[\"organization_name\"].localeCompare(\n b.attributes[\"organization_name\"]\n )\n )\n","import { useSyncExternalStore } from \"use-sync-external-store/shim\"\n\nimport store from \"../store\"\n\nconst useStore = <StoreShape = any,>(selector = (state: StoreShape) => state) =>\n useSyncExternalStore(store.subscribe, () => selector(store.getState())) as StoreShape\n\nexport default useStore\n","import React from \"react\"\n\nexport function StyledRoot({ children, style, ...nativeProps }): JSX.Element {\n return (\n <nav\n className=\"simple\"\n data-pendo=\"topbar\"\n aria-label=\"topbar-navigation\"\n style={{\n MozOsxFontSmoothing: \"grayscale\",\n WebkitFontSmoothing: \"antialiased\",\n alignItems: \"center\",\n color: \"white\",\n display: \"flex\",\n height: \"48px\",\n position: \"relative\",\n ...style,\n }}\n {...nativeProps}\n >\n <style>{`\n @media only print {\n .simple {\n display: none !important;\n }\n }\n `}</style>\n {children}\n </nav>\n )\n}\n","const colors = {\n danger43: \"hsl(8 60% 43%)\",\n danger45: \"hsl(8 60% 45%)\", // base\n danger47: \"hsl(8 60% 47%)\",\n danger93: \"hsl(9 59% 93%)\",\n danger97: \"hsl(7 60% 97%)\",\n darkNeutral07: \"hsl(0 0% 7%)\",\n darkNeutral12: \"hsl(0 0% 12%)\",\n darkNeutral15: \"hsl(0 0% 15%)\",\n darkNeutral17: \"hsl(0 0% 17%)\",\n darkNeutral19: \"hsl(0 0% 19%)\",\n darkNeutral24: \"hsl(0 0% 24%)\",\n darkNeutral32: \"hsl(0 0% 32%)\",\n darkNeutral50: \"hsl(0 0% 50%)\",\n darkNeutral68: \"hsl(0 0% 68%)\",\n darkNeutral88: \"hsl(0 0% 88%)\",\n darkNeutral98: \"hsl(0 0% 98%)\",\n home: { brand62: \"rgba(70, 126, 246, 1)\" },\n interaction45: \"hsl(221 75% 45%)\",\n interaction50: \"hsl(221 91% 50%)\",\n interaction55: \"hsl(221 91% 55%)\", // base\n interaction66: \"hsl(221 91% 66%)\", // controls\n interaction91: \"hsl(221 91% 91%)\",\n interaction93: \"hsl(221 91% 93%)\",\n lightNeutral12: \"hsl(0 0% 12%)\",\n lightNeutral24: \"hsl(0 0% 24%)\",\n lightNeutral45: \"hsl(0 0% 45%)\",\n lightNeutral62: \"hsl(0 0% 62%)\",\n lightNeutral81: \"hsl(0 0% 81%)\",\n lightNeutral88: \"hsl(0 0% 88%)\",\n lightNeutral93: \"hsl(0 0% 93%)\",\n lightNeutral95: \"hsl(0 0% 95%)\",\n lightNeutral97: \"hsl(0 0% 97%)\",\n lightNeutral98: \"hsl(0 0% 98%)\",\n lightNeutral100: \"hsl(0 0% 100%)\",\n success23: \"hsl(86 91% 23%)\",\n success25: \"hsl(86 91% 25%)\", // base\n success27: \"hsl(86 91% 27%)\",\n success91: \"hsl(95 50% 91%)\",\n success97: \"hsl(93 53% 97%)\",\n warning20: \"hsl(42 100% 20%)\",\n warning49: \"hsl(42 84% 49%)\",\n warning55: \"hsl(42 84% 55%)\",\n warning63: \"hsl(42 84% 63%)\", // base\n warning94: \"hsl(42 84% 94%)\",\n warning97: \"hsl(42 84% 97%)\",\n}\n\nexport default colors\n","import React from \"react\"\n\nconst PopupRoot = ({\n style = null,\n ...nativeProps\n}: {\n children?: React.ReactNode\n style?: object\n}) => (\n <div\n style={{\n alignSelf: \"flex-end\",\n display: \"flex\",\n position: \"relative\",\n ...style,\n }}\n {...nativeProps}\n />\n)\n\nexport default PopupRoot\n","import {\n Button,\n Divider,\n Icon,\n StackView,\n Text,\n ThemeProvider,\n} from \"@planningcenter/tapestry-react\"\nimport pcoUrl from \"@planningcenter/url\"\nimport * as PCO_URL from \"@planningcenter/url\"\nimport React from \"react\"\n\nimport { default as themeColors } from \"../colors\"\nimport HoverableListItem from \"../components/hoverable_list_item\"\nimport Outsider from \"../components/outsider\"\nimport Popup from \"../components/popup\"\nimport PopupRoot from \"../components/popup_root\"\nimport { connectedPeopleMenuFormatter } from \"../formatters\"\nimport { ConnectedPerson } from \"../interfaces\"\nimport { fontFamily, IEFlex1 } from \"../styles\"\n\ninterface UserMenuProps {\n appName: string\n connectedPeople: ConnectedPerson[]\n env: PCO_URL.Environment\n hasConnectedPeople: boolean\n requestClearAppsCache: any\n requestClearConnectedPeopleCache: any\n requestSwitchConnectedPerson: any\n requestUnlinkConnectedPeople: any\n setUserMenuVisible: Function\n userMenuVisible: boolean\n}\n\nexport const UserMenu = ({\n appName,\n connectedPeople,\n env,\n hasConnectedPeople,\n requestClearAppsCache,\n requestClearConnectedPeopleCache,\n requestSwitchConnectedPerson,\n requestUnlinkConnectedPeople,\n setUserMenuVisible,\n userMenuVisible,\n}: UserMenuProps) => {\n const logoutUrl = `${pcoUrl(env)(\"login\")}/logout`\n\n return (\n <PopupRoot>\n <Popup\n component={Outsider}\n onOutsideClick={() => setUserMenuVisible(false)}\n cleanup={!userMenuVisible}\n style={{\n color: \"#525252\",\n marginTop: \"8px\",\n maxHeight: \"75vh\",\n maxWidth: \"320px\",\n minWidth: \"242px\",\n overflow: \"auto\",\n right: 0,\n ...(userMenuVisible\n ? {\n opacity: 1,\n transition: \"none\",\n visibility: \"visible\",\n }\n : {\n opacity: 0,\n transition: \"all 120ms ease-in\",\n visibility: \"hidden\",\n }),\n cursor: \"default\",\n }}\n >\n <div>\n {hasConnectedPeople ? (\n <div\n style={{\n alignItems: \"center\",\n backgroundColor: \"#eee\",\n display: \"flex\",\n lineHeight: \"32px\",\n padding: \"0 16px\",\n }}\n >\n <div\n style={{\n ...IEFlex1,\n color: \"#666\",\n fontSize: \"12px\",\n textTransform: \"uppercase\",\n whiteSpace: \"nowrap\",\n ...fontFamily,\n }}\n >\n Linked Accounts\n </div>\n\n <div\n style={{\n ...IEFlex1,\n alignItems: \"center\",\n fontSize: \"12px\",\n textAlign: \"right\",\n }}\n >\n <a\n href=\"\"\n onClick={(e) => {\n requestClearAppsCache()\n requestClearConnectedPeopleCache()\n requestUnlinkConnectedPeople()\n e.preventDefault()\n }}\n style={{\n color: \"#666\",\n marginLeft: \"64px\",\n textDecoration: \"none\",\n ...fontFamily,\n }}\n >\n unlink\n </a>\n </div>\n </div>\n ) : (\n <noscript />\n )}\n\n <style>{`\n .NotSmallTopbar__connected-people-list > *:first-child > * { border-top-width: 0 !important }\n `}</style>\n <ul\n className=\"NotSmallTopbar__connected-people-list\"\n style={{ listStyleType: \"none\", margin: 0, padding: 0 }}\n >\n {connectedPeopleMenuFormatter(connectedPeople).map(\n ({ id, attributes: person }) => (\n <HoverableListItem component=\"li\" key={id}>\n <a\n href=\"\"\n onClick={(e) => {\n requestClearAppsCache()\n requestClearConnectedPeopleCache()\n requestSwitchConnectedPerson(id, `${appName}/`)\n e.preventDefault()\n }}\n style={{\n borderTop: \"1px solid #ddd\",\n color: \"#444\",\n display: \"block\",\n lineHeight: \"48px\",\n overflow: \"hidden\",\n paddingLeft: \"16px\",\n paddingRight: \"16px\",\n textDecoration: \"none\",\n textOverflow: \"ellipsis\",\n whiteSpace: \"nowrap\",\n ...fontFamily,\n }}\n >\n {person.organization_name}\n </a>\n </HoverableListItem>\n )\n )}\n </ul>\n </div>\n\n <ThemeProvider>\n {hasConnectedPeople && <Divider />}\n <form method=\"POST\" action={logoutUrl}>\n <Button\n data-turbolinks={false}\n hover={{ backgroundColor: themeColors.lightNeutral97 }}\n onClick={() => {\n requestClearAppsCache()\n requestClearConnectedPeopleCache()\n return\n }}\n style={{ padding: 0 }}\n theme={false}\n type=\"submit\"\n width=\"100%\"\n >\n <StackView\n distribution=\"space-between\"\n alignment=\"center\"\n axis=\"horizontal\"\n grow={1}\n paddingHorizontal={2}\n paddingVertical={1.5}\n spacing={4}\n >\n <Text color={themeColors.lightNeutral45} lineHeight=\"24px\">\n Log out\n </Text>\n <Icon\n name=\"general.intoBox\"\n fill={themeColors.lightNeutral45}\n />\n </StackView>\n </Button>\n </form>\n </ThemeProvider>\n </Popup>\n </PopupRoot>\n )\n}\n","import React from \"react\"\n\nimport { fontFamily } from \"../styles\"\n\nconst Hoverable = ({\n active = null,\n component: C = \"div\",\n hover = null,\n innerRef = null,\n style = null,\n ...nativeProps\n}: {\n active?: any\n children?: React.ReactNode\n component?: any\n hover?: any\n href?: string\n innerRef?: any\n onClick?: any\n style?: object\n type?: string\n}) => {\n const [down, setDown] = React.useState(false)\n const [entered, setEntered] = React.useState(false)\n\n return (\n <C\n onMouseDown={() => setDown(true)}\n onMouseEnter={() => setEntered(true)}\n onMouseLeave={() => setEntered(false)}\n onMouseUp={() => setDown(false)}\n style={{\n ...fontFamily,\n ...style,\n ...(entered && hover),\n ...(down && active),\n }}\n {...(innerRef && { ref: innerRef })}\n {...nativeProps}\n />\n )\n}\n\nexport default Hoverable\n","import React from \"react\"\n\nimport Hoverable from \"../components/hoverable\"\nimport { slightBackgroundTransition } from \"../styles\"\nimport { DisclosureChevronIcon } from \"../symbols\"\n\ninterface UserMenuTriggerProps {\n colors: any\n orgName: string\n requestConnectedPeopleFetch: any\n setUserMenuVisible: Function\n showOrgName: boolean\n}\n\nexport const UserMenuTrigger = ({\n colors,\n orgName,\n requestConnectedPeopleFetch,\n setUserMenuVisible,\n showOrgName,\n}: UserMenuTriggerProps) => {\n return (\n <div\n style={{\n cursor: \"pointer\",\n marginLeft: \"16px\",\n position: \"relative\",\n whiteSpace: \"nowrap\",\n }}\n data-pendo=\"topbar-org-switcher\"\n >\n <Hoverable\n component=\"button\"\n type=\"button\"\n style={{\n WebkitAppearance: \"none\",\n alignItems: \"center\",\n appearance: \"none\",\n backgroundColor: colors.base1,\n border: \"none\",\n borderRadius: \"9999px\",\n color: colors.text || \"#fff\",\n // TODO: #improve-outline-a11y\n cursor: \"pointer\",\n display: \"flex\",\n fontSize: \"13px\",\n lineHeight: \"32px\",\n outline: 0,\n padding: 0,\n ...slightBackgroundTransition,\n }}\n active={{ backgroundColor: colors.base3 }}\n hover={{ backgroundColor: colors.base2 }}\n onClick={() => {\n setUserMenuVisible((visible) => !visible)\n requestConnectedPeopleFetch()\n }}\n >\n <div style={{ marginLeft: 8 }} />\n\n {showOrgName ? (\n <div\n style={{\n fontSize: \"13px\",\n margin: \"0 8px 0 8px\",\n maxWidth: \"240px\",\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n whiteSpace: \"nowrap\",\n }}\n >\n {orgName}\n </div>\n ) : (\n <div style={{ margin: \"0 4px 0 4px\" }} />\n )}\n <div style={{ paddingRight: \"8px\" }}>\n <DisclosureChevronIcon colors={colors} style={{ margin: \"-3px\" }} />\n </div>\n </Hoverable>\n </div>\n )\n}\n","import React from \"react\"\n\nimport AppsButton from \"../components/apps_button\"\nimport AppsMenu from \"../components/apps_menu\"\nimport { appsMenuFormatter } from \"../formatters\"\nimport useStore from \"../hooks/use_store\"\nimport { SharedTopbarProps } from \"../interfaces\"\nimport { StyledRoot } from \"../styled_root\"\nimport { fontFamily, slightBackgroundTransition } from \"../styles\"\nimport { UserMenu } from \"./user_menu\"\nimport { UserMenuTrigger } from \"./user_menu_trigger\"\n\ninterface NotSmallTopbarProps {\n onLinkToProfileClick?: () => any\n search?: any\n showOrgName?: boolean\n}\n\nconst Topbar = (props: NotSmallTopbarProps & SharedTopbarProps) => {\n const [appsMenuVisible, setAppsMenuVisible] = React.useState(false)\n const [routesVisible, setRoutesVisible] = React.useState(true)\n const [userMenuVisible, setUserMenuVisible] = React.useState(false)\n const { hasConnectedPeople, notificationsEnabled } = useStore()\n\n return (\n <StyledRoot\n style={{\n paddingLeft: \"8px\",\n paddingRight: \"16px\",\n ...props.style,\n }}\n >\n <AppsMenu\n env={props.env}\n appName={props.appName}\n apps={appsMenuFormatter(props.apps)}\n visible={appsMenuVisible}\n toggle={() => setAppsMenuVisible((visible) => !visible)}\n />\n\n <AppsButton\n colors={props.colors}\n expanded={appsMenuVisible}\n onClick={() => {\n setAppsMenuVisible((visible) => !visible)\n props.requestAppsFetch()\n }}\n appName={props.appName}\n />\n\n <div style={{ margin: \"12px\" }} />\n\n {routesVisible && props.routes}\n\n <div style={{ margin: \"auto\" }} />\n\n {!notificationsEnabled && props.notifications()}\n\n {props.search({\n hideRoutes: () => setRoutesVisible(false),\n showRoutes: () => setRoutesVisible(true),\n })}\n\n <UserMenuTrigger\n colors={props.colors}\n orgName={props.orgName}\n requestConnectedPeopleFetch={props.requestConnectedPeopleFetch}\n setUserMenuVisible={setUserMenuVisible}\n showOrgName={props.showOrgName}\n />\n\n <UserMenu\n appName={props.appName}\n hasConnectedPeople={hasConnectedPeople}\n connectedPeople={props.connectedPeople}\n env={props.env}\n requestClearAppsCache={props.requestClearAppsCache}\n requestClearConnectedPeopleCache={\n props.requestClearConnectedPeopleCache\n }\n requestSwitchConnectedPerson={props.requestSwitchConnectedPerson}\n requestUnlinkConnectedPeople={props.requestUnlinkConnectedPeople}\n setUserMenuVisible={setUserMenuVisible}\n userMenuVisible={userMenuVisible}\n />\n </StyledRoot>\n )\n}\n\nTopbar.defaultProps = {\n notifications: () => null,\n search: () => null,\n showOrgName: true,\n useDummyNotifications: false,\n}\n\nconst Route = ({\n active,\n colors,\n style = null,\n ...nativeProps\n}: {\n active: boolean\n children: React.ReactNode\n colors: any\n href?: string\n style?: object\n}) => {\n const [entered, setEntered] = React.useState(false)\n const [down, setDown] = React.useState(false)\n\n const getBackgroundColor = () => {\n if (entered && down) return colors.base2\n if (entered || active) return colors.base1\n return \"transparent\"\n }\n\n const getTextColor = () => {\n return colors.text || \"#fff\"\n }\n\n return (\n <a\n style={{\n backgroundColor: getBackgroundColor(),\n borderRadius: \"9999px\",\n color: getTextColor(),\n fontSize: \"14px\",\n fontWeight: 600,\n lineHeight: \"32px\",\n marginRight: \"4px\", // off-grid\n paddingLeft: \"12px\",\n paddingRight: \"12px\",\n textDecoration: \"none\",\n textTransform: \"capitalize\",\n verticalAlign: \"middle\",\n whiteSpace: \"nowrap\",\n ...fontFamily,\n ...slightBackgroundTransition,\n ...style,\n }}\n onMouseEnter={() => setEntered(true)}\n onMouseLeave={() => setEntered(false)}\n onMouseDown={() => setDown(true)}\n onMouseUp={() => setDown(false)}\n {...nativeProps}\n />\n )\n}\n\nexport { Route, Topbar }\n","import pcURL, { Environment } from \"@planningcenter/url\"\nimport React from \"react\"\n\nimport apiRequest, { defaultFetch, Fetch } from \"./api_request\"\nimport { PointBreak } from \"./display_switch\"\nimport { X as XSymbol } from \"./symbols\"\n\nconst entries = function (obj) {\n const ownProps = Object.keys(obj)\n let i = ownProps.length\n const resArray = new Array(i) // preallocate the Array\n while (i--) resArray[i] = [ownProps[i], obj[ownProps[i]]]\n\n return resArray\n}\n\nfunction formatter(announcements) {\n return entries(announcements).map((entry) => ({\n data: entry[1],\n id: entry[0],\n }))\n}\n\nclass Provider extends React.Component<\n {\n children: (announcements: any, callback: any) => React.ReactElement<any>\n configuredFetch: Fetch\n env: Environment\n formatter?: any\n initialAnnouncements: object\n },\n {\n announcements: object[]\n }\n> {\n constructor(props: any) {\n super(props)\n\n this.state = {\n announcements: props.initialAnnouncements,\n }\n }\n\n public static defaultProps = {\n formatter: formatter,\n }\n\n dismissAnnouncements(id) {\n this.setState(({ announcements }) => {\n const newAnnouncements = announcements\n if (announcements[id]) delete newAnnouncements[id]\n\n return { announcements: newAnnouncements }\n })\n\n return apiRequest(\n this.props.configuredFetch,\n `${pcURL(this.props.env)(\n \"api\"\n )}/people/v2/me/platform_notifications/${id}/dismiss`,\n { method: \"POST\" }\n )\n }\n\n render() {\n return (\n <>\n {this.props.children(\n { announcements: this.props.formatter(this.state.announcements) },\n { dismissAnnouncements: this.dismissAnnouncements.bind(this) }\n )}\n </>\n )\n }\n}\n\nexport class StyledAnnouncement extends React.Component<\n { style?: object },\n {}\n> {\n render() {\n const { style, ...platformProps } = this.props\n\n return (\n <PointBreak\n render={(breakpoint) => (\n <div\n style={{\n alignItems: \"center\",\n display: \"flex\",\n justifyContent: \"space-between\",\n paddingBottom: 14,\n paddingLeft: [\"xs\", \"sm\"].indexOf(breakpoint) !== -1 ? 16 : 24,\n paddingRight: 18,\n paddingTop: 14,\n ...style,\n }}\n {...platformProps}\n />\n )}\n />\n )\n }\n}\n\nexport class StyleProvider extends React.Component<\n {\n className?: string\n colors: any\n style?: object\n },\n {}\n> {\n render() {\n const { children, className, colors, style, ...platformProps } = this.props\n\n return (\n <div\n className={[\"__Topbar_PlatformAnnouncements_link\"].join(\" \").trim()}\n style={{\n backgroundColor: \"#282828\",\n color: \"white\",\n fontSize: \"14px\",\n ...style,\n }}\n {...platformProps}\n >\n <style>{`\n .__Topbar_PlatformAnnouncements_link { color: white }\n .__Topbar_PlatformAnnouncements_link a { color: ${colors.base0} }\n .__Topbar_PlatformAnnouncements_link a:hover { color: ${colors.base1} }\n .__Topbar_PlatformAnnouncements_link a:active { color: ${colors.base2} }\n `}</style>\n {children}\n </div>\n )\n }\n}\n\nexport default class PlatformAnnouncements extends React.Component<\n {\n colors: any\n configuredFetch?: Fetch\n data: object\n env: Environment\n renderItem?: any\n },\n {}\n> {\n public static defaultProps = {\n configuredFetch: defaultFetch,\n renderItem: ({ announcement, actions }) => (\n <DissmissibleAnnouncement\n key={announcement.id}\n html={announcement.data.html}\n onClick={() => actions.dismissAnnouncements(announcement.id)}\n />\n ),\n }\n\n render() {\n return (\n <StyleProvider colors={this.props.colors}>\n <Provider\n env={this.props.env}\n initialAnnouncements={this.props.data}\n configuredFetch={this.props.configuredFetch}\n >\n {(data, actions) =>\n Boolean(data.announcements.length > 0) ? (\n <div>\n {data.announcements.map((announcement) =>\n this.props.renderItem({ actions, announcement })\n )}\n </div>\n ) : null\n }\n </Provider>\n </StyleProvider>\n )\n }\n}\n\nfunction StyledDismissButton({ ...props }: any): JSX.Element {\n return (\n <button\n type=\"button\"\n style={{\n WebkitAppearance: \"none\",\n backgroundColor: \"transparent\",\n borderWidth: 0,\n cursor: \"pointer\",\n\n margin: -8,\n // larger click target without increasing box\n padding: 8,\n }}\n {...props}\n >\n <XSymbol fill=\"white\" style={{ height: 20, width: 20 }} />\n </button>\n )\n}\n\nfunction DissmissibleAnnouncement(props: {\n html: string\n onClick: () => any\n}): JSX.Element {\n return (\n <StyledAnnouncement>\n <span\n dangerouslySetInnerHTML={{\n __html: props.html,\n }}\n />\n\n <StyledDismissButton onClick={props.onClick} />\n </StyledAnnouncement>\n )\n}\n","import React from \"react\"\n\nimport { PointBreak } from \"./display_switch\"\nimport { X as XSymbol } from \"./symbols\"\n\n/*\nProductAnnouncement:\nDisplays a dismissible product announcements when provided an `html` prop.\nRenders nothing when no `html` prop is falsy.\n\nWhen the dismiss button is clicked, ProductAnnouncement will immediately dissappear.\nPass an `onClick` prop to coordinate this dismissal with a server request that will prevent message from being passed to future page views.\n\nIt should look something like this in your application's Topbar composition:\n\n```jsx\n<ProductAnnouncement\n colors={shared.colors}\n html={this.props.productAnnouncement}\n onClick={() => alert(\"Sending fire-and-forget dismiss request to server\")}\n/>\n```\n\nAttributes like `className`, `id`, `data-*`, and `aria-*` are all applied to the root element.\n*/\n\nexport function ProductAnnouncement({\n colors,\n html = \"\",\n onClick = (_event) => {\n /* noop */\n },\n ...props\n}: {\n colors: object\n html: string\n onClick: (event: any) => any\n}) {\n const [dismissed, updateDismissed] = React.useState(false)\n\n return dismissed || !html ? null : (\n <StyleProvider colors={colors} {...props}>\n <StyledAnnouncement>\n <span dangerouslySetInnerHTML={{ __html: html }} />\n <StyledDismissButton\n onClick={(event) => {\n onClick(event)\n updateDismissed(true)\n }}\n />\n </StyledAnnouncement>\n </StyleProvider>\n )\n}\n\nexport class StyleProvider extends React.Component<\n {\n className?: string\n colors: any\n style?: object\n },\n {}\n> {\n render() {\n const { children, className, colors, style, ...platformProps } = this.props\n\n return (\n <div\n className={[\"Topbar_ProductAnnouncement\", className]\n .filter(Boolean)\n .join(\" \")\n .trim()}\n style={{\n backgroundColor: colors.base1,\n ...style,\n }}\n {...platformProps}\n >\n <style>{`\n .Topbar_ProductAnnouncement {\n color: white;\n font-size: 14px;\n }\n .Topbar_ProductAnnouncement a { color: white; font-weight: bold; }\n `}</style>\n {children}\n </div>\n )\n }\n}\n\nexport class StyledAnnouncement extends React.Component<\n { style?: object },\n {}\n> {\n render() {\n const { style, ...platformProps } = this.props\n\n return (\n <PointBreak\n render={(breakpoint) => (\n <div\n style={{\n alignItems: \"center\",\n boxSizing: \"border-box\",\n display: \"flex\",\n justifyContent: \"space-between\",\n paddingBottom: 14,\n paddingLeft: [\"xs\", \"sm\"].indexOf(breakpoint) !== -1 ? 16 : 24,\n paddingRight: 18,\n paddingTop: 14,\n ...style,\n }}\n {...platformProps}\n />\n )}\n />\n )\n }\n}\n\nexport function StyledDismissButton({ ...props }: any): JSX.Element {\n return (\n <button\n type=\"button\"\n style={{\n WebkitAppearance: \"none\",\n backgroundColor: \"transparent\",\n borderWidth: 0,\n cursor: \"pointer\",\n\n margin: -8,\n // larger click target without increasing box\n padding: 8,\n }}\n {...props}\n >\n <XSymbol fill=\"white\" style={{ height: 20, width: 20 }} />\n </button>\n )\n}\n","import pcoUrl, { Environment } from \"@planningcenter/url\"\nimport React from \"react\"\n\nexport function Avatar({\n env,\n url: incomingUrl = \"\",\n style,\n ...nativeProps\n}: {\n env: Environment\n style?: object\n url?: string\n}): JSX.Element {\n const url =\n incomingUrl || `${pcoUrl(env)(\"people\")}/static/no_photo_thumbnail_gray.svg`\n\n return (\n <div\n style={{\n backgroundColor: \"white\",\n backgroundImage: `url(${url})`,\n backgroundPosition: \"center\",\n backgroundSize: \"cover\",\n borderRadius: \"50%\",\n height: \"26px\",\n marginLeft: \"4px\",\n width: \"26px\",\n ...style,\n }}\n {...nativeProps}\n />\n )\n}\n","import React from \"react\"\n\nexport class ClientStorage extends React.Component<\n {\n item: string\n method?: \"localStorage\" | \"sessionStorage\"\n render: (apps: any, other: any) => React.ReactElement<any>\n },\n {}\n> {\n public static defaultProps = {\n method: \"localStorage\",\n }\n\n update(value) {\n window[this.props.method].setItem(this.props.item, JSON.stringify(value))\n return this.forceUpdate()\n }\n\n render() {\n return (\n <>\n {this.props.render(\n JSON.parse(window[this.props.method].getItem(this.props.item)) ||\n undefined,\n this.update.bind(this)\n )}\n </>\n )\n }\n}\n","import pcoUrl, { Environment } from \"@planningcenter/url\"\nimport React from \"react\"\n\nimport { default as themeColors } from \"../colors\"\nimport getAppsSwitchProductPath from \"../get_apps_switch_product_path\"\nimport * as AppSymbols from \"../mono_app_symbols\"\n\nexport function AccountSettingsLink({ env }: { env: Environment }) {\n const accountsName = \"accounts\"\n\n return (\n <a\n style={{\n alignItems: \"center\",\n display: \"flex\",\n height: \"48px\",\n paddingLeft: \"12px\",\n paddingRight: \"16px\",\n textDecoration: \"none\",\n }}\n data-pendo={`app-switcher--change-app--${accountsName}`}\n data-turbolinks={false}\n href={pcoUrl(env)(accountsName) + getAppsSwitchProductPath(accountsName)}\n >\n <svg\n height={22}\n style={{ display: \"block\", marginRight: \"2px\" }}\n viewBox=\"0 0 20 20\"\n width={22}\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n {React.createElement(AppSymbols[\"Accounts\"], {\n color: themeColors.lightNeutral45,\n key: \"key2\",\n })}\n </svg>\n <div\n style={{\n color: themeColors.lightNeutral45,\n fontSize: \"12px\",\n lineHeight: \"48px\",\n textDecoration: \"none\",\n }}\n >\n Account settings\n </div>\n </a>\n )\n}\n","import React from \"react\"\n\nimport { default as themeColors } from \"../colors\"\nimport { X } from \"../symbols\"\n\nexport const CloseMenuButton = ({\n color = themeColors.lightNeutral100,\n size = 22,\n style = {},\n}: {\n color?: string\n size?: number\n style?: object\n}) => (\n <div style={style}>\n <X fill={color} style={{ height: `${size}px`, width: `${size}px` }} />\n </div>\n)\n","import pcoUrl, { Environment } from \"@planningcenter/url\"\n\ntype props = {\n appName: string\n env: Environment\n userId: string\n}\n\nexport default function getLoginProfilePath({\n env,\n appName,\n userId,\n}: props): string {\n const basePath = pcoUrl(env)(\"login\") + `/people/AC${userId}`\n const pathname = window?.location?.pathname?.toString()\n\n if (!pathname) return basePath\n\n const params = new URLSearchParams()\n params.append(\"return\", `${appName}/${pathname}`)\n\n return `${basePath}?${params.toString()}`\n}\n","import React from \"react\"\n\ntype MFAStatusProps = {\n isActive: boolean\n}\n\nconst MFAStatus = ({ isActive }: MFAStatusProps) => {\n const statusColor = isActive ? \"hsl(86, 91%, 27%)\" : \"hsl(8, 60%, 47%)\"\n\n const displayStatusIcon = () =>\n isActive ? (\n <svg width=\"12\" height=\"12\" viewBox=\"0 0 16 16\" fill=\"none\">\n <path\n d=\"M12.588 5.31499H11.832V3.79999C11.8159 2.80798 11.4105 1.86207 10.7032 1.16625C9.99602 0.470436 9.04363 0.0804749 8.0515 0.0804749C7.05937 0.0804749 6.10698 0.470436 5.39976 1.16625C4.69253 1.86207 4.28713 2.80798 4.271 3.79999V5.31499H3.515C3.1138 5.31525 2.72906 5.47454 2.44508 5.75795C2.16111 6.04136 2.00106 6.42579 2 6.82699V14.388C2.00132 14.7891 2.16146 15.1734 2.44537 15.4567C2.72929 15.7401 3.11388 15.8995 3.515 15.9H12.588C12.9886 15.8987 13.3724 15.7389 13.6557 15.4557C13.939 15.1724 14.0987 14.7886 14.1 14.388V6.82699C14.0987 6.42639 13.939 6.04257 13.6557 5.7593C13.3724 5.47603 12.9886 5.31631 12.588 5.31499ZM8.051 12.115C7.75171 12.1152 7.45909 12.0266 7.21015 11.8605C6.96121 11.6944 6.76713 11.4581 6.65246 11.1817C6.53779 10.9052 6.50768 10.601 6.56595 10.3074C6.62422 10.0139 6.76824 9.74418 6.97979 9.53249C7.19135 9.32079 7.46094 9.17659 7.75446 9.11813C8.04798 9.05967 8.35225 9.08958 8.62877 9.20406C8.90529 9.31855 9.14165 9.51247 9.30794 9.7613C9.47424 10.0101 9.563 10.3027 9.563 10.602C9.56327 11.0036 9.40424 11.389 9.1208 11.6735C8.83736 11.9581 8.45264 12.1187 8.051 12.12V12.115ZM10.395 5.31499H5.707V3.79999C5.707 3.17832 5.95396 2.58211 6.39354 2.14253C6.83313 1.70294 7.42933 1.45599 8.051 1.45599C8.67267 1.45599 9.26887 1.70294 9.70846 2.14253C10.148 2.58211 10.395 3.17832 10.395 3.79999V5.31499Z\"\n fill={statusColor}\n />\n </svg>\n ) : (\n <svg width=\"12\" height=\"12\" viewBox=\"0 0 16 16\" fill=\"none\">\n <path\n d=\"M13.7,5.8a1.5,1.5,0,0,0-1.1-.4H5.7V3.8a2.34,2.34,0,0,1,.7-1.7,2.19,2.19,0,0,1,1.7-.7,2.34,2.34,0,0,1,1.7.7,2.67,2.67,0,0,1,.7,1.4h1.4a4.12,4.12,0,0,0-1.1-2.4A4.73,4.73,0,0,0,8.1.1,4,4,0,0,0,5.4,1.2,3.63,3.63,0,0,0,4.3,3.8V5.3H3.5a2.1,2.1,0,0,0-1.1.4A2.1,2.1,0,0,0,2,6.8v7.6a2.1,2.1,0,0,0,.4,1.1,1.5,1.5,0,0,0,1.1.4h9.1a2.1,2.1,0,0,0,1.1-.4,1.5,1.5,0,0,0,.4-1.1V6.8A1.53,1.53,0,0,0,13.7,5.8ZM9.1,11.7a1.5,1.5,0,0,1-1.1.4H8a1.14,1.14,0,0,1-.8-.3,4.35,4.35,0,0,1-.6-.7,2.77,2.77,0,0,1-.1-.9A3,3,0,0,1,7,9.5a1.23,1.23,0,0,1,.8-.4,1.41,1.41,0,0,1,.9.1,1.34,1.34,0,0,1,.7.6,1.14,1.14,0,0,1,.3.8A2.38,2.38,0,0,1,9.1,11.7Z\"\n fill={statusColor}\n />\n </svg>\n )\n\n return (\n <div\n style={{\n alignItems: \"center\",\n display: \"flex\",\n fontSize: \"13px\",\n marginBottom: 2,\n marginTop: 4,\n }}\n >\n {displayStatusIcon()}\n\n <span\n style={{\n color: \"#888\",\n marginLeft: 4,\n whiteSpace: \"nowrap\",\n }}\n >\n Two-step verification {isActive ? \"active\" : \"inactive\"}\n </span>\n </div>\n )\n}\n\nexport default MFAStatus\n","import * as churchCenter from \"@planningcenter/icons/paths/church-center\"\nimport * as general from \"@planningcenter/icons/paths/general\"\nimport * as people from \"@planningcenter/icons/paths/people\"\nimport * as toolbar from \"@planningcenter/icons/paths/toolbar\"\nimport { designSystem } from \"@planningcenter/tapestry-react\"\n\nconst { generateColorScale } = designSystem\n\nexport const topbarTheme = {\n colors: {\n ...generateColorScale({\n baseColor: \"#2266f7\",\n key: \"primary\",\n }),\n },\n icons: {\n churchCenter,\n general,\n people,\n toolbar,\n },\n id: \"topbar\",\n}\n","import {\n Button,\n HeadingUppercase,\n Link,\n List,\n StackView,\n Text,\n ThemeProvider,\n} from \"@planningcenter/tapestry-react\"\nimport pcoUrl, { Environment } from \"@planningcenter/url\"\nimport React from \"react\"\n\nimport { Avatar } from \"../avatar\"\nimport { default as themeColors } from \"../colors\"\nimport { connectedPeopleMenuFormatter } from \"../formatters\"\nimport getLoginProfilePath from \"../get_login_profile_path\"\nimport { ConnectedPerson } from \"../interfaces\"\nimport MFAStatus from \"../mfa_status\"\nimport { topbarTheme } from \"../theme\"\n\nexport function UserProfileMenu({\n appName,\n connectedPeople,\n env,\n hasConnectedPeople,\n linkToProfile,\n mfaConfigured,\n mfaEnabled,\n requestClearAppsCache,\n requestClearConnectedPeopleCache,\n requestSwitchConnectedPerson,\n requestUnlinkConnectedPeople,\n setUserMenuVisible,\n userAvatarPath,\n userId,\n userName,\n}: {\n appName: string\n connectedPeople: ConnectedPerson[]\n env: Environment\n hasConnectedPeople: boolean\n linkToProfile: boolean\n mfaConfigured: boolean\n mfaEnabled: boolean\n requestClearAppsCache: any\n requestClearConnectedPeopleCache: any\n requestSwitchConnectedPerson: any\n requestUnlinkConnectedPeople: any\n setUserMenuVisible: any\n userAvatarPath: string\n userId: string\n userName: string\n}) {\n return (\n <ThemeProvider theme={topbarTheme}>\n <StackView axis=\"vertical\" width=\"100%\">\n <StackView\n axis=\"horizontal\"\n alignItems=\"start\"\n distribution=\"space-between\"\n >\n <StackView\n axis=\"horizontal\"\n spacing={2}\n padding={2}\n paddingRight={0}\n shrink={1}\n >\n <StackView shrink={0}>\n <Avatar\n env={env}\n url={userAvatarPath}\n style={{ height: 48, width: 48 }}\n />\n </StackView>\n <StackView spacing={1} shrink={1}>\n <Text color={themeColors.lightNeutral24} weight={700} truncate>\n {userName}\n </Text>\n {linkToProfile && (\n <Link\n as=\"a\"\n href={`/people/AC${userId}`}\n color={themeColors.lightNeutral45}\n underline={false}\n >\n My profile\n </Link>\n )}\n {mfaEnabled && (\n <Link\n as=\"a\"\n href={getLoginProfilePath({\n appName: appName,\n env: env,\n userId: userId,\n })}\n color={themeColors.lightNeutral45}\n underline={false}\n >\n My login settings\n <MFAStatus isActive={mfaConfigured} />\n </Link>\n )}\n <form method=\"POST\" action={`${pcoUrl(env)(\"login\")}/logout`}>\n <Button\n color={themeColors.lightNeutral45}\n data-turbolinks={false}\n onClick={() => {\n requestClearAppsCache()\n requestClearConnectedPeopleCache()\n return\n }}\n type=\"submit\"\n >\n Log out\n </Button>\n </form>\n </StackView>\n </StackView>\n <Button\n color={themeColors.lightNeutral45}\n icon=\"general.x\"\n onClick={() => setUserMenuVisible(false)}\n padding={2}\n theme=\"naked\"\n title=\"Close Menu\"\n />\n </StackView>\n {hasConnectedPeople && (\n <>\n <StackView\n backgroundColor={themeColors.lightNeutral95}\n paddingVertical={1.5}\n paddingHorizontal={2}\n marginTop={1}\n borderBottom={`1px solid ${themeColors.lightNeutral88}`}\n >\n <HeadingUppercase\n color={themeColors.lightNeutral62}\n fontWeight={500}\n >\n Linked Accounts\n </HeadingUppercase>\n </StackView>\n\n <List dividerColor={themeColors.lightNeutral88} width=\"100%\">\n {connectedPeopleMenuFormatter(connectedPeople).map(\n ({ id, attributes: person }) => (\n <List.Item\n key={id}\n onClick={(e) => {\n requestClearAppsCache()\n requestClearConnectedPeopleCache()\n requestSwitchConnectedPerson(id, `${appName}/`)\n e.preventDefault()\n }}\n color={themeColors.lightNeutral45}\n padding={2}\n >\n <Text truncate>{person.organization_name}</Text>\n </List.Item>\n )\n )}\n <List.Item\n onClick={(e) => {\n requestClearAppsCache()\n requestClearConnectedPeopleCache()\n requestUnlinkConnectedPeople()\n e.preventDefault()\n }}\n color={themeColors.danger47}\n padding={2}\n underline={false}\n >\n <Text size={3}>Unlink my accounts</Text>\n </List.Item>\n </List>\n </>\n )}\n </StackView>\n </ThemeProvider>\n )\n}\n","import pcoUrl from \"@planningcenter/url\"\nimport React from \"react\"\n\nimport { Avatar } from \"../avatar\"\nimport { ClientStorage as LocalStorageProvider } from \"../client_storage\"\nimport { ColorAppIcon } from \"../color_app_icon\"\nimport { default as themeColors } from \"../colors\"\nimport { appsMenuFormatter } from \"../formatters\"\nimport getAppsSwitchProductPath from \"../get_apps_switch_product_path\"\nimport useStore from \"../hooks/use_store\"\nimport { SharedTopbarProps } from \"../interfaces\"\nimport { MonoAppIcon } from \"../mono_app_icon\"\nimport { MonoAppName } from \"../mono_app_name\"\nimport { StyledRoot } from \"../styled_root\"\nimport { fontFamily, IEFlex1 } from \"../styles\"\nimport { DisclosureChevronIcon } from \"../symbols\"\nimport { Unbutton } from \"../unbutton\"\nimport { capitalize, HSLtoHSLA } from \"../utils\"\nimport { AccountSettingsLink } from \"./account_settings_link\"\nimport { CloseMenuButton } from \"./close_menu_button\"\nimport { UserProfileMenu } from \"./user_profile_menu\"\n\nconst MENU_GUTTER = 57\nconst NAVBAR_HEIGHT = 52\n\nconst UserMenuAppLockup = ({\n appName: originalAppName,\n}: {\n appName: string\n}) => {\n const appName = originalAppName.replace(/[\\s-]/, \"\")\n\n return (\n <div style={{ alignItems: \"center\", display: \"flex\" }}>\n <div style={{ marginRight: \"6px\" }}>\n <ColorAppIcon appName={appName} size={20} />\n </div>\n <MonoAppName\n appName={appName}\n color={themeColors.lightNeutral24}\n size={18}\n />\n </div>\n )\n}\n\ninterface SmallTopbarProps {\n currentRouteComponent?: any\n}\n\ninterface PropagateableEvent {\n forcePropagation: Boolean\n}\n\nconst Topbar = (props: SharedTopbarProps & SmallTopbarProps) => {\n const [routesMenuVisible, setRoutesMenuVisible] = React.useState(false)\n const [productSwitcherVisible, setProductSwitcherVisible] =\n React.useState(false)\n const [userMenuVisible, setUserMenuVisible] = React.useState(false)\n const { hasConnectedPeople, mfaConfigured, mfaEnabled, userId } = useStore()\n\n const appColors = props.colors\n\n const activeRoute =\n props.routes.filter(({ props: { active } }) => active) || []\n\n const CurrentRouteComponent = props.currentRouteComponent\n const currentRouteText =\n (activeRoute &&\n activeRoute[0] &&\n activeRoute[0].props &&\n activeRoute[0].props.children) ||\n props.appName\n\n const accountsProduct = props.apps.find(({ name }) => name === \"Accounts\")\n\n const homeProduct = props.apps.find(({ name }) => name === \"Home\")\n\n const restProducts = [...props.apps].filter(\n ({ name }) => name !== \"Home\" && name !== \"Accounts\"\n )\n\n const borderColor = themeColors.lightNeutral88\n\n return (\n <StyledRoot style={{ ...props.style }}>\n <div\n style={{\n alignItems: \"center\",\n display: \"flex\",\n height: \"48px\",\n justifyContent: \"center\",\n paddingLeft: \"16px\",\n paddingRight: \"16px\",\n }}\n onClick={() => {\n props.requestAppsFetch()\n props.requestConnectedPeopleFetch()\n\n setRoutesMenuVisible(false)\n setProductSwitcherVisible((visible) => !visible)\n }}\n >\n <MonoAppIcon\n appName={props.appName.replace(/[\\s-]/, \"\")}\n colors={appColors}\n size={26}\n />\n </div>\n <div\n style={{\n left: 0,\n position: \"absolute\",\n top: \"48px\",\n width: \"100%\",\n }}\n >\n {routesMenuVisible && props.routes}\n </div>\n <LocalStorageProvider\n item=\"Topbar:Small:Menus:Products:visibility\"\n render={() => (\n <div\n style={{\n MozUserSelect: \"none\",\n WebkitTapHighlightColor: \"transparent\",\n WebkitUserSelect: \"none\",\n backgroundColor: HSLtoHSLA(themeColors.lightNeutral12, 0.75),\n bottom: 0,\n color: \"black\",\n display: productSwitcherVisible ? \"block\" : \"none\",\n left: 0,\n msUserSelect: \"none\",\n position: \"fixed\",\n right: 0,\n top: 0,\n userSelect: \"none\",\n }}\n onClick={() => {\n setProductSwitcherVisible((visible) => !visible)\n setUserMenuVisible(false)\n }}\n >\n <CloseMenuButton\n style={{\n position: \"absolute\",\n right: \"17px\",\n top: \"12px\",\n }}\n />\n <div\n onClick={(e) => {\n const { forcePropagation } = e as unknown as PropagateableEvent\n if (!forcePropagation) {\n e.stopPropagation()\n }\n }}\n style={{\n backgroundColor: themeColors.lightNeutral100,\n borderRight: `1px solid ${borderColor}`,\n display: \"flex\",\n flexDirection: \"column\",\n height: `calc(100% - ${NAVBAR_HEIGHT}px - env(safe-area-inset-bottom))`,\n position: \"relative\",\n width: `calc(100% - ${MENU_GUTTER}px)`,\n }}\n >\n <div\n style={{\n alignItems: \"center\",\n backgroundColor: themeColors.lightNeutral98,\n borderBottom: `1px solid ${borderColor}`,\n display: \"flex\",\n height: \"48px\",\n paddingLeft: \"16px\",\n paddingRight: \"16px\",\n }}\n >\n <div style={{ ...IEFlex1 }}>\n <a\n style={{\n alignItems: \"center\",\n display: \"flex\",\n height: \"48px\",\n paddingRight: \"16px\",\n }}\n data-pendo={`app-switcher--change-app--${homeProduct?.name}`}\n data-turbolinks={false}\n href={\n homeProduct\n ? pcoUrl(props.env)(\"accounts\") +\n getAppsSwitchProductPath(homeProduct?.name)\n : undefined\n }\n >\n <div style={{ alignItems: \"center\", display: \"flex\" }}>\n <UserMenuAppLockup\n appName={homeProduct ? homeProduct.name : props.appName}\n />\n </div>\n </a>\n </div>\n </div>\n\n <div\n style={{\n ...IEFlex1,\n WebkitOverflowScrolling: \"touch\",\n overflowY: \"scroll\",\n }}\n >\n <ul data-pendo=\"app-switcher\" style={{ margin: 0, padding: 0 }}>\n {appsMenuFormatter(restProducts).map(({ name }, i) => {\n const isFirst = i === 0\n const isLast =\n i === appsMenuFormatter(restProducts).length - 1\n return (\n <li key={name} style={{ listStyleType: \"none\" }}>\n <a\n style={{\n alignItems: \"center\",\n display: \"flex\",\n height: \"40px\",\n paddingBottom: isLast ? \"4px\" : 0,\n paddingLeft: \"16px\",\n paddingRight: \"16px\",\n paddingTop: isFirst ? \"4px\" : 0,\n }}\n data-pendo={`app-switcher--change-app--${name}`}\n data-turbolinks={false}\n href={\n pcoUrl(props.env)(\"accounts\") +\n getAppsSwitchProductPath(name)\n }\n >\n <UserMenuAppLockup appName={name} />\n </a>\n </li>\n )\n })}\n </ul>\n\n {accountsProduct && (\n <div\n style={{\n borderTop: `1px solid ${borderColor}`,\n }}\n >\n <AccountSettingsLink env={props.env} />\n </div>\n )}\n </div>\n\n <div\n style={{\n borderTop: `1px solid ${borderColor}`,\n display: \"flex\",\n flexDirection: \"row\",\n lineHeight: \"48px\",\n textAlign: \"center\",\n }}\n >\n <div style={{ ...IEFlex1 }}>\n <Unbutton\n style={{\n color: themeColors.lightNeutral24,\n fontSize: \"15px\",\n fontWeight: 600,\n }}\n onClick={(e) => {\n e.forcePropagation = true\n }}\n id=\"jsLaunchHelpdesk\"\n >\n Help\n </Unbutton>\n </div>\n </div>\n </div>\n </div>\n )}\n />\n <div\n style={{\n ...IEFlex1,\n fontWeight: 600,\n lineHeight: \"48px\",\n textAlign: \"center\",\n }}\n onClick={\n props.routes.length > 0\n ? () => {\n setProductSwitcherVisible(false)\n setRoutesMenuVisible((visible) => !visible)\n }\n : null\n }\n >\n <CurrentRouteComponent>\n {capitalize(currentRouteText)}\n </CurrentRouteComponent>\n {props.routes.length > 0 && (\n <DisclosureChevronIcon\n colors={appColors}\n style={{ marginLeft: \"4px\", verticalAlign: \"middle\" }}\n />\n )}\n </div>\n\n <button\n onClick={() => setUserMenuVisible(!userMenuVisible)}\n style={{\n background: \"none\",\n border: \"none\",\n margin: \"0 12px\",\n padding: 0,\n }}\n >\n <Avatar env={props.env} url={props.userAvatarPath} />\n </button>\n\n <div\n style={{\n MozUserSelect: \"none\",\n WebkitTapHighlightColor: \"transparent\",\n WebkitUserSelect: \"none\",\n bottom: 0,\n color: \"black\",\n display: userMenuVisible ? \"block\" : \"none\",\n left: 0,\n msUserSelect: \"none\",\n position: \"fixed\",\n right: 0,\n top: 0,\n userSelect: \"none\",\n }}\n >\n <div\n onClick={(e) => e.stopPropagation()}\n style={{\n WebkitOverflowScrolling: \"touch\",\n backgroundColor: \"#fff\",\n display: \"flex\",\n flexDirection: \"column\",\n height: \"100%\",\n overflowY: \"scroll\",\n position: \"relative\",\n width: \"100%\",\n }}\n >\n <UserProfileMenu\n appName={props.appName}\n env={props.env}\n connectedPeople={props.connectedPeople}\n hasConnectedPeople={hasConnectedPeople}\n linkToProfile={props.linkToProfile}\n mfaConfigured={mfaConfigured}\n mfaEnabled={mfaEnabled}\n requestClearAppsCache={props.requestClearAppsCache}\n requestClearConnectedPeopleCache={\n props.requestClearConnectedPeopleCache\n }\n requestSwitchConnectedPerson={props.requestSwitchConnectedPerson}\n requestUnlinkConnectedPeople={props.requestUnlinkConnectedPeople}\n setUserMenuVisible={setUserMenuVisible}\n userAvatarPath={props.userAvatarPath}\n userId={userId}\n userName={props.userName}\n />\n </div>\n </div>\n </StyledRoot>\n )\n}\n\nTopbar.defaultProps = {\n currentRouteComponent: (props) => <span {...props} />,\n linkToProfile: true,\n}\n\nconst Route = ({ active, ...props }) => (\n <a\n style={{\n backgroundColor: \"#444\",\n borderBottom: \"1px solid #333\",\n color: \"#fff\",\n display: \"block\",\n fontWeight: 600,\n lineHeight: \"47px\",\n position: \"relative\",\n textAlign: \"center\",\n textDecoration: \"none\",\n textTransform: \"capitalize\",\n whiteSpace: \"nowrap\",\n ...fontFamily,\n ...(active && { backgroundColor: \"#333\" }),\n }}\n {...props}\n />\n)\n\nexport { Route, Topbar }\n","import { useEffect, useState } from \"react\"\nimport { useChatContext } from \"stream-chat-react\"\n\nexport const useChannelsLoading = (): [boolean, boolean] => {\n const [loading, setLoading] = useState(true)\n const [loaded, setLoaded] = useState(false)\n const { channelsQueryState } = useChatContext(\"ChannelList\")\n const { queryInProgress } = channelsQueryState\n const _loading = queryInProgress === \"reload\"\n\n useEffect(() => {\n setLoading(_loading)\n\n if (loading && !queryInProgress) {\n setLoaded(true)\n }\n }, [queryInProgress])\n\n return [loading, loaded]\n}\n","import React, { ReactNode } from \"react\"\n\ntype SwitchViewFn = () => void\ntype ActionsForOpenChannel = boolean | null | string\n\nexport interface ChatContextValue {\n actionsOpenForChannel: ActionsForOpenChannel\n closeDrawer: () => void\n findAndSwitchToChannel: ({\n stream_channel_id,\n }: {\n stream_channel_id: string\n }) => void\n isChannelDetailsViewActive: boolean\n isChannelViewActive: boolean\n isNewChatViewActive: boolean\n setActionsOpenForChannel: React.Dispatch<\n React.SetStateAction<ActionsForOpenChannel>\n >\n switchToChannelDetailsView: SwitchViewFn\n switchToChannelListView: SwitchViewFn\n switchToChannelView: SwitchViewFn\n switchToNewChatView: SwitchViewFn\n}\n\ninterface ChatProviderProps {\n children: ReactNode\n value?: ChatContextValue\n}\n\nconst ChatContext = React.createContext<ChatContextValue>(\n {} as ChatContextValue\n)\n\nconst ChatProvider = ({ children, value }: ChatProviderProps) => {\n return <ChatContext.Provider value={value}>{children}</ChatContext.Provider>\n}\n\nexport { ChatContext, ChatProvider }\n","import { useContext } from \"react\"\n\nimport type { ChatContextValue } from \"../chat_context\"\nimport { ChatContext } from \"../chat_context\"\n\nexport const useChat = (): ChatContextValue => {\n const context = useContext(ChatContext)\n if (!context) {\n throw new Error(\"useChat must be used within a ChatProvider\")\n }\n return context\n}\n","import pcURL from \"@planningcenter/url\"\nimport React, { ReactNode, useMemo } from \"react\"\n\nimport apiRequest, { defaultFetch, railsCsrfFetch } from \"../../../api_request\"\n\ntype ChatApiContextValue = {\n [key: string]: any\n}\n\ninterface ChatApiProviderProps {\n children: ReactNode\n env: string\n}\n\ntype Result = Record<string, any>\n\ntype Attributes = Record<string, any>\n\ntype Query = {\n [key: string]: any\n fields?: Record<string, any>\n}\n\ninterface Api {\n delete: (path: string) => Result,\n get: (path: string, query?: Query) => Result | Result[],\n patch: (path: string, attributes: Attributes) => Result,\n post: (path: string, attributes: Attributes) => Result\n}\n\nconst ChatApiContext = React.createContext<ChatApiContextValue>({})\n\nconst buildRelationships = (relationships = {}) => {\n return Object.keys(relationships).reduce((acc, key) => {\n const { data } = relationships[key]\n const isArray = Array.isArray(data)\n\n return {\n ...acc,\n [`${key}_${isArray ? \"ids\" : \"id\"}`]: isArray\n ? data.map(({ id }) => id)\n : data.id,\n }\n }, {})\n}\n\nconst buildResponse = (json) => {\n const data = [json.data].flat()\n\n const [head, ...tail] = data.map(({ attributes, relationships }) => ({\n ...buildRelationships(relationships),\n ...attributes,\n }))\n\n return Array.isArray(json.data) ? [head, ...tail] : head\n}\n\nconst buildApi = ({ app, env }): Api => {\n const url = `${pcURL(env)(\"api\")}/${app}/v2`\n\n return {\n delete: (path) =>\n apiRequest(railsCsrfFetch, [url, path].join(\"/\"), { method: \"DELETE\" }),\n get: async (path, { fields = {}, ...query } = {}) => {\n fields = Object.entries(fields).reduce(\n (acc, [key, value]) => ({ ...acc, [`fields[${key}]`]: value }),\n {}\n )\n\n const params = new URLSearchParams({ ...fields, ...query })\n\n const { json } = await apiRequest(\n defaultFetch,\n [[url, path].join(\"/\"), params].join(\"?\")\n )\n\n return buildResponse(json)\n },\n patch: async (path, attributes) => {\n const { json } = await apiRequest(railsCsrfFetch, [url, path].join(\"/\"), {\n data: { data: { attributes } },\n method: \"PATCH\",\n })\n\n return buildResponse(json)\n },\n post: async (path, attributes) => {\n const { json } = await apiRequest(railsCsrfFetch, [url, path].join(\"/\"), {\n data: { data: { attributes } },\n method: \"POST\",\n })\n\n return buildResponse(json)\n },\n }\n}\n\nconst ChatApiProvider = ({ children, env }: ChatApiProviderProps) => {\n const value = useMemo(() => {\n const services = buildApi({ app: \"services\", env })\n const chat = buildApi({ app: \"chat\", env })\n\n return { chat, services }\n }, [env])\n\n return (\n <ChatApiContext.Provider value={value}>{children}</ChatApiContext.Provider>\n )\n}\n\nexport { ChatApiContext, ChatApiProvider }\n","import { useContext } from \"react\"\n\nimport { ChatApiContext } from \"../chat_api_context\"\n\nexport const useChatApi = () => useContext(ChatApiContext)\n","export const noop = () => {}\n","import pcURL from \"@planningcenter/url\"\nimport React from \"react\"\n\nimport apiRequest, {\n defaultFetch,\n railsCsrfFetch,\n} from \"../../../../api_request\"\nimport {\n useJoltChannelSubscription,\n useJoltEffect,\n} from \"../../../../hooks/jolt\"\nimport { noop } from \"../utils\"\n\nexport const useChatStreamUser = ({ env, userId, isEnabled, joltPromise }) => {\n const [streamUser, setStreamUser] = React.useState(null)\n\n const chatJoltChannel = useJoltChannelSubscription({\n channelName: `chat.people.${userId}`,\n enableJoltLogging: true,\n enabled: isEnabled,\n env,\n fetchSubscribeToken: async (cid) => {\n const subscribeUrl = `${pcURL(env)(\"api\")}/chat/v2/me/jolt_subscribe`\n return apiRequest(railsCsrfFetch, subscribeUrl, {\n data: { data: { attributes: { cid } } },\n method: \"POST\",\n }).then(({ json }) => json.data.id)\n },\n joltPromise,\n })\n\n const fetchStreamUser = () =>\n apiRequest(defaultFetch, `${pcURL(env)(\"api\")}/chat/v2/me/stream_user`)\n .then(\n ({\n json: {\n data: { id, attributes },\n },\n }) => {\n const { token, ...attrs } = attributes\n\n setStreamUser(token ? prev => ({ id, token, ...prev, ...attrs }) : null)\n }\n )\n .catch(noop)\n\n useJoltEffect(\n isEnabled ? chatJoltChannel : undefined,\n \"STREAM_USER_UPDATED\",\n fetchStreamUser\n )\n\n React.useEffect(() => {\n if (!isEnabled) return\n\n fetchStreamUser()\n }, [isEnabled])\n\n return streamUser\n}\n","import { StackView } from \"@planningcenter/tapestry-react\"\nimport React from \"react\"\n\ntype DrawerProps = {\n bottom?: number | string\n children: React.ReactNode\n hasShadow?: boolean\n height?: number | string\n id?: string\n overflow?: \"auto\" | \"hidden\" | \"scroll\" | \"visible\"\n position?: \"absolute\" | \"fixed\"\n width?: number | string\n}\n\nexport function Drawer({\n bottom = \"auto\",\n children,\n hasShadow = false,\n height = \"100%\",\n id = \"toolbarDrawer\",\n overflow = \"visible\",\n position = \"absolute\",\n width = \"100%\",\n}: DrawerProps) {\n return (\n <StackView\n backgroundColor=\"surface\"\n elevation={hasShadow && open ? 2 : undefined}\n left={0}\n position=\"absolute\"\n zIndex={1}\n {...{ bottom, height, id, overflow, position, width }}\n >\n {children}\n </StackView>\n )\n}\n","import { Box, Button, StackView } from \"@planningcenter/tapestry-react\"\nimport React from \"react\"\n\nimport { default as themeColors } from \"../../colors\"\n\ninterface DrawerHeaderProps {\n children: React.ReactNode\n closeDrawer?: Function\n}\n\nexport function DrawerHeader({ children, closeDrawer }: DrawerHeaderProps) {\n return (\n <StackView\n alignment=\"start\"\n axis=\"horizontal\"\n color=\"foreground\"\n distribution=\"space-between\"\n padding={2}\n paddingTop={1}\n >\n <Box>{children}</Box>\n {closeDrawer && (\n <Button\n icon={{\n fill: themeColors.lightNeutral24,\n name: \"general.x\",\n size: \"md\",\n }}\n onClick={() => closeDrawer()}\n title=\"Close\"\n theme={false}\n hover={{\n backgroundColor: themeColors.lightNeutral95,\n }}\n />\n )}\n </StackView>\n )\n}\n","import { Heading } from \"@planningcenter/tapestry-react\"\nimport React from \"react\"\n\nexport function DrawerHeading({ children, ...props }) {\n return (\n <Heading\n {...props}\n letterSpacing=\".002em\"\n level={2}\n lineHeight=\"35px\"\n weight={700}\n >\n {children}\n </Heading>\n )\n}\n","import { Box, StackView, StackViewProps } from \"@planningcenter/tapestry-react\"\nimport React, { useEffect, useRef, useState } from \"react\"\n\n// TODO: This component could prob be genrealized to provide overflow-y scroll indication, as well, if needed.\n// `top`/`bottom` // `left`/`right` → `start`/`end`\n\nconst INDICATOR_STYLES = {\n bottom: {\n background: \"linear-gradient(rgba(0, 0, 0, 0.07), rgba(255, 255, 255, 0))\",\n top: 0,\n },\n top: {\n background: \"linear-gradient(rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.07))\",\n bottom: 0,\n },\n}\n\ntype OmittedStackViewProps = Omit<\n StackViewProps,\n \"innerRef\" | \"overflow\" | \"spacing\"\n // `spacing` will cause the appearance of extra top & bottom padding\n // it's preferable to wrap the children in a StackView with the desired spacing\n>\n\ninterface ScrollContainerProps extends OmittedStackViewProps {\n children: React.ReactNode\n}\n\n// Perf: should this component be memoized?\nexport const ScrollContainer: React.FC<ScrollContainerProps> = ({\n children,\n ...props\n}) => {\n const [overflowTop, setOverflowTop] = useState(false)\n const [overflowBottom, setOverflowBottom] = useState(false)\n\n const containerRef = useRef(null)\n const bottomEdgeRef = useRef(null)\n const topEdgeRef = useRef(null)\n\n // Perf: should this be debounced?\n const handleResize = () => {\n const container = containerRef?.current\n\n if (container) {\n const hasOverflowBottom =\n container.scrollHeight - container.clientHeight >\n container.scrollTop + 1\n\n setOverflowBottom(hasOverflowBottom)\n }\n }\n\n useEffect(() => {\n const container = containerRef?.current\n\n if (!container) {\n return () => {} // noop\n }\n\n setOverflowBottom(container.scrollHeight > container.clientHeight)\n\n // setup intersection observers\n const options = { root: container, threshold: 1 }\n const bottomObserver = new IntersectionObserver(\n ([{ isIntersecting }]) => setOverflowBottom(!isIntersecting),\n options\n )\n const topObserver = new IntersectionObserver(\n ([{ isIntersecting }]) => setOverflowTop(!isIntersecting),\n options\n )\n\n const bottomTarget = bottomEdgeRef?.current\n const topTarget = topEdgeRef?.current\n\n if (bottomTarget) {\n bottomObserver.observe(bottomTarget)\n }\n if (topTarget) {\n topObserver.observe(topTarget)\n }\n\n // setup resize observer\n const resizeObserver = new ResizeObserver(handleResize)\n resizeObserver.observe(container)\n\n return () => {\n if (bottomTarget) {\n bottomObserver.unobserve(bottomTarget)\n }\n if (topTarget) {\n topObserver.unobserve(topTarget)\n }\n resizeObserver.unobserve(container)\n }\n }, [])\n\n return (\n <StackView grow={1} position=\"relative\" shrink={1}>\n {overflowBottom && <OverflowIndicator edge=\"top\" />}\n {overflowTop && <OverflowIndicator edge=\"bottom\" />}\n <StackView\n basis={2}\n grow={1}\n innerRef={containerRef}\n overflow=\"auto\"\n role=\"region\"\n shrink={1}\n {...props}\n >\n <Box innerRef={topEdgeRef} />\n {children}\n <Box innerRef={bottomEdgeRef} />\n </StackView>\n </StackView>\n )\n}\n\nconst OverflowIndicator = ({ edge }) => {\n return (\n <Box\n height={1}\n left={0}\n pointerEvents=\"none\"\n position=\"absolute\"\n right={0}\n role=\"presentation\"\n zIndex={10}\n {...INDICATOR_STYLES[edge]}\n />\n )\n}\n","import * as React from \"react\"\n\nenum ActionType {\n close = \"close\",\n mount = \"mount\",\n open = \"open\",\n set = \"set\",\n unmount = \"unmount\",\n}\n\ntype ToolbarState = {\n currentContent: any // TODO: update with Tool type\n mounted: boolean\n open: boolean\n}\n\ntype ToolbarDispatch = {\n payload?: any\n type: ActionType\n}\n\nconst initialState: ToolbarState = {\n currentContent: null,\n mounted: false,\n open: false,\n}\n\nconst reducer = (\n state: ToolbarState,\n action: ToolbarDispatch\n): ToolbarState => {\n switch (action.type) {\n case ActionType.mount:\n return { ...state, currentContent: action.payload.content, mounted: true }\n case ActionType.unmount:\n return { ...state, currentContent: null, mounted: false }\n case ActionType.open:\n return { ...state, open: true }\n case ActionType.close:\n return { ...state, open: false }\n case ActionType.set:\n return { ...state, currentContent: action.payload.content }\n }\n}\n\nconst useToolbarReducer = (overrides?: Partial<ToolbarState>) =>\n React.useReducer(reducer, { ...initialState, ...overrides })\n\nexport { ActionType, useToolbarReducer }\n","import { StackView } from \"@planningcenter/tapestry-react\"\nimport React, { ReactNode } from \"react\"\n\ninterface SwitchViewProps {\n activeIndex: number\n children: ReactNode\n}\n\nconst SwitchView: React.FC<SwitchViewProps> = ({ activeIndex, children }) => {\n const childCount = React.Children.count(children)\n\n const validatedIndex =\n activeIndex < 0\n ? 0\n : activeIndex > childCount - 1\n ? childCount - 1\n : activeIndex\n\n return (\n <StackView grow={1} overflow=\"hidden\" position=\"relative\">\n {React.Children.map(children, (view, index) => {\n const inView = index === validatedIndex\n return (\n <StackView\n aria-hidden={!inView}\n height=\"100%\"\n key={index}\n opacity={inView ? 1 : 0}\n pointerEvents={inView ? \"auto\" : \"none\"}\n position=\"absolute\"\n top={0}\n width=\"100%\"\n transform={\n inView\n ? \"translateX(0)\"\n : index < activeIndex\n ? \"translateX(-100px)\"\n : \"translateX(100px)\"\n }\n transition=\"transform 200ms ease-in-out, opacity 100ms 50ms ease-in-out\"\n >\n {view}\n </StackView>\n )\n })}\n </StackView>\n )\n}\n\nexport { SwitchView }\n","import { HeadingUppercase, StackView } from \"@planningcenter/tapestry-react\"\nimport React from 'react'\n\nexport const Section = ({ children, title }) => {\n return (\n <StackView spacing={1} paddingVertical={1}>\n <HeadingUppercase>{title}</HeadingUppercase>\n <StackView spacing={1}>{children}</StackView>\n </StackView>\n )\n}\n","import { Badge, StackView } from \"@planningcenter/tapestry-react\"\nimport React from \"react\"\n\nimport type { AppChatGroups, AppsChatGroups, ChatGroup } from \"./hooks/use_chat_groups\"\nimport { Section } from \"./section\"\n\nconst AppGroups = {\n Services: ({ groups }: { groups: AppChatGroups }) => {\n const teams = [\"Team\", \"PlanTeam\"].reduce(\n (acc, type) => (groups[type] ? [...acc, ...groups[type]] : acc),\n [] as ChatGroup[]\n )\n\n return (\n <Section title=\"teams\">\n <StackView axis=\"horizontal\" spacing={0.5}>\n {teams.map((team) => (\n <Badge key={team.source_identifier}>{team.name}</Badge>\n ))}\n </StackView>\n </Section>\n )\n },\n}\n\nexport const Groups = ({ groups }: { groups: AppsChatGroups }) => {\n return (\n <>\n {Object.entries(groups).reduce((acc, [appName, appGroups]) => {\n const Component = AppGroups[appName]\n\n if (!Component) return acc\n\n return [...acc, <Component key={appName} groups={appGroups} />]\n }, [] as React.ReactElement[])}\n </>\n )\n}\n","import { Avatar as TapestryAvatar } from \"@planningcenter/tapestry-react\"\nimport React from \"react\"\nimport { Avatar as StreamAvatar } from \"stream-chat-react\"\n\nimport { type User } from \"../channel_details_view/people\"\nimport { type Person } from \"../services/hooks/use_chat_people\"\nimport { type ListItemPerson } from \"./person\"\n\nconst TAPESTRY_AVATAR_SIZE = {\n md: 36,\n sm: 24,\n}\n\nconst isUser = (person: ListItemPerson): person is User =>\n (person as User).image !== undefined\n\nconst isPerson = (person: ListItemPerson): person is Person =>\n (person as Person).avatar !== undefined\n\nconst Avatar = ({\n person,\n size = \"md\",\n}: {\n person: ListItemPerson\n size?: \"sm\" | \"md\"\n}) => {\n if (isPerson(person)) {\n return <TapestryAvatar source={person.avatar} size={size} />\n }\n\n if (isUser(person)) {\n return (\n <StreamAvatar\n image={person.image}\n name={person.name}\n size={TAPESTRY_AVATAR_SIZE[size]}\n />\n )\n }\n\n return null\n}\n\nexport { Avatar }\n","import { Box, Icon, StackView, Text } from \"@planningcenter/tapestry-react\"\nimport React from \"react\"\n\nimport colors from \"../../../../../colors\"\nimport { type User } from \"../channel_details_view/people\"\nimport { type Person } from \"../services/hooks/use_chat_people\"\nimport { Avatar } from \"./avatar\"\n\ntype ListItemPerson = Person | User\n\nconst Person = ({ person }: { person: ListItemPerson }) => {\n const Comp = person.child ? Child : Adult\n return <Comp person={person} />\n}\n\nconst Adult = ({ person }: { person: ListItemPerson }) => (\n <StackView alignment=\"center\" axis=\"horizontal\" spacing={1}>\n <Avatar person={person} />\n <Text size={3} truncate weight={500}>\n {person.name}\n </Text>\n </StackView>\n)\n\nconst Child = ({ person }: { person: ListItemPerson }) => (\n <StackView alignment=\"center\" axis=\"horizontal\" spacing={1}>\n <Box opacity={0.5}>\n <Avatar person={person} />\n </Box>\n <StackView>\n <Text color=\"foreground\" opacity={0.75} size={3} truncate weight={500}>\n {person.name}\n </Text>\n <StackView alignment=\"center\" axis=\"horizontal\" spacing={0.5}>\n <Icon name=\"general.shieldExclamation\" color={colors.warning49} />\n <Text color={colors.warning20} size={5}>\n Not eligible to chat\n </Text>\n </StackView>\n </StackView>\n </StackView>\n)\n\nexport { type ListItemPerson, Person }\n","import {\n Button,\n Collapse,\n GridView,\n Icon,\n StackView,\n Text,\n} from \"@planningcenter/tapestry-react\"\nimport React, { useState } from \"react\"\n\nimport colors from \"../../../../colors\"\nimport { type ListItemPerson, Avatar } from \"./person_list_item\"\n\nconst COLUMNS = \"18px 1fr auto\"\n\nexport const ChildNotice = ({\n childPeople,\n}: {\n childPeople: ListItemPerson[]\n}) => {\n const [open, setOpen] = useState(false)\n\n const childCount = childPeople.length\n const childCountLabel = childCount === 1 ? \"member\" : \"members\"\n\n const summary = `${childCount} ${childCountLabel} under age 13`\n const explanation = `This conversation includes members under 13 years old who are not eligible to chat.`\n\n return (\n <StackView\n background={colors.warning94}\n marginBottom={0.5}\n padding={1}\n radius={4}\n >\n <GridView alignment=\"start\" columns={COLUMNS} spacing={1}>\n <Icon\n color={colors.warning49}\n marginTop=\"1px\"\n name=\"general.shieldExclamation\"\n size=\"lg\"\n />\n <Text grow={1} color=\"foreground\" size={4}>\n {open ? explanation : summary}\n </Text>\n <Button\n aria-label={open ? \"Hide explanation\" : \"Show explanation\"}\n icon={{\n name: open ? \"general.upCaret\" : \"general.downCaret\",\n size: \"md\",\n }}\n onClick={() => setOpen(!open)}\n size={\"xs\" as never} // TODO: Tapestry TS bug\n theme=\"warning\"\n tooltip={open ? \"Hide explanation\" : \"Show explanation\"}\n variant=\"naked\"\n />\n </GridView>\n\n <Collapse open={open}>\n <GridView alignment=\"start\" columns={COLUMNS} spacing={1}>\n <StackView gridColumnStart={2} paddingTop={1} spacing={1}>\n {childPeople.map((person) => (\n <StackView\n alignment=\"center\"\n axis=\"horizontal\"\n key={person.id}\n spacing={1}\n >\n <Avatar person={person} size=\"sm\" />\n <Text color=\"foreground\" size={4} weight={500}>\n {person.name}\n </Text>\n </StackView>\n ))}\n </StackView>\n </GridView>\n </Collapse>\n </StackView>\n )\n}\n","import React from \"react\"\nimport type { User as StreamChatUser } from \"stream-chat\"\n\nimport { ChildNotice } from \"../child_notice\"\nimport { Person } from \"../person_list_item\"\nimport { Section } from \"./section\"\n\nexport interface User extends StreamChatUser {\n image: string\n}\n\ninterface PeopleProps {\n people: User[]\n}\n\nexport const People = ({ people }: PeopleProps) => {\n const childPeople = people.filter((p) => p.child)\n const someChildPeople = childPeople.length > 0\n\n return (\n <Section title=\"people\">\n {someChildPeople && <ChildNotice childPeople={childPeople} />}\n {people.map((person) => (\n <Person key={person.id} person={person} />\n ))}\n </Section>\n )\n}\n","import {\n Button,\n Spinner,\n StackView,\n Text,\n ToggleSwitch,\n} from \"@planningcenter/tapestry-react\"\nimport React from \"react\"\nimport { useChatContext } from \"stream-chat-react\"\n\nimport { useChat, useChatApi } from \"../../hooks\"\nimport { noop } from \"../../utils\"\nimport { Section } from \"./section\"\n\nconst MuteChannel = ({ channel }) => {\n const { client } = useChatContext()\n const [{ muted }, setMuteStatus] = React.useState(() => channel.muteStatus())\n\n React.useEffect(() => {\n const updateMuteState = () => {\n setMuteStatus(channel.muteStatus())\n }\n\n client.on(\"notification.channel_mutes_updated\", updateMuteState)\n return () =>\n client.off(\"notification.channel_mutes_updated\", updateMuteState)\n }, [])\n\n return (\n <StackView axis=\"horizontal\" width=\"100%\">\n <Text as=\"label\" display=\"flex\" grow={1}>\n Mute Channel\n <StackView grow={1} />\n <ToggleSwitch\n isChecked={muted}\n onClick={() => {\n muted ? channel.unmute() : channel.mute()\n setMuteStatus(({ muted, ...rest }) => ({ muted: !muted, ...rest }))\n }}\n />\n </Text>\n </StackView>\n )\n}\n\nconst RemoveChannel = ({ channel }) => {\n const [isRemoveHot, setRemoveHot] = React.useState(false)\n const [isRemoving, setRemoving] = React.useState(false)\n const { switchToChannelListView } = useChat()\n\n const api = useChatApi()\n\n return (\n <StackView cursor=\"pointer\">\n {isRemoving ? (\n <StackView\n color=\"error\"\n axis=\"horizontal\"\n spacing={1}\n alignItems=\"center\"\n >\n <Text>Removing Channel</Text>\n <Spinner size=\"xs\" color=\"error\" />\n </StackView>\n ) : (\n <StackView\n color=\"error\"\n axis=\"horizontal\"\n spacing={1}\n alignItems=\"center\"\n >\n <Text\n pointerEvents={isRemoveHot ? \"none\" : undefined}\n // @ts-ignore\n onClick={() => setRemoveHot(true)}\n >\n Remove Channel\n </Text>\n {isRemoveHot && (\n <Button\n autoFocus\n size={\"xs\" as never} // TODO: Tapestry TS bug\n variant=\"outline\"\n title=\"confirm\"\n theme=\"error\"\n onBlur={() => setRemoveHot(false)}\n onMouseDown={(e) => e.preventDefault()}\n onClick={() => {\n setRemoving(true)\n api.chat\n .delete(`me/conversations/${channel.id}`)\n .then(switchToChannelListView)\n .catch(noop)\n }}\n />\n )}\n </StackView>\n )}\n </StackView>\n )\n}\n\nexport const Settings = ({ channel, isRemovable }) => (\n <Section title=\"settings\">\n <MuteChannel channel={channel} />\n {isRemovable && <RemoveChannel channel={channel} />}\n </Section>\n)\n","import { Box } from \"@planningcenter/tapestry-react\"\nimport React from 'react'\nimport type { Channel } from \"stream-chat\"\n\nimport { useChatApi } from \"../../hooks\"\nimport { noop } from \"../../utils\"\nimport { Input } from \"../\"\nimport { Section } from './section'\n\nexport const Title = ({\n channel,\n isEditable,\n}: {\n channel: Channel\n isEditable: boolean\n}) => {\n const [title, setTitle] = React.useState(channel.data.name)\n const api = useChatApi()\n\n return (\n <Section title=\"title\">\n <Box backgroundColor=\"surfaceTertiary\" width=\"100%\" paddingHorizontal={1}>\n <Input.Inline\n size=\"lg\"\n value={title}\n disabled={!isEditable}\n onChange={(e) => setTitle(e.target.value)}\n onBlur={() => {\n if (title === channel.data.name) return\n\n api.chat\n .patch(`me/conversations/${channel.id}`, { title })\n .catch(noop)\n }}\n onKeyDown={(e) => e.key === \"Enter\" && e.target.blur()}\n />\n </Box>\n </Section>\n )\n}\n","import { Button, Divider, StackView } from \"@planningcenter/tapestry-react\"\nimport React from \"react\"\nimport type { Channel } from \"stream-chat\"\nimport { useChatContext } from \"stream-chat-react\"\n\nimport { DrawerHeading } from \"../../../../components\"\nimport { useChat } from \"../../hooks\"\nimport type { StreamChatGenerics } from \"../../types\"\nimport { Groups } from \"./groups\"\nimport { useChatGroups, useChatMemberAbility, useChatMembers } from \"./hooks\"\nimport { People } from \"./people\"\nimport { Settings } from \"./settings\"\nimport { Title } from \"./title\"\n\nconst Details = ({ channel }: { channel: Channel }) => {\n const chatGroups = useChatGroups(channel)\n const chatMembers = useChatMembers(channel)\n const chatMemberAbility = useChatMemberAbility(channel)\n\n return (\n <StackView padding={2} spacing={<Divider marginVertical={1} />}>\n <Title channel={channel} isEditable={chatMemberAbility.canUpdate} />\n <Settings channel={channel} isRemovable={chatMemberAbility.canDelete} />\n {Object.keys(chatGroups).length > 0 && <Groups groups={chatGroups} />}\n <People people={chatMembers} />\n </StackView>\n )\n}\n\nexport const ChannelDetailsView = () => {\n const { channel } = useChatContext<StreamChatGenerics>()\n const { isChannelDetailsViewActive, switchToChannelView } = useChat()\n\n if (!(channel && isChannelDetailsViewActive)) return null\n\n return (\n <>\n <StackView\n alignment=\"center\"\n axis=\"horizontal\"\n spacing={1}\n padding={2}\n paddingTop={1}\n >\n <Button\n aria-label=\"Switch to chat list\"\n icon=\"general.leftChevron\"\n onClick={switchToChannelView}\n size={\"sm\" as never} // TODO: Tapestry TS bug\n title=\"Back to chat list\"\n variant=\"naked\"\n />\n <DrawerHeading truncate>Conversation Details</DrawerHeading>\n </StackView>\n <Details channel={channel} />\n </>\n )\n}\n","import React from \"react\"\nimport type { Channel } from \"stream-chat\"\n\nimport { useChatApi } from \"../../../hooks\"\nimport { noop } from '../../../utils'\n\ntype AppName = \"Services\" | \"Chat\"\ntype SourceType = string\n\nexport type ChatGroup = {\n name: string | null,\n source_app_name: AppName,\n source_identifier: string\n source_type: SourceType\n}\n\nexport type AppChatGroups = Record<SourceType, ChatGroup[]>\n\nexport type AppsChatGroups = {\n [N in AppName]?: AppChatGroups\n}\n\nexport const useChatGroups = (channel: Channel): AppsChatGroups => {\n const [groups, setGroups] = React.useState<ChatGroup[]>([])\n\n const api = useChatApi()\n\n React.useEffect(() => {\n if (!channel) return\n\n api.chat\n .get(`me/conversations/${channel.id}/groups`)\n .then(setGroups)\n .catch(noop)\n }, [channel])\n\n return groups.reduce((acc, group: ChatGroup) => {\n acc[group.source_app_name] ||= {}\n acc[group.source_app_name][group.source_type] ||= []\n acc[group.source_app_name][group.source_type].push(group)\n\n return acc\n }, {} as AppsChatGroups)\n}\n","import React from \"react\"\nimport type { Channel, ChannelMembership, User } from \"stream-chat\"\n\nimport { useChatApi } from \"../../../hooks\"\nimport { noop } from \"../../../utils\"\n\ntype ChatUser = ChatMember & User\n\nexport type ChatMember = {\n child: boolean\n image: string\n stream_member_id: string\n}\n\nexport const useChatMembers = (channel: Channel): ChatUser[] => {\n const [members, setMembers] = React.useState<Record<string, ChatMember>>({})\n\n const api = useChatApi()\n\n React.useEffect(() => {\n if (!channel) return\n\n api.chat\n .get(`me/conversations/${channel.id}/members`)\n .then((members) =>\n members.reduce(\n (acc, member: ChatMember) => ({\n ...acc,\n [member.stream_member_id]: member,\n }),\n {}\n )\n )\n .then(setMembers)\n .catch(noop)\n }, [channel])\n\n return Object.values(channel.state.members).reduce<ChatUser[]>(\n (acc: [], member: ChannelMembership) =>\n member.user\n ? [...acc, { ...member.user, ...members[member.user.id] }]\n : acc,\n []\n )\n}\n","import React from 'react'\nimport type { Channel } from 'stream-chat';\n\nimport { useChatApi } from \"../../../hooks\"\n\nexport const useChatMemberAbility = (channel: Channel) => {\n const api = useChatApi()\n const [ability, setAbility] = React.useState({\n canDelete: false,\n canUpdate: false,\n })\n\n React.useEffect(() => {\n api.chat\n .get(`/me/conversations/${channel.id}/member_ability`)\n .then((data) => setAbility({\n canDelete: data.can_delete,\n canUpdate: data.can_update,\n }))\n }, [channel])\n\n return ability\n}\n","import { Icon, StackView, Text } from \"@planningcenter/tapestry-react\"\nimport React from \"react\"\n\nexport const LoadingErrorIndicator = () => (\n <StackView alignment=\"center\" spacing={2} padding={2} paddingTop=\"10%\">\n <Icon name=\"general.exclamationTriangle\" color=\"warning\" size=\"xl\" />\n <Text color=\"foregroundSecondary\" align=\"center\">\n An error occured while connecting to the chat, please try again.\n </Text>\n </StackView>\n)\n","export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","var characterMap = {\r\n\t\"À\": \"A\",\r\n\t\"Á\": \"A\",\r\n\t\"Â\": \"A\",\r\n\t\"Ã\": \"A\",\r\n\t\"Ä\": \"A\",\r\n\t\"Å\": \"A\",\r\n\t\"Ấ\": \"A\",\r\n\t\"Ắ\": \"A\",\r\n\t\"Ẳ\": \"A\",\r\n\t\"Ẵ\": \"A\",\r\n\t\"Ặ\": \"A\",\r\n\t\"Æ\": \"AE\",\r\n\t\"Ầ\": \"A\",\r\n\t\"Ằ\": \"A\",\r\n\t\"Ȃ\": \"A\",\r\n\t\"Ç\": \"C\",\r\n\t\"Ḉ\": \"C\",\r\n\t\"È\": \"E\",\r\n\t\"É\": \"E\",\r\n\t\"Ê\": \"E\",\r\n\t\"Ë\": \"E\",\r\n\t\"Ế\": \"E\",\r\n\t\"Ḗ\": \"E\",\r\n\t\"Ề\": \"E\",\r\n\t\"Ḕ\": \"E\",\r\n\t\"Ḝ\": \"E\",\r\n\t\"Ȇ\": \"E\",\r\n\t\"Ì\": \"I\",\r\n\t\"Í\": \"I\",\r\n\t\"Î\": \"I\",\r\n\t\"Ï\": \"I\",\r\n\t\"Ḯ\": \"I\",\r\n\t\"Ȋ\": \"I\",\r\n\t\"Ð\": \"D\",\r\n\t\"Ñ\": \"N\",\r\n\t\"Ò\": \"O\",\r\n\t\"Ó\": \"O\",\r\n\t\"Ô\": \"O\",\r\n\t\"Õ\": \"O\",\r\n\t\"Ö\": \"O\",\r\n\t\"Ø\": \"O\",\r\n\t\"Ố\": \"O\",\r\n\t\"Ṍ\": \"O\",\r\n\t\"Ṓ\": \"O\",\r\n\t\"Ȏ\": \"O\",\r\n\t\"Ù\": \"U\",\r\n\t\"Ú\": \"U\",\r\n\t\"Û\": \"U\",\r\n\t\"Ü\": \"U\",\r\n\t\"Ý\": \"Y\",\r\n\t\"à\": \"a\",\r\n\t\"á\": \"a\",\r\n\t\"â\": \"a\",\r\n\t\"ã\": \"a\",\r\n\t\"ä\": \"a\",\r\n\t\"å\": \"a\",\r\n\t\"ấ\": \"a\",\r\n\t\"ắ\": \"a\",\r\n\t\"ẳ\": \"a\",\r\n\t\"ẵ\": \"a\",\r\n\t\"ặ\": \"a\",\r\n\t\"æ\": \"ae\",\r\n\t\"ầ\": \"a\",\r\n\t\"ằ\": \"a\",\r\n\t\"ȃ\": \"a\",\r\n\t\"ç\": \"c\",\r\n\t\"ḉ\": \"c\",\r\n\t\"è\": \"e\",\r\n\t\"é\": \"e\",\r\n\t\"ê\": \"e\",\r\n\t\"ë\": \"e\",\r\n\t\"ế\": \"e\",\r\n\t\"ḗ\": \"e\",\r\n\t\"ề\": \"e\",\r\n\t\"ḕ\": \"e\",\r\n\t\"ḝ\": \"e\",\r\n\t\"ȇ\": \"e\",\r\n\t\"ì\": \"i\",\r\n\t\"í\": \"i\",\r\n\t\"î\": \"i\",\r\n\t\"ï\": \"i\",\r\n\t\"ḯ\": \"i\",\r\n\t\"ȋ\": \"i\",\r\n\t\"ð\": \"d\",\r\n\t\"ñ\": \"n\",\r\n\t\"ò\": \"o\",\r\n\t\"ó\": \"o\",\r\n\t\"ô\": \"o\",\r\n\t\"õ\": \"o\",\r\n\t\"ö\": \"o\",\r\n\t\"ø\": \"o\",\r\n\t\"ố\": \"o\",\r\n\t\"ṍ\": \"o\",\r\n\t\"ṓ\": \"o\",\r\n\t\"ȏ\": \"o\",\r\n\t\"ù\": \"u\",\r\n\t\"ú\": \"u\",\r\n\t\"û\": \"u\",\r\n\t\"ü\": \"u\",\r\n\t\"ý\": \"y\",\r\n\t\"ÿ\": \"y\",\r\n\t\"Ā\": \"A\",\r\n\t\"ā\": \"a\",\r\n\t\"Ă\": \"A\",\r\n\t\"ă\": \"a\",\r\n\t\"Ą\": \"A\",\r\n\t\"ą\": \"a\",\r\n\t\"Ć\": \"C\",\r\n\t\"ć\": \"c\",\r\n\t\"Ĉ\": \"C\",\r\n\t\"ĉ\": \"c\",\r\n\t\"Ċ\": \"C\",\r\n\t\"ċ\": \"c\",\r\n\t\"Č\": \"C\",\r\n\t\"č\": \"c\",\r\n\t\"C̆\": \"C\",\r\n\t\"c̆\": \"c\",\r\n\t\"Ď\": \"D\",\r\n\t\"ď\": \"d\",\r\n\t\"Đ\": \"D\",\r\n\t\"đ\": \"d\",\r\n\t\"Ē\": \"E\",\r\n\t\"ē\": \"e\",\r\n\t\"Ĕ\": \"E\",\r\n\t\"ĕ\": \"e\",\r\n\t\"Ė\": \"E\",\r\n\t\"ė\": \"e\",\r\n\t\"Ę\": \"E\",\r\n\t\"ę\": \"e\",\r\n\t\"Ě\": \"E\",\r\n\t\"ě\": \"e\",\r\n\t\"Ĝ\": \"G\",\r\n\t\"Ǵ\": \"G\",\r\n\t\"ĝ\": \"g\",\r\n\t\"ǵ\": \"g\",\r\n\t\"Ğ\": \"G\",\r\n\t\"ğ\": \"g\",\r\n\t\"Ġ\": \"G\",\r\n\t\"ġ\": \"g\",\r\n\t\"Ģ\": \"G\",\r\n\t\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"o\",\r\n\t\"Œ\": \"OE\",\r\n\t\"œ\": \"oe\",\r\n\t\"P̆\": \"P\",\r\n\t\"p̆\": \"p\",\r\n\t\"Ŕ\": \"R\",\r\n\t\"ŕ\": \"r\",\r\n\t\"Ŗ\": \"R\",\r\n\t\"ŗ\": \"r\",\r\n\t\"Ř\": \"R\",\r\n\t\"ř\": \"r\",\r\n\t\"R̆\": \"R\",\r\n\t\"r̆\": \"r\",\r\n\t\"Ȓ\": \"R\",\r\n\t\"ȓ\": \"r\",\r\n\t\"Ś\": \"S\",\r\n\t\"ś\": \"s\",\r\n\t\"Ŝ\": \"S\",\r\n\t\"ŝ\": \"s\",\r\n\t\"Ş\": \"S\",\r\n\t\"Ș\": \"S\",\r\n\t\"ș\": \"s\",\r\n\t\"ş\": \"s\",\r\n\t\"Š\": \"S\",\r\n\t\"š\": \"s\",\r\n\t\"Ţ\": \"T\",\r\n\t\"ţ\": \"t\",\r\n\t\"ț\": \"t\",\r\n\t\"Ț\": \"T\",\r\n\t\"Ť\": \"T\",\r\n\t\"ť\": \"t\",\r\n\t\"Ŧ\": \"T\",\r\n\t\"ŧ\": \"t\",\r\n\t\"T̆\": \"T\",\r\n\t\"t̆\": \"t\",\r\n\t\"Ũ\": \"U\",\r\n\t\"ũ\": \"u\",\r\n\t\"Ū\": \"U\",\r\n\t\"ū\": \"u\",\r\n\t\"Ŭ\": \"U\",\r\n\t\"ŭ\": \"u\",\r\n\t\"Ů\": \"U\",\r\n\t\"ů\": \"u\",\r\n\t\"Ű\": \"U\",\r\n\t\"ű\": \"u\",\r\n\t\"Ų\": \"U\",\r\n\t\"ų\": \"u\",\r\n\t\"Ȗ\": \"U\",\r\n\t\"ȗ\": \"u\",\r\n\t\"V̆\": \"V\",\r\n\t\"v̆\": \"v\",\r\n\t\"Ŵ\": \"W\",\r\n\t\"ŵ\": \"w\",\r\n\t\"Ẃ\": \"W\",\r\n\t\"ẃ\": \"w\",\r\n\t\"X̆\": \"X\",\r\n\t\"x̆\":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ř̩\": \"R\",\r\n\t\"ř̩\": \"r\",\r\n\t\"Ṧ\": \"S\",\r\n\t\"ṧ\": \"s\",\r\n\t\"V̌\": \"V\",\r\n\t\"v̌\": \"v\",\r\n\t\"W̌\": \"W\",\r\n\t\"w̌\": \"w\",\r\n\t\"X̌\": \"X\",\r\n\t\"x̌\": \"x\",\r\n\t\"Y̌\": \"Y\",\r\n\t\"y̌\": \"y\",\r\n\t\"A̧\": \"A\",\r\n\t\"a̧\": \"a\",\r\n\t\"B̧\": \"B\",\r\n\t\"b̧\": \"b\",\r\n\t\"Ḑ\": \"D\",\r\n\t\"ḑ\": \"d\",\r\n\t\"Ȩ\": \"E\",\r\n\t\"ȩ\": \"e\",\r\n\t\"Ɛ̧\": \"E\",\r\n\t\"ɛ̧\": \"e\",\r\n\t\"Ḩ\": \"H\",\r\n\t\"ḩ\": \"h\",\r\n\t\"I̧\": \"I\",\r\n\t\"i̧\": \"i\",\r\n\t\"Ɨ̧\": \"I\",\r\n\t\"ɨ̧\": \"i\",\r\n\t\"M̧\": \"M\",\r\n\t\"m̧\": \"m\",\r\n\t\"O̧\": \"O\",\r\n\t\"o̧\": \"o\",\r\n\t\"Q̧\": \"Q\",\r\n\t\"q̧\": \"q\",\r\n\t\"U̧\": \"U\",\r\n\t\"u̧\": \"u\",\r\n\t\"X̧\": \"X\",\r\n\t\"x̧\": \"x\",\r\n\t\"Z̧\": \"Z\",\r\n\t\"z̧\": \"z\",\r\n};\r\n\r\nvar chars = Object.keys(characterMap).join('|');\r\nvar allAccents = new RegExp(chars, 'g');\r\nvar firstAccent = new RegExp(chars, '');\r\n\r\nvar removeAccents = function(string) {\t\r\n\treturn string.replace(allAccents, function(match) {\r\n\t\treturn characterMap[match];\r\n\t});\r\n};\r\n\r\nvar hasAccents = function(string) {\r\n\treturn !!string.match(firstAccent);\r\n};\r\n\r\nmodule.exports = removeAccents;\r\nmodule.exports.has = hasAccents;\r\nmodule.exports.remove = removeAccents;\r\n","import _extends from '@babel/runtime/helpers/esm/extends';\nimport removeAccents from 'remove-accents';\n\nvar rankings = {\n CASE_SENSITIVE_EQUAL: 7,\n EQUAL: 6,\n STARTS_WITH: 5,\n WORD_STARTS_WITH: 4,\n CONTAINS: 3,\n ACRONYM: 2,\n MATCHES: 1,\n NO_MATCH: 0\n};\nmatchSorter.rankings = rankings;\n\nvar defaultBaseSortFn = function defaultBaseSortFn(a, b) {\n return String(a.rankedValue).localeCompare(String(b.rankedValue));\n};\n/**\n * Takes an array of items and a value and returns a new array with the items that match the given value\n * @param {Array} items - the items to sort\n * @param {String} value - the value to use for ranking\n * @param {Object} options - Some options to configure the sorter\n * @return {Array} - the new sorted array\n */\n\n\nfunction matchSorter(items, value, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n keys = _options.keys,\n _options$threshold = _options.threshold,\n threshold = _options$threshold === void 0 ? rankings.MATCHES : _options$threshold,\n _options$baseSort = _options.baseSort,\n baseSort = _options$baseSort === void 0 ? defaultBaseSortFn : _options$baseSort,\n _options$sorter = _options.sorter,\n sorter = _options$sorter === void 0 ? function (matchedItems) {\n return matchedItems.sort(function (a, b) {\n return sortRankedValues(a, b, baseSort);\n });\n } : _options$sorter;\n var matchedItems = items.reduce(reduceItemsToRanked, []);\n return sorter(matchedItems).map(function (_ref) {\n var item = _ref.item;\n return item;\n });\n\n function reduceItemsToRanked(matches, item, index) {\n var rankingInfo = getHighestRanking(item, keys, value, options);\n var rank = rankingInfo.rank,\n _rankingInfo$keyThres = rankingInfo.keyThreshold,\n keyThreshold = _rankingInfo$keyThres === void 0 ? threshold : _rankingInfo$keyThres;\n\n if (rank >= keyThreshold) {\n matches.push(_extends({}, rankingInfo, {\n item: item,\n index: index\n }));\n }\n\n return matches;\n }\n}\n/**\n * Gets the highest ranking for value for the given item based on its values for the given keys\n * @param {*} item - the item to rank\n * @param {Array} keys - the keys to get values from the item for the ranking\n * @param {String} value - the value to rank against\n * @param {Object} options - options to control the ranking\n * @return {{rank: Number, keyIndex: Number, keyThreshold: Number}} - the highest ranking\n */\n\n\nfunction getHighestRanking(item, keys, value, options) {\n if (!keys) {\n // if keys is not specified, then we assume the item given is ready to be matched\n var stringItem = item;\n return {\n // ends up being duplicate of 'item' in matches but consistent\n rankedValue: stringItem,\n rank: getMatchRanking(stringItem, value, options),\n keyIndex: -1,\n keyThreshold: options.threshold\n };\n }\n\n var valuesToRank = getAllValuesToRank(item, keys);\n return valuesToRank.reduce(function (_ref2, _ref3, i) {\n var rank = _ref2.rank,\n rankedValue = _ref2.rankedValue,\n keyIndex = _ref2.keyIndex,\n keyThreshold = _ref2.keyThreshold;\n var itemValue = _ref3.itemValue,\n attributes = _ref3.attributes;\n var newRank = getMatchRanking(itemValue, value, options);\n var newRankedValue = rankedValue;\n var minRanking = attributes.minRanking,\n maxRanking = attributes.maxRanking,\n threshold = attributes.threshold;\n\n if (newRank < minRanking && newRank >= rankings.MATCHES) {\n newRank = minRanking;\n } else if (newRank > maxRanking) {\n newRank = maxRanking;\n }\n\n if (newRank > rank) {\n rank = newRank;\n keyIndex = i;\n keyThreshold = threshold;\n newRankedValue = itemValue;\n }\n\n return {\n rankedValue: newRankedValue,\n rank: rank,\n keyIndex: keyIndex,\n keyThreshold: keyThreshold\n };\n }, {\n rankedValue: item,\n rank: rankings.NO_MATCH,\n keyIndex: -1,\n keyThreshold: options.threshold\n });\n}\n/**\n * Gives a rankings score based on how well the two strings match.\n * @param {String} testString - the string to test against\n * @param {String} stringToRank - the string to rank\n * @param {Object} options - options for the match (like keepDiacritics for comparison)\n * @returns {Number} the ranking for how well stringToRank matches testString\n */\n\n\nfunction getMatchRanking(testString, stringToRank, options) {\n testString = prepareValueForComparison(testString, options);\n stringToRank = prepareValueForComparison(stringToRank, options); // too long\n\n if (stringToRank.length > testString.length) {\n return rankings.NO_MATCH;\n } // case sensitive equals\n\n\n if (testString === stringToRank) {\n return rankings.CASE_SENSITIVE_EQUAL;\n } // Lower casing before further comparison\n\n\n testString = testString.toLowerCase();\n stringToRank = stringToRank.toLowerCase(); // case insensitive equals\n\n if (testString === stringToRank) {\n return rankings.EQUAL;\n } // starts with\n\n\n if (testString.startsWith(stringToRank)) {\n return rankings.STARTS_WITH;\n } // word starts with\n\n\n if (testString.includes(\" \" + stringToRank)) {\n return rankings.WORD_STARTS_WITH;\n } // contains\n\n\n if (testString.includes(stringToRank)) {\n return rankings.CONTAINS;\n } else if (stringToRank.length === 1) {\n // If the only character in the given stringToRank\n // isn't even contained in the testString, then\n // it's definitely not a match.\n return rankings.NO_MATCH;\n } // acronym\n\n\n if (getAcronym(testString).includes(stringToRank)) {\n return rankings.ACRONYM;\n } // will return a number between rankings.MATCHES and\n // rankings.MATCHES + 1 depending on how close of a match it is.\n\n\n return getClosenessRanking(testString, stringToRank);\n}\n/**\n * Generates an acronym for a string.\n *\n * @param {String} string the string for which to produce the acronym\n * @returns {String} the acronym\n */\n\n\nfunction getAcronym(string) {\n var acronym = '';\n var wordsInString = string.split(' ');\n wordsInString.forEach(function (wordInString) {\n var splitByHyphenWords = wordInString.split('-');\n splitByHyphenWords.forEach(function (splitByHyphenWord) {\n acronym += splitByHyphenWord.substr(0, 1);\n });\n });\n return acronym;\n}\n/**\n * Returns a score based on how spread apart the\n * characters from the stringToRank are within the testString.\n * A number close to rankings.MATCHES represents a loose match. A number close\n * to rankings.MATCHES + 1 represents a tighter match.\n * @param {String} testString - the string to test against\n * @param {String} stringToRank - the string to rank\n * @returns {Number} the number between rankings.MATCHES and\n * rankings.MATCHES + 1 for how well stringToRank matches testString\n */\n\n\nfunction getClosenessRanking(testString, stringToRank) {\n var matchingInOrderCharCount = 0;\n var charNumber = 0;\n\n function findMatchingCharacter(matchChar, string, index) {\n for (var j = index, J = string.length; j < J; j++) {\n var stringChar = string[j];\n\n if (stringChar === matchChar) {\n matchingInOrderCharCount += 1;\n return j + 1;\n }\n }\n\n return -1;\n }\n\n function getRanking(spread) {\n var spreadPercentage = 1 / spread;\n var inOrderPercentage = matchingInOrderCharCount / stringToRank.length;\n var ranking = rankings.MATCHES + inOrderPercentage * spreadPercentage;\n return ranking;\n }\n\n var firstIndex = findMatchingCharacter(stringToRank[0], testString, 0);\n\n if (firstIndex < 0) {\n return rankings.NO_MATCH;\n }\n\n charNumber = firstIndex;\n\n for (var i = 1, I = stringToRank.length; i < I; i++) {\n var matchChar = stringToRank[i];\n charNumber = findMatchingCharacter(matchChar, testString, charNumber);\n var found = charNumber > -1;\n\n if (!found) {\n return rankings.NO_MATCH;\n }\n }\n\n var spread = charNumber - firstIndex;\n return getRanking(spread);\n}\n/**\n * Sorts items that have a rank, index, and keyIndex\n * @param {Object} a - the first item to sort\n * @param {Object} b - the second item to sort\n * @return {Number} -1 if a should come first, 1 if b should come first, 0 if equal\n */\n\n\nfunction sortRankedValues(a, b, baseSort) {\n var aFirst = -1;\n var bFirst = 1;\n var aRank = a.rank,\n aKeyIndex = a.keyIndex;\n var bRank = b.rank,\n bKeyIndex = b.keyIndex;\n var same = aRank === bRank;\n\n if (same) {\n if (aKeyIndex === bKeyIndex) {\n // use the base sort function as a tie-breaker\n return baseSort(a, b);\n } else {\n return aKeyIndex < bKeyIndex ? aFirst : bFirst;\n }\n } else {\n return aRank > bRank ? aFirst : bFirst;\n }\n}\n/**\n * Prepares value for comparison by stringifying it, removing diacritics (if specified)\n * @param {String} value - the value to clean\n * @param {Object} options - {keepDiacritics: whether to remove diacritics}\n * @return {String} the prepared value\n */\n\n\nfunction prepareValueForComparison(value, _ref4) {\n var keepDiacritics = _ref4.keepDiacritics;\n // value might not actually be a string at this point (we don't get to choose)\n // so part of preparing the value for comparison is ensure that it is a string\n value = \"\" + value; // toString\n\n if (!keepDiacritics) {\n value = removeAccents(value);\n }\n\n return value;\n}\n/**\n * Gets value for key in item at arbitrarily nested keypath\n * @param {Object} item - the item\n * @param {Object|Function} key - the potentially nested keypath or property callback\n * @return {Array} - an array containing the value(s) at the nested keypath\n */\n\n\nfunction getItemValues(item, key) {\n if (typeof key === 'object') {\n key = key.key;\n }\n\n var value;\n\n if (typeof key === 'function') {\n value = key(item);\n } else if (item == null) {\n value = null;\n } else if (Object.hasOwnProperty.call(item, key)) {\n value = item[key];\n } else if (key.includes('.')) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n return getNestedValues(key, item);\n } else {\n value = null;\n } // because `value` can also be undefined\n\n\n if (value == null) {\n return [];\n }\n\n if (Array.isArray(value)) {\n return value;\n }\n\n return [String(value)];\n}\n/**\n * Given path: \"foo.bar.baz\"\n * And item: {foo: {bar: {baz: 'buzz'}}}\n * -> 'buzz'\n * @param path a dot-separated set of keys\n * @param item the item to get the value from\n */\n\n\nfunction getNestedValues(path, item) {\n var keys = path.split('.');\n var values = [item];\n\n for (var i = 0, I = keys.length; i < I; i++) {\n var nestedKey = keys[i];\n var nestedValues = [];\n\n for (var j = 0, J = values.length; j < J; j++) {\n var nestedItem = values[j];\n if (nestedItem == null) continue;\n\n if (Object.hasOwnProperty.call(nestedItem, nestedKey)) {\n var nestedValue = nestedItem[nestedKey];\n\n if (nestedValue != null) {\n nestedValues.push(nestedValue);\n }\n } else if (nestedKey === '*') {\n // ensure that values is an array\n nestedValues = nestedValues.concat(nestedItem);\n }\n }\n\n values = nestedValues;\n }\n\n if (Array.isArray(values[0])) {\n // keep allowing the implicit wildcard for an array of strings at the end of\n // the path; don't use `.flat()` because that's not available in node.js v10\n var result = [];\n return result.concat.apply(result, values);\n } // Based on our logic it should be an array of strings by now...\n // assuming the user's path terminated in strings\n\n\n return values;\n}\n/**\n * Gets all the values for the given keys in the given item and returns an array of those values\n * @param item - the item from which the values will be retrieved\n * @param keys - the keys to use to retrieve the values\n * @return objects with {itemValue, attributes}\n */\n\n\nfunction getAllValuesToRank(item, keys) {\n var allValues = [];\n\n for (var j = 0, J = keys.length; j < J; j++) {\n var key = keys[j];\n var attributes = getKeyAttributes(key);\n var itemValues = getItemValues(item, key);\n\n for (var i = 0, I = itemValues.length; i < I; i++) {\n allValues.push({\n itemValue: itemValues[i],\n attributes: attributes\n });\n }\n }\n\n return allValues;\n}\n\nvar defaultKeyAttributes = {\n maxRanking: Infinity,\n minRanking: -Infinity\n};\n/**\n * Gets all the attributes for the given key\n * @param key - the key from which the attributes will be retrieved\n * @return object containing the key's attributes\n */\n\nfunction getKeyAttributes(key) {\n if (typeof key === 'string') {\n return defaultKeyAttributes;\n }\n\n return _extends({}, defaultKeyAttributes, key);\n}\n/*\neslint\n no-continue: \"off\",\n*/\n\nexport { defaultBaseSortFn, matchSorter, rankings };\n","export const BUTTON_STYLE_BASE_OVERRIDES = {\n fontSize: \"16px\",\n fontWeight: 400,\n lineHeight: \"165%\",\n}\n","import { matchSorter } from \"match-sorter\"\n\nimport colors from \"../../../../../../colors\"\nimport { BUTTON_STYLE_BASE_OVERRIDES } from \"../../../constants\"\nimport { TeamOptionGroups, TeamOptions } from \"../types\"\n\nconst teamOptionSort = (a, b) => {\n const [x, aService, aTeam] = a.order\n const [y, bService, bTeam] = b.order\n\n return x - y || aService.localeCompare(bService) || aTeam.localeCompare(bTeam)\n}\n\nexport const groupTeamOptions = (\n options: TeamOptions,\n searchTerm: string\n): TeamOptionGroups =>\n matchSorter(options, searchTerm, {\n keys: [\"name\"],\n threshold: matchSorter.rankings.CONTAINS,\n })\n .sort(teamOptionSort)\n .reduce((acc, option) => {\n acc[option.group] ||= []\n acc[option.group].push(option)\n return acc\n }, {})\n\nexport const getPrimaryButtonStyleOverrides = ({\n disabled,\n spinner,\n}: { disabled?: boolean; spinner?: boolean } = {}) => {\n const base = {\n ...BUTTON_STYLE_BASE_OVERRIDES,\n backgroundColor: colors.interaction55,\n color: spinner ? \"transparent\" : \"surface\",\n spinner: spinner ? { color: colors.interaction55 } : undefined,\n }\n\n if (disabled)\n return {\n ...base,\n backgroundColor: colors.lightNeutral81,\n spinner: spinner ? { color: colors.lightNeutral81 } : undefined,\n }\n\n return {\n ...base,\n active: { backgroundColor: colors.interaction45 },\n focus: { backgroundColor: colors.interaction55 },\n hover: { backgroundColor: colors.interaction50 },\n }\n}\n","import { Button, Divider, StackView } from \"@planningcenter/tapestry-react\"\nimport React, { PropsWithChildren } from \"react\"\nimport { ChannelListMessengerProps } from \"stream-chat-react\"\n\nimport { ScrollContainer } from \"../../../../components\"\nimport { useChat } from \"../../hooks\"\nimport { LoadingErrorIndicator } from \"./loading_error_indicator\"\nimport { getPrimaryButtonStyleOverrides } from \"../services/utils\"\n\nexport const List = (props: PropsWithChildren<ChannelListMessengerProps>) => {\n const { children, error = null, loading } = props\n const { switchToNewChatView } = useChat()\n\n if (error) return <LoadingErrorIndicator />\n if (loading) return null\n\n return (\n <StackView grow={1} shrink={1}>\n <ScrollContainer>{children}</ScrollContainer>\n <Divider />\n <StackView padding={2} alignment=\"stretch\">\n <Button\n aria-label=\"Switch to new chat\"\n onClick={switchToNewChatView}\n {...getPrimaryButtonStyleOverrides()}\n >\n New chat\n </Button>\n </StackView>\n </StackView>\n )\n}\n","import {\n StackView,\n Text,\n} from \"@planningcenter/tapestry-react\"\nimport React from \"react\"\n\nimport { ColorAppIcon } from \"../../../../color_app_icon\"\n\nconst ChatApps = [\"Services\"]\n\nconst AppMetaComponents = {\n Services: ({ dates }) => (\n <Text\n color=\"foregroundSecondary\"\n lineHeight=\"13px\"\n size={6}\n textTransform=\"uppercase\"\n >\n {dates}\n </Text>\n ),\n}\n\nconst ChannelMeta = ({ appName, ...props }) => {\n const AppMetaComponent = AppMetaComponents[appName]\n\n return (\n <StackView\n alignment=\"center\"\n axis=\"horizontal\"\n borderColor=\"separatorTertiary\"\n borderWidth={1}\n padding={0.5}\n radius={4}\n spacing={0.5}\n width=\"max-content\"\n >\n <ColorAppIcon appName={appName} size={15} />\n <AppMetaComponent {...props} />\n </StackView>\n )\n}\n\nexport const ChannelMetas = ({ channel }) => {\n const metas = ChatApps.reduce(\n (acc, appName) =>\n channel?.data[appName]\n ? [\n ...acc,\n <ChannelMeta\n key={appName}\n appName={appName}\n {...channel.data[appName]}\n />,\n ]\n : acc,\n []\n )\n\n return <>{metas}</>\n}\n","import React from \"react\"\nimport type { ChannelMemberResponse } from \"stream-chat\"\nimport { Avatar as SCAvatar } from \"stream-chat-react\"\n\nconst getImage = (member) => member.user?.image\n\nconst Avatar = ({ member, size = 40 }) => <SCAvatar image={getImage(member)} shape=\"square\" size={size}/>\n\n// based off of https://github.com/GetStream/website-react-examples/blob/master/social-messenger-ts/src/components/AvatarGroup/AvatarGroup.tsx\nexport const AvatarGroup = ({\n members,\n}: {\n members: ChannelMemberResponse[]\n}) => {\n let content = null\n\n if (members.length === 1) {\n content = <Avatar member={members[0]} />\n }\n\n if (members.length === 2) {\n content = (\n <>\n <div>\n <Avatar member={members[0]} />\n </div>\n <div style={{ marginLeft: \"-20px\" }}>\n <Avatar member={members[1]} />\n </div>\n </>\n )\n }\n\n if (members.length === 3) {\n content = (\n <>\n <div>\n <Avatar member={members[0]} />\n </div>\n <div style={{ marginLeft: \"-20px\" }}>\n <Avatar member={members[1]} size={20} />\n <Avatar member={members[2]} size={20} />\n </div>\n </>\n )\n }\n\n if (members.length >= 4) {\n content = (\n <>\n <div>\n <Avatar\n member={members[members.length - 4]}\n size={20}\n />\n <Avatar\n member={members[members.length - 3]}\n size={20}\n />\n </div>\n <div>\n <Avatar\n member={members[members.length - 2]}\n size={20}\n />\n <Avatar\n member={members[members.length - 1]}\n size={20}\n />\n </div>\n </>\n )\n }\n\n return <div className=\"str-chat__avatar-group\">{content}</div>\n}\n\nexport default AvatarGroup\n","import datetimeFmt from \"@churchcenter/datetime-fmt\"\nimport {\n Badge,\n Box,\n Dropdown,\n GridView,\n Heading,\n StackView,\n Text,\n} from \"@planningcenter/tapestry-react\"\nimport React from \"react\"\nimport { useChatContext } from \"stream-chat-react\"\n\nimport colors from \"../../../../../colors\"\nimport { useChat } from \"../../hooks\"\nimport { ChannelMetas } from '../channel_metas'\nimport AvatarGroup from \"./avatar_group\"\n\nconst getTimeStamp = (channel) =>\n channel.state.last_message_at\n ? datetimeFmt.date(channel.state.last_message_at, {\n style: \"abbreviated\",\n year: false,\n })\n : \"\"\n\nconst UnreadBadge = ({ unread }) => {\n if (unread < 1) return null\n\n const clampedValue = unread <= 99 ? unread.toString() : \"99+\"\n\n return (\n <Badge\n title={clampedValue}\n size=\"xs\"\n color={colors.interaction66}\n radius=\"pill\"\n minWidth={3}\n />\n )\n}\n\nexport const Preview = ({\n channel,\n latestMessage,\n setActiveChannel,\n unread,\n}) => {\n const { client } = useChatContext()\n const {\n setActionsOpenForChannel,\n actionsOpenForChannel,\n switchToChannelView,\n } = useChat()\n const channelActionsOpen = actionsOpenForChannel === channel.id\n const latestMessageText = latestMessage?.props?.children || \"\"\n\n const handleChannelClick = (\n e: React.MouseEvent<HTMLDivElement> | React.KeyboardEvent<HTMLDivElement>\n ) => {\n const target = e.target as HTMLElement\n if (target.getAttribute(\"data-type\") !== \"actions-dropdown\") {\n setActiveChannel(channel)\n switchToChannelView()\n }\n }\n\n const handleChannelKeyDown = (event: React.KeyboardEvent<HTMLDivElement>) => {\n if (event.key === \"Enter\" || event.key === \" \") {\n handleChannelClick(event)\n }\n }\n\n const members = Object.values(channel.state.members).filter(\n ({ user }) => user.id !== client.userID\n )\n\n const displayTitle = channel.data.name\n\n return (\n <GridView\n alignment=\"start\"\n aria-label={`Select Channel: ${displayTitle || \"\"}`}\n backgroundColor={channelActionsOpen ? \"surfaceTertiary\" : \"surface\"}\n borderBottomColor=\"separatorTertiary\"\n borderBottomWidth={1}\n columns=\"auto 1fr auto\"\n cursor=\"pointer\"\n css={{\n \"&:hover\": {\n \".actions-dropdown\": { visibility: \"visible\" },\n backgroundColor: \"surfaceTertiary\",\n },\n }}\n minHeight={10}\n onClick={handleChannelClick}\n onKeyDown={handleChannelKeyDown}\n padding={1}\n paddingHorizontal={2}\n radius={0}\n role=\"button\"\n spacing={1}\n tabIndex={0}\n width=\"100%\"\n >\n <AvatarGroup members={members} />\n <StackView height=\"100%\" alignment=\"start\" paddingRight={1}>\n <Heading level={5} maxWidth=\"100%\" truncate weight={500}>\n {displayTitle}\n </Heading>\n <Text\n color=\"foregroundSecondary\"\n css={{\n WebkitBoxOrient: \"vertical\",\n WebkitLineClamp: \"2\",\n display: \"-webkit-box\",\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n }}\n lineHeight=\"1.3\"\n maxWidth=\"100%\"\n size={5}\n textAlign=\"left\"\n >\n {latestMessageText}\n </Text>\n <StackView basis={0.5} grow={1} />\n <ChannelMetas channel={channel} />\n </StackView>\n <StackView alignment=\"end\" minWidth={6} height=\"100%\">\n <Text color=\"foregroundSecondary\" size={5} textTransform=\"uppercase\">\n {getTimeStamp(channel)}\n </Text>\n <StackView alignment=\"end\" alignSelf=\"stretch\" grow={1}>\n <UnreadBadge unread={unread} />\n </StackView>\n <Box onClick={(e) => e.stopPropagation()}>\n <Dropdown\n alignSelf=\"end\"\n className=\"actions-dropdown\"\n data-type=\"actions-dropdown\"\n icon={{\n name: \"people.importProgress\",\n size: \"lg\",\n }}\n radius=\"circle\"\n iconRight={false}\n lockScrollWhileOpen={true}\n onClose={() => setActionsOpenForChannel(null)}\n onOpen={() => setActionsOpenForChannel(channel.id)}\n placement=\"top-end\"\n popoverProps={{ offset: 4, shouldFlip: true }}\n right=\"1.5px\"\n size=\"xs\"\n theme=\"dark\"\n title=\"Chat actions\"\n variant=\"naked\"\n visibility={channelActionsOpen ? \"visible\" : \"hidden\"}\n >\n {/* @ts-expect-error TODO: Tapestry TS bug */}\n <Dropdown.Item onSelect={() => {}}>Mark as unread</Dropdown.Item>\n {/* @ts-expect-error TODO: Tapestry TS bug */}\n <Dropdown.Item onSelect={() => {}}>Mute</Dropdown.Item>\n </Dropdown>\n </Box>\n </StackView>\n </GridView>\n )\n}\n","import { Heading, StackView, Text } from \"@planningcenter/tapestry-react\"\nimport React from \"react\"\n\nexport const ChannelListBlankState = () => (\n <StackView\n alignment=\"center\"\n distribution=\"center\"\n padding={4}\n paddingTop=\"54px\"\n width=\"100%\"\n >\n <ChannelListBlankStateIcon />\n <Heading color=\"foreground\" fontWeight={500} marginTop={1} size={3}>\n No messages\n </Heading>\n <Text color=\"foreground\" align=\"center\" size={4}>\n Click new chat below to start a conversation!\n </Text>\n </StackView>\n)\n\nconst ChannelListBlankStateIcon = () => (\n <svg\n width=\"162\"\n height=\"124\"\n viewBox=\"0 0 162 124\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M157.354 67.5522C151.241 85.6769 138.257 101.123 124.335 110.111C110.102 119.278 94.9458 121.54 77.5441 117.715C60.3357 113.846 43.3207 105.974 29.2803 98.519C15.344 90.6768 4.35267 83.5043 1.63086 72.2247C-1.04633 61.2576 4.81374 46.0644 18.8987 31.0943C32.835 16.3773 54.9962 2.71679 81.3665 0.469802C107.543 -2.16409 131.594 6.57091 145.381 19.3088C159.526 32.1211 163.437 49.5613 157.369 67.5522H157.354Z\"\n fill=\"#EDF6FB\"\n />\n <g opacity=\"0.2\">\n <path\n opacity=\"0.2\"\n d=\"M102.204 121.658C88.8481 124.173 75.9678 121.851 62.6562 114.947C47.0244 106.747 32.642 94.7534 20.9962 83.9054C9.55863 72.7299 0.798274 62.9533 1.08087 51.3463C1.25935 43.147 6.37575 33.9656 15.85 25.4092\"\n stroke=\"#BAC7D3\"\n stroke-width=\"1.48\"\n stroke-miterlimit=\"10\"\n />\n <path\n opacity=\"0.2\"\n d=\"M152.714 87.1641C143.909 100.408 130.985 110.631 117.792 116.628\"\n stroke=\"#BAC7D3\"\n stroke-width=\"1.48\"\n stroke-miterlimit=\"10\"\n />\n <path\n opacity=\"0.2\"\n d=\"M36.5986 11.6C53.108 3.53464 74.4809 -1.27187 96.6421 2.6864C122.611 6.91253 143.582 21.5701 153.607 37.4478C160.761 48.5191 162.62 60.4683 159.63 72.0009\"\n stroke=\"#BAC7D3\"\n stroke-width=\"1.48\"\n stroke-miterlimit=\"10\"\n />\n </g>\n <path\n d=\"M108.125 25.5668H52.4657C49.4438 25.4274 46.4893 26.4961 44.2438 28.5407C41.9982 30.5854 40.6427 33.441 40.4717 36.4876V72.233C40.6427 75.2796 41.9982 78.1352 44.2438 80.1799C46.4893 82.2245 49.4438 83.2931 52.4657 83.1538H64.7654L80.2729 96.7441L95.7804 83.1538H108.125C111.147 83.2931 114.102 82.2245 116.347 80.1799C118.593 78.1352 119.948 75.2796 120.119 72.233V36.4876C119.948 33.441 118.593 30.5854 116.347 28.5407C114.102 26.4961 111.147 25.4274 108.125 25.5668Z\"\n fill=\"#48A5E5\"\n />\n <path\n d=\"M64.8701 59.3043C62.3848 59.3043 60.3701 57.2886 60.3701 54.8021C60.3701 52.3155 62.3848 50.2998 64.8701 50.2998C67.3554 50.2998 69.3701 52.3155 69.3701 54.8021C69.3701 57.2886 67.3554 59.3043 64.8701 59.3043Z\"\n fill=\"#EEF5FD\"\n />\n <path\n d=\"M79.9258 59.3043C77.4405 59.3043 75.4258 57.2886 75.4258 54.8021C75.4258 52.3155 77.4405 50.2998 79.9258 50.2998C82.4111 50.2998 84.4258 52.3155 84.4258 54.8021C84.4258 57.2886 82.4111 59.3043 79.9258 59.3043Z\"\n fill=\"#EEF5FD\"\n />\n <path\n d=\"M95.0615 59.3043C92.5762 59.3043 90.5615 57.2886 90.5615 54.8021C90.5615 52.3155 92.5762 50.2998 95.0615 50.2998C97.5468 50.2998 99.5615 52.3155 99.5615 54.8021C99.5615 57.2886 97.5468 59.3043 95.0615 59.3043Z\"\n fill=\"#EEF5FD\"\n />\n <path\n d=\"M124.007 65.7374H96.4523C94.9563 65.6685 93.4937 66.1975 92.382 67.2097C91.2703 68.2219 90.5993 69.6355 90.5146 71.1438V88.8395C90.5993 90.3477 91.2703 91.7614 92.382 92.7736C93.4937 93.7858 94.9563 94.3148 96.4523 94.2458H102.541L110.218 100.974L117.895 94.2458H124.007C125.503 94.3148 126.965 93.7858 128.077 92.7736C129.188 91.7614 129.859 90.3477 129.944 88.8395V71.1438C129.859 69.6355 129.188 68.2219 128.077 67.2097C126.965 66.1975 125.503 65.6685 124.007 65.7374Z\"\n fill=\"#79CAF2\"\n />\n <path\n d=\"M102.594 82.4391C101.363 82.4391 100.366 81.4412 100.366 80.2103C100.366 78.9793 101.363 77.9814 102.594 77.9814C103.824 77.9814 104.821 78.9793 104.821 80.2103C104.821 81.4412 103.824 82.4391 102.594 82.4391Z\"\n fill=\"#EEF5FD\"\n />\n <path\n d=\"M110.047 82.4391C108.816 82.4391 107.819 81.4412 107.819 80.2103C107.819 78.9793 108.816 77.9814 110.047 77.9814C111.277 77.9814 112.274 78.9793 112.274 80.2103C112.274 81.4412 111.277 82.4391 110.047 82.4391Z\"\n fill=\"#EEF5FD\"\n />\n <path\n d=\"M117.54 82.4391C116.31 82.4391 115.312 81.4412 115.312 80.2103C115.312 78.9793 116.31 77.9814 117.54 77.9814C118.77 77.9814 119.768 78.9793 119.768 80.2103C119.768 81.4412 118.77 82.4391 117.54 82.4391Z\"\n fill=\"#EEF5FD\"\n />\n </svg>\n)\n","import { Badge, Spinner, StackView } from \"@planningcenter/tapestry-react\"\nimport React, { useMemo } from \"react\"\nimport { ChannelList, InfiniteScroll } from \"stream-chat-react\"\n\nimport { DrawerHeader, DrawerHeading } from \"../../../../components\"\nimport { useChannelsLoading } from \"../../hooks\"\nimport { List } from \"./list\"\nimport { Preview } from \"./preview\"\nimport { ChannelListBlankState } from \"./channel_list_blank_state\"\n\nexport const ChannelListView = ({\n client,\n closeDrawer,\n unreadChannelCount,\n}) => {\n const [channelsLoading, channelsLoaded] = useChannelsLoading()\n\n const filters = useMemo(() => {\n return {\n members: {\n $in: [client.userID],\n },\n pco_apps: { $contains: \"services\" },\n type: \"messaging\",\n }\n }, [client.userID])\n\n return (\n <>\n <DrawerHeader closeDrawer={closeDrawer}>\n <StackView axis=\"horizontal\" alignment=\"center\" spacing={1}>\n <DrawerHeading>Chat</DrawerHeading>\n {channelsLoading ? (\n <Spinner\n color=\"hsl(0 0% 62%)\"\n thickness={2}\n trackColor=\"hsl(0 0% 97%)\"\n />\n ) : (\n unreadChannelCount > 0 && (\n <Badge size=\"sm\" radius=\"circle\">\n {unreadChannelCount}\n </Badge>\n )\n )}\n </StackView>\n </DrawerHeader>\n {channelsLoaded && (\n <ChannelList\n setActiveChannelOnMount={false}\n EmptyStateIndicator={ChannelListBlankState}\n filters={filters}\n List={List}\n // Infinite scroll implementation details may need to be revisited once we have real data to work with.\n // https://getstream.io/chat/docs/sdk/react/guides/channel-list-infinite-scroll/#what-to-take-into-consideration\n Paginator={InfiniteScroll}\n Preview={Preview}\n />\n )}\n </>\n )\n}\n","import { useEmojis } from './use_emojis'\n\nconst emojiNames = ['heart', 'pray', 'laughing', '+1', '-1']\n\nexport const useReactions = () => useEmojis(emojiNames)\n","import { useMemo } from 'react'\nimport { useEmojiContext } from \"stream-chat-react\"\n\ntype Emoji = Record<string, any>\n\nexport const useEmojis = (names: string[]): Emoji[] => {\n const { emojiConfig, EmojiIndex } = useEmojiContext();\n\n return useMemo(() => {\n const emojiIndex = new EmojiIndex(emojiConfig.emojiData);\n\n return names.reduce((acc: Emoji[], name) => {\n const emoji = emojiIndex.emojis[name]\n\n if (!emoji) {\n console.warn(`emoji for name \"${name}\" was not found`)\n return acc\n }\n\n return [...acc, emoji]\n }, [])\n }, [names])\n}\n","import React from \"react\"\nimport { ReactionSelector, ReactionSelectorProps } from \"stream-chat-react\"\n\nimport { useReactions } from \"./hooks\"\n\nexport const CustomReactionSelector = React.forwardRef(\n (\n props: ReactionSelectorProps,\n ref: React.ForwardedRef<HTMLDivElement | null>\n ) => {\n const reactionOptions = useReactions()\n\n return (\n <ReactionSelector\n {...props}\n ref={ref}\n reactionOptions={reactionOptions}\n />\n )\n }\n)\n","import React from 'react'\nimport { ReactionsList, ReactionsListProps } from \"stream-chat-react\"\n\nimport { useReactions } from './hooks'\n\nexport const CustomReactionsList = (props: ReactionsListProps) => {\n const reactionOptions = useReactions()\n\n return <ReactionsList {...props} reactionOptions={reactionOptions}/>\n}\n","import {\n Box,\n Button,\n Icon,\n StackView,\n Text,\n} from \"@planningcenter/tapestry-react\"\nimport { nanoid } from \"nanoid\"\nimport React, { useEffect, useState } from \"react\"\nimport { useDropzone } from \"react-dropzone\"\nimport { UploadButton } from \"react-file-utils\"\nimport {\n AttachmentPreviewList,\n ChatAutoComplete,\n EmojiPicker,\n EmojiPickerIcon,\n useChannelStateContext,\n useMessageInputContext,\n} from \"stream-chat-react\"\n\nimport colors from \"../../../../../colors\"\n\nexport const MessageInput = () => {\n const {\n closeEmojiPicker,\n emojiPickerIsOpen,\n handleEmojiKeyDown,\n handleSubmit,\n isUploadEnabled,\n maxFilesLeft,\n numberOfUploads,\n openEmojiPicker,\n text,\n uploadNewFiles,\n } = useMessageInputContext()\n\n const { multipleUploads } = useChannelStateContext()\n\n const { getRootProps, isDragActive, isDragReject } = useDropzone({\n disabled: !isUploadEnabled || maxFilesLeft === 0,\n multiple: multipleUploads,\n noClick: true,\n onDrop: uploadNewFiles,\n })\n\n const isInputChildOfModal = useIsInputChildOfModal()\n const wrapInputRef = useAutoFocus()\n\n return (\n <StackView\n {...getRootProps({\n borderColor: isInputChildOfModal ? \"transparent\" : \"separatorTertiary\",\n borderWidth: isInputChildOfModal ? 0 : 1,\n className: `custom-message-input-wrapper ${\n isInputChildOfModal ? \"is-modal-child\" : \"\"\n }`,\n marginHorizontal: isInputChildOfModal ? 0 : 1,\n position: \"relative\",\n radius: 8,\n refKey: \"innerRef\",\n })}\n >\n {isDragActive && <DropzoneUI isDragReject={isDragReject} />}\n {isUploadEnabled && !!numberOfUploads && <AttachmentPreviewList />}\n <Box innerRef={wrapInputRef}>\n <ChatAutoComplete placeholder=\"Send a message\" />\n </Box>\n <StackView\n alignment=\"center\"\n axis=\"horizontal\"\n distribution=\"space-between\"\n padding={1.5}\n spacing={1}\n >\n <StackView\n alignment=\"center\"\n axis=\"horizontal\"\n height=\"100%\"\n spacing={1}\n >\n <EmojiPickerUI\n closeEmojiPicker={closeEmojiPicker}\n emojiPickerIsOpen={emojiPickerIsOpen}\n handleEmojiKeyDown={handleEmojiKeyDown}\n openEmojiPicker={openEmojiPicker}\n />\n <FileUploadUI\n isUploadEnabled={isUploadEnabled}\n maxFilesLeft={maxFilesLeft}\n multipleUploads={multipleUploads}\n uploadNewFiles={uploadNewFiles}\n />\n </StackView>\n <Button\n alignSelf=\"center\"\n className=\"focus-visible\"\n color={colors.lightNeutral100}\n css={{\n \"&:active\": { backgroundColor: colors.interaction45 },\n \"&:hover\": { backgroundColor: colors.interaction50 },\n \"&[aria-disabled='true']\": {\n \"&:hover\": {\n backgroundColor: `${colors.lightNeutral81}`,\n },\n backgroundColor: colors.lightNeutral81,\n },\n backgroundColor: colors.interaction55,\n }}\n disabled={!numberOfUploads && !text.length}\n onClick={handleSubmit}\n title={isInputChildOfModal ? \"Save\" : \"Send\"}\n tabIndex={0}\n />\n </StackView>\n </StackView>\n )\n}\n\nconst FileUploadUI = ({\n isUploadEnabled,\n maxFilesLeft,\n multipleUploads,\n uploadNewFiles,\n}) => {\n const id = React.useMemo(() => nanoid(), [])\n const inputEl = document.getElementById(id)\n\n const handleKeyDown = (event) => {\n if (inputEl && (event.key === \"Enter\" || event.key === \" \")) {\n event.preventDefault()\n inputEl.click()\n }\n }\n return (\n <>\n <label htmlFor={id} tabIndex={0} onKeyDown={handleKeyDown}>\n <Icon\n color={colors.lightNeutral45}\n css={{\n \"&:active\": { fill: colors.lightNeutral12 },\n \"&:hover\": { fill: colors.lightNeutral24 },\n }}\n cursor=\"pointer\"\n height=\"20px\"\n name=\"churchCenter.photosO\"\n width=\"20px\"\n />\n </label>\n <UploadButton\n aria-label=\"File upload\"\n className=\"file-input\"\n disabled={!isUploadEnabled || maxFilesLeft === 0}\n id={id}\n multiple={multipleUploads}\n onFileChange={uploadNewFiles}\n />\n </>\n )\n}\n\nconst EmojiPickerUI = ({\n closeEmojiPicker,\n emojiPickerIsOpen,\n handleEmojiKeyDown,\n openEmojiPicker,\n}) => (\n <>\n <Button\n aria-label=\"Toggle emoji picker\"\n className=\"focus-visible\"\n css={{\n \"&:active\": { fill: colors.lightNeutral12 },\n \"&:hover\": { fill: colors.lightNeutral24 },\n }}\n fill={colors.lightNeutral45}\n onClick={emojiPickerIsOpen ? closeEmojiPicker : openEmojiPicker}\n onKeyDown={handleEmojiKeyDown}\n paddingHorizontal={0}\n size={\"sm\" as never}\n theme={false}\n tooltip=\"Pick an emoji\"\n >\n <Box width=\"23px\" height=\"23px\">\n <EmojiPickerIcon />\n </Box>\n </Button>\n <EmojiPicker small={true} />\n </>\n)\n\nconst DropzoneUI = ({ isDragReject }) => (\n <StackView\n alignment=\"center\"\n backgroundColor=\"surfaceTertiary\"\n borderColor={isDragReject ? \"error-dark\" : \"success-darker\"}\n borderRadius={8}\n borderStyle=\"dashed\"\n borderWidth={1}\n bottom={0}\n distribution=\"center\"\n left={0}\n position=\"absolute\"\n right={0}\n top={0}\n zIndex={10}\n >\n <Text\n color={isDragReject ? \"error-dark\" : \"success-darker\"}\n size={4}\n weight={600}\n >\n {isDragReject\n ? \"Some of the files will not be accepted\"\n : \"Drop your files here\"}\n </Text>\n </StackView>\n)\n\nconst useIsInputChildOfModal = () => {\n const [isChildOfModal, setIsChildOfModal] = useState(false)\n\n useEffect(() => {\n const modal = document.querySelector(\".str-chat__modal__inner\")\n const input = document.querySelector(\".custom-message-input-wrapper\")\n setIsChildOfModal(modal?.contains(input))\n }, [])\n\n return isChildOfModal\n}\n\nconst useAutoFocus = () => {\n const wrapInputRef = React.useRef(null)\n\n useEffect(() => {\n if (wrapInputRef.current) {\n const input = wrapInputRef.current?.querySelector(\"textarea\")\n input?.focus()\n input?.setSelectionRange(input?.value?.length, input?.value?.length)\n }\n }, [])\n\n return wrapInputRef\n}\n","import { Button, StackView } from \"@planningcenter/tapestry-react\"\nimport React, { useEffect, useState } from \"react\"\nimport { logChatPromiseExecution } from \"stream-chat\"\nimport {\n Channel,\n MessageInput as StreamMessageInput,\n MessageList,\n useChatContext,\n Window,\n} from \"stream-chat-react\"\n\nimport { DrawerHeading } from \"../../../../components\"\nimport { useChat } from \"../../hooks\"\nimport { noop } from '../../utils'\nimport { ChannelMetas } from \"../channel_metas\"\nimport { CustomReactionSelector } from \"./custom_reaction_selector\"\nimport { CustomReactionsList } from \"./custom_reactions_list\"\nimport { MessageInput } from \"./message_input\"\n\nexport const ChannelView = () => {\n const { client, channel } = useChatContext()\n const {\n closeDrawer,\n isChannelViewActive,\n switchToChannelDetailsView,\n switchToChannelListView,\n } = useChat()\n const title = channel?.data?.name || \"Channel name\"\n\n const [, updateCount] = useState(0)\n\n // force a render when the channel gets updated\n useEffect(() => {\n if (!channel) return noop\n\n const handleUpdate = (event) => {\n const isUpdated = channel && channel.cid === event.cid\n isUpdated && updateCount((c) => c + 1)\n }\n\n client.on(\"channel.updated\", handleUpdate)\n return () => client.off(\"channel.updated\", handleUpdate)\n }, [channel?.cid])\n\n return (\n <>\n <StackView\n alignment=\"baseline\"\n axis=\"horizontal\"\n padding={2}\n paddingTop={1}\n spacing={1}\n >\n <Button\n aria-label=\"Switch to chat list\"\n icon=\"general.leftChevron\"\n onClick={switchToChannelListView}\n size={\"sm\" as never} // TODO: Tapestry TS bug\n title=\"Back to chat list\"\n variant=\"naked\"\n />\n <StackView shrink={1}>\n <DrawerHeading truncate>{title}</DrawerHeading>\n <ChannelMetas channel={channel} />\n </StackView>\n <StackView axis=\"horizontal\" marginLeft=\"auto\" spacing={1}>\n <Button\n aria-label=\"Switch to conversation details\"\n icon=\"general.cog\"\n onClick={switchToChannelDetailsView}\n size={\"md\" as never} // TODO: Tapestry TS bug\n title=\"Conversation details\"\n variant=\"naked\"\n />\n <Button\n aria-label=\"Close drawer\"\n icon=\"general.x\"\n onClick={closeDrawer}\n size={\"md\" as never} // TODO: Tapestry TS bug\n title=\"Close drawer\"\n variant=\"naked\"\n />\n </StackView>\n </StackView>\n\n <StackView grow={1} paddingBottom={2} shrink={1}>\n <Channel\n Input={MessageInput}\n EditMessageInput={MessageInput}\n ReactionsList={CustomReactionsList}\n ReactionSelector={CustomReactionSelector}\n doMarkReadRequest={(channel) =>\n isChannelViewActive &&\n logChatPromiseExecution(channel.markRead(), \"mark read\")\n }\n >\n <Window>\n {/*\n TODO: explore implementing <ScrollContainer> in <MessageList>\n https://getstream.io/chat/docs/sdk/react/components/core-components/message_list/#internalinfinitescrollprops\n */}\n <MessageList messageActions={[\"edit\", \"delete\", \"react\"]} />\n <StreamMessageInput grow={true} />\n </Window>\n </Channel>\n </StackView>\n </>\n )\n}\n","import { useEffect, useMemo, useState } from \"react\"\n\nconst initialValues = { plan_id: null, teams: [] }\n\nexport const useServicesChatFilter = (isActive) => {\n const [values, setValues] = useState(initialValues)\n\n // temp cleanup since switch view seems to be rendering everything not just what is visible\n useEffect(() => {\n if (!isActive) {\n setValues(initialValues)\n }\n }, [isActive])\n\n\n const isPlansActive = useMemo(() => {\n const [first, ...rest] = values.teams\n return (\n Boolean(first) &&\n rest.every(\n ({ service_type_id }) => service_type_id === first.service_type_id\n )\n )\n }, [values.teams])\n\n useEffect(() => {\n if (isPlansActive) return\n\n setValues((prevValues) => ({ ...prevValues, plan_id: null }))\n }, [isPlansActive])\n\n const isFiltering = values.teams.length > 0\n\n return [values, setValues, isFiltering, isPlansActive]\n}\n","import {\n Heading,\n Spinner,\n StackView,\n Text,\n} from \"@planningcenter/tapestry-react\"\nimport React from \"react\"\n\nimport { ScrollContainer } from \"../../../../components\"\nimport { ChildNotice } from \"../child_notice\"\nimport { Person } from \"../person_list_item\"\nimport { ServicesChatOptionsFooter } from \"../services_chat_options\"\nimport { useChatPeople } from \"./hooks\"\n\nexport const People = ({ filter }) => {\n const { people, createChat, isCreating, isFetching } = useChatPeople(filter)\n\n const somePeople = people.length > 0\n const peopleCountLabel = people.length === 1 ? \"Person\" : \"People\"\n const childPeople = people.filter((p) => p.child)\n const someChildPeople = childPeople.length > 0\n\n return (\n <StackView grow={1}>\n <StackView grow={1} padding={2} paddingBottom={0} spacing={1}>\n <StackView alignment=\"center\" axis=\"horizontal\" spacing={1}>\n <Heading level={2}>\n {somePeople ? people.length : \"\"} {peopleCountLabel} selected\n </Heading>\n {isFetching && <Spinner size=\"sm\" />}\n </StackView>\n {somePeople ? (\n <>\n {someChildPeople && <ChildNotice childPeople={childPeople} />}\n <ScrollContainer>\n <StackView paddingBottom={2} spacing={2}>\n {people.map((person) => (\n <Person key={person.id} person={person} />\n ))}\n </StackView>\n </ScrollContainer>\n </>\n ) : (\n <StackView alignment=\"center\" grow={1} maxHeight={18}>\n <Text color=\"foregroundSecondary\">No Results</Text>\n </StackView>\n )}\n </StackView>\n <ServicesChatOptionsFooter\n handleStartChat={createChat}\n startChatDisabled={!somePeople}\n showSpinner={isCreating}\n />\n </StackView>\n )\n}\n","import { useEffect, useMemo, useRef,useState } from \"react\"\n\nimport { useChat, useChatApi } from \"../../../hooks\"\n\ninterface Source {\n id: number,\n type: string\n}\n\nexport interface Person {\n avatar: string | null\n child: boolean\n id: number\n name: string\n source: Source[]\n}\n\ninterface FilterParams {\n plan_id?: number,\n team_id: Array<number>\n}\n\ntype PeopleCache = {\n [key: string]: Person[]\n}\n\ninterface ChatPeople {\n createChat: () => void,\n isCreating: boolean,\n isFetching: boolean,\n people: Person[]\n}\n\nexport const useChatPeople = (filter): ChatPeople => {\n const [people, setPeople] = useState([])\n const [isCreating, setCreating] = useState(false)\n const [isFetching, setFetching] = useState(false)\n const cache = useRef<PeopleCache>({})\n\n const { findAndSwitchToChannel } = useChat()\n const api = useChatApi()\n\n const filterParams = useMemo(() => {\n const params: FilterParams = {\n team_id: filter.teams.map(({ team_id }) => team_id).sort(),\n }\n\n if (filter.plan_id) {\n params.plan_id = filter.plan_id\n }\n\n return params\n }, [filter])\n\n useEffect(() => {\n const getPeople = async (params) => {\n const key = JSON.stringify(params)\n const people =\n cache.current[key] ||\n (await fetchPeople(params).then((data) => data.people))\n\n cache.current[key] = people\n\n setPeople(people)\n }\n\n const fetchPeople = async (params) => {\n setFetching(true)\n const result = await api.services.get(\"chat\", {\n fields: { Chat: \"people\" },\n ...params,\n })\n setFetching(false)\n\n return result\n }\n\n getPeople(filterParams)\n }, [filterParams])\n\n return {\n createChat: async () => {\n setCreating(true)\n const { payload } = await api.services.get(\"chat\", {\n fields: { Chat: \"payload\" },\n ...filterParams,\n })\n api.chat.post(\"me/conversations\", { payload }).then(findAndSwitchToChannel)\n },\n isCreating,\n isFetching,\n people,\n }\n}\n","import {\n Icon,\n Input,\n Select,\n Spinner,\n StackView,\n Text,\n ToggleSwitch,\n} from \"@planningcenter/tapestry-react\"\nimport React, { useEffect, useMemo, useState } from \"react\"\n\nimport { useChatApi } from \"../../hooks\"\n\nconst toSelectOptions = ({ value, name }) => ({ label: name, value })\n\nexport const Plans = ({ onChange, isActive, values }) => {\n const [options, setOptions] = useState({})\n const [isEnabled, setEnabled] = useState(false)\n const [fetchingCount, setFetchingCount] = useState(0)\n const api = useChatApi()\n\n const isFetchable = isActive && isEnabled\n const isInvalid = !isActive && values.teams.length > 0\n\n useEffect(() => {\n if (isActive) return\n\n setEnabled(false)\n }, [isActive])\n\n useEffect(() => {\n if (!isFetchable) return\n\n values.teams.forEach(({ team_id }) => {\n if (options[team_id]) return\n\n setFetchingCount((c) => c + 1)\n\n api.services\n .get(\"chat\", { fields: { Chat: \"plans\" }, team_id })\n .then(({ plans }) => {\n setOptions((prevOptions) => ({ ...prevOptions, [team_id]: plans }))\n setFetchingCount((c) => c - 1)\n })\n })\n }, [values.teams, isFetchable])\n\n const availableOptions = useMemo(() => {\n const uniqOptions = values.teams.reduce(\n (acc, { team_id }) =>\n options[team_id]\n ? {\n ...acc,\n ...options[team_id].reduce(\n (obj, option) => ({\n ...obj,\n [option.value]: option,\n }),\n {}\n ),\n }\n : acc,\n {}\n )\n\n return Object.values(uniqOptions).map(toSelectOptions)\n }, [values.teams, options])\n\n return (\n <StackView spacing={1}>\n <StackView axis=\"horizontal\" alignItems=\"center\" spacing={1}>\n <StackView\n alignItems=\"center\"\n axis=\"horizontal\"\n marginRight=\"auto\"\n spacing={1}\n >\n <Input.InputLabel controls=\"filter-by-plan-select\" fontSize=\"1.2em\">\n Filter by plan\n </Input.InputLabel>\n {fetchingCount > 0 && <Spinner size=\"xs\" />}\n </StackView>\n <ToggleSwitch\n disabled={!isActive}\n isChecked={isEnabled}\n onClick={() => {\n setEnabled((e) => !e)\n onChange((prevValues) => ({\n ...prevValues,\n plan_id: null,\n }))\n }}\n />\n </StackView>\n {isEnabled ? (\n <Select\n id=\"filter-by-plan-select\"\n value={values.plan_id}\n defaultValue={null}\n emptyValue={\n availableOptions.length ? \"Choose a plan\" : \"No plans available\"\n }\n disabled={availableOptions.length < 1}\n options={availableOptions}\n onChange={({ value }) => {\n onChange((prevValues) => ({ ...prevValues, plan_id: value }))\n }}\n />\n ) : isInvalid ? (\n <StackView\n axis=\"horizontal\"\n alignItems=\"center\"\n spacing={2}\n padding={2}\n >\n <Icon\n color=\"foregroundSecondary\"\n name=\"general.exclamationTriangle\"\n size=\"lg\"\n />\n <Text size={5} color=\"foregroundSecondary\">\n Plan filtering is not possible using teams from multiple service\n types. Try choosing teams above with only one service type.\n </Text>\n </StackView>\n ) : null}\n </StackView>\n )\n}\n","import {\n Badge,\n Button,\n Highlight,\n Icon,\n Input,\n Spinner,\n StackView,\n Text,\n WrapView,\n} from \"@planningcenter/tapestry-react\"\nimport React, { useEffect, useRef,useState } from \"react\"\n\nimport { Combobox, Menu } from \"../\"\nimport { useTeamOptions } from \"./hooks\"\nimport { groupTeamOptions } from \"./utils\"\n\nconst SELECT_ALL_LIMIT = 10\n\nexport const Teams = ({ values, onChange, isActive }) => {\n const [searchTerm, setSearchTerm] = useState(\"\")\n const [selected, unselected, isLoading] = useTeamOptions(values, isActive)\n\n const ref = useRef<{ handleBlur?: Function }>()\n\n let index = 0\n\n const isSelectAll = { teams_i_lead: true }\n\n const unselectedGroups = groupTeamOptions(unselected, searchTerm)\n\n // temp cleanup since switch view seems to be rendering everything not just what is visible\n useEffect(() => {\n if (!isActive) {\n setSearchTerm(\"\")\n }\n }, [isActive])\n\n const groups = Object.entries(unselectedGroups)\n\n return (\n <StackView spacing={1}>\n <StackView axis=\"horizontal\" alignItems=\"center\" spacing={1}>\n <Input.InputLabel fontSize=\"1.2em\" controls=\"teams\">\n Teams\n </Input.InputLabel>\n {isLoading && <Spinner size=\"xs\" />}\n </StackView>\n <StackView spacing={1}>\n <WrapView spacing={1}>\n {selected.map((option) => (\n <Badge\n key={option.value.team_id}\n size=\"sm\"\n title={option.name}\n renderLeft={<Button title=\"remove\" icon=\"general.x\" />}\n onClick={() =>\n onChange((prevValues) => ({\n ...prevValues,\n teams: prevValues.teams.filter(\n ({ team_id }) => team_id !== option.value.team_id\n ),\n }))\n }\n />\n ))}\n </WrapView>\n <Combobox.Popover\n ref={ref}\n id=\"teams\"\n openOnFocus={true}\n closeOnSelect={true}\n onClear={() => setSearchTerm(\"\")}\n onChange={(e) => setSearchTerm(e.target.value)}\n onSelect={({ value }) =>\n onChange((prevValues) => ({\n ...prevValues,\n teams: [...prevValues.teams, value],\n }))\n }\n placeholder=\"Search teams\"\n renderLeft={<Icon name=\"general.search\" />}\n value={searchTerm}\n >\n {groups.length ? (\n groups.map(([groupName, groupOptions]) => {\n const items = groupOptions.map((option) => (\n <Combobox.Item key={index} index={index++} value={option}>\n <Highlight query={searchTerm} text={option.name} />\n </Combobox.Item>\n ))\n\n const tooManyOptionsForSelectAll =\n groupOptions.length > SELECT_ALL_LIMIT\n\n return Object.keys(unselectedGroups).length > 1 ? (\n <StackView key={groupName}>\n <StackView axis=\"horizontal\">\n <Menu.Heading axis=\"horizontal\">{groupName}</Menu.Heading>\n {isSelectAll[groupName] && (\n <StackView padding={1} marginLeft=\"auto\">\n <Button\n title=\"Select all\"\n size={\"xs\" as never}\n variant=\"outline\"\n disabled={tooManyOptionsForSelectAll}\n tooltip={{\n title: tooManyOptionsForSelectAll\n ? `Disabled when options would exceed ${SELECT_ALL_LIMIT}`\n : `select all in \"${groupName}\"`,\n }}\n onClick={() => {\n onChange((prevValues) => ({\n ...prevValues,\n teams: [\n ...prevValues.teams,\n ...groupOptions.map((option) => option.value),\n ],\n }))\n\n ref.current && ref.current.handleBlur()\n }}\n />\n </StackView>\n )}\n </StackView>\n {items}\n </StackView>\n ) : (\n items\n )\n })\n ) : (\n <Menu.Item>\n <Text>\n No matching teams for:{\" \"}\n <Text as=\"span\" inline italic>\n {`\"${searchTerm}\"`}\n </Text>\n </Text>\n </Menu.Item>\n )}\n </Combobox.Popover>\n </StackView>\n </StackView>\n )\n}\n","import { useEffect, useState } from \"react\"\n\nimport { useChatApi } from \"../../../hooks\"\nimport { TeamOptions } from \"../types\"\n\nexport const useTeamOptions = (\n values,\n isActive\n): [TeamOptions, TeamOptions, Boolean] => {\n const [options, setOptions] = useState([])\n const [isLoading, setLoading] = useState(false)\n\n const api = useChatApi()\n\n useEffect(() => {\n if (!isActive) return\n\n setLoading(true)\n\n api.services\n .get(\"chat\", { fields: { Chat: \"teams\" } })\n .then(({ teams }) => setOptions(teams))\n .finally(() => setLoading(false))\n }, [isActive])\n\n const [selected, unselected] = options.reduce(\n (acc, option) => {\n const isSelected = values.teams.some(\n ({ team_id }) => team_id === option.value.team_id\n )\n acc[isSelected ? 0 : 1].push(option)\n\n return acc\n },\n [[], []]\n )\n\n return [selected, unselected, isLoading]\n}\n","import { Heading, StackView, Text } from \"@planningcenter/tapestry-react\"\nimport React from \"react\"\n\nexport const PeopleBlankState = () => (\n <StackView grow={1}>\n <StackView alignItems=\"center\" axis=\"horizontal\" padding={2} spacing={1}>\n <Heading level={2}>People selected</Heading>\n </StackView>\n <StackView alignment=\"center\" grow={1} maxHeight={18} padding={2}>\n <Text color=\"foreground\" align=\"center\" size={4}>\n Search teams above to add people to the chat.\n </Text>\n </StackView>\n </StackView>\n)\n","import {\n Button,\n Divider,\n GridView,\n StackView,\n Text,\n} from \"@planningcenter/tapestry-react\"\nimport React from \"react\"\n\nimport { BUTTON_STYLE_BASE_OVERRIDES } from \"../constants\"\nimport { useChat } from \"../hooks\"\nimport { noop } from \"../utils\"\nimport { People, Plans, Teams } from \"./services\"\nimport { useServicesChatFilter } from \"./services/hooks\"\nimport { PeopleBlankState } from \"./services/people_blank_state\"\nimport { getPrimaryButtonStyleOverrides } from \"./services/utils\"\n\nexport const ServicesChatOptions = ({ isActive }) => {\n const [values, setValues, isFiltering, isPlansActive] =\n useServicesChatFilter(isActive)\n\n return (\n <StackView grow={1}>\n <StackView spacing={2} padding={2}>\n <Teams values={values} onChange={setValues} isActive={isActive} />\n <Plans values={values} onChange={setValues} isActive={isPlansActive} />\n </StackView>\n <Divider />\n {isFiltering ? (\n <People filter={values} />\n ) : (\n <>\n <PeopleBlankState />\n <ServicesChatOptionsFooter\n handleStartChat={noop}\n startChatDisabled={true}\n showSpinner={false}\n />\n </>\n )}\n </StackView>\n )\n}\n\nexport const ServicesChatOptionsFooter = ({\n handleStartChat,\n startChatDisabled,\n showSpinner,\n}) => {\n const { switchToChannelListView } = useChat()\n return (\n <>\n <Divider />\n <StackView\n alignment=\"center\"\n grow={0}\n marginHorizontal=\"auto\"\n padding={2}\n spacing={2}\n >\n <Text align=\"center\" size={5} color=\"foregroundSecondary\">\n Chat groups are dynamically updated based on the settings above. Any\n volunteer changes made in Services to a team or plan will be reflected\n in this group.\n </Text>\n <GridView columns=\"auto 1fr\" spacing={1} width=\"100%\">\n <Button\n aria-label=\"Back to channel list\"\n onClick={switchToChannelListView}\n variant=\"outline\"\n {...BUTTON_STYLE_BASE_OVERRIDES}\n >\n Cancel\n </Button>\n <Button\n aria-label=\"Start chat\"\n disabled={startChatDisabled}\n onClick={handleStartChat}\n {...getPrimaryButtonStyleOverrides({\n disabled: startChatDisabled,\n spinner: showSpinner,\n })}\n >\n Start chat\n </Button>\n </GridView>\n </StackView>\n </>\n )\n}\n","import { StackView } from \"@planningcenter/tapestry-react\"\nimport React from \"react\"\n\nimport { DrawerHeading } from \"../../../components\"\nimport { useChat } from \"../hooks\"\nimport { ServicesChatOptions } from \"./services_chat_options\"\n\nexport const NewChatView = () => {\n const { isNewChatViewActive } = useChat()\n\n return (\n <>\n <StackView\n alignment=\"center\"\n axis=\"horizontal\"\n spacing={1}\n padding={2}\n paddingTop={1}\n >\n <DrawerHeading truncate>New Chat</DrawerHeading>\n </StackView>\n <ServicesChatOptions isActive={isNewChatViewActive} />\n </>\n )\n}\n","import {\n Combobox as TRCombobox,\n CommonComponent,\n Input as TRInput,\n Menu as TRMenu,\n} from \"@planningcenter/tapestry-react\"\n\nexport { ChannelDetailsView } from './channel_details_view'\nexport { ChannelListView } from \"./channel_list_view\"\nexport { ChannelView } from \"./channel_view\"\nexport { NewChatView } from \"./new_chat_view\"\n\nexport const Combobox = TRCombobox as typeof TRCombobox & {\n Item: CommonComponent,\n Popover: CommonComponent\n}\n\nexport const Menu = TRMenu as typeof TRMenu & {\n Heading: CommonComponent\n Item: CommonComponent\n}\n\nexport const Input = TRInput as typeof TRInput & {\n Inline: CommonComponent\n}\n","import { Spinner, StackView } from \"@planningcenter/tapestry-react\"\nimport React, { useEffect, useState } from \"react\"\nimport { Chat as StreamChat, useChatContext } from \"stream-chat-react\"\n\nimport { DrawerHeader, DrawerHeading, SwitchView } from \"../../components\"\nimport { ToolbarTool } from \"../../types\"\nimport { ChatApiProvider } from \"./chat_api_context\"\nimport { ChatProvider } from \"./chat_context\"\nimport {\n ChannelDetailsView,\n ChannelListView,\n ChannelView,\n NewChatView,\n} from \"./components\"\nimport { useClient } from \"./hooks\"\n\nconst ChatController = ({ closeDrawer, children }) => {\n const { client, setActiveChannel } = useChatContext()\n\n const [actionsOpenForChannel, setActionsOpenForChannel] =\n React.useState(false)\n const [activeIndex, setActiveIndex] = React.useState(0)\n\n const switchToChannelListView = () => setActiveIndex(0)\n const switchToNewChatView = () => setActiveIndex(1)\n const switchToChannelView = () => setActiveIndex(2)\n const switchToChannelDetailsView = () => setActiveIndex(3)\n\n const findAndSwitchToChannel = async ({ stream_channel_id: id }) => {\n const [channel] = await client.queryChannels({ id: { $eq: id } })\n\n if (!channel) return\n\n setActiveChannel(channel)\n switchToChannelView()\n }\n\n useEffect(() => closeDrawer, [])\n\n const isNewChatViewActive = activeIndex === 1\n const isChannelViewActive = activeIndex === 2\n const isChannelDetailsViewActive = activeIndex === 3\n\n return (\n <ChatProvider\n value={{\n actionsOpenForChannel,\n closeDrawer,\n findAndSwitchToChannel,\n isChannelDetailsViewActive,\n isChannelViewActive,\n isNewChatViewActive,\n setActionsOpenForChannel,\n switchToChannelDetailsView,\n switchToChannelListView,\n switchToChannelView,\n switchToNewChatView,\n }}\n >\n <SwitchView activeIndex={activeIndex}>{children}</SwitchView>\n </ChatProvider>\n )\n}\n\nconst useUnreadChannelCount = (client) => {\n const [count, setCount] = useState(() => client.user.unread_channels)\n\n useEffect(() => {\n const handleChange = (e) => {\n if (e.unread_channels !== undefined) {\n setCount(e.unread_channels)\n }\n }\n\n client.on(handleChange)\n\n return () => {\n client.off(handleChange)\n }\n }, [client])\n\n return count\n}\n\nconst ChatTool = ({ closeDrawer, env, chatStreamUser }) => {\n const chatClient = useClient(chatStreamUser)\n\n return chatClient ? (\n <ChatComponent\n chatClient={chatClient}\n closeDrawer={closeDrawer}\n env={env}\n />\n ) : (\n <DrawerHeader closeDrawer={closeDrawer}>\n <StackView axis=\"horizontal\" spacing={1}>\n <DrawerHeading>Chat</DrawerHeading>\n <Spinner\n color=\"hsl(0 0% 62%)\"\n thickness={2}\n trackColor=\"hsl(0 0% 97%)\"\n />\n </StackView>\n </DrawerHeader>\n )\n}\n\nconst ChatComponent = ({ chatClient, closeDrawer, env }) => {\n const unreadChannelCount = useUnreadChannelCount(chatClient)\n\n return (\n <StreamChat client={chatClient} theme=\"str-chat__theme-light\">\n <ChatApiProvider env={env}>\n <ChatController closeDrawer={closeDrawer}>\n <ChannelListView\n closeDrawer={closeDrawer}\n client={chatClient}\n unreadChannelCount={unreadChannelCount}\n />\n <NewChatView />\n <ChannelView />\n <ChannelDetailsView />\n </ChatController>\n </ChatApiProvider>\n </StreamChat>\n )\n}\n\nconst Chat: ToolbarTool = {\n component: ChatTool,\n icons: {\n active: \"general.textMessage\",\n static: \"general.outlinedTextMessage\",\n },\n name: \"Chat\",\n}\n\nexport { Chat }\n","import React from \"react\"\nimport { StreamChat } from \"stream-chat\"\n\nimport { StreamChatGenerics } from '../types'\nimport { noop } from \"../utils\"\n\nexport const useClient = streamUser => {\n const [chatClient, setChatClient] = React.useState<StreamChat<StreamChatGenerics> | null>(null)\n\n React.useEffect(() => {\n if (!streamUser) return noop\n\n // prevents application from setting stale client (user changed, for example)\n let didUserConnectInterrupt = false\n\n const client = new StreamChat<StreamChatGenerics>(streamUser.api_key)\n\n const connectionPromise = client\n .connectUser({ id: streamUser.id }, streamUser.token)\n .then(() => {\n if (!didUserConnectInterrupt) setChatClient(client)\n })\n\n return () => {\n didUserConnectInterrupt = true\n setChatClient(null)\n // wait for connection to finish before initiating closing sequence\n connectionPromise\n .then(() => client.disconnectUser())\n .then(() => {\n console.log(\"connection closed\")\n })\n }\n }, [streamUser?.token])\n\n return chatClient\n}\n","import React from \"react\"\n\nimport colors from \"../colors\"\n\nconst Eyebrow = ({\n dark,\n style,\n ...props\n}: {\n children?: React.ReactNode\n dark: boolean\n style?: object\n}) => (\n <div\n style={{\n color: dark ? colors.lightNeutral62 : colors.lightNeutral24,\n fontSize: \"10px\",\n fontWeight: 400,\n textTransform: \"uppercase\",\n ...style,\n }}\n {...props}\n />\n)\n\nexport default Eyebrow\n","import datetimeFmt from \"@churchcenter/datetime-fmt\"\nimport React from \"react\"\n\nimport colors from \"../colors\"\nimport useHover from \"../hooks/use_hover\"\nimport useStore from \"../hooks/use_store\"\nimport { Notification } from \"../interfaces\"\nimport { fontFamily } from \"../styles\"\nimport Eyebrow from \"./eyebrow\"\nimport HoverableListItem from \"./hoverable_list_item\"\n\nconst MarkReadDot = ({\n isRead = false,\n onClick,\n}: {\n isRead?: boolean\n onClick: any\n}) => {\n const hoverRef = React.useRef(null)\n const isHover = useHover(hoverRef)\n\n return (\n <div\n ref={hoverRef}\n style={{\n alignItems: \"center\",\n display: \"flex\",\n height: \"12px\",\n justifyContent: \"center\",\n width: \"12px\",\n }}\n {...{ onClick }}\n >\n <svg height=\"12\" viewBox=\"0 0 12 12\" width=\"12\">\n <title>unread dot</title>\n <circle\n cx=\"6\"\n cy=\"6\"\n fill={isHover ? colors.interaction66 : colors.lightNeutral81}\n r=\"6\"\n style={{ transition: \"all 0.2s\" }}\n />\n <circle cx=\"6\" cy=\"6\" fill={colors.lightNeutral100} r=\"5\" />\n {!isRead && <circle cx=\"6\" cy=\"6\" r=\"4\" fill={colors.interaction66} />}\n </svg>\n </div>\n )\n}\n\nconst NotificationItem = ({\n mobile = false,\n isLast,\n onMarkAsRead = async () => Promise.resolve({}),\n onToggleRead,\n showBottomBorder,\n notification,\n}: {\n isLast?: boolean\n mobile?: boolean\n notification: Notification\n onMarkAsRead?: (notification: Notification) => Promise<any>\n onToggleRead: any\n showBottomBorder?: boolean\n}) => {\n const { appName, createdAt, isRead, link, title } = notification\n const { organizationTimeZone } = useStore()\n\n const [isActive, setIsActive] = React.useState(false)\n\n const appColors = {\n Calendar: \"9 61% 50%\",\n \"Check-Ins\": \"283 22% 48%\",\n Giving: \"43 88% 64%\",\n Groups: \"17 96% 62%\",\n People: \"220 74% 57%\",\n Publishing: \"220 12% 31%\",\n Registrations: \"175 36% 43%\",\n Services: \"88 45% 41%\",\n }\n\n const handleDotClick = (e) => {\n e.preventDefault()\n e.stopPropagation()\n onToggleRead()\n }\n\n const handleClick = async (_e) => {\n setIsActive(true)\n await onMarkAsRead(notification)\n window.location.href = link\n }\n\n const datetimeFmtOptions = { style: \"relative\" } as {\n style?: string\n timeZone?: string\n }\n if (organizationTimeZone) {\n datetimeFmtOptions.timeZone = organizationTimeZone\n }\n\n return (\n <HoverableListItem\n active={isActive}\n data-turbolinks={false}\n href={link}\n onClick={handleClick}\n style={{\n alignItems: \"flex-start\",\n borderBottom:\n showBottomBorder || !isLast\n ? `1px solid ${\n mobile ? colors.lightNeutral24 : colors.lightNeutral93\n }`\n : \"none\",\n cursor: \"pointer\",\n display: \"flex\",\n overflow: \"hidden\",\n padding: \"12px 16px\",\n textDecoration: \"none\",\n verticalAlign: \"middle\",\n ...fontFamily,\n }}\n >\n <div\n style={{\n display: \"flex\",\n flexDirection: \"column\",\n flexGrow: 1,\n justifyContent: \"center\",\n }}\n >\n <div\n style={{\n alignItems: \"center\",\n borderLeft: `4px solid hsl(${appColors[appName] || \"0 0% 81%\"} / ${\n isRead ? \"40%\" : \"100%\"\n }`,\n display: \"flex\",\n marginBottom: \"10px\",\n paddingLeft: \"8px\",\n }}\n >\n <div style={{ flexGrow: 1, marginRight: \"16px\" }}>\n <Eyebrow\n dark={mobile}\n style={{ marginBottom: \"6px\", userSelect: \"none\" }}\n >\n {appName}\n </Eyebrow>\n <h1\n style={{\n color: mobile ? colors.lightNeutral88 : colors.darkNeutral12,\n fontSize: \"14px\",\n fontWeight: 500,\n lineHeight: \"1.3em\",\n margin: 0,\n userSelect: \"none\",\n }}\n >\n {title}\n </h1>\n </div>\n {!mobile && <MarkReadDot onClick={handleDotClick} {...{ isRead }} />}\n </div>\n <div\n style={{\n color: mobile ? colors.lightNeutral62 : colors.lightNeutral24,\n fontSize: \"12px\",\n paddingLeft: \"12px\",\n userSelect: \"none\",\n }}\n >\n {datetimeFmt.datetime(createdAt, datetimeFmtOptions)}\n </div>\n </div>\n </HoverableListItem>\n )\n}\n\nexport default NotificationItem\n","import { RefObject, useEffect, useState } from \"react\"\n\nfunction useHover<T extends HTMLElement = HTMLElement>(\n elementRef: RefObject<T>\n): boolean {\n const [value, setValue] = useState<boolean>(false)\n\n const handleMouseEnter = () => setValue(true)\n const handleMouseLeave = () => setValue(false)\n\n useEffect(() => {\n const node = elementRef?.current\n if (!node) return undefined\n\n node.addEventListener(\"mouseenter\", handleMouseEnter)\n node.addEventListener(\"mouseleave\", handleMouseLeave)\n\n return () => {\n node.removeEventListener(\"mouseenter\", handleMouseEnter)\n node.removeEventListener(\"mouseleave\", handleMouseLeave)\n }\n }, [elementRef])\n\n return value\n}\n\nexport default useHover\n","import { Heading, StackView, Text } from \"@planningcenter/tapestry-react\"\nimport React from \"react\"\n\nimport { BlankStateIcon } from \"../symbols\"\n\nconst NotificationsMenuBlankState = ({\n context,\n dark = false,\n description,\n title = \"No notifications\",\n}: {\n context?: string\n dark?: boolean\n description: string\n style?: object\n title?: string\n}) => (\n <StackView alignment=\"center\" distribution=\"center\" padding={4}>\n <BlankStateIcon id={context} {...{ dark }} />\n <Heading\n color={dark ? \"#fafafa\" : \"#3d3d3d\"}\n fontWeight={500}\n marginTop={1}\n size={3}\n >\n {title}\n </Heading>\n <Text align=\"center\" color={dark ? \"#fafafa\" : \"#3d3d3d\"} size={4}>\n {description}\n </Text>\n </StackView>\n)\n\nexport default NotificationsMenuBlankState\n","import pcoUrl, * as PCO_URL from \"@planningcenter/url\"\nimport React from \"react\"\nimport { ChannelSubscription } from \"@planningcenter/jolt-client\"\n\nimport apiRequest, { defaultFetch, railsCsrfFetch } from \"../api_request\"\nimport {\n JoltMessage,\n JoltMessageNotificationDataPayload,\n Notification,\n} from \"../interfaces\"\nimport { useJoltEffect } from \"./jolt\"\n\nconst notificationsOrganizer = (\n notifications: Notification[]\n): { read: Notification[]; unread: Notification[] } => {\n const { read, unread } = [...notifications]\n .sort((a: Notification, b: Notification) => {\n return a.createdAt < b.createdAt ? 1 : -1\n })\n .reduce(\n (acc, notification) => {\n return notification.isRead\n ? { ...acc, read: [...acc.read, notification] }\n : { ...acc, unread: [...acc.unread, notification] }\n },\n { read: [], unread: [] }\n )\n return { read, unread }\n}\n\nconst buildNotificationFromApiResponse = (resp, json): Notification => {\n const findInIncluded = ({ type, id }, included) => {\n return included.find((i) => {\n return i.type === type && i.id === id\n })\n }\n\n const appName: string = findInIncluded(\n resp.relationships.app.data,\n json.included\n )?.attributes?.name\n\n // There is technically the possibility that there are multiple web payloads\n // returned from the API endpoint. However, at this point I'm not sure in\n // which situations that would be the case. For v1 of this feature, we'll\n // assume that there is only one web payload we need to worry about and it is\n // the first in the array that is returned.\n const notificationData = JSON.parse(\n findInIncluded(\n {\n id: resp?.relationships?.web_payloads?.data[0]?.id,\n type: \"Payload\",\n },\n json.included\n )?.attributes?.content\n )\n\n return {\n appName,\n createdAt: new Date(resp.attributes.created_at),\n id: resp.id,\n isRead: resp.attributes.read_at?.length > 0,\n link: notificationData?.link,\n title: notificationData?.title,\n }\n}\n\nexport type NotificationsHookProps = {\n enabled?: boolean\n env: PCO_URL.Environment\n joltChannel: ChannelSubscription\n}\n\nconst useNotifications = ({\n enabled,\n env,\n joltChannel,\n}: NotificationsHookProps): {\n handleMarkAllAsRead: () => any\n handleMarkAsRead: (notification: Notification) => Promise<any>\n handleToggleRead: (notification: Notification) => Promise<any>\n hasError: boolean\n isLoading: boolean\n read: Notification[]\n unread: Notification[]\n} => {\n const [notifications, setNotifications]: [\n Notification[],\n React.Dispatch<React.SetStateAction<Notification[]>>\n ] = React.useState([])\n\n const [isLoading, setIsLoading] = React.useState(true)\n const [hasError, setHasError] = React.useState(false)\n const { read, unread } = notificationsOrganizer(notifications)\n\n const fetchNotifications = () => {\n try {\n setHasError(false)\n apiRequest(\n defaultFetch,\n `${pcoUrl(env)(\n \"api\"\n )}/notifications/v2/me/notifications?include=app,web_payloads&per_page=100&order=read_at,-created_at`\n ).then(({ json }) => {\n const notifications = json.data.map((resp) =>\n buildNotificationFromApiResponse(resp, json)\n )\n\n setIsLoading(false)\n setNotifications(notifications)\n })\n } catch (exception) {\n setHasError(true)\n console.error(\n \"topbar encountered error when fetching all notifications\",\n exception\n )\n }\n }\n\n React.useEffect(() => {\n if (enabled) {\n fetchNotifications()\n }\n }, [enabled])\n\n const fetchNotification = async (id: string) => {\n try {\n setHasError(false)\n return apiRequest(\n defaultFetch,\n `${pcoUrl(env)(\n \"api\"\n )}/notifications/v2/me/notifications/${id}?include=app,web_payloads`\n ).then(({ json }) => json)\n } catch (exception) {\n setHasError(true)\n console.error(\n \"topbar encountered error when fetching a single notification\",\n exception\n )\n }\n }\n\n const extractPayloadFromJoltMessage = (\n notification: JoltMessage\n ): JoltMessageNotificationDataPayload => JSON.parse(notification.data)\n\n const updateStateFromJoltMessage = React.useCallback(\n (message: JoltMessage) => {\n try {\n const joltMessageNotificationDataPayload =\n extractPayloadFromJoltMessage(message)\n\n fetchNotification(joltMessageNotificationDataPayload.data.id).then(\n (resp) => {\n const notification = buildNotificationFromApiResponse(\n resp.data,\n resp\n )\n\n setNotifications((notifications) => [\n ...notifications.filter(\n (candidate) => candidate.id !== notification.id\n ),\n notification,\n ])\n }\n )\n } catch (exception) {\n console.error(\n \"topbar encountered error when updating state from jolt message\",\n exception\n )\n }\n },\n [\n buildNotificationFromApiResponse,\n extractPayloadFromJoltMessage,\n fetchNotifications,\n read,\n setNotifications,\n unread,\n ]\n )\n\n const removeNotification = React.useCallback(\n (message: JoltMessage) => {\n const joltMessageNotificationDataPayload =\n extractPayloadFromJoltMessage(message)\n const newNotifications = notifications.filter(\n (candidate) =>\n candidate.id !== joltMessageNotificationDataPayload.data.id\n )\n setNotifications(newNotifications)\n },\n [extractPayloadFromJoltMessage, notifications, setNotifications]\n )\n\n useJoltEffect(\n enabled ? joltChannel : undefined,\n \"notifications.v2.events.notification.created\",\n updateStateFromJoltMessage\n )\n\n useJoltEffect(\n enabled ? joltChannel : undefined,\n \"notifications.v2.events.notification.updated\",\n updateStateFromJoltMessage\n )\n\n useJoltEffect(\n enabled ? joltChannel : undefined,\n \"notifications.v2.events.notification.destroyed\",\n removeNotification\n )\n\n const markAsReadOrUnread = async (\n notificationIds: string[],\n readOrUnread: \"read\" | \"unread\"\n ) => {\n const included = notificationIds.reduce(\n (acc, id: string) => [\n ...acc,\n {\n attributes: { action: readOrUnread },\n id,\n type: \"graph_notification\",\n },\n ],\n []\n )\n\n return apiRequest(\n railsCsrfFetch,\n `${pcoUrl(env)(\"api\")}/notifications/v2/me/bulk_update`,\n {\n data: {\n data: {\n attributes: {},\n relationships: {\n notifications: {\n data: {\n source: \"/included/graph_notification/*\",\n },\n },\n },\n type: \"BulkUpdate\",\n },\n included,\n },\n method: \"POST\",\n }\n ).then((e) => {\n if (!e.ok) {\n // TODO: show an alert or something?\n\n setIsLoading(false)\n setHasError(true)\n // Rollback any optimistic UI updates\n setNotifications((notifications) =>\n notifications.map((n) =>\n notificationIds.includes(n.id) ? { ...n, isRead: !n.isRead } : n\n )\n )\n }\n })\n }\n\n const handleToggleRead = async (notification: Notification) => {\n const action = notification.isRead ? \"unread\" : \"read\"\n\n // optimistic UI update\n setNotifications((notifications) =>\n notifications.map((n) =>\n notification.id == n.id ? { ...n, isRead: action === \"read\" } : n\n )\n )\n\n return markAsReadOrUnread([notification.id], action)\n }\n\n const handleMarkAsRead = async (notification: Notification) => {\n return markAsReadOrUnread([notification.id], \"read\")\n }\n\n const handleMarkAllAsRead = () => {\n const unreadIds = unread.map((n) => n.id)\n\n // optimistic UI update\n setNotifications((notifications) =>\n notifications.map((n) =>\n unreadIds.includes(n.id) ? { ...n, isRead: true } : n\n )\n )\n\n markAsReadOrUnread(\n unread.map((u: Notification) => u.id),\n \"read\"\n )\n }\n\n return {\n handleMarkAllAsRead,\n handleMarkAsRead,\n handleToggleRead,\n hasError,\n isLoading,\n read,\n unread,\n }\n}\n\nexport default useNotifications\n","import { Heading, Spinner, StackView } from \"@planningcenter/tapestry-react\"\nimport React from \"react\"\nimport { Transition, TransitionGroup } from \"react-transition-group\"\n\nimport { default as themeColors } from \"../../colors\"\nimport NotificationItem from \"../../components/notification_item\"\nimport NotificationsMenuBlankState from \"../../components/notifications_menu_blank_state\"\nimport { Notification } from \"../../interfaces\"\nimport store from \"../../store\"\nimport { ExclamationTriangle } from \"../../symbols\"\nimport { DrawerHeader, DrawerHeading, ScrollContainer } from \"../components\"\nimport { ToolbarTool } from \"../types\"\nimport useNotifications from \"../../hooks/use_notifications\"\n\nconst SectionHeaderButton = ({\n disabled,\n onClick,\n title,\n ...props\n}: {\n disabled?: boolean\n onClick: any\n title: string\n}) => (\n <StackView\n color={disabled ? themeColors.lightNeutral62 : themeColors.interaction66}\n cursor={disabled ? \"default\" : \"pointer\"}\n fontSize={5}\n fontWeight={600}\n userSelect=\"none\"\n onClick={!disabled && onClick}\n {...props}\n >\n {title}\n </StackView>\n)\n\nconst SectionHeaderTitle = ({\n ...props\n}: {\n children?: React.ReactNode\n padding?: number\n}) => (\n <Heading\n color={themeColors.lightNeutral12}\n lineHeight={2}\n size={5}\n textTransform=\"uppercase\"\n userSelect=\"none\"\n {...props}\n />\n)\n\nfunction NotificationsComponent({ closeDrawer }) {\n const [showRead, setShowRead] = React.useState(false)\n\n const duration = 300\n\n const defaultStyle = { transition: `opacity ${duration}ms ease-in-out` }\n\n const transitionStyles = {\n entered: { opacity: 1 },\n entering: { opacity: 0.2 },\n }\n\n const { env, enabled, joltChannel } = store.getState()[\"notifications\"]\n\n const {\n handleMarkAllAsRead,\n handleMarkAsRead,\n handleToggleRead,\n hasError,\n isLoading,\n read,\n unread,\n } = useNotifications({ env, enabled, joltChannel })\n\n return (\n <>\n <DrawerHeader closeDrawer={closeDrawer}>\n <StackView spacing={0.5}>\n <StackView alignment=\"center\" axis=\"horizontal\" spacing={1}>\n <DrawerHeading>Notifications</DrawerHeading>\n {isLoading && (\n <Spinner\n color=\"hsl(0 0% 62%)\"\n thickness={2}\n trackColor=\"hsl(0 0% 97%)\"\n />\n )}\n {hasError && (\n <ExclamationTriangle fill=\"hsl(8 60% 47%)\" size={16} />\n )}\n </StackView>\n {read.length > 0 && (\n <SectionHeaderButton\n onClick={() => setShowRead((showRead) => !showRead)}\n title={`${showRead ? \"Hide\" : \"Show\"} read`}\n />\n )}\n </StackView>\n </DrawerHeader>\n <ScrollContainer>\n <StackView alignment=\"stretch\" spacing={2}>\n <div\n style={{\n boxSizing: \"border-box\",\n display: \"flex\",\n flexDirection: \"column\",\n justifyContent: \"space-between\",\n margin: 0,\n padding: \"4px 0\",\n }}\n >\n {!isLoading && unread.length === 0 && (\n <NotificationsMenuBlankState\n context=\"toolbar\"\n description={`When you have ${\n read.length > 0 ? \"unread \" : \"\"\n }notifications they will show up here.`}\n {...(read.length > 0 && { title: \"No unread notifications\" })}\n />\n )}\n {unread.length > 0 && (\n <StackView\n axis=\"horizontal\"\n alignment=\"center\"\n distribution=\"space-between\"\n padding={2}\n >\n <SectionHeaderTitle>Unread</SectionHeaderTitle>\n {unread.length > 0 && (\n <SectionHeaderButton\n onClick={() => handleMarkAllAsRead()}\n title={`Mark ${unread.length} as read`}\n />\n )}\n </StackView>\n )}\n <TransitionGroup exit={false}>\n {unread.map((notification: Notification, idx) => (\n <Transition key={notification.id} timeout={0}>\n {(state) => (\n <div\n style={{\n ...defaultStyle,\n ...transitionStyles[state],\n }}\n >\n <NotificationItem\n isLast={unread.length === idx + 1}\n key={notification.id}\n onMarkAsRead={handleMarkAsRead}\n onToggleRead={() => handleToggleRead(notification)}\n showBottomBorder={read.length > 0}\n {...{ notification }}\n />\n </div>\n )}\n </Transition>\n ))}\n </TransitionGroup>\n {read.length > 0 && showRead && (\n <>\n <SectionHeaderTitle padding={2}>Read</SectionHeaderTitle>\n <TransitionGroup exit={false}>\n {read.map((notification: Notification) => (\n <Transition key={notification.id} timeout={0}>\n {(state) => (\n <div\n style={{\n ...defaultStyle,\n ...transitionStyles[state],\n }}\n >\n <div style={{ opacity: 0.6 }}>\n <NotificationItem\n key={notification.id}\n onToggleRead={() =>\n handleToggleRead(notification)\n }\n showBottomBorder\n {...{ notification }}\n />\n </div>\n </div>\n )}\n </Transition>\n ))}\n </TransitionGroup>\n </>\n )}\n </div>\n </StackView>\n </ScrollContainer>\n </>\n )\n}\n\nconst Notifications: ToolbarTool = {\n component: NotificationsComponent,\n icons: {\n active: \"toolbar.notification\",\n static: \"toolbar.notificationO\",\n },\n name: \"Notifications\",\n}\n\nexport { Notifications }\n","import {\n components,\n UiExtensionFirstPartyComponent,\n} from \"@planningcenter/add-ons\"\nimport Jolt from \"@planningcenter/jolt-client\"\nimport pcoUrl, { Environment } from \"@planningcenter/url\"\nimport React, { useCallback, useState } from \"react\"\n\nimport apiRequest, { railsCsrfFetch } from \"../../api_request\"\nimport { useJoltChannelSubscription, useJoltEffect } from \"../../hooks/jolt\"\nimport { JoltMessage } from \"../../interfaces\"\nimport { DrawerHeader, DrawerHeading, SwitchView } from \"../components\"\nimport { ToolbarTool } from \"../types\"\n\nconst { LoadingIndicator, StackView } = components\n\ntype TasksComponentProps = {\n closeDrawer: () => unknown\n env: Environment\n joltPromise: () => Promise<Jolt | void>\n}\n\ntype JoltChannelRequest = {\n channelName: string\n subscribeUrl: string\n}\n\nfunction TasksComponent({\n closeDrawer,\n env,\n joltPromise,\n}: TasksComponentProps) {\n const source = `${pcoUrl(env)(\"home\" as any)}/addons/toolbar.tasks.list.js`\n\n const [latestJoltMessage, setLatestJoltMessage] = useState<JoltMessage & { timestamp: number }>()\n const [requestedJoltChannel, setRequestedJoltChannel] = useState<JoltChannelRequest>()\n\n const joltChannel = useJoltChannelSubscription({\n channelName: requestedJoltChannel?.channelName,\n enabled: !!requestedJoltChannel,\n env,\n fetchSubscribeToken: async (connection_id) => {\n const subscribeUrl = requestedJoltChannel.subscribeUrl\n\n const response = await apiRequest(railsCsrfFetch, subscribeUrl, {\n data: { data: { attributes: { connection_id } } },\n method: \"POST\",\n })\n\n return response.json.data.id\n },\n joltPromise,\n })\n\n const handleJoltMessage = useCallback((message: JoltMessage) => {\n setLatestJoltMessage({ ...message, timestamp: (new Date()).getTime() })\n }, [])\n\n useJoltEffect(joltChannel, \"\", handleJoltMessage)\n\n function pendoTrackEvent(event: string, properties = {}) {\n if (!window?.pendo) {\n return console.warn(\"`window.pendo` is undefined\")\n }\n window.pendo.track(event, properties)\n }\n\n return (\n <UiExtensionFirstPartyComponent\n grow={1}\n display=\"flex\"\n extensionId=\"2\"\n url={source}\n loadingFallback={\n <StackView flex={1} axis=\"vertical\">\n <DrawerHeader closeDrawer={closeDrawer}>\n <StackView axis=\"horizontal\" spacing={1}>\n <DrawerHeading>Tasks</DrawerHeading>\n <LoadingIndicator />\n </StackView>\n </DrawerHeader>\n </StackView>\n }\n additionalComponents={{ DrawerHeader, DrawerHeading, SwitchView }}\n args={{\n closeDrawer,\n latestJoltMessage,\n requestJoltChannel: setRequestedJoltChannel,\n trackPendo: pendoTrackEvent,\n }}\n />\n )\n}\n\nconst Tasks: ToolbarTool = {\n component: TasksComponent,\n icons: {\n active: \"toolbar.checklist\",\n static: \"toolbar.checklistO\",\n },\n name: \"Tasks\",\n}\n\nexport { Tasks }\n","import { UiExtensionDataContext } from \"@planningcenter/add-ons\"\nimport Jolt from \"@planningcenter/jolt-client\"\nimport {\n Avatar,\n Box,\n Button,\n Divider,\n Icon,\n StackView,\n ThemeProvider,\n} from \"@planningcenter/tapestry-react\"\nimport pcoUrl, { Environment } from \"@planningcenter/url\"\nimport React from \"react\"\n\nimport { default as themeColors } from \"../colors\"\nimport getLoginProfilePath from \"../get_login_profile_path\"\nimport useMediaQuery from \"../hooks/use_media_query\"\nimport useStore from \"../hooks/use_store\"\nimport { useChatStreamUser } from './tools/chat/hooks'\nimport { topbarTheme } from \"../theme\"\nimport { Drawer, UserProfile as OriginalUserProfile } from \"./components\"\nimport { ActionType, useToolbarReducer } from \"./hooks\"\nimport { Chat, Notifications, Tasks } from \"./tools\"\nimport { ToolbarTool } from \"./types\"\n\nconst TOOLBAR_WIDTH = 48\nconst DRAWER_WIDTH = 360\nconst DURATION = 100\nconst NAVBAR_HEIGHT = 52\n\ntype ToolbarProps = {\n appName: string\n env: Environment\n linkToProfile?: boolean\n userAvatarPath: string\n userName: string\n}\n\nconst IndicatorDot = (props) => (\n <Box\n backgroundColor={themeColors.home.brand62}\n height={1.5}\n pointerEvents=\"none\"\n position=\"absolute\"\n radius=\"50%\"\n right={0.25}\n top={0.25}\n width={1.5}\n zIndex={6}\n {...props}\n />\n)\n\nexport function Toolbar({\n appName,\n env,\n linkToProfile = true,\n userAvatarPath,\n userName,\n}: ToolbarProps): JSX.Element {\n const [state, dispatch] = useToolbarReducer()\n const { currentContent, mounted, open } = state\n const { indicatorVisible, joltPromise, chatEnabled, userId } = useStore<{\n indicatorVisible: object\n joltPromise: () => Promise<Jolt | void>\n chatEnabled: boolean\n userId: string\n }>()\n\n const chatStreamUser = useChatStreamUser({\n env,\n userId,\n isEnabled: Boolean(userId && chatEnabled),\n joltPromise,\n })\n\n React.useEffect(() => {\n if (open) {\n document.body.style.overflow = \"hidden\"\n window.scrollTo(0, 0)\n } else {\n document.body.style.overflow = \"auto\"\n }\n }, [open])\n\n const loginSettingsUrl = getLoginProfilePath({\n appName: appName.replace(/[\\s-]/, \"\"),\n env: env,\n userId: userId,\n })\n const logoutUrl = `${pcoUrl(env)(\"login\")}/logout`\n const profileUrl = `/people/AC${userId}`\n\n const TOOLS: ToolbarTool[] = [\n Notifications,\n Tasks,\n chatStreamUser && Chat,\n ].filter(Boolean)\n\n const openDrawer = (content) => {\n dispatch({ payload: { content }, type: ActionType.mount })\n setTimeout(() => dispatch({ type: ActionType.open }))\n }\n\n const closeDrawer = () => {\n dispatch({ type: ActionType.close })\n setTimeout(() => dispatch({ type: ActionType.unmount }), DURATION)\n }\n\n const toggleDrawer = (content: ToolbarTool | typeof UserProfile) => {\n if (!open) {\n return openDrawer(content)\n }\n\n return currentContent.name === content.name\n ? closeDrawer()\n : dispatch({ payload: { content }, type: ActionType.set })\n }\n\n const UserProfile: Omit<ToolbarTool, \"icons\"> = {\n component: () =>\n OriginalUserProfile({\n closeDrawer,\n linkToProfile,\n loginSettingsUrl,\n logoutUrl,\n profileUrl,\n userAvatarPath,\n userName,\n }),\n name: \"Profile\",\n }\n\n const isMobile = useMediaQuery(\"(max-width: 600px)\")\n\n const [visibleWindowHeight, setVisibleWindowHeight] = React.useState(0)\n\n React.useLayoutEffect(() => {\n const handleResize = () => {\n setVisibleWindowHeight(window.innerHeight)\n }\n\n window.addEventListener(\"resize\", handleResize)\n\n return () => window.removeEventListener(\"resize\", handleResize)\n }, [])\n\n const handleToolOnClick = (tool: ToolbarTool) => {\n openDrawer(tool)\n document\n .getElementById(`toolbarDrawer${tool.name}`)\n ?.scrollTo({ behavior: \"smooth\", top: 0 })\n }\n\n const toolSpecificProps = {\n Chat: { chatStreamUser }\n }\n\n const currentToolProps = {\n closeDrawer,\n env,\n joltPromise,\n userId,\n ...toolSpecificProps[currentContent?.name],\n }\n\n const indicatorState = {\n ...indicatorVisible,\n Chat: chatStreamUser?.total_unread_count > 0,\n }\n\n return (\n <ThemeProvider theme={topbarTheme}>\n {isMobile ? (\n <>\n <StackView\n left={0}\n position=\"absolute\"\n right={0}\n pointerEvents=\"none\"\n style={{ minHeight: visibleWindowHeight }}\n top={0}\n zIndex={10001}\n >\n <StackView\n alignItems=\"start\"\n axis=\"horizontal\"\n backgroundColor=\"white\"\n borderTopColor=\"separatorTertiary\"\n borderTopWidth={1}\n bottom={0}\n distribution=\"fill\"\n height={`calc(${NAVBAR_HEIGHT}px + env(safe-area-inset-bottom))`}\n left={0}\n position=\"fixed\"\n pointerEvents=\"auto\"\n right={0}\n >\n <StackView alignment=\"center\" flex=\"1\" position=\"relative\">\n <Button\n css={{ WebkitTapHighlightColor: \"transparent\" }}\n color={\n !open\n ? themeColors.lightNeutral24\n : themeColors.lightNeutral62\n }\n hover={{ color: themeColors.lightNeutral24 }}\n icon={{\n name: open\n ? \"toolbar.planningCenterO\"\n : \"toolbar.planningCenter\",\n size: \"20px\",\n }}\n onClick={() => closeDrawer()}\n padding={2}\n theme={false}\n title={`Home`}\n />\n </StackView>\n {TOOLS.map((tool) => (\n <StackView\n alignment=\"center\"\n flex=\"1\"\n key={tool.name}\n position=\"relative\"\n >\n <Button\n aria-label={`${tool.name}`}\n color={\n open && currentContent === tool\n ? themeColors.lightNeutral24\n : themeColors.lightNeutral62\n }\n css={{ WebkitTapHighlightColor: \"transparent\" }}\n hover={{ color: themeColors.lightNeutral24 }}\n key={tool.name}\n onClick={() => handleToolOnClick(tool)}\n paddingHorizontal={2}\n paddingVertical={2}\n theme={false}\n >\n <Box position=\"relative\">\n {indicatorState[tool.name] && (\n <IndicatorDot right={-0.5} top={-0.5} />\n )}\n <Icon\n name={\n open && currentContent === tool\n ? tool.icons.active\n : tool.icons.static\n }\n size=\"20px\"\n />\n </Box>\n </Button>\n </StackView>\n ))}\n </StackView>\n </StackView>\n <UiExtensionDataContext>\n {mounted && (\n <Drawer\n id={`toolbarDrawer${currentContent.name}`}\n bottom={`${NAVBAR_HEIGHT}px`}\n height={`calc(100% - ${NAVBAR_HEIGHT}px)`}\n overflow=\"auto\"\n position=\"absolute\"\n >\n <currentContent.component {...currentToolProps} />\n </Drawer>\n )}\n </UiExtensionDataContext>\n </>\n ) : (\n <StackView\n height=\"100vh\"\n position=\"absolute\"\n right={0}\n width={\n open\n ? `calc(${DRAWER_WIDTH}px + ${TOOLBAR_WIDTH}px)`\n : `${TOOLBAR_WIDTH}px`\n }\n transition={`all ${DURATION}ms ease-in-out`}\n >\n <StackView\n backgroundColor=\"surface\"\n borderLeftColor=\"separatorTertiary\"\n borderLeftWidth={1}\n grow={1}\n paddingVertical={1}\n spacing={<Divider margin={2} />}\n zIndex={2}\n position=\"absolute\"\n right={0}\n height=\"100%\"\n width={`${TOOLBAR_WIDTH}px`}\n >\n <StackView\n alignment=\"center\"\n data-pendo=\"toolbar-profile-support-wrapper\"\n spacing={2}\n >\n <Button\n data-pendo=\"toolbar-profile\"\n onClick={() => toggleDrawer(UserProfile)}\n radius={0}\n theme={false}\n >\n <Avatar\n alt={`${userName}'s avatar`}\n hover={{ outlineColor: themeColors.lightNeutral62 }}\n outlineColor={\n open && currentContent.name == \"Profile\"\n ? themeColors.lightNeutral62\n : \"transparent\"\n }\n outlineOffset=\"2px\"\n outlineStyle=\"solid\"\n outlineWidth=\"2px\"\n size=\"sm\"\n source={userAvatarPath}\n />\n </Button>\n\n <Button\n color={themeColors.lightNeutral62}\n data-pendo=\"toolbar-support\"\n hover={{\n color: themeColors.lightNeutral24,\n }}\n icon={{\n name: \"general.outlinedQuestionCircle\",\n pointerEvents: \"none\",\n size: \"20px\",\n }}\n id=\"jsLaunchHelpdesk\"\n title=\"Help\"\n theme={false}\n />\n </StackView>\n <StackView alignment=\"center\" spacing={2}>\n {TOOLS.map((tool) => (\n <Box\n data-pendo={`toolbar-${tool.name.toLowerCase()}`}\n key={tool.name}\n position=\"relative\"\n >\n {indicatorState[tool.name] && <IndicatorDot />}\n <Button\n color={\n open && currentContent === tool\n ? themeColors.lightNeutral24\n : themeColors.lightNeutral62\n }\n hover={{\n color: themeColors.lightNeutral24,\n }}\n icon={{\n name:\n open && currentContent === tool\n ? tool.icons.active\n : tool.icons.static,\n size: \"20px\",\n }}\n key={tool.name}\n onClick={() => toggleDrawer(tool)}\n title={`Open ${tool.name} drawer`}\n theme={false}\n />\n </Box>\n ))}\n </StackView>\n </StackView>\n <UiExtensionDataContext>\n {mounted && (\n <Drawer\n hasShadow\n id={`toolbarDrawer${currentContent.name}`}\n width={`${DRAWER_WIDTH}px`}\n >\n <currentContent.component {...currentToolProps} />\n </Drawer>\n )}\n </UiExtensionDataContext>\n </StackView>\n )}\n </ThemeProvider>\n )\n}\n","import React from \"react\"\nimport { debounce } from \"../utils\"\n\nexport const useDebounce = <\n F extends (...args: Parameters<F>) => ReturnType<F>\n>(\n fn: F,\n t: number = 0\n): F => {\n return React.useMemo(() => <F>debounce(fn, t), [])\n}\n","import {\n Avatar,\n Button,\n Divider,\n GridView,\n Heading,\n Icon,\n Link,\n StackView,\n Text,\n} from \"@planningcenter/tapestry-react\"\nimport React from \"react\"\n\nimport { default as themeColors } from \"../../colors\"\nimport { remove } from \"../../connected_people_provider\"\nimport useStore from \"../../hooks/use_store\"\n\nconst requestClearConnectedPeopleCache = () => remove()\n\ninterface Props {\n closeDrawer: () => void\n linkToProfile: boolean\n loginSettingsUrl: string\n logoutUrl: string\n profileUrl: string\n userAvatarPath: string\n userName: string\n}\n\nexport function UserProfile({\n closeDrawer,\n linkToProfile,\n loginSettingsUrl,\n logoutUrl,\n profileUrl,\n userName,\n userAvatarPath,\n}: Props) {\n const { mfaConfigured, mfaEnabled } = useStore()\n\n return (\n <StackView axis=\"vertical\" spacing={<Divider />}>\n <GridView\n columns=\"auto 1fr auto\"\n alignment=\"start\"\n spacing={2}\n padding={2}\n paddingTop={1}\n width=\"100%\"\n >\n <Avatar source={userAvatarPath} size=\"md\" />\n <StackView axis=\"vertical\" spacing={1} grow={0} shrink={1}>\n <Heading\n level={3}\n weight={600}\n paddingTop={0.5}\n color={themeColors.lightNeutral12}\n >\n {userName}\n </Heading>\n {linkToProfile && (\n <Link to={profileUrl} style={{ color: themeColors.lightNeutral45 }}>\n My profile\n </Link>\n )}\n {mfaEnabled && (\n <>\n <Link\n to={loginSettingsUrl}\n style={{ color: themeColors.lightNeutral45 }}\n >\n My login settings\n </Link>\n <StackView\n axis=\"horizontal\"\n alignment=\"center\"\n spacing={0.5}\n width=\"100%\"\n >\n <Icon\n name={mfaConfigured ? \"general.lock\" : \"general.unlock\"}\n size=\"sm\"\n color={\n mfaConfigured ? themeColors.success25 : themeColors.danger45\n }\n />\n <Text\n size={5}\n weight={400}\n color={themeColors.lightNeutral62}\n wrap={true}\n >\n Two-step verification {mfaConfigured ? \"active\" : \"inactive\"}\n </Text>\n </StackView>\n </>\n )}\n </StackView>\n <Button\n icon={{\n fill: themeColors.lightNeutral24,\n name: \"general.x\",\n size: \"md\",\n }}\n onClick={closeDrawer}\n title=\"Close\"\n variant=\"naked\"\n theme={false}\n hover={{\n backgroundColor: themeColors.lightNeutral95,\n }}\n />\n </GridView>\n <form method=\"POST\" action={logoutUrl}>\n <Button\n data-turbolinks={false}\n onClick={() => {\n requestClearConnectedPeopleCache()\n return\n }}\n style={{ padding: 0 }}\n theme={false}\n type=\"submit\"\n width=\"100%\"\n >\n <StackView\n distribution=\"space-between\"\n alignment=\"center\"\n axis=\"horizontal\"\n grow={1}\n paddingHorizontal={3}\n paddingVertical={2}\n >\n <Text color={themeColors.lightNeutral45}>Log out</Text>\n <Icon name=\"general.intoBox\" fill={themeColors.lightNeutral45} />\n </StackView>\n </Button>\n </form>\n </StackView>\n )\n}\n","import { useEffect, useState } from \"react\"\n\nfunction useMediaQuery(query: string): boolean {\n const getMatches = (query: string): boolean => {\n // Prevents SSR issues\n if (typeof window !== \"undefined\") {\n return window.matchMedia(query).matches\n }\n return false\n }\n\n const [matches, setMatches] = useState<boolean>(getMatches(query))\n\n function handleChange() {\n setMatches(getMatches(query))\n }\n\n useEffect(() => {\n const matchMedia = window.matchMedia(query)\n\n // Triggered at the first client-side load and if query changes\n handleChange()\n\n // Listen matchMedia\n if (matchMedia.addListener) {\n matchMedia.addListener(handleChange)\n } else {\n matchMedia.addEventListener(\"change\", handleChange)\n }\n\n return () => {\n if (matchMedia.removeListener) {\n matchMedia.removeListener(handleChange)\n } else {\n matchMedia.removeEventListener(\"change\", handleChange)\n }\n }\n }, [query])\n\n return matches\n}\n\nexport default useMediaQuery\n"],"names":["_excluded","defaultFetch","url","options","fetch","_extends","credentials","mode","railsCsrfFetch","_ref","_window","_window$Rails","_document$querySelect","headers","rest","_objectWithoutPropertiesLoose","window","Rails","csrfToken","document","querySelector","getAttribute","apiRequest","_temp","_ref2","_ref2$method","method","_ref2$data","data","Accept","redirect","body","JSON","stringify","then","response","json","ok","e","console","warn","useLocalStorage","key","initialValue","_useState","useState","item","localStorage","getItem","parse","error","storedValue","setStoredValue","localStorageRepresentation","useEffect","setItem","dropKey","removeItem","currentState","listeners","useJoltChannelSubscription","channelName","_ref$enableJoltLoggin","enableJoltLogging","_ref$enabled","enabled","env","fetchSubscribeToken","_ref$joltPromise","joltPromise","Promise","resolve","_React$useState","React","joltChannel","setJoltChannel","_React$useState2","joltInstance","setJoltInstance","_React$useState3","usingIndependentJoltInstance","setUsingIndependentJoltInstance","subscribeToJoltChannel","useCallback","j","jolt","fetchSubscribeTokenFn","_channel","cid","reject","Jolt","wssUrl","fetchAuthTokenFn","pcoUrl","attributes","id","logToConsole","channel","subscriptions","find","s","subscribe","pcoPageExpiredHandler","event","_window$pcoPageExpire","hasOwnProperty","PCOPageExpiredCurrentPersonACID","pcoPageExpired","currentPersonACID","disconnect","addEventListener","removeEventListener","useJoltEffect","channelSubscription","eventName","callback","bind","unbind","store","Set","getState","setState","newState","forEach","listener","add","HSLtoHSLA","hsl","a","hslArray","replace","split","l","debounce","func","wait","timeout","args","slice","call","arguments","context","this","clearTimeout","setTimeout","apply","noop","mapApps","resp","_resp$data","_resp$data$attributes","apps","remove","ConnectedPeopleProvider","_React$Component","props","_this","state","connectedPeople","_inheritsLoose","_proto","prototype","_this2","configuredFetch","unlink","location","meta","redirect_to","toId","returnPath","return_path","_ref3","componentDidMount","render","switch","Component","defaultProps","PointBreak","width","innerWidth","setWindowWidth","_assertThisInitialized","componentWillUnmount","breakpointString","DisplaySwitch","_React$Component2","_proto2","breakpoint","smallBreakpoints","indexOf","smallTopbar","notSmallTopbar","Accounts","createElement","fill","color","d","_ref$color","_ref4","_ref5","_ref6","_ref7","_ref8","_ref9","_ref10","_ref11","_ref12","_ref13","Squircle","MonoAppIcon","appName","colors","style","_ref2$size","size","platformProps","xmlns","height","viewBox","role","display","AppSymbols","base0","_ref$size","_ref3$size","_ref4$size","_ref5$size","_ref6$size","_ref7$size","_ref8$size","_ref9$size","_ref10$size","_ref11$size","_ref12$size","MonoAppName","MonoAppText","slightBackgroundTransition","transition","fontFamily","IEFlex1","flex","_excluded2","_excluded5","_excluded7","_excluded8","_excluded9","BlankStateIcon","_ref2$dark","dark","_ref2$id","nativeProps","clipPath","opacity","DisclosureChevronIcon","base3","points","ExclamationTriangle","_ref7$fill","X","_ref9$fill","Unbutton","WebkitAppearance","appearance","backgroundColor","border","cursor","outline","padding","AppsButton","displayIconOnly","expanded","onClick","_ref$style","down","setDown","entered","setEntered","onMouseDown","onMouseEnter","onMouseLeave","onMouseUp","alignItems","base1","base2","paddingLeft","paddingRight","whiteSpace","Fragment","fontSize","fontWeight","marginLeft","margin","x1","y1","x2","y2","gradientUnits","offset","stopColor","gradientTransform","xlinkHref","cx","cy","r","transform","ColorAppIcon","ColorAppSquircles","getAppsSwitchProductPath","productName","_window$location","_window$location$path","basePath","toLowerCase","referer","pathname","toString","params","URLSearchParams","append","HoverableListItem","_ref$active","active","_ref$component","component","C","Outsider","container","handleOutsideClick","contains","target","stopPropagation","preventDefault","onOutsideClick","_this$props","cleanup","ref","c","PopupRoot","alignSelf","position","Popup","background","borderRadius","boxShadow","overflow","AppsMenu","toggle","visible","accountsProduct","name","homeProduct","restProducts","concat","filter","sort","b","localeCompare","listItemProps","verticalAlign","marginTop","visibility","minWidth","href","borderBottom","marginRight","map","i","isFirst","isLast","length","paddingBottom","paddingTop","borderTop","textDecoration","lineHeight","appsMenuFormatter","attr","arr","reduce","acc","connectedPeopleMenuFormatter","useStore","selector","useSyncExternalStore","StyledRoot","children","className","MozOsxFontSmoothing","WebkitFontSmoothing","danger43","danger45","danger47","danger93","danger97","darkNeutral07","darkNeutral12","darkNeutral15","darkNeutral17","darkNeutral19","darkNeutral24","darkNeutral32","darkNeutral50","darkNeutral68","darkNeutral88","darkNeutral98","home","brand62","interaction45","interaction50","interaction55","interaction66","interaction91","interaction93","lightNeutral12","lightNeutral24","lightNeutral45","lightNeutral62","lightNeutral81","lightNeutral88","lightNeutral93","lightNeutral95","lightNeutral97","lightNeutral98","lightNeutral100","success23","success25","success27","success91","success97","warning20","warning49","warning55","warning63","warning94","warning97","UserMenu","hasConnectedPeople","requestClearAppsCache","requestClearConnectedPeopleCache","requestSwitchConnectedPerson","requestUnlinkConnectedPeople","setUserMenuVisible","userMenuVisible","logoutUrl","maxHeight","maxWidth","right","textTransform","textAlign","listStyleType","person","textOverflow","organization_name","ThemeProvider","Divider","action","Button","hover","themeColors","theme","type","StackView","distribution","alignment","axis","grow","paddingHorizontal","paddingVertical","spacing","Text","Icon","Hoverable","_ref$hover","_ref$innerRef","innerRef","UserMenuTrigger","orgName","requestConnectedPeopleFetch","showOrgName","text","Topbar","appsMenuVisible","setAppsMenuVisible","routesVisible","setRoutesVisible","_useStore","notificationsEnabled","requestAppsFetch","routes","notifications","search","hideRoutes","showRoutes","useDummyNotifications","Provider","announcements","initialAnnouncements","dismissAnnouncements","newAnnouncements","pcURL","formatter","obj","ownProps","Object","keys","resArray","Array","entries","entry","StyledAnnouncement","justifyContent","StyleProvider","_React$Component3","_this$props2","join","trim","PlatformAnnouncements","_React$Component4","_proto4","actions","Boolean","announcement","renderItem","StyledDismissButton","_objectDestructuringEmpty","borderWidth","XSymbol","DissmissibleAnnouncement","dangerouslySetInnerHTML","__html","html","_excluded3","boxSizing","Avatar","_ref$url","incomingUrl","backgroundImage","backgroundPosition","backgroundSize","ClientStorage","update","value","forceUpdate","undefined","AccountSettingsLink","accountsName","CloseMenuButton","getLoginProfilePath","userId","MFAStatus","isActive","statusColor","marginBottom","topbarTheme","generateColorScale","designSystem","baseColor","icons","churchCenter","general","people","toolbar","UserProfileMenu","linkToProfile","mfaConfigured","mfaEnabled","userName","shrink","userAvatarPath","weight","truncate","Link","as","underline","icon","title","HeadingUppercase","List","dividerColor","Item","UserMenuAppLockup","routesMenuVisible","setRoutesMenuVisible","productSwitcherVisible","setProductSwitcherVisible","appColors","activeRoute","CurrentRouteComponent","currentRouteComponent","currentRouteText","borderColor","left","top","LocalStorageProvider","MozUserSelect","WebkitTapHighlightColor","WebkitUserSelect","bottom","msUserSelect","userSelect","forcePropagation","borderRight","flexDirection","WebkitOverflowScrolling","overflowY","charAt","toUpperCase","ChatContext","createContext","ChatProvider","useChat","useContext","Error","ChatApiContext","buildResponse","_data$map","flat","relationships","buildRelationships","_extends2","isArray","head","tail","buildApi","app","delete","path","get","_ref4$fields","fields","query","_extends3","patch","post","ChatApiProvider","useMemo","services","chat","useChatApi","Drawer","_ref$bottom","_ref$hasShadow","hasShadow","_ref$height","_ref$id","_ref$overflow","_ref$position","_ref$width","elevation","open","zIndex","DrawerHeader","closeDrawer","Box","DrawerHeading","Heading","letterSpacing","level","ActionType","INDICATOR_STYLES","ScrollContainer","overflowTop","setOverflowTop","_useState2","overflowBottom","setOverflowBottom","containerRef","useRef","bottomEdgeRef","topEdgeRef","handleResize","current","scrollHeight","clientHeight","scrollTop","root","threshold","bottomObserver","IntersectionObserver","isIntersecting","topObserver","bottomTarget","topTarget","observe","resizeObserver","ResizeObserver","unobserve","OverflowIndicator","edge","basis","pointerEvents","SwitchView","activeIndex","childCount","Children","count","validatedIndex","view","index","inView","initialState","currentContent","mounted","reducer","mount","payload","content","unmount","close","set","Section","AppGroups","Services","groups","teams","team","Badge","source_identifier","Groups","appGroups","TAPESTRY_AVATAR_SIZE","md","sm","avatar","isPerson","TapestryAvatar","source","image","isUser","StreamAvatar","Person","child","Child","Adult","COLUMNS","ChildNotice","childPeople","setOpen","summary","childCountLabel","radius","GridView","columns","tooltip","variant","Collapse","gridColumnStart","People","p","MuteChannel","client","useChatContext","muteStatus","muted","setMuteStatus","updateMuteState","on","off","ToggleSwitch","isChecked","unmute","mute","RemoveChannel","isRemoveHot","setRemoveHot","isRemoving","setRemoving","switchToChannelListView","api","Spinner","autoFocus","onBlur","Settings","isRemovable","Title","isEditable","setTitle","Input","Inline","disabled","onChange","onKeyDown","blur","Details","chatGroups","setGroups","group","_group$source_app_nam","_acc$group$source_app","_group$source_type","source_app_name","source_type","push","useChatGroups","chatMembers","members","setMembers","member","stream_member_id","values","user","useChatMembers","chatMemberAbility","canDelete","canUpdate","ability","setAbility","can_delete","can_update","useChatMemberAbility","marginVertical","ChannelDetailsView","_useChat","isChannelDetailsViewActive","switchToChannelView","LoadingErrorIndicator","align","assign","characterMap","chars","allAccents","RegExp","firstAccent","removeAccents","string","match","removeAccents_1","rankings","CASE_SENSITIVE_EQUAL","EQUAL","STARTS_WITH","WORD_STARTS_WITH","CONTAINS","ACRONYM","MATCHES","NO_MATCH","matchSorter","defaultBaseSortFn","String","rankedValue","items","_options$threshold","_options$baseSort","baseSort","_options$sorter","sorter","matchedItems","aRank","rank","aKeyIndex","keyIndex","bRank","bKeyIndex","sortRankedValues","matches","rankingInfo","getMatchRanking","keyThreshold","valuesToRank","allValues","J","getKeyAttributes","itemValues","getItemValues","I","itemValue","getAllValuesToRank","newRank","newRankedValue","minRanking","maxRanking","getHighestRanking","_rankingInfo$keyThres","testString","stringToRank","prepareValueForComparison","startsWith","includes","acronym","wordInString","splitByHyphenWord","substr","matchingInOrderCharCount","charNumber","findMatchingCharacter","matchChar","firstIndex","getClosenessRanking","keepDiacritics","nestedKey","nestedValues","nestedItem","nestedValue","result","getNestedValues","defaultKeyAttributes","Infinity","BUTTON_STYLE_BASE_OVERRIDES","teamOptionSort","_a$order","order","aTeam","_b$order","bTeam","getPrimaryButtonStyleOverrides","spinner","base","focus","_props$error","loading","switchToNewChatView","ChatApps","AppMetaComponents","dates","ChannelMeta","AppMetaComponent","ChannelMetas","metas","_member$user","SCAvatar","shape","AvatarGroup","UnreadBadge","unread","clampedValue","Preview","_latestMessage$props","latestMessage","setActiveChannel","setActionsOpenForChannel","channelActionsOpen","actionsOpenForChannel","latestMessageText","handleChannelClick","userID","displayTitle","borderBottomColor","borderBottomWidth","css","minHeight","tabIndex","WebkitBoxOrient","WebkitLineClamp","last_message_at","datetimeFmt","date","year","getTimeStamp","Dropdown","iconRight","lockScrollWhileOpen","onClose","onOpen","placement","popoverProps","shouldFlip","onSelect","ChannelListBlankState","ChannelListBlankStateIcon","stroke","ChannelListView","setLoading","loaded","setLoaded","queryInProgress","_loading","unreadChannelCount","_useChannelsLoading","channelsQueryState","channelsLoading","channelsLoaded","filters","$in","pco_apps","$contains","thickness","trackColor","ChannelList","setActiveChannelOnMount","EmptyStateIndicator","Paginator","InfiniteScroll","emojiNames","useReactions","names","_useEmojiContext","useEmojiContext","emojiConfig","EmojiIndex","emojiIndex","emojiData","emoji","emojis","CustomReactionSelector","forwardRef","reactionOptions","ReactionSelector","CustomReactionsList","ReactionsList","MessageInput","_useMessageInputConte","useMessageInputContext","closeEmojiPicker","emojiPickerIsOpen","handleEmojiKeyDown","handleSubmit","isUploadEnabled","maxFilesLeft","numberOfUploads","openEmojiPicker","uploadNewFiles","multipleUploads","useChannelStateContext","_useDropzone","useDropzone","multiple","noClick","onDrop","getRootProps","isDragActive","isDragReject","isInputChildOfModal","useIsInputChildOfModal","wrapInputRef","useAutoFocus","marginHorizontal","refKey","DropzoneUI","AttachmentPreviewList","ChatAutoComplete","placeholder","EmojiPickerUI","FileUploadUI","nanoid","inputEl","getElementById","htmlFor","click","UploadButton","onFileChange","EmojiPickerIcon","EmojiPicker","small","borderStyle","isChildOfModal","setIsChildOfModal","modal","input","_wrapInputRef$current","_input$value","_input$value2","setSelectionRange","ChannelView","_channel$data","_useChatContext","isChannelViewActive","switchToChannelDetailsView","updateCount","handleUpdate","Channel","EditMessageInput","doMarkReadRequest","logChatPromiseExecution","markRead","Window","MessageList","messageActions","StreamMessageInput","initialValues","plan_id","_useChatPeople","setPeople","isCreating","setCreating","_useState3","isFetching","setFetching","cache","findAndSwitchToChannel","filterParams","team_id","_cache$current$key","Chat","fetchPeople","getPeople","createChat","useChatPeople","somePeople","peopleCountLabel","someChildPeople","ServicesChatOptionsFooter","handleStartChat","startChatDisabled","showSpinner","toSelectOptions","label","Plans","setOptions","isEnabled","setEnabled","fetchingCount","setFetchingCount","isFetchable","isInvalid","plans","prevOptions","availableOptions","uniqOptions","option","InputLabel","controls","prevValues","Select","defaultValue","emptyValue","Teams","searchTerm","setSearchTerm","_useTeamOptions","isLoading","_options$reduce","some","useTeamOptions","selected","unselected","isSelectAll","teams_i_lead","unselectedGroups","_option$group","groupTeamOptions","WrapView","renderLeft","Combobox","Popover","openOnFocus","closeOnSelect","onClear","groupName","groupOptions","Highlight","tooManyOptionsForSelectAll","Menu","handleBlur","inline","italic","PeopleBlankState","ServicesChatOptions","_useServicesChatFilte","setValues","isPlansActive","_values$teams","first","every","service_type_id","useServicesChatFilter","isFiltering","NewChatView","isNewChatViewActive","TRCombobox","TRMenu","TRInput","ChatController","setActiveIndex","stream_channel_id","queryChannels","$eq","ChatComponent","setCount","chatClient","unread_channels","handleChange","StreamChat","streamUser","setChatClient","didUserConnectInterrupt","api_key","connectionPromise","connectUser","token","disconnectUser","log","useClient","chatStreamUser","static","Eyebrow","MarkReadDot","_ref$isRead","elementRef","setValue","handleMouseEnter","handleMouseLeave","isRead","hoverRef","isHover","node","NotificationItem","_ref2$mobile","mobile","_ref2$onMarkAsRead","onMarkAsRead","onToggleRead","showBottomBorder","notification","createdAt","link","organizationTimeZone","setIsActive","datetimeFmtOptions","timeZone","_e","flexGrow","borderLeft","Calendar","Giving","Publishing","Registrations","datetime","NotificationsMenuBlankState","_ref$dark","description","_ref$title","buildNotificationFromApiResponse","_findInIncluded","_findInIncluded$attri","_findInIncluded2","_findInIncluded2$attr","_resp$relationships","_resp$relationships$w","_resp$relationships$w2","_resp$attributes$read","findInIncluded","included","notificationData","web_payloads","Date","created_at","read_at","SectionHeaderButton","SectionHeaderTitle","Notifications","showRead","setShowRead","defaultStyle","duration","transitionStyles","entering","_store$getState$notif","_useNotifications","setNotifications","setIsLoading","hasError","setHasError","_notificationsOrganiz","_sort$reduce","read","notificationsOrganizer","fetchNotifications","exception","extractPayloadFromJoltMessage","updateStateFromJoltMessage","message","fetchNotification","candidate","removeNotification","joltMessageNotificationDataPayload","newNotifications","markAsReadOrUnread","notificationIds","readOrUnread","n","handleMarkAllAsRead","unreadIds","u","handleMarkAsRead","handleToggleRead","useNotifications","TransitionGroup","exit","idx","Transition","LoadingIndicator","components","Tasks","latestJoltMessage","setLatestJoltMessage","requestedJoltChannel","setRequestedJoltChannel","connection_id","subscribeUrl","handleJoltMessage","timestamp","getTime","UiExtensionFirstPartyComponent","extensionId","loadingFallback","additionalComponents","requestJoltChannel","trackPendo","properties","pendo","track","IndicatorDot","_topbarResponse$data","_topbarResponse$data$","_topbarResponse$data2","_topbarResponse$data3","_topbarResponse$data4","_topbarResponse$data5","_topbarResponse$data6","_topbarResponse$data7","_topbarResponse$data8","_topbarResponse$data9","_topbarResponse$data10","_topbarResponse$data11","_ref$configuredFetch","_ref$formatter","topbarResponse","_useLocalStorage","setLocalResp","setResp","useTopbarAPI","has_connected_people","features","mfa_configured","notificationsDisabled","org_time_zone","chatEnabled","notificationsJoltChannel","notificationsHasUnread","fn","t","fetchHasUnread","useNotificationsHasUnread","indicatorVisible","_ref$dot","dot","_ref$dotFill","dotFill","_ref$fill","bellPath","mask","x","y","_React$useState4","_React$useState5","_ref$html","_ref$onClick","_event","updateDismissed","_ref8$fill","_ref$linkToProfile","_useToolbarReducer","useReducer","overrides","dispatch","setStreamUser","chatJoltChannel","fetchStreamUser","_ref3$json$data","attrs","prev","useChatStreamUser","scrollTo","loginSettingsUrl","profileUrl","TOOLS","openDrawer","toggleDrawer","UserProfile","to","wrap","OriginalUserProfile","isMobile","getMatches","matchMedia","setMatches","addListener","removeListener","useMediaQuery","visibleWindowHeight","setVisibleWindowHeight","useLayoutEffect","innerHeight","currentToolProps","indicatorState","total_unread_count","borderTopColor","borderTopWidth","tool","_document$getElementB","behavior","handleToolOnClick","UiExtensionDataContext","NAVBAR_HEIGHT","DRAWER_WIDTH","TOOLBAR_WIDTH","DURATION","borderLeftColor","borderLeftWidth","alt","outlineColor","outlineOffset","outlineStyle","outlineWidth"],"mappings":"+3DAEA,IAAAA,EAAA,CAAA,WAAaC,EAAsB,SAACC,EAAKC,GACvC,OAAOC,MAAMF,EAAGG,GAAIC,YAAa,UAAWC,KAAM,QAAWJ,GAC/D,EAEaK,EAAwB,SAACN,EAAGO,OASbC,EAAAC,EAAAC,EATiBC,EAAOJ,EAAPI,QAAYC,EAAIC,EAAAN,EAAAT,GAC3D,OAAOI,MAAMF,EAAGG,EACdQ,CAAAA,QAAOR,EAAA,GAAOQ,EAAS,CAAA,gBASjB,OAANH,EAAAM,SAAa,OAAPL,EAAND,EAAQO,YAAF,EAANN,EAAeO,eACfN,OAD0BA,EAC1BO,SACGC,cAAc,iCADjBR,EAAAA,EAEIS,aAAa,aACjB,QAZGP,EACHR,CAAAA,YAAa,UACbC,KAAM,SAEV,EAYc,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IAAK,IACL,IAAK,IACL,IAAK,KACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,KAAM,IACN,KAAM,IACN,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,KACL,IAAK,KACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,KAAM,IACN,KAAM,IACN,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,KAAM,IACN,KAAM,IACN,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,KAAM,IACN,KAAM,IACN,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,KACL,IAAK,KACL,KAAM,IACN,KAAM,IACN,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,KAAM,IACN,KAAM,IACN,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,KAAM,IACN,KAAM,IACN,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,KAAM,IACN,KAAM,IACN,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,KAAM,IACN,KAAM,IACN,IAAK,IACL,IAAK,IACL,IAAK,IACL,KAAM,IACN,KAAM,IACN,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,KACL,IAAK,KACL,IAAK,IACL,IAAK,IACL,IAAK,KACL,IAAK,KACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,KAAM,IACN,KAAM,IACN,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,KAAM,IACN,KAAM,IACN,KAAM,IACN,KAAM,IACN,KAAM,IACN,KAAM,IACN,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,KAAM,IACN,KAAM,IACN,KAAM,IACN,KAAM,IACN,KAAM,IACN,KAAM,IACN,KAAM,IACN,KAAM,IACN,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,KAAM,IACN,IAAK,IACL,IAAK,IACL,IAAK,IACL,KAAM,IACN,KAAM,IACN,KAAM,IACN,KAAM,IACN,KAAM,IACN,KAAM,IACN,KAAM,IACN,KAAM,IACN,IAAK,IACL,IAAK,IACL,KAAM,IACN,KAAM,IACN,KAAM,IACN,KAAM,IACN,KAAM,IACN,KAAM,IACN,KAAM,IACN,KAAM,IACN,KAAM,IACN,KAAM,IACN,KAAM,IACN,KAAM,IACN,IAAK,IACL,IAAK,IACL,IAAK,IACL,IAAK,IACL,KAAM,IACN,KAAM,IACN,IAAK,IACL,IAAK,IACL,KAAM,IACN,KAAM,IACN,KAAM,IACN,KAAM,IACN,KAAM,IACN,KAAM,IACN,KAAM,IACN,KAAM,IACN,KAAM,IACN,KAAM,IACN,KAAM,IACN,KAAM,IACN,KAAM,IACN,KAAM,IACN,KAAM,IACN,KAAM,KAGHC,GAAQ5T,OA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