@patternfly/react-table 4.56.2 → 4.58.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/CHANGELOG.md +38 -0
- package/dist/esm/components/Table/Body.d.ts.map +1 -1
- package/dist/esm/components/Table/Body.js +12 -7
- package/dist/esm/components/Table/Body.js.map +1 -1
- package/dist/js/components/Table/Body.d.ts.map +1 -1
- package/dist/js/components/Table/Body.js +12 -7
- package/dist/js/components/Table/Body.js.map +1 -1
- package/dist/umd/react-table.js +12 -7
- package/dist/umd/react-table.min.js +1 -1
- package/package.json +6 -6
- package/src/components/Table/Body.tsx +13 -7
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,44 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 4.58.1 (2022-01-18)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @patternfly/react-table
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# 4.58.0 (2022-01-17)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **Tabs:** enforce restricted type for children ([#6767](https://github.com/patternfly/patternfly-react/issues/6767)) ([0d224df](https://github.com/patternfly/patternfly-react/commit/0d224dfb71b1a89c5783bd9ea290ece2f325ad21))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## 4.57.1 (2022-01-17)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @patternfly/react-table
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# 4.57.0 (2022-01-14)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Features
|
|
37
|
+
|
|
38
|
+
* **DescriptionList:** add option to fill columns first ([#6736](https://github.com/patternfly/patternfly-react/issues/6736)) ([c955c29](https://github.com/patternfly/patternfly-react/commit/c955c2917dbc4b85ce58fac4f93845c429186e1b))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
6
44
|
## 4.56.2 (2022-01-14)
|
|
7
45
|
|
|
8
46
|
**Note:** Version bump only for package @patternfly/react-table
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Body.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/Body.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAW,UAAU,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,IAAI,EAAY,aAAa,EAAE,MAAM,cAAc,CAAC;AAI7D,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,oBAAY,UAAU,GAAG,CACvB,KAAK,EAAE,KAAK,CAAC,aAAa,GAAG,KAAK,CAAC,UAAU,EAC7C,GAAG,EAAE,IAAI,EACT,QAAQ,EAAE,aAAa,EACvB,YAAY,EAAE,aAAa,KACxB,IAAI,CAAC;AAEV,MAAM,WAAW,cAAc;IAC7B,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kDAAkD;IAClD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,kDAAkD;IAClD,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC;IACpB,kDAAkD;IAClD,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC;IACd,kDAAkD;IAClD,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,mCAAmC;IACnC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,kDAAkD;IAClD,KAAK,CAAC,EAAE,QAAQ,CAAC;CAClB;
|
|
1
|
+
{"version":3,"file":"Body.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/Body.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAW,UAAU,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,IAAI,EAAY,aAAa,EAAE,MAAM,cAAc,CAAC;AAI7D,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,oBAAY,UAAU,GAAG,CACvB,KAAK,EAAE,KAAK,CAAC,aAAa,GAAG,KAAK,CAAC,UAAU,EAC7C,GAAG,EAAE,IAAI,EACT,QAAQ,EAAE,aAAa,EACvB,YAAY,EAAE,aAAa,KACxB,IAAI,CAAC;AAEV,MAAM,WAAW,cAAc;IAC7B,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kDAAkD;IAClD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,kDAAkD;IAClD,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC;IACpB,kDAAkD;IAClD,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC;IACd,kDAAkD;IAClD,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,mCAAmC;IACnC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,kDAAkD;IAClD,KAAK,CAAC,EAAE,QAAQ,CAAC;CAClB;AAgJD,eAAO,MAAM,SAAS,iEAenB,cAAc,gBAiBhB,CAAC"}
|
|
@@ -20,20 +20,25 @@ class ContextBody extends React.Component {
|
|
|
20
20
|
row,
|
|
21
21
|
rowProps: extendedRowProps,
|
|
22
22
|
onClick: (event) => {
|
|
23
|
+
const tagName = event.target.tagName;
|
|
23
24
|
const computedData = {
|
|
24
|
-
isInput:
|
|
25
|
-
isButton:
|
|
25
|
+
isInput: tagName === 'INPUT',
|
|
26
|
+
isButton: tagName === 'BUTTON'
|
|
26
27
|
};
|
|
27
28
|
onRowClick(event, row, rowProps, computedData);
|
|
28
29
|
},
|
|
29
30
|
onKeyDown: (event) => {
|
|
31
|
+
const targetElement = event.target;
|
|
32
|
+
const tagName = targetElement.tagName;
|
|
33
|
+
const computedData = {
|
|
34
|
+
isInput: tagName === 'INPUT',
|
|
35
|
+
isButton: tagName === 'BUTTON'
|
|
36
|
+
};
|
|
30
37
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
31
|
-
const computedData = {
|
|
32
|
-
isInput: event.target.tagName === 'INPUT',
|
|
33
|
-
isButton: event.target.tagName === 'BUTTON'
|
|
34
|
-
};
|
|
35
38
|
onRowClick(event, row, rowProps, computedData);
|
|
36
|
-
if
|
|
39
|
+
// prevent event default if space is typed while focusing on a hoverable row
|
|
40
|
+
// so that the page does not scroll when trying to use spacebar to select a row
|
|
41
|
+
if (event.key === ' ' && !!targetElement.closest('.pf-m-hoverable')) {
|
|
37
42
|
event.preventDefault();
|
|
38
43
|
}
|
|
39
44
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Body.js","sourceRoot":"","sources":["../../../../src/components/Table/Body.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAG1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AA+BxC,MAAM,cAAc,GAAG,CAAC,IAAY,EAAE,EAAE;IACtC,MAAM,WAAW,GAAI,IAAe,CAAC,MAAM,CAAC,CAAC,MAAY,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,UAAU,CAAW,CAAC;IAC7G,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE;QAC1B,WAAW,CAAC,CAAC,CAAC,CAAC,cAAc,GAAG,IAAI,CAAC;QACrC,WAAW,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,aAAa,GAAG,IAAI,CAAC;KAC1D;AACH,CAAC,CAAC;AAMF,MAAM,WAAY,SAAQ,KAAK,CAAC,SAA6B;IAA7D;;QACE,UAAK,GAAG,CAAC,GAAS,EAAE,QAAa,EAAE,EAAE;YACnC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;YACzC,MAAM,gBAAgB,mCACjB,QAAQ,GACR,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CACvC,CAAC;YACF,OAAO;gBACL,GAAG;gBACH,QAAQ,EAAE,gBAAgB;gBAC1B,OAAO,EAAE,CAAC,KAAuB,EAAE,EAAE;oBACnC,MAAM,
|
|
1
|
+
{"version":3,"file":"Body.js","sourceRoot":"","sources":["../../../../src/components/Table/Body.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAG1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AA+BxC,MAAM,cAAc,GAAG,CAAC,IAAY,EAAE,EAAE;IACtC,MAAM,WAAW,GAAI,IAAe,CAAC,MAAM,CAAC,CAAC,MAAY,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,UAAU,CAAW,CAAC;IAC7G,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE;QAC1B,WAAW,CAAC,CAAC,CAAC,CAAC,cAAc,GAAG,IAAI,CAAC;QACrC,WAAW,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,aAAa,GAAG,IAAI,CAAC;KAC1D;AACH,CAAC,CAAC;AAMF,MAAM,WAAY,SAAQ,KAAK,CAAC,SAA6B;IAA7D;;QACE,UAAK,GAAG,CAAC,GAAS,EAAE,QAAa,EAAE,EAAE;YACnC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;YACzC,MAAM,gBAAgB,mCACjB,QAAQ,GACR,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CACvC,CAAC;YACF,OAAO;gBACL,GAAG;gBACH,QAAQ,EAAE,gBAAgB;gBAC1B,OAAO,EAAE,CAAC,KAAuB,EAAE,EAAE;oBACnC,MAAM,OAAO,GAAI,KAAK,CAAC,MAAsB,CAAC,OAAO,CAAC;oBACtD,MAAM,YAAY,GAAG;wBACnB,OAAO,EAAE,OAAO,KAAK,OAAO;wBAC5B,QAAQ,EAAE,OAAO,KAAK,QAAQ;qBAC/B,CAAC;oBAEF,UAAU,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;gBACjD,CAAC;gBACD,SAAS,EAAE,CAAC,KAA0B,EAAE,EAAE;oBACxC,MAAM,aAAa,GAAG,KAAK,CAAC,MAAqB,CAAC;oBAClD,MAAM,OAAO,GAAG,aAAa,CAAC,OAAO,CAAC;oBACtC,MAAM,YAAY,GAAG;wBACnB,OAAO,EAAE,OAAO,KAAK,OAAO;wBAC5B,QAAQ,EAAE,OAAO,KAAK,QAAQ;qBAC/B,CAAC;oBACF,IAAI,KAAK,CAAC,GAAG,KAAK,OAAO,IAAI,KAAK,CAAC,GAAG,KAAK,GAAG,EAAE;wBAC9C,UAAU,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;wBAE/C,4EAA4E;wBAC5E,+EAA+E;wBAC/E,IAAI,KAAK,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,aAAa,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE;4BACnE,KAAK,CAAC,cAAc,EAAE,CAAC;yBACxB;qBACF;gBACH,CAAC;aACF,CAAC;QACJ,CAAC,CAAC;QAEF,aAAQ,GAAG,CAAC,UAAkB,EAAE,GAAS,EAAE,MAAc,EAAE,EAAE;YAC3D,6FAA6F;YAC7F,MAAM,EAAE,oBAAoB,EAAE,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC;YAC3D,MAAM,WAAW,GAAG,GAAG,IAAI,GAAG,CAAC,SAAS,CAAC;YACzC,2FAA2F;YAC3F,gEAAgE;YAChE,IAAI,wBAAwB,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,oBAAoB,CAAC;YACtE,yBACK,CAAC,GAAG;gBACL,CAAC,GAAG,CAAC,KAAK,IAAI,GAAG,CAAC,CAAC,MAAM,CACvB,CAAC,GAAW,EAAE,IAAc,EAAE,SAAiB,EAAE,EAAE;oBACjD,MAAM,YAAY,GAAG,IAAI,KAAK,MAAM,CAAC,IAAI,CAAC,CAAC;oBAC3C,MAAM,cAAc,GAAG,IAAI,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,UAAU,CAAC;oBAChE,IAAI,UAAU,GAAQ,EAAE,CAAC;oBACzB,IAAI,YAAY,IAAI,IAAI,CAAC,UAAU,EAAE;wBACnC,2DAA2D;wBAC3D,sBAAsB;wBACtB,8GAA8G;wBAC9G,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;qBAC9B;yBAAM,IAAI,WAAW,IAAI,SAAS,GAAG,oBAAoB,EAAE;wBAC1D,sGAAsG;wBACtG,+CAA+C;wBAC/C,UAAU,GAAG,UAAU,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;qBAC/D;oBACD,IAAI,eAAe,GAA4C,IAAI,CAAC;oBACpE,IAAI,YAAY,IAAI,cAAc,EAAE;wBAClC,eAAe,GAAI,IAAI,CAAC,KAAkB,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;qBAC7F;yBAAM,IAAI,YAAY,EAAE;wBACvB,eAAe,GAAG,IAAI,CAAC,KAAK,CAAC;qBAC9B;oBACD,MAAM,UAAU,GAAgB;wBAC9B,CAAC,UAAU,CAAC,SAAS,GAAG,wBAAwB,CAAC,CAAC,QAAQ,CAAC,EAAE;4BAC3D,KAAK,EAAE,eAAe;4BACtB,UAAU;4BACV,KAAK,kBACH,SAAS,EAAE,IAAI,IACZ,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CACtC;yBACF;qBACF,CAAC;oBAEF,+DAA+D;oBAC/D,IAAI,YAAY,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE;wBACpD,wBAAwB,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,CAAC,CAAC;qBACpD;oBACD,uCACK,GAAG,GACH,UAAU,EACb;gBACJ,CAAC,EACD,EAAE,mBAAmB,EAAE,GAAG,CAAC,EAAE,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,CAChE,CAAC,EACJ;QACJ,CAAC,CAAC;IAoCJ,CAAC;IAlCC,MAAM;QACJ,6DAA6D;QAC7D,MAAM,KAA0E,IAAI,CAAC,KAAK,EAApF,EAAE,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,OAAyB,EAApB,KAAK,cAArE,uEAAuE,CAAa,CAAC;QAE3F,IAAI,UAAkB,CAAC;QACvB,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE;YACzB,UAAU,GAAI,IAAe,CAAC,GAAG,CAAC,CAAC,MAAY,EAAE,SAAiB,EAAE,EAAE,CAAC,+CAClE,MAAM,GACN,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,CAAC,KAC/C,UAAU,EAAE,aAAa,CAAC,MAAM,EAAE,IAAI,CAAC,EACvC,YAAY,EAAE,MAAM,CAAC,UAAU,IAAI,KAAK,EACxC,OAAO,EAAE,SAAS,KAAK,CAAC,EACxB,MAAM,EAAE,SAAS,KAAK,IAAI,CAAC,MAAM,GAAG,CAAC,EACrC,cAAc,EAAE,KAAK,EACrB,aAAa,EAAE,KAAK,IACpB,CAAW,CAAC;YACd,cAAc,CAAC,UAAU,CAAC,CAAC;SAC5B;QAED,OAAO,CACL,oBAAC,KAAK,CAAC,QAAQ,QACZ,UAAU,IAAI,CACb,oBAAC,QAAQ,oBACH,KAAK,IACT,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,UAAuB,EAC7B,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,SAAS,IACpB,CACH,CACc,CAClB,CAAC;IACJ,CAAC;CACF;AAED,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,EAeT,EAAE,EAAE;QAfK,EACxB,SAAS,GAAG,EAAY,EACxB,QAAQ,GAAG,IAAuB,EAClC,MAAM,GAAG,qBAA+B;IACxC,sDAAsD;IACtD,KAAK,GAAG,CAAC,GAAG,IAAS,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAC9B,UAAU,GAAG,CACX,KAA6C,EAC7C,GAAS,EACT,QAAuB,EACvB,YAA2B,EAC3B,EAAE;IACF,qDAAqD;IACrD,SAAuB,OAEV,EADZ,KAAK,cAdgB,0DAezB,CADS;IACY,OAAA,CACpB,oBAAC,YAAY,CAAC,QAAQ,QACnB,CAAC,EAAuC,EAAE,EAAE;YAA3C,EAAE,UAAU,GAAG,EAAE,EAAE,IAAI,GAAG,EAAE,OAAW,EAAN,IAAI,cAArC,sBAAuC,CAAF;QAAO,OAAA,CAC5C,oBAAC,WAAW,kBACV,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,IAAc,EACpB,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,UAAU,IAClB,KAAK,EACL,IAAI,GAEP,QAAQ,CACG,CACf,CAAA;KAAA,CACqB,CACzB,CAAA;CAAA,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Body.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/Body.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAW,UAAU,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,IAAI,EAAY,aAAa,EAAE,MAAM,cAAc,CAAC;AAI7D,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,oBAAY,UAAU,GAAG,CACvB,KAAK,EAAE,KAAK,CAAC,aAAa,GAAG,KAAK,CAAC,UAAU,EAC7C,GAAG,EAAE,IAAI,EACT,QAAQ,EAAE,aAAa,EACvB,YAAY,EAAE,aAAa,KACxB,IAAI,CAAC;AAEV,MAAM,WAAW,cAAc;IAC7B,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kDAAkD;IAClD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,kDAAkD;IAClD,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC;IACpB,kDAAkD;IAClD,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC;IACd,kDAAkD;IAClD,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,mCAAmC;IACnC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,kDAAkD;IAClD,KAAK,CAAC,EAAE,QAAQ,CAAC;CAClB;
|
|
1
|
+
{"version":3,"file":"Body.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/Body.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAW,UAAU,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,IAAI,EAAY,aAAa,EAAE,MAAM,cAAc,CAAC;AAI7D,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,oBAAY,UAAU,GAAG,CACvB,KAAK,EAAE,KAAK,CAAC,aAAa,GAAG,KAAK,CAAC,UAAU,EAC7C,GAAG,EAAE,IAAI,EACT,QAAQ,EAAE,aAAa,EACvB,YAAY,EAAE,aAAa,KACxB,IAAI,CAAC;AAEV,MAAM,WAAW,cAAc;IAC7B,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kDAAkD;IAClD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,kDAAkD;IAClD,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC;IACpB,kDAAkD;IAClD,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC;IACd,kDAAkD;IAClD,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,mCAAmC;IACnC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,kDAAkD;IAClD,KAAK,CAAC,EAAE,QAAQ,CAAC;CAClB;AAgJD,eAAO,MAAM,SAAS,iEAenB,cAAc,gBAiBhB,CAAC"}
|
|
@@ -23,20 +23,25 @@ class ContextBody extends React.Component {
|
|
|
23
23
|
row,
|
|
24
24
|
rowProps: extendedRowProps,
|
|
25
25
|
onClick: (event) => {
|
|
26
|
+
const tagName = event.target.tagName;
|
|
26
27
|
const computedData = {
|
|
27
|
-
isInput:
|
|
28
|
-
isButton:
|
|
28
|
+
isInput: tagName === 'INPUT',
|
|
29
|
+
isButton: tagName === 'BUTTON'
|
|
29
30
|
};
|
|
30
31
|
onRowClick(event, row, rowProps, computedData);
|
|
31
32
|
},
|
|
32
33
|
onKeyDown: (event) => {
|
|
34
|
+
const targetElement = event.target;
|
|
35
|
+
const tagName = targetElement.tagName;
|
|
36
|
+
const computedData = {
|
|
37
|
+
isInput: tagName === 'INPUT',
|
|
38
|
+
isButton: tagName === 'BUTTON'
|
|
39
|
+
};
|
|
33
40
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
34
|
-
const computedData = {
|
|
35
|
-
isInput: event.target.tagName === 'INPUT',
|
|
36
|
-
isButton: event.target.tagName === 'BUTTON'
|
|
37
|
-
};
|
|
38
41
|
onRowClick(event, row, rowProps, computedData);
|
|
39
|
-
if
|
|
42
|
+
// prevent event default if space is typed while focusing on a hoverable row
|
|
43
|
+
// so that the page does not scroll when trying to use spacebar to select a row
|
|
44
|
+
if (event.key === ' ' && !!targetElement.closest('.pf-m-hoverable')) {
|
|
40
45
|
event.preventDefault();
|
|
41
46
|
}
|
|
42
47
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Body.js","sourceRoot":"","sources":["../../../../src/components/Table/Body.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,iCAA0C;AAG1C,iDAA8C;AAC9C,mCAAwC;AA+BxC,MAAM,cAAc,GAAG,CAAC,IAAY,EAAE,EAAE;IACtC,MAAM,WAAW,GAAI,IAAe,CAAC,MAAM,CAAC,CAAC,MAAY,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,UAAU,CAAW,CAAC;IAC7G,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE;QAC1B,WAAW,CAAC,CAAC,CAAC,CAAC,cAAc,GAAG,IAAI,CAAC;QACrC,WAAW,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,aAAa,GAAG,IAAI,CAAC;KAC1D;AACH,CAAC,CAAC;AAMF,MAAM,WAAY,SAAQ,KAAK,CAAC,SAA6B;IAA7D;;QACE,UAAK,GAAG,CAAC,GAAS,EAAE,QAAa,EAAE,EAAE;YACnC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;YACzC,MAAM,gBAAgB,mCACjB,QAAQ,GACR,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CACvC,CAAC;YACF,OAAO;gBACL,GAAG;gBACH,QAAQ,EAAE,gBAAgB;gBAC1B,OAAO,EAAE,CAAC,KAAuB,EAAE,EAAE;oBACnC,MAAM,
|
|
1
|
+
{"version":3,"file":"Body.js","sourceRoot":"","sources":["../../../../src/components/Table/Body.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,iCAA0C;AAG1C,iDAA8C;AAC9C,mCAAwC;AA+BxC,MAAM,cAAc,GAAG,CAAC,IAAY,EAAE,EAAE;IACtC,MAAM,WAAW,GAAI,IAAe,CAAC,MAAM,CAAC,CAAC,MAAY,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,UAAU,CAAW,CAAC;IAC7G,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE;QAC1B,WAAW,CAAC,CAAC,CAAC,CAAC,cAAc,GAAG,IAAI,CAAC;QACrC,WAAW,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,aAAa,GAAG,IAAI,CAAC;KAC1D;AACH,CAAC,CAAC;AAMF,MAAM,WAAY,SAAQ,KAAK,CAAC,SAA6B;IAA7D;;QACE,UAAK,GAAG,CAAC,GAAS,EAAE,QAAa,EAAE,EAAE;YACnC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;YACzC,MAAM,gBAAgB,mCACjB,QAAQ,GACR,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CACvC,CAAC;YACF,OAAO;gBACL,GAAG;gBACH,QAAQ,EAAE,gBAAgB;gBAC1B,OAAO,EAAE,CAAC,KAAuB,EAAE,EAAE;oBACnC,MAAM,OAAO,GAAI,KAAK,CAAC,MAAsB,CAAC,OAAO,CAAC;oBACtD,MAAM,YAAY,GAAG;wBACnB,OAAO,EAAE,OAAO,KAAK,OAAO;wBAC5B,QAAQ,EAAE,OAAO,KAAK,QAAQ;qBAC/B,CAAC;oBAEF,UAAU,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;gBACjD,CAAC;gBACD,SAAS,EAAE,CAAC,KAA0B,EAAE,EAAE;oBACxC,MAAM,aAAa,GAAG,KAAK,CAAC,MAAqB,CAAC;oBAClD,MAAM,OAAO,GAAG,aAAa,CAAC,OAAO,CAAC;oBACtC,MAAM,YAAY,GAAG;wBACnB,OAAO,EAAE,OAAO,KAAK,OAAO;wBAC5B,QAAQ,EAAE,OAAO,KAAK,QAAQ;qBAC/B,CAAC;oBACF,IAAI,KAAK,CAAC,GAAG,KAAK,OAAO,IAAI,KAAK,CAAC,GAAG,KAAK,GAAG,EAAE;wBAC9C,UAAU,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;wBAE/C,4EAA4E;wBAC5E,+EAA+E;wBAC/E,IAAI,KAAK,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,aAAa,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE;4BACnE,KAAK,CAAC,cAAc,EAAE,CAAC;yBACxB;qBACF;gBACH,CAAC;aACF,CAAC;QACJ,CAAC,CAAC;QAEF,aAAQ,GAAG,CAAC,UAAkB,EAAE,GAAS,EAAE,MAAc,EAAE,EAAE;YAC3D,6FAA6F;YAC7F,MAAM,EAAE,oBAAoB,EAAE,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC;YAC3D,MAAM,WAAW,GAAG,GAAG,IAAI,GAAG,CAAC,SAAS,CAAC;YACzC,2FAA2F;YAC3F,gEAAgE;YAChE,IAAI,wBAAwB,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,oBAAoB,CAAC;YACtE,yBACK,CAAC,GAAG;gBACL,CAAC,GAAG,CAAC,KAAK,IAAI,GAAG,CAAC,CAAC,MAAM,CACvB,CAAC,GAAW,EAAE,IAAc,EAAE,SAAiB,EAAE,EAAE;oBACjD,MAAM,YAAY,GAAG,IAAI,KAAK,MAAM,CAAC,IAAI,CAAC,CAAC;oBAC3C,MAAM,cAAc,GAAG,IAAI,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,UAAU,CAAC;oBAChE,IAAI,UAAU,GAAQ,EAAE,CAAC;oBACzB,IAAI,YAAY,IAAI,IAAI,CAAC,UAAU,EAAE;wBACnC,2DAA2D;wBAC3D,sBAAsB;wBACtB,8GAA8G;wBAC9G,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;qBAC9B;yBAAM,IAAI,WAAW,IAAI,SAAS,GAAG,oBAAoB,EAAE;wBAC1D,sGAAsG;wBACtG,+CAA+C;wBAC/C,UAAU,GAAG,UAAU,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;qBAC/D;oBACD,IAAI,eAAe,GAA4C,IAAI,CAAC;oBACpE,IAAI,YAAY,IAAI,cAAc,EAAE;wBAClC,eAAe,GAAI,IAAI,CAAC,KAAkB,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;qBAC7F;yBAAM,IAAI,YAAY,EAAE;wBACvB,eAAe,GAAG,IAAI,CAAC,KAAK,CAAC;qBAC9B;oBACD,MAAM,UAAU,GAAgB;wBAC9B,CAAC,UAAU,CAAC,SAAS,GAAG,wBAAwB,CAAC,CAAC,QAAQ,CAAC,EAAE;4BAC3D,KAAK,EAAE,eAAe;4BACtB,UAAU;4BACV,KAAK,kBACH,SAAS,EAAE,IAAI,IACZ,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CACtC;yBACF;qBACF,CAAC;oBAEF,+DAA+D;oBAC/D,IAAI,YAAY,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE;wBACpD,wBAAwB,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,CAAC,CAAC;qBACpD;oBACD,uCACK,GAAG,GACH,UAAU,EACb;gBACJ,CAAC,EACD,EAAE,mBAAmB,EAAE,GAAG,CAAC,EAAE,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,CAChE,CAAC,EACJ;QACJ,CAAC,CAAC;IAoCJ,CAAC;IAlCC,MAAM;QACJ,6DAA6D;QAC7D,MAAM,KAA0E,IAAI,CAAC,KAAK,EAApF,EAAE,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,OAAyB,EAApB,KAAK,sBAArE,uEAAuE,CAAa,CAAC;QAE3F,IAAI,UAAkB,CAAC;QACvB,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE;YACzB,UAAU,GAAI,IAAe,CAAC,GAAG,CAAC,CAAC,MAAY,EAAE,SAAiB,EAAE,EAAE,CAAC,+CAClE,MAAM,GACN,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,CAAC,KAC/C,UAAU,EAAE,qBAAa,CAAC,MAAM,EAAE,IAAI,CAAC,EACvC,YAAY,EAAE,MAAM,CAAC,UAAU,IAAI,KAAK,EACxC,OAAO,EAAE,SAAS,KAAK,CAAC,EACxB,MAAM,EAAE,SAAS,KAAK,IAAI,CAAC,MAAM,GAAG,CAAC,EACrC,cAAc,EAAE,KAAK,EACrB,aAAa,EAAE,KAAK,IACpB,CAAW,CAAC;YACd,cAAc,CAAC,UAAU,CAAC,CAAC;SAC5B;QAED,OAAO,CACL,oBAAC,KAAK,CAAC,QAAQ,QACZ,UAAU,IAAI,CACb,oBAAC,WAAQ,oBACH,KAAK,IACT,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,UAAuB,EAC7B,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,SAAS,IACpB,CACH,CACc,CAClB,CAAC;IACJ,CAAC;CACF;AAEM,MAAM,SAAS,GAAG,CAAC,EAeT,EAAE,EAAE;QAfK,EACxB,SAAS,GAAG,EAAY,EACxB,QAAQ,GAAG,IAAuB,EAClC,MAAM,GAAG,qBAA+B;IACxC,sDAAsD;IACtD,KAAK,GAAG,CAAC,GAAG,IAAS,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAC9B,UAAU,GAAG,CACX,KAA6C,EAC7C,GAAS,EACT,QAAuB,EACvB,YAA2B,EAC3B,EAAE;IACF,qDAAqD;IACrD,SAAuB,OAEV,EADZ,KAAK,sBAdgB,0DAezB,CADS;IACY,OAAA,CACpB,oBAAC,2BAAY,CAAC,QAAQ,QACnB,CAAC,EAAuC,EAAE,EAAE;YAA3C,EAAE,UAAU,GAAG,EAAE,EAAE,IAAI,GAAG,EAAE,OAAW,EAAN,IAAI,sBAArC,sBAAuC,CAAF;QAAO,OAAA,CAC5C,oBAAC,WAAW,kBACV,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,IAAc,EACpB,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,UAAU,IAClB,KAAK,EACL,IAAI,GAEP,QAAQ,CACG,CACf,CAAA;KAAA,CACqB,CACzB,CAAA;CAAA,CAAC;AAhCW,QAAA,SAAS,aAgCpB"}
|
package/dist/umd/react-table.js
CHANGED
|
@@ -12141,20 +12141,25 @@
|
|
|
12141
12141
|
row,
|
|
12142
12142
|
rowProps: extendedRowProps,
|
|
12143
12143
|
onClick: (event) => {
|
|
12144
|
+
const tagName = event.target.tagName;
|
|
12144
12145
|
const computedData = {
|
|
12145
|
-
isInput:
|
|
12146
|
-
isButton:
|
|
12146
|
+
isInput: tagName === 'INPUT',
|
|
12147
|
+
isButton: tagName === 'BUTTON'
|
|
12147
12148
|
};
|
|
12148
12149
|
onRowClick(event, row, rowProps, computedData);
|
|
12149
12150
|
},
|
|
12150
12151
|
onKeyDown: (event) => {
|
|
12152
|
+
const targetElement = event.target;
|
|
12153
|
+
const tagName = targetElement.tagName;
|
|
12154
|
+
const computedData = {
|
|
12155
|
+
isInput: tagName === 'INPUT',
|
|
12156
|
+
isButton: tagName === 'BUTTON'
|
|
12157
|
+
};
|
|
12151
12158
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
12152
|
-
const computedData = {
|
|
12153
|
-
isInput: event.target.tagName === 'INPUT',
|
|
12154
|
-
isButton: event.target.tagName === 'BUTTON'
|
|
12155
|
-
};
|
|
12156
12159
|
onRowClick(event, row, rowProps, computedData);
|
|
12157
|
-
if
|
|
12160
|
+
// prevent event default if space is typed while focusing on a hoverable row
|
|
12161
|
+
// so that the page does not scroll when trying to use spacebar to select a row
|
|
12162
|
+
if (event.key === ' ' && !!targetElement.closest('.pf-m-hoverable')) {
|
|
12158
12163
|
event.preventDefault();
|
|
12159
12164
|
}
|
|
12160
12165
|
}
|
|
@@ -52,4 +52,4 @@ function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0
|
|
|
52
52
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
53
53
|
PERFORMANCE OF THIS SOFTWARE.
|
|
54
54
|
***************************************************************************** */
|
|
55
|
-
function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["size","color","title","noVerticalAlign"]),u=Boolean(c),f=(e=>{switch(e){case Pt.sm:return"1em";case Pt.md:return"1.5em";case Pt.lg:return"2em";case Pt.xl:return"3em";default:return"1em"}})(s),m=-.125*Number.parseFloat(f),h=d?null:{verticalAlign:`${m}em`},b=[t,n,r,a].join(" ");return o.createElement("svg",Object.assign({style:h,fill:l,height:f,width:f,viewBox:b,"aria-labelledby":u?this.id:null,"aria-hidden":!u||null,role:"img"},p),u&&o.createElement("title",{id:this.id},c),o.createElement("path",{d:i}))}},s.displayName=e,s.defaultProps={color:"currentColor",size:Pt.sm,noVerticalAlign:!1},s}var Ft=At({name:"TimesIcon",height:512,width:352,svgPath:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z",yOffset:0,xOffset:0});var Mt=At({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});var Bt=At({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});var Vt=At({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}),Ht={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"},zt="pf-c-tooltip",$t="pf-c-tooltip__arrow",Wt="pf-c-tooltip__content";const Kt=e=>{var{className:t,children:n,isLeftAligned:r}=e,a=s(e,["className","children","isLeftAligned"]);return o.createElement("div",Object.assign({className:l(Wt,r&&Ht.textAlignLeft,t)},a),n)};Kt.displayName="TooltipContent";const Gt=e=>{var{className:t}=e,n=s(e,["className"]);return o.createElement("div",Object.assign({className:l($t,t)},n))};Gt.displayName="TooltipArrow";var Ut,qt={name:"--pf-c-tooltip--MaxWidth",value:"18.75rem",var:"var(--pf-c-tooltip--MaxWidth)"};!function(e){e.auto="auto",e.top="top",e.bottom="bottom",e.left="left",e.right="right"}(Ut||(Ut={}));let Xt=1;const Yt=e=>{var{content:t,position:n="top",trigger:r="mouseenter focus",isVisible:a=!1,isContentLeftAligned:i=!1,enableFlip:c=!0,className:u="",entryDelay:f=300,exitDelay:m=0,appendTo:h=(()=>document.body),zIndex:b=9999,maxWidth:g=qt.value,distance:v=15,aria:y="describedby",flipBehavior:w=["top","right","bottom","left","top","right","bottom"],id:x="pf-tooltip-"+Xt++,children:C,animationDuration:O=300,reference:E,boundary:N,isAppLauncher:k,tippyProps:T}=e,S=s(e,["content","position","trigger","isVisible","isContentLeftAligned","enableFlip","className","entryDelay","exitDelay","appendTo","zIndex","maxWidth","distance","aria","flipBehavior","id","children","animationDuration","reference","boundary","isAppLauncher","tippyProps"]);const _=r.includes("mouseenter"),R=r.includes("focus"),I=r.includes("click"),D="manual"===r,[j,P]=o.useState(!1),[L,A]=o.useState(0),F=o.useRef(null),M=o.useRef(null),B=o.useRef(null),V=e=>{e.forEach((e=>{e.current&&clearTimeout(e.current)}))};o.useEffect((()=>()=>{V([F,B,M])}),[]);o.useEffect((()=>{a?H():z()}),[a]);const H=()=>{V([F,B]),M.current=setTimeout((()=>{P(!0),A(1)}),f)},z=()=>{V([M]),B.current=setTimeout((()=>{A(0),F.current=setTimeout((()=>P(!1)),O)}),m)},$={top:Ht.top,bottom:Ht.bottom,left:Ht.left,right:Ht.right},W=g!==qt.value,K=o.createElement("div",Object.assign({className:l(zt,u),role:"tooltip",id:x,style:{maxWidth:W?g:null,opacity:L,transition:gt(O)}},S),o.createElement(Gt,null),o.createElement(Kt,{isLeftAligned:i},t));return o.createElement(vt,{trigger:"none"!==y&&j?"describedby"===y&&C&&C.props&&!C.props["aria-describedby"]?o.cloneElement(C,{"aria-describedby":x}):"labelledby"===y&&C.props&&!C.props["aria-labelledby"]?o.cloneElement(C,{"aria-labelledby":x}):C:C,reference:E,popper:K,popperMatchesTriggerWidth:!1,appendTo:h,isVisible:j,positionModifiers:$,distance:v,placement:n,onMouseEnter:_&&H,onMouseLeave:_&&z,onFocus:R&&H,onBlur:R&&z,onDocumentClick:I&&((e,t)=>{j?z():e.target===t&&H()}),onDocumentKeyDown:D?null:e=>{D||e.keyCode===d&&j&&z()},onTriggerEnter:D?null:e=>{e.keyCode===p&&(j?z():H())},enableFlip:c,zIndex:b,flipBehavior:w})};Yt.displayName="Tooltip";var Jt,Qt,Zt={formControl:"pf-c-form-control",modifiers:{success:"pf-m-success",expanded:"pf-m-expanded",icon:"pf-m-icon",warning:"pf-m-warning",search:"pf-m-search",calendar:"pf-m-calendar",clock:"pf-m-clock",placeholder:"pf-m-placeholder",resizeVertical:"pf-m-resize-vertical",resizeHorizontal:"pf-m-resize-horizontal"}},en={badge:"pf-c-badge",check:"pf-c-check",divider:"pf-c-divider",dropdown:"pf-c-dropdown",dropdownGroup:"pf-c-dropdown__group",dropdownGroupTitle:"pf-c-dropdown__group-title",dropdownMenu:"pf-c-dropdown__menu",dropdownMenuItem:"pf-c-dropdown__menu-item",dropdownMenuItemDescription:"pf-c-dropdown__menu-item-description",dropdownMenuItemIcon:"pf-c-dropdown__menu-item-icon",dropdownMenuItemMain:"pf-c-dropdown__menu-item-main",dropdownToggle:"pf-c-dropdown__toggle",dropdownToggleButton:"pf-c-dropdown__toggle-button",dropdownToggleCheck:"pf-c-dropdown__toggle-check",dropdownToggleIcon:"pf-c-dropdown__toggle-icon",dropdownToggleImage:"pf-c-dropdown__toggle-image",dropdownToggleText:"pf-c-dropdown__toggle-text",menu:"pf-c-menu",modifiers:{fullHeight:"pf-m-full-height",expanded:"pf-m-expanded",action:"pf-m-action",disabled:"pf-m-disabled",plain:"pf-m-plain",text:"pf-m-text",splitButton:"pf-m-split-button",primary:"pf-m-primary",active:"pf-m-active",secondary:"pf-m-secondary",top:"pf-m-top",alignRight:"pf-m-align-right",alignLeft:"pf-m-align-left",alignRightOnSm:"pf-m-align-right-on-sm",alignLeftOnSm:"pf-m-align-left-on-sm",alignRightOnMd:"pf-m-align-right-on-md",alignLeftOnMd:"pf-m-align-left-on-md",alignRightOnLg:"pf-m-align-right-on-lg",alignLeftOnLg:"pf-m-align-left-on-lg",alignRightOnXl:"pf-m-align-right-on-xl",alignLeftOnXl:"pf-m-align-left-on-xl",alignRightOn_2xl:"pf-m-align-right-on-2xl",alignLeftOn_2xl:"pf-m-align-left-on-2xl",ariaDisabled:"pf-m-aria-disabled",icon:"pf-m-icon",description:"pf-m-description"}};!function(e){e.right="right",e.left="left"}(Jt||(Jt={})),function(e){e.up="up",e.down="down"}(Qt||(Qt={}));const tn=o.createContext({onSelect:e=>{},id:"",toggleIndicatorClass:"",toggleIconClass:"",toggleTextClass:"",menuClass:"",itemClass:"",toggleClass:"",baseClass:"",baseComponent:"div",sectionClass:"",sectionTitleClass:"",sectionComponent:"section",disabledClass:"",plainTextClass:"",menuComponent:"ul"}),nn=o.createContext({keyHandler:null,sendRef:null});class rn extends o.Component{constructor(){super(...arguments),this.refsCollection=[],this.componentWillUnmount=()=>{document.removeEventListener("keydown",this.onKeyDown)},this.onKeyDown=e=>{if(!this.props.isOpen||!Array.from(document.activeElement.classList).find((e=>rn.validToggleClasses.concat(this.context.toggleClass).includes(e))))return;const t=this.refsCollection;if("ArrowDown"===e.key){const n=t.find((e=>e&&e[0]&&!e[0].hasAttribute("disabled")));rn.focusFirstRef(n),e.stopPropagation()}else if("ArrowUp"===e.key){const n=t.length,r=t.slice(n-1,n),o=r&&r[0];rn.focusFirstRef(o),e.stopPropagation()}},this.childKeyHandler=(e,t,n,r=!1)=>{q(e,t,n,this.refsCollection,this.props.isGrouped?this.refsCollection:o.Children.toArray(this.props.children),r)},this.sendRef=(e,t,n,r)=>{this.refsCollection[e]=[],t.map(((t,n)=>{t?t.getAttribute?this.refsCollection[e][n]=r?null:t:this.refsCollection[e][n]=a.findDOMNode(t):this.refsCollection[e][n]=null}))}}componentDidMount(){document.addEventListener("keydown",this.onKeyDown);const{autoFocus:e}=this.props;if(e){const e=this.refsCollection.find((e=>e&&e[0]&&!e[0].hasAttribute("disabled"))),t=e&&e[0];t&&t.focus&&setTimeout((()=>t.focus()))}}shouldComponentUpdate(){return this.refsCollection=[],!0}extendChildren(){const{children:e,isGrouped:t}=this.props;if(t){let t=0;return o.Children.map(e,(e=>{const n=e,r={};return n.props&&n.props.children&&(Array.isArray(n.props.children)?r.children=o.Children.map(n.props.children,(e=>o.cloneElement(e,{index:t++}))):r.children=o.cloneElement(n.props.children,{index:t++})),o.cloneElement(n,r)}))}return o.Children.map(e,((e,t)=>o.cloneElement(e,{index:t})))}render(){const e=this.props,{className:t,isOpen:n,position:r,children:a,component:i,isGrouped:c,setMenuComponentRef:d,openedOnEnter:p,alignments:u}=e,f=s(e,["className","isOpen","position","children","component","isGrouped","setMenuComponentRef","openedOnEnter","alignments"]);return o.createElement(nn.Provider,{value:{keyHandler:this.childKeyHandler,sendRef:this.sendRef}},"div"===i?o.createElement(tn.Consumer,null,(({onSelect:e,menuClass:i})=>o.createElement("div",{className:l(i,r===Jt.right&&en.modifiers.alignRight,Y(u,en,"align-"),t),hidden:!n,onClick:t=>e&&e(t),ref:d},a))):c&&o.createElement(tn.Consumer,null,(({menuClass:e,menuComponent:a})=>{const i=a||"div";return o.createElement(i,Object.assign({},f,{className:l(e,r===Jt.right&&en.modifiers.alignRight,Y(u,en,"align-"),t),hidden:!n,role:"menu",ref:d}),this.extendChildren())}))||o.createElement(tn.Consumer,null,(({menuClass:e,menuComponent:a})=>{const s=a||i;return o.createElement(s,Object.assign({},f,{className:l(e,r===Jt.right&&en.modifiers.alignRight,Y(u,en,"align-"),t),hidden:!n,role:"menu",ref:d}),this.extendChildren())})))}}rn.displayName="DropdownMenu",rn.defaultProps={className:"",isOpen:!0,openedOnEnter:!1,autoFocus:!0,position:Jt.left,component:"ul",isGrouped:!1,setMenuComponentRef:null},rn.validToggleClasses=[en.dropdownToggle,en.dropdownToggleButton],rn.focusFirstRef=e=>{e&&e[0]&&e[0].focus&&setTimeout((()=>e[0].focus()))},rn.contextType=tn;class on extends o.Component{constructor(e){super(e),this.openedOnEnter=!1,this.baseComponentRef=o.createRef(),this.menuComponentRef=o.createRef(),this.onEnter=()=>{this.openedOnEnter=!0},this.setMenuComponentRef=e=>{this.menuComponentRef=e},this.getMenuComponentRef=()=>this.menuComponentRef,e.dropdownItems&&e.dropdownItems.length>0&&e.children&&console.error("Children and dropdownItems props have been provided. Only the dropdownItems prop items will be rendered")}componentDidUpdate(){this.props.isOpen||(this.openedOnEnter=!1)}render(){const e=this.props,{children:t,className:n,direction:r,dropdownItems:a,isOpen:i,isPlain:c,isText:d,isGrouped:p,isFullHeight:u,onSelect:f,position:m,toggle:h,autoFocus:b,menuAppendTo:g}=e,v=s(e,["children","className","direction","dropdownItems","isOpen","isPlain","isText","isGrouped","isFullHeight","onSelect","position","toggle","autoFocus","menuAppendTo"]),y=h.props.id||"pf-dropdown-toggle-id-"+on.currentId++;let w,x,C=!1;a&&a.length>0?(w="ul",x=a,C=!0):(w="div",x=o.Children.toArray(t));const O=this.openedOnEnter;return o.createElement(tn.Consumer,null,(({baseClass:e,baseComponent:t,id:a,ouiaId:s,ouiaComponentType:f,ouiaSafe:E,alignments:N})=>{const k=t,T=o.createElement(rn,{setMenuComponentRef:this.setMenuComponentRef,component:w,isOpen:i,position:m,"aria-labelledby":a?`${a}-toggle`:y,isGrouped:p,autoFocus:O&&b,alignments:N},x),S=o.createElement("div",{className:l(e,r===Qt.up&&en.modifiers.top,m===Jt.right&&en.modifiers.alignRight,i&&en.modifiers.expanded,n)},i&&T),_=o.createElement(k,Object.assign({},v,{className:l(e,r===Qt.up&&en.modifiers.top,m===Jt.right&&en.modifiers.alignRight,i&&en.modifiers.expanded,u&&en.modifiers.fullHeight,n),ref:this.baseComponentRef},z(f,s,E)),o.Children.map(h,(e=>o.cloneElement(e,{parentRef:this.baseComponentRef,getMenuRef:this.getMenuComponentRef,isOpen:i,id:y,isPlain:c,isText:d,"aria-haspopup":C,onEnter:()=>{this.onEnter(),e.props.onEnter&&e.props.onEnter()}}))),"inline"===g&&i&&T);return"inline"===g?_:o.createElement(vt,{trigger:_,popper:S,direction:r,position:m,appendTo:"parent"===g?(()=>this.baseComponentRef&&this.baseComponentRef.current?this.baseComponentRef.current.parentElement:null)():g,isVisible:i})}))}}on.displayName="DropdownWithContext",on.currentId=0,on.defaultProps={className:"",dropdownItems:[],isOpen:!1,isPlain:!1,isText:!1,isGrouped:!1,position:Jt.left,direction:Qt.down,onSelect:()=>{},autoFocus:!0,menuAppendTo:"inline"};const an=e=>{var{onSelect:t,ref:n,ouiaId:r,ouiaSafe:a,alignments:i,contextProps:l}=e,c=s(e,["onSelect","ref","ouiaId","ouiaSafe","alignments","contextProps"]);return o.createElement(tn.Provider,{value:Object.assign({onSelect:e=>t&&t(e),toggleTextClass:en.dropdownToggleText,toggleIconClass:en.dropdownToggleImage,toggleIndicatorClass:en.dropdownToggleIcon,menuClass:en.dropdownMenu,itemClass:en.dropdownMenuItem,toggleClass:en.dropdownToggle,baseClass:en.dropdown,baseComponent:"div",sectionClass:en.dropdownGroup,sectionTitleClass:en.dropdownGroupTitle,sectionComponent:"section",disabledClass:en.modifiers.disabled,plainTextClass:en.modifiers.text,ouiaId:W(an.displayName,r),ouiaSafe:a,ouiaComponentType:an.displayName,alignments:i},l)},o.createElement(on,Object.assign({},c)))};an.displayName="Dropdown";class sn extends o.Component{constructor(){super(...arguments),this.ref=o.createRef(),this.additionalRef=o.createRef(),this.getInnerNode=e=>e&&e.childNodes&&e.childNodes.length?e.childNodes[0]:e,this.onKeyDown=e=>{const t=e.target===this.ref.current?0:1;this.props.customChild||e.preventDefault(),"ArrowUp"===e.key?(this.props.context.keyHandler(this.props.index,t,u),e.stopPropagation()):"ArrowDown"===e.key?(this.props.context.keyHandler(this.props.index,t,f),e.stopPropagation()):"ArrowRight"===e.key?(this.props.context.keyHandler(this.props.index,t,m),e.stopPropagation()):"ArrowLeft"===e.key?(this.props.context.keyHandler(this.props.index,t,h),e.stopPropagation()):"Enter"!==e.key&&" "!==e.key||(e.target.click(),this.props.enterTriggersArrowDown&&this.props.context.keyHandler(this.props.index,t,f))},this.componentRef=e=>{this.ref.current=e;const{component:t}=this.props,n=t.ref;n&&("function"==typeof n?n(e):n.current=e)}}componentDidMount(){const{context:e,index:t,isDisabled:n,role:r,customChild:o,autoFocus:a}=this.props,i=o?this.getInnerNode(this.ref.current):this.ref.current;e.sendRef(t,[i,o?i:this.additionalRef.current],n,"separator"===r),a&&setTimeout((()=>i.focus()))}componentDidUpdate(){const{context:e,index:t,isDisabled:n,role:r,customChild:o}=this.props,a=o?this.getInnerNode(this.ref.current):this.ref.current;e.sendRef(t,[a,o?a:this.additionalRef.current],n,"separator"===r)}extendAdditionalChildRef(){const{additionalChild:e}=this.props;return o.cloneElement(e,{ref:this.additionalRef})}render(){const e=this.props,{className:t,children:n,isHovered:r,context:a,onClick:i,component:c,role:d,isDisabled:p,isAriaDisabled:u,isPlainText:f,index:m,href:h,tooltip:b,tooltipProps:g,id:v,componentID:y,listItemClassName:w,additionalChild:x,customChild:C,enterTriggersArrowDown:O,icon:E,autoFocus:N,styleChildren:k,description:T,inoperableEvents:S}=e,_=s(e,["className","children","isHovered","context","onClick","component","role","isDisabled","isAriaDisabled","isPlainText","index","href","tooltip","tooltipProps","id","componentID","listItemClassName","additionalChild","customChild","enterTriggersArrowDown","icon","autoFocus","styleChildren","description","inoperableEvents"]);let R=l(E&&en.modifiers.icon,u&&en.modifiers.ariaDisabled,t);"a"===c?_["aria-disabled"]=p||u:"button"===c&&(_["aria-disabled"]=p||u,_.type=_.type||"button");const I=e=>o.cloneElement(e,Object.assign(Object.assign({},k&&{className:l(e.props.className,R)}),"separator"!==this.props.role&&{ref:this.componentRef})),D=e=>{const t=e,r=T?o.createElement(o.Fragment,null,o.createElement("div",{className:en.dropdownMenuItemMain},E&&o.createElement("span",{className:l(en.dropdownMenuItemIcon)},E),n),o.createElement("div",{className:en.dropdownMenuItemDescription},T)):o.createElement(o.Fragment,null,E&&o.createElement("span",{className:l(en.dropdownMenuItemIcon)},E),n);return o.createElement(t,Object.assign({},_,p||u?S.reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:e=>{e.preventDefault()}})),{}):null,{href:h,ref:this.ref,className:R,id:y}),r)};return o.createElement(tn.Consumer,null,(({onSelect:e,itemClass:t,disabledClass:n,plainTextClass:r})=>{return"separator"!==this.props.role&&(R=l(R,p&&n,f&&r,t,T&&en.modifiers.description)),C?o.cloneElement(C,{ref:this.ref,onKeyDown:this.onKeyDown}):o.createElement("li",{className:w||null,role:d,onKeyDown:this.onKeyDown,onClick:t=>{p||u||(i(t),e(t))},id:v},(a=o.isValidElement(c)?I(c):D(c),b?o.createElement(Yt,Object.assign({content:b},g),a):a),x&&this.extendAdditionalChildRef());var a}))}}sn.displayName="InternalDropdownItem",sn.defaultProps={className:"",isHovered:!1,component:"a",role:"none",isDisabled:!1,isPlainText:!1,tooltipProps:{},onClick:e=>{},index:-1,context:{keyHandler:()=>{},sendRef:()=>{}},enterTriggersArrowDown:!1,icon:null,styleChildren:!0,description:null,inoperableEvents:["onClick","onKeyPress"]};const ln=e=>{var{children:t,className:n,component:r="a",isDisabled:a=!1,isAriaDisabled:i=!1,isPlainText:l=!1,isHovered:c=!1,href:d,tooltip:p,tooltipProps:u={},listItemClassName:f,onClick:m,ref:h,additionalChild:b,customChild:g,tabIndex:v=-1,icon:y=null,autoFocus:w,description:x=null,styleChildren:C,ouiaId:O,ouiaSafe:E}=e,N=s(e,["children","className","component","isDisabled","isAriaDisabled","isPlainText","isHovered","href","tooltip","tooltipProps","listItemClassName","onClick","ref","additionalChild","customChild","tabIndex","icon","autoFocus","description","styleChildren","ouiaId","ouiaSafe"]);const k=$(ln.displayName,O,E);return o.createElement(nn.Consumer,null,(e=>o.createElement(sn,Object.assign({context:e,role:"menuitem",tabIndex:v,className:n,component:r,isDisabled:a,isAriaDisabled:i,isPlainText:l,isHovered:c,href:d,tooltip:p,tooltipProps:u,listItemClassName:f,onClick:m,additionalChild:b,customChild:g,icon:y,autoFocus:w,styleChildren:C,description:x},k,N),t)))};ln.displayName="DropdownItem";var cn,dn={divider:"pf-c-divider",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",vertical:"pf-m-vertical",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",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",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",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",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",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"}};!function(e){e.hr="hr",e.li="li",e.div="div"}(cn||(cn={}));const pn=e=>{var{className:t,component:n=cn.hr,isVertical:r=!1,inset:a}=e,i=s(e,["className","component","isVertical","inset"]);const c=n;return o.createElement(c,Object.assign({className:l(dn.divider,r&&dn.modifiers.vertical,Y(a,dn),t)},"hr"!==n&&{role:"separator"},i))};pn.displayName="Divider";const un=e=>{var{className:t="",ref:n,ouiaId:r,ouiaSafe:a}=e,i=s(e,["className","ref","ouiaId","ouiaSafe"]);const l=$(un.displayName,r,a);return o.createElement(nn.Consumer,null,(e=>o.createElement(sn,Object.assign({},i,{context:e,component:o.createElement(pn,{component:cn.div}),className:t,role:"separator"},l))))};un.displayName="DropdownSeparator";var fn=At({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});const mn={default:"",primary:en.modifiers.primary,secondary:en.modifiers.secondary};class hn extends o.Component{constructor(){super(...arguments),this.buttonRef=o.createRef(),this.componentDidMount=()=>{document.addEventListener("click",this.onDocClick),document.addEventListener("touchstart",this.onDocClick),document.addEventListener("keydown",this.onEscPress)},this.componentWillUnmount=()=>{document.removeEventListener("click",this.onDocClick),document.removeEventListener("touchstart",this.onDocClick),document.removeEventListener("keydown",this.onEscPress)},this.onDocClick=e=>{const{isOpen:t,parentRef:n,onToggle:r,getMenuRef:o}=this.props,a=o&&o(),i=n&&n.current&&n.current.contains(e.target),s=a&&a.contains&&a.contains(e.target);!t||i||s||r(!1,e)},this.onEscPress=e=>{const{parentRef:t,getMenuRef:n}=this.props,r=e.keyCode||e.which,o=n&&n(),a=t&&t.current&&t.current.contains(e.target),i=o&&o.contains&&o.contains(e.target);!this.props.isOpen||r!==d&&"Tab"!==e.key||!a&&!i||(this.props.onToggle(!1,e),this.buttonRef.current.focus())},this.onKeyDown=e=>{("Tab"!==e.key||this.props.isOpen)&&("Tab"!==e.key&&"Enter"!==e.key&&" "!==e.key||!this.props.isOpen?"Enter"!==e.key&&" "!==e.key||this.props.isOpen||(this.props.bubbleEvent||e.stopPropagation(),e.preventDefault(),this.props.onToggle(!this.props.isOpen,e),this.props.onEnter()):(this.props.bubbleEvent||e.stopPropagation(),e.preventDefault(),this.props.onToggle(!this.props.isOpen,e)))}}render(){const e=this.props,{className:t,children:n,isOpen:r,isDisabled:a,isPlain:i,isText:c,isPrimary:d,isSplitButton:p,toggleVariant:u,onToggle:f,"aria-haspopup":m,isActive:h,bubbleEvent:b,onEnter:g,parentRef:v,getMenuRef:y,id:w,type:x}=e,C=s(e,["className","children","isOpen","isDisabled","isPlain","isText","isPrimary","isSplitButton","toggleVariant","onToggle","aria-haspopup","isActive","bubbleEvent","onEnter","parentRef","getMenuRef","id","type"]);return o.createElement(tn.Consumer,null,(({toggleClass:e})=>o.createElement("button",Object.assign({},C,{id:w,ref:this.buttonRef,className:l(p?en.dropdownToggleButton:e||en.dropdownToggle,h&&en.modifiers.active,i&&en.modifiers.plain,c&&en.modifiers.text,d&&en.modifiers.primary,mn[u],t),type:x||"button",onClick:e=>f(!r,e),"aria-expanded":r,"aria-haspopup":m,onKeyDown:e=>this.onKeyDown(e),disabled:a}),n)))}}hn.displayName="Toggle",hn.defaultProps={className:"",isOpen:!1,isActive:!1,isDisabled:!1,isPlain:!1,isText:!1,isPrimary:!1,isSplitButton:!1,onToggle:()=>{},onEnter:()=>{},bubbleEvent:!1};var bn="pf-c-badge",gn={read:"pf-m-read",unread:"pf-m-unread"};var vn=At({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});const yn=e=>{var{id:t="",children:n=null,className:r="",isOpen:a=!1,"aria-label":i="Actions",parentRef:l=null,getMenuRef:c=null,isActive:d=!1,isPlain:p=!1,isDisabled:u=!1,bubbleEvent:f=!1,onToggle:m=(()=>{}),ref:h}=e,b=s(e,["id","children","className","isOpen","aria-label","parentRef","getMenuRef","isActive","isPlain","isDisabled","bubbleEvent","onToggle","ref"]);return o.createElement(hn,Object.assign({id:t,className:r,isOpen:a,"aria-label":i,parentRef:l,getMenuRef:c,isActive:d,isPlain:p,isDisabled:u,onToggle:m,bubbleEvent:f},b),o.createElement(vn,null))};yn.displayName="KebabToggle";const wn=e=>{var t=s(e,["children"]);return o.createElement(un,Object.assign({},t))};wn.displayName="ApplicationLauncherSeparator";var xn=At({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});var Cn;!function(e){e.text="text",e.date="date",e.datetimeLocal="datetime-local",e.email="email",e.month="month",e.number="number",e.password="password",e.search="search",e.tel="tel",e.time="time",e.url="url"}(Cn||(Cn={}));class On extends o.Component{constructor(e){super(e),this.inputRef=o.createRef(),this.observer=()=>{},this.handleChange=e=>{this.props.onChange&&this.props.onChange(e.currentTarget.value,e)},this.handleResize=()=>{const e=this.props.innerRef||this.inputRef;e&&e.current&&te(e.current,String(this.props.value))},this.restoreText=()=>{const e=this.props.innerRef||this.inputRef;e.current.value=String(this.props.value),e.current.scrollLeft=e.current.scrollWidth},this.onFocus=e=>{const{isLeftTruncated:t,onFocus:n}=this.props;t&&this.restoreText(),n&&n(e)},this.onBlur=e=>{const{isLeftTruncated:t,onBlur:n}=this.props;t&&this.handleResize(),n&&n(e)},e.id||e["aria-label"]||e["aria-labelledby"]||console.error("Text input:","Text input requires either an id or aria-label to be specified"),this.state={ouiaStateId:K(On.displayName)}}componentDidMount(){if(this.props.isLeftTruncated){const e=this.props.innerRef||this.inputRef;this.observer=((e,t)=>{let n;if(Z){const{ResizeObserver:r}=window;if(e&&r){const o=new r((e=>{window.requestAnimationFrame((()=>{Array.isArray(e)&&e.length>0&&t()}))}));o.observe(e),n=()=>o.unobserve(e)}else window.addEventListener("resize",t),n=()=>window.removeEventListener("resize",t)}return()=>{n&&n()}})(e.current,this.handleResize),this.handleResize()}}componentWillUnmount(){this.props.isLeftTruncated&&this.observer()}render(){const e=this.props,{innerRef:t,className:n,type:r,value:a,validated:i,onChange:c,onFocus:d,onBlur:p,isLeftTruncated:u,isReadOnly:f,isRequired:m,isDisabled:h,iconVariant:g,customIconUrl:v,customIconDimensions:y,ouiaId:w,ouiaSafe:x}=e,C=s(e,["innerRef","className","type","value","validated","onChange","onFocus","onBlur","isLeftTruncated","isReadOnly","isRequired","isDisabled","iconVariant","customIconUrl","customIconDimensions","ouiaId","ouiaSafe"]),O={};return v&&(O.backgroundImage=`url('${v}')`),y&&(O.backgroundSize=y),o.createElement("input",Object.assign({},C,{onFocus:this.onFocus,onBlur:this.onBlur,className:l(Zt.formControl,i===b.success&&Zt.modifiers.success,i===b.warning&&Zt.modifiers.warning,(g&&"search"!==g||v)&&Zt.modifiers.icon,g&&Zt.modifiers[g],n),onChange:this.handleChange,type:r,value:a,"aria-invalid":C["aria-invalid"]?C["aria-invalid"]:i===b.error,required:m,disabled:h,readOnly:f,ref:t||this.inputRef},(v||y)&&{style:O},z(En.displayName,void 0!==w?w:this.state.ouiaStateId,x)))}}On.displayName="TextInputBase",On.defaultProps={"aria-label":null,className:"",isRequired:!1,validated:"default",isDisabled:!1,isReadOnly:!1,type:Cn.text,isLeftTruncated:!1,onChange:()=>{},ouiaSafe:!0};const En=o.forwardRef(((e,t)=>o.createElement(On,Object.assign({},e,{innerRef:t}))));En.displayName="TextInput";var Nn={invalid:"pf-m-invalid",success:"pf-m-success",warning:"pf-m-warning",disabled:"pf-m-disabled",active:"pf-m-active",expanded:"pf-m-expanded",plain:"pf-m-plain",typeahead:"pf-m-typeahead",placeholder:"pf-m-placeholder",top:"pf-m-top",alignRight:"pf-m-align-right",favorite:"pf-m-favorite",favoriteAction:"pf-m-favorite-action",focus:"pf-m-focus",link:"pf-m-link",action:"pf-m-action",selected:"pf-m-selected",description:"pf-m-description",load:"pf-m-load",loading:"pf-m-loading"},kn="pf-c-select",Tn="pf-c-select__list-item",Sn="pf-c-select__menu",_n="pf-c-select__menu-fieldset",Rn="pf-c-select__menu-footer",In="pf-c-select__menu-group",Dn="pf-c-select__menu-group-title",jn="pf-c-select__menu-item",Pn="pf-c-select__menu-item-action-icon",Ln="pf-c-select__menu-item-count",An="pf-c-select__menu-item-description",Fn="pf-c-select__menu-item-icon",Mn="pf-c-select__menu-item-main",Bn="pf-c-select__menu-item-row",Vn="pf-c-select__menu-item-text",Hn="pf-c-select__menu-search",zn="pf-c-select__menu-wrapper",$n="pf-c-select__toggle",Wn="pf-c-select__toggle-arrow",Kn="pf-c-select__toggle-badge",Gn="pf-c-select__toggle-button",Un="pf-c-select__toggle-clear",qn="pf-c-select__toggle-icon",Xn="pf-c-select__toggle-status-icon",Yn="pf-c-select__toggle-text",Jn="pf-c-select__toggle-typeahead",Qn="pf-c-select__toggle-wrapper";var Zn=At({name:"TimesCircleIcon",height:512,width:512,svgPath:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z",yOffset:0,xOffset:0}),er="pf-c-form__fieldset",tr="pf-c-form__helper-text",nr={horizontal:"pf-m-horizontal",alignRight:"pf-m-align-right",noPaddingTop:"pf-m-no-padding-top",horizontalOnXs:"pf-m-horizontal-on-xs",horizontalOnSm:"pf-m-horizontal-on-sm",horizontalOnMd:"pf-m-horizontal-on-md",horizontalOnLg:"pf-m-horizontal-on-lg",horizontalOnXl:"pf-m-horizontal-on-xl",horizontalOn_2xl:"pf-m-horizontal-on-2xl",limitWidth:"pf-m-limit-width",action:"pf-m-action",info:"pf-m-info",disabled:"pf-m-disabled",inline:"pf-m-inline",stack:"pf-m-stack",error:"pf-m-error",success:"pf-m-success",warning:"pf-m-warning",inactive:"pf-m-inactive",hidden:"pf-m-hidden",expanded:"pf-m-expanded"},rr="pf-c-check",or="pf-c-check__body",ar="pf-c-check__description",ir="pf-c-check__input",sr="pf-c-check__label",lr={standalone:"pf-m-standalone",disabled:"pf-m-disabled"};var cr=At({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});const dr=o.createContext(null);dr.Provider;const pr=dr.Consumer;var ur,fr,mr;!function(e){e.single="single",e.checkbox="checkbox",e.typeahead="typeahead",e.typeaheadMulti="typeaheadmulti"}(ur||(ur={})),function(e){e.right="right",e.left="left"}(fr||(fr={})),function(e){e.up="up",e.down="down"}(mr||(mr={}));const hr="Tab",br=" ",gr="Escape",vr="Enter",yr="ArrowUp",wr="ArrowDown",xr="ArrowLeft",Cr="ArrowRight";class Or extends o.Component{constructor(){super(...arguments),this.ref=o.createRef(),this.liRef=o.createRef(),this.favoriteRef=o.createRef(),this.onKeyDown=(e,t,n,r)=>{const{index:o,keyHandler:a,isLastOptionBeforeFooter:i}=this.props;let s=!1;void 0!==i&&(s=i(o)),e.key===hr&&(r&&!s?(e.shiftKey?a(o,t,"up"):a(o,t,"down"),e.stopPropagation()):a(o,t,"tab")),e.preventDefault(),e.key===yr?a(o,t,"up"):e.key===wr?a(o,t,"down"):e.key===xr?a(o,t,"left"):e.key===Cr?a(o,t,"right"):e.key===vr&&(void 0!==n?n():this.ref.current.click())}}componentDidMount(){this.props.sendRef(this.props.isDisabled?null:this.ref.current,this.props.isDisabled?null:this.favoriteRef.current,this.props.isDisabled?null:this.liRef.current,this.props.index)}componentDidUpdate(){this.props.sendRef(this.props.isDisabled?null:this.ref.current,this.props.isDisabled?null:this.favoriteRef.current,this.props.isDisabled?null:this.liRef.current,this.props.index)}render(){const e=this.props,{children:t,className:n,id:r,description:a,itemCount:i,value:c,onClick:d,isDisabled:p,isPlaceholder:u,isNoResultsOption:f,isSelected:m,isChecked:h,isFocused:b,sendRef:g,keyHandler:v,index:y,component:w,inputId:x,isFavorite:C,ariaIsFavoriteLabel:O="starred",ariaIsNotFavoriteLabel:E="not starred",isLoad:N,isLoading:k,setViewMoreNextIndex:T,isLastOptionBeforeFooter:S}=e,_=s(e,["children","className","id","description","itemCount","value","onClick","isDisabled","isPlaceholder","isNoResultsOption","isSelected","isChecked","isFocused","sendRef","keyHandler","index","component","inputId","isFavorite","ariaIsFavoriteLabel","ariaIsNotFavoriteLabel","isLoad","isLoading","setViewMoreNextIndex","isLastOptionBeforeFooter"]),R=w;r||null===C||console.error("Please provide an id to use the favorites feature.");const I=r||G("select-option"),D=e=>o.createElement("button",{className:l(jn,Nn.action,Nn.favoriteAction),"aria-label":C?O:E,onClick:()=>{e(I.replace("favorite-",""),C)},onKeyDown:t=>{this.onKeyDown(t,1,(()=>e(I.replace("favorite-",""))))},ref:this.favoriteRef},o.createElement("span",{className:l(Pn)},o.createElement(xn,null))),j=i?o.createElement("span",{className:l(Bn)},o.createElement("span",{className:l(Vn)},t||c&&c.toString&&c.toString()),o.createElement("span",{className:l(Ln)},i)):t||c.toString(),P=e=>{T(),d(e)};return o.createElement(pr,null,(({onSelect:e,onClose:i,variant:s,inputIdPrefix:g,onFavorite:v})=>o.createElement(o.Fragment,null,s!==ur.checkbox&&o.createElement("li",{id:I,role:"presentation",className:l(k&&Tn,!N&&!k&&zn,C&&Nn.favorite,b&&Nn.focus,k&&Nn.loading),ref:this.liRef},k&&t,!k&&o.createElement(o.Fragment,null,o.createElement(R,Object.assign({},_,{className:l(jn,N&&Nn.load,m&&Nn.selected,p&&Nn.disabled,a&&Nn.description,null!==C&&Nn.link,n),onClick:t=>{N?(P(t),t.stopPropagation()):p||k||(d(t),e(t,c,u),i())},role:"option","aria-selected":m||null,ref:this.ref,onKeyDown:e=>{this.onKeyDown(e,0)},type:"button"}),a&&o.createElement(o.Fragment,null,o.createElement("span",{className:l(Mn)},j,m&&o.createElement("span",{className:l(Fn)},o.createElement(cr,{"aria-hidden":!0}))),o.createElement("span",{className:l(An)},a)),!a&&o.createElement(o.Fragment,null,j,m&&o.createElement("span",{className:l(Fn)},o.createElement(cr,{"aria-hidden":!0})))),null!==C&&r&&D(v))),s===ur.checkbox&&N&&o.createElement("button",{className:l(jn,Nn.load,b&&Nn.focus,n),onKeyDown:e=>{this.onKeyDown(e,0,void 0,!0)},onClick:e=>{P(e),e.stopPropagation()},ref:this.ref},t||c&&c.toString&&c.toString()),s===ur.checkbox&&k&&o.createElement("div",{className:l(Tn,k&&Nn.loading,n)},t),s===ur.checkbox&&!f&&!k&&!N&&o.createElement("label",Object.assign({},_,{className:l(rr,jn,p&&Nn.disabled,a&&Nn.description,n),onKeyDown:e=>{this.onKeyDown(e,0,void 0,!0)}}),o.createElement("input",{id:x||`${g}-${c.toString()}`,className:l(ir),type:"checkbox",onChange:t=>{p||(d(t),e(t,c))},ref:this.ref,checked:h||!1,disabled:p}),o.createElement("span",{className:l(sr,p&&Nn.disabled)},j),a&&o.createElement("div",{className:l(ar)},a)),s===ur.checkbox&&f&&!k&&!N&&o.createElement("div",null,o.createElement(R,Object.assign({},_,{className:l(jn,m&&Nn.selected,p&&Nn.disabled,n),role:"option","aria-selected":m||null,ref:this.ref,onKeyDown:e=>{this.onKeyDown(e,0,void 0,!0)},type:"button"}),j)))))}}Or.displayName="SelectOption",Or.defaultProps={className:"",value:"",index:0,isDisabled:!1,isPlaceholder:!1,isSelected:!1,isChecked:!1,isNoResultsOption:!1,component:"button",onClick:()=>{},sendRef:()=>{},keyHandler:()=>{},inputId:"",isFavorite:null,isLoad:!1,isLoading:!1,setViewMoreNextIndex:()=>{},isLastOptionBeforeFooter:()=>!1};const Er=e=>{var{children:t=[],className:n="",label:r="",titleId:a=""}=e,i=s(e,["children","className","label","titleId"]);return o.createElement(pr,null,(({variant:e})=>o.createElement("div",Object.assign({},i,{className:l(In,n)}),o.createElement("div",{className:l(Dn),id:a,"aria-hidden":!0},r),e===ur.checkbox?t:o.createElement("ul",{role:"listbox"},t))))};Er.displayName="SelectGroup";class Nr extends o.Component{extendChildren(e){const{children:t,hasInlineFilter:n,isGrouped:r}=this.props,a=t;let i=n?1:0;return r?o.Children.map(a,(t=>t.type===Er?o.cloneElement(t,{titleId:t.props.label&&t.props.label.replace(/\W/g,"-"),children:o.Children.map(t.props.children,(t=>this.cloneOption(t,i++,e)))}):this.cloneOption(t,i++,e))):o.Children.map(a,(t=>this.cloneOption(t,i++,e)))}cloneOption(e,t,n){const{selected:r,sendRef:a,keyHandler:i}=this.props,s=this.checkForValue(e.props.value,r);return e.type===pn?e:o.cloneElement(e,{inputId:`${n}-${t}`,isSelected:s,sendRef:a,keyHandler:i,index:t})}checkForValue(e,t){if(!t||!e)return!1;const n="string"!=typeof e&&e.toString&&e.compareTo;return Array.isArray(t)?n?t.some((t=>t.compareTo(e))):t.includes(e):n?t.compareTo(e):t===e}extendCheckboxChildren(e){const{isGrouped:t,checked:n,sendRef:r,keyHandler:a,hasInlineFilter:i,isLastOptionBeforeFooter:s}=this.props;let c=i?1:0;return t?o.Children.map(e,(e=>e.type===Or||e.type===pn?e:o.cloneElement(e,{titleId:e.props.label&&e.props.label.replace(/\W/g,"-"),children:e.props.children?o.createElement("fieldset",{"aria-labelledby":e.props.label&&e.props.label.replace(/\W/g,"-"),className:l(_n)},o.Children.map(e.props.children,(e=>e.type===pn?e:o.cloneElement(e,{isChecked:this.checkForValue(e.props.value,n),sendRef:r,keyHandler:a,index:c++})))):null}))):o.Children.map(e,(e=>e.type===pn?e:o.cloneElement(e,{isChecked:this.checkForValue(e.props.value,n),sendRef:r,keyHandler:a,index:c++,isLastOptionBeforeFooter:s})))}renderSelectMenu({variant:e,inputIdPrefix:t}){const n=this.props,{children:r,isCustomContent:a,className:i,isExpanded:c,openedOnEnter:d,selected:p,checked:u,isGrouped:f,position:m,sendRef:h,keyHandler:b,maxHeight:g,noResultsFoundText:v,createText:y,"aria-label":w,"aria-labelledby":x,hasInlineFilter:C,innerRef:O,footer:E,footerRef:N,isLastOptionBeforeFooter:k}=n,T=s(n,["children","isCustomContent","className","isExpanded","openedOnEnter","selected","checked","isGrouped","position","sendRef","keyHandler","maxHeight","noResultsFoundText","createText","aria-label","aria-labelledby","hasInlineFilter","innerRef","footer","footerRef","isLastOptionBeforeFooter"]);let S="div";const _=Object.assign({ref:O,className:l(E?"pf-c-select__menu-list":Sn,m===fr.right&&Nn.alignRight,i)},g&&{style:{maxHeight:g,overflow:"auto"}}),R=()=>e===ur.checkbox?this.extendCheckboxChildren(r):this.extendChildren(t);return a?_.children=r:C?0===o.Children.count(r)?_.children=o.createElement("fieldset",{className:l(_n)}):_.children=o.createElement("fieldset",{"aria-label":w,"aria-labelledby":!w&&x||null,className:l(er)},r.shift(),R()):(_.children=R(),f||(S="ul",_.role="listbox",_["aria-label"]=w,_["aria-labelledby"]=!w&&x||null)),o.createElement(o.Fragment,null,o.createElement(S,Object.assign({},_,T)),E&&o.createElement("div",{className:l(Rn),ref:N},E))}render(){return o.createElement(pr,null,(e=>this.renderSelectMenu(e)))}}Nr.displayName="SelectMenu",Nr.defaultProps={className:"",isExpanded:!1,isGrouped:!1,openedOnEnter:!1,selected:"",maxHeight:"",position:fr.left,sendRef:()=>{},keyHandler:()=>{},isCustomContent:!1,hasInlineFilter:!1,isLastOptionBeforeFooter:()=>{}};const kr=o.forwardRef(((e,t)=>o.createElement(Nr,Object.assign({innerRef:t},e),e.children)));class Tr extends o.Component{constructor(e){super(e),this.onDocClick=e=>{const{parentRef:t,menuRef:n,isOpen:r,onToggle:o,onClose:a}=this.props,i=t&&t.current&&t.current.contains(e.target),s=n&&n.current&&n.current.contains&&n.current.contains(e.target);!r||i||s||(o(!1),a())},this.findTabbableFooterElements=()=>{const e=this.props.footerRef.current.querySelectorAll("input, button, select, textarea, a[href]");return Array.prototype.filter.call(e,(function(e){return e.tabIndex>="0"}))},this.handleGlobalKeys=e=>{const{parentRef:t,menuRef:n,hasFooter:r,isOpen:o,variant:a,onToggle:i,onClose:s}=this.props,l=t&&t.current&&t.current.contains(e.target),c=n&&n.current&&n.current.contains&&n.current.contains(e.target);if(o&&e.key===hr&&(a===ur.typeahead||a===ur.typeaheadMulti))return this.props.handleTypeaheadKeys("tab"),void e.preventDefault();if(o&&e.key===hr&&r){const t=this.findTabbableFooterElements();if(t.length<=0)return i(!1),s(),void this.toggle.current.focus();{const n=t.findIndex((e=>e===document.activeElement));if(-1===n)return void t[0].focus();if(e.shiftKey)return;return n+1<t.length?t[n+1].focus():(i(!1),s(),this.toggle.current.focus()),void e.preventDefault()}}!o||e.key!==gr&&e.key!==hr||!l&&!c||(i(!1),s(),this.toggle.current.focus())},this.onKeyDown=e=>{const{isOpen:t,onToggle:n,variant:r,onClose:o,onEnter:a,handleTypeaheadKeys:i}=this.props;r!==ur.typeahead&&r!==ur.typeaheadMulti||(e.key===wr||e.key===yr?(i(e.key===wr?"down":e.key===yr&&"up"),e.preventDefault()):e.key===vr&&(t?i("enter"):n(!t))),r===ur.typeahead||r===ur.typeaheadMulti||e.key===hr&&!t||e.key!==vr&&e.key!==br||(e.preventDefault(),e.key!==hr&&e.key!==vr&&e.key!==br||!t?e.key!==vr&&e.key!==br||t||(n(!t),a()):(n(!t),o(),this.toggle.current.focus()))};const{variant:t}=e;t===ur.typeahead||ur.typeaheadMulti;this.toggle=o.createRef()}componentDidMount(){document.addEventListener("click",this.onDocClick),document.addEventListener("touchstart",this.onDocClick),document.addEventListener("keydown",this.handleGlobalKeys)}componentWillUnmount(){document.removeEventListener("click",this.onDocClick),document.removeEventListener("touchstart",this.onDocClick),document.removeEventListener("keydown",this.handleGlobalKeys)}render(){const e=this.props,{className:t,children:n,isOpen:r,isActive:a,isPlain:i,isDisabled:c,hasPlaceholderStyle:d,variant:p,onToggle:u,onEnter:f,onClose:m,onClickTypeaheadToggleButton:h,handleTypeaheadKeys:b,parentRef:g,menuRef:v,id:y,type:w,hasClearButton:x,"aria-labelledby":C,"aria-label":O,hasFooter:E,footerRef:N}=e,k=s(e,["className","children","isOpen","isActive","isPlain","isDisabled","hasPlaceholderStyle","variant","onToggle","onEnter","onClose","onClickTypeaheadToggleButton","handleTypeaheadKeys","parentRef","menuRef","id","type","hasClearButton","aria-labelledby","aria-label","hasFooter","footerRef"]),T=p===ur.typeahead||p===ur.typeaheadMulti||x,S={id:y,"aria-labelledby":C,"aria-expanded":r,"aria-haspopup":p!==ur.checkbox?"listbox":null};return o.createElement(o.Fragment,null,!T&&o.createElement("button",Object.assign({},k,S,{ref:this.toggle,type:w,className:l($n,d&&Nn.placeholder,c&&Nn.disabled,i&&Nn.plain,a&&Nn.active,t),"aria-label":O,onClick:e=>{u(!r),r&&m()},onKeyDown:this.onKeyDown,disabled:c}),n,o.createElement("span",{className:l(Wn)},o.createElement(fn,null))),T&&o.createElement("div",Object.assign({},k,{ref:this.toggle,className:l($n,d&&Nn.placeholder,c&&Nn.disabled,i&&Nn.plain,T&&Nn.typeahead,t),onClick:e=>{c||u(!r)},onKeyDown:this.onKeyDown}),n,o.createElement("button",Object.assign({},S,{type:w,className:l(Tt.button,Gn,Nn.plain),"aria-label":O,onClick:e=>{u(!r),r&&m(),h()}},(p===ur.typeahead||p===ur.typeaheadMulti)&&{tabIndex:-1},{disabled:c}),o.createElement(fn,{className:l(Wn)}))))}}Tr.displayName="SelectToggle",Tr.defaultProps={className:"",isOpen:!1,isActive:!1,isPlain:!1,isDisabled:!1,hasPlaceholderStyle:!1,hasClearButton:!1,hasFooter:!1,variant:"single","aria-labelledby":"","aria-label":"",type:"button",onToggle:()=>{},onEnter:()=>{},onClose:()=>{},onClickTypeaheadToggleButton:()=>{}};var Sr="pf-c-chip-group",_r="pf-c-chip-group__close",Rr="pf-c-chip-group__label",Ir="pf-c-chip-group__list",Dr="pf-c-chip-group__list-item",jr="pf-c-chip-group__main",Pr={category:"pf-m-category"},Lr="pf-c-chip",Ar="pf-c-chip__text",Fr={overflow:"pf-m-overflow",draggable:"pf-m-draggable"};class Mr extends o.Component{constructor(e){super(e),this.span=o.createRef(),this.renderOverflowChip=()=>{const{children:e,className:t,onClick:n,ouiaId:r}=this.props,a=this.props.component;return o.createElement(a,Object.assign({onClick:n,className:l(Lr,Fr.overflow,t)},"button"===this.props.component?{type:"button"}:{},z("OverflowChip",void 0!==r?r:this.state.ouiaStateId)),o.createElement("span",{className:l(Ar)},e))},this.renderChip=e=>{const{children:t,tooltipPosition:n}=this.props;return this.state.isTooltipVisible?o.createElement(Yt,{position:n,content:t},this.renderInnerChip(e)):this.renderInnerChip(e)},this.state={isTooltipVisible:!1,ouiaStateId:K(Mr.displayName)}}componentDidMount(){this.setState({isTooltipVisible:Boolean(this.span.current&&this.span.current.offsetWidth<this.span.current.scrollWidth)})}renderInnerChip(e){const{children:t,className:n,onClick:r,closeBtnAriaLabel:a,isReadOnly:i,component:s,ouiaId:c}=this.props,d=s;return o.createElement(d,Object.assign({className:l(Lr,n)},this.state.isTooltipVisible&&{tabIndex:0},z(Mr.displayName,void 0!==c?c:this.state.ouiaStateId)),o.createElement("span",{ref:this.span,className:l(Ar),id:e},t),!i&&o.createElement(jt,{onClick:r,variant:"plain","aria-label":a,id:`remove_${e}`,"aria-labelledby":`remove_${e} ${e}`,ouiaId:c||a},o.createElement(Ft,{"aria-hidden":"true"})))}render(){const{isOverflowChip:e}=this.props;return o.createElement(M,null,(t=>e?this.renderOverflowChip():this.renderChip(this.props.id||t)))}}Mr.displayName="Chip",Mr.defaultProps={closeBtnAriaLabel:"close",className:"",isOverflowChip:!1,isReadOnly:!1,tooltipPosition:"top",onClick:e=>{},component:"div"};class Br extends o.Component{constructor(e){super(e),this.headingRef=o.createRef(),this.toggleCollapse=()=>{this.setState((e=>({isOpen:!e.isOpen,isTooltipVisible:Boolean(this.headingRef.current&&this.headingRef.current.offsetWidth<this.headingRef.current.scrollWidth)})))},this.state={isOpen:this.props.defaultIsOpen,isTooltipVisible:!1}}componentDidMount(){this.setState({isTooltipVisible:Boolean(this.headingRef.current&&this.headingRef.current.offsetWidth<this.headingRef.current.scrollWidth)})}renderLabel(e){const{categoryName:t,tooltipPosition:n}=this.props,{isTooltipVisible:r}=this.state;return r?o.createElement(Yt,{position:n,content:t},o.createElement("span",{tabIndex:0,ref:this.headingRef,className:l(Rr),id:e,"aria-label":t},o.createElement("span",{"aria-hidden":"true"},t))):o.createElement("span",{ref:this.headingRef,className:l(Rr),"aria-hidden":"true",id:e},t)}render(){const e=this.props,{categoryName:t,children:n,className:r,isClosable:a,closeBtnAriaLabel:i,"aria-label":c,onClick:d,onOverflowChipClick:p,numChips:u,expandedText:f,collapsedText:m,ouiaId:h,defaultIsOpen:b,tooltipPosition:g}=e,v=s(e,["categoryName","children","className","isClosable","closeBtnAriaLabel","aria-label","onClick","onOverflowChipClick","numChips","expandedText","collapsedText","ouiaId","defaultIsOpen","tooltipPosition"]),{isOpen:y}=this.state,w=o.Children.count(n),x=(C=m,O={remaining:o.Children.count(n)-u},C.replace(/\${(.*?)}/g,((e,t)=>O[t]||"")));var C,O;const E=e=>{const s=y?o.Children.toArray(n):o.Children.toArray(n).slice(0,u);return o.createElement("div",Object.assign({className:l(Sr,r,t&&Pr.category)},z(Br.displayName,h)),o.createElement("div",{className:l(jr)},t&&this.renderLabel(e),o.createElement("ul",Object.assign({className:l(Ir)},t&&{"aria-labelledby":e},!t&&{"aria-label":c},{role:"list"},v),s.map(((e,t)=>o.createElement("li",{className:l(Dr),key:t},e))),w>u&&o.createElement("li",{className:l(Dr)},o.createElement(Mr,{isOverflowChip:!0,onClick:e=>{this.toggleCollapse(),p(e)},component:"button"},y?f:x)))),a&&o.createElement("div",{className:l(_r)},o.createElement(jt,{variant:"plain","aria-label":i,onClick:d,id:`remove_group_${e}`,"aria-labelledby":`remove_group_${e} ${e}`,ouiaId:h||i},o.createElement(Zn,{"aria-hidden":"true"}))))};return 0===w?null:o.createElement(M,null,(e=>E(this.props.id||e)))}}Br.displayName="ChipGroup",Br.defaultProps={expandedText:"Show Less",collapsedText:"${remaining} more",categoryName:"",defaultIsOpen:!1,numChips:3,isClosable:!1,onClick:e=>{},onOverflowChipClick:e=>{},closeBtnAriaLabel:"Close chip group",tooltipPosition:"top","aria-label":"Chip group category"};let Vr=0;class Hr extends o.Component{constructor(){super(...arguments),this.parentRef=o.createRef(),this.menuComponentRef=o.createRef(),this.filterRef=o.createRef(),this.clearRef=o.createRef(),this.inputRef=o.createRef(),this.refCollection=[[]],this.optionContainerRefCollection=[],this.footerRef=o.createRef(),this.state={focusFirstOption:!1,typeaheadInputValue:null,typeaheadFilteredChildren:o.Children.toArray(this.props.children),favoritesGroup:[],typeaheadCurrIndex:-1,typeaheadStoredIndex:-1,creatableValue:"",tabbedIntoFavoritesMenu:!1,ouiaStateId:K(Hr.displayName,this.props.variant),viewMoreNextIndex:-1},this.getTypeaheadActiveChild=e=>this.refCollection[e]?this.refCollection[e][0]:null,this.componentDidUpdate=(e,t)=>{if(this.props.hasInlineFilter&&(this.refCollection[0][0]=this.filterRef.current),!t.focusFirstOption&&this.state.focusFirstOption&&!this.props.customContent){const e=this.refCollection.find((e=>null!==e));e&&e[0]&&e[0].focus()}-1!==this.state.viewMoreNextIndex&&this.refCollection.length>this.state.viewMoreNextIndex&&"spinner"!==this.props.loadingVariant&&this.refCollection[this.state.viewMoreNextIndex][0]&&this.refCollection[this.state.viewMoreNextIndex][0].focus();if((e.children.length!==this.props.children.length||e.children.some(((e,t)=>{const n=e.props,r=this.props.children[t],{props:o}=r;return n&&o?n.value!==o.value||n.label!==o.label||n.isDisabled!==o.isDisabled||n.isPlaceholder!==o.isPlaceholder:e!==r})))&&this.updateTypeAheadFilteredChildren(t.typeaheadInputValue||"",null),this.props.onFavorite&&(this.props.favorites.length!==e.favorites.length||this.state.typeaheadFilteredChildren!==t.typeaheadFilteredChildren)){const e=((e,t,n,r)=>{if(t){const t=[];return e.forEach((e=>{if(n.length>0)return e.props.children&&e.props.children.filter((e=>n.includes(e.props.id))).map((e=>r?t.push(o.cloneElement(e,{isFavorite:!0,enterTriggersArrowDown:r,id:`favorite-${e.props.id}`})):t.push(o.cloneElement(e,{isFavorite:!0,id:`favorite-${e.props.id}`}))))})),t}return e.filter((e=>n.includes(e.props.id))).map((e=>o.cloneElement(e,{isFavorite:!0,enterTriggersArrowDown:r})))})("typeahead"===this.props.variant||"typeaheadmulti"===this.props.variant?this.state.typeaheadFilteredChildren:this.props.children,this.props.isGrouped,this.props.favorites),t=e.length?[o.createElement(Er,{key:"favorites",label:this.props.favoritesLabel},e),o.createElement(pn,{key:"favorites-group-divider"})]:[];this.setState({favoritesGroup:t})}},this.onEnter=()=>{this.setState({focusFirstOption:!0})},this.onToggle=e=>{const{isInputValuePersisted:t,onSelect:n,onToggle:r,hasInlineFilter:o}=this.props;!e&&t&&n&&n(void 0,this.inputRef.current?this.inputRef.current.value:""),e&&o&&this.setState({focusFirstOption:!0}),r(e)},this.onClose=()=>{const{isInputFilterPersisted:e}=this.props;this.setState(Object.assign(Object.assign({focusFirstOption:!1,typeaheadInputValue:null},!e&&{typeaheadFilteredChildren:o.Children.toArray(this.props.children)}),{typeaheadCurrIndex:-1,tabbedIntoFavoritesMenu:!1}))},this.onChange=e=>{""===e.target.value.toString()||this.props.isOpen||this.onToggle(!0),this.props.onTypeaheadInputChanged&&this.props.onTypeaheadInputChanged(e.target.value.toString()),this.setState({typeaheadCurrIndex:-1,typeaheadInputValue:e.target.value,creatableValue:e.target.value}),this.updateTypeAheadFilteredChildren(e.target.value.toString(),e),this.refCollection=[[]]},this.updateTypeAheadFilteredChildren=(e,t)=>{let n;const{onFilter:r,isCreatable:a,onCreateOption:i,createText:s,noResultsFoundText:l,children:c,isGrouped:d,isCreateSelectOptionObject:p}=this.props;if(r)n=r(t,t?t.target.value:e)||c;else{let t;try{t=new RegExp(e.toString(),"i")}catch(n){t=new RegExp(e.toString().replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i")}const r=o.Children.toArray(c);if(d){const a=e=>e.props.value&&e.props.value.toString&&0===this.getDisplay(e.props.value.toString(),"text").search(t);n=""!==e.toString()?o.Children.map(c,(e=>{if(!o.isValidElement(e)||e.type!==Er)return o.Children.toArray(e).filter(a);{const t=o.Children.toArray(e.props.children).filter(a);if(t.length>0)return o.cloneElement(e,{titleId:e.props.label&&e.props.label.replace(/\W/g,"-"),children:t})}})):r}else n=""!==e.toString()?r.filter((n=>{const r=n.props.value;if(!r)return!0;return"string"!=typeof r&&r.toString&&r.compareTo?r.compareTo(e):0===this.getDisplay(n.props.value.toString(),"text").search(t)})):r}if(n||(n=[]),0===n.length&&!a&&n.push(o.createElement(Or,{isDisabled:!0,key:"no-results",value:l,isNoResultsOption:!0})),a&&""!==e){const t=e;if(!n.find((e=>e.props.value&&e.props.value.toString().toLowerCase()===t.toString().toLowerCase()))){const e=p?{toString:()=>t,compareTo:e=>this.toString().toLowerCase().includes(e.toString().toLowerCase())}:t;n.push(o.createElement(Or,{key:`create ${t}`,value:e,onClick:()=>i&&i(t)},s,' "',t,'"'))}}this.setState({typeaheadFilteredChildren:n})},this.onClick=e=>{this.props.isOpen||this.onToggle(!0)},this.clearSelection=e=>{this.setState({typeaheadInputValue:null,typeaheadFilteredChildren:o.Children.toArray(this.props.children),typeaheadCurrIndex:-1})},this.sendRef=(e,t,n,r)=>{this.refCollection[r]=[e,t],this.optionContainerRefCollection[r]=n},this.handleMenuKeys=(e,t,n)=>{q(e,t,n,this.refCollection,this.refCollection),this.props.variant!==ur.typeahead&&this.props.variant!==ur.typeaheadMulti||"tab"!==n&&this.handleTypeaheadKeys(n)},this.moveFocus=(e,t=!0)=>{const{isCreatable:n,createText:r}=this.props,o=Boolean(this.refCollection[e][0]&&this.refCollection[e][0].classList.contains("pf-m-description"))?this.refCollection[e][0].firstElementChild:this.refCollection[e][0];let a="";n&&o.innerText.includes(r)?a=this.state.creatableValue:o&&(a=o.innerText),this.setState((n=>({typeaheadCurrIndex:t?e:n.typeaheadCurrIndex,typeaheadStoredIndex:e,typeaheadInputValue:a})))},this.handleTypeaheadKeys=e=>{const{isOpen:t,onFavorite:n}=this.props,{typeaheadCurrIndex:r,tabbedIntoFavoritesMenu:o,typeaheadStoredIndex:a}=this.state,i=this.getTypeaheadActiveChild(r);if(t)if("enter"===e)(i||this.refCollection[0]&&this.refCollection[0][0])&&(this.setState({typeaheadInputValue:i&&i.innerText||this.refCollection[0][0].innerText}),i?i.click():this.refCollection[0][0].click());else if("tab"===e)if(n)if(this.inputRef.current===document.activeElement){let e=0;-1!==r?e=r:-1!==a&&(e=a),null!==this.refCollection[e]&&null!==this.refCollection[e][0]?this.refCollection[e][0].focus():this.clearRef.current.focus(),this.setState({tabbedIntoFavoritesMenu:!0,typeaheadCurrIndex:-1})}else this.inputRef.current.focus(),this.setState({tabbedIntoFavoritesMenu:!1});else this.onToggle(!1);else if(o){const e=this.refCollection.findIndex((e=>void 0!==e&&(e[0]===document.activeElement||e[1]===document.activeElement)));this.moveFocus(e)}else{if(null===this.refCollection[0][0])return;let t;if(t=-1===r&&"down"===e?0:-1===r&&"up"===e?this.refCollection.length-1:"left"!==e&&"right"!==e?X(r,e,this.refCollection):r,null===this.refCollection[t])return;this.moveFocus(t)}},this.onClickTypeaheadToggleButton=()=>{this.inputRef&&this.inputRef.current&&this.inputRef.current.focus()},this.getDisplay=(e,t="node")=>{if(!e)return;const n=this.props.isGrouped?o.Children.toArray(this.props.children).reduce(((e,t)=>[...e,...o.Children.toArray(t.props.children)]),[]).find((t=>t.props.value.toString()===e.toString())):o.Children.toArray(this.props.children).find((t=>t.props.value&&t.props.value.toString()===e.toString()));return n?n&&n.props.children?"node"===t?n.props.children:this.findText(n):n.props.value.toString():e.toString()},this.findText=e=>{if("string"==typeof e)return e;if(o.isValidElement(e)){const t=[];return o.Children.toArray(e.props.children).forEach((e=>t.push(this.findText(e)))),t.join("")}return""},this.generateSelectedBadge=()=>{const{customBadgeText:e,selections:t}=this.props;return null!==e?e:Array.isArray(t)&&t.length>0?t.length:null},this.setVieMoreNextIndex=()=>{this.setState({viewMoreNextIndex:this.refCollection.length-1})},this.isLastOptionBeforeFooter=e=>!(!this.props.footer||e!==this.refCollection.length-1)}extendTypeaheadChildren(e,t){const{isGrouped:n,onFavorite:r}=this.props,a=t?t.concat(this.state.typeaheadFilteredChildren):this.state.typeaheadFilteredChildren,i=this.optionContainerRefCollection[e];let s=this.getTypeaheadActiveChild(e);return s&&s.classList.contains("pf-m-description")&&(s=s.firstElementChild),this.refCollection=[[]],this.optionContainerRefCollection=[],n?o.Children.map(a,(e=>e.type===pn?e:e.type===Er&&r?o.cloneElement(e,{titleId:e.props.label&&e.props.label.replace(/\W/g,"-"),children:o.Children.map(e.props.children,(t=>t.type===pn?t:o.cloneElement(t,{isFocused:i&&(i.id===t.props.id||this.props.isCreatable&&s.innerText===`{createText} "${e.props.value}"`)})))}):e.type===Er?o.cloneElement(e,{titleId:e.props.label&&e.props.label.replace(/\W/g,"-"),children:o.Children.map(e.props.children,(e=>e.type===pn?e:o.cloneElement(e,{isFocused:s&&(s.innerText===e.props.value.toString()||this.props.isCreatable&&s.innerText===`{createText} "${e.props.value}"`)})))}):o.cloneElement(e,{isFocused:s&&(s.innerText===e.props.value.toString()||this.props.isCreatable&&s.innerText===`{createText} "${e.props.value}"`)}))):a.map((e=>"Divider"===e.type.displayName?e:o.cloneElement(e,{isFocused:s&&(s.innerText===e.props.value.toString()||this.props.isCreatable&&s.innerText===`{createText} "${e.props.value}"`)})))}render(){const e=this.props,{children:t,chipGroupProps:n,chipGroupComponent:r,className:a,customContent:i,variant:c,direction:d,onSelect:p,onClear:u,toggleId:f,isOpen:m,isGrouped:h,isPlain:g,isDisabled:v,hasPlaceholderStyle:y,validated:w,selections:x,typeAheadAriaLabel:C,clearSelectionsAriaLabel:O,toggleAriaLabel:E,removeSelectionAriaLabel:N,"aria-label":k,"aria-labelledby":T,"aria-describedby":S,"aria-invalid":_,placeholderText:R,width:I,maxHeight:D,toggleIcon:j,ouiaId:P,ouiaSafe:L,hasInlineFilter:A,isCheckboxSelectionBadgeHidden:F,inlineFilterPlaceholderText:B,onFilter:V,onTypeaheadInputChanged:H,onCreateOption:$,isCreatable:W,onToggle:K,createText:G,noResultsFoundText:U,customBadgeText:q,inputIdPrefix:X,isInputValuePersisted:Y,isInputFilterPersisted:J,menuAppendTo:Q,favorites:Z,onFavorite:ee,favoritesLabel:te,footer:ne,loadingVariant:re,isCreateSelectOptionObject:oe}=e,ae=s(e,["children","chipGroupProps","chipGroupComponent","className","customContent","variant","direction","onSelect","onClear","toggleId","isOpen","isGrouped","isPlain","isDisabled","hasPlaceholderStyle","validated","selections","typeAheadAriaLabel","clearSelectionsAriaLabel","toggleAriaLabel","removeSelectionAriaLabel","aria-label","aria-labelledby","aria-describedby","aria-invalid","placeholderText","width","maxHeight","toggleIcon","ouiaId","ouiaSafe","hasInlineFilter","isCheckboxSelectionBadgeHidden","inlineFilterPlaceholderText","onFilter","onTypeaheadInputChanged","onCreateOption","isCreatable","onToggle","createText","noResultsFoundText","customBadgeText","inputIdPrefix","isInputValuePersisted","isInputFilterPersisted","menuAppendTo","favorites","onFavorite","favoritesLabel","footer","loadingVariant","isCreateSelectOptionObject"]),{focusFirstOption:ie,typeaheadCurrIndex:se,typeaheadInputValue:le,typeaheadFilteredChildren:ce,favoritesGroup:de}=this.state,pe=f||"pf-select-toggle-id-"+Vr++,ue=Array.isArray(x)?x:[x],fe=o.Children.toArray(t).find((e=>e.props.value===ue[0])),me=fe&&fe.props.isPlaceholder,he=Boolean(ue[0]&&""!==ue[0]),be=this.getTypeaheadActiveChild(se);let ge=null,ve=[];if(ee){let e=t;"typeahead"===c||"typeaheadmulti"===c?e=this.extendTypeaheadChildren(se,de):ee&&(e=de.concat(t)),ve=((e,t,n)=>t?e.map((e=>o.cloneElement(e,{children:o.Children.map(e.props.children,(e=>e.type===wn||e.type===pn?e:o.cloneElement(e,{isFavorite:n.some((t=>t===e.props.id||`favorite-${t}`===e.props.id))})))}))):e.map((e=>o.cloneElement(e,{isFavorite:n.some((t=>t===e.props.id))}))))(e,h,Z)}else ve=t;if(!i&&!he&&!R){const e=o.Children.toArray(t).filter((e=>!0===e.props.isPlaceholder));ge=e[0]&&this.getDisplay(e[0].props.value,"node")||t[0]&&this.getDisplay(t[0].props.value,"node")}m&&void 0===ve.find((e=>{var t;return"loading"===(null===(t=e)||void 0===t?void 0:t.key)}))&&("spinner"===re?ve.push(o.createElement(Or,{isLoading:!0,key:"loading",value:"loading"},o.createElement(_t,{size:"lg"}))):(null==re?void 0:re.text)&&ve.push(o.createElement(Or,{isLoad:!0,key:"loading",value:re.text,setViewMoreNextIndex:this.setVieMoreNextIndex,onClick:null==re?void 0:re.onClick})));const ye=u!==Hr.defaultProps.onClear,we=o.createElement("button",{className:l(Tt.button,Tt.modifiers.plain,Un),onClick:e=>{this.clearSelection(e),u(e)},"aria-label":O,type:"button",disabled:v,ref:this.clearRef,onKeyDown:e=>{e.key===vr&&this.clearRef.current.click()}},o.createElement(Zn,{"aria-hidden":!0}));let xe,Ce,Oe=null;if(c===ur.typeaheadMulti&&(Oe=r||o.createElement(Br,Object.assign({},n),ue&&ue.map((e=>o.createElement(Mr,{key:e,onClick:t=>p(t,e),closeBtnAriaLabel:N},this.getDisplay(e,"node")))))),A){ve=[o.createElement(o.Fragment,null,o.createElement("div",{key:"inline-filter",className:l(Hn)},o.createElement("input",{key:"inline-filter-input",type:"search",className:l(Zt.formControl,Zt.modifiers.search),onChange:this.onChange,placeholder:B,onKeyDown:e=>{e.key===yr?(this.handleMenuKeys(0,0,"up"),e.preventDefault()):e.key===wr?(this.handleMenuKeys(0,0,"down"),e.preventDefault()):e.key===xr?(this.handleMenuKeys(0,0,"left"),e.preventDefault()):e.key===Cr?(this.handleMenuKeys(0,0,"right"),e.preventDefault()):e.key===hr&&c===ur.checkbox&&(e.shiftKey?this.handleMenuKeys(0,0,"up"):this.handleMenuKeys(0,0,"down"),e.stopPropagation(),e.preventDefault())},ref:this.filterRef,autoComplete:"never"})),o.createElement(pn,{key:"inline-filter-divider"})),...ce].map(((e,t)=>o.cloneElement(e,{key:t})))}if(i)xe={selected:ue,openedOnEnter:ie,isCustomContent:!0},Ce=i;else switch(c){case"single":xe={selected:ue[0],hasInlineFilter:A,openedOnEnter:ie},Ce=ve;break;case"checkbox":xe={checked:ue,isGrouped:h,hasInlineFilter:A,openedOnEnter:ie},Ce=ve;break;case"typeahead":xe={selected:ue[0],openedOnEnter:ie},Ce=ee?ve:this.extendTypeaheadChildren(se),0===Ce.length&&Ce.push(o.createElement(Or,{isDisabled:!0,key:0,value:U,isNoResultsOption:!0}));break;case"typeaheadmulti":xe={selected:ue,openedOnEnter:ie},Ce=ee?ve:this.extendTypeaheadChildren(se),0===Ce.length&&Ce.push(o.createElement(Or,{isDisabled:!0,key:0,value:U,isNoResultsOption:!0}))}const Ee=o.createElement(kr,Object.assign({},ae,{isGrouped:h,selected:ue},xe,{openedOnEnter:ie,"aria-label":k,"aria-labelledby":T,sendRef:this.sendRef,keyHandler:this.handleMenuKeys,maxHeight:D,ref:this.menuComponentRef,footer:ne,footerRef:this.footerRef,isLastOptionBeforeFooter:this.isLastOptionBeforeFooter}),Ce),Ne=ne?o.createElement("div",{className:l(Sn)}," ",Ee," "):Ee,ke=o.createElement("div",Object.assign({className:l(kn,m&&Nn.expanded,w===b.success&&Nn.success,w===b.warning&&Nn.warning,w===b.error&&Nn.invalid,d===mr.up&&Nn.top,a)},I&&{style:{width:I}},w!==b.default&&{"aria-describedby":S},w!==b.default&&{"aria-invalid":_}),m&&Ne),Te=o.createElement("div",Object.assign({className:l(kn,m&&Nn.expanded,w===b.success&&Nn.success,w===b.warning&&Nn.warning,w===b.error&&Nn.invalid,d===mr.up&&Nn.top,a),ref:this.parentRef},z(Hr.displayName,void 0!==P?P:this.state.ouiaStateId,L),I&&{style:{width:I}},w!==b.default&&{"aria-describedby":S},w!==b.default&&{"aria-invalid":_}),o.createElement(Tr,Object.assign({id:pe,parentRef:this.parentRef,menuRef:this.menuComponentRef},ne&&{footerRef:this.footerRef},{isOpen:m,isPlain:g,hasPlaceholderStyle:y&&(!ue.length||null===ue[0]||me),onToggle:this.onToggle,onEnter:this.onEnter,onClose:this.onClose,variant:c,"aria-labelledby":`${T||""} ${pe}`,"aria-label":E,handleTypeaheadKeys:this.handleTypeaheadKeys,isDisabled:v,hasClearButton:ye,hasFooter:void 0!==ne,onClickTypeaheadToggleButton:this.onClickTypeaheadToggleButton}),i&&o.createElement("div",{className:l(Qn)},j&&o.createElement("span",{className:l(qn)},j),o.createElement("span",{className:l(Yn)},R)),c===ur.single&&!i&&o.createElement(o.Fragment,null,o.createElement("div",{className:l(Qn)},j&&o.createElement("span",{className:l(qn)},j),o.createElement("span",{className:l(Yn)},this.getDisplay(ue[0],"node")||R||ge)),ye&&he&&we),c===ur.checkbox&&!i&&o.createElement(o.Fragment,null,o.createElement("div",{className:l(Qn)},j&&o.createElement("span",{className:l(qn)},j),o.createElement("span",{className:l(Yn)},R),!F&&he&&o.createElement("div",{className:l(Kn)},o.createElement("span",{className:l(bn,gn.read)},this.generateSelectedBadge()))),ye&&he&&we),c===ur.typeahead&&!i&&o.createElement(o.Fragment,null,o.createElement("div",{className:l(Qn)},j&&o.createElement("span",{className:l(qn)},j),o.createElement("input",{className:l(Zt.formControl,Jn),"aria-activedescendant":be&&be.id,id:`${pe}-select-typeahead`,"aria-label":C,placeholder:R,value:null!==le?le:this.getDisplay(ue[0],"text")||"",type:"text",onClick:this.onClick,onChange:this.onChange,autoComplete:"never",disabled:v,ref:this.inputRef})),ye&&(ue[0]||le)&&we),c===ur.typeaheadMulti&&!i&&o.createElement(o.Fragment,null,o.createElement("div",{className:l(Qn)},j&&o.createElement("span",{className:l(qn)},j),ue&&Array.isArray(ue)&&ue.length>0&&Oe,o.createElement("input",{className:l(Zt.formControl,Jn),"aria-activedescendant":be&&be.id,id:`${pe}-select-multi-typeahead-typeahead`,"aria-label":C,"aria-invalid":w===b.error,placeholder:R,value:null!==le?le:"",type:"text",onChange:this.onChange,onClick:this.onClick,autoComplete:"never",disabled:v,ref:this.inputRef})),ye&&(ue&&ue.length>0||le)&&we),w===b.success&&o.createElement("span",{className:l(Xn)},o.createElement(Mt,{"aria-hidden":"true"})),w===b.error&&o.createElement("span",{className:l(Xn)},o.createElement(Bt,{"aria-hidden":"true"})),w===b.warning&&o.createElement("span",{className:l(Xn)},o.createElement(Vt,{"aria-hidden":"true"}))),m&&"inline"===Q&&Ne),Se=()=>this.parentRef&&this.parentRef.current?this.parentRef.current.parentElement:null;return o.createElement(M,null,(e=>o.createElement(dr.Provider,{value:{onSelect:p,onFavorite:ee,onClose:this.onClose,variant:c,inputIdPrefix:X||e}},"inline"===Q?Te:o.createElement(vt,{trigger:Te,popper:ke,direction:d,appendTo:"parent"===Q?Se():Q,isVisible:m}))))}}Hr.displayName="Select",Hr.defaultProps={children:[],className:"",position:fr.left,direction:mr.down,toggleId:null,isOpen:!1,isGrouped:!1,isPlain:!1,isDisabled:!1,hasPlaceholderStyle:!1,isCreatable:!1,validated:"default","aria-label":"","aria-labelledby":"","aria-describedby":"","aria-invalid":!1,typeAheadAriaLabel:"",clearSelectionsAriaLabel:"Clear all",toggleAriaLabel:"Options menu",removeSelectionAriaLabel:"Remove",selections:[],createText:"Create",placeholderText:"",noResultsFoundText:"No results found",variant:ur.single,width:"",onClear:()=>{},onCreateOption:()=>{},toggleIcon:null,onFilter:null,onTypeaheadInputChanged:null,customContent:null,hasInlineFilter:!1,inlineFilterPlaceholderText:null,customBadgeText:null,inputIdPrefix:"",menuAppendTo:"inline",favorites:[],favoritesLabel:"Favorites",ouiaSafe:!0,chipGroupComponent:null,isInputValuePersisted:!1,isInputFilterPersisted:!1,isCreateSelectOptionObject:!1};const zr=()=>{};class $r extends o.Component{constructor(e){super(e),this.handleChange=e=>{this.props.onChange(e.currentTarget.checked,e)},this.state={ouiaStateId:K($r.displayName)}}render(){const e=this.props,{"aria-label":t,className:n,onChange:r,isValid:a,isDisabled:i,isChecked:c,label:d,checked:p,defaultChecked:u,description:f,body:m,ouiaId:h,ouiaSafe:b}=e,g=s(e,["aria-label","className","onChange","isValid","isDisabled","isChecked","label","checked","defaultChecked","description","body","ouiaId","ouiaSafe"]);g.id||console.error("Checkbox:","id is required to make input accessible");const v={};return([!0,!1].includes(p)||!0===c)&&(v.checked=p||c),r!==zr&&(v.checked=c),[!1,!0].includes(u)&&(v.defaultChecked=u),v.checked=null!==v.checked&&v.checked,o.createElement("div",{className:l(rr,!d&&lr.standalone,n)},o.createElement("input",Object.assign({},g,{className:l(ir),type:"checkbox",onChange:this.handleChange,"aria-invalid":!a,"aria-label":t,disabled:i,ref:e=>e&&(e.indeterminate=null===c)},v,z($r.displayName,void 0!==h?h:this.state.ouiaStateId,b))),d&&o.createElement("label",{className:l(sr,i&&lr.disabled),htmlFor:g.id},d),f&&o.createElement("span",{className:l(ar)},f),m&&o.createElement("span",{className:l(or)},m))}}$r.displayName="Checkbox",$r.defaultProps={className:"",isValid:!0,isDisabled:!1,isChecked:!1,onChange:zr,ouiaSafe:!0};var Wr=At({name:"AngleDownIcon",height:512,width:320,svgPath:"M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z",yOffset:0,xOffset:0});var Kr=At({name:"GripVerticalIcon",height:512,width:320,svgPath:"M96 32H32C14.33 32 0 46.33 0 64v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zm0 160H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm0 160H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zM288 32h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zm0 160h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm0 160h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32z",yOffset:0,xOffset:0}),Gr={noPadding:"pf-m-no-padding",widthAuto:"pf-m-width-auto",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",danger:"pf-m-danger",warning:"pf-m-warning",success:"pf-m-success",default:"pf-m-default",info:"pf-m-info",icon:"pf-m-icon"},Ur="pf-c-popover",qr="pf-c-popover__arrow",Xr="pf-c-popover__body",Yr="pf-c-popover__content",Jr="pf-c-popover__footer",Qr="pf-c-popover__title",Zr="pf-c-popover__title-icon",eo="pf-c-popover__title-text";const to=o.createContext({}),no=e=>{var{className:t=null,children:n}=e,r=s(e,["className","children"]);return o.createElement("div",Object.assign({className:l(Yr,t)},r),n)};no.displayName="PopoverContent";const ro=e=>{var{children:t,id:n,className:r}=e,a=s(e,["children","id","className"]);return o.createElement("div",Object.assign({className:l(Xr,r),id:n},a),t)};ro.displayName="PopoverBody";const oo=e=>{var{children:t,className:n}=e,r=s(e,["children","className"]);return o.createElement("span",Object.assign({className:l(Zr,n)},r),t)};oo.displayName="PopoverHeaderIcon";const ao=e=>{var{children:t,className:n}=e,r=s(e,["children","className"]);return o.createElement("span",Object.assign({className:l(eo,n)},r),t)};ao.displayName="PopoverHeaderText";const io=e=>{var{children:t,icon:n,className:r,titleHeadingLevel:a="h6",alertSeverityVariant:i,id:c,alertSeverityScreenReaderText:d}=e,p=s(e,["children","icon","className","titleHeadingLevel","alertSeverityVariant","id","alertSeverityScreenReaderText"]);const u=a;return n||i?o.createElement("header",Object.assign({className:l("pf-c-popover__header",r),id:c},p),o.createElement(u,{className:l(Qr,n&&Gr.icon)},n&&o.createElement(oo,null,n),i&&d&&o.createElement("span",{className:"pf-u-screen-reader"},d),o.createElement(ao,null,t))):o.createElement(Nt,Object.assign({headingLevel:a,size:xt.md,id:c,className:r},p),t)};io.displayName="PopoverHeader";const so=e=>{var{children:t,className:n=""}=e,r=s(e,["children","className"]);return o.createElement("footer",Object.assign({className:l(Jr,n)},r),t)};so.displayName="PopoverFooter";const lo=e=>{var{onClose:t=(()=>{})}=e,n=s(e,["onClose"]);const[r,a]=o.useState(null);return o.useEffect((()=>(r&&r.addEventListener("click",t,!1),()=>{r&&r.removeEventListener("click",t,!1)})),[r]),o.createElement(ne,{onFoundRef:e=>a(e)},o.createElement(jt,Object.assign({variant:"plain","aria-label":!0},n,{style:{pointerEvents:"auto"}}),o.createElement(Ft,null)))};lo.displayName="PopoverCloseButton";const co=e=>{var{className:t=""}=e,n=s(e,["className"]);return o.createElement("div",Object.assign({className:l(qr,t)},n))};co.displayName="PopoverArrow";var po={name:"--pf-c-popover--MaxWidth",value:"none",var:"var(--pf-c-popover--MaxWidth)"};var uo,fo={name:"--pf-c-popover--MinWidth",value:"auto",var:"var(--pf-c-popover--MinWidth)"};!function(e){e.auto="auto",e.top="top",e.bottom="bottom",e.left="left",e.right="right",e.topStart="top-start",e.topEnd="top-end",e.bottomStart="bottom-start",e.bottomEnd="bottom-end",e.leftStart="left-start",e.leftEnd="left-end",e.rightStart="right-start",e.rightEnd="right-end"}(uo||(uo={}));const mo={default:Gr.default,info:Gr.info,success:Gr.success,warning:Gr.warning,danger:Gr.danger},ho=e=>{var{children:t,position:n="top",enableFlip:r=!0,className:a="",isVisible:i=null,shouldClose:c=(()=>null),shouldOpen:p=(()=>null),"aria-label":u="",bodyContent:f,headerContent:m=null,headerComponent:h="h6",headerIcon:b=null,alertSeverityVariant:g,alertSeverityScreenReaderText:v,footerContent:y=null,appendTo:w=(()=>document.body),hideOnOutsideClick:x=!0,onHide:C=(()=>null),onHidden:O=(()=>null),onShow:E=(()=>null),onShown:N=(()=>null),onMount:k=(()=>null),zIndex:T=9999,minWidth:S=fo&&fo.value,maxWidth:_=po&&po.value,closeBtnAriaLabel:R="Close",showClose:I=!0,distance:D=25,flipBehavior:j=["top","right","bottom","left","top","right","bottom"],animationDuration:P=300,id:L,withFocusTrap:F,boundary:M,tippyProps:B,reference:V,hasNoPadding:H=!1,hasAutoWidth:z=!1}=e,$=s(e,["children","position","enableFlip","className","isVisible","shouldClose","shouldOpen","aria-label","bodyContent","headerContent","headerComponent","headerIcon","alertSeverityVariant","alertSeverityScreenReaderText","footerContent","appendTo","hideOnOutsideClick","onHide","onHidden","onShow","onShown","onMount","zIndex","minWidth","maxWidth","closeBtnAriaLabel","showClose","distance","flipBehavior","animationDuration","id","withFocusTrap","boundary","tippyProps","reference","hasNoPadding","hasAutoWidth"]);const W=L||G(),K=null!==i,[U,q]=o.useState(!1),[X,Y]=o.useState(0),[J,Q]=o.useState(Boolean(F)),Z=o.useRef(null),ee=o.useRef(null),te=o.useRef(null);o.useEffect((()=>{k()}),[]),o.useEffect((()=>{K&&(i?ne():re())}),[i,K]);const ne=e=>{E(),Z.current&&clearTimeout(Z.current),te.current&&clearTimeout(te.current),ee.current=setTimeout((()=>{q(!0),Y(1),!1!==F&&e&&Q(!0),N()}),0)},re=()=>{C(),ee.current&&clearTimeout(ee.current),te.current=setTimeout((()=>{q(!1),Y(0),Q(!1),Z.current=setTimeout((()=>{O()}),P)}),0)},oe={top:Gr.top,bottom:Gr.bottom,left:Gr.left,right:Gr.right,"top-start":Gr.topLeft,"top-end":Gr.topRight,"bottom-start":Gr.bottomLeft,"bottom-end":Gr.bottomRight,"left-start":Gr.leftTop,"left-end":Gr.leftBottom,"right-start":Gr.rightTop,"right-end":Gr.rightBottom},ae=S!==fo.value,ie=_!==po.value,se=o.createElement(A,Object.assign({active:J,focusTrapOptions:{returnFocusOnDeactivate:!0,clickOutsideDeactivates:!0,fallbackFocus:()=>{let e=null;return document&&document.activeElement&&(e=document.activeElement),e}},preventScrollOnDeactivate:!0,className:l(Ur,g&&mo[g],H&&Gr.noPadding,z&&Gr.widthAuto,a),role:"dialog","aria-modal":"true","aria-label":m?void 0:u,"aria-labelledby":m?`popover-${W}-header`:void 0,"aria-describedby":`popover-${W}-body`,onMouseDown:()=>{J&&Q(!1)},style:{minWidth:ae?S:null,maxWidth:ie?_:null,opacity:X,transition:gt(P)}},$),o.createElement(co,null),o.createElement(no,null,I&&o.createElement(lo,{onClose:e=>{e.stopPropagation(),K?c(null,re,e):re()},"aria-label":R}),m&&o.createElement(io,{id:`popover-${W}-header`,icon:b,alertSeverityVariant:g,alertSeverityScreenReaderText:v||`${g} alert:`,titleHeadingLevel:h},"function"==typeof m?m(re):m),o.createElement(ro,{id:`popover-${W}-body`},"function"==typeof f?f(re):f),y&&o.createElement(so,{id:`popover-${W}-footer`},"function"==typeof y?y(re):y)));return o.createElement(to.Provider,{value:{headerComponent:h}},o.createElement(vt,{trigger:t,reference:V,popper:se,popperMatchesTriggerWidth:!1,appendTo:w,isVisible:U,positionModifiers:oe,distance:D,placement:n,onTriggerClick:e=>{K?U?c(null,re,e):p(ne,e):U?re():ne(!0)},onDocumentClick:(e,t,n)=>{if(x&&U){if(n&&n.contains(e.target))return;K?c(null,re,e):re()}},onDocumentKeyDown:e=>{e.keyCode===d&&U&&(K?c(null,re,e):re())},enableFlip:r,zIndex:T,flipBehavior:j}))};ho.displayName="Popover";var bo,go="pf-c-empty-state",vo="pf-c-empty-state__content",yo={xs:"pf-m-xs",sm:"pf-m-sm",lg:"pf-m-lg",xl:"pf-m-xl",fullHeight:"pf-m-full-height",primary:"pf-m-primary",overpassFont:"pf-m-overpass-font"};!function(e){e.xs="xs",e.small="small",e.large="large",e.xl="xl",e.full="full"}(bo||(bo={}));const wo=e=>{var{children:t,className:n="",variant:r=bo.full,isFullHeight:a}=e,i=s(e,["children","className","variant","isFullHeight"]);return o.createElement("div",Object.assign({className:l(go,"xs"===r&&yo.xs,"small"===r&&yo.sm,"large"===r&&yo.lg,"xl"===r&&yo.xl,a&&yo.fullHeight,n)},i),o.createElement("div",{className:l(vo)},t))};wo.displayName="EmptyState";var xo="pf-c-inline-edit",Co="pf-c-inline-edit__action",Oo="pf-c-inline-edit__group",Eo="pf-c-inline-edit__input",No="pf-c-inline-edit__value",ko={iconGroup:"pf-m-icon-group",footer:"pf-m-footer",column:"pf-m-column",valid:"pf-m-valid",plain:"pf-m-plain",actionGroup:"pf-m-action-group",enableEditable:"pf-m-enable-editable",inlineEditable:"pf-m-inline-editable",enable:"pf-m-enable",bold:"pf-m-bold"};const To=e=>{var{children:t=null,className:n="",component:r="div"}=e,a=s(e,["children","className","component"]);const i=r;return o.createElement(i,Object.assign({className:l(Ot,n)},a),t)};To.displayName="Bullseye";var So={button:"pf-c-button",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",fixed:"pf-m-fixed",stickyHeader:"pf-m-sticky-header",ghostRow:"pf-m-ghost-row",center:"pf-m-center",help:"pf-m-help",favorite:"pf-m-favorite",borderRight:"pf-m-border-right",borderLeft:"pf-m-border-left",nestedColumnHeader:"pf-m-nested-column-header",truncate:"pf-m-truncate",wrap:"pf-m-wrap",nowrap:"pf-m-nowrap",fitContent:"pf-m-fit-content",breakWord:"pf-m-break-word",noBorderRows:"pf-m-no-border-rows",expanded:"pf-m-expanded",hoverable:"pf-m-hoverable",selected:"pf-m-selected",firstCellOffsetReset:"pf-m-first-cell-offset-reset",dragOver:"pf-m-drag-over",favorited:"pf-m-favorited",noPadding:"pf-m-no-padding",compact:"pf-m-compact",width_10:"pf-m-width-10",width_15:"pf-m-width-15",width_20:"pf-m-width-20",width_25:"pf-m-width-25",width_30:"pf-m-width-30",width_35:"pf-m-width-35",width_40:"pf-m-width-40",width_45:"pf-m-width-45",width_50:"pf-m-width-50",width_60:"pf-m-width-60",width_70:"pf-m-width-70",width_80:"pf-m-width-80",width_90:"pf-m-width-90",width_100:"pf-m-width-100"},table:"pf-c-table",tableAction:"pf-c-table__action",tableButton:"pf-c-table__button",tableButtonContent:"pf-c-table__button-content",tableCheck:"pf-c-table__check",tableColumnHelp:"pf-c-table__column-help",tableColumnHelpAction:"pf-c-table__column-help-action",tableCompoundExpansionToggle:"pf-c-table__compound-expansion-toggle",tableControlRow:"pf-c-table__control-row",tableDraggable:"pf-c-table__draggable",tableExpandableRow:"pf-c-table__expandable-row",tableExpandableRowContent:"pf-c-table__expandable-row-content",tableFavorite:"pf-c-table__favorite",tableIcon:"pf-c-table__icon",tableIconInline:"pf-c-table__icon-inline",tableInlineEditAction:"pf-c-table__inline-edit-action",tableSort:"pf-c-table__sort",tableSortIndicator:"pf-c-table__sort-indicator",tableSubhead:"pf-c-table__subhead",tableText:"pf-c-table__text",tableToggle:"pf-c-table__toggle",tableToggleIcon:"pf-c-table__toggle-icon"},_o={grid:"pf-m-grid",compact:"pf-m-compact",expanded:"pf-m-expanded",selected:"pf-m-selected",noPadding:"pf-m-no-padding",hoverable:"pf-m-hoverable",nowrap:"pf-m-nowrap",fitContent:"pf-m-fit-content",truncate:"pf-m-truncate",gridMd:"pf-m-grid-md",gridLg:"pf-m-grid-lg",gridXl:"pf-m-grid-xl",grid_2xl:"pf-m-grid-2xl"},Ro={treeView:"pf-m-tree-view",treeViewGrid:"pf-m-tree-view-grid",treeViewDetailsExpanded:"pf-m-tree-view-details-expanded",treeViewGridMd:"pf-m-tree-view-grid-md",treeViewGridLg:"pf-m-tree-view-grid-lg",treeViewGridXl:"pf-m-tree-view-grid-xl",treeViewGrid_2xl:"pf-m-tree-view-grid-2xl"},Io="pf-c-table__check",Do="pf-c-table__toggle",jo="pf-c-table__toggle-icon",Po="pf-c-table__tree-view-details-toggle",Lo="pf-c-table__tree-view-icon",Ao="pf-c-table__tree-view-main",Fo="pf-c-table__tree-view-text";const Mo=(e,t)=>{if(void 0!==e.parent)return e.hasOwnProperty("compoundParent")?((e,t,n)=>{for(const r of n){if(!n[e].hasOwnProperty("parent"))return n[e].cells[t].props.isOpen;e=n[e].parent}return!1})(e.parent,e.compoundParent,t):((e,t)=>{for(const n of t){if(!t[e].hasOwnProperty("parent"))return t[e].isOpen;e=t[e].parent}return!1})(e.parent,t)&&t[e.parent].isOpen},Bo=(e,t)=>t.filter((t=>t.name===e))[0].errorText,Vo=e=>e.toUpperCase().replace("-","").replace("_",""),Ho=e=>e.replace(/([-_][a-z])/gi,Vo);function zo(e){return e[0].toUpperCase()+e.substring(1)}var $o;e.TableGridBreakpoint=void 0,($o=e.TableGridBreakpoint||(e.TableGridBreakpoint={})).none="",$o.grid="grid",$o.gridMd="grid-md",$o.gridLg="grid-lg",$o.gridXl="grid-xl",$o.grid2xl="grid-2xl",e.TableVariant=void 0,(e.TableVariant||(e.TableVariant={})).compact="compact";const Wo=t=>{var n,r,{children:a,className:s,variant:c,borders:d=!0,isStickyHeader:p=!1,gridBreakPoint:u=e.TableGridBreakpoint.gridMd,"aria-label":f,role:m="grid",innerRef:h,ouiaId:b,ouiaSafe:g=!0,isTreeTable:v=!1,isNested:y=!1,nestedHeaderColumnSpans:w}=t,x=i(t,["children","className","variant","borders","isStickyHeader","gridBreakPoint","aria-label","role","innerRef","ouiaId","ouiaSafe","isTreeTable","isNested","nestedHeaderColumnSpans"]);const C=h||o.useRef(null);o.useEffect((()=>{if(document.addEventListener("keydown",T),C&&C.current&&C.current.classList.contains("pf-m-tree-view")){const t=C.current.querySelector("tbody");t&&((e=Array.from(t.querySelectorAll("button, a, input")))&&e.length>0&&(e.forEach((e=>{e.tabIndex=-1})),e[0].tabIndex=0))}var e;return function(){document.removeEventListener("keydown",T)}}),[C,C.current]);const O=$("Table",b,g),E=null===(n=_o)||void 0===n?void 0:n[Ho(u||"").replace(/-?2xl/,"_2xl")],N=`treeView${u.charAt(0).toUpperCase()+u.slice(1)}`,k=null===(r=Ro)||void 0===r?void 0:r[Ho(N||"").replace(/-?2xl/,"_2xl")],T=e=>{if(y||!(C&&C.current&&C.current.classList.contains("pf-m-tree-view"))||C&&C.current!==e.target.closest(".pf-c-table:not(.pf-m-nested)"))return;const t=document.activeElement,n=e.key,r=Array.from(C.current.querySelectorAll("tbody tr")).filter((e=>!e.classList.contains("pf-m-disabled")&&!e.hidden));"Space"!==n&&"Enter"!==n||(t.click(),e.preventDefault());yt(e,r,(e=>e===t.closest("tr")),(e=>e.querySelectorAll("button:not(:disabled), input:not(:disabled), a:not(:disabled)")[0]),["button","input","a"],void 0,!1,!0,!1)};return o.createElement("table",Object.assign({"aria-label":f,role:m,className:l(s,So.table,v?k:E,So.modifiers[c],!d&&So.modifiers.noBorderRows,p&&So.modifiers.stickyHeader,v&&Ro.treeView,y&&"pf-m-nested"),ref:C},v&&{role:"treegrid"},O,x),w&&w.map(((e,t)=>1===e?o.createElement("col",{key:t}):o.createElement("colgroup",{key:t,span:e}))),a)},Ko=o.forwardRef(((e,t)=>o.createElement(Wo,Object.assign({},e,{innerRef:t}))));Ko.displayName="TableComposable";const Go=e=>{var{children:t,className:n,noWrap:r=!1,innerRef:a,hasNestedHeader:s}=e,c=i(e,["children","className","noWrap","innerRef","hasNestedHeader"]);return o.createElement("thead",Object.assign({className:l(n,r&&So.modifiers.nowrap,s&&So.modifiers.nestedColumnHeader),ref:a},c),t)},Uo=o.forwardRef(((e,t)=>o.createElement(Go,Object.assign({},e,{innerRef:t}))));Uo.displayName="Thead";const qo=e=>{var{children:t,className:n,isExpanded:r,innerRef:a}=e,s=i(e,["children","className","isExpanded","innerRef"]);return o.createElement("tbody",Object.assign({role:"rowgroup",className:l(n,r&&So.modifiers.expanded),ref:a},s),t)},Xo=o.forwardRef(((e,t)=>o.createElement(qo,Object.assign({},e,{innerRef:t}))));Xo.displayName="Tbody";const Yo=e=>{var{children:t,className:n,isExpanded:r,isEditable:a,isHidden:s=!1,isHoverable:c=!1,isRowSelected:d=!1,innerRef:p,ouiaId:u,ouiaSafe:f=!0,resetOffset:m=!1,onRowClick:h}=e,b=i(e,["children","className","isExpanded","isEditable","isHidden","isHoverable","isRowSelected","innerRef","ouiaId","ouiaSafe","resetOffset","onRowClick"]);const g=$("TableRow",u,f);let v=null;return h&&(v=e=>{"Enter"!==e.key&&" "!==e.key||(h(e),e.preventDefault())}),o.createElement("tr",Object.assign({className:l(n,void 0!==r&&So.tableExpandableRow,r&&So.modifiers.expanded,a&&ko.inlineEditable,c&&So.modifiers.hoverable,d&&So.modifiers.selected,m&&So.modifiers.firstCellOffsetReset),hidden:s||void 0!==r&&!r},c&&{tabIndex:0},{ref:p},h&&{onClick:h,onKeyDown:v},g,b),t)},Jo=o.forwardRef(((e,t)=>o.createElement(Yo,Object.assign({},e,{innerRef:t}))));Jo.displayName="Tr";var Qo={borderRight:"pf-m-border-right",borderLeft:"pf-m-border-left",stickyHeader:"pf-m-sticky-header"},Zo="pf-c-scroll-inner-wrapper",ea="pf-c-scroll-outer-wrapper",ta="pf-c-table__sticky-column";var na,ra,oa=At({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});e.TableTextVariant=void 0,(na=e.TableTextVariant||(e.TableTextVariant={})).div="div",na.nav="nav",e.WrapModifier=void 0,(ra=e.WrapModifier||(e.WrapModifier={})).wrap="wrap",ra.nowrap="nowrap",ra.truncate="truncate",ra.breakWord="breakWord",ra.fitContent="fitContent";const aa=e=>{var{children:t=null,className:n="",variant:r="span",wrapModifier:a=null,tooltip:s="",tooltipProps:c={},onMouseEnter:d=(()=>{})}=e,p=i(e,["children","className","variant","wrapModifier","tooltip","tooltipProps","onMouseEnter"]);const u=r,[f,m]=o.useState(""),h=o.createElement(u,Object.assign({onMouseEnter:e=>{e.target.offsetWidth<e.target.scrollWidth?m(s||e.target.innerText):m(""),d(e)},className:l(n,a&&So.modifiers[a],So.tableText)},p),t);return""!==f?o.createElement(Yt,Object.assign({content:f,isVisible:!0},c),h):h};aa.displayName="TableText";const ia=({children:e,info:t,className:n,variant:r="tooltip",popoverProps:a,tooltipProps:i,ariaLabel:s})=>o.createElement("div",{className:l(So.tableColumnHelp,n)},"string"==typeof e?o.createElement(aa,null,e):e,o.createElement("span",{className:l(So.tableColumnHelpAction)},"tooltip"===r?o.createElement(Yt,Object.assign({content:t},i),o.createElement(jt,{variant:"plain","aria-label":s||"string"==typeof t&&t||"More info"},o.createElement(oa,{noVerticalAlign:!0}))):o.createElement(ho,Object.assign({bodyContent:t},a),o.createElement(jt,{variant:"plain","aria-label":s||"string"==typeof t&&t||"More info"},o.createElement(oa,{noVerticalAlign:!0})))));ia.displayName="HeaderCellInfoWrapper";const sa=({tooltip:e,tooltipProps:t,popover:n,popoverProps:r,className:a,ariaLabel:i})=>s=>({className:So.modifiers.help,children:e?o.createElement(ia,{variant:"tooltip",info:e,tooltipProps:t,ariaLabel:i,className:a},s):o.createElement(ia,{variant:"popover",info:n,popoverProps:r,ariaLabel:i,className:a},s)});var la=At({name:"LongArrowAltUpIcon",height:512,width:256,svgPath:"M88 166.059V468c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12V166.059h46.059c21.382 0 32.09-25.851 16.971-40.971l-86.059-86.059c-9.373-9.373-24.569-9.373-33.941 0l-86.059 86.059c-15.119 15.119-4.411 40.971 16.971 40.971H88z",yOffset:0,xOffset:0});var ca=At({name:"LongArrowAltDownIcon",height:512,width:256,svgPath:"M168 345.941V44c0-6.627-5.373-12-12-12h-56c-6.627 0-12 5.373-12 12v301.941H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.569 9.373 33.941 0l86.059-86.059c15.119-15.119 4.411-40.971-16.971-40.971H168z",yOffset:0,xOffset:0});var da,pa=At({name:"ArrowsAltVIcon",height:512,width:256,svgPath:"M214.059 377.941H168V134.059h46.059c21.382 0 32.09-25.851 16.971-40.971L144.971 7.029c-9.373-9.373-24.568-9.373-33.941 0L24.971 93.088c-15.119 15.119-4.411 40.971 16.971 40.971H88v243.882H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.568 9.373 33.941 0l86.059-86.059c15.12-15.119 4.412-40.971-16.97-40.971z",yOffset:0,xOffset:0});e.SortByDirection=void 0,(da=e.SortByDirection||(e.SortByDirection={})).asc="asc",da.desc="desc";const ua=t=>{var{children:n=null,className:r="",isSortedBy:a=!1,onSort:s=null,sortDirection:c="",type:d="button"}=t,p=i(t,["children","className","isSortedBy","onSort","sortDirection","type"]);let u;return u=a?c===e.SortByDirection.asc?la:ca:pa,o.createElement("button",Object.assign({},p,{type:d,className:l(r,So.tableButton),onClick:e=>s&&s(e)}),o.createElement("div",{className:l(r,So.tableButtonContent)},o.createElement(aa,null,n),o.createElement("span",{className:l(So.tableSortIndicator)},o.createElement(u,null))))};ua.displayName="SortColumn";const fa=e=>()=>ma(o.createElement(xn,{"aria-hidden":!0}),{columnIndex:e.columnIndex,className:So.modifiers.favorite,ariaLabel:"Sort favorites",column:{extraParams:{sortBy:e.sortBy,onSort:null==e?void 0:e.onSort}}}),ma=(t,{columnIndex:n,column:r,property:a,className:i,ariaLabel:s})=>{const{extraParams:{sortBy:c,onSort:d}}=r,p={columnIndex:n,column:r,property:a},u=c&&n===c.index;return{className:l(So.tableSort,u&&So.modifiers.selected,i),"aria-sort":u?`${c.direction}ending`:"none",children:o.createElement(ua,{isSortedBy:u,sortDirection:u?c.direction:"",onSort:function(t){let r;r=u?c.direction===e.SortByDirection.asc?e.SortByDirection.desc:e.SortByDirection.asc:c.defaultDirection?c.defaultDirection:e.SortByDirection.asc,d&&d(t,n,r,p)},"aria-label":s},t)}};var ha;e.RowSelectVariant=void 0,(ha=e.RowSelectVariant||(e.RowSelectVariant={})).radio="radio",ha.checkbox="checkbox";const ba=e=>{var{children:t=null,className:n,onSelect:r=null,selectVariant:a}=e,s=i(e,["children","className","onSelect","selectVariant"]);return o.createElement(o.Fragment,null,o.createElement("label",null,o.createElement("input",Object.assign({},s,{type:a,onChange:r}))),t)};ba.displayName="SelectColumn";const ga=(t,{rowIndex:n,columnIndex:r,rowData:a,column:i,property:s})=>{const{extraParams:{onSelect:c,selectVariant:d,allRowsSelected:p,isHeaderSelectDisabled:u}}=i,f={rowIndex:n,columnIndex:r,column:i,property:s};if(a&&a.hasOwnProperty("parent")&&!a.showSelect&&!a.fullWidth)return{component:"td",isVisible:!0};const m=void 0!==n?n:-1;const h=Object.assign(Object.assign(Object.assign({},-1!==m?{checked:a&&!!a.selected,"aria-label":`Select row ${n}`}:{checked:p,"aria-label":"Select all rows"}),a&&(a.disableCheckbox||a.disableSelection)&&{disabled:!0,className:ir}),!a&&u&&{disabled:!0});let b="check-all";return-1!==m&&d===e.RowSelectVariant.checkbox?b=`checkrow${n}`:-1!==m&&(b="radioGroup"),{className:l(So.tableCheck),component:"td",isVisible:!a||!a.fullWidth,children:o.createElement(ba,Object.assign({},h,{selectVariant:d,onSelect:function(e){const t=void 0===n?e.currentTarget.checked:a&&!a.selected;c&&c(e,t,m,a,f)},name:b}),t)}},va=e=>()=>({className:l(So.modifiers["number"==typeof e?`width_${e}`:`width${zo(e)}`])}),ya=["hidden","hiddenOnSm","hiddenOnMd","hiddenOnLg","hiddenOnXl","hiddenOn_2xl","visibleOnSm","visibleOnMd","visibleOnLg","visibleOnXl","visibleOn_2xl"].filter((e=>So.modifiers[e])).reduce(((e,t)=>(e[t.replace("_2xl","2Xl")]=So.modifiers[t],e)),{}),wa=(...e)=>()=>({className:l(...e)});var xa=function(){this.__data__=[],this.size=0};var Ca=function(e,t){return e===t||e!=e&&t!=t},Oa=Ca;var Ea=function(e,t){for(var n=e.length;n--;)if(Oa(e[n][0],t))return n;return-1},Na=Ea,ka=Array.prototype.splice;var Ta=Ea;var Sa=Ea;var _a=Ea;var Ra=xa,Ia=function(e){var t=this.__data__,n=Na(t,e);return!(n<0)&&(n==t.length-1?t.pop():ka.call(t,n,1),--this.size,!0)},Da=function(e){var t=this.__data__,n=Ta(t,e);return n<0?void 0:t[n][1]},ja=function(e){return Sa(this.__data__,e)>-1},Pa=function(e,t){var n=this.__data__,r=_a(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function La(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}La.prototype.clear=Ra,La.prototype.delete=Ia,La.prototype.get=Da,La.prototype.has=ja,La.prototype.set=Pa;var Aa=La,Fa=Aa;var Ma=function(){this.__data__=new Fa,this.size=0};var Ba=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var Va=function(e){return this.__data__.get(e)};var Ha=function(e){return this.__data__.has(e)},za="object"==typeof c&&c&&c.Object===Object&&c,$a=za,Wa="object"==typeof self&&self&&self.Object===Object&&self,Ka=$a||Wa||Function("return this")(),Ga=Ka.Symbol,Ua=Ga,qa=Object.prototype,Xa=qa.hasOwnProperty,Ya=qa.toString,Ja=Ua?Ua.toStringTag:void 0;var Qa=function(e){var t=Xa.call(e,Ja),n=e[Ja];try{e[Ja]=void 0;var r=!0}catch(e){}var o=Ya.call(e);return r&&(t?e[Ja]=n:delete e[Ja]),o},Za=Object.prototype.toString;var ei=Qa,ti=function(e){return Za.call(e)},ni=Ga?Ga.toStringTag:void 0;var ri=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ni&&ni in Object(e)?ei(e):ti(e)};var oi=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},ai=ri,ii=oi;var si=function(e){if(!ii(e))return!1;var t=ai(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},li=Ka["__core-js_shared__"],ci=function(){var e=/[^.]+$/.exec(li&&li.keys&&li.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var di=function(e){return!!ci&&ci in e},pi=Function.prototype.toString;var ui=function(e){if(null!=e){try{return pi.call(e)}catch(e){}try{return e+""}catch(e){}}return""},fi=si,mi=di,hi=oi,bi=ui,gi=/^\[object .+?Constructor\]$/,vi=Function.prototype,yi=Object.prototype,wi=vi.toString,xi=yi.hasOwnProperty,Ci=RegExp("^"+wi.call(xi).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Oi=function(e){return!(!hi(e)||mi(e))&&(fi(e)?Ci:gi).test(bi(e))},Ei=function(e,t){return null==e?void 0:e[t]};var Ni=function(e,t){var n=Ei(e,t);return Oi(n)?n:void 0},ki=Ni(Ka,"Map"),Ti=Ni(Object,"create"),Si=Ti;var _i=function(){this.__data__=Si?Si(null):{},this.size=0};var Ri=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ii=Ti,Di=Object.prototype.hasOwnProperty;var ji=function(e){var t=this.__data__;if(Ii){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Di.call(t,e)?t[e]:void 0},Pi=Ti,Li=Object.prototype.hasOwnProperty;var Ai=Ti;var Fi=_i,Mi=Ri,Bi=ji,Vi=function(e){var t=this.__data__;return Pi?void 0!==t[e]:Li.call(t,e)},Hi=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ai&&void 0===t?"__lodash_hash_undefined__":t,this};function zi(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}zi.prototype.clear=Fi,zi.prototype.delete=Mi,zi.prototype.get=Bi,zi.prototype.has=Vi,zi.prototype.set=Hi;var $i=zi,Wi=Aa,Ki=ki;var Gi=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Ui=function(e,t){var n=e.__data__;return Gi(t)?n["string"==typeof t?"string":"hash"]:n.map},qi=Ui;var Xi=Ui;var Yi=Ui;var Ji=Ui;var Qi=function(){this.size=0,this.__data__={hash:new $i,map:new(Ki||Wi),string:new $i}},Zi=function(e){var t=qi(this,e).delete(e);return this.size-=t?1:0,t},es=function(e){return Xi(this,e).get(e)},ts=function(e){return Yi(this,e).has(e)},ns=function(e,t){var n=Ji(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function rs(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}rs.prototype.clear=Qi,rs.prototype.delete=Zi,rs.prototype.get=es,rs.prototype.has=ts,rs.prototype.set=ns;var os=rs,as=Aa,is=ki,ss=os;var ls=Aa,cs=Ma,ds=Ba,ps=Va,us=Ha,fs=function(e,t){var n=this.__data__;if(n instanceof as){var r=n.__data__;if(!is||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ss(r)}return n.set(e,t),this.size=n.size,this};function ms(e){var t=this.__data__=new ls(e);this.size=t.size}ms.prototype.clear=cs,ms.prototype.delete=ds,ms.prototype.get=ps,ms.prototype.has=us,ms.prototype.set=fs;var hs=ms,bs=Ni,gs=function(){try{var e=bs(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),vs=gs;var ys=function(e,t,n){"__proto__"==t&&vs?vs(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},ws=ys,xs=Ca;var Cs=function(e,t,n){(void 0!==n&&!xs(e[t],n)||void 0===n&&!(t in e))&&ws(e,t,n)};var Os=function(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),s=i.length;s--;){var l=i[e?s:++o];if(!1===n(a[l],l,a))break}return t}}(),Es={exports:{}};!function(e,t){var n=Ka,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,a=o&&o.exports===r?n.Buffer:void 0,i=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=i?i(n):new e.constructor(n);return e.copy(r),r}}(Es,Es.exports);var Ns=Ka.Uint8Array,ks=Ns;var Ts=function(e){var t=new e.constructor(e.byteLength);return new ks(t).set(new ks(e)),t};var Ss=function(e,t){var n=t?Ts(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var _s=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},Rs=oi,Is=Object.create,Ds=function(){function e(){}return function(t){if(!Rs(t))return{};if(Is)return Is(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var js=function(e,t){return function(n){return e(t(n))}},Ps=js(Object.getPrototypeOf,Object),Ls=Object.prototype;var As=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ls)},Fs=Ds,Ms=Ps,Bs=As;var Vs=function(e){return"function"!=typeof e.constructor||Bs(e)?{}:Fs(Ms(e))};var Hs=function(e){return null!=e&&"object"==typeof e},zs=ri,$s=Hs;var Ws=function(e){return $s(e)&&"[object Arguments]"==zs(e)},Ks=Hs,Gs=Object.prototype,Us=Gs.hasOwnProperty,qs=Gs.propertyIsEnumerable,Xs=Ws(function(){return arguments}())?Ws:function(e){return Ks(e)&&Us.call(e,"callee")&&!qs.call(e,"callee")},Ys=Xs,Js=Array.isArray;var Qs=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Zs=si,el=Qs;var tl=function(e){return null!=e&&el(e.length)&&!Zs(e)},nl=tl,rl=Hs;var ol=function(e){return rl(e)&&nl(e)},al={exports:{}};var il=function(){return!1};!function(e,t){var n=Ka,r=il,o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o?n.Buffer:void 0,s=(i?i.isBuffer:void 0)||r;e.exports=s}(al,al.exports);var sl=ri,ll=Ps,cl=Hs,dl=Function.prototype,pl=Object.prototype,ul=dl.toString,fl=pl.hasOwnProperty,ml=ul.call(Object);var hl=function(e){if(!cl(e)||"[object Object]"!=sl(e))return!1;var t=ll(e);if(null===t)return!0;var n=fl.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ul.call(n)==ml},bl=ri,gl=Qs,vl=Hs,yl={};yl["[object Float32Array]"]=yl["[object Float64Array]"]=yl["[object Int8Array]"]=yl["[object Int16Array]"]=yl["[object Int32Array]"]=yl["[object Uint8Array]"]=yl["[object Uint8ClampedArray]"]=yl["[object Uint16Array]"]=yl["[object Uint32Array]"]=!0,yl["[object Arguments]"]=yl["[object Array]"]=yl["[object ArrayBuffer]"]=yl["[object Boolean]"]=yl["[object DataView]"]=yl["[object Date]"]=yl["[object Error]"]=yl["[object Function]"]=yl["[object Map]"]=yl["[object Number]"]=yl["[object Object]"]=yl["[object RegExp]"]=yl["[object Set]"]=yl["[object String]"]=yl["[object WeakMap]"]=!1;var wl=function(e){return vl(e)&&gl(e.length)&&!!yl[bl(e)]};var xl=function(e){return function(t){return e(t)}},Cl={exports:{}};!function(e,t){var n=za,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,a=o&&o.exports===r&&n.process,i=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=i}(Cl,Cl.exports);var Ol=wl,El=xl,Nl=Cl.exports,kl=Nl&&Nl.isTypedArray,Tl=kl?El(kl):Ol;var Sl=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},_l=ys,Rl=Ca,Il=Object.prototype.hasOwnProperty;var Dl=function(e,t,n){var r=e[t];Il.call(e,t)&&Rl(r,n)&&(void 0!==n||t in e)||_l(e,t,n)},jl=ys;var Pl=function(e,t,n,r){var o=!n;n||(n={});for(var a=-1,i=t.length;++a<i;){var s=t[a],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),o?jl(n,s,l):Dl(n,s,l)}return n};var Ll=/^(?:0|[1-9]\d*)$/;var Al=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Ll.test(e))&&e>-1&&e%1==0&&e<t},Fl=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},Ml=Ys,Bl=Js,Vl=al.exports,Hl=Al,zl=Tl,$l=Object.prototype.hasOwnProperty;var Wl=function(e,t){var n=Bl(e),r=!n&&Ml(e),o=!n&&!r&&Vl(e),a=!n&&!r&&!o&&zl(e),i=n||r||o||a,s=i?Fl(e.length,String):[],l=s.length;for(var c in e)!t&&!$l.call(e,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Hl(c,l))||s.push(c);return s};var Kl=oi,Gl=As,Ul=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},ql=Object.prototype.hasOwnProperty;var Xl=Wl,Yl=function(e){if(!Kl(e))return Ul(e);var t=Gl(e),n=[];for(var r in e)("constructor"!=r||!t&&ql.call(e,r))&&n.push(r);return n},Jl=tl;var Ql=function(e){return Jl(e)?Xl(e,!0):Yl(e)},Zl=Pl,ec=Ql;var tc=Cs,nc=Es.exports,rc=Ss,oc=_s,ac=Vs,ic=Ys,sc=Js,lc=ol,cc=al.exports,dc=si,pc=oi,uc=hl,fc=Tl,mc=Sl,hc=function(e){return Zl(e,ec(e))};var bc=hs,gc=Cs,vc=Os,yc=function(e,t,n,r,o,a,i){var s=mc(e,n),l=mc(t,n),c=i.get(l);if(c)tc(e,n,c);else{var d=a?a(s,l,n+"",e,t,i):void 0,p=void 0===d;if(p){var u=sc(l),f=!u&&cc(l),m=!u&&!f&&fc(l);d=l,u||f||m?sc(s)?d=s:lc(s)?d=oc(s):f?(p=!1,d=nc(l,!0)):m?(p=!1,d=rc(l,!0)):d=[]:uc(l)||ic(l)?(d=s,ic(s)?d=hc(s):pc(s)&&!dc(s)||(d=ac(l))):p=!1}p&&(i.set(l,d),o(d,l,r,a,i),i.delete(l)),tc(e,n,d)}},wc=oi,xc=Ql,Cc=Sl;var Oc=function e(t,n,r,o,a){t!==n&&vc(n,(function(i,s){if(a||(a=new bc),wc(i))yc(t,n,s,r,e,o,a);else{var l=o?o(Cc(t,s),i,s+"",t,n,a):void 0;void 0===l&&(l=i),gc(t,s,l)}}),xc)};var Ec=function(e){return e};var Nc=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},kc=Math.max;var Tc=function(e,t,n){return t=kc(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,a=kc(r.length-t,0),i=Array(a);++o<a;)i[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(i),Nc(e,this,s)}};var Sc=function(e){return function(){return e}},_c=gs,Rc=_c?function(e,t){return _c(e,"toString",{configurable:!0,enumerable:!1,value:Sc(t),writable:!0})}:Ec,Ic=Date.now;var Dc=function(e){var t=0,n=0;return function(){var r=Ic(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},jc=Dc(Rc),Pc=Ec,Lc=Tc,Ac=jc;var Fc=function(e,t){return Ac(Lc(e,t,Pc),e+"")},Mc=Ca,Bc=tl,Vc=Al,Hc=oi;var zc=Fc,$c=function(e,t,n){if(!Hc(n))return!1;var r=typeof t;return!!("number"==r?Bc(n)&&Vc(t,n.length):"string"==r&&t in n)&&Mc(n[t],e)};var Wc=Oc,Kc=function(e){return zc((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,i&&$c(n[0],n[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,a)}return t}))}((function(e,t,n,r){Wc(e,t,n,r)}));function Gc(...e){const t=e[0],n=e.slice(1);return n.length?Kc(Kc({},t),...n,((e,t,n)=>"children"===n?e&&t?o.cloneElement(e,{children:t}):Object.assign(Object.assign({},t),e):"className"===n?l(e,t):void 0)):Kc({},t)}const Uc=e=>{var{children:t,className:n,component:r="th",dataLabel:a,scope:s="col",textCenter:c=!1,sort:d=null,modifier:p,select:u=null,tooltip:f="",onMouseEnter:m=(()=>{}),width:h,visibility:b,innerRef:g,info:v,isStickyColumn:y=!1,hasRightBorder:w=!1,stickyMinWidth:x="120px",stickyLeftOffset:C,isSubheader:O=!1}=e,E=i(e,["children","className","component","dataLabel","scope","textCenter","sort","modifier","select","tooltip","onMouseEnter","width","visibility","innerRef","info","isStickyColumn","hasRightBorder","stickyMinWidth","stickyLeftOffset","isSubheader"]);const[N,k]=o.useState(!1);let T=null;d&&(T=d.isFavorites?fa({onSort:null==d?void 0:d.onSort,columnIndex:d.columnIndex,sortBy:d.sortBy})():ma(t,{columnIndex:d.columnIndex,column:{extraParams:{sortBy:d.sortBy,onSort:null==d?void 0:d.onSort}}}));const S=u?ga(t,{column:{extraParams:{onSelect:null==u?void 0:u.onSelect,selectVariant:"checkbox",allRowsSelected:u.isSelected,isHeaderSelectDisabled:!!u.isHeaderSelectDisabled}}}):null,_=h?va(h)():null,R=b?wa(...b.map((e=>ya[e])))():null;let I=(null==T?void 0:T.children)||(null==S?void 0:S.children)||t,D=null;v&&(D=sa(v)(I),I=D.children);const j=Gc(T,S,_,R,D),{children:P=null,isVisible:L=null,className:A="",component:F=r}=j,M=i(j,["children","isVisible","className","component"]),B=o.createElement(F,Object.assign({"data-label":a,onMouseEnter:null!==f?e=>{e.target.offsetWidth<e.target.scrollWidth?!N&&k(!0):N&&k(!1),m(e)}:m,scope:"th"===r&&t?s:null,ref:g,className:l(n,c&&So.modifiers.center,O&&So.tableSubhead,y&&ta,w&&Qo.borderRight,p&&So.modifiers[p],A)},M,E,y&&{style:Object.assign({"--pf-c-table__sticky-column--MinWidth":x||void 0,"--pf-c-table__sticky-column--Left":C||void 0},E.style)}),I);return null!==f&&(""!==f||"string"==typeof t)&&N?o.createElement(Yt,{content:f||""===f&&t,isVisible:!0},B):B},qc=o.forwardRef(((e,t)=>o.createElement(Uc,Object.assign({},e,{innerRef:t}))));qc.displayName="Th";class Xc extends o.Component{constructor(e){super(e),this.toggleRef=o.createRef(),this.onToggle=e=>{this.setState({isOpen:e})},this.onClick=(e,t)=>{const{rowData:n,extraData:r}=this.props;t&&(e.preventDefault(),t(e,r&&r.rowIndex,n,r))},this.state={isOpen:!1}}render(){const{isOpen:e}=this.state,{items:t,children:n,dropdownPosition:r,dropdownDirection:a,isDisabled:s,rowData:l,actionsToggle:c}=this.props,d=c?c({onToggle:this.onToggle,isOpen:e,isDisabled:s}):o.createElement(yn,{isDisabled:s,onToggle:this.onToggle}),p=t.filter((e=>e.isOutsideDropdown)),u=t.filter((e=>!e.isOutsideDropdown));return o.createElement(o.Fragment,null,p.map(((e,t)=>{var{title:n,itemKey:r,onClick:a,isOutsideDropdown:l}=e,c=i(e,["title","itemKey","onClick","isOutsideDropdown"]);return"string"==typeof n?o.createElement(jt,Object.assign({onClick:e=>this.onClick(e,a)},c,{isDisabled:s,key:r||`outside_dropdown_${t}`,"data-key":r||`outside_dropdown_${t}`}),n):o.cloneElement(n,Object.assign({onClick:a,isDisabled:s},c))})),o.createElement(an,Object.assign({toggle:d,position:r,direction:a,isOpen:e,dropdownItems:u.map(((t,n)=>{var{title:r,itemKey:a,onClick:s,isSeparator:l}=t,c=i(t,["title","itemKey","onClick","isSeparator"]);return l?o.createElement(un,Object.assign({},c,{key:a||n,"data-key":a||n})):o.createElement(ln,Object.assign({component:"button",onClick:t=>{this.onClick(t,s),this.onToggle(!e)}},c,{key:a||n,"data-key":a||n}),r)})),isPlain:!0},l&&l.actionProps)),n)}}Xc.displayName="ActionsColumn",Xc.defaultProps={children:null,items:[],dropdownPosition:Jt.right,dropdownDirection:Qt.down,rowData:{},extraData:{}};const Yc=(e,t,n,r)=>"function"==typeof e?e(n,r):t,Jc=(e,t,n)=>(r,{rowData:a,column:i,rowIndex:s,columnIndex:c,column:{extraParams:{dropdownPosition:d,dropdownDirection:p,actionsToggle:u}},property:f})=>{const m={rowIndex:s,columnIndex:c,column:i,property:f},h=Yc(t,e,a,m),b=Yc(n,a&&a.disableActions,a,m),g=h&&h.length>0?{children:o.createElement(Xc,{items:h,dropdownPosition:d,dropdownDirection:p,isDisabled:b,rowData:a,extraData:m,actionsToggle:u},r)}:{};return Object.assign({className:l(So.tableAction),style:{width:"auto",paddingRight:0},isVisible:!0},g)},Qc=e=>{var{className:t="",children:n=null,isOpen:r,onToggle:a}=e,s=i(e,["className","children","isOpen","onToggle"]);return o.createElement(o.Fragment,null,void 0!==r&&o.createElement(jt,Object.assign({className:l(t,r&&So.modifiers.expanded)},s,{variant:"plain","aria-label":"Details",onClick:a,"aria-expanded":r}),o.createElement("div",{className:l(So.tableToggleIcon)},o.createElement(Wr,null))),n)};Qc.displayName="CollapseColumn";const Zc=e=>{var{children:t=null}=e,n=i(e,["children"]);return o.createElement("div",Object.assign({},n,{className:l(So.tableExpandableRowContent)}),t)};Zc.displayName="ExpandableRowContent";const ed=(e,{rowIndex:t,columnIndex:n,rowData:r,column:a,property:i})=>{const{extraParams:{onCollapse:s,rowLabeledBy:c="simple-node",expandId:d="expand-toggle"}}=a,p={rowIndex:t,columnIndex:n,column:a,property:i};return{className:void 0!==r.isOpen&&l(So.tableToggle),isVisible:!r.fullWidth,children:o.createElement(Qc,{"aria-labelledby":`${c}${t} ${d}${t}`,onToggle:function(e){s&&s(e,t,r&&!r.isOpen,r,p)},id:d+t,isOpen:r&&r.isOpen},e)}},td=e=>(t,{columnIndex:n,rowIndex:r,rowData:o,column:{extraParams:{contentId:a="expanded-content"}}})=>t&&o.hasOwnProperty("parent")&&{colSpan:o.cells&&1!==o.cells.length?1:e+!!o.fullWidth,id:a+r+(n?"-"+n:""),className:o.noPadding&&l(So.modifiers.noPadding)},nd=(e,{rowIndex:t,columnIndex:n,rowData:r,column:a,property:i})=>{if(!e)return null;const{title:s,props:c}=e,{extraParams:{onExpand:d}}=a,p={rowIndex:t,columnIndex:n,column:a,property:i};return{className:l(So.tableCompoundExpansionToggle,c.isOpen&&So.modifiers.expanded),children:void 0!==c.isOpen&&o.createElement("button",{type:"button",className:l(So.tableButton),onClick:function(e){d&&d(e,t,n,c.isOpen,r,p)},"aria-expanded":c.isOpen,"aria-controls":c.ariaControls},o.createElement(aa,null,s))}},rd=e=>{var{className:t="",onFavorite:n,isFavorited:r,rowIndex:a}=e,s=i(e,["className","onFavorite","isFavorited","rowIndex"]);const l=void 0===a?{}:{id:`favorites-button-${a}`,"aria-labelledby":`favorites-button-${a}`};return o.createElement(jt,Object.assign({variant:"plain",className:t,type:"button","aria-label":r?"Starred":"Not starred",onClick:n},l,s),o.createElement(xn,{"aria-hidden":!0}))};rd.displayName="FavoritesCell";const od=(e,{rowIndex:t,columnIndex:n,rowData:r,column:a,property:i})=>{const{extraParams:{onFavorite:s}}=a,c={rowIndex:t,columnIndex:n,column:a,property:i};if(r&&r.hasOwnProperty("parent")&&!r.fullWidth)return{component:"td",isVisible:!0};const d=r.favoritesProps||{};return{className:l(So.tableFavorite,r&&r.favorited&&So.modifiers.favorited),isVisible:!r||!r.fullWidth,children:o.createElement(rd,Object.assign({rowIndex:t,onFavorite:function(e){s&&s(e,r&&!r.favorited,t,r,c)},isFavorited:r&&r.favorited},d))}},ad=e=>{var{className:t,onClick:n,"aria-label":r,id:a}=e,s=i(e,["className","onClick","aria-label","id"]);return o.createElement(jt,Object.assign({id:a,variant:"plain",className:t,type:"button","aria-label":r||"Draggable row draggable button",onClick:n},s),o.createElement(Kr,{"aria-hidden":!0}))};ad.displayName="DraggableCell";var id=At({name:"EllipsisHIcon",height:512,width:512,svgPath:"M328 256c0 39.8-32.2 72-72 72s-72-32.2-72-72 32.2-72 72-72 72 32.2 72 72zm104-72c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm-352 0c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72z",yOffset:0,xOffset:0});const sd=(e,t,n)=>(r,{rowIndex:a,rowData:i})=>{const{isExpanded:s,isDetailsExpanded:c,"aria-level":d,"aria-setsize":p,toggleAriaLabel:u,checkAriaLabel:f,showDetailsAriaLabel:m,isChecked:h,checkboxId:b,icon:g}=i.props,v=r.title||r,y=o.createElement("div",{className:l(Fo),key:"tree-view-text"},g&&o.createElement("span",{className:l(Lo),key:"tree-view-text-icon"},g),o.createElement("span",{className:"pf-c-table__text",key:"table-text"},v));return{component:"th",className:"pf-c-table__tree-view-title-cell",children:void 0!==d?o.createElement("div",{className:l(Ao)},p>0&&o.createElement("span",{className:l(Do),key:"table-toggle"},o.createElement(jt,{variant:"plain",onClick:t=>e&&e(t,a,v,i),className:l(s&&So.modifiers.expanded),"aria-expanded":s,"aria-label":u||`${s?"Collapse":"Expand"} row ${a}`},o.createElement("div",{className:l(jo)},o.createElement(Wr,{"aria-hidden":"true"})))),!!t&&o.createElement("span",{className:l(Io),key:"table-check"},o.createElement($r,{id:b||`checkbox_${a}`,"aria-label":f||`Row ${a} checkbox`,isChecked:h,onChange:(e,n)=>{t(n,e,a,v,i)}})),y,!!n&&o.createElement("span",{className:l(Po),key:"view-details-toggle"},o.createElement(jt,{variant:"plain","aria-expanded":c,"aria-label":m||"Show row details",onClick:e=>n&&n(e,a,v,i)},o.createElement("span",{className:"pf-c-table__details-toggle-icon"},o.createElement(id,{"aria-hidden":!0}))))):y}},ld=e=>{var{children:t,className:n,component:r="td",dataLabel:a,textCenter:s=!1,modifier:c,select:d=null,actions:p=null,expand:u=null,treeRow:f=null,compoundExpand:m=null,noPadding:h,width:b,visibility:g,innerRef:v,favorites:y=null,draggableRow:w=null}=e,x=i(e,["children","className","component","dataLabel","textCenter","modifier","select","actions","expand","treeRow","compoundExpand","noPadding","width","visibility","innerRef","favorites","draggableRow"]);const C=d?ga(t,{rowIndex:d.rowIndex,rowData:{selected:d.isSelected,disableSelection:null==d?void 0:d.disable,props:null==d?void 0:d.props},column:{extraParams:{onSelect:null==d?void 0:d.onSelect,selectVariant:d.variant||"checkbox"}}}):null,O=y?od(0,{rowIndex:null==y?void 0:y.rowIndex,rowData:{favorited:y.isFavorited,favoritesProps:null==y?void 0:y.props},column:{extraParams:{onFavorite:null==y?void 0:y.onFavorite}}}):null,E=null!==w?((e,{rowData:t})=>{const{id:n}=t;return{className:"",children:o.createElement(ad,{id:n})}})(0,{rowData:{id:w.id}}):null,N=p?Jc(p.items,null,null):null,k=Gc(C,N?N(null,{rowData:{disableActions:null==p?void 0:p.disable},column:{extraParams:{dropdownPosition:null==p?void 0:p.dropdownPosition,dropdownDirection:null==p?void 0:p.dropdownDirection,actionsToggle:null==p?void 0:p.actionsToggle}}}):null,null!==u?ed(null,{rowIndex:u.rowIndex,columnIndex:null==u?void 0:u.columnIndex,rowData:{isOpen:u.isExpanded},column:{extraParams:{onCollapse:null==u?void 0:u.onToggle}}}):null,null!==m?nd({title:t,props:{isOpen:m.isExpanded}},{column:{extraParams:{onExpand:null==m?void 0:m.onToggle}}}):null,b?va(b)():null,g?wa(...g.map((e=>ya[e])))():null,O,null!==f?sd(f.onCollapse,f.onCheckChange,f.onToggleRowDetails)({title:t},{rowIndex:f.rowIndex,rowData:{props:f.props}}):null,E),{isVisible:T=null,children:S=null,className:_="",component:R=r}=k,I=i(k,["isVisible","children","className","component"]),D=n&&n.includes("pf-c-table__tree-view-title-cell")||_&&_.includes("pf-c-table__tree-view-title-cell");return o.createElement(R,Object.assign({},!D&&{"data-label":a},{className:l(n,s&&So.modifiers.center,h&&So.modifiers.noPadding,So.modifiers[c],E&&So.tableDraggable,_),ref:v},I,x),S||t)},cd=o.forwardRef(((e,t)=>o.createElement(ld,Object.assign({},e,{innerRef:t}))));cd.displayName="Td";const dd={renderers:{table:Ko,header:{wrapper:Uo,row:Jo,cell:qc},body:{wrapper:Xo,row:Jo,cell:cd}}},pd=o.createContext({columns:null,renderers:null});class ud extends o.Component{render(){const e=this.props,{columns:t,renderers:n,components:r,children:a}=e,s=i(e,["columns","renderers","components","children"]);let l=n;r&&(console.warn("`components` have been deprecated in favor of `renderers` and will be removed in the next major version, please rename!"),l=r);const c=o.createElement(n.table||dd.renderers.table,s,a);return o.createElement(pd.Provider,{value:{columns:t,renderers:{table:l.table||dd.renderers.table,header:Object.assign(Object.assign({},dd.renderers.header),l.header),body:Object.assign(Object.assign({},dd.renderers.body),l.body)}}},c)}}function fd(e){return(t,n)=>e.reduce(((e,t)=>({value:t(e.value,e.extra),extra:n})),{value:t,extra:n}).value}function md(e=[],t,n={}){return 0===e.length?{}:Gc(...e.map((e=>e(t,n))))}ud.displayName="Provider",ud.defaultProps={renderers:dd.renderers};const hd=({rowData:e,rowIndex:t,renderers:n,onRow:r=(()=>({}))})=>o.createElement(n.row,r(e,{rowIndex:t}),e.map(((e,t)=>{const{property:r,header:a={},props:i={}}=e,s=r||a&&a.property,{label:l,transforms:c=[],formatters:d=[],info:p={}}=a,u={columnIndex:t,property:s,column:e},f=md(c,l,u);let m;f||console.warn("Table.Header - Failed to receive a transformed result");const{tooltip:h,tooltipProps:b,popover:g,popoverProps:v,ariaLabel:y,className:w}=p;return m=h?o.createElement(ia,{variant:"tooltip",info:h,tooltipProps:b,ariaLabel:y,className:w},f.children||fd(d)(l,u)):g?o.createElement(ia,{variant:"popover",info:g,popoverProps:v,ariaLabel:y,className:w},f.children||fd(d)(l,u)):f.children||fd(d)(l,u),o.createElement(n.cell,Object.assign({key:`${t}-header`},Gc(i,a&&a.props,f)),m)})));hd.displayName="HeaderRow";class bd extends o.Component{render(){const e=this.props,{children:t,headerRows:n,onRow:r,renderers:a,columns:s}=e,l=i(e,["children","headerRows","onRow","renderers","columns"]);return o.createElement(a.header.wrapper,l,[(n||[s]).map(((e,t)=>o.createElement(hd,{key:`${t}-header-row`,renderers:a.header,onRow:r,rowData:e,rowIndex:t})))].concat(t))}}const gd=e=>o.createElement(pd.Consumer,null,(({columns:t,renderers:n})=>o.createElement(bd,Object.assign({columns:t,renderers:n},e))));var vd=os,yd=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},wd=function(e){return this.__data__.has(e)};function xd(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new vd;++t<n;)this.add(e[t])}xd.prototype.add=xd.prototype.push=yd,xd.prototype.has=wd;var Cd=xd,Od=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},Ed=function(e,t){return e.has(t)};var Nd=function(e,t,n,r,o,a){var i=1&n,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))return!1;var c=a.get(e),d=a.get(t);if(c&&d)return c==t&&d==e;var p=-1,u=!0,f=2&n?new Cd:void 0;for(a.set(e,t),a.set(t,e);++p<s;){var m=e[p],h=t[p];if(r)var b=i?r(h,m,p,t,e,a):r(m,h,p,e,t,a);if(void 0!==b){if(b)continue;u=!1;break}if(f){if(!Od(t,(function(e,t){if(!Ed(f,t)&&(m===e||o(m,e,n,r,a)))return f.push(t)}))){u=!1;break}}else if(m!==h&&!o(m,h,n,r,a)){u=!1;break}}return a.delete(e),a.delete(t),u};var kd=Ns,Td=Ca,Sd=Nd,_d=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},Rd=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},Id=Ga?Ga.prototype:void 0,Dd=Id?Id.valueOf:void 0;var jd=function(e,t,n,r,o,a,i){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new kd(e),new kd(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Td(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=_d;case"[object Set]":var l=1&r;if(s||(s=Rd),e.size!=t.size&&!l)return!1;var c=i.get(e);if(c)return c==t;r|=2,i.set(e,t);var d=Sd(s(e),s(t),r,o,a,i);return i.delete(e),d;case"[object Symbol]":if(Dd)return Dd.call(e)==Dd.call(t)}return!1};var Pd=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},Ld=Pd,Ad=Js;var Fd=function(e,t,n){var r=t(e);return Ad(e)?r:Ld(r,n(e))};var Md=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a},Bd=function(){return[]},Vd=Object.prototype.propertyIsEnumerable,Hd=Object.getOwnPropertySymbols,zd=Hd?function(e){return null==e?[]:(e=Object(e),Md(Hd(e),(function(t){return Vd.call(e,t)})))}:Bd,$d=js(Object.keys,Object),Wd=As,Kd=$d,Gd=Object.prototype.hasOwnProperty;var Ud=Wl,qd=function(e){if(!Wd(e))return Kd(e);var t=[];for(var n in Object(e))Gd.call(e,n)&&"constructor"!=n&&t.push(n);return t},Xd=tl;var Yd=Fd,Jd=zd,Qd=function(e){return Xd(e)?Ud(e):qd(e)};var Zd=function(e){return Yd(e,Qd,Jd)},ep=Object.prototype.hasOwnProperty;var tp=function(e,t,n,r,o,a){var i=1&n,s=Zd(e),l=s.length;if(l!=Zd(t).length&&!i)return!1;for(var c=l;c--;){var d=s[c];if(!(i?d in t:ep.call(t,d)))return!1}var p=a.get(e),u=a.get(t);if(p&&u)return p==t&&u==e;var f=!0;a.set(e,t),a.set(t,e);for(var m=i;++c<l;){var h=e[d=s[c]],b=t[d];if(r)var g=i?r(b,h,d,t,e,a):r(h,b,d,e,t,a);if(!(void 0===g?h===b||o(h,b,n,r,a):g)){f=!1;break}m||(m="constructor"==d)}if(f&&!m){var v=e.constructor,y=t.constructor;v==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y||(f=!1)}return a.delete(e),a.delete(t),f},np=Ni(Ka,"DataView"),rp=ki,op=Ni(Ka,"Promise"),ap=Ni(Ka,"Set"),ip=Ni(Ka,"WeakMap"),sp=ri,lp=ui,cp="[object Map]",dp="[object Promise]",pp="[object Set]",up="[object WeakMap]",fp="[object DataView]",mp=lp(np),hp=lp(rp),bp=lp(op),gp=lp(ap),vp=lp(ip),yp=sp;(np&&yp(new np(new ArrayBuffer(1)))!=fp||rp&&yp(new rp)!=cp||op&&yp(op.resolve())!=dp||ap&&yp(new ap)!=pp||ip&&yp(new ip)!=up)&&(yp=function(e){var t=sp(e),n="[object Object]"==t?e.constructor:void 0,r=n?lp(n):"";if(r)switch(r){case mp:return fp;case hp:return cp;case bp:return dp;case gp:return pp;case vp:return up}return t});var wp=hs,xp=Nd,Cp=jd,Op=tp,Ep=yp,Np=Js,kp=al.exports,Tp=Tl,Sp="[object Arguments]",_p="[object Array]",Rp="[object Object]",Ip=Object.prototype.hasOwnProperty;var Dp=function(e,t,n,r,o,a){var i=Np(e),s=Np(t),l=i?_p:Ep(e),c=s?_p:Ep(t),d=(l=l==Sp?Rp:l)==Rp,p=(c=c==Sp?Rp:c)==Rp,u=l==c;if(u&&kp(e)){if(!kp(t))return!1;i=!0,d=!1}if(u&&!d)return a||(a=new wp),i||Tp(e)?xp(e,t,n,r,o,a):Cp(e,t,l,n,r,o,a);if(!(1&n)){var f=d&&Ip.call(e,"__wrapped__"),m=p&&Ip.call(t,"__wrapped__");if(f||m){var h=f?e.value():e,b=m?t.value():t;return a||(a=new wp),o(h,b,n,r,a)}}return!!u&&(a||(a=new wp),Op(e,t,n,r,o,a))},jp=Hs;var Pp=function e(t,n,r,o,a){return t===n||(null==t||null==n||!jp(t)&&!jp(n)?t!=t&&n!=n:Dp(t,n,r,o,e,a))},Lp=Pp;var Ap=function(e,t){return Lp(e,t)};var Fp=Pp;var Mp=function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?Fp(e,t,void 0,n):!!r};class Bp extends o.Component{shouldComponentUpdate(e){const{columns:t,rowData:n}=this.props,{renderers:r}=e;return r&&r.row&&r.row.shouldComponentUpdate?"function"!=typeof r.row.shouldComponentUpdate||r.row.shouldComponentUpdate.call(this,e,{},{}):(o=t,a=e.columns,!(Mp(o,a,((e,t)=>{if("function"==typeof e&&"function"==typeof t)return e===t}))&&Ap(n,e.rowData)));var o,a}render(){const{columns:e,renderers:t,onRow:n,rowKey:r,rowIndex:a,rowData:i}=this.props;return o.createElement(t.row,n(i,{rowIndex:a,rowKey:r}),e.map(((e,n)=>{const{property:s,cell:l,props:c}=e,d=s||l&&l.property,{transforms:p=[],formatters:u=[]}=l||{},f={columnIndex:n,property:d,column:e,rowData:i,rowIndex:a,rowKey:r},m=md(p,i[d],f);m||console.warn("Table.Body - Failed to receive a transformed result");let h=[];return i[d]&&(h=i[d].formatters),o.createElement(t.cell,Object.assign({key:`col-${n}-row-${a}`},Gc(c,l&&l.props,m)),!i.fullWidth&&m.children||fd([...u,...h])(i[`_${d}`]||i[d],f))})))}}Bp.displayName="BodyRow",Bp.defaultProps={onRow:(...e)=>({})};class Vp extends o.Component{constructor(){super(...arguments),this.omitOnRow=e=>i(e,["onRow"])}shouldComponentUpdate(e){const{renderers:t}=e;return t&&t.body&&t.body.wrapper&&t.body.wrapper.shouldComponentUpdate?"function"!=typeof t.body.wrapper.shouldComponentUpdate||t.body.wrapper.shouldComponentUpdate.call(this,e,{},{}):!Ap(this.omitOnRow(this.props),this.omitOnRow(e))}render(){const e=this.props,{onRow:t,rows:n,rowKey:r,columns:a,renderers:s}=e,l=i(e,["onRow","rows","rowKey","columns","renderers"]),c=n.map(((e,n)=>{const i=function({rowData:e,rowIndex:t,rowKey:n}){return"function"==typeof n?`${n({rowData:e,rowIndex:t})}-row`:0===e[n]?`${e[n]}-row`:`${e[n]||t}-row`}({rowData:e,rowIndex:n,rowKey:r});return o.createElement(Bp,{key:i,renderers:s.body,onRow:t,rowKey:i,rowIndex:n,rowData:e,columns:a})}));return o.createElement(s.body.wrapper,l,c)}}Vp.defaultProps={onRow:(...e)=>({})};const Hp=e=>o.createElement(pd.Consumer,null,(({columns:t,renderers:n})=>o.createElement(Vp,Object.assign({columns:t,renderers:n},e)))),zp=e=>{var{"data-label":t="",className:n="",colSpan:r,component:a="td",isVisible:s,parentId:l,textCenter:c=!1,tooltip:d="",onMouseEnter:p=(()=>{}),children:u,errorText:f,isValid:m,isOpen:h,ariaControls:b,editableValue:g,editableSelectProps:v,options:y,isSelectOpen:w,value:x,name:C}=e,O=i(e,["data-label","className","colSpan","component","isVisible","parentId","textCenter","tooltip","onMouseEnter","children","errorText","isValid","isOpen","ariaControls","editableValue","editableSelectProps","options","isSelectOpen","value","name"]);const[E,N]=o.useState("");let k=!1;u&&(k=u.type===To&&u.props.children&&u.props.children.type===wo||u.type===wo);const T=o.createElement(cd,Object.assign({className:n,component:a,dataLabel:t&&null==l&&!k?t:null,onMouseEnter:e=>{e.target.offsetWidth<e.target.scrollWidth?d?N(d):"string"==typeof u&&N(u):N(""),p(e)},textCenter:c,colSpan:r},O),u),S=""!==E?o.createElement(Yt,{content:E,isVisible:!0},T):T;return void 0!==l&&void 0===r||!s?null:S};zp.displayName="BodyCell";const $p=e=>{var{className:t="",component:n="th",scope:r="",textCenter:a=!1,tooltip:s="",onMouseEnter:l=(()=>{}),children:c,isVisible:d,dataLabel:p=""}=e,u=i(e,["className","component","scope","textCenter","tooltip","onMouseEnter","children","isVisible","dataLabel"]);return o.createElement(qc,Object.assign({},u,{scope:r,tooltip:s,onMouseEnter:l,textCenter:a,component:n,className:t}),c)};$p.displayName="HeaderCell";class Wp extends o.Component{constructor(e){super(e),this.handleScroll=e=>{this._unmounted||this.props.onScroll(e)},this.handleResize=e=>{this._unmounted||this.props.onResize(e)},e.onScroll&&(this.handleScroll=U(this.handleScroll,100)),e.onResize&&(this.handleResize=U(this.handleResize,100))}componentDidMount(){this._unmounted=!1,Z&&(this.props.onScroll&&window.addEventListener("scroll",this.handleScroll),this.props.onResize&&window.addEventListener("resize",this.handleResize))}componentWillUnmount(){this._unmounted=!0,Z&&(this.props.onScroll&&window.removeEventListener("scroll",this.handleScroll),this.props.onResize&&window.removeEventListener("resize",this.handleResize))}render(){const e=this.props,{onScroll:t,onResize:n,row:{isExpanded:r,isEditable:a,isHoverable:s,isRowSelected:l},rowProps:c,trRef:d,className:p,ouiaId:u}=e,f=i(e,["onScroll","onResize","row","rowProps","trRef","className","ouiaId"]);return o.createElement(Jo,Object.assign({},f,{ref:d,isExpanded:r,isEditable:a,className:p,ouiaId:u,isHoverable:s,isRowSelected:l}))}}Wp.displayName="RowWrapper",Wp.defaultProps={className:"",row:{isOpen:void 0,isExpanded:void 0,isHeightAuto:void 0,isEditable:void 0},rowProps:null};const Kp=()=>({component:"td"}),Gp=()=>({scope:"col"}),Up=e=>Object.assign({},e?{}:{scope:""}),qp=(e,{rowData:t})=>({parentId:t.parent}),Xp=(e,{property:t,rowData:n})=>Object.assign({},n[t]&&n[t].props);var Yp=At({name:"PencilAltIcon",height:512,width:512,svgPath:"M497.9 142.1l-46.1 46.1c-4.7 4.7-12.3 4.7-17 0l-111-111c-4.7-4.7-4.7-12.3 0-17l46.1-46.1c18.7-18.7 49.1-18.7 67.9 0l60.1 60.1c18.8 18.7 18.8 49.1 0 67.9zM284.2 99.8L21.6 362.4.4 483.9c-2.9 16.4 11.4 30.6 27.8 27.8l121.5-21.3 262.6-262.6c4.7-4.7 4.7-12.3 0-17l-111-111c-4.8-4.7-12.4-4.7-17.1 0zM124.1 339.9c-5.5-5.5-5.5-14.3 0-19.8l154-154c5.5-5.5 14.3-5.5 19.8 0s5.5 14.3 0 19.8l-154 154c-5.5 5.5-14.3 5.5-19.8 0zM88 424h48v36.3l-64.5 11.3-31.1-31.1L51.7 376H88v48z",yOffset:0,xOffset:0});const Jp=e=>{var{onClick:t=null,className:n="",editing:r,valid:a,saveAriaLabel:s,cancelAriaLabel:c,editAriaLabel:d}=e,p=i(e,["onClick","className","editing","valid","saveAriaLabel","cancelAriaLabel","editAriaLabel"]);return o.createElement(o.Fragment,null,o.createElement("div",{className:l(Oo,ko.iconGroup,"pf-m-action-group")},o.createElement("div",{className:l(Co)},o.createElement(jt,Object.assign({"aria-label":s},p,{onClick:e=>t(e,"save"),variant:"plain"}),o.createElement(cr,null))),o.createElement("div",{className:l(Co)},o.createElement(jt,Object.assign({"aria-label":c},p,{onClick:e=>t(e,"cancel"),variant:"plain"}),o.createElement(Ft,null)))),o.createElement("div",{className:l(Co,ko.enableEditable)},o.createElement(jt,Object.assign({"aria-label":d},p,{onClick:e=>t(e,"edit"),variant:"plain"}),o.createElement(Yp,null))))};Jp.displayName="EditColumn";const Qp=(e,{rowIndex:t,rowData:n,column:r})=>{const{extraParams:{onRowEdit:a}}=r;function i(e,t){let n;switch(t){case"cancel":n=`Cancel row edits for row ${e}`;break;case"save":n=`Save row edits for row ${e}`;break;default:n=`Place row ${e} in edit mode`}return n}return{className:So.tableInlineEditAction,component:"td",isVisible:!0,children:o.createElement(Jp,{saveAriaLabel:n&&n.rowSaveBtnAriaLabel&&n.rowSaveBtnAriaLabel(t)||i(t,"save"),cancelAriaLabel:n&&n.rowCancelBtnAriaLabel&&n.rowCancelBtnAriaLabel(t)||i(t,"cancel"),editAriaLabel:n&&n.rowEditBtnAriaLabel&&n.rowEditBtnAriaLabel(t)||i(t,"edit"),valid:n&&n.isValid,editing:n&&n.isEditable,onClick:(e,r)=>{let o={};"save"===r&&(o=n.rowEditValidationRules&&n.rowEditValidationRules.reduce(((e,t)=>{const r=n.cells.filter((e=>{const n=""===e.props.editableValue?"":e.props.editableValue||e.props.value;let r=!1;return r=Array.isArray(n)&&n.length?n.reduce(((e,n)=>!0===e||!t.validator(n)),r):Array.isArray(n)&&!n.length?!t.validator(""):!t.validator(n),r&&(e.props.isValid=!1),r}));return r.length&&(e[t.name]=r.map((e=>e.props.name))),e}),{})),a(e,r,n&&n.isEditable,t,o)}})}},Zp=e=>e&&e.hasOwnProperty("title")?e.title:e,eu=({transforms:e,formatters:t,columnTransforms:n,header:r},o)=>Object.assign(Object.assign({},r),{label:o,transforms:[Gp,Up,...e||[],...n||[],...r&&r.hasOwnProperty("transforms")?r.transforms:[]],formatters:[...t||[],...r&&r.hasOwnProperty("formatters")?r.formatters:[]]}),tu=({cellFormatters:e,cellTransforms:t,columnTransforms:n,cell:r},o)=>Object.assign(Object.assign({},r),{transforms:[...t||[],...n||[],...r&&r.hasOwnProperty("transforms")?r.transforms:[],Xp],formatters:[Zp,...e||[],...r&&r.hasOwnProperty("formatters")?r.formatters:[]]}),nu=({onSelect:e,canSelectAll:t})=>[...e?[{title:"",transforms:t&&[ga]||null,cellTransforms:[ga]}]:[]],ru=({onFavorite:e,onSort:t,sortBy:n,canSortFavorites:r,firstUserColumnIndex:o})=>[...e?[{title:"",transforms:t&&r?[fa({onSort:t,columnIndex:o-1,sortBy:n})]:[Kp],cellTransforms:[od]}]:[]],ou=({actions:e,actionResolver:t,areActionsDisabled:n})=>[...t||e?[{title:"",transforms:[Kp],cellTransforms:[Jc(e,t,n)]}]:[]],au=(e,{onCollapse:t})=>[...t?[{title:"",transforms:[Kp],cellTransforms:[ed,td(e.length)]}]:[]],iu=(e,t)=>Object.assign(Object.assign({},e.hasOwnProperty("title")?e:{title:e}),{cellTransforms:[...e.hasOwnProperty("cellTransforms")?e.cellTransforms:[],t]}),su=(e,t)=>t.onCollapse||t.onExpand?e.map((t=>{const n=iu(t,qp);return iu(n,td(e.length))})):e,lu=(e,t)=>e.reduce(((e,n,r)=>{if(n.hasOwnProperty("parent")){e.length>0&&e[e.length-1]&&(e[e.length-1].rows=[...e[e.length-1].rows,t[r]],n.hasOwnProperty("compoundParent")&&(e[e.length-1].isOpen=e[e.length-1].rows.some((e=>e.props.rowData.cells.some((e=>e.props&&e.props.isOpen))))))}else e=[...e,Object.assign(Object.assign({},n),{rows:[t[r]]})];return e}),[]),cu=({onRowEdit:e})=>[...e?[{title:"",cellTransforms:[Qp]}]:[]],du=(e,t)=>e&&[...au(e,t),...nu(t),...ru(t),...su(e,t),...cu(t),...ou(t)].map(((e,n)=>Object.assign({},((e,t,n,...r)=>{const o=e.hasOwnProperty("title")?e.title:e;let a=`column-${n}`;return e.hasOwnProperty("dataLabel")?a=e.dataLabel:"string"==typeof o&&(a=o),{property:"string"==typeof o&&o.toLowerCase().trim().replace(/\s/g,"-")||`column-${n}`,extraParams:t,data:e.data,header:eu(e,o),cell:tu(e),props:Object.assign(Object.assign({"data-label":a,"data-key":n},e.hasOwnProperty("props")?e.props:{}),r)}})(e,t,n)))),pu=e=>{var{mappedRows:t,tbodyRef:n,rows:r=[],onCollapse:a,headerRows:s}=e,l=i(e,["mappedRows","tbodyRef","rows","onCollapse","headerRows"]);return t&&t.some((e=>e.hasOwnProperty("parent")))?o.createElement(o.Fragment,null,lu(t,l.children).map(((e,t)=>o.createElement(Xo,Object.assign({},l,{isExpanded:e.isOpen,key:`tbody-${t}`,ref:n}),e.rows)))):o.createElement(Xo,Object.assign({},l,{ref:n}))};pu.displayName="BodyWrapper";const uu=o.createContext({headerData:null,headerRows:null,rows:[]}),fu=e=>{var{children:t,className:n}=e,r=i(e,["children","className"]);return o.createElement("caption",Object.assign({className:n},r),t)};fu.displayName="Caption";const mu=e=>{var{children:t,className:n}=e,r=i(e,["children","className"]);return o.createElement("div",Object.assign({className:l(n,ea)},r),t)};mu.displayName="OuterScrollContainer";const hu=e=>{var{children:t,className:n}=e,r=i(e,["children","className"]);return o.createElement("div",Object.assign({className:l(n,Zo)},r),t)};hu.displayName="InnerScrollContainer";const bu=e=>{var{className:t,rowProps:n,row:r}=e,a=i(e,["className","rowProps","row"]);const{"aria-level":s,"aria-posinset":c,"aria-setsize":d,isExpanded:p,isDetailsExpanded:u,isHidden:f}=r.props;return o.createElement(Jo,Object.assign({"aria-level":s,"aria-posinset":c,"aria-setsize":d,"aria-expanded":!!p,isHidden:f,className:l(t,p&&So.modifiers.expanded,u&&Ro.treeViewDetailsExpanded)},a))};bu.displayName="TreeRowWrapper";class gu extends o.Component{constructor(){super(...arguments),this.state={ouiaStateId:K(gu.displayName)},this.isSelected=e=>!0===e.selected,this.areAllRowsSelected=e=>void 0!==e&&0!==e.length&&e.every((e=>this.isSelected(e)||e.disableSelection||e.hasOwnProperty("parent")&&!e.showSelect))}render(){const t=this.props,{"aria-label":n,caption:r,header:a,onSort:s,onSelect:c,canSelectAll:d,isHeaderSelectDisabled:p,selectVariant:u,sortBy:f,children:m,actions:h,actionResolver:b,areActionsDisabled:g,onCollapse:v,onExpand:y,onRowEdit:w,rowLabeledBy:x,dropdownPosition:C,dropdownDirection:O,actionsToggle:E,contentId:N,expandId:k,variant:T,rows:S,cells:_,bodyWrapper:R,rowWrapper:I,role:D,borders:j,onFavorite:P,canSortFavorites:L}=t,A=i(t,["aria-label","caption","header","onSort","onSelect","canSelectAll","isHeaderSelectDisabled","selectVariant","sortBy","children","actions","actionResolver","areActionsDisabled","onCollapse","onExpand","onRowEdit","rowLabeledBy","dropdownPosition","dropdownDirection","actionsToggle","contentId","expandId","variant","rows","cells","bodyWrapper","rowWrapper","role","borders","onFavorite","canSortFavorites"]);n||r||a||"presentation"===D||console.error("Table: Specify at least one of: header, caption, aria-label");const F=du(_,{sortBy:f,onSort:s,onSelect:c,canSelectAll:u!==e.RowSelectVariant.radio&&d,isHeaderSelectDisabled:p,selectVariant:u,allRowsSelected:!!c&&this.areAllRowsSelected(S),actions:h,actionResolver:b,areActionsDisabled:g,onCollapse:v,onRowEdit:w,onExpand:y,rowLabeledBy:x,expandId:k,contentId:N,dropdownPosition:C,dropdownDirection:O,actionsToggle:E,onFavorite:P,canSortFavorites:L,firstUserColumnIndex:[v,c,P].filter((e=>e)).length}),M=o.createElement(uu.Provider,{value:{headerData:F,headerRows:null,rows:S}},a,o.createElement(ud,Object.assign({},A,{"aria-label":n,renderers:{body:{wrapper:R||pu,row:I||(this.props.isTreeTable?bu:Wp),cell:zp},header:{cell:$p}},columns:F,role:D,variant:T,borders:j}),r&&o.createElement("caption",null,r),m));return w?o.createElement("form",{className:l(xo)},M):M}}gu.displayName="Table",gu.hasWarnBeta=!1,gu.defaultProps={children:null,className:"",variant:null,borders:!0,rowLabeledBy:"simple-node",expandId:"expandable-toggle",contentId:"expanded-content",dropdownPosition:Jt.right,dropdownDirection:Qt.down,header:void 0,caption:void 0,"aria-label":void 0,gridBreakPoint:e.TableGridBreakpoint.gridMd,role:"grid",canSelectAll:!0,isHeaderSelectDisabled:!1,selectVariant:"checkbox",ouiaSafe:!0,isStickyHeader:!1,canSortFavorites:!0,isTreeTable:!1,isNested:!1};class vu extends o.Component{constructor(){super(...arguments),this.onRow=(e,t)=>{const{onRowClick:n,onRow:r}=this.props,o=Object.assign(Object.assign({},t),r?r(e,t):{});return{row:e,rowProps:o,onClick:r=>{const o={isInput:"INPUT"===r.target.tagName,isButton:"BUTTON"===r.target.tagName};n(r,e,t,o)},onKeyDown:r=>{if("Enter"===r.key||" "===r.key){const o={isInput:"INPUT"===r.target.tagName,isButton:"BUTTON"===r.target.tagName};n(r,e,t,o),o.isInput||r.preventDefault()}}}},this.mapCells=(e,t,n)=>{const{firstUserColumnIndex:r}=e[0].extraParams,o=t&&t.fullWidth;let a=o?0:r;return Object.assign({},t&&(t.cells||t).reduce(((t,i,s)=>{const l=i===Object(i),c=i&&"function"==typeof i.title;let d=[];l&&i.formatters?d=i.formatters:o&&s<r&&(d=e[r].cell.formatters);let p=i;l&&c?p=i.title(i.props.value,n,s,i.props):l&&(p=i.title);const u={[e[s+a].property]:{title:p,formatters:d,props:Object.assign({isVisible:!0},l?i.props:null)}};return l&&i.props&&i.props.colSpan&&(a+=i.props.colSpan-1),Object.assign(Object.assign({},t),u)}),{secretTableRowKeyId:void 0!==t.id?t.id:n}))}}render(){const e=this.props,{className:t,headerData:n,rows:r,rowKey:a,children:s,onRowClick:l}=e,c=i(e,["className","headerData","rows","rowKey","children","onRowClick"]);let d;return n.length>0&&(d=r.map(((e,t)=>Object.assign(Object.assign(Object.assign({},e),this.mapCells(n,e,t)),{isExpanded:Mo(e,r),isHeightAuto:e.heightAuto||!1,isFirst:0===t,isLast:t===r.length-1,isFirstVisible:!1,isLastVisible:!1}))),(e=>{const t=e.filter((e=>!e.parent||e.isExpanded));t.length>0&&(t[0].isFirstVisible=!0,t[t.length-1].isLastVisible=!0)})(d)),o.createElement(o.Fragment,null,d&&o.createElement(Hp,Object.assign({},c,{mappedRows:d,rows:d,onRow:this.onRow,rowKey:a,className:t})))}}const yu=({value:e,rowIndex:t,cellIndex:n,onSelect:r=(()=>{}),clearSelection:a,isOpen:i=!1,onToggle:s=(()=>{}),selections:c=[""],options:d=[],props:p})=>{const u=o.createElement(Hr,Object.assign({},p.editableSelectProps,{onSelect:(e,o,a)=>{r(o,e,t,n,a)}},a&&{onClear:e=>{a(t,n,e)}},{isOpen:i,onToggle:s,selections:c}),d);return o.createElement(o.Fragment,null,o.createElement("div",{className:No},Array.isArray(e)?e.join(", "):e),o.createElement("div",{className:Eo},u,o.createElement("div",{className:l(tr,nr.error),"aria-live":"polite"},p.errorText)))};yu.displayName="EditableSelectInputCell";const wu=({value:e,rowIndex:t,cellIndex:n,props:r,handleTextInputChange:a,inputAriaLabel:i,isDisabled:s=!1})=>o.createElement(o.Fragment,null,o.createElement("div",{className:No},e),o.createElement("div",{className:Eo},o.createElement(En,{isDisabled:s,value:void 0!==r.editableValue?r.editableValue:e,validated:!1!==r.isValid?"default":"error",type:"text",onChange:(e,r)=>{a(e,r,t,n)},"aria-label":i}),o.createElement("div",{className:l(tr,nr.error),"aria-live":"polite"},r.errorText)));wu.displayName="EditableTextCell";const xu=e=>{var{className:t="",headerRows:n}=e,r=i(e,["className","headerRows"]);return o.createElement(gd,Object.assign({},r,{headerRows:n,className:t}))},Cu=e=>{var t=i(e,[]);return o.createElement(uu.Consumer,null,(({headerRows:e})=>o.createElement(xu,Object.assign({},t,{headerRows:e}))))};Cu.displayName="TableHeader",e.ActionsColumn=Xc,e.BodyCell=zp,e.BodyWrapper=pu,e.Caption=fu,e.CollapseColumn=Qc,e.DraggableCell=ad,e.EditableSelectInputCell=yu,e.EditableTextCell=wu,e.ExpandableRowContent=Zc,e.FavoritesCell=rd,e.HeaderCell=$p,e.HeaderCellInfoWrapper=ia,e.InnerScrollContainer=hu,e.OuterScrollContainer=mu,e.RowWrapper=Wp,e.SelectColumn=ba,e.SortColumn=ua,e.Table=gu,e.TableBody=e=>{var{className:t="",children:n=null,rowKey:r="secretTableRowKeyId",onRow:a=((...e)=>({})),onRowClick:s=((e,t,n,r)=>{})}=e,l=i(e,["className","children","rowKey","onRow","onRowClick"]);return o.createElement(uu.Consumer,null,(e=>{var{headerData:c=[],rows:d=[]}=e,p=i(e,["headerData","rows"]);return o.createElement(vu,Object.assign({headerData:c,rows:d,onRow:a,className:t,rowKey:r,onRowClick:s},l,p),n)}))},e.TableComposable=Ko,e.TableContext=uu,e.TableHeader=Cu,e.TableText=aa,e.Tbody=Xo,e.Td=cd,e.Th=qc,e.Thead=Uo,e.Tr=Jo,e.TreeRowWrapper=bu,e.Visibility=ya,e.applyCellEdits=(e,t)=>(e.cells.forEach((e=>{delete e.props.errorText;const n=void 0!==e.props.value&&null!==e.props.value,r=void 0!==e.props.editableValue&&null!==e.props.editableValue;n&&!r&&(e.props.editableValue=e.props.value),e.props&&n&&r&&("save"===t&&(e.props.value=e.props.editableValue,e.props.isValid=!0,delete e.props.errorText),delete e.props.editableValue)})),e.isEditable=!e.isEditable,e.isValid=!0,e),e.breakWord=()=>({className:So.modifiers.breakWord}),e.calculateColumns=du,e.cancelCellEdits=e=>(e.cells.forEach((e=>{delete e.props.errorText,delete e.props.editableValue,e.props.isValid=!0,e.props.selected&&(e.props.selected=e.props.value)})),e.isEditable=!e.isEditable,e.isValid=!0,e),e.capitalize=zo,e.cellActions=Jc,e.cellWidth=va,e.classNames=wa,e.collapsible=ed,e.compoundExpand=nd,e.defaultTitle=Zp,e.editable=Qp,e.emptyCol=Up,e.emptyTD=Kp,e.expandable=(e,{rowData:t})=>t&&t.hasOwnProperty("parent")?o.createElement(Zc,null,e):e,e.expandedRow=td,e.favoritable=od,e.fitContent=()=>({className:So.modifiers.fitContent}),e.getErrorTextByValidator=Bo,e.headerCol=(e="simple-node")=>(t,{rowIndex:n}={})=>{const r="object"==typeof t?t.title:t;return{component:"th",children:o.createElement("div",{id:`${e}${n}`},r)}},e.info=sa,e.isRowExpanded=Mo,e.mapOpenedRows=lu,e.mapProps=Xp,e.nowrap=()=>({className:So.modifiers.nowrap}),e.parentId=qp,e.scopeColTransformer=Gp,e.selectable=ga,e.sortable=ma,e.sortableFavorites=fa,e.textCenter=()=>({textCenter:!0}),e.toCamel=Ho,e.treeRow=sd,e.truncate=()=>({className:So.modifiers.truncate}),e.validateCellEdits=(e,t,n,r="Validation requires unique name property for row cells")=>(e.isValid=!Object.keys(n).length,e.cells.forEach((o=>{delete o.props.errorText;const a=void 0!==o.props.value&&null!==o.props.value,i=void 0!==o.props.editableValue&&null!==o.props.editableValue;if(o.props&&a&&i&&"save"===t){const t=Object.keys(n).filter((e=>n[e].includes(o.props.name))).map((t=>Bo(t,e.rowEditValidationRules)));t.length?(o.props.errorText=o.props.name?t.join(", "):r,void 0===o.props.name&&console.warn("Row edit validation reporting requires cell definitions to have a unique name property.")):(delete o.props.errorText,o.props.isValid=!0)}})),e),e.wrappable=()=>({className:So.modifiers.wrap}),Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
55
|
+
function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["size","color","title","noVerticalAlign"]),u=Boolean(c),f=(e=>{switch(e){case Pt.sm:return"1em";case Pt.md:return"1.5em";case Pt.lg:return"2em";case Pt.xl:return"3em";default:return"1em"}})(s),m=-.125*Number.parseFloat(f),h=d?null:{verticalAlign:`${m}em`},b=[t,n,r,a].join(" ");return o.createElement("svg",Object.assign({style:h,fill:l,height:f,width:f,viewBox:b,"aria-labelledby":u?this.id:null,"aria-hidden":!u||null,role:"img"},p),u&&o.createElement("title",{id:this.id},c),o.createElement("path",{d:i}))}},s.displayName=e,s.defaultProps={color:"currentColor",size:Pt.sm,noVerticalAlign:!1},s}var Ft=At({name:"TimesIcon",height:512,width:352,svgPath:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z",yOffset:0,xOffset:0});var Mt=At({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});var Bt=At({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});var Vt=At({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}),Ht={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"},zt="pf-c-tooltip",$t="pf-c-tooltip__arrow",Wt="pf-c-tooltip__content";const Kt=e=>{var{className:t,children:n,isLeftAligned:r}=e,a=s(e,["className","children","isLeftAligned"]);return o.createElement("div",Object.assign({className:l(Wt,r&&Ht.textAlignLeft,t)},a),n)};Kt.displayName="TooltipContent";const Gt=e=>{var{className:t}=e,n=s(e,["className"]);return o.createElement("div",Object.assign({className:l($t,t)},n))};Gt.displayName="TooltipArrow";var Ut,qt={name:"--pf-c-tooltip--MaxWidth",value:"18.75rem",var:"var(--pf-c-tooltip--MaxWidth)"};!function(e){e.auto="auto",e.top="top",e.bottom="bottom",e.left="left",e.right="right"}(Ut||(Ut={}));let Xt=1;const Yt=e=>{var{content:t,position:n="top",trigger:r="mouseenter focus",isVisible:a=!1,isContentLeftAligned:i=!1,enableFlip:c=!0,className:u="",entryDelay:f=300,exitDelay:m=0,appendTo:h=(()=>document.body),zIndex:b=9999,maxWidth:g=qt.value,distance:v=15,aria:y="describedby",flipBehavior:w=["top","right","bottom","left","top","right","bottom"],id:x="pf-tooltip-"+Xt++,children:C,animationDuration:O=300,reference:E,boundary:N,isAppLauncher:k,tippyProps:T}=e,S=s(e,["content","position","trigger","isVisible","isContentLeftAligned","enableFlip","className","entryDelay","exitDelay","appendTo","zIndex","maxWidth","distance","aria","flipBehavior","id","children","animationDuration","reference","boundary","isAppLauncher","tippyProps"]);const _=r.includes("mouseenter"),R=r.includes("focus"),I=r.includes("click"),D="manual"===r,[j,P]=o.useState(!1),[L,A]=o.useState(0),F=o.useRef(null),M=o.useRef(null),B=o.useRef(null),V=e=>{e.forEach((e=>{e.current&&clearTimeout(e.current)}))};o.useEffect((()=>()=>{V([F,B,M])}),[]);o.useEffect((()=>{a?H():z()}),[a]);const H=()=>{V([F,B]),M.current=setTimeout((()=>{P(!0),A(1)}),f)},z=()=>{V([M]),B.current=setTimeout((()=>{A(0),F.current=setTimeout((()=>P(!1)),O)}),m)},$={top:Ht.top,bottom:Ht.bottom,left:Ht.left,right:Ht.right},W=g!==qt.value,K=o.createElement("div",Object.assign({className:l(zt,u),role:"tooltip",id:x,style:{maxWidth:W?g:null,opacity:L,transition:gt(O)}},S),o.createElement(Gt,null),o.createElement(Kt,{isLeftAligned:i},t));return o.createElement(vt,{trigger:"none"!==y&&j?"describedby"===y&&C&&C.props&&!C.props["aria-describedby"]?o.cloneElement(C,{"aria-describedby":x}):"labelledby"===y&&C.props&&!C.props["aria-labelledby"]?o.cloneElement(C,{"aria-labelledby":x}):C:C,reference:E,popper:K,popperMatchesTriggerWidth:!1,appendTo:h,isVisible:j,positionModifiers:$,distance:v,placement:n,onMouseEnter:_&&H,onMouseLeave:_&&z,onFocus:R&&H,onBlur:R&&z,onDocumentClick:I&&((e,t)=>{j?z():e.target===t&&H()}),onDocumentKeyDown:D?null:e=>{D||e.keyCode===d&&j&&z()},onTriggerEnter:D?null:e=>{e.keyCode===p&&(j?z():H())},enableFlip:c,zIndex:b,flipBehavior:w})};Yt.displayName="Tooltip";var Jt,Qt,Zt={formControl:"pf-c-form-control",modifiers:{success:"pf-m-success",expanded:"pf-m-expanded",icon:"pf-m-icon",warning:"pf-m-warning",search:"pf-m-search",calendar:"pf-m-calendar",clock:"pf-m-clock",placeholder:"pf-m-placeholder",resizeVertical:"pf-m-resize-vertical",resizeHorizontal:"pf-m-resize-horizontal"}},en={badge:"pf-c-badge",check:"pf-c-check",divider:"pf-c-divider",dropdown:"pf-c-dropdown",dropdownGroup:"pf-c-dropdown__group",dropdownGroupTitle:"pf-c-dropdown__group-title",dropdownMenu:"pf-c-dropdown__menu",dropdownMenuItem:"pf-c-dropdown__menu-item",dropdownMenuItemDescription:"pf-c-dropdown__menu-item-description",dropdownMenuItemIcon:"pf-c-dropdown__menu-item-icon",dropdownMenuItemMain:"pf-c-dropdown__menu-item-main",dropdownToggle:"pf-c-dropdown__toggle",dropdownToggleButton:"pf-c-dropdown__toggle-button",dropdownToggleCheck:"pf-c-dropdown__toggle-check",dropdownToggleIcon:"pf-c-dropdown__toggle-icon",dropdownToggleImage:"pf-c-dropdown__toggle-image",dropdownToggleText:"pf-c-dropdown__toggle-text",menu:"pf-c-menu",modifiers:{fullHeight:"pf-m-full-height",expanded:"pf-m-expanded",action:"pf-m-action",disabled:"pf-m-disabled",plain:"pf-m-plain",text:"pf-m-text",splitButton:"pf-m-split-button",primary:"pf-m-primary",active:"pf-m-active",secondary:"pf-m-secondary",top:"pf-m-top",alignRight:"pf-m-align-right",alignLeft:"pf-m-align-left",alignRightOnSm:"pf-m-align-right-on-sm",alignLeftOnSm:"pf-m-align-left-on-sm",alignRightOnMd:"pf-m-align-right-on-md",alignLeftOnMd:"pf-m-align-left-on-md",alignRightOnLg:"pf-m-align-right-on-lg",alignLeftOnLg:"pf-m-align-left-on-lg",alignRightOnXl:"pf-m-align-right-on-xl",alignLeftOnXl:"pf-m-align-left-on-xl",alignRightOn_2xl:"pf-m-align-right-on-2xl",alignLeftOn_2xl:"pf-m-align-left-on-2xl",ariaDisabled:"pf-m-aria-disabled",icon:"pf-m-icon",description:"pf-m-description"}};!function(e){e.right="right",e.left="left"}(Jt||(Jt={})),function(e){e.up="up",e.down="down"}(Qt||(Qt={}));const tn=o.createContext({onSelect:e=>{},id:"",toggleIndicatorClass:"",toggleIconClass:"",toggleTextClass:"",menuClass:"",itemClass:"",toggleClass:"",baseClass:"",baseComponent:"div",sectionClass:"",sectionTitleClass:"",sectionComponent:"section",disabledClass:"",plainTextClass:"",menuComponent:"ul"}),nn=o.createContext({keyHandler:null,sendRef:null});class rn extends o.Component{constructor(){super(...arguments),this.refsCollection=[],this.componentWillUnmount=()=>{document.removeEventListener("keydown",this.onKeyDown)},this.onKeyDown=e=>{if(!this.props.isOpen||!Array.from(document.activeElement.classList).find((e=>rn.validToggleClasses.concat(this.context.toggleClass).includes(e))))return;const t=this.refsCollection;if("ArrowDown"===e.key){const n=t.find((e=>e&&e[0]&&!e[0].hasAttribute("disabled")));rn.focusFirstRef(n),e.stopPropagation()}else if("ArrowUp"===e.key){const n=t.length,r=t.slice(n-1,n),o=r&&r[0];rn.focusFirstRef(o),e.stopPropagation()}},this.childKeyHandler=(e,t,n,r=!1)=>{q(e,t,n,this.refsCollection,this.props.isGrouped?this.refsCollection:o.Children.toArray(this.props.children),r)},this.sendRef=(e,t,n,r)=>{this.refsCollection[e]=[],t.map(((t,n)=>{t?t.getAttribute?this.refsCollection[e][n]=r?null:t:this.refsCollection[e][n]=a.findDOMNode(t):this.refsCollection[e][n]=null}))}}componentDidMount(){document.addEventListener("keydown",this.onKeyDown);const{autoFocus:e}=this.props;if(e){const e=this.refsCollection.find((e=>e&&e[0]&&!e[0].hasAttribute("disabled"))),t=e&&e[0];t&&t.focus&&setTimeout((()=>t.focus()))}}shouldComponentUpdate(){return this.refsCollection=[],!0}extendChildren(){const{children:e,isGrouped:t}=this.props;if(t){let t=0;return o.Children.map(e,(e=>{const n=e,r={};return n.props&&n.props.children&&(Array.isArray(n.props.children)?r.children=o.Children.map(n.props.children,(e=>o.cloneElement(e,{index:t++}))):r.children=o.cloneElement(n.props.children,{index:t++})),o.cloneElement(n,r)}))}return o.Children.map(e,((e,t)=>o.cloneElement(e,{index:t})))}render(){const e=this.props,{className:t,isOpen:n,position:r,children:a,component:i,isGrouped:c,setMenuComponentRef:d,openedOnEnter:p,alignments:u}=e,f=s(e,["className","isOpen","position","children","component","isGrouped","setMenuComponentRef","openedOnEnter","alignments"]);return o.createElement(nn.Provider,{value:{keyHandler:this.childKeyHandler,sendRef:this.sendRef}},"div"===i?o.createElement(tn.Consumer,null,(({onSelect:e,menuClass:i})=>o.createElement("div",{className:l(i,r===Jt.right&&en.modifiers.alignRight,Y(u,en,"align-"),t),hidden:!n,onClick:t=>e&&e(t),ref:d},a))):c&&o.createElement(tn.Consumer,null,(({menuClass:e,menuComponent:a})=>{const i=a||"div";return o.createElement(i,Object.assign({},f,{className:l(e,r===Jt.right&&en.modifiers.alignRight,Y(u,en,"align-"),t),hidden:!n,role:"menu",ref:d}),this.extendChildren())}))||o.createElement(tn.Consumer,null,(({menuClass:e,menuComponent:a})=>{const s=a||i;return o.createElement(s,Object.assign({},f,{className:l(e,r===Jt.right&&en.modifiers.alignRight,Y(u,en,"align-"),t),hidden:!n,role:"menu",ref:d}),this.extendChildren())})))}}rn.displayName="DropdownMenu",rn.defaultProps={className:"",isOpen:!0,openedOnEnter:!1,autoFocus:!0,position:Jt.left,component:"ul",isGrouped:!1,setMenuComponentRef:null},rn.validToggleClasses=[en.dropdownToggle,en.dropdownToggleButton],rn.focusFirstRef=e=>{e&&e[0]&&e[0].focus&&setTimeout((()=>e[0].focus()))},rn.contextType=tn;class on extends o.Component{constructor(e){super(e),this.openedOnEnter=!1,this.baseComponentRef=o.createRef(),this.menuComponentRef=o.createRef(),this.onEnter=()=>{this.openedOnEnter=!0},this.setMenuComponentRef=e=>{this.menuComponentRef=e},this.getMenuComponentRef=()=>this.menuComponentRef,e.dropdownItems&&e.dropdownItems.length>0&&e.children&&console.error("Children and dropdownItems props have been provided. Only the dropdownItems prop items will be rendered")}componentDidUpdate(){this.props.isOpen||(this.openedOnEnter=!1)}render(){const e=this.props,{children:t,className:n,direction:r,dropdownItems:a,isOpen:i,isPlain:c,isText:d,isGrouped:p,isFullHeight:u,onSelect:f,position:m,toggle:h,autoFocus:b,menuAppendTo:g}=e,v=s(e,["children","className","direction","dropdownItems","isOpen","isPlain","isText","isGrouped","isFullHeight","onSelect","position","toggle","autoFocus","menuAppendTo"]),y=h.props.id||"pf-dropdown-toggle-id-"+on.currentId++;let w,x,C=!1;a&&a.length>0?(w="ul",x=a,C=!0):(w="div",x=o.Children.toArray(t));const O=this.openedOnEnter;return o.createElement(tn.Consumer,null,(({baseClass:e,baseComponent:t,id:a,ouiaId:s,ouiaComponentType:f,ouiaSafe:E,alignments:N})=>{const k=t,T=o.createElement(rn,{setMenuComponentRef:this.setMenuComponentRef,component:w,isOpen:i,position:m,"aria-labelledby":a?`${a}-toggle`:y,isGrouped:p,autoFocus:O&&b,alignments:N},x),S=o.createElement("div",{className:l(e,r===Qt.up&&en.modifiers.top,m===Jt.right&&en.modifiers.alignRight,i&&en.modifiers.expanded,n)},i&&T),_=o.createElement(k,Object.assign({},v,{className:l(e,r===Qt.up&&en.modifiers.top,m===Jt.right&&en.modifiers.alignRight,i&&en.modifiers.expanded,u&&en.modifiers.fullHeight,n),ref:this.baseComponentRef},z(f,s,E)),o.Children.map(h,(e=>o.cloneElement(e,{parentRef:this.baseComponentRef,getMenuRef:this.getMenuComponentRef,isOpen:i,id:y,isPlain:c,isText:d,"aria-haspopup":C,onEnter:()=>{this.onEnter(),e.props.onEnter&&e.props.onEnter()}}))),"inline"===g&&i&&T);return"inline"===g?_:o.createElement(vt,{trigger:_,popper:S,direction:r,position:m,appendTo:"parent"===g?(()=>this.baseComponentRef&&this.baseComponentRef.current?this.baseComponentRef.current.parentElement:null)():g,isVisible:i})}))}}on.displayName="DropdownWithContext",on.currentId=0,on.defaultProps={className:"",dropdownItems:[],isOpen:!1,isPlain:!1,isText:!1,isGrouped:!1,position:Jt.left,direction:Qt.down,onSelect:()=>{},autoFocus:!0,menuAppendTo:"inline"};const an=e=>{var{onSelect:t,ref:n,ouiaId:r,ouiaSafe:a,alignments:i,contextProps:l}=e,c=s(e,["onSelect","ref","ouiaId","ouiaSafe","alignments","contextProps"]);return o.createElement(tn.Provider,{value:Object.assign({onSelect:e=>t&&t(e),toggleTextClass:en.dropdownToggleText,toggleIconClass:en.dropdownToggleImage,toggleIndicatorClass:en.dropdownToggleIcon,menuClass:en.dropdownMenu,itemClass:en.dropdownMenuItem,toggleClass:en.dropdownToggle,baseClass:en.dropdown,baseComponent:"div",sectionClass:en.dropdownGroup,sectionTitleClass:en.dropdownGroupTitle,sectionComponent:"section",disabledClass:en.modifiers.disabled,plainTextClass:en.modifiers.text,ouiaId:W(an.displayName,r),ouiaSafe:a,ouiaComponentType:an.displayName,alignments:i},l)},o.createElement(on,Object.assign({},c)))};an.displayName="Dropdown";class sn extends o.Component{constructor(){super(...arguments),this.ref=o.createRef(),this.additionalRef=o.createRef(),this.getInnerNode=e=>e&&e.childNodes&&e.childNodes.length?e.childNodes[0]:e,this.onKeyDown=e=>{const t=e.target===this.ref.current?0:1;this.props.customChild||e.preventDefault(),"ArrowUp"===e.key?(this.props.context.keyHandler(this.props.index,t,u),e.stopPropagation()):"ArrowDown"===e.key?(this.props.context.keyHandler(this.props.index,t,f),e.stopPropagation()):"ArrowRight"===e.key?(this.props.context.keyHandler(this.props.index,t,m),e.stopPropagation()):"ArrowLeft"===e.key?(this.props.context.keyHandler(this.props.index,t,h),e.stopPropagation()):"Enter"!==e.key&&" "!==e.key||(e.target.click(),this.props.enterTriggersArrowDown&&this.props.context.keyHandler(this.props.index,t,f))},this.componentRef=e=>{this.ref.current=e;const{component:t}=this.props,n=t.ref;n&&("function"==typeof n?n(e):n.current=e)}}componentDidMount(){const{context:e,index:t,isDisabled:n,role:r,customChild:o,autoFocus:a}=this.props,i=o?this.getInnerNode(this.ref.current):this.ref.current;e.sendRef(t,[i,o?i:this.additionalRef.current],n,"separator"===r),a&&setTimeout((()=>i.focus()))}componentDidUpdate(){const{context:e,index:t,isDisabled:n,role:r,customChild:o}=this.props,a=o?this.getInnerNode(this.ref.current):this.ref.current;e.sendRef(t,[a,o?a:this.additionalRef.current],n,"separator"===r)}extendAdditionalChildRef(){const{additionalChild:e}=this.props;return o.cloneElement(e,{ref:this.additionalRef})}render(){const e=this.props,{className:t,children:n,isHovered:r,context:a,onClick:i,component:c,role:d,isDisabled:p,isAriaDisabled:u,isPlainText:f,index:m,href:h,tooltip:b,tooltipProps:g,id:v,componentID:y,listItemClassName:w,additionalChild:x,customChild:C,enterTriggersArrowDown:O,icon:E,autoFocus:N,styleChildren:k,description:T,inoperableEvents:S}=e,_=s(e,["className","children","isHovered","context","onClick","component","role","isDisabled","isAriaDisabled","isPlainText","index","href","tooltip","tooltipProps","id","componentID","listItemClassName","additionalChild","customChild","enterTriggersArrowDown","icon","autoFocus","styleChildren","description","inoperableEvents"]);let R=l(E&&en.modifiers.icon,u&&en.modifiers.ariaDisabled,t);"a"===c?_["aria-disabled"]=p||u:"button"===c&&(_["aria-disabled"]=p||u,_.type=_.type||"button");const I=e=>o.cloneElement(e,Object.assign(Object.assign({},k&&{className:l(e.props.className,R)}),"separator"!==this.props.role&&{ref:this.componentRef})),D=e=>{const t=e,r=T?o.createElement(o.Fragment,null,o.createElement("div",{className:en.dropdownMenuItemMain},E&&o.createElement("span",{className:l(en.dropdownMenuItemIcon)},E),n),o.createElement("div",{className:en.dropdownMenuItemDescription},T)):o.createElement(o.Fragment,null,E&&o.createElement("span",{className:l(en.dropdownMenuItemIcon)},E),n);return o.createElement(t,Object.assign({},_,p||u?S.reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:e=>{e.preventDefault()}})),{}):null,{href:h,ref:this.ref,className:R,id:y}),r)};return o.createElement(tn.Consumer,null,(({onSelect:e,itemClass:t,disabledClass:n,plainTextClass:r})=>{return"separator"!==this.props.role&&(R=l(R,p&&n,f&&r,t,T&&en.modifiers.description)),C?o.cloneElement(C,{ref:this.ref,onKeyDown:this.onKeyDown}):o.createElement("li",{className:w||null,role:d,onKeyDown:this.onKeyDown,onClick:t=>{p||u||(i(t),e(t))},id:v},(a=o.isValidElement(c)?I(c):D(c),b?o.createElement(Yt,Object.assign({content:b},g),a):a),x&&this.extendAdditionalChildRef());var a}))}}sn.displayName="InternalDropdownItem",sn.defaultProps={className:"",isHovered:!1,component:"a",role:"none",isDisabled:!1,isPlainText:!1,tooltipProps:{},onClick:e=>{},index:-1,context:{keyHandler:()=>{},sendRef:()=>{}},enterTriggersArrowDown:!1,icon:null,styleChildren:!0,description:null,inoperableEvents:["onClick","onKeyPress"]};const ln=e=>{var{children:t,className:n,component:r="a",isDisabled:a=!1,isAriaDisabled:i=!1,isPlainText:l=!1,isHovered:c=!1,href:d,tooltip:p,tooltipProps:u={},listItemClassName:f,onClick:m,ref:h,additionalChild:b,customChild:g,tabIndex:v=-1,icon:y=null,autoFocus:w,description:x=null,styleChildren:C,ouiaId:O,ouiaSafe:E}=e,N=s(e,["children","className","component","isDisabled","isAriaDisabled","isPlainText","isHovered","href","tooltip","tooltipProps","listItemClassName","onClick","ref","additionalChild","customChild","tabIndex","icon","autoFocus","description","styleChildren","ouiaId","ouiaSafe"]);const k=$(ln.displayName,O,E);return o.createElement(nn.Consumer,null,(e=>o.createElement(sn,Object.assign({context:e,role:"menuitem",tabIndex:v,className:n,component:r,isDisabled:a,isAriaDisabled:i,isPlainText:l,isHovered:c,href:d,tooltip:p,tooltipProps:u,listItemClassName:f,onClick:m,additionalChild:b,customChild:g,icon:y,autoFocus:w,styleChildren:C,description:x},k,N),t)))};ln.displayName="DropdownItem";var cn,dn={divider:"pf-c-divider",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",vertical:"pf-m-vertical",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",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",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",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",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",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"}};!function(e){e.hr="hr",e.li="li",e.div="div"}(cn||(cn={}));const pn=e=>{var{className:t,component:n=cn.hr,isVertical:r=!1,inset:a}=e,i=s(e,["className","component","isVertical","inset"]);const c=n;return o.createElement(c,Object.assign({className:l(dn.divider,r&&dn.modifiers.vertical,Y(a,dn),t)},"hr"!==n&&{role:"separator"},i))};pn.displayName="Divider";const un=e=>{var{className:t="",ref:n,ouiaId:r,ouiaSafe:a}=e,i=s(e,["className","ref","ouiaId","ouiaSafe"]);const l=$(un.displayName,r,a);return o.createElement(nn.Consumer,null,(e=>o.createElement(sn,Object.assign({},i,{context:e,component:o.createElement(pn,{component:cn.div}),className:t,role:"separator"},l))))};un.displayName="DropdownSeparator";var fn=At({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});const mn={default:"",primary:en.modifiers.primary,secondary:en.modifiers.secondary};class hn extends o.Component{constructor(){super(...arguments),this.buttonRef=o.createRef(),this.componentDidMount=()=>{document.addEventListener("click",this.onDocClick),document.addEventListener("touchstart",this.onDocClick),document.addEventListener("keydown",this.onEscPress)},this.componentWillUnmount=()=>{document.removeEventListener("click",this.onDocClick),document.removeEventListener("touchstart",this.onDocClick),document.removeEventListener("keydown",this.onEscPress)},this.onDocClick=e=>{const{isOpen:t,parentRef:n,onToggle:r,getMenuRef:o}=this.props,a=o&&o(),i=n&&n.current&&n.current.contains(e.target),s=a&&a.contains&&a.contains(e.target);!t||i||s||r(!1,e)},this.onEscPress=e=>{const{parentRef:t,getMenuRef:n}=this.props,r=e.keyCode||e.which,o=n&&n(),a=t&&t.current&&t.current.contains(e.target),i=o&&o.contains&&o.contains(e.target);!this.props.isOpen||r!==d&&"Tab"!==e.key||!a&&!i||(this.props.onToggle(!1,e),this.buttonRef.current.focus())},this.onKeyDown=e=>{("Tab"!==e.key||this.props.isOpen)&&("Tab"!==e.key&&"Enter"!==e.key&&" "!==e.key||!this.props.isOpen?"Enter"!==e.key&&" "!==e.key||this.props.isOpen||(this.props.bubbleEvent||e.stopPropagation(),e.preventDefault(),this.props.onToggle(!this.props.isOpen,e),this.props.onEnter()):(this.props.bubbleEvent||e.stopPropagation(),e.preventDefault(),this.props.onToggle(!this.props.isOpen,e)))}}render(){const e=this.props,{className:t,children:n,isOpen:r,isDisabled:a,isPlain:i,isText:c,isPrimary:d,isSplitButton:p,toggleVariant:u,onToggle:f,"aria-haspopup":m,isActive:h,bubbleEvent:b,onEnter:g,parentRef:v,getMenuRef:y,id:w,type:x}=e,C=s(e,["className","children","isOpen","isDisabled","isPlain","isText","isPrimary","isSplitButton","toggleVariant","onToggle","aria-haspopup","isActive","bubbleEvent","onEnter","parentRef","getMenuRef","id","type"]);return o.createElement(tn.Consumer,null,(({toggleClass:e})=>o.createElement("button",Object.assign({},C,{id:w,ref:this.buttonRef,className:l(p?en.dropdownToggleButton:e||en.dropdownToggle,h&&en.modifiers.active,i&&en.modifiers.plain,c&&en.modifiers.text,d&&en.modifiers.primary,mn[u],t),type:x||"button",onClick:e=>f(!r,e),"aria-expanded":r,"aria-haspopup":m,onKeyDown:e=>this.onKeyDown(e),disabled:a}),n)))}}hn.displayName="Toggle",hn.defaultProps={className:"",isOpen:!1,isActive:!1,isDisabled:!1,isPlain:!1,isText:!1,isPrimary:!1,isSplitButton:!1,onToggle:()=>{},onEnter:()=>{},bubbleEvent:!1};var bn="pf-c-badge",gn={read:"pf-m-read",unread:"pf-m-unread"};var vn=At({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});const yn=e=>{var{id:t="",children:n=null,className:r="",isOpen:a=!1,"aria-label":i="Actions",parentRef:l=null,getMenuRef:c=null,isActive:d=!1,isPlain:p=!1,isDisabled:u=!1,bubbleEvent:f=!1,onToggle:m=(()=>{}),ref:h}=e,b=s(e,["id","children","className","isOpen","aria-label","parentRef","getMenuRef","isActive","isPlain","isDisabled","bubbleEvent","onToggle","ref"]);return o.createElement(hn,Object.assign({id:t,className:r,isOpen:a,"aria-label":i,parentRef:l,getMenuRef:c,isActive:d,isPlain:p,isDisabled:u,onToggle:m,bubbleEvent:f},b),o.createElement(vn,null))};yn.displayName="KebabToggle";const wn=e=>{var t=s(e,["children"]);return o.createElement(un,Object.assign({},t))};wn.displayName="ApplicationLauncherSeparator";var xn=At({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});var Cn;!function(e){e.text="text",e.date="date",e.datetimeLocal="datetime-local",e.email="email",e.month="month",e.number="number",e.password="password",e.search="search",e.tel="tel",e.time="time",e.url="url"}(Cn||(Cn={}));class On extends o.Component{constructor(e){super(e),this.inputRef=o.createRef(),this.observer=()=>{},this.handleChange=e=>{this.props.onChange&&this.props.onChange(e.currentTarget.value,e)},this.handleResize=()=>{const e=this.props.innerRef||this.inputRef;e&&e.current&&te(e.current,String(this.props.value))},this.restoreText=()=>{const e=this.props.innerRef||this.inputRef;e.current.value=String(this.props.value),e.current.scrollLeft=e.current.scrollWidth},this.onFocus=e=>{const{isLeftTruncated:t,onFocus:n}=this.props;t&&this.restoreText(),n&&n(e)},this.onBlur=e=>{const{isLeftTruncated:t,onBlur:n}=this.props;t&&this.handleResize(),n&&n(e)},e.id||e["aria-label"]||e["aria-labelledby"]||console.error("Text input:","Text input requires either an id or aria-label to be specified"),this.state={ouiaStateId:K(On.displayName)}}componentDidMount(){if(this.props.isLeftTruncated){const e=this.props.innerRef||this.inputRef;this.observer=((e,t)=>{let n;if(Z){const{ResizeObserver:r}=window;if(e&&r){const o=new r((e=>{window.requestAnimationFrame((()=>{Array.isArray(e)&&e.length>0&&t()}))}));o.observe(e),n=()=>o.unobserve(e)}else window.addEventListener("resize",t),n=()=>window.removeEventListener("resize",t)}return()=>{n&&n()}})(e.current,this.handleResize),this.handleResize()}}componentWillUnmount(){this.props.isLeftTruncated&&this.observer()}render(){const e=this.props,{innerRef:t,className:n,type:r,value:a,validated:i,onChange:c,onFocus:d,onBlur:p,isLeftTruncated:u,isReadOnly:f,isRequired:m,isDisabled:h,iconVariant:g,customIconUrl:v,customIconDimensions:y,ouiaId:w,ouiaSafe:x}=e,C=s(e,["innerRef","className","type","value","validated","onChange","onFocus","onBlur","isLeftTruncated","isReadOnly","isRequired","isDisabled","iconVariant","customIconUrl","customIconDimensions","ouiaId","ouiaSafe"]),O={};return v&&(O.backgroundImage=`url('${v}')`),y&&(O.backgroundSize=y),o.createElement("input",Object.assign({},C,{onFocus:this.onFocus,onBlur:this.onBlur,className:l(Zt.formControl,i===b.success&&Zt.modifiers.success,i===b.warning&&Zt.modifiers.warning,(g&&"search"!==g||v)&&Zt.modifiers.icon,g&&Zt.modifiers[g],n),onChange:this.handleChange,type:r,value:a,"aria-invalid":C["aria-invalid"]?C["aria-invalid"]:i===b.error,required:m,disabled:h,readOnly:f,ref:t||this.inputRef},(v||y)&&{style:O},z(En.displayName,void 0!==w?w:this.state.ouiaStateId,x)))}}On.displayName="TextInputBase",On.defaultProps={"aria-label":null,className:"",isRequired:!1,validated:"default",isDisabled:!1,isReadOnly:!1,type:Cn.text,isLeftTruncated:!1,onChange:()=>{},ouiaSafe:!0};const En=o.forwardRef(((e,t)=>o.createElement(On,Object.assign({},e,{innerRef:t}))));En.displayName="TextInput";var Nn={invalid:"pf-m-invalid",success:"pf-m-success",warning:"pf-m-warning",disabled:"pf-m-disabled",active:"pf-m-active",expanded:"pf-m-expanded",plain:"pf-m-plain",typeahead:"pf-m-typeahead",placeholder:"pf-m-placeholder",top:"pf-m-top",alignRight:"pf-m-align-right",favorite:"pf-m-favorite",favoriteAction:"pf-m-favorite-action",focus:"pf-m-focus",link:"pf-m-link",action:"pf-m-action",selected:"pf-m-selected",description:"pf-m-description",load:"pf-m-load",loading:"pf-m-loading"},kn="pf-c-select",Tn="pf-c-select__list-item",Sn="pf-c-select__menu",_n="pf-c-select__menu-fieldset",Rn="pf-c-select__menu-footer",In="pf-c-select__menu-group",Dn="pf-c-select__menu-group-title",jn="pf-c-select__menu-item",Pn="pf-c-select__menu-item-action-icon",Ln="pf-c-select__menu-item-count",An="pf-c-select__menu-item-description",Fn="pf-c-select__menu-item-icon",Mn="pf-c-select__menu-item-main",Bn="pf-c-select__menu-item-row",Vn="pf-c-select__menu-item-text",Hn="pf-c-select__menu-search",zn="pf-c-select__menu-wrapper",$n="pf-c-select__toggle",Wn="pf-c-select__toggle-arrow",Kn="pf-c-select__toggle-badge",Gn="pf-c-select__toggle-button",Un="pf-c-select__toggle-clear",qn="pf-c-select__toggle-icon",Xn="pf-c-select__toggle-status-icon",Yn="pf-c-select__toggle-text",Jn="pf-c-select__toggle-typeahead",Qn="pf-c-select__toggle-wrapper";var Zn=At({name:"TimesCircleIcon",height:512,width:512,svgPath:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z",yOffset:0,xOffset:0}),er="pf-c-form__fieldset",tr="pf-c-form__helper-text",nr={horizontal:"pf-m-horizontal",alignRight:"pf-m-align-right",noPaddingTop:"pf-m-no-padding-top",horizontalOnXs:"pf-m-horizontal-on-xs",horizontalOnSm:"pf-m-horizontal-on-sm",horizontalOnMd:"pf-m-horizontal-on-md",horizontalOnLg:"pf-m-horizontal-on-lg",horizontalOnXl:"pf-m-horizontal-on-xl",horizontalOn_2xl:"pf-m-horizontal-on-2xl",limitWidth:"pf-m-limit-width",action:"pf-m-action",info:"pf-m-info",disabled:"pf-m-disabled",inline:"pf-m-inline",stack:"pf-m-stack",error:"pf-m-error",success:"pf-m-success",warning:"pf-m-warning",inactive:"pf-m-inactive",hidden:"pf-m-hidden",expanded:"pf-m-expanded"},rr="pf-c-check",or="pf-c-check__body",ar="pf-c-check__description",ir="pf-c-check__input",sr="pf-c-check__label",lr={standalone:"pf-m-standalone",disabled:"pf-m-disabled"};var cr=At({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});const dr=o.createContext(null);dr.Provider;const pr=dr.Consumer;var ur,fr,mr;!function(e){e.single="single",e.checkbox="checkbox",e.typeahead="typeahead",e.typeaheadMulti="typeaheadmulti"}(ur||(ur={})),function(e){e.right="right",e.left="left"}(fr||(fr={})),function(e){e.up="up",e.down="down"}(mr||(mr={}));const hr="Tab",br=" ",gr="Escape",vr="Enter",yr="ArrowUp",wr="ArrowDown",xr="ArrowLeft",Cr="ArrowRight";class Or extends o.Component{constructor(){super(...arguments),this.ref=o.createRef(),this.liRef=o.createRef(),this.favoriteRef=o.createRef(),this.onKeyDown=(e,t,n,r)=>{const{index:o,keyHandler:a,isLastOptionBeforeFooter:i}=this.props;let s=!1;void 0!==i&&(s=i(o)),e.key===hr&&(r&&!s?(e.shiftKey?a(o,t,"up"):a(o,t,"down"),e.stopPropagation()):a(o,t,"tab")),e.preventDefault(),e.key===yr?a(o,t,"up"):e.key===wr?a(o,t,"down"):e.key===xr?a(o,t,"left"):e.key===Cr?a(o,t,"right"):e.key===vr&&(void 0!==n?n():this.ref.current.click())}}componentDidMount(){this.props.sendRef(this.props.isDisabled?null:this.ref.current,this.props.isDisabled?null:this.favoriteRef.current,this.props.isDisabled?null:this.liRef.current,this.props.index)}componentDidUpdate(){this.props.sendRef(this.props.isDisabled?null:this.ref.current,this.props.isDisabled?null:this.favoriteRef.current,this.props.isDisabled?null:this.liRef.current,this.props.index)}render(){const e=this.props,{children:t,className:n,id:r,description:a,itemCount:i,value:c,onClick:d,isDisabled:p,isPlaceholder:u,isNoResultsOption:f,isSelected:m,isChecked:h,isFocused:b,sendRef:g,keyHandler:v,index:y,component:w,inputId:x,isFavorite:C,ariaIsFavoriteLabel:O="starred",ariaIsNotFavoriteLabel:E="not starred",isLoad:N,isLoading:k,setViewMoreNextIndex:T,isLastOptionBeforeFooter:S}=e,_=s(e,["children","className","id","description","itemCount","value","onClick","isDisabled","isPlaceholder","isNoResultsOption","isSelected","isChecked","isFocused","sendRef","keyHandler","index","component","inputId","isFavorite","ariaIsFavoriteLabel","ariaIsNotFavoriteLabel","isLoad","isLoading","setViewMoreNextIndex","isLastOptionBeforeFooter"]),R=w;r||null===C||console.error("Please provide an id to use the favorites feature.");const I=r||G("select-option"),D=e=>o.createElement("button",{className:l(jn,Nn.action,Nn.favoriteAction),"aria-label":C?O:E,onClick:()=>{e(I.replace("favorite-",""),C)},onKeyDown:t=>{this.onKeyDown(t,1,(()=>e(I.replace("favorite-",""))))},ref:this.favoriteRef},o.createElement("span",{className:l(Pn)},o.createElement(xn,null))),j=i?o.createElement("span",{className:l(Bn)},o.createElement("span",{className:l(Vn)},t||c&&c.toString&&c.toString()),o.createElement("span",{className:l(Ln)},i)):t||c.toString(),P=e=>{T(),d(e)};return o.createElement(pr,null,(({onSelect:e,onClose:i,variant:s,inputIdPrefix:g,onFavorite:v})=>o.createElement(o.Fragment,null,s!==ur.checkbox&&o.createElement("li",{id:I,role:"presentation",className:l(k&&Tn,!N&&!k&&zn,C&&Nn.favorite,b&&Nn.focus,k&&Nn.loading),ref:this.liRef},k&&t,!k&&o.createElement(o.Fragment,null,o.createElement(R,Object.assign({},_,{className:l(jn,N&&Nn.load,m&&Nn.selected,p&&Nn.disabled,a&&Nn.description,null!==C&&Nn.link,n),onClick:t=>{N?(P(t),t.stopPropagation()):p||k||(d(t),e(t,c,u),i())},role:"option","aria-selected":m||null,ref:this.ref,onKeyDown:e=>{this.onKeyDown(e,0)},type:"button"}),a&&o.createElement(o.Fragment,null,o.createElement("span",{className:l(Mn)},j,m&&o.createElement("span",{className:l(Fn)},o.createElement(cr,{"aria-hidden":!0}))),o.createElement("span",{className:l(An)},a)),!a&&o.createElement(o.Fragment,null,j,m&&o.createElement("span",{className:l(Fn)},o.createElement(cr,{"aria-hidden":!0})))),null!==C&&r&&D(v))),s===ur.checkbox&&N&&o.createElement("button",{className:l(jn,Nn.load,b&&Nn.focus,n),onKeyDown:e=>{this.onKeyDown(e,0,void 0,!0)},onClick:e=>{P(e),e.stopPropagation()},ref:this.ref},t||c&&c.toString&&c.toString()),s===ur.checkbox&&k&&o.createElement("div",{className:l(Tn,k&&Nn.loading,n)},t),s===ur.checkbox&&!f&&!k&&!N&&o.createElement("label",Object.assign({},_,{className:l(rr,jn,p&&Nn.disabled,a&&Nn.description,n),onKeyDown:e=>{this.onKeyDown(e,0,void 0,!0)}}),o.createElement("input",{id:x||`${g}-${c.toString()}`,className:l(ir),type:"checkbox",onChange:t=>{p||(d(t),e(t,c))},ref:this.ref,checked:h||!1,disabled:p}),o.createElement("span",{className:l(sr,p&&Nn.disabled)},j),a&&o.createElement("div",{className:l(ar)},a)),s===ur.checkbox&&f&&!k&&!N&&o.createElement("div",null,o.createElement(R,Object.assign({},_,{className:l(jn,m&&Nn.selected,p&&Nn.disabled,n),role:"option","aria-selected":m||null,ref:this.ref,onKeyDown:e=>{this.onKeyDown(e,0,void 0,!0)},type:"button"}),j)))))}}Or.displayName="SelectOption",Or.defaultProps={className:"",value:"",index:0,isDisabled:!1,isPlaceholder:!1,isSelected:!1,isChecked:!1,isNoResultsOption:!1,component:"button",onClick:()=>{},sendRef:()=>{},keyHandler:()=>{},inputId:"",isFavorite:null,isLoad:!1,isLoading:!1,setViewMoreNextIndex:()=>{},isLastOptionBeforeFooter:()=>!1};const Er=e=>{var{children:t=[],className:n="",label:r="",titleId:a=""}=e,i=s(e,["children","className","label","titleId"]);return o.createElement(pr,null,(({variant:e})=>o.createElement("div",Object.assign({},i,{className:l(In,n)}),o.createElement("div",{className:l(Dn),id:a,"aria-hidden":!0},r),e===ur.checkbox?t:o.createElement("ul",{role:"listbox"},t))))};Er.displayName="SelectGroup";class Nr extends o.Component{extendChildren(e){const{children:t,hasInlineFilter:n,isGrouped:r}=this.props,a=t;let i=n?1:0;return r?o.Children.map(a,(t=>t.type===Er?o.cloneElement(t,{titleId:t.props.label&&t.props.label.replace(/\W/g,"-"),children:o.Children.map(t.props.children,(t=>this.cloneOption(t,i++,e)))}):this.cloneOption(t,i++,e))):o.Children.map(a,(t=>this.cloneOption(t,i++,e)))}cloneOption(e,t,n){const{selected:r,sendRef:a,keyHandler:i}=this.props,s=this.checkForValue(e.props.value,r);return e.type===pn?e:o.cloneElement(e,{inputId:`${n}-${t}`,isSelected:s,sendRef:a,keyHandler:i,index:t})}checkForValue(e,t){if(!t||!e)return!1;const n="string"!=typeof e&&e.toString&&e.compareTo;return Array.isArray(t)?n?t.some((t=>t.compareTo(e))):t.includes(e):n?t.compareTo(e):t===e}extendCheckboxChildren(e){const{isGrouped:t,checked:n,sendRef:r,keyHandler:a,hasInlineFilter:i,isLastOptionBeforeFooter:s}=this.props;let c=i?1:0;return t?o.Children.map(e,(e=>e.type===Or||e.type===pn?e:o.cloneElement(e,{titleId:e.props.label&&e.props.label.replace(/\W/g,"-"),children:e.props.children?o.createElement("fieldset",{"aria-labelledby":e.props.label&&e.props.label.replace(/\W/g,"-"),className:l(_n)},o.Children.map(e.props.children,(e=>e.type===pn?e:o.cloneElement(e,{isChecked:this.checkForValue(e.props.value,n),sendRef:r,keyHandler:a,index:c++})))):null}))):o.Children.map(e,(e=>e.type===pn?e:o.cloneElement(e,{isChecked:this.checkForValue(e.props.value,n),sendRef:r,keyHandler:a,index:c++,isLastOptionBeforeFooter:s})))}renderSelectMenu({variant:e,inputIdPrefix:t}){const n=this.props,{children:r,isCustomContent:a,className:i,isExpanded:c,openedOnEnter:d,selected:p,checked:u,isGrouped:f,position:m,sendRef:h,keyHandler:b,maxHeight:g,noResultsFoundText:v,createText:y,"aria-label":w,"aria-labelledby":x,hasInlineFilter:C,innerRef:O,footer:E,footerRef:N,isLastOptionBeforeFooter:k}=n,T=s(n,["children","isCustomContent","className","isExpanded","openedOnEnter","selected","checked","isGrouped","position","sendRef","keyHandler","maxHeight","noResultsFoundText","createText","aria-label","aria-labelledby","hasInlineFilter","innerRef","footer","footerRef","isLastOptionBeforeFooter"]);let S="div";const _=Object.assign({ref:O,className:l(E?"pf-c-select__menu-list":Sn,m===fr.right&&Nn.alignRight,i)},g&&{style:{maxHeight:g,overflow:"auto"}}),R=()=>e===ur.checkbox?this.extendCheckboxChildren(r):this.extendChildren(t);return a?_.children=r:C?0===o.Children.count(r)?_.children=o.createElement("fieldset",{className:l(_n)}):_.children=o.createElement("fieldset",{"aria-label":w,"aria-labelledby":!w&&x||null,className:l(er)},r.shift(),R()):(_.children=R(),f||(S="ul",_.role="listbox",_["aria-label"]=w,_["aria-labelledby"]=!w&&x||null)),o.createElement(o.Fragment,null,o.createElement(S,Object.assign({},_,T)),E&&o.createElement("div",{className:l(Rn),ref:N},E))}render(){return o.createElement(pr,null,(e=>this.renderSelectMenu(e)))}}Nr.displayName="SelectMenu",Nr.defaultProps={className:"",isExpanded:!1,isGrouped:!1,openedOnEnter:!1,selected:"",maxHeight:"",position:fr.left,sendRef:()=>{},keyHandler:()=>{},isCustomContent:!1,hasInlineFilter:!1,isLastOptionBeforeFooter:()=>{}};const kr=o.forwardRef(((e,t)=>o.createElement(Nr,Object.assign({innerRef:t},e),e.children)));class Tr extends o.Component{constructor(e){super(e),this.onDocClick=e=>{const{parentRef:t,menuRef:n,isOpen:r,onToggle:o,onClose:a}=this.props,i=t&&t.current&&t.current.contains(e.target),s=n&&n.current&&n.current.contains&&n.current.contains(e.target);!r||i||s||(o(!1),a())},this.findTabbableFooterElements=()=>{const e=this.props.footerRef.current.querySelectorAll("input, button, select, textarea, a[href]");return Array.prototype.filter.call(e,(function(e){return e.tabIndex>="0"}))},this.handleGlobalKeys=e=>{const{parentRef:t,menuRef:n,hasFooter:r,isOpen:o,variant:a,onToggle:i,onClose:s}=this.props,l=t&&t.current&&t.current.contains(e.target),c=n&&n.current&&n.current.contains&&n.current.contains(e.target);if(o&&e.key===hr&&(a===ur.typeahead||a===ur.typeaheadMulti))return this.props.handleTypeaheadKeys("tab"),void e.preventDefault();if(o&&e.key===hr&&r){const t=this.findTabbableFooterElements();if(t.length<=0)return i(!1),s(),void this.toggle.current.focus();{const n=t.findIndex((e=>e===document.activeElement));if(-1===n)return void t[0].focus();if(e.shiftKey)return;return n+1<t.length?t[n+1].focus():(i(!1),s(),this.toggle.current.focus()),void e.preventDefault()}}!o||e.key!==gr&&e.key!==hr||!l&&!c||(i(!1),s(),this.toggle.current.focus())},this.onKeyDown=e=>{const{isOpen:t,onToggle:n,variant:r,onClose:o,onEnter:a,handleTypeaheadKeys:i}=this.props;r!==ur.typeahead&&r!==ur.typeaheadMulti||(e.key===wr||e.key===yr?(i(e.key===wr?"down":e.key===yr&&"up"),e.preventDefault()):e.key===vr&&(t?i("enter"):n(!t))),r===ur.typeahead||r===ur.typeaheadMulti||e.key===hr&&!t||e.key!==vr&&e.key!==br||(e.preventDefault(),e.key!==hr&&e.key!==vr&&e.key!==br||!t?e.key!==vr&&e.key!==br||t||(n(!t),a()):(n(!t),o(),this.toggle.current.focus()))};const{variant:t}=e;t===ur.typeahead||ur.typeaheadMulti;this.toggle=o.createRef()}componentDidMount(){document.addEventListener("click",this.onDocClick),document.addEventListener("touchstart",this.onDocClick),document.addEventListener("keydown",this.handleGlobalKeys)}componentWillUnmount(){document.removeEventListener("click",this.onDocClick),document.removeEventListener("touchstart",this.onDocClick),document.removeEventListener("keydown",this.handleGlobalKeys)}render(){const e=this.props,{className:t,children:n,isOpen:r,isActive:a,isPlain:i,isDisabled:c,hasPlaceholderStyle:d,variant:p,onToggle:u,onEnter:f,onClose:m,onClickTypeaheadToggleButton:h,handleTypeaheadKeys:b,parentRef:g,menuRef:v,id:y,type:w,hasClearButton:x,"aria-labelledby":C,"aria-label":O,hasFooter:E,footerRef:N}=e,k=s(e,["className","children","isOpen","isActive","isPlain","isDisabled","hasPlaceholderStyle","variant","onToggle","onEnter","onClose","onClickTypeaheadToggleButton","handleTypeaheadKeys","parentRef","menuRef","id","type","hasClearButton","aria-labelledby","aria-label","hasFooter","footerRef"]),T=p===ur.typeahead||p===ur.typeaheadMulti||x,S={id:y,"aria-labelledby":C,"aria-expanded":r,"aria-haspopup":p!==ur.checkbox?"listbox":null};return o.createElement(o.Fragment,null,!T&&o.createElement("button",Object.assign({},k,S,{ref:this.toggle,type:w,className:l($n,d&&Nn.placeholder,c&&Nn.disabled,i&&Nn.plain,a&&Nn.active,t),"aria-label":O,onClick:e=>{u(!r),r&&m()},onKeyDown:this.onKeyDown,disabled:c}),n,o.createElement("span",{className:l(Wn)},o.createElement(fn,null))),T&&o.createElement("div",Object.assign({},k,{ref:this.toggle,className:l($n,d&&Nn.placeholder,c&&Nn.disabled,i&&Nn.plain,T&&Nn.typeahead,t),onClick:e=>{c||u(!r)},onKeyDown:this.onKeyDown}),n,o.createElement("button",Object.assign({},S,{type:w,className:l(Tt.button,Gn,Nn.plain),"aria-label":O,onClick:e=>{u(!r),r&&m(),h()}},(p===ur.typeahead||p===ur.typeaheadMulti)&&{tabIndex:-1},{disabled:c}),o.createElement(fn,{className:l(Wn)}))))}}Tr.displayName="SelectToggle",Tr.defaultProps={className:"",isOpen:!1,isActive:!1,isPlain:!1,isDisabled:!1,hasPlaceholderStyle:!1,hasClearButton:!1,hasFooter:!1,variant:"single","aria-labelledby":"","aria-label":"",type:"button",onToggle:()=>{},onEnter:()=>{},onClose:()=>{},onClickTypeaheadToggleButton:()=>{}};var Sr="pf-c-chip-group",_r="pf-c-chip-group__close",Rr="pf-c-chip-group__label",Ir="pf-c-chip-group__list",Dr="pf-c-chip-group__list-item",jr="pf-c-chip-group__main",Pr={category:"pf-m-category"},Lr="pf-c-chip",Ar="pf-c-chip__text",Fr={overflow:"pf-m-overflow",draggable:"pf-m-draggable"};class Mr extends o.Component{constructor(e){super(e),this.span=o.createRef(),this.renderOverflowChip=()=>{const{children:e,className:t,onClick:n,ouiaId:r}=this.props,a=this.props.component;return o.createElement(a,Object.assign({onClick:n,className:l(Lr,Fr.overflow,t)},"button"===this.props.component?{type:"button"}:{},z("OverflowChip",void 0!==r?r:this.state.ouiaStateId)),o.createElement("span",{className:l(Ar)},e))},this.renderChip=e=>{const{children:t,tooltipPosition:n}=this.props;return this.state.isTooltipVisible?o.createElement(Yt,{position:n,content:t},this.renderInnerChip(e)):this.renderInnerChip(e)},this.state={isTooltipVisible:!1,ouiaStateId:K(Mr.displayName)}}componentDidMount(){this.setState({isTooltipVisible:Boolean(this.span.current&&this.span.current.offsetWidth<this.span.current.scrollWidth)})}renderInnerChip(e){const{children:t,className:n,onClick:r,closeBtnAriaLabel:a,isReadOnly:i,component:s,ouiaId:c}=this.props,d=s;return o.createElement(d,Object.assign({className:l(Lr,n)},this.state.isTooltipVisible&&{tabIndex:0},z(Mr.displayName,void 0!==c?c:this.state.ouiaStateId)),o.createElement("span",{ref:this.span,className:l(Ar),id:e},t),!i&&o.createElement(jt,{onClick:r,variant:"plain","aria-label":a,id:`remove_${e}`,"aria-labelledby":`remove_${e} ${e}`,ouiaId:c||a},o.createElement(Ft,{"aria-hidden":"true"})))}render(){const{isOverflowChip:e}=this.props;return o.createElement(M,null,(t=>e?this.renderOverflowChip():this.renderChip(this.props.id||t)))}}Mr.displayName="Chip",Mr.defaultProps={closeBtnAriaLabel:"close",className:"",isOverflowChip:!1,isReadOnly:!1,tooltipPosition:"top",onClick:e=>{},component:"div"};class Br extends o.Component{constructor(e){super(e),this.headingRef=o.createRef(),this.toggleCollapse=()=>{this.setState((e=>({isOpen:!e.isOpen,isTooltipVisible:Boolean(this.headingRef.current&&this.headingRef.current.offsetWidth<this.headingRef.current.scrollWidth)})))},this.state={isOpen:this.props.defaultIsOpen,isTooltipVisible:!1}}componentDidMount(){this.setState({isTooltipVisible:Boolean(this.headingRef.current&&this.headingRef.current.offsetWidth<this.headingRef.current.scrollWidth)})}renderLabel(e){const{categoryName:t,tooltipPosition:n}=this.props,{isTooltipVisible:r}=this.state;return r?o.createElement(Yt,{position:n,content:t},o.createElement("span",{tabIndex:0,ref:this.headingRef,className:l(Rr),id:e,"aria-label":t},o.createElement("span",{"aria-hidden":"true"},t))):o.createElement("span",{ref:this.headingRef,className:l(Rr),"aria-hidden":"true",id:e},t)}render(){const e=this.props,{categoryName:t,children:n,className:r,isClosable:a,closeBtnAriaLabel:i,"aria-label":c,onClick:d,onOverflowChipClick:p,numChips:u,expandedText:f,collapsedText:m,ouiaId:h,defaultIsOpen:b,tooltipPosition:g}=e,v=s(e,["categoryName","children","className","isClosable","closeBtnAriaLabel","aria-label","onClick","onOverflowChipClick","numChips","expandedText","collapsedText","ouiaId","defaultIsOpen","tooltipPosition"]),{isOpen:y}=this.state,w=o.Children.count(n),x=(C=m,O={remaining:o.Children.count(n)-u},C.replace(/\${(.*?)}/g,((e,t)=>O[t]||"")));var C,O;const E=e=>{const s=y?o.Children.toArray(n):o.Children.toArray(n).slice(0,u);return o.createElement("div",Object.assign({className:l(Sr,r,t&&Pr.category)},z(Br.displayName,h)),o.createElement("div",{className:l(jr)},t&&this.renderLabel(e),o.createElement("ul",Object.assign({className:l(Ir)},t&&{"aria-labelledby":e},!t&&{"aria-label":c},{role:"list"},v),s.map(((e,t)=>o.createElement("li",{className:l(Dr),key:t},e))),w>u&&o.createElement("li",{className:l(Dr)},o.createElement(Mr,{isOverflowChip:!0,onClick:e=>{this.toggleCollapse(),p(e)},component:"button"},y?f:x)))),a&&o.createElement("div",{className:l(_r)},o.createElement(jt,{variant:"plain","aria-label":i,onClick:d,id:`remove_group_${e}`,"aria-labelledby":`remove_group_${e} ${e}`,ouiaId:h||i},o.createElement(Zn,{"aria-hidden":"true"}))))};return 0===w?null:o.createElement(M,null,(e=>E(this.props.id||e)))}}Br.displayName="ChipGroup",Br.defaultProps={expandedText:"Show Less",collapsedText:"${remaining} more",categoryName:"",defaultIsOpen:!1,numChips:3,isClosable:!1,onClick:e=>{},onOverflowChipClick:e=>{},closeBtnAriaLabel:"Close chip group",tooltipPosition:"top","aria-label":"Chip group category"};let Vr=0;class Hr extends o.Component{constructor(){super(...arguments),this.parentRef=o.createRef(),this.menuComponentRef=o.createRef(),this.filterRef=o.createRef(),this.clearRef=o.createRef(),this.inputRef=o.createRef(),this.refCollection=[[]],this.optionContainerRefCollection=[],this.footerRef=o.createRef(),this.state={focusFirstOption:!1,typeaheadInputValue:null,typeaheadFilteredChildren:o.Children.toArray(this.props.children),favoritesGroup:[],typeaheadCurrIndex:-1,typeaheadStoredIndex:-1,creatableValue:"",tabbedIntoFavoritesMenu:!1,ouiaStateId:K(Hr.displayName,this.props.variant),viewMoreNextIndex:-1},this.getTypeaheadActiveChild=e=>this.refCollection[e]?this.refCollection[e][0]:null,this.componentDidUpdate=(e,t)=>{if(this.props.hasInlineFilter&&(this.refCollection[0][0]=this.filterRef.current),!t.focusFirstOption&&this.state.focusFirstOption&&!this.props.customContent){const e=this.refCollection.find((e=>null!==e));e&&e[0]&&e[0].focus()}-1!==this.state.viewMoreNextIndex&&this.refCollection.length>this.state.viewMoreNextIndex&&"spinner"!==this.props.loadingVariant&&this.refCollection[this.state.viewMoreNextIndex][0]&&this.refCollection[this.state.viewMoreNextIndex][0].focus();if((e.children.length!==this.props.children.length||e.children.some(((e,t)=>{const n=e.props,r=this.props.children[t],{props:o}=r;return n&&o?n.value!==o.value||n.label!==o.label||n.isDisabled!==o.isDisabled||n.isPlaceholder!==o.isPlaceholder:e!==r})))&&this.updateTypeAheadFilteredChildren(t.typeaheadInputValue||"",null),this.props.onFavorite&&(this.props.favorites.length!==e.favorites.length||this.state.typeaheadFilteredChildren!==t.typeaheadFilteredChildren)){const e=((e,t,n,r)=>{if(t){const t=[];return e.forEach((e=>{if(n.length>0)return e.props.children&&e.props.children.filter((e=>n.includes(e.props.id))).map((e=>r?t.push(o.cloneElement(e,{isFavorite:!0,enterTriggersArrowDown:r,id:`favorite-${e.props.id}`})):t.push(o.cloneElement(e,{isFavorite:!0,id:`favorite-${e.props.id}`}))))})),t}return e.filter((e=>n.includes(e.props.id))).map((e=>o.cloneElement(e,{isFavorite:!0,enterTriggersArrowDown:r})))})("typeahead"===this.props.variant||"typeaheadmulti"===this.props.variant?this.state.typeaheadFilteredChildren:this.props.children,this.props.isGrouped,this.props.favorites),t=e.length?[o.createElement(Er,{key:"favorites",label:this.props.favoritesLabel},e),o.createElement(pn,{key:"favorites-group-divider"})]:[];this.setState({favoritesGroup:t})}},this.onEnter=()=>{this.setState({focusFirstOption:!0})},this.onToggle=e=>{const{isInputValuePersisted:t,onSelect:n,onToggle:r,hasInlineFilter:o}=this.props;!e&&t&&n&&n(void 0,this.inputRef.current?this.inputRef.current.value:""),e&&o&&this.setState({focusFirstOption:!0}),r(e)},this.onClose=()=>{const{isInputFilterPersisted:e}=this.props;this.setState(Object.assign(Object.assign({focusFirstOption:!1,typeaheadInputValue:null},!e&&{typeaheadFilteredChildren:o.Children.toArray(this.props.children)}),{typeaheadCurrIndex:-1,tabbedIntoFavoritesMenu:!1}))},this.onChange=e=>{""===e.target.value.toString()||this.props.isOpen||this.onToggle(!0),this.props.onTypeaheadInputChanged&&this.props.onTypeaheadInputChanged(e.target.value.toString()),this.setState({typeaheadCurrIndex:-1,typeaheadInputValue:e.target.value,creatableValue:e.target.value}),this.updateTypeAheadFilteredChildren(e.target.value.toString(),e),this.refCollection=[[]]},this.updateTypeAheadFilteredChildren=(e,t)=>{let n;const{onFilter:r,isCreatable:a,onCreateOption:i,createText:s,noResultsFoundText:l,children:c,isGrouped:d,isCreateSelectOptionObject:p}=this.props;if(r)n=r(t,t?t.target.value:e)||c;else{let t;try{t=new RegExp(e.toString(),"i")}catch(n){t=new RegExp(e.toString().replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i")}const r=o.Children.toArray(c);if(d){const a=e=>e.props.value&&e.props.value.toString&&0===this.getDisplay(e.props.value.toString(),"text").search(t);n=""!==e.toString()?o.Children.map(c,(e=>{if(!o.isValidElement(e)||e.type!==Er)return o.Children.toArray(e).filter(a);{const t=o.Children.toArray(e.props.children).filter(a);if(t.length>0)return o.cloneElement(e,{titleId:e.props.label&&e.props.label.replace(/\W/g,"-"),children:t})}})):r}else n=""!==e.toString()?r.filter((n=>{const r=n.props.value;if(!r)return!0;return"string"!=typeof r&&r.toString&&r.compareTo?r.compareTo(e):0===this.getDisplay(n.props.value.toString(),"text").search(t)})):r}if(n||(n=[]),0===n.length&&!a&&n.push(o.createElement(Or,{isDisabled:!0,key:"no-results",value:l,isNoResultsOption:!0})),a&&""!==e){const t=e;if(!n.find((e=>e.props.value&&e.props.value.toString().toLowerCase()===t.toString().toLowerCase()))){const e=p?{toString:()=>t,compareTo:e=>this.toString().toLowerCase().includes(e.toString().toLowerCase())}:t;n.push(o.createElement(Or,{key:`create ${t}`,value:e,onClick:()=>i&&i(t)},s,' "',t,'"'))}}this.setState({typeaheadFilteredChildren:n})},this.onClick=e=>{this.props.isOpen||this.onToggle(!0)},this.clearSelection=e=>{this.setState({typeaheadInputValue:null,typeaheadFilteredChildren:o.Children.toArray(this.props.children),typeaheadCurrIndex:-1})},this.sendRef=(e,t,n,r)=>{this.refCollection[r]=[e,t],this.optionContainerRefCollection[r]=n},this.handleMenuKeys=(e,t,n)=>{q(e,t,n,this.refCollection,this.refCollection),this.props.variant!==ur.typeahead&&this.props.variant!==ur.typeaheadMulti||"tab"!==n&&this.handleTypeaheadKeys(n)},this.moveFocus=(e,t=!0)=>{const{isCreatable:n,createText:r}=this.props,o=Boolean(this.refCollection[e][0]&&this.refCollection[e][0].classList.contains("pf-m-description"))?this.refCollection[e][0].firstElementChild:this.refCollection[e][0];let a="";n&&o.innerText.includes(r)?a=this.state.creatableValue:o&&(a=o.innerText),this.setState((n=>({typeaheadCurrIndex:t?e:n.typeaheadCurrIndex,typeaheadStoredIndex:e,typeaheadInputValue:a})))},this.handleTypeaheadKeys=e=>{const{isOpen:t,onFavorite:n}=this.props,{typeaheadCurrIndex:r,tabbedIntoFavoritesMenu:o,typeaheadStoredIndex:a}=this.state,i=this.getTypeaheadActiveChild(r);if(t)if("enter"===e)(i||this.refCollection[0]&&this.refCollection[0][0])&&(this.setState({typeaheadInputValue:i&&i.innerText||this.refCollection[0][0].innerText}),i?i.click():this.refCollection[0][0].click());else if("tab"===e)if(n)if(this.inputRef.current===document.activeElement){let e=0;-1!==r?e=r:-1!==a&&(e=a),null!==this.refCollection[e]&&null!==this.refCollection[e][0]?this.refCollection[e][0].focus():this.clearRef.current.focus(),this.setState({tabbedIntoFavoritesMenu:!0,typeaheadCurrIndex:-1})}else this.inputRef.current.focus(),this.setState({tabbedIntoFavoritesMenu:!1});else this.onToggle(!1);else if(o){const e=this.refCollection.findIndex((e=>void 0!==e&&(e[0]===document.activeElement||e[1]===document.activeElement)));this.moveFocus(e)}else{if(null===this.refCollection[0][0])return;let t;if(t=-1===r&&"down"===e?0:-1===r&&"up"===e?this.refCollection.length-1:"left"!==e&&"right"!==e?X(r,e,this.refCollection):r,null===this.refCollection[t])return;this.moveFocus(t)}},this.onClickTypeaheadToggleButton=()=>{this.inputRef&&this.inputRef.current&&this.inputRef.current.focus()},this.getDisplay=(e,t="node")=>{if(!e)return;const n=this.props.isGrouped?o.Children.toArray(this.props.children).reduce(((e,t)=>[...e,...o.Children.toArray(t.props.children)]),[]).find((t=>t.props.value.toString()===e.toString())):o.Children.toArray(this.props.children).find((t=>t.props.value&&t.props.value.toString()===e.toString()));return n?n&&n.props.children?"node"===t?n.props.children:this.findText(n):n.props.value.toString():e.toString()},this.findText=e=>{if("string"==typeof e)return e;if(o.isValidElement(e)){const t=[];return o.Children.toArray(e.props.children).forEach((e=>t.push(this.findText(e)))),t.join("")}return""},this.generateSelectedBadge=()=>{const{customBadgeText:e,selections:t}=this.props;return null!==e?e:Array.isArray(t)&&t.length>0?t.length:null},this.setVieMoreNextIndex=()=>{this.setState({viewMoreNextIndex:this.refCollection.length-1})},this.isLastOptionBeforeFooter=e=>!(!this.props.footer||e!==this.refCollection.length-1)}extendTypeaheadChildren(e,t){const{isGrouped:n,onFavorite:r}=this.props,a=t?t.concat(this.state.typeaheadFilteredChildren):this.state.typeaheadFilteredChildren,i=this.optionContainerRefCollection[e];let s=this.getTypeaheadActiveChild(e);return s&&s.classList.contains("pf-m-description")&&(s=s.firstElementChild),this.refCollection=[[]],this.optionContainerRefCollection=[],n?o.Children.map(a,(e=>e.type===pn?e:e.type===Er&&r?o.cloneElement(e,{titleId:e.props.label&&e.props.label.replace(/\W/g,"-"),children:o.Children.map(e.props.children,(t=>t.type===pn?t:o.cloneElement(t,{isFocused:i&&(i.id===t.props.id||this.props.isCreatable&&s.innerText===`{createText} "${e.props.value}"`)})))}):e.type===Er?o.cloneElement(e,{titleId:e.props.label&&e.props.label.replace(/\W/g,"-"),children:o.Children.map(e.props.children,(e=>e.type===pn?e:o.cloneElement(e,{isFocused:s&&(s.innerText===e.props.value.toString()||this.props.isCreatable&&s.innerText===`{createText} "${e.props.value}"`)})))}):o.cloneElement(e,{isFocused:s&&(s.innerText===e.props.value.toString()||this.props.isCreatable&&s.innerText===`{createText} "${e.props.value}"`)}))):a.map((e=>"Divider"===e.type.displayName?e:o.cloneElement(e,{isFocused:s&&(s.innerText===e.props.value.toString()||this.props.isCreatable&&s.innerText===`{createText} "${e.props.value}"`)})))}render(){const e=this.props,{children:t,chipGroupProps:n,chipGroupComponent:r,className:a,customContent:i,variant:c,direction:d,onSelect:p,onClear:u,toggleId:f,isOpen:m,isGrouped:h,isPlain:g,isDisabled:v,hasPlaceholderStyle:y,validated:w,selections:x,typeAheadAriaLabel:C,clearSelectionsAriaLabel:O,toggleAriaLabel:E,removeSelectionAriaLabel:N,"aria-label":k,"aria-labelledby":T,"aria-describedby":S,"aria-invalid":_,placeholderText:R,width:I,maxHeight:D,toggleIcon:j,ouiaId:P,ouiaSafe:L,hasInlineFilter:A,isCheckboxSelectionBadgeHidden:F,inlineFilterPlaceholderText:B,onFilter:V,onTypeaheadInputChanged:H,onCreateOption:$,isCreatable:W,onToggle:K,createText:G,noResultsFoundText:U,customBadgeText:q,inputIdPrefix:X,isInputValuePersisted:Y,isInputFilterPersisted:J,menuAppendTo:Q,favorites:Z,onFavorite:ee,favoritesLabel:te,footer:ne,loadingVariant:re,isCreateSelectOptionObject:oe}=e,ae=s(e,["children","chipGroupProps","chipGroupComponent","className","customContent","variant","direction","onSelect","onClear","toggleId","isOpen","isGrouped","isPlain","isDisabled","hasPlaceholderStyle","validated","selections","typeAheadAriaLabel","clearSelectionsAriaLabel","toggleAriaLabel","removeSelectionAriaLabel","aria-label","aria-labelledby","aria-describedby","aria-invalid","placeholderText","width","maxHeight","toggleIcon","ouiaId","ouiaSafe","hasInlineFilter","isCheckboxSelectionBadgeHidden","inlineFilterPlaceholderText","onFilter","onTypeaheadInputChanged","onCreateOption","isCreatable","onToggle","createText","noResultsFoundText","customBadgeText","inputIdPrefix","isInputValuePersisted","isInputFilterPersisted","menuAppendTo","favorites","onFavorite","favoritesLabel","footer","loadingVariant","isCreateSelectOptionObject"]),{focusFirstOption:ie,typeaheadCurrIndex:se,typeaheadInputValue:le,typeaheadFilteredChildren:ce,favoritesGroup:de}=this.state,pe=f||"pf-select-toggle-id-"+Vr++,ue=Array.isArray(x)?x:[x],fe=o.Children.toArray(t).find((e=>e.props.value===ue[0])),me=fe&&fe.props.isPlaceholder,he=Boolean(ue[0]&&""!==ue[0]),be=this.getTypeaheadActiveChild(se);let ge=null,ve=[];if(ee){let e=t;"typeahead"===c||"typeaheadmulti"===c?e=this.extendTypeaheadChildren(se,de):ee&&(e=de.concat(t)),ve=((e,t,n)=>t?e.map((e=>o.cloneElement(e,{children:o.Children.map(e.props.children,(e=>e.type===wn||e.type===pn?e:o.cloneElement(e,{isFavorite:n.some((t=>t===e.props.id||`favorite-${t}`===e.props.id))})))}))):e.map((e=>o.cloneElement(e,{isFavorite:n.some((t=>t===e.props.id))}))))(e,h,Z)}else ve=t;if(!i&&!he&&!R){const e=o.Children.toArray(t).filter((e=>!0===e.props.isPlaceholder));ge=e[0]&&this.getDisplay(e[0].props.value,"node")||t[0]&&this.getDisplay(t[0].props.value,"node")}m&&void 0===ve.find((e=>{var t;return"loading"===(null===(t=e)||void 0===t?void 0:t.key)}))&&("spinner"===re?ve.push(o.createElement(Or,{isLoading:!0,key:"loading",value:"loading"},o.createElement(_t,{size:"lg"}))):(null==re?void 0:re.text)&&ve.push(o.createElement(Or,{isLoad:!0,key:"loading",value:re.text,setViewMoreNextIndex:this.setVieMoreNextIndex,onClick:null==re?void 0:re.onClick})));const ye=u!==Hr.defaultProps.onClear,we=o.createElement("button",{className:l(Tt.button,Tt.modifiers.plain,Un),onClick:e=>{this.clearSelection(e),u(e)},"aria-label":O,type:"button",disabled:v,ref:this.clearRef,onKeyDown:e=>{e.key===vr&&this.clearRef.current.click()}},o.createElement(Zn,{"aria-hidden":!0}));let xe,Ce,Oe=null;if(c===ur.typeaheadMulti&&(Oe=r||o.createElement(Br,Object.assign({},n),ue&&ue.map((e=>o.createElement(Mr,{key:e,onClick:t=>p(t,e),closeBtnAriaLabel:N},this.getDisplay(e,"node")))))),A){ve=[o.createElement(o.Fragment,null,o.createElement("div",{key:"inline-filter",className:l(Hn)},o.createElement("input",{key:"inline-filter-input",type:"search",className:l(Zt.formControl,Zt.modifiers.search),onChange:this.onChange,placeholder:B,onKeyDown:e=>{e.key===yr?(this.handleMenuKeys(0,0,"up"),e.preventDefault()):e.key===wr?(this.handleMenuKeys(0,0,"down"),e.preventDefault()):e.key===xr?(this.handleMenuKeys(0,0,"left"),e.preventDefault()):e.key===Cr?(this.handleMenuKeys(0,0,"right"),e.preventDefault()):e.key===hr&&c===ur.checkbox&&(e.shiftKey?this.handleMenuKeys(0,0,"up"):this.handleMenuKeys(0,0,"down"),e.stopPropagation(),e.preventDefault())},ref:this.filterRef,autoComplete:"never"})),o.createElement(pn,{key:"inline-filter-divider"})),...ce].map(((e,t)=>o.cloneElement(e,{key:t})))}if(i)xe={selected:ue,openedOnEnter:ie,isCustomContent:!0},Ce=i;else switch(c){case"single":xe={selected:ue[0],hasInlineFilter:A,openedOnEnter:ie},Ce=ve;break;case"checkbox":xe={checked:ue,isGrouped:h,hasInlineFilter:A,openedOnEnter:ie},Ce=ve;break;case"typeahead":xe={selected:ue[0],openedOnEnter:ie},Ce=ee?ve:this.extendTypeaheadChildren(se),0===Ce.length&&Ce.push(o.createElement(Or,{isDisabled:!0,key:0,value:U,isNoResultsOption:!0}));break;case"typeaheadmulti":xe={selected:ue,openedOnEnter:ie},Ce=ee?ve:this.extendTypeaheadChildren(se),0===Ce.length&&Ce.push(o.createElement(Or,{isDisabled:!0,key:0,value:U,isNoResultsOption:!0}))}const Ee=o.createElement(kr,Object.assign({},ae,{isGrouped:h,selected:ue},xe,{openedOnEnter:ie,"aria-label":k,"aria-labelledby":T,sendRef:this.sendRef,keyHandler:this.handleMenuKeys,maxHeight:D,ref:this.menuComponentRef,footer:ne,footerRef:this.footerRef,isLastOptionBeforeFooter:this.isLastOptionBeforeFooter}),Ce),Ne=ne?o.createElement("div",{className:l(Sn)}," ",Ee," "):Ee,ke=o.createElement("div",Object.assign({className:l(kn,m&&Nn.expanded,w===b.success&&Nn.success,w===b.warning&&Nn.warning,w===b.error&&Nn.invalid,d===mr.up&&Nn.top,a)},I&&{style:{width:I}},w!==b.default&&{"aria-describedby":S},w!==b.default&&{"aria-invalid":_}),m&&Ne),Te=o.createElement("div",Object.assign({className:l(kn,m&&Nn.expanded,w===b.success&&Nn.success,w===b.warning&&Nn.warning,w===b.error&&Nn.invalid,d===mr.up&&Nn.top,a),ref:this.parentRef},z(Hr.displayName,void 0!==P?P:this.state.ouiaStateId,L),I&&{style:{width:I}},w!==b.default&&{"aria-describedby":S},w!==b.default&&{"aria-invalid":_}),o.createElement(Tr,Object.assign({id:pe,parentRef:this.parentRef,menuRef:this.menuComponentRef},ne&&{footerRef:this.footerRef},{isOpen:m,isPlain:g,hasPlaceholderStyle:y&&(!ue.length||null===ue[0]||me),onToggle:this.onToggle,onEnter:this.onEnter,onClose:this.onClose,variant:c,"aria-labelledby":`${T||""} ${pe}`,"aria-label":E,handleTypeaheadKeys:this.handleTypeaheadKeys,isDisabled:v,hasClearButton:ye,hasFooter:void 0!==ne,onClickTypeaheadToggleButton:this.onClickTypeaheadToggleButton}),i&&o.createElement("div",{className:l(Qn)},j&&o.createElement("span",{className:l(qn)},j),o.createElement("span",{className:l(Yn)},R)),c===ur.single&&!i&&o.createElement(o.Fragment,null,o.createElement("div",{className:l(Qn)},j&&o.createElement("span",{className:l(qn)},j),o.createElement("span",{className:l(Yn)},this.getDisplay(ue[0],"node")||R||ge)),ye&&he&&we),c===ur.checkbox&&!i&&o.createElement(o.Fragment,null,o.createElement("div",{className:l(Qn)},j&&o.createElement("span",{className:l(qn)},j),o.createElement("span",{className:l(Yn)},R),!F&&he&&o.createElement("div",{className:l(Kn)},o.createElement("span",{className:l(bn,gn.read)},this.generateSelectedBadge()))),ye&&he&&we),c===ur.typeahead&&!i&&o.createElement(o.Fragment,null,o.createElement("div",{className:l(Qn)},j&&o.createElement("span",{className:l(qn)},j),o.createElement("input",{className:l(Zt.formControl,Jn),"aria-activedescendant":be&&be.id,id:`${pe}-select-typeahead`,"aria-label":C,placeholder:R,value:null!==le?le:this.getDisplay(ue[0],"text")||"",type:"text",onClick:this.onClick,onChange:this.onChange,autoComplete:"never",disabled:v,ref:this.inputRef})),ye&&(ue[0]||le)&&we),c===ur.typeaheadMulti&&!i&&o.createElement(o.Fragment,null,o.createElement("div",{className:l(Qn)},j&&o.createElement("span",{className:l(qn)},j),ue&&Array.isArray(ue)&&ue.length>0&&Oe,o.createElement("input",{className:l(Zt.formControl,Jn),"aria-activedescendant":be&&be.id,id:`${pe}-select-multi-typeahead-typeahead`,"aria-label":C,"aria-invalid":w===b.error,placeholder:R,value:null!==le?le:"",type:"text",onChange:this.onChange,onClick:this.onClick,autoComplete:"never",disabled:v,ref:this.inputRef})),ye&&(ue&&ue.length>0||le)&&we),w===b.success&&o.createElement("span",{className:l(Xn)},o.createElement(Mt,{"aria-hidden":"true"})),w===b.error&&o.createElement("span",{className:l(Xn)},o.createElement(Bt,{"aria-hidden":"true"})),w===b.warning&&o.createElement("span",{className:l(Xn)},o.createElement(Vt,{"aria-hidden":"true"}))),m&&"inline"===Q&&Ne),Se=()=>this.parentRef&&this.parentRef.current?this.parentRef.current.parentElement:null;return o.createElement(M,null,(e=>o.createElement(dr.Provider,{value:{onSelect:p,onFavorite:ee,onClose:this.onClose,variant:c,inputIdPrefix:X||e}},"inline"===Q?Te:o.createElement(vt,{trigger:Te,popper:ke,direction:d,appendTo:"parent"===Q?Se():Q,isVisible:m}))))}}Hr.displayName="Select",Hr.defaultProps={children:[],className:"",position:fr.left,direction:mr.down,toggleId:null,isOpen:!1,isGrouped:!1,isPlain:!1,isDisabled:!1,hasPlaceholderStyle:!1,isCreatable:!1,validated:"default","aria-label":"","aria-labelledby":"","aria-describedby":"","aria-invalid":!1,typeAheadAriaLabel:"",clearSelectionsAriaLabel:"Clear all",toggleAriaLabel:"Options menu",removeSelectionAriaLabel:"Remove",selections:[],createText:"Create",placeholderText:"",noResultsFoundText:"No results found",variant:ur.single,width:"",onClear:()=>{},onCreateOption:()=>{},toggleIcon:null,onFilter:null,onTypeaheadInputChanged:null,customContent:null,hasInlineFilter:!1,inlineFilterPlaceholderText:null,customBadgeText:null,inputIdPrefix:"",menuAppendTo:"inline",favorites:[],favoritesLabel:"Favorites",ouiaSafe:!0,chipGroupComponent:null,isInputValuePersisted:!1,isInputFilterPersisted:!1,isCreateSelectOptionObject:!1};const zr=()=>{};class $r extends o.Component{constructor(e){super(e),this.handleChange=e=>{this.props.onChange(e.currentTarget.checked,e)},this.state={ouiaStateId:K($r.displayName)}}render(){const e=this.props,{"aria-label":t,className:n,onChange:r,isValid:a,isDisabled:i,isChecked:c,label:d,checked:p,defaultChecked:u,description:f,body:m,ouiaId:h,ouiaSafe:b}=e,g=s(e,["aria-label","className","onChange","isValid","isDisabled","isChecked","label","checked","defaultChecked","description","body","ouiaId","ouiaSafe"]);g.id||console.error("Checkbox:","id is required to make input accessible");const v={};return([!0,!1].includes(p)||!0===c)&&(v.checked=p||c),r!==zr&&(v.checked=c),[!1,!0].includes(u)&&(v.defaultChecked=u),v.checked=null!==v.checked&&v.checked,o.createElement("div",{className:l(rr,!d&&lr.standalone,n)},o.createElement("input",Object.assign({},g,{className:l(ir),type:"checkbox",onChange:this.handleChange,"aria-invalid":!a,"aria-label":t,disabled:i,ref:e=>e&&(e.indeterminate=null===c)},v,z($r.displayName,void 0!==h?h:this.state.ouiaStateId,b))),d&&o.createElement("label",{className:l(sr,i&&lr.disabled),htmlFor:g.id},d),f&&o.createElement("span",{className:l(ar)},f),m&&o.createElement("span",{className:l(or)},m))}}$r.displayName="Checkbox",$r.defaultProps={className:"",isValid:!0,isDisabled:!1,isChecked:!1,onChange:zr,ouiaSafe:!0};var Wr=At({name:"AngleDownIcon",height:512,width:320,svgPath:"M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z",yOffset:0,xOffset:0});var Kr=At({name:"GripVerticalIcon",height:512,width:320,svgPath:"M96 32H32C14.33 32 0 46.33 0 64v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zm0 160H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm0 160H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zM288 32h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zm0 160h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm0 160h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32z",yOffset:0,xOffset:0}),Gr={noPadding:"pf-m-no-padding",widthAuto:"pf-m-width-auto",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",danger:"pf-m-danger",warning:"pf-m-warning",success:"pf-m-success",default:"pf-m-default",info:"pf-m-info",icon:"pf-m-icon"},Ur="pf-c-popover",qr="pf-c-popover__arrow",Xr="pf-c-popover__body",Yr="pf-c-popover__content",Jr="pf-c-popover__footer",Qr="pf-c-popover__title",Zr="pf-c-popover__title-icon",eo="pf-c-popover__title-text";const to=o.createContext({}),no=e=>{var{className:t=null,children:n}=e,r=s(e,["className","children"]);return o.createElement("div",Object.assign({className:l(Yr,t)},r),n)};no.displayName="PopoverContent";const ro=e=>{var{children:t,id:n,className:r}=e,a=s(e,["children","id","className"]);return o.createElement("div",Object.assign({className:l(Xr,r),id:n},a),t)};ro.displayName="PopoverBody";const oo=e=>{var{children:t,className:n}=e,r=s(e,["children","className"]);return o.createElement("span",Object.assign({className:l(Zr,n)},r),t)};oo.displayName="PopoverHeaderIcon";const ao=e=>{var{children:t,className:n}=e,r=s(e,["children","className"]);return o.createElement("span",Object.assign({className:l(eo,n)},r),t)};ao.displayName="PopoverHeaderText";const io=e=>{var{children:t,icon:n,className:r,titleHeadingLevel:a="h6",alertSeverityVariant:i,id:c,alertSeverityScreenReaderText:d}=e,p=s(e,["children","icon","className","titleHeadingLevel","alertSeverityVariant","id","alertSeverityScreenReaderText"]);const u=a;return n||i?o.createElement("header",Object.assign({className:l("pf-c-popover__header",r),id:c},p),o.createElement(u,{className:l(Qr,n&&Gr.icon)},n&&o.createElement(oo,null,n),i&&d&&o.createElement("span",{className:"pf-u-screen-reader"},d),o.createElement(ao,null,t))):o.createElement(Nt,Object.assign({headingLevel:a,size:xt.md,id:c,className:r},p),t)};io.displayName="PopoverHeader";const so=e=>{var{children:t,className:n=""}=e,r=s(e,["children","className"]);return o.createElement("footer",Object.assign({className:l(Jr,n)},r),t)};so.displayName="PopoverFooter";const lo=e=>{var{onClose:t=(()=>{})}=e,n=s(e,["onClose"]);const[r,a]=o.useState(null);return o.useEffect((()=>(r&&r.addEventListener("click",t,!1),()=>{r&&r.removeEventListener("click",t,!1)})),[r]),o.createElement(ne,{onFoundRef:e=>a(e)},o.createElement(jt,Object.assign({variant:"plain","aria-label":!0},n,{style:{pointerEvents:"auto"}}),o.createElement(Ft,null)))};lo.displayName="PopoverCloseButton";const co=e=>{var{className:t=""}=e,n=s(e,["className"]);return o.createElement("div",Object.assign({className:l(qr,t)},n))};co.displayName="PopoverArrow";var po={name:"--pf-c-popover--MaxWidth",value:"none",var:"var(--pf-c-popover--MaxWidth)"};var uo,fo={name:"--pf-c-popover--MinWidth",value:"auto",var:"var(--pf-c-popover--MinWidth)"};!function(e){e.auto="auto",e.top="top",e.bottom="bottom",e.left="left",e.right="right",e.topStart="top-start",e.topEnd="top-end",e.bottomStart="bottom-start",e.bottomEnd="bottom-end",e.leftStart="left-start",e.leftEnd="left-end",e.rightStart="right-start",e.rightEnd="right-end"}(uo||(uo={}));const mo={default:Gr.default,info:Gr.info,success:Gr.success,warning:Gr.warning,danger:Gr.danger},ho=e=>{var{children:t,position:n="top",enableFlip:r=!0,className:a="",isVisible:i=null,shouldClose:c=(()=>null),shouldOpen:p=(()=>null),"aria-label":u="",bodyContent:f,headerContent:m=null,headerComponent:h="h6",headerIcon:b=null,alertSeverityVariant:g,alertSeverityScreenReaderText:v,footerContent:y=null,appendTo:w=(()=>document.body),hideOnOutsideClick:x=!0,onHide:C=(()=>null),onHidden:O=(()=>null),onShow:E=(()=>null),onShown:N=(()=>null),onMount:k=(()=>null),zIndex:T=9999,minWidth:S=fo&&fo.value,maxWidth:_=po&&po.value,closeBtnAriaLabel:R="Close",showClose:I=!0,distance:D=25,flipBehavior:j=["top","right","bottom","left","top","right","bottom"],animationDuration:P=300,id:L,withFocusTrap:F,boundary:M,tippyProps:B,reference:V,hasNoPadding:H=!1,hasAutoWidth:z=!1}=e,$=s(e,["children","position","enableFlip","className","isVisible","shouldClose","shouldOpen","aria-label","bodyContent","headerContent","headerComponent","headerIcon","alertSeverityVariant","alertSeverityScreenReaderText","footerContent","appendTo","hideOnOutsideClick","onHide","onHidden","onShow","onShown","onMount","zIndex","minWidth","maxWidth","closeBtnAriaLabel","showClose","distance","flipBehavior","animationDuration","id","withFocusTrap","boundary","tippyProps","reference","hasNoPadding","hasAutoWidth"]);const W=L||G(),K=null!==i,[U,q]=o.useState(!1),[X,Y]=o.useState(0),[J,Q]=o.useState(Boolean(F)),Z=o.useRef(null),ee=o.useRef(null),te=o.useRef(null);o.useEffect((()=>{k()}),[]),o.useEffect((()=>{K&&(i?ne():re())}),[i,K]);const ne=e=>{E(),Z.current&&clearTimeout(Z.current),te.current&&clearTimeout(te.current),ee.current=setTimeout((()=>{q(!0),Y(1),!1!==F&&e&&Q(!0),N()}),0)},re=()=>{C(),ee.current&&clearTimeout(ee.current),te.current=setTimeout((()=>{q(!1),Y(0),Q(!1),Z.current=setTimeout((()=>{O()}),P)}),0)},oe={top:Gr.top,bottom:Gr.bottom,left:Gr.left,right:Gr.right,"top-start":Gr.topLeft,"top-end":Gr.topRight,"bottom-start":Gr.bottomLeft,"bottom-end":Gr.bottomRight,"left-start":Gr.leftTop,"left-end":Gr.leftBottom,"right-start":Gr.rightTop,"right-end":Gr.rightBottom},ae=S!==fo.value,ie=_!==po.value,se=o.createElement(A,Object.assign({active:J,focusTrapOptions:{returnFocusOnDeactivate:!0,clickOutsideDeactivates:!0,fallbackFocus:()=>{let e=null;return document&&document.activeElement&&(e=document.activeElement),e}},preventScrollOnDeactivate:!0,className:l(Ur,g&&mo[g],H&&Gr.noPadding,z&&Gr.widthAuto,a),role:"dialog","aria-modal":"true","aria-label":m?void 0:u,"aria-labelledby":m?`popover-${W}-header`:void 0,"aria-describedby":`popover-${W}-body`,onMouseDown:()=>{J&&Q(!1)},style:{minWidth:ae?S:null,maxWidth:ie?_:null,opacity:X,transition:gt(P)}},$),o.createElement(co,null),o.createElement(no,null,I&&o.createElement(lo,{onClose:e=>{e.stopPropagation(),K?c(null,re,e):re()},"aria-label":R}),m&&o.createElement(io,{id:`popover-${W}-header`,icon:b,alertSeverityVariant:g,alertSeverityScreenReaderText:v||`${g} alert:`,titleHeadingLevel:h},"function"==typeof m?m(re):m),o.createElement(ro,{id:`popover-${W}-body`},"function"==typeof f?f(re):f),y&&o.createElement(so,{id:`popover-${W}-footer`},"function"==typeof y?y(re):y)));return o.createElement(to.Provider,{value:{headerComponent:h}},o.createElement(vt,{trigger:t,reference:V,popper:se,popperMatchesTriggerWidth:!1,appendTo:w,isVisible:U,positionModifiers:oe,distance:D,placement:n,onTriggerClick:e=>{K?U?c(null,re,e):p(ne,e):U?re():ne(!0)},onDocumentClick:(e,t,n)=>{if(x&&U){if(n&&n.contains(e.target))return;K?c(null,re,e):re()}},onDocumentKeyDown:e=>{e.keyCode===d&&U&&(K?c(null,re,e):re())},enableFlip:r,zIndex:T,flipBehavior:j}))};ho.displayName="Popover";var bo,go="pf-c-empty-state",vo="pf-c-empty-state__content",yo={xs:"pf-m-xs",sm:"pf-m-sm",lg:"pf-m-lg",xl:"pf-m-xl",fullHeight:"pf-m-full-height",primary:"pf-m-primary",overpassFont:"pf-m-overpass-font"};!function(e){e.xs="xs",e.small="small",e.large="large",e.xl="xl",e.full="full"}(bo||(bo={}));const wo=e=>{var{children:t,className:n="",variant:r=bo.full,isFullHeight:a}=e,i=s(e,["children","className","variant","isFullHeight"]);return o.createElement("div",Object.assign({className:l(go,"xs"===r&&yo.xs,"small"===r&&yo.sm,"large"===r&&yo.lg,"xl"===r&&yo.xl,a&&yo.fullHeight,n)},i),o.createElement("div",{className:l(vo)},t))};wo.displayName="EmptyState";var xo="pf-c-inline-edit",Co="pf-c-inline-edit__action",Oo="pf-c-inline-edit__group",Eo="pf-c-inline-edit__input",No="pf-c-inline-edit__value",ko={iconGroup:"pf-m-icon-group",footer:"pf-m-footer",column:"pf-m-column",valid:"pf-m-valid",plain:"pf-m-plain",actionGroup:"pf-m-action-group",enableEditable:"pf-m-enable-editable",inlineEditable:"pf-m-inline-editable",enable:"pf-m-enable",bold:"pf-m-bold"};const To=e=>{var{children:t=null,className:n="",component:r="div"}=e,a=s(e,["children","className","component"]);const i=r;return o.createElement(i,Object.assign({className:l(Ot,n)},a),t)};To.displayName="Bullseye";var So={button:"pf-c-button",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",fixed:"pf-m-fixed",stickyHeader:"pf-m-sticky-header",ghostRow:"pf-m-ghost-row",center:"pf-m-center",help:"pf-m-help",favorite:"pf-m-favorite",borderRight:"pf-m-border-right",borderLeft:"pf-m-border-left",nestedColumnHeader:"pf-m-nested-column-header",truncate:"pf-m-truncate",wrap:"pf-m-wrap",nowrap:"pf-m-nowrap",fitContent:"pf-m-fit-content",breakWord:"pf-m-break-word",noBorderRows:"pf-m-no-border-rows",expanded:"pf-m-expanded",hoverable:"pf-m-hoverable",selected:"pf-m-selected",firstCellOffsetReset:"pf-m-first-cell-offset-reset",dragOver:"pf-m-drag-over",favorited:"pf-m-favorited",noPadding:"pf-m-no-padding",compact:"pf-m-compact",width_10:"pf-m-width-10",width_15:"pf-m-width-15",width_20:"pf-m-width-20",width_25:"pf-m-width-25",width_30:"pf-m-width-30",width_35:"pf-m-width-35",width_40:"pf-m-width-40",width_45:"pf-m-width-45",width_50:"pf-m-width-50",width_60:"pf-m-width-60",width_70:"pf-m-width-70",width_80:"pf-m-width-80",width_90:"pf-m-width-90",width_100:"pf-m-width-100"},table:"pf-c-table",tableAction:"pf-c-table__action",tableButton:"pf-c-table__button",tableButtonContent:"pf-c-table__button-content",tableCheck:"pf-c-table__check",tableColumnHelp:"pf-c-table__column-help",tableColumnHelpAction:"pf-c-table__column-help-action",tableCompoundExpansionToggle:"pf-c-table__compound-expansion-toggle",tableControlRow:"pf-c-table__control-row",tableDraggable:"pf-c-table__draggable",tableExpandableRow:"pf-c-table__expandable-row",tableExpandableRowContent:"pf-c-table__expandable-row-content",tableFavorite:"pf-c-table__favorite",tableIcon:"pf-c-table__icon",tableIconInline:"pf-c-table__icon-inline",tableInlineEditAction:"pf-c-table__inline-edit-action",tableSort:"pf-c-table__sort",tableSortIndicator:"pf-c-table__sort-indicator",tableSubhead:"pf-c-table__subhead",tableText:"pf-c-table__text",tableToggle:"pf-c-table__toggle",tableToggleIcon:"pf-c-table__toggle-icon"},_o={grid:"pf-m-grid",compact:"pf-m-compact",expanded:"pf-m-expanded",selected:"pf-m-selected",noPadding:"pf-m-no-padding",hoverable:"pf-m-hoverable",nowrap:"pf-m-nowrap",fitContent:"pf-m-fit-content",truncate:"pf-m-truncate",gridMd:"pf-m-grid-md",gridLg:"pf-m-grid-lg",gridXl:"pf-m-grid-xl",grid_2xl:"pf-m-grid-2xl"},Ro={treeView:"pf-m-tree-view",treeViewGrid:"pf-m-tree-view-grid",treeViewDetailsExpanded:"pf-m-tree-view-details-expanded",treeViewGridMd:"pf-m-tree-view-grid-md",treeViewGridLg:"pf-m-tree-view-grid-lg",treeViewGridXl:"pf-m-tree-view-grid-xl",treeViewGrid_2xl:"pf-m-tree-view-grid-2xl"},Io="pf-c-table__check",Do="pf-c-table__toggle",jo="pf-c-table__toggle-icon",Po="pf-c-table__tree-view-details-toggle",Lo="pf-c-table__tree-view-icon",Ao="pf-c-table__tree-view-main",Fo="pf-c-table__tree-view-text";const Mo=(e,t)=>{if(void 0!==e.parent)return e.hasOwnProperty("compoundParent")?((e,t,n)=>{for(const r of n){if(!n[e].hasOwnProperty("parent"))return n[e].cells[t].props.isOpen;e=n[e].parent}return!1})(e.parent,e.compoundParent,t):((e,t)=>{for(const n of t){if(!t[e].hasOwnProperty("parent"))return t[e].isOpen;e=t[e].parent}return!1})(e.parent,t)&&t[e.parent].isOpen},Bo=(e,t)=>t.filter((t=>t.name===e))[0].errorText,Vo=e=>e.toUpperCase().replace("-","").replace("_",""),Ho=e=>e.replace(/([-_][a-z])/gi,Vo);function zo(e){return e[0].toUpperCase()+e.substring(1)}var $o;e.TableGridBreakpoint=void 0,($o=e.TableGridBreakpoint||(e.TableGridBreakpoint={})).none="",$o.grid="grid",$o.gridMd="grid-md",$o.gridLg="grid-lg",$o.gridXl="grid-xl",$o.grid2xl="grid-2xl",e.TableVariant=void 0,(e.TableVariant||(e.TableVariant={})).compact="compact";const Wo=t=>{var n,r,{children:a,className:s,variant:c,borders:d=!0,isStickyHeader:p=!1,gridBreakPoint:u=e.TableGridBreakpoint.gridMd,"aria-label":f,role:m="grid",innerRef:h,ouiaId:b,ouiaSafe:g=!0,isTreeTable:v=!1,isNested:y=!1,nestedHeaderColumnSpans:w}=t,x=i(t,["children","className","variant","borders","isStickyHeader","gridBreakPoint","aria-label","role","innerRef","ouiaId","ouiaSafe","isTreeTable","isNested","nestedHeaderColumnSpans"]);const C=h||o.useRef(null);o.useEffect((()=>{if(document.addEventListener("keydown",T),C&&C.current&&C.current.classList.contains("pf-m-tree-view")){const t=C.current.querySelector("tbody");t&&((e=Array.from(t.querySelectorAll("button, a, input")))&&e.length>0&&(e.forEach((e=>{e.tabIndex=-1})),e[0].tabIndex=0))}var e;return function(){document.removeEventListener("keydown",T)}}),[C,C.current]);const O=$("Table",b,g),E=null===(n=_o)||void 0===n?void 0:n[Ho(u||"").replace(/-?2xl/,"_2xl")],N=`treeView${u.charAt(0).toUpperCase()+u.slice(1)}`,k=null===(r=Ro)||void 0===r?void 0:r[Ho(N||"").replace(/-?2xl/,"_2xl")],T=e=>{if(y||!(C&&C.current&&C.current.classList.contains("pf-m-tree-view"))||C&&C.current!==e.target.closest(".pf-c-table:not(.pf-m-nested)"))return;const t=document.activeElement,n=e.key,r=Array.from(C.current.querySelectorAll("tbody tr")).filter((e=>!e.classList.contains("pf-m-disabled")&&!e.hidden));"Space"!==n&&"Enter"!==n||(t.click(),e.preventDefault());yt(e,r,(e=>e===t.closest("tr")),(e=>e.querySelectorAll("button:not(:disabled), input:not(:disabled), a:not(:disabled)")[0]),["button","input","a"],void 0,!1,!0,!1)};return o.createElement("table",Object.assign({"aria-label":f,role:m,className:l(s,So.table,v?k:E,So.modifiers[c],!d&&So.modifiers.noBorderRows,p&&So.modifiers.stickyHeader,v&&Ro.treeView,y&&"pf-m-nested"),ref:C},v&&{role:"treegrid"},O,x),w&&w.map(((e,t)=>1===e?o.createElement("col",{key:t}):o.createElement("colgroup",{key:t,span:e}))),a)},Ko=o.forwardRef(((e,t)=>o.createElement(Wo,Object.assign({},e,{innerRef:t}))));Ko.displayName="TableComposable";const Go=e=>{var{children:t,className:n,noWrap:r=!1,innerRef:a,hasNestedHeader:s}=e,c=i(e,["children","className","noWrap","innerRef","hasNestedHeader"]);return o.createElement("thead",Object.assign({className:l(n,r&&So.modifiers.nowrap,s&&So.modifiers.nestedColumnHeader),ref:a},c),t)},Uo=o.forwardRef(((e,t)=>o.createElement(Go,Object.assign({},e,{innerRef:t}))));Uo.displayName="Thead";const qo=e=>{var{children:t,className:n,isExpanded:r,innerRef:a}=e,s=i(e,["children","className","isExpanded","innerRef"]);return o.createElement("tbody",Object.assign({role:"rowgroup",className:l(n,r&&So.modifiers.expanded),ref:a},s),t)},Xo=o.forwardRef(((e,t)=>o.createElement(qo,Object.assign({},e,{innerRef:t}))));Xo.displayName="Tbody";const Yo=e=>{var{children:t,className:n,isExpanded:r,isEditable:a,isHidden:s=!1,isHoverable:c=!1,isRowSelected:d=!1,innerRef:p,ouiaId:u,ouiaSafe:f=!0,resetOffset:m=!1,onRowClick:h}=e,b=i(e,["children","className","isExpanded","isEditable","isHidden","isHoverable","isRowSelected","innerRef","ouiaId","ouiaSafe","resetOffset","onRowClick"]);const g=$("TableRow",u,f);let v=null;return h&&(v=e=>{"Enter"!==e.key&&" "!==e.key||(h(e),e.preventDefault())}),o.createElement("tr",Object.assign({className:l(n,void 0!==r&&So.tableExpandableRow,r&&So.modifiers.expanded,a&&ko.inlineEditable,c&&So.modifiers.hoverable,d&&So.modifiers.selected,m&&So.modifiers.firstCellOffsetReset),hidden:s||void 0!==r&&!r},c&&{tabIndex:0},{ref:p},h&&{onClick:h,onKeyDown:v},g,b),t)},Jo=o.forwardRef(((e,t)=>o.createElement(Yo,Object.assign({},e,{innerRef:t}))));Jo.displayName="Tr";var Qo={borderRight:"pf-m-border-right",borderLeft:"pf-m-border-left",stickyHeader:"pf-m-sticky-header"},Zo="pf-c-scroll-inner-wrapper",ea="pf-c-scroll-outer-wrapper",ta="pf-c-table__sticky-column";var na,ra,oa=At({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});e.TableTextVariant=void 0,(na=e.TableTextVariant||(e.TableTextVariant={})).div="div",na.nav="nav",e.WrapModifier=void 0,(ra=e.WrapModifier||(e.WrapModifier={})).wrap="wrap",ra.nowrap="nowrap",ra.truncate="truncate",ra.breakWord="breakWord",ra.fitContent="fitContent";const aa=e=>{var{children:t=null,className:n="",variant:r="span",wrapModifier:a=null,tooltip:s="",tooltipProps:c={},onMouseEnter:d=(()=>{})}=e,p=i(e,["children","className","variant","wrapModifier","tooltip","tooltipProps","onMouseEnter"]);const u=r,[f,m]=o.useState(""),h=o.createElement(u,Object.assign({onMouseEnter:e=>{e.target.offsetWidth<e.target.scrollWidth?m(s||e.target.innerText):m(""),d(e)},className:l(n,a&&So.modifiers[a],So.tableText)},p),t);return""!==f?o.createElement(Yt,Object.assign({content:f,isVisible:!0},c),h):h};aa.displayName="TableText";const ia=({children:e,info:t,className:n,variant:r="tooltip",popoverProps:a,tooltipProps:i,ariaLabel:s})=>o.createElement("div",{className:l(So.tableColumnHelp,n)},"string"==typeof e?o.createElement(aa,null,e):e,o.createElement("span",{className:l(So.tableColumnHelpAction)},"tooltip"===r?o.createElement(Yt,Object.assign({content:t},i),o.createElement(jt,{variant:"plain","aria-label":s||"string"==typeof t&&t||"More info"},o.createElement(oa,{noVerticalAlign:!0}))):o.createElement(ho,Object.assign({bodyContent:t},a),o.createElement(jt,{variant:"plain","aria-label":s||"string"==typeof t&&t||"More info"},o.createElement(oa,{noVerticalAlign:!0})))));ia.displayName="HeaderCellInfoWrapper";const sa=({tooltip:e,tooltipProps:t,popover:n,popoverProps:r,className:a,ariaLabel:i})=>s=>({className:So.modifiers.help,children:e?o.createElement(ia,{variant:"tooltip",info:e,tooltipProps:t,ariaLabel:i,className:a},s):o.createElement(ia,{variant:"popover",info:n,popoverProps:r,ariaLabel:i,className:a},s)});var la=At({name:"LongArrowAltUpIcon",height:512,width:256,svgPath:"M88 166.059V468c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12V166.059h46.059c21.382 0 32.09-25.851 16.971-40.971l-86.059-86.059c-9.373-9.373-24.569-9.373-33.941 0l-86.059 86.059c-15.119 15.119-4.411 40.971 16.971 40.971H88z",yOffset:0,xOffset:0});var ca=At({name:"LongArrowAltDownIcon",height:512,width:256,svgPath:"M168 345.941V44c0-6.627-5.373-12-12-12h-56c-6.627 0-12 5.373-12 12v301.941H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.569 9.373 33.941 0l86.059-86.059c15.119-15.119 4.411-40.971-16.971-40.971H168z",yOffset:0,xOffset:0});var da,pa=At({name:"ArrowsAltVIcon",height:512,width:256,svgPath:"M214.059 377.941H168V134.059h46.059c21.382 0 32.09-25.851 16.971-40.971L144.971 7.029c-9.373-9.373-24.568-9.373-33.941 0L24.971 93.088c-15.119 15.119-4.411 40.971 16.971 40.971H88v243.882H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.568 9.373 33.941 0l86.059-86.059c15.12-15.119 4.412-40.971-16.97-40.971z",yOffset:0,xOffset:0});e.SortByDirection=void 0,(da=e.SortByDirection||(e.SortByDirection={})).asc="asc",da.desc="desc";const ua=t=>{var{children:n=null,className:r="",isSortedBy:a=!1,onSort:s=null,sortDirection:c="",type:d="button"}=t,p=i(t,["children","className","isSortedBy","onSort","sortDirection","type"]);let u;return u=a?c===e.SortByDirection.asc?la:ca:pa,o.createElement("button",Object.assign({},p,{type:d,className:l(r,So.tableButton),onClick:e=>s&&s(e)}),o.createElement("div",{className:l(r,So.tableButtonContent)},o.createElement(aa,null,n),o.createElement("span",{className:l(So.tableSortIndicator)},o.createElement(u,null))))};ua.displayName="SortColumn";const fa=e=>()=>ma(o.createElement(xn,{"aria-hidden":!0}),{columnIndex:e.columnIndex,className:So.modifiers.favorite,ariaLabel:"Sort favorites",column:{extraParams:{sortBy:e.sortBy,onSort:null==e?void 0:e.onSort}}}),ma=(t,{columnIndex:n,column:r,property:a,className:i,ariaLabel:s})=>{const{extraParams:{sortBy:c,onSort:d}}=r,p={columnIndex:n,column:r,property:a},u=c&&n===c.index;return{className:l(So.tableSort,u&&So.modifiers.selected,i),"aria-sort":u?`${c.direction}ending`:"none",children:o.createElement(ua,{isSortedBy:u,sortDirection:u?c.direction:"",onSort:function(t){let r;r=u?c.direction===e.SortByDirection.asc?e.SortByDirection.desc:e.SortByDirection.asc:c.defaultDirection?c.defaultDirection:e.SortByDirection.asc,d&&d(t,n,r,p)},"aria-label":s},t)}};var ha;e.RowSelectVariant=void 0,(ha=e.RowSelectVariant||(e.RowSelectVariant={})).radio="radio",ha.checkbox="checkbox";const ba=e=>{var{children:t=null,className:n,onSelect:r=null,selectVariant:a}=e,s=i(e,["children","className","onSelect","selectVariant"]);return o.createElement(o.Fragment,null,o.createElement("label",null,o.createElement("input",Object.assign({},s,{type:a,onChange:r}))),t)};ba.displayName="SelectColumn";const ga=(t,{rowIndex:n,columnIndex:r,rowData:a,column:i,property:s})=>{const{extraParams:{onSelect:c,selectVariant:d,allRowsSelected:p,isHeaderSelectDisabled:u}}=i,f={rowIndex:n,columnIndex:r,column:i,property:s};if(a&&a.hasOwnProperty("parent")&&!a.showSelect&&!a.fullWidth)return{component:"td",isVisible:!0};const m=void 0!==n?n:-1;const h=Object.assign(Object.assign(Object.assign({},-1!==m?{checked:a&&!!a.selected,"aria-label":`Select row ${n}`}:{checked:p,"aria-label":"Select all rows"}),a&&(a.disableCheckbox||a.disableSelection)&&{disabled:!0,className:ir}),!a&&u&&{disabled:!0});let b="check-all";return-1!==m&&d===e.RowSelectVariant.checkbox?b=`checkrow${n}`:-1!==m&&(b="radioGroup"),{className:l(So.tableCheck),component:"td",isVisible:!a||!a.fullWidth,children:o.createElement(ba,Object.assign({},h,{selectVariant:d,onSelect:function(e){const t=void 0===n?e.currentTarget.checked:a&&!a.selected;c&&c(e,t,m,a,f)},name:b}),t)}},va=e=>()=>({className:l(So.modifiers["number"==typeof e?`width_${e}`:`width${zo(e)}`])}),ya=["hidden","hiddenOnSm","hiddenOnMd","hiddenOnLg","hiddenOnXl","hiddenOn_2xl","visibleOnSm","visibleOnMd","visibleOnLg","visibleOnXl","visibleOn_2xl"].filter((e=>So.modifiers[e])).reduce(((e,t)=>(e[t.replace("_2xl","2Xl")]=So.modifiers[t],e)),{}),wa=(...e)=>()=>({className:l(...e)});var xa=function(){this.__data__=[],this.size=0};var Ca=function(e,t){return e===t||e!=e&&t!=t},Oa=Ca;var Ea=function(e,t){for(var n=e.length;n--;)if(Oa(e[n][0],t))return n;return-1},Na=Ea,ka=Array.prototype.splice;var Ta=Ea;var Sa=Ea;var _a=Ea;var Ra=xa,Ia=function(e){var t=this.__data__,n=Na(t,e);return!(n<0)&&(n==t.length-1?t.pop():ka.call(t,n,1),--this.size,!0)},Da=function(e){var t=this.__data__,n=Ta(t,e);return n<0?void 0:t[n][1]},ja=function(e){return Sa(this.__data__,e)>-1},Pa=function(e,t){var n=this.__data__,r=_a(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function La(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}La.prototype.clear=Ra,La.prototype.delete=Ia,La.prototype.get=Da,La.prototype.has=ja,La.prototype.set=Pa;var Aa=La,Fa=Aa;var Ma=function(){this.__data__=new Fa,this.size=0};var Ba=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var Va=function(e){return this.__data__.get(e)};var Ha=function(e){return this.__data__.has(e)},za="object"==typeof c&&c&&c.Object===Object&&c,$a=za,Wa="object"==typeof self&&self&&self.Object===Object&&self,Ka=$a||Wa||Function("return this")(),Ga=Ka.Symbol,Ua=Ga,qa=Object.prototype,Xa=qa.hasOwnProperty,Ya=qa.toString,Ja=Ua?Ua.toStringTag:void 0;var Qa=function(e){var t=Xa.call(e,Ja),n=e[Ja];try{e[Ja]=void 0;var r=!0}catch(e){}var o=Ya.call(e);return r&&(t?e[Ja]=n:delete e[Ja]),o},Za=Object.prototype.toString;var ei=Qa,ti=function(e){return Za.call(e)},ni=Ga?Ga.toStringTag:void 0;var ri=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ni&&ni in Object(e)?ei(e):ti(e)};var oi=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},ai=ri,ii=oi;var si=function(e){if(!ii(e))return!1;var t=ai(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},li=Ka["__core-js_shared__"],ci=function(){var e=/[^.]+$/.exec(li&&li.keys&&li.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var di=function(e){return!!ci&&ci in e},pi=Function.prototype.toString;var ui=function(e){if(null!=e){try{return pi.call(e)}catch(e){}try{return e+""}catch(e){}}return""},fi=si,mi=di,hi=oi,bi=ui,gi=/^\[object .+?Constructor\]$/,vi=Function.prototype,yi=Object.prototype,wi=vi.toString,xi=yi.hasOwnProperty,Ci=RegExp("^"+wi.call(xi).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Oi=function(e){return!(!hi(e)||mi(e))&&(fi(e)?Ci:gi).test(bi(e))},Ei=function(e,t){return null==e?void 0:e[t]};var Ni=function(e,t){var n=Ei(e,t);return Oi(n)?n:void 0},ki=Ni(Ka,"Map"),Ti=Ni(Object,"create"),Si=Ti;var _i=function(){this.__data__=Si?Si(null):{},this.size=0};var Ri=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ii=Ti,Di=Object.prototype.hasOwnProperty;var ji=function(e){var t=this.__data__;if(Ii){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Di.call(t,e)?t[e]:void 0},Pi=Ti,Li=Object.prototype.hasOwnProperty;var Ai=Ti;var Fi=_i,Mi=Ri,Bi=ji,Vi=function(e){var t=this.__data__;return Pi?void 0!==t[e]:Li.call(t,e)},Hi=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ai&&void 0===t?"__lodash_hash_undefined__":t,this};function zi(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}zi.prototype.clear=Fi,zi.prototype.delete=Mi,zi.prototype.get=Bi,zi.prototype.has=Vi,zi.prototype.set=Hi;var $i=zi,Wi=Aa,Ki=ki;var Gi=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Ui=function(e,t){var n=e.__data__;return Gi(t)?n["string"==typeof t?"string":"hash"]:n.map},qi=Ui;var Xi=Ui;var Yi=Ui;var Ji=Ui;var Qi=function(){this.size=0,this.__data__={hash:new $i,map:new(Ki||Wi),string:new $i}},Zi=function(e){var t=qi(this,e).delete(e);return this.size-=t?1:0,t},es=function(e){return Xi(this,e).get(e)},ts=function(e){return Yi(this,e).has(e)},ns=function(e,t){var n=Ji(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function rs(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}rs.prototype.clear=Qi,rs.prototype.delete=Zi,rs.prototype.get=es,rs.prototype.has=ts,rs.prototype.set=ns;var os=rs,as=Aa,is=ki,ss=os;var ls=Aa,cs=Ma,ds=Ba,ps=Va,us=Ha,fs=function(e,t){var n=this.__data__;if(n instanceof as){var r=n.__data__;if(!is||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ss(r)}return n.set(e,t),this.size=n.size,this};function ms(e){var t=this.__data__=new ls(e);this.size=t.size}ms.prototype.clear=cs,ms.prototype.delete=ds,ms.prototype.get=ps,ms.prototype.has=us,ms.prototype.set=fs;var hs=ms,bs=Ni,gs=function(){try{var e=bs(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),vs=gs;var ys=function(e,t,n){"__proto__"==t&&vs?vs(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},ws=ys,xs=Ca;var Cs=function(e,t,n){(void 0!==n&&!xs(e[t],n)||void 0===n&&!(t in e))&&ws(e,t,n)};var Os=function(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),s=i.length;s--;){var l=i[e?s:++o];if(!1===n(a[l],l,a))break}return t}}(),Es={exports:{}};!function(e,t){var n=Ka,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,a=o&&o.exports===r?n.Buffer:void 0,i=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=i?i(n):new e.constructor(n);return e.copy(r),r}}(Es,Es.exports);var Ns=Ka.Uint8Array,ks=Ns;var Ts=function(e){var t=new e.constructor(e.byteLength);return new ks(t).set(new ks(e)),t};var Ss=function(e,t){var n=t?Ts(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var _s=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},Rs=oi,Is=Object.create,Ds=function(){function e(){}return function(t){if(!Rs(t))return{};if(Is)return Is(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var js=function(e,t){return function(n){return e(t(n))}},Ps=js(Object.getPrototypeOf,Object),Ls=Object.prototype;var As=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ls)},Fs=Ds,Ms=Ps,Bs=As;var Vs=function(e){return"function"!=typeof e.constructor||Bs(e)?{}:Fs(Ms(e))};var Hs=function(e){return null!=e&&"object"==typeof e},zs=ri,$s=Hs;var Ws=function(e){return $s(e)&&"[object Arguments]"==zs(e)},Ks=Hs,Gs=Object.prototype,Us=Gs.hasOwnProperty,qs=Gs.propertyIsEnumerable,Xs=Ws(function(){return arguments}())?Ws:function(e){return Ks(e)&&Us.call(e,"callee")&&!qs.call(e,"callee")},Ys=Xs,Js=Array.isArray;var Qs=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Zs=si,el=Qs;var tl=function(e){return null!=e&&el(e.length)&&!Zs(e)},nl=tl,rl=Hs;var ol=function(e){return rl(e)&&nl(e)},al={exports:{}};var il=function(){return!1};!function(e,t){var n=Ka,r=il,o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o?n.Buffer:void 0,s=(i?i.isBuffer:void 0)||r;e.exports=s}(al,al.exports);var sl=ri,ll=Ps,cl=Hs,dl=Function.prototype,pl=Object.prototype,ul=dl.toString,fl=pl.hasOwnProperty,ml=ul.call(Object);var hl=function(e){if(!cl(e)||"[object Object]"!=sl(e))return!1;var t=ll(e);if(null===t)return!0;var n=fl.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ul.call(n)==ml},bl=ri,gl=Qs,vl=Hs,yl={};yl["[object Float32Array]"]=yl["[object Float64Array]"]=yl["[object Int8Array]"]=yl["[object Int16Array]"]=yl["[object Int32Array]"]=yl["[object Uint8Array]"]=yl["[object Uint8ClampedArray]"]=yl["[object Uint16Array]"]=yl["[object Uint32Array]"]=!0,yl["[object Arguments]"]=yl["[object Array]"]=yl["[object ArrayBuffer]"]=yl["[object Boolean]"]=yl["[object DataView]"]=yl["[object Date]"]=yl["[object Error]"]=yl["[object Function]"]=yl["[object Map]"]=yl["[object Number]"]=yl["[object Object]"]=yl["[object RegExp]"]=yl["[object Set]"]=yl["[object String]"]=yl["[object WeakMap]"]=!1;var wl=function(e){return vl(e)&&gl(e.length)&&!!yl[bl(e)]};var xl=function(e){return function(t){return e(t)}},Cl={exports:{}};!function(e,t){var n=za,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,a=o&&o.exports===r&&n.process,i=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=i}(Cl,Cl.exports);var Ol=wl,El=xl,Nl=Cl.exports,kl=Nl&&Nl.isTypedArray,Tl=kl?El(kl):Ol;var Sl=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},_l=ys,Rl=Ca,Il=Object.prototype.hasOwnProperty;var Dl=function(e,t,n){var r=e[t];Il.call(e,t)&&Rl(r,n)&&(void 0!==n||t in e)||_l(e,t,n)},jl=ys;var Pl=function(e,t,n,r){var o=!n;n||(n={});for(var a=-1,i=t.length;++a<i;){var s=t[a],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),o?jl(n,s,l):Dl(n,s,l)}return n};var Ll=/^(?:0|[1-9]\d*)$/;var Al=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Ll.test(e))&&e>-1&&e%1==0&&e<t},Fl=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},Ml=Ys,Bl=Js,Vl=al.exports,Hl=Al,zl=Tl,$l=Object.prototype.hasOwnProperty;var Wl=function(e,t){var n=Bl(e),r=!n&&Ml(e),o=!n&&!r&&Vl(e),a=!n&&!r&&!o&&zl(e),i=n||r||o||a,s=i?Fl(e.length,String):[],l=s.length;for(var c in e)!t&&!$l.call(e,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Hl(c,l))||s.push(c);return s};var Kl=oi,Gl=As,Ul=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},ql=Object.prototype.hasOwnProperty;var Xl=Wl,Yl=function(e){if(!Kl(e))return Ul(e);var t=Gl(e),n=[];for(var r in e)("constructor"!=r||!t&&ql.call(e,r))&&n.push(r);return n},Jl=tl;var Ql=function(e){return Jl(e)?Xl(e,!0):Yl(e)},Zl=Pl,ec=Ql;var tc=Cs,nc=Es.exports,rc=Ss,oc=_s,ac=Vs,ic=Ys,sc=Js,lc=ol,cc=al.exports,dc=si,pc=oi,uc=hl,fc=Tl,mc=Sl,hc=function(e){return Zl(e,ec(e))};var bc=hs,gc=Cs,vc=Os,yc=function(e,t,n,r,o,a,i){var s=mc(e,n),l=mc(t,n),c=i.get(l);if(c)tc(e,n,c);else{var d=a?a(s,l,n+"",e,t,i):void 0,p=void 0===d;if(p){var u=sc(l),f=!u&&cc(l),m=!u&&!f&&fc(l);d=l,u||f||m?sc(s)?d=s:lc(s)?d=oc(s):f?(p=!1,d=nc(l,!0)):m?(p=!1,d=rc(l,!0)):d=[]:uc(l)||ic(l)?(d=s,ic(s)?d=hc(s):pc(s)&&!dc(s)||(d=ac(l))):p=!1}p&&(i.set(l,d),o(d,l,r,a,i),i.delete(l)),tc(e,n,d)}},wc=oi,xc=Ql,Cc=Sl;var Oc=function e(t,n,r,o,a){t!==n&&vc(n,(function(i,s){if(a||(a=new bc),wc(i))yc(t,n,s,r,e,o,a);else{var l=o?o(Cc(t,s),i,s+"",t,n,a):void 0;void 0===l&&(l=i),gc(t,s,l)}}),xc)};var Ec=function(e){return e};var Nc=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},kc=Math.max;var Tc=function(e,t,n){return t=kc(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,a=kc(r.length-t,0),i=Array(a);++o<a;)i[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(i),Nc(e,this,s)}};var Sc=function(e){return function(){return e}},_c=gs,Rc=_c?function(e,t){return _c(e,"toString",{configurable:!0,enumerable:!1,value:Sc(t),writable:!0})}:Ec,Ic=Date.now;var Dc=function(e){var t=0,n=0;return function(){var r=Ic(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},jc=Dc(Rc),Pc=Ec,Lc=Tc,Ac=jc;var Fc=function(e,t){return Ac(Lc(e,t,Pc),e+"")},Mc=Ca,Bc=tl,Vc=Al,Hc=oi;var zc=Fc,$c=function(e,t,n){if(!Hc(n))return!1;var r=typeof t;return!!("number"==r?Bc(n)&&Vc(t,n.length):"string"==r&&t in n)&&Mc(n[t],e)};var Wc=Oc,Kc=function(e){return zc((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,i&&$c(n[0],n[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,a)}return t}))}((function(e,t,n,r){Wc(e,t,n,r)}));function Gc(...e){const t=e[0],n=e.slice(1);return n.length?Kc(Kc({},t),...n,((e,t,n)=>"children"===n?e&&t?o.cloneElement(e,{children:t}):Object.assign(Object.assign({},t),e):"className"===n?l(e,t):void 0)):Kc({},t)}const Uc=e=>{var{children:t,className:n,component:r="th",dataLabel:a,scope:s="col",textCenter:c=!1,sort:d=null,modifier:p,select:u=null,tooltip:f="",onMouseEnter:m=(()=>{}),width:h,visibility:b,innerRef:g,info:v,isStickyColumn:y=!1,hasRightBorder:w=!1,stickyMinWidth:x="120px",stickyLeftOffset:C,isSubheader:O=!1}=e,E=i(e,["children","className","component","dataLabel","scope","textCenter","sort","modifier","select","tooltip","onMouseEnter","width","visibility","innerRef","info","isStickyColumn","hasRightBorder","stickyMinWidth","stickyLeftOffset","isSubheader"]);const[N,k]=o.useState(!1);let T=null;d&&(T=d.isFavorites?fa({onSort:null==d?void 0:d.onSort,columnIndex:d.columnIndex,sortBy:d.sortBy})():ma(t,{columnIndex:d.columnIndex,column:{extraParams:{sortBy:d.sortBy,onSort:null==d?void 0:d.onSort}}}));const S=u?ga(t,{column:{extraParams:{onSelect:null==u?void 0:u.onSelect,selectVariant:"checkbox",allRowsSelected:u.isSelected,isHeaderSelectDisabled:!!u.isHeaderSelectDisabled}}}):null,_=h?va(h)():null,R=b?wa(...b.map((e=>ya[e])))():null;let I=(null==T?void 0:T.children)||(null==S?void 0:S.children)||t,D=null;v&&(D=sa(v)(I),I=D.children);const j=Gc(T,S,_,R,D),{children:P=null,isVisible:L=null,className:A="",component:F=r}=j,M=i(j,["children","isVisible","className","component"]),B=o.createElement(F,Object.assign({"data-label":a,onMouseEnter:null!==f?e=>{e.target.offsetWidth<e.target.scrollWidth?!N&&k(!0):N&&k(!1),m(e)}:m,scope:"th"===r&&t?s:null,ref:g,className:l(n,c&&So.modifiers.center,O&&So.tableSubhead,y&&ta,w&&Qo.borderRight,p&&So.modifiers[p],A)},M,E,y&&{style:Object.assign({"--pf-c-table__sticky-column--MinWidth":x||void 0,"--pf-c-table__sticky-column--Left":C||void 0},E.style)}),I);return null!==f&&(""!==f||"string"==typeof t)&&N?o.createElement(Yt,{content:f||""===f&&t,isVisible:!0},B):B},qc=o.forwardRef(((e,t)=>o.createElement(Uc,Object.assign({},e,{innerRef:t}))));qc.displayName="Th";class Xc extends o.Component{constructor(e){super(e),this.toggleRef=o.createRef(),this.onToggle=e=>{this.setState({isOpen:e})},this.onClick=(e,t)=>{const{rowData:n,extraData:r}=this.props;t&&(e.preventDefault(),t(e,r&&r.rowIndex,n,r))},this.state={isOpen:!1}}render(){const{isOpen:e}=this.state,{items:t,children:n,dropdownPosition:r,dropdownDirection:a,isDisabled:s,rowData:l,actionsToggle:c}=this.props,d=c?c({onToggle:this.onToggle,isOpen:e,isDisabled:s}):o.createElement(yn,{isDisabled:s,onToggle:this.onToggle}),p=t.filter((e=>e.isOutsideDropdown)),u=t.filter((e=>!e.isOutsideDropdown));return o.createElement(o.Fragment,null,p.map(((e,t)=>{var{title:n,itemKey:r,onClick:a,isOutsideDropdown:l}=e,c=i(e,["title","itemKey","onClick","isOutsideDropdown"]);return"string"==typeof n?o.createElement(jt,Object.assign({onClick:e=>this.onClick(e,a)},c,{isDisabled:s,key:r||`outside_dropdown_${t}`,"data-key":r||`outside_dropdown_${t}`}),n):o.cloneElement(n,Object.assign({onClick:a,isDisabled:s},c))})),o.createElement(an,Object.assign({toggle:d,position:r,direction:a,isOpen:e,dropdownItems:u.map(((t,n)=>{var{title:r,itemKey:a,onClick:s,isSeparator:l}=t,c=i(t,["title","itemKey","onClick","isSeparator"]);return l?o.createElement(un,Object.assign({},c,{key:a||n,"data-key":a||n})):o.createElement(ln,Object.assign({component:"button",onClick:t=>{this.onClick(t,s),this.onToggle(!e)}},c,{key:a||n,"data-key":a||n}),r)})),isPlain:!0},l&&l.actionProps)),n)}}Xc.displayName="ActionsColumn",Xc.defaultProps={children:null,items:[],dropdownPosition:Jt.right,dropdownDirection:Qt.down,rowData:{},extraData:{}};const Yc=(e,t,n,r)=>"function"==typeof e?e(n,r):t,Jc=(e,t,n)=>(r,{rowData:a,column:i,rowIndex:s,columnIndex:c,column:{extraParams:{dropdownPosition:d,dropdownDirection:p,actionsToggle:u}},property:f})=>{const m={rowIndex:s,columnIndex:c,column:i,property:f},h=Yc(t,e,a,m),b=Yc(n,a&&a.disableActions,a,m),g=h&&h.length>0?{children:o.createElement(Xc,{items:h,dropdownPosition:d,dropdownDirection:p,isDisabled:b,rowData:a,extraData:m,actionsToggle:u},r)}:{};return Object.assign({className:l(So.tableAction),style:{width:"auto",paddingRight:0},isVisible:!0},g)},Qc=e=>{var{className:t="",children:n=null,isOpen:r,onToggle:a}=e,s=i(e,["className","children","isOpen","onToggle"]);return o.createElement(o.Fragment,null,void 0!==r&&o.createElement(jt,Object.assign({className:l(t,r&&So.modifiers.expanded)},s,{variant:"plain","aria-label":"Details",onClick:a,"aria-expanded":r}),o.createElement("div",{className:l(So.tableToggleIcon)},o.createElement(Wr,null))),n)};Qc.displayName="CollapseColumn";const Zc=e=>{var{children:t=null}=e,n=i(e,["children"]);return o.createElement("div",Object.assign({},n,{className:l(So.tableExpandableRowContent)}),t)};Zc.displayName="ExpandableRowContent";const ed=(e,{rowIndex:t,columnIndex:n,rowData:r,column:a,property:i})=>{const{extraParams:{onCollapse:s,rowLabeledBy:c="simple-node",expandId:d="expand-toggle"}}=a,p={rowIndex:t,columnIndex:n,column:a,property:i};return{className:void 0!==r.isOpen&&l(So.tableToggle),isVisible:!r.fullWidth,children:o.createElement(Qc,{"aria-labelledby":`${c}${t} ${d}${t}`,onToggle:function(e){s&&s(e,t,r&&!r.isOpen,r,p)},id:d+t,isOpen:r&&r.isOpen},e)}},td=e=>(t,{columnIndex:n,rowIndex:r,rowData:o,column:{extraParams:{contentId:a="expanded-content"}}})=>t&&o.hasOwnProperty("parent")&&{colSpan:o.cells&&1!==o.cells.length?1:e+!!o.fullWidth,id:a+r+(n?"-"+n:""),className:o.noPadding&&l(So.modifiers.noPadding)},nd=(e,{rowIndex:t,columnIndex:n,rowData:r,column:a,property:i})=>{if(!e)return null;const{title:s,props:c}=e,{extraParams:{onExpand:d}}=a,p={rowIndex:t,columnIndex:n,column:a,property:i};return{className:l(So.tableCompoundExpansionToggle,c.isOpen&&So.modifiers.expanded),children:void 0!==c.isOpen&&o.createElement("button",{type:"button",className:l(So.tableButton),onClick:function(e){d&&d(e,t,n,c.isOpen,r,p)},"aria-expanded":c.isOpen,"aria-controls":c.ariaControls},o.createElement(aa,null,s))}},rd=e=>{var{className:t="",onFavorite:n,isFavorited:r,rowIndex:a}=e,s=i(e,["className","onFavorite","isFavorited","rowIndex"]);const l=void 0===a?{}:{id:`favorites-button-${a}`,"aria-labelledby":`favorites-button-${a}`};return o.createElement(jt,Object.assign({variant:"plain",className:t,type:"button","aria-label":r?"Starred":"Not starred",onClick:n},l,s),o.createElement(xn,{"aria-hidden":!0}))};rd.displayName="FavoritesCell";const od=(e,{rowIndex:t,columnIndex:n,rowData:r,column:a,property:i})=>{const{extraParams:{onFavorite:s}}=a,c={rowIndex:t,columnIndex:n,column:a,property:i};if(r&&r.hasOwnProperty("parent")&&!r.fullWidth)return{component:"td",isVisible:!0};const d=r.favoritesProps||{};return{className:l(So.tableFavorite,r&&r.favorited&&So.modifiers.favorited),isVisible:!r||!r.fullWidth,children:o.createElement(rd,Object.assign({rowIndex:t,onFavorite:function(e){s&&s(e,r&&!r.favorited,t,r,c)},isFavorited:r&&r.favorited},d))}},ad=e=>{var{className:t,onClick:n,"aria-label":r,id:a}=e,s=i(e,["className","onClick","aria-label","id"]);return o.createElement(jt,Object.assign({id:a,variant:"plain",className:t,type:"button","aria-label":r||"Draggable row draggable button",onClick:n},s),o.createElement(Kr,{"aria-hidden":!0}))};ad.displayName="DraggableCell";var id=At({name:"EllipsisHIcon",height:512,width:512,svgPath:"M328 256c0 39.8-32.2 72-72 72s-72-32.2-72-72 32.2-72 72-72 72 32.2 72 72zm104-72c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm-352 0c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72z",yOffset:0,xOffset:0});const sd=(e,t,n)=>(r,{rowIndex:a,rowData:i})=>{const{isExpanded:s,isDetailsExpanded:c,"aria-level":d,"aria-setsize":p,toggleAriaLabel:u,checkAriaLabel:f,showDetailsAriaLabel:m,isChecked:h,checkboxId:b,icon:g}=i.props,v=r.title||r,y=o.createElement("div",{className:l(Fo),key:"tree-view-text"},g&&o.createElement("span",{className:l(Lo),key:"tree-view-text-icon"},g),o.createElement("span",{className:"pf-c-table__text",key:"table-text"},v));return{component:"th",className:"pf-c-table__tree-view-title-cell",children:void 0!==d?o.createElement("div",{className:l(Ao)},p>0&&o.createElement("span",{className:l(Do),key:"table-toggle"},o.createElement(jt,{variant:"plain",onClick:t=>e&&e(t,a,v,i),className:l(s&&So.modifiers.expanded),"aria-expanded":s,"aria-label":u||`${s?"Collapse":"Expand"} row ${a}`},o.createElement("div",{className:l(jo)},o.createElement(Wr,{"aria-hidden":"true"})))),!!t&&o.createElement("span",{className:l(Io),key:"table-check"},o.createElement($r,{id:b||`checkbox_${a}`,"aria-label":f||`Row ${a} checkbox`,isChecked:h,onChange:(e,n)=>{t(n,e,a,v,i)}})),y,!!n&&o.createElement("span",{className:l(Po),key:"view-details-toggle"},o.createElement(jt,{variant:"plain","aria-expanded":c,"aria-label":m||"Show row details",onClick:e=>n&&n(e,a,v,i)},o.createElement("span",{className:"pf-c-table__details-toggle-icon"},o.createElement(id,{"aria-hidden":!0}))))):y}},ld=e=>{var{children:t,className:n,component:r="td",dataLabel:a,textCenter:s=!1,modifier:c,select:d=null,actions:p=null,expand:u=null,treeRow:f=null,compoundExpand:m=null,noPadding:h,width:b,visibility:g,innerRef:v,favorites:y=null,draggableRow:w=null}=e,x=i(e,["children","className","component","dataLabel","textCenter","modifier","select","actions","expand","treeRow","compoundExpand","noPadding","width","visibility","innerRef","favorites","draggableRow"]);const C=d?ga(t,{rowIndex:d.rowIndex,rowData:{selected:d.isSelected,disableSelection:null==d?void 0:d.disable,props:null==d?void 0:d.props},column:{extraParams:{onSelect:null==d?void 0:d.onSelect,selectVariant:d.variant||"checkbox"}}}):null,O=y?od(0,{rowIndex:null==y?void 0:y.rowIndex,rowData:{favorited:y.isFavorited,favoritesProps:null==y?void 0:y.props},column:{extraParams:{onFavorite:null==y?void 0:y.onFavorite}}}):null,E=null!==w?((e,{rowData:t})=>{const{id:n}=t;return{className:"",children:o.createElement(ad,{id:n})}})(0,{rowData:{id:w.id}}):null,N=p?Jc(p.items,null,null):null,k=Gc(C,N?N(null,{rowData:{disableActions:null==p?void 0:p.disable},column:{extraParams:{dropdownPosition:null==p?void 0:p.dropdownPosition,dropdownDirection:null==p?void 0:p.dropdownDirection,actionsToggle:null==p?void 0:p.actionsToggle}}}):null,null!==u?ed(null,{rowIndex:u.rowIndex,columnIndex:null==u?void 0:u.columnIndex,rowData:{isOpen:u.isExpanded},column:{extraParams:{onCollapse:null==u?void 0:u.onToggle}}}):null,null!==m?nd({title:t,props:{isOpen:m.isExpanded}},{column:{extraParams:{onExpand:null==m?void 0:m.onToggle}}}):null,b?va(b)():null,g?wa(...g.map((e=>ya[e])))():null,O,null!==f?sd(f.onCollapse,f.onCheckChange,f.onToggleRowDetails)({title:t},{rowIndex:f.rowIndex,rowData:{props:f.props}}):null,E),{isVisible:T=null,children:S=null,className:_="",component:R=r}=k,I=i(k,["isVisible","children","className","component"]),D=n&&n.includes("pf-c-table__tree-view-title-cell")||_&&_.includes("pf-c-table__tree-view-title-cell");return o.createElement(R,Object.assign({},!D&&{"data-label":a},{className:l(n,s&&So.modifiers.center,h&&So.modifiers.noPadding,So.modifiers[c],E&&So.tableDraggable,_),ref:v},I,x),S||t)},cd=o.forwardRef(((e,t)=>o.createElement(ld,Object.assign({},e,{innerRef:t}))));cd.displayName="Td";const dd={renderers:{table:Ko,header:{wrapper:Uo,row:Jo,cell:qc},body:{wrapper:Xo,row:Jo,cell:cd}}},pd=o.createContext({columns:null,renderers:null});class ud extends o.Component{render(){const e=this.props,{columns:t,renderers:n,components:r,children:a}=e,s=i(e,["columns","renderers","components","children"]);let l=n;r&&(console.warn("`components` have been deprecated in favor of `renderers` and will be removed in the next major version, please rename!"),l=r);const c=o.createElement(n.table||dd.renderers.table,s,a);return o.createElement(pd.Provider,{value:{columns:t,renderers:{table:l.table||dd.renderers.table,header:Object.assign(Object.assign({},dd.renderers.header),l.header),body:Object.assign(Object.assign({},dd.renderers.body),l.body)}}},c)}}function fd(e){return(t,n)=>e.reduce(((e,t)=>({value:t(e.value,e.extra),extra:n})),{value:t,extra:n}).value}function md(e=[],t,n={}){return 0===e.length?{}:Gc(...e.map((e=>e(t,n))))}ud.displayName="Provider",ud.defaultProps={renderers:dd.renderers};const hd=({rowData:e,rowIndex:t,renderers:n,onRow:r=(()=>({}))})=>o.createElement(n.row,r(e,{rowIndex:t}),e.map(((e,t)=>{const{property:r,header:a={},props:i={}}=e,s=r||a&&a.property,{label:l,transforms:c=[],formatters:d=[],info:p={}}=a,u={columnIndex:t,property:s,column:e},f=md(c,l,u);let m;f||console.warn("Table.Header - Failed to receive a transformed result");const{tooltip:h,tooltipProps:b,popover:g,popoverProps:v,ariaLabel:y,className:w}=p;return m=h?o.createElement(ia,{variant:"tooltip",info:h,tooltipProps:b,ariaLabel:y,className:w},f.children||fd(d)(l,u)):g?o.createElement(ia,{variant:"popover",info:g,popoverProps:v,ariaLabel:y,className:w},f.children||fd(d)(l,u)):f.children||fd(d)(l,u),o.createElement(n.cell,Object.assign({key:`${t}-header`},Gc(i,a&&a.props,f)),m)})));hd.displayName="HeaderRow";class bd extends o.Component{render(){const e=this.props,{children:t,headerRows:n,onRow:r,renderers:a,columns:s}=e,l=i(e,["children","headerRows","onRow","renderers","columns"]);return o.createElement(a.header.wrapper,l,[(n||[s]).map(((e,t)=>o.createElement(hd,{key:`${t}-header-row`,renderers:a.header,onRow:r,rowData:e,rowIndex:t})))].concat(t))}}const gd=e=>o.createElement(pd.Consumer,null,(({columns:t,renderers:n})=>o.createElement(bd,Object.assign({columns:t,renderers:n},e))));var vd=os,yd=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},wd=function(e){return this.__data__.has(e)};function xd(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new vd;++t<n;)this.add(e[t])}xd.prototype.add=xd.prototype.push=yd,xd.prototype.has=wd;var Cd=xd,Od=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},Ed=function(e,t){return e.has(t)};var Nd=function(e,t,n,r,o,a){var i=1&n,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))return!1;var c=a.get(e),d=a.get(t);if(c&&d)return c==t&&d==e;var p=-1,u=!0,f=2&n?new Cd:void 0;for(a.set(e,t),a.set(t,e);++p<s;){var m=e[p],h=t[p];if(r)var b=i?r(h,m,p,t,e,a):r(m,h,p,e,t,a);if(void 0!==b){if(b)continue;u=!1;break}if(f){if(!Od(t,(function(e,t){if(!Ed(f,t)&&(m===e||o(m,e,n,r,a)))return f.push(t)}))){u=!1;break}}else if(m!==h&&!o(m,h,n,r,a)){u=!1;break}}return a.delete(e),a.delete(t),u};var kd=Ns,Td=Ca,Sd=Nd,_d=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},Rd=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},Id=Ga?Ga.prototype:void 0,Dd=Id?Id.valueOf:void 0;var jd=function(e,t,n,r,o,a,i){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new kd(e),new kd(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Td(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=_d;case"[object Set]":var l=1&r;if(s||(s=Rd),e.size!=t.size&&!l)return!1;var c=i.get(e);if(c)return c==t;r|=2,i.set(e,t);var d=Sd(s(e),s(t),r,o,a,i);return i.delete(e),d;case"[object Symbol]":if(Dd)return Dd.call(e)==Dd.call(t)}return!1};var Pd=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},Ld=Pd,Ad=Js;var Fd=function(e,t,n){var r=t(e);return Ad(e)?r:Ld(r,n(e))};var Md=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a},Bd=function(){return[]},Vd=Object.prototype.propertyIsEnumerable,Hd=Object.getOwnPropertySymbols,zd=Hd?function(e){return null==e?[]:(e=Object(e),Md(Hd(e),(function(t){return Vd.call(e,t)})))}:Bd,$d=js(Object.keys,Object),Wd=As,Kd=$d,Gd=Object.prototype.hasOwnProperty;var Ud=Wl,qd=function(e){if(!Wd(e))return Kd(e);var t=[];for(var n in Object(e))Gd.call(e,n)&&"constructor"!=n&&t.push(n);return t},Xd=tl;var Yd=Fd,Jd=zd,Qd=function(e){return Xd(e)?Ud(e):qd(e)};var Zd=function(e){return Yd(e,Qd,Jd)},ep=Object.prototype.hasOwnProperty;var tp=function(e,t,n,r,o,a){var i=1&n,s=Zd(e),l=s.length;if(l!=Zd(t).length&&!i)return!1;for(var c=l;c--;){var d=s[c];if(!(i?d in t:ep.call(t,d)))return!1}var p=a.get(e),u=a.get(t);if(p&&u)return p==t&&u==e;var f=!0;a.set(e,t),a.set(t,e);for(var m=i;++c<l;){var h=e[d=s[c]],b=t[d];if(r)var g=i?r(b,h,d,t,e,a):r(h,b,d,e,t,a);if(!(void 0===g?h===b||o(h,b,n,r,a):g)){f=!1;break}m||(m="constructor"==d)}if(f&&!m){var v=e.constructor,y=t.constructor;v==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y||(f=!1)}return a.delete(e),a.delete(t),f},np=Ni(Ka,"DataView"),rp=ki,op=Ni(Ka,"Promise"),ap=Ni(Ka,"Set"),ip=Ni(Ka,"WeakMap"),sp=ri,lp=ui,cp="[object Map]",dp="[object Promise]",pp="[object Set]",up="[object WeakMap]",fp="[object DataView]",mp=lp(np),hp=lp(rp),bp=lp(op),gp=lp(ap),vp=lp(ip),yp=sp;(np&&yp(new np(new ArrayBuffer(1)))!=fp||rp&&yp(new rp)!=cp||op&&yp(op.resolve())!=dp||ap&&yp(new ap)!=pp||ip&&yp(new ip)!=up)&&(yp=function(e){var t=sp(e),n="[object Object]"==t?e.constructor:void 0,r=n?lp(n):"";if(r)switch(r){case mp:return fp;case hp:return cp;case bp:return dp;case gp:return pp;case vp:return up}return t});var wp=hs,xp=Nd,Cp=jd,Op=tp,Ep=yp,Np=Js,kp=al.exports,Tp=Tl,Sp="[object Arguments]",_p="[object Array]",Rp="[object Object]",Ip=Object.prototype.hasOwnProperty;var Dp=function(e,t,n,r,o,a){var i=Np(e),s=Np(t),l=i?_p:Ep(e),c=s?_p:Ep(t),d=(l=l==Sp?Rp:l)==Rp,p=(c=c==Sp?Rp:c)==Rp,u=l==c;if(u&&kp(e)){if(!kp(t))return!1;i=!0,d=!1}if(u&&!d)return a||(a=new wp),i||Tp(e)?xp(e,t,n,r,o,a):Cp(e,t,l,n,r,o,a);if(!(1&n)){var f=d&&Ip.call(e,"__wrapped__"),m=p&&Ip.call(t,"__wrapped__");if(f||m){var h=f?e.value():e,b=m?t.value():t;return a||(a=new wp),o(h,b,n,r,a)}}return!!u&&(a||(a=new wp),Op(e,t,n,r,o,a))},jp=Hs;var Pp=function e(t,n,r,o,a){return t===n||(null==t||null==n||!jp(t)&&!jp(n)?t!=t&&n!=n:Dp(t,n,r,o,e,a))},Lp=Pp;var Ap=function(e,t){return Lp(e,t)};var Fp=Pp;var Mp=function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?Fp(e,t,void 0,n):!!r};class Bp extends o.Component{shouldComponentUpdate(e){const{columns:t,rowData:n}=this.props,{renderers:r}=e;return r&&r.row&&r.row.shouldComponentUpdate?"function"!=typeof r.row.shouldComponentUpdate||r.row.shouldComponentUpdate.call(this,e,{},{}):(o=t,a=e.columns,!(Mp(o,a,((e,t)=>{if("function"==typeof e&&"function"==typeof t)return e===t}))&&Ap(n,e.rowData)));var o,a}render(){const{columns:e,renderers:t,onRow:n,rowKey:r,rowIndex:a,rowData:i}=this.props;return o.createElement(t.row,n(i,{rowIndex:a,rowKey:r}),e.map(((e,n)=>{const{property:s,cell:l,props:c}=e,d=s||l&&l.property,{transforms:p=[],formatters:u=[]}=l||{},f={columnIndex:n,property:d,column:e,rowData:i,rowIndex:a,rowKey:r},m=md(p,i[d],f);m||console.warn("Table.Body - Failed to receive a transformed result");let h=[];return i[d]&&(h=i[d].formatters),o.createElement(t.cell,Object.assign({key:`col-${n}-row-${a}`},Gc(c,l&&l.props,m)),!i.fullWidth&&m.children||fd([...u,...h])(i[`_${d}`]||i[d],f))})))}}Bp.displayName="BodyRow",Bp.defaultProps={onRow:(...e)=>({})};class Vp extends o.Component{constructor(){super(...arguments),this.omitOnRow=e=>i(e,["onRow"])}shouldComponentUpdate(e){const{renderers:t}=e;return t&&t.body&&t.body.wrapper&&t.body.wrapper.shouldComponentUpdate?"function"!=typeof t.body.wrapper.shouldComponentUpdate||t.body.wrapper.shouldComponentUpdate.call(this,e,{},{}):!Ap(this.omitOnRow(this.props),this.omitOnRow(e))}render(){const e=this.props,{onRow:t,rows:n,rowKey:r,columns:a,renderers:s}=e,l=i(e,["onRow","rows","rowKey","columns","renderers"]),c=n.map(((e,n)=>{const i=function({rowData:e,rowIndex:t,rowKey:n}){return"function"==typeof n?`${n({rowData:e,rowIndex:t})}-row`:0===e[n]?`${e[n]}-row`:`${e[n]||t}-row`}({rowData:e,rowIndex:n,rowKey:r});return o.createElement(Bp,{key:i,renderers:s.body,onRow:t,rowKey:i,rowIndex:n,rowData:e,columns:a})}));return o.createElement(s.body.wrapper,l,c)}}Vp.defaultProps={onRow:(...e)=>({})};const Hp=e=>o.createElement(pd.Consumer,null,(({columns:t,renderers:n})=>o.createElement(Vp,Object.assign({columns:t,renderers:n},e)))),zp=e=>{var{"data-label":t="",className:n="",colSpan:r,component:a="td",isVisible:s,parentId:l,textCenter:c=!1,tooltip:d="",onMouseEnter:p=(()=>{}),children:u,errorText:f,isValid:m,isOpen:h,ariaControls:b,editableValue:g,editableSelectProps:v,options:y,isSelectOpen:w,value:x,name:C}=e,O=i(e,["data-label","className","colSpan","component","isVisible","parentId","textCenter","tooltip","onMouseEnter","children","errorText","isValid","isOpen","ariaControls","editableValue","editableSelectProps","options","isSelectOpen","value","name"]);const[E,N]=o.useState("");let k=!1;u&&(k=u.type===To&&u.props.children&&u.props.children.type===wo||u.type===wo);const T=o.createElement(cd,Object.assign({className:n,component:a,dataLabel:t&&null==l&&!k?t:null,onMouseEnter:e=>{e.target.offsetWidth<e.target.scrollWidth?d?N(d):"string"==typeof u&&N(u):N(""),p(e)},textCenter:c,colSpan:r},O),u),S=""!==E?o.createElement(Yt,{content:E,isVisible:!0},T):T;return void 0!==l&&void 0===r||!s?null:S};zp.displayName="BodyCell";const $p=e=>{var{className:t="",component:n="th",scope:r="",textCenter:a=!1,tooltip:s="",onMouseEnter:l=(()=>{}),children:c,isVisible:d,dataLabel:p=""}=e,u=i(e,["className","component","scope","textCenter","tooltip","onMouseEnter","children","isVisible","dataLabel"]);return o.createElement(qc,Object.assign({},u,{scope:r,tooltip:s,onMouseEnter:l,textCenter:a,component:n,className:t}),c)};$p.displayName="HeaderCell";class Wp extends o.Component{constructor(e){super(e),this.handleScroll=e=>{this._unmounted||this.props.onScroll(e)},this.handleResize=e=>{this._unmounted||this.props.onResize(e)},e.onScroll&&(this.handleScroll=U(this.handleScroll,100)),e.onResize&&(this.handleResize=U(this.handleResize,100))}componentDidMount(){this._unmounted=!1,Z&&(this.props.onScroll&&window.addEventListener("scroll",this.handleScroll),this.props.onResize&&window.addEventListener("resize",this.handleResize))}componentWillUnmount(){this._unmounted=!0,Z&&(this.props.onScroll&&window.removeEventListener("scroll",this.handleScroll),this.props.onResize&&window.removeEventListener("resize",this.handleResize))}render(){const e=this.props,{onScroll:t,onResize:n,row:{isExpanded:r,isEditable:a,isHoverable:s,isRowSelected:l},rowProps:c,trRef:d,className:p,ouiaId:u}=e,f=i(e,["onScroll","onResize","row","rowProps","trRef","className","ouiaId"]);return o.createElement(Jo,Object.assign({},f,{ref:d,isExpanded:r,isEditable:a,className:p,ouiaId:u,isHoverable:s,isRowSelected:l}))}}Wp.displayName="RowWrapper",Wp.defaultProps={className:"",row:{isOpen:void 0,isExpanded:void 0,isHeightAuto:void 0,isEditable:void 0},rowProps:null};const Kp=()=>({component:"td"}),Gp=()=>({scope:"col"}),Up=e=>Object.assign({},e?{}:{scope:""}),qp=(e,{rowData:t})=>({parentId:t.parent}),Xp=(e,{property:t,rowData:n})=>Object.assign({},n[t]&&n[t].props);var Yp=At({name:"PencilAltIcon",height:512,width:512,svgPath:"M497.9 142.1l-46.1 46.1c-4.7 4.7-12.3 4.7-17 0l-111-111c-4.7-4.7-4.7-12.3 0-17l46.1-46.1c18.7-18.7 49.1-18.7 67.9 0l60.1 60.1c18.8 18.7 18.8 49.1 0 67.9zM284.2 99.8L21.6 362.4.4 483.9c-2.9 16.4 11.4 30.6 27.8 27.8l121.5-21.3 262.6-262.6c4.7-4.7 4.7-12.3 0-17l-111-111c-4.8-4.7-12.4-4.7-17.1 0zM124.1 339.9c-5.5-5.5-5.5-14.3 0-19.8l154-154c5.5-5.5 14.3-5.5 19.8 0s5.5 14.3 0 19.8l-154 154c-5.5 5.5-14.3 5.5-19.8 0zM88 424h48v36.3l-64.5 11.3-31.1-31.1L51.7 376H88v48z",yOffset:0,xOffset:0});const Jp=e=>{var{onClick:t=null,className:n="",editing:r,valid:a,saveAriaLabel:s,cancelAriaLabel:c,editAriaLabel:d}=e,p=i(e,["onClick","className","editing","valid","saveAriaLabel","cancelAriaLabel","editAriaLabel"]);return o.createElement(o.Fragment,null,o.createElement("div",{className:l(Oo,ko.iconGroup,"pf-m-action-group")},o.createElement("div",{className:l(Co)},o.createElement(jt,Object.assign({"aria-label":s},p,{onClick:e=>t(e,"save"),variant:"plain"}),o.createElement(cr,null))),o.createElement("div",{className:l(Co)},o.createElement(jt,Object.assign({"aria-label":c},p,{onClick:e=>t(e,"cancel"),variant:"plain"}),o.createElement(Ft,null)))),o.createElement("div",{className:l(Co,ko.enableEditable)},o.createElement(jt,Object.assign({"aria-label":d},p,{onClick:e=>t(e,"edit"),variant:"plain"}),o.createElement(Yp,null))))};Jp.displayName="EditColumn";const Qp=(e,{rowIndex:t,rowData:n,column:r})=>{const{extraParams:{onRowEdit:a}}=r;function i(e,t){let n;switch(t){case"cancel":n=`Cancel row edits for row ${e}`;break;case"save":n=`Save row edits for row ${e}`;break;default:n=`Place row ${e} in edit mode`}return n}return{className:So.tableInlineEditAction,component:"td",isVisible:!0,children:o.createElement(Jp,{saveAriaLabel:n&&n.rowSaveBtnAriaLabel&&n.rowSaveBtnAriaLabel(t)||i(t,"save"),cancelAriaLabel:n&&n.rowCancelBtnAriaLabel&&n.rowCancelBtnAriaLabel(t)||i(t,"cancel"),editAriaLabel:n&&n.rowEditBtnAriaLabel&&n.rowEditBtnAriaLabel(t)||i(t,"edit"),valid:n&&n.isValid,editing:n&&n.isEditable,onClick:(e,r)=>{let o={};"save"===r&&(o=n.rowEditValidationRules&&n.rowEditValidationRules.reduce(((e,t)=>{const r=n.cells.filter((e=>{const n=""===e.props.editableValue?"":e.props.editableValue||e.props.value;let r=!1;return r=Array.isArray(n)&&n.length?n.reduce(((e,n)=>!0===e||!t.validator(n)),r):Array.isArray(n)&&!n.length?!t.validator(""):!t.validator(n),r&&(e.props.isValid=!1),r}));return r.length&&(e[t.name]=r.map((e=>e.props.name))),e}),{})),a(e,r,n&&n.isEditable,t,o)}})}},Zp=e=>e&&e.hasOwnProperty("title")?e.title:e,eu=({transforms:e,formatters:t,columnTransforms:n,header:r},o)=>Object.assign(Object.assign({},r),{label:o,transforms:[Gp,Up,...e||[],...n||[],...r&&r.hasOwnProperty("transforms")?r.transforms:[]],formatters:[...t||[],...r&&r.hasOwnProperty("formatters")?r.formatters:[]]}),tu=({cellFormatters:e,cellTransforms:t,columnTransforms:n,cell:r},o)=>Object.assign(Object.assign({},r),{transforms:[...t||[],...n||[],...r&&r.hasOwnProperty("transforms")?r.transforms:[],Xp],formatters:[Zp,...e||[],...r&&r.hasOwnProperty("formatters")?r.formatters:[]]}),nu=({onSelect:e,canSelectAll:t})=>[...e?[{title:"",transforms:t&&[ga]||null,cellTransforms:[ga]}]:[]],ru=({onFavorite:e,onSort:t,sortBy:n,canSortFavorites:r,firstUserColumnIndex:o})=>[...e?[{title:"",transforms:t&&r?[fa({onSort:t,columnIndex:o-1,sortBy:n})]:[Kp],cellTransforms:[od]}]:[]],ou=({actions:e,actionResolver:t,areActionsDisabled:n})=>[...t||e?[{title:"",transforms:[Kp],cellTransforms:[Jc(e,t,n)]}]:[]],au=(e,{onCollapse:t})=>[...t?[{title:"",transforms:[Kp],cellTransforms:[ed,td(e.length)]}]:[]],iu=(e,t)=>Object.assign(Object.assign({},e.hasOwnProperty("title")?e:{title:e}),{cellTransforms:[...e.hasOwnProperty("cellTransforms")?e.cellTransforms:[],t]}),su=(e,t)=>t.onCollapse||t.onExpand?e.map((t=>{const n=iu(t,qp);return iu(n,td(e.length))})):e,lu=(e,t)=>e.reduce(((e,n,r)=>{if(n.hasOwnProperty("parent")){e.length>0&&e[e.length-1]&&(e[e.length-1].rows=[...e[e.length-1].rows,t[r]],n.hasOwnProperty("compoundParent")&&(e[e.length-1].isOpen=e[e.length-1].rows.some((e=>e.props.rowData.cells.some((e=>e.props&&e.props.isOpen))))))}else e=[...e,Object.assign(Object.assign({},n),{rows:[t[r]]})];return e}),[]),cu=({onRowEdit:e})=>[...e?[{title:"",cellTransforms:[Qp]}]:[]],du=(e,t)=>e&&[...au(e,t),...nu(t),...ru(t),...su(e,t),...cu(t),...ou(t)].map(((e,n)=>Object.assign({},((e,t,n,...r)=>{const o=e.hasOwnProperty("title")?e.title:e;let a=`column-${n}`;return e.hasOwnProperty("dataLabel")?a=e.dataLabel:"string"==typeof o&&(a=o),{property:"string"==typeof o&&o.toLowerCase().trim().replace(/\s/g,"-")||`column-${n}`,extraParams:t,data:e.data,header:eu(e,o),cell:tu(e),props:Object.assign(Object.assign({"data-label":a,"data-key":n},e.hasOwnProperty("props")?e.props:{}),r)}})(e,t,n)))),pu=e=>{var{mappedRows:t,tbodyRef:n,rows:r=[],onCollapse:a,headerRows:s}=e,l=i(e,["mappedRows","tbodyRef","rows","onCollapse","headerRows"]);return t&&t.some((e=>e.hasOwnProperty("parent")))?o.createElement(o.Fragment,null,lu(t,l.children).map(((e,t)=>o.createElement(Xo,Object.assign({},l,{isExpanded:e.isOpen,key:`tbody-${t}`,ref:n}),e.rows)))):o.createElement(Xo,Object.assign({},l,{ref:n}))};pu.displayName="BodyWrapper";const uu=o.createContext({headerData:null,headerRows:null,rows:[]}),fu=e=>{var{children:t,className:n}=e,r=i(e,["children","className"]);return o.createElement("caption",Object.assign({className:n},r),t)};fu.displayName="Caption";const mu=e=>{var{children:t,className:n}=e,r=i(e,["children","className"]);return o.createElement("div",Object.assign({className:l(n,ea)},r),t)};mu.displayName="OuterScrollContainer";const hu=e=>{var{children:t,className:n}=e,r=i(e,["children","className"]);return o.createElement("div",Object.assign({className:l(n,Zo)},r),t)};hu.displayName="InnerScrollContainer";const bu=e=>{var{className:t,rowProps:n,row:r}=e,a=i(e,["className","rowProps","row"]);const{"aria-level":s,"aria-posinset":c,"aria-setsize":d,isExpanded:p,isDetailsExpanded:u,isHidden:f}=r.props;return o.createElement(Jo,Object.assign({"aria-level":s,"aria-posinset":c,"aria-setsize":d,"aria-expanded":!!p,isHidden:f,className:l(t,p&&So.modifiers.expanded,u&&Ro.treeViewDetailsExpanded)},a))};bu.displayName="TreeRowWrapper";class gu extends o.Component{constructor(){super(...arguments),this.state={ouiaStateId:K(gu.displayName)},this.isSelected=e=>!0===e.selected,this.areAllRowsSelected=e=>void 0!==e&&0!==e.length&&e.every((e=>this.isSelected(e)||e.disableSelection||e.hasOwnProperty("parent")&&!e.showSelect))}render(){const t=this.props,{"aria-label":n,caption:r,header:a,onSort:s,onSelect:c,canSelectAll:d,isHeaderSelectDisabled:p,selectVariant:u,sortBy:f,children:m,actions:h,actionResolver:b,areActionsDisabled:g,onCollapse:v,onExpand:y,onRowEdit:w,rowLabeledBy:x,dropdownPosition:C,dropdownDirection:O,actionsToggle:E,contentId:N,expandId:k,variant:T,rows:S,cells:_,bodyWrapper:R,rowWrapper:I,role:D,borders:j,onFavorite:P,canSortFavorites:L}=t,A=i(t,["aria-label","caption","header","onSort","onSelect","canSelectAll","isHeaderSelectDisabled","selectVariant","sortBy","children","actions","actionResolver","areActionsDisabled","onCollapse","onExpand","onRowEdit","rowLabeledBy","dropdownPosition","dropdownDirection","actionsToggle","contentId","expandId","variant","rows","cells","bodyWrapper","rowWrapper","role","borders","onFavorite","canSortFavorites"]);n||r||a||"presentation"===D||console.error("Table: Specify at least one of: header, caption, aria-label");const F=du(_,{sortBy:f,onSort:s,onSelect:c,canSelectAll:u!==e.RowSelectVariant.radio&&d,isHeaderSelectDisabled:p,selectVariant:u,allRowsSelected:!!c&&this.areAllRowsSelected(S),actions:h,actionResolver:b,areActionsDisabled:g,onCollapse:v,onRowEdit:w,onExpand:y,rowLabeledBy:x,expandId:k,contentId:N,dropdownPosition:C,dropdownDirection:O,actionsToggle:E,onFavorite:P,canSortFavorites:L,firstUserColumnIndex:[v,c,P].filter((e=>e)).length}),M=o.createElement(uu.Provider,{value:{headerData:F,headerRows:null,rows:S}},a,o.createElement(ud,Object.assign({},A,{"aria-label":n,renderers:{body:{wrapper:R||pu,row:I||(this.props.isTreeTable?bu:Wp),cell:zp},header:{cell:$p}},columns:F,role:D,variant:T,borders:j}),r&&o.createElement("caption",null,r),m));return w?o.createElement("form",{className:l(xo)},M):M}}gu.displayName="Table",gu.hasWarnBeta=!1,gu.defaultProps={children:null,className:"",variant:null,borders:!0,rowLabeledBy:"simple-node",expandId:"expandable-toggle",contentId:"expanded-content",dropdownPosition:Jt.right,dropdownDirection:Qt.down,header:void 0,caption:void 0,"aria-label":void 0,gridBreakPoint:e.TableGridBreakpoint.gridMd,role:"grid",canSelectAll:!0,isHeaderSelectDisabled:!1,selectVariant:"checkbox",ouiaSafe:!0,isStickyHeader:!1,canSortFavorites:!0,isTreeTable:!1,isNested:!1};class vu extends o.Component{constructor(){super(...arguments),this.onRow=(e,t)=>{const{onRowClick:n,onRow:r}=this.props,o=Object.assign(Object.assign({},t),r?r(e,t):{});return{row:e,rowProps:o,onClick:r=>{const o=r.target.tagName;n(r,e,t,{isInput:"INPUT"===o,isButton:"BUTTON"===o})},onKeyDown:r=>{const o=r.target,a=o.tagName,i={isInput:"INPUT"===a,isButton:"BUTTON"===a};"Enter"!==r.key&&" "!==r.key||(n(r,e,t,i)," "===r.key&&o.closest(".pf-m-hoverable")&&r.preventDefault())}}},this.mapCells=(e,t,n)=>{const{firstUserColumnIndex:r}=e[0].extraParams,o=t&&t.fullWidth;let a=o?0:r;return Object.assign({},t&&(t.cells||t).reduce(((t,i,s)=>{const l=i===Object(i),c=i&&"function"==typeof i.title;let d=[];l&&i.formatters?d=i.formatters:o&&s<r&&(d=e[r].cell.formatters);let p=i;l&&c?p=i.title(i.props.value,n,s,i.props):l&&(p=i.title);const u={[e[s+a].property]:{title:p,formatters:d,props:Object.assign({isVisible:!0},l?i.props:null)}};return l&&i.props&&i.props.colSpan&&(a+=i.props.colSpan-1),Object.assign(Object.assign({},t),u)}),{secretTableRowKeyId:void 0!==t.id?t.id:n}))}}render(){const e=this.props,{className:t,headerData:n,rows:r,rowKey:a,children:s,onRowClick:l}=e,c=i(e,["className","headerData","rows","rowKey","children","onRowClick"]);let d;return n.length>0&&(d=r.map(((e,t)=>Object.assign(Object.assign(Object.assign({},e),this.mapCells(n,e,t)),{isExpanded:Mo(e,r),isHeightAuto:e.heightAuto||!1,isFirst:0===t,isLast:t===r.length-1,isFirstVisible:!1,isLastVisible:!1}))),(e=>{const t=e.filter((e=>!e.parent||e.isExpanded));t.length>0&&(t[0].isFirstVisible=!0,t[t.length-1].isLastVisible=!0)})(d)),o.createElement(o.Fragment,null,d&&o.createElement(Hp,Object.assign({},c,{mappedRows:d,rows:d,onRow:this.onRow,rowKey:a,className:t})))}}const yu=({value:e,rowIndex:t,cellIndex:n,onSelect:r=(()=>{}),clearSelection:a,isOpen:i=!1,onToggle:s=(()=>{}),selections:c=[""],options:d=[],props:p})=>{const u=o.createElement(Hr,Object.assign({},p.editableSelectProps,{onSelect:(e,o,a)=>{r(o,e,t,n,a)}},a&&{onClear:e=>{a(t,n,e)}},{isOpen:i,onToggle:s,selections:c}),d);return o.createElement(o.Fragment,null,o.createElement("div",{className:No},Array.isArray(e)?e.join(", "):e),o.createElement("div",{className:Eo},u,o.createElement("div",{className:l(tr,nr.error),"aria-live":"polite"},p.errorText)))};yu.displayName="EditableSelectInputCell";const wu=({value:e,rowIndex:t,cellIndex:n,props:r,handleTextInputChange:a,inputAriaLabel:i,isDisabled:s=!1})=>o.createElement(o.Fragment,null,o.createElement("div",{className:No},e),o.createElement("div",{className:Eo},o.createElement(En,{isDisabled:s,value:void 0!==r.editableValue?r.editableValue:e,validated:!1!==r.isValid?"default":"error",type:"text",onChange:(e,r)=>{a(e,r,t,n)},"aria-label":i}),o.createElement("div",{className:l(tr,nr.error),"aria-live":"polite"},r.errorText)));wu.displayName="EditableTextCell";const xu=e=>{var{className:t="",headerRows:n}=e,r=i(e,["className","headerRows"]);return o.createElement(gd,Object.assign({},r,{headerRows:n,className:t}))},Cu=e=>{var t=i(e,[]);return o.createElement(uu.Consumer,null,(({headerRows:e})=>o.createElement(xu,Object.assign({},t,{headerRows:e}))))};Cu.displayName="TableHeader",e.ActionsColumn=Xc,e.BodyCell=zp,e.BodyWrapper=pu,e.Caption=fu,e.CollapseColumn=Qc,e.DraggableCell=ad,e.EditableSelectInputCell=yu,e.EditableTextCell=wu,e.ExpandableRowContent=Zc,e.FavoritesCell=rd,e.HeaderCell=$p,e.HeaderCellInfoWrapper=ia,e.InnerScrollContainer=hu,e.OuterScrollContainer=mu,e.RowWrapper=Wp,e.SelectColumn=ba,e.SortColumn=ua,e.Table=gu,e.TableBody=e=>{var{className:t="",children:n=null,rowKey:r="secretTableRowKeyId",onRow:a=((...e)=>({})),onRowClick:s=((e,t,n,r)=>{})}=e,l=i(e,["className","children","rowKey","onRow","onRowClick"]);return o.createElement(uu.Consumer,null,(e=>{var{headerData:c=[],rows:d=[]}=e,p=i(e,["headerData","rows"]);return o.createElement(vu,Object.assign({headerData:c,rows:d,onRow:a,className:t,rowKey:r,onRowClick:s},l,p),n)}))},e.TableComposable=Ko,e.TableContext=uu,e.TableHeader=Cu,e.TableText=aa,e.Tbody=Xo,e.Td=cd,e.Th=qc,e.Thead=Uo,e.Tr=Jo,e.TreeRowWrapper=bu,e.Visibility=ya,e.applyCellEdits=(e,t)=>(e.cells.forEach((e=>{delete e.props.errorText;const n=void 0!==e.props.value&&null!==e.props.value,r=void 0!==e.props.editableValue&&null!==e.props.editableValue;n&&!r&&(e.props.editableValue=e.props.value),e.props&&n&&r&&("save"===t&&(e.props.value=e.props.editableValue,e.props.isValid=!0,delete e.props.errorText),delete e.props.editableValue)})),e.isEditable=!e.isEditable,e.isValid=!0,e),e.breakWord=()=>({className:So.modifiers.breakWord}),e.calculateColumns=du,e.cancelCellEdits=e=>(e.cells.forEach((e=>{delete e.props.errorText,delete e.props.editableValue,e.props.isValid=!0,e.props.selected&&(e.props.selected=e.props.value)})),e.isEditable=!e.isEditable,e.isValid=!0,e),e.capitalize=zo,e.cellActions=Jc,e.cellWidth=va,e.classNames=wa,e.collapsible=ed,e.compoundExpand=nd,e.defaultTitle=Zp,e.editable=Qp,e.emptyCol=Up,e.emptyTD=Kp,e.expandable=(e,{rowData:t})=>t&&t.hasOwnProperty("parent")?o.createElement(Zc,null,e):e,e.expandedRow=td,e.favoritable=od,e.fitContent=()=>({className:So.modifiers.fitContent}),e.getErrorTextByValidator=Bo,e.headerCol=(e="simple-node")=>(t,{rowIndex:n}={})=>{const r="object"==typeof t?t.title:t;return{component:"th",children:o.createElement("div",{id:`${e}${n}`},r)}},e.info=sa,e.isRowExpanded=Mo,e.mapOpenedRows=lu,e.mapProps=Xp,e.nowrap=()=>({className:So.modifiers.nowrap}),e.parentId=qp,e.scopeColTransformer=Gp,e.selectable=ga,e.sortable=ma,e.sortableFavorites=fa,e.textCenter=()=>({textCenter:!0}),e.toCamel=Ho,e.treeRow=sd,e.truncate=()=>({className:So.modifiers.truncate}),e.validateCellEdits=(e,t,n,r="Validation requires unique name property for row cells")=>(e.isValid=!Object.keys(n).length,e.cells.forEach((o=>{delete o.props.errorText;const a=void 0!==o.props.value&&null!==o.props.value,i=void 0!==o.props.editableValue&&null!==o.props.editableValue;if(o.props&&a&&i&&"save"===t){const t=Object.keys(n).filter((e=>n[e].includes(o.props.name))).map((t=>Bo(t,e.rowEditValidationRules)));t.length?(o.props.errorText=o.props.name?t.join(", "):r,void 0===o.props.name&&console.warn("Row edit validation reporting requires cell definitions to have a unique name property.")):(delete o.props.errorText,o.props.isValid=!0)}})),e),e.wrappable=()=>({className:So.modifiers.wrap}),Object.defineProperty(e,"__esModule",{value:!0})}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-table",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.58.1",
|
|
4
4
|
"description": "This library provides a set of React table components for use with the PatternFly 4",
|
|
5
5
|
"main": "dist/js/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"clean": "rimraf dist"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@patternfly/react-core": "^4.
|
|
35
|
-
"@patternfly/react-icons": "^4.
|
|
36
|
-
"@patternfly/react-styles": "^4.
|
|
37
|
-
"@patternfly/react-tokens": "^4.
|
|
34
|
+
"@patternfly/react-core": "^4.189.1",
|
|
35
|
+
"@patternfly/react-icons": "^4.40.1",
|
|
36
|
+
"@patternfly/react-styles": "^4.39.1",
|
|
37
|
+
"@patternfly/react-tokens": "^4.41.1",
|
|
38
38
|
"lodash": "^4.17.19",
|
|
39
39
|
"tslib": "^2.0.0"
|
|
40
40
|
},
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"react": "^16.8.0 || ^17.0.0",
|
|
47
47
|
"react-dom": "^16.8.0 || ^17.0.0"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "a634131168ee7e2c61e9a68080a1fd9b2b7bb46d"
|
|
50
50
|
}
|
|
@@ -57,21 +57,27 @@ class ContextBody extends React.Component<TableBodyProps, {}> {
|
|
|
57
57
|
row,
|
|
58
58
|
rowProps: extendedRowProps,
|
|
59
59
|
onClick: (event: React.MouseEvent) => {
|
|
60
|
+
const tagName = (event.target as HTMLElement).tagName;
|
|
60
61
|
const computedData = {
|
|
61
|
-
isInput:
|
|
62
|
-
isButton:
|
|
62
|
+
isInput: tagName === 'INPUT',
|
|
63
|
+
isButton: tagName === 'BUTTON'
|
|
63
64
|
};
|
|
64
65
|
|
|
65
66
|
onRowClick(event, row, rowProps, computedData);
|
|
66
67
|
},
|
|
67
68
|
onKeyDown: (event: React.KeyboardEvent) => {
|
|
69
|
+
const targetElement = event.target as HTMLElement;
|
|
70
|
+
const tagName = targetElement.tagName;
|
|
71
|
+
const computedData = {
|
|
72
|
+
isInput: tagName === 'INPUT',
|
|
73
|
+
isButton: tagName === 'BUTTON'
|
|
74
|
+
};
|
|
68
75
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
69
|
-
const computedData = {
|
|
70
|
-
isInput: (event.target as HTMLElement).tagName === 'INPUT',
|
|
71
|
-
isButton: (event.target as HTMLElement).tagName === 'BUTTON'
|
|
72
|
-
};
|
|
73
76
|
onRowClick(event, row, rowProps, computedData);
|
|
74
|
-
|
|
77
|
+
|
|
78
|
+
// prevent event default if space is typed while focusing on a hoverable row
|
|
79
|
+
// so that the page does not scroll when trying to use spacebar to select a row
|
|
80
|
+
if (event.key === ' ' && !!targetElement.closest('.pf-m-hoverable')) {
|
|
75
81
|
event.preventDefault();
|
|
76
82
|
}
|
|
77
83
|
}
|