@patternfly/react-table 6.6.0-prerelease.1 → 6.6.0-prerelease.3
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 +8 -0
- package/components/package.json +1 -1
- package/deprecated/package.json +1 -1
- package/dist/dynamic/components/Table/package.json +1 -1
- package/dist/dynamic/components/Table/utils/decorators/package.json +1 -1
- package/dist/dynamic/components/Table/utils/package.json +1 -1
- package/dist/dynamic/deprecated/components/Table/base/package.json +1 -1
- package/dist/dynamic/deprecated/components/Table/package.json +1 -1
- package/dist/dynamic/deprecated/components/package.json +1 -1
- package/dist/umd/assets/{output-CfA7jQ1D.css → output-BFx4Jn7k.css} +6170 -6170
- package/dist/umd/react-table.min.js +3 -3
- package/package.json +3 -3
- package/src/demos/Table.md +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react","react-dom"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).PatternFlyTable={},e.React,e.ReactDOM)}(this,(function(e,t,n){"use strict";function i(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react","react-dom"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).PatternFlyTable={},e.React,e.ReactDOM)}(this,(function(e,t,n){"use strict";function i(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var o=i(n);function a(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}"function"==typeof SuppressedError&&SuppressedError;var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var l={exports:{}},c={},d=t,p=Symbol.for("react.element"),u=Symbol.for("react.fragment"),f=Object.prototype.hasOwnProperty,m=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function b(e,t,n){var i,o={},a=null,r=null;for(i in void 0!==n&&(a=""+n),void 0!==t.key&&(a=""+t.key),void 0!==t.ref&&(r=t.ref),t)f.call(t,i)&&!h.hasOwnProperty(i)&&(o[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps)void 0===o[i]&&(o[i]=t[i]);return{$$typeof:p,type:e,key:a,ref:r,props:o,_owner:m.current}}c.Fragment=u,c.jsx=b,c.jsxs=b,l.exports=c;var v=l.exports;function g(...e){const t=[],n={}.hasOwnProperty;return e.filter(Boolean).forEach((e=>{const i=typeof e;if("string"===i||"number"===i)t.push(e);else if(Array.isArray(e)&&e.length){const n=g(...e);n&&t.push(n)}else if("object"===i)for(const i in e)n.call(e,i)&&e[i]&&t.push(i)})),t.join(" ")}var x="pf-v6-c-divider",y="pf-v6-c-menu",w="pf-v6-c-menu__content",O="pf-v6-c-menu__item",j="pf-v6-c-menu__item-action",N="pf-v6-c-menu__item-check",S="pf-v6-c-menu__item-description",C="pf-v6-c-menu__item-external-icon",_="pf-v6-c-menu__item-icon",E="pf-v6-c-menu__item-main",I="pf-v6-c-menu__item-select-icon",k="pf-v6-c-menu__item-text",R="pf-v6-c-menu__item-toggle-icon",T="pf-v6-c-menu__list",P="pf-v6-c-menu__list-item",D="pf-v6-c-menu__search",L={disabled:"pf-m-disabled",ariaDisabled:"pf-m-aria-disabled",flyout:"pf-m-flyout",left:"pf-m-left",drilldown:"pf-m-drilldown",drilledIn:"pf-m-drilled-in",currentPath:"pf-m-current-path",plain:"pf-m-plain",scrollable:"pf-m-scrollable",load:"pf-m-load",loading:"pf-m-loading",danger:"pf-m-danger",selected:"pf-m-selected",favorited:"pf-m-favorited"},A="pf-v6-c-breadcrumb__link";const M=t.createContext({hasAnimations:!1}),F=e=>{var n;const{hasAnimations:i}=(()=>{const e=t.useContext(M);return void 0===e?{hasAnimations:!1}:e})();return null!==(n=null!=e?e:i)&&void 0!==n&&n};let B=0;function H(e){return e&&Array.isArray(e)?e.map(((e,t)=>v.jsx("path",{className:e.className,d:e.path},`${e.path}-${t}`))):v.jsx("path",{d:e})}const V=(e,t)=>{const{xOffset:n,yOffset:i,width:o,height:a,svgPathData:r,svgClassName:s}=null!=e?e:{},l=[null!=n?n:0,null!=i?i:0,o,a].join(" "),c=[];return s&&c.push(s),t&&c.push(t),v.jsx("svg",{viewBox:l,className:c.join(" "),children:H(r)})};function z({name:e,icon:n,rhUiIcon:i=null}){var o;return null==n&&console.warn(`@patternfly/react-icons: createIconBase is missing an \`icon\` definition (name: ${null!=e?e:"unknown"}).`),o=class extends t.Component{constructor(){super(...arguments),this.id="icon-title-"+B++}render(){const t=this.props,{title:o,className:r,set:s,noDefaultStyle:l}=t,c=a(t,["title","className","set","noDefaultStyle"]),d=Boolean(o),p=["pf-v6-svg"];if(r&&p.push(r),"rh-ui"===s&&null===i&&console.warn(`Set "rh-ui" was provided for ${e}, but no rh-ui icon data exists for this icon. The default icon will be rendered.`),void 0===s&&null===i||void 0!==s){const e=void 0!==s&&"rh-ui"===s&&null!==i?i:n,{xOffset:t,yOffset:a,width:r,height:u,svgPathData:f,svgClassName:m}=null!=e?e:{},h=[null!=t?t:0,null!=a?a:0,r,u].join(" ");return m&&!l&&p.push(m),v.jsxs("svg",Object.assign({className:p.join(" "),fill:"currentColor",viewBox:h,"aria-labelledby":d?this.id:null,"aria-hidden":!d||null,role:"img",width:"1em",height:"1em"},c,{children:[d&&v.jsx("title",{id:this.id,children:o}),H(f)]}))}return v.jsxs("svg",Object.assign({className:p.join(" "),fill:"currentColor","aria-labelledby":d?this.id:null,"aria-hidden":!d||null,role:"img",width:"1em",height:"1em"},c,{children:[d&&v.jsx("title",{id:this.id,children:o}),n&&V(n,"pf-v6-icon-default"),i&&V(i,"pf-v6-icon-rh-ui")]}))}},o.displayName=e,o.defaultProps={noDefaultStyle:!1},o}const $=z({name:"RhUiCheckCircleFillIcon",icon:{xOffset:0,yOffset:0,width:32,height:32,svgPathData:"M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm7.795 11.795-8.646 8.646c-.317.317-.733.475-1.149.475s-.832-.158-1.149-.475l-4.646-4.646a1.126 1.126 0 0 1 1.591-1.591l4.205 4.205 8.205-8.205a1.126 1.126 0 0 1 1.591 1.591Z"},rhUiIcon:null}),W=z({name:"RhUiErrorFillIcon",icon:{xOffset:0,yOffset:0,width:32,height:32,svgPathData:"M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm-1.5 8a1.5 1.5 0 1 1 3 0v7a1.5 1.5 0 1 1-3 0V9ZM16 25.001a2 2 0 1 1-.001-3.999A2 2 0 0 1 16 25.001Z"},rhUiIcon:null}),U=z({name:"RhUiWarningFillIcon",icon:{xOffset:0,yOffset:0,width:32,height:32,svgPathData:"m31.874 28.514-15.011-27a1.001 1.001 0 0 0-1.748 0l-15.011 27A1 1 0 0 0 .978 30H31a1 1 0 0 0 .874-1.486ZM14.5 12a1.5 1.5 0 0 1 3 0v5a1.5 1.5 0 0 1-3 0v-5ZM16 26.001a2 2 0 1 1-.001-3.999A2 2 0 0 1 16 26.001Z"},rhUiIcon:null});z({name:"RhUiInformationFillIcon",icon:{xOffset:0,yOffset:0,width:32,height:32,svgPathData:"M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm1.5 22a1.5 1.5 0 1 1-3 0v-5.157l-.188.04a1.5 1.5 0 0 1-.625-2.934l1.956-.416c.112-.024.223-.032.333-.03l.024-.002a1.5 1.5 0 0 1 1.5 1.5v7Zm-.08-12.58c-.38.37-.89.58-1.42.58a1.998 1.998 0 0 1-1.851-2.76c.051-.13.11-.24.19-.35.07-.11.15-.21.25-.3.74-.75 2.08-.75 2.83 0 .09.09.17.19.24.3.08.11.14.22.189.35.05.12.09.24.11.37.03.13.04.26.04.39 0 .53-.21 1.04-.58 1.42Z"},rhUiIcon:null});var q;z({name:"RhUiNotificationFillIcon",icon:{xOffset:0,yOffset:0,width:32,height:32,svgPathData:"M28.75 22v3.5c0 .689-.561 1.25-1.25 1.25h-7.521c.005.084.021.166.021.25 0 2.206-1.794 4-4 4s-4-1.794-4-4c0-.084.016-.166.021-.25H4.5c-.689 0-1.25-.561-1.25-1.25V22a.75.75 0 0 1 .75-.75c1.24 0 2.25-1.009 2.25-2.25v-4c0-4.826 3.528-8.833 8.138-9.605A2.482 2.482 0 0 1 13.5 3.5C13.5 2.122 14.621 1 16 1s2.5 1.122 2.5 2.5c0 .761-.349 1.436-.888 1.895 4.61.772 8.138 4.779 8.138 9.605v4c0 1.241 1.01 2.25 2.25 2.25a.75.75 0 0 1 .75.75Z"},rhUiIcon:null}),function(e){e.success="success",e.error="error",e.warning="warning",e.default="default"}(q||(q={}));const G=" ",Z="Escape",K="Enter";
|
|
2
2
|
/*!
|
|
3
3
|
* tabbable 6.3.0
|
|
4
4
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
5
|
-
*/var X=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Y=X.join(","),J="undefined"==typeof Element,Q=J?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ee=!J&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},te=function(e,t){var n;void 0===t&&(t=!0);var i=null==e||null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert");return""===i||"true"===i||t&&e&&te(e.parentNode)},ne=function(e,t,n){if(te(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(Y));return t&&Q.call(e,Y)&&i.unshift(e),i=i.filter(n)},ie=function(e,t,n){for(var i=[],
|
|
5
|
+
*/var X=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Y=X.join(","),J="undefined"==typeof Element,Q=J?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ee=!J&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},te=function(e,t){var n;void 0===t&&(t=!0);var i=null==e||null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert");return""===i||"true"===i||t&&e&&te(e.parentNode)},ne=function(e,t,n){if(te(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(Y));return t&&Q.call(e,Y)&&i.unshift(e),i=i.filter(n)},ie=function(e,t,n){for(var i=[],o=Array.from(e);o.length;){var a=o.shift();if(!te(a,!1))if("SLOT"===a.tagName){var r=a.assignedElements(),s=r.length?r:a.children,l=ie(s,!0,n);n.flatten?i.push.apply(i,l):i.push({scopeParent:a,candidates:l})}else{Q.call(a,Y)&&n.filter(a)&&(t||!e.includes(a))&&i.push(a);var c=a.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(a),d=!te(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(c&&d){var p=ie(!0===c?a.children:c.children,!0,n);n.flatten?i.push.apply(i,p):i.push({scopeParent:a,candidates:p})}else o.unshift.apply(o,a.children)}}return i},oe=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},ae=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!oe(e)?0:e.tabIndex},re=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},se=function(e){return"INPUT"===e.tagName},le=function(e){return function(e){return se(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||ee(e),i=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=i(window.CSS.escape(e.name));else try{t=i(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)},ce=function(e){var t=e.getBoundingClientRect(),n=t.width,i=t.height;return 0===n&&0===i},de=function(e,t){var n=t.displayCheck,i=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return!0;var o=Q.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Q.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return ce(e)}else{if("function"==typeof i){for(var a=e;e;){var r=e.parentElement,s=ee(e);if(r&&!r.shadowRoot&&!0===i(r))return ce(e);e=e.assignedSlot?e.assignedSlot:r||s===e.ownerDocument?r:s.host}e=a}if(function(e){var t,n,i,o,a=e&&ee(e),r=null===(t=a)||void 0===t?void 0:t.host,s=!1;if(a&&a!==e)for(s=!!(null!==(n=r)&&void 0!==n&&null!==(i=n.ownerDocument)&&void 0!==i&&i.contains(r)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!s&&r;){var l,c,d;s=!(null===(c=r=null===(l=a=ee(r))||void 0===l?void 0:l.host)||void 0===c||null===(d=c.ownerDocument)||void 0===d||!d.contains(r))}return s}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},pe=function(e,t){return!(t.disabled||te(t)||function(e){return se(e)&&"hidden"===e.type}(t)||de(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var i=t.children.item(n);if("LEGEND"===i.tagName)return!!Q.call(t,"fieldset[disabled] *")||!i.contains(e)}return!0}t=t.parentElement}return!1}(t))},ue=function(e,t){return!(le(t)||ae(t)<0||!pe(e,t))},fe=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},me=function(e){var t=[],n=[];return e.forEach((function(e,i){var o=!!e.scopeParent,a=o?e.scopeParent:e,r=function(e,t){var n=ae(e);return n<0&&t&&!oe(e)?0:n}(a,o),s=o?me(e.candidates):a;0===r?o?t.push.apply(t,s):t.push(a):n.push({documentOrder:i,tabIndex:r,item:e,isScope:o,content:s})})),n.sort(re).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(t)},he=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Q.call(e,Y)&&ue(t,e)},be=X.concat("iframe").join(","),ve=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Q.call(e,be)&&pe(t,e)};
|
|
6
6
|
/*!
|
|
7
7
|
* focus-trap 7.6.6
|
|
8
8
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
function ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function xe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t);if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function we(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(n),!0).forEach((function(t){xe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Oe(e){return function(e){if(Array.isArray(e))return ge(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ge(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ge(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var je=function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n._setPausedState(!0)}var i=e.indexOf(t);-1===i||e.splice(i,1),e.push(t)},Ne=function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)},Se=function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)},Ce=function(e){return Se(e)&&!e.shiftKey},_e=function(e){return Se(e)&&e.shiftKey},Ee=function(e){return setTimeout(e,0)},Ie=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return"function"==typeof e?e.apply(void 0,n):e},ke=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},Re=[],Te=function(e,t){var n,i=(null==t?void 0:t.document)||document,a=(null==t?void 0:t.trapStack)||Re,o=we({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Ce,isKeyBackward:_e},t),r={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},s=function(e,t,n){return e&&void 0!==e[t]?e[t]:o[n||t]},l=function(e,t){var n="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return r.containerGroups.findIndex((function(t){var i=t.container,a=t.tabbableNodes;return i.contains(e)||(null==n?void 0:n.includes(i))||a.find((function(t){return t===e}))}))},c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.hasFallback,a=void 0!==n&&n,r=t.params,s=void 0===r?[]:r,l=o[e];if("function"==typeof l&&(l=l.apply(void 0,Oe(s))),!0===l&&(l=void 0),!l){if(void 0===l||!1===l)return l;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var c=l;if("string"==typeof l){try{c=i.querySelector(l)}catch(t){throw new Error("`".concat(e,'` appears to be an invalid selector; error="').concat(t.message,'"'))}if(!c&&!a)throw new Error("`".concat(e,"` as selector refers to no known node"))}return c},d=function(){var e=c("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!ve(e,o.tabbableOptions))if(l(i.activeElement)>=0)e=i.activeElement;else{var t=r.tabbableGroups[0];e=t&&t.firstTabbableNode||c("fallbackFocus")}else null===e&&(e=c("fallbackFocus"));if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},p=function(){if(r.containerGroups=r.containers.map((function(e){var t=function(e,t){var n;return n=(t=t||{}).getShadowRoot?ie([e],t.includeContainer,{filter:ue.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:fe}):ne(e,t.includeContainer,ue.bind(null,t)),me(n)}(e,o.tabbableOptions),n=function(e,t){return(t=t||{}).getShadowRoot?ie([e],t.includeContainer,{filter:pe.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):ne(e,t.includeContainer,pe.bind(null,t))}(e,o.tabbableOptions),i=t.length>0?t[0]:void 0,a=t.length>0?t[t.length-1]:void 0,r=n.find((function(e){return he(e)})),s=n.slice().reverse().find((function(e){return he(e)})),l=!!t.find((function(e){return oe(e)>0}));return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:l,firstTabbableNode:i,lastTabbableNode:a,firstDomTabbableNode:r,lastDomTabbableNode:s,nextTabbableNode:function(e){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=t.indexOf(e);return a<0?i?n.slice(n.indexOf(e)+1).find((function(e){return he(e)})):n.slice(0,n.indexOf(e)).reverse().find((function(e){return he(e)})):t[a+(i?1:-1)]}}})),r.tabbableGroups=r.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),r.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(r.containerGroups.find((function(e){return e.posTabIndexesFound}))&&r.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},u=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&null!==t.shadowRoot.activeElement?u(t.shadowRoot):t},f=function(e){!1!==e&&e!==u(document)&&(e&&e.focus?(e.focus({preventScroll:!!o.preventScroll}),r.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):f(d()))},m=function(e){var t=c("setReturnFocus",{params:[e]});return t||!1!==t&&e},h=function(e){var t=e.target,n=e.event,i=e.isBackward,a=void 0!==i&&i;t=t||ke(n),p();var s=null;if(r.tabbableGroups.length>0){var d=l(t,n),u=d>=0?r.containerGroups[d]:void 0;if(d<0)s=a?r.tabbableGroups[r.tabbableGroups.length-1].lastTabbableNode:r.tabbableGroups[0].firstTabbableNode;else if(a){var f=r.tabbableGroups.findIndex((function(e){var n=e.firstTabbableNode;return t===n}));if(f<0&&(u.container===t||ve(t,o.tabbableOptions)&&!he(t,o.tabbableOptions)&&!u.nextTabbableNode(t,!1))&&(f=d),f>=0){var m=0===f?r.tabbableGroups.length-1:f-1,h=r.tabbableGroups[m];s=oe(t)>=0?h.lastTabbableNode:h.lastDomTabbableNode}else Se(n)||(s=u.nextTabbableNode(t,!1))}else{var b=r.tabbableGroups.findIndex((function(e){var n=e.lastTabbableNode;return t===n}));if(b<0&&(u.container===t||ve(t,o.tabbableOptions)&&!he(t,o.tabbableOptions)&&!u.nextTabbableNode(t))&&(b=d),b>=0){var v=b===r.tabbableGroups.length-1?0:b+1,g=r.tabbableGroups[v];s=oe(t)>=0?g.firstTabbableNode:g.firstDomTabbableNode}else Se(n)||(s=u.nextTabbableNode(t))}}else s=c("fallbackFocus");return s},b=function(e){var t=ke(e);l(t,e)>=0||(Ie(o.clickOutsideDeactivates,e)?n.deactivate({returnFocus:o.returnFocusOnDeactivate}):Ie(o.allowOutsideClick,e)||e.preventDefault())},v=function(e){var t=ke(e),n=l(t,e)>=0;if(n||t instanceof Document)n&&(r.mostRecentlyFocusedNode=t);else{var i;e.stopImmediatePropagation();var a=!0;if(r.mostRecentlyFocusedNode)if(oe(r.mostRecentlyFocusedNode)>0){var s=l(r.mostRecentlyFocusedNode),c=r.containerGroups[s].tabbableNodes;if(c.length>0){var p=c.findIndex((function(e){return e===r.mostRecentlyFocusedNode}));p>=0&&(o.isKeyForward(r.recentNavEvent)?p+1<c.length&&(i=c[p+1],a=!1):p-1>=0&&(i=c[p-1],a=!1))}}else r.containerGroups.some((function(e){return e.tabbableNodes.some((function(e){return oe(e)>0}))}))||(a=!1);else a=!1;a&&(i=h({target:r.mostRecentlyFocusedNode,isBackward:o.isKeyBackward(r.recentNavEvent)})),f(i||(r.mostRecentlyFocusedNode||d()))}r.recentNavEvent=void 0},g=function(e){(o.isKeyForward(e)||o.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r.recentNavEvent=e;var n=h({event:e,isBackward:t});n&&(Se(e)&&e.preventDefault(),f(n))}(e,o.isKeyBackward(e))},x=function(e){var t;"Escape"!==(null==(t=e)?void 0:t.key)&&"Esc"!==(null==t?void 0:t.key)&&27!==(null==t?void 0:t.keyCode)||!1===Ie(o.escapeDeactivates,e)||(e.preventDefault(),n.deactivate())},y=function(e){var t=ke(e);l(t,e)>=0||Ie(o.clickOutsideDeactivates,e)||Ie(o.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},w=function(){if(r.active)return je(a,n),r.delayInitialFocusTimer=o.delayInitialFocus?Ee((function(){f(d())})):f(d()),i.addEventListener("focusin",v,!0),i.addEventListener("mousedown",b,{capture:!0,passive:!1}),i.addEventListener("touchstart",b,{capture:!0,passive:!1}),i.addEventListener("click",y,{capture:!0,passive:!1}),i.addEventListener("keydown",g,{capture:!0,passive:!1}),i.addEventListener("keydown",x),n},O=function(){if(r.active)return i.removeEventListener("focusin",v,!0),i.removeEventListener("mousedown",b,!0),i.removeEventListener("touchstart",b,!0),i.removeEventListener("click",y,!0),i.removeEventListener("keydown",g,!0),i.removeEventListener("keydown",x),n},j="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver((function(e){e.some((function(e){return Array.from(e.removedNodes).some((function(e){return e===r.mostRecentlyFocusedNode}))}))&&f(d())})):void 0,N=function(){j&&(j.disconnect(),r.active&&!r.paused&&r.containers.map((function(e){j.observe(e,{subtree:!0,childList:!0})})))};return n={get active(){return r.active},get paused(){return r.paused},activate:function(e){if(r.active)return this;var t=s(e,"onActivate"),n=s(e,"onPostActivate"),a=s(e,"checkCanFocusTrap");a||p(),r.active=!0,r.paused=!1,r.nodeFocusedBeforeActivation=u(i),null==t||t();var o=function(){a&&p(),w(),N(),null==n||n()};return a?(a(r.containers.concat()).then(o,o),this):(o(),this)},deactivate:function(e){if(!r.active)return this;var t=we({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},e);clearTimeout(r.delayInitialFocusTimer),r.delayInitialFocusTimer=void 0,O(),r.active=!1,r.paused=!1,N(),Ne(a,n);var i=s(t,"onDeactivate"),l=s(t,"onPostDeactivate"),c=s(t,"checkCanReturnFocus"),d=s(t,"returnFocus","returnFocusOnDeactivate");null==i||i();var p=function(){Ee((function(){d&&f(m(r.nodeFocusedBeforeActivation)),null==l||l()}))};return d&&c?(c(m(r.nodeFocusedBeforeActivation)).then(p,p),this):(p(),this)},pause:function(e){return r.active?(r.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return r.active?(r.manuallyPaused=!1,a[a.length-1]!==this?this:this._setPausedState(!1,e)):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return r.containers=t.map((function(e){return"string"==typeof e?i.querySelector(e):e})),r.active&&p(),N(),this}},Object.defineProperties(n,{_isManuallyPaused:{value:function(){return r.manuallyPaused}},_setPausedState:{value:function(e,t){if(r.paused===e)return this;if(r.paused=e,e){var n=s(t,"onPause"),i=s(t,"onPostPause");null==n||n(),O(),N(),null==i||i()}else{var a=s(t,"onUnpause"),o=s(t,"onPostUnpause");null==a||a(),p(),w(),N(),null==o||o()}return this}}}),n.updateContainerElements(e),n};const Pe=t.forwardRef((function(e,n){var{active:i=!0,paused:a=!1,focusTrapOptions:r={},preventScrollOnDeactivate:s=!1}=e,l=o(e,["active","paused","focusTrapOptions","preventScrollOnDeactivate"]);const c=t.useRef(null);t.useImperativeHandle(n,(()=>c.current));const d=t.useRef(null);t.useEffect((()=>{const e=Te(c.current,Object.assign(Object.assign({},r),{returnFocusOnDeactivate:!1}));return d.current=e,()=>{e.deactivate()}}),[]),t.useEffect((()=>{const e=d.current;i?null==e||e.activate():null==e||e.deactivate()}),[i]),t.useEffect((()=>{const e=d.current;a?null==e||e.pause():null==e||e.unpause()}),[a]);const p=t.useRef("undefined"!=typeof document?document.activeElement:null);return function(e){const n=t.useRef(e);n.current=e,t.useEffect((()=>()=>{n.current()}),[])}((()=>{!1!==r.returnFocusOnDeactivate&&p.current instanceof HTMLElement&&p.current.focus({preventScroll:s})})),v.jsx("div",Object.assign({ref:c},l))}));Pe.displayName="FocusTrap";const De="function"==typeof t.useId?t.useId:void 0;let Le=0;const Ae=De?function(e="pf-"){return`${e}${De()}`}:function(e="pf-"){const[n]=t.useState((()=>`${e}${++Le}`));return n};function Me(e,t,n=!0){return{"data-ouia-component-type":`PF6/${e}`,"data-ouia-safe":n,"data-ouia-component-id":t}}const Fe=(e,t,n=!0,i)=>({"data-ouia-component-type":`PF6/${e}`,"data-ouia-safe":n,"data-ouia-component-id":Be(e,t,i)}),Be=(e,t,n)=>{const i=Ae(`OUIA-Generated-${e}-${n?`${n}-`:""}`);return null!=t?t:i};function He(e,t){let n;return(...i)=>{clearTimeout(n),n=setTimeout((()=>e.apply(this,i)),t)}}const Ve=(e,t,n="",i,a)=>e?Object.entries(e||{}).map((([e,t])=>`${n}${t}${"default"!==e?`-on-${e}`:""}`)).map($e).map((e=>e.replace(/-?(\dxl)/gi,((e,t)=>`_${t}`)))).map((e=>t.modifiers[e])).filter(Boolean).join(" "):"",ze=e=>e.toUpperCase().replace("-","").replace("_",""),$e=e=>e.replace(/([-_][a-z])/gi,ze),We=!("undefined"==typeof window||!window.document||!window.document.createElement),Ue=(e,t)=>{const n=getComputedStyle(t),i=document.createElement("canvas").getContext("2d");return i.font=n.font||(()=>{let e="";const t={"50%":"ultra-condensed","62.5%":"extra-condensed","75%":"condensed","87.5%":"semi-condensed","100%":"normal","112.5%":"semi-expanded","125%":"expanded","150%":"extra-expanded","200%":"ultra-expanded"};let i;return i=n.fontStretch in t?t[n.fontStretch]:"normal",e=n.fontStyle+" "+n.fontVariant+" "+n.fontWeight+" "+i+" "+n.fontSize+"/"+n.lineHeight+" "+n.fontFamily,e})(),i.measureText(e).width},qe=(e,t)=>{const n=(e=>{const t=getComputedStyle(e);let n=e.clientWidth,i=e.clientHeight;return i-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),n-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),{height:i,width:n}})(e).width;let i=t;if(Ue(t,e)>n){for(;Ue(`...${i}`,e)>n;)i=i.substring(1);e.value?e.value=`...${i}`:e.innerText=`...${i}`}else e.value?e.value=t:e.innerText=t},Ge=e=>{e.forEach((e=>{e.current&&clearTimeout(e.current)}))};function Ze(e){const t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function Ke(e){if("[object Window]"!==e.toString()){const t=e.ownerDocument;return t?t.defaultView:window}return e}function Xe(e){const t=Ke(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ye(e){return e instanceof Ke(e).Element||e instanceof Element}function Je(e){return e instanceof Ke(e).HTMLElement||e instanceof HTMLElement}function Qe(e){return e?(e.nodeName||"").toLowerCase():null}function et(e){return((Ye(e)?e.ownerDocument:e.document)||window.document).documentElement}function tt(e){return Ze(et(e)).left+Xe(e).scrollLeft}function nt(e){return Ke(e).getComputedStyle(e)}function it(e){const{overflow:t,overflowX:n,overflowY:i}=nt(e);return/auto|scroll|overlay|hidden/.test(t+i+n)}function at(e,t,n=!1){const i=et(t),a=Ze(e),o=Je(t);let r={scrollLeft:0,scrollTop:0},s={x:0,y:0};var l,c;return(o||!o&&!n)&&(("body"!==Qe(t)||it(i))&&(r=(l=t)!==Ke(l)&&Je(l)?{scrollLeft:(c=l).scrollLeft,scrollTop:c.scrollTop}:Xe(l)),Je(t)?(s=Ze(t),s.x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=tt(i))),{x:a.left+r.scrollLeft-s.x,y:a.top+r.scrollTop-s.y,width:a.width,height:a.height}}function ot(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function rt(e){return"html"===Qe(e)?e:e.assignedSlot||e.parentNode||e.host||et(e)}function st(e){return["html","body","#document"].indexOf(Qe(e))>=0?e.ownerDocument.body:Je(e)&&it(e)?e:st(rt(e))}function lt(e,t=[]){const n=st(e),i="body"===Qe(n),a=Ke(n),o=i?[a].concat(a.visualViewport||[],it(n)?n:[]):n,r=t.concat(o);return i?r:r.concat(lt(rt(o)))}function ct(e){return["table","td","th"].indexOf(Qe(e))>=0}function dt(e){if(!Je(e)||"fixed"===nt(e).position)return null;const t=e.offsetParent;if(t){const e=et(t);if("body"===Qe(t)&&"static"===nt(t).position&&"static"!==nt(e).position)return e}return t}function pt(e){const t=Ke(e);let n=dt(e);for(;n&&ct(n)&&"static"===nt(n).position;)n=dt(n);return n&&"body"===Qe(n)&&"static"===nt(n).position?t:n||function(e){let t=rt(e);for(;Je(t)&&["html","body"].indexOf(Qe(t))<0;){const e=nt(t);if("none"!==e.transform||"none"!==e.perspective||e.willChange&&"auto"!==e.willChange)return t;t=t.parentNode}return null}(e)||t}const ut="top",ft="bottom",mt="right",ht="left",bt="auto",vt=[ut,ft,mt,ht],gt="start",xt="end",yt="clippingParents",wt="viewport",Ot="popper",jt="reference",Nt=vt.reduce(((e,t)=>e.concat([`${t}-${gt}`,`${t}-${xt}`])),[]),St=[...vt,bt].reduce(((e,t)=>e.concat([t,`${t}-${gt}`,`${t}-${xt}`])),[]),Ct=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function _t(e){const t=new Map,n=new Set,i=[];function a(e){n.add(e.name);[...e.requires||[],...e.requiresIfExists||[]].forEach((e=>{if(!n.has(e)){const n=t.get(e);n&&a(n)}})),i.push(e)}return e.forEach((e=>{t.set(e.name,e)})),e.forEach((e=>{n.has(e.name)||a(e)})),i}function Et(e){let t;return()=>(t||(t=new Promise((n=>{Promise.resolve().then((()=>{t=void 0,n(e())}))}))),t)}function It(e){return e.split("-")[0]}function kt(e,t){const n=Boolean(t.getRootNode&&t.getRootNode().host);if(e.contains(t))return!0;if(n){let n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Rt(e){return Object.assign(Object.assign({},e),{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Tt(e,t){return t===wt?Rt(function(e){const t=Ke(e),n=et(e),i=t.visualViewport;let a=n.clientWidth,o=n.clientHeight,r=0,s=0;return i&&(a=i.width,o=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(r=i.offsetLeft,s=i.offsetTop)),{width:a,height:o,x:r+tt(e),y:s}}(e)):Je(t)?function(e){const t=Ze(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Rt(function(e){const t=et(e),n=Xe(e),i=e.ownerDocument.body,a=Math.max(t.scrollWidth,t.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Math.max(t.scrollHeight,t.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);let r=-n.scrollLeft+tt(e);const s=-n.scrollTop;return"rtl"===nt(i||t).direction&&(r+=Math.max(t.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:r,y:s}}(et(e)))}function Pt(e,t,n){const i="clippingParents"===t?function(e){const t=lt(rt(e)),n=["absolute","fixed"].indexOf(nt(e).position)>=0&&Je(e)?pt(e):e;return Ye(n)?t.filter((e=>Ye(e)&&kt(e,n)&&"body"!==Qe(e))):[]}(e):[].concat(t),a=[...i,n],o=a[0],r=a.reduce(((t,n)=>{const i=Tt(e,n);return t.top=Math.max(i.top,t.top),t.right=Math.min(i.right,t.right),t.bottom=Math.min(i.bottom,t.bottom),t.left=Math.max(i.left,t.left),t}),Tt(e,o));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}function Dt(e){return e.split("-")[1]}function Lt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function At({reference:e,element:t,placement:n}){const i=n?It(n):null,a=n?Dt(n):null,o=e.x+e.width/2-t.width/2,r=e.y+e.height/2-t.height/2;let s;switch(i){case ut:s={x:o,y:e.y-t.height};break;case ft:s={x:o,y:e.y+e.height};break;case mt:s={x:e.x+e.width,y:r};break;case ht:s={x:e.x-t.width,y:r};break;default:s={x:e.x,y:e.y}}const l=i?Lt(i):null;if(null!=l){const n="y"===l?"height":"width";switch(a){case gt:s[l]=Math.floor(s[l])-Math.floor(e[n]/2-t[n]/2);break;case xt:s[l]=Math.floor(s[l])+Math.ceil(e[n]/2-t[n]/2)}}return s}function Mt(e){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),e)}function Ft(e,t){return t.reduce(((t,n)=>(t[n]=e,t)),{})}function Bt(e,t={}){const{placement:n=e.placement,boundary:i=yt,rootBoundary:a=wt,elementContext:o=Ot,altBoundary:r=!1,padding:s=0}=t,l=Mt("number"!=typeof s?s:Ft(s,vt)),c=o===Ot?jt:Ot,d=e.elements.reference,p=e.rects.popper,u=e.elements[r?c:o],f=Pt(Ye(u)?u:u.contextElement||et(e.elements.popper),i,a),m=Ze(d),h=At({reference:m,element:p,placement:n}),b=Rt(Object.assign(Object.assign({},p),h)),v=o===Ot?b:m,g={top:f.top-v.top+l.top,bottom:v.bottom-f.bottom+l.bottom,left:f.left-v.left+l.left,right:v.right-f.right+l.right},x=e.modifiersData.offset;if(o===Ot&&x){const e=x[n];Object.keys(g).forEach((t=>{const n=[mt,ft].indexOf(t)>=0?1:-1,i=[ut,ft].indexOf(t)>=0?"y":"x";g[t]+=e[i]*n}))}return g}const Ht={placement:"bottom",modifiers:[],strategy:"absolute"};function Vt(...e){return!e.some((e=>!(e&&"function"==typeof e.getBoundingClientRect)))}function zt(e={}){const{defaultModifiers:t=[],defaultOptions:n=Ht}=e;return function(e,i,a=n){let o={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},Ht),n),modifiersData:{},elements:{reference:e,popper:i},attributes:{},styles:{}},r=[],s=!1;const l={state:o,setOptions(a){c(),o.options=Object.assign(Object.assign(Object.assign({},n),o.options),a),o.scrollParents={reference:Ye(e)?lt(e):e.contextElement?lt(e.contextElement):[],popper:lt(i)};const s=function(e){const t=_t(e);return Ct.reduce(((e,n)=>e.concat(t.filter((e=>e.phase===n)))),[])}(function(e){const t=e.reduce(((e,t)=>{const n=e[t.name];return e[t.name]=n?Object.assign(Object.assign(Object.assign({},n),t),{options:Object.assign(Object.assign({},n.options),t.options),data:Object.assign(Object.assign({},n.data),t.data)}):t,e}),{});return Object.keys(t).map((e=>t[e]))}([...t,...o.options.modifiers]));return o.orderedModifiers=s.filter((e=>e.enabled)),o.orderedModifiers.forEach((({name:e,options:t={},effect:n})=>{if("function"==typeof n){const i=n({state:o,name:e,instance:l,options:t}),a=()=>{};r.push(i||a)}})),l.update()},forceUpdate(){if(s)return;const{reference:e,popper:t}=o.elements;if(Vt(e,t)){o.rects={reference:at(e,pt(t),"fixed"===o.options.strategy),popper:ot(t)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((e=>o.modifiersData[e.name]=Object.assign({},e.data)));for(let e=0;e<o.orderedModifiers.length;e++){if(!0===o.reset){o.reset=!1,e=-1;continue}const{fn:t,options:n={},name:i}=o.orderedModifiers[e];"function"==typeof t&&(o=t({state:o,options:n,name:i,instance:l})||o)}}},update:Et((()=>new Promise((e=>{l.forceUpdate(),e(o)})))),destroy(){c(),s=!0}};if(!Vt(e,i))return l;function c(){r.forEach((e=>e())),r=[]}return l.setOptions(a).then((e=>{!s&&a.onFirstUpdate&&a.onFirstUpdate(e)})),l}}zt();const $t={passive:!0};const Wt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ut({popper:e,popperRect:t,placement:n,offsets:i,position:a,gpuAcceleration:o,adaptive:r}){let{x:s,y:l}=function({x:e,y:t}){const n=window.devicePixelRatio||1;return{x:Math.round(e*n)/n||0,y:Math.round(t*n)/n||0}}(i);const c=i.hasOwnProperty("x"),d=i.hasOwnProperty("y");let p=ht,u=ut;const f=window;if(r){let i=pt(e);i===Ke(e)&&(i=et(e)),n===ut&&(u=ft,l-=i.clientHeight-t.height,l*=o?1:-1),n===ht&&(p=mt,s-=i.clientWidth-t.width,s*=o?1:-1)}const m=Object.assign({position:a},r&&Wt);return o?Object.assign(Object.assign({},m),{[u]:d?"0":"",[p]:c?"0":"",transform:(f.devicePixelRatio||1)<2?`translate(${s}px, ${l}px)`:`translate3d(${s}px, ${l}px, 0)`}):Object.assign(Object.assign({},m),{[u]:d?`${l}px`:"",[p]:c?`${s}px`:"",transform:""})}var qt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function({state:e,options:t,name:n}){const{offset:i=[0,0]}=t,a=St.reduce(((t,n)=>(t[n]=function(e,t,n){const i=It(e),a=[ht,ut].indexOf(i)>=0?-1:1;let[o,r]="function"==typeof n?n(Object.assign(Object.assign({},t),{placement:e})):n;return o=o||0,r=(r||0)*a,[ht,mt].indexOf(i)>=0?{x:r,y:o}:{x:o,y:r}}(n,e.rects,i),t)),{}),{x:o,y:r}=a[e.placement];null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=o,e.modifiersData.popperOffsets.y+=r),e.modifiersData[n]=a}};const Gt={left:"right",right:"left",bottom:"top",top:"bottom"};function Zt(e){return e.replace(/left|right|bottom|top/g,(e=>Gt[e]))}const Kt={start:"end",end:"start"};function Xt(e){return e.replace(/start|end/g,(e=>Kt[e]))}function Yt(e,t={}){const{placement:n,boundary:i,rootBoundary:a,padding:o,flipVariations:r,allowedAutoPlacements:s=St}=t,l=Dt(n),c=l?r?Nt:Nt.filter((e=>Dt(e)===l)):vt;let d=c.filter((e=>s.indexOf(e)>=0));0===d.length&&(d=c);const p=d.reduce(((t,n)=>(t[n]=Bt(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[It(n)],t)),{});return Object.keys(p).sort(((e,t)=>p[e]-p[t]))}var Jt={name:"flip",enabled:!0,phase:"main",fn:function({state:e,options:t,name:n}){if(e.modifiersData[n]._skip)return;const{mainAxis:i=!0,altAxis:a=!0,fallbackPlacements:o,padding:r,boundary:s,rootBoundary:l,altBoundary:c,flipVariations:d=!0,allowedAutoPlacements:p}=t,u=e.options.placement,f=It(u),m=[u,...o||(f===u||!d?[Zt(u)]:function(e){if(It(e)===bt)return[];const t=Zt(e);return[Xt(e),t,Xt(t)]}(u))].reduce(((t,n)=>t.concat(It(n)===bt?Yt(e,{placement:n,boundary:s,rootBoundary:l,padding:r,flipVariations:d,allowedAutoPlacements:p}):n)),[]),h=e.rects.reference,b=e.rects.popper,v=new Map;let g=!0,x=m[0];for(let t=0;t<m.length;t++){const n=m[t],o=It(n),d=Dt(n)===gt,p=[ut,ft].indexOf(o)>=0,u=p?"width":"height",f=Bt(e,{placement:n,boundary:s,rootBoundary:l,altBoundary:c,padding:r});let y=p?d?mt:ht:d?ft:ut;h[u]>b[u]&&(y=Zt(y));const w=Zt(y),O=[];if(i&&O.push(f[o]<=0),a&&O.push(f[y]<=0,f[w]<=0),O.every((e=>e))){x=n,g=!1;break}v.set(n,O)}if(g){for(let e=d?3:1;e>0;e--){const t=m.find((t=>{const n=v.get(t);if(n)return n.slice(0,e).every((e=>e))}));if(t){x=t;break}}}e.placement!==x&&(e.modifiersData[n]._skip=!0,e.placement=x,e.reset=!0)},requiresIfExists:["offset"],data:{_skip:!1}};function Qt(e,t,n){return Math.max(e,Math.min(t,n))}var en={name:"preventOverflow",enabled:!0,phase:"main",fn:function({state:e,options:t,name:n}){const{mainAxis:i=!0,altAxis:a=!1,boundary:o,rootBoundary:r,altBoundary:s,padding:l,tether:c=!0,tetherOffset:d=0}=t,p=Bt(e,{boundary:o,rootBoundary:r,padding:l,altBoundary:s}),u=It(e.placement),f=Dt(e.placement),m=!f,h=Lt(u),b="x"===h?"y":"x",v=e.modifiersData.popperOffsets,g=e.rects.reference,x=e.rects.popper,y="function"==typeof d?d(Object.assign(Object.assign({},e.rects),{placement:e.placement})):d,w={x:0,y:0};if(v){if(i){const t="y"===h?ut:ht,n="y"===h?ft:mt,i="y"===h?"height":"width",a=v[h],o=v[h]+p[t],r=v[h]-p[n],s=c?-x[i]/2:0,l=f===gt?g[i]:x[i],d=f===gt?-x[i]:-g[i],u=e.elements.arrow,b=c&&u?ot(u):{width:0,height:0},O=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},j=O[t],N=O[n],S=Qt(0,g[i],b[i]),C=m?g[i]/2-s-S-j-y:l-S-j-y,_=m?-g[i]/2+s+S+N+y:d+S+N+y,E=e.elements.arrow&&pt(e.elements.arrow),I=E?"y"===h?E.clientTop||0:E.clientLeft||0:0,k=e.modifiersData.offset?e.modifiersData.offset[e.placement][h]:0,R=v[h]+C-k-I,T=v[h]+_-k,P=Qt(c?Math.min(o,R):o,a,c?Math.max(r,T):r);v[h]=P,w[h]=P-a}if(a){const e="x"===h?ut:ht,t="x"===h?ft:mt,n=v[b],i=Qt(n+p[e],n,n-p[t]);v[b]=i,w[b]=i-n}e.modifiersData[n]=w}},requiresIfExists:["offset"]};var tn={name:"arrow",enabled:!0,phase:"main",fn:function({state:e,name:t}){const n=e.elements.arrow,i=e.modifiersData.popperOffsets,a=It(e.placement),o=Lt(a),r=[ht,mt].indexOf(a)>=0?"height":"width";if(!n||!i)return;const s=e.modifiersData[`${t}#persistent`].padding,l=ot(n),c="y"===o?ut:ht,d="y"===o?ft:mt,p=e.rects.reference[r]+e.rects.reference[o]-i[o]-e.rects.popper[r],u=i[o]-e.rects.reference[o],f=pt(n),m=f?"y"===o?f.clientHeight||0:f.clientWidth||0:0,h=p/2-u/2,b=s[c],v=m-l[r]-s[d],g=m/2-l[r]/2+h,x=Qt(b,g,v),y=o;e.modifiersData[t]={[y]:x,centerOffset:x-g}},effect:function({state:e,options:t,name:n}){let{element:i="[data-popper-arrow]",padding:a=0}=t;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i),i))&&kt(e.elements.popper,i)&&(e.elements.arrow=i,e.modifiersData[`${n}#persistent`]={padding:Mt("number"!=typeof a?a:Ft(a,vt))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function nn(e,t,n={x:0,y:0}){return{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function an(e){return[ut,mt,ft,ht].some((t=>e[t]>=0))}const on=zt({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:()=>{},effect:function({state:e,instance:t,options:n}){const{scroll:i=!0,resize:a=!0}=n,o=Ke(e.elements.popper),r=[...e.scrollParents.reference,...e.scrollParents.popper];return i&&r.forEach((e=>{e.addEventListener("scroll",t.update,$t)})),a&&o.addEventListener("resize",t.update,$t),()=>{i&&r.forEach((e=>{e.removeEventListener("scroll",t.update,$t)})),a&&o.removeEventListener("resize",t.update,$t)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function({state:e,name:t}){e.modifiersData[t]=At({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function({state:e,options:t}){const{gpuAcceleration:n=!0,adaptive:i=!0}=t,a={placement:It(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign(Object.assign({},e.styles.popper),Ut(Object.assign(Object.assign({},a),{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:i})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign(Object.assign({},e.styles.arrow),Ut(Object.assign(Object.assign({},a),{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1})))),e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function({state:e}){Object.keys(e.elements).forEach((t=>{const n=e.styles[t]||{},i=e.attributes[t]||{},a=e.elements[t];Je(a)&&Qe(a)&&(Object.assign(a.style,n),Object.keys(i).forEach((e=>{const t=i[e];!1===t?a.removeAttribute(e):a.setAttribute(e,!0===t?"":t)})))}))},effect:function({state:e}){const t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),()=>{Object.keys(e.elements).forEach((n=>{const i=e.elements[n],a=e.attributes[n]||{},o=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:t[n]).reduce(((e,t)=>(e[t]="",e)),{});Je(i)&&Qe(i)&&(Object.assign(i.style,o),Object.keys(a).forEach((e=>{i.removeAttribute(e)})))}))}},requires:["computeStyles"]},qt,Jt,en,tn,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function({state:e,name:t}){const n=e.rects.reference,i=e.rects.popper,a=e.modifiersData.preventOverflow,o=Bt(e,{elementContext:"reference"}),r=Bt(e,{altBoundary:!0}),s=nn(o,n),l=nn(r,i,a),c=an(s),d=an(l);e.modifiersData[t]={referenceClippingOffsets:s,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:d},e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]}),rn=We?t.useLayoutEffect:t.useEffect,sn=e=>e.reduce(((e,[t,n])=>(e[t]=n,e)),{}),ln=[];const cn=(e,n,i={})=>{const a=t.useRef(null),o={onFirstUpdate:i.onFirstUpdate,placement:i.placement||"bottom",strategy:i.strategy||"absolute",modifiers:i.modifiers||ln},[r,s]=t.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"}},attributes:{}}),l=t.useMemo((()=>({name:"updateState",enabled:!0,phase:"write",fn:({state:e})=>{const t=Object.keys(e.elements);s({styles:sn(t.map((t=>[t,e.styles[t]||{}]))),attributes:sn(t.map((t=>[t,e.attributes[t]])))})},requires:["computeStyles"]})),[]),c=t.useMemo((()=>{const e={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[...o.modifiers,l,{name:"applyStyles",enabled:!1}]};return t=a.current,n=e,JSON.stringify(t)===JSON.stringify(n)?a.current||e:(a.current=e,e);var t,n}),[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,l]),d=t.useRef(void 0);return rn((()=>{d&&d.current&&d.current.setOptions(c)}),[c]),rn((()=>{if(null==e||null==n)return;if(!function(e){if(e instanceof Element)return e.isConnected;const{contextElement:t}=e;return!(t instanceof Element)||t.isConnected}(e)||!n.isConnected)return;const t=(i.createPopper||on)(e,n,c);return d.current=t,()=>{t.destroy(),d.current=null}}),[e,n,i.createPopper]),{state:d.current?d.current.state:null,styles:r.styles,attributes:r.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}},dn={left:"right",right:"left",bottom:"top",top:"bottom","top-start":"bottom-end","top-end":"bottom-start","bottom-start":"top-end","bottom-end":"top-start","left-start":"right-end","left-end":"right-start","right-start":"left-end","right-end":"left-start"},pn=e=>`opacity ${e}ms cubic-bezier(.54, 1.5, .38, 1.11)`,un=({trigger:e,popper:n,direction:i="down",position:o="start",placement:r,width:s,minWidth:l="trigger",maxWidth:c,appendTo:d=(()=>document.body),zIndex:p=9999,isVisible:u=!0,positionModifiers:f,distance:m=0,offset:h,onMouseEnter:b,onMouseLeave:x,onFocus:y,onBlur:w,onDocumentClick:O,onTriggerClick:j,onTriggerEnter:N,onPopperClick:S,onPopperMouseEnter:C,onPopperMouseLeave:_,onDocumentKeyDown:E,enableFlip:I=!0,flipBehavior:k="flip",triggerRef:R,popperRef:T,animationDuration:P=0,entryDelay:D=0,exitDelay:L=0,onHidden:A=(()=>{}),onHide:M=(()=>{}),onMount:F=(()=>{}),onShow:B=(()=>{}),onShown:H=(()=>{}),preventOverflow:V=!1})=>{var z;const[$,W]=t.useState(null),[U,q]=t.useState(null),[G,Z]=t.useState(null),[K,X]=t.useState(null),[Y,J]=t.useState(!1),[Q,ee]=t.useState(0),[te,ne]=t.useState(u),ie=t.useRef(null),ae=t.useRef(null),oe=t.useRef(null),re=t.useRef(void 0),se=U||$,le=u||te,ce=((e,t="ltr")=>{if(!e)return t;const n=getComputedStyle(e).getPropertyValue("direction");return["ltr","rtl"].includes(n)?n:t})(null===(z=(null==R?void 0:R.current)||$)||void 0===z?void 0:z.parentElement),de=t.useMemo((()=>{const e={left:"left",right:"right",center:"center"};return{ltr:Object.assign({start:"left",end:"right"},e),rtl:Object.assign({start:"right",end:"left"},e)}[ce][o]}),[o,ce]),pe=t.useCallback((e=>O(e,se,G)),[le,$,U,G,O]);t.useEffect((()=>{J(!0),F()}),[]),t.useEffect((()=>()=>{Ge([ie,oe,ae])}),[]),t.useEffect((()=>{R&&(R.current?q(R.current):"function"==typeof R&&q(R()))}),[R,e]),t.useEffect((()=>{T&&(T.current?Z(T.current):"function"==typeof T&&Z(T()))}),[le,T]),t.useEffect((()=>{const e=new MutationObserver((()=>{ye&&ye()}));return G&&e.observe(G,{attributes:!0,childList:!0,subtree:!0}),()=>{e.disconnect()}}),[G]);const ue=(e,t,n,i=!1)=>{e&&t&&t.addEventListener(n,e,{capture:i})},fe=(e,t,n,i=!1)=>{e&&t&&t.removeEventListener(n,e,{capture:i})};t.useEffect((()=>(ue(b,se,"mouseenter"),ue(x,se,"mouseleave"),ue(y,se,"focus"),ue(w,se,"blur"),ue(j,se,"click"),ue(N,se,"keydown"),ue(S,G,"click"),ue(C,G,"mouseenter"),ue(_,G,"mouseleave"),O&&ue(pe,document,"click",!0),ue(E,document,"keydown",!0),()=>{fe(b,se,"mouseenter"),fe(x,se,"mouseleave"),fe(y,se,"focus"),fe(w,se,"blur"),fe(j,se,"click"),fe(N,se,"keydown"),fe(S,G,"click"),fe(C,G,"mouseenter"),fe(_,G,"mouseleave"),O&&fe(pe,document,"click",!0),fe(E,document,"keydown",!0)})),[$,G,b,x,y,w,j,N,S,C,_,O,E,U]);const me=()=>{if(r)return r;let e="up"===i?"top":"bottom";return"center"!==de&&(e=`${e}-${"right"===de?"end":"start"}`),e},he=t.useMemo(me,[i,de,r]),be=t.useMemo((()=>(e=>e.replace(/left|right|bottom|top|top-start|top-end|bottom-start|bottom-end|right-start|right-end|left-start|left-end/g,(e=>dn[e])))(me())),[i,de,r]),ve=t.useMemo((()=>({name:"widthMods",enabled:void 0!==s||void 0!==l||void 0!==c,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{const t=e.rects.reference.width;s&&(e.styles.popper.width="trigger"===s?`${t}px`:s),l&&(e.styles.popper.minWidth="trigger"===l?`${t}px`:l),c&&(e.styles.popper.maxWidth="trigger"===c?`${t}px`:c)},effect:({state:e})=>{const t=e.elements.reference.offsetWidth;return s&&(e.elements.popper.style.width="trigger"===s?`${t}px`:s),l&&(e.elements.popper.style.minWidth="trigger"===l?`${t}px`:l),c&&(e.elements.popper.style.maxWidth="trigger"===c?`${t}px`:c),()=>{}}})),[s,l,c]),{styles:ge,attributes:xe,update:ye,forceUpdate:we}=cn(se,G,{placement:he,modifiers:[{name:"offset",options:{offset:h||[0,m]}},{name:"preventOverflow",enabled:V},{name:"hide",enabled:!0},{name:"flip",enabled:he.startsWith("auto")||I,options:{fallbackPlacements:"flip"===k?[be]:k}},ve]});t.useEffect((()=>{var e,t,i,a,o,r,s;const l=(null===(a=null===(i=null===(t=null===(e=null==n?void 0:n.props)||void 0===e?void 0:e.children)||void 0===t?void 0:t[1])||void 0===i?void 0:i.props)||void 0===a?void 0:a.children)||(null===(s=null===(r=null===(o=null==n?void 0:n.props)||void 0===o?void 0:o.children)||void 0===r?void 0:r.props)||void 0===s?void 0:s.children);X(l),l&&K&&l!==K&&we&&we()}),[n]),t.useEffect((()=>{re.current<L&&(Ge([ie,oe]),oe.current=setTimeout((()=>{ie.current=setTimeout((()=>{ne(!1)}),P)}),L)),re.current=L}),[L]);t.useEffect((()=>{u?(B(),Ge([ie,oe]),ae.current=setTimeout((()=>{ne(!0),ee(1),H()}),D)):(M(),Ge([ae]),oe.current=setTimeout((()=>{ee(0),ie.current=setTimeout((()=>{ne(!1),Z(null),A()}),P)}),L))}),[u]);const Oe=Object.assign({className:g(n.props&&n.props.className,f&&(()=>{if(xe&&xe.popper&&xe.popper["data-popper-placement"]){const e=xe.popper["data-popper-placement"];return f[e]}return f.top})()),style:Object.assign(Object.assign(Object.assign({},n.props&&n.props.style||{}),ge.popper),{zIndex:p,opacity:Q,transition:pn(P)})},xe.popper),je=()=>{const e=t.cloneElement(n,Oe);return T?e:v.jsx("div",{style:{display:"contents"},ref:e=>{Z(null==e?void 0:e.firstElementChild)},children:e})};return v.jsxs(v.Fragment,{children:[!R&&e&&t.isValidElement(e)&&v.jsx("div",{style:{display:"contents"},ref:e=>{W(null==e?void 0:e.firstElementChild)},children:e}),R&&e&&t.isValidElement(e)&&e,Y&&le&&(()=>{if("inline"===d)return je();{const e="function"==typeof d?d():d;return a.createPortal(je(),e)}})()]})};un.displayName="Popper";const fn=({prefix:e,ouiaComponentType:t,children:n})=>{var i;const a=Ae(e),o=Ae(t?`OUIA-Generated-${t}-`:"pf-unused-");return null!==(i=n(a,t?o:void 0))&&void 0!==i?i:null};fn.displayName="SSRSafeIds";const mn=(e,t,n=(e=>document.activeElement.contains(e)),i=(e=>e),a=["A","BUTTON","INPUT"],o=!1,r=!1,s=!0,l=!0)=>{const c=document.activeElement,d=e.key;let p=null;if(!o&&["ArrowUp","ArrowDown"].includes(d)){e.preventDefault(),e.stopImmediatePropagation();let a=-1;t.forEach(((e,o)=>{if(n(e)){let e=0;for(;!p&&e<t.length&&-1*e<t.length;)"ArrowUp"===d?e--:e++,a=o+e,a>=t.length&&(a=0),a<0&&(a=t.length-1),p=i(t[a])}}))}if(!r&&["ArrowLeft","ArrowRight"].includes(d)){e.preventDefault(),e.stopImmediatePropagation();let i=-1;t.forEach(((o,r)=>{var s;if(n(o)){const n=t[r].querySelectorAll(a.join(","));if(!n.length||l){let e=c;for(;e;){const t=e.parentElement===o?e:e.parentElement;if(e="ArrowLeft"===d?t.previousElementSibling:t.nextElementSibling,e){if(a.includes(null==e?void 0:e.tagName)){p=e;break}if(a.includes(null===(s=e.children[0])||void 0===s?void 0:s.tagName)){p=e.children[0];break}}}}else n.forEach(((t,a)=>{if(e.target===t){i=a+("ArrowLeft"===d?-1:1),i>=n.length&&(i=0),i<0&&(i=n.length-1),p=n[i]}}))}}))}p&&(s&&(c.tabIndex=-1,p.tabIndex=0),p.focus())},hn=(e,t)=>{var n;if("ArrowDown"!==e.key&&"ArrowUp"!==e.key)return;e.preventDefault();const i=Array.from(null===(n=t.current)||void 0===n?void 0:n.querySelectorAll("li")).map((e=>e.querySelector('button:not(:disabled),input:not(:disabled),a:not([aria-disabled="true"])'))).filter((e=>null!==e));let a;a="ArrowDown"===e.key?i[0]:i[i.length-1],a&&a.focus()};class bn extends t.Component{constructor(){super(...arguments),this.keyHandler=e=>{const{isEventFromContainer:t}=this.props;if(t?!t(e):!this._isEventFromContainer(e))return;const{isActiveElement:n,getFocusableElement:i,noVerticalArrowHandling:a,noHorizontalArrowHandling:o,noEnterHandling:r,noSpaceHandling:s,updateTabIndex:l,validSiblingTags:c,additionalKeyHandler:d,createNavigableElements:p,onlyTraverseSiblings:u}=this.props;d&&d(e);const f=p();if(!f)return void console.warn("No navigable elements have been passed to the KeyboardHandler. Keyboard navigation provided by this component will be ignored.");const m=e.key;r||"Enter"===m&&(e.preventDefault(),e.stopImmediatePropagation(),document.activeElement.click()),s||" "===m&&(e.preventDefault(),e.stopImmediatePropagation(),document.activeElement.click()),mn(e,f,n,i,c,a,o,l,u)},this._isEventFromContainer=e=>{const{containerRef:t}=this.props;return t.current&&t.current.contains(e.target)}}componentDidMount(){We&&window.addEventListener("keydown",this.keyHandler)}componentWillUnmount(){We&&window.removeEventListener("keydown",this.keyHandler)}render(){return null}}bn.displayName="KeyboardHandler",bn.defaultProps={containerRef:null,createNavigableElements:()=>null,isActiveElement:e=>document.activeElement===e,getFocusableElement:e=>e,validSiblingTags:["BUTTON","A"],onlyTraverseSiblings:!0,updateTabIndex:!0,noHorizontalArrowHandling:!1,noVerticalArrowHandling:!1,noEnterHandling:!1,noSpaceHandling:!1};const vn=t.createContext({menuId:null,parentMenu:null,onActionClick:()=>null,onSelect:()=>null,activeItemId:null,selected:null,drilledInMenus:[],drilldownItemPath:[],onDrillIn:null,onDrillOut:null,onGetMenuHeight:()=>null,flyoutRef:null,setFlyoutRef:()=>null,disableHover:!1,role:"menu"}),gn=t.createContext({itemId:null,isDisabled:!1});class xn extends t.Component{constructor(e){super(e),this.menuRef=t.createRef(),this.activeMenu=null,this.state={transitionMoveTarget:null,flyoutRef:null,currentDrilldownMenuId:this.props.id},this.handleDrilldownTransition=e=>{const t=this.menuRef.current;if(t&&(t===e.target.closest(`.${y}`)||Array.from(t.getElementsByClassName(y)).includes(e.target.closest(`.${y}`))))if(this.state.transitionMoveTarget)this.state.transitionMoveTarget.focus(),this.setState({transitionMoveTarget:null});else{const e=t.querySelector("#"+this.props.activeMenu)||t||null,n=e.getElementsByTagName("UL");if(0===n.length)return;const i=Array.from(n[0].children);if(this.state.currentDrilldownMenuId&&e.id===this.state.currentDrilldownMenuId)return;this.setState({currentDrilldownMenuId:e.id});const a=i.filter((e=>!(e.classList.contains("pf-m-disabled")||e.classList.contains(x))))[0].firstChild;a.focus(),a.tabIndex=0}},this.handleExtraKeys=e=>{const t=this.props.containsDrilldown,n=document.activeElement;if(e.target.closest(`.${y}`)===this.activeMenu||e.target.classList.contains(A)||(this.activeMenu=e.target.closest(`.${y}`)),"INPUT"===e.target.tagName)return;const i=this.activeMenu,a=e.key,o=n.classList.contains(A);if(" "===a||"Enter"===a){if(e.preventDefault(),t&&!o){if(n.closest("li").classList.contains("pf-m-current-path")&&"LI"===i.parentElement.tagName)n.tabIndex=-1,i.parentElement.firstChild.tabIndex=0,this.setState({transitionMoveTarget:i.parentElement.firstChild});else if(n.nextElementSibling&&n.nextElementSibling.classList.contains(y)){const e=Array.from(n.nextElementSibling.getElementsByTagName("UL")[0].children).filter((e=>!(e.classList.contains("pf-m-disabled")||e.classList.contains(x))));n.tabIndex=-1,e[0].firstChild.tabIndex=0,this.setState({transitionMoveTarget:e[0].firstChild})}}document.activeElement.click()}},this.createNavigableElements=()=>this.props.containsDrilldown?this.activeMenu?Array.from(this.activeMenu.getElementsByTagName("UL")[0].children).filter((e=>!(e.classList.contains("pf-m-disabled")||e.classList.contains(x)))):[]:this.menuRef.current?Array.from(this.menuRef.current.getElementsByTagName("LI")).filter((e=>!(e.classList.contains("pf-m-disabled")||e.classList.contains(x)))):[],e.innerRef&&(this.menuRef=e.innerRef)}allowTabFirstItem(){const e=this.menuRef.current;if(e){const t=e.querySelector("ul button:not(:disabled), ul a:not(:disabled)");t&&(t.tabIndex=0)}}componentDidMount(){We&&this.props.containsDrilldown&&this.props.isRootMenu&&window.addEventListener("transitionend",this.handleDrilldownTransition),this.allowTabFirstItem()}componentWillUnmount(){We&&this.props.containsDrilldown&&this.props.isRootMenu&&window.removeEventListener("transitionend",this.handleDrilldownTransition)}componentDidUpdate(e){e.children!==this.props.children&&this.allowTabFirstItem()}render(){const e=this.props,{id:t,children:n,className:i,onSelect:a,selected:r=null,onActionClick:s,ouiaId:l,ouiaSafe:c,containsFlyout:d,containsDrilldown:p,isMenuDrilledIn:u,isPlain:f,isScrollable:m,drilldownItemPath:h,drilledInMenus:b,onDrillIn:x,onDrillOut:w,onGetMenuHeight:O,parentMenu:j=null,activeItemId:N=null,innerRef:S,isRootMenu:C,activeMenu:_,role:E,isNavFlyout:I}=e,k=o(e,["id","children","className","onSelect","selected","onActionClick","ouiaId","ouiaSafe","containsFlyout","containsDrilldown","isMenuDrilledIn","isPlain","isScrollable","drilldownItemPath","drilledInMenus","onDrillIn","onDrillOut","onGetMenuHeight","parentMenu","activeItemId","innerRef","isRootMenu","activeMenu","role","isNavFlyout"]),R=u||b&&b.includes(t)||!1;return v.jsx(fn,{prefix:"pf-",ouiaComponentType:yn.displayName,children:(e,o)=>{var u,S;return v.jsxs(vn.Provider,{value:{menuId:t,parentMenu:j||t,onSelect:a,onActionClick:s,activeItemId:N,selected:r,drilledInMenus:b,drilldownItemPath:h,onDrillIn:x,onDrillOut:w,onGetMenuHeight:O,flyoutRef:this.state.flyoutRef,setFlyoutRef:e=>this.setState({flyoutRef:e}),disableHover:null!==(S=null===(u=this.context)||void 0===u?void 0:u.disableHover)&&void 0!==S&&S,role:E},children:[C&&v.jsx(bn,{containerRef:this.menuRef||null,additionalKeyHandler:this.handleExtraKeys,createNavigableElements:this.createNavigableElements,isActiveElement:e=>document.activeElement.closest("li")===e||document.activeElement.parentElement===e||document.activeElement.closest(`.${D}`)===e||document.activeElement.closest("ol")&&document.activeElement.closest("ol").firstChild===e,getFocusableElement:e=>{var t,n;return"DIV"===(null==e?void 0:e.tagName)&&e.querySelector("input")||"LABEL"===(null===(t=e.firstChild)||void 0===t?void 0:t.tagName)&&e.querySelector("input")||"DIV"===(null===(n=e.firstChild)||void 0===n?void 0:n.tagName)&&e.querySelector("a, button, input")||e.firstChild},noHorizontalArrowHandling:document.activeElement&&(document.activeElement.classList.contains(A)||"INPUT"===document.activeElement.tagName),noEnterHandling:!0,noSpaceHandling:!0}),v.jsx("div",Object.assign({id:t,className:g(y,f&&L.plain,m&&L.scrollable,d&&L.flyout,I&&"pf-m-nav",p&&L.drilldown,R&&L.drilledIn,i),ref:this.menuRef},Me(yn.displayName,void 0!==l?l:o,c),k,{children:n}))]})}})}}xn.displayName="Menu",xn.contextType=vn,xn.defaultProps={ouiaSafe:!0,isRootMenu:!0,isPlain:!1,isScrollable:!1,role:"menu"};const yn=t.forwardRef(((e,t)=>v.jsx(xn,Object.assign({},e,{innerRef:t}))));yn.displayName="Menu";const wn="--pf-v6-c-menu__content--Height",On="--pf-v6-c-menu__content--MaxHeight",jn=t.forwardRef(((e,n)=>{const{getHeight:i,children:a,menuHeight:r,maxMenuHeight:s}=e,l=o(e,["getHeight","children","menuHeight","maxMenuHeight"]);t.createRef();return v.jsx(vn.Consumer,{children:({menuId:t,onGetMenuHeight:n})=>v.jsx("div",Object.assign({},l,{className:g(w,e.className),ref:e=>{((e,t,n)=>{if(e){let a=e.clientHeight,o=null,r=e.closest(`.${T}`);for(;null!==r&&1===r.nodeType;)r.classList.contains(T)&&(o=r),r=r.parentElement;if(o){const e=getComputedStyle(o);a+=parseFloat(e.getPropertyValue("padding-top").replace(/px/g,""))+parseFloat(e.getPropertyValue("padding-bottom").replace(/px/g,""))+parseFloat(getComputedStyle(o.parentElement).getPropertyValue("border-bottom-width").replace(/px/g,""))}n&&n(t,a),i&&i(a.toString())}})(e,t,n)},style:Object.assign(Object.assign({},r&&{[wn]:r}),s&&{[On]:s}),children:a}))})}));jn.displayName="MenuContent";const Nn="--pf-v6-c-menu--m-flyout__menu--top-offset",Sn="--pf-v6-c-menu--m-flyout__menu--m-left--right-offset",Cn="--pf-v6-c-menu--m-flyout__menu--left-offset",_n=z({name:"ExternalLinkAltIcon",icon:{xOffset:0,yOffset:0,width:512,height:512,svgPathData:"M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z"},rhUiIcon:{xOffset:0,yOffset:0,width:32,height:32,svgPathData:"M28.5 2h-25C2.673 2 2 2.673 2 3.5v25c0 .827.673 1.5 1.5 1.5h25c.827 0 1.5-.673 1.5-1.5v-25c0-.827-.673-1.5-1.5-1.5Zm-3.375 17a1.125 1.125 0 0 1-2.25 0v-8.284L11.796 21.795a1.122 1.122 0 0 1-1.592 0 1.127 1.127 0 0 1 0-1.591l11.08-11.08H13a1.125 1.125 0 0 1 0-2.25h10.5c.896 0 1.625.729 1.625 1.625v10.5Z"}}),En=z({name:"RhMicronsCaretLeftIcon",icon:{xOffset:0,yOffset:0,width:20,height:20,svgPathData:"m6.41 10 7.29-7.29.02-.02c.38-.4.37-1.03-.02-1.41-.4-.38-1.03-.37-1.41.02L4.64 8.95a1.49 1.49 0 0 0 0 2.12l7.65 7.65c.19.19.44.29.71.29.27 0 .52-.11.71-.29a.996.996 0 0 0 0-1.41l-7.29-7.29Z"},rhUiIcon:null}),In=z({name:"RhMicronsCaretRightIcon",icon:{xOffset:0,yOffset:0,width:20,height:20,svgPathData:"M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"},rhUiIcon:null}),kn=z({name:"CheckIcon",icon:{xOffset:0,yOffset:0,width:512,height:512,svgPathData:"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"},rhUiIcon:{xOffset:0,yOffset:0,width:32,height:32,svgPathData:"M11 26.792c-.384 0-.769-.146-1.061-.438l-8.646-8.647a.999.999 0 1 1 1.414-1.414L11 24.586 29.293 6.293a.999.999 0 1 1 1.414 1.414L12.061 26.354a1.497 1.497 0 0 1-1.061.438Z"}});var Rn="pf-v6-c-check",Tn="pf-v6-c-check__body",Pn="pf-v6-c-check__description",Dn="pf-v6-c-check__input",Ln="pf-v6-c-check__label",An="pf-v6-c-check__label-required",Mn={standalone:"pf-m-standalone",disabled:"pf-m-disabled"};const Fn=()=>{};class Bn extends t.Component{constructor(){super(...arguments),this.handleChange=e=>{this.props.onChange(e,e.currentTarget.checked)}}render(){const e=this.props,{"aria-label":t,"aria-describedby":n,className:i,inputClassName:a,onChange:r,isLabelWrapped:s,labelPosition:l="end",isValid:c,isDisabled:d,isRequired:p,isChecked:u,label:f,checked:m,defaultChecked:h,description:b,body:x,ouiaId:y,ouiaSafe:w,component:O}=e,j=o(e,["aria-label","aria-describedby","className","inputClassName","onChange","isLabelWrapped","labelPosition","isValid","isDisabled","isRequired","isChecked","label","checked","defaultChecked","description","body","ouiaId","ouiaSafe","component"]);j.id||console.error("Checkbox:","id is required to make input accessible");const N={};return([!0,!1].includes(m)||!0===u)&&(N.checked=m||u),r!==Fn&&(N.checked=u),[!1,!0].includes(h)&&(N.defaultChecked=h),v.jsx(fn,{prefix:"pf-checkbox-description-",ouiaComponentType:"Checkbox",children:(e,o)=>{let r;void 0!==n?r=""===n?void 0:n:b&&(r=e);const m=v.jsx("input",Object.assign({},j,{className:g(Dn,a),type:"checkbox",onChange:this.handleChange,"aria-invalid":!c,"aria-label":t,"aria-describedby":r,disabled:d,required:p,ref:e=>{e&&(e.indeterminate=null===u)}},N,Me(Bn.displayName,void 0!==y?y:o,w))),h=s&&!O||"label"===O,S=h?"span":"label",C=f?v.jsxs(S,{className:g(Ln,d&&Mn.disabled),htmlFor:h?void 0:j.id,children:[f,p&&v.jsx("span",{className:g(An),"aria-hidden":"true",children:"*"})]}):null,_=null!=O?O:h?"label":"div";return N.checked=null!==N.checked&&N.checked,v.jsxs(_,{className:g(Rn,!f&&Mn.standalone,i),htmlFor:h?j.id:void 0,children:["start"===l?v.jsxs(v.Fragment,{children:[C,m]}):v.jsxs(v.Fragment,{children:[m,C]}),b&&v.jsx("span",{id:e,className:g(Pn),children:b}),x&&v.jsx("span",{className:g(Tn),children:x})]})}})}}Bn.displayName="Checkbox",Bn.defaultProps={className:"",isLabelWrapped:!1,isValid:!0,isDisabled:!1,isRequired:!1,isChecked:!1,onChange:Fn,ouiaSafe:!0};var Hn={button:"pf-v6-c-button",buttonCount:"pf-v6-c-button__count",buttonHamburgerIcon:"pf-v6-c-button--hamburger-icon",buttonHamburgerIconArrow:"pf-v6-c-button--hamburger-icon--arrow",buttonHamburgerIconBottom:"pf-v6-c-button--hamburger-icon--bottom",buttonHamburgerIconMiddle:"pf-v6-c-button--hamburger-icon--middle",buttonHamburgerIconTop:"pf-v6-c-button--hamburger-icon--top",buttonIcon:"pf-v6-c-button__icon",buttonProgress:"pf-v6-c-button__progress",modifiers:{primary:"pf-m-primary",unread:"pf-m-unread",secondary:"pf-m-secondary",danger:"pf-m-danger",tertiary:"pf-m-tertiary",link:"pf-m-link",inline:"pf-m-inline",displayLg:"pf-m-display-lg",warning:"pf-m-warning",control:"pf-m-control",plain:"pf-m-plain",noPadding:"pf-m-no-padding",stateful:"pf-m-stateful",read:"pf-m-read",attention:"pf-m-attention",block:"pf-m-block",small:"pf-m-small",favorite:"pf-m-favorite",favorited:"pf-m-favorited",settings:"pf-m-settings",hamburger:"pf-m-hamburger",expand:"pf-m-expand",collapse:"pf-m-collapse",circle:"pf-m-circle",clicked:"pf-m-clicked",disabled:"pf-m-disabled",ariaDisabled:"pf-m-aria-disabled",progress:"pf-m-progress",inProgress:"pf-m-in-progress",notify:"pf-m-notify",docked:"pf-m-docked",textExpanded:"pf-m-text-expanded",start:"pf-m-start",end:"pf-m-end"}},Vn={modifiers:{inline:"pf-m-inline",xs:"pf-m-xs",sm:"pf-m-sm",md:"pf-m-md",lg:"pf-m-lg",xl:"pf-m-xl"},spinner:"pf-v6-c-spinner",spinnerPath:"pf-v6-c-spinner__path"};const zn="--pf-v6-c-spinner--diameter";var $n;!function(e){e.sm="sm",e.md="md",e.lg="lg",e.xl="xl"}($n||($n={}));const Wn=e=>{var{className:t="",size:n="xl","aria-valuetext":i="Loading...",diameter:a,isInline:r=!1,"aria-label":s,"aria-labelledBy":l}=e,c=o(e,["className","size","aria-valuetext","diameter","isInline","aria-label","aria-labelledBy"]);return v.jsx("svg",Object.assign({className:g(Vn.spinner,r?Vn.modifiers.inline:Vn.modifiers[n],t),role:"progressbar","aria-valuetext":i,viewBox:"0 0 100 100"},a&&{style:{[zn]:a}},s&&{"aria-label":s},l&&{"aria-labelledBy":l},!s&&!l&&{"aria-label":"Contents"},c,{children:v.jsx("circle",{className:Vn.spinnerPath,cx:"50",cy:"50",r:"45",fill:"none"})}))};Wn.displayName="Spinner";var Un="pf-v6-c-badge",qn={read:"pf-m-read",unread:"pf-m-unread",disabled:"pf-m-disabled"};const Gn=e=>{var{isRead:t=!1,isDisabled:n=!1,className:i="",children:a="",screenReaderText:r}=e,s=o(e,["isRead","isDisabled","className","children","screenReaderText"]);return v.jsxs("span",Object.assign({},s,{className:g(Un,t?qn.read:qn.unread,n&&qn.disabled,i),children:[a,r&&v.jsx("span",{className:"pf-v6-screen-reader",children:r})]}))};Gn.displayName="Badge";const Zn=z({name:"RhUiStarFillIcon",icon:{xOffset:0,yOffset:0,width:32,height:32,svgPathData:"m30.844 12.76-7.749 6.619 1.885 9.425a.998.998 0 0 1-.98 1.197c-.184 0-.368-.051-.53-.152L16 25.181l-7.47 4.668a.998.998 0 0 1-1.51-1.044l1.885-9.425-7.749-6.62a1 1 0 0 1 .557-1.756l10.245-.945 3.119-7.446a1 1 0 0 1 1.844 0l3.119 7.446 10.245.945a1 1 0 0 1 .557 1.756Z"},rhUiIcon:null}),Kn=z({name:"RhUiStarIcon",icon:{xOffset:0,yOffset:0,width:32,height:32,svgPathData:"M24 30c-.184 0-.368-.051-.53-.152L16 25.18l-7.47 4.668a.998.998 0 0 1-1.51-1.044l1.885-9.425-7.749-6.619a1 1 0 0 1 .557-1.756l10.245-.945 3.119-7.446a1 1 0 0 1 1.844 0l3.119 7.446 10.245.945a1 1 0 0 1 .557 1.756l-7.749 6.619 1.885 9.425a.998.998 0 0 1-.98 1.197Zm-8-7c.184 0 .368.051.53.152l6.035 3.771-1.545-7.728a1.002 1.002 0 0 1 .331-.957l6.394-5.461-8.485-.783a1 1 0 0 1-.831-.609L16 5.587l-2.429 5.798a.998.998 0 0 1-.831.609l-8.485.783 6.394 5.461c.275.235.402.602.331.957l-1.545 7.728 6.035-3.771A.993.993 0 0 1 16 23Z"},rhUiIcon:null}),Xn=z({name:"RhUiSettingsFillIcon",icon:{xOffset:0,yOffset:0,width:32,height:32,svgPathData:"M26.463 16.845a9.635 9.635 0 0 0-.002-1.688l3.41-1.974a.5.5 0 0 0 .235-.548 14.47 14.47 0 0 0-4.142-7.167.5.5 0 0 0-.594-.07l-3.404 1.97c-.469-.326-.96-.61-1.466-.85V2.58a.5.5 0 0 0-.356-.48 14.662 14.662 0 0 0-8.288 0 .5.5 0 0 0-.356.48v3.944c-.513.245-1.003.528-1.462.846L6.63 5.397a.5.5 0 0 0-.594.07 14.47 14.47 0 0 0-4.142 7.168.5.5 0 0 0 .236.548l3.407 1.972a9.635 9.635 0 0 0 .002 1.688l-3.41 1.974a.5.5 0 0 0-.235.548 14.47 14.47 0 0 0 4.142 7.167c.16.154.405.18.594.07l3.404-1.97c.469.326.96.61 1.466.85v3.938a.5.5 0 0 0 .356.48c1.333.398 2.728.6 4.144.6s2.81-.202 4.144-.6a.5.5 0 0 0 .356-.48v-3.944a10.449 10.449 0 0 0 1.462-.846l3.408 1.973a.5.5 0 0 0 .594-.07 14.47 14.47 0 0 0 4.142-7.168.5.5 0 0 0-.236-.548l-3.407-1.972ZM16 21c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5-2.243 5-5 5Z"},rhUiIcon:null}),Yn=v.jsxs("svg",{viewBox:"0 0 10 10",className:g(Hn.buttonHamburgerIcon,"pf-v6-svg"),width:"1em",height:"1em",children:[v.jsx("path",{className:g(Hn.buttonHamburgerIconTop),d:"M1,1 L9,1"}),v.jsx("path",{className:g(Hn.buttonHamburgerIconMiddle),d:"M1,5 L9,5"}),v.jsx("path",{className:g(Hn.buttonHamburgerIconArrow),d:"M1,5 L1,5 L1,5"}),v.jsx("path",{className:g(Hn.buttonHamburgerIconBottom),d:"M9,9 L1,9"})]});var Jn,Qn,ei,ti;!function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary",e.danger="danger",e.warning="warning",e.link="link",e.plain="plain",e.control="control",e.stateful="stateful"}(Jn||(Jn={})),function(e){e.button="button",e.submit="submit",e.reset="reset"}(Qn||(Qn={})),function(e){e.default="default",e.sm="sm",e.lg="lg"}(ei||(ei={})),function(e){e.read="read",e.unread="unread",e.attention="attention"}(ti||(ti={}));const ni=e=>{var{children:t=null,className:n="",component:i="button",isClicked:a=!1,isBlock:r=!1,isDisabled:s=!1,isAriaDisabled:l=!1,isLoading:c=null,isDanger:d=!1,isExpanded:p,isSettings:u,isHamburger:f,hamburgerVariant:m,isCircle:h,isDocked:b=!1,isTextExpanded:x=!1,spinnerAriaValueText:y,spinnerAriaLabelledBy:w,spinnerAriaLabel:O,size:j=ei.default,inoperableEvents:N=["onClick","onKeyPress"],isInline:S=!1,isFavorite:C=!1,isFavorited:_=!1,type:E=Qn.button,variant:I=Jn.primary,state:k=ti.unread,hasNoPadding:R=!1,iconPosition:T="start","aria-label":P=null,icon:D=null,role:L,ouiaId:A,ouiaSafe:M=!0,tabIndex:F=null,innerRef:B,countOptions:H}=e,V=o(e,["children","className","component","isClicked","isBlock","isDisabled","isAriaDisabled","isLoading","isDanger","isExpanded","isSettings","isHamburger","hamburgerVariant","isCircle","isDocked","isTextExpanded","spinnerAriaValueText","spinnerAriaLabelledBy","spinnerAriaLabel","size","inoperableEvents","isInline","isFavorite","isFavorited","type","variant","state","hasNoPadding","iconPosition","aria-label","icon","role","ouiaId","ouiaSafe","tabIndex","innerRef","countOptions"]);f&&![!0,!1].includes(p)&&console.error("Button: when the isHamburger property is passed in, you must also pass in a boolean value to the isExpanded property. It is expected that a hamburger button controls the expansion of other content."),!(u||f||C)||P||t||V["aria-labelledby"]||console.error("Button: you must provide either visible text content or an accessible name via the aria-label or aria-labelledby properties.");const z=Fe(ii.displayName,A,M,I),$=i,W="button"===$,U=S&&"span"===$,q="end"===T||"right"===T,G=u||f||C,Z=N.reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:e=>{e.preventDefault()}})),{}),K=(()=>{let e;return C&&(e=v.jsxs(v.Fragment,{children:[v.jsx("span",{className:g("pf-v6-c-button__icon-favorite"),children:v.jsx(Kn,{})}),v.jsx("span",{className:g("pf-v6-c-button__icon-favorited"),children:v.jsx(Zn,{})})]})),u&&(e=v.jsx(Xn,{})),f&&(e=Yn),D&&!G&&(e=D),e&&v.jsx("span",{className:g(Hn.buttonIcon,t&&Hn.modifiers[q?"end":"start"]),children:e})})(),X=t&&v.jsx("span",{className:g("pf-v6-c-button__text"),children:t}),Y=l||!W&&s;return v.jsxs($,Object.assign({"aria-expanded":p},V,l?Z:null,Y&&{"aria-disabled":!0},{"aria-label":P,className:g(Hn.button,Hn.modifiers[I],u&&Hn.modifiers.settings,f&&Hn.modifiers.hamburger,f&&m&&Hn.modifiers[m],r&&Hn.modifiers.block,s&&!W&&Hn.modifiers.disabled,l&&Hn.modifiers.ariaDisabled,a&&Hn.modifiers.clicked,S&&I===Jn.link&&Hn.modifiers.inline,C&&Hn.modifiers.favorite,C&&_&&Hn.modifiers.favorited,d&&(I===Jn.secondary||I===Jn.link)&&Hn.modifiers.danger,null!==c&&I!==Jn.plain&&Hn.modifiers.progress,c&&Hn.modifiers.inProgress,R&&I===Jn.plain&&Hn.modifiers.noPadding,I===Jn.stateful&&Hn.modifiers[k],j===ei.sm&&Hn.modifiers.small,j===ei.lg&&Hn.modifiers.displayLg,h&&Hn.modifiers.circle,b&&Hn.modifiers.docked,b&&x&&Hn.modifiers.textExpanded,n),disabled:W?s:null,tabIndex:null!==F?F:s?W?null:-1:l?null:U?0:void 0,type:W||U?E:null,role:U?"button":L,ref:B},z,{children:[c&&v.jsx("span",{className:g(Hn.buttonProgress),children:v.jsx(Wn,{size:$n.md,isInline:S,"aria-valuetext":y,"aria-label":O,"aria-labelledby":w})}),q?v.jsxs(v.Fragment,{children:[X,K]}):v.jsxs(v.Fragment,{children:[K,X]}),H&&v.jsx("span",{className:g(Hn.buttonCount,H.className),children:v.jsx(Gn,{isRead:H.isRead,isDisabled:s,children:H.count})})]}))},ii=t.forwardRef(((e,t)=>v.jsx(ni,Object.assign({innerRef:t},e))));ii.displayName="Button";const ai=e=>{var{className:t,icon:n,onClick:i,"aria-label":a,isFavorited:r=null,isDisabled:s,actionId:l,innerRef:c}=e,d=o(e,["className","icon","onClick","aria-label","isFavorited","isDisabled","actionId","innerRef"]);return v.jsx(vn.Consumer,{children:({onActionClick:e})=>v.jsx(gn.Consumer,{children:({itemId:o,isDisabled:p})=>v.jsx("div",Object.assign({className:g(j,null!==r&&"pf-m-favorite",r&&L.favorited,t)},d,{children:v.jsx(ii,{"aria-label":a,onClick:t=>{i&&i(t),e&&e(t,o,l)},ref:c,role:"menuitem",variant:"plain",isFavorite:null!==r,isFavorited:null!=r&&r,tabIndex:-1,isDisabled:s||p,icon:null===r?n:void 0})}))})})},oi=t.forwardRef(((e,t)=>v.jsx(ai,Object.assign({},e,{innerRef:t}))));oi.displayName="MenuItemAction";var ri={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"},si="pf-v6-c-tooltip",li="pf-v6-c-tooltip__arrow",ci="pf-v6-c-tooltip__content";const di=e=>{var{className:t,children:n,isLeftAligned:i}=e,a=o(e,["className","children","isLeftAligned"]);return v.jsx("div",Object.assign({className:g(ci,i&&ri.textAlignLeft,t)},a,{children:n}))};di.displayName="TooltipContent";const pi=e=>{var{className:t}=e,n=o(e,["className"]);return v.jsx("div",Object.assign({className:g(li,t)},n))};pi.displayName="TooltipArrow";const ui={value:"18.75rem"};var fi;!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"}(fi||(fi={}));const mi=e=>{var{content:n,position:i="top",trigger:a="mouseenter focus",isVisible:r=!1,isContentLeftAligned:s=!1,enableFlip:l=!0,className:c="",entryDelay:d=300,exitDelay:p=300,appendTo:u=(()=>document.body),zIndex:f=9999,minWidth:m,maxWidth:h=ui.value,distance:b=15,aria:x="describedby",flipBehavior:y=["top","right","bottom","left","top","right","bottom"],id:w,children:O,animationDuration:j=300,triggerRef:N,"aria-live":S=(N?"polite":"off"),onTooltipHidden:C=(()=>{})}=e,_=o(e,["content","position","trigger","isVisible","isContentLeftAligned","enableFlip","className","entryDelay","exitDelay","appendTo","zIndex","minWidth","maxWidth","distance","aria","flipBehavior","id","children","animationDuration","triggerRef","aria-live","onTooltipHidden"]);const E=Ae("pf-tooltip-"),I=null!=w?w:E,k=a.includes("mouseenter"),R=a.includes("focus"),T=a.includes("click"),P="manual"===a,[D,L]=t.useState(!1),A=t.createRef(),M=()=>"none"!==x?`aria-${x}`:null,F=e=>{if("none"===x||!N||O)return;const t="function"==typeof N?N():N&&"object"==typeof N&&"current"in N?N.current:N instanceof HTMLElement?N:null;t&&(e?(e=>{const t=M();if(!e||!t)return;const n=e.getAttribute(t);if(!n||!n.includes(I)){const i=n?`${n} ${I}`:I;e.setAttribute(t,i)}})(t):(e=>{const t=M();if(!e||!t)return;const n=e.getAttribute(t);if(!n)return;const i=n.split(/\s+/).filter((e=>e!==I)).join(" ");i?e.setAttribute(t,i):e.removeAttribute(t)})(t))};t.useEffect((()=>(F(D),()=>{F(!1)})),[D,x,N,O,I]);t.useEffect((()=>{r?B():H()}),[r]);const B=()=>{L(!0)},H=()=>{L(!1)},V={top:ri.top,bottom:ri.bottom,left:ri.left,right:ri.right,"top-start":ri.topLeft,"top-end":ri.topRight,"bottom-start":ri.bottomLeft,"bottom-end":ri.bottomRight,"left-start":ri.leftTop,"left-end":ri.leftBottom,"right-start":ri.rightTop,"right-end":ri.rightBottom},z=h!==ui.value,$=v.jsxs("div",Object.assign({"aria-live":S,className:g(si,c),role:"tooltip",id:I,style:{maxWidth:z?h:null},ref:A},_,{children:[v.jsx(pi,{}),v.jsx(di,{isLeftAligned:s,children:n})]}));return v.jsx(un,{trigger:"none"!==x&&D?(()=>{if(O)return"describedby"===x&&O.props&&!O.props["aria-describedby"]?t.cloneElement(O,{"aria-describedby":I}):"labelledby"===x&&O.props&&!O.props["aria-labelledby"]?t.cloneElement(O,{"aria-labelledby":I}):O})():O,triggerRef:N,popper:$,popperRef:A,minWidth:void 0!==m?m:"revert",appendTo:u,isVisible:D,positionModifiers:V,distance:b,placement:i,onMouseEnter:k&&B,onMouseLeave:k&&H,onPopperMouseEnter:k&&B,onPopperMouseLeave:k&&H,onFocus:R&&B,onBlur:R&&H,onDocumentClick:T&&((e,t)=>{D?H():e.target===t&&B()}),onDocumentKeyDown:P?null:e=>{P||e.key===Z&&D&&H()},onTriggerEnter:P?null:e=>{e.key===K&&(D?H():B())},enableFlip:l,zIndex:f,flipBehavior:y,animationDuration:j,entryDelay:d,exitDelay:p,onHidden:C})};mi.displayName="Tooltip";const hi=t.createContext({direction:"right"}),bi=e=>{var{children:n,className:i,itemId:a=null,to:r,hasCheckbox:s=!1,isActive:l=null,isFavorited:c=null,isLoadButton:d=!1,isLoading:p=!1,flyoutMenu:u,direction:f,description:m=null,onClick:h=(()=>{}),component:b="button",isDisabled:w=!1,isAriaDisabled:j=!1,isExternalLink:T=!1,isSelected:D=null,isFocused:A,isDanger:M=!1,icon:F,actions:B,onShowFlyout:H,drilldownMenu:V,isOnPath:z,innerRef:$,id:W,"aria-label":U,tooltipProps:q,rel:G,target:Z,download:K}=e,X=o(e,["children","className","itemId","to","hasCheckbox","isActive","isFavorited","isLoadButton","isLoading","flyoutMenu","direction","description","onClick","component","isDisabled","isAriaDisabled","isExternalLink","isSelected","isFocused","isDanger","icon","actions","onShowFlyout","drilldownMenu","isOnPath","innerRef","id","aria-label","tooltipProps","rel","target","download"]);const{menuId:Y,parentMenu:J,onSelect:Q,onActionClick:ee,activeItemId:te,selected:ne,drilldownItemPath:ie,onDrillIn:ae,onDrillOut:oe,flyoutRef:re,setFlyoutRef:se,disableHover:le,role:ce}=t.useContext(vn);let de=r?"a":b;s&&!r&&(de="label");const[pe,ue]=t.useState(null),fe=t.useContext(hi),[me,he]=t.useState(fe.direction),be=t.useRef(void 0),ve=t.useRef(void 0),ge=$||ve,xe=be===re,ye=Ae(),we=void 0!==u,Oe=e=>{!xe&&e?se(be):xe&&!e&&se(null),H&&e&&H()};rn((()=>{if(we&&be.current&&We){const e=be.current.lastElementChild;if(e&&e.classList.contains(y)){const t=be.current.getClientRects()[0],n=e.getClientRects()[0];if(t&&n){const i=t.x-n.width,a=window.innerWidth-t.x-t.width-n.width;let o=me;a<0&&"left"!==o?(he("left"),o="left"):i<0&&"right"!==o&&(he("right"),o="right");let r=0;i<0&&a<0&&(r="right"===o?-a:-i),"left"===o?(e.classList.add(L.left),e.style.setProperty(Sn,`-${r}px`)):e.style.setProperty(Cn,`-${r}px`);const s=window.innerHeight-t.y-n.height;window.innerHeight-n.height<0&&s<0||s<0&&e.style.setProperty(Nn,`${s}px`)}}}}),[xe,u]),t.useEffect((()=>{he(fe.direction)}),[fe]),t.useEffect((()=>{var e,t,n;if(pe)if(xe){const i=pe.nextElementSibling;null===(n=null===(t=Array.from((null===(e=null==i?void 0:i.getElementsByTagName("UL")[0])||void 0===e?void 0:e.children)||[]).filter((e=>!(e.classList.contains("pf-m-disabled")||e.classList.contains(x))))[0])||void 0===t?void 0:t.firstChild)||void 0===n||n.focus()}else pe.focus()}),[xe,pe]);const je=e=>{const t=e.key,n=e.target,i=e.type;" "!==t&&"Enter"!==t&&"ArrowRight"!==t&&"click"!==i||(e.stopPropagation(),e.preventDefault(),xe||(Oe(!0),ue(n))),"Escape"!==t&&"ArrowLeft"!==t||xe&&(e.stopPropagation(),Oe(!1))},Ne=(e,t)=>{j||(t&&t(e,a),h&&h(e))},Se=z&&z||ie&&ie.includes(a)||!1;let Ce;f&&(Ce="down"===f?e=>ae&&ae(e,Y,"function"==typeof V?V().props.id:V.props.id,a):e=>oe&&oe(e,J,a));let _e={};"a"===de?_e={href:r,"aria-disabled":!(!w&&!j)||null,disabled:null,target:T?"_blank":Z,rel:G,download:K}:"button"===de&&(_e={type:"button","aria-disabled":!!j||null}),z?_e["aria-expanded"]=!0:we&&(_e["aria-haspopup"]="menu",_e["aria-expanded"]=xe);const Ee=()=>null!==D?D:null!==ne&&null!==a&&(Array.isArray(ne)&&ne.includes(a)||a===ne);t.useEffect((()=>{if(A&&be.current){const e=be.current,t=e.parentElement;if(t){const n=e.offsetTop-t.offsetTop<t.scrollTop,i=e.offsetTop-t.offsetTop+e.clientHeight;(n||i)&&e.scrollIntoView({behavior:"auto",block:"nearest"})}}}),[A]);const Ie="listbox"===ce,ke=v.jsxs(v.Fragment,{children:[v.jsxs(de,Object.assign({id:W,tabIndex:-1,className:g(O,Ee()&&!s&&L.selected,i),"aria-current":null!==l?l?"page":null:null!==a&&null!==te?a===te:null},!s&&{disabled:w,"aria-label":U},!s&&!u&&{role:Ie?"option":"menuitem"},!s&&!u&&Ie&&{"aria-selected":Ee()},{ref:ge},!s&&{onClick:e=>{j?e.preventDefault():(Ne(e,Q),Ce&&Ce(e),u&&je(e))}},s&&{htmlFor:ye},_e,{children:[v.jsxs("span",{className:g(E),children:["up"===f&&v.jsx("span",{className:g(R),children:v.jsx(En,{})}),F&&v.jsx("span",{className:g(_),children:F}),s&&v.jsx("span",{className:g(N),children:v.jsx(Bn,{id:ye,component:"span",isChecked:D||!1,onChange:e=>Ne(e,Q),isDisabled:w,"aria-disabled":j})}),v.jsx("span",{className:g(k),children:n}),T&&v.jsx("span",{className:g(C),children:v.jsx(_n,{})}),(u||"down"===f)&&v.jsx("span",{className:g(R),children:v.jsx(In,{})}),Ee()&&v.jsx("span",{className:g(I),children:v.jsx(kn,{})})]}),m&&"up"!==f&&v.jsx("span",{className:g(S),children:v.jsx("span",{children:m})})]})),xe&&v.jsx(vn.Provider,{value:{disableHover:le},children:v.jsx(hi.Provider,{value:{direction:me},children:u})}),"function"==typeof V?V():V,v.jsxs(gn.Provider,{value:{itemId:a,isDisabled:w},children:[B,null!==c&&v.jsx(oi,{icon:"favorites",isFavorited:c,"aria-label":c?"starred":"not starred",onClick:e=>ee(e,a),tabIndex:-1,actionId:"fav"})]})]});return v.jsxs(v.Fragment,{children:[v.jsx("li",Object.assign({className:g(P,w&&L.disabled,j&&L.ariaDisabled,Se&&L.currentPath,d&&L.load,p&&L.loading,A&&"pf-m-focus",M&&L.danger,i),onMouseOver:()=>{j||le||(we?Oe(!0):se(null))}},u&&!j&&{onKeyDown:je},{ref:be,role:s?"menuitem":"none"},s&&{"aria-label":U},X,{children:ke})),q&&v.jsx(mi,Object.assign({},q,{triggerRef:ge}))]})},vi=t.forwardRef(((e,t)=>v.jsx(bi,Object.assign({},e,{innerRef:t}))));vi.displayName="MenuItem";const gi=e=>{var{children:n=null,className:i,isAriaMultiselectable:a=!1,"aria-label":r}=e,s=o(e,["children","className","isAriaMultiselectable","aria-label"]);const{role:l}=t.useContext(vn);return v.jsx("ul",Object.assign({role:l},"listbox"===l&&{"aria-multiselectable":a},{className:g(T,i),"aria-label":r},s,{children:n}))};gi.displayName="MenuList";const xi=e=>{var{children:n,className:i,onSelect:a,isOpen:r,toggle:s,shouldFocusToggleOnSelect:l=!1,onOpenChange:c,onToggleKeydown:d,isPlain:p,isScrollable:u,innerRef:f,ouiaId:m,ouiaSafe:h=!0,zIndex:b=9999,popperProps:x,onOpenChangeKeys:y=["Escape","Tab"],menuHeight:w,maxMenuHeight:O,shouldFocusFirstItemOnOpen:j=!1,shouldPreventScrollOnItemFocus:N=!0,focusTimeoutDelay:S=0,containerOuiaId:C,containerOuiaSafe:_=!0,containerComponent:E="span"}=e,I=o(e,["children","className","onSelect","isOpen","toggle","shouldFocusToggleOnSelect","onOpenChange","onToggleKeydown","isPlain","isScrollable","innerRef","ouiaId","ouiaSafe","zIndex","popperProps","onOpenChangeKeys","menuHeight","maxMenuHeight","shouldFocusFirstItemOnOpen","shouldPreventScrollOnItemFocus","focusTimeoutDelay","containerOuiaId","containerOuiaSafe","containerComponent"]);const k=t.useRef(void 0),R=t.useRef(void 0),T=Fe(yi.displayName,m,h),P=E,D=Fe("Dropdown container",C,_),L=f||k,A="function"==typeof s||"function"!=typeof s&&!s.toggleRef?R:null==s?void 0:s.toggleRef,M=t.useRef(r);t.useEffect((()=>{!1===M.current&&!0===r&&j&&setTimeout((()=>{var e;const t=null===(e=null==L?void 0:L.current)||void 0===e?void 0:e.querySelector('li button:not(:disabled),li input:not(:disabled),li a:not([aria-disabled="true"])');t&&t.focus({preventScroll:N})}),S),M.current=r}),[r]),t.useEffect((()=>{const e=e=>{var t,n,i,a;r&&c&&((null===(t=L.current)||void 0===t?void 0:t.contains(e.target))||(null===(n=A.current)||void 0===n?void 0:n.contains(e.target)))&&y.includes(e.key)&&(c(!1),null===(i=A.current)||void 0===i||i.focus()),(null===(a=A.current)||void 0===a?void 0:a.contains(e.target))&&(d?d(e):r&&hn(e,L))},t=e=>{var t,n;r&&c&&!(null===(t=null==A?void 0:A.current)||void 0===t?void 0:t.contains(e.target))&&r&&!(null===(n=L.current)||void 0===n?void 0:n.contains(e.target))&&c(!1)};return window.addEventListener("keydown",e),window.addEventListener("click",t),()=>{window.removeEventListener("keydown",e),window.removeEventListener("click",t)}}),[r,L,A,c,y,d,N,j,S]);const F=void 0!==O||void 0!==w||u,B=v.jsx(yn,Object.assign({className:g(i),ref:L,onSelect:(e,t)=>{var n;a&&a(e,t),l&&(null===(n=A.current)||void 0===n||n.focus())},isPlain:p,isScrollable:F},I,T,{children:v.jsx(jn,{menuHeight:w,maxMenuHeight:O,children:n})})),H=v.jsx(un,Object.assign({trigger:"function"==typeof s?s(A):s.toggleNode,triggerRef:A,popper:B,popperRef:L,isVisible:r,zIndex:b},x));return C?v.jsx(P,Object.assign({},D,{children:H})):H},yi=t.forwardRef(((e,t)=>v.jsx(xi,Object.assign({innerRef:t},e))));yi.displayName="Dropdown";const wi=e=>{var{children:t,className:n,description:i,isDisabled:a,isAriaDisabled:r,value:s,onClick:l,ouiaId:c,ouiaSafe:d,innerRef:p,tooltipProps:u}=e,f=o(e,["children","className","description","isDisabled","isAriaDisabled","value","onClick","ouiaId","ouiaSafe","innerRef","tooltipProps"]);const m=Fe(Oi.displayName,c,d);return v.jsx(vi,Object.assign({className:g(n),description:i,isDisabled:a,isAriaDisabled:r,itemId:s,onClick:l,tooltipProps:u,ref:p},m,f,{children:t}))},Oi=t.forwardRef(((e,t)=>v.jsx(wi,Object.assign({},e,{innerRef:t}))));Oi.displayName="DropdownItem";const ji=e=>{var{children:t,className:n}=e,i=o(e,["children","className"]);return v.jsx(gi,Object.assign({className:g(n)},i,{children:t}))};ji.displayName="DropdownList";var Ni,Si={divider:"pf-v6-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",horizontal:"pf-m-horizontal",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",horizontalOnSm:"pf-m-horizontal-on-sm",verticalOnSm:"pf-m-vertical-on-sm",insetNoneOnSm:"pf-m-inset-none-on-sm",insetXsOnSm:"pf-m-inset-xs-on-sm",insetSmOnSm:"pf-m-inset-sm-on-sm",insetMdOnSm:"pf-m-inset-md-on-sm",insetLgOnSm:"pf-m-inset-lg-on-sm",insetXlOnSm:"pf-m-inset-xl-on-sm",inset_2xlOnSm:"pf-m-inset-2xl-on-sm",inset_3xlOnSm:"pf-m-inset-3xl-on-sm",horizontalOnMd:"pf-m-horizontal-on-md",verticalOnMd:"pf-m-vertical-on-md",insetNoneOnMd:"pf-m-inset-none-on-md",insetXsOnMd:"pf-m-inset-xs-on-md",insetSmOnMd:"pf-m-inset-sm-on-md",insetMdOnMd:"pf-m-inset-md-on-md",insetLgOnMd:"pf-m-inset-lg-on-md",insetXlOnMd:"pf-m-inset-xl-on-md",inset_2xlOnMd:"pf-m-inset-2xl-on-md",inset_3xlOnMd:"pf-m-inset-3xl-on-md",horizontalOnLg:"pf-m-horizontal-on-lg",verticalOnLg:"pf-m-vertical-on-lg",insetNoneOnLg:"pf-m-inset-none-on-lg",insetXsOnLg:"pf-m-inset-xs-on-lg",insetSmOnLg:"pf-m-inset-sm-on-lg",insetMdOnLg:"pf-m-inset-md-on-lg",insetLgOnLg:"pf-m-inset-lg-on-lg",insetXlOnLg:"pf-m-inset-xl-on-lg",inset_2xlOnLg:"pf-m-inset-2xl-on-lg",inset_3xlOnLg:"pf-m-inset-3xl-on-lg",horizontalOnXl:"pf-m-horizontal-on-xl",verticalOnXl:"pf-m-vertical-on-xl",insetNoneOnXl:"pf-m-inset-none-on-xl",insetXsOnXl:"pf-m-inset-xs-on-xl",insetSmOnXl:"pf-m-inset-sm-on-xl",insetMdOnXl:"pf-m-inset-md-on-xl",insetLgOnXl:"pf-m-inset-lg-on-xl",insetXlOnXl:"pf-m-inset-xl-on-xl",inset_2xlOnXl:"pf-m-inset-2xl-on-xl",inset_3xlOnXl:"pf-m-inset-3xl-on-xl",horizontalOn_2xl:"pf-m-horizontal-on-2xl",verticalOn_2xl:"pf-m-vertical-on-2xl",insetNoneOn_2xl:"pf-m-inset-none-on-2xl",insetXsOn_2xl:"pf-m-inset-xs-on-2xl",insetSmOn_2xl:"pf-m-inset-sm-on-2xl",insetMdOn_2xl:"pf-m-inset-md-on-2xl",insetLgOn_2xl:"pf-m-inset-lg-on-2xl",insetXlOn_2xl:"pf-m-inset-xl-on-2xl",inset_2xlOn_2xl:"pf-m-inset-2xl-on-2xl",inset_3xlOn_2xl:"pf-m-inset-3xl-on-2xl"}};!function(e){e.hr="hr",e.li="li",e.div="div"}(Ni||(Ni={}));const Ci=e=>{var{className:t,component:n=Ni.hr,inset:i,orientation:a,role:r="separator"}=e,s=o(e,["className","component","inset","orientation","role"]);const l=n;return v.jsx(l,Object.assign({className:g(Si.divider,Ve(i,Si),Ve(a,Si),t)},"hr"!==n&&{role:r},s))};Ci.displayName="Divider";var _i={menuToggle:"pf-v6-c-menu-toggle",menuToggleButton:"pf-v6-c-menu-toggle__button",menuToggleControls:"pf-v6-c-menu-toggle__controls",menuToggleCount:"pf-v6-c-menu-toggle__count",menuToggleIcon:"pf-v6-c-menu-toggle__icon",menuToggleStatusIcon:"pf-v6-c-menu-toggle__status-icon",menuToggleText:"pf-v6-c-menu-toggle__text",menuToggleToggleIcon:"pf-v6-c-menu-toggle__toggle-icon",modifiers:{primary:"pf-m-primary",secondary:"pf-m-secondary",fullHeight:"pf-m-full-height",fullWidth:"pf-m-full-width",form:"pf-m-form",plain:"pf-m-plain",circle:"pf-m-circle",expanded:"pf-m-expanded",disabled:"pf-m-disabled",small:"pf-m-small",success:"pf-m-success",warning:"pf-m-warning",danger:"pf-m-danger",settings:"pf-m-settings",placeholder:"pf-m-placeholder",docked:"pf-m-docked",textExpanded:"pf-m-text-expanded",splitButton:"pf-m-split-button",standalone:"pf-m-standalone",typeahead:"pf-m-typeahead",text:"pf-m-text",avatar:"pf-m-avatar"}};const Ei=z({name:"CaretDownIcon",icon:{xOffset:0,yOffset:0,width:320,height:512,svgPathData:"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"},rhUiIcon:{xOffset:0,yOffset:0,width:32,height:32,svgPathData:"M16 24.792c-.384 0-.769-.146-1.061-.438L2.293 11.707a.999.999 0 1 1 1.414-1.414L16 22.586l12.293-12.293a.999.999 0 1 1 1.414 1.414L17.061 24.353a1.497 1.497 0 0 1-1.061.438Z"}});var Ii,ki;!function(e){e.success="success",e.danger="danger",e.warning="warning"}(Ii||(Ii={})),function(e){e.default="default",e.sm="sm"}(ki||(ki={}));class Ri extends t.Component{constructor(){super(...arguments),this.displayName="MenuToggleBase"}render(){const e=this.props,{children:n,className:i,icon:a,badge:r,isExpanded:s,isDisabled:l,isFullHeight:c,isFullWidth:d,isInForm:p,isPlaceholder:u,isCircle:f,isSettings:m,isDocked:h,isTextExpanded:b,splitButtonItems:x,variant:y,status:w,statusIcon:O,innerRef:j,onClick:N,"aria-label":S,ouiaId:C,ouiaSafe:_,size:E}=e,I=o(e,["children","className","icon","badge","isExpanded","isDisabled","isFullHeight","isFullWidth","isInForm","isPlaceholder","isCircle","isSettings","isDocked","isTextExpanded","splitButtonItems","variant","status","statusIcon","innerRef","onClick","aria-label","ouiaId","ouiaSafe","size"]),k="plain"===y,R="plainText"===y,T="typeahead"===y;return v.jsx(fn,{prefix:"pf-",ouiaComponentType:"MenuToggle"+(y?`-${y}`:""),children:(e,o)=>{const P=Me(Ti.displayName,null!=C?C:o,_);let D=O;if(!O)switch(w){case Ii.success:D=v.jsx($,{});break;case Ii.warning:D=v.jsx(U,{});break;case Ii.danger:D=v.jsx(W,{})}const L=v.jsxs("span",{className:g(_i.menuToggleControls),children:[void 0!==w&&v.jsx("span",{className:g(_i.menuToggleStatusIcon),children:D}),v.jsx("span",{className:g(_i.menuToggleToggleIcon),children:v.jsx(Ei,{})})]}),A=v.jsxs(v.Fragment,{children:[(a||m)&&v.jsx("span",{className:g(_i.menuToggleIcon),children:m?v.jsx(Xn,{}):a}),T?n:n&&v.jsx("span",{className:g(_i.menuToggleText),children:n}),t.isValidElement(r)&&v.jsx("span",{className:g(_i.menuToggleCount),children:r}),T?v.jsx("button",Object.assign({type:"button",className:g(_i.menuToggleButton),"aria-expanded":s,onClick:N,"aria-label":S||"Menu toggle",tabIndex:-1},P,{children:L})):!k&&L]}),M=g(_i.menuToggle,s&&_i.modifiers.expanded,"primary"===y&&_i.modifiers.primary,"secondary"===y&&_i.modifiers.secondary,w&&_i.modifiers[w],(k||R)&&_i.modifiers.plain,R&&_i.modifiers.text,c&&_i.modifiers.fullHeight,d&&_i.modifiers.fullWidth,p&&_i.modifiers.form,l&&_i.modifiers.disabled,u&&_i.modifiers.placeholder,m&&_i.modifiers.settings,h&&_i.modifiers.docked,h&&b&&_i.modifiers.textExpanded,E===ki.sm&&_i.modifiers.small,i),F=Object.assign(Object.assign({children:A},l&&{disabled:!0}),I);return T?v.jsx("div",Object.assign({ref:j,className:g(M,_i.modifiers.typeahead)},F)):x?v.jsxs("div",{ref:j,className:g(M,_i.modifiers.splitButton),children:[x,v.jsxs("button",Object.assign({className:g(_i.menuToggleButton,n&&_i.modifiers.text),type:"button","aria-expanded":s,"aria-label":S,disabled:l,onClick:N},I,P,{children:[n&&v.jsx("span",{className:g(_i.menuToggleText),children:n}),L]}))]}):v.jsx("button",Object.assign({className:g(M,f&&k&&_i.modifiers.circle),type:"button","aria-label":S,"aria-expanded":s,ref:j,disabled:l,onClick:N},F,P))}})}}Ri.defaultProps={className:"",isExpanded:!1,isDisabled:!1,isFullWidth:!1,isFullHeight:!1,isInForm:!1,isPlaceholder:!1,isCircle:!1,isDocked:!1,isTextExpanded:!1,size:"default",ouiaSafe:!0};const Ti=t.forwardRef(((e,t)=>v.jsx(Ri,Object.assign({innerRef:t},e))));Ti.displayName="MenuToggle";const Pi=z({name:"EllipsisVIcon",icon:{xOffset:0,yOffset:0,width:192,height:512,svgPathData:"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"},rhUiIcon:{xOffset:0,yOffset:0,width:32,height:32,svgPathData:"M16 9c2.206 0 4-1.794 4-4s-1.794-4-4-4-4 1.794-4 4 1.794 4 4 4Zm0-6c1.103 0 2 .897 2 2s-.897 2-2 2-2-.897-2-2 .897-2 2-2Zm0 9c-2.206 0-4 1.794-4 4s1.794 4 4 4 4-1.794 4-4-1.794-4-4-4Zm0 6c-1.103 0-2-.897-2-2s.897-2 2-2 2 .897 2 2-.897 2-2 2Zm0 5c-2.206 0-4 1.794-4 4s1.794 4 4 4 4-1.794 4-4-1.794-4-4-4Zm0 6c-1.103 0-2-.897-2-2s.897-2 2-2 2 .897 2 2-.897 2-2 2Z"}}),Di=e=>{var{items:n,isDisabled:i,rowData:a,extraData:r,actionsToggle:s,popperProps:l={position:"end",direction:"down"},innerRef:c,firstActionItemRef:d,isOnOpenChangeDisabled:p=!1}=e,u=o(e,["items","isDisabled","rowData","extraData","actionsToggle","popperProps","innerRef","firstActionItemRef","isOnOpenChangeDisabled"]);const[f,m]=t.useState(!1),h=()=>{m(!f)},b=(e,t)=>{t&&(e.preventDefault(),t(e,r&&r.rowIndex,a,r))};return v.jsxs(t.Fragment,{children:[n.filter((e=>e.isOutsideDropdown)).map(((e,n)=>{var{title:a,itemKey:r,onClick:s,isOutsideDropdown:l}=e,c=o(e,["title","itemKey","onClick","isOutsideDropdown"]);return"string"==typeof a?t.createElement(ii,Object.assign({onClick:e=>b(e,s)},c,{isDisabled:i,key:r||`outside_dropdown_${n}`,"data-key":r||`outside_dropdown_${n}`}),a):t.cloneElement(a,Object.assign({onClick:s,isDisabled:i},c))})),v.jsx(yi,Object.assign({isOpen:f,onOpenChange:p?void 0:e=>m(e),toggle:e=>s?s({onToggle:h,isOpen:f,isDisabled:i,toggleRef:e}):v.jsx(Ti,{"aria-label":"Kebab toggle",ref:e,onClick:h,isExpanded:f,isDisabled:i,variant:"plain",icon:v.jsx(Pi,{})})},a&&a.actionProps,{ref:c},u,{popperProps:l,children:v.jsx(ji,{children:n.filter((e=>!e.isOutsideDropdown)).map(((e,n)=>{var{title:i,itemKey:a,onClick:r,tooltipProps:s,isSeparator:l,shouldCloseOnClick:c=!0}=e,p=o(e,["title","itemKey","onClick","tooltipProps","isSeparator","shouldCloseOnClick"]);if(l)return v.jsx(Ci,{"data-key":a||n},a||n);const u=t.createElement(Oi,Object.assign({onClick:e=>{b(e,r),c&&h()}},p,{key:a||n,"data-key":a||n,ref:0===n?d:void 0}),i);return(null==s?void 0:s.content)?v.jsx(mi,Object.assign({},s,{children:u}),a||n):u}))})}))]})},Li=t.forwardRef(((e,t)=>v.jsx(Di,Object.assign({},e,{innerRef:t}))));Li.displayName="ActionsColumn";const Ai=z({name:"RhMicronsCaretDownIcon",icon:{xOffset:0,yOffset:0,width:20,height:20,svgPathData:"M18.71 5.29a.996.996 0 0 0-1.41 0l-7.29 7.29-7.3-7.29a.987.987 0 0 0-1.41-.02.987.987 0 0 0-.02 1.41l.02.02 7.65 7.65c.29.29.68.44 1.06.44s.77-.15 1.06-.44l7.65-7.65a.996.996 0 0 0 0-1.41Z"},rhUiIcon:null});var Mi={modifiers:{plain:"pf-m-plain",noPlainOnGlass:"pf-m-no-plain-on-glass",fixed:"pf-m-fixed",stickyHeaderBase:"pf-m-sticky-header-base",stickyHeader:"pf-m-sticky-header",stickyHeaderStuck:"pf-m-sticky-header-stuck",nestedColumnHeader:"pf-m-nested-column-header",striped:"pf-m-striped",expandable:"pf-m-expandable",stripedEven:"pf-m-striped-even",ghostRow:"pf-m-ghost-row",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",center:"pf-m-center",help:"pf-m-help",favorite:"pf-m-favorite",borderRight:"pf-m-border-right",borderLeft:"pf-m-border-left",action:"pf-m-action",noBorderRows:"pf-m-no-border-rows",expanded:"pf-m-expanded",clickable:"pf-m-clickable",selected:"pf-m-selected",firstCellOffsetReset:"pf-m-first-cell-offset-reset",dragOver:"pf-m-drag-over",animateExpand:"pf-m-animate-expand",noAnimateExpand:"pf-m-no-animate-expand",truncate:"pf-m-truncate",wrap:"pf-m-wrap",nowrap:"pf-m-nowrap",fitContent:"pf-m-fit-content",breakWord:"pf-m-break-word",standalone:"pf-m-standalone",favorited:"pf-m-favorited",noPadding:"pf-m-no-padding",noBackground:"pf-m-no-background",compact:"pf-m-compact",borderRow:"pf-m-border-row",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-v6-c-table",tableAction:"pf-v6-c-table__action",tableButton:"pf-v6-c-table__button",tableButtonContent:"pf-v6-c-table__button-content",tableCaption:"pf-v6-c-table__caption",tableCheck:"pf-v6-c-table__check",tableColumnHelp:"pf-v6-c-table__column-help",tableColumnHelpAction:"pf-v6-c-table__column-help-action",tableCompoundExpansionToggle:"pf-v6-c-table__compound-expansion-toggle",tableControlRow:"pf-v6-c-table__control-row",tableDraggable:"pf-v6-c-table__draggable",tableExpandableRow:"pf-v6-c-table__expandable-row",tableExpandableRowContent:"pf-v6-c-table__expandable-row-content",tableFavorite:"pf-v6-c-table__favorite",tableInlineEditAction:"pf-v6-c-table__inline-edit-action",tableSort:"pf-v6-c-table__sort",tableSortIndicator:"pf-v6-c-table__sort-indicator",tableSubhead:"pf-v6-c-table__subhead",tableTbody:"pf-v6-c-table__tbody",tableTd:"pf-v6-c-table__td",tableText:"pf-v6-c-table__text",tableTh:"pf-v6-c-table__th",tableThead:"pf-v6-c-table__thead",tableToggle:"pf-v6-c-table__toggle",tableToggleIcon:"pf-v6-c-table__toggle-icon",tableTr:"pf-v6-c-table__tr"};const Fi=e=>{var{className:n="",children:i=null,isOpen:a,onToggle:r,variant:s}=e,l=o(e,["className","children","isOpen","onToggle","variant"]);return v.jsxs(t.Fragment,{children:[void 0!==a&&v.jsx(ii,Object.assign({className:g(n,a&&Mi.modifiers.expanded),size:"compact"===s?"sm":void 0},l,{variant:"plain","aria-label":l["aria-label"]||"Details",onClick:r,"aria-expanded":a,icon:v.jsx("div",{className:g(Mi.tableToggleIcon),children:v.jsx(Ai,{})})})),i]})};Fi.displayName="CollapseColumn";const Bi=z({name:"GripVerticalIcon",icon:{xOffset:0,yOffset:0,width:320,height:512,svgPathData:"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"},rhUiIcon:{xOffset:0,yOffset:0,width:32,height:32,svgPathData:"M13.75 2.25v5.5c0 .551-.448 1-1 1h-5.5c-.552 0-1-.449-1-1v-5.5c0-.551.448-1 1-1h5.5c.552 0 1 .449 1 1Zm11-1h-5.5c-.552 0-1 .449-1 1v5.5c0 .551.448 1 1 1h5.5c.552 0 1-.449 1-1v-5.5c0-.551-.448-1-1-1Zm-12 11h-5.5c-.552 0-1 .449-1 1v5.5a1 1 0 0 0 1 1h5.5a1 1 0 0 0 1-1v-5.5c0-.551-.448-1-1-1Zm12 0h-5.5c-.552 0-1 .449-1 1v5.5a1 1 0 0 0 1 1h5.5a1 1 0 0 0 1-1v-5.5c0-.551-.448-1-1-1Zm-12 11h-5.5a1 1 0 0 0-1 1v5.5a1 1 0 0 0 1 1h5.5a1 1 0 0 0 1-1v-5.5a1 1 0 0 0-1-1Zm12 0h-5.5a1 1 0 0 0-1 1v5.5a1 1 0 0 0 1 1h5.5a1 1 0 0 0 1-1v-5.5a1 1 0 0 0-1-1Z"}}),Hi=e=>{var{className:t,onClick:n,"aria-label":i,id:a}=e,r=o(e,["className","onClick","aria-label","id"]);return v.jsx(ii,Object.assign({id:a,variant:"plain",className:t,type:"button","aria-label":i||"Draggable row draggable button",onClick:n},r,{icon:v.jsx(Bi,{})}))};Hi.displayName="DraggableCell";const Vi=e=>{var{children:n,className:i,onSelect:a,isOpen:r,selected:s,toggle:l,shouldFocusToggleOnSelect:c=!1,shouldFocusFirstItemOnOpen:d=!1,onOpenChange:p,onOpenChangeKeys:u=["Escape","Tab"],onToggleKeydown:f,variant:m,isPlain:h,innerRef:b,zIndex:x=9999,role:y="listbox",popperProps:w,menuHeight:O,maxMenuHeight:j,isScrollable:N,shouldPreventScrollOnItemFocus:S=!0,focusTimeoutDelay:C=0}=e,_=o(e,["children","className","onSelect","isOpen","selected","toggle","shouldFocusToggleOnSelect","shouldFocusFirstItemOnOpen","onOpenChange","onOpenChangeKeys","onToggleKeydown","variant","isPlain","innerRef","zIndex","role","popperProps","menuHeight","maxMenuHeight","isScrollable","shouldPreventScrollOnItemFocus","focusTimeoutDelay"]);const E=Be(zi.displayName,_.ouiaId),I=t.useRef(void 0),k=t.useRef(void 0),R=b||I,T="function"==typeof l||"function"!=typeof l&&!l.toggleRef?k:null==l?void 0:l.toggleRef,P=t.useRef(r);t.useEffect((()=>{!1===P.current&&!0===r&&d&&setTimeout((()=>{var e;const t=null===(e=null==R?void 0:R.current)||void 0===e?void 0:e.querySelector("li button:not(:disabled),li input:not(:disabled)");t&&t.focus({preventScroll:S})}),C),P.current=r}),[r]),t.useEffect((()=>{const e=e=>{var t,n,i,a;r&&p&&((null===(t=R.current)||void 0===t?void 0:t.contains(e.target))||(null===(n=T.current)||void 0===n?void 0:n.contains(e.target)))&&u.includes(e.key)&&(e.preventDefault(),p(!1),null===(i=T.current)||void 0===i||i.focus()),(null===(a=T.current)||void 0===a?void 0:a.contains(e.target))&&(f?f(e):r&&"typeahead"!==m&&hn(e,R))},t=e=>{var t,n;r&&p&&!(null===(t=null==T?void 0:T.current)||void 0===t?void 0:t.contains(e.target))&&r&&!(null===(n=R.current)||void 0===n?void 0:n.contains(e.target))&&p(!1)};return window.addEventListener("keydown",e),window.addEventListener("click",t),()=>{window.removeEventListener("keydown",e),window.removeEventListener("click",t)}}),[r,R,T,p,u,f,S,d,C]);const D=v.jsx(yn,Object.assign({role:y,className:g(i),ref:R,onSelect:(e,t)=>{a&&a(e,t),c&&T.current.focus()},isPlain:h,selected:s,isScrollable:null!=N?N:void 0!==O||void 0!==j},Me(zi.displayName,E,void 0===_.ouiaSafe||_.ouiaSafe),_,{children:v.jsx(jn,{menuHeight:O,maxMenuHeight:j,children:n})}));return v.jsx(un,Object.assign({trigger:"function"==typeof l?l(T):l.toggleNode,triggerRef:T,popper:D,popperRef:R,isVisible:r,zIndex:x},w))},zi=t.forwardRef(((e,t)=>v.jsx(Vi,Object.assign({innerRef:t},e))));zi.displayName="Select";const $i=e=>{var{children:t,className:n,isAriaMultiselectable:i=!1}=e,a=o(e,["children","className","isAriaMultiselectable"]);return v.jsx(gi,Object.assign({isAriaMultiselectable:i,className:g(n)},a,{children:t}))};$i.displayName="SelectList";var Wi="pf-v6-c-inline-edit__action",Ui="pf-v6-c-inline-edit__group",qi="pf-v6-c-inline-edit__input",Gi="pf-v6-c-inline-edit__value",Zi={iconGroup:"pf-m-icon-group",enableEditable:"pf-m-enable-editable",inlineEditable:"pf-m-inline-editable"},Ki="pf-v6-c-form__helper-text";const Xi=({value:e,rowIndex:n,cellIndex:i,onSelect:a=(()=>{}),clearSelection:o,isOpen:r=!1,isPlaceholder:s=!1,onToggle:l=(()=>{}),selections:c=[""],options:d=[],props:p})=>{const u=v.jsx(zi,Object.assign({onSelect:(e,t)=>{a(e,t,n,i,s)}},o&&{onClear:e=>{o(e,n,i)}},{isOpen:r,selected:c,toggle:e=>v.jsx(Ti,{ref:e,onClick:l,isExpanded:r,isPlaceholder:s,children:r?"Expanded":"Collapsed"})},p.editableSelectProps,{children:v.jsx($i,{children:d})}));return v.jsxs(t.Fragment,{children:[v.jsx("div",{className:Gi,children:Array.isArray(e)?e.join(", "):e}),v.jsxs("div",{className:qi,children:[u,v.jsx("div",{className:g(Ki),"aria-live":"polite",children:p.errorText})]})]})};Xi.displayName="EditableSelectInputCell";var Yi={formControl:"pf-v6-c-form-control",formControlIcon:"pf-v6-c-form-control__icon",formControlUtilities:"pf-v6-c-form-control__utilities",modifiers:{textarea:"pf-m-textarea",success:"pf-m-success",warning:"pf-m-warning",error:"pf-m-error",readonly:"pf-m-readonly",plain:"pf-m-plain",expanded:"pf-m-expanded",disabled:"pf-m-disabled",status:"pf-m-status",icon:"pf-m-icon",placeholder:"pf-m-placeholder",resizeVertical:"pf-m-resize-vertical",resizeHorizontal:"pf-m-resize-horizontal",resizeBoth:"pf-m-resize-both"}};const Ji={success:$,error:W,warning:U},Qi=e=>{var{status:t,customIcon:n,className:i}=e,a=o(e,["status","customIcon","className"]);const r=t&&Ji[t];return v.jsx("span",Object.assign({className:g(Yi.formControlIcon,t&&Yi.modifiers.status,i)},a,{children:n||v.jsx(r,{})}))};var ea,ta;!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"}(ea||(ea={})),function(e){e.default="default",e.plain="plain"}(ta||(ta={}));class na extends t.Component{constructor(e){super(e),this.inputRef=t.createRef(),this.observer=()=>{},this.handleChange=e=>{this.props.onChange&&this.props.onChange(e,e.currentTarget.value)},this.handleResize=()=>{const e=this.props.innerRef||this.inputRef;e&&e.current&&qe(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,isStartTruncated:n,onFocus:i}=this.props;(t||n)&&this.restoreText(),i&&i(e)},this.onBlur=e=>{const{isLeftTruncated:t,isStartTruncated:n,onBlur:i}=this.props;(t||n)&&this.handleResize(),i&&i(e)},this.sanitizeInputValue=e=>"string"==typeof e?e.replace(/\n/g," "):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")}componentDidMount(){if(this.props.isLeftTruncated||this.props.isStartTruncated){const e=this.props.innerRef||this.inputRef;this.observer=((e,t,n)=>{let i;if(We){const{ResizeObserver:n}=window;if(e&&n){const a=new n((e=>{window.requestAnimationFrame((()=>{Array.isArray(e)&&e.length>0&&t()}))}));a.observe(e),i=()=>a.unobserve(e)}else window.addEventListener("resize",t),i=()=>window.removeEventListener("resize",t)}return()=>{i&&i()}})(e.current,this.handleResize),this.handleResize()}}componentWillUnmount(){(this.props.isLeftTruncated||this.props.isStartTruncated)&&this.observer()}render(){const e=this.props,{innerRef:t,className:n,type:i,value:a,placeholder:r,validated:s,onChange:l,onFocus:c,onBlur:d,isLeftTruncated:p,isStartTruncated:u,isExpanded:f,expandedProps:m,readOnly:h,readOnlyVariant:b,isRequired:x,isDisabled:y,customIcon:w,ouiaId:O,ouiaSafe:j}=e,N=o(e,["innerRef","className","type","value","placeholder","validated","onChange","onFocus","onBlur","isLeftTruncated","isStartTruncated","isExpanded","expandedProps","readOnly","readOnlyVariant","isRequired","isDisabled","customIcon","ouiaId","ouiaSafe"]),S=["success","error","warning"].includes(s),C=m?{"aria-expanded":null==m?void 0:m.isExpanded,"aria-controls":null==m?void 0:m.ariaControls,role:"combobox"}:{};return v.jsx(fn,{prefix:"pf-",ouiaComponentType:na.displayName,children:(e,o)=>v.jsxs("span",{className:g(Yi.formControl,b&&Yi.modifiers.readonly,"plain"===b&&Yi.modifiers.plain,y&&Yi.modifiers.disabled,(f||(null==m?void 0:m.isExpanded))&&Yi.modifiers.expanded,w&&Yi.modifiers.icon,S&&Yi.modifiers[s],n),children:[v.jsx("input",Object.assign({},N,{onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.handleChange,type:i,value:this.sanitizeInputValue(a),"aria-invalid":N["aria-invalid"]?N["aria-invalid"]:s===q.error},C,{required:x,disabled:y,readOnly:!!b||h,ref:t||this.inputRef,placeholder:r},Me(ia.displayName,void 0!==O?O:o,j))),(w||S)&&v.jsxs("span",{className:g(Yi.formControlUtilities),children:[w&&v.jsx(Qi,{customIcon:w}),S&&v.jsx(Qi,{status:s})]})]})})}}na.displayName="TextInputBase",na.defaultProps={"aria-label":null,isRequired:!1,validated:"default",isDisabled:!1,isExpanded:!1,type:ea.text,isLeftTruncated:!1,isStartTruncated:!1,onChange:()=>{},ouiaSafe:!0};const ia=t.forwardRef(((e,t)=>v.jsx(na,Object.assign({},e,{innerRef:t}))));ia.displayName="TextInput";const aa=({value:e,rowIndex:n,cellIndex:i,props:a,handleTextInputChange:o,inputAriaLabel:r,isDisabled:s=!1})=>v.jsxs(t.Fragment,{children:[v.jsx("div",{className:Gi,children:e}),v.jsxs("div",{className:qi,children:[v.jsx(ia,{isDisabled:s,value:void 0!==a.editableValue?a.editableValue:e,validated:!1!==a.isValid?"default":"error",type:"text",onChange:(e,t)=>{o(t,e,n,i)},"aria-label":r}),v.jsx("div",{className:g(Ki),"aria-live":"polite",children:a.errorText})]})]});aa.displayName="EditableTextCell";const oa=e=>{var{children:t=null,hasNoBackground:n}=e,i=o(e,["children","hasNoBackground"]);return v.jsx("div",Object.assign({},i,{className:g(Mi.tableExpandableRowContent,n&&Mi.modifiers.noBackground),children:t}))};oa.displayName="ExpandableRowContent";const ra=z({name:"HelpIcon",icon:{width:1024,height:1024,svgPathData:"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"},rhUiIcon:null});var sa={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",custom:"pf-m-custom",info:"pf-m-info"},la="pf-v6-c-popover",ca="pf-v6-c-popover__arrow",da="pf-v6-c-popover__body",pa="pf-v6-c-popover__close",ua="pf-v6-c-popover__content",fa="pf-v6-c-popover__footer",ma="pf-v6-c-popover__header",ha="pf-v6-c-popover__title",ba="pf-v6-c-popover__title-icon",va="pf-v6-c-popover__title-text";const ga=t.createContext({}),xa=e=>{var{className:t=null,children:n}=e,i=o(e,["className","children"]);return v.jsx("div",Object.assign({className:g(ua,t)},i,{children:n}))};xa.displayName="PopoverContent";const ya=e=>{var{children:t,id:n,className:i}=e,a=o(e,["children","id","className"]);return v.jsx("div",Object.assign({className:g(da,i),id:n},a,{children:t}))};ya.displayName="PopoverBody";const wa=e=>{var{children:t,className:n}=e,i=o(e,["children","className"]);return v.jsx("span",Object.assign({className:g(ba,n)},i,{children:t}))};wa.displayName="PopoverHeaderIcon";const Oa=e=>{var{children:t,className:n,headingLevel:i}=e,a=o(e,["children","className","headingLevel"]);const r=i;return v.jsx(r,Object.assign({className:g(va,n)},a,{children:t}))};Oa.displayName="PopoverHeaderText";const ja=e=>{var{children:t,icon:n,className:i,titleHeadingLevel:a="h6",alertSeverityVariant:r,id:s,alertSeverityScreenReaderText:l}=e,c=o(e,["children","icon","className","titleHeadingLevel","alertSeverityVariant","id","alertSeverityScreenReaderText"]);return v.jsx("header",Object.assign({className:g(ma,i)},c,{children:v.jsxs("div",{className:g(ha),id:s,children:[n&&v.jsx(wa,{children:n}),v.jsxs(Oa,{headingLevel:a,children:[r&&l&&v.jsx("span",{className:"pf-v6-screen-reader",children:l}),t]})]})}))};ja.displayName="PopoverHeader";const Na=e=>{var{children:t,className:n=""}=e,i=o(e,["children","className"]);return v.jsx("footer",Object.assign({className:g(fa,n)},i,{children:t}))};Na.displayName="PopoverFooter";const Sa=z({name:"RhMicronsCloseIcon",icon:{xOffset:0,yOffset:0,width:20,height:20,svgPathData:"M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z"},rhUiIcon:null}),Ca=e=>{var{onClose:t=(()=>{})}=e,n=o(e,["onClose"]);return v.jsx("div",{className:g(pa),children:v.jsx(ii,Object.assign({onClick:t,variant:"plain","aria-label":!0},n,{style:{pointerEvents:"auto"},icon:v.jsx(Sa,{})}))})};Ca.displayName="PopoverCloseButton";const _a=e=>{var{className:t=""}=e,n=o(e,["className"]);return v.jsx("div",Object.assign({className:g(ca,t)},n))};_a.displayName="PopoverArrow";const Ea={name:"--pf-v6-c-popover--MaxWidth",value:"none",var:"var(--pf-v6-c-popover--MaxWidth)"},Ia={name:"--pf-v6-c-popover--MinWidth",value:"auto",var:"var(--pf-v6-c-popover--MinWidth)"};var ka;!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"}(ka||(ka={}));const Ra={custom:sa.custom,info:sa.info,success:sa.success,warning:sa.warning,danger:sa.danger},Ta=e=>{var{children:n,position:i="top",enableFlip:a=!0,className:r="",isVisible:s=null,shouldClose:l=(()=>null),shouldOpen:c=(()=>null),"aria-label":d="",bodyContent:p,headerContent:u=null,headerComponent:f="h6",headerIcon:m=null,alertSeverityVariant:h,alertSeverityScreenReaderText:b,footerContent:x=null,appendTo:y=(()=>document.body),hideOnOutsideClick:w=!0,onHide:O=(()=>null),onHidden:j=(()=>null),onShow:N=(()=>null),onShown:S=(()=>null),onMount:C=(()=>null),zIndex:_=9999,triggerAction:E="click",minWidth:I=Ia&&Ia.value,maxWidth:k=Ea&&Ea.value,closeBtnAriaLabel:R="Close",showClose:T=!0,distance:P=25,flipBehavior:D=["top","bottom","left","right","top-start","top-end","bottom-start","bottom-end","left-start","left-end","right-start","right-end"],animationDuration:L=300,id:A,withFocusTrap:M,triggerRef:F,hasNoPadding:B=!1,hasAutoWidth:H=!1,elementToFocus:V}=e,z=o(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","triggerAction","minWidth","maxWidth","closeBtnAriaLabel","showClose","distance","flipBehavior","animationDuration","id","withFocusTrap","triggerRef","hasNoPadding","hasAutoWidth","elementToFocus"]);const $=Ae(),W=A||$,U=null!==s,[q,G]=t.useState(!1),[K,X]=t.useState(Boolean(M)),Y=t.useRef(null);t.useEffect((()=>{C()}),[]),t.useEffect((()=>{U&&(s?J(void 0,!0):Q())}),[s,U]);const J=(e,t)=>{e&&N(e),G(!0),!1!==M&&t&&X(!0)},Q=e=>{e&&O(e),G(!1)},ee={top:sa.top,bottom:sa.bottom,left:sa.left,right:sa.right,"top-start":sa.topLeft,"top-end":sa.topRight,"bottom-start":sa.bottomLeft,"bottom-end":sa.bottomRight,"left-start":sa.leftTop,"left-end":sa.leftBottom,"right-start":sa.rightTop,"right-end":sa.rightBottom},te=I!==Ia.value,ne=k!==Ea.value,ie=e=>{U?c(e,J):J(e,!1)},ae=e=>{U?l(e,Q):Q(e)},oe=v.jsxs(Pe,Object.assign({ref:Y,active:K,focusTrapOptions:{returnFocusOnDeactivate:!1!==M,clickOutsideDeactivates:!0,initialFocus:V||void 0,checkCanFocusTrap:e=>new Promise((t=>{const n=setInterval((()=>{e.every((e=>"hidden"!==getComputedStyle(e).visibility))&&(clearInterval(n),t())}),10),i=setTimeout((()=>{clearInterval(n),t()}),5e3);t._cleanup=()=>{clearInterval(n),clearTimeout(i)}})),tabbableOptions:{displayCheck:"none"},fallbackFocus:()=>{let e=null;return document&&document.activeElement&&(e=document.activeElement),e}},preventScrollOnDeactivate:!0,className:g(la,h&&Ra[h],B&&sa.noPadding,H&&sa.widthAuto,r),role:"dialog","aria-modal":"true","aria-label":u?void 0:d,"aria-labelledby":u?`popover-${W}-header`:void 0,"aria-describedby":`popover-${W}-body`,onMouseDown:()=>{K&&X(!1)},style:{minWidth:te?I:null,maxWidth:ne?k:null}},z,{children:[v.jsx(_a,{}),v.jsxs(xa,{children:[T&&"click"===E&&v.jsx(Ca,{onClose:e=>{e.stopPropagation(),U?l(e,Q):Q(e)},"aria-label":R}),u&&v.jsx(ja,{id:`popover-${W}-header`,icon:m,alertSeverityVariant:h,alertSeverityScreenReaderText:b||`${h} alert:`,titleHeadingLevel:f,children:"function"==typeof u?u(Q):u}),v.jsx(ya,{id:`popover-${W}-body`,children:"function"==typeof p?p(Q):p}),x&&v.jsx(Na,{id:`popover-${W}-footer`,children:"function"==typeof x?x(Q):x})]})]}));return v.jsx(ga.Provider,{value:{headerComponent:f},children:v.jsx(un,{trigger:n,triggerRef:F,popper:oe,popperRef:Y,minWidth:I,appendTo:y,isVisible:q,onMouseEnter:"hover"===E&&ie,onMouseLeave:"hover"===E&&ae,onPopperMouseEnter:"hover"===E&&ie,onPopperMouseLeave:"hover"===E&&ae,onFocus:"hover"===E&&(e=>{U?c(e,J):J(e,!1)}),onBlur:"hover"===E&&(e=>{U?l(e,Q):Q(e)}),positionModifiers:ee,distance:P,placement:i,onTriggerClick:"click"===E&&(e=>{U?q?l(e,Q):c(e,J):q?Q(e):J(e,!0)}),onDocumentClick:(e,t,n)=>{if(w&&q){const i=n&&n.contains(e.target),a=t&&t.contains(e.target);if(i||a)return;U?l(e,Q):Q(e)}},onDocumentKeyDown:e=>{e.key===Z&&q&&(U?l(e,Q):Q(e))},enableFlip:a,zIndex:_,flipBehavior:D,animationDuration:L,onHidden:j,onShown:S,onHide:()=>X(!1)})})};var Pa,Da;Ta.displayName="Popover",e.TableTextVariant=void 0,(Pa=e.TableTextVariant||(e.TableTextVariant={})).div="div",Pa.nav="nav",e.WrapModifier=void 0,(Da=e.WrapModifier||(e.WrapModifier={})).wrap="wrap",Da.nowrap="nowrap",Da.truncate="truncate",Da.breakWord="breakWord",Da.fitContent="fitContent";const La=e=>{var{children:n=null,className:i="",variant:a="span",wrapModifier:r=null,tooltip:s="",tooltipProps:l={},onMouseEnter:c=(()=>{}),focused:d=!1,tooltipHasDefaultBehavior:p=!1}=e,u=o(e,["children","className","variant","wrapModifier","tooltip","tooltipProps","onMouseEnter","focused","tooltipHasDefaultBehavior"]);const f=a,m=t.createRef(),[h,b]=t.useState(s),x=v.jsx(f,Object.assign({ref:m,onMouseEnter:p?void 0:e=>{e.target.offsetWidth<e.target.scrollWidth?b(s||e.target.innerText):b(""),c(e)},className:g(i,r&&Mi.modifiers[r],Mi.tableText)},u,{children:n}));return t.useEffect((()=>{var e;p||(d&&(e=m.current).offsetWidth<e.scrollWidth?b(s||e.innerText):b(""))}),[d,p]),""!==h?v.jsx(mi,Object.assign({triggerRef:m,content:h},!p&&{isVisible:!0},l,{children:x})):x};La.displayName="TableText";const Aa=({children:e,info:t,className:n,variant:i="tooltip",popoverProps:a,tooltipProps:o,ariaLabel:r})=>v.jsxs("div",{className:g(Mi.tableColumnHelp,n),children:["string"==typeof e?v.jsx(La,{children:e}):e,v.jsx("span",{className:g(Mi.tableColumnHelpAction),children:"tooltip"===i?v.jsx(mi,Object.assign({content:t},o,{children:v.jsx(ii,{variant:"plain",hasNoPadding:!0,"aria-label":r||"string"==typeof t&&t||"More info",icon:v.jsx(ra,{})})})):v.jsx(Ta,Object.assign({bodyContent:t},a,{children:v.jsx(ii,{variant:"plain",hasNoPadding:!0,"aria-label":r||"string"==typeof t&&t||"More info",icon:v.jsx(ra,{})})}))})]});Aa.displayName="HeaderCellInfoWrapper";var Ma,Fa={grid:"pf-m-grid",animateExpand:"pf-m-animate-expand",expanded:"pf-m-expanded",expandable:"pf-m-expandable",selected:"pf-m-selected",compact:"pf-m-compact",action:"pf-m-action",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"},Ba={treeView:"pf-m-tree-view",noInset:"pf-m-no-inset",treeViewGrid:"pf-m-tree-view-grid",borderRight:"pf-m-border-right",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"},Ha="pf-v6-c-table__check",Va="pf-v6-c-table__toggle",za="pf-v6-c-table__toggle-icon",$a="pf-v6-c-table__tree-view-details-toggle",Wa="pf-v6-c-table__tree-view-icon",Ua="pf-v6-c-table__tree-view-main",qa="pf-v6-c-table__tree-view-text",Ga="pf-v6-c-table__tree-view-title-cell",Za={standalone:"pf-m-standalone",disabled:"pf-m-disabled"},Ka="pf-v6-c-radio",Xa="pf-v6-c-radio__body",Ya="pf-v6-c-radio__description",Ja="pf-v6-c-radio__input",Qa="pf-v6-c-radio__label";class eo extends t.Component{constructor(e){super(e),this.handleChange=e=>{this.props.onChange(e,e.currentTarget.checked)},e.label||e["aria-label"]||console.error("Radio:","Radio requires an aria-label to be specified")}render(){const e=this.props,{"aria-label":t,"aria-describedby":n,checked:i,className:a,inputClassName:r,defaultChecked:s,isLabelWrapped:l,labelPosition:c="end",isChecked:d,isDisabled:p,isValid:u,label:f,onChange:m,description:h,body:b,ouiaId:x,ouiaSafe:y=!0,component:w}=e,O=o(e,["aria-label","aria-describedby","checked","className","inputClassName","defaultChecked","isLabelWrapped","labelPosition","isChecked","isDisabled","isValid","label","onChange","description","body","ouiaId","ouiaSafe","component"]);return O.id||console.error("Radio:","id is required to make input accessible"),v.jsx(fn,{prefix:"pf-radio-description-",ouiaComponentType:"Radio",children:(e,o)=>{let m;void 0!==n?m=""===n?void 0:n:h&&(m=e);const j=v.jsx("input",Object.assign({},O,{className:g(Ja,r),type:"radio",onChange:this.handleChange,"aria-invalid":!u,"aria-describedby":m,disabled:p,checked:i||d},void 0===i&&{defaultChecked:s},!f&&{"aria-label":t},Me(eo.displayName,void 0!==x?x:o,y))),N=l&&!w||"label"===w,S=N?"span":"label",C=f?v.jsx(S,{className:g(Qa,p&&Za.disabled),htmlFor:N?void 0:O.id,children:f}):null,_=null!=w?w:N?"label":"div";return v.jsxs(_,{className:g(Ka,!f&&Za.standalone,a),htmlFor:N?O.id:void 0,children:["start"===c?v.jsxs(v.Fragment,{children:[C,j]}):v.jsxs(v.Fragment,{children:[j,C]}),h&&v.jsx("span",{id:e,className:g(Ya),children:h}),b&&v.jsx("span",{className:g(Xa),children:b})]})}})}}eo.displayName="Radio",eo.defaultProps={className:"",isDisabled:!1,isValid:!0,onChange:()=>{}},e.RowSelectVariant=void 0,(Ma=e.RowSelectVariant||(e.RowSelectVariant={})).radio="radio",Ma.checkbox="checkbox";const to=n=>{var{children:i=null,className:a,onSelect:r=null,selectVariant:s,tooltip:l,tooltipProps:c,id:d,name:p,isIndeterminate:u}=n,f=o(n,["children","className","onSelect","selectVariant","tooltip","tooltipProps","id","name","isIndeterminate"]);const m=t.createRef(),h=Object.assign(Object.assign({},f),{id:d,ref:m,onChange:(e,t)=>{r&&r(e)}}),b=Object.assign(Object.assign({},h),u&&{isChecked:null}),g=v.jsxs(t.Fragment,{children:[s===e.RowSelectVariant.checkbox?v.jsx(Bn,Object.assign({},b)):v.jsx(eo,Object.assign({},h,{name:p})),i]});return l?v.jsx(mi,Object.assign({triggerRef:m,content:l},c,{children:g})):g};to.displayName="SelectColumn";const no=(t,{rowIndex:n,columnIndex:i,rowData:a,column:o,property:r,tooltip:s})=>{const{extraParams:{onSelect:l,selectVariant:c,allRowsSelected:d,isHeaderSelectDisabled:p,isIndeterminate:u}}=o,f={rowIndex:n,columnIndex:i,column:o,property:r};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({id:-1!==m?`select-${n}`:"select-all"},-1!==m?{isChecked:a&&!!a.selected,"aria-label":`Select row ${n}`}:{isChecked:d,"aria-label":"Select all rows"}),a&&(a.disableCheckbox||a.disableSelection)&&{isDisabled:!0,className:Dn}),!a&&p&&{isDisabled:!0});let b="check-all";return-1!==m&&c===e.RowSelectVariant.checkbox?b=`checkrow${n}`:-1!==m&&(b="radioGroup"),{className:g(Mi.tableCheck),component:-1!==m?"td":"th",isVisible:!a||!a.fullWidth,children:v.jsx(to,Object.assign({},h,{selectVariant:c,onSelect:function(e){const t=void 0===n?e.currentTarget.checked:!(a&&a.selected);l&&l(e,t,m,a,f)},name:b,tooltip:s,isIndeterminate:-1===m?u:void 0,children:t}))}},io=z({name:"LongArrowAltUpIcon",icon:{xOffset:0,yOffset:0,width:256,height:512,svgPathData:"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"},rhUiIcon:{xOffset:0,yOffset:0,width:32,height:32,svgPathData:"M22.707 8.707a.997.997 0 0 1-1.414 0L17 4.414V30a1 1 0 1 1-2 0V4.414l-4.293 4.293a.999.999 0 1 1-1.414-1.414l5.646-5.647a1.501 1.501 0 0 1 2.121 0l5.646 5.646a.999.999 0 0 1 0 1.414Z"}}),ao=z({name:"LongArrowAltDownIcon",icon:{xOffset:0,yOffset:0,width:256,height:512,svgPathData:"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"},rhUiIcon:{xOffset:0,yOffset:0,width:32,height:32,svgPathData:"m22.707 24.707-5.646 5.646c-.292.292-.676.438-1.061.438s-.768-.146-1.061-.438l-5.646-5.646a.999.999 0 1 1 1.414-1.414L15 27.586V2a1 1 0 0 1 2 0v25.586l4.293-4.293a.999.999 0 1 1 1.414 1.414Z"}}),oo=z({name:"ArrowsAltVIcon",icon:{xOffset:0,yOffset:0,width:256,height:512,svgPathData:"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"},rhUiIcon:{xOffset:0,yOffset:0,width:32,height:32,svgPathData:"M21.293 23.293 17 27.586V4.414l4.293 4.293a.997.997 0 0 0 1.414 0 .999.999 0 0 0 0-1.414l-5.646-5.646a1.5 1.5 0 0 0-2.121 0L9.294 7.293a.999.999 0 1 0 1.414 1.414l4.293-4.293v23.172l-4.293-4.293a.999.999 0 1 0-1.414 1.414l5.646 5.646c.292.293.676.438 1.061.438s.768-.146 1.061-.438l5.646-5.646a.999.999 0 1 0-1.414-1.414Z"}});var ro="pf-v6-c-action-list",so={icons:"pf-m-icons",vertical:"pf-m-vertical"};const lo=e=>{var{children:t,isIconList:n,className:i,isVertical:a=!1}=e,r=o(e,["children","isIconList","className","isVertical"]);return v.jsx("div",Object.assign({className:g(ro,n&&so.icons,a&&so.vertical,i)},r,{children:t}))};lo.displayName="ActionList";const co=e=>{var{children:t,className:n}=e,i=o(e,["children","className"]);return v.jsx("div",Object.assign({className:g(`${ro}__item`,n)},i,{children:t}))};var po;co.displayName="ActionListItem",e.SortByDirection=void 0,(po=e.SortByDirection||(e.SortByDirection={})).asc="asc",po.desc="desc";const uo=n=>{var{children:i=null,className:a="",isSortedBy:r=!1,onSort:s=null,sortDirection:l="",type:c="button",tooltip:d,tooltipProps:p,tooltipHasDefaultBehavior:u,favoriteButtonProps:f}=n,m=o(n,["children","className","isSortedBy","onSort","sortDirection","type","tooltip","tooltipProps","tooltipHasDefaultBehavior","favoriteButtonProps"]);let h;const[b,x]=t.useState(!1);if(h=r?l===e.SortByDirection.asc?io:ao:oo,f){const{favorited:e}=f,t=o(f,["favorited"]);return v.jsxs(lo,{isIconList:!0,children:[v.jsx(co,{children:v.jsx(ii,Object.assign({variant:"plain",isFavorite:!0,isFavorited:e},t))}),v.jsx(co,{children:v.jsx(ii,Object.assign({variant:"plain",icon:v.jsx("span",{className:g(Mi.tableSortIndicator),children:v.jsx(h,{})}),onClick:e=>s&&s(e)},m))})]})}return v.jsx("button",Object.assign({},m,{type:c,className:g(a,Mi.tableButton),onClick:e=>s&&s(e),onFocus:()=>x(!0),onBlur:()=>x(!1),children:v.jsxs("div",{className:g(a,Mi.tableButtonContent),children:[v.jsx(La,{tooltip:d,tooltipProps:p,tooltipHasDefaultBehavior:u,focused:b,children:i}),v.jsx("span",{className:g(Mi.tableSortIndicator),children:v.jsx(h,{})})]})}))};uo.displayName="SortColumn";const fo=e=>()=>{var t;return mo(v.jsx(Zn,{}),{columnIndex:e.columnIndex,className:Mi.tableFavorite,ariaLabel:null!==(t=e.ariaLabel)&&void 0!==t?t:"Sort favorites",column:{extraParams:{sortBy:e.sortBy,onSort:e.onSort,favoriteButtonProps:e.favoriteButtonProps}},tooltip:e.tooltip,tooltipProps:e.tooltipProps,tooltipHasDefaultBehavior:!0})},mo=(t,{columnIndex:n,column:i,property:a,className:o,ariaLabel:r,tooltip:s,tooltipProps:l,tooltipHasDefaultBehavior:c})=>{const{extraParams:{sortBy:d,onSort:p,favoriteButtonProps:u}}=i,f={columnIndex:n,column:i,property:a},m=d&&n===d.index;return Object.assign(Object.assign({className:g(Mi.tableSort,m&&Mi.modifiers.selected,o)},m&&{"aria-sort":`${d.direction}ending`}),{children:v.jsx(uo,{isSortedBy:m,sortDirection:m?d.direction:"",onSort:function(t){let i;i=m?d.direction===e.SortByDirection.asc?e.SortByDirection.desc:e.SortByDirection.asc:d.defaultDirection?d.defaultDirection:e.SortByDirection.asc,p&&p(t,n,i,f)},"aria-label":r,tooltip:s,tooltipProps:l,tooltipHasDefaultBehavior:c,favoriteButtonProps:u,children:t})})},ho=(e,t,n,i)=>"function"==typeof e?e(n,i):t,bo=(e,t,n)=>(i,{rowData:a,column:o,rowIndex:r,columnIndex:s,column:{extraParams:{actionsToggle:l,actionsPopperProps:c}},property:d})=>{const p={rowIndex:r,columnIndex:s,column:o,property:d},u=ho(t,e,a,p),f=ho(n,a&&a.disableActions,a,p),m=u&&u.length>0?{children:v.jsx(Li,{items:u,isDisabled:f,rowData:a,extraData:p,actionsToggle:l,popperProps:c,children:i})}:{};return Object.assign({className:g(Mi.tableAction),style:{paddingRight:0},isVisible:!0},m)},vo=(e,t)=>t.filter((t=>t.name===e))[0].errorText,go=e=>e.toUpperCase().replace("-","").replace("_",""),xo=e=>e.replace(/([-_][a-z])/gi,go);function yo(e){return e[0].toUpperCase()+e.substring(1)}const wo=e=>()=>({className:g(Mi.modifiers["number"==typeof e?`width_${e}`:`width${yo(e)}`])}),Oo=z({name:"PencilAltIcon",icon:{xOffset:0,yOffset:0,width:512,height:512,svgPathData:"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"},rhUiIcon:{xOffset:0,yOffset:0,width:32,height:32,svgPathData:"m29.354 6.939-4.293-4.293a1.501 1.501 0 0 0-2.121 0L6.293 19.293a.98.98 0 0 0-.225.358l-3.981 8.942c-.004.008-.002.017-.006.025-.029.07-.036.145-.049.22-.009.055-.029.107-.028.162 0 .054.019.107.028.162.013.075.02.15.049.22.003.008.002.017.006.025.044.1.105.188.175.265.013.015.031.025.045.039a.985.985 0 0 0 .246.175c.015.008.025.022.041.029.014.006.029.004.044.009a.994.994 0 0 0 .357.077h.008a.973.973 0 0 0 .357-.077c.014-.006.03-.003.044-.009l8.943-3.982a.98.98 0 0 0 .357-.225l16.65-16.647c.283-.283.439-.66.439-1.061s-.156-.777-.439-1.061ZM4.972 27.027l2.354-5.287 2.933 2.933-5.287 2.354ZM12 23.586 8.414 20 20.5 7.914l3.586 3.586L12 23.586Zm13.5-13.5L21.914 6.5 24 4.414 27.586 8 25.5 10.086Z"}}),jo=e=>{var{onClick:n=null,className:i="",editing:a,valid:r,saveAriaLabel:s,cancelAriaLabel:l,editAriaLabel:c}=e,d=o(e,["onClick","className","editing","valid","saveAriaLabel","cancelAriaLabel","editAriaLabel"]);return v.jsxs(t.Fragment,{children:[v.jsxs("div",{className:g(Ui,Zi.iconGroup,"pf-m-action-group"),children:[v.jsx("div",{className:g(Wi),children:v.jsx(ii,Object.assign({"aria-label":s},d,{onClick:e=>n(e,"save"),variant:"plain",icon:v.jsx(kn,{})}))}),v.jsx("div",{className:g(Wi),children:v.jsx(ii,Object.assign({"aria-label":l},d,{onClick:e=>n(e,"cancel"),variant:"plain",icon:v.jsx(Sa,{})}))})]}),v.jsx("div",{className:g(Wi,Zi.enableEditable),children:v.jsx(ii,Object.assign({"aria-label":c},d,{onClick:e=>n(e,"edit"),variant:"plain",icon:v.jsx(Oo,{})}))})]})};jo.displayName="EditColumn";const No=(e,{rowIndex:t,rowData:n,column:i})=>{const{extraParams:{onRowEdit:a}}=i;function o(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:Mi.tableInlineEditAction,component:"td",isVisible:!0,children:v.jsx(jo,{saveAriaLabel:n&&n.rowSaveBtnAriaLabel&&n.rowSaveBtnAriaLabel(t)||o(t,"save"),cancelAriaLabel:n&&n.rowCancelBtnAriaLabel&&n.rowCancelBtnAriaLabel(t)||o(t,"cancel"),editAriaLabel:n&&n.rowEditBtnAriaLabel&&n.rowEditBtnAriaLabel(t)||o(t,"edit"),valid:n&&n.isValid,editing:n&&n.isEditable,onClick:(e,i)=>{let o={};"save"===i&&(o=n.rowEditValidationRules&&n.rowEditValidationRules.reduce(((e,t)=>{const i=n.cells.filter((e=>{const n=""===e.props.editableValue?"":e.props.editableValue||e.props.value;let i=!1;return i=Array.isArray(n)&&n.length?n.reduce(((e,n)=>!0===e||!t.validator(n)),i):Array.isArray(n)&&!n.length?!t.validator(""):!t.validator(n),i&&(e.props.isValid=!1),i}));return i.length&&(e[t.name]=i.map((e=>e.props.name))),e}),{})),a(e,i,n&&n.isEditable,t,o)}})}},So=(e,{rowIndex:t,columnIndex:n,rowData:i,column:a,property:o})=>{const{extraParams:{onCollapse:r,rowLabeledBy:s="simple-node",expandId:l="expand-toggle",allRowsExpanded:c,collapseAllAriaLabel:d,variant:p}}=a,u={rowIndex:t,columnIndex:n,column:a,property:o},f=void 0!==t?t:-1,m=Object.assign({},-1!==f?{isOpen:null==i?void 0:i.isOpen,"aria-labelledby":`${s}${f} ${l}${f}`}:{isOpen:c,"aria-label":d||"Expand all rows"});return{className:(void 0!==(null==i?void 0:i.isOpen)||-1===f)&&g(Mi.tableToggle),isVisible:!(null==i?void 0:i.fullWidth),children:v.jsx(Fi,Object.assign({"aria-labelledby":`${s}${f} ${l}${f}`,onToggle:function(e){const n=i?!i.isOpen:!c;r&&r(e,t,n,i,u)},id:l+f,variant:p},m,{children:e}))}},Co=(e,t=0)=>(n,{columnIndex:i,rowIndex:a,rowData:o,column:{extraParams:{contentId:r="expanded-content"}}})=>n&&o.hasOwnProperty("parent")&&{colSpan:o.cells&&1!==o.cells.length?1:e+(o.fullWidth?t+1:0),id:r+a+(i?"-"+i:""),className:o.noPadding&&g(Mi.modifiers.noPadding)},_o=(e,{rowIndex:t,columnIndex:n,rowData:i,column:a,property:o})=>{if(!e)return null;const{title:r,props:s}=e,{extraParams:{onExpand:l,expandId:c="expand-toggle"}}=a,d={rowIndex:t,columnIndex:n,column:a,property:o};return{className:g(Mi.tableCompoundExpansionToggle,s.isOpen&&Mi.modifiers.expanded),children:void 0!==s.isOpen&&v.jsx("button",{type:"button",className:g(Mi.tableButton),onClick:function(e){l&&l(e,t,n,s.isOpen,i,d)},"aria-expanded":s.isOpen,"aria-controls":s.ariaControls,id:`${c}-${t}-${n}`,children:v.jsx(La,{children:r})})}},Eo=["hidden","hiddenOnSm","hiddenOnMd","hiddenOnLg","hiddenOnXl","hiddenOn_2xl","visibleOnSm","visibleOnMd","visibleOnLg","visibleOnXl","visibleOn_2xl"].filter((e=>Mi.modifiers[e])).reduce(((e,t)=>(e[t.replace("_2xl","2Xl")]=Mi.modifiers[t],e)),{}),Io=(...e)=>()=>({className:g(...e)}),ko=({tooltip:e,tooltipProps:t,popover:n,popoverProps:i,className:a,ariaLabel:o})=>r=>({className:Mi.modifiers.help,children:e?v.jsx(Aa,{variant:"tooltip",info:e,tooltipProps:t,ariaLabel:o,className:a,children:r}):v.jsx(Aa,{variant:"popover",info:n,popoverProps:i,ariaLabel:o,className:a,children:r})}),Ro=e=>{var{className:t="",onFavorite:n,isFavorited:i,rowIndex:a}=e,r=o(e,["className","onFavorite","isFavorited","rowIndex"]);const s=void 0===a?{}:{id:`favorites-button-${a}`,"aria-labelledby":`favorites-button-${a}`};return v.jsx(ii,Object.assign({variant:"plain",className:t,type:"button","aria-label":i?"Starred":"Not starred",onClick:n,isFavorite:!0,isFavorited:i},s,r))};Ro.displayName="FavoritesCell";const To=(e,{rowIndex:t,columnIndex:n,rowData:i,column:a,property:o})=>{const{extraParams:{onFavorite:r}}=a,s={rowIndex:t,columnIndex:n,column:a,property:o};if(i&&i.hasOwnProperty("parent")&&!i.fullWidth)return{component:"td",isVisible:!0};const l=i.favoritesProps||{};return{className:g(Mi.tableFavorite,i&&i.favorited&&Mi.modifiers.favorited),isVisible:!i||!i.fullWidth,children:v.jsx(Ro,Object.assign({rowIndex:t,onFavorite:function(e){r&&r(e,i&&!i.favorited,t,i,s)},isFavorited:i&&i.favorited},l))}},Po=z({name:"EllipsisHIcon",icon:{xOffset:0,yOffset:0,width:512,height:512,svgPathData:"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"},rhUiIcon:null}),Do=(e,t,n)=>(i,{rowIndex:a,rowData:o})=>{const{isExpanded:r,isDetailsExpanded:s,"aria-level":l,"aria-setsize":c,toggleAriaLabel:d,checkAriaLabel:p,showDetailsAriaLabel:u,isChecked:f,checkboxId:m,icon:h}=o.props,b=i.title||i,x=v.jsxs("div",{className:g(qa),children:[h&&v.jsx("span",{className:g(Wa),children:h},"tree-view-text-icon"),v.jsx("span",{className:Mi.tableText,children:b},"table-text")]},"tree-view-text");return{component:"th",className:Ga,children:void 0!==l?v.jsxs("div",{className:g(Ua),children:[c>0&&v.jsx("span",{className:g(Va),children:v.jsx(ii,{variant:"plain",onClick:t=>e&&e(t,a,b,o),className:g(r&&Mi.modifiers.expanded),"aria-expanded":r,"aria-label":d||`${r?"Collapse":"Expand"} row ${a}`,icon:v.jsx("div",{className:g(za),children:v.jsx(Ai,{})})})},"table-toggle"),!!t&&v.jsx("span",{className:g(Ha),children:v.jsx("label",{htmlFor:m||`checkbox_${a}`,children:v.jsx(Bn,{id:m||`checkbox_${a}`,"aria-label":p||`Row ${a} checkbox`,isChecked:f,onChange:(e,n)=>((e,n)=>{t(n,e,a,b,o)})(n,e)})})},"table-check"),x,!!n&&v.jsx("span",{className:g($a),children:v.jsx(ii,{variant:"plain","aria-expanded":s,"aria-label":u||"Show row details",onClick:e=>n&&n(e,a,b,o),icon:v.jsx("span",{className:`${Mi.table}__details-toggle-icon`,children:v.jsx(Po,{})})})},"view-details-toggle")]}):x}},Lo=()=>({component:"td"}),Ao=()=>({scope:"col"}),Mo=e=>Object.assign({},e?{}:{scope:""}),Fo=(e,{rowData:t})=>({parentId:t.parent}),Bo=(e,{property:t,rowData:n})=>Object.assign({},n[t]&&n[t].props),Ho=e=>e&&e.hasOwnProperty("title")?e.title:e,Vo=({transforms:e,formatters:t,columnTransforms:n,header:i},a)=>Object.assign(Object.assign({},i),{label:a,transforms:[Ao,Mo,...e||[],...n||[],...i&&i.hasOwnProperty("transforms")?i.transforms:[]],formatters:[...t||[],...i&&i.hasOwnProperty("formatters")?i.formatters:[]]}),zo=({cellFormatters:e,cellTransforms:t,columnTransforms:n,cell:i},a)=>Object.assign(Object.assign({},i),{transforms:[...t||[],...n||[],...i&&i.hasOwnProperty("transforms")?i.transforms:[],Bo],formatters:[Ho,...e||[],...i&&i.hasOwnProperty("formatters")?i.formatters:[]]}),$o=({onSelect:e,canSelectAll:t})=>[...e?[{title:"",transforms:t&&[no]||null,cellTransforms:[no]}]:[]],Wo=({onFavorite:e,onSort:t,sortBy:n,canSortFavorites:i,firstUserColumnIndex:a})=>[...e?[{title:"",transforms:t&&i?[Ao,fo({onSort:t,columnIndex:a-1,sortBy:n})]:[Lo],cellTransforms:[To]}]:[]],Uo=({actions:e,actionResolver:t,areActionsDisabled:n})=>[...t||e?[{title:"",transforms:[Lo],cellTransforms:[bo(e,t,n)]}]:[]],qo=(e,{onCollapse:t,canCollapseAll:n,firstUserColumnIndex:i})=>[...t?[{title:"",transforms:n&&[So]||null,cellTransforms:[So,Co(e.length,i)]}]:[]],Go=(e,t)=>Object.assign(Object.assign({},e.hasOwnProperty("title")?e:{title:e}),{cellTransforms:[...e.hasOwnProperty("cellTransforms")?e.cellTransforms:[],t]}),Zo=(e,t)=>t.onCollapse||t.onExpand?e.map((t=>{const n=Go(t,Fo);return Go(n,Co(e.length))})):e,Ko=({onRowEdit:e})=>[...e?[{title:"",cellTransforms:[No]}]:[]];var Xo;e.TableGridBreakpoint=void 0,(Xo=e.TableGridBreakpoint||(e.TableGridBreakpoint={})).none="",Xo.grid="grid",Xo.gridMd="grid-md",Xo.gridLg="grid-lg",Xo.gridXl="grid-xl",Xo.grid2xl="grid-2xl",e.TableVariant=void 0,(e.TableVariant||(e.TableVariant={})).compact="compact";const Yo=t.createContext({registerSelectableRow:()=>{},hasAnimations:!1,variant:void 0}),Jo=n=>{var i,a,{children:r,className:s,variant:l,borders:c=!0,isStickyHeader:d=!1,isStickyHeaderBase:p=!1,isStickyHeaderStuck:u=!1,isPlain:f=!1,isNoPlainOnGlass:m=!1,gridBreakPoint:h=e.TableGridBreakpoint.gridMd,"aria-label":b,role:x="grid",innerRef:y,ouiaId:w,ouiaSafe:O=!0,isTreeTable:j=!1,isNested:N=!1,isStriped:S=!1,isExpandable:C=!1,hasAnimations:_,hasNoInset:E=!1,nestedHeaderColumnSpans:I,selectableRowCaptionText:k}=n,R=o(n,["children","className","variant","borders","isStickyHeader","isStickyHeaderBase","isStickyHeaderStuck","isPlain","isNoPlainOnGlass","gridBreakPoint","aria-label","role","innerRef","ouiaId","ouiaSafe","isTreeTable","isNested","isStriped","isExpandable","hasAnimations","hasNoInset","nestedHeaderColumnSpans","selectableRowCaptionText"]);const T=F(_),P=t.useRef(null),D=y||P,[L,A]=t.useState(!1),[M,B]=t.useState();t.useEffect((()=>{if(document.addEventListener("keydown",W),D&&D.current&&D.current.classList.contains("pf-m-tree-view")){const t=D.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",W)}}),[D,D.current]),t.useEffect((()=>{B(k?v.jsxs("caption",{children:[k,v.jsx("div",{className:"pf-v6-screen-reader",children:"This table has selectable rows. It can be navigated by row using tab, and each row can be selected using space or enter."})]}):v.jsx("caption",{className:"pf-v6-screen-reader",children:"This table has selectable rows. It can be navigated by row using tab, and each row can be selected using space or enter."}))}),[k]);const H=Fe("Table",w,O),V=null===(i=Fa)||void 0===i?void 0:i[xo(h||"").replace(/-?2xl/,"_2xl")],z=`treeView${h.charAt(0).toUpperCase()+h.slice(1)}`,$=null===(a=Ba)||void 0===a?void 0:a[xo(z||"").replace(/-?2xl/,"_2xl")],W=e=>{if(N||!(D&&D.current&&D.current.classList.contains(Ba.treeView))||D&&D.current!==e.target.closest(`.${Mi.table}:not(.pf-m-nested)`))return;const t=document.activeElement,n=e.key,i=Array.from(D.current.querySelectorAll("tbody tr")).filter((e=>!e.classList.contains("pf-m-disabled")&&!e.hidden));n!==G&&n!==K||(t.click(),e.preventDefault());mn(e,i,(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 v.jsx(Yo.Provider,{value:{registerSelectableRow:()=>{!L&&A(!0)},hasAnimations:T,variant:l},children:v.jsxs("table",Object.assign({"aria-label":b,role:x,className:g(s,Mi.table,j?$:V,Mi.modifiers[l],!c&&Mi.modifiers.noBorderRows,d&&Mi.modifiers.stickyHeader,p&&Mi.modifiers.stickyHeaderBase,u&&Mi.modifiers.stickyHeaderStuck,j&&Ba.treeView,S&&Mi.modifiers.striped,C&&Mi.modifiers.expandable,f&&Mi.modifiers.plain,m&&Mi.modifiers.noPlainOnGlass,E&&Ba.noInset,N&&"pf-m-nested",T&&Mi.modifiers.animateExpand),ref:D},j&&{role:"treegrid"},H,R,{children:[L&&M,r]}))})},Qo=t.forwardRef(((e,t)=>v.jsx(Jo,Object.assign({},e,{innerRef:t}))));Qo.displayName="Table";const er=e=>{var{children:n,className:i,isExpanded:a,isContentExpanded:r,isEditable:s,isHidden:l=!1,isClickable:c=!1,isRowSelected:d=!1,isStriped:p=!1,isBorderRow:u=!1,isControlRow:f=!1,innerRef:m,ouiaId:h,ouiaSafe:b=!0,resetOffset:x=!1,onRowClick:y,isSelectable:w,"aria-label":O}=e,j=o(e,["children","className","isExpanded","isContentExpanded","isEditable","isHidden","isClickable","isRowSelected","isStriped","isBorderRow","isControlRow","innerRef","ouiaId","ouiaSafe","resetOffset","onRowClick","isSelectable","aria-label"]);const N=Fe("TableRow",h,b),[S,C]=t.useState("");let _=null;y&&(_=e=>{"Enter"!==e.key&&" "!==e.key||(y(e),e.preventDefault())});const E=l||void 0!==a&&!a,{registerSelectableRow:I,hasAnimations:k}=t.useContext(Yo);t.useEffect((()=>{w&&!E?(C(""+(d?"Row selected":"")),I()):C(void 0)}),[d,w,I,E]);const R=O||S;return v.jsx(v.Fragment,{children:v.jsx("tr",Object.assign({className:g(Mi.tableTr,i,void 0!==a&&Mi.tableExpandableRow,(a||r)&&Mi.modifiers.expanded,s&&Zi.inlineEditable,c&&Mi.modifiers.clickable,d&&Mi.modifiers.selected,p&&Mi.modifiers.striped,u&&Mi.modifiers.borderRow,f&&Mi.tableControlRow,x&&Mi.modifiers.firstCellOffsetReset),hidden:E},c&&{tabIndex:0},{"aria-label":R,ref:m},k&&E&&{inert:""},y&&{onClick:y,onKeyDown:_},N,j,{children:n}))})},tr=t.forwardRef(((e,t)=>v.jsx(er,Object.assign({},e,{innerRef:t}))));tr.displayName="Tr";class nr extends t.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=He(this.handleScroll,100)),e.onResize&&(this.handleResize=He(this.handleResize,100))}componentDidMount(){this._unmounted=!1,We&&(this.props.onScroll&&window.addEventListener("scroll",this.handleScroll),this.props.onResize&&window.addEventListener("resize",this.handleResize))}componentWillUnmount(){this._unmounted=!0,We&&(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:i,isEditable:a,isClickable:r,isRowSelected:s},rowProps:l,trRef:c,className:d,ouiaId:p}=e,u=o(e,["onScroll","onResize","row","rowProps","trRef","className","ouiaId"]);return v.jsx(tr,Object.assign({},u,{ref:c,isExpanded:i,isEditable:a,className:d,ouiaId:p,isClickable:r,isRowSelected:s}))}}nr.displayName="RowWrapper",nr.defaultProps={className:"",row:{isOpen:void 0,isExpanded:void 0,isHeightAuto:void 0,isEditable:void 0},rowProps:null};const ir=e=>{var{className:t,rowProps:n,row:i}=e,a=o(e,["className","rowProps","row"]);const{"aria-level":r,"aria-posinset":s,"aria-setsize":l,isExpanded:c,isDetailsExpanded:d,isHidden:p}=i.props;return v.jsx(tr,Object.assign({"aria-level":r,"aria-posinset":s,"aria-setsize":l,"aria-expanded":!!c,isHidden:p,className:g(t,c&&Mi.modifiers.expanded,d&&Ba.treeViewDetailsExpanded)},a))};ir.displayName="TreeRowWrapper";const ar=e=>{var{children:t,className:n,noWrap:i=!1,innerRef:a,hasNestedHeader:r}=e,s=o(e,["children","className","noWrap","innerRef","hasNestedHeader"]);return v.jsx("thead",Object.assign({className:g(Mi.tableThead,n,i&&Mi.modifiers.nowrap,r&&Mi.modifiers.nestedColumnHeader),ref:a},s,{children:t}))},or=t.forwardRef(((e,t)=>v.jsx(ar,Object.assign({},e,{innerRef:t}))));or.displayName="Thead";const rr=e=>{var{children:t,className:n,isExpanded:i,innerRef:a,isEvenStriped:r=!1,isOddStriped:s=!1}=e,l=o(e,["children","className","isExpanded","innerRef","isEvenStriped","isOddStriped"]);return v.jsx("tbody",Object.assign({role:"rowgroup",className:g(Mi.tableTbody,n,i&&Mi.modifiers.expanded,s&&Mi.modifiers.striped,r&&Mi.modifiers.stripedEven),ref:a},l,{children:t}))},sr=t.forwardRef(((e,t)=>v.jsx(rr,Object.assign({},e,{innerRef:t}))));sr.displayName="Tbody";var lr={borderRight:"pf-m-border-right",borderLeft:"pf-m-border-left"},cr="pf-v6-c-scroll-inner-wrapper",dr="pf-v6-c-scroll-outer-wrapper",pr="pf-v6-c-table__sticky-cell",ur="pf-v6-u-screen-reader";var fr=function(){this.__data__=[],this.size=0};var mr=function(e,t){return e===t||e!=e&&t!=t},hr=mr;var br=function(e,t){for(var n=e.length;n--;)if(hr(e[n][0],t))return n;return-1},vr=br,gr=Array.prototype.splice;var xr=br;var yr=br;var wr=br;var Or=fr,jr=function(e){var t=this.__data__,n=vr(t,e);return!(n<0)&&(n==t.length-1?t.pop():gr.call(t,n,1),--this.size,!0)},Nr=function(e){var t=this.__data__,n=xr(t,e);return n<0?void 0:t[n][1]},Sr=function(e){return yr(this.__data__,e)>-1},Cr=function(e,t){var n=this.__data__,i=wr(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};function _r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}_r.prototype.clear=Or,_r.prototype.delete=jr,_r.prototype.get=Nr,_r.prototype.has=Sr,_r.prototype.set=Cr;var Er=_r,Ir=Er;var kr=function(){this.__data__=new Ir,this.size=0};var Rr=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var Tr=function(e){return this.__data__.get(e)};var Pr=function(e){return this.__data__.has(e)},Dr="object"==typeof r&&r&&r.Object===Object&&r,Lr=Dr,Ar="object"==typeof self&&self&&self.Object===Object&&self,Mr=Lr||Ar||Function("return this")(),Fr=Mr.Symbol,Br=Fr,Hr=Object.prototype,Vr=Hr.hasOwnProperty,zr=Hr.toString,$r=Br?Br.toStringTag:void 0;var Wr=function(e){var t=Vr.call(e,$r),n=e[$r];try{e[$r]=void 0;var i=!0}catch(e){}var a=zr.call(e);return i&&(t?e[$r]=n:delete e[$r]),a},Ur=Object.prototype.toString;var qr=Wr,Gr=function(e){return Ur.call(e)},Zr=Fr?Fr.toStringTag:void 0;var Kr=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Zr&&Zr in Object(e)?qr(e):Gr(e)};var Xr=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Yr=Kr,Jr=Xr;var Qr,es=function(e){if(!Jr(e))return!1;var t=Yr(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},ts=Mr["__core-js_shared__"],ns=(Qr=/[^.]+$/.exec(ts&&ts.keys&&ts.keys.IE_PROTO||""))?"Symbol(src)_1."+Qr:"";var is=function(e){return!!ns&&ns in e},as=Function.prototype.toString;var os=es,rs=is,ss=Xr,ls=function(e){if(null!=e){try{return as.call(e)}catch(e){}try{return e+""}catch(e){}}return""},cs=/^\[object .+?Constructor\]$/,ds=Function.prototype,ps=Object.prototype,us=ds.toString,fs=ps.hasOwnProperty,ms=RegExp("^"+us.call(fs).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var hs=function(e){return!(!ss(e)||rs(e))&&(os(e)?ms:cs).test(ls(e))},bs=function(e,t){return null==e?void 0:e[t]};var vs=function(e,t){var n=bs(e,t);return hs(n)?n:void 0},gs=vs(Mr,"Map"),xs=vs(Object,"create"),ys=xs;var ws=function(){this.__data__=ys?ys(null):{},this.size=0};var Os=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},js=xs,Ns=Object.prototype.hasOwnProperty;var Ss=function(e){var t=this.__data__;if(js){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Ns.call(t,e)?t[e]:void 0},Cs=xs,_s=Object.prototype.hasOwnProperty;var Es=xs;var Is=ws,ks=Os,Rs=Ss,Ts=function(e){var t=this.__data__;return Cs?void 0!==t[e]:_s.call(t,e)},Ps=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Es&&void 0===t?"__lodash_hash_undefined__":t,this};function Ds(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Ds.prototype.clear=Is,Ds.prototype.delete=ks,Ds.prototype.get=Rs,Ds.prototype.has=Ts,Ds.prototype.set=Ps;var Ls=Ds,As=Er,Ms=gs;var Fs=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Bs=function(e,t){var n=e.__data__;return Fs(t)?n["string"==typeof t?"string":"hash"]:n.map},Hs=Bs;var Vs=Bs;var zs=Bs;var $s=Bs;var Ws=function(){this.size=0,this.__data__={hash:new Ls,map:new(Ms||As),string:new Ls}},Us=function(e){var t=Hs(this,e).delete(e);return this.size-=t?1:0,t},qs=function(e){return Vs(this,e).get(e)},Gs=function(e){return zs(this,e).has(e)},Zs=function(e,t){var n=$s(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};function Ks(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Ks.prototype.clear=Ws,Ks.prototype.delete=Us,Ks.prototype.get=qs,Ks.prototype.has=Gs,Ks.prototype.set=Zs;var Xs=Er,Ys=gs,Js=Ks;var Qs=Er,el=kr,tl=Rr,nl=Tr,il=Pr,al=function(e,t){var n=this.__data__;if(n instanceof Xs){var i=n.__data__;if(!Ys||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Js(i)}return n.set(e,t),this.size=n.size,this};function ol(e){var t=this.__data__=new Qs(e);this.size=t.size}ol.prototype.clear=el,ol.prototype.delete=tl,ol.prototype.get=nl,ol.prototype.has=il,ol.prototype.set=al;var rl=ol,sl=vs,ll=function(){try{var e=sl(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),cl=ll;var dl=function(e,t,n){"__proto__"==t&&cl?cl(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},pl=dl,ul=mr;var fl=function(e,t,n){(void 0!==n&&!ul(e[t],n)||void 0===n&&!(t in e))&&pl(e,t,n)};var ml=function(e){return function(t,n,i){for(var a=-1,o=Object(t),r=i(t),s=r.length;s--;){var l=r[e?s:++a];if(!1===n(o[l],l,o))break}return t}}(),hl={exports:{}};!function(e,t){var n=Mr,i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,o=a&&a.exports===i?n.Buffer:void 0,r=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,i=r?r(n):new e.constructor(n);return e.copy(i),i}}(hl,hl.exports);var bl=hl.exports,vl=Mr.Uint8Array;var gl=function(e){var t=new e.constructor(e.byteLength);return new vl(t).set(new vl(e)),t};var xl=function(e,t){var n=t?gl(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var yl=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},wl=Xr,Ol=Object.create,jl=function(){function e(){}return function(t){if(!wl(t))return{};if(Ol)return Ol(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var Nl=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object),Sl=Object.prototype;var Cl=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Sl)},_l=jl,El=Nl,Il=Cl;var kl=function(e){return"function"!=typeof e.constructor||Il(e)?{}:_l(El(e))};var Rl=function(e){return null!=e&&"object"==typeof e},Tl=Kr,Pl=Rl;var Dl=function(e){return Pl(e)&&"[object Arguments]"==Tl(e)},Ll=Rl,Al=Object.prototype,Ml=Al.hasOwnProperty,Fl=Al.propertyIsEnumerable,Bl=Dl(function(){return arguments}())?Dl:function(e){return Ll(e)&&Ml.call(e,"callee")&&!Fl.call(e,"callee")},Hl=Bl,Vl=Array.isArray;var zl=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},$l=es,Wl=zl;var Ul=function(e){return null!=e&&Wl(e.length)&&!$l(e)},ql=Ul,Gl=Rl;var Zl=function(e){return Gl(e)&&ql(e)},Kl={exports:{}};var Xl=function(){return!1};!function(e,t){var n=Mr,i=Xl,a=t&&!t.nodeType&&t,o=a&&e&&!e.nodeType&&e,r=o&&o.exports===a?n.Buffer:void 0,s=(r?r.isBuffer:void 0)||i;e.exports=s}(Kl,Kl.exports);var Yl=Kl.exports,Jl=Kr,Ql=Nl,ec=Rl,tc=Function.prototype,nc=Object.prototype,ic=tc.toString,ac=nc.hasOwnProperty,oc=ic.call(Object);var rc=function(e){if(!ec(e)||"[object Object]"!=Jl(e))return!1;var t=Ql(e);if(null===t)return!0;var n=ac.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ic.call(n)==oc},sc=Kr,lc=zl,cc=Rl,dc={};dc["[object Float32Array]"]=dc["[object Float64Array]"]=dc["[object Int8Array]"]=dc["[object Int16Array]"]=dc["[object Int32Array]"]=dc["[object Uint8Array]"]=dc["[object Uint8ClampedArray]"]=dc["[object Uint16Array]"]=dc["[object Uint32Array]"]=!0,dc["[object Arguments]"]=dc["[object Array]"]=dc["[object ArrayBuffer]"]=dc["[object Boolean]"]=dc["[object DataView]"]=dc["[object Date]"]=dc["[object Error]"]=dc["[object Function]"]=dc["[object Map]"]=dc["[object Number]"]=dc["[object Object]"]=dc["[object RegExp]"]=dc["[object Set]"]=dc["[object String]"]=dc["[object WeakMap]"]=!1;var pc=function(e){return cc(e)&&lc(e.length)&&!!dc[sc(e)]};var uc=function(e){return function(t){return e(t)}},fc={exports:{}};!function(e,t){var n=Dr,i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,o=a&&a.exports===i&&n.process,r=function(){try{var e=a&&a.require&&a.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=r}(fc,fc.exports);var mc=fc.exports,hc=pc,bc=uc,vc=mc&&mc.isTypedArray,gc=vc?bc(vc):hc;var xc=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},yc=dl,wc=mr,Oc=Object.prototype.hasOwnProperty;var jc=function(e,t,n){var i=e[t];Oc.call(e,t)&&wc(i,n)&&(void 0!==n||t in e)||yc(e,t,n)},Nc=dl;var Sc=function(e,t,n,i){var a=!n;n||(n={});for(var o=-1,r=t.length;++o<r;){var s=t[o],l=i?i(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),a?Nc(n,s,l):jc(n,s,l)}return n};var Cc=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i},_c=/^(?:0|[1-9]\d*)$/;var Ec=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&_c.test(e))&&e>-1&&e%1==0&&e<t},Ic=Cc,kc=Hl,Rc=Vl,Tc=Yl,Pc=Ec,Dc=gc,Lc=Object.prototype.hasOwnProperty;var Ac=function(e,t){var n=Rc(e),i=!n&&kc(e),a=!n&&!i&&Tc(e),o=!n&&!i&&!a&&Dc(e),r=n||i||a||o,s=r?Ic(e.length,String):[],l=s.length;for(var c in e)!t&&!Lc.call(e,c)||r&&("length"==c||a&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Pc(c,l))||s.push(c);return s};var Mc=Xr,Fc=Cl,Bc=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},Hc=Object.prototype.hasOwnProperty;var Vc=Ac,zc=function(e){if(!Mc(e))return Bc(e);var t=Fc(e),n=[];for(var i in e)("constructor"!=i||!t&&Hc.call(e,i))&&n.push(i);return n},$c=Ul;var Wc=function(e){return $c(e)?Vc(e,!0):zc(e)},Uc=Sc,qc=Wc;var Gc=fl,Zc=bl,Kc=xl,Xc=yl,Yc=kl,Jc=Hl,Qc=Vl,ed=Zl,td=Yl,nd=es,id=Xr,ad=rc,od=gc,rd=xc,sd=function(e){return Uc(e,qc(e))};var ld=rl,cd=fl,dd=ml,pd=function(e,t,n,i,a,o,r){var s=rd(e,n),l=rd(t,n),c=r.get(l);if(c)Gc(e,n,c);else{var d=o?o(s,l,n+"",e,t,r):void 0,p=void 0===d;if(p){var u=Qc(l),f=!u&&td(l),m=!u&&!f&&od(l);d=l,u||f||m?Qc(s)?d=s:ed(s)?d=Xc(s):f?(p=!1,d=Zc(l,!0)):m?(p=!1,d=Kc(l,!0)):d=[]:ad(l)||Jc(l)?(d=s,Jc(s)?d=sd(s):id(s)&&!nd(s)||(d=Yc(l))):p=!1}p&&(r.set(l,d),a(d,l,i,o,r),r.delete(l)),Gc(e,n,d)}},ud=Xr,fd=Wc,md=xc;var hd=function e(t,n,i,a,o){t!==n&&dd(n,(function(r,s){if(o||(o=new ld),ud(r))pd(t,n,s,i,e,a,o);else{var l=a?a(md(t,s),r,s+"",t,n,o):void 0;void 0===l&&(l=r),cd(t,s,l)}}),fd)};var bd=function(e){return e};var vd=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)},gd=Math.max;var xd=function(e,t,n){return t=gd(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,o=gd(i.length-t,0),r=Array(o);++a<o;)r[a]=i[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=i[a];return s[t]=n(r),vd(e,this,s)}};var yd=function(e){return function(){return e}},wd=ll,Od=wd?function(e,t){return wd(e,"toString",{configurable:!0,enumerable:!1,value:yd(t),writable:!0})}:bd,jd=Date.now;var Nd=function(e){var t=0,n=0;return function(){var i=jd(),a=16-(i-n);if(n=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},Sd=Nd(Od),Cd=bd,_d=xd,Ed=Sd;var Id=function(e,t){return Ed(_d(e,t,Cd),e+"")},kd=mr,Rd=Ul,Td=Ec,Pd=Xr;var Dd=Id,Ld=function(e,t,n){if(!Pd(n))return!1;var i=typeof t;return!!("number"==i?Rd(n)&&Td(t,n.length):"string"==i&&t in n)&&kd(n[t],e)};var Ad=hd,Md=s(function(e){return Dd((function(t,n){var i=-1,a=n.length,o=a>1?n[a-1]:void 0,r=a>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(a--,o):void 0,r&&Ld(n[0],n[1],r)&&(o=a<3?void 0:o,a=1),t=Object(t);++i<a;){var s=n[i];s&&e(t,s,i,o)}return t}))}((function(e,t,n,i){Ad(e,t,n,i)})));function Fd(...e){const n=e[0],i=e.slice(1);return i.length?Md(Md({},n),...i,((e,n,i)=>"children"===i?e&&n?t.cloneElement(e,{children:n}):Object.assign(Object.assign({},n),e):"className"===i?g(e,n):void 0)):Md({},n)}const Bd="--pf-v6-c-table__sticky-cell--MinWidth",Hd="--pf-v6-c-table__sticky-cell--InsetInlineStart",Vd="--pf-v6-c-table__sticky-cell--InsetInlineEnd",zd=e=>{var n,{children:i,className:a,component:r="th",dataLabel:s,scope:l="col",textCenter:c=!1,sort:d=null,modifier:p,select:u=null,expand:f=null,tooltip:m="",tooltipProps:h,onMouseEnter:b=(()=>{}),width:x,visibility:y,innerRef:w,info:O,isStickyColumn:j=!1,hasRightBorder:N=!1,hasLeftBorder:S=!1,stickyMinWidth:C="120px",stickyLeftOffset:_,stickyRightOffset:E,isSubheader:I=!1,screenReaderText:k,"aria-label":R,additionalContent:T}=e,P=o(e,["children","className","component","dataLabel","scope","textCenter","sort","modifier","select","expand","tooltip","tooltipProps","onMouseEnter","width","visibility","innerRef","info","isStickyColumn","hasRightBorder","hasLeftBorder","stickyMinWidth","stickyLeftOffset","stickyRightOffset","isSubheader","screenReaderText","aria-label","additionalContent"]);const{variant:D}=t.useContext(Yo);i||k||R||console.warn("Th: Table headers must have an accessible name. If the Th is intended to be visually empty, pass in screenReaderText. If the Th contains only non-text, interactive content such as a checkbox or expand toggle, pass in an aria-label.");const[L,A]=t.useState(!1),[M,F]=t.useState(!1),B=w||t.createRef(),H=e=>{e.target.offsetWidth<e.target.scrollWidth?!L&&A(!0):L&&A(!1),b(e)};let V=null;d&&(V=d.isFavorites?fo({onSort:d.onSort,columnIndex:d.columnIndex,sortBy:d.sortBy,tooltip:m,tooltipProps:h,ariaLabel:d["aria-label"],favoriteButtonProps:d.favoriteButtonProps})():mo(i,{columnIndex:d.columnIndex,column:{extraParams:{sortBy:d.sortBy,onSort:null==d?void 0:d.onSort}},tooltip:m,tooltipProps:h}));const z=u?no(i,{rowData:{selected:u.isSelected,disableSelection:null==u?void 0:u.isDisabled,props:null==u?void 0:u.props},column:{extraParams:{onSelect:null==u?void 0:u.onSelect,selectVariant:"checkbox",allRowsSelected:u.isSelected,isHeaderSelectDisabled:!!u.isHeaderSelectDisabled,isIndeterminate:null==u?void 0:u.isIndeterminate}},tooltip:m}):null,$=f?So(i,{column:{extraParams:{onCollapse:null==f?void 0:f.onToggle,allRowsExpanded:!f.areAllExpanded,collapseAllAriaLabel:"",variant:D}}}):null,W=x?wo(x)():null,U=y?Io(...y.map((e=>Eo[e])))():null;let q=(null==V?void 0:V.children)||(null==z?void 0:z.children)||(null==$?void 0:$.children)||i,G=null;O&&(G=ko(O)(q),q=G.children);const Z=Fd(V,z,$,W,U,G),{children:K=null,isVisible:X=null,className:Y="",component:J=r}=Z,Q=o(Z,["children","isVisible","className","component"]);t.useEffect((()=>{F(B.current.offsetWidth<B.current.scrollWidth)}),[B]);const ee=v.jsxs(J,Object.assign({tabIndex:d||u||!M?-1:0,onFocus:null!==m?H:b,onBlur:()=>A(!1),"data-label":s,onMouseEnter:null!==m?H:b,scope:"th"===r?l:null,ref:B,"aria-label":R,className:g(Mi.tableTh,a,c&&Mi.modifiers.center,I&&Mi.tableSubhead,j&&pr,N&&lr.borderRight,S&&lr.borderLeft,p&&Mi.modifiers[p],(null===(n=null==d?void 0:d.favoriteButtonProps)||void 0===n?void 0:n.favorited)&&Mi.modifiers.favorited,Y)},Q,P,j&&{style:Object.assign({[Bd]:C||void 0,[Hd]:_||0,[Vd]:E||0},P.style)},{children:[q||k&&v.jsx("span",{className:ur,children:k}),T&&T]}));return null!==m&&(""!==m||"string"==typeof q)&&!(V||z)&&L?v.jsxs(v.Fragment,{children:[ee,v.jsx(mi,Object.assign({triggerRef:B,content:m||""===m&&i,isVisible:!0},h))]}):ee},$d=t.forwardRef(((e,t)=>v.jsx(zd,Object.assign({},e,{innerRef:t}))));$d.displayName="Th";const Wd=e=>{var{children:n,className:i,isActionCell:a=!1,hasAction:r=!1,component:s="td",dataLabel:l,textCenter:c=!1,modifier:d,select:p=null,actions:u=null,expand:f=null,treeRow:m=null,compoundExpand:h=null,noPadding:b,width:x,visibility:y,innerRef:w,favorites:O=null,draggableRow:j=null,tooltip:N="",onMouseEnter:S=(()=>{}),isStickyColumn:C=!1,hasRightBorder:_=!1,hasLeftBorder:E=!1,stickyMinWidth:I="120px",stickyLeftOffset:k,stickyRightOffset:R}=e,T=o(e,["children","className","isActionCell","hasAction","component","dataLabel","textCenter","modifier","select","actions","expand","treeRow","compoundExpand","noPadding","width","visibility","innerRef","favorites","draggableRow","tooltip","onMouseEnter","isStickyColumn","hasRightBorder","hasLeftBorder","stickyMinWidth","stickyLeftOffset","stickyRightOffset"]);const[P,D]=t.useState(!1),[L,A]=t.useState(!1),M=w||t.createRef(),F=e=>{e.target.offsetWidth<e.target.scrollWidth?!P&&D(!0):P&&D(!1),S(e)},B=p?no(n,{rowIndex:p.rowIndex,rowData:{selected:p.isSelected,disableSelection:null==p?void 0:p.isDisabled,props:null==p?void 0:p.props},column:{extraParams:{onSelect:null==p?void 0:p.onSelect,selectVariant:p.variant||"checkbox"}}}):null,H=O?To(0,{rowIndex:null==O?void 0:O.rowIndex,rowData:{favorited:O.isFavorited,favoritesProps:null==O?void 0:O.props},column:{extraParams:{onFavorite:null==O?void 0:O.onFavorite}}}):null,V=null!==j?((e,{rowData:t})=>{const{id:n}=t;return{className:"",children:v.jsx(Hi,{id:n})}})(0,{rowData:{id:j.id}}):null,z=u?bo(u.items,null,null):null,$=z?z(null,{rowIndex:null==u?void 0:u.rowIndex,rowData:{disableActions:null==u?void 0:u.isDisabled},column:{extraParams:{dropdownPosition:null==u?void 0:u.dropdownPosition,dropdownDirection:null==u?void 0:u.dropdownDirection,menuAppendTo:null==u?void 0:u.menuAppendTo,actionsToggle:null==u?void 0:u.actionsToggle}}}):null,{hasAnimations:W,variant:U}=t.useContext(Yo),q=null!==f?So(null,{rowIndex:f.rowIndex,columnIndex:null==f?void 0:f.columnIndex,rowData:{isOpen:f.isExpanded},column:{extraParams:{onCollapse:null==f?void 0:f.onToggle,expandId:null==f?void 0:f.expandId,variant:U}}}):null,G=null!==h?_o({title:n,props:{isOpen:h.isExpanded}},{rowIndex:null==h?void 0:h.rowIndex,columnIndex:null==h?void 0:h.columnIndex,column:{extraParams:{onExpand:(e,t,n,i,a,o)=>{W&&(()=>{var e,t;const n=null===(e=null==M?void 0:M.current)||void 0===e?void 0:e.closest(`.${Mi.tableTr}.${Mi.tableControlRow}`);if(!n.classList.contains(Mi.modifiers.expanded))return;(null===(t=null==M?void 0:M.current)||void 0===t?void 0:t.classList.contains(Mi.modifiers.expanded))?n.classList.remove(Mi.modifiers.noAnimateExpand):n.classList.add(Mi.modifiers.noAnimateExpand)})(),null==h||h.onToggle(e,t,n,i,a,o)},expandId:null==h?void 0:h.expandId}}}):null,Z=Fd(B,$,q,G,x?wo(x)():null,y?Io(...y.map((e=>Eo[e])))():null,H,null!==m?Do(m.onCollapse,m.onCheckChange,m.onToggleRowDetails)({title:n},{rowIndex:m.rowIndex,rowData:{props:m.props}}):null,V),{isVisible:K=null,children:X=null,className:Y="",component:J=s}=Z,Q=o(Z,["isVisible","children","className","component"]),ee=i&&i.includes(Ga)||Y&&Y.includes(Ga);t.useEffect((()=>{A(M.current.offsetWidth<M.current.scrollWidth)}),[M]);const te=v.jsx(J,Object.assign({tabIndex:!p&&L||"truncate"===d?0:-1},!ee&&{"data-label":l},{onFocus:null!==N?F:S,onBlur:()=>D(!1),onMouseEnter:null!==N?F:S,className:g(Mi.tableTd,i,a&&Mi.tableAction,r&&Mi.modifiers.action,c&&Mi.modifiers.center,b&&Mi.modifiers.noPadding,C&&pr,_&&lr.borderRight,E&&lr.borderLeft,Mi.modifiers[d],V&&Mi.tableDraggable,Y),ref:M},Q,T,C&&{style:Object.assign({[Bd]:I||void 0,[Hd]:k||0,[Vd]:R||0},T.style)},{children:X||n}));return null!==N&&(""!==N||"string"==typeof n)&&P?v.jsxs(v.Fragment,{children:[te,v.jsx(mi,{triggerRef:M,content:N||""===N&&n,isVisible:!0})]}):te},Ud=t.forwardRef(((e,t)=>v.jsx(Wd,Object.assign({},e,{innerRef:t}))));Ud.displayName="Td";const qd=e=>{var{children:t,className:n}=e,i=o(e,["children","className"]);return v.jsx("caption",Object.assign({className:g(Mi.tableCaption,n)},i,{children:t}))};qd.displayName="Caption";const Gd=e=>{var{children:t,className:n}=e,i=o(e,["children","className"]);return v.jsx("div",Object.assign({className:g(n,dr)},i,{children:t}))};Gd.displayName="OuterScrollContainer";const Zd=e=>{var{children:t,className:n,innerRef:i}=e,a=o(e,["children","className","innerRef"]);return v.jsx("div",Object.assign({ref:i,className:g(n,cr)},a,{children:t}))},Kd=t.forwardRef(((e,t)=>v.jsx(Zd,Object.assign({innerRef:t},e))));Kd.displayName="InnerScrollContainer",e.ActionsColumn=Li,e.Caption=qd,e.CollapseColumn=Fi,e.DraggableCell=Hi,e.EditableSelectInputCell=Xi,e.EditableTextCell=aa,e.ExpandableRowContent=oa,e.FavoritesCell=Ro,e.HeaderCellInfoWrapper=Aa,e.InnerScrollContainer=Kd,e.OuterScrollContainer=Gd,e.RowWrapper=nr,e.SelectColumn=to,e.SortColumn=uo,e.Table=Qo,e.TableContext=Yo,e.TableText=La,e.Tbody=sr,e.Td=Ud,e.Th=$d,e.Thead=or,e.Tr=tr,e.TreeRowWrapper=ir,e.Visibility=Eo,e.applyCellEdits=(e,t)=>(e.cells.forEach((e=>{delete e.props.errorText;const n=void 0!==e.props.value&&null!==e.props.value,i=void 0!==e.props.editableValue&&null!==e.props.editableValue;n&&!i&&(e.props.editableValue=e.props.value),e.props&&n&&i&&("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:Mi.modifiers.breakWord}),e.calculateColumns=(e,t)=>e&&[...qo(e,t),...$o(t),...Wo(t),...Zo(e,t),...Ko(t),...Uo(t)].map(((e,n)=>Object.assign({},((e,t,n,...i)=>{const a=e.hasOwnProperty("title")?e.title:e;let o=`column-${n}`;return e.hasOwnProperty("dataLabel")?o=e.dataLabel:"string"==typeof a&&(o=a),{property:"string"==typeof a&&a.toLowerCase().trim().replace(/\s/g,"-")||`column-${n}`,extraParams:t,data:e.data,header:Vo(e,a),cell:zo(e),props:Object.assign(Object.assign({"data-label":o,"data-key":n},e.hasOwnProperty("props")?e.props:{}),i)}})(e,t,n)))),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=yo,e.cellActions=bo,e.cellWidth=wo,e.classNames=Io,e.collapsible=So,e.compoundExpand=_o,e.defaultTitle=Ho,e.editable=No,e.emptyCol=Mo,e.emptyTD=Lo,e.expandable=(e,{rowData:t})=>t&&t.hasOwnProperty("parent")?v.jsx(oa,{children:e}):e,e.expandedRow=Co,e.favoritable=To,e.fitContent=()=>({className:Mi.modifiers.fitContent}),e.getErrorTextByValidator=vo,e.headerCol=(e="simple-node")=>(t,{rowIndex:n}={})=>{const i="object"==typeof t?t.title:t;return{component:"th",children:v.jsx("div",{id:`${e}${n}`,children:i})}},e.info=ko,e.isRowExpanded=(e,t)=>{if(void 0!==e.parent)return e.hasOwnProperty("compoundParent")?((e,t,n)=>{for(const i 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},e.mapOpenedRows=(e,t)=>e.reduce(((e,n,i)=>{if(n.hasOwnProperty("parent")){e.length>0&&e[e.length-1]&&(e[e.length-1].rows=[...e[e.length-1].rows,t[i]],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[i]]})];return e}),[]),e.mapProps=Bo,e.nowrap=()=>({className:Mi.modifiers.nowrap}),e.parentId=Fo,e.scopeColTransformer=Ao,e.selectable=no,e.sortable=mo,e.sortableFavorites=fo,e.textCenter=()=>({textCenter:!0}),e.toCamel=xo,e.treeRow=Do,e.truncate=()=>({className:Mi.modifiers.truncate}),e.validateCellEdits=(e,t,n,i="Validation requires unique name property for row cells")=>(e.isValid=!Object.keys(n).length,e.cells.forEach((a=>{delete a.props.errorText;const o=void 0!==a.props.value&&null!==a.props.value,r=void 0!==a.props.editableValue&&null!==a.props.editableValue;if(a.props&&o&&r&&"save"===t){const t=Object.keys(n).filter((e=>n[e].includes(a.props.name))).map((t=>vo(t,e.rowEditValidationRules)));t.length?(a.props.errorText=a.props.name?t.join(", "):i,void 0===a.props.name&&console.warn("Row edit validation reporting requires cell definitions to have a unique name property.")):(delete a.props.errorText,a.props.isValid=!0)}})),e),e.wrappable=()=>({className:Mi.modifiers.wrap})}));
|
|
10
|
+
function ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function xe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t);if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function we(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(n),!0).forEach((function(t){xe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Oe(e){return function(e){if(Array.isArray(e))return ge(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ge(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ge(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var je=function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n._setPausedState(!0)}var i=e.indexOf(t);-1===i||e.splice(i,1),e.push(t)},Ne=function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)},Se=function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)},Ce=function(e){return Se(e)&&!e.shiftKey},_e=function(e){return Se(e)&&e.shiftKey},Ee=function(e){return setTimeout(e,0)},Ie=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return"function"==typeof e?e.apply(void 0,n):e},ke=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},Re=[],Te=function(e,t){var n,i=(null==t?void 0:t.document)||document,o=(null==t?void 0:t.trapStack)||Re,a=we({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Ce,isKeyBackward:_e},t),r={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},s=function(e,t,n){return e&&void 0!==e[t]?e[t]:a[n||t]},l=function(e,t){var n="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return r.containerGroups.findIndex((function(t){var i=t.container,o=t.tabbableNodes;return i.contains(e)||(null==n?void 0:n.includes(i))||o.find((function(t){return t===e}))}))},c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.hasFallback,o=void 0!==n&&n,r=t.params,s=void 0===r?[]:r,l=a[e];if("function"==typeof l&&(l=l.apply(void 0,Oe(s))),!0===l&&(l=void 0),!l){if(void 0===l||!1===l)return l;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var c=l;if("string"==typeof l){try{c=i.querySelector(l)}catch(t){throw new Error("`".concat(e,'` appears to be an invalid selector; error="').concat(t.message,'"'))}if(!c&&!o)throw new Error("`".concat(e,"` as selector refers to no known node"))}return c},d=function(){var e=c("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!ve(e,a.tabbableOptions))if(l(i.activeElement)>=0)e=i.activeElement;else{var t=r.tabbableGroups[0];e=t&&t.firstTabbableNode||c("fallbackFocus")}else null===e&&(e=c("fallbackFocus"));if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},p=function(){if(r.containerGroups=r.containers.map((function(e){var t=function(e,t){var n;return n=(t=t||{}).getShadowRoot?ie([e],t.includeContainer,{filter:ue.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:fe}):ne(e,t.includeContainer,ue.bind(null,t)),me(n)}(e,a.tabbableOptions),n=function(e,t){return(t=t||{}).getShadowRoot?ie([e],t.includeContainer,{filter:pe.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):ne(e,t.includeContainer,pe.bind(null,t))}(e,a.tabbableOptions),i=t.length>0?t[0]:void 0,o=t.length>0?t[t.length-1]:void 0,r=n.find((function(e){return he(e)})),s=n.slice().reverse().find((function(e){return he(e)})),l=!!t.find((function(e){return ae(e)>0}));return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:l,firstTabbableNode:i,lastTabbableNode:o,firstDomTabbableNode:r,lastDomTabbableNode:s,nextTabbableNode:function(e){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=t.indexOf(e);return o<0?i?n.slice(n.indexOf(e)+1).find((function(e){return he(e)})):n.slice(0,n.indexOf(e)).reverse().find((function(e){return he(e)})):t[o+(i?1:-1)]}}})),r.tabbableGroups=r.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),r.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(r.containerGroups.find((function(e){return e.posTabIndexesFound}))&&r.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},u=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&null!==t.shadowRoot.activeElement?u(t.shadowRoot):t},f=function(e){!1!==e&&e!==u(document)&&(e&&e.focus?(e.focus({preventScroll:!!a.preventScroll}),r.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):f(d()))},m=function(e){var t=c("setReturnFocus",{params:[e]});return t||!1!==t&&e},h=function(e){var t=e.target,n=e.event,i=e.isBackward,o=void 0!==i&&i;t=t||ke(n),p();var s=null;if(r.tabbableGroups.length>0){var d=l(t,n),u=d>=0?r.containerGroups[d]:void 0;if(d<0)s=o?r.tabbableGroups[r.tabbableGroups.length-1].lastTabbableNode:r.tabbableGroups[0].firstTabbableNode;else if(o){var f=r.tabbableGroups.findIndex((function(e){var n=e.firstTabbableNode;return t===n}));if(f<0&&(u.container===t||ve(t,a.tabbableOptions)&&!he(t,a.tabbableOptions)&&!u.nextTabbableNode(t,!1))&&(f=d),f>=0){var m=0===f?r.tabbableGroups.length-1:f-1,h=r.tabbableGroups[m];s=ae(t)>=0?h.lastTabbableNode:h.lastDomTabbableNode}else Se(n)||(s=u.nextTabbableNode(t,!1))}else{var b=r.tabbableGroups.findIndex((function(e){var n=e.lastTabbableNode;return t===n}));if(b<0&&(u.container===t||ve(t,a.tabbableOptions)&&!he(t,a.tabbableOptions)&&!u.nextTabbableNode(t))&&(b=d),b>=0){var v=b===r.tabbableGroups.length-1?0:b+1,g=r.tabbableGroups[v];s=ae(t)>=0?g.firstTabbableNode:g.firstDomTabbableNode}else Se(n)||(s=u.nextTabbableNode(t))}}else s=c("fallbackFocus");return s},b=function(e){var t=ke(e);l(t,e)>=0||(Ie(a.clickOutsideDeactivates,e)?n.deactivate({returnFocus:a.returnFocusOnDeactivate}):Ie(a.allowOutsideClick,e)||e.preventDefault())},v=function(e){var t=ke(e),n=l(t,e)>=0;if(n||t instanceof Document)n&&(r.mostRecentlyFocusedNode=t);else{var i;e.stopImmediatePropagation();var o=!0;if(r.mostRecentlyFocusedNode)if(ae(r.mostRecentlyFocusedNode)>0){var s=l(r.mostRecentlyFocusedNode),c=r.containerGroups[s].tabbableNodes;if(c.length>0){var p=c.findIndex((function(e){return e===r.mostRecentlyFocusedNode}));p>=0&&(a.isKeyForward(r.recentNavEvent)?p+1<c.length&&(i=c[p+1],o=!1):p-1>=0&&(i=c[p-1],o=!1))}}else r.containerGroups.some((function(e){return e.tabbableNodes.some((function(e){return ae(e)>0}))}))||(o=!1);else o=!1;o&&(i=h({target:r.mostRecentlyFocusedNode,isBackward:a.isKeyBackward(r.recentNavEvent)})),f(i||(r.mostRecentlyFocusedNode||d()))}r.recentNavEvent=void 0},g=function(e){(a.isKeyForward(e)||a.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r.recentNavEvent=e;var n=h({event:e,isBackward:t});n&&(Se(e)&&e.preventDefault(),f(n))}(e,a.isKeyBackward(e))},x=function(e){var t;"Escape"!==(null==(t=e)?void 0:t.key)&&"Esc"!==(null==t?void 0:t.key)&&27!==(null==t?void 0:t.keyCode)||!1===Ie(a.escapeDeactivates,e)||(e.preventDefault(),n.deactivate())},y=function(e){var t=ke(e);l(t,e)>=0||Ie(a.clickOutsideDeactivates,e)||Ie(a.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},w=function(){if(r.active)return je(o,n),r.delayInitialFocusTimer=a.delayInitialFocus?Ee((function(){f(d())})):f(d()),i.addEventListener("focusin",v,!0),i.addEventListener("mousedown",b,{capture:!0,passive:!1}),i.addEventListener("touchstart",b,{capture:!0,passive:!1}),i.addEventListener("click",y,{capture:!0,passive:!1}),i.addEventListener("keydown",g,{capture:!0,passive:!1}),i.addEventListener("keydown",x),n},O=function(){if(r.active)return i.removeEventListener("focusin",v,!0),i.removeEventListener("mousedown",b,!0),i.removeEventListener("touchstart",b,!0),i.removeEventListener("click",y,!0),i.removeEventListener("keydown",g,!0),i.removeEventListener("keydown",x),n},j="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver((function(e){e.some((function(e){return Array.from(e.removedNodes).some((function(e){return e===r.mostRecentlyFocusedNode}))}))&&f(d())})):void 0,N=function(){j&&(j.disconnect(),r.active&&!r.paused&&r.containers.map((function(e){j.observe(e,{subtree:!0,childList:!0})})))};return n={get active(){return r.active},get paused(){return r.paused},activate:function(e){if(r.active)return this;var t=s(e,"onActivate"),n=s(e,"onPostActivate"),o=s(e,"checkCanFocusTrap");o||p(),r.active=!0,r.paused=!1,r.nodeFocusedBeforeActivation=u(i),null==t||t();var a=function(){o&&p(),w(),N(),null==n||n()};return o?(o(r.containers.concat()).then(a,a),this):(a(),this)},deactivate:function(e){if(!r.active)return this;var t=we({onDeactivate:a.onDeactivate,onPostDeactivate:a.onPostDeactivate,checkCanReturnFocus:a.checkCanReturnFocus},e);clearTimeout(r.delayInitialFocusTimer),r.delayInitialFocusTimer=void 0,O(),r.active=!1,r.paused=!1,N(),Ne(o,n);var i=s(t,"onDeactivate"),l=s(t,"onPostDeactivate"),c=s(t,"checkCanReturnFocus"),d=s(t,"returnFocus","returnFocusOnDeactivate");null==i||i();var p=function(){Ee((function(){d&&f(m(r.nodeFocusedBeforeActivation)),null==l||l()}))};return d&&c?(c(m(r.nodeFocusedBeforeActivation)).then(p,p),this):(p(),this)},pause:function(e){return r.active?(r.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return r.active?(r.manuallyPaused=!1,o[o.length-1]!==this?this:this._setPausedState(!1,e)):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return r.containers=t.map((function(e){return"string"==typeof e?i.querySelector(e):e})),r.active&&p(),N(),this}},Object.defineProperties(n,{_isManuallyPaused:{value:function(){return r.manuallyPaused}},_setPausedState:{value:function(e,t){if(r.paused===e)return this;if(r.paused=e,e){var n=s(t,"onPause"),i=s(t,"onPostPause");null==n||n(),O(),N(),null==i||i()}else{var o=s(t,"onUnpause"),a=s(t,"onPostUnpause");null==o||o(),p(),w(),N(),null==a||a()}return this}}}),n.updateContainerElements(e),n};const Pe=t.forwardRef((function(e,n){var{active:i=!0,paused:o=!1,focusTrapOptions:r={},preventScrollOnDeactivate:s=!1}=e,l=a(e,["active","paused","focusTrapOptions","preventScrollOnDeactivate"]);const c=t.useRef(null);t.useImperativeHandle(n,(()=>c.current));const d=t.useRef(null);t.useEffect((()=>{const e=Te(c.current,Object.assign(Object.assign({},r),{returnFocusOnDeactivate:!1}));return d.current=e,()=>{e.deactivate()}}),[]),t.useEffect((()=>{const e=d.current;i?null==e||e.activate():null==e||e.deactivate()}),[i]),t.useEffect((()=>{const e=d.current;o?null==e||e.pause():null==e||e.unpause()}),[o]);const p=t.useRef("undefined"!=typeof document?document.activeElement:null);return function(e){const n=t.useRef(e);n.current=e,t.useEffect((()=>()=>{n.current()}),[])}((()=>{!1!==r.returnFocusOnDeactivate&&p.current instanceof HTMLElement&&p.current.focus({preventScroll:s})})),v.jsx("div",Object.assign({ref:c},l))}));Pe.displayName="FocusTrap";const De="function"==typeof t.useId?t.useId:void 0;let Le=0;const Ae=De?function(e="pf-"){return`${e}${De()}`}:function(e="pf-"){const[n]=t.useState((()=>`${e}${++Le}`));return n};function Me(e,t,n=!0){return{"data-ouia-component-type":`PF6/${e}`,"data-ouia-safe":n,"data-ouia-component-id":t}}const Fe=(e,t,n=!0,i)=>({"data-ouia-component-type":`PF6/${e}`,"data-ouia-safe":n,"data-ouia-component-id":Be(e,t,i)}),Be=(e,t,n)=>{const i=Ae(`OUIA-Generated-${e}-${n?`${n}-`:""}`);return null!=t?t:i};function He(e,t){let n;return(...i)=>{clearTimeout(n),n=setTimeout((()=>e.apply(this,i)),t)}}const Ve=(e,t,n="",i,o)=>e?Object.entries(e||{}).map((([e,t])=>`${n}${t}${"default"!==e?`-on-${e}`:""}`)).map($e).map((e=>e.replace(/-?(\dxl)/gi,((e,t)=>`_${t}`)))).map((e=>t.modifiers[e])).filter(Boolean).join(" "):"",ze=e=>e.toUpperCase().replace("-","").replace("_",""),$e=e=>e.replace(/([-_][a-z])/gi,ze),We=!("undefined"==typeof window||!window.document||!window.document.createElement),Ue=(e,t)=>{const n=getComputedStyle(t),i=document.createElement("canvas").getContext("2d");return i.font=n.font||(()=>{let e="";const t={"50%":"ultra-condensed","62.5%":"extra-condensed","75%":"condensed","87.5%":"semi-condensed","100%":"normal","112.5%":"semi-expanded","125%":"expanded","150%":"extra-expanded","200%":"ultra-expanded"};let i;return i=n.fontStretch in t?t[n.fontStretch]:"normal",e=n.fontStyle+" "+n.fontVariant+" "+n.fontWeight+" "+i+" "+n.fontSize+"/"+n.lineHeight+" "+n.fontFamily,e})(),i.measureText(e).width},qe=(e,t)=>{const n=(e=>{const t=getComputedStyle(e);let n=e.clientWidth,i=e.clientHeight;return i-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),n-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),{height:i,width:n}})(e).width;let i=t;if(Ue(t,e)>n){for(;Ue(`...${i}`,e)>n;)i=i.substring(1);e.value?e.value=`...${i}`:e.innerText=`...${i}`}else e.value?e.value=t:e.innerText=t},Ge=e=>{e.forEach((e=>{e.current&&clearTimeout(e.current)}))};function Ze(e){const t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function Ke(e){if("[object Window]"!==e.toString()){const t=e.ownerDocument;return t?t.defaultView:window}return e}function Xe(e){const t=Ke(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ye(e){return e instanceof Ke(e).Element||e instanceof Element}function Je(e){return e instanceof Ke(e).HTMLElement||e instanceof HTMLElement}function Qe(e){return e?(e.nodeName||"").toLowerCase():null}function et(e){return((Ye(e)?e.ownerDocument:e.document)||window.document).documentElement}function tt(e){return Ze(et(e)).left+Xe(e).scrollLeft}function nt(e){return Ke(e).getComputedStyle(e)}function it(e){const{overflow:t,overflowX:n,overflowY:i}=nt(e);return/auto|scroll|overlay|hidden/.test(t+i+n)}function ot(e,t,n=!1){const i=et(t),o=Ze(e),a=Je(t);let r={scrollLeft:0,scrollTop:0},s={x:0,y:0};var l,c;return(a||!a&&!n)&&(("body"!==Qe(t)||it(i))&&(r=(l=t)!==Ke(l)&&Je(l)?{scrollLeft:(c=l).scrollLeft,scrollTop:c.scrollTop}:Xe(l)),Je(t)?(s=Ze(t),s.x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=tt(i))),{x:o.left+r.scrollLeft-s.x,y:o.top+r.scrollTop-s.y,width:o.width,height:o.height}}function at(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function rt(e){return"html"===Qe(e)?e:e.assignedSlot||e.parentNode||e.host||et(e)}function st(e){return["html","body","#document"].indexOf(Qe(e))>=0?e.ownerDocument.body:Je(e)&&it(e)?e:st(rt(e))}function lt(e,t=[]){const n=st(e),i="body"===Qe(n),o=Ke(n),a=i?[o].concat(o.visualViewport||[],it(n)?n:[]):n,r=t.concat(a);return i?r:r.concat(lt(rt(a)))}function ct(e){return["table","td","th"].indexOf(Qe(e))>=0}function dt(e){if(!Je(e)||"fixed"===nt(e).position)return null;const t=e.offsetParent;if(t){const e=et(t);if("body"===Qe(t)&&"static"===nt(t).position&&"static"!==nt(e).position)return e}return t}function pt(e){const t=Ke(e);let n=dt(e);for(;n&&ct(n)&&"static"===nt(n).position;)n=dt(n);return n&&"body"===Qe(n)&&"static"===nt(n).position?t:n||function(e){let t=rt(e);for(;Je(t)&&["html","body"].indexOf(Qe(t))<0;){const e=nt(t);if("none"!==e.transform||"none"!==e.perspective||e.willChange&&"auto"!==e.willChange)return t;t=t.parentNode}return null}(e)||t}const ut="top",ft="bottom",mt="right",ht="left",bt="auto",vt=[ut,ft,mt,ht],gt="start",xt="end",yt="clippingParents",wt="viewport",Ot="popper",jt="reference",Nt=vt.reduce(((e,t)=>e.concat([`${t}-${gt}`,`${t}-${xt}`])),[]),St=[...vt,bt].reduce(((e,t)=>e.concat([t,`${t}-${gt}`,`${t}-${xt}`])),[]),Ct=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function _t(e){const t=new Map,n=new Set,i=[];function o(e){n.add(e.name);[...e.requires||[],...e.requiresIfExists||[]].forEach((e=>{if(!n.has(e)){const n=t.get(e);n&&o(n)}})),i.push(e)}return e.forEach((e=>{t.set(e.name,e)})),e.forEach((e=>{n.has(e.name)||o(e)})),i}function Et(e){let t;return()=>(t||(t=new Promise((n=>{Promise.resolve().then((()=>{t=void 0,n(e())}))}))),t)}function It(e){return e.split("-")[0]}function kt(e,t){const n=Boolean(t.getRootNode&&t.getRootNode().host);if(e.contains(t))return!0;if(n){let n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Rt(e){return Object.assign(Object.assign({},e),{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Tt(e,t){return t===wt?Rt(function(e){const t=Ke(e),n=et(e),i=t.visualViewport;let o=n.clientWidth,a=n.clientHeight,r=0,s=0;return i&&(o=i.width,a=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(r=i.offsetLeft,s=i.offsetTop)),{width:o,height:a,x:r+tt(e),y:s}}(e)):Je(t)?function(e){const t=Ze(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Rt(function(e){const t=et(e),n=Xe(e),i=e.ownerDocument.body,o=Math.max(t.scrollWidth,t.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Math.max(t.scrollHeight,t.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);let r=-n.scrollLeft+tt(e);const s=-n.scrollTop;return"rtl"===nt(i||t).direction&&(r+=Math.max(t.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:r,y:s}}(et(e)))}function Pt(e,t,n){const i="clippingParents"===t?function(e){const t=lt(rt(e)),n=["absolute","fixed"].indexOf(nt(e).position)>=0&&Je(e)?pt(e):e;return Ye(n)?t.filter((e=>Ye(e)&&kt(e,n)&&"body"!==Qe(e))):[]}(e):[].concat(t),o=[...i,n],a=o[0],r=o.reduce(((t,n)=>{const i=Tt(e,n);return t.top=Math.max(i.top,t.top),t.right=Math.min(i.right,t.right),t.bottom=Math.min(i.bottom,t.bottom),t.left=Math.max(i.left,t.left),t}),Tt(e,a));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}function Dt(e){return e.split("-")[1]}function Lt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function At({reference:e,element:t,placement:n}){const i=n?It(n):null,o=n?Dt(n):null,a=e.x+e.width/2-t.width/2,r=e.y+e.height/2-t.height/2;let s;switch(i){case ut:s={x:a,y:e.y-t.height};break;case ft:s={x:a,y:e.y+e.height};break;case mt:s={x:e.x+e.width,y:r};break;case ht:s={x:e.x-t.width,y:r};break;default:s={x:e.x,y:e.y}}const l=i?Lt(i):null;if(null!=l){const n="y"===l?"height":"width";switch(o){case gt:s[l]=Math.floor(s[l])-Math.floor(e[n]/2-t[n]/2);break;case xt:s[l]=Math.floor(s[l])+Math.ceil(e[n]/2-t[n]/2)}}return s}function Mt(e){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),e)}function Ft(e,t){return t.reduce(((t,n)=>(t[n]=e,t)),{})}function Bt(e,t={}){const{placement:n=e.placement,boundary:i=yt,rootBoundary:o=wt,elementContext:a=Ot,altBoundary:r=!1,padding:s=0}=t,l=Mt("number"!=typeof s?s:Ft(s,vt)),c=a===Ot?jt:Ot,d=e.elements.reference,p=e.rects.popper,u=e.elements[r?c:a],f=Pt(Ye(u)?u:u.contextElement||et(e.elements.popper),i,o),m=Ze(d),h=At({reference:m,element:p,placement:n}),b=Rt(Object.assign(Object.assign({},p),h)),v=a===Ot?b:m,g={top:f.top-v.top+l.top,bottom:v.bottom-f.bottom+l.bottom,left:f.left-v.left+l.left,right:v.right-f.right+l.right},x=e.modifiersData.offset;if(a===Ot&&x){const e=x[n];Object.keys(g).forEach((t=>{const n=[mt,ft].indexOf(t)>=0?1:-1,i=[ut,ft].indexOf(t)>=0?"y":"x";g[t]+=e[i]*n}))}return g}const Ht={placement:"bottom",modifiers:[],strategy:"absolute"};function Vt(...e){return!e.some((e=>!(e&&"function"==typeof e.getBoundingClientRect)))}function zt(e={}){const{defaultModifiers:t=[],defaultOptions:n=Ht}=e;return function(e,i,o=n){let a={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},Ht),n),modifiersData:{},elements:{reference:e,popper:i},attributes:{},styles:{}},r=[],s=!1;const l={state:a,setOptions(o){c(),a.options=Object.assign(Object.assign(Object.assign({},n),a.options),o),a.scrollParents={reference:Ye(e)?lt(e):e.contextElement?lt(e.contextElement):[],popper:lt(i)};const s=function(e){const t=_t(e);return Ct.reduce(((e,n)=>e.concat(t.filter((e=>e.phase===n)))),[])}(function(e){const t=e.reduce(((e,t)=>{const n=e[t.name];return e[t.name]=n?Object.assign(Object.assign(Object.assign({},n),t),{options:Object.assign(Object.assign({},n.options),t.options),data:Object.assign(Object.assign({},n.data),t.data)}):t,e}),{});return Object.keys(t).map((e=>t[e]))}([...t,...a.options.modifiers]));return a.orderedModifiers=s.filter((e=>e.enabled)),a.orderedModifiers.forEach((({name:e,options:t={},effect:n})=>{if("function"==typeof n){const i=n({state:a,name:e,instance:l,options:t}),o=()=>{};r.push(i||o)}})),l.update()},forceUpdate(){if(s)return;const{reference:e,popper:t}=a.elements;if(Vt(e,t)){a.rects={reference:ot(e,pt(t),"fixed"===a.options.strategy),popper:at(t)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((e=>a.modifiersData[e.name]=Object.assign({},e.data)));for(let e=0;e<a.orderedModifiers.length;e++){if(!0===a.reset){a.reset=!1,e=-1;continue}const{fn:t,options:n={},name:i}=a.orderedModifiers[e];"function"==typeof t&&(a=t({state:a,options:n,name:i,instance:l})||a)}}},update:Et((()=>new Promise((e=>{l.forceUpdate(),e(a)})))),destroy(){c(),s=!0}};if(!Vt(e,i))return l;function c(){r.forEach((e=>e())),r=[]}return l.setOptions(o).then((e=>{!s&&o.onFirstUpdate&&o.onFirstUpdate(e)})),l}}zt();const $t={passive:!0};const Wt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ut({popper:e,popperRect:t,placement:n,offsets:i,position:o,gpuAcceleration:a,adaptive:r}){let{x:s,y:l}=function({x:e,y:t}){const n=window.devicePixelRatio||1;return{x:Math.round(e*n)/n||0,y:Math.round(t*n)/n||0}}(i);const c=i.hasOwnProperty("x"),d=i.hasOwnProperty("y");let p=ht,u=ut;const f=window;if(r){let i=pt(e);i===Ke(e)&&(i=et(e)),n===ut&&(u=ft,l-=i.clientHeight-t.height,l*=a?1:-1),n===ht&&(p=mt,s-=i.clientWidth-t.width,s*=a?1:-1)}const m=Object.assign({position:o},r&&Wt);return a?Object.assign(Object.assign({},m),{[u]:d?"0":"",[p]:c?"0":"",transform:(f.devicePixelRatio||1)<2?`translate(${s}px, ${l}px)`:`translate3d(${s}px, ${l}px, 0)`}):Object.assign(Object.assign({},m),{[u]:d?`${l}px`:"",[p]:c?`${s}px`:"",transform:""})}var qt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function({state:e,options:t,name:n}){const{offset:i=[0,0]}=t,o=St.reduce(((t,n)=>(t[n]=function(e,t,n){const i=It(e),o=[ht,ut].indexOf(i)>=0?-1:1;let[a,r]="function"==typeof n?n(Object.assign(Object.assign({},t),{placement:e})):n;return a=a||0,r=(r||0)*o,[ht,mt].indexOf(i)>=0?{x:r,y:a}:{x:a,y:r}}(n,e.rects,i),t)),{}),{x:a,y:r}=o[e.placement];null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=a,e.modifiersData.popperOffsets.y+=r),e.modifiersData[n]=o}};const Gt={left:"right",right:"left",bottom:"top",top:"bottom"};function Zt(e){return e.replace(/left|right|bottom|top/g,(e=>Gt[e]))}const Kt={start:"end",end:"start"};function Xt(e){return e.replace(/start|end/g,(e=>Kt[e]))}function Yt(e,t={}){const{placement:n,boundary:i,rootBoundary:o,padding:a,flipVariations:r,allowedAutoPlacements:s=St}=t,l=Dt(n),c=l?r?Nt:Nt.filter((e=>Dt(e)===l)):vt;let d=c.filter((e=>s.indexOf(e)>=0));0===d.length&&(d=c);const p=d.reduce(((t,n)=>(t[n]=Bt(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[It(n)],t)),{});return Object.keys(p).sort(((e,t)=>p[e]-p[t]))}var Jt={name:"flip",enabled:!0,phase:"main",fn:function({state:e,options:t,name:n}){if(e.modifiersData[n]._skip)return;const{mainAxis:i=!0,altAxis:o=!0,fallbackPlacements:a,padding:r,boundary:s,rootBoundary:l,altBoundary:c,flipVariations:d=!0,allowedAutoPlacements:p}=t,u=e.options.placement,f=It(u),m=[u,...a||(f===u||!d?[Zt(u)]:function(e){if(It(e)===bt)return[];const t=Zt(e);return[Xt(e),t,Xt(t)]}(u))].reduce(((t,n)=>t.concat(It(n)===bt?Yt(e,{placement:n,boundary:s,rootBoundary:l,padding:r,flipVariations:d,allowedAutoPlacements:p}):n)),[]),h=e.rects.reference,b=e.rects.popper,v=new Map;let g=!0,x=m[0];for(let t=0;t<m.length;t++){const n=m[t],a=It(n),d=Dt(n)===gt,p=[ut,ft].indexOf(a)>=0,u=p?"width":"height",f=Bt(e,{placement:n,boundary:s,rootBoundary:l,altBoundary:c,padding:r});let y=p?d?mt:ht:d?ft:ut;h[u]>b[u]&&(y=Zt(y));const w=Zt(y),O=[];if(i&&O.push(f[a]<=0),o&&O.push(f[y]<=0,f[w]<=0),O.every((e=>e))){x=n,g=!1;break}v.set(n,O)}if(g){for(let e=d?3:1;e>0;e--){const t=m.find((t=>{const n=v.get(t);if(n)return n.slice(0,e).every((e=>e))}));if(t){x=t;break}}}e.placement!==x&&(e.modifiersData[n]._skip=!0,e.placement=x,e.reset=!0)},requiresIfExists:["offset"],data:{_skip:!1}};function Qt(e,t,n){return Math.max(e,Math.min(t,n))}var en={name:"preventOverflow",enabled:!0,phase:"main",fn:function({state:e,options:t,name:n}){const{mainAxis:i=!0,altAxis:o=!1,boundary:a,rootBoundary:r,altBoundary:s,padding:l,tether:c=!0,tetherOffset:d=0}=t,p=Bt(e,{boundary:a,rootBoundary:r,padding:l,altBoundary:s}),u=It(e.placement),f=Dt(e.placement),m=!f,h=Lt(u),b="x"===h?"y":"x",v=e.modifiersData.popperOffsets,g=e.rects.reference,x=e.rects.popper,y="function"==typeof d?d(Object.assign(Object.assign({},e.rects),{placement:e.placement})):d,w={x:0,y:0};if(v){if(i){const t="y"===h?ut:ht,n="y"===h?ft:mt,i="y"===h?"height":"width",o=v[h],a=v[h]+p[t],r=v[h]-p[n],s=c?-x[i]/2:0,l=f===gt?g[i]:x[i],d=f===gt?-x[i]:-g[i],u=e.elements.arrow,b=c&&u?at(u):{width:0,height:0},O=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},j=O[t],N=O[n],S=Qt(0,g[i],b[i]),C=m?g[i]/2-s-S-j-y:l-S-j-y,_=m?-g[i]/2+s+S+N+y:d+S+N+y,E=e.elements.arrow&&pt(e.elements.arrow),I=E?"y"===h?E.clientTop||0:E.clientLeft||0:0,k=e.modifiersData.offset?e.modifiersData.offset[e.placement][h]:0,R=v[h]+C-k-I,T=v[h]+_-k,P=Qt(c?Math.min(a,R):a,o,c?Math.max(r,T):r);v[h]=P,w[h]=P-o}if(o){const e="x"===h?ut:ht,t="x"===h?ft:mt,n=v[b],i=Qt(n+p[e],n,n-p[t]);v[b]=i,w[b]=i-n}e.modifiersData[n]=w}},requiresIfExists:["offset"]};var tn={name:"arrow",enabled:!0,phase:"main",fn:function({state:e,name:t}){const n=e.elements.arrow,i=e.modifiersData.popperOffsets,o=It(e.placement),a=Lt(o),r=[ht,mt].indexOf(o)>=0?"height":"width";if(!n||!i)return;const s=e.modifiersData[`${t}#persistent`].padding,l=at(n),c="y"===a?ut:ht,d="y"===a?ft:mt,p=e.rects.reference[r]+e.rects.reference[a]-i[a]-e.rects.popper[r],u=i[a]-e.rects.reference[a],f=pt(n),m=f?"y"===a?f.clientHeight||0:f.clientWidth||0:0,h=p/2-u/2,b=s[c],v=m-l[r]-s[d],g=m/2-l[r]/2+h,x=Qt(b,g,v),y=a;e.modifiersData[t]={[y]:x,centerOffset:x-g}},effect:function({state:e,options:t,name:n}){let{element:i="[data-popper-arrow]",padding:o=0}=t;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i),i))&&kt(e.elements.popper,i)&&(e.elements.arrow=i,e.modifiersData[`${n}#persistent`]={padding:Mt("number"!=typeof o?o:Ft(o,vt))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function nn(e,t,n={x:0,y:0}){return{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function on(e){return[ut,mt,ft,ht].some((t=>e[t]>=0))}const an=zt({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:()=>{},effect:function({state:e,instance:t,options:n}){const{scroll:i=!0,resize:o=!0}=n,a=Ke(e.elements.popper),r=[...e.scrollParents.reference,...e.scrollParents.popper];return i&&r.forEach((e=>{e.addEventListener("scroll",t.update,$t)})),o&&a.addEventListener("resize",t.update,$t),()=>{i&&r.forEach((e=>{e.removeEventListener("scroll",t.update,$t)})),o&&a.removeEventListener("resize",t.update,$t)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function({state:e,name:t}){e.modifiersData[t]=At({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function({state:e,options:t}){const{gpuAcceleration:n=!0,adaptive:i=!0}=t,o={placement:It(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign(Object.assign({},e.styles.popper),Ut(Object.assign(Object.assign({},o),{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:i})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign(Object.assign({},e.styles.arrow),Ut(Object.assign(Object.assign({},o),{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1})))),e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function({state:e}){Object.keys(e.elements).forEach((t=>{const n=e.styles[t]||{},i=e.attributes[t]||{},o=e.elements[t];Je(o)&&Qe(o)&&(Object.assign(o.style,n),Object.keys(i).forEach((e=>{const t=i[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function({state:e}){const t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),()=>{Object.keys(e.elements).forEach((n=>{const i=e.elements[n],o=e.attributes[n]||{},a=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:t[n]).reduce(((e,t)=>(e[t]="",e)),{});Je(i)&&Qe(i)&&(Object.assign(i.style,a),Object.keys(o).forEach((e=>{i.removeAttribute(e)})))}))}},requires:["computeStyles"]},qt,Jt,en,tn,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function({state:e,name:t}){const n=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,a=Bt(e,{elementContext:"reference"}),r=Bt(e,{altBoundary:!0}),s=nn(a,n),l=nn(r,i,o),c=on(s),d=on(l);e.modifiersData[t]={referenceClippingOffsets:s,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:d},e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]}),rn=We?t.useLayoutEffect:t.useEffect,sn=e=>e.reduce(((e,[t,n])=>(e[t]=n,e)),{}),ln=[];const cn=(e,n,i={})=>{const o=t.useRef(null),a={onFirstUpdate:i.onFirstUpdate,placement:i.placement||"bottom",strategy:i.strategy||"absolute",modifiers:i.modifiers||ln},[r,s]=t.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"}},attributes:{}}),l=t.useMemo((()=>({name:"updateState",enabled:!0,phase:"write",fn:({state:e})=>{const t=Object.keys(e.elements);s({styles:sn(t.map((t=>[t,e.styles[t]||{}]))),attributes:sn(t.map((t=>[t,e.attributes[t]])))})},requires:["computeStyles"]})),[]),c=t.useMemo((()=>{const e={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[...a.modifiers,l,{name:"applyStyles",enabled:!1}]};return t=o.current,n=e,JSON.stringify(t)===JSON.stringify(n)?o.current||e:(o.current=e,e);var t,n}),[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,l]),d=t.useRef(void 0);return rn((()=>{d&&d.current&&d.current.setOptions(c)}),[c]),rn((()=>{if(null==e||null==n)return;if(!function(e){if(e instanceof Element)return e.isConnected;const{contextElement:t}=e;return!(t instanceof Element)||t.isConnected}(e)||!n.isConnected)return;const t=(i.createPopper||an)(e,n,c);return d.current=t,()=>{t.destroy(),d.current=null}}),[e,n,i.createPopper]),{state:d.current?d.current.state:null,styles:r.styles,attributes:r.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}},dn={left:"right",right:"left",bottom:"top",top:"bottom","top-start":"bottom-end","top-end":"bottom-start","bottom-start":"top-end","bottom-end":"top-start","left-start":"right-end","left-end":"right-start","right-start":"left-end","right-end":"left-start"},pn=e=>`opacity ${e}ms cubic-bezier(.54, 1.5, .38, 1.11)`,un=({trigger:e,popper:n,direction:i="down",position:a="start",placement:r,width:s,minWidth:l="trigger",maxWidth:c,appendTo:d=(()=>document.body),zIndex:p=9999,isVisible:u=!0,positionModifiers:f,distance:m=0,offset:h,onMouseEnter:b,onMouseLeave:x,onFocus:y,onBlur:w,onDocumentClick:O,onTriggerClick:j,onTriggerEnter:N,onPopperClick:S,onPopperMouseEnter:C,onPopperMouseLeave:_,onDocumentKeyDown:E,enableFlip:I=!0,flipBehavior:k="flip",triggerRef:R,popperRef:T,animationDuration:P=0,entryDelay:D=0,exitDelay:L=0,onHidden:A=(()=>{}),onHide:M=(()=>{}),onMount:F=(()=>{}),onShow:B=(()=>{}),onShown:H=(()=>{}),preventOverflow:V=!1})=>{var z;const[$,W]=t.useState(null),[U,q]=t.useState(null),[G,Z]=t.useState(null),[K,X]=t.useState(null),[Y,J]=t.useState(!1),[Q,ee]=t.useState(0),[te,ne]=t.useState(u),ie=t.useRef(null),oe=t.useRef(null),ae=t.useRef(null),re=t.useRef(void 0),se=U||$,le=u||te,ce=((e,t="ltr")=>{if(!e)return t;const n=getComputedStyle(e).getPropertyValue("direction");return["ltr","rtl"].includes(n)?n:t})(null===(z=(null==R?void 0:R.current)||$)||void 0===z?void 0:z.parentElement),de=t.useMemo((()=>{const e={left:"left",right:"right",center:"center"};return{ltr:Object.assign({start:"left",end:"right"},e),rtl:Object.assign({start:"right",end:"left"},e)}[ce][a]}),[a,ce]),pe=t.useCallback((e=>O(e,se,G)),[le,$,U,G,O]);t.useEffect((()=>{J(!0),F()}),[]),t.useEffect((()=>()=>{Ge([ie,ae,oe])}),[]),t.useEffect((()=>{R&&(R.current?q(R.current):"function"==typeof R&&q(R()))}),[R,e]),t.useEffect((()=>{T&&(T.current?Z(T.current):"function"==typeof T&&Z(T()))}),[le,T]),t.useEffect((()=>{const e=new MutationObserver((()=>{ye&&ye()}));return G&&e.observe(G,{attributes:!0,childList:!0,subtree:!0}),()=>{e.disconnect()}}),[G]);const ue=(e,t,n,i=!1)=>{e&&t&&t.addEventListener(n,e,{capture:i})},fe=(e,t,n,i=!1)=>{e&&t&&t.removeEventListener(n,e,{capture:i})};t.useEffect((()=>(ue(b,se,"mouseenter"),ue(x,se,"mouseleave"),ue(y,se,"focus"),ue(w,se,"blur"),ue(j,se,"click"),ue(N,se,"keydown"),ue(S,G,"click"),ue(C,G,"mouseenter"),ue(_,G,"mouseleave"),O&&ue(pe,document,"click",!0),ue(E,document,"keydown",!0),()=>{fe(b,se,"mouseenter"),fe(x,se,"mouseleave"),fe(y,se,"focus"),fe(w,se,"blur"),fe(j,se,"click"),fe(N,se,"keydown"),fe(S,G,"click"),fe(C,G,"mouseenter"),fe(_,G,"mouseleave"),O&&fe(pe,document,"click",!0),fe(E,document,"keydown",!0)})),[$,G,b,x,y,w,j,N,S,C,_,O,E,U]);const me=()=>{if(r)return r;let e="up"===i?"top":"bottom";return"center"!==de&&(e=`${e}-${"right"===de?"end":"start"}`),e},he=t.useMemo(me,[i,de,r]),be=t.useMemo((()=>(e=>e.replace(/left|right|bottom|top|top-start|top-end|bottom-start|bottom-end|right-start|right-end|left-start|left-end/g,(e=>dn[e])))(me())),[i,de,r]),ve=t.useMemo((()=>({name:"widthMods",enabled:void 0!==s||void 0!==l||void 0!==c,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{const t=e.rects.reference.width;s&&(e.styles.popper.width="trigger"===s?`${t}px`:s),l&&(e.styles.popper.minWidth="trigger"===l?`${t}px`:l),c&&(e.styles.popper.maxWidth="trigger"===c?`${t}px`:c)},effect:({state:e})=>{const t=e.elements.reference.offsetWidth;return s&&(e.elements.popper.style.width="trigger"===s?`${t}px`:s),l&&(e.elements.popper.style.minWidth="trigger"===l?`${t}px`:l),c&&(e.elements.popper.style.maxWidth="trigger"===c?`${t}px`:c),()=>{}}})),[s,l,c]),{styles:ge,attributes:xe,update:ye,forceUpdate:we}=cn(se,G,{placement:he,modifiers:[{name:"offset",options:{offset:h||[0,m]}},{name:"preventOverflow",enabled:V},{name:"hide",enabled:!0},{name:"flip",enabled:he.startsWith("auto")||I,options:{fallbackPlacements:"flip"===k?[be]:k}},ve]});t.useEffect((()=>{var e,t,i,o,a,r,s;const l=(null===(o=null===(i=null===(t=null===(e=null==n?void 0:n.props)||void 0===e?void 0:e.children)||void 0===t?void 0:t[1])||void 0===i?void 0:i.props)||void 0===o?void 0:o.children)||(null===(s=null===(r=null===(a=null==n?void 0:n.props)||void 0===a?void 0:a.children)||void 0===r?void 0:r.props)||void 0===s?void 0:s.children);X(l),l&&K&&l!==K&&we&&we()}),[n]),t.useEffect((()=>{re.current<L&&(Ge([ie,ae]),ae.current=setTimeout((()=>{ie.current=setTimeout((()=>{ne(!1)}),P)}),L)),re.current=L}),[L]);t.useEffect((()=>{u?(B(),Ge([ie,ae]),oe.current=setTimeout((()=>{ne(!0),ee(1),H()}),D)):(M(),Ge([oe]),ae.current=setTimeout((()=>{ee(0),ie.current=setTimeout((()=>{ne(!1),Z(null),A()}),P)}),L))}),[u]);const Oe=Object.assign({className:g(n.props&&n.props.className,f&&(()=>{if(xe&&xe.popper&&xe.popper["data-popper-placement"]){const e=xe.popper["data-popper-placement"];return f[e]}return f.top})()),style:Object.assign(Object.assign(Object.assign({},n.props&&n.props.style||{}),ge.popper),{zIndex:p,opacity:Q,transition:pn(P)})},xe.popper),je=()=>{const e=t.cloneElement(n,Oe);return T?e:v.jsx("div",{style:{display:"contents"},ref:e=>{Z(null==e?void 0:e.firstElementChild)},children:e})};return v.jsxs(v.Fragment,{children:[!R&&e&&t.isValidElement(e)&&v.jsx("div",{style:{display:"contents"},ref:e=>{W(null==e?void 0:e.firstElementChild)},children:e}),R&&e&&t.isValidElement(e)&&e,Y&&le&&(()=>{if("inline"===d)return je();{const e="function"==typeof d?d():d;return o.createPortal(je(),e)}})()]})};un.displayName="Popper";const fn=({prefix:e,ouiaComponentType:t,children:n})=>{var i;const o=Ae(e),a=Ae(t?`OUIA-Generated-${t}-`:"pf-unused-");return null!==(i=n(o,t?a:void 0))&&void 0!==i?i:null};fn.displayName="SSRSafeIds";const mn=(e,t,n=(e=>document.activeElement.contains(e)),i=(e=>e),o=["A","BUTTON","INPUT"],a=!1,r=!1,s=!0,l=!0)=>{const c=document.activeElement,d=e.key;let p=null;if(!a&&["ArrowUp","ArrowDown"].includes(d)){e.preventDefault(),e.stopImmediatePropagation();let o=-1;t.forEach(((e,a)=>{if(n(e)){let e=0;for(;!p&&e<t.length&&-1*e<t.length;)"ArrowUp"===d?e--:e++,o=a+e,o>=t.length&&(o=0),o<0&&(o=t.length-1),p=i(t[o])}}))}if(!r&&["ArrowLeft","ArrowRight"].includes(d)){e.preventDefault(),e.stopImmediatePropagation();let i=-1;t.forEach(((a,r)=>{var s;if(n(a)){const n=t[r].querySelectorAll(o.join(","));if(!n.length||l){let e=c;for(;e;){const t=e.parentElement===a?e:e.parentElement;if(e="ArrowLeft"===d?t.previousElementSibling:t.nextElementSibling,e){if(o.includes(null==e?void 0:e.tagName)){p=e;break}if(o.includes(null===(s=e.children[0])||void 0===s?void 0:s.tagName)){p=e.children[0];break}}}}else n.forEach(((t,o)=>{if(e.target===t){i=o+("ArrowLeft"===d?-1:1),i>=n.length&&(i=0),i<0&&(i=n.length-1),p=n[i]}}))}}))}p&&(s&&(c.tabIndex=-1,p.tabIndex=0),p.focus())},hn=(e,t)=>{var n;if("ArrowDown"!==e.key&&"ArrowUp"!==e.key)return;e.preventDefault();const i=Array.from(null===(n=t.current)||void 0===n?void 0:n.querySelectorAll("li")).map((e=>e.querySelector('button:not(:disabled),input:not(:disabled),a:not([aria-disabled="true"])'))).filter((e=>null!==e));let o;o="ArrowDown"===e.key?i[0]:i[i.length-1],o&&o.focus()};class bn extends t.Component{constructor(){super(...arguments),this.keyHandler=e=>{const{isEventFromContainer:t}=this.props;if(t?!t(e):!this._isEventFromContainer(e))return;const{isActiveElement:n,getFocusableElement:i,noVerticalArrowHandling:o,noHorizontalArrowHandling:a,noEnterHandling:r,noSpaceHandling:s,updateTabIndex:l,validSiblingTags:c,additionalKeyHandler:d,createNavigableElements:p,onlyTraverseSiblings:u}=this.props;d&&d(e);const f=p();if(!f)return void console.warn("No navigable elements have been passed to the KeyboardHandler. Keyboard navigation provided by this component will be ignored.");const m=e.key;r||"Enter"===m&&(e.preventDefault(),e.stopImmediatePropagation(),document.activeElement.click()),s||" "===m&&(e.preventDefault(),e.stopImmediatePropagation(),document.activeElement.click()),mn(e,f,n,i,c,o,a,l,u)},this._isEventFromContainer=e=>{const{containerRef:t}=this.props;return t.current&&t.current.contains(e.target)}}componentDidMount(){We&&window.addEventListener("keydown",this.keyHandler)}componentWillUnmount(){We&&window.removeEventListener("keydown",this.keyHandler)}render(){return null}}bn.displayName="KeyboardHandler",bn.defaultProps={containerRef:null,createNavigableElements:()=>null,isActiveElement:e=>document.activeElement===e,getFocusableElement:e=>e,validSiblingTags:["BUTTON","A"],onlyTraverseSiblings:!0,updateTabIndex:!0,noHorizontalArrowHandling:!1,noVerticalArrowHandling:!1,noEnterHandling:!1,noSpaceHandling:!1};const vn=t.createContext({menuId:null,parentMenu:null,onActionClick:()=>null,onSelect:()=>null,activeItemId:null,selected:null,drilledInMenus:[],drilldownItemPath:[],onDrillIn:null,onDrillOut:null,onGetMenuHeight:()=>null,flyoutRef:null,setFlyoutRef:()=>null,disableHover:!1,role:"menu"}),gn=t.createContext({itemId:null,isDisabled:!1});class xn extends t.Component{constructor(e){super(e),this.menuRef=t.createRef(),this.activeMenu=null,this.state={transitionMoveTarget:null,flyoutRef:null,currentDrilldownMenuId:this.props.id},this.handleDrilldownTransition=e=>{const t=this.menuRef.current;if(t&&(t===e.target.closest(`.${y}`)||Array.from(t.getElementsByClassName(y)).includes(e.target.closest(`.${y}`))))if(this.state.transitionMoveTarget)this.state.transitionMoveTarget.focus(),this.setState({transitionMoveTarget:null});else{const e=t.querySelector("#"+this.props.activeMenu)||t||null,n=e.getElementsByTagName("UL");if(0===n.length)return;const i=Array.from(n[0].children);if(this.state.currentDrilldownMenuId&&e.id===this.state.currentDrilldownMenuId)return;this.setState({currentDrilldownMenuId:e.id});const o=i.filter((e=>!(e.classList.contains("pf-m-disabled")||e.classList.contains(x))))[0].firstChild;o.focus(),o.tabIndex=0}},this.handleExtraKeys=e=>{const t=this.props.containsDrilldown,n=document.activeElement;if(e.target.closest(`.${y}`)===this.activeMenu||e.target.classList.contains(A)||(this.activeMenu=e.target.closest(`.${y}`)),"INPUT"===e.target.tagName)return;const i=this.activeMenu,o=e.key,a=n.classList.contains(A);if(" "===o||"Enter"===o){if(e.preventDefault(),t&&!a){if(n.closest("li").classList.contains("pf-m-current-path")&&"LI"===i.parentElement.tagName)n.tabIndex=-1,i.parentElement.firstChild.tabIndex=0,this.setState({transitionMoveTarget:i.parentElement.firstChild});else if(n.nextElementSibling&&n.nextElementSibling.classList.contains(y)){const e=Array.from(n.nextElementSibling.getElementsByTagName("UL")[0].children).filter((e=>!(e.classList.contains("pf-m-disabled")||e.classList.contains(x))));n.tabIndex=-1,e[0].firstChild.tabIndex=0,this.setState({transitionMoveTarget:e[0].firstChild})}}document.activeElement.click()}},this.createNavigableElements=()=>this.props.containsDrilldown?this.activeMenu?Array.from(this.activeMenu.getElementsByTagName("UL")[0].children).filter((e=>!(e.classList.contains("pf-m-disabled")||e.classList.contains(x)))):[]:this.menuRef.current?Array.from(this.menuRef.current.getElementsByTagName("LI")).filter((e=>!(e.classList.contains("pf-m-disabled")||e.classList.contains(x)))):[],e.innerRef&&(this.menuRef=e.innerRef)}allowTabFirstItem(){const e=this.menuRef.current;if(e){const t=e.querySelector("ul button:not(:disabled), ul a:not(:disabled)");t&&(t.tabIndex=0)}}componentDidMount(){We&&this.props.containsDrilldown&&this.props.isRootMenu&&window.addEventListener("transitionend",this.handleDrilldownTransition),this.allowTabFirstItem()}componentWillUnmount(){We&&this.props.containsDrilldown&&this.props.isRootMenu&&window.removeEventListener("transitionend",this.handleDrilldownTransition)}componentDidUpdate(e){e.children!==this.props.children&&this.allowTabFirstItem()}render(){const e=this.props,{id:t,children:n,className:i,onSelect:o,selected:r=null,onActionClick:s,ouiaId:l,ouiaSafe:c,containsFlyout:d,containsDrilldown:p,isMenuDrilledIn:u,isPlain:f,isScrollable:m,drilldownItemPath:h,drilledInMenus:b,onDrillIn:x,onDrillOut:w,onGetMenuHeight:O,parentMenu:j=null,activeItemId:N=null,innerRef:S,isRootMenu:C,activeMenu:_,role:E,isNavFlyout:I}=e,k=a(e,["id","children","className","onSelect","selected","onActionClick","ouiaId","ouiaSafe","containsFlyout","containsDrilldown","isMenuDrilledIn","isPlain","isScrollable","drilldownItemPath","drilledInMenus","onDrillIn","onDrillOut","onGetMenuHeight","parentMenu","activeItemId","innerRef","isRootMenu","activeMenu","role","isNavFlyout"]),R=u||b&&b.includes(t)||!1;return v.jsx(fn,{prefix:"pf-",ouiaComponentType:yn.displayName,children:(e,a)=>{var u,S;return v.jsxs(vn.Provider,{value:{menuId:t,parentMenu:j||t,onSelect:o,onActionClick:s,activeItemId:N,selected:r,drilledInMenus:b,drilldownItemPath:h,onDrillIn:x,onDrillOut:w,onGetMenuHeight:O,flyoutRef:this.state.flyoutRef,setFlyoutRef:e=>this.setState({flyoutRef:e}),disableHover:null!==(S=null===(u=this.context)||void 0===u?void 0:u.disableHover)&&void 0!==S&&S,role:E},children:[C&&v.jsx(bn,{containerRef:this.menuRef||null,additionalKeyHandler:this.handleExtraKeys,createNavigableElements:this.createNavigableElements,isActiveElement:e=>document.activeElement.closest("li")===e||document.activeElement.parentElement===e||document.activeElement.closest(`.${D}`)===e||document.activeElement.closest("ol")&&document.activeElement.closest("ol").firstChild===e,getFocusableElement:e=>{var t,n;return"DIV"===(null==e?void 0:e.tagName)&&e.querySelector("input")||"LABEL"===(null===(t=e.firstChild)||void 0===t?void 0:t.tagName)&&e.querySelector("input")||"DIV"===(null===(n=e.firstChild)||void 0===n?void 0:n.tagName)&&e.querySelector("a, button, input")||e.firstChild},noHorizontalArrowHandling:document.activeElement&&(document.activeElement.classList.contains(A)||"INPUT"===document.activeElement.tagName),noEnterHandling:!0,noSpaceHandling:!0}),v.jsx("div",Object.assign({id:t,className:g(y,f&&L.plain,m&&L.scrollable,d&&L.flyout,I&&"pf-m-nav",p&&L.drilldown,R&&L.drilledIn,i),ref:this.menuRef},Me(yn.displayName,void 0!==l?l:a,c),k,{children:n}))]})}})}}xn.displayName="Menu",xn.contextType=vn,xn.defaultProps={ouiaSafe:!0,isRootMenu:!0,isPlain:!1,isScrollable:!1,role:"menu"};const yn=t.forwardRef(((e,t)=>v.jsx(xn,Object.assign({},e,{innerRef:t}))));yn.displayName="Menu";const wn="--pf-v6-c-menu__content--Height",On="--pf-v6-c-menu__content--MaxHeight",jn=t.forwardRef(((e,n)=>{const{getHeight:i,children:o,menuHeight:r,maxMenuHeight:s}=e,l=a(e,["getHeight","children","menuHeight","maxMenuHeight"]);t.createRef();return v.jsx(vn.Consumer,{children:({menuId:t,onGetMenuHeight:n})=>v.jsx("div",Object.assign({},l,{className:g(w,e.className),ref:e=>{((e,t,n)=>{if(e){let o=e.clientHeight,a=null,r=e.closest(`.${T}`);for(;null!==r&&1===r.nodeType;)r.classList.contains(T)&&(a=r),r=r.parentElement;if(a){const e=getComputedStyle(a);o+=parseFloat(e.getPropertyValue("padding-top").replace(/px/g,""))+parseFloat(e.getPropertyValue("padding-bottom").replace(/px/g,""))+parseFloat(getComputedStyle(a.parentElement).getPropertyValue("border-bottom-width").replace(/px/g,""))}n&&n(t,o),i&&i(o.toString())}})(e,t,n)},style:Object.assign(Object.assign({},r&&{[wn]:r}),s&&{[On]:s}),children:o}))})}));jn.displayName="MenuContent";const Nn="--pf-v6-c-menu--m-flyout__menu--top-offset",Sn="--pf-v6-c-menu--m-flyout__menu--m-left--right-offset",Cn="--pf-v6-c-menu--m-flyout__menu--left-offset",_n=z({name:"ExternalLinkAltIcon",icon:{xOffset:0,yOffset:0,width:512,height:512,svgPathData:"M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z"},rhUiIcon:{xOffset:0,yOffset:0,width:32,height:32,svgPathData:"M28.5 2h-25C2.673 2 2 2.673 2 3.5v25c0 .827.673 1.5 1.5 1.5h25c.827 0 1.5-.673 1.5-1.5v-25c0-.827-.673-1.5-1.5-1.5Zm-3.375 17a1.125 1.125 0 0 1-2.25 0v-8.284L11.796 21.795a1.122 1.122 0 0 1-1.592 0 1.127 1.127 0 0 1 0-1.591l11.08-11.08H13a1.125 1.125 0 0 1 0-2.25h10.5c.896 0 1.625.729 1.625 1.625v10.5Z"}}),En=z({name:"RhMicronsCaretLeftIcon",icon:{xOffset:0,yOffset:0,width:20,height:20,svgPathData:"m6.41 10 7.29-7.29.02-.02c.38-.4.37-1.03-.02-1.41-.4-.38-1.03-.37-1.41.02L4.64 8.95a1.49 1.49 0 0 0 0 2.12l7.65 7.65c.19.19.44.29.71.29.27 0 .52-.11.71-.29a.996.996 0 0 0 0-1.41l-7.29-7.29Z"},rhUiIcon:null}),In=z({name:"RhMicronsCaretRightIcon",icon:{xOffset:0,yOffset:0,width:20,height:20,svgPathData:"M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"},rhUiIcon:null}),kn=z({name:"CheckIcon",icon:{xOffset:0,yOffset:0,width:512,height:512,svgPathData:"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"},rhUiIcon:{xOffset:0,yOffset:0,width:32,height:32,svgPathData:"M11 26.792c-.384 0-.769-.146-1.061-.438l-8.646-8.647a.999.999 0 1 1 1.414-1.414L11 24.586 29.293 6.293a.999.999 0 1 1 1.414 1.414L12.061 26.354a1.497 1.497 0 0 1-1.061.438Z"}});var Rn="pf-v6-c-check",Tn="pf-v6-c-check__body",Pn="pf-v6-c-check__description",Dn="pf-v6-c-check__input",Ln="pf-v6-c-check__label",An="pf-v6-c-check__label-required",Mn={standalone:"pf-m-standalone",disabled:"pf-m-disabled"};const Fn=()=>{};class Bn extends t.Component{constructor(){super(...arguments),this.handleChange=e=>{this.props.onChange(e,e.currentTarget.checked)}}render(){const e=this.props,{"aria-label":t,"aria-describedby":n,className:i,inputClassName:o,onChange:r,isLabelWrapped:s,labelPosition:l="end",isValid:c,isDisabled:d,isRequired:p,isChecked:u,label:f,checked:m,defaultChecked:h,description:b,body:x,ouiaId:y,ouiaSafe:w,component:O}=e,j=a(e,["aria-label","aria-describedby","className","inputClassName","onChange","isLabelWrapped","labelPosition","isValid","isDisabled","isRequired","isChecked","label","checked","defaultChecked","description","body","ouiaId","ouiaSafe","component"]);j.id||console.error("Checkbox:","id is required to make input accessible");const N={};return([!0,!1].includes(m)||!0===u)&&(N.checked=m||u),r!==Fn&&(N.checked=u),[!1,!0].includes(h)&&(N.defaultChecked=h),v.jsx(fn,{prefix:"pf-checkbox-description-",ouiaComponentType:"Checkbox",children:(e,a)=>{let r;void 0!==n?r=""===n?void 0:n:b&&(r=e);const m=v.jsx("input",Object.assign({},j,{className:g(Dn,o),type:"checkbox",onChange:this.handleChange,"aria-invalid":!c,"aria-label":t,"aria-describedby":r,disabled:d,required:p,ref:e=>{e&&(e.indeterminate=null===u)}},N,Me(Bn.displayName,void 0!==y?y:a,w))),h=s&&!O||"label"===O,S=h?"span":"label",C=f?v.jsxs(S,{className:g(Ln,d&&Mn.disabled),htmlFor:h?void 0:j.id,children:[f,p&&v.jsx("span",{className:g(An),"aria-hidden":"true",children:"*"})]}):null,_=null!=O?O:h?"label":"div";return N.checked=null!==N.checked&&N.checked,v.jsxs(_,{className:g(Rn,!f&&Mn.standalone,i),htmlFor:h?j.id:void 0,children:["start"===l?v.jsxs(v.Fragment,{children:[C,m]}):v.jsxs(v.Fragment,{children:[m,C]}),b&&v.jsx("span",{id:e,className:g(Pn),children:b}),x&&v.jsx("span",{className:g(Tn),children:x})]})}})}}Bn.displayName="Checkbox",Bn.defaultProps={className:"",isLabelWrapped:!1,isValid:!0,isDisabled:!1,isRequired:!1,isChecked:!1,onChange:Fn,ouiaSafe:!0};var Hn={button:"pf-v6-c-button",buttonCount:"pf-v6-c-button__count",buttonHamburgerIcon:"pf-v6-c-button--hamburger-icon",buttonHamburgerIconArrow:"pf-v6-c-button--hamburger-icon--arrow",buttonHamburgerIconBottom:"pf-v6-c-button--hamburger-icon--bottom",buttonHamburgerIconMiddle:"pf-v6-c-button--hamburger-icon--middle",buttonHamburgerIconTop:"pf-v6-c-button--hamburger-icon--top",buttonIcon:"pf-v6-c-button__icon",buttonProgress:"pf-v6-c-button__progress",modifiers:{primary:"pf-m-primary",unread:"pf-m-unread",secondary:"pf-m-secondary",danger:"pf-m-danger",tertiary:"pf-m-tertiary",link:"pf-m-link",inline:"pf-m-inline",displayLg:"pf-m-display-lg",warning:"pf-m-warning",control:"pf-m-control",plain:"pf-m-plain",noPadding:"pf-m-no-padding",stateful:"pf-m-stateful",read:"pf-m-read",attention:"pf-m-attention",block:"pf-m-block",small:"pf-m-small",favorite:"pf-m-favorite",favorited:"pf-m-favorited",settings:"pf-m-settings",hamburger:"pf-m-hamburger",expand:"pf-m-expand",collapse:"pf-m-collapse",circle:"pf-m-circle",clicked:"pf-m-clicked",disabled:"pf-m-disabled",ariaDisabled:"pf-m-aria-disabled",progress:"pf-m-progress",inProgress:"pf-m-in-progress",notify:"pf-m-notify",docked:"pf-m-docked",textExpanded:"pf-m-text-expanded",start:"pf-m-start",end:"pf-m-end"}},Vn={modifiers:{inline:"pf-m-inline",xs:"pf-m-xs",sm:"pf-m-sm",md:"pf-m-md",lg:"pf-m-lg",xl:"pf-m-xl"},spinner:"pf-v6-c-spinner",spinnerPath:"pf-v6-c-spinner__path"};const zn="--pf-v6-c-spinner--diameter";var $n;!function(e){e.sm="sm",e.md="md",e.lg="lg",e.xl="xl"}($n||($n={}));const Wn=e=>{var{className:t="",size:n="xl","aria-valuetext":i="Loading...",diameter:o,isInline:r=!1,"aria-label":s,"aria-labelledBy":l}=e,c=a(e,["className","size","aria-valuetext","diameter","isInline","aria-label","aria-labelledBy"]);return v.jsx("svg",Object.assign({className:g(Vn.spinner,r?Vn.modifiers.inline:Vn.modifiers[n],t),role:"progressbar","aria-valuetext":i,viewBox:"0 0 100 100"},o&&{style:{[zn]:o}},s&&{"aria-label":s},l&&{"aria-labelledBy":l},!s&&!l&&{"aria-label":"Contents"},c,{children:v.jsx("circle",{className:Vn.spinnerPath,cx:"50",cy:"50",r:"45",fill:"none"})}))};Wn.displayName="Spinner";var Un="pf-v6-c-badge",qn={read:"pf-m-read",unread:"pf-m-unread",disabled:"pf-m-disabled"};const Gn=e=>{var{isRead:t=!1,isDisabled:n=!1,className:i="",children:o="",screenReaderText:r}=e,s=a(e,["isRead","isDisabled","className","children","screenReaderText"]);return v.jsxs("span",Object.assign({},s,{className:g(Un,t?qn.read:qn.unread,n&&qn.disabled,i),children:[o,r&&v.jsx("span",{className:"pf-v6-screen-reader",children:r})]}))};Gn.displayName="Badge";const Zn=z({name:"RhUiStarFillIcon",icon:{xOffset:0,yOffset:0,width:32,height:32,svgPathData:"m30.844 12.76-7.749 6.619 1.885 9.425a.998.998 0 0 1-.98 1.197c-.184 0-.368-.051-.53-.152L16 25.181l-7.47 4.668a.998.998 0 0 1-1.51-1.044l1.885-9.425-7.749-6.62a1 1 0 0 1 .557-1.756l10.245-.945 3.119-7.446a1 1 0 0 1 1.844 0l3.119 7.446 10.245.945a1 1 0 0 1 .557 1.756Z"},rhUiIcon:null}),Kn=z({name:"RhUiStarIcon",icon:{xOffset:0,yOffset:0,width:32,height:32,svgPathData:"M24 30c-.184 0-.368-.051-.53-.152L16 25.18l-7.47 4.668a.998.998 0 0 1-1.51-1.044l1.885-9.425-7.749-6.619a1 1 0 0 1 .557-1.756l10.245-.945 3.119-7.446a1 1 0 0 1 1.844 0l3.119 7.446 10.245.945a1 1 0 0 1 .557 1.756l-7.749 6.619 1.885 9.425a.998.998 0 0 1-.98 1.197Zm-8-7c.184 0 .368.051.53.152l6.035 3.771-1.545-7.728a1.002 1.002 0 0 1 .331-.957l6.394-5.461-8.485-.783a1 1 0 0 1-.831-.609L16 5.587l-2.429 5.798a.998.998 0 0 1-.831.609l-8.485.783 6.394 5.461c.275.235.402.602.331.957l-1.545 7.728 6.035-3.771A.993.993 0 0 1 16 23Z"},rhUiIcon:null}),Xn=z({name:"RhUiSettingsFillIcon",icon:{xOffset:0,yOffset:0,width:32,height:32,svgPathData:"M26.463 16.845a9.635 9.635 0 0 0-.002-1.688l3.41-1.974a.5.5 0 0 0 .235-.548 14.47 14.47 0 0 0-4.142-7.167.5.5 0 0 0-.594-.07l-3.404 1.97c-.469-.326-.96-.61-1.466-.85V2.58a.5.5 0 0 0-.356-.48 14.662 14.662 0 0 0-8.288 0 .5.5 0 0 0-.356.48v3.944c-.513.245-1.003.528-1.462.846L6.63 5.397a.5.5 0 0 0-.594.07 14.47 14.47 0 0 0-4.142 7.168.5.5 0 0 0 .236.548l3.407 1.972a9.635 9.635 0 0 0 .002 1.688l-3.41 1.974a.5.5 0 0 0-.235.548 14.47 14.47 0 0 0 4.142 7.167c.16.154.405.18.594.07l3.404-1.97c.469.326.96.61 1.466.85v3.938a.5.5 0 0 0 .356.48c1.333.398 2.728.6 4.144.6s2.81-.202 4.144-.6a.5.5 0 0 0 .356-.48v-3.944a10.449 10.449 0 0 0 1.462-.846l3.408 1.973a.5.5 0 0 0 .594-.07 14.47 14.47 0 0 0 4.142-7.168.5.5 0 0 0-.236-.548l-3.407-1.972ZM16 21c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5-2.243 5-5 5Z"},rhUiIcon:null}),Yn=v.jsxs("svg",{viewBox:"0 0 10 10",className:g(Hn.buttonHamburgerIcon,"pf-v6-svg"),width:"1em",height:"1em",children:[v.jsx("path",{className:g(Hn.buttonHamburgerIconTop),d:"M1,1 L9,1"}),v.jsx("path",{className:g(Hn.buttonHamburgerIconMiddle),d:"M1,5 L9,5"}),v.jsx("path",{className:g(Hn.buttonHamburgerIconArrow),d:"M1,5 L1,5 L1,5"}),v.jsx("path",{className:g(Hn.buttonHamburgerIconBottom),d:"M9,9 L1,9"})]});var Jn,Qn,ei,ti;!function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary",e.danger="danger",e.warning="warning",e.link="link",e.plain="plain",e.control="control",e.stateful="stateful"}(Jn||(Jn={})),function(e){e.button="button",e.submit="submit",e.reset="reset"}(Qn||(Qn={})),function(e){e.default="default",e.sm="sm",e.lg="lg"}(ei||(ei={})),function(e){e.read="read",e.unread="unread",e.attention="attention"}(ti||(ti={}));const ni=e=>{var{children:t=null,className:n="",component:i="button",isClicked:o=!1,isBlock:r=!1,isDisabled:s=!1,isAriaDisabled:l=!1,isLoading:c=null,isDanger:d=!1,isExpanded:p,isSettings:u,isHamburger:f,hamburgerVariant:m,isCircle:h,isDocked:b=!1,isTextExpanded:x=!1,spinnerAriaValueText:y,spinnerAriaLabelledBy:w,spinnerAriaLabel:O,size:j=ei.default,inoperableEvents:N=["onClick","onKeyPress"],isInline:S=!1,isFavorite:C=!1,isFavorited:_=!1,type:E=Qn.button,variant:I=Jn.primary,state:k=ti.unread,hasNoPadding:R=!1,iconPosition:T="start","aria-label":P=null,icon:D=null,role:L,ouiaId:A,ouiaSafe:M=!0,tabIndex:F=null,innerRef:B,countOptions:H}=e,V=a(e,["children","className","component","isClicked","isBlock","isDisabled","isAriaDisabled","isLoading","isDanger","isExpanded","isSettings","isHamburger","hamburgerVariant","isCircle","isDocked","isTextExpanded","spinnerAriaValueText","spinnerAriaLabelledBy","spinnerAriaLabel","size","inoperableEvents","isInline","isFavorite","isFavorited","type","variant","state","hasNoPadding","iconPosition","aria-label","icon","role","ouiaId","ouiaSafe","tabIndex","innerRef","countOptions"]);f&&![!0,!1].includes(p)&&console.error("Button: when the isHamburger property is passed in, you must also pass in a boolean value to the isExpanded property. It is expected that a hamburger button controls the expansion of other content."),!(u||f||C)||P||t||V["aria-labelledby"]||console.error("Button: you must provide either visible text content or an accessible name via the aria-label or aria-labelledby properties.");const z=Fe(ii.displayName,A,M,I),$=i,W="button"===$,U=S&&"span"===$,q="end"===T||"right"===T,G=u||f||C,Z=N.reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:e=>{e.preventDefault()}})),{}),K=(()=>{let e;return C&&(e=v.jsxs(v.Fragment,{children:[v.jsx("span",{className:g("pf-v6-c-button__icon-favorite"),children:v.jsx(Kn,{})}),v.jsx("span",{className:g("pf-v6-c-button__icon-favorited"),children:v.jsx(Zn,{})})]})),u&&(e=v.jsx(Xn,{})),f&&(e=Yn),D&&!G&&(e=D),e&&v.jsx("span",{className:g(Hn.buttonIcon,t&&Hn.modifiers[q?"end":"start"]),children:e})})(),X=t&&v.jsx("span",{className:g("pf-v6-c-button__text"),children:t}),Y=l||!W&&s;return v.jsxs($,Object.assign({"aria-expanded":p},V,l?Z:null,Y&&{"aria-disabled":!0},{"aria-label":P,className:g(Hn.button,Hn.modifiers[I],u&&Hn.modifiers.settings,f&&Hn.modifiers.hamburger,f&&m&&Hn.modifiers[m],r&&Hn.modifiers.block,s&&!W&&Hn.modifiers.disabled,l&&Hn.modifiers.ariaDisabled,o&&Hn.modifiers.clicked,S&&I===Jn.link&&Hn.modifiers.inline,C&&Hn.modifiers.favorite,C&&_&&Hn.modifiers.favorited,d&&(I===Jn.secondary||I===Jn.link)&&Hn.modifiers.danger,null!==c&&I!==Jn.plain&&Hn.modifiers.progress,c&&Hn.modifiers.inProgress,R&&I===Jn.plain&&Hn.modifiers.noPadding,I===Jn.stateful&&Hn.modifiers[k],j===ei.sm&&Hn.modifiers.small,j===ei.lg&&Hn.modifiers.displayLg,h&&Hn.modifiers.circle,b&&Hn.modifiers.docked,b&&x&&Hn.modifiers.textExpanded,n),disabled:W?s:null,tabIndex:null!==F?F:s?W?null:-1:l?null:U?0:void 0,type:W||U?E:null,role:U?"button":L,ref:B},z,{children:[c&&v.jsx("span",{className:g(Hn.buttonProgress),children:v.jsx(Wn,{size:$n.md,isInline:S,"aria-valuetext":y,"aria-label":O,"aria-labelledby":w})}),q?v.jsxs(v.Fragment,{children:[X,K]}):v.jsxs(v.Fragment,{children:[K,X]}),H&&v.jsx("span",{className:g(Hn.buttonCount,H.className),children:v.jsx(Gn,{isRead:H.isRead,isDisabled:s,children:H.count})})]}))},ii=t.forwardRef(((e,t)=>v.jsx(ni,Object.assign({innerRef:t},e))));ii.displayName="Button";const oi=e=>{var{className:t,icon:n,onClick:i,"aria-label":o,isFavorited:r=null,isDisabled:s,actionId:l,innerRef:c}=e,d=a(e,["className","icon","onClick","aria-label","isFavorited","isDisabled","actionId","innerRef"]);return v.jsx(vn.Consumer,{children:({onActionClick:e})=>v.jsx(gn.Consumer,{children:({itemId:a,isDisabled:p})=>v.jsx("div",Object.assign({className:g(j,null!==r&&"pf-m-favorite",r&&L.favorited,t)},d,{children:v.jsx(ii,{"aria-label":o,onClick:t=>{i&&i(t),e&&e(t,a,l)},ref:c,role:"menuitem",variant:"plain",isFavorite:null!==r,isFavorited:null!=r&&r,tabIndex:-1,isDisabled:s||p,icon:null===r?n:void 0})}))})})},ai=t.forwardRef(((e,t)=>v.jsx(oi,Object.assign({},e,{innerRef:t}))));ai.displayName="MenuItemAction";var ri={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"},si="pf-v6-c-tooltip",li="pf-v6-c-tooltip__arrow",ci="pf-v6-c-tooltip__content";const di=e=>{var{className:t,children:n,isLeftAligned:i}=e,o=a(e,["className","children","isLeftAligned"]);return v.jsx("div",Object.assign({className:g(ci,i&&ri.textAlignLeft,t)},o,{children:n}))};di.displayName="TooltipContent";const pi=e=>{var{className:t}=e,n=a(e,["className"]);return v.jsx("div",Object.assign({className:g(li,t)},n))};pi.displayName="TooltipArrow";const ui={value:"18.75rem"};var fi;!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"}(fi||(fi={}));const mi=e=>{var{content:n,position:i="top",trigger:o="mouseenter focus",isVisible:r=!1,isContentLeftAligned:s=!1,enableFlip:l=!0,className:c="",entryDelay:d=300,exitDelay:p=300,appendTo:u=(()=>document.body),zIndex:f=9999,minWidth:m,maxWidth:h=ui.value,distance:b=15,aria:x="describedby",flipBehavior:y=["top","right","bottom","left","top","right","bottom"],id:w,children:O,animationDuration:j=300,triggerRef:N,"aria-live":S=(N?"polite":"off"),onTooltipHidden:C=(()=>{})}=e,_=a(e,["content","position","trigger","isVisible","isContentLeftAligned","enableFlip","className","entryDelay","exitDelay","appendTo","zIndex","minWidth","maxWidth","distance","aria","flipBehavior","id","children","animationDuration","triggerRef","aria-live","onTooltipHidden"]);const E=Ae("pf-tooltip-"),I=null!=w?w:E,k=o.includes("mouseenter"),R=o.includes("focus"),T=o.includes("click"),P="manual"===o,[D,L]=t.useState(!1),A=t.createRef(),M=()=>"none"!==x?`aria-${x}`:null,F=e=>{if("none"===x||!N||O)return;const t="function"==typeof N?N():N&&"object"==typeof N&&"current"in N?N.current:N instanceof HTMLElement?N:null;t&&(e?(e=>{const t=M();if(!e||!t)return;const n=e.getAttribute(t);if(!n||!n.includes(I)){const i=n?`${n} ${I}`:I;e.setAttribute(t,i)}})(t):(e=>{const t=M();if(!e||!t)return;const n=e.getAttribute(t);if(!n)return;const i=n.split(/\s+/).filter((e=>e!==I)).join(" ");i?e.setAttribute(t,i):e.removeAttribute(t)})(t))};t.useEffect((()=>(F(D),()=>{F(!1)})),[D,x,N,O,I]);t.useEffect((()=>{r?B():H()}),[r]);const B=()=>{L(!0)},H=()=>{L(!1)},V={top:ri.top,bottom:ri.bottom,left:ri.left,right:ri.right,"top-start":ri.topLeft,"top-end":ri.topRight,"bottom-start":ri.bottomLeft,"bottom-end":ri.bottomRight,"left-start":ri.leftTop,"left-end":ri.leftBottom,"right-start":ri.rightTop,"right-end":ri.rightBottom},z=h!==ui.value,$=v.jsxs("div",Object.assign({"aria-live":S,className:g(si,c),role:"tooltip",id:I,style:{maxWidth:z?h:null},ref:A},_,{children:[v.jsx(pi,{}),v.jsx(di,{isLeftAligned:s,children:n})]}));return v.jsx(un,{trigger:"none"!==x&&D?(()=>{if(O)return"describedby"===x&&O.props&&!O.props["aria-describedby"]?t.cloneElement(O,{"aria-describedby":I}):"labelledby"===x&&O.props&&!O.props["aria-labelledby"]?t.cloneElement(O,{"aria-labelledby":I}):O})():O,triggerRef:N,popper:$,popperRef:A,minWidth:void 0!==m?m:"revert",appendTo:u,isVisible:D,positionModifiers:V,distance:b,placement:i,onMouseEnter:k&&B,onMouseLeave:k&&H,onPopperMouseEnter:k&&B,onPopperMouseLeave:k&&H,onFocus:R&&B,onBlur:R&&H,onDocumentClick:T&&((e,t)=>{D?H():e.target===t&&B()}),onDocumentKeyDown:P?null:e=>{P||e.key===Z&&D&&H()},onTriggerEnter:P?null:e=>{e.key===K&&(D?H():B())},enableFlip:l,zIndex:f,flipBehavior:y,animationDuration:j,entryDelay:d,exitDelay:p,onHidden:C})};mi.displayName="Tooltip";const hi=t.createContext({direction:"right"}),bi=e=>{var{children:n,className:i,itemId:o=null,to:r,hasCheckbox:s=!1,isActive:l=null,isFavorited:c=null,isLoadButton:d=!1,isLoading:p=!1,flyoutMenu:u,direction:f,description:m=null,onClick:h=(()=>{}),component:b="button",isDisabled:w=!1,isAriaDisabled:j=!1,isExternalLink:T=!1,isSelected:D=null,isFocused:A,isDanger:M=!1,icon:F,actions:B,onShowFlyout:H,drilldownMenu:V,isOnPath:z,innerRef:$,id:W,"aria-label":U,tooltipProps:q,rel:G,target:Z,download:K}=e,X=a(e,["children","className","itemId","to","hasCheckbox","isActive","isFavorited","isLoadButton","isLoading","flyoutMenu","direction","description","onClick","component","isDisabled","isAriaDisabled","isExternalLink","isSelected","isFocused","isDanger","icon","actions","onShowFlyout","drilldownMenu","isOnPath","innerRef","id","aria-label","tooltipProps","rel","target","download"]);const{menuId:Y,parentMenu:J,onSelect:Q,onActionClick:ee,activeItemId:te,selected:ne,drilldownItemPath:ie,onDrillIn:oe,onDrillOut:ae,flyoutRef:re,setFlyoutRef:se,disableHover:le,role:ce}=t.useContext(vn);let de=r?"a":b;s&&!r&&(de="label");const[pe,ue]=t.useState(null),fe=t.useContext(hi),[me,he]=t.useState(fe.direction),be=t.useRef(void 0),ve=t.useRef(void 0),ge=$||ve,xe=be===re,ye=Ae(),we=void 0!==u,Oe=e=>{!xe&&e?se(be):xe&&!e&&se(null),H&&e&&H()};rn((()=>{if(we&&be.current&&We){const e=be.current.lastElementChild;if(e&&e.classList.contains(y)){const t=be.current.getClientRects()[0],n=e.getClientRects()[0];if(t&&n){const i=t.x-n.width,o=window.innerWidth-t.x-t.width-n.width;let a=me;o<0&&"left"!==a?(he("left"),a="left"):i<0&&"right"!==a&&(he("right"),a="right");let r=0;i<0&&o<0&&(r="right"===a?-o:-i),"left"===a?(e.classList.add(L.left),e.style.setProperty(Sn,`-${r}px`)):e.style.setProperty(Cn,`-${r}px`);const s=window.innerHeight-t.y-n.height;window.innerHeight-n.height<0&&s<0||s<0&&e.style.setProperty(Nn,`${s}px`)}}}}),[xe,u]),t.useEffect((()=>{he(fe.direction)}),[fe]),t.useEffect((()=>{var e,t,n;if(pe)if(xe){const i=pe.nextElementSibling;null===(n=null===(t=Array.from((null===(e=null==i?void 0:i.getElementsByTagName("UL")[0])||void 0===e?void 0:e.children)||[]).filter((e=>!(e.classList.contains("pf-m-disabled")||e.classList.contains(x))))[0])||void 0===t?void 0:t.firstChild)||void 0===n||n.focus()}else pe.focus()}),[xe,pe]);const je=e=>{const t=e.key,n=e.target,i=e.type;" "!==t&&"Enter"!==t&&"ArrowRight"!==t&&"click"!==i||(e.stopPropagation(),e.preventDefault(),xe||(Oe(!0),ue(n))),"Escape"!==t&&"ArrowLeft"!==t||xe&&(e.stopPropagation(),Oe(!1))},Ne=(e,t)=>{j||(t&&t(e,o),h&&h(e))},Se=z&&z||ie&&ie.includes(o)||!1;let Ce;f&&(Ce="down"===f?e=>oe&&oe(e,Y,"function"==typeof V?V().props.id:V.props.id,o):e=>ae&&ae(e,J,o));let _e={};"a"===de?_e={href:r,"aria-disabled":!(!w&&!j)||null,disabled:null,target:T?"_blank":Z,rel:G,download:K}:"button"===de&&(_e={type:"button","aria-disabled":!!j||null}),z?_e["aria-expanded"]=!0:we&&(_e["aria-haspopup"]="menu",_e["aria-expanded"]=xe);const Ee=()=>null!==D?D:null!==ne&&null!==o&&(Array.isArray(ne)&&ne.includes(o)||o===ne);t.useEffect((()=>{if(A&&be.current){const e=be.current,t=e.parentElement;if(t){const n=e.offsetTop-t.offsetTop<t.scrollTop,i=e.offsetTop-t.offsetTop+e.clientHeight;(n||i)&&e.scrollIntoView({behavior:"auto",block:"nearest"})}}}),[A]);const Ie="listbox"===ce,ke=v.jsxs(v.Fragment,{children:[v.jsxs(de,Object.assign({id:W,tabIndex:-1,className:g(O,Ee()&&!s&&L.selected,i),"aria-current":null!==l?l?"page":null:null!==o&&null!==te?o===te:null},!s&&{disabled:w,"aria-label":U},!s&&!u&&{role:Ie?"option":"menuitem"},!s&&!u&&Ie&&{"aria-selected":Ee()},{ref:ge},!s&&{onClick:e=>{j?e.preventDefault():(Ne(e,Q),Ce&&Ce(e),u&&je(e))}},s&&{htmlFor:ye},_e,{children:[v.jsxs("span",{className:g(E),children:["up"===f&&v.jsx("span",{className:g(R),children:v.jsx(En,{})}),F&&v.jsx("span",{className:g(_),children:F}),s&&v.jsx("span",{className:g(N),children:v.jsx(Bn,{id:ye,component:"span",isChecked:D||!1,onChange:e=>Ne(e,Q),isDisabled:w,"aria-disabled":j})}),v.jsx("span",{className:g(k),children:n}),T&&v.jsx("span",{className:g(C),children:v.jsx(_n,{})}),(u||"down"===f)&&v.jsx("span",{className:g(R),children:v.jsx(In,{})}),Ee()&&v.jsx("span",{className:g(I),children:v.jsx(kn,{})})]}),m&&"up"!==f&&v.jsx("span",{className:g(S),children:v.jsx("span",{children:m})})]})),xe&&v.jsx(vn.Provider,{value:{disableHover:le},children:v.jsx(hi.Provider,{value:{direction:me},children:u})}),"function"==typeof V?V():V,v.jsxs(gn.Provider,{value:{itemId:o,isDisabled:w},children:[B,null!==c&&v.jsx(ai,{icon:"favorites",isFavorited:c,"aria-label":c?"starred":"not starred",onClick:e=>ee(e,o),tabIndex:-1,actionId:"fav"})]})]});return v.jsxs(v.Fragment,{children:[v.jsx("li",Object.assign({className:g(P,w&&L.disabled,j&&L.ariaDisabled,Se&&L.currentPath,d&&L.load,p&&L.loading,A&&"pf-m-focus",M&&L.danger,i),onMouseOver:()=>{j||le||(we?Oe(!0):se(null))}},u&&!j&&{onKeyDown:je},{ref:be,role:s?"menuitem":"none"},s&&{"aria-label":U},X,{children:ke})),q&&v.jsx(mi,Object.assign({},q,{triggerRef:ge}))]})},vi=t.forwardRef(((e,t)=>v.jsx(bi,Object.assign({},e,{innerRef:t}))));vi.displayName="MenuItem";const gi=e=>{var{children:n=null,className:i,isAriaMultiselectable:o=!1,"aria-label":r}=e,s=a(e,["children","className","isAriaMultiselectable","aria-label"]);const{role:l}=t.useContext(vn);return v.jsx("ul",Object.assign({role:l},"listbox"===l&&{"aria-multiselectable":o},{className:g(T,i),"aria-label":r},s,{children:n}))};gi.displayName="MenuList";const xi=e=>{var{children:n,className:i,onSelect:o,isOpen:r,toggle:s,shouldFocusToggleOnSelect:l=!1,onOpenChange:c,onToggleKeydown:d,isPlain:p,isScrollable:u,innerRef:f,ouiaId:m,ouiaSafe:h=!0,zIndex:b=9999,popperProps:x,onOpenChangeKeys:y=["Escape","Tab"],menuHeight:w,maxMenuHeight:O,shouldFocusFirstItemOnOpen:j=!1,shouldPreventScrollOnItemFocus:N=!0,focusTimeoutDelay:S=0,containerOuiaId:C,containerOuiaSafe:_=!0,containerComponent:E="span"}=e,I=a(e,["children","className","onSelect","isOpen","toggle","shouldFocusToggleOnSelect","onOpenChange","onToggleKeydown","isPlain","isScrollable","innerRef","ouiaId","ouiaSafe","zIndex","popperProps","onOpenChangeKeys","menuHeight","maxMenuHeight","shouldFocusFirstItemOnOpen","shouldPreventScrollOnItemFocus","focusTimeoutDelay","containerOuiaId","containerOuiaSafe","containerComponent"]);const k=t.useRef(void 0),R=t.useRef(void 0),T=Fe(yi.displayName,m,h),P=E,D=Fe("Dropdown container",C,_),L=f||k,A="function"==typeof s||"function"!=typeof s&&!s.toggleRef?R:null==s?void 0:s.toggleRef,M=t.useRef(r);t.useEffect((()=>{!1===M.current&&!0===r&&j&&setTimeout((()=>{var e;const t=null===(e=null==L?void 0:L.current)||void 0===e?void 0:e.querySelector('li button:not(:disabled),li input:not(:disabled),li a:not([aria-disabled="true"])');t&&t.focus({preventScroll:N})}),S),M.current=r}),[r]),t.useEffect((()=>{const e=e=>{var t,n,i,o;r&&c&&((null===(t=L.current)||void 0===t?void 0:t.contains(e.target))||(null===(n=A.current)||void 0===n?void 0:n.contains(e.target)))&&y.includes(e.key)&&(c(!1),null===(i=A.current)||void 0===i||i.focus()),(null===(o=A.current)||void 0===o?void 0:o.contains(e.target))&&(d?d(e):r&&hn(e,L))},t=e=>{var t,n;r&&c&&!(null===(t=null==A?void 0:A.current)||void 0===t?void 0:t.contains(e.target))&&r&&!(null===(n=L.current)||void 0===n?void 0:n.contains(e.target))&&c(!1)};return window.addEventListener("keydown",e),window.addEventListener("click",t),()=>{window.removeEventListener("keydown",e),window.removeEventListener("click",t)}}),[r,L,A,c,y,d,N,j,S]);const F=void 0!==O||void 0!==w||u,B=v.jsx(yn,Object.assign({className:g(i),ref:L,onSelect:(e,t)=>{var n;o&&o(e,t),l&&(null===(n=A.current)||void 0===n||n.focus())},isPlain:p,isScrollable:F},I,T,{children:v.jsx(jn,{menuHeight:w,maxMenuHeight:O,children:n})})),H=v.jsx(un,Object.assign({trigger:"function"==typeof s?s(A):s.toggleNode,triggerRef:A,popper:B,popperRef:L,isVisible:r,zIndex:b},x));return C?v.jsx(P,Object.assign({},D,{children:H})):H},yi=t.forwardRef(((e,t)=>v.jsx(xi,Object.assign({innerRef:t},e))));yi.displayName="Dropdown";const wi=e=>{var{children:t,className:n,description:i,isDisabled:o,isAriaDisabled:r,value:s,onClick:l,ouiaId:c,ouiaSafe:d,innerRef:p,tooltipProps:u}=e,f=a(e,["children","className","description","isDisabled","isAriaDisabled","value","onClick","ouiaId","ouiaSafe","innerRef","tooltipProps"]);const m=Fe(Oi.displayName,c,d);return v.jsx(vi,Object.assign({className:g(n),description:i,isDisabled:o,isAriaDisabled:r,itemId:s,onClick:l,tooltipProps:u,ref:p},m,f,{children:t}))},Oi=t.forwardRef(((e,t)=>v.jsx(wi,Object.assign({},e,{innerRef:t}))));Oi.displayName="DropdownItem";const ji=e=>{var{children:t,className:n}=e,i=a(e,["children","className"]);return v.jsx(gi,Object.assign({className:g(n)},i,{children:t}))};ji.displayName="DropdownList";var Ni,Si={divider:"pf-v6-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",horizontal:"pf-m-horizontal",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",horizontalOnSm:"pf-m-horizontal-on-sm",verticalOnSm:"pf-m-vertical-on-sm",insetNoneOnSm:"pf-m-inset-none-on-sm",insetXsOnSm:"pf-m-inset-xs-on-sm",insetSmOnSm:"pf-m-inset-sm-on-sm",insetMdOnSm:"pf-m-inset-md-on-sm",insetLgOnSm:"pf-m-inset-lg-on-sm",insetXlOnSm:"pf-m-inset-xl-on-sm",inset_2xlOnSm:"pf-m-inset-2xl-on-sm",inset_3xlOnSm:"pf-m-inset-3xl-on-sm",horizontalOnMd:"pf-m-horizontal-on-md",verticalOnMd:"pf-m-vertical-on-md",insetNoneOnMd:"pf-m-inset-none-on-md",insetXsOnMd:"pf-m-inset-xs-on-md",insetSmOnMd:"pf-m-inset-sm-on-md",insetMdOnMd:"pf-m-inset-md-on-md",insetLgOnMd:"pf-m-inset-lg-on-md",insetXlOnMd:"pf-m-inset-xl-on-md",inset_2xlOnMd:"pf-m-inset-2xl-on-md",inset_3xlOnMd:"pf-m-inset-3xl-on-md",horizontalOnLg:"pf-m-horizontal-on-lg",verticalOnLg:"pf-m-vertical-on-lg",insetNoneOnLg:"pf-m-inset-none-on-lg",insetXsOnLg:"pf-m-inset-xs-on-lg",insetSmOnLg:"pf-m-inset-sm-on-lg",insetMdOnLg:"pf-m-inset-md-on-lg",insetLgOnLg:"pf-m-inset-lg-on-lg",insetXlOnLg:"pf-m-inset-xl-on-lg",inset_2xlOnLg:"pf-m-inset-2xl-on-lg",inset_3xlOnLg:"pf-m-inset-3xl-on-lg",horizontalOnXl:"pf-m-horizontal-on-xl",verticalOnXl:"pf-m-vertical-on-xl",insetNoneOnXl:"pf-m-inset-none-on-xl",insetXsOnXl:"pf-m-inset-xs-on-xl",insetSmOnXl:"pf-m-inset-sm-on-xl",insetMdOnXl:"pf-m-inset-md-on-xl",insetLgOnXl:"pf-m-inset-lg-on-xl",insetXlOnXl:"pf-m-inset-xl-on-xl",inset_2xlOnXl:"pf-m-inset-2xl-on-xl",inset_3xlOnXl:"pf-m-inset-3xl-on-xl",horizontalOn_2xl:"pf-m-horizontal-on-2xl",verticalOn_2xl:"pf-m-vertical-on-2xl",insetNoneOn_2xl:"pf-m-inset-none-on-2xl",insetXsOn_2xl:"pf-m-inset-xs-on-2xl",insetSmOn_2xl:"pf-m-inset-sm-on-2xl",insetMdOn_2xl:"pf-m-inset-md-on-2xl",insetLgOn_2xl:"pf-m-inset-lg-on-2xl",insetXlOn_2xl:"pf-m-inset-xl-on-2xl",inset_2xlOn_2xl:"pf-m-inset-2xl-on-2xl",inset_3xlOn_2xl:"pf-m-inset-3xl-on-2xl"}};!function(e){e.hr="hr",e.li="li",e.div="div"}(Ni||(Ni={}));const Ci=e=>{var{className:t,component:n=Ni.hr,inset:i,orientation:o,role:r="separator"}=e,s=a(e,["className","component","inset","orientation","role"]);const l=n;return v.jsx(l,Object.assign({className:g(Si.divider,Ve(i,Si),Ve(o,Si),t)},"hr"!==n&&{role:r},s))};Ci.displayName="Divider";var _i={menuToggle:"pf-v6-c-menu-toggle",menuToggleButton:"pf-v6-c-menu-toggle__button",menuToggleControls:"pf-v6-c-menu-toggle__controls",menuToggleCount:"pf-v6-c-menu-toggle__count",menuToggleIcon:"pf-v6-c-menu-toggle__icon",menuToggleStatusIcon:"pf-v6-c-menu-toggle__status-icon",menuToggleText:"pf-v6-c-menu-toggle__text",menuToggleToggleIcon:"pf-v6-c-menu-toggle__toggle-icon",modifiers:{primary:"pf-m-primary",secondary:"pf-m-secondary",fullHeight:"pf-m-full-height",fullWidth:"pf-m-full-width",form:"pf-m-form",plain:"pf-m-plain",circle:"pf-m-circle",expanded:"pf-m-expanded",disabled:"pf-m-disabled",small:"pf-m-small",success:"pf-m-success",warning:"pf-m-warning",danger:"pf-m-danger",settings:"pf-m-settings",placeholder:"pf-m-placeholder",docked:"pf-m-docked",textExpanded:"pf-m-text-expanded",splitButton:"pf-m-split-button",standalone:"pf-m-standalone",typeahead:"pf-m-typeahead",text:"pf-m-text",avatar:"pf-m-avatar"}};const Ei=z({name:"RhMicronsCaretDownIcon",icon:{xOffset:0,yOffset:0,width:20,height:20,svgPathData:"M18.71 5.29a.996.996 0 0 0-1.41 0l-7.29 7.29-7.3-7.29a.987.987 0 0 0-1.41-.02.987.987 0 0 0-.02 1.41l.02.02 7.65 7.65c.29.29.68.44 1.06.44s.77-.15 1.06-.44l7.65-7.65a.996.996 0 0 0 0-1.41Z"},rhUiIcon:null});var Ii,ki;!function(e){e.success="success",e.danger="danger",e.warning="warning"}(Ii||(Ii={})),function(e){e.default="default",e.sm="sm"}(ki||(ki={}));class Ri extends t.Component{constructor(){super(...arguments),this.displayName="MenuToggleBase"}render(){const e=this.props,{children:n,className:i,icon:o,badge:r,isExpanded:s,isDisabled:l,isFullHeight:c,isFullWidth:d,isInForm:p,isPlaceholder:u,isCircle:f,isSettings:m,isDocked:h,isTextExpanded:b,splitButtonItems:x,variant:y,status:w,statusIcon:O,innerRef:j,onClick:N,"aria-label":S,ouiaId:C,ouiaSafe:_,size:E}=e,I=a(e,["children","className","icon","badge","isExpanded","isDisabled","isFullHeight","isFullWidth","isInForm","isPlaceholder","isCircle","isSettings","isDocked","isTextExpanded","splitButtonItems","variant","status","statusIcon","innerRef","onClick","aria-label","ouiaId","ouiaSafe","size"]),k="plain"===y,R="plainText"===y,T="typeahead"===y;return v.jsx(fn,{prefix:"pf-",ouiaComponentType:"MenuToggle"+(y?`-${y}`:""),children:(e,a)=>{const P=Me(Ti.displayName,null!=C?C:a,_);let D=O;if(!O)switch(w){case Ii.success:D=v.jsx($,{});break;case Ii.warning:D=v.jsx(U,{});break;case Ii.danger:D=v.jsx(W,{})}const L=v.jsxs("span",{className:g(_i.menuToggleControls),children:[void 0!==w&&v.jsx("span",{className:g(_i.menuToggleStatusIcon),children:D}),v.jsx("span",{className:g(_i.menuToggleToggleIcon),children:v.jsx(Ei,{})})]}),A=v.jsxs(v.Fragment,{children:[(o||m)&&v.jsx("span",{className:g(_i.menuToggleIcon),children:m?v.jsx(Xn,{}):o}),T?n:n&&v.jsx("span",{className:g(_i.menuToggleText),children:n}),t.isValidElement(r)&&v.jsx("span",{className:g(_i.menuToggleCount),children:r}),T?v.jsx("button",Object.assign({type:"button",className:g(_i.menuToggleButton),"aria-expanded":s,onClick:N,"aria-label":S||"Menu toggle",tabIndex:-1},P,{children:L})):!k&&L]}),M=g(_i.menuToggle,s&&_i.modifiers.expanded,"primary"===y&&_i.modifiers.primary,"secondary"===y&&_i.modifiers.secondary,w&&_i.modifiers[w],(k||R)&&_i.modifiers.plain,R&&_i.modifiers.text,c&&_i.modifiers.fullHeight,d&&_i.modifiers.fullWidth,p&&_i.modifiers.form,l&&_i.modifiers.disabled,u&&_i.modifiers.placeholder,m&&_i.modifiers.settings,h&&_i.modifiers.docked,h&&b&&_i.modifiers.textExpanded,E===ki.sm&&_i.modifiers.small,i),F=Object.assign(Object.assign({children:A},l&&{disabled:!0}),I);return T?v.jsx("div",Object.assign({ref:j,className:g(M,_i.modifiers.typeahead)},F)):x?v.jsxs("div",{ref:j,className:g(M,_i.modifiers.splitButton),children:[x,v.jsxs("button",Object.assign({className:g(_i.menuToggleButton,n&&_i.modifiers.text),type:"button","aria-expanded":s,"aria-label":S,disabled:l,onClick:N},I,P,{children:[n&&v.jsx("span",{className:g(_i.menuToggleText),children:n}),L]}))]}):v.jsx("button",Object.assign({className:g(M,f&&k&&_i.modifiers.circle),type:"button","aria-label":S,"aria-expanded":s,ref:j,disabled:l,onClick:N},F,P))}})}}Ri.defaultProps={className:"",isExpanded:!1,isDisabled:!1,isFullWidth:!1,isFullHeight:!1,isInForm:!1,isPlaceholder:!1,isCircle:!1,isDocked:!1,isTextExpanded:!1,size:"default",ouiaSafe:!0};const Ti=t.forwardRef(((e,t)=>v.jsx(Ri,Object.assign({innerRef:t},e))));Ti.displayName="MenuToggle";const Pi=z({name:"EllipsisVIcon",icon:{xOffset:0,yOffset:0,width:192,height:512,svgPathData:"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"},rhUiIcon:{xOffset:0,yOffset:0,width:32,height:32,svgPathData:"M16 9c2.206 0 4-1.794 4-4s-1.794-4-4-4-4 1.794-4 4 1.794 4 4 4Zm0-6c1.103 0 2 .897 2 2s-.897 2-2 2-2-.897-2-2 .897-2 2-2Zm0 9c-2.206 0-4 1.794-4 4s1.794 4 4 4 4-1.794 4-4-1.794-4-4-4Zm0 6c-1.103 0-2-.897-2-2s.897-2 2-2 2 .897 2 2-.897 2-2 2Zm0 5c-2.206 0-4 1.794-4 4s1.794 4 4 4 4-1.794 4-4-1.794-4-4-4Zm0 6c-1.103 0-2-.897-2-2s.897-2 2-2 2 .897 2 2-.897 2-2 2Z"}}),Di=e=>{var{items:n,isDisabled:i,rowData:o,extraData:r,actionsToggle:s,popperProps:l={position:"end",direction:"down"},innerRef:c,firstActionItemRef:d,isOnOpenChangeDisabled:p=!1}=e,u=a(e,["items","isDisabled","rowData","extraData","actionsToggle","popperProps","innerRef","firstActionItemRef","isOnOpenChangeDisabled"]);const[f,m]=t.useState(!1),h=()=>{m(!f)},b=(e,t)=>{t&&(e.preventDefault(),t(e,r&&r.rowIndex,o,r))};return v.jsxs(t.Fragment,{children:[n.filter((e=>e.isOutsideDropdown)).map(((e,n)=>{var{title:o,itemKey:r,onClick:s,isOutsideDropdown:l}=e,c=a(e,["title","itemKey","onClick","isOutsideDropdown"]);return"string"==typeof o?t.createElement(ii,Object.assign({onClick:e=>b(e,s)},c,{isDisabled:i,key:r||`outside_dropdown_${n}`,"data-key":r||`outside_dropdown_${n}`}),o):t.cloneElement(o,Object.assign({onClick:s,isDisabled:i},c))})),v.jsx(yi,Object.assign({isOpen:f,onOpenChange:p?void 0:e=>m(e),toggle:e=>s?s({onToggle:h,isOpen:f,isDisabled:i,toggleRef:e}):v.jsx(Ti,{"aria-label":"Kebab toggle",ref:e,onClick:h,isExpanded:f,isDisabled:i,variant:"plain",icon:v.jsx(Pi,{})})},o&&o.actionProps,{ref:c},u,{popperProps:l,children:v.jsx(ji,{children:n.filter((e=>!e.isOutsideDropdown)).map(((e,n)=>{var{title:i,itemKey:o,onClick:r,tooltipProps:s,isSeparator:l,shouldCloseOnClick:c=!0}=e,p=a(e,["title","itemKey","onClick","tooltipProps","isSeparator","shouldCloseOnClick"]);if(l)return v.jsx(Ci,{"data-key":o||n},o||n);const u=t.createElement(Oi,Object.assign({onClick:e=>{b(e,r),c&&h()}},p,{key:o||n,"data-key":o||n,ref:0===n?d:void 0}),i);return(null==s?void 0:s.content)?v.jsx(mi,Object.assign({},s,{children:u}),o||n):u}))})}))]})},Li=t.forwardRef(((e,t)=>v.jsx(Di,Object.assign({},e,{innerRef:t}))));Li.displayName="ActionsColumn";var Ai={modifiers:{plain:"pf-m-plain",noPlainOnGlass:"pf-m-no-plain-on-glass",fixed:"pf-m-fixed",stickyHeaderBase:"pf-m-sticky-header-base",stickyHeader:"pf-m-sticky-header",stickyHeaderStuck:"pf-m-sticky-header-stuck",nestedColumnHeader:"pf-m-nested-column-header",striped:"pf-m-striped",expandable:"pf-m-expandable",stripedEven:"pf-m-striped-even",ghostRow:"pf-m-ghost-row",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",center:"pf-m-center",help:"pf-m-help",favorite:"pf-m-favorite",borderRight:"pf-m-border-right",borderLeft:"pf-m-border-left",action:"pf-m-action",noBorderRows:"pf-m-no-border-rows",expanded:"pf-m-expanded",clickable:"pf-m-clickable",selected:"pf-m-selected",firstCellOffsetReset:"pf-m-first-cell-offset-reset",dragOver:"pf-m-drag-over",animateExpand:"pf-m-animate-expand",noAnimateExpand:"pf-m-no-animate-expand",truncate:"pf-m-truncate",wrap:"pf-m-wrap",nowrap:"pf-m-nowrap",fitContent:"pf-m-fit-content",breakWord:"pf-m-break-word",standalone:"pf-m-standalone",favorited:"pf-m-favorited",noPadding:"pf-m-no-padding",noBackground:"pf-m-no-background",compact:"pf-m-compact",borderRow:"pf-m-border-row",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-v6-c-table",tableAction:"pf-v6-c-table__action",tableButton:"pf-v6-c-table__button",tableButtonContent:"pf-v6-c-table__button-content",tableCaption:"pf-v6-c-table__caption",tableCheck:"pf-v6-c-table__check",tableColumnHelp:"pf-v6-c-table__column-help",tableColumnHelpAction:"pf-v6-c-table__column-help-action",tableCompoundExpansionToggle:"pf-v6-c-table__compound-expansion-toggle",tableControlRow:"pf-v6-c-table__control-row",tableDraggable:"pf-v6-c-table__draggable",tableExpandableRow:"pf-v6-c-table__expandable-row",tableExpandableRowContent:"pf-v6-c-table__expandable-row-content",tableFavorite:"pf-v6-c-table__favorite",tableInlineEditAction:"pf-v6-c-table__inline-edit-action",tableSort:"pf-v6-c-table__sort",tableSortIndicator:"pf-v6-c-table__sort-indicator",tableSubhead:"pf-v6-c-table__subhead",tableTbody:"pf-v6-c-table__tbody",tableTd:"pf-v6-c-table__td",tableText:"pf-v6-c-table__text",tableTh:"pf-v6-c-table__th",tableThead:"pf-v6-c-table__thead",tableToggle:"pf-v6-c-table__toggle",tableToggleIcon:"pf-v6-c-table__toggle-icon",tableTr:"pf-v6-c-table__tr"};const Mi=e=>{var{className:n="",children:i=null,isOpen:o,onToggle:r,variant:s}=e,l=a(e,["className","children","isOpen","onToggle","variant"]);return v.jsxs(t.Fragment,{children:[void 0!==o&&v.jsx(ii,Object.assign({className:g(n,o&&Ai.modifiers.expanded),size:"compact"===s?"sm":void 0},l,{variant:"plain","aria-label":l["aria-label"]||"Details",onClick:r,"aria-expanded":o,icon:v.jsx("div",{className:g(Ai.tableToggleIcon),children:v.jsx(Ei,{})})})),i]})};Mi.displayName="CollapseColumn";const Fi=z({name:"GripVerticalIcon",icon:{xOffset:0,yOffset:0,width:320,height:512,svgPathData:"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"},rhUiIcon:{xOffset:0,yOffset:0,width:32,height:32,svgPathData:"M13.75 2.25v5.5c0 .551-.448 1-1 1h-5.5c-.552 0-1-.449-1-1v-5.5c0-.551.448-1 1-1h5.5c.552 0 1 .449 1 1Zm11-1h-5.5c-.552 0-1 .449-1 1v5.5c0 .551.448 1 1 1h5.5c.552 0 1-.449 1-1v-5.5c0-.551-.448-1-1-1Zm-12 11h-5.5c-.552 0-1 .449-1 1v5.5a1 1 0 0 0 1 1h5.5a1 1 0 0 0 1-1v-5.5c0-.551-.448-1-1-1Zm12 0h-5.5c-.552 0-1 .449-1 1v5.5a1 1 0 0 0 1 1h5.5a1 1 0 0 0 1-1v-5.5c0-.551-.448-1-1-1Zm-12 11h-5.5a1 1 0 0 0-1 1v5.5a1 1 0 0 0 1 1h5.5a1 1 0 0 0 1-1v-5.5a1 1 0 0 0-1-1Zm12 0h-5.5a1 1 0 0 0-1 1v5.5a1 1 0 0 0 1 1h5.5a1 1 0 0 0 1-1v-5.5a1 1 0 0 0-1-1Z"}}),Bi=e=>{var{className:t,onClick:n,"aria-label":i,id:o}=e,r=a(e,["className","onClick","aria-label","id"]);return v.jsx(ii,Object.assign({id:o,variant:"plain",className:t,type:"button","aria-label":i||"Draggable row draggable button",onClick:n},r,{icon:v.jsx(Fi,{})}))};Bi.displayName="DraggableCell";const Hi=e=>{var{children:n,className:i,onSelect:o,isOpen:r,selected:s,toggle:l,shouldFocusToggleOnSelect:c=!1,shouldFocusFirstItemOnOpen:d=!1,onOpenChange:p,onOpenChangeKeys:u=["Escape","Tab"],onToggleKeydown:f,variant:m,isPlain:h,innerRef:b,zIndex:x=9999,role:y="listbox",popperProps:w,menuHeight:O,maxMenuHeight:j,isScrollable:N,shouldPreventScrollOnItemFocus:S=!0,focusTimeoutDelay:C=0}=e,_=a(e,["children","className","onSelect","isOpen","selected","toggle","shouldFocusToggleOnSelect","shouldFocusFirstItemOnOpen","onOpenChange","onOpenChangeKeys","onToggleKeydown","variant","isPlain","innerRef","zIndex","role","popperProps","menuHeight","maxMenuHeight","isScrollable","shouldPreventScrollOnItemFocus","focusTimeoutDelay"]);const E=Be(Vi.displayName,_.ouiaId),I=t.useRef(void 0),k=t.useRef(void 0),R=b||I,T="function"==typeof l||"function"!=typeof l&&!l.toggleRef?k:null==l?void 0:l.toggleRef,P=t.useRef(r);t.useEffect((()=>{!1===P.current&&!0===r&&d&&setTimeout((()=>{var e;const t=null===(e=null==R?void 0:R.current)||void 0===e?void 0:e.querySelector("li button:not(:disabled),li input:not(:disabled)");t&&t.focus({preventScroll:S})}),C),P.current=r}),[r]),t.useEffect((()=>{const e=e=>{var t,n,i,o;r&&p&&((null===(t=R.current)||void 0===t?void 0:t.contains(e.target))||(null===(n=T.current)||void 0===n?void 0:n.contains(e.target)))&&u.includes(e.key)&&(e.preventDefault(),p(!1),null===(i=T.current)||void 0===i||i.focus()),(null===(o=T.current)||void 0===o?void 0:o.contains(e.target))&&(f?f(e):r&&"typeahead"!==m&&hn(e,R))},t=e=>{var t,n;r&&p&&!(null===(t=null==T?void 0:T.current)||void 0===t?void 0:t.contains(e.target))&&r&&!(null===(n=R.current)||void 0===n?void 0:n.contains(e.target))&&p(!1)};return window.addEventListener("keydown",e),window.addEventListener("click",t),()=>{window.removeEventListener("keydown",e),window.removeEventListener("click",t)}}),[r,R,T,p,u,f,S,d,C]);const D=v.jsx(yn,Object.assign({role:y,className:g(i),ref:R,onSelect:(e,t)=>{o&&o(e,t),c&&T.current.focus()},isPlain:h,selected:s,isScrollable:null!=N?N:void 0!==O||void 0!==j},Me(Vi.displayName,E,void 0===_.ouiaSafe||_.ouiaSafe),_,{children:v.jsx(jn,{menuHeight:O,maxMenuHeight:j,children:n})}));return v.jsx(un,Object.assign({trigger:"function"==typeof l?l(T):l.toggleNode,triggerRef:T,popper:D,popperRef:R,isVisible:r,zIndex:x},w))},Vi=t.forwardRef(((e,t)=>v.jsx(Hi,Object.assign({innerRef:t},e))));Vi.displayName="Select";const zi=e=>{var{children:t,className:n,isAriaMultiselectable:i=!1}=e,o=a(e,["children","className","isAriaMultiselectable"]);return v.jsx(gi,Object.assign({isAriaMultiselectable:i,className:g(n)},o,{children:t}))};zi.displayName="SelectList";var $i="pf-v6-c-inline-edit__action",Wi="pf-v6-c-inline-edit__group",Ui="pf-v6-c-inline-edit__input",qi="pf-v6-c-inline-edit__value",Gi={iconGroup:"pf-m-icon-group",enableEditable:"pf-m-enable-editable",inlineEditable:"pf-m-inline-editable"},Zi="pf-v6-c-form__helper-text";const Ki=({value:e,rowIndex:n,cellIndex:i,onSelect:o=(()=>{}),clearSelection:a,isOpen:r=!1,isPlaceholder:s=!1,onToggle:l=(()=>{}),selections:c=[""],options:d=[],props:p})=>{const u=v.jsx(Vi,Object.assign({onSelect:(e,t)=>{o(e,t,n,i,s)}},a&&{onClear:e=>{a(e,n,i)}},{isOpen:r,selected:c,toggle:e=>v.jsx(Ti,{ref:e,onClick:l,isExpanded:r,isPlaceholder:s,children:r?"Expanded":"Collapsed"})},p.editableSelectProps,{children:v.jsx(zi,{children:d})}));return v.jsxs(t.Fragment,{children:[v.jsx("div",{className:qi,children:Array.isArray(e)?e.join(", "):e}),v.jsxs("div",{className:Ui,children:[u,v.jsx("div",{className:g(Zi),"aria-live":"polite",children:p.errorText})]})]})};Ki.displayName="EditableSelectInputCell";var Xi={formControl:"pf-v6-c-form-control",formControlIcon:"pf-v6-c-form-control__icon",formControlUtilities:"pf-v6-c-form-control__utilities",modifiers:{textarea:"pf-m-textarea",success:"pf-m-success",warning:"pf-m-warning",error:"pf-m-error",readonly:"pf-m-readonly",plain:"pf-m-plain",expanded:"pf-m-expanded",disabled:"pf-m-disabled",status:"pf-m-status",icon:"pf-m-icon",placeholder:"pf-m-placeholder",resizeVertical:"pf-m-resize-vertical",resizeHorizontal:"pf-m-resize-horizontal",resizeBoth:"pf-m-resize-both"}};const Yi={success:$,error:W,warning:U},Ji=e=>{var{status:t,customIcon:n,className:i}=e,o=a(e,["status","customIcon","className"]);const r=t&&Yi[t];return v.jsx("span",Object.assign({className:g(Xi.formControlIcon,t&&Xi.modifiers.status,i)},o,{children:n||v.jsx(r,{})}))};var Qi,eo;!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"}(Qi||(Qi={})),function(e){e.default="default",e.plain="plain"}(eo||(eo={}));class to extends t.Component{constructor(e){super(e),this.inputRef=t.createRef(),this.observer=()=>{},this.handleChange=e=>{this.props.onChange&&this.props.onChange(e,e.currentTarget.value)},this.handleResize=()=>{const e=this.props.innerRef||this.inputRef;e&&e.current&&qe(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,isStartTruncated:n,onFocus:i}=this.props;(t||n)&&this.restoreText(),i&&i(e)},this.onBlur=e=>{const{isLeftTruncated:t,isStartTruncated:n,onBlur:i}=this.props;(t||n)&&this.handleResize(),i&&i(e)},this.sanitizeInputValue=e=>"string"==typeof e?e.replace(/\n/g," "):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")}componentDidMount(){if(this.props.isLeftTruncated||this.props.isStartTruncated){const e=this.props.innerRef||this.inputRef;this.observer=((e,t,n)=>{let i;if(We){const{ResizeObserver:n}=window;if(e&&n){const o=new n((e=>{window.requestAnimationFrame((()=>{Array.isArray(e)&&e.length>0&&t()}))}));o.observe(e),i=()=>o.unobserve(e)}else window.addEventListener("resize",t),i=()=>window.removeEventListener("resize",t)}return()=>{i&&i()}})(e.current,this.handleResize),this.handleResize()}}componentWillUnmount(){(this.props.isLeftTruncated||this.props.isStartTruncated)&&this.observer()}render(){const e=this.props,{innerRef:t,className:n,type:i,value:o,placeholder:r,validated:s,onChange:l,onFocus:c,onBlur:d,isLeftTruncated:p,isStartTruncated:u,isExpanded:f,expandedProps:m,readOnly:h,readOnlyVariant:b,isRequired:x,isDisabled:y,customIcon:w,ouiaId:O,ouiaSafe:j}=e,N=a(e,["innerRef","className","type","value","placeholder","validated","onChange","onFocus","onBlur","isLeftTruncated","isStartTruncated","isExpanded","expandedProps","readOnly","readOnlyVariant","isRequired","isDisabled","customIcon","ouiaId","ouiaSafe"]),S=["success","error","warning"].includes(s),C=m?{"aria-expanded":null==m?void 0:m.isExpanded,"aria-controls":null==m?void 0:m.ariaControls,role:"combobox"}:{};return v.jsx(fn,{prefix:"pf-",ouiaComponentType:to.displayName,children:(e,a)=>v.jsxs("span",{className:g(Xi.formControl,b&&Xi.modifiers.readonly,"plain"===b&&Xi.modifiers.plain,y&&Xi.modifiers.disabled,(f||(null==m?void 0:m.isExpanded))&&Xi.modifiers.expanded,w&&Xi.modifiers.icon,S&&Xi.modifiers[s],n),children:[v.jsx("input",Object.assign({},N,{onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.handleChange,type:i,value:this.sanitizeInputValue(o),"aria-invalid":N["aria-invalid"]?N["aria-invalid"]:s===q.error},C,{required:x,disabled:y,readOnly:!!b||h,ref:t||this.inputRef,placeholder:r},Me(no.displayName,void 0!==O?O:a,j))),(w||S)&&v.jsxs("span",{className:g(Xi.formControlUtilities),children:[w&&v.jsx(Ji,{customIcon:w}),S&&v.jsx(Ji,{status:s})]})]})})}}to.displayName="TextInputBase",to.defaultProps={"aria-label":null,isRequired:!1,validated:"default",isDisabled:!1,isExpanded:!1,type:Qi.text,isLeftTruncated:!1,isStartTruncated:!1,onChange:()=>{},ouiaSafe:!0};const no=t.forwardRef(((e,t)=>v.jsx(to,Object.assign({},e,{innerRef:t}))));no.displayName="TextInput";const io=({value:e,rowIndex:n,cellIndex:i,props:o,handleTextInputChange:a,inputAriaLabel:r,isDisabled:s=!1})=>v.jsxs(t.Fragment,{children:[v.jsx("div",{className:qi,children:e}),v.jsxs("div",{className:Ui,children:[v.jsx(no,{isDisabled:s,value:void 0!==o.editableValue?o.editableValue:e,validated:!1!==o.isValid?"default":"error",type:"text",onChange:(e,t)=>{a(t,e,n,i)},"aria-label":r}),v.jsx("div",{className:g(Zi),"aria-live":"polite",children:o.errorText})]})]});io.displayName="EditableTextCell";const oo=e=>{var{children:t=null,hasNoBackground:n}=e,i=a(e,["children","hasNoBackground"]);return v.jsx("div",Object.assign({},i,{className:g(Ai.tableExpandableRowContent,n&&Ai.modifiers.noBackground),children:t}))};oo.displayName="ExpandableRowContent";const ao=z({name:"HelpIcon",icon:{width:1024,height:1024,svgPathData:"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"},rhUiIcon:null});var ro={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",custom:"pf-m-custom",info:"pf-m-info"},so="pf-v6-c-popover",lo="pf-v6-c-popover__arrow",co="pf-v6-c-popover__body",po="pf-v6-c-popover__close",uo="pf-v6-c-popover__content",fo="pf-v6-c-popover__footer",mo="pf-v6-c-popover__header",ho="pf-v6-c-popover__title",bo="pf-v6-c-popover__title-icon",vo="pf-v6-c-popover__title-text";const go=t.createContext({}),xo=e=>{var{className:t=null,children:n}=e,i=a(e,["className","children"]);return v.jsx("div",Object.assign({className:g(uo,t)},i,{children:n}))};xo.displayName="PopoverContent";const yo=e=>{var{children:t,id:n,className:i}=e,o=a(e,["children","id","className"]);return v.jsx("div",Object.assign({className:g(co,i),id:n},o,{children:t}))};yo.displayName="PopoverBody";const wo=e=>{var{children:t,className:n}=e,i=a(e,["children","className"]);return v.jsx("span",Object.assign({className:g(bo,n)},i,{children:t}))};wo.displayName="PopoverHeaderIcon";const Oo=e=>{var{children:t,className:n,headingLevel:i}=e,o=a(e,["children","className","headingLevel"]);const r=i;return v.jsx(r,Object.assign({className:g(vo,n)},o,{children:t}))};Oo.displayName="PopoverHeaderText";const jo=e=>{var{children:t,icon:n,className:i,titleHeadingLevel:o="h6",alertSeverityVariant:r,id:s,alertSeverityScreenReaderText:l}=e,c=a(e,["children","icon","className","titleHeadingLevel","alertSeverityVariant","id","alertSeverityScreenReaderText"]);return v.jsx("header",Object.assign({className:g(mo,i)},c,{children:v.jsxs("div",{className:g(ho),id:s,children:[n&&v.jsx(wo,{children:n}),v.jsxs(Oo,{headingLevel:o,children:[r&&l&&v.jsx("span",{className:"pf-v6-screen-reader",children:l}),t]})]})}))};jo.displayName="PopoverHeader";const No=e=>{var{children:t,className:n=""}=e,i=a(e,["children","className"]);return v.jsx("footer",Object.assign({className:g(fo,n)},i,{children:t}))};No.displayName="PopoverFooter";const So=z({name:"RhMicronsCloseIcon",icon:{xOffset:0,yOffset:0,width:20,height:20,svgPathData:"M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z"},rhUiIcon:null}),Co=e=>{var{onClose:t=(()=>{})}=e,n=a(e,["onClose"]);return v.jsx("div",{className:g(po),children:v.jsx(ii,Object.assign({onClick:t,variant:"plain","aria-label":!0},n,{style:{pointerEvents:"auto"},icon:v.jsx(So,{})}))})};Co.displayName="PopoverCloseButton";const _o=e=>{var{className:t=""}=e,n=a(e,["className"]);return v.jsx("div",Object.assign({className:g(lo,t)},n))};_o.displayName="PopoverArrow";const Eo={name:"--pf-v6-c-popover--MaxWidth",value:"none",var:"var(--pf-v6-c-popover--MaxWidth)"},Io={name:"--pf-v6-c-popover--MinWidth",value:"auto",var:"var(--pf-v6-c-popover--MinWidth)"};var ko;!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"}(ko||(ko={}));const Ro={custom:ro.custom,info:ro.info,success:ro.success,warning:ro.warning,danger:ro.danger},To=e=>{var{children:n,position:i="top",enableFlip:o=!0,className:r="",isVisible:s=null,shouldClose:l=(()=>null),shouldOpen:c=(()=>null),"aria-label":d="",bodyContent:p,headerContent:u=null,headerComponent:f="h6",headerIcon:m=null,alertSeverityVariant:h,alertSeverityScreenReaderText:b,footerContent:x=null,appendTo:y=(()=>document.body),hideOnOutsideClick:w=!0,onHide:O=(()=>null),onHidden:j=(()=>null),onShow:N=(()=>null),onShown:S=(()=>null),onMount:C=(()=>null),zIndex:_=9999,triggerAction:E="click",minWidth:I=Io&&Io.value,maxWidth:k=Eo&&Eo.value,closeBtnAriaLabel:R="Close",showClose:T=!0,distance:P=25,flipBehavior:D=["top","bottom","left","right","top-start","top-end","bottom-start","bottom-end","left-start","left-end","right-start","right-end"],animationDuration:L=300,id:A,withFocusTrap:M,triggerRef:F,hasNoPadding:B=!1,hasAutoWidth:H=!1,elementToFocus:V}=e,z=a(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","triggerAction","minWidth","maxWidth","closeBtnAriaLabel","showClose","distance","flipBehavior","animationDuration","id","withFocusTrap","triggerRef","hasNoPadding","hasAutoWidth","elementToFocus"]);const $=Ae(),W=A||$,U=null!==s,[q,G]=t.useState(!1),[K,X]=t.useState(Boolean(M)),Y=t.useRef(null);t.useEffect((()=>{C()}),[]),t.useEffect((()=>{U&&(s?J(void 0,!0):Q())}),[s,U]);const J=(e,t)=>{e&&N(e),G(!0),!1!==M&&t&&X(!0)},Q=e=>{e&&O(e),G(!1)},ee={top:ro.top,bottom:ro.bottom,left:ro.left,right:ro.right,"top-start":ro.topLeft,"top-end":ro.topRight,"bottom-start":ro.bottomLeft,"bottom-end":ro.bottomRight,"left-start":ro.leftTop,"left-end":ro.leftBottom,"right-start":ro.rightTop,"right-end":ro.rightBottom},te=I!==Io.value,ne=k!==Eo.value,ie=e=>{U?c(e,J):J(e,!1)},oe=e=>{U?l(e,Q):Q(e)},ae=v.jsxs(Pe,Object.assign({ref:Y,active:K,focusTrapOptions:{returnFocusOnDeactivate:!1!==M,clickOutsideDeactivates:!0,initialFocus:V||void 0,checkCanFocusTrap:e=>new Promise((t=>{const n=setInterval((()=>{e.every((e=>"hidden"!==getComputedStyle(e).visibility))&&(clearInterval(n),t())}),10),i=setTimeout((()=>{clearInterval(n),t()}),5e3);t._cleanup=()=>{clearInterval(n),clearTimeout(i)}})),tabbableOptions:{displayCheck:"none"},fallbackFocus:()=>{let e=null;return document&&document.activeElement&&(e=document.activeElement),e}},preventScrollOnDeactivate:!0,className:g(so,h&&Ro[h],B&&ro.noPadding,H&&ro.widthAuto,r),role:"dialog","aria-modal":"true","aria-label":u?void 0:d,"aria-labelledby":u?`popover-${W}-header`:void 0,"aria-describedby":`popover-${W}-body`,onMouseDown:()=>{K&&X(!1)},style:{minWidth:te?I:null,maxWidth:ne?k:null}},z,{children:[v.jsx(_o,{}),v.jsxs(xo,{children:[T&&"click"===E&&v.jsx(Co,{onClose:e=>{e.stopPropagation(),U?l(e,Q):Q(e)},"aria-label":R}),u&&v.jsx(jo,{id:`popover-${W}-header`,icon:m,alertSeverityVariant:h,alertSeverityScreenReaderText:b||`${h} alert:`,titleHeadingLevel:f,children:"function"==typeof u?u(Q):u}),v.jsx(yo,{id:`popover-${W}-body`,children:"function"==typeof p?p(Q):p}),x&&v.jsx(No,{id:`popover-${W}-footer`,children:"function"==typeof x?x(Q):x})]})]}));return v.jsx(go.Provider,{value:{headerComponent:f},children:v.jsx(un,{trigger:n,triggerRef:F,popper:ae,popperRef:Y,minWidth:I,appendTo:y,isVisible:q,onMouseEnter:"hover"===E&&ie,onMouseLeave:"hover"===E&&oe,onPopperMouseEnter:"hover"===E&&ie,onPopperMouseLeave:"hover"===E&&oe,onFocus:"hover"===E&&(e=>{U?c(e,J):J(e,!1)}),onBlur:"hover"===E&&(e=>{U?l(e,Q):Q(e)}),positionModifiers:ee,distance:P,placement:i,onTriggerClick:"click"===E&&(e=>{U?q?l(e,Q):c(e,J):q?Q(e):J(e,!0)}),onDocumentClick:(e,t,n)=>{if(w&&q){const i=n&&n.contains(e.target),o=t&&t.contains(e.target);if(i||o)return;U?l(e,Q):Q(e)}},onDocumentKeyDown:e=>{e.key===Z&&q&&(U?l(e,Q):Q(e))},enableFlip:o,zIndex:_,flipBehavior:D,animationDuration:L,onHidden:j,onShown:S,onHide:()=>X(!1)})})};var Po,Do;To.displayName="Popover",e.TableTextVariant=void 0,(Po=e.TableTextVariant||(e.TableTextVariant={})).div="div",Po.nav="nav",e.WrapModifier=void 0,(Do=e.WrapModifier||(e.WrapModifier={})).wrap="wrap",Do.nowrap="nowrap",Do.truncate="truncate",Do.breakWord="breakWord",Do.fitContent="fitContent";const Lo=e=>{var{children:n=null,className:i="",variant:o="span",wrapModifier:r=null,tooltip:s="",tooltipProps:l={},onMouseEnter:c=(()=>{}),focused:d=!1,tooltipHasDefaultBehavior:p=!1}=e,u=a(e,["children","className","variant","wrapModifier","tooltip","tooltipProps","onMouseEnter","focused","tooltipHasDefaultBehavior"]);const f=o,m=t.createRef(),[h,b]=t.useState(s),x=v.jsx(f,Object.assign({ref:m,onMouseEnter:p?void 0:e=>{e.target.offsetWidth<e.target.scrollWidth?b(s||e.target.innerText):b(""),c(e)},className:g(i,r&&Ai.modifiers[r],Ai.tableText)},u,{children:n}));return t.useEffect((()=>{var e;p||(d&&(e=m.current).offsetWidth<e.scrollWidth?b(s||e.innerText):b(""))}),[d,p]),""!==h?v.jsx(mi,Object.assign({triggerRef:m,content:h},!p&&{isVisible:!0},l,{children:x})):x};Lo.displayName="TableText";const Ao=({children:e,info:t,className:n,variant:i="tooltip",popoverProps:o,tooltipProps:a,ariaLabel:r})=>v.jsxs("div",{className:g(Ai.tableColumnHelp,n),children:["string"==typeof e?v.jsx(Lo,{children:e}):e,v.jsx("span",{className:g(Ai.tableColumnHelpAction),children:"tooltip"===i?v.jsx(mi,Object.assign({content:t},a,{children:v.jsx(ii,{variant:"plain",hasNoPadding:!0,"aria-label":r||"string"==typeof t&&t||"More info",icon:v.jsx(ao,{})})})):v.jsx(To,Object.assign({bodyContent:t},o,{children:v.jsx(ii,{variant:"plain",hasNoPadding:!0,"aria-label":r||"string"==typeof t&&t||"More info",icon:v.jsx(ao,{})})}))})]});Ao.displayName="HeaderCellInfoWrapper";var Mo,Fo={grid:"pf-m-grid",animateExpand:"pf-m-animate-expand",expanded:"pf-m-expanded",expandable:"pf-m-expandable",selected:"pf-m-selected",compact:"pf-m-compact",action:"pf-m-action",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"},Bo={treeView:"pf-m-tree-view",noInset:"pf-m-no-inset",treeViewGrid:"pf-m-tree-view-grid",borderRight:"pf-m-border-right",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"},Ho="pf-v6-c-table__check",Vo="pf-v6-c-table__toggle",zo="pf-v6-c-table__toggle-icon",$o="pf-v6-c-table__tree-view-details-toggle",Wo="pf-v6-c-table__tree-view-icon",Uo="pf-v6-c-table__tree-view-main",qo="pf-v6-c-table__tree-view-text",Go="pf-v6-c-table__tree-view-title-cell",Zo={standalone:"pf-m-standalone",disabled:"pf-m-disabled"},Ko="pf-v6-c-radio",Xo="pf-v6-c-radio__body",Yo="pf-v6-c-radio__description",Jo="pf-v6-c-radio__input",Qo="pf-v6-c-radio__label";class ea extends t.Component{constructor(e){super(e),this.handleChange=e=>{this.props.onChange(e,e.currentTarget.checked)},e.label||e["aria-label"]||console.error("Radio:","Radio requires an aria-label to be specified")}render(){const e=this.props,{"aria-label":t,"aria-describedby":n,checked:i,className:o,inputClassName:r,defaultChecked:s,isLabelWrapped:l,labelPosition:c="end",isChecked:d,isDisabled:p,isValid:u,label:f,onChange:m,description:h,body:b,ouiaId:x,ouiaSafe:y=!0,component:w}=e,O=a(e,["aria-label","aria-describedby","checked","className","inputClassName","defaultChecked","isLabelWrapped","labelPosition","isChecked","isDisabled","isValid","label","onChange","description","body","ouiaId","ouiaSafe","component"]);return O.id||console.error("Radio:","id is required to make input accessible"),v.jsx(fn,{prefix:"pf-radio-description-",ouiaComponentType:"Radio",children:(e,a)=>{let m;void 0!==n?m=""===n?void 0:n:h&&(m=e);const j=v.jsx("input",Object.assign({},O,{className:g(Jo,r),type:"radio",onChange:this.handleChange,"aria-invalid":!u,"aria-describedby":m,disabled:p,checked:i||d},void 0===i&&{defaultChecked:s},!f&&{"aria-label":t},Me(ea.displayName,void 0!==x?x:a,y))),N=l&&!w||"label"===w,S=N?"span":"label",C=f?v.jsx(S,{className:g(Qo,p&&Zo.disabled),htmlFor:N?void 0:O.id,children:f}):null,_=null!=w?w:N?"label":"div";return v.jsxs(_,{className:g(Ko,!f&&Zo.standalone,o),htmlFor:N?O.id:void 0,children:["start"===c?v.jsxs(v.Fragment,{children:[C,j]}):v.jsxs(v.Fragment,{children:[j,C]}),h&&v.jsx("span",{id:e,className:g(Yo),children:h}),b&&v.jsx("span",{className:g(Xo),children:b})]})}})}}ea.displayName="Radio",ea.defaultProps={className:"",isDisabled:!1,isValid:!0,onChange:()=>{}},e.RowSelectVariant=void 0,(Mo=e.RowSelectVariant||(e.RowSelectVariant={})).radio="radio",Mo.checkbox="checkbox";const ta=n=>{var{children:i=null,className:o,onSelect:r=null,selectVariant:s,tooltip:l,tooltipProps:c,id:d,name:p,isIndeterminate:u}=n,f=a(n,["children","className","onSelect","selectVariant","tooltip","tooltipProps","id","name","isIndeterminate"]);const m=t.createRef(),h=Object.assign(Object.assign({},f),{id:d,ref:m,onChange:(e,t)=>{r&&r(e)}}),b=Object.assign(Object.assign({},h),u&&{isChecked:null}),g=v.jsxs(t.Fragment,{children:[s===e.RowSelectVariant.checkbox?v.jsx(Bn,Object.assign({},b)):v.jsx(ea,Object.assign({},h,{name:p})),i]});return l?v.jsx(mi,Object.assign({triggerRef:m,content:l},c,{children:g})):g};ta.displayName="SelectColumn";const na=(t,{rowIndex:n,columnIndex:i,rowData:o,column:a,property:r,tooltip:s})=>{const{extraParams:{onSelect:l,selectVariant:c,allRowsSelected:d,isHeaderSelectDisabled:p,isIndeterminate:u}}=a,f={rowIndex:n,columnIndex:i,column:a,property:r};if(o&&o.hasOwnProperty("parent")&&!o.showSelect&&!o.fullWidth)return{component:"td",isVisible:!0};const m=void 0!==n?n:-1;const h=Object.assign(Object.assign(Object.assign({id:-1!==m?`select-${n}`:"select-all"},-1!==m?{isChecked:o&&!!o.selected,"aria-label":`Select row ${n}`}:{isChecked:d,"aria-label":"Select all rows"}),o&&(o.disableCheckbox||o.disableSelection)&&{isDisabled:!0,className:Dn}),!o&&p&&{isDisabled:!0});let b="check-all";return-1!==m&&c===e.RowSelectVariant.checkbox?b=`checkrow${n}`:-1!==m&&(b="radioGroup"),{className:g(Ai.tableCheck),component:-1!==m?"td":"th",isVisible:!o||!o.fullWidth,children:v.jsx(ta,Object.assign({},h,{selectVariant:c,onSelect:function(e){const t=void 0===n?e.currentTarget.checked:!(o&&o.selected);l&&l(e,t,m,o,f)},name:b,tooltip:s,isIndeterminate:-1===m?u:void 0,children:t}))}},ia=z({name:"LongArrowAltUpIcon",icon:{xOffset:0,yOffset:0,width:256,height:512,svgPathData:"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"},rhUiIcon:{xOffset:0,yOffset:0,width:32,height:32,svgPathData:"M22.707 8.707a.997.997 0 0 1-1.414 0L17 4.414V30a1 1 0 1 1-2 0V4.414l-4.293 4.293a.999.999 0 1 1-1.414-1.414l5.646-5.647a1.501 1.501 0 0 1 2.121 0l5.646 5.646a.999.999 0 0 1 0 1.414Z"}}),oa=z({name:"LongArrowAltDownIcon",icon:{xOffset:0,yOffset:0,width:256,height:512,svgPathData:"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"},rhUiIcon:{xOffset:0,yOffset:0,width:32,height:32,svgPathData:"m22.707 24.707-5.646 5.646c-.292.292-.676.438-1.061.438s-.768-.146-1.061-.438l-5.646-5.646a.999.999 0 1 1 1.414-1.414L15 27.586V2a1 1 0 0 1 2 0v25.586l4.293-4.293a.999.999 0 1 1 1.414 1.414Z"}}),aa=z({name:"ArrowsAltVIcon",icon:{xOffset:0,yOffset:0,width:256,height:512,svgPathData:"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"},rhUiIcon:{xOffset:0,yOffset:0,width:32,height:32,svgPathData:"M21.293 23.293 17 27.586V4.414l4.293 4.293a.997.997 0 0 0 1.414 0 .999.999 0 0 0 0-1.414l-5.646-5.646a1.5 1.5 0 0 0-2.121 0L9.294 7.293a.999.999 0 1 0 1.414 1.414l4.293-4.293v23.172l-4.293-4.293a.999.999 0 1 0-1.414 1.414l5.646 5.646c.292.293.676.438 1.061.438s.768-.146 1.061-.438l5.646-5.646a.999.999 0 1 0-1.414-1.414Z"}});var ra="pf-v6-c-action-list",sa={icons:"pf-m-icons",vertical:"pf-m-vertical"};const la=e=>{var{children:t,isIconList:n,className:i,isVertical:o=!1}=e,r=a(e,["children","isIconList","className","isVertical"]);return v.jsx("div",Object.assign({className:g(ra,n&&sa.icons,o&&sa.vertical,i)},r,{children:t}))};la.displayName="ActionList";const ca=e=>{var{children:t,className:n}=e,i=a(e,["children","className"]);return v.jsx("div",Object.assign({className:g(`${ra}__item`,n)},i,{children:t}))};var da;ca.displayName="ActionListItem",e.SortByDirection=void 0,(da=e.SortByDirection||(e.SortByDirection={})).asc="asc",da.desc="desc";const pa=n=>{var{children:i=null,className:o="",isSortedBy:r=!1,onSort:s=null,sortDirection:l="",type:c="button",tooltip:d,tooltipProps:p,tooltipHasDefaultBehavior:u,favoriteButtonProps:f}=n,m=a(n,["children","className","isSortedBy","onSort","sortDirection","type","tooltip","tooltipProps","tooltipHasDefaultBehavior","favoriteButtonProps"]);let h;const[b,x]=t.useState(!1);if(h=r?l===e.SortByDirection.asc?ia:oa:aa,f){const{favorited:e}=f,t=a(f,["favorited"]);return v.jsxs(la,{isIconList:!0,children:[v.jsx(ca,{children:v.jsx(ii,Object.assign({variant:"plain",isFavorite:!0,isFavorited:e},t))}),v.jsx(ca,{children:v.jsx(ii,Object.assign({variant:"plain",icon:v.jsx("span",{className:g(Ai.tableSortIndicator),children:v.jsx(h,{})}),onClick:e=>s&&s(e)},m))})]})}return v.jsx("button",Object.assign({},m,{type:c,className:g(o,Ai.tableButton),onClick:e=>s&&s(e),onFocus:()=>x(!0),onBlur:()=>x(!1),children:v.jsxs("div",{className:g(o,Ai.tableButtonContent),children:[v.jsx(Lo,{tooltip:d,tooltipProps:p,tooltipHasDefaultBehavior:u,focused:b,children:i}),v.jsx("span",{className:g(Ai.tableSortIndicator),children:v.jsx(h,{})})]})}))};pa.displayName="SortColumn";const ua=e=>()=>{var t;return fa(v.jsx(Zn,{}),{columnIndex:e.columnIndex,className:Ai.tableFavorite,ariaLabel:null!==(t=e.ariaLabel)&&void 0!==t?t:"Sort favorites",column:{extraParams:{sortBy:e.sortBy,onSort:e.onSort,favoriteButtonProps:e.favoriteButtonProps}},tooltip:e.tooltip,tooltipProps:e.tooltipProps,tooltipHasDefaultBehavior:!0})},fa=(t,{columnIndex:n,column:i,property:o,className:a,ariaLabel:r,tooltip:s,tooltipProps:l,tooltipHasDefaultBehavior:c})=>{const{extraParams:{sortBy:d,onSort:p,favoriteButtonProps:u}}=i,f={columnIndex:n,column:i,property:o},m=d&&n===d.index;return Object.assign(Object.assign({className:g(Ai.tableSort,m&&Ai.modifiers.selected,a)},m&&{"aria-sort":`${d.direction}ending`}),{children:v.jsx(pa,{isSortedBy:m,sortDirection:m?d.direction:"",onSort:function(t){let i;i=m?d.direction===e.SortByDirection.asc?e.SortByDirection.desc:e.SortByDirection.asc:d.defaultDirection?d.defaultDirection:e.SortByDirection.asc,p&&p(t,n,i,f)},"aria-label":r,tooltip:s,tooltipProps:l,tooltipHasDefaultBehavior:c,favoriteButtonProps:u,children:t})})},ma=(e,t,n,i)=>"function"==typeof e?e(n,i):t,ha=(e,t,n)=>(i,{rowData:o,column:a,rowIndex:r,columnIndex:s,column:{extraParams:{actionsToggle:l,actionsPopperProps:c}},property:d})=>{const p={rowIndex:r,columnIndex:s,column:a,property:d},u=ma(t,e,o,p),f=ma(n,o&&o.disableActions,o,p),m=u&&u.length>0?{children:v.jsx(Li,{items:u,isDisabled:f,rowData:o,extraData:p,actionsToggle:l,popperProps:c,children:i})}:{};return Object.assign({className:g(Ai.tableAction),style:{paddingRight:0},isVisible:!0},m)},ba=(e,t)=>t.filter((t=>t.name===e))[0].errorText,va=e=>e.toUpperCase().replace("-","").replace("_",""),ga=e=>e.replace(/([-_][a-z])/gi,va);function xa(e){return e[0].toUpperCase()+e.substring(1)}const ya=e=>()=>({className:g(Ai.modifiers["number"==typeof e?`width_${e}`:`width${xa(e)}`])}),wa=z({name:"PencilAltIcon",icon:{xOffset:0,yOffset:0,width:512,height:512,svgPathData:"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"},rhUiIcon:{xOffset:0,yOffset:0,width:32,height:32,svgPathData:"m29.354 6.939-4.293-4.293a1.501 1.501 0 0 0-2.121 0L6.293 19.293a.98.98 0 0 0-.225.358l-3.981 8.942c-.004.008-.002.017-.006.025-.029.07-.036.145-.049.22-.009.055-.029.107-.028.162 0 .054.019.107.028.162.013.075.02.15.049.22.003.008.002.017.006.025.044.1.105.188.175.265.013.015.031.025.045.039a.985.985 0 0 0 .246.175c.015.008.025.022.041.029.014.006.029.004.044.009a.994.994 0 0 0 .357.077h.008a.973.973 0 0 0 .357-.077c.014-.006.03-.003.044-.009l8.943-3.982a.98.98 0 0 0 .357-.225l16.65-16.647c.283-.283.439-.66.439-1.061s-.156-.777-.439-1.061ZM4.972 27.027l2.354-5.287 2.933 2.933-5.287 2.354ZM12 23.586 8.414 20 20.5 7.914l3.586 3.586L12 23.586Zm13.5-13.5L21.914 6.5 24 4.414 27.586 8 25.5 10.086Z"}}),Oa=e=>{var{onClick:n=null,className:i="",editing:o,valid:r,saveAriaLabel:s,cancelAriaLabel:l,editAriaLabel:c}=e,d=a(e,["onClick","className","editing","valid","saveAriaLabel","cancelAriaLabel","editAriaLabel"]);return v.jsxs(t.Fragment,{children:[v.jsxs("div",{className:g(Wi,Gi.iconGroup,"pf-m-action-group"),children:[v.jsx("div",{className:g($i),children:v.jsx(ii,Object.assign({"aria-label":s},d,{onClick:e=>n(e,"save"),variant:"plain",icon:v.jsx(kn,{})}))}),v.jsx("div",{className:g($i),children:v.jsx(ii,Object.assign({"aria-label":l},d,{onClick:e=>n(e,"cancel"),variant:"plain",icon:v.jsx(So,{})}))})]}),v.jsx("div",{className:g($i,Gi.enableEditable),children:v.jsx(ii,Object.assign({"aria-label":c},d,{onClick:e=>n(e,"edit"),variant:"plain",icon:v.jsx(wa,{})}))})]})};Oa.displayName="EditColumn";const ja=(e,{rowIndex:t,rowData:n,column:i})=>{const{extraParams:{onRowEdit:o}}=i;function a(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:Ai.tableInlineEditAction,component:"td",isVisible:!0,children:v.jsx(Oa,{saveAriaLabel:n&&n.rowSaveBtnAriaLabel&&n.rowSaveBtnAriaLabel(t)||a(t,"save"),cancelAriaLabel:n&&n.rowCancelBtnAriaLabel&&n.rowCancelBtnAriaLabel(t)||a(t,"cancel"),editAriaLabel:n&&n.rowEditBtnAriaLabel&&n.rowEditBtnAriaLabel(t)||a(t,"edit"),valid:n&&n.isValid,editing:n&&n.isEditable,onClick:(e,i)=>{let a={};"save"===i&&(a=n.rowEditValidationRules&&n.rowEditValidationRules.reduce(((e,t)=>{const i=n.cells.filter((e=>{const n=""===e.props.editableValue?"":e.props.editableValue||e.props.value;let i=!1;return i=Array.isArray(n)&&n.length?n.reduce(((e,n)=>!0===e||!t.validator(n)),i):Array.isArray(n)&&!n.length?!t.validator(""):!t.validator(n),i&&(e.props.isValid=!1),i}));return i.length&&(e[t.name]=i.map((e=>e.props.name))),e}),{})),o(e,i,n&&n.isEditable,t,a)}})}},Na=(e,{rowIndex:t,columnIndex:n,rowData:i,column:o,property:a})=>{const{extraParams:{onCollapse:r,rowLabeledBy:s="simple-node",expandId:l="expand-toggle",allRowsExpanded:c,collapseAllAriaLabel:d,variant:p}}=o,u={rowIndex:t,columnIndex:n,column:o,property:a},f=void 0!==t?t:-1,m=Object.assign({},-1!==f?{isOpen:null==i?void 0:i.isOpen,"aria-labelledby":`${s}${f} ${l}${f}`}:{isOpen:c,"aria-label":d||"Expand all rows"});return{className:(void 0!==(null==i?void 0:i.isOpen)||-1===f)&&g(Ai.tableToggle),isVisible:!(null==i?void 0:i.fullWidth),children:v.jsx(Mi,Object.assign({"aria-labelledby":`${s}${f} ${l}${f}`,onToggle:function(e){const n=i?!i.isOpen:!c;r&&r(e,t,n,i,u)},id:l+f,variant:p},m,{children:e}))}},Sa=(e,t=0)=>(n,{columnIndex:i,rowIndex:o,rowData:a,column:{extraParams:{contentId:r="expanded-content"}}})=>n&&a.hasOwnProperty("parent")&&{colSpan:a.cells&&1!==a.cells.length?1:e+(a.fullWidth?t+1:0),id:r+o+(i?"-"+i:""),className:a.noPadding&&g(Ai.modifiers.noPadding)},Ca=(e,{rowIndex:t,columnIndex:n,rowData:i,column:o,property:a})=>{if(!e)return null;const{title:r,props:s}=e,{extraParams:{onExpand:l,expandId:c="expand-toggle"}}=o,d={rowIndex:t,columnIndex:n,column:o,property:a};return{className:g(Ai.tableCompoundExpansionToggle,s.isOpen&&Ai.modifiers.expanded),children:void 0!==s.isOpen&&v.jsx("button",{type:"button",className:g(Ai.tableButton),onClick:function(e){l&&l(e,t,n,s.isOpen,i,d)},"aria-expanded":s.isOpen,"aria-controls":s.ariaControls,id:`${c}-${t}-${n}`,children:v.jsx(Lo,{children:r})})}},_a=["hidden","hiddenOnSm","hiddenOnMd","hiddenOnLg","hiddenOnXl","hiddenOn_2xl","visibleOnSm","visibleOnMd","visibleOnLg","visibleOnXl","visibleOn_2xl"].filter((e=>Ai.modifiers[e])).reduce(((e,t)=>(e[t.replace("_2xl","2Xl")]=Ai.modifiers[t],e)),{}),Ea=(...e)=>()=>({className:g(...e)}),Ia=({tooltip:e,tooltipProps:t,popover:n,popoverProps:i,className:o,ariaLabel:a})=>r=>({className:Ai.modifiers.help,children:e?v.jsx(Ao,{variant:"tooltip",info:e,tooltipProps:t,ariaLabel:a,className:o,children:r}):v.jsx(Ao,{variant:"popover",info:n,popoverProps:i,ariaLabel:a,className:o,children:r})}),ka=e=>{var{className:t="",onFavorite:n,isFavorited:i,rowIndex:o}=e,r=a(e,["className","onFavorite","isFavorited","rowIndex"]);const s=void 0===o?{}:{id:`favorites-button-${o}`,"aria-labelledby":`favorites-button-${o}`};return v.jsx(ii,Object.assign({variant:"plain",className:t,type:"button","aria-label":i?"Starred":"Not starred",onClick:n,isFavorite:!0,isFavorited:i},s,r))};ka.displayName="FavoritesCell";const Ra=(e,{rowIndex:t,columnIndex:n,rowData:i,column:o,property:a})=>{const{extraParams:{onFavorite:r}}=o,s={rowIndex:t,columnIndex:n,column:o,property:a};if(i&&i.hasOwnProperty("parent")&&!i.fullWidth)return{component:"td",isVisible:!0};const l=i.favoritesProps||{};return{className:g(Ai.tableFavorite,i&&i.favorited&&Ai.modifiers.favorited),isVisible:!i||!i.fullWidth,children:v.jsx(ka,Object.assign({rowIndex:t,onFavorite:function(e){r&&r(e,i&&!i.favorited,t,i,s)},isFavorited:i&&i.favorited},l))}},Ta=z({name:"EllipsisHIcon",icon:{xOffset:0,yOffset:0,width:512,height:512,svgPathData:"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"},rhUiIcon:null}),Pa=(e,t,n)=>(i,{rowIndex:o,rowData:a})=>{const{isExpanded:r,isDetailsExpanded:s,"aria-level":l,"aria-setsize":c,toggleAriaLabel:d,checkAriaLabel:p,showDetailsAriaLabel:u,isChecked:f,checkboxId:m,icon:h}=a.props,b=i.title||i,x=v.jsxs("div",{className:g(qo),children:[h&&v.jsx("span",{className:g(Wo),children:h},"tree-view-text-icon"),v.jsx("span",{className:Ai.tableText,children:b},"table-text")]},"tree-view-text");return{component:"th",className:Go,children:void 0!==l?v.jsxs("div",{className:g(Uo),children:[c>0&&v.jsx("span",{className:g(Vo),children:v.jsx(ii,{variant:"plain",onClick:t=>e&&e(t,o,b,a),className:g(r&&Ai.modifiers.expanded),"aria-expanded":r,"aria-label":d||`${r?"Collapse":"Expand"} row ${o}`,icon:v.jsx("div",{className:g(zo),children:v.jsx(Ei,{})})})},"table-toggle"),!!t&&v.jsx("span",{className:g(Ho),children:v.jsx("label",{htmlFor:m||`checkbox_${o}`,children:v.jsx(Bn,{id:m||`checkbox_${o}`,"aria-label":p||`Row ${o} checkbox`,isChecked:f,onChange:(e,n)=>((e,n)=>{t(n,e,o,b,a)})(n,e)})})},"table-check"),x,!!n&&v.jsx("span",{className:g($o),children:v.jsx(ii,{variant:"plain","aria-expanded":s,"aria-label":u||"Show row details",onClick:e=>n&&n(e,o,b,a),icon:v.jsx("span",{className:`${Ai.table}__details-toggle-icon`,children:v.jsx(Ta,{})})})},"view-details-toggle")]}):x}},Da=()=>({component:"td"}),La=()=>({scope:"col"}),Aa=e=>Object.assign({},e?{}:{scope:""}),Ma=(e,{rowData:t})=>({parentId:t.parent}),Fa=(e,{property:t,rowData:n})=>Object.assign({},n[t]&&n[t].props),Ba=e=>e&&e.hasOwnProperty("title")?e.title:e,Ha=({transforms:e,formatters:t,columnTransforms:n,header:i},o)=>Object.assign(Object.assign({},i),{label:o,transforms:[La,Aa,...e||[],...n||[],...i&&i.hasOwnProperty("transforms")?i.transforms:[]],formatters:[...t||[],...i&&i.hasOwnProperty("formatters")?i.formatters:[]]}),Va=({cellFormatters:e,cellTransforms:t,columnTransforms:n,cell:i},o)=>Object.assign(Object.assign({},i),{transforms:[...t||[],...n||[],...i&&i.hasOwnProperty("transforms")?i.transforms:[],Fa],formatters:[Ba,...e||[],...i&&i.hasOwnProperty("formatters")?i.formatters:[]]}),za=({onSelect:e,canSelectAll:t})=>[...e?[{title:"",transforms:t&&[na]||null,cellTransforms:[na]}]:[]],$a=({onFavorite:e,onSort:t,sortBy:n,canSortFavorites:i,firstUserColumnIndex:o})=>[...e?[{title:"",transforms:t&&i?[La,ua({onSort:t,columnIndex:o-1,sortBy:n})]:[Da],cellTransforms:[Ra]}]:[]],Wa=({actions:e,actionResolver:t,areActionsDisabled:n})=>[...t||e?[{title:"",transforms:[Da],cellTransforms:[ha(e,t,n)]}]:[]],Ua=(e,{onCollapse:t,canCollapseAll:n,firstUserColumnIndex:i})=>[...t?[{title:"",transforms:n&&[Na]||null,cellTransforms:[Na,Sa(e.length,i)]}]:[]],qa=(e,t)=>Object.assign(Object.assign({},e.hasOwnProperty("title")?e:{title:e}),{cellTransforms:[...e.hasOwnProperty("cellTransforms")?e.cellTransforms:[],t]}),Ga=(e,t)=>t.onCollapse||t.onExpand?e.map((t=>{const n=qa(t,Ma);return qa(n,Sa(e.length))})):e,Za=({onRowEdit:e})=>[...e?[{title:"",cellTransforms:[ja]}]:[]];var Ka;e.TableGridBreakpoint=void 0,(Ka=e.TableGridBreakpoint||(e.TableGridBreakpoint={})).none="",Ka.grid="grid",Ka.gridMd="grid-md",Ka.gridLg="grid-lg",Ka.gridXl="grid-xl",Ka.grid2xl="grid-2xl",e.TableVariant=void 0,(e.TableVariant||(e.TableVariant={})).compact="compact";const Xa=t.createContext({registerSelectableRow:()=>{},hasAnimations:!1,variant:void 0}),Ya=n=>{var i,o,{children:r,className:s,variant:l,borders:c=!0,isStickyHeader:d=!1,isStickyHeaderBase:p=!1,isStickyHeaderStuck:u=!1,isPlain:f=!1,isNoPlainOnGlass:m=!1,gridBreakPoint:h=e.TableGridBreakpoint.gridMd,"aria-label":b,role:x="grid",innerRef:y,ouiaId:w,ouiaSafe:O=!0,isTreeTable:j=!1,isNested:N=!1,isStriped:S=!1,isExpandable:C=!1,hasAnimations:_,hasNoInset:E=!1,nestedHeaderColumnSpans:I,selectableRowCaptionText:k}=n,R=a(n,["children","className","variant","borders","isStickyHeader","isStickyHeaderBase","isStickyHeaderStuck","isPlain","isNoPlainOnGlass","gridBreakPoint","aria-label","role","innerRef","ouiaId","ouiaSafe","isTreeTable","isNested","isStriped","isExpandable","hasAnimations","hasNoInset","nestedHeaderColumnSpans","selectableRowCaptionText"]);const T=F(_),P=t.useRef(null),D=y||P,[L,A]=t.useState(!1),[M,B]=t.useState();t.useEffect((()=>{if(document.addEventListener("keydown",W),D&&D.current&&D.current.classList.contains("pf-m-tree-view")){const t=D.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",W)}}),[D,D.current]),t.useEffect((()=>{B(k?v.jsxs("caption",{children:[k,v.jsx("div",{className:"pf-v6-screen-reader",children:"This table has selectable rows. It can be navigated by row using tab, and each row can be selected using space or enter."})]}):v.jsx("caption",{className:"pf-v6-screen-reader",children:"This table has selectable rows. It can be navigated by row using tab, and each row can be selected using space or enter."}))}),[k]);const H=Fe("Table",w,O),V=null===(i=Fo)||void 0===i?void 0:i[ga(h||"").replace(/-?2xl/,"_2xl")],z=`treeView${h.charAt(0).toUpperCase()+h.slice(1)}`,$=null===(o=Bo)||void 0===o?void 0:o[ga(z||"").replace(/-?2xl/,"_2xl")],W=e=>{if(N||!(D&&D.current&&D.current.classList.contains(Bo.treeView))||D&&D.current!==e.target.closest(`.${Ai.table}:not(.pf-m-nested)`))return;const t=document.activeElement,n=e.key,i=Array.from(D.current.querySelectorAll("tbody tr")).filter((e=>!e.classList.contains("pf-m-disabled")&&!e.hidden));n!==G&&n!==K||(t.click(),e.preventDefault());mn(e,i,(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 v.jsx(Xa.Provider,{value:{registerSelectableRow:()=>{!L&&A(!0)},hasAnimations:T,variant:l},children:v.jsxs("table",Object.assign({"aria-label":b,role:x,className:g(s,Ai.table,j?$:V,Ai.modifiers[l],!c&&Ai.modifiers.noBorderRows,d&&Ai.modifiers.stickyHeader,p&&Ai.modifiers.stickyHeaderBase,u&&Ai.modifiers.stickyHeaderStuck,j&&Bo.treeView,S&&Ai.modifiers.striped,C&&Ai.modifiers.expandable,f&&Ai.modifiers.plain,m&&Ai.modifiers.noPlainOnGlass,E&&Bo.noInset,N&&"pf-m-nested",T&&Ai.modifiers.animateExpand),ref:D},j&&{role:"treegrid"},H,R,{children:[L&&M,r]}))})},Ja=t.forwardRef(((e,t)=>v.jsx(Ya,Object.assign({},e,{innerRef:t}))));Ja.displayName="Table";const Qa=e=>{var{children:n,className:i,isExpanded:o,isContentExpanded:r,isEditable:s,isHidden:l=!1,isClickable:c=!1,isRowSelected:d=!1,isStriped:p=!1,isBorderRow:u=!1,isControlRow:f=!1,innerRef:m,ouiaId:h,ouiaSafe:b=!0,resetOffset:x=!1,onRowClick:y,isSelectable:w,"aria-label":O}=e,j=a(e,["children","className","isExpanded","isContentExpanded","isEditable","isHidden","isClickable","isRowSelected","isStriped","isBorderRow","isControlRow","innerRef","ouiaId","ouiaSafe","resetOffset","onRowClick","isSelectable","aria-label"]);const N=Fe("TableRow",h,b),[S,C]=t.useState("");let _=null;y&&(_=e=>{"Enter"!==e.key&&" "!==e.key||(y(e),e.preventDefault())});const E=l||void 0!==o&&!o,{registerSelectableRow:I,hasAnimations:k}=t.useContext(Xa);t.useEffect((()=>{w&&!E?(C(""+(d?"Row selected":"")),I()):C(void 0)}),[d,w,I,E]);const R=O||S;return v.jsx(v.Fragment,{children:v.jsx("tr",Object.assign({className:g(Ai.tableTr,i,void 0!==o&&Ai.tableExpandableRow,(o||r)&&Ai.modifiers.expanded,s&&Gi.inlineEditable,c&&Ai.modifiers.clickable,d&&Ai.modifiers.selected,p&&Ai.modifiers.striped,u&&Ai.modifiers.borderRow,f&&Ai.tableControlRow,x&&Ai.modifiers.firstCellOffsetReset),hidden:E},c&&{tabIndex:0},{"aria-label":R,ref:m},k&&E&&{inert:""},y&&{onClick:y,onKeyDown:_},N,j,{children:n}))})},er=t.forwardRef(((e,t)=>v.jsx(Qa,Object.assign({},e,{innerRef:t}))));er.displayName="Tr";class tr extends t.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=He(this.handleScroll,100)),e.onResize&&(this.handleResize=He(this.handleResize,100))}componentDidMount(){this._unmounted=!1,We&&(this.props.onScroll&&window.addEventListener("scroll",this.handleScroll),this.props.onResize&&window.addEventListener("resize",this.handleResize))}componentWillUnmount(){this._unmounted=!0,We&&(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:i,isEditable:o,isClickable:r,isRowSelected:s},rowProps:l,trRef:c,className:d,ouiaId:p}=e,u=a(e,["onScroll","onResize","row","rowProps","trRef","className","ouiaId"]);return v.jsx(er,Object.assign({},u,{ref:c,isExpanded:i,isEditable:o,className:d,ouiaId:p,isClickable:r,isRowSelected:s}))}}tr.displayName="RowWrapper",tr.defaultProps={className:"",row:{isOpen:void 0,isExpanded:void 0,isHeightAuto:void 0,isEditable:void 0},rowProps:null};const nr=e=>{var{className:t,rowProps:n,row:i}=e,o=a(e,["className","rowProps","row"]);const{"aria-level":r,"aria-posinset":s,"aria-setsize":l,isExpanded:c,isDetailsExpanded:d,isHidden:p}=i.props;return v.jsx(er,Object.assign({"aria-level":r,"aria-posinset":s,"aria-setsize":l,"aria-expanded":!!c,isHidden:p,className:g(t,c&&Ai.modifiers.expanded,d&&Bo.treeViewDetailsExpanded)},o))};nr.displayName="TreeRowWrapper";const ir=e=>{var{children:t,className:n,noWrap:i=!1,innerRef:o,hasNestedHeader:r}=e,s=a(e,["children","className","noWrap","innerRef","hasNestedHeader"]);return v.jsx("thead",Object.assign({className:g(Ai.tableThead,n,i&&Ai.modifiers.nowrap,r&&Ai.modifiers.nestedColumnHeader),ref:o},s,{children:t}))},or=t.forwardRef(((e,t)=>v.jsx(ir,Object.assign({},e,{innerRef:t}))));or.displayName="Thead";const ar=e=>{var{children:t,className:n,isExpanded:i,innerRef:o,isEvenStriped:r=!1,isOddStriped:s=!1}=e,l=a(e,["children","className","isExpanded","innerRef","isEvenStriped","isOddStriped"]);return v.jsx("tbody",Object.assign({role:"rowgroup",className:g(Ai.tableTbody,n,i&&Ai.modifiers.expanded,s&&Ai.modifiers.striped,r&&Ai.modifiers.stripedEven),ref:o},l,{children:t}))},rr=t.forwardRef(((e,t)=>v.jsx(ar,Object.assign({},e,{innerRef:t}))));rr.displayName="Tbody";var sr={borderRight:"pf-m-border-right",borderLeft:"pf-m-border-left"},lr="pf-v6-c-scroll-inner-wrapper",cr="pf-v6-c-scroll-outer-wrapper",dr="pf-v6-c-table__sticky-cell",pr="pf-v6-u-screen-reader";var ur=function(){this.__data__=[],this.size=0};var fr=function(e,t){return e===t||e!=e&&t!=t},mr=fr;var hr=function(e,t){for(var n=e.length;n--;)if(mr(e[n][0],t))return n;return-1},br=hr,vr=Array.prototype.splice;var gr=hr;var xr=hr;var yr=hr;var wr=ur,Or=function(e){var t=this.__data__,n=br(t,e);return!(n<0)&&(n==t.length-1?t.pop():vr.call(t,n,1),--this.size,!0)},jr=function(e){var t=this.__data__,n=gr(t,e);return n<0?void 0:t[n][1]},Nr=function(e){return xr(this.__data__,e)>-1},Sr=function(e,t){var n=this.__data__,i=yr(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};function Cr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Cr.prototype.clear=wr,Cr.prototype.delete=Or,Cr.prototype.get=jr,Cr.prototype.has=Nr,Cr.prototype.set=Sr;var _r=Cr,Er=_r;var Ir=function(){this.__data__=new Er,this.size=0};var kr=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var Rr=function(e){return this.__data__.get(e)};var Tr=function(e){return this.__data__.has(e)},Pr="object"==typeof r&&r&&r.Object===Object&&r,Dr=Pr,Lr="object"==typeof self&&self&&self.Object===Object&&self,Ar=Dr||Lr||Function("return this")(),Mr=Ar.Symbol,Fr=Mr,Br=Object.prototype,Hr=Br.hasOwnProperty,Vr=Br.toString,zr=Fr?Fr.toStringTag:void 0;var $r=function(e){var t=Hr.call(e,zr),n=e[zr];try{e[zr]=void 0;var i=!0}catch(e){}var o=Vr.call(e);return i&&(t?e[zr]=n:delete e[zr]),o},Wr=Object.prototype.toString;var Ur=$r,qr=function(e){return Wr.call(e)},Gr=Mr?Mr.toStringTag:void 0;var Zr=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Gr&&Gr in Object(e)?Ur(e):qr(e)};var Kr=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Xr=Zr,Yr=Kr;var Jr,Qr=function(e){if(!Yr(e))return!1;var t=Xr(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},es=Ar["__core-js_shared__"],ts=(Jr=/[^.]+$/.exec(es&&es.keys&&es.keys.IE_PROTO||""))?"Symbol(src)_1."+Jr:"";var ns=function(e){return!!ts&&ts in e},is=Function.prototype.toString;var os=Qr,as=ns,rs=Kr,ss=function(e){if(null!=e){try{return is.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ls=/^\[object .+?Constructor\]$/,cs=Function.prototype,ds=Object.prototype,ps=cs.toString,us=ds.hasOwnProperty,fs=RegExp("^"+ps.call(us).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var ms=function(e){return!(!rs(e)||as(e))&&(os(e)?fs:ls).test(ss(e))},hs=function(e,t){return null==e?void 0:e[t]};var bs=function(e,t){var n=hs(e,t);return ms(n)?n:void 0},vs=bs(Ar,"Map"),gs=bs(Object,"create"),xs=gs;var ys=function(){this.__data__=xs?xs(null):{},this.size=0};var ws=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Os=gs,js=Object.prototype.hasOwnProperty;var Ns=function(e){var t=this.__data__;if(Os){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return js.call(t,e)?t[e]:void 0},Ss=gs,Cs=Object.prototype.hasOwnProperty;var _s=gs;var Es=ys,Is=ws,ks=Ns,Rs=function(e){var t=this.__data__;return Ss?void 0!==t[e]:Cs.call(t,e)},Ts=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=_s&&void 0===t?"__lodash_hash_undefined__":t,this};function Ps(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Ps.prototype.clear=Es,Ps.prototype.delete=Is,Ps.prototype.get=ks,Ps.prototype.has=Rs,Ps.prototype.set=Ts;var Ds=Ps,Ls=_r,As=vs;var Ms=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Fs=function(e,t){var n=e.__data__;return Ms(t)?n["string"==typeof t?"string":"hash"]:n.map},Bs=Fs;var Hs=Fs;var Vs=Fs;var zs=Fs;var $s=function(){this.size=0,this.__data__={hash:new Ds,map:new(As||Ls),string:new Ds}},Ws=function(e){var t=Bs(this,e).delete(e);return this.size-=t?1:0,t},Us=function(e){return Hs(this,e).get(e)},qs=function(e){return Vs(this,e).has(e)},Gs=function(e,t){var n=zs(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};function Zs(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Zs.prototype.clear=$s,Zs.prototype.delete=Ws,Zs.prototype.get=Us,Zs.prototype.has=qs,Zs.prototype.set=Gs;var Ks=_r,Xs=vs,Ys=Zs;var Js=_r,Qs=Ir,el=kr,tl=Rr,nl=Tr,il=function(e,t){var n=this.__data__;if(n instanceof Ks){var i=n.__data__;if(!Xs||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ys(i)}return n.set(e,t),this.size=n.size,this};function ol(e){var t=this.__data__=new Js(e);this.size=t.size}ol.prototype.clear=Qs,ol.prototype.delete=el,ol.prototype.get=tl,ol.prototype.has=nl,ol.prototype.set=il;var al=ol,rl=bs,sl=function(){try{var e=rl(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),ll=sl;var cl=function(e,t,n){"__proto__"==t&&ll?ll(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},dl=cl,pl=fr;var ul=function(e,t,n){(void 0!==n&&!pl(e[t],n)||void 0===n&&!(t in e))&&dl(e,t,n)};var fl=function(e){return function(t,n,i){for(var o=-1,a=Object(t),r=i(t),s=r.length;s--;){var l=r[e?s:++o];if(!1===n(a[l],l,a))break}return t}}(),ml={exports:{}};!function(e,t){var n=Ar,i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?n.Buffer:void 0,r=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,i=r?r(n):new e.constructor(n);return e.copy(i),i}}(ml,ml.exports);var hl=ml.exports,bl=Ar.Uint8Array;var vl=function(e){var t=new e.constructor(e.byteLength);return new bl(t).set(new bl(e)),t};var gl=function(e,t){var n=t?vl(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var xl=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},yl=Kr,wl=Object.create,Ol=function(){function e(){}return function(t){if(!yl(t))return{};if(wl)return wl(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var jl=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object),Nl=Object.prototype;var Sl=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Nl)},Cl=Ol,_l=jl,El=Sl;var Il=function(e){return"function"!=typeof e.constructor||El(e)?{}:Cl(_l(e))};var kl=function(e){return null!=e&&"object"==typeof e},Rl=Zr,Tl=kl;var Pl=function(e){return Tl(e)&&"[object Arguments]"==Rl(e)},Dl=kl,Ll=Object.prototype,Al=Ll.hasOwnProperty,Ml=Ll.propertyIsEnumerable,Fl=Pl(function(){return arguments}())?Pl:function(e){return Dl(e)&&Al.call(e,"callee")&&!Ml.call(e,"callee")},Bl=Fl,Hl=Array.isArray;var Vl=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},zl=Qr,$l=Vl;var Wl=function(e){return null!=e&&$l(e.length)&&!zl(e)},Ul=Wl,ql=kl;var Gl=function(e){return ql(e)&&Ul(e)},Zl={exports:{}};var Kl=function(){return!1};!function(e,t){var n=Ar,i=Kl,o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,r=a&&a.exports===o?n.Buffer:void 0,s=(r?r.isBuffer:void 0)||i;e.exports=s}(Zl,Zl.exports);var Xl=Zl.exports,Yl=Zr,Jl=jl,Ql=kl,ec=Function.prototype,tc=Object.prototype,nc=ec.toString,ic=tc.hasOwnProperty,oc=nc.call(Object);var ac=function(e){if(!Ql(e)||"[object Object]"!=Yl(e))return!1;var t=Jl(e);if(null===t)return!0;var n=ic.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&nc.call(n)==oc},rc=Zr,sc=Vl,lc=kl,cc={};cc["[object Float32Array]"]=cc["[object Float64Array]"]=cc["[object Int8Array]"]=cc["[object Int16Array]"]=cc["[object Int32Array]"]=cc["[object Uint8Array]"]=cc["[object Uint8ClampedArray]"]=cc["[object Uint16Array]"]=cc["[object Uint32Array]"]=!0,cc["[object Arguments]"]=cc["[object Array]"]=cc["[object ArrayBuffer]"]=cc["[object Boolean]"]=cc["[object DataView]"]=cc["[object Date]"]=cc["[object Error]"]=cc["[object Function]"]=cc["[object Map]"]=cc["[object Number]"]=cc["[object Object]"]=cc["[object RegExp]"]=cc["[object Set]"]=cc["[object String]"]=cc["[object WeakMap]"]=!1;var dc=function(e){return lc(e)&&sc(e.length)&&!!cc[rc(e)]};var pc=function(e){return function(t){return e(t)}},uc={exports:{}};!function(e,t){var n=Pr,i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&n.process,r=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=r}(uc,uc.exports);var fc=uc.exports,mc=dc,hc=pc,bc=fc&&fc.isTypedArray,vc=bc?hc(bc):mc;var gc=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},xc=cl,yc=fr,wc=Object.prototype.hasOwnProperty;var Oc=function(e,t,n){var i=e[t];wc.call(e,t)&&yc(i,n)&&(void 0!==n||t in e)||xc(e,t,n)},jc=cl;var Nc=function(e,t,n,i){var o=!n;n||(n={});for(var a=-1,r=t.length;++a<r;){var s=t[a],l=i?i(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),o?jc(n,s,l):Oc(n,s,l)}return n};var Sc=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i},Cc=/^(?:0|[1-9]\d*)$/;var _c=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Cc.test(e))&&e>-1&&e%1==0&&e<t},Ec=Sc,Ic=Bl,kc=Hl,Rc=Xl,Tc=_c,Pc=vc,Dc=Object.prototype.hasOwnProperty;var Lc=function(e,t){var n=kc(e),i=!n&&Ic(e),o=!n&&!i&&Rc(e),a=!n&&!i&&!o&&Pc(e),r=n||i||o||a,s=r?Ec(e.length,String):[],l=s.length;for(var c in e)!t&&!Dc.call(e,c)||r&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Tc(c,l))||s.push(c);return s};var Ac=Kr,Mc=Sl,Fc=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},Bc=Object.prototype.hasOwnProperty;var Hc=Lc,Vc=function(e){if(!Ac(e))return Fc(e);var t=Mc(e),n=[];for(var i in e)("constructor"!=i||!t&&Bc.call(e,i))&&n.push(i);return n},zc=Wl;var $c=function(e){return zc(e)?Hc(e,!0):Vc(e)},Wc=Nc,Uc=$c;var qc=ul,Gc=hl,Zc=gl,Kc=xl,Xc=Il,Yc=Bl,Jc=Hl,Qc=Gl,ed=Xl,td=Qr,nd=Kr,id=ac,od=vc,ad=gc,rd=function(e){return Wc(e,Uc(e))};var sd=al,ld=ul,cd=fl,dd=function(e,t,n,i,o,a,r){var s=ad(e,n),l=ad(t,n),c=r.get(l);if(c)qc(e,n,c);else{var d=a?a(s,l,n+"",e,t,r):void 0,p=void 0===d;if(p){var u=Jc(l),f=!u&&ed(l),m=!u&&!f&&od(l);d=l,u||f||m?Jc(s)?d=s:Qc(s)?d=Kc(s):f?(p=!1,d=Gc(l,!0)):m?(p=!1,d=Zc(l,!0)):d=[]:id(l)||Yc(l)?(d=s,Yc(s)?d=rd(s):nd(s)&&!td(s)||(d=Xc(l))):p=!1}p&&(r.set(l,d),o(d,l,i,a,r),r.delete(l)),qc(e,n,d)}},pd=Kr,ud=$c,fd=gc;var md=function e(t,n,i,o,a){t!==n&&cd(n,(function(r,s){if(a||(a=new sd),pd(r))dd(t,n,s,i,e,o,a);else{var l=o?o(fd(t,s),r,s+"",t,n,a):void 0;void 0===l&&(l=r),ld(t,s,l)}}),ud)};var hd=function(e){return e};var bd=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)},vd=Math.max;var gd=function(e,t,n){return t=vd(void 0===t?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=vd(i.length-t,0),r=Array(a);++o<a;)r[o]=i[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=i[o];return s[t]=n(r),bd(e,this,s)}};var xd=function(e){return function(){return e}},yd=sl,wd=yd?function(e,t){return yd(e,"toString",{configurable:!0,enumerable:!1,value:xd(t),writable:!0})}:hd,Od=Date.now;var jd=function(e){var t=0,n=0;return function(){var i=Od(),o=16-(i-n);if(n=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},Nd=jd(wd),Sd=hd,Cd=gd,_d=Nd;var Ed=function(e,t){return _d(Cd(e,t,Sd),e+"")},Id=fr,kd=Wl,Rd=_c,Td=Kr;var Pd=Ed,Dd=function(e,t,n){if(!Td(n))return!1;var i=typeof t;return!!("number"==i?kd(n)&&Rd(t,n.length):"string"==i&&t in n)&&Id(n[t],e)};var Ld=md,Ad=s(function(e){return Pd((function(t,n){var i=-1,o=n.length,a=o>1?n[o-1]:void 0,r=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,r&&Dd(n[0],n[1],r)&&(a=o<3?void 0:a,o=1),t=Object(t);++i<o;){var s=n[i];s&&e(t,s,i,a)}return t}))}((function(e,t,n,i){Ld(e,t,n,i)})));function Md(...e){const n=e[0],i=e.slice(1);return i.length?Ad(Ad({},n),...i,((e,n,i)=>"children"===i?e&&n?t.cloneElement(e,{children:n}):Object.assign(Object.assign({},n),e):"className"===i?g(e,n):void 0)):Ad({},n)}const Fd="--pf-v6-c-table__sticky-cell--MinWidth",Bd="--pf-v6-c-table__sticky-cell--InsetInlineStart",Hd="--pf-v6-c-table__sticky-cell--InsetInlineEnd",Vd=e=>{var n,{children:i,className:o,component:r="th",dataLabel:s,scope:l="col",textCenter:c=!1,sort:d=null,modifier:p,select:u=null,expand:f=null,tooltip:m="",tooltipProps:h,onMouseEnter:b=(()=>{}),width:x,visibility:y,innerRef:w,info:O,isStickyColumn:j=!1,hasRightBorder:N=!1,hasLeftBorder:S=!1,stickyMinWidth:C="120px",stickyLeftOffset:_,stickyRightOffset:E,isSubheader:I=!1,screenReaderText:k,"aria-label":R,additionalContent:T}=e,P=a(e,["children","className","component","dataLabel","scope","textCenter","sort","modifier","select","expand","tooltip","tooltipProps","onMouseEnter","width","visibility","innerRef","info","isStickyColumn","hasRightBorder","hasLeftBorder","stickyMinWidth","stickyLeftOffset","stickyRightOffset","isSubheader","screenReaderText","aria-label","additionalContent"]);const{variant:D}=t.useContext(Xa);i||k||R||console.warn("Th: Table headers must have an accessible name. If the Th is intended to be visually empty, pass in screenReaderText. If the Th contains only non-text, interactive content such as a checkbox or expand toggle, pass in an aria-label.");const[L,A]=t.useState(!1),[M,F]=t.useState(!1),B=w||t.createRef(),H=e=>{e.target.offsetWidth<e.target.scrollWidth?!L&&A(!0):L&&A(!1),b(e)};let V=null;d&&(V=d.isFavorites?ua({onSort:d.onSort,columnIndex:d.columnIndex,sortBy:d.sortBy,tooltip:m,tooltipProps:h,ariaLabel:d["aria-label"],favoriteButtonProps:d.favoriteButtonProps})():fa(i,{columnIndex:d.columnIndex,column:{extraParams:{sortBy:d.sortBy,onSort:null==d?void 0:d.onSort}},tooltip:m,tooltipProps:h}));const z=u?na(i,{rowData:{selected:u.isSelected,disableSelection:null==u?void 0:u.isDisabled,props:null==u?void 0:u.props},column:{extraParams:{onSelect:null==u?void 0:u.onSelect,selectVariant:"checkbox",allRowsSelected:u.isSelected,isHeaderSelectDisabled:!!u.isHeaderSelectDisabled,isIndeterminate:null==u?void 0:u.isIndeterminate}},tooltip:m}):null,$=f?Na(i,{column:{extraParams:{onCollapse:null==f?void 0:f.onToggle,allRowsExpanded:!f.areAllExpanded,collapseAllAriaLabel:"",variant:D}}}):null,W=x?ya(x)():null,U=y?Ea(...y.map((e=>_a[e])))():null;let q=(null==V?void 0:V.children)||(null==z?void 0:z.children)||(null==$?void 0:$.children)||i,G=null;O&&(G=Ia(O)(q),q=G.children);const Z=Md(V,z,$,W,U,G),{children:K=null,isVisible:X=null,className:Y="",component:J=r}=Z,Q=a(Z,["children","isVisible","className","component"]);t.useEffect((()=>{F(B.current.offsetWidth<B.current.scrollWidth)}),[B]);const ee=v.jsxs(J,Object.assign({tabIndex:d||u||!M?-1:0,onFocus:null!==m?H:b,onBlur:()=>A(!1),"data-label":s,onMouseEnter:null!==m?H:b,scope:"th"===r?l:null,ref:B,"aria-label":R,className:g(Ai.tableTh,o,c&&Ai.modifiers.center,I&&Ai.tableSubhead,j&&dr,N&&sr.borderRight,S&&sr.borderLeft,p&&Ai.modifiers[p],(null===(n=null==d?void 0:d.favoriteButtonProps)||void 0===n?void 0:n.favorited)&&Ai.modifiers.favorited,Y)},Q,P,j&&{style:Object.assign({[Fd]:C||void 0,[Bd]:_||0,[Hd]:E||0},P.style)},{children:[q||k&&v.jsx("span",{className:pr,children:k}),T&&T]}));return null!==m&&(""!==m||"string"==typeof q)&&!(V||z)&&L?v.jsxs(v.Fragment,{children:[ee,v.jsx(mi,Object.assign({triggerRef:B,content:m||""===m&&i,isVisible:!0},h))]}):ee},zd=t.forwardRef(((e,t)=>v.jsx(Vd,Object.assign({},e,{innerRef:t}))));zd.displayName="Th";const $d=e=>{var{children:n,className:i,isActionCell:o=!1,hasAction:r=!1,component:s="td",dataLabel:l,textCenter:c=!1,modifier:d,select:p=null,actions:u=null,expand:f=null,treeRow:m=null,compoundExpand:h=null,noPadding:b,width:x,visibility:y,innerRef:w,favorites:O=null,draggableRow:j=null,tooltip:N="",onMouseEnter:S=(()=>{}),isStickyColumn:C=!1,hasRightBorder:_=!1,hasLeftBorder:E=!1,stickyMinWidth:I="120px",stickyLeftOffset:k,stickyRightOffset:R}=e,T=a(e,["children","className","isActionCell","hasAction","component","dataLabel","textCenter","modifier","select","actions","expand","treeRow","compoundExpand","noPadding","width","visibility","innerRef","favorites","draggableRow","tooltip","onMouseEnter","isStickyColumn","hasRightBorder","hasLeftBorder","stickyMinWidth","stickyLeftOffset","stickyRightOffset"]);const[P,D]=t.useState(!1),[L,A]=t.useState(!1),M=w||t.createRef(),F=e=>{e.target.offsetWidth<e.target.scrollWidth?!P&&D(!0):P&&D(!1),S(e)},B=p?na(n,{rowIndex:p.rowIndex,rowData:{selected:p.isSelected,disableSelection:null==p?void 0:p.isDisabled,props:null==p?void 0:p.props},column:{extraParams:{onSelect:null==p?void 0:p.onSelect,selectVariant:p.variant||"checkbox"}}}):null,H=O?Ra(0,{rowIndex:null==O?void 0:O.rowIndex,rowData:{favorited:O.isFavorited,favoritesProps:null==O?void 0:O.props},column:{extraParams:{onFavorite:null==O?void 0:O.onFavorite}}}):null,V=null!==j?((e,{rowData:t})=>{const{id:n}=t;return{className:"",children:v.jsx(Bi,{id:n})}})(0,{rowData:{id:j.id}}):null,z=u?ha(u.items,null,null):null,$=z?z(null,{rowIndex:null==u?void 0:u.rowIndex,rowData:{disableActions:null==u?void 0:u.isDisabled},column:{extraParams:{dropdownPosition:null==u?void 0:u.dropdownPosition,dropdownDirection:null==u?void 0:u.dropdownDirection,menuAppendTo:null==u?void 0:u.menuAppendTo,actionsToggle:null==u?void 0:u.actionsToggle}}}):null,{hasAnimations:W,variant:U}=t.useContext(Xa),q=null!==f?Na(null,{rowIndex:f.rowIndex,columnIndex:null==f?void 0:f.columnIndex,rowData:{isOpen:f.isExpanded},column:{extraParams:{onCollapse:null==f?void 0:f.onToggle,expandId:null==f?void 0:f.expandId,variant:U}}}):null,G=null!==h?Ca({title:n,props:{isOpen:h.isExpanded}},{rowIndex:null==h?void 0:h.rowIndex,columnIndex:null==h?void 0:h.columnIndex,column:{extraParams:{onExpand:(e,t,n,i,o,a)=>{W&&(()=>{var e,t;const n=null===(e=null==M?void 0:M.current)||void 0===e?void 0:e.closest(`.${Ai.tableTr}.${Ai.tableControlRow}`);if(!n.classList.contains(Ai.modifiers.expanded))return;(null===(t=null==M?void 0:M.current)||void 0===t?void 0:t.classList.contains(Ai.modifiers.expanded))?n.classList.remove(Ai.modifiers.noAnimateExpand):n.classList.add(Ai.modifiers.noAnimateExpand)})(),null==h||h.onToggle(e,t,n,i,o,a)},expandId:null==h?void 0:h.expandId}}}):null,Z=Md(B,$,q,G,x?ya(x)():null,y?Ea(...y.map((e=>_a[e])))():null,H,null!==m?Pa(m.onCollapse,m.onCheckChange,m.onToggleRowDetails)({title:n},{rowIndex:m.rowIndex,rowData:{props:m.props}}):null,V),{isVisible:K=null,children:X=null,className:Y="",component:J=s}=Z,Q=a(Z,["isVisible","children","className","component"]),ee=i&&i.includes(Go)||Y&&Y.includes(Go);t.useEffect((()=>{A(M.current.offsetWidth<M.current.scrollWidth)}),[M]);const te=v.jsx(J,Object.assign({tabIndex:!p&&L||"truncate"===d?0:-1},!ee&&{"data-label":l},{onFocus:null!==N?F:S,onBlur:()=>D(!1),onMouseEnter:null!==N?F:S,className:g(Ai.tableTd,i,o&&Ai.tableAction,r&&Ai.modifiers.action,c&&Ai.modifiers.center,b&&Ai.modifiers.noPadding,C&&dr,_&&sr.borderRight,E&&sr.borderLeft,Ai.modifiers[d],V&&Ai.tableDraggable,Y),ref:M},Q,T,C&&{style:Object.assign({[Fd]:I||void 0,[Bd]:k||0,[Hd]:R||0},T.style)},{children:X||n}));return null!==N&&(""!==N||"string"==typeof n)&&P?v.jsxs(v.Fragment,{children:[te,v.jsx(mi,{triggerRef:M,content:N||""===N&&n,isVisible:!0})]}):te},Wd=t.forwardRef(((e,t)=>v.jsx($d,Object.assign({},e,{innerRef:t}))));Wd.displayName="Td";const Ud=e=>{var{children:t,className:n}=e,i=a(e,["children","className"]);return v.jsx("caption",Object.assign({className:g(Ai.tableCaption,n)},i,{children:t}))};Ud.displayName="Caption";const qd=e=>{var{children:t,className:n}=e,i=a(e,["children","className"]);return v.jsx("div",Object.assign({className:g(n,cr)},i,{children:t}))};qd.displayName="OuterScrollContainer";const Gd=e=>{var{children:t,className:n,innerRef:i}=e,o=a(e,["children","className","innerRef"]);return v.jsx("div",Object.assign({ref:i,className:g(n,lr)},o,{children:t}))},Zd=t.forwardRef(((e,t)=>v.jsx(Gd,Object.assign({innerRef:t},e))));Zd.displayName="InnerScrollContainer",e.ActionsColumn=Li,e.Caption=Ud,e.CollapseColumn=Mi,e.DraggableCell=Bi,e.EditableSelectInputCell=Ki,e.EditableTextCell=io,e.ExpandableRowContent=oo,e.FavoritesCell=ka,e.HeaderCellInfoWrapper=Ao,e.InnerScrollContainer=Zd,e.OuterScrollContainer=qd,e.RowWrapper=tr,e.SelectColumn=ta,e.SortColumn=pa,e.Table=Ja,e.TableContext=Xa,e.TableText=Lo,e.Tbody=rr,e.Td=Wd,e.Th=zd,e.Thead=or,e.Tr=er,e.TreeRowWrapper=nr,e.Visibility=_a,e.applyCellEdits=(e,t)=>(e.cells.forEach((e=>{delete e.props.errorText;const n=void 0!==e.props.value&&null!==e.props.value,i=void 0!==e.props.editableValue&&null!==e.props.editableValue;n&&!i&&(e.props.editableValue=e.props.value),e.props&&n&&i&&("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:Ai.modifiers.breakWord}),e.calculateColumns=(e,t)=>e&&[...Ua(e,t),...za(t),...$a(t),...Ga(e,t),...Za(t),...Wa(t)].map(((e,n)=>Object.assign({},((e,t,n,...i)=>{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:Ha(e,o),cell:Va(e),props:Object.assign(Object.assign({"data-label":a,"data-key":n},e.hasOwnProperty("props")?e.props:{}),i)}})(e,t,n)))),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=xa,e.cellActions=ha,e.cellWidth=ya,e.classNames=Ea,e.collapsible=Na,e.compoundExpand=Ca,e.defaultTitle=Ba,e.editable=ja,e.emptyCol=Aa,e.emptyTD=Da,e.expandable=(e,{rowData:t})=>t&&t.hasOwnProperty("parent")?v.jsx(oo,{children:e}):e,e.expandedRow=Sa,e.favoritable=Ra,e.fitContent=()=>({className:Ai.modifiers.fitContent}),e.getErrorTextByValidator=ba,e.headerCol=(e="simple-node")=>(t,{rowIndex:n}={})=>{const i="object"==typeof t?t.title:t;return{component:"th",children:v.jsx("div",{id:`${e}${n}`,children:i})}},e.info=Ia,e.isRowExpanded=(e,t)=>{if(void 0!==e.parent)return e.hasOwnProperty("compoundParent")?((e,t,n)=>{for(const i 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},e.mapOpenedRows=(e,t)=>e.reduce(((e,n,i)=>{if(n.hasOwnProperty("parent")){e.length>0&&e[e.length-1]&&(e[e.length-1].rows=[...e[e.length-1].rows,t[i]],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[i]]})];return e}),[]),e.mapProps=Fa,e.nowrap=()=>({className:Ai.modifiers.nowrap}),e.parentId=Ma,e.scopeColTransformer=La,e.selectable=na,e.sortable=fa,e.sortableFavorites=ua,e.textCenter=()=>({textCenter:!0}),e.toCamel=ga,e.treeRow=Pa,e.truncate=()=>({className:Ai.modifiers.truncate}),e.validateCellEdits=(e,t,n,i="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,r=void 0!==o.props.editableValue&&null!==o.props.editableValue;if(o.props&&a&&r&&"save"===t){const t=Object.keys(n).filter((e=>n[e].includes(o.props.name))).map((t=>ba(t,e.rowEditValidationRules)));t.length?(o.props.errorText=o.props.name?t.join(", "):i,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:Ai.modifiers.wrap})}));
|