@patternfly/react-templates 6.5.0-prerelease.5 → 6.5.0-prerelease.50
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 +178 -0
- package/components/package.json +1 -1
- package/dist/dynamic/components/Dropdown/package.json +1 -1
- package/dist/dynamic/components/Select/package.json +1 -1
- package/dist/esm/components/Select/MultiTypeaheadSelect.js +2 -2
- package/dist/esm/components/Select/MultiTypeaheadSelect.js.map +1 -1
- package/dist/esm/components/Select/TypeaheadSelect.d.ts.map +1 -1
- package/dist/esm/components/Select/TypeaheadSelect.js +13 -7
- package/dist/esm/components/Select/TypeaheadSelect.js.map +1 -1
- package/dist/js/components/Select/MultiTypeaheadSelect.js +2 -2
- package/dist/js/components/Select/MultiTypeaheadSelect.js.map +1 -1
- package/dist/js/components/Select/TypeaheadSelect.d.ts.map +1 -1
- package/dist/js/components/Select/TypeaheadSelect.js +13 -7
- package/dist/js/components/Select/TypeaheadSelect.js.map +1 -1
- package/dist/umd/assets/{output-B0S322Xe.css → output-BTS6ztYO.css} +2011 -1863
- package/dist/umd/react-templates.min.js +1 -1
- package/package.json +6 -6
- package/src/components/Dropdown/__tests__/__snapshots__/SimpleDropdown.test.tsx.snap +34 -10
- package/src/components/Select/MultiTypeaheadSelect.tsx +2 -2
- package/src/components/Select/TypeaheadSelect.tsx +19 -7
- package/src/components/Select/__tests__/__snapshots__/CheckboxSelectSnapshots.test.tsx.snap +34 -10
- package/src/components/Select/__tests__/__snapshots__/MultiTypeaheadSelect.test.tsx.snap +20 -8
- package/src/components/Select/__tests__/__snapshots__/SimpleSelect.test.tsx.snap +34 -10
- package/src/components/Select/__tests__/__snapshots__/TypeaheadSelect.test.tsx.snap +20 -8
|
@@ -1 +1 @@
|
|
|
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).PatternFlyTemplates={},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 s=i(n);function o(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 s=0;for(i=Object.getOwnPropertySymbols(e);s<i.length;s++)t.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(n[i[s]]=e[i[s]])}return n}"function"==typeof SuppressedError&&SuppressedError;var a={exports:{}},l={},r=t,c=Symbol.for("react.element"),d=Symbol.for("react.fragment"),p=Object.prototype.hasOwnProperty,u=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function m(e,t,n){var i,s={},o=null,a=null;for(i in void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),void 0!==t.ref&&(a=t.ref),t)p.call(t,i)&&!f.hasOwnProperty(i)&&(s[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps)void 0===s[i]&&(s[i]=t[i]);return{$$typeof:c,type:e,key:o,ref:a,props:s,_owner:u.current}}l.Fragment=d,l.jsx=m,l.jsxs=m,a.exports=l;var g=a.exports;function h(...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=h(...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 b="pf-v6-c-divider",v="pf-v6-c-menu",x="pf-v6-c-menu__content",y="pf-v6-c-menu__item",O="pf-v6-c-menu__item-action",j="pf-v6-c-menu__item-check",w="pf-v6-c-menu__item-description",C="pf-v6-c-menu__item-external-icon",N="pf-v6-c-menu__item-icon",S="pf-v6-c-menu__item-main",I="pf-v6-c-menu__item-select-icon",E="pf-v6-c-menu__item-text",D="pf-v6-c-menu__item-toggle-icon",k="pf-v6-c-menu__list",L="pf-v6-c-menu__list-item",M="pf-v6-c-menu__search",T={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"},R="pf-v6-c-breadcrumb__link";let P=0;function _({name:e,xOffset:n=0,yOffset:i=0,width:s,height:a,svgPath:l,svgClassName:r}){var c;return c=class extends t.Component{constructor(){super(...arguments),this.id="icon-title-"+P++}render(){const e=this.props,{title:t,className:r}=e,c=o(e,["title","className"]),d=Boolean(t),p=[n,i,s,a].join(" "),u=["pf-v6-svg"];return r&&u.push(r),g.jsxs("svg",Object.assign({className:u.join(" "),viewBox:p,fill:"currentColor","aria-labelledby":d?this.id:null,"aria-hidden":!d||null,role:"img",width:"1em",height:"1em"},c,{children:[d&&g.jsx("title",{id:this.id,children:t}),Array.isArray(l)?l.map(((e,t)=>g.jsx("path",{className:e.className,d:e.path},`${e.path}-${t}`))):g.jsx("path",{d:l})]}))}},c.displayName=e,c}const A=_({name:"CheckCircleIcon",height:512,width:512,svgPath:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z",yOffset:0,xOffset:0,svgClassName:void 0}),F=_({name:"ExclamationCircleIcon",height:512,width:512,svgPath:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z",yOffset:0,xOffset:0,svgClassName:void 0}),H=_({name:"ExclamationTriangleIcon",height:512,width:576,svgPath:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z",yOffset:0,xOffset:0,svgClassName:void 0}),B=_({name:"InfoCircleIcon",height:512,width:512,svgPath:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z",yOffset:0,xOffset:0,svgClassName:void 0}),$=_({name:"BellIcon",height:1024,width:896,svgPath:"M448,0 C465.333333,0 480.333333,6.33333333 493,19 C505.666667,31.6666667 512,46.6666667 512,64 L512,106 L514.23,106.45 C587.89,121.39 648.48,157.24 696,214 C744,271.333333 768,338.666667 768,416 C768,500 780,568.666667 804,622 C818.666667,652.666667 841.333333,684 872,716 C873.773676,718.829136 875.780658,721.505113 878,724 C890,737.333333 896,752.333333 896,769 C896,785.666667 890,800.333333 878,813 C866,825.666667 850.666667,832 832,832 L63.3,832 C44.9533333,831.84 29.8533333,825.506667 18,813 C6,800.333333 0,785.666667 0,769 C0,752.333333 6,737.333333 18,724 L24,716 L25.06,714.9 C55.1933333,683.28 77.5066667,652.313333 92,622 C116,568.666667 128,500 128,416 C128,338.666667 152,271.333333 200,214 C248,156.666667 309.333333,120.666667 384,106 L384,63.31 C384.166667,46.27 390.5,31.5 403,19 C415.666667,6.33333333 430.666667,0 448,0 Z M576,896 L576,897.08 C575.74,932.6 563.073333,962.573333 538,987 C512.666667,1011.66667 482.666667,1024 448,1024 C413.333333,1024 383.333333,1011.66667 358,987 C332.666667,962.333333 320,932 320,896 L576,896 Z",yOffset:0,xOffset:0,svgClassName:void 0});var W;!function(e){e.success="success",e.error="error",e.warning="warning",e.default="default"}(W||(W={}));const z="Escape",V="Enter",U={success:A,danger:F,warning:H,info:B,custom:$};function q(e="pf"){return`${e}-${(new Date).getTime()+Math.random().toString(36).slice(2)}`}const X=(e,t,n="",i,s)=>e?Object.entries(e||{}).map((([e,t])=>`${n}${t}${"default"!==e?`-on-${e}`:""}`)).map(K).map((e=>e.replace(/-?(\dxl)/gi,((e,t)=>`_${t}`)))).map((e=>t.modifiers[e])).filter(Boolean).join(" "):"",G=e=>e.toUpperCase().replace("-","").replace("_",""),K=e=>e.replace(/([-_][a-z])/gi,G),Z=!("undefined"==typeof window||!window.document||!window.document.createElement),Y=e=>{e.forEach((e=>{e.current&&clearTimeout(e.current)}))};let J=0;class Q extends t.Component{constructor(){super(...arguments),this.uniqueElement=this.props.isRandom?"undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():q():J++,this.id=`${this.props.prefix}${this.uniqueElement}`}render(){return this.props.children(this.id)}}Q.displayName="GenerateId",Q.defaultProps={prefix:"pf-random-id-",isRandom:!1};let ee=0;const te="OUIA-Generated-",ne={};function ie(e,t,n=!0){return{"data-ouia-component-type":`PF6/${e}`,"data-ouia-safe":n,"data-ouia-component-id":t}}const se=(e,t,n=!0,i)=>({"data-ouia-component-type":`PF6/${e}`,"data-ouia-safe":n,"data-ouia-component-id":oe(e,t,i)}),oe=(e,n,i)=>{const s=t.useMemo((()=>ae(e,i)),[e,i]);return null!=n?n:s};function ae(e,t){try{let n;return n="undefined"!=typeof window?`${window.location.href}-${e}-${t||""}`:`${e}-${t||""}`,ne[n]||(ne[n]=0),`${te}${e}-${t?`${t}-`:""}${++ne[n]}`}catch(n){return`${te}${e}-${t?`${t}-`:""}${++ee}`}}function le(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 re(e){if("[object Window]"!==e.toString()){const t=e.ownerDocument;return t?t.defaultView:window}return e}function ce(e){const t=re(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function de(e){return e instanceof re(e).Element||e instanceof Element}function pe(e){return e instanceof re(e).HTMLElement||e instanceof HTMLElement}function ue(e){return e?(e.nodeName||"").toLowerCase():null}function fe(e){return(de(e)?e.ownerDocument:e.document).documentElement}function me(e){return le(fe(e)).left+ce(e).scrollLeft}function ge(e){return re(e).getComputedStyle(e)}function he(e){const{overflow:t,overflowX:n,overflowY:i}=ge(e);return/auto|scroll|overlay|hidden/.test(t+i+n)}function be(e,t,n=!1){const i=fe(t),s=le(e),o=pe(t);let a={scrollLeft:0,scrollTop:0},l={x:0,y:0};var r,c;return(o||!o&&!n)&&(("body"!==ue(t)||he(i))&&(a=(r=t)!==re(r)&&pe(r)?{scrollLeft:(c=r).scrollLeft,scrollTop:c.scrollTop}:ce(r)),pe(t)?(l=le(t),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=me(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function ve(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function xe(e){return"html"===ue(e)?e:e.assignedSlot||e.parentNode||e.host||fe(e)}function ye(e){return["html","body","#document"].indexOf(ue(e))>=0?e.ownerDocument.body:pe(e)&&he(e)?e:ye(xe(e))}function Oe(e,t=[]){const n=ye(e),i="body"===ue(n),s=re(n),o=i?[s].concat(s.visualViewport||[],he(n)?n:[]):n,a=t.concat(o);return i?a:a.concat(Oe(xe(o)))}function je(e){return["table","td","th"].indexOf(ue(e))>=0}function we(e){if(!pe(e)||"fixed"===ge(e).position)return null;const t=e.offsetParent;if(t){const e=fe(t);if("body"===ue(t)&&"static"===ge(t).position&&"static"!==ge(e).position)return e}return t}function Ce(e){const t=re(e);let n=we(e);for(;n&&je(n)&&"static"===ge(n).position;)n=we(n);return n&&"body"===ue(n)&&"static"===ge(n).position?t:n||function(e){let t=xe(e);for(;pe(t)&&["html","body"].indexOf(ue(t))<0;){const e=ge(t);if("none"!==e.transform||"none"!==e.perspective||e.willChange&&"auto"!==e.willChange)return t;t=t.parentNode}return null}(e)||t}const Ne="top",Se="bottom",Ie="right",Ee="left",De="auto",ke=[Ne,Se,Ie,Ee],Le="start",Me="end",Te="clippingParents",Re="viewport",Pe="popper",_e="reference",Ae=ke.reduce(((e,t)=>e.concat([`${t}-${Le}`,`${t}-${Me}`])),[]),Fe=[...ke,De].reduce(((e,t)=>e.concat([t,`${t}-${Le}`,`${t}-${Me}`])),[]),He=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Be(e){const t=new Map,n=new Set,i=[];function s(e){n.add(e.name);[...e.requires||[],...e.requiresIfExists||[]].forEach((e=>{if(!n.has(e)){const n=t.get(e);n&&s(n)}})),i.push(e)}return e.forEach((e=>{t.set(e.name,e)})),e.forEach((e=>{n.has(e.name)||s(e)})),i}function $e(e){let t;return()=>(t||(t=new Promise((n=>{Promise.resolve().then((()=>{t=void 0,n(e())}))}))),t)}function We(e){return e.split("-")[0]}function ze(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 Ve(e){return Object.assign(Object.assign({},e),{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ue(e,t){return t===Re?Ve(function(e){const t=re(e),n=fe(e),i=t.visualViewport;let s=n.clientWidth,o=n.clientHeight,a=0,l=0;return i&&(s=i.width,o=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=i.offsetLeft,l=i.offsetTop)),{width:s,height:o,x:a+me(e),y:l}}(e)):pe(t)?function(e){const t=le(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):Ve(function(e){const t=fe(e),n=ce(e),i=e.ownerDocument.body,s=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 a=-n.scrollLeft+me(e);const l=-n.scrollTop;return"rtl"===ge(i||t).direction&&(a+=Math.max(t.clientWidth,i?i.clientWidth:0)-s),{width:s,height:o,x:a,y:l}}(fe(e)))}function qe(e,t,n){const i="clippingParents"===t?function(e){const t=Oe(xe(e)),n=["absolute","fixed"].indexOf(ge(e).position)>=0&&pe(e)?Ce(e):e;return de(n)?t.filter((e=>de(e)&&ze(e,n)&&"body"!==ue(e))):[]}(e):[].concat(t),s=[...i,n],o=s[0],a=s.reduce(((t,n)=>{const i=Ue(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}),Ue(e,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Xe(e){return e.split("-")[1]}function Ge(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ke({reference:e,element:t,placement:n}){const i=n?We(n):null,s=n?Xe(n):null,o=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2;let l;switch(i){case Ne:l={x:o,y:e.y-t.height};break;case Se:l={x:o,y:e.y+e.height};break;case Ie:l={x:e.x+e.width,y:a};break;case Ee:l={x:e.x-t.width,y:a};break;default:l={x:e.x,y:e.y}}const r=i?Ge(i):null;if(null!=r){const n="y"===r?"height":"width";switch(s){case Le:l[r]=Math.floor(l[r])-Math.floor(e[n]/2-t[n]/2);break;case Me:l[r]=Math.floor(l[r])+Math.ceil(e[n]/2-t[n]/2)}}return l}function Ze(e){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),e)}function Ye(e,t){return t.reduce(((t,n)=>(t[n]=e,t)),{})}function Je(e,t={}){const{placement:n=e.placement,boundary:i=Te,rootBoundary:s=Re,elementContext:o=Pe,altBoundary:a=!1,padding:l=0}=t,r=Ze("number"!=typeof l?l:Ye(l,ke)),c=o===Pe?_e:Pe,d=e.elements.reference,p=e.rects.popper,u=e.elements[a?c:o],f=qe(de(u)?u:u.contextElement||fe(e.elements.popper),i,s),m=le(d),g=Ke({reference:m,element:p,placement:n}),h=Ve(Object.assign(Object.assign({},p),g)),b=o===Pe?h:m,v={top:f.top-b.top+r.top,bottom:b.bottom-f.bottom+r.bottom,left:f.left-b.left+r.left,right:b.right-f.right+r.right},x=e.modifiersData.offset;if(o===Pe&&x){const e=x[n];Object.keys(v).forEach((t=>{const n=[Ie,Se].indexOf(t)>=0?1:-1,i=[Ne,Se].indexOf(t)>=0?"y":"x";v[t]+=e[i]*n}))}return v}const Qe={placement:"bottom",modifiers:[],strategy:"absolute"};function et(...e){return!e.some((e=>!(e&&"function"==typeof e.getBoundingClientRect)))}function tt(e={}){const{defaultModifiers:t=[],defaultOptions:n=Qe}=e;return function(e,i,s=n){let o={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},Qe),n),modifiersData:{},elements:{reference:e,popper:i},attributes:{},styles:{}},a=[],l=!1;const r={state:o,setOptions(s){c(),o.options=Object.assign(Object.assign(Object.assign({},n),o.options),s),o.scrollParents={reference:de(e)?Oe(e):e.contextElement?Oe(e.contextElement):[],popper:Oe(i)};const l=function(e){const t=Be(e);return He.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=l.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:r,options:t}),s=()=>{};a.push(i||s)}})),r.update()},forceUpdate(){if(l)return;const{reference:e,popper:t}=o.elements;if(et(e,t)){o.rects={reference:be(e,Ce(t),"fixed"===o.options.strategy),popper:ve(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:r})||o)}}},update:$e((()=>new Promise((e=>{r.forceUpdate(),e(o)})))),destroy(){c(),l=!0}};if(!et(e,i))return r;function c(){a.forEach((e=>e())),a=[]}return r.setOptions(s).then((e=>{!l&&s.onFirstUpdate&&s.onFirstUpdate(e)})),r}}tt();const nt={passive:!0};const it={top:"auto",right:"auto",bottom:"auto",left:"auto"};function st({popper:e,popperRect:t,placement:n,offsets:i,position:s,gpuAcceleration:o,adaptive:a}){let{x:l,y:r}=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=Ee,u=Ne;const f=window;if(a){let i=Ce(e);i===re(e)&&(i=fe(e)),n===Ne&&(u=Se,r-=i.clientHeight-t.height,r*=o?1:-1),n===Ee&&(p=Ie,l-=i.clientWidth-t.width,l*=o?1:-1)}const m=Object.assign({position:s},a&&it);return o?Object.assign(Object.assign({},m),{[u]:d?"0":"",[p]:c?"0":"",transform:(f.devicePixelRatio||1)<2?`translate(${l}px, ${r}px)`:`translate3d(${l}px, ${r}px, 0)`}):Object.assign(Object.assign({},m),{[u]:d?`${r}px`:"",[p]:c?`${l}px`:"",transform:""})}var ot={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function({state:e,options:t,name:n}){const{offset:i=[0,0]}=t,s=Fe.reduce(((t,n)=>(t[n]=function(e,t,n){const i=We(e),s=[Ee,Ne].indexOf(i)>=0?-1:1;let[o,a]="function"==typeof n?n(Object.assign(Object.assign({},t),{placement:e})):n;return o=o||0,a=(a||0)*s,[Ee,Ie].indexOf(i)>=0?{x:a,y:o}:{x:o,y:a}}(n,e.rects,i),t)),{}),{x:o,y:a}=s[e.placement];null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=o,e.modifiersData.popperOffsets.y+=a),e.modifiersData[n]=s}};const at={left:"right",right:"left",bottom:"top",top:"bottom"};function lt(e){return e.replace(/left|right|bottom|top/g,(e=>at[e]))}const rt={start:"end",end:"start"};function ct(e){return e.replace(/start|end/g,(e=>rt[e]))}function dt(e,t={}){const{placement:n,boundary:i,rootBoundary:s,padding:o,flipVariations:a,allowedAutoPlacements:l=Fe}=t,r=Xe(n),c=r?a?Ae:Ae.filter((e=>Xe(e)===r)):ke;let d=c.filter((e=>l.indexOf(e)>=0));0===d.length&&(d=c);const p=d.reduce(((t,n)=>(t[n]=Je(e,{placement:n,boundary:i,rootBoundary:s,padding:o})[We(n)],t)),{});return Object.keys(p).sort(((e,t)=>p[e]-p[t]))}var pt={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:s=!0,fallbackPlacements:o,padding:a,boundary:l,rootBoundary:r,altBoundary:c,flipVariations:d=!0,allowedAutoPlacements:p}=t,u=e.options.placement,f=We(u),m=[u,...o||(f===u||!d?[lt(u)]:function(e){if(We(e)===De)return[];const t=lt(e);return[ct(e),t,ct(t)]}(u))].reduce(((t,n)=>t.concat(We(n)===De?dt(e,{placement:n,boundary:l,rootBoundary:r,padding:a,flipVariations:d,allowedAutoPlacements:p}):n)),[]),g=e.rects.reference,h=e.rects.popper,b=new Map;let v=!0,x=m[0];for(let t=0;t<m.length;t++){const n=m[t],o=We(n),d=Xe(n)===Le,p=[Ne,Se].indexOf(o)>=0,u=p?"width":"height",f=Je(e,{placement:n,boundary:l,rootBoundary:r,altBoundary:c,padding:a});let y=p?d?Ie:Ee:d?Se:Ne;g[u]>h[u]&&(y=lt(y));const O=lt(y),j=[];if(i&&j.push(f[o]<=0),s&&j.push(f[y]<=0,f[O]<=0),j.every((e=>e))){x=n,v=!1;break}b.set(n,j)}if(v){for(let e=d?3:1;e>0;e--){const t=m.find((t=>{const n=b.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 ut(e,t,n){return Math.max(e,Math.min(t,n))}var ft={name:"preventOverflow",enabled:!0,phase:"main",fn:function({state:e,options:t,name:n}){const{mainAxis:i=!0,altAxis:s=!1,boundary:o,rootBoundary:a,altBoundary:l,padding:r,tether:c=!0,tetherOffset:d=0}=t,p=Je(e,{boundary:o,rootBoundary:a,padding:r,altBoundary:l}),u=We(e.placement),f=Xe(e.placement),m=!f,g=Ge(u),h="x"===g?"y":"x",b=e.modifiersData.popperOffsets,v=e.rects.reference,x=e.rects.popper,y="function"==typeof d?d(Object.assign(Object.assign({},e.rects),{placement:e.placement})):d,O={x:0,y:0};if(b){if(i){const t="y"===g?Ne:Ee,n="y"===g?Se:Ie,i="y"===g?"height":"width",s=b[g],o=b[g]+p[t],a=b[g]-p[n],l=c?-x[i]/2:0,r=f===Le?v[i]:x[i],d=f===Le?-x[i]:-v[i],u=e.elements.arrow,h=c&&u?ve(u):{width:0,height:0},j=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},w=j[t],C=j[n],N=ut(0,v[i],h[i]),S=m?v[i]/2-l-N-w-y:r-N-w-y,I=m?-v[i]/2+l+N+C+y:d+N+C+y,E=e.elements.arrow&&Ce(e.elements.arrow),D=E?"y"===g?E.clientTop||0:E.clientLeft||0:0,k=e.modifiersData.offset?e.modifiersData.offset[e.placement][g]:0,L=b[g]+S-k-D,M=b[g]+I-k,T=ut(c?Math.min(o,L):o,s,c?Math.max(a,M):a);b[g]=T,O[g]=T-s}if(s){const e="x"===g?Ne:Ee,t="x"===g?Se:Ie,n=b[h],i=ut(n+p[e],n,n-p[t]);b[h]=i,O[h]=i-n}e.modifiersData[n]=O}},requiresIfExists:["offset"]};var mt={name:"arrow",enabled:!0,phase:"main",fn:function({state:e,name:t}){const n=e.elements.arrow,i=e.modifiersData.popperOffsets,s=We(e.placement),o=Ge(s),a=[Ee,Ie].indexOf(s)>=0?"height":"width";if(!n||!i)return;const l=e.modifiersData[`${t}#persistent`].padding,r=ve(n),c="y"===o?Ne:Ee,d="y"===o?Se:Ie,p=e.rects.reference[a]+e.rects.reference[o]-i[o]-e.rects.popper[a],u=i[o]-e.rects.reference[o],f=Ce(n),m=f?"y"===o?f.clientHeight||0:f.clientWidth||0:0,g=p/2-u/2,h=l[c],b=m-r[a]-l[d],v=m/2-r[a]/2+g,x=ut(h,v,b),y=o;e.modifiersData[t]={[y]:x,centerOffset:x-v}},effect:function({state:e,options:t,name:n}){let{element:i="[data-popper-arrow]",padding:s=0}=t;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i),i))&&ze(e.elements.popper,i)&&(e.elements.arrow=i,e.modifiersData[`${n}#persistent`]={padding:Ze("number"!=typeof s?s:Ye(s,ke))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function gt(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 ht(e){return[Ne,Ie,Se,Ee].some((t=>e[t]>=0))}const bt=tt({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:()=>{},effect:function({state:e,instance:t,options:n}){const{scroll:i=!0,resize:s=!0}=n,o=re(e.elements.popper),a=[...e.scrollParents.reference,...e.scrollParents.popper];return i&&a.forEach((e=>{e.addEventListener("scroll",t.update,nt)})),s&&o.addEventListener("resize",t.update,nt),()=>{i&&a.forEach((e=>{e.removeEventListener("scroll",t.update,nt)})),s&&o.removeEventListener("resize",t.update,nt)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function({state:e,name:t}){e.modifiersData[t]=Ke({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,s={placement:We(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),st(Object.assign(Object.assign({},s),{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:i})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign(Object.assign({},e.styles.arrow),st(Object.assign(Object.assign({},s),{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]||{},s=e.elements[t];pe(s)&&ue(s)&&(Object.assign(s.style,n),Object.keys(i).forEach((e=>{const t=i[e];!1===t?s.removeAttribute(e):s.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],s=e.attributes[n]||{},o=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:t[n]).reduce(((e,t)=>(e[t]="",e)),{});pe(i)&&ue(i)&&(Object.assign(i.style,o),Object.keys(s).forEach((e=>{i.removeAttribute(e)})))}))}},requires:["computeStyles"]},ot,pt,ft,mt,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function({state:e,name:t}){const n=e.rects.reference,i=e.rects.popper,s=e.modifiersData.preventOverflow,o=Je(e,{elementContext:"reference"}),a=Je(e,{altBoundary:!0}),l=gt(o,n),r=gt(a,i,s),c=ht(l),d=ht(r);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:r,isReferenceHidden:c,hasPopperEscaped:d},e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]}),vt=Z?t.useLayoutEffect:t.useEffect,xt=e=>e.reduce(((e,[t,n])=>(e[t]=n,e)),{}),yt=[],Ot=(e,n,i={})=>{const s=t.useRef(null),o={onFirstUpdate:i.onFirstUpdate,placement:i.placement||"bottom",strategy:i.strategy||"absolute",modifiers:i.modifiers||yt},[a,l]=t.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"}},attributes:{}}),r=t.useMemo((()=>({name:"updateState",enabled:!0,phase:"write",fn:({state:e})=>{const t=Object.keys(e.elements);l({styles:xt(t.map((t=>[t,e.styles[t]||{}]))),attributes:xt(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,r,{name:"applyStyles",enabled:!1}]};return t=s.current,n=e,JSON.stringify(t)===JSON.stringify(n)?s.current||e:(s.current=e,e);var t,n}),[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,r]),d=t.useRef(void 0);return vt((()=>{d&&d.current&&d.current.setOptions(c)}),[c]),vt((()=>{if(null==e||null==n)return;const t=(i.createPopper||bt)(e,n,c);return d.current=t,()=>{t.destroy(),d.current=null}}),[e,n,i.createPopper]),{state:d.current?d.current.state:null,styles:a.styles,attributes:a.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}},jt={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"},wt=e=>`opacity ${e}ms cubic-bezier(.54, 1.5, .38, 1.11)`,Ct=({trigger:e,popper:n,direction:i="down",position:o="start",placement:a,width:l,minWidth:r="trigger",maxWidth:c,appendTo:d=(()=>document.body),zIndex:p=9999,isVisible:u=!0,positionModifiers:f,distance:m=0,offset:b,onMouseEnter:v,onMouseLeave:x,onFocus:y,onBlur:O,onDocumentClick:j,onTriggerClick:w,onTriggerEnter:C,onPopperClick:N,onPopperMouseEnter:S,onPopperMouseLeave:I,onDocumentKeyDown:E,enableFlip:D=!0,flipBehavior:k="flip",triggerRef:L,popperRef:M,animationDuration:T=0,entryDelay:R=0,exitDelay:P=0,onHidden:_=(()=>{}),onHide:A=(()=>{}),onMount:F=(()=>{}),onShow:H=(()=>{}),onShown:B=(()=>{}),preventOverflow:$=!1})=>{var W;const[z,V]=t.useState(null),[U,q]=t.useState(null),[X,G]=t.useState(null),[K,Z]=t.useState(null),[J,Q]=t.useState(!1),[ee,te]=t.useState(0),[ne,ie]=t.useState(u),se=t.useRef(null),oe=t.useRef(null),ae=t.useRef(null),le=t.useRef(void 0),re=U||z,ce=u||ne,de=((e,t="ltr")=>{if(!e)return t;const n=getComputedStyle(e).getPropertyValue("direction");return["ltr","rtl"].includes(n)?n:t})(null===(W=(null==L?void 0:L.current)||z)||void 0===W?void 0:W.parentElement),pe=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)}[de][o]}),[o,de]),ue=t.useCallback((e=>j(e,re,X)),[ce,z,U,X,j]);t.useEffect((()=>{Q(!0),F()}),[]),t.useEffect((()=>()=>{Y([se,ae,oe])}),[]),t.useEffect((()=>{L&&(L.current?q(L.current):"function"==typeof L&&q(L()))}),[L,e]),t.useEffect((()=>{M&&(M.current?G(M.current):"function"==typeof M&&G(M()))}),[ce,M]),t.useEffect((()=>{const e=new MutationObserver((()=>{Oe&&Oe()}));return X&&e.observe(X,{attributes:!0,childList:!0,subtree:!0}),()=>{e.disconnect()}}),[X]);const fe=(e,t,n,i=!1)=>{e&&t&&t.addEventListener(n,e,{capture:i})},me=(e,t,n,i=!1)=>{e&&t&&t.removeEventListener(n,e,{capture:i})};t.useEffect((()=>(fe(v,re,"mouseenter"),fe(x,re,"mouseleave"),fe(y,re,"focus"),fe(O,re,"blur"),fe(w,re,"click"),fe(C,re,"keydown"),fe(N,X,"click"),fe(S,X,"mouseenter"),fe(I,X,"mouseleave"),j&&fe(ue,document,"click",!0),fe(E,document,"keydown",!0),()=>{me(v,re,"mouseenter"),me(x,re,"mouseleave"),me(y,re,"focus"),me(O,re,"blur"),me(w,re,"click"),me(C,re,"keydown"),me(N,X,"click"),me(S,X,"mouseenter"),me(I,X,"mouseleave"),j&&me(ue,document,"click",!0),me(E,document,"keydown",!0)})),[z,X,v,x,y,O,w,C,N,S,I,j,E,U]);const ge=()=>{if(a)return a;let e="up"===i?"top":"bottom";return"center"!==pe&&(e=`${e}-${"right"===pe?"end":"start"}`),e},he=t.useMemo(ge,[i,pe,a]),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=>jt[e])))(ge())),[i,pe,a]),ve=t.useMemo((()=>({name:"widthMods",enabled:void 0!==l||void 0!==r||void 0!==c,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{const t=e.rects.reference.width;l&&(e.styles.popper.width="trigger"===l?`${t}px`:l),r&&(e.styles.popper.minWidth="trigger"===r?`${t}px`:r),c&&(e.styles.popper.maxWidth="trigger"===c?`${t}px`:c)},effect:({state:e})=>{const t=e.elements.reference.offsetWidth;return l&&(e.elements.popper.style.width="trigger"===l?`${t}px`:l),r&&(e.elements.popper.style.minWidth="trigger"===r?`${t}px`:r),c&&(e.elements.popper.style.maxWidth="trigger"===c?`${t}px`:c),()=>{}}})),[l,r,c]),{styles:xe,attributes:ye,update:Oe,forceUpdate:je}=Ot(re,X,{placement:he,modifiers:[{name:"offset",options:{offset:b||[0,m]}},{name:"preventOverflow",enabled:$},{name:"hide",enabled:!0},{name:"flip",enabled:he.startsWith("auto")||D,options:{fallbackPlacements:"flip"===k?[be]:k}},ve]});t.useEffect((()=>{var e,t,i,s,o,a,l;const r=(null===(s=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===s?void 0:s.children)||(null===(l=null===(a=null===(o=null==n?void 0:n.props)||void 0===o?void 0:o.children)||void 0===a?void 0:a.props)||void 0===l?void 0:l.children);Z(r),r&&K&&r!==K&&je&&je()}),[n]),t.useEffect((()=>{le.current<P&&(Y([se,ae]),ae.current=setTimeout((()=>{se.current=setTimeout((()=>{ie(!1)}),T)}),P)),le.current=P}),[P]);t.useEffect((()=>{u?(H(),Y([se,ae]),oe.current=setTimeout((()=>{ie(!0),te(1),B()}),R)):(A(),Y([oe]),ae.current=setTimeout((()=>{te(0),se.current=setTimeout((()=>{ie(!1),G(null),_()}),T)}),P))}),[u]);const we=Object.assign({className:h(n.props&&n.props.className,f&&(()=>{if(ye&&ye.popper&&ye.popper["data-popper-placement"]){const e=ye.popper["data-popper-placement"];return f[e]}return f.top})()),style:Object.assign(Object.assign(Object.assign({},n.props&&n.props.style||{}),xe.popper),{zIndex:p,opacity:ee,transition:wt(T)})},ye.popper),Ce=()=>{const e=t.cloneElement(n,we);return M?e:g.jsx("div",{style:{display:"contents"},ref:e=>{G(null==e?void 0:e.firstElementChild)},children:e})};return g.jsxs(g.Fragment,{children:[!L&&e&&t.isValidElement(e)&&g.jsx("div",{style:{display:"contents"},ref:e=>{V(null==e?void 0:e.firstElementChild)},children:e}),L&&e&&t.isValidElement(e)&&e,J&&ce&&(()=>{if("inline"===d)return Ce();{const e="function"==typeof d?d():d;return s.createPortal(Ce(),e)}})()]})};Ct.displayName="Popper";const Nt=(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 s;s="ArrowDown"===e.key?i[0]:i[i.length-1],s&&s.focus()};class St 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:s,noHorizontalArrowHandling:o,noEnterHandling:a,noSpaceHandling:l,updateTabIndex:r,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;a||"Enter"===m&&(e.preventDefault(),e.stopImmediatePropagation(),document.activeElement.click()),l||" "===m&&(e.preventDefault(),e.stopImmediatePropagation(),document.activeElement.click()),((e,t,n=(e=>document.activeElement.contains(e)),i=(e=>e),s=["A","BUTTON","INPUT"],o=!1,a=!1,l=!0,r=!0)=>{const c=document.activeElement,d=e.key;let p=null;if(!o&&["ArrowUp","ArrowDown"].includes(d)){e.preventDefault(),e.stopImmediatePropagation();let s=-1;t.forEach(((e,o)=>{if(n(e)){let e=0;for(;!p&&e<t.length&&-1*e<t.length;)"ArrowUp"===d?e--:e++,s=o+e,s>=t.length&&(s=0),s<0&&(s=t.length-1),p=i(t[s])}}))}if(!a&&["ArrowLeft","ArrowRight"].includes(d)){e.preventDefault(),e.stopImmediatePropagation();let i=-1;t.forEach(((o,a)=>{var l;if(n(o)){const n=t[a].querySelectorAll(s.join(","));if(!n.length||r){let e=c;for(;e;){const t=e.parentElement===o?e:e.parentElement;if(e="ArrowLeft"===d?t.previousElementSibling:t.nextElementSibling,e){if(s.includes(null==e?void 0:e.tagName)){p=e;break}if(s.includes(null===(l=e.children[0])||void 0===l?void 0:l.tagName)){p=e.children[0];break}}}}else n.forEach(((t,s)=>{e.target===t&&(i=s+("ArrowLeft"===d?-1:1),i>=n.length&&(i=0),i<0&&(i=n.length-1),p=n[i])}))}}))}p&&(l&&(c.tabIndex=-1,p.tabIndex=0),p.focus())})(e,f,n,i,c,s,o,r,u)},this._isEventFromContainer=e=>{const{containerRef:t}=this.props;return t.current&&t.current.contains(e.target)}}componentDidMount(){Z&&window.addEventListener("keydown",this.keyHandler)}componentWillUnmount(){Z&&window.removeEventListener("keydown",this.keyHandler)}render(){return null}}St.displayName="KeyboardHandler",St.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 It=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"}),Et=t.createContext({itemId:null,isDisabled:!1});class Dt extends t.Component{constructor(e){super(e),this.menuRef=t.createRef(),this.activeMenu=null,this.state={ouiaStateId:ae(kt.displayName),transitionMoveTarget:null,flyoutRef:null,currentDrilldownMenuId:this.props.id},this.handleDrilldownTransition=e=>{const t=this.menuRef.current;if(t&&(t===e.target.closest(`.${v}`)||Array.from(t.getElementsByClassName(v)).includes(e.target.closest(`.${v}`))))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 s=i.filter((e=>!(e.classList.contains("pf-m-disabled")||e.classList.contains(b))))[0].firstChild;s.focus(),s.tabIndex=0}},this.handleExtraKeys=e=>{const t=this.props.containsDrilldown,n=document.activeElement;if(e.target.closest(`.${v}`)===this.activeMenu||e.target.classList.contains(R)||(this.activeMenu=e.target.closest(`.${v}`)),"INPUT"===e.target.tagName)return;const i=this.activeMenu,s=e.key,o=n.classList.contains(R);if(" "===s||"Enter"===s){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(v)){const e=Array.from(n.nextElementSibling.getElementsByTagName("UL")[0].children).filter((e=>!(e.classList.contains("pf-m-disabled")||e.classList.contains(b))));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(b)))):[]:this.menuRef.current?Array.from(this.menuRef.current.getElementsByTagName("LI")).filter((e=>!(e.classList.contains("pf-m-disabled")||e.classList.contains(b)))):[],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(){Z&&this.props.containsDrilldown&&this.props.isRootMenu&&window.addEventListener("transitionend",this.handleDrilldownTransition),this.allowTabFirstItem()}componentWillUnmount(){Z&&this.props.containsDrilldown&&this.props.isRootMenu&&window.removeEventListener("transitionend",this.handleDrilldownTransition)}componentDidUpdate(e){e.children!==this.props.children&&this.allowTabFirstItem()}render(){var e,t;const n=this.props,{id:i,children:s,className:a,onSelect:l,selected:r=null,onActionClick:c,ouiaId:d,ouiaSafe:p,containsFlyout:u,containsDrilldown:f,isMenuDrilledIn:m,isPlain:b,isScrollable:x,drilldownItemPath:y,drilledInMenus:O,onDrillIn:j,onDrillOut:w,onGetMenuHeight:C,parentMenu:N=null,activeItemId:S=null,innerRef:I,isRootMenu:E,activeMenu:D,role:k,isNavFlyout:L}=n,P=o(n,["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"]),_=m||O&&O.includes(i)||!1;return g.jsxs(It.Provider,{value:{menuId:i,parentMenu:N||i,onSelect:l,onActionClick:c,activeItemId:S,selected:r,drilledInMenus:O,drilldownItemPath:y,onDrillIn:j,onDrillOut:w,onGetMenuHeight:C,flyoutRef:this.state.flyoutRef,setFlyoutRef:e=>this.setState({flyoutRef:e}),disableHover:null!==(t=null===(e=this.context)||void 0===e?void 0:e.disableHover)&&void 0!==t&&t,role:k},children:[E&&g.jsx(St,{containerRef:this.menuRef||null,additionalKeyHandler:this.handleExtraKeys,createNavigableElements:this.createNavigableElements,isActiveElement:e=>document.activeElement.closest("li")===e||document.activeElement.parentElement===e||document.activeElement.closest(`.${M}`)===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(R)||"INPUT"===document.activeElement.tagName),noEnterHandling:!0,noSpaceHandling:!0}),g.jsx("div",Object.assign({id:i,className:h(v,b&&T.plain,x&&T.scrollable,u&&T.flyout,L&&"pf-m-nav",f&&T.drilldown,_&&T.drilledIn,a),ref:this.menuRef},ie(kt.displayName,void 0!==d?d:this.state.ouiaStateId,p),P,{children:s}))]})}}Dt.displayName="Menu",Dt.contextType=It,Dt.defaultProps={ouiaSafe:!0,isRootMenu:!0,isPlain:!1,isScrollable:!1,role:"menu"};const kt=t.forwardRef(((e,t)=>g.jsx(Dt,Object.assign({},e,{innerRef:t}))));kt.displayName="Menu";const Lt="--pf-v6-c-menu__content--Height",Mt="--pf-v6-c-menu__content--MaxHeight",Tt=t.forwardRef(((e,n)=>{const{getHeight:i,children:s,menuHeight:a,maxMenuHeight:l}=e,r=o(e,["getHeight","children","menuHeight","maxMenuHeight"]);t.createRef();return g.jsx(It.Consumer,{children:({menuId:t,onGetMenuHeight:n})=>g.jsx("div",Object.assign({},r,{className:h(x,e.className),ref:e=>{((e,t,n)=>{if(e){let s=e.clientHeight,o=null,a=e.closest(`.${k}`);for(;null!==a&&1===a.nodeType;)a.classList.contains(k)&&(o=a),a=a.parentElement;if(o){const e=getComputedStyle(o);s+=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,s),i&&i(s.toString())}})(e,t,n)},style:Object.assign(Object.assign({},a&&{[Lt]:a}),l&&{[Mt]:l}),children:s}))})}));Tt.displayName="MenuContent";const Rt="--pf-v6-c-menu--m-flyout__menu--top-offset",Pt="--pf-v6-c-menu--m-flyout__menu--m-left--right-offset",_t="--pf-v6-c-menu--m-flyout__menu--left-offset",At=_({name:"ExternalLinkAltIcon",height:512,width:512,svgPath:"M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z",yOffset:0,xOffset:0,svgClassName:void 0}),Ft=_({name:"AngleRightIcon",height:512,width:256,svgPath:"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z",yOffset:0,xOffset:0,svgClassName:void 0}),Ht=_({name:"AngleLeftIcon",height:512,width:256,svgPath:"M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z",yOffset:0,xOffset:0,svgClassName:void 0}),Bt=_({name:"CheckIcon",height:512,width:512,svgPath:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z",yOffset:0,xOffset:0,svgClassName:void 0});var $t="pf-v6-c-check",Wt="pf-v6-c-check__body",zt="pf-v6-c-check__description",Vt="pf-v6-c-check__input",Ut="pf-v6-c-check__label",qt="pf-v6-c-check__label-required",Xt={standalone:"pf-m-standalone",disabled:"pf-m-disabled"};const Gt=()=>{};class Kt extends t.Component{constructor(e){super(e),this.handleChange=e=>{this.props.onChange(e,e.currentTarget.checked)},this.state={ouiaStateId:ae(Kt.displayName),descriptionId:q("pf-checkbox-description")}}render(){const e=this.props,{"aria-label":t,"aria-describedby":n,className:i,inputClassName:s,onChange:a,isLabelWrapped:l,labelPosition:r="end",isValid:c,isDisabled:d,isRequired:p,isChecked:u,label:f,checked:m,defaultChecked:b,description:v,body:x,ouiaId:y,ouiaSafe:O,component:j}=e,w=o(e,["aria-label","aria-describedby","className","inputClassName","onChange","isLabelWrapped","labelPosition","isValid","isDisabled","isRequired","isChecked","label","checked","defaultChecked","description","body","ouiaId","ouiaSafe","component"]);w.id||console.error("Checkbox:","id is required to make input accessible");const C={};let N;([!0,!1].includes(m)||!0===u)&&(C.checked=m||u),a!==Gt&&(C.checked=u),[!1,!0].includes(b)&&(C.defaultChecked=b),void 0!==n?N=""===n?void 0:n:v&&(N=this.state.descriptionId);const S=g.jsx("input",Object.assign({},w,{className:h(Vt,s),type:"checkbox",onChange:this.handleChange,"aria-invalid":!c,"aria-label":t,"aria-describedby":N,disabled:d,required:p,ref:e=>{e&&(e.indeterminate=null===u)}},C,ie(Kt.displayName,void 0!==y?y:this.state.ouiaStateId,O))),I=l&&!j||"label"===j,E=I?"span":"label",D=f?g.jsxs(E,{className:h(Ut,d&&Xt.disabled),htmlFor:I?void 0:w.id,children:[f,p&&g.jsx("span",{className:h(qt),"aria-hidden":"true",children:"*"})]}):null,k=null!=j?j:I?"label":"div";return C.checked=null!==C.checked&&C.checked,g.jsxs(k,{className:h($t,!f&&Xt.standalone,i),htmlFor:I?w.id:void 0,children:["start"===r?g.jsxs(g.Fragment,{children:[D,S]}):g.jsxs(g.Fragment,{children:[S,D]}),v&&g.jsx("span",{id:this.state.descriptionId,className:h(zt),children:v}),x&&g.jsx("span",{className:h(Wt),children:x})]})}}Kt.displayName="Checkbox",Kt.defaultProps={className:"",isLabelWrapped:!1,isValid:!0,isDisabled:!1,isRequired:!1,isChecked:!1,onChange:Gt,ouiaSafe:!0};var Zt={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",stateful:"pf-m-stateful",read:"pf-m-read",attention:"pf-m-attention",plain:"pf-m-plain",noPadding:"pf-m-no-padding",block:"pf-m-block",small:"pf-m-small",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",start:"pf-m-start",end:"pf-m-end"}},Yt={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 Jt="--pf-v6-c-spinner--diameter";var Qt;!function(e){e.sm="sm",e.md="md",e.lg="lg",e.xl="xl"}(Qt||(Qt={}));const en=e=>{var{className:t="",size:n="xl","aria-valuetext":i="Loading...",diameter:s,isInline:a=!1,"aria-label":l,"aria-labelledBy":r}=e,c=o(e,["className","size","aria-valuetext","diameter","isInline","aria-label","aria-labelledBy"]);return g.jsx("svg",Object.assign({className:h(Yt.spinner,a?Yt.modifiers.inline:Yt.modifiers[n],t),role:"progressbar","aria-valuetext":i,viewBox:"0 0 100 100"},s&&{style:{[Jt]:s}},l&&{"aria-label":l},r&&{"aria-labelledBy":r},!l&&!r&&{"aria-label":"Contents"},c,{children:g.jsx("circle",{className:Yt.spinnerPath,cx:"50",cy:"50",r:"45",fill:"none"})}))};en.displayName="Spinner";var tn="pf-v6-c-badge",nn={read:"pf-m-read",unread:"pf-m-unread",disabled:"pf-m-disabled"};const sn=e=>{var{isRead:t=!1,isDisabled:n=!1,className:i="",children:s="",screenReaderText:a}=e,l=o(e,["isRead","isDisabled","className","children","screenReaderText"]);return g.jsxs("span",Object.assign({},l,{className:h(tn,t?nn.read:nn.unread,n&&nn.disabled,i),children:[s,a&&g.jsx("span",{className:"pf-v6-screen-reader",children:a})]}))};sn.displayName="Badge";const on=_({name:"StarIcon",height:512,width:576,svgPath:"M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z",yOffset:0,xOffset:0,svgClassName:void 0}),an=_({name:"OutlinedStarIcon",height:512,width:576,svgPath:"M528.1 171.5L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6zM388.6 312.3l23.7 138.4L288 385.4l-124.3 65.3 23.7-138.4-100.6-98 139-20.2 62.2-126 62.2 126 139 20.2-100.6 98z",yOffset:0,xOffset:0,svgClassName:void 0}),ln=_({name:"CogIcon",height:512,width:512,svgPath:"M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z",yOffset:0,xOffset:0,svgClassName:void 0}),rn=g.jsxs("svg",{viewBox:"0 0 10 10",className:h(Zt.buttonHamburgerIcon,"pf-v6-svg"),width:"1em",height:"1em",children:[g.jsx("path",{className:h(Zt.buttonHamburgerIconTop),d:"M1,1 L9,1"}),g.jsx("path",{className:h(Zt.buttonHamburgerIconMiddle),d:"M1,5 L9,5"}),g.jsx("path",{className:h(Zt.buttonHamburgerIconArrow),d:"M1,5 L1,5 L1,5"}),g.jsx("path",{className:h(Zt.buttonHamburgerIconBottom),d:"M9,9 L1,9"})]});var cn,dn,pn,un;!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"}(cn||(cn={})),function(e){e.button="button",e.submit="submit",e.reset="reset"}(dn||(dn={})),function(e){e.default="default",e.sm="sm",e.lg="lg"}(pn||(pn={})),function(e){e.read="read",e.unread="unread",e.attention="attention"}(un||(un={}));const fn=e=>{var{children:t=null,className:n="",component:i="button",isClicked:s=!1,isBlock:a=!1,isDisabled:l=!1,isAriaDisabled:r=!1,isLoading:c=null,isDanger:d=!1,isExpanded:p,isSettings:u,isHamburger:f,hamburgerVariant:m,isCircle:b,spinnerAriaValueText:v,spinnerAriaLabelledBy:x,spinnerAriaLabel:y,size:O=pn.default,inoperableEvents:j=["onClick","onKeyPress"],isInline:w=!1,isFavorite:C=!1,isFavorited:N=!1,type:S=dn.button,variant:I=cn.primary,state:E=un.unread,hasNoPadding:D=!1,iconPosition:k="start","aria-label":L=null,icon:M=null,role:T,ouiaId:R,ouiaSafe:P=!0,tabIndex:_=null,innerRef:A,countOptions:F}=e,H=o(e,["children","className","component","isClicked","isBlock","isDisabled","isAriaDisabled","isLoading","isDanger","isExpanded","isSettings","isHamburger","hamburgerVariant","isCircle","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)||L||t||H["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 B=se(mn.displayName,R,P,I),$=i,W="button"===$,z=w&&"span"===$,V="end"===k||"right"===k,U=u||f||C,q=j.reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:e=>{e.preventDefault()}})),{}),X=(()=>{let e;return C&&(e=g.jsxs(g.Fragment,{children:[g.jsx("span",{className:h("pf-v6-c-button__icon-favorite"),children:g.jsx(an,{})}),g.jsx("span",{className:h("pf-v6-c-button__icon-favorited"),children:g.jsx(on,{})})]})),u&&(e=g.jsx(ln,{})),f&&(e=rn),M&&!U&&(e=M),e&&g.jsx("span",{className:h(Zt.buttonIcon,t&&Zt.modifiers[V?"end":"start"]),children:e})})(),G=t&&g.jsx("span",{className:h("pf-v6-c-button__text"),children:t}),K=r||!W&&l;return g.jsxs($,Object.assign({"aria-expanded":p},H,r?q:null,K&&{"aria-disabled":!0},{"aria-label":L,className:h(Zt.button,Zt.modifiers[I],u&&Zt.modifiers.settings,f&&Zt.modifiers.hamburger,f&&m&&Zt.modifiers[m],a&&Zt.modifiers.block,l&&!W&&Zt.modifiers.disabled,r&&Zt.modifiers.ariaDisabled,s&&Zt.modifiers.clicked,w&&I===cn.link&&Zt.modifiers.inline,C&&Zt.modifiers.favorite,C&&N&&Zt.modifiers.favorited,d&&(I===cn.secondary||I===cn.link)&&Zt.modifiers.danger,null!==c&&I!==cn.plain&&Zt.modifiers.progress,c&&Zt.modifiers.inProgress,D&&I===cn.plain&&Zt.modifiers.noPadding,I===cn.stateful&&Zt.modifiers[E],O===pn.sm&&Zt.modifiers.small,O===pn.lg&&Zt.modifiers.displayLg,b&&Zt.modifiers.circle,n),disabled:W?l:null,tabIndex:null!==_?_:l?W?null:-1:r?null:z?0:void 0,type:W||z?S:null,role:z?"button":T,ref:A},B,{children:[c&&g.jsx("span",{className:h(Zt.buttonProgress),children:g.jsx(en,{size:Qt.md,isInline:w,"aria-valuetext":v,"aria-label":y,"aria-labelledby":x})}),V?g.jsxs(g.Fragment,{children:[G,X]}):g.jsxs(g.Fragment,{children:[X,G]}),F&&g.jsx("span",{className:h(Zt.buttonCount,F.className),children:g.jsx(sn,{isRead:F.isRead,isDisabled:l,children:F.count})})]}))},mn=t.forwardRef(((e,t)=>g.jsx(fn,Object.assign({innerRef:t},e))));mn.displayName="Button";const gn=e=>{var{className:t,icon:n,onClick:i,"aria-label":s,isFavorited:a=null,isDisabled:l,actionId:r,innerRef:c}=e,d=o(e,["className","icon","onClick","aria-label","isFavorited","isDisabled","actionId","innerRef"]);return g.jsx(It.Consumer,{children:({onActionClick:e})=>g.jsx(Et.Consumer,{children:({itemId:o,isDisabled:p})=>g.jsx("div",Object.assign({className:h(O,null!==a&&"pf-m-favorite",a&&T.favorited,t)},d,{children:g.jsx(mn,{"aria-label":s,onClick:t=>{i&&i(t),e&&e(t,o,r)},ref:c,role:"menuitem",variant:"plain",isFavorite:null!==a,isFavorited:null!=a&&a,tabIndex:-1,isDisabled:l||p,icon:null===a?n:void 0})}))})})},hn=t.forwardRef(((e,t)=>g.jsx(gn,Object.assign({},e,{innerRef:t}))));hn.displayName="MenuItemAction";var bn={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"},vn="pf-v6-c-tooltip",xn="pf-v6-c-tooltip__arrow",yn="pf-v6-c-tooltip__content";const On=e=>{var{className:t,children:n,isLeftAligned:i}=e,s=o(e,["className","children","isLeftAligned"]);return g.jsx("div",Object.assign({className:h(yn,i&&bn.textAlignLeft,t)},s,{children:n}))};On.displayName="TooltipContent";const jn=e=>{var{className:t}=e,n=o(e,["className"]);return g.jsx("div",Object.assign({className:h(xn,t)},n))};jn.displayName="TooltipArrow";const wn={value:"18.75rem"};var Cn;!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"}(Cn||(Cn={}));let Nn=1;const Sn=e=>{var{content:n,position:i="top",trigger:s="mouseenter focus",isVisible:a=!1,isContentLeftAligned:l=!1,enableFlip:r=!0,className:c="",entryDelay:d=300,exitDelay:p=300,appendTo:u=(()=>document.body),zIndex:f=9999,minWidth:m,maxWidth:b=wn.value,distance:v=15,aria:x="describedby",flipBehavior:y=["top","right","bottom","left","top","right","bottom"],id:O="pf-tooltip-"+Nn++,children:j,animationDuration:w=300,triggerRef:C,"aria-live":N=(C?"polite":"off"),onTooltipHidden:S=(()=>{})}=e,I=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=s.includes("mouseenter"),D=s.includes("focus"),k=s.includes("click"),L="manual"===s,[M,T]=t.useState(!1),R=t.createRef(),P=()=>"none"!==x?`aria-${x}`:null,_=e=>{if("none"===x||!C||j)return;const t="function"==typeof C?C():C&&"object"==typeof C&&"current"in C?C.current:C instanceof HTMLElement?C:null;t&&(e?(e=>{const t=P();if(!e||!t)return;const n=e.getAttribute(t);if(!n||!n.includes(O)){const i=n?`${n} ${O}`:O;e.setAttribute(t,i)}})(t):(e=>{const t=P();if(!e||!t)return;const n=e.getAttribute(t);if(!n)return;const i=n.replace(new RegExp(`\\b${O}\\b`,"g"),"").trim();i?e.setAttribute(t,i):e.removeAttribute(t)})(t))};t.useEffect((()=>(_(M),()=>{_(!1)})),[M,x,C,j,O]);t.useEffect((()=>{a?A():F()}),[a]);const A=()=>{T(!0)},F=()=>{T(!1)},H={top:bn.top,bottom:bn.bottom,left:bn.left,right:bn.right,"top-start":bn.topLeft,"top-end":bn.topRight,"bottom-start":bn.bottomLeft,"bottom-end":bn.bottomRight,"left-start":bn.leftTop,"left-end":bn.leftBottom,"right-start":bn.rightTop,"right-end":bn.rightBottom},B=b!==wn.value,$=g.jsxs("div",Object.assign({"aria-live":N,className:h(vn,c),role:"tooltip",id:O,style:{maxWidth:B?b:null},ref:R},I,{children:[g.jsx(jn,{}),g.jsx(On,{isLeftAligned:l,children:n})]}));return g.jsx(Ct,{trigger:"none"!==x&&M?(()=>{if(j)return"describedby"===x&&j.props&&!j.props["aria-describedby"]?t.cloneElement(j,{"aria-describedby":O}):"labelledby"===x&&j.props&&!j.props["aria-labelledby"]?t.cloneElement(j,{"aria-labelledby":O}):j})():j,triggerRef:C,popper:$,popperRef:R,minWidth:void 0!==m?m:"revert",appendTo:u,isVisible:M,positionModifiers:H,distance:v,placement:i,onMouseEnter:E&&A,onMouseLeave:E&&F,onPopperMouseEnter:E&&A,onPopperMouseLeave:E&&F,onFocus:D&&A,onBlur:D&&F,onDocumentClick:k&&((e,t)=>{M?F():e.target===t&&A()}),onDocumentKeyDown:L?null:e=>{L||e.key===z&&M&&F()},onTriggerEnter:L?null:e=>{e.key===V&&(M?F():A())},enableFlip:r,zIndex:f,flipBehavior:y,animationDuration:w,entryDelay:d,exitDelay:p,onHidden:S})};Sn.displayName="Tooltip";const In=t.createContext({direction:"right"}),En=e=>{var{children:n,className:i,itemId:s=null,to:a,hasCheckbox:l=!1,isActive:r=null,isFavorited:c=null,isLoadButton:d=!1,isLoading:p=!1,flyoutMenu:u,direction:f,description:m=null,onClick:x=(()=>{}),component:O="button",isDisabled:k=!1,isAriaDisabled:M=!1,isExternalLink:R=!1,isSelected:P=null,isFocused:_,isDanger:A=!1,icon:F,actions:H,onShowFlyout:B,drilldownMenu:$,isOnPath:W,innerRef:z,id:V,"aria-label":U,tooltipProps:q,rel:X,target:G,download:K}=e,Y=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:J,parentMenu:ee,onSelect:te,onActionClick:ne,activeItemId:ie,selected:se,drilldownItemPath:oe,onDrillIn:ae,onDrillOut:le,flyoutRef:re,setFlyoutRef:ce,disableHover:de,role:pe}=t.useContext(It);let ue=a?"a":O;l&&!a&&(ue="label");const[fe,me]=t.useState(null),ge=t.useContext(In),[he,be]=t.useState(ge.direction),ve=t.useRef(void 0),xe=t.useRef(void 0),ye=z||xe,Oe=ve===re,je=void 0!==u,we=e=>{!Oe&&e?ce(ve):Oe&&!e&&ce(null),B&&e&&B()};vt((()=>{if(je&&ve.current&&Z){const e=ve.current.lastElementChild;if(e&&e.classList.contains(v)){const t=ve.current.getClientRects()[0],n=e.getClientRects()[0];if(t&&n){const i=t.x-n.width,s=window.innerWidth-t.x-t.width-n.width;let o=he;s<0&&"left"!==o?(be("left"),o="left"):i<0&&"right"!==o&&(be("right"),o="right");let a=0;i<0&&s<0&&(a="right"===o?-s:-i),"left"===o?(e.classList.add(T.left),e.style.setProperty(Pt,`-${a}px`)):e.style.setProperty(_t,`-${a}px`);const l=window.innerHeight-t.y-n.height;window.innerHeight-n.height<0&&l<0||l<0&&e.style.setProperty(Rt,`${l}px`)}}}}),[Oe,u]),t.useEffect((()=>{be(ge.direction)}),[ge]),t.useEffect((()=>{var e,t,n;if(fe)if(Oe){const i=fe.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(b))))[0])||void 0===t?void 0:t.firstChild)||void 0===n||n.focus()}else fe.focus()}),[Oe,fe]);const Ce=e=>{const t=e.key,n=e.target,i=e.type;" "!==t&&"Enter"!==t&&"ArrowRight"!==t&&"click"!==i||(e.stopPropagation(),e.preventDefault(),Oe||(we(!0),me(n))),"Escape"!==t&&"ArrowLeft"!==t||Oe&&(e.stopPropagation(),we(!1))},Ne=(e,t)=>{M||(t&&t(e,s),x&&x(e))},Se=W&&W||oe&&oe.includes(s)||!1;let Ie;f&&(Ie="down"===f?e=>ae&&ae(e,J,"function"==typeof $?$().props.id:$.props.id,s):e=>le&&le(e,ee,s));let Ee={};"a"===ue?Ee={href:a,"aria-disabled":!(!k&&!M)||null,disabled:null,target:R?"_blank":G,rel:X,download:K}:"button"===ue&&(Ee={type:"button","aria-disabled":!!M||null}),W?Ee["aria-expanded"]=!0:je&&(Ee["aria-haspopup"]="menu",Ee["aria-expanded"]=Oe);const De=()=>null!==P?P:null!==se&&null!==s&&(Array.isArray(se)&&se.includes(s)||s===se);t.useEffect((()=>{if(_&&ve.current){const e=ve.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"})}}}),[_]);const ke="listbox"===pe,Le=g.jsxs(g.Fragment,{children:[g.jsx(Q,{children:e=>g.jsxs(ue,Object.assign({id:V,tabIndex:-1,className:h(y,De()&&!l&&T.selected,i),"aria-current":null!==r?r?"page":null:null!==s&&null!==ie?s===ie:null},!l&&{disabled:k,"aria-label":U},!l&&!u&&{role:ke?"option":"menuitem"},!l&&!u&&ke&&{"aria-selected":De()},{ref:ye},!l&&{onClick:e=>{M?e.preventDefault():(Ne(e,te),Ie&&Ie(e),u&&Ce(e))}},l&&{htmlFor:e},Ee,{children:[g.jsxs("span",{className:h(S),children:["up"===f&&g.jsx("span",{className:h(D),children:g.jsx(Ht,{})}),F&&g.jsx("span",{className:h(N),children:F}),l&&g.jsx("span",{className:h(j),children:g.jsx(Kt,{id:e,component:"span",isChecked:P||!1,onChange:e=>Ne(e,te),isDisabled:k,"aria-disabled":M})}),g.jsx("span",{className:h(E),children:n}),R&&g.jsx("span",{className:h(C),children:g.jsx(At,{})}),(u||"down"===f)&&g.jsx("span",{className:h(D),children:g.jsx(Ft,{})}),De()&&g.jsx("span",{className:h(I),children:g.jsx(Bt,{})})]}),m&&"up"!==f&&g.jsx("span",{className:h(w),children:g.jsx("span",{children:m})})]}))}),Oe&&g.jsx(It.Provider,{value:{disableHover:de},children:g.jsx(In.Provider,{value:{direction:he},children:u})}),"function"==typeof $?$():$,g.jsxs(Et.Provider,{value:{itemId:s,isDisabled:k},children:[H,null!==c&&g.jsx(hn,{icon:"favorites",isFavorited:c,"aria-label":c?"starred":"not starred",onClick:e=>ne(e,s),tabIndex:-1,actionId:"fav"})]})]});return g.jsxs(g.Fragment,{children:[g.jsx("li",Object.assign({className:h(L,k&&T.disabled,M&&T.ariaDisabled,Se&&T.currentPath,d&&T.load,p&&T.loading,_&&"pf-m-focus",A&&T.danger,i),onMouseOver:()=>{M||de||(je?we(!0):ce(null))}},u&&!M&&{onKeyDown:Ce},{ref:ve,role:l?"menuitem":"none"},l&&{"aria-label":U},Y,{children:Le})),q&&g.jsx(Sn,Object.assign({},q,{triggerRef:ye}))]})},Dn=t.forwardRef(((e,t)=>g.jsx(En,Object.assign({},e,{innerRef:t}))));Dn.displayName="MenuItem";const kn=e=>{var{children:n=null,className:i,isAriaMultiselectable:s=!1,"aria-label":a}=e,l=o(e,["children","className","isAriaMultiselectable","aria-label"]);const{role:r}=t.useContext(It);return g.jsx("ul",Object.assign({role:r},"listbox"===r&&{"aria-multiselectable":s},{className:h(k,i),"aria-label":a},l,{children:n}))};kn.displayName="MenuList";const Ln=e=>{var{children:n,className:i,onSelect:s,isOpen:a,toggle:l,shouldFocusToggleOnSelect:r=!1,onOpenChange:c,onToggleKeydown:d,isPlain:p,isScrollable:u,innerRef:f,ouiaId:m,ouiaSafe:b=!0,zIndex:v=9999,popperProps:x,onOpenChangeKeys:y=["Escape","Tab"],menuHeight:O,maxMenuHeight:j,shouldFocusFirstItemOnOpen:w=!1,shouldPreventScrollOnItemFocus:C=!0,focusTimeoutDelay:N=0}=e,S=o(e,["children","className","onSelect","isOpen","toggle","shouldFocusToggleOnSelect","onOpenChange","onToggleKeydown","isPlain","isScrollable","innerRef","ouiaId","ouiaSafe","zIndex","popperProps","onOpenChangeKeys","menuHeight","maxMenuHeight","shouldFocusFirstItemOnOpen","shouldPreventScrollOnItemFocus","focusTimeoutDelay"]);const I=t.useRef(void 0),E=t.useRef(void 0),D=se(Mn.displayName,m,b),k=f||I,L="function"==typeof l||"function"!=typeof l&&!l.toggleRef?E:null==l?void 0:l.toggleRef,M=t.useRef(a);t.useEffect((()=>{!1===M.current&&!0===a&&w&&setTimeout((()=>{var e;const t=null===(e=null==k?void 0:k.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:C})}),N),M.current=a}),[a]),t.useEffect((()=>{const e=e=>{var t,n,i,s;a&&c&&((null===(t=k.current)||void 0===t?void 0:t.contains(e.target))||(null===(n=L.current)||void 0===n?void 0:n.contains(e.target)))&&y.includes(e.key)&&(c(!1),null===(i=L.current)||void 0===i||i.focus()),(null===(s=L.current)||void 0===s?void 0:s.contains(e.target))&&(d?d(e):a&&Nt(e,k))},t=e=>{var t,n;a&&c&&!(null===(t=null==L?void 0:L.current)||void 0===t?void 0:t.contains(e.target))&&a&&!(null===(n=k.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)}}),[a,k,L,c,y,d,C,w,N]);const T=void 0!==j||void 0!==O||u,R=g.jsx(kt,Object.assign({className:h(i),ref:k,onSelect:(e,t)=>{var n;s&&s(e,t),r&&(null===(n=L.current)||void 0===n||n.focus())},isPlain:p,isScrollable:T},S,D,{children:g.jsx(Tt,{menuHeight:O,maxMenuHeight:j,children:n})}));return g.jsx(Ct,Object.assign({trigger:"function"==typeof l?l(L):l.toggleNode,triggerRef:L,popper:R,popperRef:k,isVisible:a,zIndex:v},x))},Mn=t.forwardRef(((e,t)=>g.jsx(Ln,Object.assign({innerRef:t},e))));Mn.displayName="Dropdown";const Tn=e=>{var{children:t,className:n,description:i,isDisabled:s,isAriaDisabled:a,value:l,onClick:r,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=se(Rn.displayName,c,d);return g.jsx(Dn,Object.assign({className:h(n),description:i,isDisabled:s,isAriaDisabled:a,itemId:l,onClick:r,tooltipProps:u,ref:p},m,f,{children:t}))},Rn=t.forwardRef(((e,t)=>g.jsx(Tn,Object.assign({},e,{innerRef:t}))));Rn.displayName="DropdownItem";const Pn=e=>{var{children:t,className:n}=e,i=o(e,["children","className"]);return g.jsx(kn,Object.assign({className:h(n)},i,{children:t}))};Pn.displayName="DropdownList";var _n={menuToggle:"pf-v6-c-menu-toggle",menuToggleButton:"pf-v6-c-menu-toggle__button",menuToggleControls:"pf-v6-c-menu-toggle__controls",menuToggleCount:"pf-v6-c-menu-toggle__count",menuToggleIcon:"pf-v6-c-menu-toggle__icon",menuToggleStatusIcon:"pf-v6-c-menu-toggle__status-icon",menuToggleText:"pf-v6-c-menu-toggle__text",menuToggleToggleIcon:"pf-v6-c-menu-toggle__toggle-icon",modifiers:{primary:"pf-m-primary",secondary:"pf-m-secondary",fullHeight:"pf-m-full-height",fullWidth:"pf-m-full-width",plain:"pf-m-plain",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",splitButton:"pf-m-split-button",standalone:"pf-m-standalone",typeahead:"pf-m-typeahead",text:"pf-m-text",avatar:"pf-m-avatar"}};const An=_({name:"CaretDownIcon",height:512,width:320,svgPath:"M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z",yOffset:0,xOffset:0,svgClassName:void 0});var Fn,Hn;!function(e){e.success="success",e.danger="danger",e.warning="warning"}(Fn||(Fn={})),function(e){e.default="default",e.sm="sm"}(Hn||(Hn={}));class Bn extends t.Component{constructor(){super(...arguments),this.displayName="MenuToggleBase",this.state={ouiaStateId:ae($n.displayName,this.props.variant)}}render(){const e=this.props,{children:n,className:i,icon:s,badge:a,isExpanded:l,isDisabled:r,isFullHeight:c,isFullWidth:d,isPlaceholder:p,isCircle:u,isSettings:f,splitButtonItems:m,variant:b,status:v,statusIcon:x,innerRef:y,onClick:O,"aria-label":j,ouiaId:w,ouiaSafe:C,size:N}=e,S=o(e,["children","className","icon","badge","isExpanded","isDisabled","isFullHeight","isFullWidth","isPlaceholder","isCircle","isSettings","splitButtonItems","variant","status","statusIcon","innerRef","onClick","aria-label","ouiaId","ouiaSafe","size"]),I="plain"===b,E="plainText"===b,D="typeahead"===b,k=ie($n.displayName,null!=w?w:this.state.ouiaStateId,C);let L=x;if(!x)switch(v){case Fn.success:L=g.jsx(A,{});break;case Fn.warning:L=g.jsx(H,{});break;case Fn.danger:L=g.jsx(F,{})}const M=g.jsxs("span",{className:h(_n.menuToggleControls),children:[void 0!==v&&g.jsx("span",{className:h(_n.menuToggleStatusIcon),children:L}),g.jsx("span",{className:h(_n.menuToggleToggleIcon),children:g.jsx(An,{})})]}),T=g.jsxs(g.Fragment,{children:[(s||f)&&g.jsx("span",{className:h(_n.menuToggleIcon),children:f?g.jsx(ln,{}):s}),D?n:n&&g.jsx("span",{className:h(_n.menuToggleText),children:n}),t.isValidElement(a)&&g.jsx("span",{className:h(_n.menuToggleCount),children:a}),D?g.jsx("button",Object.assign({type:"button",className:h(_n.menuToggleButton),"aria-expanded":l,onClick:O,"aria-label":j||"Menu toggle",tabIndex:-1},k,{children:M})):!I&&M]}),R=h(_n.menuToggle,l&&_n.modifiers.expanded,"primary"===b&&_n.modifiers.primary,"secondary"===b&&_n.modifiers.secondary,v&&_n.modifiers[v],(I||E)&&_n.modifiers.plain,E&&"pf-m-text",c&&_n.modifiers.fullHeight,d&&_n.modifiers.fullWidth,r&&_n.modifiers.disabled,p&&_n.modifiers.placeholder,f&&_n.modifiers.settings,N===Hn.sm&&_n.modifiers.small,i),P=Object.assign(Object.assign({children:T},r&&{disabled:!0}),S);return D?g.jsx("div",Object.assign({ref:y,className:h(R,_n.modifiers.typeahead)},P)):m?g.jsxs("div",{ref:y,className:h(R,_n.modifiers.splitButton),children:[m,g.jsxs("button",Object.assign({className:h(_n.menuToggleButton,n&&_n.modifiers.text),type:"button","aria-expanded":l,"aria-label":j,disabled:r,onClick:O},S,k,{children:[n&&g.jsx("span",{className:h(_n.menuToggleText),children:n}),M]}))]}):g.jsx("button",Object.assign({className:h(R,u&&I&&_n.modifiers.circle),type:"button","aria-label":j,"aria-expanded":l,ref:y,disabled:r,onClick:O},P,k))}}Bn.defaultProps={className:"",isExpanded:!1,isDisabled:!1,isFullWidth:!1,isFullHeight:!1,isPlaceholder:!1,isCircle:!1,size:"default",ouiaSafe:!0};const $n=t.forwardRef(((e,t)=>g.jsx(Bn,Object.assign({innerRef:t},e))));$n.displayName="MenuToggle";var Wn,zn={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"}(Wn||(Wn={}));const Vn=e=>{var{className:t,component:n=Wn.hr,inset:i,orientation:s,role:a="separator"}=e,l=o(e,["className","component","inset","orientation","role"]);const r=n;return g.jsx(r,Object.assign({className:h(zn.divider,X(i,zn),X(s,zn),t)},"hr"!==n&&{role:a},l))};Vn.displayName="Divider";const Un=e=>{var{innerRef:n,initialItems:i,onSelect:s,onToggle:a,isDisabled:l,toggleAriaLabel:r,toggleContent:c,isToggleFullWidth:d,toggleVariant:p="default",toggleWidth:u,toggleProps:f,shouldFocusToggleOnSelect:m}=e,h=o(e,["innerRef","initialItems","onSelect","onToggle","isDisabled","toggleAriaLabel","toggleContent","isToggleFullWidth","toggleVariant","toggleWidth","toggleProps","shouldFocusToggleOnSelect"]);const[b,v]=t.useState(!1),x=()=>{a&&a(!b),v(!b)},y=null==i?void 0:i.map((e=>{const{content:t,onClick:n,to:i,value:s,isDivider:a}=e,l=o(e,["content","onClick","to","value","isDivider"]);return a?g.jsx(Vn,{component:"li"},s):g.jsx(Rn,Object.assign({onClick:n,to:i,value:s},l,{children:t}),s)}));return g.jsx(Mn,Object.assign({toggle:e=>g.jsx($n,Object.assign({ref:e,onClick:x,isExpanded:b,isDisabled:l,variant:p,"aria-label":r,isFullWidth:d,style:{width:u}},f,{children:c})),isOpen:b,onSelect:(e,t)=>{s&&s(e,t),a&&a(!1),v(!1)},shouldFocusToggleOnSelect:m,onOpenChange:e=>{a&&a(e),v(e)},ref:n},h,{children:g.jsx(Pn,{children:y})}))},qn=t.forwardRef(((e,t)=>g.jsx(Un,Object.assign({},e,{innerRef:t}))));qn.displayName="SimpleDropdown";const Xn=e=>{var{children:n,className:i,onSelect:s,isOpen:a,selected:l,toggle:r,shouldFocusToggleOnSelect:c=!1,shouldFocusFirstItemOnOpen:d=!1,onOpenChange:p,onOpenChangeKeys:u=["Escape","Tab"],onToggleKeydown:f,variant:m,isPlain:b,innerRef:v,zIndex:x=9999,role:y="listbox",popperProps:O,menuHeight:j,maxMenuHeight:w,isScrollable:C,shouldPreventScrollOnItemFocus:N=!0,focusTimeoutDelay:S=0}=e,I=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=t.useRef(void 0),D=t.useRef(void 0),k=v||E,L="function"==typeof r||"function"!=typeof r&&!r.toggleRef?D:null==r?void 0:r.toggleRef,M=t.useRef(a);t.useEffect((()=>{!1===M.current&&!0===a&&d&&setTimeout((()=>{var e;const t=null===(e=null==k?void 0:k.current)||void 0===e?void 0:e.querySelector("li button:not(:disabled),li input:not(:disabled)");t&&t.focus({preventScroll:N})}),S),M.current=a}),[a]),t.useEffect((()=>{const e=e=>{var t,n,i,s;a&&p&&((null===(t=k.current)||void 0===t?void 0:t.contains(e.target))||(null===(n=L.current)||void 0===n?void 0:n.contains(e.target)))&&u.includes(e.key)&&(e.preventDefault(),p(!1),null===(i=L.current)||void 0===i||i.focus()),(null===(s=L.current)||void 0===s?void 0:s.contains(e.target))&&(f?f(e):a&&"typeahead"!==m&&Nt(e,k))},t=e=>{var t,n;a&&p&&!(null===(t=null==L?void 0:L.current)||void 0===t?void 0:t.contains(e.target))&&a&&!(null===(n=k.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)}}),[a,k,L,p,u,f,N,d,S]);const T=g.jsx(kt,Object.assign({role:y,className:h(i),ref:k,onSelect:(e,t)=>{s&&s(e,t),c&&L.current.focus()},isPlain:b,selected:l,isScrollable:null!=C?C:void 0!==j||void 0!==w},ie(Gn.displayName,void 0!==I.ouiaId?I.ouiaId:ae(Gn.displayName),void 0===I.ouiaSafe||I.ouiaSafe),I,{children:g.jsx(Tt,{menuHeight:j,maxMenuHeight:w,children:n})}));return g.jsx(Ct,Object.assign({trigger:"function"==typeof r?r(L):r.toggleNode,triggerRef:L,popper:T,popperRef:k,isVisible:a,zIndex:x},O))},Gn=t.forwardRef(((e,t)=>g.jsx(Xn,Object.assign({innerRef:t},e))));Gn.displayName="Select";const Kn=e=>{var{children:t,className:n,isAriaMultiselectable:i=!1}=e,s=o(e,["children","className","isAriaMultiselectable"]);return g.jsx(kn,Object.assign({isAriaMultiselectable:i,className:h(n)},s,{children:t}))};Kn.displayName="SelectList";const Zn=e=>{var{children:t,className:n,innerRef:i,value:s}=e,a=o(e,["children","className","innerRef","value"]);return g.jsx(Dn,Object.assign({itemId:s,ref:i,className:h(n)},a,{children:t}))},Yn=t.forwardRef(((e,t)=>g.jsx(Zn,Object.assign({},e,{innerRef:t}))));Yn.displayName="SelectOption";const Jn=e=>{var{innerRef:n,initialOptions:i,isDisabled:s,onSelect:a,onToggle:l,toggleContent:r,toggleWidth:c="200px",toggleProps:d,placeholder:p="Select a value"}=e,u=o(e,["innerRef","initialOptions","isDisabled","onSelect","onToggle","toggleContent","toggleWidth","toggleProps","placeholder"]);const[f,m]=t.useState(!1),[h,b]=t.useState();t.useEffect((()=>{const e=null==i?void 0:i.find((e=>e.selected));b(e)}),[i]);const v=null==i?void 0:i.map((e=>{const{content:t,value:n}=e,i=o(e,["content","value"]),s=(null==h?void 0:h.value)===n;return g.jsx(Yn,Object.assign({value:n,isSelected:s},i,{children:t}),n)})),x=()=>{l&&l(!f),m(!f)};return g.jsx(Gn,Object.assign({isOpen:f,selected:h,onSelect:(e,t)=>{a&&a(e,t),b(i.find((e=>e.value===t))),l&&l(!0),m(!1)},onOpenChange:e=>{l&&l(e),m(e)},toggle:e=>g.jsx($n,Object.assign({ref:e,onClick:x,isExpanded:f,isDisabled:s,style:{width:c}},d,{children:r||((null==h?void 0:h.content)||p)})),shouldFocusToggleOnSelect:!0,ref:n},u,{children:g.jsx(Kn,{children:v})}))},Qn=t.forwardRef(((e,t)=>g.jsx(Jn,Object.assign({},e,{innerRef:t}))));Qn.displayName="SimpleSelect";const ei=e=>{var{innerRef:n,initialOptions:i,isDisabled:s,onSelect:a,onToggle:l,toggleContent:r,toggleWidth:c="200px",toggleProps:d}=e,p=o(e,["innerRef","initialOptions","isDisabled","onSelect","onToggle","toggleContent","toggleWidth","toggleProps"]);const[u,f]=t.useState(!1),[m,h]=t.useState([]);t.useEffect((()=>{var e;const t=null==i?void 0:i.filter((e=>e.selected));h(null!==(e=null==t?void 0:t.map((e=>String(e.value))))&&void 0!==e?e:[])}),[i]);const b=null==i?void 0:i.map((e=>{const{content:t,value:n}=e,i=o(e,["content","value"]),s=m.includes(`${n}`);return g.jsx(Yn,Object.assign({value:n,hasCheckbox:!0,isSelected:s},i,{children:t}),n)})),v=()=>{l&&l(!u),f(!u)},x=g.jsxs(g.Fragment,{children:["Filter by status",m.length>0&&g.jsx(sn,{isRead:!0,children:m.length})]});return g.jsx(Gn,Object.assign({isOpen:u,selected:m,onSelect:(e,t)=>{const n=`${t}`;m.includes(n)?h((e=>e.filter((e=>e!==n)))):h((e=>[...e,n])),a&&a(e,t)},onOpenChange:e=>{l&&l(e),f(e)},toggle:e=>g.jsx($n,Object.assign({ref:e,onClick:v,isExpanded:u,isDisabled:s,style:{width:c}},d,{children:r||x})),ref:n,role:"menu"},p,{children:g.jsx(Kn,{children:b})}))},ti=t.forwardRef(((e,t)=>g.jsx(ei,Object.assign({},e,{innerRef:t}))));var ni={modifiers:{disabled:"pf-m-disabled",plain:"pf-m-plain",success:"pf-m-success",warning:"pf-m-warning",error:"pf-m-error",status:"pf-m-status",icon:"pf-m-icon",hint:"pf-m-hint"},textInputGroup:"pf-v6-c-text-input-group",textInputGroupIcon:"pf-v6-c-text-input-group__icon",textInputGroupMain:"pf-v6-c-text-input-group__main",textInputGroupText:"pf-v6-c-text-input-group__text",textInputGroupTextInput:"pf-v6-c-text-input-group__text-input",textInputGroupUtilities:"pf-v6-c-text-input-group__utilities"};const ii=t.createContext({isDisabled:!1}),si=e=>{var{children:n,className:i,isDisabled:s,isPlain:a,validated:l,innerRef:r}=e,c=o(e,["children","className","isDisabled","isPlain","validated","innerRef"]);const d=t.useRef(null),p=r||d;return g.jsx(ii.Provider,{value:{isDisabled:s,validated:l},children:g.jsx("div",Object.assign({ref:p,className:h(ni.textInputGroup,s&&ni.modifiers.disabled,a&&ni.modifiers.plain,l&&ni.modifiers[l],i)},c,{children:n}))})};si.displayName="TextInputGroup";const oi=e=>{var{children:t,className:n,isStatus:i}=e,s=o(e,["children","className","isStatus"]);return g.jsx("span",Object.assign({className:h(ni.textInputGroupIcon,i&&ni.modifiers.status,n)},s,{children:t}))};oi.displayName="TextInputGroupIcon";const ai=e=>{var{children:n,className:i,icon:s,type:a="text",hint:l,onChange:r=(()=>{}),onFocus:c,onBlur:d,"aria-label":p="Type to filter",value:u,placeholder:f,innerRef:m,name:b,"aria-activedescendant":v,role:x,isExpanded:y,"aria-controls":O,inputId:j,inputProps:w}=e,C=o(e,["children","className","icon","type","hint","onChange","onFocus","onBlur","aria-label","value","placeholder","innerRef","name","aria-activedescendant","role","isExpanded","aria-controls","inputId","inputProps"]);const{isDisabled:N,validated:S}=t.useContext(ii),I=t.useRef(null),E=m||I,D=U[S===W.error?"danger":S];return g.jsxs("div",Object.assign({className:h(ni.textInputGroupMain,s&&ni.modifiers.icon,i)},C,{children:[n,g.jsxs("span",{className:h(ni.textInputGroupText),children:[l&&g.jsx("input",{className:h(ni.textInputGroupTextInput,ni.modifiers.hint),type:"text",disabled:!0,"aria-hidden":"true",value:l,id:j}),s&&g.jsx(oi,{children:s}),g.jsx("input",Object.assign({ref:E,type:a,className:h(ni.textInputGroupTextInput),"aria-label":p,disabled:N,onChange:e=>{r(e,e.currentTarget.value)},onFocus:c,onBlur:d,value:u||"",placeholder:f,name:b,"aria-activedescendant":v,id:j},x&&{role:x},void 0!==y&&{"aria-expanded":y},O&&{"aria-controls":O},w)),S&&g.jsx(oi,{isStatus:!0,children:g.jsx(D,{})})]})]}))},li=t.forwardRef(((e,t)=>g.jsx(ai,Object.assign({innerRef:t},e))));li.displayName="TextInputGroupMain";const ri=e=>{var{children:t,className:n}=e,i=o(e,["children","className"]);return g.jsx("div",Object.assign({className:h(ni.textInputGroupUtilities,n)},i,{children:t}))};ri.displayName="TextInputGroupUtilities";const ci=_({name:"TimesIcon",height:512,width:352,svgPath:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z",yOffset:0,xOffset:0,svgClassName:void 0}),di=e=>`No results found for "${e}"`,pi=e=>`Create "${e}"`,ui=e=>{var n,i,s,a,{innerRef:l,initialOptions:r,onSelect:c,onToggle:d,onInputChange:p,onInputKeyDown:u,onClearSelection:f,placeholder:m="Select an option",noOptionsAvailableMessage:h="No options are available",noOptionsFoundMessage:b=di,isCreatable:v=!1,isCreateOptionOnTop:x=!1,createOptionMessage:y=pi,isDisabled:O,toggleWidth:j,toggleProps:w}=e,C=o(e,["innerRef","initialOptions","onSelect","onToggle","onInputChange","onInputKeyDown","onClearSelection","placeholder","noOptionsAvailableMessage","noOptionsFoundMessage","isCreatable","isCreateOptionOnTop","createOptionMessage","isDisabled","toggleWidth","toggleProps"]);const[N,S]=t.useState(!1),[I,E]=t.useState(String(null!==(i=null===(n=r.find((e=>e.selected)))||void 0===n?void 0:n.content)&&void 0!==i?i:"")),[D,k]=t.useState(String(null!==(a=null===(s=r.find((e=>e.selected)))||void 0===s?void 0:s.content)&&void 0!==a?a:"")),[L,M]=t.useState(""),[T,R]=t.useState(r),[P,_]=t.useState(null),[A,F]=t.useState(null),H=t.useRef(void 0),B="no results";t.useEffect((()=>{let e=r;if(L){if(e=r.filter((e=>String(e.content).toLowerCase().includes(L.toLowerCase()))),v&&L&&!r.find((e=>String(e.content).toLowerCase()===L.toLowerCase()))){const t={content:"string"==typeof y?y:y(L),value:L};e=x?[t,...e]:[...e,t]}e.length||(e=[{isAriaDisabled:!0,content:"string"==typeof b?b:b(L),value:B}]),W()}e.length||(e=[{isAriaDisabled:!0,content:h,value:B}]),R(e)}),[L,r,b,v,x,y,h]),t.useEffect((()=>{var e;const t=r.find((e=>e.selected));D===I&&(null==t?void 0:t.value)!==I&&k(String(null!==(e=null==t?void 0:t.content)&&void 0!==e?e:""))}),[r]);const $=()=>{_(null),F(null)},W=()=>{N||(d&&d(!0),S(!0))},z=()=>{d&&d(!1),S(!1),$();const e=r.find((e=>e.value===I));e&&k(String(e.content))},V=()=>{N?D||z():W()},U=(e,t)=>{c&&c(e,t.value),k(String(t.content)),M(""),E(String(t.value)),z()},q=(e,t)=>{k(t),p&&p(t),M(t),$()},X=e=>{let t=0;if(W(),!T.every((e=>e.isDisabled))){if("ArrowUp"===e)for(t=null===P||0===P?T.length-1:P-1;T[t].isDisabled;)t--,-1===t&&(t=T.length-1);if("ArrowDown"===e)for(t=null===P||P===T.length-1?0:P+1;T[t].isDisabled;)t++,t===T.length&&(t=0);(e=>{_(e);const t=T[e];F(String(t.value))})(t)}},G=e=>{u?u(e):(e=>{const t=null!==P?T[P]:null;switch(e.key){case"Enter":e.preventDefault(),N&&t&&t.value!==B&&!t.isAriaDisabled&&U(e,t),W();break;case"ArrowUp":case"ArrowDown":e.preventDefault(),X(e.key)}})(e)},K=()=>{var e;d&&d(!N),S(!N),null===(e=H.current)||void 0===e||e.focus()},Z=()=>{var e;E(""),k(""),p&&p(""),M(""),$(),null===(e=H.current)||void 0===e||e.focus(),f&&f()};return g.jsx(Gn,Object.assign({isOpen:N,selected:I,onSelect:(e,t)=>{if(t&&t!==B){const n=T.find((e=>e.value===t));U(e,n)}},onOpenChange:e=>{!e&&z()},toggle:e=>g.jsx($n,Object.assign({ref:e,variant:"typeahead","aria-label":"Typeahead menu toggle",onClick:K,isExpanded:N,isDisabled:O,isFullWidth:!0,style:{width:j}},w,{children:g.jsxs(si,{isPlain:!0,children:[g.jsx(li,Object.assign({value:D,onClick:V,onChange:q,onKeyDown:G,autoComplete:"off",innerRef:H,placeholder:m},A&&{"aria-activedescendant":A},{role:"combobox",isExpanded:N,"aria-controls":"select-typeahead-listbox"})),g.jsx(ri,Object.assign({},D?{}:{style:{display:"none"}},{children:g.jsx(mn,{variant:"plain",onClick:Z,"aria-label":"Clear input value",icon:g.jsx(ci,{})})}))]})})),variant:"typeahead",ref:l},C,{children:g.jsx(Kn,{children:T.map(((e,t)=>{const{content:n,value:i}=e,s=o(e,["content","value"]);return g.jsx(Yn,Object.assign({value:i,isFocused:P===t},s,{children:n}),i)}))})}))};ui.displayName="TypeaheadSelectBase";const fi=t.forwardRef(((e,t)=>g.jsx(ui,Object.assign({},e,{innerRef:t}))));fi.displayName="TypeaheadSelect";var mi={label:"pf-v6-c-label",labelActions:"pf-v6-c-label__actions",labelContent:"pf-v6-c-label__content",labelIcon:"pf-v6-c-label__icon",labelText:"pf-v6-c-label__text",modifiers:{blue:"pf-m-blue",red:"pf-m-red",orange:"pf-m-orange",orangered:"pf-m-orangered",yellow:"pf-m-yellow",green:"pf-m-green",teal:"pf-m-teal",purple:"pf-m-purple",success:"pf-m-success",warning:"pf-m-warning",danger:"pf-m-danger",info:"pf-m-info",custom:"pf-m-custom",compact:"pf-m-compact",filled:"pf-m-filled",outline:"pf-m-outline",editable:"pf-m-editable",editableActive:"pf-m-editable-active",overflow:"pf-m-overflow",add:"pf-m-add",clickable:"pf-m-clickable",disabled:"pf-m-disabled"}},gi="pf-v6-c-label-group",hi="pf-v6-c-label-group__close",bi="pf-v6-c-label-group__label",vi="pf-v6-c-label-group__list",xi="pf-v6-c-label-group__list-item",yi="pf-v6-c-label-group__main",Oi="pf-v6-c-label-group__textarea",ji={category:"pf-m-category",vertical:"pf-m-vertical",editable:"pf-m-editable",textarea:"pf-m-textarea"};const wi="--pf-v6-c-label__text--MaxWidth",Ci={blue:mi.modifiers.blue,teal:mi.modifiers.teal,green:mi.modifiers.green,orange:mi.modifiers.orange,purple:mi.modifiers.purple,red:mi.modifiers.red,orangered:mi.modifiers.orangered,yellow:mi.modifiers.yellow,grey:""},Ni={success:g.jsx(A,{}),warning:g.jsx(H,{}),danger:g.jsx(F,{}),info:g.jsx(B,{}),custom:g.jsx($,{})},Si=e=>{var{children:n,className:i="",color:s="grey",variant:a="filled",status:l,isCompact:r=!1,isDisabled:c=!1,isEditable:d=!1,isClickable:p=!1,editableProps:u,textMaxWidth:f,tooltipPosition:m,icon:b,onClose:v,onClick:x,onEditCancel:y,onEditComplete:O,closeBtn:j,closeBtnAriaLabel:w,closeBtnProps:C,href:N,render:S}=e,I=o(e,["children","className","color","variant","status","isCompact","isDisabled","isEditable","isClickable","editableProps","textMaxWidth","tooltipPosition","icon","onClose","onClick","onEditCancel","onEditComplete","closeBtn","closeBtnAriaLabel","closeBtnProps","href","render"]);const[E,D]=t.useState(!1),[k,L]=t.useState(n),M=t.useRef(void 0),T=t.useRef(void 0),R="overflow"===a,P="add"===a,_=p||x&&!R&&!P||N;let A;l&&(A=Ni[l]),b&&(A=b),t.useEffect((()=>{const e=e=>{E&&T&&T.current&&!T.current.contains(e.target)&&(T.current.value&&O&&O(e,T.current.value),D(!1))},t=e=>{var t,i;const s=e.key;if((E||M&&M.current&&M.current.contains(e.target))&&(!E||T&&T.current&&T.current.contains(e.target))&&(!E||"Enter"!==s&&"Tab"!==s||(e.preventDefault(),e.stopImmediatePropagation(),T.current.value&&O&&O(e,T.current.value),D(!1),null===(t=null==M?void 0:M.current)||void 0===t||t.focus()),E&&"Escape"===s&&(e.preventDefault(),e.stopImmediatePropagation(),T.current.value&&(T.current.value=n,y&&y(e,n)),D(!1),null===(i=null==M?void 0:M.current)||void 0===i||i.focus()),!E&&"Enter"===s)){e.preventDefault(),e.stopImmediatePropagation(),D(!0);const t=e.target,n=document.createRange(),i=window.getSelection();n.selectNodeContents(t),n.collapse(!1),i.removeAllRanges(),i.addRange(n)}};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}}),[E,T,M,O,y,n]),t.useEffect((()=>{x&&N?console.warn("Link labels cannot have onClick passed, this results in invalid HTML. Please remove either the href or onClick prop."):x&&d&&console.warn("Editable labels cannot have onClick passed, clicking starts the label edit process. Please remove either the isEditable or onClick prop.")}),[x,N,d]);const F=(N||x)&&c,H=g.jsx(mn,Object.assign({type:"button",variant:"plain",hasNoPadding:!0,onClick:v,"aria-label":w||`Close ${n}`},F&&{isDisabled:!0},C,{icon:g.jsx(ci,{})})),B=g.jsx("span",{className:h(mi.labelActions),children:j||H}),$=t.createRef(),W=t.useRef(void 0),[z,V]=t.useState(!1);vt((()=>{const e=d?M:$;E||V(e.current&&e.current.offsetWidth<e.current.scrollWidth)}),[E]);const U=g.jsxs(t.Fragment,{children:[A&&g.jsx("span",{className:h(mi.labelIcon),children:A}),g.jsx("span",Object.assign({ref:$,className:h(mi.labelText)},f&&{style:{[wi]:f}},{children:n}))]});t.useEffect((()=>{E&&T&&T.current&&T.current.focus()}),[T,E]);let q="span";N?q="a":(d||x&&!R&&!P)&&(q="button");const X={type:"button",onClick:x},G="button"===q,K=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({className:h(mi.labelContent,_&&mi.modifiers.clickable)},z&&{tabIndex:0}),N&&{href:N}),N&&c&&{onClick:e=>e.preventDefault()}),G&&X),d&&Object.assign({ref:M,onClick:e=>{D(!0),e.stopPropagation()}},u)),F&&G&&{disabled:!0}),F&&N&&{tabIndex:-1,"aria-disabled":!0});let Z=g.jsx(q,Object.assign({},K,{children:U}));S?Z=g.jsxs(t.Fragment,{children:[z&&g.jsx(Sn,{triggerRef:W,content:n,position:m}),S({className:mi.labelContent,content:U,componentRef:W})]}):z&&(Z=g.jsx(Sn,{content:n,position:m,children:Z}));const Y=R?"button":"span";return g.jsxs(Y,Object.assign({},I,{className:h(mi.label,F&&mi.modifiers.disabled,Ci[s],"filled"===a&&mi.modifiers.filled,"outline"===a&&mi.modifiers.outline,l&&mi.modifiers[l],R&&mi.modifiers.overflow,r&&mi.modifiers.compact,d&&ji.editable,E&&mi.modifiers.editableActive,_&&mi.modifiers.clickable,P&&mi.modifiers.add,i),onClick:R||P?x:void 0},"button"===Y&&{type:"button"},{children:[!E&&Z,!E&&v&&B,E&&g.jsx("input",Object.assign({className:h(mi.labelContent),type:"text",id:"editable-input",ref:T,value:k,onChange:()=>{L(T.current.value)}},u))]}))};Si.displayName="Label";class Ii extends t.Component{constructor(e){super(e),this.headingRef=t.createRef(),this.toggleCollapse=()=>{this.setState((e=>({isOpen:!e.isOpen,isTooltipVisible:Boolean(this.headingRef.current&&this.headingRef.current.offsetWidth<this.headingRef.current.scrollWidth)})))},this.state={isOpen:this.props.defaultIsOpen,isTooltipVisible:!1}}componentDidMount(){this.setState({isTooltipVisible:Boolean(this.headingRef.current&&this.headingRef.current.offsetWidth<this.headingRef.current.scrollWidth)})}renderLabel(e){const{categoryName:t,tooltipPosition:n}=this.props,{isTooltipVisible:i}=this.state;return i?g.jsx(Sn,{position:n,content:t,children:g.jsx("span",{tabIndex:0,ref:this.headingRef,className:h(bi),children:g.jsx("span",{"aria-hidden":"true",id:e,children:t})})}):g.jsx("span",{ref:this.headingRef,className:h(bi),"aria-hidden":"true",id:e,children:t})}render(){const e=this.props,{categoryName:n,children:i,className:s,isClosable:a,isCompact:l,closeBtnAriaLabel:r,"aria-label":c,onClick:d,numLabels:p,expandedText:u,collapsedText:f,defaultIsOpen:m,tooltipPosition:b,isVertical:v,isEditable:x,hasEditableTextArea:y,editableTextAreaProps:O,addLabelControl:j}=e,w=o(e,["categoryName","children","className","isClosable","isCompact","closeBtnAriaLabel","aria-label","onClick","numLabels","expandedText","collapsedText","defaultIsOpen","tooltipPosition","isVertical","isEditable","hasEditableTextArea","editableTextAreaProps","addLabelControl"]),{isOpen:C}=this.state,N=t.Children.toArray(i),S=N.length,I=(E={remaining:S-p},f.replace(/\${(.*?)}/g,((e,t)=>E[t]||"")));var E;const D=e=>{const i=C?N:N.slice(0,p),o=g.jsxs(t.Fragment,{children:[n&&this.renderLabel(e),g.jsxs("ul",Object.assign({className:h(vi)},n&&{"aria-labelledby":e},!n&&{"aria-label":c},{role:"list"},w,{children:[i.map(((e,t)=>g.jsx("li",{className:h(xi),children:e},t))),S>p&&g.jsx("li",{className:h(xi),children:g.jsx(Si,{variant:"overflow",onClick:this.toggleCollapse,className:h(l&&mi.modifiers.compact),children:C?u:I})}),j&&g.jsx("li",{className:h(xi),children:j}),x&&y&&g.jsx("li",{className:h(xi,ji.textarea),children:g.jsx("textarea",Object.assign({className:h(Oi),rows:1,tabIndex:0},O))})]}))]}),f=g.jsx("div",{className:h(hi),children:g.jsx(mn,{variant:"plain",size:"sm","aria-label":r,onClick:d,id:`remove_group_${e}`,"aria-labelledby":`remove_group_${e} ${e}`,icon:g.jsx(ci,{})})});return g.jsxs("div",{className:h(gi,s,n&&ji.category,v&&ji.vertical,x&&ji.editable),children:[g.jsx("div",{className:h(yi),children:o}),a&&f]})};return 0===S&&void 0===j?null:g.jsx(Q,{children:e=>D(this.props.id||e)})}}Ii.displayName="LabelGroup",Ii.defaultProps={expandedText:"Show Less",collapsedText:"${remaining} more",categoryName:"",defaultIsOpen:!1,numLabels:3,isClosable:!1,isCompact:!1,onClick:e=>{},closeBtnAriaLabel:"Close label group",tooltipPosition:"top","aria-label":"Label group category",isVertical:!1,isEditable:!1,hasEditableTextArea:!1};const Ei=e=>{var n,{innerRef:i,initialOptions:s,onSelectionChange:a,onToggle:l,onInputChange:r,onInputKeyDown:c,placeholder:d="Select an option",noOptionsFoundMessage:p=(e=>`No results found for "${e}"`),isDisabled:u,toggleWidth:f,toggleProps:m,labelProps:h,initialInputValue:b}=e,v=o(e,["innerRef","initialOptions","onSelectionChange","onToggle","onInputChange","onInputKeyDown","placeholder","noOptionsFoundMessage","isDisabled","toggleWidth","toggleProps","labelProps","initialInputValue"]);const[x,y]=t.useState(!1),[O,j]=t.useState((null!==(n=null==s?void 0:s.filter((e=>e.selected)))&&void 0!==n?n:[]).map((e=>e.value))),[w,C]=t.useState(b),[N,S]=t.useState(s),[I,E]=t.useState(null),[D,k]=t.useState(null),L=t.useRef(void 0),M="no results",T=()=>{l&&l(!0),y(!0)};t.useEffect((()=>{let e=s;w&&(e=s.filter((e=>String(e.content).toLowerCase().includes(w.toLowerCase()))),e.length||(e=[{isAriaDisabled:!0,content:"string"==typeof p?p:p(w),value:M}])),S(e)}),[w,s]),t.useEffect((()=>{var e;return j((null!==(e=null==s?void 0:s.filter((e=>e.selected)))&&void 0!==e?e:[]).map((e=>e.value)))}),[s]);const R=()=>{E(null),k(null)},P=()=>{l&&l(!1),y(!1),R(),C("")},_=()=>{x?w||P():T()},A=(e,t)=>{const n=O.includes(t)?O.filter((e=>t!==e)):[...O,t];a&&a(e,n),j(n)},F=(e,t)=>{C(t),r&&r(t),t&&!x&&T(),R()},H=e=>{let t=0;if(x||T(),!N.every((e=>e.isDisabled))){if("ArrowUp"===e)for(t=null===I||0===I?N.length-1:I-1;N[t].isDisabled;)t--,-1===t&&(t=N.length-1);if("ArrowDown"===e)for(t=null===I||I===N.length-1?0:I+1;N[t].isDisabled;)t++,t===N.length&&(t=0);(e=>{E(e);const t=N[e];k(t.value)})(t)}},B=e=>{c?c(e):(e=>{const t=null!==I?N[I]:null;switch(e.key){case"Enter":e.preventDefault(),x&&t&&t.value!==M&&!t.isAriaDisabled&&A(e,null==t?void 0:t.value),x||(l&&l(!0),y(!0));break;case"ArrowUp":case"ArrowDown":e.preventDefault(),H(e.key)}})(e)},$=()=>{var e;l&&l(!x),y(!x),null===(e=null==L?void 0:L.current)||void 0===e||e.focus()},W=e=>{var t;j([]),r&&r(""),R(),null===(t=null==L?void 0:L.current)||void 0===t||t.focus(),a&&a(e,[])};return g.jsx(Gn,Object.assign({isOpen:x,selected:O,onSelect:(e,t)=>{t&&t!==M&&A(e,t)},onOpenChange:e=>{!e&&P()},toggle:e=>g.jsx($n,Object.assign({ref:e,variant:"typeahead","aria-label":"Multi select Typeahead menu toggle",onClick:$,isExpanded:x,isDisabled:u,isFullWidth:!0,style:{width:f}},m,{children:g.jsxs(si,{isPlain:!0,children:[g.jsx(li,Object.assign({value:w,onClick:_,onChange:F,onKeyDown:B,autoComplete:"off",innerRef:L,placeholder:d},D&&{"aria-activedescendant":D},{role:"combobox",isExpanded:x,"aria-controls":"select-typeahead-listbox",children:g.jsx(Ii,{"aria-label":"Current selections",children:O.map(((e,t)=>{var n;return g.jsx(Si,Object.assign({"datatest-id":`${e}-chip`,onClose:t=>{t.stopPropagation(),((e,t)=>{const n=O.filter((e=>t!==e));a&&a(e,n),j(n)})(t,e)}},h,{children:null===(n=s.find((t=>t.value===e)))||void 0===n?void 0:n.content}),t)}))})})),g.jsx(ri,Object.assign({},0===O.length?{style:{display:"none"}}:{},{children:g.jsx(mn,{variant:"plain",onClick:W,"aria-label":"Clear input value",children:g.jsx(ci,{})})}))]})})),variant:"typeahead",ref:i},v,{children:g.jsx(Kn,{children:N.map(((e,t)=>{const{content:n,value:i}=e,s=o(e,["content","value"]);return g.jsx(Yn,Object.assign({value:i,isFocused:I===t},s,{children:n}),i)}))})}))};Ei.displayName="MultiTypeaheadSelectBase";const Di=t.forwardRef(((e,t)=>g.jsx(Ei,Object.assign({},e,{innerRef:t}))));Di.displayName="MultiTypeaheadSelect",e.CheckboxSelect=ti,e.MultiTypeaheadSelect=Di,e.MultiTypeaheadSelectBase=Ei,e.SimpleDropdown=qn,e.SimpleSelect=Qn,e.TypeaheadSelect=fi,e.TypeaheadSelectBase=ui}));
|
|
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).PatternFlyTemplates={},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 s=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 s=0;for(i=Object.getOwnPropertySymbols(e);s<i.length;s++)t.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(n[i[s]]=e[i[s]])}return n}"function"==typeof SuppressedError&&SuppressedError;var o={exports:{}},l={},r=t,c=Symbol.for("react.element"),d=Symbol.for("react.fragment"),p=Object.prototype.hasOwnProperty,u=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function m(e,t,n){var i,s={},a=null,o=null;for(i in void 0!==n&&(a=""+n),void 0!==t.key&&(a=""+t.key),void 0!==t.ref&&(o=t.ref),t)p.call(t,i)&&!f.hasOwnProperty(i)&&(s[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps)void 0===s[i]&&(s[i]=t[i]);return{$$typeof:c,type:e,key:a,ref:o,props:s,_owner:u.current}}l.Fragment=d,l.jsx=m,l.jsxs=m,o.exports=l;var g=o.exports;function h(...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=h(...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 b="pf-v6-c-divider",v="pf-v6-c-menu",x="pf-v6-c-menu__content",y="pf-v6-c-menu__item",O="pf-v6-c-menu__item-action",j="pf-v6-c-menu__item-check",w="pf-v6-c-menu__item-description",N="pf-v6-c-menu__item-external-icon",C="pf-v6-c-menu__item-icon",S="pf-v6-c-menu__item-main",I="pf-v6-c-menu__item-select-icon",E="pf-v6-c-menu__item-text",D="pf-v6-c-menu__item-toggle-icon",k="pf-v6-c-menu__list",M="pf-v6-c-menu__list-item",R="pf-v6-c-menu__search",T={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"},L="pf-v6-c-breadcrumb__link";let P=0;const _=(e,t)=>{const{xOffset:n,yOffset:i,width:s,height:a,svgPathData:o,svgClassName:l}=null!=e?e:{},r=[null!=n?n:0,null!=i?i:0,s,a].join(" "),c=[];l&&c.push(l),t&&c.push(t);const d=o&&Array.isArray(o)?o.map(((e,t)=>g.jsx("path",{className:e.className,d:e.path},`${e.path}-${t}`))):g.jsx("path",{d:o});return g.jsx("svg",{viewBox:r,className:c.join(" "),children:d})};function A({name:e,icon:n,rhUiIcon:i=null}){var s;return(s=class extends t.Component{constructor(e){super(e),this.id="icon-title-"+P++}render(){const t=this.props,{title:s,className:o,set:l}=t,r=a(t,["title","className","set"]),c=Boolean(s),d=["pf-v6-svg"];if(o&&d.push(o),"rh-ui"===l&&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===l&&null===i||void 0!==l){const e=void 0!==l&&"rh-ui"===l&&null!==i?i:n,{xOffset:t,yOffset:a,width:o,height:p,svgPathData:u,svgClassName:f}=null!=e?e:{},m=[null!=t?t:0,null!=a?a:0,o,p].join(" ");f&&d.push(f);const h=u&&Array.isArray(u)?u.map(((e,t)=>g.jsx("path",{className:e.className,d:e.path},`${e.path}-${t}`))):g.jsx("path",{d:u});return g.jsxs("svg",Object.assign({className:d.join(" "),fill:"currentColor",viewBox:m,"aria-labelledby":c?this.id:null,"aria-hidden":!c||null,role:"img",width:"1em",height:"1em"},r,{children:[c&&g.jsx("title",{id:this.id,children:s}),h]}))}return g.jsxs("svg",Object.assign({className:d.join(" "),fill:"currentColor","aria-labelledby":c?this.id:null,"aria-hidden":!c||null,role:"img",width:"1em",height:"1em"},r,{children:[c&&g.jsx("title",{id:this.id,children:s}),n&&_(n,"pf-v6-icon-default"),i&&_(i,"pf-v6-icon-rh-ui")]}))}}).displayName=e,s}const F=A({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}),H=A({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}),B=A({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}),$=A({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}),W=A({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});var U;!function(e){e.success="success",e.error="error",e.warning="warning",e.default="default"}(U||(U={}));const V="Escape",z="Enter",q={success:F,danger:H,warning:B,info:$,custom:W},Z="function"==typeof t.useId?t.useId:void 0;let G=0;const X=Z?function(e="pf-"){return`${e}${Z()}`}:function(e="pf-"){const[n]=t.useState((()=>`${e}${++G}`));return n},K=({prefix:e="pf-random-id-",children:t})=>t(X(e));K.displayName="GenerateId";function Y(e,t,n=!0){return{"data-ouia-component-type":`PF6/${e}`,"data-ouia-safe":n,"data-ouia-component-id":t}}const J=(e,t,n=!0,i)=>({"data-ouia-component-type":`PF6/${e}`,"data-ouia-safe":n,"data-ouia-component-id":Q(e,t,i)}),Q=(e,t,n)=>{const i=X(`OUIA-Generated-${e}-${n?`${n}-`:""}`);return null!=t?t:i};const ee=(e,t,n="",i,s)=>e?Object.entries(e||{}).map((([e,t])=>`${n}${t}${"default"!==e?`-on-${e}`:""}`)).map(ne).map((e=>e.replace(/-?(\dxl)/gi,((e,t)=>`_${t}`)))).map((e=>t.modifiers[e])).filter(Boolean).join(" "):"",te=e=>e.toUpperCase().replace("-","").replace("_",""),ne=e=>e.replace(/([-_][a-z])/gi,te),ie=!("undefined"==typeof window||!window.document||!window.document.createElement),se=e=>{e.forEach((e=>{e.current&&clearTimeout(e.current)}))};function ae(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 oe(e){if("[object Window]"!==e.toString()){const t=e.ownerDocument;return t?t.defaultView:window}return e}function le(e){const t=oe(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function re(e){return e instanceof oe(e).Element||e instanceof Element}function ce(e){return e instanceof oe(e).HTMLElement||e instanceof HTMLElement}function de(e){return e?(e.nodeName||"").toLowerCase():null}function pe(e){return((re(e)?e.ownerDocument:e.document)||window.document).documentElement}function ue(e){return ae(pe(e)).left+le(e).scrollLeft}function fe(e){return oe(e).getComputedStyle(e)}function me(e){const{overflow:t,overflowX:n,overflowY:i}=fe(e);return/auto|scroll|overlay|hidden/.test(t+i+n)}function ge(e,t,n=!1){const i=pe(t),s=ae(e),a=ce(t);let o={scrollLeft:0,scrollTop:0},l={x:0,y:0};var r,c;return(a||!a&&!n)&&(("body"!==de(t)||me(i))&&(o=(r=t)!==oe(r)&&ce(r)?{scrollLeft:(c=r).scrollLeft,scrollTop:c.scrollTop}:le(r)),ce(t)?(l=ae(t),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=ue(i))),{x:s.left+o.scrollLeft-l.x,y:s.top+o.scrollTop-l.y,width:s.width,height:s.height}}function he(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function be(e){return"html"===de(e)?e:e.assignedSlot||e.parentNode||e.host||pe(e)}function ve(e){return["html","body","#document"].indexOf(de(e))>=0?e.ownerDocument.body:ce(e)&&me(e)?e:ve(be(e))}function xe(e,t=[]){const n=ve(e),i="body"===de(n),s=oe(n),a=i?[s].concat(s.visualViewport||[],me(n)?n:[]):n,o=t.concat(a);return i?o:o.concat(xe(be(a)))}function ye(e){return["table","td","th"].indexOf(de(e))>=0}function Oe(e){if(!ce(e)||"fixed"===fe(e).position)return null;const t=e.offsetParent;if(t){const e=pe(t);if("body"===de(t)&&"static"===fe(t).position&&"static"!==fe(e).position)return e}return t}function je(e){const t=oe(e);let n=Oe(e);for(;n&&ye(n)&&"static"===fe(n).position;)n=Oe(n);return n&&"body"===de(n)&&"static"===fe(n).position?t:n||function(e){let t=be(e);for(;ce(t)&&["html","body"].indexOf(de(t))<0;){const e=fe(t);if("none"!==e.transform||"none"!==e.perspective||e.willChange&&"auto"!==e.willChange)return t;t=t.parentNode}return null}(e)||t}const we="top",Ne="bottom",Ce="right",Se="left",Ie="auto",Ee=[we,Ne,Ce,Se],De="start",ke="end",Me="clippingParents",Re="viewport",Te="popper",Le="reference",Pe=Ee.reduce(((e,t)=>e.concat([`${t}-${De}`,`${t}-${ke}`])),[]),_e=[...Ee,Ie].reduce(((e,t)=>e.concat([t,`${t}-${De}`,`${t}-${ke}`])),[]),Ae=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Fe(e){const t=new Map,n=new Set,i=[];function s(e){n.add(e.name);[...e.requires||[],...e.requiresIfExists||[]].forEach((e=>{if(!n.has(e)){const n=t.get(e);n&&s(n)}})),i.push(e)}return e.forEach((e=>{t.set(e.name,e)})),e.forEach((e=>{n.has(e.name)||s(e)})),i}function He(e){let t;return()=>(t||(t=new Promise((n=>{Promise.resolve().then((()=>{t=void 0,n(e())}))}))),t)}function Be(e){return e.split("-")[0]}function $e(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 We(e){return Object.assign(Object.assign({},e),{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ue(e,t){return t===Re?We(function(e){const t=oe(e),n=pe(e),i=t.visualViewport;let s=n.clientWidth,a=n.clientHeight,o=0,l=0;return i&&(s=i.width,a=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=i.offsetLeft,l=i.offsetTop)),{width:s,height:a,x:o+ue(e),y:l}}(e)):ce(t)?function(e){const t=ae(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):We(function(e){const t=pe(e),n=le(e),i=e.ownerDocument.body,s=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 o=-n.scrollLeft+ue(e);const l=-n.scrollTop;return"rtl"===fe(i||t).direction&&(o+=Math.max(t.clientWidth,i?i.clientWidth:0)-s),{width:s,height:a,x:o,y:l}}(pe(e)))}function Ve(e,t,n){const i="clippingParents"===t?function(e){const t=xe(be(e)),n=["absolute","fixed"].indexOf(fe(e).position)>=0&&ce(e)?je(e):e;return re(n)?t.filter((e=>re(e)&&$e(e,n)&&"body"!==de(e))):[]}(e):[].concat(t),s=[...i,n],a=s[0],o=s.reduce(((t,n)=>{const i=Ue(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}),Ue(e,a));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function ze(e){return e.split("-")[1]}function qe(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ze({reference:e,element:t,placement:n}){const i=n?Be(n):null,s=n?ze(n):null,a=e.x+e.width/2-t.width/2,o=e.y+e.height/2-t.height/2;let l;switch(i){case we:l={x:a,y:e.y-t.height};break;case Ne:l={x:a,y:e.y+e.height};break;case Ce:l={x:e.x+e.width,y:o};break;case Se:l={x:e.x-t.width,y:o};break;default:l={x:e.x,y:e.y}}const r=i?qe(i):null;if(null!=r){const n="y"===r?"height":"width";switch(s){case De:l[r]=Math.floor(l[r])-Math.floor(e[n]/2-t[n]/2);break;case ke:l[r]=Math.floor(l[r])+Math.ceil(e[n]/2-t[n]/2)}}return l}function Ge(e){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),e)}function Xe(e,t){return t.reduce(((t,n)=>(t[n]=e,t)),{})}function Ke(e,t={}){const{placement:n=e.placement,boundary:i=Me,rootBoundary:s=Re,elementContext:a=Te,altBoundary:o=!1,padding:l=0}=t,r=Ge("number"!=typeof l?l:Xe(l,Ee)),c=a===Te?Le:Te,d=e.elements.reference,p=e.rects.popper,u=e.elements[o?c:a],f=Ve(re(u)?u:u.contextElement||pe(e.elements.popper),i,s),m=ae(d),g=Ze({reference:m,element:p,placement:n}),h=We(Object.assign(Object.assign({},p),g)),b=a===Te?h:m,v={top:f.top-b.top+r.top,bottom:b.bottom-f.bottom+r.bottom,left:f.left-b.left+r.left,right:b.right-f.right+r.right},x=e.modifiersData.offset;if(a===Te&&x){const e=x[n];Object.keys(v).forEach((t=>{const n=[Ce,Ne].indexOf(t)>=0?1:-1,i=[we,Ne].indexOf(t)>=0?"y":"x";v[t]+=e[i]*n}))}return v}const Ye={placement:"bottom",modifiers:[],strategy:"absolute"};function Je(...e){return!e.some((e=>!(e&&"function"==typeof e.getBoundingClientRect)))}function Qe(e={}){const{defaultModifiers:t=[],defaultOptions:n=Ye}=e;return function(e,i,s=n){let a={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},Ye),n),modifiersData:{},elements:{reference:e,popper:i},attributes:{},styles:{}},o=[],l=!1;const r={state:a,setOptions(s){c(),a.options=Object.assign(Object.assign(Object.assign({},n),a.options),s),a.scrollParents={reference:re(e)?xe(e):e.contextElement?xe(e.contextElement):[],popper:xe(i)};const l=function(e){const t=Fe(e);return Ae.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=l.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:r,options:t}),s=()=>{};o.push(i||s)}})),r.update()},forceUpdate(){if(l)return;const{reference:e,popper:t}=a.elements;if(Je(e,t)){a.rects={reference:ge(e,je(t),"fixed"===a.options.strategy),popper:he(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:r})||a)}}},update:He((()=>new Promise((e=>{r.forceUpdate(),e(a)})))),destroy(){c(),l=!0}};if(!Je(e,i))return r;function c(){o.forEach((e=>e())),o=[]}return r.setOptions(s).then((e=>{!l&&s.onFirstUpdate&&s.onFirstUpdate(e)})),r}}Qe();const et={passive:!0};const tt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function nt({popper:e,popperRect:t,placement:n,offsets:i,position:s,gpuAcceleration:a,adaptive:o}){let{x:l,y:r}=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=Se,u=we;const f=window;if(o){let i=je(e);i===oe(e)&&(i=pe(e)),n===we&&(u=Ne,r-=i.clientHeight-t.height,r*=a?1:-1),n===Se&&(p=Ce,l-=i.clientWidth-t.width,l*=a?1:-1)}const m=Object.assign({position:s},o&&tt);return a?Object.assign(Object.assign({},m),{[u]:d?"0":"",[p]:c?"0":"",transform:(f.devicePixelRatio||1)<2?`translate(${l}px, ${r}px)`:`translate3d(${l}px, ${r}px, 0)`}):Object.assign(Object.assign({},m),{[u]:d?`${r}px`:"",[p]:c?`${l}px`:"",transform:""})}var it={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function({state:e,options:t,name:n}){const{offset:i=[0,0]}=t,s=_e.reduce(((t,n)=>(t[n]=function(e,t,n){const i=Be(e),s=[Se,we].indexOf(i)>=0?-1:1;let[a,o]="function"==typeof n?n(Object.assign(Object.assign({},t),{placement:e})):n;return a=a||0,o=(o||0)*s,[Se,Ce].indexOf(i)>=0?{x:o,y:a}:{x:a,y:o}}(n,e.rects,i),t)),{}),{x:a,y:o}=s[e.placement];null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=a,e.modifiersData.popperOffsets.y+=o),e.modifiersData[n]=s}};const st={left:"right",right:"left",bottom:"top",top:"bottom"};function at(e){return e.replace(/left|right|bottom|top/g,(e=>st[e]))}const ot={start:"end",end:"start"};function lt(e){return e.replace(/start|end/g,(e=>ot[e]))}function rt(e,t={}){const{placement:n,boundary:i,rootBoundary:s,padding:a,flipVariations:o,allowedAutoPlacements:l=_e}=t,r=ze(n),c=r?o?Pe:Pe.filter((e=>ze(e)===r)):Ee;let d=c.filter((e=>l.indexOf(e)>=0));0===d.length&&(d=c);const p=d.reduce(((t,n)=>(t[n]=Ke(e,{placement:n,boundary:i,rootBoundary:s,padding:a})[Be(n)],t)),{});return Object.keys(p).sort(((e,t)=>p[e]-p[t]))}var ct={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:s=!0,fallbackPlacements:a,padding:o,boundary:l,rootBoundary:r,altBoundary:c,flipVariations:d=!0,allowedAutoPlacements:p}=t,u=e.options.placement,f=Be(u),m=[u,...a||(f===u||!d?[at(u)]:function(e){if(Be(e)===Ie)return[];const t=at(e);return[lt(e),t,lt(t)]}(u))].reduce(((t,n)=>t.concat(Be(n)===Ie?rt(e,{placement:n,boundary:l,rootBoundary:r,padding:o,flipVariations:d,allowedAutoPlacements:p}):n)),[]),g=e.rects.reference,h=e.rects.popper,b=new Map;let v=!0,x=m[0];for(let t=0;t<m.length;t++){const n=m[t],a=Be(n),d=ze(n)===De,p=[we,Ne].indexOf(a)>=0,u=p?"width":"height",f=Ke(e,{placement:n,boundary:l,rootBoundary:r,altBoundary:c,padding:o});let y=p?d?Ce:Se:d?Ne:we;g[u]>h[u]&&(y=at(y));const O=at(y),j=[];if(i&&j.push(f[a]<=0),s&&j.push(f[y]<=0,f[O]<=0),j.every((e=>e))){x=n,v=!1;break}b.set(n,j)}if(v){for(let e=d?3:1;e>0;e--){const t=m.find((t=>{const n=b.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 dt(e,t,n){return Math.max(e,Math.min(t,n))}var pt={name:"preventOverflow",enabled:!0,phase:"main",fn:function({state:e,options:t,name:n}){const{mainAxis:i=!0,altAxis:s=!1,boundary:a,rootBoundary:o,altBoundary:l,padding:r,tether:c=!0,tetherOffset:d=0}=t,p=Ke(e,{boundary:a,rootBoundary:o,padding:r,altBoundary:l}),u=Be(e.placement),f=ze(e.placement),m=!f,g=qe(u),h="x"===g?"y":"x",b=e.modifiersData.popperOffsets,v=e.rects.reference,x=e.rects.popper,y="function"==typeof d?d(Object.assign(Object.assign({},e.rects),{placement:e.placement})):d,O={x:0,y:0};if(b){if(i){const t="y"===g?we:Se,n="y"===g?Ne:Ce,i="y"===g?"height":"width",s=b[g],a=b[g]+p[t],o=b[g]-p[n],l=c?-x[i]/2:0,r=f===De?v[i]:x[i],d=f===De?-x[i]:-v[i],u=e.elements.arrow,h=c&&u?he(u):{width:0,height:0},j=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},w=j[t],N=j[n],C=dt(0,v[i],h[i]),S=m?v[i]/2-l-C-w-y:r-C-w-y,I=m?-v[i]/2+l+C+N+y:d+C+N+y,E=e.elements.arrow&&je(e.elements.arrow),D=E?"y"===g?E.clientTop||0:E.clientLeft||0:0,k=e.modifiersData.offset?e.modifiersData.offset[e.placement][g]:0,M=b[g]+S-k-D,R=b[g]+I-k,T=dt(c?Math.min(a,M):a,s,c?Math.max(o,R):o);b[g]=T,O[g]=T-s}if(s){const e="x"===g?we:Se,t="x"===g?Ne:Ce,n=b[h],i=dt(n+p[e],n,n-p[t]);b[h]=i,O[h]=i-n}e.modifiersData[n]=O}},requiresIfExists:["offset"]};var ut={name:"arrow",enabled:!0,phase:"main",fn:function({state:e,name:t}){const n=e.elements.arrow,i=e.modifiersData.popperOffsets,s=Be(e.placement),a=qe(s),o=[Se,Ce].indexOf(s)>=0?"height":"width";if(!n||!i)return;const l=e.modifiersData[`${t}#persistent`].padding,r=he(n),c="y"===a?we:Se,d="y"===a?Ne:Ce,p=e.rects.reference[o]+e.rects.reference[a]-i[a]-e.rects.popper[o],u=i[a]-e.rects.reference[a],f=je(n),m=f?"y"===a?f.clientHeight||0:f.clientWidth||0:0,g=p/2-u/2,h=l[c],b=m-r[o]-l[d],v=m/2-r[o]/2+g,x=dt(h,v,b),y=a;e.modifiersData[t]={[y]:x,centerOffset:x-v}},effect:function({state:e,options:t,name:n}){let{element:i="[data-popper-arrow]",padding:s=0}=t;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i),i))&&$e(e.elements.popper,i)&&(e.elements.arrow=i,e.modifiersData[`${n}#persistent`]={padding:Ge("number"!=typeof s?s:Xe(s,Ee))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ft(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 mt(e){return[we,Ce,Ne,Se].some((t=>e[t]>=0))}const gt=Qe({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:()=>{},effect:function({state:e,instance:t,options:n}){const{scroll:i=!0,resize:s=!0}=n,a=oe(e.elements.popper),o=[...e.scrollParents.reference,...e.scrollParents.popper];return i&&o.forEach((e=>{e.addEventListener("scroll",t.update,et)})),s&&a.addEventListener("resize",t.update,et),()=>{i&&o.forEach((e=>{e.removeEventListener("scroll",t.update,et)})),s&&a.removeEventListener("resize",t.update,et)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function({state:e,name:t}){e.modifiersData[t]=Ze({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,s={placement:Be(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),nt(Object.assign(Object.assign({},s),{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:i})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign(Object.assign({},e.styles.arrow),nt(Object.assign(Object.assign({},s),{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]||{},s=e.elements[t];ce(s)&&de(s)&&(Object.assign(s.style,n),Object.keys(i).forEach((e=>{const t=i[e];!1===t?s.removeAttribute(e):s.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],s=e.attributes[n]||{},a=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:t[n]).reduce(((e,t)=>(e[t]="",e)),{});ce(i)&&de(i)&&(Object.assign(i.style,a),Object.keys(s).forEach((e=>{i.removeAttribute(e)})))}))}},requires:["computeStyles"]},it,ct,pt,ut,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function({state:e,name:t}){const n=e.rects.reference,i=e.rects.popper,s=e.modifiersData.preventOverflow,a=Ke(e,{elementContext:"reference"}),o=Ke(e,{altBoundary:!0}),l=ft(a,n),r=ft(o,i,s),c=mt(l),d=mt(r);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:r,isReferenceHidden:c,hasPopperEscaped:d},e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]}),ht=ie?t.useLayoutEffect:t.useEffect,bt=e=>e.reduce(((e,[t,n])=>(e[t]=n,e)),{}),vt=[];const xt=(e,n,i={})=>{const s=t.useRef(null),a={onFirstUpdate:i.onFirstUpdate,placement:i.placement||"bottom",strategy:i.strategy||"absolute",modifiers:i.modifiers||vt},[o,l]=t.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"}},attributes:{}}),r=t.useMemo((()=>({name:"updateState",enabled:!0,phase:"write",fn:({state:e})=>{const t=Object.keys(e.elements);l({styles:bt(t.map((t=>[t,e.styles[t]||{}]))),attributes:bt(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,r,{name:"applyStyles",enabled:!1}]};return t=s.current,n=e,JSON.stringify(t)===JSON.stringify(n)?s.current||e:(s.current=e,e);var t,n}),[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,r]),d=t.useRef(void 0);return ht((()=>{d&&d.current&&d.current.setOptions(c)}),[c]),ht((()=>{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||gt)(e,n,c);return d.current=t,()=>{t.destroy(),d.current=null}}),[e,n,i.createPopper]),{state:d.current?d.current.state:null,styles:o.styles,attributes:o.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}},yt={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"},Ot=e=>`opacity ${e}ms cubic-bezier(.54, 1.5, .38, 1.11)`,jt=({trigger:e,popper:n,direction:i="down",position:a="start",placement:o,width:l,minWidth:r="trigger",maxWidth:c,appendTo:d=(()=>document.body),zIndex:p=9999,isVisible:u=!0,positionModifiers:f,distance:m=0,offset:b,onMouseEnter:v,onMouseLeave:x,onFocus:y,onBlur:O,onDocumentClick:j,onTriggerClick:w,onTriggerEnter:N,onPopperClick:C,onPopperMouseEnter:S,onPopperMouseLeave:I,onDocumentKeyDown:E,enableFlip:D=!0,flipBehavior:k="flip",triggerRef:M,popperRef:R,animationDuration:T=0,entryDelay:L=0,exitDelay:P=0,onHidden:_=(()=>{}),onHide:A=(()=>{}),onMount:F=(()=>{}),onShow:H=(()=>{}),onShown:B=(()=>{}),preventOverflow:$=!1})=>{var W;const[U,V]=t.useState(null),[z,q]=t.useState(null),[Z,G]=t.useState(null),[X,K]=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),le=t.useRef(void 0),re=z||U,ce=u||te,de=((e,t="ltr")=>{if(!e)return t;const n=getComputedStyle(e).getPropertyValue("direction");return["ltr","rtl"].includes(n)?n:t})(null===(W=(null==M?void 0:M.current)||U)||void 0===W?void 0:W.parentElement),pe=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)}[de][a]}),[a,de]),ue=t.useCallback((e=>j(e,re,Z)),[ce,U,z,Z,j]);t.useEffect((()=>{J(!0),F()}),[]),t.useEffect((()=>()=>{se([ie,oe,ae])}),[]),t.useEffect((()=>{M&&(M.current?q(M.current):"function"==typeof M&&q(M()))}),[M,e]),t.useEffect((()=>{R&&(R.current?G(R.current):"function"==typeof R&&G(R()))}),[ce,R]),t.useEffect((()=>{const e=new MutationObserver((()=>{Oe&&Oe()}));return Z&&e.observe(Z,{attributes:!0,childList:!0,subtree:!0}),()=>{e.disconnect()}}),[Z]);const fe=(e,t,n,i=!1)=>{e&&t&&t.addEventListener(n,e,{capture:i})},me=(e,t,n,i=!1)=>{e&&t&&t.removeEventListener(n,e,{capture:i})};t.useEffect((()=>(fe(v,re,"mouseenter"),fe(x,re,"mouseleave"),fe(y,re,"focus"),fe(O,re,"blur"),fe(w,re,"click"),fe(N,re,"keydown"),fe(C,Z,"click"),fe(S,Z,"mouseenter"),fe(I,Z,"mouseleave"),j&&fe(ue,document,"click",!0),fe(E,document,"keydown",!0),()=>{me(v,re,"mouseenter"),me(x,re,"mouseleave"),me(y,re,"focus"),me(O,re,"blur"),me(w,re,"click"),me(N,re,"keydown"),me(C,Z,"click"),me(S,Z,"mouseenter"),me(I,Z,"mouseleave"),j&&me(ue,document,"click",!0),me(E,document,"keydown",!0)})),[U,Z,v,x,y,O,w,N,C,S,I,j,E,z]);const ge=()=>{if(o)return o;let e="up"===i?"top":"bottom";return"center"!==pe&&(e=`${e}-${"right"===pe?"end":"start"}`),e},he=t.useMemo(ge,[i,pe,o]),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=>yt[e])))(ge())),[i,pe,o]),ve=t.useMemo((()=>({name:"widthMods",enabled:void 0!==l||void 0!==r||void 0!==c,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{const t=e.rects.reference.width;l&&(e.styles.popper.width="trigger"===l?`${t}px`:l),r&&(e.styles.popper.minWidth="trigger"===r?`${t}px`:r),c&&(e.styles.popper.maxWidth="trigger"===c?`${t}px`:c)},effect:({state:e})=>{const t=e.elements.reference.offsetWidth;return l&&(e.elements.popper.style.width="trigger"===l?`${t}px`:l),r&&(e.elements.popper.style.minWidth="trigger"===r?`${t}px`:r),c&&(e.elements.popper.style.maxWidth="trigger"===c?`${t}px`:c),()=>{}}})),[l,r,c]),{styles:xe,attributes:ye,update:Oe,forceUpdate:je}=xt(re,Z,{placement:he,modifiers:[{name:"offset",options:{offset:b||[0,m]}},{name:"preventOverflow",enabled:$},{name:"hide",enabled:!0},{name:"flip",enabled:he.startsWith("auto")||D,options:{fallbackPlacements:"flip"===k?[be]:k}},ve]});t.useEffect((()=>{var e,t,i,s,a,o,l;const r=(null===(s=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===s?void 0:s.children)||(null===(l=null===(o=null===(a=null==n?void 0:n.props)||void 0===a?void 0:a.children)||void 0===o?void 0:o.props)||void 0===l?void 0:l.children);K(r),r&&X&&r!==X&&je&&je()}),[n]),t.useEffect((()=>{le.current<P&&(se([ie,oe]),oe.current=setTimeout((()=>{ie.current=setTimeout((()=>{ne(!1)}),T)}),P)),le.current=P}),[P]);t.useEffect((()=>{u?(H(),se([ie,oe]),ae.current=setTimeout((()=>{ne(!0),ee(1),B()}),L)):(A(),se([ae]),oe.current=setTimeout((()=>{ee(0),ie.current=setTimeout((()=>{ne(!1),G(null),_()}),T)}),P))}),[u]);const we=Object.assign({className:h(n.props&&n.props.className,f&&(()=>{if(ye&&ye.popper&&ye.popper["data-popper-placement"]){const e=ye.popper["data-popper-placement"];return f[e]}return f.top})()),style:Object.assign(Object.assign(Object.assign({},n.props&&n.props.style||{}),xe.popper),{zIndex:p,opacity:Q,transition:Ot(T)})},ye.popper),Ne=()=>{const e=t.cloneElement(n,we);return R?e:g.jsx("div",{style:{display:"contents"},ref:e=>{G(null==e?void 0:e.firstElementChild)},children:e})};return g.jsxs(g.Fragment,{children:[!M&&e&&t.isValidElement(e)&&g.jsx("div",{style:{display:"contents"},ref:e=>{V(null==e?void 0:e.firstElementChild)},children:e}),M&&e&&t.isValidElement(e)&&e,Y&&ce&&(()=>{if("inline"===d)return Ne();{const e="function"==typeof d?d():d;return s.createPortal(Ne(),e)}})()]})};jt.displayName="Popper";const wt=({prefix:e,ouiaComponentType:t,children:n})=>{var i;const s=X(e),a=X(t?`OUIA-Generated-${t}-`:"pf-unused-");return null!==(i=n(s,t?a:void 0))&&void 0!==i?i:null};wt.displayName="SSRSafeIds";const Nt=(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 s;s="ArrowDown"===e.key?i[0]:i[i.length-1],s&&s.focus()};class Ct 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:s,noHorizontalArrowHandling:a,noEnterHandling:o,noSpaceHandling:l,updateTabIndex:r,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;o||"Enter"===m&&(e.preventDefault(),e.stopImmediatePropagation(),document.activeElement.click()),l||" "===m&&(e.preventDefault(),e.stopImmediatePropagation(),document.activeElement.click()),((e,t,n=(e=>document.activeElement.contains(e)),i=(e=>e),s=["A","BUTTON","INPUT"],a=!1,o=!1,l=!0,r=!0)=>{const c=document.activeElement,d=e.key;let p=null;if(!a&&["ArrowUp","ArrowDown"].includes(d)){e.preventDefault(),e.stopImmediatePropagation();let s=-1;t.forEach(((e,a)=>{if(n(e)){let e=0;for(;!p&&e<t.length&&-1*e<t.length;)"ArrowUp"===d?e--:e++,s=a+e,s>=t.length&&(s=0),s<0&&(s=t.length-1),p=i(t[s])}}))}if(!o&&["ArrowLeft","ArrowRight"].includes(d)){e.preventDefault(),e.stopImmediatePropagation();let i=-1;t.forEach(((a,o)=>{var l;if(n(a)){const n=t[o].querySelectorAll(s.join(","));if(!n.length||r){let e=c;for(;e;){const t=e.parentElement===a?e:e.parentElement;if(e="ArrowLeft"===d?t.previousElementSibling:t.nextElementSibling,e){if(s.includes(null==e?void 0:e.tagName)){p=e;break}if(s.includes(null===(l=e.children[0])||void 0===l?void 0:l.tagName)){p=e.children[0];break}}}}else n.forEach(((t,s)=>{e.target===t&&(i=s+("ArrowLeft"===d?-1:1),i>=n.length&&(i=0),i<0&&(i=n.length-1),p=n[i])}))}}))}p&&(l&&(c.tabIndex=-1,p.tabIndex=0),p.focus())})(e,f,n,i,c,s,a,r,u)},this._isEventFromContainer=e=>{const{containerRef:t}=this.props;return t.current&&t.current.contains(e.target)}}componentDidMount(){ie&&window.addEventListener("keydown",this.keyHandler)}componentWillUnmount(){ie&&window.removeEventListener("keydown",this.keyHandler)}render(){return null}}Ct.displayName="KeyboardHandler",Ct.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 St=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"}),It=t.createContext({itemId:null,isDisabled:!1});class Et 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(`.${v}`)||Array.from(t.getElementsByClassName(v)).includes(e.target.closest(`.${v}`))))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 s=i.filter((e=>!(e.classList.contains("pf-m-disabled")||e.classList.contains(b))))[0].firstChild;s.focus(),s.tabIndex=0}},this.handleExtraKeys=e=>{const t=this.props.containsDrilldown,n=document.activeElement;if(e.target.closest(`.${v}`)===this.activeMenu||e.target.classList.contains(L)||(this.activeMenu=e.target.closest(`.${v}`)),"INPUT"===e.target.tagName)return;const i=this.activeMenu,s=e.key,a=n.classList.contains(L);if(" "===s||"Enter"===s){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(v)){const e=Array.from(n.nextElementSibling.getElementsByTagName("UL")[0].children).filter((e=>!(e.classList.contains("pf-m-disabled")||e.classList.contains(b))));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(b)))):[]:this.menuRef.current?Array.from(this.menuRef.current.getElementsByTagName("LI")).filter((e=>!(e.classList.contains("pf-m-disabled")||e.classList.contains(b)))):[],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(){ie&&this.props.containsDrilldown&&this.props.isRootMenu&&window.addEventListener("transitionend",this.handleDrilldownTransition),this.allowTabFirstItem()}componentWillUnmount(){ie&&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:s,selected:o=null,onActionClick:l,ouiaId:r,ouiaSafe:c,containsFlyout:d,containsDrilldown:p,isMenuDrilledIn:u,isPlain:f,isScrollable:m,drilldownItemPath:b,drilledInMenus:x,onDrillIn:y,onDrillOut:O,onGetMenuHeight:j,parentMenu:w=null,activeItemId:N=null,innerRef:C,isRootMenu:S,activeMenu:I,role:E,isNavFlyout:D}=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"]),M=u||x&&x.includes(t)||!1;return g.jsx(wt,{prefix:"pf-",ouiaComponentType:Dt.displayName,children:(e,a)=>{var u,C;return g.jsxs(St.Provider,{value:{menuId:t,parentMenu:w||t,onSelect:s,onActionClick:l,activeItemId:N,selected:o,drilledInMenus:x,drilldownItemPath:b,onDrillIn:y,onDrillOut:O,onGetMenuHeight:j,flyoutRef:this.state.flyoutRef,setFlyoutRef:e=>this.setState({flyoutRef:e}),disableHover:null!==(C=null===(u=this.context)||void 0===u?void 0:u.disableHover)&&void 0!==C&&C,role:E},children:[S&&g.jsx(Ct,{containerRef:this.menuRef||null,additionalKeyHandler:this.handleExtraKeys,createNavigableElements:this.createNavigableElements,isActiveElement:e=>document.activeElement.closest("li")===e||document.activeElement.parentElement===e||document.activeElement.closest(`.${R}`)===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(L)||"INPUT"===document.activeElement.tagName),noEnterHandling:!0,noSpaceHandling:!0}),g.jsx("div",Object.assign({id:t,className:h(v,f&&T.plain,m&&T.scrollable,d&&T.flyout,D&&"pf-m-nav",p&&T.drilldown,M&&T.drilledIn,i),ref:this.menuRef},Y(Dt.displayName,void 0!==r?r:a,c),k,{children:n}))]})}})}}Et.displayName="Menu",Et.contextType=St,Et.defaultProps={ouiaSafe:!0,isRootMenu:!0,isPlain:!1,isScrollable:!1,role:"menu"};const Dt=t.forwardRef(((e,t)=>g.jsx(Et,Object.assign({},e,{innerRef:t}))));Dt.displayName="Menu";const kt="--pf-v6-c-menu__content--Height",Mt="--pf-v6-c-menu__content--MaxHeight",Rt=t.forwardRef(((e,n)=>{const{getHeight:i,children:s,menuHeight:o,maxMenuHeight:l}=e,r=a(e,["getHeight","children","menuHeight","maxMenuHeight"]);t.createRef();return g.jsx(St.Consumer,{children:({menuId:t,onGetMenuHeight:n})=>g.jsx("div",Object.assign({},r,{className:h(x,e.className),ref:e=>{((e,t,n)=>{if(e){let s=e.clientHeight,a=null,o=e.closest(`.${k}`);for(;null!==o&&1===o.nodeType;)o.classList.contains(k)&&(a=o),o=o.parentElement;if(a){const e=getComputedStyle(a);s+=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,s),i&&i(s.toString())}})(e,t,n)},style:Object.assign(Object.assign({},o&&{[kt]:o}),l&&{[Mt]:l}),children:s}))})}));Rt.displayName="MenuContent";const Tt="--pf-v6-c-menu--m-flyout__menu--top-offset",Lt="--pf-v6-c-menu--m-flyout__menu--m-left--right-offset",Pt="--pf-v6-c-menu--m-flyout__menu--left-offset",_t=A({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:"M30 21v7.5c0 .827-.673 1.5-1.5 1.5h-25c-.827 0-1.5-.673-1.5-1.5v-25C2 2.673 2.673 2 3.5 2H11a1 1 0 1 1 0 2H4v24h24v-7a1 1 0 1 1 2 0ZM28.5 2H18a1 1 0 1 0 0 2h8.586L13.293 17.293a.999.999 0 1 0 1.414 1.414L28 5.414V14a1 1 0 1 0 2 0V3.5c0-.827-.673-1.5-1.5-1.5Z"}}),At=A({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}),Ft=A({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}),Ht=A({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 Bt="pf-v6-c-check",$t="pf-v6-c-check__body",Wt="pf-v6-c-check__description",Ut="pf-v6-c-check__input",Vt="pf-v6-c-check__label",zt="pf-v6-c-check__label-required",qt={standalone:"pf-m-standalone",disabled:"pf-m-disabled"};const Zt=()=>{};class Gt 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:s,onChange:o,isLabelWrapped:l,labelPosition:r="end",isValid:c,isDisabled:d,isRequired:p,isChecked:u,label:f,checked:m,defaultChecked:b,description:v,body:x,ouiaId:y,ouiaSafe:O,component:j}=e,w=a(e,["aria-label","aria-describedby","className","inputClassName","onChange","isLabelWrapped","labelPosition","isValid","isDisabled","isRequired","isChecked","label","checked","defaultChecked","description","body","ouiaId","ouiaSafe","component"]);w.id||console.error("Checkbox:","id is required to make input accessible");const N={};return([!0,!1].includes(m)||!0===u)&&(N.checked=m||u),o!==Zt&&(N.checked=u),[!1,!0].includes(b)&&(N.defaultChecked=b),g.jsx(wt,{prefix:"pf-checkbox-description-",ouiaComponentType:"Checkbox",children:(e,a)=>{let o;void 0!==n?o=""===n?void 0:n:v&&(o=e);const m=g.jsx("input",Object.assign({},w,{className:h(Ut,s),type:"checkbox",onChange:this.handleChange,"aria-invalid":!c,"aria-label":t,"aria-describedby":o,disabled:d,required:p,ref:e=>{e&&(e.indeterminate=null===u)}},N,Y(Gt.displayName,void 0!==y?y:a,O))),b=l&&!j||"label"===j,C=b?"span":"label",S=f?g.jsxs(C,{className:h(Vt,d&&qt.disabled),htmlFor:b?void 0:w.id,children:[f,p&&g.jsx("span",{className:h(zt),"aria-hidden":"true",children:"*"})]}):null,I=null!=j?j:b?"label":"div";return N.checked=null!==N.checked&&N.checked,g.jsxs(I,{className:h(Bt,!f&&qt.standalone,i),htmlFor:b?w.id:void 0,children:["start"===r?g.jsxs(g.Fragment,{children:[S,m]}):g.jsxs(g.Fragment,{children:[m,S]}),v&&g.jsx("span",{id:e,className:h(Wt),children:v}),x&&g.jsx("span",{className:h($t),children:x})]})}})}}Gt.displayName="Checkbox",Gt.defaultProps={className:"",isLabelWrapped:!1,isValid:!0,isDisabled:!1,isRequired:!1,isChecked:!1,onChange:Zt,ouiaSafe:!0};var Xt={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",stateful:"pf-m-stateful",read:"pf-m-read",attention:"pf-m-attention",plain:"pf-m-plain",noPadding:"pf-m-no-padding",block:"pf-m-block",small:"pf-m-small",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",dock:"pf-m-dock",textExpanded:"pf-m-text-expanded",start:"pf-m-start",end:"pf-m-end"}},Kt={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 Yt="--pf-v6-c-spinner--diameter";var Jt;!function(e){e.sm="sm",e.md="md",e.lg="lg",e.xl="xl"}(Jt||(Jt={}));const Qt=e=>{var{className:t="",size:n="xl","aria-valuetext":i="Loading...",diameter:s,isInline:o=!1,"aria-label":l,"aria-labelledBy":r}=e,c=a(e,["className","size","aria-valuetext","diameter","isInline","aria-label","aria-labelledBy"]);return g.jsx("svg",Object.assign({className:h(Kt.spinner,o?Kt.modifiers.inline:Kt.modifiers[n],t),role:"progressbar","aria-valuetext":i,viewBox:"0 0 100 100"},s&&{style:{[Yt]:s}},l&&{"aria-label":l},r&&{"aria-labelledBy":r},!l&&!r&&{"aria-label":"Contents"},c,{children:g.jsx("circle",{className:Kt.spinnerPath,cx:"50",cy:"50",r:"45",fill:"none"})}))};Qt.displayName="Spinner";var en="pf-v6-c-badge",tn={read:"pf-m-read",unread:"pf-m-unread",disabled:"pf-m-disabled"};const nn=e=>{var{isRead:t=!1,isDisabled:n=!1,className:i="",children:s="",screenReaderText:o}=e,l=a(e,["isRead","isDisabled","className","children","screenReaderText"]);return g.jsxs("span",Object.assign({},l,{className:h(en,t?tn.read:tn.unread,n&&tn.disabled,i),children:[s,o&&g.jsx("span",{className:"pf-v6-screen-reader",children:o})]}))};nn.displayName="Badge";const sn=A({name:"StarIcon",icon:{xOffset:0,yOffset:0,width:576,height:512,svgPathData:"M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"},rhUiIcon:{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"}}),an=A({name:"OutlinedStarIcon",icon:{xOffset:0,yOffset:0,width:576,height:512,svgPathData:"M528.1 171.5L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6zM388.6 312.3l23.7 138.4L288 385.4l-124.3 65.3 23.7-138.4-100.6-98 139-20.2 62.2-126 62.2 126 139 20.2-100.6 98z"},rhUiIcon:null}),on=A({name:"CogIcon",icon:{xOffset:0,yOffset:0,width:512,height:512,svgPathData:"M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"},rhUiIcon:{xOffset:0,yOffset:0,width:32,height:32,svgPathData:"M16 11c-2.757 0-5 2.243-5 5s2.243 5 5 5 5-2.243 5-5-2.243-5-5-5Zm0 8c-1.654 0-3-1.346-3-3s1.346-3 3-3 3 1.346 3 3-1.346 3-3 3Zm14.657-6.211c-.1-.46-.507-.789-.978-.789h-2.373c-.141-.4-.302-.791-.481-1.168l1.677-1.676a1 1 0 0 0 .134-1.249 15.23 15.23 0 0 0-4.543-4.542 1 1 0 0 0-1.248.134l-1.677 1.676c-.378-.18-.768-.341-1.168-.481V2.32a1 1 0 0 0-.788-.978 15.32 15.32 0 0 0-6.424 0A1 1 0 0 0 12 2.32v2.374c-.4.141-.79.302-1.168.481L9.155 3.499a1 1 0 0 0-1.248-.134 15.246 15.246 0 0 0-4.543 4.541 1 1 0 0 0 .134 1.249l1.677 1.676c-.18.378-.341.769-.481 1.168H2.321a1 1 0 0 0-.978.789 15.17 15.17 0 0 0 0 6.422c.1.46.507.789.978.789h2.373c.141.4.302.791.481 1.168l-1.677 1.676a1 1 0 0 0-.134 1.249 15.253 15.253 0 0 0 4.543 4.542 1 1 0 0 0 1.248-.134l1.677-1.676c.378.18.768.341 1.168.481v2.374a1 1 0 0 0 .788.978 15.23 15.23 0 0 0 6.424 0 1 1 0 0 0 .788-.978v-2.374c.4-.141.79-.302 1.168-.481l1.677 1.676a1 1 0 0 0 1.248.134 15.2 15.2 0 0 0 4.543-4.542 1 1 0 0 0-.134-1.249l-1.677-1.676c.18-.378.341-.769.481-1.168h2.373a1 1 0 0 0 .978-.789 15.177 15.177 0 0 0 0-6.422ZM28.848 18h-2.272a1 1 0 0 0-.962.727 9.963 9.963 0 0 1-.885 2.144 1 1 0 0 0 .166 1.195l1.604 1.604a13.234 13.234 0 0 1-2.828 2.829l-1.604-1.604a1 1 0 0 0-1.195-.166 9.96 9.96 0 0 1-2.144.884 1 1 0 0 0-.728.962v2.273a13.277 13.277 0 0 1-4 0v-2.273a1 1 0 0 0-.728-.962 9.96 9.96 0 0 1-2.144-.884 1.001 1.001 0 0 0-1.195.166l-1.604 1.604a13.196 13.196 0 0 1-2.828-2.829l1.604-1.604c.316-.316.384-.805.166-1.195a9.963 9.963 0 0 1-.885-2.144A1 1 0 0 0 5.424 18H3.152a13.126 13.126 0 0 1 0-4h2.272a1 1 0 0 0 .962-.727 9.963 9.963 0 0 1 .885-2.144 1 1 0 0 0-.166-1.195L5.501 8.33a13.163 13.163 0 0 1 2.828-2.829l1.604 1.604c.316.316.805.383 1.195.166a9.96 9.96 0 0 1 2.144-.884A1 1 0 0 0 14 5.425V3.152a13.277 13.277 0 0 1 4 0v2.273a1 1 0 0 0 .728.962 9.96 9.96 0 0 1 2.144.884 1 1 0 0 0 1.195-.166l1.604-1.604a13.196 13.196 0 0 1 2.828 2.828l-1.604 1.604a1.001 1.001 0 0 0-.166 1.195c.372.665.67 1.386.885 2.144a1 1 0 0 0 .962.727h2.272a13.245 13.245 0 0 1 0 4Z"}}),ln=g.jsxs("svg",{viewBox:"0 0 10 10",className:h(Xt.buttonHamburgerIcon,"pf-v6-svg"),width:"1em",height:"1em",children:[g.jsx("path",{className:h(Xt.buttonHamburgerIconTop),d:"M1,1 L9,1"}),g.jsx("path",{className:h(Xt.buttonHamburgerIconMiddle),d:"M1,5 L9,5"}),g.jsx("path",{className:h(Xt.buttonHamburgerIconArrow),d:"M1,5 L1,5 L1,5"}),g.jsx("path",{className:h(Xt.buttonHamburgerIconBottom),d:"M9,9 L1,9"})]});var rn,cn,dn,pn;!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"}(rn||(rn={})),function(e){e.button="button",e.submit="submit",e.reset="reset"}(cn||(cn={})),function(e){e.default="default",e.sm="sm",e.lg="lg"}(dn||(dn={})),function(e){e.read="read",e.unread="unread",e.attention="attention"}(pn||(pn={}));const un=e=>{var{children:t=null,className:n="",component:i="button",isClicked:s=!1,isBlock:o=!1,isDisabled:l=!1,isAriaDisabled:r=!1,isLoading:c=null,isDanger:d=!1,isExpanded:p,isSettings:u,isHamburger:f,hamburgerVariant:m,isCircle:b,spinnerAriaValueText:v,spinnerAriaLabelledBy:x,spinnerAriaLabel:y,size:O=dn.default,inoperableEvents:j=["onClick","onKeyPress"],isInline:w=!1,isFavorite:N=!1,isFavorited:C=!1,type:S=cn.button,variant:I=rn.primary,state:E=pn.unread,hasNoPadding:D=!1,iconPosition:k="start","aria-label":M=null,icon:R=null,role:T,ouiaId:L,ouiaSafe:P=!0,tabIndex:_=null,innerRef:A,countOptions:F}=e,H=a(e,["children","className","component","isClicked","isBlock","isDisabled","isAriaDisabled","isLoading","isDanger","isExpanded","isSettings","isHamburger","hamburgerVariant","isCircle","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||N)||M||t||H["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 B=J(fn.displayName,L,P,I),$=i,W="button"===$,U=w&&"span"===$,V="end"===k||"right"===k,z=u||f||N,q=j.reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:e=>{e.preventDefault()}})),{}),Z=(()=>{let e;return N&&(e=g.jsxs(g.Fragment,{children:[g.jsx("span",{className:h("pf-v6-c-button__icon-favorite"),children:g.jsx(an,{})}),g.jsx("span",{className:h("pf-v6-c-button__icon-favorited"),children:g.jsx(sn,{})})]})),u&&(e=g.jsx(on,{})),f&&(e=ln),R&&!z&&(e=R),e&&g.jsx("span",{className:h(Xt.buttonIcon,t&&Xt.modifiers[V?"end":"start"]),children:e})})(),G=t&&g.jsx("span",{className:h("pf-v6-c-button__text"),children:t}),X=r||!W&&l;return g.jsxs($,Object.assign({"aria-expanded":p},H,r?q:null,X&&{"aria-disabled":!0},{"aria-label":M,className:h(Xt.button,Xt.modifiers[I],u&&Xt.modifiers.settings,f&&Xt.modifiers.hamburger,f&&m&&Xt.modifiers[m],o&&Xt.modifiers.block,l&&!W&&Xt.modifiers.disabled,r&&Xt.modifiers.ariaDisabled,s&&Xt.modifiers.clicked,w&&I===rn.link&&Xt.modifiers.inline,N&&Xt.modifiers.favorite,N&&C&&Xt.modifiers.favorited,d&&(I===rn.secondary||I===rn.link)&&Xt.modifiers.danger,null!==c&&I!==rn.plain&&Xt.modifiers.progress,c&&Xt.modifiers.inProgress,D&&I===rn.plain&&Xt.modifiers.noPadding,I===rn.stateful&&Xt.modifiers[E],O===dn.sm&&Xt.modifiers.small,O===dn.lg&&Xt.modifiers.displayLg,b&&Xt.modifiers.circle,n),disabled:W?l:null,tabIndex:null!==_?_:l?W?null:-1:r?null:U?0:void 0,type:W||U?S:null,role:U?"button":T,ref:A},B,{children:[c&&g.jsx("span",{className:h(Xt.buttonProgress),children:g.jsx(Qt,{size:Jt.md,isInline:w,"aria-valuetext":v,"aria-label":y,"aria-labelledby":x})}),V?g.jsxs(g.Fragment,{children:[G,Z]}):g.jsxs(g.Fragment,{children:[Z,G]}),F&&g.jsx("span",{className:h(Xt.buttonCount,F.className),children:g.jsx(nn,{isRead:F.isRead,isDisabled:l,children:F.count})})]}))},fn=t.forwardRef(((e,t)=>g.jsx(un,Object.assign({innerRef:t},e))));fn.displayName="Button";const mn=e=>{var{className:t,icon:n,onClick:i,"aria-label":s,isFavorited:o=null,isDisabled:l,actionId:r,innerRef:c}=e,d=a(e,["className","icon","onClick","aria-label","isFavorited","isDisabled","actionId","innerRef"]);return g.jsx(St.Consumer,{children:({onActionClick:e})=>g.jsx(It.Consumer,{children:({itemId:a,isDisabled:p})=>g.jsx("div",Object.assign({className:h(O,null!==o&&"pf-m-favorite",o&&T.favorited,t)},d,{children:g.jsx(fn,{"aria-label":s,onClick:t=>{i&&i(t),e&&e(t,a,r)},ref:c,role:"menuitem",variant:"plain",isFavorite:null!==o,isFavorited:null!=o&&o,tabIndex:-1,isDisabled:l||p,icon:null===o?n:void 0})}))})})},gn=t.forwardRef(((e,t)=>g.jsx(mn,Object.assign({},e,{innerRef:t}))));gn.displayName="MenuItemAction";var hn={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"},bn="pf-v6-c-tooltip",vn="pf-v6-c-tooltip__arrow",xn="pf-v6-c-tooltip__content";const yn=e=>{var{className:t,children:n,isLeftAligned:i}=e,s=a(e,["className","children","isLeftAligned"]);return g.jsx("div",Object.assign({className:h(xn,i&&hn.textAlignLeft,t)},s,{children:n}))};yn.displayName="TooltipContent";const On=e=>{var{className:t}=e,n=a(e,["className"]);return g.jsx("div",Object.assign({className:h(vn,t)},n))};On.displayName="TooltipArrow";const jn={value:"18.75rem"};var wn;!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"}(wn||(wn={}));const Nn=e=>{var{content:n,position:i="top",trigger:s="mouseenter focus",isVisible:o=!1,isContentLeftAligned:l=!1,enableFlip:r=!0,className:c="",entryDelay:d=300,exitDelay:p=300,appendTo:u=(()=>document.body),zIndex:f=9999,minWidth:m,maxWidth:b=jn.value,distance:v=15,aria:x="describedby",flipBehavior:y=["top","right","bottom","left","top","right","bottom"],id:O,children:j,animationDuration:w=300,triggerRef:N,"aria-live":C=(N?"polite":"off"),onTooltipHidden:S=(()=>{})}=e,I=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=X("pf-tooltip-"),D=null!=O?O:E,k=s.includes("mouseenter"),M=s.includes("focus"),R=s.includes("click"),T="manual"===s,[L,P]=t.useState(!1),_=t.createRef(),A=()=>"none"!==x?`aria-${x}`:null,F=e=>{if("none"===x||!N||j)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=A();if(!e||!t)return;const n=e.getAttribute(t);if(!n||!n.includes(D)){const i=n?`${n} ${D}`:D;e.setAttribute(t,i)}})(t):(e=>{const t=A();if(!e||!t)return;const n=e.getAttribute(t);if(!n)return;const i=n.split(/\s+/).filter((e=>e!==D)).join(" ");i?e.setAttribute(t,i):e.removeAttribute(t)})(t))};t.useEffect((()=>(F(L),()=>{F(!1)})),[L,x,N,j,D]);t.useEffect((()=>{o?H():B()}),[o]);const H=()=>{P(!0)},B=()=>{P(!1)},$={top:hn.top,bottom:hn.bottom,left:hn.left,right:hn.right,"top-start":hn.topLeft,"top-end":hn.topRight,"bottom-start":hn.bottomLeft,"bottom-end":hn.bottomRight,"left-start":hn.leftTop,"left-end":hn.leftBottom,"right-start":hn.rightTop,"right-end":hn.rightBottom},W=b!==jn.value,U=g.jsxs("div",Object.assign({"aria-live":C,className:h(bn,c),role:"tooltip",id:D,style:{maxWidth:W?b:null},ref:_},I,{children:[g.jsx(On,{}),g.jsx(yn,{isLeftAligned:l,children:n})]}));return g.jsx(jt,{trigger:"none"!==x&&L?(()=>{if(j)return"describedby"===x&&j.props&&!j.props["aria-describedby"]?t.cloneElement(j,{"aria-describedby":D}):"labelledby"===x&&j.props&&!j.props["aria-labelledby"]?t.cloneElement(j,{"aria-labelledby":D}):j})():j,triggerRef:N,popper:U,popperRef:_,minWidth:void 0!==m?m:"revert",appendTo:u,isVisible:L,positionModifiers:$,distance:v,placement:i,onMouseEnter:k&&H,onMouseLeave:k&&B,onPopperMouseEnter:k&&H,onPopperMouseLeave:k&&B,onFocus:M&&H,onBlur:M&&B,onDocumentClick:R&&((e,t)=>{L?B():e.target===t&&H()}),onDocumentKeyDown:T?null:e=>{T||e.key===V&&L&&B()},onTriggerEnter:T?null:e=>{e.key===z&&(L?B():H())},enableFlip:r,zIndex:f,flipBehavior:y,animationDuration:w,entryDelay:d,exitDelay:p,onHidden:S})};Nn.displayName="Tooltip";const Cn=t.createContext({direction:"right"}),Sn=e=>{var{children:n,className:i,itemId:s=null,to:o,hasCheckbox:l=!1,isActive:r=null,isFavorited:c=null,isLoadButton:d=!1,isLoading:p=!1,flyoutMenu:u,direction:f,description:m=null,onClick:x=(()=>{}),component:O="button",isDisabled:k=!1,isAriaDisabled:R=!1,isExternalLink:L=!1,isSelected:P=null,isFocused:_,isDanger:A=!1,icon:F,actions:H,onShowFlyout:B,drilldownMenu:$,isOnPath:W,innerRef:U,id:V,"aria-label":z,tooltipProps:q,rel:Z,target:G,download:K}=e,Y=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:J,parentMenu:Q,onSelect:ee,onActionClick:te,activeItemId:ne,selected:se,drilldownItemPath:ae,onDrillIn:oe,onDrillOut:le,flyoutRef:re,setFlyoutRef:ce,disableHover:de,role:pe}=t.useContext(St);let ue=o?"a":O;l&&!o&&(ue="label");const[fe,me]=t.useState(null),ge=t.useContext(Cn),[he,be]=t.useState(ge.direction),ve=t.useRef(void 0),xe=t.useRef(void 0),ye=U||xe,Oe=ve===re,je=X(),we=void 0!==u,Ne=e=>{!Oe&&e?ce(ve):Oe&&!e&&ce(null),B&&e&&B()};ht((()=>{if(we&&ve.current&&ie){const e=ve.current.lastElementChild;if(e&&e.classList.contains(v)){const t=ve.current.getClientRects()[0],n=e.getClientRects()[0];if(t&&n){const i=t.x-n.width,s=window.innerWidth-t.x-t.width-n.width;let a=he;s<0&&"left"!==a?(be("left"),a="left"):i<0&&"right"!==a&&(be("right"),a="right");let o=0;i<0&&s<0&&(o="right"===a?-s:-i),"left"===a?(e.classList.add(T.left),e.style.setProperty(Lt,`-${o}px`)):e.style.setProperty(Pt,`-${o}px`);const l=window.innerHeight-t.y-n.height;window.innerHeight-n.height<0&&l<0||l<0&&e.style.setProperty(Tt,`${l}px`)}}}}),[Oe,u]),t.useEffect((()=>{be(ge.direction)}),[ge]),t.useEffect((()=>{var e,t,n;if(fe)if(Oe){const i=fe.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(b))))[0])||void 0===t?void 0:t.firstChild)||void 0===n||n.focus()}else fe.focus()}),[Oe,fe]);const Ce=e=>{const t=e.key,n=e.target,i=e.type;" "!==t&&"Enter"!==t&&"ArrowRight"!==t&&"click"!==i||(e.stopPropagation(),e.preventDefault(),Oe||(Ne(!0),me(n))),"Escape"!==t&&"ArrowLeft"!==t||Oe&&(e.stopPropagation(),Ne(!1))},Se=(e,t)=>{R||(t&&t(e,s),x&&x(e))},Ie=W&&W||ae&&ae.includes(s)||!1;let Ee;f&&(Ee="down"===f?e=>oe&&oe(e,J,"function"==typeof $?$().props.id:$.props.id,s):e=>le&&le(e,Q,s));let De={};"a"===ue?De={href:o,"aria-disabled":!(!k&&!R)||null,disabled:null,target:L?"_blank":G,rel:Z,download:K}:"button"===ue&&(De={type:"button","aria-disabled":!!R||null}),W?De["aria-expanded"]=!0:we&&(De["aria-haspopup"]="menu",De["aria-expanded"]=Oe);const ke=()=>null!==P?P:null!==se&&null!==s&&(Array.isArray(se)&&se.includes(s)||s===se);t.useEffect((()=>{if(_&&ve.current){const e=ve.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"})}}}),[_]);const Me="listbox"===pe,Re=g.jsxs(g.Fragment,{children:[g.jsxs(ue,Object.assign({id:V,tabIndex:-1,className:h(y,ke()&&!l&&T.selected,i),"aria-current":null!==r?r?"page":null:null!==s&&null!==ne?s===ne:null},!l&&{disabled:k,"aria-label":z},!l&&!u&&{role:Me?"option":"menuitem"},!l&&!u&&Me&&{"aria-selected":ke()},{ref:ye},!l&&{onClick:e=>{R?e.preventDefault():(Se(e,ee),Ee&&Ee(e),u&&Ce(e))}},l&&{htmlFor:je},De,{children:[g.jsxs("span",{className:h(S),children:["up"===f&&g.jsx("span",{className:h(D),children:g.jsx(At,{})}),F&&g.jsx("span",{className:h(C),children:F}),l&&g.jsx("span",{className:h(j),children:g.jsx(Gt,{id:je,component:"span",isChecked:P||!1,onChange:e=>Se(e,ee),isDisabled:k,"aria-disabled":R})}),g.jsx("span",{className:h(E),children:n}),L&&g.jsx("span",{className:h(N),children:g.jsx(_t,{})}),(u||"down"===f)&&g.jsx("span",{className:h(D),children:g.jsx(Ft,{})}),ke()&&g.jsx("span",{className:h(I),children:g.jsx(Ht,{})})]}),m&&"up"!==f&&g.jsx("span",{className:h(w),children:g.jsx("span",{children:m})})]})),Oe&&g.jsx(St.Provider,{value:{disableHover:de},children:g.jsx(Cn.Provider,{value:{direction:he},children:u})}),"function"==typeof $?$():$,g.jsxs(It.Provider,{value:{itemId:s,isDisabled:k},children:[H,null!==c&&g.jsx(gn,{icon:"favorites",isFavorited:c,"aria-label":c?"starred":"not starred",onClick:e=>te(e,s),tabIndex:-1,actionId:"fav"})]})]});return g.jsxs(g.Fragment,{children:[g.jsx("li",Object.assign({className:h(M,k&&T.disabled,R&&T.ariaDisabled,Ie&&T.currentPath,d&&T.load,p&&T.loading,_&&"pf-m-focus",A&&T.danger,i),onMouseOver:()=>{R||de||(we?Ne(!0):ce(null))}},u&&!R&&{onKeyDown:Ce},{ref:ve,role:l?"menuitem":"none"},l&&{"aria-label":z},Y,{children:Re})),q&&g.jsx(Nn,Object.assign({},q,{triggerRef:ye}))]})},In=t.forwardRef(((e,t)=>g.jsx(Sn,Object.assign({},e,{innerRef:t}))));In.displayName="MenuItem";const En=e=>{var{children:n=null,className:i,isAriaMultiselectable:s=!1,"aria-label":o}=e,l=a(e,["children","className","isAriaMultiselectable","aria-label"]);const{role:r}=t.useContext(St);return g.jsx("ul",Object.assign({role:r},"listbox"===r&&{"aria-multiselectable":s},{className:h(k,i),"aria-label":o},l,{children:n}))};En.displayName="MenuList";const Dn=e=>{var{children:n,className:i,onSelect:s,isOpen:o,toggle:l,shouldFocusToggleOnSelect:r=!1,onOpenChange:c,onToggleKeydown:d,isPlain:p,isScrollable:u,innerRef:f,ouiaId:m,ouiaSafe:b=!0,zIndex:v=9999,popperProps:x,onOpenChangeKeys:y=["Escape","Tab"],menuHeight:O,maxMenuHeight:j,shouldFocusFirstItemOnOpen:w=!1,shouldPreventScrollOnItemFocus:N=!0,focusTimeoutDelay:C=0,containerOuiaId:S,containerOuiaSafe:I=!0,containerComponent:E="span"}=e,D=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),M=t.useRef(void 0),R=J(kn.displayName,m,b),T=E,L=J("Dropdown container",S,I),P=f||k,_="function"==typeof l||"function"!=typeof l&&!l.toggleRef?M:null==l?void 0:l.toggleRef,A=t.useRef(o);t.useEffect((()=>{!1===A.current&&!0===o&&w&&setTimeout((()=>{var e;const t=null===(e=null==P?void 0:P.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})}),C),A.current=o}),[o]),t.useEffect((()=>{const e=e=>{var t,n,i,s;o&&c&&((null===(t=P.current)||void 0===t?void 0:t.contains(e.target))||(null===(n=_.current)||void 0===n?void 0:n.contains(e.target)))&&y.includes(e.key)&&(c(!1),null===(i=_.current)||void 0===i||i.focus()),(null===(s=_.current)||void 0===s?void 0:s.contains(e.target))&&(d?d(e):o&&Nt(e,P))},t=e=>{var t,n;o&&c&&!(null===(t=null==_?void 0:_.current)||void 0===t?void 0:t.contains(e.target))&&o&&!(null===(n=P.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)}}),[o,P,_,c,y,d,N,w,C]);const F=void 0!==j||void 0!==O||u,H=g.jsx(Dt,Object.assign({className:h(i),ref:P,onSelect:(e,t)=>{var n;s&&s(e,t),r&&(null===(n=_.current)||void 0===n||n.focus())},isPlain:p,isScrollable:F},D,R,{children:g.jsx(Rt,{menuHeight:O,maxMenuHeight:j,children:n})})),B=g.jsx(jt,Object.assign({trigger:"function"==typeof l?l(_):l.toggleNode,triggerRef:_,popper:H,popperRef:P,isVisible:o,zIndex:v},x));return S?g.jsx(T,Object.assign({},L,{children:B})):B},kn=t.forwardRef(((e,t)=>g.jsx(Dn,Object.assign({innerRef:t},e))));kn.displayName="Dropdown";const Mn=e=>{var{children:t,className:n,description:i,isDisabled:s,isAriaDisabled:o,value:l,onClick:r,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=J(Rn.displayName,c,d);return g.jsx(In,Object.assign({className:h(n),description:i,isDisabled:s,isAriaDisabled:o,itemId:l,onClick:r,tooltipProps:u,ref:p},m,f,{children:t}))},Rn=t.forwardRef(((e,t)=>g.jsx(Mn,Object.assign({},e,{innerRef:t}))));Rn.displayName="DropdownItem";const Tn=e=>{var{children:t,className:n}=e,i=a(e,["children","className"]);return g.jsx(En,Object.assign({className:h(n)},i,{children:t}))};Tn.displayName="DropdownList";var Ln={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",dock:"pf-m-dock",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 Pn=A({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 _n,An;!function(e){e.success="success",e.danger="danger",e.warning="warning"}(_n||(_n={})),function(e){e.default="default",e.sm="sm"}(An||(An={}));class Fn extends t.Component{constructor(){super(...arguments),this.displayName="MenuToggleBase"}render(){const e=this.props,{children:n,className:i,icon:s,badge:o,isExpanded:l,isDisabled:r,isFullHeight:c,isFullWidth:d,isPlaceholder:p,isCircle:u,isSettings:f,splitButtonItems:m,variant:b,status:v,statusIcon:x,innerRef:y,onClick:O,"aria-label":j,ouiaId:w,ouiaSafe:N,size:C}=e,S=a(e,["children","className","icon","badge","isExpanded","isDisabled","isFullHeight","isFullWidth","isPlaceholder","isCircle","isSettings","splitButtonItems","variant","status","statusIcon","innerRef","onClick","aria-label","ouiaId","ouiaSafe","size"]),I="plain"===b,E="plainText"===b,D="typeahead"===b;return g.jsx(wt,{prefix:"pf-",ouiaComponentType:"MenuToggle"+(b?`-${b}`:""),children:(e,a)=>{const k=Y(Hn.displayName,null!=w?w:a,N);let M=x;if(!x)switch(v){case _n.success:M=g.jsx(F,{});break;case _n.warning:M=g.jsx(B,{});break;case _n.danger:M=g.jsx(H,{})}const R=g.jsxs("span",{className:h(Ln.menuToggleControls),children:[void 0!==v&&g.jsx("span",{className:h(Ln.menuToggleStatusIcon),children:M}),g.jsx("span",{className:h(Ln.menuToggleToggleIcon),children:g.jsx(Pn,{})})]}),T=g.jsxs(g.Fragment,{children:[(s||f)&&g.jsx("span",{className:h(Ln.menuToggleIcon),children:f?g.jsx(on,{}):s}),D?n:n&&g.jsx("span",{className:h(Ln.menuToggleText),children:n}),t.isValidElement(o)&&g.jsx("span",{className:h(Ln.menuToggleCount),children:o}),D?g.jsx("button",Object.assign({type:"button",className:h(Ln.menuToggleButton),"aria-expanded":l,onClick:O,"aria-label":j||"Menu toggle",tabIndex:-1},k,{children:R})):!I&&R]}),L=h(Ln.menuToggle,l&&Ln.modifiers.expanded,"primary"===b&&Ln.modifiers.primary,"secondary"===b&&Ln.modifiers.secondary,v&&Ln.modifiers[v],(I||E)&&Ln.modifiers.plain,E&&"pf-m-text",c&&Ln.modifiers.fullHeight,d&&Ln.modifiers.fullWidth,r&&Ln.modifiers.disabled,p&&Ln.modifiers.placeholder,f&&Ln.modifiers.settings,C===An.sm&&Ln.modifiers.small,i),P=Object.assign(Object.assign({children:T},r&&{disabled:!0}),S);return D?g.jsx("div",Object.assign({ref:y,className:h(L,Ln.modifiers.typeahead)},P)):m?g.jsxs("div",{ref:y,className:h(L,Ln.modifiers.splitButton),children:[m,g.jsxs("button",Object.assign({className:h(Ln.menuToggleButton,n&&Ln.modifiers.text),type:"button","aria-expanded":l,"aria-label":j,disabled:r,onClick:O},S,k,{children:[n&&g.jsx("span",{className:h(Ln.menuToggleText),children:n}),R]}))]}):g.jsx("button",Object.assign({className:h(L,u&&I&&Ln.modifiers.circle),type:"button","aria-label":j,"aria-expanded":l,ref:y,disabled:r,onClick:O},P,k))}})}}Fn.defaultProps={className:"",isExpanded:!1,isDisabled:!1,isFullWidth:!1,isFullHeight:!1,isPlaceholder:!1,isCircle:!1,size:"default",ouiaSafe:!0};const Hn=t.forwardRef(((e,t)=>g.jsx(Fn,Object.assign({innerRef:t},e))));Hn.displayName="MenuToggle";var Bn,$n={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"}(Bn||(Bn={}));const Wn=e=>{var{className:t,component:n=Bn.hr,inset:i,orientation:s,role:o="separator"}=e,l=a(e,["className","component","inset","orientation","role"]);const r=n;return g.jsx(r,Object.assign({className:h($n.divider,ee(i,$n),ee(s,$n),t)},"hr"!==n&&{role:o},l))};Wn.displayName="Divider";const Un=e=>{var{innerRef:n,initialItems:i,onSelect:s,onToggle:o,isDisabled:l,toggleAriaLabel:r,toggleContent:c,isToggleFullWidth:d,toggleVariant:p="default",toggleWidth:u,toggleProps:f,shouldFocusToggleOnSelect:m}=e,h=a(e,["innerRef","initialItems","onSelect","onToggle","isDisabled","toggleAriaLabel","toggleContent","isToggleFullWidth","toggleVariant","toggleWidth","toggleProps","shouldFocusToggleOnSelect"]);const[b,v]=t.useState(!1),x=()=>{o&&o(!b),v(!b)},y=null==i?void 0:i.map((e=>{const{content:t,onClick:n,to:i,value:s,isDivider:o}=e,l=a(e,["content","onClick","to","value","isDivider"]);return o?g.jsx(Wn,{component:"li"},s):g.jsx(Rn,Object.assign({onClick:n,to:i,value:s},l,{children:t}),s)}));return g.jsx(kn,Object.assign({toggle:e=>g.jsx(Hn,Object.assign({ref:e,onClick:x,isExpanded:b,isDisabled:l,variant:p,"aria-label":r,isFullWidth:d,style:{width:u}},f,{children:c})),isOpen:b,onSelect:(e,t)=>{s&&s(e,t),o&&o(!1),v(!1)},shouldFocusToggleOnSelect:m,onOpenChange:e=>{o&&o(e),v(e)},ref:n},h,{children:g.jsx(Tn,{children:y})}))},Vn=t.forwardRef(((e,t)=>g.jsx(Un,Object.assign({},e,{innerRef:t}))));Vn.displayName="SimpleDropdown";const zn=e=>{var{children:n,className:i,onSelect:s,isOpen:o,selected:l,toggle:r,shouldFocusToggleOnSelect:c=!1,shouldFocusFirstItemOnOpen:d=!1,onOpenChange:p,onOpenChangeKeys:u=["Escape","Tab"],onToggleKeydown:f,variant:m,isPlain:b,innerRef:v,zIndex:x=9999,role:y="listbox",popperProps:O,menuHeight:j,maxMenuHeight:w,isScrollable:N,shouldPreventScrollOnItemFocus:C=!0,focusTimeoutDelay:S=0}=e,I=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=Q(qn.displayName,I.ouiaId),D=t.useRef(void 0),k=t.useRef(void 0),M=v||D,R="function"==typeof r||"function"!=typeof r&&!r.toggleRef?k:null==r?void 0:r.toggleRef,T=t.useRef(o);t.useEffect((()=>{!1===T.current&&!0===o&&d&&setTimeout((()=>{var e;const t=null===(e=null==M?void 0:M.current)||void 0===e?void 0:e.querySelector("li button:not(:disabled),li input:not(:disabled)");t&&t.focus({preventScroll:C})}),S),T.current=o}),[o]),t.useEffect((()=>{const e=e=>{var t,n,i,s;o&&p&&((null===(t=M.current)||void 0===t?void 0:t.contains(e.target))||(null===(n=R.current)||void 0===n?void 0:n.contains(e.target)))&&u.includes(e.key)&&(e.preventDefault(),p(!1),null===(i=R.current)||void 0===i||i.focus()),(null===(s=R.current)||void 0===s?void 0:s.contains(e.target))&&(f?f(e):o&&"typeahead"!==m&&Nt(e,M))},t=e=>{var t,n;o&&p&&!(null===(t=null==R?void 0:R.current)||void 0===t?void 0:t.contains(e.target))&&o&&!(null===(n=M.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)}}),[o,M,R,p,u,f,C,d,S]);const L=g.jsx(Dt,Object.assign({role:y,className:h(i),ref:M,onSelect:(e,t)=>{s&&s(e,t),c&&R.current.focus()},isPlain:b,selected:l,isScrollable:null!=N?N:void 0!==j||void 0!==w},Y(qn.displayName,E,void 0===I.ouiaSafe||I.ouiaSafe),I,{children:g.jsx(Rt,{menuHeight:j,maxMenuHeight:w,children:n})}));return g.jsx(jt,Object.assign({trigger:"function"==typeof r?r(R):r.toggleNode,triggerRef:R,popper:L,popperRef:M,isVisible:o,zIndex:x},O))},qn=t.forwardRef(((e,t)=>g.jsx(zn,Object.assign({innerRef:t},e))));qn.displayName="Select";const Zn=e=>{var{children:t,className:n,isAriaMultiselectable:i=!1}=e,s=a(e,["children","className","isAriaMultiselectable"]);return g.jsx(En,Object.assign({isAriaMultiselectable:i,className:h(n)},s,{children:t}))};Zn.displayName="SelectList";const Gn=e=>{var{children:t,className:n,innerRef:i,value:s}=e,o=a(e,["children","className","innerRef","value"]);return g.jsx(In,Object.assign({itemId:s,ref:i,className:h(n)},o,{children:t}))},Xn=t.forwardRef(((e,t)=>g.jsx(Gn,Object.assign({},e,{innerRef:t}))));Xn.displayName="SelectOption";const Kn=e=>{var{innerRef:n,initialOptions:i,isDisabled:s,onSelect:o,onToggle:l,toggleContent:r,toggleWidth:c="200px",toggleProps:d,placeholder:p="Select a value"}=e,u=a(e,["innerRef","initialOptions","isDisabled","onSelect","onToggle","toggleContent","toggleWidth","toggleProps","placeholder"]);const[f,m]=t.useState(!1),[h,b]=t.useState();t.useEffect((()=>{const e=null==i?void 0:i.find((e=>e.selected));b(e)}),[i]);const v=null==i?void 0:i.map((e=>{const{content:t,value:n}=e,i=a(e,["content","value"]),s=(null==h?void 0:h.value)===n;return g.jsx(Xn,Object.assign({value:n,isSelected:s},i,{children:t}),n)})),x=()=>{l&&l(!f),m(!f)};return g.jsx(qn,Object.assign({isOpen:f,selected:h,onSelect:(e,t)=>{o&&o(e,t),b(i.find((e=>e.value===t))),l&&l(!0),m(!1)},onOpenChange:e=>{l&&l(e),m(e)},toggle:e=>g.jsx(Hn,Object.assign({ref:e,onClick:x,isExpanded:f,isDisabled:s,style:{width:c}},d,{children:r||((null==h?void 0:h.content)||p)})),shouldFocusToggleOnSelect:!0,ref:n},u,{children:g.jsx(Zn,{children:v})}))},Yn=t.forwardRef(((e,t)=>g.jsx(Kn,Object.assign({},e,{innerRef:t}))));Yn.displayName="SimpleSelect";const Jn=e=>{var{innerRef:n,initialOptions:i,isDisabled:s,onSelect:o,onToggle:l,toggleContent:r,toggleWidth:c="200px",toggleProps:d}=e,p=a(e,["innerRef","initialOptions","isDisabled","onSelect","onToggle","toggleContent","toggleWidth","toggleProps"]);const[u,f]=t.useState(!1),[m,h]=t.useState([]);t.useEffect((()=>{var e;const t=null==i?void 0:i.filter((e=>e.selected));h(null!==(e=null==t?void 0:t.map((e=>String(e.value))))&&void 0!==e?e:[])}),[i]);const b=null==i?void 0:i.map((e=>{const{content:t,value:n}=e,i=a(e,["content","value"]),s=m.includes(`${n}`);return g.jsx(Xn,Object.assign({value:n,hasCheckbox:!0,isSelected:s},i,{children:t}),n)})),v=()=>{l&&l(!u),f(!u)},x=g.jsxs(g.Fragment,{children:["Filter by status",m.length>0&&g.jsx(nn,{isRead:!0,children:m.length})]});return g.jsx(qn,Object.assign({isOpen:u,selected:m,onSelect:(e,t)=>{const n=`${t}`;m.includes(n)?h((e=>e.filter((e=>e!==n)))):h((e=>[...e,n])),o&&o(e,t)},onOpenChange:e=>{l&&l(e),f(e)},toggle:e=>g.jsx(Hn,Object.assign({ref:e,onClick:v,isExpanded:u,isDisabled:s,style:{width:c}},d,{children:r||x})),ref:n,role:"menu"},p,{children:g.jsx(Zn,{children:b})}))},Qn=t.forwardRef(((e,t)=>g.jsx(Jn,Object.assign({},e,{innerRef:t}))));var ei={modifiers:{disabled:"pf-m-disabled",plain:"pf-m-plain",success:"pf-m-success",warning:"pf-m-warning",error:"pf-m-error",status:"pf-m-status",icon:"pf-m-icon",hint:"pf-m-hint"},textInputGroup:"pf-v6-c-text-input-group",textInputGroupIcon:"pf-v6-c-text-input-group__icon",textInputGroupMain:"pf-v6-c-text-input-group__main",textInputGroupText:"pf-v6-c-text-input-group__text",textInputGroupTextInput:"pf-v6-c-text-input-group__text-input",textInputGroupUtilities:"pf-v6-c-text-input-group__utilities"};const ti=t.createContext({isDisabled:!1}),ni=e=>{var{children:n,className:i,isDisabled:s,isPlain:o,validated:l,innerRef:r}=e,c=a(e,["children","className","isDisabled","isPlain","validated","innerRef"]);const d=t.useRef(null),p=r||d;return g.jsx(ti.Provider,{value:{isDisabled:s,validated:l},children:g.jsx("div",Object.assign({ref:p,className:h(ei.textInputGroup,s&&ei.modifiers.disabled,o&&ei.modifiers.plain,l&&ei.modifiers[l],i)},c,{children:n}))})};ni.displayName="TextInputGroup";const ii=e=>{var{children:t,className:n,isStatus:i}=e,s=a(e,["children","className","isStatus"]);return g.jsx("span",Object.assign({className:h(ei.textInputGroupIcon,i&&ei.modifiers.status,n)},s,{children:t}))};ii.displayName="TextInputGroupIcon";const si=e=>{var{children:n,className:i,icon:s,type:o="text",hint:l,onChange:r=(()=>{}),onFocus:c,onBlur:d,"aria-label":p="Type to filter",value:u,placeholder:f,innerRef:m,name:b,"aria-activedescendant":v,role:x,isExpanded:y,"aria-controls":O,inputId:j,inputProps:w}=e,N=a(e,["children","className","icon","type","hint","onChange","onFocus","onBlur","aria-label","value","placeholder","innerRef","name","aria-activedescendant","role","isExpanded","aria-controls","inputId","inputProps"]);const{isDisabled:C,validated:S}=t.useContext(ti),I=t.useRef(null),E=m||I,D=q[S===U.error?"danger":S];return g.jsxs("div",Object.assign({className:h(ei.textInputGroupMain,s&&ei.modifiers.icon,i)},N,{children:[n,g.jsxs("span",{className:h(ei.textInputGroupText),children:[l&&g.jsx("input",{className:h(ei.textInputGroupTextInput,ei.modifiers.hint),type:"text",disabled:!0,"aria-hidden":"true",value:l,id:j}),s&&g.jsx(ii,{children:s}),g.jsx("input",Object.assign({ref:E,type:o,className:h(ei.textInputGroupTextInput),"aria-label":p,disabled:C,onChange:e=>{r(e,e.currentTarget.value)},onFocus:c,onBlur:d,value:u||"",placeholder:f,name:b,"aria-activedescendant":v,id:j},x&&{role:x},void 0!==y&&{"aria-expanded":y},O&&{"aria-controls":O},w)),S&&g.jsx(ii,{isStatus:!0,children:g.jsx(D,{})})]})]}))},ai=t.forwardRef(((e,t)=>g.jsx(si,Object.assign({innerRef:t},e))));ai.displayName="TextInputGroupMain";const oi=e=>{var{children:t,className:n}=e,i=a(e,["children","className"]);return g.jsx("div",Object.assign({className:h(ei.textInputGroupUtilities,n)},i,{children:t}))};oi.displayName="TextInputGroupUtilities";const li=A({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}),ri=e=>`No results found for "${e}"`,ci=e=>`Create "${e}"`,di=e=>{var n,i,s,o,{innerRef:l,initialOptions:r,onSelect:c,onToggle:d,onInputChange:p,onInputKeyDown:u,onClearSelection:f,placeholder:m="Select an option",noOptionsAvailableMessage:h="No options are available",noOptionsFoundMessage:b=ri,isCreatable:v=!1,isCreateOptionOnTop:x=!1,createOptionMessage:y=ci,isDisabled:O,toggleWidth:j,toggleProps:w}=e,N=a(e,["innerRef","initialOptions","onSelect","onToggle","onInputChange","onInputKeyDown","onClearSelection","placeholder","noOptionsAvailableMessage","noOptionsFoundMessage","isCreatable","isCreateOptionOnTop","createOptionMessage","isDisabled","toggleWidth","toggleProps"]);const[C,S]=t.useState(!1),[I,E]=t.useState(String(null!==(i=null===(n=r.find((e=>e.selected)))||void 0===n?void 0:n.content)&&void 0!==i?i:"")),[D,k]=t.useState(String(null!==(o=null===(s=r.find((e=>e.selected)))||void 0===s?void 0:s.content)&&void 0!==o?o:"")),[M,R]=t.useState(""),[T,L]=t.useState(r),[P,_]=t.useState(null),[A,F]=t.useState(null),H=t.useRef(void 0),B="no results";t.useEffect((()=>{let e=r;if(M){if(e=r.filter((e=>String(e.content).toLowerCase().includes(M.toLowerCase()))),v&&M&&!r.find((e=>String(e.content).toLowerCase()===M.toLowerCase()))){const t={content:"string"==typeof y?y:y(M),value:M};e=x?[t,...e]:[...e,t]}e.length||(e=[{isAriaDisabled:!0,content:"string"==typeof b?b:b(M),value:B}]),W()}e.length||(e=[{isAriaDisabled:!0,content:h,value:B}]),L(e)}),[M,r,b,v,x,y,h]),t.useEffect((()=>{var e;const t=r.find((e=>e.selected));D===I&&(null==t?void 0:t.value)!==I&&k(String(null!==(e=null==t?void 0:t.content)&&void 0!==e?e:""))}),[r]);const $=()=>{_(null),F(null)},W=()=>{C||(d&&d(!0),S(!0))},U=(e=!0)=>{if(d&&d(!1),S(!1),$(),e){const e=r.find((e=>e.value===I));e&&k(String(e.content)),R("")}},V=()=>{C?D||U():W()},z=(e,t)=>{c&&c(e,t.value),k(String(t.content)),R(""),E(String(t.value)),U(!1)},q=(e,t)=>{k(t),p&&p(t),R(t),$()},Z=e=>{let t=0;if(W(),!T.every((e=>e.isDisabled))){if("ArrowUp"===e)for(t=null===P||0===P?T.length-1:P-1;T[t].isDisabled;)t--,-1===t&&(t=T.length-1);if("ArrowDown"===e)for(t=null===P||P===T.length-1?0:P+1;T[t].isDisabled;)t++,t===T.length&&(t=0);(e=>{_(e);const t=T[e];F(String(t.value))})(t)}},G=e=>{u?u(e):(e=>{const t=null!==P?T[P]:null;switch(e.key){case"Enter":e.preventDefault(),C&&t&&t.value!==B&&!t.isAriaDisabled&&z(e,t),W();break;case"ArrowUp":case"ArrowDown":e.preventDefault(),Z(e.key)}})(e)},X=()=>{var e;d&&d(!C),S(!C),null===(e=H.current)||void 0===e||e.focus()},K=()=>{var e;E(""),k(""),p&&p(""),R(""),$(),null===(e=H.current)||void 0===e||e.focus(),f&&f()};return g.jsx(qn,Object.assign({isOpen:C,selected:I,onSelect:(e,t)=>{if(t&&t!==B){const n=T.find((e=>e.value===t));z(e,n)}},onOpenChange:e=>{!e&&U()},toggle:e=>g.jsx(Hn,Object.assign({ref:e,variant:"typeahead","aria-label":"Typeahead menu toggle",onClick:X,isExpanded:C,isDisabled:O,isFullWidth:!0,style:{width:j}},w,{children:g.jsxs(ni,{isPlain:!0,children:[g.jsx(ai,Object.assign({value:D,onClick:V,onChange:q,onKeyDown:G,autoComplete:"off",innerRef:H,placeholder:m},A&&{"aria-activedescendant":A},{role:"combobox",isExpanded:C,"aria-controls":"select-typeahead-listbox"})),g.jsx(oi,Object.assign({},D?{}:{style:{display:"none"}},{children:g.jsx(fn,{variant:"plain",onClick:K,"aria-label":"Clear input value",icon:g.jsx(li,{})})}))]})})),variant:"typeahead",ref:l},N,{children:g.jsx(Zn,{children:T.map(((e,t)=>{const{content:n,value:i}=e,s=a(e,["content","value"]);return g.jsx(Xn,Object.assign({value:i,isFocused:P===t},s,{children:n}),i)}))})}))};di.displayName="TypeaheadSelectBase";const pi=t.forwardRef(((e,t)=>g.jsx(di,Object.assign({},e,{innerRef:t}))));pi.displayName="TypeaheadSelect";var ui={label:"pf-v6-c-label",labelActions:"pf-v6-c-label__actions",labelContent:"pf-v6-c-label__content",labelIcon:"pf-v6-c-label__icon",labelText:"pf-v6-c-label__text",modifiers:{blue:"pf-m-blue",red:"pf-m-red",orange:"pf-m-orange",orangered:"pf-m-orangered",yellow:"pf-m-yellow",green:"pf-m-green",teal:"pf-m-teal",purple:"pf-m-purple",success:"pf-m-success",warning:"pf-m-warning",danger:"pf-m-danger",info:"pf-m-info",custom:"pf-m-custom",compact:"pf-m-compact",filled:"pf-m-filled",outline:"pf-m-outline",editable:"pf-m-editable",editableActive:"pf-m-editable-active",overflow:"pf-m-overflow",add:"pf-m-add",clickable:"pf-m-clickable",disabled:"pf-m-disabled"}},fi="pf-v6-c-label-group",mi="pf-v6-c-label-group__close",gi="pf-v6-c-label-group__label",hi="pf-v6-c-label-group__list",bi="pf-v6-c-label-group__list-item",vi="pf-v6-c-label-group__main",xi="pf-v6-c-label-group__textarea",yi={category:"pf-m-category",vertical:"pf-m-vertical",editable:"pf-m-editable",textarea:"pf-m-textarea"};const Oi="--pf-v6-c-label__text--MaxWidth",ji={blue:ui.modifiers.blue,teal:ui.modifiers.teal,green:ui.modifiers.green,orange:ui.modifiers.orange,purple:ui.modifiers.purple,red:ui.modifiers.red,orangered:ui.modifiers.orangered,yellow:ui.modifiers.yellow,grey:""},wi={success:g.jsx(F,{}),warning:g.jsx(B,{}),danger:g.jsx(H,{}),info:g.jsx($,{}),custom:g.jsx(W,{})},Ni=e=>{var{children:n,className:i="",color:s="grey",variant:o="filled",status:l,isCompact:r=!1,isDisabled:c=!1,isEditable:d=!1,isClickable:p=!1,editableProps:u,textMaxWidth:f,tooltipPosition:m,icon:b,onClose:v,onClick:x,onEditCancel:y,onEditComplete:O,closeBtn:j,closeBtnAriaLabel:w,closeBtnProps:N,href:C,render:S}=e,I=a(e,["children","className","color","variant","status","isCompact","isDisabled","isEditable","isClickable","editableProps","textMaxWidth","tooltipPosition","icon","onClose","onClick","onEditCancel","onEditComplete","closeBtn","closeBtnAriaLabel","closeBtnProps","href","render"]);const[E,D]=t.useState(!1),[k,M]=t.useState(n),R=t.useRef(void 0),T=t.useRef(void 0),L="overflow"===o,P="add"===o,_=p||x&&!L&&!P||C;let A;l&&(A=wi[l]),b&&(A=b),t.useEffect((()=>{const e=e=>{E&&T&&T.current&&!T.current.contains(e.target)&&(T.current.value&&O&&O(e,T.current.value),D(!1))},t=e=>{var t,i;const s=e.key;if((E||R&&R.current&&R.current.contains(e.target))&&(!E||T&&T.current&&T.current.contains(e.target))&&(!E||"Enter"!==s&&"Tab"!==s||(e.preventDefault(),e.stopImmediatePropagation(),T.current.value&&O&&O(e,T.current.value),D(!1),null===(t=null==R?void 0:R.current)||void 0===t||t.focus()),E&&"Escape"===s&&(e.preventDefault(),e.stopImmediatePropagation(),T.current.value&&(T.current.value=n,y&&y(e,n)),D(!1),null===(i=null==R?void 0:R.current)||void 0===i||i.focus()),!E&&"Enter"===s)){e.preventDefault(),e.stopImmediatePropagation(),D(!0);const t=e.target,n=document.createRange(),i=window.getSelection();n.selectNodeContents(t),n.collapse(!1),i.removeAllRanges(),i.addRange(n)}};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}}),[E,T,R,O,y,n]),t.useEffect((()=>{x&&C?console.warn("Link labels cannot have onClick passed, this results in invalid HTML. Please remove either the href or onClick prop."):x&&d&&console.warn("Editable labels cannot have onClick passed, clicking starts the label edit process. Please remove either the isEditable or onClick prop.")}),[x,C,d]);const F=(C||x)&&c,H=g.jsx(fn,Object.assign({type:"button",variant:"plain",hasNoPadding:!0,onClick:v,"aria-label":w||`Close ${n}`},F&&{isDisabled:!0},N,{icon:g.jsx(li,{})})),B=g.jsx("span",{className:h(ui.labelActions),children:j||H}),$=t.createRef(),W=t.useRef(void 0),[U,V]=t.useState(!1);ht((()=>{const e=d?R:$;E||V(e.current&&e.current.offsetWidth<e.current.scrollWidth)}),[E]);const z=g.jsxs(t.Fragment,{children:[A&&g.jsx("span",{className:h(ui.labelIcon),children:A}),g.jsx("span",Object.assign({ref:$,className:h(ui.labelText)},f&&{style:{[Oi]:f}},{children:n}))]});t.useEffect((()=>{E&&T&&T.current&&T.current.focus()}),[T,E]);let q="span";C?q="a":(d||x&&!L&&!P)&&(q="button");const Z={type:"button",onClick:x},G="button"===q,X=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({className:h(ui.labelContent,_&&ui.modifiers.clickable)},U&&{tabIndex:0}),C&&{href:C}),C&&c&&{onClick:e=>e.preventDefault()}),G&&Z),d&&Object.assign({ref:R,onClick:e=>{D(!0),e.stopPropagation()}},u)),F&&G&&{disabled:!0}),F&&C&&{tabIndex:-1,"aria-disabled":!0});let K=g.jsx(q,Object.assign({},X,{children:z}));S?K=g.jsxs(t.Fragment,{children:[U&&g.jsx(Nn,{triggerRef:W,content:n,position:m}),S({className:ui.labelContent,content:z,componentRef:W})]}):U&&(K=g.jsx(Nn,{content:n,position:m,children:K}));const Y=L||P?"button":"span";return g.jsxs(Y,Object.assign({},I,{className:h(ui.label,F&&ui.modifiers.disabled,ji[s],"filled"===o&&ui.modifiers.filled,"outline"===o&&ui.modifiers.outline,l&&ui.modifiers[l],L&&ui.modifiers.overflow,r&&ui.modifiers.compact,d&&yi.editable,E&&ui.modifiers.editableActive,_&&ui.modifiers.clickable,P&&ui.modifiers.add,i),onClick:L||P?x:void 0},"button"===Y&&{type:"button"},{children:[!E&&K,!E&&v&&B,E&&g.jsx("input",Object.assign({className:h(ui.labelContent),type:"text",id:"editable-input",ref:T,value:k,onChange:()=>{M(T.current.value)}},u))]}))};Ni.displayName="Label";class Ci extends t.Component{constructor(e){super(e),this.headingRef=t.createRef(),this.toggleCollapse=()=>{this.setState((e=>({isOpen:!e.isOpen,isTooltipVisible:Boolean(this.headingRef.current&&this.headingRef.current.offsetWidth<this.headingRef.current.scrollWidth)})))},this.state={isOpen:this.props.defaultIsOpen,isTooltipVisible:!1}}componentDidMount(){this.setState({isTooltipVisible:Boolean(this.headingRef.current&&this.headingRef.current.offsetWidth<this.headingRef.current.scrollWidth)})}renderLabel(e){const{categoryName:t,tooltipPosition:n}=this.props,{isTooltipVisible:i}=this.state;return i?g.jsx(Nn,{position:n,content:t,children:g.jsx("span",{tabIndex:0,ref:this.headingRef,className:h(gi),children:g.jsx("span",{"aria-hidden":"true",id:e,children:t})})}):g.jsx("span",{ref:this.headingRef,className:h(gi),"aria-hidden":"true",id:e,children:t})}render(){const e=this.props,{categoryName:n,children:i,className:s,isClosable:o,isCompact:l,closeBtnAriaLabel:r,"aria-label":c,onClick:d,numLabels:p,expandedText:u,collapsedText:f,defaultIsOpen:m,tooltipPosition:b,isVertical:v,isEditable:x,hasEditableTextArea:y,editableTextAreaProps:O,addLabelControl:j}=e,w=a(e,["categoryName","children","className","isClosable","isCompact","closeBtnAriaLabel","aria-label","onClick","numLabels","expandedText","collapsedText","defaultIsOpen","tooltipPosition","isVertical","isEditable","hasEditableTextArea","editableTextAreaProps","addLabelControl"]),{isOpen:N}=this.state,C=t.Children.toArray(i),S=C.length,I=(E={remaining:S-p},f.replace(/\${(.*?)}/g,((e,t)=>E[t]||"")));var E;const D=e=>{const i=N?C:C.slice(0,p),a=g.jsxs(t.Fragment,{children:[n&&this.renderLabel(e),g.jsxs("ul",Object.assign({className:h(hi)},n&&{"aria-labelledby":e},!n&&{"aria-label":c},{role:"list"},w,{children:[i.map(((e,t)=>g.jsx("li",{className:h(bi),children:e},t))),S>p&&g.jsx("li",{className:h(bi),children:g.jsx(Ni,{variant:"overflow",onClick:this.toggleCollapse,className:h(l&&ui.modifiers.compact),children:N?u:I})}),j&&g.jsx("li",{className:h(bi),children:j}),x&&y&&g.jsx("li",{className:h(bi,yi.textarea),children:g.jsx("textarea",Object.assign({className:h(xi),rows:1,tabIndex:0},O))})]}))]}),f=g.jsx("div",{className:h(mi),children:g.jsx(fn,{variant:"plain",size:"sm","aria-label":r,onClick:d,id:`remove_group_${e}`,"aria-labelledby":`remove_group_${e} ${e}`,icon:g.jsx(li,{})})});return g.jsxs("div",{className:h(fi,s,n&&yi.category,v&&yi.vertical,x&&yi.editable),children:[g.jsx("div",{className:h(vi),children:a}),o&&f]})};return 0===S&&void 0===j?null:g.jsx(K,{children:e=>D(this.props.id||e)})}}Ci.displayName="LabelGroup",Ci.defaultProps={expandedText:"Show Less",collapsedText:"${remaining} more",categoryName:"",defaultIsOpen:!1,numLabels:3,isClosable:!1,isCompact:!1,onClick:e=>{},closeBtnAriaLabel:"Close label group",tooltipPosition:"top","aria-label":"Label group category",isVertical:!1,isEditable:!1,hasEditableTextArea:!1};const Si=e=>{var n,{innerRef:i,initialOptions:s,onSelectionChange:o,onToggle:l,onInputChange:r,onInputKeyDown:c,placeholder:d="Select an option",noOptionsFoundMessage:p=(e=>`No results found for "${e}"`),isDisabled:u,toggleWidth:f,toggleProps:m,labelProps:h,initialInputValue:b}=e,v=a(e,["innerRef","initialOptions","onSelectionChange","onToggle","onInputChange","onInputKeyDown","placeholder","noOptionsFoundMessage","isDisabled","toggleWidth","toggleProps","labelProps","initialInputValue"]);const[x,y]=t.useState(!1),[O,j]=t.useState((null!==(n=null==s?void 0:s.filter((e=>e.selected)))&&void 0!==n?n:[]).map((e=>e.value))),[w,N]=t.useState(b),[C,S]=t.useState(s),[I,E]=t.useState(null),[D,k]=t.useState(null),M=t.useRef(void 0),R="no results",T=()=>{l&&l(!0),y(!0)};t.useEffect((()=>{let e=s;w&&(e=s.filter((e=>String(e.content).toLowerCase().includes(w.toLowerCase()))),e.length||(e=[{isAriaDisabled:!0,content:"string"==typeof p?p:p(w),value:R}])),S(e)}),[w,s]),t.useEffect((()=>{var e;return j((null!==(e=null==s?void 0:s.filter((e=>e.selected)))&&void 0!==e?e:[]).map((e=>e.value)))}),[s]);const L=()=>{E(null),k(null)},P=()=>{l&&l(!1),y(!1),L(),N("")},_=()=>{x?w||P():T()},A=(e,t)=>{const n=O.includes(t)?O.filter((e=>t!==e)):[...O,t];o&&o(e,n),j(n)},F=(e,t)=>{N(t),r&&r(t),t&&!x&&T(),L()},H=e=>{let t=0;if(x||T(),!C.every((e=>e.isDisabled))){if("ArrowUp"===e)for(t=null===I||0===I?C.length-1:I-1;C[t].isDisabled;)t--,-1===t&&(t=C.length-1);if("ArrowDown"===e)for(t=null===I||I===C.length-1?0:I+1;C[t].isDisabled;)t++,t===C.length&&(t=0);(e=>{E(e);const t=C[e];k(t.value)})(t)}},B=e=>{c?c(e):(e=>{const t=null!==I?C[I]:null;switch(e.key){case"Enter":e.preventDefault(),x&&t&&t.value!==R&&!t.isAriaDisabled&&A(e,null==t?void 0:t.value),x||(l&&l(!0),y(!0));break;case"ArrowUp":case"ArrowDown":e.preventDefault(),H(e.key)}})(e)},$=()=>{var e;l&&l(!x),y(!x),null===(e=null==M?void 0:M.current)||void 0===e||e.focus()},W=e=>{var t;j([]),r&&r(""),L(),null===(t=null==M?void 0:M.current)||void 0===t||t.focus(),o&&o(e,[])};return g.jsx(qn,Object.assign({isOpen:x,selected:O,onSelect:(e,t)=>{t&&t!==R&&A(e,t)},onOpenChange:e=>{!e&&P()},toggle:e=>g.jsx(Hn,Object.assign({ref:e,variant:"typeahead","aria-label":"Multi select Typeahead menu toggle",onClick:$,isExpanded:x,isDisabled:u,isFullWidth:!0,style:{width:f}},m,{children:g.jsxs(ni,{isPlain:!0,children:[g.jsx(ai,Object.assign({value:w,onClick:_,onChange:F,onKeyDown:B,autoComplete:"off",innerRef:M,placeholder:d},D&&{"aria-activedescendant":D},{role:"combobox",isExpanded:x,"aria-controls":"select-typeahead-listbox",children:g.jsx(Ci,{"aria-label":"Current selections",children:O.map(((e,t)=>{var n;return g.jsx(Ni,Object.assign({"datatest-id":`${e}-chip`,onClose:t=>{t.stopPropagation(),((e,t)=>{const n=O.filter((e=>t!==e));o&&o(e,n),j(n)})(t,e)}},h,{children:null===(n=s.find((t=>t.value===e)))||void 0===n?void 0:n.content}),t)}))})})),g.jsx(oi,Object.assign({},0===O.length?{style:{display:"none"}}:{},{children:g.jsx(fn,{variant:"plain",onClick:W,"aria-label":"Clear input value",children:g.jsx(li,{})})}))]})})),variant:"typeahead",ref:i},v,{children:g.jsx(Zn,{children:C.map(((e,t)=>{const{content:n,value:i}=e,s=a(e,["content","value"]);return g.jsx(Xn,Object.assign({value:i,isFocused:I===t},s,{children:n}),i)}))})}))};Si.displayName="MultiTypeaheadSelectBase";const Ii=t.forwardRef(((e,t)=>g.jsx(Si,Object.assign({},e,{innerRef:t}))));Ii.displayName="MultiTypeaheadSelect",e.CheckboxSelect=Qn,e.MultiTypeaheadSelect=Ii,e.MultiTypeaheadSelectBase=Si,e.SimpleDropdown=Vn,e.SimpleSelect=Yn,e.TypeaheadSelect=pi,e.TypeaheadSelectBase=di}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-templates",
|
|
3
|
-
"version": "6.5.0-prerelease.
|
|
3
|
+
"version": "6.5.0-prerelease.50",
|
|
4
4
|
"description": "This package provides wrapped component demos for ease of use\n",
|
|
5
5
|
"main": "dist/js/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
"subpaths": "node ../../scripts/exportSubpaths.mjs --config subpaths.config.json"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@patternfly/react-core": "^6.5.0-prerelease.
|
|
37
|
-
"@patternfly/react-icons": "^6.5.0-prerelease.
|
|
38
|
-
"@patternfly/react-styles": "^6.5.0-prerelease.
|
|
39
|
-
"@patternfly/react-tokens": "^6.5.0-prerelease.
|
|
36
|
+
"@patternfly/react-core": "^6.5.0-prerelease.50",
|
|
37
|
+
"@patternfly/react-icons": "^6.5.0-prerelease.21",
|
|
38
|
+
"@patternfly/react-styles": "^6.5.0-prerelease.16",
|
|
39
|
+
"@patternfly/react-tokens": "^6.5.0-prerelease.15",
|
|
40
40
|
"tslib": "^2.8.1"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"react": "^17 || ^18 || ^19",
|
|
44
44
|
"react-dom": "^17 || ^18 || ^19"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "911223aa1a6b9309d90d31245bc29f3e1a9c675c"
|
|
47
47
|
}
|