@patternfly/patternfly-doc-core 1.0.0 → 1.0.1
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/.github/workflows/build.yml +1 -1
- package/.vscode/launch.json +22 -0
- package/dist/_astro/Navigation.BBuu_1_L.js +1 -0
- package/dist/_astro/PageContext.DIMIWrWv.js +9 -0
- package/dist/_astro/{PageToggle.jHn9PsTr.js → PageToggle.jNCPBUqq.js} +1 -1
- package/dist/_astro/Toolbar.jxsDq7xe.js +1 -0
- package/dist/_astro/{divider.DrQDtXS2.js → divider.Db64YCZ6.js} +1 -1
- package/dist/cli/tsconfig.tsbuildinfo +1 -1
- package/dist/design-foundations/typography/index.html +2 -2
- package/dist/design-foundations/usage-and-behavior/index.html +2 -2
- package/dist/get-started/contribute/index.html +2 -2
- package/dist/index.html +2 -2
- package/eslint.config.mjs +1 -1
- package/package.json +1 -1
- package/src/components/Toolbar.astro +1 -1
- package/src/components/Toolbar.tsx +20 -147
- package/src/components/toolbar/DocumentReleaseDropdown.tsx +72 -0
- package/src/components/toolbar/SearchComponent.tsx +38 -0
- package/src/components/toolbar/ToogleThemeSwitcher.tsx +51 -0
- package/src/layouts/Main.astro +11 -0
- package/src/pages/index.astro +1 -1
- package/src/types.ts +9 -0
- package/src/utils/theme.ts +20 -0
- package/src/versions.json +1404 -0
- package/.history/package_20250227163130.json +0 -97
- package/.history/package_20250227163527.json +0 -97
- package/.history/package_20250227163646.json +0 -97
- package/.history/package_20250227163651.json +0 -97
- package/.history/package_20250227163654.json +0 -97
- package/.history/package_20250227163657.json +0 -97
- package/.history/package_20250227163659.json +0 -97
- package/.history/package_20250227164608.json +0 -97
- package/.history/package_20250227164611.json +0 -97
- package/.history/package_20250227164616.json +0 -98
- package/dist/_astro/Navigation.BoL0fVlO.js +0 -1
- package/dist/_astro/PageContext.CGSBAxAd.js +0 -9
- package/dist/_astro/Toolbar.BI0orElX.js +0 -1
- package/src/components/Breadcrumbs.astro +0 -10
- package/src/components/KebabDropdownItems.astro +0 -14
- package/src/components/KebabDropdownItems.tsx +0 -15
- package/src/components/UserDropdownItems.astro +0 -9
- package/src/components/UserDropdownItems.tsx +0 -10
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@patternfly/patternfly-doc-core",
|
|
3
|
-
"type": "module",
|
|
4
|
-
"version": "1.",
|
|
5
|
-
"publishConfig": {
|
|
6
|
-
"access": "public"
|
|
7
|
-
},
|
|
8
|
-
"scripts": {
|
|
9
|
-
"dev": "astro dev",
|
|
10
|
-
"start": "astro dev",
|
|
11
|
-
"build": "astro check && astro build",
|
|
12
|
-
"build:cli": "tsc --build ./cli/tsconfig.json",
|
|
13
|
-
"build:cli:watch": "tsc --build --watch ./cli/tsconfig.json",
|
|
14
|
-
"preview": "astro preview",
|
|
15
|
-
"astro": "astro",
|
|
16
|
-
"prettier": "prettier --write ./src",
|
|
17
|
-
"lint": "eslint . --cache --cache-strategy content",
|
|
18
|
-
"test": "jest",
|
|
19
|
-
"test:watch": "jest --watch",
|
|
20
|
-
"semantic-release": "semantic-release"
|
|
21
|
-
},
|
|
22
|
-
"main": "dist/cli/cli.js",
|
|
23
|
-
"bin": "./dist/cli/cli.js",
|
|
24
|
-
"prettier": {
|
|
25
|
-
"plugins": [
|
|
26
|
-
"prettier-plugin-astro"
|
|
27
|
-
],
|
|
28
|
-
"overrides": [
|
|
29
|
-
{
|
|
30
|
-
"files": "*.astro",
|
|
31
|
-
"options": {
|
|
32
|
-
"parser": "astro"
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
],
|
|
36
|
-
"semi": false,
|
|
37
|
-
"singleQuote": true,
|
|
38
|
-
"trailingComma": "all"
|
|
39
|
-
},
|
|
40
|
-
"dependencies": {
|
|
41
|
-
"@astrojs/check": "^0.9.4",
|
|
42
|
-
"@astrojs/react": "^4.1.5",
|
|
43
|
-
"@nanostores/react": "^0.8.0",
|
|
44
|
-
"@patternfly/patternfly": "^6.0.0",
|
|
45
|
-
"@patternfly/react-core": "^6.0.0",
|
|
46
|
-
"@types/react": "^18.3.12",
|
|
47
|
-
"@types/react-dom": "^18.3.1",
|
|
48
|
-
"astro": "^5.1.7",
|
|
49
|
-
"change-case": "5.4.4",
|
|
50
|
-
"glob": "^11.0.1",
|
|
51
|
-
"nanostores": "^0.11.3",
|
|
52
|
-
"react": "^18.3.1",
|
|
53
|
-
"react-dom": "^18.3.1",
|
|
54
|
-
"sass": "^1.81.0",
|
|
55
|
-
"typescript": "^5.6.3"
|
|
56
|
-
},
|
|
57
|
-
"devDependencies": {
|
|
58
|
-
"@babel/plugin-transform-modules-commonjs": "^7.26.3",
|
|
59
|
-
"@babel/preset-react": "^7.26.3",
|
|
60
|
-
"@babel/preset-typescript": "^7.26.0",
|
|
61
|
-
"@eslint/js": "^9.16.0",
|
|
62
|
-
"@semantic-release/git": "^10.0.1",
|
|
63
|
-
"@testing-library/jest-dom": "^6.6.3",
|
|
64
|
-
"@testing-library/react": "^16.1.0",
|
|
65
|
-
"@testing-library/user-event": "^14.5.2",
|
|
66
|
-
"@types/jest": "^29.5.14",
|
|
67
|
-
"@types/node": "^22.9.1",
|
|
68
|
-
"@typescript-eslint/eslint-plugin": "^8.17.0",
|
|
69
|
-
"@typescript-eslint/parser": "^8.17.0",
|
|
70
|
-
"babel-jest": "^29.7.0",
|
|
71
|
-
"commander": "^13.1.0",
|
|
72
|
-
"cz-conventional-changelog": "^3.3.0",
|
|
73
|
-
"eslint": "^9.16.0",
|
|
74
|
-
"eslint-config-prettier": "^9.1.0",
|
|
75
|
-
"eslint-plugin-astro": "^1.3.1",
|
|
76
|
-
"eslint-plugin-markdown": "^5.1.0",
|
|
77
|
-
"eslint-plugin-prettier": "^5.2.1",
|
|
78
|
-
"eslint-plugin-react": "^7.37.2",
|
|
79
|
-
"eslint-plugin-react-compiler": "^19.0.0-beta-df7b47d-20241124",
|
|
80
|
-
"eslint-plugin-react-hooks": "^5.1.0",
|
|
81
|
-
"globals": "^15.12.0",
|
|
82
|
-
"jest": "^29.7.0",
|
|
83
|
-
"jest-environment-jsdom": "^29.7.0",
|
|
84
|
-
"jsdom": "^25.0.1",
|
|
85
|
-
"prettier": "^3.4.2",
|
|
86
|
-
"prettier-plugin-astro": "^0.14.1",
|
|
87
|
-
"semantic-release": "^24.2.3",
|
|
88
|
-
"ts-jest": "^29.2.5",
|
|
89
|
-
"ts-node": "^10.9.2",
|
|
90
|
-
"typescript-eslint": "^8.15.0"
|
|
91
|
-
},
|
|
92
|
-
"config": {
|
|
93
|
-
"commitizen": {
|
|
94
|
-
"path": "./node_modules/cz-conventional-changelog"
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@patternfly/patternfly-doc-core",
|
|
3
|
-
"type": "module",
|
|
4
|
-
"version": "1.0.0",
|
|
5
|
-
"publishConfig": {
|
|
6
|
-
"access": "public"
|
|
7
|
-
},
|
|
8
|
-
"scripts": {
|
|
9
|
-
"dev": "astro dev",
|
|
10
|
-
"start": "astro dev",
|
|
11
|
-
"build": "astro check && astro build",
|
|
12
|
-
"build:cli": "tsc --build ./cli/tsconfig.json",
|
|
13
|
-
"build:cli:watch": "tsc --build --watch ./cli/tsconfig.json",
|
|
14
|
-
"preview": "astro preview",
|
|
15
|
-
"astro": "astro",
|
|
16
|
-
"prettier": "prettier --write ./src",
|
|
17
|
-
"lint": "eslint . --cache --cache-strategy content",
|
|
18
|
-
"test": "jest",
|
|
19
|
-
"test:watch": "jest --watch",
|
|
20
|
-
"semantic-release": "semantic-release"
|
|
21
|
-
},
|
|
22
|
-
"main": "dist/cli/cli.js",
|
|
23
|
-
"bin": "./dist/cli/cli.js",
|
|
24
|
-
"prettier": {
|
|
25
|
-
"plugins": [
|
|
26
|
-
"prettier-plugin-astro"
|
|
27
|
-
],
|
|
28
|
-
"overrides": [
|
|
29
|
-
{
|
|
30
|
-
"files": "*.astro",
|
|
31
|
-
"options": {
|
|
32
|
-
"parser": "astro"
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
],
|
|
36
|
-
"semi": false,
|
|
37
|
-
"singleQuote": true,
|
|
38
|
-
"trailingComma": "all"
|
|
39
|
-
},
|
|
40
|
-
"dependencies": {
|
|
41
|
-
"@astrojs/check": "^0.9.4",
|
|
42
|
-
"@astrojs/react": "^4.1.5",
|
|
43
|
-
"@nanostores/react": "^0.8.0",
|
|
44
|
-
"@patternfly/patternfly": "^6.0.0",
|
|
45
|
-
"@patternfly/react-core": "^6.0.0",
|
|
46
|
-
"@types/react": "^18.3.12",
|
|
47
|
-
"@types/react-dom": "^18.3.1",
|
|
48
|
-
"astro": "^5.1.7",
|
|
49
|
-
"change-case": "5.4.4",
|
|
50
|
-
"glob": "^11.0.1",
|
|
51
|
-
"nanostores": "^0.11.3",
|
|
52
|
-
"react": "^18.3.1",
|
|
53
|
-
"react-dom": "^18.3.1",
|
|
54
|
-
"sass": "^1.81.0",
|
|
55
|
-
"typescript": "^5.6.3"
|
|
56
|
-
},
|
|
57
|
-
"devDependencies": {
|
|
58
|
-
"@babel/plugin-transform-modules-commonjs": "^7.26.3",
|
|
59
|
-
"@babel/preset-react": "^7.26.3",
|
|
60
|
-
"@babel/preset-typescript": "^7.26.0",
|
|
61
|
-
"@eslint/js": "^9.16.0",
|
|
62
|
-
"@semantic-release/git": "^10.0.1",
|
|
63
|
-
"@testing-library/jest-dom": "^6.6.3",
|
|
64
|
-
"@testing-library/react": "^16.1.0",
|
|
65
|
-
"@testing-library/user-event": "^14.5.2",
|
|
66
|
-
"@types/jest": "^29.5.14",
|
|
67
|
-
"@types/node": "^22.9.1",
|
|
68
|
-
"@typescript-eslint/eslint-plugin": "^8.17.0",
|
|
69
|
-
"@typescript-eslint/parser": "^8.17.0",
|
|
70
|
-
"babel-jest": "^29.7.0",
|
|
71
|
-
"commander": "^13.1.0",
|
|
72
|
-
"cz-conventional-changelog": "^3.3.0",
|
|
73
|
-
"eslint": "^9.16.0",
|
|
74
|
-
"eslint-config-prettier": "^9.1.0",
|
|
75
|
-
"eslint-plugin-astro": "^1.3.1",
|
|
76
|
-
"eslint-plugin-markdown": "^5.1.0",
|
|
77
|
-
"eslint-plugin-prettier": "^5.2.1",
|
|
78
|
-
"eslint-plugin-react": "^7.37.2",
|
|
79
|
-
"eslint-plugin-react-compiler": "^19.0.0-beta-df7b47d-20241124",
|
|
80
|
-
"eslint-plugin-react-hooks": "^5.1.0",
|
|
81
|
-
"globals": "^15.12.0",
|
|
82
|
-
"jest": "^29.7.0",
|
|
83
|
-
"jest-environment-jsdom": "^29.7.0",
|
|
84
|
-
"jsdom": "^25.0.1",
|
|
85
|
-
"prettier": "^3.4.2",
|
|
86
|
-
"prettier-plugin-astro": "^0.14.1",
|
|
87
|
-
"semantic-release": "^24.2.3",
|
|
88
|
-
"ts-jest": "^29.2.5",
|
|
89
|
-
"ts-node": "^10.9.2",
|
|
90
|
-
"typescript-eslint": "^8.15.0"
|
|
91
|
-
},
|
|
92
|
-
"config": {
|
|
93
|
-
"commitizen": {
|
|
94
|
-
"path": "./node_modules/cz-conventional-changelog"
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@patternfly/patternfly-doc-core",
|
|
3
|
-
"type": "module",
|
|
4
|
-
"version": "1.0.0",
|
|
5
|
-
"description": "PatternFly Core Documentation",
|
|
6
|
-
"publishConfig": {
|
|
7
|
-
"access": "public"
|
|
8
|
-
},
|
|
9
|
-
"scripts": {
|
|
10
|
-
"dev": "astro dev",
|
|
11
|
-
"start": "astro dev",
|
|
12
|
-
"build": "astro check && astro build",
|
|
13
|
-
"build:cli": "tsc --build ./cli/tsconfig.json",
|
|
14
|
-
"build:cli:watch": "tsc --build --watch ./cli/tsconfig.json",
|
|
15
|
-
"preview": "astro preview",
|
|
16
|
-
"astro": "astro",
|
|
17
|
-
"prettier": "prettier --write ./src",
|
|
18
|
-
"lint": "eslint . --cache --cache-strategy content",
|
|
19
|
-
"test": "jest",
|
|
20
|
-
"test:watch": "jest --watch",
|
|
21
|
-
"semantic-release": "semantic-release"
|
|
22
|
-
},
|
|
23
|
-
"main": "dist/cli/cli.js",
|
|
24
|
-
"bin": "./dist/cli/cli.js",
|
|
25
|
-
"prettier": {
|
|
26
|
-
"plugins": [
|
|
27
|
-
"prettier-plugin-astro"
|
|
28
|
-
],
|
|
29
|
-
"overrides": [
|
|
30
|
-
{
|
|
31
|
-
"files": "*.astro",
|
|
32
|
-
"options": {
|
|
33
|
-
"parser": "astro"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
],
|
|
37
|
-
"semi": false,
|
|
38
|
-
"singleQuote": true,
|
|
39
|
-
"trailingComma": "all"
|
|
40
|
-
},
|
|
41
|
-
"dependencies": {
|
|
42
|
-
"@astrojs/check": "^0.9.4",
|
|
43
|
-
"@astrojs/react": "^4.1.5",
|
|
44
|
-
"@nanostores/react": "^0.8.0",
|
|
45
|
-
"@patternfly/patternfly": "^6.0.0",
|
|
46
|
-
"@patternfly/react-core": "^6.0.0",
|
|
47
|
-
"@types/react": "^18.3.12",
|
|
48
|
-
"@types/react-dom": "^18.3.1",
|
|
49
|
-
"astro": "^5.1.7",
|
|
50
|
-
"change-case": "5.4.4",
|
|
51
|
-
"glob": "^11.0.1",
|
|
52
|
-
"nanostores": "^0.11.3",
|
|
53
|
-
"react": "^18.3.1",
|
|
54
|
-
"react-dom": "^18.3.1",
|
|
55
|
-
"sass": "^1.81.0",
|
|
56
|
-
"typescript": "^5.6.3"
|
|
57
|
-
},
|
|
58
|
-
"devDependencies": {
|
|
59
|
-
"@babel/plugin-transform-modules-commonjs": "^7.26.3",
|
|
60
|
-
"@babel/preset-react": "^7.26.3",
|
|
61
|
-
"@babel/preset-typescript": "^7.26.0",
|
|
62
|
-
"@eslint/js": "^9.16.0",
|
|
63
|
-
"@semantic-release/git": "^10.0.1",
|
|
64
|
-
"@testing-library/jest-dom": "^6.6.3",
|
|
65
|
-
"@testing-library/react": "^16.1.0",
|
|
66
|
-
"@testing-library/user-event": "^14.5.2",
|
|
67
|
-
"@types/jest": "^29.5.14",
|
|
68
|
-
"@types/node": "^22.9.1",
|
|
69
|
-
"@typescript-eslint/eslint-plugin": "^8.17.0",
|
|
70
|
-
"@typescript-eslint/parser": "^8.17.0",
|
|
71
|
-
"babel-jest": "^29.7.0",
|
|
72
|
-
"commander": "^13.1.0",
|
|
73
|
-
"cz-conventional-changelog": "^3.3.0",
|
|
74
|
-
"eslint": "^9.16.0",
|
|
75
|
-
"eslint-config-prettier": "^9.1.0",
|
|
76
|
-
"eslint-plugin-astro": "^1.3.1",
|
|
77
|
-
"eslint-plugin-markdown": "^5.1.0",
|
|
78
|
-
"eslint-plugin-prettier": "^5.2.1",
|
|
79
|
-
"eslint-plugin-react": "^7.37.2",
|
|
80
|
-
"eslint-plugin-react-compiler": "^19.0.0-beta-df7b47d-20241124",
|
|
81
|
-
"eslint-plugin-react-hooks": "^5.1.0",
|
|
82
|
-
"globals": "^15.12.0",
|
|
83
|
-
"jest": "^29.7.0",
|
|
84
|
-
"jest-environment-jsdom": "^29.7.0",
|
|
85
|
-
"jsdom": "^25.0.1",
|
|
86
|
-
"prettier": "^3.4.2",
|
|
87
|
-
"prettier-plugin-astro": "^0.14.1",
|
|
88
|
-
"semantic-release": "^24.2.3",
|
|
89
|
-
"ts-jest": "^29.2.5",
|
|
90
|
-
"ts-node": "^10.9.2",
|
|
91
|
-
"typescript-eslint": "^8.15.0"
|
|
92
|
-
},
|
|
93
|
-
"config": {
|
|
94
|
-
"commitizen": {
|
|
95
|
-
"path": "./node_modules/cz-conventional-changelog"
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as be,e as ee,_ as C,d as f,f as te,P as Se,o as M,p as J,B as Q,u as xe,g as Ee,j as E}from"./PageContext.CGSBAxAd.js";import{r as t}from"./index.IDjx8w0N.js";import{u as ye,i as _e}from"./navStore.br_igkhP.js";/* empty css */import{A as Ie,a as V,d as Le,P as Ne,m as we}from"./divider.DrQDtXS2.js";const ke=(o,e,n)=>{let a;if(be){const{ResizeObserver:s}=window;if(o&&s){const i=new s(r=>{window.requestAnimationFrame(()=>{Array.isArray(r)&&r.length>0})});i.observe(o),a=()=>i.unobserve(o)}else window.addEventListener("resize",e),a=()=>window.removeEventListener("resize",e)}return()=>{a&&a()}},c={button:"pf-v6-c-button",dirRtl:"pf-v6-m-dir-rtl",menu:"pf-v6-c-menu",menuList:"pf-v6-c-menu__list",menuListItem:"pf-v6-c-menu__list-item",modifiers:{overflowHidden:"pf-m-overflow-hidden",inset:"pf-m-inset",fill:"pf-m-fill",drilldown:"pf-m-drilldown",expanded:"pf-m-expanded",hover:"pf-m-hover",current:"pf-m-current",flyout:"pf-m-flyout",horizontal:"pf-m-horizontal",subnav:"pf-m-subnav",scrollable:"pf-m-scrollable"},nav:"pf-v6-c-nav",navItem:"pf-v6-c-nav__item",navLink:"pf-v6-c-nav__link",navLinkIcon:"pf-v6-c-nav__link-icon",navList:"pf-v6-c-nav__list",navNav:"pf-v6-c-nav__nav",navScrollButton:"pf-v6-c-nav__scroll-button",navSection:"pf-v6-c-nav__section",navSectionTitle:"pf-v6-c-nav__section-title",navSubnav:"pf-v6-c-nav__subnav",navToggle:"pf-v6-c-nav__toggle",navToggleIcon:"pf-v6-c-nav__toggle-icon"},Oe={},k=t.createContext(Oe);class O extends t.Component{constructor(){super(...arguments),this.state={isScrollable:!1,ouiaStateId:ee(O.displayName,this.props.variant),flyoutRef:null},this.navRef=t.createRef()}onSelect(e,n,a,s,i,r){i&&e.preventDefault(),this.props.onSelect(e,{groupId:n,itemId:a,to:s}),r&&r(e,a,n,s)}onToggle(e,n,a){this.props.onToggle(e,{groupId:n,isExpanded:a})}render(){const e=this.props,{"aria-label":n,children:a,className:s,onSelect:i,onToggle:r,ouiaId:l,ouiaSafe:d,variant:u}=e,_=C(e,["aria-label","children","className","onSelect","onToggle","ouiaId","ouiaSafe","variant"]),S=["horizontal","horizontal-subnav"].includes(u);return t.createElement(k.Provider,{value:{onSelect:(g,I,v,P,N,T)=>this.onSelect(g,I,v,P,N,T),onToggle:(g,I,v)=>this.onToggle(g,I,v),updateIsScrollable:g=>this.setState({isScrollable:g}),isHorizontal:["horizontal","horizontal-subnav"].includes(u),flyoutRef:this.state.flyoutRef,setFlyoutRef:g=>this.setState({flyoutRef:g}),navRef:this.navRef}},t.createElement("nav",Object.assign({className:f(c.nav,S&&c.modifiers.horizontal,u==="horizontal-subnav"&&c.modifiers.subnav,this.state.isScrollable&&c.modifiers.scrollable,s),"aria-label":n||(u==="horizontal-subnav"?"Local":"Global"),ref:this.navRef},te(O.displayName,l!==void 0?l:this.state.ouiaStateId,d),_),a))}}O.displayName="Nav";O.defaultProps={onSelect:()=>{},onToggle:()=>{},ouiaSafe:!0};const y={dirRtl:"pf-v6-m-dir-rtl",masthead:"pf-v6-c-masthead",modifiers:{expanded:"pf-m-expanded",collapsed:"pf-m-collapsed",pageInsets:"pf-m-page-insets",contextSelector:"pf-m-context-selector",insetNone:"pf-m-inset-none",fill:"pf-m-fill",noFill:"pf-m-no-fill",limitWidth:"pf-m-limit-width",alignCenter:"pf-m-align-center",overflowScroll:"pf-m-overflow-scroll",shadowBottom:"pf-m-shadow-bottom",shadowTop:"pf-m-shadow-top",stickyTop:"pf-m-sticky-top",stickyBottom:"pf-m-sticky-bottom",stickyTopOnSmHeight:"pf-m-sticky-top-on-sm-height",stickyBottomOnSmHeight:"pf-m-sticky-bottom-on-sm-height",stickyTopOnMdHeight:"pf-m-sticky-top-on-md-height",stickyBottomOnMdHeight:"pf-m-sticky-bottom-on-md-height",stickyTopOnLgHeight:"pf-m-sticky-top-on-lg-height",stickyBottomOnLgHeight:"pf-m-sticky-bottom-on-lg-height",stickyTopOnXlHeight:"pf-m-sticky-top-on-xl-height",stickyBottomOnXlHeight:"pf-m-sticky-bottom-on-xl-height",stickyTopOn_2xlHeight:"pf-m-sticky-top-on-2xl-height",stickyBottomOn_2xlHeight:"pf-m-sticky-bottom-on-2xl-height",secondary:"pf-m-secondary",padding:"pf-m-padding",noPadding:"pf-m-no-padding",paddingOnSm:"pf-m-padding-on-sm",noPaddingOnSm:"pf-m-no-padding-on-sm",paddingOnMd:"pf-m-padding-on-md",noPaddingOnMd:"pf-m-no-padding-on-md",paddingOnLg:"pf-m-padding-on-lg",noPaddingOnLg:"pf-m-no-padding-on-lg",paddingOnXl:"pf-m-padding-on-xl",noPaddingOnXl:"pf-m-no-padding-on-xl",paddingOn_2xl:"pf-m-padding-on-2xl",noPaddingOn_2xl:"pf-m-no-padding-on-2xl"},page:"pf-v6-c-page",pageDrawer:"pf-v6-c-page__drawer",pageMain:"pf-v6-c-page__main",pageMainBody:"pf-v6-c-page__main-body",pageMainBreadcrumb:"pf-v6-c-page__main-breadcrumb",pageMainContainer:"pf-v6-c-page__main-container",pageMainDrawer:"pf-v6-c-page__main-drawer",pageMainGroup:"pf-v6-c-page__main-group",pageMainSection:"pf-v6-c-page__main-section",pageMainSubnav:"pf-v6-c-page__main-subnav",pageMainTabs:"pf-v6-c-page__main-tabs",pageMainWizard:"pf-v6-c-page__main-wizard",pageSidebar:"pf-v6-c-page__sidebar",pageSidebarBody:"pf-v6-c-page__sidebar-body",pageSidebarHeader:"pf-v6-c-page__sidebar-header",pageSidebarTitle:"pf-v6-c-page__sidebar-title"},Ae={isSidebarOpen:!0},j=t.createContext(Ae),ne=o=>{var{className:e="",children:n,isSidebarOpen:a=!0,id:s="page-sidebar"}=o,i=C(o,["className","children","isSidebarOpen","id"]);return t.createElement(Se,null,({isManagedSidebar:r,isSidebarOpen:l})=>{const d=r?l:a;return t.createElement("div",Object.assign({id:s,className:f(y.pageSidebar,d&&y.modifiers.expanded,!d&&y.modifiers.collapsed,e),"aria-hidden":!d},i),t.createElement(j.Provider,{value:{isSidebarOpen:d}},n))})};ne.displayName="PageSidebar";class z extends t.Component{constructor(){super(...arguments),this.direction="ltr",this.state={scrollViewAtStart:!1,scrollViewAtEnd:!1},this.navList=t.createRef(),this.observer=()=>{},this.handleScrollButtons=()=>{const e=this.navList.current;if(e){const n=M(e,e.firstChild),a=M(e,e.lastChild);this.setState({scrollViewAtStart:n,scrollViewAtEnd:a}),this.context.updateIsScrollable(!n||!a)}},this.scrollBack=()=>{const e=this.navList.current;if(e){const n=Array.from(e.children);let a,s;for(let i=0;i<n.length&&!a;i++)M(e,n[i])&&(a=n[i],s=n[i-1]);s&&(this.direction==="ltr"?e.scrollLeft-=s.scrollWidth:e.scrollLeft+=s.scrollWidth),this.handleScrollButtons()}},this.scrollForward=()=>{const e=this.navList.current;if(e){const n=Array.from(e.children);let a,s;for(let i=n.length-1;i>=0&&!a;i--)M(e,n[i])&&(a=n[i],s=n[i+1]);s&&(this.direction==="ltr"?e.scrollLeft+=s.scrollWidth:e.scrollLeft-=s.scrollWidth),this.handleScrollButtons()}}}componentDidMount(){this.observer=ke(this.navList.current,this.handleScrollButtons),this.direction=J(this.navList.current),this.handleScrollButtons()}componentWillUnmount(){this.observer()}componentDidUpdate(){this.direction=J(this.navList.current)}render(){const e=this.props,{children:n,className:a,backScrollAriaLabel:s,forwardScrollAriaLabel:i}=e,r=C(e,["children","className","backScrollAriaLabel","forwardScrollAriaLabel"]),{scrollViewAtStart:l,scrollViewAtEnd:d}=this.state;return t.createElement(k.Consumer,null,({isHorizontal:u})=>t.createElement(j.Consumer,null,({isSidebarOpen:_})=>t.createElement(t.Fragment,null,u&&(!l||!d)&&t.createElement("div",{className:f(c.navScrollButton)},t.createElement(Q,{variant:"plain","aria-label":s,onClick:this.scrollBack,isDisabled:l,tabIndex:_?null:-1,icon:t.createElement(Ie,null)})),t.createElement("ul",Object.assign({ref:this.navList,className:f(c.navList,a),onScroll:this.handleScrollButtons,role:"list"},r),n),u&&(!l||!d)&&t.createElement("div",{className:f(c.navScrollButton)},t.createElement(Q,{variant:"plain","aria-label":i,onClick:this.scrollForward,isDisabled:d,tabIndex:_?null:-1,icon:t.createElement(V,null)})))))}}z.displayName="NavList";z.contextType=k;z.defaultProps={backScrollAriaLabel:"Scroll back",forwardScrollAriaLabel:"Scroll foward"};const $=o=>{var{children:e,styleChildren:n=!0,className:a,to:s,isActive:i=!1,groupId:r=null,itemId:l=null,preventDefault:d=!1,onClick:u,component:_="a",flyout:S,onShowFlyout:g,ouiaId:I,ouiaSafe:v,zIndex:P=9999,icon:N}=o,T=C(o,["children","styleChildren","className","to","isActive","groupId","itemId","preventDefault","onClick","component","flyout","onShowFlyout","ouiaId","ouiaSafe","zIndex","icon"]);const{flyoutRef:R,setFlyoutRef:B,navRef:U}=t.useContext(k),{isSidebarOpen:ie}=t.useContext(j),[H,oe]=t.useState(null),[le,W]=t.useState(!1),L=t.useRef(),b=L===R,w=t.useRef(),h=S!==void 0,re=h?"button":_;s&&h&&console.error('NavItem cannot have both "to" and "flyout" props.');const D=(p,m)=>{(!b||m)&&p?B(L):(b||m)&&!p&&B(null),g&&p&&g()},ce=p=>{const m=p.target.closest(`.${c.navItem}.pf-m-flyout`);h&&!b?D(!0):R!==null&&!m&&B(null)},X=p=>{p.target.closest(".pf-m-flyout")||(h?D(!1,!0):R!==null&&B(null))},de=p=>{var m,x;const F=p.key,K=p.target;(F===" "||F==="Enter"||F==="ArrowRight")&&h&&(!((m=L?.current)===null||m===void 0)&&m.contains(K))&&(p.stopPropagation(),p.preventDefault(),b||(D(!0),oe(K))),(F==="Escape"||F==="ArrowLeft")&&((x=w?.current)===null||x===void 0?void 0:x.querySelectorAll(`.${we.menu}`).length)===1&&b&&(p.stopPropagation(),p.preventDefault(),D(!1))};t.useEffect(()=>(h&&window.addEventListener("click",X),()=>{h&&window.removeEventListener("click",X)}),[]),t.useEffect(()=>{H&&(b?Array.from(w.current.getElementsByTagName("UL")[0].children).filter(m=>!(m.classList.contains("pf-m-disabled")||m.classList.contains(Le.divider)))[0].firstChild.focus():H.focus())},[b,H]);const q=t.createElement("span",{className:f(c.navToggle)},t.createElement("span",{className:f(c.navToggleIcon)},t.createElement(V,{"aria-hidden":!0}))),pe={"aria-haspopup":"menu","aria-expanded":b},G=ie?null:-1,me=p=>{const m=d||!s;return t.createElement(re,Object.assign({href:s,onClick:x=>p.onSelect(x,r,l,s,m,u),className:f(c.navLink,i&&c.modifiers.current,le&&c.modifiers.hover,a),"aria-current":i?"page":null,tabIndex:G},h&&Object.assign({},pe),T),N&&t.createElement("span",{className:f(c.navLinkIcon)},N),t.createElement("span",{className:f(`${c.nav}__link-text`)},e),S&&q)},fe=(p,m)=>t.cloneElement(m,Object.assign(Object.assign({onClick:x=>p.onSelect(x,r,l,s,d,u),"aria-current":i?"page":null},n&&{className:f(c.navLink,i&&c.modifiers.current,m.props&&m.props.className)}),{tabIndex:m.props.tabIndex||G,children:h?t.createElement(t.Fragment,null,m.props.children,q):m.props.children})),ue=xe($.displayName,I,v),ge=()=>{W(!0)},he=()=>{W(!1)},ve=t.createElement(Ne,{triggerRef:L,popper:t.createElement("div",{ref:w,onMouseEnter:ge,onMouseLeave:he},S),popperRef:w,placement:"right-start",isVisible:b,onDocumentKeyDown:de,zIndex:P,appendTo:U?.current});return t.createElement(t.Fragment,null,t.createElement("li",Object.assign({onMouseOver:ce,className:f(c.navItem,h&&c.modifiers.flyout,a),ref:L},ue),t.createElement(k.Consumer,null,p=>t.isValidElement(e)?fe(p,e):me(p))),S&&ve)};$.displayName="NavItem";class A extends t.Component{constructor(){super(...arguments),this.id=this.props.id||Ee(),this.state={expandedState:this.props.isExpanded,ouiaStateId:ee(A.displayName)},this.onExpand=(e,n)=>{const{expandedState:a}=this.state;if(this.props.onExpand)this.props.onExpand(e,!a);else{this.setState(i=>({expandedState:!i.expandedState}));const{groupId:s}=this.props;n(e,s,!a)}}}componentDidMount(){this.setState({expandedState:this.props.isExpanded})}componentDidUpdate(e){this.props.isExpanded!==e.isExpanded&&this.setState({expandedState:this.props.isExpanded})}render(){const e=this.props,{title:n,srText:a,children:s,className:i,isActive:r,ouiaId:l,groupId:d,id:u,isExpanded:_,buttonProps:S,onExpand:g}=e,I=C(e,["title","srText","children","className","isActive","ouiaId","groupId","id","isExpanded","buttonProps","onExpand"]),{expandedState:v,ouiaStateId:P}=this.state;return t.createElement(k.Consumer,null,N=>t.createElement("li",Object.assign({className:f(c.navItem,v&&c.modifiers.expanded,r&&c.modifiers.current,i)},te(A.displayName,l!==void 0?l:P),I),t.createElement(j.Consumer,null,({isSidebarOpen:T})=>t.createElement("button",Object.assign({className:f(c.navLink),id:a?null:this.id,onClick:R=>this.onExpand(R,N.onToggle),"aria-expanded":v,tabIndex:T?null:-1},S),typeof n!="string"?t.createElement("span",{className:f(`${c.nav}__link-text`)},n):n,t.createElement("span",{className:f(c.navToggle)},t.createElement("span",{className:f(c.navToggleIcon)},t.createElement(V,{"aria-hidden":"true"}))))),t.createElement("section",{className:f(c.navSubnav),"aria-labelledby":this.id,hidden:v?null:!0},a&&t.createElement("h2",{className:"pf-v6-screen-reader",id:this.id},a),t.createElement("ul",{className:f(c.navList),role:"list"},s))))}}A.displayName="NavExpandable";A.defaultProps={srText:"",isExpanded:!1,children:"",className:"",groupId:null,isActive:!1,id:""};const ae=o=>{var{children:e,className:n,usePageInsets:a,isFilled:s,isContextSelector:i}=o,r=C(o,["children","className","usePageInsets","isFilled","isContextSelector"]);return t.createElement("div",Object.assign({className:f(y.pageSidebarBody,a&&y.modifiers.pageInsets,s===!1&&y.modifiers.noFill,s===!0&&y.modifiers.fill,i===!0&&y.modifiers.contextSelector,n)},r),e)};ae.displayName="PageSidebarBody";const Ce=/([\p{Ll}\d])(\p{Lu})/gu,Pe=/(\p{Lu})([\p{Lu}][\p{Ll}])/gu,Te=/(\d)\p{Ll}|(\p{L})\d/u,Re=/[^\p{L}\d]+/giu,Y="$1\0$2",Z="";function se(o){let e=o.trim();e=e.replace(Ce,Y).replace(Pe,Y),e=e.replace(Re,"\0");let n=0,a=e.length;for(;e.charAt(n)==="\0";)n++;if(n===a)return[];for(;e.charAt(a-1)==="\0";)a--;return e.slice(n,a).split(/\0/g)}function Fe(o){const e=se(o);for(let n=0;n<e.length;n++){const a=e[n],s=Te.exec(a);if(s){const i=s.index+(s[1]??s[2]).length;e.splice(n,1,a.slice(0,i),a.slice(i))}}return e}function Be(o,e){const[n,a,s]=ze(o,e),i=De(e?.locale),r=Me(e?.locale),l=je(i,r);return n+a.map((d,u)=>u===0?l(d):i(d)).join(" ")+s}function De(o){return e=>e.toLocaleLowerCase(o)}function Me(o){return e=>e.toLocaleUpperCase(o)}function je(o,e){return n=>`${e(n[0])}${o(n.slice(1))}`}function ze(o,e={}){const n=e.split??(e.separateNumbers?Fe:se),a=e.prefixCharacters??Z,s=e.suffixCharacters??Z;let i=0,r=o.length;for(;i<o.length;){const l=o.charAt(i);if(!a.includes(l))break;i++}for(;r>i;){const l=r-1,d=o.charAt(l);if(!s.includes(d))break;r=l}return[o.slice(0,i),n(o.slice(i,r)),o.slice(r)]}const Ue=({entry:o,isActive:e})=>{const{id:n}=o,{id:a,section:s}=o.data;return E.jsx($,{itemId:n,to:`/${s}/${n}`,isActive:e,id:`nav-entry-${n}`,children:a})},He=({entries:o,sectionId:e,activeItem:n})=>{const a=window.location.pathname.includes(e),s=o.sort((l,d)=>l.data.id.localeCompare(d.data.id)),i=s.some(l=>l.id===n),r=s.map(l=>E.jsx(Ue,{entry:l,isActive:n===l.id},l.id));return E.jsx(A,{title:Be(e),isActive:i,isExpanded:a,id:`nav-section-${e}`,children:r})},Ke=({navEntries:o})=>{const e=ye(_e),[n,a]=t.useState("");t.useEffect(()=>{a(window.location.pathname.split("/").reverse()[0])},[]);const s=(l,d)=>{a(d.itemId.toString())},i=new Set(o.map(l=>l.data.section)),r=Array.from(i).map(l=>{const d=o.filter(u=>u.data.section===l);return E.jsx(He,{entries:d,sectionId:l,activeItem:n},l)});return E.jsx(ne,{isSidebarOpen:e,children:E.jsx(ae,{children:E.jsx(O,{onSelect:s,children:E.jsx(z,{children:r})})})})};export{Ke as Navigation};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{a as fe,r as c,b as me}from"./index.IDjx8w0N.js";/* empty css */var B={exports:{}},h={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var z;function be(){if(z)return h;z=1;var e=fe(),n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,t={key:!0,ref:!0,__self:!0,__source:!0};function i(s,o,d){var u,f={},_=null,m=null;d!==void 0&&(_=""+d),o.key!==void 0&&(_=""+o.key),o.ref!==void 0&&(m=o.ref);for(u in o)a.call(o,u)&&!t.hasOwnProperty(u)&&(f[u]=o[u]);if(s&&s.defaultProps)for(u in o=s.defaultProps,o)f[u]===void 0&&(f[u]=o[u]);return{$$typeof:n,type:s,key:_,ref:m,props:f,_owner:l.current}}return h.Fragment=r,h.jsx=i,h.jsxs=i,h}var K;function ge(){return K||(K=1,B.exports=be()),B.exports}var qe=ge();function R(e,n){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&n.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,a=Object.getOwnPropertySymbols(e);l<a.length;l++)n.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(e,a[l])&&(r[a[l]]=e[a[l]]);return r}function v(...e){const n=[],r={}.hasOwnProperty;return e.filter(Boolean).forEach(a=>{const l=typeof a;if(l==="string"||l==="number")n.push(a);else if(Array.isArray(a)&&a.length){const t=v(...a);t&&n.push(t)}else if(l==="object")for(const t in a)r.call(a,t)&&a[t]&&n.push(t)}),n.join(" ")}const ve={name:"--pf-t--global--breakpoint--sm",value:"36rem",var:"var(--pf-t--global--breakpoint--sm)"},_e={name:"--pf-t--global--breakpoint--md",value:"48rem",var:"var(--pf-t--global--breakpoint--md)"},xe={name:"--pf-t--global--breakpoint--lg",value:"62rem",var:"var(--pf-t--global--breakpoint--lg)"},he={name:"--pf-t--global--breakpoint--xl",value:"75rem",var:"var(--pf-t--global--breakpoint--xl)"},ye={name:"--pf-t--global--breakpoint--2xl",value:"90.625rem",var:"var(--pf-t--global--breakpoint--2xl)"},ke={name:"--pf-t--global--breakpoint--height--sm",value:"0rem",var:"var(--pf-t--global--breakpoint--height--sm)"},Ie={name:"--pf-t--global--breakpoint--height--md",value:"40rem",var:"var(--pf-t--global--breakpoint--height--md)"},we={name:"--pf-t--global--breakpoint--height--lg",value:"48rem",var:"var(--pf-t--global--breakpoint--height--lg)"},Ee={name:"--pf-t--global--breakpoint--height--xl",value:"60rem",var:"var(--pf-t--global--breakpoint--height--xl)"},Oe={name:"--pf-t--global--breakpoint--height--2xl",value:"80rem",var:"var(--pf-t--global--breakpoint--height--2xl)"};let Re=0;function Fe({name:e,xOffset:n=0,yOffset:r=0,width:a,height:l,svgPath:t}){var i;return i=class extends c.Component{constructor(){super(...arguments),this.id=`icon-title-${Re++}`}render(){const o=this.props,{title:d,className:u}=o,f=R(o,["title","className"]),_=u?`pf-v6-svg ${u}`:"pf-v6-svg",m=!!d,$=[n,r,a,l].join(" ");return c.createElement("svg",Object.assign({className:_,viewBox:$,fill:"currentColor","aria-labelledby":m?this.id:null,"aria-hidden":m?null:!0,role:"img",width:"1em",height:"1em"},f),m&&c.createElement("title",{id:this.id},d),c.createElement("path",{d:t}))}},i.displayName=e,i}var G;(function(e){e.success="success",e.error="error",e.warning="warning",e.default="default"})(G||(G={}));const Je={Tab:"Tab",Space:" ",Escape:"Escape",Enter:"Enter",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight"},y={sm:parseInt(ve.value)*16,md:parseInt(_e.value)*16,lg:parseInt(xe.value)*16,xl:parseInt(he.value)*16,"2xl":parseInt(ye.value)*16},k={sm:parseInt(ke.value)*16,md:parseInt(Ie.value)*16,lg:parseInt(we.value)*16,xl:parseInt(Ee.value)*16,"2xl":parseInt(Oe.value)*16};var ze=me();function Ke(e="pf"){const n=new Date().getTime()+Math.random().toString(36).slice(2);return`${e}-${n}`}function Ge(e,n,r,a=!1){if(!e||!n)return!1;const l=e.getBoundingClientRect(),t=n.getBoundingClientRect(),i=Math.ceil(l.left),s=Math.floor(l.right),o=Math.ceil(t.left),d=Math.floor(t.right),u=o>=i&&d<=s,f=!a&&l.width<t.width&&(o<i&&d>i||d>s&&o<s);return u||f}const We=(e,n,r="",a,l)=>{if(!e)return"";if(a&&!l){if(a in e)return n.modifiers[D(`${r}${e[a]}`)];const t=["2xl","xl","lg","md","sm","default"],i=t.indexOf(a);for(let s=i;s<t.length;s++)if(t[s]in e)return n.modifiers[D(`${r}${e[t[s]]}`)];return""}return Object.entries(e||{}).map(([t,i])=>`${r}${i}${t!=="default"?`-on-${t}`:""}`).map(D).map(t=>t.replace(/-?(\dxl)/gi,(i,s)=>`_${s}`)).map(t=>n.modifiers[t]).filter(Boolean).join(" ")},$e=e=>e===null?null:e>=k["2xl"]?"2xl":e>=k.xl?"xl":e>=k.lg?"lg":e>=k.md?"md":e>=k.sm?"sm":"default",Pe=e=>e===null?null:e>=y["2xl"]?"2xl":e>=y.xl?"xl":e>=y.lg?"lg":e>=y.md?"md":e>=y.sm?"sm":"default",Ne=e=>e.toUpperCase().replace("-","").replace("_",""),D=e=>e.replace(/([-_][a-z])/gi,Ne),He=!!(typeof window<"u"&&window.document&&window.document.createElement),Ye=e=>{e.forEach(n=>{n.current&&clearTimeout(n.current)})},Qe=(e,n="ltr")=>{if(!e)return n;const r=getComputedStyle(e).getPropertyValue("direction");return["ltr","rtl"].includes(r)?r:n};let Ae=0;const W="OUIA-Generated-",j={};function Ve(e,n,r=!0){return{"data-ouia-component-type":`PF6/${e}`,"data-ouia-safe":r,"data-ouia-component-id":n}}const Be=(e,n,r=!0,a)=>({"data-ouia-component-type":`PF6/${e}`,"data-ouia-safe":r,"data-ouia-component-id":De(e,n,a)}),De=(e,n,r)=>{const a=c.useMemo(()=>je(e,r),[e,r]);return n??a};function je(e,n){try{let r;return typeof window<"u"?r=`${window.location.href}-${e}-${n||""}`:r=`${e}-${n||""}`,j[r]||(j[r]=0),`${W}${e}-${n?`${n}-`:""}${++j[r]}`}catch{return`${W}${e}-${n?`${n}-`:""}${++Ae}`}}const p={badge:"pf-v6-c-badge",button:"pf-v6-c-button",buttonCount:"pf-v6-c-button__count",buttonIcon:"pf-v6-c-button__icon",buttonProgress:"pf-v6-c-button__progress",modifiers:{primary:"pf-m-primary",unread:"pf-m-unread",secondary:"pf-m-secondary",danger:"pf-m-danger",tertiary:"pf-m-tertiary",link:"pf-m-link",inline:"pf-m-inline",displayLg:"pf-m-display-lg",warning:"pf-m-warning",control:"pf-m-control",stateful:"pf-m-stateful",read:"pf-m-read",attention:"pf-m-attention",plain:"pf-m-plain",noPadding:"pf-m-no-padding",block:"pf-m-block",small:"pf-m-small",clicked:"pf-m-clicked",disabled:"pf-m-disabled",ariaDisabled:"pf-m-aria-disabled",progress:"pf-m-progress",inProgress:"pf-m-in-progress",start:"pf-m-start",end:"pf-m-end"},spinner:"pf-v6-c-spinner"},E={modifiers:{inline:"pf-m-inline",sm:"pf-m-sm",md:"pf-m-md",lg:"pf-m-lg",xl:"pf-m-xl"},spinner:"pf-v6-c-spinner",spinnerPath:"pf-v6-c-spinner__path"},Ce={name:"--pf-v6-c-spinner--diameter",value:"3.5rem",var:"var(--pf-v6-c-spinner--diameter)"};var C;(function(e){e.sm="sm",e.md="md",e.lg="lg",e.xl="xl"})(C||(C={}));const H=e=>{var{className:n="",size:r="xl","aria-valuetext":a="Loading...",diameter:l,isInline:t=!1,"aria-label":i,"aria-labelledBy":s}=e,o=R(e,["className","size","aria-valuetext","diameter","isInline","aria-label","aria-labelledBy"]);return c.createElement("svg",Object.assign({className:v(E.spinner,t?E.modifiers.inline:E.modifiers[r],n),role:"progressbar","aria-valuetext":a,viewBox:"0 0 100 100"},l&&{style:{[Ce.name]:l}},i&&{"aria-label":i},s&&{"aria-labelledBy":s},!i&&!s&&{"aria-label":"Contents"},o),c.createElement("circle",{className:E.spinnerPath,cx:"50",cy:"50",r:"45",fill:"none"}))};H.displayName="Spinner";const O={badge:"pf-v6-c-badge",badgeToggleIcon:"pf-v6-c-badge__toggle-icon",modifiers:{read:"pf-m-read",unread:"pf-m-unread",disabled:"pf-m-disabled"}},Y=e=>{var{isRead:n=!1,isDisabled:r=!1,className:a="",children:l="",screenReaderText:t}=e,i=R(e,["isRead","isDisabled","className","children","screenReaderText"]);return c.createElement("span",Object.assign({},i,{className:v(O.badge,n?O.modifiers.read:O.modifiers.unread,r&&O.modifiers.disabled,a)}),l,t&&c.createElement("span",{className:"pf-v6-screen-reader"},t))};Y.displayName="Badge";var b;(function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary",e.danger="danger",e.warning="warning",e.link="link",e.plain="plain",e.control="control",e.stateful="stateful"})(b||(b={}));var L;(function(e){e.button="button",e.submit="submit",e.reset="reset"})(L||(L={}));var I;(function(e){e.default="default",e.sm="sm",e.lg="lg"})(I||(I={}));var S;(function(e){e.read="read",e.unread="unread",e.attention="attention"})(S||(S={}));const Le=e=>{var{children:n=null,className:r="",component:a="button",isClicked:l=!1,isBlock:t=!1,isDisabled:i=!1,isAriaDisabled:s=!1,isLoading:o=null,isDanger:d=!1,spinnerAriaValueText:u,spinnerAriaLabelledBy:f,spinnerAriaLabel:_,size:m=I.default,inoperableEvents:$=["onClick","onKeyPress"],isInline:P=!1,type:X=L.button,variant:g=b.primary,state:Z=S.unread,hasNoPadding:ee=!1,iconPosition:T="start","aria-label":ne=null,icon:U=null,role:ae,ouiaId:re,ouiaSafe:te=!0,tabIndex:q=null,innerRef:le,countOptions:w}=e,ie=R(e,["children","className","component","isClicked","isBlock","isDisabled","isAriaDisabled","isLoading","isDanger","spinnerAriaValueText","spinnerAriaLabelledBy","spinnerAriaLabel","size","inoperableEvents","isInline","type","variant","state","hasNoPadding","iconPosition","aria-label","icon","role","ouiaId","ouiaSafe","tabIndex","innerRef","countOptions"]);const se=Be(Q.displayName,re,te,g),N=a,x=N==="button",A=P&&N==="span",M=T==="end"||T==="right",oe=$.reduce((pe,ue)=>Object.assign(Object.assign({},pe),{[ue]:de=>{de.preventDefault()}}),{}),ce=()=>{if(i)return x?null:-1;if(s)return null;if(A)return 0},F=U&&c.createElement("span",{className:v(p.buttonIcon,n&&p.modifiers[M?"end":"start"])},U),J=n&&c.createElement("span",{className:v("pf-v6-c-button__text")},n);return c.createElement(N,Object.assign({},ie,s?oe:null,{"aria-disabled":s||!x&&i,"aria-label":ne,className:v(p.button,p.modifiers[g],t&&p.modifiers.block,i&&!x&&p.modifiers.disabled,s&&p.modifiers.ariaDisabled,l&&p.modifiers.clicked,P&&g===b.link&&p.modifiers.inline,d&&(g===b.secondary||g===b.link)&&p.modifiers.danger,o!==null&&g!==b.plain&&p.modifiers.progress,o&&p.modifiers.inProgress,ee&&g===b.plain&&p.modifiers.noPadding,g===b.stateful&&p.modifiers[Z],m===I.sm&&p.modifiers.small,m===I.lg&&p.modifiers.displayLg,r),disabled:x?i:null,tabIndex:q!==null?q:ce(),type:x||A?X:null,role:A?"button":ae,ref:le},se),o&&c.createElement("span",{className:v(p.buttonProgress)},c.createElement(H,{size:C.md,isInline:P,"aria-valuetext":u,"aria-label":_,"aria-labelledby":f})),M?c.createElement(c.Fragment,null,J,F):c.createElement(c.Fragment,null,F,J),w&&c.createElement("span",{className:v(p.buttonCount,w.className)},c.createElement(Y,{isRead:w.isRead,isDisabled:i},w.count)))},Q=c.forwardRef((e,n)=>c.createElement(Le,Object.assign({innerRef:n},e)));Q.displayName="Button";const Se={isManagedSidebar:!1,isSidebarOpen:!1,onSidebarToggle:()=>null,width:null,height:null,getBreakpoint:Pe,getVerticalBreakpoint:$e},V=c.createContext(Se);V.Provider;const Xe=V.Consumer;export{Q as B,Je as K,Xe as P,R as _,b as a,He as b,Fe as c,v as d,je as e,Ve as f,Ke as g,We as h,xe as i,qe as j,he as k,ye as l,V as m,D as n,Ge as o,Qe as p,Ye as q,ze as r,_e as t,Be as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as $,g as Xn,b as q,_ as T,d as p,K as ln,e as Se,f as Ee,B as de,h as K,u as dn,t as jn,i as An,k as Bn,l as Hn,m as ye,n as fn,j as b,a as Ae}from"./PageContext.CGSBAxAd.js";import{r as e,R as z}from"./index.IDjx8w0N.js";import{P as gn,m as O,u as Pn,A as zn,a as Wn,d as Be}from"./divider.DrQDtXS2.js";/* empty css */const Un={name:"CheckCircleIcon",height:512,width:512,svgPath:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z",yOffset:0,xOffset:0},Kn=$(Un),Vn={name:"ExclamationCircleIcon",height:512,width:512,svgPath:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z",yOffset:0,xOffset:0},$n=$(Vn),qn={name:"ExclamationTriangleIcon",height:512,width:576,svgPath:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z",yOffset:0,xOffset:0},Zn=$(qn),Qn={name:"BellIcon",height:1024,width:896,svgPath:"M448,0 C465.333333,0 480.333333,6.33333333 493,19 C505.666667,31.6666667 512,46.6666667 512,64 L512,106 L514.23,106.45 C587.89,121.39 648.48,157.24 696,214 C744,271.333333 768,338.666667 768,416 C768,500 780,568.666667 804,622 C818.666667,652.666667 841.333333,684 872,716 C873.773676,718.829136 875.780658,721.505113 878,724 C890,737.333333 896,752.333333 896,769 C896,785.666667 890,800.333333 878,813 C866,825.666667 850.666667,832 832,832 L63.3,832 C44.9533333,831.84 29.8533333,825.506667 18,813 C6,800.333333 0,785.666667 0,769 C0,752.333333 6,737.333333 18,724 L24,716 L25.06,714.9 C55.1933333,683.28 77.5066667,652.313333 92,622 C116,568.666667 128,500 128,416 C128,338.666667 152,271.333333 200,214 C248,156.666667 309.333333,120.666667 384,106 L384,63.31 C384.166667,46.27 390.5,31.5 403,19 C415.666667,6.33333333 430.666667,0 448,0 Z M576,896 L576,897.08 C575.74,932.6 563.073333,962.573333 538,987 C512.666667,1011.66667 482.666667,1024 448,1024 C413.333333,1024 383.333333,1011.66667 358,987 C332.666667,962.333333 320,932 320,896 L576,896 Z",yOffset:0,xOffset:0},Jn=$(Qn);let Yn=0;function et(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():Xn()}class _e extends e.Component{constructor(){super(...arguments),this.uniqueElement=this.props.isRandom?et():Yn++,this.id=`${this.props.prefix}${this.uniqueElement}`}render(){return this.props.children(this.id)}}_e.displayName="GenerateId";_e.defaultProps={prefix:"pf-random-id-",isRandom:!1};const nt="*",tt=(n,t,l=u=>document.activeElement.contains(u),a=u=>u,i=["A","BUTTON","INPUT"],o=!1,f=!1,g=!0,w=!0)=>{const u=document.activeElement,d=n.key;let c=null;if(!o&&["ArrowUp","ArrowDown"].includes(d)){n.preventDefault(),n.stopImmediatePropagation();let s=-1;t.forEach((v,x)=>{if(l(v)){let m=0;for(;!c&&m<t.length&&m*-1<t.length;)d==="ArrowUp"?m--:m++,s=x+m,s>=t.length&&(s=0),s<0&&(s=t.length-1),c=a(t[s])}})}if(!f&&["ArrowLeft","ArrowRight"].includes(d)){n.preventDefault(),n.stopImmediatePropagation();let s=-1;t.forEach((v,x)=>{if(l(v)){const m=t[x].querySelectorAll(i.join(","));if(!m.length||w){let r=u;for(;r;){const I=r.parentElement===v?r:r.parentElement;if(r=d==="ArrowLeft"?I.previousElementSibling:I.nextElementSibling,r){if(i.includes(r.tagName)){c=r;break}if(i.includes(r.children[0].tagName)){c=r.children[0];break}}}}else m.forEach((r,S)=>{n.target===r&&(s=S+(d==="ArrowLeft"?-1:1),s>=m.length&&(s=0),s<0&&(s=m.length-1),c=m[s])})}})}c&&(g&&(u.tabIndex=-1,c.tabIndex=0),c.focus())};class Ve extends e.Component{constructor(){super(...arguments),this.keyHandler=t=>{const{isEventFromContainer:l}=this.props;if(l?!l(t):!this._isEventFromContainer(t))return;const{isActiveElement:a,getFocusableElement:i,noVerticalArrowHandling:o,noHorizontalArrowHandling:f,noEnterHandling:g,noSpaceHandling:w,updateTabIndex:u,validSiblingTags:d,additionalKeyHandler:c,createNavigableElements:s,onlyTraverseSiblings:v}=this.props;c&&c(t);const x=s();if(!x){console.warn("No navigable elements have been passed to the KeyboardHandler. Keyboard navigation provided by this component will be ignored.");return}const m=t.key;g||m==="Enter"&&(t.preventDefault(),t.stopImmediatePropagation(),document.activeElement.click()),w||m===" "&&(t.preventDefault(),t.stopImmediatePropagation(),document.activeElement.click()),tt(t,x,a,i,d,o,f,u,v)},this._isEventFromContainer=t=>{const{containerRef:l}=this.props;return l.current&&l.current.contains(t.target)}}componentDidMount(){q&&window.addEventListener("keydown",this.keyHandler)}componentWillUnmount(){q&&window.removeEventListener("keydown",this.keyHandler)}render(){return null}}Ve.displayName="KeyboardHandler";Ve.defaultProps={containerRef:null,createNavigableElements:()=>null,isActiveElement:n=>document.activeElement===n,getFocusableElement:n=>n,validSiblingTags:["BUTTON","A"],onlyTraverseSiblings:!0,updateTabIndex:!0,noHorizontalArrowHandling:!1,noVerticalArrowHandling:!1,noEnterHandling:!1,noSpaceHandling:!1};const H={modifiers:{top:"pf-m-top",topLeft:"pf-m-top-left",topRight:"pf-m-top-right",bottom:"pf-m-bottom",bottomLeft:"pf-m-bottom-left",bottomRight:"pf-m-bottom-right",left:"pf-m-left",leftTop:"pf-m-left-top",leftBottom:"pf-m-left-bottom",right:"pf-m-right",rightTop:"pf-m-right-top",rightBottom:"pf-m-right-bottom",textAlignLeft:"pf-m-text-align-left"},tooltip:"pf-v6-c-tooltip",tooltipArrow:"pf-v6-c-tooltip__arrow",tooltipContent:"pf-v6-c-tooltip__content"},un=n=>{var{className:t,children:l,isLeftAligned:a}=n,i=T(n,["className","children","isLeftAligned"]);return e.createElement("div",Object.assign({className:p(H.tooltipContent,a&&H.modifiers.textAlignLeft,t)},i),l)};un.displayName="TooltipContent";const xn=n=>{var{className:t}=n,l=T(n,["className"]);return e.createElement("div",Object.assign({className:p(H.tooltipArrow,t)},l))};xn.displayName="TooltipArrow";const an={name:"--pf-v6-c-tooltip--MaxWidth",value:"18.75rem",var:"var(--pf-v6-c-tooltip--MaxWidth)"};var on;(function(n){n.auto="auto",n.top="top",n.bottom="bottom",n.left="left",n.right="right",n.topStart="top-start",n.topEnd="top-end",n.bottomStart="bottom-start",n.bottomEnd="bottom-end",n.leftStart="left-start",n.leftEnd="left-end",n.rightStart="right-start",n.rightEnd="right-end"})(on||(on={}));let lt=1;const hn=n=>{var{content:t,position:l="top",trigger:a="mouseenter focus",isVisible:i=!1,isContentLeftAligned:o=!1,enableFlip:f=!0,className:g="",entryDelay:w=300,exitDelay:u=300,appendTo:d=()=>document.body,zIndex:c=9999,minWidth:s,maxWidth:v=an.value,distance:x=15,aria:m="describedby",flipBehavior:r=["top","right","bottom","left","top","right","bottom"],id:S=`pf-tooltip-${lt++}`,children:I,animationDuration:M=300,triggerRef:F,"aria-live":N=F?"polite":"off",onTooltipHidden:A=()=>{}}=n,R=T(n,["content","position","trigger","isVisible","isContentLeftAligned","enableFlip","className","entryDelay","exitDelay","appendTo","zIndex","minWidth","maxWidth","distance","aria","flipBehavior","id","children","animationDuration","triggerRef","aria-live","onTooltipHidden"]);const G=a.includes("mouseenter"),_=a.includes("focus"),k=a.includes("click"),X=a==="manual",[W,E]=e.useState(!1),D=e.createRef(),P=J=>{X||J.key===ln.Escape&&W&&j()},U=J=>{J.key===ln.Enter&&(W?j():B())};e.useEffect(()=>{i?B():j()},[i]);const B=()=>{E(!0)},j=()=>{E(!1)},ne={top:H.modifiers.top,bottom:H.modifiers.bottom,left:H.modifiers.left,right:H.modifiers.right,"top-start":H.modifiers.topLeft,"top-end":H.modifiers.topRight,"bottom-start":H.modifiers.bottomLeft,"bottom-end":H.modifiers.bottomRight,"left-start":H.modifiers.leftTop,"left-end":H.modifiers.leftBottom,"right-start":H.modifiers.rightTop,"right-end":H.modifiers.rightBottom},ue=v!==an.value,Me=e.createElement("div",Object.assign({"aria-live":N,className:p(H.tooltip,g),role:"tooltip",id:S,style:{maxWidth:ue?v:null},ref:D},R),e.createElement(xn,null),e.createElement(un,{isLeftAligned:o},t)),xe=(J,he)=>{W?j():J.target===he&&B()},ie=()=>m==="describedby"&&I&&I.props&&!I.props["aria-describedby"]?e.cloneElement(I,{"aria-describedby":S}):m==="labelledby"&&I.props&&!I.props["aria-labelledby"]?e.cloneElement(I,{"aria-labelledby":S}):I;return e.createElement(gn,{trigger:m!=="none"&&W?ie():I,triggerRef:F,popper:Me,popperRef:D,minWidth:s!==void 0?s:"revert",appendTo:d,isVisible:W,positionModifiers:ne,distance:x,placement:l,onMouseEnter:G&&B,onMouseLeave:G&&j,onPopperMouseEnter:G&&B,onPopperMouseLeave:G&&j,onFocus:_&&B,onBlur:_&&j,onDocumentClick:k&&xe,onDocumentKeyDown:X?null:P,onTriggerEnter:X?null:U,enableFlip:f,zIndex:c,flipBehavior:r,animationDuration:M,entryDelay:w,exitDelay:u,onHidden:A})};hn.displayName="Tooltip";const He={avatar:"pf-v6-c-avatar",modifiers:{bordered:"pf-m-bordered",sm:"pf-m-sm",md:"pf-m-md",lg:"pf-m-lg",xl:"pf-m-xl"}},bn=n=>{var{className:t,src:l="",alt:a,isBordered:i,size:o}=n,f=T(n,["className","src","alt","isBordered","size"]);return e.createElement("img",Object.assign({src:l,alt:a,className:p(He.avatar,He.modifiers[o],i&&He.modifiers.bordered,t)},f))};bn.displayName="Avatar";const Pe={breadcrumb:"pf-v6-c-breadcrumb",breadcrumbDropdown:"pf-v6-c-breadcrumb__dropdown",breadcrumbHeading:"pf-v6-c-breadcrumb__heading",breadcrumbItem:"pf-v6-c-breadcrumb__item",breadcrumbItemDivider:"pf-v6-c-breadcrumb__item-divider",breadcrumbLink:"pf-v6-c-breadcrumb__link",breadcrumbList:"pf-v6-c-breadcrumb__list",dirRtl:"pf-v6-m-dir-rtl",modifiers:{current:"pf-m-current"}},ae=e.createContext({menuId:null,parentMenu:null,onActionClick:()=>null,onSelect:()=>null,activeItemId:null,selected:null,drilledInMenus:[],drilldownItemPath:[],onDrillIn:null,onDrillOut:null,onGetMenuHeight:()=>null,flyoutRef:null,setFlyoutRef:()=>null,disableHover:!1,role:"menu"}),On=e.createContext({itemId:null,isDisabled:!1});class Le extends e.Component{constructor(t){super(t),this.menuRef=e.createRef(),this.activeMenu=null,this.state={ouiaStateId:Se(ve.displayName),transitionMoveTarget:null,flyoutRef:null,disableHover:!1,currentDrilldownMenuId:this.props.id},this.handleDrilldownTransition=l=>{const a=this.menuRef.current;if(!(!a||a!==l.target.closest(`.${O.menu}`)&&!Array.from(a.getElementsByClassName(O.menu)).includes(l.target.closest(`.${O.menu}`))))if(this.state.transitionMoveTarget)this.state.transitionMoveTarget.focus(),this.setState({transitionMoveTarget:null});else{const i=a.querySelector("#"+this.props.activeMenu)||a||null,o=i.getElementsByTagName("UL");if(o.length===0)return;const f=Array.from(o[0].children);if(!this.state.currentDrilldownMenuId||i.id!==this.state.currentDrilldownMenuId)this.setState({currentDrilldownMenuId:i.id});else return;const g=f.filter(w=>!(w.classList.contains("pf-m-disabled")||w.classList.contains(O.divider)))[0].firstChild;g.focus(),g.tabIndex=0}},this.handleExtraKeys=l=>{const a=this.props.containsDrilldown,i=document.activeElement;if(l.target.closest(`.${O.menu}`)!==this.activeMenu&&!l.target.classList.contains(Pe.breadcrumbLink)&&(this.activeMenu=l.target.closest(`.${O.menu}`),this.setState({disableHover:!0})),l.target.tagName==="INPUT")return;const o=this.activeMenu,f=l.key,g=i.classList.contains(Pe.breadcrumbLink);if(f===" "||f==="Enter"){if(l.preventDefault(),a&&!g){if(i.closest("li").classList.contains("pf-m-current-path")&&o.parentElement.tagName==="LI")i.tabIndex=-1,o.parentElement.firstChild.tabIndex=0,this.setState({transitionMoveTarget:o.parentElement.firstChild});else if(i.nextElementSibling&&i.nextElementSibling.classList.contains(O.menu)){const u=Array.from(i.nextElementSibling.getElementsByTagName("UL")[0].children).filter(d=>!(d.classList.contains("pf-m-disabled")||d.classList.contains(O.divider)));i.tabIndex=-1,u[0].firstChild.tabIndex=0,this.setState({transitionMoveTarget:u[0].firstChild})}}document.activeElement.click()}},this.createNavigableElements=()=>this.props.containsDrilldown?this.activeMenu?Array.from(this.activeMenu.getElementsByTagName("UL")[0].children).filter(a=>!(a.classList.contains("pf-m-disabled")||a.classList.contains(O.divider))):[]:this.menuRef.current?Array.from(this.menuRef.current.getElementsByTagName("LI")).filter(a=>!(a.classList.contains("pf-m-disabled")||a.classList.contains(O.divider))):[],t.innerRef&&(this.menuRef=t.innerRef)}allowTabFirstItem(){const t=this.menuRef.current;if(t){const l=t.querySelector("ul button:not(:disabled), ul a:not(:disabled)");l&&(l.tabIndex=0)}}componentDidMount(){this.context&&this.setState({disableHover:this.context.disableHover}),q&&this.props.containsDrilldown&&window.addEventListener("transitionend",this.props.isRootMenu?this.handleDrilldownTransition:null),this.allowTabFirstItem()}componentWillUnmount(){q&&this.props.containsDrilldown&&window.removeEventListener("transitionend",this.handleDrilldownTransition)}componentDidUpdate(t){t.children!==this.props.children&&this.allowTabFirstItem()}render(){const t=this.props,{id:l,children:a,className:i,onSelect:o,selected:f=null,onActionClick:g,ouiaId:w,ouiaSafe:u,containsFlyout:d,containsDrilldown:c,isMenuDrilledIn:s,isPlain:v,isScrollable:x,drilldownItemPath:m,drilledInMenus:r,onDrillIn:S,onDrillOut:I,onGetMenuHeight:M,parentMenu:F=null,activeItemId:N=null,innerRef:A,isRootMenu:R,activeMenu:G,role:_,isNavFlyout:k}=t,X=T(t,["id","children","className","onSelect","selected","onActionClick","ouiaId","ouiaSafe","containsFlyout","containsDrilldown","isMenuDrilledIn","isPlain","isScrollable","drilldownItemPath","drilledInMenus","onDrillIn","onDrillOut","onGetMenuHeight","parentMenu","activeItemId","innerRef","isRootMenu","activeMenu","role","isNavFlyout"]),W=s||r&&r.includes(l)||!1;return e.createElement(ae.Provider,{value:{menuId:l,parentMenu:F||l,onSelect:o,onActionClick:g,activeItemId:N,selected:f,drilledInMenus:r,drilldownItemPath:m,onDrillIn:S,onDrillOut:I,onGetMenuHeight:M,flyoutRef:this.state.flyoutRef,setFlyoutRef:E=>this.setState({flyoutRef:E}),disableHover:this.state.disableHover,role:_}},R&&e.createElement(Ve,{containerRef:this.menuRef||null,additionalKeyHandler:this.handleExtraKeys,createNavigableElements:this.createNavigableElements,isActiveElement:E=>document.activeElement.closest("li")===E||document.activeElement.parentElement===E||document.activeElement.closest(`.${O.menuSearch}`)===E||document.activeElement.closest("ol")&&document.activeElement.closest("ol").firstChild===E,getFocusableElement:E=>{var D,P;return E?.tagName==="DIV"&&E.querySelector("input")||((D=E.firstChild)===null||D===void 0?void 0:D.tagName)==="LABEL"&&E.querySelector("input")||((P=E.firstChild)===null||P===void 0?void 0:P.tagName)==="DIV"&&E.querySelector("a, button, input")||E.firstChild},noHorizontalArrowHandling:document.activeElement&&(document.activeElement.classList.contains(Pe.breadcrumbLink)||document.activeElement.tagName==="INPUT"),noEnterHandling:!0,noSpaceHandling:!0}),e.createElement("div",Object.assign({id:l,className:p(O.menu,v&&O.modifiers.plain,x&&O.modifiers.scrollable,d&&O.modifiers.flyout,k&&"pf-m-nav",c&&O.modifiers.drilldown,W&&O.modifiers.drilledIn,i),ref:this.menuRef},Ee(ve.displayName,w!==void 0?w:this.state.ouiaStateId,u),X),a))}}Le.displayName="Menu";Le.contextType=ae;Le.defaultProps={ouiaSafe:!0,isRootMenu:!0,isPlain:!1,isScrollable:!1,role:"menu"};const ve=e.forwardRef((n,t)=>e.createElement(Le,Object.assign({},n,{innerRef:t})));ve.displayName="Menu";const at={name:"--pf-v6-c-menu__content--Height",value:"auto",var:"var(--pf-v6-c-menu__content--Height)"},it={name:"--pf-v6-c-menu__content--MaxHeight",value:"18.75rem",var:"var(--pf-v6-c-menu__content--MaxHeight)"},wn=e.forwardRef((n,t)=>{const{getHeight:l,children:a,menuHeight:i,maxMenuHeight:o}=n,f=T(n,["getHeight","children","menuHeight","maxMenuHeight"]),g=e.createRef(),w=(u,d,c)=>{if(u){let s=u.clientHeight,v=null,x=u.closest(`.${O.menuList}`);for(;x!==null&&x.nodeType===1;)x.classList.contains(O.menuList)&&(v=x),x=x.parentElement;if(v){const m=getComputedStyle(v),r=parseFloat(m.getPropertyValue("padding-top").replace(/px/g,""))+parseFloat(m.getPropertyValue("padding-bottom").replace(/px/g,""))+parseFloat(getComputedStyle(v.parentElement).getPropertyValue("border-bottom-width").replace(/px/g,""));s=s+r}c&&c(d,s),l&&l(s.toString())}return t||g};return e.createElement(ae.Consumer,null,({menuId:u,onGetMenuHeight:d})=>e.createElement("div",Object.assign({},f,{className:p(O.menuContent,n.className),ref:c=>w(c,u,d),style:Object.assign(Object.assign({},i&&{[at.name]:i}),o&&{[it.name]:o})}),a))});wn.displayName="MenuContent";const ot=n=>{var{children:t,className:l="",label:a="",titleId:i,innerRef:o,labelHeadingLevel:f="h1"}=n,g=T(n,["children","className","label","titleId","innerRef","labelHeadingLevel"]);const w=typeof a=="function"?a:f;return e.createElement("section",Object.assign({},g,{className:p(O.menuGroup,l),ref:o}),e.createElement(e.Fragment,null,["function","string"].includes(typeof a)?e.createElement(w,{className:p(O.menuGroupTitle),id:i},a):a,t))},vn=e.forwardRef((n,t)=>e.createElement(ot,Object.assign({},n,{innerRef:t})));vn.displayName="MenuGroup";const st={name:"--pf-v6-c-menu--m-flyout__menu--top-offset",value:"0px",var:"var(--pf-v6-c-menu--m-flyout__menu--top-offset)"},rt={name:"--pf-v6-c-menu--m-flyout__menu--m-left--right-offset",value:"0px",var:"var(--pf-v6-c-menu--m-flyout__menu--m-left--right-offset)"},mt={name:"--pf-v6-c-menu--m-flyout__menu--left-offset",value:"0px",var:"var(--pf-v6-c-menu--m-flyout__menu--left-offset)"},ct={name:"ExternalLinkAltIcon",height:512,width:512,svgPath:"M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z",yOffset:0,xOffset:0},pt=$(ct),dt={name:"CheckIcon",height:512,width:512,svgPath:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z",yOffset:0,xOffset:0},ft=$(dt),ee={check:"pf-v6-c-check",checkBody:"pf-v6-c-check__body",checkDescription:"pf-v6-c-check__description",checkInput:"pf-v6-c-check__input",checkLabel:"pf-v6-c-check__label",checkLabelRequired:"pf-v6-c-check__label-required",modifiers:{standalone:"pf-m-standalone",disabled:"pf-m-disabled"}},Cn=()=>{};class me extends e.Component{constructor(t){super(t),this.handleChange=l=>{this.props.onChange(l,l.currentTarget.checked)},this.state={ouiaStateId:Se(me.displayName)}}render(){const t=this.props,{"aria-label":l,className:a,inputClassName:i,onChange:o,isLabelWrapped:f,labelPosition:g="end",isValid:w,isDisabled:u,isRequired:d,isChecked:c,label:s,checked:v,defaultChecked:x,description:m,body:r,ouiaId:S,ouiaSafe:I,component:M}=t,F=T(t,["aria-label","className","inputClassName","onChange","isLabelWrapped","labelPosition","isValid","isDisabled","isRequired","isChecked","label","checked","defaultChecked","description","body","ouiaId","ouiaSafe","component"]);F.id||console.error("Checkbox:","id is required to make input accessible");const N={};([!0,!1].includes(v)||c===!0)&&(N.checked=v||c),o!==Cn&&(N.checked=c),[!1,!0].includes(x)&&(N.defaultChecked=x);const A=e.createElement("input",Object.assign({},F,{className:p(ee.checkInput,i),type:"checkbox",onChange:this.handleChange,"aria-invalid":!w,"aria-label":l,disabled:u,required:d,ref:X=>X&&(X.indeterminate=c===null)},N,Ee(me.displayName,S!==void 0?S:this.state.ouiaStateId,I))),R=f&&!M||M==="label",G=R?"span":"label",_=s?e.createElement(G,{className:p(ee.checkLabel,u&&ee.modifiers.disabled),htmlFor:R?void 0:F.id},s,d&&e.createElement("span",{className:p(ee.checkLabelRequired),"aria-hidden":"true"},nt)):null,k=M??(R?"label":"div");return N.checked=N.checked===null?!1:N.checked,e.createElement(k,{className:p(ee.check,!s&&ee.modifiers.standalone,a),htmlFor:R?F.id:void 0},g==="start"?e.createElement(e.Fragment,null,_,A):e.createElement(e.Fragment,null,A,_),m&&e.createElement("span",{className:p(ee.checkDescription)},m),r&&e.createElement("span",{className:p(ee.checkBody)},r))}}me.displayName="Checkbox";me.defaultProps={className:"",isLabelWrapped:!1,isValid:!0,isDisabled:!1,isRequired:!1,isChecked:!1,onChange:Cn,ouiaSafe:!0};const gt={name:"StarIcon",height:512,width:576,svgPath:"M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z",yOffset:0,xOffset:0},ut=$(gt),xt=n=>{var{className:t,icon:l,onClick:a,"aria-label":i,isFavorited:o=null,isDisabled:f,actionId:g,innerRef:w}=n,u=T(n,["className","icon","onClick","aria-label","isFavorited","isDisabled","actionId","innerRef"]);return e.createElement(ae.Consumer,null,({onActionClick:d})=>e.createElement(On.Consumer,null,({itemId:c,isDisabled:s})=>{const v=x=>{a&&a(x),d&&d(x,c,g)};return e.createElement("div",Object.assign({className:p(O.menuItemAction,o!==null&&"pf-m-favorite",o&&O.modifiers.favorited,t)},u),e.createElement(de,{"aria-label":i,onClick:v,ref:w,role:"menuitem",variant:"plain",tabIndex:-1,isDisabled:f||s,icon:l==="favorites"||o!==null?e.createElement(ut,{"aria-hidden":!0}):l}))}))},In=e.forwardRef((n,t)=>e.createElement(xt,Object.assign({},n,{innerRef:t})));In.displayName="MenuItemAction";const sn=e.createContext({direction:"right"}),ht=n=>{var{children:t,className:l,itemId:a=null,to:i,hasCheckbox:o=!1,isActive:f=null,isFavorited:g=null,isLoadButton:w=!1,isLoading:u=!1,flyoutMenu:d,direction:c,description:s=null,onClick:v=()=>{},component:x="button",isDisabled:m=!1,isAriaDisabled:r=!1,isExternalLink:S=!1,isSelected:I=null,isFocused:M,isDanger:F=!1,icon:N,actions:A,onShowFlyout:R,drilldownMenu:G,isOnPath:_,innerRef:k,id:X,"aria-label":W,tooltipProps:E,rel:D,target:P,download:U}=n,B=T(n,["children","className","itemId","to","hasCheckbox","isActive","isFavorited","isLoadButton","isLoading","flyoutMenu","direction","description","onClick","component","isDisabled","isAriaDisabled","isExternalLink","isSelected","isFocused","isDanger","icon","actions","onShowFlyout","drilldownMenu","isOnPath","innerRef","id","aria-label","tooltipProps","rel","target","download"]);const{menuId:j,parentMenu:ne,onSelect:ue,onActionClick:Me,activeItemId:xe,selected:ie,drilldownItemPath:J,onDrillIn:he,onDrillOut:Ze,flyoutRef:Gn,setFlyoutRef:Ne,disableHover:Qe,role:kn}=e.useContext(ae);let be=i?"a":x;o&&!i&&(be="label");const[Oe,Tn]=e.useState(null),Ge=e.useContext(sn),[Je,ke]=e.useState(Ge.direction),Y=e.useRef(),Z=Y===Gn,Te=d!==void 0,De=C=>{!Z&&C?Ne(Y):Z&&!C&&Ne(null),R&&C&&R()};Pn(()=>{if(Te&&Y.current&&q){const C=Y.current.lastElementChild;if(C&&C.classList.contains(O.menu)){const y=Y.current.getClientRects()[0],V=C.getClientRects()[0];if(y&&V){const te=y.x-V.width,Re=window.innerWidth-y.x-y.width-V.width;let se=Je;Re<0&&se!=="left"?(ke("left"),se="left"):te<0&&se!=="right"&&(ke("right"),se="right");let Xe=0;te<0&&Re<0&&(Xe=se==="right"?-Re:-te),se==="left"?(C.classList.add(O.modifiers.left),C.style.setProperty(rt.name,`-${Xe}px`)):C.style.setProperty(mt.name,`-${Xe}px`);const je=window.innerHeight-y.y-V.height;window.innerHeight-V.height<0&&je<0||je<0&&C.style.setProperty(st.name,`${je}px`)}}}},[Z,d]),e.useEffect(()=>{ke(Ge.direction)},[Ge]),e.useEffect(()=>{if(Oe)if(Z){const C=Oe.nextElementSibling;Array.from(C.getElementsByTagName("UL")[0].children).filter(V=>!(V.classList.contains("pf-m-disabled")||V.classList.contains(O.divider)))[0].firstChild.focus()}else Oe.focus()},[Z,Oe]);const Ye=C=>{const y=C.key,V=C.target,te=C.type;(y===" "||y==="Enter"||y==="ArrowRight"||te==="click")&&(C.stopPropagation(),C.preventDefault(),Z||(De(!0),Tn(V))),(y==="Escape"||y==="ArrowLeft")&&Z&&(C.stopPropagation(),De(!1))},en=(C,y)=>{r||(y&&y(C,a),v&&v(C))},Dn=_&&_||J&&J.includes(a)||!1;let we;c&&(c==="down"?we=C=>he&&he(C,j,typeof G=="function"?G().props.id:G.props.id,a):we=C=>Ze&&Ze(C,ne,a));let oe={};be==="a"?oe={href:i,"aria-disabled":m||r?!0:null,disabled:null,target:S?"_blank":P,rel:D,download:U}:be==="button"&&(oe={type:"button","aria-disabled":r?!0:null}),_?oe["aria-expanded"]=!0:Te&&(oe["aria-haspopup"]="menu",oe["aria-expanded"]=Z);const Fn=()=>f!==null?f?"page":null:a!==null&&xe!==null?a===xe:null,Fe=()=>I!==null?I:ie!==null&&a!==null?Array.isArray(ie)&&ie.includes(a)||a===ie:!1,Rn=()=>{Qe||(Te?De(!0):Ne(null))};e.useEffect(()=>{if(M&&Y.current){const C=Y.current,y=C.parentElement;if(y){const V=C.offsetTop-y.offsetTop<y.scrollTop,te=C.offsetTop-y.offsetTop+C.clientHeight;(V||te)&&C.scrollIntoView({behavior:"auto",block:"nearest"})}}},[M]);const nn=kn==="listbox",tn=e.createElement(e.Fragment,null,e.createElement(_e,null,C=>e.createElement(be,Object.assign({id:X,tabIndex:-1,className:p(O.menuItem,Fe()&&!o&&O.modifiers.selected,l),"aria-current":Fn()},!o&&{disabled:m,"aria-label":W},!o&&!d&&{role:nn?"option":"menuitem"},!o&&!d&&nn&&{"aria-selected":Fe()},{ref:k},!o&&{onClick:y=>{r?y.preventDefault():(en(y,ue),we&&we(y),d&&Ye(y))}},o&&{htmlFor:C},oe),e.createElement("span",{className:p(O.menuItemMain)},c==="up"&&e.createElement("span",{className:p(O.menuItemToggleIcon)},e.createElement(zn,{"aria-hidden":!0})),N&&e.createElement("span",{className:p(O.menuItemIcon)},N),o&&e.createElement("span",{className:p(O.menuItemCheck)},e.createElement(me,{id:C,component:"span",isChecked:I||!1,onChange:y=>en(y,ue),isDisabled:m,"aria-disabled":r})),e.createElement("span",{className:p(O.menuItemText)},t),S&&e.createElement("span",{className:p(O.menuItemExternalIcon)},e.createElement(pt,{"aria-hidden":!0})),(d||c==="down")&&e.createElement("span",{className:p(O.menuItemToggleIcon)},e.createElement(Wn,{"aria-hidden":!0})),Fe()&&e.createElement("span",{className:p(O.menuItemSelectIcon)},e.createElement(ft,{"aria-hidden":!0}))),s&&c!=="up"&&e.createElement("span",{className:p(O.menuItemDescription)},e.createElement("span",null,s)))),Z&&e.createElement(ae.Provider,{value:{disableHover:Qe}},e.createElement(sn.Provider,{value:{direction:Je}},d)),typeof G=="function"?G():G,e.createElement(On.Provider,{value:{itemId:a,isDisabled:m}},A,g!==null&&e.createElement(In,{icon:"favorites",isFavorited:g,"aria-label":g?"starred":"not starred",onClick:C=>Me(C,a),tabIndex:-1,actionId:"fav"})));return e.createElement("li",Object.assign({className:p(O.menuListItem,m&&O.modifiers.disabled,r&&O.modifiers.ariaDisabled,Dn&&O.modifiers.currentPath,w&&O.modifiers.load,u&&O.modifiers.loading,M&&"pf-m-focus",F&&O.modifiers.danger,l),onMouseOver:()=>{r||Rn()}},d&&!r&&{onKeyDown:Ye},{ref:Y,role:o?"menuitem":"none"},o&&{"aria-label":W},B),E?e.createElement(hn,Object.assign({},E),tn):tn)},Sn=e.forwardRef((n,t)=>e.createElement(ht,Object.assign({},n,{innerRef:t})));Sn.displayName="MenuItem";const En=n=>{var{children:t=null,className:l,isAriaMultiselectable:a=!1,"aria-label":i}=n,o=T(n,["children","className","isAriaMultiselectable","aria-label"]);const{role:f}=e.useContext(ae);return e.createElement("ul",Object.assign({role:f},f==="listbox"&&{"aria-multiselectable":a},{className:p(O.menuList,l),"aria-label":i},o),t)};En.displayName="MenuList";const L={avatar:"pf-v6-c-avatar",button:"pf-v6-c-button",check:"pf-v6-c-check",checkInput:"pf-v6-c-check__input",menuToggle:"pf-v6-c-menu-toggle",menuToggleButton:"pf-v6-c-menu-toggle__button",menuToggleControls:"pf-v6-c-menu-toggle__controls",menuToggleCount:"pf-v6-c-menu-toggle__count",menuToggleIcon:"pf-v6-c-menu-toggle__icon",menuToggleStatusIcon:"pf-v6-c-menu-toggle__status-icon",menuToggleText:"pf-v6-c-menu-toggle__text",menuToggleToggleIcon:"pf-v6-c-menu-toggle__toggle-icon",modifiers:{primary:"pf-m-primary",secondary:"pf-m-secondary",fullHeight:"pf-m-full-height",fullWidth:"pf-m-full-width",plain:"pf-m-plain",expanded:"pf-m-expanded",disabled:"pf-m-disabled",small:"pf-m-small",success:"pf-m-success",warning:"pf-m-warning",danger:"pf-m-danger",placeholder:"pf-m-placeholder",splitButton:"pf-m-split-button",standalone:"pf-m-standalone",typeahead:"pf-m-typeahead",text:"pf-m-text",avatar:"pf-m-avatar"},textInputGroup:"pf-v6-c-text-input-group"},bt={name:"CaretDownIcon",height:512,width:320,svgPath:"M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z",yOffset:0,xOffset:0},Ot=$(bt);var fe;(function(n){n.success="success",n.danger="danger",n.warning="warning"})(fe||(fe={}));var ze;(function(n){n.default="default",n.sm="sm"})(ze||(ze={}));class yn extends e.Component{constructor(){super(...arguments),this.displayName="MenuToggleBase",this.state={ouiaStateId:Se(re.displayName,this.props.variant)}}render(){const t=this.props,{children:l,className:a,icon:i,badge:o,isExpanded:f,isDisabled:g,isFullHeight:w,isFullWidth:u,isPlaceholder:d,splitButtonItems:c,variant:s,status:v,statusIcon:x,innerRef:m,onClick:r,"aria-label":S,ouiaId:I,ouiaSafe:M,size:F}=t,N=T(t,["children","className","icon","badge","isExpanded","isDisabled","isFullHeight","isFullWidth","isPlaceholder","splitButtonItems","variant","status","statusIcon","innerRef","onClick","aria-label","ouiaId","ouiaSafe","size"]),A=s==="plain",R=s==="plainText",G=s==="typeahead",_=Ee(re.displayName,I??this.state.ouiaStateId,M);let k=x;if(!x)switch(v){case fe.success:k=e.createElement(Kn,{"aria-hidden":"true"});break;case fe.warning:k=e.createElement(Zn,{"aria-hidden":"true"});break;case fe.danger:k=e.createElement($n,{"aria-hidden":"true"});break}const X=e.createElement("span",{className:p(L.menuToggleControls)},v!==void 0&&e.createElement("span",{className:p(L.menuToggleStatusIcon)},k),e.createElement("span",{className:p(L.menuToggleToggleIcon)},e.createElement(Ot,{"aria-hidden":!0}))),W=e.createElement(e.Fragment,null,i&&e.createElement("span",{className:p(L.menuToggleIcon)},i),G?l:l&&e.createElement("span",{className:p(L.menuToggleText)},l),e.isValidElement(o)&&e.createElement("span",{className:p(L.menuToggleCount)},o),G?e.createElement("button",Object.assign({type:"button",className:p(L.menuToggleButton),"aria-expanded":f,onClick:r,"aria-label":S||"Menu toggle",tabIndex:-1},_),X):!A&&X),E=p(L.menuToggle,f&&L.modifiers.expanded,s==="primary"&&L.modifiers.primary,s==="secondary"&&L.modifiers.secondary,v&&L.modifiers[v],(A||R)&&L.modifiers.plain,R&&"pf-m-text",w&&L.modifiers.fullHeight,u&&L.modifiers.fullWidth,g&&L.modifiers.disabled,d&&L.modifiers.placeholder,F===ze.sm&&L.modifiers.small,a),D=Object.assign(Object.assign({children:W},g&&{disabled:!0}),N);return G?e.createElement("div",Object.assign({ref:m,className:p(E,L.modifiers.typeahead)},D)):c?e.createElement("div",{ref:m,className:p(E,L.modifiers.splitButton)},c,e.createElement("button",Object.assign({className:p(L.menuToggleButton,l&&L.modifiers.text),type:"button","aria-expanded":f,"aria-label":S,disabled:g,onClick:r},N,_),l&&e.createElement("span",{className:p(L.menuToggleText)},l),X)):e.createElement("button",Object.assign({className:p(E),type:"button","aria-label":S,"aria-expanded":f,ref:m,disabled:g,onClick:r},D,_))}}yn.defaultProps={className:"",isExpanded:!1,isDisabled:!1,isFullWidth:!1,isFullHeight:!1,isPlaceholder:!1,size:"default",ouiaSafe:!0};const re=e.forwardRef((n,t)=>e.createElement(yn,Object.assign({innerRef:t},n)));re.displayName="MenuToggle";var We;(function(n){n.hr="hr",n.li="li",n.div="div"})(We||(We={}));const $e=n=>{var{className:t,component:l=We.hr,inset:a,orientation:i}=n,o=T(n,["className","component","inset","orientation"]);const f=l;return e.createElement(f,Object.assign({className:p(Be.divider,K(a,Be),K(i,Be),t)},l!=="hr"&&{role:"separator"},o))};$e.displayName="Divider";const wt=n=>{var{children:t,className:l,onSelect:a,isOpen:i,toggle:o,shouldFocusToggleOnSelect:f=!1,onOpenChange:g,isPlain:w,isScrollable:u,innerRef:d,ouiaId:c,ouiaSafe:s=!0,zIndex:v=9999,popperProps:x,onOpenChangeKeys:m=["Escape","Tab"],menuHeight:r,maxMenuHeight:S,shouldFocusFirstItemOnOpen:I=!1,shouldPreventScrollOnItemFocus:M=!0,focusTimeoutDelay:F=0}=n,N=T(n,["children","className","onSelect","isOpen","toggle","shouldFocusToggleOnSelect","onOpenChange","isPlain","isScrollable","innerRef","ouiaId","ouiaSafe","zIndex","popperProps","onOpenChangeKeys","menuHeight","maxMenuHeight","shouldFocusFirstItemOnOpen","shouldPreventScrollOnItemFocus","focusTimeoutDelay"]);const A=z.useRef(),R=z.useRef(),G=dn(ge.displayName,c,s),_=d||A,k=typeof o=="function"||typeof o!="function"&&!o.toggleRef?R:o?.toggleRef,X=z.useRef(i);z.useEffect(()=>{X.current===!1&&i===!0&&I&&setTimeout(()=>{var D;const P=(D=_?.current)===null||D===void 0?void 0:D.querySelector('li button:not(:disabled),li input:not(:disabled),li a:not([aria-disabled="true"])');P&&P.focus({preventScroll:M})},F),X.current=i},[i]),z.useEffect(()=>{const D=U=>{var B,j,ne;i&&g&&(!((B=_.current)===null||B===void 0)&&B.contains(U.target)||!((j=k.current)===null||j===void 0)&&j.contains(U.target))&&m.includes(U.key)&&(g(!1),(ne=k.current)===null||ne===void 0||ne.focus())},P=U=>{var B,j;i&&g&&!(!((B=k?.current)===null||B===void 0)&&B.contains(U.target))&&i&&!(!((j=_.current)===null||j===void 0)&&j.contains(U.target))&&g(!1)};return window.addEventListener("keydown",D),window.addEventListener("click",P),()=>{window.removeEventListener("keydown",D),window.removeEventListener("click",P)}},[i,_,k,g,m,M,I,F]);const W=S!==void 0||r!==void 0||u,E=z.createElement(ve,Object.assign({className:p(l),ref:_,onSelect:(D,P)=>{var U;a&&a(D,P),f&&((U=k.current)===null||U===void 0||U.focus())},isPlain:w,isScrollable:W},N,G),z.createElement(wn,{menuHeight:r,maxMenuHeight:S},t));return z.createElement(gn,Object.assign({trigger:typeof o=="function"?o(k):o.toggleNode,triggerRef:k,popper:E,popperRef:_,isVisible:i,zIndex:v},x))},ge=z.forwardRef((n,t)=>z.createElement(wt,Object.assign({innerRef:t},n)));ge.displayName="Dropdown";const _n=n=>{var{children:t,className:l,label:a,labelHeadingLevel:i="h1"}=n,o=T(n,["children","className","label","labelHeadingLevel"]);return z.createElement(vn,Object.assign({className:p(l),label:a,labelHeadingLevel:i},o),t)};_n.displayName="DropdownGroup";const vt=n=>{var{children:t,className:l,description:a,isDisabled:i,isAriaDisabled:o,value:f,onClick:g,ouiaId:w,ouiaSafe:u,innerRef:d,tooltipProps:c}=n,s=T(n,["children","className","description","isDisabled","isAriaDisabled","value","onClick","ouiaId","ouiaSafe","innerRef","tooltipProps"]);const v=dn(le.displayName,w,u);return z.createElement(Sn,Object.assign({className:p(l),description:a,isDisabled:i,isAriaDisabled:o,itemId:f,onClick:g,tooltipProps:c,ref:d},v,s),t)},le=z.forwardRef((n,t)=>z.createElement(vt,Object.assign({},n,{innerRef:t})));le.displayName="DropdownItem";const pe=n=>{var{children:t,className:l}=n,a=T(n,["children","className"]);return z.createElement(En,Object.assign({className:p(l)},a),t)};pe.displayName="DropdownList";const Ct={name:"QuestionCircleIcon",height:512,width:512,svgPath:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zM262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102zM256 338c-25.365 0-46 20.635-46 46 0 25.364 20.635 46 46 46s46-20.636 46-46c0-25.365-20.635-46-46-46z",yOffset:0,xOffset:0},It=$(Ct),h={dirRtl:"pf-v6-m-dir-rtl",modifiers:{hidden:"pf-m-hidden",hiddenOnSm:"pf-m-hidden-on-sm",visibleOnSm:"pf-m-visible-on-sm",hiddenOnMd:"pf-m-hidden-on-md",visibleOnMd:"pf-m-visible-on-md",hiddenOnLg:"pf-m-hidden-on-lg",visibleOnLg:"pf-m-visible-on-lg",hiddenOnXl:"pf-m-hidden-on-xl",visibleOnXl:"pf-m-visible-on-xl",hiddenOn_2xl:"pf-m-hidden-on-2xl",visibleOn_2xl:"pf-m-visible-on-2xl",sticky:"pf-m-sticky",static:"pf-m-static",fullHeight:"pf-m-full-height",primary:"pf-m-primary",secondary:"pf-m-secondary",noBackground:"pf-m-no-background",expandAll:"pf-m-expand-all",expanded:"pf-m-expanded",label:"pf-m-label",pagination:"pf-m-pagination",overflowContainer:"pf-m-overflow-container",filterGroup:"pf-m-filter-group",labelGroup:"pf-m-label-group",actionGroup:"pf-m-action-group",actionGroupPlain:"pf-m-action-group-plain",actionGroupInline:"pf-m-action-group-inline",alignStart:"pf-m-align-start",alignCenter:"pf-m-align-center",alignEnd:"pf-m-align-end",flexGrow:"pf-m-flex-grow",alignSelfStretch:"pf-m-align-self-stretch",alignSelfBaseline:"pf-m-align-self-baseline",alignSelfStart:"pf-m-align-self-start",alignSelfCenter:"pf-m-align-self-center",alignSelfEnd:"pf-m-align-self-end",insetNone:"pf-m-inset-none",insetXs:"pf-m-inset-xs",insetSm:"pf-m-inset-sm",insetMd:"pf-m-inset-md",insetLg:"pf-m-inset-lg",insetXl:"pf-m-inset-xl",inset_2xl:"pf-m-inset-2xl",inset_3xl:"pf-m-inset-3xl",inset_4xl:"pf-m-inset-4xl",wrap:"pf-m-wrap",nowrap:"pf-m-nowrap",alignItemsStretch:"pf-m-align-items-stretch",alignItemsBaseline:"pf-m-align-items-baseline",alignItemsStart:"pf-m-align-items-start",alignItemsCenter:"pf-m-align-items-center",alignItemsEnd:"pf-m-align-items-end",gapNone:"pf-m-gap-none",gapXs:"pf-m-gap-xs",gapSm:"pf-m-gap-sm",gapMd:"pf-m-gap-md",gapLg:"pf-m-gap-lg",gapXl:"pf-m-gap-xl",gap_2xl:"pf-m-gap-2xl",gap_3xl:"pf-m-gap-3xl",gap_4xl:"pf-m-gap-4xl",columnGapNone:"pf-m-column-gap-none",rowGapNone:"pf-m-row-gap-none",columnGapXs:"pf-m-column-gap-xs",rowGapXs:"pf-m-row-gap-xs",columnGapSm:"pf-m-column-gap-sm",rowGapSm:"pf-m-row-gap-sm",columnGapMd:"pf-m-column-gap-md",rowGapMd:"pf-m-row-gap-md",columnGapLg:"pf-m-column-gap-lg",rowGapLg:"pf-m-row-gap-lg",columnGapXl:"pf-m-column-gap-xl",rowGapXl:"pf-m-row-gap-xl",columnGap_2xl:"pf-m-column-gap-2xl",rowGap_2xl:"pf-m-row-gap-2xl",columnGap_3xl:"pf-m-column-gap-3xl",rowGap_3xl:"pf-m-row-gap-3xl",columnGap_4xl:"pf-m-column-gap-4xl",rowGap_4xl:"pf-m-row-gap-4xl",toggleGroup:"pf-m-toggle-group",show:"pf-m-show",hide:"pf-m-hide",alignStartOnSm:"pf-m-align-start-on-sm",alignCenterOnSm:"pf-m-align-center-on-sm",alignEndOnSm:"pf-m-align-end-on-sm",flexGrowOnSm:"pf-m-flex-grow-on-sm",alignSelfStretchOnSm:"pf-m-align-self-stretch-on-sm",alignSelfBaselineOnSm:"pf-m-align-self-baseline-on-sm",alignSelfStartOnSm:"pf-m-align-self-start-on-sm",alignSelfCenterOnSm:"pf-m-align-self-center-on-sm",alignSelfEndOnSm:"pf-m-align-self-end-on-sm",insetNoneOnSm:"pf-m-inset-none-on-sm",insetXsOnSm:"pf-m-inset-xs-on-sm",insetSmOnSm:"pf-m-inset-sm-on-sm",insetMdOnSm:"pf-m-inset-md-on-sm",insetLgOnSm:"pf-m-inset-lg-on-sm",insetXlOnSm:"pf-m-inset-xl-on-sm",inset_2xlOnSm:"pf-m-inset-2xl-on-sm",inset_3xlOnSm:"pf-m-inset-3xl-on-sm",inset_4xlOnSm:"pf-m-inset-4xl-on-sm",wrapOnSm:"pf-m-wrap-on-sm",nowrapOnSm:"pf-m-nowrap-on-sm",alignItemsStretchOnSm:"pf-m-align-items-stretch-on-sm",alignItemsBaselineOnSm:"pf-m-align-items-baseline-on-sm",alignItemsStartOnSm:"pf-m-align-items-start-on-sm",alignItemsCenterOnSm:"pf-m-align-items-center-on-sm",alignItemsEndOnSm:"pf-m-align-items-end-on-sm",gapNoneOnSm:"pf-m-gap-none-on-sm",gapXsOnSm:"pf-m-gap-xs-on-sm",gapSmOnSm:"pf-m-gap-sm-on-sm",gapMdOnSm:"pf-m-gap-md-on-sm",gapLgOnSm:"pf-m-gap-lg-on-sm",gapXlOnSm:"pf-m-gap-xl-on-sm",gap_2xlOnSm:"pf-m-gap-2xl-on-sm",gap_3xlOnSm:"pf-m-gap-3xl-on-sm",gap_4xlOnSm:"pf-m-gap-4xl-on-sm",columnGapNoneOnSm:"pf-m-column-gap-none-on-sm",rowGapNoneOnSm:"pf-m-row-gap-none-on-sm",columnGapXsOnSm:"pf-m-column-gap-xs-on-sm",rowGapXsOnSm:"pf-m-row-gap-xs-on-sm",columnGapSmOnSm:"pf-m-column-gap-sm-on-sm",rowGapSmOnSm:"pf-m-row-gap-sm-on-sm",columnGapMdOnSm:"pf-m-column-gap-md-on-sm",rowGapMdOnSm:"pf-m-row-gap-md-on-sm",columnGapLgOnSm:"pf-m-column-gap-lg-on-sm",rowGapLgOnSm:"pf-m-row-gap-lg-on-sm",columnGapXlOnSm:"pf-m-column-gap-xl-on-sm",rowGapXlOnSm:"pf-m-row-gap-xl-on-sm",columnGap_2xlOnSm:"pf-m-column-gap-2xl-on-sm",rowGap_2xlOnSm:"pf-m-row-gap-2xl-on-sm",columnGap_3xlOnSm:"pf-m-column-gap-3xl-on-sm",rowGap_3xlOnSm:"pf-m-row-gap-3xl-on-sm",columnGap_4xlOnSm:"pf-m-column-gap-4xl-on-sm",rowGap_4xlOnSm:"pf-m-row-gap-4xl-on-sm",showOnSm:"pf-m-show-on-sm",hideOnSm:"pf-m-hide-on-sm",alignStartOnMd:"pf-m-align-start-on-md",alignCenterOnMd:"pf-m-align-center-on-md",alignEndOnMd:"pf-m-align-end-on-md",flexGrowOnMd:"pf-m-flex-grow-on-md",alignSelfStretchOnMd:"pf-m-align-self-stretch-on-md",alignSelfBaselineOnMd:"pf-m-align-self-baseline-on-md",alignSelfStartOnMd:"pf-m-align-self-start-on-md",alignSelfCenterOnMd:"pf-m-align-self-center-on-md",alignSelfEndOnMd:"pf-m-align-self-end-on-md",insetNoneOnMd:"pf-m-inset-none-on-md",insetXsOnMd:"pf-m-inset-xs-on-md",insetSmOnMd:"pf-m-inset-sm-on-md",insetMdOnMd:"pf-m-inset-md-on-md",insetLgOnMd:"pf-m-inset-lg-on-md",insetXlOnMd:"pf-m-inset-xl-on-md",inset_2xlOnMd:"pf-m-inset-2xl-on-md",inset_3xlOnMd:"pf-m-inset-3xl-on-md",inset_4xlOnMd:"pf-m-inset-4xl-on-md",wrapOnMd:"pf-m-wrap-on-md",nowrapOnMd:"pf-m-nowrap-on-md",alignItemsStretchOnMd:"pf-m-align-items-stretch-on-md",alignItemsBaselineOnMd:"pf-m-align-items-baseline-on-md",alignItemsStartOnMd:"pf-m-align-items-start-on-md",alignItemsCenterOnMd:"pf-m-align-items-center-on-md",alignItemsEndOnMd:"pf-m-align-items-end-on-md",gapNoneOnMd:"pf-m-gap-none-on-md",gapXsOnMd:"pf-m-gap-xs-on-md",gapSmOnMd:"pf-m-gap-sm-on-md",gapMdOnMd:"pf-m-gap-md-on-md",gapLgOnMd:"pf-m-gap-lg-on-md",gapXlOnMd:"pf-m-gap-xl-on-md",gap_2xlOnMd:"pf-m-gap-2xl-on-md",gap_3xlOnMd:"pf-m-gap-3xl-on-md",gap_4xlOnMd:"pf-m-gap-4xl-on-md",columnGapNoneOnMd:"pf-m-column-gap-none-on-md",rowGapNoneOnMd:"pf-m-row-gap-none-on-md",columnGapXsOnMd:"pf-m-column-gap-xs-on-md",rowGapXsOnMd:"pf-m-row-gap-xs-on-md",columnGapSmOnMd:"pf-m-column-gap-sm-on-md",rowGapSmOnMd:"pf-m-row-gap-sm-on-md",columnGapMdOnMd:"pf-m-column-gap-md-on-md",rowGapMdOnMd:"pf-m-row-gap-md-on-md",columnGapLgOnMd:"pf-m-column-gap-lg-on-md",rowGapLgOnMd:"pf-m-row-gap-lg-on-md",columnGapXlOnMd:"pf-m-column-gap-xl-on-md",rowGapXlOnMd:"pf-m-row-gap-xl-on-md",columnGap_2xlOnMd:"pf-m-column-gap-2xl-on-md",rowGap_2xlOnMd:"pf-m-row-gap-2xl-on-md",columnGap_3xlOnMd:"pf-m-column-gap-3xl-on-md",rowGap_3xlOnMd:"pf-m-row-gap-3xl-on-md",columnGap_4xlOnMd:"pf-m-column-gap-4xl-on-md",rowGap_4xlOnMd:"pf-m-row-gap-4xl-on-md",showOnMd:"pf-m-show-on-md",hideOnMd:"pf-m-hide-on-md",alignStartOnLg:"pf-m-align-start-on-lg",alignCenterOnLg:"pf-m-align-center-on-lg",alignEndOnLg:"pf-m-align-end-on-lg",flexGrowOnLg:"pf-m-flex-grow-on-lg",alignSelfStretchOnLg:"pf-m-align-self-stretch-on-lg",alignSelfBaselineOnLg:"pf-m-align-self-baseline-on-lg",alignSelfStartOnLg:"pf-m-align-self-start-on-lg",alignSelfCenterOnLg:"pf-m-align-self-center-on-lg",alignSelfEndOnLg:"pf-m-align-self-end-on-lg",insetNoneOnLg:"pf-m-inset-none-on-lg",insetXsOnLg:"pf-m-inset-xs-on-lg",insetSmOnLg:"pf-m-inset-sm-on-lg",insetMdOnLg:"pf-m-inset-md-on-lg",insetLgOnLg:"pf-m-inset-lg-on-lg",insetXlOnLg:"pf-m-inset-xl-on-lg",inset_2xlOnLg:"pf-m-inset-2xl-on-lg",inset_3xlOnLg:"pf-m-inset-3xl-on-lg",inset_4xlOnLg:"pf-m-inset-4xl-on-lg",wrapOnLg:"pf-m-wrap-on-lg",nowrapOnLg:"pf-m-nowrap-on-lg",alignItemsStretchOnLg:"pf-m-align-items-stretch-on-lg",alignItemsBaselineOnLg:"pf-m-align-items-baseline-on-lg",alignItemsStartOnLg:"pf-m-align-items-start-on-lg",alignItemsCenterOnLg:"pf-m-align-items-center-on-lg",alignItemsEndOnLg:"pf-m-align-items-end-on-lg",gapNoneOnLg:"pf-m-gap-none-on-lg",gapXsOnLg:"pf-m-gap-xs-on-lg",gapSmOnLg:"pf-m-gap-sm-on-lg",gapMdOnLg:"pf-m-gap-md-on-lg",gapLgOnLg:"pf-m-gap-lg-on-lg",gapXlOnLg:"pf-m-gap-xl-on-lg",gap_2xlOnLg:"pf-m-gap-2xl-on-lg",gap_3xlOnLg:"pf-m-gap-3xl-on-lg",gap_4xlOnLg:"pf-m-gap-4xl-on-lg",columnGapNoneOnLg:"pf-m-column-gap-none-on-lg",rowGapNoneOnLg:"pf-m-row-gap-none-on-lg",columnGapXsOnLg:"pf-m-column-gap-xs-on-lg",rowGapXsOnLg:"pf-m-row-gap-xs-on-lg",columnGapSmOnLg:"pf-m-column-gap-sm-on-lg",rowGapSmOnLg:"pf-m-row-gap-sm-on-lg",columnGapMdOnLg:"pf-m-column-gap-md-on-lg",rowGapMdOnLg:"pf-m-row-gap-md-on-lg",columnGapLgOnLg:"pf-m-column-gap-lg-on-lg",rowGapLgOnLg:"pf-m-row-gap-lg-on-lg",columnGapXlOnLg:"pf-m-column-gap-xl-on-lg",rowGapXlOnLg:"pf-m-row-gap-xl-on-lg",columnGap_2xlOnLg:"pf-m-column-gap-2xl-on-lg",rowGap_2xlOnLg:"pf-m-row-gap-2xl-on-lg",columnGap_3xlOnLg:"pf-m-column-gap-3xl-on-lg",rowGap_3xlOnLg:"pf-m-row-gap-3xl-on-lg",columnGap_4xlOnLg:"pf-m-column-gap-4xl-on-lg",rowGap_4xlOnLg:"pf-m-row-gap-4xl-on-lg",showOnLg:"pf-m-show-on-lg",hideOnLg:"pf-m-hide-on-lg",alignStartOnXl:"pf-m-align-start-on-xl",alignCenterOnXl:"pf-m-align-center-on-xl",alignEndOnXl:"pf-m-align-end-on-xl",flexGrowOnXl:"pf-m-flex-grow-on-xl",alignSelfStretchOnXl:"pf-m-align-self-stretch-on-xl",alignSelfBaselineOnXl:"pf-m-align-self-baseline-on-xl",alignSelfStartOnXl:"pf-m-align-self-start-on-xl",alignSelfCenterOnXl:"pf-m-align-self-center-on-xl",alignSelfEndOnXl:"pf-m-align-self-end-on-xl",insetNoneOnXl:"pf-m-inset-none-on-xl",insetXsOnXl:"pf-m-inset-xs-on-xl",insetSmOnXl:"pf-m-inset-sm-on-xl",insetMdOnXl:"pf-m-inset-md-on-xl",insetLgOnXl:"pf-m-inset-lg-on-xl",insetXlOnXl:"pf-m-inset-xl-on-xl",inset_2xlOnXl:"pf-m-inset-2xl-on-xl",inset_3xlOnXl:"pf-m-inset-3xl-on-xl",inset_4xlOnXl:"pf-m-inset-4xl-on-xl",wrapOnXl:"pf-m-wrap-on-xl",nowrapOnXl:"pf-m-nowrap-on-xl",alignItemsStretchOnXl:"pf-m-align-items-stretch-on-xl",alignItemsBaselineOnXl:"pf-m-align-items-baseline-on-xl",alignItemsStartOnXl:"pf-m-align-items-start-on-xl",alignItemsCenterOnXl:"pf-m-align-items-center-on-xl",alignItemsEndOnXl:"pf-m-align-items-end-on-xl",gapNoneOnXl:"pf-m-gap-none-on-xl",gapXsOnXl:"pf-m-gap-xs-on-xl",gapSmOnXl:"pf-m-gap-sm-on-xl",gapMdOnXl:"pf-m-gap-md-on-xl",gapLgOnXl:"pf-m-gap-lg-on-xl",gapXlOnXl:"pf-m-gap-xl-on-xl",gap_2xlOnXl:"pf-m-gap-2xl-on-xl",gap_3xlOnXl:"pf-m-gap-3xl-on-xl",gap_4xlOnXl:"pf-m-gap-4xl-on-xl",columnGapNoneOnXl:"pf-m-column-gap-none-on-xl",rowGapNoneOnXl:"pf-m-row-gap-none-on-xl",columnGapXsOnXl:"pf-m-column-gap-xs-on-xl",rowGapXsOnXl:"pf-m-row-gap-xs-on-xl",columnGapSmOnXl:"pf-m-column-gap-sm-on-xl",rowGapSmOnXl:"pf-m-row-gap-sm-on-xl",columnGapMdOnXl:"pf-m-column-gap-md-on-xl",rowGapMdOnXl:"pf-m-row-gap-md-on-xl",columnGapLgOnXl:"pf-m-column-gap-lg-on-xl",rowGapLgOnXl:"pf-m-row-gap-lg-on-xl",columnGapXlOnXl:"pf-m-column-gap-xl-on-xl",rowGapXlOnXl:"pf-m-row-gap-xl-on-xl",columnGap_2xlOnXl:"pf-m-column-gap-2xl-on-xl",rowGap_2xlOnXl:"pf-m-row-gap-2xl-on-xl",columnGap_3xlOnXl:"pf-m-column-gap-3xl-on-xl",rowGap_3xlOnXl:"pf-m-row-gap-3xl-on-xl",columnGap_4xlOnXl:"pf-m-column-gap-4xl-on-xl",rowGap_4xlOnXl:"pf-m-row-gap-4xl-on-xl",showOnXl:"pf-m-show-on-xl",hideOnXl:"pf-m-hide-on-xl",alignStartOn_2xl:"pf-m-align-start-on-2xl",alignCenterOn_2xl:"pf-m-align-center-on-2xl",alignEndOn_2xl:"pf-m-align-end-on-2xl",flexGrowOn_2xl:"pf-m-flex-grow-on-2xl",alignSelfStretchOn_2xl:"pf-m-align-self-stretch-on-2xl",alignSelfBaselineOn_2xl:"pf-m-align-self-baseline-on-2xl",alignSelfStartOn_2xl:"pf-m-align-self-start-on-2xl",alignSelfCenterOn_2xl:"pf-m-align-self-center-on-2xl",alignSelfEndOn_2xl:"pf-m-align-self-end-on-2xl",insetNoneOn_2xl:"pf-m-inset-none-on-2xl",insetXsOn_2xl:"pf-m-inset-xs-on-2xl",insetSmOn_2xl:"pf-m-inset-sm-on-2xl",insetMdOn_2xl:"pf-m-inset-md-on-2xl",insetLgOn_2xl:"pf-m-inset-lg-on-2xl",insetXlOn_2xl:"pf-m-inset-xl-on-2xl",inset_2xlOn_2xl:"pf-m-inset-2xl-on-2xl",inset_3xlOn_2xl:"pf-m-inset-3xl-on-2xl",inset_4xlOn_2xl:"pf-m-inset-4xl-on-2xl",wrapOn_2xl:"pf-m-wrap-on-2xl",nowrapOn_2xl:"pf-m-nowrap-on-2xl",alignItemsStretchOn_2xl:"pf-m-align-items-stretch-on-2xl",alignItemsBaselineOn_2xl:"pf-m-align-items-baseline-on-2xl",alignItemsStartOn_2xl:"pf-m-align-items-start-on-2xl",alignItemsCenterOn_2xl:"pf-m-align-items-center-on-2xl",alignItemsEndOn_2xl:"pf-m-align-items-end-on-2xl",gapNoneOn_2xl:"pf-m-gap-none-on-2xl",gapXsOn_2xl:"pf-m-gap-xs-on-2xl",gapSmOn_2xl:"pf-m-gap-sm-on-2xl",gapMdOn_2xl:"pf-m-gap-md-on-2xl",gapLgOn_2xl:"pf-m-gap-lg-on-2xl",gapXlOn_2xl:"pf-m-gap-xl-on-2xl",gap_2xlOn_2xl:"pf-m-gap-2xl-on-2xl",gap_3xlOn_2xl:"pf-m-gap-3xl-on-2xl",gap_4xlOn_2xl:"pf-m-gap-4xl-on-2xl",columnGapNoneOn_2xl:"pf-m-column-gap-none-on-2xl",rowGapNoneOn_2xl:"pf-m-row-gap-none-on-2xl",columnGapXsOn_2xl:"pf-m-column-gap-xs-on-2xl",rowGapXsOn_2xl:"pf-m-row-gap-xs-on-2xl",columnGapSmOn_2xl:"pf-m-column-gap-sm-on-2xl",rowGapSmOn_2xl:"pf-m-row-gap-sm-on-2xl",columnGapMdOn_2xl:"pf-m-column-gap-md-on-2xl",rowGapMdOn_2xl:"pf-m-row-gap-md-on-2xl",columnGapLgOn_2xl:"pf-m-column-gap-lg-on-2xl",rowGapLgOn_2xl:"pf-m-row-gap-lg-on-2xl",columnGapXlOn_2xl:"pf-m-column-gap-xl-on-2xl",rowGapXlOn_2xl:"pf-m-row-gap-xl-on-2xl",columnGap_2xlOn_2xl:"pf-m-column-gap-2xl-on-2xl",rowGap_2xlOn_2xl:"pf-m-row-gap-2xl-on-2xl",columnGap_3xlOn_2xl:"pf-m-column-gap-3xl-on-2xl",rowGap_3xlOn_2xl:"pf-m-row-gap-3xl-on-2xl",columnGap_4xlOn_2xl:"pf-m-column-gap-4xl-on-2xl",rowGap_4xlOn_2xl:"pf-m-row-gap-4xl-on-2xl",showOn_2xl:"pf-m-show-on-2xl",hideOn_2xl:"pf-m-hide-on-2xl"},pagination:"pf-v6-c-pagination",toolbar:"pf-v6-c-toolbar",toolbarContent:"pf-v6-c-toolbar__content",toolbarContentSection:"pf-v6-c-toolbar__content-section",toolbarExpandAllIcon:"pf-v6-c-toolbar__expand-all-icon",toolbarExpandableContent:"pf-v6-c-toolbar__expandable-content",toolbarGroup:"pf-v6-c-toolbar__group",toolbarItem:"pf-v6-c-toolbar__item",toolbarToggle:"pf-v6-c-toolbar__toggle"},Ln=e.createContext({isExpanded:!1,toggleIsExpanded:()=>{},labelGroupContentRef:null,updateNumberFilters:()=>{},numberOfFilters:0,clearAllFilters:()=>{}}),St=e.createContext({expandableContentRef:null,expandableContentId:"",labelContainerRef:null,clearAllFilters:()=>{}}),Et={md:parseInt(jn.value)*16,lg:parseInt(An.value)*16,xl:parseInt(Bn.value)*16,"2xl":parseInt(Hn.value)*16};var Ce;(function(n){n.separator="separator",n.pagination="pagination",n.label="label",n["label-group"]="label-group",n["expand-all"]="expand-all"})(Ce||(Ce={}));const Q=n=>{var{className:t,variant:l,visibility:a,gap:i,columnGap:o,rowGap:f,align:g,alignSelf:w,alignItems:u,id:d,children:c,isAllExpanded:s,isOverflowContainer:v}=n,x=T(n,["className","variant","visibility","gap","columnGap","rowGap","align","alignSelf","alignItems","id","children","isAllExpanded","isOverflowContainer"]);return l===Ce.separator?e.createElement($e,Object.assign({className:p(t),orientation:{default:"vertical"}},x)):e.createElement(ye.Consumer,null,({width:m,getBreakpoint:r})=>e.createElement("div",Object.assign({className:p(h.toolbarItem,l&&h.modifiers[fn(l)],l===Ce["label-group"]&&h.modifiers.labelGroup,s&&h.modifiers.expanded,v&&h.modifiers.overflowContainer,K(a,h,"",r(m)),K(g,h,"",r(m)),K(i,h,"",r(m)),K(o,h,"",r(m)),K(f,h,"",r(m)),u==="start"&&h.modifiers.alignItemsStart,u==="center"&&h.modifiers.alignItemsCenter,u==="baseline"&&h.modifiers.alignItemsBaseline,w==="start"&&h.modifiers.alignSelfStart,w==="center"&&h.modifiers.alignSelfCenter,w==="baseline"&&h.modifiers.alignSelfBaseline,t)},l==="label"&&{"aria-hidden":!0},{id:d},x),c))};Q.displayName="ToolbarItem";var rn;(function(n){n["filter-group"]="filter-group",n["action-group"]="action-group",n["action-group-inline"]="action-group-inline",n["action-group-plain"]="action-group-plain",n["label-group"]="label-group"})(rn||(rn={}));class yt extends e.Component{render(){const t=this.props,{visibility:l,align:a,alignItems:i,alignSelf:o,gap:f,columnGap:g,rowGap:w,className:u,variant:d,children:c,isOverflowContainer:s,innerRef:v}=t,x=T(t,["visibility","align","alignItems","alignSelf","gap","columnGap","rowGap","className","variant","children","isOverflowContainer","innerRef"]);return e.createElement(ye.Consumer,null,({width:m,getBreakpoint:r})=>e.createElement("div",Object.assign({className:p(h.toolbarGroup,d&&h.modifiers[fn(d)],K(l,h,"",r(m)),K(a,h,"",r(m)),K(f,h,"",r(m)),K(g,h,"",r(m)),K(w,h,"",r(m)),i==="start"&&h.modifiers.alignItemsStart,i==="center"&&h.modifiers.alignItemsCenter,i==="baseline"&&h.modifiers.alignItemsBaseline,o==="start"&&h.modifiers.alignSelfStart,o==="center"&&h.modifiers.alignSelfCenter,o==="baseline"&&h.modifiers.alignSelfBaseline,s&&h.modifiers.overflowContainer,u)},x,{ref:v}),c))}}const Ie=e.forwardRef((n,t)=>e.createElement(yt,Object.assign({},n,{innerRef:t})));class qe extends e.Component{render(){const t=this.props,{className:l,isExpanded:a,labelGroupContentRef:i,clearAllFilters:o,showClearFiltersButton:f,clearFiltersButtonText:g,collapseListedFiltersBreakpoint:w,numberOfFilters:u,numberOfFiltersText:d,customLabelGroupContent:c}=t,s=T(t,["className","isExpanded","labelGroupContentRef","clearAllFilters","showClearFiltersButton","clearFiltersButtonText","collapseListedFiltersBreakpoint","numberOfFilters","numberOfFiltersText","customLabelGroupContent"]),v=()=>{o()};let x=!1;w==="all"?x=!0:q&&(x=(q?window.innerWidth:1200)<Et[w]);const m=u===0||a,r=x&&u>0&&!a,S=f&&!a&&!c;return e.createElement("div",Object.assign({className:p(h.toolbarContent,m&&h.modifiers.hidden,l)},(u===0||a)&&{hidden:!0},{ref:i},s),e.createElement(Ie,Object.assign({className:p(x&&h.modifiers.hidden)},x&&{hidden:!0},x&&{"aria-hidden":!0})),(r||S||c)&&e.createElement(Ie,{variant:"action-group-inline"},r&&e.createElement(Q,null,d(u)),S&&e.createElement(Q,null,e.createElement(de,{variant:"link",onClick:v,isInline:!0},g)),c&&c))}}qe.displayName="ToolbarLabelGroupContent";qe.defaultProps={clearFiltersButtonText:"Clear all filters",collapseListedFiltersBreakpoint:"lg",numberOfFiltersText:n=>`${n} filters applied`};var Ue;(function(n){n.default="default",n.primary="primary",n.secondary="secondary",n.noBackground="no-background"})(Ue||(Ue={}));let Mn=class Ke extends e.Component{constructor(){super(...arguments),this.labelGroupContentRef=e.createRef(),this.staticFilterInfo={},this.state={isManagedToggleExpanded:!1,filterInfo:{},windowWidth:q?window.innerWidth:1200,ouiaStateId:Se(Ke.displayName)},this.isToggleManaged=()=>!(this.props.isExpanded||this.props.toggleIsExpanded),this.toggleIsExpanded=()=>{this.setState(t=>({isManagedToggleExpanded:!t.isManagedToggleExpanded}))},this.closeExpandableContent=t=>{t.target.innerWidth!==this.state.windowWidth&&this.setState(()=>({isManagedToggleExpanded:!1,windowWidth:t.target.innerWidth}))},this.updateNumberFilters=(t,l)=>{const a=Object.assign({},this.staticFilterInfo);(!a.hasOwnProperty(t)||a[t]!==l)&&(a[t]=l,this.staticFilterInfo=a,this.setState({filterInfo:a}))},this.getNumberOfFilters=()=>Object.values(this.state.filterInfo).reduce((t,l)=>t+l,0),this.renderToolbar=t=>{const l=this.props,{clearAllFilters:a,clearFiltersButtonText:i,collapseListedFiltersBreakpoint:o,isExpanded:f,toggleIsExpanded:g,className:w,children:u,isFullHeight:d,isStatic:c,inset:s,isSticky:v,ouiaId:x,numberOfFiltersText:m,customLabelGroupContent:r,colorVariant:S=Ue.default}=l,I=T(l,["clearAllFilters","clearFiltersButtonText","collapseListedFiltersBreakpoint","isExpanded","toggleIsExpanded","className","children","isFullHeight","isStatic","inset","isSticky","ouiaId","numberOfFiltersText","customLabelGroupContent","colorVariant"]),{isManagedToggleExpanded:M}=this.state,F=this.isToggleManaged(),N=F?M:f,A=this.getNumberOfFilters(),R=A>0;return e.createElement(ye.Consumer,null,({width:G,getBreakpoint:_})=>e.createElement("div",Object.assign({className:p(h.toolbar,d&&h.modifiers.fullHeight,c&&h.modifiers.static,v&&h.modifiers.sticky,K(s,h,"",_(G)),S==="primary"&&h.modifiers.primary,S==="secondary"&&h.modifiers.secondary,S==="no-background"&&h.modifiers.noBackground,w),id:t},Ee(Ke.displayName,x!==void 0?x:this.state.ouiaStateId),I),e.createElement(Ln.Provider,{value:{isExpanded:N,toggleIsExpanded:F?this.toggleIsExpanded:g,labelGroupContentRef:this.labelGroupContentRef,updateNumberFilters:this.updateNumberFilters,numberOfFilters:A,clearAllFilters:a,clearFiltersButtonText:i,showClearFiltersButton:R,toolbarId:t,customLabelGroupContent:r}},u,e.createElement(qe,{isExpanded:N,labelGroupContentRef:this.labelGroupContentRef,clearAllFilters:a,showClearFiltersButton:R,clearFiltersButtonText:i,numberOfFilters:A,numberOfFiltersText:m,collapseListedFiltersBreakpoint:o,customLabelGroupContent:r}))))}}componentDidMount(){this.isToggleManaged()&&q&&window.addEventListener("resize",this.closeExpandableContent)}componentWillUnmount(){this.isToggleManaged()&&q&&window.removeEventListener("resize",this.closeExpandableContent)}render(){return this.props.id?this.renderToolbar(this.props.id):e.createElement(_e,null,t=>this.renderToolbar(t))}};Mn.displayName="Toolbar";class ce extends e.Component{constructor(){super(...arguments),this.expandableContentRef=e.createRef(),this.labelContainerRef=e.createRef()}render(){const t=this.props,{className:l,children:a,isExpanded:i,toolbarId:o,visibility:f,alignItems:g,clearAllFilters:w,showClearFiltersButton:u,clearFiltersButtonText:d}=t,c=T(t,["className","children","isExpanded","toolbarId","visibility","alignItems","clearAllFilters","showClearFiltersButton","clearFiltersButtonText"]);return e.createElement(ye.Consumer,null,({width:s,getBreakpoint:v})=>e.createElement("div",Object.assign({className:p(h.toolbarContent,K(f,h,"",v(s)),l),ref:this.expandableContentRef},c),e.createElement(Ln.Consumer,null,({clearAllFilters:x,clearFiltersButtonText:m,showClearFiltersButton:r,isExpanded:S,toolbarId:I})=>{const M=`${o||I}-expandable-content-${ce.currentId++}`;return e.createElement(St.Provider,{value:{expandableContentRef:this.expandableContentRef,expandableContentId:M,labelContainerRef:this.labelContainerRef,isExpanded:i||S,clearAllFilters:w||x,clearFiltersButtonText:d||m,showClearFiltersButton:u||r}},e.createElement("div",{className:p(h.toolbarContentSection,g==="center"&&h.modifiers.alignItemsCenter,g==="start"&&h.modifiers.alignItemsStart,g==="baseline"&&h.modifiers.alignItemsBaseline)},a))})))}}ce.displayName="ToolbarContent";ce.currentId=0;ce.defaultProps={isExpanded:!1,showClearFiltersButton:!1};const _t={name:"CogIcon",height:512,width:512,svgPath:"M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z",yOffset:0,xOffset:0},Nn=$(_t),Lt={name:"EllipsisVIcon",height:512,width:192,svgPath:"M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z",yOffset:0,xOffset:0},mn=$(Lt),Mt="/avatarImg.svg",Nt={name:"HelpIcon",height:1024,width:1024,svgPath:"M521.3,576 C627.5,576 713.7,502 713.7,413.7 C713.7,325.4 627.6,253.6 521.3,253.6 C366,253.6 334.5,337.7 329.2,407.2 C329.2,414.3 335.2,416 343.5,416 L445,416 C450.5,416 458,415.5 460.8,406.5 C460.8,362.6 582.9,357.1 582.9,413.6 C582.9,441.9 556.2,470.9 521.3,473 C486.4,475.1 447.3,479.8 447.3,521.7 L447.3,553.8 C447.3,570.8 456.1,576 472,576 C487.9,576 521.3,576 521.3,576 M575.3,751.3 L575.3,655.3 C575.313862,651.055109 573.620137,646.982962 570.6,644 C567.638831,640.947672 563.552355,639.247987 559.3,639.29884 L463.3,639.29884 C459.055109,639.286138 454.982962,640.979863 452,644 C448.947672,646.961169 447.247987,651.047645 447.29884,655.3 L447.29884,751.3 C447.286138,755.544891 448.979863,759.617038 452,762.6 C454.961169,765.652328 459.047645,767.352013 463.3,767.30116 L559.3,767.30116 C563.544891,767.313862 567.617038,765.620137 570.6,762.6 C573.659349,759.643612 575.360354,755.553963 575.3,751.3 M512,896 C300.2,896 128,723.9 128,512 C128,300.3 300.2,128 512,128 C723.8,128 896,300.2 896,512 C896,723.8 723.7,896 512,896 M512.1,0 C229.7,0 0,229.8 0,512 C0,794.2 229.8,1024 512.1,1024 C794.4,1024 1024,794.3 1024,512 C1024,229.7 794.4,0 512.1,0",yOffset:0,xOffset:0},Gt=$(Nt),cn=()=>b.jsxs(b.Fragment,{children:[b.jsxs(le,{children:[b.jsx(Nn,{})," Settings"]}),b.jsxs(le,{children:[b.jsx(Gt,{})," Help"]})]}),pn=()=>b.jsxs(b.Fragment,{children:[b.jsx(le,{children:"My profile"},"group 2 profile"),b.jsx(le,{children:"User management"},"group 2 user"),b.jsx(le,{children:"Logout"},"group 2 logout")]}),Xt=()=>{const[n,t]=e.useState(!1),[l,a]=e.useState(!1),[i,o]=e.useState(!1),f=()=>{t(!n)},g=()=>{t(!1)},w=()=>{a(!l)},u=()=>{a(!1)},d=()=>{o(!i)},c=()=>{o(!1)};return b.jsx(Mn,{id:"toolbar",isStatic:!0,children:b.jsxs(ce,{children:[b.jsxs(Ie,{variant:"action-group-plain",align:{default:"alignEnd"},gap:{default:"gapNone",md:"gapMd"},children:[b.jsx(Q,{children:b.jsx(de,{"aria-label":"Notifications",variant:Ae.plain,icon:b.jsx(Jn,{})})}),b.jsxs(Ie,{variant:"action-group-plain",visibility:{default:"hidden",lg:"visible"},children:[b.jsx(Q,{children:b.jsx(de,{"aria-label":"Settings",variant:Ae.plain,icon:b.jsx(Nn,{})})}),b.jsx(Q,{children:b.jsx(de,{"aria-label":"Help",variant:Ae.plain,icon:b.jsx(It,{})})})]}),b.jsx(Q,{visibility:{default:"hidden",md:"visible",lg:"hidden"},children:b.jsx(ge,{isOpen:l,onSelect:u,onOpenChange:s=>a(s),popperProps:{position:"right"},toggle:s=>b.jsx(re,{ref:s,onClick:w,isExpanded:l,variant:"plain","aria-label":"Settings and help",children:b.jsx(mn,{"aria-hidden":"true"})}),children:b.jsx(pe,{children:b.jsx(cn,{})})})}),b.jsx(Q,{visibility:{md:"hidden"},children:b.jsxs(ge,{isOpen:i,onSelect:c,onOpenChange:s=>o(s),popperProps:{position:"right"},toggle:s=>b.jsx(re,{ref:s,onClick:d,isExpanded:i,variant:"plain","aria-label":"Toolbar menu",children:b.jsx(mn,{"aria-hidden":"true"})}),children:[b.jsx(_n,{"aria-label":"User actions",children:b.jsx(pe,{children:b.jsx(pn,{})})},"group 2"),b.jsx($e,{}),b.jsx(pe,{children:b.jsx(cn,{})})]})})]}),b.jsx(Q,{visibility:{default:"hidden",md:"visible"},children:b.jsx(ge,{isOpen:n,onSelect:g,onOpenChange:s=>t(s),popperProps:{position:"right"},toggle:s=>b.jsx(re,{ref:s,onClick:f,isExpanded:n,icon:b.jsx(bn,{src:Mt,alt:"",size:"sm"}),children:"Ned Username"}),children:b.jsx(pe,{children:b.jsx(pn,{})})})})]})})};export{Xt as Toolbar};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
import { Breadcrumb, BreadcrumbItem } from '@patternfly/react-core'
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
<Breadcrumb>
|
|
6
|
-
<BreadcrumbItem>Section home</BreadcrumbItem>
|
|
7
|
-
<BreadcrumbItem to="#">Section title</BreadcrumbItem>
|
|
8
|
-
<BreadcrumbItem to="#">Section title</BreadcrumbItem>
|
|
9
|
-
<BreadcrumbItem to="#" isActive> Section landing </BreadcrumbItem>
|
|
10
|
-
</Breadcrumb>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
import { DropdownItem } from '@patternfly/react-core'
|
|
3
|
-
import CogIcon from '@patternfly/react-icons/dist/esm/icons/cog-icon'
|
|
4
|
-
import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon'
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
<>
|
|
8
|
-
<DropdownItem>
|
|
9
|
-
<CogIcon /> Settings
|
|
10
|
-
</DropdownItem>
|
|
11
|
-
<DropdownItem>
|
|
12
|
-
<HelpIcon /> Help
|
|
13
|
-
</DropdownItem>
|
|
14
|
-
</>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { DropdownItem } from '@patternfly/react-core'
|
|
3
|
-
import CogIcon from '@patternfly/react-icons/dist/esm/icons/cog-icon'
|
|
4
|
-
import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon'
|
|
5
|
-
|
|
6
|
-
export const KebabDropdownItems: React.FunctionComponent = () => (
|
|
7
|
-
<>
|
|
8
|
-
<DropdownItem>
|
|
9
|
-
<CogIcon /> Settings
|
|
10
|
-
</DropdownItem>
|
|
11
|
-
<DropdownItem>
|
|
12
|
-
<HelpIcon /> Help
|
|
13
|
-
</DropdownItem>
|
|
14
|
-
</>
|
|
15
|
-
)
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
import { DropdownItem } from '@patternfly/react-core'
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
<>
|
|
6
|
-
<DropdownItem key="group 2 profile">My profile</DropdownItem>
|
|
7
|
-
<DropdownItem key="group 2 user">User management</DropdownItem>
|
|
8
|
-
<DropdownItem key="group 2 logout">Logout</DropdownItem>
|
|
9
|
-
</>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { DropdownItem } from '@patternfly/react-core'
|
|
3
|
-
|
|
4
|
-
export const UserDropdownItems: React.FunctionComponent = () => (
|
|
5
|
-
<>
|
|
6
|
-
<DropdownItem key="group 2 profile">My profile</DropdownItem>
|
|
7
|
-
<DropdownItem key="group 2 user">User management</DropdownItem>
|
|
8
|
-
<DropdownItem key="group 2 logout">Logout</DropdownItem>
|
|
9
|
-
</>
|
|
10
|
-
)
|