@planningcenter/topbar 12.7.0-rc.2 → 12.8.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/topbar.js CHANGED
@@ -6,8 +6,9 @@ var pcoUrl$1 = require('@planningcenter/url');
6
6
  var general = require('@planningcenter/icons/paths/general');
7
7
  var Jolt = require('@planningcenter/jolt-client');
8
8
  var shim = require('use-sync-external-store/shim');
9
- require('react/jsx-runtime');
9
+ var accounts = require('@planningcenter/icons/paths/accounts');
10
10
  var toolbar = require('@planningcenter/icons/paths/toolbar');
11
+ require('react/jsx-runtime');
11
12
  var datetimeFmt = require('@planningcenter/datetime-fmt');
12
13
  var pluralize = require('pluralize');
13
14
  var logomarks = require('@planningcenter/icons/paths/logomark');
@@ -40,12 +41,13 @@ function _interopNamespaceDefault(e) {
40
41
 
41
42
  var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
42
43
  var general__namespace = /*#__PURE__*/_interopNamespaceDefault(general);
44
+ var accounts__namespace = /*#__PURE__*/_interopNamespaceDefault(accounts);
43
45
  var toolbar__namespace = /*#__PURE__*/_interopNamespaceDefault(toolbar);
44
46
  var logomarks__namespace = /*#__PURE__*/_interopNamespaceDefault(logomarks);
45
47
  var churchCenter__namespace = /*#__PURE__*/_interopNamespaceDefault(churchCenter);
46
48
  var people__namespace = /*#__PURE__*/_interopNamespaceDefault(people);
47
49
 
48
- var styles$u = {"accessibility-toolbar":"accessibility-toolbar-jgjUG"};
50
+ var styles$r = {"accessibility-toolbar":"accessibility-toolbar-jgjUG"};
49
51
 
50
52
  const AccessibilityToolbar = ({
51
53
  children
@@ -57,7 +59,7 @@ const AccessibilityToolbar = ({
57
59
  (_a = document.getElementById("main-content")) === null || _a === void 0 ? void 0 : _a.focus();
58
60
  };
59
61
  return /*#__PURE__*/React.createElement("div", {
60
- className: styles$u["accessibility-toolbar"]
62
+ className: styles$r["accessibility-toolbar"]
61
63
  }, /*#__PURE__*/React.createElement(tapestry.Link, {
62
64
  href: "#main-content",
63
65
  kind: "primary",
@@ -376,11 +378,11 @@ const X = ({
376
378
  fill: fill
377
379
  })));
378
380
 
379
- 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"};
381
+ 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"};
380
382
 
381
383
  function AnnouncementIcon() {
382
384
  return /*#__PURE__*/React.createElement("svg", {
383
- className: styles$t["announcement-icon"],
385
+ className: styles$q["announcement-icon"],
384
386
  width: "16",
385
387
  height: "16",
386
388
  viewBox: "0 0 16 16",
@@ -505,7 +507,7 @@ let StyledAnnouncement$1 = class StyledAnnouncement extends React.Component {
505
507
  } = this.props;
506
508
  const isPromo = variant === "promo";
507
509
  return /*#__PURE__*/React.createElement("div", {
508
- className: classnames(styles$t["announcement"], styles$t[`announcement--${variant !== null && variant !== void 0 ? variant : "platform"}`]),
510
+ className: classnames(styles$q["announcement"], styles$q[`announcement--${variant !== null && variant !== void 0 ? variant : "platform"}`]),
509
511
  "data-announcement-variant": variant !== null && variant !== void 0 ? variant : "platform",
510
512
  style: isPromo ? {
511
513
  backgroundImage: promoBackgroundUrl,
@@ -514,7 +516,7 @@ let StyledAnnouncement$1 = class StyledAnnouncement extends React.Component {
514
516
  backgroundSize: "cover"
515
517
  } : undefined
516
518
  }, !isPromo && /*#__PURE__*/React.createElement(AnnouncementIcon, null), /*#__PURE__*/React.createElement("div", {
517
- className: styles$t["announcement-content"],
519
+ className: styles$q["announcement-content"],
518
520
  style: style,
519
521
  ...platformProps
520
522
  }));
@@ -563,7 +565,7 @@ function StyledDismissButton$1({
563
565
  const isPromo = variant === "promo";
564
566
  return /*#__PURE__*/React.createElement("button", {
565
567
  type: "button",
566
- className: classnames(styles$t.dismiss, isPromo && styles$t["dismiss--promo"]),
568
+ className: classnames(styles$q.dismiss, isPromo && styles$q["dismiss--promo"]),
567
569
  ...props
568
570
  }, /*#__PURE__*/React.createElement(X, {
569
571
  fill: isPromo ? "currentColor" : "white",
@@ -643,9 +645,9 @@ class StyledAnnouncement extends React.Component {
643
645
  ...platformProps
644
646
  } = this.props;
645
647
  return /*#__PURE__*/React.createElement("div", {
646
- className: styles$t["announcement"]
648
+ className: styles$q["announcement"]
647
649
  }, /*#__PURE__*/React.createElement(AnnouncementIcon, null), /*#__PURE__*/React.createElement("div", {
648
- className: styles$t["announcement-content"],
650
+ className: styles$q["announcement-content"],
649
651
  style: style,
650
652
  ...platformProps
651
653
  }));
@@ -656,7 +658,7 @@ function StyledDismissButton({
656
658
  }) {
657
659
  return /*#__PURE__*/React.createElement("button", {
658
660
  type: "button",
659
- className: styles$t.dismiss,
661
+ className: styles$q.dismiss,
660
662
  ...props
661
663
  }, /*#__PURE__*/React.createElement(X, {
662
664
  fill: "white",
@@ -1215,6 +1217,9 @@ function groupApps(apps) {
1215
1217
  accountsProduct: apps.find(({
1216
1218
  name
1217
1219
  }) => name === "Accounts"),
1220
+ hasChurchCenter: apps.some(({
1221
+ name
1222
+ }) => name === "Publishing"),
1218
1223
  homeProduct: apps.find(({
1219
1224
  name
1220
1225
  }) => name === "Home"),
@@ -1225,7 +1230,7 @@ function groupApps(apps) {
1225
1230
  }
1226
1231
 
1227
1232
  // TODO: Use Fragments when we React 16 is a baseline
1228
- function Accounts$2() {
1233
+ function Accounts$1() {
1229
1234
  return [/*#__PURE__*/React.createElement("defs", {
1230
1235
  key: "def"
1231
1236
  }, /*#__PURE__*/React.createElement("linearGradient", {
@@ -1249,7 +1254,7 @@ function Accounts$2() {
1249
1254
  fill: "url(#2e1ed2e7-b842-4126-8f57-f6b6dd63ddb6)"
1250
1255
  })];
1251
1256
  }
1252
- function API$2() {
1257
+ function API$1() {
1253
1258
  return [/*#__PURE__*/React.createElement("defs", {
1254
1259
  key: "def"
1255
1260
  }, /*#__PURE__*/React.createElement("linearGradient", {
@@ -1273,7 +1278,7 @@ function API$2() {
1273
1278
  fill: "url(#c8ec303e-a96d-4850-93ae-70864e3306bb)"
1274
1279
  })];
1275
1280
  }
1276
- function Calendar$2() {
1281
+ function Calendar$1() {
1277
1282
  return [/*#__PURE__*/React.createElement("defs", {
1278
1283
  key: "defs"
1279
1284
  }, /*#__PURE__*/React.createElement("linearGradient", {
@@ -1297,7 +1302,7 @@ function Calendar$2() {
1297
1302
  fill: "url(#calendar-gradient)"
1298
1303
  })];
1299
1304
  }
1300
- function Chat$3() {
1305
+ function Chat$2() {
1301
1306
  return [/*#__PURE__*/React.createElement("defs", {
1302
1307
  key: "def"
1303
1308
  }, /*#__PURE__*/React.createElement("linearGradient", {
@@ -1321,7 +1326,7 @@ function Chat$3() {
1321
1326
  fill: "url(#chat-gradient)"
1322
1327
  })];
1323
1328
  }
1324
- function CheckIns$2() {
1329
+ function CheckIns$1() {
1325
1330
  return [/*#__PURE__*/React.createElement("defs", {
1326
1331
  key: "def"
1327
1332
  }, /*#__PURE__*/React.createElement("linearGradient", {
@@ -1345,7 +1350,7 @@ function CheckIns$2() {
1345
1350
  fill: "url(#679bc2bf-38c8-45ab-9ee3-a2ff814fead7)"
1346
1351
  })];
1347
1352
  }
1348
- function ChurchCenter$2() {
1353
+ function ChurchCenter$1() {
1349
1354
  return [/*#__PURE__*/React.createElement("defs", {
1350
1355
  key: "def"
1351
1356
  }, /*#__PURE__*/React.createElement("linearGradient", {
@@ -1369,7 +1374,7 @@ function ChurchCenter$2() {
1369
1374
  fill: "url(#6de99831-a6f8-498e-9bf3-9d55c8d887fa)"
1370
1375
  })];
1371
1376
  }
1372
- function Giving$2() {
1377
+ function Giving$1() {
1373
1378
  return [/*#__PURE__*/React.createElement("defs", {
1374
1379
  key: "def"
1375
1380
  }, /*#__PURE__*/React.createElement("linearGradient", {
@@ -1393,7 +1398,7 @@ function Giving$2() {
1393
1398
  fill: "url(#0aae6372-b733-476d-af45-8777c08c1e24)"
1394
1399
  })];
1395
1400
  }
1396
- function Groups$2() {
1401
+ function Groups$1() {
1397
1402
  return [/*#__PURE__*/React.createElement("defs", {
1398
1403
  key: "def"
1399
1404
  }, /*#__PURE__*/React.createElement("linearGradient", {
@@ -1417,7 +1422,7 @@ function Groups$2() {
1417
1422
  fill: "url(#86d10072-1c7f-4a02-88fe-0735565ae99a)"
1418
1423
  })];
1419
1424
  }
1420
- function Home$2() {
1425
+ function Home$1() {
1421
1426
  return [/*#__PURE__*/React.createElement("defs", {
1422
1427
  key: "def"
1423
1428
  }, /*#__PURE__*/React.createElement("linearGradient", {
@@ -1441,7 +1446,7 @@ function Home$2() {
1441
1446
  fill: "url(#paint0_linear_1_2)"
1442
1447
  })];
1443
1448
  }
1444
- function People$2() {
1449
+ function People$1() {
1445
1450
  return [/*#__PURE__*/React.createElement("defs", {
1446
1451
  key: "def"
1447
1452
  }, /*#__PURE__*/React.createElement("linearGradient", {
@@ -1465,7 +1470,7 @@ function People$2() {
1465
1470
  fill: "url(#7f805f16-2322-4b42-b61a-2bf71eadb25a)"
1466
1471
  })];
1467
1472
  }
1468
- function Publishing$2() {
1473
+ function Publishing$1() {
1469
1474
  return [/*#__PURE__*/React.createElement("defs", {
1470
1475
  key: "def"
1471
1476
  }, /*#__PURE__*/React.createElement("linearGradient", {
@@ -1504,7 +1509,7 @@ function Publishing$2() {
1504
1509
  key: "circle"
1505
1510
  })];
1506
1511
  }
1507
- function Registrations$2() {
1512
+ function Registrations$1() {
1508
1513
  return [/*#__PURE__*/React.createElement("defs", {
1509
1514
  key: "def"
1510
1515
  }, /*#__PURE__*/React.createElement("linearGradient", {
@@ -1528,7 +1533,7 @@ function Registrations$2() {
1528
1533
  fill: "url(#bd67604d-f11c-4431-bd82-159c57241115)"
1529
1534
  })];
1530
1535
  }
1531
- function Services$2() {
1536
+ function Services$1() {
1532
1537
  return [/*#__PURE__*/React.createElement("defs", {
1533
1538
  key: "def"
1534
1539
  }, /*#__PURE__*/React.createElement("linearGradient", {
@@ -1555,19 +1560,19 @@ function Services$2() {
1555
1560
 
1556
1561
  var ColorAppSquircles = /*#__PURE__*/Object.freeze({
1557
1562
  __proto__: null,
1558
- API: API$2,
1559
- Accounts: Accounts$2,
1560
- Calendar: Calendar$2,
1561
- Chat: Chat$3,
1562
- CheckIns: CheckIns$2,
1563
- ChurchCenter: ChurchCenter$2,
1564
- Giving: Giving$2,
1565
- Groups: Groups$2,
1566
- Home: Home$2,
1567
- People: People$2,
1568
- Publishing: Publishing$2,
1569
- Registrations: Registrations$2,
1570
- Services: Services$2
1563
+ API: API$1,
1564
+ Accounts: Accounts$1,
1565
+ Calendar: Calendar$1,
1566
+ Chat: Chat$2,
1567
+ CheckIns: CheckIns$1,
1568
+ ChurchCenter: ChurchCenter$1,
1569
+ Giving: Giving$1,
1570
+ Groups: Groups$1,
1571
+ Home: Home$1,
1572
+ People: People$1,
1573
+ Publishing: Publishing$1,
1574
+ Registrations: Registrations$1,
1575
+ Services: Services$1
1571
1576
  });
1572
1577
 
1573
1578
  function Squircle$1({
@@ -1578,7 +1583,7 @@ function Squircle$1({
1578
1583
  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"
1579
1584
  });
1580
1585
  }
1581
- function Accounts$1({
1586
+ function Accounts({
1582
1587
  color
1583
1588
  }) {
1584
1589
  return /*#__PURE__*/React.createElement("path", {
@@ -1586,7 +1591,7 @@ function Accounts$1({
1586
1591
  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"
1587
1592
  });
1588
1593
  }
1589
- function API$1({
1594
+ function API({
1590
1595
  color
1591
1596
  }) {
1592
1597
  return /*#__PURE__*/React.createElement("path", {
@@ -1594,7 +1599,7 @@ function API$1({
1594
1599
  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"
1595
1600
  });
1596
1601
  }
1597
- function Calendar$1({
1602
+ function Calendar({
1598
1603
  color
1599
1604
  }) {
1600
1605
  return /*#__PURE__*/React.createElement("path", {
@@ -1602,7 +1607,7 @@ function Calendar$1({
1602
1607
  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"
1603
1608
  });
1604
1609
  }
1605
- function Chat$2({
1610
+ function Chat$1({
1606
1611
  color
1607
1612
  }) {
1608
1613
  return /*#__PURE__*/React.createElement("path", {
@@ -1610,7 +1615,7 @@ function Chat$2({
1610
1615
  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"
1611
1616
  });
1612
1617
  }
1613
- function CheckIns$1({
1618
+ function CheckIns({
1614
1619
  color
1615
1620
  }) {
1616
1621
  return /*#__PURE__*/React.createElement("path", {
@@ -1618,7 +1623,7 @@ function CheckIns$1({
1618
1623
  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"
1619
1624
  });
1620
1625
  }
1621
- function ChurchCenter$1({
1626
+ function ChurchCenter({
1622
1627
  color
1623
1628
  }) {
1624
1629
  return /*#__PURE__*/React.createElement("path", {
@@ -1626,7 +1631,7 @@ function ChurchCenter$1({
1626
1631
  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"
1627
1632
  });
1628
1633
  }
1629
- function Giving$1({
1634
+ function Giving({
1630
1635
  color
1631
1636
  }) {
1632
1637
  return /*#__PURE__*/React.createElement("path", {
@@ -1634,7 +1639,7 @@ function Giving$1({
1634
1639
  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"
1635
1640
  });
1636
1641
  }
1637
- function Groups$1({
1642
+ function Groups({
1638
1643
  color
1639
1644
  }) {
1640
1645
  return /*#__PURE__*/React.createElement("path", {
@@ -1642,7 +1647,7 @@ function Groups$1({
1642
1647
  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"
1643
1648
  });
1644
1649
  }
1645
- function Home$1({
1650
+ function Home({
1646
1651
  color
1647
1652
  }) {
1648
1653
  return /*#__PURE__*/React.createElement("path", {
@@ -1650,7 +1655,7 @@ function Home$1({
1650
1655
  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"
1651
1656
  });
1652
1657
  }
1653
- function People$1({
1658
+ function People({
1654
1659
  color
1655
1660
  }) {
1656
1661
  return /*#__PURE__*/React.createElement("path", {
@@ -1658,7 +1663,7 @@ function People$1({
1658
1663
  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"
1659
1664
  });
1660
1665
  }
1661
- function Publishing$1({
1666
+ function Publishing({
1662
1667
  color
1663
1668
  }) {
1664
1669
  return /*#__PURE__*/React.createElement("path", {
@@ -1666,7 +1671,7 @@ function Publishing$1({
1666
1671
  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"
1667
1672
  });
1668
1673
  }
1669
- function Registrations$1({
1674
+ function Registrations({
1670
1675
  color
1671
1676
  }) {
1672
1677
  return /*#__PURE__*/React.createElement("path", {
@@ -1674,7 +1679,7 @@ function Registrations$1({
1674
1679
  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"
1675
1680
  });
1676
1681
  }
1677
- function Services$1({
1682
+ function Services({
1678
1683
  color
1679
1684
  }) {
1680
1685
  return /*#__PURE__*/React.createElement("path", {
@@ -1685,19 +1690,19 @@ function Services$1({
1685
1690
 
1686
1691
  var AppSymbols = /*#__PURE__*/Object.freeze({
1687
1692
  __proto__: null,
1688
- API: API$1,
1689
- Accounts: Accounts$1,
1690
- Calendar: Calendar$1,
1691
- Chat: Chat$2,
1692
- CheckIns: CheckIns$1,
1693
- ChurchCenter: ChurchCenter$1,
1694
- Giving: Giving$1,
1695
- Groups: Groups$1,
1696
- Home: Home$1,
1697
- People: People$1,
1698
- Publishing: Publishing$1,
1699
- Registrations: Registrations$1,
1700
- Services: Services$1,
1693
+ API: API,
1694
+ Accounts: Accounts,
1695
+ Calendar: Calendar,
1696
+ Chat: Chat$1,
1697
+ CheckIns: CheckIns,
1698
+ ChurchCenter: ChurchCenter,
1699
+ Giving: Giving,
1700
+ Groups: Groups,
1701
+ Home: Home,
1702
+ People: People,
1703
+ Publishing: Publishing,
1704
+ Registrations: Registrations,
1705
+ Services: Services,
1701
1706
  Squircle: Squircle$1
1702
1707
  });
1703
1708
 
@@ -1778,688 +1783,180 @@ function MonoAppIcon({
1778
1783
  })) : (/*#__PURE__*/React.createElement("div", null, "appName not supported")));
1779
1784
  }
1780
1785
 
1781
- var styles$s = {"name":"name-UNqbW"};
1782
-
1783
- const AppRow = ({
1784
- appName,
1785
- colors,
1786
- iconSize = 24
1787
- }) => {
1788
- if (appName === "Accounts") {
1789
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(MonoAppIcon, {
1790
- appName: "Accounts",
1791
- colors: colors,
1792
- size: iconSize
1793
- }), /*#__PURE__*/React.createElement("span", {
1794
- className: styles$s.name
1795
- }, "Account settings"));
1796
- }
1797
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ColorAppIcon, {
1798
- appName: appName.replace(/[\s-]/, ""),
1799
- size: iconSize
1800
- }), /*#__PURE__*/React.createElement("span", {
1801
- className: styles$s.name
1802
- }, appName));
1803
- };
1804
-
1805
- var styles$r = {"button":"button-NPHAj","label":"label-1EckO","chevron":"chevron-6-PM4"};
1806
-
1807
- const AppsButton = /*#__PURE__*/React.forwardRef(({
1808
- appName,
1809
- colors,
1810
- ...restProps
1811
- }, ref) => {
1812
- const isAccounts = appName === "Accounts";
1813
- return /*#__PURE__*/React.createElement(tapestry.Button, {
1814
- ...restProps,
1815
- ref: ref,
1816
- "aria-label": `App switcher: ${appName}`,
1817
- className: styles$r.button,
1818
- kind: "neutral-inline",
1819
- label: /*#__PURE__*/React.createElement("span", {
1820
- className: styles$r.label
1821
- }, isAccounts ? "Account settings" : appName),
1822
- prefix: isAccounts ? (/*#__PURE__*/React.createElement(MonoAppIcon, {
1823
- appName: "Accounts",
1824
- colors: colors,
1825
- size: 24
1826
- })) : (/*#__PURE__*/React.createElement(ColorAppIcon, {
1827
- appName: appName.replace(/[\s-]/, ""),
1828
- size: 24
1829
- })),
1830
- suffix: /*#__PURE__*/React.createElement(DisclosureChevronIcon, {
1831
- className: `${styles$r.chevron} symbol`
1832
- })
1833
- });
1834
- });
1835
- AppsButton.displayName = "AppsButton";
1836
-
1837
- 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"};
1786
+ var styles$p = {"name":"name-UNqbW"};
1838
1787
 
1839
- const AppsMenu = ({
1840
- appName,
1841
- apps,
1842
- colors,
1843
- env,
1844
- requestAppsFetch
1845
- }) => {
1846
- const {
1847
- accountsProduct,
1848
- homeProduct,
1849
- restProducts
1850
- } = groupApps(apps);
1851
- const renderProductLink = name => {
1852
- const isCurrent = name === appName;
1853
- return /*#__PURE__*/React.createElement("li", {
1854
- key: name
1855
- }, /*#__PURE__*/React.createElement("a", {
1856
- "aria-current": isCurrent ? "page" : undefined,
1857
- "aria-label": name,
1858
- className: classnames(styles$q.link, {
1859
- [styles$q.current]: isCurrent
1860
- }),
1861
- "data-pendo": `app-switcher--change-app--${name}`,
1862
- "data-turbolinks": false,
1863
- href: isCurrent ? `${pcoUrl$1(env)("accounts")}/apps/${name.toLowerCase()}` : pcoUrl$1(env)("accounts") + getAppsSwitchProductPath(name)
1864
- }, /*#__PURE__*/React.createElement(AppRow, {
1865
- appName: name
1866
- })));
1867
- };
1868
- return /*#__PURE__*/React.createElement(tapestry.Popover, {
1869
- onOpenChange: open => open && requestAppsFetch()
1870
- }, /*#__PURE__*/React.createElement(tapestry.PopoverTrigger, null, /*#__PURE__*/React.createElement(AppsButton, {
1871
- appName: appName,
1872
- colors: colors
1873
- })), /*#__PURE__*/React.createElement(tapestry.PopoverContent, {
1874
- "aria-label": "Switch app",
1875
- className: styles$q["popover-content"],
1876
- placement: "bottom start"
1877
- }, /*#__PURE__*/React.createElement("nav", {
1878
- className: styles$q.nav,
1879
- "data-pendo": "app-switcher"
1880
- }, /*#__PURE__*/React.createElement("ul", {
1881
- className: styles$q.list,
1882
- role: "list"
1883
- }, homeProduct && renderProductLink(homeProduct.name), restProducts.map(({
1884
- name
1885
- }) => renderProductLink(name)), accountsProduct && (/*#__PURE__*/React.createElement("li", {
1886
- className: styles$q["accounts-item"]
1887
- }, /*#__PURE__*/React.createElement("a", {
1888
- "aria-current": appName === accountsProduct.name ? "page" : undefined,
1889
- "aria-label": "Account settings",
1890
- className: classnames(styles$q.link, styles$q["accounts-link"]),
1891
- "data-pendo": "app-switcher--change-app--Accounts",
1892
- "data-turbolinks": false,
1893
- href: pcoUrl$1(env)("accounts") + getAppsSwitchProductPath(accountsProduct.name)
1894
- }, /*#__PURE__*/React.createElement(AppRow, {
1895
- appName: "Accounts",
1896
- colors: colors
1897
- }))))))));
1788
+ const collections = {
1789
+ accounts: accounts__namespace,
1790
+ general: general__namespace,
1791
+ toolbar: toolbar__namespace
1898
1792
  };
1899
-
1900
- const fill = "var(--t-text-color)";
1901
- function Accounts({
1902
- size = 20
1903
- }) {
1904
- return /*#__PURE__*/React.createElement("svg", {
1905
- "data-logo": "mono-app-text",
1906
- height: size,
1907
- viewBox: "0 0 77.073 20",
1908
- xmlns: "http://www.w3.org/2000/svg"
1909
- }, /*#__PURE__*/React.createElement("title", null, "accounts-text"), /*#__PURE__*/React.createElement("path", {
1910
- fill: fill,
1911
- 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"
1912
- }));
1913
- }
1914
- function API({
1915
- size = 20
1916
- }) {
1917
- return /*#__PURE__*/React.createElement("svg", {
1918
- "data-logo": "mono-app-text",
1919
- height: size,
1920
- viewBox: "0 0 119.5 20",
1921
- xmlns: "http://www.w3.org/2000/svg"
1922
- }, /*#__PURE__*/React.createElement("title", null, "api-text"), /*#__PURE__*/React.createElement("path", {
1923
- fill: fill,
1924
- 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"
1925
- }));
1926
- }
1927
- function Calendar({
1928
- size = 20
1929
- }) {
1930
- return /*#__PURE__*/React.createElement("svg", {
1931
- "data-logo": "mono-app-text",
1932
- height: size,
1933
- viewBox: "0 0 73.83 20",
1934
- xmlns: "http://www.w3.org/2000/svg"
1935
- }, /*#__PURE__*/React.createElement("title", null, "calendar-text"), /*#__PURE__*/React.createElement("path", {
1936
- fill: fill,
1937
- 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"
1938
- }));
1939
- }
1940
- function Chat$1({
1941
- size = 20
1942
- }) {
1943
- return /*#__PURE__*/React.createElement("svg", {
1944
- "data-logo": "mono-app-text",
1945
- height: size,
1946
- viewBox: "0 0 35.5988 20",
1947
- xmlns: "http://www.w3.org/2000/svg"
1948
- }, /*#__PURE__*/React.createElement("title", null, "chat-text"), /*#__PURE__*/React.createElement("path", {
1949
- fill: fill,
1950
- transform: "translate(0, 1.121) scale(0.739013)",
1951
- 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"
1952
- }));
1953
- }
1954
- function CheckIns({
1955
- size = 20
1956
- }) {
1957
- return /*#__PURE__*/React.createElement("svg", {
1958
- "data-logo": "mono-app-text",
1959
- height: size,
1960
- viewBox: "0 0 79.311 20",
1961
- xmlns: "http://www.w3.org/2000/svg"
1962
- }, /*#__PURE__*/React.createElement("title", null, "check-ins-text"), /*#__PURE__*/React.createElement("path", {
1963
- fill: fill,
1964
- 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"
1965
- }));
1966
- }
1967
- function ChurchCenter({
1968
- size = 20
1969
- }) {
1970
- return /*#__PURE__*/React.createElement("svg", {
1971
- "data-logo": "mono-app-text",
1972
- height: size,
1973
- viewBox: "0 0 118.083 20",
1974
- xmlns: "http://www.w3.org/2000/svg"
1975
- }, /*#__PURE__*/React.createElement("title", null, "church-center-text"), /*#__PURE__*/React.createElement("path", {
1976
- fill: fill,
1977
- 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"
1978
- }));
1979
- }
1980
- function Giving({
1981
- size = 20
1982
- }) {
1983
- return /*#__PURE__*/React.createElement("svg", {
1984
- "data-logo": "mono-app-text",
1985
- height: size,
1986
- viewBox: "0 0 50.486 20",
1987
- xmlns: "http://www.w3.org/2000/svg"
1988
- }, /*#__PURE__*/React.createElement("title", null, "giving-text"), /*#__PURE__*/React.createElement("path", {
1989
- fill: fill,
1990
- 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"
1991
- }));
1992
- }
1993
- function Home({
1994
- size = 20
1995
- }) {
1996
- return /*#__PURE__*/React.createElement("svg", {
1997
- "data-logo": "mono-app-text",
1998
- xmlns: "http://www.w3.org/2000/svg",
1999
- height: size,
2000
- viewBox: "0 0 47.624 20"
2001
- }, /*#__PURE__*/React.createElement("title", null, "home-text"), /*#__PURE__*/React.createElement("path", {
2002
- fill: fill,
2003
- 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"
2004
- }));
2005
- }
2006
- function Groups({
2007
- size = 20
2008
- }) {
2009
- return /*#__PURE__*/React.createElement("svg", {
2010
- "data-logo": "mono-app-text",
2011
- height: size,
2012
- viewBox: "0 0 58.688 20",
2013
- xmlns: "http://www.w3.org/2000/svg"
2014
- }, /*#__PURE__*/React.createElement("title", null, "groups-text"), /*#__PURE__*/React.createElement("path", {
2015
- fill: fill,
2016
- 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"
2017
- }));
2018
- }
2019
- function People({
2020
- size = 20
2021
- }) {
2022
- return /*#__PURE__*/React.createElement("svg", {
2023
- "data-logo": "mono-app-text",
2024
- height: size,
2025
- viewBox: "0 0 57.729 20",
2026
- xmlns: "http://www.w3.org/2000/svg"
2027
- }, /*#__PURE__*/React.createElement("title", null, "people-text"), /*#__PURE__*/React.createElement("path", {
2028
- fill: fill,
2029
- 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"
2030
- }));
2031
- }
2032
- function Publishing({
2033
- size = 20
1793
+ const paths = collections;
1794
+ function Icon({
1795
+ name,
1796
+ size = 16,
1797
+ style,
1798
+ theme,
1799
+ title,
1800
+ ...props
2034
1801
  }) {
1802
+ const [collection, symbol] = name.split(".");
2035
1803
  return /*#__PURE__*/React.createElement("svg", {
2036
- "data-logo": "mono-app-text",
2037
- xmlns: "http://www.w3.org/2000/svg",
1804
+ "aria-hidden": title ? undefined : true,
1805
+ fill: "currentColor",
2038
1806
  height: size,
2039
- viewBox: "0 0 84.973 20"
2040
- }, /*#__PURE__*/React.createElement("title", null, "publishing-text"), /*#__PURE__*/React.createElement("path", {
2041
- 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",
2042
- fill: fill
2043
- }));
2044
- }
2045
- function Registrations({
2046
- size = 20
2047
- }) {
2048
- return /*#__PURE__*/React.createElement("svg", {
2049
- "data-logo": "mono-app-text",
2050
- xmlns: "http://www.w3.org/2000/svg",
2051
- height: size,
2052
- viewBox: "0 0 105.758 20"
2053
- }, /*#__PURE__*/React.createElement("title", null, "registrations-text"), /*#__PURE__*/React.createElement("path", {
2054
- fill: fill,
2055
- 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"
2056
- }));
2057
- }
2058
- function Services({
2059
- size = 20
2060
- }) {
2061
- return /*#__PURE__*/React.createElement("svg", {
2062
- "data-logo": "mono-app-text",
2063
- xmlns: "http://www.w3.org/2000/svg",
2064
- height: size,
2065
- viewBox: "0 0 67.995 20"
2066
- }, /*#__PURE__*/React.createElement("title", null, "services-text"), /*#__PURE__*/React.createElement("path", {
2067
- fill: fill,
2068
- 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"
2069
- }));
2070
- }
2071
-
2072
- var MonoAppText = /*#__PURE__*/Object.freeze({
2073
- __proto__: null,
2074
- API: API,
2075
- Accounts: Accounts,
2076
- Calendar: Calendar,
2077
- Chat: Chat$1,
2078
- CheckIns: CheckIns,
2079
- ChurchCenter: ChurchCenter,
2080
- Giving: Giving,
2081
- Groups: Groups,
2082
- Home: Home,
2083
- People: People,
2084
- Publishing: Publishing,
2085
- Registrations: Registrations,
2086
- Services: Services
2087
- });
2088
-
2089
- function MonoAppName({
2090
- appName,
2091
- size = 20
2092
- }) {
2093
- return MonoAppText[appName] ? (/*#__PURE__*/React.createElement(MonoAppText[appName], {
2094
- size
2095
- })) : (/*#__PURE__*/React.createElement("div", null, "appName not supported"));
2096
- }
2097
-
2098
- var styles$p = {"unbutton":"unbutton-lEbTR"};
2099
-
2100
- function Unbutton({
2101
- className,
2102
- style,
2103
- type = "button",
2104
- ...nativeProps
2105
- }) {
2106
- return /*#__PURE__*/React.createElement("button", {
2107
- className: classnames(styles$p.unbutton, className),
1807
+ role: title ? "img" : undefined,
2108
1808
  style: {
1809
+ color: theme && `var(${theme})`,
1810
+ flexShrink: 0,
2109
1811
  ...style
2110
1812
  },
2111
- type: type,
2112
- ...nativeProps
2113
- });
2114
- }
2115
-
2116
- var styles$o = {"button":"button-8Zv7k","button-accounts":"button-accounts-oFhiA","chevron":"chevron-tK3nU","is-expanded":"is-expanded-jmmlH"};
2117
-
2118
- const LegacyAppsButton = ({
2119
- appName,
2120
- colors,
2121
- expanded,
2122
- onClick,
2123
- style = null,
2124
- ...nativeProps
2125
- }) => {
2126
- return /*#__PURE__*/React.createElement(Unbutton, {
2127
- "aria-expanded": expanded,
2128
- "aria-haspopup": "true",
2129
- "aria-label": `App switcher: ${appName}`,
2130
- onClick: onClick,
2131
- className: classnames(styles$o.button, {
2132
- [styles$o["is-expanded"]]: expanded
2133
- }),
2134
- type: "button",
2135
- style: style,
2136
- ...nativeProps
2137
- }, appName === "Accounts" ? (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(MonoAppIcon, {
2138
- appName: "Accounts",
2139
- colors: colors
2140
- }), /*#__PURE__*/React.createElement("div", {
2141
- className: styles$o["button-accounts"]
2142
- }, "Account settings"))) : (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ColorAppIcon, {
2143
- appName: appName.replace(/[\s-]/, "")
2144
- }), /*#__PURE__*/React.createElement(MonoAppName, {
2145
- appName: appName.replace(/[\s-]/, ""),
2146
- key: "mono-app-name",
2147
- size: 24
2148
- }))), /*#__PURE__*/React.createElement(DisclosureChevronIcon, {
2149
- className: styles$o.chevron,
2150
- key: "disclosure-chevron-icon"
2151
- }));
2152
- };
2153
-
2154
- // Currently scoped to links and buttons since the app switcher only contains
2155
- // those elements. If this hook is reused in containers with form elements,
2156
- // expand to include: input, select, textarea, [tabindex]:not([tabindex="-1"])
2157
- const FOCUSABLE_SELECTOR = "a[href], button:not([disabled])";
2158
- /**
2159
- * Manages focus trapping within a container element.
2160
- *
2161
- * When `active` becomes true:
2162
- * - Stores the currently focused element
2163
- * - Moves focus to the first focusable child
2164
- *
2165
- * When `active` becomes false:
2166
- * - Returns focus to the previously focused element
2167
- *
2168
- * While active:
2169
- * - Tab/Shift+Tab wraps within the container
2170
- * - Escape calls `onClose`
2171
- *
2172
- * Note: focus trapping uses scoped querySelector on the container ref,
2173
- * which is the same approach used by libraries like focus-trap-react.
2174
- */
2175
- function useFocusTrap({
2176
- active,
2177
- onClose
2178
- }) {
2179
- const containerRef = React.useRef(null);
2180
- const previousFocusRef = React.useRef(null);
2181
- React.useLayoutEffect(() => {
2182
- var _a, _b, _c;
2183
- if (active) {
2184
- previousFocusRef.current = document.activeElement;
2185
- (_b = (_a = containerRef.current) === null || _a === void 0 ? void 0 : _a.querySelector(FOCUSABLE_SELECTOR)) === null || _b === void 0 ? void 0 : _b.focus();
2186
- } else {
2187
- (_c = previousFocusRef.current) === null || _c === void 0 ? void 0 : _c.focus();
2188
- previousFocusRef.current = null;
2189
- }
2190
- }, [active]);
2191
- const handleKeyDown = React.useCallback(e => {
2192
- var _a;
2193
- if (!active) {
2194
- return;
2195
- }
2196
- if (e.key === "Escape") {
2197
- onClose();
2198
- return;
2199
- }
2200
- if (e.key === "Tab") {
2201
- const focusable = (_a = containerRef.current) === null || _a === void 0 ? void 0 : _a.querySelectorAll(FOCUSABLE_SELECTOR);
2202
- if (!focusable || focusable.length === 0) return;
2203
- const first = focusable[0];
2204
- const last = focusable[focusable.length - 1];
2205
- if (e.shiftKey && document.activeElement === first) {
2206
- e.preventDefault();
2207
- last.focus();
2208
- } else if (!e.shiftKey && document.activeElement === last) {
2209
- e.preventDefault();
2210
- first.focus();
2211
- }
2212
- }
2213
- }, [active, onClose]);
2214
- return {
2215
- containerRef,
2216
- handleKeyDown
2217
- };
2218
- }
2219
-
2220
- const fontFamily = {
2221
- fontFamily: `inherit`
2222
- };
2223
- const IEFlex1 = {
2224
- flex: "1 1 auto"
2225
- };
2226
-
2227
- const HoverableListItem = ({
2228
- active = false,
2229
- component: C = "span",
2230
- style = null,
2231
- ...nativeProps
2232
- }) => {
2233
- const [entered, setEntered] = React.useState(false);
2234
- const getBackgroundColor = () => active ? "var(--t-fill-color-neutral-060)" : entered ? "var(--t-fill-color-neutral-080)" : "transparent";
2235
- return /*#__PURE__*/React.createElement(C, {
2236
- onMouseEnter: () => setEntered(true),
2237
- onMouseLeave: () => setEntered(false),
2238
- style: {
2239
- ...style,
2240
- backgroundColor: getBackgroundColor()
2241
- },
2242
- ...nativeProps
2243
- });
2244
- };
2245
-
2246
- class Outsider extends React.Component {
2247
- constructor(props) {
2248
- super(props);
2249
- this.handleOutsideClick = this.handleOutsideClick.bind(this);
2250
- }
2251
- componentWillUnmount() {
2252
- document.removeEventListener("click", this.handleOutsideClick, true);
2253
- }
2254
- handleOutsideClick(e) {
2255
- if (this.container.contains(e.target) || e.target.closest('[data-toolbar-link="true"]')) {
2256
- return;
2257
- } else {
2258
- e.stopPropagation();
2259
- e.preventDefault();
2260
- return this.props.onOutsideClick();
2261
- }
2262
- }
2263
- render() {
2264
- const {
2265
- cleanup,
2266
- onOutsideClick,
2267
- visible,
2268
- ...props
2269
- } = this.props;
2270
- if (cleanup) {
2271
- document.removeEventListener("click", this.handleOutsideClick, true);
2272
- } else {
2273
- document.addEventListener("click", this.handleOutsideClick, true);
2274
- }
2275
- return /*#__PURE__*/React.createElement("div", {
2276
- ref: c => this.container = c,
2277
- ...props
2278
- });
2279
- }
2280
- }
2281
-
2282
- var styles$n = {"popup-root":"popup-root-SeL5u","popup":"popup-nQXYW","is-visible":"is-visible-3DAUP"};
2283
-
2284
- const Popup = ({
2285
- className,
2286
- component: C = "div",
2287
- isVisible,
2288
- ...nativeProps
2289
- }) => (/*#__PURE__*/React.createElement(C, {
2290
- className: classnames(styles$n.popup, {
2291
- [styles$n["is-visible"]]: isVisible
2292
- }, className),
2293
- ...nativeProps
2294
- }));
2295
-
2296
- const PopupRoot = ({
2297
- ...nativeProps
2298
- }) => (/*#__PURE__*/React.createElement("div", {
2299
- className: styles$n["popup-root"],
2300
- ...nativeProps
2301
- }));
2302
-
2303
- var styles$m = {"popup":"popup-bVhSa"};
2304
-
2305
- const LegacyAppsMenu = ({
2306
- appName,
2307
- apps,
2308
- env,
2309
- toggle,
2310
- visible
2311
- }) => {
2312
- const accountsProduct = apps.find(({
2313
- name
2314
- }) => name === "Accounts");
2315
- const homeProduct = apps.find(({
2316
- name
2317
- }) => name === "Home");
2318
- const restProducts = [...apps].filter(({
2319
- name
2320
- }) => name !== "Home" && name !== "Accounts").sort((a, b) => a.name.localeCompare(b.name));
2321
- const {
2322
- containerRef: menuRef,
2323
- handleKeyDown
2324
- } = useFocusTrap({
2325
- active: visible,
2326
- onClose: toggle
2327
- });
2328
- const listItemProps = {
2329
- ...fontFamily,
2330
- alignItems: "center",
2331
- display: "flex",
2332
- height: "48px",
2333
- overflow: "hidden",
2334
- padding: "0 16px",
2335
- verticalAlign: "middle"
2336
- };
2337
- return /*#__PURE__*/React.createElement(PopupRoot, null, /*#__PURE__*/React.createElement(Popup, {
2338
- cleanup: !visible,
2339
- component: Outsider,
2340
- onOutsideClick: toggle,
2341
- className: styles$m.popup,
2342
- isVisible: visible
2343
- }, /*#__PURE__*/React.createElement("menu", {
2344
- ref: menuRef,
2345
- "data-pendo": "app-switcher",
2346
- onKeyDown: handleKeyDown,
2347
- style: {
2348
- margin: 0,
2349
- padding: 0
2350
- }
2351
- }, homeProduct && (/*#__PURE__*/React.createElement(HoverableListItem, {
2352
- "aria-current": appName === homeProduct.name ? "page" : undefined,
2353
- "aria-label": homeProduct.name,
2354
- component: "a",
2355
- "data-pendo": `app-switcher--change-app--${homeProduct.name}`,
2356
- "data-turbolinks": false,
2357
- href: appName === homeProduct.name ? `${pcoUrl$1(env)("accounts")}/apps/${appName}` : pcoUrl$1(env)("accounts") + getAppsSwitchProductPath(homeProduct.name),
2358
- style: {
2359
- ...listItemProps,
2360
- borderBottom: "1px solid var(--t-border-color)"
2361
- }
2362
- }, /*#__PURE__*/React.createElement("div", {
2363
- style: {
2364
- marginRight: "6px"
2365
- }
2366
- }, /*#__PURE__*/React.createElement(ColorAppIcon, {
2367
- appName: "Home",
2368
- size: 20
2369
- })), /*#__PURE__*/React.createElement(MonoAppName, {
2370
- appName: "Home",
2371
- size: 18
2372
- }))), restProducts.map(({
2373
- name
2374
- }, i) => {
2375
- const isFirst = i === 0;
2376
- const isLast = i === restProducts.length - 1;
2377
- return /*#__PURE__*/React.createElement(HoverableListItem, {
2378
- "aria-current": name === appName ? "page" : undefined,
2379
- "aria-label": name,
2380
- component: "a",
2381
- "data-pendo": `app-switcher--change-app--${name}`,
2382
- "data-turbolinks": false,
2383
- href: name === appName ? `${pcoUrl$1(env)("accounts")}/apps/${name.toLowerCase()}` : pcoUrl$1(env)("accounts") + getAppsSwitchProductPath(name),
2384
- key: name,
2385
- style: {
2386
- ...listItemProps,
2387
- height: "40px",
2388
- paddingBottom: isLast ? "4px" : null,
2389
- paddingTop: isFirst ? "4px" : null
2390
- }
2391
- }, /*#__PURE__*/React.createElement("div", {
2392
- style: {
2393
- marginRight: "6px"
2394
- }
2395
- }, /*#__PURE__*/React.createElement(ColorAppIcon, {
2396
- appName: name.replace(/[\s-]/, ""),
2397
- size: 20
2398
- })), /*#__PURE__*/React.createElement(MonoAppName, {
2399
- appName: name.replace(/[\s-]/, ""),
2400
- size: 18
2401
- }));
2402
- }), accountsProduct && (/*#__PURE__*/React.createElement(HoverableListItem, {
2403
- "aria-current": appName === accountsProduct.name ? "page" : undefined,
2404
- "aria-label": accountsProduct.name,
2405
- component: "a",
2406
- "data-pendo": `app-switcher--change-app--${accountsProduct.name}`,
2407
- "data-turbolinks": false,
2408
- href: pcoUrl$1(env)("accounts") + getAppsSwitchProductPath(accountsProduct.name),
2409
- style: {
2410
- ...listItemProps,
2411
- borderTop: "1px solid var(--t-border-color)",
2412
- padding: "0 12px",
2413
- textDecoration: "none"
2414
- }
2415
- }, /*#__PURE__*/React.createElement("svg", {
2416
- height: 22,
2417
- style: {
2418
- display: "block",
2419
- marginRight: "2px"
2420
- },
2421
- viewBox: "0 0 20 20",
2422
- width: 22,
2423
- xmlns: "http://www.w3.org/2000/svg"
2424
- }, /*#__PURE__*/React.createElement(Accounts$1, {
2425
- color: "var(--t-icon-color-secondary)",
2426
- key: "key2"
2427
- })), /*#__PURE__*/React.createElement("div", {
2428
- style: {
2429
- color: "var(--t-text-color-secondary)",
2430
- fontSize: "12px",
2431
- lineHeight: "28px"
2432
- }
2433
- }, "Account settings"))))));
1813
+ viewBox: "0 0 16 16",
1814
+ width: size,
1815
+ ...props
1816
+ }, title && /*#__PURE__*/React.createElement("title", null, title), /*#__PURE__*/React.createElement("path", {
1817
+ d: paths[collection][symbol]
1818
+ }));
1819
+ }
1820
+
1821
+ const AppRow = ({
1822
+ appName,
1823
+ colors,
1824
+ iconSize = 24
1825
+ }) => {
1826
+ if (appName === "Accounts") {
1827
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(MonoAppIcon, {
1828
+ appName: "Accounts",
1829
+ colors: colors,
1830
+ size: iconSize
1831
+ }), /*#__PURE__*/React.createElement("span", {
1832
+ className: styles$p.name
1833
+ }, "Account settings"));
1834
+ }
1835
+ if (appName === "Church Center") {
1836
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Icon, {
1837
+ name: "accounts.churchCenterO",
1838
+ size: iconSize,
1839
+ theme: "--t-icon-color"
1840
+ }), /*#__PURE__*/React.createElement("span", {
1841
+ className: styles$p.name
1842
+ }, "Church Center"));
1843
+ }
1844
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ColorAppIcon, {
1845
+ appName: appName.replace(/[\s-]/, ""),
1846
+ size: iconSize
1847
+ }), /*#__PURE__*/React.createElement("span", {
1848
+ className: styles$p.name
1849
+ }, appName));
2434
1850
  };
2435
1851
 
2436
- const LegacyAppsSwitcher$1 = ({
1852
+ var styles$o = {"button":"button-NPHAj","label":"label-1EckO","chevron":"chevron-6-PM4"};
1853
+
1854
+ const AppsButton = /*#__PURE__*/React.forwardRef(({
1855
+ appName,
1856
+ colors,
1857
+ ...restProps
1858
+ }, ref) => {
1859
+ const isAccounts = appName === "Accounts";
1860
+ return /*#__PURE__*/React.createElement(tapestry.Button, {
1861
+ ...restProps,
1862
+ ref: ref,
1863
+ "aria-label": `App switcher: ${appName}`,
1864
+ className: styles$o.button,
1865
+ kind: "neutral-inline",
1866
+ label: /*#__PURE__*/React.createElement("span", {
1867
+ className: styles$o.label
1868
+ }, isAccounts ? "Account settings" : appName),
1869
+ prefix: isAccounts ? (/*#__PURE__*/React.createElement(MonoAppIcon, {
1870
+ appName: "Accounts",
1871
+ colors: colors,
1872
+ size: 24
1873
+ })) : (/*#__PURE__*/React.createElement(ColorAppIcon, {
1874
+ appName: appName.replace(/[\s-]/, ""),
1875
+ size: 24
1876
+ })),
1877
+ suffix: /*#__PURE__*/React.createElement(DisclosureChevronIcon, {
1878
+ className: `${styles$o.chevron} symbol`
1879
+ })
1880
+ });
1881
+ });
1882
+ AppsButton.displayName = "AppsButton";
1883
+
1884
+ 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"};
1885
+
1886
+ const AppsMenu = ({
2437
1887
  appName,
2438
1888
  apps,
1889
+ churchCenterEnabled = false,
2439
1890
  colors,
2440
1891
  env,
2441
1892
  requestAppsFetch
2442
1893
  }) => {
2443
- const [visible, setVisible] = React.useState(false);
2444
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(LegacyAppsMenu, {
2445
- env: env,
1894
+ const {
1895
+ accountsProduct,
1896
+ hasChurchCenter,
1897
+ homeProduct,
1898
+ restProducts
1899
+ } = groupApps(apps);
1900
+ const showChurchCenter = churchCenterEnabled && hasChurchCenter;
1901
+ const renderProductLink = name => {
1902
+ const isCurrent = name === appName;
1903
+ return /*#__PURE__*/React.createElement("li", {
1904
+ key: name
1905
+ }, /*#__PURE__*/React.createElement("a", {
1906
+ "aria-current": isCurrent ? "page" : undefined,
1907
+ "aria-label": name,
1908
+ className: classnames(styles$n.link, {
1909
+ [styles$n.current]: isCurrent
1910
+ }),
1911
+ "data-pendo": `app-switcher--change-app--${name}`,
1912
+ "data-turbolinks": false,
1913
+ href: isCurrent ? `${pcoUrl$1(env)("accounts")}/apps/${name.toLowerCase()}` : pcoUrl$1(env)("accounts") + getAppsSwitchProductPath(name)
1914
+ }, /*#__PURE__*/React.createElement(AppRow, {
1915
+ appName: name
1916
+ })));
1917
+ };
1918
+ return /*#__PURE__*/React.createElement(tapestry.Popover, {
1919
+ onOpenChange: open => open && requestAppsFetch()
1920
+ }, /*#__PURE__*/React.createElement(tapestry.PopoverTrigger, null, /*#__PURE__*/React.createElement(AppsButton, {
2446
1921
  appName: appName,
2447
- apps: apps,
2448
- visible: visible,
2449
- toggle: () => setVisible(isVisible => !isVisible)
2450
- }), /*#__PURE__*/React.createElement(LegacyAppsButton, {
2451
- colors: colors,
2452
- expanded: visible,
2453
- onClick: () => {
2454
- setVisible(isVisible => !isVisible);
2455
- requestAppsFetch();
2456
- },
2457
- appName: appName
2458
- }));
1922
+ colors: colors
1923
+ })), /*#__PURE__*/React.createElement(tapestry.PopoverContent, {
1924
+ "aria-label": "Switch app",
1925
+ className: styles$n["popover-content"],
1926
+ placement: "bottom start"
1927
+ }, /*#__PURE__*/React.createElement("nav", {
1928
+ className: styles$n.nav,
1929
+ "data-pendo": "app-switcher"
1930
+ }, /*#__PURE__*/React.createElement("ul", {
1931
+ className: styles$n.list,
1932
+ role: "list"
1933
+ }, homeProduct && renderProductLink(homeProduct.name), restProducts.map(({
1934
+ name
1935
+ }) => renderProductLink(name)), accountsProduct && (/*#__PURE__*/React.createElement("li", {
1936
+ className: styles$n["accounts-item"]
1937
+ }, /*#__PURE__*/React.createElement("a", {
1938
+ "aria-current": appName === accountsProduct.name ? "page" : undefined,
1939
+ "aria-label": "Account settings",
1940
+ className: classnames(styles$n.link, styles$n["accounts-link"]),
1941
+ "data-pendo": "app-switcher--change-app--Accounts",
1942
+ "data-turbolinks": false,
1943
+ href: pcoUrl$1(env)("accounts") + getAppsSwitchProductPath(accountsProduct.name)
1944
+ }, /*#__PURE__*/React.createElement(AppRow, {
1945
+ appName: "Accounts",
1946
+ colors: colors
1947
+ })))), showChurchCenter && (/*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("a", {
1948
+ "aria-current": appName === "Church Center" ? "page" : undefined,
1949
+ className: classnames(styles$n.link, styles$n["accounts-link"]),
1950
+ "data-pendo": "app-switcher--change-app--ChurchCenter",
1951
+ "data-turbolinks": false,
1952
+ href: `${pcoUrl$1(env)("publishing")}/dashboard`
1953
+ }, /*#__PURE__*/React.createElement(AppRow, {
1954
+ appName: "Church Center"
1955
+ }))))))));
2459
1956
  };
2460
1957
 
2461
1958
  const FEATURE_FLAGS = {
2462
- APP_SWITCHER_REDESIGN: "ROLLOUT_app_switcher_redesign",
1959
+ CHURCH_CENTER_PRODUCT: "ROLLOUT_church_center_product",
2463
1960
  PRODUCT_SEARCH: "product_search"
2464
1961
  };
2465
1962
  function hasFeature(features, flag) {
@@ -3248,38 +2745,6 @@ const useUpdateStore = () => React.useCallback(updates => {
3248
2745
  });
3249
2746
  }, []);
3250
2747
 
3251
- const collections = {
3252
- general: general__namespace,
3253
- toolbar: toolbar__namespace
3254
- };
3255
- const paths = collections;
3256
- function Icon({
3257
- name,
3258
- size = 16,
3259
- style,
3260
- theme,
3261
- title,
3262
- ...props
3263
- }) {
3264
- const [collection, symbol] = name.split(".");
3265
- return /*#__PURE__*/React.createElement("svg", {
3266
- "aria-hidden": title ? undefined : true,
3267
- fill: "currentColor",
3268
- height: size,
3269
- role: title ? "img" : undefined,
3270
- style: {
3271
- color: theme && `var(${theme})`,
3272
- flexShrink: 0,
3273
- ...style
3274
- },
3275
- viewBox: "0 0 16 16",
3276
- width: size,
3277
- ...props
3278
- }, title && /*#__PURE__*/React.createElement("title", null, title), /*#__PURE__*/React.createElement("path", {
3279
- d: paths[collection][symbol]
3280
- }));
3281
- }
3282
-
3283
2748
  const SEARCHABLE_PRODUCTS = [{
3284
2749
  appName: "Calendar",
3285
2750
  slug: "calendar"
@@ -3348,7 +2813,7 @@ const horizontalStep = key => ({
3348
2813
  ArrowRight: 1
3349
2814
  })[key];
3350
2815
 
3351
- var styles$l = {"searchButton":"searchButton-fYa5-"};
2816
+ var styles$m = {"searchButton":"searchButton-fYa5-"};
3352
2817
 
3353
2818
  function SearchButton({
3354
2819
  mobile = false,
@@ -3357,7 +2822,7 @@ function SearchButton({
3357
2822
  return /*#__PURE__*/React.createElement("button", {
3358
2823
  "aria-keyshortcuts": mobile ? undefined : `${isMac() ? "Meta" : "Control"}+${KEYBOARD_SHORTCUTS.openSearch.key.toUpperCase()} /`,
3359
2824
  "aria-label": "Search",
3360
- className: styles$l.searchButton,
2825
+ className: styles$m.searchButton,
3361
2826
  "data-search-button": true,
3362
2827
  onClick: onClick,
3363
2828
  type: "button"
@@ -4255,19 +3720,27 @@ function ifMatch(version) {
4255
3720
  "If-Match": `"${version}"`
4256
3721
  } : {};
4257
3722
  }
4258
- // Applies `change` to the stored value and writes the result, rereading and
4259
- // retrying when another tab or device wrote in between. `change` returns null
4260
- // when there's nothing to write. A read-only token (staff impersonating
4261
- // someone) only reads, so nothing is written into the person's history.
4262
- // Resolves to the value now stored, with whether the token was read-only, or
4263
- // null when the service couldn't be reached.
4264
- async function updateStoredValue(personId, key, change, attemptsLeft = MAX_ATTEMPTS) {
3723
+ function versionFrom(json) {
3724
+ return isRecord(json) && typeof json.version === "number" ? json.version : undefined;
3725
+ }
3726
+ function write(personId, key, value, version) {
3727
+ return request(personId, key, {
3728
+ body: JSON.stringify({
3729
+ value
3730
+ }),
3731
+ headers: {
3732
+ "Content-Type": "application/json",
3733
+ ...ifMatch(version)
3734
+ },
3735
+ method: "PUT"
3736
+ });
3737
+ }
3738
+ async function readChangeWrite(personId, key, change, attemptsLeft = MAX_ATTEMPTS) {
4265
3739
  const read = await request(personId, key);
4266
3740
  if (read === null || read === void 0 ? void 0 : read.response.ok) {
4267
- const {
4268
- value,
4269
- version
4270
- } = await read.response.json();
3741
+ const json = await read.response.json();
3742
+ const value = isRecord(json) && Array.isArray(json.value) ? json.value : [];
3743
+ const version = versionFrom(json);
4271
3744
  const {
4272
3745
  readOnly
4273
3746
  } = read.token;
@@ -4275,26 +3748,20 @@ async function updateStoredValue(personId, key, change, attemptsLeft = MAX_ATTEM
4275
3748
  if (next === null) {
4276
3749
  return {
4277
3750
  readOnly,
4278
- value: Array.isArray(value) ? value : []
3751
+ value,
3752
+ version
4279
3753
  };
4280
3754
  } else {
4281
- const write = await request(personId, key, {
4282
- body: JSON.stringify({
4283
- value: next
4284
- }),
4285
- headers: {
4286
- "Content-Type": "application/json",
4287
- ...ifMatch(version)
4288
- },
4289
- method: "PUT"
4290
- });
4291
- if (write === null || write === void 0 ? void 0 : write.response.ok) {
3755
+ const written = await write(personId, key, next, version);
3756
+ if (written === null || written === void 0 ? void 0 : written.response.ok) {
3757
+ const reply = await written.response.json();
4292
3758
  return {
4293
3759
  readOnly,
4294
- value: next
3760
+ value: next,
3761
+ version: versionFrom(reply)
4295
3762
  };
4296
- } else if ((write === null || write === void 0 ? void 0 : write.response.status) === 409 && attemptsLeft > 1) {
4297
- return updateStoredValue(personId, key, change, attemptsLeft - 1);
3763
+ } else if ((written === null || written === void 0 ? void 0 : written.response.status) === 409 && attemptsLeft > 1) {
3764
+ return readChangeWrite(personId, key, change, attemptsLeft - 1);
4298
3765
  } else {
4299
3766
  return null;
4300
3767
  }
@@ -4303,6 +3770,46 @@ async function updateStoredValue(personId, key, change, attemptsLeft = MAX_ATTEM
4303
3770
  return null;
4304
3771
  }
4305
3772
  }
3773
+ // Applies `change` to the stored value and writes the result, rereading and
3774
+ // retrying when another tab or device wrote in between. `change` returns null
3775
+ // when there's nothing to write. A read-only token (staff impersonating
3776
+ // someone) only reads, so nothing is written into the person's history.
3777
+ //
3778
+ // With `known`, what this product last synced, the write goes first,
3779
+ // conditioned on that version. Succeeding proves nobody wrote since, so the
3780
+ // read isn't needed; a 409 means someone did, and it rereads. Until this tab
3781
+ // has a token there's no telling whether it's read-only, so it reads first.
3782
+ //
3783
+ // Resolves to the value and version now stored, with whether the token was
3784
+ // read-only, or null when the service couldn't be reached.
3785
+ async function updateStoredValue(personId, key, change, known) {
3786
+ const token = cachedToken(personId);
3787
+ if (!known || known.version === undefined || !token || token.readOnly) {
3788
+ return readChangeWrite(personId, key, change);
3789
+ } else {
3790
+ const next = change(known.value);
3791
+ if (next === null) {
3792
+ return {
3793
+ readOnly: false,
3794
+ ...known
3795
+ };
3796
+ } else {
3797
+ const written = await write(personId, key, next, known.version);
3798
+ if (written === null || written === void 0 ? void 0 : written.response.ok) {
3799
+ const reply = await written.response.json();
3800
+ return {
3801
+ readOnly: false,
3802
+ value: next,
3803
+ version: versionFrom(reply)
3804
+ };
3805
+ } else if ((written === null || written === void 0 ? void 0 : written.response.status) === 409) {
3806
+ return readChangeWrite(personId, key, change);
3807
+ } else {
3808
+ return null;
3809
+ }
3810
+ }
3811
+ }
3812
+ }
4306
3813
 
4307
3814
  // Each product keeps its own copy in localStorage, and user-store-sync joins
4308
3815
  // the copies up across products and devices wherever the product can mint a
@@ -4336,15 +3843,52 @@ function writeRecentlyVisited(scope, entries) {
4336
3843
  // Storage can be full or blocked; recents are disposable.
4337
3844
  }
4338
3845
  }
4339
- async function syncOnce(scope) {
3846
+ // The service's value as of this product's last sync, kept as stored so
3847
+ // entries this build doesn't recognize survive a write made without reading.
3848
+ function snapshotKey(scope) {
3849
+ return `${storageKey(scope)}.synced`;
3850
+ }
3851
+ function readSnapshot(scope) {
3852
+ var _a;
3853
+ try {
3854
+ const snapshot = JSON.parse((_a = localStorage.getItem(snapshotKey(scope))) !== null && _a !== void 0 ? _a : "null");
3855
+ if (isRecord(snapshot) && Array.isArray(snapshot.value) && typeof snapshot.version === "number") {
3856
+ return {
3857
+ value: snapshot.value,
3858
+ version: snapshot.version
3859
+ };
3860
+ } else {
3861
+ return undefined;
3862
+ }
3863
+ } catch {
3864
+ return undefined;
3865
+ }
3866
+ }
3867
+ function writeSnapshot(scope, {
3868
+ value,
3869
+ version
3870
+ }) {
3871
+ try {
3872
+ localStorage.setItem(snapshotKey(scope), JSON.stringify({
3873
+ value,
3874
+ version
3875
+ }));
3876
+ } catch {
3877
+ // Without it, the next write just reads first.
3878
+ }
3879
+ }
3880
+ // A sync for a new visit writes from the snapshot when there is one. Other
3881
+ // syncs are there to bring in visits from elsewhere, so they read.
3882
+ async function syncOnce(scope, forVisit) {
4340
3883
  try {
4341
3884
  const synced = await updateStoredValue(scope.personId, SYNC_KEY, stored => {
4342
3885
  const shared = entriesFrom(stored);
4343
3886
  const local = readRecentlyVisited(scope);
4344
3887
  return isSameList(mergeEntries(shared, local), shared) ? null : mergeStored(stored, local);
4345
- });
3888
+ }, forVisit ? readSnapshot(scope) : undefined);
4346
3889
  if (synced) {
4347
3890
  const shared = entriesFrom(synced.value);
3891
+ writeSnapshot(scope, synced);
4348
3892
  writeRecentlyVisited(scope, synced.readOnly ? shared : mergeEntries(shared, readRecentlyVisited(scope)));
4349
3893
  }
4350
3894
  } catch {
@@ -4356,7 +3900,10 @@ const syncAgain = new Set();
4356
3900
  // One sync per list at a time. A visit recorded while one runs schedules a
4357
3901
  // single follow-up, so it still reaches the service; anything else asking
4358
3902
  // mid-sync just waits for the one running.
4359
- function sync(scope, followUp) {
3903
+ function sync(scope, {
3904
+ followUp,
3905
+ forVisit
3906
+ }) {
4360
3907
  const key = storageKey(scope);
4361
3908
  const running = syncing.get(key);
4362
3909
  if (isUserStoreSyncUnavailable()) {
@@ -4365,16 +3912,22 @@ function sync(scope, followUp) {
4365
3912
  if (followUp) syncAgain.add(key);
4366
3913
  return running;
4367
3914
  } else {
4368
- const run = syncOnce(scope).then(() => {
3915
+ const run = syncOnce(scope, forVisit).then(() => {
4369
3916
  syncing.delete(key);
4370
- return syncAgain.delete(key) ? sync(scope, false) : undefined;
3917
+ return syncAgain.delete(key) ? sync(scope, {
3918
+ followUp: false,
3919
+ forVisit: true
3920
+ }) : undefined;
4371
3921
  });
4372
3922
  syncing.set(key, run);
4373
3923
  return run;
4374
3924
  }
4375
3925
  }
4376
3926
  function syncRecentlyVisited(scope) {
4377
- return sync(scope, false);
3927
+ return sync(scope, {
3928
+ followUp: false,
3929
+ forVisit: false
3930
+ });
4378
3931
  }
4379
3932
  // Staff impersonating someone get a read-only token, and their visits stay out
4380
3933
  // of that person's list. Until the token is minted the visit is kept, and the
@@ -4384,7 +3937,10 @@ function recordVisit(visit, scope) {
4384
3937
  const entry = toEntry(visit, new Date());
4385
3938
  if (isEntry(entry) && !hasReadOnlyToken(scope.personId)) {
4386
3939
  writeRecentlyVisited(scope, addVisit(readRecentlyVisited(scope), entry));
4387
- sync(scope, true);
3940
+ sync(scope, {
3941
+ followUp: true,
3942
+ forVisit: true
3943
+ });
4388
3944
  }
4389
3945
  }
4390
3946
  function useRecentlyVisited({
@@ -4637,7 +4193,7 @@ function useResultNavigation(items, list, enabled = true) {
4637
4193
  };
4638
4194
  }
4639
4195
 
4640
- var styles$k = {"modal":"modal-NR3TO","visuallyHidden":"visuallyHidden-C28ju","panel":"panel-HlF7S"};
4196
+ var styles$l = {"modal":"modal-NR3TO","visuallyHidden":"visuallyHidden-C28ju","panel":"panel-HlF7S"};
4641
4197
 
4642
4198
  const FALLBACK_SLUGS = ["people", "services"];
4643
4199
  function defaultProduct(products, appName) {
@@ -4701,7 +4257,8 @@ function summarize({
4701
4257
  }
4702
4258
  }
4703
4259
  // "Oct 25, 9–10:30am", in the organization's time zone like the rest
4704
- // of Planning Center.
4260
+ // of Planning Center. An event outside this year names its year
4261
+ // ("Nov 27, 2025, 9am"), so last year's event doesn't pass for this year's.
4705
4262
  function eventTime(startsAt, endsAt, {
4706
4263
  recurring,
4707
4264
  timeZone
@@ -4711,6 +4268,7 @@ function eventTime(startsAt, endsAt, {
4711
4268
  } else {
4712
4269
  const time = datetimeFmt.datetime(startsAt, endsAt || null, {
4713
4270
  style: "abbreviated",
4271
+ year: yearIn(startsAt, timeZone) !== yearIn(new Date(), timeZone),
4714
4272
  ...(timeZone && {
4715
4273
  timeZone
4716
4274
  })
@@ -4718,6 +4276,12 @@ function eventTime(startsAt, endsAt, {
4718
4276
  return recurring ? joinParts(time, "Repeating") : time;
4719
4277
  }
4720
4278
  }
4279
+ function yearIn(date, timeZone) {
4280
+ return new Intl.DateTimeFormat("en-US", {
4281
+ timeZone,
4282
+ year: "numeric"
4283
+ }).format(new Date(date));
4284
+ }
4721
4285
  // Unlike search results, recents come from every product, so each one names
4722
4286
  // its type. The row's product icon says which product it came from.
4723
4287
  function describeVisit(visit, timeZone) {
@@ -4799,7 +4363,7 @@ function BlankStateActions({
4799
4363
  }, action.label))))));
4800
4364
  }
4801
4365
 
4802
- var styles$j = {"container":"container-YDdM1","hint":"hint-017Rd","keycap":"keycap-ENJM2","labels":"labels-GHPqL","copied":"copied-DUFa1"};
4366
+ var styles$k = {"container":"container-YDdM1","hint":"hint-017Rd","keycap":"keycap-ENJM2","labels":"labels-GHPqL","copied":"copied-DUFa1"};
4803
4367
 
4804
4368
  const SYMBOLS = {
4805
4369
  command: {
@@ -4821,7 +4385,7 @@ const SYMBOLS = {
4821
4385
  };
4822
4386
  function Keycap(props) {
4823
4387
  return /*#__PURE__*/React.createElement("kbd", {
4824
- className: styles$j.keycap
4388
+ className: styles$k.keycap
4825
4389
  }, "symbol" in props ? (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("svg", {
4826
4390
  "aria-hidden": true,
4827
4391
  fill: "none",
@@ -4833,7 +4397,7 @@ function Keycap(props) {
4833
4397
  d: d,
4834
4398
  key: d
4835
4399
  })))), /*#__PURE__*/React.createElement("span", {
4836
- className: styles$k.visuallyHidden
4400
+ className: styles$l.visuallyHidden
4837
4401
  }, SYMBOLS[props.symbol].label))) : props.label);
4838
4402
  }
4839
4403
  function CommandKey() {
@@ -4861,10 +4425,10 @@ function KeyboardHints({
4861
4425
  }) {
4862
4426
  return /*#__PURE__*/React.createElement("ul", {
4863
4427
  "aria-label": "Keyboard shortcuts",
4864
- className: styles$j.container,
4428
+ className: styles$k.container,
4865
4429
  "data-platform": isMac() ? "mac" : "pc"
4866
4430
  }, /*#__PURE__*/React.createElement("li", {
4867
- className: styles$j.hint
4431
+ className: styles$k.hint
4868
4432
  }, /*#__PURE__*/React.createElement(tapestry.Flex, {
4869
4433
  gap: 0.5
4870
4434
  }, select.modifierKey, /*#__PURE__*/React.createElement(Keycap, {
@@ -4872,11 +4436,11 @@ function KeyboardHints({
4872
4436
  }), /*#__PURE__*/React.createElement(Keycap, {
4873
4437
  symbol: "down"
4874
4438
  })), select.label), /*#__PURE__*/React.createElement("li", {
4875
- className: styles$j.hint
4439
+ className: styles$k.hint
4876
4440
  }, /*#__PURE__*/React.createElement(tapestry.Flex, {
4877
4441
  gap: 0.5
4878
4442
  }, /*#__PURE__*/React.createElement(CommandKey, null), /*#__PURE__*/React.createElement(EnterKey, null)), openInNewTab.label), /*#__PURE__*/React.createElement("li", {
4879
- className: classnames(styles$j.hint, copied && styles$j.copied),
4443
+ className: classnames(styles$k.hint, copied && styles$k.copied),
4880
4444
  style: {
4881
4445
  "--copied-active": `${COPIED_TIMING.active}ms`,
4882
4446
  "--copied-enter": `${COPIED_TIMING.enter}ms`,
@@ -4887,13 +4451,13 @@ function KeyboardHints({
4887
4451
  }, /*#__PURE__*/React.createElement(CommandKey, null), /*#__PURE__*/React.createElement(Keycap, {
4888
4452
  label: copyLink.key.toUpperCase()
4889
4453
  })), /*#__PURE__*/React.createElement("span", {
4890
- className: styles$j.labels
4454
+ className: styles$k.labels
4891
4455
  }, /*#__PURE__*/React.createElement("span", {
4892
4456
  "aria-hidden": copied
4893
4457
  }, copyLink.label), /*#__PURE__*/React.createElement("span", {
4894
4458
  role: "status"
4895
4459
  }, copied && "Copied!"))), /*#__PURE__*/React.createElement("li", {
4896
- className: styles$j.hint
4460
+ className: styles$k.hint
4897
4461
  }, /*#__PURE__*/React.createElement(tapestry.Flex, {
4898
4462
  gap: 0.5
4899
4463
  }, /*#__PURE__*/React.createElement(CommandKey, null), /*#__PURE__*/React.createElement(Keycap, {
@@ -4901,7 +4465,7 @@ function KeyboardHints({
4901
4465
  })), openSearch.label));
4902
4466
  }
4903
4467
 
4904
- var styles$i = {"icon":"icon-XKLvN","squircle":"squircle-JCHr6"};
4468
+ var styles$j = {"icon":"icon-XKLvN","squircle":"squircle-JCHr6"};
4905
4469
 
4906
4470
  const PRODUCTS = {
4907
4471
  accounts: {
@@ -4970,13 +4534,13 @@ function ProductIcon({
4970
4534
  const mask = maskFor(path);
4971
4535
  return /*#__PURE__*/React.createElement("span", {
4972
4536
  "aria-hidden": true,
4973
- className: styles$i.icon,
4537
+ className: styles$j.icon,
4974
4538
  style: {
4975
4539
  height: size,
4976
4540
  width: size
4977
4541
  }
4978
4542
  }, /*#__PURE__*/React.createElement("span", {
4979
- className: styles$i.squircle,
4543
+ className: styles$j.squircle,
4980
4544
  style: {
4981
4545
  WebkitMaskImage: mask,
4982
4546
  background: `var(${gradient})`,
@@ -4985,7 +4549,7 @@ function ProductIcon({
4985
4549
  }));
4986
4550
  }
4987
4551
 
4988
- var styles$h = {"picker":"picker-iuzzj","option":"option--7LXg"};
4552
+ var styles$i = {"picker":"picker-iuzzj","option":"option--7LXg"};
4989
4553
 
4990
4554
  // Phones have no room for a tab per product, so they pick from a dropdown.
4991
4555
  // Complex mode renders each option's logomark, in the list and the trigger.
@@ -5000,7 +4564,7 @@ function ProductSelect({
5000
4564
  slug
5001
4565
  }) => ({
5002
4566
  label: (/*#__PURE__*/React.createElement("span", {
5003
- className: styles$h.option
4567
+ className: styles$i.option
5004
4568
  }, /*#__PURE__*/React.createElement(ProductIcon, {
5005
4569
  slug: slug
5006
4570
  }), appName)),
@@ -5008,7 +4572,7 @@ function ProductSelect({
5008
4572
  value: slug
5009
4573
  }));
5010
4574
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
5011
- className: styles$h.picker
4575
+ className: styles$i.picker
5012
4576
  }, /*#__PURE__*/React.createElement(tapestry.Select, {
5013
4577
  "aria-label": "Product",
5014
4578
  complex: true,
@@ -5016,7 +4580,7 @@ function ProductSelect({
5016
4580
  options: options,
5017
4581
  value: selected.slug
5018
4582
  })), /*#__PURE__*/React.createElement("div", {
5019
- className: styles$k.panel
4583
+ className: styles$l.panel
5020
4584
  }, children));
5021
4585
  }
5022
4586
 
@@ -5067,7 +4631,7 @@ function useKeyboardFocus({
5067
4631
  };
5068
4632
  }
5069
4633
 
5070
- var styles$g = {"tablist":"tablist-7ASvc","tab":"tab-dz8ki"};
4634
+ var styles$h = {"tablist":"tablist-7ASvc","tab":"tab-dz8ki"};
5071
4635
 
5072
4636
  // With this many tabs or more, only the selected tab shows its name, so they
5073
4637
  // all fit. Fewer always fit with their names.
@@ -5098,7 +4662,7 @@ function ProductTabs({
5098
4662
  };
5099
4663
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
5100
4664
  "aria-label": "Search in",
5101
- className: styles$g.tablist,
4665
+ className: styles$h.tablist,
5102
4666
  onKeyDown: handleKeyDown,
5103
4667
  role: "tablist"
5104
4668
  }, products.map(product => (/*#__PURE__*/React.createElement(Tab, {
@@ -5118,10 +4682,10 @@ function ProductTabs({
5118
4682
  }, /*#__PURE__*/React.createElement(ProductIcon, {
5119
4683
  slug: product.slug
5120
4684
  }), showAllNames || product === selected ? product.appName : (/*#__PURE__*/React.createElement("span", {
5121
- className: styles$k.visuallyHidden
4685
+ className: styles$l.visuallyHidden
5122
4686
  }, product.appName)))))), /*#__PURE__*/React.createElement("div", {
5123
4687
  "aria-labelledby": tabId(selected.slug),
5124
- className: styles$k.panel,
4688
+ className: styles$l.panel,
5125
4689
  id: `${id}-panel`,
5126
4690
  role: "tabpanel"
5127
4691
  }, children));
@@ -5134,7 +4698,7 @@ const Tab = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
5134
4698
  focusProps
5135
4699
  } = useKeyboardFocus();
5136
4700
  return /*#__PURE__*/React.createElement("button", {
5137
- className: styles$g.tab,
4701
+ className: styles$h.tab,
5138
4702
  ref: ref,
5139
4703
  role: "tab",
5140
4704
  type: "button",
@@ -5478,7 +5042,7 @@ function BlankStateRecentlyVisited(props) {
5478
5042
  }))));
5479
5043
  }
5480
5044
 
5481
- var styles$f = {"blank_state":"blank_state-kX-H1","image":"image-R3D6r"};
5045
+ var styles$g = {"blank_state":"blank_state-kX-H1","image":"image-R3D6r"};
5482
5046
 
5483
5047
  function BlankState$1({
5484
5048
  action,
@@ -5489,12 +5053,12 @@ function BlankState$1({
5489
5053
  }) {
5490
5054
  return /*#__PURE__*/React.createElement(tapestry.Flex, {
5491
5055
  role: role,
5492
- className: styles$f.blank_state,
5056
+ className: styles$g.blank_state,
5493
5057
  direction: "column",
5494
5058
  align: "center",
5495
5059
  gap: 3
5496
5060
  }, /*#__PURE__*/React.createElement(tapestry.Flex, {
5497
- className: styles$f.image
5061
+ className: styles$g.image
5498
5062
  }, image), /*#__PURE__*/React.createElement(tapestry.Flex, {
5499
5063
  direction: "column",
5500
5064
  align: "center",
@@ -5520,7 +5084,7 @@ function EndOfResultsObserver({
5520
5084
 
5521
5085
  const resultId = (listboxId, index) => `${listboxId}-result-${index}`;
5522
5086
 
5523
- 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"};
5087
+ 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"};
5524
5088
 
5525
5089
  function SearchResult({
5526
5090
  category,
@@ -5587,7 +5151,7 @@ function SearchResult({
5587
5151
  "aria-describedby": [subdued && `${id}-subdued`, describedBy, subtitle && `${id}-subtitle`].filter(Boolean).join(" ") || undefined,
5588
5152
  "aria-labelledby": title ? `${id}-title` : undefined,
5589
5153
  "aria-selected": highlighted,
5590
- className: classnames(styles$e.result, subdued && styles$e.subdued),
5154
+ className: classnames(styles$f.result, subdued && styles$f.subdued),
5591
5155
  "data-turbo": "false",
5592
5156
  href: url,
5593
5157
  id: id,
@@ -5601,13 +5165,13 @@ function SearchResult({
5601
5165
  imageUrl: imageUrl,
5602
5166
  product: product
5603
5167
  }), /*#__PURE__*/React.createElement("span", {
5604
- className: styles$e.title,
5168
+ className: styles$f.title,
5605
5169
  id: `${id}-title`
5606
5170
  }, title), /*#__PURE__*/React.createElement("span", {
5607
- className: styles$e.subtitle,
5171
+ className: styles$f.subtitle,
5608
5172
  id: `${id}-subtitle`
5609
5173
  }, subtitle), subdued && (/*#__PURE__*/React.createElement("span", {
5610
- className: styles$k.visuallyHidden,
5174
+ className: styles$l.visuallyHidden,
5611
5175
  id: `${id}-subdued`
5612
5176
  }, "Inactive")))
5613
5177
  );
@@ -5625,18 +5189,18 @@ function ResultImage({
5625
5189
  })) : null;
5626
5190
  return /*#__PURE__*/React.createElement("span", {
5627
5191
  "aria-hidden": true,
5628
- className: styles$e.image
5192
+ className: styles$f.image
5629
5193
  }, imageUrl ? (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("img", {
5630
5194
  alt: "",
5631
- className: category === "profile" ? styles$e.avatar : styles$e.photo,
5195
+ className: category === "profile" ? styles$f.avatar : styles$f.photo,
5632
5196
  loading: "lazy",
5633
5197
  src: imageUrl
5634
5198
  }), /*#__PURE__*/React.createElement("span", {
5635
- className: styles$e.badge
5199
+ className: styles$f.badge
5636
5200
  }, icon(16)))) : icon("100%"));
5637
5201
  }
5638
5202
 
5639
- var styles$d = {"heading":"heading-LioUF","group":"group-cKChg"};
5203
+ var styles$e = {"heading":"heading-LioUF","group":"group-cKChg"};
5640
5204
 
5641
5205
  // Sections with a heading render as labelled groups; ones without render
5642
5206
  // their items straight into the listbox. Indexes run across every section.
@@ -5689,11 +5253,11 @@ function ResultListbox({
5689
5253
  const headingId = `${id}-group-${sectionIndex}`;
5690
5254
  return /*#__PURE__*/React.createElement("div", {
5691
5255
  "aria-labelledby": headingId,
5692
- className: styles$d.group,
5256
+ className: styles$e.group,
5693
5257
  key: section.key,
5694
5258
  role: "group"
5695
5259
  }, /*#__PURE__*/React.createElement("div", {
5696
- className: styles$d.heading,
5260
+ className: styles$e.heading,
5697
5261
  id: headingId
5698
5262
  }, section.heading), section.items.map((item, itemIndex) => renderItem(item, itemIndex, headingId)));
5699
5263
  }));
@@ -5716,7 +5280,7 @@ function RecentlyVisited({
5716
5280
  });
5717
5281
  } else {
5718
5282
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
5719
- className: styles$d.heading,
5283
+ className: styles$e.heading,
5720
5284
  id: headingId
5721
5285
  }, "Recently visited"), /*#__PURE__*/React.createElement(ResultListbox, {
5722
5286
  labelledBy: headingId,
@@ -5732,7 +5296,7 @@ function RecentlyVisited({
5732
5296
  }
5733
5297
  }
5734
5298
 
5735
- var styles$c = {"row":"row-5P7UQ","header":"header-sXEyG","closeButton":"closeButton-rPJJV","input":"input-YQkTC","clearButton":"clearButton-9Yh9w"};
5299
+ var styles$d = {"row":"row-5P7UQ","header":"header-sXEyG","closeButton":"closeButton-rPJJV","input":"input-YQkTC","clearButton":"clearButton-9Yh9w"};
5736
5300
 
5737
5301
  // A combobox: focus stays here while aria-activedescendant points screen
5738
5302
  // readers at the highlighted result in the listbox it controls.
@@ -5769,9 +5333,9 @@ function SearchInput({
5769
5333
  }
5770
5334
  });
5771
5335
  return /*#__PURE__*/React.createElement("div", {
5772
- className: styles$c.row
5336
+ className: styles$d.row
5773
5337
  }, /*#__PURE__*/React.createElement("label", {
5774
- className: styles$c.header,
5338
+ className: styles$d.header,
5775
5339
  id: "topbar_product_search_label"
5776
5340
  }, /*#__PURE__*/React.createElement(Icon, {
5777
5341
  name: "general.search",
@@ -5784,7 +5348,7 @@ function SearchInput({
5784
5348
  "aria-expanded": expanded,
5785
5349
  "aria-label": "Search",
5786
5350
  autoFocus: true,
5787
- className: styles$c.input,
5351
+ className: styles$d.input,
5788
5352
  id: "product_search",
5789
5353
  onChange: event => onChange(event.target.value),
5790
5354
  onKeyDown: onKeyDown,
@@ -5796,7 +5360,7 @@ function SearchInput({
5796
5360
  ...focusProps
5797
5361
  }), !onClose && value !== "" && (/*#__PURE__*/React.createElement("button", {
5798
5362
  "aria-label": "Clear search",
5799
- className: styles$c.clearButton,
5363
+ className: styles$d.clearButton,
5800
5364
  onClick: () => {
5801
5365
  var _a;
5802
5366
  onChange("");
@@ -5815,7 +5379,7 @@ function SearchInput({
5815
5379
  d: "M6.5 6.5l7 7m0 -7l-7 7"
5816
5380
  }))))), onClose && (/*#__PURE__*/React.createElement(tapestry.IconButton, {
5817
5381
  "aria-label": "Close search",
5818
- className: styles$c.closeButton,
5382
+ className: styles$d.closeButton,
5819
5383
  icon: /*#__PURE__*/React.createElement(Icon, {
5820
5384
  name: "general.x",
5821
5385
  theme: "--t-icon-color-dim"
@@ -6162,7 +5726,7 @@ function BlankStateNoResults(props) {
6162
5726
  })));
6163
5727
  }
6164
5728
 
6165
- var styles$b = {"spinner":"spinner-b5tlz"};
5729
+ var styles$c = {"spinner":"spinner-b5tlz"};
6166
5730
 
6167
5731
  function LoadingSpinner({
6168
5732
  size = 48,
@@ -6170,7 +5734,7 @@ function LoadingSpinner({
6170
5734
  }) {
6171
5735
  return /*#__PURE__*/React.createElement("span", {
6172
5736
  "aria-hidden": "true",
6173
- className: styles$b.spinner,
5737
+ className: styles$c.spinner,
6174
5738
  style: {
6175
5739
  "--spinner-size": `${size}px`,
6176
5740
  "--spinner-track-width": `${trackWidth}px`
@@ -6352,10 +5916,10 @@ function SearchPanel({
6352
5916
  selected: product
6353
5917
  }, results)), /*#__PURE__*/React.createElement("div", {
6354
5918
  "aria-live": "polite",
6355
- className: styles$k.visuallyHidden
5919
+ className: styles$l.visuallyHidden
6356
5920
  }, announceHighlight ? (_b = navigation.highlighted) === null || _b === void 0 ? void 0 : _b.title : null), /*#__PURE__*/React.createElement("div", {
6357
5921
  "aria-live": "polite",
6358
- className: styles$k.visuallyHidden,
5922
+ className: styles$l.visuallyHidden,
6359
5923
  "data-testid": "result-count"
6360
5924
  }, resultCount), mobile ? null : /*#__PURE__*/React.createElement(KeyboardHints, {
6361
5925
  copied: navigation.copied
@@ -6572,7 +6136,7 @@ function ProductSearch({
6572
6136
  onClick: () => setOpen(true)
6573
6137
  }), /*#__PURE__*/React.createElement(tapestry.Modal, {
6574
6138
  "aria-label": "Search",
6575
- className: styles$k.modal,
6139
+ className: styles$l.modal,
6576
6140
  dismissible: true,
6577
6141
  id: "product_search_modal",
6578
6142
  onClose: () => setOpen(false),
@@ -6603,36 +6167,119 @@ function useRecordRecentlyVisited({
6603
6167
  personId
6604
6168
  });
6605
6169
  }
6606
- }, [enabled, env, personId, visit]);
6170
+ }, [enabled, env, personId, visit]);
6171
+ }
6172
+
6173
+ function StyledRoot({
6174
+ children,
6175
+ style,
6176
+ ...nativeProps
6177
+ }) {
6178
+ return /*#__PURE__*/React.createElement("nav", {
6179
+ className: "simple",
6180
+ "data-pendo": "topbar",
6181
+ "aria-label": "topbar-navigation",
6182
+ style: {
6183
+ alignItems: "center",
6184
+ color: "white",
6185
+ display: "flex",
6186
+ height: "var(--topbar-height)",
6187
+ ...style
6188
+ },
6189
+ ...nativeProps
6190
+ }, /*#__PURE__*/React.createElement("style", null, `
6191
+ @media only print {
6192
+ .simple {
6193
+ display: none !important;
6194
+ }
6195
+ }
6196
+ `), children);
6197
+ }
6198
+
6199
+ var styles$b = {"route":"route--8BWe","is-active":"is-active-FsU9Y","apps-routes-separator":"apps-routes-separator-Nlm-N"};
6200
+
6201
+ const HoverableListItem = ({
6202
+ active = false,
6203
+ component: C = "span",
6204
+ style = null,
6205
+ ...nativeProps
6206
+ }) => {
6207
+ const [entered, setEntered] = React.useState(false);
6208
+ const getBackgroundColor = () => active ? "var(--t-fill-color-neutral-060)" : entered ? "var(--t-fill-color-neutral-080)" : "transparent";
6209
+ return /*#__PURE__*/React.createElement(C, {
6210
+ onMouseEnter: () => setEntered(true),
6211
+ onMouseLeave: () => setEntered(false),
6212
+ style: {
6213
+ ...style,
6214
+ backgroundColor: getBackgroundColor()
6215
+ },
6216
+ ...nativeProps
6217
+ });
6218
+ };
6219
+
6220
+ class Outsider extends React.Component {
6221
+ constructor(props) {
6222
+ super(props);
6223
+ this.handleOutsideClick = this.handleOutsideClick.bind(this);
6224
+ }
6225
+ componentWillUnmount() {
6226
+ document.removeEventListener("click", this.handleOutsideClick, true);
6227
+ }
6228
+ handleOutsideClick(e) {
6229
+ if (this.container.contains(e.target) || e.target.closest('[data-toolbar-link="true"]')) {
6230
+ return;
6231
+ } else {
6232
+ e.stopPropagation();
6233
+ e.preventDefault();
6234
+ return this.props.onOutsideClick();
6235
+ }
6236
+ }
6237
+ render() {
6238
+ const {
6239
+ cleanup,
6240
+ onOutsideClick,
6241
+ visible,
6242
+ ...props
6243
+ } = this.props;
6244
+ if (cleanup) {
6245
+ document.removeEventListener("click", this.handleOutsideClick, true);
6246
+ } else {
6247
+ document.addEventListener("click", this.handleOutsideClick, true);
6248
+ }
6249
+ return /*#__PURE__*/React.createElement("div", {
6250
+ ref: c => this.container = c,
6251
+ ...props
6252
+ });
6253
+ }
6607
6254
  }
6608
6255
 
6609
- function StyledRoot({
6610
- children,
6611
- style,
6256
+ var styles$a = {"popup-root":"popup-root-SeL5u","popup":"popup-nQXYW","is-visible":"is-visible-3DAUP"};
6257
+
6258
+ const Popup = ({
6259
+ className,
6260
+ component: C = "div",
6261
+ isVisible,
6612
6262
  ...nativeProps
6613
- }) {
6614
- return /*#__PURE__*/React.createElement("nav", {
6615
- className: "simple",
6616
- "data-pendo": "topbar",
6617
- "aria-label": "topbar-navigation",
6618
- style: {
6619
- alignItems: "center",
6620
- color: "white",
6621
- display: "flex",
6622
- height: "var(--topbar-height)",
6623
- ...style
6624
- },
6625
- ...nativeProps
6626
- }, /*#__PURE__*/React.createElement("style", null, `
6627
- @media only print {
6628
- .simple {
6629
- display: none !important;
6630
- }
6631
- }
6632
- `), children);
6633
- }
6263
+ }) => (/*#__PURE__*/React.createElement(C, {
6264
+ className: classnames(styles$a.popup, {
6265
+ [styles$a["is-visible"]]: isVisible
6266
+ }, className),
6267
+ ...nativeProps
6268
+ }));
6269
+
6270
+ const PopupRoot = ({
6271
+ ...nativeProps
6272
+ }) => (/*#__PURE__*/React.createElement("div", {
6273
+ className: styles$a["popup-root"],
6274
+ ...nativeProps
6275
+ }));
6634
6276
 
6635
- var styles$a = {"route":"route--8BWe","is-active":"is-active-FsU9Y","apps-routes-separator":"apps-routes-separator-Nlm-N"};
6277
+ const fontFamily = {
6278
+ fontFamily: `inherit`
6279
+ };
6280
+ const IEFlex1 = {
6281
+ flex: "1 1 auto"
6282
+ };
6636
6283
 
6637
6284
  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"};
6638
6285
 
@@ -6832,7 +6479,7 @@ const NotSmallTopbar = ({
6832
6479
  toolbarDrawerOpen
6833
6480
  } = useStore();
6834
6481
  const updateStore = useUpdateStore();
6835
- const useRedesignedSwitcher = useFeature(FEATURE_FLAGS.APP_SWITCHER_REDESIGN, props.features);
6482
+ const churchCenterEnabled = useFeature(FEATURE_FLAGS.CHURCH_CENTER_PRODUCT, props.features);
6836
6483
  const productSearchEnabled = useFeature(FEATURE_FLAGS.PRODUCT_SEARCH, props.features);
6837
6484
  useRecordRecentlyVisited({
6838
6485
  enabled: productSearchEnabled,
@@ -6860,20 +6507,15 @@ const NotSmallTopbar = ({
6860
6507
  paddingRight: "24px",
6861
6508
  ...props.style
6862
6509
  }
6863
- }, useRedesignedSwitcher ? (/*#__PURE__*/React.createElement(AppsMenu, {
6510
+ }, /*#__PURE__*/React.createElement(AppsMenu, {
6864
6511
  env: props.env,
6865
6512
  appName: props.appName,
6866
6513
  apps: appsMenuFormatter(props.apps),
6514
+ churchCenterEnabled: churchCenterEnabled,
6867
6515
  colors: props.colors,
6868
6516
  requestAppsFetch: props.requestAppsFetch
6869
- })) : (/*#__PURE__*/React.createElement(LegacyAppsSwitcher$1, {
6870
- env: props.env,
6871
- appName: props.appName,
6872
- apps: appsMenuFormatter(props.apps),
6873
- colors: props.colors,
6874
- requestAppsFetch: props.requestAppsFetch
6875
- })), /*#__PURE__*/React.createElement("div", {
6876
- className: styles$a["apps-routes-separator"]
6517
+ }), /*#__PURE__*/React.createElement("div", {
6518
+ className: styles$b["apps-routes-separator"]
6877
6519
  }), routesVisible && props.routes, /*#__PURE__*/React.createElement("div", {
6878
6520
  style: {
6879
6521
  margin: "auto"
@@ -6915,7 +6557,7 @@ const NotSmallRoute = ({
6915
6557
  ...nativeProps
6916
6558
  }) => {
6917
6559
  return /*#__PURE__*/React.createElement("a", {
6918
- className: classnames(styles$a["route"], className, active && styles$a["is-active"]),
6560
+ className: classnames(styles$b["route"], className, active && styles$b["is-active"]),
6919
6561
  ...nativeProps
6920
6562
  });
6921
6563
  };
@@ -6939,11 +6581,78 @@ function Avatar({
6939
6581
  });
6940
6582
  }
6941
6583
 
6584
+ // Currently scoped to links and buttons since the app switcher only contains
6585
+ // those elements. If this hook is reused in containers with form elements,
6586
+ // expand to include: input, select, textarea, [tabindex]:not([tabindex="-1"])
6587
+ const FOCUSABLE_SELECTOR = "a[href], button:not([disabled])";
6588
+ /**
6589
+ * Manages focus trapping within a container element.
6590
+ *
6591
+ * When `active` becomes true:
6592
+ * - Stores the currently focused element
6593
+ * - Moves focus to the first focusable child
6594
+ *
6595
+ * When `active` becomes false:
6596
+ * - Returns focus to the previously focused element
6597
+ *
6598
+ * While active:
6599
+ * - Tab/Shift+Tab wraps within the container
6600
+ * - Escape calls `onClose`
6601
+ *
6602
+ * Note: focus trapping uses scoped querySelector on the container ref,
6603
+ * which is the same approach used by libraries like focus-trap-react.
6604
+ */
6605
+ function useFocusTrap({
6606
+ active,
6607
+ onClose
6608
+ }) {
6609
+ const containerRef = React.useRef(null);
6610
+ const previousFocusRef = React.useRef(null);
6611
+ React.useLayoutEffect(() => {
6612
+ var _a, _b, _c;
6613
+ if (active) {
6614
+ previousFocusRef.current = document.activeElement;
6615
+ (_b = (_a = containerRef.current) === null || _a === void 0 ? void 0 : _a.querySelector(FOCUSABLE_SELECTOR)) === null || _b === void 0 ? void 0 : _b.focus();
6616
+ } else {
6617
+ (_c = previousFocusRef.current) === null || _c === void 0 ? void 0 : _c.focus();
6618
+ previousFocusRef.current = null;
6619
+ }
6620
+ }, [active]);
6621
+ const handleKeyDown = React.useCallback(e => {
6622
+ var _a;
6623
+ if (!active) {
6624
+ return;
6625
+ }
6626
+ if (e.key === "Escape") {
6627
+ onClose();
6628
+ return;
6629
+ }
6630
+ if (e.key === "Tab") {
6631
+ const focusable = (_a = containerRef.current) === null || _a === void 0 ? void 0 : _a.querySelectorAll(FOCUSABLE_SELECTOR);
6632
+ if (!focusable || focusable.length === 0) return;
6633
+ const first = focusable[0];
6634
+ const last = focusable[focusable.length - 1];
6635
+ if (e.shiftKey && document.activeElement === first) {
6636
+ e.preventDefault();
6637
+ last.focus();
6638
+ } else if (!e.shiftKey && document.activeElement === last) {
6639
+ e.preventDefault();
6640
+ first.focus();
6641
+ }
6642
+ }
6643
+ }, [active, onClose]);
6644
+ return {
6645
+ containerRef,
6646
+ handleKeyDown
6647
+ };
6648
+ }
6649
+
6942
6650
  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"};
6943
6651
 
6944
6652
  const AppsSwitcher = ({
6945
6653
  appName,
6946
6654
  apps,
6655
+ churchCenterEnabled = false,
6947
6656
  colors,
6948
6657
  env,
6949
6658
  onTriggerClick,
@@ -6952,9 +6661,11 @@ const AppsSwitcher = ({
6952
6661
  }) => {
6953
6662
  const {
6954
6663
  accountsProduct,
6664
+ hasChurchCenter,
6955
6665
  homeProduct,
6956
6666
  restProducts
6957
6667
  } = groupApps(apps);
6668
+ const showChurchCenter = churchCenterEnabled && hasChurchCenter;
6958
6669
  const {
6959
6670
  containerRef,
6960
6671
  handleKeyDown
@@ -7028,174 +6739,18 @@ const AppsSwitcher = ({
7028
6739
  }, /*#__PURE__*/React.createElement(AppRow, {
7029
6740
  appName: "Accounts",
7030
6741
  colors: colors
6742
+ })))), showChurchCenter && (/*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("a", {
6743
+ "aria-current": appName === "Church Center" ? "page" : undefined,
6744
+ className: classnames(styles$7.link, styles$7["accounts-link"]),
6745
+ "data-pendo": "app-switcher--change-app--ChurchCenter",
6746
+ "data-turbolinks": false,
6747
+ href: `${pcoUrl$1(env)("publishing")}/dashboard`
6748
+ }, /*#__PURE__*/React.createElement(AppRow, {
6749
+ appName: "Church Center"
7031
6750
  }))))))), document.body));
7032
6751
  };
7033
6752
 
7034
- class ClientStorage extends React.Component {
7035
- update(value) {
7036
- window[this.props.method].setItem(this.props.item, JSON.stringify(value));
7037
- return this.forceUpdate();
7038
- }
7039
- render() {
7040
- return /*#__PURE__*/React.createElement(React.Fragment, null, this.props.render(JSON.parse(window[this.props.method].getItem(this.props.item)) || undefined, this.update.bind(this)));
7041
- }
7042
- }
7043
- ClientStorage.defaultProps = {
7044
- method: "localStorage"
7045
- };
7046
-
7047
- 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"};
7048
-
7049
- function AccountSettingsLink({
7050
- env
7051
- }) {
7052
- const accountsName = "accounts";
7053
- return /*#__PURE__*/React.createElement("a", {
7054
- className: classnames(styles$6["appmenu-list-a"], styles$6["appmenu-list-a--bottom"]),
7055
- "data-pendo": `app-switcher--change-app--${accountsName}`,
7056
- "data-turbolinks": false,
7057
- href: pcoUrl$1(env)(accountsName) + getAppsSwitchProductPath(accountsName)
7058
- }, /*#__PURE__*/React.createElement("svg", {
7059
- "aria-hidden": "true",
7060
- height: 24,
7061
- viewBox: "0 0 20 20",
7062
- width: 24,
7063
- xmlns: "http://www.w3.org/2000/svg"
7064
- }, /*#__PURE__*/React.createElement(Accounts$1, {
7065
- color: "var(--t-icon-color-secondary)",
7066
- key: "key2"
7067
- })), /*#__PURE__*/React.createElement("span", null, "Account settings"));
7068
- }
7069
-
7070
- const CloseMenuButton = ({
7071
- color = "var(--t-icon-color-dim)",
7072
- size = 24,
7073
- style = {}
7074
- }) => (/*#__PURE__*/React.createElement("button", {
7075
- "aria-label": "Close menu",
7076
- type: "button",
7077
- className: styles$6["appmenu-close-button"],
7078
- style: style
7079
- }, /*#__PURE__*/React.createElement(X, {
7080
- fill: color,
7081
- style: {
7082
- height: `${size}px`,
7083
- width: `${size}px`
7084
- },
7085
- "aria-hidden": "true"
7086
- })));
7087
-
7088
- const UserMenuAppLockup = ({
7089
- appName: originalAppName
7090
- }) => {
7091
- const appName = originalAppName.replace(/[\s-]/, "");
7092
- return /*#__PURE__*/React.createElement("div", {
7093
- style: {
7094
- alignItems: "center",
7095
- display: "flex"
7096
- }
7097
- }, /*#__PURE__*/React.createElement("div", {
7098
- style: {
7099
- marginRight: "6px"
7100
- }
7101
- }, /*#__PURE__*/React.createElement(ColorAppIcon, {
7102
- appName: appName,
7103
- size: 20
7104
- })), /*#__PURE__*/React.createElement(MonoAppName, {
7105
- appName: appName,
7106
- size: 18
7107
- }));
7108
- };
7109
- const LegacyAppsSwitcher = ({
7110
- appName,
7111
- apps,
7112
- env,
7113
- onTriggerClick,
7114
- toggle,
7115
- visible
7116
- }) => {
7117
- const accountsProduct = apps.find(({
7118
- name
7119
- }) => name === "Accounts");
7120
- const homeProduct = apps.find(({
7121
- name
7122
- }) => name === "Home");
7123
- const restProducts = [...apps].filter(({
7124
- name
7125
- }) => name !== "Home" && name !== "Accounts");
7126
- const {
7127
- containerRef: appMenuRef,
7128
- handleKeyDown: handleAppMenuKeyDown
7129
- } = useFocusTrap({
7130
- active: visible,
7131
- onClose: toggle
7132
- });
7133
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("button", {
7134
- "aria-expanded": visible,
7135
- "aria-haspopup": "true",
7136
- "aria-label": `App switcher: ${appName}`,
7137
- type: "button",
7138
- className: styles$6["appmenu-button"],
7139
- onClick: onTriggerClick
7140
- }, /*#__PURE__*/React.createElement(ColorAppIcon, {
7141
- appName: appName.replace(/[\s-]/, "")
7142
- })), /*#__PURE__*/React.createElement(ClientStorage, {
7143
- item: "Topbar:Small:Menus:Products:visibility",
7144
- render: () => (/*#__PURE__*/React.createElement("div", {
7145
- ref: appMenuRef,
7146
- className: styles$6["appmenu-layer"],
7147
- style: {
7148
- ...(visible && {
7149
- display: "block"
7150
- })
7151
- },
7152
- onClick: toggle,
7153
- onKeyDown: handleAppMenuKeyDown
7154
- }, /*#__PURE__*/React.createElement(CloseMenuButton, null), /*#__PURE__*/React.createElement("div", {
7155
- onClick: e => {
7156
- const {
7157
- forcePropagation
7158
- } = e;
7159
- if (!forcePropagation) {
7160
- e.stopPropagation();
7161
- }
7162
- },
7163
- className: styles$6["appmenu-container"]
7164
- }, /*#__PURE__*/React.createElement("a", {
7165
- "aria-current": appName === (homeProduct === null || homeProduct === void 0 ? void 0 : homeProduct.name) ? "page" : undefined,
7166
- "aria-label": homeProduct ? homeProduct.name : appName,
7167
- "data-pendo": `app-switcher--change-app--${homeProduct === null || homeProduct === void 0 ? void 0 : homeProduct.name}`,
7168
- "data-turbolinks": false,
7169
- className: classnames(styles$6["appmenu-list-a"], styles$6["appmenu-list-a--top"]),
7170
- href: homeProduct ? pcoUrl$1(env)("accounts") + getAppsSwitchProductPath(homeProduct === null || homeProduct === void 0 ? void 0 : homeProduct.name) : undefined
7171
- }, /*#__PURE__*/React.createElement(UserMenuAppLockup, {
7172
- appName: homeProduct ? homeProduct.name : appName
7173
- })), /*#__PURE__*/React.createElement("div", {
7174
- className: styles$6["appmenu-scroll"]
7175
- }, /*#__PURE__*/React.createElement("ul", {
7176
- "data-pendo": "app-switcher",
7177
- className: styles$6["appmenu-list"]
7178
- }, appsMenuFormatter(restProducts).map(({
7179
- name
7180
- }) => (/*#__PURE__*/React.createElement("li", {
7181
- key: name,
7182
- className: styles$6["appmenu-list-li"]
7183
- }, /*#__PURE__*/React.createElement("a", {
7184
- "aria-current": name === appName ? "page" : undefined,
7185
- "aria-label": name,
7186
- "data-pendo": `app-switcher--change-app--${name}`,
7187
- "data-turbolinks": false,
7188
- className: styles$6["appmenu-list-a"],
7189
- href: pcoUrl$1(env)("accounts") + getAppsSwitchProductPath(name)
7190
- }, /*#__PURE__*/React.createElement(UserMenuAppLockup, {
7191
- appName: name
7192
- }))))), accountsProduct && (/*#__PURE__*/React.createElement("li", {
7193
- className: styles$6["appmenu-list-li"]
7194
- }, /*#__PURE__*/React.createElement(AccountSettingsLink, {
7195
- env: env
7196
- }))))))))
7197
- }));
7198
- };
6753
+ 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"};
7199
6754
 
7200
6755
  const SmallTopbar = ({
7201
6756
  currentRouteComponent = props => (/*#__PURE__*/React.createElement("span", {
@@ -7207,7 +6762,7 @@ const SmallTopbar = ({
7207
6762
  var _a, _b;
7208
6763
  const [routesMenuVisible, setRoutesMenuVisible] = React.useState(false);
7209
6764
  const [productSwitcherVisible, setProductSwitcherVisible] = React.useState(false);
7210
- const useRedesignedSwitcher = useFeature(FEATURE_FLAGS.APP_SWITCHER_REDESIGN, props.features);
6765
+ const churchCenterEnabled = useFeature(FEATURE_FLAGS.CHURCH_CENTER_PRODUCT, props.features);
7211
6766
  const productSearchEnabled = useFeature(FEATURE_FLAGS.PRODUCT_SEARCH, props.features);
7212
6767
  useRecordRecentlyVisited({
7213
6768
  enabled: productSearchEnabled,
@@ -7238,22 +6793,16 @@ const SmallTopbar = ({
7238
6793
  style: {
7239
6794
  ...props.style
7240
6795
  }
7241
- }, useRedesignedSwitcher ? (/*#__PURE__*/React.createElement(AppsSwitcher, {
6796
+ }, /*#__PURE__*/React.createElement(AppsSwitcher, {
7242
6797
  appName: props.appName,
7243
6798
  apps: appsMenuFormatter(props.apps),
6799
+ churchCenterEnabled: churchCenterEnabled,
7244
6800
  colors: props.colors,
7245
6801
  env: props.env,
7246
6802
  onTriggerClick: openProductSwitcher,
7247
6803
  toggle: toggleProductSwitcher,
7248
6804
  visible: productSwitcherVisible
7249
- })) : (/*#__PURE__*/React.createElement(LegacyAppsSwitcher, {
7250
- appName: props.appName,
7251
- apps: appsMenuFormatter(props.apps),
7252
- env: props.env,
7253
- onTriggerClick: openProductSwitcher,
7254
- toggle: toggleProductSwitcher,
7255
- visible: productSwitcherVisible
7256
- })), routesMenuVisible && (/*#__PURE__*/React.createElement("div", {
6805
+ }), routesMenuVisible && (/*#__PURE__*/React.createElement("div", {
7257
6806
  className: styles$6["routes"]
7258
6807
  }, props.routes)), /*#__PURE__*/React.createElement("button", {
7259
6808
  type: "button",
@@ -8247,7 +7796,10 @@ const DEFAULT_READY_TIMEOUT_MS = 8000;
8247
7796
  function buildToolIframeSrc(origin, basePath, route, params = {}) {
8248
7797
  const [rawPath, queryPart] = route.replace(/^\/+/, "").split("?", 2);
8249
7798
  const safePath = rawPath.split("/").filter(segment => segment && segment !== "." && segment !== "..").join("/");
8250
- const fragment = queryPart !== undefined ? `${safePath}?${queryPart}` : safePath;
7799
+ const fragmentRoute = queryPart !== undefined ? `${safePath}?${queryPart}` : safePath;
7800
+ // Pages decode the fragment, and a `%` that doesn't start an escape (a
7801
+ // mangled link) makes that throw, so it's sent as `%25`.
7802
+ const fragment = fragmentRoute.replace(/%(?![0-9A-Fa-f]{2})/g, "%25");
8251
7803
  const url = new URL(basePath, origin);
8252
7804
  for (const [key, value] of Object.entries(params)) {
8253
7805
  if (value) url.searchParams.set(key, value);
@@ -8274,7 +7826,13 @@ const ToolIframe = /*#__PURE__*/React.forwardRef(function ToolIframe({
8274
7826
  title
8275
7827
  }, ref) {
8276
7828
  const iframeRef = React.useRef(null);
8277
- const [loadedPath, setLoadedPath] = React.useState(currentPath || "");
7829
+ // The iframe's `src` is set once. Changing it later would add a step to
7830
+ // the browser's Back history each time, so topbar's route changes move the
7831
+ // page with `location.replace` instead.
7832
+ const [initialPath] = React.useState(currentPath || "");
7833
+ // The route the page last reported. Topbar echoes it back as
7834
+ // `currentPath`, and the page is already there.
7835
+ const pageReportedPathRef = React.useRef(initialPath);
8278
7836
  // Hidden until the page paints, so its blank first frame doesn't flash
8279
7837
  // white against the drawer in dark mode.
8280
7838
  const [isReady, setIsReady] = React.useState(false);
@@ -8313,7 +7871,7 @@ const ToolIframe = /*#__PURE__*/React.forwardRef(function ToolIframe({
8313
7871
  }
8314
7872
  if (message.type === "NEW_ROUTE_RENDERED") {
8315
7873
  const reportedPath = String((_b = message.payload) !== null && _b !== void 0 ? _b : "");
8316
- setLoadedPath(reportedPath);
7874
+ pageReportedPathRef.current = reportedPath;
8317
7875
  (_c = onChangePathRef.current) === null || _c === void 0 ? void 0 : _c.call(onChangePathRef, reportedPath);
8318
7876
  }
8319
7877
  (_d = onMessageRef.current) === null || _d === void 0 ? void 0 : _d.call(onMessageRef, message);
@@ -8322,8 +7880,12 @@ const ToolIframe = /*#__PURE__*/React.forwardRef(function ToolIframe({
8322
7880
  return () => window.removeEventListener("message", handleGuestMessage);
8323
7881
  }, [origin]);
8324
7882
  React.useEffect(function followRouteChangesFromTopbar() {
8325
- setLoadedPath(currentPath || "");
8326
- }, [currentPath]);
7883
+ var _a, _b;
7884
+ const path = currentPath || "";
7885
+ if (path === pageReportedPathRef.current) return;
7886
+ pageReportedPathRef.current = path;
7887
+ (_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));
7888
+ }, [basePath, currentPath, initialParams, origin]);
8327
7889
  React.useImperativeHandle(ref, () => ({
8328
7890
  postMessage(message) {
8329
7891
  var _a, _b, _c;
@@ -8335,7 +7897,7 @@ const ToolIframe = /*#__PURE__*/React.forwardRef(function ToolIframe({
8335
7897
  }), [origin]);
8336
7898
  return /*#__PURE__*/React.createElement("iframe", {
8337
7899
  ref: iframeRef,
8338
- src: buildToolIframeSrc(origin, basePath, loadedPath, initialParams),
7900
+ src: buildToolIframeSrc(origin, basePath, initialPath, initialParams),
8339
7901
  allow: "clipboard-write",
8340
7902
  style: {
8341
7903
  border: 0,
@@ -8396,24 +7958,20 @@ function IframeTool({
8396
7958
  const [isReady, setIsReady] = React.useState(false);
8397
7959
  const [errored, setErrored] = React.useState(false);
8398
7960
  const [mountKey, setMountKey] = React.useState(0);
8399
- const [params] = React.useState(() => {
8400
- const {
8401
- host,
8402
- pathname,
8403
- search
8404
- } = hostContext(appName, pcoMeta);
8405
- return {
8406
- app_name: appName,
8407
- host,
8408
- pathname,
8409
- resource: pcoMeta.resource,
8410
- search,
8411
- ...config.params
8412
- };
8413
- });
8414
- // The drawer keeps the page mounted while it's closed, and single-page apps
8415
- // can navigate meanwhile, so the page hears where the user is on each open
8416
- // and whenever the host page's pco: meta tags change.
7961
+ // Only what the page needs before it can talk to topbar: `host` says which
7962
+ // window to talk to. The rest comes over HOST_CONTEXT_CHANGED, so the
7963
+ // product page's path and search stay out of the URL and the logs of the
7964
+ // app serving the page.
7965
+ const [params] = React.useState(() => ({
7966
+ app_name: appName,
7967
+ host: window.location.host,
7968
+ resource: pcoMeta.resource,
7969
+ ...config.params
7970
+ }));
7971
+ const hostUrl = useHostUrlWhileOpen(isOpen);
7972
+ // The drawer unmounts the tool when it closes, so each open loads the page
7973
+ // fresh. While it's open, the page hears where the user is once it's ready,
7974
+ // and again when they navigate or the pco: meta tags change.
8417
7975
  React.useEffect(function tellThePageWhereTheUserIs() {
8418
7976
  var _a;
8419
7977
  if (!isReady || !isOpen) return;
@@ -8421,7 +7979,7 @@ function IframeTool({
8421
7979
  payload: hostContext(appName, pcoMeta),
8422
7980
  type: "HOST_CONTEXT_CHANGED"
8423
7981
  });
8424
- }, [isOpen, isReady, appName, pcoMeta]);
7982
+ }, [isOpen, isReady, appName, pcoMeta, hostUrl]);
8425
7983
  React.useEffect(function tellThePageWhetherItIsVisible() {
8426
7984
  var _a;
8427
7985
  if (!isReady) return;
@@ -8473,6 +8031,7 @@ function IframeTool({
8473
8031
  if (errored) {
8474
8032
  return /*#__PURE__*/React.createElement(LoadError$1, {
8475
8033
  closeDrawer: closeDrawer,
8034
+ fallbackLinks: config.fallbackLinks,
8476
8035
  heading: config.heading,
8477
8036
  onRetry: handleRetry
8478
8037
  });
@@ -8480,9 +8039,10 @@ function IframeTool({
8480
8039
  return /*#__PURE__*/React.createElement(tapestryReact.StackView, {
8481
8040
  flex: 1,
8482
8041
  axis: "vertical"
8483
- }, !isReady && (/*#__PURE__*/React.createElement(DrawerHeader, {
8484
- closeDrawer: closeDrawer
8485
- }, /*#__PURE__*/React.createElement(DrawerHeading, null, config.heading))), /*#__PURE__*/React.createElement(ToolIframe, {
8042
+ }, !isReady && (/*#__PURE__*/React.createElement(LoadingHeader, {
8043
+ closeDrawer: closeDrawer,
8044
+ heading: config.heading
8045
+ })), /*#__PURE__*/React.createElement(ToolIframe, {
8486
8046
  key: mountKey,
8487
8047
  ref: iframeRef,
8488
8048
  basePath: config.basePath,
@@ -8495,8 +8055,47 @@ function IframeTool({
8495
8055
  title: config.title
8496
8056
  }));
8497
8057
  }
8058
+ /** The drawer's header while its page loads. */
8059
+ function LoadingHeader({
8060
+ closeDrawer,
8061
+ heading
8062
+ }) {
8063
+ return /*#__PURE__*/React.createElement(DrawerHeader, {
8064
+ closeDrawer: closeDrawer
8065
+ }, /*#__PURE__*/React.createElement(tapestryReact.StackView, {
8066
+ alignment: "center",
8067
+ axis: "horizontal",
8068
+ spacing: 1
8069
+ }, /*#__PURE__*/React.createElement(DrawerHeading, null, heading), /*#__PURE__*/React.createElement(tapestryReact.Spinner, {
8070
+ "aria-label": `Loading ${heading}`,
8071
+ color: "var(--t-fill-color-neutral-030)",
8072
+ thickness: 2,
8073
+ trackColor: "var(--t-fill-color-neutral-080)"
8074
+ })));
8075
+ }
8076
+ // Single-page apps navigate with pushState, which fires no event, so the URL
8077
+ // is checked every second while the drawer is open.
8078
+ const HOST_URL_CHECK_MS = 1000;
8079
+ function currentHostUrl() {
8080
+ return `${window.location.pathname}${window.location.search}`;
8081
+ }
8082
+ function useHostUrlWhileOpen(isOpen) {
8083
+ const [hostUrl, setHostUrl] = React.useState(currentHostUrl);
8084
+ React.useEffect(function followTheHostUrl() {
8085
+ if (!isOpen) return undefined;
8086
+ const check = () => setHostUrl(currentHostUrl());
8087
+ const interval = setInterval(check, HOST_URL_CHECK_MS);
8088
+ window.addEventListener("popstate", check);
8089
+ return () => {
8090
+ clearInterval(interval);
8091
+ window.removeEventListener("popstate", check);
8092
+ };
8093
+ }, [isOpen]);
8094
+ return hostUrl;
8095
+ }
8498
8096
  function LoadError$1({
8499
8097
  closeDrawer,
8098
+ fallbackLinks = [],
8500
8099
  heading,
8501
8100
  onRetry
8502
8101
  }) {
@@ -8523,7 +8122,14 @@ function LoadError$1({
8523
8122
  theme: "primary",
8524
8123
  variant: "fill",
8525
8124
  title: "Retry"
8526
- }))));
8125
+ })), fallbackLinks.map(({
8126
+ href,
8127
+ label
8128
+ }) => (/*#__PURE__*/React.createElement(tapestryReact.Link, {
8129
+ key: href,
8130
+ to: href,
8131
+ external: true
8132
+ }, label)))));
8527
8133
  }
8528
8134
 
8529
8135
  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"};
@@ -9135,6 +8741,15 @@ function HelpdeskIframe(props) {
9135
8741
  const config = React.useMemo(() => ({
9136
8742
  app: "helpdesk",
9137
8743
  basePath: "/topbar/helpdesk",
8744
+ // People open Help when something's already wrong, so a failed load
8745
+ // still points somewhere that doesn't depend on Helpdesk.
8746
+ fallbackLinks: [{
8747
+ href: "https://www.planningcenter.com/support",
8748
+ label: "Get help on planningcenter.com"
8749
+ }, {
8750
+ href: "https://status.planningcenter.com",
8751
+ label: "Check Planning Center's status"
8752
+ }],
9138
8753
  heading: "Help and support",
9139
8754
  params: {
9140
8755
  fetch_zendesk_details: fetchZendeskDetails ? "1" : null,
@@ -9151,9 +8766,10 @@ function HelpdeskIframe(props) {
9151
8766
  // The page reads its params once, so mounting before the gate answers
9152
8767
  // would leave out open_picobot for good.
9153
8768
  if (props.isPicobotLoading) {
9154
- return /*#__PURE__*/React.createElement(DrawerHeader, {
9155
- closeDrawer: props.closeDrawer
9156
- }, /*#__PURE__*/React.createElement(DrawerHeading, null, "Help and support"));
8769
+ return /*#__PURE__*/React.createElement(LoadingHeader, {
8770
+ closeDrawer: props.closeDrawer,
8771
+ heading: "Help and support"
8772
+ });
9157
8773
  }
9158
8774
  return /*#__PURE__*/React.createElement(IframeTool, {
9159
8775
  ...props,