@planningcenter/topbar 12.7.0 → 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.
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@planningcenter/tapestry'), require('react'), require('@planningcenter/url'), require('@planningcenter/icons/paths/general'), require('@planningcenter/jolt-client'), require('use-sync-external-store/shim'), require('react/jsx-runtime'), require('@planningcenter/icons/paths/toolbar'), require('@planningcenter/datetime-fmt'), require('pluralize'), require('@planningcenter/icons/paths/logomark'), require('@planningcenter/tapestry-react'), require('react-dom'), require('@planningcenter/add-ons'), require('@planningcenter/icons/paths/church-center'), require('@planningcenter/icons/paths/people'), require('react-calendly'), require('algoliasearch'), require('react-instantsearch-core'), require('react-transition-group')) :
3
- typeof define === 'function' && define.amd ? define(['exports', '@planningcenter/tapestry', 'react', '@planningcenter/url', '@planningcenter/icons/paths/general', '@planningcenter/jolt-client', 'use-sync-external-store/shim', 'react/jsx-runtime', '@planningcenter/icons/paths/toolbar', '@planningcenter/datetime-fmt', 'pluralize', '@planningcenter/icons/paths/logomark', '@planningcenter/tapestry-react', 'react-dom', '@planningcenter/add-ons', '@planningcenter/icons/paths/church-center', '@planningcenter/icons/paths/people', 'react-calendly', 'algoliasearch', 'react-instantsearch-core', 'react-transition-group'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.PLANNINGCENTER = global.PLANNINGCENTER || {}, global.PLANNINGCENTER.Topbar = {}), global.tapestry, global.react, global.pcoUrl, global.general, global.Jolt, global.shim, null, global.toolbar, global.datetimeFmt, global.pluralize, global.logomark, global.tapestryReact, global.ReactDOM, global.addOns, global.churchCenter, global.people, global.reactCalendly, global.algoliasearch, global.reactInstantsearchCore, global.reactTransitionGroup));
5
- })(this, (function (exports, tapestry, React, pcoUrl$1, general, Jolt, shim, jsxRuntime, toolbar, datetimeFmt, pluralize, logomarks, tapestryReact, reactDom, addOns, churchCenter, people, reactCalendly, algoliasearch, reactInstantsearchCore, reactTransitionGroup) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@planningcenter/tapestry'), require('react'), require('@planningcenter/url'), require('@planningcenter/icons/paths/general'), require('@planningcenter/jolt-client'), require('use-sync-external-store/shim'), require('@planningcenter/icons/paths/accounts'), require('@planningcenter/icons/paths/toolbar'), require('react/jsx-runtime'), require('@planningcenter/datetime-fmt'), require('pluralize'), require('@planningcenter/icons/paths/logomark'), require('@planningcenter/tapestry-react'), require('react-dom'), require('@planningcenter/add-ons'), require('@planningcenter/icons/paths/church-center'), require('@planningcenter/icons/paths/people'), require('react-calendly'), require('algoliasearch'), require('react-instantsearch-core'), require('react-transition-group')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', '@planningcenter/tapestry', 'react', '@planningcenter/url', '@planningcenter/icons/paths/general', '@planningcenter/jolt-client', 'use-sync-external-store/shim', '@planningcenter/icons/paths/accounts', '@planningcenter/icons/paths/toolbar', 'react/jsx-runtime', '@planningcenter/datetime-fmt', 'pluralize', '@planningcenter/icons/paths/logomark', '@planningcenter/tapestry-react', 'react-dom', '@planningcenter/add-ons', '@planningcenter/icons/paths/church-center', '@planningcenter/icons/paths/people', 'react-calendly', 'algoliasearch', 'react-instantsearch-core', 'react-transition-group'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.PLANNINGCENTER = global.PLANNINGCENTER || {}, global.PLANNINGCENTER.Topbar = {}), global.tapestry, global.react, global.pcoUrl, global.general, global.Jolt, global.shim, global.accounts, global.toolbar, null, global.datetimeFmt, global.pluralize, global.logomark, global.tapestryReact, global.ReactDOM, global.addOns, global.churchCenter, global.people, global.reactCalendly, global.algoliasearch, global.reactInstantsearchCore, global.reactTransitionGroup));
5
+ })(this, (function (exports, tapestry, React, pcoUrl$1, general, Jolt, shim, accounts, toolbar, jsxRuntime, datetimeFmt, pluralize, logomarks, tapestryReact, reactDom, addOns, churchCenter, people, reactCalendly, algoliasearch, reactInstantsearchCore, reactTransitionGroup) { 'use strict';
6
6
 
7
7
  function _interopNamespaceDefault(e) {
8
8
  var n = Object.create(null);
@@ -23,12 +23,13 @@
23
23
 
24
24
  var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
25
25
  var general__namespace = /*#__PURE__*/_interopNamespaceDefault(general);
26
+ var accounts__namespace = /*#__PURE__*/_interopNamespaceDefault(accounts);
26
27
  var toolbar__namespace = /*#__PURE__*/_interopNamespaceDefault(toolbar);
27
28
  var logomarks__namespace = /*#__PURE__*/_interopNamespaceDefault(logomarks);
28
29
  var churchCenter__namespace = /*#__PURE__*/_interopNamespaceDefault(churchCenter);
29
30
  var people__namespace = /*#__PURE__*/_interopNamespaceDefault(people);
30
31
 
31
- var styles$u = {"accessibility-toolbar":"accessibility-toolbar-jgjUG"};
32
+ var styles$r = {"accessibility-toolbar":"accessibility-toolbar-jgjUG"};
32
33
 
33
34
  const AccessibilityToolbar = ({
34
35
  children
@@ -40,7 +41,7 @@
40
41
  (_a = document.getElementById("main-content")) === null || _a === void 0 ? void 0 : _a.focus();
41
42
  };
42
43
  return /*#__PURE__*/React.createElement("div", {
43
- className: styles$u["accessibility-toolbar"]
44
+ className: styles$r["accessibility-toolbar"]
44
45
  }, /*#__PURE__*/React.createElement(tapestry.Link, {
45
46
  href: "#main-content",
46
47
  kind: "primary",
@@ -359,11 +360,11 @@
359
360
  fill: fill
360
361
  })));
361
362
 
362
- 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"};
363
+ 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"};
363
364
 
364
365
  function AnnouncementIcon() {
365
366
  return /*#__PURE__*/React.createElement("svg", {
366
- className: styles$t["announcement-icon"],
367
+ className: styles$q["announcement-icon"],
367
368
  width: "16",
368
369
  height: "16",
369
370
  viewBox: "0 0 16 16",
@@ -488,7 +489,7 @@
488
489
  } = this.props;
489
490
  const isPromo = variant === "promo";
490
491
  return /*#__PURE__*/React.createElement("div", {
491
- className: classnames(styles$t["announcement"], styles$t[`announcement--${variant !== null && variant !== void 0 ? variant : "platform"}`]),
492
+ className: classnames(styles$q["announcement"], styles$q[`announcement--${variant !== null && variant !== void 0 ? variant : "platform"}`]),
492
493
  "data-announcement-variant": variant !== null && variant !== void 0 ? variant : "platform",
493
494
  style: isPromo ? {
494
495
  backgroundImage: promoBackgroundUrl,
@@ -497,7 +498,7 @@
497
498
  backgroundSize: "cover"
498
499
  } : undefined
499
500
  }, !isPromo && /*#__PURE__*/React.createElement(AnnouncementIcon, null), /*#__PURE__*/React.createElement("div", {
500
- className: styles$t["announcement-content"],
501
+ className: styles$q["announcement-content"],
501
502
  style: style,
502
503
  ...platformProps
503
504
  }));
@@ -546,7 +547,7 @@
546
547
  const isPromo = variant === "promo";
547
548
  return /*#__PURE__*/React.createElement("button", {
548
549
  type: "button",
549
- className: classnames(styles$t.dismiss, isPromo && styles$t["dismiss--promo"]),
550
+ className: classnames(styles$q.dismiss, isPromo && styles$q["dismiss--promo"]),
550
551
  ...props
551
552
  }, /*#__PURE__*/React.createElement(X, {
552
553
  fill: isPromo ? "currentColor" : "white",
@@ -626,9 +627,9 @@
626
627
  ...platformProps
627
628
  } = this.props;
628
629
  return /*#__PURE__*/React.createElement("div", {
629
- className: styles$t["announcement"]
630
+ className: styles$q["announcement"]
630
631
  }, /*#__PURE__*/React.createElement(AnnouncementIcon, null), /*#__PURE__*/React.createElement("div", {
631
- className: styles$t["announcement-content"],
632
+ className: styles$q["announcement-content"],
632
633
  style: style,
633
634
  ...platformProps
634
635
  }));
@@ -639,7 +640,7 @@
639
640
  }) {
640
641
  return /*#__PURE__*/React.createElement("button", {
641
642
  type: "button",
642
- className: styles$t.dismiss,
643
+ className: styles$q.dismiss,
643
644
  ...props
644
645
  }, /*#__PURE__*/React.createElement(X, {
645
646
  fill: "white",
@@ -1198,6 +1199,9 @@
1198
1199
  accountsProduct: apps.find(({
1199
1200
  name
1200
1201
  }) => name === "Accounts"),
1202
+ hasChurchCenter: apps.some(({
1203
+ name
1204
+ }) => name === "Publishing"),
1201
1205
  homeProduct: apps.find(({
1202
1206
  name
1203
1207
  }) => name === "Home"),
@@ -1208,7 +1212,7 @@
1208
1212
  }
1209
1213
 
1210
1214
  // TODO: Use Fragments when we React 16 is a baseline
1211
- function Accounts$2() {
1215
+ function Accounts$1() {
1212
1216
  return [/*#__PURE__*/React.createElement("defs", {
1213
1217
  key: "def"
1214
1218
  }, /*#__PURE__*/React.createElement("linearGradient", {
@@ -1232,7 +1236,7 @@
1232
1236
  fill: "url(#2e1ed2e7-b842-4126-8f57-f6b6dd63ddb6)"
1233
1237
  })];
1234
1238
  }
1235
- function API$2() {
1239
+ function API$1() {
1236
1240
  return [/*#__PURE__*/React.createElement("defs", {
1237
1241
  key: "def"
1238
1242
  }, /*#__PURE__*/React.createElement("linearGradient", {
@@ -1256,7 +1260,7 @@
1256
1260
  fill: "url(#c8ec303e-a96d-4850-93ae-70864e3306bb)"
1257
1261
  })];
1258
1262
  }
1259
- function Calendar$2() {
1263
+ function Calendar$1() {
1260
1264
  return [/*#__PURE__*/React.createElement("defs", {
1261
1265
  key: "defs"
1262
1266
  }, /*#__PURE__*/React.createElement("linearGradient", {
@@ -1280,7 +1284,7 @@
1280
1284
  fill: "url(#calendar-gradient)"
1281
1285
  })];
1282
1286
  }
1283
- function Chat$3() {
1287
+ function Chat$2() {
1284
1288
  return [/*#__PURE__*/React.createElement("defs", {
1285
1289
  key: "def"
1286
1290
  }, /*#__PURE__*/React.createElement("linearGradient", {
@@ -1304,7 +1308,7 @@
1304
1308
  fill: "url(#chat-gradient)"
1305
1309
  })];
1306
1310
  }
1307
- function CheckIns$2() {
1311
+ function CheckIns$1() {
1308
1312
  return [/*#__PURE__*/React.createElement("defs", {
1309
1313
  key: "def"
1310
1314
  }, /*#__PURE__*/React.createElement("linearGradient", {
@@ -1328,7 +1332,7 @@
1328
1332
  fill: "url(#679bc2bf-38c8-45ab-9ee3-a2ff814fead7)"
1329
1333
  })];
1330
1334
  }
1331
- function ChurchCenter$2() {
1335
+ function ChurchCenter$1() {
1332
1336
  return [/*#__PURE__*/React.createElement("defs", {
1333
1337
  key: "def"
1334
1338
  }, /*#__PURE__*/React.createElement("linearGradient", {
@@ -1352,7 +1356,7 @@
1352
1356
  fill: "url(#6de99831-a6f8-498e-9bf3-9d55c8d887fa)"
1353
1357
  })];
1354
1358
  }
1355
- function Giving$2() {
1359
+ function Giving$1() {
1356
1360
  return [/*#__PURE__*/React.createElement("defs", {
1357
1361
  key: "def"
1358
1362
  }, /*#__PURE__*/React.createElement("linearGradient", {
@@ -1376,7 +1380,7 @@
1376
1380
  fill: "url(#0aae6372-b733-476d-af45-8777c08c1e24)"
1377
1381
  })];
1378
1382
  }
1379
- function Groups$2() {
1383
+ function Groups$1() {
1380
1384
  return [/*#__PURE__*/React.createElement("defs", {
1381
1385
  key: "def"
1382
1386
  }, /*#__PURE__*/React.createElement("linearGradient", {
@@ -1400,7 +1404,7 @@
1400
1404
  fill: "url(#86d10072-1c7f-4a02-88fe-0735565ae99a)"
1401
1405
  })];
1402
1406
  }
1403
- function Home$2() {
1407
+ function Home$1() {
1404
1408
  return [/*#__PURE__*/React.createElement("defs", {
1405
1409
  key: "def"
1406
1410
  }, /*#__PURE__*/React.createElement("linearGradient", {
@@ -1424,7 +1428,7 @@
1424
1428
  fill: "url(#paint0_linear_1_2)"
1425
1429
  })];
1426
1430
  }
1427
- function People$2() {
1431
+ function People$1() {
1428
1432
  return [/*#__PURE__*/React.createElement("defs", {
1429
1433
  key: "def"
1430
1434
  }, /*#__PURE__*/React.createElement("linearGradient", {
@@ -1448,7 +1452,7 @@
1448
1452
  fill: "url(#7f805f16-2322-4b42-b61a-2bf71eadb25a)"
1449
1453
  })];
1450
1454
  }
1451
- function Publishing$2() {
1455
+ function Publishing$1() {
1452
1456
  return [/*#__PURE__*/React.createElement("defs", {
1453
1457
  key: "def"
1454
1458
  }, /*#__PURE__*/React.createElement("linearGradient", {
@@ -1487,7 +1491,7 @@
1487
1491
  key: "circle"
1488
1492
  })];
1489
1493
  }
1490
- function Registrations$2() {
1494
+ function Registrations$1() {
1491
1495
  return [/*#__PURE__*/React.createElement("defs", {
1492
1496
  key: "def"
1493
1497
  }, /*#__PURE__*/React.createElement("linearGradient", {
@@ -1511,7 +1515,7 @@
1511
1515
  fill: "url(#bd67604d-f11c-4431-bd82-159c57241115)"
1512
1516
  })];
1513
1517
  }
1514
- function Services$2() {
1518
+ function Services$1() {
1515
1519
  return [/*#__PURE__*/React.createElement("defs", {
1516
1520
  key: "def"
1517
1521
  }, /*#__PURE__*/React.createElement("linearGradient", {
@@ -1538,19 +1542,19 @@
1538
1542
 
1539
1543
  var ColorAppSquircles = /*#__PURE__*/Object.freeze({
1540
1544
  __proto__: null,
1541
- API: API$2,
1542
- Accounts: Accounts$2,
1543
- Calendar: Calendar$2,
1544
- Chat: Chat$3,
1545
- CheckIns: CheckIns$2,
1546
- ChurchCenter: ChurchCenter$2,
1547
- Giving: Giving$2,
1548
- Groups: Groups$2,
1549
- Home: Home$2,
1550
- People: People$2,
1551
- Publishing: Publishing$2,
1552
- Registrations: Registrations$2,
1553
- Services: Services$2
1545
+ API: API$1,
1546
+ Accounts: Accounts$1,
1547
+ Calendar: Calendar$1,
1548
+ Chat: Chat$2,
1549
+ CheckIns: CheckIns$1,
1550
+ ChurchCenter: ChurchCenter$1,
1551
+ Giving: Giving$1,
1552
+ Groups: Groups$1,
1553
+ Home: Home$1,
1554
+ People: People$1,
1555
+ Publishing: Publishing$1,
1556
+ Registrations: Registrations$1,
1557
+ Services: Services$1
1554
1558
  });
1555
1559
 
1556
1560
  function Squircle$1({
@@ -1561,7 +1565,7 @@
1561
1565
  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"
1562
1566
  });
1563
1567
  }
1564
- function Accounts$1({
1568
+ function Accounts({
1565
1569
  color
1566
1570
  }) {
1567
1571
  return /*#__PURE__*/React.createElement("path", {
@@ -1569,7 +1573,7 @@
1569
1573
  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"
1570
1574
  });
1571
1575
  }
1572
- function API$1({
1576
+ function API({
1573
1577
  color
1574
1578
  }) {
1575
1579
  return /*#__PURE__*/React.createElement("path", {
@@ -1577,7 +1581,7 @@
1577
1581
  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"
1578
1582
  });
1579
1583
  }
1580
- function Calendar$1({
1584
+ function Calendar({
1581
1585
  color
1582
1586
  }) {
1583
1587
  return /*#__PURE__*/React.createElement("path", {
@@ -1585,7 +1589,7 @@
1585
1589
  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"
1586
1590
  });
1587
1591
  }
1588
- function Chat$2({
1592
+ function Chat$1({
1589
1593
  color
1590
1594
  }) {
1591
1595
  return /*#__PURE__*/React.createElement("path", {
@@ -1593,7 +1597,7 @@
1593
1597
  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"
1594
1598
  });
1595
1599
  }
1596
- function CheckIns$1({
1600
+ function CheckIns({
1597
1601
  color
1598
1602
  }) {
1599
1603
  return /*#__PURE__*/React.createElement("path", {
@@ -1601,7 +1605,7 @@
1601
1605
  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"
1602
1606
  });
1603
1607
  }
1604
- function ChurchCenter$1({
1608
+ function ChurchCenter({
1605
1609
  color
1606
1610
  }) {
1607
1611
  return /*#__PURE__*/React.createElement("path", {
@@ -1609,7 +1613,7 @@
1609
1613
  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"
1610
1614
  });
1611
1615
  }
1612
- function Giving$1({
1616
+ function Giving({
1613
1617
  color
1614
1618
  }) {
1615
1619
  return /*#__PURE__*/React.createElement("path", {
@@ -1617,7 +1621,7 @@
1617
1621
  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"
1618
1622
  });
1619
1623
  }
1620
- function Groups$1({
1624
+ function Groups({
1621
1625
  color
1622
1626
  }) {
1623
1627
  return /*#__PURE__*/React.createElement("path", {
@@ -1625,7 +1629,7 @@
1625
1629
  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"
1626
1630
  });
1627
1631
  }
1628
- function Home$1({
1632
+ function Home({
1629
1633
  color
1630
1634
  }) {
1631
1635
  return /*#__PURE__*/React.createElement("path", {
@@ -1633,7 +1637,7 @@
1633
1637
  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"
1634
1638
  });
1635
1639
  }
1636
- function People$1({
1640
+ function People({
1637
1641
  color
1638
1642
  }) {
1639
1643
  return /*#__PURE__*/React.createElement("path", {
@@ -1641,7 +1645,7 @@
1641
1645
  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"
1642
1646
  });
1643
1647
  }
1644
- function Publishing$1({
1648
+ function Publishing({
1645
1649
  color
1646
1650
  }) {
1647
1651
  return /*#__PURE__*/React.createElement("path", {
@@ -1649,7 +1653,7 @@
1649
1653
  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"
1650
1654
  });
1651
1655
  }
1652
- function Registrations$1({
1656
+ function Registrations({
1653
1657
  color
1654
1658
  }) {
1655
1659
  return /*#__PURE__*/React.createElement("path", {
@@ -1657,7 +1661,7 @@
1657
1661
  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"
1658
1662
  });
1659
1663
  }
1660
- function Services$1({
1664
+ function Services({
1661
1665
  color
1662
1666
  }) {
1663
1667
  return /*#__PURE__*/React.createElement("path", {
@@ -1668,19 +1672,19 @@
1668
1672
 
1669
1673
  var AppSymbols = /*#__PURE__*/Object.freeze({
1670
1674
  __proto__: null,
1671
- API: API$1,
1672
- Accounts: Accounts$1,
1673
- Calendar: Calendar$1,
1674
- Chat: Chat$2,
1675
- CheckIns: CheckIns$1,
1676
- ChurchCenter: ChurchCenter$1,
1677
- Giving: Giving$1,
1678
- Groups: Groups$1,
1679
- Home: Home$1,
1680
- People: People$1,
1681
- Publishing: Publishing$1,
1682
- Registrations: Registrations$1,
1683
- Services: Services$1,
1675
+ API: API,
1676
+ Accounts: Accounts,
1677
+ Calendar: Calendar,
1678
+ Chat: Chat$1,
1679
+ CheckIns: CheckIns,
1680
+ ChurchCenter: ChurchCenter,
1681
+ Giving: Giving,
1682
+ Groups: Groups,
1683
+ Home: Home,
1684
+ People: People,
1685
+ Publishing: Publishing,
1686
+ Registrations: Registrations,
1687
+ Services: Services,
1684
1688
  Squircle: Squircle$1
1685
1689
  });
1686
1690
 
@@ -1761,7 +1765,40 @@
1761
1765
  })) : (/*#__PURE__*/React.createElement("div", null, "appName not supported")));
1762
1766
  }
1763
1767
 
1764
- var styles$s = {"name":"name-UNqbW"};
1768
+ var styles$p = {"name":"name-UNqbW"};
1769
+
1770
+ const collections = {
1771
+ accounts: accounts__namespace,
1772
+ general: general__namespace,
1773
+ toolbar: toolbar__namespace
1774
+ };
1775
+ const paths = collections;
1776
+ function Icon({
1777
+ name,
1778
+ size = 16,
1779
+ style,
1780
+ theme,
1781
+ title,
1782
+ ...props
1783
+ }) {
1784
+ const [collection, symbol] = name.split(".");
1785
+ return /*#__PURE__*/React.createElement("svg", {
1786
+ "aria-hidden": title ? undefined : true,
1787
+ fill: "currentColor",
1788
+ height: size,
1789
+ role: title ? "img" : undefined,
1790
+ style: {
1791
+ color: theme && `var(${theme})`,
1792
+ flexShrink: 0,
1793
+ ...style
1794
+ },
1795
+ viewBox: "0 0 16 16",
1796
+ width: size,
1797
+ ...props
1798
+ }, title && /*#__PURE__*/React.createElement("title", null, title), /*#__PURE__*/React.createElement("path", {
1799
+ d: paths[collection][symbol]
1800
+ }));
1801
+ }
1765
1802
 
1766
1803
  const AppRow = ({
1767
1804
  appName,
@@ -1774,18 +1811,27 @@
1774
1811
  colors: colors,
1775
1812
  size: iconSize
1776
1813
  }), /*#__PURE__*/React.createElement("span", {
1777
- className: styles$s.name
1814
+ className: styles$p.name
1778
1815
  }, "Account settings"));
1779
1816
  }
1817
+ if (appName === "Church Center") {
1818
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Icon, {
1819
+ name: "accounts.churchCenterO",
1820
+ size: iconSize,
1821
+ theme: "--t-icon-color"
1822
+ }), /*#__PURE__*/React.createElement("span", {
1823
+ className: styles$p.name
1824
+ }, "Church Center"));
1825
+ }
1780
1826
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ColorAppIcon, {
1781
1827
  appName: appName.replace(/[\s-]/, ""),
1782
1828
  size: iconSize
1783
1829
  }), /*#__PURE__*/React.createElement("span", {
1784
- className: styles$s.name
1830
+ className: styles$p.name
1785
1831
  }, appName));
1786
1832
  };
1787
1833
 
1788
- var styles$r = {"button":"button-NPHAj","label":"label-1EckO","chevron":"chevron-6-PM4"};
1834
+ var styles$o = {"button":"button-NPHAj","label":"label-1EckO","chevron":"chevron-6-PM4"};
1789
1835
 
1790
1836
  const AppsButton = /*#__PURE__*/React.forwardRef(({
1791
1837
  appName,
@@ -1797,10 +1843,10 @@
1797
1843
  ...restProps,
1798
1844
  ref: ref,
1799
1845
  "aria-label": `App switcher: ${appName}`,
1800
- className: styles$r.button,
1846
+ className: styles$o.button,
1801
1847
  kind: "neutral-inline",
1802
1848
  label: /*#__PURE__*/React.createElement("span", {
1803
- className: styles$r.label
1849
+ className: styles$o.label
1804
1850
  }, isAccounts ? "Account settings" : appName),
1805
1851
  prefix: isAccounts ? (/*#__PURE__*/React.createElement(MonoAppIcon, {
1806
1852
  appName: "Accounts",
@@ -1811,26 +1857,29 @@
1811
1857
  size: 24
1812
1858
  })),
1813
1859
  suffix: /*#__PURE__*/React.createElement(DisclosureChevronIcon, {
1814
- className: `${styles$r.chevron} symbol`
1860
+ className: `${styles$o.chevron} symbol`
1815
1861
  })
1816
1862
  });
1817
1863
  });
1818
1864
  AppsButton.displayName = "AppsButton";
1819
1865
 
1820
- 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"};
1866
+ 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"};
1821
1867
 
1822
1868
  const AppsMenu = ({
1823
1869
  appName,
1824
1870
  apps,
1871
+ churchCenterEnabled = false,
1825
1872
  colors,
1826
1873
  env,
1827
1874
  requestAppsFetch
1828
1875
  }) => {
1829
1876
  const {
1830
1877
  accountsProduct,
1878
+ hasChurchCenter,
1831
1879
  homeProduct,
1832
1880
  restProducts
1833
1881
  } = groupApps(apps);
1882
+ const showChurchCenter = churchCenterEnabled && hasChurchCenter;
1834
1883
  const renderProductLink = name => {
1835
1884
  const isCurrent = name === appName;
1836
1885
  return /*#__PURE__*/React.createElement("li", {
@@ -1838,8 +1887,8 @@
1838
1887
  }, /*#__PURE__*/React.createElement("a", {
1839
1888
  "aria-current": isCurrent ? "page" : undefined,
1840
1889
  "aria-label": name,
1841
- className: classnames(styles$q.link, {
1842
- [styles$q.current]: isCurrent
1890
+ className: classnames(styles$n.link, {
1891
+ [styles$n.current]: isCurrent
1843
1892
  }),
1844
1893
  "data-pendo": `app-switcher--change-app--${name}`,
1845
1894
  "data-turbolinks": false,
@@ -1855,594 +1904,41 @@
1855
1904
  colors: colors
1856
1905
  })), /*#__PURE__*/React.createElement(tapestry.PopoverContent, {
1857
1906
  "aria-label": "Switch app",
1858
- className: styles$q["popover-content"],
1907
+ className: styles$n["popover-content"],
1859
1908
  placement: "bottom start"
1860
1909
  }, /*#__PURE__*/React.createElement("nav", {
1861
- className: styles$q.nav,
1910
+ className: styles$n.nav,
1862
1911
  "data-pendo": "app-switcher"
1863
1912
  }, /*#__PURE__*/React.createElement("ul", {
1864
- className: styles$q.list,
1913
+ className: styles$n.list,
1865
1914
  role: "list"
1866
- }, homeProduct && renderProductLink(homeProduct.name), restProducts.map(({
1867
- name
1868
- }) => renderProductLink(name)), accountsProduct && (/*#__PURE__*/React.createElement("li", {
1869
- className: styles$q["accounts-item"]
1870
- }, /*#__PURE__*/React.createElement("a", {
1871
- "aria-current": appName === accountsProduct.name ? "page" : undefined,
1872
- "aria-label": "Account settings",
1873
- className: classnames(styles$q.link, styles$q["accounts-link"]),
1874
- "data-pendo": "app-switcher--change-app--Accounts",
1875
- "data-turbolinks": false,
1876
- href: pcoUrl$1(env)("accounts") + getAppsSwitchProductPath(accountsProduct.name)
1877
- }, /*#__PURE__*/React.createElement(AppRow, {
1878
- appName: "Accounts",
1879
- colors: colors
1880
- }))))))));
1881
- };
1882
-
1883
- const fill = "var(--t-text-color)";
1884
- function Accounts({
1885
- size = 20
1886
- }) {
1887
- return /*#__PURE__*/React.createElement("svg", {
1888
- "data-logo": "mono-app-text",
1889
- height: size,
1890
- viewBox: "0 0 77.073 20",
1891
- xmlns: "http://www.w3.org/2000/svg"
1892
- }, /*#__PURE__*/React.createElement("title", null, "accounts-text"), /*#__PURE__*/React.createElement("path", {
1893
- fill: fill,
1894
- 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"
1895
- }));
1896
- }
1897
- function API({
1898
- size = 20
1899
- }) {
1900
- return /*#__PURE__*/React.createElement("svg", {
1901
- "data-logo": "mono-app-text",
1902
- height: size,
1903
- viewBox: "0 0 119.5 20",
1904
- xmlns: "http://www.w3.org/2000/svg"
1905
- }, /*#__PURE__*/React.createElement("title", null, "api-text"), /*#__PURE__*/React.createElement("path", {
1906
- fill: fill,
1907
- 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"
1908
- }));
1909
- }
1910
- function Calendar({
1911
- size = 20
1912
- }) {
1913
- return /*#__PURE__*/React.createElement("svg", {
1914
- "data-logo": "mono-app-text",
1915
- height: size,
1916
- viewBox: "0 0 73.83 20",
1917
- xmlns: "http://www.w3.org/2000/svg"
1918
- }, /*#__PURE__*/React.createElement("title", null, "calendar-text"), /*#__PURE__*/React.createElement("path", {
1919
- fill: fill,
1920
- 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"
1921
- }));
1922
- }
1923
- function Chat$1({
1924
- size = 20
1925
- }) {
1926
- return /*#__PURE__*/React.createElement("svg", {
1927
- "data-logo": "mono-app-text",
1928
- height: size,
1929
- viewBox: "0 0 35.5988 20",
1930
- xmlns: "http://www.w3.org/2000/svg"
1931
- }, /*#__PURE__*/React.createElement("title", null, "chat-text"), /*#__PURE__*/React.createElement("path", {
1932
- fill: fill,
1933
- transform: "translate(0, 1.121) scale(0.739013)",
1934
- 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"
1935
- }));
1936
- }
1937
- function CheckIns({
1938
- size = 20
1939
- }) {
1940
- return /*#__PURE__*/React.createElement("svg", {
1941
- "data-logo": "mono-app-text",
1942
- height: size,
1943
- viewBox: "0 0 79.311 20",
1944
- xmlns: "http://www.w3.org/2000/svg"
1945
- }, /*#__PURE__*/React.createElement("title", null, "check-ins-text"), /*#__PURE__*/React.createElement("path", {
1946
- fill: fill,
1947
- 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"
1948
- }));
1949
- }
1950
- function ChurchCenter({
1951
- size = 20
1952
- }) {
1953
- return /*#__PURE__*/React.createElement("svg", {
1954
- "data-logo": "mono-app-text",
1955
- height: size,
1956
- viewBox: "0 0 118.083 20",
1957
- xmlns: "http://www.w3.org/2000/svg"
1958
- }, /*#__PURE__*/React.createElement("title", null, "church-center-text"), /*#__PURE__*/React.createElement("path", {
1959
- fill: fill,
1960
- 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"
1961
- }));
1962
- }
1963
- function Giving({
1964
- size = 20
1965
- }) {
1966
- return /*#__PURE__*/React.createElement("svg", {
1967
- "data-logo": "mono-app-text",
1968
- height: size,
1969
- viewBox: "0 0 50.486 20",
1970
- xmlns: "http://www.w3.org/2000/svg"
1971
- }, /*#__PURE__*/React.createElement("title", null, "giving-text"), /*#__PURE__*/React.createElement("path", {
1972
- fill: fill,
1973
- 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"
1974
- }));
1975
- }
1976
- function Home({
1977
- size = 20
1978
- }) {
1979
- return /*#__PURE__*/React.createElement("svg", {
1980
- "data-logo": "mono-app-text",
1981
- xmlns: "http://www.w3.org/2000/svg",
1982
- height: size,
1983
- viewBox: "0 0 47.624 20"
1984
- }, /*#__PURE__*/React.createElement("title", null, "home-text"), /*#__PURE__*/React.createElement("path", {
1985
- fill: fill,
1986
- 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"
1987
- }));
1988
- }
1989
- function Groups({
1990
- size = 20
1991
- }) {
1992
- return /*#__PURE__*/React.createElement("svg", {
1993
- "data-logo": "mono-app-text",
1994
- height: size,
1995
- viewBox: "0 0 58.688 20",
1996
- xmlns: "http://www.w3.org/2000/svg"
1997
- }, /*#__PURE__*/React.createElement("title", null, "groups-text"), /*#__PURE__*/React.createElement("path", {
1998
- fill: fill,
1999
- 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"
2000
- }));
2001
- }
2002
- function People({
2003
- size = 20
2004
- }) {
2005
- return /*#__PURE__*/React.createElement("svg", {
2006
- "data-logo": "mono-app-text",
2007
- height: size,
2008
- viewBox: "0 0 57.729 20",
2009
- xmlns: "http://www.w3.org/2000/svg"
2010
- }, /*#__PURE__*/React.createElement("title", null, "people-text"), /*#__PURE__*/React.createElement("path", {
2011
- fill: fill,
2012
- 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"
2013
- }));
2014
- }
2015
- function Publishing({
2016
- size = 20
2017
- }) {
2018
- return /*#__PURE__*/React.createElement("svg", {
2019
- "data-logo": "mono-app-text",
2020
- xmlns: "http://www.w3.org/2000/svg",
2021
- height: size,
2022
- viewBox: "0 0 84.973 20"
2023
- }, /*#__PURE__*/React.createElement("title", null, "publishing-text"), /*#__PURE__*/React.createElement("path", {
2024
- 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",
2025
- fill: fill
2026
- }));
2027
- }
2028
- function Registrations({
2029
- size = 20
2030
- }) {
2031
- return /*#__PURE__*/React.createElement("svg", {
2032
- "data-logo": "mono-app-text",
2033
- xmlns: "http://www.w3.org/2000/svg",
2034
- height: size,
2035
- viewBox: "0 0 105.758 20"
2036
- }, /*#__PURE__*/React.createElement("title", null, "registrations-text"), /*#__PURE__*/React.createElement("path", {
2037
- fill: fill,
2038
- 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"
2039
- }));
2040
- }
2041
- function Services({
2042
- size = 20
2043
- }) {
2044
- return /*#__PURE__*/React.createElement("svg", {
2045
- "data-logo": "mono-app-text",
2046
- xmlns: "http://www.w3.org/2000/svg",
2047
- height: size,
2048
- viewBox: "0 0 67.995 20"
2049
- }, /*#__PURE__*/React.createElement("title", null, "services-text"), /*#__PURE__*/React.createElement("path", {
2050
- fill: fill,
2051
- 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"
2052
- }));
2053
- }
2054
-
2055
- var MonoAppText = /*#__PURE__*/Object.freeze({
2056
- __proto__: null,
2057
- API: API,
2058
- Accounts: Accounts,
2059
- Calendar: Calendar,
2060
- Chat: Chat$1,
2061
- CheckIns: CheckIns,
2062
- ChurchCenter: ChurchCenter,
2063
- Giving: Giving,
2064
- Groups: Groups,
2065
- Home: Home,
2066
- People: People,
2067
- Publishing: Publishing,
2068
- Registrations: Registrations,
2069
- Services: Services
2070
- });
2071
-
2072
- function MonoAppName({
2073
- appName,
2074
- size = 20
2075
- }) {
2076
- return MonoAppText[appName] ? (/*#__PURE__*/React.createElement(MonoAppText[appName], {
2077
- size
2078
- })) : (/*#__PURE__*/React.createElement("div", null, "appName not supported"));
2079
- }
2080
-
2081
- var styles$p = {"unbutton":"unbutton-lEbTR"};
2082
-
2083
- function Unbutton({
2084
- className,
2085
- style,
2086
- type = "button",
2087
- ...nativeProps
2088
- }) {
2089
- return /*#__PURE__*/React.createElement("button", {
2090
- className: classnames(styles$p.unbutton, className),
2091
- style: {
2092
- ...style
2093
- },
2094
- type: type,
2095
- ...nativeProps
2096
- });
2097
- }
2098
-
2099
- var styles$o = {"button":"button-8Zv7k","button-accounts":"button-accounts-oFhiA","chevron":"chevron-tK3nU","is-expanded":"is-expanded-jmmlH"};
2100
-
2101
- const LegacyAppsButton = ({
2102
- appName,
2103
- colors,
2104
- expanded,
2105
- onClick,
2106
- style = null,
2107
- ...nativeProps
2108
- }) => {
2109
- return /*#__PURE__*/React.createElement(Unbutton, {
2110
- "aria-expanded": expanded,
2111
- "aria-haspopup": "true",
2112
- "aria-label": `App switcher: ${appName}`,
2113
- onClick: onClick,
2114
- className: classnames(styles$o.button, {
2115
- [styles$o["is-expanded"]]: expanded
2116
- }),
2117
- type: "button",
2118
- style: style,
2119
- ...nativeProps
2120
- }, appName === "Accounts" ? (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(MonoAppIcon, {
2121
- appName: "Accounts",
2122
- colors: colors
2123
- }), /*#__PURE__*/React.createElement("div", {
2124
- className: styles$o["button-accounts"]
2125
- }, "Account settings"))) : (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ColorAppIcon, {
2126
- appName: appName.replace(/[\s-]/, "")
2127
- }), /*#__PURE__*/React.createElement(MonoAppName, {
2128
- appName: appName.replace(/[\s-]/, ""),
2129
- key: "mono-app-name",
2130
- size: 24
2131
- }))), /*#__PURE__*/React.createElement(DisclosureChevronIcon, {
2132
- className: styles$o.chevron,
2133
- key: "disclosure-chevron-icon"
2134
- }));
2135
- };
2136
-
2137
- // Currently scoped to links and buttons since the app switcher only contains
2138
- // those elements. If this hook is reused in containers with form elements,
2139
- // expand to include: input, select, textarea, [tabindex]:not([tabindex="-1"])
2140
- const FOCUSABLE_SELECTOR = "a[href], button:not([disabled])";
2141
- /**
2142
- * Manages focus trapping within a container element.
2143
- *
2144
- * When `active` becomes true:
2145
- * - Stores the currently focused element
2146
- * - Moves focus to the first focusable child
2147
- *
2148
- * When `active` becomes false:
2149
- * - Returns focus to the previously focused element
2150
- *
2151
- * While active:
2152
- * - Tab/Shift+Tab wraps within the container
2153
- * - Escape calls `onClose`
2154
- *
2155
- * Note: focus trapping uses scoped querySelector on the container ref,
2156
- * which is the same approach used by libraries like focus-trap-react.
2157
- */
2158
- function useFocusTrap({
2159
- active,
2160
- onClose
2161
- }) {
2162
- const containerRef = React.useRef(null);
2163
- const previousFocusRef = React.useRef(null);
2164
- React.useLayoutEffect(() => {
2165
- var _a, _b, _c;
2166
- if (active) {
2167
- previousFocusRef.current = document.activeElement;
2168
- (_b = (_a = containerRef.current) === null || _a === void 0 ? void 0 : _a.querySelector(FOCUSABLE_SELECTOR)) === null || _b === void 0 ? void 0 : _b.focus();
2169
- } else {
2170
- (_c = previousFocusRef.current) === null || _c === void 0 ? void 0 : _c.focus();
2171
- previousFocusRef.current = null;
2172
- }
2173
- }, [active]);
2174
- const handleKeyDown = React.useCallback(e => {
2175
- var _a;
2176
- if (!active) {
2177
- return;
2178
- }
2179
- if (e.key === "Escape") {
2180
- onClose();
2181
- return;
2182
- }
2183
- if (e.key === "Tab") {
2184
- const focusable = (_a = containerRef.current) === null || _a === void 0 ? void 0 : _a.querySelectorAll(FOCUSABLE_SELECTOR);
2185
- if (!focusable || focusable.length === 0) return;
2186
- const first = focusable[0];
2187
- const last = focusable[focusable.length - 1];
2188
- if (e.shiftKey && document.activeElement === first) {
2189
- e.preventDefault();
2190
- last.focus();
2191
- } else if (!e.shiftKey && document.activeElement === last) {
2192
- e.preventDefault();
2193
- first.focus();
2194
- }
2195
- }
2196
- }, [active, onClose]);
2197
- return {
2198
- containerRef,
2199
- handleKeyDown
2200
- };
2201
- }
2202
-
2203
- const fontFamily = {
2204
- fontFamily: `inherit`
2205
- };
2206
- const IEFlex1 = {
2207
- flex: "1 1 auto"
2208
- };
2209
-
2210
- const HoverableListItem = ({
2211
- active = false,
2212
- component: C = "span",
2213
- style = null,
2214
- ...nativeProps
2215
- }) => {
2216
- const [entered, setEntered] = React.useState(false);
2217
- const getBackgroundColor = () => active ? "var(--t-fill-color-neutral-060)" : entered ? "var(--t-fill-color-neutral-080)" : "transparent";
2218
- return /*#__PURE__*/React.createElement(C, {
2219
- onMouseEnter: () => setEntered(true),
2220
- onMouseLeave: () => setEntered(false),
2221
- style: {
2222
- ...style,
2223
- backgroundColor: getBackgroundColor()
2224
- },
2225
- ...nativeProps
2226
- });
2227
- };
2228
-
2229
- class Outsider extends React.Component {
2230
- constructor(props) {
2231
- super(props);
2232
- this.handleOutsideClick = this.handleOutsideClick.bind(this);
2233
- }
2234
- componentWillUnmount() {
2235
- document.removeEventListener("click", this.handleOutsideClick, true);
2236
- }
2237
- handleOutsideClick(e) {
2238
- if (this.container.contains(e.target) || e.target.closest('[data-toolbar-link="true"]')) {
2239
- return;
2240
- } else {
2241
- e.stopPropagation();
2242
- e.preventDefault();
2243
- return this.props.onOutsideClick();
2244
- }
2245
- }
2246
- render() {
2247
- const {
2248
- cleanup,
2249
- onOutsideClick,
2250
- visible,
2251
- ...props
2252
- } = this.props;
2253
- if (cleanup) {
2254
- document.removeEventListener("click", this.handleOutsideClick, true);
2255
- } else {
2256
- document.addEventListener("click", this.handleOutsideClick, true);
2257
- }
2258
- return /*#__PURE__*/React.createElement("div", {
2259
- ref: c => this.container = c,
2260
- ...props
2261
- });
2262
- }
2263
- }
2264
-
2265
- var styles$n = {"popup-root":"popup-root-SeL5u","popup":"popup-nQXYW","is-visible":"is-visible-3DAUP"};
2266
-
2267
- const Popup = ({
2268
- className,
2269
- component: C = "div",
2270
- isVisible,
2271
- ...nativeProps
2272
- }) => (/*#__PURE__*/React.createElement(C, {
2273
- className: classnames(styles$n.popup, {
2274
- [styles$n["is-visible"]]: isVisible
2275
- }, className),
2276
- ...nativeProps
2277
- }));
2278
-
2279
- const PopupRoot = ({
2280
- ...nativeProps
2281
- }) => (/*#__PURE__*/React.createElement("div", {
2282
- className: styles$n["popup-root"],
2283
- ...nativeProps
2284
- }));
2285
-
2286
- var styles$m = {"popup":"popup-bVhSa"};
2287
-
2288
- const LegacyAppsMenu = ({
2289
- appName,
2290
- apps,
2291
- env,
2292
- toggle,
2293
- visible
2294
- }) => {
2295
- const accountsProduct = apps.find(({
2296
- name
2297
- }) => name === "Accounts");
2298
- const homeProduct = apps.find(({
2299
- name
2300
- }) => name === "Home");
2301
- const restProducts = [...apps].filter(({
2302
- name
2303
- }) => name !== "Home" && name !== "Accounts").sort((a, b) => a.name.localeCompare(b.name));
2304
- const {
2305
- containerRef: menuRef,
2306
- handleKeyDown
2307
- } = useFocusTrap({
2308
- active: visible,
2309
- onClose: toggle
2310
- });
2311
- const listItemProps = {
2312
- ...fontFamily,
2313
- alignItems: "center",
2314
- display: "flex",
2315
- height: "48px",
2316
- overflow: "hidden",
2317
- padding: "0 16px",
2318
- verticalAlign: "middle"
2319
- };
2320
- return /*#__PURE__*/React.createElement(PopupRoot, null, /*#__PURE__*/React.createElement(Popup, {
2321
- cleanup: !visible,
2322
- component: Outsider,
2323
- onOutsideClick: toggle,
2324
- className: styles$m.popup,
2325
- isVisible: visible
2326
- }, /*#__PURE__*/React.createElement("menu", {
2327
- ref: menuRef,
2328
- "data-pendo": "app-switcher",
2329
- onKeyDown: handleKeyDown,
2330
- style: {
2331
- margin: 0,
2332
- padding: 0
2333
- }
2334
- }, homeProduct && (/*#__PURE__*/React.createElement(HoverableListItem, {
2335
- "aria-current": appName === homeProduct.name ? "page" : undefined,
2336
- "aria-label": homeProduct.name,
2337
- component: "a",
2338
- "data-pendo": `app-switcher--change-app--${homeProduct.name}`,
2339
- "data-turbolinks": false,
2340
- href: appName === homeProduct.name ? `${pcoUrl$1(env)("accounts")}/apps/${appName}` : pcoUrl$1(env)("accounts") + getAppsSwitchProductPath(homeProduct.name),
2341
- style: {
2342
- ...listItemProps,
2343
- borderBottom: "1px solid var(--t-border-color)"
2344
- }
2345
- }, /*#__PURE__*/React.createElement("div", {
2346
- style: {
2347
- marginRight: "6px"
2348
- }
2349
- }, /*#__PURE__*/React.createElement(ColorAppIcon, {
2350
- appName: "Home",
2351
- size: 20
2352
- })), /*#__PURE__*/React.createElement(MonoAppName, {
2353
- appName: "Home",
2354
- size: 18
2355
- }))), restProducts.map(({
1915
+ }, homeProduct && renderProductLink(homeProduct.name), restProducts.map(({
2356
1916
  name
2357
- }, i) => {
2358
- const isFirst = i === 0;
2359
- const isLast = i === restProducts.length - 1;
2360
- return /*#__PURE__*/React.createElement(HoverableListItem, {
2361
- "aria-current": name === appName ? "page" : undefined,
2362
- "aria-label": name,
2363
- component: "a",
2364
- "data-pendo": `app-switcher--change-app--${name}`,
2365
- "data-turbolinks": false,
2366
- href: name === appName ? `${pcoUrl$1(env)("accounts")}/apps/${name.toLowerCase()}` : pcoUrl$1(env)("accounts") + getAppsSwitchProductPath(name),
2367
- key: name,
2368
- style: {
2369
- ...listItemProps,
2370
- height: "40px",
2371
- paddingBottom: isLast ? "4px" : null,
2372
- paddingTop: isFirst ? "4px" : null
2373
- }
2374
- }, /*#__PURE__*/React.createElement("div", {
2375
- style: {
2376
- marginRight: "6px"
2377
- }
2378
- }, /*#__PURE__*/React.createElement(ColorAppIcon, {
2379
- appName: name.replace(/[\s-]/, ""),
2380
- size: 20
2381
- })), /*#__PURE__*/React.createElement(MonoAppName, {
2382
- appName: name.replace(/[\s-]/, ""),
2383
- size: 18
2384
- }));
2385
- }), accountsProduct && (/*#__PURE__*/React.createElement(HoverableListItem, {
1917
+ }) => renderProductLink(name)), accountsProduct && (/*#__PURE__*/React.createElement("li", {
1918
+ className: styles$n["accounts-item"]
1919
+ }, /*#__PURE__*/React.createElement("a", {
2386
1920
  "aria-current": appName === accountsProduct.name ? "page" : undefined,
2387
- "aria-label": accountsProduct.name,
2388
- component: "a",
2389
- "data-pendo": `app-switcher--change-app--${accountsProduct.name}`,
1921
+ "aria-label": "Account settings",
1922
+ className: classnames(styles$n.link, styles$n["accounts-link"]),
1923
+ "data-pendo": "app-switcher--change-app--Accounts",
2390
1924
  "data-turbolinks": false,
2391
- href: pcoUrl$1(env)("accounts") + getAppsSwitchProductPath(accountsProduct.name),
2392
- style: {
2393
- ...listItemProps,
2394
- borderTop: "1px solid var(--t-border-color)",
2395
- padding: "0 12px",
2396
- textDecoration: "none"
2397
- }
2398
- }, /*#__PURE__*/React.createElement("svg", {
2399
- height: 22,
2400
- style: {
2401
- display: "block",
2402
- marginRight: "2px"
2403
- },
2404
- viewBox: "0 0 20 20",
2405
- width: 22,
2406
- xmlns: "http://www.w3.org/2000/svg"
2407
- }, /*#__PURE__*/React.createElement(Accounts$1, {
2408
- color: "var(--t-icon-color-secondary)",
2409
- key: "key2"
2410
- })), /*#__PURE__*/React.createElement("div", {
2411
- style: {
2412
- color: "var(--t-text-color-secondary)",
2413
- fontSize: "12px",
2414
- lineHeight: "28px"
2415
- }
2416
- }, "Account settings"))))));
2417
- };
2418
-
2419
- const LegacyAppsSwitcher$1 = ({
2420
- appName,
2421
- apps,
2422
- colors,
2423
- env,
2424
- requestAppsFetch
2425
- }) => {
2426
- const [visible, setVisible] = React.useState(false);
2427
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(LegacyAppsMenu, {
2428
- env: env,
2429
- appName: appName,
2430
- apps: apps,
2431
- visible: visible,
2432
- toggle: () => setVisible(isVisible => !isVisible)
2433
- }), /*#__PURE__*/React.createElement(LegacyAppsButton, {
2434
- colors: colors,
2435
- expanded: visible,
2436
- onClick: () => {
2437
- setVisible(isVisible => !isVisible);
2438
- requestAppsFetch();
2439
- },
2440
- appName: appName
2441
- }));
1925
+ href: pcoUrl$1(env)("accounts") + getAppsSwitchProductPath(accountsProduct.name)
1926
+ }, /*#__PURE__*/React.createElement(AppRow, {
1927
+ appName: "Accounts",
1928
+ colors: colors
1929
+ })))), showChurchCenter && (/*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("a", {
1930
+ "aria-current": appName === "Church Center" ? "page" : undefined,
1931
+ className: classnames(styles$n.link, styles$n["accounts-link"]),
1932
+ "data-pendo": "app-switcher--change-app--ChurchCenter",
1933
+ "data-turbolinks": false,
1934
+ href: `${pcoUrl$1(env)("publishing")}/dashboard`
1935
+ }, /*#__PURE__*/React.createElement(AppRow, {
1936
+ appName: "Church Center"
1937
+ }))))))));
2442
1938
  };
2443
1939
 
2444
1940
  const FEATURE_FLAGS = {
2445
- APP_SWITCHER_REDESIGN: "ROLLOUT_app_switcher_redesign",
1941
+ CHURCH_CENTER_PRODUCT: "ROLLOUT_church_center_product",
2446
1942
  PRODUCT_SEARCH: "product_search"
2447
1943
  };
2448
1944
  function hasFeature(features, flag) {
@@ -3231,38 +2727,6 @@ true;
3231
2727
  });
3232
2728
  }, []);
3233
2729
 
3234
- const collections = {
3235
- general: general__namespace,
3236
- toolbar: toolbar__namespace
3237
- };
3238
- const paths = collections;
3239
- function Icon({
3240
- name,
3241
- size = 16,
3242
- style,
3243
- theme,
3244
- title,
3245
- ...props
3246
- }) {
3247
- const [collection, symbol] = name.split(".");
3248
- return /*#__PURE__*/React.createElement("svg", {
3249
- "aria-hidden": title ? undefined : true,
3250
- fill: "currentColor",
3251
- height: size,
3252
- role: title ? "img" : undefined,
3253
- style: {
3254
- color: theme && `var(${theme})`,
3255
- flexShrink: 0,
3256
- ...style
3257
- },
3258
- viewBox: "0 0 16 16",
3259
- width: size,
3260
- ...props
3261
- }, title && /*#__PURE__*/React.createElement("title", null, title), /*#__PURE__*/React.createElement("path", {
3262
- d: paths[collection][symbol]
3263
- }));
3264
- }
3265
-
3266
2730
  const SEARCHABLE_PRODUCTS = [{
3267
2731
  appName: "Calendar",
3268
2732
  slug: "calendar"
@@ -3331,7 +2795,7 @@ true;
3331
2795
  ArrowRight: 1
3332
2796
  })[key];
3333
2797
 
3334
- var styles$l = {"searchButton":"searchButton-fYa5-"};
2798
+ var styles$m = {"searchButton":"searchButton-fYa5-"};
3335
2799
 
3336
2800
  function SearchButton({
3337
2801
  mobile = false,
@@ -3340,7 +2804,7 @@ true;
3340
2804
  return /*#__PURE__*/React.createElement("button", {
3341
2805
  "aria-keyshortcuts": mobile ? undefined : `${isMac() ? "Meta" : "Control"}+${KEYBOARD_SHORTCUTS.openSearch.key.toUpperCase()} /`,
3342
2806
  "aria-label": "Search",
3343
- className: styles$l.searchButton,
2807
+ className: styles$m.searchButton,
3344
2808
  "data-search-button": true,
3345
2809
  onClick: onClick,
3346
2810
  type: "button"
@@ -4238,19 +3702,27 @@ true;
4238
3702
  "If-Match": `"${version}"`
4239
3703
  } : {};
4240
3704
  }
4241
- // Applies `change` to the stored value and writes the result, rereading and
4242
- // retrying when another tab or device wrote in between. `change` returns null
4243
- // when there's nothing to write. A read-only token (staff impersonating
4244
- // someone) only reads, so nothing is written into the person's history.
4245
- // Resolves to the value now stored, with whether the token was read-only, or
4246
- // null when the service couldn't be reached.
4247
- async function updateStoredValue(personId, key, change, attemptsLeft = MAX_ATTEMPTS) {
3705
+ function versionFrom(json) {
3706
+ return isRecord(json) && typeof json.version === "number" ? json.version : undefined;
3707
+ }
3708
+ function write(personId, key, value, version) {
3709
+ return request(personId, key, {
3710
+ body: JSON.stringify({
3711
+ value
3712
+ }),
3713
+ headers: {
3714
+ "Content-Type": "application/json",
3715
+ ...ifMatch(version)
3716
+ },
3717
+ method: "PUT"
3718
+ });
3719
+ }
3720
+ async function readChangeWrite(personId, key, change, attemptsLeft = MAX_ATTEMPTS) {
4248
3721
  const read = await request(personId, key);
4249
3722
  if (read === null || read === void 0 ? void 0 : read.response.ok) {
4250
- const {
4251
- value,
4252
- version
4253
- } = await read.response.json();
3723
+ const json = await read.response.json();
3724
+ const value = isRecord(json) && Array.isArray(json.value) ? json.value : [];
3725
+ const version = versionFrom(json);
4254
3726
  const {
4255
3727
  readOnly
4256
3728
  } = read.token;
@@ -4258,26 +3730,20 @@ true;
4258
3730
  if (next === null) {
4259
3731
  return {
4260
3732
  readOnly,
4261
- value: Array.isArray(value) ? value : []
3733
+ value,
3734
+ version
4262
3735
  };
4263
3736
  } else {
4264
- const write = await request(personId, key, {
4265
- body: JSON.stringify({
4266
- value: next
4267
- }),
4268
- headers: {
4269
- "Content-Type": "application/json",
4270
- ...ifMatch(version)
4271
- },
4272
- method: "PUT"
4273
- });
4274
- if (write === null || write === void 0 ? void 0 : write.response.ok) {
3737
+ const written = await write(personId, key, next, version);
3738
+ if (written === null || written === void 0 ? void 0 : written.response.ok) {
3739
+ const reply = await written.response.json();
4275
3740
  return {
4276
3741
  readOnly,
4277
- value: next
3742
+ value: next,
3743
+ version: versionFrom(reply)
4278
3744
  };
4279
- } else if ((write === null || write === void 0 ? void 0 : write.response.status) === 409 && attemptsLeft > 1) {
4280
- return updateStoredValue(personId, key, change, attemptsLeft - 1);
3745
+ } else if ((written === null || written === void 0 ? void 0 : written.response.status) === 409 && attemptsLeft > 1) {
3746
+ return readChangeWrite(personId, key, change, attemptsLeft - 1);
4281
3747
  } else {
4282
3748
  return null;
4283
3749
  }
@@ -4286,6 +3752,46 @@ true;
4286
3752
  return null;
4287
3753
  }
4288
3754
  }
3755
+ // Applies `change` to the stored value and writes the result, rereading and
3756
+ // retrying when another tab or device wrote in between. `change` returns null
3757
+ // when there's nothing to write. A read-only token (staff impersonating
3758
+ // someone) only reads, so nothing is written into the person's history.
3759
+ //
3760
+ // With `known`, what this product last synced, the write goes first,
3761
+ // conditioned on that version. Succeeding proves nobody wrote since, so the
3762
+ // read isn't needed; a 409 means someone did, and it rereads. Until this tab
3763
+ // has a token there's no telling whether it's read-only, so it reads first.
3764
+ //
3765
+ // Resolves to the value and version now stored, with whether the token was
3766
+ // read-only, or null when the service couldn't be reached.
3767
+ async function updateStoredValue(personId, key, change, known) {
3768
+ const token = cachedToken(personId);
3769
+ if (!known || known.version === undefined || !token || token.readOnly) {
3770
+ return readChangeWrite(personId, key, change);
3771
+ } else {
3772
+ const next = change(known.value);
3773
+ if (next === null) {
3774
+ return {
3775
+ readOnly: false,
3776
+ ...known
3777
+ };
3778
+ } else {
3779
+ const written = await write(personId, key, next, known.version);
3780
+ if (written === null || written === void 0 ? void 0 : written.response.ok) {
3781
+ const reply = await written.response.json();
3782
+ return {
3783
+ readOnly: false,
3784
+ value: next,
3785
+ version: versionFrom(reply)
3786
+ };
3787
+ } else if ((written === null || written === void 0 ? void 0 : written.response.status) === 409) {
3788
+ return readChangeWrite(personId, key, change);
3789
+ } else {
3790
+ return null;
3791
+ }
3792
+ }
3793
+ }
3794
+ }
4289
3795
 
4290
3796
  // Each product keeps its own copy in localStorage, and user-store-sync joins
4291
3797
  // the copies up across products and devices wherever the product can mint a
@@ -4319,15 +3825,52 @@ true;
4319
3825
  // Storage can be full or blocked; recents are disposable.
4320
3826
  }
4321
3827
  }
4322
- async function syncOnce(scope) {
3828
+ // The service's value as of this product's last sync, kept as stored so
3829
+ // entries this build doesn't recognize survive a write made without reading.
3830
+ function snapshotKey(scope) {
3831
+ return `${storageKey(scope)}.synced`;
3832
+ }
3833
+ function readSnapshot(scope) {
3834
+ var _a;
3835
+ try {
3836
+ const snapshot = JSON.parse((_a = localStorage.getItem(snapshotKey(scope))) !== null && _a !== void 0 ? _a : "null");
3837
+ if (isRecord(snapshot) && Array.isArray(snapshot.value) && typeof snapshot.version === "number") {
3838
+ return {
3839
+ value: snapshot.value,
3840
+ version: snapshot.version
3841
+ };
3842
+ } else {
3843
+ return undefined;
3844
+ }
3845
+ } catch {
3846
+ return undefined;
3847
+ }
3848
+ }
3849
+ function writeSnapshot(scope, {
3850
+ value,
3851
+ version
3852
+ }) {
3853
+ try {
3854
+ localStorage.setItem(snapshotKey(scope), JSON.stringify({
3855
+ value,
3856
+ version
3857
+ }));
3858
+ } catch {
3859
+ // Without it, the next write just reads first.
3860
+ }
3861
+ }
3862
+ // A sync for a new visit writes from the snapshot when there is one. Other
3863
+ // syncs are there to bring in visits from elsewhere, so they read.
3864
+ async function syncOnce(scope, forVisit) {
4323
3865
  try {
4324
3866
  const synced = await updateStoredValue(scope.personId, SYNC_KEY, stored => {
4325
3867
  const shared = entriesFrom(stored);
4326
3868
  const local = readRecentlyVisited(scope);
4327
3869
  return isSameList(mergeEntries(shared, local), shared) ? null : mergeStored(stored, local);
4328
- });
3870
+ }, forVisit ? readSnapshot(scope) : undefined);
4329
3871
  if (synced) {
4330
3872
  const shared = entriesFrom(synced.value);
3873
+ writeSnapshot(scope, synced);
4331
3874
  writeRecentlyVisited(scope, synced.readOnly ? shared : mergeEntries(shared, readRecentlyVisited(scope)));
4332
3875
  }
4333
3876
  } catch {
@@ -4339,7 +3882,10 @@ true;
4339
3882
  // One sync per list at a time. A visit recorded while one runs schedules a
4340
3883
  // single follow-up, so it still reaches the service; anything else asking
4341
3884
  // mid-sync just waits for the one running.
4342
- function sync(scope, followUp) {
3885
+ function sync(scope, {
3886
+ followUp,
3887
+ forVisit
3888
+ }) {
4343
3889
  const key = storageKey(scope);
4344
3890
  const running = syncing.get(key);
4345
3891
  if (isUserStoreSyncUnavailable()) {
@@ -4348,16 +3894,22 @@ true;
4348
3894
  if (followUp) syncAgain.add(key);
4349
3895
  return running;
4350
3896
  } else {
4351
- const run = syncOnce(scope).then(() => {
3897
+ const run = syncOnce(scope, forVisit).then(() => {
4352
3898
  syncing.delete(key);
4353
- return syncAgain.delete(key) ? sync(scope, false) : undefined;
3899
+ return syncAgain.delete(key) ? sync(scope, {
3900
+ followUp: false,
3901
+ forVisit: true
3902
+ }) : undefined;
4354
3903
  });
4355
3904
  syncing.set(key, run);
4356
3905
  return run;
4357
3906
  }
4358
3907
  }
4359
3908
  function syncRecentlyVisited(scope) {
4360
- return sync(scope, false);
3909
+ return sync(scope, {
3910
+ followUp: false,
3911
+ forVisit: false
3912
+ });
4361
3913
  }
4362
3914
  // Staff impersonating someone get a read-only token, and their visits stay out
4363
3915
  // of that person's list. Until the token is minted the visit is kept, and the
@@ -4367,7 +3919,10 @@ true;
4367
3919
  const entry = toEntry(visit, new Date());
4368
3920
  if (isEntry(entry) && !hasReadOnlyToken(scope.personId)) {
4369
3921
  writeRecentlyVisited(scope, addVisit(readRecentlyVisited(scope), entry));
4370
- sync(scope, true);
3922
+ sync(scope, {
3923
+ followUp: true,
3924
+ forVisit: true
3925
+ });
4371
3926
  }
4372
3927
  }
4373
3928
  function useRecentlyVisited({
@@ -4620,7 +4175,7 @@ true;
4620
4175
  };
4621
4176
  }
4622
4177
 
4623
- var styles$k = {"modal":"modal-NR3TO","visuallyHidden":"visuallyHidden-C28ju","panel":"panel-HlF7S"};
4178
+ var styles$l = {"modal":"modal-NR3TO","visuallyHidden":"visuallyHidden-C28ju","panel":"panel-HlF7S"};
4624
4179
 
4625
4180
  const FALLBACK_SLUGS = ["people", "services"];
4626
4181
  function defaultProduct(products, appName) {
@@ -4684,7 +4239,8 @@ true;
4684
4239
  }
4685
4240
  }
4686
4241
  // "Oct 25, 9–10:30am", in the organization's time zone like the rest
4687
- // of Planning Center.
4242
+ // of Planning Center. An event outside this year names its year
4243
+ // ("Nov 27, 2025, 9am"), so last year's event doesn't pass for this year's.
4688
4244
  function eventTime(startsAt, endsAt, {
4689
4245
  recurring,
4690
4246
  timeZone
@@ -4694,6 +4250,7 @@ true;
4694
4250
  } else {
4695
4251
  const time = datetimeFmt.datetime(startsAt, endsAt || null, {
4696
4252
  style: "abbreviated",
4253
+ year: yearIn(startsAt, timeZone) !== yearIn(new Date(), timeZone),
4697
4254
  ...(timeZone && {
4698
4255
  timeZone
4699
4256
  })
@@ -4701,6 +4258,12 @@ true;
4701
4258
  return recurring ? joinParts(time, "Repeating") : time;
4702
4259
  }
4703
4260
  }
4261
+ function yearIn(date, timeZone) {
4262
+ return new Intl.DateTimeFormat("en-US", {
4263
+ timeZone,
4264
+ year: "numeric"
4265
+ }).format(new Date(date));
4266
+ }
4704
4267
  // Unlike search results, recents come from every product, so each one names
4705
4268
  // its type. The row's product icon says which product it came from.
4706
4269
  function describeVisit(visit, timeZone) {
@@ -4782,7 +4345,7 @@ true;
4782
4345
  }, action.label))))));
4783
4346
  }
4784
4347
 
4785
- var styles$j = {"container":"container-YDdM1","hint":"hint-017Rd","keycap":"keycap-ENJM2","labels":"labels-GHPqL","copied":"copied-DUFa1"};
4348
+ var styles$k = {"container":"container-YDdM1","hint":"hint-017Rd","keycap":"keycap-ENJM2","labels":"labels-GHPqL","copied":"copied-DUFa1"};
4786
4349
 
4787
4350
  const SYMBOLS = {
4788
4351
  command: {
@@ -4804,7 +4367,7 @@ true;
4804
4367
  };
4805
4368
  function Keycap(props) {
4806
4369
  return /*#__PURE__*/React.createElement("kbd", {
4807
- className: styles$j.keycap
4370
+ className: styles$k.keycap
4808
4371
  }, "symbol" in props ? (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("svg", {
4809
4372
  "aria-hidden": true,
4810
4373
  fill: "none",
@@ -4816,7 +4379,7 @@ true;
4816
4379
  d: d,
4817
4380
  key: d
4818
4381
  })))), /*#__PURE__*/React.createElement("span", {
4819
- className: styles$k.visuallyHidden
4382
+ className: styles$l.visuallyHidden
4820
4383
  }, SYMBOLS[props.symbol].label))) : props.label);
4821
4384
  }
4822
4385
  function CommandKey() {
@@ -4844,10 +4407,10 @@ true;
4844
4407
  }) {
4845
4408
  return /*#__PURE__*/React.createElement("ul", {
4846
4409
  "aria-label": "Keyboard shortcuts",
4847
- className: styles$j.container,
4410
+ className: styles$k.container,
4848
4411
  "data-platform": isMac() ? "mac" : "pc"
4849
4412
  }, /*#__PURE__*/React.createElement("li", {
4850
- className: styles$j.hint
4413
+ className: styles$k.hint
4851
4414
  }, /*#__PURE__*/React.createElement(tapestry.Flex, {
4852
4415
  gap: 0.5
4853
4416
  }, select.modifierKey, /*#__PURE__*/React.createElement(Keycap, {
@@ -4855,11 +4418,11 @@ true;
4855
4418
  }), /*#__PURE__*/React.createElement(Keycap, {
4856
4419
  symbol: "down"
4857
4420
  })), select.label), /*#__PURE__*/React.createElement("li", {
4858
- className: styles$j.hint
4421
+ className: styles$k.hint
4859
4422
  }, /*#__PURE__*/React.createElement(tapestry.Flex, {
4860
4423
  gap: 0.5
4861
4424
  }, /*#__PURE__*/React.createElement(CommandKey, null), /*#__PURE__*/React.createElement(EnterKey, null)), openInNewTab.label), /*#__PURE__*/React.createElement("li", {
4862
- className: classnames(styles$j.hint, copied && styles$j.copied),
4425
+ className: classnames(styles$k.hint, copied && styles$k.copied),
4863
4426
  style: {
4864
4427
  "--copied-active": `${COPIED_TIMING.active}ms`,
4865
4428
  "--copied-enter": `${COPIED_TIMING.enter}ms`,
@@ -4870,13 +4433,13 @@ true;
4870
4433
  }, /*#__PURE__*/React.createElement(CommandKey, null), /*#__PURE__*/React.createElement(Keycap, {
4871
4434
  label: copyLink.key.toUpperCase()
4872
4435
  })), /*#__PURE__*/React.createElement("span", {
4873
- className: styles$j.labels
4436
+ className: styles$k.labels
4874
4437
  }, /*#__PURE__*/React.createElement("span", {
4875
4438
  "aria-hidden": copied
4876
4439
  }, copyLink.label), /*#__PURE__*/React.createElement("span", {
4877
4440
  role: "status"
4878
4441
  }, copied && "Copied!"))), /*#__PURE__*/React.createElement("li", {
4879
- className: styles$j.hint
4442
+ className: styles$k.hint
4880
4443
  }, /*#__PURE__*/React.createElement(tapestry.Flex, {
4881
4444
  gap: 0.5
4882
4445
  }, /*#__PURE__*/React.createElement(CommandKey, null), /*#__PURE__*/React.createElement(Keycap, {
@@ -4884,7 +4447,7 @@ true;
4884
4447
  })), openSearch.label));
4885
4448
  }
4886
4449
 
4887
- var styles$i = {"icon":"icon-XKLvN","squircle":"squircle-JCHr6"};
4450
+ var styles$j = {"icon":"icon-XKLvN","squircle":"squircle-JCHr6"};
4888
4451
 
4889
4452
  const PRODUCTS = {
4890
4453
  accounts: {
@@ -4953,13 +4516,13 @@ true;
4953
4516
  const mask = maskFor(path);
4954
4517
  return /*#__PURE__*/React.createElement("span", {
4955
4518
  "aria-hidden": true,
4956
- className: styles$i.icon,
4519
+ className: styles$j.icon,
4957
4520
  style: {
4958
4521
  height: size,
4959
4522
  width: size
4960
4523
  }
4961
4524
  }, /*#__PURE__*/React.createElement("span", {
4962
- className: styles$i.squircle,
4525
+ className: styles$j.squircle,
4963
4526
  style: {
4964
4527
  WebkitMaskImage: mask,
4965
4528
  background: `var(${gradient})`,
@@ -4968,7 +4531,7 @@ true;
4968
4531
  }));
4969
4532
  }
4970
4533
 
4971
- var styles$h = {"picker":"picker-iuzzj","option":"option--7LXg"};
4534
+ var styles$i = {"picker":"picker-iuzzj","option":"option--7LXg"};
4972
4535
 
4973
4536
  // Phones have no room for a tab per product, so they pick from a dropdown.
4974
4537
  // Complex mode renders each option's logomark, in the list and the trigger.
@@ -4983,7 +4546,7 @@ true;
4983
4546
  slug
4984
4547
  }) => ({
4985
4548
  label: (/*#__PURE__*/React.createElement("span", {
4986
- className: styles$h.option
4549
+ className: styles$i.option
4987
4550
  }, /*#__PURE__*/React.createElement(ProductIcon, {
4988
4551
  slug: slug
4989
4552
  }), appName)),
@@ -4991,7 +4554,7 @@ true;
4991
4554
  value: slug
4992
4555
  }));
4993
4556
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
4994
- className: styles$h.picker
4557
+ className: styles$i.picker
4995
4558
  }, /*#__PURE__*/React.createElement(tapestry.Select, {
4996
4559
  "aria-label": "Product",
4997
4560
  complex: true,
@@ -4999,7 +4562,7 @@ true;
4999
4562
  options: options,
5000
4563
  value: selected.slug
5001
4564
  })), /*#__PURE__*/React.createElement("div", {
5002
- className: styles$k.panel
4565
+ className: styles$l.panel
5003
4566
  }, children));
5004
4567
  }
5005
4568
 
@@ -5050,7 +4613,7 @@ true;
5050
4613
  };
5051
4614
  }
5052
4615
 
5053
- var styles$g = {"tablist":"tablist-7ASvc","tab":"tab-dz8ki"};
4616
+ var styles$h = {"tablist":"tablist-7ASvc","tab":"tab-dz8ki"};
5054
4617
 
5055
4618
  // With this many tabs or more, only the selected tab shows its name, so they
5056
4619
  // all fit. Fewer always fit with their names.
@@ -5081,7 +4644,7 @@ true;
5081
4644
  };
5082
4645
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
5083
4646
  "aria-label": "Search in",
5084
- className: styles$g.tablist,
4647
+ className: styles$h.tablist,
5085
4648
  onKeyDown: handleKeyDown,
5086
4649
  role: "tablist"
5087
4650
  }, products.map(product => (/*#__PURE__*/React.createElement(Tab, {
@@ -5101,10 +4664,10 @@ true;
5101
4664
  }, /*#__PURE__*/React.createElement(ProductIcon, {
5102
4665
  slug: product.slug
5103
4666
  }), showAllNames || product === selected ? product.appName : (/*#__PURE__*/React.createElement("span", {
5104
- className: styles$k.visuallyHidden
4667
+ className: styles$l.visuallyHidden
5105
4668
  }, product.appName)))))), /*#__PURE__*/React.createElement("div", {
5106
4669
  "aria-labelledby": tabId(selected.slug),
5107
- className: styles$k.panel,
4670
+ className: styles$l.panel,
5108
4671
  id: `${id}-panel`,
5109
4672
  role: "tabpanel"
5110
4673
  }, children));
@@ -5117,7 +4680,7 @@ true;
5117
4680
  focusProps
5118
4681
  } = useKeyboardFocus();
5119
4682
  return /*#__PURE__*/React.createElement("button", {
5120
- className: styles$g.tab,
4683
+ className: styles$h.tab,
5121
4684
  ref: ref,
5122
4685
  role: "tab",
5123
4686
  type: "button",
@@ -5461,7 +5024,7 @@ true;
5461
5024
  }))));
5462
5025
  }
5463
5026
 
5464
- var styles$f = {"blank_state":"blank_state-kX-H1","image":"image-R3D6r"};
5027
+ var styles$g = {"blank_state":"blank_state-kX-H1","image":"image-R3D6r"};
5465
5028
 
5466
5029
  function BlankState$1({
5467
5030
  action,
@@ -5472,12 +5035,12 @@ true;
5472
5035
  }) {
5473
5036
  return /*#__PURE__*/React.createElement(tapestry.Flex, {
5474
5037
  role: role,
5475
- className: styles$f.blank_state,
5038
+ className: styles$g.blank_state,
5476
5039
  direction: "column",
5477
5040
  align: "center",
5478
5041
  gap: 3
5479
5042
  }, /*#__PURE__*/React.createElement(tapestry.Flex, {
5480
- className: styles$f.image
5043
+ className: styles$g.image
5481
5044
  }, image), /*#__PURE__*/React.createElement(tapestry.Flex, {
5482
5045
  direction: "column",
5483
5046
  align: "center",
@@ -5503,7 +5066,7 @@ true;
5503
5066
 
5504
5067
  const resultId = (listboxId, index) => `${listboxId}-result-${index}`;
5505
5068
 
5506
- 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"};
5069
+ 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"};
5507
5070
 
5508
5071
  function SearchResult({
5509
5072
  category,
@@ -5570,7 +5133,7 @@ true;
5570
5133
  "aria-describedby": [subdued && `${id}-subdued`, describedBy, subtitle && `${id}-subtitle`].filter(Boolean).join(" ") || undefined,
5571
5134
  "aria-labelledby": title ? `${id}-title` : undefined,
5572
5135
  "aria-selected": highlighted,
5573
- className: classnames(styles$e.result, subdued && styles$e.subdued),
5136
+ className: classnames(styles$f.result, subdued && styles$f.subdued),
5574
5137
  "data-turbo": "false",
5575
5138
  href: url,
5576
5139
  id: id,
@@ -5584,13 +5147,13 @@ true;
5584
5147
  imageUrl: imageUrl,
5585
5148
  product: product
5586
5149
  }), /*#__PURE__*/React.createElement("span", {
5587
- className: styles$e.title,
5150
+ className: styles$f.title,
5588
5151
  id: `${id}-title`
5589
5152
  }, title), /*#__PURE__*/React.createElement("span", {
5590
- className: styles$e.subtitle,
5153
+ className: styles$f.subtitle,
5591
5154
  id: `${id}-subtitle`
5592
5155
  }, subtitle), subdued && (/*#__PURE__*/React.createElement("span", {
5593
- className: styles$k.visuallyHidden,
5156
+ className: styles$l.visuallyHidden,
5594
5157
  id: `${id}-subdued`
5595
5158
  }, "Inactive")))
5596
5159
  );
@@ -5608,18 +5171,18 @@ true;
5608
5171
  })) : null;
5609
5172
  return /*#__PURE__*/React.createElement("span", {
5610
5173
  "aria-hidden": true,
5611
- className: styles$e.image
5174
+ className: styles$f.image
5612
5175
  }, imageUrl ? (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("img", {
5613
5176
  alt: "",
5614
- className: category === "profile" ? styles$e.avatar : styles$e.photo,
5177
+ className: category === "profile" ? styles$f.avatar : styles$f.photo,
5615
5178
  loading: "lazy",
5616
5179
  src: imageUrl
5617
5180
  }), /*#__PURE__*/React.createElement("span", {
5618
- className: styles$e.badge
5181
+ className: styles$f.badge
5619
5182
  }, icon(16)))) : icon("100%"));
5620
5183
  }
5621
5184
 
5622
- var styles$d = {"heading":"heading-LioUF","group":"group-cKChg"};
5185
+ var styles$e = {"heading":"heading-LioUF","group":"group-cKChg"};
5623
5186
 
5624
5187
  // Sections with a heading render as labelled groups; ones without render
5625
5188
  // their items straight into the listbox. Indexes run across every section.
@@ -5672,11 +5235,11 @@ true;
5672
5235
  const headingId = `${id}-group-${sectionIndex}`;
5673
5236
  return /*#__PURE__*/React.createElement("div", {
5674
5237
  "aria-labelledby": headingId,
5675
- className: styles$d.group,
5238
+ className: styles$e.group,
5676
5239
  key: section.key,
5677
5240
  role: "group"
5678
5241
  }, /*#__PURE__*/React.createElement("div", {
5679
- className: styles$d.heading,
5242
+ className: styles$e.heading,
5680
5243
  id: headingId
5681
5244
  }, section.heading), section.items.map((item, itemIndex) => renderItem(item, itemIndex, headingId)));
5682
5245
  }));
@@ -5699,7 +5262,7 @@ true;
5699
5262
  });
5700
5263
  } else {
5701
5264
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
5702
- className: styles$d.heading,
5265
+ className: styles$e.heading,
5703
5266
  id: headingId
5704
5267
  }, "Recently visited"), /*#__PURE__*/React.createElement(ResultListbox, {
5705
5268
  labelledBy: headingId,
@@ -5715,7 +5278,7 @@ true;
5715
5278
  }
5716
5279
  }
5717
5280
 
5718
- var styles$c = {"row":"row-5P7UQ","header":"header-sXEyG","closeButton":"closeButton-rPJJV","input":"input-YQkTC","clearButton":"clearButton-9Yh9w"};
5281
+ var styles$d = {"row":"row-5P7UQ","header":"header-sXEyG","closeButton":"closeButton-rPJJV","input":"input-YQkTC","clearButton":"clearButton-9Yh9w"};
5719
5282
 
5720
5283
  // A combobox: focus stays here while aria-activedescendant points screen
5721
5284
  // readers at the highlighted result in the listbox it controls.
@@ -5752,9 +5315,9 @@ true;
5752
5315
  }
5753
5316
  });
5754
5317
  return /*#__PURE__*/React.createElement("div", {
5755
- className: styles$c.row
5318
+ className: styles$d.row
5756
5319
  }, /*#__PURE__*/React.createElement("label", {
5757
- className: styles$c.header,
5320
+ className: styles$d.header,
5758
5321
  id: "topbar_product_search_label"
5759
5322
  }, /*#__PURE__*/React.createElement(Icon, {
5760
5323
  name: "general.search",
@@ -5767,7 +5330,7 @@ true;
5767
5330
  "aria-expanded": expanded,
5768
5331
  "aria-label": "Search",
5769
5332
  autoFocus: true,
5770
- className: styles$c.input,
5333
+ className: styles$d.input,
5771
5334
  id: "product_search",
5772
5335
  onChange: event => onChange(event.target.value),
5773
5336
  onKeyDown: onKeyDown,
@@ -5779,7 +5342,7 @@ true;
5779
5342
  ...focusProps
5780
5343
  }), !onClose && value !== "" && (/*#__PURE__*/React.createElement("button", {
5781
5344
  "aria-label": "Clear search",
5782
- className: styles$c.clearButton,
5345
+ className: styles$d.clearButton,
5783
5346
  onClick: () => {
5784
5347
  var _a;
5785
5348
  onChange("");
@@ -5798,7 +5361,7 @@ true;
5798
5361
  d: "M6.5 6.5l7 7m0 -7l-7 7"
5799
5362
  }))))), onClose && (/*#__PURE__*/React.createElement(tapestry.IconButton, {
5800
5363
  "aria-label": "Close search",
5801
- className: styles$c.closeButton,
5364
+ className: styles$d.closeButton,
5802
5365
  icon: /*#__PURE__*/React.createElement(Icon, {
5803
5366
  name: "general.x",
5804
5367
  theme: "--t-icon-color-dim"
@@ -6145,7 +5708,7 @@ true;
6145
5708
  })));
6146
5709
  }
6147
5710
 
6148
- var styles$b = {"spinner":"spinner-b5tlz"};
5711
+ var styles$c = {"spinner":"spinner-b5tlz"};
6149
5712
 
6150
5713
  function LoadingSpinner({
6151
5714
  size = 48,
@@ -6153,7 +5716,7 @@ true;
6153
5716
  }) {
6154
5717
  return /*#__PURE__*/React.createElement("span", {
6155
5718
  "aria-hidden": "true",
6156
- className: styles$b.spinner,
5719
+ className: styles$c.spinner,
6157
5720
  style: {
6158
5721
  "--spinner-size": `${size}px`,
6159
5722
  "--spinner-track-width": `${trackWidth}px`
@@ -6335,10 +5898,10 @@ true;
6335
5898
  selected: product
6336
5899
  }, results)), /*#__PURE__*/React.createElement("div", {
6337
5900
  "aria-live": "polite",
6338
- className: styles$k.visuallyHidden
5901
+ className: styles$l.visuallyHidden
6339
5902
  }, announceHighlight ? (_b = navigation.highlighted) === null || _b === void 0 ? void 0 : _b.title : null), /*#__PURE__*/React.createElement("div", {
6340
5903
  "aria-live": "polite",
6341
- className: styles$k.visuallyHidden,
5904
+ className: styles$l.visuallyHidden,
6342
5905
  "data-testid": "result-count"
6343
5906
  }, resultCount), mobile ? null : /*#__PURE__*/React.createElement(KeyboardHints, {
6344
5907
  copied: navigation.copied
@@ -6555,7 +6118,7 @@ true;
6555
6118
  onClick: () => setOpen(true)
6556
6119
  }), /*#__PURE__*/React.createElement(tapestry.Modal, {
6557
6120
  "aria-label": "Search",
6558
- className: styles$k.modal,
6121
+ className: styles$l.modal,
6559
6122
  dismissible: true,
6560
6123
  id: "product_search_modal",
6561
6124
  onClose: () => setOpen(false),
@@ -6615,7 +6178,90 @@ true;
6615
6178
  `), children);
6616
6179
  }
6617
6180
 
6618
- var styles$a = {"route":"route--8BWe","is-active":"is-active-FsU9Y","apps-routes-separator":"apps-routes-separator-Nlm-N"};
6181
+ var styles$b = {"route":"route--8BWe","is-active":"is-active-FsU9Y","apps-routes-separator":"apps-routes-separator-Nlm-N"};
6182
+
6183
+ const HoverableListItem = ({
6184
+ active = false,
6185
+ component: C = "span",
6186
+ style = null,
6187
+ ...nativeProps
6188
+ }) => {
6189
+ const [entered, setEntered] = React.useState(false);
6190
+ const getBackgroundColor = () => active ? "var(--t-fill-color-neutral-060)" : entered ? "var(--t-fill-color-neutral-080)" : "transparent";
6191
+ return /*#__PURE__*/React.createElement(C, {
6192
+ onMouseEnter: () => setEntered(true),
6193
+ onMouseLeave: () => setEntered(false),
6194
+ style: {
6195
+ ...style,
6196
+ backgroundColor: getBackgroundColor()
6197
+ },
6198
+ ...nativeProps
6199
+ });
6200
+ };
6201
+
6202
+ class Outsider extends React.Component {
6203
+ constructor(props) {
6204
+ super(props);
6205
+ this.handleOutsideClick = this.handleOutsideClick.bind(this);
6206
+ }
6207
+ componentWillUnmount() {
6208
+ document.removeEventListener("click", this.handleOutsideClick, true);
6209
+ }
6210
+ handleOutsideClick(e) {
6211
+ if (this.container.contains(e.target) || e.target.closest('[data-toolbar-link="true"]')) {
6212
+ return;
6213
+ } else {
6214
+ e.stopPropagation();
6215
+ e.preventDefault();
6216
+ return this.props.onOutsideClick();
6217
+ }
6218
+ }
6219
+ render() {
6220
+ const {
6221
+ cleanup,
6222
+ onOutsideClick,
6223
+ visible,
6224
+ ...props
6225
+ } = this.props;
6226
+ if (cleanup) {
6227
+ document.removeEventListener("click", this.handleOutsideClick, true);
6228
+ } else {
6229
+ document.addEventListener("click", this.handleOutsideClick, true);
6230
+ }
6231
+ return /*#__PURE__*/React.createElement("div", {
6232
+ ref: c => this.container = c,
6233
+ ...props
6234
+ });
6235
+ }
6236
+ }
6237
+
6238
+ var styles$a = {"popup-root":"popup-root-SeL5u","popup":"popup-nQXYW","is-visible":"is-visible-3DAUP"};
6239
+
6240
+ const Popup = ({
6241
+ className,
6242
+ component: C = "div",
6243
+ isVisible,
6244
+ ...nativeProps
6245
+ }) => (/*#__PURE__*/React.createElement(C, {
6246
+ className: classnames(styles$a.popup, {
6247
+ [styles$a["is-visible"]]: isVisible
6248
+ }, className),
6249
+ ...nativeProps
6250
+ }));
6251
+
6252
+ const PopupRoot = ({
6253
+ ...nativeProps
6254
+ }) => (/*#__PURE__*/React.createElement("div", {
6255
+ className: styles$a["popup-root"],
6256
+ ...nativeProps
6257
+ }));
6258
+
6259
+ const fontFamily = {
6260
+ fontFamily: `inherit`
6261
+ };
6262
+ const IEFlex1 = {
6263
+ flex: "1 1 auto"
6264
+ };
6619
6265
 
6620
6266
  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"};
6621
6267
 
@@ -6815,7 +6461,7 @@ true;
6815
6461
  toolbarDrawerOpen
6816
6462
  } = useStore();
6817
6463
  const updateStore = useUpdateStore();
6818
- const useRedesignedSwitcher = useFeature(FEATURE_FLAGS.APP_SWITCHER_REDESIGN, props.features);
6464
+ const churchCenterEnabled = useFeature(FEATURE_FLAGS.CHURCH_CENTER_PRODUCT, props.features);
6819
6465
  const productSearchEnabled = useFeature(FEATURE_FLAGS.PRODUCT_SEARCH, props.features);
6820
6466
  useRecordRecentlyVisited({
6821
6467
  enabled: productSearchEnabled,
@@ -6843,20 +6489,15 @@ true;
6843
6489
  paddingRight: "24px",
6844
6490
  ...props.style
6845
6491
  }
6846
- }, useRedesignedSwitcher ? (/*#__PURE__*/React.createElement(AppsMenu, {
6847
- env: props.env,
6848
- appName: props.appName,
6849
- apps: appsMenuFormatter(props.apps),
6850
- colors: props.colors,
6851
- requestAppsFetch: props.requestAppsFetch
6852
- })) : (/*#__PURE__*/React.createElement(LegacyAppsSwitcher$1, {
6492
+ }, /*#__PURE__*/React.createElement(AppsMenu, {
6853
6493
  env: props.env,
6854
6494
  appName: props.appName,
6855
6495
  apps: appsMenuFormatter(props.apps),
6496
+ churchCenterEnabled: churchCenterEnabled,
6856
6497
  colors: props.colors,
6857
6498
  requestAppsFetch: props.requestAppsFetch
6858
- })), /*#__PURE__*/React.createElement("div", {
6859
- className: styles$a["apps-routes-separator"]
6499
+ }), /*#__PURE__*/React.createElement("div", {
6500
+ className: styles$b["apps-routes-separator"]
6860
6501
  }), routesVisible && props.routes, /*#__PURE__*/React.createElement("div", {
6861
6502
  style: {
6862
6503
  margin: "auto"
@@ -6898,7 +6539,7 @@ true;
6898
6539
  ...nativeProps
6899
6540
  }) => {
6900
6541
  return /*#__PURE__*/React.createElement("a", {
6901
- className: classnames(styles$a["route"], className, active && styles$a["is-active"]),
6542
+ className: classnames(styles$b["route"], className, active && styles$b["is-active"]),
6902
6543
  ...nativeProps
6903
6544
  });
6904
6545
  };
@@ -6922,11 +6563,78 @@ true;
6922
6563
  });
6923
6564
  }
6924
6565
 
6566
+ // Currently scoped to links and buttons since the app switcher only contains
6567
+ // those elements. If this hook is reused in containers with form elements,
6568
+ // expand to include: input, select, textarea, [tabindex]:not([tabindex="-1"])
6569
+ const FOCUSABLE_SELECTOR = "a[href], button:not([disabled])";
6570
+ /**
6571
+ * Manages focus trapping within a container element.
6572
+ *
6573
+ * When `active` becomes true:
6574
+ * - Stores the currently focused element
6575
+ * - Moves focus to the first focusable child
6576
+ *
6577
+ * When `active` becomes false:
6578
+ * - Returns focus to the previously focused element
6579
+ *
6580
+ * While active:
6581
+ * - Tab/Shift+Tab wraps within the container
6582
+ * - Escape calls `onClose`
6583
+ *
6584
+ * Note: focus trapping uses scoped querySelector on the container ref,
6585
+ * which is the same approach used by libraries like focus-trap-react.
6586
+ */
6587
+ function useFocusTrap({
6588
+ active,
6589
+ onClose
6590
+ }) {
6591
+ const containerRef = React.useRef(null);
6592
+ const previousFocusRef = React.useRef(null);
6593
+ React.useLayoutEffect(() => {
6594
+ var _a, _b, _c;
6595
+ if (active) {
6596
+ previousFocusRef.current = document.activeElement;
6597
+ (_b = (_a = containerRef.current) === null || _a === void 0 ? void 0 : _a.querySelector(FOCUSABLE_SELECTOR)) === null || _b === void 0 ? void 0 : _b.focus();
6598
+ } else {
6599
+ (_c = previousFocusRef.current) === null || _c === void 0 ? void 0 : _c.focus();
6600
+ previousFocusRef.current = null;
6601
+ }
6602
+ }, [active]);
6603
+ const handleKeyDown = React.useCallback(e => {
6604
+ var _a;
6605
+ if (!active) {
6606
+ return;
6607
+ }
6608
+ if (e.key === "Escape") {
6609
+ onClose();
6610
+ return;
6611
+ }
6612
+ if (e.key === "Tab") {
6613
+ const focusable = (_a = containerRef.current) === null || _a === void 0 ? void 0 : _a.querySelectorAll(FOCUSABLE_SELECTOR);
6614
+ if (!focusable || focusable.length === 0) return;
6615
+ const first = focusable[0];
6616
+ const last = focusable[focusable.length - 1];
6617
+ if (e.shiftKey && document.activeElement === first) {
6618
+ e.preventDefault();
6619
+ last.focus();
6620
+ } else if (!e.shiftKey && document.activeElement === last) {
6621
+ e.preventDefault();
6622
+ first.focus();
6623
+ }
6624
+ }
6625
+ }, [active, onClose]);
6626
+ return {
6627
+ containerRef,
6628
+ handleKeyDown
6629
+ };
6630
+ }
6631
+
6925
6632
  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"};
6926
6633
 
6927
6634
  const AppsSwitcher = ({
6928
6635
  appName,
6929
6636
  apps,
6637
+ churchCenterEnabled = false,
6930
6638
  colors,
6931
6639
  env,
6932
6640
  onTriggerClick,
@@ -6935,9 +6643,11 @@ true;
6935
6643
  }) => {
6936
6644
  const {
6937
6645
  accountsProduct,
6646
+ hasChurchCenter,
6938
6647
  homeProduct,
6939
6648
  restProducts
6940
6649
  } = groupApps(apps);
6650
+ const showChurchCenter = churchCenterEnabled && hasChurchCenter;
6941
6651
  const {
6942
6652
  containerRef,
6943
6653
  handleKeyDown
@@ -7011,174 +6721,18 @@ true;
7011
6721
  }, /*#__PURE__*/React.createElement(AppRow, {
7012
6722
  appName: "Accounts",
7013
6723
  colors: colors
6724
+ })))), showChurchCenter && (/*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("a", {
6725
+ "aria-current": appName === "Church Center" ? "page" : undefined,
6726
+ className: classnames(styles$7.link, styles$7["accounts-link"]),
6727
+ "data-pendo": "app-switcher--change-app--ChurchCenter",
6728
+ "data-turbolinks": false,
6729
+ href: `${pcoUrl$1(env)("publishing")}/dashboard`
6730
+ }, /*#__PURE__*/React.createElement(AppRow, {
6731
+ appName: "Church Center"
7014
6732
  }))))))), document.body));
7015
6733
  };
7016
6734
 
7017
- class ClientStorage extends React.Component {
7018
- update(value) {
7019
- window[this.props.method].setItem(this.props.item, JSON.stringify(value));
7020
- return this.forceUpdate();
7021
- }
7022
- render() {
7023
- 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)));
7024
- }
7025
- }
7026
- ClientStorage.defaultProps = {
7027
- method: "localStorage"
7028
- };
7029
-
7030
- 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"};
7031
-
7032
- function AccountSettingsLink({
7033
- env
7034
- }) {
7035
- const accountsName = "accounts";
7036
- return /*#__PURE__*/React.createElement("a", {
7037
- className: classnames(styles$6["appmenu-list-a"], styles$6["appmenu-list-a--bottom"]),
7038
- "data-pendo": `app-switcher--change-app--${accountsName}`,
7039
- "data-turbolinks": false,
7040
- href: pcoUrl$1(env)(accountsName) + getAppsSwitchProductPath(accountsName)
7041
- }, /*#__PURE__*/React.createElement("svg", {
7042
- "aria-hidden": "true",
7043
- height: 24,
7044
- viewBox: "0 0 20 20",
7045
- width: 24,
7046
- xmlns: "http://www.w3.org/2000/svg"
7047
- }, /*#__PURE__*/React.createElement(Accounts$1, {
7048
- color: "var(--t-icon-color-secondary)",
7049
- key: "key2"
7050
- })), /*#__PURE__*/React.createElement("span", null, "Account settings"));
7051
- }
7052
-
7053
- const CloseMenuButton = ({
7054
- color = "var(--t-icon-color-dim)",
7055
- size = 24,
7056
- style = {}
7057
- }) => (/*#__PURE__*/React.createElement("button", {
7058
- "aria-label": "Close menu",
7059
- type: "button",
7060
- className: styles$6["appmenu-close-button"],
7061
- style: style
7062
- }, /*#__PURE__*/React.createElement(X, {
7063
- fill: color,
7064
- style: {
7065
- height: `${size}px`,
7066
- width: `${size}px`
7067
- },
7068
- "aria-hidden": "true"
7069
- })));
7070
-
7071
- const UserMenuAppLockup = ({
7072
- appName: originalAppName
7073
- }) => {
7074
- const appName = originalAppName.replace(/[\s-]/, "");
7075
- return /*#__PURE__*/React.createElement("div", {
7076
- style: {
7077
- alignItems: "center",
7078
- display: "flex"
7079
- }
7080
- }, /*#__PURE__*/React.createElement("div", {
7081
- style: {
7082
- marginRight: "6px"
7083
- }
7084
- }, /*#__PURE__*/React.createElement(ColorAppIcon, {
7085
- appName: appName,
7086
- size: 20
7087
- })), /*#__PURE__*/React.createElement(MonoAppName, {
7088
- appName: appName,
7089
- size: 18
7090
- }));
7091
- };
7092
- const LegacyAppsSwitcher = ({
7093
- appName,
7094
- apps,
7095
- env,
7096
- onTriggerClick,
7097
- toggle,
7098
- visible
7099
- }) => {
7100
- const accountsProduct = apps.find(({
7101
- name
7102
- }) => name === "Accounts");
7103
- const homeProduct = apps.find(({
7104
- name
7105
- }) => name === "Home");
7106
- const restProducts = [...apps].filter(({
7107
- name
7108
- }) => name !== "Home" && name !== "Accounts");
7109
- const {
7110
- containerRef: appMenuRef,
7111
- handleKeyDown: handleAppMenuKeyDown
7112
- } = useFocusTrap({
7113
- active: visible,
7114
- onClose: toggle
7115
- });
7116
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("button", {
7117
- "aria-expanded": visible,
7118
- "aria-haspopup": "true",
7119
- "aria-label": `App switcher: ${appName}`,
7120
- type: "button",
7121
- className: styles$6["appmenu-button"],
7122
- onClick: onTriggerClick
7123
- }, /*#__PURE__*/React.createElement(ColorAppIcon, {
7124
- appName: appName.replace(/[\s-]/, "")
7125
- })), /*#__PURE__*/React.createElement(ClientStorage, {
7126
- item: "Topbar:Small:Menus:Products:visibility",
7127
- render: () => (/*#__PURE__*/React.createElement("div", {
7128
- ref: appMenuRef,
7129
- className: styles$6["appmenu-layer"],
7130
- style: {
7131
- ...(visible && {
7132
- display: "block"
7133
- })
7134
- },
7135
- onClick: toggle,
7136
- onKeyDown: handleAppMenuKeyDown
7137
- }, /*#__PURE__*/React.createElement(CloseMenuButton, null), /*#__PURE__*/React.createElement("div", {
7138
- onClick: e => {
7139
- const {
7140
- forcePropagation
7141
- } = e;
7142
- if (!forcePropagation) {
7143
- e.stopPropagation();
7144
- }
7145
- },
7146
- className: styles$6["appmenu-container"]
7147
- }, /*#__PURE__*/React.createElement("a", {
7148
- "aria-current": appName === (homeProduct === null || homeProduct === void 0 ? void 0 : homeProduct.name) ? "page" : undefined,
7149
- "aria-label": homeProduct ? homeProduct.name : appName,
7150
- "data-pendo": `app-switcher--change-app--${homeProduct === null || homeProduct === void 0 ? void 0 : homeProduct.name}`,
7151
- "data-turbolinks": false,
7152
- className: classnames(styles$6["appmenu-list-a"], styles$6["appmenu-list-a--top"]),
7153
- href: homeProduct ? pcoUrl$1(env)("accounts") + getAppsSwitchProductPath(homeProduct === null || homeProduct === void 0 ? void 0 : homeProduct.name) : undefined
7154
- }, /*#__PURE__*/React.createElement(UserMenuAppLockup, {
7155
- appName: homeProduct ? homeProduct.name : appName
7156
- })), /*#__PURE__*/React.createElement("div", {
7157
- className: styles$6["appmenu-scroll"]
7158
- }, /*#__PURE__*/React.createElement("ul", {
7159
- "data-pendo": "app-switcher",
7160
- className: styles$6["appmenu-list"]
7161
- }, appsMenuFormatter(restProducts).map(({
7162
- name
7163
- }) => (/*#__PURE__*/React.createElement("li", {
7164
- key: name,
7165
- className: styles$6["appmenu-list-li"]
7166
- }, /*#__PURE__*/React.createElement("a", {
7167
- "aria-current": name === appName ? "page" : undefined,
7168
- "aria-label": name,
7169
- "data-pendo": `app-switcher--change-app--${name}`,
7170
- "data-turbolinks": false,
7171
- className: styles$6["appmenu-list-a"],
7172
- href: pcoUrl$1(env)("accounts") + getAppsSwitchProductPath(name)
7173
- }, /*#__PURE__*/React.createElement(UserMenuAppLockup, {
7174
- appName: name
7175
- }))))), accountsProduct && (/*#__PURE__*/React.createElement("li", {
7176
- className: styles$6["appmenu-list-li"]
7177
- }, /*#__PURE__*/React.createElement(AccountSettingsLink, {
7178
- env: env
7179
- }))))))))
7180
- }));
7181
- };
6735
+ 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"};
7182
6736
 
7183
6737
  const SmallTopbar = ({
7184
6738
  currentRouteComponent = props => (/*#__PURE__*/React.createElement("span", {
@@ -7190,7 +6744,7 @@ true;
7190
6744
  var _a, _b;
7191
6745
  const [routesMenuVisible, setRoutesMenuVisible] = React.useState(false);
7192
6746
  const [productSwitcherVisible, setProductSwitcherVisible] = React.useState(false);
7193
- const useRedesignedSwitcher = useFeature(FEATURE_FLAGS.APP_SWITCHER_REDESIGN, props.features);
6747
+ const churchCenterEnabled = useFeature(FEATURE_FLAGS.CHURCH_CENTER_PRODUCT, props.features);
7194
6748
  const productSearchEnabled = useFeature(FEATURE_FLAGS.PRODUCT_SEARCH, props.features);
7195
6749
  useRecordRecentlyVisited({
7196
6750
  enabled: productSearchEnabled,
@@ -7221,22 +6775,16 @@ true;
7221
6775
  style: {
7222
6776
  ...props.style
7223
6777
  }
7224
- }, useRedesignedSwitcher ? (/*#__PURE__*/React.createElement(AppsSwitcher, {
6778
+ }, /*#__PURE__*/React.createElement(AppsSwitcher, {
7225
6779
  appName: props.appName,
7226
6780
  apps: appsMenuFormatter(props.apps),
6781
+ churchCenterEnabled: churchCenterEnabled,
7227
6782
  colors: props.colors,
7228
6783
  env: props.env,
7229
6784
  onTriggerClick: openProductSwitcher,
7230
6785
  toggle: toggleProductSwitcher,
7231
6786
  visible: productSwitcherVisible
7232
- })) : (/*#__PURE__*/React.createElement(LegacyAppsSwitcher, {
7233
- appName: props.appName,
7234
- apps: appsMenuFormatter(props.apps),
7235
- env: props.env,
7236
- onTriggerClick: openProductSwitcher,
7237
- toggle: toggleProductSwitcher,
7238
- visible: productSwitcherVisible
7239
- })), routesMenuVisible && (/*#__PURE__*/React.createElement("div", {
6787
+ }), routesMenuVisible && (/*#__PURE__*/React.createElement("div", {
7240
6788
  className: styles$6["routes"]
7241
6789
  }, props.routes)), /*#__PURE__*/React.createElement("button", {
7242
6790
  type: "button",
@@ -8224,6 +7772,348 @@ true;
8224
7772
  name: "DeveloperTools"
8225
7773
  };
8226
7774
 
7775
+ const DEFAULT_READY_TIMEOUT_MS = 8000;
7776
+ // The route rides in the fragment (`/topbar/helpdesk#email`), not the path, so
7777
+ // changing it is a same-document navigation that doesn't reload the iframe.
7778
+ function buildToolIframeSrc(origin, basePath, route, params = {}) {
7779
+ const [rawPath, queryPart] = route.replace(/^\/+/, "").split("?", 2);
7780
+ const safePath = rawPath.split("/").filter(segment => segment && segment !== "." && segment !== "..").join("/");
7781
+ const fragmentRoute = queryPart !== undefined ? `${safePath}?${queryPart}` : safePath;
7782
+ // Pages decode the fragment, and a `%` that doesn't start an escape (a
7783
+ // mangled link) makes that throw, so it's sent as `%25`.
7784
+ const fragment = fragmentRoute.replace(/%(?![0-9A-Fa-f]{2})/g, "%25");
7785
+ const url = new URL(basePath, origin);
7786
+ for (const [key, value] of Object.entries(params)) {
7787
+ if (value) url.searchParams.set(key, value);
7788
+ }
7789
+ // Always end in `#`, even for an empty route: going from `…#tasks/new` to a
7790
+ // URL with no fragment at all is a new document, which reloads the iframe.
7791
+ return `${url.toString()}#${fragment}`;
7792
+ }
7793
+ /**
7794
+ * An iframe for a toolbar tool served by another app. Shared by every tool
7795
+ * that has moved off add-ons: the page reports READY once it has painted,
7796
+ * NEW_ROUTE_RENDERED when its route changes, and anything else is handed to
7797
+ * `onMessage`. Messages from any other origin or window are ignored.
7798
+ */
7799
+ const ToolIframe = /*#__PURE__*/React.forwardRef(function ToolIframe({
7800
+ basePath,
7801
+ currentPath,
7802
+ isVisible = true,
7803
+ onChangePath,
7804
+ onMessage,
7805
+ origin,
7806
+ params,
7807
+ readyTimeoutMs = DEFAULT_READY_TIMEOUT_MS,
7808
+ title
7809
+ }, ref) {
7810
+ const iframeRef = React.useRef(null);
7811
+ // The iframe's `src` is set once. Changing it later would add a step to
7812
+ // the browser's Back history each time, so topbar's route changes move the
7813
+ // page with `location.replace` instead.
7814
+ const [initialPath] = React.useState(currentPath || "");
7815
+ // The route the page last reported. Topbar echoes it back as
7816
+ // `currentPath`, and the page is already there.
7817
+ const pageReportedPathRef = React.useRef(initialPath);
7818
+ // Hidden until the page paints, so its blank first frame doesn't flash
7819
+ // white against the drawer in dark mode.
7820
+ const [isReady, setIsReady] = React.useState(false);
7821
+ const hasReportedErrorRef = React.useRef(false);
7822
+ const readyTimeoutRef = React.useRef();
7823
+ const onMessageRef = React.useRef(onMessage);
7824
+ onMessageRef.current = onMessage;
7825
+ const onChangePathRef = React.useRef(onChangePath);
7826
+ onChangePathRef.current = onChangePath;
7827
+ // Query params are read once at load: changing them would reload the
7828
+ // page. Context that changes later goes over HOST_CONTEXT_CHANGED.
7829
+ const [initialParams] = React.useState(params);
7830
+ React.useEffect(function reportLoadErrorIfNeverReady() {
7831
+ const timeout = setTimeout(() => {
7832
+ var _a;
7833
+ if (hasReportedErrorRef.current) return;
7834
+ hasReportedErrorRef.current = true;
7835
+ (_a = onMessageRef.current) === null || _a === void 0 ? void 0 : _a.call(onMessageRef, {
7836
+ type: "IFRAME_LOAD_ERROR"
7837
+ });
7838
+ }, readyTimeoutMs);
7839
+ readyTimeoutRef.current = timeout;
7840
+ return () => clearTimeout(timeout);
7841
+ }, [readyTimeoutMs]);
7842
+ React.useEffect(function subscribeToGuestMessages() {
7843
+ function handleGuestMessage(e) {
7844
+ var _a, _b, _c, _d;
7845
+ if (e.origin !== origin) return;
7846
+ if (!e.source || !iframeRef.current) return;
7847
+ if (e.source !== iframeRef.current.contentWindow) return;
7848
+ if (typeof ((_a = e.data) === null || _a === void 0 ? void 0 : _a.type) !== "string") return;
7849
+ const message = e.data;
7850
+ if (message.type === "READY") {
7851
+ clearTimeout(readyTimeoutRef.current);
7852
+ setIsReady(true);
7853
+ }
7854
+ if (message.type === "NEW_ROUTE_RENDERED") {
7855
+ const reportedPath = String((_b = message.payload) !== null && _b !== void 0 ? _b : "");
7856
+ pageReportedPathRef.current = reportedPath;
7857
+ (_c = onChangePathRef.current) === null || _c === void 0 ? void 0 : _c.call(onChangePathRef, reportedPath);
7858
+ }
7859
+ (_d = onMessageRef.current) === null || _d === void 0 ? void 0 : _d.call(onMessageRef, message);
7860
+ }
7861
+ window.addEventListener("message", handleGuestMessage);
7862
+ return () => window.removeEventListener("message", handleGuestMessage);
7863
+ }, [origin]);
7864
+ React.useEffect(function followRouteChangesFromTopbar() {
7865
+ var _a, _b;
7866
+ const path = currentPath || "";
7867
+ if (path === pageReportedPathRef.current) return;
7868
+ pageReportedPathRef.current = path;
7869
+ (_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));
7870
+ }, [basePath, currentPath, initialParams, origin]);
7871
+ React.useImperativeHandle(ref, () => ({
7872
+ postMessage(message) {
7873
+ var _a, _b, _c;
7874
+ // Safari ignores focus() from inside a cross-origin iframe, so the
7875
+ // host focuses the iframe before the page focuses its own input.
7876
+ if (message.type === "PANE_VISIBLE") (_a = iframeRef.current) === null || _a === void 0 ? void 0 : _a.focus();
7877
+ (_c = (_b = iframeRef.current) === null || _b === void 0 ? void 0 : _b.contentWindow) === null || _c === void 0 ? void 0 : _c.postMessage(message, origin);
7878
+ }
7879
+ }), [origin]);
7880
+ return /*#__PURE__*/React.createElement("iframe", {
7881
+ ref: iframeRef,
7882
+ src: buildToolIframeSrc(origin, basePath, initialPath, initialParams),
7883
+ allow: "clipboard-write",
7884
+ style: {
7885
+ border: 0,
7886
+ display: isVisible ? undefined : "none",
7887
+ flex: 1,
7888
+ height: "100%",
7889
+ visibility: isReady ? undefined : "hidden",
7890
+ width: "100%"
7891
+ },
7892
+ title: title
7893
+ });
7894
+ });
7895
+
7896
+ function hostContext(appName, pcoMeta) {
7897
+ return {
7898
+ appName,
7899
+ host: window.location.host,
7900
+ pathname: window.location.pathname,
7901
+ pcoMeta,
7902
+ search: window.location.search
7903
+ };
7904
+ }
7905
+ function trackPendo(payload) {
7906
+ const {
7907
+ event,
7908
+ properties = {}
7909
+ } = payload !== null && payload !== void 0 ? payload : {};
7910
+ if (!event) return;
7911
+ if (!(window === null || window === void 0 ? void 0 : window.pendo)) return console.warn("`window.pendo` is undefined");
7912
+ window.pendo.track(event, properties);
7913
+ }
7914
+ /**
7915
+ * A toolbar tool whose drawer is a page served by another app in an iframe.
7916
+ * Topbar only relays: the page decides what it shows and when it's ready.
7917
+ *
7918
+ * Page → topbar: READY, NEW_ROUTE_RENDERED, CLOSE_DRAWER, OPEN_DRAWER,
7919
+ * OPEN_TOOL { tool, path }, OPEN_PICOBOT { conversationId?, draft?,
7920
+ * ticketExternalId? }, TRACK_PENDO { event, properties }.
7921
+ *
7922
+ * Topbar → page: PANE_VISIBLE, PANE_HIDDEN, HOST_CONTEXT_CHANGED { appName,
7923
+ * host, pathname, pcoMeta, search }, TOOL_STATE_CHANGED { ...config.state }.
7924
+ */
7925
+ function IframeTool({
7926
+ appName,
7927
+ closeDrawer,
7928
+ config,
7929
+ currentPath,
7930
+ env,
7931
+ isOpen,
7932
+ onChangePath,
7933
+ openDrawer,
7934
+ openPicobot,
7935
+ openTool
7936
+ }) {
7937
+ const pcoMeta = usePcoMeta();
7938
+ const origin = React.useMemo(() => pcoUrl(env)(config.app), [env, config.app]);
7939
+ const iframeRef = React.useRef(null);
7940
+ const [isReady, setIsReady] = React.useState(false);
7941
+ const [errored, setErrored] = React.useState(false);
7942
+ const [mountKey, setMountKey] = React.useState(0);
7943
+ // Only what the page needs before it can talk to topbar: `host` says which
7944
+ // window to talk to. The rest comes over HOST_CONTEXT_CHANGED, so the
7945
+ // product page's path and search stay out of the URL and the logs of the
7946
+ // app serving the page.
7947
+ const [params] = React.useState(() => ({
7948
+ app_name: appName,
7949
+ host: window.location.host,
7950
+ resource: pcoMeta.resource,
7951
+ ...config.params
7952
+ }));
7953
+ const hostUrl = useHostUrlWhileOpen(isOpen);
7954
+ // The drawer unmounts the tool when it closes, so each open loads the page
7955
+ // fresh. While it's open, the page hears where the user is once it's ready,
7956
+ // and again when they navigate or the pco: meta tags change.
7957
+ React.useEffect(function tellThePageWhereTheUserIs() {
7958
+ var _a;
7959
+ if (!isReady || !isOpen) return;
7960
+ (_a = iframeRef.current) === null || _a === void 0 ? void 0 : _a.postMessage({
7961
+ payload: hostContext(appName, pcoMeta),
7962
+ type: "HOST_CONTEXT_CHANGED"
7963
+ });
7964
+ }, [isOpen, isReady, appName, pcoMeta, hostUrl]);
7965
+ React.useEffect(function tellThePageWhetherItIsVisible() {
7966
+ var _a;
7967
+ if (!isReady) return;
7968
+ (_a = iframeRef.current) === null || _a === void 0 ? void 0 : _a.postMessage({
7969
+ type: isOpen ? "PANE_VISIBLE" : "PANE_HIDDEN"
7970
+ });
7971
+ }, [isOpen, isReady]);
7972
+ React.useEffect(function tellThePageAboutStateChanges() {
7973
+ var _a;
7974
+ if (!isReady || !config.state) return;
7975
+ (_a = iframeRef.current) === null || _a === void 0 ? void 0 : _a.postMessage({
7976
+ payload: config.state,
7977
+ type: "TOOL_STATE_CHANGED"
7978
+ });
7979
+ }, [isReady, config.state]);
7980
+ const handleMessage = React.useCallback(message => {
7981
+ var _a;
7982
+ switch (message.type) {
7983
+ case "READY":
7984
+ return setIsReady(true);
7985
+ case "CLOSE_DRAWER":
7986
+ return closeDrawer();
7987
+ case "OPEN_DRAWER":
7988
+ return openDrawer();
7989
+ case "OPEN_TOOL":
7990
+ {
7991
+ const {
7992
+ path = "",
7993
+ tool
7994
+ } = (_a = message.payload) !== null && _a !== void 0 ? _a : {};
7995
+ if (tool) openTool(tool, path);
7996
+ return;
7997
+ }
7998
+ case "OPEN_PICOBOT":
7999
+ // Without the Picobot panel there's nowhere to send it.
8000
+ return openPicobot === null || openPicobot === void 0 ? void 0 : openPicobot(message.payload);
8001
+ case "TRACK_PENDO":
8002
+ return trackPendo(message.payload);
8003
+ case "IFRAME_LOAD_ERROR":
8004
+ console.warn(`topbar: ${config.title} iframe failed to load`);
8005
+ return setErrored(true);
8006
+ }
8007
+ }, [closeDrawer, config.title, openDrawer, openPicobot, openTool]);
8008
+ const handleRetry = React.useCallback(() => {
8009
+ setErrored(false);
8010
+ setIsReady(false);
8011
+ setMountKey(key => key + 1);
8012
+ }, []);
8013
+ if (errored) {
8014
+ return /*#__PURE__*/React.createElement(LoadError$1, {
8015
+ closeDrawer: closeDrawer,
8016
+ fallbackLinks: config.fallbackLinks,
8017
+ heading: config.heading,
8018
+ onRetry: handleRetry
8019
+ });
8020
+ }
8021
+ return /*#__PURE__*/React.createElement(tapestryReact.StackView, {
8022
+ flex: 1,
8023
+ axis: "vertical"
8024
+ }, !isReady && (/*#__PURE__*/React.createElement(LoadingHeader, {
8025
+ closeDrawer: closeDrawer,
8026
+ heading: config.heading
8027
+ })), /*#__PURE__*/React.createElement(ToolIframe, {
8028
+ key: mountKey,
8029
+ ref: iframeRef,
8030
+ basePath: config.basePath,
8031
+ currentPath: currentPath,
8032
+ isVisible: isOpen,
8033
+ onChangePath: onChangePath,
8034
+ onMessage: handleMessage,
8035
+ origin: origin,
8036
+ params: params,
8037
+ title: config.title
8038
+ }));
8039
+ }
8040
+ /** The drawer's header while its page loads. */
8041
+ function LoadingHeader({
8042
+ closeDrawer,
8043
+ heading
8044
+ }) {
8045
+ return /*#__PURE__*/React.createElement(DrawerHeader, {
8046
+ closeDrawer: closeDrawer
8047
+ }, /*#__PURE__*/React.createElement(tapestryReact.StackView, {
8048
+ alignment: "center",
8049
+ axis: "horizontal",
8050
+ spacing: 1
8051
+ }, /*#__PURE__*/React.createElement(DrawerHeading, null, heading), /*#__PURE__*/React.createElement(tapestryReact.Spinner, {
8052
+ "aria-label": `Loading ${heading}`,
8053
+ color: "var(--t-fill-color-neutral-030)",
8054
+ thickness: 2,
8055
+ trackColor: "var(--t-fill-color-neutral-080)"
8056
+ })));
8057
+ }
8058
+ // Single-page apps navigate with pushState, which fires no event, so the URL
8059
+ // is checked every second while the drawer is open.
8060
+ const HOST_URL_CHECK_MS = 1000;
8061
+ function currentHostUrl() {
8062
+ return `${window.location.pathname}${window.location.search}`;
8063
+ }
8064
+ function useHostUrlWhileOpen(isOpen) {
8065
+ const [hostUrl, setHostUrl] = React.useState(currentHostUrl);
8066
+ React.useEffect(function followTheHostUrl() {
8067
+ if (!isOpen) return undefined;
8068
+ const check = () => setHostUrl(currentHostUrl());
8069
+ const interval = setInterval(check, HOST_URL_CHECK_MS);
8070
+ window.addEventListener("popstate", check);
8071
+ return () => {
8072
+ clearInterval(interval);
8073
+ window.removeEventListener("popstate", check);
8074
+ };
8075
+ }, [isOpen]);
8076
+ return hostUrl;
8077
+ }
8078
+ function LoadError$1({
8079
+ closeDrawer,
8080
+ fallbackLinks = [],
8081
+ heading,
8082
+ onRetry
8083
+ }) {
8084
+ return /*#__PURE__*/React.createElement(tapestryReact.StackView, {
8085
+ flex: 1,
8086
+ axis: "vertical"
8087
+ }, /*#__PURE__*/React.createElement(DrawerHeader, {
8088
+ closeDrawer: closeDrawer
8089
+ }, /*#__PURE__*/React.createElement(DrawerHeading, null, heading)), /*#__PURE__*/React.createElement(tapestryReact.StackView, {
8090
+ axis: "vertical",
8091
+ flex: 1,
8092
+ alignment: "center",
8093
+ distribution: "center",
8094
+ padding: 3,
8095
+ spacing: 1
8096
+ }, /*#__PURE__*/React.createElement(tapestryReact.Text, {
8097
+ size: 5,
8098
+ color: "var(--t-text-color-secondary)"
8099
+ }, "This couldn't load. Try again in a moment."), /*#__PURE__*/React.createElement(tapestryReact.Box, {
8100
+ paddingTop: 2
8101
+ }, /*#__PURE__*/React.createElement(tapestryReact.Button, {
8102
+ onClick: onRetry,
8103
+ iconLeft: "general.refresh",
8104
+ theme: "primary",
8105
+ variant: "fill",
8106
+ title: "Retry"
8107
+ })), fallbackLinks.map(({
8108
+ href,
8109
+ label
8110
+ }) => (/*#__PURE__*/React.createElement(tapestryReact.Link, {
8111
+ key: href,
8112
+ to: href,
8113
+ external: true
8114
+ }, label)))));
8115
+ }
8116
+
8227
8117
  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"};
8228
8118
 
8229
8119
  const SPARKLE_PATH$1 = "M3.809 10.1332C3.87511 9.95596 4.12579 9.95588 4.19181 10.1332L4.63712 11.3363C4.64169 11.3487 4.65116 11.359 4.66349 11.3637L5.86661 11.809C6.04452 11.8749 6.04455 12.126 5.86661 12.1918L4.66349 12.6371C4.65134 12.6417 4.64173 12.6513 4.63712 12.6635L4.19181 13.8666C4.12597 14.0445 3.87486 14.0445 3.809 13.8666L3.36368 12.6635C3.35905 12.6512 3.3487 12.6417 3.33634 12.6371L2.13321 12.1918C1.95588 12.1258 1.95596 11.8751 2.13321 11.809L3.33634 11.3637C3.34877 11.3591 3.35908 11.3488 3.36368 11.3363L3.809 10.1332ZM8.52091 3.33341C8.68571 2.88899 9.31518 2.88891 9.47989 3.33341L10.5922 6.34122C10.6037 6.37226 10.6285 6.39712 10.6596 6.4086L13.6664 7.52091C14.1113 7.68553 14.1113 8.31528 13.6664 8.47989L10.6596 9.5922C10.6285 9.6037 10.6037 9.6285 10.5922 9.65958L9.47989 12.6664C9.31528 13.1113 8.68553 13.1113 8.52091 12.6664L7.4086 9.65958C7.39712 9.62853 7.37226 9.60371 7.34122 9.5922L4.33341 8.47989C3.88891 8.31518 3.88899 7.68571 4.33341 7.52091L7.34122 6.4086C7.3723 6.3971 7.3971 6.3723 7.4086 6.34122L8.52091 3.33341ZM3.809 2.13321C3.87511 1.95596 4.12579 1.95588 4.19181 2.13321L4.63712 3.33634C4.64169 3.3487 4.65116 3.35905 4.66349 3.36368L5.86661 3.809C6.04452 3.87486 6.04455 4.12597 5.86661 4.19181L4.66349 4.63712C4.65134 4.64173 4.64173 4.65134 4.63712 4.66349L4.19181 5.86661C4.12597 6.04455 3.87486 6.04452 3.809 5.86661L3.36368 4.66349C3.35905 4.65116 3.3487 4.64169 3.33634 4.63712L2.13321 4.19181C1.95588 4.12579 1.95596 3.87511 2.13321 3.809L3.33634 3.36368C3.34877 3.35908 3.35908 3.34877 3.36368 3.33634L3.809 2.13321Z";
@@ -8819,7 +8709,56 @@ true;
8819
8709
  styles: styles
8820
8710
  })) : null;
8821
8711
  }
8822
- function HelpdeskComponent({
8712
+ function HelpdeskComponent(props) {
8713
+ return props.mountLegacy === false ? (/*#__PURE__*/React.createElement(HelpdeskIframe, {
8714
+ ...props
8715
+ })) : (/*#__PURE__*/React.createElement(HelpdeskAddOn, {
8716
+ ...props
8717
+ }));
8718
+ }
8719
+ function HelpdeskIframe(props) {
8720
+ var _a;
8721
+ const fetchZendeskDetails = (_a = props.helpdeskConfig) === null || _a === void 0 ? void 0 : _a.fetchZendeskDetails;
8722
+ const hasPicobotPanel = Boolean(props.openPicobot);
8723
+ const config = React.useMemo(() => ({
8724
+ app: "helpdesk",
8725
+ basePath: "/topbar/helpdesk",
8726
+ // People open Help when something's already wrong, so a failed load
8727
+ // still points somewhere that doesn't depend on Helpdesk.
8728
+ fallbackLinks: [{
8729
+ href: "https://www.planningcenter.com/support",
8730
+ label: "Get help on planningcenter.com"
8731
+ }, {
8732
+ href: "https://status.planningcenter.com",
8733
+ label: "Check Planning Center's status"
8734
+ }],
8735
+ heading: "Help and support",
8736
+ params: {
8737
+ fetch_zendesk_details: fetchZendeskDetails ? "1" : null,
8738
+ // Tells helpdesk to send OPEN_PICOBOT rather than embed Ask AI.
8739
+ open_picobot: hasPicobotPanel ? "1" : null
8740
+ },
8741
+ // The gate can answer after the page loads, e.g. when userId arrives
8742
+ // late, so the page also hears about it here.
8743
+ state: {
8744
+ canOpenPicobot: hasPicobotPanel
8745
+ },
8746
+ title: "Help and support"
8747
+ }), [fetchZendeskDetails, hasPicobotPanel]);
8748
+ // The page reads its params once, so mounting before the gate answers
8749
+ // would leave out open_picobot for good.
8750
+ if (props.isPicobotLoading) {
8751
+ return /*#__PURE__*/React.createElement(LoadingHeader, {
8752
+ closeDrawer: props.closeDrawer,
8753
+ heading: "Help and support"
8754
+ });
8755
+ }
8756
+ return /*#__PURE__*/React.createElement(IframeTool, {
8757
+ ...props,
8758
+ config: config
8759
+ });
8760
+ }
8761
+ function HelpdeskAddOn({
8823
8762
  appName,
8824
8763
  closeDrawer,
8825
8764
  currentPath,
@@ -9697,7 +9636,25 @@ true;
9697
9636
  ...badge
9698
9637
  }));
9699
9638
  }
9700
- function TasksComponent({
9639
+ const TASKS_IFRAME_CONFIG = {
9640
+ app: "home",
9641
+ basePath: "/topbar/tasks",
9642
+ heading: "To do",
9643
+ title: "To do"
9644
+ };
9645
+ function TasksComponent(props) {
9646
+ return props.mountLegacy === false ? (
9647
+ /*#__PURE__*/
9648
+ // The iframe and Home's own pages share Home's origin and talk to each
9649
+ // other directly, so there's no worker to hand over.
9650
+ React.createElement(IframeTool, {
9651
+ ...props,
9652
+ config: TASKS_IFRAME_CONFIG
9653
+ })) : (/*#__PURE__*/React.createElement(TasksAddOn, {
9654
+ ...props
9655
+ }));
9656
+ }
9657
+ function TasksAddOn({
9701
9658
  closeDrawer,
9702
9659
  env,
9703
9660
  isOpen,
@@ -10138,6 +10095,8 @@ true;
10138
10095
  env,
10139
10096
  helpdeskConfig = {},
10140
10097
  linkToProfile = true,
10098
+ mountLegacyHelpdesk = true,
10099
+ mountLegacyTasks = true,
10141
10100
  onReceiveTasksWorker,
10142
10101
  requestClearAppsCache,
10143
10102
  userAvatarPath,
@@ -10382,6 +10341,7 @@ true;
10382
10341
  const toolSpecificProps = {
10383
10342
  Helpdesk: {
10384
10343
  isPicobotLoading: isPicobotGateLoading,
10344
+ mountLegacy: mountLegacyHelpdesk,
10385
10345
  openPicobot: displayPicobotIcon ? openPicobot : undefined
10386
10346
  },
10387
10347
  Profile: {
@@ -10397,6 +10357,7 @@ true;
10397
10357
  userAvatarPath
10398
10358
  },
10399
10359
  Tasks: {
10360
+ mountLegacy: mountLegacyTasks,
10400
10361
  onReceiveWorker: onReceiveTasksWorker
10401
10362
  }
10402
10363
  };