@planningcenter/topbar 9.17.1 → 10.0.0
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.
- package/dist/topbar.css +1 -53
- package/dist/topbar.css.map +1 -1
- package/dist/topbar.js +1 -1
- package/dist/topbar.js.map +1 -1
- package/dist/topbar.modern.js +1 -1
- package/dist/topbar.modern.js.map +1 -1
- package/dist/topbar.module.js +1 -1
- package/dist/topbar.module.js.map +1 -1
- package/dist/topbar.umd.js +1 -1
- package/dist/topbar.umd.js.map +1 -1
- package/dist/types/modules/toolbar/index.d.ts.map +1 -1
- package/dist/types/modules/toolbar/tools/index.d.ts +0 -1
- package/dist/types/modules/toolbar/tools/index.d.ts.map +1 -1
- package/package.json +4 -5
- package/dist/types/modules/toolbar/tools/chat/chat_api_context.d.ts +0 -12
- package/dist/types/modules/toolbar/tools/chat/chat_api_context.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/chat_context.d.ts +0 -24
- package/dist/types/modules/toolbar/tools/chat/chat_context.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/beta_badge.d.ts +0 -2
- package/dist/types/modules/toolbar/tools/chat/components/beta_badge.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/blank_state_view.d.ts +0 -2
- package/dist/types/modules/toolbar/tools/chat/components/blank_state_view.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/groups.d.ts +0 -5
- package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/groups.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/hooks/index.d.ts +0 -4
- package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/hooks/index.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/hooks/use_chat_groups.d.ts +0 -16
- package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/hooks/use_chat_groups.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/hooks/use_chat_member_ability.d.ts +0 -6
- package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/hooks/use_chat_member_ability.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/hooks/use_chat_members.d.ts +0 -10
- package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/hooks/use_chat_members.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/index.d.ts +0 -2
- package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/index.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/people.d.ts +0 -5
- package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/people.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/section.d.ts +0 -9
- package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/section.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/settings.d.ts +0 -5
- package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/settings.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/title.d.ts +0 -6
- package/dist/types/modules/toolbar/tools/chat/components/channel_details_view/title.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/channel_list_view/avatar_group.d.ts +0 -6
- package/dist/types/modules/toolbar/tools/chat/components/channel_list_view/avatar_group.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/channel_list_view/channel_list_blank_state.d.ts +0 -2
- package/dist/types/modules/toolbar/tools/chat/components/channel_list_view/channel_list_blank_state.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/channel_list_view/index.d.ts +0 -8
- package/dist/types/modules/toolbar/tools/chat/components/channel_list_view/index.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/channel_list_view/linked_account_select.d.ts +0 -9
- package/dist/types/modules/toolbar/tools/chat/components/channel_list_view/linked_account_select.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/channel_list_view/list.d.ts +0 -4
- package/dist/types/modules/toolbar/tools/chat/components/channel_list_view/list.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/channel_list_view/loading_error_indicator.d.ts +0 -2
- package/dist/types/modules/toolbar/tools/chat/components/channel_list_view/loading_error_indicator.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/channel_list_view/preview.d.ts +0 -7
- package/dist/types/modules/toolbar/tools/chat/components/channel_list_view/preview.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/channel_metas.d.ts +0 -4
- package/dist/types/modules/toolbar/tools/chat/components/channel_metas.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/channel_view/custom_empty_state_indicator.d.ts +0 -2
- package/dist/types/modules/toolbar/tools/chat/components/channel_view/custom_empty_state_indicator.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/channel_view/custom_header.d.ts +0 -18
- package/dist/types/modules/toolbar/tools/chat/components/channel_view/custom_header.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/channel_view/custom_message_status.d.ts +0 -2
- package/dist/types/modules/toolbar/tools/chat/components/channel_view/custom_message_status.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/channel_view/custom_reaction_options.d.ts +0 -6
- package/dist/types/modules/toolbar/tools/chat/components/channel_view/custom_reaction_options.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/channel_view/emoji_data.d.ts +0 -10
- package/dist/types/modules/toolbar/tools/chat/components/channel_view/emoji_data.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/channel_view/hooks/use_message_list_scroll_shadows.d.ts +0 -8
- package/dist/types/modules/toolbar/tools/chat/components/channel_view/hooks/use_message_list_scroll_shadows.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/channel_view/index.d.ts +0 -2
- package/dist/types/modules/toolbar/tools/chat/components/channel_view/index.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/channel_view/message_input.d.ts +0 -2
- package/dist/types/modules/toolbar/tools/chat/components/channel_view/message_input.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/child_notice.d.ts +0 -5
- package/dist/types/modules/toolbar/tools/chat/components/child_notice.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/groups/groups_shortcuts.d.ts +0 -4
- package/dist/types/modules/toolbar/tools/chat/components/groups/groups_shortcuts.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/groups/hooks/use_my_groups.d.ts +0 -17
- package/dist/types/modules/toolbar/tools/chat/components/groups/hooks/use_my_groups.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/groups/hooks/use_new_group_chat_people.d.ts +0 -9
- package/dist/types/modules/toolbar/tools/chat/components/groups/hooks/use_new_group_chat_people.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/groups/index.d.ts +0 -3
- package/dist/types/modules/toolbar/tools/chat/components/groups/index.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/groups/people.d.ts +0 -4
- package/dist/types/modules/toolbar/tools/chat/components/groups/people.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/index.d.ts +0 -8
- package/dist/types/modules/toolbar/tools/chat/components/index.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/new_chat_shortcuts_view.d.ts +0 -2
- package/dist/types/modules/toolbar/tools/chat/components/new_chat_shortcuts_view.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/new_chat_view/footer.d.ts +0 -7
- package/dist/types/modules/toolbar/tools/chat/components/new_chat_view/footer.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/new_chat_view/header.d.ts +0 -2
- package/dist/types/modules/toolbar/tools/chat/components/new_chat_view/header.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/new_chat_view/index.d.ts +0 -3
- package/dist/types/modules/toolbar/tools/chat/components/new_chat_view/index.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/new_groups_chat_view.d.ts +0 -2
- package/dist/types/modules/toolbar/tools/chat/components/new_groups_chat_view.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/new_services_chat_view.d.ts +0 -2
- package/dist/types/modules/toolbar/tools/chat/components/new_services_chat_view.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/person_list_item.d.ts +0 -8
- package/dist/types/modules/toolbar/tools/chat/components/person_list_item.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/services/constants.d.ts +0 -2
- package/dist/types/modules/toolbar/tools/chat/components/services/constants.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/services/hooks/index.d.ts +0 -4
- package/dist/types/modules/toolbar/tools/chat/components/services/hooks/index.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/services/hooks/use_chat_people.d.ts +0 -17
- package/dist/types/modules/toolbar/tools/chat/components/services/hooks/use_chat_people.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/services/hooks/use_services_chat_filter.d.ts +0 -8
- package/dist/types/modules/toolbar/tools/chat/components/services/hooks/use_services_chat_filter.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/services/hooks/use_services_chat_shortcuts.d.ts +0 -14
- package/dist/types/modules/toolbar/tools/chat/components/services/hooks/use_services_chat_shortcuts.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/services/hooks/use_team_options.d.ts +0 -3
- package/dist/types/modules/toolbar/tools/chat/components/services/hooks/use_team_options.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/services/index.d.ts +0 -4
- package/dist/types/modules/toolbar/tools/chat/components/services/index.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/services/people.d.ts +0 -4
- package/dist/types/modules/toolbar/tools/chat/components/services/people.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/services/people_blank_state.d.ts +0 -2
- package/dist/types/modules/toolbar/tools/chat/components/services/people_blank_state.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/services/plans.d.ts +0 -3
- package/dist/types/modules/toolbar/tools/chat/components/services/plans.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/services/service_chat_shortcuts.d.ts +0 -6
- package/dist/types/modules/toolbar/tools/chat/components/services/service_chat_shortcuts.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/services/services_chat_options.d.ts +0 -10
- package/dist/types/modules/toolbar/tools/chat/components/services/services_chat_options.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/services/teams.d.ts +0 -3
- package/dist/types/modules/toolbar/tools/chat/components/services/teams.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/services/utils/index.d.ts +0 -3
- package/dist/types/modules/toolbar/tools/chat/components/services/utils/index.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/ui/subheading.d.ts +0 -9
- package/dist/types/modules/toolbar/tools/chat/components/ui/subheading.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/constants.d.ts +0 -6
- package/dist/types/modules/toolbar/tools/chat/constants.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/hooks/index.d.ts +0 -13
- package/dist/types/modules/toolbar/tools/chat/hooks/index.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/hooks/use_channel_mute.d.ts +0 -2
- package/dist/types/modules/toolbar/tools/chat/hooks/use_channel_mute.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/hooks/use_channel_unread.d.ts +0 -11
- package/dist/types/modules/toolbar/tools/chat/hooks/use_channel_unread.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/hooks/use_channels_loading.d.ts +0 -2
- package/dist/types/modules/toolbar/tools/chat/hooks/use_channels_loading.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/hooks/use_chat.d.ts +0 -3
- package/dist/types/modules/toolbar/tools/chat/hooks/use_chat.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/hooks/use_chat_api.d.ts +0 -4
- package/dist/types/modules/toolbar/tools/chat/hooks/use_chat_api.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/hooks/use_chat_app_grants.d.ts +0 -7
- package/dist/types/modules/toolbar/tools/chat/hooks/use_chat_app_grants.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/hooks/use_chat_connected_people.d.ts +0 -16
- package/dist/types/modules/toolbar/tools/chat/hooks/use_chat_connected_people.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/hooks/use_chat_filter.d.ts +0 -29
- package/dist/types/modules/toolbar/tools/chat/hooks/use_chat_filter.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/hooks/use_chat_navigation.d.ts +0 -24
- package/dist/types/modules/toolbar/tools/chat/hooks/use_chat_navigation.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/hooks/use_chat_stream_user.d.ts +0 -16
- package/dist/types/modules/toolbar/tools/chat/hooks/use_chat_stream_user.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/hooks/use_client.d.ts +0 -3
- package/dist/types/modules/toolbar/tools/chat/hooks/use_client.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/hooks/use_total_unread_count.d.ts +0 -12
- package/dist/types/modules/toolbar/tools/chat/hooks/use_total_unread_count.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/index.d.ts +0 -4
- package/dist/types/modules/toolbar/tools/chat/index.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/utils/index.d.ts +0 -35
- package/dist/types/modules/toolbar/tools/chat/utils/index.d.ts.map +0 -1
package/dist/topbar.modern.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import*as e from"react";import t,{useEffect as n,useState as a,useMemo as r,useCallback as i,useRef as l,useContext as o,Fragment as s}from"react";import c from"@planningcenter/jolt-client";import d from"@planningcenter/url";import{useSyncExternalStore as u}from"use-sync-external-store/shim";import{ThemeProvider as m,Divider as h,Button as p,StackView as f,Text as g,Icon as v,designSystem as y,Link as E,HeadingUppercase as w,List as b,Box as k,Heading as _,GridView as C,Avatar as x,Badge as S,Spinner as M,WrapView as A,Collapse as T,ToggleSwitch as N,Input as D,Select as O,Menu as P,Group as V,Tooltip as z,Dropdown as H,Combobox as L,Logo as R}from"@planningcenter/tapestry-react";import*as Y from"@planningcenter/icons/paths/church-center";import*as Z from"@planningcenter/icons/paths/general";import*as I from"@planningcenter/icons/paths/people";import*as U from"@planningcenter/icons/paths/toolbar";import{UiExtensionFirstPartyComponent as W,components as F,UiExtensionDataContext as j}from"@planningcenter/add-ons";import{useChatContext as $,Avatar as B,useTranslationContext as G,ChannelList as q,InfiniteScroll as J,useMessageListContext as Q,MessageStatus as X,useMessageContext as K,getReadByTooltipText as ee,mapToUserNameOrId as te,useMessageInputContext as ne,useChannelStateContext as ae,AttachmentPreviewList as re,ChatAutoComplete as ie,Channel as le,Window as oe,MessageInput as se,MessageList as ce,Chat as de}from"stream-chat-react";import ue from"@planningcenter/datetime-fmt";import{StreamChat as me,logChatPromiseExecution as he}from"stream-chat";import pe from"@emoji-mart/data";import{init as fe,SearchIndex as ge}from"emoji-mart";import{nanoid as ve}from"nanoid";import{useDropzone as ye}from"react-dropzone";import{UploadButton as Ee}from"react-file-utils";import{EmojiPicker as we}from"stream-chat-react/emojis";import{InlineWidget as be}from"react-calendly";import ke from"algoliasearch";import{useSearchBox as _e,useHits as Ce,InstantSearch as xe,Configure as Se}from"react-instantsearch";import{TransitionGroup as Me,Transition as Ae}from"react-transition-group";function Te(){return Te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Te.apply(this,arguments)}function Ne(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function De(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)t.indexOf(n=i[a])>=0||(r[n]=e[n]);return r}const Oe=["headers"],Pe=(e,t)=>fetch(e,Te({credentials:"include",mode:"cors"},t)),Ve=(e,t)=>{let{headers:n}=t,a=De(t,Oe);return fetch(e,Te({headers:Te({},n,{"X-CSRF-Token":(null==(r=window)||null==(i=r.Rails)?void 0:i.csrfToken())||(null==(l=document.querySelector('meta[name="csrf-token"]'))?void 0:l.getAttribute("content"))||null})},a,{credentials:"include",mode:"cors"}));var r,i,l};function ze(e,t,{method:n="GET",data:a=null}={}){const r={headers:{Accept:"application/json","Content-Type":"application/json"},method:n,redirect:"follow"};return a&&"GET"!==n&&(r.body=JSON.stringify(a)),e(t,r).then(e=>e.json().then(t=>({json:t,ok:e.ok,response:e})).catch(()=>({json:null,ok:e.ok,response:e})),e=>(console.warn(e),{json:null,ok:!1,response:null}))}const He=({channelName:e,enableJoltLogging:n=!1,enabled:a=!0,env:r,wssEndpoint:i,fetchSubscribeToken:l,joltPromise:o=(()=>Promise.resolve())})=>{const[s,u]=t.useState(),[m,h]=t.useState(),[p,f]=t.useState(!1),g=t.useCallback(async()=>{let t=await o().then(e=>e);const a=async(e,t)=>l(t);t||(f(!0),t=new c(i||(e=>{switch(e){case"development":case"test":return"wss://1csnwvu025.execute-api.us-east-1.amazonaws.com/v1/";case"staging":return"wss://xvk2ac1o3l.execute-api.us-east-1.amazonaws.com/v1/";default:return"wss://yxe88gasn3.execute-api.us-east-1.amazonaws.com/v1/"}})(r),{fetchAuthTokenFn:async()=>ze(Ve,`${window.location.origin}/~api/notifications/v2/me/notifications_jolt_authorize`,{data:{data:{attributes:{}}},method:"POST"}).then(({json:e})=>e.data.id),fetchSubscribeTokenFn:a},{logToConsole:n}));const s=t.subscriptions.find(t=>t.channel===e)||t.subscribe(e,{fetchSubscribeTokenFn:a});u(s),h(t)},[ze,e,r,d,Ve]);return t.useEffect(()=>{a&&g()},[a,g]),t.useEffect(()=>{const e=e=>{var t,n;e.data.hasOwnProperty("PCOPageExpiredCurrentPersonACID")&&e.data.PCOPageExpiredCurrentPersonACID!==(null==(t=window)||null==(n=t.pcoPageExpired)?void 0:n.currentPersonACID)&&m&&m.disconnect()};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)},[m]),t.useEffect(()=>()=>{m&&p&&m.disconnect()},[m]),s},Le=(e,t,a)=>n(()=>e?(e.bind(t,a),()=>e.unbind(t,a)):()=>{},[e,a]),Re=(e,t=1)=>{const n=e.replace(/[a-z()%]/g,"").split(" ");return`hsla(${n[0]}, ${n[1]}%, ${n[2]}%, ${t})`},Ye=(e,t)=>{let n;return function(...a){const r=this;clearTimeout(n),n=setTimeout(()=>{n=null,e.apply(r,a)},t),n||e.apply(r,a)}};function Ze(e,t){return Object.keys(e).length===Object.keys(t).length&&Object.entries(e).every(([e,n])=>t[e]!==n)}function Ie(e,t){const[r,i]=a(()=>{try{const n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(e){return t}}),l=JSON.stringify(r);return n(()=>{window.localStorage.setItem(e,l)},[e,l]),{dropKey:()=>window.localStorage.removeItem(e),setStoredValue:i,storedValue:r}}const Ue=()=>{};function We(e){let t=e;const n=new Set;return{getState:()=>t,setState:e=>{t=e,n.forEach(e=>e(t))},subscribe:e=>(n.add(e),()=>n.delete(e))}}const Fe=We({}),je=({configuredFetch:e=Pe,enableJoltLogging:r,env:i,formatter:l=$e,joltPromise:o,wssEndpoint:s,render:c,userId:u})=>{var m,h,p,f,g,v,y,E,w,b,k,_,C,x,S,M,A,T,N,D,O;const P=(({configuredFetch:e,env:t})=>{const{storedValue:r,setStoredValue:i}=Ie("Topbar",{}),[l,o]=a(r);n(()=>{s()},[]);const s=()=>{ze(e,`${d(t)("api")}/people/v2/me/topbar`).then(({json:e,ok:t})=>{t&&(o(e),i(e))})};return l})({configuredFetch:e,env:i}),V=l(P),z=null==P||null==(m=P.data)||null==(h=m.attributes)?void 0:h.has_connected_people,H=null==P||null==(p=P.data)||null==(f=p.attributes)||null==(g=f.features)?void 0:g.includes("mfa_enabled"),L=null==P||null==(v=P.data)||null==(y=v.attributes)||null==(E=y.features)?void 0:E.includes("notifications_context_menu"),R=!(null==P||null==(w=P.data)||null==(b=w.attributes)||!b.mfa_configured),Y=null==P||null==(k=P.data)||null==(_=k.attributes)?void 0:_.name,Z=!window.notificationsDisabled,I=(null==P||null==(C=P.data)||null==(x=C.attributes)?void 0:x.org_time_zone)||"America/Los_Angeles",U=null==P||null==(S=P.data)||null==(M=S.attributes)||null==(A=M.features)?void 0:A.includes("chat_enabled"),W={algoliaApplicationId:null==P||null==(T=P.data)||null==(N=T.attributes)?void 0:N.algolia_application_identifier,algoliaSearchOnlyApiKey:null==P||null==(D=P.data)||null==(O=D.attributes)?void 0:O.algolia_search_key},F=He({channelName:`notifications.people.${u}`,enableJoltLogging:r,enabled:!0,env:i,wssEndpoint:s,fetchSubscribeToken:async e=>{const t=`${window.location.origin}/~api/notifications/v2/me/notifications_jolt_subscribe`;return ze(Ve,t,{data:{data:{attributes:{cid:e}}},method:"POST"}).then(({json:e})=>e.data.id)},joltPromise:o}),j=(({enabled:e,joltChannel:n})=>{const{storedValue:a,setStoredValue:r}=Ie("Topbar:Notifications:hasUnread",!1),i=((e,n=0)=>t.useMemo(()=>Ye(e,n),[]))(()=>{const e=`${window.location.origin}/~api/notifications/v2/me/unread`;ze(Pe,e).then(({json:e})=>{r(e.data.attributes.unread)}).catch(Ue)},300);return t.useEffect(()=>{e&&i()},[e]),Le(e?n:void 0,"notifications.v2.events.notification.created",i),Le(e?n:void 0,"notifications.v2.events.notification.updated",i),Le(e?n:void 0,"notifications.v2.events.notification.destroyed",i),a})({enabled:!0,env:i,joltChannel:F});return n(()=>{const e=Fe.getState();Fe.setState(Te({},e,{algoliaSearchAuth:W,chatEnabled:U,hasConnectedPeople:z,indicatorVisible:Te({},e.indicatorVisible,{Notifications:j}),joltPromise:o,mfaConfigured:R,mfaEnabled:H,name:Y,notifications:{enabled:Z,env:i,joltChannel:F},notificationsContextMenu:L,notificationsEnabled:Z,notificationsJoltChannel:F,organizationTimeZone:I,userId:u}))},[o,R,H,Y,L,Z,j,I,u]),c(V||[],{fetch:()=>{},remove:()=>{}})};function $e(e){var t,n;return(null==e||null==(t=e.data)||null==(n=t.attributes)?void 0:n.apps)||[]}function Be(){window.localStorage.removeItem("Topbar:ConnectedPeople")}function Ge(e){window.location=e}class qe extends t.Component{constructor(e){super(e),this.state={connectedPeople:[]}}fetch(){ze(this.props.configuredFetch,`${d(this.props.env)("api")}/login/v2/me/connected_people`).then(({json:e,ok:t})=>{if(!t||!e)return;const n=e.data;return this.setState({connectedPeople:n},()=>window.localStorage.setItem("Topbar:ConnectedPeople",JSON.stringify(n)))})}unlink(){ze(this.props.configuredFetch,`${d(this.props.env)("api")}/login/v2/me/unlink`,{method:"POST"}).then(({json:e})=>{var t;null!=e&&null!=(t=e.meta)&&t.redirect_to&&Ge(e.meta.redirect_to)})}switch(e,t){ze(this.props.configuredFetch,`${d(this.props.env)("api")}/login/v2/me/switch_connected_person`,{data:{data:{attributes:{id:e,return_path:t}}},method:"POST"}).then(({json:e})=>{var t;null!=e&&null!=(t=e.meta)&&t.redirect_to&&Ge(e.meta.redirect_to)})}componentDidMount(){const e=JSON.parse(window.localStorage.getItem("Topbar:ConnectedPeople"));return e?this.setState({connectedPeople:e}):this.fetch()}render(){return this.props.render(this.state.connectedPeople||[],{fetch:this.fetch.bind(this),remove:Be.bind(this),switch:this.switch.bind(this),unlink:this.unlink.bind(this)})}}qe.defaultProps={configuredFetch:Pe};class Je extends t.Component{constructor(e){super(e),this.state={width:window.innerWidth},this.setWindowWidth=this.setWindowWidth.bind(this)}setWindowWidth(){this.setState({width:window.innerWidth})}componentDidMount(){window.addEventListener("resize",Ye(this.setWindowWidth,100),!1)}componentWillUnmount(){window.removeEventListener("resize",Ye(this.setWindowWidth,100),!1)}breakpointString(e){return e<480?"xs":e<600?"sm":e<720?"md":e<960?"lg":"xl"}render(){return t.createElement(t.Fragment,null,this.props.render(this.breakpointString(this.state.width)))}}class Qe extends t.Component{render(){return t.createElement(Je,{render:e=>-1!==this.props.smallBreakpoints.indexOf(e)?this.props.smallTopbar(e):this.props.notSmallTopbar(e)})}}function Xe({color:e}){return t.createElement("path",{fill:e,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"})}Qe.defaultProps={smallBreakpoints:["xs","sm"]};var Ke={__proto__:null,Squircle:function({color:e="#fff"}){return t.createElement("path",{fill:e,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"})},Accounts:Xe,API:function({color:e}){return t.createElement("path",{fill:e,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"})},Calendar:function({color:e}){return t.createElement("path",{fill:e,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"})},CheckIns:function({color:e}){return t.createElement("path",{fill:e,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"})},ChurchCenter:function({color:e}){return t.createElement("path",{fill:e,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"})},Giving:function({color:e}){return t.createElement("path",{fill:e,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"})},Groups:function({color:e}){return t.createElement("path",{fill:e,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"})},Home:function({color:e}){return t.createElement("path",{fill:e,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"})},People:function({color:e}){return t.createElement("path",{fill:e,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"})},Publishing:function({color:e}){return t.createElement("path",{fill:e,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"})},Registrations:function({color:e}){return t.createElement("path",{fill:e,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"})},Services:function({color:e}){return t.createElement("path",{fill:e,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"})}};const et=["appName","colors","style","size"];function tt({color:e="#fff"}){return t.createElement("path",{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",fill:e})}function nt(e){let{appName:n,colors:a,style:r,size:i=20}=e,l=De(e,et);return t.createElement("svg",Te({xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 20 20",role:"img","aria-labelledby":"title desc",style:Te({display:"block"},r)},l),t.createElement("title",{id:"title"},"Planning Center ",n," App Icon"),t.createElement("desc",{id:"desc"},"An image symbolizing the Planning Center ",n," app."),"Accounts"===n?null:t.createElement(tt,null),Ke[n]?t.createElement(Ke[n],{color:"Accounts"!=n?a.base0:"#fff"}):t.createElement("div",null,"appName not supported"))}var at={__proto__:null,Accounts:function({color:e,size:n=20}){return t.createElement("svg",{"data-name":"Layer 1",height:n,id:"4ce749c7-c01e-4a9b-9496-b14fd2e761aa",viewBox:"0 0 77.073 20",xmlns:"http://www.w3.org/2000/svg"},t.createElement("title",null,"accounts-text"),t.createElement("path",{fill:e,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"}))},API:function({color:e,size:n=20}){return t.createElement("svg",{"data-name":"Layer 1",height:n,id:"bed028ef-58ee-4c4c-a757-08ecc3276857",viewBox:"0 0 119.5 20",xmlns:"http://www.w3.org/2000/svg"},t.createElement("title",null,"api-text"),t.createElement("path",{fill:e,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"}))},Calendar:function({color:e,size:n=20}){return t.createElement("svg",{"data-name":"Layer 1",height:n,id:"Layer_1",viewBox:"0 0 73.83 20",xmlns:"http://www.w3.org/2000/svg"},t.createElement("title",null,"calendar-text"),t.createElement("path",{fill:e,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"}))},CheckIns:function({color:e,size:n=20}){return t.createElement("svg",{"data-name":"Layer 1",height:n,id:"dc713595-39c2-41c4-b1d9-3ef8c295b738",viewBox:"0 0 79.311 20",xmlns:"http://www.w3.org/2000/svg"},t.createElement("title",null,"check-ins-text"),t.createElement("path",{fill:e,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"}))},ChurchCenter:function({color:e,size:n=20}){return t.createElement("svg",{"data-name":"Layer 1",height:n,id:"e2e8a225-c349-4aea-935c-64b6ad436be8",viewBox:"0 0 118.083 20",xmlns:"http://www.w3.org/2000/svg"},t.createElement("title",null,"church-center-text"),t.createElement("path",{fill:e,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"}))},Giving:function({color:e,size:n=20}){return t.createElement("svg",{"data-name":"Layer 1",height:n,id:"a221b42b-722d-4eb3-b043-fff7f3c6686f",viewBox:"0 0 50.486 20",xmlns:"http://www.w3.org/2000/svg"},t.createElement("title",null,"giving-text"),t.createElement("path",{fill:e,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"}))},Home:function({color:e,size:n=20}){return t.createElement("svg",{id:"a221b42b-722d-4eb3-b043-fff7f3c6686f","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",height:n,viewBox:"0 0 47.624 20"},t.createElement("title",null,"home-text"),t.createElement("path",{fill:e,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"}))},Groups:function({color:e,size:n=20}){return t.createElement("svg",{"data-name":"Layer 1",height:n,id:"08e4075e-8ca4-4400-a3ae-98f53270d1d0",viewBox:"0 0 58.688 20",xmlns:"http://www.w3.org/2000/svg"},t.createElement("title",null,"groups-text"),t.createElement("path",{fill:e,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"}))},People:function({color:e,size:n=20}){return t.createElement("svg",{"data-name":"Layer 1",height:n,id:"c461f8d4-1c6e-406e-af2d-8d7721d891d5",viewBox:"0 0 57.729 20",xmlns:"http://www.w3.org/2000/svg"},t.createElement("title",null,"people-text"),t.createElement("path",{fill:e,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"}))},Publishing:function({color:e,size:n=20}){return t.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",height:n,viewBox:"0 0 84.973 20"},t.createElement("title",null,"publishing-text"),t.createElement("path",{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",fill:e}))},Registrations:function({color:e,size:n=20}){return t.createElement("svg",{id:"2da9f999-408b-4466-9b5d-b1268727ac81","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",height:n,viewBox:"0 0 105.758 20"},t.createElement("title",null,"registrations-text"),t.createElement("path",{fill:e,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"}))},Services:function({color:e,size:n=20}){return t.createElement("svg",{id:"bd77a8f3-6992-4241-927e-9fdc3bf67b80","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",height:n,viewBox:"0 0 67.995 20"},t.createElement("title",null,"services-text"),t.createElement("path",{fill:e,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"}))}};function rt({appName:e,color:n,size:a=20}){return at[e]?t.createElement(at[e],{color:n,size:a}):t.createElement("div",null,"appName not supported")}const it={transition:"background-color 120ms ease-in"},lt={fontFamily:"inherit"},ot={flex:"1 1 auto"},st=["dot","dotFill","fill","style"],ct=["dark","id","style"],dt=["colors","style"],ut=["fill","size","style"],mt=["fill","style"],ht=["fill","style"],pt=e=>{let{dot:n=!1,dotFill:a="#fff",fill:r="#fff",style:i}=e,l=De(e,st);const o=t.createElement("path",{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",fill:"white"});return t.createElement("svg",Te({width:"24",height:"24",viewBox:"0 0 24 24",style:Te({display:"block"},i)},l,{stroke:"none"}),t.createElement("title",null,"bell"),t.createElement("defs",null,t.createElement("mask",{id:"mask-no-dot"},o),t.createElement("mask",{id:"mask-dot"},o,t.createElement("circle",{cx:"18",cy:"6",fill:"black",r:"7"}))),t.createElement("rect",{fill:r,height:"24",mask:n?"url(#mask-dot)":"url(#mask-no-dot",width:"24",x:"0",y:"0"}),n&&t.createElement("circle",{cx:"18",cy:"6",r:"4",fill:a||r}))},ft=e=>{let{dark:n=!1,id:a="default",style:r}=e,i=De(e,ct);return t.createElement("svg",Te({fill:"none",height:"123",style:Te({},r),width:"160"},i),t.createElement("g",{clipPath:`url(#clip-path-blank-state-${a})`},t.createElement("path",{opacity:".6",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",fill:n?"#414141":"#E1F0F9"}),t.createElement("g",{opacity:".2"},t.createElement("path",{opacity:".2",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",fill:"#BAC7D3"})),t.createElement("path",{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",fill:"#FCC846"}),t.createElement("path",{d:"M68.778 36.633l-19.982 57.63 57.919-20.127-37.937-37.502z",fill:"#48A5E5"}),t.createElement("path",{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",fill:"#79CAF2"}),t.createElement("path",{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",fill:n?"#525252":"#636363"}),t.createElement("path",{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",fill:"#FCC846"})),t.createElement("defs",null,t.createElement("clipPath",{id:`clip-path-blank-state-${a}`},t.createElement("path",{fill:"#fff",d:"M0 0h160v122.063H0z"}))))},gt=e=>{let{colors:n,style:a}=e,r=De(e,dt);return t.createElement("svg",Te({color:n.base3,height:"16",viewBox:"0 0 16 16",width:"16"},{style:a},r),t.createElement("title",null,"chevron"),t.createElement("polygon",{fill:"currentColor",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"}))},vt=e=>{let{fill:n="#000",size:a=24,style:r}=e,i=De(e,ut);return t.createElement("svg",Te({height:a,style:Te({display:"block"},r),viewBox:"0 0 16 16",width:a},i),t.createElement("title",null,"exclamation triangle icon"),t.createElement("path",{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",fill:n}))},yt=e=>{let{fill:n="#000",style:a}=e,r=De(e,mt);return t.createElement("svg",Te({width:"24",height:"24",viewBox:"0 0 24 24",style:Te({display:"block"},a)},r),t.createElement("title",null,"search spyglass icon"),t.createElement("path",{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",fill:n}))},Et=e=>{let{fill:n="#A0A0A0",style:a}=e,r=De(e,ht);return t.createElement("svg",Te({width:"16",height:"16",viewBox:"0 0 16 16",style:Te({display:"block"},a)},r),t.createElement("title",null,"close-x"),t.createElement("path",{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",fill:n}))},wt=["style"];function bt(e){let{style:n}=e,a=De(e,wt);return t.createElement("button",Te({style:Te({WebkitAppearance:"none",appearance:"none",backgroundColor:"transparent",border:"none",cursor:"pointer",display:"inline-block",outline:0,padding:0},lt,n)},a))}const kt=["appName","colors","displayIconOnly","expanded","onClick","style"],_t=e=>{let{appName:n,colors:a,displayIconOnly:r,expanded:i,onClick:l,style:o=null}=e,s=De(e,kt);const[c,d]=t.useState(!1),[u,m]=t.useState(!1);return t.createElement(bt,Te({onClick:l,onMouseDown:()=>d(!0),onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),onMouseUp:()=>d(!1),style:Te({alignItems:"center",backgroundColor:i&&!c?a.base1:u&&c?a.base2:u?a.base1:"transparent",display:"flex",height:"100%",outline:0,paddingLeft:"16px",paddingRight:"16px",whiteSpace:"nowrap"},it,o)},s),t.createElement(nt,{appName:n.replace(/[\s-]/,""),colors:a,size:24}),!r&&t.createElement(t.Fragment,null,"Accounts"===n?t.createElement("div",{style:{color:"#fff",fontSize:"14px",fontWeight:500,marginLeft:3}},"Account settings"):t.createElement(t.Fragment,null,t.createElement("div",{key:"spacer-1",style:{margin:4}}),t.createElement(rt,{appName:n.replace(/[\s-]/,""),color:"#fff",key:"mono-app-name",size:24})),t.createElement("div",{key:"space-2",style:{margin:4}}),t.createElement(gt,{colors:a,key:"disclosure-chevron-icon",style:{display:"block"}})))};var Ct={__proto__:null,Accounts:function(){return[t.createElement("defs",{key:"def"},t.createElement("linearGradient",{id:"2e1ed2e7-b842-4126-8f57-f6b6dd63ddb6",x1:"1.844",y1:"1.833",x2:"18.622",y2:"18.612",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{offset:"0",stopColor:"#32a0f0"}),t.createElement("stop",{offset:"1",stopColor:"#3f75e5"}))),t.createElement("title",{key:"title"},"accounts-squircle"),t.createElement("path",{key:"path",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",fill:"url(#2e1ed2e7-b842-4126-8f57-f6b6dd63ddb6)"})]},API:function(){return[t.createElement("defs",{key:"def"},t.createElement("linearGradient",{id:"c8ec303e-a96d-4850-93ae-70864e3306bb",x1:"0.991",y1:"0.983",x2:"19.295",y2:"19.288",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{offset:"0",stopColor:"#32a0f0"}),t.createElement("stop",{offset:"1",stopColor:"#3f75e5"}))),t.createElement("title",{key:"title"},"api-squircle"),t.createElement("path",{key:"path",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",fill:"url(#c8ec303e-a96d-4850-93ae-70864e3306bb)"})]},Calendar:function(){return[t.createElement("defs",{key:"defs"},t.createElement("linearGradient",{id:"calendar-gradient",x1:"2.05",y1:"2.04",x2:"17.97",y2:"17.96",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{offset:"0",stopColor:"#f25437"}),t.createElement("stop",{offset:"1",stopColor:"#cd4e39"}))),t.createElement("title",{key:"title"},"calendar-squircle"),t.createElement("path",{key:"path",d:"M20,10c0,8-2,10-10,10S.06,18,.06,10,2.05.05,10,.05,20,2,20,10Z",fill:"url(#calendar-gradient)"})]},CheckIns:function(){return[t.createElement("defs",{key:"def"},t.createElement("linearGradient",{id:"679bc2bf-38c8-45ab-9ee3-a2ff814fead7",x1:"1.75",y1:"1.739",x2:"18.156",y2:"18.145",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{offset:"0",stopColor:"#a76ebe"}),t.createElement("stop",{offset:"1",stopColor:"#875e96"}))),t.createElement("title",{key:"title"},"check-ins-squircle"),t.createElement("path",{key:"path",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",fill:"url(#679bc2bf-38c8-45ab-9ee3-a2ff814fead7)"})]},ChurchCenter:function(){return[t.createElement("defs",{key:"def"},t.createElement("linearGradient",{id:"6de99831-a6f8-498e-9bf3-9d55c8d887fa",x1:"2.04",y1:"2.029",x2:"17.976",y2:"17.965",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{offset:"0",stopColor:"#42a5f5"}),t.createElement("stop",{offset:"1",stopColor:"#66bb6a"}))),t.createElement("title",{key:"title"},"church-center-squircle"),t.createElement("path",{key:"path",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",fill:"url(#6de99831-a6f8-498e-9bf3-9d55c8d887fa)"})]},Giving:function(){return[t.createElement("defs",{key:"def"},t.createElement("linearGradient",{id:"0aae6372-b733-476d-af45-8777c08c1e24",x1:"2.047",y1:"2.036",x2:"17.969",y2:"17.959",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{offset:"0",stopColor:"#f5c426"}),t.createElement("stop",{offset:"1",stopColor:"#f2b327"}))),t.createElement("title",{key:"title"},"giving-squircle"),t.createElement("path",{key:"path",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",fill:"url(#0aae6372-b733-476d-af45-8777c08c1e24)"})]},Groups:function(){return[t.createElement("defs",{key:"def"},t.createElement("linearGradient",{id:"86d10072-1c7f-4a02-88fe-0735565ae99a",x1:"1.939",y1:"1.928",x2:"18.146",y2:"18.135",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{offset:"0",stopColor:"#ff962d"}),t.createElement("stop",{offset:"1",stopColor:"#fc7638"}))),t.createElement("title",{key:"title"},"groups-squircle"),t.createElement("path",{key:"path",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",fill:"url(#86d10072-1c7f-4a02-88fe-0735565ae99a)"})]},Home:function(){return[t.createElement("defs",{key:"def"},t.createElement("linearGradient",{id:"paint0_linear_1_2",x1:"-2.23242",y1:"0.320978",x2:"19.9609",y2:"22.5228",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{offset:"0",stopColor:"#289DFF"}),t.createElement("stop",{offset:"1",stopColor:"#2266F7"}))),t.createElement("title",{key:"title"},"home-squircle"),t.createElement("path",{key:"path",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",fill:"url(#paint0_linear_1_2)"})]},People:function(){return[t.createElement("defs",{key:"def"},t.createElement("linearGradient",{id:"7f805f16-2322-4b42-b61a-2bf71eadb25a",x1:"2.047",y1:"2.036",x2:"17.969",y2:"17.958",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{offset:"0",stopColor:"#32a0f0"}),t.createElement("stop",{offset:"1",stopColor:"#3f75e5"}))),t.createElement("title",{key:"title"},"people-squircle"),t.createElement("path",{key:"path",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",fill:"url(#7f805f16-2322-4b42-b61a-2bf71eadb25a)"})]},Publishing:function(){return[t.createElement("defs",{key:"def"},t.createElement("linearGradient",{id:"publishing-gradient",x1:"2.047",y1:"2.036",x2:"17.969",y2:"17.958",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{offset:"0",stopColor:"#787882"}),t.createElement("stop",{offset:"1",stopColor:"#5f5f69"})),t.createElement("linearGradient",{id:"publishing-gradient-2",x1:"2.03",y1:"2.03",x2:"17.952",y2:"17.952",gradientTransform:"translate(2.563 -2.028) rotate(13.283)",xlinkHref:"#publishing-gradient"})),t.createElement("title",{key:"title"},"publishing-squircle"),t.createElement("path",{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",fill:"url(#publishing-gradient)",key:"path"}),t.createElement("circle",{cx:"9.991",cy:"9.991",r:"9.951",transform:"translate(-2.028 2.563) rotate(-13.283)",fill:"url(#publishing-gradient-2)",key:"circle"})]},Registrations:function(){return[t.createElement("defs",{key:"def"},t.createElement("linearGradient",{id:"bd67604d-f11c-4431-bd82-159c57241115",x1:"2.047",y1:"2.036",x2:"17.969",y2:"17.958",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{offset:"0",stopColor:"#41b99e"}),t.createElement("stop",{offset:"1",stopColor:"#46948d"}))),t.createElement("title",{key:"title"},"registrations-squircle"),t.createElement("path",{key:"path",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",fill:"url(#bd67604d-f11c-4431-bd82-159c57241115)"})]},Services:function(){return[t.createElement("defs",{key:"def"},t.createElement("linearGradient",{id:"00f9217c-0536-41ea-b265-a8689874be71",x1:"2.04",y1:"2.029",x2:"17.976",y2:"17.965",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{offset:"0",stopColor:"#6eaa50"}),t.createElement("stop",{offset:"1",stopColor:"#6a9639"}))),t.createElement("title",{key:"title"},"services-squircle"),t.createElement("path",{key:"path",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",fill:"url(#00f9217c-0536-41ea-b265-a8689874be71)"})]}};function xt({appName:e,size:n=20}){return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 20 20",style:{display:"block"}},t.createElement(Ct[e]?Ct[e]:"span",{key:"key1"}),Ke[e]?t.createElement(Ke[e],{color:"#fff",key:"key2"}):t.createElement("div",{key:"key3"},"appName not supported"))}function St(e){var t,n,a;const r=`/apps/${e.toLowerCase()}`,i=null==(t=window)||null==(n=t.location)||null==(a=n.pathname)?void 0:a.toString();if(!i)return r;const l=new URLSearchParams;return l.append("referer",i),`${r}?${l.toString()}`}const Mt=["active","component","style"],At=e=>{let{active:n=!1,component:a="span",style:r=null}=e,i=De(e,Mt);const[l,o]=t.useState(!1);return t.createElement(a,Te({onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),style:Te({},r,{backgroundColor:n?"#ededed":l?"#f7f7f7":"transparent"})},i))},Tt=["cleanup","onOutsideClick","visible"];class Nt extends t.Component{constructor(e){super(e),this.container=void 0,this.handleOutsideClick=this.handleOutsideClick.bind(this)}componentWillUnmount(){document.removeEventListener("click",this.handleOutsideClick,!0)}handleOutsideClick(e){if(!this.container.contains(e.target))return e.stopPropagation(),e.preventDefault(),this.props.onOutsideClick()}render(){const e=this.props,{cleanup:n}=e,a=De(e,Tt);return n?document.removeEventListener("click",this.handleOutsideClick,!0):document.addEventListener("click",this.handleOutsideClick,!0),t.createElement("div",Te({ref:e=>this.container=e},a))}}const Dt=["style"],Ot=e=>{let{style:n=null}=e,a=De(e,Dt);return t.createElement("div",Te({style:Te({alignSelf:"flex-end",display:"flex",position:"relative"},n)},a))},Pt=["component","style"],Vt=e=>{let{component:n="div",style:a=null}=e,r=De(e,Pt);return t.createElement(n,Te({style:Te({background:"#FFFFFF",borderRadius:"3px",boxShadow:"0 0 0 1px #D4D9E2, 0 8px 32px rgba(0,0,0,.3)",overflow:"hidden",position:"absolute"},a)},r))},zt=({appName:e,apps:n,env:a,toggle:r,visible:i})=>{const l=n.find(({name:e})=>"Accounts"===e),o=n.find(({name:e})=>"Home"===e),s=[...n].filter(({name:e})=>"Home"!==e&&"Accounts"!==e).sort((e,t)=>e.name.localeCompare(t.name)),c=Te({},lt,{alignItems:"center",display:"flex",height:"48px",overflow:"hidden",padding:"0 16px",verticalAlign:"middle"});return t.createElement(Ot,null,t.createElement(Vt,{cleanup:!i,component:Nt,onOutsideClick:r,style:Te({marginTop:"8px"},i?{opacity:1,transition:"none",visibility:"visible"}:{opacity:0,transition:"all 120ms ease-in",visibility:"hidden"})},t.createElement("menu",{"data-pendo":"app-switcher",style:{margin:0,minWidth:180,padding:0}},o&&t.createElement(At,{component:"a","data-pendo":`app-switcher--change-app--${o.name}`,"data-turbolinks":!1,href:e===o.name?`${d(a)("accounts")}/apps/${e}`:d(a)("accounts")+St(o.name),style:Te({},c,{borderBottom:"1px solid #ededed"})},t.createElement("div",{style:{marginRight:"6px"}},t.createElement(xt,{appName:"Home",size:20})),t.createElement(rt,{appName:"Home",color:"#444",size:18})),s.map(({name:n},r)=>{const i=0===r,l=r===s.length-1;return t.createElement(At,{component:"a","data-pendo":`app-switcher--change-app--${n}`,"data-turbolinks":!1,href:n===e?`${d(a)("accounts")}/apps/${n.toLowerCase()}`:d(a)("accounts")+St(n),key:n,style:Te({},c,{height:"40px",paddingBottom:l?"4px":null,paddingTop:i?"4px":null})},t.createElement("div",{style:{marginRight:"6px"}},t.createElement(xt,{appName:n.replace(/[\s-]/,""),size:20})),t.createElement(rt,{appName:n.replace(/[\s-]/,""),color:"#444",size:18}))}),l&&t.createElement(At,{component:"a","data-pendo":`app-switcher--change-app--${l.name}`,"data-turbolinks":!1,href:d(a)("accounts")+St(l.name),style:Te({},c,{borderTop:"1px solid #ededed",padding:"0 12px",textDecoration:"none"})},t.createElement("svg",{height:22,style:{display:"block",marginRight:"2px"},viewBox:"0 0 20 20",width:22,xmlns:"http://www.w3.org/2000/svg"},t.createElement(Xe,{color:"#9e9e9e",key:"key2"})),t.createElement("div",{style:{color:"#737373",fontSize:"12px",lineHeight:"28px"}},"Account settings")))))},Ht=e=>{return(t="name",e=>e.slice().sort((e,n)=>e[t].localeCompare(n[t])))(e).reduce((e,t)=>"Church Center"===(t.name||"")||"API"===(t.name||"")?e:"Home"===t.name?[t,...e]:[...e,t],[]);var t},Lt=e=>e.slice().sort((e,t)=>e.attributes.organization_name.localeCompare(t.attributes.organization_name)),Rt=(e=(e=>e))=>u(Fe.subscribe,()=>e(Fe.getState())),Yt=["children","style"];function Zt(e){let{children:n,style:a}=e,r=De(e,Yt);return t.createElement("nav",Te({className:"simple","data-pendo":"topbar","aria-label":"topbar-navigation",style:Te({MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",alignItems:"center",color:"white",display:"flex",height:"48px",position:"relative"},a)},r),t.createElement("style",null,"\n @media only print {\n .simple {\n display: none !important;\n }\n }\n "),n)}const It={danger43:"hsl(8 60% 43%)",danger45:"hsl(8 60% 45%)",danger47:"hsl(8 60% 47%)",danger93:"hsl(9 59% 93%)",danger97:"hsl(7 60% 97%)",darkNeutral07:"hsl(0 0% 7%)",darkNeutral12:"hsl(0 0% 12%)",darkNeutral15:"hsl(0 0% 15%)",darkNeutral17:"hsl(0 0% 17%)",darkNeutral19:"hsl(0 0% 19%)",darkNeutral24:"hsl(0 0% 24%)",darkNeutral32:"hsl(0 0% 32%)",darkNeutral50:"hsl(0 0% 50%)",darkNeutral68:"hsl(0 0% 68%)",darkNeutral88:"hsl(0 0% 88%)",darkNeutral98:"hsl(0 0% 98%)",interaction45:"hsl(221 75% 45%)",interaction50:"hsl(221 91% 50%)",interaction55:"hsl(221 91% 55%)",interaction66:"hsl(221 91% 66%)",interaction91:"hsl(221 91% 91%)",interaction93:"hsl(221 91% 93%)",interaction97:"hsl(221 89% 97%)",lightNeutral12:"hsl(0 0% 12%)",lightNeutral24:"hsl(0 0% 24%)",lightNeutral45:"hsl(0 0% 45%)",lightNeutral62:"hsl(0 0% 62%)",lightNeutral81:"hsl(0 0% 81%)",lightNeutral88:"hsl(0 0% 88%)",lightNeutral93:"hsl(0 0% 93%)",lightNeutral95:"hsl(0 0% 95%)",lightNeutral97:"hsl(0 0% 97%)",lightNeutral98:"hsl(0 0% 98%)",lightNeutral100:"hsl(0 0% 100%)",success23:"hsl(86 91% 23%)",success25:"hsl(86 91% 25%)",success27:"hsl(86 91% 27%)",success91:"hsl(95 50% 91%)",success97:"hsl(93 53% 97%)",warning20:"hsl(42 100% 20%)",warning49:"hsl(42 84% 49%)",warning55:"hsl(42 84% 55%)",warning63:"hsl(42 84% 63%)",warning94:"hsl(42 84% 94%)",warning97:"hsl(42 84% 97%)"},Ut=["style"],Wt=e=>{let{style:n=null}=e,a=De(e,Ut);return t.createElement("div",Te({style:Te({alignSelf:"flex-end",display:"flex",position:"relative"},n)},a))},Ft=({appName:e,connectedPeople:n,env:a,hasConnectedPeople:r,requestClearAppsCache:i,requestClearConnectedPeopleCache:l,requestSwitchConnectedPerson:o,requestUnlinkConnectedPeople:s,setUserMenuVisible:c,userMenuVisible:u})=>{const y=`${d(a)("login")}/logout`;return t.createElement(Wt,null,t.createElement(Vt,{component:Nt,onOutsideClick:()=>c(!1),cleanup:!u,style:Te({color:"#525252",marginTop:"8px",maxHeight:"75vh",maxWidth:"320px",minWidth:"242px",overflow:"auto",right:0},u?{opacity:1,transition:"none",visibility:"visible"}:{opacity:0,transition:"all 120ms ease-in",visibility:"hidden"},{cursor:"default"})},t.createElement("div",null,r?t.createElement("div",{style:{alignItems:"center",backgroundColor:"#eee",display:"flex",lineHeight:"32px",padding:"0 16px"}},t.createElement("div",{style:Te({},ot,{color:"#666",fontSize:"12px",textTransform:"uppercase",whiteSpace:"nowrap"},lt)},"Linked Accounts"),t.createElement("div",{style:Te({},ot,{alignItems:"center",fontSize:"12px",textAlign:"right"})},t.createElement("a",{href:"",onClick:e=>{i(),l(),s(),e.preventDefault()},style:Te({color:"#666",marginLeft:"64px",textDecoration:"none"},lt)},"unlink"))):t.createElement("noscript",null),t.createElement("style",null,"\n .NotSmallTopbar__connected-people-list > *:first-child > * { border-top-width: 0 !important }\n "),t.createElement("ul",{className:"NotSmallTopbar__connected-people-list",style:{listStyleType:"none",margin:0,padding:0}},Lt(n).map(({id:n,attributes:a})=>t.createElement(At,{component:"li",key:n},t.createElement("a",{href:"",onClick:t=>{i(),l(),o(n,`${e}/`),t.preventDefault()},style:Te({borderTop:"1px solid #ddd",color:"#444",display:"block",lineHeight:"48px",overflow:"hidden",paddingLeft:"16px",paddingRight:"16px",textDecoration:"none",textOverflow:"ellipsis",whiteSpace:"nowrap"},lt)},a.organization_name))))),t.createElement(m,null,r&&t.createElement(h,null),t.createElement("form",{method:"POST",action:y},t.createElement(p,{"data-turbolinks":!1,hover:{backgroundColor:It.lightNeutral97},onClick:()=>{i(),l()},style:{padding:0},theme:!1,type:"submit",width:"100%"},t.createElement(f,{distribution:"space-between",alignment:"center",axis:"horizontal",grow:1,paddingHorizontal:2,paddingVertical:1.5,spacing:4},t.createElement(g,{color:It.lightNeutral45,lineHeight:"24px"},"Log out"),t.createElement(v,{name:"general.intoBox",fill:It.lightNeutral45})))))))},jt=["active","component","hover","innerRef","style"],$t=e=>{let{active:n=null,component:a="div",hover:r=null,innerRef:i=null,style:l=null}=e,o=De(e,jt);const[s,c]=t.useState(!1),[d,u]=t.useState(!1);return t.createElement(a,Te({onMouseDown:()=>c(!0),onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),onMouseUp:()=>c(!1),style:Te({},lt,l,d&&r,s&&n)},i&&{ref:i},o))},Bt=({colors:e,orgName:n,requestConnectedPeopleFetch:a,setUserMenuVisible:r,showOrgName:i})=>t.createElement("div",{style:{cursor:"pointer",marginLeft:"16px",position:"relative",whiteSpace:"nowrap"},"data-pendo":"topbar-org-switcher"},t.createElement($t,{component:"button",type:"button",style:Te({WebkitAppearance:"none",alignItems:"center",appearance:"none",backgroundColor:e.base1,border:"none",borderRadius:"9999px",color:e.text||"#fff",cursor:"pointer",display:"flex",fontSize:"13px",lineHeight:"32px",outline:0,padding:0},it),active:{backgroundColor:e.base3},hover:{backgroundColor:e.base2},onClick:()=>{r(e=>!e),a()}},t.createElement("div",{style:{marginLeft:8}}),i?t.createElement("div",{style:{fontSize:"13px",margin:"0 8px 0 8px",maxWidth:"240px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},n):t.createElement("div",{style:{margin:"0 4px 0 4px"}}),t.createElement("div",{style:{paddingRight:"8px"}},t.createElement(gt,{colors:e,style:{margin:"-3px"}})))),Gt=["active","colors","style"],qt=e=>{const[n,a]=t.useState(!1),[r,i]=t.useState(!0),[l,o]=t.useState(!1),{hasConnectedPeople:s,notificationsEnabled:c}=Rt();return t.createElement(Zt,{style:Te({paddingLeft:"8px",paddingRight:"16px"},e.style)},t.createElement(zt,{env:e.env,appName:e.appName,apps:Ht(e.apps),visible:n,toggle:()=>a(e=>!e)}),t.createElement(_t,{colors:e.colors,expanded:n,onClick:()=>{a(e=>!e),e.requestAppsFetch()},appName:e.appName}),t.createElement("div",{style:{margin:"12px"}}),r&&e.routes,t.createElement("div",{style:{margin:"auto"}}),!c&&e.notifications(),e.search({hideRoutes:()=>i(!1),showRoutes:()=>i(!0)}),t.createElement(Bt,{colors:e.colors,orgName:e.orgName,requestConnectedPeopleFetch:e.requestConnectedPeopleFetch,setUserMenuVisible:o,showOrgName:e.showOrgName}),t.createElement(Ft,{appName:e.appName,hasConnectedPeople:s,connectedPeople:e.connectedPeople,env:e.env,requestClearAppsCache:e.requestClearAppsCache,requestClearConnectedPeopleCache:e.requestClearConnectedPeopleCache,requestSwitchConnectedPerson:e.requestSwitchConnectedPerson,requestUnlinkConnectedPeople:e.requestUnlinkConnectedPeople,setUserMenuVisible:o,userMenuVisible:l}))};qt.defaultProps={notifications:()=>null,search:()=>null,showOrgName:!0,useDummyNotifications:!1};const Jt=e=>{let{active:n,colors:a,style:r=null}=e,i=De(e,Gt);const[l,o]=t.useState(!1),[s,c]=t.useState(!1);return t.createElement("a",Te({style:Te({backgroundColor:l&&s?a.base2:l||n?a.base1:"transparent",borderRadius:"9999px",color:a.text||"#fff",fontSize:"14px",fontWeight:600,lineHeight:"32px",marginRight:"4px",paddingLeft:"12px",paddingRight:"12px",textDecoration:"none",textTransform:"capitalize",verticalAlign:"middle",whiteSpace:"nowrap"},lt,it,r),onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),onMouseDown:()=>c(!0),onMouseUp:()=>c(!1)},i))},Qt=["style"],Xt=["children","className","colors","style"];class Kt extends t.Component{constructor(e){super(e),this.state={announcements:e.initialAnnouncements}}dismissAnnouncements(e){return this.setState(({announcements:t})=>{const n=t;return t[e]&&delete n[e],{announcements:n}}),ze(this.props.configuredFetch,`${d(this.props.env)("api")}/people/v2/me/platform_notifications/${e}/dismiss`,{method:"POST"})}render(){return t.createElement(t.Fragment,null,this.props.children({announcements:this.props.formatter(this.state.announcements)},{dismissAnnouncements:this.dismissAnnouncements.bind(this)}))}}Kt.defaultProps={formatter:function(e){return function(e){const t=Object.keys(e);let n=t.length;const a=new Array(n);for(;n--;)a[n]=[t[n],e[t[n]]];return a}(e).map(e=>({data:e[1],id:e[0]}))}};class en extends t.Component{render(){const e=this.props,{style:n}=e,a=De(e,Qt);return t.createElement(Je,{render:e=>t.createElement("div",Te({style:Te({alignItems:"center",display:"flex",justifyContent:"space-between",paddingBottom:14,paddingLeft:-1!==["xs","sm"].indexOf(e)?16:24,paddingRight:18,paddingTop:14},n)},a))})}}class tn extends t.Component{render(){const e=this.props,{children:n,colors:a,style:r}=e,i=De(e,Xt);return t.createElement("div",Te({className:["__Topbar_PlatformAnnouncements_link"].join(" ").trim(),style:Te({backgroundColor:"#282828",color:"white",fontSize:"14px"},r)},i),t.createElement("style",null,`\n .__Topbar_PlatformAnnouncements_link { color: white }\n .__Topbar_PlatformAnnouncements_link a { color: ${a.base0} }\n .__Topbar_PlatformAnnouncements_link a:hover { color: ${a.base1} }\n .__Topbar_PlatformAnnouncements_link a:active { color: ${a.base2} }\n `),n)}}class nn extends t.Component{render(){return t.createElement(tn,{colors:this.props.colors},t.createElement(Kt,{env:this.props.env,initialAnnouncements:this.props.data,configuredFetch:this.props.configuredFetch},(e,n)=>Boolean(e.announcements.length>0)?t.createElement("div",null,e.announcements.map(e=>this.props.renderItem({actions:n,announcement:e}))):null))}}function an(e){let n=Te({},(Ne(e),e));return t.createElement("button",Te({type:"button",style:{WebkitAppearance:"none",backgroundColor:"transparent",borderWidth:0,cursor:"pointer",margin:-8,padding:8}},n),t.createElement(Et,{fill:"white",style:{height:20,width:20}}))}function rn(e){return t.createElement(en,null,t.createElement("span",{dangerouslySetInnerHTML:{__html:e.html}}),t.createElement(an,{onClick:e.onClick}))}nn.defaultProps={configuredFetch:Pe,renderItem:({announcement:e,actions:n})=>t.createElement(rn,{key:e.id,html:e.data.html,onClick:()=>n.dismissAnnouncements(e.id)})};const ln=["colors","html","onClick"],on=["children","className","colors","style"],sn=["style"];function cn(e){let{colors:n,html:a="",onClick:r=(e=>{})}=e,i=De(e,ln);const[l,o]=t.useState(!1);return l||!a?null:t.createElement(dn,Te({colors:n},i),t.createElement(un,null,t.createElement("span",{dangerouslySetInnerHTML:{__html:a}}),t.createElement(mn,{onClick:e=>{r(e),o(!0)}})))}class dn extends t.Component{render(){const e=this.props,{children:n,className:a,colors:r,style:i}=e,l=De(e,on);return t.createElement("div",Te({className:["Topbar_ProductAnnouncement",a].filter(Boolean).join(" ").trim(),style:Te({backgroundColor:r.base1},i)},l),t.createElement("style",null,"\n .Topbar_ProductAnnouncement {\n color: white;\n font-size: 14px;\n }\n .Topbar_ProductAnnouncement a { color: white; font-weight: bold; }\n "),n)}}class un extends t.Component{render(){const e=this.props,{style:n}=e,a=De(e,sn);return t.createElement(Je,{render:e=>t.createElement("div",Te({style:Te({alignItems:"center",boxSizing:"border-box",display:"flex",justifyContent:"space-between",paddingBottom:14,paddingLeft:-1!==["xs","sm"].indexOf(e)?16:24,paddingRight:18,paddingTop:14},n)},a))})}}function mn(e){let n=Te({},(Ne(e),e));return t.createElement("button",Te({type:"button",style:{WebkitAppearance:"none",backgroundColor:"transparent",borderWidth:0,cursor:"pointer",margin:-8,padding:8}},n),t.createElement(Et,{fill:"white",style:{height:20,width:20}}))}const hn=["env","url","style"];function pn(e){let{env:n,url:a="",style:r}=e,i=De(e,hn);const l=a||`${d(n)("people")}/static/no_photo_thumbnail_gray.svg`;return t.createElement("div",Te({style:Te({backgroundColor:"white",backgroundImage:`url(${l})`,backgroundPosition:"center",backgroundSize:"cover",borderRadius:"50%",height:"26px",marginLeft:"4px",width:"26px"},r)},i))}class fn extends t.Component{update(e){return window[this.props.method].setItem(this.props.item,JSON.stringify(e)),this.forceUpdate()}render(){return t.createElement(t.Fragment,null,this.props.render(JSON.parse(window[this.props.method].getItem(this.props.item))||void 0,this.update.bind(this)))}}function gn({env:e}){const n="accounts";return t.createElement("a",{style:{alignItems:"center",display:"flex",height:"48px",paddingLeft:"12px",paddingRight:"16px",textDecoration:"none"},"data-pendo":`app-switcher--change-app--${n}`,"data-turbolinks":!1,href:d(e)(n)+St(n)},t.createElement("svg",{height:22,style:{display:"block",marginRight:"2px"},viewBox:"0 0 20 20",width:22,xmlns:"http://www.w3.org/2000/svg"},t.createElement(Xe,{color:It.lightNeutral45,key:"key2"})),t.createElement("div",{style:{color:It.lightNeutral45,fontSize:"12px",lineHeight:"48px",textDecoration:"none"}},"Account settings"))}fn.defaultProps={method:"localStorage"};const vn=({color:e=It.lightNeutral100,size:n=22,style:a={}})=>t.createElement("div",{style:a},t.createElement(Et,{fill:e,style:{height:`${n}px`,width:`${n}px`}}));function yn({env:e,appName:t,userId:n}){var a,r,i;const l=d(e)("login")+`/people/AC${n}`,o=null==(a=window)||null==(r=a.location)||null==(i=r.pathname)?void 0:i.toString();if(!o)return l;const s=new URLSearchParams;return s.append("return",`${t}/${o}`),`${l}?${s.toString()}`}const En=({isActive:e})=>{const n=e?"hsl(86, 91%, 27%)":"hsl(8, 60%, 47%)";return t.createElement("div",{style:{alignItems:"center",display:"flex",fontSize:"13px",marginBottom:2,marginTop:4}},t.createElement("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none"},t.createElement("path",e?{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",fill: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",fill:n})),t.createElement("span",{style:{color:"#888",marginLeft:4,whiteSpace:"nowrap"}},"Two-step verification ",e?"active":"inactive"))},{generateColorScale:wn}=y,bn={colors:Te({},wn({baseColor:"#2266f7",key:"primary"})),icons:{churchCenter:Y,general:Z,people:I,toolbar:U},id:"topbar"};function kn({appName:e,connectedPeople:n,env:a,hasConnectedPeople:r,linkToProfile:i,mfaConfigured:l,mfaEnabled:o,requestClearAppsCache:s,requestClearConnectedPeopleCache:c,requestSwitchConnectedPerson:u,requestUnlinkConnectedPeople:h,setUserMenuVisible:v,userAvatarPath:y,userId:k,userName:_}){return t.createElement(m,{theme:bn},t.createElement(f,{axis:"vertical",width:"100%"},t.createElement(f,{axis:"horizontal",alignItems:"start",distribution:"space-between"},t.createElement(f,{axis:"horizontal",spacing:2,padding:2,paddingRight:0,shrink:1},t.createElement(f,{shrink:0},t.createElement(pn,{env:a,url:y,style:{height:48,width:48}})),t.createElement(f,{spacing:1,shrink:1},t.createElement(g,{color:It.lightNeutral24,weight:700,truncate:!0},_),i&&t.createElement(E,{as:"a",href:`/people/AC${k}`,color:It.lightNeutral45,underline:!1},"My profile"),o&&t.createElement(E,{as:"a",href:yn({appName:e,env:a,userId:k}),color:It.lightNeutral45,underline:!1},"My login settings",t.createElement(En,{isActive:l})),t.createElement("form",{method:"POST",action:`${d(a)("login")}/logout`},t.createElement(p,{color:It.lightNeutral45,"data-turbolinks":!1,onClick:()=>{s(),c()},type:"submit"},"Log out")))),t.createElement(p,{color:It.lightNeutral45,icon:"general.x",onClick:()=>v(!1),padding:2,variant:"naked",title:"Close Menu"})),r&&t.createElement(t.Fragment,null,t.createElement(f,{backgroundColor:It.lightNeutral95,paddingVertical:1.5,paddingHorizontal:2,marginTop:1,borderBottom:`1px solid ${It.lightNeutral88}`},t.createElement(w,{color:It.lightNeutral62,fontWeight:500},"Linked Accounts")),t.createElement(b,{dividerColor:It.lightNeutral88,width:"100%"},Lt(n).map(({id:n,attributes:a})=>t.createElement(b.Item,{key:n,onClick:t=>{s(),c(),u(n,`${e}/`),t.preventDefault()},color:It.lightNeutral45,padding:2},t.createElement(g,{truncate:!0},a.organization_name))),t.createElement(b.Item,{onClick:e=>{s(),c(),h(),e.preventDefault()},color:It.danger47,padding:2,underline:!1},t.createElement(g,{size:3},"Unlink my accounts"))))))}const _n=["active"],Cn=({appName:e})=>{const n=e.replace(/[\s-]/,"");return t.createElement("div",{style:{alignItems:"center",display:"flex"}},t.createElement("div",{style:{marginRight:"6px"}},t.createElement(xt,{appName:n,size:20})),t.createElement(rt,{appName:n,color:It.lightNeutral24,size:18}))},xn=e=>{var n,a;const[r,i]=t.useState(!1),[l,o]=t.useState(!1),[s,c]=t.useState(!1),{hasConnectedPeople:u,mfaConfigured:m,mfaEnabled:h,userId:p,name:f}=Rt(),g=e.colors,v=e.routes.filter(({props:{active:e}})=>e)||[],y=e.currentRouteComponent,E=v&&v[0]&&v[0].props&&v[0].props.children||e.appName,w=e.apps.find(({name:e})=>"Accounts"===e),b=e.apps.find(({name:e})=>"Home"===e),k=[...e.apps].filter(({name:e})=>"Home"!==e&&"Accounts"!==e),_=It.lightNeutral88;return t.useEffect(()=>{i(!1)},[v&&(null==(n=v[0])||null==(a=n.props)?void 0:a.href)]),t.createElement(Zt,{style:Te({},e.style)},t.createElement("div",{style:{alignItems:"center",display:"flex",height:"48px",justifyContent:"center",paddingLeft:"16px",paddingRight:"16px"},onClick:()=>{e.requestAppsFetch(),e.requestConnectedPeopleFetch(),i(!1),o(e=>!e)}},t.createElement(nt,{appName:e.appName.replace(/[\s-]/,""),colors:g,size:26})),t.createElement("div",{style:{left:0,position:"absolute",top:"48px",width:"100%"}},r&&e.routes),t.createElement(fn,{item:"Topbar:Small:Menus:Products:visibility",render:()=>t.createElement("div",{style:{MozUserSelect:"none",WebkitTapHighlightColor:"transparent",WebkitUserSelect:"none",backgroundColor:Re(It.lightNeutral12,.75),bottom:0,color:"black",display:l?"block":"none",left:0,msUserSelect:"none",position:"fixed",right:0,top:0,userSelect:"none"},onClick:()=>{o(e=>!e),c(!1)}},t.createElement(vn,{style:{position:"absolute",right:"17px",top:"12px"}}),t.createElement("div",{onClick:e=>{const{forcePropagation:t}=e;t||e.stopPropagation()},style:{backgroundColor:It.lightNeutral100,borderRight:`1px solid ${_}`,display:"flex",flexDirection:"column",height:"calc(100% - 52px - env(safe-area-inset-bottom))",position:"relative",width:"calc(100% - 57px)"}},t.createElement("div",{style:{alignItems:"center",backgroundColor:It.lightNeutral98,borderBottom:`1px solid ${_}`,display:"flex",height:"48px",paddingLeft:"16px",paddingRight:"16px"}},t.createElement("div",{style:Te({},ot)},t.createElement("a",{style:{alignItems:"center",display:"flex",height:"48px",paddingRight:"16px"},"data-pendo":`app-switcher--change-app--${null==b?void 0:b.name}`,"data-turbolinks":!1,href:b?d(e.env)("accounts")+St(null==b?void 0:b.name):void 0},t.createElement("div",{style:{alignItems:"center",display:"flex"}},t.createElement(Cn,{appName:b?b.name:e.appName}))))),t.createElement("div",{style:Te({},ot,{WebkitOverflowScrolling:"touch",overflowY:"scroll"})},t.createElement("ul",{"data-pendo":"app-switcher",style:{margin:0,padding:0}},Ht(k).map(({name:n},a)=>{const r=0===a,i=a===Ht(k).length-1;return t.createElement("li",{key:n,style:{listStyleType:"none"}},t.createElement("a",{style:{alignItems:"center",display:"flex",height:"40px",paddingBottom:i?"4px":0,paddingLeft:"16px",paddingRight:"16px",paddingTop:r?"4px":0},"data-pendo":`app-switcher--change-app--${n}`,"data-turbolinks":!1,href:d(e.env)("accounts")+St(n)},t.createElement(Cn,{appName:n})))})),w&&t.createElement("div",{style:{borderTop:`1px solid ${_}`}},t.createElement(gn,{env:e.env})))))}),t.createElement("div",{style:Te({},ot,{fontWeight:600,lineHeight:"48px",textAlign:"center"}),onClick:e.routes.length>0?()=>{o(!1),i(e=>!e)}:null},t.createElement(y,null,(C=E).charAt(0).toUpperCase()+C.slice(1)),e.routes.length>0&&t.createElement(gt,{colors:g,style:{marginLeft:"4px",verticalAlign:"middle"}})),t.createElement("button",{onClick:()=>c(!s),style:{background:"none",border:"none",margin:"0 12px",padding:0}},t.createElement(pn,{env:e.env,url:e.userAvatarPath})),t.createElement("div",{style:{MozUserSelect:"none",WebkitTapHighlightColor:"transparent",WebkitUserSelect:"none",bottom:0,color:"black",display:s?"block":"none",left:0,msUserSelect:"none",position:"fixed",right:0,top:0,userSelect:"none"}},t.createElement("div",{onClick:e=>e.stopPropagation(),style:{WebkitOverflowScrolling:"touch",backgroundColor:"#fff",display:"flex",flexDirection:"column",height:"100%",overflowY:"scroll",position:"relative",width:"100%"}},t.createElement(kn,{appName:e.appName,env:e.env,connectedPeople:e.connectedPeople,hasConnectedPeople:u,linkToProfile:e.linkToProfile,mfaConfigured:m,mfaEnabled:h,requestClearAppsCache:e.requestClearAppsCache,requestClearConnectedPeopleCache:e.requestClearConnectedPeopleCache,requestSwitchConnectedPerson:e.requestSwitchConnectedPerson,requestUnlinkConnectedPeople:e.requestUnlinkConnectedPeople,setUserMenuVisible:c,userAvatarPath:e.userAvatarPath,userId:p,userName:f}))));var C};xn.defaultProps={currentRouteComponent:e=>t.createElement("span",Te({},e)),linkToProfile:!0};const Sn=e=>{let{active:n}=e,a=De(e,_n);return t.createElement("a",Te({style:Te({backgroundColor:"#444",borderBottom:"1px solid #333",color:"#fff",display:"block",fontWeight:600,lineHeight:"47px",position:"relative",textAlign:"center",textDecoration:"none",textTransform:"capitalize",whiteSpace:"nowrap"},lt,n&&{backgroundColor:"#333"})},a))},Mn={domain:window.location.host.split(".").slice(-2).join("."),"max-age":2592e3},An=Object.entries(Mn).map(([e,t])=>`${e}=${t}`).join("; ");function Tn({bottom:e="auto",children:n,hasShadow:a=!1,height:r="100%",id:i="toolbarDrawer",overflow:l="visible",position:o="absolute",width:s="100%"}){return t.createElement(f,Te({backgroundColor:"surface",boxShadow:a&&open?"0 4px 12px rgba(0, 0, 0, 0.25)":null,left:0,position:"absolute",zIndex:1},{bottom:e,height:r,id:i,overflow:l,position:o,width:s}),n)}function Nn({children:e,closeDrawer:n}){return t.createElement(f,{alignment:"start",axis:"horizontal",color:"foreground",distribution:"space-between",padding:2,paddingTop:1},t.createElement(k,{flex:1},e),n&&t.createElement(p,{icon:{fill:It.lightNeutral12,name:"general.x",size:"md"},onClick:()=>n(),title:"Close",theme:!1,hover:{backgroundColor:It.lightNeutral93},marginTop:.25}))}const Dn=["children"];function On(e){let{children:n}=e,a=De(e,Dn);return t.createElement(_,Te({},a,{color:It.lightNeutral12,letterSpacing:".002em",level:2,lineHeight:"35px",weight:700}),n)}const Pn=e=>t.createElement(k,Te({backgroundColor:It.interaction66,height:1.5,pointerEvents:"none",position:"absolute",radius:"50%",width:1.5,zIndex:6},e)),Vn=["children"],zn={bottom:{background:"linear-gradient(rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.07))",bottom:0},top:{background:"linear-gradient(rgba(0, 0, 0, 0.07), rgba(255, 255, 255, 0))",top:0}},Hn=e=>{let{children:r}=e,i=De(e,Vn);const[o,s]=a(!1),[c,d]=a(!1),u=l(null),m=l(null),h=l(null),p=()=>{const e=null==u?void 0:u.current;e&&d(e.scrollHeight-e.clientHeight>e.scrollTop+1)};return n(()=>{const e=null==u?void 0:u.current;if(!e)return()=>{};d(e.scrollHeight>e.clientHeight);const t={root:e,threshold:1},n=new IntersectionObserver(([{isIntersecting:e}])=>d(!e),t),a=new IntersectionObserver(([{isIntersecting:e}])=>s(!e),t),r=null==m?void 0:m.current,i=null==h?void 0:h.current;r&&n.observe(r),i&&a.observe(i);const l=new ResizeObserver(p);return l.observe(e),()=>{r&&n.unobserve(r),i&&a.unobserve(i),l.unobserve(e)}},[]),t.createElement(f,{grow:1,position:"relative",shrink:1},o&&t.createElement(Ln,{edge:"top"}),c&&t.createElement(Ln,{edge:"bottom"}),t.createElement(f,Te({basis:2,grow:1,innerRef:u,overflow:"auto",role:"region",shrink:1,css:{overscrollBehavior:"contain"}},i),t.createElement(k,{innerRef:h}),r,t.createElement(k,{innerRef:m})))},Ln=({edge:e})=>t.createElement(k,Te({height:1,left:0,pointerEvents:"none",position:"absolute",right:0,role:"presentation",zIndex:10},zn[e])),Rn=({activeIndex:e,children:n})=>{const a=t.Children.count(n),r=e<0?0:e>a-1?a-1:e;return t.createElement(f,{grow:1,overflow:"hidden",position:"relative"},t.Children.map(n,(n,a)=>{const i=a===r;return t.createElement(f,{"aria-hidden":!i,visibility:i?"visible":"hidden",height:"100%",key:a,opacity:i?1:0,pointerEvents:i?"auto":"none",position:"absolute",top:0,width:"100%",transform:i?"translateX(0)":a<e?"translateX(-100px)":"translateX(100px)",transition:"visibility 100ms 50ms ease-in-out, transform 200ms ease-in-out, opacity 100ms 50ms ease-in-out"},n)}))};var Yn;!function(e){e.close="close",e.mount="mount",e.open="open",e.unmount="unmount"}(Yn||(Yn={}));const Zn={currentContent:null,open:!1},In=(e,t)=>{switch(t.type){case Yn.mount:return Te({},e,{currentContent:t.payload.content});case Yn.unmount:return Te({},e,{currentContent:null});case Yn.open:return Te({},e,{open:!0});case Yn.close:return Te({},e,{open:!1})}},Un=["fields"],Wn=t.createContext({}),Fn=e=>{if(null===e)return null;const t=[e.data].flat(),[n,...a]=t.map(({id:e,attributes:t,relationships:n})=>Te({id:e},((e={})=>Object.keys(e).reduce((t,n)=>{const{data:a}=e[n],r=Array.isArray(a);return Te({},t,{[`${n}_${r?"ids":"id"}`]:r?a.map(({id:e})=>e):null==a?void 0:a.id})},{}))(n),t));return Array.isArray(e.data)?n?[n,...a]:[]:n},jn=({app:e,env:t})=>{const n=`${d(t)("api")}/${e}/v2`;return{delete:e=>ze(Ve,[n,e].join("/"),{method:"DELETE"}),get:async(e,t={},{unpaginated:a=!1}={})=>{var r;let{fields:i={}}=t,l=De(t,Un);i=Object.entries(i).reduce((e,[t,n])=>Te({},e,{[`fields[${t}]`]:n}),{});const o=new URLSearchParams(Te({},i,l)),{json:s}=await ze(Pe,[[n,e].join("/"),o].join("?"));let c=Fn(s),d=null==s||null==(r=s.links)?void 0:r.next;for(;a&&d;){var u;const{json:e}=await ze(Pe,d);c=[...c,...Fn(e)],d=null==e||null==(u=e.links)?void 0:u.next}return c},patch:async(e,t)=>{const{json:a}=await ze(Ve,[n,e].join("/"),{data:{data:{attributes:t}},method:"PATCH"});return Fn(a)},post:async(e,t)=>{const{json:a}=await ze(Ve,[n,e].join("/"),{data:{data:{attributes:t}},method:"POST"});return Fn(a)}}},$n=({children:e,env:n})=>{const a=r(()=>{const e=jn({app:"chat",env:n}),t=jn({app:"services",env:n});return{chat:e,groups:jn({app:"groups",env:n}),services:t}},[n]);return t.createElement(Wn.Provider,{value:a},e)},Bn=t.createContext({}),Gn=({children:e,value:n})=>t.createElement(Bn.Provider,{value:n},e),qn=()=>t.createElement(S,{color:"hsla(221, 89%, 93%, 1)",radius:"pill",size:"xs"},t.createElement(g,{color:"hsla(221, 91%, 55%, 1)"},"Beta")),Jn=()=>t.createElement(Nn,null,t.createElement(f,{alignment:"center",axis:"horizontal",spacing:1},t.createElement(On,null,"Chat"),t.createElement(qn,null),t.createElement(M,{color:"hsl(0 0% 62%)",thickness:2,trackColor:"hsl(0 0% 97%)"}))),Qn=e=>{const{client:n}=$(),[{muted:a},r]=t.useState(()=>e.muteStatus());return t.useEffect(()=>{const t=()=>{r(e.muteStatus())};return n.on("notification.channel_mutes_updated",t),()=>n.off("notification.channel_mutes_updated",t)},[]),a};"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var Xn,Kn,ea=(Xn=function(e,t){e.exports=function(){var t,n;function a(){return t.apply(null,arguments)}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function o(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(l(e,t))return!1;return!0}function s(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var n,a=[],r=e.length;for(n=0;n<r;++n)a.push(t(e[n],n));return a}function m(e,t){for(var n in t)l(t,n)&&(e[n]=t[n]);return l(t,"toString")&&(e.toString=t.toString),l(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,n,a){return Ot(e,t,n,a,!0).utc()}function p(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function f(e){if(null==e._isValid){var t=p(e),a=n.call(t.parsedDateParts,function(e){return null!=e}),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&a);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function g(e){var t=h(NaN);return null!=e?m(p(t),e):p(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),a=n.length>>>0;for(t=0;t<a;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var v=a.momentProperties=[],y=!1;function E(e,t){var n,a,r,i=v.length;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=p(t)),s(t._locale)||(e._locale=t._locale),i>0)for(n=0;n<i;n++)s(r=t[a=v[n]])||(e[a]=r);return e}function w(e){E(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,a.updateOffset(this),y=!1)}function b(e){return e instanceof w||null!=e&&null!=e._isAMomentObject}function k(e){!1===a.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function _(e,t){var n=!0;return m(function(){if(null!=a.deprecationHandler&&a.deprecationHandler(null,e),n){var r,i,o,s=[],c=arguments.length;for(i=0;i<c;i++){if(r="","object"==typeof arguments[i]){for(o in r+="\n["+i+"] ",arguments[0])l(arguments[0],o)&&(r+=o+": "+arguments[0][o]+", ");r=r.slice(0,-2)}else r=arguments[i];s.push(r)}k(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}var C,x={};function S(e,t){null!=a.deprecationHandler&&a.deprecationHandler(e,t),x[e]||(k(t),x[e]=!0)}function M(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function A(e,t){var n,a=m({},e);for(n in t)l(t,n)&&(i(e[n])&&i(t[n])?(a[n]={},m(a[n],e[n]),m(a[n],t[n])):null!=t[n]?a[n]=t[n]:delete a[n]);for(n in e)l(e,n)&&!l(t,n)&&i(e[n])&&(a[n]=m({},a[n]));return a}function T(e){null!=e&&this.set(e)}function N(e,t,n){var a=""+Math.abs(e);return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,t-a.length)).toString().substr(1)+a}a.suppressDeprecationWarnings=!1,a.deprecationHandler=null,C=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)l(e,t)&&n.push(t);return n};var D=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,O=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,P={},V={};function z(e,t,n,a){var r=a;"string"==typeof a&&(r=function(){return this[a]()}),e&&(V[e]=r),t&&(V[t[0]]=function(){return N(r.apply(this,arguments),t[1],t[2])}),n&&(V[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function H(e,t){return e.isValid()?(t=L(t,e.localeData()),P[t]=P[t]||function(e){var t,n,a,r=e.match(D);for(t=0,n=r.length;t<n;t++)r[t]=V[r[t]]?V[r[t]]:(a=r[t]).match(/\[[\s\S]/)?a.replace(/^\[|\]$/g,""):a.replace(/\\/g,"");return function(t){var a,i="";for(a=0;a<n;a++)i+=M(r[a])?r[a].call(t,e):r[a];return i}}(t),P[t](e)):e.localeData().invalidDate()}function L(e,t){var n=5;function a(e){return t.longDateFormat(e)||e}for(O.lastIndex=0;n>=0&&O.test(e);)e=e.replace(O,a),O.lastIndex=0,n-=1;return e}var R={};function Y(e,t){var n=e.toLowerCase();R[n]=R[n+"s"]=R[t]=e}function Z(e){return"string"==typeof e?R[e]||R[e.toLowerCase()]:void 0}function I(e){var t,n,a={};for(n in e)l(e,n)&&(t=Z(n))&&(a[t]=e[n]);return a}var U={};function W(e,t){U[e]=t}function F(e){return e%4==0&&e%100!=0||e%400==0}function j(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function $(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=j(t)),n}function B(e,t){return function(n){return null!=n?(q(this,e,n),a.updateOffset(this,t),this):G(this,e)}}function G(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function q(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&F(e.year())&&1===e.month()&&29===e.date()?(n=$(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ne(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var J,Q=/\d/,X=/\d\d/,K=/\d{3}/,ee=/\d{4}/,te=/[+-]?\d{6}/,ne=/\d\d?/,ae=/\d\d\d\d?/,re=/\d\d\d\d\d\d?/,ie=/\d{1,3}/,le=/\d{1,4}/,oe=/[+-]?\d{1,6}/,se=/\d+/,ce=/[+-]?\d+/,de=/Z|[+-]\d\d:?\d\d/gi,ue=/Z|[+-]\d\d(?::?\d\d)?/gi,me=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function he(e,t,n){J[e]=M(t)?t:function(e,a){return e&&n?n:t}}function pe(e,t){return l(J,e)?J[e](t._strict,t._locale):new RegExp(fe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,a,r){return t||n||a||r})))}function fe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}J={};var ge={};function ve(e,t){var n,a,r=t;for("string"==typeof e&&(e=[e]),c(t)&&(r=function(e,n){n[t]=$(e)}),a=e.length,n=0;n<a;n++)ge[e[n]]=r}function ye(e,t){ve(e,function(e,n,a,r){a._w=a._w||{},t(e,a._w,a,r)})}function Ee(e,t,n){null!=t&&l(ge,e)&&ge[e](t,n._a,n,e)}var we,be=0,ke=1,_e=2,Ce=3,xe=4,Se=5,Me=6,Ae=7,Te=8;function Ne(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=(t%12+12)%12;return e+=(t-n)/12,1===n?F(e)?29:28:31-n%7%2}we=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},z("M",["MM",2],"Mo",function(){return this.month()+1}),z("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),z("MMMM",0,0,function(e){return this.localeData().months(this,e)}),Y("month","M"),W("month",8),he("M",ne),he("MM",ne,X),he("MMM",function(e,t){return t.monthsShortRegex(e)}),he("MMMM",function(e,t){return t.monthsRegex(e)}),ve(["M","MM"],function(e,t){t[ke]=$(e)-1}),ve(["MMM","MMMM"],function(e,t,n,a){var r=n._locale.monthsParse(e,a,n._strict);null!=r?t[ke]=r:p(n).invalidMonth=e});var De="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Oe="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Pe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ve=me,ze=me;function He(e,t,n){var a,r,i,l=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],a=0;a<12;++a)i=h([2e3,a]),this._shortMonthsParse[a]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[a]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(r=we.call(this._shortMonthsParse,l))?r:null:-1!==(r=we.call(this._longMonthsParse,l))?r:null:"MMM"===t?-1!==(r=we.call(this._shortMonthsParse,l))||-1!==(r=we.call(this._longMonthsParse,l))?r:null:-1!==(r=we.call(this._longMonthsParse,l))||-1!==(r=we.call(this._shortMonthsParse,l))?r:null}function Le(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=$(t);else if(!c(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Ne(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Re(e){return null!=e?(Le(this,e),a.updateOffset(this,!0),this):G(this,"Month")}function Ye(){function e(e,t){return t.length-e.length}var t,n,a=[],r=[],i=[];for(t=0;t<12;t++)n=h([2e3,t]),a.push(this.monthsShort(n,"")),r.push(this.months(n,"")),i.push(this.months(n,"")),i.push(this.monthsShort(n,""));for(a.sort(e),r.sort(e),i.sort(e),t=0;t<12;t++)a[t]=fe(a[t]),r[t]=fe(r[t]);for(t=0;t<24;t++)i[t]=fe(i[t]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ze(e){return F(e)?366:365}z("Y",0,0,function(){var e=this.year();return e<=9999?N(e,4):"+"+e}),z(0,["YY",2],0,function(){return this.year()%100}),z(0,["YYYY",4],0,"year"),z(0,["YYYYY",5],0,"year"),z(0,["YYYYYY",6,!0],0,"year"),Y("year","y"),W("year",1),he("Y",ce),he("YY",ne,X),he("YYYY",le,ee),he("YYYYY",oe,te),he("YYYYYY",oe,te),ve(["YYYYY","YYYYYY"],be),ve("YYYY",function(e,t){t[be]=2===e.length?a.parseTwoDigitYear(e):$(e)}),ve("YY",function(e,t){t[be]=a.parseTwoDigitYear(e)}),ve("Y",function(e,t){t[be]=parseInt(e,10)}),a.parseTwoDigitYear=function(e){return $(e)+($(e)>68?1900:2e3)};var Ie=B("FullYear",!0);function Ue(e,t,n,a,r,i,l){var o;return e<100&&e>=0?(o=new Date(e+400,t,n,a,r,i,l),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,a,r,i,l),o}function We(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Fe(e,t,n){var a=7+t-n;return-(7+We(e,0,a).getUTCDay()-t)%7+a-1}function je(e,t,n,a,r){var i,l,o=1+7*(t-1)+(7+n-a)%7+Fe(e,a,r);return o<=0?l=Ze(i=e-1)+o:o>Ze(e)?(i=e+1,l=o-Ze(e)):(i=e,l=o),{year:i,dayOfYear:l}}function $e(e,t,n){var a,r,i=Fe(e.year(),t,n),l=Math.floor((e.dayOfYear()-i-1)/7)+1;return l<1?a=l+Be(r=e.year()-1,t,n):l>Be(e.year(),t,n)?(a=l-Be(e.year(),t,n),r=e.year()+1):(r=e.year(),a=l),{week:a,year:r}}function Be(e,t,n){var a=Fe(e,t,n),r=Fe(e+1,t,n);return(Ze(e)-a+r)/7}function Ge(e,t){return e.slice(t,7).concat(e.slice(0,t))}z("w",["ww",2],"wo","week"),z("W",["WW",2],"Wo","isoWeek"),Y("week","w"),Y("isoWeek","W"),W("week",5),W("isoWeek",5),he("w",ne),he("ww",ne,X),he("W",ne),he("WW",ne,X),ye(["w","ww","W","WW"],function(e,t,n,a){t[a.substr(0,1)]=$(e)}),z("d",0,"do","day"),z("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),z("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),z("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),z("e",0,0,"weekday"),z("E",0,0,"isoWeekday"),Y("day","d"),Y("weekday","e"),Y("isoWeekday","E"),W("day",11),W("weekday",11),W("isoWeekday",11),he("d",ne),he("e",ne),he("E",ne),he("dd",function(e,t){return t.weekdaysMinRegex(e)}),he("ddd",function(e,t){return t.weekdaysShortRegex(e)}),he("dddd",function(e,t){return t.weekdaysRegex(e)}),ye(["dd","ddd","dddd"],function(e,t,n,a){var r=n._locale.weekdaysParse(e,a,n._strict);null!=r?t.d=r:p(n).invalidWeekday=e}),ye(["d","e","E"],function(e,t,n,a){t[a]=$(e)});var qe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Je="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Xe=me,Ke=me,et=me;function tt(e,t,n){var a,r,i,l=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],a=0;a<7;++a)i=h([2e3,1]).day(a),this._minWeekdaysParse[a]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[a]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[a]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=we.call(this._weekdaysParse,l))?r:null:"ddd"===t?-1!==(r=we.call(this._shortWeekdaysParse,l))?r:null:-1!==(r=we.call(this._minWeekdaysParse,l))?r:null:"dddd"===t?-1!==(r=we.call(this._weekdaysParse,l))||-1!==(r=we.call(this._shortWeekdaysParse,l))||-1!==(r=we.call(this._minWeekdaysParse,l))?r:null:"ddd"===t?-1!==(r=we.call(this._shortWeekdaysParse,l))||-1!==(r=we.call(this._weekdaysParse,l))||-1!==(r=we.call(this._minWeekdaysParse,l))?r:null:-1!==(r=we.call(this._minWeekdaysParse,l))||-1!==(r=we.call(this._weekdaysParse,l))||-1!==(r=we.call(this._shortWeekdaysParse,l))?r:null}function nt(){function e(e,t){return t.length-e.length}var t,n,a,r,i,l=[],o=[],s=[],c=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),a=fe(this.weekdaysMin(n,"")),r=fe(this.weekdaysShort(n,"")),i=fe(this.weekdays(n,"")),l.push(a),o.push(r),s.push(i),c.push(a),c.push(r),c.push(i);l.sort(e),o.sort(e),s.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+l.join("|")+")","i")}function at(){return this.hours()%12||12}function rt(e,t){z(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function it(e,t){return t._meridiemParse}z("H",["HH",2],0,"hour"),z("h",["hh",2],0,at),z("k",["kk",2],0,function(){return this.hours()||24}),z("hmm",0,0,function(){return""+at.apply(this)+N(this.minutes(),2)}),z("hmmss",0,0,function(){return""+at.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)}),z("Hmm",0,0,function(){return""+this.hours()+N(this.minutes(),2)}),z("Hmmss",0,0,function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)}),rt("a",!0),rt("A",!1),Y("hour","h"),W("hour",13),he("a",it),he("A",it),he("H",ne),he("h",ne),he("k",ne),he("HH",ne,X),he("hh",ne,X),he("kk",ne,X),he("hmm",ae),he("hmmss",re),he("Hmm",ae),he("Hmmss",re),ve(["H","HH"],Ce),ve(["k","kk"],function(e,t,n){var a=$(e);t[Ce]=24===a?0:a}),ve(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ve(["h","hh"],function(e,t,n){t[Ce]=$(e),p(n).bigHour=!0}),ve("hmm",function(e,t,n){var a=e.length-2;t[Ce]=$(e.substr(0,a)),t[xe]=$(e.substr(a)),p(n).bigHour=!0}),ve("hmmss",function(e,t,n){var a=e.length-4,r=e.length-2;t[Ce]=$(e.substr(0,a)),t[xe]=$(e.substr(a,2)),t[Se]=$(e.substr(r)),p(n).bigHour=!0}),ve("Hmm",function(e,t,n){var a=e.length-2;t[Ce]=$(e.substr(0,a)),t[xe]=$(e.substr(a))}),ve("Hmmss",function(e,t,n){var a=e.length-4,r=e.length-2;t[Ce]=$(e.substr(0,a)),t[xe]=$(e.substr(a,2)),t[Se]=$(e.substr(r))});var lt,ot=B("Hours",!0),st={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:De,monthsShort:Oe,week:{dow:0,doy:6},weekdays:qe,weekdaysMin:Qe,weekdaysShort:Je,meridiemParse:/[ap]\.?m?\.?/i},ct={},dt={};function ut(e,t){var n,a=Math.min(e.length,t.length);for(n=0;n<a;n+=1)if(e[n]!==t[n])return n;return a}function mt(e){return e?e.toLowerCase().replace("_","-"):e}function ht(t){var n=null;if(void 0===ct[t]&&e&&e.exports&&function(e){return null!=e.match("^[^/\\\\]*$")}(t))try{n=lt._abbr,function(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets option of @rollup/plugin-commonjs appropriately for this require call to behave properly.')}("./locale/"+t),pt(n)}catch(e){ct[t]=null}return ct[t]}function pt(e,t){var n;return e&&((n=s(t)?gt(e):ft(e,t))?lt=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),lt._abbr}function ft(e,t){if(null!==t){var n,a=st;if(t.abbr=e,null!=ct[e])S("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),a=ct[e]._config;else if(null!=t.parentLocale)if(null!=ct[t.parentLocale])a=ct[t.parentLocale]._config;else{if(null==(n=ht(t.parentLocale)))return dt[t.parentLocale]||(dt[t.parentLocale]=[]),dt[t.parentLocale].push({name:e,config:t}),null;a=n._config}return ct[e]=new T(A(a,t)),dt[e]&&dt[e].forEach(function(e){ft(e.name,e.config)}),pt(e),ct[e]}return delete ct[e],null}function gt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return lt;if(!r(e)){if(t=ht(e))return t;e=[e]}return function(e){for(var t,n,a,r,i=0;i<e.length;){for(t=(r=mt(e[i]).split("-")).length,n=(n=mt(e[i+1]))?n.split("-"):null;t>0;){if(a=ht(r.slice(0,t).join("-")))return a;if(n&&n.length>=t&&ut(r,n)>=t-1)break;t--}i++}return lt}(e)}function vt(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[ke]<0||n[ke]>11?ke:n[_e]<1||n[_e]>Ne(n[be],n[ke])?_e:n[Ce]<0||n[Ce]>24||24===n[Ce]&&(0!==n[xe]||0!==n[Se]||0!==n[Me])?Ce:n[xe]<0||n[xe]>59?xe:n[Se]<0||n[Se]>59?Se:n[Me]<0||n[Me]>999?Me:-1,p(e)._overflowDayOfYear&&(t<be||t>_e)&&(t=_e),p(e)._overflowWeeks&&-1===t&&(t=Ae),p(e)._overflowWeekday&&-1===t&&(t=Te),p(e).overflow=t),e}var yt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Et=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wt=/Z|[+-]\d\d(?::?\d\d)?/,bt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],kt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],_t=/^\/?Date\((-?\d+)/i,Ct=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,xt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function St(e){var t,n,a,r,i,l,o=e._i,s=yt.exec(o)||Et.exec(o),c=bt.length,d=kt.length;if(s){for(p(e).iso=!0,t=0,n=c;t<n;t++)if(bt[t][1].exec(s[1])){r=bt[t][0],a=!1!==bt[t][2];break}if(null==r)return void(e._isValid=!1);if(s[3]){for(t=0,n=d;t<n;t++)if(kt[t][1].exec(s[3])){i=(s[2]||" ")+kt[t][0];break}if(null==i)return void(e._isValid=!1)}if(!a&&null!=i)return void(e._isValid=!1);if(s[4]){if(!wt.exec(s[4]))return void(e._isValid=!1);l="Z"}e._f=r+(i||"")+(l||""),Nt(e)}else e._isValid=!1}function Mt(e){var t,n,a,r,i,l,o,s,c,d=Ct.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(d){if(n=d[3],a=d[2],r=d[5],i=d[6],l=d[7],o=[(s=d[4],c=parseInt(s,10),c<=49?2e3+c:c<=999?1900+c:c),Oe.indexOf(n),parseInt(a,10),parseInt(r,10),parseInt(i,10)],l&&o.push(parseInt(l,10)),!function(e,t,n){return!e||Je.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(p(n).weekdayMismatch=!0,n._isValid=!1,!1)}(d[1],t=o,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return xt[e];if(t)return 0;var a=parseInt(n,10),r=a%100;return(a-r)/100*60+r}(d[8],d[9],d[10]),e._d=We.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0}else e._isValid=!1}function At(e,t,n){return null!=e?e:null!=t?t:n}function Tt(e){var t,n,r,i,l,o=[];if(!e._d){for(r=function(e){var t=new Date(a.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[_e]&&null==e._a[ke]&&function(e){var t,n,a,r,i,l,o,s,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(i=1,l=4,n=At(t.GG,e._a[be],$e(Pt(),1,4).year),a=At(t.W,1),((r=At(t.E,1))<1||r>7)&&(s=!0)):(i=e._locale._week.dow,l=e._locale._week.doy,c=$e(Pt(),i,l),n=At(t.gg,e._a[be],c.year),a=At(t.w,c.week),null!=t.d?((r=t.d)<0||r>6)&&(s=!0):null!=t.e?(r=t.e+i,(t.e<0||t.e>6)&&(s=!0)):r=i),a<1||a>Be(n,i,l)?p(e)._overflowWeeks=!0:null!=s?p(e)._overflowWeekday=!0:(o=je(n,a,r,i,l),e._a[be]=o.year,e._dayOfYear=o.dayOfYear)}(e),null!=e._dayOfYear&&(l=At(e._a[be],r[be]),(e._dayOfYear>Ze(l)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=We(l,0,e._dayOfYear),e._a[ke]=n.getUTCMonth(),e._a[_e]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=r[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ce]&&0===e._a[xe]&&0===e._a[Se]&&0===e._a[Me]&&(e._nextDay=!0,e._a[Ce]=0),e._d=(e._useUTC?We:Ue).apply(null,o),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ce]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(p(e).weekdayMismatch=!0)}}function Nt(e){if(e._f!==a.ISO_8601)if(e._f!==a.RFC_2822){e._a=[],p(e).empty=!0;var t,n,r,i,l,o,s,c=""+e._i,d=c.length,u=0;for(s=(r=L(e._f,e._locale).match(D)||[]).length,t=0;t<s;t++)(n=(c.match(pe(i=r[t],e))||[])[0])&&((l=c.substr(0,c.indexOf(n))).length>0&&p(e).unusedInput.push(l),c=c.slice(c.indexOf(n)+n.length),u+=n.length),V[i]?(n?p(e).empty=!1:p(e).unusedTokens.push(i),Ee(i,n,e)):e._strict&&!n&&p(e).unusedTokens.push(i);p(e).charsLeftOver=d-u,c.length>0&&p(e).unusedInput.push(c),e._a[Ce]<=12&&!0===p(e).bigHour&&e._a[Ce]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[Ce]=function(e,t,n){var a;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((a=e.isPM(n))&&t<12&&(t+=12),a||12!==t||(t=0),t):t}(e._locale,e._a[Ce],e._meridiem),null!==(o=p(e).era)&&(e._a[be]=e._locale.erasConvertYear(o,e._a[be])),Tt(e),vt(e)}else Mt(e);else St(e)}function Dt(e){var t=e._i,n=e._f;return e._locale=e._locale||gt(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),b(t)?new w(vt(t)):(d(t)?e._d=t:r(n)?function(e){var t,n,a,r,i,l,o=!1,s=e._f.length;if(0===s)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<s;r++)i=0,l=!1,t=E({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],Nt(t),f(t)&&(l=!0),i+=p(t).charsLeftOver,i+=10*p(t).unusedTokens.length,p(t).score=i,o?i<a&&(a=i,n=t):(null==a||i<a||l)&&(a=i,n=t,l&&(o=!0));m(e,n||t)}(e):n?Nt(e):function(e){var t=e._i;s(t)?e._d=new Date(a.now()):d(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=_t.exec(e._i);null===t?(St(e),!1===e._isValid&&(delete e._isValid,Mt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:a.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):r(t)?(e._a=u(t.slice(0),function(e){return parseInt(e,10)}),Tt(e)):i(t)?function(e){if(!e._d){var t=I(e._i);e._a=u([t.year,t.month,void 0===t.day?t.date:t.day,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),Tt(e)}}(e):c(t)?e._d=new Date(t):a.createFromInputFallback(e)}(e),f(e)||(e._d=null),e))}function Ot(e,t,n,a,l){var s,c={};return!0!==t&&!1!==t||(a=t,t=void 0),!0!==n&&!1!==n||(a=n,n=void 0),(i(e)&&o(e)||r(e)&&0===e.length)&&(e=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=l,c._l=n,c._i=e,c._f=t,c._strict=a,(s=new w(vt(Dt(c))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Pt(e,t,n,a){return Ot(e,t,n,a,!1)}a.createFromInputFallback=_("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),a.ISO_8601=function(){},a.RFC_2822=function(){};var Vt=_("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Pt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()}),zt=_("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Pt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:g()});function Ht(e,t){var n,a;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return Pt();for(n=t[0],a=1;a<t.length;++a)t[a].isValid()&&!t[a][e](n)||(n=t[a]);return n}var Lt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Rt(e){var t=I(e),n=t.year||0,a=t.quarter||0,r=t.month||0,i=t.week||t.isoWeek||0,o=t.day||0,s=t.hour||0,c=t.minute||0,d=t.second||0,u=t.millisecond||0;this._isValid=function(e){var t,n,a=!1,r=Lt.length;for(t in e)if(l(e,t)&&(-1===we.call(Lt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<r;++n)if(e[Lt[n]]){if(a)return!1;parseFloat(e[Lt[n]])!==$(e[Lt[n]])&&(a=!0)}return!0}(t),this._milliseconds=+u+1e3*d+6e4*c+1e3*s*60*60,this._days=+o+7*i,this._months=+r+3*a+12*n,this._data={},this._locale=gt(),this._bubble()}function Yt(e){return e instanceof Rt}function Zt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function It(e,t){z(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+N(~~(e/60),2)+t+N(~~e%60,2)})}It("Z",":"),It("ZZ",""),he("Z",ue),he("ZZ",ue),ve(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Wt(ue,e)});var Ut=/([\+\-]|\d\d)/gi;function Wt(e,t){var n,a,r=(t||"").match(e);return null===r?null:0===(a=60*(n=((r[r.length-1]||[])+"").match(Ut)||["-",0,0])[1]+$(n[2]))?0:"+"===n[0]?a:-a}function Ft(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(b(e)||d(e)?e.valueOf():Pt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),a.updateOffset(n,!1),n):Pt(e).local()}function jt(e){return-Math.round(e._d.getTimezoneOffset())}function $t(){return!!this.isValid()&&this._isUTC&&0===this._offset}a.updateOffset=function(){};var Bt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Gt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function qt(e,t){var n,a,r,i,o,s,d=e,u=null;return Yt(e)?d={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(d={},t?d[t]=+e:d.milliseconds=+e):(u=Bt.exec(e))?(n="-"===u[1]?-1:1,d={y:0,d:$(u[_e])*n,h:$(u[Ce])*n,m:$(u[xe])*n,s:$(u[Se])*n,ms:$(Zt(1e3*u[Me]))*n}):(u=Gt.exec(e))?d={y:Jt(u[2],n="-"===u[1]?-1:1),M:Jt(u[3],n),w:Jt(u[4],n),d:Jt(u[5],n),h:Jt(u[6],n),m:Jt(u[7],n),s:Jt(u[8],n)}:null==d?d={}:"object"==typeof d&&("from"in d||"to"in d)&&(i=Pt(d.from),o=Pt(d.to),r=i.isValid()&&o.isValid()?(o=Ft(o,i),i.isBefore(o)?s=Qt(i,o):((s=Qt(o,i)).milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0},(d={}).ms=r.milliseconds,d.M=r.months),a=new Rt(d),Yt(e)&&l(e,"_locale")&&(a._locale=e._locale),Yt(e)&&l(e,"_isValid")&&(a._isValid=e._isValid),a}function Jt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Qt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Xt(e,t){return function(n,a){var r;return null===a||isNaN(+a)||(S(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=a,a=r),Kt(this,qt(n,a),e),this}}function Kt(e,t,n,r){var i=t._milliseconds,l=Zt(t._days),o=Zt(t._months);e.isValid()&&(r=null==r||r,o&&Le(e,G(e,"Month")+o*n),l&&q(e,"Date",G(e,"Date")+l*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&a.updateOffset(e,l||o))}qt.fn=Rt.prototype,qt.invalid=function(){return qt(NaN)};var en=Xt(1,"add"),tn=Xt(-1,"subtract");function nn(e){return"string"==typeof e||e instanceof String}function an(e,t){if(e.date()<t.date())return-an(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),a=e.clone().add(n,"months");return-(n+(t-a<0?(t-a)/(a-e.clone().add(n-1,"months")):(t-a)/(e.clone().add(n+1,"months")-a)))||0}function rn(e){var t;return void 0===e?this._locale._abbr:(null!=(t=gt(e))&&(this._locale=t),this)}a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",a.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ln=_("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function on(){return this._locale}var sn=1e3,cn=6e4,dn=36e5,un=126227808e5;function mn(e,t){return(e%t+t)%t}function hn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-un:new Date(e,t,n).valueOf()}function pn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-un:Date.UTC(e,t,n)}function fn(e,t){return t.erasAbbrRegex(e)}function gn(){var e,t,n=[],a=[],r=[],i=[],l=this.eras();for(e=0,t=l.length;e<t;++e)a.push(fe(l[e].name)),n.push(fe(l[e].abbr)),r.push(fe(l[e].narrow)),i.push(fe(l[e].name)),i.push(fe(l[e].abbr)),i.push(fe(l[e].narrow));this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function vn(e,t){z(0,[e,e.length],0,t)}function yn(e,t,n,a,r){var i;return null==e?$e(this,a,r).year:(t>(i=Be(e,a,r))&&(t=i),En.call(this,e,t,n,a,r))}function En(e,t,n,a,r){var i=je(e,t,n,a,r),l=We(i.year,0,i.dayOfYear);return this.year(l.getUTCFullYear()),this.month(l.getUTCMonth()),this.date(l.getUTCDate()),this}z("N",0,0,"eraAbbr"),z("NN",0,0,"eraAbbr"),z("NNN",0,0,"eraAbbr"),z("NNNN",0,0,"eraName"),z("NNNNN",0,0,"eraNarrow"),z("y",["y",1],"yo","eraYear"),z("y",["yy",2],0,"eraYear"),z("y",["yyy",3],0,"eraYear"),z("y",["yyyy",4],0,"eraYear"),he("N",fn),he("NN",fn),he("NNN",fn),he("NNNN",function(e,t){return t.erasNameRegex(e)}),he("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),ve(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,a){var r=n._locale.erasParse(e,a,n._strict);r?p(n).era=r:p(n).invalidEra=e}),he("y",se),he("yy",se),he("yyy",se),he("yyyy",se),he("yo",function(e,t){return t._eraYearOrdinalRegex||se}),ve(["y","yy","yyy","yyyy"],be),ve(["yo"],function(e,t,n,a){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),t[be]=n._locale.eraYearOrdinalParse?n._locale.eraYearOrdinalParse(e,r):parseInt(e,10)}),z(0,["gg",2],0,function(){return this.weekYear()%100}),z(0,["GG",2],0,function(){return this.isoWeekYear()%100}),vn("gggg","weekYear"),vn("ggggg","weekYear"),vn("GGGG","isoWeekYear"),vn("GGGGG","isoWeekYear"),Y("weekYear","gg"),Y("isoWeekYear","GG"),W("weekYear",1),W("isoWeekYear",1),he("G",ce),he("g",ce),he("GG",ne,X),he("gg",ne,X),he("GGGG",le,ee),he("gggg",le,ee),he("GGGGG",oe,te),he("ggggg",oe,te),ye(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,a){t[a.substr(0,2)]=$(e)}),ye(["gg","GG"],function(e,t,n,r){t[r]=a.parseTwoDigitYear(e)}),z("Q",0,"Qo","quarter"),Y("quarter","Q"),W("quarter",7),he("Q",Q),ve("Q",function(e,t){t[ke]=3*($(e)-1)}),z("D",["DD",2],"Do","date"),Y("date","D"),W("date",9),he("D",ne),he("DD",ne,X),he("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ve(["D","DD"],_e),ve("Do",function(e,t){t[_e]=$(e.match(ne)[0])});var wn=B("Date",!0);z("DDD",["DDDD",3],"DDDo","dayOfYear"),Y("dayOfYear","DDD"),W("dayOfYear",4),he("DDD",ie),he("DDDD",K),ve(["DDD","DDDD"],function(e,t,n){n._dayOfYear=$(e)}),z("m",["mm",2],0,"minute"),Y("minute","m"),W("minute",14),he("m",ne),he("mm",ne,X),ve(["m","mm"],xe);var bn=B("Minutes",!1);z("s",["ss",2],0,"second"),Y("second","s"),W("second",15),he("s",ne),he("ss",ne,X),ve(["s","ss"],Se);var kn,_n,Cn=B("Seconds",!1);for(z("S",0,0,function(){return~~(this.millisecond()/100)}),z(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),z(0,["SSS",3],0,"millisecond"),z(0,["SSSS",4],0,function(){return 10*this.millisecond()}),z(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),z(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),z(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),z(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),z(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Y("millisecond","ms"),W("millisecond",16),he("S",ie,Q),he("SS",ie,X),he("SSS",ie,K),kn="SSSS";kn.length<=9;kn+="S")he(kn,se);function xn(e,t){t[Me]=$(1e3*("0."+e))}for(kn="S";kn.length<=9;kn+="S")ve(kn,xn);_n=B("Milliseconds",!1),z("z",0,0,"zoneAbbr"),z("zz",0,0,"zoneName");var Sn=w.prototype;function Mn(e){return e}Sn.add=en,Sn.calendar=function(e,t){var n;1===arguments.length&&(arguments[0]?b(n=arguments[0])||d(n)||nn(n)||c(n)||function(e){var t=r(e),n=!1;return t&&(n=0===e.filter(function(t){return!c(t)&&nn(e)}).length),t&&n}(n)||function(e){var t,n=i(e)&&!o(e),a=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s=r.length;for(t=0;t<s;t+=1)a=a||l(e,r[t]);return n&&a}(n)||null==n?(e=arguments[0],t=void 0):function(e){var t,n=i(e)&&!o(e),a=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<r.length;t+=1)a=a||l(e,r[t]);return n&&a}(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var s=e||Pt(),u=Ft(s,this).startOf("day"),m=a.calendarFormat(this,u)||"sameElse",h=t&&(M(t[m])?t[m].call(this,s):t[m]);return this.format(h||this.localeData().calendar(m,this,Pt(s)))},Sn.clone=function(){return new w(this)},Sn.diff=function(e,t,n){var a,r,i;if(!this.isValid())return NaN;if(!(a=Ft(e,this)).isValid())return NaN;switch(r=6e4*(a.utcOffset()-this.utcOffset()),t=Z(t)){case"year":i=an(this,a)/12;break;case"month":i=an(this,a);break;case"quarter":i=an(this,a)/3;break;case"second":i=(this-a)/1e3;break;case"minute":i=(this-a)/6e4;break;case"hour":i=(this-a)/36e5;break;case"day":i=(this-a-r)/864e5;break;case"week":i=(this-a-r)/6048e5;break;default:i=this-a}return n?i:j(i)},Sn.endOf=function(e){var t,n;if(void 0===(e=Z(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?pn:hn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=dn-mn(t+(this._isUTC?0:this.utcOffset()*cn),dn)-1;break;case"minute":t=this._d.valueOf(),t+=cn-mn(t,cn)-1;break;case"second":t=this._d.valueOf(),t+=sn-mn(t,sn)-1}return this._d.setTime(t),a.updateOffset(this,!0),this},Sn.format=function(e){e||(e=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var t=H(this,e);return this.localeData().postformat(t)},Sn.from=function(e,t){return this.isValid()&&(b(e)&&e.isValid()||Pt(e).isValid())?qt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Sn.fromNow=function(e){return this.from(Pt(),e)},Sn.to=function(e,t){return this.isValid()&&(b(e)&&e.isValid()||Pt(e).isValid())?qt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Sn.toNow=function(e){return this.to(Pt(),e)},Sn.get=function(e){return M(this[e=Z(e)])?this[e]():this},Sn.invalidAt=function(){return p(this).overflow},Sn.isAfter=function(e,t){var n=b(e)?e:Pt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=Z(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},Sn.isBefore=function(e,t){var n=b(e)?e:Pt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=Z(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},Sn.isBetween=function(e,t,n,a){var r=b(e)?e:Pt(e),i=b(t)?t:Pt(t);return!!(this.isValid()&&r.isValid()&&i.isValid())&&("("===(a=a||"()")[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===a[1]?this.isBefore(i,n):!this.isAfter(i,n))},Sn.isSame=function(e,t){var n,a=b(e)?e:Pt(e);return!(!this.isValid()||!a.isValid())&&("millisecond"===(t=Z(t)||"millisecond")?this.valueOf()===a.valueOf():(n=a.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},Sn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},Sn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},Sn.isValid=function(){return f(this)},Sn.lang=ln,Sn.locale=rn,Sn.localeData=on,Sn.max=zt,Sn.min=Vt,Sn.parsingFlags=function(){return m({},p(this))},Sn.set=function(e,t){if("object"==typeof e){var n,a=function(e){var t,n=[];for(t in e)l(e,t)&&n.push({unit:t,priority:U[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=I(e)),r=a.length;for(n=0;n<r;n++)this[a[n].unit](e[a[n].unit])}else if(M(this[e=Z(e)]))return this[e](t);return this},Sn.startOf=function(e){var t,n;if(void 0===(e=Z(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?pn:hn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=mn(t+(this._isUTC?0:this.utcOffset()*cn),dn);break;case"minute":t=this._d.valueOf(),t-=mn(t,cn);break;case"second":t=this._d.valueOf(),t-=mn(t,sn)}return this._d.setTime(t),a.updateOffset(this,!0),this},Sn.subtract=tn,Sn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},Sn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},Sn.toDate=function(){return new Date(this.valueOf())},Sn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?H(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):M(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",H(n,"Z")):H(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Sn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n="moment",a="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+n+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+a+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Sn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Sn.toJSON=function(){return this.isValid()?this.toISOString():null},Sn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Sn.unix=function(){return Math.floor(this.valueOf()/1e3)},Sn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Sn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Sn.eraName=function(){var e,t,n,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),a[e].since<=n&&n<=a[e].until)return a[e].name;if(a[e].until<=n&&n<=a[e].since)return a[e].name}return""},Sn.eraNarrow=function(){var e,t,n,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),a[e].since<=n&&n<=a[e].until)return a[e].narrow;if(a[e].until<=n&&n<=a[e].since)return a[e].narrow}return""},Sn.eraAbbr=function(){var e,t,n,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),a[e].since<=n&&n<=a[e].until)return a[e].abbr;if(a[e].until<=n&&n<=a[e].since)return a[e].abbr}return""},Sn.eraYear=function(){var e,t,n,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-a(i[e].since).year())*n+i[e].offset;return this.year()},Sn.year=Ie,Sn.isLeapYear=function(){return F(this.year())},Sn.weekYear=function(e){return yn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Sn.isoWeekYear=function(e){return yn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},Sn.quarter=Sn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},Sn.month=Re,Sn.daysInMonth=function(){return Ne(this.year(),this.month())},Sn.week=Sn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},Sn.isoWeek=Sn.isoWeeks=function(e){var t=$e(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},Sn.weeksInYear=function(){var e=this.localeData()._week;return Be(this.year(),e.dow,e.doy)},Sn.weeksInWeekYear=function(){var e=this.localeData()._week;return Be(this.weekYear(),e.dow,e.doy)},Sn.isoWeeksInYear=function(){return Be(this.year(),1,4)},Sn.isoWeeksInISOWeekYear=function(){return Be(this.isoWeekYear(),1,4)},Sn.date=wn,Sn.day=Sn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},Sn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},Sn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},Sn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},Sn.hour=Sn.hours=ot,Sn.minute=Sn.minutes=bn,Sn.second=Sn.seconds=Cn,Sn.millisecond=Sn.milliseconds=_n,Sn.utcOffset=function(e,t,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Wt(ue,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=jt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?Kt(this,qt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:jt(this)},Sn.utc=function(e){return this.utcOffset(0,e)},Sn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(jt(this),"m")),this},Sn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Wt(de,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},Sn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Pt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},Sn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Sn.isLocal=function(){return!!this.isValid()&&!this._isUTC},Sn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Sn.isUtc=$t,Sn.isUTC=$t,Sn.zoneAbbr=function(){return this._isUTC?"UTC":""},Sn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Sn.dates=_("dates accessor is deprecated. Use date instead.",wn),Sn.months=_("months accessor is deprecated. Use month instead",Re),Sn.years=_("years accessor is deprecated. Use year instead",Ie),Sn.zone=_("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),Sn.isDSTShifted=_("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e,t={};return E(t,this),(t=Dt(t))._a?(e=t._isUTC?h(t._a):Pt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var a,r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),l=0;for(a=0;a<r;a++)$(e[a])!==$(t[a])&&l++;return l+i}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var An=T.prototype;function Tn(e,t,n,a){var r=gt(),i=h().set(a,t);return r[n](i,e)}function Nn(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return Tn(e,t,n,"month");var a,r=[];for(a=0;a<12;a++)r[a]=Tn(e,a,n,"month");return r}function Dn(e,t,n,a){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var r,i=gt(),l=e?i._week.dow:0,o=[];if(null!=n)return Tn(t,(n+l)%7,a,"day");for(r=0;r<7;r++)o[r]=Tn(t,(r+l)%7,a,"day");return o}An.calendar=function(e,t,n){var a=this._calendar[e]||this._calendar.sameElse;return M(a)?a.call(t,n):a},An.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(D).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},An.invalidDate=function(){return this._invalidDate},An.ordinal=function(e){return this._ordinal.replace("%d",e)},An.preparse=Mn,An.postformat=Mn,An.relativeTime=function(e,t,n,a){var r=this._relativeTime[n];return M(r)?r(e,t,n,a):r.replace(/%d/i,e)},An.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return M(n)?n(t):n.replace(/%s/i,t)},An.set=function(e){var t,n;for(n in e)l(e,n)&&(M(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},An.eras=function(e,t){var n,r,i,l=this._eras||gt("en")._eras;for(n=0,r=l.length;n<r;++n)switch("string"==typeof l[n].since&&(i=a(l[n].since).startOf("day"),l[n].since=i.valueOf()),typeof l[n].until){case"undefined":l[n].until=Infinity;break;case"string":i=a(l[n].until).startOf("day").valueOf(),l[n].until=i.valueOf()}return l},An.erasParse=function(e,t,n){var a,r,i,l,o,s=this.eras();for(e=e.toUpperCase(),a=0,r=s.length;a<r;++a)if(i=s[a].name.toUpperCase(),l=s[a].abbr.toUpperCase(),o=s[a].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(l===e)return s[a];break;case"NNNN":if(i===e)return s[a];break;case"NNNNN":if(o===e)return s[a]}else if([i,l,o].indexOf(e)>=0)return s[a]},An.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?a(e.since).year():a(e.since).year()+(t-e.offset)*n},An.erasAbbrRegex=function(e){return l(this,"_erasAbbrRegex")||gn.call(this),e?this._erasAbbrRegex:this._erasRegex},An.erasNameRegex=function(e){return l(this,"_erasNameRegex")||gn.call(this),e?this._erasNameRegex:this._erasRegex},An.erasNarrowRegex=function(e){return l(this,"_erasNarrowRegex")||gn.call(this),e?this._erasNarrowRegex:this._erasRegex},An.months=function(e,t){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Pe).test(t)?"format":"standalone"][e.month()]:r(this._months)?this._months:this._months.standalone},An.monthsShort=function(e,t){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Pe.test(t)?"format":"standalone"][e.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},An.monthsParse=function(e,t,n){var a,r,i;if(this._monthsParseExact)return He.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),a=0;a<12;a++){if(r=h([2e3,a]),n&&!this._longMonthsParse[a]&&(this._longMonthsParse[a]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[a]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[a]||(i="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[a]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[a].test(e))return a;if(n&&"MMM"===t&&this._shortMonthsParse[a].test(e))return a;if(!n&&this._monthsParse[a].test(e))return a}},An.monthsRegex=function(e){return this._monthsParseExact?(l(this,"_monthsRegex")||Ye.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=ze),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},An.monthsShortRegex=function(e){return this._monthsParseExact?(l(this,"_monthsRegex")||Ye.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=Ve),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},An.week=function(e){return $e(e,this._week.dow,this._week.doy).week},An.firstDayOfYear=function(){return this._week.doy},An.firstDayOfWeek=function(){return this._week.dow},An.weekdays=function(e,t){var n=r(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ge(n,this._week.dow):e?n[e.day()]:n},An.weekdaysMin=function(e){return!0===e?Ge(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},An.weekdaysShort=function(e){return!0===e?Ge(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},An.weekdaysParse=function(e,t,n){var a,r,i;if(this._weekdaysParseExact)return tt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),a=0;a<7;a++){if(r=h([2e3,1]).day(a),n&&!this._fullWeekdaysParse[a]&&(this._fullWeekdaysParse[a]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[a]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[a]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[a]||(i="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[a]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[a].test(e))return a;if(n&&"ddd"===t&&this._shortWeekdaysParse[a].test(e))return a;if(n&&"dd"===t&&this._minWeekdaysParse[a].test(e))return a;if(!n&&this._weekdaysParse[a].test(e))return a}},An.weekdaysRegex=function(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Xe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},An.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ke),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},An.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=et),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},An.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},An.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},pt("en",{eras:[{since:"0001-01-01",until:Infinity,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-Infinity,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===$(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),a.lang=_("moment.lang is deprecated. Use moment.locale instead.",pt),a.langData=_("moment.langData is deprecated. Use moment.localeData instead.",gt);var On=Math.abs;function Pn(e,t,n,a){var r=qt(t,n);return e._milliseconds+=a*r._milliseconds,e._days+=a*r._days,e._months+=a*r._months,e._bubble()}function Vn(e){return e<0?Math.floor(e):Math.ceil(e)}function zn(e){return 4800*e/146097}function Hn(e){return 146097*e/4800}function Ln(e){return function(){return this.as(e)}}var Rn=Ln("ms"),Yn=Ln("s"),Zn=Ln("m"),In=Ln("h"),Un=Ln("d"),Wn=Ln("w"),Fn=Ln("M"),jn=Ln("Q"),$n=Ln("y");function Bn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Gn=Bn("milliseconds"),qn=Bn("seconds"),Jn=Bn("minutes"),Qn=Bn("hours"),Xn=Bn("days"),Kn=Bn("months"),ea=Bn("years"),ta=Math.round,na={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function aa(e,t,n,a,r){return r.relativeTime(t||1,!!n,e,a)}var ra=Math.abs;function ia(e){return(e>0)-(e<0)||+e}function la(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,a,r,i,l,o,s=ra(this._milliseconds)/1e3,c=ra(this._days),d=ra(this._months),u=this.asSeconds();return u?(e=j(s/60),t=j(e/60),s%=60,e%=60,n=j(d/12),d%=12,a=s?s.toFixed(3).replace(/\.?0+$/,""):"",r=u<0?"-":"",i=ia(this._months)!==ia(u)?"-":"",l=ia(this._days)!==ia(u)?"-":"",o=ia(this._milliseconds)!==ia(u)?"-":"",r+"P"+(n?i+n+"Y":"")+(d?i+d+"M":"")+(c?l+c+"D":"")+(t||e||s?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(s?o+a+"S":"")):"P0D"}var oa=Rt.prototype;return oa.isValid=function(){return this._isValid},oa.abs=function(){var e=this._data;return this._milliseconds=On(this._milliseconds),this._days=On(this._days),this._months=On(this._months),e.milliseconds=On(e.milliseconds),e.seconds=On(e.seconds),e.minutes=On(e.minutes),e.hours=On(e.hours),e.months=On(e.months),e.years=On(e.years),this},oa.add=function(e,t){return Pn(this,e,t,1)},oa.subtract=function(e,t){return Pn(this,e,t,-1)},oa.as=function(e){if(!this.isValid())return NaN;var t,n,a=this._milliseconds;if("month"===(e=Z(e))||"quarter"===e||"year"===e)switch(n=this._months+zn(t=this._days+a/864e5),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Hn(this._months)),e){case"week":return t/7+a/6048e5;case"day":return t+a/864e5;case"hour":return 24*t+a/36e5;case"minute":return 1440*t+a/6e4;case"second":return 86400*t+a/1e3;case"millisecond":return Math.floor(864e5*t)+a;default:throw new Error("Unknown unit "+e)}},oa.asMilliseconds=Rn,oa.asSeconds=Yn,oa.asMinutes=Zn,oa.asHours=In,oa.asDays=Un,oa.asWeeks=Wn,oa.asMonths=Fn,oa.asQuarters=jn,oa.asYears=$n,oa.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*$(this._months/12):NaN},oa._bubble=function(){var e,t,n,a,r,i=this._milliseconds,l=this._days,o=this._months,s=this._data;return i>=0&&l>=0&&o>=0||i<=0&&l<=0&&o<=0||(i+=864e5*Vn(Hn(o)+l),l=0,o=0),s.milliseconds=i%1e3,e=j(i/1e3),s.seconds=e%60,t=j(e/60),s.minutes=t%60,n=j(t/60),s.hours=n%24,l+=j(n/24),o+=r=j(zn(l)),l-=Vn(Hn(r)),a=j(o/12),o%=12,s.days=l,s.months=o,s.years=a,this},oa.clone=function(){return qt(this)},oa.get=function(e){return e=Z(e),this.isValid()?this[e+"s"]():NaN},oa.milliseconds=Gn,oa.seconds=qn,oa.minutes=Jn,oa.hours=Qn,oa.days=Xn,oa.weeks=function(){return j(this.days()/7)},oa.months=Kn,oa.years=ea,oa.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,a,r=!1,i=na;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(i=Object.assign({},na,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),a=function(e,t,n,a){var r=qt(e).abs(),i=ta(r.as("s")),l=ta(r.as("m")),o=ta(r.as("h")),s=ta(r.as("d")),c=ta(r.as("M")),d=ta(r.as("w")),u=ta(r.as("y")),m=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||l<=1&&["m"]||l<n.m&&["mm",l]||o<=1&&["h"]||o<n.h&&["hh",o]||s<=1&&["d"]||s<n.d&&["dd",s];return null!=n.w&&(m=m||d<=1&&["w"]||d<n.w&&["ww",d]),(m=m||c<=1&&["M"]||c<n.M&&["MM",c]||u<=1&&["y"]||["yy",u])[2]=t,m[3]=+e>0,m[4]=a,aa.apply(null,m)}(this,!r,i,n=this.localeData()),r&&(a=n.pastFuture(+this,a)),n.postformat(a)},oa.toISOString=la,oa.toString=la,oa.toJSON=la,oa.locale=rn,oa.localeData=on,oa.toIsoString=_("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",la),oa.lang=ln,z("X",0,0,"unix"),z("x",0,0,"valueOf"),he("x",ce),he("X",/[+-]?\d+(\.\d{1,3})?/),ve("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),ve("x",function(e,t,n){n._d=new Date($(e))}),a.version="2.29.4",t=Pt,a.fn=Sn,a.min=function(){return Ht("isBefore",[].slice.call(arguments,0))},a.max=function(){return Ht("isAfter",[].slice.call(arguments,0))},a.now=function(){return Date.now?Date.now():+new Date},a.utc=h,a.unix=function(e){return Pt(1e3*e)},a.months=function(e,t){return Nn(e,t,"months")},a.isDate=d,a.locale=pt,a.invalid=g,a.duration=qt,a.isMoment=b,a.weekdays=function(e,t,n){return Dn(e,t,n,"weekdays")},a.parseZone=function(){return Pt.apply(null,arguments).parseZone()},a.localeData=gt,a.isDuration=Yt,a.monthsShort=function(e,t){return Nn(e,t,"monthsShort")},a.weekdaysMin=function(e,t,n){return Dn(e,t,n,"weekdaysMin")},a.defineLocale=ft,a.updateLocale=function(e,t){if(null!=t){var n,a,r=st;null!=ct[e]&&null!=ct[e].parentLocale?ct[e].set(A(ct[e]._config,t)):(null!=(a=ht(e))&&(r=a._config),t=A(r,t),null==a&&(t.abbr=e),(n=new T(t)).parentLocale=ct[e],ct[e]=n),pt(e)}else null!=ct[e]&&(null!=ct[e].parentLocale?(ct[e]=ct[e].parentLocale,e===pt()&&pt(e)):null!=ct[e]&&delete ct[e]);return ct[e]},a.locales=function(){return C(ct)},a.weekdaysShort=function(e,t,n){return Dn(e,t,n,"weekdaysShort")},a.normalizeUnits=Z,a.relativeTimeRounding=function(e){return void 0===e?ta:"function"==typeof e&&(ta=e,!0)},a.relativeTimeThreshold=function(e,t){return void 0!==na[e]&&(void 0===t?na[e]:(na[e]=t,"s"===e&&(na.ss=t-1),!0))},a.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},a.prototype=Sn,a.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},a}()},Xn(Kn={exports:{}}),Kn.exports);const ta={fontSize:"16px",fontWeight:400,lineHeight:"165%"},na=()=>{},aa=({disabled:e,spinner:t}={})=>{const n=Te({},ta,{backgroundColor:It.interaction55,color:t?"transparent":"surface",spinner:t?{color:It.interaction55}:void 0});return Te({},n,e?{backgroundColor:It.lightNeutral81,spinner:t?{color:It.lightNeutral81}:void 0}:{active:{backgroundColor:It.interaction45},focus:{backgroundColor:It.interaction55},hover:{backgroundColor:It.interaction50}})},ra="notification.mark_read",ia=[ra,"notification.mark_unread"],la=()=>{const e=o(Bn);if(!e)throw new Error("useChat must be used within a ChatProvider");return e},oa=()=>o(Wn),sa=()=>{const[e,n]=t.useState(null),a=null===e,r=oa();return t.useEffect(()=>{r.chat.get("me/connected_people").then(e=>n(e))},[]),{loading:a,people:e,switchPerson:ca}},ca=(e,t,n)=>{ze(Ve,`${d(n)("api")}/login/v2/me/switch_connected_person`,{data:{data:{attributes:{id:e,return_path:t}}},method:"POST"}).then(({json:e})=>{window.location=e.meta.redirect_to})},da={plan_id:null,teams:[]},ua={Services:da},ma=[["List",""],["Shortcuts","new/shortcuts"],["NewServices","new/services"],["NewGroups","new/groups"],["Conversation","conversations/:id"],["Details","conversations/:id/details"],["NewServicesPlan","new/services/plans/:plan_id/teams/:teams"],["NewServicesTeam","new/services/teams/:teams"],["BlankState","blankstate"]],ha=e=>{null!=e||(e="");const t=e.split("/"),n=ma.find(([,e])=>{const n=e.split("/");return t.length===n.length&&n.every((e,n)=>e.startsWith(":")||e===t[n])});if(!n)return null;const[a,r]=n,i=r.split("/").reduce((e,n,a)=>n.startsWith(":")?Te({},e,{[n.slice(1)]:t[a]}):e,{});return{name:a,params:i,index:ma.indexOf(n),path:(e=i)=>r.split("/").reduce((t,n)=>[...t,n.startsWith(":")?e[n.slice(1)]:n],[]).join("/")}},pa=["token"],fa={fontSize:"16px",fontWeight:600,lineHeight:"165%"},ga=({children:e})=>t.createElement(_,Te({level:2},fa),e),va=({children:e,loading:n,title:a})=>t.createElement(f,{spacing:1},t.createElement(f,{spacing:1,alignment:"center",axis:"horizontal"},t.createElement(ga,null,a),n&&t.createElement(M,{size:"sm"})),t.createElement(t.Fragment,null,e)),ya={Services:({groups:e})=>{const n=["Team","PlanTeam"].reduce((t,n)=>e[n]?[...t,...e[n]]:t,[]);return t.createElement(va,{title:"Teams"},t.createElement(A,{spacing:1},n.map(e=>t.createElement(S,{key:e.source_identifier,size:"sm"},e.name))))}},Ea=({groups:e})=>t.createElement(t.Fragment,null,Object.entries(e).reduce((e,[n,a])=>{const r=ya[n];return r?[...e,t.createElement(r,{key:n,groups:a})]:e},[])),wa="18px 1fr auto",ba=({childPeople:e})=>{const[n,r]=a(!1),i=e.length,l=`${i} ${1===i?"member":"members"} under age 13`;return t.createElement(f,{background:It.warning94,marginBottom:.5,padding:1,radius:4},t.createElement(C,{alignment:"start",columns:wa,spacing:1},t.createElement(v,{color:It.warning49,marginTop:"1px",name:"general.shieldExclamation",size:"lg"}),t.createElement(g,{grow:1,color:"foreground",size:4},n?"Members under age 13 cannot chat. They will not see conversations or receive notifications.":l),t.createElement(p,{"aria-label":n?"Hide explanation":"Show explanation",icon:{name:n?"general.upCaret":"general.downCaret",size:"md"},onClick:()=>r(!n),size:"xs",theme:"warning",tooltip:n?"Hide explanation":"Show explanation",variant:"naked"})),t.createElement(T,{open:n},t.createElement(C,{alignment:"start",columns:wa,spacing:1},t.createElement(f,{gridColumnStart:2,paddingTop:1,spacing:1},e.map(e=>t.createElement(f,{alignment:"center",axis:"horizontal",key:e.id,spacing:1},t.createElement(x,{src:e.avatar,size:"sm"}),t.createElement(g,{color:"foreground",size:4,weight:500},e.name)))))))},ka=({person:e})=>t.createElement(e.child?Ca:_a,{person:e}),_a=({person:e})=>t.createElement(f,{alignment:"center",axis:"horizontal",spacing:1},t.createElement(x,{src:e.avatar,size:"lg"}),t.createElement(f,{alignment:"start",spacing:.25},t.createElement(g,{truncate:!0},e.name),e.badges.length>0&&t.createElement(f,{alignment:"center",axis:"horizontal",spacing:.5},e.badges.map(({title:e})=>t.createElement(S,{key:e,size:"xs"},e))))),Ca=({person:e})=>t.createElement(f,{alignment:"center",axis:"horizontal",spacing:1},t.createElement(k,{opacity:.5},t.createElement(x,{src:e.avatar,size:"lg"})),t.createElement(f,null,t.createElement(g,{color:"foreground",opacity:.75,truncate:!0},e.name),t.createElement(f,{alignment:"center",axis:"horizontal",spacing:.5},t.createElement(v,{name:"general.shieldExclamation",color:It.warning49}),t.createElement(g,{color:It.warning20,size:5},"Not eligible to chat")))),xa=({channel:e})=>{const{chatMembers:n,loadingChatMembers:a}=(e=>{const[n,a]=t.useState([]),[r,i]=t.useState(!1),l=oa();return t.useEffect(()=>{e&&(i(!0),l.chat.get(`me/conversations/${e.id}/members`,{per_page:100},{unpaginated:!0}).then(e=>{a(e),i(!1)}).catch(na))},[e]),{chatMembers:n,loadingChatMembers:r}})(e),r=n.filter(e=>e.child),i=r.length>0,l=n.slice(0,500),o=n.length>500;return t.createElement(va,{title:"People",loading:a},t.createElement(f,{paddingBottom:2,spacing:1.5},i&&t.createElement(ba,{childPeople:r}),l.map(e=>t.createElement(ka,{key:e.id,person:e})),o&&t.createElement(g,{color:"foregroundSecondary"},"and ",n.length-l.length," more...")))},Sa=({channel:e})=>{const n=Qn(e);return t.createElement(f,{axis:"horizontal",width:"100%"},t.createElement(g,{as:"label",display:"flex",grow:1},"Mute",t.createElement(f,{grow:1}),t.createElement(N,{isChecked:n,ariaLabel:"Mute Channel",onClick:()=>n?e.unmute():e.mute()})))},Ma=({channel:e})=>{const[n,a]=t.useState(!1),[r,i]=t.useState(!1),{navigation:l}=la(),o=oa();return t.createElement(k,null,!n&&t.createElement(p,{onClick:()=>a(!0),paddingHorizontal:0,paddingVertical:0,theme:!1},t.createElement(g,{color:"error"},"Delete conversation")),t.createElement(T,{open:n,instant:!0},t.createElement(f,{backgroundColor:"error-lightest",padding:2,radius:4,spacing:1},t.createElement(g,{size:4},"Deleting this conversation will remove it for everyone. This cannot be undone. Are you sure?"),t.createElement(f,{distribution:"end",alignment:"end",axis:"horizontal",spacing:1},t.createElement(p,{fontWeight:400,onClick:()=>a(!1),size:"sm",theme:"dark",variant:"naked"},"Cancel"),t.createElement(p,{disabled:r,fontWeight:400,onMouseDown:e=>e.preventDefault(),onClick:()=>{i(!0),o.chat.delete(`me/conversations/${e.id}`).then(l.switchToChannelListView).catch(na)},size:"sm",theme:"error",title:"Yes, delete",spinner:r})))))},Aa=({channel:e,isRemovable:n})=>t.createElement(va,{title:"Settings"},t.createElement(f,{spacing:1},t.createElement(Sa,{channel:e}),n&&t.createElement(Ma,{channel:e}))),Ta=({channel:e,isEditable:n})=>{const[a,r]=t.useState(e.data.name),i=oa();return t.createElement(va,{title:"Title"},t.createElement(D,{size:"lg",value:a,maxLength:255,disabled:!n,onChange:e=>r(e.target.value),onBlur:()=>{a!==e.data.name&&i.chat.patch(`me/conversations/${e.id}`,{title:a}).catch(na)},onKeyDown:e=>"Enter"===e.key&&e.target.blur()}))},Na=({channel:e})=>{const n=(e=>{const[n,a]=t.useState([]),r=oa();return t.useEffect(()=>{e&&r.chat.get(`me/conversations/${e.id}/groups`).then(a).catch(na)},[e]),n.reduce((e,t)=>{var n,a,r;return e[n=t.source_app_name]||(e[n]={}),(a=e[t.source_app_name])[r=t.source_type]||(a[r]=[]),e[t.source_app_name][t.source_type].push(t),e},{})})(e),a=(e=>{const n=oa(),[a,r]=t.useState({canDelete:!1,canUpdate:!1});return t.useEffect(()=>{n.chat.get(`/me/conversations/${e.id}/member_ability`).then(e=>r({canDelete:e.can_delete,canUpdate:e.can_update}))},[e]),a})(e);return t.createElement(Hn,null,t.createElement(f,{padding:2,spacing:4,grow:1,distribution:"start"},t.createElement(Ta,{channel:e,isEditable:a.canUpdate}),t.createElement(Aa,{channel:e,isRemovable:a.canDelete}),Object.keys(n).length>0&&t.createElement(Ea,{groups:n}),t.createElement(xa,{channel:e})))},Da=()=>{const{channel:e}=$(),{navigation:n}=la();return e&&n.isChannelDetailsViewActive?t.createElement(t.Fragment,null,t.createElement(f,{alignment:"center",axis:"horizontal",spacing:1,padding:2,paddingTop:1},t.createElement(p,{"aria-label":"Switch to chat list",color:It.lightNeutral12,icon:"general.leftChevron",onClick:()=>n.switchToChannelView(e.id),size:"sm",title:"Back to chat list",variant:"naked"}),t.createElement(On,{truncate:!0},"Conversation details")),t.createElement(Na,{channel:e})):null},Oa=()=>t.createElement(f,{alignment:"center",distribution:"center",padding:4,paddingTop:"54px",width:"100%"},t.createElement(Pa,null),t.createElement(_,{color:"foreground",fontWeight:500,marginTop:1,size:3},"No conversations")),Pa=()=>t.createElement("svg",{width:"162",height:"124",viewBox:"0 0 162 124",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{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",fill:"#EDF6FB"}),t.createElement("g",{opacity:"0.2"},t.createElement("path",{opacity:"0.2",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",stroke:"#BAC7D3",strokeWidth:"1.48",strokeMiterlimit:"10"}),t.createElement("path",{opacity:"0.2",d:"M152.714 87.1641C143.909 100.408 130.985 110.631 117.792 116.628",stroke:"#BAC7D3",strokeWidth:"1.48",strokeMiterlimit:"10"}),t.createElement("path",{opacity:"0.2",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",stroke:"#BAC7D3",strokeWidth:"1.48",strokeMiterlimit:"10"})),t.createElement("path",{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",fill:"#48A5E5"}),t.createElement("path",{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",fill:"#EEF5FD"}),t.createElement("path",{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",fill:"#EEF5FD"}),t.createElement("path",{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",fill:"#EEF5FD"}),t.createElement("path",{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",fill:"#79CAF2"}),t.createElement("path",{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",fill:"#EEF5FD"}),t.createElement("path",{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",fill:"#EEF5FD"}),t.createElement("path",{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",fill:"#EEF5FD"})),Va=({appName:e,env:r,currentPersonId:i})=>{const{people:l,loading:o,switchPerson:s}=sa(),[c,d]=a(l),[u,m]=a(null),[h,p]=a(!1),g=null==c?void 0:c.some(e=>e.id!==`${i}`&&e.unread_count);return n(()=>{if(l){const e=l.sort((e,t)=>e.organization_name.localeCompare(t.organization_name));d(e);const t=l.find(e=>e.id===`${i}`);m(t)}},[l]),t.createElement(f,{paddingHorizontal:2},t.createElement(O,{emptyValue:"Linked Accounts",disabled:h,matchWidths:!0,onChange:({value:t})=>{const n=c.find(e=>e.id===t);m(n),n.id!==`${i}`&&(p(!0),s(n.id,`${e}/`,r))},value:null==u?void 0:u.id,renderValue:()=>t.createElement(f,{alignment:"center",axis:"horizontal",distribution:"space-between",spacing:1},u.organization_name,g&&!h&&t.createElement(Pn,{right:3.5,top:1.25}),h&&t.createElement(M,{key:"loader",position:"absolute",height:1.5,width:1.5,zIndex:6,right:3.5,top:1.25}))},t.createElement(Ha,null),null==c?void 0:c.map(e=>t.createElement(O.Option,{value:e.id,key:e.id},t.createElement(f,{alignment:"center",axis:"horizontal",distribution:"space-between",spacing:1},e.organization_name,e.unread_count>0&&t.createElement(Pn,{right:1.5,top:1.25})))),o&&t.createElement(za,null)))},za=()=>t.createElement(P.Item,{alignment:"center",distribution:"center",paddingBottom:2,paddingTop:2},t.createElement(M,null)),Ha=()=>t.createElement(f,{axis:"horizontal",backgroundColor:It.interaction97,marginBottom:.5,marginHorizontal:1.25,marginTop:1,padding:1,radius:4,spacing:1},t.createElement(v,{color:It.interaction66,marginTop:"3px",name:"general.outlinedExclamationCircle"}),t.createElement(g,{size:5},"Make sure any changes outside of chat are saved before switching accounts.")),La=()=>t.createElement(f,{alignment:"center",spacing:2,padding:2,paddingTop:"10%"},t.createElement(v,{name:"general.exclamationTriangle",color:"warning",size:"xl"}),t.createElement(g,{color:"foregroundSecondary",align:"center"},"An error occured while connecting to the chat, please try again.")),Ra=e=>{const{children:n,error:a=null,loading:r}=e,{navigation:i}=la(),l=(()=>{const[e,n]=t.useState({}),a=oa();return t.useEffect(()=>{a.chat.get("me/app_grants").then(e=>e.reduce((e,t)=>Te({},e,{[t.app_name]:t}),{})).then(n)},[]),{canCreateChat:t=>e[t]&&e[t].create_conversations}})(),o=l.canCreateChat("Services")||l.canCreateChat("Groups");return a?t.createElement(La,null):r?null:t.createElement(f,{grow:1,shrink:1},t.createElement(Hn,null,n),t.createElement(h,null),t.createElement(f,{padding:2,alignment:"stretch"},o&&t.createElement(p,Te({"aria-label":"Switch to new conversation",onClick:i.switchToNewChatShortcutsView},aa()),"New conversation")))},Ya={groups:"Groups",services:"Services"},Za=({appName:e,channel:n})=>{let a,r;switch(e){case"Groups":{var i;const t=n.data[e];var l;a="Group",null!=t&&null!=(i=t.names)&&i.length&&(r=null==(l=t.names)?void 0:l.join(", "));break}case"Services":{const t=n.data[e];a=null!=t&&t.dates?"Plan":"Team",null!=t&&t.dates&&(r=t.dates);break}}return t.createElement(V,{radius:4,spacing:"0.25px",className:"channel-meta",maxWidth:"100%"},t.createElement(f,{alignment:"center",axis:"horizontal",backgroundColor:It.lightNeutral95,borderColor:It.lightNeutral95,borderWidth:1,distribution:"center",padding:.5,paddingHorizontal:1,spacing:.5},t.createElement(xt,{appName:e,size:15}),t.createElement(g,{lineHeight:"13px",size:5,weight:500},a)),r&&t.createElement(f,{alignment:"center",borderColor:It.lightNeutral95,borderLeftWidth:0,borderWidth:1,distribution:"center",padding:.5,paddingHorizontal:1,shrink:1},t.createElement(z,{title:r,openDelay:800},t.createElement(g,{color:"foregroundSecondary",lineHeight:"13px",size:5,truncate:!0,maxWidth:"100%"},r))))},Ia=({channel:e})=>{var n;if(null==e||null==(n=e.data)||!n.pco_apps)return null;const a=e.data.pco_apps.map(n=>t.createElement(Za,{key:n,appName:Ya[n],channel:e}));return t.createElement(f,{axis:"horizontal",maxWidth:"calc(100% + 24px)"},a)},Ua=e=>{var t;return null==(t=e.user)?void 0:t.image},Wa=({member:e,size:n=40})=>t.createElement(B,{image:Ua(e),shape:"square",size:n}),Fa=({members:e})=>{let n=null;return 1===e.length&&(n=t.createElement(Wa,{member:e[0]})),2===e.length&&(n=t.createElement(t.Fragment,null,t.createElement("div",null,t.createElement(Wa,{member:e[0]})),t.createElement("div",{style:{marginLeft:"-20px"}},t.createElement(Wa,{member:e[1]})))),3===e.length&&(n=t.createElement(t.Fragment,null,t.createElement("div",null,t.createElement(Wa,{member:e[0]})),t.createElement("div",{style:{marginLeft:"-20px"}},t.createElement(Wa,{member:e[1],size:20}),t.createElement(Wa,{member:e[2],size:20})))),e.length>=4&&(n=t.createElement(t.Fragment,null,t.createElement("div",null,t.createElement(Wa,{member:e[e.length-4],size:20}),t.createElement(Wa,{member:e[e.length-3],size:20})),t.createElement("div",null,t.createElement(Wa,{member:e[e.length-2],size:20}),t.createElement(Wa,{member:e[e.length-1],size:20})))),t.createElement("div",{className:"str-chat__avatar-group"},n)},ja=({unread:e})=>{if(e<1)return null;const n=e<=99?e.toString():"99+";return t.createElement(S,{title:n,size:"xs",color:It.interaction66,radius:"pill",minWidth:3})},$a=({channel:e,lastMessage:n,setActiveChannel:a,unread:r})=>{const{client:i}=$(),{userLanguage:l}=G(),{setActionsOpenForChannel:o,actionsOpenForChannel:s,navigation:c,refreshTotalUnreadCount:d}=la(),u=Qn(e),{isUnread:m,isUnreadable:h,markRead:p,markUnread:y,unreadCount:E}=((e,n,a)=>{const{client:r}=$(),[i,l]=t.useState(n),o=t.useRef(!0);t.useEffect(()=>{l(n),o.current?o.current=!1:a()},[n]),t.useEffect(()=>{const t=t=>{var n,a;if(t.cid!==e.cid)return;if((null==(n=t.user)?void 0:n.id)!==(null==(a=r.user)?void 0:a.id))return;const i=t.type===ra?0:e.countUnread();l(i)};return ia.forEach(e=>r.on(e,t)),()=>ia.forEach(e=>r.off(e,t))},[]);const s=t.useMemo(()=>((e,t)=>{for(let t=e.length-1;t>=0;t--)if((null==(n=e[t].user)?void 0:n.id)!==r.userID)return e[t];var n})(e.state.latestMessages),[i]),c=Boolean(null==s?void 0:s.id);return{isUnread:Boolean(i),isUnreadable:c,markRead:async()=>await e.markRead(),markUnread:async()=>c&&await e.markUnread({message_id:s.id}),unreadCount:i}})(e,r,d),w=s===e.id,b=t=>{"actions-dropdown"!==t.target.getAttribute("data-type")&&(a(e),c.switchToChannelView(e.id))},x=Object.values(e.state.members).filter(({user:e})=>e.id!==i.userID),S=e.data.name;return t.createElement(C,{alignment:"start","aria-label":`Select Channel: ${S||""}`,backgroundColor:w?"surfaceTertiary":"surface",borderBottomColor:"separatorTertiary",borderBottomWidth:1,columns:"auto 1fr auto",cursor:"pointer",css:{"&:hover":{".actions-dropdown":{visibility:"visible"},".channel-meta > *":{borderColor:It.lightNeutral88},backgroundColor:"surfaceTertiary"},"@media (hover: none)":{".actions-dropdown":{visibility:"visible"}}},minHeight:10,onClick:b,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||b(e)},padding:1,paddingHorizontal:2,radius:0,role:"button",spacing:1,tabIndex:0,width:"100%"},t.createElement(Fa,{members:x}),t.createElement(f,{height:"100%",alignment:"start",paddingRight:1},t.createElement(_,{level:4,maxWidth:"100%",truncate:!0,weight:500},S),t.createElement(g,{color:"foregroundSecondary",css:{WebkitBoxOrient:"vertical",WebkitLineClamp:"2",display:"-webkit-box",overflow:"hidden",textOverflow:"ellipsis"},lineHeight:"1.35",maxWidth:"100%",size:4,textAlign:"left"},(e=>{var t,n;if(!e)return"Empty conversation";const a=null==(t=e.user)?void 0:t.name,r=null==(n=e.attachments)?void 0:n.length;return`${a}: ${(e.deleted_at?"Message deleted":e.text)||(1===r?"1 attachment":`${r} attachments`)}`})(n)),t.createElement(f,{basis:.5,grow:1}),t.createElement(Ia,{channel:e})),t.createElement(f,{alignment:"end",minWidth:6,height:"100%"},t.createElement(g,{color:"foregroundSecondary",size:5},((e,t)=>{var n,a;const r=null==(n=e.state)?void 0:n.last_message_at,i=null==(a=e.data)?void 0:a.created_at;if(!r&&!i)return null;const l=new Date(r||i);return isNaN(l.getTime())?null:((e,t)=>{const n=ea(),a=n.isSame(e,"day"),r=n.isSame(e,"week"),i=n.isSame(e,"year"),l=new Intl.DateTimeFormat(t,{timeStyle:"short"});return a?l.format(e):ue.date(e,r?{style:"relative"}:i?{style:"abbreviated"}:{style:"short",year:!0})})(l,t)})(e,l)),t.createElement(f,{alignment:"end",alignSelf:"stretch",grow:1},u?t.createElement(v,{name:"general.bellMuted"}):t.createElement(ja,{unread:E})),t.createElement(k,{onClick:e=>e.stopPropagation()},t.createElement(H,{alignSelf:"end",className:"actions-dropdown","data-type":"actions-dropdown",icon:{name:"people.importProgress",size:"lg"},radius:"circle",iconRight:null,lockScrollWhileOpen:!0,onClose:()=>o(null),onOpen:()=>o(e.id),placement:"top-end",popoverProps:{offset:4,shouldFlip:!0},right:"1.5px",size:"xs",theme:"dark",title:"Chat actions",variant:"naked",visibility:w?"visible":"hidden"},t.createElement(H.Item,{disabled:!(m||h),onSelect:async()=>{m?await p():await y(),await d()}},"Mark "+(m?"read":"unread")),t.createElement(H.Item,{onSelect:()=>u?e.unmute():e.mute()},u?"Unmute":"Mute")))))},Ba=({client:e,closeDrawer:r,env:l,appName:o,currentPersonId:s})=>{const c=(()=>{const[e,t]=a(!0),{channelsQueryState:r}=$("ChannelList"),{queryInProgress:i}=r;return n(()=>{t(null!=i)},[i]),e})(),{hasConnectedPeople:d}=Rt(),{totalUnreadCount:u,markAllRead:m,markAllReadProcessing:h}=la(),g={$or:[{last_message_at:{$exists:!0}},{created_by_id:e.userID}],members:{$in:[e.userID]},type:"messaging"},v=i(async(t,n)=>{const a=n.channel;if(null!=a&&a.id&&Boolean(a.last_message_at))try{const n=e.channel(a.type,a.id);await n.watch(),t(e=>[n,...e])}catch(e){console.error(e)}},[e.userID]);return t.createElement(t.Fragment,null,t.createElement(Nn,{closeDrawer:r},t.createElement(f,{axis:"horizontal",alignment:"center",spacing:1},t.createElement(On,null,"Chat"),t.createElement(qn,null),c&&t.createElement(M,{color:"hsl(0 0% 62%)",thickness:2,trackColor:"hsl(0 0% 97%)"}))),t.createElement(f,{spacing:2,grow:1},d&&t.createElement(Va,{env:l,appName:o,currentPersonId:s}),t.createElement(f,{alignment:"center",axis:"horizontal",spacing:2,distribution:"space-between",paddingHorizontal:2},t.createElement(ga,null,"Conversations"),t.createElement(p,{disabled:h,fontWeight:400,left:"6px",onClick:m,size:"xs",spinner:h,theme:"primary",variant:"naked"},"Mark ",u||"all"," read")),t.createElement(q,{setActiveChannelOnMount:!1,EmptyStateIndicator:Oa,filters:g,onMessageNew:v,onAddedToChannel:v,List:Ra,Paginator:J,Preview:$a})))},Ga=()=>t.createElement(f,{alignment:"center",distribution:"center",height:"100%",spacing:1},t.createElement(v,{color:It.lightNeutral81,name:"general.outlinedTextMessage",size:"64px"}),t.createElement(g,{color:"foregroundTertiary"},"No conversation")),qa=({channel:e,closeDrawer:a,setOverflowBottom:r,setOverflowTop:i,switchToChannelDetailsView:o,switchToChannelListView:s,title:c})=>{const{headerRef:d}=(({setOverflowBottom:e,setOverflowTop:t})=>{const{listElement:a,scrollToBottom:r}=Q(),i=l(null);return n(()=>{const t=new ResizeObserver(()=>{a&&e(a.scrollHeight-a.clientHeight>a.scrollTop+1)});return t.observe(a),()=>t.unobserve(a)},[a,e]),n(()=>{var n;const{scrollTop:l,scrollHeight:o,clientHeight:s}=a;t(l>0),e(o-s>l+1);const c=null==i||null==(n=i.current)?void 0:n.offsetHeight;a.style.marginTop=`${c}px`,r()},[a]),n(()=>{const n=()=>{const{scrollTop:n,scrollHeight:r,clientHeight:i}=a;t(n>0),e(r-i>n+1)};return a.addEventListener("scroll",n),()=>a.removeEventListener("scroll",n)},[a,t,e]),{headerRef:i}})({setOverflowBottom:r,setOverflowTop:i});return t.createElement(Ja,{channel:e,closeDrawer:a,innerRef:d,switchToChannelDetailsView:o,switchToChannelListView:s,title:c})},Ja=({channel:e,closeDrawer:n,switchToChannelDetailsView:a,switchToChannelListView:r,title:i,innerRef:l=null})=>t.createElement(f,{axis:"horizontal",backgroundColor:"surface",innerRef:l,left:0,padding:2,paddingTop:1,position:"absolute",right:0,spacing:1,top:0,zIndex:5},t.createElement(p,{alignSelf:"baseline","aria-label":"Switch to chat list",icon:{color:It.lightNeutral12,name:"general.leftChevron"},marginTop:.25,onClick:r,size:"md",title:"Back to chat list",variant:"naked"}),t.createElement(f,{shrink:1},t.createElement(On,{truncate:!0},i),t.createElement(Ia,{channel:e})),t.createElement(f,{alignment:"start",axis:"horizontal",marginLeft:"auto",spacing:.25},t.createElement(p,{"aria-label":"Switch to conversation details",icon:{color:It.lightNeutral12,name:"general.cog"},onClick:a,size:"md",title:"Conversation details",variant:"naked"}),t.createElement(p,{"aria-label":"Close drawer",icon:{color:It.lightNeutral12,name:"general.x"},onClick:n,size:"md",title:"Close drawer",variant:"naked"}))),Qa={placement:"top",popoverProps:{backgroundColor:"surface",color:"foreground",elevation:2,offset:0,paddingHorizontal:1,paddingVertical:1,radius:6}},Xa={alignment:f.CENTER,axis:f.HORIZONTAL,distribution:f.CENTER,marginRight:.5,padding:.5,spacing:.5},Ka=()=>t.createElement(X,{MessageReadStatus:tr,MessageDeliveredStatus:er}),er=()=>t.createElement(z,Te({title:"Delivered"},Qa),t.createElement(f,Te({},Xa),t.createElement(v,{name:"general.check"}))),tr=()=>{var e;const{client:n}=$(),{readBy:a}=K("MessageStatus"),{t:r}=G("MessageStatus"),i=ee(a,r,n,te),l=1===(null==a?void 0:a.length)&&a[0].id===(null==(e=n.user)?void 0:e.id),o=(null!=a&&a.length&&!l?a.filter(e=>{var t;return e.id!==(null==(t=n.user)?void 0:t.id)}):[]).length;return t.createElement(z,Te({title:i},Qa),t.createElement(f,Te({},Xa),t.createElement(g,{size:5,color:"foregroundSecondary",shrink:0,userSelect:"none"},o),t.createElement(v,{name:"general.checkDouble",size:"lg"})))},nr=[{Component:()=>t.createElement(t.Fragment,null,"❤️"),name:"Love",type:"heart"},{Component:()=>t.createElement(t.Fragment,null,"🙏"),name:"Pray",type:"pray"},{Component:()=>t.createElement(t.Fragment,null,"😂"),name:"Laughing",type:"laughing"},{Component:()=>t.createElement(t.Fragment,null,"👍"),name:"Thumbs up",type:"+1"},{Component:()=>t.createElement(t.Fragment,null,"👎"),name:"Thumbs down",type:"-1"}];fe({data:pe});const ar=ge,rr=["children"],ir=()=>{var e,n;const{handleSubmit:r,isUploadEnabled:i,maxFilesLeft:l,numberOfUploads:o,text:s,uploadNewFiles:c}=ne(),{channel:d}=$(),[u,m]=a(!1),h=(null==d?void 0:d.data)||{},g=h.frozen,v=(null==(e=h.own_capabilities)?void 0:e.includes("send-message"))||!1,y=(null==(n=h.own_capabilities)?void 0:n.includes("send-reaction"))||!1,{multipleUploads:E}=ae(),{getRootProps:w,isDragActive:b,isDragReject:_}=ye({disabled:!i||0===l,multiple:E,noClick:!0,onDrop:c}),{isChildOfModal:x,ref:S}=ur(),M=mr(),A=!o&&!s.length,T=g&&v?{}:{borderColor:"separatorTertiary",borderTopWidth:x?0:1};return g&&!v?t.createElement(dr,Te({},T),t.createElement(cr,{canReact:y})):t.createElement(t.Fragment,null,g&&v&&t.createElement(sr,{isChildOfModal:x}),t.createElement(dr,Te({},T),t.createElement(C,{alignment:"end",columns:"auto 1fr auto",innerRef:S,spacing:1},t.createElement(lr,{isUploadEnabled:i,maxFilesLeft:l,multipleUploads:E,uploadNewFiles:c}),t.createElement(f,Te({},w({borderColor:"separatorTertiary",borderWidth:1,className:x?"is-modal-child":"",outline:u?It.interaction66:"none",outlineOffset:1,outlineStyle:u?"solid":"none",position:"relative",radius:8,refKey:"innerRef"})),b&&t.createElement(or,{isDragReject:_}),i&&!!o&&t.createElement(re,null),t.createElement(f,{alignment:"end",axis:"horizontal",position:"relative",spacing:.5},t.createElement(k,{grow:1,innerRef:M},t.createElement(ie,{placeholder:"Send a message",onFocus:()=>m(!0),onBlur:e=>"blur"===e.type&&m(!1)})),t.createElement(k,{marginBottom:1.25,marginRight:1},t.createElement(we,{pickerProps:{previewPosition:"none",theme:"light"}})))),t.createElement(p,Te({className:"focus-visible",disabled:A,icon:{color:"surface",name:"general.upArrow"},marginBottom:"10px",onClick:r,radius:"circle",size:"sm",title:x?"Save":"Send",tabIndex:0},aa({disabled:A}))))))},lr=({isUploadEnabled:e,maxFilesLeft:n,multipleUploads:a,uploadNewFiles:r})=>{const i=t.useMemo(()=>ve(),[]),l=document.getElementById(i);return t.createElement(k,{marginBottom:1.5},t.createElement("label",{htmlFor:i,tabIndex:0,onKeyDown:e=>{!l||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),l.click())},className:"str-chat__file-label"},t.createElement(v,{color:It.lightNeutral45,css:{"&:active":{fill:It.lightNeutral12},"&:hover":{fill:It.lightNeutral24}},cursor:"pointer",name:"general.paperclip",size:"20px"})),t.createElement(Ee,{"aria-label":"File upload",className:"str-chat__file-input",disabled:!e||0===n,id:i,multiple:a,onFileChange:r}))},or=({isDragReject:e})=>t.createElement(f,{alignment:"center",backgroundColor:"surfaceTertiary",borderColor:e?"error-dark":"success-darker",borderRadius:8,borderStyle:"dashed",borderWidth:1,bottom:0,distribution:"center",left:0,position:"absolute",right:0,top:0,zIndex:10},t.createElement(g,{color:e?"error-dark":"success-darker",size:4,weight:600},e?"Some of the files will not be accepted":"Drop your files here")),sr=({isChildOfModal:e})=>t.createElement(k,{backgroundColor:"backgroundTertiary",padding:.5,borderColor:"separatorTertiary",borderTopWidth:e?0:1},t.createElement(g,{size:5,textAlign:"center",color:"foreground"},"Replies are frozen for everyone else.")),cr=({canReact:e})=>t.createElement(g,{size:4,textAlign:"center",color:"foreground",paddingHorizontal:2},e?"Replies have been disabled by a leader, but you can still add reactions.":"Replies and reactions have been disabled by a leader."),dr=e=>{let{children:n}=e,a=De(e,rr);return t.createElement(f,Te({padding:2,spacing:1},a),n)},ur=()=>{const[e,t]=a(!1),r=l(null);return n(()=>{const e=document.querySelector(".str-chat__modal");t(null==e?void 0:e.contains(r.current))},[]),{isChildOfModal:e,ref:r}},mr=()=>{const e=t.useRef(null);return n(()=>{if(e.current){var t,n,a;const r=null==(t=e.current)?void 0:t.querySelector("textarea");null==r||r.focus(),null==r||r.setSelectionRange(null==r||null==(n=r.value)?void 0:n.length,null==r||null==(a=r.value)?void 0:a.length)}},[]),e},hr=()=>{var e,r;const{client:i,channel:l}=$(),{closeDrawer:o,navigation:s}=la(),c=(null==l||null==(e=l.data)?void 0:e.name)||"Channel name",[,d]=a(0),[u,m]=a(!1),[h,p]=a(!1);n(()=>{if(!l)return na;const e=e=>{l&&l.cid===e.cid&&d(e=>e+1)};return i.on("channel.updated",e),()=>i.off("channel.updated",e)},[null==l?void 0:l.cid]);const g=!(null==l||null==(r=l.data)||!r.last_message_at),v={channel:l,closeDrawer:o,navigation:s,title:c};return t.createElement(f,{grow:1,shrink:1},t.createElement(le,{Input:ir,EditMessageInput:ir,emojiSearchIndex:ar,EmptyStateIndicator:Ga,reactionOptions:nr,doMarkReadRequest:e=>s.isChannelViewActive&&he(e.markRead(),"mark read"),MessageStatus:Ka},t.createElement(oe,null,g?t.createElement(pr,Te({},v,{overflowBottom:h,overflowTop:u,setOverflowBottom:p,setOverflowTop:m})):t.createElement(fr,Te({},v)),t.createElement(k,{position:"relative"},h&&t.createElement(k,Te({},zn.bottom,{bottom:"unset",height:1,left:-1,pointerEvents:"none",position:"absolute",right:-1,role:"presentation",top:-1,zIndex:10})),t.createElement(se,{disableMentions:!0,grow:!0})))))},pr=({channel:e,closeDrawer:n,overflowTop:a,setOverflowBottom:r,setOverflowTop:i,navigation:l,title:o})=>t.createElement(ce,{head:t.createElement(s,{key:"custom-head"},t.createElement(qa,{channel:e,closeDrawer:n,setOverflowBottom:r,setOverflowTop:i,switchToChannelDetailsView:l.switchToChannelDetailsView,switchToChannelListView:l.switchToChannelListView,title:o}),a&&t.createElement(k,Te({},zn.top,{height:1,left:-1,pointerEvents:"none",position:"absolute",right:-1,role:"presentation",top:"unset",zIndex:10}))),messageActions:["edit","delete","react"]}),fr=({channel:e,closeDrawer:n,navigation:a,title:r})=>t.createElement(t.Fragment,null,t.createElement(Ja,{channel:e,closeDrawer:n,switchToChannelDetailsView:a.switchToChannelDetailsView,switchToChannelListView:a.switchToChannelListView,title:r}),t.createElement(ce,{messageActions:["edit","delete","react"]}));function gr(){const e=document.head.querySelectorAll('meta[property^="pco:"]'),t={};return e.forEach(e=>{const n=e.getAttribute("property");var a;t[n.substring("pco:".length)]="boolean"===(a=e).getAttribute("datatype")?"true"===a.content||"1"===a.content:a.content}),t}const vr=We(gr()),yr=new MutationObserver(()=>{const e=vr.getState(),t=gr();Ze(e,t)||vr.setState(t)});let Er=!1;function wr(){return Er||(Er=!0,yr.observe(document.head,{attributes:!0,childList:!0,subtree:!0})),u(vr.subscribe,()=>vr.getState())}const br=({isActive:e})=>{const{isLoading:r,isError:l,groups:o}=function(e){const t=wr(),r=`${d(t["rails-env"])("api")}/groups/v2/me/groups`,l=new URLSearchParams({"fields[Group]":"name,header_image,memberships_count,can_create_conversation",per_page:"100"}),[o,s]=a(`${r}?${l}`),[c,u]=a([]),[m,h]=a(!1),[p,f]=a(!1),g=Boolean(o),v=i(()=>{g&&(h(!0),ze(Pe,o).then(({json:e})=>{const t=e.data.map(e=>({id:e.id,name:e.attributes.name,headerImage:e.attributes.header_image,membershipsCount:e.attributes.memberships_count,canCreateConversation:e.attributes.can_create_conversation}));u(e=>[...e,...t]),s(e.links.next||null)}).catch(()=>f(!0)).finally(()=>h(!1)))},[o]);return n(()=>{e&&v()},[e]),{groups:c,hasMore:g,isError:p,isLoading:m,loadMore:v}}(e),{navigation:s,setFilterValues:c}=la(),[u,m]=a(!1),h=o.filter(e=>e.canCreateConversation),v=h.slice(0,u?void 0:5),y=o.length!==h.length&&(u||h.length<=5);return t.createElement(f,null,t.createElement(f,{axis:"horizontal",padding:2,paddingBottom:1,alignment:"center",spacing:1},t.createElement(ga,null,"My groups"),r&&t.createElement(M,{size:"xs"})),0!==o.length||l?t.createElement(f,{spacing:1.5},t.createElement(f,null,v.map(({id:e,name:n,headerImage:{thumbnail:a},membershipsCount:r})=>t.createElement(p,{alignment:"start","aria-label":`Select ${n}`,axis:"vertical",borderBottomColor:"separatorTertiary",borderBottomStyle:"solid",borderBottomWidth:1,hover:{backgroundColor:"surfaceSecondary"},key:e,paddingHorizontal:2,paddingVertical:1,spacing:.25,textAlign:"left",theme:!1,onClick:()=>{c({appName:"Groups",values:{group:{id:e,name:n}}}),s.switchToNewGroupsChatView()}},t.createElement(f,{axis:"horizontal",spacing:1},t.createElement("img",{alt:"",src:a,style:{borderRadius:"4px",height:40,width:75,objectFit:"cover"}}),t.createElement(f,{distribution:"start",maxWidth:"250px"},t.createElement(g,{lineHeight:"1.3",weight:500,truncate:!0},n),t.createElement(g,{lineHeight:"1.3",weight:300},r," ",1===r?"member":"members")))))),y&&t.createElement(Cr,null),h.length>5&&t.createElement(xr,{showAll:u,onClick:()=>m(!u)}),l&&t.createElement(kr,null)):t.createElement(_r,null))},kr=()=>t.createElement(k,{backgroundColor:"error-lighter",marginHorizontal:2,padding:2,radius:3},t.createElement(f,{axis:"horizontal",spacing:1},t.createElement(v,{name:"general.exclamationTriangle",color:"error",marginTop:.5}),t.createElement(g,{size:4},"There was an issue loading your groups, please refresh and try again."))),_r=()=>t.createElement(f,{axis:"vertical",alignment:"center",distribution:"center",height:20,padding:2},t.createElement(g,{align:"center",color:"foregroundSecondary"},"Join a group with chat enabled and permissions to start a new conversation.")),Cr=()=>t.createElement(f,{alignment:"center",distribution:"center",paddingHorizontal:2},t.createElement(g,{lineHeight:"1.3",size:5},"*You have additional groups without chat enabled or permissions to start a new conversation.")),xr=({onClick:e,showAll:n})=>t.createElement(p,{variant:"outline",size:"sm",onClick:e,marginLeft:"auto",marginRight:"auto",marginBottom:2},t.createElement(v,{name:n?"general.upCaret":"general.downCaret",size:"lg",paddingRight:1}),t.createElement(g,null,"View ",n?"fewer":"more"," groups"));function Sr({groupId:e}){const{isLoading:r,isError:i,people:l,hasMore:o,totalCount:s}=function(e){const t=wr(),r=`${d(t["rails-env"])("api")}/groups/v2/me/groups/${e}/memberships`,i=new URLSearchParams({"fields[Membership]":"person,role","fields[Person]":"avatar_url,child,first_name,last_name",include:"person",per_page:"50"}),[l,o]=a(!1),[s,c]=a(!1),[u,m]=a([]),[h,p]=a(null),f=null===h?null:h>u.length;return n(()=>{o(!0),ze(Pe,`${r}?${i}`).then(({json:e})=>{const n=e.data.map(n=>{const a=e.included.find(e=>"Person"===e.type&&e.id===n.relationships.person.data.id),r=[];return"leader"===n.attributes.role&&r.push({title:"Leader"}),a.id===t["current-person-id"]&&r.push({title:"Conversation owner"}),{avatar:a.attributes.avatar_url,badges:r,child:a.attributes.child,id:a.id,name:`${a.attributes.first_name} ${a.attributes.last_name}`,source:[]}});m(e=>[...e,...n]),p(e.meta.total_count)}).catch(()=>c(!0)).finally(()=>o(!1))},[]),{hasMore:f,isError:s,isLoading:l,people:u,totalCount:h}}(e),c=l.length>0,u=l.filter(e=>e.child),m=u.length>0;let h;switch(s){case null:case 0:h="Members";break;case 1:h="1 member";break;default:h=`${s} members`}return t.createElement(t.Fragment,null,t.createElement(f,{alignment:"center",axis:"horizontal",spacing:1},t.createElement(ga,null,h),r&&t.createElement(M,{size:"sm"})),i&&t.createElement(Mr,null),c&&t.createElement(t.Fragment,null,m&&t.createElement(ba,{childPeople:u}),t.createElement(Hn,null,t.createElement(f,{paddingBottom:2,spacing:1.5},l.map(e=>t.createElement(ka,{key:e.id,person:e})),o&&t.createElement(g,{color:"foregroundSecondary"},"and ",s-l.length," more...")))))}const Mr=()=>t.createElement(k,{backgroundColor:"error-lighter",marginBottom:2,padding:2,radius:3},t.createElement(f,{axis:"horizontal",spacing:1},t.createElement(v,{name:"general.exclamationTriangle",color:"error",marginTop:.5}),t.createElement(g,{size:4},"There was an issue loading group members, please refresh and try again."))),Ar=({isActive:e,setFilterValues:i,switchToNewServicesChatView:l})=>{const[o,s]=a(!1),{loading:c,serviceTypeTeams:d}=(e=>{const[t,i]=a([]),[l,o]=a(!1),s=oa();return n(()=>{e&&(o(!0),s.services.get("chat",{fields:{Chat:"teams_i_lead"}}).then(({teams_i_lead:e})=>{const t=e.map(({value:e,service_type_name:t,team_name:n})=>({service_type:{id:e.service_type_id,name:t},team:{id:e.team_id,name:n}}));i(t)}).finally(()=>o(!1)))},[e]),{loading:l,serviceTypeTeams:r(()=>t.reduce((e,{service_type:t,team:n})=>{let a=e.find(e=>e.id===t.id);return a||(a={id:t.id,name:t.name,teams:[]},e.push(a)),a.teams.push(n),e},[]),[t])}})(e);n(()=>{e||s(!1)},[]);const u=d.length>4;return t.createElement(f,null,t.createElement(f,{alignment:"center",axis:"horizontal",distribution:"space-between",paddingBottom:1,paddingHorizontal:2,spacing:1},t.createElement(f,{alignment:"center",axis:"horizontal",spacing:1},t.createElement(ga,null,"Teams I lead"),c&&t.createElement(M,{size:"xs"})),t.createElement(p,{icon:"general.search",marginLeft:"auto",onClick:l,size:"sm",title:"Search all teams",tooltip:"Search all teams",variant:"outline"})),0===d.length?t.createElement(Tr,{onClick:l}):t.createElement(f,{spacing:1.5,paddingBottom:1},t.createElement(f,null,d.slice(0,o?void 0:4).map(({id:e,name:n,teams:a})=>t.createElement(p,{alignment:"start","aria-label":`Select ${n} teams I lead`,axis:"vertical",borderBottomColor:"separatorTertiary",borderBottomStyle:"solid",borderBottomWidth:1,hover:{backgroundColor:"surfaceSecondary"},key:e,paddingHorizontal:2,paddingVertical:1,spacing:.25,textAlign:"left",theme:!1,onClick:()=>{i({appName:"Services",values:{plan_id:null,teams:a.map(t=>({service_type_id:e,team_id:t.id}))}}),l()}},t.createElement(g,{weight:500},n),t.createElement(g,{color:"foregroundSecondary"},a.map(e=>e.name).join(", "))))),u&&t.createElement(f,{alignment:"center"},t.createElement(p,{fontWeight:400,iconLeft:{name:o?"general.upCaret":"general.downCaret"},onClick:()=>s(!o),size:"xs",title:o?"Less teams":"Show all teams I lead",variant:"outline"}))))},Tr=({onClick:e})=>t.createElement(f,{alignment:"center",axis:"vertical",distribution:"center",height:20,padding:2,spacing:1},t.createElement(g,{color:"foregroundSecondary"},"You don't lead any teams."),t.createElement(p,{fontWeight:400,onClick:e,size:"sm",variant:"outline"},"Browse teams")),Nr=()=>{const{navigation:e,setFilterValues:n}=la();return t.createElement(t.Fragment,null,t.createElement(f,{alignment:"center",axis:"horizontal",spacing:1,padding:2,paddingTop:1},t.createElement(p,{icon:{color:It.lightNeutral12,name:"general.leftChevron"},marginTop:.25,onClick:e.switchToChannelListView,size:"md",title:"Back to to conversation list",tooltip:"Back to conversations list",variant:"naked"}),t.createElement(On,null,"New conversation")),t.createElement(Hn,null,t.createElement(Ar,{isActive:e.isNewChatShortcutsViewActive,setFilterValues:n,switchToNewServicesChatView:e.switchToNewServicesChatView}),t.createElement(br,{isActive:e.isNewChatShortcutsViewActive})))},Dr=({text:e,buttonDisabled:n,showSpinner:a,onButtonClick:r})=>t.createElement(t.Fragment,null,t.createElement(h,null),t.createElement(f,{grow:0,marginHorizontal:"auto",padding:2,spacing:2},t.createElement(g,{align:"center",size:5,color:"foregroundSecondary"},e),t.createElement(p,Te({"aria-label":"Start conversation",disabled:n,onClick:r},aa({disabled:n,spinner:a})),"Start conversation"))),Or=()=>{const{navigation:e}=la();return t.createElement(f,{alignment:"center",axis:"horizontal",spacing:1,padding:2,paddingTop:1},t.createElement(p,{icon:{color:It.lightNeutral12,name:"general.leftChevron"},marginTop:.25,onClick:e.switchToNewChatShortcutsView,size:"md",title:"Back to to new conversation shortcuts",tooltip:"Back to to new conversation shortcuts",variant:"naked"}),t.createElement(On,null,"New conversation"))},Pr=()=>{var e;const[n,r]=a(""),[i,l]=a(!1),[o,s]=a(!1),c=oa(),{filterValues:d,navigation:u}=la(),m=null==d||null==(e=d.Groups)?void 0:e.group;return m?t.createElement(t.Fragment,null,t.createElement(Or,null),t.createElement(f,{grow:1},t.createElement(f,{spacing:2,padding:2,paddingTop:0},t.createElement(f,{axis:"horizontal",alignment:"center",spacing:1},t.createElement(g,{weight:600},"To:"),t.createElement(xt,{appName:"Groups"}),t.createElement(g,{wrap:!1,truncate:!0},m.name)),t.createElement(f,{spacing:1},t.createElement(D.InputLabel,{controls:"title"},"Title"),t.createElement(D,{id:"title",placeholder:"Topic of conversation... (required)",required:!0,onChange:e=>r(e.target.value)}))),t.createElement(h,null),t.createElement(f,{grow:1,padding:2,paddingBottom:0,spacing:1},t.createElement(Sr,{groupId:m.id}))),o&&t.createElement(Vr,null),t.createElement(Dr,{text:"Conversation will be automatically updated if any people are added or removed from the group.",showSpinner:i,buttonDisabled:0===n.trim().length,onButtonClick:()=>(l(!0),c.groups.post(`me/groups/${m.id}/chat_conversation_payload`,{title:n}).then(({value:e})=>c.chat.post("me/conversations",{payload:e})).catch(()=>s(!0)).finally(()=>l(!1))).then(({stream_channel_id:e})=>u.switchToChannelView(e)).then(()=>r(""))})):null},Vr=()=>t.createElement(k,{backgroundColor:"error-lighter",marginHorizontal:2,marginBottom:2,padding:2,radius:3},t.createElement(f,{axis:"horizontal",spacing:1},t.createElement(v,{name:"general.exclamationTriangle",color:"error",marginTop:.5}),t.createElement(g,{size:4},"There was an issue starting the conversation, please try again."))),zr="Conversation will be automatically updated if any people are added or removed from a team.",Hr=({filter:e})=>{const{people:o,findOrCreateConversation:s,isThinking:c,isFetching:d}=(e=>{const[t,o]=a([]),[s,c]=a(!1),[d,u]=a(!1),m=l({}),{navigation:h}=la(),p=oa(),f=r(()=>{const t={team_id:e.teams.map(({team_id:e})=>e).sort()};return e.plan_id&&(t.plan_id=e.plan_id),t},[e]);n(()=>{(async e=>{const t=JSON.stringify(e),n=m.current[t]||await(async e=>{u(!0);const t=await p.services.get("chat",Te({fields:{Chat:"people"}},e));return u(!1),t})(e).then(e=>e.people);m.current[t]=n,o(n)})(f)},[f]);const g=i(async()=>{const{group_identifiers:e}=await p.services.get("chat",Te({fields:{Chat:"group_identifiers"}},f));return p.chat.get("me/conversations",{fields:{Conversation:"stream_channel"},filter:"with_exact_groups",gids:e})},[f]),v=i(async()=>{const{payload:e}=await p.services.get("chat",Te({fields:{Chat:"payload"}},f));return p.chat.post("me/conversations",{payload:e})},[f]);return{findOrCreateConversation:async()=>{c(!0);let e=await g();0===e.length&&(e=[await v()]),h.switchToChannelView(e.map(e=>e.stream_channel_id).join(","))},isFetching:d,isThinking:s,people:t}})(e),u=o.length>0,m=o.length,h=o.filter(e=>e.child),p=h.length>0;let v;switch(m){case 0:v="People selected";break;case 1:v="1 person selected";break;default:v=`${m} people selected`}return t.createElement(f,{grow:1},t.createElement(f,{grow:1,padding:2,paddingBottom:0,spacing:1},t.createElement(f,{alignment:"center",axis:"horizontal",spacing:1},t.createElement(ga,null,v),d&&t.createElement(M,{size:"sm"})),u?t.createElement(t.Fragment,null,p&&t.createElement(ba,{childPeople:h}),t.createElement(Hn,null,t.createElement(f,{paddingBottom:2,spacing:1.5},o.map(e=>t.createElement(ka,{key:e.id,person:e}))))):t.createElement(f,{alignment:"center",grow:1,maxHeight:18},t.createElement(g,{color:"foregroundSecondary"},"No Results"))),t.createElement(Dr,{text:zr,showSpinner:c,buttonDisabled:!u,onButtonClick:s}))},Lr=({value:e,name:t})=>({label:t,value:e}),Rr=({onChange:e,isActive:i,values:l})=>{const[o,s]=a({}),[c,d]=a(!1),[u,m]=a(0),h=oa(),p=i&&c,y=!i&&l.teams.length>0;n(()=>{i||d(!1)},[i]),n(()=>{l.plan_id&&d(!0)},[l.plan_id]),n(()=>{p&&l.teams.forEach(({team_id:e})=>{o[e]||(m(e=>e+1),h.services.get("chat",{fields:{Chat:"plans"},team_id:e,plan_id:l.plan_id}).then(({plans:t})=>{s(n=>Te({},n,{[e]:t})),m(e=>e-1)}))})},[l.teams,p]);const E=r(()=>{const e=l.teams.reduce((e,{team_id:t})=>o[t]?Te({},e,o[t].reduce((e,t)=>Te({},e,{[t.value]:t}),{})):e,{});return Object.values(e).map(Lr)},[l.teams,o]);return t.createElement(f,{spacing:1},t.createElement(f,{axis:"horizontal",alignItems:"center",spacing:1},t.createElement(f,{alignItems:"center",axis:"horizontal",marginRight:"auto",spacing:1},t.createElement(ga,null,"Filter by plan"),u>0&&t.createElement(M,{size:"xs"})),t.createElement(N,{ariaLabel:"Filter by plan",disabled:!i,isChecked:c,onClick:()=>{d(e=>!e),e({appName:"Services",values:e=>Te({},e,{plan_id:null})})}})),c?t.createElement(O,{id:"filter-by-plan-select",value:l.plan_id,defaultValue:null,emptyValue:E.length?"Choose a plan":"No plans available",disabled:E.length<1,options:E,onChange:({value:t})=>e({appName:"Services",values:e=>Te({},e,{plan_id:t})})}):y?t.createElement(f,{axis:"horizontal",alignItems:"center",spacing:2,padding:2},t.createElement(v,{color:"foregroundSecondary",name:"general.exclamationTriangle",size:"lg"}),t.createElement(g,{size:5,color:"foregroundSecondary"},"Plan filtering is not possible using teams from multiple service types. Try choosing teams above with only one service type.")):null)};function Yr(){return Yr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Yr.apply(this,arguments)}var Zr={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ù:"u",ú:"u",û:"u",ü:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z"},Ir=Object.keys(Zr).join("|"),Ur=new RegExp(Ir,"g"),Wr=new RegExp(Ir,""),Fr=function(e){return e.replace(Ur,function(e){return Zr[e]})},jr=Fr,$r=Fr;jr.has=function(e){return!!e.match(Wr)},jr.remove=$r;var Br={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};qr.rankings=Br;var Gr=function(e,t){return String(e.rankedValue).localeCompare(String(t.rankedValue))};function qr(e,t,n){void 0===n&&(n={});var a=n.keys,r=n.threshold,i=void 0===r?Br.MATCHES:r,l=n.baseSort,o=void 0===l?Gr:l,s=n.sorter,c=void 0===s?function(e){return e.sort(function(e,t){return function(e,t,n){var a=e.rank,r=e.keyIndex,i=t.rank,l=t.keyIndex;return a===i?r===l?n(e,t):r<l?-1:1:a>i?-1:1}(e,t,o)})}:s,d=e.reduce(function(e,r,l){var o=function(e,t,n,a){if(!t)return{rankedValue:e,rank:Jr(e,n,a),keyIndex:-1,keyThreshold:a.threshold};var r=function(e,t){for(var n=[],a=0,r=t.length;a<r;a++)for(var i=t[a],l=ei(i),o=Xr(e,i),s=0,c=o.length;s<c;s++)n.push({itemValue:o[s],attributes:l});return n}(e,t);return r.reduce(function(e,t,r){var i=e.rank,l=e.rankedValue,o=e.keyIndex,s=e.keyThreshold,c=t.itemValue,d=t.attributes,u=Jr(c,n,a),m=l,h=d.minRanking,p=d.maxRanking;return u<h&&u>=Br.MATCHES?u=h:u>p&&(u=p),u>i&&(i=u,o=r,s=d.threshold,m=c),{rankedValue:m,rank:i,keyIndex:o,keyThreshold:s}},{rankedValue:e,rank:Br.NO_MATCH,keyIndex:-1,keyThreshold:a.threshold})}(r,a,t,n),s=o.keyThreshold;return o.rank>=(void 0===s?i:s)&&e.push(Yr({},o,{item:r,index:l})),e},[]);return c(d).map(function(e){return e.item})}function Jr(e,t,n){return e=Qr(e,n),(t=Qr(t,n)).length>e.length?Br.NO_MATCH:e===t?Br.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase())===(t=t.toLowerCase())?Br.EQUAL:e.startsWith(t)?Br.STARTS_WITH:e.includes(" "+t)?Br.WORD_STARTS_WITH:e.includes(t)?Br.CONTAINS:1===t.length?Br.NO_MATCH:(a=e,r="",a.split(" ").forEach(function(e){e.split("-").forEach(function(e){r+=e.substr(0,1)})}),r).includes(t)?Br.ACRONYM:function(e,t){var n=0,a=0;function r(e,t,a){for(var r=a,i=t.length;r<i;r++)if(t[r]===e)return n+=1,r+1;return-1}var i=r(t[0],e,0);if(i<0)return Br.NO_MATCH;a=i;for(var l=1,o=t.length;l<o;l++)if(!((a=r(t[l],e,a))>-1))return Br.NO_MATCH;return Br.MATCHES+n/t.length*(1/(a-i))}(e,t);var a,r}function Qr(e,t){return e=""+e,t.keepDiacritics||(e=jr(e)),e}function Xr(e,t){var n;if("object"==typeof t&&(t=t.key),"function"==typeof t)n=t(e);else if(null==e)n=null;else if(Object.hasOwnProperty.call(e,t))n=e[t];else{if(t.includes("."))return function(e,t){for(var n=e.split("."),a=[t],r=0,i=n.length;r<i;r++){for(var l=n[r],o=[],s=0,c=a.length;s<c;s++){var d=a[s];if(null!=d)if(Object.hasOwnProperty.call(d,l)){var u=d[l];null!=u&&o.push(u)}else"*"===l&&(o=o.concat(d))}a=o}if(Array.isArray(a[0])){var m=[];return m.concat.apply(m,a)}return a}(t,e);n=null}return null==n?[]:Array.isArray(n)?n:[String(n)]}var Kr={maxRanking:Infinity,minRanking:-Infinity};function ei(e){return"string"==typeof e?Kr:Yr({},Kr,e)}const ti=(e,t)=>{const[n,a,r]=e.order,[i,l,o]=t.order;return n-i||a.localeCompare(l)||r.localeCompare(o)},ni=({values:e,onChange:r,isActive:i})=>{const[o,s]=a(""),[c,d,u]=((e,t)=>{const[r,i]=a([]),[l,o]=a(!1),s=oa();n(()=>{t&&(o(!0),s.services.get("chat",{fields:{Chat:"teams"}}).then(({teams:e})=>i(e)).finally(()=>o(!1)))},[t]);const[c,d]=r.reduce((t,n)=>(t[e.teams.some(({team_id:e})=>e===n.value.team_id)?0:1].push(n),t),[[],[]]);return[c,d,l]})(e,i),m=l();let h=0;const y={teams_i_lead:!0},E=((e,t)=>qr(e,t,{keys:["name"],threshold:qr.rankings.CONTAINS}).sort(ti).reduce((e,t)=>{var n;return e[n=t.group]||(e[n]=[]),e[t.group].push(t),e},{}))(d,o);n(()=>{i||s("")},[i]);const w=Object.entries(E);return t.createElement(f,{spacing:1},t.createElement(f,{axis:"horizontal",alignItems:"center",spacing:1},t.createElement(D.InputLabel,Te({controls:"teams"},fa),"Teams"),u&&t.createElement(M,{size:"xs"})),t.createElement(f,{spacing:1},c.length>0&&t.createElement(A,{spacing:1},c.map(e=>t.createElement(S,{key:e.value.team_id,renderRight:t.createElement(p,{title:"remove",icon:{name:"general.x",size:"xs"},theme:"naked",onClick:()=>r({appName:"Services",values:t=>Te({},t,{teams:t.teams.filter(({team_id:t})=>t!==e.value.team_id)})})}),shrink:1,size:"sm"},t.createElement(g,{truncate:!0},e.name)))),t.createElement(L.Popover,{ref:m,id:"teams",openOnFocus:!0,closeOnSelect:!0,onClear:()=>s(""),onChange:e=>s(e.target.value),onSelect:({value:e})=>r({appName:"Services",values:t=>Te({},t,{teams:[...t.teams,e]})}),placeholder:"Search teams",renderLeft:t.createElement(v,{name:"general.search"}),value:o},w.length?w.map(([e,n],a)=>{const i=(e=>e.split("_").map((e,t)=>"i"===e.toLowerCase()?"I":0===t?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():e.toLowerCase()).join(" "))(e),l=n.map(e=>t.createElement(L.Item,{key:h,index:h++,value:e},t.createElement(g,{truncate:!0},e.name))),o=n.length>10;return Object.keys(E).length>1?t.createElement(f,{key:e,marginTop:a>0?1.5:0},t.createElement(f,{axis:"horizontal"},t.createElement(P.Item,null,t.createElement(g,{weight:600},i)),y[e]&&t.createElement(f,{padding:1,marginLeft:"auto"},t.createElement(p,{disabled:o,fontWeight:400,onClick:e=>{r({appName:"Services",values:e=>Te({},e,{teams:[...e.teams,...n.map(e=>e.value)]})}),m.current&&m.current.handleBlur(e)},size:"xs",theme:"primary",title:"Select all",tooltip:{popoverProps:{zIndex:1e4},title:o?"Disabled when options would exceed 10":`select all in "${i}"`},variant:"naked"}))),l):l}):t.createElement(P.Item,null,t.createElement(g,null,"No matching teams for:"," ",t.createElement(g,{as:"span",inline:!0,italic:!0},`"${o}"`))))))},ai=()=>t.createElement(f,{grow:1},t.createElement(f,{alignItems:"center",axis:"horizontal",padding:2,spacing:1},t.createElement(ga,null,"People selected")),t.createElement(f,{alignment:"center",grow:1,maxHeight:18,padding:2},t.createElement(g,{color:"foreground",align:"center",size:4},"Search teams above to add people to the chat."))),ri=({isActive:e})=>{const{filterValues:a,setFilterValues:i,isFiltering:l,isPlansActive:o}=(e=>{const{filterValues:t,setFilterValues:a}=la(),{Services:i}=t;n(()=>{a({appName:"Services",values:e?e=>e:da})},[e]);const l=r(()=>{const[e,...t]=i.teams;return Boolean(e)&&t.every(({service_type_id:t})=>t===e.service_type_id)},[i.teams]);return n(()=>{l||a({appName:"Services",values:e=>Te({},e,{plan_id:null})})},[l]),{filterValues:i,isFiltering:i.teams.length>0,isPlansActive:l,setFilterValues:a}})(e);return t.createElement(f,{grow:1},t.createElement(f,{spacing:2,padding:2,paddingTop:0},t.createElement(ni,{values:a,onChange:i,isActive:e}),t.createElement(Rr,{values:a,onChange:i,isActive:o})),t.createElement(h,null),l?t.createElement(Hr,{filter:a}):t.createElement(t.Fragment,null,t.createElement(ai,null),t.createElement(Dr,{text:zr,buttonDisabled:!0,showSpinner:!1,onButtonClick:na})))},ii=()=>{const{navigation:e}=la();return t.createElement(t.Fragment,null,t.createElement(Or,null),t.createElement(ri,{isActive:e.isNewServicesChatViewActive}))},li=({client:e,closeDrawer:r,children:l,currentPath:o,currentPersonId:s,env:c,onChangePath:u})=>{const{filterValues:m,setFilterValues:h}=(()=>{const[e,n]=t.useState(ua);return{filterValues:e,setFilterValues:i(({appName:e,values:t})=>{n(n=>Te({},n,{[e]:"function"==typeof t?t(n[e]):t}))},[])}})(),[p,f]=t.useState(!1),g=(({currentPath:e,onChangePath:n,setFilterValues:a})=>{const{client:r,channel:i,setActiveChannel:l}=$(),[o,s]=t.useState(()=>{const t=e&&ha(e);return t?t.index:0}),c=()=>n(""),d=()=>n("new/services"),u=0===o,m=1===o,h=2===o,p=3===o,f=4===o,g=5===o,v=8===o,y=t.useCallback(async e=>{const[t]=await r.queryChannels({id:{$in:e},members:{$in:[r.userID]},type:"messaging"},{last_message_at:-1},{limit:1});return t},[r]),E=t.useCallback(async e=>{const t=e.params.id.split(","),a=await y(t);if(!a)return c();l(a),t.length>1?n(e.path({id:a.id})):s(e.index)},[r]);return t.useEffect(()=>{const t=ha(e);switch(null==t?void 0:t.name){case"BlankState":case"Shortcuts":case"NewServices":case"NewGroups":s(t.index);break;case"List":s(t.index),i&&l(null);break;case"NewServicesPlan":case"NewServicesTeam":{const{plan_id:e=null,teams:n}=t.params;a({appName:"Services",values:{plan_id:e&&parseInt(e),teams:n.split(",").map(e=>e.split(":")).map(([e,t])=>({team_id:parseInt(t),service_type_id:parseInt(e)}))}}),d();break}case"Conversation":case"Details":i&&i.id===t.params.id?s(t.index):E(t);break;default:c()}},[e,n]),{activeIndex:o,isBlankStateActive:v,isChannelDetailsViewActive:g,isChannelListViewActive:u,isChannelViewActive:f,isNewChatShortcutsViewActive:m,isNewServicesChatViewActive:h,isNewGroupsChatViewActive:p,switchToChannelDetailsView:()=>n(`conversations/${i.id}/details`),switchToChannelListView:c,switchToChannelView:e=>n(`conversations/${e}`),switchToNewChatShortcutsView:()=>n("new/shortcuts"),switchToNewServicesChatView:d,switchToNewGroupsChatView:()=>n("new/groups")}})({currentPath:o,onChangePath:u,setFilterValues:h}),{markAllRead:v,markAllReadProcessing:y,refreshTotalUnreadCount:E,totalUnreadCount:w}=(({client:e,currentPersonId:t,isChannelListViewActive:r,env:l})=>{const[o,s]=a(!1),[c,u]=a(()=>e.user.unread_count),m=oa(),h=async()=>{m.chat.get("me/stream_user",{context:"default",fields:{StreamUser:"unread_count"}}).then(({unread_count:e})=>u(e))},p=i(async e=>{const t=`${d(l)("api")}/notifications/v2/me/bulk_update`,n={data:{attributes:{partition:"chat"},relationships:{rollup_keys:{data:{source:"/included/person/*"}}},type:"BulkUpdate"},included:[{attributes:{action:"read"},id:`${e}`,type:"person"}]};return await ze(Ve,t,{data:n,method:"POST"})},[t]);return n(()=>{r&&h()},[r]),{markAllRead:async()=>{s(!0),await e.markAllRead(),await p(t),await(async()=>await m.chat.post("me/stream_user_updated",{}))(),await h(),s(!1)},markAllReadProcessing:o,refreshTotalUnreadCount:h,totalUnreadCount:c}})({client:e,currentPersonId:s,env:c,isChannelListViewActive:g.isChannelListViewActive});return t.createElement(Gn,{value:{actionsOpenForChannel:p,closeDrawer:r,filterValues:m,markAllRead:v,markAllReadProcessing:y,navigation:g,refreshTotalUnreadCount:E,setActionsOpenForChannel:f,setFilterValues:h,totalUnreadCount:w}},t.createElement(Rn,{activeIndex:g.activeIndex},l))},oi=({chatClient:e,closeDrawer:n,env:a,appName:r,currentPath:i,currentPersonId:l,onChangePath:o})=>t.createElement(de,{client:e,theme:"str-chat__theme-light"},t.createElement($n,{env:a},t.createElement(li,{client:e,closeDrawer:n,currentPath:i,currentPersonId:l,env:a,onChangePath:o},t.createElement(Ba,{closeDrawer:n,client:e,env:a,appName:r,currentPersonId:l}),t.createElement(Nr,null),t.createElement(ii,null),t.createElement(Pr,null),t.createElement(hr,null),t.createElement(Da,null),t.createElement(Jn,null)))),si={component:({appName:e,closeDrawer:n,currentPath:a,env:r,chatStreamUser:i,onChangePath:l,userId:o})=>{const s=(e=>{const[n,a]=t.useState(null);return t.useEffect(()=>{if(!e)return na;let t=!1;const n=new me(e.api_key),r=n.connectUser({id:e.id},e.tokenProvider).then(()=>{t||a(n)});return()=>{t=!0,a(null),r.then(()=>n.disconnectUser()).then(()=>{console.log("connection closed")})}},[null==e?void 0:e.id,null==e?void 0:e.api_key]),n})(i);return s?t.createElement(oi,{chatClient:s,closeDrawer:n,env:r,appName:e,currentPersonId:o,currentPath:a,onChangePath:l}):t.createElement(Nn,{closeDrawer:n},t.createElement(f,{alignment:"center",axis:"horizontal",spacing:1},t.createElement(On,null,"Chat"),t.createElement(qn,null),t.createElement(M,{color:"hsl(0 0% 62%)",thickness:2,trackColor:"hsl(0 0% 97%)"})))},icons:{active:"general.textMessage",static:"general.outlinedTextMessage"},name:"Chat"},ci=({sectionName:e,currentAppName:n})=>{const a=e.toLowerCase();return"account information"===a||"recent updates"===a?t.createElement(v,{name:"account information"===a?"general.cogPerson":"general.outlinedGenericFile",color:"foregroundSecondary"}):"Accounts"===n?t.createElement(v,{name:"general.cog",color:"foregroundSecondary"}):t.createElement(f,{width:2,height:2},t.createElement(R,{name:n.toLowerCase().replace(/[\s]/,"-"),size:"sm",theme:"color",markOnly:!0}))},di=({hit:e,index:n})=>t.createElement(L.Item,{key:e.objectID,index:n,value:e,paddingVertical:1},t.createElement(g,{color:"neutralDarker",size:4,whiteSpace:"normal"},e.title)),ui=({currentAppName:e,indexName:n})=>{const{query:a,refine:r}=_e(),{hits:i,results:l}=Ce(),o=null==l?void 0:l.hits.reduce((e,t)=>{const n=t.category.title;return e[n]||(e[n]=[]),e[n].push(t),e},{});let s=0;return t.createElement(f,{id:"helpdesk-search",position:"relative"},t.createElement(L.Popover,{renderTo:"#helpdesk-search",popoverProps:{zIndex:2},placeholder:"Search our documentation",value:a,renderRight:t.createElement(v,{name:"general.search"}),onChange:e=>r(e.target.value),onSelect:e=>((e,t)=>{const n=t.split("_")[1],a=window.open(`https://${n}.zendesk.com/hc/${e.locale.locale}/articles/${e.id}`,"_blank");a&&a.focus()})(e,n),placement:"bottom-start"},!i.length&&t.createElement(t.Fragment,null,t.createElement(f,{axis:"horizontal",alignment:"center",paddingHorizontal:2,paddingVertical:1},t.createElement(g,{color:"neutralDarker",size:4,whiteSpace:"normal"},"No results match your search"))),o&&Object.keys(o).map(n=>{const a=o[n];return t.createElement(t.Fragment,{key:n},s>0&&t.createElement(h,{margin:1}),t.createElement(f,{axis:"horizontal",alignment:"center",spacing:.5,paddingHorizontal:2,paddingVertical:1},t.createElement(ci,{currentAppName:e,sectionName:n}),t.createElement(g,{size:5,color:"foregroundSecondary",fontWeight:500},n)),a.map(e=>t.createElement(di,{key:e.objectID,hit:e,index:s++})))})))},mi=({indexName:e,currentAppName:n})=>{const{algoliaSearchAuth:{algoliaApplicationId:a,algoliaSearchOnlyApiKey:r}}=Rt(),i=ke(a,r);return t.createElement(xe,{indexName:e,searchClient:i},t.createElement(Se,{hitsPerPage:5}),t.createElement(ui,{currentAppName:n,indexName:e}))},{LoadingIndicator:hi,StackView:pi}=F,fi={component:function({appName:e,closeDrawer:n,env:a,helpdeskConfig:r}){const i=`${d(a)("helpdesk")}/addons/toolbar.helpdesk.help`;return t.createElement(W,{grow:1,display:"flex",extensionId:"11",url:i,loadingFallback:t.createElement(pi,{flex:1,axis:"vertical"},t.createElement(Nn,{closeDrawer:n},t.createElement(pi,{axis:"horizontal",spacing:1},t.createElement(On,null,"Help and support"),t.createElement(hi,null)))),additionalComponents:{CalendlyWidget:be,DocumentationSearch:mi,DrawerHeader:Nn,DrawerHeading:On,ScrollContainer:Hn,SwitchView:Rn},args:{appName:e,closeDrawer:n,currentPageParams:location.search,helpdeskConfig:r},componentVersion:"5"})},icons:{active:"general.questionCircle",static:"general.outlinedQuestionCircle"},name:"Helpdesk"},gi=["dark","style"],vi=e=>{let{dark:n,style:a}=e,r=De(e,gi);return t.createElement("div",Te({style:Te({color:n?It.lightNeutral62:It.lightNeutral24,fontSize:"12px",fontWeight:400,textTransform:"uppercase"},a)},r))},yi=({isRead:e=!1,onClick:r})=>{const i=t.useRef(null),l=function(e){const[t,r]=a(!1),i=()=>r(!0),l=()=>r(!1);return n(()=>{const t=null==e?void 0:e.current;if(t)return t.addEventListener("mouseenter",i),t.addEventListener("mouseleave",l),()=>{t.removeEventListener("mouseenter",i),t.removeEventListener("mouseleave",l)}},[e]),t}(i);return t.createElement("div",Te({ref:i,style:{alignItems:"center",display:"flex",height:"12px",justifyContent:"center",width:"12px"}},{onClick:r}),t.createElement("svg",{height:"12",viewBox:"0 0 12 12",width:"12"},t.createElement("title",null,"unread dot"),t.createElement("circle",{cx:"6",cy:"6",fill:l?It.interaction66:It.lightNeutral81,r:"6",style:{transition:"all 0.2s"}}),t.createElement("circle",{cx:"6",cy:"6",fill:It.lightNeutral100,r:"5"}),!e&&t.createElement("circle",{cx:"6",cy:"6",r:"4",fill:It.interaction66})))},Ei=({mobile:e=!1,isLast:n,onCreateTask:a,onMarkAsRead:r=(async()=>Promise.resolve({})),onToggleRead:i,showBottomBorder:l,notification:o})=>{const{appName:s,createdAt:c,isRead:d,link:u,title:m}=o,{organizationTimeZone:h,notificationsContextMenu:p}=Rt(),[f,g]=t.useState(!1),v={style:"relative"};return h&&(v.timeZone=h),t.createElement(At,{active:f,"data-turbolinks":!1,href:u,onClick:async e=>{g(!0),await r(o),window.location.href=u},style:Te({alignItems:"flex-start",borderBottom:l||!n?`1px solid ${e?It.lightNeutral24:It.lightNeutral93}`:"none",cursor:"pointer",display:"flex",overflow:"hidden",padding:"12px 16px",textDecoration:"none",verticalAlign:"middle"},lt)},t.createElement("div",{style:{display:"flex",flexDirection:"column",flexGrow:1,justifyContent:"center"}},t.createElement("div",{style:{alignItems:"center",borderLeft:`4px solid hsl(${{Calendar:"9 61% 50%","Check-Ins":"283 22% 48%",Giving:"43 88% 64%",Groups:"17 96% 62%",People:"220 74% 57%",Publishing:"220 12% 31%",Registrations:"175 36% 43%",Services:"88 45% 41%"}[s]||"0 0% 81%"} / ${d?"40%":"100%"}`,display:"flex",marginBottom:"10px",paddingLeft:"8px"}},t.createElement("div",{style:{flexGrow:1,marginRight:"16px"}},t.createElement(vi,{dark:e,style:{marginBottom:"6px",userSelect:"none"}},s),t.createElement("h1",{style:{color:e?It.lightNeutral88:It.darkNeutral12,fontSize:"16px",fontWeight:500,lineHeight:"1.3em",margin:0,userSelect:"none"}},m)),!e&&!p&&t.createElement(yi,Te({onClick:e=>{e.preventDefault(),e.stopPropagation(),i()}},{isRead:d})),!e&&p&&t.createElement(H,{icon:{name:"general.threeDots"},title:"More options",variant:"naked",iconRight:null,placement:"bottom-end",onClick:e=>{e.stopPropagation()}},t.createElement(H.Item,{onClick:e=>{e.preventDefault(),e.stopPropagation(),i()}},"Mark ",d?"unread":"as read"),o.taskUrl?t.createElement(H.Item,{onClick:e=>{e.preventDefault(),e.stopPropagation(),window.location.href=o.taskUrl}},"Open task"):t.createElement(H.Item,{onClick:e=>{e.preventDefault(),e.stopPropagation(),a(o)}},"Create task"))),t.createElement("div",{style:{color:e?It.lightNeutral62:It.lightNeutral24,fontSize:"12px",paddingLeft:"12px",userSelect:"none"}},ue.datetime(c,v))))},wi=({context:e,dark:n=!1,description:a,title:r="No notifications"})=>t.createElement(f,{alignment:"center",distribution:"center",padding:4},t.createElement(ft,Te({id:e},{dark:n})),t.createElement(_,{color:n?"#fafafa":"#3d3d3d",fontWeight:500,marginTop:1,size:3},r),t.createElement(g,{align:"center",color:n?"#fafafa":"#3d3d3d",size:4},a)),bi=(e,t)=>{var n,a,r,i,l,o,s,c;const d=({type:e,id:t},n)=>n.find(n=>n.type===e&&n.id===t),u=null==(n=d(e.relationships.app.data,t.included))||null==(a=n.attributes)?void 0:a.name,m=JSON.parse(null==(r=d({id:null==e||null==(l=e.relationships)||null==(o=l.web_payloads)||null==(s=o.data[0])?void 0:s.id,type:"Payload"},t.included))||null==(i=r.attributes)?void 0:i.content);return{appName:u,createdAt:new Date(e.attributes.created_at),id:e.id,isRead:(null==(c=e.attributes.read_at)?void 0:c.length)>0,link:null==m?void 0:m.link,title:null==m?void 0:m.title}},ki=["disabled","onClick","title"],_i=e=>{let{disabled:n,onClick:a,title:r}=e,i=De(e,ki);return t.createElement(f,Te({color:n?It.lightNeutral62:It.interaction66,cursor:n?"default":"pointer",fontSize:5,fontWeight:600,userSelect:"none",onClick:!n&&a},i),r)},Ci=e=>{let n=Te({},(Ne(e),e));return t.createElement(_,Te({color:It.lightNeutral12,lineHeight:2,size:5,textTransform:"uppercase",userSelect:"none"},n))},xi={component:function({closeDrawer:e}){const[n,a]=t.useState(!1),r={transition:"opacity 300ms ease-in-out"},l={entered:{opacity:1},entering:{opacity:.2}},{env:o,enabled:s,joltChannel:c}=Fe.getState().notifications,{handleCreateTask:u,handleMarkAllAsRead:m,handleMarkAsRead:h,handleToggleRead:p,hasError:g,isLoading:v,read:y,unread:E}=(({enabled:e,env:n,joltChannel:a})=>{const[r,l]=t.useState([]),[o,s]=t.useState(!0),[c,u]=t.useState(!1),{read:m,unread:h}=(e=>{const{read:t,unread:n}=[...e].sort((e,t)=>e.createdAt<t.createdAt?1:-1).reduce((e,t)=>Te({},e,t.isRead?{read:[...e.read,t]}:{unread:[...e.unread,t]}),{read:[],unread:[]});return{read:t,unread:n}})(r),p=()=>{try{u(!1),ze(Pe,`${window.location.origin}/~api/notifications/v2/me/notifications?include=app,web_payloads&per_page=100&order=read_at,-created_at`).then(({json:e})=>{const t=e.data.map(t=>bi(t,e));s(!1),l(t)})}catch(e){u(!0),console.error("topbar encountered error when fetching all notifications",e)}};t.useEffect(()=>{e&&p()},[e]);const f=e=>"string"==typeof e.data?JSON.parse(e.data):e.data,g=t.useCallback(e=>{try{(async e=>{try{return u(!1),ze(Pe,`${window.location.origin}/~api/notifications/v2/me/notifications/${e}?include=app,web_payloads`).then(({json:e})=>e)}catch(e){u(!0),console.error("topbar encountered error when fetching a single notification",e)}})(f(e).data.id).then(e=>{const t=bi(e.data,e);l(e=>[...e.filter(e=>e.id!==t.id),t])})}catch(e){console.error("topbar encountered error when updating state from jolt message",e)}},[bi,f,p,m,l,h]),v=t.useCallback(e=>{const t=f(e),n=r.filter(e=>e.id!==t.data.id);l(n)},[f,r,l]);Le(e?a:void 0,"notifications.v2.events.notification.created",g),Le(e?a:void 0,"notifications.v2.events.notification.updated",g),Le(e?a:void 0,"notifications.v2.events.notification.destroyed",v);const y=async(e,t)=>{const a=e.reduce((e,n)=>[...e,{attributes:{action:t},id:n,type:"graph_notification"}],[]);return ze(Ve,`${d(n)("api")}/notifications/v2/me/bulk_update`,{data:{data:{attributes:{},relationships:{notifications:{data:{source:"/included/graph_notification/*"}}},type:"BulkUpdate"},included:a},method:"POST"}).then(t=>{t.ok||(s(!1),u(!0),l(t=>t.map(t=>e.includes(t.id)?Te({},t,{isRead:!t.isRead}):t)))})},E=i(async e=>ze(Ve,`${d(n)("api")}/home/v2/me/task_lists/inbox/tasks`,{data:{data:{attributes:{description:e.link?`<a href="${e.link}">Link</a>`:void 0,title:e.title}}},method:"POST"}).then(t=>{t.ok&&l(n=>n.map(n=>e.id===n.id?Te({},n,{taskUrl:t.json.data.links.html}):n))}),[]);return{handleCreateTask:E,handleMarkAllAsRead:()=>{const e=h.map(e=>e.id);l(t=>t.map(t=>e.includes(t.id)?Te({},t,{isRead:!0}):t)),y(h.map(e=>e.id),"read")},handleMarkAsRead:async e=>y([e.id],"read"),handleToggleRead:async e=>{const t=e.isRead?"unread":"read";return l(n=>n.map(n=>e.id==n.id?Te({},n,{isRead:"read"===t}):n)),y([e.id],t)},hasError:c,isLoading:o,read:m,unread:h}})({enabled:s,env:o,joltChannel:c});return t.createElement(t.Fragment,null,t.createElement(Nn,{closeDrawer:e},t.createElement(f,{spacing:.5},t.createElement(f,{alignment:"center",axis:"horizontal",spacing:1},t.createElement(On,null,"Notifications"),v&&t.createElement(M,{color:"hsl(0 0% 62%)",thickness:2,trackColor:"hsl(0 0% 97%)"}),g&&t.createElement(vt,{fill:"hsl(8 60% 47%)",size:16})),y.length>0&&t.createElement(_i,{onClick:()=>a(e=>!e),title:(n?"Hide":"Show")+" read"}))),t.createElement(Hn,null,t.createElement(f,{alignment:"stretch",spacing:2},t.createElement("div",{style:{boxSizing:"border-box",display:"flex",flexDirection:"column",justifyContent:"space-between",margin:0,padding:"4px 0"}},!v&&0===E.length&&t.createElement(wi,Te({context:"toolbar",description:`When you have ${y.length>0?"unread ":""}notifications they will show up here.`},y.length>0&&{title:"No unread notifications"})),E.length>0&&t.createElement(f,{axis:"horizontal",alignment:"center",distribution:"space-between",padding:2},t.createElement(Ci,null,"Unread"),E.length>0&&t.createElement(_i,{onClick:()=>m(),title:`Mark ${E.length} as read`})),t.createElement(Me,{exit:!1},E.map((e,n)=>t.createElement(Ae,{key:e.id,timeout:0},a=>t.createElement("div",{style:Te({},r,l[a])},t.createElement(Ei,Te({isLast:E.length===n+1,key:e.id,onMarkAsRead:h,onToggleRead:()=>p(e),onCreateTask:u,showBottomBorder:y.length>0},{notification:e})))))),y.length>0&&n&&t.createElement(t.Fragment,null,t.createElement(Ci,{padding:2},"Read"),t.createElement(Me,{exit:!1},y.map(e=>t.createElement(Ae,{key:e.id,timeout:0},n=>t.createElement("div",{style:Te({},r,l[n])},t.createElement("div",{style:{opacity:.6}},t.createElement(Ei,Te({key:e.id,onToggleRead:()=>p(e),onCreateTask:u,showBottomBorder:!0},{notification:e}))))))))))))},icons:{active:"toolbar.notification",static:"toolbar.notificationO"},name:"Notifications"},Si=["children","badge","onClick"],{LoadingIndicator:Mi,StackView:Ai}=F;function Ti(e){let{children:n,badge:a,onClick:r}=e,i=De(e,Si);return t.createElement(f,Te({as:"button",axis:"horizontal",distribution:"space-between",alignment:"center",paddingBottom:.75,onClick:()=>r(),spacing:1},i),n,a&&t.createElement(S,Te({size:"sm",fontWeight:"600"},a)))}const Ni={component:function({closeDrawer:e,enableJoltLogging:n,env:r,isOpen:l,joltPromise:o,onReceiveWorker:s,openDrawer:c,currentPath:u,onChangePath:m}){const h=wr(),p=`${d(r)("home")}/addons/toolbar.tasks.list.js`,[f,g]=a(),[v,y]=a(),E=He({channelName:null==v?void 0:v.channelName,enableJoltLogging:n,enabled:!!v,env:r,fetchSubscribeToken:async e=>{const t=v.subscribeUrl;return(await ze(Ve,t,{data:{data:{attributes:{connection_id:e}}},method:"POST"})).json.data.id},joltPromise:o}),w=i(e=>{g(Te({},e,{timestamp:(new Date).getTime()}))},[]);Le(E,"",w);const b=i((e,t={})=>{var n;if(null==(n=window)||!n.pendo)return console.warn("`window.pendo` is undefined");window.pendo.track(e,t)},[]);return t.createElement(W,{grow:1,display:"flex",extensionId:"2",url:p,onReceiveWorker:s,loadingFallback:t.createElement(Ai,{flex:1,axis:"vertical"},t.createElement(Nn,{closeDrawer:e},t.createElement(Ai,{axis:"horizontal",spacing:1},t.createElement(On,null,"To do"),t.createElement(Mi,null)))),additionalComponents:{DrawerHeader:Nn,DrawerHeading:On,NavLinkWithBadge:Ti,ScrollContainer:Hn,SwitchView:Rn},args:{closeDrawer:e,currentPath:u,isOpen:l,latestJoltMessage:f,onChangePath:m,openDrawer:c,pcoMeta:h,requestJoltChannel:y,trackPendo:b},componentVersion:"5"})},icons:{active:"toolbar.checklist",static:"toolbar.checklistO"},name:"Tasks"},Di={Chat:si,Notifications:xi,Tasks:Ni},Oi=Object.fromEntries(Object.entries(Di).map(([e,t])=>[e.toLowerCase(),t]));function Pi({appName:l,autoMountTool:o,enableJoltLogging:s,env:c,helpdeskConfig:u={},linkToProfile:y=!0,userAvatarPath:w,userName:b,onReceiveTasksWorker:S}){const[M,A,T]=function(){const e="toolbar",[t,l]=function(e){const t=r(()=>new RegExp(`${e}=([^&]+)`),[e]),l=i(e=>{const n=e.match(t);return n?n[1]:null},[t]),[o,s]=a(()=>l(location.hash)),c=i(e=>{s(l(e))},[]);return n(()=>{function e(){c(location.hash)}return window.addEventListener("hashchange",e),()=>window.removeEventListener("hashchange",e)},[c]),[o,c]}(e),o=i((t,n="")=>{const a=`#${e}=${t}/${n}`;history.replaceState(void 0,void 0,a),l(a)},[l]);return[r(()=>{if(t){const[e,...n]=t.split("/");return{path:n.join("/"),tool:e}}return null},[t]),o,i(()=>{history.replaceState(void 0,void 0,"#"),l("")},[])]}(),[N,D]=function(e){const[t,n]=function(e){const[t,n]=a(()=>function(e){const t=document.cookie.split(";").map(e=>e.trim()).find(t=>t.startsWith(`${e}=`));return t&&decodeURIComponent(t.split("=")[1])}(e));return[t,i(t=>{document.cookie=`${e}=${encodeURIComponent(t)}; ${An}`,n(t)},[e])]}("topbarToolbarToolState");return[r(()=>{if(!t)return{};try{return JSON.parse(t)}catch(e){return{}}},[t]),i(e=>n(JSON.stringify(e)),[n])]}(),O=o?Di[o]:null,[P,V]=e.useReducer(In,Te({},Zn,{currentContent:O})),{currentContent:z,open:H}=P,L=!!z,{indicatorVisible:R,joltPromise:Y,chatEnabled:Z,userId:I}=Rt();t.useEffect(()=>{H?(document.body.style.overflow="hidden",window.scrollTo(0,0)):document.body.style.overflow="auto"},[H]),t.useEffect(()=>(window.openHelpdesk=()=>re(fi),()=>{delete window.openHelpdesk}),[fi]);const U=yn({appName:l.replace(/[\s-]/,""),env:c,userId:I}),W=`${d(c)("login")}/logout`,F=`/people/AC${I}`,$=fi,B=null!=u&&u.onClick?u.onClick:()=>Q($),G=i(e=>{V({payload:{content:e},type:Yn.mount}),setTimeout(()=>V({type:Yn.open}))},[]),q=i(e=>{e.name.toLowerCase()in Oi?A(e.name.toLowerCase(),N[e.name.toLowerCase()]):(T(),G(e))},[A,T,G,N]),J=i(()=>{V({type:Yn.close}),T(),setTimeout(()=>V({type:Yn.unmount}),100)},[T]);t.useEffect(()=>{if(!M)return;const e=Te({},N,{[M.tool]:M.path});Ze(e,N)||D(e)},[M,N]),t.useEffect(()=>{null==M||!M.tool||z===Oi[M.tool]&&H||G(Oi[M.tool])},[G,null==M?void 0:M.tool,z,H]);const Q=e=>H&&(null==z?void 0:z.name)===e.name?J():q(e),X=(({enableJoltLogging:e,env:n,userId:a,isEnabled:r,joltPromise:i,onConnectionFailure:l=na})=>{const[o,s]=t.useState(null),c=He({channelName:`chat.people.${a}`,enableJoltLogging:e,enabled:r,env:n,fetchSubscribeToken:async e=>{const t=`${d(n)("api")}/chat/v2/me/jolt_subscribe`;return ze(Ve,t,{data:{data:{attributes:{cid:e}}},method:"POST"}).then(({json:e})=>e.data.id)},joltPromise:i}),u=async({fields:e})=>{const t=`${d(n)("api")}/chat/v2/me/stream_user`,a=`?context=linked_accounts&fields[StreamUser]=${e.join(",")}`,{json:r}=await ze(Pe,`${t}${a}`);return r.data},m=()=>u({fields:["api_key","token","unread"]}).then(({id:e,attributes:t})=>{const{token:n}=t,a=De(t,pa);n?s(t=>Te({id:e},t,a,{tokenProvider:async()=>{const{attributes:e}=await u({fields:["token"]});return e.token}})):(l(),s(null))}).catch(na);return Le(r?c:void 0,"STREAM_USER_UPDATED",m),t.useEffect(()=>{r&&m()},[r]),o})({enableJoltLogging:s,env:c,isEnabled:Boolean(I&&Z),joltPromise:Y,onConnectionFailure:()=>z===si&&J(),userId:I}),K=[xi,Ni,X&&si].filter(Boolean),ee={component:()=>function({closeDrawer:e,linkToProfile:n,loginSettingsUrl:a,logoutUrl:r,profileUrl:i,userAvatarPath:l}){const{mfaConfigured:o,mfaEnabled:s,name:c}=Rt();return t.createElement(f,{axis:"vertical",spacing:t.createElement(h,null)},t.createElement(C,{columns:"auto 1fr auto",alignment:"start",spacing:2,padding:2,paddingTop:1,width:"100%"},t.createElement(x,{source:l,size:"md"}),t.createElement(f,{axis:"vertical",spacing:1,grow:0,shrink:1},t.createElement(_,{level:3,size:1,weight:600,paddingTop:.5,color:It.lightNeutral12},c),n&&t.createElement(E,{to:i,style:{color:It.lightNeutral45},size:3},"My profile"),s&&t.createElement(t.Fragment,null,t.createElement(E,{to:a,style:{color:It.lightNeutral45},size:3},"My login settings"),t.createElement(f,{axis:"horizontal",alignment:"center",spacing:.5,width:"100%"},t.createElement(v,{name:o?"general.lock":"general.unlock",size:"sm",color:o?It.success25:It.danger45}),t.createElement(g,{size:5,weight:400,color:It.lightNeutral62,wrap:!0},"Two-step verification ",o?"active":"inactive")))),t.createElement(p,{icon:{fill:It.lightNeutral24,name:"general.x",size:"md"},onClick:e,title:"Close",variant:"naked",theme:!1,hover:{backgroundColor:It.lightNeutral95}})),t.createElement("form",{method:"POST",action:r},t.createElement(p,{"data-turbolinks":!1,onClick:()=>{Be()},style:{padding:0},theme:!1,type:"submit",width:"100%"},t.createElement(f,{distribution:"space-between",alignment:"center",axis:"horizontal",grow:1,paddingHorizontal:3,paddingVertical:2},t.createElement(g,{color:It.lightNeutral45,size:3},"Log out"),t.createElement(v,{name:"general.intoBox",fill:It.lightNeutral45})))))}({closeDrawer:J,linkToProfile:y,loginSettingsUrl:U,logoutUrl:W,profileUrl:F,userAvatarPath:w}),name:"Profile"},te=function(e){const t=e=>"undefined"!=typeof window&&window.matchMedia(e).matches,[r,i]=a(t(e));function l(){i(t(e))}return n(()=>{const t=window.matchMedia(e);return l(),t.addListener?t.addListener(l):t.addEventListener("change",l),()=>{t.removeListener?t.removeListener(l):t.removeEventListener("change",l)}},[e]),r}("(max-width: 599px)"),[ne,ae]=t.useState(0);t.useLayoutEffect(()=>{const e=()=>{ae(window.innerHeight)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const re=e=>{var t;q(e),null==(t=document.getElementById(`toolbarDrawer${e.name}`))||t.scrollTo({behavior:"smooth",top:0})},ie={Chat:{chatStreamUser:X},Tasks:{onReceiveWorker:S}},le=i(e=>{A(null==z?void 0:z.name.toLowerCase(),e)},[null==z?void 0:z.name]),oe=Te({appName:l,closeDrawer:J,currentPath:null==M?void 0:M.path,env:c,helpdeskConfig:u,isOpen:H,joltPromise:Y,onChangePath:le,openDrawer:()=>z&&q(z),userId:I},z?ie[z.name]:{}),se=Te({},R,{Chat:null==X?void 0:X.unread});return t.createElement(m,{theme:bn},t.createElement(j,null,te?t.createElement(t.Fragment,null,t.createElement(f,{left:0,position:"absolute",right:0,pointerEvents:"none",style:{minHeight:ne},top:0,zIndex:10001},t.createElement(f,{alignItems:"start",axis:"horizontal",backgroundColor:"white",borderTopColor:"separatorTertiary",borderTopWidth:1,bottom:0,distribution:"fill",height:"calc(52px + env(safe-area-inset-bottom))",left:0,position:"fixed",pointerEvents:"auto",right:0},t.createElement(f,{alignment:"center",flex:"1",position:"relative"},t.createElement(p,{css:{WebkitTapHighlightColor:"transparent"},color:H?It.lightNeutral62:It.lightNeutral24,hover:{color:It.lightNeutral24},icon:{name:H?"toolbar.planningCenterO":"toolbar.planningCenter",size:"20px"},onClick:()=>J(),padding:2,theme:!1,title:"Home"})),[$,...K].map(e=>t.createElement(f,{alignment:"center",flex:"1",key:e.name,position:"relative"},t.createElement(p,{id:`toolbar-${e.name.toLowerCase()}`,"aria-label":`${e.name}`,color:H&&z===e?It.lightNeutral24:It.lightNeutral62,css:{WebkitTapHighlightColor:"transparent"},hover:{color:It.lightNeutral24},key:e.name,onClick:()=>re(e),paddingHorizontal:2,paddingVertical:2,theme:!1},t.createElement(k,{position:"relative"},se[e.name]&&t.createElement(Pn,{right:-.5,top:-.5}),t.createElement(v,{name:H&&z===e?e.icons.active:e.icons.static,size:"20px"}))))))),L&&t.createElement(Tn,{id:`toolbarDrawer${z.name}`,bottom:"52px",height:H?"calc(100% - 52px)":"0px",overflow:"auto",position:"absolute"},t.createElement(z.component,Te({},oe)))):t.createElement(f,{height:"100%",position:"absolute",right:0,width:H?"calc(360px + 48px)":"48px",transition:"all 100ms ease-in-out"},t.createElement(f,{backgroundColor:"surface",borderLeftColor:"separatorTertiary",borderLeftWidth:1,grow:1,paddingVertical:1,spacing:t.createElement(h,{margin:1.5}),zIndex:2,position:"absolute",right:0,height:"100%",width:"48px"},t.createElement(f,{alignment:"center","data-pendo":"toolbar-profile-support-wrapper",spacing:2},t.createElement(p,{"data-pendo":"toolbar-profile",onClick:()=>Q(ee),radius:0,theme:!1},t.createElement(x,{alt:`${b}'s avatar`,hover:{outlineColor:It.lightNeutral62},outlineColor:H&&L&&"Profile"==z.name?It.lightNeutral62:"transparent",outlineOffset:"2px",outlineStyle:"solid",outlineWidth:"2px",size:"sm",source:w})),t.createElement(Vi,{currentContent:z,indicatorState:se,key:$.name,onClick:B,open:H,tool:$})),t.createElement(f,{alignment:"center",spacing:2},K.map(e=>t.createElement(Vi,{currentContent:z,indicatorState:se,key:e.name,onClick:()=>Q(e),open:H,tool:e})))),L&&t.createElement(Tn,{hasShadow:!0,id:`toolbarDrawer${z.name}`,width:"360px"},t.createElement(z.component,Te({},oe))))))}const Vi=({currentContent:e,indicatorState:n,onClick:a,open:r,tool:i})=>t.createElement(k,{"data-pendo":`toolbar-${i.name.toLowerCase()}`,key:i.name,position:"relative"},n[i.name]&&t.createElement(Pn,{right:.25,top:.25}),t.createElement(p,{id:`toolbar-${i.name.toLowerCase()}`,color:r&&e===i?It.lightNeutral24:It.lightNeutral62,hover:{color:It.lightNeutral24},icon:{name:r&&e===i?i.icons.active:i.icons.static,size:"20px"},key:i.name,onClick:a,title:`Open ${i.name} drawer`,theme:!1}));export{je as AppsProvider,pt as BellIcon,qe as ConnectedPeopleProvider,Qe as DisplaySwitch,Jt as NotSmallRoute,qt as NotSmallTopbar,nn as PlatformAnnouncements,tn as PlatformAnnouncementsStyleProvider,cn as ProductAnnouncement,dn as ProductAnnouncementStyleProvider,Sn as SmallRoute,xn as SmallTopbar,yt as SpyglassIcon,en as StyledPlatformAnnouncement,un as StyledProductAnnouncement,mn as StyledProductAnnouncementDimissButton,Rn as SwitchView,Pi as Toolbar,Et as XIcon,$e as mapApps,Ve as railsCsrfFetch};
|
|
1
|
+
import*as e from"react";import t,{useEffect as n,useState as a,useMemo as l,useCallback as r,useRef as o}from"react";import i from"@planningcenter/jolt-client";import c from"@planningcenter/url";import{useSyncExternalStore as s}from"use-sync-external-store/shim";import{ThemeProvider as d,Divider as p,Button as m,StackView as u,Text as h,Icon as g,designSystem as f,Link as v,HeadingUppercase as E,List as b,Box as y,Heading as w,GridView as C,Avatar as k,Combobox as x,Logo as A,Dropdown as S,Spinner as Z,Badge as V}from"@planningcenter/tapestry-react";import*as N from"@planningcenter/icons/paths/church-center";import*as M from"@planningcenter/icons/paths/general";import*as H from"@planningcenter/icons/paths/people";import*as P from"@planningcenter/icons/paths/toolbar";import{UiExtensionFirstPartyComponent as z,components as L,UiExtensionDataContext as T}from"@planningcenter/add-ons";import{Chat as _,useChatStreamUser as O}from"@planningcenter/chat/chat-topbar";import{InlineWidget as I}from"react-calendly";import $ from"algoliasearch";import{useSearchBox as R,useHits as U,InstantSearch as D,Configure as j}from"react-instantsearch";import{TransitionGroup as B,Transition as F}from"react-transition-group";import W from"@planningcenter/datetime-fmt";function q(){return q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},q.apply(this,arguments)}function G(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function J(e,t){if(null==e)return{};var n,a,l={},r=Object.keys(e);for(a=0;a<r.length;a++)t.indexOf(n=r[a])>=0||(l[n]=e[n]);return l}const X=["headers"],K=(e,t)=>fetch(e,q({credentials:"include",mode:"cors"},t)),Y=(e,t)=>{let{headers:n}=t,a=J(t,X);return fetch(e,q({headers:q({},n,{"X-CSRF-Token":(null==(l=window)||null==(r=l.Rails)?void 0:r.csrfToken())||(null==(o=document.querySelector('meta[name="csrf-token"]'))?void 0:o.getAttribute("content"))||null})},a,{credentials:"include",mode:"cors"}));var l,r,o};function Q(e,t,{method:n="GET",data:a=null}={}){const l={headers:{Accept:"application/json","Content-Type":"application/json"},method:n,redirect:"follow"};return a&&"GET"!==n&&(l.body=JSON.stringify(a)),e(t,l).then(e=>e.json().then(t=>({json:t,ok:e.ok,response:e})).catch(()=>({json:null,ok:e.ok,response:e})),e=>(console.warn(e),{json:null,ok:!1,response:null}))}const ee=({channelName:e,enableJoltLogging:n=!1,enabled:a=!0,env:l,wssEndpoint:r,fetchSubscribeToken:o,joltPromise:s=(()=>Promise.resolve())})=>{const[d,p]=t.useState(),[m,u]=t.useState(),[h,g]=t.useState(!1),f=t.useCallback(async()=>{let t=await s().then(e=>e);const a=async(e,t)=>o(t);t||(g(!0),t=new i(r||(e=>{switch(e){case"development":case"test":return"wss://1csnwvu025.execute-api.us-east-1.amazonaws.com/v1/";case"staging":return"wss://xvk2ac1o3l.execute-api.us-east-1.amazonaws.com/v1/";default:return"wss://yxe88gasn3.execute-api.us-east-1.amazonaws.com/v1/"}})(l),{fetchAuthTokenFn:async()=>Q(Y,`${window.location.origin}/~api/notifications/v2/me/notifications_jolt_authorize`,{data:{data:{attributes:{}}},method:"POST"}).then(({json:e})=>e.data.id),fetchSubscribeTokenFn:a},{logToConsole:n}));const c=t.subscriptions.find(t=>t.channel===e)||t.subscribe(e,{fetchSubscribeTokenFn:a});p(c),u(t)},[Q,e,l,c,Y]);return t.useEffect(()=>{a&&f()},[a,f]),t.useEffect(()=>{const e=e=>{var t,n;e.data.hasOwnProperty("PCOPageExpiredCurrentPersonACID")&&e.data.PCOPageExpiredCurrentPersonACID!==(null==(t=window)||null==(n=t.pcoPageExpired)?void 0:n.currentPersonACID)&&m&&m.disconnect()};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)},[m]),t.useEffect(()=>()=>{m&&h&&m.disconnect()},[m]),d},te=(e,t,a)=>n(()=>e?(e.bind(t,a),()=>e.unbind(t,a)):()=>{},[e,a]),ne=(e,t=1)=>{const n=e.replace(/[a-z()%]/g,"").split(" ");return`hsla(${n[0]}, ${n[1]}%, ${n[2]}%, ${t})`},ae=(e,t)=>{let n;return function(...a){const l=this;clearTimeout(n),n=setTimeout(()=>{n=null,e.apply(l,a)},t),n||e.apply(l,a)}};function le(e,t){return Object.keys(e).length===Object.keys(t).length&&Object.entries(e).every(([e,n])=>t[e]!==n)}function re(e,t){const[l,r]=a(()=>{try{const n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(e){return t}}),o=JSON.stringify(l);return n(()=>{window.localStorage.setItem(e,o)},[e,o]),{dropKey:()=>window.localStorage.removeItem(e),setStoredValue:r,storedValue:l}}const oe=()=>{};function ie(e){let t=e;const n=new Set;return{getState:()=>t,setState:e=>{t=e,n.forEach(e=>e(t))},subscribe:e=>(n.add(e),()=>n.delete(e))}}const ce=ie({}),se=({configuredFetch:e=K,enableJoltLogging:l,env:r,formatter:o=de,joltPromise:i,wssEndpoint:s,render:d,userId:p})=>{var m,u,h,g,f,v,E,b,y,w,C,k,x,A,S,Z,V,N,M,H,P;const z=(({configuredFetch:e,env:t})=>{const{storedValue:l,setStoredValue:r}=re("Topbar",{}),[o,i]=a(l);n(()=>{s()},[]);const s=()=>{Q(e,`${c(t)("api")}/people/v2/me/topbar`).then(({json:e,ok:t})=>{t&&(i(e),r(e))})};return o})({configuredFetch:e,env:r}),L=o(z),T=null==z||null==(m=z.data)||null==(u=m.attributes)?void 0:u.has_connected_people,_=null==z||null==(h=z.data)||null==(g=h.attributes)||null==(f=g.features)?void 0:f.includes("mfa_enabled"),O=null==z||null==(v=z.data)||null==(E=v.attributes)||null==(b=E.features)?void 0:b.includes("notifications_context_menu"),I=!(null==z||null==(y=z.data)||null==(w=y.attributes)||!w.mfa_configured),$=null==z||null==(C=z.data)||null==(k=C.attributes)?void 0:k.name,R=!window.notificationsDisabled,U=(null==z||null==(x=z.data)||null==(A=x.attributes)?void 0:A.org_time_zone)||"America/Los_Angeles",D=null==z||null==(S=z.data)||null==(Z=S.attributes)||null==(V=Z.features)?void 0:V.includes("chat_enabled"),j={algoliaApplicationId:null==z||null==(N=z.data)||null==(M=N.attributes)?void 0:M.algolia_application_identifier,algoliaSearchOnlyApiKey:null==z||null==(H=z.data)||null==(P=H.attributes)?void 0:P.algolia_search_key},B=ee({channelName:`notifications.people.${p}`,enableJoltLogging:l,enabled:!0,env:r,wssEndpoint:s,fetchSubscribeToken:async e=>{const t=`${window.location.origin}/~api/notifications/v2/me/notifications_jolt_subscribe`;return Q(Y,t,{data:{data:{attributes:{cid:e}}},method:"POST"}).then(({json:e})=>e.data.id)},joltPromise:i}),F=(({enabled:e,joltChannel:n})=>{const{storedValue:a,setStoredValue:l}=re("Topbar:Notifications:hasUnread",!1),r=((e,n=0)=>t.useMemo(()=>ae(e,n),[]))(()=>{const e=`${window.location.origin}/~api/notifications/v2/me/unread`;Q(K,e).then(({json:e})=>{l(e.data.attributes.unread)}).catch(oe)},300);return t.useEffect(()=>{e&&r()},[e]),te(e?n:void 0,"notifications.v2.events.notification.created",r),te(e?n:void 0,"notifications.v2.events.notification.updated",r),te(e?n:void 0,"notifications.v2.events.notification.destroyed",r),a})({enabled:!0,env:r,joltChannel:B});return n(()=>{const e=ce.getState();ce.setState(q({},e,{algoliaSearchAuth:j,chatEnabled:D,hasConnectedPeople:T,indicatorVisible:q({},e.indicatorVisible,{Notifications:F}),joltPromise:i,mfaConfigured:I,mfaEnabled:_,name:$,notifications:{enabled:R,env:r,joltChannel:B},notificationsContextMenu:O,notificationsEnabled:R,notificationsJoltChannel:B,organizationTimeZone:U,userId:p}))},[i,I,_,$,O,R,F,U,p]),d(L||[],{fetch:()=>{},remove:()=>{}})};function de(e){var t,n;return(null==e||null==(t=e.data)||null==(n=t.attributes)?void 0:n.apps)||[]}function pe(){window.localStorage.removeItem("Topbar:ConnectedPeople")}function me(e){window.location=e}class ue extends t.Component{constructor(e){super(e),this.state={connectedPeople:[]}}fetch(){Q(this.props.configuredFetch,`${c(this.props.env)("api")}/login/v2/me/connected_people`).then(({json:e,ok:t})=>{if(!t||!e)return;const n=e.data;return this.setState({connectedPeople:n},()=>window.localStorage.setItem("Topbar:ConnectedPeople",JSON.stringify(n)))})}unlink(){Q(this.props.configuredFetch,`${c(this.props.env)("api")}/login/v2/me/unlink`,{method:"POST"}).then(({json:e})=>{var t;null!=e&&null!=(t=e.meta)&&t.redirect_to&&me(e.meta.redirect_to)})}switch(e,t){Q(this.props.configuredFetch,`${c(this.props.env)("api")}/login/v2/me/switch_connected_person`,{data:{data:{attributes:{id:e,return_path:t}}},method:"POST"}).then(({json:e})=>{var t;null!=e&&null!=(t=e.meta)&&t.redirect_to&&me(e.meta.redirect_to)})}componentDidMount(){const e=JSON.parse(window.localStorage.getItem("Topbar:ConnectedPeople"));return e?this.setState({connectedPeople:e}):this.fetch()}render(){return this.props.render(this.state.connectedPeople||[],{fetch:this.fetch.bind(this),remove:pe.bind(this),switch:this.switch.bind(this),unlink:this.unlink.bind(this)})}}ue.defaultProps={configuredFetch:K};class he extends t.Component{constructor(e){super(e),this.state={width:window.innerWidth},this.setWindowWidth=this.setWindowWidth.bind(this)}setWindowWidth(){this.setState({width:window.innerWidth})}componentDidMount(){window.addEventListener("resize",ae(this.setWindowWidth,100),!1)}componentWillUnmount(){window.removeEventListener("resize",ae(this.setWindowWidth,100),!1)}breakpointString(e){return e<480?"xs":e<600?"sm":e<720?"md":e<960?"lg":"xl"}render(){return t.createElement(t.Fragment,null,this.props.render(this.breakpointString(this.state.width)))}}class ge extends t.Component{render(){return t.createElement(he,{render:e=>-1!==this.props.smallBreakpoints.indexOf(e)?this.props.smallTopbar(e):this.props.notSmallTopbar(e)})}}function fe({color:e}){return t.createElement("path",{fill:e,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"})}ge.defaultProps={smallBreakpoints:["xs","sm"]};var ve={__proto__:null,Squircle:function({color:e="#fff"}){return t.createElement("path",{fill:e,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"})},Accounts:fe,API:function({color:e}){return t.createElement("path",{fill:e,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"})},Calendar:function({color:e}){return t.createElement("path",{fill:e,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"})},CheckIns:function({color:e}){return t.createElement("path",{fill:e,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"})},ChurchCenter:function({color:e}){return t.createElement("path",{fill:e,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"})},Giving:function({color:e}){return t.createElement("path",{fill:e,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"})},Groups:function({color:e}){return t.createElement("path",{fill:e,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"})},Home:function({color:e}){return t.createElement("path",{fill:e,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"})},People:function({color:e}){return t.createElement("path",{fill:e,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"})},Publishing:function({color:e}){return t.createElement("path",{fill:e,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"})},Registrations:function({color:e}){return t.createElement("path",{fill:e,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"})},Services:function({color:e}){return t.createElement("path",{fill:e,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"})}};const Ee=["appName","colors","style","size"];function be({color:e="#fff"}){return t.createElement("path",{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",fill:e})}function ye(e){let{appName:n,colors:a,style:l,size:r=20}=e,o=J(e,Ee);return t.createElement("svg",q({xmlns:"http://www.w3.org/2000/svg",width:r,height:r,viewBox:"0 0 20 20",role:"img","aria-labelledby":"title desc",style:q({display:"block"},l)},o),t.createElement("title",{id:"title"},"Planning Center ",n," App Icon"),t.createElement("desc",{id:"desc"},"An image symbolizing the Planning Center ",n," app."),"Accounts"===n?null:t.createElement(be,null),ve[n]?t.createElement(ve[n],{color:"Accounts"!=n?a.base0:"#fff"}):t.createElement("div",null,"appName not supported"))}var we={__proto__:null,Accounts:function({color:e,size:n=20}){return t.createElement("svg",{"data-name":"Layer 1",height:n,id:"4ce749c7-c01e-4a9b-9496-b14fd2e761aa",viewBox:"0 0 77.073 20",xmlns:"http://www.w3.org/2000/svg"},t.createElement("title",null,"accounts-text"),t.createElement("path",{fill:e,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"}))},API:function({color:e,size:n=20}){return t.createElement("svg",{"data-name":"Layer 1",height:n,id:"bed028ef-58ee-4c4c-a757-08ecc3276857",viewBox:"0 0 119.5 20",xmlns:"http://www.w3.org/2000/svg"},t.createElement("title",null,"api-text"),t.createElement("path",{fill:e,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"}))},Calendar:function({color:e,size:n=20}){return t.createElement("svg",{"data-name":"Layer 1",height:n,id:"Layer_1",viewBox:"0 0 73.83 20",xmlns:"http://www.w3.org/2000/svg"},t.createElement("title",null,"calendar-text"),t.createElement("path",{fill:e,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"}))},CheckIns:function({color:e,size:n=20}){return t.createElement("svg",{"data-name":"Layer 1",height:n,id:"dc713595-39c2-41c4-b1d9-3ef8c295b738",viewBox:"0 0 79.311 20",xmlns:"http://www.w3.org/2000/svg"},t.createElement("title",null,"check-ins-text"),t.createElement("path",{fill:e,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"}))},ChurchCenter:function({color:e,size:n=20}){return t.createElement("svg",{"data-name":"Layer 1",height:n,id:"e2e8a225-c349-4aea-935c-64b6ad436be8",viewBox:"0 0 118.083 20",xmlns:"http://www.w3.org/2000/svg"},t.createElement("title",null,"church-center-text"),t.createElement("path",{fill:e,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"}))},Giving:function({color:e,size:n=20}){return t.createElement("svg",{"data-name":"Layer 1",height:n,id:"a221b42b-722d-4eb3-b043-fff7f3c6686f",viewBox:"0 0 50.486 20",xmlns:"http://www.w3.org/2000/svg"},t.createElement("title",null,"giving-text"),t.createElement("path",{fill:e,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"}))},Home:function({color:e,size:n=20}){return t.createElement("svg",{id:"a221b42b-722d-4eb3-b043-fff7f3c6686f","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",height:n,viewBox:"0 0 47.624 20"},t.createElement("title",null,"home-text"),t.createElement("path",{fill:e,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"}))},Groups:function({color:e,size:n=20}){return t.createElement("svg",{"data-name":"Layer 1",height:n,id:"08e4075e-8ca4-4400-a3ae-98f53270d1d0",viewBox:"0 0 58.688 20",xmlns:"http://www.w3.org/2000/svg"},t.createElement("title",null,"groups-text"),t.createElement("path",{fill:e,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"}))},People:function({color:e,size:n=20}){return t.createElement("svg",{"data-name":"Layer 1",height:n,id:"c461f8d4-1c6e-406e-af2d-8d7721d891d5",viewBox:"0 0 57.729 20",xmlns:"http://www.w3.org/2000/svg"},t.createElement("title",null,"people-text"),t.createElement("path",{fill:e,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"}))},Publishing:function({color:e,size:n=20}){return t.createElement("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",height:n,viewBox:"0 0 84.973 20"},t.createElement("title",null,"publishing-text"),t.createElement("path",{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",fill:e}))},Registrations:function({color:e,size:n=20}){return t.createElement("svg",{id:"2da9f999-408b-4466-9b5d-b1268727ac81","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",height:n,viewBox:"0 0 105.758 20"},t.createElement("title",null,"registrations-text"),t.createElement("path",{fill:e,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"}))},Services:function({color:e,size:n=20}){return t.createElement("svg",{id:"bd77a8f3-6992-4241-927e-9fdc3bf67b80","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",height:n,viewBox:"0 0 67.995 20"},t.createElement("title",null,"services-text"),t.createElement("path",{fill:e,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"}))}};function Ce({appName:e,color:n,size:a=20}){return we[e]?t.createElement(we[e],{color:n,size:a}):t.createElement("div",null,"appName not supported")}const ke={transition:"background-color 120ms ease-in"},xe={fontFamily:"inherit"},Ae={flex:"1 1 auto"},Se=["dot","dotFill","fill","style"],Ze=["dark","id","style"],Ve=["colors","style"],Ne=["fill","size","style"],Me=["fill","style"],He=["fill","style"],Pe=e=>{let{dot:n=!1,dotFill:a="#fff",fill:l="#fff",style:r}=e,o=J(e,Se);const i=t.createElement("path",{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",fill:"white"});return t.createElement("svg",q({width:"24",height:"24",viewBox:"0 0 24 24",style:q({display:"block"},r)},o,{stroke:"none"}),t.createElement("title",null,"bell"),t.createElement("defs",null,t.createElement("mask",{id:"mask-no-dot"},i),t.createElement("mask",{id:"mask-dot"},i,t.createElement("circle",{cx:"18",cy:"6",fill:"black",r:"7"}))),t.createElement("rect",{fill:l,height:"24",mask:n?"url(#mask-dot)":"url(#mask-no-dot",width:"24",x:"0",y:"0"}),n&&t.createElement("circle",{cx:"18",cy:"6",r:"4",fill:a||l}))},ze=e=>{let{dark:n=!1,id:a="default",style:l}=e,r=J(e,Ze);return t.createElement("svg",q({fill:"none",height:"123",style:q({},l),width:"160"},r),t.createElement("g",{clipPath:`url(#clip-path-blank-state-${a})`},t.createElement("path",{opacity:".6",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",fill:n?"#414141":"#E1F0F9"}),t.createElement("g",{opacity:".2"},t.createElement("path",{opacity:".2",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",fill:"#BAC7D3"})),t.createElement("path",{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",fill:"#FCC846"}),t.createElement("path",{d:"M68.778 36.633l-19.982 57.63 57.919-20.127-37.937-37.502z",fill:"#48A5E5"}),t.createElement("path",{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",fill:"#79CAF2"}),t.createElement("path",{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",fill:n?"#525252":"#636363"}),t.createElement("path",{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",fill:"#FCC846"})),t.createElement("defs",null,t.createElement("clipPath",{id:`clip-path-blank-state-${a}`},t.createElement("path",{fill:"#fff",d:"M0 0h160v122.063H0z"}))))},Le=e=>{let{colors:n,style:a}=e,l=J(e,Ve);return t.createElement("svg",q({color:n.base3,height:"16",viewBox:"0 0 16 16",width:"16"},{style:a},l),t.createElement("title",null,"chevron"),t.createElement("polygon",{fill:"currentColor",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"}))},Te=e=>{let{fill:n="#000",size:a=24,style:l}=e,r=J(e,Ne);return t.createElement("svg",q({height:a,style:q({display:"block"},l),viewBox:"0 0 16 16",width:a},r),t.createElement("title",null,"exclamation triangle icon"),t.createElement("path",{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",fill:n}))},_e=e=>{let{fill:n="#000",style:a}=e,l=J(e,Me);return t.createElement("svg",q({width:"24",height:"24",viewBox:"0 0 24 24",style:q({display:"block"},a)},l),t.createElement("title",null,"search spyglass icon"),t.createElement("path",{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",fill:n}))},Oe=e=>{let{fill:n="#A0A0A0",style:a}=e,l=J(e,He);return t.createElement("svg",q({width:"16",height:"16",viewBox:"0 0 16 16",style:q({display:"block"},a)},l),t.createElement("title",null,"close-x"),t.createElement("path",{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",fill:n}))},Ie=["style"];function $e(e){let{style:n}=e,a=J(e,Ie);return t.createElement("button",q({style:q({WebkitAppearance:"none",appearance:"none",backgroundColor:"transparent",border:"none",cursor:"pointer",display:"inline-block",outline:0,padding:0},xe,n)},a))}const Re=["appName","colors","displayIconOnly","expanded","onClick","style"],Ue=e=>{let{appName:n,colors:a,displayIconOnly:l,expanded:r,onClick:o,style:i=null}=e,c=J(e,Re);const[s,d]=t.useState(!1),[p,m]=t.useState(!1);return t.createElement($e,q({onClick:o,onMouseDown:()=>d(!0),onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),onMouseUp:()=>d(!1),style:q({alignItems:"center",backgroundColor:r&&!s?a.base1:p&&s?a.base2:p?a.base1:"transparent",display:"flex",height:"100%",outline:0,paddingLeft:"16px",paddingRight:"16px",whiteSpace:"nowrap"},ke,i)},c),t.createElement(ye,{appName:n.replace(/[\s-]/,""),colors:a,size:24}),!l&&t.createElement(t.Fragment,null,"Accounts"===n?t.createElement("div",{style:{color:"#fff",fontSize:"14px",fontWeight:500,marginLeft:3}},"Account settings"):t.createElement(t.Fragment,null,t.createElement("div",{key:"spacer-1",style:{margin:4}}),t.createElement(Ce,{appName:n.replace(/[\s-]/,""),color:"#fff",key:"mono-app-name",size:24})),t.createElement("div",{key:"space-2",style:{margin:4}}),t.createElement(Le,{colors:a,key:"disclosure-chevron-icon",style:{display:"block"}})))};var De={__proto__:null,Accounts:function(){return[t.createElement("defs",{key:"def"},t.createElement("linearGradient",{id:"2e1ed2e7-b842-4126-8f57-f6b6dd63ddb6",x1:"1.844",y1:"1.833",x2:"18.622",y2:"18.612",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{offset:"0",stopColor:"#32a0f0"}),t.createElement("stop",{offset:"1",stopColor:"#3f75e5"}))),t.createElement("title",{key:"title"},"accounts-squircle"),t.createElement("path",{key:"path",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",fill:"url(#2e1ed2e7-b842-4126-8f57-f6b6dd63ddb6)"})]},API:function(){return[t.createElement("defs",{key:"def"},t.createElement("linearGradient",{id:"c8ec303e-a96d-4850-93ae-70864e3306bb",x1:"0.991",y1:"0.983",x2:"19.295",y2:"19.288",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{offset:"0",stopColor:"#32a0f0"}),t.createElement("stop",{offset:"1",stopColor:"#3f75e5"}))),t.createElement("title",{key:"title"},"api-squircle"),t.createElement("path",{key:"path",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",fill:"url(#c8ec303e-a96d-4850-93ae-70864e3306bb)"})]},Calendar:function(){return[t.createElement("defs",{key:"defs"},t.createElement("linearGradient",{id:"calendar-gradient",x1:"2.05",y1:"2.04",x2:"17.97",y2:"17.96",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{offset:"0",stopColor:"#f25437"}),t.createElement("stop",{offset:"1",stopColor:"#cd4e39"}))),t.createElement("title",{key:"title"},"calendar-squircle"),t.createElement("path",{key:"path",d:"M20,10c0,8-2,10-10,10S.06,18,.06,10,2.05.05,10,.05,20,2,20,10Z",fill:"url(#calendar-gradient)"})]},CheckIns:function(){return[t.createElement("defs",{key:"def"},t.createElement("linearGradient",{id:"679bc2bf-38c8-45ab-9ee3-a2ff814fead7",x1:"1.75",y1:"1.739",x2:"18.156",y2:"18.145",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{offset:"0",stopColor:"#a76ebe"}),t.createElement("stop",{offset:"1",stopColor:"#875e96"}))),t.createElement("title",{key:"title"},"check-ins-squircle"),t.createElement("path",{key:"path",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",fill:"url(#679bc2bf-38c8-45ab-9ee3-a2ff814fead7)"})]},ChurchCenter:function(){return[t.createElement("defs",{key:"def"},t.createElement("linearGradient",{id:"6de99831-a6f8-498e-9bf3-9d55c8d887fa",x1:"2.04",y1:"2.029",x2:"17.976",y2:"17.965",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{offset:"0",stopColor:"#42a5f5"}),t.createElement("stop",{offset:"1",stopColor:"#66bb6a"}))),t.createElement("title",{key:"title"},"church-center-squircle"),t.createElement("path",{key:"path",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",fill:"url(#6de99831-a6f8-498e-9bf3-9d55c8d887fa)"})]},Giving:function(){return[t.createElement("defs",{key:"def"},t.createElement("linearGradient",{id:"0aae6372-b733-476d-af45-8777c08c1e24",x1:"2.047",y1:"2.036",x2:"17.969",y2:"17.959",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{offset:"0",stopColor:"#f5c426"}),t.createElement("stop",{offset:"1",stopColor:"#f2b327"}))),t.createElement("title",{key:"title"},"giving-squircle"),t.createElement("path",{key:"path",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",fill:"url(#0aae6372-b733-476d-af45-8777c08c1e24)"})]},Groups:function(){return[t.createElement("defs",{key:"def"},t.createElement("linearGradient",{id:"86d10072-1c7f-4a02-88fe-0735565ae99a",x1:"1.939",y1:"1.928",x2:"18.146",y2:"18.135",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{offset:"0",stopColor:"#ff962d"}),t.createElement("stop",{offset:"1",stopColor:"#fc7638"}))),t.createElement("title",{key:"title"},"groups-squircle"),t.createElement("path",{key:"path",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",fill:"url(#86d10072-1c7f-4a02-88fe-0735565ae99a)"})]},Home:function(){return[t.createElement("defs",{key:"def"},t.createElement("linearGradient",{id:"paint0_linear_1_2",x1:"-2.23242",y1:"0.320978",x2:"19.9609",y2:"22.5228",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{offset:"0",stopColor:"#289DFF"}),t.createElement("stop",{offset:"1",stopColor:"#2266F7"}))),t.createElement("title",{key:"title"},"home-squircle"),t.createElement("path",{key:"path",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",fill:"url(#paint0_linear_1_2)"})]},People:function(){return[t.createElement("defs",{key:"def"},t.createElement("linearGradient",{id:"7f805f16-2322-4b42-b61a-2bf71eadb25a",x1:"2.047",y1:"2.036",x2:"17.969",y2:"17.958",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{offset:"0",stopColor:"#32a0f0"}),t.createElement("stop",{offset:"1",stopColor:"#3f75e5"}))),t.createElement("title",{key:"title"},"people-squircle"),t.createElement("path",{key:"path",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",fill:"url(#7f805f16-2322-4b42-b61a-2bf71eadb25a)"})]},Publishing:function(){return[t.createElement("defs",{key:"def"},t.createElement("linearGradient",{id:"publishing-gradient",x1:"2.047",y1:"2.036",x2:"17.969",y2:"17.958",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{offset:"0",stopColor:"#787882"}),t.createElement("stop",{offset:"1",stopColor:"#5f5f69"})),t.createElement("linearGradient",{id:"publishing-gradient-2",x1:"2.03",y1:"2.03",x2:"17.952",y2:"17.952",gradientTransform:"translate(2.563 -2.028) rotate(13.283)",xlinkHref:"#publishing-gradient"})),t.createElement("title",{key:"title"},"publishing-squircle"),t.createElement("path",{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",fill:"url(#publishing-gradient)",key:"path"}),t.createElement("circle",{cx:"9.991",cy:"9.991",r:"9.951",transform:"translate(-2.028 2.563) rotate(-13.283)",fill:"url(#publishing-gradient-2)",key:"circle"})]},Registrations:function(){return[t.createElement("defs",{key:"def"},t.createElement("linearGradient",{id:"bd67604d-f11c-4431-bd82-159c57241115",x1:"2.047",y1:"2.036",x2:"17.969",y2:"17.958",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{offset:"0",stopColor:"#41b99e"}),t.createElement("stop",{offset:"1",stopColor:"#46948d"}))),t.createElement("title",{key:"title"},"registrations-squircle"),t.createElement("path",{key:"path",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",fill:"url(#bd67604d-f11c-4431-bd82-159c57241115)"})]},Services:function(){return[t.createElement("defs",{key:"def"},t.createElement("linearGradient",{id:"00f9217c-0536-41ea-b265-a8689874be71",x1:"2.04",y1:"2.029",x2:"17.976",y2:"17.965",gradientUnits:"userSpaceOnUse"},t.createElement("stop",{offset:"0",stopColor:"#6eaa50"}),t.createElement("stop",{offset:"1",stopColor:"#6a9639"}))),t.createElement("title",{key:"title"},"services-squircle"),t.createElement("path",{key:"path",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",fill:"url(#00f9217c-0536-41ea-b265-a8689874be71)"})]}};function je({appName:e,size:n=20}){return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:n,viewBox:"0 0 20 20",style:{display:"block"}},t.createElement(De[e]?De[e]:"span",{key:"key1"}),ve[e]?t.createElement(ve[e],{color:"#fff",key:"key2"}):t.createElement("div",{key:"key3"},"appName not supported"))}function Be(e){var t,n,a;const l=`/apps/${e.toLowerCase()}`,r=null==(t=window)||null==(n=t.location)||null==(a=n.pathname)?void 0:a.toString();if(!r)return l;const o=new URLSearchParams;return o.append("referer",r),`${l}?${o.toString()}`}const Fe=["active","component","style"],We=e=>{let{active:n=!1,component:a="span",style:l=null}=e,r=J(e,Fe);const[o,i]=t.useState(!1);return t.createElement(a,q({onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),style:q({},l,{backgroundColor:n?"#ededed":o?"#f7f7f7":"transparent"})},r))},qe=["cleanup","onOutsideClick","visible"];class Ge extends t.Component{constructor(e){super(e),this.container=void 0,this.handleOutsideClick=this.handleOutsideClick.bind(this)}componentWillUnmount(){document.removeEventListener("click",this.handleOutsideClick,!0)}handleOutsideClick(e){if(!this.container.contains(e.target))return e.stopPropagation(),e.preventDefault(),this.props.onOutsideClick()}render(){const e=this.props,{cleanup:n}=e,a=J(e,qe);return n?document.removeEventListener("click",this.handleOutsideClick,!0):document.addEventListener("click",this.handleOutsideClick,!0),t.createElement("div",q({ref:e=>this.container=e},a))}}const Je=["style"],Xe=e=>{let{style:n=null}=e,a=J(e,Je);return t.createElement("div",q({style:q({alignSelf:"flex-end",display:"flex",position:"relative"},n)},a))},Ke=["component","style"],Ye=e=>{let{component:n="div",style:a=null}=e,l=J(e,Ke);return t.createElement(n,q({style:q({background:"#FFFFFF",borderRadius:"3px",boxShadow:"0 0 0 1px #D4D9E2, 0 8px 32px rgba(0,0,0,.3)",overflow:"hidden",position:"absolute"},a)},l))},Qe=({appName:e,apps:n,env:a,toggle:l,visible:r})=>{const o=n.find(({name:e})=>"Accounts"===e),i=n.find(({name:e})=>"Home"===e),s=[...n].filter(({name:e})=>"Home"!==e&&"Accounts"!==e).sort((e,t)=>e.name.localeCompare(t.name)),d=q({},xe,{alignItems:"center",display:"flex",height:"48px",overflow:"hidden",padding:"0 16px",verticalAlign:"middle"});return t.createElement(Xe,null,t.createElement(Ye,{cleanup:!r,component:Ge,onOutsideClick:l,style:q({marginTop:"8px"},r?{opacity:1,transition:"none",visibility:"visible"}:{opacity:0,transition:"all 120ms ease-in",visibility:"hidden"})},t.createElement("menu",{"data-pendo":"app-switcher",style:{margin:0,minWidth:180,padding:0}},i&&t.createElement(We,{component:"a","data-pendo":`app-switcher--change-app--${i.name}`,"data-turbolinks":!1,href:e===i.name?`${c(a)("accounts")}/apps/${e}`:c(a)("accounts")+Be(i.name),style:q({},d,{borderBottom:"1px solid #ededed"})},t.createElement("div",{style:{marginRight:"6px"}},t.createElement(je,{appName:"Home",size:20})),t.createElement(Ce,{appName:"Home",color:"#444",size:18})),s.map(({name:n},l)=>{const r=0===l,o=l===s.length-1;return t.createElement(We,{component:"a","data-pendo":`app-switcher--change-app--${n}`,"data-turbolinks":!1,href:n===e?`${c(a)("accounts")}/apps/${n.toLowerCase()}`:c(a)("accounts")+Be(n),key:n,style:q({},d,{height:"40px",paddingBottom:o?"4px":null,paddingTop:r?"4px":null})},t.createElement("div",{style:{marginRight:"6px"}},t.createElement(je,{appName:n.replace(/[\s-]/,""),size:20})),t.createElement(Ce,{appName:n.replace(/[\s-]/,""),color:"#444",size:18}))}),o&&t.createElement(We,{component:"a","data-pendo":`app-switcher--change-app--${o.name}`,"data-turbolinks":!1,href:c(a)("accounts")+Be(o.name),style:q({},d,{borderTop:"1px solid #ededed",padding:"0 12px",textDecoration:"none"})},t.createElement("svg",{height:22,style:{display:"block",marginRight:"2px"},viewBox:"0 0 20 20",width:22,xmlns:"http://www.w3.org/2000/svg"},t.createElement(fe,{color:"#9e9e9e",key:"key2"})),t.createElement("div",{style:{color:"#737373",fontSize:"12px",lineHeight:"28px"}},"Account settings")))))},et=e=>{return(t="name",e=>e.slice().sort((e,n)=>e[t].localeCompare(n[t])))(e).reduce((e,t)=>"Church Center"===(t.name||"")||"API"===(t.name||"")?e:"Home"===t.name?[t,...e]:[...e,t],[]);var t},tt=e=>e.slice().sort((e,t)=>e.attributes.organization_name.localeCompare(t.attributes.organization_name)),nt=(e=(e=>e))=>s(ce.subscribe,()=>e(ce.getState())),at=["children","style"];function lt(e){let{children:n,style:a}=e,l=J(e,at);return t.createElement("nav",q({className:"simple","data-pendo":"topbar","aria-label":"topbar-navigation",style:q({MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",alignItems:"center",color:"white",display:"flex",height:"48px",position:"relative"},a)},l),t.createElement("style",null,"\n @media only print {\n .simple {\n display: none !important;\n }\n }\n "),n)}const rt={danger43:"hsl(8 60% 43%)",danger45:"hsl(8 60% 45%)",danger47:"hsl(8 60% 47%)",danger93:"hsl(9 59% 93%)",danger97:"hsl(7 60% 97%)",darkNeutral07:"hsl(0 0% 7%)",darkNeutral12:"hsl(0 0% 12%)",darkNeutral15:"hsl(0 0% 15%)",darkNeutral17:"hsl(0 0% 17%)",darkNeutral19:"hsl(0 0% 19%)",darkNeutral24:"hsl(0 0% 24%)",darkNeutral32:"hsl(0 0% 32%)",darkNeutral50:"hsl(0 0% 50%)",darkNeutral68:"hsl(0 0% 68%)",darkNeutral88:"hsl(0 0% 88%)",darkNeutral98:"hsl(0 0% 98%)",interaction45:"hsl(221 75% 45%)",interaction50:"hsl(221 91% 50%)",interaction55:"hsl(221 91% 55%)",interaction66:"hsl(221 91% 66%)",interaction91:"hsl(221 91% 91%)",interaction93:"hsl(221 91% 93%)",interaction97:"hsl(221 89% 97%)",lightNeutral12:"hsl(0 0% 12%)",lightNeutral24:"hsl(0 0% 24%)",lightNeutral45:"hsl(0 0% 45%)",lightNeutral62:"hsl(0 0% 62%)",lightNeutral81:"hsl(0 0% 81%)",lightNeutral88:"hsl(0 0% 88%)",lightNeutral93:"hsl(0 0% 93%)",lightNeutral95:"hsl(0 0% 95%)",lightNeutral97:"hsl(0 0% 97%)",lightNeutral98:"hsl(0 0% 98%)",lightNeutral100:"hsl(0 0% 100%)",success23:"hsl(86 91% 23%)",success25:"hsl(86 91% 25%)",success27:"hsl(86 91% 27%)",success91:"hsl(95 50% 91%)",success97:"hsl(93 53% 97%)",warning20:"hsl(42 100% 20%)",warning49:"hsl(42 84% 49%)",warning55:"hsl(42 84% 55%)",warning63:"hsl(42 84% 63%)",warning94:"hsl(42 84% 94%)",warning97:"hsl(42 84% 97%)"},ot=["style"],it=e=>{let{style:n=null}=e,a=J(e,ot);return t.createElement("div",q({style:q({alignSelf:"flex-end",display:"flex",position:"relative"},n)},a))},ct=({appName:e,connectedPeople:n,env:a,hasConnectedPeople:l,requestClearAppsCache:r,requestClearConnectedPeopleCache:o,requestSwitchConnectedPerson:i,requestUnlinkConnectedPeople:s,setUserMenuVisible:f,userMenuVisible:v})=>{const E=`${c(a)("login")}/logout`;return t.createElement(it,null,t.createElement(Ye,{component:Ge,onOutsideClick:()=>f(!1),cleanup:!v,style:q({color:"#525252",marginTop:"8px",maxHeight:"75vh",maxWidth:"320px",minWidth:"242px",overflow:"auto",right:0},v?{opacity:1,transition:"none",visibility:"visible"}:{opacity:0,transition:"all 120ms ease-in",visibility:"hidden"},{cursor:"default"})},t.createElement("div",null,l?t.createElement("div",{style:{alignItems:"center",backgroundColor:"#eee",display:"flex",lineHeight:"32px",padding:"0 16px"}},t.createElement("div",{style:q({},Ae,{color:"#666",fontSize:"12px",textTransform:"uppercase",whiteSpace:"nowrap"},xe)},"Linked Accounts"),t.createElement("div",{style:q({},Ae,{alignItems:"center",fontSize:"12px",textAlign:"right"})},t.createElement("a",{href:"",onClick:e=>{r(),o(),s(),e.preventDefault()},style:q({color:"#666",marginLeft:"64px",textDecoration:"none"},xe)},"unlink"))):t.createElement("noscript",null),t.createElement("style",null,"\n .NotSmallTopbar__connected-people-list > *:first-child > * { border-top-width: 0 !important }\n "),t.createElement("ul",{className:"NotSmallTopbar__connected-people-list",style:{listStyleType:"none",margin:0,padding:0}},tt(n).map(({id:n,attributes:a})=>t.createElement(We,{component:"li",key:n},t.createElement("a",{href:"",onClick:t=>{r(),o(),i(n,`${e}/`),t.preventDefault()},style:q({borderTop:"1px solid #ddd",color:"#444",display:"block",lineHeight:"48px",overflow:"hidden",paddingLeft:"16px",paddingRight:"16px",textDecoration:"none",textOverflow:"ellipsis",whiteSpace:"nowrap"},xe)},a.organization_name))))),t.createElement(d,null,l&&t.createElement(p,null),t.createElement("form",{method:"POST",action:E},t.createElement(m,{"data-turbolinks":!1,hover:{backgroundColor:rt.lightNeutral97},onClick:()=>{r(),o()},style:{padding:0},theme:!1,type:"submit",width:"100%"},t.createElement(u,{distribution:"space-between",alignment:"center",axis:"horizontal",grow:1,paddingHorizontal:2,paddingVertical:1.5,spacing:4},t.createElement(h,{color:rt.lightNeutral45,lineHeight:"24px"},"Log out"),t.createElement(g,{name:"general.intoBox",fill:rt.lightNeutral45})))))))},st=["active","component","hover","innerRef","style"],dt=e=>{let{active:n=null,component:a="div",hover:l=null,innerRef:r=null,style:o=null}=e,i=J(e,st);const[c,s]=t.useState(!1),[d,p]=t.useState(!1);return t.createElement(a,q({onMouseDown:()=>s(!0),onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),onMouseUp:()=>s(!1),style:q({},xe,o,d&&l,c&&n)},r&&{ref:r},i))},pt=({colors:e,orgName:n,requestConnectedPeopleFetch:a,setUserMenuVisible:l,showOrgName:r})=>t.createElement("div",{style:{cursor:"pointer",marginLeft:"16px",position:"relative",whiteSpace:"nowrap"},"data-pendo":"topbar-org-switcher"},t.createElement(dt,{component:"button",type:"button",style:q({WebkitAppearance:"none",alignItems:"center",appearance:"none",backgroundColor:e.base1,border:"none",borderRadius:"9999px",color:e.text||"#fff",cursor:"pointer",display:"flex",fontSize:"13px",lineHeight:"32px",outline:0,padding:0},ke),active:{backgroundColor:e.base3},hover:{backgroundColor:e.base2},onClick:()=>{l(e=>!e),a()}},t.createElement("div",{style:{marginLeft:8}}),r?t.createElement("div",{style:{fontSize:"13px",margin:"0 8px 0 8px",maxWidth:"240px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},n):t.createElement("div",{style:{margin:"0 4px 0 4px"}}),t.createElement("div",{style:{paddingRight:"8px"}},t.createElement(Le,{colors:e,style:{margin:"-3px"}})))),mt=["active","colors","style"],ut=e=>{const[n,a]=t.useState(!1),[l,r]=t.useState(!0),[o,i]=t.useState(!1),{hasConnectedPeople:c,notificationsEnabled:s}=nt();return t.createElement(lt,{style:q({paddingLeft:"8px",paddingRight:"16px"},e.style)},t.createElement(Qe,{env:e.env,appName:e.appName,apps:et(e.apps),visible:n,toggle:()=>a(e=>!e)}),t.createElement(Ue,{colors:e.colors,expanded:n,onClick:()=>{a(e=>!e),e.requestAppsFetch()},appName:e.appName}),t.createElement("div",{style:{margin:"12px"}}),l&&e.routes,t.createElement("div",{style:{margin:"auto"}}),!s&&e.notifications(),e.search({hideRoutes:()=>r(!1),showRoutes:()=>r(!0)}),t.createElement(pt,{colors:e.colors,orgName:e.orgName,requestConnectedPeopleFetch:e.requestConnectedPeopleFetch,setUserMenuVisible:i,showOrgName:e.showOrgName}),t.createElement(ct,{appName:e.appName,hasConnectedPeople:c,connectedPeople:e.connectedPeople,env:e.env,requestClearAppsCache:e.requestClearAppsCache,requestClearConnectedPeopleCache:e.requestClearConnectedPeopleCache,requestSwitchConnectedPerson:e.requestSwitchConnectedPerson,requestUnlinkConnectedPeople:e.requestUnlinkConnectedPeople,setUserMenuVisible:i,userMenuVisible:o}))};ut.defaultProps={notifications:()=>null,search:()=>null,showOrgName:!0,useDummyNotifications:!1};const ht=e=>{let{active:n,colors:a,style:l=null}=e,r=J(e,mt);const[o,i]=t.useState(!1),[c,s]=t.useState(!1);return t.createElement("a",q({style:q({backgroundColor:o&&c?a.base2:o||n?a.base1:"transparent",borderRadius:"9999px",color:a.text||"#fff",fontSize:"14px",fontWeight:600,lineHeight:"32px",marginRight:"4px",paddingLeft:"12px",paddingRight:"12px",textDecoration:"none",textTransform:"capitalize",verticalAlign:"middle",whiteSpace:"nowrap"},xe,ke,l),onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),onMouseDown:()=>s(!0),onMouseUp:()=>s(!1)},r))},gt=["style"],ft=["children","className","colors","style"];class vt extends t.Component{constructor(e){super(e),this.state={announcements:e.initialAnnouncements}}dismissAnnouncements(e){return this.setState(({announcements:t})=>{const n=t;return t[e]&&delete n[e],{announcements:n}}),Q(this.props.configuredFetch,`${c(this.props.env)("api")}/people/v2/me/platform_notifications/${e}/dismiss`,{method:"POST"})}render(){return t.createElement(t.Fragment,null,this.props.children({announcements:this.props.formatter(this.state.announcements)},{dismissAnnouncements:this.dismissAnnouncements.bind(this)}))}}vt.defaultProps={formatter:function(e){return function(e){const t=Object.keys(e);let n=t.length;const a=new Array(n);for(;n--;)a[n]=[t[n],e[t[n]]];return a}(e).map(e=>({data:e[1],id:e[0]}))}};class Et extends t.Component{render(){const e=this.props,{style:n}=e,a=J(e,gt);return t.createElement(he,{render:e=>t.createElement("div",q({style:q({alignItems:"center",display:"flex",justifyContent:"space-between",paddingBottom:14,paddingLeft:-1!==["xs","sm"].indexOf(e)?16:24,paddingRight:18,paddingTop:14},n)},a))})}}class bt extends t.Component{render(){const e=this.props,{children:n,colors:a,style:l}=e,r=J(e,ft);return t.createElement("div",q({className:["__Topbar_PlatformAnnouncements_link"].join(" ").trim(),style:q({backgroundColor:"#282828",color:"white",fontSize:"14px"},l)},r),t.createElement("style",null,`\n .__Topbar_PlatformAnnouncements_link { color: white }\n .__Topbar_PlatformAnnouncements_link a { color: ${a.base0} }\n .__Topbar_PlatformAnnouncements_link a:hover { color: ${a.base1} }\n .__Topbar_PlatformAnnouncements_link a:active { color: ${a.base2} }\n `),n)}}class yt extends t.Component{render(){return t.createElement(bt,{colors:this.props.colors},t.createElement(vt,{env:this.props.env,initialAnnouncements:this.props.data,configuredFetch:this.props.configuredFetch},(e,n)=>Boolean(e.announcements.length>0)?t.createElement("div",null,e.announcements.map(e=>this.props.renderItem({actions:n,announcement:e}))):null))}}function wt(e){let n=q({},(G(e),e));return t.createElement("button",q({type:"button",style:{WebkitAppearance:"none",backgroundColor:"transparent",borderWidth:0,cursor:"pointer",margin:-8,padding:8}},n),t.createElement(Oe,{fill:"white",style:{height:20,width:20}}))}function Ct(e){return t.createElement(Et,null,t.createElement("span",{dangerouslySetInnerHTML:{__html:e.html}}),t.createElement(wt,{onClick:e.onClick}))}yt.defaultProps={configuredFetch:K,renderItem:({announcement:e,actions:n})=>t.createElement(Ct,{key:e.id,html:e.data.html,onClick:()=>n.dismissAnnouncements(e.id)})};const kt=["colors","html","onClick"],xt=["children","className","colors","style"],At=["style"];function St(e){let{colors:n,html:a="",onClick:l=(e=>{})}=e,r=J(e,kt);const[o,i]=t.useState(!1);return o||!a?null:t.createElement(Zt,q({colors:n},r),t.createElement(Vt,null,t.createElement("span",{dangerouslySetInnerHTML:{__html:a}}),t.createElement(Nt,{onClick:e=>{l(e),i(!0)}})))}class Zt extends t.Component{render(){const e=this.props,{children:n,className:a,colors:l,style:r}=e,o=J(e,xt);return t.createElement("div",q({className:["Topbar_ProductAnnouncement",a].filter(Boolean).join(" ").trim(),style:q({backgroundColor:l.base1},r)},o),t.createElement("style",null,"\n .Topbar_ProductAnnouncement {\n color: white;\n font-size: 14px;\n }\n .Topbar_ProductAnnouncement a { color: white; font-weight: bold; }\n "),n)}}class Vt extends t.Component{render(){const e=this.props,{style:n}=e,a=J(e,At);return t.createElement(he,{render:e=>t.createElement("div",q({style:q({alignItems:"center",boxSizing:"border-box",display:"flex",justifyContent:"space-between",paddingBottom:14,paddingLeft:-1!==["xs","sm"].indexOf(e)?16:24,paddingRight:18,paddingTop:14},n)},a))})}}function Nt(e){let n=q({},(G(e),e));return t.createElement("button",q({type:"button",style:{WebkitAppearance:"none",backgroundColor:"transparent",borderWidth:0,cursor:"pointer",margin:-8,padding:8}},n),t.createElement(Oe,{fill:"white",style:{height:20,width:20}}))}const Mt=["env","url","style"];function Ht(e){let{env:n,url:a="",style:l}=e,r=J(e,Mt);const o=a||`${c(n)("people")}/static/no_photo_thumbnail_gray.svg`;return t.createElement("div",q({style:q({backgroundColor:"white",backgroundImage:`url(${o})`,backgroundPosition:"center",backgroundSize:"cover",borderRadius:"50%",height:"26px",marginLeft:"4px",width:"26px"},l)},r))}class Pt extends t.Component{update(e){return window[this.props.method].setItem(this.props.item,JSON.stringify(e)),this.forceUpdate()}render(){return t.createElement(t.Fragment,null,this.props.render(JSON.parse(window[this.props.method].getItem(this.props.item))||void 0,this.update.bind(this)))}}function zt({env:e}){const n="accounts";return t.createElement("a",{style:{alignItems:"center",display:"flex",height:"48px",paddingLeft:"12px",paddingRight:"16px",textDecoration:"none"},"data-pendo":`app-switcher--change-app--${n}`,"data-turbolinks":!1,href:c(e)(n)+Be(n)},t.createElement("svg",{height:22,style:{display:"block",marginRight:"2px"},viewBox:"0 0 20 20",width:22,xmlns:"http://www.w3.org/2000/svg"},t.createElement(fe,{color:rt.lightNeutral45,key:"key2"})),t.createElement("div",{style:{color:rt.lightNeutral45,fontSize:"12px",lineHeight:"48px",textDecoration:"none"}},"Account settings"))}Pt.defaultProps={method:"localStorage"};const Lt=({color:e=rt.lightNeutral100,size:n=22,style:a={}})=>t.createElement("div",{style:a},t.createElement(Oe,{fill:e,style:{height:`${n}px`,width:`${n}px`}}));function Tt({env:e,appName:t,userId:n}){var a,l,r;const o=c(e)("login")+`/people/AC${n}`,i=null==(a=window)||null==(l=a.location)||null==(r=l.pathname)?void 0:r.toString();if(!i)return o;const s=new URLSearchParams;return s.append("return",`${t}/${i}`),`${o}?${s.toString()}`}const _t=({isActive:e})=>{const n=e?"hsl(86, 91%, 27%)":"hsl(8, 60%, 47%)";return t.createElement("div",{style:{alignItems:"center",display:"flex",fontSize:"13px",marginBottom:2,marginTop:4}},t.createElement("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none"},t.createElement("path",e?{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",fill: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",fill:n})),t.createElement("span",{style:{color:"#888",marginLeft:4,whiteSpace:"nowrap"}},"Two-step verification ",e?"active":"inactive"))},{generateColorScale:Ot}=f,It={colors:q({},Ot({baseColor:"#2266f7",key:"primary"})),icons:{churchCenter:N,general:M,people:H,toolbar:P},id:"topbar"};function $t({appName:e,connectedPeople:n,env:a,hasConnectedPeople:l,linkToProfile:r,mfaConfigured:o,mfaEnabled:i,requestClearAppsCache:s,requestClearConnectedPeopleCache:p,requestSwitchConnectedPerson:g,requestUnlinkConnectedPeople:f,setUserMenuVisible:y,userAvatarPath:w,userId:C,userName:k}){return t.createElement(d,{theme:It},t.createElement(u,{axis:"vertical",width:"100%"},t.createElement(u,{axis:"horizontal",alignItems:"start",distribution:"space-between"},t.createElement(u,{axis:"horizontal",spacing:2,padding:2,paddingRight:0,shrink:1},t.createElement(u,{shrink:0},t.createElement(Ht,{env:a,url:w,style:{height:48,width:48}})),t.createElement(u,{spacing:1,shrink:1},t.createElement(h,{color:rt.lightNeutral24,weight:700,truncate:!0},k),r&&t.createElement(v,{as:"a",href:`/people/AC${C}`,color:rt.lightNeutral45,underline:!1},"My profile"),i&&t.createElement(v,{as:"a",href:Tt({appName:e,env:a,userId:C}),color:rt.lightNeutral45,underline:!1},"My login settings",t.createElement(_t,{isActive:o})),t.createElement("form",{method:"POST",action:`${c(a)("login")}/logout`},t.createElement(m,{color:rt.lightNeutral45,"data-turbolinks":!1,onClick:()=>{s(),p()},type:"submit"},"Log out")))),t.createElement(m,{color:rt.lightNeutral45,icon:"general.x",onClick:()=>y(!1),padding:2,variant:"naked",title:"Close Menu"})),l&&t.createElement(t.Fragment,null,t.createElement(u,{backgroundColor:rt.lightNeutral95,paddingVertical:1.5,paddingHorizontal:2,marginTop:1,borderBottom:`1px solid ${rt.lightNeutral88}`},t.createElement(E,{color:rt.lightNeutral62,fontWeight:500},"Linked Accounts")),t.createElement(b,{dividerColor:rt.lightNeutral88,width:"100%"},tt(n).map(({id:n,attributes:a})=>t.createElement(b.Item,{key:n,onClick:t=>{s(),p(),g(n,`${e}/`),t.preventDefault()},color:rt.lightNeutral45,padding:2},t.createElement(h,{truncate:!0},a.organization_name))),t.createElement(b.Item,{onClick:e=>{s(),p(),f(),e.preventDefault()},color:rt.danger47,padding:2,underline:!1},t.createElement(h,{size:3},"Unlink my accounts"))))))}const Rt=["active"],Ut=({appName:e})=>{const n=e.replace(/[\s-]/,"");return t.createElement("div",{style:{alignItems:"center",display:"flex"}},t.createElement("div",{style:{marginRight:"6px"}},t.createElement(je,{appName:n,size:20})),t.createElement(Ce,{appName:n,color:rt.lightNeutral24,size:18}))},Dt=e=>{var n,a;const[l,r]=t.useState(!1),[o,i]=t.useState(!1),[s,d]=t.useState(!1),{hasConnectedPeople:p,mfaConfigured:m,mfaEnabled:u,userId:h,name:g}=nt(),f=e.colors,v=e.routes.filter(({props:{active:e}})=>e)||[],E=e.currentRouteComponent,b=v&&v[0]&&v[0].props&&v[0].props.children||e.appName,y=e.apps.find(({name:e})=>"Accounts"===e),w=e.apps.find(({name:e})=>"Home"===e),C=[...e.apps].filter(({name:e})=>"Home"!==e&&"Accounts"!==e),k=rt.lightNeutral88;return t.useEffect(()=>{r(!1)},[v&&(null==(n=v[0])||null==(a=n.props)?void 0:a.href)]),t.createElement(lt,{style:q({},e.style)},t.createElement("div",{style:{alignItems:"center",display:"flex",height:"48px",justifyContent:"center",paddingLeft:"16px",paddingRight:"16px"},onClick:()=>{e.requestAppsFetch(),e.requestConnectedPeopleFetch(),r(!1),i(e=>!e)}},t.createElement(ye,{appName:e.appName.replace(/[\s-]/,""),colors:f,size:26})),t.createElement("div",{style:{left:0,position:"absolute",top:"48px",width:"100%"}},l&&e.routes),t.createElement(Pt,{item:"Topbar:Small:Menus:Products:visibility",render:()=>t.createElement("div",{style:{MozUserSelect:"none",WebkitTapHighlightColor:"transparent",WebkitUserSelect:"none",backgroundColor:ne(rt.lightNeutral12,.75),bottom:0,color:"black",display:o?"block":"none",left:0,msUserSelect:"none",position:"fixed",right:0,top:0,userSelect:"none"},onClick:()=>{i(e=>!e),d(!1)}},t.createElement(Lt,{style:{position:"absolute",right:"17px",top:"12px"}}),t.createElement("div",{onClick:e=>{const{forcePropagation:t}=e;t||e.stopPropagation()},style:{backgroundColor:rt.lightNeutral100,borderRight:`1px solid ${k}`,display:"flex",flexDirection:"column",height:"calc(100% - 52px - env(safe-area-inset-bottom))",position:"relative",width:"calc(100% - 57px)"}},t.createElement("div",{style:{alignItems:"center",backgroundColor:rt.lightNeutral98,borderBottom:`1px solid ${k}`,display:"flex",height:"48px",paddingLeft:"16px",paddingRight:"16px"}},t.createElement("div",{style:q({},Ae)},t.createElement("a",{style:{alignItems:"center",display:"flex",height:"48px",paddingRight:"16px"},"data-pendo":`app-switcher--change-app--${null==w?void 0:w.name}`,"data-turbolinks":!1,href:w?c(e.env)("accounts")+Be(null==w?void 0:w.name):void 0},t.createElement("div",{style:{alignItems:"center",display:"flex"}},t.createElement(Ut,{appName:w?w.name:e.appName}))))),t.createElement("div",{style:q({},Ae,{WebkitOverflowScrolling:"touch",overflowY:"scroll"})},t.createElement("ul",{"data-pendo":"app-switcher",style:{margin:0,padding:0}},et(C).map(({name:n},a)=>{const l=0===a,r=a===et(C).length-1;return t.createElement("li",{key:n,style:{listStyleType:"none"}},t.createElement("a",{style:{alignItems:"center",display:"flex",height:"40px",paddingBottom:r?"4px":0,paddingLeft:"16px",paddingRight:"16px",paddingTop:l?"4px":0},"data-pendo":`app-switcher--change-app--${n}`,"data-turbolinks":!1,href:c(e.env)("accounts")+Be(n)},t.createElement(Ut,{appName:n})))})),y&&t.createElement("div",{style:{borderTop:`1px solid ${k}`}},t.createElement(zt,{env:e.env})))))}),t.createElement("div",{style:q({},Ae,{fontWeight:600,lineHeight:"48px",textAlign:"center"}),onClick:e.routes.length>0?()=>{i(!1),r(e=>!e)}:null},t.createElement(E,null,(x=b).charAt(0).toUpperCase()+x.slice(1)),e.routes.length>0&&t.createElement(Le,{colors:f,style:{marginLeft:"4px",verticalAlign:"middle"}})),t.createElement("button",{onClick:()=>d(!s),style:{background:"none",border:"none",margin:"0 12px",padding:0}},t.createElement(Ht,{env:e.env,url:e.userAvatarPath})),t.createElement("div",{style:{MozUserSelect:"none",WebkitTapHighlightColor:"transparent",WebkitUserSelect:"none",bottom:0,color:"black",display:s?"block":"none",left:0,msUserSelect:"none",position:"fixed",right:0,top:0,userSelect:"none"}},t.createElement("div",{onClick:e=>e.stopPropagation(),style:{WebkitOverflowScrolling:"touch",backgroundColor:"#fff",display:"flex",flexDirection:"column",height:"100%",overflowY:"scroll",position:"relative",width:"100%"}},t.createElement($t,{appName:e.appName,env:e.env,connectedPeople:e.connectedPeople,hasConnectedPeople:p,linkToProfile:e.linkToProfile,mfaConfigured:m,mfaEnabled:u,requestClearAppsCache:e.requestClearAppsCache,requestClearConnectedPeopleCache:e.requestClearConnectedPeopleCache,requestSwitchConnectedPerson:e.requestSwitchConnectedPerson,requestUnlinkConnectedPeople:e.requestUnlinkConnectedPeople,setUserMenuVisible:d,userAvatarPath:e.userAvatarPath,userId:h,userName:g}))));var x};Dt.defaultProps={currentRouteComponent:e=>t.createElement("span",q({},e)),linkToProfile:!0};const jt=e=>{let{active:n}=e,a=J(e,Rt);return t.createElement("a",q({style:q({backgroundColor:"#444",borderBottom:"1px solid #333",color:"#fff",display:"block",fontWeight:600,lineHeight:"47px",position:"relative",textAlign:"center",textDecoration:"none",textTransform:"capitalize",whiteSpace:"nowrap"},xe,n&&{backgroundColor:"#333"})},a))},Bt={domain:window.location.host.split(".").slice(-2).join("."),"max-age":2592e3},Ft=Object.entries(Bt).map(([e,t])=>`${e}=${t}`).join("; ");function Wt({bottom:e="auto",children:n,hasShadow:a=!1,height:l="100%",id:r="toolbarDrawer",overflow:o="visible",position:i="absolute",width:c="100%"}){return t.createElement(u,q({backgroundColor:"surface",boxShadow:a&&open?"0 4px 12px rgba(0, 0, 0, 0.25)":null,left:0,position:"absolute",zIndex:1},{bottom:e,height:l,id:r,overflow:o,position:i,width:c}),n)}function qt({children:e,closeDrawer:n}){return t.createElement(u,{alignment:"start",axis:"horizontal",color:"foreground",distribution:"space-between",padding:2,paddingTop:1},t.createElement(y,{flex:1},e),n&&t.createElement(m,{icon:{fill:rt.lightNeutral12,name:"general.x",size:"md"},onClick:()=>n(),title:"Close",theme:!1,hover:{backgroundColor:rt.lightNeutral93},marginTop:.25}))}const Gt=["children"];function Jt(e){let{children:n}=e,a=J(e,Gt);return t.createElement(w,q({},a,{color:rt.lightNeutral12,letterSpacing:".002em",level:2,lineHeight:"35px",weight:700}),n)}const Xt=e=>t.createElement(y,q({backgroundColor:rt.interaction66,height:1.5,pointerEvents:"none",position:"absolute",radius:"50%",width:1.5,zIndex:6},e)),Kt=["children"],Yt={bottom:{background:"linear-gradient(rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.07))",bottom:0},top:{background:"linear-gradient(rgba(0, 0, 0, 0.07), rgba(255, 255, 255, 0))",top:0}},Qt=e=>{let{children:l}=e,r=J(e,Kt);const[i,c]=a(!1),[s,d]=a(!1),p=o(null),m=o(null),h=o(null),g=()=>{const e=null==p?void 0:p.current;e&&d(e.scrollHeight-e.clientHeight>e.scrollTop+1)};return n(()=>{const e=null==p?void 0:p.current;if(!e)return()=>{};d(e.scrollHeight>e.clientHeight);const t={root:e,threshold:1},n=new IntersectionObserver(([{isIntersecting:e}])=>d(!e),t),a=new IntersectionObserver(([{isIntersecting:e}])=>c(!e),t),l=null==m?void 0:m.current,r=null==h?void 0:h.current;l&&n.observe(l),r&&a.observe(r);const o=new ResizeObserver(g);return o.observe(e),()=>{l&&n.unobserve(l),r&&a.unobserve(r),o.unobserve(e)}},[]),t.createElement(u,{grow:1,position:"relative",shrink:1},i&&t.createElement(en,{edge:"top"}),s&&t.createElement(en,{edge:"bottom"}),t.createElement(u,q({basis:2,grow:1,innerRef:p,overflow:"auto",role:"region",shrink:1,css:{overscrollBehavior:"contain"}},r),t.createElement(y,{innerRef:h}),l,t.createElement(y,{innerRef:m})))},en=({edge:e})=>t.createElement(y,q({height:1,left:0,pointerEvents:"none",position:"absolute",right:0,role:"presentation",zIndex:10},Yt[e])),tn=({activeIndex:e,children:n})=>{const a=t.Children.count(n),l=e<0?0:e>a-1?a-1:e;return t.createElement(u,{grow:1,overflow:"hidden",position:"relative"},t.Children.map(n,(n,a)=>{const r=a===l;return t.createElement(u,{"aria-hidden":!r,visibility:r?"visible":"hidden",height:"100%",key:a,opacity:r?1:0,pointerEvents:r?"auto":"none",position:"absolute",top:0,width:"100%",transform:r?"translateX(0)":a<e?"translateX(-100px)":"translateX(100px)",transition:"visibility 100ms 50ms ease-in-out, transform 200ms ease-in-out, opacity 100ms 50ms ease-in-out"},n)}))};var nn;!function(e){e.close="close",e.mount="mount",e.open="open",e.unmount="unmount"}(nn||(nn={}));const an={currentContent:null,open:!1},ln=(e,t)=>{switch(t.type){case nn.mount:return q({},e,{currentContent:t.payload.content});case nn.unmount:return q({},e,{currentContent:null});case nn.open:return q({},e,{open:!0});case nn.close:return q({},e,{open:!1})}},rn=({sectionName:e,currentAppName:n})=>{const a=e.toLowerCase();return"account information"===a||"recent updates"===a?t.createElement(g,{name:"account information"===a?"general.cogPerson":"general.outlinedGenericFile",color:"foregroundSecondary"}):"Accounts"===n?t.createElement(g,{name:"general.cog",color:"foregroundSecondary"}):t.createElement(u,{width:2,height:2},t.createElement(A,{name:n.toLowerCase().replace(/[\s]/,"-"),size:"sm",theme:"color",markOnly:!0}))},on=({hit:e,index:n})=>t.createElement(x.Item,{key:e.objectID,index:n,value:e,paddingVertical:1},t.createElement(h,{color:"neutralDarker",size:4,whiteSpace:"normal"},e.title)),cn=({currentAppName:e,indexName:n})=>{const{query:a,refine:l}=R(),{hits:r,results:o}=U(),i=null==o?void 0:o.hits.reduce((e,t)=>{const n=t.category.title;return e[n]||(e[n]=[]),e[n].push(t),e},{});let c=0;return t.createElement(u,{id:"helpdesk-search",position:"relative"},t.createElement(x.Popover,{renderTo:"#helpdesk-search",popoverProps:{zIndex:2},placeholder:"Search our documentation",value:a,renderRight:t.createElement(g,{name:"general.search"}),onChange:e=>l(e.target.value),onSelect:e=>((e,t)=>{const n=t.split("_")[1],a=window.open(`https://${n}.zendesk.com/hc/${e.locale.locale}/articles/${e.id}`,"_blank");a&&a.focus()})(e,n),placement:"bottom-start"},!r.length&&t.createElement(t.Fragment,null,t.createElement(u,{axis:"horizontal",alignment:"center",paddingHorizontal:2,paddingVertical:1},t.createElement(h,{color:"neutralDarker",size:4,whiteSpace:"normal"},"No results match your search"))),i&&Object.keys(i).map(n=>{const a=i[n];return t.createElement(t.Fragment,{key:n},c>0&&t.createElement(p,{margin:1}),t.createElement(u,{axis:"horizontal",alignment:"center",spacing:.5,paddingHorizontal:2,paddingVertical:1},t.createElement(rn,{currentAppName:e,sectionName:n}),t.createElement(h,{size:5,color:"foregroundSecondary",fontWeight:500},n)),a.map(e=>t.createElement(on,{key:e.objectID,hit:e,index:c++})))})))},sn=({indexName:e,currentAppName:n})=>{const{algoliaSearchAuth:{algoliaApplicationId:a,algoliaSearchOnlyApiKey:l}}=nt(),r=$(a,l);return t.createElement(D,{indexName:e,searchClient:r},t.createElement(j,{hitsPerPage:5}),t.createElement(cn,{currentAppName:n,indexName:e}))},{LoadingIndicator:dn,StackView:pn}=L,mn={component:function({appName:e,closeDrawer:n,env:a,helpdeskConfig:l}){const r=`${c(a)("helpdesk")}/addons/toolbar.helpdesk.help`;return t.createElement(z,{grow:1,display:"flex",extensionId:"11",url:r,loadingFallback:t.createElement(pn,{flex:1,axis:"vertical"},t.createElement(qt,{closeDrawer:n},t.createElement(pn,{axis:"horizontal",spacing:1},t.createElement(Jt,null,"Help and support"),t.createElement(dn,null)))),additionalComponents:{CalendlyWidget:I,DocumentationSearch:sn,DrawerHeader:qt,DrawerHeading:Jt,ScrollContainer:Qt,SwitchView:tn},args:{appName:e,closeDrawer:n,currentPageParams:location.search,helpdeskConfig:l},componentVersion:"5"})},icons:{active:"general.questionCircle",static:"general.outlinedQuestionCircle"},name:"Helpdesk"},un=["dark","style"],hn=e=>{let{dark:n,style:a}=e,l=J(e,un);return t.createElement("div",q({style:q({color:n?rt.lightNeutral62:rt.lightNeutral24,fontSize:"12px",fontWeight:400,textTransform:"uppercase"},a)},l))},gn=({isRead:e=!1,onClick:l})=>{const r=t.useRef(null),o=function(e){const[t,l]=a(!1),r=()=>l(!0),o=()=>l(!1);return n(()=>{const t=null==e?void 0:e.current;if(t)return t.addEventListener("mouseenter",r),t.addEventListener("mouseleave",o),()=>{t.removeEventListener("mouseenter",r),t.removeEventListener("mouseleave",o)}},[e]),t}(r);return t.createElement("div",q({ref:r,style:{alignItems:"center",display:"flex",height:"12px",justifyContent:"center",width:"12px"}},{onClick:l}),t.createElement("svg",{height:"12",viewBox:"0 0 12 12",width:"12"},t.createElement("title",null,"unread dot"),t.createElement("circle",{cx:"6",cy:"6",fill:o?rt.interaction66:rt.lightNeutral81,r:"6",style:{transition:"all 0.2s"}}),t.createElement("circle",{cx:"6",cy:"6",fill:rt.lightNeutral100,r:"5"}),!e&&t.createElement("circle",{cx:"6",cy:"6",r:"4",fill:rt.interaction66})))},fn=({mobile:e=!1,isLast:n,onCreateTask:a,onMarkAsRead:l=(async()=>Promise.resolve({})),onToggleRead:r,showBottomBorder:o,notification:i})=>{const{appName:c,createdAt:s,isRead:d,link:p,title:m}=i,{organizationTimeZone:u,notificationsContextMenu:h}=nt(),[g,f]=t.useState(!1),v={style:"relative"};return u&&(v.timeZone=u),t.createElement(We,{active:g,"data-turbolinks":!1,href:p,onClick:async e=>{f(!0),await l(i),window.location.href=p},style:q({alignItems:"flex-start",borderBottom:o||!n?`1px solid ${e?rt.lightNeutral24:rt.lightNeutral93}`:"none",cursor:"pointer",display:"flex",overflow:"hidden",padding:"12px 16px",textDecoration:"none",verticalAlign:"middle"},xe)},t.createElement("div",{style:{display:"flex",flexDirection:"column",flexGrow:1,justifyContent:"center"}},t.createElement("div",{style:{alignItems:"center",borderLeft:`4px solid hsl(${{Calendar:"9 61% 50%","Check-Ins":"283 22% 48%",Giving:"43 88% 64%",Groups:"17 96% 62%",People:"220 74% 57%",Publishing:"220 12% 31%",Registrations:"175 36% 43%",Services:"88 45% 41%"}[c]||"0 0% 81%"} / ${d?"40%":"100%"}`,display:"flex",marginBottom:"10px",paddingLeft:"8px"}},t.createElement("div",{style:{flexGrow:1,marginRight:"16px"}},t.createElement(hn,{dark:e,style:{marginBottom:"6px",userSelect:"none"}},c),t.createElement("h1",{style:{color:e?rt.lightNeutral88:rt.darkNeutral12,fontSize:"16px",fontWeight:500,lineHeight:"1.3em",margin:0,userSelect:"none"}},m)),!e&&!h&&t.createElement(gn,q({onClick:e=>{e.preventDefault(),e.stopPropagation(),r()}},{isRead:d})),!e&&h&&t.createElement(S,{icon:{name:"general.threeDots"},title:"More options",variant:"naked",iconRight:null,placement:"bottom-end",onClick:e=>{e.stopPropagation()}},t.createElement(S.Item,{onClick:e=>{e.preventDefault(),e.stopPropagation(),r()}},"Mark ",d?"unread":"as read"),i.taskUrl?t.createElement(S.Item,{onClick:e=>{e.preventDefault(),e.stopPropagation(),window.location.href=i.taskUrl}},"Open task"):t.createElement(S.Item,{onClick:e=>{e.preventDefault(),e.stopPropagation(),a(i)}},"Create task"))),t.createElement("div",{style:{color:e?rt.lightNeutral62:rt.lightNeutral24,fontSize:"12px",paddingLeft:"12px",userSelect:"none"}},W.datetime(s,v))))},vn=({context:e,dark:n=!1,description:a,title:l="No notifications"})=>t.createElement(u,{alignment:"center",distribution:"center",padding:4},t.createElement(ze,q({id:e},{dark:n})),t.createElement(w,{color:n?"#fafafa":"#3d3d3d",fontWeight:500,marginTop:1,size:3},l),t.createElement(h,{align:"center",color:n?"#fafafa":"#3d3d3d",size:4},a)),En=(e,t)=>{var n,a,l,r,o,i,c,s;const d=({type:e,id:t},n)=>n.find(n=>n.type===e&&n.id===t),p=null==(n=d(e.relationships.app.data,t.included))||null==(a=n.attributes)?void 0:a.name,m=JSON.parse(null==(l=d({id:null==e||null==(o=e.relationships)||null==(i=o.web_payloads)||null==(c=i.data[0])?void 0:c.id,type:"Payload"},t.included))||null==(r=l.attributes)?void 0:r.content);return{appName:p,createdAt:new Date(e.attributes.created_at),id:e.id,isRead:(null==(s=e.attributes.read_at)?void 0:s.length)>0,link:null==m?void 0:m.link,title:null==m?void 0:m.title}},bn=["disabled","onClick","title"],yn=e=>{let{disabled:n,onClick:a,title:l}=e,r=J(e,bn);return t.createElement(u,q({color:n?rt.lightNeutral62:rt.interaction66,cursor:n?"default":"pointer",fontSize:5,fontWeight:600,userSelect:"none",onClick:!n&&a},r),l)},wn=e=>{let n=q({},(G(e),e));return t.createElement(w,q({color:rt.lightNeutral12,lineHeight:2,size:5,textTransform:"uppercase",userSelect:"none"},n))},Cn={component:function({closeDrawer:e}){const[n,a]=t.useState(!1),l={transition:"opacity 300ms ease-in-out"},o={entered:{opacity:1},entering:{opacity:.2}},{env:i,enabled:s,joltChannel:d}=ce.getState().notifications,{handleCreateTask:p,handleMarkAllAsRead:m,handleMarkAsRead:h,handleToggleRead:g,hasError:f,isLoading:v,read:E,unread:b}=(({enabled:e,env:n,joltChannel:a})=>{const[l,o]=t.useState([]),[i,s]=t.useState(!0),[d,p]=t.useState(!1),{read:m,unread:u}=(e=>{const{read:t,unread:n}=[...e].sort((e,t)=>e.createdAt<t.createdAt?1:-1).reduce((e,t)=>q({},e,t.isRead?{read:[...e.read,t]}:{unread:[...e.unread,t]}),{read:[],unread:[]});return{read:t,unread:n}})(l),h=()=>{try{p(!1),Q(K,`${window.location.origin}/~api/notifications/v2/me/notifications?include=app,web_payloads&per_page=100&order=read_at,-created_at`).then(({json:e})=>{const t=e.data.map(t=>En(t,e));s(!1),o(t)})}catch(e){p(!0),console.error("topbar encountered error when fetching all notifications",e)}};t.useEffect(()=>{e&&h()},[e]);const g=e=>"string"==typeof e.data?JSON.parse(e.data):e.data,f=t.useCallback(e=>{try{(async e=>{try{return p(!1),Q(K,`${window.location.origin}/~api/notifications/v2/me/notifications/${e}?include=app,web_payloads`).then(({json:e})=>e)}catch(e){p(!0),console.error("topbar encountered error when fetching a single notification",e)}})(g(e).data.id).then(e=>{const t=En(e.data,e);o(e=>[...e.filter(e=>e.id!==t.id),t])})}catch(e){console.error("topbar encountered error when updating state from jolt message",e)}},[En,g,h,m,o,u]),v=t.useCallback(e=>{const t=g(e),n=l.filter(e=>e.id!==t.data.id);o(n)},[g,l,o]);te(e?a:void 0,"notifications.v2.events.notification.created",f),te(e?a:void 0,"notifications.v2.events.notification.updated",f),te(e?a:void 0,"notifications.v2.events.notification.destroyed",v);const E=async(e,t)=>{const a=e.reduce((e,n)=>[...e,{attributes:{action:t},id:n,type:"graph_notification"}],[]);return Q(Y,`${c(n)("api")}/notifications/v2/me/bulk_update`,{data:{data:{attributes:{},relationships:{notifications:{data:{source:"/included/graph_notification/*"}}},type:"BulkUpdate"},included:a},method:"POST"}).then(t=>{t.ok||(s(!1),p(!0),o(t=>t.map(t=>e.includes(t.id)?q({},t,{isRead:!t.isRead}):t)))})},b=r(async e=>Q(Y,`${c(n)("api")}/home/v2/me/task_lists/inbox/tasks`,{data:{data:{attributes:{description:e.link?`<a href="${e.link}">Link</a>`:void 0,title:e.title}}},method:"POST"}).then(t=>{t.ok&&o(n=>n.map(n=>e.id===n.id?q({},n,{taskUrl:t.json.data.links.html}):n))}),[]);return{handleCreateTask:b,handleMarkAllAsRead:()=>{const e=u.map(e=>e.id);o(t=>t.map(t=>e.includes(t.id)?q({},t,{isRead:!0}):t)),E(u.map(e=>e.id),"read")},handleMarkAsRead:async e=>E([e.id],"read"),handleToggleRead:async e=>{const t=e.isRead?"unread":"read";return o(n=>n.map(n=>e.id==n.id?q({},n,{isRead:"read"===t}):n)),E([e.id],t)},hasError:d,isLoading:i,read:m,unread:u}})({enabled:s,env:i,joltChannel:d});return t.createElement(t.Fragment,null,t.createElement(qt,{closeDrawer:e},t.createElement(u,{spacing:.5},t.createElement(u,{alignment:"center",axis:"horizontal",spacing:1},t.createElement(Jt,null,"Notifications"),v&&t.createElement(Z,{color:"hsl(0 0% 62%)",thickness:2,trackColor:"hsl(0 0% 97%)"}),f&&t.createElement(Te,{fill:"hsl(8 60% 47%)",size:16})),E.length>0&&t.createElement(yn,{onClick:()=>a(e=>!e),title:(n?"Hide":"Show")+" read"}))),t.createElement(Qt,null,t.createElement(u,{alignment:"stretch",spacing:2},t.createElement("div",{style:{boxSizing:"border-box",display:"flex",flexDirection:"column",justifyContent:"space-between",margin:0,padding:"4px 0"}},!v&&0===b.length&&t.createElement(vn,q({context:"toolbar",description:`When you have ${E.length>0?"unread ":""}notifications they will show up here.`},E.length>0&&{title:"No unread notifications"})),b.length>0&&t.createElement(u,{axis:"horizontal",alignment:"center",distribution:"space-between",padding:2},t.createElement(wn,null,"Unread"),b.length>0&&t.createElement(yn,{onClick:()=>m(),title:`Mark ${b.length} as read`})),t.createElement(B,{exit:!1},b.map((e,n)=>t.createElement(F,{key:e.id,timeout:0},a=>t.createElement("div",{style:q({},l,o[a])},t.createElement(fn,q({isLast:b.length===n+1,key:e.id,onMarkAsRead:h,onToggleRead:()=>g(e),onCreateTask:p,showBottomBorder:E.length>0},{notification:e})))))),E.length>0&&n&&t.createElement(t.Fragment,null,t.createElement(wn,{padding:2},"Read"),t.createElement(B,{exit:!1},E.map(e=>t.createElement(F,{key:e.id,timeout:0},n=>t.createElement("div",{style:q({},l,o[n])},t.createElement("div",{style:{opacity:.6}},t.createElement(fn,q({key:e.id,onToggleRead:()=>g(e),onCreateTask:p,showBottomBorder:!0},{notification:e}))))))))))))},icons:{active:"toolbar.notification",static:"toolbar.notificationO"},name:"Notifications"};function kn(){const e=document.head.querySelectorAll('meta[property^="pco:"]'),t={};return e.forEach(e=>{const n=e.getAttribute("property");var a;t[n.substring("pco:".length)]="boolean"===(a=e).getAttribute("datatype")?"true"===a.content||"1"===a.content:a.content}),t}const xn=ie(kn()),An=new MutationObserver(()=>{const e=xn.getState(),t=kn();le(e,t)||xn.setState(t)});let Sn=!1;const Zn=["children","badge","onClick"],{LoadingIndicator:Vn,StackView:Nn}=L;function Mn(e){let{children:n,badge:a,onClick:l}=e,r=J(e,Zn);return t.createElement(u,q({as:"button",axis:"horizontal",distribution:"space-between",alignment:"center",paddingBottom:.75,onClick:()=>l(),spacing:1},r),n,a&&t.createElement(V,q({size:"sm",fontWeight:"600"},a)))}const Hn={component:function({closeDrawer:e,enableJoltLogging:n,env:l,isOpen:o,joltPromise:i,onReceiveWorker:d,openDrawer:p,currentPath:m,onChangePath:u}){const h=(Sn||(Sn=!0,An.observe(document.head,{attributes:!0,childList:!0,subtree:!0})),s(xn.subscribe,()=>xn.getState())),g=`${c(l)("home")}/addons/toolbar.tasks.list.js`,[f,v]=a(),[E,b]=a(),y=ee({channelName:null==E?void 0:E.channelName,enableJoltLogging:n,enabled:!!E,env:l,fetchSubscribeToken:async e=>{const t=E.subscribeUrl;return(await Q(Y,t,{data:{data:{attributes:{connection_id:e}}},method:"POST"})).json.data.id},joltPromise:i}),w=r(e=>{v(q({},e,{timestamp:(new Date).getTime()}))},[]);te(y,"",w);const C=r((e,t={})=>{var n;if(null==(n=window)||!n.pendo)return console.warn("`window.pendo` is undefined");window.pendo.track(e,t)},[]);return t.createElement(z,{grow:1,display:"flex",extensionId:"2",url:g,onReceiveWorker:d,loadingFallback:t.createElement(Nn,{flex:1,axis:"vertical"},t.createElement(qt,{closeDrawer:e},t.createElement(Nn,{axis:"horizontal",spacing:1},t.createElement(Jt,null,"To do"),t.createElement(Vn,null)))),additionalComponents:{DrawerHeader:qt,DrawerHeading:Jt,NavLinkWithBadge:Mn,ScrollContainer:Qt,SwitchView:tn},args:{closeDrawer:e,currentPath:m,isOpen:o,latestJoltMessage:f,onChangePath:u,openDrawer:p,pcoMeta:h,requestJoltChannel:b,trackPendo:C},componentVersion:"5"})},icons:{active:"toolbar.checklist",static:"toolbar.checklistO"},name:"Tasks"},Pn={Chat:_,Notifications:Cn,Tasks:Hn},zn=Object.fromEntries(Object.entries(Pn).map(([e,t])=>[e.toLowerCase(),t]));function Ln({appName:o,autoMountTool:i,enableJoltLogging:s,env:f,helpdeskConfig:E={},linkToProfile:b=!0,userAvatarPath:x,userName:A,onReceiveTasksWorker:S}){const[Z,V,N]=function(){const e="toolbar",[t,o]=function(e){const t=l(()=>new RegExp(`${e}=([^&]+)`),[e]),o=r(e=>{const n=e.match(t);return n?n[1]:null},[t]),[i,c]=a(()=>o(location.hash)),s=r(e=>{c(o(e))},[]);return n(()=>{function e(){s(location.hash)}return window.addEventListener("hashchange",e),()=>window.removeEventListener("hashchange",e)},[s]),[i,s]}(e),i=r((t,n="")=>{const a=`#${e}=${t}/${n}`;history.replaceState(void 0,void 0,a),o(a)},[o]);return[l(()=>{if(t){const[e,...n]=t.split("/");return{path:n.join("/"),tool:e}}return null},[t]),i,r(()=>{history.replaceState(void 0,void 0,"#"),o("")},[])]}(),[M,H]=function(e){const[t,n]=function(e){const[t,n]=a(()=>function(e){const t=document.cookie.split(";").map(e=>e.trim()).find(t=>t.startsWith(`${e}=`));return t&&decodeURIComponent(t.split("=")[1])}(e));return[t,r(t=>{document.cookie=`${e}=${encodeURIComponent(t)}; ${Ft}`,n(t)},[e])]}("topbarToolbarToolState");return[l(()=>{if(!t)return{};try{return JSON.parse(t)}catch(e){return{}}},[t]),r(e=>n(JSON.stringify(e)),[n])]}(),P=i?Pn[i]:null,[z,L]=e.useReducer(ln,q({},an,{currentContent:P})),{currentContent:I,open:$}=z,R=!!I,{chatEnabled:U,hasConnectedPeople:D,indicatorVisible:j,joltPromise:B,userId:F}=nt();t.useEffect(()=>{$?(document.body.style.overflow="hidden",window.scrollTo(0,0)):document.body.style.overflow="auto"},[$]),t.useEffect(()=>(window.openHelpdesk=()=>se(mn),()=>{delete window.openHelpdesk}),[mn]);const W=Tt({appName:o.replace(/[\s-]/,""),env:f,userId:F}),G=`${c(f)("login")}/logout`,J=`/people/AC${F}`,X=mn,K=null!=E&&E.onClick?E.onClick:()=>te(X),Y=r(e=>{L({payload:{content:e},type:nn.mount}),setTimeout(()=>L({type:nn.open}))},[]),Q=r(e=>{e.name.toLowerCase()in zn?V(e.name.toLowerCase(),M[e.name.toLowerCase()]):(N(),Y(e))},[V,N,Y,M]),ee=r(()=>{L({type:nn.close}),N(),setTimeout(()=>L({type:nn.unmount}),100)},[N]);t.useEffect(()=>{if(!Z)return;const e=q({},M,{[Z.tool]:Z.path});le(e,M)||H(e)},[Z,M]),t.useEffect(()=>{null==Z||!Z.tool||I===zn[Z.tool]&&$||Y(zn[Z.tool])},[Y,null==Z?void 0:Z.tool,I,$]);const te=e=>$&&(null==I?void 0:I.name)===e.name?ee():Q(e),ne=O({enableJoltLogging:s,env:f,isEnabled:Boolean(F&&U),joltPromise:B,onConnectionFailure:()=>I===_&&ee(),userId:F}),ae=[Cn,Hn,ne&&_].filter(Boolean),re={component:()=>function({closeDrawer:e,linkToProfile:n,loginSettingsUrl:a,logoutUrl:l,profileUrl:r,userAvatarPath:o}){const{mfaConfigured:i,mfaEnabled:c,name:s}=nt();return t.createElement(u,{axis:"vertical",spacing:t.createElement(p,null)},t.createElement(C,{columns:"auto 1fr auto",alignment:"start",spacing:2,padding:2,paddingTop:1,width:"100%"},t.createElement(k,{source:o,size:"md"}),t.createElement(u,{axis:"vertical",spacing:1,grow:0,shrink:1},t.createElement(w,{level:3,size:1,weight:600,paddingTop:.5,color:rt.lightNeutral12},s),n&&t.createElement(v,{to:r,style:{color:rt.lightNeutral45},size:3},"My profile"),c&&t.createElement(t.Fragment,null,t.createElement(v,{to:a,style:{color:rt.lightNeutral45},size:3},"My login settings"),t.createElement(u,{axis:"horizontal",alignment:"center",spacing:.5,width:"100%"},t.createElement(g,{name:i?"general.lock":"general.unlock",size:"sm",color:i?rt.success25:rt.danger45}),t.createElement(h,{size:5,weight:400,color:rt.lightNeutral62,wrap:!0},"Two-step verification ",i?"active":"inactive")))),t.createElement(m,{icon:{fill:rt.lightNeutral24,name:"general.x",size:"md"},onClick:e,title:"Close",variant:"naked",theme:!1,hover:{backgroundColor:rt.lightNeutral95}})),t.createElement("form",{method:"POST",action:l},t.createElement(m,{"data-turbolinks":!1,onClick:()=>{pe()},style:{padding:0},theme:!1,type:"submit",width:"100%"},t.createElement(u,{distribution:"space-between",alignment:"center",axis:"horizontal",grow:1,paddingHorizontal:3,paddingVertical:2},t.createElement(h,{color:rt.lightNeutral45,size:3},"Log out"),t.createElement(g,{name:"general.intoBox",fill:rt.lightNeutral45})))))}({closeDrawer:ee,linkToProfile:b,loginSettingsUrl:W,logoutUrl:G,profileUrl:J,userAvatarPath:x}),name:"Profile"},oe=function(e){const t=e=>"undefined"!=typeof window&&window.matchMedia(e).matches,[l,r]=a(t(e));function o(){r(t(e))}return n(()=>{const t=window.matchMedia(e);return o(),t.addListener?t.addListener(o):t.addEventListener("change",o),()=>{t.removeListener?t.removeListener(o):t.removeEventListener("change",o)}},[e]),l}("(max-width: 599px)"),[ie,ce]=t.useState(0);t.useLayoutEffect(()=>{const e=()=>{ce(window.innerHeight)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const se=e=>{var t;Q(e),null==(t=document.getElementById(`toolbarDrawer${e.name}`))||t.scrollTo({behavior:"smooth",top:0})},de={Chat:{chatStreamUser:ne,hasConnectedPeople:D},Tasks:{onReceiveWorker:S}},me=r(e=>{V(null==I?void 0:I.name.toLowerCase(),e)},[null==I?void 0:I.name]),ue=q({appName:o,closeDrawer:ee,currentPath:null==Z?void 0:Z.path,env:f,helpdeskConfig:E,isOpen:$,joltPromise:B,onChangePath:me,openDrawer:()=>I&&Q(I),userId:F},I?de[I.name]:{}),he=q({},j,{Chat:null==ne?void 0:ne.unread});return t.createElement(d,{theme:It},t.createElement(T,null,oe?t.createElement(t.Fragment,null,t.createElement(u,{left:0,position:"absolute",right:0,pointerEvents:"none",style:{minHeight:ie},top:0,zIndex:10001},t.createElement(u,{alignItems:"start",axis:"horizontal",backgroundColor:"white",borderTopColor:"separatorTertiary",borderTopWidth:1,bottom:0,distribution:"fill",height:"calc(52px + env(safe-area-inset-bottom))",left:0,position:"fixed",pointerEvents:"auto",right:0},t.createElement(u,{alignment:"center",flex:"1",position:"relative"},t.createElement(m,{css:{WebkitTapHighlightColor:"transparent"},color:$?rt.lightNeutral62:rt.lightNeutral24,hover:{color:rt.lightNeutral24},icon:{name:$?"toolbar.planningCenterO":"toolbar.planningCenter",size:"20px"},onClick:()=>ee(),padding:2,theme:!1,title:"Home"})),[X,...ae].map(e=>t.createElement(u,{alignment:"center",flex:"1",key:e.name,position:"relative"},t.createElement(m,{id:`toolbar-${e.name.toLowerCase()}`,"aria-label":`${e.name}`,color:$&&I===e?rt.lightNeutral24:rt.lightNeutral62,css:{WebkitTapHighlightColor:"transparent"},hover:{color:rt.lightNeutral24},key:e.name,onClick:()=>se(e),paddingHorizontal:2,paddingVertical:2,theme:!1},t.createElement(y,{position:"relative"},he[e.name]&&t.createElement(Xt,{right:-.5,top:-.5}),t.createElement(g,{name:$&&I===e?e.icons.active:e.icons.static,size:"20px"}))))))),R&&t.createElement(Wt,{id:`toolbarDrawer${I.name}`,bottom:"52px",height:$?"calc(100% - 52px)":"0px",overflow:"auto",position:"absolute"},t.createElement(I.component,q({},ue)))):t.createElement(u,{height:"100%",position:"absolute",right:0,width:$?"calc(360px + 48px)":"48px",transition:"all 100ms ease-in-out"},t.createElement(u,{backgroundColor:"surface",borderLeftColor:"separatorTertiary",borderLeftWidth:1,grow:1,paddingVertical:1,spacing:t.createElement(p,{margin:1.5}),zIndex:2,position:"absolute",right:0,height:"100%",width:"48px"},t.createElement(u,{alignment:"center","data-pendo":"toolbar-profile-support-wrapper",spacing:2},t.createElement(m,{"data-pendo":"toolbar-profile",onClick:()=>te(re),radius:0,theme:!1},t.createElement(k,{alt:`${A}'s avatar`,hover:{outlineColor:rt.lightNeutral62},outlineColor:$&&R&&"Profile"==I.name?rt.lightNeutral62:"transparent",outlineOffset:"2px",outlineStyle:"solid",outlineWidth:"2px",size:"sm",source:x})),t.createElement(Tn,{currentContent:I,indicatorState:he,key:X.name,onClick:K,open:$,tool:X})),t.createElement(u,{alignment:"center",spacing:2},ae.map(e=>t.createElement(Tn,{currentContent:I,indicatorState:he,key:e.name,onClick:()=>te(e),open:$,tool:e})))),R&&t.createElement(Wt,{hasShadow:!0,id:`toolbarDrawer${I.name}`,width:"360px"},t.createElement(I.component,q({},ue))))))}const Tn=({currentContent:e,indicatorState:n,onClick:a,open:l,tool:r})=>t.createElement(y,{"data-pendo":`toolbar-${r.name.toLowerCase()}`,key:r.name,position:"relative"},n[r.name]&&t.createElement(Xt,{right:.25,top:.25}),t.createElement(m,{id:`toolbar-${r.name.toLowerCase()}`,color:l&&e===r?rt.lightNeutral24:rt.lightNeutral62,hover:{color:rt.lightNeutral24},icon:{name:l&&e===r?r.icons.active:r.icons.static,size:"20px"},key:r.name,onClick:a,title:`Open ${r.name} drawer`,theme:!1}));export{se as AppsProvider,Pe as BellIcon,ue as ConnectedPeopleProvider,ge as DisplaySwitch,ht as NotSmallRoute,ut as NotSmallTopbar,yt as PlatformAnnouncements,bt as PlatformAnnouncementsStyleProvider,St as ProductAnnouncement,Zt as ProductAnnouncementStyleProvider,jt as SmallRoute,Dt as SmallTopbar,_e as SpyglassIcon,Et as StyledPlatformAnnouncement,Vt as StyledProductAnnouncement,Nt as StyledProductAnnouncementDimissButton,tn as SwitchView,Ln as Toolbar,Oe as XIcon,de as mapApps,Y as railsCsrfFetch};
|
|
2
2
|
//# sourceMappingURL=topbar.modern.js.map
|