@planningcenter/topbar 12.7.0 → 12.8.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.
@@ -1,16 +1,17 @@
1
1
  import { Link, Button, Popover, PopoverTrigger, PopoverContent, ButtonGroup, Dropdown, DropdownTrigger, DropdownIconButton, DropdownMenu, DropdownLink, Flex, Select, IconButton, Modal } from '@planningcenter/tapestry';
2
2
  import * as React from 'react';
3
- import React__default, { useState, useEffect, useMemo, useLayoutEffect, useContext, createContext, useCallback, useRef } from 'react';
3
+ import React__default, { useEffect, useState, useMemo, useLayoutEffect, useContext, createContext, useCallback, useRef } from 'react';
4
4
  import pcoUrl$1, { pcoUrl as pcoUrl$2, pcoApiUrl } from '@planningcenter/url';
5
5
  import * as general from '@planningcenter/icons/paths/general';
6
6
  import Jolt from '@planningcenter/jolt-client';
7
7
  import { useSyncExternalStore } from 'use-sync-external-store/shim';
8
- import 'react/jsx-runtime';
8
+ import * as accounts from '@planningcenter/icons/paths/accounts';
9
9
  import * as toolbar from '@planningcenter/icons/paths/toolbar';
10
+ import 'react/jsx-runtime';
10
11
  import datetimeFmt from '@planningcenter/datetime-fmt';
11
12
  import pluralize from 'pluralize';
12
13
  import * as logomarks from '@planningcenter/icons/paths/logomark';
13
- import { ThemeProvider, Divider, Button as Button$1, StackView as StackView$2, Text, Icon as Icon$1, designSystem, Box, Heading, GridView, Avatar as Avatar$1, Link as Link$1, HeadingUppercase, List, Combobox, Logo, Dropdown as Dropdown$1, Spinner, Badge } from '@planningcenter/tapestry-react';
14
+ import { ThemeProvider, Divider, Button as Button$1, StackView as StackView$2, Text, Icon as Icon$1, designSystem, Box, Heading, GridView, Avatar as Avatar$1, Link as Link$1, HeadingUppercase, List, Spinner, Combobox, Logo, Dropdown as Dropdown$1, Badge } from '@planningcenter/tapestry-react';
14
15
  import { createPortal } from 'react-dom';
15
16
  import { components, UiExtensionFirstPartyComponent, UiExtensionDataContext } from '@planningcenter/add-ons';
16
17
  import * as churchCenter from '@planningcenter/icons/paths/church-center';
@@ -20,7 +21,7 @@ import algoliasearch from 'algoliasearch';
20
21
  import { useSearchBox, useHits, InstantSearch, Configure } from 'react-instantsearch-core';
21
22
  import { TransitionGroup, Transition } from 'react-transition-group';
22
23
 
23
- var styles$u = {"accessibility-toolbar":"accessibility-toolbar-jgjUG"};
24
+ var styles$r = {"accessibility-toolbar":"accessibility-toolbar-jgjUG"};
24
25
 
25
26
  const AccessibilityToolbar = ({
26
27
  children
@@ -32,7 +33,7 @@ const AccessibilityToolbar = ({
32
33
  (_a = document.getElementById("main-content")) === null || _a === void 0 ? void 0 : _a.focus();
33
34
  };
34
35
  return /*#__PURE__*/React__default.createElement("div", {
35
- className: styles$u["accessibility-toolbar"]
36
+ className: styles$r["accessibility-toolbar"]
36
37
  }, /*#__PURE__*/React__default.createElement(Link, {
37
38
  href: "#main-content",
38
39
  kind: "primary",
@@ -351,11 +352,11 @@ const X = ({
351
352
  fill: fill
352
353
  })));
353
354
 
354
- var styles$t = {"announcement":"announcement-pI5tM","announcement--platform":"announcement--platform-EcUn2","announcement--promo":"announcement--promo-FarUk","announcement-icon":"announcement-icon-Ov39-","announcement-content":"announcement-content-q2ad6","dismiss":"dismiss-wUAoU","dismiss--promo":"dismiss--promo-7zvO4"};
355
+ var styles$q = {"announcement":"announcement-pI5tM","announcement--platform":"announcement--platform-EcUn2","announcement--promo":"announcement--promo-FarUk","announcement-icon":"announcement-icon-Ov39-","announcement-content":"announcement-content-q2ad6","dismiss":"dismiss-wUAoU","dismiss--promo":"dismiss--promo-7zvO4"};
355
356
 
356
357
  function AnnouncementIcon() {
357
358
  return /*#__PURE__*/React__default.createElement("svg", {
358
- className: styles$t["announcement-icon"],
359
+ className: styles$q["announcement-icon"],
359
360
  width: "16",
360
361
  height: "16",
361
362
  viewBox: "0 0 16 16",
@@ -480,7 +481,7 @@ let StyledAnnouncement$1 = class StyledAnnouncement extends React__default.Compo
480
481
  } = this.props;
481
482
  const isPromo = variant === "promo";
482
483
  return /*#__PURE__*/React__default.createElement("div", {
483
- className: classnames(styles$t["announcement"], styles$t[`announcement--${variant !== null && variant !== void 0 ? variant : "platform"}`]),
484
+ className: classnames(styles$q["announcement"], styles$q[`announcement--${variant !== null && variant !== void 0 ? variant : "platform"}`]),
484
485
  "data-announcement-variant": variant !== null && variant !== void 0 ? variant : "platform",
485
486
  style: isPromo ? {
486
487
  backgroundImage: promoBackgroundUrl,
@@ -489,7 +490,7 @@ let StyledAnnouncement$1 = class StyledAnnouncement extends React__default.Compo
489
490
  backgroundSize: "cover"
490
491
  } : undefined
491
492
  }, !isPromo && /*#__PURE__*/React__default.createElement(AnnouncementIcon, null), /*#__PURE__*/React__default.createElement("div", {
492
- className: styles$t["announcement-content"],
493
+ className: styles$q["announcement-content"],
493
494
  style: style,
494
495
  ...platformProps
495
496
  }));
@@ -538,7 +539,7 @@ function StyledDismissButton$1({
538
539
  const isPromo = variant === "promo";
539
540
  return /*#__PURE__*/React__default.createElement("button", {
540
541
  type: "button",
541
- className: classnames(styles$t.dismiss, isPromo && styles$t["dismiss--promo"]),
542
+ className: classnames(styles$q.dismiss, isPromo && styles$q["dismiss--promo"]),
542
543
  ...props
543
544
  }, /*#__PURE__*/React__default.createElement(X, {
544
545
  fill: isPromo ? "currentColor" : "white",
@@ -618,9 +619,9 @@ class StyledAnnouncement extends React__default.Component {
618
619
  ...platformProps
619
620
  } = this.props;
620
621
  return /*#__PURE__*/React__default.createElement("div", {
621
- className: styles$t["announcement"]
622
+ className: styles$q["announcement"]
622
623
  }, /*#__PURE__*/React__default.createElement(AnnouncementIcon, null), /*#__PURE__*/React__default.createElement("div", {
623
- className: styles$t["announcement-content"],
624
+ className: styles$q["announcement-content"],
624
625
  style: style,
625
626
  ...platformProps
626
627
  }));
@@ -631,7 +632,7 @@ function StyledDismissButton({
631
632
  }) {
632
633
  return /*#__PURE__*/React__default.createElement("button", {
633
634
  type: "button",
634
- className: styles$t.dismiss,
635
+ className: styles$q.dismiss,
635
636
  ...props
636
637
  }, /*#__PURE__*/React__default.createElement(X, {
637
638
  fill: "white",
@@ -1190,6 +1191,9 @@ function groupApps(apps) {
1190
1191
  accountsProduct: apps.find(({
1191
1192
  name
1192
1193
  }) => name === "Accounts"),
1194
+ hasChurchCenter: apps.some(({
1195
+ name
1196
+ }) => name === "Publishing"),
1193
1197
  homeProduct: apps.find(({
1194
1198
  name
1195
1199
  }) => name === "Home"),
@@ -1200,7 +1204,7 @@ function groupApps(apps) {
1200
1204
  }
1201
1205
 
1202
1206
  // TODO: Use Fragments when we React 16 is a baseline
1203
- function Accounts$2() {
1207
+ function Accounts$1() {
1204
1208
  return [/*#__PURE__*/React__default.createElement("defs", {
1205
1209
  key: "def"
1206
1210
  }, /*#__PURE__*/React__default.createElement("linearGradient", {
@@ -1224,7 +1228,7 @@ function Accounts$2() {
1224
1228
  fill: "url(#2e1ed2e7-b842-4126-8f57-f6b6dd63ddb6)"
1225
1229
  })];
1226
1230
  }
1227
- function API$2() {
1231
+ function API$1() {
1228
1232
  return [/*#__PURE__*/React__default.createElement("defs", {
1229
1233
  key: "def"
1230
1234
  }, /*#__PURE__*/React__default.createElement("linearGradient", {
@@ -1248,7 +1252,7 @@ function API$2() {
1248
1252
  fill: "url(#c8ec303e-a96d-4850-93ae-70864e3306bb)"
1249
1253
  })];
1250
1254
  }
1251
- function Calendar$2() {
1255
+ function Calendar$1() {
1252
1256
  return [/*#__PURE__*/React__default.createElement("defs", {
1253
1257
  key: "defs"
1254
1258
  }, /*#__PURE__*/React__default.createElement("linearGradient", {
@@ -1272,7 +1276,7 @@ function Calendar$2() {
1272
1276
  fill: "url(#calendar-gradient)"
1273
1277
  })];
1274
1278
  }
1275
- function Chat$3() {
1279
+ function Chat$2() {
1276
1280
  return [/*#__PURE__*/React__default.createElement("defs", {
1277
1281
  key: "def"
1278
1282
  }, /*#__PURE__*/React__default.createElement("linearGradient", {
@@ -1296,7 +1300,7 @@ function Chat$3() {
1296
1300
  fill: "url(#chat-gradient)"
1297
1301
  })];
1298
1302
  }
1299
- function CheckIns$2() {
1303
+ function CheckIns$1() {
1300
1304
  return [/*#__PURE__*/React__default.createElement("defs", {
1301
1305
  key: "def"
1302
1306
  }, /*#__PURE__*/React__default.createElement("linearGradient", {
@@ -1320,7 +1324,7 @@ function CheckIns$2() {
1320
1324
  fill: "url(#679bc2bf-38c8-45ab-9ee3-a2ff814fead7)"
1321
1325
  })];
1322
1326
  }
1323
- function ChurchCenter$2() {
1327
+ function ChurchCenter$1() {
1324
1328
  return [/*#__PURE__*/React__default.createElement("defs", {
1325
1329
  key: "def"
1326
1330
  }, /*#__PURE__*/React__default.createElement("linearGradient", {
@@ -1344,7 +1348,7 @@ function ChurchCenter$2() {
1344
1348
  fill: "url(#6de99831-a6f8-498e-9bf3-9d55c8d887fa)"
1345
1349
  })];
1346
1350
  }
1347
- function Giving$2() {
1351
+ function Giving$1() {
1348
1352
  return [/*#__PURE__*/React__default.createElement("defs", {
1349
1353
  key: "def"
1350
1354
  }, /*#__PURE__*/React__default.createElement("linearGradient", {
@@ -1368,7 +1372,7 @@ function Giving$2() {
1368
1372
  fill: "url(#0aae6372-b733-476d-af45-8777c08c1e24)"
1369
1373
  })];
1370
1374
  }
1371
- function Groups$2() {
1375
+ function Groups$1() {
1372
1376
  return [/*#__PURE__*/React__default.createElement("defs", {
1373
1377
  key: "def"
1374
1378
  }, /*#__PURE__*/React__default.createElement("linearGradient", {
@@ -1392,7 +1396,7 @@ function Groups$2() {
1392
1396
  fill: "url(#86d10072-1c7f-4a02-88fe-0735565ae99a)"
1393
1397
  })];
1394
1398
  }
1395
- function Home$2() {
1399
+ function Home$1() {
1396
1400
  return [/*#__PURE__*/React__default.createElement("defs", {
1397
1401
  key: "def"
1398
1402
  }, /*#__PURE__*/React__default.createElement("linearGradient", {
@@ -1416,7 +1420,7 @@ function Home$2() {
1416
1420
  fill: "url(#paint0_linear_1_2)"
1417
1421
  })];
1418
1422
  }
1419
- function People$2() {
1423
+ function People$1() {
1420
1424
  return [/*#__PURE__*/React__default.createElement("defs", {
1421
1425
  key: "def"
1422
1426
  }, /*#__PURE__*/React__default.createElement("linearGradient", {
@@ -1440,7 +1444,7 @@ function People$2() {
1440
1444
  fill: "url(#7f805f16-2322-4b42-b61a-2bf71eadb25a)"
1441
1445
  })];
1442
1446
  }
1443
- function Publishing$2() {
1447
+ function Publishing$1() {
1444
1448
  return [/*#__PURE__*/React__default.createElement("defs", {
1445
1449
  key: "def"
1446
1450
  }, /*#__PURE__*/React__default.createElement("linearGradient", {
@@ -1479,7 +1483,7 @@ function Publishing$2() {
1479
1483
  key: "circle"
1480
1484
  })];
1481
1485
  }
1482
- function Registrations$2() {
1486
+ function Registrations$1() {
1483
1487
  return [/*#__PURE__*/React__default.createElement("defs", {
1484
1488
  key: "def"
1485
1489
  }, /*#__PURE__*/React__default.createElement("linearGradient", {
@@ -1503,7 +1507,7 @@ function Registrations$2() {
1503
1507
  fill: "url(#bd67604d-f11c-4431-bd82-159c57241115)"
1504
1508
  })];
1505
1509
  }
1506
- function Services$2() {
1510
+ function Services$1() {
1507
1511
  return [/*#__PURE__*/React__default.createElement("defs", {
1508
1512
  key: "def"
1509
1513
  }, /*#__PURE__*/React__default.createElement("linearGradient", {
@@ -1530,19 +1534,19 @@ function Services$2() {
1530
1534
 
1531
1535
  var ColorAppSquircles = /*#__PURE__*/Object.freeze({
1532
1536
  __proto__: null,
1533
- API: API$2,
1534
- Accounts: Accounts$2,
1535
- Calendar: Calendar$2,
1536
- Chat: Chat$3,
1537
- CheckIns: CheckIns$2,
1538
- ChurchCenter: ChurchCenter$2,
1539
- Giving: Giving$2,
1540
- Groups: Groups$2,
1541
- Home: Home$2,
1542
- People: People$2,
1543
- Publishing: Publishing$2,
1544
- Registrations: Registrations$2,
1545
- Services: Services$2
1537
+ API: API$1,
1538
+ Accounts: Accounts$1,
1539
+ Calendar: Calendar$1,
1540
+ Chat: Chat$2,
1541
+ CheckIns: CheckIns$1,
1542
+ ChurchCenter: ChurchCenter$1,
1543
+ Giving: Giving$1,
1544
+ Groups: Groups$1,
1545
+ Home: Home$1,
1546
+ People: People$1,
1547
+ Publishing: Publishing$1,
1548
+ Registrations: Registrations$1,
1549
+ Services: Services$1
1546
1550
  });
1547
1551
 
1548
1552
  function Squircle$1({
@@ -1553,7 +1557,7 @@ function Squircle$1({
1553
1557
  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"
1554
1558
  });
1555
1559
  }
1556
- function Accounts$1({
1560
+ function Accounts({
1557
1561
  color
1558
1562
  }) {
1559
1563
  return /*#__PURE__*/React__default.createElement("path", {
@@ -1561,7 +1565,7 @@ function Accounts$1({
1561
1565
  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"
1562
1566
  });
1563
1567
  }
1564
- function API$1({
1568
+ function API({
1565
1569
  color
1566
1570
  }) {
1567
1571
  return /*#__PURE__*/React__default.createElement("path", {
@@ -1569,7 +1573,7 @@ function API$1({
1569
1573
  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"
1570
1574
  });
1571
1575
  }
1572
- function Calendar$1({
1576
+ function Calendar({
1573
1577
  color
1574
1578
  }) {
1575
1579
  return /*#__PURE__*/React__default.createElement("path", {
@@ -1577,7 +1581,7 @@ function Calendar$1({
1577
1581
  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"
1578
1582
  });
1579
1583
  }
1580
- function Chat$2({
1584
+ function Chat$1({
1581
1585
  color
1582
1586
  }) {
1583
1587
  return /*#__PURE__*/React__default.createElement("path", {
@@ -1585,7 +1589,7 @@ function Chat$2({
1585
1589
  d: "M13.639 5.941H6.361C5.965 5.922 5.579 6.062 5.285 6.329C4.992 6.597 4.815 6.97 4.792 7.368V12.042C4.815 12.44 4.992 12.813 5.285 13.081C5.579 13.348 5.965 13.488 6.361 13.469H7.969L9.997 15.246L12.025 13.469H13.639C14.035 13.488 14.421 13.348 14.715 13.081C15.008 12.813 15.185 12.44 15.208 12.042V7.368C15.185 6.97 15.008 6.597 14.715 6.329C14.421 6.062 14.035 5.922 13.639 5.941Z"
1586
1590
  });
1587
1591
  }
1588
- function CheckIns$1({
1592
+ function CheckIns({
1589
1593
  color
1590
1594
  }) {
1591
1595
  return /*#__PURE__*/React__default.createElement("path", {
@@ -1593,7 +1597,7 @@ function CheckIns$1({
1593
1597
  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"
1594
1598
  });
1595
1599
  }
1596
- function ChurchCenter$1({
1600
+ function ChurchCenter({
1597
1601
  color
1598
1602
  }) {
1599
1603
  return /*#__PURE__*/React__default.createElement("path", {
@@ -1601,7 +1605,7 @@ function ChurchCenter$1({
1601
1605
  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"
1602
1606
  });
1603
1607
  }
1604
- function Giving$1({
1608
+ function Giving({
1605
1609
  color
1606
1610
  }) {
1607
1611
  return /*#__PURE__*/React__default.createElement("path", {
@@ -1609,7 +1613,7 @@ function Giving$1({
1609
1613
  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"
1610
1614
  });
1611
1615
  }
1612
- function Groups$1({
1616
+ function Groups({
1613
1617
  color
1614
1618
  }) {
1615
1619
  return /*#__PURE__*/React__default.createElement("path", {
@@ -1617,7 +1621,7 @@ function Groups$1({
1617
1621
  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"
1618
1622
  });
1619
1623
  }
1620
- function Home$1({
1624
+ function Home({
1621
1625
  color
1622
1626
  }) {
1623
1627
  return /*#__PURE__*/React__default.createElement("path", {
@@ -1625,7 +1629,7 @@ function Home$1({
1625
1629
  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"
1626
1630
  });
1627
1631
  }
1628
- function People$1({
1632
+ function People({
1629
1633
  color
1630
1634
  }) {
1631
1635
  return /*#__PURE__*/React__default.createElement("path", {
@@ -1633,7 +1637,7 @@ function People$1({
1633
1637
  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"
1634
1638
  });
1635
1639
  }
1636
- function Publishing$1({
1640
+ function Publishing({
1637
1641
  color
1638
1642
  }) {
1639
1643
  return /*#__PURE__*/React__default.createElement("path", {
@@ -1641,7 +1645,7 @@ function Publishing$1({
1641
1645
  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"
1642
1646
  });
1643
1647
  }
1644
- function Registrations$1({
1648
+ function Registrations({
1645
1649
  color
1646
1650
  }) {
1647
1651
  return /*#__PURE__*/React__default.createElement("path", {
@@ -1649,7 +1653,7 @@ function Registrations$1({
1649
1653
  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"
1650
1654
  });
1651
1655
  }
1652
- function Services$1({
1656
+ function Services({
1653
1657
  color
1654
1658
  }) {
1655
1659
  return /*#__PURE__*/React__default.createElement("path", {
@@ -1660,19 +1664,19 @@ function Services$1({
1660
1664
 
1661
1665
  var AppSymbols = /*#__PURE__*/Object.freeze({
1662
1666
  __proto__: null,
1663
- API: API$1,
1664
- Accounts: Accounts$1,
1665
- Calendar: Calendar$1,
1666
- Chat: Chat$2,
1667
- CheckIns: CheckIns$1,
1668
- ChurchCenter: ChurchCenter$1,
1669
- Giving: Giving$1,
1670
- Groups: Groups$1,
1671
- Home: Home$1,
1672
- People: People$1,
1673
- Publishing: Publishing$1,
1674
- Registrations: Registrations$1,
1675
- Services: Services$1,
1667
+ API: API,
1668
+ Accounts: Accounts,
1669
+ Calendar: Calendar,
1670
+ Chat: Chat$1,
1671
+ CheckIns: CheckIns,
1672
+ ChurchCenter: ChurchCenter,
1673
+ Giving: Giving,
1674
+ Groups: Groups,
1675
+ Home: Home,
1676
+ People: People,
1677
+ Publishing: Publishing,
1678
+ Registrations: Registrations,
1679
+ Services: Services,
1676
1680
  Squircle: Squircle$1
1677
1681
  });
1678
1682
 
@@ -1753,7 +1757,40 @@ function MonoAppIcon({
1753
1757
  })) : (/*#__PURE__*/React__default.createElement("div", null, "appName not supported")));
1754
1758
  }
1755
1759
 
1756
- var styles$s = {"name":"name-UNqbW"};
1760
+ var styles$p = {"name":"name-UNqbW"};
1761
+
1762
+ const collections = {
1763
+ accounts,
1764
+ general,
1765
+ toolbar
1766
+ };
1767
+ const paths = collections;
1768
+ function Icon({
1769
+ name,
1770
+ size = 16,
1771
+ style,
1772
+ theme,
1773
+ title,
1774
+ ...props
1775
+ }) {
1776
+ const [collection, symbol] = name.split(".");
1777
+ return /*#__PURE__*/React__default.createElement("svg", {
1778
+ "aria-hidden": title ? undefined : true,
1779
+ fill: "currentColor",
1780
+ height: size,
1781
+ role: title ? "img" : undefined,
1782
+ style: {
1783
+ color: theme && `var(${theme})`,
1784
+ flexShrink: 0,
1785
+ ...style
1786
+ },
1787
+ viewBox: "0 0 16 16",
1788
+ width: size,
1789
+ ...props
1790
+ }, title && /*#__PURE__*/React__default.createElement("title", null, title), /*#__PURE__*/React__default.createElement("path", {
1791
+ d: paths[collection][symbol]
1792
+ }));
1793
+ }
1757
1794
 
1758
1795
  const AppRow = ({
1759
1796
  appName,
@@ -1766,18 +1803,27 @@ const AppRow = ({
1766
1803
  colors: colors,
1767
1804
  size: iconSize
1768
1805
  }), /*#__PURE__*/React__default.createElement("span", {
1769
- className: styles$s.name
1806
+ className: styles$p.name
1770
1807
  }, "Account settings"));
1771
1808
  }
1809
+ if (appName === "Church Center") {
1810
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Icon, {
1811
+ name: "accounts.churchCenterO",
1812
+ size: iconSize,
1813
+ theme: "--t-icon-color"
1814
+ }), /*#__PURE__*/React__default.createElement("span", {
1815
+ className: styles$p.name
1816
+ }, "Church Center"));
1817
+ }
1772
1818
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(ColorAppIcon, {
1773
1819
  appName: appName.replace(/[\s-]/, ""),
1774
1820
  size: iconSize
1775
1821
  }), /*#__PURE__*/React__default.createElement("span", {
1776
- className: styles$s.name
1822
+ className: styles$p.name
1777
1823
  }, appName));
1778
1824
  };
1779
1825
 
1780
- var styles$r = {"button":"button-NPHAj","label":"label-1EckO","chevron":"chevron-6-PM4"};
1826
+ var styles$o = {"button":"button-NPHAj","label":"label-1EckO","chevron":"chevron-6-PM4"};
1781
1827
 
1782
1828
  const AppsButton = /*#__PURE__*/React__default.forwardRef(({
1783
1829
  appName,
@@ -1789,10 +1835,10 @@ const AppsButton = /*#__PURE__*/React__default.forwardRef(({
1789
1835
  ...restProps,
1790
1836
  ref: ref,
1791
1837
  "aria-label": `App switcher: ${appName}`,
1792
- className: styles$r.button,
1838
+ className: styles$o.button,
1793
1839
  kind: "neutral-inline",
1794
1840
  label: /*#__PURE__*/React__default.createElement("span", {
1795
- className: styles$r.label
1841
+ className: styles$o.label
1796
1842
  }, isAccounts ? "Account settings" : appName),
1797
1843
  prefix: isAccounts ? (/*#__PURE__*/React__default.createElement(MonoAppIcon, {
1798
1844
  appName: "Accounts",
@@ -1803,26 +1849,29 @@ const AppsButton = /*#__PURE__*/React__default.forwardRef(({
1803
1849
  size: 24
1804
1850
  })),
1805
1851
  suffix: /*#__PURE__*/React__default.createElement(DisclosureChevronIcon, {
1806
- className: `${styles$r.chevron} symbol`
1852
+ className: `${styles$o.chevron} symbol`
1807
1853
  })
1808
1854
  });
1809
1855
  });
1810
1856
  AppsButton.displayName = "AppsButton";
1811
1857
 
1812
- var styles$q = {"nav":"nav-y-6ML","popover-content":"popover-content-jOAAY","list":"list-jUxvp","link":"link-LMp2h","current":"current-4U4VL","accounts-item":"accounts-item-erJW0","accounts-link":"accounts-link-4jwPW"};
1858
+ var styles$n = {"nav":"nav-y-6ML","popover-content":"popover-content-jOAAY","list":"list-jUxvp","link":"link-LMp2h","current":"current-4U4VL","accounts-item":"accounts-item-erJW0","accounts-link":"accounts-link-4jwPW"};
1813
1859
 
1814
1860
  const AppsMenu = ({
1815
1861
  appName,
1816
1862
  apps,
1863
+ churchCenterEnabled = false,
1817
1864
  colors,
1818
1865
  env,
1819
1866
  requestAppsFetch
1820
1867
  }) => {
1821
1868
  const {
1822
1869
  accountsProduct,
1870
+ hasChurchCenter,
1823
1871
  homeProduct,
1824
1872
  restProducts
1825
1873
  } = groupApps(apps);
1874
+ const showChurchCenter = churchCenterEnabled && hasChurchCenter;
1826
1875
  const renderProductLink = name => {
1827
1876
  const isCurrent = name === appName;
1828
1877
  return /*#__PURE__*/React__default.createElement("li", {
@@ -1830,8 +1879,8 @@ const AppsMenu = ({
1830
1879
  }, /*#__PURE__*/React__default.createElement("a", {
1831
1880
  "aria-current": isCurrent ? "page" : undefined,
1832
1881
  "aria-label": name,
1833
- className: classnames(styles$q.link, {
1834
- [styles$q.current]: isCurrent
1882
+ className: classnames(styles$n.link, {
1883
+ [styles$n.current]: isCurrent
1835
1884
  }),
1836
1885
  "data-pendo": `app-switcher--change-app--${name}`,
1837
1886
  "data-turbolinks": false,
@@ -1847,594 +1896,41 @@ const AppsMenu = ({
1847
1896
  colors: colors
1848
1897
  })), /*#__PURE__*/React__default.createElement(PopoverContent, {
1849
1898
  "aria-label": "Switch app",
1850
- className: styles$q["popover-content"],
1899
+ className: styles$n["popover-content"],
1851
1900
  placement: "bottom start"
1852
1901
  }, /*#__PURE__*/React__default.createElement("nav", {
1853
- className: styles$q.nav,
1902
+ className: styles$n.nav,
1854
1903
  "data-pendo": "app-switcher"
1855
1904
  }, /*#__PURE__*/React__default.createElement("ul", {
1856
- className: styles$q.list,
1905
+ className: styles$n.list,
1857
1906
  role: "list"
1858
- }, homeProduct && renderProductLink(homeProduct.name), restProducts.map(({
1859
- name
1860
- }) => renderProductLink(name)), accountsProduct && (/*#__PURE__*/React__default.createElement("li", {
1861
- className: styles$q["accounts-item"]
1862
- }, /*#__PURE__*/React__default.createElement("a", {
1863
- "aria-current": appName === accountsProduct.name ? "page" : undefined,
1864
- "aria-label": "Account settings",
1865
- className: classnames(styles$q.link, styles$q["accounts-link"]),
1866
- "data-pendo": "app-switcher--change-app--Accounts",
1867
- "data-turbolinks": false,
1868
- href: pcoUrl$1(env)("accounts") + getAppsSwitchProductPath(accountsProduct.name)
1869
- }, /*#__PURE__*/React__default.createElement(AppRow, {
1870
- appName: "Accounts",
1871
- colors: colors
1872
- }))))))));
1873
- };
1874
-
1875
- const fill = "var(--t-text-color)";
1876
- function Accounts({
1877
- size = 20
1878
- }) {
1879
- return /*#__PURE__*/React__default.createElement("svg", {
1880
- "data-logo": "mono-app-text",
1881
- height: size,
1882
- viewBox: "0 0 77.073 20",
1883
- xmlns: "http://www.w3.org/2000/svg"
1884
- }, /*#__PURE__*/React__default.createElement("title", null, "accounts-text"), /*#__PURE__*/React__default.createElement("path", {
1885
- fill: fill,
1886
- 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"
1887
- }));
1888
- }
1889
- function API({
1890
- size = 20
1891
- }) {
1892
- return /*#__PURE__*/React__default.createElement("svg", {
1893
- "data-logo": "mono-app-text",
1894
- height: size,
1895
- viewBox: "0 0 119.5 20",
1896
- xmlns: "http://www.w3.org/2000/svg"
1897
- }, /*#__PURE__*/React__default.createElement("title", null, "api-text"), /*#__PURE__*/React__default.createElement("path", {
1898
- fill: fill,
1899
- 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"
1900
- }));
1901
- }
1902
- function Calendar({
1903
- size = 20
1904
- }) {
1905
- return /*#__PURE__*/React__default.createElement("svg", {
1906
- "data-logo": "mono-app-text",
1907
- height: size,
1908
- viewBox: "0 0 73.83 20",
1909
- xmlns: "http://www.w3.org/2000/svg"
1910
- }, /*#__PURE__*/React__default.createElement("title", null, "calendar-text"), /*#__PURE__*/React__default.createElement("path", {
1911
- fill: fill,
1912
- 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"
1913
- }));
1914
- }
1915
- function Chat$1({
1916
- size = 20
1917
- }) {
1918
- return /*#__PURE__*/React__default.createElement("svg", {
1919
- "data-logo": "mono-app-text",
1920
- height: size,
1921
- viewBox: "0 0 35.5988 20",
1922
- xmlns: "http://www.w3.org/2000/svg"
1923
- }, /*#__PURE__*/React__default.createElement("title", null, "chat-text"), /*#__PURE__*/React__default.createElement("path", {
1924
- fill: fill,
1925
- transform: "translate(0, 1.121) scale(0.739013)",
1926
- d: "M43.04 1.73047C43.44 1.73047 43.7499 2.04985 43.75 2.46973V5.95996H47.04C47.45 5.95996 47.7803 6.2802 47.7803 6.7002V7.84961C47.7803 8.23961 47.43 8.58984 47.04 8.58984H43.75V15.3496C43.75 16.3394 44.0803 16.54 44.6602 16.54C45.5502 16.54 46.3609 16.1204 46.6709 15.9404C46.8609 15.8305 47.041 15.8004 47.2109 15.8604C47.3807 15.9205 47.5204 16.0705 47.6104 16.2803L48.1104 17.5996V17.6104C48.3301 18.1502 47.89 18.4295 47.75 18.5195C47.2599 18.8196 45.7304 19.4599 44.1006 19.46C41.0906 19.46 40.7002 17.3297 40.7002 15.4697V8.58984H39.3408C38.8808 8.58984 38.6006 8.20961 38.6006 7.84961V6.7002C38.6006 6.2602 38.9008 5.95996 39.3408 5.95996H40.7002V2.46973C40.7003 2.06985 41.0405 1.73049 41.4404 1.73047H43.04ZM32.915 5.66992C37.2206 5.6718 37.5703 8.32099 37.5703 11.5098V18.4004C37.5701 18.7902 37.2199 19.1396 36.8301 19.1396H35.9102C35.5505 19.1395 35.3907 18.93 35.2607 18.6104L35.0107 17.9199C33.9008 18.9398 32.5807 19.4501 31.0908 19.4502C28.5208 19.4502 26.79 17.6198 26.79 15.0098C26.7902 12.3999 28.8807 10.71 32.1006 10.71C33.1801 10.71 34.1997 10.9595 34.5801 11.0596C34.59 9.92981 34.4202 9.2398 34.0303 8.83984C33.7303 8.53002 33.2705 8.37994 32.6309 8.37988C31.141 8.37988 29.6809 8.8102 29.0508 8.99023C28.6208 9.08022 28.281 8.83997 28.1709 8.37012L27.9209 7.30957C27.841 6.85975 28.001 6.56012 28.4209 6.41016C28.5055 6.37846 30.4209 5.67095 32.915 5.66992ZM6.76074 5.66016C8.77061 5.66022 10.2906 6.39026 11.5605 7.9502C11.8303 8.29011 11.7804 8.72987 11.4307 9.0498L10.4209 9.96973C9.9709 10.3897 9.63016 10.0501 9.41016 9.83008C8.84021 9.21018 7.83066 8.58023 6.84082 8.58008C4.71082 8.58008 3.04004 10.3 3.04004 12.54C3.04007 14.7798 4.67025 16.53 6.75 16.5303C8.13 16.5303 8.80039 15.8595 9.40039 15.2695C9.50034 15.1696 9.611 15.0697 9.71094 14.9697C10.0209 14.6601 10.4004 14.6403 10.7402 14.9102L10.75 14.9004L11.6201 15.5996C12.1201 16.0596 12.0301 16.4404 11.8701 16.6904C10.6901 18.4601 8.87028 19.4297 6.73047 19.4297C2.96047 19.4297 0 16.3596 0 12.5596C0.000214421 8.75975 3.03087 5.66016 6.76074 5.66016ZM15.7705 0C16.1405 2.86086e-05 16.5107 0.370249 16.5107 0.740234V6.88965C17.6589 6.08103 18.8769 5.67116 20.1348 5.66992C23.492 5.67176 25.2705 7.82213 25.2705 11.9004V18.4004C25.2703 18.7902 24.9201 19.1396 24.5303 19.1396H22.9609C22.5611 19.1396 22.2209 18.8002 22.2207 18.4004V11.8496C22.2206 9.74988 21.3504 8.58986 19.7705 8.58984C17.8605 8.58984 16.7808 9.8501 16.5107 10.3701V18.4004C16.5106 18.8402 16.1901 19.1396 15.7402 19.1396H14.2002C13.8004 19.1395 13.4612 18.8001 13.4609 18.4004V0.740234C13.4609 0.350322 13.8003 0.00015739 14.2002 0H15.7705ZM32.3301 12.9805C30.8203 12.9806 29.8008 13.8006 29.8008 14.9805C29.801 16.1602 30.5206 16.9004 31.6904 16.9004V16.9102C32.8904 16.9102 34.1605 16.0597 34.5605 15.4297V13.3799C34.2905 13.2499 33.3801 12.9805 32.3301 12.9805Z"
1927
- }));
1928
- }
1929
- function CheckIns({
1930
- size = 20
1931
- }) {
1932
- return /*#__PURE__*/React__default.createElement("svg", {
1933
- "data-logo": "mono-app-text",
1934
- height: size,
1935
- viewBox: "0 0 79.311 20",
1936
- xmlns: "http://www.w3.org/2000/svg"
1937
- }, /*#__PURE__*/React__default.createElement("title", null, "check-ins-text"), /*#__PURE__*/React__default.createElement("path", {
1938
- fill: fill,
1939
- 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"
1940
- }));
1941
- }
1942
- function ChurchCenter({
1943
- size = 20
1944
- }) {
1945
- return /*#__PURE__*/React__default.createElement("svg", {
1946
- "data-logo": "mono-app-text",
1947
- height: size,
1948
- viewBox: "0 0 118.083 20",
1949
- xmlns: "http://www.w3.org/2000/svg"
1950
- }, /*#__PURE__*/React__default.createElement("title", null, "church-center-text"), /*#__PURE__*/React__default.createElement("path", {
1951
- fill: fill,
1952
- 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"
1953
- }));
1954
- }
1955
- function Giving({
1956
- size = 20
1957
- }) {
1958
- return /*#__PURE__*/React__default.createElement("svg", {
1959
- "data-logo": "mono-app-text",
1960
- height: size,
1961
- viewBox: "0 0 50.486 20",
1962
- xmlns: "http://www.w3.org/2000/svg"
1963
- }, /*#__PURE__*/React__default.createElement("title", null, "giving-text"), /*#__PURE__*/React__default.createElement("path", {
1964
- fill: fill,
1965
- 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"
1966
- }));
1967
- }
1968
- function Home({
1969
- size = 20
1970
- }) {
1971
- return /*#__PURE__*/React__default.createElement("svg", {
1972
- "data-logo": "mono-app-text",
1973
- xmlns: "http://www.w3.org/2000/svg",
1974
- height: size,
1975
- viewBox: "0 0 47.624 20"
1976
- }, /*#__PURE__*/React__default.createElement("title", null, "home-text"), /*#__PURE__*/React__default.createElement("path", {
1977
- fill: fill,
1978
- 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"
1979
- }));
1980
- }
1981
- function Groups({
1982
- size = 20
1983
- }) {
1984
- return /*#__PURE__*/React__default.createElement("svg", {
1985
- "data-logo": "mono-app-text",
1986
- height: size,
1987
- viewBox: "0 0 58.688 20",
1988
- xmlns: "http://www.w3.org/2000/svg"
1989
- }, /*#__PURE__*/React__default.createElement("title", null, "groups-text"), /*#__PURE__*/React__default.createElement("path", {
1990
- fill: fill,
1991
- 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"
1992
- }));
1993
- }
1994
- function People({
1995
- size = 20
1996
- }) {
1997
- return /*#__PURE__*/React__default.createElement("svg", {
1998
- "data-logo": "mono-app-text",
1999
- height: size,
2000
- viewBox: "0 0 57.729 20",
2001
- xmlns: "http://www.w3.org/2000/svg"
2002
- }, /*#__PURE__*/React__default.createElement("title", null, "people-text"), /*#__PURE__*/React__default.createElement("path", {
2003
- fill: fill,
2004
- 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"
2005
- }));
2006
- }
2007
- function Publishing({
2008
- size = 20
2009
- }) {
2010
- return /*#__PURE__*/React__default.createElement("svg", {
2011
- "data-logo": "mono-app-text",
2012
- xmlns: "http://www.w3.org/2000/svg",
2013
- height: size,
2014
- viewBox: "0 0 84.973 20"
2015
- }, /*#__PURE__*/React__default.createElement("title", null, "publishing-text"), /*#__PURE__*/React__default.createElement("path", {
2016
- 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",
2017
- fill: fill
2018
- }));
2019
- }
2020
- function Registrations({
2021
- size = 20
2022
- }) {
2023
- return /*#__PURE__*/React__default.createElement("svg", {
2024
- "data-logo": "mono-app-text",
2025
- xmlns: "http://www.w3.org/2000/svg",
2026
- height: size,
2027
- viewBox: "0 0 105.758 20"
2028
- }, /*#__PURE__*/React__default.createElement("title", null, "registrations-text"), /*#__PURE__*/React__default.createElement("path", {
2029
- fill: fill,
2030
- 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"
2031
- }));
2032
- }
2033
- function Services({
2034
- size = 20
2035
- }) {
2036
- return /*#__PURE__*/React__default.createElement("svg", {
2037
- "data-logo": "mono-app-text",
2038
- xmlns: "http://www.w3.org/2000/svg",
2039
- height: size,
2040
- viewBox: "0 0 67.995 20"
2041
- }, /*#__PURE__*/React__default.createElement("title", null, "services-text"), /*#__PURE__*/React__default.createElement("path", {
2042
- fill: fill,
2043
- 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"
2044
- }));
2045
- }
2046
-
2047
- var MonoAppText = /*#__PURE__*/Object.freeze({
2048
- __proto__: null,
2049
- API: API,
2050
- Accounts: Accounts,
2051
- Calendar: Calendar,
2052
- Chat: Chat$1,
2053
- CheckIns: CheckIns,
2054
- ChurchCenter: ChurchCenter,
2055
- Giving: Giving,
2056
- Groups: Groups,
2057
- Home: Home,
2058
- People: People,
2059
- Publishing: Publishing,
2060
- Registrations: Registrations,
2061
- Services: Services
2062
- });
2063
-
2064
- function MonoAppName({
2065
- appName,
2066
- size = 20
2067
- }) {
2068
- return MonoAppText[appName] ? (/*#__PURE__*/React__default.createElement(MonoAppText[appName], {
2069
- size
2070
- })) : (/*#__PURE__*/React__default.createElement("div", null, "appName not supported"));
2071
- }
2072
-
2073
- var styles$p = {"unbutton":"unbutton-lEbTR"};
2074
-
2075
- function Unbutton({
2076
- className,
2077
- style,
2078
- type = "button",
2079
- ...nativeProps
2080
- }) {
2081
- return /*#__PURE__*/React__default.createElement("button", {
2082
- className: classnames(styles$p.unbutton, className),
2083
- style: {
2084
- ...style
2085
- },
2086
- type: type,
2087
- ...nativeProps
2088
- });
2089
- }
2090
-
2091
- var styles$o = {"button":"button-8Zv7k","button-accounts":"button-accounts-oFhiA","chevron":"chevron-tK3nU","is-expanded":"is-expanded-jmmlH"};
2092
-
2093
- const LegacyAppsButton = ({
2094
- appName,
2095
- colors,
2096
- expanded,
2097
- onClick,
2098
- style = null,
2099
- ...nativeProps
2100
- }) => {
2101
- return /*#__PURE__*/React__default.createElement(Unbutton, {
2102
- "aria-expanded": expanded,
2103
- "aria-haspopup": "true",
2104
- "aria-label": `App switcher: ${appName}`,
2105
- onClick: onClick,
2106
- className: classnames(styles$o.button, {
2107
- [styles$o["is-expanded"]]: expanded
2108
- }),
2109
- type: "button",
2110
- style: style,
2111
- ...nativeProps
2112
- }, appName === "Accounts" ? (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(MonoAppIcon, {
2113
- appName: "Accounts",
2114
- colors: colors
2115
- }), /*#__PURE__*/React__default.createElement("div", {
2116
- className: styles$o["button-accounts"]
2117
- }, "Account settings"))) : (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(ColorAppIcon, {
2118
- appName: appName.replace(/[\s-]/, "")
2119
- }), /*#__PURE__*/React__default.createElement(MonoAppName, {
2120
- appName: appName.replace(/[\s-]/, ""),
2121
- key: "mono-app-name",
2122
- size: 24
2123
- }))), /*#__PURE__*/React__default.createElement(DisclosureChevronIcon, {
2124
- className: styles$o.chevron,
2125
- key: "disclosure-chevron-icon"
2126
- }));
2127
- };
2128
-
2129
- // Currently scoped to links and buttons since the app switcher only contains
2130
- // those elements. If this hook is reused in containers with form elements,
2131
- // expand to include: input, select, textarea, [tabindex]:not([tabindex="-1"])
2132
- const FOCUSABLE_SELECTOR = "a[href], button:not([disabled])";
2133
- /**
2134
- * Manages focus trapping within a container element.
2135
- *
2136
- * When `active` becomes true:
2137
- * - Stores the currently focused element
2138
- * - Moves focus to the first focusable child
2139
- *
2140
- * When `active` becomes false:
2141
- * - Returns focus to the previously focused element
2142
- *
2143
- * While active:
2144
- * - Tab/Shift+Tab wraps within the container
2145
- * - Escape calls `onClose`
2146
- *
2147
- * Note: focus trapping uses scoped querySelector on the container ref,
2148
- * which is the same approach used by libraries like focus-trap-react.
2149
- */
2150
- function useFocusTrap({
2151
- active,
2152
- onClose
2153
- }) {
2154
- const containerRef = React__default.useRef(null);
2155
- const previousFocusRef = React__default.useRef(null);
2156
- React__default.useLayoutEffect(() => {
2157
- var _a, _b, _c;
2158
- if (active) {
2159
- previousFocusRef.current = document.activeElement;
2160
- (_b = (_a = containerRef.current) === null || _a === void 0 ? void 0 : _a.querySelector(FOCUSABLE_SELECTOR)) === null || _b === void 0 ? void 0 : _b.focus();
2161
- } else {
2162
- (_c = previousFocusRef.current) === null || _c === void 0 ? void 0 : _c.focus();
2163
- previousFocusRef.current = null;
2164
- }
2165
- }, [active]);
2166
- const handleKeyDown = React__default.useCallback(e => {
2167
- var _a;
2168
- if (!active) {
2169
- return;
2170
- }
2171
- if (e.key === "Escape") {
2172
- onClose();
2173
- return;
2174
- }
2175
- if (e.key === "Tab") {
2176
- const focusable = (_a = containerRef.current) === null || _a === void 0 ? void 0 : _a.querySelectorAll(FOCUSABLE_SELECTOR);
2177
- if (!focusable || focusable.length === 0) return;
2178
- const first = focusable[0];
2179
- const last = focusable[focusable.length - 1];
2180
- if (e.shiftKey && document.activeElement === first) {
2181
- e.preventDefault();
2182
- last.focus();
2183
- } else if (!e.shiftKey && document.activeElement === last) {
2184
- e.preventDefault();
2185
- first.focus();
2186
- }
2187
- }
2188
- }, [active, onClose]);
2189
- return {
2190
- containerRef,
2191
- handleKeyDown
2192
- };
2193
- }
2194
-
2195
- const fontFamily = {
2196
- fontFamily: `inherit`
2197
- };
2198
- const IEFlex1 = {
2199
- flex: "1 1 auto"
2200
- };
2201
-
2202
- const HoverableListItem = ({
2203
- active = false,
2204
- component: C = "span",
2205
- style = null,
2206
- ...nativeProps
2207
- }) => {
2208
- const [entered, setEntered] = React__default.useState(false);
2209
- const getBackgroundColor = () => active ? "var(--t-fill-color-neutral-060)" : entered ? "var(--t-fill-color-neutral-080)" : "transparent";
2210
- return /*#__PURE__*/React__default.createElement(C, {
2211
- onMouseEnter: () => setEntered(true),
2212
- onMouseLeave: () => setEntered(false),
2213
- style: {
2214
- ...style,
2215
- backgroundColor: getBackgroundColor()
2216
- },
2217
- ...nativeProps
2218
- });
2219
- };
2220
-
2221
- class Outsider extends React__default.Component {
2222
- constructor(props) {
2223
- super(props);
2224
- this.handleOutsideClick = this.handleOutsideClick.bind(this);
2225
- }
2226
- componentWillUnmount() {
2227
- document.removeEventListener("click", this.handleOutsideClick, true);
2228
- }
2229
- handleOutsideClick(e) {
2230
- if (this.container.contains(e.target) || e.target.closest('[data-toolbar-link="true"]')) {
2231
- return;
2232
- } else {
2233
- e.stopPropagation();
2234
- e.preventDefault();
2235
- return this.props.onOutsideClick();
2236
- }
2237
- }
2238
- render() {
2239
- const {
2240
- cleanup,
2241
- onOutsideClick,
2242
- visible,
2243
- ...props
2244
- } = this.props;
2245
- if (cleanup) {
2246
- document.removeEventListener("click", this.handleOutsideClick, true);
2247
- } else {
2248
- document.addEventListener("click", this.handleOutsideClick, true);
2249
- }
2250
- return /*#__PURE__*/React__default.createElement("div", {
2251
- ref: c => this.container = c,
2252
- ...props
2253
- });
2254
- }
2255
- }
2256
-
2257
- var styles$n = {"popup-root":"popup-root-SeL5u","popup":"popup-nQXYW","is-visible":"is-visible-3DAUP"};
2258
-
2259
- const Popup = ({
2260
- className,
2261
- component: C = "div",
2262
- isVisible,
2263
- ...nativeProps
2264
- }) => (/*#__PURE__*/React__default.createElement(C, {
2265
- className: classnames(styles$n.popup, {
2266
- [styles$n["is-visible"]]: isVisible
2267
- }, className),
2268
- ...nativeProps
2269
- }));
2270
-
2271
- const PopupRoot = ({
2272
- ...nativeProps
2273
- }) => (/*#__PURE__*/React__default.createElement("div", {
2274
- className: styles$n["popup-root"],
2275
- ...nativeProps
2276
- }));
2277
-
2278
- var styles$m = {"popup":"popup-bVhSa"};
2279
-
2280
- const LegacyAppsMenu = ({
2281
- appName,
2282
- apps,
2283
- env,
2284
- toggle,
2285
- visible
2286
- }) => {
2287
- const accountsProduct = apps.find(({
2288
- name
2289
- }) => name === "Accounts");
2290
- const homeProduct = apps.find(({
2291
- name
2292
- }) => name === "Home");
2293
- const restProducts = [...apps].filter(({
2294
- name
2295
- }) => name !== "Home" && name !== "Accounts").sort((a, b) => a.name.localeCompare(b.name));
2296
- const {
2297
- containerRef: menuRef,
2298
- handleKeyDown
2299
- } = useFocusTrap({
2300
- active: visible,
2301
- onClose: toggle
2302
- });
2303
- const listItemProps = {
2304
- ...fontFamily,
2305
- alignItems: "center",
2306
- display: "flex",
2307
- height: "48px",
2308
- overflow: "hidden",
2309
- padding: "0 16px",
2310
- verticalAlign: "middle"
2311
- };
2312
- return /*#__PURE__*/React__default.createElement(PopupRoot, null, /*#__PURE__*/React__default.createElement(Popup, {
2313
- cleanup: !visible,
2314
- component: Outsider,
2315
- onOutsideClick: toggle,
2316
- className: styles$m.popup,
2317
- isVisible: visible
2318
- }, /*#__PURE__*/React__default.createElement("menu", {
2319
- ref: menuRef,
2320
- "data-pendo": "app-switcher",
2321
- onKeyDown: handleKeyDown,
2322
- style: {
2323
- margin: 0,
2324
- padding: 0
2325
- }
2326
- }, homeProduct && (/*#__PURE__*/React__default.createElement(HoverableListItem, {
2327
- "aria-current": appName === homeProduct.name ? "page" : undefined,
2328
- "aria-label": homeProduct.name,
2329
- component: "a",
2330
- "data-pendo": `app-switcher--change-app--${homeProduct.name}`,
2331
- "data-turbolinks": false,
2332
- href: appName === homeProduct.name ? `${pcoUrl$1(env)("accounts")}/apps/${appName}` : pcoUrl$1(env)("accounts") + getAppsSwitchProductPath(homeProduct.name),
2333
- style: {
2334
- ...listItemProps,
2335
- borderBottom: "1px solid var(--t-border-color)"
2336
- }
2337
- }, /*#__PURE__*/React__default.createElement("div", {
2338
- style: {
2339
- marginRight: "6px"
2340
- }
2341
- }, /*#__PURE__*/React__default.createElement(ColorAppIcon, {
2342
- appName: "Home",
2343
- size: 20
2344
- })), /*#__PURE__*/React__default.createElement(MonoAppName, {
2345
- appName: "Home",
2346
- size: 18
2347
- }))), restProducts.map(({
1907
+ }, homeProduct && renderProductLink(homeProduct.name), restProducts.map(({
2348
1908
  name
2349
- }, i) => {
2350
- const isFirst = i === 0;
2351
- const isLast = i === restProducts.length - 1;
2352
- return /*#__PURE__*/React__default.createElement(HoverableListItem, {
2353
- "aria-current": name === appName ? "page" : undefined,
2354
- "aria-label": name,
2355
- component: "a",
2356
- "data-pendo": `app-switcher--change-app--${name}`,
2357
- "data-turbolinks": false,
2358
- href: name === appName ? `${pcoUrl$1(env)("accounts")}/apps/${name.toLowerCase()}` : pcoUrl$1(env)("accounts") + getAppsSwitchProductPath(name),
2359
- key: name,
2360
- style: {
2361
- ...listItemProps,
2362
- height: "40px",
2363
- paddingBottom: isLast ? "4px" : null,
2364
- paddingTop: isFirst ? "4px" : null
2365
- }
2366
- }, /*#__PURE__*/React__default.createElement("div", {
2367
- style: {
2368
- marginRight: "6px"
2369
- }
2370
- }, /*#__PURE__*/React__default.createElement(ColorAppIcon, {
2371
- appName: name.replace(/[\s-]/, ""),
2372
- size: 20
2373
- })), /*#__PURE__*/React__default.createElement(MonoAppName, {
2374
- appName: name.replace(/[\s-]/, ""),
2375
- size: 18
2376
- }));
2377
- }), accountsProduct && (/*#__PURE__*/React__default.createElement(HoverableListItem, {
1909
+ }) => renderProductLink(name)), accountsProduct && (/*#__PURE__*/React__default.createElement("li", {
1910
+ className: styles$n["accounts-item"]
1911
+ }, /*#__PURE__*/React__default.createElement("a", {
2378
1912
  "aria-current": appName === accountsProduct.name ? "page" : undefined,
2379
- "aria-label": accountsProduct.name,
2380
- component: "a",
2381
- "data-pendo": `app-switcher--change-app--${accountsProduct.name}`,
1913
+ "aria-label": "Account settings",
1914
+ className: classnames(styles$n.link, styles$n["accounts-link"]),
1915
+ "data-pendo": "app-switcher--change-app--Accounts",
2382
1916
  "data-turbolinks": false,
2383
- href: pcoUrl$1(env)("accounts") + getAppsSwitchProductPath(accountsProduct.name),
2384
- style: {
2385
- ...listItemProps,
2386
- borderTop: "1px solid var(--t-border-color)",
2387
- padding: "0 12px",
2388
- textDecoration: "none"
2389
- }
2390
- }, /*#__PURE__*/React__default.createElement("svg", {
2391
- height: 22,
2392
- style: {
2393
- display: "block",
2394
- marginRight: "2px"
2395
- },
2396
- viewBox: "0 0 20 20",
2397
- width: 22,
2398
- xmlns: "http://www.w3.org/2000/svg"
2399
- }, /*#__PURE__*/React__default.createElement(Accounts$1, {
2400
- color: "var(--t-icon-color-secondary)",
2401
- key: "key2"
2402
- })), /*#__PURE__*/React__default.createElement("div", {
2403
- style: {
2404
- color: "var(--t-text-color-secondary)",
2405
- fontSize: "12px",
2406
- lineHeight: "28px"
2407
- }
2408
- }, "Account settings"))))));
2409
- };
2410
-
2411
- const LegacyAppsSwitcher$1 = ({
2412
- appName,
2413
- apps,
2414
- colors,
2415
- env,
2416
- requestAppsFetch
2417
- }) => {
2418
- const [visible, setVisible] = React__default.useState(false);
2419
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(LegacyAppsMenu, {
2420
- env: env,
2421
- appName: appName,
2422
- apps: apps,
2423
- visible: visible,
2424
- toggle: () => setVisible(isVisible => !isVisible)
2425
- }), /*#__PURE__*/React__default.createElement(LegacyAppsButton, {
2426
- colors: colors,
2427
- expanded: visible,
2428
- onClick: () => {
2429
- setVisible(isVisible => !isVisible);
2430
- requestAppsFetch();
2431
- },
2432
- appName: appName
2433
- }));
1917
+ href: pcoUrl$1(env)("accounts") + getAppsSwitchProductPath(accountsProduct.name)
1918
+ }, /*#__PURE__*/React__default.createElement(AppRow, {
1919
+ appName: "Accounts",
1920
+ colors: colors
1921
+ })))), showChurchCenter && (/*#__PURE__*/React__default.createElement("li", null, /*#__PURE__*/React__default.createElement("a", {
1922
+ "aria-current": appName === "Church Center" ? "page" : undefined,
1923
+ className: classnames(styles$n.link, styles$n["accounts-link"]),
1924
+ "data-pendo": "app-switcher--change-app--ChurchCenter",
1925
+ "data-turbolinks": false,
1926
+ href: `${pcoUrl$1(env)("publishing")}/dashboard`
1927
+ }, /*#__PURE__*/React__default.createElement(AppRow, {
1928
+ appName: "Church Center"
1929
+ }))))))));
2434
1930
  };
2435
1931
 
2436
1932
  const FEATURE_FLAGS = {
2437
- APP_SWITCHER_REDESIGN: "ROLLOUT_app_switcher_redesign",
1933
+ CHURCH_CENTER_PRODUCT: "ROLLOUT_church_center_product",
2438
1934
  PRODUCT_SEARCH: "product_search"
2439
1935
  };
2440
1936
  function hasFeature(features, flag) {
@@ -3223,38 +2719,6 @@ const useUpdateStore = () => useCallback(updates => {
3223
2719
  });
3224
2720
  }, []);
3225
2721
 
3226
- const collections = {
3227
- general,
3228
- toolbar
3229
- };
3230
- const paths = collections;
3231
- function Icon({
3232
- name,
3233
- size = 16,
3234
- style,
3235
- theme,
3236
- title,
3237
- ...props
3238
- }) {
3239
- const [collection, symbol] = name.split(".");
3240
- return /*#__PURE__*/React__default.createElement("svg", {
3241
- "aria-hidden": title ? undefined : true,
3242
- fill: "currentColor",
3243
- height: size,
3244
- role: title ? "img" : undefined,
3245
- style: {
3246
- color: theme && `var(${theme})`,
3247
- flexShrink: 0,
3248
- ...style
3249
- },
3250
- viewBox: "0 0 16 16",
3251
- width: size,
3252
- ...props
3253
- }, title && /*#__PURE__*/React__default.createElement("title", null, title), /*#__PURE__*/React__default.createElement("path", {
3254
- d: paths[collection][symbol]
3255
- }));
3256
- }
3257
-
3258
2722
  const SEARCHABLE_PRODUCTS = [{
3259
2723
  appName: "Calendar",
3260
2724
  slug: "calendar"
@@ -3323,7 +2787,7 @@ const horizontalStep = key => ({
3323
2787
  ArrowRight: 1
3324
2788
  })[key];
3325
2789
 
3326
- var styles$l = {"searchButton":"searchButton-fYa5-"};
2790
+ var styles$m = {"searchButton":"searchButton-fYa5-"};
3327
2791
 
3328
2792
  function SearchButton({
3329
2793
  mobile = false,
@@ -3332,7 +2796,7 @@ function SearchButton({
3332
2796
  return /*#__PURE__*/React__default.createElement("button", {
3333
2797
  "aria-keyshortcuts": mobile ? undefined : `${isMac() ? "Meta" : "Control"}+${KEYBOARD_SHORTCUTS.openSearch.key.toUpperCase()} /`,
3334
2798
  "aria-label": "Search",
3335
- className: styles$l.searchButton,
2799
+ className: styles$m.searchButton,
3336
2800
  "data-search-button": true,
3337
2801
  onClick: onClick,
3338
2802
  type: "button"
@@ -4230,19 +3694,27 @@ function ifMatch(version) {
4230
3694
  "If-Match": `"${version}"`
4231
3695
  } : {};
4232
3696
  }
4233
- // Applies `change` to the stored value and writes the result, rereading and
4234
- // retrying when another tab or device wrote in between. `change` returns null
4235
- // when there's nothing to write. A read-only token (staff impersonating
4236
- // someone) only reads, so nothing is written into the person's history.
4237
- // Resolves to the value now stored, with whether the token was read-only, or
4238
- // null when the service couldn't be reached.
4239
- async function updateStoredValue(personId, key, change, attemptsLeft = MAX_ATTEMPTS) {
3697
+ function versionFrom(json) {
3698
+ return isRecord(json) && typeof json.version === "number" ? json.version : undefined;
3699
+ }
3700
+ function write(personId, key, value, version) {
3701
+ return request(personId, key, {
3702
+ body: JSON.stringify({
3703
+ value
3704
+ }),
3705
+ headers: {
3706
+ "Content-Type": "application/json",
3707
+ ...ifMatch(version)
3708
+ },
3709
+ method: "PUT"
3710
+ });
3711
+ }
3712
+ async function readChangeWrite(personId, key, change, attemptsLeft = MAX_ATTEMPTS) {
4240
3713
  const read = await request(personId, key);
4241
3714
  if (read === null || read === void 0 ? void 0 : read.response.ok) {
4242
- const {
4243
- value,
4244
- version
4245
- } = await read.response.json();
3715
+ const json = await read.response.json();
3716
+ const value = isRecord(json) && Array.isArray(json.value) ? json.value : [];
3717
+ const version = versionFrom(json);
4246
3718
  const {
4247
3719
  readOnly
4248
3720
  } = read.token;
@@ -4250,26 +3722,20 @@ async function updateStoredValue(personId, key, change, attemptsLeft = MAX_ATTEM
4250
3722
  if (next === null) {
4251
3723
  return {
4252
3724
  readOnly,
4253
- value: Array.isArray(value) ? value : []
3725
+ value,
3726
+ version
4254
3727
  };
4255
3728
  } else {
4256
- const write = await request(personId, key, {
4257
- body: JSON.stringify({
4258
- value: next
4259
- }),
4260
- headers: {
4261
- "Content-Type": "application/json",
4262
- ...ifMatch(version)
4263
- },
4264
- method: "PUT"
4265
- });
4266
- if (write === null || write === void 0 ? void 0 : write.response.ok) {
3729
+ const written = await write(personId, key, next, version);
3730
+ if (written === null || written === void 0 ? void 0 : written.response.ok) {
3731
+ const reply = await written.response.json();
4267
3732
  return {
4268
3733
  readOnly,
4269
- value: next
3734
+ value: next,
3735
+ version: versionFrom(reply)
4270
3736
  };
4271
- } else if ((write === null || write === void 0 ? void 0 : write.response.status) === 409 && attemptsLeft > 1) {
4272
- return updateStoredValue(personId, key, change, attemptsLeft - 1);
3737
+ } else if ((written === null || written === void 0 ? void 0 : written.response.status) === 409 && attemptsLeft > 1) {
3738
+ return readChangeWrite(personId, key, change, attemptsLeft - 1);
4273
3739
  } else {
4274
3740
  return null;
4275
3741
  }
@@ -4278,6 +3744,46 @@ async function updateStoredValue(personId, key, change, attemptsLeft = MAX_ATTEM
4278
3744
  return null;
4279
3745
  }
4280
3746
  }
3747
+ // Applies `change` to the stored value and writes the result, rereading and
3748
+ // retrying when another tab or device wrote in between. `change` returns null
3749
+ // when there's nothing to write. A read-only token (staff impersonating
3750
+ // someone) only reads, so nothing is written into the person's history.
3751
+ //
3752
+ // With `known`, what this product last synced, the write goes first,
3753
+ // conditioned on that version. Succeeding proves nobody wrote since, so the
3754
+ // read isn't needed; a 409 means someone did, and it rereads. Until this tab
3755
+ // has a token there's no telling whether it's read-only, so it reads first.
3756
+ //
3757
+ // Resolves to the value and version now stored, with whether the token was
3758
+ // read-only, or null when the service couldn't be reached.
3759
+ async function updateStoredValue(personId, key, change, known) {
3760
+ const token = cachedToken(personId);
3761
+ if (!known || known.version === undefined || !token || token.readOnly) {
3762
+ return readChangeWrite(personId, key, change);
3763
+ } else {
3764
+ const next = change(known.value);
3765
+ if (next === null) {
3766
+ return {
3767
+ readOnly: false,
3768
+ ...known
3769
+ };
3770
+ } else {
3771
+ const written = await write(personId, key, next, known.version);
3772
+ if (written === null || written === void 0 ? void 0 : written.response.ok) {
3773
+ const reply = await written.response.json();
3774
+ return {
3775
+ readOnly: false,
3776
+ value: next,
3777
+ version: versionFrom(reply)
3778
+ };
3779
+ } else if ((written === null || written === void 0 ? void 0 : written.response.status) === 409) {
3780
+ return readChangeWrite(personId, key, change);
3781
+ } else {
3782
+ return null;
3783
+ }
3784
+ }
3785
+ }
3786
+ }
4281
3787
 
4282
3788
  // Each product keeps its own copy in localStorage, and user-store-sync joins
4283
3789
  // the copies up across products and devices wherever the product can mint a
@@ -4311,15 +3817,52 @@ function writeRecentlyVisited(scope, entries) {
4311
3817
  // Storage can be full or blocked; recents are disposable.
4312
3818
  }
4313
3819
  }
4314
- async function syncOnce(scope) {
3820
+ // The service's value as of this product's last sync, kept as stored so
3821
+ // entries this build doesn't recognize survive a write made without reading.
3822
+ function snapshotKey(scope) {
3823
+ return `${storageKey(scope)}.synced`;
3824
+ }
3825
+ function readSnapshot(scope) {
3826
+ var _a;
3827
+ try {
3828
+ const snapshot = JSON.parse((_a = localStorage.getItem(snapshotKey(scope))) !== null && _a !== void 0 ? _a : "null");
3829
+ if (isRecord(snapshot) && Array.isArray(snapshot.value) && typeof snapshot.version === "number") {
3830
+ return {
3831
+ value: snapshot.value,
3832
+ version: snapshot.version
3833
+ };
3834
+ } else {
3835
+ return undefined;
3836
+ }
3837
+ } catch {
3838
+ return undefined;
3839
+ }
3840
+ }
3841
+ function writeSnapshot(scope, {
3842
+ value,
3843
+ version
3844
+ }) {
3845
+ try {
3846
+ localStorage.setItem(snapshotKey(scope), JSON.stringify({
3847
+ value,
3848
+ version
3849
+ }));
3850
+ } catch {
3851
+ // Without it, the next write just reads first.
3852
+ }
3853
+ }
3854
+ // A sync for a new visit writes from the snapshot when there is one. Other
3855
+ // syncs are there to bring in visits from elsewhere, so they read.
3856
+ async function syncOnce(scope, forVisit) {
4315
3857
  try {
4316
3858
  const synced = await updateStoredValue(scope.personId, SYNC_KEY, stored => {
4317
3859
  const shared = entriesFrom(stored);
4318
3860
  const local = readRecentlyVisited(scope);
4319
3861
  return isSameList(mergeEntries(shared, local), shared) ? null : mergeStored(stored, local);
4320
- });
3862
+ }, forVisit ? readSnapshot(scope) : undefined);
4321
3863
  if (synced) {
4322
3864
  const shared = entriesFrom(synced.value);
3865
+ writeSnapshot(scope, synced);
4323
3866
  writeRecentlyVisited(scope, synced.readOnly ? shared : mergeEntries(shared, readRecentlyVisited(scope)));
4324
3867
  }
4325
3868
  } catch {
@@ -4331,7 +3874,10 @@ const syncAgain = new Set();
4331
3874
  // One sync per list at a time. A visit recorded while one runs schedules a
4332
3875
  // single follow-up, so it still reaches the service; anything else asking
4333
3876
  // mid-sync just waits for the one running.
4334
- function sync(scope, followUp) {
3877
+ function sync(scope, {
3878
+ followUp,
3879
+ forVisit
3880
+ }) {
4335
3881
  const key = storageKey(scope);
4336
3882
  const running = syncing.get(key);
4337
3883
  if (isUserStoreSyncUnavailable()) {
@@ -4340,16 +3886,22 @@ function sync(scope, followUp) {
4340
3886
  if (followUp) syncAgain.add(key);
4341
3887
  return running;
4342
3888
  } else {
4343
- const run = syncOnce(scope).then(() => {
3889
+ const run = syncOnce(scope, forVisit).then(() => {
4344
3890
  syncing.delete(key);
4345
- return syncAgain.delete(key) ? sync(scope, false) : undefined;
3891
+ return syncAgain.delete(key) ? sync(scope, {
3892
+ followUp: false,
3893
+ forVisit: true
3894
+ }) : undefined;
4346
3895
  });
4347
3896
  syncing.set(key, run);
4348
3897
  return run;
4349
3898
  }
4350
3899
  }
4351
3900
  function syncRecentlyVisited(scope) {
4352
- return sync(scope, false);
3901
+ return sync(scope, {
3902
+ followUp: false,
3903
+ forVisit: false
3904
+ });
4353
3905
  }
4354
3906
  // Staff impersonating someone get a read-only token, and their visits stay out
4355
3907
  // of that person's list. Until the token is minted the visit is kept, and the
@@ -4359,7 +3911,10 @@ function recordVisit(visit, scope) {
4359
3911
  const entry = toEntry(visit, new Date());
4360
3912
  if (isEntry(entry) && !hasReadOnlyToken(scope.personId)) {
4361
3913
  writeRecentlyVisited(scope, addVisit(readRecentlyVisited(scope), entry));
4362
- sync(scope, true);
3914
+ sync(scope, {
3915
+ followUp: true,
3916
+ forVisit: true
3917
+ });
4363
3918
  }
4364
3919
  }
4365
3920
  function useRecentlyVisited({
@@ -4612,7 +4167,7 @@ function useResultNavigation(items, list, enabled = true) {
4612
4167
  };
4613
4168
  }
4614
4169
 
4615
- var styles$k = {"modal":"modal-NR3TO","visuallyHidden":"visuallyHidden-C28ju","panel":"panel-HlF7S"};
4170
+ var styles$l = {"modal":"modal-NR3TO","visuallyHidden":"visuallyHidden-C28ju","panel":"panel-HlF7S"};
4616
4171
 
4617
4172
  const FALLBACK_SLUGS = ["people", "services"];
4618
4173
  function defaultProduct(products, appName) {
@@ -4676,7 +4231,8 @@ function summarize({
4676
4231
  }
4677
4232
  }
4678
4233
  // "Oct 25, 9–10:30am", in the organization's time zone like the rest
4679
- // of Planning Center.
4234
+ // of Planning Center. An event outside this year names its year
4235
+ // ("Nov 27, 2025, 9am"), so last year's event doesn't pass for this year's.
4680
4236
  function eventTime(startsAt, endsAt, {
4681
4237
  recurring,
4682
4238
  timeZone
@@ -4686,6 +4242,7 @@ function eventTime(startsAt, endsAt, {
4686
4242
  } else {
4687
4243
  const time = datetimeFmt.datetime(startsAt, endsAt || null, {
4688
4244
  style: "abbreviated",
4245
+ year: yearIn(startsAt, timeZone) !== yearIn(new Date(), timeZone),
4689
4246
  ...(timeZone && {
4690
4247
  timeZone
4691
4248
  })
@@ -4693,6 +4250,12 @@ function eventTime(startsAt, endsAt, {
4693
4250
  return recurring ? joinParts(time, "Repeating") : time;
4694
4251
  }
4695
4252
  }
4253
+ function yearIn(date, timeZone) {
4254
+ return new Intl.DateTimeFormat("en-US", {
4255
+ timeZone,
4256
+ year: "numeric"
4257
+ }).format(new Date(date));
4258
+ }
4696
4259
  // Unlike search results, recents come from every product, so each one names
4697
4260
  // its type. The row's product icon says which product it came from.
4698
4261
  function describeVisit(visit, timeZone) {
@@ -4774,7 +4337,7 @@ function BlankStateActions({
4774
4337
  }, action.label))))));
4775
4338
  }
4776
4339
 
4777
- var styles$j = {"container":"container-YDdM1","hint":"hint-017Rd","keycap":"keycap-ENJM2","labels":"labels-GHPqL","copied":"copied-DUFa1"};
4340
+ var styles$k = {"container":"container-YDdM1","hint":"hint-017Rd","keycap":"keycap-ENJM2","labels":"labels-GHPqL","copied":"copied-DUFa1"};
4778
4341
 
4779
4342
  const SYMBOLS = {
4780
4343
  command: {
@@ -4796,7 +4359,7 @@ const SYMBOLS = {
4796
4359
  };
4797
4360
  function Keycap(props) {
4798
4361
  return /*#__PURE__*/React__default.createElement("kbd", {
4799
- className: styles$j.keycap
4362
+ className: styles$k.keycap
4800
4363
  }, "symbol" in props ? (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("svg", {
4801
4364
  "aria-hidden": true,
4802
4365
  fill: "none",
@@ -4808,7 +4371,7 @@ function Keycap(props) {
4808
4371
  d: d,
4809
4372
  key: d
4810
4373
  })))), /*#__PURE__*/React__default.createElement("span", {
4811
- className: styles$k.visuallyHidden
4374
+ className: styles$l.visuallyHidden
4812
4375
  }, SYMBOLS[props.symbol].label))) : props.label);
4813
4376
  }
4814
4377
  function CommandKey() {
@@ -4836,10 +4399,10 @@ function KeyboardHints({
4836
4399
  }) {
4837
4400
  return /*#__PURE__*/React__default.createElement("ul", {
4838
4401
  "aria-label": "Keyboard shortcuts",
4839
- className: styles$j.container,
4402
+ className: styles$k.container,
4840
4403
  "data-platform": isMac() ? "mac" : "pc"
4841
4404
  }, /*#__PURE__*/React__default.createElement("li", {
4842
- className: styles$j.hint
4405
+ className: styles$k.hint
4843
4406
  }, /*#__PURE__*/React__default.createElement(Flex, {
4844
4407
  gap: 0.5
4845
4408
  }, select.modifierKey, /*#__PURE__*/React__default.createElement(Keycap, {
@@ -4847,11 +4410,11 @@ function KeyboardHints({
4847
4410
  }), /*#__PURE__*/React__default.createElement(Keycap, {
4848
4411
  symbol: "down"
4849
4412
  })), select.label), /*#__PURE__*/React__default.createElement("li", {
4850
- className: styles$j.hint
4413
+ className: styles$k.hint
4851
4414
  }, /*#__PURE__*/React__default.createElement(Flex, {
4852
4415
  gap: 0.5
4853
4416
  }, /*#__PURE__*/React__default.createElement(CommandKey, null), /*#__PURE__*/React__default.createElement(EnterKey, null)), openInNewTab.label), /*#__PURE__*/React__default.createElement("li", {
4854
- className: classnames(styles$j.hint, copied && styles$j.copied),
4417
+ className: classnames(styles$k.hint, copied && styles$k.copied),
4855
4418
  style: {
4856
4419
  "--copied-active": `${COPIED_TIMING.active}ms`,
4857
4420
  "--copied-enter": `${COPIED_TIMING.enter}ms`,
@@ -4862,13 +4425,13 @@ function KeyboardHints({
4862
4425
  }, /*#__PURE__*/React__default.createElement(CommandKey, null), /*#__PURE__*/React__default.createElement(Keycap, {
4863
4426
  label: copyLink.key.toUpperCase()
4864
4427
  })), /*#__PURE__*/React__default.createElement("span", {
4865
- className: styles$j.labels
4428
+ className: styles$k.labels
4866
4429
  }, /*#__PURE__*/React__default.createElement("span", {
4867
4430
  "aria-hidden": copied
4868
4431
  }, copyLink.label), /*#__PURE__*/React__default.createElement("span", {
4869
4432
  role: "status"
4870
4433
  }, copied && "Copied!"))), /*#__PURE__*/React__default.createElement("li", {
4871
- className: styles$j.hint
4434
+ className: styles$k.hint
4872
4435
  }, /*#__PURE__*/React__default.createElement(Flex, {
4873
4436
  gap: 0.5
4874
4437
  }, /*#__PURE__*/React__default.createElement(CommandKey, null), /*#__PURE__*/React__default.createElement(Keycap, {
@@ -4876,7 +4439,7 @@ function KeyboardHints({
4876
4439
  })), openSearch.label));
4877
4440
  }
4878
4441
 
4879
- var styles$i = {"icon":"icon-XKLvN","squircle":"squircle-JCHr6"};
4442
+ var styles$j = {"icon":"icon-XKLvN","squircle":"squircle-JCHr6"};
4880
4443
 
4881
4444
  const PRODUCTS = {
4882
4445
  accounts: {
@@ -4945,13 +4508,13 @@ function ProductIcon({
4945
4508
  const mask = maskFor(path);
4946
4509
  return /*#__PURE__*/React__default.createElement("span", {
4947
4510
  "aria-hidden": true,
4948
- className: styles$i.icon,
4511
+ className: styles$j.icon,
4949
4512
  style: {
4950
4513
  height: size,
4951
4514
  width: size
4952
4515
  }
4953
4516
  }, /*#__PURE__*/React__default.createElement("span", {
4954
- className: styles$i.squircle,
4517
+ className: styles$j.squircle,
4955
4518
  style: {
4956
4519
  WebkitMaskImage: mask,
4957
4520
  background: `var(${gradient})`,
@@ -4960,7 +4523,7 @@ function ProductIcon({
4960
4523
  }));
4961
4524
  }
4962
4525
 
4963
- var styles$h = {"picker":"picker-iuzzj","option":"option--7LXg"};
4526
+ var styles$i = {"picker":"picker-iuzzj","option":"option--7LXg"};
4964
4527
 
4965
4528
  // Phones have no room for a tab per product, so they pick from a dropdown.
4966
4529
  // Complex mode renders each option's logomark, in the list and the trigger.
@@ -4975,7 +4538,7 @@ function ProductSelect({
4975
4538
  slug
4976
4539
  }) => ({
4977
4540
  label: (/*#__PURE__*/React__default.createElement("span", {
4978
- className: styles$h.option
4541
+ className: styles$i.option
4979
4542
  }, /*#__PURE__*/React__default.createElement(ProductIcon, {
4980
4543
  slug: slug
4981
4544
  }), appName)),
@@ -4983,7 +4546,7 @@ function ProductSelect({
4983
4546
  value: slug
4984
4547
  }));
4985
4548
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
4986
- className: styles$h.picker
4549
+ className: styles$i.picker
4987
4550
  }, /*#__PURE__*/React__default.createElement(Select, {
4988
4551
  "aria-label": "Product",
4989
4552
  complex: true,
@@ -4991,7 +4554,7 @@ function ProductSelect({
4991
4554
  options: options,
4992
4555
  value: selected.slug
4993
4556
  })), /*#__PURE__*/React__default.createElement("div", {
4994
- className: styles$k.panel
4557
+ className: styles$l.panel
4995
4558
  }, children));
4996
4559
  }
4997
4560
 
@@ -5042,7 +4605,7 @@ function useKeyboardFocus({
5042
4605
  };
5043
4606
  }
5044
4607
 
5045
- var styles$g = {"tablist":"tablist-7ASvc","tab":"tab-dz8ki"};
4608
+ var styles$h = {"tablist":"tablist-7ASvc","tab":"tab-dz8ki"};
5046
4609
 
5047
4610
  // With this many tabs or more, only the selected tab shows its name, so they
5048
4611
  // all fit. Fewer always fit with their names.
@@ -5073,7 +4636,7 @@ function ProductTabs({
5073
4636
  };
5074
4637
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
5075
4638
  "aria-label": "Search in",
5076
- className: styles$g.tablist,
4639
+ className: styles$h.tablist,
5077
4640
  onKeyDown: handleKeyDown,
5078
4641
  role: "tablist"
5079
4642
  }, products.map(product => (/*#__PURE__*/React__default.createElement(Tab, {
@@ -5093,10 +4656,10 @@ function ProductTabs({
5093
4656
  }, /*#__PURE__*/React__default.createElement(ProductIcon, {
5094
4657
  slug: product.slug
5095
4658
  }), showAllNames || product === selected ? product.appName : (/*#__PURE__*/React__default.createElement("span", {
5096
- className: styles$k.visuallyHidden
4659
+ className: styles$l.visuallyHidden
5097
4660
  }, product.appName)))))), /*#__PURE__*/React__default.createElement("div", {
5098
4661
  "aria-labelledby": tabId(selected.slug),
5099
- className: styles$k.panel,
4662
+ className: styles$l.panel,
5100
4663
  id: `${id}-panel`,
5101
4664
  role: "tabpanel"
5102
4665
  }, children));
@@ -5109,7 +4672,7 @@ const Tab = /*#__PURE__*/React__default.forwardRef(function Tab(props, ref) {
5109
4672
  focusProps
5110
4673
  } = useKeyboardFocus();
5111
4674
  return /*#__PURE__*/React__default.createElement("button", {
5112
- className: styles$g.tab,
4675
+ className: styles$h.tab,
5113
4676
  ref: ref,
5114
4677
  role: "tab",
5115
4678
  type: "button",
@@ -5453,7 +5016,7 @@ function BlankStateRecentlyVisited(props) {
5453
5016
  }))));
5454
5017
  }
5455
5018
 
5456
- var styles$f = {"blank_state":"blank_state-kX-H1","image":"image-R3D6r"};
5019
+ var styles$g = {"blank_state":"blank_state-kX-H1","image":"image-R3D6r"};
5457
5020
 
5458
5021
  function BlankState$1({
5459
5022
  action,
@@ -5464,12 +5027,12 @@ function BlankState$1({
5464
5027
  }) {
5465
5028
  return /*#__PURE__*/React__default.createElement(Flex, {
5466
5029
  role: role,
5467
- className: styles$f.blank_state,
5030
+ className: styles$g.blank_state,
5468
5031
  direction: "column",
5469
5032
  align: "center",
5470
5033
  gap: 3
5471
5034
  }, /*#__PURE__*/React__default.createElement(Flex, {
5472
- className: styles$f.image
5035
+ className: styles$g.image
5473
5036
  }, image), /*#__PURE__*/React__default.createElement(Flex, {
5474
5037
  direction: "column",
5475
5038
  align: "center",
@@ -5495,7 +5058,7 @@ function EndOfResultsObserver({
5495
5058
 
5496
5059
  const resultId = (listboxId, index) => `${listboxId}-result-${index}`;
5497
5060
 
5498
- var styles$e = {"result":"result-Thq2C","title":"title-KYUEn","subtitle":"subtitle-R2haq","image":"image-KVDor","avatar":"avatar-6Gh62","photo":"photo-FZR3Q","badge":"badge-trUKt","subdued":"subdued-YzRpa"};
5061
+ var styles$f = {"result":"result-Thq2C","title":"title-KYUEn","subtitle":"subtitle-R2haq","image":"image-KVDor","avatar":"avatar-6Gh62","photo":"photo-FZR3Q","badge":"badge-trUKt","subdued":"subdued-YzRpa"};
5499
5062
 
5500
5063
  function SearchResult({
5501
5064
  category,
@@ -5562,7 +5125,7 @@ function SearchResult({
5562
5125
  "aria-describedby": [subdued && `${id}-subdued`, describedBy, subtitle && `${id}-subtitle`].filter(Boolean).join(" ") || undefined,
5563
5126
  "aria-labelledby": title ? `${id}-title` : undefined,
5564
5127
  "aria-selected": highlighted,
5565
- className: classnames(styles$e.result, subdued && styles$e.subdued),
5128
+ className: classnames(styles$f.result, subdued && styles$f.subdued),
5566
5129
  "data-turbo": "false",
5567
5130
  href: url,
5568
5131
  id: id,
@@ -5576,13 +5139,13 @@ function SearchResult({
5576
5139
  imageUrl: imageUrl,
5577
5140
  product: product
5578
5141
  }), /*#__PURE__*/React__default.createElement("span", {
5579
- className: styles$e.title,
5142
+ className: styles$f.title,
5580
5143
  id: `${id}-title`
5581
5144
  }, title), /*#__PURE__*/React__default.createElement("span", {
5582
- className: styles$e.subtitle,
5145
+ className: styles$f.subtitle,
5583
5146
  id: `${id}-subtitle`
5584
5147
  }, subtitle), subdued && (/*#__PURE__*/React__default.createElement("span", {
5585
- className: styles$k.visuallyHidden,
5148
+ className: styles$l.visuallyHidden,
5586
5149
  id: `${id}-subdued`
5587
5150
  }, "Inactive")))
5588
5151
  );
@@ -5600,18 +5163,18 @@ function ResultImage({
5600
5163
  })) : null;
5601
5164
  return /*#__PURE__*/React__default.createElement("span", {
5602
5165
  "aria-hidden": true,
5603
- className: styles$e.image
5166
+ className: styles$f.image
5604
5167
  }, imageUrl ? (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("img", {
5605
5168
  alt: "",
5606
- className: category === "profile" ? styles$e.avatar : styles$e.photo,
5169
+ className: category === "profile" ? styles$f.avatar : styles$f.photo,
5607
5170
  loading: "lazy",
5608
5171
  src: imageUrl
5609
5172
  }), /*#__PURE__*/React__default.createElement("span", {
5610
- className: styles$e.badge
5173
+ className: styles$f.badge
5611
5174
  }, icon(16)))) : icon("100%"));
5612
5175
  }
5613
5176
 
5614
- var styles$d = {"heading":"heading-LioUF","group":"group-cKChg"};
5177
+ var styles$e = {"heading":"heading-LioUF","group":"group-cKChg"};
5615
5178
 
5616
5179
  // Sections with a heading render as labelled groups; ones without render
5617
5180
  // their items straight into the listbox. Indexes run across every section.
@@ -5664,11 +5227,11 @@ function ResultListbox({
5664
5227
  const headingId = `${id}-group-${sectionIndex}`;
5665
5228
  return /*#__PURE__*/React__default.createElement("div", {
5666
5229
  "aria-labelledby": headingId,
5667
- className: styles$d.group,
5230
+ className: styles$e.group,
5668
5231
  key: section.key,
5669
5232
  role: "group"
5670
5233
  }, /*#__PURE__*/React__default.createElement("div", {
5671
- className: styles$d.heading,
5234
+ className: styles$e.heading,
5672
5235
  id: headingId
5673
5236
  }, section.heading), section.items.map((item, itemIndex) => renderItem(item, itemIndex, headingId)));
5674
5237
  }));
@@ -5691,7 +5254,7 @@ function RecentlyVisited({
5691
5254
  });
5692
5255
  } else {
5693
5256
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
5694
- className: styles$d.heading,
5257
+ className: styles$e.heading,
5695
5258
  id: headingId
5696
5259
  }, "Recently visited"), /*#__PURE__*/React__default.createElement(ResultListbox, {
5697
5260
  labelledBy: headingId,
@@ -5707,7 +5270,7 @@ function RecentlyVisited({
5707
5270
  }
5708
5271
  }
5709
5272
 
5710
- var styles$c = {"row":"row-5P7UQ","header":"header-sXEyG","closeButton":"closeButton-rPJJV","input":"input-YQkTC","clearButton":"clearButton-9Yh9w"};
5273
+ var styles$d = {"row":"row-5P7UQ","header":"header-sXEyG","closeButton":"closeButton-rPJJV","input":"input-YQkTC","clearButton":"clearButton-9Yh9w"};
5711
5274
 
5712
5275
  // A combobox: focus stays here while aria-activedescendant points screen
5713
5276
  // readers at the highlighted result in the listbox it controls.
@@ -5744,9 +5307,9 @@ function SearchInput({
5744
5307
  }
5745
5308
  });
5746
5309
  return /*#__PURE__*/React__default.createElement("div", {
5747
- className: styles$c.row
5310
+ className: styles$d.row
5748
5311
  }, /*#__PURE__*/React__default.createElement("label", {
5749
- className: styles$c.header,
5312
+ className: styles$d.header,
5750
5313
  id: "topbar_product_search_label"
5751
5314
  }, /*#__PURE__*/React__default.createElement(Icon, {
5752
5315
  name: "general.search",
@@ -5759,7 +5322,7 @@ function SearchInput({
5759
5322
  "aria-expanded": expanded,
5760
5323
  "aria-label": "Search",
5761
5324
  autoFocus: true,
5762
- className: styles$c.input,
5325
+ className: styles$d.input,
5763
5326
  id: "product_search",
5764
5327
  onChange: event => onChange(event.target.value),
5765
5328
  onKeyDown: onKeyDown,
@@ -5771,7 +5334,7 @@ function SearchInput({
5771
5334
  ...focusProps
5772
5335
  }), !onClose && value !== "" && (/*#__PURE__*/React__default.createElement("button", {
5773
5336
  "aria-label": "Clear search",
5774
- className: styles$c.clearButton,
5337
+ className: styles$d.clearButton,
5775
5338
  onClick: () => {
5776
5339
  var _a;
5777
5340
  onChange("");
@@ -5790,7 +5353,7 @@ function SearchInput({
5790
5353
  d: "M6.5 6.5l7 7m0 -7l-7 7"
5791
5354
  }))))), onClose && (/*#__PURE__*/React__default.createElement(IconButton, {
5792
5355
  "aria-label": "Close search",
5793
- className: styles$c.closeButton,
5356
+ className: styles$d.closeButton,
5794
5357
  icon: /*#__PURE__*/React__default.createElement(Icon, {
5795
5358
  name: "general.x",
5796
5359
  theme: "--t-icon-color-dim"
@@ -6137,7 +5700,7 @@ function BlankStateNoResults(props) {
6137
5700
  })));
6138
5701
  }
6139
5702
 
6140
- var styles$b = {"spinner":"spinner-b5tlz"};
5703
+ var styles$c = {"spinner":"spinner-b5tlz"};
6141
5704
 
6142
5705
  function LoadingSpinner({
6143
5706
  size = 48,
@@ -6145,7 +5708,7 @@ function LoadingSpinner({
6145
5708
  }) {
6146
5709
  return /*#__PURE__*/React__default.createElement("span", {
6147
5710
  "aria-hidden": "true",
6148
- className: styles$b.spinner,
5711
+ className: styles$c.spinner,
6149
5712
  style: {
6150
5713
  "--spinner-size": `${size}px`,
6151
5714
  "--spinner-track-width": `${trackWidth}px`
@@ -6327,10 +5890,10 @@ function SearchPanel({
6327
5890
  selected: product
6328
5891
  }, results)), /*#__PURE__*/React__default.createElement("div", {
6329
5892
  "aria-live": "polite",
6330
- className: styles$k.visuallyHidden
5893
+ className: styles$l.visuallyHidden
6331
5894
  }, announceHighlight ? (_b = navigation.highlighted) === null || _b === void 0 ? void 0 : _b.title : null), /*#__PURE__*/React__default.createElement("div", {
6332
5895
  "aria-live": "polite",
6333
- className: styles$k.visuallyHidden,
5896
+ className: styles$l.visuallyHidden,
6334
5897
  "data-testid": "result-count"
6335
5898
  }, resultCount), mobile ? null : /*#__PURE__*/React__default.createElement(KeyboardHints, {
6336
5899
  copied: navigation.copied
@@ -6547,7 +6110,7 @@ function ProductSearch({
6547
6110
  onClick: () => setOpen(true)
6548
6111
  }), /*#__PURE__*/React__default.createElement(Modal, {
6549
6112
  "aria-label": "Search",
6550
- className: styles$k.modal,
6113
+ className: styles$l.modal,
6551
6114
  dismissible: true,
6552
6115
  id: "product_search_modal",
6553
6116
  onClose: () => setOpen(false),
@@ -6607,7 +6170,90 @@ function StyledRoot({
6607
6170
  `), children);
6608
6171
  }
6609
6172
 
6610
- var styles$a = {"route":"route--8BWe","is-active":"is-active-FsU9Y","apps-routes-separator":"apps-routes-separator-Nlm-N"};
6173
+ var styles$b = {"route":"route--8BWe","is-active":"is-active-FsU9Y","apps-routes-separator":"apps-routes-separator-Nlm-N"};
6174
+
6175
+ const HoverableListItem = ({
6176
+ active = false,
6177
+ component: C = "span",
6178
+ style = null,
6179
+ ...nativeProps
6180
+ }) => {
6181
+ const [entered, setEntered] = React__default.useState(false);
6182
+ const getBackgroundColor = () => active ? "var(--t-fill-color-neutral-060)" : entered ? "var(--t-fill-color-neutral-080)" : "transparent";
6183
+ return /*#__PURE__*/React__default.createElement(C, {
6184
+ onMouseEnter: () => setEntered(true),
6185
+ onMouseLeave: () => setEntered(false),
6186
+ style: {
6187
+ ...style,
6188
+ backgroundColor: getBackgroundColor()
6189
+ },
6190
+ ...nativeProps
6191
+ });
6192
+ };
6193
+
6194
+ class Outsider extends React__default.Component {
6195
+ constructor(props) {
6196
+ super(props);
6197
+ this.handleOutsideClick = this.handleOutsideClick.bind(this);
6198
+ }
6199
+ componentWillUnmount() {
6200
+ document.removeEventListener("click", this.handleOutsideClick, true);
6201
+ }
6202
+ handleOutsideClick(e) {
6203
+ if (this.container.contains(e.target) || e.target.closest('[data-toolbar-link="true"]')) {
6204
+ return;
6205
+ } else {
6206
+ e.stopPropagation();
6207
+ e.preventDefault();
6208
+ return this.props.onOutsideClick();
6209
+ }
6210
+ }
6211
+ render() {
6212
+ const {
6213
+ cleanup,
6214
+ onOutsideClick,
6215
+ visible,
6216
+ ...props
6217
+ } = this.props;
6218
+ if (cleanup) {
6219
+ document.removeEventListener("click", this.handleOutsideClick, true);
6220
+ } else {
6221
+ document.addEventListener("click", this.handleOutsideClick, true);
6222
+ }
6223
+ return /*#__PURE__*/React__default.createElement("div", {
6224
+ ref: c => this.container = c,
6225
+ ...props
6226
+ });
6227
+ }
6228
+ }
6229
+
6230
+ var styles$a = {"popup-root":"popup-root-SeL5u","popup":"popup-nQXYW","is-visible":"is-visible-3DAUP"};
6231
+
6232
+ const Popup = ({
6233
+ className,
6234
+ component: C = "div",
6235
+ isVisible,
6236
+ ...nativeProps
6237
+ }) => (/*#__PURE__*/React__default.createElement(C, {
6238
+ className: classnames(styles$a.popup, {
6239
+ [styles$a["is-visible"]]: isVisible
6240
+ }, className),
6241
+ ...nativeProps
6242
+ }));
6243
+
6244
+ const PopupRoot = ({
6245
+ ...nativeProps
6246
+ }) => (/*#__PURE__*/React__default.createElement("div", {
6247
+ className: styles$a["popup-root"],
6248
+ ...nativeProps
6249
+ }));
6250
+
6251
+ const fontFamily = {
6252
+ fontFamily: `inherit`
6253
+ };
6254
+ const IEFlex1 = {
6255
+ flex: "1 1 auto"
6256
+ };
6611
6257
 
6612
6258
  var styles$9 = {"popup":"popup-mDNKn","trigger-wrap":"trigger-wrap-Jd-KR","trigger":"trigger-WgRT5","is-visible":"is-visible-GZC0-","trigger-orgname":"trigger-orgname-TDHCc"};
6613
6259
 
@@ -6807,7 +6453,7 @@ const NotSmallTopbar = ({
6807
6453
  toolbarDrawerOpen
6808
6454
  } = useStore();
6809
6455
  const updateStore = useUpdateStore();
6810
- const useRedesignedSwitcher = useFeature(FEATURE_FLAGS.APP_SWITCHER_REDESIGN, props.features);
6456
+ const churchCenterEnabled = useFeature(FEATURE_FLAGS.CHURCH_CENTER_PRODUCT, props.features);
6811
6457
  const productSearchEnabled = useFeature(FEATURE_FLAGS.PRODUCT_SEARCH, props.features);
6812
6458
  useRecordRecentlyVisited({
6813
6459
  enabled: productSearchEnabled,
@@ -6835,20 +6481,15 @@ const NotSmallTopbar = ({
6835
6481
  paddingRight: "24px",
6836
6482
  ...props.style
6837
6483
  }
6838
- }, useRedesignedSwitcher ? (/*#__PURE__*/React__default.createElement(AppsMenu, {
6839
- env: props.env,
6840
- appName: props.appName,
6841
- apps: appsMenuFormatter(props.apps),
6842
- colors: props.colors,
6843
- requestAppsFetch: props.requestAppsFetch
6844
- })) : (/*#__PURE__*/React__default.createElement(LegacyAppsSwitcher$1, {
6484
+ }, /*#__PURE__*/React__default.createElement(AppsMenu, {
6845
6485
  env: props.env,
6846
6486
  appName: props.appName,
6847
6487
  apps: appsMenuFormatter(props.apps),
6488
+ churchCenterEnabled: churchCenterEnabled,
6848
6489
  colors: props.colors,
6849
6490
  requestAppsFetch: props.requestAppsFetch
6850
- })), /*#__PURE__*/React__default.createElement("div", {
6851
- className: styles$a["apps-routes-separator"]
6491
+ }), /*#__PURE__*/React__default.createElement("div", {
6492
+ className: styles$b["apps-routes-separator"]
6852
6493
  }), routesVisible && props.routes, /*#__PURE__*/React__default.createElement("div", {
6853
6494
  style: {
6854
6495
  margin: "auto"
@@ -6890,7 +6531,7 @@ const NotSmallRoute = ({
6890
6531
  ...nativeProps
6891
6532
  }) => {
6892
6533
  return /*#__PURE__*/React__default.createElement("a", {
6893
- className: classnames(styles$a["route"], className, active && styles$a["is-active"]),
6534
+ className: classnames(styles$b["route"], className, active && styles$b["is-active"]),
6894
6535
  ...nativeProps
6895
6536
  });
6896
6537
  };
@@ -6914,11 +6555,78 @@ function Avatar({
6914
6555
  });
6915
6556
  }
6916
6557
 
6558
+ // Currently scoped to links and buttons since the app switcher only contains
6559
+ // those elements. If this hook is reused in containers with form elements,
6560
+ // expand to include: input, select, textarea, [tabindex]:not([tabindex="-1"])
6561
+ const FOCUSABLE_SELECTOR = "a[href], button:not([disabled])";
6562
+ /**
6563
+ * Manages focus trapping within a container element.
6564
+ *
6565
+ * When `active` becomes true:
6566
+ * - Stores the currently focused element
6567
+ * - Moves focus to the first focusable child
6568
+ *
6569
+ * When `active` becomes false:
6570
+ * - Returns focus to the previously focused element
6571
+ *
6572
+ * While active:
6573
+ * - Tab/Shift+Tab wraps within the container
6574
+ * - Escape calls `onClose`
6575
+ *
6576
+ * Note: focus trapping uses scoped querySelector on the container ref,
6577
+ * which is the same approach used by libraries like focus-trap-react.
6578
+ */
6579
+ function useFocusTrap({
6580
+ active,
6581
+ onClose
6582
+ }) {
6583
+ const containerRef = React__default.useRef(null);
6584
+ const previousFocusRef = React__default.useRef(null);
6585
+ React__default.useLayoutEffect(() => {
6586
+ var _a, _b, _c;
6587
+ if (active) {
6588
+ previousFocusRef.current = document.activeElement;
6589
+ (_b = (_a = containerRef.current) === null || _a === void 0 ? void 0 : _a.querySelector(FOCUSABLE_SELECTOR)) === null || _b === void 0 ? void 0 : _b.focus();
6590
+ } else {
6591
+ (_c = previousFocusRef.current) === null || _c === void 0 ? void 0 : _c.focus();
6592
+ previousFocusRef.current = null;
6593
+ }
6594
+ }, [active]);
6595
+ const handleKeyDown = React__default.useCallback(e => {
6596
+ var _a;
6597
+ if (!active) {
6598
+ return;
6599
+ }
6600
+ if (e.key === "Escape") {
6601
+ onClose();
6602
+ return;
6603
+ }
6604
+ if (e.key === "Tab") {
6605
+ const focusable = (_a = containerRef.current) === null || _a === void 0 ? void 0 : _a.querySelectorAll(FOCUSABLE_SELECTOR);
6606
+ if (!focusable || focusable.length === 0) return;
6607
+ const first = focusable[0];
6608
+ const last = focusable[focusable.length - 1];
6609
+ if (e.shiftKey && document.activeElement === first) {
6610
+ e.preventDefault();
6611
+ last.focus();
6612
+ } else if (!e.shiftKey && document.activeElement === last) {
6613
+ e.preventDefault();
6614
+ first.focus();
6615
+ }
6616
+ }
6617
+ }, [active, onClose]);
6618
+ return {
6619
+ containerRef,
6620
+ handleKeyDown
6621
+ };
6622
+ }
6623
+
6917
6624
  var styles$7 = {"trigger":"trigger-Th-Up","layer":"layer-ck6BD","layer--visible":"layer--visible-4E2p1","panel":"panel-vobWE","header":"header-xndfZ","heading":"heading-uXyQf","close":"close-pK0Lk","list":"list-zWvrn","link":"link-Kf3qj","current":"current-g3Ey-","accounts-item":"accounts-item-eQqDD","accounts-link":"accounts-link-SeIbD"};
6918
6625
 
6919
6626
  const AppsSwitcher = ({
6920
6627
  appName,
6921
6628
  apps,
6629
+ churchCenterEnabled = false,
6922
6630
  colors,
6923
6631
  env,
6924
6632
  onTriggerClick,
@@ -6927,9 +6635,11 @@ const AppsSwitcher = ({
6927
6635
  }) => {
6928
6636
  const {
6929
6637
  accountsProduct,
6638
+ hasChurchCenter,
6930
6639
  homeProduct,
6931
6640
  restProducts
6932
6641
  } = groupApps(apps);
6642
+ const showChurchCenter = churchCenterEnabled && hasChurchCenter;
6933
6643
  const {
6934
6644
  containerRef,
6935
6645
  handleKeyDown
@@ -7003,174 +6713,18 @@ const AppsSwitcher = ({
7003
6713
  }, /*#__PURE__*/React__default.createElement(AppRow, {
7004
6714
  appName: "Accounts",
7005
6715
  colors: colors
6716
+ })))), showChurchCenter && (/*#__PURE__*/React__default.createElement("li", null, /*#__PURE__*/React__default.createElement("a", {
6717
+ "aria-current": appName === "Church Center" ? "page" : undefined,
6718
+ className: classnames(styles$7.link, styles$7["accounts-link"]),
6719
+ "data-pendo": "app-switcher--change-app--ChurchCenter",
6720
+ "data-turbolinks": false,
6721
+ href: `${pcoUrl$1(env)("publishing")}/dashboard`
6722
+ }, /*#__PURE__*/React__default.createElement(AppRow, {
6723
+ appName: "Church Center"
7006
6724
  }))))))), document.body));
7007
6725
  };
7008
6726
 
7009
- class ClientStorage extends React__default.Component {
7010
- update(value) {
7011
- window[this.props.method].setItem(this.props.item, JSON.stringify(value));
7012
- return this.forceUpdate();
7013
- }
7014
- render() {
7015
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, this.props.render(JSON.parse(window[this.props.method].getItem(this.props.item)) || undefined, this.update.bind(this)));
7016
- }
7017
- }
7018
- ClientStorage.defaultProps = {
7019
- method: "localStorage"
7020
- };
7021
-
7022
- var styles$6 = {"appmenu-button":"appmenu-button-b0UvT","appmenu-layer":"appmenu-layer-0IQpN","appmenu-container":"appmenu-container-gackd","appmenu-scroll":"appmenu-scroll-mPSx0","appmenu-list":"appmenu-list-h7clX","appmenu-list-a":"appmenu-list-a-rGIQN","appmenu-list-a--top":"appmenu-list-a--top-RT-2F","appmenu-list-a--bottom":"appmenu-list-a--bottom-YDeBC","appmenu-close-button":"appmenu-close-button-vv9bV","current-route":"current-route-wpJgz","actions":"actions-INQ7-","is-active":"is-active-wy8Bg","routes":"routes-Nmt1S","route":"route-kkknQ","profile-button":"profile-button-a2WO2"};
7023
-
7024
- function AccountSettingsLink({
7025
- env
7026
- }) {
7027
- const accountsName = "accounts";
7028
- return /*#__PURE__*/React__default.createElement("a", {
7029
- className: classnames(styles$6["appmenu-list-a"], styles$6["appmenu-list-a--bottom"]),
7030
- "data-pendo": `app-switcher--change-app--${accountsName}`,
7031
- "data-turbolinks": false,
7032
- href: pcoUrl$1(env)(accountsName) + getAppsSwitchProductPath(accountsName)
7033
- }, /*#__PURE__*/React__default.createElement("svg", {
7034
- "aria-hidden": "true",
7035
- height: 24,
7036
- viewBox: "0 0 20 20",
7037
- width: 24,
7038
- xmlns: "http://www.w3.org/2000/svg"
7039
- }, /*#__PURE__*/React__default.createElement(Accounts$1, {
7040
- color: "var(--t-icon-color-secondary)",
7041
- key: "key2"
7042
- })), /*#__PURE__*/React__default.createElement("span", null, "Account settings"));
7043
- }
7044
-
7045
- const CloseMenuButton = ({
7046
- color = "var(--t-icon-color-dim)",
7047
- size = 24,
7048
- style = {}
7049
- }) => (/*#__PURE__*/React__default.createElement("button", {
7050
- "aria-label": "Close menu",
7051
- type: "button",
7052
- className: styles$6["appmenu-close-button"],
7053
- style: style
7054
- }, /*#__PURE__*/React__default.createElement(X, {
7055
- fill: color,
7056
- style: {
7057
- height: `${size}px`,
7058
- width: `${size}px`
7059
- },
7060
- "aria-hidden": "true"
7061
- })));
7062
-
7063
- const UserMenuAppLockup = ({
7064
- appName: originalAppName
7065
- }) => {
7066
- const appName = originalAppName.replace(/[\s-]/, "");
7067
- return /*#__PURE__*/React__default.createElement("div", {
7068
- style: {
7069
- alignItems: "center",
7070
- display: "flex"
7071
- }
7072
- }, /*#__PURE__*/React__default.createElement("div", {
7073
- style: {
7074
- marginRight: "6px"
7075
- }
7076
- }, /*#__PURE__*/React__default.createElement(ColorAppIcon, {
7077
- appName: appName,
7078
- size: 20
7079
- })), /*#__PURE__*/React__default.createElement(MonoAppName, {
7080
- appName: appName,
7081
- size: 18
7082
- }));
7083
- };
7084
- const LegacyAppsSwitcher = ({
7085
- appName,
7086
- apps,
7087
- env,
7088
- onTriggerClick,
7089
- toggle,
7090
- visible
7091
- }) => {
7092
- const accountsProduct = apps.find(({
7093
- name
7094
- }) => name === "Accounts");
7095
- const homeProduct = apps.find(({
7096
- name
7097
- }) => name === "Home");
7098
- const restProducts = [...apps].filter(({
7099
- name
7100
- }) => name !== "Home" && name !== "Accounts");
7101
- const {
7102
- containerRef: appMenuRef,
7103
- handleKeyDown: handleAppMenuKeyDown
7104
- } = useFocusTrap({
7105
- active: visible,
7106
- onClose: toggle
7107
- });
7108
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("button", {
7109
- "aria-expanded": visible,
7110
- "aria-haspopup": "true",
7111
- "aria-label": `App switcher: ${appName}`,
7112
- type: "button",
7113
- className: styles$6["appmenu-button"],
7114
- onClick: onTriggerClick
7115
- }, /*#__PURE__*/React__default.createElement(ColorAppIcon, {
7116
- appName: appName.replace(/[\s-]/, "")
7117
- })), /*#__PURE__*/React__default.createElement(ClientStorage, {
7118
- item: "Topbar:Small:Menus:Products:visibility",
7119
- render: () => (/*#__PURE__*/React__default.createElement("div", {
7120
- ref: appMenuRef,
7121
- className: styles$6["appmenu-layer"],
7122
- style: {
7123
- ...(visible && {
7124
- display: "block"
7125
- })
7126
- },
7127
- onClick: toggle,
7128
- onKeyDown: handleAppMenuKeyDown
7129
- }, /*#__PURE__*/React__default.createElement(CloseMenuButton, null), /*#__PURE__*/React__default.createElement("div", {
7130
- onClick: e => {
7131
- const {
7132
- forcePropagation
7133
- } = e;
7134
- if (!forcePropagation) {
7135
- e.stopPropagation();
7136
- }
7137
- },
7138
- className: styles$6["appmenu-container"]
7139
- }, /*#__PURE__*/React__default.createElement("a", {
7140
- "aria-current": appName === (homeProduct === null || homeProduct === void 0 ? void 0 : homeProduct.name) ? "page" : undefined,
7141
- "aria-label": homeProduct ? homeProduct.name : appName,
7142
- "data-pendo": `app-switcher--change-app--${homeProduct === null || homeProduct === void 0 ? void 0 : homeProduct.name}`,
7143
- "data-turbolinks": false,
7144
- className: classnames(styles$6["appmenu-list-a"], styles$6["appmenu-list-a--top"]),
7145
- href: homeProduct ? pcoUrl$1(env)("accounts") + getAppsSwitchProductPath(homeProduct === null || homeProduct === void 0 ? void 0 : homeProduct.name) : undefined
7146
- }, /*#__PURE__*/React__default.createElement(UserMenuAppLockup, {
7147
- appName: homeProduct ? homeProduct.name : appName
7148
- })), /*#__PURE__*/React__default.createElement("div", {
7149
- className: styles$6["appmenu-scroll"]
7150
- }, /*#__PURE__*/React__default.createElement("ul", {
7151
- "data-pendo": "app-switcher",
7152
- className: styles$6["appmenu-list"]
7153
- }, appsMenuFormatter(restProducts).map(({
7154
- name
7155
- }) => (/*#__PURE__*/React__default.createElement("li", {
7156
- key: name,
7157
- className: styles$6["appmenu-list-li"]
7158
- }, /*#__PURE__*/React__default.createElement("a", {
7159
- "aria-current": name === appName ? "page" : undefined,
7160
- "aria-label": name,
7161
- "data-pendo": `app-switcher--change-app--${name}`,
7162
- "data-turbolinks": false,
7163
- className: styles$6["appmenu-list-a"],
7164
- href: pcoUrl$1(env)("accounts") + getAppsSwitchProductPath(name)
7165
- }, /*#__PURE__*/React__default.createElement(UserMenuAppLockup, {
7166
- appName: name
7167
- }))))), accountsProduct && (/*#__PURE__*/React__default.createElement("li", {
7168
- className: styles$6["appmenu-list-li"]
7169
- }, /*#__PURE__*/React__default.createElement(AccountSettingsLink, {
7170
- env: env
7171
- }))))))))
7172
- }));
7173
- };
6727
+ var styles$6 = {"current-route":"current-route-wpJgz","actions":"actions-INQ7-","is-active":"is-active-wy8Bg","routes":"routes-Nmt1S","route":"route-kkknQ","profile-button":"profile-button-a2WO2"};
7174
6728
 
7175
6729
  const SmallTopbar = ({
7176
6730
  currentRouteComponent = props => (/*#__PURE__*/React__default.createElement("span", {
@@ -7182,7 +6736,7 @@ const SmallTopbar = ({
7182
6736
  var _a, _b;
7183
6737
  const [routesMenuVisible, setRoutesMenuVisible] = React__default.useState(false);
7184
6738
  const [productSwitcherVisible, setProductSwitcherVisible] = React__default.useState(false);
7185
- const useRedesignedSwitcher = useFeature(FEATURE_FLAGS.APP_SWITCHER_REDESIGN, props.features);
6739
+ const churchCenterEnabled = useFeature(FEATURE_FLAGS.CHURCH_CENTER_PRODUCT, props.features);
7186
6740
  const productSearchEnabled = useFeature(FEATURE_FLAGS.PRODUCT_SEARCH, props.features);
7187
6741
  useRecordRecentlyVisited({
7188
6742
  enabled: productSearchEnabled,
@@ -7213,22 +6767,16 @@ const SmallTopbar = ({
7213
6767
  style: {
7214
6768
  ...props.style
7215
6769
  }
7216
- }, useRedesignedSwitcher ? (/*#__PURE__*/React__default.createElement(AppsSwitcher, {
6770
+ }, /*#__PURE__*/React__default.createElement(AppsSwitcher, {
7217
6771
  appName: props.appName,
7218
6772
  apps: appsMenuFormatter(props.apps),
6773
+ churchCenterEnabled: churchCenterEnabled,
7219
6774
  colors: props.colors,
7220
6775
  env: props.env,
7221
6776
  onTriggerClick: openProductSwitcher,
7222
6777
  toggle: toggleProductSwitcher,
7223
6778
  visible: productSwitcherVisible
7224
- })) : (/*#__PURE__*/React__default.createElement(LegacyAppsSwitcher, {
7225
- appName: props.appName,
7226
- apps: appsMenuFormatter(props.apps),
7227
- env: props.env,
7228
- onTriggerClick: openProductSwitcher,
7229
- toggle: toggleProductSwitcher,
7230
- visible: productSwitcherVisible
7231
- })), routesMenuVisible && (/*#__PURE__*/React__default.createElement("div", {
6779
+ }), routesMenuVisible && (/*#__PURE__*/React__default.createElement("div", {
7232
6780
  className: styles$6["routes"]
7233
6781
  }, props.routes)), /*#__PURE__*/React__default.createElement("button", {
7234
6782
  type: "button",
@@ -8216,6 +7764,348 @@ const DeveloperTools = {
8216
7764
  name: "DeveloperTools"
8217
7765
  };
8218
7766
 
7767
+ const DEFAULT_READY_TIMEOUT_MS = 8000;
7768
+ // The route rides in the fragment (`/topbar/helpdesk#email`), not the path, so
7769
+ // changing it is a same-document navigation that doesn't reload the iframe.
7770
+ function buildToolIframeSrc(origin, basePath, route, params = {}) {
7771
+ const [rawPath, queryPart] = route.replace(/^\/+/, "").split("?", 2);
7772
+ const safePath = rawPath.split("/").filter(segment => segment && segment !== "." && segment !== "..").join("/");
7773
+ const fragmentRoute = queryPart !== undefined ? `${safePath}?${queryPart}` : safePath;
7774
+ // Pages decode the fragment, and a `%` that doesn't start an escape (a
7775
+ // mangled link) makes that throw, so it's sent as `%25`.
7776
+ const fragment = fragmentRoute.replace(/%(?![0-9A-Fa-f]{2})/g, "%25");
7777
+ const url = new URL(basePath, origin);
7778
+ for (const [key, value] of Object.entries(params)) {
7779
+ if (value) url.searchParams.set(key, value);
7780
+ }
7781
+ // Always end in `#`, even for an empty route: going from `…#tasks/new` to a
7782
+ // URL with no fragment at all is a new document, which reloads the iframe.
7783
+ return `${url.toString()}#${fragment}`;
7784
+ }
7785
+ /**
7786
+ * An iframe for a toolbar tool served by another app. Shared by every tool
7787
+ * that has moved off add-ons: the page reports READY once it has painted,
7788
+ * NEW_ROUTE_RENDERED when its route changes, and anything else is handed to
7789
+ * `onMessage`. Messages from any other origin or window are ignored.
7790
+ */
7791
+ const ToolIframe = /*#__PURE__*/React__default.forwardRef(function ToolIframe({
7792
+ basePath,
7793
+ currentPath,
7794
+ isVisible = true,
7795
+ onChangePath,
7796
+ onMessage,
7797
+ origin,
7798
+ params,
7799
+ readyTimeoutMs = DEFAULT_READY_TIMEOUT_MS,
7800
+ title
7801
+ }, ref) {
7802
+ const iframeRef = React__default.useRef(null);
7803
+ // The iframe's `src` is set once. Changing it later would add a step to
7804
+ // the browser's Back history each time, so topbar's route changes move the
7805
+ // page with `location.replace` instead.
7806
+ const [initialPath] = React__default.useState(currentPath || "");
7807
+ // The route the page last reported. Topbar echoes it back as
7808
+ // `currentPath`, and the page is already there.
7809
+ const pageReportedPathRef = React__default.useRef(initialPath);
7810
+ // Hidden until the page paints, so its blank first frame doesn't flash
7811
+ // white against the drawer in dark mode.
7812
+ const [isReady, setIsReady] = React__default.useState(false);
7813
+ const hasReportedErrorRef = React__default.useRef(false);
7814
+ const readyTimeoutRef = React__default.useRef();
7815
+ const onMessageRef = React__default.useRef(onMessage);
7816
+ onMessageRef.current = onMessage;
7817
+ const onChangePathRef = React__default.useRef(onChangePath);
7818
+ onChangePathRef.current = onChangePath;
7819
+ // Query params are read once at load: changing them would reload the
7820
+ // page. Context that changes later goes over HOST_CONTEXT_CHANGED.
7821
+ const [initialParams] = React__default.useState(params);
7822
+ React__default.useEffect(function reportLoadErrorIfNeverReady() {
7823
+ const timeout = setTimeout(() => {
7824
+ var _a;
7825
+ if (hasReportedErrorRef.current) return;
7826
+ hasReportedErrorRef.current = true;
7827
+ (_a = onMessageRef.current) === null || _a === void 0 ? void 0 : _a.call(onMessageRef, {
7828
+ type: "IFRAME_LOAD_ERROR"
7829
+ });
7830
+ }, readyTimeoutMs);
7831
+ readyTimeoutRef.current = timeout;
7832
+ return () => clearTimeout(timeout);
7833
+ }, [readyTimeoutMs]);
7834
+ React__default.useEffect(function subscribeToGuestMessages() {
7835
+ function handleGuestMessage(e) {
7836
+ var _a, _b, _c, _d;
7837
+ if (e.origin !== origin) return;
7838
+ if (!e.source || !iframeRef.current) return;
7839
+ if (e.source !== iframeRef.current.contentWindow) return;
7840
+ if (typeof ((_a = e.data) === null || _a === void 0 ? void 0 : _a.type) !== "string") return;
7841
+ const message = e.data;
7842
+ if (message.type === "READY") {
7843
+ clearTimeout(readyTimeoutRef.current);
7844
+ setIsReady(true);
7845
+ }
7846
+ if (message.type === "NEW_ROUTE_RENDERED") {
7847
+ const reportedPath = String((_b = message.payload) !== null && _b !== void 0 ? _b : "");
7848
+ pageReportedPathRef.current = reportedPath;
7849
+ (_c = onChangePathRef.current) === null || _c === void 0 ? void 0 : _c.call(onChangePathRef, reportedPath);
7850
+ }
7851
+ (_d = onMessageRef.current) === null || _d === void 0 ? void 0 : _d.call(onMessageRef, message);
7852
+ }
7853
+ window.addEventListener("message", handleGuestMessage);
7854
+ return () => window.removeEventListener("message", handleGuestMessage);
7855
+ }, [origin]);
7856
+ React__default.useEffect(function followRouteChangesFromTopbar() {
7857
+ var _a, _b;
7858
+ const path = currentPath || "";
7859
+ if (path === pageReportedPathRef.current) return;
7860
+ pageReportedPathRef.current = path;
7861
+ (_b = (_a = iframeRef.current) === null || _a === void 0 ? void 0 : _a.contentWindow) === null || _b === void 0 ? void 0 : _b.location.replace(buildToolIframeSrc(origin, basePath, path, initialParams));
7862
+ }, [basePath, currentPath, initialParams, origin]);
7863
+ React__default.useImperativeHandle(ref, () => ({
7864
+ postMessage(message) {
7865
+ var _a, _b, _c;
7866
+ // Safari ignores focus() from inside a cross-origin iframe, so the
7867
+ // host focuses the iframe before the page focuses its own input.
7868
+ if (message.type === "PANE_VISIBLE") (_a = iframeRef.current) === null || _a === void 0 ? void 0 : _a.focus();
7869
+ (_c = (_b = iframeRef.current) === null || _b === void 0 ? void 0 : _b.contentWindow) === null || _c === void 0 ? void 0 : _c.postMessage(message, origin);
7870
+ }
7871
+ }), [origin]);
7872
+ return /*#__PURE__*/React__default.createElement("iframe", {
7873
+ ref: iframeRef,
7874
+ src: buildToolIframeSrc(origin, basePath, initialPath, initialParams),
7875
+ allow: "clipboard-write",
7876
+ style: {
7877
+ border: 0,
7878
+ display: isVisible ? undefined : "none",
7879
+ flex: 1,
7880
+ height: "100%",
7881
+ visibility: isReady ? undefined : "hidden",
7882
+ width: "100%"
7883
+ },
7884
+ title: title
7885
+ });
7886
+ });
7887
+
7888
+ function hostContext(appName, pcoMeta) {
7889
+ return {
7890
+ appName,
7891
+ host: window.location.host,
7892
+ pathname: window.location.pathname,
7893
+ pcoMeta,
7894
+ search: window.location.search
7895
+ };
7896
+ }
7897
+ function trackPendo(payload) {
7898
+ const {
7899
+ event,
7900
+ properties = {}
7901
+ } = payload !== null && payload !== void 0 ? payload : {};
7902
+ if (!event) return;
7903
+ if (!(window === null || window === void 0 ? void 0 : window.pendo)) return console.warn("`window.pendo` is undefined");
7904
+ window.pendo.track(event, properties);
7905
+ }
7906
+ /**
7907
+ * A toolbar tool whose drawer is a page served by another app in an iframe.
7908
+ * Topbar only relays: the page decides what it shows and when it's ready.
7909
+ *
7910
+ * Page → topbar: READY, NEW_ROUTE_RENDERED, CLOSE_DRAWER, OPEN_DRAWER,
7911
+ * OPEN_TOOL { tool, path }, OPEN_PICOBOT { conversationId?, draft?,
7912
+ * ticketExternalId? }, TRACK_PENDO { event, properties }.
7913
+ *
7914
+ * Topbar → page: PANE_VISIBLE, PANE_HIDDEN, HOST_CONTEXT_CHANGED { appName,
7915
+ * host, pathname, pcoMeta, search }, TOOL_STATE_CHANGED { ...config.state }.
7916
+ */
7917
+ function IframeTool({
7918
+ appName,
7919
+ closeDrawer,
7920
+ config,
7921
+ currentPath,
7922
+ env,
7923
+ isOpen,
7924
+ onChangePath,
7925
+ openDrawer,
7926
+ openPicobot,
7927
+ openTool
7928
+ }) {
7929
+ const pcoMeta = usePcoMeta();
7930
+ const origin = React__default.useMemo(() => pcoUrl(env)(config.app), [env, config.app]);
7931
+ const iframeRef = React__default.useRef(null);
7932
+ const [isReady, setIsReady] = React__default.useState(false);
7933
+ const [errored, setErrored] = React__default.useState(false);
7934
+ const [mountKey, setMountKey] = React__default.useState(0);
7935
+ // Only what the page needs before it can talk to topbar: `host` says which
7936
+ // window to talk to. The rest comes over HOST_CONTEXT_CHANGED, so the
7937
+ // product page's path and search stay out of the URL and the logs of the
7938
+ // app serving the page.
7939
+ const [params] = React__default.useState(() => ({
7940
+ app_name: appName,
7941
+ host: window.location.host,
7942
+ resource: pcoMeta.resource,
7943
+ ...config.params
7944
+ }));
7945
+ const hostUrl = useHostUrlWhileOpen(isOpen);
7946
+ // The drawer unmounts the tool when it closes, so each open loads the page
7947
+ // fresh. While it's open, the page hears where the user is once it's ready,
7948
+ // and again when they navigate or the pco: meta tags change.
7949
+ React__default.useEffect(function tellThePageWhereTheUserIs() {
7950
+ var _a;
7951
+ if (!isReady || !isOpen) return;
7952
+ (_a = iframeRef.current) === null || _a === void 0 ? void 0 : _a.postMessage({
7953
+ payload: hostContext(appName, pcoMeta),
7954
+ type: "HOST_CONTEXT_CHANGED"
7955
+ });
7956
+ }, [isOpen, isReady, appName, pcoMeta, hostUrl]);
7957
+ React__default.useEffect(function tellThePageWhetherItIsVisible() {
7958
+ var _a;
7959
+ if (!isReady) return;
7960
+ (_a = iframeRef.current) === null || _a === void 0 ? void 0 : _a.postMessage({
7961
+ type: isOpen ? "PANE_VISIBLE" : "PANE_HIDDEN"
7962
+ });
7963
+ }, [isOpen, isReady]);
7964
+ React__default.useEffect(function tellThePageAboutStateChanges() {
7965
+ var _a;
7966
+ if (!isReady || !config.state) return;
7967
+ (_a = iframeRef.current) === null || _a === void 0 ? void 0 : _a.postMessage({
7968
+ payload: config.state,
7969
+ type: "TOOL_STATE_CHANGED"
7970
+ });
7971
+ }, [isReady, config.state]);
7972
+ const handleMessage = React__default.useCallback(message => {
7973
+ var _a;
7974
+ switch (message.type) {
7975
+ case "READY":
7976
+ return setIsReady(true);
7977
+ case "CLOSE_DRAWER":
7978
+ return closeDrawer();
7979
+ case "OPEN_DRAWER":
7980
+ return openDrawer();
7981
+ case "OPEN_TOOL":
7982
+ {
7983
+ const {
7984
+ path = "",
7985
+ tool
7986
+ } = (_a = message.payload) !== null && _a !== void 0 ? _a : {};
7987
+ if (tool) openTool(tool, path);
7988
+ return;
7989
+ }
7990
+ case "OPEN_PICOBOT":
7991
+ // Without the Picobot panel there's nowhere to send it.
7992
+ return openPicobot === null || openPicobot === void 0 ? void 0 : openPicobot(message.payload);
7993
+ case "TRACK_PENDO":
7994
+ return trackPendo(message.payload);
7995
+ case "IFRAME_LOAD_ERROR":
7996
+ console.warn(`topbar: ${config.title} iframe failed to load`);
7997
+ return setErrored(true);
7998
+ }
7999
+ }, [closeDrawer, config.title, openDrawer, openPicobot, openTool]);
8000
+ const handleRetry = React__default.useCallback(() => {
8001
+ setErrored(false);
8002
+ setIsReady(false);
8003
+ setMountKey(key => key + 1);
8004
+ }, []);
8005
+ if (errored) {
8006
+ return /*#__PURE__*/React__default.createElement(LoadError$1, {
8007
+ closeDrawer: closeDrawer,
8008
+ fallbackLinks: config.fallbackLinks,
8009
+ heading: config.heading,
8010
+ onRetry: handleRetry
8011
+ });
8012
+ }
8013
+ return /*#__PURE__*/React__default.createElement(StackView$2, {
8014
+ flex: 1,
8015
+ axis: "vertical"
8016
+ }, !isReady && (/*#__PURE__*/React__default.createElement(LoadingHeader, {
8017
+ closeDrawer: closeDrawer,
8018
+ heading: config.heading
8019
+ })), /*#__PURE__*/React__default.createElement(ToolIframe, {
8020
+ key: mountKey,
8021
+ ref: iframeRef,
8022
+ basePath: config.basePath,
8023
+ currentPath: currentPath,
8024
+ isVisible: isOpen,
8025
+ onChangePath: onChangePath,
8026
+ onMessage: handleMessage,
8027
+ origin: origin,
8028
+ params: params,
8029
+ title: config.title
8030
+ }));
8031
+ }
8032
+ /** The drawer's header while its page loads. */
8033
+ function LoadingHeader({
8034
+ closeDrawer,
8035
+ heading
8036
+ }) {
8037
+ return /*#__PURE__*/React__default.createElement(DrawerHeader, {
8038
+ closeDrawer: closeDrawer
8039
+ }, /*#__PURE__*/React__default.createElement(StackView$2, {
8040
+ alignment: "center",
8041
+ axis: "horizontal",
8042
+ spacing: 1
8043
+ }, /*#__PURE__*/React__default.createElement(DrawerHeading, null, heading), /*#__PURE__*/React__default.createElement(Spinner, {
8044
+ "aria-label": `Loading ${heading}`,
8045
+ color: "var(--t-fill-color-neutral-030)",
8046
+ thickness: 2,
8047
+ trackColor: "var(--t-fill-color-neutral-080)"
8048
+ })));
8049
+ }
8050
+ // Single-page apps navigate with pushState, which fires no event, so the URL
8051
+ // is checked every second while the drawer is open.
8052
+ const HOST_URL_CHECK_MS = 1000;
8053
+ function currentHostUrl() {
8054
+ return `${window.location.pathname}${window.location.search}`;
8055
+ }
8056
+ function useHostUrlWhileOpen(isOpen) {
8057
+ const [hostUrl, setHostUrl] = React__default.useState(currentHostUrl);
8058
+ React__default.useEffect(function followTheHostUrl() {
8059
+ if (!isOpen) return undefined;
8060
+ const check = () => setHostUrl(currentHostUrl());
8061
+ const interval = setInterval(check, HOST_URL_CHECK_MS);
8062
+ window.addEventListener("popstate", check);
8063
+ return () => {
8064
+ clearInterval(interval);
8065
+ window.removeEventListener("popstate", check);
8066
+ };
8067
+ }, [isOpen]);
8068
+ return hostUrl;
8069
+ }
8070
+ function LoadError$1({
8071
+ closeDrawer,
8072
+ fallbackLinks = [],
8073
+ heading,
8074
+ onRetry
8075
+ }) {
8076
+ return /*#__PURE__*/React__default.createElement(StackView$2, {
8077
+ flex: 1,
8078
+ axis: "vertical"
8079
+ }, /*#__PURE__*/React__default.createElement(DrawerHeader, {
8080
+ closeDrawer: closeDrawer
8081
+ }, /*#__PURE__*/React__default.createElement(DrawerHeading, null, heading)), /*#__PURE__*/React__default.createElement(StackView$2, {
8082
+ axis: "vertical",
8083
+ flex: 1,
8084
+ alignment: "center",
8085
+ distribution: "center",
8086
+ padding: 3,
8087
+ spacing: 1
8088
+ }, /*#__PURE__*/React__default.createElement(Text, {
8089
+ size: 5,
8090
+ color: "var(--t-text-color-secondary)"
8091
+ }, "This couldn't load. Try again in a moment."), /*#__PURE__*/React__default.createElement(Box, {
8092
+ paddingTop: 2
8093
+ }, /*#__PURE__*/React__default.createElement(Button$1, {
8094
+ onClick: onRetry,
8095
+ iconLeft: "general.refresh",
8096
+ theme: "primary",
8097
+ variant: "fill",
8098
+ title: "Retry"
8099
+ })), fallbackLinks.map(({
8100
+ href,
8101
+ label
8102
+ }) => (/*#__PURE__*/React__default.createElement(Link$1, {
8103
+ key: href,
8104
+ to: href,
8105
+ external: true
8106
+ }, label)))));
8107
+ }
8108
+
8219
8109
  var styles$1 = {"banner":"banner-YfQ37","stacked":"stacked-EwLRh","content":"content-lNjWf","icon":"icon-abz7q","iconShape":"iconShape-6uyot","iconSparkle":"iconSparkle-t0OzK","text":"text--Vlhl","title":"title-zOEOR","subtitle":"subtitle-ufLnk","chevron":"chevron-oOUA-","inlineContent":"inlineContent-h5sVl","sparkle":"sparkle-uuMBp","inlineTitle":"inlineTitle-ru2Rk","action":"action-fSY3n","actionLabel":"actionLabel-MRBjb","actionChevron":"actionChevron-DghlN"};
8220
8110
 
8221
8111
  const SPARKLE_PATH$1 = "M3.809 10.1332C3.87511 9.95596 4.12579 9.95588 4.19181 10.1332L4.63712 11.3363C4.64169 11.3487 4.65116 11.359 4.66349 11.3637L5.86661 11.809C6.04452 11.8749 6.04455 12.126 5.86661 12.1918L4.66349 12.6371C4.65134 12.6417 4.64173 12.6513 4.63712 12.6635L4.19181 13.8666C4.12597 14.0445 3.87486 14.0445 3.809 13.8666L3.36368 12.6635C3.35905 12.6512 3.3487 12.6417 3.33634 12.6371L2.13321 12.1918C1.95588 12.1258 1.95596 11.8751 2.13321 11.809L3.33634 11.3637C3.34877 11.3591 3.35908 11.3488 3.36368 11.3363L3.809 10.1332ZM8.52091 3.33341C8.68571 2.88899 9.31518 2.88891 9.47989 3.33341L10.5922 6.34122C10.6037 6.37226 10.6285 6.39712 10.6596 6.4086L13.6664 7.52091C14.1113 7.68553 14.1113 8.31528 13.6664 8.47989L10.6596 9.5922C10.6285 9.6037 10.6037 9.6285 10.5922 9.65958L9.47989 12.6664C9.31528 13.1113 8.68553 13.1113 8.52091 12.6664L7.4086 9.65958C7.39712 9.62853 7.37226 9.60371 7.34122 9.5922L4.33341 8.47989C3.88891 8.31518 3.88899 7.68571 4.33341 7.52091L7.34122 6.4086C7.3723 6.3971 7.3971 6.3723 7.4086 6.34122L8.52091 3.33341ZM3.809 2.13321C3.87511 1.95596 4.12579 1.95588 4.19181 2.13321L4.63712 3.33634C4.64169 3.3487 4.65116 3.35905 4.66349 3.36368L5.86661 3.809C6.04452 3.87486 6.04455 4.12597 5.86661 4.19181L4.66349 4.63712C4.65134 4.64173 4.64173 4.65134 4.63712 4.66349L4.19181 5.86661C4.12597 6.04455 3.87486 6.04452 3.809 5.86661L3.36368 4.66349C3.35905 4.65116 3.3487 4.64169 3.33634 4.63712L2.13321 4.19181C1.95588 4.12579 1.95596 3.87511 2.13321 3.809L3.33634 3.36368C3.34877 3.35908 3.35908 3.34877 3.36368 3.33634L3.809 2.13321Z";
@@ -8811,7 +8701,56 @@ function CalendlyWidget({
8811
8701
  styles: styles
8812
8702
  })) : null;
8813
8703
  }
8814
- function HelpdeskComponent({
8704
+ function HelpdeskComponent(props) {
8705
+ return props.mountLegacy === false ? (/*#__PURE__*/React__default.createElement(HelpdeskIframe, {
8706
+ ...props
8707
+ })) : (/*#__PURE__*/React__default.createElement(HelpdeskAddOn, {
8708
+ ...props
8709
+ }));
8710
+ }
8711
+ function HelpdeskIframe(props) {
8712
+ var _a;
8713
+ const fetchZendeskDetails = (_a = props.helpdeskConfig) === null || _a === void 0 ? void 0 : _a.fetchZendeskDetails;
8714
+ const hasPicobotPanel = Boolean(props.openPicobot);
8715
+ const config = React__default.useMemo(() => ({
8716
+ app: "helpdesk",
8717
+ basePath: "/topbar/helpdesk",
8718
+ // People open Help when something's already wrong, so a failed load
8719
+ // still points somewhere that doesn't depend on Helpdesk.
8720
+ fallbackLinks: [{
8721
+ href: "https://www.planningcenter.com/support",
8722
+ label: "Get help on planningcenter.com"
8723
+ }, {
8724
+ href: "https://status.planningcenter.com",
8725
+ label: "Check Planning Center's status"
8726
+ }],
8727
+ heading: "Help and support",
8728
+ params: {
8729
+ fetch_zendesk_details: fetchZendeskDetails ? "1" : null,
8730
+ // Tells helpdesk to send OPEN_PICOBOT rather than embed Ask AI.
8731
+ open_picobot: hasPicobotPanel ? "1" : null
8732
+ },
8733
+ // The gate can answer after the page loads, e.g. when userId arrives
8734
+ // late, so the page also hears about it here.
8735
+ state: {
8736
+ canOpenPicobot: hasPicobotPanel
8737
+ },
8738
+ title: "Help and support"
8739
+ }), [fetchZendeskDetails, hasPicobotPanel]);
8740
+ // The page reads its params once, so mounting before the gate answers
8741
+ // would leave out open_picobot for good.
8742
+ if (props.isPicobotLoading) {
8743
+ return /*#__PURE__*/React__default.createElement(LoadingHeader, {
8744
+ closeDrawer: props.closeDrawer,
8745
+ heading: "Help and support"
8746
+ });
8747
+ }
8748
+ return /*#__PURE__*/React__default.createElement(IframeTool, {
8749
+ ...props,
8750
+ config: config
8751
+ });
8752
+ }
8753
+ function HelpdeskAddOn({
8815
8754
  appName,
8816
8755
  closeDrawer,
8817
8756
  currentPath,
@@ -9689,7 +9628,25 @@ function NavLinkWithBadge({
9689
9628
  ...badge
9690
9629
  }));
9691
9630
  }
9692
- function TasksComponent({
9631
+ const TASKS_IFRAME_CONFIG = {
9632
+ app: "home",
9633
+ basePath: "/topbar/tasks",
9634
+ heading: "To do",
9635
+ title: "To do"
9636
+ };
9637
+ function TasksComponent(props) {
9638
+ return props.mountLegacy === false ? (
9639
+ /*#__PURE__*/
9640
+ // The iframe and Home's own pages share Home's origin and talk to each
9641
+ // other directly, so there's no worker to hand over.
9642
+ React__default.createElement(IframeTool, {
9643
+ ...props,
9644
+ config: TASKS_IFRAME_CONFIG
9645
+ })) : (/*#__PURE__*/React__default.createElement(TasksAddOn, {
9646
+ ...props
9647
+ }));
9648
+ }
9649
+ function TasksAddOn({
9693
9650
  closeDrawer,
9694
9651
  env,
9695
9652
  isOpen,
@@ -10130,6 +10087,8 @@ function Toolbar({
10130
10087
  env,
10131
10088
  helpdeskConfig = {},
10132
10089
  linkToProfile = true,
10090
+ mountLegacyHelpdesk = true,
10091
+ mountLegacyTasks = true,
10133
10092
  onReceiveTasksWorker,
10134
10093
  requestClearAppsCache,
10135
10094
  userAvatarPath,
@@ -10374,6 +10333,7 @@ function Toolbar({
10374
10333
  const toolSpecificProps = {
10375
10334
  Helpdesk: {
10376
10335
  isPicobotLoading: isPicobotGateLoading,
10336
+ mountLegacy: mountLegacyHelpdesk,
10377
10337
  openPicobot: displayPicobotIcon ? openPicobot : undefined
10378
10338
  },
10379
10339
  Profile: {
@@ -10389,6 +10349,7 @@ function Toolbar({
10389
10349
  userAvatarPath
10390
10350
  },
10391
10351
  Tasks: {
10352
+ mountLegacy: mountLegacyTasks,
10392
10353
  onReceiveWorker: onReceiveTasksWorker
10393
10354
  }
10394
10355
  };