@planningcenter/topbar 12.8.3 → 12.9.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/topbar.css +235 -1
- package/dist/topbar.css.map +1 -1
- package/dist/topbar.js +673 -739
- package/dist/topbar.js.map +1 -1
- package/dist/topbar.modern.js +673 -738
- package/dist/topbar.modern.js.map +1 -1
- package/dist/topbar.module.js +673 -738
- package/dist/topbar.module.js.map +1 -1
- package/dist/topbar.umd.js +677 -741
- package/dist/topbar.umd.js.map +1 -1
- package/package.json +3 -2
package/dist/topbar.umd.js
CHANGED
|
@@ -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('@planningcenter/icons/paths/church-center'), require('react/jsx-runtime'), require('@planningcenter/icons/paths/accounts'), require('@planningcenter/icons/paths/toolbar'), require('@planningcenter/datetime-fmt'), require('pluralize'), require('@planningcenter/icons/paths/logomark'), require('
|
|
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/church-center', 'react/jsx-runtime', '@planningcenter/icons/paths/accounts', '@planningcenter/icons/paths/toolbar', '@planningcenter/datetime-fmt', 'pluralize', '@planningcenter/icons/paths/logomark', '
|
|
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.churchCenter, null, global.accounts, global.toolbar, global.datetimeFmt, global.pluralize, global.logomark, global.
|
|
5
|
-
})(this, (function (exports, tapestry, React, pcoUrl$1, general, Jolt, shim, churchCenter, jsxRuntime, accounts, toolbar, datetimeFmt, pluralize, logomarks,
|
|
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/church-center'), require('react/jsx-runtime'), require('@planningcenter/icons/paths/accounts'), require('@planningcenter/icons/paths/toolbar'), require('@planningcenter/datetime-fmt'), require('pluralize'), require('@planningcenter/icons/paths/logomark'), require('react-dom'), require('@planningcenter/add-ons'), 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/church-center', 'react/jsx-runtime', '@planningcenter/icons/paths/accounts', '@planningcenter/icons/paths/toolbar', '@planningcenter/datetime-fmt', 'pluralize', '@planningcenter/icons/paths/logomark', 'react-dom', '@planningcenter/add-ons', '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.churchCenter, null, global.accounts, global.toolbar, global.datetimeFmt, global.pluralize, global.logomark, global.ReactDOM, global.addOns, global.reactCalendly, global.algoliasearch, global.reactInstantsearchCore, global.reactTransitionGroup));
|
|
5
|
+
})(this, (function (exports, tapestry, React, pcoUrl$1, general, Jolt, shim, churchCenter, jsxRuntime, accounts, toolbar, datetimeFmt, pluralize, logomarks, reactDom, addOns, reactCalendly, algoliasearch, reactInstantsearchCore, reactTransitionGroup) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespaceDefault(e) {
|
|
8
8
|
var n = Object.create(null);
|
|
@@ -23,13 +23,11 @@
|
|
|
23
23
|
|
|
24
24
|
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
25
25
|
var general__namespace = /*#__PURE__*/_interopNamespaceDefault(general);
|
|
26
|
-
var churchCenter__namespace = /*#__PURE__*/_interopNamespaceDefault(churchCenter);
|
|
27
26
|
var accounts__namespace = /*#__PURE__*/_interopNamespaceDefault(accounts);
|
|
28
27
|
var toolbar__namespace = /*#__PURE__*/_interopNamespaceDefault(toolbar);
|
|
29
28
|
var logomarks__namespace = /*#__PURE__*/_interopNamespaceDefault(logomarks);
|
|
30
|
-
var people__namespace = /*#__PURE__*/_interopNamespaceDefault(people);
|
|
31
29
|
|
|
32
|
-
var styles$
|
|
30
|
+
var styles$B = {"accessibility-toolbar":"accessibility-toolbar-jgjUG"};
|
|
33
31
|
|
|
34
32
|
const AccessibilityToolbar = ({
|
|
35
33
|
children
|
|
@@ -41,7 +39,7 @@
|
|
|
41
39
|
(_a = document.getElementById("main-content")) === null || _a === void 0 ? void 0 : _a.focus();
|
|
42
40
|
};
|
|
43
41
|
return /*#__PURE__*/React.createElement("div", {
|
|
44
|
-
className: styles$
|
|
42
|
+
className: styles$B["accessibility-toolbar"]
|
|
45
43
|
}, /*#__PURE__*/React.createElement(tapestry.Link, {
|
|
46
44
|
href: "#main-content",
|
|
47
45
|
kind: "primary",
|
|
@@ -360,11 +358,11 @@
|
|
|
360
358
|
fill: fill
|
|
361
359
|
})));
|
|
362
360
|
|
|
363
|
-
var styles$
|
|
361
|
+
var styles$A = {"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"};
|
|
364
362
|
|
|
365
363
|
function AnnouncementIcon() {
|
|
366
364
|
return /*#__PURE__*/React.createElement("svg", {
|
|
367
|
-
className: styles$
|
|
365
|
+
className: styles$A["announcement-icon"],
|
|
368
366
|
width: "16",
|
|
369
367
|
height: "16",
|
|
370
368
|
viewBox: "0 0 16 16",
|
|
@@ -489,7 +487,7 @@
|
|
|
489
487
|
} = this.props;
|
|
490
488
|
const isPromo = variant === "promo";
|
|
491
489
|
return /*#__PURE__*/React.createElement("div", {
|
|
492
|
-
className: classnames(styles$
|
|
490
|
+
className: classnames(styles$A["announcement"], styles$A[`announcement--${variant !== null && variant !== void 0 ? variant : "platform"}`]),
|
|
493
491
|
"data-announcement-variant": variant !== null && variant !== void 0 ? variant : "platform",
|
|
494
492
|
style: isPromo ? {
|
|
495
493
|
backgroundImage: promoBackgroundUrl,
|
|
@@ -498,7 +496,7 @@
|
|
|
498
496
|
backgroundSize: "cover"
|
|
499
497
|
} : undefined
|
|
500
498
|
}, !isPromo && /*#__PURE__*/React.createElement(AnnouncementIcon, null), /*#__PURE__*/React.createElement("div", {
|
|
501
|
-
className: styles$
|
|
499
|
+
className: styles$A["announcement-content"],
|
|
502
500
|
style: style,
|
|
503
501
|
...platformProps
|
|
504
502
|
}));
|
|
@@ -547,7 +545,7 @@
|
|
|
547
545
|
const isPromo = variant === "promo";
|
|
548
546
|
return /*#__PURE__*/React.createElement("button", {
|
|
549
547
|
type: "button",
|
|
550
|
-
className: classnames(styles$
|
|
548
|
+
className: classnames(styles$A.dismiss, isPromo && styles$A["dismiss--promo"]),
|
|
551
549
|
...props
|
|
552
550
|
}, /*#__PURE__*/React.createElement(X, {
|
|
553
551
|
fill: isPromo ? "currentColor" : "white",
|
|
@@ -627,9 +625,9 @@
|
|
|
627
625
|
...platformProps
|
|
628
626
|
} = this.props;
|
|
629
627
|
return /*#__PURE__*/React.createElement("div", {
|
|
630
|
-
className: styles$
|
|
628
|
+
className: styles$A["announcement"]
|
|
631
629
|
}, /*#__PURE__*/React.createElement(AnnouncementIcon, null), /*#__PURE__*/React.createElement("div", {
|
|
632
|
-
className: styles$
|
|
630
|
+
className: styles$A["announcement-content"],
|
|
633
631
|
style: style,
|
|
634
632
|
...platformProps
|
|
635
633
|
}));
|
|
@@ -640,7 +638,7 @@
|
|
|
640
638
|
}) {
|
|
641
639
|
return /*#__PURE__*/React.createElement("button", {
|
|
642
640
|
type: "button",
|
|
643
|
-
className: styles$
|
|
641
|
+
className: styles$A.dismiss,
|
|
644
642
|
...props
|
|
645
643
|
}, /*#__PURE__*/React.createElement(X, {
|
|
646
644
|
fill: "white",
|
|
@@ -1766,7 +1764,7 @@
|
|
|
1766
1764
|
})) : (/*#__PURE__*/React.createElement("div", null, "appName not supported")));
|
|
1767
1765
|
}
|
|
1768
1766
|
|
|
1769
|
-
var styles$
|
|
1767
|
+
var styles$z = {"name":"name-UNqbW"};
|
|
1770
1768
|
|
|
1771
1769
|
// Draws Church Center's 16-unit home icon inside a 20-unit box at the same
|
|
1772
1770
|
// proportions as the app symbols, like Account settings' gear, which fill
|
|
@@ -1806,25 +1804,25 @@
|
|
|
1806
1804
|
colors: colors,
|
|
1807
1805
|
size: iconSize
|
|
1808
1806
|
}), /*#__PURE__*/React.createElement("span", {
|
|
1809
|
-
className: styles$
|
|
1807
|
+
className: styles$z.name
|
|
1810
1808
|
}, "Account settings"));
|
|
1811
1809
|
}
|
|
1812
1810
|
if (appName === "Church Center") {
|
|
1813
1811
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ChurchCenterIcon, {
|
|
1814
1812
|
size: iconSize
|
|
1815
1813
|
}), /*#__PURE__*/React.createElement("span", {
|
|
1816
|
-
className: styles$
|
|
1814
|
+
className: styles$z.name
|
|
1817
1815
|
}, "Church Center"));
|
|
1818
1816
|
}
|
|
1819
1817
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ColorAppIcon, {
|
|
1820
1818
|
appName: appName.replace(/[\s-]/, ""),
|
|
1821
1819
|
size: iconSize
|
|
1822
1820
|
}), /*#__PURE__*/React.createElement("span", {
|
|
1823
|
-
className: styles$
|
|
1821
|
+
className: styles$z.name
|
|
1824
1822
|
}, appName));
|
|
1825
1823
|
};
|
|
1826
1824
|
|
|
1827
|
-
var styles$
|
|
1825
|
+
var styles$y = {"button":"button-NPHAj","label":"label-1EckO","chevron":"chevron-6-PM4"};
|
|
1828
1826
|
|
|
1829
1827
|
const AppsButton = /*#__PURE__*/React.forwardRef(({
|
|
1830
1828
|
appName,
|
|
@@ -1836,10 +1834,10 @@
|
|
|
1836
1834
|
...restProps,
|
|
1837
1835
|
ref: ref,
|
|
1838
1836
|
"aria-label": `App switcher: ${appName}`,
|
|
1839
|
-
className: styles$
|
|
1837
|
+
className: styles$y.button,
|
|
1840
1838
|
kind: "neutral-inline",
|
|
1841
1839
|
label: /*#__PURE__*/React.createElement("span", {
|
|
1842
|
-
className: styles$
|
|
1840
|
+
className: styles$y.label
|
|
1843
1841
|
}, isAccounts ? "Account settings" : appName),
|
|
1844
1842
|
prefix: isAccounts ? (/*#__PURE__*/React.createElement(MonoAppIcon, {
|
|
1845
1843
|
appName: "Accounts",
|
|
@@ -1852,13 +1850,13 @@
|
|
|
1852
1850
|
size: 24
|
|
1853
1851
|
})),
|
|
1854
1852
|
suffix: /*#__PURE__*/React.createElement(DisclosureChevronIcon, {
|
|
1855
|
-
className: `${styles$
|
|
1853
|
+
className: `${styles$y.chevron} symbol`
|
|
1856
1854
|
})
|
|
1857
1855
|
});
|
|
1858
1856
|
});
|
|
1859
1857
|
AppsButton.displayName = "AppsButton";
|
|
1860
1858
|
|
|
1861
|
-
var styles$
|
|
1859
|
+
var styles$x = {"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"};
|
|
1862
1860
|
|
|
1863
1861
|
const AppsMenu = ({
|
|
1864
1862
|
appName,
|
|
@@ -1882,8 +1880,8 @@
|
|
|
1882
1880
|
}, /*#__PURE__*/React.createElement("a", {
|
|
1883
1881
|
"aria-current": isCurrent ? "page" : undefined,
|
|
1884
1882
|
"aria-label": name,
|
|
1885
|
-
className: classnames(styles$
|
|
1886
|
-
[styles$
|
|
1883
|
+
className: classnames(styles$x.link, {
|
|
1884
|
+
[styles$x.current]: isCurrent
|
|
1887
1885
|
}),
|
|
1888
1886
|
"data-pendo": `app-switcher--change-app--${name}`,
|
|
1889
1887
|
"data-turbolinks": false,
|
|
@@ -1899,22 +1897,22 @@
|
|
|
1899
1897
|
colors: colors
|
|
1900
1898
|
})), /*#__PURE__*/React.createElement(tapestry.PopoverContent, {
|
|
1901
1899
|
"aria-label": "Switch app",
|
|
1902
|
-
className: styles$
|
|
1900
|
+
className: styles$x["popover-content"],
|
|
1903
1901
|
placement: "bottom start"
|
|
1904
1902
|
}, /*#__PURE__*/React.createElement("nav", {
|
|
1905
|
-
className: styles$
|
|
1903
|
+
className: styles$x.nav,
|
|
1906
1904
|
"data-pendo": "app-switcher"
|
|
1907
1905
|
}, /*#__PURE__*/React.createElement("ul", {
|
|
1908
|
-
className: styles$
|
|
1906
|
+
className: styles$x.list,
|
|
1909
1907
|
role: "list"
|
|
1910
1908
|
}, homeProduct && renderProductLink(homeProduct.name), restProducts.map(({
|
|
1911
1909
|
name
|
|
1912
1910
|
}) => renderProductLink(name)), accountsProduct && (/*#__PURE__*/React.createElement("li", {
|
|
1913
|
-
className: styles$
|
|
1911
|
+
className: styles$x["accounts-item"]
|
|
1914
1912
|
}, /*#__PURE__*/React.createElement("a", {
|
|
1915
1913
|
"aria-current": appName === accountsProduct.name ? "page" : undefined,
|
|
1916
1914
|
"aria-label": "Account settings",
|
|
1917
|
-
className: classnames(styles$
|
|
1915
|
+
className: classnames(styles$x.link, styles$x["accounts-link"]),
|
|
1918
1916
|
"data-pendo": "app-switcher--change-app--Accounts",
|
|
1919
1917
|
"data-turbolinks": false,
|
|
1920
1918
|
href: pcoUrl$1(env)("accounts") + getAppsSwitchProductPath(accountsProduct.name)
|
|
@@ -1923,7 +1921,7 @@
|
|
|
1923
1921
|
colors: colors
|
|
1924
1922
|
})))), showChurchCenter && (/*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("a", {
|
|
1925
1923
|
"aria-current": appName === "Church Center" ? "page" : undefined,
|
|
1926
|
-
className: classnames(styles$
|
|
1924
|
+
className: classnames(styles$x.link, styles$x["accounts-link"]),
|
|
1927
1925
|
"data-pendo": "app-switcher--change-app--ChurchCenter",
|
|
1928
1926
|
"data-turbolinks": false,
|
|
1929
1927
|
href: `${pcoUrl$1(env)("publishing")}/church-center`
|
|
@@ -2861,7 +2859,7 @@ true;
|
|
|
2861
2859
|
ArrowRight: 1
|
|
2862
2860
|
})[key];
|
|
2863
2861
|
|
|
2864
|
-
var styles$
|
|
2862
|
+
var styles$w = {"searchButton":"searchButton-fYa5-"};
|
|
2865
2863
|
|
|
2866
2864
|
function SearchButton({
|
|
2867
2865
|
mobile = false,
|
|
@@ -2870,7 +2868,7 @@ true;
|
|
|
2870
2868
|
return /*#__PURE__*/React.createElement("button", {
|
|
2871
2869
|
"aria-keyshortcuts": mobile ? undefined : `${isMac() ? "Meta" : "Control"}+${KEYBOARD_SHORTCUTS.openSearch.key.toUpperCase()} /`,
|
|
2872
2870
|
"aria-label": "Search",
|
|
2873
|
-
className: styles$
|
|
2871
|
+
className: styles$w.searchButton,
|
|
2874
2872
|
"data-search-button": true,
|
|
2875
2873
|
onClick: onClick,
|
|
2876
2874
|
type: "button"
|
|
@@ -4241,7 +4239,7 @@ true;
|
|
|
4241
4239
|
};
|
|
4242
4240
|
}
|
|
4243
4241
|
|
|
4244
|
-
var styles$
|
|
4242
|
+
var styles$v = {"modal":"modal-NR3TO","visuallyHidden":"visuallyHidden-C28ju","panel":"panel-HlF7S"};
|
|
4245
4243
|
|
|
4246
4244
|
const FALLBACK_SLUGS = ["people", "services"];
|
|
4247
4245
|
function defaultProduct(products, appName) {
|
|
@@ -4411,7 +4409,7 @@ true;
|
|
|
4411
4409
|
}, action.label))))));
|
|
4412
4410
|
}
|
|
4413
4411
|
|
|
4414
|
-
var styles$
|
|
4412
|
+
var styles$u = {"container":"container-YDdM1","hint":"hint-017Rd","keycap":"keycap-ENJM2","labels":"labels-GHPqL","copied":"copied-DUFa1"};
|
|
4415
4413
|
|
|
4416
4414
|
const SYMBOLS = {
|
|
4417
4415
|
command: {
|
|
@@ -4433,7 +4431,7 @@ true;
|
|
|
4433
4431
|
};
|
|
4434
4432
|
function Keycap(props) {
|
|
4435
4433
|
return /*#__PURE__*/React.createElement("kbd", {
|
|
4436
|
-
className: styles$
|
|
4434
|
+
className: styles$u.keycap
|
|
4437
4435
|
}, "symbol" in props ? (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("svg", {
|
|
4438
4436
|
"aria-hidden": true,
|
|
4439
4437
|
fill: "none",
|
|
@@ -4445,7 +4443,7 @@ true;
|
|
|
4445
4443
|
d: d,
|
|
4446
4444
|
key: d
|
|
4447
4445
|
})))), /*#__PURE__*/React.createElement("span", {
|
|
4448
|
-
className: styles$
|
|
4446
|
+
className: styles$v.visuallyHidden
|
|
4449
4447
|
}, SYMBOLS[props.symbol].label))) : props.label);
|
|
4450
4448
|
}
|
|
4451
4449
|
function CommandKey() {
|
|
@@ -4473,10 +4471,10 @@ true;
|
|
|
4473
4471
|
}) {
|
|
4474
4472
|
return /*#__PURE__*/React.createElement("ul", {
|
|
4475
4473
|
"aria-label": "Keyboard shortcuts",
|
|
4476
|
-
className: styles$
|
|
4474
|
+
className: styles$u.container,
|
|
4477
4475
|
"data-platform": isMac() ? "mac" : "pc"
|
|
4478
4476
|
}, /*#__PURE__*/React.createElement("li", {
|
|
4479
|
-
className: styles$
|
|
4477
|
+
className: styles$u.hint
|
|
4480
4478
|
}, /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
4481
4479
|
gap: 0.5
|
|
4482
4480
|
}, select.modifierKey, /*#__PURE__*/React.createElement(Keycap, {
|
|
@@ -4484,11 +4482,11 @@ true;
|
|
|
4484
4482
|
}), /*#__PURE__*/React.createElement(Keycap, {
|
|
4485
4483
|
symbol: "down"
|
|
4486
4484
|
})), select.label), /*#__PURE__*/React.createElement("li", {
|
|
4487
|
-
className: styles$
|
|
4485
|
+
className: styles$u.hint
|
|
4488
4486
|
}, /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
4489
4487
|
gap: 0.5
|
|
4490
4488
|
}, /*#__PURE__*/React.createElement(CommandKey, null), /*#__PURE__*/React.createElement(EnterKey, null)), openInNewTab.label), /*#__PURE__*/React.createElement("li", {
|
|
4491
|
-
className: classnames(styles$
|
|
4489
|
+
className: classnames(styles$u.hint, copied && styles$u.copied),
|
|
4492
4490
|
style: {
|
|
4493
4491
|
"--copied-active": `${COPIED_TIMING.active}ms`,
|
|
4494
4492
|
"--copied-enter": `${COPIED_TIMING.enter}ms`,
|
|
@@ -4499,13 +4497,13 @@ true;
|
|
|
4499
4497
|
}, /*#__PURE__*/React.createElement(CommandKey, null), /*#__PURE__*/React.createElement(Keycap, {
|
|
4500
4498
|
label: copyLink.key.toUpperCase()
|
|
4501
4499
|
})), /*#__PURE__*/React.createElement("span", {
|
|
4502
|
-
className: styles$
|
|
4500
|
+
className: styles$u.labels
|
|
4503
4501
|
}, /*#__PURE__*/React.createElement("span", {
|
|
4504
4502
|
"aria-hidden": copied
|
|
4505
4503
|
}, copyLink.label), /*#__PURE__*/React.createElement("span", {
|
|
4506
4504
|
role: "status"
|
|
4507
4505
|
}, copied && "Copied!"))), /*#__PURE__*/React.createElement("li", {
|
|
4508
|
-
className: styles$
|
|
4506
|
+
className: styles$u.hint
|
|
4509
4507
|
}, /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
4510
4508
|
gap: 0.5
|
|
4511
4509
|
}, /*#__PURE__*/React.createElement(CommandKey, null), /*#__PURE__*/React.createElement(Keycap, {
|
|
@@ -4513,7 +4511,7 @@ true;
|
|
|
4513
4511
|
})), openSearch.label));
|
|
4514
4512
|
}
|
|
4515
4513
|
|
|
4516
|
-
var styles$
|
|
4514
|
+
var styles$t = {"icon":"icon-XKLvN","squircle":"squircle-JCHr6"};
|
|
4517
4515
|
|
|
4518
4516
|
const PRODUCTS = {
|
|
4519
4517
|
accounts: {
|
|
@@ -4582,13 +4580,13 @@ true;
|
|
|
4582
4580
|
const mask = maskFor(path);
|
|
4583
4581
|
return /*#__PURE__*/React.createElement("span", {
|
|
4584
4582
|
"aria-hidden": true,
|
|
4585
|
-
className: styles$
|
|
4583
|
+
className: styles$t.icon,
|
|
4586
4584
|
style: {
|
|
4587
4585
|
height: size,
|
|
4588
4586
|
width: size
|
|
4589
4587
|
}
|
|
4590
4588
|
}, /*#__PURE__*/React.createElement("span", {
|
|
4591
|
-
className: styles$
|
|
4589
|
+
className: styles$t.squircle,
|
|
4592
4590
|
style: {
|
|
4593
4591
|
WebkitMaskImage: mask,
|
|
4594
4592
|
background: `var(${gradient})`,
|
|
@@ -4597,7 +4595,7 @@ true;
|
|
|
4597
4595
|
}));
|
|
4598
4596
|
}
|
|
4599
4597
|
|
|
4600
|
-
var styles$
|
|
4598
|
+
var styles$s = {"picker":"picker-iuzzj","option":"option--7LXg"};
|
|
4601
4599
|
|
|
4602
4600
|
// Phones have no room for a tab per product, so they pick from a dropdown.
|
|
4603
4601
|
// Complex mode renders each option's logomark, in the list and the trigger.
|
|
@@ -4612,7 +4610,7 @@ true;
|
|
|
4612
4610
|
slug
|
|
4613
4611
|
}) => ({
|
|
4614
4612
|
label: (/*#__PURE__*/React.createElement("span", {
|
|
4615
|
-
className: styles$
|
|
4613
|
+
className: styles$s.option
|
|
4616
4614
|
}, /*#__PURE__*/React.createElement(ProductIcon, {
|
|
4617
4615
|
slug: slug
|
|
4618
4616
|
}), appName)),
|
|
@@ -4620,7 +4618,7 @@ true;
|
|
|
4620
4618
|
value: slug
|
|
4621
4619
|
}));
|
|
4622
4620
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
4623
|
-
className: styles$
|
|
4621
|
+
className: styles$s.picker
|
|
4624
4622
|
}, /*#__PURE__*/React.createElement(tapestry.Select, {
|
|
4625
4623
|
"aria-label": "Product",
|
|
4626
4624
|
complex: true,
|
|
@@ -4628,7 +4626,7 @@ true;
|
|
|
4628
4626
|
options: options,
|
|
4629
4627
|
value: selected.slug
|
|
4630
4628
|
})), /*#__PURE__*/React.createElement("div", {
|
|
4631
|
-
className: styles$
|
|
4629
|
+
className: styles$v.panel
|
|
4632
4630
|
}, children));
|
|
4633
4631
|
}
|
|
4634
4632
|
|
|
@@ -4679,7 +4677,7 @@ true;
|
|
|
4679
4677
|
};
|
|
4680
4678
|
}
|
|
4681
4679
|
|
|
4682
|
-
var styles$
|
|
4680
|
+
var styles$r = {"tablist":"tablist-7ASvc","tab":"tab-dz8ki"};
|
|
4683
4681
|
|
|
4684
4682
|
// With this many tabs or more, only the selected tab shows its name, so they
|
|
4685
4683
|
// all fit. Fewer always fit with their names.
|
|
@@ -4710,7 +4708,7 @@ true;
|
|
|
4710
4708
|
};
|
|
4711
4709
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
4712
4710
|
"aria-label": "Search in",
|
|
4713
|
-
className: styles$
|
|
4711
|
+
className: styles$r.tablist,
|
|
4714
4712
|
onKeyDown: handleKeyDown,
|
|
4715
4713
|
role: "tablist"
|
|
4716
4714
|
}, products.map(product => (/*#__PURE__*/React.createElement(Tab, {
|
|
@@ -4730,10 +4728,10 @@ true;
|
|
|
4730
4728
|
}, /*#__PURE__*/React.createElement(ProductIcon, {
|
|
4731
4729
|
slug: product.slug
|
|
4732
4730
|
}), showAllNames || product === selected ? product.appName : (/*#__PURE__*/React.createElement("span", {
|
|
4733
|
-
className: styles$
|
|
4731
|
+
className: styles$v.visuallyHidden
|
|
4734
4732
|
}, product.appName)))))), /*#__PURE__*/React.createElement("div", {
|
|
4735
4733
|
"aria-labelledby": tabId(selected.slug),
|
|
4736
|
-
className: styles$
|
|
4734
|
+
className: styles$v.panel,
|
|
4737
4735
|
id: `${id}-panel`,
|
|
4738
4736
|
role: "tabpanel"
|
|
4739
4737
|
}, children));
|
|
@@ -4746,7 +4744,7 @@ true;
|
|
|
4746
4744
|
focusProps
|
|
4747
4745
|
} = useKeyboardFocus();
|
|
4748
4746
|
return /*#__PURE__*/React.createElement("button", {
|
|
4749
|
-
className: styles$
|
|
4747
|
+
className: styles$r.tab,
|
|
4750
4748
|
ref: ref,
|
|
4751
4749
|
role: "tab",
|
|
4752
4750
|
type: "button",
|
|
@@ -5090,7 +5088,7 @@ true;
|
|
|
5090
5088
|
}))));
|
|
5091
5089
|
}
|
|
5092
5090
|
|
|
5093
|
-
var styles$
|
|
5091
|
+
var styles$q = {"blank_state":"blank_state-kX-H1","image":"image-R3D6r"};
|
|
5094
5092
|
|
|
5095
5093
|
function BlankState$1({
|
|
5096
5094
|
action,
|
|
@@ -5101,12 +5099,12 @@ true;
|
|
|
5101
5099
|
}) {
|
|
5102
5100
|
return /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
5103
5101
|
role: role,
|
|
5104
|
-
className: styles$
|
|
5102
|
+
className: styles$q.blank_state,
|
|
5105
5103
|
direction: "column",
|
|
5106
5104
|
align: "center",
|
|
5107
5105
|
gap: 3
|
|
5108
5106
|
}, /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
5109
|
-
className: styles$
|
|
5107
|
+
className: styles$q.image
|
|
5110
5108
|
}, image), /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
5111
5109
|
direction: "column",
|
|
5112
5110
|
align: "center",
|
|
@@ -5132,7 +5130,7 @@ true;
|
|
|
5132
5130
|
|
|
5133
5131
|
const resultId = (listboxId, index) => `${listboxId}-result-${index}`;
|
|
5134
5132
|
|
|
5135
|
-
var styles$
|
|
5133
|
+
var styles$p = {"result":"result-Thq2C","title":"title-KYUEn","subtitle":"subtitle-R2haq","image":"image-KVDor","avatar":"avatar-6Gh62","photo":"photo-FZR3Q","badge":"badge-trUKt","subdued":"subdued-YzRpa"};
|
|
5136
5134
|
|
|
5137
5135
|
function SearchResult({
|
|
5138
5136
|
category,
|
|
@@ -5199,7 +5197,7 @@ true;
|
|
|
5199
5197
|
"aria-describedby": [subdued && `${id}-subdued`, describedBy, subtitle && `${id}-subtitle`].filter(Boolean).join(" ") || undefined,
|
|
5200
5198
|
"aria-labelledby": title ? `${id}-title` : undefined,
|
|
5201
5199
|
"aria-selected": highlighted,
|
|
5202
|
-
className: classnames(styles$
|
|
5200
|
+
className: classnames(styles$p.result, subdued && styles$p.subdued),
|
|
5203
5201
|
"data-turbo": "false",
|
|
5204
5202
|
href: url,
|
|
5205
5203
|
id: id,
|
|
@@ -5213,13 +5211,13 @@ true;
|
|
|
5213
5211
|
imageUrl: imageUrl,
|
|
5214
5212
|
product: product
|
|
5215
5213
|
}), /*#__PURE__*/React.createElement("span", {
|
|
5216
|
-
className: styles$
|
|
5214
|
+
className: styles$p.title,
|
|
5217
5215
|
id: `${id}-title`
|
|
5218
5216
|
}, title), /*#__PURE__*/React.createElement("span", {
|
|
5219
|
-
className: styles$
|
|
5217
|
+
className: styles$p.subtitle,
|
|
5220
5218
|
id: `${id}-subtitle`
|
|
5221
5219
|
}, subtitle), subdued && (/*#__PURE__*/React.createElement("span", {
|
|
5222
|
-
className: styles$
|
|
5220
|
+
className: styles$v.visuallyHidden,
|
|
5223
5221
|
id: `${id}-subdued`
|
|
5224
5222
|
}, "Inactive")))
|
|
5225
5223
|
);
|
|
@@ -5237,18 +5235,18 @@ true;
|
|
|
5237
5235
|
})) : null;
|
|
5238
5236
|
return /*#__PURE__*/React.createElement("span", {
|
|
5239
5237
|
"aria-hidden": true,
|
|
5240
|
-
className: styles$
|
|
5238
|
+
className: styles$p.image
|
|
5241
5239
|
}, imageUrl ? (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("img", {
|
|
5242
5240
|
alt: "",
|
|
5243
|
-
className: category === "profile" ? styles$
|
|
5241
|
+
className: category === "profile" ? styles$p.avatar : styles$p.photo,
|
|
5244
5242
|
loading: "lazy",
|
|
5245
5243
|
src: imageUrl
|
|
5246
5244
|
}), /*#__PURE__*/React.createElement("span", {
|
|
5247
|
-
className: styles$
|
|
5245
|
+
className: styles$p.badge
|
|
5248
5246
|
}, icon(16)))) : icon("100%"));
|
|
5249
5247
|
}
|
|
5250
5248
|
|
|
5251
|
-
var styles$
|
|
5249
|
+
var styles$o = {"heading":"heading-LioUF","group":"group-cKChg"};
|
|
5252
5250
|
|
|
5253
5251
|
// Sections with a heading render as labelled groups; ones without render
|
|
5254
5252
|
// their items straight into the listbox. Indexes run across every section.
|
|
@@ -5301,11 +5299,11 @@ true;
|
|
|
5301
5299
|
const headingId = `${id}-group-${sectionIndex}`;
|
|
5302
5300
|
return /*#__PURE__*/React.createElement("div", {
|
|
5303
5301
|
"aria-labelledby": headingId,
|
|
5304
|
-
className: styles$
|
|
5302
|
+
className: styles$o.group,
|
|
5305
5303
|
key: section.key,
|
|
5306
5304
|
role: "group"
|
|
5307
5305
|
}, /*#__PURE__*/React.createElement("div", {
|
|
5308
|
-
className: styles$
|
|
5306
|
+
className: styles$o.heading,
|
|
5309
5307
|
id: headingId
|
|
5310
5308
|
}, section.heading), section.items.map((item, itemIndex) => renderItem(item, itemIndex, headingId)));
|
|
5311
5309
|
}));
|
|
@@ -5328,7 +5326,7 @@ true;
|
|
|
5328
5326
|
});
|
|
5329
5327
|
} else {
|
|
5330
5328
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
5331
|
-
className: styles$
|
|
5329
|
+
className: styles$o.heading,
|
|
5332
5330
|
id: headingId
|
|
5333
5331
|
}, "Recently visited"), /*#__PURE__*/React.createElement(ResultListbox, {
|
|
5334
5332
|
labelledBy: headingId,
|
|
@@ -5344,7 +5342,7 @@ true;
|
|
|
5344
5342
|
}
|
|
5345
5343
|
}
|
|
5346
5344
|
|
|
5347
|
-
var styles$
|
|
5345
|
+
var styles$n = {"row":"row-5P7UQ","header":"header-sXEyG","closeButton":"closeButton-rPJJV","input":"input-YQkTC","clearButton":"clearButton-9Yh9w"};
|
|
5348
5346
|
|
|
5349
5347
|
// A combobox: focus stays here while aria-activedescendant points screen
|
|
5350
5348
|
// readers at the highlighted result in the listbox it controls.
|
|
@@ -5381,9 +5379,9 @@ true;
|
|
|
5381
5379
|
}
|
|
5382
5380
|
});
|
|
5383
5381
|
return /*#__PURE__*/React.createElement("div", {
|
|
5384
|
-
className: styles$
|
|
5382
|
+
className: styles$n.row
|
|
5385
5383
|
}, /*#__PURE__*/React.createElement("label", {
|
|
5386
|
-
className: styles$
|
|
5384
|
+
className: styles$n.header,
|
|
5387
5385
|
id: "topbar_product_search_label"
|
|
5388
5386
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
5389
5387
|
name: "general.search",
|
|
@@ -5396,7 +5394,7 @@ true;
|
|
|
5396
5394
|
"aria-expanded": expanded,
|
|
5397
5395
|
"aria-label": "Search",
|
|
5398
5396
|
autoFocus: true,
|
|
5399
|
-
className: styles$
|
|
5397
|
+
className: styles$n.input,
|
|
5400
5398
|
id: "product_search",
|
|
5401
5399
|
onChange: event => onChange(event.target.value),
|
|
5402
5400
|
onKeyDown: onKeyDown,
|
|
@@ -5408,7 +5406,7 @@ true;
|
|
|
5408
5406
|
...focusProps
|
|
5409
5407
|
}), !onClose && value !== "" && (/*#__PURE__*/React.createElement("button", {
|
|
5410
5408
|
"aria-label": "Clear search",
|
|
5411
|
-
className: styles$
|
|
5409
|
+
className: styles$n.clearButton,
|
|
5412
5410
|
onClick: () => {
|
|
5413
5411
|
var _a;
|
|
5414
5412
|
onChange("");
|
|
@@ -5427,7 +5425,7 @@ true;
|
|
|
5427
5425
|
d: "M6.5 6.5l7 7m0 -7l-7 7"
|
|
5428
5426
|
}))))), onClose && (/*#__PURE__*/React.createElement(tapestry.IconButton, {
|
|
5429
5427
|
"aria-label": "Close search",
|
|
5430
|
-
className: styles$
|
|
5428
|
+
className: styles$n.closeButton,
|
|
5431
5429
|
icon: /*#__PURE__*/React.createElement(Icon, {
|
|
5432
5430
|
name: "general.x",
|
|
5433
5431
|
theme: "--t-icon-color-dim"
|
|
@@ -5774,7 +5772,7 @@ true;
|
|
|
5774
5772
|
})));
|
|
5775
5773
|
}
|
|
5776
5774
|
|
|
5777
|
-
var styles$
|
|
5775
|
+
var styles$m = {"spinner":"spinner-b5tlz"};
|
|
5778
5776
|
|
|
5779
5777
|
function LoadingSpinner({
|
|
5780
5778
|
size = 48,
|
|
@@ -5782,7 +5780,7 @@ true;
|
|
|
5782
5780
|
}) {
|
|
5783
5781
|
return /*#__PURE__*/React.createElement("span", {
|
|
5784
5782
|
"aria-hidden": "true",
|
|
5785
|
-
className: styles$
|
|
5783
|
+
className: styles$m.spinner,
|
|
5786
5784
|
style: {
|
|
5787
5785
|
"--spinner-size": `${size}px`,
|
|
5788
5786
|
"--spinner-track-width": `${trackWidth}px`
|
|
@@ -5964,10 +5962,10 @@ true;
|
|
|
5964
5962
|
selected: product
|
|
5965
5963
|
}, results)), /*#__PURE__*/React.createElement("div", {
|
|
5966
5964
|
"aria-live": "polite",
|
|
5967
|
-
className: styles$
|
|
5965
|
+
className: styles$v.visuallyHidden
|
|
5968
5966
|
}, announceHighlight ? (_b = navigation.highlighted) === null || _b === void 0 ? void 0 : _b.title : null), /*#__PURE__*/React.createElement("div", {
|
|
5969
5967
|
"aria-live": "polite",
|
|
5970
|
-
className: styles$
|
|
5968
|
+
className: styles$v.visuallyHidden,
|
|
5971
5969
|
"data-testid": "result-count"
|
|
5972
5970
|
}, resultCount), mobile ? null : /*#__PURE__*/React.createElement(KeyboardHints, {
|
|
5973
5971
|
copied: navigation.copied
|
|
@@ -6184,7 +6182,7 @@ true;
|
|
|
6184
6182
|
onClick: () => setOpen(true)
|
|
6185
6183
|
}), /*#__PURE__*/React.createElement(tapestry.Modal, {
|
|
6186
6184
|
"aria-label": "Search",
|
|
6187
|
-
className: styles$
|
|
6185
|
+
className: styles$v.modal,
|
|
6188
6186
|
dismissible: true,
|
|
6189
6187
|
id: "product_search_modal",
|
|
6190
6188
|
onClose: () => setOpen(false),
|
|
@@ -6251,7 +6249,17 @@ true;
|
|
|
6251
6249
|
});
|
|
6252
6250
|
}
|
|
6253
6251
|
|
|
6254
|
-
var styles$
|
|
6252
|
+
var styles$l = {"route":"route--8BWe","is-active":"is-active-FsU9Y","apps-routes-separator":"apps-routes-separator-Nlm-N"};
|
|
6253
|
+
|
|
6254
|
+
function Divider() {
|
|
6255
|
+
return /*#__PURE__*/React.createElement("hr", {
|
|
6256
|
+
style: {
|
|
6257
|
+
border: 0,
|
|
6258
|
+
borderTop: "var(--t-border-width) solid var(--t-border-color)",
|
|
6259
|
+
margin: 0
|
|
6260
|
+
}
|
|
6261
|
+
});
|
|
6262
|
+
}
|
|
6255
6263
|
|
|
6256
6264
|
const HoverableListItem = ({
|
|
6257
6265
|
active = false,
|
|
@@ -6308,7 +6316,7 @@ true;
|
|
|
6308
6316
|
}
|
|
6309
6317
|
}
|
|
6310
6318
|
|
|
6311
|
-
var styles$
|
|
6319
|
+
var styles$k = {"popup-root":"popup-root-SeL5u","popup":"popup-nQXYW","is-visible":"is-visible-3DAUP"};
|
|
6312
6320
|
|
|
6313
6321
|
const Popup = ({
|
|
6314
6322
|
className,
|
|
@@ -6316,8 +6324,8 @@ true;
|
|
|
6316
6324
|
isVisible,
|
|
6317
6325
|
...nativeProps
|
|
6318
6326
|
}) => (/*#__PURE__*/React.createElement(C, {
|
|
6319
|
-
className: classnames(styles$
|
|
6320
|
-
[styles$
|
|
6327
|
+
className: classnames(styles$k.popup, {
|
|
6328
|
+
[styles$k["is-visible"]]: isVisible
|
|
6321
6329
|
}, className),
|
|
6322
6330
|
...nativeProps
|
|
6323
6331
|
}));
|
|
@@ -6325,7 +6333,7 @@ true;
|
|
|
6325
6333
|
const PopupRoot = ({
|
|
6326
6334
|
...nativeProps
|
|
6327
6335
|
}) => (/*#__PURE__*/React.createElement("div", {
|
|
6328
|
-
className: styles$
|
|
6336
|
+
className: styles$k["popup-root"],
|
|
6329
6337
|
...nativeProps
|
|
6330
6338
|
}));
|
|
6331
6339
|
|
|
@@ -6336,7 +6344,7 @@ true;
|
|
|
6336
6344
|
flex: "1 1 auto"
|
|
6337
6345
|
};
|
|
6338
6346
|
|
|
6339
|
-
var styles$
|
|
6347
|
+
var styles$j = {"popup":"popup-mDNKn","trigger-wrap":"trigger-wrap-Jd-KR","trigger":"trigger-WgRT5","is-visible":"is-visible-GZC0-","trigger-orgname":"trigger-orgname-TDHCc","logout":"logout-LwTKE"};
|
|
6340
6348
|
|
|
6341
6349
|
const UserMenu = ({
|
|
6342
6350
|
appName,
|
|
@@ -6355,7 +6363,7 @@ true;
|
|
|
6355
6363
|
component: Outsider,
|
|
6356
6364
|
onOutsideClick: () => setUserMenuVisible(false),
|
|
6357
6365
|
cleanup: !userMenuVisible,
|
|
6358
|
-
className: styles$
|
|
6366
|
+
className: styles$j.popup,
|
|
6359
6367
|
isVisible: userMenuVisible
|
|
6360
6368
|
}, /*#__PURE__*/React.createElement("div", null, hasConnectedPeople ? (/*#__PURE__*/React.createElement("div", {
|
|
6361
6369
|
style: {
|
|
@@ -6431,42 +6439,27 @@ true;
|
|
|
6431
6439
|
whiteSpace: "nowrap",
|
|
6432
6440
|
...fontFamily
|
|
6433
6441
|
}
|
|
6434
|
-
}, person.organization_name)))))),
|
|
6442
|
+
}, person.organization_name)))))), hasConnectedPeople && /*#__PURE__*/React.createElement(Divider, null), /*#__PURE__*/React.createElement("form", {
|
|
6435
6443
|
method: "POST",
|
|
6436
6444
|
action: logoutUrl
|
|
6437
|
-
}, /*#__PURE__*/React.createElement(
|
|
6445
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
6446
|
+
className: styles$j.logout,
|
|
6438
6447
|
"data-turbolinks": false,
|
|
6439
|
-
hover: {
|
|
6440
|
-
backgroundColor: "var(--t-fill-color-neutral-080)"
|
|
6441
|
-
},
|
|
6442
6448
|
onClick: () => {
|
|
6443
6449
|
requestClearAppsCache();
|
|
6444
6450
|
requestClearConnectedPeopleCache();
|
|
6445
|
-
return;
|
|
6446
6451
|
},
|
|
6452
|
+
type: "submit"
|
|
6453
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
6447
6454
|
style: {
|
|
6448
|
-
|
|
6449
|
-
|
|
6450
|
-
|
|
6451
|
-
|
|
6452
|
-
theme: false,
|
|
6453
|
-
type: "submit",
|
|
6454
|
-
width: "100%"
|
|
6455
|
-
}, /*#__PURE__*/React.createElement(tapestryReact.StackView, {
|
|
6456
|
-
distribution: "space-between",
|
|
6457
|
-
alignment: "center",
|
|
6458
|
-
axis: "horizontal",
|
|
6459
|
-
grow: 1,
|
|
6460
|
-
paddingHorizontal: 2,
|
|
6461
|
-
paddingVertical: 1.5,
|
|
6462
|
-
spacing: 4
|
|
6463
|
-
}, /*#__PURE__*/React.createElement(tapestryReact.Text, {
|
|
6464
|
-
color: "var(--t-text-color-secondary)",
|
|
6465
|
-
lineHeight: "24px"
|
|
6466
|
-
}, "Log out"), /*#__PURE__*/React.createElement(tapestryReact.Icon, {
|
|
6455
|
+
color: "var(--t-text-color-secondary)",
|
|
6456
|
+
lineHeight: "24px"
|
|
6457
|
+
}
|
|
6458
|
+
}, "Log out"), /*#__PURE__*/React.createElement(Icon, {
|
|
6467
6459
|
name: "general.intoBox",
|
|
6468
|
-
|
|
6469
|
-
|
|
6460
|
+
size: 14,
|
|
6461
|
+
theme: "--t-icon-color-secondary"
|
|
6462
|
+
})))));
|
|
6470
6463
|
};
|
|
6471
6464
|
|
|
6472
6465
|
const Hoverable = ({
|
|
@@ -6499,11 +6492,11 @@ true;
|
|
|
6499
6492
|
userMenuVisible
|
|
6500
6493
|
}) => {
|
|
6501
6494
|
return /*#__PURE__*/React.createElement("div", {
|
|
6502
|
-
className: styles$
|
|
6495
|
+
className: styles$j["trigger-wrap"],
|
|
6503
6496
|
"data-pendo": "topbar-org-switcher"
|
|
6504
6497
|
}, /*#__PURE__*/React.createElement(Hoverable, {
|
|
6505
|
-
className: classnames(styles$
|
|
6506
|
-
[styles$
|
|
6498
|
+
className: classnames(styles$j["trigger"], {
|
|
6499
|
+
[styles$j["is-visible"]]: userMenuVisible
|
|
6507
6500
|
}),
|
|
6508
6501
|
component: "button",
|
|
6509
6502
|
type: "button",
|
|
@@ -6515,7 +6508,7 @@ true;
|
|
|
6515
6508
|
requestConnectedPeopleFetch();
|
|
6516
6509
|
}
|
|
6517
6510
|
}, showOrgName && (/*#__PURE__*/React.createElement("span", {
|
|
6518
|
-
className: styles$
|
|
6511
|
+
className: styles$j["trigger-orgname"]
|
|
6519
6512
|
}, orgName)), /*#__PURE__*/React.createElement(DisclosureChevronIcon, null)));
|
|
6520
6513
|
};
|
|
6521
6514
|
|
|
@@ -6570,7 +6563,7 @@ true;
|
|
|
6570
6563
|
colors: props.colors,
|
|
6571
6564
|
requestAppsFetch: props.requestAppsFetch
|
|
6572
6565
|
}), /*#__PURE__*/React.createElement("div", {
|
|
6573
|
-
className: styles$
|
|
6566
|
+
className: styles$l["apps-routes-separator"]
|
|
6574
6567
|
}), routesVisible && props.routes, /*#__PURE__*/React.createElement("div", {
|
|
6575
6568
|
style: {
|
|
6576
6569
|
margin: "auto"
|
|
@@ -6612,13 +6605,13 @@ true;
|
|
|
6612
6605
|
...nativeProps
|
|
6613
6606
|
}) => {
|
|
6614
6607
|
return /*#__PURE__*/React.createElement("a", {
|
|
6615
|
-
className: classnames(styles$
|
|
6608
|
+
className: classnames(styles$l["route"], className, active && styles$l["is-active"]),
|
|
6616
6609
|
...nativeProps
|
|
6617
6610
|
});
|
|
6618
6611
|
};
|
|
6619
6612
|
const NotSmallTopbar = withErrorBoundary(UnguardedNotSmallTopbar, /*#__PURE__*/React.createElement(TopbarPlaceholder, null));
|
|
6620
6613
|
|
|
6621
|
-
var styles$
|
|
6614
|
+
var styles$i = {"avatar":"avatar-tW-wn"};
|
|
6622
6615
|
|
|
6623
6616
|
function Avatar({
|
|
6624
6617
|
env,
|
|
@@ -6628,7 +6621,7 @@ true;
|
|
|
6628
6621
|
}) {
|
|
6629
6622
|
const url = incomingUrl || `${pcoUrl$1(env)("people")}/static/no_photo_thumbnail_gray.svg`;
|
|
6630
6623
|
return /*#__PURE__*/React.createElement("div", {
|
|
6631
|
-
className: styles$
|
|
6624
|
+
className: styles$i.avatar,
|
|
6632
6625
|
style: {
|
|
6633
6626
|
backgroundImage: `url(${url})`,
|
|
6634
6627
|
...style
|
|
@@ -6703,7 +6696,7 @@ true;
|
|
|
6703
6696
|
};
|
|
6704
6697
|
}
|
|
6705
6698
|
|
|
6706
|
-
var styles$
|
|
6699
|
+
var styles$h = {"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"};
|
|
6707
6700
|
|
|
6708
6701
|
const AppsSwitcher = ({
|
|
6709
6702
|
appName,
|
|
@@ -6734,8 +6727,8 @@ true;
|
|
|
6734
6727
|
}, /*#__PURE__*/React.createElement("a", {
|
|
6735
6728
|
"aria-current": name === appName ? "page" : undefined,
|
|
6736
6729
|
"aria-label": name,
|
|
6737
|
-
className: classnames(styles$
|
|
6738
|
-
[styles$
|
|
6730
|
+
className: classnames(styles$h.link, {
|
|
6731
|
+
[styles$h.current]: name === appName
|
|
6739
6732
|
}),
|
|
6740
6733
|
"data-pendo": `app-switcher--change-app--${name}`,
|
|
6741
6734
|
"data-turbolinks": false,
|
|
@@ -6747,7 +6740,7 @@ true;
|
|
|
6747
6740
|
"aria-expanded": visible,
|
|
6748
6741
|
"aria-haspopup": "true",
|
|
6749
6742
|
"aria-label": `App switcher: ${appName}`,
|
|
6750
|
-
className: styles$
|
|
6743
|
+
className: styles$h.trigger,
|
|
6751
6744
|
onClick: onTriggerClick,
|
|
6752
6745
|
type: "button"
|
|
6753
6746
|
}, appName === "Church Center" ? (/*#__PURE__*/React.createElement(ChurchCenterIcon, {
|
|
@@ -6756,41 +6749,41 @@ true;
|
|
|
6756
6749
|
appName: appName.replace(/[\s-]/, "")
|
|
6757
6750
|
}))), /*#__PURE__*/reactDom.createPortal(/*#__PURE__*/React.createElement("div", {
|
|
6758
6751
|
ref: containerRef,
|
|
6759
|
-
className: classnames(styles$
|
|
6760
|
-
[styles$
|
|
6752
|
+
className: classnames(styles$h.layer, {
|
|
6753
|
+
[styles$h["layer--visible"]]: visible
|
|
6761
6754
|
}),
|
|
6762
6755
|
onClick: toggle,
|
|
6763
6756
|
onKeyDown: handleKeyDown
|
|
6764
6757
|
}, /*#__PURE__*/React.createElement("nav", {
|
|
6765
6758
|
"aria-label": "Switch app",
|
|
6766
6759
|
"aria-modal": visible,
|
|
6767
|
-
className: styles$
|
|
6760
|
+
className: styles$h.panel,
|
|
6768
6761
|
"data-pendo": "app-switcher",
|
|
6769
6762
|
onClick: event => event.stopPropagation(),
|
|
6770
6763
|
role: "dialog"
|
|
6771
6764
|
}, /*#__PURE__*/React.createElement("div", {
|
|
6772
|
-
className: styles$
|
|
6765
|
+
className: styles$h.header
|
|
6773
6766
|
}, /*#__PURE__*/React.createElement("span", {
|
|
6774
|
-
className: styles$
|
|
6767
|
+
className: styles$h.heading
|
|
6775
6768
|
}, "Switch to"), /*#__PURE__*/React.createElement("button", {
|
|
6776
6769
|
"aria-label": "Close",
|
|
6777
|
-
className: styles$
|
|
6770
|
+
className: styles$h.close,
|
|
6778
6771
|
onClick: toggle,
|
|
6779
6772
|
type: "button"
|
|
6780
6773
|
}, /*#__PURE__*/React.createElement(X, {
|
|
6781
6774
|
"aria-hidden": "true",
|
|
6782
6775
|
fill: "var(--t-icon-color-dim)"
|
|
6783
6776
|
}))), /*#__PURE__*/React.createElement("ul", {
|
|
6784
|
-
className: styles$
|
|
6777
|
+
className: styles$h.list,
|
|
6785
6778
|
role: "list"
|
|
6786
6779
|
}, homeProduct && productLink(homeProduct.name), restProducts.map(({
|
|
6787
6780
|
name
|
|
6788
6781
|
}) => productLink(name)), accountsProduct && (/*#__PURE__*/React.createElement("li", {
|
|
6789
|
-
className: styles$
|
|
6782
|
+
className: styles$h["accounts-item"]
|
|
6790
6783
|
}, /*#__PURE__*/React.createElement("a", {
|
|
6791
6784
|
"aria-current": appName === "Accounts" ? "page" : undefined,
|
|
6792
6785
|
"aria-label": "Account settings",
|
|
6793
|
-
className: classnames(styles$
|
|
6786
|
+
className: classnames(styles$h.link, styles$h["accounts-link"]),
|
|
6794
6787
|
"data-pendo": "app-switcher--change-app--Accounts",
|
|
6795
6788
|
"data-turbolinks": false,
|
|
6796
6789
|
href: pcoUrl$1(env)("accounts") + getAppsSwitchProductPath(accountsProduct.name)
|
|
@@ -6799,7 +6792,7 @@ true;
|
|
|
6799
6792
|
colors: colors
|
|
6800
6793
|
})))), showChurchCenter && (/*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("a", {
|
|
6801
6794
|
"aria-current": appName === "Church Center" ? "page" : undefined,
|
|
6802
|
-
className: classnames(styles$
|
|
6795
|
+
className: classnames(styles$h.link, styles$h["accounts-link"]),
|
|
6803
6796
|
"data-pendo": "app-switcher--change-app--ChurchCenter",
|
|
6804
6797
|
"data-turbolinks": false,
|
|
6805
6798
|
href: `${pcoUrl$1(env)("publishing")}/church-center`
|
|
@@ -6808,7 +6801,7 @@ true;
|
|
|
6808
6801
|
}))))))), document.body));
|
|
6809
6802
|
};
|
|
6810
6803
|
|
|
6811
|
-
var styles$
|
|
6804
|
+
var styles$g = {"current-route":"current-route-wpJgz","actions":"actions-INQ7-","is-active":"is-active-wy8Bg","routes":"routes-Nmt1S","route":"route-kkknQ","profile-button":"profile-button-a2WO2"};
|
|
6812
6805
|
|
|
6813
6806
|
const UnguardedSmallTopbar = ({
|
|
6814
6807
|
currentRouteComponent = props => (/*#__PURE__*/React.createElement("span", {
|
|
@@ -6861,18 +6854,18 @@ true;
|
|
|
6861
6854
|
toggle: toggleProductSwitcher,
|
|
6862
6855
|
visible: productSwitcherVisible
|
|
6863
6856
|
}), routesMenuVisible && (/*#__PURE__*/React.createElement("div", {
|
|
6864
|
-
className: styles$
|
|
6857
|
+
className: styles$g["routes"]
|
|
6865
6858
|
}, props.routes)), /*#__PURE__*/React.createElement("button", {
|
|
6866
6859
|
type: "button",
|
|
6867
|
-
className: classnames(styles$
|
|
6868
|
-
[styles$
|
|
6860
|
+
className: classnames(styles$g["current-route"], {
|
|
6861
|
+
[styles$g["is-active"]]: routesMenuVisible
|
|
6869
6862
|
}),
|
|
6870
6863
|
onClick: props.routes.length > 0 ? () => {
|
|
6871
6864
|
setProductSwitcherVisible(false);
|
|
6872
6865
|
setRoutesMenuVisible(visible => !visible);
|
|
6873
6866
|
} : null
|
|
6874
6867
|
}, /*#__PURE__*/React.createElement(CurrentRouteComponent, null, capitalize$1(currentRouteText)), props.routes.length > 0 && /*#__PURE__*/React.createElement(DisclosureChevronIcon, null)), /*#__PURE__*/React.createElement("div", {
|
|
6875
|
-
className: styles$
|
|
6868
|
+
className: styles$g["actions"]
|
|
6876
6869
|
}, productSearchEnabled && (/*#__PURE__*/React.createElement(ProductSearch, {
|
|
6877
6870
|
appName: props.appName,
|
|
6878
6871
|
apps: props.apps,
|
|
@@ -6880,7 +6873,7 @@ true;
|
|
|
6880
6873
|
env: props.env
|
|
6881
6874
|
})), /*#__PURE__*/React.createElement("button", {
|
|
6882
6875
|
type: "button",
|
|
6883
|
-
className: styles$
|
|
6876
|
+
className: styles$g["profile-button"],
|
|
6884
6877
|
onClick: () => {
|
|
6885
6878
|
var _a, _b;
|
|
6886
6879
|
props.requestConnectedPeopleFetch();
|
|
@@ -6896,7 +6889,7 @@ true;
|
|
|
6896
6889
|
className,
|
|
6897
6890
|
...props
|
|
6898
6891
|
}) => (/*#__PURE__*/React.createElement("a", {
|
|
6899
|
-
className: classnames(styles$
|
|
6892
|
+
className: classnames(styles$g["route"], className, active && styles$g["is-active"]),
|
|
6900
6893
|
...props
|
|
6901
6894
|
}));
|
|
6902
6895
|
const SmallTopbar = withErrorBoundary(UnguardedSmallTopbar, /*#__PURE__*/React.createElement(TopbarPlaceholder, null));
|
|
@@ -7016,27 +7009,7 @@ true;
|
|
|
7016
7009
|
return queryPart ? `${pathPart}?${decodeURIComponent(queryPart)}` : pathPart;
|
|
7017
7010
|
}
|
|
7018
7011
|
|
|
7019
|
-
|
|
7020
|
-
generateColorScale
|
|
7021
|
-
} = tapestryReact.designSystem;
|
|
7022
|
-
const topbarTheme = {
|
|
7023
|
-
colors: {
|
|
7024
|
-
...generateColorScale({
|
|
7025
|
-
baseColor: "#2266f7",
|
|
7026
|
-
key: "primary"
|
|
7027
|
-
}),
|
|
7028
|
-
separatorTertiary: "var(--t-border-color)"
|
|
7029
|
-
},
|
|
7030
|
-
icons: {
|
|
7031
|
-
churchCenter: churchCenter__namespace,
|
|
7032
|
-
general: general__namespace,
|
|
7033
|
-
people: people__namespace,
|
|
7034
|
-
toolbar: toolbar__namespace
|
|
7035
|
-
},
|
|
7036
|
-
id: "topbar"
|
|
7037
|
-
};
|
|
7038
|
-
|
|
7039
|
-
var styles$5 = {"debug-pco-resource":"debug-pco-resource-sLteM","debug-pco-resource-header":"debug-pco-resource-header-5fEbe","debug-pco-resource-badge":"debug-pco-resource-badge-J9v1F","debug-pco-resource-title":"debug-pco-resource-title-volWV","debug-pco-resource-field":"debug-pco-resource-field-7Gitp","debug-pco-resource-field-label":"debug-pco-resource-field-label--f1xX","debug-pco-resource-field-value":"debug-pco-resource-field-value-YoX-C","debug-pco-resource-note":"debug-pco-resource-note-N5xyf","debug-pco-resource-json":"debug-pco-resource-json-Rx-JI"};
|
|
7012
|
+
var styles$f = {"debug-pco-resource":"debug-pco-resource-sLteM","debug-pco-resource-header":"debug-pco-resource-header-5fEbe","debug-pco-resource-badge":"debug-pco-resource-badge-J9v1F","debug-pco-resource-title":"debug-pco-resource-title-volWV","debug-pco-resource-field":"debug-pco-resource-field-7Gitp","debug-pco-resource-field-label":"debug-pco-resource-field-label--f1xX","debug-pco-resource-field-value":"debug-pco-resource-field-value-YoX-C","debug-pco-resource-note":"debug-pco-resource-note-N5xyf","debug-pco-resource-json":"debug-pco-resource-json-Rx-JI"};
|
|
7040
7013
|
|
|
7041
7014
|
function isPresent(value) {
|
|
7042
7015
|
return value !== undefined && value.trim() !== "";
|
|
@@ -7065,11 +7038,11 @@ true;
|
|
|
7065
7038
|
value
|
|
7066
7039
|
}) {
|
|
7067
7040
|
return /*#__PURE__*/React.createElement("div", {
|
|
7068
|
-
className: styles$
|
|
7041
|
+
className: styles$f["debug-pco-resource-field"]
|
|
7069
7042
|
}, /*#__PURE__*/React.createElement("span", {
|
|
7070
|
-
className: styles$
|
|
7043
|
+
className: styles$f["debug-pco-resource-field-label"]
|
|
7071
7044
|
}, label), /*#__PURE__*/React.createElement("span", {
|
|
7072
|
-
className: styles$
|
|
7045
|
+
className: styles$f["debug-pco-resource-field-value"]
|
|
7073
7046
|
}, value));
|
|
7074
7047
|
}
|
|
7075
7048
|
// Only staff ghosting or impersonating a person get pco:staff-access-level,
|
|
@@ -7142,13 +7115,13 @@ true;
|
|
|
7142
7115
|
};
|
|
7143
7116
|
}, [pcrl, env]);
|
|
7144
7117
|
return /*#__PURE__*/React.createElement("div", {
|
|
7145
|
-
className: classnames("staff-only", styles$
|
|
7118
|
+
className: classnames("staff-only", styles$f["debug-pco-resource"])
|
|
7146
7119
|
}, /*#__PURE__*/React.createElement("div", {
|
|
7147
|
-
className: styles$
|
|
7120
|
+
className: styles$f["debug-pco-resource-header"]
|
|
7148
7121
|
}, /*#__PURE__*/React.createElement("span", {
|
|
7149
|
-
className: styles$
|
|
7122
|
+
className: styles$f["debug-pco-resource-badge"]
|
|
7150
7123
|
}, "Staff"), /*#__PURE__*/React.createElement("span", {
|
|
7151
|
-
className: styles$
|
|
7124
|
+
className: styles$f["debug-pco-resource-title"]
|
|
7152
7125
|
}, "Recently Visited debug")), /*#__PURE__*/React.createElement(Field, {
|
|
7153
7126
|
label: "pco:resource",
|
|
7154
7127
|
value: describeTag("resource", resource)
|
|
@@ -7156,29 +7129,29 @@ true;
|
|
|
7156
7129
|
label: "pco:recently_visitable",
|
|
7157
7130
|
value: describeTag("recently_visitable", recentlyVisitable)
|
|
7158
7131
|
}), hasInvalidResource && (/*#__PURE__*/React.createElement("p", {
|
|
7159
|
-
className: styles$
|
|
7132
|
+
className: styles$f["debug-pco-resource-note"]
|
|
7160
7133
|
}, "pco:resource isn't a PCRL (product/v2/type/id), so Recently Visited ignores it.")), visit === null && (/*#__PURE__*/React.createElement("p", {
|
|
7161
|
-
className: styles$
|
|
7134
|
+
className: styles$f["debug-pco-resource-note"]
|
|
7162
7135
|
}, "This page is not eligible for Recently Visited")), pcrl && hasRecentlyVisitable && (/*#__PURE__*/React.createElement("p", {
|
|
7163
|
-
className: styles$
|
|
7136
|
+
className: styles$f["debug-pco-resource-note"]
|
|
7164
7137
|
}, "Both tags are present \u2014 pco:resource takes precedence for the Recently Visited entry.")), pcrl && lookup.status === "loading" && (/*#__PURE__*/React.createElement("p", {
|
|
7165
|
-
className: styles$
|
|
7138
|
+
className: styles$f["debug-pco-resource-note"]
|
|
7166
7139
|
}, "Looking up resource\u2026")), pcrl && lookup.status === "error" && (/*#__PURE__*/React.createElement("p", {
|
|
7167
|
-
className: styles$
|
|
7140
|
+
className: styles$f["debug-pco-resource-note"]
|
|
7168
7141
|
}, lookup.message)), pcrl && lookup.status === "loaded" && (/*#__PURE__*/React.createElement("pre", {
|
|
7169
|
-
className: styles$
|
|
7142
|
+
className: styles$f["debug-pco-resource-json"]
|
|
7170
7143
|
}, JSON.stringify(lookup.json, null, 2))), (visit === null || visit === void 0 ? void 0 : visit.type) === "page" && (/*#__PURE__*/React.createElement("p", {
|
|
7171
|
-
className: styles$
|
|
7144
|
+
className: styles$f["debug-pco-resource-note"]
|
|
7172
7145
|
}, "Recently Visited title: ", visit.title)), /*#__PURE__*/React.createElement("span", {
|
|
7173
|
-
className: styles$
|
|
7146
|
+
className: styles$f["debug-pco-resource-field-label"]
|
|
7174
7147
|
}, "Recently Visited"), personId ? (/*#__PURE__*/React.createElement("pre", {
|
|
7175
|
-
className: styles$
|
|
7148
|
+
className: styles$f["debug-pco-resource-json"]
|
|
7176
7149
|
}, JSON.stringify(recentlyVisited, null, 2))) : (/*#__PURE__*/React.createElement("p", {
|
|
7177
|
-
className: styles$
|
|
7150
|
+
className: styles$f["debug-pco-resource-note"]
|
|
7178
7151
|
}, "No current person, so nothing is recorded.")));
|
|
7179
7152
|
}
|
|
7180
7153
|
|
|
7181
|
-
var styles$
|
|
7154
|
+
var styles$e = {"drawer-wrap":"drawer-wrap-J0rSL","is-visible":"is-visible-KTME8","drawer":"drawer-j7f4l"};
|
|
7182
7155
|
|
|
7183
7156
|
function Drawer({
|
|
7184
7157
|
children,
|
|
@@ -7186,7 +7159,7 @@ true;
|
|
|
7186
7159
|
}) {
|
|
7187
7160
|
return /*#__PURE__*/React.createElement("div", {
|
|
7188
7161
|
id: id,
|
|
7189
|
-
className: styles$
|
|
7162
|
+
className: styles$e["drawer"]
|
|
7190
7163
|
}, children);
|
|
7191
7164
|
}
|
|
7192
7165
|
function DrawerWrap({
|
|
@@ -7196,70 +7169,88 @@ true;
|
|
|
7196
7169
|
...props
|
|
7197
7170
|
}) {
|
|
7198
7171
|
return /*#__PURE__*/React.createElement("div", {
|
|
7199
|
-
className: classnames(styles$
|
|
7172
|
+
className: classnames(styles$e["drawer-wrap"], className, isVisible && styles$e["is-visible"]),
|
|
7200
7173
|
...props
|
|
7201
7174
|
}, children);
|
|
7202
7175
|
}
|
|
7203
7176
|
|
|
7177
|
+
function CloseButton({
|
|
7178
|
+
onClick
|
|
7179
|
+
}) {
|
|
7180
|
+
return /*#__PURE__*/React.createElement(tapestry.IconButton, {
|
|
7181
|
+
"aria-label": "Close",
|
|
7182
|
+
icon: /*#__PURE__*/React.createElement(Icon, {
|
|
7183
|
+
name: "general.x",
|
|
7184
|
+
theme: "--t-icon-color-dim"
|
|
7185
|
+
}),
|
|
7186
|
+
kind: "ghost",
|
|
7187
|
+
onClick: onClick,
|
|
7188
|
+
size: "md",
|
|
7189
|
+
style: {
|
|
7190
|
+
marginTop: "var(--t-spacing-fourth)"
|
|
7191
|
+
}
|
|
7192
|
+
});
|
|
7193
|
+
}
|
|
7194
|
+
|
|
7204
7195
|
function DrawerHeader({
|
|
7205
7196
|
children,
|
|
7206
7197
|
closeDrawer
|
|
7207
7198
|
}) {
|
|
7208
|
-
return /*#__PURE__*/React.createElement(
|
|
7209
|
-
|
|
7210
|
-
|
|
7211
|
-
|
|
7212
|
-
|
|
7213
|
-
|
|
7214
|
-
|
|
7215
|
-
}, /*#__PURE__*/React.createElement(
|
|
7216
|
-
|
|
7217
|
-
|
|
7218
|
-
|
|
7219
|
-
|
|
7220
|
-
|
|
7221
|
-
|
|
7222
|
-
|
|
7223
|
-
onClick: () => closeDrawer(),
|
|
7224
|
-
title: "Close",
|
|
7225
|
-
theme: false,
|
|
7226
|
-
hover: {
|
|
7227
|
-
backgroundColor: "var(--t-fill-color-neutral-070)"
|
|
7228
|
-
},
|
|
7229
|
-
marginTop: 0.25
|
|
7230
|
-
})));
|
|
7199
|
+
return /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
7200
|
+
align: "start",
|
|
7201
|
+
justify: "space-between",
|
|
7202
|
+
style: {
|
|
7203
|
+
color: "var(--t-text-color)",
|
|
7204
|
+
padding: "var(--t-spacing-1) var(--t-spacing-2) var(--t-spacing-2)"
|
|
7205
|
+
}
|
|
7206
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
7207
|
+
style: {
|
|
7208
|
+
flex: 1,
|
|
7209
|
+
minWidth: 0
|
|
7210
|
+
}
|
|
7211
|
+
}, children), closeDrawer && /*#__PURE__*/React.createElement(CloseButton, {
|
|
7212
|
+
onClick: () => closeDrawer()
|
|
7213
|
+
}));
|
|
7231
7214
|
}
|
|
7232
7215
|
|
|
7216
|
+
var styles$d = {"drawer-heading":"drawer-heading-DlyzD"};
|
|
7217
|
+
|
|
7233
7218
|
function DrawerHeading({
|
|
7234
|
-
|
|
7219
|
+
className,
|
|
7235
7220
|
...props
|
|
7236
7221
|
}) {
|
|
7237
|
-
return /*#__PURE__*/React.createElement(
|
|
7238
|
-
|
|
7239
|
-
letterSpacing: ".002em",
|
|
7240
|
-
level: 2,
|
|
7241
|
-
lineHeight: "35px",
|
|
7242
|
-
weight: 700,
|
|
7222
|
+
return /*#__PURE__*/React.createElement("h2", {
|
|
7223
|
+
className: classnames(styles$d["drawer-heading"], className),
|
|
7243
7224
|
...props
|
|
7244
|
-
}
|
|
7225
|
+
});
|
|
7245
7226
|
}
|
|
7246
7227
|
|
|
7228
|
+
var styles$c = {"scroll-region":"scroll-region-RMNlr"};
|
|
7229
|
+
|
|
7247
7230
|
// TODO: This component could prob be genrealized to provide overflow-y scroll indication, as well, if needed.
|
|
7248
7231
|
// `top`/`bottom` // `left`/`right` → `start`/`end`
|
|
7232
|
+
const INDICATOR_BASE_STYLE = {
|
|
7233
|
+
height: "var(--t-spacing-1)",
|
|
7234
|
+
insetInline: 0,
|
|
7235
|
+
pointerEvents: "none",
|
|
7236
|
+
position: "absolute",
|
|
7237
|
+
zIndex: 10
|
|
7238
|
+
};
|
|
7249
7239
|
const INDICATOR_STYLES = {
|
|
7250
7240
|
bottom: {
|
|
7241
|
+
...INDICATOR_BASE_STYLE,
|
|
7251
7242
|
background: "linear-gradient(rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.07))",
|
|
7252
7243
|
bottom: 0
|
|
7253
7244
|
},
|
|
7254
7245
|
top: {
|
|
7246
|
+
...INDICATOR_BASE_STYLE,
|
|
7255
7247
|
background: "linear-gradient(rgba(0, 0, 0, 0.07), rgba(255, 255, 255, 0))",
|
|
7256
7248
|
top: 0
|
|
7257
7249
|
}
|
|
7258
7250
|
};
|
|
7259
7251
|
// Perf: should this component be memoized?
|
|
7260
7252
|
const ScrollContainer = ({
|
|
7261
|
-
children
|
|
7262
|
-
...props
|
|
7253
|
+
children
|
|
7263
7254
|
}) => {
|
|
7264
7255
|
const [overflowTop, setOverflowTop] = React.useState(false);
|
|
7265
7256
|
const [overflowBottom, setOverflowBottom] = React.useState(false);
|
|
@@ -7312,75 +7303,74 @@ true;
|
|
|
7312
7303
|
resizeObserver.unobserve(container);
|
|
7313
7304
|
};
|
|
7314
7305
|
}, []);
|
|
7315
|
-
return /*#__PURE__*/React.createElement(
|
|
7306
|
+
return /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
7307
|
+
direction: "column",
|
|
7316
7308
|
grow: 1,
|
|
7317
|
-
|
|
7318
|
-
|
|
7309
|
+
shrink: 1,
|
|
7310
|
+
style: {
|
|
7311
|
+
minHeight: 0,
|
|
7312
|
+
position: "relative"
|
|
7313
|
+
}
|
|
7319
7314
|
}, overflowTop && /*#__PURE__*/React.createElement(OverflowIndicator, {
|
|
7320
7315
|
edge: "top"
|
|
7321
7316
|
}), overflowBottom && /*#__PURE__*/React.createElement(OverflowIndicator, {
|
|
7322
7317
|
edge: "bottom"
|
|
7323
|
-
}), /*#__PURE__*/React.createElement(
|
|
7324
|
-
|
|
7318
|
+
}), /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
7319
|
+
className: styles$c["scroll-region"],
|
|
7320
|
+
direction: "column",
|
|
7325
7321
|
grow: 1,
|
|
7326
|
-
|
|
7327
|
-
overflow: "auto",
|
|
7322
|
+
ref: containerRef,
|
|
7328
7323
|
role: "region",
|
|
7329
|
-
shrink: 1
|
|
7330
|
-
|
|
7331
|
-
|
|
7332
|
-
|
|
7333
|
-
|
|
7334
|
-
}, /*#__PURE__*/React.createElement(tapestryReact.Box, {
|
|
7335
|
-
innerRef: topEdgeRef
|
|
7336
|
-
}), children, /*#__PURE__*/React.createElement(tapestryReact.Box, {
|
|
7337
|
-
innerRef: bottomEdgeRef
|
|
7324
|
+
shrink: 1
|
|
7325
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
7326
|
+
ref: topEdgeRef
|
|
7327
|
+
}), children, /*#__PURE__*/React.createElement("div", {
|
|
7328
|
+
ref: bottomEdgeRef
|
|
7338
7329
|
})));
|
|
7339
7330
|
};
|
|
7340
7331
|
const OverflowIndicator = ({
|
|
7341
7332
|
edge
|
|
7342
7333
|
}) => {
|
|
7343
|
-
return /*#__PURE__*/React.createElement(
|
|
7344
|
-
height: 1,
|
|
7345
|
-
left: 0,
|
|
7346
|
-
pointerEvents: "none",
|
|
7347
|
-
position: "absolute",
|
|
7348
|
-
right: 0,
|
|
7334
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
7349
7335
|
role: "presentation",
|
|
7350
|
-
|
|
7351
|
-
...INDICATOR_STYLES[edge]
|
|
7336
|
+
style: INDICATOR_STYLES[edge]
|
|
7352
7337
|
});
|
|
7353
7338
|
};
|
|
7354
7339
|
|
|
7340
|
+
var styles$b = {"switch-view":"switch-view-x1YOY"};
|
|
7341
|
+
|
|
7355
7342
|
const SwitchView = ({
|
|
7356
7343
|
activeIndex,
|
|
7357
7344
|
children
|
|
7358
7345
|
}) => {
|
|
7359
7346
|
const childCount = React.Children.count(children);
|
|
7360
7347
|
const validatedIndex = activeIndex < 0 ? 0 : activeIndex > childCount - 1 ? childCount - 1 : activeIndex;
|
|
7361
|
-
return /*#__PURE__*/React.createElement(
|
|
7348
|
+
return /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
7349
|
+
direction: "column",
|
|
7362
7350
|
grow: 1,
|
|
7363
|
-
|
|
7364
|
-
|
|
7351
|
+
shrink: 0,
|
|
7352
|
+
style: {
|
|
7353
|
+
overflow: "hidden",
|
|
7354
|
+
position: "relative"
|
|
7355
|
+
}
|
|
7365
7356
|
}, React.Children.map(children, (view, index) => {
|
|
7366
7357
|
const inView = index === validatedIndex;
|
|
7367
|
-
return /*#__PURE__*/React.createElement(
|
|
7358
|
+
return /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
7368
7359
|
"aria-hidden": !inView,
|
|
7369
|
-
|
|
7370
|
-
|
|
7360
|
+
className: styles$b["switch-view"],
|
|
7361
|
+
direction: "column",
|
|
7371
7362
|
key: index,
|
|
7372
|
-
|
|
7373
|
-
|
|
7374
|
-
|
|
7375
|
-
|
|
7376
|
-
|
|
7377
|
-
|
|
7378
|
-
transition: "visibility 100ms 50ms ease-in-out, transform 200ms ease-in-out, opacity 100ms 50ms ease-in-out"
|
|
7363
|
+
style: {
|
|
7364
|
+
opacity: inView ? 1 : 0,
|
|
7365
|
+
pointerEvents: inView ? "auto" : "none",
|
|
7366
|
+
transform: inView ? "translateX(0)" : index < activeIndex ? "translateX(-100px)" : "translateX(100px)",
|
|
7367
|
+
visibility: inView ? "visible" : "hidden"
|
|
7368
|
+
}
|
|
7379
7369
|
}, view);
|
|
7380
7370
|
}));
|
|
7381
7371
|
};
|
|
7382
7372
|
|
|
7383
|
-
var styles$
|
|
7373
|
+
var styles$a = {"color-mode-switcher":"color-mode-switcher-MlfLB","color-mode-switcher-label":"color-mode-switcher-label-FXK48","color-mode-switcher-modes":"color-mode-switcher-modes-Qwqpf"};
|
|
7384
7374
|
|
|
7385
7375
|
const COLOR_MODES = [{
|
|
7386
7376
|
icon: "toolbar.sun",
|
|
@@ -7403,11 +7393,11 @@ true;
|
|
|
7403
7393
|
const updateStore = useUpdateStore();
|
|
7404
7394
|
const [counter] = React.useState(() => COLOR_MODE_INSTANCE_COUNTER++);
|
|
7405
7395
|
return /*#__PURE__*/React.createElement("fieldset", {
|
|
7406
|
-
className: styles$
|
|
7396
|
+
className: styles$a["color-mode-switcher"]
|
|
7407
7397
|
}, /*#__PURE__*/React.createElement("legend", {
|
|
7408
|
-
className: styles$
|
|
7398
|
+
className: styles$a["color-mode-switcher-label"]
|
|
7409
7399
|
}, "Appearance", " "), /*#__PURE__*/React.createElement("div", {
|
|
7410
|
-
className: styles$
|
|
7400
|
+
className: styles$a["color-mode-switcher-modes"]
|
|
7411
7401
|
}, COLOR_MODES.map(({
|
|
7412
7402
|
icon,
|
|
7413
7403
|
label,
|
|
@@ -7446,6 +7436,8 @@ true;
|
|
|
7446
7436
|
});
|
|
7447
7437
|
}
|
|
7448
7438
|
|
|
7439
|
+
var styles$9 = {"profile-header":"profile-header-j5gBq","linked-accounts":"linked-accounts-1Ov9L","linked-accounts-list":"linked-accounts-list-mE--p","profile-link":"profile-link-eXjSq","logout":"logout-rloyO"};
|
|
7440
|
+
|
|
7449
7441
|
const requestClearConnectedPeopleCache = () => remove();
|
|
7450
7442
|
function UserProfile({
|
|
7451
7443
|
appName,
|
|
@@ -7466,159 +7458,129 @@ true;
|
|
|
7466
7458
|
name
|
|
7467
7459
|
} = storeState;
|
|
7468
7460
|
const connectedPeople = (_a = storeState.connectedPeople) !== null && _a !== void 0 ? _a : [];
|
|
7469
|
-
return /*#__PURE__*/React.createElement(
|
|
7470
|
-
|
|
7471
|
-
spacing: /*#__PURE__*/React.createElement(tapestryReact.Divider, null),
|
|
7461
|
+
return /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
7462
|
+
direction: "column",
|
|
7472
7463
|
grow: 1,
|
|
7473
|
-
shrink: 1
|
|
7474
|
-
|
|
7475
|
-
|
|
7476
|
-
|
|
7477
|
-
|
|
7478
|
-
|
|
7479
|
-
|
|
7480
|
-
|
|
7481
|
-
|
|
7482
|
-
|
|
7483
|
-
|
|
7484
|
-
|
|
7485
|
-
|
|
7486
|
-
|
|
7487
|
-
|
|
7488
|
-
|
|
7464
|
+
shrink: 1,
|
|
7465
|
+
style: {
|
|
7466
|
+
minHeight: 0
|
|
7467
|
+
}
|
|
7468
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
7469
|
+
className: styles$9["profile-header"]
|
|
7470
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
7471
|
+
alt: "",
|
|
7472
|
+
src: userAvatarPath,
|
|
7473
|
+
style: {
|
|
7474
|
+
borderRadius: "var(--t-border-radius-round)",
|
|
7475
|
+
height: "var(--t-avatar-size-36)",
|
|
7476
|
+
objectFit: "cover",
|
|
7477
|
+
width: "var(--t-avatar-size-36)"
|
|
7478
|
+
}
|
|
7479
|
+
}), /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
7480
|
+
direction: "column",
|
|
7481
|
+
gap: 1,
|
|
7482
|
+
style: {
|
|
7483
|
+
minWidth: 0
|
|
7484
|
+
}
|
|
7489
7485
|
}, /*#__PURE__*/React.createElement(DrawerHeading, {
|
|
7490
|
-
paddingTop: 0.5,
|
|
7491
|
-
lineHeight: 3.25
|
|
7492
|
-
}, name), linkToProfile && (/*#__PURE__*/React.createElement(tapestryReact.Link, {
|
|
7493
|
-
to: profileUrl,
|
|
7494
7486
|
style: {
|
|
7495
|
-
|
|
7496
|
-
|
|
7497
|
-
|
|
7487
|
+
lineHeight: "26px",
|
|
7488
|
+
paddingTop: "var(--t-spacing-half)"
|
|
7489
|
+
}
|
|
7490
|
+
}, name), linkToProfile && (/*#__PURE__*/React.createElement(tapestry.Link, {
|
|
7491
|
+
className: styles$9["profile-link"],
|
|
7492
|
+
href: profileUrl,
|
|
7498
7493
|
onClick: () => setTimeout(() => closeDrawer(), 50)
|
|
7499
|
-
}, "My profile")), /*#__PURE__*/React.createElement(
|
|
7500
|
-
|
|
7501
|
-
|
|
7502
|
-
|
|
7503
|
-
|
|
7504
|
-
|
|
7505
|
-
}, "My login settings"), /*#__PURE__*/React.createElement(tapestryReact.StackView, {
|
|
7506
|
-
axis: "horizontal",
|
|
7507
|
-
alignment: "center",
|
|
7508
|
-
spacing: 0.5,
|
|
7509
|
-
width: "100%"
|
|
7494
|
+
}, "My profile")), /*#__PURE__*/React.createElement(tapestry.Link, {
|
|
7495
|
+
className: styles$9["profile-link"],
|
|
7496
|
+
href: loginSettingsUrl
|
|
7497
|
+
}, "My login settings"), /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
7498
|
+
align: "center",
|
|
7499
|
+
gap: 0.5
|
|
7510
7500
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
7511
7501
|
name: mfaConfigured ? "general.lock" : "general.unlock",
|
|
7512
7502
|
size: 12,
|
|
7513
7503
|
theme: mfaConfigured ? "--t-icon-color-status-success" : "--t-icon-color-status-error"
|
|
7514
|
-
}), /*#__PURE__*/React.createElement(
|
|
7515
|
-
|
|
7516
|
-
|
|
7517
|
-
|
|
7518
|
-
|
|
7519
|
-
|
|
7520
|
-
|
|
7521
|
-
|
|
7522
|
-
|
|
7523
|
-
|
|
7524
|
-
|
|
7525
|
-
|
|
7526
|
-
|
|
7527
|
-
variant: "naked",
|
|
7528
|
-
theme: false,
|
|
7529
|
-
marginTop: 0.25,
|
|
7530
|
-
hover: {
|
|
7531
|
-
backgroundColor: "var(--t-fill-color-neutral-070)"
|
|
7532
|
-
}
|
|
7533
|
-
})), /*#__PURE__*/React.createElement(tapestryReact.GridView, {
|
|
7534
|
-
padding: 2
|
|
7535
|
-
}, /*#__PURE__*/React.createElement(ColorModeSwitcher, null)), /*#__PURE__*/React.createElement("form", {
|
|
7504
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
7505
|
+
style: {
|
|
7506
|
+
color: "var(--t-text-color-secondary)",
|
|
7507
|
+
fontSize: "var(--t-font-size-sm)",
|
|
7508
|
+
lineHeight: "20px"
|
|
7509
|
+
}
|
|
7510
|
+
}, "Two-step verification ", mfaConfigured ? "active" : "inactive"))), /*#__PURE__*/React.createElement(CloseButton, {
|
|
7511
|
+
onClick: closeDrawer
|
|
7512
|
+
})), /*#__PURE__*/React.createElement(Divider, null), /*#__PURE__*/React.createElement("div", {
|
|
7513
|
+
style: {
|
|
7514
|
+
padding: "var(--t-spacing-2)"
|
|
7515
|
+
}
|
|
7516
|
+
}, /*#__PURE__*/React.createElement(ColorModeSwitcher, null)), /*#__PURE__*/React.createElement(Divider, null), /*#__PURE__*/React.createElement("form", {
|
|
7536
7517
|
method: "POST",
|
|
7537
7518
|
action: logoutUrl
|
|
7538
|
-
}, /*#__PURE__*/React.createElement(
|
|
7519
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
7520
|
+
className: styles$9["logout"],
|
|
7539
7521
|
"data-turbolinks": false,
|
|
7540
7522
|
onClick: () => {
|
|
7541
7523
|
requestClearAppsCache();
|
|
7542
7524
|
requestClearConnectedPeopleCache();
|
|
7543
|
-
return;
|
|
7544
7525
|
},
|
|
7526
|
+
type: "submit"
|
|
7527
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
7545
7528
|
style: {
|
|
7546
|
-
|
|
7547
|
-
}
|
|
7548
|
-
theme: false,
|
|
7549
|
-
type: "submit",
|
|
7550
|
-
width: "100%"
|
|
7551
|
-
}, /*#__PURE__*/React.createElement(tapestryReact.StackView, {
|
|
7552
|
-
distribution: "space-between",
|
|
7553
|
-
alignment: "center",
|
|
7554
|
-
axis: "horizontal",
|
|
7555
|
-
grow: 1,
|
|
7556
|
-
paddingHorizontal: 3,
|
|
7557
|
-
paddingVertical: 2
|
|
7558
|
-
}, /*#__PURE__*/React.createElement(tapestryReact.Text, {
|
|
7559
|
-
color: "var(--text-color-default-secondary)",
|
|
7560
|
-
size: 3
|
|
7529
|
+
lineHeight: "20px"
|
|
7530
|
+
}
|
|
7561
7531
|
}, "Log out"), /*#__PURE__*/React.createElement(Icon, {
|
|
7562
7532
|
name: "general.intoBox",
|
|
7563
7533
|
size: 14,
|
|
7564
7534
|
theme: "--t-icon-color-secondary"
|
|
7565
|
-
})))
|
|
7535
|
+
}))), env !== "production" && (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Divider, null), /*#__PURE__*/React.createElement(DebugPcoResource, {
|
|
7566
7536
|
env: env
|
|
7567
|
-
}), hasConnectedPeople && (/*#__PURE__*/React.createElement(
|
|
7568
|
-
|
|
7569
|
-
|
|
7570
|
-
|
|
7571
|
-
|
|
7572
|
-
|
|
7573
|
-
|
|
7574
|
-
|
|
7575
|
-
|
|
7576
|
-
|
|
7577
|
-
|
|
7578
|
-
}, /*#__PURE__*/React.createElement(
|
|
7579
|
-
|
|
7580
|
-
|
|
7581
|
-
|
|
7582
|
-
|
|
7583
|
-
|
|
7584
|
-
|
|
7585
|
-
|
|
7586
|
-
|
|
7587
|
-
|
|
7588
|
-
|
|
7589
|
-
}, "Linked Accounts")), /*#__PURE__*/React.createElement(
|
|
7590
|
-
|
|
7591
|
-
width: "100%"
|
|
7537
|
+
}))), hasConnectedPeople && (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Divider, null), /*#__PURE__*/React.createElement("div", {
|
|
7538
|
+
className: styles$9["linked-accounts"]
|
|
7539
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
7540
|
+
style: {
|
|
7541
|
+
backgroundColor: "var(--t-fill-color-neutral-060)",
|
|
7542
|
+
borderBottom: "var(--t-border-width) solid var(--t-border-color)",
|
|
7543
|
+
padding: "var(--t-spacing-1-half) var(--t-spacing-2)",
|
|
7544
|
+
position: "sticky",
|
|
7545
|
+
top: 0,
|
|
7546
|
+
zIndex: 1
|
|
7547
|
+
}
|
|
7548
|
+
}, /*#__PURE__*/React.createElement("h3", {
|
|
7549
|
+
style: {
|
|
7550
|
+
color: "var(--t-text-color-secondary)",
|
|
7551
|
+
cursor: "default",
|
|
7552
|
+
fontSize: "var(--t-font-size-xs)",
|
|
7553
|
+
fontWeight: "var(--t-font-weight-medium)",
|
|
7554
|
+
letterSpacing: "0.15em",
|
|
7555
|
+
lineHeight: "20px",
|
|
7556
|
+
margin: 0,
|
|
7557
|
+
textTransform: "uppercase"
|
|
7558
|
+
}
|
|
7559
|
+
}, "Linked Accounts")), /*#__PURE__*/React.createElement("ul", {
|
|
7560
|
+
className: styles$9["linked-accounts-list"]
|
|
7592
7561
|
}, connectedPeopleMenuFormatter(connectedPeople).map(({
|
|
7593
7562
|
id,
|
|
7594
7563
|
attributes: person
|
|
7595
|
-
}) => (/*#__PURE__*/React.createElement(
|
|
7596
|
-
key: id
|
|
7597
|
-
|
|
7564
|
+
}) => (/*#__PURE__*/React.createElement("li", {
|
|
7565
|
+
key: id
|
|
7566
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
7567
|
+
onClick: () => {
|
|
7598
7568
|
requestClearAppsCache();
|
|
7599
7569
|
requestClearConnectedPeopleCache();
|
|
7600
7570
|
switchConnectedPerson(String(id), `${appName}/`);
|
|
7601
|
-
e.preventDefault();
|
|
7602
7571
|
},
|
|
7603
|
-
|
|
7604
|
-
|
|
7605
|
-
|
|
7606
|
-
}, /*#__PURE__*/React.createElement(tapestryReact.Text, {
|
|
7607
|
-
truncate: true
|
|
7608
|
-
}, person.organization_name)))), /*#__PURE__*/React.createElement(tapestryReact.List.Item, {
|
|
7609
|
-
onClick: e => {
|
|
7572
|
+
type: "button"
|
|
7573
|
+
}, person.organization_name)))), /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("button", {
|
|
7574
|
+
onClick: () => {
|
|
7610
7575
|
requestClearAppsCache();
|
|
7611
7576
|
requestClearConnectedPeopleCache();
|
|
7612
7577
|
unlinkConnectedPeople();
|
|
7613
|
-
e.preventDefault();
|
|
7614
7578
|
},
|
|
7615
|
-
|
|
7616
|
-
|
|
7617
|
-
|
|
7618
|
-
|
|
7619
|
-
},
|
|
7620
|
-
size: 3
|
|
7621
|
-
}, "Unlink my accounts"))))));
|
|
7579
|
+
style: {
|
|
7580
|
+
color: "var(--t-text-color-status-error)"
|
|
7581
|
+
},
|
|
7582
|
+
type: "button"
|
|
7583
|
+
}, "Unlink my accounts")))))));
|
|
7622
7584
|
}
|
|
7623
7585
|
|
|
7624
7586
|
var ActionType;
|
|
@@ -7677,7 +7639,7 @@ true;
|
|
|
7677
7639
|
...overrides
|
|
7678
7640
|
});
|
|
7679
7641
|
|
|
7680
|
-
var styles$
|
|
7642
|
+
var styles$8 = {"toolbar":"toolbar-KHJR5","toolbar-button":"toolbar-button-Ye4h5","is-current":"is-current-DZK47","toolbar-button--avatar":"toolbar-button--avatar-5FUik","toolbar-button--home":"toolbar-button--home-Pthd0"};
|
|
7681
7643
|
|
|
7682
7644
|
// PCO Box serves TLS by default, and a bare http:// frame inside an https
|
|
7683
7645
|
// product page is blocked as mixed content, so follow the page's scheme.
|
|
@@ -7785,23 +7747,17 @@ true;
|
|
|
7785
7747
|
disabled,
|
|
7786
7748
|
onClick
|
|
7787
7749
|
}) {
|
|
7788
|
-
return /*#__PURE__*/React.createElement(
|
|
7789
|
-
|
|
7790
|
-
, {
|
|
7791
|
-
"aria-disabled": disabled,
|
|
7750
|
+
return /*#__PURE__*/React.createElement(tapestry.IconButton, {
|
|
7751
|
+
"aria-label": direction === "back" ? "Back" : "Forward",
|
|
7792
7752
|
disabled: disabled,
|
|
7793
|
-
|
|
7794
|
-
|
|
7795
|
-
},
|
|
7796
|
-
icon: {
|
|
7797
|
-
fill: "var(--t-icon-color-dim)",
|
|
7753
|
+
focusableWhenDisabled: true,
|
|
7754
|
+
icon: /*#__PURE__*/React.createElement(Icon, {
|
|
7798
7755
|
name: direction === "back" ? "general.leftChevron" : "general.rightChevron",
|
|
7799
|
-
|
|
7800
|
-
},
|
|
7756
|
+
theme: disabled ? undefined : "--t-icon-color-dim"
|
|
7757
|
+
}),
|
|
7758
|
+
kind: "ghost",
|
|
7801
7759
|
onClick: onClick,
|
|
7802
|
-
|
|
7803
|
-
theme: false,
|
|
7804
|
-
title: direction === "back" ? "Back" : "Forward"
|
|
7760
|
+
size: "md"
|
|
7805
7761
|
});
|
|
7806
7762
|
}
|
|
7807
7763
|
function DeveloperToolsComponent({
|
|
@@ -7814,10 +7770,9 @@ true;
|
|
|
7814
7770
|
} = useFrameHistory();
|
|
7815
7771
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(DrawerHeader, {
|
|
7816
7772
|
closeDrawer: closeDrawer
|
|
7817
|
-
}, /*#__PURE__*/React.createElement(
|
|
7818
|
-
|
|
7819
|
-
|
|
7820
|
-
spacing: 0.25
|
|
7773
|
+
}, /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
7774
|
+
align: "center",
|
|
7775
|
+
gap: 0.25
|
|
7821
7776
|
}, /*#__PURE__*/React.createElement(NavButton, {
|
|
7822
7777
|
direction: "back",
|
|
7823
7778
|
disabled: steps.back === 0,
|
|
@@ -7827,16 +7782,19 @@ true;
|
|
|
7827
7782
|
disabled: steps.forward === 0,
|
|
7828
7783
|
onClick: () => traverse("forward")
|
|
7829
7784
|
}), /*#__PURE__*/React.createElement(DrawerHeading, {
|
|
7830
|
-
|
|
7831
|
-
|
|
7832
|
-
|
|
7833
|
-
|
|
7834
|
-
flex: "1",
|
|
7835
|
-
minHeight: 0,
|
|
7785
|
+
style: {
|
|
7786
|
+
paddingLeft: "var(--t-spacing-half)"
|
|
7787
|
+
}
|
|
7788
|
+
}, "Developer Tools"))), /*#__PURE__*/React.createElement("iframe", {
|
|
7836
7789
|
onLoad: onFrameLoad,
|
|
7837
7790
|
src: iframeSrc(),
|
|
7838
|
-
|
|
7839
|
-
|
|
7791
|
+
style: {
|
|
7792
|
+
border: 0,
|
|
7793
|
+
flex: 1,
|
|
7794
|
+
minHeight: 0,
|
|
7795
|
+
width: "100%"
|
|
7796
|
+
},
|
|
7797
|
+
title: "Developer Tools"
|
|
7840
7798
|
}));
|
|
7841
7799
|
}
|
|
7842
7800
|
const DeveloperTools = {
|
|
@@ -7849,6 +7807,19 @@ true;
|
|
|
7849
7807
|
name: "DeveloperTools"
|
|
7850
7808
|
};
|
|
7851
7809
|
|
|
7810
|
+
var styles$7 = {"spinner":"spinner-EtR3A","label":"label-Rg7g6"};
|
|
7811
|
+
|
|
7812
|
+
function Spinner({
|
|
7813
|
+
label = "Loading"
|
|
7814
|
+
}) {
|
|
7815
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
7816
|
+
className: styles$7.spinner,
|
|
7817
|
+
role: "status"
|
|
7818
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
7819
|
+
className: styles$7.label
|
|
7820
|
+
}, label));
|
|
7821
|
+
}
|
|
7822
|
+
|
|
7852
7823
|
const DEFAULT_READY_TIMEOUT_MS = 8000;
|
|
7853
7824
|
// The route rides in the fragment (`/topbar/helpdesk#email`), not the path, so
|
|
7854
7825
|
// changing it is a same-document navigation that doesn't reload the iframe.
|
|
@@ -7970,6 +7941,8 @@ true;
|
|
|
7970
7941
|
});
|
|
7971
7942
|
});
|
|
7972
7943
|
|
|
7944
|
+
var styles$6 = {"fallback-link":"fallback-link-t8Os7"};
|
|
7945
|
+
|
|
7973
7946
|
function hostContext(appName, pcoMeta) {
|
|
7974
7947
|
return {
|
|
7975
7948
|
appName,
|
|
@@ -8095,9 +8068,9 @@ true;
|
|
|
8095
8068
|
onRetry: handleRetry
|
|
8096
8069
|
});
|
|
8097
8070
|
}
|
|
8098
|
-
return /*#__PURE__*/React.createElement(
|
|
8099
|
-
|
|
8100
|
-
|
|
8071
|
+
return /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
8072
|
+
direction: "column",
|
|
8073
|
+
expand: true
|
|
8101
8074
|
}, !isReady && (/*#__PURE__*/React.createElement(LoadingHeader, {
|
|
8102
8075
|
closeDrawer: closeDrawer,
|
|
8103
8076
|
heading: config.heading
|
|
@@ -8121,15 +8094,11 @@ true;
|
|
|
8121
8094
|
}) {
|
|
8122
8095
|
return /*#__PURE__*/React.createElement(DrawerHeader, {
|
|
8123
8096
|
closeDrawer: closeDrawer
|
|
8124
|
-
}, /*#__PURE__*/React.createElement(
|
|
8125
|
-
|
|
8126
|
-
|
|
8127
|
-
|
|
8128
|
-
|
|
8129
|
-
"aria-label": `Loading ${heading}`,
|
|
8130
|
-
color: "var(--t-fill-color-neutral-030)",
|
|
8131
|
-
thickness: 2,
|
|
8132
|
-
trackColor: "var(--t-fill-color-neutral-080)"
|
|
8097
|
+
}, /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
8098
|
+
align: "center",
|
|
8099
|
+
gap: 1
|
|
8100
|
+
}, /*#__PURE__*/React.createElement(DrawerHeading, null, heading), /*#__PURE__*/React.createElement(Spinner, {
|
|
8101
|
+
label: `Loading ${heading}`
|
|
8133
8102
|
})));
|
|
8134
8103
|
}
|
|
8135
8104
|
// Single-page apps navigate with pushState, which fires no event, so the URL
|
|
@@ -8158,40 +8127,48 @@ true;
|
|
|
8158
8127
|
heading,
|
|
8159
8128
|
onRetry
|
|
8160
8129
|
}) {
|
|
8161
|
-
return /*#__PURE__*/React.createElement(
|
|
8162
|
-
|
|
8163
|
-
|
|
8130
|
+
return /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
8131
|
+
direction: "column",
|
|
8132
|
+
expand: true
|
|
8164
8133
|
}, /*#__PURE__*/React.createElement(DrawerHeader, {
|
|
8165
8134
|
closeDrawer: closeDrawer
|
|
8166
|
-
}, /*#__PURE__*/React.createElement(DrawerHeading, null, heading)), /*#__PURE__*/React.createElement(
|
|
8167
|
-
|
|
8168
|
-
|
|
8169
|
-
|
|
8170
|
-
|
|
8171
|
-
|
|
8172
|
-
|
|
8173
|
-
}, /*#__PURE__*/React.createElement(
|
|
8174
|
-
|
|
8175
|
-
|
|
8176
|
-
|
|
8177
|
-
|
|
8178
|
-
|
|
8135
|
+
}, /*#__PURE__*/React.createElement(DrawerHeading, null, heading)), /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
8136
|
+
align: "center",
|
|
8137
|
+
direction: "column",
|
|
8138
|
+
expand: true,
|
|
8139
|
+
gap: 1,
|
|
8140
|
+
justify: "center",
|
|
8141
|
+
padding: 3
|
|
8142
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
8143
|
+
style: {
|
|
8144
|
+
color: "var(--t-text-color-secondary)",
|
|
8145
|
+
fontSize: "var(--t-font-size-xs)",
|
|
8146
|
+
lineHeight: "20px",
|
|
8147
|
+
margin: 0
|
|
8148
|
+
}
|
|
8149
|
+
}, "This couldn't load. Try again in a moment."), /*#__PURE__*/React.createElement("div", {
|
|
8150
|
+
style: {
|
|
8151
|
+
paddingTop: "var(--t-spacing-2)"
|
|
8152
|
+
}
|
|
8153
|
+
}, /*#__PURE__*/React.createElement(tapestry.Button, {
|
|
8154
|
+
kind: "primary",
|
|
8155
|
+
label: "Retry",
|
|
8179
8156
|
onClick: onRetry,
|
|
8180
|
-
|
|
8181
|
-
|
|
8182
|
-
|
|
8183
|
-
title: "Retry"
|
|
8157
|
+
prefix: /*#__PURE__*/React.createElement(Icon, {
|
|
8158
|
+
name: "general.refresh"
|
|
8159
|
+
})
|
|
8184
8160
|
})), fallbackLinks.map(({
|
|
8185
8161
|
href,
|
|
8186
8162
|
label
|
|
8187
|
-
}) => (/*#__PURE__*/React.createElement(
|
|
8163
|
+
}) => (/*#__PURE__*/React.createElement(tapestry.Link, {
|
|
8188
8164
|
key: href,
|
|
8189
|
-
|
|
8165
|
+
className: styles$6["fallback-link"],
|
|
8166
|
+
href: href,
|
|
8190
8167
|
external: true
|
|
8191
8168
|
}, label)))));
|
|
8192
8169
|
}
|
|
8193
8170
|
|
|
8194
|
-
var styles$
|
|
8171
|
+
var styles$5 = {"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"};
|
|
8195
8172
|
|
|
8196
8173
|
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";
|
|
8197
8174
|
// Same stops as the AskAIBanner border gradient, so the two stay in sync.
|
|
@@ -8251,8 +8228,8 @@ true;
|
|
|
8251
8228
|
var _a, _b;
|
|
8252
8229
|
const isStacked = props.variant !== "inline";
|
|
8253
8230
|
return /*#__PURE__*/React.createElement("button", {
|
|
8254
|
-
className: classnames(styles$
|
|
8255
|
-
[styles$
|
|
8231
|
+
className: classnames(styles$5.banner, {
|
|
8232
|
+
[styles$5.stacked]: isStacked
|
|
8256
8233
|
}),
|
|
8257
8234
|
onClick: () => props.onClick(),
|
|
8258
8235
|
type: "button"
|
|
@@ -8267,17 +8244,16 @@ true;
|
|
|
8267
8244
|
title
|
|
8268
8245
|
}) {
|
|
8269
8246
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
|
|
8270
|
-
className: styles$
|
|
8247
|
+
className: styles$5.content
|
|
8271
8248
|
}, /*#__PURE__*/React.createElement(AskAIIcon, null), /*#__PURE__*/React.createElement("span", {
|
|
8272
|
-
className: styles$
|
|
8249
|
+
className: styles$5.text
|
|
8273
8250
|
}, /*#__PURE__*/React.createElement("span", {
|
|
8274
|
-
className: styles$
|
|
8251
|
+
className: styles$5.title
|
|
8275
8252
|
}, title), /*#__PURE__*/React.createElement("span", {
|
|
8276
|
-
className: styles$
|
|
8277
|
-
}, "Support answers tailored to you"))), /*#__PURE__*/React.createElement(
|
|
8278
|
-
className: styles$
|
|
8279
|
-
name: "general.rightChevron"
|
|
8280
|
-
size: "16px"
|
|
8253
|
+
className: styles$5.subtitle
|
|
8254
|
+
}, "Support answers tailored to you"))), /*#__PURE__*/React.createElement(Icon, {
|
|
8255
|
+
className: styles$5.chevron,
|
|
8256
|
+
name: "general.rightChevron"
|
|
8281
8257
|
}));
|
|
8282
8258
|
}
|
|
8283
8259
|
function InlineContent({
|
|
@@ -8285,20 +8261,20 @@ true;
|
|
|
8285
8261
|
title
|
|
8286
8262
|
}) {
|
|
8287
8263
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
|
|
8288
|
-
className: styles$
|
|
8264
|
+
className: styles$5.inlineContent
|
|
8289
8265
|
}, /*#__PURE__*/React.createElement(SparkleIcon, {
|
|
8290
|
-
className: styles$
|
|
8266
|
+
className: styles$5.sparkle,
|
|
8291
8267
|
fill: "currentColor"
|
|
8292
8268
|
}), /*#__PURE__*/React.createElement("span", {
|
|
8293
|
-
className: styles$
|
|
8269
|
+
className: styles$5.inlineTitle
|
|
8294
8270
|
}, title)), /*#__PURE__*/React.createElement("span", {
|
|
8295
|
-
className: styles$
|
|
8271
|
+
className: styles$5.action
|
|
8296
8272
|
}, /*#__PURE__*/React.createElement("span", {
|
|
8297
|
-
className: styles$
|
|
8298
|
-
}, action), /*#__PURE__*/React.createElement(
|
|
8299
|
-
className: styles$
|
|
8273
|
+
className: styles$5.actionLabel
|
|
8274
|
+
}, action), /*#__PURE__*/React.createElement(Icon, {
|
|
8275
|
+
className: styles$5.actionChevron,
|
|
8300
8276
|
name: "general.rightChevron",
|
|
8301
|
-
size:
|
|
8277
|
+
size: 14
|
|
8302
8278
|
})));
|
|
8303
8279
|
}
|
|
8304
8280
|
const SQUIRCLE_PATH = "M15.9994 0C3.19766 0 0 3.20025 0 16C0 28.7998 3.19766 32 15.9994 32C28.8011 32 32 28.8022 32 16C32 3.19779 28.7999 0 15.9994 0Z";
|
|
@@ -8313,9 +8289,9 @@ true;
|
|
|
8313
8289
|
const borderA = `${uid}-border-a`;
|
|
8314
8290
|
const borderB = `${uid}-border-b`;
|
|
8315
8291
|
return /*#__PURE__*/React.createElement("span", {
|
|
8316
|
-
className: styles$
|
|
8292
|
+
className: styles$5.icon
|
|
8317
8293
|
}, /*#__PURE__*/React.createElement("svg", {
|
|
8318
|
-
className: styles$
|
|
8294
|
+
className: styles$5.iconShape,
|
|
8319
8295
|
viewBox: "0 0 32 32",
|
|
8320
8296
|
fill: "none",
|
|
8321
8297
|
"aria-hidden": "true"
|
|
@@ -8486,7 +8462,7 @@ true;
|
|
|
8486
8462
|
stopColor: "#D48B91",
|
|
8487
8463
|
stopOpacity: "0"
|
|
8488
8464
|
})))), /*#__PURE__*/React.createElement("svg", {
|
|
8489
|
-
className: styles$
|
|
8465
|
+
className: styles$5.iconSparkle,
|
|
8490
8466
|
viewBox: "0 0 19.4995 17.9999",
|
|
8491
8467
|
"aria-hidden": "true"
|
|
8492
8468
|
}, /*#__PURE__*/React.createElement("path", {
|
|
@@ -8495,24 +8471,30 @@ true;
|
|
|
8495
8471
|
})));
|
|
8496
8472
|
}
|
|
8497
8473
|
|
|
8498
|
-
var styles = {"button":"button-2NVI1","sparkle":"sparkle-ruJGP","label":"label-4NUGB"};
|
|
8474
|
+
var styles$4 = {"button":"button-2NVI1","sparkle":"sparkle-ruJGP","label":"label-4NUGB"};
|
|
8499
8475
|
|
|
8500
8476
|
function AskAIButton({
|
|
8501
8477
|
onClick,
|
|
8502
8478
|
text = "Ask AI"
|
|
8503
8479
|
}) {
|
|
8504
8480
|
return /*#__PURE__*/React.createElement("button", {
|
|
8505
|
-
className: styles.button,
|
|
8481
|
+
className: styles$4.button,
|
|
8506
8482
|
onClick: () => onClick(),
|
|
8507
8483
|
type: "button"
|
|
8508
8484
|
}, /*#__PURE__*/React.createElement(SparkleIcon, {
|
|
8509
|
-
className: styles.sparkle,
|
|
8485
|
+
className: styles$4.sparkle,
|
|
8510
8486
|
fill: "currentColor"
|
|
8511
8487
|
}), /*#__PURE__*/React.createElement("span", {
|
|
8512
|
-
className: styles.label
|
|
8488
|
+
className: styles$4.label
|
|
8513
8489
|
}, text));
|
|
8514
8490
|
}
|
|
8515
8491
|
|
|
8492
|
+
// Upstream types ComboBoxSection's `title` as a string, but renders it as the
|
|
8493
|
+
// section header's content, so any node works.
|
|
8494
|
+
const ComboBoxSection = tapestry.ComboBoxSection;
|
|
8495
|
+
|
|
8496
|
+
var styles$3 = {"hit":"hit-rlQ2Z","section":"section-e2JHf"};
|
|
8497
|
+
|
|
8516
8498
|
// The article heading lives in the deepest populated hierarchy level (lvl0 is
|
|
8517
8499
|
// always "Planning Center").
|
|
8518
8500
|
const hitTitle = hierarchy => (hierarchy === null || hierarchy === void 0 ? void 0 : hierarchy.lvl6) || (hierarchy === null || hierarchy === void 0 ? void 0 : hierarchy.lvl5) || (hierarchy === null || hierarchy === void 0 ? void 0 : hierarchy.lvl4) || (hierarchy === null || hierarchy === void 0 ? void 0 : hierarchy.lvl3) || (hierarchy === null || hierarchy === void 0 ? void 0 : hierarchy.lvl2) || (hierarchy === null || hierarchy === void 0 ? void 0 : hierarchy.lvl1) || (hierarchy === null || hierarchy === void 0 ? void 0 : hierarchy.lvl0) || "";
|
|
@@ -8525,57 +8507,41 @@ true;
|
|
|
8525
8507
|
newTab.focus();
|
|
8526
8508
|
}
|
|
8527
8509
|
};
|
|
8528
|
-
|
|
8529
|
-
|
|
8530
|
-
const HeadingIcon = ({
|
|
8531
|
-
currentAppName,
|
|
8532
|
-
product
|
|
8510
|
+
const SectionIcon = ({
|
|
8511
|
+
slug
|
|
8533
8512
|
}) => {
|
|
8534
|
-
|
|
8535
|
-
|
|
8536
|
-
|
|
8537
|
-
|
|
8538
|
-
|
|
8539
|
-
|
|
8540
|
-
name: "general.cog",
|
|
8541
|
-
color: "foregroundSecondary"
|
|
8513
|
+
if (slug === "planning-center") {
|
|
8514
|
+
return /*#__PURE__*/React.createElement(Icon, {
|
|
8515
|
+
name: "toolbar.planningCenter",
|
|
8516
|
+
style: {
|
|
8517
|
+
color: "hsl(221, 93%, 55%)"
|
|
8518
|
+
}
|
|
8542
8519
|
});
|
|
8543
8520
|
}
|
|
8544
|
-
|
|
8545
|
-
|
|
8546
|
-
|
|
8547
|
-
height: 2
|
|
8548
|
-
}, /*#__PURE__*/React.createElement(tapestryReact.Logo, {
|
|
8549
|
-
name: logoName,
|
|
8550
|
-
size: "sm",
|
|
8551
|
-
theme: "color",
|
|
8552
|
-
markOnly: true
|
|
8553
|
-
}));
|
|
8554
|
-
};
|
|
8555
|
-
const HitResult = ({
|
|
8556
|
-
hit,
|
|
8557
|
-
index
|
|
8558
|
-
}) => {
|
|
8559
|
-
return /*#__PURE__*/React.createElement(tapestryReact.Combobox.Item, {
|
|
8560
|
-
key: hit.objectID,
|
|
8561
|
-
index: index,
|
|
8562
|
-
value: hit,
|
|
8563
|
-
paddingVertical: 1
|
|
8564
|
-
}, /*#__PURE__*/React.createElement(tapestryReact.Text, {
|
|
8565
|
-
color: "neutralDarker",
|
|
8566
|
-
size: 4,
|
|
8567
|
-
whiteSpace: "normal"
|
|
8568
|
-
}, hitTitle(hit.hierarchy)));
|
|
8521
|
+
return isProductIconSlug(slug) ? /*#__PURE__*/React.createElement(ProductIcon, {
|
|
8522
|
+
slug: slug
|
|
8523
|
+
}) : null;
|
|
8569
8524
|
};
|
|
8525
|
+
const SectionTitle = ({
|
|
8526
|
+
product
|
|
8527
|
+
}) => (/*#__PURE__*/React.createElement("span", {
|
|
8528
|
+
style: {
|
|
8529
|
+
alignItems: "center",
|
|
8530
|
+
display: "flex",
|
|
8531
|
+
gap: "var(--t-spacing-half)"
|
|
8532
|
+
}
|
|
8533
|
+
}, /*#__PURE__*/React.createElement(SectionIcon, {
|
|
8534
|
+
slug: product.toLowerCase().replace(/\s+/g, "-")
|
|
8535
|
+
}), product));
|
|
8570
8536
|
const CustomSearchBox = ({
|
|
8571
8537
|
currentAppName
|
|
8572
8538
|
}) => {
|
|
8573
8539
|
const {
|
|
8574
8540
|
query,
|
|
8575
|
-
refine
|
|
8541
|
+
refine
|
|
8576
8542
|
} = reactInstantsearchCore.useSearchBox();
|
|
8543
|
+
const [inputValue, setInputValue] = React.useState(query);
|
|
8577
8544
|
const {
|
|
8578
|
-
hits,
|
|
8579
8545
|
results
|
|
8580
8546
|
} = reactInstantsearchCore.useHits();
|
|
8581
8547
|
const groups = results === null || results === void 0 ? void 0 : results.hits.reduce((acc, hit) => {
|
|
@@ -8589,57 +8555,40 @@ true;
|
|
|
8589
8555
|
acc[key].push(hit);
|
|
8590
8556
|
return acc;
|
|
8591
8557
|
}, {});
|
|
8592
|
-
|
|
8593
|
-
|
|
8594
|
-
|
|
8595
|
-
|
|
8596
|
-
|
|
8597
|
-
|
|
8598
|
-
|
|
8599
|
-
|
|
8558
|
+
const handleChange = key => {
|
|
8559
|
+
const hit = results === null || results === void 0 ? void 0 : results.hits.find(({
|
|
8560
|
+
objectID
|
|
8561
|
+
}) => objectID === key);
|
|
8562
|
+
if (hit) handleSearchSelect(hit);
|
|
8563
|
+
};
|
|
8564
|
+
return /*#__PURE__*/React.createElement(tapestry.ComboBox, {
|
|
8565
|
+
allowsCustomValue: true,
|
|
8566
|
+
allowsEmptyCollection: !!inputValue,
|
|
8567
|
+
filter: () => true,
|
|
8568
|
+
hideLabel: true,
|
|
8569
|
+
inputValue: inputValue,
|
|
8570
|
+
label: "Search our documentation",
|
|
8571
|
+
onChange: handleChange,
|
|
8572
|
+
onInputChange: value => {
|
|
8573
|
+
setInputValue(value);
|
|
8574
|
+
refine(value);
|
|
8600
8575
|
},
|
|
8601
8576
|
placeholder: "Search our documentation",
|
|
8602
|
-
|
|
8603
|
-
|
|
8604
|
-
|
|
8605
|
-
|
|
8606
|
-
|
|
8607
|
-
|
|
8608
|
-
|
|
8609
|
-
|
|
8610
|
-
|
|
8611
|
-
|
|
8612
|
-
|
|
8613
|
-
|
|
8614
|
-
|
|
8615
|
-
|
|
8616
|
-
|
|
8617
|
-
whiteSpace: "normal"
|
|
8618
|
-
}, "No results match your search")))), groups && Object.keys(groups).map(key => {
|
|
8619
|
-
const groupHits = groups[key];
|
|
8620
|
-
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
8621
|
-
key: key
|
|
8622
|
-
}, resultIndex > 0 && /*#__PURE__*/React.createElement(tapestryReact.Divider, {
|
|
8623
|
-
margin: 1
|
|
8624
|
-
}), /*#__PURE__*/React.createElement(tapestryReact.StackView, {
|
|
8625
|
-
axis: "horizontal",
|
|
8626
|
-
alignment: "center",
|
|
8627
|
-
spacing: 0.5,
|
|
8628
|
-
paddingHorizontal: 2,
|
|
8629
|
-
paddingVertical: 1
|
|
8630
|
-
}, /*#__PURE__*/React.createElement(HeadingIcon, {
|
|
8631
|
-
currentAppName: currentAppName,
|
|
8632
|
-
product: key
|
|
8633
|
-
}), /*#__PURE__*/React.createElement(tapestryReact.Text, {
|
|
8634
|
-
size: 5,
|
|
8635
|
-
color: "foregroundSecondary",
|
|
8636
|
-
fontWeight: 500
|
|
8637
|
-
}, key)), groupHits.map(hit => (/*#__PURE__*/React.createElement(HitResult, {
|
|
8638
|
-
key: hit.objectID,
|
|
8639
|
-
hit: hit,
|
|
8640
|
-
index: resultIndex++
|
|
8641
|
-
}))));
|
|
8642
|
-
})));
|
|
8577
|
+
renderEmptyState: "No results match your search",
|
|
8578
|
+
showSearchIcon: true,
|
|
8579
|
+
value: null
|
|
8580
|
+
}, Object.entries(inputValue && groups || {}).map(([product, groupHits]) => (/*#__PURE__*/React.createElement(ComboBoxSection, {
|
|
8581
|
+
className: styles$3["section"],
|
|
8582
|
+
key: product,
|
|
8583
|
+
title: /*#__PURE__*/React.createElement(SectionTitle, {
|
|
8584
|
+
product: product
|
|
8585
|
+
})
|
|
8586
|
+
}, groupHits.map(hit => (/*#__PURE__*/React.createElement(tapestry.ComboBoxItem, {
|
|
8587
|
+
className: styles$3["hit"],
|
|
8588
|
+
id: hit.objectID,
|
|
8589
|
+
key: hit.objectID,
|
|
8590
|
+
textValue: hitTitle(hit.hierarchy)
|
|
8591
|
+
}, hitTitle(hit.hierarchy))))))));
|
|
8643
8592
|
};
|
|
8644
8593
|
|
|
8645
8594
|
const HELP_CENTER_INDEX = "help_center_english";
|
|
@@ -8771,7 +8720,7 @@ true;
|
|
|
8771
8720
|
|
|
8772
8721
|
const {
|
|
8773
8722
|
LoadingIndicator: LoadingIndicator$1,
|
|
8774
|
-
StackView
|
|
8723
|
+
StackView
|
|
8775
8724
|
} = addOns.components;
|
|
8776
8725
|
function CalendlyWidget({
|
|
8777
8726
|
url,
|
|
@@ -8846,12 +8795,12 @@ true;
|
|
|
8846
8795
|
openPicobot
|
|
8847
8796
|
}) {
|
|
8848
8797
|
const PicobotIframe = React.useMemo(() => createPicobotIframe(pcoUrl(env)("picobot")), [env]);
|
|
8849
|
-
const loadingFallback = /*#__PURE__*/React.createElement(StackView
|
|
8798
|
+
const loadingFallback = /*#__PURE__*/React.createElement(StackView, {
|
|
8850
8799
|
flex: 1,
|
|
8851
8800
|
axis: "vertical"
|
|
8852
8801
|
}, /*#__PURE__*/React.createElement(DrawerHeader, {
|
|
8853
8802
|
closeDrawer: closeDrawer
|
|
8854
|
-
}, /*#__PURE__*/React.createElement(StackView
|
|
8803
|
+
}, /*#__PURE__*/React.createElement(StackView, {
|
|
8855
8804
|
axis: "horizontal",
|
|
8856
8805
|
spacing: 1
|
|
8857
8806
|
}, /*#__PURE__*/React.createElement(DrawerHeading, null, "Help and support"), /*#__PURE__*/React.createElement(LoadingIndicator$1, null))));
|
|
@@ -9097,36 +9046,25 @@ true;
|
|
|
9097
9046
|
margin: 0,
|
|
9098
9047
|
userSelect: "none"
|
|
9099
9048
|
}
|
|
9100
|
-
}, title)), !mobile && (
|
|
9101
|
-
|
|
9102
|
-
|
|
9103
|
-
|
|
9104
|
-
|
|
9105
|
-
|
|
9106
|
-
|
|
9107
|
-
|
|
9108
|
-
|
|
9109
|
-
|
|
9110
|
-
|
|
9111
|
-
|
|
9112
|
-
|
|
9113
|
-
|
|
9114
|
-
|
|
9115
|
-
|
|
9116
|
-
|
|
9117
|
-
|
|
9118
|
-
|
|
9119
|
-
e.preventDefault();
|
|
9120
|
-
e.stopPropagation();
|
|
9121
|
-
window.location.href = notification.taskUrl;
|
|
9122
|
-
}
|
|
9123
|
-
}, "Open task")) : (/*#__PURE__*/React.createElement(tapestryReact.Dropdown.Item, {
|
|
9124
|
-
onClick: e => {
|
|
9125
|
-
e.preventDefault();
|
|
9126
|
-
e.stopPropagation();
|
|
9127
|
-
onCreateTask(notification);
|
|
9128
|
-
}
|
|
9129
|
-
}, "Create task"))))), /*#__PURE__*/React.createElement("div", {
|
|
9049
|
+
}, title)), !mobile && (
|
|
9050
|
+
/*#__PURE__*/
|
|
9051
|
+
// Portal clicks bubble through React; don't open the item.
|
|
9052
|
+
React.createElement("span", {
|
|
9053
|
+
onClick: e => e.stopPropagation()
|
|
9054
|
+
}, /*#__PURE__*/React.createElement(tapestry.Dropdown, null, /*#__PURE__*/React.createElement(tapestry.DropdownTrigger, null, /*#__PURE__*/React.createElement(tapestry.ActionsDropdownIconButton, {
|
|
9055
|
+
"aria-label": "More options"
|
|
9056
|
+
})), /*#__PURE__*/React.createElement(tapestry.DropdownMenu, {
|
|
9057
|
+
placement: "bottom end"
|
|
9058
|
+
}, /*#__PURE__*/React.createElement(tapestry.DropdownAction, {
|
|
9059
|
+
id: "toggle-read",
|
|
9060
|
+
onAction: onToggleRead
|
|
9061
|
+
}, "Mark ", isRead ? "unread" : "as read"), notification.taskUrl ? (/*#__PURE__*/React.createElement(tapestry.DropdownLink, {
|
|
9062
|
+
href: notification.taskUrl,
|
|
9063
|
+
id: "open-task"
|
|
9064
|
+
}, "Open task")) : (/*#__PURE__*/React.createElement(tapestry.DropdownAction, {
|
|
9065
|
+
id: "create-task",
|
|
9066
|
+
onAction: () => onCreateTask(notification)
|
|
9067
|
+
}, "Create task"))))))), /*#__PURE__*/React.createElement("div", {
|
|
9130
9068
|
style: {
|
|
9131
9069
|
color: "var(--t-text-color)",
|
|
9132
9070
|
fontSize: "12px",
|
|
@@ -9140,21 +9078,29 @@ true;
|
|
|
9140
9078
|
context,
|
|
9141
9079
|
description,
|
|
9142
9080
|
title = "No notifications"
|
|
9143
|
-
}) => (/*#__PURE__*/React.createElement(
|
|
9144
|
-
|
|
9145
|
-
|
|
9081
|
+
}) => (/*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
9082
|
+
align: "center",
|
|
9083
|
+
direction: "column",
|
|
9084
|
+
justify: "center",
|
|
9146
9085
|
padding: 4
|
|
9147
9086
|
}, /*#__PURE__*/React.createElement(BlankStateIcon, {
|
|
9148
9087
|
id: context
|
|
9149
|
-
}), /*#__PURE__*/React.createElement(
|
|
9150
|
-
|
|
9151
|
-
|
|
9152
|
-
|
|
9153
|
-
|
|
9154
|
-
|
|
9155
|
-
|
|
9156
|
-
|
|
9157
|
-
|
|
9088
|
+
}), /*#__PURE__*/React.createElement("h3", {
|
|
9089
|
+
style: {
|
|
9090
|
+
color: "var(--t-text-color-headline)",
|
|
9091
|
+
fontSize: "var(--t-font-size-md)",
|
|
9092
|
+
fontWeight: "var(--t-font-weight-medium)",
|
|
9093
|
+
lineHeight: "40px",
|
|
9094
|
+
margin: "var(--t-spacing-1) 0 0"
|
|
9095
|
+
}
|
|
9096
|
+
}, title), /*#__PURE__*/React.createElement("p", {
|
|
9097
|
+
style: {
|
|
9098
|
+
color: "var(--t-text-color)",
|
|
9099
|
+
fontSize: "var(--t-font-size-sm)",
|
|
9100
|
+
lineHeight: "20px",
|
|
9101
|
+
margin: 0,
|
|
9102
|
+
textAlign: "center"
|
|
9103
|
+
}
|
|
9158
9104
|
}, description)));
|
|
9159
9105
|
|
|
9160
9106
|
const notificationsOrganizer = notifications => {
|
|
@@ -9373,28 +9319,32 @@ true;
|
|
|
9373
9319
|
};
|
|
9374
9320
|
};
|
|
9375
9321
|
|
|
9322
|
+
var styles$2 = {"section-header-button":"section-header-button-KtsJL","is-disabled":"is-disabled-UBtxk"};
|
|
9323
|
+
|
|
9376
9324
|
const SectionHeaderButton = ({
|
|
9377
9325
|
disabled,
|
|
9378
9326
|
onClick,
|
|
9379
9327
|
title,
|
|
9380
9328
|
...props
|
|
9381
|
-
}) => (/*#__PURE__*/React.createElement(
|
|
9382
|
-
|
|
9383
|
-
|
|
9384
|
-
fontSize: 5,
|
|
9385
|
-
fontWeight: 600,
|
|
9386
|
-
userSelect: "none",
|
|
9387
|
-
onClick: !disabled && onClick,
|
|
9329
|
+
}) => (/*#__PURE__*/React.createElement("div", {
|
|
9330
|
+
className: classnames(styles$2["section-header-button"], disabled && styles$2["is-disabled"]),
|
|
9331
|
+
onClick: disabled ? undefined : onClick,
|
|
9388
9332
|
...props
|
|
9389
9333
|
}, title));
|
|
9390
9334
|
const SectionHeaderTitle = ({
|
|
9335
|
+
style,
|
|
9391
9336
|
...props
|
|
9392
|
-
}) => (/*#__PURE__*/React.createElement(
|
|
9393
|
-
|
|
9394
|
-
|
|
9395
|
-
|
|
9396
|
-
|
|
9397
|
-
|
|
9337
|
+
}) => (/*#__PURE__*/React.createElement("h3", {
|
|
9338
|
+
style: {
|
|
9339
|
+
color: "var(--t-text-color-headline)",
|
|
9340
|
+
fontSize: "var(--t-font-size-xs)",
|
|
9341
|
+
fontWeight: "var(--t-font-weight-normal)",
|
|
9342
|
+
lineHeight: "16px",
|
|
9343
|
+
margin: 0,
|
|
9344
|
+
textTransform: "uppercase",
|
|
9345
|
+
userSelect: "none",
|
|
9346
|
+
...style
|
|
9347
|
+
},
|
|
9398
9348
|
...props
|
|
9399
9349
|
}));
|
|
9400
9350
|
function NotificationsComponent({
|
|
@@ -9432,26 +9382,19 @@ true;
|
|
|
9432
9382
|
});
|
|
9433
9383
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(DrawerHeader, {
|
|
9434
9384
|
closeDrawer: closeDrawer
|
|
9435
|
-
}, /*#__PURE__*/React.createElement(
|
|
9436
|
-
|
|
9437
|
-
|
|
9438
|
-
|
|
9439
|
-
|
|
9440
|
-
|
|
9441
|
-
}, /*#__PURE__*/React.createElement(DrawerHeading, null, "Notifications"), isLoading &&
|
|
9442
|
-
color: "var(--t-fill-color-neutral-030)",
|
|
9443
|
-
thickness: 2,
|
|
9444
|
-
trackColor: "var(--t-fill-color-neutral-080)"
|
|
9445
|
-
})), hasError && (/*#__PURE__*/React.createElement(ExclamationTriangle, {
|
|
9385
|
+
}, /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
9386
|
+
direction: "column",
|
|
9387
|
+
gap: 0.5
|
|
9388
|
+
}, /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
9389
|
+
align: "center",
|
|
9390
|
+
gap: 1
|
|
9391
|
+
}, /*#__PURE__*/React.createElement(DrawerHeading, null, "Notifications"), isLoading && /*#__PURE__*/React.createElement(Spinner, null), hasError && (/*#__PURE__*/React.createElement(ExclamationTriangle, {
|
|
9446
9392
|
fill: "hsl(8 60% 47%)",
|
|
9447
9393
|
size: 16
|
|
9448
9394
|
}))), read.length > 0 && (/*#__PURE__*/React.createElement(SectionHeaderButton, {
|
|
9449
9395
|
onClick: () => setShowRead(showRead => !showRead),
|
|
9450
9396
|
title: `${showRead ? "Hide" : "Show"} read`
|
|
9451
|
-
})))), /*#__PURE__*/React.createElement(ScrollContainer, null, /*#__PURE__*/React.createElement(
|
|
9452
|
-
alignment: "stretch",
|
|
9453
|
-
spacing: 2
|
|
9454
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
9397
|
+
})))), /*#__PURE__*/React.createElement(ScrollContainer, null, /*#__PURE__*/React.createElement("div", {
|
|
9455
9398
|
style: {
|
|
9456
9399
|
boxSizing: "border-box",
|
|
9457
9400
|
display: "flex",
|
|
@@ -9466,10 +9409,9 @@ true;
|
|
|
9466
9409
|
...(read.length > 0 && {
|
|
9467
9410
|
title: "No unread notifications"
|
|
9468
9411
|
})
|
|
9469
|
-
})), unread.length > 0 && (/*#__PURE__*/React.createElement(
|
|
9470
|
-
|
|
9471
|
-
|
|
9472
|
-
distribution: "space-between",
|
|
9412
|
+
})), unread.length > 0 && (/*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
9413
|
+
align: "center",
|
|
9414
|
+
justify: "space-between",
|
|
9473
9415
|
padding: 2
|
|
9474
9416
|
}, /*#__PURE__*/React.createElement(SectionHeaderTitle, null, "Unread"), unread.length > 0 && (/*#__PURE__*/React.createElement(SectionHeaderButton, {
|
|
9475
9417
|
onClick: () => handleMarkAllAsRead(),
|
|
@@ -9495,7 +9437,9 @@ true;
|
|
|
9495
9437
|
notification
|
|
9496
9438
|
}
|
|
9497
9439
|
}))))))), read.length > 0 && showRead && (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SectionHeaderTitle, {
|
|
9498
|
-
|
|
9440
|
+
style: {
|
|
9441
|
+
padding: "var(--t-spacing-2)"
|
|
9442
|
+
}
|
|
9499
9443
|
}, "Read"), /*#__PURE__*/React.createElement(reactTransitionGroup.TransitionGroup, {
|
|
9500
9444
|
exit: false
|
|
9501
9445
|
}, read.map(notification => (/*#__PURE__*/React.createElement(reactTransitionGroup.Transition, {
|
|
@@ -9518,7 +9462,7 @@ true;
|
|
|
9518
9462
|
...{
|
|
9519
9463
|
notification
|
|
9520
9464
|
}
|
|
9521
|
-
})))))))))))))
|
|
9465
|
+
})))))))))))));
|
|
9522
9466
|
}
|
|
9523
9467
|
const Notifications = {
|
|
9524
9468
|
component: NotificationsComponent,
|
|
@@ -9640,31 +9584,43 @@ true;
|
|
|
9640
9584
|
onContactSupport,
|
|
9641
9585
|
onRetry
|
|
9642
9586
|
}) {
|
|
9643
|
-
return /*#__PURE__*/React.createElement(
|
|
9644
|
-
|
|
9645
|
-
|
|
9646
|
-
|
|
9647
|
-
|
|
9648
|
-
|
|
9649
|
-
|
|
9650
|
-
}, /*#__PURE__*/React.createElement(
|
|
9651
|
-
|
|
9652
|
-
|
|
9653
|
-
|
|
9654
|
-
|
|
9655
|
-
|
|
9656
|
-
|
|
9657
|
-
|
|
9587
|
+
return /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
9588
|
+
align: "center",
|
|
9589
|
+
direction: "column",
|
|
9590
|
+
expand: true,
|
|
9591
|
+
gap: 1,
|
|
9592
|
+
justify: "center",
|
|
9593
|
+
padding: 3
|
|
9594
|
+
}, /*#__PURE__*/React.createElement("h2", {
|
|
9595
|
+
style: {
|
|
9596
|
+
color: "var(--t-text-color)",
|
|
9597
|
+
fontSize: "var(--t-font-size-xl)",
|
|
9598
|
+
fontWeight: "var(--t-font-weight-normal)",
|
|
9599
|
+
lineHeight: "32px",
|
|
9600
|
+
margin: 0
|
|
9601
|
+
}
|
|
9602
|
+
}, "Picobot is temporarily unavailable"), /*#__PURE__*/React.createElement("p", {
|
|
9603
|
+
style: {
|
|
9604
|
+
color: "var(--t-text-color-secondary)",
|
|
9605
|
+
fontSize: "var(--t-font-size-xs)",
|
|
9606
|
+
lineHeight: "20px",
|
|
9607
|
+
margin: 0
|
|
9608
|
+
}
|
|
9609
|
+
}, "Try again or contact support."), /*#__PURE__*/React.createElement("div", {
|
|
9610
|
+
style: {
|
|
9611
|
+
paddingTop: "var(--t-spacing-2)"
|
|
9612
|
+
}
|
|
9613
|
+
}, /*#__PURE__*/React.createElement(tapestry.Button, {
|
|
9614
|
+
kind: "primary",
|
|
9615
|
+
label: "Retry",
|
|
9658
9616
|
onClick: onRetry,
|
|
9659
|
-
|
|
9660
|
-
|
|
9661
|
-
|
|
9662
|
-
|
|
9663
|
-
|
|
9664
|
-
|
|
9665
|
-
|
|
9666
|
-
theme: "primary",
|
|
9667
|
-
title: "Contact support"
|
|
9617
|
+
prefix: /*#__PURE__*/React.createElement(Icon, {
|
|
9618
|
+
name: "general.refresh"
|
|
9619
|
+
})
|
|
9620
|
+
})), /*#__PURE__*/React.createElement(tapestry.Button, {
|
|
9621
|
+
kind: "ghost-interaction",
|
|
9622
|
+
label: "Contact support",
|
|
9623
|
+
onClick: onContactSupport
|
|
9668
9624
|
}));
|
|
9669
9625
|
}
|
|
9670
9626
|
const Picobot = {
|
|
@@ -9676,42 +9632,41 @@ true;
|
|
|
9676
9632
|
name: "Picobot"
|
|
9677
9633
|
};
|
|
9678
9634
|
|
|
9635
|
+
var styles$1 = {"badge":"badge-ajEmp","neutral":"neutral-MkFTn","info":"info-olKBf"};
|
|
9636
|
+
|
|
9637
|
+
function Badge({
|
|
9638
|
+
children,
|
|
9639
|
+
kind
|
|
9640
|
+
}) {
|
|
9641
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
9642
|
+
className: classnames(styles$1.badge, styles$1[kind])
|
|
9643
|
+
}, children);
|
|
9644
|
+
}
|
|
9645
|
+
|
|
9646
|
+
var styles = {"nav-link":"nav-link-Yg9d6","is-active":"is-active-B3LJ-"};
|
|
9647
|
+
|
|
9679
9648
|
const {
|
|
9680
|
-
LoadingIndicator
|
|
9681
|
-
StackView
|
|
9649
|
+
LoadingIndicator
|
|
9682
9650
|
} = addOns.components;
|
|
9683
9651
|
function NavLinkWithBadge({
|
|
9684
|
-
children,
|
|
9685
9652
|
badge,
|
|
9686
9653
|
borderBottomColor,
|
|
9687
|
-
|
|
9688
|
-
borderBottomWidth,
|
|
9689
|
-
color,
|
|
9690
|
-
fontSize,
|
|
9691
|
-
fontWeight,
|
|
9654
|
+
children,
|
|
9692
9655
|
onClick
|
|
9693
9656
|
}) {
|
|
9694
|
-
|
|
9695
|
-
|
|
9696
|
-
|
|
9697
|
-
|
|
9698
|
-
|
|
9699
|
-
|
|
9657
|
+
// Home's To do add-on sends tapestry-react style props, not state. The
|
|
9658
|
+
// active tab is the one with the interaction underline. Remove this with
|
|
9659
|
+
// the add-on path when To do moves into the iframe (CHAT-1873).
|
|
9660
|
+
const isActive = borderBottomColor === "interaction";
|
|
9661
|
+
return /*#__PURE__*/React.createElement("button", {
|
|
9662
|
+
className: classnames(styles["nav-link"], {
|
|
9663
|
+
[styles["is-active"]]: isActive
|
|
9664
|
+
}),
|
|
9700
9665
|
onClick: () => onClick(),
|
|
9701
|
-
|
|
9702
|
-
|
|
9703
|
-
|
|
9704
|
-
|
|
9705
|
-
borderBottomWidth,
|
|
9706
|
-
color,
|
|
9707
|
-
fontSize,
|
|
9708
|
-
fontWeight
|
|
9709
|
-
}
|
|
9710
|
-
}, children, badge && /*#__PURE__*/React.createElement(tapestryReact.Badge, {
|
|
9711
|
-
size: "sm",
|
|
9712
|
-
fontWeight: "600",
|
|
9713
|
-
...badge
|
|
9714
|
-
}));
|
|
9666
|
+
type: "button"
|
|
9667
|
+
}, children, badge && (/*#__PURE__*/React.createElement(Badge, {
|
|
9668
|
+
kind: badge.title === "0" ? "neutral" : "info"
|
|
9669
|
+
}, badge.title)));
|
|
9715
9670
|
}
|
|
9716
9671
|
const TASKS_IFRAME_CONFIG = {
|
|
9717
9672
|
app: "home",
|
|
@@ -9766,14 +9721,13 @@ true;
|
|
|
9766
9721
|
display: "flex",
|
|
9767
9722
|
extensionId: env === "staging" ? "41" : "2",
|
|
9768
9723
|
onReceiveWorker: onReceiveWorker,
|
|
9769
|
-
loadingFallback: /*#__PURE__*/React.createElement(
|
|
9770
|
-
|
|
9771
|
-
|
|
9724
|
+
loadingFallback: /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
9725
|
+
direction: "column",
|
|
9726
|
+
expand: true
|
|
9772
9727
|
}, /*#__PURE__*/React.createElement(DrawerHeader, {
|
|
9773
9728
|
closeDrawer: closeDrawer
|
|
9774
|
-
}, /*#__PURE__*/React.createElement(
|
|
9775
|
-
|
|
9776
|
-
spacing: 1
|
|
9729
|
+
}, /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
9730
|
+
gap: 1
|
|
9777
9731
|
}, /*#__PURE__*/React.createElement(DrawerHeading, null, "To do"), /*#__PURE__*/React.createElement(LoadingIndicator, null)))),
|
|
9778
9732
|
additionalComponents: {
|
|
9779
9733
|
DrawerHeader: {
|
|
@@ -9795,21 +9749,6 @@ true;
|
|
|
9795
9749
|
borderBottomColor: {
|
|
9796
9750
|
type: String
|
|
9797
9751
|
},
|
|
9798
|
-
borderBottomStyle: {
|
|
9799
|
-
type: String
|
|
9800
|
-
},
|
|
9801
|
-
borderBottomWidth: {
|
|
9802
|
-
type: String
|
|
9803
|
-
},
|
|
9804
|
-
color: {
|
|
9805
|
-
type: String
|
|
9806
|
-
},
|
|
9807
|
-
fontSize: {
|
|
9808
|
-
attribute: false
|
|
9809
|
-
},
|
|
9810
|
-
fontWeight: {
|
|
9811
|
-
attribute: false
|
|
9812
|
-
},
|
|
9813
9752
|
onClick: {
|
|
9814
9753
|
event: false,
|
|
9815
9754
|
type: Function
|
|
@@ -9903,20 +9842,17 @@ true;
|
|
|
9903
9842
|
function BlankState({
|
|
9904
9843
|
closeDrawer
|
|
9905
9844
|
}) {
|
|
9906
|
-
return /*#__PURE__*/React.createElement(
|
|
9907
|
-
|
|
9908
|
-
|
|
9845
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
9846
|
+
style: {
|
|
9847
|
+
position: "absolute",
|
|
9848
|
+
width: "100%"
|
|
9849
|
+
}
|
|
9909
9850
|
}, /*#__PURE__*/React.createElement(DrawerHeader, {
|
|
9910
9851
|
closeDrawer: closeDrawer
|
|
9911
|
-
}, /*#__PURE__*/React.createElement(
|
|
9912
|
-
|
|
9913
|
-
|
|
9914
|
-
|
|
9915
|
-
}, /*#__PURE__*/React.createElement(DrawerHeading, null, "Chat"), /*#__PURE__*/React.createElement(tapestryReact.Spinner, {
|
|
9916
|
-
color: "var(--t-fill-color-neutral-030)",
|
|
9917
|
-
thickness: 2,
|
|
9918
|
-
trackColor: "var(--t-fill-color-neutral-080)"
|
|
9919
|
-
}))));
|
|
9852
|
+
}, /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
9853
|
+
align: "center",
|
|
9854
|
+
gap: 1
|
|
9855
|
+
}, /*#__PURE__*/React.createElement(DrawerHeading, null, "Chat"), /*#__PURE__*/React.createElement(Spinner, null))));
|
|
9920
9856
|
}
|
|
9921
9857
|
|
|
9922
9858
|
function useHandleMessageFromChildFrame(callback, {
|
|
@@ -10003,15 +9939,17 @@ true;
|
|
|
10003
9939
|
}
|
|
10004
9940
|
return /*#__PURE__*/React.createElement(React.Fragment, null, isLoading && /*#__PURE__*/React.createElement(BlankState, {
|
|
10005
9941
|
closeDrawer: closeDrawer
|
|
10006
|
-
}), /*#__PURE__*/React.createElement(
|
|
9942
|
+
}), /*#__PURE__*/React.createElement("iframe", {
|
|
10007
9943
|
onLoad: () => setIsLoading(false),
|
|
10008
|
-
opacity: isLoading ? 0 : 1,
|
|
10009
|
-
as: "iframe",
|
|
10010
9944
|
src: iframeSrc,
|
|
10011
|
-
|
|
10012
|
-
|
|
10013
|
-
|
|
10014
|
-
|
|
9945
|
+
style: {
|
|
9946
|
+
border: 0,
|
|
9947
|
+
height: "100%",
|
|
9948
|
+
opacity: isLoading ? 0 : 1,
|
|
9949
|
+
width: "100%",
|
|
9950
|
+
zIndex: 1
|
|
9951
|
+
},
|
|
9952
|
+
title: "Chat"
|
|
10015
9953
|
}));
|
|
10016
9954
|
}
|
|
10017
9955
|
|
|
@@ -10464,27 +10402,25 @@ true;
|
|
|
10464
10402
|
// Chat's dot comes from its own config, so a dev override has to land last.
|
|
10465
10403
|
...devStoreDataOverride.indicatorVisible
|
|
10466
10404
|
};
|
|
10467
|
-
return /*#__PURE__*/React.createElement(
|
|
10468
|
-
|
|
10469
|
-
}, /*#__PURE__*/React.createElement(addOns.UiExtensionDataContext, null, /*#__PURE__*/React.createElement("div", {
|
|
10470
|
-
className: styles$2["toolbar"],
|
|
10405
|
+
return /*#__PURE__*/React.createElement(addOns.UiExtensionDataContext, null, /*#__PURE__*/React.createElement("div", {
|
|
10406
|
+
className: styles$8["toolbar"],
|
|
10471
10407
|
"data-pendo": "toolbar-profile-support-wrapper"
|
|
10472
10408
|
}, /*#__PURE__*/React.createElement(ToolbarDrawerButton, {
|
|
10473
10409
|
tooltip: "Profile",
|
|
10474
10410
|
"aria-label": `Profile, ${userName}`,
|
|
10475
10411
|
onClick: () => toggleDrawer(Profile),
|
|
10476
10412
|
"data-pendo": "toolbar-profile",
|
|
10477
|
-
className: styles$
|
|
10413
|
+
className: styles$8["toolbar-button--avatar"],
|
|
10478
10414
|
icon: /*#__PURE__*/React.createElement(Avatar, {
|
|
10479
10415
|
env: env,
|
|
10480
10416
|
url: userAvatarPath
|
|
10481
10417
|
})
|
|
10482
10418
|
}), /*#__PURE__*/React.createElement(ToolbarButton, {
|
|
10483
|
-
className: styles$
|
|
10419
|
+
className: styles$8["toolbar-button--home"],
|
|
10484
10420
|
onClick: () => closeDrawer()
|
|
10485
|
-
}, /*#__PURE__*/React.createElement(
|
|
10421
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
10486
10422
|
name: "toolbar.planningCenter",
|
|
10487
|
-
size:
|
|
10423
|
+
size: 24
|
|
10488
10424
|
})), [HelpDeskTool, ...TOOLS].map(tool => {
|
|
10489
10425
|
var _a;
|
|
10490
10426
|
const current = open && currentContent === tool;
|
|
@@ -10507,7 +10443,7 @@ true;
|
|
|
10507
10443
|
id: `toolbarDrawer${currentContent.name}`
|
|
10508
10444
|
}, /*#__PURE__*/React.createElement(currentContent.component, {
|
|
10509
10445
|
...currentToolProps
|
|
10510
|
-
})))))
|
|
10446
|
+
})))));
|
|
10511
10447
|
}
|
|
10512
10448
|
const ToolbarButton = ({
|
|
10513
10449
|
children,
|
|
@@ -10518,7 +10454,7 @@ true;
|
|
|
10518
10454
|
}) => {
|
|
10519
10455
|
return /*#__PURE__*/React.createElement("button", {
|
|
10520
10456
|
type: "button",
|
|
10521
|
-
className: classnames(styles$
|
|
10457
|
+
className: classnames(styles$8["toolbar-button"], className, current && styles$8["is-current"]),
|
|
10522
10458
|
onClick: onClick,
|
|
10523
10459
|
"data-toolbar-link": "true",
|
|
10524
10460
|
...restProps
|
|
@@ -10534,7 +10470,7 @@ true;
|
|
|
10534
10470
|
// Below 600px the toolbar sits along the bottom, where tooltips get in the way.
|
|
10535
10471
|
const isSideToolbar = useMediaQuery("(min-width: 600px)");
|
|
10536
10472
|
return /*#__PURE__*/React.createElement(tapestry.IconButton, {
|
|
10537
|
-
className: classnames(styles$
|
|
10473
|
+
className: classnames(styles$8["toolbar-button"], className, current && styles$8["is-current"]),
|
|
10538
10474
|
"aria-label": ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : tooltip,
|
|
10539
10475
|
tooltip: isSideToolbar ? tooltip : undefined,
|
|
10540
10476
|
tooltipPlacement: "left",
|
|
@@ -10611,7 +10547,7 @@ true;
|
|
|
10611
10547
|
}
|
|
10612
10548
|
}
|
|
10613
10549
|
const Toolbar = withErrorBoundary(UnguardedToolbar, /*#__PURE__*/React.createElement("div", {
|
|
10614
|
-
className: styles$
|
|
10550
|
+
className: styles$8["toolbar"]
|
|
10615
10551
|
}));
|
|
10616
10552
|
|
|
10617
10553
|
exports.AccessibilityToolbar = AccessibilityToolbar;
|