@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.js
CHANGED
|
@@ -13,10 +13,8 @@ var toolbar = require('@planningcenter/icons/paths/toolbar');
|
|
|
13
13
|
var datetimeFmt = require('@planningcenter/datetime-fmt');
|
|
14
14
|
var pluralize = require('pluralize');
|
|
15
15
|
var logomarks = require('@planningcenter/icons/paths/logomark');
|
|
16
|
-
var tapestryReact = require('@planningcenter/tapestry-react');
|
|
17
16
|
var reactDom = require('react-dom');
|
|
18
17
|
var addOns = require('@planningcenter/add-ons');
|
|
19
|
-
var people = require('@planningcenter/icons/paths/people');
|
|
20
18
|
var reactCalendly = require('react-calendly');
|
|
21
19
|
var algoliasearch = require('algoliasearch');
|
|
22
20
|
var reactInstantsearchCore = require('react-instantsearch-core');
|
|
@@ -41,13 +39,11 @@ function _interopNamespaceDefault(e) {
|
|
|
41
39
|
|
|
42
40
|
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
43
41
|
var general__namespace = /*#__PURE__*/_interopNamespaceDefault(general);
|
|
44
|
-
var churchCenter__namespace = /*#__PURE__*/_interopNamespaceDefault(churchCenter);
|
|
45
42
|
var accounts__namespace = /*#__PURE__*/_interopNamespaceDefault(accounts);
|
|
46
43
|
var toolbar__namespace = /*#__PURE__*/_interopNamespaceDefault(toolbar);
|
|
47
44
|
var logomarks__namespace = /*#__PURE__*/_interopNamespaceDefault(logomarks);
|
|
48
|
-
var people__namespace = /*#__PURE__*/_interopNamespaceDefault(people);
|
|
49
45
|
|
|
50
|
-
var styles$
|
|
46
|
+
var styles$B = {"accessibility-toolbar":"accessibility-toolbar-jgjUG"};
|
|
51
47
|
|
|
52
48
|
const AccessibilityToolbar = ({
|
|
53
49
|
children
|
|
@@ -59,7 +55,7 @@ const AccessibilityToolbar = ({
|
|
|
59
55
|
(_a = document.getElementById("main-content")) === null || _a === void 0 ? void 0 : _a.focus();
|
|
60
56
|
};
|
|
61
57
|
return /*#__PURE__*/React.createElement("div", {
|
|
62
|
-
className: styles$
|
|
58
|
+
className: styles$B["accessibility-toolbar"]
|
|
63
59
|
}, /*#__PURE__*/React.createElement(tapestry.Link, {
|
|
64
60
|
href: "#main-content",
|
|
65
61
|
kind: "primary",
|
|
@@ -378,11 +374,11 @@ const X = ({
|
|
|
378
374
|
fill: fill
|
|
379
375
|
})));
|
|
380
376
|
|
|
381
|
-
var styles$
|
|
377
|
+
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"};
|
|
382
378
|
|
|
383
379
|
function AnnouncementIcon() {
|
|
384
380
|
return /*#__PURE__*/React.createElement("svg", {
|
|
385
|
-
className: styles$
|
|
381
|
+
className: styles$A["announcement-icon"],
|
|
386
382
|
width: "16",
|
|
387
383
|
height: "16",
|
|
388
384
|
viewBox: "0 0 16 16",
|
|
@@ -507,7 +503,7 @@ let StyledAnnouncement$1 = class StyledAnnouncement extends React.Component {
|
|
|
507
503
|
} = this.props;
|
|
508
504
|
const isPromo = variant === "promo";
|
|
509
505
|
return /*#__PURE__*/React.createElement("div", {
|
|
510
|
-
className: classnames(styles$
|
|
506
|
+
className: classnames(styles$A["announcement"], styles$A[`announcement--${variant !== null && variant !== void 0 ? variant : "platform"}`]),
|
|
511
507
|
"data-announcement-variant": variant !== null && variant !== void 0 ? variant : "platform",
|
|
512
508
|
style: isPromo ? {
|
|
513
509
|
backgroundImage: promoBackgroundUrl,
|
|
@@ -516,7 +512,7 @@ let StyledAnnouncement$1 = class StyledAnnouncement extends React.Component {
|
|
|
516
512
|
backgroundSize: "cover"
|
|
517
513
|
} : undefined
|
|
518
514
|
}, !isPromo && /*#__PURE__*/React.createElement(AnnouncementIcon, null), /*#__PURE__*/React.createElement("div", {
|
|
519
|
-
className: styles$
|
|
515
|
+
className: styles$A["announcement-content"],
|
|
520
516
|
style: style,
|
|
521
517
|
...platformProps
|
|
522
518
|
}));
|
|
@@ -565,7 +561,7 @@ function StyledDismissButton$1({
|
|
|
565
561
|
const isPromo = variant === "promo";
|
|
566
562
|
return /*#__PURE__*/React.createElement("button", {
|
|
567
563
|
type: "button",
|
|
568
|
-
className: classnames(styles$
|
|
564
|
+
className: classnames(styles$A.dismiss, isPromo && styles$A["dismiss--promo"]),
|
|
569
565
|
...props
|
|
570
566
|
}, /*#__PURE__*/React.createElement(X, {
|
|
571
567
|
fill: isPromo ? "currentColor" : "white",
|
|
@@ -645,9 +641,9 @@ class StyledAnnouncement extends React.Component {
|
|
|
645
641
|
...platformProps
|
|
646
642
|
} = this.props;
|
|
647
643
|
return /*#__PURE__*/React.createElement("div", {
|
|
648
|
-
className: styles$
|
|
644
|
+
className: styles$A["announcement"]
|
|
649
645
|
}, /*#__PURE__*/React.createElement(AnnouncementIcon, null), /*#__PURE__*/React.createElement("div", {
|
|
650
|
-
className: styles$
|
|
646
|
+
className: styles$A["announcement-content"],
|
|
651
647
|
style: style,
|
|
652
648
|
...platformProps
|
|
653
649
|
}));
|
|
@@ -658,7 +654,7 @@ function StyledDismissButton({
|
|
|
658
654
|
}) {
|
|
659
655
|
return /*#__PURE__*/React.createElement("button", {
|
|
660
656
|
type: "button",
|
|
661
|
-
className: styles$
|
|
657
|
+
className: styles$A.dismiss,
|
|
662
658
|
...props
|
|
663
659
|
}, /*#__PURE__*/React.createElement(X, {
|
|
664
660
|
fill: "white",
|
|
@@ -1784,7 +1780,7 @@ function MonoAppIcon({
|
|
|
1784
1780
|
})) : (/*#__PURE__*/React.createElement("div", null, "appName not supported")));
|
|
1785
1781
|
}
|
|
1786
1782
|
|
|
1787
|
-
var styles$
|
|
1783
|
+
var styles$z = {"name":"name-UNqbW"};
|
|
1788
1784
|
|
|
1789
1785
|
// Draws Church Center's 16-unit home icon inside a 20-unit box at the same
|
|
1790
1786
|
// proportions as the app symbols, like Account settings' gear, which fill
|
|
@@ -1824,25 +1820,25 @@ const AppRow = ({
|
|
|
1824
1820
|
colors: colors,
|
|
1825
1821
|
size: iconSize
|
|
1826
1822
|
}), /*#__PURE__*/React.createElement("span", {
|
|
1827
|
-
className: styles$
|
|
1823
|
+
className: styles$z.name
|
|
1828
1824
|
}, "Account settings"));
|
|
1829
1825
|
}
|
|
1830
1826
|
if (appName === "Church Center") {
|
|
1831
1827
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ChurchCenterIcon, {
|
|
1832
1828
|
size: iconSize
|
|
1833
1829
|
}), /*#__PURE__*/React.createElement("span", {
|
|
1834
|
-
className: styles$
|
|
1830
|
+
className: styles$z.name
|
|
1835
1831
|
}, "Church Center"));
|
|
1836
1832
|
}
|
|
1837
1833
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ColorAppIcon, {
|
|
1838
1834
|
appName: appName.replace(/[\s-]/, ""),
|
|
1839
1835
|
size: iconSize
|
|
1840
1836
|
}), /*#__PURE__*/React.createElement("span", {
|
|
1841
|
-
className: styles$
|
|
1837
|
+
className: styles$z.name
|
|
1842
1838
|
}, appName));
|
|
1843
1839
|
};
|
|
1844
1840
|
|
|
1845
|
-
var styles$
|
|
1841
|
+
var styles$y = {"button":"button-NPHAj","label":"label-1EckO","chevron":"chevron-6-PM4"};
|
|
1846
1842
|
|
|
1847
1843
|
const AppsButton = /*#__PURE__*/React.forwardRef(({
|
|
1848
1844
|
appName,
|
|
@@ -1854,10 +1850,10 @@ const AppsButton = /*#__PURE__*/React.forwardRef(({
|
|
|
1854
1850
|
...restProps,
|
|
1855
1851
|
ref: ref,
|
|
1856
1852
|
"aria-label": `App switcher: ${appName}`,
|
|
1857
|
-
className: styles$
|
|
1853
|
+
className: styles$y.button,
|
|
1858
1854
|
kind: "neutral-inline",
|
|
1859
1855
|
label: /*#__PURE__*/React.createElement("span", {
|
|
1860
|
-
className: styles$
|
|
1856
|
+
className: styles$y.label
|
|
1861
1857
|
}, isAccounts ? "Account settings" : appName),
|
|
1862
1858
|
prefix: isAccounts ? (/*#__PURE__*/React.createElement(MonoAppIcon, {
|
|
1863
1859
|
appName: "Accounts",
|
|
@@ -1870,13 +1866,13 @@ const AppsButton = /*#__PURE__*/React.forwardRef(({
|
|
|
1870
1866
|
size: 24
|
|
1871
1867
|
})),
|
|
1872
1868
|
suffix: /*#__PURE__*/React.createElement(DisclosureChevronIcon, {
|
|
1873
|
-
className: `${styles$
|
|
1869
|
+
className: `${styles$y.chevron} symbol`
|
|
1874
1870
|
})
|
|
1875
1871
|
});
|
|
1876
1872
|
});
|
|
1877
1873
|
AppsButton.displayName = "AppsButton";
|
|
1878
1874
|
|
|
1879
|
-
var styles$
|
|
1875
|
+
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"};
|
|
1880
1876
|
|
|
1881
1877
|
const AppsMenu = ({
|
|
1882
1878
|
appName,
|
|
@@ -1900,8 +1896,8 @@ const AppsMenu = ({
|
|
|
1900
1896
|
}, /*#__PURE__*/React.createElement("a", {
|
|
1901
1897
|
"aria-current": isCurrent ? "page" : undefined,
|
|
1902
1898
|
"aria-label": name,
|
|
1903
|
-
className: classnames(styles$
|
|
1904
|
-
[styles$
|
|
1899
|
+
className: classnames(styles$x.link, {
|
|
1900
|
+
[styles$x.current]: isCurrent
|
|
1905
1901
|
}),
|
|
1906
1902
|
"data-pendo": `app-switcher--change-app--${name}`,
|
|
1907
1903
|
"data-turbolinks": false,
|
|
@@ -1917,22 +1913,22 @@ const AppsMenu = ({
|
|
|
1917
1913
|
colors: colors
|
|
1918
1914
|
})), /*#__PURE__*/React.createElement(tapestry.PopoverContent, {
|
|
1919
1915
|
"aria-label": "Switch app",
|
|
1920
|
-
className: styles$
|
|
1916
|
+
className: styles$x["popover-content"],
|
|
1921
1917
|
placement: "bottom start"
|
|
1922
1918
|
}, /*#__PURE__*/React.createElement("nav", {
|
|
1923
|
-
className: styles$
|
|
1919
|
+
className: styles$x.nav,
|
|
1924
1920
|
"data-pendo": "app-switcher"
|
|
1925
1921
|
}, /*#__PURE__*/React.createElement("ul", {
|
|
1926
|
-
className: styles$
|
|
1922
|
+
className: styles$x.list,
|
|
1927
1923
|
role: "list"
|
|
1928
1924
|
}, homeProduct && renderProductLink(homeProduct.name), restProducts.map(({
|
|
1929
1925
|
name
|
|
1930
1926
|
}) => renderProductLink(name)), accountsProduct && (/*#__PURE__*/React.createElement("li", {
|
|
1931
|
-
className: styles$
|
|
1927
|
+
className: styles$x["accounts-item"]
|
|
1932
1928
|
}, /*#__PURE__*/React.createElement("a", {
|
|
1933
1929
|
"aria-current": appName === accountsProduct.name ? "page" : undefined,
|
|
1934
1930
|
"aria-label": "Account settings",
|
|
1935
|
-
className: classnames(styles$
|
|
1931
|
+
className: classnames(styles$x.link, styles$x["accounts-link"]),
|
|
1936
1932
|
"data-pendo": "app-switcher--change-app--Accounts",
|
|
1937
1933
|
"data-turbolinks": false,
|
|
1938
1934
|
href: pcoUrl$1(env)("accounts") + getAppsSwitchProductPath(accountsProduct.name)
|
|
@@ -1941,7 +1937,7 @@ const AppsMenu = ({
|
|
|
1941
1937
|
colors: colors
|
|
1942
1938
|
})))), showChurchCenter && (/*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("a", {
|
|
1943
1939
|
"aria-current": appName === "Church Center" ? "page" : undefined,
|
|
1944
|
-
className: classnames(styles$
|
|
1940
|
+
className: classnames(styles$x.link, styles$x["accounts-link"]),
|
|
1945
1941
|
"data-pendo": "app-switcher--change-app--ChurchCenter",
|
|
1946
1942
|
"data-turbolinks": false,
|
|
1947
1943
|
href: `${pcoUrl$1(env)("publishing")}/church-center`
|
|
@@ -2879,7 +2875,7 @@ const horizontalStep = key => ({
|
|
|
2879
2875
|
ArrowRight: 1
|
|
2880
2876
|
})[key];
|
|
2881
2877
|
|
|
2882
|
-
var styles$
|
|
2878
|
+
var styles$w = {"searchButton":"searchButton-fYa5-"};
|
|
2883
2879
|
|
|
2884
2880
|
function SearchButton({
|
|
2885
2881
|
mobile = false,
|
|
@@ -2888,7 +2884,7 @@ function SearchButton({
|
|
|
2888
2884
|
return /*#__PURE__*/React.createElement("button", {
|
|
2889
2885
|
"aria-keyshortcuts": mobile ? undefined : `${isMac() ? "Meta" : "Control"}+${KEYBOARD_SHORTCUTS.openSearch.key.toUpperCase()} /`,
|
|
2890
2886
|
"aria-label": "Search",
|
|
2891
|
-
className: styles$
|
|
2887
|
+
className: styles$w.searchButton,
|
|
2892
2888
|
"data-search-button": true,
|
|
2893
2889
|
onClick: onClick,
|
|
2894
2890
|
type: "button"
|
|
@@ -4259,7 +4255,7 @@ function useResultNavigation(items, list, enabled = true) {
|
|
|
4259
4255
|
};
|
|
4260
4256
|
}
|
|
4261
4257
|
|
|
4262
|
-
var styles$
|
|
4258
|
+
var styles$v = {"modal":"modal-NR3TO","visuallyHidden":"visuallyHidden-C28ju","panel":"panel-HlF7S"};
|
|
4263
4259
|
|
|
4264
4260
|
const FALLBACK_SLUGS = ["people", "services"];
|
|
4265
4261
|
function defaultProduct(products, appName) {
|
|
@@ -4429,7 +4425,7 @@ function BlankStateActions({
|
|
|
4429
4425
|
}, action.label))))));
|
|
4430
4426
|
}
|
|
4431
4427
|
|
|
4432
|
-
var styles$
|
|
4428
|
+
var styles$u = {"container":"container-YDdM1","hint":"hint-017Rd","keycap":"keycap-ENJM2","labels":"labels-GHPqL","copied":"copied-DUFa1"};
|
|
4433
4429
|
|
|
4434
4430
|
const SYMBOLS = {
|
|
4435
4431
|
command: {
|
|
@@ -4451,7 +4447,7 @@ const SYMBOLS = {
|
|
|
4451
4447
|
};
|
|
4452
4448
|
function Keycap(props) {
|
|
4453
4449
|
return /*#__PURE__*/React.createElement("kbd", {
|
|
4454
|
-
className: styles$
|
|
4450
|
+
className: styles$u.keycap
|
|
4455
4451
|
}, "symbol" in props ? (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("svg", {
|
|
4456
4452
|
"aria-hidden": true,
|
|
4457
4453
|
fill: "none",
|
|
@@ -4463,7 +4459,7 @@ function Keycap(props) {
|
|
|
4463
4459
|
d: d,
|
|
4464
4460
|
key: d
|
|
4465
4461
|
})))), /*#__PURE__*/React.createElement("span", {
|
|
4466
|
-
className: styles$
|
|
4462
|
+
className: styles$v.visuallyHidden
|
|
4467
4463
|
}, SYMBOLS[props.symbol].label))) : props.label);
|
|
4468
4464
|
}
|
|
4469
4465
|
function CommandKey() {
|
|
@@ -4491,10 +4487,10 @@ function KeyboardHints({
|
|
|
4491
4487
|
}) {
|
|
4492
4488
|
return /*#__PURE__*/React.createElement("ul", {
|
|
4493
4489
|
"aria-label": "Keyboard shortcuts",
|
|
4494
|
-
className: styles$
|
|
4490
|
+
className: styles$u.container,
|
|
4495
4491
|
"data-platform": isMac() ? "mac" : "pc"
|
|
4496
4492
|
}, /*#__PURE__*/React.createElement("li", {
|
|
4497
|
-
className: styles$
|
|
4493
|
+
className: styles$u.hint
|
|
4498
4494
|
}, /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
4499
4495
|
gap: 0.5
|
|
4500
4496
|
}, select.modifierKey, /*#__PURE__*/React.createElement(Keycap, {
|
|
@@ -4502,11 +4498,11 @@ function KeyboardHints({
|
|
|
4502
4498
|
}), /*#__PURE__*/React.createElement(Keycap, {
|
|
4503
4499
|
symbol: "down"
|
|
4504
4500
|
})), select.label), /*#__PURE__*/React.createElement("li", {
|
|
4505
|
-
className: styles$
|
|
4501
|
+
className: styles$u.hint
|
|
4506
4502
|
}, /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
4507
4503
|
gap: 0.5
|
|
4508
4504
|
}, /*#__PURE__*/React.createElement(CommandKey, null), /*#__PURE__*/React.createElement(EnterKey, null)), openInNewTab.label), /*#__PURE__*/React.createElement("li", {
|
|
4509
|
-
className: classnames(styles$
|
|
4505
|
+
className: classnames(styles$u.hint, copied && styles$u.copied),
|
|
4510
4506
|
style: {
|
|
4511
4507
|
"--copied-active": `${COPIED_TIMING.active}ms`,
|
|
4512
4508
|
"--copied-enter": `${COPIED_TIMING.enter}ms`,
|
|
@@ -4517,13 +4513,13 @@ function KeyboardHints({
|
|
|
4517
4513
|
}, /*#__PURE__*/React.createElement(CommandKey, null), /*#__PURE__*/React.createElement(Keycap, {
|
|
4518
4514
|
label: copyLink.key.toUpperCase()
|
|
4519
4515
|
})), /*#__PURE__*/React.createElement("span", {
|
|
4520
|
-
className: styles$
|
|
4516
|
+
className: styles$u.labels
|
|
4521
4517
|
}, /*#__PURE__*/React.createElement("span", {
|
|
4522
4518
|
"aria-hidden": copied
|
|
4523
4519
|
}, copyLink.label), /*#__PURE__*/React.createElement("span", {
|
|
4524
4520
|
role: "status"
|
|
4525
4521
|
}, copied && "Copied!"))), /*#__PURE__*/React.createElement("li", {
|
|
4526
|
-
className: styles$
|
|
4522
|
+
className: styles$u.hint
|
|
4527
4523
|
}, /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
4528
4524
|
gap: 0.5
|
|
4529
4525
|
}, /*#__PURE__*/React.createElement(CommandKey, null), /*#__PURE__*/React.createElement(Keycap, {
|
|
@@ -4531,7 +4527,7 @@ function KeyboardHints({
|
|
|
4531
4527
|
})), openSearch.label));
|
|
4532
4528
|
}
|
|
4533
4529
|
|
|
4534
|
-
var styles$
|
|
4530
|
+
var styles$t = {"icon":"icon-XKLvN","squircle":"squircle-JCHr6"};
|
|
4535
4531
|
|
|
4536
4532
|
const PRODUCTS = {
|
|
4537
4533
|
accounts: {
|
|
@@ -4600,13 +4596,13 @@ function ProductIcon({
|
|
|
4600
4596
|
const mask = maskFor(path);
|
|
4601
4597
|
return /*#__PURE__*/React.createElement("span", {
|
|
4602
4598
|
"aria-hidden": true,
|
|
4603
|
-
className: styles$
|
|
4599
|
+
className: styles$t.icon,
|
|
4604
4600
|
style: {
|
|
4605
4601
|
height: size,
|
|
4606
4602
|
width: size
|
|
4607
4603
|
}
|
|
4608
4604
|
}, /*#__PURE__*/React.createElement("span", {
|
|
4609
|
-
className: styles$
|
|
4605
|
+
className: styles$t.squircle,
|
|
4610
4606
|
style: {
|
|
4611
4607
|
WebkitMaskImage: mask,
|
|
4612
4608
|
background: `var(${gradient})`,
|
|
@@ -4615,7 +4611,7 @@ function ProductIcon({
|
|
|
4615
4611
|
}));
|
|
4616
4612
|
}
|
|
4617
4613
|
|
|
4618
|
-
var styles$
|
|
4614
|
+
var styles$s = {"picker":"picker-iuzzj","option":"option--7LXg"};
|
|
4619
4615
|
|
|
4620
4616
|
// Phones have no room for a tab per product, so they pick from a dropdown.
|
|
4621
4617
|
// Complex mode renders each option's logomark, in the list and the trigger.
|
|
@@ -4630,7 +4626,7 @@ function ProductSelect({
|
|
|
4630
4626
|
slug
|
|
4631
4627
|
}) => ({
|
|
4632
4628
|
label: (/*#__PURE__*/React.createElement("span", {
|
|
4633
|
-
className: styles$
|
|
4629
|
+
className: styles$s.option
|
|
4634
4630
|
}, /*#__PURE__*/React.createElement(ProductIcon, {
|
|
4635
4631
|
slug: slug
|
|
4636
4632
|
}), appName)),
|
|
@@ -4638,7 +4634,7 @@ function ProductSelect({
|
|
|
4638
4634
|
value: slug
|
|
4639
4635
|
}));
|
|
4640
4636
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
4641
|
-
className: styles$
|
|
4637
|
+
className: styles$s.picker
|
|
4642
4638
|
}, /*#__PURE__*/React.createElement(tapestry.Select, {
|
|
4643
4639
|
"aria-label": "Product",
|
|
4644
4640
|
complex: true,
|
|
@@ -4646,7 +4642,7 @@ function ProductSelect({
|
|
|
4646
4642
|
options: options,
|
|
4647
4643
|
value: selected.slug
|
|
4648
4644
|
})), /*#__PURE__*/React.createElement("div", {
|
|
4649
|
-
className: styles$
|
|
4645
|
+
className: styles$v.panel
|
|
4650
4646
|
}, children));
|
|
4651
4647
|
}
|
|
4652
4648
|
|
|
@@ -4697,7 +4693,7 @@ function useKeyboardFocus({
|
|
|
4697
4693
|
};
|
|
4698
4694
|
}
|
|
4699
4695
|
|
|
4700
|
-
var styles$
|
|
4696
|
+
var styles$r = {"tablist":"tablist-7ASvc","tab":"tab-dz8ki"};
|
|
4701
4697
|
|
|
4702
4698
|
// With this many tabs or more, only the selected tab shows its name, so they
|
|
4703
4699
|
// all fit. Fewer always fit with their names.
|
|
@@ -4728,7 +4724,7 @@ function ProductTabs({
|
|
|
4728
4724
|
};
|
|
4729
4725
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
4730
4726
|
"aria-label": "Search in",
|
|
4731
|
-
className: styles$
|
|
4727
|
+
className: styles$r.tablist,
|
|
4732
4728
|
onKeyDown: handleKeyDown,
|
|
4733
4729
|
role: "tablist"
|
|
4734
4730
|
}, products.map(product => (/*#__PURE__*/React.createElement(Tab, {
|
|
@@ -4748,10 +4744,10 @@ function ProductTabs({
|
|
|
4748
4744
|
}, /*#__PURE__*/React.createElement(ProductIcon, {
|
|
4749
4745
|
slug: product.slug
|
|
4750
4746
|
}), showAllNames || product === selected ? product.appName : (/*#__PURE__*/React.createElement("span", {
|
|
4751
|
-
className: styles$
|
|
4747
|
+
className: styles$v.visuallyHidden
|
|
4752
4748
|
}, product.appName)))))), /*#__PURE__*/React.createElement("div", {
|
|
4753
4749
|
"aria-labelledby": tabId(selected.slug),
|
|
4754
|
-
className: styles$
|
|
4750
|
+
className: styles$v.panel,
|
|
4755
4751
|
id: `${id}-panel`,
|
|
4756
4752
|
role: "tabpanel"
|
|
4757
4753
|
}, children));
|
|
@@ -4764,7 +4760,7 @@ const Tab = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
|
|
|
4764
4760
|
focusProps
|
|
4765
4761
|
} = useKeyboardFocus();
|
|
4766
4762
|
return /*#__PURE__*/React.createElement("button", {
|
|
4767
|
-
className: styles$
|
|
4763
|
+
className: styles$r.tab,
|
|
4768
4764
|
ref: ref,
|
|
4769
4765
|
role: "tab",
|
|
4770
4766
|
type: "button",
|
|
@@ -5108,7 +5104,7 @@ function BlankStateRecentlyVisited(props) {
|
|
|
5108
5104
|
}))));
|
|
5109
5105
|
}
|
|
5110
5106
|
|
|
5111
|
-
var styles$
|
|
5107
|
+
var styles$q = {"blank_state":"blank_state-kX-H1","image":"image-R3D6r"};
|
|
5112
5108
|
|
|
5113
5109
|
function BlankState$1({
|
|
5114
5110
|
action,
|
|
@@ -5119,12 +5115,12 @@ function BlankState$1({
|
|
|
5119
5115
|
}) {
|
|
5120
5116
|
return /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
5121
5117
|
role: role,
|
|
5122
|
-
className: styles$
|
|
5118
|
+
className: styles$q.blank_state,
|
|
5123
5119
|
direction: "column",
|
|
5124
5120
|
align: "center",
|
|
5125
5121
|
gap: 3
|
|
5126
5122
|
}, /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
5127
|
-
className: styles$
|
|
5123
|
+
className: styles$q.image
|
|
5128
5124
|
}, image), /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
5129
5125
|
direction: "column",
|
|
5130
5126
|
align: "center",
|
|
@@ -5150,7 +5146,7 @@ function EndOfResultsObserver({
|
|
|
5150
5146
|
|
|
5151
5147
|
const resultId = (listboxId, index) => `${listboxId}-result-${index}`;
|
|
5152
5148
|
|
|
5153
|
-
var styles$
|
|
5149
|
+
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"};
|
|
5154
5150
|
|
|
5155
5151
|
function SearchResult({
|
|
5156
5152
|
category,
|
|
@@ -5217,7 +5213,7 @@ function SearchResult({
|
|
|
5217
5213
|
"aria-describedby": [subdued && `${id}-subdued`, describedBy, subtitle && `${id}-subtitle`].filter(Boolean).join(" ") || undefined,
|
|
5218
5214
|
"aria-labelledby": title ? `${id}-title` : undefined,
|
|
5219
5215
|
"aria-selected": highlighted,
|
|
5220
|
-
className: classnames(styles$
|
|
5216
|
+
className: classnames(styles$p.result, subdued && styles$p.subdued),
|
|
5221
5217
|
"data-turbo": "false",
|
|
5222
5218
|
href: url,
|
|
5223
5219
|
id: id,
|
|
@@ -5231,13 +5227,13 @@ function SearchResult({
|
|
|
5231
5227
|
imageUrl: imageUrl,
|
|
5232
5228
|
product: product
|
|
5233
5229
|
}), /*#__PURE__*/React.createElement("span", {
|
|
5234
|
-
className: styles$
|
|
5230
|
+
className: styles$p.title,
|
|
5235
5231
|
id: `${id}-title`
|
|
5236
5232
|
}, title), /*#__PURE__*/React.createElement("span", {
|
|
5237
|
-
className: styles$
|
|
5233
|
+
className: styles$p.subtitle,
|
|
5238
5234
|
id: `${id}-subtitle`
|
|
5239
5235
|
}, subtitle), subdued && (/*#__PURE__*/React.createElement("span", {
|
|
5240
|
-
className: styles$
|
|
5236
|
+
className: styles$v.visuallyHidden,
|
|
5241
5237
|
id: `${id}-subdued`
|
|
5242
5238
|
}, "Inactive")))
|
|
5243
5239
|
);
|
|
@@ -5255,18 +5251,18 @@ function ResultImage({
|
|
|
5255
5251
|
})) : null;
|
|
5256
5252
|
return /*#__PURE__*/React.createElement("span", {
|
|
5257
5253
|
"aria-hidden": true,
|
|
5258
|
-
className: styles$
|
|
5254
|
+
className: styles$p.image
|
|
5259
5255
|
}, imageUrl ? (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("img", {
|
|
5260
5256
|
alt: "",
|
|
5261
|
-
className: category === "profile" ? styles$
|
|
5257
|
+
className: category === "profile" ? styles$p.avatar : styles$p.photo,
|
|
5262
5258
|
loading: "lazy",
|
|
5263
5259
|
src: imageUrl
|
|
5264
5260
|
}), /*#__PURE__*/React.createElement("span", {
|
|
5265
|
-
className: styles$
|
|
5261
|
+
className: styles$p.badge
|
|
5266
5262
|
}, icon(16)))) : icon("100%"));
|
|
5267
5263
|
}
|
|
5268
5264
|
|
|
5269
|
-
var styles$
|
|
5265
|
+
var styles$o = {"heading":"heading-LioUF","group":"group-cKChg"};
|
|
5270
5266
|
|
|
5271
5267
|
// Sections with a heading render as labelled groups; ones without render
|
|
5272
5268
|
// their items straight into the listbox. Indexes run across every section.
|
|
@@ -5319,11 +5315,11 @@ function ResultListbox({
|
|
|
5319
5315
|
const headingId = `${id}-group-${sectionIndex}`;
|
|
5320
5316
|
return /*#__PURE__*/React.createElement("div", {
|
|
5321
5317
|
"aria-labelledby": headingId,
|
|
5322
|
-
className: styles$
|
|
5318
|
+
className: styles$o.group,
|
|
5323
5319
|
key: section.key,
|
|
5324
5320
|
role: "group"
|
|
5325
5321
|
}, /*#__PURE__*/React.createElement("div", {
|
|
5326
|
-
className: styles$
|
|
5322
|
+
className: styles$o.heading,
|
|
5327
5323
|
id: headingId
|
|
5328
5324
|
}, section.heading), section.items.map((item, itemIndex) => renderItem(item, itemIndex, headingId)));
|
|
5329
5325
|
}));
|
|
@@ -5346,7 +5342,7 @@ function RecentlyVisited({
|
|
|
5346
5342
|
});
|
|
5347
5343
|
} else {
|
|
5348
5344
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
5349
|
-
className: styles$
|
|
5345
|
+
className: styles$o.heading,
|
|
5350
5346
|
id: headingId
|
|
5351
5347
|
}, "Recently visited"), /*#__PURE__*/React.createElement(ResultListbox, {
|
|
5352
5348
|
labelledBy: headingId,
|
|
@@ -5362,7 +5358,7 @@ function RecentlyVisited({
|
|
|
5362
5358
|
}
|
|
5363
5359
|
}
|
|
5364
5360
|
|
|
5365
|
-
var styles$
|
|
5361
|
+
var styles$n = {"row":"row-5P7UQ","header":"header-sXEyG","closeButton":"closeButton-rPJJV","input":"input-YQkTC","clearButton":"clearButton-9Yh9w"};
|
|
5366
5362
|
|
|
5367
5363
|
// A combobox: focus stays here while aria-activedescendant points screen
|
|
5368
5364
|
// readers at the highlighted result in the listbox it controls.
|
|
@@ -5399,9 +5395,9 @@ function SearchInput({
|
|
|
5399
5395
|
}
|
|
5400
5396
|
});
|
|
5401
5397
|
return /*#__PURE__*/React.createElement("div", {
|
|
5402
|
-
className: styles$
|
|
5398
|
+
className: styles$n.row
|
|
5403
5399
|
}, /*#__PURE__*/React.createElement("label", {
|
|
5404
|
-
className: styles$
|
|
5400
|
+
className: styles$n.header,
|
|
5405
5401
|
id: "topbar_product_search_label"
|
|
5406
5402
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
5407
5403
|
name: "general.search",
|
|
@@ -5414,7 +5410,7 @@ function SearchInput({
|
|
|
5414
5410
|
"aria-expanded": expanded,
|
|
5415
5411
|
"aria-label": "Search",
|
|
5416
5412
|
autoFocus: true,
|
|
5417
|
-
className: styles$
|
|
5413
|
+
className: styles$n.input,
|
|
5418
5414
|
id: "product_search",
|
|
5419
5415
|
onChange: event => onChange(event.target.value),
|
|
5420
5416
|
onKeyDown: onKeyDown,
|
|
@@ -5426,7 +5422,7 @@ function SearchInput({
|
|
|
5426
5422
|
...focusProps
|
|
5427
5423
|
}), !onClose && value !== "" && (/*#__PURE__*/React.createElement("button", {
|
|
5428
5424
|
"aria-label": "Clear search",
|
|
5429
|
-
className: styles$
|
|
5425
|
+
className: styles$n.clearButton,
|
|
5430
5426
|
onClick: () => {
|
|
5431
5427
|
var _a;
|
|
5432
5428
|
onChange("");
|
|
@@ -5445,7 +5441,7 @@ function SearchInput({
|
|
|
5445
5441
|
d: "M6.5 6.5l7 7m0 -7l-7 7"
|
|
5446
5442
|
}))))), onClose && (/*#__PURE__*/React.createElement(tapestry.IconButton, {
|
|
5447
5443
|
"aria-label": "Close search",
|
|
5448
|
-
className: styles$
|
|
5444
|
+
className: styles$n.closeButton,
|
|
5449
5445
|
icon: /*#__PURE__*/React.createElement(Icon, {
|
|
5450
5446
|
name: "general.x",
|
|
5451
5447
|
theme: "--t-icon-color-dim"
|
|
@@ -5792,7 +5788,7 @@ function BlankStateNoResults(props) {
|
|
|
5792
5788
|
})));
|
|
5793
5789
|
}
|
|
5794
5790
|
|
|
5795
|
-
var styles$
|
|
5791
|
+
var styles$m = {"spinner":"spinner-b5tlz"};
|
|
5796
5792
|
|
|
5797
5793
|
function LoadingSpinner({
|
|
5798
5794
|
size = 48,
|
|
@@ -5800,7 +5796,7 @@ function LoadingSpinner({
|
|
|
5800
5796
|
}) {
|
|
5801
5797
|
return /*#__PURE__*/React.createElement("span", {
|
|
5802
5798
|
"aria-hidden": "true",
|
|
5803
|
-
className: styles$
|
|
5799
|
+
className: styles$m.spinner,
|
|
5804
5800
|
style: {
|
|
5805
5801
|
"--spinner-size": `${size}px`,
|
|
5806
5802
|
"--spinner-track-width": `${trackWidth}px`
|
|
@@ -5982,10 +5978,10 @@ function SearchPanel({
|
|
|
5982
5978
|
selected: product
|
|
5983
5979
|
}, results)), /*#__PURE__*/React.createElement("div", {
|
|
5984
5980
|
"aria-live": "polite",
|
|
5985
|
-
className: styles$
|
|
5981
|
+
className: styles$v.visuallyHidden
|
|
5986
5982
|
}, announceHighlight ? (_b = navigation.highlighted) === null || _b === void 0 ? void 0 : _b.title : null), /*#__PURE__*/React.createElement("div", {
|
|
5987
5983
|
"aria-live": "polite",
|
|
5988
|
-
className: styles$
|
|
5984
|
+
className: styles$v.visuallyHidden,
|
|
5989
5985
|
"data-testid": "result-count"
|
|
5990
5986
|
}, resultCount), mobile ? null : /*#__PURE__*/React.createElement(KeyboardHints, {
|
|
5991
5987
|
copied: navigation.copied
|
|
@@ -6202,7 +6198,7 @@ function ProductSearch({
|
|
|
6202
6198
|
onClick: () => setOpen(true)
|
|
6203
6199
|
}), /*#__PURE__*/React.createElement(tapestry.Modal, {
|
|
6204
6200
|
"aria-label": "Search",
|
|
6205
|
-
className: styles$
|
|
6201
|
+
className: styles$v.modal,
|
|
6206
6202
|
dismissible: true,
|
|
6207
6203
|
id: "product_search_modal",
|
|
6208
6204
|
onClose: () => setOpen(false),
|
|
@@ -6269,7 +6265,17 @@ function TopbarPlaceholder() {
|
|
|
6269
6265
|
});
|
|
6270
6266
|
}
|
|
6271
6267
|
|
|
6272
|
-
var styles$
|
|
6268
|
+
var styles$l = {"route":"route--8BWe","is-active":"is-active-FsU9Y","apps-routes-separator":"apps-routes-separator-Nlm-N"};
|
|
6269
|
+
|
|
6270
|
+
function Divider() {
|
|
6271
|
+
return /*#__PURE__*/React.createElement("hr", {
|
|
6272
|
+
style: {
|
|
6273
|
+
border: 0,
|
|
6274
|
+
borderTop: "var(--t-border-width) solid var(--t-border-color)",
|
|
6275
|
+
margin: 0
|
|
6276
|
+
}
|
|
6277
|
+
});
|
|
6278
|
+
}
|
|
6273
6279
|
|
|
6274
6280
|
const HoverableListItem = ({
|
|
6275
6281
|
active = false,
|
|
@@ -6326,7 +6332,7 @@ class Outsider extends React.Component {
|
|
|
6326
6332
|
}
|
|
6327
6333
|
}
|
|
6328
6334
|
|
|
6329
|
-
var styles$
|
|
6335
|
+
var styles$k = {"popup-root":"popup-root-SeL5u","popup":"popup-nQXYW","is-visible":"is-visible-3DAUP"};
|
|
6330
6336
|
|
|
6331
6337
|
const Popup = ({
|
|
6332
6338
|
className,
|
|
@@ -6334,8 +6340,8 @@ const Popup = ({
|
|
|
6334
6340
|
isVisible,
|
|
6335
6341
|
...nativeProps
|
|
6336
6342
|
}) => (/*#__PURE__*/React.createElement(C, {
|
|
6337
|
-
className: classnames(styles$
|
|
6338
|
-
[styles$
|
|
6343
|
+
className: classnames(styles$k.popup, {
|
|
6344
|
+
[styles$k["is-visible"]]: isVisible
|
|
6339
6345
|
}, className),
|
|
6340
6346
|
...nativeProps
|
|
6341
6347
|
}));
|
|
@@ -6343,7 +6349,7 @@ const Popup = ({
|
|
|
6343
6349
|
const PopupRoot = ({
|
|
6344
6350
|
...nativeProps
|
|
6345
6351
|
}) => (/*#__PURE__*/React.createElement("div", {
|
|
6346
|
-
className: styles$
|
|
6352
|
+
className: styles$k["popup-root"],
|
|
6347
6353
|
...nativeProps
|
|
6348
6354
|
}));
|
|
6349
6355
|
|
|
@@ -6354,7 +6360,7 @@ const IEFlex1 = {
|
|
|
6354
6360
|
flex: "1 1 auto"
|
|
6355
6361
|
};
|
|
6356
6362
|
|
|
6357
|
-
var styles$
|
|
6363
|
+
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"};
|
|
6358
6364
|
|
|
6359
6365
|
const UserMenu = ({
|
|
6360
6366
|
appName,
|
|
@@ -6373,7 +6379,7 @@ const UserMenu = ({
|
|
|
6373
6379
|
component: Outsider,
|
|
6374
6380
|
onOutsideClick: () => setUserMenuVisible(false),
|
|
6375
6381
|
cleanup: !userMenuVisible,
|
|
6376
|
-
className: styles$
|
|
6382
|
+
className: styles$j.popup,
|
|
6377
6383
|
isVisible: userMenuVisible
|
|
6378
6384
|
}, /*#__PURE__*/React.createElement("div", null, hasConnectedPeople ? (/*#__PURE__*/React.createElement("div", {
|
|
6379
6385
|
style: {
|
|
@@ -6449,42 +6455,27 @@ const UserMenu = ({
|
|
|
6449
6455
|
whiteSpace: "nowrap",
|
|
6450
6456
|
...fontFamily
|
|
6451
6457
|
}
|
|
6452
|
-
}, person.organization_name)))))),
|
|
6458
|
+
}, person.organization_name)))))), hasConnectedPeople && /*#__PURE__*/React.createElement(Divider, null), /*#__PURE__*/React.createElement("form", {
|
|
6453
6459
|
method: "POST",
|
|
6454
6460
|
action: logoutUrl
|
|
6455
|
-
}, /*#__PURE__*/React.createElement(
|
|
6461
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
6462
|
+
className: styles$j.logout,
|
|
6456
6463
|
"data-turbolinks": false,
|
|
6457
|
-
hover: {
|
|
6458
|
-
backgroundColor: "var(--t-fill-color-neutral-080)"
|
|
6459
|
-
},
|
|
6460
6464
|
onClick: () => {
|
|
6461
6465
|
requestClearAppsCache();
|
|
6462
6466
|
requestClearConnectedPeopleCache();
|
|
6463
|
-
return;
|
|
6464
6467
|
},
|
|
6468
|
+
type: "submit"
|
|
6469
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
6465
6470
|
style: {
|
|
6466
|
-
|
|
6467
|
-
|
|
6468
|
-
|
|
6469
|
-
|
|
6470
|
-
theme: false,
|
|
6471
|
-
type: "submit",
|
|
6472
|
-
width: "100%"
|
|
6473
|
-
}, /*#__PURE__*/React.createElement(tapestryReact.StackView, {
|
|
6474
|
-
distribution: "space-between",
|
|
6475
|
-
alignment: "center",
|
|
6476
|
-
axis: "horizontal",
|
|
6477
|
-
grow: 1,
|
|
6478
|
-
paddingHorizontal: 2,
|
|
6479
|
-
paddingVertical: 1.5,
|
|
6480
|
-
spacing: 4
|
|
6481
|
-
}, /*#__PURE__*/React.createElement(tapestryReact.Text, {
|
|
6482
|
-
color: "var(--t-text-color-secondary)",
|
|
6483
|
-
lineHeight: "24px"
|
|
6484
|
-
}, "Log out"), /*#__PURE__*/React.createElement(tapestryReact.Icon, {
|
|
6471
|
+
color: "var(--t-text-color-secondary)",
|
|
6472
|
+
lineHeight: "24px"
|
|
6473
|
+
}
|
|
6474
|
+
}, "Log out"), /*#__PURE__*/React.createElement(Icon, {
|
|
6485
6475
|
name: "general.intoBox",
|
|
6486
|
-
|
|
6487
|
-
|
|
6476
|
+
size: 14,
|
|
6477
|
+
theme: "--t-icon-color-secondary"
|
|
6478
|
+
})))));
|
|
6488
6479
|
};
|
|
6489
6480
|
|
|
6490
6481
|
const Hoverable = ({
|
|
@@ -6517,11 +6508,11 @@ const UserMenuTrigger = ({
|
|
|
6517
6508
|
userMenuVisible
|
|
6518
6509
|
}) => {
|
|
6519
6510
|
return /*#__PURE__*/React.createElement("div", {
|
|
6520
|
-
className: styles$
|
|
6511
|
+
className: styles$j["trigger-wrap"],
|
|
6521
6512
|
"data-pendo": "topbar-org-switcher"
|
|
6522
6513
|
}, /*#__PURE__*/React.createElement(Hoverable, {
|
|
6523
|
-
className: classnames(styles$
|
|
6524
|
-
[styles$
|
|
6514
|
+
className: classnames(styles$j["trigger"], {
|
|
6515
|
+
[styles$j["is-visible"]]: userMenuVisible
|
|
6525
6516
|
}),
|
|
6526
6517
|
component: "button",
|
|
6527
6518
|
type: "button",
|
|
@@ -6533,7 +6524,7 @@ const UserMenuTrigger = ({
|
|
|
6533
6524
|
requestConnectedPeopleFetch();
|
|
6534
6525
|
}
|
|
6535
6526
|
}, showOrgName && (/*#__PURE__*/React.createElement("span", {
|
|
6536
|
-
className: styles$
|
|
6527
|
+
className: styles$j["trigger-orgname"]
|
|
6537
6528
|
}, orgName)), /*#__PURE__*/React.createElement(DisclosureChevronIcon, null)));
|
|
6538
6529
|
};
|
|
6539
6530
|
|
|
@@ -6588,7 +6579,7 @@ const UnguardedNotSmallTopbar = ({
|
|
|
6588
6579
|
colors: props.colors,
|
|
6589
6580
|
requestAppsFetch: props.requestAppsFetch
|
|
6590
6581
|
}), /*#__PURE__*/React.createElement("div", {
|
|
6591
|
-
className: styles$
|
|
6582
|
+
className: styles$l["apps-routes-separator"]
|
|
6592
6583
|
}), routesVisible && props.routes, /*#__PURE__*/React.createElement("div", {
|
|
6593
6584
|
style: {
|
|
6594
6585
|
margin: "auto"
|
|
@@ -6630,13 +6621,13 @@ const NotSmallRoute = ({
|
|
|
6630
6621
|
...nativeProps
|
|
6631
6622
|
}) => {
|
|
6632
6623
|
return /*#__PURE__*/React.createElement("a", {
|
|
6633
|
-
className: classnames(styles$
|
|
6624
|
+
className: classnames(styles$l["route"], className, active && styles$l["is-active"]),
|
|
6634
6625
|
...nativeProps
|
|
6635
6626
|
});
|
|
6636
6627
|
};
|
|
6637
6628
|
const NotSmallTopbar = withErrorBoundary(UnguardedNotSmallTopbar, /*#__PURE__*/React.createElement(TopbarPlaceholder, null));
|
|
6638
6629
|
|
|
6639
|
-
var styles$
|
|
6630
|
+
var styles$i = {"avatar":"avatar-tW-wn"};
|
|
6640
6631
|
|
|
6641
6632
|
function Avatar({
|
|
6642
6633
|
env,
|
|
@@ -6646,7 +6637,7 @@ function Avatar({
|
|
|
6646
6637
|
}) {
|
|
6647
6638
|
const url = incomingUrl || `${pcoUrl$1(env)("people")}/static/no_photo_thumbnail_gray.svg`;
|
|
6648
6639
|
return /*#__PURE__*/React.createElement("div", {
|
|
6649
|
-
className: styles$
|
|
6640
|
+
className: styles$i.avatar,
|
|
6650
6641
|
style: {
|
|
6651
6642
|
backgroundImage: `url(${url})`,
|
|
6652
6643
|
...style
|
|
@@ -6721,7 +6712,7 @@ function useFocusTrap({
|
|
|
6721
6712
|
};
|
|
6722
6713
|
}
|
|
6723
6714
|
|
|
6724
|
-
var styles$
|
|
6715
|
+
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"};
|
|
6725
6716
|
|
|
6726
6717
|
const AppsSwitcher = ({
|
|
6727
6718
|
appName,
|
|
@@ -6752,8 +6743,8 @@ const AppsSwitcher = ({
|
|
|
6752
6743
|
}, /*#__PURE__*/React.createElement("a", {
|
|
6753
6744
|
"aria-current": name === appName ? "page" : undefined,
|
|
6754
6745
|
"aria-label": name,
|
|
6755
|
-
className: classnames(styles$
|
|
6756
|
-
[styles$
|
|
6746
|
+
className: classnames(styles$h.link, {
|
|
6747
|
+
[styles$h.current]: name === appName
|
|
6757
6748
|
}),
|
|
6758
6749
|
"data-pendo": `app-switcher--change-app--${name}`,
|
|
6759
6750
|
"data-turbolinks": false,
|
|
@@ -6765,7 +6756,7 @@ const AppsSwitcher = ({
|
|
|
6765
6756
|
"aria-expanded": visible,
|
|
6766
6757
|
"aria-haspopup": "true",
|
|
6767
6758
|
"aria-label": `App switcher: ${appName}`,
|
|
6768
|
-
className: styles$
|
|
6759
|
+
className: styles$h.trigger,
|
|
6769
6760
|
onClick: onTriggerClick,
|
|
6770
6761
|
type: "button"
|
|
6771
6762
|
}, appName === "Church Center" ? (/*#__PURE__*/React.createElement(ChurchCenterIcon, {
|
|
@@ -6774,41 +6765,41 @@ const AppsSwitcher = ({
|
|
|
6774
6765
|
appName: appName.replace(/[\s-]/, "")
|
|
6775
6766
|
}))), /*#__PURE__*/reactDom.createPortal(/*#__PURE__*/React.createElement("div", {
|
|
6776
6767
|
ref: containerRef,
|
|
6777
|
-
className: classnames(styles$
|
|
6778
|
-
[styles$
|
|
6768
|
+
className: classnames(styles$h.layer, {
|
|
6769
|
+
[styles$h["layer--visible"]]: visible
|
|
6779
6770
|
}),
|
|
6780
6771
|
onClick: toggle,
|
|
6781
6772
|
onKeyDown: handleKeyDown
|
|
6782
6773
|
}, /*#__PURE__*/React.createElement("nav", {
|
|
6783
6774
|
"aria-label": "Switch app",
|
|
6784
6775
|
"aria-modal": visible,
|
|
6785
|
-
className: styles$
|
|
6776
|
+
className: styles$h.panel,
|
|
6786
6777
|
"data-pendo": "app-switcher",
|
|
6787
6778
|
onClick: event => event.stopPropagation(),
|
|
6788
6779
|
role: "dialog"
|
|
6789
6780
|
}, /*#__PURE__*/React.createElement("div", {
|
|
6790
|
-
className: styles$
|
|
6781
|
+
className: styles$h.header
|
|
6791
6782
|
}, /*#__PURE__*/React.createElement("span", {
|
|
6792
|
-
className: styles$
|
|
6783
|
+
className: styles$h.heading
|
|
6793
6784
|
}, "Switch to"), /*#__PURE__*/React.createElement("button", {
|
|
6794
6785
|
"aria-label": "Close",
|
|
6795
|
-
className: styles$
|
|
6786
|
+
className: styles$h.close,
|
|
6796
6787
|
onClick: toggle,
|
|
6797
6788
|
type: "button"
|
|
6798
6789
|
}, /*#__PURE__*/React.createElement(X, {
|
|
6799
6790
|
"aria-hidden": "true",
|
|
6800
6791
|
fill: "var(--t-icon-color-dim)"
|
|
6801
6792
|
}))), /*#__PURE__*/React.createElement("ul", {
|
|
6802
|
-
className: styles$
|
|
6793
|
+
className: styles$h.list,
|
|
6803
6794
|
role: "list"
|
|
6804
6795
|
}, homeProduct && productLink(homeProduct.name), restProducts.map(({
|
|
6805
6796
|
name
|
|
6806
6797
|
}) => productLink(name)), accountsProduct && (/*#__PURE__*/React.createElement("li", {
|
|
6807
|
-
className: styles$
|
|
6798
|
+
className: styles$h["accounts-item"]
|
|
6808
6799
|
}, /*#__PURE__*/React.createElement("a", {
|
|
6809
6800
|
"aria-current": appName === "Accounts" ? "page" : undefined,
|
|
6810
6801
|
"aria-label": "Account settings",
|
|
6811
|
-
className: classnames(styles$
|
|
6802
|
+
className: classnames(styles$h.link, styles$h["accounts-link"]),
|
|
6812
6803
|
"data-pendo": "app-switcher--change-app--Accounts",
|
|
6813
6804
|
"data-turbolinks": false,
|
|
6814
6805
|
href: pcoUrl$1(env)("accounts") + getAppsSwitchProductPath(accountsProduct.name)
|
|
@@ -6817,7 +6808,7 @@ const AppsSwitcher = ({
|
|
|
6817
6808
|
colors: colors
|
|
6818
6809
|
})))), showChurchCenter && (/*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("a", {
|
|
6819
6810
|
"aria-current": appName === "Church Center" ? "page" : undefined,
|
|
6820
|
-
className: classnames(styles$
|
|
6811
|
+
className: classnames(styles$h.link, styles$h["accounts-link"]),
|
|
6821
6812
|
"data-pendo": "app-switcher--change-app--ChurchCenter",
|
|
6822
6813
|
"data-turbolinks": false,
|
|
6823
6814
|
href: `${pcoUrl$1(env)("publishing")}/church-center`
|
|
@@ -6826,7 +6817,7 @@ const AppsSwitcher = ({
|
|
|
6826
6817
|
}))))))), document.body));
|
|
6827
6818
|
};
|
|
6828
6819
|
|
|
6829
|
-
var styles$
|
|
6820
|
+
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"};
|
|
6830
6821
|
|
|
6831
6822
|
const UnguardedSmallTopbar = ({
|
|
6832
6823
|
currentRouteComponent = props => (/*#__PURE__*/React.createElement("span", {
|
|
@@ -6879,18 +6870,18 @@ const UnguardedSmallTopbar = ({
|
|
|
6879
6870
|
toggle: toggleProductSwitcher,
|
|
6880
6871
|
visible: productSwitcherVisible
|
|
6881
6872
|
}), routesMenuVisible && (/*#__PURE__*/React.createElement("div", {
|
|
6882
|
-
className: styles$
|
|
6873
|
+
className: styles$g["routes"]
|
|
6883
6874
|
}, props.routes)), /*#__PURE__*/React.createElement("button", {
|
|
6884
6875
|
type: "button",
|
|
6885
|
-
className: classnames(styles$
|
|
6886
|
-
[styles$
|
|
6876
|
+
className: classnames(styles$g["current-route"], {
|
|
6877
|
+
[styles$g["is-active"]]: routesMenuVisible
|
|
6887
6878
|
}),
|
|
6888
6879
|
onClick: props.routes.length > 0 ? () => {
|
|
6889
6880
|
setProductSwitcherVisible(false);
|
|
6890
6881
|
setRoutesMenuVisible(visible => !visible);
|
|
6891
6882
|
} : null
|
|
6892
6883
|
}, /*#__PURE__*/React.createElement(CurrentRouteComponent, null, capitalize$1(currentRouteText)), props.routes.length > 0 && /*#__PURE__*/React.createElement(DisclosureChevronIcon, null)), /*#__PURE__*/React.createElement("div", {
|
|
6893
|
-
className: styles$
|
|
6884
|
+
className: styles$g["actions"]
|
|
6894
6885
|
}, productSearchEnabled && (/*#__PURE__*/React.createElement(ProductSearch, {
|
|
6895
6886
|
appName: props.appName,
|
|
6896
6887
|
apps: props.apps,
|
|
@@ -6898,7 +6889,7 @@ const UnguardedSmallTopbar = ({
|
|
|
6898
6889
|
env: props.env
|
|
6899
6890
|
})), /*#__PURE__*/React.createElement("button", {
|
|
6900
6891
|
type: "button",
|
|
6901
|
-
className: styles$
|
|
6892
|
+
className: styles$g["profile-button"],
|
|
6902
6893
|
onClick: () => {
|
|
6903
6894
|
var _a, _b;
|
|
6904
6895
|
props.requestConnectedPeopleFetch();
|
|
@@ -6914,7 +6905,7 @@ const SmallRoute = ({
|
|
|
6914
6905
|
className,
|
|
6915
6906
|
...props
|
|
6916
6907
|
}) => (/*#__PURE__*/React.createElement("a", {
|
|
6917
|
-
className: classnames(styles$
|
|
6908
|
+
className: classnames(styles$g["route"], className, active && styles$g["is-active"]),
|
|
6918
6909
|
...props
|
|
6919
6910
|
}));
|
|
6920
6911
|
const SmallTopbar = withErrorBoundary(UnguardedSmallTopbar, /*#__PURE__*/React.createElement(TopbarPlaceholder, null));
|
|
@@ -7034,27 +7025,7 @@ function decodeQueryString(path) {
|
|
|
7034
7025
|
return queryPart ? `${pathPart}?${decodeURIComponent(queryPart)}` : pathPart;
|
|
7035
7026
|
}
|
|
7036
7027
|
|
|
7037
|
-
|
|
7038
|
-
generateColorScale
|
|
7039
|
-
} = tapestryReact.designSystem;
|
|
7040
|
-
const topbarTheme = {
|
|
7041
|
-
colors: {
|
|
7042
|
-
...generateColorScale({
|
|
7043
|
-
baseColor: "#2266f7",
|
|
7044
|
-
key: "primary"
|
|
7045
|
-
}),
|
|
7046
|
-
separatorTertiary: "var(--t-border-color)"
|
|
7047
|
-
},
|
|
7048
|
-
icons: {
|
|
7049
|
-
churchCenter: churchCenter__namespace,
|
|
7050
|
-
general: general__namespace,
|
|
7051
|
-
people: people__namespace,
|
|
7052
|
-
toolbar: toolbar__namespace
|
|
7053
|
-
},
|
|
7054
|
-
id: "topbar"
|
|
7055
|
-
};
|
|
7056
|
-
|
|
7057
|
-
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"};
|
|
7028
|
+
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"};
|
|
7058
7029
|
|
|
7059
7030
|
function isPresent(value) {
|
|
7060
7031
|
return value !== undefined && value.trim() !== "";
|
|
@@ -7083,11 +7054,11 @@ function Field({
|
|
|
7083
7054
|
value
|
|
7084
7055
|
}) {
|
|
7085
7056
|
return /*#__PURE__*/React.createElement("div", {
|
|
7086
|
-
className: styles$
|
|
7057
|
+
className: styles$f["debug-pco-resource-field"]
|
|
7087
7058
|
}, /*#__PURE__*/React.createElement("span", {
|
|
7088
|
-
className: styles$
|
|
7059
|
+
className: styles$f["debug-pco-resource-field-label"]
|
|
7089
7060
|
}, label), /*#__PURE__*/React.createElement("span", {
|
|
7090
|
-
className: styles$
|
|
7061
|
+
className: styles$f["debug-pco-resource-field-value"]
|
|
7091
7062
|
}, value));
|
|
7092
7063
|
}
|
|
7093
7064
|
// Only staff ghosting or impersonating a person get pco:staff-access-level,
|
|
@@ -7160,13 +7131,13 @@ function DebugPanel({
|
|
|
7160
7131
|
};
|
|
7161
7132
|
}, [pcrl, env]);
|
|
7162
7133
|
return /*#__PURE__*/React.createElement("div", {
|
|
7163
|
-
className: classnames("staff-only", styles$
|
|
7134
|
+
className: classnames("staff-only", styles$f["debug-pco-resource"])
|
|
7164
7135
|
}, /*#__PURE__*/React.createElement("div", {
|
|
7165
|
-
className: styles$
|
|
7136
|
+
className: styles$f["debug-pco-resource-header"]
|
|
7166
7137
|
}, /*#__PURE__*/React.createElement("span", {
|
|
7167
|
-
className: styles$
|
|
7138
|
+
className: styles$f["debug-pco-resource-badge"]
|
|
7168
7139
|
}, "Staff"), /*#__PURE__*/React.createElement("span", {
|
|
7169
|
-
className: styles$
|
|
7140
|
+
className: styles$f["debug-pco-resource-title"]
|
|
7170
7141
|
}, "Recently Visited debug")), /*#__PURE__*/React.createElement(Field, {
|
|
7171
7142
|
label: "pco:resource",
|
|
7172
7143
|
value: describeTag("resource", resource)
|
|
@@ -7174,29 +7145,29 @@ function DebugPanel({
|
|
|
7174
7145
|
label: "pco:recently_visitable",
|
|
7175
7146
|
value: describeTag("recently_visitable", recentlyVisitable)
|
|
7176
7147
|
}), hasInvalidResource && (/*#__PURE__*/React.createElement("p", {
|
|
7177
|
-
className: styles$
|
|
7148
|
+
className: styles$f["debug-pco-resource-note"]
|
|
7178
7149
|
}, "pco:resource isn't a PCRL (product/v2/type/id), so Recently Visited ignores it.")), visit === null && (/*#__PURE__*/React.createElement("p", {
|
|
7179
|
-
className: styles$
|
|
7150
|
+
className: styles$f["debug-pco-resource-note"]
|
|
7180
7151
|
}, "This page is not eligible for Recently Visited")), pcrl && hasRecentlyVisitable && (/*#__PURE__*/React.createElement("p", {
|
|
7181
|
-
className: styles$
|
|
7152
|
+
className: styles$f["debug-pco-resource-note"]
|
|
7182
7153
|
}, "Both tags are present \u2014 pco:resource takes precedence for the Recently Visited entry.")), pcrl && lookup.status === "loading" && (/*#__PURE__*/React.createElement("p", {
|
|
7183
|
-
className: styles$
|
|
7154
|
+
className: styles$f["debug-pco-resource-note"]
|
|
7184
7155
|
}, "Looking up resource\u2026")), pcrl && lookup.status === "error" && (/*#__PURE__*/React.createElement("p", {
|
|
7185
|
-
className: styles$
|
|
7156
|
+
className: styles$f["debug-pco-resource-note"]
|
|
7186
7157
|
}, lookup.message)), pcrl && lookup.status === "loaded" && (/*#__PURE__*/React.createElement("pre", {
|
|
7187
|
-
className: styles$
|
|
7158
|
+
className: styles$f["debug-pco-resource-json"]
|
|
7188
7159
|
}, JSON.stringify(lookup.json, null, 2))), (visit === null || visit === void 0 ? void 0 : visit.type) === "page" && (/*#__PURE__*/React.createElement("p", {
|
|
7189
|
-
className: styles$
|
|
7160
|
+
className: styles$f["debug-pco-resource-note"]
|
|
7190
7161
|
}, "Recently Visited title: ", visit.title)), /*#__PURE__*/React.createElement("span", {
|
|
7191
|
-
className: styles$
|
|
7162
|
+
className: styles$f["debug-pco-resource-field-label"]
|
|
7192
7163
|
}, "Recently Visited"), personId ? (/*#__PURE__*/React.createElement("pre", {
|
|
7193
|
-
className: styles$
|
|
7164
|
+
className: styles$f["debug-pco-resource-json"]
|
|
7194
7165
|
}, JSON.stringify(recentlyVisited, null, 2))) : (/*#__PURE__*/React.createElement("p", {
|
|
7195
|
-
className: styles$
|
|
7166
|
+
className: styles$f["debug-pco-resource-note"]
|
|
7196
7167
|
}, "No current person, so nothing is recorded.")));
|
|
7197
7168
|
}
|
|
7198
7169
|
|
|
7199
|
-
var styles$
|
|
7170
|
+
var styles$e = {"drawer-wrap":"drawer-wrap-J0rSL","is-visible":"is-visible-KTME8","drawer":"drawer-j7f4l"};
|
|
7200
7171
|
|
|
7201
7172
|
function Drawer({
|
|
7202
7173
|
children,
|
|
@@ -7204,7 +7175,7 @@ function Drawer({
|
|
|
7204
7175
|
}) {
|
|
7205
7176
|
return /*#__PURE__*/React.createElement("div", {
|
|
7206
7177
|
id: id,
|
|
7207
|
-
className: styles$
|
|
7178
|
+
className: styles$e["drawer"]
|
|
7208
7179
|
}, children);
|
|
7209
7180
|
}
|
|
7210
7181
|
function DrawerWrap({
|
|
@@ -7214,70 +7185,88 @@ function DrawerWrap({
|
|
|
7214
7185
|
...props
|
|
7215
7186
|
}) {
|
|
7216
7187
|
return /*#__PURE__*/React.createElement("div", {
|
|
7217
|
-
className: classnames(styles$
|
|
7188
|
+
className: classnames(styles$e["drawer-wrap"], className, isVisible && styles$e["is-visible"]),
|
|
7218
7189
|
...props
|
|
7219
7190
|
}, children);
|
|
7220
7191
|
}
|
|
7221
7192
|
|
|
7193
|
+
function CloseButton({
|
|
7194
|
+
onClick
|
|
7195
|
+
}) {
|
|
7196
|
+
return /*#__PURE__*/React.createElement(tapestry.IconButton, {
|
|
7197
|
+
"aria-label": "Close",
|
|
7198
|
+
icon: /*#__PURE__*/React.createElement(Icon, {
|
|
7199
|
+
name: "general.x",
|
|
7200
|
+
theme: "--t-icon-color-dim"
|
|
7201
|
+
}),
|
|
7202
|
+
kind: "ghost",
|
|
7203
|
+
onClick: onClick,
|
|
7204
|
+
size: "md",
|
|
7205
|
+
style: {
|
|
7206
|
+
marginTop: "var(--t-spacing-fourth)"
|
|
7207
|
+
}
|
|
7208
|
+
});
|
|
7209
|
+
}
|
|
7210
|
+
|
|
7222
7211
|
function DrawerHeader({
|
|
7223
7212
|
children,
|
|
7224
7213
|
closeDrawer
|
|
7225
7214
|
}) {
|
|
7226
|
-
return /*#__PURE__*/React.createElement(
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
|
|
7230
|
-
|
|
7231
|
-
|
|
7232
|
-
|
|
7233
|
-
}, /*#__PURE__*/React.createElement(
|
|
7234
|
-
|
|
7235
|
-
|
|
7236
|
-
|
|
7237
|
-
|
|
7238
|
-
|
|
7239
|
-
|
|
7240
|
-
|
|
7241
|
-
onClick: () => closeDrawer(),
|
|
7242
|
-
title: "Close",
|
|
7243
|
-
theme: false,
|
|
7244
|
-
hover: {
|
|
7245
|
-
backgroundColor: "var(--t-fill-color-neutral-070)"
|
|
7246
|
-
},
|
|
7247
|
-
marginTop: 0.25
|
|
7248
|
-
})));
|
|
7215
|
+
return /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
7216
|
+
align: "start",
|
|
7217
|
+
justify: "space-between",
|
|
7218
|
+
style: {
|
|
7219
|
+
color: "var(--t-text-color)",
|
|
7220
|
+
padding: "var(--t-spacing-1) var(--t-spacing-2) var(--t-spacing-2)"
|
|
7221
|
+
}
|
|
7222
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
7223
|
+
style: {
|
|
7224
|
+
flex: 1,
|
|
7225
|
+
minWidth: 0
|
|
7226
|
+
}
|
|
7227
|
+
}, children), closeDrawer && /*#__PURE__*/React.createElement(CloseButton, {
|
|
7228
|
+
onClick: () => closeDrawer()
|
|
7229
|
+
}));
|
|
7249
7230
|
}
|
|
7250
7231
|
|
|
7232
|
+
var styles$d = {"drawer-heading":"drawer-heading-DlyzD"};
|
|
7233
|
+
|
|
7251
7234
|
function DrawerHeading({
|
|
7252
|
-
|
|
7235
|
+
className,
|
|
7253
7236
|
...props
|
|
7254
7237
|
}) {
|
|
7255
|
-
return /*#__PURE__*/React.createElement(
|
|
7256
|
-
|
|
7257
|
-
letterSpacing: ".002em",
|
|
7258
|
-
level: 2,
|
|
7259
|
-
lineHeight: "35px",
|
|
7260
|
-
weight: 700,
|
|
7238
|
+
return /*#__PURE__*/React.createElement("h2", {
|
|
7239
|
+
className: classnames(styles$d["drawer-heading"], className),
|
|
7261
7240
|
...props
|
|
7262
|
-
}
|
|
7241
|
+
});
|
|
7263
7242
|
}
|
|
7264
7243
|
|
|
7244
|
+
var styles$c = {"scroll-region":"scroll-region-RMNlr"};
|
|
7245
|
+
|
|
7265
7246
|
// TODO: This component could prob be genrealized to provide overflow-y scroll indication, as well, if needed.
|
|
7266
7247
|
// `top`/`bottom` // `left`/`right` → `start`/`end`
|
|
7248
|
+
const INDICATOR_BASE_STYLE = {
|
|
7249
|
+
height: "var(--t-spacing-1)",
|
|
7250
|
+
insetInline: 0,
|
|
7251
|
+
pointerEvents: "none",
|
|
7252
|
+
position: "absolute",
|
|
7253
|
+
zIndex: 10
|
|
7254
|
+
};
|
|
7267
7255
|
const INDICATOR_STYLES = {
|
|
7268
7256
|
bottom: {
|
|
7257
|
+
...INDICATOR_BASE_STYLE,
|
|
7269
7258
|
background: "linear-gradient(rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.07))",
|
|
7270
7259
|
bottom: 0
|
|
7271
7260
|
},
|
|
7272
7261
|
top: {
|
|
7262
|
+
...INDICATOR_BASE_STYLE,
|
|
7273
7263
|
background: "linear-gradient(rgba(0, 0, 0, 0.07), rgba(255, 255, 255, 0))",
|
|
7274
7264
|
top: 0
|
|
7275
7265
|
}
|
|
7276
7266
|
};
|
|
7277
7267
|
// Perf: should this component be memoized?
|
|
7278
7268
|
const ScrollContainer = ({
|
|
7279
|
-
children
|
|
7280
|
-
...props
|
|
7269
|
+
children
|
|
7281
7270
|
}) => {
|
|
7282
7271
|
const [overflowTop, setOverflowTop] = React.useState(false);
|
|
7283
7272
|
const [overflowBottom, setOverflowBottom] = React.useState(false);
|
|
@@ -7330,75 +7319,74 @@ const ScrollContainer = ({
|
|
|
7330
7319
|
resizeObserver.unobserve(container);
|
|
7331
7320
|
};
|
|
7332
7321
|
}, []);
|
|
7333
|
-
return /*#__PURE__*/React.createElement(
|
|
7322
|
+
return /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
7323
|
+
direction: "column",
|
|
7334
7324
|
grow: 1,
|
|
7335
|
-
|
|
7336
|
-
|
|
7325
|
+
shrink: 1,
|
|
7326
|
+
style: {
|
|
7327
|
+
minHeight: 0,
|
|
7328
|
+
position: "relative"
|
|
7329
|
+
}
|
|
7337
7330
|
}, overflowTop && /*#__PURE__*/React.createElement(OverflowIndicator, {
|
|
7338
7331
|
edge: "top"
|
|
7339
7332
|
}), overflowBottom && /*#__PURE__*/React.createElement(OverflowIndicator, {
|
|
7340
7333
|
edge: "bottom"
|
|
7341
|
-
}), /*#__PURE__*/React.createElement(
|
|
7342
|
-
|
|
7334
|
+
}), /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
7335
|
+
className: styles$c["scroll-region"],
|
|
7336
|
+
direction: "column",
|
|
7343
7337
|
grow: 1,
|
|
7344
|
-
|
|
7345
|
-
overflow: "auto",
|
|
7338
|
+
ref: containerRef,
|
|
7346
7339
|
role: "region",
|
|
7347
|
-
shrink: 1
|
|
7348
|
-
|
|
7349
|
-
|
|
7350
|
-
|
|
7351
|
-
|
|
7352
|
-
}, /*#__PURE__*/React.createElement(tapestryReact.Box, {
|
|
7353
|
-
innerRef: topEdgeRef
|
|
7354
|
-
}), children, /*#__PURE__*/React.createElement(tapestryReact.Box, {
|
|
7355
|
-
innerRef: bottomEdgeRef
|
|
7340
|
+
shrink: 1
|
|
7341
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
7342
|
+
ref: topEdgeRef
|
|
7343
|
+
}), children, /*#__PURE__*/React.createElement("div", {
|
|
7344
|
+
ref: bottomEdgeRef
|
|
7356
7345
|
})));
|
|
7357
7346
|
};
|
|
7358
7347
|
const OverflowIndicator = ({
|
|
7359
7348
|
edge
|
|
7360
7349
|
}) => {
|
|
7361
|
-
return /*#__PURE__*/React.createElement(
|
|
7362
|
-
height: 1,
|
|
7363
|
-
left: 0,
|
|
7364
|
-
pointerEvents: "none",
|
|
7365
|
-
position: "absolute",
|
|
7366
|
-
right: 0,
|
|
7350
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
7367
7351
|
role: "presentation",
|
|
7368
|
-
|
|
7369
|
-
...INDICATOR_STYLES[edge]
|
|
7352
|
+
style: INDICATOR_STYLES[edge]
|
|
7370
7353
|
});
|
|
7371
7354
|
};
|
|
7372
7355
|
|
|
7356
|
+
var styles$b = {"switch-view":"switch-view-x1YOY"};
|
|
7357
|
+
|
|
7373
7358
|
const SwitchView = ({
|
|
7374
7359
|
activeIndex,
|
|
7375
7360
|
children
|
|
7376
7361
|
}) => {
|
|
7377
7362
|
const childCount = React.Children.count(children);
|
|
7378
7363
|
const validatedIndex = activeIndex < 0 ? 0 : activeIndex > childCount - 1 ? childCount - 1 : activeIndex;
|
|
7379
|
-
return /*#__PURE__*/React.createElement(
|
|
7364
|
+
return /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
7365
|
+
direction: "column",
|
|
7380
7366
|
grow: 1,
|
|
7381
|
-
|
|
7382
|
-
|
|
7367
|
+
shrink: 0,
|
|
7368
|
+
style: {
|
|
7369
|
+
overflow: "hidden",
|
|
7370
|
+
position: "relative"
|
|
7371
|
+
}
|
|
7383
7372
|
}, React.Children.map(children, (view, index) => {
|
|
7384
7373
|
const inView = index === validatedIndex;
|
|
7385
|
-
return /*#__PURE__*/React.createElement(
|
|
7374
|
+
return /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
7386
7375
|
"aria-hidden": !inView,
|
|
7387
|
-
|
|
7388
|
-
|
|
7376
|
+
className: styles$b["switch-view"],
|
|
7377
|
+
direction: "column",
|
|
7389
7378
|
key: index,
|
|
7390
|
-
|
|
7391
|
-
|
|
7392
|
-
|
|
7393
|
-
|
|
7394
|
-
|
|
7395
|
-
|
|
7396
|
-
transition: "visibility 100ms 50ms ease-in-out, transform 200ms ease-in-out, opacity 100ms 50ms ease-in-out"
|
|
7379
|
+
style: {
|
|
7380
|
+
opacity: inView ? 1 : 0,
|
|
7381
|
+
pointerEvents: inView ? "auto" : "none",
|
|
7382
|
+
transform: inView ? "translateX(0)" : index < activeIndex ? "translateX(-100px)" : "translateX(100px)",
|
|
7383
|
+
visibility: inView ? "visible" : "hidden"
|
|
7384
|
+
}
|
|
7397
7385
|
}, view);
|
|
7398
7386
|
}));
|
|
7399
7387
|
};
|
|
7400
7388
|
|
|
7401
|
-
var styles$
|
|
7389
|
+
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"};
|
|
7402
7390
|
|
|
7403
7391
|
const COLOR_MODES = [{
|
|
7404
7392
|
icon: "toolbar.sun",
|
|
@@ -7421,11 +7409,11 @@ function ColorModeSwitcher() {
|
|
|
7421
7409
|
const updateStore = useUpdateStore();
|
|
7422
7410
|
const [counter] = React.useState(() => COLOR_MODE_INSTANCE_COUNTER++);
|
|
7423
7411
|
return /*#__PURE__*/React.createElement("fieldset", {
|
|
7424
|
-
className: styles$
|
|
7412
|
+
className: styles$a["color-mode-switcher"]
|
|
7425
7413
|
}, /*#__PURE__*/React.createElement("legend", {
|
|
7426
|
-
className: styles$
|
|
7414
|
+
className: styles$a["color-mode-switcher-label"]
|
|
7427
7415
|
}, "Appearance", " "), /*#__PURE__*/React.createElement("div", {
|
|
7428
|
-
className: styles$
|
|
7416
|
+
className: styles$a["color-mode-switcher-modes"]
|
|
7429
7417
|
}, COLOR_MODES.map(({
|
|
7430
7418
|
icon,
|
|
7431
7419
|
label,
|
|
@@ -7464,6 +7452,8 @@ function updateColorMode(mode) {
|
|
|
7464
7452
|
});
|
|
7465
7453
|
}
|
|
7466
7454
|
|
|
7455
|
+
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"};
|
|
7456
|
+
|
|
7467
7457
|
const requestClearConnectedPeopleCache = () => remove();
|
|
7468
7458
|
function UserProfile({
|
|
7469
7459
|
appName,
|
|
@@ -7484,159 +7474,129 @@ function UserProfile({
|
|
|
7484
7474
|
name
|
|
7485
7475
|
} = storeState;
|
|
7486
7476
|
const connectedPeople = (_a = storeState.connectedPeople) !== null && _a !== void 0 ? _a : [];
|
|
7487
|
-
return /*#__PURE__*/React.createElement(
|
|
7488
|
-
|
|
7489
|
-
spacing: /*#__PURE__*/React.createElement(tapestryReact.Divider, null),
|
|
7477
|
+
return /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
7478
|
+
direction: "column",
|
|
7490
7479
|
grow: 1,
|
|
7491
|
-
shrink: 1
|
|
7492
|
-
|
|
7493
|
-
|
|
7494
|
-
|
|
7495
|
-
|
|
7496
|
-
|
|
7497
|
-
|
|
7498
|
-
|
|
7499
|
-
|
|
7500
|
-
|
|
7501
|
-
|
|
7502
|
-
|
|
7503
|
-
|
|
7504
|
-
|
|
7505
|
-
|
|
7506
|
-
|
|
7480
|
+
shrink: 1,
|
|
7481
|
+
style: {
|
|
7482
|
+
minHeight: 0
|
|
7483
|
+
}
|
|
7484
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
7485
|
+
className: styles$9["profile-header"]
|
|
7486
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
7487
|
+
alt: "",
|
|
7488
|
+
src: userAvatarPath,
|
|
7489
|
+
style: {
|
|
7490
|
+
borderRadius: "var(--t-border-radius-round)",
|
|
7491
|
+
height: "var(--t-avatar-size-36)",
|
|
7492
|
+
objectFit: "cover",
|
|
7493
|
+
width: "var(--t-avatar-size-36)"
|
|
7494
|
+
}
|
|
7495
|
+
}), /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
7496
|
+
direction: "column",
|
|
7497
|
+
gap: 1,
|
|
7498
|
+
style: {
|
|
7499
|
+
minWidth: 0
|
|
7500
|
+
}
|
|
7507
7501
|
}, /*#__PURE__*/React.createElement(DrawerHeading, {
|
|
7508
|
-
paddingTop: 0.5,
|
|
7509
|
-
lineHeight: 3.25
|
|
7510
|
-
}, name), linkToProfile && (/*#__PURE__*/React.createElement(tapestryReact.Link, {
|
|
7511
|
-
to: profileUrl,
|
|
7512
7502
|
style: {
|
|
7513
|
-
|
|
7514
|
-
|
|
7515
|
-
|
|
7503
|
+
lineHeight: "26px",
|
|
7504
|
+
paddingTop: "var(--t-spacing-half)"
|
|
7505
|
+
}
|
|
7506
|
+
}, name), linkToProfile && (/*#__PURE__*/React.createElement(tapestry.Link, {
|
|
7507
|
+
className: styles$9["profile-link"],
|
|
7508
|
+
href: profileUrl,
|
|
7516
7509
|
onClick: () => setTimeout(() => closeDrawer(), 50)
|
|
7517
|
-
}, "My profile")), /*#__PURE__*/React.createElement(
|
|
7518
|
-
|
|
7519
|
-
|
|
7520
|
-
|
|
7521
|
-
|
|
7522
|
-
|
|
7523
|
-
}, "My login settings"), /*#__PURE__*/React.createElement(tapestryReact.StackView, {
|
|
7524
|
-
axis: "horizontal",
|
|
7525
|
-
alignment: "center",
|
|
7526
|
-
spacing: 0.5,
|
|
7527
|
-
width: "100%"
|
|
7510
|
+
}, "My profile")), /*#__PURE__*/React.createElement(tapestry.Link, {
|
|
7511
|
+
className: styles$9["profile-link"],
|
|
7512
|
+
href: loginSettingsUrl
|
|
7513
|
+
}, "My login settings"), /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
7514
|
+
align: "center",
|
|
7515
|
+
gap: 0.5
|
|
7528
7516
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
7529
7517
|
name: mfaConfigured ? "general.lock" : "general.unlock",
|
|
7530
7518
|
size: 12,
|
|
7531
7519
|
theme: mfaConfigured ? "--t-icon-color-status-success" : "--t-icon-color-status-error"
|
|
7532
|
-
}), /*#__PURE__*/React.createElement(
|
|
7533
|
-
|
|
7534
|
-
|
|
7535
|
-
|
|
7536
|
-
|
|
7537
|
-
|
|
7538
|
-
|
|
7539
|
-
|
|
7540
|
-
|
|
7541
|
-
|
|
7542
|
-
|
|
7543
|
-
|
|
7544
|
-
|
|
7545
|
-
variant: "naked",
|
|
7546
|
-
theme: false,
|
|
7547
|
-
marginTop: 0.25,
|
|
7548
|
-
hover: {
|
|
7549
|
-
backgroundColor: "var(--t-fill-color-neutral-070)"
|
|
7550
|
-
}
|
|
7551
|
-
})), /*#__PURE__*/React.createElement(tapestryReact.GridView, {
|
|
7552
|
-
padding: 2
|
|
7553
|
-
}, /*#__PURE__*/React.createElement(ColorModeSwitcher, null)), /*#__PURE__*/React.createElement("form", {
|
|
7520
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
7521
|
+
style: {
|
|
7522
|
+
color: "var(--t-text-color-secondary)",
|
|
7523
|
+
fontSize: "var(--t-font-size-sm)",
|
|
7524
|
+
lineHeight: "20px"
|
|
7525
|
+
}
|
|
7526
|
+
}, "Two-step verification ", mfaConfigured ? "active" : "inactive"))), /*#__PURE__*/React.createElement(CloseButton, {
|
|
7527
|
+
onClick: closeDrawer
|
|
7528
|
+
})), /*#__PURE__*/React.createElement(Divider, null), /*#__PURE__*/React.createElement("div", {
|
|
7529
|
+
style: {
|
|
7530
|
+
padding: "var(--t-spacing-2)"
|
|
7531
|
+
}
|
|
7532
|
+
}, /*#__PURE__*/React.createElement(ColorModeSwitcher, null)), /*#__PURE__*/React.createElement(Divider, null), /*#__PURE__*/React.createElement("form", {
|
|
7554
7533
|
method: "POST",
|
|
7555
7534
|
action: logoutUrl
|
|
7556
|
-
}, /*#__PURE__*/React.createElement(
|
|
7535
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
7536
|
+
className: styles$9["logout"],
|
|
7557
7537
|
"data-turbolinks": false,
|
|
7558
7538
|
onClick: () => {
|
|
7559
7539
|
requestClearAppsCache();
|
|
7560
7540
|
requestClearConnectedPeopleCache();
|
|
7561
|
-
return;
|
|
7562
7541
|
},
|
|
7542
|
+
type: "submit"
|
|
7543
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
7563
7544
|
style: {
|
|
7564
|
-
|
|
7565
|
-
}
|
|
7566
|
-
theme: false,
|
|
7567
|
-
type: "submit",
|
|
7568
|
-
width: "100%"
|
|
7569
|
-
}, /*#__PURE__*/React.createElement(tapestryReact.StackView, {
|
|
7570
|
-
distribution: "space-between",
|
|
7571
|
-
alignment: "center",
|
|
7572
|
-
axis: "horizontal",
|
|
7573
|
-
grow: 1,
|
|
7574
|
-
paddingHorizontal: 3,
|
|
7575
|
-
paddingVertical: 2
|
|
7576
|
-
}, /*#__PURE__*/React.createElement(tapestryReact.Text, {
|
|
7577
|
-
color: "var(--text-color-default-secondary)",
|
|
7578
|
-
size: 3
|
|
7545
|
+
lineHeight: "20px"
|
|
7546
|
+
}
|
|
7579
7547
|
}, "Log out"), /*#__PURE__*/React.createElement(Icon, {
|
|
7580
7548
|
name: "general.intoBox",
|
|
7581
7549
|
size: 14,
|
|
7582
7550
|
theme: "--t-icon-color-secondary"
|
|
7583
|
-
})))
|
|
7551
|
+
}))), env !== "production" && (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Divider, null), /*#__PURE__*/React.createElement(DebugPcoResource, {
|
|
7584
7552
|
env: env
|
|
7585
|
-
}), hasConnectedPeople && (/*#__PURE__*/React.createElement(
|
|
7586
|
-
|
|
7587
|
-
|
|
7588
|
-
|
|
7589
|
-
|
|
7590
|
-
|
|
7591
|
-
|
|
7592
|
-
|
|
7593
|
-
|
|
7594
|
-
|
|
7595
|
-
|
|
7596
|
-
}, /*#__PURE__*/React.createElement(
|
|
7597
|
-
|
|
7598
|
-
|
|
7599
|
-
|
|
7600
|
-
|
|
7601
|
-
|
|
7602
|
-
|
|
7603
|
-
|
|
7604
|
-
|
|
7605
|
-
|
|
7606
|
-
|
|
7607
|
-
}, "Linked Accounts")), /*#__PURE__*/React.createElement(
|
|
7608
|
-
|
|
7609
|
-
width: "100%"
|
|
7553
|
+
}))), hasConnectedPeople && (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Divider, null), /*#__PURE__*/React.createElement("div", {
|
|
7554
|
+
className: styles$9["linked-accounts"]
|
|
7555
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
7556
|
+
style: {
|
|
7557
|
+
backgroundColor: "var(--t-fill-color-neutral-060)",
|
|
7558
|
+
borderBottom: "var(--t-border-width) solid var(--t-border-color)",
|
|
7559
|
+
padding: "var(--t-spacing-1-half) var(--t-spacing-2)",
|
|
7560
|
+
position: "sticky",
|
|
7561
|
+
top: 0,
|
|
7562
|
+
zIndex: 1
|
|
7563
|
+
}
|
|
7564
|
+
}, /*#__PURE__*/React.createElement("h3", {
|
|
7565
|
+
style: {
|
|
7566
|
+
color: "var(--t-text-color-secondary)",
|
|
7567
|
+
cursor: "default",
|
|
7568
|
+
fontSize: "var(--t-font-size-xs)",
|
|
7569
|
+
fontWeight: "var(--t-font-weight-medium)",
|
|
7570
|
+
letterSpacing: "0.15em",
|
|
7571
|
+
lineHeight: "20px",
|
|
7572
|
+
margin: 0,
|
|
7573
|
+
textTransform: "uppercase"
|
|
7574
|
+
}
|
|
7575
|
+
}, "Linked Accounts")), /*#__PURE__*/React.createElement("ul", {
|
|
7576
|
+
className: styles$9["linked-accounts-list"]
|
|
7610
7577
|
}, connectedPeopleMenuFormatter(connectedPeople).map(({
|
|
7611
7578
|
id,
|
|
7612
7579
|
attributes: person
|
|
7613
|
-
}) => (/*#__PURE__*/React.createElement(
|
|
7614
|
-
key: id
|
|
7615
|
-
|
|
7580
|
+
}) => (/*#__PURE__*/React.createElement("li", {
|
|
7581
|
+
key: id
|
|
7582
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
7583
|
+
onClick: () => {
|
|
7616
7584
|
requestClearAppsCache();
|
|
7617
7585
|
requestClearConnectedPeopleCache();
|
|
7618
7586
|
switchConnectedPerson(String(id), `${appName}/`);
|
|
7619
|
-
e.preventDefault();
|
|
7620
7587
|
},
|
|
7621
|
-
|
|
7622
|
-
|
|
7623
|
-
|
|
7624
|
-
}, /*#__PURE__*/React.createElement(tapestryReact.Text, {
|
|
7625
|
-
truncate: true
|
|
7626
|
-
}, person.organization_name)))), /*#__PURE__*/React.createElement(tapestryReact.List.Item, {
|
|
7627
|
-
onClick: e => {
|
|
7588
|
+
type: "button"
|
|
7589
|
+
}, person.organization_name)))), /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("button", {
|
|
7590
|
+
onClick: () => {
|
|
7628
7591
|
requestClearAppsCache();
|
|
7629
7592
|
requestClearConnectedPeopleCache();
|
|
7630
7593
|
unlinkConnectedPeople();
|
|
7631
|
-
e.preventDefault();
|
|
7632
7594
|
},
|
|
7633
|
-
|
|
7634
|
-
|
|
7635
|
-
|
|
7636
|
-
|
|
7637
|
-
},
|
|
7638
|
-
size: 3
|
|
7639
|
-
}, "Unlink my accounts"))))));
|
|
7595
|
+
style: {
|
|
7596
|
+
color: "var(--t-text-color-status-error)"
|
|
7597
|
+
},
|
|
7598
|
+
type: "button"
|
|
7599
|
+
}, "Unlink my accounts")))))));
|
|
7640
7600
|
}
|
|
7641
7601
|
|
|
7642
7602
|
var ActionType;
|
|
@@ -7695,7 +7655,7 @@ const useToolbarReducer = overrides => React__namespace.useReducer(reducer, {
|
|
|
7695
7655
|
...overrides
|
|
7696
7656
|
});
|
|
7697
7657
|
|
|
7698
|
-
var styles$
|
|
7658
|
+
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"};
|
|
7699
7659
|
|
|
7700
7660
|
// PCO Box serves TLS by default, and a bare http:// frame inside an https
|
|
7701
7661
|
// product page is blocked as mixed content, so follow the page's scheme.
|
|
@@ -7803,23 +7763,17 @@ function NavButton({
|
|
|
7803
7763
|
disabled,
|
|
7804
7764
|
onClick
|
|
7805
7765
|
}) {
|
|
7806
|
-
return /*#__PURE__*/React.createElement(
|
|
7807
|
-
|
|
7808
|
-
, {
|
|
7809
|
-
"aria-disabled": disabled,
|
|
7766
|
+
return /*#__PURE__*/React.createElement(tapestry.IconButton, {
|
|
7767
|
+
"aria-label": direction === "back" ? "Back" : "Forward",
|
|
7810
7768
|
disabled: disabled,
|
|
7811
|
-
|
|
7812
|
-
|
|
7813
|
-
},
|
|
7814
|
-
icon: {
|
|
7815
|
-
fill: "var(--t-icon-color-dim)",
|
|
7769
|
+
focusableWhenDisabled: true,
|
|
7770
|
+
icon: /*#__PURE__*/React.createElement(Icon, {
|
|
7816
7771
|
name: direction === "back" ? "general.leftChevron" : "general.rightChevron",
|
|
7817
|
-
|
|
7818
|
-
},
|
|
7772
|
+
theme: disabled ? undefined : "--t-icon-color-dim"
|
|
7773
|
+
}),
|
|
7774
|
+
kind: "ghost",
|
|
7819
7775
|
onClick: onClick,
|
|
7820
|
-
|
|
7821
|
-
theme: false,
|
|
7822
|
-
title: direction === "back" ? "Back" : "Forward"
|
|
7776
|
+
size: "md"
|
|
7823
7777
|
});
|
|
7824
7778
|
}
|
|
7825
7779
|
function DeveloperToolsComponent({
|
|
@@ -7832,10 +7786,9 @@ function DeveloperToolsComponent({
|
|
|
7832
7786
|
} = useFrameHistory();
|
|
7833
7787
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(DrawerHeader, {
|
|
7834
7788
|
closeDrawer: closeDrawer
|
|
7835
|
-
}, /*#__PURE__*/React.createElement(
|
|
7836
|
-
|
|
7837
|
-
|
|
7838
|
-
spacing: 0.25
|
|
7789
|
+
}, /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
7790
|
+
align: "center",
|
|
7791
|
+
gap: 0.25
|
|
7839
7792
|
}, /*#__PURE__*/React.createElement(NavButton, {
|
|
7840
7793
|
direction: "back",
|
|
7841
7794
|
disabled: steps.back === 0,
|
|
@@ -7845,16 +7798,19 @@ function DeveloperToolsComponent({
|
|
|
7845
7798
|
disabled: steps.forward === 0,
|
|
7846
7799
|
onClick: () => traverse("forward")
|
|
7847
7800
|
}), /*#__PURE__*/React.createElement(DrawerHeading, {
|
|
7848
|
-
|
|
7849
|
-
|
|
7850
|
-
|
|
7851
|
-
|
|
7852
|
-
flex: "1",
|
|
7853
|
-
minHeight: 0,
|
|
7801
|
+
style: {
|
|
7802
|
+
paddingLeft: "var(--t-spacing-half)"
|
|
7803
|
+
}
|
|
7804
|
+
}, "Developer Tools"))), /*#__PURE__*/React.createElement("iframe", {
|
|
7854
7805
|
onLoad: onFrameLoad,
|
|
7855
7806
|
src: iframeSrc(),
|
|
7856
|
-
|
|
7857
|
-
|
|
7807
|
+
style: {
|
|
7808
|
+
border: 0,
|
|
7809
|
+
flex: 1,
|
|
7810
|
+
minHeight: 0,
|
|
7811
|
+
width: "100%"
|
|
7812
|
+
},
|
|
7813
|
+
title: "Developer Tools"
|
|
7858
7814
|
}));
|
|
7859
7815
|
}
|
|
7860
7816
|
const DeveloperTools = {
|
|
@@ -7867,6 +7823,19 @@ const DeveloperTools = {
|
|
|
7867
7823
|
name: "DeveloperTools"
|
|
7868
7824
|
};
|
|
7869
7825
|
|
|
7826
|
+
var styles$7 = {"spinner":"spinner-EtR3A","label":"label-Rg7g6"};
|
|
7827
|
+
|
|
7828
|
+
function Spinner({
|
|
7829
|
+
label = "Loading"
|
|
7830
|
+
}) {
|
|
7831
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
7832
|
+
className: styles$7.spinner,
|
|
7833
|
+
role: "status"
|
|
7834
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
7835
|
+
className: styles$7.label
|
|
7836
|
+
}, label));
|
|
7837
|
+
}
|
|
7838
|
+
|
|
7870
7839
|
const DEFAULT_READY_TIMEOUT_MS = 8000;
|
|
7871
7840
|
// The route rides in the fragment (`/topbar/helpdesk#email`), not the path, so
|
|
7872
7841
|
// changing it is a same-document navigation that doesn't reload the iframe.
|
|
@@ -7988,6 +7957,8 @@ const ToolIframe = /*#__PURE__*/React.forwardRef(function ToolIframe({
|
|
|
7988
7957
|
});
|
|
7989
7958
|
});
|
|
7990
7959
|
|
|
7960
|
+
var styles$6 = {"fallback-link":"fallback-link-t8Os7"};
|
|
7961
|
+
|
|
7991
7962
|
function hostContext(appName, pcoMeta) {
|
|
7992
7963
|
return {
|
|
7993
7964
|
appName,
|
|
@@ -8113,9 +8084,9 @@ function IframeTool({
|
|
|
8113
8084
|
onRetry: handleRetry
|
|
8114
8085
|
});
|
|
8115
8086
|
}
|
|
8116
|
-
return /*#__PURE__*/React.createElement(
|
|
8117
|
-
|
|
8118
|
-
|
|
8087
|
+
return /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
8088
|
+
direction: "column",
|
|
8089
|
+
expand: true
|
|
8119
8090
|
}, !isReady && (/*#__PURE__*/React.createElement(LoadingHeader, {
|
|
8120
8091
|
closeDrawer: closeDrawer,
|
|
8121
8092
|
heading: config.heading
|
|
@@ -8139,15 +8110,11 @@ function LoadingHeader({
|
|
|
8139
8110
|
}) {
|
|
8140
8111
|
return /*#__PURE__*/React.createElement(DrawerHeader, {
|
|
8141
8112
|
closeDrawer: closeDrawer
|
|
8142
|
-
}, /*#__PURE__*/React.createElement(
|
|
8143
|
-
|
|
8144
|
-
|
|
8145
|
-
|
|
8146
|
-
|
|
8147
|
-
"aria-label": `Loading ${heading}`,
|
|
8148
|
-
color: "var(--t-fill-color-neutral-030)",
|
|
8149
|
-
thickness: 2,
|
|
8150
|
-
trackColor: "var(--t-fill-color-neutral-080)"
|
|
8113
|
+
}, /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
8114
|
+
align: "center",
|
|
8115
|
+
gap: 1
|
|
8116
|
+
}, /*#__PURE__*/React.createElement(DrawerHeading, null, heading), /*#__PURE__*/React.createElement(Spinner, {
|
|
8117
|
+
label: `Loading ${heading}`
|
|
8151
8118
|
})));
|
|
8152
8119
|
}
|
|
8153
8120
|
// Single-page apps navigate with pushState, which fires no event, so the URL
|
|
@@ -8176,40 +8143,48 @@ function LoadError$1({
|
|
|
8176
8143
|
heading,
|
|
8177
8144
|
onRetry
|
|
8178
8145
|
}) {
|
|
8179
|
-
return /*#__PURE__*/React.createElement(
|
|
8180
|
-
|
|
8181
|
-
|
|
8146
|
+
return /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
8147
|
+
direction: "column",
|
|
8148
|
+
expand: true
|
|
8182
8149
|
}, /*#__PURE__*/React.createElement(DrawerHeader, {
|
|
8183
8150
|
closeDrawer: closeDrawer
|
|
8184
|
-
}, /*#__PURE__*/React.createElement(DrawerHeading, null, heading)), /*#__PURE__*/React.createElement(
|
|
8185
|
-
|
|
8186
|
-
|
|
8187
|
-
|
|
8188
|
-
|
|
8189
|
-
|
|
8190
|
-
|
|
8191
|
-
}, /*#__PURE__*/React.createElement(
|
|
8192
|
-
|
|
8193
|
-
|
|
8194
|
-
|
|
8195
|
-
|
|
8196
|
-
|
|
8151
|
+
}, /*#__PURE__*/React.createElement(DrawerHeading, null, heading)), /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
8152
|
+
align: "center",
|
|
8153
|
+
direction: "column",
|
|
8154
|
+
expand: true,
|
|
8155
|
+
gap: 1,
|
|
8156
|
+
justify: "center",
|
|
8157
|
+
padding: 3
|
|
8158
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
8159
|
+
style: {
|
|
8160
|
+
color: "var(--t-text-color-secondary)",
|
|
8161
|
+
fontSize: "var(--t-font-size-xs)",
|
|
8162
|
+
lineHeight: "20px",
|
|
8163
|
+
margin: 0
|
|
8164
|
+
}
|
|
8165
|
+
}, "This couldn't load. Try again in a moment."), /*#__PURE__*/React.createElement("div", {
|
|
8166
|
+
style: {
|
|
8167
|
+
paddingTop: "var(--t-spacing-2)"
|
|
8168
|
+
}
|
|
8169
|
+
}, /*#__PURE__*/React.createElement(tapestry.Button, {
|
|
8170
|
+
kind: "primary",
|
|
8171
|
+
label: "Retry",
|
|
8197
8172
|
onClick: onRetry,
|
|
8198
|
-
|
|
8199
|
-
|
|
8200
|
-
|
|
8201
|
-
title: "Retry"
|
|
8173
|
+
prefix: /*#__PURE__*/React.createElement(Icon, {
|
|
8174
|
+
name: "general.refresh"
|
|
8175
|
+
})
|
|
8202
8176
|
})), fallbackLinks.map(({
|
|
8203
8177
|
href,
|
|
8204
8178
|
label
|
|
8205
|
-
}) => (/*#__PURE__*/React.createElement(
|
|
8179
|
+
}) => (/*#__PURE__*/React.createElement(tapestry.Link, {
|
|
8206
8180
|
key: href,
|
|
8207
|
-
|
|
8181
|
+
className: styles$6["fallback-link"],
|
|
8182
|
+
href: href,
|
|
8208
8183
|
external: true
|
|
8209
8184
|
}, label)))));
|
|
8210
8185
|
}
|
|
8211
8186
|
|
|
8212
|
-
var styles$
|
|
8187
|
+
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"};
|
|
8213
8188
|
|
|
8214
8189
|
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";
|
|
8215
8190
|
// Same stops as the AskAIBanner border gradient, so the two stay in sync.
|
|
@@ -8269,8 +8244,8 @@ function AskAIBanner(props) {
|
|
|
8269
8244
|
var _a, _b;
|
|
8270
8245
|
const isStacked = props.variant !== "inline";
|
|
8271
8246
|
return /*#__PURE__*/React.createElement("button", {
|
|
8272
|
-
className: classnames(styles$
|
|
8273
|
-
[styles$
|
|
8247
|
+
className: classnames(styles$5.banner, {
|
|
8248
|
+
[styles$5.stacked]: isStacked
|
|
8274
8249
|
}),
|
|
8275
8250
|
onClick: () => props.onClick(),
|
|
8276
8251
|
type: "button"
|
|
@@ -8285,17 +8260,16 @@ function StackedContent({
|
|
|
8285
8260
|
title
|
|
8286
8261
|
}) {
|
|
8287
8262
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
|
|
8288
|
-
className: styles$
|
|
8263
|
+
className: styles$5.content
|
|
8289
8264
|
}, /*#__PURE__*/React.createElement(AskAIIcon, null), /*#__PURE__*/React.createElement("span", {
|
|
8290
|
-
className: styles$
|
|
8265
|
+
className: styles$5.text
|
|
8291
8266
|
}, /*#__PURE__*/React.createElement("span", {
|
|
8292
|
-
className: styles$
|
|
8267
|
+
className: styles$5.title
|
|
8293
8268
|
}, title), /*#__PURE__*/React.createElement("span", {
|
|
8294
|
-
className: styles$
|
|
8295
|
-
}, "Support answers tailored to you"))), /*#__PURE__*/React.createElement(
|
|
8296
|
-
className: styles$
|
|
8297
|
-
name: "general.rightChevron"
|
|
8298
|
-
size: "16px"
|
|
8269
|
+
className: styles$5.subtitle
|
|
8270
|
+
}, "Support answers tailored to you"))), /*#__PURE__*/React.createElement(Icon, {
|
|
8271
|
+
className: styles$5.chevron,
|
|
8272
|
+
name: "general.rightChevron"
|
|
8299
8273
|
}));
|
|
8300
8274
|
}
|
|
8301
8275
|
function InlineContent({
|
|
@@ -8303,20 +8277,20 @@ function InlineContent({
|
|
|
8303
8277
|
title
|
|
8304
8278
|
}) {
|
|
8305
8279
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
|
|
8306
|
-
className: styles$
|
|
8280
|
+
className: styles$5.inlineContent
|
|
8307
8281
|
}, /*#__PURE__*/React.createElement(SparkleIcon, {
|
|
8308
|
-
className: styles$
|
|
8282
|
+
className: styles$5.sparkle,
|
|
8309
8283
|
fill: "currentColor"
|
|
8310
8284
|
}), /*#__PURE__*/React.createElement("span", {
|
|
8311
|
-
className: styles$
|
|
8285
|
+
className: styles$5.inlineTitle
|
|
8312
8286
|
}, title)), /*#__PURE__*/React.createElement("span", {
|
|
8313
|
-
className: styles$
|
|
8287
|
+
className: styles$5.action
|
|
8314
8288
|
}, /*#__PURE__*/React.createElement("span", {
|
|
8315
|
-
className: styles$
|
|
8316
|
-
}, action), /*#__PURE__*/React.createElement(
|
|
8317
|
-
className: styles$
|
|
8289
|
+
className: styles$5.actionLabel
|
|
8290
|
+
}, action), /*#__PURE__*/React.createElement(Icon, {
|
|
8291
|
+
className: styles$5.actionChevron,
|
|
8318
8292
|
name: "general.rightChevron",
|
|
8319
|
-
size:
|
|
8293
|
+
size: 14
|
|
8320
8294
|
})));
|
|
8321
8295
|
}
|
|
8322
8296
|
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";
|
|
@@ -8331,9 +8305,9 @@ function AskAIIcon() {
|
|
|
8331
8305
|
const borderA = `${uid}-border-a`;
|
|
8332
8306
|
const borderB = `${uid}-border-b`;
|
|
8333
8307
|
return /*#__PURE__*/React.createElement("span", {
|
|
8334
|
-
className: styles$
|
|
8308
|
+
className: styles$5.icon
|
|
8335
8309
|
}, /*#__PURE__*/React.createElement("svg", {
|
|
8336
|
-
className: styles$
|
|
8310
|
+
className: styles$5.iconShape,
|
|
8337
8311
|
viewBox: "0 0 32 32",
|
|
8338
8312
|
fill: "none",
|
|
8339
8313
|
"aria-hidden": "true"
|
|
@@ -8504,7 +8478,7 @@ function AskAIIcon() {
|
|
|
8504
8478
|
stopColor: "#D48B91",
|
|
8505
8479
|
stopOpacity: "0"
|
|
8506
8480
|
})))), /*#__PURE__*/React.createElement("svg", {
|
|
8507
|
-
className: styles$
|
|
8481
|
+
className: styles$5.iconSparkle,
|
|
8508
8482
|
viewBox: "0 0 19.4995 17.9999",
|
|
8509
8483
|
"aria-hidden": "true"
|
|
8510
8484
|
}, /*#__PURE__*/React.createElement("path", {
|
|
@@ -8513,24 +8487,30 @@ function AskAIIcon() {
|
|
|
8513
8487
|
})));
|
|
8514
8488
|
}
|
|
8515
8489
|
|
|
8516
|
-
var styles = {"button":"button-2NVI1","sparkle":"sparkle-ruJGP","label":"label-4NUGB"};
|
|
8490
|
+
var styles$4 = {"button":"button-2NVI1","sparkle":"sparkle-ruJGP","label":"label-4NUGB"};
|
|
8517
8491
|
|
|
8518
8492
|
function AskAIButton({
|
|
8519
8493
|
onClick,
|
|
8520
8494
|
text = "Ask AI"
|
|
8521
8495
|
}) {
|
|
8522
8496
|
return /*#__PURE__*/React.createElement("button", {
|
|
8523
|
-
className: styles.button,
|
|
8497
|
+
className: styles$4.button,
|
|
8524
8498
|
onClick: () => onClick(),
|
|
8525
8499
|
type: "button"
|
|
8526
8500
|
}, /*#__PURE__*/React.createElement(SparkleIcon, {
|
|
8527
|
-
className: styles.sparkle,
|
|
8501
|
+
className: styles$4.sparkle,
|
|
8528
8502
|
fill: "currentColor"
|
|
8529
8503
|
}), /*#__PURE__*/React.createElement("span", {
|
|
8530
|
-
className: styles.label
|
|
8504
|
+
className: styles$4.label
|
|
8531
8505
|
}, text));
|
|
8532
8506
|
}
|
|
8533
8507
|
|
|
8508
|
+
// Upstream types ComboBoxSection's `title` as a string, but renders it as the
|
|
8509
|
+
// section header's content, so any node works.
|
|
8510
|
+
const ComboBoxSection = tapestry.ComboBoxSection;
|
|
8511
|
+
|
|
8512
|
+
var styles$3 = {"hit":"hit-rlQ2Z","section":"section-e2JHf"};
|
|
8513
|
+
|
|
8534
8514
|
// The article heading lives in the deepest populated hierarchy level (lvl0 is
|
|
8535
8515
|
// always "Planning Center").
|
|
8536
8516
|
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) || "";
|
|
@@ -8543,57 +8523,41 @@ const handleSearchSelect = hit => {
|
|
|
8543
8523
|
newTab.focus();
|
|
8544
8524
|
}
|
|
8545
8525
|
};
|
|
8546
|
-
|
|
8547
|
-
|
|
8548
|
-
const HeadingIcon = ({
|
|
8549
|
-
currentAppName,
|
|
8550
|
-
product
|
|
8526
|
+
const SectionIcon = ({
|
|
8527
|
+
slug
|
|
8551
8528
|
}) => {
|
|
8552
|
-
|
|
8553
|
-
|
|
8554
|
-
|
|
8555
|
-
|
|
8556
|
-
|
|
8557
|
-
|
|
8558
|
-
name: "general.cog",
|
|
8559
|
-
color: "foregroundSecondary"
|
|
8529
|
+
if (slug === "planning-center") {
|
|
8530
|
+
return /*#__PURE__*/React.createElement(Icon, {
|
|
8531
|
+
name: "toolbar.planningCenter",
|
|
8532
|
+
style: {
|
|
8533
|
+
color: "hsl(221, 93%, 55%)"
|
|
8534
|
+
}
|
|
8560
8535
|
});
|
|
8561
8536
|
}
|
|
8562
|
-
|
|
8563
|
-
|
|
8564
|
-
|
|
8565
|
-
height: 2
|
|
8566
|
-
}, /*#__PURE__*/React.createElement(tapestryReact.Logo, {
|
|
8567
|
-
name: logoName,
|
|
8568
|
-
size: "sm",
|
|
8569
|
-
theme: "color",
|
|
8570
|
-
markOnly: true
|
|
8571
|
-
}));
|
|
8572
|
-
};
|
|
8573
|
-
const HitResult = ({
|
|
8574
|
-
hit,
|
|
8575
|
-
index
|
|
8576
|
-
}) => {
|
|
8577
|
-
return /*#__PURE__*/React.createElement(tapestryReact.Combobox.Item, {
|
|
8578
|
-
key: hit.objectID,
|
|
8579
|
-
index: index,
|
|
8580
|
-
value: hit,
|
|
8581
|
-
paddingVertical: 1
|
|
8582
|
-
}, /*#__PURE__*/React.createElement(tapestryReact.Text, {
|
|
8583
|
-
color: "neutralDarker",
|
|
8584
|
-
size: 4,
|
|
8585
|
-
whiteSpace: "normal"
|
|
8586
|
-
}, hitTitle(hit.hierarchy)));
|
|
8537
|
+
return isProductIconSlug(slug) ? /*#__PURE__*/React.createElement(ProductIcon, {
|
|
8538
|
+
slug: slug
|
|
8539
|
+
}) : null;
|
|
8587
8540
|
};
|
|
8541
|
+
const SectionTitle = ({
|
|
8542
|
+
product
|
|
8543
|
+
}) => (/*#__PURE__*/React.createElement("span", {
|
|
8544
|
+
style: {
|
|
8545
|
+
alignItems: "center",
|
|
8546
|
+
display: "flex",
|
|
8547
|
+
gap: "var(--t-spacing-half)"
|
|
8548
|
+
}
|
|
8549
|
+
}, /*#__PURE__*/React.createElement(SectionIcon, {
|
|
8550
|
+
slug: product.toLowerCase().replace(/\s+/g, "-")
|
|
8551
|
+
}), product));
|
|
8588
8552
|
const CustomSearchBox = ({
|
|
8589
8553
|
currentAppName
|
|
8590
8554
|
}) => {
|
|
8591
8555
|
const {
|
|
8592
8556
|
query,
|
|
8593
|
-
refine
|
|
8557
|
+
refine
|
|
8594
8558
|
} = reactInstantsearchCore.useSearchBox();
|
|
8559
|
+
const [inputValue, setInputValue] = React.useState(query);
|
|
8595
8560
|
const {
|
|
8596
|
-
hits,
|
|
8597
8561
|
results
|
|
8598
8562
|
} = reactInstantsearchCore.useHits();
|
|
8599
8563
|
const groups = results === null || results === void 0 ? void 0 : results.hits.reduce((acc, hit) => {
|
|
@@ -8607,57 +8571,40 @@ const CustomSearchBox = ({
|
|
|
8607
8571
|
acc[key].push(hit);
|
|
8608
8572
|
return acc;
|
|
8609
8573
|
}, {});
|
|
8610
|
-
|
|
8611
|
-
|
|
8612
|
-
|
|
8613
|
-
|
|
8614
|
-
|
|
8615
|
-
|
|
8616
|
-
|
|
8617
|
-
|
|
8574
|
+
const handleChange = key => {
|
|
8575
|
+
const hit = results === null || results === void 0 ? void 0 : results.hits.find(({
|
|
8576
|
+
objectID
|
|
8577
|
+
}) => objectID === key);
|
|
8578
|
+
if (hit) handleSearchSelect(hit);
|
|
8579
|
+
};
|
|
8580
|
+
return /*#__PURE__*/React.createElement(tapestry.ComboBox, {
|
|
8581
|
+
allowsCustomValue: true,
|
|
8582
|
+
allowsEmptyCollection: !!inputValue,
|
|
8583
|
+
filter: () => true,
|
|
8584
|
+
hideLabel: true,
|
|
8585
|
+
inputValue: inputValue,
|
|
8586
|
+
label: "Search our documentation",
|
|
8587
|
+
onChange: handleChange,
|
|
8588
|
+
onInputChange: value => {
|
|
8589
|
+
setInputValue(value);
|
|
8590
|
+
refine(value);
|
|
8618
8591
|
},
|
|
8619
8592
|
placeholder: "Search our documentation",
|
|
8620
|
-
|
|
8621
|
-
|
|
8622
|
-
|
|
8623
|
-
|
|
8624
|
-
|
|
8625
|
-
|
|
8626
|
-
|
|
8627
|
-
|
|
8628
|
-
|
|
8629
|
-
|
|
8630
|
-
|
|
8631
|
-
|
|
8632
|
-
|
|
8633
|
-
|
|
8634
|
-
|
|
8635
|
-
whiteSpace: "normal"
|
|
8636
|
-
}, "No results match your search")))), groups && Object.keys(groups).map(key => {
|
|
8637
|
-
const groupHits = groups[key];
|
|
8638
|
-
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
8639
|
-
key: key
|
|
8640
|
-
}, resultIndex > 0 && /*#__PURE__*/React.createElement(tapestryReact.Divider, {
|
|
8641
|
-
margin: 1
|
|
8642
|
-
}), /*#__PURE__*/React.createElement(tapestryReact.StackView, {
|
|
8643
|
-
axis: "horizontal",
|
|
8644
|
-
alignment: "center",
|
|
8645
|
-
spacing: 0.5,
|
|
8646
|
-
paddingHorizontal: 2,
|
|
8647
|
-
paddingVertical: 1
|
|
8648
|
-
}, /*#__PURE__*/React.createElement(HeadingIcon, {
|
|
8649
|
-
currentAppName: currentAppName,
|
|
8650
|
-
product: key
|
|
8651
|
-
}), /*#__PURE__*/React.createElement(tapestryReact.Text, {
|
|
8652
|
-
size: 5,
|
|
8653
|
-
color: "foregroundSecondary",
|
|
8654
|
-
fontWeight: 500
|
|
8655
|
-
}, key)), groupHits.map(hit => (/*#__PURE__*/React.createElement(HitResult, {
|
|
8656
|
-
key: hit.objectID,
|
|
8657
|
-
hit: hit,
|
|
8658
|
-
index: resultIndex++
|
|
8659
|
-
}))));
|
|
8660
|
-
})));
|
|
8593
|
+
renderEmptyState: "No results match your search",
|
|
8594
|
+
showSearchIcon: true,
|
|
8595
|
+
value: null
|
|
8596
|
+
}, Object.entries(inputValue && groups || {}).map(([product, groupHits]) => (/*#__PURE__*/React.createElement(ComboBoxSection, {
|
|
8597
|
+
className: styles$3["section"],
|
|
8598
|
+
key: product,
|
|
8599
|
+
title: /*#__PURE__*/React.createElement(SectionTitle, {
|
|
8600
|
+
product: product
|
|
8601
|
+
})
|
|
8602
|
+
}, groupHits.map(hit => (/*#__PURE__*/React.createElement(tapestry.ComboBoxItem, {
|
|
8603
|
+
className: styles$3["hit"],
|
|
8604
|
+
id: hit.objectID,
|
|
8605
|
+
key: hit.objectID,
|
|
8606
|
+
textValue: hitTitle(hit.hierarchy)
|
|
8607
|
+
}, hitTitle(hit.hierarchy))))))));
|
|
8661
8608
|
};
|
|
8662
8609
|
|
|
8663
8610
|
const HELP_CENTER_INDEX = "help_center_english";
|
|
@@ -8789,7 +8736,7 @@ function createPicobotIframe(picobotOrigin, {
|
|
|
8789
8736
|
|
|
8790
8737
|
const {
|
|
8791
8738
|
LoadingIndicator: LoadingIndicator$1,
|
|
8792
|
-
StackView
|
|
8739
|
+
StackView
|
|
8793
8740
|
} = addOns.components;
|
|
8794
8741
|
function CalendlyWidget({
|
|
8795
8742
|
url,
|
|
@@ -8864,12 +8811,12 @@ function HelpdeskAddOn({
|
|
|
8864
8811
|
openPicobot
|
|
8865
8812
|
}) {
|
|
8866
8813
|
const PicobotIframe = React.useMemo(() => createPicobotIframe(pcoUrl(env)("picobot")), [env]);
|
|
8867
|
-
const loadingFallback = /*#__PURE__*/React.createElement(StackView
|
|
8814
|
+
const loadingFallback = /*#__PURE__*/React.createElement(StackView, {
|
|
8868
8815
|
flex: 1,
|
|
8869
8816
|
axis: "vertical"
|
|
8870
8817
|
}, /*#__PURE__*/React.createElement(DrawerHeader, {
|
|
8871
8818
|
closeDrawer: closeDrawer
|
|
8872
|
-
}, /*#__PURE__*/React.createElement(StackView
|
|
8819
|
+
}, /*#__PURE__*/React.createElement(StackView, {
|
|
8873
8820
|
axis: "horizontal",
|
|
8874
8821
|
spacing: 1
|
|
8875
8822
|
}, /*#__PURE__*/React.createElement(DrawerHeading, null, "Help and support"), /*#__PURE__*/React.createElement(LoadingIndicator$1, null))));
|
|
@@ -9115,36 +9062,25 @@ const NotificationItem = ({
|
|
|
9115
9062
|
margin: 0,
|
|
9116
9063
|
userSelect: "none"
|
|
9117
9064
|
}
|
|
9118
|
-
}, title)), !mobile && (
|
|
9119
|
-
|
|
9120
|
-
|
|
9121
|
-
|
|
9122
|
-
|
|
9123
|
-
|
|
9124
|
-
|
|
9125
|
-
|
|
9126
|
-
|
|
9127
|
-
|
|
9128
|
-
|
|
9129
|
-
|
|
9130
|
-
|
|
9131
|
-
|
|
9132
|
-
|
|
9133
|
-
|
|
9134
|
-
|
|
9135
|
-
|
|
9136
|
-
|
|
9137
|
-
e.preventDefault();
|
|
9138
|
-
e.stopPropagation();
|
|
9139
|
-
window.location.href = notification.taskUrl;
|
|
9140
|
-
}
|
|
9141
|
-
}, "Open task")) : (/*#__PURE__*/React.createElement(tapestryReact.Dropdown.Item, {
|
|
9142
|
-
onClick: e => {
|
|
9143
|
-
e.preventDefault();
|
|
9144
|
-
e.stopPropagation();
|
|
9145
|
-
onCreateTask(notification);
|
|
9146
|
-
}
|
|
9147
|
-
}, "Create task"))))), /*#__PURE__*/React.createElement("div", {
|
|
9065
|
+
}, title)), !mobile && (
|
|
9066
|
+
/*#__PURE__*/
|
|
9067
|
+
// Portal clicks bubble through React; don't open the item.
|
|
9068
|
+
React.createElement("span", {
|
|
9069
|
+
onClick: e => e.stopPropagation()
|
|
9070
|
+
}, /*#__PURE__*/React.createElement(tapestry.Dropdown, null, /*#__PURE__*/React.createElement(tapestry.DropdownTrigger, null, /*#__PURE__*/React.createElement(tapestry.ActionsDropdownIconButton, {
|
|
9071
|
+
"aria-label": "More options"
|
|
9072
|
+
})), /*#__PURE__*/React.createElement(tapestry.DropdownMenu, {
|
|
9073
|
+
placement: "bottom end"
|
|
9074
|
+
}, /*#__PURE__*/React.createElement(tapestry.DropdownAction, {
|
|
9075
|
+
id: "toggle-read",
|
|
9076
|
+
onAction: onToggleRead
|
|
9077
|
+
}, "Mark ", isRead ? "unread" : "as read"), notification.taskUrl ? (/*#__PURE__*/React.createElement(tapestry.DropdownLink, {
|
|
9078
|
+
href: notification.taskUrl,
|
|
9079
|
+
id: "open-task"
|
|
9080
|
+
}, "Open task")) : (/*#__PURE__*/React.createElement(tapestry.DropdownAction, {
|
|
9081
|
+
id: "create-task",
|
|
9082
|
+
onAction: () => onCreateTask(notification)
|
|
9083
|
+
}, "Create task"))))))), /*#__PURE__*/React.createElement("div", {
|
|
9148
9084
|
style: {
|
|
9149
9085
|
color: "var(--t-text-color)",
|
|
9150
9086
|
fontSize: "12px",
|
|
@@ -9158,21 +9094,29 @@ const NotificationsMenuBlankState = ({
|
|
|
9158
9094
|
context,
|
|
9159
9095
|
description,
|
|
9160
9096
|
title = "No notifications"
|
|
9161
|
-
}) => (/*#__PURE__*/React.createElement(
|
|
9162
|
-
|
|
9163
|
-
|
|
9097
|
+
}) => (/*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
9098
|
+
align: "center",
|
|
9099
|
+
direction: "column",
|
|
9100
|
+
justify: "center",
|
|
9164
9101
|
padding: 4
|
|
9165
9102
|
}, /*#__PURE__*/React.createElement(BlankStateIcon, {
|
|
9166
9103
|
id: context
|
|
9167
|
-
}), /*#__PURE__*/React.createElement(
|
|
9168
|
-
|
|
9169
|
-
|
|
9170
|
-
|
|
9171
|
-
|
|
9172
|
-
|
|
9173
|
-
|
|
9174
|
-
|
|
9175
|
-
|
|
9104
|
+
}), /*#__PURE__*/React.createElement("h3", {
|
|
9105
|
+
style: {
|
|
9106
|
+
color: "var(--t-text-color-headline)",
|
|
9107
|
+
fontSize: "var(--t-font-size-md)",
|
|
9108
|
+
fontWeight: "var(--t-font-weight-medium)",
|
|
9109
|
+
lineHeight: "40px",
|
|
9110
|
+
margin: "var(--t-spacing-1) 0 0"
|
|
9111
|
+
}
|
|
9112
|
+
}, title), /*#__PURE__*/React.createElement("p", {
|
|
9113
|
+
style: {
|
|
9114
|
+
color: "var(--t-text-color)",
|
|
9115
|
+
fontSize: "var(--t-font-size-sm)",
|
|
9116
|
+
lineHeight: "20px",
|
|
9117
|
+
margin: 0,
|
|
9118
|
+
textAlign: "center"
|
|
9119
|
+
}
|
|
9176
9120
|
}, description)));
|
|
9177
9121
|
|
|
9178
9122
|
const notificationsOrganizer = notifications => {
|
|
@@ -9391,28 +9335,32 @@ const useNotifications = ({
|
|
|
9391
9335
|
};
|
|
9392
9336
|
};
|
|
9393
9337
|
|
|
9338
|
+
var styles$2 = {"section-header-button":"section-header-button-KtsJL","is-disabled":"is-disabled-UBtxk"};
|
|
9339
|
+
|
|
9394
9340
|
const SectionHeaderButton = ({
|
|
9395
9341
|
disabled,
|
|
9396
9342
|
onClick,
|
|
9397
9343
|
title,
|
|
9398
9344
|
...props
|
|
9399
|
-
}) => (/*#__PURE__*/React.createElement(
|
|
9400
|
-
|
|
9401
|
-
|
|
9402
|
-
fontSize: 5,
|
|
9403
|
-
fontWeight: 600,
|
|
9404
|
-
userSelect: "none",
|
|
9405
|
-
onClick: !disabled && onClick,
|
|
9345
|
+
}) => (/*#__PURE__*/React.createElement("div", {
|
|
9346
|
+
className: classnames(styles$2["section-header-button"], disabled && styles$2["is-disabled"]),
|
|
9347
|
+
onClick: disabled ? undefined : onClick,
|
|
9406
9348
|
...props
|
|
9407
9349
|
}, title));
|
|
9408
9350
|
const SectionHeaderTitle = ({
|
|
9351
|
+
style,
|
|
9409
9352
|
...props
|
|
9410
|
-
}) => (/*#__PURE__*/React.createElement(
|
|
9411
|
-
|
|
9412
|
-
|
|
9413
|
-
|
|
9414
|
-
|
|
9415
|
-
|
|
9353
|
+
}) => (/*#__PURE__*/React.createElement("h3", {
|
|
9354
|
+
style: {
|
|
9355
|
+
color: "var(--t-text-color-headline)",
|
|
9356
|
+
fontSize: "var(--t-font-size-xs)",
|
|
9357
|
+
fontWeight: "var(--t-font-weight-normal)",
|
|
9358
|
+
lineHeight: "16px",
|
|
9359
|
+
margin: 0,
|
|
9360
|
+
textTransform: "uppercase",
|
|
9361
|
+
userSelect: "none",
|
|
9362
|
+
...style
|
|
9363
|
+
},
|
|
9416
9364
|
...props
|
|
9417
9365
|
}));
|
|
9418
9366
|
function NotificationsComponent({
|
|
@@ -9450,26 +9398,19 @@ function NotificationsComponent({
|
|
|
9450
9398
|
});
|
|
9451
9399
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(DrawerHeader, {
|
|
9452
9400
|
closeDrawer: closeDrawer
|
|
9453
|
-
}, /*#__PURE__*/React.createElement(
|
|
9454
|
-
|
|
9455
|
-
|
|
9456
|
-
|
|
9457
|
-
|
|
9458
|
-
|
|
9459
|
-
}, /*#__PURE__*/React.createElement(DrawerHeading, null, "Notifications"), isLoading &&
|
|
9460
|
-
color: "var(--t-fill-color-neutral-030)",
|
|
9461
|
-
thickness: 2,
|
|
9462
|
-
trackColor: "var(--t-fill-color-neutral-080)"
|
|
9463
|
-
})), hasError && (/*#__PURE__*/React.createElement(ExclamationTriangle, {
|
|
9401
|
+
}, /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
9402
|
+
direction: "column",
|
|
9403
|
+
gap: 0.5
|
|
9404
|
+
}, /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
9405
|
+
align: "center",
|
|
9406
|
+
gap: 1
|
|
9407
|
+
}, /*#__PURE__*/React.createElement(DrawerHeading, null, "Notifications"), isLoading && /*#__PURE__*/React.createElement(Spinner, null), hasError && (/*#__PURE__*/React.createElement(ExclamationTriangle, {
|
|
9464
9408
|
fill: "hsl(8 60% 47%)",
|
|
9465
9409
|
size: 16
|
|
9466
9410
|
}))), read.length > 0 && (/*#__PURE__*/React.createElement(SectionHeaderButton, {
|
|
9467
9411
|
onClick: () => setShowRead(showRead => !showRead),
|
|
9468
9412
|
title: `${showRead ? "Hide" : "Show"} read`
|
|
9469
|
-
})))), /*#__PURE__*/React.createElement(ScrollContainer, null, /*#__PURE__*/React.createElement(
|
|
9470
|
-
alignment: "stretch",
|
|
9471
|
-
spacing: 2
|
|
9472
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
9413
|
+
})))), /*#__PURE__*/React.createElement(ScrollContainer, null, /*#__PURE__*/React.createElement("div", {
|
|
9473
9414
|
style: {
|
|
9474
9415
|
boxSizing: "border-box",
|
|
9475
9416
|
display: "flex",
|
|
@@ -9484,10 +9425,9 @@ function NotificationsComponent({
|
|
|
9484
9425
|
...(read.length > 0 && {
|
|
9485
9426
|
title: "No unread notifications"
|
|
9486
9427
|
})
|
|
9487
|
-
})), unread.length > 0 && (/*#__PURE__*/React.createElement(
|
|
9488
|
-
|
|
9489
|
-
|
|
9490
|
-
distribution: "space-between",
|
|
9428
|
+
})), unread.length > 0 && (/*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
9429
|
+
align: "center",
|
|
9430
|
+
justify: "space-between",
|
|
9491
9431
|
padding: 2
|
|
9492
9432
|
}, /*#__PURE__*/React.createElement(SectionHeaderTitle, null, "Unread"), unread.length > 0 && (/*#__PURE__*/React.createElement(SectionHeaderButton, {
|
|
9493
9433
|
onClick: () => handleMarkAllAsRead(),
|
|
@@ -9513,7 +9453,9 @@ function NotificationsComponent({
|
|
|
9513
9453
|
notification
|
|
9514
9454
|
}
|
|
9515
9455
|
}))))))), read.length > 0 && showRead && (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SectionHeaderTitle, {
|
|
9516
|
-
|
|
9456
|
+
style: {
|
|
9457
|
+
padding: "var(--t-spacing-2)"
|
|
9458
|
+
}
|
|
9517
9459
|
}, "Read"), /*#__PURE__*/React.createElement(reactTransitionGroup.TransitionGroup, {
|
|
9518
9460
|
exit: false
|
|
9519
9461
|
}, read.map(notification => (/*#__PURE__*/React.createElement(reactTransitionGroup.Transition, {
|
|
@@ -9536,7 +9478,7 @@ function NotificationsComponent({
|
|
|
9536
9478
|
...{
|
|
9537
9479
|
notification
|
|
9538
9480
|
}
|
|
9539
|
-
})))))))))))))
|
|
9481
|
+
})))))))))))));
|
|
9540
9482
|
}
|
|
9541
9483
|
const Notifications = {
|
|
9542
9484
|
component: NotificationsComponent,
|
|
@@ -9658,31 +9600,43 @@ function LoadError({
|
|
|
9658
9600
|
onContactSupport,
|
|
9659
9601
|
onRetry
|
|
9660
9602
|
}) {
|
|
9661
|
-
return /*#__PURE__*/React.createElement(
|
|
9662
|
-
|
|
9663
|
-
|
|
9664
|
-
|
|
9665
|
-
|
|
9666
|
-
|
|
9667
|
-
|
|
9668
|
-
}, /*#__PURE__*/React.createElement(
|
|
9669
|
-
|
|
9670
|
-
|
|
9671
|
-
|
|
9672
|
-
|
|
9673
|
-
|
|
9674
|
-
|
|
9675
|
-
|
|
9603
|
+
return /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
9604
|
+
align: "center",
|
|
9605
|
+
direction: "column",
|
|
9606
|
+
expand: true,
|
|
9607
|
+
gap: 1,
|
|
9608
|
+
justify: "center",
|
|
9609
|
+
padding: 3
|
|
9610
|
+
}, /*#__PURE__*/React.createElement("h2", {
|
|
9611
|
+
style: {
|
|
9612
|
+
color: "var(--t-text-color)",
|
|
9613
|
+
fontSize: "var(--t-font-size-xl)",
|
|
9614
|
+
fontWeight: "var(--t-font-weight-normal)",
|
|
9615
|
+
lineHeight: "32px",
|
|
9616
|
+
margin: 0
|
|
9617
|
+
}
|
|
9618
|
+
}, "Picobot is temporarily unavailable"), /*#__PURE__*/React.createElement("p", {
|
|
9619
|
+
style: {
|
|
9620
|
+
color: "var(--t-text-color-secondary)",
|
|
9621
|
+
fontSize: "var(--t-font-size-xs)",
|
|
9622
|
+
lineHeight: "20px",
|
|
9623
|
+
margin: 0
|
|
9624
|
+
}
|
|
9625
|
+
}, "Try again or contact support."), /*#__PURE__*/React.createElement("div", {
|
|
9626
|
+
style: {
|
|
9627
|
+
paddingTop: "var(--t-spacing-2)"
|
|
9628
|
+
}
|
|
9629
|
+
}, /*#__PURE__*/React.createElement(tapestry.Button, {
|
|
9630
|
+
kind: "primary",
|
|
9631
|
+
label: "Retry",
|
|
9676
9632
|
onClick: onRetry,
|
|
9677
|
-
|
|
9678
|
-
|
|
9679
|
-
|
|
9680
|
-
|
|
9681
|
-
|
|
9682
|
-
|
|
9683
|
-
|
|
9684
|
-
theme: "primary",
|
|
9685
|
-
title: "Contact support"
|
|
9633
|
+
prefix: /*#__PURE__*/React.createElement(Icon, {
|
|
9634
|
+
name: "general.refresh"
|
|
9635
|
+
})
|
|
9636
|
+
})), /*#__PURE__*/React.createElement(tapestry.Button, {
|
|
9637
|
+
kind: "ghost-interaction",
|
|
9638
|
+
label: "Contact support",
|
|
9639
|
+
onClick: onContactSupport
|
|
9686
9640
|
}));
|
|
9687
9641
|
}
|
|
9688
9642
|
const Picobot = {
|
|
@@ -9694,42 +9648,41 @@ const Picobot = {
|
|
|
9694
9648
|
name: "Picobot"
|
|
9695
9649
|
};
|
|
9696
9650
|
|
|
9651
|
+
var styles$1 = {"badge":"badge-ajEmp","neutral":"neutral-MkFTn","info":"info-olKBf"};
|
|
9652
|
+
|
|
9653
|
+
function Badge({
|
|
9654
|
+
children,
|
|
9655
|
+
kind
|
|
9656
|
+
}) {
|
|
9657
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
9658
|
+
className: classnames(styles$1.badge, styles$1[kind])
|
|
9659
|
+
}, children);
|
|
9660
|
+
}
|
|
9661
|
+
|
|
9662
|
+
var styles = {"nav-link":"nav-link-Yg9d6","is-active":"is-active-B3LJ-"};
|
|
9663
|
+
|
|
9697
9664
|
const {
|
|
9698
|
-
LoadingIndicator
|
|
9699
|
-
StackView
|
|
9665
|
+
LoadingIndicator
|
|
9700
9666
|
} = addOns.components;
|
|
9701
9667
|
function NavLinkWithBadge({
|
|
9702
|
-
children,
|
|
9703
9668
|
badge,
|
|
9704
9669
|
borderBottomColor,
|
|
9705
|
-
|
|
9706
|
-
borderBottomWidth,
|
|
9707
|
-
color,
|
|
9708
|
-
fontSize,
|
|
9709
|
-
fontWeight,
|
|
9670
|
+
children,
|
|
9710
9671
|
onClick
|
|
9711
9672
|
}) {
|
|
9712
|
-
|
|
9713
|
-
|
|
9714
|
-
|
|
9715
|
-
|
|
9716
|
-
|
|
9717
|
-
|
|
9673
|
+
// Home's To do add-on sends tapestry-react style props, not state. The
|
|
9674
|
+
// active tab is the one with the interaction underline. Remove this with
|
|
9675
|
+
// the add-on path when To do moves into the iframe (CHAT-1873).
|
|
9676
|
+
const isActive = borderBottomColor === "interaction";
|
|
9677
|
+
return /*#__PURE__*/React.createElement("button", {
|
|
9678
|
+
className: classnames(styles["nav-link"], {
|
|
9679
|
+
[styles["is-active"]]: isActive
|
|
9680
|
+
}),
|
|
9718
9681
|
onClick: () => onClick(),
|
|
9719
|
-
|
|
9720
|
-
|
|
9721
|
-
|
|
9722
|
-
|
|
9723
|
-
borderBottomWidth,
|
|
9724
|
-
color,
|
|
9725
|
-
fontSize,
|
|
9726
|
-
fontWeight
|
|
9727
|
-
}
|
|
9728
|
-
}, children, badge && /*#__PURE__*/React.createElement(tapestryReact.Badge, {
|
|
9729
|
-
size: "sm",
|
|
9730
|
-
fontWeight: "600",
|
|
9731
|
-
...badge
|
|
9732
|
-
}));
|
|
9682
|
+
type: "button"
|
|
9683
|
+
}, children, badge && (/*#__PURE__*/React.createElement(Badge, {
|
|
9684
|
+
kind: badge.title === "0" ? "neutral" : "info"
|
|
9685
|
+
}, badge.title)));
|
|
9733
9686
|
}
|
|
9734
9687
|
const TASKS_IFRAME_CONFIG = {
|
|
9735
9688
|
app: "home",
|
|
@@ -9784,14 +9737,13 @@ function TasksAddOn({
|
|
|
9784
9737
|
display: "flex",
|
|
9785
9738
|
extensionId: env === "staging" ? "41" : "2",
|
|
9786
9739
|
onReceiveWorker: onReceiveWorker,
|
|
9787
|
-
loadingFallback: /*#__PURE__*/React.createElement(
|
|
9788
|
-
|
|
9789
|
-
|
|
9740
|
+
loadingFallback: /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
9741
|
+
direction: "column",
|
|
9742
|
+
expand: true
|
|
9790
9743
|
}, /*#__PURE__*/React.createElement(DrawerHeader, {
|
|
9791
9744
|
closeDrawer: closeDrawer
|
|
9792
|
-
}, /*#__PURE__*/React.createElement(
|
|
9793
|
-
|
|
9794
|
-
spacing: 1
|
|
9745
|
+
}, /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
9746
|
+
gap: 1
|
|
9795
9747
|
}, /*#__PURE__*/React.createElement(DrawerHeading, null, "To do"), /*#__PURE__*/React.createElement(LoadingIndicator, null)))),
|
|
9796
9748
|
additionalComponents: {
|
|
9797
9749
|
DrawerHeader: {
|
|
@@ -9813,21 +9765,6 @@ function TasksAddOn({
|
|
|
9813
9765
|
borderBottomColor: {
|
|
9814
9766
|
type: String
|
|
9815
9767
|
},
|
|
9816
|
-
borderBottomStyle: {
|
|
9817
|
-
type: String
|
|
9818
|
-
},
|
|
9819
|
-
borderBottomWidth: {
|
|
9820
|
-
type: String
|
|
9821
|
-
},
|
|
9822
|
-
color: {
|
|
9823
|
-
type: String
|
|
9824
|
-
},
|
|
9825
|
-
fontSize: {
|
|
9826
|
-
attribute: false
|
|
9827
|
-
},
|
|
9828
|
-
fontWeight: {
|
|
9829
|
-
attribute: false
|
|
9830
|
-
},
|
|
9831
9768
|
onClick: {
|
|
9832
9769
|
event: false,
|
|
9833
9770
|
type: Function
|
|
@@ -9921,20 +9858,17 @@ const Tasks = {
|
|
|
9921
9858
|
function BlankState({
|
|
9922
9859
|
closeDrawer
|
|
9923
9860
|
}) {
|
|
9924
|
-
return /*#__PURE__*/React.createElement(
|
|
9925
|
-
|
|
9926
|
-
|
|
9861
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
9862
|
+
style: {
|
|
9863
|
+
position: "absolute",
|
|
9864
|
+
width: "100%"
|
|
9865
|
+
}
|
|
9927
9866
|
}, /*#__PURE__*/React.createElement(DrawerHeader, {
|
|
9928
9867
|
closeDrawer: closeDrawer
|
|
9929
|
-
}, /*#__PURE__*/React.createElement(
|
|
9930
|
-
|
|
9931
|
-
|
|
9932
|
-
|
|
9933
|
-
}, /*#__PURE__*/React.createElement(DrawerHeading, null, "Chat"), /*#__PURE__*/React.createElement(tapestryReact.Spinner, {
|
|
9934
|
-
color: "var(--t-fill-color-neutral-030)",
|
|
9935
|
-
thickness: 2,
|
|
9936
|
-
trackColor: "var(--t-fill-color-neutral-080)"
|
|
9937
|
-
}))));
|
|
9868
|
+
}, /*#__PURE__*/React.createElement(tapestry.Flex, {
|
|
9869
|
+
align: "center",
|
|
9870
|
+
gap: 1
|
|
9871
|
+
}, /*#__PURE__*/React.createElement(DrawerHeading, null, "Chat"), /*#__PURE__*/React.createElement(Spinner, null))));
|
|
9938
9872
|
}
|
|
9939
9873
|
|
|
9940
9874
|
function useHandleMessageFromChildFrame(callback, {
|
|
@@ -10021,15 +9955,17 @@ function ChatTool({
|
|
|
10021
9955
|
}
|
|
10022
9956
|
return /*#__PURE__*/React.createElement(React.Fragment, null, isLoading && /*#__PURE__*/React.createElement(BlankState, {
|
|
10023
9957
|
closeDrawer: closeDrawer
|
|
10024
|
-
}), /*#__PURE__*/React.createElement(
|
|
9958
|
+
}), /*#__PURE__*/React.createElement("iframe", {
|
|
10025
9959
|
onLoad: () => setIsLoading(false),
|
|
10026
|
-
opacity: isLoading ? 0 : 1,
|
|
10027
|
-
as: "iframe",
|
|
10028
9960
|
src: iframeSrc,
|
|
10029
|
-
|
|
10030
|
-
|
|
10031
|
-
|
|
10032
|
-
|
|
9961
|
+
style: {
|
|
9962
|
+
border: 0,
|
|
9963
|
+
height: "100%",
|
|
9964
|
+
opacity: isLoading ? 0 : 1,
|
|
9965
|
+
width: "100%",
|
|
9966
|
+
zIndex: 1
|
|
9967
|
+
},
|
|
9968
|
+
title: "Chat"
|
|
10033
9969
|
}));
|
|
10034
9970
|
}
|
|
10035
9971
|
|
|
@@ -10482,27 +10418,25 @@ function UnguardedToolbar({
|
|
|
10482
10418
|
// Chat's dot comes from its own config, so a dev override has to land last.
|
|
10483
10419
|
...devStoreDataOverride.indicatorVisible
|
|
10484
10420
|
};
|
|
10485
|
-
return /*#__PURE__*/React.createElement(
|
|
10486
|
-
|
|
10487
|
-
}, /*#__PURE__*/React.createElement(addOns.UiExtensionDataContext, null, /*#__PURE__*/React.createElement("div", {
|
|
10488
|
-
className: styles$2["toolbar"],
|
|
10421
|
+
return /*#__PURE__*/React.createElement(addOns.UiExtensionDataContext, null, /*#__PURE__*/React.createElement("div", {
|
|
10422
|
+
className: styles$8["toolbar"],
|
|
10489
10423
|
"data-pendo": "toolbar-profile-support-wrapper"
|
|
10490
10424
|
}, /*#__PURE__*/React.createElement(ToolbarDrawerButton, {
|
|
10491
10425
|
tooltip: "Profile",
|
|
10492
10426
|
"aria-label": `Profile, ${userName}`,
|
|
10493
10427
|
onClick: () => toggleDrawer(Profile),
|
|
10494
10428
|
"data-pendo": "toolbar-profile",
|
|
10495
|
-
className: styles$
|
|
10429
|
+
className: styles$8["toolbar-button--avatar"],
|
|
10496
10430
|
icon: /*#__PURE__*/React.createElement(Avatar, {
|
|
10497
10431
|
env: env,
|
|
10498
10432
|
url: userAvatarPath
|
|
10499
10433
|
})
|
|
10500
10434
|
}), /*#__PURE__*/React.createElement(ToolbarButton, {
|
|
10501
|
-
className: styles$
|
|
10435
|
+
className: styles$8["toolbar-button--home"],
|
|
10502
10436
|
onClick: () => closeDrawer()
|
|
10503
|
-
}, /*#__PURE__*/React.createElement(
|
|
10437
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
10504
10438
|
name: "toolbar.planningCenter",
|
|
10505
|
-
size:
|
|
10439
|
+
size: 24
|
|
10506
10440
|
})), [HelpDeskTool, ...TOOLS].map(tool => {
|
|
10507
10441
|
var _a;
|
|
10508
10442
|
const current = open && currentContent === tool;
|
|
@@ -10525,7 +10459,7 @@ function UnguardedToolbar({
|
|
|
10525
10459
|
id: `toolbarDrawer${currentContent.name}`
|
|
10526
10460
|
}, /*#__PURE__*/React.createElement(currentContent.component, {
|
|
10527
10461
|
...currentToolProps
|
|
10528
|
-
})))))
|
|
10462
|
+
})))));
|
|
10529
10463
|
}
|
|
10530
10464
|
const ToolbarButton = ({
|
|
10531
10465
|
children,
|
|
@@ -10536,7 +10470,7 @@ const ToolbarButton = ({
|
|
|
10536
10470
|
}) => {
|
|
10537
10471
|
return /*#__PURE__*/React.createElement("button", {
|
|
10538
10472
|
type: "button",
|
|
10539
|
-
className: classnames(styles$
|
|
10473
|
+
className: classnames(styles$8["toolbar-button"], className, current && styles$8["is-current"]),
|
|
10540
10474
|
onClick: onClick,
|
|
10541
10475
|
"data-toolbar-link": "true",
|
|
10542
10476
|
...restProps
|
|
@@ -10552,7 +10486,7 @@ const ToolbarDrawerButton = ({
|
|
|
10552
10486
|
// Below 600px the toolbar sits along the bottom, where tooltips get in the way.
|
|
10553
10487
|
const isSideToolbar = useMediaQuery("(min-width: 600px)");
|
|
10554
10488
|
return /*#__PURE__*/React.createElement(tapestry.IconButton, {
|
|
10555
|
-
className: classnames(styles$
|
|
10489
|
+
className: classnames(styles$8["toolbar-button"], className, current && styles$8["is-current"]),
|
|
10556
10490
|
"aria-label": ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : tooltip,
|
|
10557
10491
|
tooltip: isSideToolbar ? tooltip : undefined,
|
|
10558
10492
|
tooltipPlacement: "left",
|
|
@@ -10629,7 +10563,7 @@ function getDataPendoAttribute(toolName) {
|
|
|
10629
10563
|
}
|
|
10630
10564
|
}
|
|
10631
10565
|
const Toolbar = withErrorBoundary(UnguardedToolbar, /*#__PURE__*/React.createElement("div", {
|
|
10632
|
-
className: styles$
|
|
10566
|
+
className: styles$8["toolbar"]
|
|
10633
10567
|
}));
|
|
10634
10568
|
|
|
10635
10569
|
exports.AccessibilityToolbar = AccessibilityToolbar;
|