@planningcenter/topbar 9.14.0 → 10.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/topbar.css +15 -11
- package/dist/topbar.css.map +1 -1
- package/dist/topbar.js +1 -1
- package/dist/topbar.js.map +1 -1
- package/dist/topbar.modern.js +1 -1
- package/dist/topbar.modern.js.map +1 -1
- package/dist/topbar.module.js +1 -1
- package/dist/topbar.module.js.map +1 -1
- package/dist/topbar.umd.js +1 -1
- package/dist/topbar.umd.js.map +1 -1
- package/dist/types/modules/hooks/use_cookie.d.ts +3 -0
- package/dist/types/modules/hooks/use_cookie.d.ts.map +1 -0
- package/dist/types/modules/hooks/use_fragment_routing.d.ts +5 -0
- package/dist/types/modules/hooks/use_fragment_routing.d.ts.map +1 -0
- package/dist/types/modules/toolbar/hooks/use_pco_meta.d.ts.map +1 -1
- package/dist/types/modules/toolbar/hooks/use_toolbar_reducer.d.ts +0 -1
- package/dist/types/modules/toolbar/hooks/use_toolbar_reducer.d.ts.map +1 -1
- package/dist/types/modules/toolbar/index.d.ts.map +1 -1
- package/dist/types/modules/toolbar/tools/chat/components/channel_view/custom_reaction_options.d.ts +6 -0
- package/dist/types/modules/toolbar/tools/chat/components/channel_view/custom_reaction_options.d.ts.map +1 -0
- package/dist/types/modules/toolbar/tools/chat/components/channel_view/emoji_data.d.ts +10 -0
- package/dist/types/modules/toolbar/tools/chat/components/channel_view/emoji_data.d.ts.map +1 -0
- package/dist/types/modules/toolbar/tools/chat/components/channel_view/message_input.d.ts.map +1 -1
- package/dist/types/modules/toolbar/tools/tasks.d.ts.map +1 -1
- package/dist/types/modules/utils.d.ts +1 -0
- package/dist/types/modules/utils.d.ts.map +1 -1
- package/package.json +6 -2
- package/dist/types/modules/toolbar/tools/chat/components/channel_view/custom_reaction_selector.d.ts +0 -4
- package/dist/types/modules/toolbar/tools/chat/components/channel_view/custom_reaction_selector.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/channel_view/custom_reactions_list.d.ts +0 -3
- package/dist/types/modules/toolbar/tools/chat/components/channel_view/custom_reactions_list.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/channel_view/hooks/index.d.ts +0 -3
- package/dist/types/modules/toolbar/tools/chat/components/channel_view/hooks/index.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/channel_view/hooks/use_emojis.d.ts +0 -4
- package/dist/types/modules/toolbar/tools/chat/components/channel_view/hooks/use_emojis.d.ts.map +0 -1
- package/dist/types/modules/toolbar/tools/chat/components/channel_view/hooks/use_reactions.d.ts +0 -4
- package/dist/types/modules/toolbar/tools/chat/components/channel_view/hooks/use_reactions.d.ts.map +0 -1
package/dist/topbar.modern.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import*as e from"react";import t,{useEffect as n,useState as a,useRef as l,useMemo as r,useContext as o,useCallback as i,Fragment as c}from"react";import s from"@planningcenter/jolt-client";import d from"@planningcenter/url";import{useSyncExternalStore as m}from"use-sync-external-store/shim";import{ThemeProvider as u,Divider as p,Button as h,StackView as g,Text as f,Icon as E,designSystem as v,Link as b,HeadingUppercase as w,List as C,Box as y,Heading as k,GridView as x,Avatar as A,WrapView as S,Badge as N,Collapse as V,ToggleSwitch as z,Input as T,Select as M,Spinner as Z,Menu as H,Group as _,Tooltip as P,Dropdown as O,Combobox as I,Logo as L}from"@planningcenter/tapestry-react";import*as D from"@planningcenter/icons/paths/church-center";import*as R from"@planningcenter/icons/paths/general";import*as U from"@planningcenter/icons/paths/people";import*as F from"@planningcenter/icons/paths/toolbar";import{UiExtensionFirstPartyComponent as j,components as $,UiExtensionDataContext as B}from"@planningcenter/add-ons";import{useChatContext as W,Avatar as q,ChannelList as G,InfiniteScroll as J,useMessageListContext as K,useEmojiContext as Y,ReactionSelector as X,ReactionsList as Q,useMessageInputContext as ee,useChannelStateContext as te,AttachmentPreviewList as ne,ChatAutoComplete as ae,EmojiPickerIcon as le,EmojiPicker as re,Channel as oe,Window as ie,MessageInput as ce,MessageList as se,Chat as de}from"stream-chat-react";import{StreamChat as me,logChatPromiseExecution as ue}from"stream-chat";import pe from"@planningcenter/datetime-fmt";import{nanoid as he}from"nanoid";import{useDropzone as ge}from"react-dropzone";import{UploadButton as fe}from"react-file-utils";import{InlineWidget as Ee}from"react-calendly";import ve from"algoliasearch";import{useSearchBox as be,useHits as we,InstantSearch as Ce,Configure as ye}from"react-instantsearch";import{TransitionGroup as ke,Transition as xe}from"react-transition-group";function Ae(){return Ae=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},Ae.apply(this,arguments)}function Se(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function Ne(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 Ve=["headers"],ze=(e,t)=>fetch(e,Ae({credentials:"include",mode:"cors"},t)),Te=(e,t)=>{let{headers:n}=t,a=Ne(t,Ve);return fetch(e,Ae({headers:Ae({},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 Me(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[c,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 s(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()=>Me(Te,`${window.location.origin}/~api/notifications/v2/me/notifications_jolt_authorize`,{data:{data:{attributes:{}}},method:"POST"}).then(({json:e})=>e.data.id),fetchSubscribeTokenFn:a},{logToConsole:n}));const c=t.subscriptions.find(t=>t.channel===e)||t.subscribe(e,{fetchSubscribeTokenFn:a});m(c),p(t)},[Me,e,l,d,Te]);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]),c},He=(e,t,a)=>n(()=>e?(e.bind(t,a),()=>e.unbind(t,a)):()=>{},[e,a]),_e=(e,t=1)=>{const n=e.replace(/[a-z()%]/g,"").split(" ");return`hsla(${n[0]}, ${n[1]}%, ${n[2]}%, ${t})`},Pe=(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 Oe(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 Ie=()=>{};function Le(e){let t=e;const n=new Set;return{getState:()=>t,setState:e=>{t=e,n.forEach(e=>e(t))},subscribe:e=>(n.add(e),()=>n.delete(e))}}const De=Le({}),Re=({configuredFetch:e=ze,enableJoltLogging:l,env:r,formatter:o=Ue,joltPromise:i,wssEndpoint:c,render:s,userId:m})=>{var u,p,h,g,f,E,v,b,w,C,y,k,x,A,S,N,V,z,T,M,Z;const H=(({configuredFetch:e,env:t})=>{const{storedValue:l,setStoredValue:r}=Oe("Topbar",{}),[o,i]=a(l);n(()=>{c()},[]);const c=()=>{Me(e,`${d(t)("api")}/people/v2/me/topbar`).then(({json:e,ok:t})=>{t&&(i(e),r(e))})};return o})({configuredFetch:e,env:r}),_=o(H),P=null==H||null==(u=H.data)||null==(p=u.attributes)?void 0:p.has_connected_people,O=null==H||null==(h=H.data)||null==(g=h.attributes)||null==(f=g.features)?void 0:f.includes("mfa_enabled"),I=null==H||null==(E=H.data)||null==(v=E.attributes)||null==(b=v.features)?void 0:b.includes("notifications_context_menu"),L=!(null==H||null==(w=H.data)||null==(C=w.attributes)||!C.mfa_configured),D=null==H||null==(y=H.data)||null==(k=y.attributes)?void 0:k.name,R=!window.notificationsDisabled,U=(null==H||null==(x=H.data)||null==(A=x.attributes)?void 0:A.org_time_zone)||"America/Los_Angeles",F=null==H||null==(S=H.data)||null==(N=S.attributes)||null==(V=N.features)?void 0:V.includes("chat_enabled"),j={algoliaApplicationId:null==H||null==(z=H.data)||null==(T=z.attributes)?void 0:T.algolia_application_identifier,algoliaSearchOnlyApiKey:null==H||null==(M=H.data)||null==(Z=M.attributes)?void 0:Z.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 Me(Te,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}=Oe("Topbar:Notifications:hasUnread",!1),r=((e,n=0)=>t.useMemo(()=>Pe(e,n),[]))(()=>{const e=`${window.location.origin}/~api/notifications/v2/me/unread`;Me(ze,e).then(({json:e})=>{l(e.data.attributes.unread)}).catch(Ie)},300);return t.useEffect(()=>{e&&r()},[e]),He(e?n:void 0,"notifications.v2.events.notification.created",r),He(e?n:void 0,"notifications.v2.events.notification.updated",r),He(e?n:void 0,"notifications.v2.events.notification.destroyed",r),a})({enabled:!0,env:r,joltChannel:$});return n(()=>{const e=De.getState();De.setState(Ae({},e,{algoliaSearchAuth:j,chatEnabled:F,hasConnectedPeople:P,indicatorVisible:Ae({},e.indicatorVisible,{Notifications:B}),joltPromise:i,mfaConfigured:L,mfaEnabled:O,name:D,notifications:{enabled:R,env:r,joltChannel:$},notificationsContextMenu:I,notificationsEnabled:R,notificationsJoltChannel:$,organizationTimeZone:U,userId:m}))},[i,L,O,D,I,R,B,U,m]),s(_||[],{fetch:()=>{},remove:()=>{}})};function Ue(e){var t,n;return(null==e||null==(t=e.data)||null==(n=t.attributes)?void 0:n.apps)||[]}function Fe(){window.localStorage.removeItem("Topbar:ConnectedPeople")}class je extends t.Component{constructor(e){super(e),this.state={connectedPeople:[]}}fetch(){Me(this.props.configuredFetch,`${d(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(){Me(this.props.configuredFetch,`${d(this.props.env)("api")}/login/v2/me/unlink`,{method:"POST"}).then(({json:e})=>{window.location=e.meta.redirect_to})}switch(e,t){Me(this.props.configuredFetch,`${d(this.props.env)("api")}/login/v2/me/switch_connected_person`,{data:{data:{attributes:{id:e,return_path:t}}},method:"POST"}).then(({json:e})=>{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:Fe.bind(this),switch:this.switch.bind(this),unlink:this.unlink.bind(this)})}}je.defaultProps={configuredFetch:ze};class $e 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",Pe(this.setWindowWidth,100),!1)}componentWillUnmount(){window.removeEventListener("resize",Pe(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 Be extends t.Component{render(){return t.createElement($e,{render:e=>-1!==this.props.smallBreakpoints.indexOf(e)?this.props.smallTopbar(e):this.props.notSmallTopbar(e)})}}function We({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"})}Be.defaultProps={smallBreakpoints:["xs","sm"]};var qe={__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:We,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 Ge=["appName","colors","style","size"];function Je({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 Ke(e){let{appName:n,colors:a,style:l,size:r=20}=e,o=Ne(e,Ge);return t.createElement("svg",Ae({xmlns:"http://www.w3.org/2000/svg",width:r,height:r,viewBox:"0 0 20 20",role:"img","aria-labelledby":"title desc",style:Ae({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(Je,null),qe[n]?t.createElement(qe[n],{color:"Accounts"!=n?a.base0:"#fff"}):t.createElement("div",null,"appName not supported"))}var Ye={__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 Xe({appName:e,color:n,size:a=20}){return Ye[e]?t.createElement(Ye[e],{color:n,size:a}):t.createElement("div",null,"appName not supported")}const Qe={transition:"background-color 120ms ease-in"},et={fontFamily:"inherit"},tt={flex:"1 1 auto"},nt=["dot","dotFill","fill","style"],at=["dark","id","style"],lt=["colors","style"],rt=["fill","size","style"],ot=["fill","style"],it=["fill","style"],ct=e=>{let{dot:n=!1,dotFill:a="#fff",fill:l="#fff",style:r}=e,o=Ne(e,nt);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",Ae({width:"24",height:"24",viewBox:"0 0 24 24",style:Ae({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}))},st=e=>{let{dark:n=!1,id:a="default",style:l}=e,r=Ne(e,at);return t.createElement("svg",Ae({fill:"none",height:"123",style:Ae({},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"}))))},dt=e=>{let{colors:n,style:a}=e,l=Ne(e,lt);return t.createElement("svg",Ae({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"}))},mt=e=>{let{fill:n="#000",size:a=24,style:l}=e,r=Ne(e,rt);return t.createElement("svg",Ae({height:a,style:Ae({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}))},ut=e=>{let{fill:n="#000",style:a}=e,l=Ne(e,ot);return t.createElement("svg",Ae({width:"24",height:"24",viewBox:"0 0 24 24",style:Ae({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}))},pt=e=>{let{fill:n="#A0A0A0",style:a}=e,l=Ne(e,it);return t.createElement("svg",Ae({width:"16",height:"16",viewBox:"0 0 16 16",style:Ae({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}))},ht=["style"];function gt(e){let{style:n}=e,a=Ne(e,ht);return t.createElement("button",Ae({style:Ae({WebkitAppearance:"none",appearance:"none",backgroundColor:"transparent",border:"none",cursor:"pointer",display:"inline-block",outline:0,padding:0},et,n)},a))}const ft=["appName","colors","displayIconOnly","expanded","onClick","style"],Et=e=>{let{appName:n,colors:a,displayIconOnly:l,expanded:r,onClick:o,style:i=null}=e,c=Ne(e,ft);const[s,d]=t.useState(!1),[m,u]=t.useState(!1);return t.createElement(gt,Ae({onClick:o,onMouseDown:()=>d(!0),onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),onMouseUp:()=>d(!1),style:Ae({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"},Qe,i)},c),t.createElement(Ke,{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(Xe,{appName:n.replace(/[\s-]/,""),color:"#fff",key:"mono-app-name",size:24})),t.createElement("div",{key:"space-2",style:{margin:4}}),t.createElement(dt,{colors:a,key:"disclosure-chevron-icon",style:{display:"block"}})))};var vt={__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 bt({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(vt[e]?vt[e]:"span",{key:"key1"}),qe[e]?t.createElement(qe[e],{color:"#fff",key:"key2"}):t.createElement("div",{key:"key3"},"appName not supported"))}function wt(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 Ct=["active","component","style"],yt=e=>{let{active:n=!1,component:a="span",style:l=null}=e,r=Ne(e,Ct);const[o,i]=t.useState(!1);return t.createElement(a,Ae({onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),style:Ae({},l,{backgroundColor:n?"#ededed":o?"#f7f7f7":"transparent"})},r))},kt=["cleanup","onOutsideClick","visible"];class xt 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=Ne(e,kt);return n?document.removeEventListener("click",this.handleOutsideClick,!0):document.addEventListener("click",this.handleOutsideClick,!0),t.createElement("div",Ae({ref:e=>this.container=e},a))}}const At=["style"],St=e=>{let{style:n=null}=e,a=Ne(e,At);return t.createElement("div",Ae({style:Ae({alignSelf:"flex-end",display:"flex",position:"relative"},n)},a))},Nt=["component","style"],Vt=e=>{let{component:n="div",style:a=null}=e,l=Ne(e,Nt);return t.createElement(n,Ae({style:Ae({background:"#FFFFFF",borderRadius:"3px",boxShadow:"0 0 0 1px #D4D9E2, 0 8px 32px rgba(0,0,0,.3)",overflow:"hidden",position:"absolute"},a)},l))},zt=({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)),s=Ae({},et,{alignItems:"center",display:"flex",height:"48px",overflow:"hidden",padding:"0 16px",verticalAlign:"middle"});return t.createElement(St,null,t.createElement(Vt,{cleanup:!r,component:xt,onOutsideClick:l,style:Ae({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(yt,{component:"a","data-pendo":`app-switcher--change-app--${i.name}`,"data-turbolinks":!1,href:e===i.name?`${d(a)("accounts")}/apps/${e}`:d(a)("accounts")+wt(i.name),style:Ae({},s,{borderBottom:"1px solid #ededed"})},t.createElement("div",{style:{marginRight:"6px"}},t.createElement(bt,{appName:"Home",size:20})),t.createElement(Xe,{appName:"Home",color:"#444",size:18})),c.map(({name:n},l)=>{const r=0===l,o=l===c.length-1;return t.createElement(yt,{component:"a","data-pendo":`app-switcher--change-app--${n}`,"data-turbolinks":!1,href:n===e?`${d(a)("accounts")}/apps/${n.toLowerCase()}`:d(a)("accounts")+wt(n),key:n,style:Ae({},s,{height:"40px",paddingBottom:o?"4px":null,paddingTop:r?"4px":null})},t.createElement("div",{style:{marginRight:"6px"}},t.createElement(bt,{appName:n.replace(/[\s-]/,""),size:20})),t.createElement(Xe,{appName:n.replace(/[\s-]/,""),color:"#444",size:18}))}),o&&t.createElement(yt,{component:"a","data-pendo":`app-switcher--change-app--${o.name}`,"data-turbolinks":!1,href:d(a)("accounts")+wt(o.name),style:Ae({},s,{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(We,{color:"#9e9e9e",key:"key2"})),t.createElement("div",{style:{color:"#737373",fontSize:"12px",lineHeight:"28px"}},"Account settings")))))},Tt=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},Mt=e=>e.slice().sort((e,t)=>e.attributes.organization_name.localeCompare(t.attributes.organization_name)),Zt=(e=(e=>e))=>m(De.subscribe,()=>e(De.getState())),Ht=["children","style"];function _t(e){let{children:n,style:a}=e,l=Ne(e,Ht);return t.createElement("nav",Ae({className:"simple","data-pendo":"topbar","aria-label":"topbar-navigation",style:Ae({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 Pt={danger43:"hsl(8 60% 43%)",danger45:"hsl(8 60% 45%)",danger47:"hsl(8 60% 47%)",danger93:"hsl(9 59% 93%)",danger97:"hsl(7 60% 97%)",darkNeutral07:"hsl(0 0% 7%)",darkNeutral12:"hsl(0 0% 12%)",darkNeutral15:"hsl(0 0% 15%)",darkNeutral17:"hsl(0 0% 17%)",darkNeutral19:"hsl(0 0% 19%)",darkNeutral24:"hsl(0 0% 24%)",darkNeutral32:"hsl(0 0% 32%)",darkNeutral50:"hsl(0 0% 50%)",darkNeutral68:"hsl(0 0% 68%)",darkNeutral88:"hsl(0 0% 88%)",darkNeutral98:"hsl(0 0% 98%)",interaction45:"hsl(221 75% 45%)",interaction50:"hsl(221 91% 50%)",interaction55:"hsl(221 91% 55%)",interaction66:"hsl(221 91% 66%)",interaction91:"hsl(221 91% 91%)",interaction93:"hsl(221 91% 93%)",interaction97:"hsl(221 89% 97%)",lightNeutral12:"hsl(0 0% 12%)",lightNeutral24:"hsl(0 0% 24%)",lightNeutral45:"hsl(0 0% 45%)",lightNeutral62:"hsl(0 0% 62%)",lightNeutral81:"hsl(0 0% 81%)",lightNeutral88:"hsl(0 0% 88%)",lightNeutral93:"hsl(0 0% 93%)",lightNeutral95:"hsl(0 0% 95%)",lightNeutral97:"hsl(0 0% 97%)",lightNeutral98:"hsl(0 0% 98%)",lightNeutral100:"hsl(0 0% 100%)",success23:"hsl(86 91% 23%)",success25:"hsl(86 91% 25%)",success27:"hsl(86 91% 27%)",success91:"hsl(95 50% 91%)",success97:"hsl(93 53% 97%)",warning20:"hsl(42 100% 20%)",warning49:"hsl(42 84% 49%)",warning55:"hsl(42 84% 55%)",warning63:"hsl(42 84% 63%)",warning94:"hsl(42 84% 94%)",warning97:"hsl(42 84% 97%)"},Ot=["style"],It=e=>{let{style:n=null}=e,a=Ne(e,Ot);return t.createElement("div",Ae({style:Ae({alignSelf:"flex-end",display:"flex",position:"relative"},n)},a))},Lt=({appName:e,connectedPeople:n,env:a,hasConnectedPeople:l,requestClearAppsCache:r,requestClearConnectedPeopleCache:o,requestSwitchConnectedPerson:i,requestUnlinkConnectedPeople:c,setUserMenuVisible:s,userMenuVisible:m})=>{const v=`${d(a)("login")}/logout`;return t.createElement(It,null,t.createElement(Vt,{component:xt,onOutsideClick:()=>s(!1),cleanup:!m,style:Ae({color:"#525252",marginTop:"8px",maxHeight:"75vh",maxWidth:"320px",minWidth:"242px",overflow:"auto",right:0},m?{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:Ae({},tt,{color:"#666",fontSize:"12px",textTransform:"uppercase",whiteSpace:"nowrap"},et)},"Linked Accounts"),t.createElement("div",{style:Ae({},tt,{alignItems:"center",fontSize:"12px",textAlign:"right"})},t.createElement("a",{href:"",onClick:e=>{r(),o(),c(),e.preventDefault()},style:Ae({color:"#666",marginLeft:"64px",textDecoration:"none"},et)},"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}},Mt(n).map(({id:n,attributes:a})=>t.createElement(yt,{component:"li",key:n},t.createElement("a",{href:"",onClick:t=>{r(),o(),i(n,`${e}/`),t.preventDefault()},style:Ae({borderTop:"1px solid #ddd",color:"#444",display:"block",lineHeight:"48px",overflow:"hidden",paddingLeft:"16px",paddingRight:"16px",textDecoration:"none",textOverflow:"ellipsis",whiteSpace:"nowrap"},et)},a.organization_name))))),t.createElement(u,null,l&&t.createElement(p,null),t.createElement("form",{method:"POST",action:v},t.createElement(h,{"data-turbolinks":!1,hover:{backgroundColor:Pt.lightNeutral97},onClick:()=>{r(),o()},style:{padding:0},theme:!1,type:"submit",width:"100%"},t.createElement(g,{distribution:"space-between",alignment:"center",axis:"horizontal",grow:1,paddingHorizontal:2,paddingVertical:1.5,spacing:4},t.createElement(f,{color:Pt.lightNeutral45,lineHeight:"24px"},"Log out"),t.createElement(E,{name:"general.intoBox",fill:Pt.lightNeutral45})))))))},Dt=["active","component","hover","innerRef","style"],Rt=e=>{let{active:n=null,component:a="div",hover:l=null,innerRef:r=null,style:o=null}=e,i=Ne(e,Dt);const[c,s]=t.useState(!1),[d,m]=t.useState(!1);return t.createElement(a,Ae({onMouseDown:()=>s(!0),onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),onMouseUp:()=>s(!1),style:Ae({},et,o,d&&l,c&&n)},r&&{ref:r},i))},Ut=({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(Rt,{component:"button",type:"button",style:Ae({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},Qe),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(dt,{colors:e,style:{margin:"-3px"}})))),Ft=["active","colors","style"],jt=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(_t,{style:Ae({paddingLeft:"8px",paddingRight:"16px"},e.style)},t.createElement(zt,{env:e.env,appName:e.appName,apps:Tt(e.apps),visible:n,toggle:()=>a(e=>!e)}),t.createElement(Et,{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(Ut,{colors:e.colors,orgName:e.orgName,requestConnectedPeopleFetch:e.requestConnectedPeopleFetch,setUserMenuVisible:i,showOrgName:e.showOrgName}),t.createElement(Lt,{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}))};jt.defaultProps={notifications:()=>null,search:()=>null,showOrgName:!0,useDummyNotifications:!1};const $t=e=>{let{active:n,colors:a,style:l=null}=e,r=Ne(e,Ft);const[o,i]=t.useState(!1),[c,s]=t.useState(!1);return t.createElement("a",Ae({style:Ae({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"},et,Qe,l),onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),onMouseDown:()=>s(!0),onMouseUp:()=>s(!1)},r))},Bt=["style"],Wt=["children","className","colors","style"];class qt 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}}),Me(this.props.configuredFetch,`${d(this.props.env)("api")}/people/v2/me/platform_notifications/${e}/dismiss`,{method:"POST"})}render(){return t.createElement(t.Fragment,null,this.props.children({announcements:this.props.formatter(this.state.announcements)},{dismissAnnouncements:this.dismissAnnouncements.bind(this)}))}}qt.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 Gt extends t.Component{render(){const e=this.props,{style:n}=e,a=Ne(e,Bt);return t.createElement($e,{render:e=>t.createElement("div",Ae({style:Ae({alignItems:"center",display:"flex",justifyContent:"space-between",paddingBottom:14,paddingLeft:-1!==["xs","sm"].indexOf(e)?16:24,paddingRight:18,paddingTop:14},n)},a))})}}class Jt extends t.Component{render(){const e=this.props,{children:n,colors:a,style:l}=e,r=Ne(e,Wt);return t.createElement("div",Ae({className:["__Topbar_PlatformAnnouncements_link"].join(" ").trim(),style:Ae({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 Kt extends t.Component{render(){return t.createElement(Jt,{colors:this.props.colors},t.createElement(qt,{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 Yt(e){let n=Ae({},(Se(e),e));return t.createElement("button",Ae({type:"button",style:{WebkitAppearance:"none",backgroundColor:"transparent",borderWidth:0,cursor:"pointer",margin:-8,padding:8}},n),t.createElement(pt,{fill:"white",style:{height:20,width:20}}))}function Xt(e){return t.createElement(Gt,null,t.createElement("span",{dangerouslySetInnerHTML:{__html:e.html}}),t.createElement(Yt,{onClick:e.onClick}))}Kt.defaultProps={configuredFetch:ze,renderItem:({announcement:e,actions:n})=>t.createElement(Xt,{key:e.id,html:e.data.html,onClick:()=>n.dismissAnnouncements(e.id)})};const Qt=["colors","html","onClick"],en=["children","className","colors","style"],tn=["style"];function nn(e){let{colors:n,html:a="",onClick:l=(e=>{})}=e,r=Ne(e,Qt);const[o,i]=t.useState(!1);return o||!a?null:t.createElement(an,Ae({colors:n},r),t.createElement(ln,null,t.createElement("span",{dangerouslySetInnerHTML:{__html:a}}),t.createElement(rn,{onClick:e=>{l(e),i(!0)}})))}class an extends t.Component{render(){const e=this.props,{children:n,className:a,colors:l,style:r}=e,o=Ne(e,en);return t.createElement("div",Ae({className:["Topbar_ProductAnnouncement",a].filter(Boolean).join(" ").trim(),style:Ae({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 ln extends t.Component{render(){const e=this.props,{style:n}=e,a=Ne(e,tn);return t.createElement($e,{render:e=>t.createElement("div",Ae({style:Ae({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 rn(e){let n=Ae({},(Se(e),e));return t.createElement("button",Ae({type:"button",style:{WebkitAppearance:"none",backgroundColor:"transparent",borderWidth:0,cursor:"pointer",margin:-8,padding:8}},n),t.createElement(pt,{fill:"white",style:{height:20,width:20}}))}const on=["env","url","style"];function cn(e){let{env:n,url:a="",style:l}=e,r=Ne(e,on);const o=a||`${d(n)("people")}/static/no_photo_thumbnail_gray.svg`;return t.createElement("div",Ae({style:Ae({backgroundColor:"white",backgroundImage:`url(${o})`,backgroundPosition:"center",backgroundSize:"cover",borderRadius:"50%",height:"26px",marginLeft:"4px",width:"26px"},l)},r))}class sn 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 dn({env:e}){const n="accounts";return t.createElement("a",{style:{alignItems:"center",display:"flex",height:"48px",paddingLeft:"12px",paddingRight:"16px",textDecoration:"none"},"data-pendo":`app-switcher--change-app--${n}`,"data-turbolinks":!1,href:d(e)(n)+wt(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(We,{color:Pt.lightNeutral45,key:"key2"})),t.createElement("div",{style:{color:Pt.lightNeutral45,fontSize:"12px",lineHeight:"48px",textDecoration:"none"}},"Account settings"))}sn.defaultProps={method:"localStorage"};const mn=({color:e=Pt.lightNeutral100,size:n=22,style:a={}})=>t.createElement("div",{style:a},t.createElement(pt,{fill:e,style:{height:`${n}px`,width:`${n}px`}}));function un({env:e,appName:t,userId:n}){var a,l,r;const o=d(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 pn=({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:hn}=v,gn={colors:Ae({},hn({baseColor:"#2266f7",key:"primary"})),icons:{churchCenter:D,general:R,people:U,toolbar:F},id:"topbar"};function fn({appName:e,connectedPeople:n,env:a,hasConnectedPeople:l,linkToProfile:r,mfaConfigured:o,mfaEnabled:i,requestClearAppsCache:c,requestClearConnectedPeopleCache:s,requestSwitchConnectedPerson:m,requestUnlinkConnectedPeople:p,setUserMenuVisible:E,userAvatarPath:v,userId:y,userName:k}){return t.createElement(u,{theme:gn},t.createElement(g,{axis:"vertical",width:"100%"},t.createElement(g,{axis:"horizontal",alignItems:"start",distribution:"space-between"},t.createElement(g,{axis:"horizontal",spacing:2,padding:2,paddingRight:0,shrink:1},t.createElement(g,{shrink:0},t.createElement(cn,{env:a,url:v,style:{height:48,width:48}})),t.createElement(g,{spacing:1,shrink:1},t.createElement(f,{color:Pt.lightNeutral24,weight:700,truncate:!0},k),r&&t.createElement(b,{as:"a",href:`/people/AC${y}`,color:Pt.lightNeutral45,underline:!1},"My profile"),i&&t.createElement(b,{as:"a",href:un({appName:e,env:a,userId:y}),color:Pt.lightNeutral45,underline:!1},"My login settings",t.createElement(pn,{isActive:o})),t.createElement("form",{method:"POST",action:`${d(a)("login")}/logout`},t.createElement(h,{color:Pt.lightNeutral45,"data-turbolinks":!1,onClick:()=>{c(),s()},type:"submit"},"Log out")))),t.createElement(h,{color:Pt.lightNeutral45,icon:"general.x",onClick:()=>E(!1),padding:2,variant:"naked",title:"Close Menu"})),l&&t.createElement(t.Fragment,null,t.createElement(g,{backgroundColor:Pt.lightNeutral95,paddingVertical:1.5,paddingHorizontal:2,marginTop:1,borderBottom:`1px solid ${Pt.lightNeutral88}`},t.createElement(w,{color:Pt.lightNeutral62,fontWeight:500},"Linked Accounts")),t.createElement(C,{dividerColor:Pt.lightNeutral88,width:"100%"},Mt(n).map(({id:n,attributes:a})=>t.createElement(C.Item,{key:n,onClick:t=>{c(),s(),m(n,`${e}/`),t.preventDefault()},color:Pt.lightNeutral45,padding:2},t.createElement(f,{truncate:!0},a.organization_name))),t.createElement(C.Item,{onClick:e=>{c(),s(),p(),e.preventDefault()},color:Pt.danger47,padding:2,underline:!1},t.createElement(f,{size:3},"Unlink my accounts"))))))}const En=["active"],vn=({appName:e})=>{const n=e.replace(/[\s-]/,"");return t.createElement("div",{style:{alignItems:"center",display:"flex"}},t.createElement("div",{style:{marginRight:"6px"}},t.createElement(bt,{appName:n,size:20})),t.createElement(Xe,{appName:n,color:Pt.lightNeutral24,size:18}))},bn=e=>{var n,a;const[l,r]=t.useState(!1),[o,i]=t.useState(!1),[c,s]=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,w=e.apps.find(({name:e})=>"Accounts"===e),C=e.apps.find(({name:e})=>"Home"===e),y=[...e.apps].filter(({name:e})=>"Home"!==e&&"Accounts"!==e),k=Pt.lightNeutral88;return t.useEffect(()=>{r(!1)},[E&&(null==(n=E[0])||null==(a=n.props)?void 0:a.href)]),t.createElement(_t,{style:Ae({},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(Ke,{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(sn,{item:"Topbar:Small:Menus:Products:visibility",render:()=>t.createElement("div",{style:{MozUserSelect:"none",WebkitTapHighlightColor:"transparent",WebkitUserSelect:"none",backgroundColor:_e(Pt.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),s(!1)}},t.createElement(mn,{style:{position:"absolute",right:"17px",top:"12px"}}),t.createElement("div",{onClick:e=>{const{forcePropagation:t}=e;t||e.stopPropagation()},style:{backgroundColor:Pt.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:Pt.lightNeutral98,borderBottom:`1px solid ${k}`,display:"flex",height:"48px",paddingLeft:"16px",paddingRight:"16px"}},t.createElement("div",{style:Ae({},tt)},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?d(e.env)("accounts")+wt(null==C?void 0:C.name):void 0},t.createElement("div",{style:{alignItems:"center",display:"flex"}},t.createElement(vn,{appName:C?C.name:e.appName}))))),t.createElement("div",{style:Ae({},tt,{WebkitOverflowScrolling:"touch",overflowY:"scroll"})},t.createElement("ul",{"data-pendo":"app-switcher",style:{margin:0,padding:0}},Tt(y).map(({name:n},a)=>{const l=0===a,r=a===Tt(y).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:d(e.env)("accounts")+wt(n)},t.createElement(vn,{appName:n})))})),w&&t.createElement("div",{style:{borderTop:`1px solid ${k}`}},t.createElement(dn,{env:e.env})))))}),t.createElement("div",{style:Ae({},tt,{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(dt,{colors:f,style:{marginLeft:"4px",verticalAlign:"middle"}})),t.createElement("button",{onClick:()=>s(!c),style:{background:"none",border:"none",margin:"0 12px",padding:0}},t.createElement(cn,{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(fn,{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:s,userAvatarPath:e.userAvatarPath,userId:h,userName:g}))));var x};bn.defaultProps={currentRouteComponent:e=>t.createElement("span",Ae({},e)),linkToProfile:!0};const wn=e=>{let{active:n}=e,a=Ne(e,En);return t.createElement("a",Ae({style:Ae({backgroundColor:"#444",borderBottom:"1px solid #333",color:"#fff",display:"block",fontWeight:600,lineHeight:"47px",position:"relative",textAlign:"center",textDecoration:"none",textTransform:"capitalize",whiteSpace:"nowrap"},et,n&&{backgroundColor:"#333"})},a))};function Cn({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(g,Ae({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 yn({children:e,closeDrawer:n}){return t.createElement(g,{alignment:"start",axis:"horizontal",color:"foreground",distribution:"space-between",padding:2,paddingTop:1},t.createElement(y,null,e),n&&t.createElement(h,{icon:{fill:Pt.lightNeutral12,name:"general.x",size:"md"},onClick:()=>n(),title:"Close",theme:!1,hover:{backgroundColor:Pt.lightNeutral95}}))}const kn=["children"];function xn(e){let{children:n}=e,a=Ne(e,kn);return t.createElement(k,Ae({},a,{color:Pt.lightNeutral12,letterSpacing:".002em",level:2,lineHeight:"35px",weight:700}),n)}const An=e=>t.createElement(y,Ae({backgroundColor:Pt.interaction66,height:1.5,pointerEvents:"none",position:"absolute",radius:"50%",width:1.5,zIndex:6},e)),Sn=["children"],Nn={bottom:{background:"linear-gradient(rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.07))",bottom:0},top:{background:"linear-gradient(rgba(0, 0, 0, 0.07), rgba(255, 255, 255, 0))",top:0}},Vn=e=>{let{children:r}=e,o=Ne(e,Sn);const[i,c]=a(!1),[s,d]=a(!1),m=l(null),u=l(null),p=l(null),h=()=>{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(h);return o.observe(e),()=>{l&&n.unobserve(l),r&&a.unobserve(r),o.unobserve(e)}},[]),t.createElement(g,{grow:1,position:"relative",shrink:1},i&&t.createElement(zn,{edge:"top"}),s&&t.createElement(zn,{edge:"bottom"}),t.createElement(g,Ae({basis:2,grow:1,innerRef:m,overflow:"auto",role:"region",shrink:1,css:{overscrollBehavior:"contain"}},o),t.createElement(y,{innerRef:p}),r,t.createElement(y,{innerRef:u})))},zn=({edge:e})=>t.createElement(y,Ae({height:1,left:0,pointerEvents:"none",position:"absolute",right:0,role:"presentation",zIndex:10},Nn[e])),Tn=({activeIndex:e,children:n})=>{const a=t.Children.count(n),l=e<0?0:e>a-1?a-1:e;return t.createElement(g,{grow:1,overflow:"hidden",position:"relative"},t.Children.map(n,(n,a)=>{const r=a===l;return t.createElement(g,{"aria-hidden":!r,visibility:r?"visible":"hidden",height:"100%",key:a,opacity:r?1:0,pointerEvents:r?"auto":"none",position:"absolute",top:0,width:"100%",transform:r?"translateX(0)":a<e?"translateX(-100px)":"translateX(100px)",transition:"visibility 100ms 50ms ease-in-out, transform 200ms ease-in-out, opacity 100ms 50ms ease-in-out"},n)}))};var Mn;!function(e){e.close="close",e.mount="mount",e.open="open",e.set="set",e.unmount="unmount"}(Mn||(Mn={}));const Zn={currentContent:null,open:!1},Hn=(e,t)=>{switch(t.type){case Mn.mount:return Ae({},e,{currentContent:t.payload.content});case Mn.unmount:return Ae({},e,{currentContent:null});case Mn.open:return Ae({},e,{open:!0});case Mn.close:return Ae({},e,{open:!1});case Mn.set:return Ae({},e,{currentContent:t.payload.content})}},_n=["fields"],Pn=t.createContext({}),On=e=>{const t=[e.data].flat(),[n,...a]=t.map(({id:e,attributes:t,relationships:n})=>Ae({id:e},((e={})=>Object.keys(e).reduce((t,n)=>{const{data:a}=e[n],l=Array.isArray(a);return Ae({},t,{[`${n}_${l?"ids":"id"}`]:l?a.map(({id:e})=>e):a.id})},{}))(n),t));return Array.isArray(e.data)?n?[n,...a]:[]:n},In=({app:e,env:t})=>{const n=`${d(t)("api")}/${e}/v2`;return{delete:e=>Me(Te,[n,e].join("/"),{method:"DELETE"}),get:async(e,t={})=>{let{fields:a={}}=t,l=Ne(t,_n);a=Object.entries(a).reduce((e,[t,n])=>Ae({},e,{[`fields[${t}]`]:n}),{});const r=new URLSearchParams(Ae({},a,l)),{json:o}=await Me(ze,[[n,e].join("/"),r].join("?"));return On(o)},patch:async(e,t)=>{const{json:a}=await Me(Te,[n,e].join("/"),{data:{data:{attributes:t}},method:"PATCH"});return On(a)},post:async(e,t)=>{const{json:a}=await Me(Te,[n,e].join("/"),{data:{data:{attributes:t}},method:"POST"});return On(a)}}},Ln=({children:e,env:n})=>{const a=r(()=>{const e=In({app:"services",env:n});return{chat:In({app:"chat",env:n}),services:e}},[n]);return t.createElement(Pn.Provider,{value:a},e)},Dn=t.createContext({}),Rn=({children:e,value:n})=>t.createElement(Dn.Provider,{value:n},e),Un=e=>{const{client:n}=W(),[{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)},[]),a},Fn=()=>{},jn="notification.mark_read",$n=[jn,"notification.mark_unread"],Bn=()=>{const e=o(Dn);if(!e)throw new Error("useChat must be used within a ChatProvider");return e},Wn=()=>o(Pn),qn=()=>{const[e,n]=t.useState(null),a=null===e,l=Wn();return t.useEffect(()=>{l.chat.get("me/connected_people").then(e=>n(e))},[]),{loading:a,people:e,switchPerson:Gn}},Gn=(e,t,n)=>{Me(Te,`${d(n)("api")}/login/v2/me/switch_connected_person`,{data:{data:{attributes:{id:e,return_path:t}}},method:"POST"}).then(({json:e})=>{window.location=e.meta.redirect_to})},Jn={plan_id:null,teams:[]},Kn={Services:Jn},Yn=["token"],Xn={fontSize:"16px",fontWeight:600,lineHeight:"165%"},Qn=({children:e})=>t.createElement(k,Ae({level:2},Xn),e),ea=({children:e,title:n})=>t.createElement(g,{spacing:1},t.createElement(Qn,null,n),t.createElement(t.Fragment,null,e)),ta={Services:({groups:e})=>{const n=["Team","PlanTeam"].reduce((t,n)=>e[n]?[...t,...e[n]]:t,[]);return t.createElement(ea,{title:"Teams"},t.createElement(S,{spacing:1},n.map(e=>t.createElement(N,{key:e.source_identifier,size:"sm"},e.name))))}},na=({groups:e})=>t.createElement(t.Fragment,null,Object.entries(e).reduce((e,[n,a])=>{const l=ta[n];return l?[...e,t.createElement(l,{key:n,groups:a})]:e},[])),aa={badges:[]},la={lg:48,md:36,sm:24},ra=({person:e,size:n="md"})=>(e=>void 0!==e.avatar)(e)?t.createElement(A,{source:e.avatar,size:n}):(e=>void 0!==e.image)(e)?t.createElement(q,{image:e.image,name:e.name,size:la[n]}):null,oa=({person:e})=>t.createElement(e.child?ca:ia,{person:e}),ia=({person:e})=>t.createElement(g,{alignment:"center",axis:"horizontal",spacing:1},t.createElement(ra,{person:e,size:"lg"}),t.createElement(g,{alignment:"start",spacing:.25},t.createElement(f,{truncate:!0},e.name),e.badges.length>0&&t.createElement(g,{alignment:"center",axis:"horizontal",spacing:.5},e.badges.map(({title:e})=>t.createElement(N,{key:e,size:"xs"},e))))),ca=({person:e})=>t.createElement(g,{alignment:"center",axis:"horizontal",spacing:1},t.createElement(y,{opacity:.5},t.createElement(ra,{person:e,size:"lg"})),t.createElement(g,null,t.createElement(f,{color:"foreground",opacity:.75,truncate:!0},e.name),t.createElement(g,{alignment:"center",axis:"horizontal",spacing:.5},t.createElement(E,{name:"general.shieldExclamation",color:Pt.warning49}),t.createElement(f,{color:Pt.warning20,size:5},"Not eligible to chat")))),sa="18px 1fr auto",da=({childPeople:e})=>{const[n,l]=a(!1),r=e.length,o=`${r} ${1===r?"member":"members"} under age 13`;return t.createElement(g,{background:Pt.warning94,marginBottom:.5,padding:1,radius:4},t.createElement(x,{alignment:"start",columns:sa,spacing:1},t.createElement(E,{color:Pt.warning49,marginTop:"1px",name:"general.shieldExclamation",size:"lg"}),t.createElement(f,{grow:1,color:"foreground",size:4},n?"Members under age 13 cannot chat. They will not see conversations or receive notifications.":o),t.createElement(h,{"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(V,{open:n},t.createElement(x,{alignment:"start",columns:sa,spacing:1},t.createElement(g,{gridColumnStart:2,paddingTop:1,spacing:1},e.map(e=>t.createElement(g,{alignment:"center",axis:"horizontal",key:e.id,spacing:1},t.createElement(ra,{person:e,size:"sm"}),t.createElement(f,{color:"foreground",size:4,weight:500},e.name)))))))},ma=({people:e})=>{const n=e.filter(e=>e.child);return t.createElement(ea,{title:"People"},t.createElement(g,{spacing:1.5},n.length>0&&t.createElement(da,{childPeople:n}),e.map(e=>t.createElement(oa,{key:e.id,person:e}))))},ua=({channel:e})=>{const n=Un(e);return t.createElement(g,{axis:"horizontal",width:"100%"},t.createElement(f,{as:"label",display:"flex",grow:1},"Mute",t.createElement(g,{grow:1}),t.createElement(z,{isChecked:n,ariaLabel:"Mute Channel",onClick:()=>n?e.unmute():e.mute()})))},pa=({channel:e})=>{const[n,a]=t.useState(!1),[l,r]=t.useState(!1),{switchToChannelListView:o}=Bn(),i=Wn();return t.createElement(y,null,!n&&t.createElement(h,{onClick:()=>a(!0),paddingHorizontal:0,paddingVertical:0,theme:!1},t.createElement(f,{color:"error"},"Delete conversation")),t.createElement(V,{open:n},t.createElement(g,{backgroundColor:"error-lightest",padding:2,radius:4,spacing:1},t.createElement(f,{size:4},"Deleting this conversation will remove it for everyone. This cannot be undone. Are you sure?"),t.createElement(g,{distribution:"end",alignment:"end",axis:"horizontal",spacing:1},t.createElement(h,{fontWeight:400,onClick:()=>a(!1),size:"sm",theme:"dark",variant:"naked"},"Cancel"),t.createElement(h,{disabled:l,fontWeight:400,onMouseDown:e=>e.preventDefault(),onClick:()=>{r(!0),i.chat.delete(`me/conversations/${e.id}`).then(o).catch(Fn)},size:"sm",theme:"error",title:"Yes, delete",spinner:l})))))},ha=({channel:e,isRemovable:n})=>t.createElement(ea,{title:"Settings"},t.createElement(g,{spacing:1},t.createElement(ua,{channel:e}),n&&t.createElement(pa,{channel:e}))),ga=({channel:e,isEditable:n})=>{const[a,l]=t.useState(e.data.name),r=Wn();return t.createElement(ea,{title:"Title"},t.createElement(T,{size:"lg",value:a,maxLength:255,disabled:!n,onChange:e=>l(e.target.value),onBlur:()=>{a!==e.data.name&&r.chat.patch(`me/conversations/${e.id}`,{title:a}).catch(Fn)},onKeyDown:e=>"Enter"===e.key&&e.target.blur()}))},fa=({channel:e})=>{const n=(e=>{const[n,a]=t.useState([]),l=Wn();return t.useEffect(()=>{e&&l.chat.get(`me/conversations/${e.id}/groups`).then(a).catch(Fn)},[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=t.useMemo(()=>e?Object.values(e.state.members).reduce((e,t)=>t.user.pco_deleted?Ae({},e,{[t.user.id]:aa}):e,{}):{},[e]),r=Wn();return t.useEffect(()=>{e&&r.chat.get(`me/conversations/${e.id}/members`).then(e=>e.reduce((e,t)=>Ae({},e,{[t.stream_member_id]:t}),{})).then(e=>Ae({},l,e)).then(a).catch(Fn)},[e]),Object.values(e.state.members).reduce((e,t)=>t.user&&n[t.user.id]?[...e,Ae({},t.user,n[t.user.id])]:e,[])})(e),l=(e=>{const n=Wn(),[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(Vn,null,t.createElement(g,{padding:2,spacing:4,grow:1},t.createElement(ga,{channel:e,isEditable:l.canUpdate}),t.createElement(ha,{channel:e,isRemovable:l.canDelete}),Object.keys(n).length>0&&t.createElement(na,{groups:n}),t.createElement(ma,{people:a})))},Ea=()=>{const{channel:e}=W(),{isChannelDetailsViewActive:n,switchToChannelView:a}=Bn();return e&&n?t.createElement(t.Fragment,null,t.createElement(g,{alignment:"center",axis:"horizontal",spacing:1,padding:2,paddingTop:1},t.createElement(h,{"aria-label":"Switch to chat list",color:Pt.lightNeutral12,icon:"general.leftChevron",onClick:a,size:"sm",title:"Back to chat list",variant:"naked"}),t.createElement(xn,{truncate:!0},"Conversation details")),t.createElement(fa,{channel:e})):null},va=()=>t.createElement(N,{color:"hsla(221, 89%, 93%, 1)",radius:"pill",size:"xs"},t.createElement(f,{color:"hsla(221, 91%, 55%, 1)"},"Beta")),ba=()=>t.createElement(g,{alignment:"center",distribution:"center",padding:4,paddingTop:"54px",width:"100%"},t.createElement(wa,null),t.createElement(k,{color:"foreground",fontWeight:500,marginTop:1,size:3},"No conversations")),wa=()=>t.createElement("svg",{width:"162",height:"124",viewBox:"0 0 162 124",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M157.354 67.5522C151.241 85.6769 138.257 101.123 124.335 110.111C110.102 119.278 94.9458 121.54 77.5441 117.715C60.3357 113.846 43.3207 105.974 29.2803 98.519C15.344 90.6768 4.35267 83.5043 1.63086 72.2247C-1.04633 61.2576 4.81374 46.0644 18.8987 31.0943C32.835 16.3773 54.9962 2.71679 81.3665 0.469802C107.543 -2.16409 131.594 6.57091 145.381 19.3088C159.526 32.1211 163.437 49.5613 157.369 67.5522H157.354Z",fill:"#EDF6FB"}),t.createElement("g",{opacity:"0.2"},t.createElement("path",{opacity:"0.2",d:"M102.204 121.658C88.8481 124.173 75.9678 121.851 62.6562 114.947C47.0244 106.747 32.642 94.7534 20.9962 83.9054C9.55863 72.7299 0.798274 62.9533 1.08087 51.3463C1.25935 43.147 6.37575 33.9656 15.85 25.4092",stroke:"#BAC7D3",strokeWidth:"1.48",strokeMiterlimit:"10"}),t.createElement("path",{opacity:"0.2",d:"M152.714 87.1641C143.909 100.408 130.985 110.631 117.792 116.628",stroke:"#BAC7D3",strokeWidth:"1.48",strokeMiterlimit:"10"}),t.createElement("path",{opacity:"0.2",d:"M36.5986 11.6C53.108 3.53464 74.4809 -1.27187 96.6421 2.6864C122.611 6.91253 143.582 21.5701 153.607 37.4478C160.761 48.5191 162.62 60.4683 159.63 72.0009",stroke:"#BAC7D3",strokeWidth:"1.48",strokeMiterlimit:"10"})),t.createElement("path",{d:"M108.125 25.5668H52.4657C49.4438 25.4274 46.4893 26.4961 44.2438 28.5407C41.9982 30.5854 40.6427 33.441 40.4717 36.4876V72.233C40.6427 75.2796 41.9982 78.1352 44.2438 80.1799C46.4893 82.2245 49.4438 83.2931 52.4657 83.1538H64.7654L80.2729 96.7441L95.7804 83.1538H108.125C111.147 83.2931 114.102 82.2245 116.347 80.1799C118.593 78.1352 119.948 75.2796 120.119 72.233V36.4876C119.948 33.441 118.593 30.5854 116.347 28.5407C114.102 26.4961 111.147 25.4274 108.125 25.5668Z",fill:"#48A5E5"}),t.createElement("path",{d:"M64.8701 59.3043C62.3848 59.3043 60.3701 57.2886 60.3701 54.8021C60.3701 52.3155 62.3848 50.2998 64.8701 50.2998C67.3554 50.2998 69.3701 52.3155 69.3701 54.8021C69.3701 57.2886 67.3554 59.3043 64.8701 59.3043Z",fill:"#EEF5FD"}),t.createElement("path",{d:"M79.9258 59.3043C77.4405 59.3043 75.4258 57.2886 75.4258 54.8021C75.4258 52.3155 77.4405 50.2998 79.9258 50.2998C82.4111 50.2998 84.4258 52.3155 84.4258 54.8021C84.4258 57.2886 82.4111 59.3043 79.9258 59.3043Z",fill:"#EEF5FD"}),t.createElement("path",{d:"M95.0615 59.3043C92.5762 59.3043 90.5615 57.2886 90.5615 54.8021C90.5615 52.3155 92.5762 50.2998 95.0615 50.2998C97.5468 50.2998 99.5615 52.3155 99.5615 54.8021C99.5615 57.2886 97.5468 59.3043 95.0615 59.3043Z",fill:"#EEF5FD"}),t.createElement("path",{d:"M124.007 65.7374H96.4523C94.9563 65.6685 93.4937 66.1975 92.382 67.2097C91.2703 68.2219 90.5993 69.6355 90.5146 71.1438V88.8395C90.5993 90.3477 91.2703 91.7614 92.382 92.7736C93.4937 93.7858 94.9563 94.3148 96.4523 94.2458H102.541L110.218 100.974L117.895 94.2458H124.007C125.503 94.3148 126.965 93.7858 128.077 92.7736C129.188 91.7614 129.859 90.3477 129.944 88.8395V71.1438C129.859 69.6355 129.188 68.2219 128.077 67.2097C126.965 66.1975 125.503 65.6685 124.007 65.7374Z",fill:"#79CAF2"}),t.createElement("path",{d:"M102.594 82.4391C101.363 82.4391 100.366 81.4412 100.366 80.2103C100.366 78.9793 101.363 77.9814 102.594 77.9814C103.824 77.9814 104.821 78.9793 104.821 80.2103C104.821 81.4412 103.824 82.4391 102.594 82.4391Z",fill:"#EEF5FD"}),t.createElement("path",{d:"M110.047 82.4391C108.816 82.4391 107.819 81.4412 107.819 80.2103C107.819 78.9793 108.816 77.9814 110.047 77.9814C111.277 77.9814 112.274 78.9793 112.274 80.2103C112.274 81.4412 111.277 82.4391 110.047 82.4391Z",fill:"#EEF5FD"}),t.createElement("path",{d:"M117.54 82.4391C116.31 82.4391 115.312 81.4412 115.312 80.2103C115.312 78.9793 116.31 77.9814 117.54 77.9814C118.77 77.9814 119.768 78.9793 119.768 80.2103C119.768 81.4412 118.77 82.4391 117.54 82.4391Z",fill:"#EEF5FD"})),Ca=({appName:e,env:l,currentPersonId:r})=>{const{people:o,loading:i,switchPerson:c}=qn(),[s,d]=a(o),[m,u]=a(null),[p,h]=a(!1),f=null==s?void 0:s.some(e=>e.id!==`${r}`&&e.unread_count);return n(()=>{if(o){d(o);const e=o.find(e=>e.id===`${r}`);u(e)}},[o]),t.createElement(g,{paddingHorizontal:2},t.createElement(M,{emptyValue:"Linked Accounts",disabled:p,matchWidths:!0,onChange:({value:t})=>{const n=s.find(e=>e.id===t);u(n),n.id!==`${r}`&&(h(!0),c(n.id,`${e}/`,l))},value:null==m?void 0:m.id,renderValue:()=>t.createElement(g,{alignment:"center",axis:"horizontal",distribution:"space-between",spacing:1},m.organization_name,f&&!p&&t.createElement(An,{right:3.5,top:1.25}),p&&t.createElement(Z,{key:"loader",position:"absolute",height:1.5,width:1.5,zIndex:6,right:3.5,top:1.25}))},t.createElement(ka,null),null==s?void 0:s.map(e=>t.createElement(M.Option,{value:e.id,key:e.id},t.createElement(g,{alignment:"center",axis:"horizontal",distribution:"space-between",spacing:1},e.organization_name,e.unread_count>0&&t.createElement(An,{right:1.5,top:1.25})))),i&&t.createElement(ya,null)))},ya=()=>t.createElement(H.Item,{alignment:"center",distribution:"center",paddingBottom:2,paddingTop:2},t.createElement(Z,null)),ka=()=>t.createElement(g,{axis:"horizontal",backgroundColor:Pt.interaction97,marginBottom:.5,marginHorizontal:1.25,marginTop:1,padding:1,radius:4,spacing:1},t.createElement(E,{color:Pt.interaction66,marginTop:"3px",name:"general.outlinedExclamationCircle"}),t.createElement(f,{size:5},"Make sure any changes outside of chat are saved before switching accounts."));function xa(){return xa=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},xa.apply(this,arguments)}var Aa={À:"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(Aa).join("|"),Na=new RegExp(Sa,"g"),Va=new RegExp(Sa,""),za=function(e){return e.replace(Na,function(e){return Aa[e]})},Ta=za,Ma=za;Ta.has=function(e){return!!e.match(Va)},Ta.remove=Ma;var Za={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};_a.rankings=Za;var Ha=function(e,t){return String(e.rankedValue).localeCompare(String(t.rankedValue))};function _a(e,t,n){void 0===n&&(n={});var a=n.keys,l=n.threshold,r=void 0===l?Za.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:Pa(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=Da(r),i=Ia(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=Pa(s,n,a),u=o,p=d.minRanking,h=d.maxRanking;return m<p&&m>=Za.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:Za.NO_MATCH,keyIndex:-1,keyThreshold:a.threshold})}(l,a,t,n),c=i.keyThreshold;return i.rank>=(void 0===c?r:c)&&e.push(xa({},i,{item:l,index:o})),e},[]);return s(d).map(function(e){return e.item})}function Pa(e,t,n){return e=Oa(e,n),(t=Oa(t,n)).length>e.length?Za.NO_MATCH:e===t?Za.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase())===(t=t.toLowerCase())?Za.EQUAL:e.startsWith(t)?Za.STARTS_WITH:e.includes(" "+t)?Za.WORD_STARTS_WITH:e.includes(t)?Za.CONTAINS:1===t.length?Za.NO_MATCH:(a=e,l="",a.split(" ").forEach(function(e){e.split("-").forEach(function(e){l+=e.substr(0,1)})}),l).includes(t)?Za.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 Za.NO_MATCH;a=r;for(var o=1,i=t.length;o<i;o++)if(!((a=l(t[o],e,a))>-1))return Za.NO_MATCH;return Za.MATCHES+n/t.length*(1/(a-r))}(e,t);var a,l}function Oa(e,t){return e=""+e,t.keepDiacritics||(e=Ta(e)),e}function Ia(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 La={maxRanking:Infinity,minRanking:-Infinity};function Da(e){return"string"==typeof e?La:xa({},La,e)}const Ra={fontSize:"16px",fontWeight:400,lineHeight:"165%"},Ua=(e,t)=>{const[n,a,l]=e.order,[r,o,i]=t.order;return n-r||a.localeCompare(o)||l.localeCompare(i)},Fa=({disabled:e,spinner:t}={})=>{const n=Ae({},Ra,{backgroundColor:Pt.interaction55,color:t?"transparent":"surface",spinner:t?{color:Pt.interaction55}:void 0});return Ae({},n,e?{backgroundColor:Pt.lightNeutral81,spinner:t?{color:Pt.lightNeutral81}:void 0}:{active:{backgroundColor:Pt.interaction45},focus:{backgroundColor:Pt.interaction55},hover:{backgroundColor:Pt.interaction50}})},ja=()=>t.createElement(g,{alignment:"center",spacing:2,padding:2,paddingTop:"10%"},t.createElement(E,{name:"general.exclamationTriangle",color:"warning",size:"xl"}),t.createElement(f,{color:"foregroundSecondary",align:"center"},"An error occured while connecting to the chat, please try again.")),$a=e=>{const{children:n,error:a=null,loading:l}=e,{switchToNewChatShortcutsView:r}=Bn(),o=(()=>{const[e,n]=t.useState({}),a=Wn();return t.useEffect(()=>{a.chat.get("me/app_grants").then(e=>e.reduce((e,t)=>Ae({},e,{[t.app_name]:t}),{})).then(n)},[]),{canCreateChat:t=>e[t]&&e[t].create_conversations}})();return a?t.createElement(ja,null):l?null:t.createElement(g,{grow:1,shrink:1},t.createElement(Vn,null,n),t.createElement(p,null),t.createElement(g,{padding:2,alignment:"stretch"},o.canCreateChat("Services")&&t.createElement(h,Ae({"aria-label":"Switch to new conversation",onClick:r},Fa()),"New conversation")))},Ba={groups:"Groups",services:"Services"},Wa=({appName:e,channel:n})=>{let a,l;switch(e){case"Groups":{var r;const t=n.data[e];var o;a="Group",null!=t&&null!=(r=t.names)&&r.length&&(l=null==(o=t.names)?void 0:o.join(", "));break}case"Services":{const t=n.data[e];a=null!=t&&t.dates?"Plan":"Team",null!=t&&t.dates&&(l=t.dates);break}}return t.createElement(_,{radius:4,spacing:"0.25px",className:"channel-meta",maxWidth:"100%"},t.createElement(g,{alignment:"center",axis:"horizontal",backgroundColor:Pt.lightNeutral95,borderColor:Pt.lightNeutral95,borderWidth:1,distribution:"center",padding:.5,paddingHorizontal:1,spacing:.5},t.createElement(bt,{appName:e,size:15}),t.createElement(f,{lineHeight:"13px",size:5,weight:500},a)),l&&t.createElement(g,{alignment:"center",borderColor:Pt.lightNeutral95,borderLeftWidth:0,borderWidth:1,distribution:"center",padding:.5,paddingHorizontal:1,shrink:1},t.createElement(P,{title:l,openDelay:800},t.createElement(f,{color:"foregroundSecondary",lineHeight:"13px",size:5,truncate:!0,maxWidth:"100%"},l))))},qa=({channel:e})=>{var n;if(null==e||null==(n=e.data)||!n.pco_apps)return null;const a=e.data.pco_apps.map(n=>t.createElement(Wa,{key:n,appName:Ba[n],channel:e}));return t.createElement(g,{axis:"horizontal",maxWidth:"calc(100% + 24px)"},a)},Ga=e=>{var t;return null==(t=e.user)?void 0:t.image},Ja=({member:e,size:n=40})=>t.createElement(q,{image:Ga(e),shape:"square",size:n}),Ka=({members:e})=>{let n=null;return 1===e.length&&(n=t.createElement(Ja,{member:e[0]})),2===e.length&&(n=t.createElement(t.Fragment,null,t.createElement("div",null,t.createElement(Ja,{member:e[0]})),t.createElement("div",{style:{marginLeft:"-20px"}},t.createElement(Ja,{member:e[1]})))),3===e.length&&(n=t.createElement(t.Fragment,null,t.createElement("div",null,t.createElement(Ja,{member:e[0]})),t.createElement("div",{style:{marginLeft:"-20px"}},t.createElement(Ja,{member:e[1],size:20}),t.createElement(Ja,{member:e[2],size:20})))),e.length>=4&&(n=t.createElement(t.Fragment,null,t.createElement("div",null,t.createElement(Ja,{member:e[e.length-4],size:20}),t.createElement(Ja,{member:e[e.length-3],size:20})),t.createElement("div",null,t.createElement(Ja,{member:e[e.length-2],size:20}),t.createElement(Ja,{member:e[e.length-1],size:20})))),t.createElement("div",{className:"str-chat__avatar-group"},n)},Ya=({unread:e})=>{if(e<1)return null;const n=e<=99?e.toString():"99+";return t.createElement(N,{title:n,size:"xs",color:Pt.interaction66,radius:"pill",minWidth:3})},Xa=({channel:e,lastMessage:n,setActiveChannel:a,unread:l})=>{const{client:r}=W(),{setActionsOpenForChannel:o,actionsOpenForChannel:i,switchToChannelView:c}=Bn(),s=Un(e),{isUnread:d,isUnreadable:m,markRead:u,markUnread:p,unreadCount:h}=((e,n)=>{const{client:a}=W(),[l,r]=t.useState(n);t.useEffect(()=>{r(n)},[n]),t.useEffect(()=>{const t=t=>{var n,l;if(t.cid!==e.cid)return;if((null==(n=t.user)?void 0:n.id)!==(null==(l=a.user)?void 0:l.id))return;const o=t.type===jn?0:e.countUnread();r(o)};return $n.forEach(e=>a.on(e,t)),()=>$n.forEach(e=>a.off(e,t))},[]);const o=t.useMemo(()=>((e,t)=>{for(let t=e.length-1;t>=0;t--)if((null==(n=e[t].user)?void 0:n.id)!==a.userID)return e[t];var n})(e.state.latestMessages),[l]),i=Boolean(null==o?void 0:o.id);return{isUnread:Boolean(l),isUnreadable:i,markRead:()=>e.markRead(),markUnread:()=>i&&e.markUnread({message_id:o.id}),unreadCount:l}})(e,l),v=i===e.id,b=t=>{"actions-dropdown"!==t.target.getAttribute("data-type")&&(a(e),c())},w=Object.values(e.state.members).filter(({user:e})=>e.id!==r.userID),C=e.data.name;return t.createElement(x,{alignment:"start","aria-label":`Select Channel: ${C||""}`,backgroundColor:v?"surfaceTertiary":"surface",borderBottomColor:"separatorTertiary",borderBottomWidth:1,columns:"auto 1fr auto",cursor:"pointer",css:{"&:hover":{".actions-dropdown":{visibility:"visible"},".channel-meta > *":{borderColor:Pt.lightNeutral88},backgroundColor:"surfaceTertiary"}},minHeight:10,onClick:b,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||b(e)},padding:1,paddingHorizontal:2,radius:0,role:"button",spacing:1,tabIndex:0,width:"100%"},t.createElement(Ka,{members:w}),t.createElement(g,{height:"100%",alignment:"start",paddingRight:1},t.createElement(k,{level:4,maxWidth:"100%",truncate:!0,weight:500},C),t.createElement(f,{color:"foregroundSecondary",css:{WebkitBoxOrient:"vertical",WebkitLineClamp:"2",display:"-webkit-box",overflow:"hidden",textOverflow:"ellipsis"},lineHeight:"1.35",maxWidth:"100%",size:4,textAlign:"left"},(e=>{var t,n;if(!e)return"Empty conversation";const a=null==(t=e.user)?void 0:t.name,l=null==(n=e.attachments)?void 0:n.length;return`${a}: ${(e.deleted_at?"Message deleted":e.text)||(1===l?"1 attachment":`${l} attachments`)}`})(n)),t.createElement(g,{basis:.5,grow:1}),t.createElement(qa,{channel:e})),t.createElement(g,{alignment:"end",minWidth:6,height:"100%"},t.createElement(f,{color:"foregroundSecondary",size:5},(e=>e.state.last_message_at?pe.date(e.state.last_message_at,{style:"abbreviated",year:!1}):"")(e)),t.createElement(g,{alignment:"end",alignSelf:"stretch",grow:1},s?t.createElement(E,{name:"general.bellMuted"}):t.createElement(Ya,{unread:h})),t.createElement(y,{onClick:e=>e.stopPropagation()},t.createElement(O,{alignSelf:"end",className:"actions-dropdown","data-type":"actions-dropdown",icon:{name:"people.importProgress",size:"lg"},radius:"circle",iconRight:null,lockScrollWhileOpen:!0,onClose:()=>o(null),onOpen:()=>o(e.id),placement:"top-end",popoverProps:{offset:4,shouldFlip:!0},right:"1.5px",size:"xs",theme:"dark",title:"Chat actions",variant:"naked",visibility:v?"visible":"hidden"},t.createElement(O.Item,{disabled:!(d||m),onSelect:d?u:p},t.createElement(f,null,"Mark as "+(d?"Read":"Unread"))),t.createElement(O.Item,{onSelect:()=>s?e.unmute():e.mute()},s?"Unmute":"Mute")))))},Qa=["status"],el=({client:e,closeDrawer:l,env:r,appName:o,currentPersonId:c})=>{const s=(()=>{const[e,t]=a(!0),{channelsQueryState:l}=W("ChannelList"),{queryInProgress:r}=l;return n(()=>{t(null!=r)},[r]),e})(),{hasConnectedPeople:m}=Zt(),u=(({streamUserId:e,env:t})=>{const l={members:{$in:[e]},type:"messaging"},r=Ae({},l,{pco_apps:{$contains:"services"}}),[o,i]=a(r),[c,s]=a(!0),{groupsMigrationStatus:m}=(({env:e})=>{const[t,l]=a("pending"),[r,o]=a(!1),[i,c]=a(!1),s=()=>{o(!0);const t=`fields[GroupsMigration]=${Qa.join(",")}`;Me(Te,`${d(e)("api")}/chat/v2/groups_migration?${t}`).then(({json:e,ok:t})=>{var n,a;t?l((null==e||null==(n=e.data)||null==(a=n.attributes)?void 0:a.status)||"pending"):c(!0)}).catch(()=>{c(!0)}).finally(()=>{o(!1)})};return n(()=>{s()},[]),{groupsMigrationStatus:t,loading:r,error:i,refresh:s}})({env:t});return n(()=>{s("completed"!==m)},[m]),n(()=>{i(c?r:l)},[c]),o})({streamUserId:e.userID,env:r}),p=i(async(t,n)=>{const a=n.channel;if(null!=a&&a.id)try{t(await e.queryChannels(u))}catch(e){console.error(e)}},[e.userID]);return t.createElement(t.Fragment,null,t.createElement(yn,{closeDrawer:l},t.createElement(g,{axis:"horizontal",alignment:"center",spacing:1},t.createElement(xn,null,"Chat"),t.createElement(va,null),s&&t.createElement(Z,{color:"hsl(0 0% 62%)",thickness:2,trackColor:"hsl(0 0% 97%)"}))),t.createElement(g,{spacing:2,grow:1},m&&t.createElement(Ca,{env:r,appName:o,currentPersonId:c}),t.createElement(G,{setActiveChannelOnMount:!1,EmptyStateIndicator:ba,filters:u,onMessageNew:p,onAddedToChannel:p,List:$a,Paginator:J,Preview:Xa})))},tl=()=>t.createElement(g,{alignment:"center",distribution:"center",height:"100%",spacing:1},t.createElement(E,{color:Pt.lightNeutral81,name:"general.outlinedTextMessage",size:"64px"}),t.createElement(f,{color:"foregroundTertiary"},"No conversation")),nl=({channel:e,closeDrawer:a,setOverflowBottom:r,setOverflowTop:o,switchToChannelDetailsView:i,switchToChannelListView:c,title:s})=>{const{headerRef:d}=(({setOverflowBottom:e,setOverflowTop:t})=>{const{listElement:a,scrollToBottom:r}=K(),o=l(null);return n(()=>{const t=new ResizeObserver(()=>{a&&e(a.scrollHeight-a.clientHeight>a.scrollTop+1)});return t.observe(a),()=>t.unobserve(a)},[a,e]),n(()=>{var n;const{scrollTop:l,scrollHeight:i,clientHeight:c}=a;t(l>0),e(i-c>l+1);const s=null==o||null==(n=o.current)?void 0:n.offsetHeight;a.style.marginTop=`${s}px`,r()},[a]),n(()=>{const n=()=>{const{scrollTop:n,scrollHeight:l,clientHeight:r}=a;t(n>0),e(l-r>n+1)};return a.addEventListener("scroll",n),()=>a.removeEventListener("scroll",n)},[a,t,e]),{headerRef:o}})({setOverflowBottom:r,setOverflowTop:o});return t.createElement(al,{channel:e,closeDrawer:a,innerRef:d,switchToChannelDetailsView:i,switchToChannelListView:c,title:s})},al=({channel:e,closeDrawer:n,switchToChannelDetailsView:a,switchToChannelListView:l,title:r,innerRef:o=null})=>t.createElement(g,{axis:"horizontal",backgroundColor:"surface",innerRef:o,left:0,padding:2,paddingTop:1,position:"absolute",right:0,spacing:1,top:0,zIndex:5},t.createElement(h,{alignSelf:"baseline","aria-label":"Switch to chat list",icon:{color:Pt.lightNeutral12,name:"general.leftChevron"},marginTop:.25,onClick:l,size:"md",title:"Back to chat list",variant:"naked"}),t.createElement(g,{shrink:1},t.createElement(xn,{truncate:!0},r),t.createElement(qa,{channel:e})),t.createElement(g,{alignment:"start",axis:"horizontal",marginLeft:"auto",spacing:.25},t.createElement(h,{"aria-label":"Switch to conversation details",icon:{color:Pt.lightNeutral12,name:"general.cog"},onClick:a,size:"md",title:"Conversation details",variant:"naked"}),t.createElement(h,{"aria-label":"Close drawer",icon:{color:Pt.lightNeutral12,name:"general.x"},onClick:n,size:"md",title:"Close drawer",variant:"naked"}))),ll=["heart","pray","laughing","+1","-1"],rl=()=>(e=>{const{emojiConfig:t,EmojiIndex:n}=Y();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])})(ll),ol=t.forwardRef((e,n)=>{const a=rl();return t.createElement(X,Ae({},e,{ref:n,reactionOptions:a}))}),il=e=>{const n=rl();return t.createElement(Q,Ae({},e,{reactionOptions:n}))},cl=()=>{const{closeEmojiPicker:e,emojiPickerIsOpen:n,handleEmojiKeyDown:l,handleSubmit:r,isUploadEnabled:o,maxFilesLeft:i,numberOfUploads:c,openEmojiPicker:s,text:d,uploadNewFiles:m}=ee(),[u,p]=a(!1),{multipleUploads:f}=te(),{getRootProps:E,isDragActive:v,isDragReject:b}=ge({disabled:!o||0===i,multiple:f,noClick:!0,onDrop:m}),{isChildOfModal:w,ref:C}=ul(),k=pl(),A=!c&&!d.length;return t.createElement(x,{alignment:"end",borderColor:"separatorTertiary",borderTopWidth:w?0:1,columns:"auto 1fr auto",innerRef:C,padding:2,spacing:1},t.createElement(sl,{isUploadEnabled:o,maxFilesLeft:i,multipleUploads:f,uploadNewFiles:m}),t.createElement(g,Ae({},E({borderColor:"separatorTertiary",borderWidth:1,className:w?"is-modal-child":"",outline:u?Pt.interaction66:"none",outlineOffset:1,outlineStyle:u?"solid":"none",position:"relative",radius:8,refKey:"innerRef"})),v&&t.createElement(ml,{isDragReject:b}),o&&!!c&&t.createElement(ne,null),t.createElement(g,{axis:"horizontal",spacing:.5,alignment:"end"},t.createElement(y,{grow:1,innerRef:k},t.createElement(ae,{placeholder:"Send a message",onFocus:()=>p(!0),onBlur:e=>"blur"===e.type&&p(!1)})),t.createElement(y,{marginBottom:1,marginRight:1},t.createElement(dl,{closeEmojiPicker:e,emojiPickerIsOpen:n,handleEmojiKeyDown:l,openEmojiPicker:s})))),t.createElement(h,Ae({className:"focus-visible",disabled:A,icon:{color:"surface",name:"general.upArrow"},marginBottom:"10px",onClick:r,radius:"circle",size:"sm",title:w?"Save":"Send",tabIndex:0},Fa({disabled:A}))))},sl=({isUploadEnabled:e,maxFilesLeft:n,multipleUploads:a,uploadNewFiles:l})=>{const r=t.useMemo(()=>he(),[]),o=document.getElementById(r);return t.createElement(y,{marginBottom:1.5},t.createElement("label",{htmlFor:r,tabIndex:0,onKeyDown:e=>{!o||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),o.click())}},t.createElement(E,{color:Pt.lightNeutral45,css:{"&:active":{fill:Pt.lightNeutral12},"&:hover":{fill:Pt.lightNeutral24}},cursor:"pointer",name:"general.paperclip",size:"20px"})),t.createElement(fe,{"aria-label":"File upload",className:"file-input",disabled:!e||0===n,id:r,multiple:a,onFileChange:l}))},dl=({closeEmojiPicker:e,emojiPickerIsOpen:n,handleEmojiKeyDown:a,openEmojiPicker:l})=>t.createElement(t.Fragment,null,t.createElement(h,{"aria-label":"Toggle emoji picker",className:"focus-visible",onClick:n?e:l,onKeyDown:a,paddingHorizontal:0,size:"sm",theme:!1,tooltip:"Pick an emoji"},t.createElement(y,{width:"23px",height:"23px",css:{"&:hover svg":{fill:Pt.lightNeutral24},svg:{fill:Pt.lightNeutral45}}},t.createElement(le,null))),t.createElement(re,{small:!0})),ml=({isDragReject:e})=>t.createElement(g,{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(f,{color:e?"error-dark":"success-darker",size:4,weight:600},e?"Some of the files will not be accepted":"Drop your files here")),ul=()=>{const[e,t]=a(!1),r=l(null);return n(()=>{const e=document.querySelector(".str-chat__modal");t(null==e?void 0:e.contains(r.current))},[]),{isChildOfModal:e,ref:r}},pl=()=>{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},hl=()=>{var e,l;const{client:r,channel:o}=W(),{closeDrawer:i,isChannelViewActive:c,switchToChannelDetailsView:s,switchToChannelListView:d}=Bn(),m=(null==o||null==(e=o.data)?void 0:e.name)||"Channel name",[,u]=a(0),[p,h]=a(!1),[f,E]=a(!1);n(()=>{if(!o)return Fn;const e=e=>{o&&o.cid===e.cid&&u(e=>e+1)};return r.on("channel.updated",e),()=>r.off("channel.updated",e)},[null==o?void 0:o.cid]);const v=!(null==o||null==(l=o.data)||!l.last_message_at),b={channel:o,closeDrawer:i,switchToChannelDetailsView:s,switchToChannelListView:d,title:m};return t.createElement(g,{grow:1,shrink:1},t.createElement(oe,{Input:cl,EditMessageInput:cl,EmptyStateIndicator:tl,ReactionsList:il,ReactionSelector:ol,doMarkReadRequest:e=>c&&ue(e.markRead(),"mark read")},t.createElement(ie,null,v?t.createElement(gl,Ae({},b,{overflowBottom:f,overflowTop:p,setOverflowBottom:E,setOverflowTop:h})):t.createElement(fl,Ae({},b)),t.createElement(y,{position:"relative"},f&&t.createElement(y,Ae({},Nn.bottom,{bottom:"unset",height:1,left:-1,pointerEvents:"none",position:"absolute",right:-1,role:"presentation",top:-1,zIndex:10})),t.createElement(ce,{disableMentions:!0,grow:!0})))))},gl=({channel:e,closeDrawer:n,overflowTop:a,setOverflowBottom:l,setOverflowTop:r,switchToChannelDetailsView:o,switchToChannelListView:i,title:s})=>t.createElement(se,{head:t.createElement(c,{key:"custom-head"},t.createElement(nl,{channel:e,closeDrawer:n,setOverflowBottom:l,setOverflowTop:r,switchToChannelDetailsView:o,switchToChannelListView:i,title:s}),a&&t.createElement(y,Ae({},Nn.top,{height:1,left:-1,pointerEvents:"none",position:"absolute",right:-1,role:"presentation",top:"unset",zIndex:10}))),messageActions:["edit","delete","react"]}),fl=({channel:e,closeDrawer:n,switchToChannelDetailsView:a,switchToChannelListView:l,title:r})=>t.createElement(t.Fragment,null,t.createElement(al,{channel:e,closeDrawer:n,switchToChannelDetailsView:a,switchToChannelListView:l,title:r}),t.createElement(se,{messageActions:["edit","delete","react"]})),El=({isActive:e,setFilterValues:l,switchToNewChatView:o})=>{const[i,c]=a(!1),{loading:s,serviceTypeTeams:d}=(e=>{const[t,l]=a([]),[o,i]=a(!1),c=Wn();return n(()=>{e&&(i(!0),c.services.get("chat",{fields:{Chat:"teams_i_lead"}}).then(({teams_i_lead:e})=>{const t=e.map(({value:e,service_type_name:t,team_name:n})=>({service_type:{id:e.service_type_id,name:t},team:{id:e.team_id,name:n}}));l(t)}).finally(()=>i(!1)))},[e]),{loading:o,serviceTypeTeams:r(()=>t.reduce((e,{service_type:t,team:n})=>{let a=e.find(e=>e.id===t.id);return a||(a={id:t.id,name:t.name,teams:[]},e.push(a)),a.teams.push(n),e},[]),[t])}})(e);n(()=>{e||c(!1)},[]);const m=d.length>4;return t.createElement(g,null,t.createElement(g,{alignment:"center",axis:"horizontal",distribution:"space-between",paddingBottom:1,paddingHorizontal:2,spacing:1},t.createElement(g,{alignment:"center",axis:"horizontal",spacing:1},t.createElement(Qn,null,"Teams I lead"),s&&t.createElement(Z,{size:"xs"})),t.createElement(h,{icon:"general.search",marginLeft:"auto",onClick:o,size:"sm",title:"Search all teams",tooltip:"Search all teams",variant:"outline"})),0===d.length?t.createElement(vl,{onClick:o}):t.createElement(g,{spacing:1.5,paddingBottom:1},t.createElement(g,null,d.slice(0,i?void 0:4).map(({id:e,name:n,teams:a})=>t.createElement(h,{alignment:"start","aria-label":`Select ${n} teams I lead`,axis:"vertical",borderBottomColor:"separatorTertiary",borderBottomStyle:"solid",borderBottomWidth:1,hover:{backgroundColor:"surfaceSecondary"},key:e,paddingHorizontal:2,paddingVertical:1,spacing:.25,textAlign:"left",theme:!1,onClick:()=>{l({appName:"Services",values:{plan_id:null,teams:a.map(t=>({service_type_id:e,team_id:t.id}))}}),o()}},t.createElement(f,{weight:500},n),t.createElement(f,{color:"foregroundSecondary"},a.map(e=>e.name).join(", "))))),m&&t.createElement(g,{alignment:"center"},t.createElement(h,{fontWeight:400,iconLeft:{name:i?"general.upCaret":"general.downCaret"},onClick:()=>c(!i),size:"xs",title:i?"Less teams":"Show all teams I lead",variant:"outline"}))))},vl=({onClick:e})=>t.createElement(g,{alignment:"center",axis:"vertical",distribution:"center",height:20,padding:2,spacing:1},t.createElement(f,{color:"foregroundSecondary"},"You don't lead any teams."),t.createElement(h,{fontWeight:400,onClick:e,size:"sm",variant:"outline"},"Browse teams")),bl=()=>{const{isNewChatShortcutsViewActive:e,setFilterValues:n,switchToNewChatView:a,switchToChannelListView:l}=Bn();return t.createElement(t.Fragment,null,t.createElement(g,{alignment:"center",axis:"horizontal",spacing:1,padding:2,paddingTop:1},t.createElement(h,{icon:{color:Pt.lightNeutral12,name:"general.leftChevron"},marginTop:.25,onClick:l,size:"md",title:"Back to to conversation list",tooltip:"Back to conversations list",variant:"naked"}),t.createElement(xn,null,"New conversation")),t.createElement(El,{isActive:e,setFilterValues:n,switchToNewChatView:a}),t.createElement(wl,null))},wl=()=>t.createElement(g,{padding:2},t.createElement(g,{alignment:"center",axis:"horizontal",spacing:1},t.createElement(Qn,null,"My groups"),t.createElement(N,{color:"hsla(97, 57%, 90%, 1)",radius:"pill",size:"xs"},t.createElement(f,{color:"hsla(97, 57%, 18%, 1)"},"Coming soon"))),t.createElement(g,{alignment:"center",axis:"vertical",distribution:"center",height:20,spacing:1},t.createElement(f,{color:"foregroundSecondary",textAlign:"center",width:"80%"},"For now, Group conversations can be started from the Church Center app."))),Cl=({handleStartChat:e,startChatDisabled:n,showSpinner:a})=>t.createElement(t.Fragment,null,t.createElement(p,null),t.createElement(g,{grow:0,marginHorizontal:"auto",padding:2,spacing:2},t.createElement(f,{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(h,Ae({"aria-label":"Start conversation",disabled:n,onClick:e},Fa({disabled:n,spinner:a})),"Start conversation"))),yl=({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}=Bn(),p=Wn(),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",Ae({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",Ae({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=o.length,u=o.filter(e=>e.child),p=u.length>0;let h;switch(m){case 0:h="People selected";break;case 1:h="1 person selected";break;default:h=`${m} people selected`}return t.createElement(g,{grow:1},t.createElement(g,{grow:1,padding:2,paddingBottom:0,spacing:1},t.createElement(g,{alignment:"center",axis:"horizontal",spacing:1},t.createElement(Qn,null,h),s&&t.createElement(Z,{size:"sm"})),d?t.createElement(t.Fragment,null,p&&t.createElement(da,{childPeople:u}),t.createElement(Vn,null,t.createElement(g,{paddingBottom:2,spacing:1.5},o.map(e=>t.createElement(oa,{key:e.id,person:e}))))):t.createElement(g,{alignment:"center",grow:1,maxHeight:18},t.createElement(f,{color:"foregroundSecondary"},"No Results"))),t.createElement(Cl,{handleStartChat:i,startChatDisabled:!d,showSpinner:c}))},kl=({value:e,name:t})=>({label:t,value:e}),xl=({onChange:e,isActive:l,values:o})=>{const[i,c]=a({}),[s,d]=a(!1),[m,u]=a(0),p=Wn(),h=l&&s,v=!l&&o.teams.length>0;n(()=>{l||d(!1)},[l]),n(()=>{h&&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=>Ae({},n,{[e]:t})),u(e=>e-1)}))})},[o.teams,h]);const b=r(()=>{const e=o.teams.reduce((e,{team_id:t})=>i[t]?Ae({},e,i[t].reduce((e,t)=>Ae({},e,{[t.value]:t}),{})):e,{});return Object.values(e).map(kl)},[o.teams,i]);return t.createElement(g,{spacing:1},t.createElement(g,{axis:"horizontal",alignItems:"center",spacing:1},t.createElement(g,{alignItems:"center",axis:"horizontal",marginRight:"auto",spacing:1},t.createElement(Qn,null,"Filter by plan"),m>0&&t.createElement(Z,{size:"xs"})),t.createElement(z,{ariaLabel:"Filter by plan",disabled:!l,isChecked:s,onClick:()=>{d(e=>!e),e({appName:"Services",values:e=>Ae({},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({appName:"Services",values:e=>Ae({},e,{plan_id:t})})}):v?t.createElement(g,{axis:"horizontal",alignItems:"center",spacing:2,padding:2},t.createElement(E,{color:"foregroundSecondary",name:"general.exclamationTriangle",size:"lg"}),t.createElement(f,{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)},Al=({values:e,onChange:r,isActive:o})=>{const[i,c]=a(""),[s,d,m]=((e,t)=>{const[l,r]=a([]),[o,i]=a(!1),c=Wn();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 p=0;const v={teams_i_lead:!0},b=((e,t)=>_a(e,t,{keys:["name"],threshold:_a.rankings.CONTAINS}).sort(Ua).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 w=Object.entries(b);return t.createElement(g,{spacing:1},t.createElement(g,{axis:"horizontal",alignItems:"center",spacing:1},t.createElement(T.InputLabel,Ae({controls:"teams"},Xn),"Teams"),m&&t.createElement(Z,{size:"xs"})),t.createElement(g,{spacing:1},s.length>0&&t.createElement(S,{spacing:1},s.map(e=>t.createElement(N,{key:e.value.team_id,renderRight:t.createElement(h,{title:"remove",icon:{name:"general.x",size:"xs"},theme:"naked",onClick:()=>r({appName:"Services",values:t=>Ae({},t,{teams:t.teams.filter(({team_id:t})=>t!==e.value.team_id)})})}),size:"sm",title:e.name}))),t.createElement(I.Popover,{ref:u,id:"teams",openOnFocus:!0,closeOnSelect:!0,onClear:()=>c(""),onChange:e=>c(e.target.value),onSelect:({value:e})=>r({appName:"Services",values:t=>Ae({},t,{teams:[...t.teams,e]})}),placeholder:"Search teams",renderLeft:t.createElement(E,{name:"general.search"}),value:i},w.length?w.map(([e,n],a)=>{const l=(e=>e.split("_").map((e,t)=>"i"===e.toLowerCase()?"I":0===t?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():e.toLowerCase()).join(" "))(e),o=n.map(e=>t.createElement(I.Item,{key:p,index:p++,value:e},t.createElement(f,{truncate:!0},e.name))),i=n.length>10;return Object.keys(b).length>1?t.createElement(g,{key:e,marginTop:a>0?1.5:0},t.createElement(g,{axis:"horizontal"},t.createElement(H.Item,null,t.createElement(f,{weight:600},l)),v[e]&&t.createElement(g,{padding:1,marginLeft:"auto"},t.createElement(h,{disabled:i,fontWeight:400,onClick:e=>{r({appName:"Services",values:e=>Ae({},e,{teams:[...e.teams,...n.map(e=>e.value)]})}),u.current&&u.current.handleBlur(e)},size:"xs",theme:"primary",title:"Select all",tooltip:{popoverProps:{zIndex:1e4},title:i?"Disabled when options would exceed 10":`select all in "${l}"`},variant:"naked"}))),o):o}):t.createElement(H.Item,null,t.createElement(f,null,"No matching teams for:"," ",t.createElement(f,{as:"span",inline:!0,italic:!0},`"${i}"`))))))},Sl=()=>t.createElement(g,{grow:1},t.createElement(g,{alignItems:"center",axis:"horizontal",padding:2,spacing:1},t.createElement(Qn,null,"People selected")),t.createElement(g,{alignment:"center",grow:1,maxHeight:18,padding:2},t.createElement(f,{color:"foreground",align:"center",size:4},"Search teams above to add people to the chat."))),Nl=({isActive:e})=>{const{filterValues:a,setFilterValues:l,isFiltering:o,isPlansActive:i}=(e=>{const{filterValues:t,setFilterValues:a}=Bn(),{Services:l}=t;n(()=>{a({appName:"Services",values:e?e=>e:Jn})},[e]);const o=r(()=>{const[e,...t]=l.teams;return Boolean(e)&&t.every(({service_type_id:t})=>t===e.service_type_id)},[l.teams]);return n(()=>{o||a({appName:"Services",values:e=>Ae({},e,{plan_id:null})})},[o]),{filterValues:l,isFiltering:l.teams.length>0,isPlansActive:o,setFilterValues:a}})(e);return t.createElement(g,{grow:1},t.createElement(g,{spacing:2,padding:2,paddingTop:0},t.createElement(Al,{values:a,onChange:l,isActive:e}),t.createElement(xl,{values:a,onChange:l,isActive:i})),t.createElement(p,null),o?t.createElement(yl,{filter:a}):t.createElement(t.Fragment,null,t.createElement(Sl,null),t.createElement(Cl,{handleStartChat:Fn,startChatDisabled:!0,showSpinner:!1})))},Vl=()=>{const{isNewChatViewActive:e,switchToNewChatShortcutsView:n}=Bn();return t.createElement(t.Fragment,null,t.createElement(g,{alignment:"center",axis:"horizontal",spacing:1,padding:2,paddingTop:1},t.createElement(h,{icon:{color:Pt.lightNeutral12,name:"general.leftChevron"},marginTop:.25,onClick:n,size:"md",title:"Back to to new conversation shortcuts",tooltip:"Back to to new conversation shortcuts",variant:"naked"}),t.createElement(xn,null,"New conversation")),t.createElement(Nl,{isActive:e}))},zl=({closeDrawer:e,children:a})=>{const{client:l,channel:r,setActiveChannel:o}=W(),{filterValues:c,setFilterValues:s}=(()=>{const[e,n]=t.useState(Kn);return{filterValues:e,setFilterValues:i(({appName:e,values:t})=>{n(n=>Ae({},n,{[e]:"function"==typeof t?t(n[e]):t}))},[])}})(),[d,m]=t.useState(!1),[u,p]=t.useState(0),h=()=>p(3),g=0===u,f=1===u,E=2===u,v=3===u,b=4===u;return n(()=>{g&&r&&o(null)},[r,g]),t.createElement(Rn,{value:{actionsOpenForChannel:d,closeDrawer:e,filterValues:c,findAndSwitchToChannel:async({stream_channel_id:e})=>{const[t]=await l.queryChannels({id:{$eq:e}});t&&(o(t),h())},isChannelDetailsViewActive:b,isChannelViewActive:v,isNewChatShortcutsViewActive:f,isNewChatViewActive:E,setActionsOpenForChannel:m,setFilterValues:s,switchToChannelDetailsView:()=>p(4),switchToChannelListView:()=>p(0),switchToChannelView:h,switchToNewChatShortcutsView:()=>p(1),switchToNewChatView:()=>p(2)}},t.createElement(Tn,{activeIndex:u},a))},Tl=({chatClient:e,closeDrawer:n,env:a,appName:l,currentPersonId:r})=>t.createElement(de,{client:e,theme:"str-chat__theme-light"},t.createElement(Ln,{env:a},t.createElement(zl,{closeDrawer:n},t.createElement(el,{closeDrawer:n,client:e,env:a,appName:l,currentPersonId:r}),t.createElement(bl,null),t.createElement(Vl,null),t.createElement(hl,null),t.createElement(Ea,null)))),Ml={component:({appName:e,closeDrawer:n,env:a,chatStreamUser:l,userId:r})=>{const o=(e=>{const[n,a]=t.useState(null);return t.useEffect(()=>{if(!e)return Fn;let t=!1;const n=new me(e.api_key),l=n.connectUser({id:e.id},e.tokenProvider).then(()=>{t||a(n)});return()=>{t=!0,a(null),l.then(()=>n.disconnectUser()).then(()=>{console.log("connection closed")})}},[null==e?void 0:e.id,null==e?void 0:e.api_key]),n})(l);return o?t.createElement(Tl,{chatClient:o,closeDrawer:n,env:a,appName:e,currentPersonId:r}):t.createElement(yn,{closeDrawer:n},t.createElement(g,{alignment:"center",axis:"horizontal",spacing:1},t.createElement(xn,null,"Chat"),t.createElement(va,null),t.createElement(Z,{color:"hsl(0 0% 62%)",thickness:2,trackColor:"hsl(0 0% 97%)"})))},icons:{active:"general.textMessage",static:"general.outlinedTextMessage"},name:"Chat"},Zl=({sectionName:e,currentAppName:n})=>{const a=e.toLowerCase();return"account information"===a||"recent updates"===a?t.createElement(E,{name:"account information"===a?"general.cogPerson":"general.outlinedGenericFile",color:"foregroundSecondary"}):"Accounts"===n?t.createElement(E,{name:"general.cog",color:"foregroundSecondary"}):t.createElement(g,{width:2,height:2},t.createElement(L,{name:n.toLowerCase().replace(/[\s]/,"-"),size:"sm",theme:"color",markOnly:!0}))},Hl=({hit:e,index:n})=>t.createElement(I.Item,{key:e.objectID,index:n,value:e,paddingVertical:1},t.createElement(f,{color:"neutralDarker",size:4,whiteSpace:"normal"},e.title)),_l=({currentAppName:e,indexName:n})=>{const{query:a,refine:l}=be(),{hits:r,results:o}=we(),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(g,{id:"helpdesk-search",position:"relative"},t.createElement(I.Popover,{renderTo:"#helpdesk-search",popoverProps:{zIndex:2},placeholder:"Search our documentation",value:a,renderRight:t.createElement(E,{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(g,{axis:"horizontal",alignment:"center",paddingHorizontal:2,paddingVertical:1},t.createElement(f,{color:"neutralDarker",size:4,whiteSpace:"normal"},"No results match your search"))),i&&Object.keys(i).map(n=>{const a=i[n];return t.createElement(t.Fragment,{key:n},c>0&&t.createElement(p,{margin:1}),t.createElement(g,{axis:"horizontal",alignment:"center",spacing:.5,paddingHorizontal:2,paddingVertical:1},t.createElement(Zl,{currentAppName:e,sectionName:n}),t.createElement(f,{size:5,color:"foregroundSecondary",fontWeight:500},n)),a.map(e=>t.createElement(Hl,{key:e.objectID,hit:e,index:c++})))})))},Pl=({indexName:e,currentAppName:n})=>{const{algoliaSearchAuth:{algoliaApplicationId:a,algoliaSearchOnlyApiKey:l}}=Zt(),r=ve(a,l);return t.createElement(Ce,{indexName:e,searchClient:r},t.createElement(ye,{hitsPerPage:5}),t.createElement(_l,{currentAppName:n,indexName:e}))},{LoadingIndicator:Ol,StackView:Il}=$,Ll={component:function({appName:e,closeDrawer:n,env:a,helpdeskConfig:l}){const r=`${d(a)("helpdesk")}/addons/toolbar.helpdesk.help`;return t.createElement(j,{grow:1,display:"flex",extensionId:"11",url:r,loadingFallback:t.createElement(Il,{flex:1,axis:"vertical"},t.createElement(yn,{closeDrawer:n},t.createElement(Il,{axis:"horizontal",spacing:1},t.createElement(xn,null,"Help and support"),t.createElement(Ol,null)))),additionalComponents:{CalendlyWidget:Ee,DocumentationSearch:Pl,DrawerHeader:yn,DrawerHeading:xn,ScrollContainer:Vn,SwitchView:Tn},args:{appName:e,closeDrawer:n,currentPageParams:location.search,helpdeskConfig:l}})},icons:{active:"general.questionCircle",static:"general.outlinedQuestionCircle"},name:"Helpdesk"},Dl=["dark","style"],Rl=e=>{let{dark:n,style:a}=e,l=Ne(e,Dl);return t.createElement("div",Ae({style:Ae({color:n?Pt.lightNeutral62:Pt.lightNeutral24,fontSize:"12px",fontWeight:400,textTransform:"uppercase"},a)},l))},Ul=({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",Ae({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?Pt.interaction66:Pt.lightNeutral81,r:"6",style:{transition:"all 0.2s"}}),t.createElement("circle",{cx:"6",cy:"6",fill:Pt.lightNeutral100,r:"5"}),!e&&t.createElement("circle",{cx:"6",cy:"6",r:"4",fill:Pt.interaction66})))},Fl=({mobile:e=!1,isLast:n,onCreateTask:a,onMarkAsRead:l=(async()=>Promise.resolve({})),onToggleRead:r,showBottomBorder:o,notification:i})=>{const{appName:c,createdAt:s,isRead:d,link:m,title:u}=i,{organizationTimeZone:p,notificationsContextMenu:h}=Zt(),[g,f]=t.useState(!1),E={style:"relative"};return p&&(E.timeZone=p),t.createElement(yt,{active:g,"data-turbolinks":!1,href:m,onClick:async e=>{f(!0),await l(i),window.location.href=m},style:Ae({alignItems:"flex-start",borderBottom:o||!n?`1px solid ${e?Pt.lightNeutral24:Pt.lightNeutral93}`:"none",cursor:"pointer",display:"flex",overflow:"hidden",padding:"12px 16px",textDecoration:"none",verticalAlign:"middle"},et)},t.createElement("div",{style:{display:"flex",flexDirection:"column",flexGrow:1,justifyContent:"center"}},t.createElement("div",{style:{alignItems:"center",borderLeft:`4px solid hsl(${{Calendar:"9 61% 50%","Check-Ins":"283 22% 48%",Giving:"43 88% 64%",Groups:"17 96% 62%",People:"220 74% 57%",Publishing:"220 12% 31%",Registrations:"175 36% 43%",Services:"88 45% 41%"}[c]||"0 0% 81%"} / ${d?"40%":"100%"}`,display:"flex",marginBottom:"10px",paddingLeft:"8px"}},t.createElement("div",{style:{flexGrow:1,marginRight:"16px"}},t.createElement(Rl,{dark:e,style:{marginBottom:"6px",userSelect:"none"}},c),t.createElement("h1",{style:{color:e?Pt.lightNeutral88:Pt.darkNeutral12,fontSize:"16px",fontWeight:500,lineHeight:"1.3em",margin:0,userSelect:"none"}},u)),!e&&!h&&t.createElement(Ul,Ae({onClick:e=>{e.preventDefault(),e.stopPropagation(),r()}},{isRead:d})),!e&&h&&t.createElement(O,{icon:{name:"general.threeDots"},title:"More options",variant:"naked",iconRight:null,placement:"bottom-end",onClick:e=>{e.stopPropagation()}},t.createElement(O.Item,{onClick:e=>{e.preventDefault(),e.stopPropagation(),r()}},"Mark ",d?"unread":"as read"),i.taskUrl?t.createElement(O.Item,{onClick:e=>{e.preventDefault(),e.stopPropagation(),window.location.href=i.taskUrl}},"Open task"):t.createElement(O.Item,{onClick:e=>{e.preventDefault(),e.stopPropagation(),a(i)}},"Create task"))),t.createElement("div",{style:{color:e?Pt.lightNeutral62:Pt.lightNeutral24,fontSize:"12px",paddingLeft:"12px",userSelect:"none"}},pe.datetime(s,E))))},jl=({context:e,dark:n=!1,description:a,title:l="No notifications"})=>t.createElement(g,{alignment:"center",distribution:"center",padding:4},t.createElement(st,Ae({id:e},{dark:n})),t.createElement(k,{color:n?"#fafafa":"#3d3d3d",fontWeight:500,marginTop:1,size:3},l),t.createElement(f,{align:"center",color:n?"#fafafa":"#3d3d3d",size:4},a)),$l=(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}},Bl=["disabled","onClick","title"],Wl=e=>{let{disabled:n,onClick:a,title:l}=e,r=Ne(e,Bl);return t.createElement(g,Ae({color:n?Pt.lightNeutral62:Pt.interaction66,cursor:n?"default":"pointer",fontSize:5,fontWeight:600,userSelect:"none",onClick:!n&&a},r),l)},ql=e=>{let n=Ae({},(Se(e),e));return t.createElement(k,Ae({color:Pt.lightNeutral12,lineHeight:2,size:5,textTransform:"uppercase",userSelect:"none"},n))},Gl={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:c,joltChannel:s}=De.getState().notifications,{handleCreateTask:m,handleMarkAllAsRead:u,handleMarkAsRead:p,handleToggleRead:h,hasError:f,isLoading:E,read:v,unread:b}=(({enabled:e,env:n,joltChannel:a})=>{const[l,r]=t.useState([]),[o,c]=t.useState(!0),[s,m]=t.useState(!1),{read:u,unread:p}=(e=>{const{read:t,unread:n}=[...e].sort((e,t)=>e.createdAt<t.createdAt?1:-1).reduce((e,t)=>Ae({},e,t.isRead?{read:[...e.read,t]}:{unread:[...e.unread,t]}),{read:[],unread:[]});return{read:t,unread:n}})(l),h=()=>{try{m(!1),Me(ze,`${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=>$l(t,e));c(!1),r(t)})}catch(e){m(!0),console.error("topbar encountered error when fetching all notifications",e)}};t.useEffect(()=>{e&&h()},[e]);const g=e=>"string"==typeof e.data?JSON.parse(e.data):e.data,f=t.useCallback(e=>{try{(async e=>{try{return m(!1),Me(ze,`${window.location.origin}/~api/notifications/v2/me/notifications/${e}?include=app,web_payloads`).then(({json:e})=>e)}catch(e){m(!0),console.error("topbar encountered error when fetching a single notification",e)}})(g(e).data.id).then(e=>{const t=$l(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)}},[$l,g,h,u,r,p]),E=t.useCallback(e=>{const t=g(e),n=l.filter(e=>e.id!==t.data.id);r(n)},[g,l,r]);He(e?a:void 0,"notifications.v2.events.notification.created",f),He(e?a:void 0,"notifications.v2.events.notification.updated",f),He(e?a:void 0,"notifications.v2.events.notification.destroyed",E);const v=async(e,t)=>{const a=e.reduce((e,n)=>[...e,{attributes:{action:t},id:n,type:"graph_notification"}],[]);return Me(Te,`${d(n)("api")}/notifications/v2/me/bulk_update`,{data:{data:{attributes:{},relationships:{notifications:{data:{source:"/included/graph_notification/*"}}},type:"BulkUpdate"},included:a},method:"POST"}).then(t=>{t.ok||(c(!1),m(!0),r(t=>t.map(t=>e.includes(t.id)?Ae({},t,{isRead:!t.isRead}):t)))})},b=i(async e=>Me(Te,`${d(n)("api")}/home/v2/me/task_lists/inbox/tasks`,{data:{data:{attributes:{description:e.link?`<a href="${e.link}">Link</a>`:void 0,title:e.title}}},method:"POST"}).then(t=>{t.ok&&r(n=>n.map(n=>e.id===n.id?Ae({},n,{taskUrl:t.json.data.links.html}):n))}),[]);return{handleCreateTask:b,handleMarkAllAsRead:()=>{const e=p.map(e=>e.id);r(t=>t.map(t=>e.includes(t.id)?Ae({},t,{isRead:!0}):t)),v(p.map(e=>e.id),"read")},handleMarkAsRead:async e=>v([e.id],"read"),handleToggleRead:async e=>{const t=e.isRead?"unread":"read";return r(n=>n.map(n=>e.id==n.id?Ae({},n,{isRead:"read"===t}):n)),v([e.id],t)},hasError:s,isLoading:o,read:u,unread:p}})({enabled:c,env:o,joltChannel:s});return t.createElement(t.Fragment,null,t.createElement(yn,{closeDrawer:e},t.createElement(g,{spacing:.5},t.createElement(g,{alignment:"center",axis:"horizontal",spacing:1},t.createElement(xn,null,"Notifications"),E&&t.createElement(Z,{color:"hsl(0 0% 62%)",thickness:2,trackColor:"hsl(0 0% 97%)"}),f&&t.createElement(mt,{fill:"hsl(8 60% 47%)",size:16})),v.length>0&&t.createElement(Wl,{onClick:()=>a(e=>!e),title:(n?"Hide":"Show")+" read"}))),t.createElement(Vn,null,t.createElement(g,{alignment:"stretch",spacing:2},t.createElement("div",{style:{boxSizing:"border-box",display:"flex",flexDirection:"column",justifyContent:"space-between",margin:0,padding:"4px 0"}},!E&&0===b.length&&t.createElement(jl,Ae({context:"toolbar",description:`When you have ${v.length>0?"unread ":""}notifications they will show up here.`},v.length>0&&{title:"No unread notifications"})),b.length>0&&t.createElement(g,{axis:"horizontal",alignment:"center",distribution:"space-between",padding:2},t.createElement(ql,null,"Unread"),b.length>0&&t.createElement(Wl,{onClick:()=>u(),title:`Mark ${b.length} as read`})),t.createElement(ke,{exit:!1},b.map((e,n)=>t.createElement(xe,{key:e.id,timeout:0},a=>t.createElement("div",{style:Ae({},l,r[a])},t.createElement(Fl,Ae({isLast:b.length===n+1,key:e.id,onMarkAsRead:p,onToggleRead:()=>h(e),onCreateTask:m,showBottomBorder:v.length>0},{notification:e})))))),v.length>0&&n&&t.createElement(t.Fragment,null,t.createElement(ql,{padding:2},"Read"),t.createElement(ke,{exit:!1},v.map(e=>t.createElement(xe,{key:e.id,timeout:0},n=>t.createElement("div",{style:Ae({},l,r[n])},t.createElement("div",{style:{opacity:.6}},t.createElement(Fl,Ae({key:e.id,onToggleRead:()=>h(e),onCreateTask:m,showBottomBorder:!0},{notification:e}))))))))))))},icons:{active:"toolbar.notification",static:"toolbar.notificationO"},name:"Notifications"};function Jl(){const e=document.head.querySelectorAll('meta[property^="pco:"]'),t={};return e.forEach(e=>{const n=e.getAttribute("property");var a;t[n.substring("pco:".length)]="boolean"===(a=e).getAttribute("datatype")?"true"===a.content||"1"===a.content:a.content}),t}const Kl=Le(Jl()),Yl=new MutationObserver(()=>{const e=Kl.getState(),t=Jl();var n,a;n=e,a=t,Object.keys(n).length===Object.keys(a).length&&Object.entries(n).every(([e,t])=>a[e]!==t)||Kl.setState(t)});let Xl=!1;const Ql=["children","badge","onClick"],{LoadingIndicator:er,StackView:tr}=$;function nr(e){let{children:n,badge:a,onClick:l}=e,r=Ne(e,Ql);return t.createElement(g,Ae({as:"button",axis:"horizontal",distribution:"space-between",alignment:"center",paddingBottom:.75,onClick:()=>l(),spacing:1},r),n,a&&t.createElement(N,Ae({size:"sm",fontWeight:"600"},a)))}const ar={component:function({closeDrawer:e,enableJoltLogging:n,env:l,isOpen:r,joltPromise:o,onReceiveWorker:c,openDrawer:s}){const u=(Xl||(Xl=!0,Yl.observe(document.head,{attributes:!0,childList:!0,subtree:!0})),m(Kl.subscribe,()=>Kl.getState())),p=`${d(l)("home")}/addons/toolbar.tasks.list.js`,[h,g]=a(),[f,E]=a(),v=Ze({channelName:null==f?void 0:f.channelName,enableJoltLogging:n,enabled:!!f,env:l,fetchSubscribeToken:async e=>{const t=f.subscribeUrl;return(await Me(Te,t,{data:{data:{attributes:{connection_id:e}}},method:"POST"})).json.data.id},joltPromise:o}),b=i(e=>{g(Ae({},e,{timestamp:(new Date).getTime()}))},[]);He(v,"",b);const w=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:p,onReceiveWorker:c,loadingFallback:t.createElement(tr,{flex:1,axis:"vertical"},t.createElement(yn,{closeDrawer:e},t.createElement(tr,{axis:"horizontal",spacing:1},t.createElement(xn,null,"To do"),t.createElement(er,null)))),additionalComponents:{DrawerHeader:yn,DrawerHeading:xn,NavLinkWithBadge:nr,ScrollContainer:Vn,SwitchView:Tn},args:{closeDrawer:e,isOpen:r,latestJoltMessage:h,openDrawer:s,pcoMeta:u,requestJoltChannel:E,trackPendo:w}})},icons:{active:"toolbar.checklist",static:"toolbar.checklistO"},name:"Tasks"},lr={Chat:Ml,Notifications:Gl,Tasks:ar};function rr({appName:l,autoMountTool:r,enableJoltLogging:o,env:i,helpdeskConfig:c={},linkToProfile:s=!0,userAvatarPath:m,userName:v,onReceiveTasksWorker:w}){const C=r?lr[r]:null,[S,N]=e.useReducer(Hn,Ae({},Zn,{currentContent:C})),{currentContent:V,open:z}=S,T=!!V,{indicatorVisible:M,joltPromise:Z,chatEnabled:H,userId:_}=Zt();t.useEffect(()=>{z?(document.body.style.overflow="hidden",window.scrollTo(0,0)):document.body.style.overflow="auto"},[z]),t.useEffect(()=>(window.openHelpdesk=()=>K(Ll),()=>{delete window.openHelpdesk}),[Ll]);const P=un({appName:l.replace(/[\s-]/,""),env:i,userId:_}),O=`${d(i)("login")}/logout`,I=`/people/AC${_}`,L=Ll,D=null!=c&&c.onClick?c.onClick:()=>F(L),R=e=>{N({payload:{content:e},type:Mn.mount}),setTimeout(()=>N({type:Mn.open}))},U=()=>{N({type:Mn.close}),setTimeout(()=>N({type:Mn.unmount}),100)},F=e=>z?(null==V?void 0:V.name)===e.name?U():N({payload:{content:e},type:Mn.set}):R(e),j=(({enableJoltLogging:e,env:n,userId:a,isEnabled:l,joltPromise:r,onConnectionFailure:o=Fn})=>{const[i,c]=t.useState(null),s=Ze({channelName:`chat.people.${a}`,enableJoltLogging:e,enabled:l,env:n,fetchSubscribeToken:async e=>{const t=`${d(n)("api")}/chat/v2/me/jolt_subscribe`;return Me(Te,t,{data:{data:{attributes:{cid:e}}},method:"POST"}).then(({json:e})=>e.data.id)},joltPromise:r}),m=async({fields:e})=>{const t=`${d(n)("api")}/chat/v2/me/stream_user`,a=`?context=linked_accounts&fields[StreamUser]=${e.join(",")}`,{json:l}=await Me(ze,`${t}${a}`);return l.data},u=()=>m({fields:["api_key","token","unread"]}).then(({id:e,attributes:t})=>{const{token:n}=t,a=Ne(t,Yn);n?c(t=>Ae({id:e},t,a,{tokenProvider:async()=>{const{attributes:e}=await m({fields:["token"]});return e.token}})):(o(),c(null))}).catch(Fn);return He(l?s:void 0,"STREAM_USER_UPDATED",u),t.useEffect(()=>{l&&u()},[l]),i})({enableJoltLogging:o,env:i,isEnabled:Boolean(_&&H),joltPromise:Z,onConnectionFailure:()=>V===Ml&&U(),userId:_}),$=[Gl,ar,j&&Ml].filter(Boolean),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(g,{axis:"vertical",spacing:t.createElement(p,null)},t.createElement(x,{columns:"auto 1fr auto",alignment:"start",spacing:2,padding:2,paddingTop:1,width:"100%"},t.createElement(A,{source:o,size:"md"}),t.createElement(g,{axis:"vertical",spacing:1,grow:0,shrink:1},t.createElement(k,{level:3,size:1,weight:600,paddingTop:.5,color:Pt.lightNeutral12},s),n&&t.createElement(b,{to:r,style:{color:Pt.lightNeutral45},size:3},"My profile"),c&&t.createElement(t.Fragment,null,t.createElement(b,{to:a,style:{color:Pt.lightNeutral45},size:3},"My login settings"),t.createElement(g,{axis:"horizontal",alignment:"center",spacing:.5,width:"100%"},t.createElement(E,{name:i?"general.lock":"general.unlock",size:"sm",color:i?Pt.success25:Pt.danger45}),t.createElement(f,{size:5,weight:400,color:Pt.lightNeutral62,wrap:!0},"Two-step verification ",i?"active":"inactive")))),t.createElement(h,{icon:{fill:Pt.lightNeutral24,name:"general.x",size:"md"},onClick:e,title:"Close",variant:"naked",theme:!1,hover:{backgroundColor:Pt.lightNeutral95}})),t.createElement("form",{method:"POST",action:l},t.createElement(h,{"data-turbolinks":!1,onClick:()=>{Fe()},style:{padding:0},theme:!1,type:"submit",width:"100%"},t.createElement(g,{distribution:"space-between",alignment:"center",axis:"horizontal",grow:1,paddingHorizontal:3,paddingVertical:2},t.createElement(f,{color:Pt.lightNeutral45,size:3},"Log out"),t.createElement(E,{name:"general.intoBox",fill:Pt.lightNeutral45})))))}({closeDrawer:U,linkToProfile:s,loginSettingsUrl:P,logoutUrl:O,profileUrl:I,userAvatarPath:m}),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: 599px)"),[G,J]=t.useState(0);t.useLayoutEffect(()=>{const e=()=>{J(window.innerHeight)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const K=e=>{var t;R(e),null==(t=document.getElementById(`toolbarDrawer${e.name}`))||t.scrollTo({behavior:"smooth",top:0})},Y=Ae({appName:l,closeDrawer:U,env:i,helpdeskConfig:c,isOpen:z,joltPromise:Z,openDrawer:()=>V&&R(V),userId:_},V?{Chat:{chatStreamUser:j},Tasks:{onReceiveWorker:w}}[V.name]:{}),X=Ae({},M,{Chat:null==j?void 0:j.unread});return t.createElement(u,{theme:gn},t.createElement(B,null,q?t.createElement(t.Fragment,null,t.createElement(g,{left:0,position:"absolute",right:0,pointerEvents:"none",style:{minHeight:G},top:0,zIndex:10001},t.createElement(g,{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(g,{alignment:"center",flex:"1",position:"relative"},t.createElement(h,{css:{WebkitTapHighlightColor:"transparent"},color:z?Pt.lightNeutral62:Pt.lightNeutral24,hover:{color:Pt.lightNeutral24},icon:{name:z?"toolbar.planningCenterO":"toolbar.planningCenter",size:"20px"},onClick:()=>U(),padding:2,theme:!1,title:"Home"})),[L,...$].map(e=>t.createElement(g,{alignment:"center",flex:"1",key:e.name,position:"relative"},t.createElement(h,{id:`toolbar-${e.name.toLowerCase()}`,"aria-label":`${e.name}`,color:z&&V===e?Pt.lightNeutral24:Pt.lightNeutral62,css:{WebkitTapHighlightColor:"transparent"},hover:{color:Pt.lightNeutral24},key:e.name,onClick:()=>K(e),paddingHorizontal:2,paddingVertical:2,theme:!1},t.createElement(y,{position:"relative"},X[e.name]&&t.createElement(An,{right:-.5,top:-.5}),t.createElement(E,{name:z&&V===e?e.icons.active:e.icons.static,size:"20px"}))))))),T&&t.createElement(Cn,{id:`toolbarDrawer${V.name}`,bottom:"52px",height:z?"calc(100% - 52px)":"0px",overflow:"auto",position:"absolute"},t.createElement(V.component,Ae({},Y)))):t.createElement(g,{height:"100vh",position:"absolute",right:0,width:z?"calc(360px + 48px)":"48px",transition:"all 100ms ease-in-out"},t.createElement(g,{backgroundColor:"surface",borderLeftColor:"separatorTertiary",borderLeftWidth:1,grow:1,paddingVertical:1,spacing:t.createElement(p,{margin:1.5}),zIndex:2,position:"absolute",right:0,height:"100%",width:"48px"},t.createElement(g,{alignment:"center","data-pendo":"toolbar-profile-support-wrapper",spacing:2},t.createElement(h,{"data-pendo":"toolbar-profile",onClick:()=>F(W),radius:0,theme:!1},t.createElement(A,{alt:`${v}'s avatar`,hover:{outlineColor:Pt.lightNeutral62},outlineColor:z&&T&&"Profile"==V.name?Pt.lightNeutral62:"transparent",outlineOffset:"2px",outlineStyle:"solid",outlineWidth:"2px",size:"sm",source:m})),t.createElement(or,{currentContent:V,indicatorState:X,key:L.name,onClick:D,open:z,tool:L})),t.createElement(g,{alignment:"center",spacing:2},$.map(e=>t.createElement(or,{currentContent:V,indicatorState:X,key:e.name,onClick:()=>F(e),open:z,tool:e})))),T&&t.createElement(Cn,{hasShadow:!0,id:`toolbarDrawer${V.name}`,width:"360px"},t.createElement(V.component,Ae({},Y))))))}const or=({currentContent:e,indicatorState:n,onClick:a,open:l,tool:r})=>t.createElement(y,{"data-pendo":`toolbar-${r.name.toLowerCase()}`,key:r.name,position:"relative"},n[r.name]&&t.createElement(An,{right:.25,top:.25}),t.createElement(h,{id:`toolbar-${r.name.toLowerCase()}`,color:l&&e===r?Pt.lightNeutral24:Pt.lightNeutral62,hover:{color:Pt.lightNeutral24},icon:{name:l&&e===r?r.icons.active:r.icons.static,size:"20px"},key:r.name,onClick:a,title:`Open ${r.name} drawer`,theme:!1}));export{Re as AppsProvider,ct as BellIcon,je as ConnectedPeopleProvider,Be as DisplaySwitch,$t as NotSmallRoute,jt as NotSmallTopbar,Kt as PlatformAnnouncements,Jt as PlatformAnnouncementsStyleProvider,nn as ProductAnnouncement,an as ProductAnnouncementStyleProvider,wn as SmallRoute,bn as SmallTopbar,ut as SpyglassIcon,Gt as StyledPlatformAnnouncement,ln as StyledProductAnnouncement,rn as StyledProductAnnouncementDimissButton,Tn as SwitchView,rr as Toolbar,pt as XIcon,Ue as mapApps,Te as railsCsrfFetch};
|
|
1
|
+
import*as e from"react";import t,{useEffect as n,useState as a,useMemo as r,useCallback as l,useRef as o,useContext as i,Fragment as c}from"react";import s from"@planningcenter/jolt-client";import d from"@planningcenter/url";import{useSyncExternalStore as m}from"use-sync-external-store/shim";import{ThemeProvider as u,Divider as p,Button as h,StackView as g,Text as f,Icon as E,designSystem as v,Link as b,HeadingUppercase as C,List as w,Box as y,Heading as k,GridView as x,Avatar as A,WrapView as S,Badge as N,Collapse as T,ToggleSwitch as V,Input as z,Select as M,Spinner as Z,Menu as _,Group as H,Tooltip as P,Dropdown as L,Combobox as O,Logo as I}from"@planningcenter/tapestry-react";import*as D from"@planningcenter/icons/paths/church-center";import*as R from"@planningcenter/icons/paths/general";import*as U from"@planningcenter/icons/paths/people";import*as $ from"@planningcenter/icons/paths/toolbar";import{UiExtensionFirstPartyComponent as F,components as j,UiExtensionDataContext as B}from"@planningcenter/add-ons";import{useChatContext as W,Avatar as q,ChannelList as G,InfiniteScroll as J,useMessageListContext as Y,useMessageInputContext as X,useChannelStateContext as K,AttachmentPreviewList as Q,ChatAutoComplete as ee,Channel as te,Window as ne,MessageInput as ae,MessageList as re,Chat as le}from"stream-chat-react";import{StreamChat as oe,logChatPromiseExecution as ie}from"stream-chat";import ce from"@planningcenter/datetime-fmt";import se from"@emoji-mart/data";import{init as de,SearchIndex as me}from"emoji-mart";import{nanoid as ue}from"nanoid";import{useDropzone as pe}from"react-dropzone";import{UploadButton as he}from"react-file-utils";import{EmojiPicker as ge}from"stream-chat-react/emojis";import{InlineWidget as fe}from"react-calendly";import Ee from"algoliasearch";import{useSearchBox as ve,useHits as be,InstantSearch as Ce,Configure as we}from"react-instantsearch";import{TransitionGroup as ye,Transition as ke}from"react-transition-group";function xe(){return xe=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},xe.apply(this,arguments)}function Ae(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function Se(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)t.indexOf(n=l[a])>=0||(r[n]=e[n]);return r}const Ne=["headers"],Te=(e,t)=>fetch(e,xe({credentials:"include",mode:"cors"},t)),Ve=(e,t)=>{let{headers:n}=t,a=Se(t,Ne);return fetch(e,xe({headers:xe({},n,{"X-CSRF-Token":(null==(r=window)||null==(l=r.Rails)?void 0:l.csrfToken())||(null==(o=document.querySelector('meta[name="csrf-token"]'))?void 0:o.getAttribute("content"))||null})},a,{credentials:"include",mode:"cors"}));var r,l,o};function ze(e,t,{method:n="GET",data:a=null}={}){const r={headers:{Accept:"application/json","Content-Type":"application/json"},method:n,redirect:"follow"};return a&&"GET"!==n&&(r.body=JSON.stringify(a)),e(t,r).then(e=>e.json().then(t=>({json:t,ok:e.ok,response:e})).catch(()=>({json:null,ok:e.ok,response:e})),e=>(console.warn(e),{json:null,ok:!1,response:null}))}const Me=({channelName:e,enableJoltLogging:n=!1,enabled:a=!0,env:r,wssEndpoint:l,fetchSubscribeToken:o,joltPromise:i=(()=>Promise.resolve())})=>{const[c,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 s(l||(e=>{switch(e){case"development":case"test":return"wss://1csnwvu025.execute-api.us-east-1.amazonaws.com/v1/";case"staging":return"wss://xvk2ac1o3l.execute-api.us-east-1.amazonaws.com/v1/";default:return"wss://yxe88gasn3.execute-api.us-east-1.amazonaws.com/v1/"}})(r),{fetchAuthTokenFn:async()=>ze(Ve,`${window.location.origin}/~api/notifications/v2/me/notifications_jolt_authorize`,{data:{data:{attributes:{}}},method:"POST"}).then(({json:e})=>e.data.id),fetchSubscribeTokenFn:a},{logToConsole:n}));const c=t.subscriptions.find(t=>t.channel===e)||t.subscribe(e,{fetchSubscribeTokenFn:a});m(c),p(t)},[ze,e,r,d,Ve]);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]),c},Ze=(e,t,a)=>n(()=>e?(e.bind(t,a),()=>e.unbind(t,a)):()=>{},[e,a]),_e=(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 r=this;clearTimeout(n),n=setTimeout(()=>{n=null,e.apply(r,a)},t),n||e.apply(r,a)}};function Pe(e,t){return Object.keys(e).length===Object.keys(t).length&&Object.entries(e).every(([e,n])=>t[e]!==n)}function Le(e,t){const[r,l]=a(()=>{try{const n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(e){return t}}),o=JSON.stringify(r);return n(()=>{window.localStorage.setItem(e,o)},[e,o]),{dropKey:()=>window.localStorage.removeItem(e),setStoredValue:l,storedValue:r}}const Oe=()=>{};function Ie(e){let t=e;const n=new Set;return{getState:()=>t,setState:e=>{t=e,n.forEach(e=>e(t))},subscribe:e=>(n.add(e),()=>n.delete(e))}}const De=Ie({}),Re=({configuredFetch:e=Te,enableJoltLogging:r,env:l,formatter:o=Ue,joltPromise:i,wssEndpoint:c,render:s,userId:m})=>{var u,p,h,g,f,E,v,b,C,w,y,k,x,A,S,N,T,V,z,M,Z;const _=(({configuredFetch:e,env:t})=>{const{storedValue:r,setStoredValue:l}=Le("Topbar",{}),[o,i]=a(r);n(()=>{c()},[]);const c=()=>{ze(e,`${d(t)("api")}/people/v2/me/topbar`).then(({json:e,ok:t})=>{t&&(i(e),l(e))})};return o})({configuredFetch:e,env:l}),H=o(_),P=null==_||null==(u=_.data)||null==(p=u.attributes)?void 0:p.has_connected_people,L=null==_||null==(h=_.data)||null==(g=h.attributes)||null==(f=g.features)?void 0:f.includes("mfa_enabled"),O=null==_||null==(E=_.data)||null==(v=E.attributes)||null==(b=v.features)?void 0:b.includes("notifications_context_menu"),I=!(null==_||null==(C=_.data)||null==(w=C.attributes)||!w.mfa_configured),D=null==_||null==(y=_.data)||null==(k=y.attributes)?void 0:k.name,R=!window.notificationsDisabled,U=(null==_||null==(x=_.data)||null==(A=x.attributes)?void 0:A.org_time_zone)||"America/Los_Angeles",$=null==_||null==(S=_.data)||null==(N=S.attributes)||null==(T=N.features)?void 0:T.includes("chat_enabled"),F={algoliaApplicationId:null==_||null==(V=_.data)||null==(z=V.attributes)?void 0:z.algolia_application_identifier,algoliaSearchOnlyApiKey:null==_||null==(M=_.data)||null==(Z=M.attributes)?void 0:Z.algolia_search_key},j=Me({channelName:`notifications.people.${m}`,enableJoltLogging:r,enabled:!0,env:l,wssEndpoint:c,fetchSubscribeToken:async e=>{const t=`${window.location.origin}/~api/notifications/v2/me/notifications_jolt_subscribe`;return ze(Ve,t,{data:{data:{attributes:{cid:e}}},method:"POST"}).then(({json:e})=>e.data.id)},joltPromise:i}),B=(({enabled:e,joltChannel:n})=>{const{storedValue:a,setStoredValue:r}=Le("Topbar:Notifications:hasUnread",!1),l=((e,n=0)=>t.useMemo(()=>He(e,n),[]))(()=>{const e=`${window.location.origin}/~api/notifications/v2/me/unread`;ze(Te,e).then(({json:e})=>{r(e.data.attributes.unread)}).catch(Oe)},300);return t.useEffect(()=>{e&&l()},[e]),Ze(e?n:void 0,"notifications.v2.events.notification.created",l),Ze(e?n:void 0,"notifications.v2.events.notification.updated",l),Ze(e?n:void 0,"notifications.v2.events.notification.destroyed",l),a})({enabled:!0,env:l,joltChannel:j});return n(()=>{const e=De.getState();De.setState(xe({},e,{algoliaSearchAuth:F,chatEnabled:$,hasConnectedPeople:P,indicatorVisible:xe({},e.indicatorVisible,{Notifications:B}),joltPromise:i,mfaConfigured:I,mfaEnabled:L,name:D,notifications:{enabled:R,env:l,joltChannel:j},notificationsContextMenu:O,notificationsEnabled:R,notificationsJoltChannel:j,organizationTimeZone:U,userId:m}))},[i,I,L,D,O,R,B,U,m]),s(H||[],{fetch:()=>{},remove:()=>{}})};function Ue(e){var t,n;return(null==e||null==(t=e.data)||null==(n=t.attributes)?void 0:n.apps)||[]}function $e(){window.localStorage.removeItem("Topbar:ConnectedPeople")}class Fe extends t.Component{constructor(e){super(e),this.state={connectedPeople:[]}}fetch(){ze(this.props.configuredFetch,`${d(this.props.env)("api")}/login/v2/me/connected_people`).then(({json:e})=>{const t=e.data;return this.setState({connectedPeople:t},()=>window.localStorage.setItem("Topbar:ConnectedPeople",JSON.stringify(t)))})}unlink(){ze(this.props.configuredFetch,`${d(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,`${d(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:$e.bind(this),switch:this.switch.bind(this),unlink:this.unlink.bind(this)})}}Fe.defaultProps={configuredFetch:Te};class je extends t.Component{constructor(e){super(e),this.state={width:window.innerWidth},this.setWindowWidth=this.setWindowWidth.bind(this)}setWindowWidth(){this.setState({width:window.innerWidth})}componentDidMount(){window.addEventListener("resize",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 Be extends t.Component{render(){return t.createElement(je,{render:e=>-1!==this.props.smallBreakpoints.indexOf(e)?this.props.smallTopbar(e):this.props.notSmallTopbar(e)})}}function We({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"})}Be.defaultProps={smallBreakpoints:["xs","sm"]};var qe={__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:We,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 Ge=["appName","colors","style","size"];function Je({color:e="#fff"}){return t.createElement("path",{d:"M10.008.045C2.047.045.056,2.036.056,10s1.991,9.952,9.952,9.952S19.96,17.959,19.96,10,17.969.045,10.008.045Z",fill:e})}function Ye(e){let{appName:n,colors:a,style:r,size:l=20}=e,o=Se(e,Ge);return t.createElement("svg",xe({xmlns:"http://www.w3.org/2000/svg",width:l,height:l,viewBox:"0 0 20 20",role:"img","aria-labelledby":"title desc",style:xe({display:"block"},r)},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(Je,null),qe[n]?t.createElement(qe[n],{color:"Accounts"!=n?a.base0:"#fff"}):t.createElement("div",null,"appName not supported"))}var Xe={__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 Ke({appName:e,color:n,size:a=20}){return Xe[e]?t.createElement(Xe[e],{color:n,size:a}):t.createElement("div",null,"appName not supported")}const Qe={transition:"background-color 120ms ease-in"},et={fontFamily:"inherit"},tt={flex:"1 1 auto"},nt=["dot","dotFill","fill","style"],at=["dark","id","style"],rt=["colors","style"],lt=["fill","size","style"],ot=["fill","style"],it=["fill","style"],ct=e=>{let{dot:n=!1,dotFill:a="#fff",fill:r="#fff",style:l}=e,o=Se(e,nt);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",xe({width:"24",height:"24",viewBox:"0 0 24 24",style:xe({display:"block"},l)},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:r,height:"24",mask:n?"url(#mask-dot)":"url(#mask-no-dot",width:"24",x:"0",y:"0"}),n&&t.createElement("circle",{cx:"18",cy:"6",r:"4",fill:a||r}))},st=e=>{let{dark:n=!1,id:a="default",style:r}=e,l=Se(e,at);return t.createElement("svg",xe({fill:"none",height:"123",style:xe({},r),width:"160"},l),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"}))))},dt=e=>{let{colors:n,style:a}=e,r=Se(e,rt);return t.createElement("svg",xe({color:n.base3,height:"16",viewBox:"0 0 16 16",width:"16"},{style:a},r),t.createElement("title",null,"chevron"),t.createElement("polygon",{fill:"currentColor",points:"11.931 4.892 8 8.824 4.069 4.892 2.927 6.034 8 11.108 9.142 9.966 13.073 6.034 11.931 4.892"}))},mt=e=>{let{fill:n="#000",size:a=24,style:r}=e,l=Se(e,lt);return t.createElement("svg",xe({height:a,style:xe({display:"block"},r),viewBox:"0 0 16 16",width:a},l),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}))},ut=e=>{let{fill:n="#000",style:a}=e,r=Se(e,ot);return t.createElement("svg",xe({width:"24",height:"24",viewBox:"0 0 24 24",style:xe({display:"block"},a)},r),t.createElement("title",null,"search spyglass icon"),t.createElement("path",{d:"M17.352,15.481a8.517,8.517,0,1,0-2.209,2.033l4.642,4.642,2.121-2.121Zm-6.757,1.364a6.5,6.5,0,1,1,6.5-6.5A6.508,6.508,0,0,1,10.595,16.845Z",fill:n}))},pt=e=>{let{fill:n="#A0A0A0",style:a}=e,r=Se(e,it);return t.createElement("svg",xe({width:"16",height:"16",viewBox:"0 0 16 16",style:xe({display:"block"},a)},r),t.createElement("title",null,"close-x"),t.createElement("path",{d:"M9.142,8l3.814,3.814-1.142,1.142L8,9.142,4.186,12.956,3.044,11.814,6.858,8,3.044,4.186,4.186,3.044,8,6.858l3.814-3.814,1.142,1.142Z",fill:n}))},ht=["style"];function gt(e){let{style:n}=e,a=Se(e,ht);return t.createElement("button",xe({style:xe({WebkitAppearance:"none",appearance:"none",backgroundColor:"transparent",border:"none",cursor:"pointer",display:"inline-block",outline:0,padding:0},et,n)},a))}const ft=["appName","colors","displayIconOnly","expanded","onClick","style"],Et=e=>{let{appName:n,colors:a,displayIconOnly:r,expanded:l,onClick:o,style:i=null}=e,c=Se(e,ft);const[s,d]=t.useState(!1),[m,u]=t.useState(!1);return t.createElement(gt,xe({onClick:o,onMouseDown:()=>d(!0),onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),onMouseUp:()=>d(!1),style:xe({alignItems:"center",backgroundColor:l&&!s?a.base1:m&&s?a.base2:m?a.base1:"transparent",display:"flex",height:"100%",outline:0,paddingLeft:"16px",paddingRight:"16px",whiteSpace:"nowrap"},Qe,i)},c),t.createElement(Ye,{appName:n.replace(/[\s-]/,""),colors:a,size:24}),!r&&t.createElement(t.Fragment,null,"Accounts"===n?t.createElement("div",{style:{color:"#fff",fontSize:"14px",fontWeight:500,marginLeft:3}},"Account settings"):t.createElement(t.Fragment,null,t.createElement("div",{key:"spacer-1",style:{margin:4}}),t.createElement(Ke,{appName:n.replace(/[\s-]/,""),color:"#fff",key:"mono-app-name",size:24})),t.createElement("div",{key:"space-2",style:{margin:4}}),t.createElement(dt,{colors:a,key:"disclosure-chevron-icon",style:{display:"block"}})))};var vt={__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 bt({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(vt[e]?vt[e]:"span",{key:"key1"}),qe[e]?t.createElement(qe[e],{color:"#fff",key:"key2"}):t.createElement("div",{key:"key3"},"appName not supported"))}function Ct(e){var t,n,a;const r=`/apps/${e.toLowerCase()}`,l=null==(t=window)||null==(n=t.location)||null==(a=n.pathname)?void 0:a.toString();if(!l)return r;const o=new URLSearchParams;return o.append("referer",l),`${r}?${o.toString()}`}const wt=["active","component","style"],yt=e=>{let{active:n=!1,component:a="span",style:r=null}=e,l=Se(e,wt);const[o,i]=t.useState(!1);return t.createElement(a,xe({onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),style:xe({},r,{backgroundColor:n?"#ededed":o?"#f7f7f7":"transparent"})},l))},kt=["cleanup","onOutsideClick","visible"];class xt 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=Se(e,kt);return n?document.removeEventListener("click",this.handleOutsideClick,!0):document.addEventListener("click",this.handleOutsideClick,!0),t.createElement("div",xe({ref:e=>this.container=e},a))}}const At=["style"],St=e=>{let{style:n=null}=e,a=Se(e,At);return t.createElement("div",xe({style:xe({alignSelf:"flex-end",display:"flex",position:"relative"},n)},a))},Nt=["component","style"],Tt=e=>{let{component:n="div",style:a=null}=e,r=Se(e,Nt);return t.createElement(n,xe({style:xe({background:"#FFFFFF",borderRadius:"3px",boxShadow:"0 0 0 1px #D4D9E2, 0 8px 32px rgba(0,0,0,.3)",overflow:"hidden",position:"absolute"},a)},r))},Vt=({appName:e,apps:n,env:a,toggle:r,visible:l})=>{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)),s=xe({},et,{alignItems:"center",display:"flex",height:"48px",overflow:"hidden",padding:"0 16px",verticalAlign:"middle"});return t.createElement(St,null,t.createElement(Tt,{cleanup:!l,component:xt,onOutsideClick:r,style:xe({marginTop:"8px"},l?{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(yt,{component:"a","data-pendo":`app-switcher--change-app--${i.name}`,"data-turbolinks":!1,href:e===i.name?`${d(a)("accounts")}/apps/${e}`:d(a)("accounts")+Ct(i.name),style:xe({},s,{borderBottom:"1px solid #ededed"})},t.createElement("div",{style:{marginRight:"6px"}},t.createElement(bt,{appName:"Home",size:20})),t.createElement(Ke,{appName:"Home",color:"#444",size:18})),c.map(({name:n},r)=>{const l=0===r,o=r===c.length-1;return t.createElement(yt,{component:"a","data-pendo":`app-switcher--change-app--${n}`,"data-turbolinks":!1,href:n===e?`${d(a)("accounts")}/apps/${n.toLowerCase()}`:d(a)("accounts")+Ct(n),key:n,style:xe({},s,{height:"40px",paddingBottom:o?"4px":null,paddingTop:l?"4px":null})},t.createElement("div",{style:{marginRight:"6px"}},t.createElement(bt,{appName:n.replace(/[\s-]/,""),size:20})),t.createElement(Ke,{appName:n.replace(/[\s-]/,""),color:"#444",size:18}))}),o&&t.createElement(yt,{component:"a","data-pendo":`app-switcher--change-app--${o.name}`,"data-turbolinks":!1,href:d(a)("accounts")+Ct(o.name),style:xe({},s,{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(We,{color:"#9e9e9e",key:"key2"})),t.createElement("div",{style:{color:"#737373",fontSize:"12px",lineHeight:"28px"}},"Account settings")))))},zt=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},Mt=e=>e.slice().sort((e,t)=>e.attributes.organization_name.localeCompare(t.attributes.organization_name)),Zt=(e=(e=>e))=>m(De.subscribe,()=>e(De.getState())),_t=["children","style"];function Ht(e){let{children:n,style:a}=e,r=Se(e,_t);return t.createElement("nav",xe({className:"simple","data-pendo":"topbar","aria-label":"topbar-navigation",style:xe({MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",alignItems:"center",color:"white",display:"flex",height:"48px",position:"relative"},a)},r),t.createElement("style",null,"\n @media only print {\n .simple {\n display: none !important;\n }\n }\n "),n)}const Pt={danger43:"hsl(8 60% 43%)",danger45:"hsl(8 60% 45%)",danger47:"hsl(8 60% 47%)",danger93:"hsl(9 59% 93%)",danger97:"hsl(7 60% 97%)",darkNeutral07:"hsl(0 0% 7%)",darkNeutral12:"hsl(0 0% 12%)",darkNeutral15:"hsl(0 0% 15%)",darkNeutral17:"hsl(0 0% 17%)",darkNeutral19:"hsl(0 0% 19%)",darkNeutral24:"hsl(0 0% 24%)",darkNeutral32:"hsl(0 0% 32%)",darkNeutral50:"hsl(0 0% 50%)",darkNeutral68:"hsl(0 0% 68%)",darkNeutral88:"hsl(0 0% 88%)",darkNeutral98:"hsl(0 0% 98%)",interaction45:"hsl(221 75% 45%)",interaction50:"hsl(221 91% 50%)",interaction55:"hsl(221 91% 55%)",interaction66:"hsl(221 91% 66%)",interaction91:"hsl(221 91% 91%)",interaction93:"hsl(221 91% 93%)",interaction97:"hsl(221 89% 97%)",lightNeutral12:"hsl(0 0% 12%)",lightNeutral24:"hsl(0 0% 24%)",lightNeutral45:"hsl(0 0% 45%)",lightNeutral62:"hsl(0 0% 62%)",lightNeutral81:"hsl(0 0% 81%)",lightNeutral88:"hsl(0 0% 88%)",lightNeutral93:"hsl(0 0% 93%)",lightNeutral95:"hsl(0 0% 95%)",lightNeutral97:"hsl(0 0% 97%)",lightNeutral98:"hsl(0 0% 98%)",lightNeutral100:"hsl(0 0% 100%)",success23:"hsl(86 91% 23%)",success25:"hsl(86 91% 25%)",success27:"hsl(86 91% 27%)",success91:"hsl(95 50% 91%)",success97:"hsl(93 53% 97%)",warning20:"hsl(42 100% 20%)",warning49:"hsl(42 84% 49%)",warning55:"hsl(42 84% 55%)",warning63:"hsl(42 84% 63%)",warning94:"hsl(42 84% 94%)",warning97:"hsl(42 84% 97%)"},Lt=["style"],Ot=e=>{let{style:n=null}=e,a=Se(e,Lt);return t.createElement("div",xe({style:xe({alignSelf:"flex-end",display:"flex",position:"relative"},n)},a))},It=({appName:e,connectedPeople:n,env:a,hasConnectedPeople:r,requestClearAppsCache:l,requestClearConnectedPeopleCache:o,requestSwitchConnectedPerson:i,requestUnlinkConnectedPeople:c,setUserMenuVisible:s,userMenuVisible:m})=>{const v=`${d(a)("login")}/logout`;return t.createElement(Ot,null,t.createElement(Tt,{component:xt,onOutsideClick:()=>s(!1),cleanup:!m,style:xe({color:"#525252",marginTop:"8px",maxHeight:"75vh",maxWidth:"320px",minWidth:"242px",overflow:"auto",right:0},m?{opacity:1,transition:"none",visibility:"visible"}:{opacity:0,transition:"all 120ms ease-in",visibility:"hidden"},{cursor:"default"})},t.createElement("div",null,r?t.createElement("div",{style:{alignItems:"center",backgroundColor:"#eee",display:"flex",lineHeight:"32px",padding:"0 16px"}},t.createElement("div",{style:xe({},tt,{color:"#666",fontSize:"12px",textTransform:"uppercase",whiteSpace:"nowrap"},et)},"Linked Accounts"),t.createElement("div",{style:xe({},tt,{alignItems:"center",fontSize:"12px",textAlign:"right"})},t.createElement("a",{href:"",onClick:e=>{l(),o(),c(),e.preventDefault()},style:xe({color:"#666",marginLeft:"64px",textDecoration:"none"},et)},"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}},Mt(n).map(({id:n,attributes:a})=>t.createElement(yt,{component:"li",key:n},t.createElement("a",{href:"",onClick:t=>{l(),o(),i(n,`${e}/`),t.preventDefault()},style:xe({borderTop:"1px solid #ddd",color:"#444",display:"block",lineHeight:"48px",overflow:"hidden",paddingLeft:"16px",paddingRight:"16px",textDecoration:"none",textOverflow:"ellipsis",whiteSpace:"nowrap"},et)},a.organization_name))))),t.createElement(u,null,r&&t.createElement(p,null),t.createElement("form",{method:"POST",action:v},t.createElement(h,{"data-turbolinks":!1,hover:{backgroundColor:Pt.lightNeutral97},onClick:()=>{l(),o()},style:{padding:0},theme:!1,type:"submit",width:"100%"},t.createElement(g,{distribution:"space-between",alignment:"center",axis:"horizontal",grow:1,paddingHorizontal:2,paddingVertical:1.5,spacing:4},t.createElement(f,{color:Pt.lightNeutral45,lineHeight:"24px"},"Log out"),t.createElement(E,{name:"general.intoBox",fill:Pt.lightNeutral45})))))))},Dt=["active","component","hover","innerRef","style"],Rt=e=>{let{active:n=null,component:a="div",hover:r=null,innerRef:l=null,style:o=null}=e,i=Se(e,Dt);const[c,s]=t.useState(!1),[d,m]=t.useState(!1);return t.createElement(a,xe({onMouseDown:()=>s(!0),onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),onMouseUp:()=>s(!1),style:xe({},et,o,d&&r,c&&n)},l&&{ref:l},i))},Ut=({colors:e,orgName:n,requestConnectedPeopleFetch:a,setUserMenuVisible:r,showOrgName:l})=>t.createElement("div",{style:{cursor:"pointer",marginLeft:"16px",position:"relative",whiteSpace:"nowrap"},"data-pendo":"topbar-org-switcher"},t.createElement(Rt,{component:"button",type:"button",style:xe({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},Qe),active:{backgroundColor:e.base3},hover:{backgroundColor:e.base2},onClick:()=>{r(e=>!e),a()}},t.createElement("div",{style:{marginLeft:8}}),l?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(dt,{colors:e,style:{margin:"-3px"}})))),$t=["active","colors","style"],Ft=e=>{const[n,a]=t.useState(!1),[r,l]=t.useState(!0),[o,i]=t.useState(!1),{hasConnectedPeople:c,notificationsEnabled:s}=Zt();return t.createElement(Ht,{style:xe({paddingLeft:"8px",paddingRight:"16px"},e.style)},t.createElement(Vt,{env:e.env,appName:e.appName,apps:zt(e.apps),visible:n,toggle:()=>a(e=>!e)}),t.createElement(Et,{colors:e.colors,expanded:n,onClick:()=>{a(e=>!e),e.requestAppsFetch()},appName:e.appName}),t.createElement("div",{style:{margin:"12px"}}),r&&e.routes,t.createElement("div",{style:{margin:"auto"}}),!s&&e.notifications(),e.search({hideRoutes:()=>l(!1),showRoutes:()=>l(!0)}),t.createElement(Ut,{colors:e.colors,orgName:e.orgName,requestConnectedPeopleFetch:e.requestConnectedPeopleFetch,setUserMenuVisible:i,showOrgName:e.showOrgName}),t.createElement(It,{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}))};Ft.defaultProps={notifications:()=>null,search:()=>null,showOrgName:!0,useDummyNotifications:!1};const jt=e=>{let{active:n,colors:a,style:r=null}=e,l=Se(e,$t);const[o,i]=t.useState(!1),[c,s]=t.useState(!1);return t.createElement("a",xe({style:xe({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"},et,Qe,r),onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),onMouseDown:()=>s(!0),onMouseUp:()=>s(!1)},l))},Bt=["style"],Wt=["children","className","colors","style"];class qt extends t.Component{constructor(e){super(e),this.state={announcements:e.initialAnnouncements}}dismissAnnouncements(e){return this.setState(({announcements:t})=>{const n=t;return t[e]&&delete n[e],{announcements:n}}),ze(this.props.configuredFetch,`${d(this.props.env)("api")}/people/v2/me/platform_notifications/${e}/dismiss`,{method:"POST"})}render(){return t.createElement(t.Fragment,null,this.props.children({announcements:this.props.formatter(this.state.announcements)},{dismissAnnouncements:this.dismissAnnouncements.bind(this)}))}}qt.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 Gt extends t.Component{render(){const e=this.props,{style:n}=e,a=Se(e,Bt);return t.createElement(je,{render:e=>t.createElement("div",xe({style:xe({alignItems:"center",display:"flex",justifyContent:"space-between",paddingBottom:14,paddingLeft:-1!==["xs","sm"].indexOf(e)?16:24,paddingRight:18,paddingTop:14},n)},a))})}}class Jt extends t.Component{render(){const e=this.props,{children:n,colors:a,style:r}=e,l=Se(e,Wt);return t.createElement("div",xe({className:["__Topbar_PlatformAnnouncements_link"].join(" ").trim(),style:xe({backgroundColor:"#282828",color:"white",fontSize:"14px"},r)},l),t.createElement("style",null,`\n .__Topbar_PlatformAnnouncements_link { color: white }\n .__Topbar_PlatformAnnouncements_link a { color: ${a.base0} }\n .__Topbar_PlatformAnnouncements_link a:hover { color: ${a.base1} }\n .__Topbar_PlatformAnnouncements_link a:active { color: ${a.base2} }\n `),n)}}class Yt extends t.Component{render(){return t.createElement(Jt,{colors:this.props.colors},t.createElement(qt,{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 Xt(e){let n=xe({},(Ae(e),e));return t.createElement("button",xe({type:"button",style:{WebkitAppearance:"none",backgroundColor:"transparent",borderWidth:0,cursor:"pointer",margin:-8,padding:8}},n),t.createElement(pt,{fill:"white",style:{height:20,width:20}}))}function Kt(e){return t.createElement(Gt,null,t.createElement("span",{dangerouslySetInnerHTML:{__html:e.html}}),t.createElement(Xt,{onClick:e.onClick}))}Yt.defaultProps={configuredFetch:Te,renderItem:({announcement:e,actions:n})=>t.createElement(Kt,{key:e.id,html:e.data.html,onClick:()=>n.dismissAnnouncements(e.id)})};const Qt=["colors","html","onClick"],en=["children","className","colors","style"],tn=["style"];function nn(e){let{colors:n,html:a="",onClick:r=(e=>{})}=e,l=Se(e,Qt);const[o,i]=t.useState(!1);return o||!a?null:t.createElement(an,xe({colors:n},l),t.createElement(rn,null,t.createElement("span",{dangerouslySetInnerHTML:{__html:a}}),t.createElement(ln,{onClick:e=>{r(e),i(!0)}})))}class an extends t.Component{render(){const e=this.props,{children:n,className:a,colors:r,style:l}=e,o=Se(e,en);return t.createElement("div",xe({className:["Topbar_ProductAnnouncement",a].filter(Boolean).join(" ").trim(),style:xe({backgroundColor:r.base1},l)},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 rn extends t.Component{render(){const e=this.props,{style:n}=e,a=Se(e,tn);return t.createElement(je,{render:e=>t.createElement("div",xe({style:xe({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 ln(e){let n=xe({},(Ae(e),e));return t.createElement("button",xe({type:"button",style:{WebkitAppearance:"none",backgroundColor:"transparent",borderWidth:0,cursor:"pointer",margin:-8,padding:8}},n),t.createElement(pt,{fill:"white",style:{height:20,width:20}}))}const on=["env","url","style"];function cn(e){let{env:n,url:a="",style:r}=e,l=Se(e,on);const o=a||`${d(n)("people")}/static/no_photo_thumbnail_gray.svg`;return t.createElement("div",xe({style:xe({backgroundColor:"white",backgroundImage:`url(${o})`,backgroundPosition:"center",backgroundSize:"cover",borderRadius:"50%",height:"26px",marginLeft:"4px",width:"26px"},r)},l))}class sn 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 dn({env:e}){const n="accounts";return t.createElement("a",{style:{alignItems:"center",display:"flex",height:"48px",paddingLeft:"12px",paddingRight:"16px",textDecoration:"none"},"data-pendo":`app-switcher--change-app--${n}`,"data-turbolinks":!1,href:d(e)(n)+Ct(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(We,{color:Pt.lightNeutral45,key:"key2"})),t.createElement("div",{style:{color:Pt.lightNeutral45,fontSize:"12px",lineHeight:"48px",textDecoration:"none"}},"Account settings"))}sn.defaultProps={method:"localStorage"};const mn=({color:e=Pt.lightNeutral100,size:n=22,style:a={}})=>t.createElement("div",{style:a},t.createElement(pt,{fill:e,style:{height:`${n}px`,width:`${n}px`}}));function un({env:e,appName:t,userId:n}){var a,r,l;const o=d(e)("login")+`/people/AC${n}`,i=null==(a=window)||null==(r=a.location)||null==(l=r.pathname)?void 0:l.toString();if(!i)return o;const c=new URLSearchParams;return c.append("return",`${t}/${i}`),`${o}?${c.toString()}`}const pn=({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:hn}=v,gn={colors:xe({},hn({baseColor:"#2266f7",key:"primary"})),icons:{churchCenter:D,general:R,people:U,toolbar:$},id:"topbar"};function fn({appName:e,connectedPeople:n,env:a,hasConnectedPeople:r,linkToProfile:l,mfaConfigured:o,mfaEnabled:i,requestClearAppsCache:c,requestClearConnectedPeopleCache:s,requestSwitchConnectedPerson:m,requestUnlinkConnectedPeople:p,setUserMenuVisible:E,userAvatarPath:v,userId:y,userName:k}){return t.createElement(u,{theme:gn},t.createElement(g,{axis:"vertical",width:"100%"},t.createElement(g,{axis:"horizontal",alignItems:"start",distribution:"space-between"},t.createElement(g,{axis:"horizontal",spacing:2,padding:2,paddingRight:0,shrink:1},t.createElement(g,{shrink:0},t.createElement(cn,{env:a,url:v,style:{height:48,width:48}})),t.createElement(g,{spacing:1,shrink:1},t.createElement(f,{color:Pt.lightNeutral24,weight:700,truncate:!0},k),l&&t.createElement(b,{as:"a",href:`/people/AC${y}`,color:Pt.lightNeutral45,underline:!1},"My profile"),i&&t.createElement(b,{as:"a",href:un({appName:e,env:a,userId:y}),color:Pt.lightNeutral45,underline:!1},"My login settings",t.createElement(pn,{isActive:o})),t.createElement("form",{method:"POST",action:`${d(a)("login")}/logout`},t.createElement(h,{color:Pt.lightNeutral45,"data-turbolinks":!1,onClick:()=>{c(),s()},type:"submit"},"Log out")))),t.createElement(h,{color:Pt.lightNeutral45,icon:"general.x",onClick:()=>E(!1),padding:2,variant:"naked",title:"Close Menu"})),r&&t.createElement(t.Fragment,null,t.createElement(g,{backgroundColor:Pt.lightNeutral95,paddingVertical:1.5,paddingHorizontal:2,marginTop:1,borderBottom:`1px solid ${Pt.lightNeutral88}`},t.createElement(C,{color:Pt.lightNeutral62,fontWeight:500},"Linked Accounts")),t.createElement(w,{dividerColor:Pt.lightNeutral88,width:"100%"},Mt(n).map(({id:n,attributes:a})=>t.createElement(w.Item,{key:n,onClick:t=>{c(),s(),m(n,`${e}/`),t.preventDefault()},color:Pt.lightNeutral45,padding:2},t.createElement(f,{truncate:!0},a.organization_name))),t.createElement(w.Item,{onClick:e=>{c(),s(),p(),e.preventDefault()},color:Pt.danger47,padding:2,underline:!1},t.createElement(f,{size:3},"Unlink my accounts"))))))}const En=["active"],vn=({appName:e})=>{const n=e.replace(/[\s-]/,"");return t.createElement("div",{style:{alignItems:"center",display:"flex"}},t.createElement("div",{style:{marginRight:"6px"}},t.createElement(bt,{appName:n,size:20})),t.createElement(Ke,{appName:n,color:Pt.lightNeutral24,size:18}))},bn=e=>{var n,a;const[r,l]=t.useState(!1),[o,i]=t.useState(!1),[c,s]=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,C=e.apps.find(({name:e})=>"Accounts"===e),w=e.apps.find(({name:e})=>"Home"===e),y=[...e.apps].filter(({name:e})=>"Home"!==e&&"Accounts"!==e),k=Pt.lightNeutral88;return t.useEffect(()=>{l(!1)},[E&&(null==(n=E[0])||null==(a=n.props)?void 0:a.href)]),t.createElement(Ht,{style:xe({},e.style)},t.createElement("div",{style:{alignItems:"center",display:"flex",height:"48px",justifyContent:"center",paddingLeft:"16px",paddingRight:"16px"},onClick:()=>{e.requestAppsFetch(),e.requestConnectedPeopleFetch(),l(!1),i(e=>!e)}},t.createElement(Ye,{appName:e.appName.replace(/[\s-]/,""),colors:f,size:26})),t.createElement("div",{style:{left:0,position:"absolute",top:"48px",width:"100%"}},r&&e.routes),t.createElement(sn,{item:"Topbar:Small:Menus:Products:visibility",render:()=>t.createElement("div",{style:{MozUserSelect:"none",WebkitTapHighlightColor:"transparent",WebkitUserSelect:"none",backgroundColor:_e(Pt.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),s(!1)}},t.createElement(mn,{style:{position:"absolute",right:"17px",top:"12px"}}),t.createElement("div",{onClick:e=>{const{forcePropagation:t}=e;t||e.stopPropagation()},style:{backgroundColor:Pt.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:Pt.lightNeutral98,borderBottom:`1px solid ${k}`,display:"flex",height:"48px",paddingLeft:"16px",paddingRight:"16px"}},t.createElement("div",{style:xe({},tt)},t.createElement("a",{style:{alignItems:"center",display:"flex",height:"48px",paddingRight:"16px"},"data-pendo":`app-switcher--change-app--${null==w?void 0:w.name}`,"data-turbolinks":!1,href:w?d(e.env)("accounts")+Ct(null==w?void 0:w.name):void 0},t.createElement("div",{style:{alignItems:"center",display:"flex"}},t.createElement(vn,{appName:w?w.name:e.appName}))))),t.createElement("div",{style:xe({},tt,{WebkitOverflowScrolling:"touch",overflowY:"scroll"})},t.createElement("ul",{"data-pendo":"app-switcher",style:{margin:0,padding:0}},zt(y).map(({name:n},a)=>{const r=0===a,l=a===zt(y).length-1;return t.createElement("li",{key:n,style:{listStyleType:"none"}},t.createElement("a",{style:{alignItems:"center",display:"flex",height:"40px",paddingBottom:l?"4px":0,paddingLeft:"16px",paddingRight:"16px",paddingTop:r?"4px":0},"data-pendo":`app-switcher--change-app--${n}`,"data-turbolinks":!1,href:d(e.env)("accounts")+Ct(n)},t.createElement(vn,{appName:n})))})),C&&t.createElement("div",{style:{borderTop:`1px solid ${k}`}},t.createElement(dn,{env:e.env})))))}),t.createElement("div",{style:xe({},tt,{fontWeight:600,lineHeight:"48px",textAlign:"center"}),onClick:e.routes.length>0?()=>{i(!1),l(e=>!e)}:null},t.createElement(v,null,(x=b).charAt(0).toUpperCase()+x.slice(1)),e.routes.length>0&&t.createElement(dt,{colors:f,style:{marginLeft:"4px",verticalAlign:"middle"}})),t.createElement("button",{onClick:()=>s(!c),style:{background:"none",border:"none",margin:"0 12px",padding:0}},t.createElement(cn,{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(fn,{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:s,userAvatarPath:e.userAvatarPath,userId:h,userName:g}))));var x};bn.defaultProps={currentRouteComponent:e=>t.createElement("span",xe({},e)),linkToProfile:!0};const Cn=e=>{let{active:n}=e,a=Se(e,En);return t.createElement("a",xe({style:xe({backgroundColor:"#444",borderBottom:"1px solid #333",color:"#fff",display:"block",fontWeight:600,lineHeight:"47px",position:"relative",textAlign:"center",textDecoration:"none",textTransform:"capitalize",whiteSpace:"nowrap"},et,n&&{backgroundColor:"#333"})},a))},wn={domain:window.location.host.split(".").slice(-2).join("."),"max-age":2592e3},yn=Object.entries(wn).map(([e,t])=>`${e}=${t}`).join("; ");function kn({bottom:e="auto",children:n,hasShadow:a=!1,height:r="100%",id:l="toolbarDrawer",overflow:o="visible",position:i="absolute",width:c="100%"}){return t.createElement(g,xe({backgroundColor:"surface",elevation:a&&open?2:void 0,left:0,position:"absolute",zIndex:1},{bottom:e,height:r,id:l,overflow:o,position:i,width:c}),n)}function xn({children:e,closeDrawer:n}){return t.createElement(g,{alignment:"start",axis:"horizontal",color:"foreground",distribution:"space-between",padding:2,paddingTop:1},t.createElement(y,null,e),n&&t.createElement(h,{icon:{fill:Pt.lightNeutral12,name:"general.x",size:"md"},onClick:()=>n(),title:"Close",theme:!1,hover:{backgroundColor:Pt.lightNeutral95}}))}const An=["children"];function Sn(e){let{children:n}=e,a=Se(e,An);return t.createElement(k,xe({},a,{color:Pt.lightNeutral12,letterSpacing:".002em",level:2,lineHeight:"35px",weight:700}),n)}const Nn=e=>t.createElement(y,xe({backgroundColor:Pt.interaction66,height:1.5,pointerEvents:"none",position:"absolute",radius:"50%",width:1.5,zIndex:6},e)),Tn=["children"],Vn={bottom:{background:"linear-gradient(rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.07))",bottom:0},top:{background:"linear-gradient(rgba(0, 0, 0, 0.07), rgba(255, 255, 255, 0))",top:0}},zn=e=>{let{children:r}=e,l=Se(e,Tn);const[i,c]=a(!1),[s,d]=a(!1),m=o(null),u=o(null),p=o(null),h=()=>{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),r=null==u?void 0:u.current,l=null==p?void 0:p.current;r&&n.observe(r),l&&a.observe(l);const o=new ResizeObserver(h);return o.observe(e),()=>{r&&n.unobserve(r),l&&a.unobserve(l),o.unobserve(e)}},[]),t.createElement(g,{grow:1,position:"relative",shrink:1},i&&t.createElement(Mn,{edge:"top"}),s&&t.createElement(Mn,{edge:"bottom"}),t.createElement(g,xe({basis:2,grow:1,innerRef:m,overflow:"auto",role:"region",shrink:1,css:{overscrollBehavior:"contain"}},l),t.createElement(y,{innerRef:p}),r,t.createElement(y,{innerRef:u})))},Mn=({edge:e})=>t.createElement(y,xe({height:1,left:0,pointerEvents:"none",position:"absolute",right:0,role:"presentation",zIndex:10},Vn[e])),Zn=({activeIndex:e,children:n})=>{const a=t.Children.count(n),r=e<0?0:e>a-1?a-1:e;return t.createElement(g,{grow:1,overflow:"hidden",position:"relative"},t.Children.map(n,(n,a)=>{const l=a===r;return t.createElement(g,{"aria-hidden":!l,visibility:l?"visible":"hidden",height:"100%",key:a,opacity:l?1:0,pointerEvents:l?"auto":"none",position:"absolute",top:0,width:"100%",transform:l?"translateX(0)":a<e?"translateX(-100px)":"translateX(100px)",transition:"visibility 100ms 50ms ease-in-out, transform 200ms ease-in-out, opacity 100ms 50ms ease-in-out"},n)}))};var _n;!function(e){e.close="close",e.mount="mount",e.open="open",e.unmount="unmount"}(_n||(_n={}));const Hn={currentContent:null,open:!1},Pn=(e,t)=>{switch(t.type){case _n.mount:return xe({},e,{currentContent:t.payload.content});case _n.unmount:return xe({},e,{currentContent:null});case _n.open:return xe({},e,{open:!0});case _n.close:return xe({},e,{open:!1})}},Ln=["fields"],On=t.createContext({}),In=e=>{const t=[e.data].flat(),[n,...a]=t.map(({id:e,attributes:t,relationships:n})=>xe({id:e},((e={})=>Object.keys(e).reduce((t,n)=>{const{data:a}=e[n],r=Array.isArray(a);return xe({},t,{[`${n}_${r?"ids":"id"}`]:r?a.map(({id:e})=>e):a.id})},{}))(n),t));return Array.isArray(e.data)?n?[n,...a]:[]:n},Dn=({app:e,env:t})=>{const n=`${d(t)("api")}/${e}/v2`;return{delete:e=>ze(Ve,[n,e].join("/"),{method:"DELETE"}),get:async(e,t={})=>{let{fields:a={}}=t,r=Se(t,Ln);a=Object.entries(a).reduce((e,[t,n])=>xe({},e,{[`fields[${t}]`]:n}),{});const l=new URLSearchParams(xe({},a,r)),{json:o}=await ze(Te,[[n,e].join("/"),l].join("?"));return In(o)},patch:async(e,t)=>{const{json:a}=await ze(Ve,[n,e].join("/"),{data:{data:{attributes:t}},method:"PATCH"});return In(a)},post:async(e,t)=>{const{json:a}=await ze(Ve,[n,e].join("/"),{data:{data:{attributes:t}},method:"POST"});return In(a)}}},Rn=({children:e,env:n})=>{const a=r(()=>{const e=Dn({app:"services",env:n});return{chat:Dn({app:"chat",env:n}),services:e}},[n]);return t.createElement(On.Provider,{value:a},e)},Un=t.createContext({}),$n=({children:e,value:n})=>t.createElement(Un.Provider,{value:n},e),Fn=e=>{const{client:n}=W(),[{muted:a},r]=t.useState(()=>e.muteStatus());return t.useEffect(()=>{const t=()=>{r(e.muteStatus())};return n.on("notification.channel_mutes_updated",t),()=>n.off("notification.channel_mutes_updated",t)},[]),a},jn=()=>{},Bn="notification.mark_read",Wn=[Bn,"notification.mark_unread"],qn=()=>{const e=i(Un);if(!e)throw new Error("useChat must be used within a ChatProvider");return e},Gn=()=>i(On),Jn=()=>{const[e,n]=t.useState(null),a=null===e,r=Gn();return t.useEffect(()=>{r.chat.get("me/connected_people").then(e=>n(e))},[]),{loading:a,people:e,switchPerson:Yn}},Yn=(e,t,n)=>{ze(Ve,`${d(n)("api")}/login/v2/me/switch_connected_person`,{data:{data:{attributes:{id:e,return_path:t}}},method:"POST"}).then(({json:e})=>{window.location=e.meta.redirect_to})},Xn={plan_id:null,teams:[]},Kn={Services:Xn},Qn=["token"],ea={fontSize:"16px",fontWeight:600,lineHeight:"165%"},ta=({children:e})=>t.createElement(k,xe({level:2},ea),e),na=({children:e,title:n})=>t.createElement(g,{spacing:1},t.createElement(ta,null,n),t.createElement(t.Fragment,null,e)),aa={Services:({groups:e})=>{const n=["Team","PlanTeam"].reduce((t,n)=>e[n]?[...t,...e[n]]:t,[]);return t.createElement(na,{title:"Teams"},t.createElement(S,{spacing:1},n.map(e=>t.createElement(N,{key:e.source_identifier,size:"sm"},e.name))))}},ra=({groups:e})=>t.createElement(t.Fragment,null,Object.entries(e).reduce((e,[n,a])=>{const r=aa[n];return r?[...e,t.createElement(r,{key:n,groups:a})]:e},[])),la={badges:[]},oa={lg:48,md:36,sm:24},ia=({person:e,size:n="md"})=>(e=>void 0!==e.avatar)(e)?t.createElement(A,{source:e.avatar,size:n}):(e=>void 0!==e.image)(e)?t.createElement(q,{image:e.image,name:e.name,size:oa[n]}):null,ca=({person:e})=>t.createElement(e.child?da:sa,{person:e}),sa=({person:e})=>t.createElement(g,{alignment:"center",axis:"horizontal",spacing:1},t.createElement(ia,{person:e,size:"lg"}),t.createElement(g,{alignment:"start",spacing:.25},t.createElement(f,{truncate:!0},e.name),e.badges.length>0&&t.createElement(g,{alignment:"center",axis:"horizontal",spacing:.5},e.badges.map(({title:e})=>t.createElement(N,{key:e,size:"xs"},e))))),da=({person:e})=>t.createElement(g,{alignment:"center",axis:"horizontal",spacing:1},t.createElement(y,{opacity:.5},t.createElement(ia,{person:e,size:"lg"})),t.createElement(g,null,t.createElement(f,{color:"foreground",opacity:.75,truncate:!0},e.name),t.createElement(g,{alignment:"center",axis:"horizontal",spacing:.5},t.createElement(E,{name:"general.shieldExclamation",color:Pt.warning49}),t.createElement(f,{color:Pt.warning20,size:5},"Not eligible to chat")))),ma="18px 1fr auto",ua=({childPeople:e})=>{const[n,r]=a(!1),l=e.length,o=`${l} ${1===l?"member":"members"} under age 13`;return t.createElement(g,{background:Pt.warning94,marginBottom:.5,padding:1,radius:4},t.createElement(x,{alignment:"start",columns:ma,spacing:1},t.createElement(E,{color:Pt.warning49,marginTop:"1px",name:"general.shieldExclamation",size:"lg"}),t.createElement(f,{grow:1,color:"foreground",size:4},n?"Members under age 13 cannot chat. They will not see conversations or receive notifications.":o),t.createElement(h,{"aria-label":n?"Hide explanation":"Show explanation",icon:{name:n?"general.upCaret":"general.downCaret",size:"md"},onClick:()=>r(!n),size:"xs",theme:"warning",tooltip:n?"Hide explanation":"Show explanation",variant:"naked"})),t.createElement(T,{open:n},t.createElement(x,{alignment:"start",columns:ma,spacing:1},t.createElement(g,{gridColumnStart:2,paddingTop:1,spacing:1},e.map(e=>t.createElement(g,{alignment:"center",axis:"horizontal",key:e.id,spacing:1},t.createElement(ia,{person:e,size:"sm"}),t.createElement(f,{color:"foreground",size:4,weight:500},e.name)))))))},pa=({people:e})=>{const n=e.filter(e=>e.child);return t.createElement(na,{title:"People"},t.createElement(g,{spacing:1.5},n.length>0&&t.createElement(ua,{childPeople:n}),e.map(e=>t.createElement(ca,{key:e.id,person:e}))))},ha=({channel:e})=>{const n=Fn(e);return t.createElement(g,{axis:"horizontal",width:"100%"},t.createElement(f,{as:"label",display:"flex",grow:1},"Mute",t.createElement(g,{grow:1}),t.createElement(V,{isChecked:n,ariaLabel:"Mute Channel",onClick:()=>n?e.unmute():e.mute()})))},ga=({channel:e})=>{const[n,a]=t.useState(!1),[r,l]=t.useState(!1),{switchToChannelListView:o}=qn(),i=Gn();return t.createElement(y,null,!n&&t.createElement(h,{onClick:()=>a(!0),paddingHorizontal:0,paddingVertical:0,theme:!1},t.createElement(f,{color:"error"},"Delete conversation")),t.createElement(T,{open:n},t.createElement(g,{backgroundColor:"error-lightest",padding:2,radius:4,spacing:1},t.createElement(f,{size:4},"Deleting this conversation will remove it for everyone. This cannot be undone. Are you sure?"),t.createElement(g,{distribution:"end",alignment:"end",axis:"horizontal",spacing:1},t.createElement(h,{fontWeight:400,onClick:()=>a(!1),size:"sm",theme:"dark",variant:"naked"},"Cancel"),t.createElement(h,{disabled:r,fontWeight:400,onMouseDown:e=>e.preventDefault(),onClick:()=>{l(!0),i.chat.delete(`me/conversations/${e.id}`).then(o).catch(jn)},size:"sm",theme:"error",title:"Yes, delete",spinner:r})))))},fa=({channel:e,isRemovable:n})=>t.createElement(na,{title:"Settings"},t.createElement(g,{spacing:1},t.createElement(ha,{channel:e}),n&&t.createElement(ga,{channel:e}))),Ea=({channel:e,isEditable:n})=>{const[a,r]=t.useState(e.data.name),l=Gn();return t.createElement(na,{title:"Title"},t.createElement(z,{size:"lg",value:a,maxLength:255,disabled:!n,onChange:e=>r(e.target.value),onBlur:()=>{a!==e.data.name&&l.chat.patch(`me/conversations/${e.id}`,{title:a}).catch(jn)},onKeyDown:e=>"Enter"===e.key&&e.target.blur()}))},va=({channel:e})=>{const n=(e=>{const[n,a]=t.useState([]),r=Gn();return t.useEffect(()=>{e&&r.chat.get(`me/conversations/${e.id}/groups`).then(a).catch(jn)},[e]),n.reduce((e,t)=>{var n,a,r;return e[n=t.source_app_name]||(e[n]={}),(a=e[t.source_app_name])[r=t.source_type]||(a[r]=[]),e[t.source_app_name][t.source_type].push(t),e},{})})(e),a=(e=>{const[n,a]=t.useState({}),r=t.useMemo(()=>e?Object.values(e.state.members).reduce((e,t)=>t.user.pco_deleted?xe({},e,{[t.user.id]:la}):e,{}):{},[e]),l=Gn();return t.useEffect(()=>{e&&l.chat.get(`me/conversations/${e.id}/members`).then(e=>e.reduce((e,t)=>xe({},e,{[t.stream_member_id]:t}),{})).then(e=>xe({},r,e)).then(a).catch(jn)},[e]),Object.values(e.state.members).reduce((e,t)=>t.user&&n[t.user.id]?[...e,xe({},t.user,n[t.user.id])]:e,[])})(e),r=(e=>{const n=Gn(),[a,r]=t.useState({canDelete:!1,canUpdate:!1});return t.useEffect(()=>{n.chat.get(`/me/conversations/${e.id}/member_ability`).then(e=>r({canDelete:e.can_delete,canUpdate:e.can_update}))},[e]),a})(e);return t.createElement(zn,null,t.createElement(g,{padding:2,spacing:4,grow:1},t.createElement(Ea,{channel:e,isEditable:r.canUpdate}),t.createElement(fa,{channel:e,isRemovable:r.canDelete}),Object.keys(n).length>0&&t.createElement(ra,{groups:n}),t.createElement(pa,{people:a})))},ba=()=>{const{channel:e}=W(),{isChannelDetailsViewActive:n,switchToChannelView:a}=qn();return e&&n?t.createElement(t.Fragment,null,t.createElement(g,{alignment:"center",axis:"horizontal",spacing:1,padding:2,paddingTop:1},t.createElement(h,{"aria-label":"Switch to chat list",color:Pt.lightNeutral12,icon:"general.leftChevron",onClick:a,size:"sm",title:"Back to chat list",variant:"naked"}),t.createElement(Sn,{truncate:!0},"Conversation details")),t.createElement(va,{channel:e})):null},Ca=()=>t.createElement(N,{color:"hsla(221, 89%, 93%, 1)",radius:"pill",size:"xs"},t.createElement(f,{color:"hsla(221, 91%, 55%, 1)"},"Beta")),wa=()=>t.createElement(g,{alignment:"center",distribution:"center",padding:4,paddingTop:"54px",width:"100%"},t.createElement(ya,null),t.createElement(k,{color:"foreground",fontWeight:500,marginTop:1,size:3},"No conversations")),ya=()=>t.createElement("svg",{width:"162",height:"124",viewBox:"0 0 162 124",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M157.354 67.5522C151.241 85.6769 138.257 101.123 124.335 110.111C110.102 119.278 94.9458 121.54 77.5441 117.715C60.3357 113.846 43.3207 105.974 29.2803 98.519C15.344 90.6768 4.35267 83.5043 1.63086 72.2247C-1.04633 61.2576 4.81374 46.0644 18.8987 31.0943C32.835 16.3773 54.9962 2.71679 81.3665 0.469802C107.543 -2.16409 131.594 6.57091 145.381 19.3088C159.526 32.1211 163.437 49.5613 157.369 67.5522H157.354Z",fill:"#EDF6FB"}),t.createElement("g",{opacity:"0.2"},t.createElement("path",{opacity:"0.2",d:"M102.204 121.658C88.8481 124.173 75.9678 121.851 62.6562 114.947C47.0244 106.747 32.642 94.7534 20.9962 83.9054C9.55863 72.7299 0.798274 62.9533 1.08087 51.3463C1.25935 43.147 6.37575 33.9656 15.85 25.4092",stroke:"#BAC7D3",strokeWidth:"1.48",strokeMiterlimit:"10"}),t.createElement("path",{opacity:"0.2",d:"M152.714 87.1641C143.909 100.408 130.985 110.631 117.792 116.628",stroke:"#BAC7D3",strokeWidth:"1.48",strokeMiterlimit:"10"}),t.createElement("path",{opacity:"0.2",d:"M36.5986 11.6C53.108 3.53464 74.4809 -1.27187 96.6421 2.6864C122.611 6.91253 143.582 21.5701 153.607 37.4478C160.761 48.5191 162.62 60.4683 159.63 72.0009",stroke:"#BAC7D3",strokeWidth:"1.48",strokeMiterlimit:"10"})),t.createElement("path",{d:"M108.125 25.5668H52.4657C49.4438 25.4274 46.4893 26.4961 44.2438 28.5407C41.9982 30.5854 40.6427 33.441 40.4717 36.4876V72.233C40.6427 75.2796 41.9982 78.1352 44.2438 80.1799C46.4893 82.2245 49.4438 83.2931 52.4657 83.1538H64.7654L80.2729 96.7441L95.7804 83.1538H108.125C111.147 83.2931 114.102 82.2245 116.347 80.1799C118.593 78.1352 119.948 75.2796 120.119 72.233V36.4876C119.948 33.441 118.593 30.5854 116.347 28.5407C114.102 26.4961 111.147 25.4274 108.125 25.5668Z",fill:"#48A5E5"}),t.createElement("path",{d:"M64.8701 59.3043C62.3848 59.3043 60.3701 57.2886 60.3701 54.8021C60.3701 52.3155 62.3848 50.2998 64.8701 50.2998C67.3554 50.2998 69.3701 52.3155 69.3701 54.8021C69.3701 57.2886 67.3554 59.3043 64.8701 59.3043Z",fill:"#EEF5FD"}),t.createElement("path",{d:"M79.9258 59.3043C77.4405 59.3043 75.4258 57.2886 75.4258 54.8021C75.4258 52.3155 77.4405 50.2998 79.9258 50.2998C82.4111 50.2998 84.4258 52.3155 84.4258 54.8021C84.4258 57.2886 82.4111 59.3043 79.9258 59.3043Z",fill:"#EEF5FD"}),t.createElement("path",{d:"M95.0615 59.3043C92.5762 59.3043 90.5615 57.2886 90.5615 54.8021C90.5615 52.3155 92.5762 50.2998 95.0615 50.2998C97.5468 50.2998 99.5615 52.3155 99.5615 54.8021C99.5615 57.2886 97.5468 59.3043 95.0615 59.3043Z",fill:"#EEF5FD"}),t.createElement("path",{d:"M124.007 65.7374H96.4523C94.9563 65.6685 93.4937 66.1975 92.382 67.2097C91.2703 68.2219 90.5993 69.6355 90.5146 71.1438V88.8395C90.5993 90.3477 91.2703 91.7614 92.382 92.7736C93.4937 93.7858 94.9563 94.3148 96.4523 94.2458H102.541L110.218 100.974L117.895 94.2458H124.007C125.503 94.3148 126.965 93.7858 128.077 92.7736C129.188 91.7614 129.859 90.3477 129.944 88.8395V71.1438C129.859 69.6355 129.188 68.2219 128.077 67.2097C126.965 66.1975 125.503 65.6685 124.007 65.7374Z",fill:"#79CAF2"}),t.createElement("path",{d:"M102.594 82.4391C101.363 82.4391 100.366 81.4412 100.366 80.2103C100.366 78.9793 101.363 77.9814 102.594 77.9814C103.824 77.9814 104.821 78.9793 104.821 80.2103C104.821 81.4412 103.824 82.4391 102.594 82.4391Z",fill:"#EEF5FD"}),t.createElement("path",{d:"M110.047 82.4391C108.816 82.4391 107.819 81.4412 107.819 80.2103C107.819 78.9793 108.816 77.9814 110.047 77.9814C111.277 77.9814 112.274 78.9793 112.274 80.2103C112.274 81.4412 111.277 82.4391 110.047 82.4391Z",fill:"#EEF5FD"}),t.createElement("path",{d:"M117.54 82.4391C116.31 82.4391 115.312 81.4412 115.312 80.2103C115.312 78.9793 116.31 77.9814 117.54 77.9814C118.77 77.9814 119.768 78.9793 119.768 80.2103C119.768 81.4412 118.77 82.4391 117.54 82.4391Z",fill:"#EEF5FD"})),ka=({appName:e,env:r,currentPersonId:l})=>{const{people:o,loading:i,switchPerson:c}=Jn(),[s,d]=a(o),[m,u]=a(null),[p,h]=a(!1),f=null==s?void 0:s.some(e=>e.id!==`${l}`&&e.unread_count);return n(()=>{if(o){d(o);const e=o.find(e=>e.id===`${l}`);u(e)}},[o]),t.createElement(g,{paddingHorizontal:2},t.createElement(M,{emptyValue:"Linked Accounts",disabled:p,matchWidths:!0,onChange:({value:t})=>{const n=s.find(e=>e.id===t);u(n),n.id!==`${l}`&&(h(!0),c(n.id,`${e}/`,r))},value:null==m?void 0:m.id,renderValue:()=>t.createElement(g,{alignment:"center",axis:"horizontal",distribution:"space-between",spacing:1},m.organization_name,f&&!p&&t.createElement(Nn,{right:3.5,top:1.25}),p&&t.createElement(Z,{key:"loader",position:"absolute",height:1.5,width:1.5,zIndex:6,right:3.5,top:1.25}))},t.createElement(Aa,null),null==s?void 0:s.map(e=>t.createElement(M.Option,{value:e.id,key:e.id},t.createElement(g,{alignment:"center",axis:"horizontal",distribution:"space-between",spacing:1},e.organization_name,e.unread_count>0&&t.createElement(Nn,{right:1.5,top:1.25})))),i&&t.createElement(xa,null)))},xa=()=>t.createElement(_.Item,{alignment:"center",distribution:"center",paddingBottom:2,paddingTop:2},t.createElement(Z,null)),Aa=()=>t.createElement(g,{axis:"horizontal",backgroundColor:Pt.interaction97,marginBottom:.5,marginHorizontal:1.25,marginTop:1,padding:1,radius:4,spacing:1},t.createElement(E,{color:Pt.interaction66,marginTop:"3px",name:"general.outlinedExclamationCircle"}),t.createElement(f,{size:5},"Make sure any changes outside of chat are saved before switching accounts."));function Sa(){return Sa=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},Sa.apply(this,arguments)}var Na={À:"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"},Ta=Object.keys(Na).join("|"),Va=new RegExp(Ta,"g"),za=new RegExp(Ta,""),Ma=function(e){return e.replace(Va,function(e){return Na[e]})},Za=Ma,_a=Ma;Za.has=function(e){return!!e.match(za)},Za.remove=_a;var Ha={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};La.rankings=Ha;var Pa=function(e,t){return String(e.rankedValue).localeCompare(String(t.rankedValue))};function La(e,t,n){void 0===n&&(n={});var a=n.keys,r=n.threshold,l=void 0===r?Ha.MATCHES:r,o=n.baseSort,i=void 0===o?Pa: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,r=e.keyIndex,l=t.rank,o=t.keyIndex;return a===l?r===o?n(e,t):r<o?-1:1:a>l?-1:1}(e,t,i)})}:c,d=e.reduce(function(e,r,o){var i=function(e,t,n,a){if(!t)return{rankedValue:e,rank:Oa(e,n,a),keyIndex:-1,keyThreshold:a.threshold};var r=function(e,t){for(var n=[],a=0,r=t.length;a<r;a++)for(var l=t[a],o=Ua(l),i=Da(e,l),c=0,s=i.length;c<s;c++)n.push({itemValue:i[c],attributes:o});return n}(e,t);return r.reduce(function(e,t,r){var l=e.rank,o=e.rankedValue,i=e.keyIndex,c=e.keyThreshold,s=t.itemValue,d=t.attributes,m=Oa(s,n,a),u=o,p=d.minRanking,h=d.maxRanking;return m<p&&m>=Ha.MATCHES?m=p:m>h&&(m=h),m>l&&(l=m,i=r,c=d.threshold,u=s),{rankedValue:u,rank:l,keyIndex:i,keyThreshold:c}},{rankedValue:e,rank:Ha.NO_MATCH,keyIndex:-1,keyThreshold:a.threshold})}(r,a,t,n),c=i.keyThreshold;return i.rank>=(void 0===c?l:c)&&e.push(Sa({},i,{item:r,index:o})),e},[]);return s(d).map(function(e){return e.item})}function Oa(e,t,n){return e=Ia(e,n),(t=Ia(t,n)).length>e.length?Ha.NO_MATCH:e===t?Ha.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase())===(t=t.toLowerCase())?Ha.EQUAL:e.startsWith(t)?Ha.STARTS_WITH:e.includes(" "+t)?Ha.WORD_STARTS_WITH:e.includes(t)?Ha.CONTAINS:1===t.length?Ha.NO_MATCH:(a=e,r="",a.split(" ").forEach(function(e){e.split("-").forEach(function(e){r+=e.substr(0,1)})}),r).includes(t)?Ha.ACRONYM:function(e,t){var n=0,a=0;function r(e,t,a){for(var r=a,l=t.length;r<l;r++)if(t[r]===e)return n+=1,r+1;return-1}var l=r(t[0],e,0);if(l<0)return Ha.NO_MATCH;a=l;for(var o=1,i=t.length;o<i;o++)if(!((a=r(t[o],e,a))>-1))return Ha.NO_MATCH;return Ha.MATCHES+n/t.length*(1/(a-l))}(e,t);var a,r}function Ia(e,t){return e=""+e,t.keepDiacritics||(e=Za(e)),e}function Da(e,t){var n;if("object"==typeof t&&(t=t.key),"function"==typeof t)n=t(e);else if(null==e)n=null;else if(Object.hasOwnProperty.call(e,t))n=e[t];else{if(t.includes("."))return function(e,t){for(var n=e.split("."),a=[t],r=0,l=n.length;r<l;r++){for(var o=n[r],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 Ra={maxRanking:Infinity,minRanking:-Infinity};function Ua(e){return"string"==typeof e?Ra:Sa({},Ra,e)}const $a={fontSize:"16px",fontWeight:400,lineHeight:"165%"},Fa=(e,t)=>{const[n,a,r]=e.order,[l,o,i]=t.order;return n-l||a.localeCompare(o)||r.localeCompare(i)},ja=({disabled:e,spinner:t}={})=>{const n=xe({},$a,{backgroundColor:Pt.interaction55,color:t?"transparent":"surface",spinner:t?{color:Pt.interaction55}:void 0});return xe({},n,e?{backgroundColor:Pt.lightNeutral81,spinner:t?{color:Pt.lightNeutral81}:void 0}:{active:{backgroundColor:Pt.interaction45},focus:{backgroundColor:Pt.interaction55},hover:{backgroundColor:Pt.interaction50}})},Ba=()=>t.createElement(g,{alignment:"center",spacing:2,padding:2,paddingTop:"10%"},t.createElement(E,{name:"general.exclamationTriangle",color:"warning",size:"xl"}),t.createElement(f,{color:"foregroundSecondary",align:"center"},"An error occured while connecting to the chat, please try again.")),Wa=e=>{const{children:n,error:a=null,loading:r}=e,{switchToNewChatShortcutsView:l}=qn(),o=(()=>{const[e,n]=t.useState({}),a=Gn();return t.useEffect(()=>{a.chat.get("me/app_grants").then(e=>e.reduce((e,t)=>xe({},e,{[t.app_name]:t}),{})).then(n)},[]),{canCreateChat:t=>e[t]&&e[t].create_conversations}})();return a?t.createElement(Ba,null):r?null:t.createElement(g,{grow:1,shrink:1},t.createElement(zn,null,n),t.createElement(p,null),t.createElement(g,{padding:2,alignment:"stretch"},o.canCreateChat("Services")&&t.createElement(h,xe({"aria-label":"Switch to new conversation",onClick:l},ja()),"New conversation")))},qa={groups:"Groups",services:"Services"},Ga=({appName:e,channel:n})=>{let a,r;switch(e){case"Groups":{var l;const t=n.data[e];var o;a="Group",null!=t&&null!=(l=t.names)&&l.length&&(r=null==(o=t.names)?void 0:o.join(", "));break}case"Services":{const t=n.data[e];a=null!=t&&t.dates?"Plan":"Team",null!=t&&t.dates&&(r=t.dates);break}}return t.createElement(H,{radius:4,spacing:"0.25px",className:"channel-meta",maxWidth:"100%"},t.createElement(g,{alignment:"center",axis:"horizontal",backgroundColor:Pt.lightNeutral95,borderColor:Pt.lightNeutral95,borderWidth:1,distribution:"center",padding:.5,paddingHorizontal:1,spacing:.5},t.createElement(bt,{appName:e,size:15}),t.createElement(f,{lineHeight:"13px",size:5,weight:500},a)),r&&t.createElement(g,{alignment:"center",borderColor:Pt.lightNeutral95,borderLeftWidth:0,borderWidth:1,distribution:"center",padding:.5,paddingHorizontal:1,shrink:1},t.createElement(P,{title:r,openDelay:800},t.createElement(f,{color:"foregroundSecondary",lineHeight:"13px",size:5,truncate:!0,maxWidth:"100%"},r))))},Ja=({channel:e})=>{var n;if(null==e||null==(n=e.data)||!n.pco_apps)return null;const a=e.data.pco_apps.map(n=>t.createElement(Ga,{key:n,appName:qa[n],channel:e}));return t.createElement(g,{axis:"horizontal",maxWidth:"calc(100% + 24px)"},a)},Ya=e=>{var t;return null==(t=e.user)?void 0:t.image},Xa=({member:e,size:n=40})=>t.createElement(q,{image:Ya(e),shape:"square",size:n}),Ka=({members:e})=>{let n=null;return 1===e.length&&(n=t.createElement(Xa,{member:e[0]})),2===e.length&&(n=t.createElement(t.Fragment,null,t.createElement("div",null,t.createElement(Xa,{member:e[0]})),t.createElement("div",{style:{marginLeft:"-20px"}},t.createElement(Xa,{member:e[1]})))),3===e.length&&(n=t.createElement(t.Fragment,null,t.createElement("div",null,t.createElement(Xa,{member:e[0]})),t.createElement("div",{style:{marginLeft:"-20px"}},t.createElement(Xa,{member:e[1],size:20}),t.createElement(Xa,{member:e[2],size:20})))),e.length>=4&&(n=t.createElement(t.Fragment,null,t.createElement("div",null,t.createElement(Xa,{member:e[e.length-4],size:20}),t.createElement(Xa,{member:e[e.length-3],size:20})),t.createElement("div",null,t.createElement(Xa,{member:e[e.length-2],size:20}),t.createElement(Xa,{member:e[e.length-1],size:20})))),t.createElement("div",{className:"str-chat__avatar-group"},n)},Qa=({unread:e})=>{if(e<1)return null;const n=e<=99?e.toString():"99+";return t.createElement(N,{title:n,size:"xs",color:Pt.interaction66,radius:"pill",minWidth:3})},er=({channel:e,lastMessage:n,setActiveChannel:a,unread:r})=>{const{client:l}=W(),{setActionsOpenForChannel:o,actionsOpenForChannel:i,switchToChannelView:c}=qn(),s=Fn(e),{isUnread:d,isUnreadable:m,markRead:u,markUnread:p,unreadCount:h}=((e,n)=>{const{client:a}=W(),[r,l]=t.useState(n);t.useEffect(()=>{l(n)},[n]),t.useEffect(()=>{const t=t=>{var n,r;if(t.cid!==e.cid)return;if((null==(n=t.user)?void 0:n.id)!==(null==(r=a.user)?void 0:r.id))return;const o=t.type===Bn?0:e.countUnread();l(o)};return Wn.forEach(e=>a.on(e,t)),()=>Wn.forEach(e=>a.off(e,t))},[]);const o=t.useMemo(()=>((e,t)=>{for(let t=e.length-1;t>=0;t--)if((null==(n=e[t].user)?void 0:n.id)!==a.userID)return e[t];var n})(e.state.latestMessages),[r]),i=Boolean(null==o?void 0:o.id);return{isUnread:Boolean(r),isUnreadable:i,markRead:()=>e.markRead(),markUnread:()=>i&&e.markUnread({message_id:o.id}),unreadCount:r}})(e,r),v=i===e.id,b=t=>{"actions-dropdown"!==t.target.getAttribute("data-type")&&(a(e),c())},C=Object.values(e.state.members).filter(({user:e})=>e.id!==l.userID),w=e.data.name;return t.createElement(x,{alignment:"start","aria-label":`Select Channel: ${w||""}`,backgroundColor:v?"surfaceTertiary":"surface",borderBottomColor:"separatorTertiary",borderBottomWidth:1,columns:"auto 1fr auto",cursor:"pointer",css:{"&:hover":{".actions-dropdown":{visibility:"visible"},".channel-meta > *":{borderColor:Pt.lightNeutral88},backgroundColor:"surfaceTertiary"}},minHeight:10,onClick:b,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||b(e)},padding:1,paddingHorizontal:2,radius:0,role:"button",spacing:1,tabIndex:0,width:"100%"},t.createElement(Ka,{members:C}),t.createElement(g,{height:"100%",alignment:"start",paddingRight:1},t.createElement(k,{level:4,maxWidth:"100%",truncate:!0,weight:500},w),t.createElement(f,{color:"foregroundSecondary",css:{WebkitBoxOrient:"vertical",WebkitLineClamp:"2",display:"-webkit-box",overflow:"hidden",textOverflow:"ellipsis"},lineHeight:"1.35",maxWidth:"100%",size:4,textAlign:"left"},(e=>{var t,n;if(!e)return"Empty conversation";const a=null==(t=e.user)?void 0:t.name,r=null==(n=e.attachments)?void 0:n.length;return`${a}: ${(e.deleted_at?"Message deleted":e.text)||(1===r?"1 attachment":`${r} attachments`)}`})(n)),t.createElement(g,{basis:.5,grow:1}),t.createElement(Ja,{channel:e})),t.createElement(g,{alignment:"end",minWidth:6,height:"100%"},t.createElement(f,{color:"foregroundSecondary",size:5},(e=>e.state.last_message_at?ce.date(e.state.last_message_at,{style:"abbreviated",year:!1}):"")(e)),t.createElement(g,{alignment:"end",alignSelf:"stretch",grow:1},s?t.createElement(E,{name:"general.bellMuted"}):t.createElement(Qa,{unread:h})),t.createElement(y,{onClick:e=>e.stopPropagation()},t.createElement(L,{alignSelf:"end",className:"actions-dropdown","data-type":"actions-dropdown",icon:{name:"people.importProgress",size:"lg"},radius:"circle",iconRight:null,lockScrollWhileOpen:!0,onClose:()=>o(null),onOpen:()=>o(e.id),placement:"top-end",popoverProps:{offset:4,shouldFlip:!0},right:"1.5px",size:"xs",theme:"dark",title:"Chat actions",variant:"naked",visibility:v?"visible":"hidden"},t.createElement(L.Item,{disabled:!(d||m),onSelect:d?u:p},t.createElement(f,null,"Mark as "+(d?"Read":"Unread"))),t.createElement(L.Item,{onSelect:()=>s?e.unmute():e.mute()},s?"Unmute":"Mute")))))},tr=["status"],nr=({client:e,closeDrawer:r,env:o,appName:i,currentPersonId:c})=>{const s=(()=>{const[e,t]=a(!0),{channelsQueryState:r}=W("ChannelList"),{queryInProgress:l}=r;return n(()=>{t(null!=l)},[l]),e})(),{hasConnectedPeople:m}=Zt(),u=(({streamUserId:e,env:t})=>{const r={members:{$in:[e]},type:"messaging"},l=xe({},r,{pco_apps:{$contains:"services"}}),[o,i]=a(l),[c,s]=a(!0),{groupsMigrationStatus:m}=(({env:e})=>{const[t,r]=a("pending"),[l,o]=a(!1),[i,c]=a(!1),s=()=>{o(!0);const t=`fields[GroupsMigration]=${tr.join(",")}`;ze(Ve,`${d(e)("api")}/chat/v2/groups_migration?${t}`).then(({json:e,ok:t})=>{var n,a;t?r((null==e||null==(n=e.data)||null==(a=n.attributes)?void 0:a.status)||"pending"):c(!0)}).catch(()=>{c(!0)}).finally(()=>{o(!1)})};return n(()=>{s()},[]),{groupsMigrationStatus:t,loading:l,error:i,refresh:s}})({env:t});return n(()=>{s("completed"!==m)},[m]),n(()=>{i(c?l:r)},[c]),o})({streamUserId:e.userID,env:o}),p=l(async(t,n)=>{const a=n.channel;if(null!=a&&a.id)try{t(await e.queryChannels(u))}catch(e){console.error(e)}},[e.userID]);return t.createElement(t.Fragment,null,t.createElement(xn,{closeDrawer:r},t.createElement(g,{axis:"horizontal",alignment:"center",spacing:1},t.createElement(Sn,null,"Chat"),t.createElement(Ca,null),s&&t.createElement(Z,{color:"hsl(0 0% 62%)",thickness:2,trackColor:"hsl(0 0% 97%)"}))),t.createElement(g,{spacing:2,grow:1},m&&t.createElement(ka,{env:o,appName:i,currentPersonId:c}),t.createElement(G,{setActiveChannelOnMount:!1,EmptyStateIndicator:wa,filters:u,onMessageNew:p,onAddedToChannel:p,List:Wa,Paginator:J,Preview:er})))},ar=()=>t.createElement(g,{alignment:"center",distribution:"center",height:"100%",spacing:1},t.createElement(E,{color:Pt.lightNeutral81,name:"general.outlinedTextMessage",size:"64px"}),t.createElement(f,{color:"foregroundTertiary"},"No conversation")),rr=({channel:e,closeDrawer:a,setOverflowBottom:r,setOverflowTop:l,switchToChannelDetailsView:i,switchToChannelListView:c,title:s})=>{const{headerRef:d}=(({setOverflowBottom:e,setOverflowTop:t})=>{const{listElement:a,scrollToBottom:r}=Y(),l=o(null);return n(()=>{const t=new ResizeObserver(()=>{a&&e(a.scrollHeight-a.clientHeight>a.scrollTop+1)});return t.observe(a),()=>t.unobserve(a)},[a,e]),n(()=>{var n;const{scrollTop:o,scrollHeight:i,clientHeight:c}=a;t(o>0),e(i-c>o+1);const s=null==l||null==(n=l.current)?void 0:n.offsetHeight;a.style.marginTop=`${s}px`,r()},[a]),n(()=>{const n=()=>{const{scrollTop:n,scrollHeight:r,clientHeight:l}=a;t(n>0),e(r-l>n+1)};return a.addEventListener("scroll",n),()=>a.removeEventListener("scroll",n)},[a,t,e]),{headerRef:l}})({setOverflowBottom:r,setOverflowTop:l});return t.createElement(lr,{channel:e,closeDrawer:a,innerRef:d,switchToChannelDetailsView:i,switchToChannelListView:c,title:s})},lr=({channel:e,closeDrawer:n,switchToChannelDetailsView:a,switchToChannelListView:r,title:l,innerRef:o=null})=>t.createElement(g,{axis:"horizontal",backgroundColor:"surface",innerRef:o,left:0,padding:2,paddingTop:1,position:"absolute",right:0,spacing:1,top:0,zIndex:5},t.createElement(h,{alignSelf:"baseline","aria-label":"Switch to chat list",icon:{color:Pt.lightNeutral12,name:"general.leftChevron"},marginTop:.25,onClick:r,size:"md",title:"Back to chat list",variant:"naked"}),t.createElement(g,{shrink:1},t.createElement(Sn,{truncate:!0},l),t.createElement(Ja,{channel:e})),t.createElement(g,{alignment:"start",axis:"horizontal",marginLeft:"auto",spacing:.25},t.createElement(h,{"aria-label":"Switch to conversation details",icon:{color:Pt.lightNeutral12,name:"general.cog"},onClick:a,size:"md",title:"Conversation details",variant:"naked"}),t.createElement(h,{"aria-label":"Close drawer",icon:{color:Pt.lightNeutral12,name:"general.x"},onClick:n,size:"md",title:"Close drawer",variant:"naked"})));de({data:se});const or=me,ir=()=>{const{handleSubmit:e,isUploadEnabled:n,maxFilesLeft:r,numberOfUploads:l,text:o,uploadNewFiles:i}=X(),[c,s]=a(!1),{multipleUploads:d}=K(),{getRootProps:m,isDragActive:u,isDragReject:p}=pe({disabled:!n||0===r,multiple:d,noClick:!0,onDrop:i}),{isChildOfModal:f,ref:E}=dr(),v=mr(),b=!l&&!o.length;return t.createElement(x,{alignment:"end",borderColor:"separatorTertiary",borderTopWidth:f?0:1,columns:"auto 1fr auto",innerRef:E,padding:2,spacing:1},t.createElement(cr,{isUploadEnabled:n,maxFilesLeft:r,multipleUploads:d,uploadNewFiles:i}),t.createElement(g,xe({},m({borderColor:"separatorTertiary",borderWidth:1,className:f?"is-modal-child":"",outline:c?Pt.interaction66:"none",outlineOffset:1,outlineStyle:c?"solid":"none",position:"relative",radius:8,refKey:"innerRef"})),u&&t.createElement(sr,{isDragReject:p}),n&&!!l&&t.createElement(Q,null),t.createElement(g,{alignment:"end",axis:"horizontal",position:"relative",spacing:.5},t.createElement(y,{grow:1,innerRef:v},t.createElement(ee,{placeholder:"Send a message",onFocus:()=>s(!0),onBlur:e=>"blur"===e.type&&s(!1)})),t.createElement(y,{marginBottom:1.25,marginRight:1},t.createElement(ge,{pickerProps:{previewPosition:"none",theme:"light"}})))),t.createElement(h,xe({className:"focus-visible",disabled:b,icon:{color:"surface",name:"general.upArrow"},marginBottom:"10px",onClick:e,radius:"circle",size:"sm",title:f?"Save":"Send",tabIndex:0},ja({disabled:b}))))},cr=({isUploadEnabled:e,maxFilesLeft:n,multipleUploads:a,uploadNewFiles:r})=>{const l=t.useMemo(()=>ue(),[]),o=document.getElementById(l);return t.createElement(y,{marginBottom:1.5},t.createElement("label",{htmlFor:l,tabIndex:0,onKeyDown:e=>{!o||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),o.click())}},t.createElement(E,{color:Pt.lightNeutral45,css:{"&:active":{fill:Pt.lightNeutral12},"&:hover":{fill:Pt.lightNeutral24}},cursor:"pointer",name:"general.paperclip",size:"20px"})),t.createElement(he,{"aria-label":"File upload",className:"file-input",disabled:!e||0===n,id:l,multiple:a,onFileChange:r}))},sr=({isDragReject:e})=>t.createElement(g,{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(f,{color:e?"error-dark":"success-darker",size:4,weight:600},e?"Some of the files will not be accepted":"Drop your files here")),dr=()=>{const[e,t]=a(!1),r=o(null);return n(()=>{const e=document.querySelector(".str-chat__modal");t(null==e?void 0:e.contains(r.current))},[]),{isChildOfModal:e,ref:r}},mr=()=>{const e=t.useRef(null);return n(()=>{if(e.current){var t,n,a;const r=null==(t=e.current)?void 0:t.querySelector("textarea");null==r||r.focus(),null==r||r.setSelectionRange(null==r||null==(n=r.value)?void 0:n.length,null==r||null==(a=r.value)?void 0:a.length)}},[]),e},ur=[{Component:()=>t.createElement(t.Fragment,null,"❤️"),name:"Love",type:"heart"},{Component:()=>t.createElement(t.Fragment,null,"🙏"),name:"Pray",type:"pray"},{Component:()=>t.createElement(t.Fragment,null,"😂"),name:"Laughing",type:"laughing"},{Component:()=>t.createElement(t.Fragment,null,"👍"),name:"Thumbs up",type:"+1"},{Component:()=>t.createElement(t.Fragment,null,"👎"),name:"Thumbs down",type:"-1"}],pr=()=>{var e,r;const{client:l,channel:o}=W(),{closeDrawer:i,isChannelViewActive:c,switchToChannelDetailsView:s,switchToChannelListView:d}=qn(),m=(null==o||null==(e=o.data)?void 0:e.name)||"Channel name",[,u]=a(0),[p,h]=a(!1),[f,E]=a(!1);n(()=>{if(!o)return jn;const e=e=>{o&&o.cid===e.cid&&u(e=>e+1)};return l.on("channel.updated",e),()=>l.off("channel.updated",e)},[null==o?void 0:o.cid]);const v=!(null==o||null==(r=o.data)||!r.last_message_at),b={channel:o,closeDrawer:i,switchToChannelDetailsView:s,switchToChannelListView:d,title:m};return t.createElement(g,{grow:1,shrink:1},t.createElement(te,{Input:ir,EditMessageInput:ir,emojiSearchIndex:or,EmptyStateIndicator:ar,reactionOptions:ur,doMarkReadRequest:e=>c&&ie(e.markRead(),"mark read")},t.createElement(ne,null,v?t.createElement(hr,xe({},b,{overflowBottom:f,overflowTop:p,setOverflowBottom:E,setOverflowTop:h})):t.createElement(gr,xe({},b)),t.createElement(y,{position:"relative"},f&&t.createElement(y,xe({},Vn.bottom,{bottom:"unset",height:1,left:-1,pointerEvents:"none",position:"absolute",right:-1,role:"presentation",top:-1,zIndex:10})),t.createElement(ae,{disableMentions:!0,grow:!0})))))},hr=({channel:e,closeDrawer:n,overflowTop:a,setOverflowBottom:r,setOverflowTop:l,switchToChannelDetailsView:o,switchToChannelListView:i,title:s})=>t.createElement(re,{head:t.createElement(c,{key:"custom-head"},t.createElement(rr,{channel:e,closeDrawer:n,setOverflowBottom:r,setOverflowTop:l,switchToChannelDetailsView:o,switchToChannelListView:i,title:s}),a&&t.createElement(y,xe({},Vn.top,{height:1,left:-1,pointerEvents:"none",position:"absolute",right:-1,role:"presentation",top:"unset",zIndex:10}))),messageActions:["edit","delete","react"]}),gr=({channel:e,closeDrawer:n,switchToChannelDetailsView:a,switchToChannelListView:r,title:l})=>t.createElement(t.Fragment,null,t.createElement(lr,{channel:e,closeDrawer:n,switchToChannelDetailsView:a,switchToChannelListView:r,title:l}),t.createElement(re,{messageActions:["edit","delete","react"]})),fr=({isActive:e,setFilterValues:l,switchToNewChatView:o})=>{const[i,c]=a(!1),{loading:s,serviceTypeTeams:d}=(e=>{const[t,l]=a([]),[o,i]=a(!1),c=Gn();return n(()=>{e&&(i(!0),c.services.get("chat",{fields:{Chat:"teams_i_lead"}}).then(({teams_i_lead:e})=>{const t=e.map(({value:e,service_type_name:t,team_name:n})=>({service_type:{id:e.service_type_id,name:t},team:{id:e.team_id,name:n}}));l(t)}).finally(()=>i(!1)))},[e]),{loading:o,serviceTypeTeams:r(()=>t.reduce((e,{service_type:t,team:n})=>{let a=e.find(e=>e.id===t.id);return a||(a={id:t.id,name:t.name,teams:[]},e.push(a)),a.teams.push(n),e},[]),[t])}})(e);n(()=>{e||c(!1)},[]);const m=d.length>4;return t.createElement(g,null,t.createElement(g,{alignment:"center",axis:"horizontal",distribution:"space-between",paddingBottom:1,paddingHorizontal:2,spacing:1},t.createElement(g,{alignment:"center",axis:"horizontal",spacing:1},t.createElement(ta,null,"Teams I lead"),s&&t.createElement(Z,{size:"xs"})),t.createElement(h,{icon:"general.search",marginLeft:"auto",onClick:o,size:"sm",title:"Search all teams",tooltip:"Search all teams",variant:"outline"})),0===d.length?t.createElement(Er,{onClick:o}):t.createElement(g,{spacing:1.5,paddingBottom:1},t.createElement(g,null,d.slice(0,i?void 0:4).map(({id:e,name:n,teams:a})=>t.createElement(h,{alignment:"start","aria-label":`Select ${n} teams I lead`,axis:"vertical",borderBottomColor:"separatorTertiary",borderBottomStyle:"solid",borderBottomWidth:1,hover:{backgroundColor:"surfaceSecondary"},key:e,paddingHorizontal:2,paddingVertical:1,spacing:.25,textAlign:"left",theme:!1,onClick:()=>{l({appName:"Services",values:{plan_id:null,teams:a.map(t=>({service_type_id:e,team_id:t.id}))}}),o()}},t.createElement(f,{weight:500},n),t.createElement(f,{color:"foregroundSecondary"},a.map(e=>e.name).join(", "))))),m&&t.createElement(g,{alignment:"center"},t.createElement(h,{fontWeight:400,iconLeft:{name:i?"general.upCaret":"general.downCaret"},onClick:()=>c(!i),size:"xs",title:i?"Less teams":"Show all teams I lead",variant:"outline"}))))},Er=({onClick:e})=>t.createElement(g,{alignment:"center",axis:"vertical",distribution:"center",height:20,padding:2,spacing:1},t.createElement(f,{color:"foregroundSecondary"},"You don't lead any teams."),t.createElement(h,{fontWeight:400,onClick:e,size:"sm",variant:"outline"},"Browse teams")),vr=()=>{const{isNewChatShortcutsViewActive:e,setFilterValues:n,switchToNewChatView:a,switchToChannelListView:r}=qn();return t.createElement(t.Fragment,null,t.createElement(g,{alignment:"center",axis:"horizontal",spacing:1,padding:2,paddingTop:1},t.createElement(h,{icon:{color:Pt.lightNeutral12,name:"general.leftChevron"},marginTop:.25,onClick:r,size:"md",title:"Back to to conversation list",tooltip:"Back to conversations list",variant:"naked"}),t.createElement(Sn,null,"New conversation")),t.createElement(fr,{isActive:e,setFilterValues:n,switchToNewChatView:a}),t.createElement(br,null))},br=()=>t.createElement(g,{padding:2},t.createElement(g,{alignment:"center",axis:"horizontal",spacing:1},t.createElement(ta,null,"My groups"),t.createElement(N,{color:"hsla(97, 57%, 90%, 1)",radius:"pill",size:"xs"},t.createElement(f,{color:"hsla(97, 57%, 18%, 1)"},"Coming soon"))),t.createElement(g,{alignment:"center",axis:"vertical",distribution:"center",height:20,spacing:1},t.createElement(f,{color:"foregroundSecondary",textAlign:"center",width:"80%"},"For now, Group conversations can be started from the Church Center app."))),Cr=({handleStartChat:e,startChatDisabled:n,showSpinner:a})=>t.createElement(t.Fragment,null,t.createElement(p,null),t.createElement(g,{grow:0,marginHorizontal:"auto",padding:2,spacing:2},t.createElement(f,{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(h,xe({"aria-label":"Start conversation",disabled:n,onClick:e},ja({disabled:n,spinner:a})),"Start conversation"))),wr=({filter:e})=>{const{people:l,createChat:i,isCreating:c,isFetching:s}=(e=>{const[t,l]=a([]),[i,c]=a(!1),[s,d]=a(!1),m=o({}),{findAndSwitchToChannel:u}=qn(),p=Gn(),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",xe({fields:{Chat:"people"}},e));return d(!1),t})(e).then(e=>e.people);m.current[t]=n,l(n)})(h)},[h]),{createChat:async()=>{c(!0);const{payload:e}=await p.services.get("chat",xe({fields:{Chat:"payload"}},h));p.chat.post("me/conversations",{payload:e}).then(u)},isCreating:i,isFetching:s,people:t}})(e),d=l.length>0,m=l.length,u=l.filter(e=>e.child),p=u.length>0;let h;switch(m){case 0:h="People selected";break;case 1:h="1 person selected";break;default:h=`${m} people selected`}return t.createElement(g,{grow:1},t.createElement(g,{grow:1,padding:2,paddingBottom:0,spacing:1},t.createElement(g,{alignment:"center",axis:"horizontal",spacing:1},t.createElement(ta,null,h),s&&t.createElement(Z,{size:"sm"})),d?t.createElement(t.Fragment,null,p&&t.createElement(ua,{childPeople:u}),t.createElement(zn,null,t.createElement(g,{paddingBottom:2,spacing:1.5},l.map(e=>t.createElement(ca,{key:e.id,person:e}))))):t.createElement(g,{alignment:"center",grow:1,maxHeight:18},t.createElement(f,{color:"foregroundSecondary"},"No Results"))),t.createElement(Cr,{handleStartChat:i,startChatDisabled:!d,showSpinner:c}))},yr=({value:e,name:t})=>({label:t,value:e}),kr=({onChange:e,isActive:l,values:o})=>{const[i,c]=a({}),[s,d]=a(!1),[m,u]=a(0),p=Gn(),h=l&&s,v=!l&&o.teams.length>0;n(()=>{l||d(!1)},[l]),n(()=>{h&&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=>xe({},n,{[e]:t})),u(e=>e-1)}))})},[o.teams,h]);const b=r(()=>{const e=o.teams.reduce((e,{team_id:t})=>i[t]?xe({},e,i[t].reduce((e,t)=>xe({},e,{[t.value]:t}),{})):e,{});return Object.values(e).map(yr)},[o.teams,i]);return t.createElement(g,{spacing:1},t.createElement(g,{axis:"horizontal",alignItems:"center",spacing:1},t.createElement(g,{alignItems:"center",axis:"horizontal",marginRight:"auto",spacing:1},t.createElement(ta,null,"Filter by plan"),m>0&&t.createElement(Z,{size:"xs"})),t.createElement(V,{ariaLabel:"Filter by plan",disabled:!l,isChecked:s,onClick:()=>{d(e=>!e),e({appName:"Services",values:e=>xe({},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({appName:"Services",values:e=>xe({},e,{plan_id:t})})}):v?t.createElement(g,{axis:"horizontal",alignItems:"center",spacing:2,padding:2},t.createElement(E,{color:"foregroundSecondary",name:"general.exclamationTriangle",size:"lg"}),t.createElement(f,{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)},xr=({values:e,onChange:r,isActive:l})=>{const[i,c]=a(""),[s,d,m]=((e,t)=>{const[r,l]=a([]),[o,i]=a(!1),c=Gn();n(()=>{t&&(i(!0),c.services.get("chat",{fields:{Chat:"teams"}}).then(({teams:e})=>l(e)).finally(()=>i(!1)))},[t]);const[s,d]=r.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,l),u=o();let p=0;const v={teams_i_lead:!0},b=((e,t)=>La(e,t,{keys:["name"],threshold:La.rankings.CONTAINS}).sort(Fa).reduce((e,t)=>{var n;return e[n=t.group]||(e[n]=[]),e[t.group].push(t),e},{}))(d,i);n(()=>{l||c("")},[l]);const C=Object.entries(b);return t.createElement(g,{spacing:1},t.createElement(g,{axis:"horizontal",alignItems:"center",spacing:1},t.createElement(z.InputLabel,xe({controls:"teams"},ea),"Teams"),m&&t.createElement(Z,{size:"xs"})),t.createElement(g,{spacing:1},s.length>0&&t.createElement(S,{spacing:1},s.map(e=>t.createElement(N,{key:e.value.team_id,renderRight:t.createElement(h,{title:"remove",icon:{name:"general.x",size:"xs"},theme:"naked",onClick:()=>r({appName:"Services",values:t=>xe({},t,{teams:t.teams.filter(({team_id:t})=>t!==e.value.team_id)})})}),size:"sm",title:e.name}))),t.createElement(O.Popover,{ref:u,id:"teams",openOnFocus:!0,closeOnSelect:!0,onClear:()=>c(""),onChange:e=>c(e.target.value),onSelect:({value:e})=>r({appName:"Services",values:t=>xe({},t,{teams:[...t.teams,e]})}),placeholder:"Search teams",renderLeft:t.createElement(E,{name:"general.search"}),value:i},C.length?C.map(([e,n],a)=>{const l=(e=>e.split("_").map((e,t)=>"i"===e.toLowerCase()?"I":0===t?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():e.toLowerCase()).join(" "))(e),o=n.map(e=>t.createElement(O.Item,{key:p,index:p++,value:e},t.createElement(f,{truncate:!0},e.name))),i=n.length>10;return Object.keys(b).length>1?t.createElement(g,{key:e,marginTop:a>0?1.5:0},t.createElement(g,{axis:"horizontal"},t.createElement(_.Item,null,t.createElement(f,{weight:600},l)),v[e]&&t.createElement(g,{padding:1,marginLeft:"auto"},t.createElement(h,{disabled:i,fontWeight:400,onClick:e=>{r({appName:"Services",values:e=>xe({},e,{teams:[...e.teams,...n.map(e=>e.value)]})}),u.current&&u.current.handleBlur(e)},size:"xs",theme:"primary",title:"Select all",tooltip:{popoverProps:{zIndex:1e4},title:i?"Disabled when options would exceed 10":`select all in "${l}"`},variant:"naked"}))),o):o}):t.createElement(_.Item,null,t.createElement(f,null,"No matching teams for:"," ",t.createElement(f,{as:"span",inline:!0,italic:!0},`"${i}"`))))))},Ar=()=>t.createElement(g,{grow:1},t.createElement(g,{alignItems:"center",axis:"horizontal",padding:2,spacing:1},t.createElement(ta,null,"People selected")),t.createElement(g,{alignment:"center",grow:1,maxHeight:18,padding:2},t.createElement(f,{color:"foreground",align:"center",size:4},"Search teams above to add people to the chat."))),Sr=({isActive:e})=>{const{filterValues:a,setFilterValues:l,isFiltering:o,isPlansActive:i}=(e=>{const{filterValues:t,setFilterValues:a}=qn(),{Services:l}=t;n(()=>{a({appName:"Services",values:e?e=>e:Xn})},[e]);const o=r(()=>{const[e,...t]=l.teams;return Boolean(e)&&t.every(({service_type_id:t})=>t===e.service_type_id)},[l.teams]);return n(()=>{o||a({appName:"Services",values:e=>xe({},e,{plan_id:null})})},[o]),{filterValues:l,isFiltering:l.teams.length>0,isPlansActive:o,setFilterValues:a}})(e);return t.createElement(g,{grow:1},t.createElement(g,{spacing:2,padding:2,paddingTop:0},t.createElement(xr,{values:a,onChange:l,isActive:e}),t.createElement(kr,{values:a,onChange:l,isActive:i})),t.createElement(p,null),o?t.createElement(wr,{filter:a}):t.createElement(t.Fragment,null,t.createElement(Ar,null),t.createElement(Cr,{handleStartChat:jn,startChatDisabled:!0,showSpinner:!1})))},Nr=()=>{const{isNewChatViewActive:e,switchToNewChatShortcutsView:n}=qn();return t.createElement(t.Fragment,null,t.createElement(g,{alignment:"center",axis:"horizontal",spacing:1,padding:2,paddingTop:1},t.createElement(h,{icon:{color:Pt.lightNeutral12,name:"general.leftChevron"},marginTop:.25,onClick:n,size:"md",title:"Back to to new conversation shortcuts",tooltip:"Back to to new conversation shortcuts",variant:"naked"}),t.createElement(Sn,null,"New conversation")),t.createElement(Sr,{isActive:e}))},Tr=({closeDrawer:e,children:a})=>{const{client:r,channel:o,setActiveChannel:i}=W(),{filterValues:c,setFilterValues:s}=(()=>{const[e,n]=t.useState(Kn);return{filterValues:e,setFilterValues:l(({appName:e,values:t})=>{n(n=>xe({},n,{[e]:"function"==typeof t?t(n[e]):t}))},[])}})(),[d,m]=t.useState(!1),[u,p]=t.useState(0),h=()=>p(3),g=0===u,f=1===u,E=2===u,v=3===u,b=4===u;return n(()=>{g&&o&&i(null)},[o,g]),t.createElement($n,{value:{actionsOpenForChannel:d,closeDrawer:e,filterValues:c,findAndSwitchToChannel:async({stream_channel_id:e})=>{const[t]=await r.queryChannels({id:{$eq:e}});t&&(i(t),h())},isChannelDetailsViewActive:b,isChannelViewActive:v,isNewChatShortcutsViewActive:f,isNewChatViewActive:E,setActionsOpenForChannel:m,setFilterValues:s,switchToChannelDetailsView:()=>p(4),switchToChannelListView:()=>p(0),switchToChannelView:h,switchToNewChatShortcutsView:()=>p(1),switchToNewChatView:()=>p(2)}},t.createElement(Zn,{activeIndex:u},a))},Vr=({chatClient:e,closeDrawer:n,env:a,appName:r,currentPersonId:l})=>t.createElement(le,{client:e,theme:"str-chat__theme-light"},t.createElement(Rn,{env:a},t.createElement(Tr,{closeDrawer:n},t.createElement(nr,{closeDrawer:n,client:e,env:a,appName:r,currentPersonId:l}),t.createElement(vr,null),t.createElement(Nr,null),t.createElement(pr,null),t.createElement(ba,null)))),zr={component:({appName:e,closeDrawer:n,env:a,chatStreamUser:r,userId:l})=>{const o=(e=>{const[n,a]=t.useState(null);return t.useEffect(()=>{if(!e)return jn;let t=!1;const n=new oe(e.api_key),r=n.connectUser({id:e.id},e.tokenProvider).then(()=>{t||a(n)});return()=>{t=!0,a(null),r.then(()=>n.disconnectUser()).then(()=>{console.log("connection closed")})}},[null==e?void 0:e.id,null==e?void 0:e.api_key]),n})(r);return o?t.createElement(Vr,{chatClient:o,closeDrawer:n,env:a,appName:e,currentPersonId:l}):t.createElement(xn,{closeDrawer:n},t.createElement(g,{alignment:"center",axis:"horizontal",spacing:1},t.createElement(Sn,null,"Chat"),t.createElement(Ca,null),t.createElement(Z,{color:"hsl(0 0% 62%)",thickness:2,trackColor:"hsl(0 0% 97%)"})))},icons:{active:"general.textMessage",static:"general.outlinedTextMessage"},name:"Chat"},Mr=({sectionName:e,currentAppName:n})=>{const a=e.toLowerCase();return"account information"===a||"recent updates"===a?t.createElement(E,{name:"account information"===a?"general.cogPerson":"general.outlinedGenericFile",color:"foregroundSecondary"}):"Accounts"===n?t.createElement(E,{name:"general.cog",color:"foregroundSecondary"}):t.createElement(g,{width:2,height:2},t.createElement(I,{name:n.toLowerCase().replace(/[\s]/,"-"),size:"sm",theme:"color",markOnly:!0}))},Zr=({hit:e,index:n})=>t.createElement(O.Item,{key:e.objectID,index:n,value:e,paddingVertical:1},t.createElement(f,{color:"neutralDarker",size:4,whiteSpace:"normal"},e.title)),_r=({currentAppName:e,indexName:n})=>{const{query:a,refine:r}=ve(),{hits:l,results:o}=be(),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(g,{id:"helpdesk-search",position:"relative"},t.createElement(O.Popover,{renderTo:"#helpdesk-search",popoverProps:{zIndex:2},placeholder:"Search our documentation",value:a,renderRight:t.createElement(E,{name:"general.search"}),onChange:e=>r(e.target.value),onSelect:e=>((e,t)=>{const n=t.split("_")[1],a=window.open(`https://${n}.zendesk.com/hc/${e.locale.locale}/articles/${e.id}`,"_blank");a&&a.focus()})(e,n),placement:"bottom-start"},!l.length&&t.createElement(t.Fragment,null,t.createElement(g,{axis:"horizontal",alignment:"center",paddingHorizontal:2,paddingVertical:1},t.createElement(f,{color:"neutralDarker",size:4,whiteSpace:"normal"},"No results match your search"))),i&&Object.keys(i).map(n=>{const a=i[n];return t.createElement(t.Fragment,{key:n},c>0&&t.createElement(p,{margin:1}),t.createElement(g,{axis:"horizontal",alignment:"center",spacing:.5,paddingHorizontal:2,paddingVertical:1},t.createElement(Mr,{currentAppName:e,sectionName:n}),t.createElement(f,{size:5,color:"foregroundSecondary",fontWeight:500},n)),a.map(e=>t.createElement(Zr,{key:e.objectID,hit:e,index:c++})))})))},Hr=({indexName:e,currentAppName:n})=>{const{algoliaSearchAuth:{algoliaApplicationId:a,algoliaSearchOnlyApiKey:r}}=Zt(),l=Ee(a,r);return t.createElement(Ce,{indexName:e,searchClient:l},t.createElement(we,{hitsPerPage:5}),t.createElement(_r,{currentAppName:n,indexName:e}))},{LoadingIndicator:Pr,StackView:Lr}=j,Or={component:function({appName:e,closeDrawer:n,env:a,helpdeskConfig:r}){const l=`${d(a)("helpdesk")}/addons/toolbar.helpdesk.help`;return t.createElement(F,{grow:1,display:"flex",extensionId:"11",url:l,loadingFallback:t.createElement(Lr,{flex:1,axis:"vertical"},t.createElement(xn,{closeDrawer:n},t.createElement(Lr,{axis:"horizontal",spacing:1},t.createElement(Sn,null,"Help and support"),t.createElement(Pr,null)))),additionalComponents:{CalendlyWidget:fe,DocumentationSearch:Hr,DrawerHeader:xn,DrawerHeading:Sn,ScrollContainer:zn,SwitchView:Zn},args:{appName:e,closeDrawer:n,currentPageParams:location.search,helpdeskConfig:r}})},icons:{active:"general.questionCircle",static:"general.outlinedQuestionCircle"},name:"Helpdesk"},Ir=["dark","style"],Dr=e=>{let{dark:n,style:a}=e,r=Se(e,Ir);return t.createElement("div",xe({style:xe({color:n?Pt.lightNeutral62:Pt.lightNeutral24,fontSize:"12px",fontWeight:400,textTransform:"uppercase"},a)},r))},Rr=({isRead:e=!1,onClick:r})=>{const l=t.useRef(null),o=function(e){const[t,r]=a(!1),l=()=>r(!0),o=()=>r(!1);return n(()=>{const t=null==e?void 0:e.current;if(t)return t.addEventListener("mouseenter",l),t.addEventListener("mouseleave",o),()=>{t.removeEventListener("mouseenter",l),t.removeEventListener("mouseleave",o)}},[e]),t}(l);return t.createElement("div",xe({ref:l,style:{alignItems:"center",display:"flex",height:"12px",justifyContent:"center",width:"12px"}},{onClick:r}),t.createElement("svg",{height:"12",viewBox:"0 0 12 12",width:"12"},t.createElement("title",null,"unread dot"),t.createElement("circle",{cx:"6",cy:"6",fill:o?Pt.interaction66:Pt.lightNeutral81,r:"6",style:{transition:"all 0.2s"}}),t.createElement("circle",{cx:"6",cy:"6",fill:Pt.lightNeutral100,r:"5"}),!e&&t.createElement("circle",{cx:"6",cy:"6",r:"4",fill:Pt.interaction66})))},Ur=({mobile:e=!1,isLast:n,onCreateTask:a,onMarkAsRead:r=(async()=>Promise.resolve({})),onToggleRead:l,showBottomBorder:o,notification:i})=>{const{appName:c,createdAt:s,isRead:d,link:m,title:u}=i,{organizationTimeZone:p,notificationsContextMenu:h}=Zt(),[g,f]=t.useState(!1),E={style:"relative"};return p&&(E.timeZone=p),t.createElement(yt,{active:g,"data-turbolinks":!1,href:m,onClick:async e=>{f(!0),await r(i),window.location.href=m},style:xe({alignItems:"flex-start",borderBottom:o||!n?`1px solid ${e?Pt.lightNeutral24:Pt.lightNeutral93}`:"none",cursor:"pointer",display:"flex",overflow:"hidden",padding:"12px 16px",textDecoration:"none",verticalAlign:"middle"},et)},t.createElement("div",{style:{display:"flex",flexDirection:"column",flexGrow:1,justifyContent:"center"}},t.createElement("div",{style:{alignItems:"center",borderLeft:`4px solid hsl(${{Calendar:"9 61% 50%","Check-Ins":"283 22% 48%",Giving:"43 88% 64%",Groups:"17 96% 62%",People:"220 74% 57%",Publishing:"220 12% 31%",Registrations:"175 36% 43%",Services:"88 45% 41%"}[c]||"0 0% 81%"} / ${d?"40%":"100%"}`,display:"flex",marginBottom:"10px",paddingLeft:"8px"}},t.createElement("div",{style:{flexGrow:1,marginRight:"16px"}},t.createElement(Dr,{dark:e,style:{marginBottom:"6px",userSelect:"none"}},c),t.createElement("h1",{style:{color:e?Pt.lightNeutral88:Pt.darkNeutral12,fontSize:"16px",fontWeight:500,lineHeight:"1.3em",margin:0,userSelect:"none"}},u)),!e&&!h&&t.createElement(Rr,xe({onClick:e=>{e.preventDefault(),e.stopPropagation(),l()}},{isRead:d})),!e&&h&&t.createElement(L,{icon:{name:"general.threeDots"},title:"More options",variant:"naked",iconRight:null,placement:"bottom-end",onClick:e=>{e.stopPropagation()}},t.createElement(L.Item,{onClick:e=>{e.preventDefault(),e.stopPropagation(),l()}},"Mark ",d?"unread":"as read"),i.taskUrl?t.createElement(L.Item,{onClick:e=>{e.preventDefault(),e.stopPropagation(),window.location.href=i.taskUrl}},"Open task"):t.createElement(L.Item,{onClick:e=>{e.preventDefault(),e.stopPropagation(),a(i)}},"Create task"))),t.createElement("div",{style:{color:e?Pt.lightNeutral62:Pt.lightNeutral24,fontSize:"12px",paddingLeft:"12px",userSelect:"none"}},ce.datetime(s,E))))},$r=({context:e,dark:n=!1,description:a,title:r="No notifications"})=>t.createElement(g,{alignment:"center",distribution:"center",padding:4},t.createElement(st,xe({id:e},{dark:n})),t.createElement(k,{color:n?"#fafafa":"#3d3d3d",fontWeight:500,marginTop:1,size:3},r),t.createElement(f,{align:"center",color:n?"#fafafa":"#3d3d3d",size:4},a)),Fr=(e,t)=>{var n,a,r,l,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==(r=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==(l=r.attributes)?void 0:l.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}},jr=["disabled","onClick","title"],Br=e=>{let{disabled:n,onClick:a,title:r}=e,l=Se(e,jr);return t.createElement(g,xe({color:n?Pt.lightNeutral62:Pt.interaction66,cursor:n?"default":"pointer",fontSize:5,fontWeight:600,userSelect:"none",onClick:!n&&a},l),r)},Wr=e=>{let n=xe({},(Ae(e),e));return t.createElement(k,xe({color:Pt.lightNeutral12,lineHeight:2,size:5,textTransform:"uppercase",userSelect:"none"},n))},qr={component:function({closeDrawer:e}){const[n,a]=t.useState(!1),r={transition:"opacity 300ms ease-in-out"},o={entered:{opacity:1},entering:{opacity:.2}},{env:i,enabled:c,joltChannel:s}=De.getState().notifications,{handleCreateTask:m,handleMarkAllAsRead:u,handleMarkAsRead:p,handleToggleRead:h,hasError:f,isLoading:E,read:v,unread:b}=(({enabled:e,env:n,joltChannel:a})=>{const[r,o]=t.useState([]),[i,c]=t.useState(!0),[s,m]=t.useState(!1),{read:u,unread:p}=(e=>{const{read:t,unread:n}=[...e].sort((e,t)=>e.createdAt<t.createdAt?1:-1).reduce((e,t)=>xe({},e,t.isRead?{read:[...e.read,t]}:{unread:[...e.unread,t]}),{read:[],unread:[]});return{read:t,unread:n}})(r),h=()=>{try{m(!1),ze(Te,`${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=>Fr(t,e));c(!1),o(t)})}catch(e){m(!0),console.error("topbar encountered error when fetching all notifications",e)}};t.useEffect(()=>{e&&h()},[e]);const g=e=>"string"==typeof e.data?JSON.parse(e.data):e.data,f=t.useCallback(e=>{try{(async e=>{try{return m(!1),ze(Te,`${window.location.origin}/~api/notifications/v2/me/notifications/${e}?include=app,web_payloads`).then(({json:e})=>e)}catch(e){m(!0),console.error("topbar encountered error when fetching a single notification",e)}})(g(e).data.id).then(e=>{const t=Fr(e.data,e);o(e=>[...e.filter(e=>e.id!==t.id),t])})}catch(e){console.error("topbar encountered error when updating state from jolt message",e)}},[Fr,g,h,u,o,p]),E=t.useCallback(e=>{const t=g(e),n=r.filter(e=>e.id!==t.data.id);o(n)},[g,r,o]);Ze(e?a:void 0,"notifications.v2.events.notification.created",f),Ze(e?a:void 0,"notifications.v2.events.notification.updated",f),Ze(e?a:void 0,"notifications.v2.events.notification.destroyed",E);const v=async(e,t)=>{const a=e.reduce((e,n)=>[...e,{attributes:{action:t},id:n,type:"graph_notification"}],[]);return ze(Ve,`${d(n)("api")}/notifications/v2/me/bulk_update`,{data:{data:{attributes:{},relationships:{notifications:{data:{source:"/included/graph_notification/*"}}},type:"BulkUpdate"},included:a},method:"POST"}).then(t=>{t.ok||(c(!1),m(!0),o(t=>t.map(t=>e.includes(t.id)?xe({},t,{isRead:!t.isRead}):t)))})},b=l(async e=>ze(Ve,`${d(n)("api")}/home/v2/me/task_lists/inbox/tasks`,{data:{data:{attributes:{description:e.link?`<a href="${e.link}">Link</a>`:void 0,title:e.title}}},method:"POST"}).then(t=>{t.ok&&o(n=>n.map(n=>e.id===n.id?xe({},n,{taskUrl:t.json.data.links.html}):n))}),[]);return{handleCreateTask:b,handleMarkAllAsRead:()=>{const e=p.map(e=>e.id);o(t=>t.map(t=>e.includes(t.id)?xe({},t,{isRead:!0}):t)),v(p.map(e=>e.id),"read")},handleMarkAsRead:async e=>v([e.id],"read"),handleToggleRead:async e=>{const t=e.isRead?"unread":"read";return o(n=>n.map(n=>e.id==n.id?xe({},n,{isRead:"read"===t}):n)),v([e.id],t)},hasError:s,isLoading:i,read:u,unread:p}})({enabled:c,env:i,joltChannel:s});return t.createElement(t.Fragment,null,t.createElement(xn,{closeDrawer:e},t.createElement(g,{spacing:.5},t.createElement(g,{alignment:"center",axis:"horizontal",spacing:1},t.createElement(Sn,null,"Notifications"),E&&t.createElement(Z,{color:"hsl(0 0% 62%)",thickness:2,trackColor:"hsl(0 0% 97%)"}),f&&t.createElement(mt,{fill:"hsl(8 60% 47%)",size:16})),v.length>0&&t.createElement(Br,{onClick:()=>a(e=>!e),title:(n?"Hide":"Show")+" read"}))),t.createElement(zn,null,t.createElement(g,{alignment:"stretch",spacing:2},t.createElement("div",{style:{boxSizing:"border-box",display:"flex",flexDirection:"column",justifyContent:"space-between",margin:0,padding:"4px 0"}},!E&&0===b.length&&t.createElement($r,xe({context:"toolbar",description:`When you have ${v.length>0?"unread ":""}notifications they will show up here.`},v.length>0&&{title:"No unread notifications"})),b.length>0&&t.createElement(g,{axis:"horizontal",alignment:"center",distribution:"space-between",padding:2},t.createElement(Wr,null,"Unread"),b.length>0&&t.createElement(Br,{onClick:()=>u(),title:`Mark ${b.length} as read`})),t.createElement(ye,{exit:!1},b.map((e,n)=>t.createElement(ke,{key:e.id,timeout:0},a=>t.createElement("div",{style:xe({},r,o[a])},t.createElement(Ur,xe({isLast:b.length===n+1,key:e.id,onMarkAsRead:p,onToggleRead:()=>h(e),onCreateTask:m,showBottomBorder:v.length>0},{notification:e})))))),v.length>0&&n&&t.createElement(t.Fragment,null,t.createElement(Wr,{padding:2},"Read"),t.createElement(ye,{exit:!1},v.map(e=>t.createElement(ke,{key:e.id,timeout:0},n=>t.createElement("div",{style:xe({},r,o[n])},t.createElement("div",{style:{opacity:.6}},t.createElement(Ur,xe({key:e.id,onToggleRead:()=>h(e),onCreateTask:m,showBottomBorder:!0},{notification:e}))))))))))))},icons:{active:"toolbar.notification",static:"toolbar.notificationO"},name:"Notifications"};function Gr(){const e=document.head.querySelectorAll('meta[property^="pco:"]'),t={};return e.forEach(e=>{const n=e.getAttribute("property");var a;t[n.substring("pco:".length)]="boolean"===(a=e).getAttribute("datatype")?"true"===a.content||"1"===a.content:a.content}),t}const Jr=Ie(Gr()),Yr=new MutationObserver(()=>{const e=Jr.getState(),t=Gr();Pe(e,t)||Jr.setState(t)});let Xr=!1;const Kr=["children","badge","onClick"],{LoadingIndicator:Qr,StackView:el}=j;function tl(e){let{children:n,badge:a,onClick:r}=e,l=Se(e,Kr);return t.createElement(g,xe({as:"button",axis:"horizontal",distribution:"space-between",alignment:"center",paddingBottom:.75,onClick:()=>r(),spacing:1},l),n,a&&t.createElement(N,xe({size:"sm",fontWeight:"600"},a)))}const nl={component:function({closeDrawer:e,enableJoltLogging:n,env:r,isOpen:o,joltPromise:i,onReceiveWorker:c,openDrawer:s,currentPath:u,onChangePath:p}){const h=(Xr||(Xr=!0,Yr.observe(document.head,{attributes:!0,childList:!0,subtree:!0})),m(Jr.subscribe,()=>Jr.getState())),g=`${d(r)("home")}/addons/toolbar.tasks.list.js`,[f,E]=a(),[v,b]=a(),C=Me({channelName:null==v?void 0:v.channelName,enableJoltLogging:n,enabled:!!v,env:r,fetchSubscribeToken:async e=>{const t=v.subscribeUrl;return(await ze(Ve,t,{data:{data:{attributes:{connection_id:e}}},method:"POST"})).json.data.id},joltPromise:i}),w=l(e=>{E(xe({},e,{timestamp:(new Date).getTime()}))},[]);Ze(C,"",w);const y=l((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(F,{grow:1,display:"flex",extensionId:"2",url:g,onReceiveWorker:c,loadingFallback:t.createElement(el,{flex:1,axis:"vertical"},t.createElement(xn,{closeDrawer:e},t.createElement(el,{axis:"horizontal",spacing:1},t.createElement(Sn,null,"To do"),t.createElement(Qr,null)))),additionalComponents:{DrawerHeader:xn,DrawerHeading:Sn,NavLinkWithBadge:tl,ScrollContainer:zn,SwitchView:Zn},args:{closeDrawer:e,currentPath:u,isOpen:o,latestJoltMessage:f,onChangePath:p,openDrawer:s,pcoMeta:h,requestJoltChannel:b,trackPendo:y}})},icons:{active:"toolbar.checklist",static:"toolbar.checklistO"},name:"Tasks"},al={Chat:zr,Notifications:qr,Tasks:nl},rl=Object.fromEntries(Object.entries(al).map(([e,t])=>[e.toLowerCase(),t]));function ll({appName:o,autoMountTool:i,enableJoltLogging:c,env:s,helpdeskConfig:m={},linkToProfile:v=!0,userAvatarPath:C,userName:w,onReceiveTasksWorker:S}){const[N,T,V]=function(){const e="toolbar",[t,o]=function(e){const t=r(()=>new RegExp(`${e}=([^&]+)`),[e]),o=l(e=>{const n=e.match(t);return n?n[1]:null},[t]),[i,c]=a(()=>o(location.hash)),s=l(e=>{c(o(e))},[]);return n(()=>{function e(){s(location.hash)}return window.addEventListener("hashchange",e),()=>window.removeEventListener("hashchange",e)},[s]),[i,s]}(e),i=l((t,n="")=>{const a=`#${e}=${t}/${n}`;history.replaceState(void 0,void 0,a),o(a)},[o]);return[r(()=>{if(t){const[e,...n]=t.split("/");return{path:n.join("/"),tool:e}}return null},[t]),i,l(()=>{history.replaceState(void 0,void 0,"#"),o("")},[])]}(),[z,M]=function(e){const[t,n]=function(e){const[t,n]=a(()=>function(e){const t=document.cookie.split(";").map(e=>e.trim()).find(t=>t.startsWith(`${e}=`));return t&&decodeURIComponent(t.split("=")[1])}(e));return[t,l(t=>{document.cookie=`${e}=${encodeURIComponent(t)}; ${yn}`,n(t)},[e])]}("topbarToolbarToolState");return[r(()=>{if(!t)return{};try{return JSON.parse(t)}catch(e){return{}}},[t]),l(e=>n(JSON.stringify(e)),[n])]}(),Z=i?al[i]:null,[_,H]=e.useReducer(Pn,xe({},Hn,{currentContent:Z})),{currentContent:P,open:L}=_,O=!!P,{indicatorVisible:I,joltPromise:D,chatEnabled:R,userId:U}=Zt();t.useEffect(()=>{L?(document.body.style.overflow="hidden",window.scrollTo(0,0)):document.body.style.overflow="auto"},[L]),t.useEffect(()=>(window.openHelpdesk=()=>re(Or),()=>{delete window.openHelpdesk}),[Or]);const $=un({appName:o.replace(/[\s-]/,""),env:s,userId:U}),F=`${d(s)("login")}/logout`,j=`/people/AC${U}`,W=Or,q=null!=m&&m.onClick?m.onClick:()=>X(W),G=l(e=>{H({payload:{content:e},type:_n.mount}),setTimeout(()=>H({type:_n.open}))},[]),J=l(e=>{e.name.toLowerCase()in rl?T(e.name.toLowerCase(),z[e.name.toLowerCase()]):(V(),G(e))},[T,V,G,z]),Y=l(()=>{H({type:_n.close}),V(),setTimeout(()=>H({type:_n.unmount}),100)},[V]);t.useEffect(()=>{if(!N)return;const e=xe({},z,{[N.tool]:N.path});Pe(e,z)||M(e)},[N,z]),t.useEffect(()=>{null==N||!N.tool||P===rl[N.tool]&&L||G(rl[N.tool])},[G,null==N?void 0:N.tool,P,L]);const X=e=>L&&(null==P?void 0:P.name)===e.name?Y():J(e),K=(({enableJoltLogging:e,env:n,userId:a,isEnabled:r,joltPromise:l,onConnectionFailure:o=jn})=>{const[i,c]=t.useState(null),s=Me({channelName:`chat.people.${a}`,enableJoltLogging:e,enabled:r,env:n,fetchSubscribeToken:async e=>{const t=`${d(n)("api")}/chat/v2/me/jolt_subscribe`;return ze(Ve,t,{data:{data:{attributes:{cid:e}}},method:"POST"}).then(({json:e})=>e.data.id)},joltPromise:l}),m=async({fields:e})=>{const t=`${d(n)("api")}/chat/v2/me/stream_user`,a=`?context=linked_accounts&fields[StreamUser]=${e.join(",")}`,{json:r}=await ze(Te,`${t}${a}`);return r.data},u=()=>m({fields:["api_key","token","unread"]}).then(({id:e,attributes:t})=>{const{token:n}=t,a=Se(t,Qn);n?c(t=>xe({id:e},t,a,{tokenProvider:async()=>{const{attributes:e}=await m({fields:["token"]});return e.token}})):(o(),c(null))}).catch(jn);return Ze(r?s:void 0,"STREAM_USER_UPDATED",u),t.useEffect(()=>{r&&u()},[r]),i})({enableJoltLogging:c,env:s,isEnabled:Boolean(U&&R),joltPromise:D,onConnectionFailure:()=>P===zr&&Y(),userId:U}),Q=[qr,nl,K&&zr].filter(Boolean),ee={component:()=>function({closeDrawer:e,linkToProfile:n,loginSettingsUrl:a,logoutUrl:r,profileUrl:l,userAvatarPath:o}){const{mfaConfigured:i,mfaEnabled:c,name:s}=Zt();return t.createElement(g,{axis:"vertical",spacing:t.createElement(p,null)},t.createElement(x,{columns:"auto 1fr auto",alignment:"start",spacing:2,padding:2,paddingTop:1,width:"100%"},t.createElement(A,{source:o,size:"md"}),t.createElement(g,{axis:"vertical",spacing:1,grow:0,shrink:1},t.createElement(k,{level:3,size:1,weight:600,paddingTop:.5,color:Pt.lightNeutral12},s),n&&t.createElement(b,{to:l,style:{color:Pt.lightNeutral45},size:3},"My profile"),c&&t.createElement(t.Fragment,null,t.createElement(b,{to:a,style:{color:Pt.lightNeutral45},size:3},"My login settings"),t.createElement(g,{axis:"horizontal",alignment:"center",spacing:.5,width:"100%"},t.createElement(E,{name:i?"general.lock":"general.unlock",size:"sm",color:i?Pt.success25:Pt.danger45}),t.createElement(f,{size:5,weight:400,color:Pt.lightNeutral62,wrap:!0},"Two-step verification ",i?"active":"inactive")))),t.createElement(h,{icon:{fill:Pt.lightNeutral24,name:"general.x",size:"md"},onClick:e,title:"Close",variant:"naked",theme:!1,hover:{backgroundColor:Pt.lightNeutral95}})),t.createElement("form",{method:"POST",action:r},t.createElement(h,{"data-turbolinks":!1,onClick:()=>{$e()},style:{padding:0},theme:!1,type:"submit",width:"100%"},t.createElement(g,{distribution:"space-between",alignment:"center",axis:"horizontal",grow:1,paddingHorizontal:3,paddingVertical:2},t.createElement(f,{color:Pt.lightNeutral45,size:3},"Log out"),t.createElement(E,{name:"general.intoBox",fill:Pt.lightNeutral45})))))}({closeDrawer:Y,linkToProfile:v,loginSettingsUrl:$,logoutUrl:F,profileUrl:j,userAvatarPath:C}),name:"Profile"},te=function(e){const t=e=>"undefined"!=typeof window&&window.matchMedia(e).matches,[r,l]=a(t(e));function o(){l(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]),r}("(max-width: 599px)"),[ne,ae]=t.useState(0);t.useLayoutEffect(()=>{const e=()=>{ae(window.innerHeight)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const re=e=>{var t;J(e),null==(t=document.getElementById(`toolbarDrawer${e.name}`))||t.scrollTo({behavior:"smooth",top:0})},le={Chat:{chatStreamUser:K},Tasks:{onReceiveWorker:S}},oe=l(e=>{T(null==P?void 0:P.name.toLowerCase(),e)},[null==P?void 0:P.name]),ie=xe({appName:o,closeDrawer:Y,currentPath:null==N?void 0:N.path,env:s,helpdeskConfig:m,isOpen:L,joltPromise:D,onChangePath:oe,openDrawer:()=>P&&J(P),userId:U},P?le[P.name]:{}),ce=xe({},I,{Chat:null==K?void 0:K.unread});return t.createElement(u,{theme:gn},t.createElement(B,null,te?t.createElement(t.Fragment,null,t.createElement(g,{left:0,position:"absolute",right:0,pointerEvents:"none",style:{minHeight:ne},top:0,zIndex:10001},t.createElement(g,{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(g,{alignment:"center",flex:"1",position:"relative"},t.createElement(h,{css:{WebkitTapHighlightColor:"transparent"},color:L?Pt.lightNeutral62:Pt.lightNeutral24,hover:{color:Pt.lightNeutral24},icon:{name:L?"toolbar.planningCenterO":"toolbar.planningCenter",size:"20px"},onClick:()=>Y(),padding:2,theme:!1,title:"Home"})),[W,...Q].map(e=>t.createElement(g,{alignment:"center",flex:"1",key:e.name,position:"relative"},t.createElement(h,{id:`toolbar-${e.name.toLowerCase()}`,"aria-label":`${e.name}`,color:L&&P===e?Pt.lightNeutral24:Pt.lightNeutral62,css:{WebkitTapHighlightColor:"transparent"},hover:{color:Pt.lightNeutral24},key:e.name,onClick:()=>re(e),paddingHorizontal:2,paddingVertical:2,theme:!1},t.createElement(y,{position:"relative"},ce[e.name]&&t.createElement(Nn,{right:-.5,top:-.5}),t.createElement(E,{name:L&&P===e?e.icons.active:e.icons.static,size:"20px"}))))))),O&&t.createElement(kn,{id:`toolbarDrawer${P.name}`,bottom:"52px",height:L?"calc(100% - 52px)":"0px",overflow:"auto",position:"absolute"},t.createElement(P.component,xe({},ie)))):t.createElement(g,{height:"100vh",position:"absolute",right:0,width:L?"calc(360px + 48px)":"48px",transition:"all 100ms ease-in-out"},t.createElement(g,{backgroundColor:"surface",borderLeftColor:"separatorTertiary",borderLeftWidth:1,grow:1,paddingVertical:1,spacing:t.createElement(p,{margin:1.5}),zIndex:2,position:"absolute",right:0,height:"100%",width:"48px"},t.createElement(g,{alignment:"center","data-pendo":"toolbar-profile-support-wrapper",spacing:2},t.createElement(h,{"data-pendo":"toolbar-profile",onClick:()=>X(ee),radius:0,theme:!1},t.createElement(A,{alt:`${w}'s avatar`,hover:{outlineColor:Pt.lightNeutral62},outlineColor:L&&O&&"Profile"==P.name?Pt.lightNeutral62:"transparent",outlineOffset:"2px",outlineStyle:"solid",outlineWidth:"2px",size:"sm",source:C})),t.createElement(ol,{currentContent:P,indicatorState:ce,key:W.name,onClick:q,open:L,tool:W})),t.createElement(g,{alignment:"center",spacing:2},Q.map(e=>t.createElement(ol,{currentContent:P,indicatorState:ce,key:e.name,onClick:()=>X(e),open:L,tool:e})))),O&&t.createElement(kn,{hasShadow:!0,id:`toolbarDrawer${P.name}`,width:"360px"},t.createElement(P.component,xe({},ie))))))}const ol=({currentContent:e,indicatorState:n,onClick:a,open:r,tool:l})=>t.createElement(y,{"data-pendo":`toolbar-${l.name.toLowerCase()}`,key:l.name,position:"relative"},n[l.name]&&t.createElement(Nn,{right:.25,top:.25}),t.createElement(h,{id:`toolbar-${l.name.toLowerCase()}`,color:r&&e===l?Pt.lightNeutral24:Pt.lightNeutral62,hover:{color:Pt.lightNeutral24},icon:{name:r&&e===l?l.icons.active:l.icons.static,size:"20px"},key:l.name,onClick:a,title:`Open ${l.name} drawer`,theme:!1}));export{Re as AppsProvider,ct as BellIcon,Fe as ConnectedPeopleProvider,Be as DisplaySwitch,jt as NotSmallRoute,Ft as NotSmallTopbar,Yt as PlatformAnnouncements,Jt as PlatformAnnouncementsStyleProvider,nn as ProductAnnouncement,an as ProductAnnouncementStyleProvider,Cn as SmallRoute,bn as SmallTopbar,ut as SpyglassIcon,Gt as StyledPlatformAnnouncement,rn as StyledProductAnnouncement,ln as StyledProductAnnouncementDimissButton,Zn as SwitchView,ll as Toolbar,pt as XIcon,Ue as mapApps,Ve as railsCsrfFetch};
|
|
2
2
|
//# sourceMappingURL=topbar.modern.js.map
|