@ansible/ansible-ui-framework 2.4.304 → 2.4.306

Sign up to get free protection for your applications and to get access to all the features.
package/index.umd.cjs CHANGED
@@ -304,7 +304,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
304
304
  font-size: var(--pf-global--FontSize--sm);
305
305
  --pf-c-form__group-label-help--Color: var(--pf-global--Color--200);
306
306
  --pf-c-form__group-label-help--hover--Color: var(--pf-global--Color--100);
307
- `;function _6e(n){const{ariaLabel:e="",content:t,header:i,id:r="",maxWidth:s="",...o}=n,[a]=vi();return t?L.jsx(R.Popover,{bodyContent:t,headerContent:i,hideOnOutsideClick:!0,id:r,"data-cy":r,maxWidth:s,...o,children:L.jsx(p6e,{"aria-label":e??a.moreInformation,"aria-haspopup":"true",className:"pf-c-form__group-label-help",onClick:l=>l.preventDefault(),type:"button",children:L.jsx(yt.HelpIcon,{noVerticalAlign:!0})})}):null}function K0(n){const{label:e,children:t,helpText:i,isEmpty:r}=n;return t===null||typeof t>"u"||t===""?L.jsx(L.Fragment,{}):r?L.jsx(L.Fragment,{}):L.jsxs(R.DescriptionListGroup,{children:[e&&L.jsxs(R.DescriptionListTerm,{children:[e,i?L.jsx(_6e,{header:e,content:i}):null]}),L.jsx(R.DescriptionListDescription,{id:e==null?void 0:e.toLowerCase().split(" ").join("-"),children:t})]})}function uH(n){const{disablePadding:e}=n,t=Vf(),i=t.formLayout,r=n.numberOfColumns?n.numberOfColumns:t.formColumns,s=!1;return L.jsx(R.PageSection,{variant:"light",padding:{default:"noPadding"},className:"dark-1",children:L.jsx(R.DescriptionList,{orientation:{sm:i,md:i,lg:i,xl:i,"2xl":i},columnModifier:r==="multiple"?{default:"1Col",sm:"1Col",md:"2Col",lg:"2Col",xl:"3Col","2xl":"3Col"}:void 0,style:{maxWidth:1200,padding:e?void 0:24},isCompact:s,children:n.children})})}var Gn=(n=>(n.Table="table",n.List="list",n.Cards="cards",n))(Gn||{}),fu=(n=>(n.Description="description",n.Expanded="expanded",n.Hidden="hidden",n))(fu||{}),dH=(n=>(n.Name="name",n.Subtitle="subtitle",n.Description="description",n.Hidden="hidden",n.Primary="primary",n.Secondary="secondary",n))(dH||{}),hH=(n=>(n.Name="name",n.Subtitle="subtitle",n.Description="description",n.Hidden="hidden",n))(hH||{}),fH=(n=>(n.Hidden="hidden",n))(fH||{});function Nr(n){const{item:e,column:t}=n;if(!t)return L.jsx(L.Fragment,{});switch(t.type){case"text":return L.jsx(ak,{text:t.value(e)});case"description":return L.jsx(ak,{text:t.value(e)});case"datetime":return L.jsx(p7,{format:"since",value:t.value(e)});case"count":return L.jsx(L.Fragment,{children:t.value(e)??"-"});case"labels":return L.jsx(_7,{labels:t.value(e)??[]});default:return L.jsx(L.Fragment,{children:t.cell(e)})}}function iT(n){return T.useMemo(()=>n.filter(e=>!(e.table==="hidden"||e.table==="description"||e.table==="expanded")),[n])}function gH(n){return T.useMemo(()=>n.filter(e=>e.list!=="hidden"),[n])}function mH(n){return T.useMemo(()=>n.filter(e=>e.card!=="hidden"),[n])}function rT(n){return T.useMemo(()=>n.filter(e=>e.modal!=="hidden"),[n])}function v6e(n,e){const t=iT(n),i=gH(n),r=mH(n);switch(e){case Gn.Table:return t;case Gn.List:return i;case Gn.Cards:return r}}function pH(n){return T.useMemo(()=>n.filter(e=>e.table==="hidden"?!1:e.table==="description"),[n])}function _H(n){return T.useMemo(()=>n.filter(e=>e.table==="hidden"?!1:e.table==="expanded"),[n])}function b6e(n){return T.useMemo(()=>n.map(e=>({...e,sort:void 0})),[n])}function y6e(n){return T.useMemo(()=>n.map(e=>({...e,table:e.table==="expanded"?void 0:e.table})),[n])}function vH(n){const{item:e,columns:t,disablePadding:i,numberOfColumns:r}=n;return e?L.jsx(uH,{disablePadding:i,numberOfColumns:r,children:t.map(s=>"value"in s&&s.value&&!s.value(e)?L.jsx(T.Fragment,{},s.id??s.header):L.jsx(K0,{label:s.header,children:L.jsx(Nr,{column:s,item:e})},s.id??s.header))}):L.jsx(L.Fragment,{})}let C6e=class{constructor(e){XP(this,"value");XP(this,"next");this.value=e}};class w6e{constructor(){_L(this,Rl,void 0);_L(this,wf,void 0);_L(this,Sf,void 0);this.clear()}enqueue(e){const t=new C6e(e);Ed(this,Rl)?(Ed(this,wf).next=t,Kc(this,wf,t)):(Kc(this,Rl,t),Kc(this,wf,t)),QP(this,Sf)._++}dequeue(){const e=Ed(this,Rl);if(e)return Kc(this,Rl,Ed(this,Rl).next),QP(this,Sf)._--,e.value}clear(){Kc(this,Rl,void 0),Kc(this,wf,void 0),Kc(this,Sf,0)}get size(){return Ed(this,Sf)}*[Symbol.iterator](){let e=Ed(this,Rl);for(;e;)yield e.value,e=e.next}}Rl=new WeakMap,wf=new WeakMap,Sf=new WeakMap;function S6e(n){if(!((Number.isInteger(n)||n===Number.POSITIVE_INFINITY)&&n>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");const e=new w6e;let t=0;const i=()=>{t--,e.size>0&&e.dequeue()()},r=async(a,l,c)=>{t++;const u=(async()=>a(...c))();l(u);try{await u}catch{}i()},s=(a,l,c)=>{e.enqueue(r.bind(void 0,a,l,c)),(async()=>(await Promise.resolve(),t<n&&e.size>0&&e.dequeue()()))()},o=(a,...l)=>new Promise(c=>{s(a,c,l)});return Object.defineProperties(o,{activeCount:{get:()=>t},pendingCount:{get:()=>e.size},clearQueue:{value:()=>{e.clear()}}}),o}function bH(n){const[e,t]=T.useState(!1),i=ms("sm"),[r]=vi(),{pageItems:s,selectedItems:o,selectItems:a,unselectAll:l}=n,c=n.itemCount!==void 0&&n.itemCount>0&&s&&s.length>0&&(s??[]).every(p=>o==null?void 0:o.includes(p)),u=T.useCallback(()=>{c?l==null||l():a==null||a(s??[])},[c,l,a,s]),d=T.useMemo(()=>i?o&&o.length>0?`${o.length} selected`:"":o&&o.length>0?`${o.length}`:"",[i,o]),h=T.useMemo(()=>{const p=o?o.length:0;return L.jsx(R.DropdownToggle,{splitButtonItems:[L.jsx(R.DropdownToggleCheckbox,{id:"select-all","aria-label":"Select all",isChecked:c?!0:p>0?null:!1,onChange:u,children:d},"select-all")],onToggle:v=>t(v)})},[o,c,u,d]),f=T.useMemo(()=>L.jsx(R.DropdownItem,{id:"select-none",onClick:()=>{l==null||l(),t(!1)},children:n.selectNoneText??r.selectNone},"select-none"),[n.selectNoneText,r.selectNone,l]),g=T.useMemo(()=>L.jsx(R.DropdownItem,{id:"select-page",onClick:()=>{a==null||a(s??[]),t(!1)},children:`Select ${(s==null?void 0:s.length)??0} page items`},"select-page"),[a,s]),m=T.useMemo(()=>[f,g],[f,g]);return L.jsx(R.Dropdown,{isOpen:e,toggle:h,dropdownItems:m,style:{zIndex:400}})}const kct="";function Nn(...n){const e=[],t={}.hasOwnProperty;return n.filter(Boolean).forEach(i=>{const r=typeof i;if(r==="string"||r==="number")e.push(i);else if(Array.isArray(i)&&i.length){const s=Nn(...i);s&&e.push(s)}else if(r==="object")for(const s in i)t.call(i,s)&&i[s]&&e.push(s)}),e.join(" ")}const Dct="",nn={breadcrumb:"pf-c-breadcrumb",divider:"pf-c-divider",menu:"pf-c-menu",menuBreadcrumb:"pf-c-menu__breadcrumb",menuContent:"pf-c-menu__content",menuFooter:"pf-c-menu__footer",menuGroup:"pf-c-menu__group",menuGroupTitle:"pf-c-menu__group-title",menuHeader:"pf-c-menu__header",menuItem:"pf-c-menu__item",menuItemAction:"pf-c-menu__item-action",menuItemActionIcon:"pf-c-menu__item-action-icon",menuItemCheck:"pf-c-menu__item-check",menuItemDescription:"pf-c-menu__item-description",menuItemExternalIcon:"pf-c-menu__item-external-icon",menuItemIcon:"pf-c-menu__item-icon",menuItemMain:"pf-c-menu__item-main",menuItemSelectIcon:"pf-c-menu__item-select-icon",menuItemText:"pf-c-menu__item-text",menuItemToggleIcon:"pf-c-menu__item-toggle-icon",menuList:"pf-c-menu__list",menuListItem:"pf-c-menu__list-item",menuSearch:"pf-c-menu__search",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",flyout:"pf-m-flyout",top:"pf-m-top",left:"pf-m-left",drilldown:"pf-m-drilldown",drilledIn:"pf-m-drilled-in",currentPath:"pf-m-current-path",static:"pf-m-static",plain:"pf-m-plain",scrollable:"pf-m-scrollable",nav:"pf-m-nav",focus:"pf-m-focus",disabled:"pf-m-disabled",load:"pf-m-load",loading:"pf-m-loading",danger:"pf-m-danger",selected:"pf-m-selected",favorite:"pf-m-favorite",favorited:"pf-m-favorited"},themeDark:"pf-theme-dark"};let x6e=0;class sT extends ce.Component{constructor(){super(...arguments),this.id=`${this.props.prefix}${x6e++}`}render(){return this.props.children(this.id)}}sT.displayName="GenerateId",sT.defaultProps={prefix:"pf-random-id-"};const L6e="*";let k6e=0;const yH="OUIA-Generated-",oT={};function aT(n,e,t=!0){return{"data-ouia-component-type":`PF4/${n}`,"data-ouia-safe":t,"data-ouia-component-id":e}}function lT(n,e){try{let t;return typeof window<"u"?t=`${window.location.href}-${n}-${e||""}`:t=`${n}-${e||""}`,oT[t]||(oT[t]=0),`${yH}${n}-${e?`${e}-`:""}${++oT[t]}`}catch{return`${yH}${n}-${e?`${e}-`:""}${++k6e}`}}const xg=!!(typeof window<"u"&&window.document&&window.document.createElement);function G0(n){const e=n.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function qa(n){if(n.toString()!=="[object Window]"){const e=n.ownerDocument;return e?e.defaultView:window}return n}function cT(n){const e=qa(n),t=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:t,scrollTop:i}}function Y0(n){const e=qa(n).Element;return n instanceof e||n instanceof Element}function Ka(n){const e=qa(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function D6e(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function E6e(n){return n===qa(n)||!Ka(n)?cT(n):D6e(n)}function ra(n){return n?(n.nodeName||"").toLowerCase():null}function ic(n){return(Y0(n)?n.ownerDocument:n.document).documentElement}function uT(n){return G0(ic(n)).left+cT(n).scrollLeft}function rc(n){return qa(n).getComputedStyle(n)}function dT(n){const{overflow:e,overflowX:t,overflowY:i}=rc(n);return/auto|scroll|overlay|hidden/.test(e+i+t)}function T6e(n,e,t=!1){const i=ic(e),r=G0(n),s=Ka(e);let o={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(s||!s&&!t)&&((ra(e)!=="body"||dT(i))&&(o=E6e(e)),Ka(e)?(a=G0(e),a.x+=e.clientLeft,a.y+=e.clientTop):i&&(a.x=uT(i))),{x:r.left+o.scrollLeft-a.x,y:r.top+o.scrollTop-a.y,width:r.width,height:r.height}}function hT(n){return{x:n.offsetLeft,y:n.offsetTop,width:n.offsetWidth,height:n.offsetHeight}}function JC(n){return ra(n)==="html"?n:n.assignedSlot||n.parentNode||n.host||ic(n)}function CH(n){return["html","body","#document"].indexOf(ra(n))>=0?n.ownerDocument.body:Ka(n)&&dT(n)?n:CH(JC(n))}function Z0(n,e=[]){const t=CH(n),i=ra(t)==="body",r=qa(t),s=i?[r].concat(r.visualViewport||[],dT(t)?t:[]):t,o=e.concat(s);return i?o:o.concat(Z0(JC(s)))}function I6e(n){return["table","td","th"].indexOf(ra(n))>=0}function wH(n){if(!Ka(n)||rc(n).position==="fixed")return null;const e=n.offsetParent;if(e){const t=ic(e);if(ra(e)==="body"&&rc(e).position==="static"&&rc(t).position!=="static")return t}return e}function A6e(n){let e=JC(n);for(;Ka(e)&&["html","body"].indexOf(ra(e))<0;){const t=rc(e);if(t.transform!=="none"||t.perspective!=="none"||t.willChange&&t.willChange!=="auto")return e;e=e.parentNode}return null}function X0(n){const e=qa(n);let t=wH(n);for(;t&&I6e(t)&&rc(t).position==="static";)t=wH(t);return t&&ra(t)==="body"&&rc(t).position==="static"?e:t||A6e(n)||e}const yo="top",sa="bottom",oa="right",Co="left",fT="auto",Q0=[yo,sa,oa,Co],Lg="start",gT="end",N6e="clippingParents",SH="viewport",J0="popper",O6e="reference",xH=Q0.reduce((n,e)=>n.concat([`${e}-${Lg}`,`${e}-${gT}`]),[]),LH=[...Q0,fT].reduce((n,e)=>n.concat([e,`${e}-${Lg}`,`${e}-${gT}`]),[]),M6e=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function P6e(n){const e=new Map,t=new Set,i=[];n.forEach(s=>{e.set(s.name,s)});function r(s){t.add(s.name),[...s.requires||[],...s.requiresIfExists||[]].forEach(a=>{if(!t.has(a)){const l=e.get(a);l&&r(l)}}),i.push(s)}return n.forEach(s=>{t.has(s.name)||r(s)}),i}function R6e(n){const e=P6e(n);return M6e.reduce((t,i)=>t.concat(e.filter(r=>r.phase===i)),[])}function F6e(n){let e;return()=>(e||(e=new Promise(t=>{Promise.resolve().then(()=>{e=void 0,t(n())})})),e)}function Ga(n){return n.split("-")[0]}function B6e(n){const e=n.reduce((t,i)=>{const r=t[i.name];return t[i.name]=r?Object.assign(Object.assign(Object.assign({},r),i),{options:Object.assign(Object.assign({},r.options),i.options),data:Object.assign(Object.assign({},r.data),i.data)}):i,t},{});return Object.keys(e).map(t=>e[t])}function W6e(n){const e=qa(n),t=ic(n),i=e.visualViewport;let r=t.clientWidth,s=t.clientHeight,o=0,a=0;return i&&(r=i.width,s=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=i.offsetLeft,a=i.offsetTop)),{width:r,height:s,x:o+uT(n),y:a}}function V6e(n){const e=ic(n),t=cT(n),i=n.ownerDocument.body,r=Math.max(e.scrollWidth,e.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Math.max(e.scrollHeight,e.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);let o=-t.scrollLeft+uT(n);const a=-t.scrollTop;return rc(i||e).direction==="rtl"&&(o+=Math.max(e.clientWidth,i?i.clientWidth:0)-r),{width:r,height:s,x:o,y:a}}function kH(n,e){const t=!!(e.getRootNode&&e.getRootNode().host);if(n.contains(e))return!0;if(t){let i=e;do{if(i&&n.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function mT(n){return Object.assign(Object.assign({},n),{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function $6e(n){const e=G0(n);return e.top=e.top+n.clientTop,e.left=e.left+n.clientLeft,e.bottom=e.top+n.clientHeight,e.right=e.left+n.clientWidth,e.width=n.clientWidth,e.height=n.clientHeight,e.x=e.left,e.y=e.top,e}function DH(n,e){return e===SH?mT(W6e(n)):Ka(e)?$6e(e):mT(V6e(ic(n)))}function H6e(n){const e=Z0(JC(n)),i=["absolute","fixed"].indexOf(rc(n).position)>=0&&Ka(n)?X0(n):n;return Y0(i)?e.filter(r=>Y0(r)&&kH(r,i)&&ra(r)!=="body"):[]}function j6e(n,e,t){const r=[...e==="clippingParents"?H6e(n):[].concat(e),t],s=r[0],o=r.reduce((a,l)=>{const c=DH(n,l);return a.top=Math.max(c.top,a.top),a.right=Math.min(c.right,a.right),a.bottom=Math.min(c.bottom,a.bottom),a.left=Math.max(c.left,a.left),a},DH(n,s));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function e_(n){return n.split("-")[1]}function pT(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function EH({reference:n,element:e,placement:t}){const i=t?Ga(t):null,r=t?e_(t):null,s=n.x+n.width/2-e.width/2,o=n.y+n.height/2-e.height/2;let a;switch(i){case yo:a={x:s,y:n.y-e.height};break;case sa:a={x:s,y:n.y+n.height};break;case oa:a={x:n.x+n.width,y:o};break;case Co:a={x:n.x-e.width,y:o};break;default:a={x:n.x,y:n.y}}const l=i?pT(i):null;if(l!=null){const c=l==="y"?"height":"width";switch(r){case Lg:a[l]=Math.floor(a[l])-Math.floor(n[c]/2-e[c]/2);break;case gT:a[l]=Math.floor(a[l])+Math.ceil(n[c]/2-e[c]/2);break}}return a}function TH(){return{top:0,right:0,bottom:0,left:0}}function IH(n){return Object.assign(Object.assign({},TH()),n)}function AH(n,e){return e.reduce((t,i)=>(t[i]=n,t),{})}function t_(n,e={}){const{placement:t=n.placement,boundary:i=N6e,rootBoundary:r=SH,elementContext:s=J0,altBoundary:o=!1,padding:a=0}=e,l=IH(typeof a!="number"?a:AH(a,Q0)),c=s===J0?O6e:J0,u=n.elements.reference,d=n.rects.popper,h=n.elements[o?c:s],f=j6e(Y0(h)?h:h.contextElement||ic(n.elements.popper),i,r),g=G0(u),m=EH({reference:g,element:d,strategy:"absolute",placement:t}),p=mT(Object.assign(Object.assign({},d),m)),v=s===J0?p:g,_={top:f.top-v.top+l.top,bottom:v.bottom-f.bottom+l.bottom,left:f.left-v.left+l.left,right:v.right-f.right+l.right},b=n.modifiersData.offset;if(s===J0&&b){const y=b[t];Object.keys(_).forEach(w=>{const k=[oa,sa].indexOf(w)>=0?1:-1,x=[yo,sa].indexOf(w)>=0?"y":"x";_[w]+=y[x]*k})}return _}const NH={placement:"bottom",modifiers:[],strategy:"absolute"};function OH(...n){return!n.some(e=>!(e&&typeof e.getBoundingClientRect=="function"))}function z6e(n={}){const{defaultModifiers:e=[],defaultOptions:t=NH}=n;return function(r,s,o=t){let a={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},NH),t),modifiersData:{},elements:{reference:r,popper:s},attributes:{},styles:{}},l=[],c=!1;const u={state:a,setOptions(f){h(),a.options=Object.assign(Object.assign(Object.assign({},t),a.options),f),a.scrollParents={reference:Y0(r)?Z0(r):r.contextElement?Z0(r.contextElement):[],popper:Z0(s)};const g=R6e(B6e([...e,...a.options.modifiers]));return a.orderedModifiers=g.filter(m=>m.enabled),d(),u.update()},forceUpdate(){if(c)return;const{reference:f,popper:g}=a.elements;if(OH(f,g)){a.rects={reference:T6e(f,X0(g),a.options.strategy==="fixed"),popper:hT(g)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(m=>a.modifiersData[m.name]=Object.assign({},m.data));for(let m=0;m<a.orderedModifiers.length;m++){if(a.reset===!0){a.reset=!1,m=-1;continue}const{fn:p,options:v={},name:_}=a.orderedModifiers[m];typeof p=="function"&&(a=p({state:a,options:v,name:_,instance:u})||a)}}},update:F6e(()=>new Promise(f=>{u.forceUpdate(),f(a)})),destroy(){h(),c=!0}};if(!OH(r,s))return u;u.setOptions(o).then(f=>{!c&&o.onFirstUpdate&&o.onFirstUpdate(f)});function d(){a.orderedModifiers.forEach(({name:f,options:g={},effect:m})=>{if(typeof m=="function"){const p=m({state:a,name:f,instance:u,options:g}),v=()=>{};l.push(p||v)}})}function h(){l.forEach(f=>f()),l=[]}return u}}const ew={passive:!0};function U6e({state:n,instance:e,options:t}){const{scroll:i=!0,resize:r=!0}=t,s=qa(n.elements.popper),o=[...n.scrollParents.reference,...n.scrollParents.popper];return i&&o.forEach(a=>{a.addEventListener("scroll",e.update,ew)}),r&&s.addEventListener("resize",e.update,ew),()=>{i&&o.forEach(a=>{a.removeEventListener("scroll",e.update,ew)}),r&&s.removeEventListener("resize",e.update,ew)}}const q6e={name:"eventListeners",enabled:!0,phase:"write",fn:()=>{},effect:U6e,data:{}};function K6e({state:n,name:e}){n.modifiersData[e]=EH({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})}const G6e={name:"popperOffsets",enabled:!0,phase:"read",fn:K6e,data:{}},Y6e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Z6e({x:n,y:e}){const i=window.devicePixelRatio||1;return{x:Math.round(n*i)/i||0,y:Math.round(e*i)/i||0}}function MH({popper:n,popperRect:e,placement:t,offsets:i,position:r,gpuAcceleration:s,adaptive:o}){let{x:a,y:l}=Z6e(i);const c=i.hasOwnProperty("x"),u=i.hasOwnProperty("y");let d=Co,h=yo;const f=window;if(o){let m=X0(n);m===qa(n)&&(m=ic(n)),t===yo&&(h=sa,l-=m.clientHeight-e.height,l*=s?1:-1),t===Co&&(d=oa,a-=m.clientWidth-e.width,a*=s?1:-1)}const g=Object.assign({position:r},o&&Y6e);return s?Object.assign(Object.assign({},g),{[h]:u?"0":"",[d]:c?"0":"",transform:(f.devicePixelRatio||1)<2?`translate(${a}px, ${l}px)`:`translate3d(${a}px, ${l}px, 0)`}):Object.assign(Object.assign({},g),{[h]:u?`${l}px`:"",[d]:c?`${a}px`:"",transform:""})}function X6e({state:n,options:e}){const{gpuAcceleration:t=!0,adaptive:i=!0}=e,r={placement:Ga(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:t};n.modifiersData.popperOffsets!=null&&(n.styles.popper=Object.assign(Object.assign({},n.styles.popper),MH(Object.assign(Object.assign({},r),{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:i})))),n.modifiersData.arrow!=null&&(n.styles.arrow=Object.assign(Object.assign({},n.styles.arrow),MH(Object.assign(Object.assign({},r),{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1})))),n.attributes.popper=Object.assign(Object.assign({},n.attributes.popper),{"data-popper-placement":n.placement})}const Q6e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:X6e,data:{}};function J6e({state:n}){Object.keys(n.elements).forEach(e=>{const t=n.styles[e]||{},i=n.attributes[e]||{},r=n.elements[e];!Ka(r)||!ra(r)||(Object.assign(r.style,t),Object.keys(i).forEach(s=>{const o=i[s];o===!1?r.removeAttribute(s):r.setAttribute(s,o===!0?"":o)}))})}function e3e({state:n}){const e={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,e.popper),n.elements.arrow&&Object.assign(n.elements.arrow.style,e.arrow),()=>{Object.keys(n.elements).forEach(t=>{const i=n.elements[t],r=n.attributes[t]||{},o=Object.keys(n.styles.hasOwnProperty(t)?n.styles[t]:e[t]).reduce((a,l)=>(a[l]="",a),{});!Ka(i)||!ra(i)||(Object.assign(i.style,o),Object.keys(r).forEach(a=>{i.removeAttribute(a)}))})}}const t3e={name:"applyStyles",enabled:!0,phase:"write",fn:J6e,effect:e3e,requires:["computeStyles"]};function n3e(n,e,t){const i=Ga(n),r=[Co,yo].indexOf(i)>=0?-1:1;let[s,o]=typeof t=="function"?t(Object.assign(Object.assign({},e),{placement:n})):t;return s=s||0,o=(o||0)*r,[Co,oa].indexOf(i)>=0?{x:o,y:s}:{x:s,y:o}}function i3e({state:n,options:e,name:t}){const{offset:i=[0,0]}=e,r=LH.reduce((a,l)=>(a[l]=n3e(l,n.rects,i),a),{}),{x:s,y:o}=r[n.placement];n.modifiersData.popperOffsets!=null&&(n.modifiersData.popperOffsets.x+=s,n.modifiersData.popperOffsets.y+=o),n.modifiersData[t]=r}const r3e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:i3e},s3e={left:"right",right:"left",bottom:"top",top:"bottom"};function tw(n){return n.replace(/left|right|bottom|top/g,e=>s3e[e])}const o3e={start:"end",end:"start"};function PH(n){return n.replace(/start|end/g,e=>o3e[e])}function a3e(n,e={}){const{placement:t,boundary:i,rootBoundary:r,padding:s,flipVariations:o,allowedAutoPlacements:a=LH}=e,l=e_(t),c=l?o?xH:xH.filter(h=>e_(h)===l):Q0;let u=c.filter(h=>a.indexOf(h)>=0);u.length===0&&(u=c);const d=u.reduce((h,f)=>(h[f]=t_(n,{placement:f,boundary:i,rootBoundary:r,padding:s})[Ga(f)],h),{});return Object.keys(d).sort((h,f)=>d[h]-d[f])}function l3e(n){if(Ga(n)===fT)return[];const e=tw(n);return[PH(n),e,PH(e)]}function c3e({state:n,options:e,name:t}){if(n.modifiersData[t]._skip)return;const{mainAxis:i=!0,altAxis:r=!0,fallbackPlacements:s,padding:o,boundary:a,rootBoundary:l,altBoundary:c,flipVariations:u=!0,allowedAutoPlacements:d}=e,h=n.options.placement,g=Ga(h)===h,m=s||(g||!u?[tw(h)]:l3e(h)),p=[h,...m].reduce((k,x)=>k.concat(Ga(x)===fT?a3e(n,{placement:x,boundary:a,rootBoundary:l,padding:o,flipVariations:u,allowedAutoPlacements:d}):x),[]),v=n.rects.reference,_=n.rects.popper,b=new Map;let y=!0,w=p[0];for(let k=0;k<p.length;k++){const x=p[k],D=Ga(x),E=e_(x)===Lg,M=[yo,sa].indexOf(D)>=0,N=M?"width":"height",I=t_(n,{placement:x,boundary:a,rootBoundary:l,altBoundary:c,padding:o});let O=M?E?oa:Co:E?sa:yo;v[N]>_[N]&&(O=tw(O));const B=tw(O),W=[];if(i&&W.push(I[D]<=0),r&&W.push(I[O]<=0,I[B]<=0),W.every(J=>J)){w=x,y=!1;break}b.set(x,W)}if(y){const k=u?3:1;for(let x=k;x>0;x--){const D=p.find(E=>{const M=b.get(E);if(M)return M.slice(0,x).every(N=>N)});if(D){w=D;break}}}n.placement!==w&&(n.modifiersData[t]._skip=!0,n.placement=w,n.reset=!0)}const u3e={name:"flip",enabled:!0,phase:"main",fn:c3e,requiresIfExists:["offset"],data:{_skip:!1}};function d3e(n){return n==="x"?"y":"x"}function nw(n,e,t){return Math.max(n,Math.min(e,t))}function h3e({state:n,options:e,name:t}){const{mainAxis:i=!0,altAxis:r=!1,boundary:s,rootBoundary:o,altBoundary:a,padding:l,tether:c=!0,tetherOffset:u=0}=e,d=t_(n,{boundary:s,rootBoundary:o,padding:l,altBoundary:a}),h=Ga(n.placement),f=e_(n.placement),g=!f,m=pT(h),p=d3e(m),v=n.modifiersData.popperOffsets,_=n.rects.reference,b=n.rects.popper,y=typeof u=="function"?u(Object.assign(Object.assign({},n.rects),{placement:n.placement})):u,w={x:0,y:0};if(v){if(i){const k=m==="y"?yo:Co,x=m==="y"?sa:oa,D=m==="y"?"height":"width",E=v[m],M=v[m]+d[k],N=v[m]-d[x],I=c?-b[D]/2:0,O=f===Lg?_[D]:b[D],B=f===Lg?-b[D]:-_[D],W=n.elements.arrow,J=c&&W?hT(W):{width:0,height:0},re=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:TH(),se=re[k],ie=re[x],Q=nw(0,_[D],J[D]),oe=g?_[D]/2-I-Q-se-y:O-Q-se-y,Z=g?-_[D]/2+I+Q+ie+y:B+Q+ie+y,X=n.elements.arrow&&X0(n.elements.arrow),ue=X?m==="y"?X.clientTop||0:X.clientLeft||0:0,De=n.modifiersData.offset?n.modifiersData.offset[n.placement][m]:0,te=v[m]+oe-De-ue,xe=v[m]+Z-De,ge=nw(c?Math.min(M,te):M,E,c?Math.max(N,xe):N);v[m]=ge,w[m]=ge-E}if(r){const k=m==="x"?yo:Co,x=m==="x"?sa:oa,D=v[p],E=D+d[k],M=D-d[x],N=nw(E,D,M);v[p]=N,w[p]=N-D}n.modifiersData[t]=w}}const f3e={name:"preventOverflow",enabled:!0,phase:"main",fn:h3e,requiresIfExists:["offset"]};function g3e({state:n,name:e}){const t=n.elements.arrow,i=n.modifiersData.popperOffsets,r=Ga(n.placement),s=pT(r),a=[Co,oa].indexOf(r)>=0?"height":"width";if(!t||!i)return;const l=n.modifiersData[`${e}#persistent`].padding,c=hT(t),u=s==="y"?yo:Co,d=s==="y"?sa:oa,h=n.rects.reference[a]+n.rects.reference[s]-i[s]-n.rects.popper[a],f=i[s]-n.rects.reference[s],g=X0(t),m=g?s==="y"?g.clientHeight||0:g.clientWidth||0:0,p=h/2-f/2,v=l[u],_=m-c[a]-l[d],b=m/2-c[a]/2+p,y=nw(v,b,_),w=s;n.modifiersData[e]={[w]:y,centerOffset:y-b}}function m3e({state:n,options:e,name:t}){let{element:i="[data-popper-arrow]",padding:r=0}=e;i!=null&&(typeof i=="string"&&(i=n.elements.popper.querySelector(i),!i)||kH(n.elements.popper,i)&&(n.elements.arrow=i,n.modifiersData[`${t}#persistent`]={padding:IH(typeof r!="number"?r:AH(r,Q0))}))}const p3e={name:"arrow",enabled:!0,phase:"main",fn:g3e,effect:m3e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function RH(n,e,t={x:0,y:0}){return{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function FH(n){return[yo,oa,sa,Co].some(e=>n[e]>=0)}function _3e({state:n,name:e}){const t=n.rects.reference,i=n.rects.popper,r=n.modifiersData.preventOverflow,s=t_(n,{elementContext:"reference"}),o=t_(n,{altBoundary:!0}),a=RH(s,t),l=RH(o,i,r),c=FH(a),u=FH(l);n.modifiersData[e]={referenceClippingOffsets:a,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:u},n.attributes.popper=Object.assign(Object.assign({},n.attributes.popper),{"data-popper-reference-hidden":c,"data-popper-escaped":u})}const v3e=z6e({defaultModifiers:[q6e,G6e,Q6e,t3e,r3e,u3e,f3e,p3e,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:_3e}]}),_T=xg?ce.useLayoutEffect:ce.useEffect,b3e=(n,e)=>JSON.stringify(n)===JSON.stringify(e),BH=n=>n.reduce((e,[t,i])=>(e[t]=i,e),{}),y3e=[],C3e=(n,e,t={})=>{const i=ce.useRef(null),r={onFirstUpdate:t.onFirstUpdate,placement:t.placement||"bottom",strategy:t.strategy||"absolute",modifiers:t.modifiers||y3e},[s,o]=ce.useState({styles:{popper:{position:r.strategy,left:"0",top:"0"}},attributes:{}}),a=ce.useMemo(()=>({name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const d=Object.keys(u.elements);o({styles:BH(d.map(h=>[h,u.styles[h]||{}])),attributes:BH(d.map(h=>[h,u.attributes[h]]))})},requires:["computeStyles"]}),[]),l=ce.useMemo(()=>{const u={onFirstUpdate:r.onFirstUpdate,placement:r.placement,strategy:r.strategy,modifiers:[...r.modifiers,a,{name:"applyStyles",enabled:!1}]};return b3e(i.current,u)?i.current||u:(i.current=u,u)},[r.onFirstUpdate,r.placement,r.strategy,r.modifiers,a]),c=ce.useRef();return _T(()=>{c&&c.current&&c.current.setOptions(l)},[l]),_T(()=>{if(n==null||e==null)return;const d=(t.createPopper||v3e)(n,e,l);return c.current=d,()=>{d.destroy(),c.current=null}},[n,e,t.createPopper]),{state:c.current?c.current.state:null,styles:s.styles,attributes:s.attributes,update:c.current?c.current.update:null,forceUpdate:c.current?c.current.forceUpdate:null}};class vT extends ce.Component{componentDidMount(){const e=n6.findDOMNode(this);this.props.onFoundRef(e)}render(){return this.props.children||null}}vT.displayName="FindRefWrapper";const Wct="",w3e={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"},S3e=n=>n.replace(/left|right|bottom|top|top-start|top-end|bottom-start|bottom-end|right-start|right-end|left-start|left-end/g,e=>w3e[e]),WH=({trigger:n,popper:e,popperMatchesTriggerWidth:t=!0,direction:i="down",position:r="left",placement:s,appendTo:o=()=>document.body,zIndex:a=9999,isVisible:l=!0,positionModifiers:c,distance:u=0,onMouseEnter:d,onMouseLeave:h,onFocus:f,onBlur:g,onDocumentClick:m,onTriggerClick:p,onTriggerEnter:v,onPopperClick:_,onPopperMouseEnter:b,onPopperMouseLeave:y,onDocumentKeyDown:w,enableFlip:k=!0,flipBehavior:x="flip",reference:D,removeFindDomNode:E=!1,popperRef:M})=>{const[N,I]=ce.useState(null),[O,B]=ce.useState(null),[W,J]=ce.useState(null),[re,se]=ce.useState(!1),ie=O||N,Q=ce.useCallback(H=>m(H,ie,W),[l,N,O,W,m]);ce.useEffect(()=>{se(!0)},[]),ce.useEffect(()=>{D&&(D.current?B(D.current):typeof D=="function"&&B(D()))},[D]),ce.useEffect(()=>{M&&(M.current?J(M.current):typeof M=="function"&&J(M()))},[l,M]);const oe=(H,ae,be,$e=!1)=>{H&&ae&&ae.addEventListener(be,H,{capture:$e})},Z=(H,ae,be,$e=!1)=>{H&&ae&&ae.removeEventListener(be,H,{capture:$e})};ce.useEffect(()=>{oe(d,ie,"mouseenter"),oe(h,ie,"mouseleave"),oe(f,ie,"focus"),oe(g,ie,"blur"),oe(p,ie,"click"),oe(v,ie,"keydown"),oe(_,W,"click"),oe(b,W,"mouseenter"),oe(y,W,"mouseleave"),m&&oe(Q,document,"click",!0),oe(w,document,"keydown",!0);const H=new MutationObserver(()=>{Ce&&Ce()});return W&&H.observe(W,{attributes:!0,childList:!0,subtree:!0}),()=>{Z(d,ie,"mouseenter"),Z(h,ie,"mouseleave"),Z(f,ie,"focus"),Z(g,ie,"blur"),Z(p,ie,"click"),Z(v,ie,"keydown"),Z(_,W,"click"),Z(b,W,"mouseenter"),Z(y,W,"mouseleave"),m&&Z(Q,document,"click",!0),Z(w,document,"keydown",!0),H.disconnect()}},[N,W,d,h,f,g,p,v,_,b,y,m,w,O]);const X=()=>{if(s)return s;let H=i==="up"?"top":"bottom";return r!=="center"&&(H=`${H}-${r==="right"?"end":"start"}`),H},ue=ce.useMemo(X,[i,r,s]),De=ce.useMemo(()=>S3e(X()),[i,r,s]),te=ce.useMemo(()=>({name:"sameWidth",enabled:t,phase:"beforeWrite",requires:["computeStyles"],fn:({state:H})=>{H.styles.popper.width=`${H.rects.reference.width}px`},effect:({state:H})=>(H.elements.popper.style.width=`${H.elements.reference.offsetWidth}px`,()=>{})}),[t]),{styles:xe,attributes:ge,update:Ce,forceUpdate:Se}=C3e(ie,W,{placement:ue,modifiers:[{name:"offset",options:{offset:[0,u]}},{name:"preventOverflow",enabled:!1},{name:"hide",enabled:!0},{name:"flip",enabled:ue.startsWith("auto")||k,options:{fallbackPlacements:x==="flip"?[De]:x}},te]});ce.useEffect(()=>{Se&&Se()},[e]);const pe=()=>{if(ge&&ge.popper&&ge.popper["data-popper-placement"]){const H=ge.popper["data-popper-placement"];return c[H]}return c.top},ee=Object.assign({className:Nn(e.props&&e.props.className,c&&pe()),style:Object.assign(Object.assign(Object.assign({},e.props&&e.props.style||{}),xe.popper),{zIndex:a})},ge.popper),Xe=ce.cloneElement(e,ee),Je=()=>typeof o=="function"?o():o;let Fe;return E?Fe=ce.createElement("div",{style:{display:"contents"},ref:H=>J(H==null?void 0:H.firstElementChild)},Xe):M?Fe=Xe:Fe=ce.createElement(vT,{onFoundRef:H=>J(H)},Xe),ce.createElement(ce.Fragment,null,!D&&n&&ce.isValidElement(n)&&!E&&ce.createElement(vT,{onFoundRef:H=>I(H)},n),!D&&n&&ce.isValidElement(n)&&E&&ce.createElement("div",{style:{display:"contents"},ref:H=>I(H==null?void 0:H.firstElementChild)},n),re&&l&&n6.createPortal(Fe,Je()))};WH.displayName="Popper";const x3e=(n,e,t=c=>document.activeElement.contains(c),i=c=>c,r=["A","BUTTON","INPUT"],s=!1,o=!1,a=!0,l=!0)=>{const c=document.activeElement,u=n.key;let d=null;if(!s&&["ArrowUp","ArrowDown"].includes(u)){n.preventDefault(),n.stopImmediatePropagation();let h=-1;e.forEach((f,g)=>{if(t(f)){let m=0;for(;!d&&m<e.length&&m*-1<e.length;)u==="ArrowUp"?m--:m++,h=g+m,h>=e.length&&(h=0),h<0&&(h=e.length-1),d=i(e[h])}})}if(!o&&["ArrowLeft","ArrowRight"].includes(u)){n.preventDefault(),n.stopImmediatePropagation();let h=-1;e.forEach((f,g)=>{if(t(f)){const m=e[g].querySelectorAll(r.join(","));if(!m.length||l){let p=c;for(;p;)if(p=u==="ArrowLeft"?p.previousElementSibling:p.nextElementSibling,p&&r.includes(p.tagName)){d=p;break}}else m.forEach((p,v)=>{n.target===p&&(h=v+(u==="ArrowLeft"?-1:1),h>=m.length&&(h=0),h<0&&(h=m.length-1),d=m[h])})}})}d&&(a&&(c.tabIndex=-1,d.tabIndex=0),d.focus())};class bT extends ce.Component{constructor(){super(...arguments),this.keyHandler=e=>{const{isEventFromContainer:t}=this.props;if(t?!t(e):!this._isEventFromContainer(e))return;const{isActiveElement:i,getFocusableElement:r,noVerticalArrowHandling:s,noHorizontalArrowHandling:o,noEnterHandling:a,noSpaceHandling:l,updateTabIndex:c,validSiblingTags:u,additionalKeyHandler:d,createNavigableElements:h,onlyTraverseSiblings:f}=this.props;d&&d(e);const g=h();if(!g){console.warn("No navigable elements have been passed to the KeyboardHandler. Keyboard navigation provided by this component will be ignored.");return}const m=e.key;a||m==="Enter"&&(e.preventDefault(),e.stopImmediatePropagation(),document.activeElement.click()),l||m===" "&&(e.preventDefault(),e.stopImmediatePropagation(),document.activeElement.click()),x3e(e,g,i,r,u,s,o,c,f)},this._isEventFromContainer=e=>{const{containerRef:t}=this.props;return t.current&&t.current.contains(e.target)}}componentDidMount(){xg&&window.addEventListener("keydown",this.keyHandler)}componentWillUnmount(){xg&&window.removeEventListener("keydown",this.keyHandler)}render(){return null}}bT.displayName="KeyboardHandler",bT.defaultProps={containerRef:null,createNavigableElements:()=>null,isActiveElement:n=>document.activeElement===n,getFocusableElement:n=>n,validSiblingTags:["BUTTON","A"],onlyTraverseSiblings:!0,updateTabIndex:!0,noHorizontalArrowHandling:!1,noVerticalArrowHandling:!1,noEnterHandling:!1,noSpaceHandling:!1};const rh=ce.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"}),VH=ce.createContext({itemId:null,isDisabled:!1});class iw extends ce.Component{constructor(e){super(e),this.menuRef=ce.createRef(),this.activeMenu=null,this.state={ouiaStateId:lT(rw.displayName),searchInputValue:"",transitionMoveTarget:null,flyoutRef:null,disableHover:!1,currentDrilldownMenuId:this.props.id},this.handleDrilldownTransition=t=>{const i=this.menuRef.current;if(!(!i||i!==t.target.closest(".pf-c-menu")&&!Array.from(i.getElementsByClassName("pf-c-menu")).includes(t.target.closest(".pf-c-menu"))))if(this.state.transitionMoveTarget)this.state.transitionMoveTarget.focus(),this.setState({transitionMoveTarget:null});else{const r=i.querySelector("#"+this.props.activeMenu)||i||null,s=Array.from(r.getElementsByTagName("UL")[0].children);if(!this.state.currentDrilldownMenuId||r.id!==this.state.currentDrilldownMenuId)this.setState({currentDrilldownMenuId:r.id});else return;const o=s.filter(a=>!(a.classList.contains("pf-m-disabled")||a.classList.contains("pf-c-divider")))[0].firstChild;o.focus(),o.tabIndex=0}},this.handleExtraKeys=t=>{const i=this.props.containsDrilldown,r=document.activeElement;if(t.target.closest(".pf-c-menu")!==this.activeMenu&&!t.target.classList.contains("pf-c-breadcrumb__link")&&(this.activeMenu=t.target.closest(".pf-c-menu"),this.setState({disableHover:!0})),t.target.tagName==="INPUT")return;const s=this.activeMenu,o=t.key,a=r.classList.contains("pf-c-breadcrumb__link")||r.classList.contains("pf-c-dropdown__toggle");if(o===" "||o==="Enter"){if(t.preventDefault(),i&&!a){if(r.closest("li").classList.contains("pf-m-current-path")&&s.parentElement.tagName==="LI")r.tabIndex=-1,s.parentElement.firstChild.tabIndex=0,this.setState({transitionMoveTarget:s.parentElement.firstChild});else if(r.nextElementSibling&&r.nextElementSibling.classList.contains("pf-c-menu")){const c=Array.from(r.nextElementSibling.getElementsByTagName("UL")[0].children).filter(u=>!(u.classList.contains("pf-m-disabled")||u.classList.contains("pf-c-divider")));r.tabIndex=-1,c[0].firstChild.tabIndex=0,this.setState({transitionMoveTarget:c[0].firstChild})}}document.activeElement.click()}},this.createNavigableElements=()=>this.props.containsDrilldown?this.activeMenu?Array.from(this.activeMenu.getElementsByTagName("UL")[0].children).filter(i=>!(i.classList.contains("pf-m-disabled")||i.classList.contains("pf-c-divider"))):[]:this.menuRef.current?Array.from(this.menuRef.current.getElementsByTagName("LI")).filter(i=>!(i.classList.contains("pf-m-disabled")||i.classList.contains("pf-c-divider"))):[],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(){this.context&&this.setState({disableHover:this.context.disableHover}),xg&&window.addEventListener("transitionend",this.props.isRootMenu?this.handleDrilldownTransition:null),this.allowTabFirstItem()}componentWillUnmount(){xg&&window.removeEventListener("transitionend",this.handleDrilldownTransition)}componentDidUpdate(e){e.children!==this.props.children&&this.allowTabFirstItem()}render(){const e=this.props,{"aria-label":t,id:i,children:r,className:s,onSelect:o,selected:a=null,onActionClick:l,ouiaId:c,ouiaSafe:u,containsFlyout:d,isNavFlyout:h,containsDrilldown:f,isMenuDrilledIn:g,isPlain:m,isScrollable:p,drilldownItemPath:v,drilledInMenus:_,onDrillIn:b,onDrillOut:y,onGetMenuHeight:w,parentMenu:k=null,activeItemId:x=null,innerRef:D,isRootMenu:E,activeMenu:M,role:N}=e,I=Ln(e,["aria-label","id","children","className","onSelect","selected","onActionClick","ouiaId","ouiaSafe","containsFlyout","isNavFlyout","containsDrilldown","isMenuDrilledIn","isPlain","isScrollable","drilldownItemPath","drilledInMenus","onDrillIn","onDrillOut","onGetMenuHeight","parentMenu","activeItemId","innerRef","isRootMenu","activeMenu","role"]),O=g||_&&_.includes(i)||!1;return ce.createElement(rh.Provider,{value:{menuId:i,parentMenu:k||i,onSelect:o,onActionClick:l,activeItemId:x,selected:a,drilledInMenus:_,drilldownItemPath:v,onDrillIn:b,onDrillOut:y,onGetMenuHeight:w,flyoutRef:this.state.flyoutRef,setFlyoutRef:B=>this.setState({flyoutRef:B}),disableHover:this.state.disableHover,role:N}},E&&ce.createElement(bT,{containerRef:this.menuRef||null,additionalKeyHandler:this.handleExtraKeys,createNavigableElements:this.createNavigableElements,isActiveElement:B=>document.activeElement.closest("li")===B||document.activeElement.parentElement===B||document.activeElement.closest(".pf-c-menu__search")===B||document.activeElement.closest("ol")&&document.activeElement.closest("ol").firstChild===B,getFocusableElement:B=>B.tagName==="DIV"&&B.querySelector("input")||B.firstChild.tagName==="LABEL"&&B.querySelector("input")||B.firstChild,noHorizontalArrowHandling:document.activeElement&&(document.activeElement.classList.contains("pf-c-breadcrumb__link")||document.activeElement.classList.contains("pf-c-dropdown__toggle")),noEnterHandling:!0,noSpaceHandling:!0}),ce.createElement("div",Object.assign({id:i,className:Nn(nn.menu,m&&nn.modifiers.plain,p&&nn.modifiers.scrollable,d&&nn.modifiers.flyout,h&&nn.modifiers.nav,f&&nn.modifiers.drilldown,O&&nn.modifiers.drilledIn,s),"aria-label":t,ref:this.menuRef},aT(rw.displayName,c!==void 0?c:this.state.ouiaStateId,u),I),r))}}iw.displayName="Menu",iw.contextType=rh,iw.defaultProps={ouiaSafe:!0,isRootMenu:!0,isPlain:!1,isScrollable:!1,role:"menu"};const rw=ce.forwardRef((n,e)=>ce.createElement(iw,Object.assign({},n,{innerRef:e})));rw.displayName="Menu";const $H=ce.forwardRef((n,e)=>{const{getHeight:t,children:i,menuHeight:r,maxMenuHeight:s}=n,o=Ln(n,["getHeight","children","menuHeight","maxMenuHeight"]),a=ce.createRef(),l=(c,u,d)=>{if(c){let h=c.clientHeight,f=null,g=c.closest(`.${nn.menuList}`);for(;g!==null&&g.nodeType===1;)g.classList.contains(nn.menuList)&&(f=g),g=g.parentElement;if(f){const m=getComputedStyle(f),p=parseFloat(m.getPropertyValue("padding-top").replace(/px/g,""))+parseFloat(m.getPropertyValue("padding-bottom").replace(/px/g,""))+parseFloat(getComputedStyle(f.parentElement).getPropertyValue("border-bottom-width").replace(/px/g,""));h=h+p}d&&d(u,h),t&&t(h.toString())}return e||a};return ce.createElement(rh.Consumer,null,({menuId:c,onGetMenuHeight:u})=>ce.createElement("div",Object.assign({},o,{className:Nn(nn.menuContent,n.className),ref:d=>l(d,c,u),style:Object.assign(Object.assign({},r&&{"--pf-c-menu__content--Height":r}),s&&{"--pf-c-menu__content--MaxHeight":s})}),i))});$H.displayName="MenuContent";const L3e={name:"--pf-c-menu--m-flyout__menu--top-offset",value:"0px",var:"var(--pf-c-menu--m-flyout__menu--top-offset)"},k3e={name:"--pf-c-menu--m-flyout__menu--m-left--right-offset",value:"0px",var:"var(--pf-c-menu--m-flyout__menu--m-left--right-offset)"},D3e={name:"--pf-c-menu--m-flyout__menu--left-offset",value:"0px",var:"var(--pf-c-menu--m-flyout__menu--left-offset)"};var sh;(function(n){n.sm="sm",n.md="md",n.lg="lg",n.xl="xl"})(sh||(sh={}));const E3e=n=>{switch(n){case sh.sm:return"1em";case sh.md:return"1.5em";case sh.lg:return"2em";case sh.xl:return"3em";default:return"1em"}};let T3e=0;function n_({name:n,xOffset:e=0,yOffset:t=0,width:i,height:r,svgPath:s}){var o;return o=class extends ce.Component{constructor(){super(...arguments),this.id=`icon-title-${T3e++}`}render(){const l=this.props,{size:c,color:u,title:d,noVerticalAlign:h}=l,f=Ln(l,["size","color","title","noVerticalAlign"]),g=!!d,m=E3e(c),p=-.125*Number.parseFloat(m),v=h?null:{verticalAlign:`${p}em`},_=[e,t,i,r].join(" ");return ce.createElement("svg",Object.assign({style:v,fill:u,height:m,width:m,viewBox:_,"aria-labelledby":g?this.id:null,"aria-hidden":g?null:!0,role:"img"},f),g&&ce.createElement("title",{id:this.id},d),ce.createElement("path",{d:s}))}},o.displayName=n,o.defaultProps={color:"currentColor",size:sh.sm,noVerticalAlign:!1},o}const I3e=n_({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}),A3e=n_({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}),N3e=n_({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}),O3e=n_({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}),Xct="",gu={check:"pf-c-check",checkBody:"pf-c-check__body",checkDescription:"pf-c-check__description",checkInput:"pf-c-check__input",checkLabel:"pf-c-check__label",checkLabelRequired:"pf-c-check__label-required",modifiers:{standalone:"pf-m-standalone",disabled:"pf-m-disabled"}},HH=()=>{};class kg extends ce.Component{constructor(e){super(e),this.handleChange=t=>{this.props.onChange(t.currentTarget.checked,t)},this.state={ouiaStateId:lT(kg.displayName)}}render(){const e=this.props,{"aria-label":t,className:i,onChange:r,isValid:s,isDisabled:o,isRequired:a,isChecked:l,label:c,checked:u,defaultChecked:d,description:h,body:f,ouiaId:g,ouiaSafe:m,component:p}=e,v=Ln(e,["aria-label","className","onChange","isValid","isDisabled","isRequired","isChecked","label","checked","defaultChecked","description","body","ouiaId","ouiaSafe","component"]);v.id||console.error("Checkbox:","id is required to make input accessible");const _={};return([!0,!1].includes(u)||l===!0)&&(_.checked=u||l),r!==HH&&(_.checked=l),[!1,!0].includes(d)&&(_.defaultChecked=d),_.checked=_.checked===null?!1:_.checked,ce.createElement(p,{className:Nn(gu.check,!c&&gu.modifiers.standalone,i)},ce.createElement("input",Object.assign({},v,{className:Nn(gu.checkInput),type:"checkbox",onChange:this.handleChange,"aria-invalid":!s,"aria-label":t,disabled:o,required:a,ref:b=>b&&(b.indeterminate=l===null)},_,aT(kg.displayName,g!==void 0?g:this.state.ouiaStateId,m))),c&&ce.createElement("label",{className:Nn(gu.checkLabel,o&&gu.modifiers.disabled),htmlFor:v.id},c,a&&ce.createElement("span",{className:Nn(gu.checkLabelRequired),"aria-hidden":"true"},L6e)),h&&ce.createElement("span",{className:Nn(gu.checkDescription)},h),f&&ce.createElement("span",{className:Nn(gu.checkBody)},f))}}kg.displayName="Checkbox",kg.defaultProps={className:"",isValid:!0,isDisabled:!1,isRequired:!1,isChecked:!1,onChange:HH,ouiaSafe:!0,component:"div"};const M3e=n_({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}),P3e=n=>{var{className:e="",icon:t,onClick:i,"aria-label":r,isFavorited:s=null,isDisabled:o,actionId:a,innerRef:l}=n,c=Ln(n,["className","icon","onClick","aria-label","isFavorited","isDisabled","actionId","innerRef"]);return ce.createElement(rh.Consumer,null,({onActionClick:u})=>ce.createElement(VH.Consumer,null,({itemId:d,isDisabled:h})=>{const f=g=>{i&&i(g),u&&u(g,d,a)};return ce.createElement("button",Object.assign({className:Nn(nn.menuItemAction,s!==null&&nn.modifiers.favorite,s&&nn.modifiers.favorited,e),"aria-label":r,onClick:f},(o===!0||h===!0)&&{disabled:!0},{ref:l,tabIndex:-1},c),ce.createElement("span",{className:Nn(nn.menuItemActionIcon)},t==="favorites"||s!==null?ce.createElement(M3e,{"aria-hidden":!0}):t))}))},jH=ce.forwardRef((n,e)=>ce.createElement(P3e,Object.assign({},n,{innerRef:e})));jH.displayName="MenuItemAction";const zH=ce.createContext({direction:"right"}),R3e=n=>{var{children:e,className:t,itemId:i=null,to:r,hasCheck:s=!1,isActive:o=null,isFavorited:a=null,isLoadButton:l=!1,isLoading:c=!1,flyoutMenu:u,direction:d,description:h=null,onClick:f=()=>{},component:g="button",isDisabled:m=!1,isExternalLink:p=!1,isSelected:v=null,isFocused:_,isDanger:b=!1,icon:y,actions:w,onShowFlyout:k,drilldownMenu:x,isOnPath:D,innerRef:E}=n,M=Ln(n,["children","className","itemId","to","hasCheck","isActive","isFavorited","isLoadButton","isLoading","flyoutMenu","direction","description","onClick","component","isDisabled","isExternalLink","isSelected","isFocused","isDanger","icon","actions","onShowFlyout","drilldownMenu","isOnPath","innerRef"]);const{menuId:N,parentMenu:I,onSelect:O,onActionClick:B,activeItemId:W,selected:J,drilldownItemPath:re,onDrillIn:se,onDrillOut:ie,flyoutRef:Q,setFlyoutRef:oe,disableHover:Z,role:X}=ce.useContext(rh);let ue=r?"a":g;s&&!r&&(ue="label");const[De,te]=ce.useState(null),xe=ce.useContext(zH),[ge,Ce]=ce.useState(xe.direction),Se=ce.useRef(),pe=Se===Q,ee=u!==void 0,Xe=P=>{!pe&&P?oe(Se):pe&&!P&&oe(null),k&&P&&k()};_T(()=>{if(ee&&Se.current&&xg){const P=Se.current.lastElementChild;if(P&&P.classList.contains(nn.menu)){const F=Se.current.getClientRects()[0],z=P.getClientRects()[0];if(F&&z){const U=F.x-z.width,fe=window.innerWidth-F.x-F.width-z.width;let Le=ge;fe<0&&Le!=="left"?(Ce("left"),Le="left"):U<0&&Le!=="right"&&(Ce("right"),Le="right");let Ie=0;U<0&&fe<0&&(Ie=Le==="right"?-fe:-U),Le==="left"?(P.classList.add(nn.modifiers.left),P.style.setProperty(k3e.name,`-${Ie}px`)):P.style.setProperty(D3e.name,`-${Ie}px`);const Pe=window.innerHeight-F.y-z.height;window.innerHeight-z.height<0&&Pe<0||Pe<0&&P.style.setProperty(L3e.name,`${Pe}px`)}}}},[pe,u]),ce.useEffect(()=>{Ce(xe.direction)},[xe]),ce.useEffect(()=>{if(De)if(pe){const P=De.nextElementSibling;Array.from(P.getElementsByTagName("UL")[0].children).filter(z=>!(z.classList.contains("pf-m-disabled")||z.classList.contains("pf-c-divider")))[0].firstChild.focus()}else De.focus()},[pe,De]);const Je=P=>{const F=P.key,z=P.target,U=P.type;(F===" "||F==="Enter"||F==="ArrowRight"||U==="click")&&(P.stopPropagation(),P.preventDefault(),pe||(Xe(!0),te(z))),(F==="Escape"||F==="ArrowLeft")&&pe&&(P.stopPropagation(),Xe(!1))},Fe=(P,F)=>{F&&F(P,i),f&&f(P)},H=D&&D||re&&re.includes(i)||!1;let ae;d&&(d==="down"?ae=P=>se&&se(P,N,typeof x=="function"?x().props.id:x.props.id,i):ae=P=>ie&&ie(P,I,i));let be={};ue==="a"?be={href:r,"aria-disabled":m?!0:null,disabled:null}:ue==="button"&&(be={type:"button"}),D?be["aria-expanded"]=!0:ee&&(be["aria-haspopup"]="menu",be["aria-expanded"]=pe);const $e=()=>o!==null?o?"page":null:i!==null&&W!==null?i===W:null,G=()=>v!==null?v:J!==null&&i!==null?Array.isArray(J)&&J.includes(i)||i===J:!1,$=()=>{Z||(ee?Xe(!0):oe(null))},q=X==="listbox";return ce.createElement("li",Object.assign({className:Nn(nn.menuListItem,m&&nn.modifiers.disabled,H&&nn.modifiers.currentPath,l&&nn.modifiers.load,c&&nn.modifiers.loading,_&&nn.modifiers.focus,b&&nn.modifiers.danger,t),onMouseOver:$},u&&{onKeyDown:Je},{ref:Se,role:s?"menuitem":"none"},M),ce.createElement(sT,null,P=>ce.createElement(ue,Object.assign({tabIndex:-1,className:Nn(nn.menuItem,G()&&!s&&nn.modifiers.selected,t),"aria-current":$e()},!s&&{disabled:m},!s&&!u&&{role:q?"option":"menuitem"},!s&&!u&&q&&{"aria-selected":G()},{ref:E},!s&&{onClick:F=>{Fe(F,O),ae&&ae(F),u&&Je(F)}},s&&{htmlFor:P},be),ce.createElement("span",{className:Nn(nn.menuItemMain)},d==="up"&&ce.createElement("span",{className:Nn(nn.menuItemToggleIcon)},ce.createElement(N3e,{"aria-hidden":!0})),y&&ce.createElement("span",{className:Nn(nn.menuItemIcon)},y),s&&ce.createElement("span",{className:Nn("pf-c-menu__item-check")},ce.createElement(kg,{id:P,component:"span",isChecked:v||!1,onChange:F=>Fe(F,O),isDisabled:m})),ce.createElement("span",{className:Nn(nn.menuItemText)},e),p&&ce.createElement("span",{className:Nn(nn.menuItemExternalIcon)},ce.createElement(I3e,{"aria-hidden":!0})),(u||d==="down")&&ce.createElement("span",{className:Nn(nn.menuItemToggleIcon)},ce.createElement(A3e,{"aria-hidden":!0})),G()&&ce.createElement("span",{className:Nn(nn.menuItemSelectIcon)},ce.createElement(O3e,{"aria-hidden":!0}))),h&&d!=="up"&&ce.createElement("span",{className:Nn(nn.menuItemDescription)},ce.createElement("span",null,h)))),pe&&ce.createElement(rh.Provider,{value:{disableHover:Z}},ce.createElement(zH.Provider,{value:{direction:ge}},u)),typeof x=="function"?x():x,ce.createElement(VH.Provider,{value:{itemId:i,isDisabled:m}},w,a!==null&&ce.createElement(jH,{icon:"favorites",isFavorited:a,"aria-label":a?"starred":"not starred",onClick:P=>B(P,i),tabIndex:-1,actionId:"fav"})))},UH=ce.forwardRef((n,e)=>ce.createElement(R3e,Object.assign({},n,{innerRef:e})));UH.displayName="MenuItem";const qH=n=>{var{children:e=null,className:t,isAriaMultiselectable:i=!1}=n,r=Ln(n,["children","className","isAriaMultiselectable"]);const{role:s}=ce.useContext(rh);return ce.createElement("ul",Object.assign({role:s},s==="listbox"&&{"aria-multiselectable":i},{className:Nn(nn.menuList,t)},r),e)};qH.displayName="MenuList";const F3e=n=>{var{children:e,className:t,onSelect:i,isOpen:r,selected:s,toggle:o,onOpenChange:a,isPlain:l,minWidth:c,innerRef:u,zIndex:d=9999,role:h="listbox"}=n,f=Ln(n,["children","className","onSelect","isOpen","selected","toggle","onOpenChange","isPlain","minWidth","innerRef","zIndex","role"]);const g=T.useRef(),m=T.useRef(),p=T.useRef(),v=u||g;T.useEffect(()=>{const b=w=>{var k,x,D;(r&&a&&(!((k=v.current)===null||k===void 0)&&k.contains(w.target))||!((x=m.current)===null||x===void 0)&&x.contains(w.target))&&(w.key==="Escape"||w.key==="Tab")&&(a(!1),(D=m.current)===null||D===void 0||D.focus())},y=w=>{var k,x,D;r&&(!((k=m.current)===null||k===void 0)&&k.contains(w.target))&&w.detail===0&&setTimeout(()=>{var E;const M=(E=v==null?void 0:v.current)===null||E===void 0?void 0:E.querySelector("li button:not(:disabled),li input:not(:disabled)");M&&M.focus()},0),r&&a&&!(!((x=m==null?void 0:m.current)===null||x===void 0)&&x.contains(w.target))&&r&&!(!((D=v.current)===null||D===void 0)&&D.contains(w.target))&&a(!1)};return window.addEventListener("keydown",b),window.addEventListener("click",y),()=>{window.removeEventListener("keydown",b),window.removeEventListener("click",y)}},[r,v,a]);const _=T.createElement(rw,Object.assign({role:h,className:Nn(t),ref:v,onSelect:(b,y)=>i(b,y),isPlain:l,selected:s},c&&{style:{"--pf-c-menu--MinWidth":c}},aT(i_.displayName,f.ouiaId!==void 0?f.ouiaId:lT(i_.displayName),f.ouiaSafe!==void 0?f.ouiaSafe:!0),f),T.createElement($H,null,e));return T.createElement("div",{ref:p},T.createElement(WH,{trigger:o(m),removeFindDomNode:!0,popper:_,appendTo:p.current||void 0,isVisible:r,zIndex:d}))},i_=T.forwardRef((n,e)=>T.createElement(F3e,Object.assign({innerRef:e},n)));i_.displayName="Select";const yT=n=>{var{children:e,className:t,isAriaMultiselectable:i=!1}=n,r=Ln(n,["children","className","isAriaMultiselectable"]);return T.createElement(qH,Object.assign({isAriaMultiselectable:i,className:Nn(t)},r),e)};yT.displayName="SelectList";const CT=n=>{var{children:e,className:t}=n,i=Ln(n,["children","className"]);return T.createElement(UH,Object.assign({className:Nn(t)},i),e)};CT.displayName="SelectOption";const eut="",tut="";function oh(n){const{t:e}=Us(),{id:t,icon:i,value:r,onSelect:s,options:o,placeholder:a}=n,[l,c]=T.useState(!1),u=T.useMemo(()=>o.find(_=>r===_.value),[o,r]),d=_=>L.jsxs(R.MenuToggle,{id:t,ref:_,onClick:()=>c(b=>!b),isExpanded:l,onKeyDown:b=>{switch(b.key){default:c(!0);break}},children:[i&&L.jsx("span",{style:{paddingLeft:4,paddingRight:12},children:i}),u?u.label:L.jsx("span",{className:"page-select-placeholder",children:a})]}),h=T.useCallback((_,b)=>{const y=o.find(w=>w.key!==void 0?w.key===b:w.label===b);y&&(s(y.value),c(!1))},[s,o]),[f,g]=T.useState(""),m=T.useRef(null);T.useEffect(()=>{g(""),l&&m.current&&m.current.focus()},[l]),T.useEffect(()=>{n.isRequired&&!u&&o.length>0&&s(o[0].value)},[s,o,n.isRequired,u]);const p=T.useMemo(()=>o.filter(_=>f===""?!0:_.label.toLowerCase().includes(f.toLowerCase())),[o,f]),v=T.useMemo(()=>p.length>10||f,[f,p.length]);return L.jsx("div",{className:"page-single-select",children:L.jsxs(i_,{selected:u==null?void 0:u.label,onSelect:h,isOpen:l,onOpenChange:c,toggle:d,style:{zIndex:l?9999:void 0},children:[v&&L.jsx("div",{className:"page-select-header",children:L.jsx(R.SearchInput,{id:t?`${t}-search`:void 0,ref:m,value:f,onChange:(_,b)=>g(b),onClear:_=>{_.stopPropagation(),g("")}})}),p.length===0?L.jsx("div",{style:{margin:16},children:e("No results found")}):L.jsx(yT,{className:"page-select-list",children:p.map(_=>L.jsx(CT,{itemId:_.key!==void 0?_.key:_.label,description:_.description,children:_.label},_.key!==void 0?_.key:_.label))}),n.footer&&L.jsx("div",{className:"page-select-footer",children:n.footer})]})})}function B3e(n){const{filterValues:e,setFilterValues:t,placeholder:i,isRequired:r,defaultValue:s}=n,o=e&&e.length>0?e[0]:void 0,a=n.options.find(f=>f.value===o);r&&!a&&t(()=>[s??n.options[0].value]);function l(f){n.options.find(m=>m.value===f)&&t(()=>[f])}const[c,u]=T.useState(()=>{if(e&&e.length>1)return e[1]}),[d,h]=T.useState(()=>{if(e&&e.length>2)return e[2]});return T.useEffect(()=>{if(a&&a.isCustom){const f=[a.value];c&&(f.push(c),d&&f.push(d)),t(()=>f)}},[a,c,d,t]),L.jsxs(R.ToolbarItem,{children:[L.jsx(oh,{value:(a==null?void 0:a.value)??"",onSelect:l,options:n.options,placeholder:i}),a&&a.isCustom&&L.jsx(W3e,{to:d,setTo:h,from:c,setFrom:u})]})}function W3e(n){const{to:e,setTo:t,from:i,setFrom:r}=n,{t:s}=Us(),o=(u,d)=>{r(d)},a=(u,d)=>{t(d)},l=i?new Date(i):void 0,c=u=>l?R.isValidDate(l)&&u>=l?"":s('The "to" date must be after the "from" date'):"";return L.jsxs(L.Fragment,{children:[L.jsx(R.DatePicker,{value:i,onChange:o,"aria-label":"Start date",placeholder:"YYYY-MM-DD"}),L.jsx("div",{style:{alignSelf:"baseline",padding:6},children:s("to")}),L.jsx(R.DatePicker,{value:e,onChange:a,isDisabled:!l||!R.isValidDate(l),rangeStart:l,validators:[c],"aria-label":"End date",placeholder:s("now"),invalidFormatText:s("Invalid date format")}),e!==void 0&&L.jsx(R.Button,{variant:"control",style:{alignSelf:"flex-start"},onClick:()=>t(void 0),children:L.jsx(yt.TimesCircleIcon,{})})]})}const nut="";function V3e(n){const{t:e}=Us(),{id:t,icon:i,placeholder:r,values:s,onSelect:o,options:a,variant:l,disableClearSelection:c}=n,[u,d]=T.useState(!1),h=T.useMemo(()=>a.filter(w=>s==null?!1:s.includes(w.value)),[a,s]),f=w=>L.jsxs(R.MenuToggle,{id:t,ref:w,onClick:()=>d(k=>!k),isExpanded:u,onKeyDown:k=>{switch(k.key){default:d(!0);break}},children:[i&&L.jsx("span",{style:{paddingLeft:4,paddingRight:12},children:i}),h.length>0?L.jsx(L.Fragment,{children:l==="count"?L.jsx(R.Chip,{isReadOnly:c,onClick:()=>o(()=>[]),style:{marginTop:-2,marginBottom:-2},children:h.length}):L.jsxs(L.Fragment,{children:[L.jsx(R.ChipGroup,{children:h.map(k=>L.jsx(R.Chip,{isReadOnly:!0,style:{marginTop:-2,marginBottom:-2},children:k.label},k.label))}),!c&&L.jsx(yt.TimesIcon,{role:"button","aria-hidden":!0,onClick:()=>o(()=>[]),style:{verticalAlign:"middle",marginLeft:8},size:"sm"})]})}):L.jsx("span",{className:"page-select-placeholder",children:r})]}),g=T.useMemo(()=>h.map(w=>w.label),[h]),m=T.useCallback((w,k)=>{o(x=>{const D=a.find(E=>E.key!==void 0?E.key===k:E.label===k);return D&&((x==null?void 0:x.find(E=>E===D.value))!==void 0?x=x.filter(E=>E!==D.value):(x=x?[...x]:[],x.push(D.value))),x})},[o,a]),[p,v]=T.useState(""),_=T.useRef(null);T.useEffect(()=>{v(""),u&&_.current&&_.current.focus()},[u]);const b=T.useMemo(()=>a.filter(w=>p===""?!0:w.label.toLowerCase().includes(p.toLowerCase())),[a,p]),y=T.useMemo(()=>b.length>10||p,[p,b.length]);return L.jsx("div",{className:"page-multi-select",children:L.jsxs(i_,{selected:g,onSelect:m,isOpen:u,onOpenChange:d,toggle:f,style:{zIndex:u?9999:void 0},children:[y&&L.jsx("div",{className:"page-select-header",children:L.jsx(R.SearchInput,{id:t?`${t}-search`:void 0,ref:_,value:p,onChange:(w,k)=>v(k),onClear:w=>{w.stopPropagation(),v("")}})}),b.length===0?L.jsx("div",{style:{margin:16},children:e("No results found")}):L.jsx(yT,{className:"page-select-list",children:b.map(w=>L.jsx(CT,{itemId:w.key!==void 0?w.key:w.label,description:w.description?L.jsx("div",{style:{maxWidth:300},children:w.description}):void 0,hasCheck:!0,isSelected:h.includes(w),children:w.label},w.key!==void 0?w.key:w.label))}),n.footer&&L.jsx("div",{className:"page-select-footer",children:n.footer})]})})}function $3e(n){return L.jsx(V3e,{placeholder:n.placeholder,values:n.filterValues,onSelect:n.setFilterValues,options:n.options,variant:"count",disableClearSelection:!0})}function H3e(n){var i;const e=((i=n.filterValues)==null?void 0:i.length)===1?n.filterValues[0]:"",t=r=>n.setFilterValues(()=>[r]);return L.jsx(oh,{placeholder:n.placeholder,value:e,onSelect:t,options:n.options,isRequired:n.isRequired})}function j3e(n){const{t:e}=Us(),[t,i]=T.useState("");let r=n.placeholder;if(!r)switch(n.comparison){case"contains":r=e("contains");break;case"startsWith":r=e("starts with");break;case"endsWith":r=e("ends with");break;case"equals":r=e("equals");break}return L.jsxs(R.InputGroup,{children:[L.jsxs(R.TextInputGroup,{style:{minWidth:220},children:[L.jsx(R.TextInputGroupMain,{id:n.id,value:t,onChange:(s,o)=>{i(typeof s=="string"?s:o)},onKeyUp:s=>{t&&s.key==="Enter"&&(n.addFilter(t),i(""))},placeholder:r}),t!==""&&L.jsx(R.TextInputGroupUtilities,{children:L.jsx(R.Button,{variant:"plain","aria-label":"clear filter",onClick:()=>i(""),style:{opacity:t?void 0:0},tabIndex:-1,children:L.jsx(yt.TimesIcon,{})})})]}),L.jsx(R.Button,{variant:t?"primary":"control","aria-label":"apply filter",onClick:()=>{n.addFilter(t),i("")},tabIndex:-1,isDisabled:!t,children:L.jsx(yt.ArrowRightIcon,{})})]})}var KH=(n=>(n[n.Text=0]="Text",n[n.SingleSelect=1]="SingleSelect",n[n.MultiSelect=2]="MultiSelect",n[n.DateRange=3]="DateRange",n))(KH||{});function GH(n){var l;const{toolbarFilters:e,filterState:t,setFilterState:i}=n,[r,s]=T.useState(()=>e&&(e==null?void 0:e.length)>0?e[0].key:""),o=e==null?void 0:e.find(c=>c.key===r);if(!o)return L.jsx(L.Fragment,{});if(!e)return L.jsx(L.Fragment,{});if(e.length===0)return L.jsx(L.Fragment,{});let a=e.length===1;return e.length>=1&&(e[0].type===2&&e[0].isPinned||e[0].type===1&&e[0].isPinned&&(t[e[0].key]==null||((l=t[e[0].key])==null?void 0:l.length)===0))&&(a=!1),L.jsx(L.Fragment,{children:e.length===1?L.jsx(L.Fragment,{children:L.jsxs(R.ToolbarItem,{children:[a&&L.jsx("div",{style:{marginTop:6,marginRight:6,whiteSpace:"nowrap"},children:e[0].label}),L.jsx(ZH,{id:"filter-input",filter:o,filterState:t,setFilterState:i})]})}):L.jsxs(R.ToolbarItem,{children:[L.jsx(oh,{id:"filter",value:r,onSelect:s,icon:L.jsx(yt.FilterIcon,{}),options:e.map(c=>({label:c.label,value:c.key})),placeholder:""}),L.jsx(ZH,{id:"filter-input",filter:o,filterState:t,setFilterState:i})]})})}function YH(n){const{toolbarFilters:e,setFilterState:t,filterState:i}=n,[r]=vi(),s=!ms("md");if(!e)return L.jsx(L.Fragment,{});if(e.length===0)return L.jsx(L.Fragment,{});const o=e.filter(l=>!l.isPinned),a=e.filter(l=>!!l.isPinned);return L.jsx(R.ToolbarToggleGroup,{toggleIcon:L.jsx(yt.FilterIcon,{}),breakpoint:"md",children:L.jsxs(R.ToolbarGroup,{variant:"filter-group",style:{flexWrap:"wrap",gap:16},children:[s&&L.jsx(R.ToolbarItem,{variant:"label",children:r.filter}),L.jsx(GH,{toolbarFilters:o,setFilterState:t,filterState:i}),a==null?void 0:a.map(l=>L.jsx(GH,{toolbarFilters:[l],setFilterState:t,filterState:i},l.key)),e==null?void 0:e.map(l=>{const c=(i==null?void 0:i[l.key])||[];return l.isPinned&&l.type===1?L.jsx(L.Fragment,{}):l.isPinned&&l.type===3?L.jsx(L.Fragment,{}):L.jsx(R.ToolbarFilter,{categoryName:l.label,chips:c.map(u=>{var d;switch(l.type){case 1:case 2:return((d=l.options.find(h=>h.value===u))==null?void 0:d.label)??u;default:return u}}),deleteChip:(u,d)=>{t==null||t(h=>{var m;const f={...h};switch(d=typeof d=="string"?d:d.key,l.type){case 1:case 2:d=((m=l.options.find(p=>p.value===d))==null?void 0:m.label)??d;break}let g=h[l.key];return g&&(g=g.filter(p=>p!==d),g.length===0?delete f[l.key]:f[l.key]=g),f})},deleteChipGroup:()=>{t==null||t(u=>{const d={...u};return delete d[l.key],d})},showToolbarItem:!1,children:L.jsx(L.Fragment,{})},l.label)})]})})}function ZH(n){const{filter:e,filterState:t,setFilterState:i}=n,r=t==null?void 0:t[e.key],s=T.useCallback(a=>{i(l=>{const c={...l},u=c[e.key]??[];return c[e.key]=a(u),c})},[e.key,i]),o=T.useCallback(a=>{i(l=>{const c={...l},u=c[e.key]??[];return c[e.key]=[...u,a],c})},[e.key,i]);switch(e.type){case 0:return L.jsx(j3e,{id:n.id??e.key,addFilter:o,placeholder:e.placeholder,comparison:e.comparison});case 1:return L.jsx(H3e,{id:n.id??e.key,placeholder:e.placeholder,filterValues:r,setFilterValues:s,options:e.options,isRequired:e.isRequired});case 2:return L.jsx($3e,{id:n.id??e.key,placeholder:e.placeholder,filterValues:r,setFilterValues:s,options:e.options});case 3:return L.jsx(B3e,{id:n.id??e.key,label:e.label,placeholder:e.placeholder??"",filterValues:r,setFilterValues:s,options:e.options,isRequired:e.isRequired,defaultValue:e.defaultValue})}}function z3e(n){const{sort:e,setSort:t,sortDirection:i,setSortDirection:r,sortOptions:s}=n,o=s==null?void 0:s.find(u=>u.value===e),a=o?o.type:void 0,[l]=vi(),c=T.useMemo(()=>{switch(a){case"text":switch(i){case"asc":return L.jsx(yt.SortAlphaUpIcon,{});case"desc":return L.jsx(yt.SortAlphaDownAltIcon,{})}break;case"number":switch(i){case"asc":return L.jsx(yt.SortNumericUpIcon,{});case"desc":return L.jsx(yt.SortNumericDownAltIcon,{})}break;default:switch(i){case"asc":return L.jsx(yt.SortAmountUpIcon,{});case"desc":return L.jsx(yt.SortAmountDownIcon,{})}break}return L.jsx(L.Fragment,{})},[i,a]);return!s||s.length<=0?L.jsx(L.Fragment,{}):L.jsx(R.ToolbarToggleGroup,{breakpoint:"md",toggleIcon:void 0,children:L.jsxs(R.ToolbarGroup,{variant:"filter-group",children:[L.jsx(R.ToolbarItem,{variant:"label",children:l.sort}),L.jsx(R.ToolbarItem,{children:L.jsxs(R.Split,{children:[L.jsx(U3e,{sortOptions:s,sort:e,setSort:t,setSortDirection:r}),L.jsx(R.Button,{variant:"control",icon:c,onClick:()=>{i==="asc"?r==null||r("desc"):r==null||r("asc")}})]})})]})})}function U3e(n){const{sortOptions:e,sort:t,setSort:i,setSortDirection:r}=n,s=T.useCallback(o=>{if(o){const a=e.find(l=>l.value===o);a&&t!==o&&a.defaultDirection&&(r==null||r(a.defaultDirection)),i==null||i(o)}},[e,i,r,t]);return L.jsx(oh,{placeholder:"",value:t,onSelect:s,options:e.map(o=>({label:o.label,value:o.value}))})}function q3e(n){return T.useMemo(()=>{const t=[];for(const i of n)if(i.sort){if(i.defaultSort){t.push({label:i.header,value:i.sort,type:"text",defaultDirection:i.defaultSortDirection});continue}switch(i.type){case"count":t.push({label:i.header,value:i.sort,type:"number",defaultDirection:i.defaultSortDirection});break;case"text":t.push({label:i.header,value:i.sort,type:"text",defaultDirection:i.defaultSortDirection});break;default:t.push({label:i.header,value:i.sort,defaultDirection:i.defaultSortDirection});break}}return t},[n])}function K3e(n){const{viewType:e,setViewType:t,openColumnModal:i}=n,[r]=vi();let s=0;return n.disableTableView||s++,n.disableCardView||s++,n.disableListView||s++,L.jsxs(R.ToolbarGroup,{variant:"button-group",style:{justifyContent:"end",marginRight:0},children:[i&&L.jsx(R.ToolbarItem,{children:L.jsx(R.Tooltip,{content:r.manageColumns,children:L.jsx(R.Button,{variant:"plain",icon:L.jsx(yt.ColumnsIcon,{}),onClick:i})})}),s>1&&L.jsx(R.ToolbarItem,{children:L.jsx(R.ToggleGroup,{"aria-label":"table view toggle",children:[!n.disableTableView&&Gn.Table,!n.disableListView&&Gn.List,!n.disableCardView&&Gn.Cards].filter(o=>o).map(o=>{switch(o){case Gn.Cards:return L.jsx(R.Tooltip,{content:r.cardView,position:"top-end",enableFlip:!1,children:L.jsx(R.ToggleGroupItem,{icon:L.jsx(yt.ThLargeIcon,{}),isSelected:e===Gn.Cards,onClick:()=>t==null?void 0:t(Gn.Cards),"aria-label":"card view"})},o);case Gn.List:return L.jsx(R.Tooltip,{content:r.listView,position:"top-end",enableFlip:!1,children:L.jsx(R.ToggleGroupItem,{icon:L.jsx(yt.ListIcon,{}),isSelected:e===Gn.List,onClick:()=>t==null?void 0:t(Gn.List),"aria-label":"list view"})},o);case Gn.Table:return L.jsx(R.Tooltip,{content:r.tableView,position:"top-end",enableFlip:!1,children:L.jsx(R.ToggleGroupItem,{icon:L.jsx(yt.TableIcon,{}),isSelected:e===Gn.Table,onClick:()=>t==null?void 0:t(Gn.Table),"aria-label":"table view"})},o)}})})})]})}const G3e=gn.div`
307
+ `;function _6e(n){const{ariaLabel:e="",content:t,header:i,id:r="",maxWidth:s="",...o}=n,[a]=vi();return t?L.jsx(R.Popover,{bodyContent:t,headerContent:i,hideOnOutsideClick:!0,id:r,"data-cy":r,maxWidth:s,...o,children:L.jsx(p6e,{"aria-label":e??a.moreInformation,"aria-haspopup":"true",className:"pf-c-form__group-label-help",onClick:l=>l.preventDefault(),type:"button",children:L.jsx(yt.HelpIcon,{noVerticalAlign:!0})})}):null}function K0(n){const{label:e,children:t,helpText:i,isEmpty:r}=n;return t===null||typeof t>"u"||t===""?L.jsx(L.Fragment,{}):r?L.jsx(L.Fragment,{}):L.jsxs(R.DescriptionListGroup,{children:[e&&L.jsxs(R.DescriptionListTerm,{children:[e,i?L.jsx(_6e,{header:e,content:i}):null]}),L.jsx(R.DescriptionListDescription,{id:e==null?void 0:e.toLowerCase().split(" ").join("-"),children:t})]})}function uH(n){const{disablePadding:e}=n,t=Vf(),i=t.formLayout,r=n.numberOfColumns?n.numberOfColumns:t.formColumns,s=!1;return L.jsx(R.PageSection,{variant:"light",padding:{default:"noPadding"},className:"dark-1",children:L.jsx(R.DescriptionList,{orientation:{sm:i,md:i,lg:i,xl:i,"2xl":i},columnModifier:r==="multiple"?{default:"1Col",sm:"1Col",md:"2Col",lg:"2Col",xl:"3Col","2xl":"3Col"}:void 0,style:{maxWidth:1200,padding:e?void 0:24},isCompact:s,children:n.children})})}var Gn=(n=>(n.Table="table",n.List="list",n.Cards="cards",n))(Gn||{}),fu=(n=>(n.Description="description",n.Expanded="expanded",n.Hidden="hidden",n))(fu||{}),dH=(n=>(n.Name="name",n.Subtitle="subtitle",n.Description="description",n.Hidden="hidden",n.Primary="primary",n.Secondary="secondary",n))(dH||{}),hH=(n=>(n.Name="name",n.Subtitle="subtitle",n.Description="description",n.Hidden="hidden",n))(hH||{}),fH=(n=>(n.Hidden="hidden",n))(fH||{});function Nr(n){const{item:e,column:t}=n;if(!t)return L.jsx(L.Fragment,{});switch(t.type){case"text":return L.jsx(ak,{text:t.value(e)});case"description":return L.jsx(ak,{text:t.value(e)});case"datetime":return L.jsx(p7,{format:"since",value:t.value(e)});case"count":return L.jsx(L.Fragment,{children:t.value(e)??"-"});case"labels":return L.jsx(_7,{labels:t.value(e)??[]});default:return L.jsx(L.Fragment,{children:t.cell(e)})}}function iT(n){return T.useMemo(()=>n.filter(e=>!(e.table==="hidden"||e.table==="description"||e.table==="expanded")),[n])}function gH(n){return T.useMemo(()=>n.filter(e=>e.list!=="hidden"),[n])}function mH(n){return T.useMemo(()=>n.filter(e=>e.card!=="hidden"),[n])}function rT(n){return T.useMemo(()=>n.filter(e=>e.modal!=="hidden"),[n])}function v6e(n,e){const t=iT(n),i=gH(n),r=mH(n);switch(e){case Gn.Table:return t;case Gn.List:return i;case Gn.Cards:return r}}function pH(n){return T.useMemo(()=>n.filter(e=>e.table==="hidden"?!1:e.table==="description"),[n])}function _H(n){return T.useMemo(()=>n.filter(e=>e.table==="hidden"?!1:e.table==="expanded"),[n])}function b6e(n){return T.useMemo(()=>n.map(e=>({...e,sort:void 0})),[n])}function y6e(n){return T.useMemo(()=>n.map(e=>({...e,table:e.table==="expanded"?void 0:e.table})),[n])}function vH(n){const{item:e,columns:t,disablePadding:i,numberOfColumns:r}=n;return e?L.jsx(uH,{disablePadding:i,numberOfColumns:r,children:t.map(s=>"value"in s&&s.value&&!s.value(e)?L.jsx(T.Fragment,{},s.id??s.header):L.jsx(K0,{label:s.header,children:L.jsx(Nr,{column:s,item:e})},s.id??s.header))}):L.jsx(L.Fragment,{})}let C6e=class{constructor(e){XP(this,"value");XP(this,"next");this.value=e}};class w6e{constructor(){_L(this,Rl,void 0);_L(this,wf,void 0);_L(this,Sf,void 0);this.clear()}enqueue(e){const t=new C6e(e);Ed(this,Rl)?(Ed(this,wf).next=t,Kc(this,wf,t)):(Kc(this,Rl,t),Kc(this,wf,t)),QP(this,Sf)._++}dequeue(){const e=Ed(this,Rl);if(e)return Kc(this,Rl,Ed(this,Rl).next),QP(this,Sf)._--,e.value}clear(){Kc(this,Rl,void 0),Kc(this,wf,void 0),Kc(this,Sf,0)}get size(){return Ed(this,Sf)}*[Symbol.iterator](){let e=Ed(this,Rl);for(;e;)yield e.value,e=e.next}}Rl=new WeakMap,wf=new WeakMap,Sf=new WeakMap;function S6e(n){if(!((Number.isInteger(n)||n===Number.POSITIVE_INFINITY)&&n>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");const e=new w6e;let t=0;const i=()=>{t--,e.size>0&&e.dequeue()()},r=async(a,l,c)=>{t++;const u=(async()=>a(...c))();l(u);try{await u}catch{}i()},s=(a,l,c)=>{e.enqueue(r.bind(void 0,a,l,c)),(async()=>(await Promise.resolve(),t<n&&e.size>0&&e.dequeue()()))()},o=(a,...l)=>new Promise(c=>{s(a,c,l)});return Object.defineProperties(o,{activeCount:{get:()=>t},pendingCount:{get:()=>e.size},clearQueue:{value:()=>{e.clear()}}}),o}function bH(n){const[e,t]=T.useState(!1),i=ms("sm"),[r]=vi(),{pageItems:s,selectedItems:o,selectItems:a,unselectAll:l}=n,c=n.itemCount!==void 0&&n.itemCount>0&&s&&s.length>0&&(s??[]).every(p=>o==null?void 0:o.includes(p)),u=T.useCallback(()=>{c?l==null||l():a==null||a(s??[])},[c,l,a,s]),d=T.useMemo(()=>i?o&&o.length>0?`${o.length} selected`:"":o&&o.length>0?`${o.length}`:"",[i,o]),h=T.useMemo(()=>{const p=o?o.length:0;return L.jsx(R.DropdownToggle,{splitButtonItems:[L.jsx(R.DropdownToggleCheckbox,{id:"select-all","aria-label":"Select all",isChecked:c?!0:p>0?null:!1,onChange:u,children:d},"select-all")],onToggle:v=>t(v)})},[o,c,u,d]),f=T.useMemo(()=>L.jsx(R.DropdownItem,{id:"select-none",onClick:()=>{l==null||l(),t(!1)},children:n.selectNoneText??r.selectNone},"select-none"),[n.selectNoneText,r.selectNone,l]),g=T.useMemo(()=>L.jsx(R.DropdownItem,{id:"select-page",onClick:()=>{a==null||a(s??[]),t(!1)},children:`Select ${(s==null?void 0:s.length)??0} page items`},"select-page"),[a,s]),m=T.useMemo(()=>[f,g],[f,g]);return L.jsx(R.Dropdown,{isOpen:e,toggle:h,dropdownItems:m,style:{zIndex:400}})}const kct="";function Nn(...n){const e=[],t={}.hasOwnProperty;return n.filter(Boolean).forEach(i=>{const r=typeof i;if(r==="string"||r==="number")e.push(i);else if(Array.isArray(i)&&i.length){const s=Nn(...i);s&&e.push(s)}else if(r==="object")for(const s in i)t.call(i,s)&&i[s]&&e.push(s)}),e.join(" ")}const Dct="",nn={breadcrumb:"pf-c-breadcrumb",divider:"pf-c-divider",menu:"pf-c-menu",menuBreadcrumb:"pf-c-menu__breadcrumb",menuContent:"pf-c-menu__content",menuFooter:"pf-c-menu__footer",menuGroup:"pf-c-menu__group",menuGroupTitle:"pf-c-menu__group-title",menuHeader:"pf-c-menu__header",menuItem:"pf-c-menu__item",menuItemAction:"pf-c-menu__item-action",menuItemActionIcon:"pf-c-menu__item-action-icon",menuItemCheck:"pf-c-menu__item-check",menuItemDescription:"pf-c-menu__item-description",menuItemExternalIcon:"pf-c-menu__item-external-icon",menuItemIcon:"pf-c-menu__item-icon",menuItemMain:"pf-c-menu__item-main",menuItemSelectIcon:"pf-c-menu__item-select-icon",menuItemText:"pf-c-menu__item-text",menuItemToggleIcon:"pf-c-menu__item-toggle-icon",menuList:"pf-c-menu__list",menuListItem:"pf-c-menu__list-item",menuSearch:"pf-c-menu__search",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",flyout:"pf-m-flyout",top:"pf-m-top",left:"pf-m-left",drilldown:"pf-m-drilldown",drilledIn:"pf-m-drilled-in",currentPath:"pf-m-current-path",static:"pf-m-static",plain:"pf-m-plain",scrollable:"pf-m-scrollable",nav:"pf-m-nav",focus:"pf-m-focus",disabled:"pf-m-disabled",load:"pf-m-load",loading:"pf-m-loading",danger:"pf-m-danger",selected:"pf-m-selected",favorite:"pf-m-favorite",favorited:"pf-m-favorited"},themeDark:"pf-theme-dark"};let x6e=0;class sT extends ce.Component{constructor(){super(...arguments),this.id=`${this.props.prefix}${x6e++}`}render(){return this.props.children(this.id)}}sT.displayName="GenerateId",sT.defaultProps={prefix:"pf-random-id-"};const L6e="*";let k6e=0;const yH="OUIA-Generated-",oT={};function aT(n,e,t=!0){return{"data-ouia-component-type":`PF4/${n}`,"data-ouia-safe":t,"data-ouia-component-id":e}}function lT(n,e){try{let t;return typeof window<"u"?t=`${window.location.href}-${n}-${e||""}`:t=`${n}-${e||""}`,oT[t]||(oT[t]=0),`${yH}${n}-${e?`${e}-`:""}${++oT[t]}`}catch{return`${yH}${n}-${e?`${e}-`:""}${++k6e}`}}const xg=!!(typeof window<"u"&&window.document&&window.document.createElement);function G0(n){const e=n.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function qa(n){if(n.toString()!=="[object Window]"){const e=n.ownerDocument;return e?e.defaultView:window}return n}function cT(n){const e=qa(n),t=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:t,scrollTop:i}}function Y0(n){const e=qa(n).Element;return n instanceof e||n instanceof Element}function Ka(n){const e=qa(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function D6e(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function E6e(n){return n===qa(n)||!Ka(n)?cT(n):D6e(n)}function ra(n){return n?(n.nodeName||"").toLowerCase():null}function ic(n){return(Y0(n)?n.ownerDocument:n.document).documentElement}function uT(n){return G0(ic(n)).left+cT(n).scrollLeft}function rc(n){return qa(n).getComputedStyle(n)}function dT(n){const{overflow:e,overflowX:t,overflowY:i}=rc(n);return/auto|scroll|overlay|hidden/.test(e+i+t)}function T6e(n,e,t=!1){const i=ic(e),r=G0(n),s=Ka(e);let o={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(s||!s&&!t)&&((ra(e)!=="body"||dT(i))&&(o=E6e(e)),Ka(e)?(a=G0(e),a.x+=e.clientLeft,a.y+=e.clientTop):i&&(a.x=uT(i))),{x:r.left+o.scrollLeft-a.x,y:r.top+o.scrollTop-a.y,width:r.width,height:r.height}}function hT(n){return{x:n.offsetLeft,y:n.offsetTop,width:n.offsetWidth,height:n.offsetHeight}}function JC(n){return ra(n)==="html"?n:n.assignedSlot||n.parentNode||n.host||ic(n)}function CH(n){return["html","body","#document"].indexOf(ra(n))>=0?n.ownerDocument.body:Ka(n)&&dT(n)?n:CH(JC(n))}function Z0(n,e=[]){const t=CH(n),i=ra(t)==="body",r=qa(t),s=i?[r].concat(r.visualViewport||[],dT(t)?t:[]):t,o=e.concat(s);return i?o:o.concat(Z0(JC(s)))}function I6e(n){return["table","td","th"].indexOf(ra(n))>=0}function wH(n){if(!Ka(n)||rc(n).position==="fixed")return null;const e=n.offsetParent;if(e){const t=ic(e);if(ra(e)==="body"&&rc(e).position==="static"&&rc(t).position!=="static")return t}return e}function A6e(n){let e=JC(n);for(;Ka(e)&&["html","body"].indexOf(ra(e))<0;){const t=rc(e);if(t.transform!=="none"||t.perspective!=="none"||t.willChange&&t.willChange!=="auto")return e;e=e.parentNode}return null}function X0(n){const e=qa(n);let t=wH(n);for(;t&&I6e(t)&&rc(t).position==="static";)t=wH(t);return t&&ra(t)==="body"&&rc(t).position==="static"?e:t||A6e(n)||e}const yo="top",sa="bottom",oa="right",Co="left",fT="auto",Q0=[yo,sa,oa,Co],Lg="start",gT="end",N6e="clippingParents",SH="viewport",J0="popper",O6e="reference",xH=Q0.reduce((n,e)=>n.concat([`${e}-${Lg}`,`${e}-${gT}`]),[]),LH=[...Q0,fT].reduce((n,e)=>n.concat([e,`${e}-${Lg}`,`${e}-${gT}`]),[]),M6e=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function P6e(n){const e=new Map,t=new Set,i=[];n.forEach(s=>{e.set(s.name,s)});function r(s){t.add(s.name),[...s.requires||[],...s.requiresIfExists||[]].forEach(a=>{if(!t.has(a)){const l=e.get(a);l&&r(l)}}),i.push(s)}return n.forEach(s=>{t.has(s.name)||r(s)}),i}function R6e(n){const e=P6e(n);return M6e.reduce((t,i)=>t.concat(e.filter(r=>r.phase===i)),[])}function F6e(n){let e;return()=>(e||(e=new Promise(t=>{Promise.resolve().then(()=>{e=void 0,t(n())})})),e)}function Ga(n){return n.split("-")[0]}function B6e(n){const e=n.reduce((t,i)=>{const r=t[i.name];return t[i.name]=r?Object.assign(Object.assign(Object.assign({},r),i),{options:Object.assign(Object.assign({},r.options),i.options),data:Object.assign(Object.assign({},r.data),i.data)}):i,t},{});return Object.keys(e).map(t=>e[t])}function W6e(n){const e=qa(n),t=ic(n),i=e.visualViewport;let r=t.clientWidth,s=t.clientHeight,o=0,a=0;return i&&(r=i.width,s=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=i.offsetLeft,a=i.offsetTop)),{width:r,height:s,x:o+uT(n),y:a}}function V6e(n){const e=ic(n),t=cT(n),i=n.ownerDocument.body,r=Math.max(e.scrollWidth,e.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Math.max(e.scrollHeight,e.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);let o=-t.scrollLeft+uT(n);const a=-t.scrollTop;return rc(i||e).direction==="rtl"&&(o+=Math.max(e.clientWidth,i?i.clientWidth:0)-r),{width:r,height:s,x:o,y:a}}function kH(n,e){const t=!!(e.getRootNode&&e.getRootNode().host);if(n.contains(e))return!0;if(t){let i=e;do{if(i&&n.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function mT(n){return Object.assign(Object.assign({},n),{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function $6e(n){const e=G0(n);return e.top=e.top+n.clientTop,e.left=e.left+n.clientLeft,e.bottom=e.top+n.clientHeight,e.right=e.left+n.clientWidth,e.width=n.clientWidth,e.height=n.clientHeight,e.x=e.left,e.y=e.top,e}function DH(n,e){return e===SH?mT(W6e(n)):Ka(e)?$6e(e):mT(V6e(ic(n)))}function H6e(n){const e=Z0(JC(n)),i=["absolute","fixed"].indexOf(rc(n).position)>=0&&Ka(n)?X0(n):n;return Y0(i)?e.filter(r=>Y0(r)&&kH(r,i)&&ra(r)!=="body"):[]}function j6e(n,e,t){const r=[...e==="clippingParents"?H6e(n):[].concat(e),t],s=r[0],o=r.reduce((a,l)=>{const c=DH(n,l);return a.top=Math.max(c.top,a.top),a.right=Math.min(c.right,a.right),a.bottom=Math.min(c.bottom,a.bottom),a.left=Math.max(c.left,a.left),a},DH(n,s));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function e_(n){return n.split("-")[1]}function pT(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function EH({reference:n,element:e,placement:t}){const i=t?Ga(t):null,r=t?e_(t):null,s=n.x+n.width/2-e.width/2,o=n.y+n.height/2-e.height/2;let a;switch(i){case yo:a={x:s,y:n.y-e.height};break;case sa:a={x:s,y:n.y+n.height};break;case oa:a={x:n.x+n.width,y:o};break;case Co:a={x:n.x-e.width,y:o};break;default:a={x:n.x,y:n.y}}const l=i?pT(i):null;if(l!=null){const c=l==="y"?"height":"width";switch(r){case Lg:a[l]=Math.floor(a[l])-Math.floor(n[c]/2-e[c]/2);break;case gT:a[l]=Math.floor(a[l])+Math.ceil(n[c]/2-e[c]/2);break}}return a}function TH(){return{top:0,right:0,bottom:0,left:0}}function IH(n){return Object.assign(Object.assign({},TH()),n)}function AH(n,e){return e.reduce((t,i)=>(t[i]=n,t),{})}function t_(n,e={}){const{placement:t=n.placement,boundary:i=N6e,rootBoundary:r=SH,elementContext:s=J0,altBoundary:o=!1,padding:a=0}=e,l=IH(typeof a!="number"?a:AH(a,Q0)),c=s===J0?O6e:J0,u=n.elements.reference,d=n.rects.popper,h=n.elements[o?c:s],f=j6e(Y0(h)?h:h.contextElement||ic(n.elements.popper),i,r),g=G0(u),m=EH({reference:g,element:d,strategy:"absolute",placement:t}),p=mT(Object.assign(Object.assign({},d),m)),v=s===J0?p:g,_={top:f.top-v.top+l.top,bottom:v.bottom-f.bottom+l.bottom,left:f.left-v.left+l.left,right:v.right-f.right+l.right},b=n.modifiersData.offset;if(s===J0&&b){const y=b[t];Object.keys(_).forEach(w=>{const k=[oa,sa].indexOf(w)>=0?1:-1,x=[yo,sa].indexOf(w)>=0?"y":"x";_[w]+=y[x]*k})}return _}const NH={placement:"bottom",modifiers:[],strategy:"absolute"};function OH(...n){return!n.some(e=>!(e&&typeof e.getBoundingClientRect=="function"))}function z6e(n={}){const{defaultModifiers:e=[],defaultOptions:t=NH}=n;return function(r,s,o=t){let a={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},NH),t),modifiersData:{},elements:{reference:r,popper:s},attributes:{},styles:{}},l=[],c=!1;const u={state:a,setOptions(f){h(),a.options=Object.assign(Object.assign(Object.assign({},t),a.options),f),a.scrollParents={reference:Y0(r)?Z0(r):r.contextElement?Z0(r.contextElement):[],popper:Z0(s)};const g=R6e(B6e([...e,...a.options.modifiers]));return a.orderedModifiers=g.filter(m=>m.enabled),d(),u.update()},forceUpdate(){if(c)return;const{reference:f,popper:g}=a.elements;if(OH(f,g)){a.rects={reference:T6e(f,X0(g),a.options.strategy==="fixed"),popper:hT(g)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(m=>a.modifiersData[m.name]=Object.assign({},m.data));for(let m=0;m<a.orderedModifiers.length;m++){if(a.reset===!0){a.reset=!1,m=-1;continue}const{fn:p,options:v={},name:_}=a.orderedModifiers[m];typeof p=="function"&&(a=p({state:a,options:v,name:_,instance:u})||a)}}},update:F6e(()=>new Promise(f=>{u.forceUpdate(),f(a)})),destroy(){h(),c=!0}};if(!OH(r,s))return u;u.setOptions(o).then(f=>{!c&&o.onFirstUpdate&&o.onFirstUpdate(f)});function d(){a.orderedModifiers.forEach(({name:f,options:g={},effect:m})=>{if(typeof m=="function"){const p=m({state:a,name:f,instance:u,options:g}),v=()=>{};l.push(p||v)}})}function h(){l.forEach(f=>f()),l=[]}return u}}const ew={passive:!0};function U6e({state:n,instance:e,options:t}){const{scroll:i=!0,resize:r=!0}=t,s=qa(n.elements.popper),o=[...n.scrollParents.reference,...n.scrollParents.popper];return i&&o.forEach(a=>{a.addEventListener("scroll",e.update,ew)}),r&&s.addEventListener("resize",e.update,ew),()=>{i&&o.forEach(a=>{a.removeEventListener("scroll",e.update,ew)}),r&&s.removeEventListener("resize",e.update,ew)}}const q6e={name:"eventListeners",enabled:!0,phase:"write",fn:()=>{},effect:U6e,data:{}};function K6e({state:n,name:e}){n.modifiersData[e]=EH({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})}const G6e={name:"popperOffsets",enabled:!0,phase:"read",fn:K6e,data:{}},Y6e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Z6e({x:n,y:e}){const i=window.devicePixelRatio||1;return{x:Math.round(n*i)/i||0,y:Math.round(e*i)/i||0}}function MH({popper:n,popperRect:e,placement:t,offsets:i,position:r,gpuAcceleration:s,adaptive:o}){let{x:a,y:l}=Z6e(i);const c=i.hasOwnProperty("x"),u=i.hasOwnProperty("y");let d=Co,h=yo;const f=window;if(o){let m=X0(n);m===qa(n)&&(m=ic(n)),t===yo&&(h=sa,l-=m.clientHeight-e.height,l*=s?1:-1),t===Co&&(d=oa,a-=m.clientWidth-e.width,a*=s?1:-1)}const g=Object.assign({position:r},o&&Y6e);return s?Object.assign(Object.assign({},g),{[h]:u?"0":"",[d]:c?"0":"",transform:(f.devicePixelRatio||1)<2?`translate(${a}px, ${l}px)`:`translate3d(${a}px, ${l}px, 0)`}):Object.assign(Object.assign({},g),{[h]:u?`${l}px`:"",[d]:c?`${a}px`:"",transform:""})}function X6e({state:n,options:e}){const{gpuAcceleration:t=!0,adaptive:i=!0}=e,r={placement:Ga(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:t};n.modifiersData.popperOffsets!=null&&(n.styles.popper=Object.assign(Object.assign({},n.styles.popper),MH(Object.assign(Object.assign({},r),{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:i})))),n.modifiersData.arrow!=null&&(n.styles.arrow=Object.assign(Object.assign({},n.styles.arrow),MH(Object.assign(Object.assign({},r),{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1})))),n.attributes.popper=Object.assign(Object.assign({},n.attributes.popper),{"data-popper-placement":n.placement})}const Q6e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:X6e,data:{}};function J6e({state:n}){Object.keys(n.elements).forEach(e=>{const t=n.styles[e]||{},i=n.attributes[e]||{},r=n.elements[e];!Ka(r)||!ra(r)||(Object.assign(r.style,t),Object.keys(i).forEach(s=>{const o=i[s];o===!1?r.removeAttribute(s):r.setAttribute(s,o===!0?"":o)}))})}function e3e({state:n}){const e={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,e.popper),n.elements.arrow&&Object.assign(n.elements.arrow.style,e.arrow),()=>{Object.keys(n.elements).forEach(t=>{const i=n.elements[t],r=n.attributes[t]||{},o=Object.keys(n.styles.hasOwnProperty(t)?n.styles[t]:e[t]).reduce((a,l)=>(a[l]="",a),{});!Ka(i)||!ra(i)||(Object.assign(i.style,o),Object.keys(r).forEach(a=>{i.removeAttribute(a)}))})}}const t3e={name:"applyStyles",enabled:!0,phase:"write",fn:J6e,effect:e3e,requires:["computeStyles"]};function n3e(n,e,t){const i=Ga(n),r=[Co,yo].indexOf(i)>=0?-1:1;let[s,o]=typeof t=="function"?t(Object.assign(Object.assign({},e),{placement:n})):t;return s=s||0,o=(o||0)*r,[Co,oa].indexOf(i)>=0?{x:o,y:s}:{x:s,y:o}}function i3e({state:n,options:e,name:t}){const{offset:i=[0,0]}=e,r=LH.reduce((a,l)=>(a[l]=n3e(l,n.rects,i),a),{}),{x:s,y:o}=r[n.placement];n.modifiersData.popperOffsets!=null&&(n.modifiersData.popperOffsets.x+=s,n.modifiersData.popperOffsets.y+=o),n.modifiersData[t]=r}const r3e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:i3e},s3e={left:"right",right:"left",bottom:"top",top:"bottom"};function tw(n){return n.replace(/left|right|bottom|top/g,e=>s3e[e])}const o3e={start:"end",end:"start"};function PH(n){return n.replace(/start|end/g,e=>o3e[e])}function a3e(n,e={}){const{placement:t,boundary:i,rootBoundary:r,padding:s,flipVariations:o,allowedAutoPlacements:a=LH}=e,l=e_(t),c=l?o?xH:xH.filter(h=>e_(h)===l):Q0;let u=c.filter(h=>a.indexOf(h)>=0);u.length===0&&(u=c);const d=u.reduce((h,f)=>(h[f]=t_(n,{placement:f,boundary:i,rootBoundary:r,padding:s})[Ga(f)],h),{});return Object.keys(d).sort((h,f)=>d[h]-d[f])}function l3e(n){if(Ga(n)===fT)return[];const e=tw(n);return[PH(n),e,PH(e)]}function c3e({state:n,options:e,name:t}){if(n.modifiersData[t]._skip)return;const{mainAxis:i=!0,altAxis:r=!0,fallbackPlacements:s,padding:o,boundary:a,rootBoundary:l,altBoundary:c,flipVariations:u=!0,allowedAutoPlacements:d}=e,h=n.options.placement,g=Ga(h)===h,m=s||(g||!u?[tw(h)]:l3e(h)),p=[h,...m].reduce((k,x)=>k.concat(Ga(x)===fT?a3e(n,{placement:x,boundary:a,rootBoundary:l,padding:o,flipVariations:u,allowedAutoPlacements:d}):x),[]),v=n.rects.reference,_=n.rects.popper,b=new Map;let y=!0,w=p[0];for(let k=0;k<p.length;k++){const x=p[k],D=Ga(x),E=e_(x)===Lg,M=[yo,sa].indexOf(D)>=0,N=M?"width":"height",I=t_(n,{placement:x,boundary:a,rootBoundary:l,altBoundary:c,padding:o});let O=M?E?oa:Co:E?sa:yo;v[N]>_[N]&&(O=tw(O));const B=tw(O),W=[];if(i&&W.push(I[D]<=0),r&&W.push(I[O]<=0,I[B]<=0),W.every(J=>J)){w=x,y=!1;break}b.set(x,W)}if(y){const k=u?3:1;for(let x=k;x>0;x--){const D=p.find(E=>{const M=b.get(E);if(M)return M.slice(0,x).every(N=>N)});if(D){w=D;break}}}n.placement!==w&&(n.modifiersData[t]._skip=!0,n.placement=w,n.reset=!0)}const u3e={name:"flip",enabled:!0,phase:"main",fn:c3e,requiresIfExists:["offset"],data:{_skip:!1}};function d3e(n){return n==="x"?"y":"x"}function nw(n,e,t){return Math.max(n,Math.min(e,t))}function h3e({state:n,options:e,name:t}){const{mainAxis:i=!0,altAxis:r=!1,boundary:s,rootBoundary:o,altBoundary:a,padding:l,tether:c=!0,tetherOffset:u=0}=e,d=t_(n,{boundary:s,rootBoundary:o,padding:l,altBoundary:a}),h=Ga(n.placement),f=e_(n.placement),g=!f,m=pT(h),p=d3e(m),v=n.modifiersData.popperOffsets,_=n.rects.reference,b=n.rects.popper,y=typeof u=="function"?u(Object.assign(Object.assign({},n.rects),{placement:n.placement})):u,w={x:0,y:0};if(v){if(i){const k=m==="y"?yo:Co,x=m==="y"?sa:oa,D=m==="y"?"height":"width",E=v[m],M=v[m]+d[k],N=v[m]-d[x],I=c?-b[D]/2:0,O=f===Lg?_[D]:b[D],B=f===Lg?-b[D]:-_[D],W=n.elements.arrow,J=c&&W?hT(W):{width:0,height:0},re=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:TH(),se=re[k],ie=re[x],Q=nw(0,_[D],J[D]),oe=g?_[D]/2-I-Q-se-y:O-Q-se-y,Z=g?-_[D]/2+I+Q+ie+y:B+Q+ie+y,X=n.elements.arrow&&X0(n.elements.arrow),ue=X?m==="y"?X.clientTop||0:X.clientLeft||0:0,De=n.modifiersData.offset?n.modifiersData.offset[n.placement][m]:0,te=v[m]+oe-De-ue,xe=v[m]+Z-De,ge=nw(c?Math.min(M,te):M,E,c?Math.max(N,xe):N);v[m]=ge,w[m]=ge-E}if(r){const k=m==="x"?yo:Co,x=m==="x"?sa:oa,D=v[p],E=D+d[k],M=D-d[x],N=nw(E,D,M);v[p]=N,w[p]=N-D}n.modifiersData[t]=w}}const f3e={name:"preventOverflow",enabled:!0,phase:"main",fn:h3e,requiresIfExists:["offset"]};function g3e({state:n,name:e}){const t=n.elements.arrow,i=n.modifiersData.popperOffsets,r=Ga(n.placement),s=pT(r),a=[Co,oa].indexOf(r)>=0?"height":"width";if(!t||!i)return;const l=n.modifiersData[`${e}#persistent`].padding,c=hT(t),u=s==="y"?yo:Co,d=s==="y"?sa:oa,h=n.rects.reference[a]+n.rects.reference[s]-i[s]-n.rects.popper[a],f=i[s]-n.rects.reference[s],g=X0(t),m=g?s==="y"?g.clientHeight||0:g.clientWidth||0:0,p=h/2-f/2,v=l[u],_=m-c[a]-l[d],b=m/2-c[a]/2+p,y=nw(v,b,_),w=s;n.modifiersData[e]={[w]:y,centerOffset:y-b}}function m3e({state:n,options:e,name:t}){let{element:i="[data-popper-arrow]",padding:r=0}=e;i!=null&&(typeof i=="string"&&(i=n.elements.popper.querySelector(i),!i)||kH(n.elements.popper,i)&&(n.elements.arrow=i,n.modifiersData[`${t}#persistent`]={padding:IH(typeof r!="number"?r:AH(r,Q0))}))}const p3e={name:"arrow",enabled:!0,phase:"main",fn:g3e,effect:m3e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function RH(n,e,t={x:0,y:0}){return{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function FH(n){return[yo,oa,sa,Co].some(e=>n[e]>=0)}function _3e({state:n,name:e}){const t=n.rects.reference,i=n.rects.popper,r=n.modifiersData.preventOverflow,s=t_(n,{elementContext:"reference"}),o=t_(n,{altBoundary:!0}),a=RH(s,t),l=RH(o,i,r),c=FH(a),u=FH(l);n.modifiersData[e]={referenceClippingOffsets:a,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:u},n.attributes.popper=Object.assign(Object.assign({},n.attributes.popper),{"data-popper-reference-hidden":c,"data-popper-escaped":u})}const v3e=z6e({defaultModifiers:[q6e,G6e,Q6e,t3e,r3e,u3e,f3e,p3e,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:_3e}]}),_T=xg?ce.useLayoutEffect:ce.useEffect,b3e=(n,e)=>JSON.stringify(n)===JSON.stringify(e),BH=n=>n.reduce((e,[t,i])=>(e[t]=i,e),{}),y3e=[],C3e=(n,e,t={})=>{const i=ce.useRef(null),r={onFirstUpdate:t.onFirstUpdate,placement:t.placement||"bottom",strategy:t.strategy||"absolute",modifiers:t.modifiers||y3e},[s,o]=ce.useState({styles:{popper:{position:r.strategy,left:"0",top:"0"}},attributes:{}}),a=ce.useMemo(()=>({name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const d=Object.keys(u.elements);o({styles:BH(d.map(h=>[h,u.styles[h]||{}])),attributes:BH(d.map(h=>[h,u.attributes[h]]))})},requires:["computeStyles"]}),[]),l=ce.useMemo(()=>{const u={onFirstUpdate:r.onFirstUpdate,placement:r.placement,strategy:r.strategy,modifiers:[...r.modifiers,a,{name:"applyStyles",enabled:!1}]};return b3e(i.current,u)?i.current||u:(i.current=u,u)},[r.onFirstUpdate,r.placement,r.strategy,r.modifiers,a]),c=ce.useRef();return _T(()=>{c&&c.current&&c.current.setOptions(l)},[l]),_T(()=>{if(n==null||e==null)return;const d=(t.createPopper||v3e)(n,e,l);return c.current=d,()=>{d.destroy(),c.current=null}},[n,e,t.createPopper]),{state:c.current?c.current.state:null,styles:s.styles,attributes:s.attributes,update:c.current?c.current.update:null,forceUpdate:c.current?c.current.forceUpdate:null}};class vT extends ce.Component{componentDidMount(){const e=n6.findDOMNode(this);this.props.onFoundRef(e)}render(){return this.props.children||null}}vT.displayName="FindRefWrapper";const Wct="",w3e={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"},S3e=n=>n.replace(/left|right|bottom|top|top-start|top-end|bottom-start|bottom-end|right-start|right-end|left-start|left-end/g,e=>w3e[e]),WH=({trigger:n,popper:e,popperMatchesTriggerWidth:t=!0,direction:i="down",position:r="left",placement:s,appendTo:o=()=>document.body,zIndex:a=9999,isVisible:l=!0,positionModifiers:c,distance:u=0,onMouseEnter:d,onMouseLeave:h,onFocus:f,onBlur:g,onDocumentClick:m,onTriggerClick:p,onTriggerEnter:v,onPopperClick:_,onPopperMouseEnter:b,onPopperMouseLeave:y,onDocumentKeyDown:w,enableFlip:k=!0,flipBehavior:x="flip",reference:D,removeFindDomNode:E=!1,popperRef:M})=>{const[N,I]=ce.useState(null),[O,B]=ce.useState(null),[W,J]=ce.useState(null),[re,se]=ce.useState(!1),ie=O||N,Q=ce.useCallback(H=>m(H,ie,W),[l,N,O,W,m]);ce.useEffect(()=>{se(!0)},[]),ce.useEffect(()=>{D&&(D.current?B(D.current):typeof D=="function"&&B(D()))},[D]),ce.useEffect(()=>{M&&(M.current?J(M.current):typeof M=="function"&&J(M()))},[l,M]);const oe=(H,ae,be,$e=!1)=>{H&&ae&&ae.addEventListener(be,H,{capture:$e})},Z=(H,ae,be,$e=!1)=>{H&&ae&&ae.removeEventListener(be,H,{capture:$e})};ce.useEffect(()=>{oe(d,ie,"mouseenter"),oe(h,ie,"mouseleave"),oe(f,ie,"focus"),oe(g,ie,"blur"),oe(p,ie,"click"),oe(v,ie,"keydown"),oe(_,W,"click"),oe(b,W,"mouseenter"),oe(y,W,"mouseleave"),m&&oe(Q,document,"click",!0),oe(w,document,"keydown",!0);const H=new MutationObserver(()=>{Ce&&Ce()});return W&&H.observe(W,{attributes:!0,childList:!0,subtree:!0}),()=>{Z(d,ie,"mouseenter"),Z(h,ie,"mouseleave"),Z(f,ie,"focus"),Z(g,ie,"blur"),Z(p,ie,"click"),Z(v,ie,"keydown"),Z(_,W,"click"),Z(b,W,"mouseenter"),Z(y,W,"mouseleave"),m&&Z(Q,document,"click",!0),Z(w,document,"keydown",!0),H.disconnect()}},[N,W,d,h,f,g,p,v,_,b,y,m,w,O]);const X=()=>{if(s)return s;let H=i==="up"?"top":"bottom";return r!=="center"&&(H=`${H}-${r==="right"?"end":"start"}`),H},ue=ce.useMemo(X,[i,r,s]),De=ce.useMemo(()=>S3e(X()),[i,r,s]),te=ce.useMemo(()=>({name:"sameWidth",enabled:t,phase:"beforeWrite",requires:["computeStyles"],fn:({state:H})=>{H.styles.popper.width=`${H.rects.reference.width}px`},effect:({state:H})=>(H.elements.popper.style.width=`${H.elements.reference.offsetWidth}px`,()=>{})}),[t]),{styles:xe,attributes:ge,update:Ce,forceUpdate:Se}=C3e(ie,W,{placement:ue,modifiers:[{name:"offset",options:{offset:[0,u]}},{name:"preventOverflow",enabled:!1},{name:"hide",enabled:!0},{name:"flip",enabled:ue.startsWith("auto")||k,options:{fallbackPlacements:x==="flip"?[De]:x}},te]});ce.useEffect(()=>{Se&&Se()},[e]);const pe=()=>{if(ge&&ge.popper&&ge.popper["data-popper-placement"]){const H=ge.popper["data-popper-placement"];return c[H]}return c.top},ee=Object.assign({className:Nn(e.props&&e.props.className,c&&pe()),style:Object.assign(Object.assign(Object.assign({},e.props&&e.props.style||{}),xe.popper),{zIndex:a})},ge.popper),Xe=ce.cloneElement(e,ee),Je=()=>typeof o=="function"?o():o;let Fe;return E?Fe=ce.createElement("div",{style:{display:"contents"},ref:H=>J(H==null?void 0:H.firstElementChild)},Xe):M?Fe=Xe:Fe=ce.createElement(vT,{onFoundRef:H=>J(H)},Xe),ce.createElement(ce.Fragment,null,!D&&n&&ce.isValidElement(n)&&!E&&ce.createElement(vT,{onFoundRef:H=>I(H)},n),!D&&n&&ce.isValidElement(n)&&E&&ce.createElement("div",{style:{display:"contents"},ref:H=>I(H==null?void 0:H.firstElementChild)},n),re&&l&&n6.createPortal(Fe,Je()))};WH.displayName="Popper";const x3e=(n,e,t=c=>document.activeElement.contains(c),i=c=>c,r=["A","BUTTON","INPUT"],s=!1,o=!1,a=!0,l=!0)=>{const c=document.activeElement,u=n.key;let d=null;if(!s&&["ArrowUp","ArrowDown"].includes(u)){n.preventDefault(),n.stopImmediatePropagation();let h=-1;e.forEach((f,g)=>{if(t(f)){let m=0;for(;!d&&m<e.length&&m*-1<e.length;)u==="ArrowUp"?m--:m++,h=g+m,h>=e.length&&(h=0),h<0&&(h=e.length-1),d=i(e[h])}})}if(!o&&["ArrowLeft","ArrowRight"].includes(u)){n.preventDefault(),n.stopImmediatePropagation();let h=-1;e.forEach((f,g)=>{if(t(f)){const m=e[g].querySelectorAll(r.join(","));if(!m.length||l){let p=c;for(;p;)if(p=u==="ArrowLeft"?p.previousElementSibling:p.nextElementSibling,p&&r.includes(p.tagName)){d=p;break}}else m.forEach((p,v)=>{n.target===p&&(h=v+(u==="ArrowLeft"?-1:1),h>=m.length&&(h=0),h<0&&(h=m.length-1),d=m[h])})}})}d&&(a&&(c.tabIndex=-1,d.tabIndex=0),d.focus())};class bT extends ce.Component{constructor(){super(...arguments),this.keyHandler=e=>{const{isEventFromContainer:t}=this.props;if(t?!t(e):!this._isEventFromContainer(e))return;const{isActiveElement:i,getFocusableElement:r,noVerticalArrowHandling:s,noHorizontalArrowHandling:o,noEnterHandling:a,noSpaceHandling:l,updateTabIndex:c,validSiblingTags:u,additionalKeyHandler:d,createNavigableElements:h,onlyTraverseSiblings:f}=this.props;d&&d(e);const g=h();if(!g){console.warn("No navigable elements have been passed to the KeyboardHandler. Keyboard navigation provided by this component will be ignored.");return}const m=e.key;a||m==="Enter"&&(e.preventDefault(),e.stopImmediatePropagation(),document.activeElement.click()),l||m===" "&&(e.preventDefault(),e.stopImmediatePropagation(),document.activeElement.click()),x3e(e,g,i,r,u,s,o,c,f)},this._isEventFromContainer=e=>{const{containerRef:t}=this.props;return t.current&&t.current.contains(e.target)}}componentDidMount(){xg&&window.addEventListener("keydown",this.keyHandler)}componentWillUnmount(){xg&&window.removeEventListener("keydown",this.keyHandler)}render(){return null}}bT.displayName="KeyboardHandler",bT.defaultProps={containerRef:null,createNavigableElements:()=>null,isActiveElement:n=>document.activeElement===n,getFocusableElement:n=>n,validSiblingTags:["BUTTON","A"],onlyTraverseSiblings:!0,updateTabIndex:!0,noHorizontalArrowHandling:!1,noVerticalArrowHandling:!1,noEnterHandling:!1,noSpaceHandling:!1};const rh=ce.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"}),VH=ce.createContext({itemId:null,isDisabled:!1});class iw extends ce.Component{constructor(e){super(e),this.menuRef=ce.createRef(),this.activeMenu=null,this.state={ouiaStateId:lT(rw.displayName),searchInputValue:"",transitionMoveTarget:null,flyoutRef:null,disableHover:!1,currentDrilldownMenuId:this.props.id},this.handleDrilldownTransition=t=>{const i=this.menuRef.current;if(!(!i||i!==t.target.closest(".pf-c-menu")&&!Array.from(i.getElementsByClassName("pf-c-menu")).includes(t.target.closest(".pf-c-menu"))))if(this.state.transitionMoveTarget)this.state.transitionMoveTarget.focus(),this.setState({transitionMoveTarget:null});else{const r=i.querySelector("#"+this.props.activeMenu)||i||null,s=Array.from(r.getElementsByTagName("UL")[0].children);if(!this.state.currentDrilldownMenuId||r.id!==this.state.currentDrilldownMenuId)this.setState({currentDrilldownMenuId:r.id});else return;const o=s.filter(a=>!(a.classList.contains("pf-m-disabled")||a.classList.contains("pf-c-divider")))[0].firstChild;o.focus(),o.tabIndex=0}},this.handleExtraKeys=t=>{const i=this.props.containsDrilldown,r=document.activeElement;if(t.target.closest(".pf-c-menu")!==this.activeMenu&&!t.target.classList.contains("pf-c-breadcrumb__link")&&(this.activeMenu=t.target.closest(".pf-c-menu"),this.setState({disableHover:!0})),t.target.tagName==="INPUT")return;const s=this.activeMenu,o=t.key,a=r.classList.contains("pf-c-breadcrumb__link")||r.classList.contains("pf-c-dropdown__toggle");if(o===" "||o==="Enter"){if(t.preventDefault(),i&&!a){if(r.closest("li").classList.contains("pf-m-current-path")&&s.parentElement.tagName==="LI")r.tabIndex=-1,s.parentElement.firstChild.tabIndex=0,this.setState({transitionMoveTarget:s.parentElement.firstChild});else if(r.nextElementSibling&&r.nextElementSibling.classList.contains("pf-c-menu")){const c=Array.from(r.nextElementSibling.getElementsByTagName("UL")[0].children).filter(u=>!(u.classList.contains("pf-m-disabled")||u.classList.contains("pf-c-divider")));r.tabIndex=-1,c[0].firstChild.tabIndex=0,this.setState({transitionMoveTarget:c[0].firstChild})}}document.activeElement.click()}},this.createNavigableElements=()=>this.props.containsDrilldown?this.activeMenu?Array.from(this.activeMenu.getElementsByTagName("UL")[0].children).filter(i=>!(i.classList.contains("pf-m-disabled")||i.classList.contains("pf-c-divider"))):[]:this.menuRef.current?Array.from(this.menuRef.current.getElementsByTagName("LI")).filter(i=>!(i.classList.contains("pf-m-disabled")||i.classList.contains("pf-c-divider"))):[],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(){this.context&&this.setState({disableHover:this.context.disableHover}),xg&&window.addEventListener("transitionend",this.props.isRootMenu?this.handleDrilldownTransition:null),this.allowTabFirstItem()}componentWillUnmount(){xg&&window.removeEventListener("transitionend",this.handleDrilldownTransition)}componentDidUpdate(e){e.children!==this.props.children&&this.allowTabFirstItem()}render(){const e=this.props,{"aria-label":t,id:i,children:r,className:s,onSelect:o,selected:a=null,onActionClick:l,ouiaId:c,ouiaSafe:u,containsFlyout:d,isNavFlyout:h,containsDrilldown:f,isMenuDrilledIn:g,isPlain:m,isScrollable:p,drilldownItemPath:v,drilledInMenus:_,onDrillIn:b,onDrillOut:y,onGetMenuHeight:w,parentMenu:k=null,activeItemId:x=null,innerRef:D,isRootMenu:E,activeMenu:M,role:N}=e,I=Ln(e,["aria-label","id","children","className","onSelect","selected","onActionClick","ouiaId","ouiaSafe","containsFlyout","isNavFlyout","containsDrilldown","isMenuDrilledIn","isPlain","isScrollable","drilldownItemPath","drilledInMenus","onDrillIn","onDrillOut","onGetMenuHeight","parentMenu","activeItemId","innerRef","isRootMenu","activeMenu","role"]),O=g||_&&_.includes(i)||!1;return ce.createElement(rh.Provider,{value:{menuId:i,parentMenu:k||i,onSelect:o,onActionClick:l,activeItemId:x,selected:a,drilledInMenus:_,drilldownItemPath:v,onDrillIn:b,onDrillOut:y,onGetMenuHeight:w,flyoutRef:this.state.flyoutRef,setFlyoutRef:B=>this.setState({flyoutRef:B}),disableHover:this.state.disableHover,role:N}},E&&ce.createElement(bT,{containerRef:this.menuRef||null,additionalKeyHandler:this.handleExtraKeys,createNavigableElements:this.createNavigableElements,isActiveElement:B=>document.activeElement.closest("li")===B||document.activeElement.parentElement===B||document.activeElement.closest(".pf-c-menu__search")===B||document.activeElement.closest("ol")&&document.activeElement.closest("ol").firstChild===B,getFocusableElement:B=>B.tagName==="DIV"&&B.querySelector("input")||B.firstChild.tagName==="LABEL"&&B.querySelector("input")||B.firstChild,noHorizontalArrowHandling:document.activeElement&&(document.activeElement.classList.contains("pf-c-breadcrumb__link")||document.activeElement.classList.contains("pf-c-dropdown__toggle")),noEnterHandling:!0,noSpaceHandling:!0}),ce.createElement("div",Object.assign({id:i,className:Nn(nn.menu,m&&nn.modifiers.plain,p&&nn.modifiers.scrollable,d&&nn.modifiers.flyout,h&&nn.modifiers.nav,f&&nn.modifiers.drilldown,O&&nn.modifiers.drilledIn,s),"aria-label":t,ref:this.menuRef},aT(rw.displayName,c!==void 0?c:this.state.ouiaStateId,u),I),r))}}iw.displayName="Menu",iw.contextType=rh,iw.defaultProps={ouiaSafe:!0,isRootMenu:!0,isPlain:!1,isScrollable:!1,role:"menu"};const rw=ce.forwardRef((n,e)=>ce.createElement(iw,Object.assign({},n,{innerRef:e})));rw.displayName="Menu";const $H=ce.forwardRef((n,e)=>{const{getHeight:t,children:i,menuHeight:r,maxMenuHeight:s}=n,o=Ln(n,["getHeight","children","menuHeight","maxMenuHeight"]),a=ce.createRef(),l=(c,u,d)=>{if(c){let h=c.clientHeight,f=null,g=c.closest(`.${nn.menuList}`);for(;g!==null&&g.nodeType===1;)g.classList.contains(nn.menuList)&&(f=g),g=g.parentElement;if(f){const m=getComputedStyle(f),p=parseFloat(m.getPropertyValue("padding-top").replace(/px/g,""))+parseFloat(m.getPropertyValue("padding-bottom").replace(/px/g,""))+parseFloat(getComputedStyle(f.parentElement).getPropertyValue("border-bottom-width").replace(/px/g,""));h=h+p}d&&d(u,h),t&&t(h.toString())}return e||a};return ce.createElement(rh.Consumer,null,({menuId:c,onGetMenuHeight:u})=>ce.createElement("div",Object.assign({},o,{className:Nn(nn.menuContent,n.className),ref:d=>l(d,c,u),style:Object.assign(Object.assign({},r&&{"--pf-c-menu__content--Height":r}),s&&{"--pf-c-menu__content--MaxHeight":s})}),i))});$H.displayName="MenuContent";const L3e={name:"--pf-c-menu--m-flyout__menu--top-offset",value:"0px",var:"var(--pf-c-menu--m-flyout__menu--top-offset)"},k3e={name:"--pf-c-menu--m-flyout__menu--m-left--right-offset",value:"0px",var:"var(--pf-c-menu--m-flyout__menu--m-left--right-offset)"},D3e={name:"--pf-c-menu--m-flyout__menu--left-offset",value:"0px",var:"var(--pf-c-menu--m-flyout__menu--left-offset)"};var sh;(function(n){n.sm="sm",n.md="md",n.lg="lg",n.xl="xl"})(sh||(sh={}));const E3e=n=>{switch(n){case sh.sm:return"1em";case sh.md:return"1.5em";case sh.lg:return"2em";case sh.xl:return"3em";default:return"1em"}};let T3e=0;function n_({name:n,xOffset:e=0,yOffset:t=0,width:i,height:r,svgPath:s}){var o;return o=class extends ce.Component{constructor(){super(...arguments),this.id=`icon-title-${T3e++}`}render(){const l=this.props,{size:c,color:u,title:d,noVerticalAlign:h}=l,f=Ln(l,["size","color","title","noVerticalAlign"]),g=!!d,m=E3e(c),p=-.125*Number.parseFloat(m),v=h?null:{verticalAlign:`${p}em`},_=[e,t,i,r].join(" ");return ce.createElement("svg",Object.assign({style:v,fill:u,height:m,width:m,viewBox:_,"aria-labelledby":g?this.id:null,"aria-hidden":g?null:!0,role:"img"},f),g&&ce.createElement("title",{id:this.id},d),ce.createElement("path",{d:s}))}},o.displayName=n,o.defaultProps={color:"currentColor",size:sh.sm,noVerticalAlign:!1},o}const I3e=n_({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}),A3e=n_({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}),N3e=n_({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}),O3e=n_({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}),Xct="",gu={check:"pf-c-check",checkBody:"pf-c-check__body",checkDescription:"pf-c-check__description",checkInput:"pf-c-check__input",checkLabel:"pf-c-check__label",checkLabelRequired:"pf-c-check__label-required",modifiers:{standalone:"pf-m-standalone",disabled:"pf-m-disabled"}},HH=()=>{};class kg extends ce.Component{constructor(e){super(e),this.handleChange=t=>{this.props.onChange(t.currentTarget.checked,t)},this.state={ouiaStateId:lT(kg.displayName)}}render(){const e=this.props,{"aria-label":t,className:i,onChange:r,isValid:s,isDisabled:o,isRequired:a,isChecked:l,label:c,checked:u,defaultChecked:d,description:h,body:f,ouiaId:g,ouiaSafe:m,component:p}=e,v=Ln(e,["aria-label","className","onChange","isValid","isDisabled","isRequired","isChecked","label","checked","defaultChecked","description","body","ouiaId","ouiaSafe","component"]);v.id||console.error("Checkbox:","id is required to make input accessible");const _={};return([!0,!1].includes(u)||l===!0)&&(_.checked=u||l),r!==HH&&(_.checked=l),[!1,!0].includes(d)&&(_.defaultChecked=d),_.checked=_.checked===null?!1:_.checked,ce.createElement(p,{className:Nn(gu.check,!c&&gu.modifiers.standalone,i)},ce.createElement("input",Object.assign({},v,{className:Nn(gu.checkInput),type:"checkbox",onChange:this.handleChange,"aria-invalid":!s,"aria-label":t,disabled:o,required:a,ref:b=>b&&(b.indeterminate=l===null)},_,aT(kg.displayName,g!==void 0?g:this.state.ouiaStateId,m))),c&&ce.createElement("label",{className:Nn(gu.checkLabel,o&&gu.modifiers.disabled),htmlFor:v.id},c,a&&ce.createElement("span",{className:Nn(gu.checkLabelRequired),"aria-hidden":"true"},L6e)),h&&ce.createElement("span",{className:Nn(gu.checkDescription)},h),f&&ce.createElement("span",{className:Nn(gu.checkBody)},f))}}kg.displayName="Checkbox",kg.defaultProps={className:"",isValid:!0,isDisabled:!1,isRequired:!1,isChecked:!1,onChange:HH,ouiaSafe:!0,component:"div"};const M3e=n_({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}),P3e=n=>{var{className:e="",icon:t,onClick:i,"aria-label":r,isFavorited:s=null,isDisabled:o,actionId:a,innerRef:l}=n,c=Ln(n,["className","icon","onClick","aria-label","isFavorited","isDisabled","actionId","innerRef"]);return ce.createElement(rh.Consumer,null,({onActionClick:u})=>ce.createElement(VH.Consumer,null,({itemId:d,isDisabled:h})=>{const f=g=>{i&&i(g),u&&u(g,d,a)};return ce.createElement("button",Object.assign({className:Nn(nn.menuItemAction,s!==null&&nn.modifiers.favorite,s&&nn.modifiers.favorited,e),"aria-label":r,onClick:f},(o===!0||h===!0)&&{disabled:!0},{ref:l,tabIndex:-1},c),ce.createElement("span",{className:Nn(nn.menuItemActionIcon)},t==="favorites"||s!==null?ce.createElement(M3e,{"aria-hidden":!0}):t))}))},jH=ce.forwardRef((n,e)=>ce.createElement(P3e,Object.assign({},n,{innerRef:e})));jH.displayName="MenuItemAction";const zH=ce.createContext({direction:"right"}),R3e=n=>{var{children:e,className:t,itemId:i=null,to:r,hasCheck:s=!1,isActive:o=null,isFavorited:a=null,isLoadButton:l=!1,isLoading:c=!1,flyoutMenu:u,direction:d,description:h=null,onClick:f=()=>{},component:g="button",isDisabled:m=!1,isExternalLink:p=!1,isSelected:v=null,isFocused:_,isDanger:b=!1,icon:y,actions:w,onShowFlyout:k,drilldownMenu:x,isOnPath:D,innerRef:E}=n,M=Ln(n,["children","className","itemId","to","hasCheck","isActive","isFavorited","isLoadButton","isLoading","flyoutMenu","direction","description","onClick","component","isDisabled","isExternalLink","isSelected","isFocused","isDanger","icon","actions","onShowFlyout","drilldownMenu","isOnPath","innerRef"]);const{menuId:N,parentMenu:I,onSelect:O,onActionClick:B,activeItemId:W,selected:J,drilldownItemPath:re,onDrillIn:se,onDrillOut:ie,flyoutRef:Q,setFlyoutRef:oe,disableHover:Z,role:X}=ce.useContext(rh);let ue=r?"a":g;s&&!r&&(ue="label");const[De,te]=ce.useState(null),xe=ce.useContext(zH),[ge,Ce]=ce.useState(xe.direction),Se=ce.useRef(),pe=Se===Q,ee=u!==void 0,Xe=P=>{!pe&&P?oe(Se):pe&&!P&&oe(null),k&&P&&k()};_T(()=>{if(ee&&Se.current&&xg){const P=Se.current.lastElementChild;if(P&&P.classList.contains(nn.menu)){const F=Se.current.getClientRects()[0],z=P.getClientRects()[0];if(F&&z){const U=F.x-z.width,fe=window.innerWidth-F.x-F.width-z.width;let Le=ge;fe<0&&Le!=="left"?(Ce("left"),Le="left"):U<0&&Le!=="right"&&(Ce("right"),Le="right");let Ie=0;U<0&&fe<0&&(Ie=Le==="right"?-fe:-U),Le==="left"?(P.classList.add(nn.modifiers.left),P.style.setProperty(k3e.name,`-${Ie}px`)):P.style.setProperty(D3e.name,`-${Ie}px`);const Pe=window.innerHeight-F.y-z.height;window.innerHeight-z.height<0&&Pe<0||Pe<0&&P.style.setProperty(L3e.name,`${Pe}px`)}}}},[pe,u]),ce.useEffect(()=>{Ce(xe.direction)},[xe]),ce.useEffect(()=>{if(De)if(pe){const P=De.nextElementSibling;Array.from(P.getElementsByTagName("UL")[0].children).filter(z=>!(z.classList.contains("pf-m-disabled")||z.classList.contains("pf-c-divider")))[0].firstChild.focus()}else De.focus()},[pe,De]);const Je=P=>{const F=P.key,z=P.target,U=P.type;(F===" "||F==="Enter"||F==="ArrowRight"||U==="click")&&(P.stopPropagation(),P.preventDefault(),pe||(Xe(!0),te(z))),(F==="Escape"||F==="ArrowLeft")&&pe&&(P.stopPropagation(),Xe(!1))},Fe=(P,F)=>{F&&F(P,i),f&&f(P)},H=D&&D||re&&re.includes(i)||!1;let ae;d&&(d==="down"?ae=P=>se&&se(P,N,typeof x=="function"?x().props.id:x.props.id,i):ae=P=>ie&&ie(P,I,i));let be={};ue==="a"?be={href:r,"aria-disabled":m?!0:null,disabled:null}:ue==="button"&&(be={type:"button"}),D?be["aria-expanded"]=!0:ee&&(be["aria-haspopup"]="menu",be["aria-expanded"]=pe);const $e=()=>o!==null?o?"page":null:i!==null&&W!==null?i===W:null,G=()=>v!==null?v:J!==null&&i!==null?Array.isArray(J)&&J.includes(i)||i===J:!1,$=()=>{Z||(ee?Xe(!0):oe(null))},q=X==="listbox";return ce.createElement("li",Object.assign({className:Nn(nn.menuListItem,m&&nn.modifiers.disabled,H&&nn.modifiers.currentPath,l&&nn.modifiers.load,c&&nn.modifiers.loading,_&&nn.modifiers.focus,b&&nn.modifiers.danger,t),onMouseOver:$},u&&{onKeyDown:Je},{ref:Se,role:s?"menuitem":"none"},M),ce.createElement(sT,null,P=>ce.createElement(ue,Object.assign({tabIndex:-1,className:Nn(nn.menuItem,G()&&!s&&nn.modifiers.selected,t),"aria-current":$e()},!s&&{disabled:m},!s&&!u&&{role:q?"option":"menuitem"},!s&&!u&&q&&{"aria-selected":G()},{ref:E},!s&&{onClick:F=>{Fe(F,O),ae&&ae(F),u&&Je(F)}},s&&{htmlFor:P},be),ce.createElement("span",{className:Nn(nn.menuItemMain)},d==="up"&&ce.createElement("span",{className:Nn(nn.menuItemToggleIcon)},ce.createElement(N3e,{"aria-hidden":!0})),y&&ce.createElement("span",{className:Nn(nn.menuItemIcon)},y),s&&ce.createElement("span",{className:Nn("pf-c-menu__item-check")},ce.createElement(kg,{id:P,component:"span",isChecked:v||!1,onChange:F=>Fe(F,O),isDisabled:m})),ce.createElement("span",{className:Nn(nn.menuItemText)},e),p&&ce.createElement("span",{className:Nn(nn.menuItemExternalIcon)},ce.createElement(I3e,{"aria-hidden":!0})),(u||d==="down")&&ce.createElement("span",{className:Nn(nn.menuItemToggleIcon)},ce.createElement(A3e,{"aria-hidden":!0})),G()&&ce.createElement("span",{className:Nn(nn.menuItemSelectIcon)},ce.createElement(O3e,{"aria-hidden":!0}))),h&&d!=="up"&&ce.createElement("span",{className:Nn(nn.menuItemDescription)},ce.createElement("span",null,h)))),pe&&ce.createElement(rh.Provider,{value:{disableHover:Z}},ce.createElement(zH.Provider,{value:{direction:ge}},u)),typeof x=="function"?x():x,ce.createElement(VH.Provider,{value:{itemId:i,isDisabled:m}},w,a!==null&&ce.createElement(jH,{icon:"favorites",isFavorited:a,"aria-label":a?"starred":"not starred",onClick:P=>B(P,i),tabIndex:-1,actionId:"fav"})))},UH=ce.forwardRef((n,e)=>ce.createElement(R3e,Object.assign({},n,{innerRef:e})));UH.displayName="MenuItem";const qH=n=>{var{children:e=null,className:t,isAriaMultiselectable:i=!1}=n,r=Ln(n,["children","className","isAriaMultiselectable"]);const{role:s}=ce.useContext(rh);return ce.createElement("ul",Object.assign({role:s},s==="listbox"&&{"aria-multiselectable":i},{className:Nn(nn.menuList,t)},r),e)};qH.displayName="MenuList";const F3e=n=>{var{children:e,className:t,onSelect:i,isOpen:r,selected:s,toggle:o,onOpenChange:a,isPlain:l,minWidth:c,innerRef:u,zIndex:d=9999,role:h="listbox"}=n,f=Ln(n,["children","className","onSelect","isOpen","selected","toggle","onOpenChange","isPlain","minWidth","innerRef","zIndex","role"]);const g=T.useRef(),m=T.useRef(),p=T.useRef(),v=u||g;T.useEffect(()=>{const b=w=>{var k,x,D;(r&&a&&(!((k=v.current)===null||k===void 0)&&k.contains(w.target))||!((x=m.current)===null||x===void 0)&&x.contains(w.target))&&(w.key==="Escape"||w.key==="Tab")&&(a(!1),(D=m.current)===null||D===void 0||D.focus())},y=w=>{var k,x,D;r&&(!((k=m.current)===null||k===void 0)&&k.contains(w.target))&&w.detail===0&&setTimeout(()=>{var E;const M=(E=v==null?void 0:v.current)===null||E===void 0?void 0:E.querySelector("li button:not(:disabled),li input:not(:disabled)");M&&M.focus()},0),r&&a&&!(!((x=m==null?void 0:m.current)===null||x===void 0)&&x.contains(w.target))&&r&&!(!((D=v.current)===null||D===void 0)&&D.contains(w.target))&&a(!1)};return window.addEventListener("keydown",b),window.addEventListener("click",y),()=>{window.removeEventListener("keydown",b),window.removeEventListener("click",y)}},[r,v,a]);const _=T.createElement(rw,Object.assign({role:h,className:Nn(t),ref:v,onSelect:(b,y)=>i(b,y),isPlain:l,selected:s},c&&{style:{"--pf-c-menu--MinWidth":c}},aT(i_.displayName,f.ouiaId!==void 0?f.ouiaId:lT(i_.displayName),f.ouiaSafe!==void 0?f.ouiaSafe:!0),f),T.createElement($H,null,e));return T.createElement("div",{ref:p},T.createElement(WH,{trigger:o(m),removeFindDomNode:!0,popper:_,appendTo:p.current||void 0,isVisible:r,zIndex:d}))},i_=T.forwardRef((n,e)=>T.createElement(F3e,Object.assign({innerRef:e},n)));i_.displayName="Select";const yT=n=>{var{children:e,className:t,isAriaMultiselectable:i=!1}=n,r=Ln(n,["children","className","isAriaMultiselectable"]);return T.createElement(qH,Object.assign({isAriaMultiselectable:i,className:Nn(t)},r),e)};yT.displayName="SelectList";const CT=n=>{var{children:e,className:t}=n,i=Ln(n,["children","className"]);return T.createElement(UH,Object.assign({className:Nn(t)},i),e)};CT.displayName="SelectOption";const eut="",tut="";function oh(n){const{t:e}=Us(),{id:t,icon:i,value:r,onSelect:s,options:o,placeholder:a}=n,[l,c]=T.useState(!1),u=T.useMemo(()=>o.find(_=>r===_.value),[o,r]),d=_=>L.jsxs(R.MenuToggle,{id:t,ref:_,onClick:()=>c(b=>!b),isExpanded:l,onKeyDown:b=>{switch(b.key){default:c(!0);break}},children:[i&&L.jsx("span",{style:{paddingLeft:4,paddingRight:12},children:i}),u?u.label:L.jsx("span",{className:"page-select-placeholder",children:a})]}),h=T.useCallback((_,b)=>{const y=o.find(w=>w.key!==void 0?w.key===b:w.label===b);y&&(s(y.value),c(!1))},[s,o]),[f,g]=T.useState(""),m=T.useRef(null);T.useEffect(()=>{g(""),l&&m.current&&m.current.focus()},[l]),T.useEffect(()=>{n.isRequired&&!u&&o.length>0&&s(o[0].value)},[s,o,n.isRequired,u]);const p=T.useMemo(()=>o.filter(_=>f===""?!0:_.label.toLowerCase().includes(f.toLowerCase())),[o,f]),v=T.useMemo(()=>p.length>10||f,[f,p.length]);return L.jsx("div",{className:"page-single-select",children:L.jsxs(i_,{selected:u==null?void 0:u.label,onSelect:h,isOpen:l,onOpenChange:c,toggle:d,style:{zIndex:l?9999:void 0},children:[v&&L.jsx("div",{className:"page-select-header",children:L.jsx(R.SearchInput,{id:t?`${t}-search`:void 0,ref:m,value:f,onChange:(_,b)=>g(b),onClear:_=>{_.stopPropagation(),g("")}})}),p.length===0?L.jsx("div",{style:{margin:16},children:e("No results found")}):L.jsx(yT,{className:"page-select-list",children:p.map(_=>L.jsx(CT,{itemId:_.key!==void 0?_.key:_.label,description:_.description,children:_.label},_.key!==void 0?_.key:_.label))}),n.footer&&L.jsx("div",{className:"page-select-footer",children:n.footer})]})})}function B3e(n){const{filterValues:e,setFilterValues:t,placeholder:i,isRequired:r,defaultValue:s}=n,o=e&&e.length>0?e[0]:void 0,a=n.options.find(f=>f.value===o);r&&!a&&t(()=>[s??n.options[0].value]);function l(f){n.options.find(m=>m.value===f)&&t(()=>[f])}const[c,u]=T.useState(()=>{if(e&&e.length>1)return e[1]}),[d,h]=T.useState(()=>{if(e&&e.length>2)return e[2]});return T.useEffect(()=>{if(a&&a.isCustom){const f=[a.value];c&&(f.push(c),d&&f.push(d)),t(()=>f)}},[a,c,d,t]),L.jsxs(R.ToolbarItem,{children:[L.jsx(oh,{value:(a==null?void 0:a.value)??"",onSelect:l,options:n.options,placeholder:i}),a&&a.isCustom&&L.jsx(W3e,{to:d,setTo:h,from:c,setFrom:u})]})}function W3e(n){const{to:e,setTo:t,from:i,setFrom:r}=n,{t:s}=Us(),o=(u,d)=>{r(d)},a=(u,d)=>{t(d)},l=i?new Date(i):void 0,c=u=>l?R.isValidDate(l)&&u>=l?"":s('The "to" date must be after the "from" date'):"";return L.jsxs(L.Fragment,{children:[L.jsx(R.DatePicker,{value:i,onChange:o,"aria-label":"Start date",placeholder:"YYYY-MM-DD"}),L.jsx("div",{style:{alignSelf:"baseline",padding:6},children:s("to")}),L.jsx(R.DatePicker,{value:e,onChange:a,isDisabled:!l||!R.isValidDate(l),rangeStart:l,validators:[c],"aria-label":"End date",placeholder:s("now"),invalidFormatText:s("Invalid date format")}),e!==void 0&&L.jsx(R.Button,{variant:"control",style:{alignSelf:"flex-start"},onClick:()=>t(void 0),children:L.jsx(yt.TimesCircleIcon,{})})]})}const nut="";function V3e(n){const{t:e}=Us(),{id:t,icon:i,placeholder:r,values:s,onSelect:o,options:a,variant:l,disableClearSelection:c}=n,[u,d]=T.useState(!1),h=T.useMemo(()=>a.filter(w=>s==null?!1:s.includes(w.value)),[a,s]),f=w=>L.jsxs(R.MenuToggle,{id:t,ref:w,onClick:()=>d(k=>!k),isExpanded:u,onKeyDown:k=>{switch(k.key){default:d(!0);break}},children:[i&&L.jsx("span",{style:{paddingLeft:4,paddingRight:12},children:i}),h.length>0?L.jsx(L.Fragment,{children:l==="count"?L.jsx(R.Chip,{isReadOnly:c,onClick:()=>o(()=>[]),style:{marginTop:-2,marginBottom:-2},children:h.length}):L.jsxs(L.Fragment,{children:[L.jsx(R.ChipGroup,{children:h.map(k=>L.jsx(R.Chip,{isReadOnly:!0,style:{marginTop:-2,marginBottom:-2},children:k.label},k.label))}),!c&&L.jsx(yt.TimesIcon,{role:"button","aria-hidden":!0,onClick:()=>o(()=>[]),style:{verticalAlign:"middle",marginLeft:8},size:"sm"})]})}):L.jsx("span",{className:"page-select-placeholder",children:r})]}),g=T.useMemo(()=>h.map(w=>w.label),[h]),m=T.useCallback((w,k)=>{o(x=>{const D=a.find(E=>E.key!==void 0?E.key===k:E.label===k);return D&&((x==null?void 0:x.find(E=>E===D.value))!==void 0?x=x.filter(E=>E!==D.value):(x=x?[...x]:[],x.push(D.value))),x})},[o,a]),[p,v]=T.useState(""),_=T.useRef(null);T.useEffect(()=>{v(""),u&&_.current&&_.current.focus()},[u]);const b=T.useMemo(()=>a.filter(w=>p===""?!0:w.label.toLowerCase().includes(p.toLowerCase())),[a,p]),y=T.useMemo(()=>b.length>10||p,[p,b.length]);return L.jsx("div",{className:"page-multi-select",children:L.jsxs(i_,{selected:g,onSelect:m,isOpen:u,onOpenChange:d,toggle:f,style:{zIndex:u?9999:void 0},children:[y&&L.jsx("div",{className:"page-select-header",children:L.jsx(R.SearchInput,{id:t?`${t}-search`:void 0,ref:_,value:p,onChange:(w,k)=>v(k),onClear:w=>{w.stopPropagation(),v("")}})}),b.length===0?L.jsx("div",{style:{margin:16},children:e("No results found")}):L.jsx(yT,{className:"page-select-list",children:b.map(w=>L.jsx(CT,{itemId:w.key!==void 0?w.key:w.label,description:w.description?L.jsx("div",{style:{maxWidth:300},children:w.description}):void 0,hasCheck:!0,isSelected:h.includes(w),children:w.label},w.key!==void 0?w.key:w.label))}),n.footer&&L.jsx("div",{className:"page-select-footer",children:n.footer})]})})}function $3e(n){return L.jsx(V3e,{placeholder:n.placeholder,values:n.filterValues,onSelect:n.setFilterValues,options:n.options,variant:"count",disableClearSelection:!0})}function H3e(n){var i;const e=((i=n.filterValues)==null?void 0:i.length)===1?n.filterValues[0]:"",t=r=>n.setFilterValues(()=>[r]);return L.jsx(oh,{placeholder:n.placeholder,value:e,onSelect:t,options:n.options,isRequired:n.isRequired})}function j3e(n){const{t:e}=Us(),[t,i]=T.useState("");let r=n.placeholder;if(!r)switch(n.comparison){case"contains":r=e("contains");break;case"startsWith":r=e("starts with");break;case"endsWith":r=e("ends with");break;case"equals":r=e("equals");break}return L.jsxs(R.InputGroup,{children:[L.jsxs(R.TextInputGroup,{style:{minWidth:220},children:[L.jsx(R.TextInputGroupMain,{id:n.id,value:t,onChange:(s,o)=>{i(typeof s=="string"?s:o)},onKeyUp:s=>{t&&s.key==="Enter"&&(n.addFilter(t),i(""))},placeholder:r}),t!==""&&L.jsx(R.TextInputGroupUtilities,{children:L.jsx(R.Button,{variant:"plain","aria-label":"clear filter",onClick:()=>i(""),style:{opacity:t?void 0:0},tabIndex:-1,children:L.jsx(yt.TimesIcon,{})})})]}),L.jsx(R.Button,{variant:t?"primary":"control","aria-label":"apply filter",onClick:()=>{n.addFilter(t),i("")},tabIndex:-1,isDisabled:!t,children:L.jsx(yt.ArrowRightIcon,{})})]})}var KH=(n=>(n[n.Text=0]="Text",n[n.SingleSelect=1]="SingleSelect",n[n.MultiSelect=2]="MultiSelect",n[n.DateRange=3]="DateRange",n))(KH||{});function GH(n){var l;const{toolbarFilters:e,filterState:t,setFilterState:i}=n,[r,s]=T.useState(()=>e&&(e==null?void 0:e.length)>0?e[0].key:""),o=e==null?void 0:e.find(c=>c.key===r);if(!o)return L.jsx(L.Fragment,{});if(!e)return L.jsx(L.Fragment,{});if(e.length===0)return L.jsx(L.Fragment,{});let a=e.length===1;return e.length>=1&&(e[0].type===2&&e[0].isPinned||e[0].type===1&&e[0].isPinned&&(t[e[0].key]==null||((l=t[e[0].key])==null?void 0:l.length)===0))&&(a=!1),L.jsx(L.Fragment,{children:e.length===1?L.jsxs(R.ToolbarItem,{children:[a&&L.jsx("div",{style:{marginTop:6,marginRight:6,whiteSpace:"nowrap"},children:e[0].label}),L.jsx(ZH,{id:"filter-input",filter:o,filterState:t,setFilterState:i})]}):L.jsxs(R.ToolbarItem,{children:[L.jsx(oh,{id:"filter",value:r,onSelect:s,icon:L.jsx(yt.FilterIcon,{}),options:e.map(c=>({label:c.label,value:c.key})),placeholder:""}),L.jsx(ZH,{id:"filter-input",filter:o,filterState:t,setFilterState:i})]})})}function YH(n){const{toolbarFilters:e,setFilterState:t,filterState:i}=n,[r]=vi(),s=!ms("md");if(!e)return L.jsx(L.Fragment,{});if(e.length===0)return L.jsx(L.Fragment,{});const o=e.filter(l=>!l.isPinned),a=e.filter(l=>!!l.isPinned);return L.jsx(R.ToolbarToggleGroup,{toggleIcon:L.jsx(yt.FilterIcon,{}),breakpoint:"md",children:L.jsxs(R.ToolbarGroup,{variant:"filter-group",style:{flexWrap:"wrap",gap:16},children:[s&&L.jsx(R.ToolbarItem,{variant:"label",children:r.filter}),L.jsx(GH,{toolbarFilters:o,setFilterState:t,filterState:i}),a==null?void 0:a.map(l=>L.jsx(GH,{toolbarFilters:[l],setFilterState:t,filterState:i},l.key)),e==null?void 0:e.map(l=>{const c=(i==null?void 0:i[l.key])||[];return l.isPinned&&l.type===1?L.jsx(L.Fragment,{}):l.isPinned&&l.type===3?L.jsx(L.Fragment,{}):L.jsx(R.ToolbarFilter,{categoryName:l.label,chips:c.map(u=>{var d;switch(l.type){case 1:case 2:return((d=l.options.find(h=>h.value===u))==null?void 0:d.label)??u;default:return u}}),deleteChip:(u,d)=>{t==null||t(h=>{var m;const f={...h};switch(d=typeof d=="string"?d:d.key,l.type){case 1:case 2:d=((m=l.options.find(p=>p.value===d))==null?void 0:m.label)??d;break}let g=h[l.key];return g&&(g=g.filter(p=>p!==d),g.length===0?delete f[l.key]:f[l.key]=g),f})},deleteChipGroup:()=>{t==null||t(u=>{const d={...u};return delete d[l.key],d})},showToolbarItem:!1,children:L.jsx(L.Fragment,{})},l.label)})]})})}function ZH(n){const{filter:e,filterState:t,setFilterState:i}=n,r=t==null?void 0:t[e.key],s=T.useCallback(a=>{i(l=>{const c={...l},u=c[e.key]??[];return c[e.key]=a(u),c})},[e.key,i]),o=T.useCallback(a=>{i(l=>{const c={...l},u=c[e.key]??[];return c[e.key]=[...u,a],c})},[e.key,i]);switch(e.type){case 0:return L.jsx(j3e,{id:n.id??e.key,addFilter:o,placeholder:e.placeholder,comparison:e.comparison});case 1:return L.jsx(H3e,{id:n.id??e.key,placeholder:e.placeholder,filterValues:r,setFilterValues:s,options:e.options,isRequired:e.isRequired});case 2:return L.jsx($3e,{id:n.id??e.key,placeholder:e.placeholder,filterValues:r,setFilterValues:s,options:e.options});case 3:return L.jsx(B3e,{id:n.id??e.key,label:e.label,placeholder:e.placeholder??"",filterValues:r,setFilterValues:s,options:e.options,isRequired:e.isRequired,defaultValue:e.defaultValue})}}function z3e(n){const{sort:e,setSort:t,sortDirection:i,setSortDirection:r,sortOptions:s}=n,o=s==null?void 0:s.find(u=>u.value===e),a=o?o.type:void 0,[l]=vi(),c=T.useMemo(()=>{switch(a){case"text":switch(i){case"asc":return L.jsx(yt.SortAlphaUpIcon,{});case"desc":return L.jsx(yt.SortAlphaDownAltIcon,{})}break;case"number":switch(i){case"asc":return L.jsx(yt.SortNumericUpIcon,{});case"desc":return L.jsx(yt.SortNumericDownAltIcon,{})}break;default:switch(i){case"asc":return L.jsx(yt.SortAmountUpIcon,{});case"desc":return L.jsx(yt.SortAmountDownIcon,{})}break}return L.jsx(L.Fragment,{})},[i,a]);return!s||s.length<=0?L.jsx(L.Fragment,{}):L.jsx(R.ToolbarToggleGroup,{breakpoint:"md",toggleIcon:void 0,children:L.jsxs(R.ToolbarGroup,{variant:"filter-group",children:[L.jsx(R.ToolbarItem,{variant:"label",children:l.sort}),L.jsx(R.ToolbarItem,{children:L.jsxs(R.Split,{children:[L.jsx(U3e,{sortOptions:s,sort:e,setSort:t,setSortDirection:r}),L.jsx(R.Button,{variant:"control",icon:c,onClick:()=>{i==="asc"?r==null||r("desc"):r==null||r("asc")}})]})})]})})}function U3e(n){const{sortOptions:e,sort:t,setSort:i,setSortDirection:r}=n,s=T.useCallback(o=>{if(o){const a=e.find(l=>l.value===o);a&&t!==o&&a.defaultDirection&&(r==null||r(a.defaultDirection)),i==null||i(o)}},[e,i,r,t]);return L.jsx(oh,{placeholder:"",value:t,onSelect:s,options:e.map(o=>({label:o.label,value:o.value}))})}function q3e(n){return T.useMemo(()=>{const t=[];for(const i of n)if(i.sort){if(i.defaultSort){t.push({label:i.header,value:i.sort,type:"text",defaultDirection:i.defaultSortDirection});continue}switch(i.type){case"count":t.push({label:i.header,value:i.sort,type:"number",defaultDirection:i.defaultSortDirection});break;case"text":t.push({label:i.header,value:i.sort,type:"text",defaultDirection:i.defaultSortDirection});break;default:t.push({label:i.header,value:i.sort,defaultDirection:i.defaultSortDirection});break}}return t},[n])}function K3e(n){const{viewType:e,setViewType:t,openColumnModal:i}=n,[r]=vi();let s=0;return n.disableTableView||s++,n.disableCardView||s++,n.disableListView||s++,L.jsxs(R.ToolbarGroup,{variant:"button-group",style:{justifyContent:"end",marginRight:0},children:[i&&L.jsx(R.ToolbarItem,{children:L.jsx(R.Tooltip,{content:r.manageColumns,children:L.jsx(R.Button,{variant:"plain",icon:L.jsx(yt.ColumnsIcon,{}),onClick:i})})}),s>1&&L.jsx(R.ToolbarItem,{children:L.jsx(R.ToggleGroup,{"aria-label":"table view toggle",children:[!n.disableTableView&&Gn.Table,!n.disableListView&&Gn.List,!n.disableCardView&&Gn.Cards].filter(o=>o).map(o=>{switch(o){case Gn.Cards:return L.jsx(R.Tooltip,{content:r.cardView,position:"top-end",enableFlip:!1,children:L.jsx(R.ToggleGroupItem,{icon:L.jsx(yt.ThLargeIcon,{}),isSelected:e===Gn.Cards,onClick:()=>t==null?void 0:t(Gn.Cards),"aria-label":"card view"})},o);case Gn.List:return L.jsx(R.Tooltip,{content:r.listView,position:"top-end",enableFlip:!1,children:L.jsx(R.ToggleGroupItem,{icon:L.jsx(yt.ListIcon,{}),isSelected:e===Gn.List,onClick:()=>t==null?void 0:t(Gn.List),"aria-label":"list view"})},o);case Gn.Table:return L.jsx(R.Tooltip,{content:r.tableView,position:"top-end",enableFlip:!1,children:L.jsx(R.ToggleGroupItem,{icon:L.jsx(yt.TableIcon,{}),isSelected:e===Gn.Table,onClick:()=>t==null?void 0:t(Gn.Table),"aria-label":"table view"})},o)}})})})]})}const G3e=gn.div`
308
308
  display: flex;
309
309
  flex-grow: 1;
310
310
  justify-content: end;
@@ -314,7 +314,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
314
314
  row-gap: 16px;
315
315
  justify-content: end;
316
316
  }
317
- `;function QH(n){const{itemCount:e,page:t,perPage:i,setPage:r,setPerPage:s,toolbarFilters:o,selectedItems:a,filterState:l,setFilterState:c,openColumnModal:u,bottomBorder:d,sort:h,setSort:f,sortDirection:g,setSortDirection:m,sortOptions:p,clearAllFilters:v}=n,_=T.useCallback(()=>{v?v():c&&c({})},[c,v]),b=ms("md"),{viewType:y,setViewType:w}=n;let{toolbarActions:k}=n;k=k??[];const x=T.useCallback((O,B)=>r?r(B):null,[r]),D=T.useCallback((O,B)=>s?s(B):null,[s]),E=o!==void 0,M=k!==void 0&&k.length>0,N=n.showSelect===!0||a!==void 0&&k&&k.find(O=>"selection"in O&&O.selection===ei.Multiple);return N||E||M?e===void 0?L.jsx(R.Toolbar,{className:"border-bottom dark-2",style:{paddingBottom:b?void 0:8,paddingTop:b?void 0:8,zIndex:400},children:L.jsx(XH,{children:L.jsx(R.ToolbarItem,{style:{width:"100%"},children:L.jsx(R.Skeleton,{height:"36px"})})})}):L.jsx(R.Toolbar,{clearAllFilters:_,className:"dark-2 page-table-toolbar",style:{paddingBottom:b?void 0:8,paddingTop:b?void 0:8,borderBottom:d?"thin solid var(--pf-global--BorderColor--100)":void 0},inset:{default:"insetMd",sm:"insetMd",md:"insetMd",lg:"insetMd",xl:"insetLg","2xl":"insetLg"},children:L.jsxs(XH,{children:[N&&L.jsx(R.ToolbarGroup,{children:L.jsx(R.ToolbarItem,{variant:"bulk-select",children:L.jsx(bH,{...n})})}),l&&c&&L.jsx(YH,{toolbarFilters:o,filterState:l,setFilterState:c}),L.jsx(R.ToolbarGroup,{variant:"button-group",children:L.jsx(Rf,{actions:k,selectedItems:a,wrapper:R.ToolbarItem})}),L.jsxs(G3e,{children:[L.jsx(z3e,{sort:h,setSort:f,sortDirection:g,setSortDirection:m,sortOptions:p}),y&&w&&L.jsx(K3e,{disableTableView:n.disableTableView,disableListView:n.disableListView,disableCardView:n.disableCardView,viewType:y,setViewType:w,openColumnModal:u}),!n.disablePagination&&L.jsx(R.ToolbarItem,{visibility:{default:"hidden","2xl":"visible"},style:{marginLeft:24},children:L.jsx(R.Pagination,{variant:R.PaginationVariant.top,isCompact:!0,itemCount:e,perPage:i,page:t,onSetPage:x,onPerPageSelect:D,style:{marginTop:-8,marginBottom:-8}})})]})]})}):L.jsx(T.Fragment,{})}function Y3e(n){const{t:e}=Us(),t=e("Something went wrong"),i=e("Please refresh the page by using the button below."),r=e("Refresh"),{titleProp:s,message:o}=n;return L.jsxs(R.EmptyState,{variant:R.EmptyStateVariant.small,style:{paddingTop:48},children:[L.jsx(R.EmptyStateIcon,{icon:yt.ExclamationCircleIcon,color:"var(--pf-global--danger-color--100)"}),L.jsx(R.Title,{headingLevel:"h2",size:"lg",children:s||t}),L.jsx(R.EmptyStateBody,{children:o}),L.jsx(R.EmptyStateBody,{children:i}),L.jsx(R.Button,{variant:"primary",onClick:()=>window.location.reload(),children:r})]})}function Z3e(n){const{title:e,description:t,icon:i,button:r,footNote:s,image:o,variant:a,style:l}=n;return L.jsxs(R.EmptyState,{variant:a||R.EmptyStateVariant.full,style:l,children:[i&&L.jsx(R.EmptyStateIcon,{icon:i}),L.jsx(R.Title,{headingLevel:"h4",size:"lg",children:e}),L.jsx(R.EmptyStateBody,{children:t}),r&&L.jsx(R.EmptyStatePrimary,{children:r}),o&&L.jsxs(L.Fragment,{children:[" ",L.jsx("br",{})," ",L.jsx(R.EmptyStateBody,{children:o})]}),s&&L.jsx(R.EmptyStateBody,{children:s})]})}function X3e(n){const{button:e,description:t,title:i,variant:r}=n;return L.jsx(Z3e,{icon:e?yt.PlusCircleIcon:yt.CubesIcon,title:i,description:t,button:e,variant:r,style:{paddingTop:"48px"}})}function wT(n,e,t){var i,r,s,o,a;e==null&&(e=100);function l(){var u=Date.now()-o;u<e&&u>=0?i=setTimeout(l,e-u):(i=null,t||(a=n.apply(s,r),s=r=null))}var c=function(){s=this,r=arguments,o=Date.now();var u=t&&!i;return i||(i=setTimeout(l,e)),u&&(a=n.apply(s,r),s=r=null),a};return c.clear=function(){i&&(clearTimeout(i),i=null)},c.flush=function(){i&&(a=n.apply(s,r),s=r=null,clearTimeout(i),i=null)},c}wT.debounce=wT;var Q3e=wT;const J3e=St(Q3e);function e7e(n,e,t){const{selectedItems:i,selectItem:r,unselectItem:s,isSelected:o,selectItems:a,unselectAll:l,allSelected:c}=ST(n,e),{sorted:u,sort:d,setSort:h}=xT(n),{filtered:f,setFilterFn:g}=LT(u,e),{searched:m,search:p,setSearch:v,setSearchFn:_}=t7e(f,e,t==null?void 0:t.search),{paged:b,page:y,setPage:w,perPage:k,setPerPage:x}=r_(m),D=T.useCallback(()=>a(b),[b,a]),E=T.useCallback(()=>a(m),[m,a]);return T.useMemo(()=>({allSelected:c,filtered:f,isSelected:o,page:y,paged:b,perPage:k,search:p,searched:m,selectAll:E,selectItem:r,selectPage:D,selectedItems:i,setFilterFn:g,setPage:w,setPerPage:x,setSearch:v,setSearchFn:_,setSort:h,sort:d,sorted:u,unselectAll:l,unselectItem:s}),[c,f,o,y,b,k,p,m,E,r,D,i,g,w,x,v,_,h,d,u,l,s])}function ST(n,e,t){const[i,r]=T.useState(()=>t?t.reduce((g,m)=>(g[e(m)]=m,g),{}):{});T.useEffect(()=>{r(g=>{let m=!1;return n.forEach(p=>{const v=e(p);g[v]&&g[v]!==p&&(m=!0,g[v]=p)}),m?{...g}:g})},[n,e]);const s=T.useCallback(g=>{r(m=>{const p=e(g);return m[p]!==g&&(m={...m},m[p]=g),m})},[e]),o=T.useCallback(g=>{r(m=>{const p=e(g);return m[p]&&(m={...m},delete m[p]),m})},[e]),a=T.useCallback(g=>{const m=e(g);return i[m]!==void 0},[e,i]),l=T.useCallback(g=>{r(m=>{m={...m};for(const p of g){const v=e(p);m[v]=p}return m})},[e]),c=T.useCallback(()=>l(n),[n,l]),u=T.useCallback(g=>{for(const m of g)o(m)},[o]),d=T.useCallback(()=>{r(g=>Object.keys(g).length>0?{}:g)},[]),h=T.useMemo(()=>Object.values(i),[i]),f=T.useMemo(()=>h.length===n.length,[n.length,h.length]);return T.useMemo(()=>({selectedItems:h,selectItem:s,unselectItem:o,isSelected:a,selectItems:l,selectAll:c,unselectAll:d,allSelected:f,keyFn:e,unselectItems:u}),[f,a,e,c,s,l,h,d,o,u])}function JH(n,e){const[t,i]=T.useState({});T.useEffect(()=>{i(f=>{let g=!1;const m=n?n.reduce((_,b)=>{const y=e(b);return _[y]=b,f[y]&&f[y]!==b&&(g=!0,f[y]=b),_},{}):{},p={};for(const _ in f)m[_]||(p[_]=!0);const v=Object.keys(p);if(v.length){g=!0;for(const _ of v)delete f[_]}return g?{...f}:f})},[n,e]);const r=T.useCallback(f=>{i(g=>{const m=e(f);return g[m]!==f&&(g={...g},g[m]=f),g})},[e]),s=T.useCallback(f=>{i(g=>{const m=e(f);return g[m]&&(g={...g},delete g[m]),g})},[e]),o=T.useCallback(f=>{for(const g of f)s(g)},[s]),a=T.useCallback(f=>{const g=e(f);return t[g]!==void 0},[e,t]),l=T.useCallback(f=>{i(g=>{g={...g};for(const m of f){const p=e(m);g[p]=m}return g})},[e]),c=T.useCallback(()=>{l(n??[])},[n,l]),u=T.useCallback(()=>{i(f=>Object.keys(f).length>0?{}:f)},[]),d=T.useMemo(()=>Object.values(t),[t]),h=T.useMemo(()=>d.length===(n==null?void 0:n.length),[n,d.length]);return T.useMemo(()=>({selectedItems:d,selectItem:r,unselectItem:s,isSelected:a,selectItems:l,selectAll:c,unselectAll:u,allSelected:h,keyFn:e,unselectItems:o}),[h,a,e,c,r,l,d,u,s,o])}function xT(n){const[e,t]=T.useState(),{direction:i,sortFn:r}=e??{},s=T.useMemo(()=>n?r?i==="asc"?[...n.sort(r)]:[...n.sort(r).reverse()]:n:[],[i,n,r]);return T.useMemo(()=>({sorted:s,sort:e,setSort:t}),[e,s])}function LT(n,e){const t=T.useRef({map:{}}),[i,r]=T.useState(),s=T.useCallback(c=>r(()=>c),[]),[o,a]=T.useState([]);T.useEffect(()=>{t.current.map={}},[i]);const l=T.useCallback(c=>{const u=e(c);let d=t.current.map[u];return d?d.item!==c&&(d.item=c,d.passes=i?i(c):!0):(d={item:c,passes:i?i(c):!0},t.current.map[u]=d),d.passes},[i,e]);return T.useEffect(()=>{a(i?n.filter(l):n)},[n,i,l]),T.useMemo(function(){return{filtered:o,setFilterFn:s}},[o,s])}function t7e(n,e,t){const i=T.useRef({map:{}}),[r,s]=T.useState(),o=T.useCallback(f=>s(()=>f),[]),[a,l]=T.useState([]),[c,u]=T.useState(t??""),d=T.useCallback(J3e(f=>u(f),200),[]);T.useEffect(()=>{i.current.map={}},[c,r]);const h=T.useCallback(f=>{const g=e(f);let m=i.current.map[g];return m?m.item!==f&&(m.item=f,m.score=r?r(f,c):0):(m={item:f,score:r?r(f,c):0},i.current.map[g]=m),m},[e,r,c]);return T.useEffect(()=>{l(r&&c?n.map(h).filter(f=>f.score<.5).sort((f,g)=>f.score-g.score).map(f=>f.item):n)},[c,n,r,h]),T.useMemo(function(){return{searched:a,search:c,setSearch:d,setSearchFn:o}},[a,c,d,o])}function r_(n){const[e,t]=T.useState([]),[i,r]=T.useState(1),[s,o]=T.useState(10);return T.useEffect(()=>{t(a=>{const l=n.slice((i-1)*s,i*s);if(a.length!==l.length)return l;let c=0;for(const u of l)if(a[c++]!==u)return l;return a})},[i,s,n]),T.useEffect(()=>{i>Math.ceil(n.length/s)&&r(1)},[i,s,n.length]),T.useMemo(()=>({paged:e,page:i,setPage:r,perPage:s,setPerPage:o}),[i,e,s])}const iut="",kT={button:"pf-c-button",modifiers:{hidden:"pf-m-hidden",hiddenOnSm:"pf-m-hidden-on-sm",visibleOnSm:"pf-m-visible-on-sm",hiddenOnMd:"pf-m-hidden-on-md",visibleOnMd:"pf-m-visible-on-md",hiddenOnLg:"pf-m-hidden-on-lg",visibleOnLg:"pf-m-visible-on-lg",hiddenOnXl:"pf-m-hidden-on-xl",visibleOnXl:"pf-m-visible-on-xl",hiddenOn_2xl:"pf-m-hidden-on-2xl",visibleOn_2xl:"pf-m-visible-on-2xl",fixed:"pf-m-fixed",stickyHeader:"pf-m-sticky-header",nestedColumnHeader:"pf-m-nested-column-header",borderRow:"pf-m-border-row",striped:"pf-m-striped",expandable:"pf-m-expandable",stripedEven:"pf-m-striped-even",ghostRow:"pf-m-ghost-row",center:"pf-m-center",help:"pf-m-help",favorite:"pf-m-favorite",borderRight:"pf-m-border-right",borderLeft:"pf-m-border-left",truncate:"pf-m-truncate",wrap:"pf-m-wrap",nowrap:"pf-m-nowrap",fitContent:"pf-m-fit-content",breakWord:"pf-m-break-word",noBorderRows:"pf-m-no-border-rows",expanded:"pf-m-expanded",hoverable:"pf-m-hoverable",selected:"pf-m-selected",firstCellOffsetReset:"pf-m-first-cell-offset-reset",dragOver:"pf-m-drag-over",favorited:"pf-m-favorited",noPadding:"pf-m-no-padding",compact:"pf-m-compact",width_10:"pf-m-width-10",width_15:"pf-m-width-15",width_20:"pf-m-width-20",width_25:"pf-m-width-25",width_30:"pf-m-width-30",width_35:"pf-m-width-35",width_40:"pf-m-width-40",width_45:"pf-m-width-45",width_50:"pf-m-width-50",width_60:"pf-m-width-60",width_70:"pf-m-width-70",width_80:"pf-m-width-80",width_90:"pf-m-width-90",width_100:"pf-m-width-100"},table:"pf-c-table",tableAction:"pf-c-table__action",tableButton:"pf-c-table__button",tableButtonContent:"pf-c-table__button-content",tableCheck:"pf-c-table__check",tableColumnHelp:"pf-c-table__column-help",tableColumnHelpAction:"pf-c-table__column-help-action",tableCompoundExpansionToggle:"pf-c-table__compound-expansion-toggle",tableControlRow:"pf-c-table__control-row",tableDraggable:"pf-c-table__draggable",tableExpandableRow:"pf-c-table__expandable-row",tableExpandableRowContent:"pf-c-table__expandable-row-content",tableFavorite:"pf-c-table__favorite",tableIcon:"pf-c-table__icon",tableIconInline:"pf-c-table__icon-inline",tableInlineEditAction:"pf-c-table__inline-edit-action",tableSort:"pf-c-table__sort",tableSortIndicator:"pf-c-table__sort-indicator",tableSubhead:"pf-c-table__subhead",tableText:"pf-c-table__text",tableToggle:"pf-c-table__toggle",tableToggleIcon:"pf-c-table__toggle-icon",themeDark:"pf-theme-dark"};function n7e(n){const{t:e}=Us(),{columns:t,keyFn:i,items:r,setItems:s,isSelected:o,selectItem:a,unselectItem:l,allSelected:c,selectAll:u,unselectAll:d,hideColumnHeaders:h,isSelectableWithCheckbox:f}=n,[g,m]=T.useState(null),[p,v]=T.useState(null),[_,b]=T.useState(!1),y=T.useRef(null),w=B=>{if(y.current){const W=y.current.getBoundingClientRect();return B.clientX>W.x&&B.clientX<W.x+W.width&&B.clientY>W.y&&B.clientY<W.y+W.height}return!1},k=B=>{w(B)||x()},x=()=>{y.current&&Array.from(y.current.children).forEach(B=>{B.classList.remove(kT.modifiers.ghostRow),B.setAttribute("aria-pressed","false")}),v(null),m(null),b(!1)},D=B=>{B.preventDefault();const W=B.target.closest("tr");if(!W||!(y.current&&y.current.contains(W))||W.id===p)return null;{const J=W.id,re=Array.from(y.current.children).findIndex(se=>se.id===J);if(re!==g&&p){const se=E([...r],p,re);s(se)}}return null},E=(B,W,J)=>{const re=B.findIndex(ie=>i(ie)===W);if(re===J)return B;const se=B.splice(re,1);return B.splice(J,0,se[0]),B},M=B=>{w(B)||m(null)},N=B=>{const W=B.target;W.classList.remove(kT.modifiers.ghostRow),W.setAttribute("aria-pressed","false"),v(null),m(null),b(!1)},I=B=>{if(y.current){B.dataTransfer.effectAllowed="move";const W=B.currentTarget.id,J=Array.from(y.current.children).findIndex(re=>re.id===B.currentTarget.id);B.currentTarget.setAttribute("aria-pressed","true"),v(W),m(J)}},O=T.useCallback(B=>{const W=r.findIndex(re=>i(re)===i(B)),J=[...r];J[W]=B,s(J)},[r,s,i]);return L.jsxs(Wt.TableComposable,{"aria-label":e("Table with draggable rows"),className:_?kT.modifiers.dragOver:"",variant:"compact",children:[!h&&L.jsx(Wt.Thead,{children:L.jsxs(Wt.Tr,{children:[L.jsx(Wt.Th,{}),f&&L.jsx(Wt.Th,{select:{onSelect:(B,W)=>{W?u():d()},isSelected:c}}),t.map((B,W)=>L.jsx(Wt.Th,{children:B.header},W))]})}),L.jsx(Wt.Tbody,{ref:y,onDragOver:D,onDragLeave:M,children:r.map((B,W)=>{const J=i(B);return L.jsxs(Wt.Tr,{id:J.toString(),draggable:!0,onDrop:k,onDragEnd:N,onDragStart:I,children:[L.jsx(Wt.Td,{draggableRow:{id:`draggable-row-${J.toString()}`}}),f&&L.jsx(Wt.Td,{select:{rowIndex:W,variant:"checkbox",onSelect:(re,se)=>{se?a(B):l(B)},isSelected:o(B)}}),t.map(re=>L.jsx(Wt.Td,{children:re.cell(B,O)},re.header))]},J)})})]})}function i7e(n){const[e,t]=Oa(),[i]=T.useState(()=>n.keyFn),[r]=T.useState(()=>n.isSelected),[s]=T.useState(()=>n.setSelected),[o]=T.useState(()=>n.saveFn),[a]=T.useState(()=>n.loadFn),[l,c]=T.useState(()=>{try{const m=localStorage.getItem(n.id);if(typeof m=="string"){const p=JSON.parse(m);if(Array.isArray(p)&&p.every(v=>typeof v=="object"))if(a){const v=[...n.items];return a(v,p),v}else return p}return n.items}catch{return n.items}});T.useEffect(()=>{c(m=>{const p=[...m];for(const v of n.items){const _=i(v),b=m.find(y=>i(y)===_);b?Object.assign(b,v):p.push(v)}return p})},[i,a,n.items,o]);const u=T.useCallback(m=>{c(m),o?localStorage.setItem(n.id,JSON.stringify(o(m))):localStorage.setItem(n.id,JSON.stringify(m))},[n.id,o,c]),d=()=>t(L.jsx(r7e,{...n,keyFn:i,items:l,defaultSelectedItems:l.filter(m=>r==null?void 0:r(m)),onApplyChanges:u})),h=T.useMemo(()=>l.filter(m=>r?r(m):!0),[r,l]),f=T.useCallback(()=>s?m=>{s(m,!0),c(p=>[...p])}:()=>{alert("No setSelected callback provided")},[s]),g=T.useCallback(()=>s?m=>{s(m,!1),c(p=>[...p])}:()=>{alert("No setSelected callback provided")},[s]);return{openModal:d,items:h,isSelected:r||(()=>!1),selectItem:f,unselectItem:g}}function r7e(n){const{t:e}=Us(),{title:t,description:i,columns:r,onApplyChanges:s}=n,[o]=T.useState(()=>n.keyFn),[a,l]=Oa(),c=()=>l(void 0),[u,d]=T.useState(()=>n.items),{selectedItems:h,isSelected:f,selectItem:g,unselectItem:m,allSelected:p,selectAll:v,unselectAll:_}=ST(u,o,n.defaultSelectedItems),b=()=>{var y,w;for(const k of u)h.includes(k)?(w=n.setSelected)==null||w.call(n,k,!0):(y=n.setSelected)==null||y.call(n,k,!1);s(u,h),l(void 0)};return L.jsxs(R.Modal,{title:t,"aria-label":t,description:L.jsx("div",{style:{marginBottom:16},children:i}),variant:n.variant??R.ModalVariant.medium,isOpen:!0,onClose:c,actions:[L.jsx(R.Button,{variant:"primary",onClick:b,children:e`Apply`},"apply"),L.jsx(R.Button,{variant:"link",onClick:c,children:e`Cancel`},"cancel")],hasNoBodyWrapper:!0,children:[L.jsx(R.Divider,{}),L.jsx(R.ModalBoxBody,{style:{padding:0},children:L.jsx(n7e,{keyFn:o,items:u,setItems:d,columns:r,isSelected:f,selectItem:g,unselectItem:m,allSelected:p,selectAll:v,unselectAll:_,hideColumnHeaders:n.hideColumnHeaders,isSelectableWithCheckbox:n.isSelected!==void 0&&n.setSelected!==void 0})}),L.jsx(R.Divider,{})]})}function s7e(n,e,t,i,r){const{t:s}=Us(),o=T.useMemo(()=>{const d=[{header:s("Column Name"),cell:h=>h.header}];return t||d.push({header:s("Table View"),cell:(h,f)=>L.jsx(oh,{value:h.table??"",onSelect:g=>{switch(g){case"":f({...h,table:void 0});break;case fu.Description:case fu.Expanded:case fu.Hidden:f({...h,table:g});break}},placeholder:s("Column"),options:[{value:"",label:s("Column"),description:s("Show the column in the table.")},{value:fu.Description,label:s("Description"),description:s("Show the column when the item is expanded as a full width description.")},{value:fu.Expanded,label:s("Expanded"),description:s("Show the column when the item is expandedas a detail.")},{value:fu.Hidden,label:s("Hidden"),description:s("Hide the column.")}]})}),i||d.push({header:s("List View"),cell:(h,f)=>L.jsx(oh,{value:h.list??"",onSelect:g=>{switch(g){case"":f({...h,list:void 0});break;case"name":case"subtitle":case"description":case"primary":case"secondary":case"hidden":f({...h,list:g});break}},options:[{value:"name",label:s("Name"),description:s("Show the column as the name of the list item.")},{value:"subtitle",label:s("Subtitle"),description:s("Show the column as the subtitle under the name on the list.")},{value:"description",label:s("Description"),description:s("Show the column as the list item description.")},{value:"",label:s("Left side"),description:s("Show the column on the left side of the list.")},{value:"primary",label:s("Left side"),description:s("Show the column on the left side of the list.")},{value:"secondary",label:s("Right side"),description:s("Show the column on the right side of the list.")},{value:"hidden",label:s("Hidden"),description:s("Hide the column on the list.")}],placeholder:s("Left side")})}),r||d.push({header:s("Card View"),cell:(h,f)=>L.jsx(oh,{value:h.card??"",onSelect:g=>{switch(g){case"":f({...h,card:void 0});break;case"name":case"subtitle":case"description":case"hidden":f({...h,card:g});break}},placeholder:s("Detail"),options:[{value:"name",label:s("Name"),description:s("Show the column as the name on the card.")},{value:"subtitle",label:s("Subtitle"),description:s("Show the column as the subtitle under the name on the card.")},{value:"description",label:s("Description"),description:s("Show the column as the card description.")},{value:"",label:s("Detail"),description:s("Show the column one of the details on the card.")},{value:"hidden",label:s("Hidden"),description:s("Hide the column on the card.")}]})}),d},[r,i,t,s]),a=T.useCallback((d,h)=>{const f=h;for(const g of d)if(g.id){const m=f.find(p=>p.id===g.id);m&&(g.table=m.table,g.list=m.list,g.card=m.card)}else{const m=f.find(p=>p.header===g.header);m&&(g.table=m.table,g.list=m.list,g.card=m.card)}d.sort((g,m)=>{if(g.id&&m.id){const p=f.findIndex(_=>_.id===g.id),v=f.findIndex(_=>_.id===m.id);return p-v}else{const p=f.findIndex(_=>_.header===g.header),v=f.findIndex(_=>_.header===m.header);return p-v}})},[]),l=T.useCallback(d=>d.map(h=>{const{id:f,header:g,table:m,list:p,card:v}=h;return{id:f,header:g,table:m,list:p,card:v}}),[]),{openModal:c,items:u}=i7e({id:n,title:s("Manage Columns"),description:s("Manage the order, placement, and format of columns."),items:e,keyFn:d=>d.id??d.header,columns:o,loadFn:a,saveFn:l});return{openColumnManagement:c,managedColumns:u}}function o7e(n){const{setPage:e,setPerPage:t}=n,i=T.useCallback((o,a)=>e(a),[e]),r=T.useCallback((o,a)=>t(a),[t]),s=!ms("md");return L.jsx(R.Pagination,{variant:R.PaginationVariant.bottom,itemCount:n.itemCount,page:n.page,perPage:n.perPage,onSetPage:i,onPerPageSelect:r,style:{...n.style,boxShadow:"none",zIndex:400,paddingTop:s?4:6,paddingBottom:s?4:6,borderTop:n.topBorder?"thin solid var(--pf-global--BorderColor--100)":void 0},className:"dark-2"})}const rut="";function a7e(n){const e=n.size??350,t=T.useRef(null),[i,r]=T.useState("1fr"),s=T.useCallback(a=>{let l=Math.min(n.maxColumns??12,Math.max(Math.floor(a/e),1));l<1&&(l=1),r(()=>new Array(l).fill("1fr").join(" "))},[n.maxColumns,e]);Zf(t,a=>s(a.contentRect.width)),T.useLayoutEffect(()=>{var a;s(((a=t.current)==null?void 0:a.clientWidth)??0)},[s]);const o=16;return L.jsx("div",{ref:t,style:{display:"grid",gridAutoRows:"1fr",gridTemplateColumns:i,gap:o},children:n.children})}const l7e=gn.small`
317
+ `;function QH(n){const{itemCount:e,page:t,perPage:i,setPage:r,setPerPage:s,toolbarFilters:o,selectedItems:a,filterState:l,setFilterState:c,openColumnModal:u,bottomBorder:d,sort:h,setSort:f,sortDirection:g,setSortDirection:m,sortOptions:p,clearAllFilters:v}=n,_=T.useCallback(()=>{v?v():c&&c({})},[c,v]),b=ms("md"),{viewType:y,setViewType:w}=n;let{toolbarActions:k}=n;k=k??[];const x=T.useCallback((O,B)=>r?r(B):null,[r]),D=T.useCallback((O,B)=>s?s(B):null,[s]),E=o!==void 0,M=k!==void 0&&k.length>0,N=n.showSelect===!0||a!==void 0&&k&&k.find(O=>"selection"in O&&O.selection===ei.Multiple);return N||E||M?e===void 0?L.jsx(R.Toolbar,{className:"border-bottom dark-2",style:{paddingBottom:b?void 0:8,paddingTop:b?void 0:8,zIndex:400},children:L.jsx(XH,{children:L.jsx(R.ToolbarItem,{style:{width:"100%"},children:L.jsx(R.Skeleton,{height:"36px"})})})}):L.jsx(R.Toolbar,{clearAllFilters:_,className:"dark-2 page-table-toolbar",style:{paddingBottom:b?void 0:8,paddingTop:b?void 0:8,borderBottom:d?"thin solid var(--pf-global--BorderColor--100)":void 0},inset:{default:"insetMd",sm:"insetMd",md:"insetMd",lg:"insetMd",xl:"insetLg","2xl":"insetLg"},children:L.jsxs(XH,{children:[N&&L.jsx(R.ToolbarGroup,{children:L.jsx(R.ToolbarItem,{variant:"bulk-select",children:L.jsx(bH,{...n})})}),l&&c&&L.jsx(YH,{toolbarFilters:o,filterState:l,setFilterState:c}),L.jsx(R.ToolbarGroup,{variant:"button-group",children:L.jsx(Rf,{actions:k,selectedItems:a,wrapper:R.ToolbarItem})}),L.jsxs(G3e,{children:[L.jsx(z3e,{sort:h,setSort:f,sortDirection:g,setSortDirection:m,sortOptions:p}),y&&w&&L.jsx(K3e,{disableTableView:n.disableTableView,disableListView:n.disableListView,disableCardView:n.disableCardView,viewType:y,setViewType:w,openColumnModal:u}),!n.disablePagination&&L.jsx(R.ToolbarItem,{visibility:{default:"hidden","2xl":"visible"},style:{marginLeft:24},children:L.jsx(R.Pagination,{variant:R.PaginationVariant.top,isCompact:!0,itemCount:e,perPage:i,page:t,onSetPage:x,onPerPageSelect:D,style:{marginTop:-8,marginBottom:-8}})})]})]})}):L.jsx(T.Fragment,{})}function Y3e(n){const{t:e}=Us(),t=e("Something went wrong"),i=e("Please refresh the page by using the button below."),r=e("Refresh"),{titleProp:s,message:o}=n;return L.jsxs(R.EmptyState,{variant:R.EmptyStateVariant.small,style:{paddingTop:48},children:[L.jsx(R.EmptyStateIcon,{icon:yt.ExclamationCircleIcon,color:"var(--pf-global--danger-color--100)"}),L.jsx(R.Title,{headingLevel:"h2",size:"lg",children:s||t}),L.jsx(R.EmptyStateBody,{children:o}),L.jsx(R.EmptyStateBody,{children:i}),L.jsx(R.Button,{variant:"primary",onClick:()=>window.location.reload(),children:r})]})}function Z3e(n){const{title:e,description:t,icon:i,button:r,footNote:s,image:o,variant:a,style:l}=n;return L.jsxs(R.EmptyState,{variant:a||R.EmptyStateVariant.full,style:l,children:[i&&L.jsx(R.EmptyStateIcon,{icon:i}),L.jsx(R.Title,{headingLevel:"h4",size:"lg",children:e}),L.jsx(R.EmptyStateBody,{children:t}),r&&L.jsx(R.EmptyStatePrimary,{children:r}),o&&L.jsxs(L.Fragment,{children:[" ",L.jsx("br",{})," ",L.jsx(R.EmptyStateBody,{children:o})]}),s&&L.jsx(R.EmptyStateBody,{children:s})]})}function X3e(n){const{button:e,description:t,title:i,variant:r}=n;return L.jsx(Z3e,{icon:e?yt.PlusCircleIcon:yt.CubesIcon,title:i,description:t,button:e,variant:r,style:{paddingTop:"48px"}})}function wT(n,e,t){var i,r,s,o,a;e==null&&(e=100);function l(){var u=Date.now()-o;u<e&&u>=0?i=setTimeout(l,e-u):(i=null,t||(a=n.apply(s,r),s=r=null))}var c=function(){s=this,r=arguments,o=Date.now();var u=t&&!i;return i||(i=setTimeout(l,e)),u&&(a=n.apply(s,r),s=r=null),a};return c.clear=function(){i&&(clearTimeout(i),i=null)},c.flush=function(){i&&(a=n.apply(s,r),s=r=null,clearTimeout(i),i=null)},c}wT.debounce=wT;var Q3e=wT;const J3e=St(Q3e);function e7e(n,e,t){const{selectedItems:i,selectItem:r,unselectItem:s,isSelected:o,selectItems:a,unselectAll:l,allSelected:c}=ST(n,e),{sorted:u,sort:d,setSort:h}=xT(n),{filtered:f,setFilterFn:g}=LT(u,e),{searched:m,search:p,setSearch:v,setSearchFn:_}=t7e(f,e,t==null?void 0:t.search),{paged:b,page:y,setPage:w,perPage:k,setPerPage:x}=r_(m),D=T.useCallback(()=>a(b),[b,a]),E=T.useCallback(()=>a(m),[m,a]);return T.useMemo(()=>({allSelected:c,filtered:f,isSelected:o,page:y,paged:b,perPage:k,search:p,searched:m,selectAll:E,selectItem:r,selectPage:D,selectedItems:i,setFilterFn:g,setPage:w,setPerPage:x,setSearch:v,setSearchFn:_,setSort:h,sort:d,sorted:u,unselectAll:l,unselectItem:s}),[c,f,o,y,b,k,p,m,E,r,D,i,g,w,x,v,_,h,d,u,l,s])}function ST(n,e,t){const[i,r]=T.useState(()=>t?t.reduce((g,m)=>(g[e(m)]=m,g),{}):{});T.useEffect(()=>{r(g=>{let m=!1;return n.forEach(p=>{const v=e(p);g[v]&&g[v]!==p&&(m=!0,g[v]=p)}),m?{...g}:g})},[n,e]);const s=T.useCallback(g=>{r(m=>{const p=e(g);return m[p]!==g&&(m={...m},m[p]=g),m})},[e]),o=T.useCallback(g=>{r(m=>{const p=e(g);return m[p]&&(m={...m},delete m[p]),m})},[e]),a=T.useCallback(g=>{const m=e(g);return i[m]!==void 0},[e,i]),l=T.useCallback(g=>{r(m=>{m={...m};for(const p of g){const v=e(p);m[v]=p}return m})},[e]),c=T.useCallback(()=>l(n),[n,l]),u=T.useCallback(g=>{for(const m of g)o(m)},[o]),d=T.useCallback(()=>{r(g=>Object.keys(g).length>0?{}:g)},[]),h=T.useMemo(()=>Object.values(i),[i]),f=T.useMemo(()=>h.length===n.length,[n.length,h.length]);return T.useMemo(()=>({selectedItems:h,selectItem:s,unselectItem:o,isSelected:a,selectItems:l,selectAll:c,unselectAll:d,allSelected:f,keyFn:e,unselectItems:u}),[f,a,e,c,s,l,h,d,o,u])}function JH(n,e){const[t,i]=T.useState({});T.useEffect(()=>{i(f=>{let g=!1;const m=n?n.reduce((_,b)=>{const y=e(b);return _[y]=b,f[y]&&f[y]!==b&&(g=!0,f[y]=b),_},{}):{},p={};for(const _ in f)m[_]||(p[_]=!0);const v=Object.keys(p);if(v.length){g=!0;for(const _ of v)delete f[_]}return g?{...f}:f})},[n,e]);const r=T.useCallback(f=>{i(g=>{const m=e(f);return g[m]!==f&&(g={...g},g[m]=f),g})},[e]),s=T.useCallback(f=>{i(g=>{const m=e(f);return g[m]&&(g={...g},delete g[m]),g})},[e]),o=T.useCallback(f=>{for(const g of f)s(g)},[s]),a=T.useCallback(f=>{const g=e(f);return t[g]!==void 0},[e,t]),l=T.useCallback(f=>{i(g=>{g={...g};for(const m of f){const p=e(m);g[p]=m}return g})},[e]),c=T.useCallback(()=>{l(n??[])},[n,l]),u=T.useCallback(()=>{i(f=>Object.keys(f).length>0?{}:f)},[]),d=T.useMemo(()=>Object.values(t),[t]),h=T.useMemo(()=>d.length===(n==null?void 0:n.length),[n,d.length]);return T.useMemo(()=>({selectedItems:d,selectItem:r,unselectItem:s,isSelected:a,selectItems:l,selectAll:c,unselectAll:u,allSelected:h,keyFn:e,unselectItems:o}),[h,a,e,c,r,l,d,u,s,o])}function xT(n){const[e,t]=T.useState(),{direction:i,sortFn:r}=e??{},s=T.useMemo(()=>n?r?i==="asc"?[...n.sort(r)]:[...n.sort(r).reverse()]:n:[],[i,n,r]);return T.useMemo(()=>({sorted:s,sort:e,setSort:t}),[e,s])}function LT(n,e){const t=T.useRef({map:{}}),[i,r]=T.useState(),s=T.useCallback(c=>r(()=>c),[]),[o,a]=T.useState([]);T.useEffect(()=>{t.current.map={}},[i]);const l=T.useCallback(c=>{const u=e(c);let d=t.current.map[u];return d?d.item!==c&&(d.item=c,d.passes=i?i(c):!0):(d={item:c,passes:i?i(c):!0},t.current.map[u]=d),d.passes},[i,e]);return T.useEffect(()=>{a(i?n.filter(l):n)},[n,i,l]),T.useMemo(function(){return{filtered:o,setFilterFn:s}},[o,s])}function t7e(n,e,t){const i=T.useRef({map:{}}),[r,s]=T.useState(),o=T.useCallback(f=>s(()=>f),[]),[a,l]=T.useState([]),[c,u]=T.useState(t??""),d=T.useCallback(J3e(f=>u(f),200),[]);T.useEffect(()=>{i.current.map={}},[c,r]);const h=T.useCallback(f=>{const g=e(f);let m=i.current.map[g];return m?m.item!==f&&(m.item=f,m.score=r?r(f,c):0):(m={item:f,score:r?r(f,c):0},i.current.map[g]=m),m},[e,r,c]);return T.useEffect(()=>{l(r&&c?n.map(h).filter(f=>f.score<.5).sort((f,g)=>f.score-g.score).map(f=>f.item):n)},[c,n,r,h]),T.useMemo(function(){return{searched:a,search:c,setSearch:d,setSearchFn:o}},[a,c,d,o])}function r_(n){const[e,t]=T.useState([]),[i,r]=T.useState(1),[s,o]=T.useState(10);return T.useEffect(()=>{t(a=>{const l=n.slice((i-1)*s,i*s);if(a.length!==l.length)return l;let c=0;for(const u of l)if(a[c++]!==u)return l;return a})},[i,s,n]),T.useEffect(()=>{i>Math.ceil(n.length/s)&&r(1)},[i,s,n.length]),T.useMemo(()=>({paged:e,page:i,setPage:r,perPage:s,setPerPage:o}),[i,e,s])}const iut="",kT={button:"pf-c-button",modifiers:{hidden:"pf-m-hidden",hiddenOnSm:"pf-m-hidden-on-sm",visibleOnSm:"pf-m-visible-on-sm",hiddenOnMd:"pf-m-hidden-on-md",visibleOnMd:"pf-m-visible-on-md",hiddenOnLg:"pf-m-hidden-on-lg",visibleOnLg:"pf-m-visible-on-lg",hiddenOnXl:"pf-m-hidden-on-xl",visibleOnXl:"pf-m-visible-on-xl",hiddenOn_2xl:"pf-m-hidden-on-2xl",visibleOn_2xl:"pf-m-visible-on-2xl",fixed:"pf-m-fixed",stickyHeader:"pf-m-sticky-header",nestedColumnHeader:"pf-m-nested-column-header",borderRow:"pf-m-border-row",striped:"pf-m-striped",expandable:"pf-m-expandable",stripedEven:"pf-m-striped-even",ghostRow:"pf-m-ghost-row",center:"pf-m-center",help:"pf-m-help",favorite:"pf-m-favorite",borderRight:"pf-m-border-right",borderLeft:"pf-m-border-left",truncate:"pf-m-truncate",wrap:"pf-m-wrap",nowrap:"pf-m-nowrap",fitContent:"pf-m-fit-content",breakWord:"pf-m-break-word",noBorderRows:"pf-m-no-border-rows",expanded:"pf-m-expanded",hoverable:"pf-m-hoverable",selected:"pf-m-selected",firstCellOffsetReset:"pf-m-first-cell-offset-reset",dragOver:"pf-m-drag-over",favorited:"pf-m-favorited",noPadding:"pf-m-no-padding",compact:"pf-m-compact",width_10:"pf-m-width-10",width_15:"pf-m-width-15",width_20:"pf-m-width-20",width_25:"pf-m-width-25",width_30:"pf-m-width-30",width_35:"pf-m-width-35",width_40:"pf-m-width-40",width_45:"pf-m-width-45",width_50:"pf-m-width-50",width_60:"pf-m-width-60",width_70:"pf-m-width-70",width_80:"pf-m-width-80",width_90:"pf-m-width-90",width_100:"pf-m-width-100"},table:"pf-c-table",tableAction:"pf-c-table__action",tableButton:"pf-c-table__button",tableButtonContent:"pf-c-table__button-content",tableCheck:"pf-c-table__check",tableColumnHelp:"pf-c-table__column-help",tableColumnHelpAction:"pf-c-table__column-help-action",tableCompoundExpansionToggle:"pf-c-table__compound-expansion-toggle",tableControlRow:"pf-c-table__control-row",tableDraggable:"pf-c-table__draggable",tableExpandableRow:"pf-c-table__expandable-row",tableExpandableRowContent:"pf-c-table__expandable-row-content",tableFavorite:"pf-c-table__favorite",tableIcon:"pf-c-table__icon",tableIconInline:"pf-c-table__icon-inline",tableInlineEditAction:"pf-c-table__inline-edit-action",tableSort:"pf-c-table__sort",tableSortIndicator:"pf-c-table__sort-indicator",tableSubhead:"pf-c-table__subhead",tableText:"pf-c-table__text",tableToggle:"pf-c-table__toggle",tableToggleIcon:"pf-c-table__toggle-icon",themeDark:"pf-theme-dark"};function n7e(n){const{t:e}=Us(),{columns:t,keyFn:i,items:r,setItems:s,isSelected:o,selectItem:a,unselectItem:l,allSelected:c,selectAll:u,unselectAll:d,hideColumnHeaders:h,isSelectableWithCheckbox:f}=n,[g,m]=T.useState(null),[p,v]=T.useState(null),[_,b]=T.useState(!1),y=T.useRef(null),w=B=>{if(y.current){const W=y.current.getBoundingClientRect();return B.clientX>W.x&&B.clientX<W.x+W.width&&B.clientY>W.y&&B.clientY<W.y+W.height}return!1},k=B=>{w(B)||x()},x=()=>{y.current&&Array.from(y.current.children).forEach(B=>{B.classList.remove(kT.modifiers.ghostRow),B.setAttribute("aria-pressed","false")}),v(null),m(null),b(!1)},D=B=>{B.preventDefault();const W=B.target.closest("tr");if(!W||!(y.current&&y.current.contains(W))||W.id===p)return null;{const J=W.id,re=Array.from(y.current.children).findIndex(se=>se.id===J);if(re!==g&&p){const se=E([...r],p,re);s(se)}}return null},E=(B,W,J)=>{const re=B.findIndex(ie=>i(ie)===W);if(re===J)return B;const se=B.splice(re,1);return B.splice(J,0,se[0]),B},M=B=>{w(B)||m(null)},N=B=>{const W=B.target;W.classList.remove(kT.modifiers.ghostRow),W.setAttribute("aria-pressed","false"),v(null),m(null),b(!1)},I=B=>{if(y.current){B.dataTransfer.effectAllowed="move";const W=B.currentTarget.id,J=Array.from(y.current.children).findIndex(re=>re.id===B.currentTarget.id);B.currentTarget.setAttribute("aria-pressed","true"),v(W),m(J)}},O=T.useCallback(B=>{const W=r.findIndex(re=>i(re)===i(B)),J=[...r];J[W]=B,s(J)},[r,s,i]);return L.jsxs(Wt.TableComposable,{"aria-label":e("Table with draggable rows"),className:_?kT.modifiers.dragOver:"",variant:"compact",gridBreakPoint:"",children:[!h&&L.jsx(Wt.Thead,{children:L.jsxs(Wt.Tr,{children:[L.jsx(Wt.Th,{}),f&&L.jsx(Wt.Th,{select:{onSelect:(B,W)=>{W?u():d()},isSelected:c}}),t.map((B,W)=>L.jsx(Wt.Th,{children:B.header},W))]})}),L.jsx(Wt.Tbody,{ref:y,onDragOver:D,onDragLeave:M,children:r.map((B,W)=>{const J=i(B);return L.jsxs(Wt.Tr,{id:J.toString(),draggable:!0,onDrop:k,onDragEnd:N,onDragStart:I,children:[L.jsx(Wt.Td,{draggableRow:{id:`draggable-row-${J.toString()}`}}),f&&L.jsx(Wt.Td,{select:{rowIndex:W,variant:"checkbox",onSelect:(re,se)=>{se?a(B):l(B)},isSelected:o(B)}}),t.map(re=>L.jsx(Wt.Td,{children:re.cell(B,O)},re.header))]},J)})})]})}function i7e(n){const[e,t]=Oa(),[i]=T.useState(()=>n.keyFn),[r]=T.useState(()=>n.saveFn),[s]=T.useState(()=>n.loadFn),[o,a]=T.useState(()=>{try{const h=localStorage.getItem(n.id);if(typeof h=="string"){const f=JSON.parse(h);if(Array.isArray(f)&&f.every(g=>typeof g=="object")&&f.every(g=>"key"in g&&"enabled"in g))return f}}catch{}}),l=T.useMemo(()=>o?n.items.map(h=>{if(s){const f=o.find(g=>g.key===i(h));f&&f.state&&s(h,f.state)}return h}).sort((h,f)=>{const g=o.findIndex(p=>p.key===i(h)),m=o.findIndex(p=>p.key===i(f));return g===-1&&m===-1?0:g===-1?1:m===-1?-1:g-m}):n.items,[o,i,s,n.items]),c=T.useMemo(()=>o?l.filter(h=>{const f=o.find(g=>g.key===i(h));return f?f.enabled:!0}):l,[l,o,i]),u=T.useCallback((h,f)=>{const g=h.map(m=>({key:i(m),enabled:f.includes(m),state:r?r(m):void 0}));a(g),localStorage.setItem(n.id,JSON.stringify(g))},[i,n.id,r]);return{openManageItems:()=>t(L.jsx(r7e,{...n,keyFn:i,items:l,defaultSelectedItems:c,onApplyChanges:u})),managedItems:c}}function r7e(n){const{t:e}=Us(),{title:t,description:i,columns:r,onApplyChanges:s}=n,[o]=T.useState(()=>n.keyFn),[a,l]=Oa(),c=()=>l(void 0),[u,d]=T.useState(()=>n.items),{selectedItems:h,isSelected:f,selectItem:g,unselectItem:m,allSelected:p,selectAll:v,unselectAll:_}=ST(u,o,n.defaultSelectedItems),b=()=>{s(u,h),l(void 0)};return L.jsxs(R.Modal,{title:t,"aria-label":t,description:L.jsx("div",{style:{marginBottom:16},children:i}),variant:n.variant??R.ModalVariant.medium,isOpen:!0,onClose:c,actions:[L.jsx(R.Button,{variant:"primary",onClick:b,children:e`Apply`},"apply"),L.jsx(R.Button,{variant:"link",onClick:c,children:e`Cancel`},"cancel")],hasNoBodyWrapper:!0,children:[L.jsx(R.Divider,{}),L.jsx(R.ModalBoxBody,{style:{padding:0},children:L.jsx(n7e,{keyFn:o,items:u,setItems:d,columns:r,isSelected:f,selectItem:g,unselectItem:m,allSelected:p,selectAll:v,unselectAll:_,hideColumnHeaders:n.hideColumnHeaders,isSelectableWithCheckbox:n.hideSelection!==!0})}),L.jsx(R.Divider,{})]})}function s7e(n,e,t,i,r){const{t:s}=Us(),o=T.useMemo(()=>{const d=[{header:s("Column Name"),cell:h=>h.header}];return t||d.push({header:s("Table View"),cell:(h,f)=>L.jsx(oh,{value:h.table??"",onSelect:g=>{switch(g){case"":f({...h,table:void 0});break;case fu.Description:case fu.Expanded:case fu.Hidden:f({...h,table:g});break}},placeholder:s("Column"),options:[{value:"",label:s("Column"),description:s("Show the column in the table.")},{value:fu.Description,label:s("Description"),description:s("Show the column when the item is expanded as a full width description.")},{value:fu.Expanded,label:s("Expanded"),description:s("Show the column when the item is expandedas a detail.")},{value:fu.Hidden,label:s("Hidden"),description:s("Hide the column.")}]})}),i||d.push({header:s("List View"),cell:(h,f)=>L.jsx(oh,{value:h.list??"",onSelect:g=>{switch(g){case"":f({...h,list:void 0});break;case"name":case"subtitle":case"description":case"primary":case"secondary":case"hidden":f({...h,list:g});break}},options:[{value:"name",label:s("Name"),description:s("Show the column as the name of the list item.")},{value:"subtitle",label:s("Subtitle"),description:s("Show the column as the subtitle under the name on the list.")},{value:"description",label:s("Description"),description:s("Show the column as the list item description.")},{value:"",label:s("Left side"),description:s("Show the column on the left side of the list.")},{value:"primary",label:s("Left side"),description:s("Show the column on the left side of the list.")},{value:"secondary",label:s("Right side"),description:s("Show the column on the right side of the list.")},{value:"hidden",label:s("Hidden"),description:s("Hide the column on the list.")}],placeholder:s("Left side")})}),r||d.push({header:s("Card View"),cell:(h,f)=>L.jsx(oh,{value:h.card??"",onSelect:g=>{switch(g){case"":f({...h,card:void 0});break;case"name":case"subtitle":case"description":case"hidden":f({...h,card:g});break}},placeholder:s("Detail"),options:[{value:"name",label:s("Name"),description:s("Show the column as the name on the card.")},{value:"subtitle",label:s("Subtitle"),description:s("Show the column as the subtitle under the name on the card.")},{value:"description",label:s("Description"),description:s("Show the column as the card description.")},{value:"",label:s("Detail"),description:s("Show the column one of the details on the card.")},{value:"hidden",label:s("Hidden"),description:s("Hide the column on the card.")}]})}),d},[r,i,t,s]),a=T.useCallback((d,h)=>{typeof h=="object"&&h!==null&&("table"in h&&typeof h.table=="string"?d.table=h.table:d.table=void 0,"list"in h&&typeof h.list=="string"?d.list=h.list:d.list=void 0,"card"in h&&typeof h.card=="string"?d.card=h.card:d.card=void 0)},[]),l=T.useCallback(d=>{const{table:h,list:f,card:g}=d;return{table:h,list:f,card:g}},[]),{openManageItems:c,managedItems:u}=i7e({id:n,title:s("Manage Columns"),description:s("Manage the order, placement, and format of columns."),items:e,keyFn:d=>d.id??d.header,columns:o,loadFn:a,saveFn:l,hideSelection:!0});return{openColumnManagement:c,managedColumns:u}}function o7e(n){const{setPage:e,setPerPage:t}=n,i=T.useCallback((o,a)=>e(a),[e]),r=T.useCallback((o,a)=>t(a),[t]),s=!ms("md");return L.jsx(R.Pagination,{variant:R.PaginationVariant.bottom,itemCount:n.itemCount,page:n.page,perPage:n.perPage,onSetPage:i,onPerPageSelect:r,style:{...n.style,boxShadow:"none",zIndex:400,paddingTop:s?4:6,paddingBottom:s?4:6,borderTop:n.topBorder?"thin solid var(--pf-global--BorderColor--100)":void 0},className:"dark-2"})}const rut="";function a7e(n){const e=n.size??350,t=T.useRef(null),[i,r]=T.useState("1fr"),s=T.useCallback(a=>{let l=Math.min(n.maxColumns??12,Math.max(Math.floor(a/e),1));l<1&&(l=1),r(()=>new Array(l).fill("1fr").join(" "))},[n.maxColumns,e]);Zf(t,a=>s(a.contentRect.width)),T.useLayoutEffect(()=>{var a;s(((a=t.current)==null?void 0:a.clientWidth)??0)},[s]);const o=16;return L.jsx("div",{ref:t,style:{display:"grid",gridAutoRows:"1fr",gridTemplateColumns:i,gap:o},children:n.children})}const l7e=gn.small`
318
318
  opacity: 0.7;
319
319
  `,c7e=gn.div`
320
320
  display: flex;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ansible/ansible-ui-framework",
3
3
  "description": "A framework for building applications using PatternFly.",
4
- "version": "2.4.304",
4
+ "version": "2.4.306",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",