@planningcenter/topbar 9.7.0-rc.2 → 9.7.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.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/hooks/jolt.d.ts +4 -5
- package/dist/types/modules/hooks/jolt.d.ts.map +1 -1
- package/dist/types/modules/hooks/use_notifications.d.ts +2 -2
- package/dist/types/modules/hooks/use_notifications.d.ts.map +1 -1
- package/dist/types/modules/hooks/use_notifications_has_unread.d.ts +2 -2
- package/dist/types/modules/hooks/use_notifications_has_unread.d.ts.map +1 -1
- package/dist/types/modules/toolbar/tools/chat/components/channel_list_view/index.d.ts +1 -1
- package/package.json +3 -2
package/dist/topbar.modern.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import*as e from"react";import t,{useEffect as n,useState as a,useRef as l,useMemo as r,useContext as o,useCallback as i}from"react";import c from"@planningcenter/jolt-client";import s from"@planningcenter/url";import{useSyncExternalStore as d}from"use-sync-external-store/shim";import{ThemeProvider as m,Divider as u,Button as p,StackView as h,Text as g,Icon as f,designSystem as E,Link as v,HeadingUppercase as b,List as y,Box as C,Heading as w,GridView as k,Avatar as x,Badge as A,Collapse as S,ToggleSwitch as N,Spinner as Z,Dropdown as z,Input as V,Select as M,WrapView as H,Highlight as T,Combobox as P,Menu as _,Logo as I}from"@planningcenter/tapestry-react";import*as L from"@planningcenter/icons/paths/church-center";import*as O from"@planningcenter/icons/paths/general";import*as D from"@planningcenter/icons/paths/people";import*as R from"@planningcenter/icons/paths/toolbar";import{UiExtensionFirstPartyComponent as j,components as U,UiExtensionDataContext as F}from"@planningcenter/add-ons";import{useChatContext as $,Avatar as B,ChannelList as W,InfiniteScroll as q,useEmojiContext as G,ReactionSelector as J,ReactionsList as K,useMessageInputContext as X,useChannelStateContext as Y,AttachmentPreviewList as Q,ChatAutoComplete as ee,EmojiPickerIcon as te,EmojiPicker as ne,Channel as ae,Window as le,MessageList as re,MessageInput as oe,Chat as ie}from"stream-chat-react";import{StreamChat as ce,logChatPromiseExecution as se}from"stream-chat";import de from"@churchcenter/datetime-fmt";import{nanoid as me}from"nanoid";import{useDropzone as ue}from"react-dropzone";import{UploadButton as pe}from"react-file-utils";import{InlineWidget as he}from"react-calendly";import ge from"algoliasearch";import{useSearchBox as fe,useHits as Ee,InstantSearch as ve,Configure as be}from"react-instantsearch";import{TransitionGroup as ye,Transition as Ce}from"react-transition-group";function we(){return we=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},we.apply(this,arguments)}function ke(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function xe(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 Ae=["headers"],Se=(e,t)=>fetch(e,we({credentials:"include",mode:"cors"},t)),Ne=(e,t)=>{let{headers:n}=t,a=xe(t,Ae);return fetch(e,we({headers:we({},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 Ze(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 ze=({channelName:e,enableJoltLogging:n=!1,enabled:a=!0,env:l,wssEndpoint:r,fetchSubscribeToken:o,joltPromise:i=(()=>Promise.resolve())})=>{const[d,m]=t.useState(),[u,p]=t.useState(),[h,g]=t.useState(!1),f=t.useCallback(async()=>{let t=await i().then(e=>e);const a=async(e,t)=>o(t);t||(g(!0),t=new c(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()=>Ze(Ne,`${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});m(s),p(t)},[Ze,e,l,s,Ne]);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)&&u&&u.disconnect()};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)},[u]),t.useEffect(()=>()=>{u&&h&&u.disconnect()},[u]),d},Ve=(e,t,a)=>n(()=>e?(e.bind(t,a),()=>e.unbind(t,a)):()=>{},[e,a]),Me=(e,t=1)=>{const n=e.replace(/[a-z()%]/g,"").split(" ");return`hsla(${n[0]}, ${n[1]}%, ${n[2]}%, ${t})`},He=(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 Te(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 Pe=()=>{},_e=function(e){let t={};const n=new Set;return{getState:()=>t,setState:e=>{t=e,n.forEach(e=>e(t))},subscribe:e=>(n.add(e),()=>n.delete(e))}}(),Ie=({configuredFetch:e=Se,enableJoltLogging:l,env:r,formatter:o=Le,joltPromise:i,wssEndpoint:c,render:d,userId:m})=>{var u,p,h,g,f,E,v,b,y,C,w,k,x,A,S,N,Z,z,V,M,H;const T=(({configuredFetch:e,env:t})=>{const{storedValue:l,setStoredValue:r}=Te("Topbar",{}),[o,i]=a(l);n(()=>{c()},[]);const c=()=>{Ze(e,`${s(t)("api")}/people/v2/me/topbar`).then(({json:e,ok:t})=>{t&&(i(e),r(e))})};return o})({configuredFetch:e,env:r}),P=o(T),_=null==T||null==(u=T.data)||null==(p=u.attributes)?void 0:p.has_connected_people,I=null==T||null==(h=T.data)||null==(g=h.attributes)||null==(f=g.features)?void 0:f.includes("mfa_enabled"),L=!(null==T||null==(E=T.data)||null==(v=E.attributes)||!v.mfa_configured),O=null==T||null==(b=T.data)||null==(y=b.attributes)?void 0:y.name,D=!window.notificationsDisabled,R=(null==T||null==(C=T.data)||null==(w=C.attributes)?void 0:w.org_time_zone)||"America/Los_Angeles",j=null==T||null==(k=T.data)||null==(x=k.attributes)||null==(A=x.features)?void 0:A.includes("helpdesk_enabled"),U=null==T||null==(S=T.data)||null==(N=S.attributes)||null==(Z=N.features)?void 0:Z.includes("chat_enabled"),F={algoliaApplicationId:null==T||null==(z=T.data)||null==(V=z.attributes)?void 0:V.algolia_application_identifier,algoliaSearchOnlyApiKey:null==T||null==(M=T.data)||null==(H=M.attributes)?void 0:H.algolia_search_key},$=ze({channelName:`notifications.people.${m}`,enableJoltLogging:l,enabled:!0,env:r,wssEndpoint:c,fetchSubscribeToken:async e=>{const t=`${window.location.origin}/~api/notifications/v2/me/notifications_jolt_subscribe`;return Ze(Ne,t,{data:{data:{attributes:{cid:e}}},method:"POST"}).then(({json:e})=>e.data.id)},joltPromise:i}),B=(({enabled:e,joltChannel:n})=>{const{storedValue:a,setStoredValue:l}=Te("Topbar:Notifications:hasUnread",!1),r=((e,n=0)=>t.useMemo(()=>He(e,n),[]))(()=>{const e=`${window.location.origin}/~api/notifications/v2/me/unread`;Ze(Se,e).then(({json:e})=>{l(e.data.attributes.unread)}).catch(Pe)},300);return t.useEffect(()=>{e&&r()},[e]),Ve(e?n:void 0,"notifications.v2.events.notification.created",r),Ve(e?n:void 0,"notifications.v2.events.notification.updated",r),Ve(e?n:void 0,"notifications.v2.events.notification.destroyed",r),a})({enabled:!0,env:r,joltChannel:$});return n(()=>{const e=_e.getState();_e.setState(we({},e,{algoliaSearchAuth:F,chatEnabled:U,hasConnectedPeople:_,helpdeskEnabled:j,indicatorVisible:we({},e.indicatorVisible,{Notifications:B}),joltPromise:i,mfaConfigured:L,mfaEnabled:I,name:O,notifications:{enabled:D,env:r,joltChannel:$},notificationsEnabled:D,notificationsJoltChannel:$,organizationTimeZone:R,userId:m}))},[i,L,I,O,D,B,R,m]),d(P||[],{fetch:()=>{},remove:()=>{}})};function Le(e){var t,n;return(null==e||null==(t=e.data)||null==(n=t.attributes)?void 0:n.apps)||[]}function Oe(){window.localStorage.removeItem("Topbar:ConnectedPeople")}class De extends t.Component{constructor(e){super(e),this.state={connectedPeople:[]}}fetch(){Ze(this.props.configuredFetch,`${s(this.props.env)("api")}/login/v2/me/connected_people`).then(({json:e})=>{const t=e.data;return this.setState({connectedPeople:t},()=>window.localStorage.setItem("Topbar:ConnectedPeople",JSON.stringify(t)))})}unlink(){Ze(this.props.configuredFetch,`${s(this.props.env)("api")}/login/v2/me/unlink`,{method:"POST"}).then(({json:e})=>{window.location=e.meta.redirect_to})}switch(e,t){Ze(this.props.configuredFetch,`${s(this.props.env)("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})}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:Oe.bind(this),switch:this.switch.bind(this),unlink:this.unlink.bind(this)})}}De.defaultProps={configuredFetch:Se};class Re 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",He(this.setWindowWidth,100),!1)}componentWillUnmount(){window.removeEventListener("resize",He(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 je extends t.Component{render(){return t.createElement(Re,{render:e=>-1!==this.props.smallBreakpoints.indexOf(e)?this.props.smallTopbar(e):this.props.notSmallTopbar(e)})}}function Ue({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"})}je.defaultProps={smallBreakpoints:["xs","sm"]};var Fe={__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:Ue,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 $e=["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 We(e){let{appName:n,colors:a,style:l,size:r=20}=e,o=xe(e,$e);return t.createElement("svg",we({xmlns:"http://www.w3.org/2000/svg",width:r,height:r,viewBox:"0 0 20 20",role:"img","aria-labelledby":"title desc",style:we({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),Fe[n]?t.createElement(Fe[n],{color:"Accounts"!=n?a.base0:"#fff"}):t.createElement("div",null,"appName not supported"))}var qe={__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 Ge({appName:e,color:n,size:a=20}){return qe[e]?t.createElement(qe[e],{color:n,size:a}):t.createElement("div",null,"appName not supported")}const Je={transition:"background-color 120ms ease-in"},Ke={fontFamily:"inherit"},Xe={flex:"1 1 auto"},Ye=["dot","dotFill","fill","style"],Qe=["dark","id","style"],et=["colors","style"],tt=["fill","size","style"],nt=["fill","style"],at=["fill","style"],lt=e=>{let{dot:n=!1,dotFill:a="#fff",fill:l="#fff",style:r}=e,o=xe(e,Ye);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",we({width:"24",height:"24",viewBox:"0 0 24 24",style:we({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}))},rt=e=>{let{dark:n=!1,id:a="default",style:l}=e,r=xe(e,Qe);return t.createElement("svg",we({fill:"none",height:"123",style:we({},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"}))))},ot=e=>{let{colors:n,style:a}=e,l=xe(e,et);return t.createElement("svg",we({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"}))},it=e=>{let{fill:n="#000",size:a=24,style:l}=e,r=xe(e,tt);return t.createElement("svg",we({height:a,style:we({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}))},ct=e=>{let{fill:n="#000",style:a}=e,l=xe(e,nt);return t.createElement("svg",we({width:"24",height:"24",viewBox:"0 0 24 24",style:we({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}))},st=e=>{let{fill:n="#A0A0A0",style:a}=e,l=xe(e,at);return t.createElement("svg",we({width:"16",height:"16",viewBox:"0 0 16 16",style:we({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}))},dt=["style"];function mt(e){let{style:n}=e,a=xe(e,dt);return t.createElement("button",we({style:we({WebkitAppearance:"none",appearance:"none",backgroundColor:"transparent",border:"none",cursor:"pointer",display:"inline-block",outline:0,padding:0},Ke,n)},a))}const ut=["appName","colors","displayIconOnly","expanded","onClick","style"],pt=e=>{let{appName:n,colors:a,displayIconOnly:l,expanded:r,onClick:o,style:i=null}=e,c=xe(e,ut);const[s,d]=t.useState(!1),[m,u]=t.useState(!1);return t.createElement(mt,we({onClick:o,onMouseDown:()=>d(!0),onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),onMouseUp:()=>d(!1),style:we({alignItems:"center",backgroundColor:r&&!s?a.base1:m&&s?a.base2:m?a.base1:"transparent",display:"flex",height:"100%",outline:0,paddingLeft:"16px",paddingRight:"16px",whiteSpace:"nowrap"},Je,i)},c),t.createElement(We,{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(Ge,{appName:n.replace(/[\s-]/,""),color:"#fff",key:"mono-app-name",size:24})),t.createElement("div",{key:"space-2",style:{margin:4}}),t.createElement(ot,{colors:a,key:"disclosure-chevron-icon",style:{display:"block"}})))};var ht={__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 gt({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(ht[e]?ht[e]:"span",{key:"key1"}),Fe[e]?t.createElement(Fe[e],{color:"#fff",key:"key2"}):t.createElement("div",{key:"key3"},"appName not supported"))}function ft(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 Et=["active","component","style"],vt=e=>{let{active:n=!1,component:a="span",style:l=null}=e,r=xe(e,Et);const[o,i]=t.useState(!1);return t.createElement(a,we({onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),style:we({},l,{backgroundColor:n?"#ededed":o?"#f7f7f7":"transparent"})},r))},bt=["cleanup","onOutsideClick","visible"];class yt 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=xe(e,bt);return n?document.removeEventListener("click",this.handleOutsideClick,!0):document.addEventListener("click",this.handleOutsideClick,!0),t.createElement("div",we({ref:e=>this.container=e},a))}}const Ct=["style"],wt=e=>{let{style:n=null}=e,a=xe(e,Ct);return t.createElement("div",we({style:we({alignSelf:"flex-end",display:"flex",position:"relative"},n)},a))},kt=["component","style"],xt=e=>{let{component:n="div",style:a=null}=e,l=xe(e,kt);return t.createElement(n,we({style:we({background:"#FFFFFF",borderRadius:"3px",boxShadow:"0 0 0 1px #D4D9E2, 0 8px 32px rgba(0,0,0,.3)",overflow:"hidden",position:"absolute"},a)},l))},At=({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),c=[...n].filter(({name:e})=>"Home"!==e&&"Accounts"!==e).sort((e,t)=>e.name.localeCompare(t.name)),d=we({},Ke,{alignItems:"center",display:"flex",height:"48px",overflow:"hidden",padding:"0 16px",verticalAlign:"middle"});return t.createElement(wt,null,t.createElement(xt,{cleanup:!r,component:yt,onOutsideClick:l,style:we({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(vt,{component:"a","data-pendo":`app-switcher--change-app--${i.name}`,"data-turbolinks":!1,href:e===i.name?`${s(a)("accounts")}/apps/${e}`:s(a)("accounts")+ft(i.name),style:we({},d,{borderBottom:"1px solid #ededed"})},t.createElement("div",{style:{marginRight:"6px"}},t.createElement(gt,{appName:"Home",size:20})),t.createElement(Ge,{appName:"Home",color:"#444",size:18})),c.map(({name:n},l)=>{const r=0===l,o=l===c.length-1;return t.createElement(vt,{component:"a","data-pendo":`app-switcher--change-app--${n}`,"data-turbolinks":!1,href:n===e?`${s(a)("accounts")}/apps/${n.toLowerCase()}`:s(a)("accounts")+ft(n),key:n,style:we({},d,{height:"40px",paddingBottom:o?"4px":null,paddingTop:r?"4px":null})},t.createElement("div",{style:{marginRight:"6px"}},t.createElement(gt,{appName:n.replace(/[\s-]/,""),size:20})),t.createElement(Ge,{appName:n.replace(/[\s-]/,""),color:"#444",size:18}))}),o&&t.createElement(vt,{component:"a","data-pendo":`app-switcher--change-app--${o.name}`,"data-turbolinks":!1,href:s(a)("accounts")+ft(o.name),style:we({},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(Ue,{color:"#9e9e9e",key:"key2"})),t.createElement("div",{style:{color:"#737373",fontSize:"12px",lineHeight:"28px"}},"Account settings")))))},St=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},Nt=e=>e.slice().sort((e,t)=>e.attributes.organization_name.localeCompare(t.attributes.organization_name)),Zt=(e=(e=>e))=>d(_e.subscribe,()=>e(_e.getState())),zt=["children","style"];function Vt(e){let{children:n,style:a}=e,l=xe(e,zt);return t.createElement("nav",we({className:"simple","data-pendo":"topbar","aria-label":"topbar-navigation",style:we({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 Mt={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%)",home:{brand62:"rgba(70, 126, 246, 1)"},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%)",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%)"},Ht=["style"],Tt=e=>{let{style:n=null}=e,a=xe(e,Ht);return t.createElement("div",we({style:we({alignSelf:"flex-end",display:"flex",position:"relative"},n)},a))},Pt=({appName:e,connectedPeople:n,env:a,hasConnectedPeople:l,requestClearAppsCache:r,requestClearConnectedPeopleCache:o,requestSwitchConnectedPerson:i,requestUnlinkConnectedPeople:c,setUserMenuVisible:d,userMenuVisible:E})=>{const v=`${s(a)("login")}/logout`;return t.createElement(Tt,null,t.createElement(xt,{component:yt,onOutsideClick:()=>d(!1),cleanup:!E,style:we({color:"#525252",marginTop:"8px",maxHeight:"75vh",maxWidth:"320px",minWidth:"242px",overflow:"auto",right:0},E?{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:we({},Xe,{color:"#666",fontSize:"12px",textTransform:"uppercase",whiteSpace:"nowrap"},Ke)},"Linked Accounts"),t.createElement("div",{style:we({},Xe,{alignItems:"center",fontSize:"12px",textAlign:"right"})},t.createElement("a",{href:"",onClick:e=>{r(),o(),c(),e.preventDefault()},style:we({color:"#666",marginLeft:"64px",textDecoration:"none"},Ke)},"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}},Nt(n).map(({id:n,attributes:a})=>t.createElement(vt,{component:"li",key:n},t.createElement("a",{href:"",onClick:t=>{r(),o(),i(n,`${e}/`),t.preventDefault()},style:we({borderTop:"1px solid #ddd",color:"#444",display:"block",lineHeight:"48px",overflow:"hidden",paddingLeft:"16px",paddingRight:"16px",textDecoration:"none",textOverflow:"ellipsis",whiteSpace:"nowrap"},Ke)},a.organization_name))))),t.createElement(m,null,l&&t.createElement(u,null),t.createElement("form",{method:"POST",action:v},t.createElement(p,{"data-turbolinks":!1,hover:{backgroundColor:Mt.lightNeutral97},onClick:()=>{r(),o()},style:{padding:0},theme:!1,type:"submit",width:"100%"},t.createElement(h,{distribution:"space-between",alignment:"center",axis:"horizontal",grow:1,paddingHorizontal:2,paddingVertical:1.5,spacing:4},t.createElement(g,{color:Mt.lightNeutral45,lineHeight:"24px"},"Log out"),t.createElement(f,{name:"general.intoBox",fill:Mt.lightNeutral45})))))))},_t=["active","component","hover","innerRef","style"],It=e=>{let{active:n=null,component:a="div",hover:l=null,innerRef:r=null,style:o=null}=e,i=xe(e,_t);const[c,s]=t.useState(!1),[d,m]=t.useState(!1);return t.createElement(a,we({onMouseDown:()=>s(!0),onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),onMouseUp:()=>s(!1),style:we({},Ke,o,d&&l,c&&n)},r&&{ref:r},i))},Lt=({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(It,{component:"button",type:"button",style:we({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},Je),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(ot,{colors:e,style:{margin:"-3px"}})))),Ot=["active","colors","style"],Dt=e=>{const[n,a]=t.useState(!1),[l,r]=t.useState(!0),[o,i]=t.useState(!1),{hasConnectedPeople:c,notificationsEnabled:s}=Zt();return t.createElement(Vt,{style:we({paddingLeft:"8px",paddingRight:"16px"},e.style)},t.createElement(At,{env:e.env,appName:e.appName,apps:St(e.apps),visible:n,toggle:()=>a(e=>!e)}),t.createElement(pt,{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(Lt,{colors:e.colors,orgName:e.orgName,requestConnectedPeopleFetch:e.requestConnectedPeopleFetch,setUserMenuVisible:i,showOrgName:e.showOrgName}),t.createElement(Pt,{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}))};Dt.defaultProps={notifications:()=>null,search:()=>null,showOrgName:!0,useDummyNotifications:!1};const Rt=e=>{let{active:n,colors:a,style:l=null}=e,r=xe(e,Ot);const[o,i]=t.useState(!1),[c,s]=t.useState(!1);return t.createElement("a",we({style:we({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"},Ke,Je,l),onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),onMouseDown:()=>s(!0),onMouseUp:()=>s(!1)},r))},jt=["style"],Ut=["children","className","colors","style"];class Ft 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,`${s(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)}))}}Ft.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 $t extends t.Component{render(){const e=this.props,{style:n}=e,a=xe(e,jt);return t.createElement(Re,{render:e=>t.createElement("div",we({style:we({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=xe(e,Ut);return t.createElement("div",we({className:["__Topbar_PlatformAnnouncements_link"].join(" ").trim(),style:we({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 Wt extends t.Component{render(){return t.createElement(Bt,{colors:this.props.colors},t.createElement(Ft,{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 qt(e){let n=we({},(ke(e),e));return t.createElement("button",we({type:"button",style:{WebkitAppearance:"none",backgroundColor:"transparent",borderWidth:0,cursor:"pointer",margin:-8,padding:8}},n),t.createElement(st,{fill:"white",style:{height:20,width:20}}))}function Gt(e){return t.createElement($t,null,t.createElement("span",{dangerouslySetInnerHTML:{__html:e.html}}),t.createElement(qt,{onClick:e.onClick}))}Wt.defaultProps={configuredFetch:Se,renderItem:({announcement:e,actions:n})=>t.createElement(Gt,{key:e.id,html:e.data.html,onClick:()=>n.dismissAnnouncements(e.id)})};const Jt=["colors","html","onClick"],Kt=["children","className","colors","style"],Xt=["style"];function Yt(e){let{colors:n,html:a="",onClick:l=(e=>{})}=e,r=xe(e,Jt);const[o,i]=t.useState(!1);return o||!a?null:t.createElement(Qt,we({colors:n},r),t.createElement(en,null,t.createElement("span",{dangerouslySetInnerHTML:{__html:a}}),t.createElement(tn,{onClick:e=>{l(e),i(!0)}})))}class Qt extends t.Component{render(){const e=this.props,{children:n,className:a,colors:l,style:r}=e,o=xe(e,Kt);return t.createElement("div",we({className:["Topbar_ProductAnnouncement",a].filter(Boolean).join(" ").trim(),style:we({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 en extends t.Component{render(){const e=this.props,{style:n}=e,a=xe(e,Xt);return t.createElement(Re,{render:e=>t.createElement("div",we({style:we({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 tn(e){let n=we({},(ke(e),e));return t.createElement("button",we({type:"button",style:{WebkitAppearance:"none",backgroundColor:"transparent",borderWidth:0,cursor:"pointer",margin:-8,padding:8}},n),t.createElement(st,{fill:"white",style:{height:20,width:20}}))}const nn=["env","url","style"];function an(e){let{env:n,url:a="",style:l}=e,r=xe(e,nn);const o=a||`${s(n)("people")}/static/no_photo_thumbnail_gray.svg`;return t.createElement("div",we({style:we({backgroundColor:"white",backgroundImage:`url(${o})`,backgroundPosition:"center",backgroundSize:"cover",borderRadius:"50%",height:"26px",marginLeft:"4px",width:"26px"},l)},r))}class ln 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 rn({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:s(e)(n)+ft(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(Ue,{color:Mt.lightNeutral45,key:"key2"})),t.createElement("div",{style:{color:Mt.lightNeutral45,fontSize:"12px",lineHeight:"48px",textDecoration:"none"}},"Account settings"))}ln.defaultProps={method:"localStorage"};const on=({color:e=Mt.lightNeutral100,size:n=22,style:a={}})=>t.createElement("div",{style:a},t.createElement(st,{fill:e,style:{height:`${n}px`,width:`${n}px`}}));function cn({env:e,appName:t,userId:n}){var a,l,r;const o=s(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 c=new URLSearchParams;return c.append("return",`${t}/${i}`),`${o}?${c.toString()}`}const sn=({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:dn}=E,mn={colors:we({},dn({baseColor:"#2266f7",key:"primary"})),icons:{churchCenter:L,general:O,people:D,toolbar:R},id:"topbar"};function un({appName:e,connectedPeople:n,env:a,hasConnectedPeople:l,linkToProfile:r,mfaConfigured:o,mfaEnabled:i,requestClearAppsCache:c,requestClearConnectedPeopleCache:d,requestSwitchConnectedPerson:u,requestUnlinkConnectedPeople:f,setUserMenuVisible:E,userAvatarPath:C,userId:w,userName:k}){return t.createElement(m,{theme:mn},t.createElement(h,{axis:"vertical",width:"100%"},t.createElement(h,{axis:"horizontal",alignItems:"start",distribution:"space-between"},t.createElement(h,{axis:"horizontal",spacing:2,padding:2,paddingRight:0,shrink:1},t.createElement(h,{shrink:0},t.createElement(an,{env:a,url:C,style:{height:48,width:48}})),t.createElement(h,{spacing:1,shrink:1},t.createElement(g,{color:Mt.lightNeutral24,weight:700,truncate:!0},k),r&&t.createElement(v,{as:"a",href:`/people/AC${w}`,color:Mt.lightNeutral45,underline:!1},"My profile"),i&&t.createElement(v,{as:"a",href:cn({appName:e,env:a,userId:w}),color:Mt.lightNeutral45,underline:!1},"My login settings",t.createElement(sn,{isActive:o})),t.createElement("form",{method:"POST",action:`${s(a)("login")}/logout`},t.createElement(p,{color:Mt.lightNeutral45,"data-turbolinks":!1,onClick:()=>{c(),d()},type:"submit"},"Log out")))),t.createElement(p,{color:Mt.lightNeutral45,icon:"general.x",onClick:()=>E(!1),padding:2,theme:"naked",title:"Close Menu"})),l&&t.createElement(t.Fragment,null,t.createElement(h,{backgroundColor:Mt.lightNeutral95,paddingVertical:1.5,paddingHorizontal:2,marginTop:1,borderBottom:`1px solid ${Mt.lightNeutral88}`},t.createElement(b,{color:Mt.lightNeutral62,fontWeight:500},"Linked Accounts")),t.createElement(y,{dividerColor:Mt.lightNeutral88,width:"100%"},Nt(n).map(({id:n,attributes:a})=>t.createElement(y.Item,{key:n,onClick:t=>{c(),d(),u(n,`${e}/`),t.preventDefault()},color:Mt.lightNeutral45,padding:2},t.createElement(g,{truncate:!0},a.organization_name))),t.createElement(y.Item,{onClick:e=>{c(),d(),f(),e.preventDefault()},color:Mt.danger47,padding:2,underline:!1},t.createElement(g,{size:3},"Unlink my accounts"))))))}const pn=["active"],hn=({appName:e})=>{const n=e.replace(/[\s-]/,"");return t.createElement("div",{style:{alignItems:"center",display:"flex"}},t.createElement("div",{style:{marginRight:"6px"}},t.createElement(gt,{appName:n,size:20})),t.createElement(Ge,{appName:n,color:Mt.lightNeutral24,size:18}))},gn=e=>{var n,a;const[l,r]=t.useState(!1),[o,i]=t.useState(!1),[c,d]=t.useState(!1),{hasConnectedPeople:m,mfaConfigured:u,mfaEnabled:p,userId:h,name:g}=Zt(),f=e.colors,E=e.routes.filter(({props:{active:e}})=>e)||[],v=e.currentRouteComponent,b=E&&E[0]&&E[0].props&&E[0].props.children||e.appName,y=e.apps.find(({name:e})=>"Accounts"===e),C=e.apps.find(({name:e})=>"Home"===e),w=[...e.apps].filter(({name:e})=>"Home"!==e&&"Accounts"!==e),k=Mt.lightNeutral88;return t.useEffect(()=>{r(!1)},[E&&(null==(n=E[0])||null==(a=n.props)?void 0:a.href)]),t.createElement(Vt,{style:we({},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(We,{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(ln,{item:"Topbar:Small:Menus:Products:visibility",render:()=>t.createElement("div",{style:{MozUserSelect:"none",WebkitTapHighlightColor:"transparent",WebkitUserSelect:"none",backgroundColor:Me(Mt.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(on,{style:{position:"absolute",right:"17px",top:"12px"}}),t.createElement("div",{onClick:e=>{const{forcePropagation:t}=e;t||e.stopPropagation()},style:{backgroundColor:Mt.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:Mt.lightNeutral98,borderBottom:`1px solid ${k}`,display:"flex",height:"48px",paddingLeft:"16px",paddingRight:"16px"}},t.createElement("div",{style:we({},Xe)},t.createElement("a",{style:{alignItems:"center",display:"flex",height:"48px",paddingRight:"16px"},"data-pendo":`app-switcher--change-app--${null==C?void 0:C.name}`,"data-turbolinks":!1,href:C?s(e.env)("accounts")+ft(null==C?void 0:C.name):void 0},t.createElement("div",{style:{alignItems:"center",display:"flex"}},t.createElement(hn,{appName:C?C.name:e.appName}))))),t.createElement("div",{style:we({},Xe,{WebkitOverflowScrolling:"touch",overflowY:"scroll"})},t.createElement("ul",{"data-pendo":"app-switcher",style:{margin:0,padding:0}},St(w).map(({name:n},a)=>{const l=0===a,r=a===St(w).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:s(e.env)("accounts")+ft(n)},t.createElement(hn,{appName:n})))})),y&&t.createElement("div",{style:{borderTop:`1px solid ${k}`}},t.createElement(rn,{env:e.env}))),t.createElement("div",{style:{borderTop:`1px solid ${k}`,display:"flex",flexDirection:"row",lineHeight:"48px",textAlign:"center"}},t.createElement("div",{style:we({},Xe)},t.createElement(mt,{style:{color:Mt.lightNeutral24,fontSize:"15px",fontWeight:600},onClick:e=>{e.forcePropagation=!0},id:"jsLaunchHelpdesk"},"Help")))))}),t.createElement("div",{style:we({},Xe,{fontWeight:600,lineHeight:"48px",textAlign:"center"}),onClick:e.routes.length>0?()=>{i(!1),r(e=>!e)}:null},t.createElement(v,null,(x=b).charAt(0).toUpperCase()+x.slice(1)),e.routes.length>0&&t.createElement(ot,{colors:f,style:{marginLeft:"4px",verticalAlign:"middle"}})),t.createElement("button",{onClick:()=>d(!c),style:{background:"none",border:"none",margin:"0 12px",padding:0}},t.createElement(an,{env:e.env,url:e.userAvatarPath})),t.createElement("div",{style:{MozUserSelect:"none",WebkitTapHighlightColor:"transparent",WebkitUserSelect:"none",bottom:0,color:"black",display:c?"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(un,{appName:e.appName,env:e.env,connectedPeople:e.connectedPeople,hasConnectedPeople:m,linkToProfile:e.linkToProfile,mfaConfigured:u,mfaEnabled:p,requestClearAppsCache:e.requestClearAppsCache,requestClearConnectedPeopleCache:e.requestClearConnectedPeopleCache,requestSwitchConnectedPerson:e.requestSwitchConnectedPerson,requestUnlinkConnectedPeople:e.requestUnlinkConnectedPeople,setUserMenuVisible:d,userAvatarPath:e.userAvatarPath,userId:h,userName:g}))));var x};gn.defaultProps={currentRouteComponent:e=>t.createElement("span",we({},e)),linkToProfile:!0};const fn=e=>{let{active:n}=e,a=xe(e,pn);return t.createElement("a",we({style:we({backgroundColor:"#444",borderBottom:"1px solid #333",color:"#fff",display:"block",fontWeight:600,lineHeight:"47px",position:"relative",textAlign:"center",textDecoration:"none",textTransform:"capitalize",whiteSpace:"nowrap"},Ke,n&&{backgroundColor:"#333"})},a))};function En({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(h,we({backgroundColor:"surface",elevation:a&&open?2:void 0,left:0,position:"absolute",zIndex:1},{bottom:e,height:l,id:r,overflow:o,position:i,width:c}),n)}function vn({children:e,closeDrawer:n}){return t.createElement(h,{alignment:"start",axis:"horizontal",color:"foreground",distribution:"space-between",padding:2,paddingTop:1},t.createElement(C,null,e),n&&t.createElement(p,{icon:{fill:Mt.lightNeutral24,name:"general.x",size:"md"},onClick:()=>n(),title:"Close",theme:!1,hover:{backgroundColor:Mt.lightNeutral95}}))}const bn=["children"];function yn(e){let{children:n}=e,a=xe(e,bn);return t.createElement(w,we({},a,{letterSpacing:".002em",level:2,lineHeight:"35px",weight:700}),n)}const Cn=["children"],wn={bottom:{background:"linear-gradient(rgba(0, 0, 0, 0.07), rgba(255, 255, 255, 0))",top:0},top:{background:"linear-gradient(rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.07))",bottom:0}},kn=e=>{let{children:r}=e,o=xe(e,Cn);const[i,c]=a(!1),[s,d]=a(!1),m=l(null),u=l(null),p=l(null),g=()=>{const e=null==m?void 0:m.current;e&&d(e.scrollHeight-e.clientHeight>e.scrollTop+1)};return n(()=>{const e=null==m?void 0:m.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==u?void 0:u.current,r=null==p?void 0:p.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(h,{grow:1,position:"relative",shrink:1},s&&t.createElement(xn,{edge:"top"}),i&&t.createElement(xn,{edge:"bottom"}),t.createElement(h,we({basis:2,grow:1,innerRef:m,overflow:"auto",role:"region",shrink:1},o),t.createElement(C,{innerRef:p}),r,t.createElement(C,{innerRef:u})))},xn=({edge:e})=>t.createElement(C,we({height:1,left:0,pointerEvents:"none",position:"absolute",right:0,role:"presentation",zIndex:10},wn[e])),An=({activeIndex:e,children:n})=>{const a=t.Children.count(n),l=e<0?0:e>a-1?a-1:e;return t.createElement(h,{grow:1,overflow:"hidden",position:"relative"},t.Children.map(n,(n,a)=>{const r=a===l;return t.createElement(h,{"aria-hidden":!r,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:"transform 200ms ease-in-out, opacity 100ms 50ms ease-in-out"},n)}))};var Sn;!function(e){e.close="close",e.mount="mount",e.open="open",e.set="set",e.unmount="unmount"}(Sn||(Sn={}));const Nn={currentContent:null,open:!1},Zn=(e,t)=>{switch(t.type){case Sn.mount:return we({},e,{currentContent:t.payload.content});case Sn.unmount:return we({},e,{currentContent:null});case Sn.open:return we({},e,{open:!0});case Sn.close:return we({},e,{open:!1});case Sn.set:return we({},e,{currentContent:t.payload.content})}},zn=["fields"],Vn=t.createContext({}),Mn=e=>{const t=[e.data].flat(),[n,...a]=t.map(({attributes:e,relationships:t})=>we({},((e={})=>Object.keys(e).reduce((t,n)=>{const{data:a}=e[n],l=Array.isArray(a);return we({},t,{[`${n}_${l?"ids":"id"}`]:l?a.map(({id:e})=>e):a.id})},{}))(t),e));return Array.isArray(e.data)?n?[n,...a]:[]:n},Hn=({app:e,env:t})=>{const n=`${s(t)("api")}/${e}/v2`;return{delete:e=>Ze(Ne,[n,e].join("/"),{method:"DELETE"}),get:async(e,t={})=>{let{fields:a={}}=t,l=xe(t,zn);a=Object.entries(a).reduce((e,[t,n])=>we({},e,{[`fields[${t}]`]:n}),{});const r=new URLSearchParams(we({},a,l)),{json:o}=await Ze(Se,[[n,e].join("/"),r].join("?"));return Mn(o)},patch:async(e,t)=>{const{json:a}=await Ze(Ne,[n,e].join("/"),{data:{data:{attributes:t}},method:"PATCH"});return Mn(a)},post:async(e,t)=>{const{json:a}=await Ze(Ne,[n,e].join("/"),{data:{data:{attributes:t}},method:"POST"});return Mn(a)}}},Tn=({children:e,env:n})=>{const a=r(()=>{const e=Hn({app:"services",env:n});return{chat:Hn({app:"chat",env:n}),services:e}},[n]);return t.createElement(Vn.Provider,{value:a},e)},Pn=t.createContext({}),_n=({children:e,value:n})=>t.createElement(Pn.Provider,{value:n},e),In=()=>{const e=o(Pn);if(!e)throw new Error("useChat must be used within a ChatProvider");return e},Ln=()=>o(Vn),On=()=>{},Dn=["token"],Rn=({children:e,title:n})=>t.createElement(h,{spacing:1,paddingVertical:1},t.createElement(b,null,n),t.createElement(h,{spacing:1},e)),jn={Services:({groups:e})=>{const n=["Team","PlanTeam"].reduce((t,n)=>e[n]?[...t,...e[n]]:t,[]);return t.createElement(Rn,{title:"teams"},t.createElement(h,{axis:"horizontal",spacing:.5},n.map(e=>t.createElement(A,{key:e.source_identifier},e.name))))}},Un=({groups:e})=>t.createElement(t.Fragment,null,Object.entries(e).reduce((e,[n,a])=>{const l=jn[n];return l?[...e,t.createElement(l,{key:n,groups:a})]:e},[])),Fn={md:36,sm:24},$n=({person:e,size:n="md"})=>(e=>void 0!==e.avatar)(e)?t.createElement(x,{source:e.avatar,size:n}):(e=>void 0!==e.image)(e)?t.createElement(B,{image:e.image,name:e.name,size:Fn[n]}):null,Bn=({person:e})=>t.createElement(e.child?qn:Wn,{person:e}),Wn=({person:e})=>t.createElement(h,{alignment:"center",axis:"horizontal",spacing:1},t.createElement($n,{person:e}),t.createElement(g,{size:3,truncate:!0,weight:500},e.name)),qn=({person:e})=>t.createElement(h,{alignment:"center",axis:"horizontal",spacing:1},t.createElement(C,{opacity:.5},t.createElement($n,{person:e})),t.createElement(h,null,t.createElement(g,{color:"foreground",opacity:.75,size:3,truncate:!0,weight:500},e.name),t.createElement(h,{alignment:"center",axis:"horizontal",spacing:.5},t.createElement(f,{name:"general.shieldExclamation",color:Mt.warning49}),t.createElement(g,{color:Mt.warning20,size:5},"Not eligible to chat")))),Gn="18px 1fr auto",Jn=({childPeople:e})=>{const[n,l]=a(!1),r=e.length,o=`${r} ${1===r?"member":"members"} under age 13`;return t.createElement(h,{background:Mt.warning94,marginBottom:.5,padding:1,radius:4},t.createElement(k,{alignment:"start",columns:Gn,spacing:1},t.createElement(f,{color:Mt.warning49,marginTop:"1px",name:"general.shieldExclamation",size:"lg"}),t.createElement(g,{grow:1,color:"foreground",size:4},n?"This conversation includes members under 13 years old who are not eligible to chat.":o),t.createElement(p,{"aria-label":n?"Hide explanation":"Show explanation",icon:{name:n?"general.upCaret":"general.downCaret",size:"md"},onClick:()=>l(!n),size:"xs",theme:"warning",tooltip:n?"Hide explanation":"Show explanation",variant:"naked"})),t.createElement(S,{open:n},t.createElement(k,{alignment:"start",columns:Gn,spacing:1},t.createElement(h,{gridColumnStart:2,paddingTop:1,spacing:1},e.map(e=>t.createElement(h,{alignment:"center",axis:"horizontal",key:e.id,spacing:1},t.createElement($n,{person:e,size:"sm"}),t.createElement(g,{color:"foreground",size:4,weight:500},e.name)))))))},Kn=({people:e})=>{const n=e.filter(e=>e.child);return t.createElement(Rn,{title:"people"},n.length>0&&t.createElement(Jn,{childPeople:n}),e.map(e=>t.createElement(Bn,{key:e.id,person:e})))},Xn=["muted"],Yn=({channel:e})=>{const{client:n}=$(),[{muted:a},l]=t.useState(()=>e.muteStatus());return t.useEffect(()=>{const t=()=>{l(e.muteStatus())};return n.on("notification.channel_mutes_updated",t),()=>n.off("notification.channel_mutes_updated",t)},[]),t.createElement(h,{axis:"horizontal",width:"100%"},t.createElement(g,{as:"label",display:"flex",grow:1},"Mute Channel",t.createElement(h,{grow:1}),t.createElement(N,{isChecked:a,onClick:()=>{a?e.unmute():e.mute(),l(e=>{let{muted:t}=e;return we({muted:!t},xe(e,Xn))})}})))},Qn=({channel:e})=>{const[n,a]=t.useState(!1),[l,r]=t.useState(!1),{switchToChannelListView:o}=In(),i=Ln();return t.createElement(h,{cursor:"pointer"},l?t.createElement(h,{color:"error",axis:"horizontal",spacing:1,alignItems:"center"},t.createElement(g,null,"Removing Channel"),t.createElement(Z,{size:"xs",color:"error"})):t.createElement(h,{color:"error",axis:"horizontal",spacing:1,alignItems:"center"},t.createElement(g,{pointerEvents:n?"none":void 0,onClick:()=>a(!0)},"Remove Channel"),n&&t.createElement(p,{autoFocus:!0,size:"xs",variant:"outline",title:"confirm",theme:"error",onBlur:()=>a(!1),onMouseDown:e=>e.preventDefault(),onClick:()=>{r(!0),i.chat.delete(`me/conversations/${e.id}`).then(o).catch(On)}})))},ea=({channel:e,isRemovable:n})=>t.createElement(Rn,{title:"settings"},t.createElement(Yn,{channel:e}),n&&t.createElement(Qn,{channel:e})),ta=({channel:e,isEditable:n})=>{const[a,l]=t.useState(e.data.name),r=Ln();return t.createElement(Rn,{title:"title"},t.createElement(C,{backgroundColor:"surfaceTertiary",width:"100%",paddingHorizontal:1},t.createElement(ol.Inline,{size:"lg",value:a,disabled:!n,onChange:e=>l(e.target.value),onBlur:()=>{a!==e.data.name&&r.chat.patch(`me/conversations/${e.id}`,{title:a}).catch(On)},onKeyDown:e=>"Enter"===e.key&&e.target.blur()})))},na=({channel:e})=>{const n=(e=>{const[n,a]=t.useState([]),l=Ln();return t.useEffect(()=>{e&&l.chat.get(`me/conversations/${e.id}/groups`).then(a).catch(On)},[e]),n.reduce((e,t)=>{var n,a,l;return e[n=t.source_app_name]||(e[n]={}),(a=e[t.source_app_name])[l=t.source_type]||(a[l]=[]),e[t.source_app_name][t.source_type].push(t),e},{})})(e),a=(e=>{const[n,a]=t.useState({}),l=Ln();return t.useEffect(()=>{e&&l.chat.get(`me/conversations/${e.id}/members`).then(e=>e.reduce((e,t)=>we({},e,{[t.stream_member_id]:t}),{})).then(a).catch(On)},[e]),Object.values(e.state.members).reduce((e,t)=>t.user&&n[t.user.id]?[...e,we({},t.user,n[t.user.id])]:e,[])})(e),l=(e=>{const n=Ln(),[a,l]=t.useState({canDelete:!1,canUpdate:!1});return t.useEffect(()=>{n.chat.get(`/me/conversations/${e.id}/member_ability`).then(e=>l({canDelete:e.can_delete,canUpdate:e.can_update}))},[e]),a})(e);return t.createElement(h,{padding:2,spacing:t.createElement(u,{marginVertical:1})},t.createElement(ta,{channel:e,isEditable:l.canUpdate}),t.createElement(ea,{channel:e,isRemovable:l.canDelete}),Object.keys(n).length>0&&t.createElement(Un,{groups:n}),t.createElement(Kn,{people:a}))},aa=()=>{const{channel:e}=$(),{isChannelDetailsViewActive:n,switchToChannelView:a}=In();return e&&n?t.createElement(t.Fragment,null,t.createElement(h,{alignment:"center",axis:"horizontal",spacing:1,padding:2,paddingTop:1},t.createElement(p,{"aria-label":"Switch to chat list",icon:"general.leftChevron",onClick:a,size:"sm",title:"Back to chat list",variant:"naked"}),t.createElement(yn,{truncate:!0},"Conversation Details")),t.createElement(na,{channel:e})):null},la=()=>t.createElement(h,{alignment:"center",distribution:"center",padding:4,paddingTop:"54px",width:"100%"},t.createElement(ra,null),t.createElement(w,{color:"foreground",fontWeight:500,marginTop:1,size:3},"No messages"),t.createElement(g,{color:"foreground",align:"center",size:4},"Click new chat below to start a conversation!")),ra=()=>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","stroke-width":"1.48","stroke-miterlimit":"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","stroke-width":"1.48","stroke-miterlimit":"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","stroke-width":"1.48","stroke-miterlimit":"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"})),oa=()=>t.createElement(h,{alignment:"center",spacing:2,padding:2,paddingTop:"10%"},t.createElement(f,{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."));function ia(){return ia=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},ia.apply(this,arguments)}var ca={À:"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"},sa=Object.keys(ca).join("|"),da=new RegExp(sa,"g"),ma=new RegExp(sa,""),ua=function(e){return e.replace(da,function(e){return ca[e]})},pa=ua,ha=ua;pa.has=function(e){return!!e.match(ma)},pa.remove=ha;var ga={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};Ea.rankings=ga;var fa=function(e,t){return String(e.rankedValue).localeCompare(String(t.rankedValue))};function Ea(e,t,n){void 0===n&&(n={});var a=n.keys,l=n.threshold,r=void 0===l?ga.MATCHES:l,o=n.baseSort,i=void 0===o?fa:o,c=n.sorter,s=void 0===c?function(e){return e.sort(function(e,t){return function(e,t,n){var a=e.rank,l=e.keyIndex,r=t.rank,o=t.keyIndex;return a===r?l===o?n(e,t):l<o?-1:1:a>r?-1:1}(e,t,i)})}:c,d=e.reduce(function(e,l,o){var i=function(e,t,n,a){if(!t)return{rankedValue:e,rank:va(e,n,a),keyIndex:-1,keyThreshold:a.threshold};var l=function(e,t){for(var n=[],a=0,l=t.length;a<l;a++)for(var r=t[a],o=wa(r),i=ya(e,r),c=0,s=i.length;c<s;c++)n.push({itemValue:i[c],attributes:o});return n}(e,t);return l.reduce(function(e,t,l){var r=e.rank,o=e.rankedValue,i=e.keyIndex,c=e.keyThreshold,s=t.itemValue,d=t.attributes,m=va(s,n,a),u=o,p=d.minRanking,h=d.maxRanking;return m<p&&m>=ga.MATCHES?m=p:m>h&&(m=h),m>r&&(r=m,i=l,c=d.threshold,u=s),{rankedValue:u,rank:r,keyIndex:i,keyThreshold:c}},{rankedValue:e,rank:ga.NO_MATCH,keyIndex:-1,keyThreshold:a.threshold})}(l,a,t,n),c=i.keyThreshold;return i.rank>=(void 0===c?r:c)&&e.push(ia({},i,{item:l,index:o})),e},[]);return s(d).map(function(e){return e.item})}function va(e,t,n){return e=ba(e,n),(t=ba(t,n)).length>e.length?ga.NO_MATCH:e===t?ga.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase())===(t=t.toLowerCase())?ga.EQUAL:e.startsWith(t)?ga.STARTS_WITH:e.includes(" "+t)?ga.WORD_STARTS_WITH:e.includes(t)?ga.CONTAINS:1===t.length?ga.NO_MATCH:(a=e,l="",a.split(" ").forEach(function(e){e.split("-").forEach(function(e){l+=e.substr(0,1)})}),l).includes(t)?ga.ACRONYM:function(e,t){var n=0,a=0;function l(e,t,a){for(var l=a,r=t.length;l<r;l++)if(t[l]===e)return n+=1,l+1;return-1}var r=l(t[0],e,0);if(r<0)return ga.NO_MATCH;a=r;for(var o=1,i=t.length;o<i;o++)if(!((a=l(t[o],e,a))>-1))return ga.NO_MATCH;return ga.MATCHES+n/t.length*(1/(a-r))}(e,t);var a,l}function ba(e,t){return e=""+e,t.keepDiacritics||(e=pa(e)),e}function ya(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],l=0,r=n.length;l<r;l++){for(var o=n[l],i=[],c=0,s=a.length;c<s;c++){var d=a[c];if(null!=d)if(Object.hasOwnProperty.call(d,o)){var m=d[o];null!=m&&i.push(m)}else"*"===o&&(i=i.concat(d))}a=i}if(Array.isArray(a[0])){var u=[];return u.concat.apply(u,a)}return a}(t,e);n=null}return null==n?[]:Array.isArray(n)?n:[String(n)]}var Ca={maxRanking:Infinity,minRanking:-Infinity};function wa(e){return"string"==typeof e?Ca:ia({},Ca,e)}const ka={fontSize:"16px",fontWeight:400,lineHeight:"165%"},xa=(e,t)=>{const[n,a,l]=e.order,[r,o,i]=t.order;return n-r||a.localeCompare(o)||l.localeCompare(i)},Aa=({disabled:e,spinner:t}={})=>{const n=we({},ka,{backgroundColor:Mt.interaction55,color:t?"transparent":"surface",spinner:t?{color:Mt.interaction55}:void 0});return we({},n,e?{backgroundColor:Mt.lightNeutral81,spinner:t?{color:Mt.lightNeutral81}:void 0}:{active:{backgroundColor:Mt.interaction45},focus:{backgroundColor:Mt.interaction55},hover:{backgroundColor:Mt.interaction50}})},Sa=e=>{const{children:n,error:a=null,loading:l}=e,{switchToNewChatView:r}=In(),o=(()=>{const[e,n]=t.useState({}),a=Ln();return t.useEffect(()=>{a.chat.get("me/app_grants").then(e=>e.reduce((e,t)=>we({},e,{[t.app_name]:t}),{})).then(n)},[]),{canCreateChat:t=>e[t]&&e[t].create_conversations}})();return a?t.createElement(oa,null):l?null:t.createElement(h,{grow:1,shrink:1},t.createElement(kn,null,n),t.createElement(u,null),t.createElement(h,{padding:2,alignment:"stretch"},o.canCreateChat("Services")&&t.createElement(p,we({"aria-label":"Switch to new chat",onClick:r},Aa()),"New chat")))},Na=["appName"],Za=["Services"],za={Services:({dates:e})=>t.createElement(g,{color:"foregroundSecondary",lineHeight:"13px",size:6,textTransform:"uppercase"},e)},Va=e=>{let{appName:n}=e,a=xe(e,Na);const l=za[n];return t.createElement(h,{alignment:"center",axis:"horizontal",borderColor:"separatorTertiary",borderWidth:1,padding:.5,radius:4,spacing:.5,width:"max-content"},t.createElement(gt,{appName:n,size:15}),t.createElement(l,we({},a)))},Ma=({channel:e})=>{const n=Za.reduce((n,a)=>null!=e&&e.data[a]?[...n,t.createElement(Va,we({key:a,appName:a},e.data[a]))]:n,[]);return t.createElement(t.Fragment,null,n)},Ha=e=>{var t;return null==(t=e.user)?void 0:t.image},Ta=({member:e,size:n=40})=>t.createElement(B,{image:Ha(e),shape:"square",size:n}),Pa=({members:e})=>{let n=null;return 1===e.length&&(n=t.createElement(Ta,{member:e[0]})),2===e.length&&(n=t.createElement(t.Fragment,null,t.createElement("div",null,t.createElement(Ta,{member:e[0]})),t.createElement("div",{style:{marginLeft:"-20px"}},t.createElement(Ta,{member:e[1]})))),3===e.length&&(n=t.createElement(t.Fragment,null,t.createElement("div",null,t.createElement(Ta,{member:e[0]})),t.createElement("div",{style:{marginLeft:"-20px"}},t.createElement(Ta,{member:e[1],size:20}),t.createElement(Ta,{member:e[2],size:20})))),e.length>=4&&(n=t.createElement(t.Fragment,null,t.createElement("div",null,t.createElement(Ta,{member:e[e.length-4],size:20}),t.createElement(Ta,{member:e[e.length-3],size:20})),t.createElement("div",null,t.createElement(Ta,{member:e[e.length-2],size:20}),t.createElement(Ta,{member:e[e.length-1],size:20})))),t.createElement("div",{className:"str-chat__avatar-group"},n)},_a=({unread:e})=>{if(e<1)return null;const n=e<=99?e.toString():"99+";return t.createElement(A,{title:n,size:"xs",color:Mt.interaction66,radius:"pill",minWidth:3})},Ia=({channel:e,latestMessage:n,setActiveChannel:a,unread:l})=>{var r;const{client:o}=$(),{setActionsOpenForChannel:i,actionsOpenForChannel:c,switchToChannelView:s}=In(),d=c===e.id,m=(null==n||null==(r=n.props)?void 0:r.children)||"",u=t=>{"actions-dropdown"!==t.target.getAttribute("data-type")&&(a(e),s())},p=Object.values(e.state.members).filter(({user:e})=>e.id!==o.userID),f=e.data.name;return t.createElement(k,{alignment:"start","aria-label":`Select Channel: ${f||""}`,backgroundColor:d?"surfaceTertiary":"surface",borderBottomColor:"separatorTertiary",borderBottomWidth:1,columns:"auto 1fr auto",cursor:"pointer",css:{"&:hover":{".actions-dropdown":{visibility:"visible"},backgroundColor:"surfaceTertiary"}},minHeight:10,onClick:u,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||u(e)},padding:1,paddingHorizontal:2,radius:0,role:"button",spacing:1,tabIndex:0,width:"100%"},t.createElement(Pa,{members:p}),t.createElement(h,{height:"100%",alignment:"start",paddingRight:1},t.createElement(w,{level:5,maxWidth:"100%",truncate:!0,weight:500},f),t.createElement(g,{color:"foregroundSecondary",css:{WebkitBoxOrient:"vertical",WebkitLineClamp:"2",display:"-webkit-box",overflow:"hidden",textOverflow:"ellipsis"},lineHeight:"1.3",maxWidth:"100%",size:5,textAlign:"left"},m),t.createElement(h,{basis:.5,grow:1}),t.createElement(Ma,{channel:e})),t.createElement(h,{alignment:"end",minWidth:6,height:"100%"},t.createElement(g,{color:"foregroundSecondary",size:5,textTransform:"uppercase"},(e=>e.state.last_message_at?de.date(e.state.last_message_at,{style:"abbreviated",year:!1}):"")(e)),t.createElement(h,{alignment:"end",alignSelf:"stretch",grow:1},t.createElement(_a,{unread:l})),t.createElement(C,{onClick:e=>e.stopPropagation()},t.createElement(z,{alignSelf:"end",className:"actions-dropdown","data-type":"actions-dropdown",icon:{name:"people.importProgress",size:"lg"},radius:"circle",iconRight:!1,lockScrollWhileOpen:!0,onClose:()=>i(null),onOpen:()=>i(e.id),placement:"top-end",popoverProps:{offset:4,shouldFlip:!0},right:"1.5px",size:"xs",theme:"dark",title:"Chat actions",variant:"naked",visibility:d?"visible":"hidden"},t.createElement(z.Item,{onSelect:()=>{}},"Mark as unread"),t.createElement(z.Item,{onSelect:()=>{}},"Mute")))))},La=({client:e,closeDrawer:l})=>{const o=(()=>{const[e,t]=a(!0),{channelsQueryState:l}=$("ChannelList"),{queryInProgress:r}=l;return n(()=>{t(null!=r)},[r]),e})(),c=r(()=>({members:{$in:[e.userID]},pco_apps:{$contains:"services"},type:"messaging"}),[e.userID]),s=i(async(t,n)=>{var a;const l=n.channel;if(null!=l&&l.id&&null!=l&&null!=(a=l.pco_apps)&&a.includes("services"))try{const n=e.channel(l.type,l.id);await n.watch(),t(e=>[n,...e])}catch(e){console.error(e)}},[e.userID]);return t.createElement(t.Fragment,null,t.createElement(vn,{closeDrawer:l},t.createElement(h,{axis:"horizontal",alignment:"center",spacing:1},t.createElement(yn,null,"Chat"),o&&t.createElement(Z,{color:"hsl(0 0% 62%)",thickness:2,trackColor:"hsl(0 0% 97%)"}))),t.createElement(W,{setActiveChannelOnMount:!1,EmptyStateIndicator:la,filters:c,onMessageNew:s,onAddedToChannel:s,List:Sa,Paginator:q,Preview:Ia}))},Oa=["heart","pray","laughing","+1","-1"],Da=()=>(e=>{const{emojiConfig:t,EmojiIndex:n}=G();return r(()=>{const a=new n(t.emojiData);return e.reduce((e,t)=>{const n=a.emojis[t];return n?[...e,n]:(console.warn(`emoji for name "${t}" was not found`),e)},[])},[e])})(Oa),Ra=t.forwardRef((e,n)=>{const a=Da();return t.createElement(J,we({},e,{ref:n,reactionOptions:a}))}),ja=e=>{const n=Da();return t.createElement(K,we({},e,{reactionOptions:n}))},Ua=()=>{const{closeEmojiPicker:e,emojiPickerIsOpen:n,handleEmojiKeyDown:a,handleSubmit:l,isUploadEnabled:r,maxFilesLeft:o,numberOfUploads:i,openEmojiPicker:c,text:s,uploadNewFiles:d}=X(),{multipleUploads:m}=Y(),{getRootProps:u,isDragActive:g,isDragReject:f}=ue({disabled:!r||0===o,multiple:m,noClick:!0,onDrop:d}),E=Wa(),v=qa();return t.createElement(h,we({},u({borderColor:E?"transparent":"separatorTertiary",borderWidth:E?0:1,className:"custom-message-input-wrapper "+(E?"is-modal-child":""),marginHorizontal:E?0:1,position:"relative",radius:8,refKey:"innerRef"})),g&&t.createElement(Ba,{isDragReject:f}),r&&!!i&&t.createElement(Q,null),t.createElement(C,{innerRef:v},t.createElement(ee,{placeholder:"Send a message"})),t.createElement(h,{alignment:"center",axis:"horizontal",distribution:"space-between",padding:1.5,spacing:1},t.createElement(h,{alignment:"center",axis:"horizontal",height:"100%",spacing:1},t.createElement($a,{closeEmojiPicker:e,emojiPickerIsOpen:n,handleEmojiKeyDown:a,openEmojiPicker:c}),t.createElement(Fa,{isUploadEnabled:r,maxFilesLeft:o,multipleUploads:m,uploadNewFiles:d})),t.createElement(p,{alignSelf:"center",className:"focus-visible",color:Mt.lightNeutral100,css:{"&:active":{backgroundColor:Mt.interaction45},"&:hover":{backgroundColor:Mt.interaction50},"&[aria-disabled='true']":{"&:hover":{backgroundColor:`${Mt.lightNeutral81}`},backgroundColor:Mt.lightNeutral81},backgroundColor:Mt.interaction55},disabled:!i&&!s.length,onClick:l,title:E?"Save":"Send",tabIndex:0})))},Fa=({isUploadEnabled:e,maxFilesLeft:n,multipleUploads:a,uploadNewFiles:l})=>{const r=t.useMemo(()=>me(),[]),o=document.getElementById(r);return t.createElement(t.Fragment,null,t.createElement("label",{htmlFor:r,tabIndex:0,onKeyDown:e=>{!o||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),o.click())}},t.createElement(f,{color:Mt.lightNeutral45,css:{"&:active":{fill:Mt.lightNeutral12},"&:hover":{fill:Mt.lightNeutral24}},cursor:"pointer",height:"20px",name:"churchCenter.photosO",width:"20px"})),t.createElement(pe,{"aria-label":"File upload",className:"file-input",disabled:!e||0===n,id:r,multiple:a,onFileChange:l}))},$a=({closeEmojiPicker:e,emojiPickerIsOpen:n,handleEmojiKeyDown:a,openEmojiPicker:l})=>t.createElement(t.Fragment,null,t.createElement(p,{"aria-label":"Toggle emoji picker",className:"focus-visible",css:{"&:active":{fill:Mt.lightNeutral12},"&:hover":{fill:Mt.lightNeutral24}},fill:Mt.lightNeutral45,onClick:n?e:l,onKeyDown:a,paddingHorizontal:0,size:"sm",theme:!1,tooltip:"Pick an emoji"},t.createElement(C,{width:"23px",height:"23px"},t.createElement(te,null))),t.createElement(ne,{small:!0})),Ba=({isDragReject:e})=>t.createElement(h,{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")),Wa=()=>{const[e,t]=a(!1);return n(()=>{const e=document.querySelector(".str-chat__modal__inner"),n=document.querySelector(".custom-message-input-wrapper");t(null==e?void 0:e.contains(n))},[]),e},qa=()=>{const e=t.useRef(null);return n(()=>{if(e.current){var t,n,a;const l=null==(t=e.current)?void 0:t.querySelector("textarea");null==l||l.focus(),null==l||l.setSelectionRange(null==l||null==(n=l.value)?void 0:n.length,null==l||null==(a=l.value)?void 0:a.length)}},[]),e},Ga=()=>{var e;const{client:l,channel:r}=$(),{closeDrawer:o,isChannelViewActive:i,switchToChannelDetailsView:c,switchToChannelListView:s}=In(),d=(null==r||null==(e=r.data)?void 0:e.name)||"Channel name",[,m]=a(0);return n(()=>{if(!r)return On;const e=e=>{r&&r.cid===e.cid&&m(e=>e+1)};return l.on("channel.updated",e),()=>l.off("channel.updated",e)},[null==r?void 0:r.cid]),t.createElement(t.Fragment,null,t.createElement(h,{alignment:"baseline",axis:"horizontal",padding:2,paddingTop:1,spacing:1},t.createElement(p,{"aria-label":"Switch to chat list",icon:"general.leftChevron",onClick:s,size:"sm",title:"Back to chat list",variant:"naked"}),t.createElement(h,{shrink:1},t.createElement(yn,{truncate:!0},d),t.createElement(Ma,{channel:r})),t.createElement(h,{axis:"horizontal",marginLeft:"auto",spacing:1},t.createElement(p,{"aria-label":"Switch to conversation details",icon:"general.cog",onClick:c,size:"md",title:"Conversation details",variant:"naked"}),t.createElement(p,{"aria-label":"Close drawer",icon:"general.x",onClick:o,size:"md",title:"Close drawer",variant:"naked"}))),t.createElement(h,{grow:1,paddingBottom:2,shrink:1},t.createElement(ae,{Input:Ua,EditMessageInput:Ua,ReactionsList:ja,ReactionSelector:Ra,doMarkReadRequest:e=>i&&se(e.markRead(),"mark read")},t.createElement(le,null,t.createElement(re,{messageActions:["edit","delete","react"]}),t.createElement(oe,{disableMentions:!0,grow:!0})))))},Ja={plan_id:null,teams:[]},Ka=({filter:e})=>{const{people:o,createChat:i,isCreating:c,isFetching:s}=(e=>{const[t,o]=a([]),[i,c]=a(!1),[s,d]=a(!1),m=l({}),{findAndSwitchToChannel:u}=In(),p=Ln(),h=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]);return n(()=>{(async e=>{const t=JSON.stringify(e),n=m.current[t]||await(async e=>{d(!0);const t=await p.services.get("chat",we({fields:{Chat:"people"}},e));return d(!1),t})(e).then(e=>e.people);m.current[t]=n,o(n)})(h)},[h]),{createChat:async()=>{c(!0);const{payload:e}=await p.services.get("chat",we({fields:{Chat:"payload"}},h));p.chat.post("me/conversations",{payload:e}).then(u)},isCreating:i,isFetching:s,people:t}})(e),d=o.length>0,m=1===o.length?"Person":"People",u=o.filter(e=>e.child),p=u.length>0;return t.createElement(h,{grow:1},t.createElement(h,{grow:1,padding:2,paddingBottom:0,spacing:1},t.createElement(h,{alignment:"center",axis:"horizontal",spacing:1},t.createElement(w,{level:2},d?o.length:""," ",m," selected"),s&&t.createElement(Z,{size:"sm"})),d?t.createElement(t.Fragment,null,p&&t.createElement(Jn,{childPeople:u}),t.createElement(kn,null,t.createElement(h,{paddingBottom:2,spacing:2},o.map(e=>t.createElement(Bn,{key:e.id,person:e}))))):t.createElement(h,{alignment:"center",grow:1,maxHeight:18},t.createElement(g,{color:"foregroundSecondary"},"No Results"))),t.createElement(nl,{handleStartChat:i,startChatDisabled:!d,showSpinner:c}))},Xa=({value:e,name:t})=>({label:t,value:e}),Ya=({onChange:e,isActive:l,values:o})=>{const[i,c]=a({}),[s,d]=a(!1),[m,u]=a(0),p=Ln(),E=l&&s,v=!l&&o.teams.length>0;n(()=>{l||d(!1)},[l]),n(()=>{E&&o.teams.forEach(({team_id:e})=>{i[e]||(u(e=>e+1),p.services.get("chat",{fields:{Chat:"plans"},team_id:e}).then(({plans:t})=>{c(n=>we({},n,{[e]:t})),u(e=>e-1)}))})},[o.teams,E]);const b=r(()=>{const e=o.teams.reduce((e,{team_id:t})=>i[t]?we({},e,i[t].reduce((e,t)=>we({},e,{[t.value]:t}),{})):e,{});return Object.values(e).map(Xa)},[o.teams,i]);return t.createElement(h,{spacing:1},t.createElement(h,{axis:"horizontal",alignItems:"center",spacing:1},t.createElement(h,{alignItems:"center",axis:"horizontal",marginRight:"auto",spacing:1},t.createElement(V.InputLabel,{controls:"filter-by-plan-select",fontSize:"1.2em"},"Filter by plan"),m>0&&t.createElement(Z,{size:"xs"})),t.createElement(N,{disabled:!l,isChecked:s,onClick:()=>{d(e=>!e),e(e=>we({},e,{plan_id:null}))}})),s?t.createElement(M,{id:"filter-by-plan-select",value:o.plan_id,defaultValue:null,emptyValue:b.length?"Choose a plan":"No plans available",disabled:b.length<1,options:b,onChange:({value:t})=>{e(e=>we({},e,{plan_id:t}))}}):v?t.createElement(h,{axis:"horizontal",alignItems:"center",spacing:2,padding:2},t.createElement(f,{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)},Qa=({values:e,onChange:r,isActive:o})=>{const[i,c]=a(""),[s,d,m]=((e,t)=>{const[l,r]=a([]),[o,i]=a(!1),c=Ln();n(()=>{t&&(i(!0),c.services.get("chat",{fields:{Chat:"teams"}}).then(({teams:e})=>r(e)).finally(()=>i(!1)))},[t]);const[s,d]=l.reduce((t,n)=>(t[e.teams.some(({team_id:e})=>e===n.value.team_id)?0:1].push(n),t),[[],[]]);return[s,d,o]})(e,o),u=l();let E=0;const v={teams_i_lead:!0},b=((e,t)=>Ea(e,t,{keys:["name"],threshold:Ea.rankings.CONTAINS}).sort(xa).reduce((e,t)=>{var n;return e[n=t.group]||(e[n]=[]),e[t.group].push(t),e},{}))(d,i);n(()=>{o||c("")},[o]);const y=Object.entries(b);return t.createElement(h,{spacing:1},t.createElement(h,{axis:"horizontal",alignItems:"center",spacing:1},t.createElement(V.InputLabel,{fontSize:"1.2em",controls:"teams"},"Teams"),m&&t.createElement(Z,{size:"xs"})),t.createElement(h,{spacing:1},t.createElement(H,{spacing:1},s.map(e=>t.createElement(A,{key:e.value.team_id,size:"sm",title:e.name,renderLeft:t.createElement(p,{title:"remove",icon:"general.x"}),onClick:()=>r(t=>we({},t,{teams:t.teams.filter(({team_id:t})=>t!==e.value.team_id)}))}))),t.createElement(ll.Popover,{ref:u,id:"teams",openOnFocus:!0,closeOnSelect:!0,onClear:()=>c(""),onChange:e=>c(e.target.value),onSelect:({value:e})=>r(t=>we({},t,{teams:[...t.teams,e]})),placeholder:"Search teams",renderLeft:t.createElement(f,{name:"general.search"}),value:i},y.length?y.map(([e,n])=>{const a=n.map(e=>t.createElement(ll.Item,{key:E,index:E++,value:e},t.createElement(T,{query:i,text:e.name}))),l=n.length>10;return Object.keys(b).length>1?t.createElement(h,{key:e},t.createElement(h,{axis:"horizontal"},t.createElement(rl.Heading,{axis:"horizontal"},e),v[e]&&t.createElement(h,{padding:1,marginLeft:"auto"},t.createElement(p,{title:"Select all",size:"xs",variant:"outline",disabled:l,tooltip:{title:l?"Disabled when options would exceed 10":`select all in "${e}"`},onClick:()=>{r(e=>we({},e,{teams:[...e.teams,...n.map(e=>e.value)]})),u.current&&u.current.handleBlur()}}))),a):a}):t.createElement(rl.Item,null,t.createElement(g,null,"No matching teams for:"," ",t.createElement(g,{as:"span",inline:!0,italic:!0},`"${i}"`))))))},el=()=>t.createElement(h,{grow:1},t.createElement(h,{alignItems:"center",axis:"horizontal",padding:2,spacing:1},t.createElement(w,{level:2},"People selected")),t.createElement(h,{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."))),tl=({isActive:e})=>{const[l,o,i,c]=(e=>{const[t,l]=a(Ja);n(()=>{e||l(Ja)},[e]);const o=r(()=>{const[e,...n]=t.teams;return Boolean(e)&&n.every(({service_type_id:t})=>t===e.service_type_id)},[t.teams]);return n(()=>{o||l(e=>we({},e,{plan_id:null}))},[o]),[t,l,t.teams.length>0,o]})(e);return t.createElement(h,{grow:1},t.createElement(h,{spacing:2,padding:2},t.createElement(Qa,{values:l,onChange:o,isActive:e}),t.createElement(Ya,{values:l,onChange:o,isActive:c})),t.createElement(u,null),i?t.createElement(Ka,{filter:l}):t.createElement(t.Fragment,null,t.createElement(el,null),t.createElement(nl,{handleStartChat:On,startChatDisabled:!0,showSpinner:!1})))},nl=({handleStartChat:e,startChatDisabled:n,showSpinner:a})=>{const{switchToChannelListView:l}=In();return t.createElement(t.Fragment,null,t.createElement(u,null),t.createElement(h,{alignment:"center",grow:0,marginHorizontal:"auto",padding:2,spacing:2},t.createElement(g,{align:"center",size:5,color:"foregroundSecondary"},"Chat groups are dynamically updated based on the settings above. Any volunteer changes made in Services to a team or plan will be reflected in this group."),t.createElement(k,{columns:"auto 1fr",spacing:1,width:"100%"},t.createElement(p,we({"aria-label":"Back to channel list",onClick:l,variant:"outline"},ka),"Cancel"),t.createElement(p,we({"aria-label":"Start chat",disabled:n,onClick:e},Aa({disabled:n,spinner:a})),"Start chat"))))},al=()=>{const{isNewChatViewActive:e}=In();return t.createElement(t.Fragment,null,t.createElement(h,{alignment:"center",axis:"horizontal",spacing:1,padding:2,paddingTop:1},t.createElement(yn,{truncate:!0},"New Chat")),t.createElement(tl,{isActive:e}))},ll=P,rl=_,ol=V,il=({closeDrawer:e,children:a})=>{const{client:l,setActiveChannel:r}=$(),[o,i]=t.useState(!1),[c,s]=t.useState(0),d=()=>s(2);return n(()=>e,[]),t.createElement(_n,{value:{actionsOpenForChannel:o,closeDrawer:e,findAndSwitchToChannel:async({stream_channel_id:e})=>{const[t]=await l.queryChannels({id:{$eq:e}});t&&(r(t),d())},isChannelDetailsViewActive:3===c,isChannelViewActive:2===c,isNewChatViewActive:1===c,setActionsOpenForChannel:i,switchToChannelDetailsView:()=>s(3),switchToChannelListView:()=>s(0),switchToChannelView:d,switchToNewChatView:()=>s(1)}},t.createElement(An,{activeIndex:c},a))},cl=({chatClient:e,closeDrawer:n,env:a})=>t.createElement(ie,{client:e,theme:"str-chat__theme-light"},t.createElement(Tn,{env:a},t.createElement(il,{closeDrawer:n},t.createElement(La,{closeDrawer:n,client:e}),t.createElement(al,null),t.createElement(Ga,null),t.createElement(aa,null)))),sl={component:({closeDrawer:e,env:n,chatStreamUser:a})=>{const l=(e=>{const[n,a]=t.useState(null);return t.useEffect(()=>{if(!e)return On;let t=!1;const n=new ce(e.api_key),l=n.connectUser({id:e.id},e.token).then(()=>{t||a(n)});return()=>{t=!0,a(null),l.then(()=>n.disconnectUser()).then(()=>{console.log("connection closed")})}},[null==e?void 0:e.token]),n})(a);return l?t.createElement(cl,{chatClient:l,closeDrawer:e,env:n}):t.createElement(vn,{closeDrawer:e},t.createElement(h,{axis:"horizontal",spacing:1},t.createElement(yn,null,"Chat"),t.createElement(Z,{color:"hsl(0 0% 62%)",thickness:2,trackColor:"hsl(0 0% 97%)"})))},icons:{active:"general.textMessage",static:"general.outlinedTextMessage"},name:"Chat"},dl=P,ml=({sectionName:e,currentAppName:n})=>{const a=e.toLowerCase();return"account information"===a||"recent updates"===a?t.createElement(f,{name:"account information"===a?"general.cogPerson":"general.outlinedGenericFile",color:"foregroundSecondary"}):t.createElement(I,{name:n.toLowerCase().replace(/[\s]/,"-"),size:"sm",theme:"color",markOnly:!0})},ul=({hit:e,index:n})=>t.createElement(dl.Item,{key:e.objectID,index:n,value:e,paddingVertical:1},t.createElement(g,{color:"neutralDarker",size:4,whiteSpace:"normal"},e.title)),pl=({currentAppName:e,indexName:n})=>{const{query:a,refine:l}=fe(),{hits:r,results:o}=Ee(),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(dl.Popover,{placeholder:"Search our documentation",value:a,renderRight:t.createElement(f,{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(h,{axis:"horizontal",alignment:"center",paddingHorizontal:2,paddingVertical:1},t.createElement(g,{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(u,{margin:1}),t.createElement(h,{axis:"horizontal",alignment:"center",spacing:.5,paddingHorizontal:2,paddingVertical:1},t.createElement(ml,{currentAppName:e,sectionName:n}),t.createElement(g,{size:5,color:"foregroundSecondary",fontWeight:500},n)),a.map(e=>t.createElement(ul,{key:e.objectID,hit:e,index:c++})))}))},hl=({indexName:e,currentAppName:n})=>{const{algoliaSearchAuth:{algoliaApplicationId:a,algoliaSearchOnlyApiKey:l}}=Zt(),r=ge(a,l);return t.createElement(ve,{indexName:e,searchClient:r},t.createElement(be,{hitsPerPage:5}),t.createElement(pl,{currentAppName:n,indexName:e}))},{LoadingIndicator:gl,StackView:fl}=U,El={component:function({appName:e,closeDrawer:n,env:a,helpdeskConfig:l}){const r=`${s(a)("helpdesk")}/addons/toolbar.helpdesk.help`;return t.createElement(j,{grow:1,display:"flex",extensionId:"11",url:r,loadingFallback:t.createElement(fl,{flex:1,axis:"vertical"},t.createElement(vn,{closeDrawer:n},t.createElement(fl,{axis:"horizontal",spacing:1},t.createElement(yn,null,"Help and support"),t.createElement(gl,null)))),additionalComponents:{CalendlyWidget:he,DocumentationSearch:hl,DrawerHeader:vn,DrawerHeading:yn,ScrollContainer:kn,SwitchView:An},args:{appName:e,closeDrawer:n,currentPageParams:location.search,helpdeskConfig:l}})},icons:{active:"general.questionCircle",static:"general.outlinedQuestionCircle"},name:"Help"},vl=["dark","style"],bl=e=>{let{dark:n,style:a}=e,l=xe(e,vl);return t.createElement("div",we({style:we({color:n?Mt.lightNeutral62:Mt.lightNeutral24,fontSize:"10px",fontWeight:400,textTransform:"uppercase"},a)},l))},yl=({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",we({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?Mt.interaction66:Mt.lightNeutral81,r:"6",style:{transition:"all 0.2s"}}),t.createElement("circle",{cx:"6",cy:"6",fill:Mt.lightNeutral100,r:"5"}),!e&&t.createElement("circle",{cx:"6",cy:"6",r:"4",fill:Mt.interaction66})))},Cl=({mobile:e=!1,isLast:n,onMarkAsRead:a=(async()=>Promise.resolve({})),onToggleRead:l,showBottomBorder:r,notification:o})=>{const{appName:i,createdAt:c,isRead:s,link:d,title:m}=o,{organizationTimeZone:u}=Zt(),[p,h]=t.useState(!1),g={style:"relative"};return u&&(g.timeZone=u),t.createElement(vt,{active:p,"data-turbolinks":!1,href:d,onClick:async e=>{h(!0),await a(o),window.location.href=d},style:we({alignItems:"flex-start",borderBottom:r||!n?`1px solid ${e?Mt.lightNeutral24:Mt.lightNeutral93}`:"none",cursor:"pointer",display:"flex",overflow:"hidden",padding:"12px 16px",textDecoration:"none",verticalAlign:"middle"},Ke)},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%"}[i]||"0 0% 81%"} / ${s?"40%":"100%"}`,display:"flex",marginBottom:"10px",paddingLeft:"8px"}},t.createElement("div",{style:{flexGrow:1,marginRight:"16px"}},t.createElement(bl,{dark:e,style:{marginBottom:"6px",userSelect:"none"}},i),t.createElement("h1",{style:{color:e?Mt.lightNeutral88:Mt.darkNeutral12,fontSize:"14px",fontWeight:500,lineHeight:"1.3em",margin:0,userSelect:"none"}},m)),!e&&t.createElement(yl,we({onClick:e=>{e.preventDefault(),e.stopPropagation(),l()}},{isRead:s}))),t.createElement("div",{style:{color:e?Mt.lightNeutral62:Mt.lightNeutral24,fontSize:"12px",paddingLeft:"12px",userSelect:"none"}},de.datetime(c,g))))},wl=({context:e,dark:n=!1,description:a,title:l="No notifications"})=>t.createElement(h,{alignment:"center",distribution:"center",padding:4},t.createElement(rt,we({id:e},{dark:n})),t.createElement(w,{color:n?"#fafafa":"#3d3d3d",fontWeight:500,marginTop:1,size:3},l),t.createElement(g,{align:"center",color:n?"#fafafa":"#3d3d3d",size:4},a)),kl=(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),m=null==(n=d(e.relationships.app.data,t.included))||null==(a=n.attributes)?void 0:a.name,u=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:m,createdAt:new Date(e.attributes.created_at),id:e.id,isRead:(null==(s=e.attributes.read_at)?void 0:s.length)>0,link:null==u?void 0:u.link,title:null==u?void 0:u.title}},xl=["disabled","onClick","title"],Al=e=>{let{disabled:n,onClick:a,title:l}=e,r=xe(e,xl);return t.createElement(h,we({color:n?Mt.lightNeutral62:Mt.interaction66,cursor:n?"default":"pointer",fontSize:5,fontWeight:600,userSelect:"none",onClick:!n&&a},r),l)},Sl=e=>{let n=we({},(ke(e),e));return t.createElement(w,we({color:Mt.lightNeutral12,lineHeight:2,size:5,textTransform:"uppercase",userSelect:"none"},n))},Nl={component:function({closeDrawer:e}){const[n,a]=t.useState(!1),l={transition:"opacity 300ms ease-in-out"},r={entered:{opacity:1},entering:{opacity:.2}},{env:o,enabled:i,joltChannel:c}=_e.getState().notifications,{handleMarkAllAsRead:d,handleMarkAsRead:m,handleToggleRead:u,hasError:p,isLoading:g,read:f,unread:E}=(({enabled:e,env:n,joltChannel:a})=>{const[l,r]=t.useState([]),[o,i]=t.useState(!0),[c,d]=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)=>we({},e,t.isRead?{read:[...e.read,t]}:{unread:[...e.unread,t]}),{read:[],unread:[]});return{read:t,unread:n}})(l),p=()=>{try{d(!1),Ze(Se,`${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=>kl(t,e));i(!1),r(t)})}catch(e){d(!0),console.error("topbar encountered error when fetching all notifications",e)}};t.useEffect(()=>{e&&p()},[e]);const h=e=>"string"==typeof e.data?JSON.parse(e.data):e.data,g=t.useCallback(e=>{try{(async e=>{try{return d(!1),Ze(Se,`${window.location.origin}/~api/notifications/v2/me/notifications/${e}?include=app,web_payloads`).then(({json:e})=>e)}catch(e){d(!0),console.error("topbar encountered error when fetching a single notification",e)}})(h(e).data.id).then(e=>{const t=kl(e.data,e);r(e=>[...e.filter(e=>e.id!==t.id),t])})}catch(e){console.error("topbar encountered error when updating state from jolt message",e)}},[kl,h,p,m,r,u]),f=t.useCallback(e=>{const t=h(e),n=l.filter(e=>e.id!==t.data.id);r(n)},[h,l,r]);Ve(e?a:void 0,"notifications.v2.events.notification.created",g),Ve(e?a:void 0,"notifications.v2.events.notification.updated",g),Ve(e?a:void 0,"notifications.v2.events.notification.destroyed",f);const E=async(e,t)=>{const a=e.reduce((e,n)=>[...e,{attributes:{action:t},id:n,type:"graph_notification"}],[]);return Ze(Ne,`${s(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||(i(!1),d(!0),r(t=>t.map(t=>e.includes(t.id)?we({},t,{isRead:!t.isRead}):t)))})};return{handleMarkAllAsRead:()=>{const e=u.map(e=>e.id);r(t=>t.map(t=>e.includes(t.id)?we({},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 r(n=>n.map(n=>e.id==n.id?we({},n,{isRead:"read"===t}):n)),E([e.id],t)},hasError:c,isLoading:o,read:m,unread:u}})({env:o,enabled:i,joltChannel:c});return t.createElement(t.Fragment,null,t.createElement(vn,{closeDrawer:e},t.createElement(h,{spacing:.5},t.createElement(h,{alignment:"center",axis:"horizontal",spacing:1},t.createElement(yn,null,"Notifications"),g&&t.createElement(Z,{color:"hsl(0 0% 62%)",thickness:2,trackColor:"hsl(0 0% 97%)"}),p&&t.createElement(it,{fill:"hsl(8 60% 47%)",size:16})),f.length>0&&t.createElement(Al,{onClick:()=>a(e=>!e),title:(n?"Hide":"Show")+" read"}))),t.createElement(kn,null,t.createElement(h,{alignment:"stretch",spacing:2},t.createElement("div",{style:{boxSizing:"border-box",display:"flex",flexDirection:"column",justifyContent:"space-between",margin:0,padding:"4px 0"}},!g&&0===E.length&&t.createElement(wl,we({context:"toolbar",description:`When you have ${f.length>0?"unread ":""}notifications they will show up here.`},f.length>0&&{title:"No unread notifications"})),E.length>0&&t.createElement(h,{axis:"horizontal",alignment:"center",distribution:"space-between",padding:2},t.createElement(Sl,null,"Unread"),E.length>0&&t.createElement(Al,{onClick:()=>d(),title:`Mark ${E.length} as read`})),t.createElement(ye,{exit:!1},E.map((e,n)=>t.createElement(Ce,{key:e.id,timeout:0},a=>t.createElement("div",{style:we({},l,r[a])},t.createElement(Cl,we({isLast:E.length===n+1,key:e.id,onMarkAsRead:m,onToggleRead:()=>u(e),showBottomBorder:f.length>0},{notification:e})))))),f.length>0&&n&&t.createElement(t.Fragment,null,t.createElement(Sl,{padding:2},"Read"),t.createElement(ye,{exit:!1},f.map(e=>t.createElement(Ce,{key:e.id,timeout:0},n=>t.createElement("div",{style:we({},l,r[n])},t.createElement("div",{style:{opacity:.6}},t.createElement(Cl,we({key:e.id,onToggleRead:()=>u(e),showBottomBorder:!0},{notification:e}))))))))))))},icons:{active:"toolbar.notification",static:"toolbar.notificationO"},name:"Notifications"},{LoadingIndicator:Zl,StackView:zl}=U,Vl={component:function({closeDrawer:e,enableJoltLogging:n,env:l,isOpen:r,joltPromise:o,onReceiveWorker:c,openDrawer:d}){const m=`${s(l)("home")}/addons/toolbar.tasks.list.js`,[u,p]=a(),[h,g]=a(),f=ze({channelName:null==h?void 0:h.channelName,enableJoltLogging:n,enabled:!!h,env:l,fetchSubscribeToken:async e=>{const t=h.subscribeUrl;return(await Ze(Ne,t,{data:{data:{attributes:{connection_id:e}}},method:"POST"})).json.data.id},joltPromise:o}),E=i(e=>{p(we({},e,{timestamp:(new Date).getTime()}))},[]);Ve(f,"",E);const v=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(j,{grow:1,display:"flex",extensionId:"2",url:m,onReceiveWorker:c,loadingFallback:t.createElement(zl,{flex:1,axis:"vertical"},t.createElement(vn,{closeDrawer:e},t.createElement(zl,{axis:"horizontal",spacing:1},t.createElement(yn,null,"Tasks"),t.createElement(Zl,null)))),additionalComponents:{DrawerHeader:vn,DrawerHeading:yn,SwitchView:An},args:{closeDrawer:e,isOpen:r,latestJoltMessage:u,openDrawer:d,requestJoltChannel:g,trackPendo:v}})},icons:{active:"toolbar.checklist",static:"toolbar.checklistO"},name:"Tasks"},Ml=e=>t.createElement(C,we({backgroundColor:Mt.home.brand62,height:1.5,pointerEvents:"none",position:"absolute",radius:"50%",right:.25,top:.25,width:1.5,zIndex:6},e)),Hl={Chat:sl,Notifications:Nl,Tasks:Vl};function Tl({appName:l,autoMountTool:r,enableJoltLogging:o,env:i,helpdeskConfig:c={},linkToProfile:d=!0,userAvatarPath:E,userName:b,onReceiveTasksWorker:y}){const A=r?Hl[r]:null,[S,N]=e.useReducer(Zn,we({},Nn,{currentContent:A})),{currentContent:Z,open:z}=S,V=!!Z,{helpdeskEnabled:M,indicatorVisible:H,joltPromise:T,chatEnabled:P,userId:_}=Zt(),I=(({enableJoltLogging:e,env:n,userId:a,isEnabled:l,joltPromise:r})=>{const[o,i]=t.useState(null),c=ze({channelName:`chat.people.${a}`,enableJoltLogging:e,enabled:l,env:n,fetchSubscribeToken:async e=>{const t=`${s(n)("api")}/chat/v2/me/jolt_subscribe`;return Ze(Ne,t,{data:{data:{attributes:{cid:e}}},method:"POST"}).then(({json:e})=>e.data.id)},joltPromise:r}),d=()=>Ze(Se,`${s(n)("api")}/chat/v2/me/stream_user`).then(({json:{data:{id:e,attributes:t}}})=>{const{token:n}=t,a=xe(t,Dn);i(n?t=>we({id:e,token:n},t,a):null)}).catch(On);return Ve(l?c:void 0,"STREAM_USER_UPDATED",d),t.useEffect(()=>{l&&d()},[l]),o})({enableJoltLogging:o,env:i,isEnabled:Boolean(_&&P),joltPromise:T,userId:_});t.useEffect(()=>{z?(document.body.style.overflow="hidden",window.scrollTo(0,0)):document.body.style.overflow="auto"},[z]);const L=cn({appName:l.replace(/[\s-]/,""),env:i,userId:_}),O=`${s(i)("login")}/logout`,D=`/people/AC${_}`,R=[M&&El].filter(Boolean),j=[Nl,Vl,I&&sl].filter(Boolean),U=e=>{N({payload:{content:e},type:Sn.mount}),setTimeout(()=>N({type:Sn.open}))},$=()=>{N({type:Sn.close}),setTimeout(()=>N({type:Sn.unmount}),100)},B=e=>z?(null==Z?void 0:Z.name)===e.name?$():N({payload:{content:e},type:Sn.set}):U(e),W={component:()=>function({closeDrawer:e,linkToProfile:n,loginSettingsUrl:a,logoutUrl:l,profileUrl:r,userAvatarPath:o}){const{mfaConfigured:i,mfaEnabled:c,name:s}=Zt();return t.createElement(h,{axis:"vertical",spacing:t.createElement(u,null)},t.createElement(k,{columns:"auto 1fr auto",alignment:"start",spacing:2,padding:2,paddingTop:1,width:"100%"},t.createElement(x,{source:o,size:"md"}),t.createElement(h,{axis:"vertical",spacing:1,grow:0,shrink:1},t.createElement(w,{level:3,weight:600,paddingTop:.5,color:Mt.lightNeutral12},s),n&&t.createElement(v,{to:r,style:{color:Mt.lightNeutral45}},"My profile"),c&&t.createElement(t.Fragment,null,t.createElement(v,{to:a,style:{color:Mt.lightNeutral45}},"My login settings"),t.createElement(h,{axis:"horizontal",alignment:"center",spacing:.5,width:"100%"},t.createElement(f,{name:i?"general.lock":"general.unlock",size:"sm",color:i?Mt.success25:Mt.danger45}),t.createElement(g,{size:5,weight:400,color:Mt.lightNeutral62,wrap:!0},"Two-step verification ",i?"active":"inactive")))),t.createElement(p,{icon:{fill:Mt.lightNeutral24,name:"general.x",size:"md"},onClick:e,title:"Close",variant:"naked",theme:!1,hover:{backgroundColor:Mt.lightNeutral95}})),t.createElement("form",{method:"POST",action:l},t.createElement(p,{"data-turbolinks":!1,onClick:()=>{Oe()},style:{padding:0},theme:!1,type:"submit",width:"100%"},t.createElement(h,{distribution:"space-between",alignment:"center",axis:"horizontal",grow:1,paddingHorizontal:3,paddingVertical:2},t.createElement(g,{color:Mt.lightNeutral45},"Log out"),t.createElement(f,{name:"general.intoBox",fill:Mt.lightNeutral45})))))}({closeDrawer:$,linkToProfile:d,loginSettingsUrl:L,logoutUrl:O,profileUrl:D,userAvatarPath:E}),name:"Profile"},q=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: 600px)"),[G,J]=t.useState(0);t.useLayoutEffect(()=>{const e=()=>{J(window.innerHeight)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const K=we({appName:l,closeDrawer:$,env:i,helpdeskConfig:c,isOpen:z,joltPromise:T,openDrawer:()=>Z&&U(Z),userId:_},Z?{Chat:{chatStreamUser:I},Tasks:{onReceiveWorker:y}}[Z.name]:{}),X=we({},H,{Chat:(null==I?void 0:I.total_unread_count)>0}),Y=({tool:e,open:n,currentContent:a,indicatorState:l})=>t.createElement(C,{"data-pendo":`toolbar-${e.name.toLowerCase()}`,key:e.name,position:"relative"},l[e.name]&&t.createElement(Ml,null),t.createElement(p,{id:`toolbar-${e.name.toLowerCase()}`,color:n&&a===e?Mt.lightNeutral24:Mt.lightNeutral62,hover:{color:Mt.lightNeutral24},icon:{name:n&&a===e?e.icons.active:e.icons.static,size:"20px"},key:e.name,onClick:()=>B(e),title:`Open ${e.name} drawer`,theme:!1}));return t.createElement(m,{theme:mn},t.createElement(F,null,q?t.createElement(t.Fragment,null,t.createElement(h,{left:0,position:"absolute",right:0,pointerEvents:"none",style:{minHeight:G},top:0,zIndex:10001},t.createElement(h,{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(h,{alignment:"center",flex:"1",position:"relative"},t.createElement(p,{css:{WebkitTapHighlightColor:"transparent"},color:z?Mt.lightNeutral62:Mt.lightNeutral24,hover:{color:Mt.lightNeutral24},icon:{name:z?"toolbar.planningCenterO":"toolbar.planningCenter",size:"20px"},onClick:()=>$(),padding:2,theme:!1,title:"Home"})),[...R,...j].map(e=>t.createElement(h,{alignment:"center",flex:"1",key:e.name,position:"relative"},t.createElement(p,{id:`toolbar-${e.name.toLowerCase()}`,"aria-label":`${e.name}`,color:z&&Z===e?Mt.lightNeutral24:Mt.lightNeutral62,css:{WebkitTapHighlightColor:"transparent"},hover:{color:Mt.lightNeutral24},key:e.name,onClick:()=>(e=>{var t;U(e),null==(t=document.getElementById(`toolbarDrawer${e.name}`))||t.scrollTo({behavior:"smooth",top:0})})(e),paddingHorizontal:2,paddingVertical:2,theme:!1},t.createElement(C,{position:"relative"},X[e.name]&&t.createElement(Ml,{right:-.5,top:-.5}),t.createElement(f,{name:z&&Z===e?e.icons.active:e.icons.static,size:"20px"}))))))),V&&t.createElement(En,{id:`toolbarDrawer${Z.name}`,bottom:"52px",height:"calc(100% - 52px)",overflow:"auto",position:"absolute"},t.createElement(Z.component,we({},K)))):t.createElement(h,{height:"100vh",position:"absolute",right:0,width:z?"calc(360px + 48px)":"48px",transition:"all 100ms ease-in-out"},t.createElement(h,{backgroundColor:"surface",borderLeftColor:"separatorTertiary",borderLeftWidth:1,grow:1,paddingVertical:1,spacing:t.createElement(u,{margin:2}),zIndex:2,position:"absolute",right:0,height:"100%",width:"48px"},t.createElement(h,{alignment:"center","data-pendo":"toolbar-profile-support-wrapper",spacing:2},t.createElement(p,{"data-pendo":"toolbar-profile",onClick:()=>B(W),radius:0,theme:!1},t.createElement(x,{alt:`${b}'s avatar`,hover:{outlineColor:Mt.lightNeutral62},outlineColor:z&&V&&"Profile"==Z.name?Mt.lightNeutral62:"transparent",outlineOffset:"2px",outlineStyle:"solid",outlineWidth:"2px",size:"sm",source:E})),!M&&t.createElement(p,{color:Mt.lightNeutral62,"data-pendo":"toolbar-support",hover:{color:Mt.lightNeutral24},icon:{name:"general.outlinedQuestionCircle",pointerEvents:"none",size:"20px"},id:"jsLaunchHelpdesk",title:"Help",theme:!1}),R.map(e=>t.createElement(Y,{key:e.name,tool:e,open:z,currentContent:Z,indicatorState:X}))),t.createElement(h,{alignment:"center",spacing:2},j.map(e=>t.createElement(Y,{key:e.name,tool:e,open:z,currentContent:Z,indicatorState:X})))),V&&t.createElement(En,{hasShadow:!0,id:`toolbarDrawer${Z.name}`,width:"360px"},t.createElement(Z.component,we({},K))))))}export{Ie as AppsProvider,lt as BellIcon,De as ConnectedPeopleProvider,je as DisplaySwitch,Rt as NotSmallRoute,Dt as NotSmallTopbar,Wt as PlatformAnnouncements,Bt as PlatformAnnouncementsStyleProvider,Yt as ProductAnnouncement,Qt as ProductAnnouncementStyleProvider,fn as SmallRoute,gn as SmallTopbar,ct as SpyglassIcon,$t as StyledPlatformAnnouncement,en as StyledProductAnnouncement,tn as StyledProductAnnouncementDimissButton,An as SwitchView,Tl as Toolbar,st as XIcon,Le as mapApps,Ne as railsCsrfFetch};
|
|
1
|
+
import*as e from"react";import t,{useEffect as n,useState as a,useRef as l,useMemo as r,useContext as o,useCallback as i}from"react";import c from"@planningcenter/jolt-client";import s from"@planningcenter/url";import{useSyncExternalStore as d}from"use-sync-external-store/shim";import{ThemeProvider as m,Divider as u,Button as p,StackView as h,Text as g,Icon as f,designSystem as E,Link as v,HeadingUppercase as b,List as y,Box as C,Heading as w,GridView as k,Avatar as x,Badge as A,Collapse as S,ToggleSwitch as N,Spinner as Z,Dropdown as z,Input as V,Select as M,WrapView as H,Highlight as T,Combobox as P,Menu as _,Logo as I}from"@planningcenter/tapestry-react";import*as L from"@planningcenter/icons/paths/church-center";import*as O from"@planningcenter/icons/paths/general";import*as D from"@planningcenter/icons/paths/people";import*as R from"@planningcenter/icons/paths/toolbar";import{UiExtensionFirstPartyComponent as j,components as U,UiExtensionDataContext as F}from"@planningcenter/add-ons";import{useChatContext as $,Avatar as B,ChannelList as W,InfiniteScroll as q,useEmojiContext as G,ReactionSelector as J,ReactionsList as K,useMessageInputContext as X,useChannelStateContext as Y,AttachmentPreviewList as Q,ChatAutoComplete as ee,EmojiPickerIcon as te,EmojiPicker as ne,Channel as ae,Window as le,MessageList as re,MessageInput as oe,Chat as ie}from"stream-chat-react";import{StreamChat as ce,logChatPromiseExecution as se}from"stream-chat";import de from"@churchcenter/datetime-fmt";import{nanoid as me}from"nanoid";import{useDropzone as ue}from"react-dropzone";import{UploadButton as pe}from"react-file-utils";import{InlineWidget as he}from"react-calendly";import ge from"algoliasearch";import{useSearchBox as fe,useHits as Ee,InstantSearch as ve,Configure as be}from"react-instantsearch";import{TransitionGroup as ye,Transition as Ce}from"react-transition-group";function we(){return we=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},we.apply(this,arguments)}function ke(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function xe(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 Ae=["headers"],Se=(e,t)=>fetch(e,we({credentials:"include",mode:"cors"},t)),Ne=(e,t)=>{let{headers:n}=t,a=xe(t,Ae);return fetch(e,we({headers:we({},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 Ze(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 ze=({channelName:e,enableJoltLogging:n=!1,enabled:a=!0,env:l,wssEndpoint:r,fetchSubscribeToken:o,joltPromise:i=(()=>Promise.resolve())})=>{const[d,m]=t.useState(),[u,p]=t.useState(),[h,g]=t.useState(!1),f=t.useCallback(async()=>{let t=await i().then(e=>e);const a=async(e,t)=>o(t);t||(g(!0),t=new c(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()=>Ze(Ne,`${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});m(s),p(t)},[Ze,e,l,s,Ne]);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)&&u&&u.disconnect()};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)},[u]),t.useEffect(()=>()=>{u&&h&&u.disconnect()},[u]),d},Ve=(e,t,a)=>n(()=>e?(e.bind(t,a),()=>e.unbind(t,a)):()=>{},[e,a]),Me=(e,t=1)=>{const n=e.replace(/[a-z()%]/g,"").split(" ");return`hsla(${n[0]}, ${n[1]}%, ${n[2]}%, ${t})`},He=(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 Te(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 Pe=()=>{},_e=function(e){let t={};const n=new Set;return{getState:()=>t,setState:e=>{t=e,n.forEach(e=>e(t))},subscribe:e=>(n.add(e),()=>n.delete(e))}}(),Ie=({configuredFetch:e=Se,enableJoltLogging:l,env:r,formatter:o=Le,joltPromise:i,wssEndpoint:c,render:d,userId:m})=>{var u,p,h,g,f,E,v,b,y,C,w,k,x,A,S,N,Z,z,V,M,H;const T=(({configuredFetch:e,env:t})=>{const{storedValue:l,setStoredValue:r}=Te("Topbar",{}),[o,i]=a(l);n(()=>{c()},[]);const c=()=>{Ze(e,`${s(t)("api")}/people/v2/me/topbar`).then(({json:e,ok:t})=>{t&&(i(e),r(e))})};return o})({configuredFetch:e,env:r}),P=o(T),_=null==T||null==(u=T.data)||null==(p=u.attributes)?void 0:p.has_connected_people,I=null==T||null==(h=T.data)||null==(g=h.attributes)||null==(f=g.features)?void 0:f.includes("mfa_enabled"),L=!(null==T||null==(E=T.data)||null==(v=E.attributes)||!v.mfa_configured),O=null==T||null==(b=T.data)||null==(y=b.attributes)?void 0:y.name,D=!window.notificationsDisabled,R=(null==T||null==(C=T.data)||null==(w=C.attributes)?void 0:w.org_time_zone)||"America/Los_Angeles",j=null==T||null==(k=T.data)||null==(x=k.attributes)||null==(A=x.features)?void 0:A.includes("helpdesk_enabled"),U=null==T||null==(S=T.data)||null==(N=S.attributes)||null==(Z=N.features)?void 0:Z.includes("chat_enabled"),F={algoliaApplicationId:null==T||null==(z=T.data)||null==(V=z.attributes)?void 0:V.algolia_application_identifier,algoliaSearchOnlyApiKey:null==T||null==(M=T.data)||null==(H=M.attributes)?void 0:H.algolia_search_key},$=ze({channelName:`notifications.people.${m}`,enableJoltLogging:l,enabled:!0,env:r,wssEndpoint:c,fetchSubscribeToken:async e=>{const t=`${window.location.origin}/~api/notifications/v2/me/notifications_jolt_subscribe`;return Ze(Ne,t,{data:{data:{attributes:{cid:e}}},method:"POST"}).then(({json:e})=>e.data.id)},joltPromise:i}),B=(({enabled:e,joltChannel:n})=>{const{storedValue:a,setStoredValue:l}=Te("Topbar:Notifications:hasUnread",!1),r=((e,n=0)=>t.useMemo(()=>He(e,n),[]))(()=>{const e=`${window.location.origin}/~api/notifications/v2/me/unread`;Ze(Se,e).then(({json:e})=>{l(e.data.attributes.unread)}).catch(Pe)},300);return t.useEffect(()=>{e&&r()},[e]),Ve(e?n:void 0,"notifications.v2.events.notification.created",r),Ve(e?n:void 0,"notifications.v2.events.notification.updated",r),Ve(e?n:void 0,"notifications.v2.events.notification.destroyed",r),a})({enabled:!0,env:r,joltChannel:$});return n(()=>{const e=_e.getState();_e.setState(we({},e,{algoliaSearchAuth:F,chatEnabled:U,hasConnectedPeople:_,helpdeskEnabled:j,indicatorVisible:we({},e.indicatorVisible,{Notifications:B}),joltPromise:i,mfaConfigured:L,mfaEnabled:I,name:O,notifications:{enabled:D,env:r,joltChannel:$},notificationsEnabled:D,notificationsJoltChannel:$,organizationTimeZone:R,userId:m}))},[i,L,I,O,D,B,R,m]),d(P||[],{fetch:()=>{},remove:()=>{}})};function Le(e){var t,n;return(null==e||null==(t=e.data)||null==(n=t.attributes)?void 0:n.apps)||[]}function Oe(){window.localStorage.removeItem("Topbar:ConnectedPeople")}class De extends t.Component{constructor(e){super(e),this.state={connectedPeople:[]}}fetch(){Ze(this.props.configuredFetch,`${s(this.props.env)("api")}/login/v2/me/connected_people`).then(({json:e})=>{const t=e.data;return this.setState({connectedPeople:t},()=>window.localStorage.setItem("Topbar:ConnectedPeople",JSON.stringify(t)))})}unlink(){Ze(this.props.configuredFetch,`${s(this.props.env)("api")}/login/v2/me/unlink`,{method:"POST"}).then(({json:e})=>{window.location=e.meta.redirect_to})}switch(e,t){Ze(this.props.configuredFetch,`${s(this.props.env)("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})}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:Oe.bind(this),switch:this.switch.bind(this),unlink:this.unlink.bind(this)})}}De.defaultProps={configuredFetch:Se};class Re 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",He(this.setWindowWidth,100),!1)}componentWillUnmount(){window.removeEventListener("resize",He(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 je extends t.Component{render(){return t.createElement(Re,{render:e=>-1!==this.props.smallBreakpoints.indexOf(e)?this.props.smallTopbar(e):this.props.notSmallTopbar(e)})}}function Ue({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"})}je.defaultProps={smallBreakpoints:["xs","sm"]};var Fe={__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:Ue,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 $e=["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 We(e){let{appName:n,colors:a,style:l,size:r=20}=e,o=xe(e,$e);return t.createElement("svg",we({xmlns:"http://www.w3.org/2000/svg",width:r,height:r,viewBox:"0 0 20 20",role:"img","aria-labelledby":"title desc",style:we({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),Fe[n]?t.createElement(Fe[n],{color:"Accounts"!=n?a.base0:"#fff"}):t.createElement("div",null,"appName not supported"))}var qe={__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 Ge({appName:e,color:n,size:a=20}){return qe[e]?t.createElement(qe[e],{color:n,size:a}):t.createElement("div",null,"appName not supported")}const Je={transition:"background-color 120ms ease-in"},Ke={fontFamily:"inherit"},Xe={flex:"1 1 auto"},Ye=["dot","dotFill","fill","style"],Qe=["dark","id","style"],et=["colors","style"],tt=["fill","size","style"],nt=["fill","style"],at=["fill","style"],lt=e=>{let{dot:n=!1,dotFill:a="#fff",fill:l="#fff",style:r}=e,o=xe(e,Ye);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",we({width:"24",height:"24",viewBox:"0 0 24 24",style:we({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}))},rt=e=>{let{dark:n=!1,id:a="default",style:l}=e,r=xe(e,Qe);return t.createElement("svg",we({fill:"none",height:"123",style:we({},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"}))))},ot=e=>{let{colors:n,style:a}=e,l=xe(e,et);return t.createElement("svg",we({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"}))},it=e=>{let{fill:n="#000",size:a=24,style:l}=e,r=xe(e,tt);return t.createElement("svg",we({height:a,style:we({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}))},ct=e=>{let{fill:n="#000",style:a}=e,l=xe(e,nt);return t.createElement("svg",we({width:"24",height:"24",viewBox:"0 0 24 24",style:we({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}))},st=e=>{let{fill:n="#A0A0A0",style:a}=e,l=xe(e,at);return t.createElement("svg",we({width:"16",height:"16",viewBox:"0 0 16 16",style:we({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}))},dt=["style"];function mt(e){let{style:n}=e,a=xe(e,dt);return t.createElement("button",we({style:we({WebkitAppearance:"none",appearance:"none",backgroundColor:"transparent",border:"none",cursor:"pointer",display:"inline-block",outline:0,padding:0},Ke,n)},a))}const ut=["appName","colors","displayIconOnly","expanded","onClick","style"],pt=e=>{let{appName:n,colors:a,displayIconOnly:l,expanded:r,onClick:o,style:i=null}=e,c=xe(e,ut);const[s,d]=t.useState(!1),[m,u]=t.useState(!1);return t.createElement(mt,we({onClick:o,onMouseDown:()=>d(!0),onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),onMouseUp:()=>d(!1),style:we({alignItems:"center",backgroundColor:r&&!s?a.base1:m&&s?a.base2:m?a.base1:"transparent",display:"flex",height:"100%",outline:0,paddingLeft:"16px",paddingRight:"16px",whiteSpace:"nowrap"},Je,i)},c),t.createElement(We,{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(Ge,{appName:n.replace(/[\s-]/,""),color:"#fff",key:"mono-app-name",size:24})),t.createElement("div",{key:"space-2",style:{margin:4}}),t.createElement(ot,{colors:a,key:"disclosure-chevron-icon",style:{display:"block"}})))};var ht={__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 gt({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(ht[e]?ht[e]:"span",{key:"key1"}),Fe[e]?t.createElement(Fe[e],{color:"#fff",key:"key2"}):t.createElement("div",{key:"key3"},"appName not supported"))}function ft(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 Et=["active","component","style"],vt=e=>{let{active:n=!1,component:a="span",style:l=null}=e,r=xe(e,Et);const[o,i]=t.useState(!1);return t.createElement(a,we({onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),style:we({},l,{backgroundColor:n?"#ededed":o?"#f7f7f7":"transparent"})},r))},bt=["cleanup","onOutsideClick","visible"];class yt 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=xe(e,bt);return n?document.removeEventListener("click",this.handleOutsideClick,!0):document.addEventListener("click",this.handleOutsideClick,!0),t.createElement("div",we({ref:e=>this.container=e},a))}}const Ct=["style"],wt=e=>{let{style:n=null}=e,a=xe(e,Ct);return t.createElement("div",we({style:we({alignSelf:"flex-end",display:"flex",position:"relative"},n)},a))},kt=["component","style"],xt=e=>{let{component:n="div",style:a=null}=e,l=xe(e,kt);return t.createElement(n,we({style:we({background:"#FFFFFF",borderRadius:"3px",boxShadow:"0 0 0 1px #D4D9E2, 0 8px 32px rgba(0,0,0,.3)",overflow:"hidden",position:"absolute"},a)},l))},At=({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),c=[...n].filter(({name:e})=>"Home"!==e&&"Accounts"!==e).sort((e,t)=>e.name.localeCompare(t.name)),d=we({},Ke,{alignItems:"center",display:"flex",height:"48px",overflow:"hidden",padding:"0 16px",verticalAlign:"middle"});return t.createElement(wt,null,t.createElement(xt,{cleanup:!r,component:yt,onOutsideClick:l,style:we({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(vt,{component:"a","data-pendo":`app-switcher--change-app--${i.name}`,"data-turbolinks":!1,href:e===i.name?`${s(a)("accounts")}/apps/${e}`:s(a)("accounts")+ft(i.name),style:we({},d,{borderBottom:"1px solid #ededed"})},t.createElement("div",{style:{marginRight:"6px"}},t.createElement(gt,{appName:"Home",size:20})),t.createElement(Ge,{appName:"Home",color:"#444",size:18})),c.map(({name:n},l)=>{const r=0===l,o=l===c.length-1;return t.createElement(vt,{component:"a","data-pendo":`app-switcher--change-app--${n}`,"data-turbolinks":!1,href:n===e?`${s(a)("accounts")}/apps/${n.toLowerCase()}`:s(a)("accounts")+ft(n),key:n,style:we({},d,{height:"40px",paddingBottom:o?"4px":null,paddingTop:r?"4px":null})},t.createElement("div",{style:{marginRight:"6px"}},t.createElement(gt,{appName:n.replace(/[\s-]/,""),size:20})),t.createElement(Ge,{appName:n.replace(/[\s-]/,""),color:"#444",size:18}))}),o&&t.createElement(vt,{component:"a","data-pendo":`app-switcher--change-app--${o.name}`,"data-turbolinks":!1,href:s(a)("accounts")+ft(o.name),style:we({},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(Ue,{color:"#9e9e9e",key:"key2"})),t.createElement("div",{style:{color:"#737373",fontSize:"12px",lineHeight:"28px"}},"Account settings")))))},St=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},Nt=e=>e.slice().sort((e,t)=>e.attributes.organization_name.localeCompare(t.attributes.organization_name)),Zt=(e=(e=>e))=>d(_e.subscribe,()=>e(_e.getState())),zt=["children","style"];function Vt(e){let{children:n,style:a}=e,l=xe(e,zt);return t.createElement("nav",we({className:"simple","data-pendo":"topbar","aria-label":"topbar-navigation",style:we({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 Mt={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%)",home:{brand62:"rgba(70, 126, 246, 1)"},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%)",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%)"},Ht=["style"],Tt=e=>{let{style:n=null}=e,a=xe(e,Ht);return t.createElement("div",we({style:we({alignSelf:"flex-end",display:"flex",position:"relative"},n)},a))},Pt=({appName:e,connectedPeople:n,env:a,hasConnectedPeople:l,requestClearAppsCache:r,requestClearConnectedPeopleCache:o,requestSwitchConnectedPerson:i,requestUnlinkConnectedPeople:c,setUserMenuVisible:d,userMenuVisible:E})=>{const v=`${s(a)("login")}/logout`;return t.createElement(Tt,null,t.createElement(xt,{component:yt,onOutsideClick:()=>d(!1),cleanup:!E,style:we({color:"#525252",marginTop:"8px",maxHeight:"75vh",maxWidth:"320px",minWidth:"242px",overflow:"auto",right:0},E?{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:we({},Xe,{color:"#666",fontSize:"12px",textTransform:"uppercase",whiteSpace:"nowrap"},Ke)},"Linked Accounts"),t.createElement("div",{style:we({},Xe,{alignItems:"center",fontSize:"12px",textAlign:"right"})},t.createElement("a",{href:"",onClick:e=>{r(),o(),c(),e.preventDefault()},style:we({color:"#666",marginLeft:"64px",textDecoration:"none"},Ke)},"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}},Nt(n).map(({id:n,attributes:a})=>t.createElement(vt,{component:"li",key:n},t.createElement("a",{href:"",onClick:t=>{r(),o(),i(n,`${e}/`),t.preventDefault()},style:we({borderTop:"1px solid #ddd",color:"#444",display:"block",lineHeight:"48px",overflow:"hidden",paddingLeft:"16px",paddingRight:"16px",textDecoration:"none",textOverflow:"ellipsis",whiteSpace:"nowrap"},Ke)},a.organization_name))))),t.createElement(m,null,l&&t.createElement(u,null),t.createElement("form",{method:"POST",action:v},t.createElement(p,{"data-turbolinks":!1,hover:{backgroundColor:Mt.lightNeutral97},onClick:()=>{r(),o()},style:{padding:0},theme:!1,type:"submit",width:"100%"},t.createElement(h,{distribution:"space-between",alignment:"center",axis:"horizontal",grow:1,paddingHorizontal:2,paddingVertical:1.5,spacing:4},t.createElement(g,{color:Mt.lightNeutral45,lineHeight:"24px"},"Log out"),t.createElement(f,{name:"general.intoBox",fill:Mt.lightNeutral45})))))))},_t=["active","component","hover","innerRef","style"],It=e=>{let{active:n=null,component:a="div",hover:l=null,innerRef:r=null,style:o=null}=e,i=xe(e,_t);const[c,s]=t.useState(!1),[d,m]=t.useState(!1);return t.createElement(a,we({onMouseDown:()=>s(!0),onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),onMouseUp:()=>s(!1),style:we({},Ke,o,d&&l,c&&n)},r&&{ref:r},i))},Lt=({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(It,{component:"button",type:"button",style:we({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},Je),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(ot,{colors:e,style:{margin:"-3px"}})))),Ot=["active","colors","style"],Dt=e=>{const[n,a]=t.useState(!1),[l,r]=t.useState(!0),[o,i]=t.useState(!1),{hasConnectedPeople:c,notificationsEnabled:s}=Zt();return t.createElement(Vt,{style:we({paddingLeft:"8px",paddingRight:"16px"},e.style)},t.createElement(At,{env:e.env,appName:e.appName,apps:St(e.apps),visible:n,toggle:()=>a(e=>!e)}),t.createElement(pt,{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(Lt,{colors:e.colors,orgName:e.orgName,requestConnectedPeopleFetch:e.requestConnectedPeopleFetch,setUserMenuVisible:i,showOrgName:e.showOrgName}),t.createElement(Pt,{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}))};Dt.defaultProps={notifications:()=>null,search:()=>null,showOrgName:!0,useDummyNotifications:!1};const Rt=e=>{let{active:n,colors:a,style:l=null}=e,r=xe(e,Ot);const[o,i]=t.useState(!1),[c,s]=t.useState(!1);return t.createElement("a",we({style:we({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"},Ke,Je,l),onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),onMouseDown:()=>s(!0),onMouseUp:()=>s(!1)},r))},jt=["style"],Ut=["children","className","colors","style"];class Ft 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,`${s(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)}))}}Ft.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 $t extends t.Component{render(){const e=this.props,{style:n}=e,a=xe(e,jt);return t.createElement(Re,{render:e=>t.createElement("div",we({style:we({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=xe(e,Ut);return t.createElement("div",we({className:["__Topbar_PlatformAnnouncements_link"].join(" ").trim(),style:we({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 Wt extends t.Component{render(){return t.createElement(Bt,{colors:this.props.colors},t.createElement(Ft,{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 qt(e){let n=we({},(ke(e),e));return t.createElement("button",we({type:"button",style:{WebkitAppearance:"none",backgroundColor:"transparent",borderWidth:0,cursor:"pointer",margin:-8,padding:8}},n),t.createElement(st,{fill:"white",style:{height:20,width:20}}))}function Gt(e){return t.createElement($t,null,t.createElement("span",{dangerouslySetInnerHTML:{__html:e.html}}),t.createElement(qt,{onClick:e.onClick}))}Wt.defaultProps={configuredFetch:Se,renderItem:({announcement:e,actions:n})=>t.createElement(Gt,{key:e.id,html:e.data.html,onClick:()=>n.dismissAnnouncements(e.id)})};const Jt=["colors","html","onClick"],Kt=["children","className","colors","style"],Xt=["style"];function Yt(e){let{colors:n,html:a="",onClick:l=(e=>{})}=e,r=xe(e,Jt);const[o,i]=t.useState(!1);return o||!a?null:t.createElement(Qt,we({colors:n},r),t.createElement(en,null,t.createElement("span",{dangerouslySetInnerHTML:{__html:a}}),t.createElement(tn,{onClick:e=>{l(e),i(!0)}})))}class Qt extends t.Component{render(){const e=this.props,{children:n,className:a,colors:l,style:r}=e,o=xe(e,Kt);return t.createElement("div",we({className:["Topbar_ProductAnnouncement",a].filter(Boolean).join(" ").trim(),style:we({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 en extends t.Component{render(){const e=this.props,{style:n}=e,a=xe(e,Xt);return t.createElement(Re,{render:e=>t.createElement("div",we({style:we({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 tn(e){let n=we({},(ke(e),e));return t.createElement("button",we({type:"button",style:{WebkitAppearance:"none",backgroundColor:"transparent",borderWidth:0,cursor:"pointer",margin:-8,padding:8}},n),t.createElement(st,{fill:"white",style:{height:20,width:20}}))}const nn=["env","url","style"];function an(e){let{env:n,url:a="",style:l}=e,r=xe(e,nn);const o=a||`${s(n)("people")}/static/no_photo_thumbnail_gray.svg`;return t.createElement("div",we({style:we({backgroundColor:"white",backgroundImage:`url(${o})`,backgroundPosition:"center",backgroundSize:"cover",borderRadius:"50%",height:"26px",marginLeft:"4px",width:"26px"},l)},r))}class ln 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 rn({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:s(e)(n)+ft(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(Ue,{color:Mt.lightNeutral45,key:"key2"})),t.createElement("div",{style:{color:Mt.lightNeutral45,fontSize:"12px",lineHeight:"48px",textDecoration:"none"}},"Account settings"))}ln.defaultProps={method:"localStorage"};const on=({color:e=Mt.lightNeutral100,size:n=22,style:a={}})=>t.createElement("div",{style:a},t.createElement(st,{fill:e,style:{height:`${n}px`,width:`${n}px`}}));function cn({env:e,appName:t,userId:n}){var a,l,r;const o=s(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 c=new URLSearchParams;return c.append("return",`${t}/${i}`),`${o}?${c.toString()}`}const sn=({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:dn}=E,mn={colors:we({},dn({baseColor:"#2266f7",key:"primary"})),icons:{churchCenter:L,general:O,people:D,toolbar:R},id:"topbar"};function un({appName:e,connectedPeople:n,env:a,hasConnectedPeople:l,linkToProfile:r,mfaConfigured:o,mfaEnabled:i,requestClearAppsCache:c,requestClearConnectedPeopleCache:d,requestSwitchConnectedPerson:u,requestUnlinkConnectedPeople:f,setUserMenuVisible:E,userAvatarPath:C,userId:w,userName:k}){return t.createElement(m,{theme:mn},t.createElement(h,{axis:"vertical",width:"100%"},t.createElement(h,{axis:"horizontal",alignItems:"start",distribution:"space-between"},t.createElement(h,{axis:"horizontal",spacing:2,padding:2,paddingRight:0,shrink:1},t.createElement(h,{shrink:0},t.createElement(an,{env:a,url:C,style:{height:48,width:48}})),t.createElement(h,{spacing:1,shrink:1},t.createElement(g,{color:Mt.lightNeutral24,weight:700,truncate:!0},k),r&&t.createElement(v,{as:"a",href:`/people/AC${w}`,color:Mt.lightNeutral45,underline:!1},"My profile"),i&&t.createElement(v,{as:"a",href:cn({appName:e,env:a,userId:w}),color:Mt.lightNeutral45,underline:!1},"My login settings",t.createElement(sn,{isActive:o})),t.createElement("form",{method:"POST",action:`${s(a)("login")}/logout`},t.createElement(p,{color:Mt.lightNeutral45,"data-turbolinks":!1,onClick:()=>{c(),d()},type:"submit"},"Log out")))),t.createElement(p,{color:Mt.lightNeutral45,icon:"general.x",onClick:()=>E(!1),padding:2,theme:"naked",title:"Close Menu"})),l&&t.createElement(t.Fragment,null,t.createElement(h,{backgroundColor:Mt.lightNeutral95,paddingVertical:1.5,paddingHorizontal:2,marginTop:1,borderBottom:`1px solid ${Mt.lightNeutral88}`},t.createElement(b,{color:Mt.lightNeutral62,fontWeight:500},"Linked Accounts")),t.createElement(y,{dividerColor:Mt.lightNeutral88,width:"100%"},Nt(n).map(({id:n,attributes:a})=>t.createElement(y.Item,{key:n,onClick:t=>{c(),d(),u(n,`${e}/`),t.preventDefault()},color:Mt.lightNeutral45,padding:2},t.createElement(g,{truncate:!0},a.organization_name))),t.createElement(y.Item,{onClick:e=>{c(),d(),f(),e.preventDefault()},color:Mt.danger47,padding:2,underline:!1},t.createElement(g,{size:3},"Unlink my accounts"))))))}const pn=["active"],hn=({appName:e})=>{const n=e.replace(/[\s-]/,"");return t.createElement("div",{style:{alignItems:"center",display:"flex"}},t.createElement("div",{style:{marginRight:"6px"}},t.createElement(gt,{appName:n,size:20})),t.createElement(Ge,{appName:n,color:Mt.lightNeutral24,size:18}))},gn=e=>{var n,a;const[l,r]=t.useState(!1),[o,i]=t.useState(!1),[c,d]=t.useState(!1),{hasConnectedPeople:m,mfaConfigured:u,mfaEnabled:p,userId:h,name:g}=Zt(),f=e.colors,E=e.routes.filter(({props:{active:e}})=>e)||[],v=e.currentRouteComponent,b=E&&E[0]&&E[0].props&&E[0].props.children||e.appName,y=e.apps.find(({name:e})=>"Accounts"===e),C=e.apps.find(({name:e})=>"Home"===e),w=[...e.apps].filter(({name:e})=>"Home"!==e&&"Accounts"!==e),k=Mt.lightNeutral88;return t.useEffect(()=>{r(!1)},[E&&(null==(n=E[0])||null==(a=n.props)?void 0:a.href)]),t.createElement(Vt,{style:we({},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(We,{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(ln,{item:"Topbar:Small:Menus:Products:visibility",render:()=>t.createElement("div",{style:{MozUserSelect:"none",WebkitTapHighlightColor:"transparent",WebkitUserSelect:"none",backgroundColor:Me(Mt.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(on,{style:{position:"absolute",right:"17px",top:"12px"}}),t.createElement("div",{onClick:e=>{const{forcePropagation:t}=e;t||e.stopPropagation()},style:{backgroundColor:Mt.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:Mt.lightNeutral98,borderBottom:`1px solid ${k}`,display:"flex",height:"48px",paddingLeft:"16px",paddingRight:"16px"}},t.createElement("div",{style:we({},Xe)},t.createElement("a",{style:{alignItems:"center",display:"flex",height:"48px",paddingRight:"16px"},"data-pendo":`app-switcher--change-app--${null==C?void 0:C.name}`,"data-turbolinks":!1,href:C?s(e.env)("accounts")+ft(null==C?void 0:C.name):void 0},t.createElement("div",{style:{alignItems:"center",display:"flex"}},t.createElement(hn,{appName:C?C.name:e.appName}))))),t.createElement("div",{style:we({},Xe,{WebkitOverflowScrolling:"touch",overflowY:"scroll"})},t.createElement("ul",{"data-pendo":"app-switcher",style:{margin:0,padding:0}},St(w).map(({name:n},a)=>{const l=0===a,r=a===St(w).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:s(e.env)("accounts")+ft(n)},t.createElement(hn,{appName:n})))})),y&&t.createElement("div",{style:{borderTop:`1px solid ${k}`}},t.createElement(rn,{env:e.env}))),t.createElement("div",{style:{borderTop:`1px solid ${k}`,display:"flex",flexDirection:"row",lineHeight:"48px",textAlign:"center"}},t.createElement("div",{style:we({},Xe)},t.createElement(mt,{style:{color:Mt.lightNeutral24,fontSize:"15px",fontWeight:600},onClick:e=>{e.forcePropagation=!0},id:"jsLaunchHelpdesk"},"Help")))))}),t.createElement("div",{style:we({},Xe,{fontWeight:600,lineHeight:"48px",textAlign:"center"}),onClick:e.routes.length>0?()=>{i(!1),r(e=>!e)}:null},t.createElement(v,null,(x=b).charAt(0).toUpperCase()+x.slice(1)),e.routes.length>0&&t.createElement(ot,{colors:f,style:{marginLeft:"4px",verticalAlign:"middle"}})),t.createElement("button",{onClick:()=>d(!c),style:{background:"none",border:"none",margin:"0 12px",padding:0}},t.createElement(an,{env:e.env,url:e.userAvatarPath})),t.createElement("div",{style:{MozUserSelect:"none",WebkitTapHighlightColor:"transparent",WebkitUserSelect:"none",bottom:0,color:"black",display:c?"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(un,{appName:e.appName,env:e.env,connectedPeople:e.connectedPeople,hasConnectedPeople:m,linkToProfile:e.linkToProfile,mfaConfigured:u,mfaEnabled:p,requestClearAppsCache:e.requestClearAppsCache,requestClearConnectedPeopleCache:e.requestClearConnectedPeopleCache,requestSwitchConnectedPerson:e.requestSwitchConnectedPerson,requestUnlinkConnectedPeople:e.requestUnlinkConnectedPeople,setUserMenuVisible:d,userAvatarPath:e.userAvatarPath,userId:h,userName:g}))));var x};gn.defaultProps={currentRouteComponent:e=>t.createElement("span",we({},e)),linkToProfile:!0};const fn=e=>{let{active:n}=e,a=xe(e,pn);return t.createElement("a",we({style:we({backgroundColor:"#444",borderBottom:"1px solid #333",color:"#fff",display:"block",fontWeight:600,lineHeight:"47px",position:"relative",textAlign:"center",textDecoration:"none",textTransform:"capitalize",whiteSpace:"nowrap"},Ke,n&&{backgroundColor:"#333"})},a))};function En({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(h,we({backgroundColor:"surface",elevation:a&&open?2:void 0,left:0,position:"absolute",zIndex:1},{bottom:e,height:l,id:r,overflow:o,position:i,width:c}),n)}function vn({children:e,closeDrawer:n}){return t.createElement(h,{alignment:"start",axis:"horizontal",color:"foreground",distribution:"space-between",padding:2,paddingTop:1},t.createElement(C,null,e),n&&t.createElement(p,{icon:{fill:Mt.lightNeutral24,name:"general.x",size:"md"},onClick:()=>n(),title:"Close",theme:!1,hover:{backgroundColor:Mt.lightNeutral95}}))}const bn=["children"];function yn(e){let{children:n}=e,a=xe(e,bn);return t.createElement(w,we({},a,{letterSpacing:".002em",level:2,lineHeight:"35px",weight:700}),n)}const Cn=["children"],wn={bottom:{background:"linear-gradient(rgba(0, 0, 0, 0.07), rgba(255, 255, 255, 0))",top:0},top:{background:"linear-gradient(rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.07))",bottom:0}},kn=e=>{let{children:r}=e,o=xe(e,Cn);const[i,c]=a(!1),[s,d]=a(!1),m=l(null),u=l(null),p=l(null),g=()=>{const e=null==m?void 0:m.current;e&&d(e.scrollHeight-e.clientHeight>e.scrollTop+1)};return n(()=>{const e=null==m?void 0:m.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==u?void 0:u.current,r=null==p?void 0:p.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(h,{grow:1,position:"relative",shrink:1},s&&t.createElement(xn,{edge:"top"}),i&&t.createElement(xn,{edge:"bottom"}),t.createElement(h,we({basis:2,grow:1,innerRef:m,overflow:"auto",role:"region",shrink:1},o),t.createElement(C,{innerRef:p}),r,t.createElement(C,{innerRef:u})))},xn=({edge:e})=>t.createElement(C,we({height:1,left:0,pointerEvents:"none",position:"absolute",right:0,role:"presentation",zIndex:10},wn[e])),An=({activeIndex:e,children:n})=>{const a=t.Children.count(n),l=e<0?0:e>a-1?a-1:e;return t.createElement(h,{grow:1,overflow:"hidden",position:"relative"},t.Children.map(n,(n,a)=>{const r=a===l;return t.createElement(h,{"aria-hidden":!r,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:"transform 200ms ease-in-out, opacity 100ms 50ms ease-in-out"},n)}))};var Sn;!function(e){e.close="close",e.mount="mount",e.open="open",e.set="set",e.unmount="unmount"}(Sn||(Sn={}));const Nn={currentContent:null,open:!1},Zn=(e,t)=>{switch(t.type){case Sn.mount:return we({},e,{currentContent:t.payload.content});case Sn.unmount:return we({},e,{currentContent:null});case Sn.open:return we({},e,{open:!0});case Sn.close:return we({},e,{open:!1});case Sn.set:return we({},e,{currentContent:t.payload.content})}},zn=["fields"],Vn=t.createContext({}),Mn=e=>{const t=[e.data].flat(),[n,...a]=t.map(({attributes:e,relationships:t})=>we({},((e={})=>Object.keys(e).reduce((t,n)=>{const{data:a}=e[n],l=Array.isArray(a);return we({},t,{[`${n}_${l?"ids":"id"}`]:l?a.map(({id:e})=>e):a.id})},{}))(t),e));return Array.isArray(e.data)?n?[n,...a]:[]:n},Hn=({app:e,env:t})=>{const n=`${s(t)("api")}/${e}/v2`;return{delete:e=>Ze(Ne,[n,e].join("/"),{method:"DELETE"}),get:async(e,t={})=>{let{fields:a={}}=t,l=xe(t,zn);a=Object.entries(a).reduce((e,[t,n])=>we({},e,{[`fields[${t}]`]:n}),{});const r=new URLSearchParams(we({},a,l)),{json:o}=await Ze(Se,[[n,e].join("/"),r].join("?"));return Mn(o)},patch:async(e,t)=>{const{json:a}=await Ze(Ne,[n,e].join("/"),{data:{data:{attributes:t}},method:"PATCH"});return Mn(a)},post:async(e,t)=>{const{json:a}=await Ze(Ne,[n,e].join("/"),{data:{data:{attributes:t}},method:"POST"});return Mn(a)}}},Tn=({children:e,env:n})=>{const a=r(()=>{const e=Hn({app:"services",env:n});return{chat:Hn({app:"chat",env:n}),services:e}},[n]);return t.createElement(Vn.Provider,{value:a},e)},Pn=t.createContext({}),_n=({children:e,value:n})=>t.createElement(Pn.Provider,{value:n},e),In=()=>{const e=o(Pn);if(!e)throw new Error("useChat must be used within a ChatProvider");return e},Ln=()=>o(Vn),On=()=>{},Dn=["token"],Rn=({children:e,title:n})=>t.createElement(h,{spacing:1,paddingVertical:1},t.createElement(b,null,n),t.createElement(h,{spacing:1},e)),jn={Services:({groups:e})=>{const n=["Team","PlanTeam"].reduce((t,n)=>e[n]?[...t,...e[n]]:t,[]);return t.createElement(Rn,{title:"teams"},t.createElement(h,{axis:"horizontal",spacing:.5},n.map(e=>t.createElement(A,{key:e.source_identifier},e.name))))}},Un=({groups:e})=>t.createElement(t.Fragment,null,Object.entries(e).reduce((e,[n,a])=>{const l=jn[n];return l?[...e,t.createElement(l,{key:n,groups:a})]:e},[])),Fn={md:36,sm:24},$n=({person:e,size:n="md"})=>(e=>void 0!==e.avatar)(e)?t.createElement(x,{source:e.avatar,size:n}):(e=>void 0!==e.image)(e)?t.createElement(B,{image:e.image,name:e.name,size:Fn[n]}):null,Bn=({person:e})=>t.createElement(e.child?qn:Wn,{person:e}),Wn=({person:e})=>t.createElement(h,{alignment:"center",axis:"horizontal",spacing:1},t.createElement($n,{person:e}),t.createElement(g,{size:3,truncate:!0,weight:500},e.name)),qn=({person:e})=>t.createElement(h,{alignment:"center",axis:"horizontal",spacing:1},t.createElement(C,{opacity:.5},t.createElement($n,{person:e})),t.createElement(h,null,t.createElement(g,{color:"foreground",opacity:.75,size:3,truncate:!0,weight:500},e.name),t.createElement(h,{alignment:"center",axis:"horizontal",spacing:.5},t.createElement(f,{name:"general.shieldExclamation",color:Mt.warning49}),t.createElement(g,{color:Mt.warning20,size:5},"Not eligible to chat")))),Gn="18px 1fr auto",Jn=({childPeople:e})=>{const[n,l]=a(!1),r=e.length,o=`${r} ${1===r?"member":"members"} under age 13`;return t.createElement(h,{background:Mt.warning94,marginBottom:.5,padding:1,radius:4},t.createElement(k,{alignment:"start",columns:Gn,spacing:1},t.createElement(f,{color:Mt.warning49,marginTop:"1px",name:"general.shieldExclamation",size:"lg"}),t.createElement(g,{grow:1,color:"foreground",size:4},n?"This conversation includes members under 13 years old who are not eligible to chat.":o),t.createElement(p,{"aria-label":n?"Hide explanation":"Show explanation",icon:{name:n?"general.upCaret":"general.downCaret",size:"md"},onClick:()=>l(!n),size:"xs",theme:"warning",tooltip:n?"Hide explanation":"Show explanation",variant:"naked"})),t.createElement(S,{open:n},t.createElement(k,{alignment:"start",columns:Gn,spacing:1},t.createElement(h,{gridColumnStart:2,paddingTop:1,spacing:1},e.map(e=>t.createElement(h,{alignment:"center",axis:"horizontal",key:e.id,spacing:1},t.createElement($n,{person:e,size:"sm"}),t.createElement(g,{color:"foreground",size:4,weight:500},e.name)))))))},Kn=({people:e})=>{const n=e.filter(e=>e.child);return t.createElement(Rn,{title:"people"},n.length>0&&t.createElement(Jn,{childPeople:n}),e.map(e=>t.createElement(Bn,{key:e.id,person:e})))},Xn=["muted"],Yn=({channel:e})=>{const{client:n}=$(),[{muted:a},l]=t.useState(()=>e.muteStatus());return t.useEffect(()=>{const t=()=>{l(e.muteStatus())};return n.on("notification.channel_mutes_updated",t),()=>n.off("notification.channel_mutes_updated",t)},[]),t.createElement(h,{axis:"horizontal",width:"100%"},t.createElement(g,{as:"label",display:"flex",grow:1},"Mute Channel",t.createElement(h,{grow:1}),t.createElement(N,{isChecked:a,onClick:()=>{a?e.unmute():e.mute(),l(e=>{let{muted:t}=e;return we({muted:!t},xe(e,Xn))})}})))},Qn=({channel:e})=>{const[n,a]=t.useState(!1),[l,r]=t.useState(!1),{switchToChannelListView:o}=In(),i=Ln();return t.createElement(h,{cursor:"pointer"},l?t.createElement(h,{color:"error",axis:"horizontal",spacing:1,alignItems:"center"},t.createElement(g,null,"Removing Channel"),t.createElement(Z,{size:"xs",color:"error"})):t.createElement(h,{color:"error",axis:"horizontal",spacing:1,alignItems:"center"},t.createElement(g,{pointerEvents:n?"none":void 0,onClick:()=>a(!0)},"Remove Channel"),n&&t.createElement(p,{autoFocus:!0,size:"xs",variant:"outline",title:"confirm",theme:"error",onBlur:()=>a(!1),onMouseDown:e=>e.preventDefault(),onClick:()=>{r(!0),i.chat.delete(`me/conversations/${e.id}`).then(o).catch(On)}})))},ea=({channel:e,isRemovable:n})=>t.createElement(Rn,{title:"settings"},t.createElement(Yn,{channel:e}),n&&t.createElement(Qn,{channel:e})),ta=({channel:e,isEditable:n})=>{const[a,l]=t.useState(e.data.name),r=Ln();return t.createElement(Rn,{title:"title"},t.createElement(C,{backgroundColor:"surfaceTertiary",width:"100%",paddingHorizontal:1},t.createElement(ol.Inline,{size:"lg",value:a,disabled:!n,onChange:e=>l(e.target.value),onBlur:()=>{a!==e.data.name&&r.chat.patch(`me/conversations/${e.id}`,{title:a}).catch(On)},onKeyDown:e=>"Enter"===e.key&&e.target.blur()})))},na=({channel:e})=>{const n=(e=>{const[n,a]=t.useState([]),l=Ln();return t.useEffect(()=>{e&&l.chat.get(`me/conversations/${e.id}/groups`).then(a).catch(On)},[e]),n.reduce((e,t)=>{var n,a,l;return e[n=t.source_app_name]||(e[n]={}),(a=e[t.source_app_name])[l=t.source_type]||(a[l]=[]),e[t.source_app_name][t.source_type].push(t),e},{})})(e),a=(e=>{const[n,a]=t.useState({}),l=Ln();return t.useEffect(()=>{e&&l.chat.get(`me/conversations/${e.id}/members`).then(e=>e.reduce((e,t)=>we({},e,{[t.stream_member_id]:t}),{})).then(a).catch(On)},[e]),Object.values(e.state.members).reduce((e,t)=>t.user&&n[t.user.id]?[...e,we({},t.user,n[t.user.id])]:e,[])})(e),l=(e=>{const n=Ln(),[a,l]=t.useState({canDelete:!1,canUpdate:!1});return t.useEffect(()=>{n.chat.get(`/me/conversations/${e.id}/member_ability`).then(e=>l({canDelete:e.can_delete,canUpdate:e.can_update}))},[e]),a})(e);return t.createElement(h,{padding:2,spacing:t.createElement(u,{marginVertical:1})},t.createElement(ta,{channel:e,isEditable:l.canUpdate}),t.createElement(ea,{channel:e,isRemovable:l.canDelete}),Object.keys(n).length>0&&t.createElement(Un,{groups:n}),t.createElement(Kn,{people:a}))},aa=()=>{const{channel:e}=$(),{isChannelDetailsViewActive:n,switchToChannelView:a}=In();return e&&n?t.createElement(t.Fragment,null,t.createElement(h,{alignment:"center",axis:"horizontal",spacing:1,padding:2,paddingTop:1},t.createElement(p,{"aria-label":"Switch to chat list",icon:"general.leftChevron",onClick:a,size:"sm",title:"Back to chat list",variant:"naked"}),t.createElement(yn,{truncate:!0},"Conversation Details")),t.createElement(na,{channel:e})):null},la=()=>t.createElement(h,{alignment:"center",spacing:2,padding:2,paddingTop:"10%"},t.createElement(f,{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."));function ra(){return ra=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},ra.apply(this,arguments)}var oa={À:"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"},ia=Object.keys(oa).join("|"),ca=new RegExp(ia,"g"),sa=new RegExp(ia,""),da=function(e){return e.replace(ca,function(e){return oa[e]})},ma=da,ua=da;ma.has=function(e){return!!e.match(sa)},ma.remove=ua;var pa={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};ga.rankings=pa;var ha=function(e,t){return String(e.rankedValue).localeCompare(String(t.rankedValue))};function ga(e,t,n){void 0===n&&(n={});var a=n.keys,l=n.threshold,r=void 0===l?pa.MATCHES:l,o=n.baseSort,i=void 0===o?ha:o,c=n.sorter,s=void 0===c?function(e){return e.sort(function(e,t){return function(e,t,n){var a=e.rank,l=e.keyIndex,r=t.rank,o=t.keyIndex;return a===r?l===o?n(e,t):l<o?-1:1:a>r?-1:1}(e,t,i)})}:c,d=e.reduce(function(e,l,o){var i=function(e,t,n,a){if(!t)return{rankedValue:e,rank:fa(e,n,a),keyIndex:-1,keyThreshold:a.threshold};var l=function(e,t){for(var n=[],a=0,l=t.length;a<l;a++)for(var r=t[a],o=ya(r),i=va(e,r),c=0,s=i.length;c<s;c++)n.push({itemValue:i[c],attributes:o});return n}(e,t);return l.reduce(function(e,t,l){var r=e.rank,o=e.rankedValue,i=e.keyIndex,c=e.keyThreshold,s=t.itemValue,d=t.attributes,m=fa(s,n,a),u=o,p=d.minRanking,h=d.maxRanking;return m<p&&m>=pa.MATCHES?m=p:m>h&&(m=h),m>r&&(r=m,i=l,c=d.threshold,u=s),{rankedValue:u,rank:r,keyIndex:i,keyThreshold:c}},{rankedValue:e,rank:pa.NO_MATCH,keyIndex:-1,keyThreshold:a.threshold})}(l,a,t,n),c=i.keyThreshold;return i.rank>=(void 0===c?r:c)&&e.push(ra({},i,{item:l,index:o})),e},[]);return s(d).map(function(e){return e.item})}function fa(e,t,n){return e=Ea(e,n),(t=Ea(t,n)).length>e.length?pa.NO_MATCH:e===t?pa.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase())===(t=t.toLowerCase())?pa.EQUAL:e.startsWith(t)?pa.STARTS_WITH:e.includes(" "+t)?pa.WORD_STARTS_WITH:e.includes(t)?pa.CONTAINS:1===t.length?pa.NO_MATCH:(a=e,l="",a.split(" ").forEach(function(e){e.split("-").forEach(function(e){l+=e.substr(0,1)})}),l).includes(t)?pa.ACRONYM:function(e,t){var n=0,a=0;function l(e,t,a){for(var l=a,r=t.length;l<r;l++)if(t[l]===e)return n+=1,l+1;return-1}var r=l(t[0],e,0);if(r<0)return pa.NO_MATCH;a=r;for(var o=1,i=t.length;o<i;o++)if(!((a=l(t[o],e,a))>-1))return pa.NO_MATCH;return pa.MATCHES+n/t.length*(1/(a-r))}(e,t);var a,l}function Ea(e,t){return e=""+e,t.keepDiacritics||(e=ma(e)),e}function va(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],l=0,r=n.length;l<r;l++){for(var o=n[l],i=[],c=0,s=a.length;c<s;c++){var d=a[c];if(null!=d)if(Object.hasOwnProperty.call(d,o)){var m=d[o];null!=m&&i.push(m)}else"*"===o&&(i=i.concat(d))}a=i}if(Array.isArray(a[0])){var u=[];return u.concat.apply(u,a)}return a}(t,e);n=null}return null==n?[]:Array.isArray(n)?n:[String(n)]}var ba={maxRanking:Infinity,minRanking:-Infinity};function ya(e){return"string"==typeof e?ba:ra({},ba,e)}const Ca={fontSize:"16px",fontWeight:400,lineHeight:"165%"},wa=(e,t)=>{const[n,a,l]=e.order,[r,o,i]=t.order;return n-r||a.localeCompare(o)||l.localeCompare(i)},ka=({disabled:e,spinner:t}={})=>{const n=we({},Ca,{backgroundColor:Mt.interaction55,color:t?"transparent":"surface",spinner:t?{color:Mt.interaction55}:void 0});return we({},n,e?{backgroundColor:Mt.lightNeutral81,spinner:t?{color:Mt.lightNeutral81}:void 0}:{active:{backgroundColor:Mt.interaction45},focus:{backgroundColor:Mt.interaction55},hover:{backgroundColor:Mt.interaction50}})},xa=e=>{const{children:n,error:a=null,loading:l}=e,{switchToNewChatView:r}=In(),o=(()=>{const[e,n]=t.useState({}),a=Ln();return t.useEffect(()=>{a.chat.get("me/app_grants").then(e=>e.reduce((e,t)=>we({},e,{[t.app_name]:t}),{})).then(n)},[]),{canCreateChat:t=>e[t]&&e[t].create_conversations}})();return a?t.createElement(la,null):l?null:t.createElement(h,{grow:1,shrink:1},t.createElement(kn,null,n),t.createElement(u,null),t.createElement(h,{padding:2,alignment:"stretch"},o.canCreateChat("Services")&&t.createElement(p,we({"aria-label":"Switch to new chat",onClick:r},ka()),"New chat")))},Aa=["appName"],Sa=["Services"],Na={Services:({dates:e})=>t.createElement(g,{color:"foregroundSecondary",lineHeight:"13px",size:6,textTransform:"uppercase"},e)},Za=e=>{let{appName:n}=e,a=xe(e,Aa);const l=Na[n];return t.createElement(h,{alignment:"center",axis:"horizontal",borderColor:"separatorTertiary",borderWidth:1,padding:.5,radius:4,spacing:.5,width:"max-content"},t.createElement(gt,{appName:n,size:15}),t.createElement(l,we({},a)))},za=({channel:e})=>{const n=Sa.reduce((n,a)=>null!=e&&e.data[a]?[...n,t.createElement(Za,we({key:a,appName:a},e.data[a]))]:n,[]);return t.createElement(t.Fragment,null,n)},Va=e=>{var t;return null==(t=e.user)?void 0:t.image},Ma=({member:e,size:n=40})=>t.createElement(B,{image:Va(e),shape:"square",size:n}),Ha=({members:e})=>{let n=null;return 1===e.length&&(n=t.createElement(Ma,{member:e[0]})),2===e.length&&(n=t.createElement(t.Fragment,null,t.createElement("div",null,t.createElement(Ma,{member:e[0]})),t.createElement("div",{style:{marginLeft:"-20px"}},t.createElement(Ma,{member:e[1]})))),3===e.length&&(n=t.createElement(t.Fragment,null,t.createElement("div",null,t.createElement(Ma,{member:e[0]})),t.createElement("div",{style:{marginLeft:"-20px"}},t.createElement(Ma,{member:e[1],size:20}),t.createElement(Ma,{member:e[2],size:20})))),e.length>=4&&(n=t.createElement(t.Fragment,null,t.createElement("div",null,t.createElement(Ma,{member:e[e.length-4],size:20}),t.createElement(Ma,{member:e[e.length-3],size:20})),t.createElement("div",null,t.createElement(Ma,{member:e[e.length-2],size:20}),t.createElement(Ma,{member:e[e.length-1],size:20})))),t.createElement("div",{className:"str-chat__avatar-group"},n)},Ta=({unread:e})=>{if(e<1)return null;const n=e<=99?e.toString():"99+";return t.createElement(A,{title:n,size:"xs",color:Mt.interaction66,radius:"pill",minWidth:3})},Pa=({channel:e,latestMessage:n,setActiveChannel:a,unread:l})=>{var r;const{client:o}=$(),{setActionsOpenForChannel:i,actionsOpenForChannel:c,switchToChannelView:s}=In(),d=c===e.id,m=(null==n||null==(r=n.props)?void 0:r.children)||"",u=t=>{"actions-dropdown"!==t.target.getAttribute("data-type")&&(a(e),s())},p=Object.values(e.state.members).filter(({user:e})=>e.id!==o.userID),f=e.data.name;return t.createElement(k,{alignment:"start","aria-label":`Select Channel: ${f||""}`,backgroundColor:d?"surfaceTertiary":"surface",borderBottomColor:"separatorTertiary",borderBottomWidth:1,columns:"auto 1fr auto",cursor:"pointer",css:{"&:hover":{".actions-dropdown":{visibility:"visible"},backgroundColor:"surfaceTertiary"}},minHeight:10,onClick:u,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||u(e)},padding:1,paddingHorizontal:2,radius:0,role:"button",spacing:1,tabIndex:0,width:"100%"},t.createElement(Ha,{members:p}),t.createElement(h,{height:"100%",alignment:"start",paddingRight:1},t.createElement(w,{level:5,maxWidth:"100%",truncate:!0,weight:500},f),t.createElement(g,{color:"foregroundSecondary",css:{WebkitBoxOrient:"vertical",WebkitLineClamp:"2",display:"-webkit-box",overflow:"hidden",textOverflow:"ellipsis"},lineHeight:"1.3",maxWidth:"100%",size:5,textAlign:"left"},m),t.createElement(h,{basis:.5,grow:1}),t.createElement(za,{channel:e})),t.createElement(h,{alignment:"end",minWidth:6,height:"100%"},t.createElement(g,{color:"foregroundSecondary",size:5,textTransform:"uppercase"},(e=>e.state.last_message_at?de.date(e.state.last_message_at,{style:"abbreviated",year:!1}):"")(e)),t.createElement(h,{alignment:"end",alignSelf:"stretch",grow:1},t.createElement(Ta,{unread:l})),t.createElement(C,{onClick:e=>e.stopPropagation()},t.createElement(z,{alignSelf:"end",className:"actions-dropdown","data-type":"actions-dropdown",icon:{name:"people.importProgress",size:"lg"},radius:"circle",iconRight:!1,lockScrollWhileOpen:!0,onClose:()=>i(null),onOpen:()=>i(e.id),placement:"top-end",popoverProps:{offset:4,shouldFlip:!0},right:"1.5px",size:"xs",theme:"dark",title:"Chat actions",variant:"naked",visibility:d?"visible":"hidden"},t.createElement(z.Item,{onSelect:()=>{}},"Mark as unread"),t.createElement(z.Item,{onSelect:()=>{}},"Mute")))))},_a=()=>t.createElement(h,{alignment:"center",distribution:"center",padding:4,paddingTop:"54px",width:"100%"},t.createElement(Ia,null),t.createElement(w,{color:"foreground",fontWeight:500,marginTop:1,size:3},"No messages"),t.createElement(g,{color:"foreground",align:"center",size:4},"Click new chat below to start a conversation!")),Ia=()=>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","stroke-width":"1.48","stroke-miterlimit":"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","stroke-width":"1.48","stroke-miterlimit":"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","stroke-width":"1.48","stroke-miterlimit":"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"})),La=({client:e,closeDrawer:l})=>{const o=(()=>{const[e,t]=a(!0),{channelsQueryState:l}=$("ChannelList"),{queryInProgress:r}=l;return n(()=>{t(null!=r)},[r]),e})(),c=r(()=>({members:{$in:[e.userID]},pco_apps:{$contains:"services"},type:"messaging"}),[e.userID]),s=i(async(t,n)=>{var a;const l=n.channel;if(null!=l&&l.id&&null!=l&&null!=(a=l.pco_apps)&&a.includes("services"))try{const n=e.channel(l.type,l.id);await n.watch(),t(e=>[n,...e])}catch(e){console.error(e)}},[e.userID]);return t.createElement(t.Fragment,null,t.createElement(vn,{closeDrawer:l},t.createElement(h,{axis:"horizontal",alignment:"center",spacing:1},t.createElement(yn,null,"Chat"),o&&t.createElement(Z,{color:"hsl(0 0% 62%)",thickness:2,trackColor:"hsl(0 0% 97%)"}))),t.createElement(W,{setActiveChannelOnMount:!1,EmptyStateIndicator:_a,filters:c,onMessageNew:s,onAddedToChannel:s,List:xa,Paginator:q,Preview:Pa}))},Oa=["heart","pray","laughing","+1","-1"],Da=()=>(e=>{const{emojiConfig:t,EmojiIndex:n}=G();return r(()=>{const a=new n(t.emojiData);return e.reduce((e,t)=>{const n=a.emojis[t];return n?[...e,n]:(console.warn(`emoji for name "${t}" was not found`),e)},[])},[e])})(Oa),Ra=t.forwardRef((e,n)=>{const a=Da();return t.createElement(J,we({},e,{ref:n,reactionOptions:a}))}),ja=e=>{const n=Da();return t.createElement(K,we({},e,{reactionOptions:n}))},Ua=()=>{const{closeEmojiPicker:e,emojiPickerIsOpen:n,handleEmojiKeyDown:a,handleSubmit:l,isUploadEnabled:r,maxFilesLeft:o,numberOfUploads:i,openEmojiPicker:c,text:s,uploadNewFiles:d}=X(),{multipleUploads:m}=Y(),{getRootProps:u,isDragActive:g,isDragReject:f}=ue({disabled:!r||0===o,multiple:m,noClick:!0,onDrop:d}),E=Wa(),v=qa();return t.createElement(h,we({},u({borderColor:E?"transparent":"separatorTertiary",borderWidth:E?0:1,className:"custom-message-input-wrapper "+(E?"is-modal-child":""),marginHorizontal:E?0:1,position:"relative",radius:8,refKey:"innerRef"})),g&&t.createElement(Ba,{isDragReject:f}),r&&!!i&&t.createElement(Q,null),t.createElement(C,{innerRef:v},t.createElement(ee,{placeholder:"Send a message"})),t.createElement(h,{alignment:"center",axis:"horizontal",distribution:"space-between",padding:1.5,spacing:1},t.createElement(h,{alignment:"center",axis:"horizontal",height:"100%",spacing:1},t.createElement($a,{closeEmojiPicker:e,emojiPickerIsOpen:n,handleEmojiKeyDown:a,openEmojiPicker:c}),t.createElement(Fa,{isUploadEnabled:r,maxFilesLeft:o,multipleUploads:m,uploadNewFiles:d})),t.createElement(p,{alignSelf:"center",className:"focus-visible",color:Mt.lightNeutral100,css:{"&:active":{backgroundColor:Mt.interaction45},"&:hover":{backgroundColor:Mt.interaction50},"&[aria-disabled='true']":{"&:hover":{backgroundColor:`${Mt.lightNeutral81}`},backgroundColor:Mt.lightNeutral81},backgroundColor:Mt.interaction55},disabled:!i&&!s.length,onClick:l,title:E?"Save":"Send",tabIndex:0})))},Fa=({isUploadEnabled:e,maxFilesLeft:n,multipleUploads:a,uploadNewFiles:l})=>{const r=t.useMemo(()=>me(),[]),o=document.getElementById(r);return t.createElement(t.Fragment,null,t.createElement("label",{htmlFor:r,tabIndex:0,onKeyDown:e=>{!o||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),o.click())}},t.createElement(f,{color:Mt.lightNeutral45,css:{"&:active":{fill:Mt.lightNeutral12},"&:hover":{fill:Mt.lightNeutral24}},cursor:"pointer",height:"20px",name:"churchCenter.photosO",width:"20px"})),t.createElement(pe,{"aria-label":"File upload",className:"file-input",disabled:!e||0===n,id:r,multiple:a,onFileChange:l}))},$a=({closeEmojiPicker:e,emojiPickerIsOpen:n,handleEmojiKeyDown:a,openEmojiPicker:l})=>t.createElement(t.Fragment,null,t.createElement(p,{"aria-label":"Toggle emoji picker",className:"focus-visible",css:{"&:active":{fill:Mt.lightNeutral12},"&:hover":{fill:Mt.lightNeutral24}},fill:Mt.lightNeutral45,onClick:n?e:l,onKeyDown:a,paddingHorizontal:0,size:"sm",theme:!1,tooltip:"Pick an emoji"},t.createElement(C,{width:"23px",height:"23px"},t.createElement(te,null))),t.createElement(ne,{small:!0})),Ba=({isDragReject:e})=>t.createElement(h,{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")),Wa=()=>{const[e,t]=a(!1);return n(()=>{const e=document.querySelector(".str-chat__modal__inner"),n=document.querySelector(".custom-message-input-wrapper");t(null==e?void 0:e.contains(n))},[]),e},qa=()=>{const e=t.useRef(null);return n(()=>{if(e.current){var t,n,a;const l=null==(t=e.current)?void 0:t.querySelector("textarea");null==l||l.focus(),null==l||l.setSelectionRange(null==l||null==(n=l.value)?void 0:n.length,null==l||null==(a=l.value)?void 0:a.length)}},[]),e},Ga=()=>{var e;const{client:l,channel:r}=$(),{closeDrawer:o,isChannelViewActive:i,switchToChannelDetailsView:c,switchToChannelListView:s}=In(),d=(null==r||null==(e=r.data)?void 0:e.name)||"Channel name",[,m]=a(0);return n(()=>{if(!r)return On;const e=e=>{r&&r.cid===e.cid&&m(e=>e+1)};return l.on("channel.updated",e),()=>l.off("channel.updated",e)},[null==r?void 0:r.cid]),t.createElement(t.Fragment,null,t.createElement(h,{alignment:"baseline",axis:"horizontal",padding:2,paddingTop:1,spacing:1},t.createElement(p,{"aria-label":"Switch to chat list",icon:"general.leftChevron",onClick:s,size:"sm",title:"Back to chat list",variant:"naked"}),t.createElement(h,{shrink:1},t.createElement(yn,{truncate:!0},d),t.createElement(za,{channel:r})),t.createElement(h,{axis:"horizontal",marginLeft:"auto",spacing:1},t.createElement(p,{"aria-label":"Switch to conversation details",icon:"general.cog",onClick:c,size:"md",title:"Conversation details",variant:"naked"}),t.createElement(p,{"aria-label":"Close drawer",icon:"general.x",onClick:o,size:"md",title:"Close drawer",variant:"naked"}))),t.createElement(h,{grow:1,paddingBottom:2,shrink:1},t.createElement(ae,{Input:Ua,EditMessageInput:Ua,ReactionsList:ja,ReactionSelector:Ra,doMarkReadRequest:e=>i&&se(e.markRead(),"mark read")},t.createElement(le,null,t.createElement(re,{messageActions:["edit","delete","react"]}),t.createElement(oe,{disableMentions:!0,grow:!0})))))},Ja={plan_id:null,teams:[]},Ka=({filter:e})=>{const{people:o,createChat:i,isCreating:c,isFetching:s}=(e=>{const[t,o]=a([]),[i,c]=a(!1),[s,d]=a(!1),m=l({}),{findAndSwitchToChannel:u}=In(),p=Ln(),h=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]);return n(()=>{(async e=>{const t=JSON.stringify(e),n=m.current[t]||await(async e=>{d(!0);const t=await p.services.get("chat",we({fields:{Chat:"people"}},e));return d(!1),t})(e).then(e=>e.people);m.current[t]=n,o(n)})(h)},[h]),{createChat:async()=>{c(!0);const{payload:e}=await p.services.get("chat",we({fields:{Chat:"payload"}},h));p.chat.post("me/conversations",{payload:e}).then(u)},isCreating:i,isFetching:s,people:t}})(e),d=o.length>0,m=1===o.length?"Person":"People",u=o.filter(e=>e.child),p=u.length>0;return t.createElement(h,{grow:1},t.createElement(h,{grow:1,padding:2,paddingBottom:0,spacing:1},t.createElement(h,{alignment:"center",axis:"horizontal",spacing:1},t.createElement(w,{level:2},d?o.length:""," ",m," selected"),s&&t.createElement(Z,{size:"sm"})),d?t.createElement(t.Fragment,null,p&&t.createElement(Jn,{childPeople:u}),t.createElement(kn,null,t.createElement(h,{paddingBottom:2,spacing:2},o.map(e=>t.createElement(Bn,{key:e.id,person:e}))))):t.createElement(h,{alignment:"center",grow:1,maxHeight:18},t.createElement(g,{color:"foregroundSecondary"},"No Results"))),t.createElement(nl,{handleStartChat:i,startChatDisabled:!d,showSpinner:c}))},Xa=({value:e,name:t})=>({label:t,value:e}),Ya=({onChange:e,isActive:l,values:o})=>{const[i,c]=a({}),[s,d]=a(!1),[m,u]=a(0),p=Ln(),E=l&&s,v=!l&&o.teams.length>0;n(()=>{l||d(!1)},[l]),n(()=>{E&&o.teams.forEach(({team_id:e})=>{i[e]||(u(e=>e+1),p.services.get("chat",{fields:{Chat:"plans"},team_id:e}).then(({plans:t})=>{c(n=>we({},n,{[e]:t})),u(e=>e-1)}))})},[o.teams,E]);const b=r(()=>{const e=o.teams.reduce((e,{team_id:t})=>i[t]?we({},e,i[t].reduce((e,t)=>we({},e,{[t.value]:t}),{})):e,{});return Object.values(e).map(Xa)},[o.teams,i]);return t.createElement(h,{spacing:1},t.createElement(h,{axis:"horizontal",alignItems:"center",spacing:1},t.createElement(h,{alignItems:"center",axis:"horizontal",marginRight:"auto",spacing:1},t.createElement(V.InputLabel,{controls:"filter-by-plan-select",fontSize:"1.2em"},"Filter by plan"),m>0&&t.createElement(Z,{size:"xs"})),t.createElement(N,{disabled:!l,isChecked:s,onClick:()=>{d(e=>!e),e(e=>we({},e,{plan_id:null}))}})),s?t.createElement(M,{id:"filter-by-plan-select",value:o.plan_id,defaultValue:null,emptyValue:b.length?"Choose a plan":"No plans available",disabled:b.length<1,options:b,onChange:({value:t})=>{e(e=>we({},e,{plan_id:t}))}}):v?t.createElement(h,{axis:"horizontal",alignItems:"center",spacing:2,padding:2},t.createElement(f,{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)},Qa=({values:e,onChange:r,isActive:o})=>{const[i,c]=a(""),[s,d,m]=((e,t)=>{const[l,r]=a([]),[o,i]=a(!1),c=Ln();n(()=>{t&&(i(!0),c.services.get("chat",{fields:{Chat:"teams"}}).then(({teams:e})=>r(e)).finally(()=>i(!1)))},[t]);const[s,d]=l.reduce((t,n)=>(t[e.teams.some(({team_id:e})=>e===n.value.team_id)?0:1].push(n),t),[[],[]]);return[s,d,o]})(e,o),u=l();let E=0;const v={teams_i_lead:!0},b=((e,t)=>ga(e,t,{keys:["name"],threshold:ga.rankings.CONTAINS}).sort(wa).reduce((e,t)=>{var n;return e[n=t.group]||(e[n]=[]),e[t.group].push(t),e},{}))(d,i);n(()=>{o||c("")},[o]);const y=Object.entries(b);return t.createElement(h,{spacing:1},t.createElement(h,{axis:"horizontal",alignItems:"center",spacing:1},t.createElement(V.InputLabel,{fontSize:"1.2em",controls:"teams"},"Teams"),m&&t.createElement(Z,{size:"xs"})),t.createElement(h,{spacing:1},t.createElement(H,{spacing:1},s.map(e=>t.createElement(A,{key:e.value.team_id,size:"sm",title:e.name,renderLeft:t.createElement(p,{title:"remove",icon:"general.x"}),onClick:()=>r(t=>we({},t,{teams:t.teams.filter(({team_id:t})=>t!==e.value.team_id)}))}))),t.createElement(ll.Popover,{ref:u,id:"teams",openOnFocus:!0,closeOnSelect:!0,onClear:()=>c(""),onChange:e=>c(e.target.value),onSelect:({value:e})=>r(t=>we({},t,{teams:[...t.teams,e]})),placeholder:"Search teams",renderLeft:t.createElement(f,{name:"general.search"}),value:i},y.length?y.map(([e,n])=>{const a=n.map(e=>t.createElement(ll.Item,{key:E,index:E++,value:e},t.createElement(T,{query:i,text:e.name}))),l=n.length>10;return Object.keys(b).length>1?t.createElement(h,{key:e},t.createElement(h,{axis:"horizontal"},t.createElement(rl.Heading,{axis:"horizontal"},e),v[e]&&t.createElement(h,{padding:1,marginLeft:"auto"},t.createElement(p,{title:"Select all",size:"xs",variant:"outline",disabled:l,tooltip:{title:l?"Disabled when options would exceed 10":`select all in "${e}"`},onClick:()=>{r(e=>we({},e,{teams:[...e.teams,...n.map(e=>e.value)]})),u.current&&u.current.handleBlur()}}))),a):a}):t.createElement(rl.Item,null,t.createElement(g,null,"No matching teams for:"," ",t.createElement(g,{as:"span",inline:!0,italic:!0},`"${i}"`))))))},el=()=>t.createElement(h,{grow:1},t.createElement(h,{alignItems:"center",axis:"horizontal",padding:2,spacing:1},t.createElement(w,{level:2},"People selected")),t.createElement(h,{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."))),tl=({isActive:e})=>{const[l,o,i,c]=(e=>{const[t,l]=a(Ja);n(()=>{e||l(Ja)},[e]);const o=r(()=>{const[e,...n]=t.teams;return Boolean(e)&&n.every(({service_type_id:t})=>t===e.service_type_id)},[t.teams]);return n(()=>{o||l(e=>we({},e,{plan_id:null}))},[o]),[t,l,t.teams.length>0,o]})(e);return t.createElement(h,{grow:1},t.createElement(h,{spacing:2,padding:2},t.createElement(Qa,{values:l,onChange:o,isActive:e}),t.createElement(Ya,{values:l,onChange:o,isActive:c})),t.createElement(u,null),i?t.createElement(Ka,{filter:l}):t.createElement(t.Fragment,null,t.createElement(el,null),t.createElement(nl,{handleStartChat:On,startChatDisabled:!0,showSpinner:!1})))},nl=({handleStartChat:e,startChatDisabled:n,showSpinner:a})=>{const{switchToChannelListView:l}=In();return t.createElement(t.Fragment,null,t.createElement(u,null),t.createElement(h,{alignment:"center",grow:0,marginHorizontal:"auto",padding:2,spacing:2},t.createElement(g,{align:"center",size:5,color:"foregroundSecondary"},"Chat groups are dynamically updated based on the settings above. Any volunteer changes made in Services to a team or plan will be reflected in this group."),t.createElement(k,{columns:"auto 1fr",spacing:1,width:"100%"},t.createElement(p,we({"aria-label":"Back to channel list",onClick:l,variant:"outline"},Ca),"Cancel"),t.createElement(p,we({"aria-label":"Start chat",disabled:n,onClick:e},ka({disabled:n,spinner:a})),"Start chat"))))},al=()=>{const{isNewChatViewActive:e}=In();return t.createElement(t.Fragment,null,t.createElement(h,{alignment:"center",axis:"horizontal",spacing:1,padding:2,paddingTop:1},t.createElement(yn,{truncate:!0},"New Chat")),t.createElement(tl,{isActive:e}))},ll=P,rl=_,ol=V,il=({closeDrawer:e,children:a})=>{const{client:l,setActiveChannel:r}=$(),[o,i]=t.useState(!1),[c,s]=t.useState(0),d=()=>s(2);return n(()=>e,[]),t.createElement(_n,{value:{actionsOpenForChannel:o,closeDrawer:e,findAndSwitchToChannel:async({stream_channel_id:e})=>{const[t]=await l.queryChannels({id:{$eq:e}});t&&(r(t),d())},isChannelDetailsViewActive:3===c,isChannelViewActive:2===c,isNewChatViewActive:1===c,setActionsOpenForChannel:i,switchToChannelDetailsView:()=>s(3),switchToChannelListView:()=>s(0),switchToChannelView:d,switchToNewChatView:()=>s(1)}},t.createElement(An,{activeIndex:c},a))},cl=({chatClient:e,closeDrawer:n,env:a})=>t.createElement(ie,{client:e,theme:"str-chat__theme-light"},t.createElement(Tn,{env:a},t.createElement(il,{closeDrawer:n},t.createElement(La,{closeDrawer:n,client:e}),t.createElement(al,null),t.createElement(Ga,null),t.createElement(aa,null)))),sl={component:({closeDrawer:e,env:n,chatStreamUser:a})=>{const l=(e=>{const[n,a]=t.useState(null);return t.useEffect(()=>{if(!e)return On;let t=!1;const n=new ce(e.api_key),l=n.connectUser({id:e.id},e.token).then(()=>{t||a(n)});return()=>{t=!0,a(null),l.then(()=>n.disconnectUser()).then(()=>{console.log("connection closed")})}},[null==e?void 0:e.token]),n})(a);return l?t.createElement(cl,{chatClient:l,closeDrawer:e,env:n}):t.createElement(vn,{closeDrawer:e},t.createElement(h,{axis:"horizontal",spacing:1},t.createElement(yn,null,"Chat"),t.createElement(Z,{color:"hsl(0 0% 62%)",thickness:2,trackColor:"hsl(0 0% 97%)"})))},icons:{active:"general.textMessage",static:"general.outlinedTextMessage"},name:"Chat"},dl=P,ml=({sectionName:e,currentAppName:n})=>{const a=e.toLowerCase();return"account information"===a||"recent updates"===a?t.createElement(f,{name:"account information"===a?"general.cogPerson":"general.outlinedGenericFile",color:"foregroundSecondary"}):t.createElement(I,{name:n.toLowerCase().replace(/[\s]/,"-"),size:"sm",theme:"color",markOnly:!0})},ul=({hit:e,index:n})=>t.createElement(dl.Item,{key:e.objectID,index:n,value:e,paddingVertical:1},t.createElement(g,{color:"neutralDarker",size:4,whiteSpace:"normal"},e.title)),pl=({currentAppName:e,indexName:n})=>{const{query:a,refine:l}=fe(),{hits:r,results:o}=Ee(),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(dl.Popover,{placeholder:"Search our documentation",value:a,renderRight:t.createElement(f,{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(h,{axis:"horizontal",alignment:"center",paddingHorizontal:2,paddingVertical:1},t.createElement(g,{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(u,{margin:1}),t.createElement(h,{axis:"horizontal",alignment:"center",spacing:.5,paddingHorizontal:2,paddingVertical:1},t.createElement(ml,{currentAppName:e,sectionName:n}),t.createElement(g,{size:5,color:"foregroundSecondary",fontWeight:500},n)),a.map(e=>t.createElement(ul,{key:e.objectID,hit:e,index:c++})))}))},hl=({indexName:e,currentAppName:n})=>{const{algoliaSearchAuth:{algoliaApplicationId:a,algoliaSearchOnlyApiKey:l}}=Zt(),r=ge(a,l);return t.createElement(ve,{indexName:e,searchClient:r},t.createElement(be,{hitsPerPage:5}),t.createElement(pl,{currentAppName:n,indexName:e}))},{LoadingIndicator:gl,StackView:fl}=U,El={component:function({appName:e,closeDrawer:n,env:a,helpdeskConfig:l}){const r=`${s(a)("helpdesk")}/addons/toolbar.helpdesk.help`;return t.createElement(j,{grow:1,display:"flex",extensionId:"11",url:r,loadingFallback:t.createElement(fl,{flex:1,axis:"vertical"},t.createElement(vn,{closeDrawer:n},t.createElement(fl,{axis:"horizontal",spacing:1},t.createElement(yn,null,"Help and support"),t.createElement(gl,null)))),additionalComponents:{CalendlyWidget:he,DocumentationSearch:hl,DrawerHeader:vn,DrawerHeading:yn,ScrollContainer:kn,SwitchView:An},args:{appName:e,closeDrawer:n,currentPageParams:location.search,helpdeskConfig:l}})},icons:{active:"general.questionCircle",static:"general.outlinedQuestionCircle"},name:"Help"},vl=["dark","style"],bl=e=>{let{dark:n,style:a}=e,l=xe(e,vl);return t.createElement("div",we({style:we({color:n?Mt.lightNeutral62:Mt.lightNeutral24,fontSize:"10px",fontWeight:400,textTransform:"uppercase"},a)},l))},yl=({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",we({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?Mt.interaction66:Mt.lightNeutral81,r:"6",style:{transition:"all 0.2s"}}),t.createElement("circle",{cx:"6",cy:"6",fill:Mt.lightNeutral100,r:"5"}),!e&&t.createElement("circle",{cx:"6",cy:"6",r:"4",fill:Mt.interaction66})))},Cl=({mobile:e=!1,isLast:n,onMarkAsRead:a=(async()=>Promise.resolve({})),onToggleRead:l,showBottomBorder:r,notification:o})=>{const{appName:i,createdAt:c,isRead:s,link:d,title:m}=o,{organizationTimeZone:u}=Zt(),[p,h]=t.useState(!1),g={style:"relative"};return u&&(g.timeZone=u),t.createElement(vt,{active:p,"data-turbolinks":!1,href:d,onClick:async e=>{h(!0),await a(o),window.location.href=d},style:we({alignItems:"flex-start",borderBottom:r||!n?`1px solid ${e?Mt.lightNeutral24:Mt.lightNeutral93}`:"none",cursor:"pointer",display:"flex",overflow:"hidden",padding:"12px 16px",textDecoration:"none",verticalAlign:"middle"},Ke)},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%"}[i]||"0 0% 81%"} / ${s?"40%":"100%"}`,display:"flex",marginBottom:"10px",paddingLeft:"8px"}},t.createElement("div",{style:{flexGrow:1,marginRight:"16px"}},t.createElement(bl,{dark:e,style:{marginBottom:"6px",userSelect:"none"}},i),t.createElement("h1",{style:{color:e?Mt.lightNeutral88:Mt.darkNeutral12,fontSize:"14px",fontWeight:500,lineHeight:"1.3em",margin:0,userSelect:"none"}},m)),!e&&t.createElement(yl,we({onClick:e=>{e.preventDefault(),e.stopPropagation(),l()}},{isRead:s}))),t.createElement("div",{style:{color:e?Mt.lightNeutral62:Mt.lightNeutral24,fontSize:"12px",paddingLeft:"12px",userSelect:"none"}},de.datetime(c,g))))},wl=({context:e,dark:n=!1,description:a,title:l="No notifications"})=>t.createElement(h,{alignment:"center",distribution:"center",padding:4},t.createElement(rt,we({id:e},{dark:n})),t.createElement(w,{color:n?"#fafafa":"#3d3d3d",fontWeight:500,marginTop:1,size:3},l),t.createElement(g,{align:"center",color:n?"#fafafa":"#3d3d3d",size:4},a)),kl=(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),m=null==(n=d(e.relationships.app.data,t.included))||null==(a=n.attributes)?void 0:a.name,u=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:m,createdAt:new Date(e.attributes.created_at),id:e.id,isRead:(null==(s=e.attributes.read_at)?void 0:s.length)>0,link:null==u?void 0:u.link,title:null==u?void 0:u.title}},xl=["disabled","onClick","title"],Al=e=>{let{disabled:n,onClick:a,title:l}=e,r=xe(e,xl);return t.createElement(h,we({color:n?Mt.lightNeutral62:Mt.interaction66,cursor:n?"default":"pointer",fontSize:5,fontWeight:600,userSelect:"none",onClick:!n&&a},r),l)},Sl=e=>{let n=we({},(ke(e),e));return t.createElement(w,we({color:Mt.lightNeutral12,lineHeight:2,size:5,textTransform:"uppercase",userSelect:"none"},n))},Nl={component:function({closeDrawer:e}){const[n,a]=t.useState(!1),l={transition:"opacity 300ms ease-in-out"},r={entered:{opacity:1},entering:{opacity:.2}},{env:o,enabled:i,joltChannel:c}=_e.getState().notifications,{handleMarkAllAsRead:d,handleMarkAsRead:m,handleToggleRead:u,hasError:p,isLoading:g,read:f,unread:E}=(({enabled:e,env:n,joltChannel:a})=>{const[l,r]=t.useState([]),[o,i]=t.useState(!0),[c,d]=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)=>we({},e,t.isRead?{read:[...e.read,t]}:{unread:[...e.unread,t]}),{read:[],unread:[]});return{read:t,unread:n}})(l),p=()=>{try{d(!1),Ze(Se,`${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=>kl(t,e));i(!1),r(t)})}catch(e){d(!0),console.error("topbar encountered error when fetching all notifications",e)}};t.useEffect(()=>{e&&p()},[e]);const h=e=>JSON.parse(e.data),g=t.useCallback(e=>{try{(async e=>{try{return d(!1),Ze(Se,`${window.location.origin}/~api/notifications/v2/me/notifications/${e}?include=app,web_payloads`).then(({json:e})=>e)}catch(e){d(!0),console.error("topbar encountered error when fetching a single notification",e)}})(h(e).data.id).then(e=>{const t=kl(e.data,e);r(e=>[...e.filter(e=>e.id!==t.id),t])})}catch(e){console.error("topbar encountered error when updating state from jolt message",e)}},[kl,h,p,m,r,u]),f=t.useCallback(e=>{const t=h(e),n=l.filter(e=>e.id!==t.data.id);r(n)},[h,l,r]);Ve(e?a:void 0,"notifications.v2.events.notification.created",g),Ve(e?a:void 0,"notifications.v2.events.notification.updated",g),Ve(e?a:void 0,"notifications.v2.events.notification.destroyed",f);const E=async(e,t)=>{const a=e.reduce((e,n)=>[...e,{attributes:{action:t},id:n,type:"graph_notification"}],[]);return Ze(Ne,`${s(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||(i(!1),d(!0),r(t=>t.map(t=>e.includes(t.id)?we({},t,{isRead:!t.isRead}):t)))})};return{handleMarkAllAsRead:()=>{const e=u.map(e=>e.id);r(t=>t.map(t=>e.includes(t.id)?we({},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 r(n=>n.map(n=>e.id==n.id?we({},n,{isRead:"read"===t}):n)),E([e.id],t)},hasError:c,isLoading:o,read:m,unread:u}})({env:o,enabled:i,joltChannel:c});return t.createElement(t.Fragment,null,t.createElement(vn,{closeDrawer:e},t.createElement(h,{spacing:.5},t.createElement(h,{alignment:"center",axis:"horizontal",spacing:1},t.createElement(yn,null,"Notifications"),g&&t.createElement(Z,{color:"hsl(0 0% 62%)",thickness:2,trackColor:"hsl(0 0% 97%)"}),p&&t.createElement(it,{fill:"hsl(8 60% 47%)",size:16})),f.length>0&&t.createElement(Al,{onClick:()=>a(e=>!e),title:(n?"Hide":"Show")+" read"}))),t.createElement(kn,null,t.createElement(h,{alignment:"stretch",spacing:2},t.createElement("div",{style:{boxSizing:"border-box",display:"flex",flexDirection:"column",justifyContent:"space-between",margin:0,padding:"4px 0"}},!g&&0===E.length&&t.createElement(wl,we({context:"toolbar",description:`When you have ${f.length>0?"unread ":""}notifications they will show up here.`},f.length>0&&{title:"No unread notifications"})),E.length>0&&t.createElement(h,{axis:"horizontal",alignment:"center",distribution:"space-between",padding:2},t.createElement(Sl,null,"Unread"),E.length>0&&t.createElement(Al,{onClick:()=>d(),title:`Mark ${E.length} as read`})),t.createElement(ye,{exit:!1},E.map((e,n)=>t.createElement(Ce,{key:e.id,timeout:0},a=>t.createElement("div",{style:we({},l,r[a])},t.createElement(Cl,we({isLast:E.length===n+1,key:e.id,onMarkAsRead:m,onToggleRead:()=>u(e),showBottomBorder:f.length>0},{notification:e})))))),f.length>0&&n&&t.createElement(t.Fragment,null,t.createElement(Sl,{padding:2},"Read"),t.createElement(ye,{exit:!1},f.map(e=>t.createElement(Ce,{key:e.id,timeout:0},n=>t.createElement("div",{style:we({},l,r[n])},t.createElement("div",{style:{opacity:.6}},t.createElement(Cl,we({key:e.id,onToggleRead:()=>u(e),showBottomBorder:!0},{notification:e}))))))))))))},icons:{active:"toolbar.notification",static:"toolbar.notificationO"},name:"Notifications"},{LoadingIndicator:Zl,StackView:zl}=U,Vl={component:function({closeDrawer:e,enableJoltLogging:n,env:l,isOpen:r,joltPromise:o,onReceiveWorker:c,openDrawer:d}){const m=`${s(l)("home")}/addons/toolbar.tasks.list.js`,[u,p]=a(),[h,g]=a(),f=ze({channelName:null==h?void 0:h.channelName,enableJoltLogging:n,enabled:!!h,env:l,fetchSubscribeToken:async e=>{const t=h.subscribeUrl;return(await Ze(Ne,t,{data:{data:{attributes:{connection_id:e}}},method:"POST"})).json.data.id},joltPromise:o}),E=i(e=>{p(we({},e,{timestamp:(new Date).getTime()}))},[]);Ve(f,"",E);const v=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(j,{grow:1,display:"flex",extensionId:"2",url:m,onReceiveWorker:c,loadingFallback:t.createElement(zl,{flex:1,axis:"vertical"},t.createElement(vn,{closeDrawer:e},t.createElement(zl,{axis:"horizontal",spacing:1},t.createElement(yn,null,"Tasks"),t.createElement(Zl,null)))),additionalComponents:{DrawerHeader:vn,DrawerHeading:yn,SwitchView:An},args:{closeDrawer:e,isOpen:r,latestJoltMessage:u,openDrawer:d,requestJoltChannel:g,trackPendo:v}})},icons:{active:"toolbar.checklist",static:"toolbar.checklistO"},name:"Tasks"},Ml=e=>t.createElement(C,we({backgroundColor:Mt.home.brand62,height:1.5,pointerEvents:"none",position:"absolute",radius:"50%",right:.25,top:.25,width:1.5,zIndex:6},e)),Hl={Chat:sl,Notifications:Nl,Tasks:Vl};function Tl({appName:l,autoMountTool:r,enableJoltLogging:o,env:i,helpdeskConfig:c={},linkToProfile:d=!0,userAvatarPath:E,userName:b,onReceiveTasksWorker:y}){const A=r?Hl[r]:null,[S,N]=e.useReducer(Zn,we({},Nn,{currentContent:A})),{currentContent:Z,open:z}=S,V=!!Z,{helpdeskEnabled:M,indicatorVisible:H,joltPromise:T,chatEnabled:P,userId:_}=Zt(),I=(({enableJoltLogging:e,env:n,userId:a,isEnabled:l,joltPromise:r})=>{const[o,i]=t.useState(null),c=ze({channelName:`chat.people.${a}`,enableJoltLogging:e,enabled:l,env:n,fetchSubscribeToken:async e=>{const t=`${s(n)("api")}/chat/v2/me/jolt_subscribe`;return Ze(Ne,t,{data:{data:{attributes:{cid:e}}},method:"POST"}).then(({json:e})=>e.data.id)},joltPromise:r}),d=()=>Ze(Se,`${s(n)("api")}/chat/v2/me/stream_user`).then(({json:{data:{id:e,attributes:t}}})=>{const{token:n}=t,a=xe(t,Dn);i(n?t=>we({id:e,token:n},t,a):null)}).catch(On);return Ve(l?c:void 0,"STREAM_USER_UPDATED",d),t.useEffect(()=>{l&&d()},[l]),o})({enableJoltLogging:o,env:i,isEnabled:Boolean(_&&P),joltPromise:T,userId:_});t.useEffect(()=>{z?(document.body.style.overflow="hidden",window.scrollTo(0,0)):document.body.style.overflow="auto"},[z]);const L=cn({appName:l.replace(/[\s-]/,""),env:i,userId:_}),O=`${s(i)("login")}/logout`,D=`/people/AC${_}`,R=[M&&El].filter(Boolean),j=[Nl,Vl,I&&sl].filter(Boolean),U=e=>{N({payload:{content:e},type:Sn.mount}),setTimeout(()=>N({type:Sn.open}))},$=()=>{N({type:Sn.close}),setTimeout(()=>N({type:Sn.unmount}),100)},B=e=>z?(null==Z?void 0:Z.name)===e.name?$():N({payload:{content:e},type:Sn.set}):U(e),W={component:()=>function({closeDrawer:e,linkToProfile:n,loginSettingsUrl:a,logoutUrl:l,profileUrl:r,userAvatarPath:o}){const{mfaConfigured:i,mfaEnabled:c,name:s}=Zt();return t.createElement(h,{axis:"vertical",spacing:t.createElement(u,null)},t.createElement(k,{columns:"auto 1fr auto",alignment:"start",spacing:2,padding:2,paddingTop:1,width:"100%"},t.createElement(x,{source:o,size:"md"}),t.createElement(h,{axis:"vertical",spacing:1,grow:0,shrink:1},t.createElement(w,{level:3,weight:600,paddingTop:.5,color:Mt.lightNeutral12},s),n&&t.createElement(v,{to:r,style:{color:Mt.lightNeutral45}},"My profile"),c&&t.createElement(t.Fragment,null,t.createElement(v,{to:a,style:{color:Mt.lightNeutral45}},"My login settings"),t.createElement(h,{axis:"horizontal",alignment:"center",spacing:.5,width:"100%"},t.createElement(f,{name:i?"general.lock":"general.unlock",size:"sm",color:i?Mt.success25:Mt.danger45}),t.createElement(g,{size:5,weight:400,color:Mt.lightNeutral62,wrap:!0},"Two-step verification ",i?"active":"inactive")))),t.createElement(p,{icon:{fill:Mt.lightNeutral24,name:"general.x",size:"md"},onClick:e,title:"Close",variant:"naked",theme:!1,hover:{backgroundColor:Mt.lightNeutral95}})),t.createElement("form",{method:"POST",action:l},t.createElement(p,{"data-turbolinks":!1,onClick:()=>{Oe()},style:{padding:0},theme:!1,type:"submit",width:"100%"},t.createElement(h,{distribution:"space-between",alignment:"center",axis:"horizontal",grow:1,paddingHorizontal:3,paddingVertical:2},t.createElement(g,{color:Mt.lightNeutral45},"Log out"),t.createElement(f,{name:"general.intoBox",fill:Mt.lightNeutral45})))))}({closeDrawer:$,linkToProfile:d,loginSettingsUrl:L,logoutUrl:O,profileUrl:D,userAvatarPath:E}),name:"Profile"},q=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: 600px)"),[G,J]=t.useState(0);t.useLayoutEffect(()=>{const e=()=>{J(window.innerHeight)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const K=we({appName:l,closeDrawer:$,env:i,helpdeskConfig:c,isOpen:z,joltPromise:T,openDrawer:()=>Z&&U(Z),userId:_},Z?{Chat:{chatStreamUser:I},Tasks:{onReceiveWorker:y}}[Z.name]:{}),X=we({},H,{Chat:(null==I?void 0:I.total_unread_count)>0}),Y=({tool:e,open:n,currentContent:a,indicatorState:l})=>t.createElement(C,{"data-pendo":`toolbar-${e.name.toLowerCase()}`,key:e.name,position:"relative"},l[e.name]&&t.createElement(Ml,null),t.createElement(p,{id:`toolbar-${e.name.toLowerCase()}`,color:n&&a===e?Mt.lightNeutral24:Mt.lightNeutral62,hover:{color:Mt.lightNeutral24},icon:{name:n&&a===e?e.icons.active:e.icons.static,size:"20px"},key:e.name,onClick:()=>B(e),title:`Open ${e.name} drawer`,theme:!1}));return t.createElement(m,{theme:mn},t.createElement(F,null,q?t.createElement(t.Fragment,null,t.createElement(h,{left:0,position:"absolute",right:0,pointerEvents:"none",style:{minHeight:G},top:0,zIndex:10001},t.createElement(h,{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(h,{alignment:"center",flex:"1",position:"relative"},t.createElement(p,{css:{WebkitTapHighlightColor:"transparent"},color:z?Mt.lightNeutral62:Mt.lightNeutral24,hover:{color:Mt.lightNeutral24},icon:{name:z?"toolbar.planningCenterO":"toolbar.planningCenter",size:"20px"},onClick:()=>$(),padding:2,theme:!1,title:"Home"})),[...R,...j].map(e=>t.createElement(h,{alignment:"center",flex:"1",key:e.name,position:"relative"},t.createElement(p,{id:`toolbar-${e.name.toLowerCase()}`,"aria-label":`${e.name}`,color:z&&Z===e?Mt.lightNeutral24:Mt.lightNeutral62,css:{WebkitTapHighlightColor:"transparent"},hover:{color:Mt.lightNeutral24},key:e.name,onClick:()=>(e=>{var t;U(e),null==(t=document.getElementById(`toolbarDrawer${e.name}`))||t.scrollTo({behavior:"smooth",top:0})})(e),paddingHorizontal:2,paddingVertical:2,theme:!1},t.createElement(C,{position:"relative"},X[e.name]&&t.createElement(Ml,{right:-.5,top:-.5}),t.createElement(f,{name:z&&Z===e?e.icons.active:e.icons.static,size:"20px"}))))))),V&&t.createElement(En,{id:`toolbarDrawer${Z.name}`,bottom:"52px",height:"calc(100% - 52px)",overflow:"auto",position:"absolute"},t.createElement(Z.component,we({},K)))):t.createElement(h,{height:"100vh",position:"absolute",right:0,width:z?"calc(360px + 48px)":"48px",transition:"all 100ms ease-in-out"},t.createElement(h,{backgroundColor:"surface",borderLeftColor:"separatorTertiary",borderLeftWidth:1,grow:1,paddingVertical:1,spacing:t.createElement(u,{margin:2}),zIndex:2,position:"absolute",right:0,height:"100%",width:"48px"},t.createElement(h,{alignment:"center","data-pendo":"toolbar-profile-support-wrapper",spacing:2},t.createElement(p,{"data-pendo":"toolbar-profile",onClick:()=>B(W),radius:0,theme:!1},t.createElement(x,{alt:`${b}'s avatar`,hover:{outlineColor:Mt.lightNeutral62},outlineColor:z&&V&&"Profile"==Z.name?Mt.lightNeutral62:"transparent",outlineOffset:"2px",outlineStyle:"solid",outlineWidth:"2px",size:"sm",source:E})),!M&&t.createElement(p,{color:Mt.lightNeutral62,"data-pendo":"toolbar-support",hover:{color:Mt.lightNeutral24},icon:{name:"general.outlinedQuestionCircle",pointerEvents:"none",size:"20px"},id:"jsLaunchHelpdesk",title:"Help",theme:!1}),R.map(e=>t.createElement(Y,{key:e.name,tool:e,open:z,currentContent:Z,indicatorState:X}))),t.createElement(h,{alignment:"center",spacing:2},j.map(e=>t.createElement(Y,{key:e.name,tool:e,open:z,currentContent:Z,indicatorState:X})))),V&&t.createElement(En,{hasShadow:!0,id:`toolbarDrawer${Z.name}`,width:"360px"},t.createElement(Z.component,we({},K))))))}export{Ie as AppsProvider,lt as BellIcon,De as ConnectedPeopleProvider,je as DisplaySwitch,Rt as NotSmallRoute,Dt as NotSmallTopbar,Wt as PlatformAnnouncements,Bt as PlatformAnnouncementsStyleProvider,Yt as ProductAnnouncement,Qt as ProductAnnouncementStyleProvider,fn as SmallRoute,gn as SmallTopbar,ct as SpyglassIcon,$t as StyledPlatformAnnouncement,en as StyledProductAnnouncement,tn as StyledProductAnnouncementDimissButton,An as SwitchView,Tl as Toolbar,st as XIcon,Le as mapApps,Ne as railsCsrfFetch};
|
|
2
2
|
//# sourceMappingURL=topbar.modern.js.map
|