@ansible/ansible-ui-framework 2.4.2624 → 2.4.2625

Sign up to get free protection for your applications and to get access to all the features.
package/index.js CHANGED
@@ -2208,8 +2208,7 @@ function WP(e) {
2208
2208
  variant: C7.light,
2209
2209
  className: "bg-lighten border-bottom",
2210
2210
  style: {
2211
- paddingTop: (d != null && d.length, s ? 16 : 12),
2212
- paddingBottom: s ? 16 : 12
2211
+ paddingBlock: s ? 16 : 12
2213
2212
  },
2214
2213
  children: /* @__PURE__ */ m.jsxs(_r, { hasGutter: !0, children: [
2215
2214
  /* @__PURE__ */ m.jsxs(un, { flexWrap: { default: "nowrap" }, alignItems: { default: "alignItemsStretch" }, children: [
@@ -32641,7 +32640,7 @@ function w0e(e) {
32641
32640
  children: /* @__PURE__ */ m.jsx(Ir, { children: c.cardBody })
32642
32641
  }
32643
32642
  ),
32644
- (c.labels || a && a.length) && /* @__PURE__ */ m.jsx(BC, { children: /* @__PURE__ */ m.jsxs(x0e, { children: [
32643
+ c.labels || a && a.length ? /* @__PURE__ */ m.jsx(BC, { children: /* @__PURE__ */ m.jsxs(x0e, { children: [
32645
32644
  /* @__PURE__ */ m.jsx(_0e, { children: c.labels && /* @__PURE__ */ m.jsx(Sp, { numLabels: 999, children: c.labels.map((f) => /* @__PURE__ */ m.jsx(
32646
32645
  ma,
32647
32646
  {
@@ -32652,7 +32651,7 @@ function w0e(e) {
32652
32651
  },
32653
32652
  f.label
32654
32653
  )) }) }),
32655
- a && a.length && /* @__PURE__ */ m.jsx(
32654
+ a && a.length ? /* @__PURE__ */ m.jsx(
32656
32655
  "div",
32657
32656
  {
32658
32657
  style: { marginRight: -16, alignSelf: "end", justifySelf: "flex-end", flexGrow: 1 },
@@ -32666,8 +32665,8 @@ function w0e(e) {
32666
32665
  }
32667
32666
  )
32668
32667
  }
32669
- )
32670
- ] }) }),
32668
+ ) : null
32669
+ ] }) }) : null,
32671
32670
  c.alertTitle && /* @__PURE__ */ m.jsx(Ni, { title: c.alertTitle, isInline: !0, variant: c.alertVariant, children: c.alertContent })
32672
32671
  ]
32673
32672
  },
@@ -43807,7 +43806,7 @@ function b5e(e) {
43807
43806
  children: /* @__PURE__ */ m.jsx(Tp, {})
43808
43807
  }
43809
43808
  ),
43810
- l && l
43809
+ l
43811
43810
  ] })
43812
43811
  }
43813
43812
  );
package/index.umd.cjs CHANGED
@@ -106,7 +106,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[lu]+=1);const cu=Ae.button`
106
106
  }
107
107
  `,kb=Ae(be.SyncAltIcon)`
108
108
  animation: ${J7} 1.75s linear infinite;
109
- `;kb.displayName="RunningIcon";const Ab=v.createContext({tabBreadcrumb:{},setTabBreadcrumb:()=>{}});function Q7(e){const[t,n]=v.useState();return m.jsx(Ab.Provider,{value:{tabBreadcrumb:t,setTabBreadcrumb:n},children:e.children})}const eD=()=>v.useContext(Ab);function tD(e){const t=wt.useNavigate();return e.breadcrumbs?m.jsx(C.Breadcrumb,{style:e.style,children:e.breadcrumbs.map((n,r)=>n.label?m.jsx(C.BreadcrumbItem,{"data-cy":n.label,id:n.id,component:n.component,isActive:n.to===void 0,children:n.to?m.jsx("a",{href:n.to,"data-cy":n.label,onClick:i=>{i.preventDefault(),n.to&&t(n.to)},children:n.label}):n.label},r):m.jsx(v.Fragment,{},r))}):m.jsx(v.Fragment,{})}function Db(e){const{title:t,description:n,controls:r,headerActions:i,footer:o}=e,a=dn("lg"),s=dn("xl"),l=dn("md"),[c]=$t(),{tabBreadcrumb:u}=eD(),d=v.useMemo(()=>{const f=[];return e.breadcrumbs&&(f.push(...e.breadcrumbs),u&&f.push(u)),f},[e.breadcrumbs,u]);return m.jsx(C.PageSection,{variant:C.PageSectionVariants.light,className:"bg-lighten border-bottom",style:{paddingTop:(d!=null&&d.length,s?16:12),paddingBottom:s?16:12},children:m.jsxs(C.Stack,{hasGutter:!0,children:[m.jsxs(C.Flex,{flexWrap:{default:"nowrap"},alignItems:{default:"alignItemsStretch"},children:[m.jsxs(C.FlexItem,{grow:{default:"grow"},children:[d.length>0&&m.jsx(tD,{breadcrumbs:d!=null&&d.length?d:void 0,style:{paddingBottom:a?6:4}}),t?e.titleHelp?m.jsx(C.Popover,{headerContent:e.titleHelpTitle??e.title,bodyContent:m.jsxs(C.Stack,{hasGutter:!0,children:[typeof e.titleHelp=="string"?m.jsx(C.StackItem,{children:e.titleHelp}):e.titleHelp.map((f,h)=>m.jsx(C.StackItem,{children:f},h)),e.titleDocLink&&m.jsx(C.StackItem,{children:m.jsx(C.Button,{icon:m.jsx(be.ExternalLinkAltIcon,{}),variant:"link",onClick:()=>window.open(e.titleDocLink,"_blank"),isInline:!0,iconPosition:"end",children:c.documentation})})]}),position:"bottom-start",children:m.jsxs(C.Title,{"data-cy":"page-title",headingLevel:"h1",children:[t,m.jsx(C.Button,{variant:"link",style:{padding:0,marginTop:1,marginLeft:8,verticalAlign:"top"},children:m.jsx(be.OutlinedQuestionCircleIcon,{})})]})}):m.jsx(C.Title,{"data-cy":"page-title",headingLevel:"h1",children:t}):m.jsx(C.Title,{headingLevel:"h1",children:m.jsx(C.Skeleton,{width:"160px"})}),l&&n&&m.jsx("div",{"data-cy":"app-description",style:{paddingTop:s?4:2,opacity:.8},children:n})]}),t&&(i||r)&&m.jsxs(C.Flex,{"data-cy":"manage-view",direction:{default:"column"},spaceItems:{default:"spaceItemsSm",xl:"spaceItemsMd"},justifyContent:{default:"justifyContentCenter"},children:[r&&m.jsx(C.FlexItem,{grow:{default:"grow"},children:r}),i&&m.jsx(C.FlexItem,{children:i})]})]}),o]})})}function nD(){return m.jsx(C.PageSection,{isFilled:!0,variant:"light",children:m.jsx(C.Bullseye,{children:m.jsx(C.Spinner,{})})})}function rD(e){return m.jsxs(v.Fragment,{children:[m.jsx(Db,{breadcrumbs:e.breadcrumbs?[{label:m.jsx(C.Skeleton,{width:"150px"}),isLoading:!0}]:void 0,title:m.jsx(C.Skeleton,{width:"200px"})}),e.tabs&&m.jsx(C.PageSection,{variant:"light",style:{paddingTop:8,paddingBottom:8},children:m.jsx(C.Skeleton,{width:"150px"})}),m.jsx(C.Divider,{}),m.jsx(nD,{})]})}var Zs=(e=>(e.Default="default",e.Green="green",e.Success="success",e.Blue="blue",e.Info="info",e.Red="red",e.Danger="danger",e.Yellow="yellow",e.Orange="orange",e.Warning="warning",e.Grey="grey",e.Disabled="disabled",e))(Zs||{});function Lo(e){switch(e){case"default":return;case"green":case"success":return Qh;case"red":case"danger":return em;case"yellow":case"orange":case"warning":return Pb;case"blue":case"info":return tm;case"grey":case"disabled":return nm}}const Qh="var(--pf-v5-global--success-color--100)",em="var(--pf-v5-global--danger-color--100)",Pb="var(--pf-v5-global--warning-color--100)",tm="var(--pf-v5-global--info-color--100)",nm="var(--pf-v5-global--disabled-color--100)",iD="var(--pf-v5-global--link--Color)",oD="var(--pf-v5-global--danger-color--100)";var jb=(e=>(e.blue="blue",e.cyan="cyan",e.green="green",e.orange="orange",e.purple="purple",e.red="red",e.grey="grey",e))(jb||{});const aD=v[typeof document<"u"&&document.createElement!==void 0?"useLayoutEffect":"useEffect"],sD=e=>{const t=T.useRef(e);return T.useEffect(()=>{t.current=e}),t};function lD(){}function Pa(e,t,n={}){const r=uD(n.polyfill),i=sD(t);return aD(()=>{let o=!1;const a=e&&"current"in e?e.current:e;if(!a)return lD;function s(l,c){o||i.current(l,c)}return r.subscribe(a,s),()=>{o=!0,r.unsubscribe(a,s)}},[e,r,i]),r.observer}function cD(e){let t=!1,n=[];const r=new Map,i=new(e||window.ResizeObserver)((o,a)=>{n=n.concat(o);function s(){const l=new Set;for(let c=0;c<n.length;c++){if(l.has(n[c].target))continue;l.add(n[c].target);const u=r.get(n[c].target);u==null||u.forEach(d=>d(n[c],a))}n=[],t=!1}t||window.requestAnimationFrame(s),t=!0});return{observer:i,subscribe(o,a){var s;i.observe(o);const l=(s=r.get(o))!==null&&s!==void 0?s:[];l.push(a),r.set(o,l)},unsubscribe(o,a){var s;const l=(s=r.get(o))!==null&&s!==void 0?s:[];if(l.length===1){i.unobserve(o),r.delete(o);return}const c=l.indexOf(a);c!==-1&&l.splice(c,1),r.set(o,l)}}}let rm;const uD=e=>rm||(rm=cD(e));function Jn(e){const t=v.useRef(null),[n,r]=v.useState(!1),[i,o]=v.useState(!1),a=v.useCallback(()=>{if(!t.current)return;r(t.current.scrollTop>0);const c=t.current.scrollHeight-t.current.scrollTop-t.current.clientHeight-1;o(c>.1)},[]);v.useEffect(()=>a(),[a,e.children]),Pa(t,()=>a());const s=["scrollable-inner"];e.borderTop&&s.push("border-top"),e.borderBottom&&s.push("border-bottom");const l=s.join(" ");return m.jsxs("div",{className:`scrollable-outer ${e.className}`,style:e.style,children:[m.jsx("div",{className:l,ref:t,onScroll:a,children:e.children}),n&&m.jsx("div",{className:"scrollable-shadow-top"}),i&&m.jsx("div",{className:"scrollable-shadow-bottom"})]})}var st=(e=>(e[e.Button=0]="Button",e[e.Link=1]="Link",e[e.Switch=2]="Switch",e[e.Dropdown=3]="Dropdown",e[e.Seperator=4]="Seperator",e))(st||{}),Ge=(e=>(e[e.None=0]="None",e[e.Single=1]="Single",e[e.Multiple=2]="Multiple",e))(Ge||{});function ui(e){const t=v.useId();return Wr(e)||t}function Wr(e){if(typeof e=="string")return e.toLowerCase().replace(/ /g,"-").replace(/_/g,"-").replace(/\./g,"-");if(e.id)return e.id;if(e.name)return e.name.toLowerCase().replace(/ /g,"-").replace(/_/g,"-").replace(/\./g,"-");if(e.title)return e.title.toLowerCase().replace(/ /g,"-").replace(/_/g,"-").replace(/\./g,"-");if(e.label)return e.label.toLowerCase().replace(/ /g,"-").replace(/_/g,"-").replace(/\./g,"-")}function Mb(e,t){if(!("selection"in e))return!1;switch(e.selection){case Ge.None:if(e.isHidden)return e.isHidden();break;case Ge.Single:if(e.isHidden)return t?e.isHidden(t):!0;break}return!1}function du(){const[e]=$t();return v.useCallback((t,n,r)=>{if("selection"in t){if(typeof t.isDisabled=="string")return t.isDisabled;if(t.isDisabled)switch(t.selection){case Ge.None:return t.isDisabled();case Ge.Single:return n?t.isDisabled(n):e.noSelection;case Ge.Multiple:return r?t.isDisabled(r):e.noSelections}}},[e.noSelection,e.noSelections])}function dD(e,t,n,r){if(t)return t;if(e.tooltip)return e.tooltip;if(n)return r?e.label:e.labelOff??e.label}function $b(e){const{action:t,wrapper:n,selectedItem:r,iconOnly:i}=e,a=du()(t,r),s=n??v.Fragment,l=r&&t.isSwitchOn?t.isSwitchOn(r):!1,c=dD(t,a,i??!1,l),u=v.useId();let d=t.label;i&&t.showPinnedLabel!==!0&&(d=void 0);let f=t.labelOff;return i&&t.showPinnedLabel!==!0&&(f=void 0),m.jsx(s,{children:m.jsx("div",{"data-cy":"toggle-switch",style:{marginLeft:i?16:void 0,marginRight:i?16:void 0},children:m.jsx(C.Tooltip,{content:c,trigger:c?void 0:"manual",children:m.jsx(C.Switch,{id:u,"aria-label":t.ariaLabel(l),label:d,labelOff:f,isChecked:l,hasCheckIcon:!0,isDisabled:!!a,onChange:()=>{switch(t.selection){case Ge.None:t.onToggle(!l);break;case Ge.Single:r&&t.onToggle(r,!l);break}},isReversed:(t==null?void 0:t.isReversed)!==void 0?t.isReversed:i})})})})}const fD=Ae.div`
109
+ `;kb.displayName="RunningIcon";const Ab=v.createContext({tabBreadcrumb:{},setTabBreadcrumb:()=>{}});function Q7(e){const[t,n]=v.useState();return m.jsx(Ab.Provider,{value:{tabBreadcrumb:t,setTabBreadcrumb:n},children:e.children})}const eD=()=>v.useContext(Ab);function tD(e){const t=wt.useNavigate();return e.breadcrumbs?m.jsx(C.Breadcrumb,{style:e.style,children:e.breadcrumbs.map((n,r)=>n.label?m.jsx(C.BreadcrumbItem,{"data-cy":n.label,id:n.id,component:n.component,isActive:n.to===void 0,children:n.to?m.jsx("a",{href:n.to,"data-cy":n.label,onClick:i=>{i.preventDefault(),n.to&&t(n.to)},children:n.label}):n.label},r):m.jsx(v.Fragment,{},r))}):m.jsx(v.Fragment,{})}function Db(e){const{title:t,description:n,controls:r,headerActions:i,footer:o}=e,a=dn("lg"),s=dn("xl"),l=dn("md"),[c]=$t(),{tabBreadcrumb:u}=eD(),d=v.useMemo(()=>{const f=[];return e.breadcrumbs&&(f.push(...e.breadcrumbs),u&&f.push(u)),f},[e.breadcrumbs,u]);return m.jsx(C.PageSection,{variant:C.PageSectionVariants.light,className:"bg-lighten border-bottom",style:{paddingBlock:s?16:12},children:m.jsxs(C.Stack,{hasGutter:!0,children:[m.jsxs(C.Flex,{flexWrap:{default:"nowrap"},alignItems:{default:"alignItemsStretch"},children:[m.jsxs(C.FlexItem,{grow:{default:"grow"},children:[d.length>0&&m.jsx(tD,{breadcrumbs:d!=null&&d.length?d:void 0,style:{paddingBottom:a?6:4}}),t?e.titleHelp?m.jsx(C.Popover,{headerContent:e.titleHelpTitle??e.title,bodyContent:m.jsxs(C.Stack,{hasGutter:!0,children:[typeof e.titleHelp=="string"?m.jsx(C.StackItem,{children:e.titleHelp}):e.titleHelp.map((f,h)=>m.jsx(C.StackItem,{children:f},h)),e.titleDocLink&&m.jsx(C.StackItem,{children:m.jsx(C.Button,{icon:m.jsx(be.ExternalLinkAltIcon,{}),variant:"link",onClick:()=>window.open(e.titleDocLink,"_blank"),isInline:!0,iconPosition:"end",children:c.documentation})})]}),position:"bottom-start",children:m.jsxs(C.Title,{"data-cy":"page-title",headingLevel:"h1",children:[t,m.jsx(C.Button,{variant:"link",style:{padding:0,marginTop:1,marginLeft:8,verticalAlign:"top"},children:m.jsx(be.OutlinedQuestionCircleIcon,{})})]})}):m.jsx(C.Title,{"data-cy":"page-title",headingLevel:"h1",children:t}):m.jsx(C.Title,{headingLevel:"h1",children:m.jsx(C.Skeleton,{width:"160px"})}),l&&n&&m.jsx("div",{"data-cy":"app-description",style:{paddingTop:s?4:2,opacity:.8},children:n})]}),t&&(i||r)&&m.jsxs(C.Flex,{"data-cy":"manage-view",direction:{default:"column"},spaceItems:{default:"spaceItemsSm",xl:"spaceItemsMd"},justifyContent:{default:"justifyContentCenter"},children:[r&&m.jsx(C.FlexItem,{grow:{default:"grow"},children:r}),i&&m.jsx(C.FlexItem,{children:i})]})]}),o]})})}function nD(){return m.jsx(C.PageSection,{isFilled:!0,variant:"light",children:m.jsx(C.Bullseye,{children:m.jsx(C.Spinner,{})})})}function rD(e){return m.jsxs(v.Fragment,{children:[m.jsx(Db,{breadcrumbs:e.breadcrumbs?[{label:m.jsx(C.Skeleton,{width:"150px"}),isLoading:!0}]:void 0,title:m.jsx(C.Skeleton,{width:"200px"})}),e.tabs&&m.jsx(C.PageSection,{variant:"light",style:{paddingTop:8,paddingBottom:8},children:m.jsx(C.Skeleton,{width:"150px"})}),m.jsx(C.Divider,{}),m.jsx(nD,{})]})}var Zs=(e=>(e.Default="default",e.Green="green",e.Success="success",e.Blue="blue",e.Info="info",e.Red="red",e.Danger="danger",e.Yellow="yellow",e.Orange="orange",e.Warning="warning",e.Grey="grey",e.Disabled="disabled",e))(Zs||{});function Lo(e){switch(e){case"default":return;case"green":case"success":return Qh;case"red":case"danger":return em;case"yellow":case"orange":case"warning":return Pb;case"blue":case"info":return tm;case"grey":case"disabled":return nm}}const Qh="var(--pf-v5-global--success-color--100)",em="var(--pf-v5-global--danger-color--100)",Pb="var(--pf-v5-global--warning-color--100)",tm="var(--pf-v5-global--info-color--100)",nm="var(--pf-v5-global--disabled-color--100)",iD="var(--pf-v5-global--link--Color)",oD="var(--pf-v5-global--danger-color--100)";var jb=(e=>(e.blue="blue",e.cyan="cyan",e.green="green",e.orange="orange",e.purple="purple",e.red="red",e.grey="grey",e))(jb||{});const aD=v[typeof document<"u"&&document.createElement!==void 0?"useLayoutEffect":"useEffect"],sD=e=>{const t=T.useRef(e);return T.useEffect(()=>{t.current=e}),t};function lD(){}function Pa(e,t,n={}){const r=uD(n.polyfill),i=sD(t);return aD(()=>{let o=!1;const a=e&&"current"in e?e.current:e;if(!a)return lD;function s(l,c){o||i.current(l,c)}return r.subscribe(a,s),()=>{o=!0,r.unsubscribe(a,s)}},[e,r,i]),r.observer}function cD(e){let t=!1,n=[];const r=new Map,i=new(e||window.ResizeObserver)((o,a)=>{n=n.concat(o);function s(){const l=new Set;for(let c=0;c<n.length;c++){if(l.has(n[c].target))continue;l.add(n[c].target);const u=r.get(n[c].target);u==null||u.forEach(d=>d(n[c],a))}n=[],t=!1}t||window.requestAnimationFrame(s),t=!0});return{observer:i,subscribe(o,a){var s;i.observe(o);const l=(s=r.get(o))!==null&&s!==void 0?s:[];l.push(a),r.set(o,l)},unsubscribe(o,a){var s;const l=(s=r.get(o))!==null&&s!==void 0?s:[];if(l.length===1){i.unobserve(o),r.delete(o);return}const c=l.indexOf(a);c!==-1&&l.splice(c,1),r.set(o,l)}}}let rm;const uD=e=>rm||(rm=cD(e));function Jn(e){const t=v.useRef(null),[n,r]=v.useState(!1),[i,o]=v.useState(!1),a=v.useCallback(()=>{if(!t.current)return;r(t.current.scrollTop>0);const c=t.current.scrollHeight-t.current.scrollTop-t.current.clientHeight-1;o(c>.1)},[]);v.useEffect(()=>a(),[a,e.children]),Pa(t,()=>a());const s=["scrollable-inner"];e.borderTop&&s.push("border-top"),e.borderBottom&&s.push("border-bottom");const l=s.join(" ");return m.jsxs("div",{className:`scrollable-outer ${e.className}`,style:e.style,children:[m.jsx("div",{className:l,ref:t,onScroll:a,children:e.children}),n&&m.jsx("div",{className:"scrollable-shadow-top"}),i&&m.jsx("div",{className:"scrollable-shadow-bottom"})]})}var st=(e=>(e[e.Button=0]="Button",e[e.Link=1]="Link",e[e.Switch=2]="Switch",e[e.Dropdown=3]="Dropdown",e[e.Seperator=4]="Seperator",e))(st||{}),Ge=(e=>(e[e.None=0]="None",e[e.Single=1]="Single",e[e.Multiple=2]="Multiple",e))(Ge||{});function ui(e){const t=v.useId();return Wr(e)||t}function Wr(e){if(typeof e=="string")return e.toLowerCase().replace(/ /g,"-").replace(/_/g,"-").replace(/\./g,"-");if(e.id)return e.id;if(e.name)return e.name.toLowerCase().replace(/ /g,"-").replace(/_/g,"-").replace(/\./g,"-");if(e.title)return e.title.toLowerCase().replace(/ /g,"-").replace(/_/g,"-").replace(/\./g,"-");if(e.label)return e.label.toLowerCase().replace(/ /g,"-").replace(/_/g,"-").replace(/\./g,"-")}function Mb(e,t){if(!("selection"in e))return!1;switch(e.selection){case Ge.None:if(e.isHidden)return e.isHidden();break;case Ge.Single:if(e.isHidden)return t?e.isHidden(t):!0;break}return!1}function du(){const[e]=$t();return v.useCallback((t,n,r)=>{if("selection"in t){if(typeof t.isDisabled=="string")return t.isDisabled;if(t.isDisabled)switch(t.selection){case Ge.None:return t.isDisabled();case Ge.Single:return n?t.isDisabled(n):e.noSelection;case Ge.Multiple:return r?t.isDisabled(r):e.noSelections}}},[e.noSelection,e.noSelections])}function dD(e,t,n,r){if(t)return t;if(e.tooltip)return e.tooltip;if(n)return r?e.label:e.labelOff??e.label}function $b(e){const{action:t,wrapper:n,selectedItem:r,iconOnly:i}=e,a=du()(t,r),s=n??v.Fragment,l=r&&t.isSwitchOn?t.isSwitchOn(r):!1,c=dD(t,a,i??!1,l),u=v.useId();let d=t.label;i&&t.showPinnedLabel!==!0&&(d=void 0);let f=t.labelOff;return i&&t.showPinnedLabel!==!0&&(f=void 0),m.jsx(s,{children:m.jsx("div",{"data-cy":"toggle-switch",style:{marginLeft:i?16:void 0,marginRight:i?16:void 0},children:m.jsx(C.Tooltip,{content:c,trigger:c?void 0:"manual",children:m.jsx(C.Switch,{id:u,"aria-label":t.ariaLabel(l),label:d,labelOff:f,isChecked:l,hasCheckIcon:!0,isDisabled:!!a,onChange:()=>{switch(t.selection){case Ge.None:t.onToggle(!l);break;case Ge.Single:r&&t.onToggle(r,!l);break}},isReversed:(t==null?void 0:t.isReversed)!==void 0?t.isReversed:i})})})})}const fD=Ae.div`
110
110
  --pf-v5-c-dropdown__menu-item-icon--Width: ${({$hasSwitches:e})=>e?"40px":void 0};
111
111
  --pf-v5-c-dropdown__menu-item-icon--MarginRight: ${({$hasSwitches:e})=>e?"16px":void 0};
112
112
  --pf-v5-c-dropdown__menu-item--Color: ${({$isDanger:e})=>e?"var(--pf-v5-global--danger-color--100)":void 0};
@@ -434,7 +434,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[lu]+=1);const cu=Ae.button`
434
434
  display: flex;
435
435
  gap: 6px;
436
436
  align-items: baseline;
437
- `;function _6(e){const{item:t,itemToCardFn:n,isSelected:r,selectItem:i,unselectItem:o,itemActions:a,showSelect:s,defaultCardSubtitle:l}=e,c=v.useMemo(()=>n(t),[t,n]),u=!!(r!=null&&r(t)),d=v.useCallback(()=>{r!=null&&r(t)?o==null||o(t):i==null||i(t)},[r,t,i,o]);return m.jsxs(C.Card,{id:`card-${c.id}`,ouiaId:c.id,isFlat:!0,isLarge:!0,isRounded:!0,isSelectable:s,isSelected:u,isClickable:s,style:{transition:"box-shadow 0.25s",cursor:"default",maxWidth:"100%"},children:[m.jsx(C.CardHeader,{selectableActions:s?{selectableActionId:`card-${c.id}-checkbox`,onChange:d}:void 0,style:{display:"flex",flexWrap:"nowrap",maxWidth:"100%"},children:m.jsxs(fde,{children:[m.jsxs(mde,{children:[c.iconAboveTitle?null:c.icon&&m.jsx(ll,{size:"xl",children:c.icon}),m.jsxs(gde,{children:[c.iconAboveTitle?m.jsx(hde,{children:c.icon&&m.jsx(ll,{size:"xl",children:c.icon})}):null,m.jsx(C.CardTitle,{children:c.title}),c.subtitle?m.jsx(C.Text,{component:"small",style:{opacity:.7},children:c.subtitle}):l&&m.jsx(C.Text,{component:"small",style:{opacity:.7},children:l})]})]}),c.badge&&c.badgeTooltip&&m.jsx(C.FlexItem,{children:m.jsx("div",{onClick:f=>f.stopPropagation(),children:m.jsx(C.Popover,{headerContent:c.badgeTooltipTitle,bodyContent:c.badgeTooltip,children:m.jsx(C.Label,{color:c.badgeColor,children:c.badge})})})}),c.badge&&!c.badgeTooltip&&m.jsx(C.FlexItem,{children:m.jsx(C.Label,{color:c.badgeColor,children:c.badge})})]})}),m.jsx("div",{style:{overflow:"hidden",display:"flex",paddingBottom:16,flexGrow:1},children:m.jsx(Jn,{children:c.cardBody})}),(c.labels||a&&a.length)&&m.jsx(C.CardFooter,{children:m.jsxs(pde,{children:[m.jsx(yde,{children:c.labels&&m.jsx(C.LabelGroup,{numLabels:999,children:c.labels.map(f=>m.jsx(C.Label,{color:f.color,icon:f.icon,variant:f.variant,children:m.jsx(C.Truncate,{content:f.label,style:{minWidth:0}})},f.label))})}),a&&a.length&&m.jsx("div",{style:{marginRight:-16,alignSelf:"end",justifySelf:"flex-end",flexGrow:1},children:m.jsx(zr,{actions:a,position:"right",selectedItem:t,iconOnly:!0})})]})}),c.alertTitle&&m.jsx(C.Alert,{title:c.alertTitle,isInline:!0,variant:c.alertVariant,children:c.alertContent})]},c.id??c.title)}function S6(e,t){const n=v.useMemo(()=>{let c,u,d;const f=[];let h;const g=[];for(const p of e)if(p.card!=="hidden")switch(p.type){case"description":d||(d=p);break;case"labels":h||(h=p);break;case"count":f.push(p);break;default:switch(p.card){case"name":c=p;break;case"subtitle":u=p;break;case"description":d=p;break;default:g.push(p);break}break}return{nameColumn:c,subtitleColumn:u,descriptionColumn:d,countColumns:f,cardColumns:g,labelColumn:h}},[e]),{nameColumn:r,subtitleColumn:i,descriptionColumn:o,countColumns:a,cardColumns:s,labelColumn:l}=n;return v.useMemo(()=>c=>{var y,b;let u=!!o;o!=null&&o.value&&!o.value(c)&&(u=!1);const d=s.filter(x=>!x.value||x.value(c)),f=r&&"to"in r?r.to:void 0;let h=r&&"value"in r?r.value:void 0;h||(h=r&&"cell"in r?r.cell:void 0);const g=(h==null?void 0:h(c))??"",p={id:t(c),icon:(y=r==null?void 0:r.icon)==null?void 0:y.call(r,c),title:m.jsx(wt.Link,{to:(f==null?void 0:f(c))??"",style:{whiteSpace:"normal",textWrap:"balance"},children:typeof g=="string"?g.split("/").map((x,S)=>m.jsx("div",{children:x},S)):(h==null?void 0:h(c))??""}),subtitle:i&&(!i.value||i.value(c))&&m.jsx(ln,{column:i,item:c}),cardBody:m.jsxs(C.DescriptionList,{isCompact:!0,style:{paddingLeft:32,paddingRight:32},children:[u&&o&&m.jsx(Ds,{children:o.type==="description"?m.jsx("div",{children:o.value(c)}):m.jsx(ln,{column:o,item:c})},o.id??o.header),d.map(x=>m.jsx(Ds,{label:x.header,children:m.jsx(ln,{column:x,item:c})},x.id??x.header)),a.length>0&&m.jsx(Ds,{children:m.jsx(b6,{children:a.map((x,S)=>m.jsxs(x6,{children:[m.jsx(ln,{column:x,item:c}),m.jsx(v6,{children:x.header})]},S))})},"count-columns")]}),labels:l&&((b=l.value(c))==null?void 0:b.map(x=>({label:x})))};return!u&&d.length===0&&a.length===0&&(p.cardBody=m.jsx("div",{style:{flexGrow:1}})),p},[s,a,o,l,r,i,t])}function sy(e){const{keyFn:t,pageItems:n,tableColumns:r,isSelected:i,selectItem:o,unselectItem:a,rowActions:s,showSelect:l,defaultSubtitle:c}=e,u=S6(r,t),d=v.useMemo(()=>m.jsx(dde,{size:400,children:n==null?void 0:n.map(f=>m.jsx(_6,{item:f,itemToCardFn:u,isSelected:i,selectItem:o,unselectItem:a,itemActions:s,showSelect:l,defaultCardSubtitle:c},t(f)))}),[n,t,u,i,o,a,s,l,c]);return m.jsx(C.PageSection,{style:{flexGrow:1},children:d})}function w6(e){const{keyFn:t,pageItems:n,tableColumns:r,isSelected:i,selectItem:o,unselectItem:a,rowActions:s,defaultSubtitle:l,showSelect:c}=e,u=vde(r,t,i,o,a,s,l,c);return m.jsx(C.DataList,{"aria-label":"TODO",style:{marginTop:-1,maxWidth:"100%",overflow:"hidden"},children:n==null?void 0:n.map(u)})}function vde(e,t,n,r,i,o,a,s){const l=v.useMemo(()=>{let b,x,S;const w=[];let _;const E=[],O=[];for(const k of e)if(k.list!=="hidden")switch(k.type){case"description":S||(S=k);break;case"labels":_||(_=k);break;case"count":w.push(k);break;default:switch(k.list){case"name":b=k;break;case"subtitle":x=k;break;case"description":S=k;break;case"secondary":O.push(k);break;default:E.push(k);break}break}return{nameColumn:b,subtitleColumn:x,descriptionColumn:S,countColumns:w,primaryColumns:E,secondaryColumns:O,labelColumn:_}},[e]),c=v.useCallback(b=>{n!=null&&n(b)?i==null||i(b):r==null||r(b)},[n,r,i]),{nameColumn:u,subtitleColumn:d,descriptionColumn:f,countColumns:h,primaryColumns:g,secondaryColumns:p,labelColumn:y}=l;return v.useCallback(b=>{const x=t(b),S=n==null?void 0:n(b);return m.jsx(C.DataListItem,{"aria-labelledby":`data-list-${x}`,isExpanded:S,children:m.jsxs(C.DataListItemRow,{children:[s&&m.jsx(C.DataListCheck,{"aria-labelledby":`data-list-check-${x}`,name:`data-list-check-${x}`,isChecked:n==null?void 0:n(b),onClick:()=>c(b),"data-cy":"data-list-check"}),m.jsx(C.DataListItemCells,{dataListCells:[m.jsx(C.DataListCell,{width:5,children:m.jsx(C.Flex,{children:m.jsxs(C.Stack,{hasGutter:!0,children:[m.jsxs(C.Flex,{alignItems:{default:"alignItemsCenter"},children:[(u==null?void 0:u.icon)&&m.jsx(ll,{size:"xl",children:u==null?void 0:u.icon(b)}),m.jsxs(C.Stack,{children:[m.jsx(C.Title,{headingLevel:"h2",style:{marginTop:-4,fontWeight:"bold"},"data-cy":"data-list-name",children:m.jsx("span",{id:`data-list-${x}`,children:m.jsx(ln,{column:u,item:b})})}),d?m.jsx(C.Text,{component:"small",style:{opacity:.7},children:m.jsx(ln,{column:d,item:b})}):a&&m.jsx(C.Text,{component:"small",style:{opacity:.7},children:a})]})]}),(f||g.length>0||h.length>0||y)&&m.jsxs(C.DescriptionList,{isCompact:!0,children:[f&&(!f.value||f.value(b))&&m.jsx(C.DescriptionListGroup,{children:m.jsx(C.DescriptionListDescription,{children:m.jsx(ln,{column:f,item:b})})},f.header),g.map(w=>w.value&&!w.value(b)?m.jsx(m.Fragment,{}):m.jsxs(C.DescriptionListGroup,{children:[m.jsx(C.DescriptionListTerm,{style:{whiteSpace:"nowrap",opacity:.6},children:w.header}),m.jsx(C.DescriptionListDescription,{children:m.jsx(ln,{column:w,item:b})})]},w.header)),h.length>0&&m.jsx(C.DescriptionListGroup,{children:m.jsx(C.DescriptionListDescription,{children:m.jsx("div",{style:{display:"flex",gap:16,marginTop:8,flexWrap:"wrap"},children:h.map((w,_)=>m.jsxs("div",{style:{display:"flex",gap:6,alignItems:"baseline"},children:[m.jsx(ln,{column:w,item:b}),m.jsx("small",{style:{opacity:.7},children:w.header})]},_))})})},"counts"),y&&m.jsxs(m.Fragment,{children:[m.jsx("div",{style:{flexGrow:1}}),m.jsx(C.DescriptionListGroup,{children:m.jsx(C.DescriptionListDescription,{children:m.jsx(ln,{column:y,item:b})})},y.header)]})]})]})})},"primary"),p.length>0?m.jsx(C.DataListCell,{children:m.jsx(C.DescriptionList,{isCompact:!0,children:p.map(w=>w.value&&!w.value(b)?m.jsx(m.Fragment,{}):m.jsxs(C.DescriptionListGroup,{children:[m.jsx(C.DescriptionListTerm,{style:{whiteSpace:"nowrap",opacity:.6},children:w.header}),m.jsx(C.DescriptionListDescription,{children:m.jsx(ln,{column:w,item:b})})]},w.header))})},"secondary"):null]}),o&&m.jsx(C.DataListAction,{"aria-labelledby":"check-action-item1 check-action-action1",id:"check-action-action1","aria-label":"Actions",isPlainButtonAction:!0,style:{whiteSpace:"nowrap"},"data-cy":"data-list-action",children:m.jsx(zr,{actions:o,position:"right",selectedItem:b,iconOnly:!0,collapse:"always"})})]})},x)},[t,n,s,u,d,a,g,f,h,y,p,o,c])}const bde=Ae.div`
437
+ `;function _6(e){const{item:t,itemToCardFn:n,isSelected:r,selectItem:i,unselectItem:o,itemActions:a,showSelect:s,defaultCardSubtitle:l}=e,c=v.useMemo(()=>n(t),[t,n]),u=!!(r!=null&&r(t)),d=v.useCallback(()=>{r!=null&&r(t)?o==null||o(t):i==null||i(t)},[r,t,i,o]);return m.jsxs(C.Card,{id:`card-${c.id}`,ouiaId:c.id,isFlat:!0,isLarge:!0,isRounded:!0,isSelectable:s,isSelected:u,isClickable:s,style:{transition:"box-shadow 0.25s",cursor:"default",maxWidth:"100%"},children:[m.jsx(C.CardHeader,{selectableActions:s?{selectableActionId:`card-${c.id}-checkbox`,onChange:d}:void 0,style:{display:"flex",flexWrap:"nowrap",maxWidth:"100%"},children:m.jsxs(fde,{children:[m.jsxs(mde,{children:[c.iconAboveTitle?null:c.icon&&m.jsx(ll,{size:"xl",children:c.icon}),m.jsxs(gde,{children:[c.iconAboveTitle?m.jsx(hde,{children:c.icon&&m.jsx(ll,{size:"xl",children:c.icon})}):null,m.jsx(C.CardTitle,{children:c.title}),c.subtitle?m.jsx(C.Text,{component:"small",style:{opacity:.7},children:c.subtitle}):l&&m.jsx(C.Text,{component:"small",style:{opacity:.7},children:l})]})]}),c.badge&&c.badgeTooltip&&m.jsx(C.FlexItem,{children:m.jsx("div",{onClick:f=>f.stopPropagation(),children:m.jsx(C.Popover,{headerContent:c.badgeTooltipTitle,bodyContent:c.badgeTooltip,children:m.jsx(C.Label,{color:c.badgeColor,children:c.badge})})})}),c.badge&&!c.badgeTooltip&&m.jsx(C.FlexItem,{children:m.jsx(C.Label,{color:c.badgeColor,children:c.badge})})]})}),m.jsx("div",{style:{overflow:"hidden",display:"flex",paddingBottom:16,flexGrow:1},children:m.jsx(Jn,{children:c.cardBody})}),c.labels||a&&a.length?m.jsx(C.CardFooter,{children:m.jsxs(pde,{children:[m.jsx(yde,{children:c.labels&&m.jsx(C.LabelGroup,{numLabels:999,children:c.labels.map(f=>m.jsx(C.Label,{color:f.color,icon:f.icon,variant:f.variant,children:m.jsx(C.Truncate,{content:f.label,style:{minWidth:0}})},f.label))})}),a&&a.length?m.jsx("div",{style:{marginRight:-16,alignSelf:"end",justifySelf:"flex-end",flexGrow:1},children:m.jsx(zr,{actions:a,position:"right",selectedItem:t,iconOnly:!0})}):null]})}):null,c.alertTitle&&m.jsx(C.Alert,{title:c.alertTitle,isInline:!0,variant:c.alertVariant,children:c.alertContent})]},c.id??c.title)}function S6(e,t){const n=v.useMemo(()=>{let c,u,d;const f=[];let h;const g=[];for(const p of e)if(p.card!=="hidden")switch(p.type){case"description":d||(d=p);break;case"labels":h||(h=p);break;case"count":f.push(p);break;default:switch(p.card){case"name":c=p;break;case"subtitle":u=p;break;case"description":d=p;break;default:g.push(p);break}break}return{nameColumn:c,subtitleColumn:u,descriptionColumn:d,countColumns:f,cardColumns:g,labelColumn:h}},[e]),{nameColumn:r,subtitleColumn:i,descriptionColumn:o,countColumns:a,cardColumns:s,labelColumn:l}=n;return v.useMemo(()=>c=>{var y,b;let u=!!o;o!=null&&o.value&&!o.value(c)&&(u=!1);const d=s.filter(x=>!x.value||x.value(c)),f=r&&"to"in r?r.to:void 0;let h=r&&"value"in r?r.value:void 0;h||(h=r&&"cell"in r?r.cell:void 0);const g=(h==null?void 0:h(c))??"",p={id:t(c),icon:(y=r==null?void 0:r.icon)==null?void 0:y.call(r,c),title:m.jsx(wt.Link,{to:(f==null?void 0:f(c))??"",style:{whiteSpace:"normal",textWrap:"balance"},children:typeof g=="string"?g.split("/").map((x,S)=>m.jsx("div",{children:x},S)):(h==null?void 0:h(c))??""}),subtitle:i&&(!i.value||i.value(c))&&m.jsx(ln,{column:i,item:c}),cardBody:m.jsxs(C.DescriptionList,{isCompact:!0,style:{paddingLeft:32,paddingRight:32},children:[u&&o&&m.jsx(Ds,{children:o.type==="description"?m.jsx("div",{children:o.value(c)}):m.jsx(ln,{column:o,item:c})},o.id??o.header),d.map(x=>m.jsx(Ds,{label:x.header,children:m.jsx(ln,{column:x,item:c})},x.id??x.header)),a.length>0&&m.jsx(Ds,{children:m.jsx(b6,{children:a.map((x,S)=>m.jsxs(x6,{children:[m.jsx(ln,{column:x,item:c}),m.jsx(v6,{children:x.header})]},S))})},"count-columns")]}),labels:l&&((b=l.value(c))==null?void 0:b.map(x=>({label:x})))};return!u&&d.length===0&&a.length===0&&(p.cardBody=m.jsx("div",{style:{flexGrow:1}})),p},[s,a,o,l,r,i,t])}function sy(e){const{keyFn:t,pageItems:n,tableColumns:r,isSelected:i,selectItem:o,unselectItem:a,rowActions:s,showSelect:l,defaultSubtitle:c}=e,u=S6(r,t),d=v.useMemo(()=>m.jsx(dde,{size:400,children:n==null?void 0:n.map(f=>m.jsx(_6,{item:f,itemToCardFn:u,isSelected:i,selectItem:o,unselectItem:a,itemActions:s,showSelect:l,defaultCardSubtitle:c},t(f)))}),[n,t,u,i,o,a,s,l,c]);return m.jsx(C.PageSection,{style:{flexGrow:1},children:d})}function w6(e){const{keyFn:t,pageItems:n,tableColumns:r,isSelected:i,selectItem:o,unselectItem:a,rowActions:s,defaultSubtitle:l,showSelect:c}=e,u=vde(r,t,i,o,a,s,l,c);return m.jsx(C.DataList,{"aria-label":"TODO",style:{marginTop:-1,maxWidth:"100%",overflow:"hidden"},children:n==null?void 0:n.map(u)})}function vde(e,t,n,r,i,o,a,s){const l=v.useMemo(()=>{let b,x,S;const w=[];let _;const E=[],O=[];for(const k of e)if(k.list!=="hidden")switch(k.type){case"description":S||(S=k);break;case"labels":_||(_=k);break;case"count":w.push(k);break;default:switch(k.list){case"name":b=k;break;case"subtitle":x=k;break;case"description":S=k;break;case"secondary":O.push(k);break;default:E.push(k);break}break}return{nameColumn:b,subtitleColumn:x,descriptionColumn:S,countColumns:w,primaryColumns:E,secondaryColumns:O,labelColumn:_}},[e]),c=v.useCallback(b=>{n!=null&&n(b)?i==null||i(b):r==null||r(b)},[n,r,i]),{nameColumn:u,subtitleColumn:d,descriptionColumn:f,countColumns:h,primaryColumns:g,secondaryColumns:p,labelColumn:y}=l;return v.useCallback(b=>{const x=t(b),S=n==null?void 0:n(b);return m.jsx(C.DataListItem,{"aria-labelledby":`data-list-${x}`,isExpanded:S,children:m.jsxs(C.DataListItemRow,{children:[s&&m.jsx(C.DataListCheck,{"aria-labelledby":`data-list-check-${x}`,name:`data-list-check-${x}`,isChecked:n==null?void 0:n(b),onClick:()=>c(b),"data-cy":"data-list-check"}),m.jsx(C.DataListItemCells,{dataListCells:[m.jsx(C.DataListCell,{width:5,children:m.jsx(C.Flex,{children:m.jsxs(C.Stack,{hasGutter:!0,children:[m.jsxs(C.Flex,{alignItems:{default:"alignItemsCenter"},children:[(u==null?void 0:u.icon)&&m.jsx(ll,{size:"xl",children:u==null?void 0:u.icon(b)}),m.jsxs(C.Stack,{children:[m.jsx(C.Title,{headingLevel:"h2",style:{marginTop:-4,fontWeight:"bold"},"data-cy":"data-list-name",children:m.jsx("span",{id:`data-list-${x}`,children:m.jsx(ln,{column:u,item:b})})}),d?m.jsx(C.Text,{component:"small",style:{opacity:.7},children:m.jsx(ln,{column:d,item:b})}):a&&m.jsx(C.Text,{component:"small",style:{opacity:.7},children:a})]})]}),(f||g.length>0||h.length>0||y)&&m.jsxs(C.DescriptionList,{isCompact:!0,children:[f&&(!f.value||f.value(b))&&m.jsx(C.DescriptionListGroup,{children:m.jsx(C.DescriptionListDescription,{children:m.jsx(ln,{column:f,item:b})})},f.header),g.map(w=>w.value&&!w.value(b)?m.jsx(m.Fragment,{}):m.jsxs(C.DescriptionListGroup,{children:[m.jsx(C.DescriptionListTerm,{style:{whiteSpace:"nowrap",opacity:.6},children:w.header}),m.jsx(C.DescriptionListDescription,{children:m.jsx(ln,{column:w,item:b})})]},w.header)),h.length>0&&m.jsx(C.DescriptionListGroup,{children:m.jsx(C.DescriptionListDescription,{children:m.jsx("div",{style:{display:"flex",gap:16,marginTop:8,flexWrap:"wrap"},children:h.map((w,_)=>m.jsxs("div",{style:{display:"flex",gap:6,alignItems:"baseline"},children:[m.jsx(ln,{column:w,item:b}),m.jsx("small",{style:{opacity:.7},children:w.header})]},_))})})},"counts"),y&&m.jsxs(m.Fragment,{children:[m.jsx("div",{style:{flexGrow:1}}),m.jsx(C.DescriptionListGroup,{children:m.jsx(C.DescriptionListDescription,{children:m.jsx(ln,{column:y,item:b})})},y.header)]})]})]})})},"primary"),p.length>0?m.jsx(C.DataListCell,{children:m.jsx(C.DescriptionList,{isCompact:!0,children:p.map(w=>w.value&&!w.value(b)?m.jsx(m.Fragment,{}):m.jsxs(C.DescriptionListGroup,{children:[m.jsx(C.DescriptionListTerm,{style:{whiteSpace:"nowrap",opacity:.6},children:w.header}),m.jsx(C.DescriptionListDescription,{children:m.jsx(ln,{column:w,item:b})})]},w.header))})},"secondary"):null]}),o&&m.jsx(C.DataListAction,{"aria-labelledby":"check-action-item1 check-action-action1",id:"check-action-action1","aria-label":"Actions",isPlainButtonAction:!0,style:{whiteSpace:"nowrap"},"data-cy":"data-list-action",children:m.jsx(zr,{actions:o,position:"right",selectedItem:b,iconOnly:!0,collapse:"always"})})]})},x)},[t,n,s,u,d,a,g,f,h,y,p,o,c])}const bde=Ae.div`
438
438
  flex: 1;
439
439
  `;function ac(e){const{id:t,toolbarActions:n,filterState:r,error:i,itemCount:o}=e,{t:a}=$e(),s=e.showSelect||(n==null?void 0:n.find(b=>"selection"in b&&b.selection===Ge.Multiple))!==void 0,l=!e.disableTableView,c=!e.disableListView,[u,d]=v.useState(()=>{switch(e.id?localStorage.getItem(e.id+"-view"):void 0){case"table":return it.Table;case"list":return it.List;case"cards":return it.Cards}return e.defaultTableView??(l?it.Table:c?it.List:it.Cards)}),f=v.useCallback(b=>{d(b),e.id&&localStorage.setItem(e.id+"-view",b)},[e.id]),{openColumnManagement:h,managedColumns:g}=lde((t??"")+"-columns",e.tableColumns,u!==it.Table,u!==it.List,u!==it.Cards),p=Zue(e.tableColumns);if(i)return m.jsx(ede,{titleProp:e.errorStateTitle,message:i.message});if(o===0&&Object.keys(r??{}).length===0)return e.emptyState?e.emptyState:m.jsx(nde,{title:e.emptyStateTitle??a`No data`,description:e.emptyStateDescription,icon:e.emptyStateNoDataIcon,button:e.emptyStateButtonClick&&m.jsx(C.Button,{"data-cy":e.emptyStateButtonText?wde(e.emptyStateButtonText):"create-resource",variant:"primary",onClick:e.emptyStateButtonClick,icon:e.emptyStateButtonIcon?e.emptyStateButtonIcon:null,children:e.emptyStateButtonText})||e.emptyStateActions&&m.jsx(C.Flex,{justifyContent:{default:"justifyContentCenter"},children:m.jsx(zr,{actions:e.emptyStateActions})})});let y=e.topContent;return y&&(y=m.jsx(C.PageSection,{variant:"light",padding:{default:"noPadding"},style:{borderBottom:"thin solid var(--pf-v5-global--BorderColor--100)"},children:e.topContent})),m.jsxs(m.Fragment,{children:[m.jsx(h6,{...e,openColumnModal:e.id?h:void 0,showSelect:s,viewType:u,setViewType:f,sortOptions:p,limitFiltersToOneOrOperation:e.limitFiltersToOneOrOperation}),u===it.Table&&m.jsx(m.Fragment,{children:e.scrollTopContent?m.jsxs(Jn,{children:[y,!e.hideTable&&m.jsx(C6,{...e,tableColumns:g})]}):m.jsxs(m.Fragment,{children:[y,!e.hideTable&&m.jsx(C6,{...e,tableColumns:g})]})}),u===it.List&&m.jsx(m.Fragment,{children:e.scrollTopContent?m.jsxs(Jn,{children:[y,m.jsx(C.PageSection,{padding:{default:"noPadding"},children:!e.hideTable&&m.jsx(w6,{...e,showSelect:s,tableColumns:g})})]}):m.jsxs(m.Fragment,{children:[y,m.jsx(Jn,{children:m.jsx(C.PageSection,{padding:{default:"noPadding"},children:!e.hideTable&&m.jsx(w6,{...e,showSelect:s,tableColumns:g})})})]})}),u===it.Cards&&m.jsx(m.Fragment,{children:e.scrollTopContent?m.jsxs(Jn,{children:[y,!e.hideTable&&m.jsx(sy,{...e,showSelect:s,tableColumns:g})]}):m.jsxs(m.Fragment,{children:[y,m.jsx(Jn,{children:!e.hideTable&&m.jsx(sy,{...e,showSelect:s,tableColumns:g})})]})}),!e.disablePagination&&(!e.autoHidePagination||(e.itemCount??0)>e.perPage)&&m.jsx(ude,{...e,topBorder:!e.autoHidePagination})]})}function C6(e){const{pageItems:t,selectItem:n,unselectItem:r,isSelected:i,isSelectMultiple:o,keyFn:a,rowActions:s,toolbarActions:l,itemCount:c,clearAllFilters:u,onSelect:d,unselectAll:f,maxSelections:h}=e,g=Jp(e.tableColumns),p=HO(e.tableColumns),y=GO(e.tableColumns),b=v.useMemo(()=>{const A=[];if(p.length)for(const j of p)"value"in j?A.push($=>{var H;const I=(H=j.value)==null?void 0:H.call(j,$);if(I)return m.jsx("div",{children:I},j.id??j.header)}):A.push($=>j.cell($));return y.length&&A.push(j=>y.some(I=>{var H;return((H=I.value)==null?void 0:H.call(I,j))!==void 0})?m.jsx(NO,{disablePadding:!0,numberOfColumns:"multiple",labelOrientation:"vertical",isCompact:!0,disableScroll:!0,children:m.jsx(KO,{item:j,columns:y},a(j))}):null),e.expandedRow&&A.push(e.expandedRow),A.length===0?void 0:j=>A.map(I=>I(j)).filter(I=>I!=null).length===0?null:m.jsx(C.Stack,{hasGutter:!0,children:A.map(I=>I(j))})},[p,y,a,e.expandedRow]),[x]=$t(),S=e.showSelect||(l==null?void 0:l.find(A=>"selection"in A&&A.selection===Ge.Multiple))!==void 0,w=v.useRef(null),[_,E]=v.useState({left:0,right:0,top:0,bottom:0}),O=v.useCallback(A=>{A&&E({top:A.scrollTop,bottom:A.scrollHeight-A.clientHeight-A.scrollTop,left:A.scrollLeft,right:A.scrollWidth-A.clientWidth-A.scrollLeft})},[]),k=v.useCallback(A=>O(A.currentTarget),[O]);Pa(w,()=>O(w.current)),v.useEffect(()=>O(w.current),[O]);const D=Vo();let P;return e.itemCount===void 0||t===void 0?P=m.jsx(cde,{}):P=m.jsxs(m.Fragment,{children:[m.jsxs(Fe.Table,{"aria-label":"Simple table",ouiaId:"simple-table",variant:e.compact||D.tableLayout==="compact"?"compact":void 0,borders:!e.borderless,gridBreakPoint:"",isStickyHeader:!0,className:"page-table",children:[m.jsx(xde,{...e,showSelect:S,scrollLeft:_.left>0,scrollRight:_.right>1,tableColumns:g,onSelect:d,expandedRow:b}),m.jsx(Fe.Tbody,{children:t.map((A,M)=>m.jsx(_de,{columns:g,item:A,isItemSelected:i==null?void 0:i(A),isSelectMultiple:o,selectItem:n,unselectItem:r,rowActions:s,rowIndex:M,showSelect:S,scrollLeft:_.left>0,scrollRight:_.right>1,unselectAll:f,onSelect:d,expandedRow:b,isLastRow:M===t.length-1,disableLastRowBorder:e.disableLastRowBorder,maxSelections:h,selectedItems:e.selectedItems,defaultExpandedRows:e.defaultExpandedRows},a?a(A):M))})]}),c===0&&m.jsxs(C.EmptyState,{isFullHeight:!0,children:[m.jsx(C.EmptyStateHeader,{titleText:m.jsx(m.Fragment,{children:x.noResultsFound}),icon:m.jsx(C.EmptyStateIcon,{icon:e.emptyStateIcon??be.SearchIcon}),headingLevel:"h2"}),m.jsx(C.EmptyStateBody,{children:x.noResultsMatchCriteria}),m.jsx(C.EmptyStateFooter,{children:u&&m.jsx(C.EmptyStateActions,{children:m.jsx(C.Button,{variant:"primary",onClick:u,children:x.clearAllFilters})})})]})]}),e.scrollTopContent||(P=m.jsx(bde,{className:"pf-v5-c-scroll-inner-wrapper",ref:w,onScroll:k,style:{backgroundColor:"var(--pf-v5-global--BackgroundColor--100)"},children:P})),P}function xde(e){const{tableColumns:t,rowActions:n,sort:r,setSort:i,sortDirection:o,setSortDirection:a,showSelect:s,onSelect:l,expandedRow:c}=e,u=v.useCallback((d,f)=>{if(f.sort)return{onSort:(h,g,p)=>{f.sort&&(i==null||i(f.sort),a==null||a(p))},sortBy:{index:f.sort===r?d:void 0,direction:f.sort===r?o:void 0,defaultDirection:f.defaultSortDirection},columnIndex:d}},[i,a,r,o]);return m.jsx(Fe.Thead,{children:m.jsxs(Fe.Tr,{className:"bg-lighten",children:[c&&m.jsx(Fe.Th,{style:{padding:0},"aria-label":"Expand",className:"bg-lighten"}),(s||l)&&m.jsx(Fe.Th,{"aria-label":"Select",isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft,"data-cy":"selections-column-header",className:e.scrollLeft?"bg-lighten-2":"bg-lighten",children:" "}),t.map((d,f)=>m.jsx(Fe.Th,{"aria-label":d.header,sort:u(f,d),modifier:"nowrap",style:{minWidth:d.minWidth===0?"1%":d.minWidth!==void 0?d.minWidth:void 0,maxWidth:d.maxWidth!==void 0?d.maxWidth:void 0,width:d.fullWidth?"100%":void 0},"data-cy":Wr(d.header+"-column-header"),className:"bg-lighten",children:d.header},d.header)),n!==void 0&&m.jsx(Fe.Td,{"aria-label":"Actions",isActionCell:!0,isStickyColumn:!0,stickyMinWidth:"0px",style:{right:0,padding:0,paddingRight:0,zIndex:302},className:e.scrollRight?"pf-m-border-left bg-lighten-2":"bg-lighten","data-cy":"action-column-header",children:" "})]})})}function _de(e){const{columns:t,unselectAll:n,selectItem:r,unselectItem:i,isItemSelected:o,isSelectMultiple:a,item:s,rowActions:l,rowIndex:c,showSelect:u,onSelect:d,expandedRow:f,disableLastRowBorder:h,maxSelections:g,selectedItems:p}=e,y=f==null?void 0:f(s),[b,x]=v.useState(!!e.defaultExpandedRows&&!!y),S=Vo(),w=v.useCallback(_=>(p==null?void 0:p.length)===g?!(p!=null&&p.includes(_)):!1,[g,p]);return m.jsxs(m.Fragment,{children:[m.jsxs(Fe.Tr,{style:{boxShadow:"unset",borderBottom:b||e.isLastRow&&h?"unset":void 0,cursor:d?"pointer":"default"},"data-cy":"id"in s&&(typeof s.id=="string"||typeof s.id=="number")?`row-id-${s.id.toString()}`:`row-${c}`,className:o?"selected":void 0,onClick:()=>{d&&(a||n==null||n(),a&&o?i==null||i(s):r==null||r(s),d(s))},children:[f&&m.jsx(Fe.Td,{expand:y?{rowIndex:c,isExpanded:b,onToggle:()=>x(_=>!_)}:void 0,style:{paddingLeft:y?8:4},"data-cy":"expand-column-cell"}),u&&m.jsx(Fe.Td,{select:o!==void 0?{rowIndex:c,onSelect:(_,E)=>{E?r==null||r(s):i==null||i(s)},isSelected:o,isDisabled:g&&p?w(s):!1}:void 0,isStickyColumn:e.scrollLeft,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft,"data-cy":"checkbox-column-cell",className:e.scrollLeft?"bg-lighten":void 0}),d&&m.jsx(Fe.Td,{select:{rowIndex:c,isSelected:o??!1,variant:a?"checkbox":"radio",isDisabled:g&&p?w(s):!1,props:{"aria-label":"Select row"}},isStickyColumn:e.scrollLeft,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft,"data-cy":"checkbox-column-cell",className:e.scrollLeft?"bg-lighten":void 0}),m.jsx(Sde,{columns:t,item:s,rowActions:l,scrollLeft:e.scrollLeft,scrollRight:e.scrollRight})]}),f&&b&&y&&m.jsxs(Fe.Tr,{isExpanded:b,style:{boxShadow:"unset"},className:o?"selected":void 0,children:[m.jsx(Fe.Td,{}),u&&m.jsx(Fe.Th,{"aria-label":"Select",isStickyColumn:e.scrollLeft,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft,className:e.scrollLeft?"bg-lighten":void 0}),d&&m.jsx(Fe.Td,{isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft}),m.jsx(Fe.Td,{colSpan:t.length,style:{paddingBottom:S.tableLayout==="compact"?12:24,paddingTop:0},children:m.jsx(Fe.CollapseColumn,{children:y})}),l!==void 0&&l.length>0&&m.jsx(Fe.Td,{isActionCell:!0,isStickyColumn:e.scrollRight,stickyMinWidth:"0px",style:{right:0,padding:0,paddingRight:0},className:e.scrollRight?"pf-m-border-left bg-lighten":void 0,children:" "})]})]})}function Sde(e){const{columns:t,item:n,rowActions:r}=e,[i,o]=v.useState(!1);return m.jsxs(v.Fragment,{children:[t.map(a=>m.jsx(Fe.Td,{dataLabel:a.header,modifier:"nowrap",style:{width:a.minWidth===0?"0%":void 0},"data-cy":Wr(a.header+"-column-cell"),children:m.jsx(ln,{item:n,column:a})},a.header)),r!==void 0&&r.length>0&&m.jsx(Fe.Td,{isActionCell:!0,isStickyColumn:e.scrollRight,stickyMinWidth:"0px",style:{right:0,padding:0,paddingRight:8,zIndex:i?400:void 0},"data-cy":"actions-column-cell",className:e.scrollRight?"pf-m-border-left bg-lighten":void 0,children:m.jsx(zr,{actions:r,selectedItem:n,position:"right",iconOnly:!0,onOpen:o})})]})}function wde(e){return e.toLowerCase().split(" ").join("-")}function Cde(){const e=v.useRef(new AbortController);return v.useEffect(()=>{const t=e.current;return()=>t.abort()},[]),e.current}function E6(e){const{title:t,items:n,keyFn:r,actionColumns:i,actionFn:o,onComplete:a,onClose:s,processingText:l,isDanger:c,errorAdapter:u=ic,description:d,statusParser:f}=e,{t:h}=$e(),[g]=$t(),[p,y]=v.useState(!0),[b,x]=v.useState(!1),[S,w]=v.useState(0),[_,E]=v.useState(""),[O,k]=v.useState(),D=Cde(),[P,A]=Li(),M=v.useCallback(()=>{x(!0),D.abort(),y(!1),k(V=>{const W={...V};for(const N of n){const z=r(N);W[z]===void 0&&(W[z]=h("Cancelled"))}return W})},[D,n,r,h]),j=v.useCallback(()=>{A(void 0),s==null||s(b?"canceled":_?"failures":"success",n.filter(V=>(O==null?void 0:O[r(V)])===null||(O==null?void 0:O[r(V)]).message),n.filter(V=>(O==null?void 0:O[r(V)])!==null&&typeof(O==null?void 0:O[r(V)])=="string"),n.filter(V=>(O==null?void 0:O[r(V)])===void 0))},[_,b,n,r,s,A,O]),$=v.useMemo(()=>D.signal.aborted?g.canceledText:_?g.errorText:p?l??g.processingText:g.successText,[D.signal.aborted,_,p,l,g.canceledText,g.errorText,g.processingText,g.successText]),I=v.useMemo(()=>{if(_||b)return C.ProgressVariant.danger;if(S===n.length)return C.ProgressVariant.success},[_,b,n.length,S]);v.useEffect(()=>{function V(z,J){if(D.signal.aborted)return;let ee;f&&(ee=f(J)),k(X=>({...X??{},[z]:ee!==void 0?ee:null}))}function W(z,J,ee){if(!D.signal.aborted){if(ee instanceof Error){const X=typeof J[0].message=="string"&&J.length===1?J[0].message:h("Unknown error");k(Q=>({...Q??{},[z]:X}))}else k(X=>({...X??{},[z]:h("Unknown error")}));E(g.errorText)}}async function N(){const z=zue(5);let J=0;const ee=[];await Promise.all(n.map(X=>z(async()=>{if(D.signal.aborted)return;const Q=r(X);try{const ie=await o(X,D.signal);V(Q,ie),ee.push(X)}catch(ie){const{genericErrors:ue,fieldErrors:de}=u(ie),K=[...ue,...de.filter(ne=>ne.message)];W(Q,K,ie)}finally{D.signal.aborted||w(++J)}}))),D.signal.aborted||y(!1),a==null||a(ee)}N()},[D,o,n,r,a,g.errorText,h,u,f]);const H=oc(n),G=Nf(i);return m.jsxs(C.Modal,{titleIconVariant:c?"warning":void 0,title:t,ouiaId:t,"aria-label":t,description:d,variant:C.ModalVariant.medium,isOpen:!0,onClose:()=>{M(),j()},actions:p?[m.jsx(C.Button,{variant:"link",onClick:M,children:g.cancelText},"cancel")]:[m.jsx(C.Button,{variant:"secondary",onClick:j,children:g.closeText},"close")],hasNoBodyWrapper:!0,children:[m.jsx(C.ModalBoxBody,{style:{paddingBottom:0,paddingLeft:0,paddingRight:0},children:m.jsx("div",{style:{display:"flex",flexDirection:"column",maxHeight:560,overflow:"hidden",borderTop:"thin solid var(--pf-v5-global--BorderColor--100)"},children:m.jsx(ac,{pageItems:[...H.paged],itemCount:n.length,tableColumns:[...G,{header:h("Status"),cell:V=>{const W=r(V),N=O==null?void 0:O[W];return N===void 0?m.jsxs("span",{style:{color:tm},children:[m.jsx(be.PendingIcon,{}),"  ",g.pendingText]}):N===null?m.jsxs("span",{style:{color:Qh},children:[m.jsx(be.CheckCircleIcon,{}),"  ",g.successText]}):N.message&&N.url?m.jsx("a",{href:N.url,children:N.message}):m.jsxs("span",{style:{color:em},children:[m.jsx(be.ExclamationCircleIcon,{}),"  ",O==null?void 0:O[W]]})}}],keyFn:r,compact:!0,errorStateTitle:"",emptyStateTitle:h("No items"),autoHidePagination:!0,disableBodyPadding:!0,...H},"status")})}),m.jsx(C.ModalBoxBody,{style:{paddingTop:0},children:m.jsx(C.Progress,{"data-cy":"progress",value:S/n.length*100,title:$,size:C.ProgressSize.lg,variant:I})})]})}function O6(e=ic,t){const[n,r]=Li(),[i,o]=v.useState();return v.useEffect(()=>{if(i){const a=(s,l,c,u)=>{var d;o(void 0),(d=i.onClose)==null||d.call(i,s,l,c,u)};r(m.jsx(E6,{...i,errorAdapter:i.errorAdapter??e,statusParser:i.statusParser??t,onClose:a}))}else r(void 0)},[i,r,e,t]),o}function T6(e,t){if(e===void 0&&t===void 0)return 0;if(e===void 0)return 1;if(t===void 0)return-1;if(typeof e=="string"){if(typeof t=="string")return sc(e,t);if(typeof t=="number")return sc(e,t.toString())}else if(typeof e=="number"){if(typeof t=="number")return k6(e,t);if(typeof t=="string")return sc(e.toString(),t)}return 0}function sc(e,t){return e===void 0&&t===void 0?0:e==null?1:t==null||e<t?-1:e>t?1:0}function k6(e,t){return e===void 0&&t===void 0?0:e==null?1:t==null||e<t?-1:e>t?1:0}const Ede=Ae.div`
440
440
  display: flex;
@@ -512,7 +512,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
512
512
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qk(e,t){if(e){if(typeof e=="string")return Yy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yy(e,t)}}function Yy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v0e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function b0e(e){if(Array.isArray(e))return e}var x0e=typeof qy=="function"?qy:qy.default,_0e="file-invalid-type",S0e="file-too-large",w0e="file-too-small",C0e="too-many-files",E0e=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var n=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:_0e,message:"File type must be ".concat(n)}},Yk=function(t){return{code:S0e,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},Kk=function(t){return{code:w0e,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},O0e={code:C0e,message:"Too many files"};function Xk(e,t){var n=e.type==="application/x-moz-file"||x0e(e,t);return[n,n?null:E0e(t)]}function Zk(e,t,n){if(ma(e.size))if(ma(t)&&ma(n)){if(e.size>n)return[!1,Yk(n)];if(e.size<t)return[!1,Kk(t)]}else{if(ma(t)&&e.size<t)return[!1,Kk(t)];if(ma(n)&&e.size>n)return[!1,Yk(n)]}return[!0,null]}function ma(e){return e!=null}function T0e(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,o=e.multiple,a=e.maxFiles,s=e.validator;return!o&&t.length>1||o&&a>=1&&t.length>a?!1:t.every(function(l){var c=Xk(l,n),u=wc(c,1),d=u[0],f=Zk(l,r,i),h=wc(f,1),g=h[0],p=s?s(l):null;return d&&g&&!p})}function sh(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function lh(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Jk(e){e.preventDefault()}function k0e(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function A0e(e){return e.indexOf("Edge/")!==-1}function D0e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return k0e(e)||A0e(e)}function ti(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return t.some(function(s){return!sh(r)&&s&&s.apply(void 0,[r].concat(o)),sh(r)})}}function P0e(){return"showOpenFilePicker"in window}function j0e(e){if(ma(e)){var t=Object.entries(e).filter(function(n){var r=wc(n,2),i=r[0],o=r[1],a=!0;return Qk(i)||(console.warn('Skipped "'.concat(i,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),a=!1),(!Array.isArray(o)||!o.every(eA))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,r){var i=wc(r,2),o=i[0],a=i[1];return Hk(Hk({},n),{},Gk({},o,a))},{});return[{description:"Files",accept:t}]}return e}function M0e(e){if(ma(e))return Object.entries(e).reduce(function(t,n){var r=wc(n,2),i=r[0],o=r[1];return[].concat(Vk(t),[i],Vk(o))},[]).filter(function(t){return Qk(t)||eA(t)}).join(",")}function $0e(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function I0e(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function Qk(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function eA(e){return/^.*\.[\w]+$/.test(e)}var L0e=["children"],F0e=["open"],N0e=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],R0e=["refKey","onChange","onClick"];function B0e(e){return V0e(e)||z0e(e)||tA(e)||W0e()}function W0e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
513
513
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function z0e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function V0e(e){if(Array.isArray(e))return Xy(e)}function Ky(e,t){return G0e(e)||H0e(e,t)||tA(e,t)||U0e()}function U0e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
514
514
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tA(e,t){if(e){if(typeof e=="string")return Xy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xy(e,t)}}function Xy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function H0e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function G0e(e){if(Array.isArray(e))return e}function nA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Et(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nA(Object(n),!0).forEach(function(r){Zy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ch(e,t){if(e==null)return{};var n=q0e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function q0e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Jy=v.forwardRef(function(e,t){var n=e.children,r=ch(e,L0e),i=iA(r),o=i.open,a=ch(i,F0e);return v.useImperativeHandle(t,function(){return{open:o}},[o]),v.createElement(v.Fragment,null,n(Et(Et({},a),{},{open:o})))});Jy.displayName="Dropzone";var rA={disabled:!1,getFilesFromEvent:o0e,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};Jy.defaultProps=rA,Jy.propTypes={children:dt.func,accept:dt.objectOf(dt.arrayOf(dt.string)),multiple:dt.bool,preventDropOnDocument:dt.bool,noClick:dt.bool,noKeyboard:dt.bool,noDrag:dt.bool,noDragEventsBubbling:dt.bool,minSize:dt.number,maxSize:dt.number,maxFiles:dt.number,disabled:dt.bool,getFilesFromEvent:dt.func,onFileDialogCancel:dt.func,onFileDialogOpen:dt.func,useFsAccessApi:dt.bool,autoFocus:dt.bool,onDragEnter:dt.func,onDragLeave:dt.func,onDragOver:dt.func,onDrop:dt.func,onDropAccepted:dt.func,onDropRejected:dt.func,onError:dt.func,validator:dt.func};var Qy={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function iA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Et(Et({},rA),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,c=t.onDragEnter,u=t.onDragLeave,d=t.onDragOver,f=t.onDrop,h=t.onDropAccepted,g=t.onDropRejected,p=t.onFileDialogCancel,y=t.onFileDialogOpen,b=t.useFsAccessApi,x=t.autoFocus,S=t.preventDropOnDocument,w=t.noClick,_=t.noKeyboard,E=t.noDrag,O=t.noDragEventsBubbling,k=t.onError,D=t.validator,P=v.useMemo(function(){return M0e(n)},[n]),A=v.useMemo(function(){return j0e(n)},[n]),M=v.useMemo(function(){return typeof y=="function"?y:oA},[y]),j=v.useMemo(function(){return typeof p=="function"?p:oA},[p]),$=v.useRef(null),I=v.useRef(null),H=v.useReducer(Y0e,Qy),G=Ky(H,2),V=G[0],W=G[1],N=V.isFocused,z=V.isFileDialogActive,J=v.useRef(typeof window<"u"&&window.isSecureContext&&b&&P0e()),ee=function(){!J.current&&z&&setTimeout(function(){if(I.current){var ce=I.current.files;ce.length||(W({type:"closeDialog"}),j())}},300)};v.useEffect(function(){return window.addEventListener("focus",ee,!1),function(){window.removeEventListener("focus",ee,!1)}},[I,z,j,J]);var X=v.useRef([]),Q=function(ce){$.current&&$.current.contains(ce.target)||(ce.preventDefault(),X.current=[])};v.useEffect(function(){return S&&(document.addEventListener("dragover",Jk,!1),document.addEventListener("drop",Q,!1)),function(){S&&(document.removeEventListener("dragover",Jk),document.removeEventListener("drop",Q))}},[$,S]),v.useEffect(function(){return!r&&x&&$.current&&$.current.focus(),function(){}},[$,x,r]);var ie=v.useCallback(function(Y){k?k(Y):console.error(Y)},[k]),ue=v.useCallback(function(Y){Y.preventDefault(),Y.persist(),q(Y),X.current=[].concat(B0e(X.current),[Y.target]),lh(Y)&&Promise.resolve(i(Y)).then(function(ce){if(!(sh(Y)&&!O)){var xe=ce.length,_e=xe>0&&T0e({files:ce,accept:P,minSize:a,maxSize:o,multiple:s,maxFiles:l,validator:D}),Re=xe>0&&!_e;W({isDragAccept:_e,isDragReject:Re,isDragActive:!0,type:"setDraggedFiles"}),c&&c(Y)}}).catch(function(ce){return ie(ce)})},[i,c,ie,O,P,a,o,s,l,D]),de=v.useCallback(function(Y){Y.preventDefault(),Y.persist(),q(Y);var ce=lh(Y);if(ce&&Y.dataTransfer)try{Y.dataTransfer.dropEffect="copy"}catch{}return ce&&d&&d(Y),!1},[d,O]),K=v.useCallback(function(Y){Y.preventDefault(),Y.persist(),q(Y);var ce=X.current.filter(function(_e){return $.current&&$.current.contains(_e)}),xe=ce.indexOf(Y.target);xe!==-1&&ce.splice(xe,1),X.current=ce,!(ce.length>0)&&(W({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),lh(Y)&&u&&u(Y))},[$,u,O]),ne=v.useCallback(function(Y,ce){var xe=[],_e=[];Y.forEach(function(Re){var Ve=Xk(Re,P),ot=Ky(Ve,2),Ot=ot[0],Mt=ot[1],Tt=Zk(Re,a,o),We=Ky(Tt,2),Me=We[0],pt=We[1],Ut=D?D(Re):null;if(Ot&&Me&&!Ut)xe.push(Re);else{var kt=[Mt,pt];Ut&&(kt=kt.concat(Ut)),_e.push({file:Re,errors:kt.filter(function(Bn){return Bn})})}}),(!s&&xe.length>1||s&&l>=1&&xe.length>l)&&(xe.forEach(function(Re){_e.push({file:Re,errors:[O0e]})}),xe.splice(0)),W({acceptedFiles:xe,fileRejections:_e,type:"setFiles"}),f&&f(xe,_e,ce),_e.length>0&&g&&g(_e,ce),xe.length>0&&h&&h(xe,ce)},[W,s,P,a,o,l,f,h,g,D]),ye=v.useCallback(function(Y){Y.preventDefault(),Y.persist(),q(Y),X.current=[],lh(Y)&&Promise.resolve(i(Y)).then(function(ce){sh(Y)&&!O||ne(ce,Y)}).catch(function(ce){return ie(ce)}),W({type:"reset"})},[i,ne,ie,O]),R=v.useCallback(function(){if(J.current){W({type:"openDialog"}),M();var Y={multiple:s,types:A};window.showOpenFilePicker(Y).then(function(ce){return i(ce)}).then(function(ce){ne(ce,null),W({type:"closeDialog"})}).catch(function(ce){$0e(ce)?(j(ce),W({type:"closeDialog"})):I0e(ce)?(J.current=!1,I.current?(I.current.value=null,I.current.click()):ie(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):ie(ce)});return}I.current&&(W({type:"openDialog"}),M(),I.current.value=null,I.current.click())},[W,M,j,b,ne,ie,A,s]),Oe=v.useCallback(function(Y){!$.current||!$.current.isEqualNode(Y.target)||(Y.key===" "||Y.key==="Enter"||Y.keyCode===32||Y.keyCode===13)&&(Y.preventDefault(),R())},[$,R]),oe=v.useCallback(function(){W({type:"focus"})},[]),Le=v.useCallback(function(){W({type:"blur"})},[]),je=v.useCallback(function(){w||(D0e()?setTimeout(R,0):R())},[w,R]),Ze=function(ce){return r?null:ce},L=function(ce){return _?null:Ze(ce)},U=function(ce){return E?null:Ze(ce)},q=function(ce){O&&ce.stopPropagation()},he=v.useMemo(function(){return function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ce=Y.refKey,xe=ce===void 0?"ref":ce,_e=Y.role,Re=Y.onKeyDown,Ve=Y.onFocus,ot=Y.onBlur,Ot=Y.onClick,Mt=Y.onDragEnter,Tt=Y.onDragOver,We=Y.onDragLeave,Me=Y.onDrop,pt=ch(Y,N0e);return Et(Et(Zy({onKeyDown:L(ti(Re,Oe)),onFocus:L(ti(Ve,oe)),onBlur:L(ti(ot,Le)),onClick:Ze(ti(Ot,je)),onDragEnter:U(ti(Mt,ue)),onDragOver:U(ti(Tt,de)),onDragLeave:U(ti(We,K)),onDrop:U(ti(Me,ye)),role:typeof _e=="string"&&_e!==""?_e:"presentation"},xe,$),!r&&!_?{tabIndex:0}:{}),pt)}},[$,Oe,oe,Le,je,ue,de,K,ye,_,E,r]),me=v.useCallback(function(Y){Y.stopPropagation()},[]),ae=v.useMemo(function(){return function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ce=Y.refKey,xe=ce===void 0?"ref":ce,_e=Y.onChange,Re=Y.onClick,Ve=ch(Y,R0e),ot=Zy({accept:P,multiple:s,type:"file",style:{display:"none"},onChange:Ze(ti(_e,ye)),onClick:Ze(ti(Re,me)),tabIndex:-1},xe,I);return Et(Et({},ot),Ve)}},[I,n,s,ye,r]);return Et(Et({},V),{},{isFocused:N&&!r,getRootProps:he,getInputProps:ae,rootRef:$,inputRef:I,open:Ze(R)})}function Y0e(e,t){switch(t.type){case"focus":return Et(Et({},e),{},{isFocused:!0});case"blur":return Et(Et({},e),{},{isFocused:!1});case"openDialog":return Et(Et({},Qy),{},{isFileDialogActive:!0});case"closeDialog":return Et(Et({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Et(Et({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Et(Et({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Et({},Qy);default:return e}}function oA(){}function K0e(e){const{t}=$e(),n=fu(),{onDrop:r}=e,i=v.useCallback(s=>{if(!s||s.length===0)return;const l=s[0],c=new FileReader;c.onload=()=>{const u=c.result;if(typeof u=="string"){const d={variant:"success",title:t("File uploaded"),timeout:!0};n.addAlert(d),r(u)}},c.onerror=()=>{const u={variant:"danger",title:t("Failed to upload file"),children:t("Unable to upload")};n.addAlert(u)},c.readAsText(l)},[t,n,r]),{getRootProps:o,getInputProps:a}=iA({onDrop:i,noClick:!0,accept:e.accept??{"application/json":[".json"],"text/yaml":[".yaml",".yml"]}});return m.jsxs("div",{id:"code-editor-dropzone",...o({disabled:!0}),style:{width:"100%",height:"100%"},children:[m.jsx("input",{id:"code-editor-dropzone-input",...a(),ref:e.inputRef}),e.children]})}function X0e(e){return m.jsx(C.Icon,{size:e.size??"md",children:m.jsx(be.AngleDownIcon,{"data-cy":"expandable",style:{transform:e.isExpanded?"rotate(0deg)":e.direction==="left"?"rotate(90deg)":"rotate(-90deg)",transition:"transform 0.2s",alignSelf:"center"},onClick:()=>e.setExpanded(!e.isExpanded),"aria-label":e.isExpanded?gc("Collapse"):gc("Expand")})})}function Z0e(e,t,n="txt"){const r=new Blob(t.split("/n"),{type:"text/plain"}),i=document.createElement("a");i.href=URL.createObjectURL(r),i.download=e+"."+n,document.body.appendChild(i),i.click(),document.body.removeChild(i)}function Cc(e){const{children:t,helperText:n,helperTextInvalid:r,isRequired:i,labelHelp:o,labelHelpTitle:a,label:s,fullWidth:l}=e;return m.jsxs(C.FormGroup,{id:`${e.fieldId}-form-group`,fieldId:e.fieldId,label:m.jsxs(m.Fragment,{children:[e.icon,s]}),labelIcon:o?m.jsx(uu,{title:a,help:o}):void 0,labelInfo:e.additionalControls,isRequired:i,"data-cy":`${e.fieldId}-form-group`,style:{gridColumn:l?"span 12":void 0},children:[t,(n||r)&&m.jsx(C.FormHelperText,{children:m.jsx(C.HelperText,{children:m.jsx(C.HelperTextItem,{variant:r?"error":void 0,children:r||n})})})]})}function J0e(e){const{t}=$e(),{name:n,format:r,disableCopy:i,disableUpload:o,disableDownload:a,disableExpand:s,validate:l,isArray:c}=e,u=ui(e),{formState:{isSubmitting:d,isValidating:f},setError:h,getValues:g,clearErrors:p,control:y}=Xr(),x=Vo().dataEditorFormat??"yaml",[S,w]=v.useState(x),[_,E]=v.useState(!e.defaultCollapsed),[O,k]=v.useState(()=>{const ee=g(n);return typeof ee=="string"?ee:ni(ee,x)}),D=fu(),{writeToClipboard:P}=Bb(),A=v.useCallback(()=>P(ni(Bi(g(n),c),S)),[g,c,S,n,P]),M=v.useCallback(ee=>{k(ni(Bi(ee,c),S))},[c,S]),j=v.useRef(null),$=v.useCallback(()=>{var ee;return(ee=j.current)==null?void 0:ee.click()},[]),I=v.useCallback(()=>{const ee=n||"data",X=S==="json"?"json":"yaml";Z0e(ee,ni(Bi(g(n),c),S),X),D.addAlert({variant:"success",title:t("File downloaded"),timeout:!0})},[D,g,c,S,n,t]);v.useLayoutEffect(()=>{const ee=ni(Bi(g(n),c),S);k(ee)},[g,c,S,n]);const[H,G]=v.useState(!1),V=W6({name:n});v.useEffect(()=>{H||k(ni(Bi(V,c),S))},[H,V,c,S]);const{setValue:W,formState:{defaultValues:N}}=Xr(),z=pc(e.label,e.isRequired),J=Fs(N,e.name);return m.jsx(Ms,{name:n,control:y,shouldUnregister:!0,render:({field:{value:ee,name:X,onChange:Q},fieldState:{error:ie}})=>{var de;function ue(K){try{const ne=Bi(K,c);switch(r){case"object":Q(ne);return;default:Q(ni(ne,r));break}p(X)}catch(ne){ne instanceof Error&&h(X,{message:ne.message})}}return m.jsxs(Cc,{fieldId:u,icon:!s&&m.jsx(X0e,{isExpanded:_,setExpanded:E}),label:e.label,labelHelpTitle:e.labelHelpTitle??e.label,labelHelp:e.labelHelp,additionalControls:m.jsx(sA,{handleCopy:!i&&A,handleUpload:!o&&$,handleDownload:!a&&I,language:S,setLanguage:w,children:e.additionalControls}),helperText:e.helperText,helperTextInvalid:!(l&&f)&&((de=ie==null?void 0:ie.message)==null?void 0:de.split(`
515
- `)),isRequired:e.isRequired,children:[_&&m.jsxs("div",{style:{display:"flex"},children:[m.jsx(K0e,{onDrop:M,isDisabled:d||e.isReadOnly,inputRef:j,children:m.jsx(Gme,{"data-cy":u,id:u,name:X,language:S,value:O,onChange:ue,setError:K=>{K?h(X,{message:K}):p(X)},isReadOnly:e.isReadOnly||d,className:e.isReadOnly?"pf-v5-c-form-control pf-m-disabled":"pf-v5-c-form-control",onFocus:()=>G(!0),onBlur:()=>G(!1)})}),m.jsx(zr,{actions:[{label:t("Undo changes"),type:st.Button,selection:Ge.None,onClick:()=>{W(e.name,J),k(""),setTimeout(()=>{k(ni(Bi(J,c),S))},0)},isHidden:()=>!e.enableUndo||_T(ee,J)},{label:t("Reset to default"),type:st.Button,selection:Ge.None,onClick:()=>{W(e.name,e.defaultValue),k(""),setTimeout(()=>{k(ni(Bi(e.defaultValue,c),S))},0)},isHidden:()=>!e.enableReset||_T(ee,e.defaultValue)}],position:"right"})]}),!_&&m.jsx("div",{className:"pf-v5-c-form-control"})]})},rules:{required:z,validate:e.validate}})}function aA(e){const{t}=$e(),{handleCopy:n,handleDownload:r,handleUpload:i}=e;return!n&&!r&&!i?m.jsx(m.Fragment,{}):m.jsxs(C.Flex,{spaceItems:{default:"spaceItemsMd"},children:[n&&m.jsx(C.FlexItem,{children:m.jsx(cu,{id:"copy-button","data-cy":"copy-button","aria-label":t("Copy to clipboard"),type:"button",onClick:n,children:m.jsx(C.Icon,{size:"md",children:m.jsx(be.CopyIcon,{})})})}),i&&m.jsx(C.FlexItem,{children:m.jsx(cu,{id:"upload-button","data-cy":"upload-button","aria-label":t("Upload from file"),type:"button",onClick:i,children:m.jsx(C.Icon,{size:"md",children:m.jsx(be.UploadIcon,{})})})}),r&&m.jsx(C.FlexItem,{children:m.jsx(cu,{id:"download-button","data-cy":"download-button","aria-label":t("Download file"),type:"button",onClick:r,children:m.jsx(C.Icon,{size:"md",children:m.jsx(be.DownloadIcon,{})})})})]})}function sA(e){const{t}=$e(),{handleCopy:n,handleDownload:r,handleUpload:i,language:o,setLanguage:a}=e;return m.jsxs(C.Flex,{spaceItems:{default:"spaceItemsLg"},children:[m.jsx(C.FlexItem,{children:e.children}),m.jsx(aA,{handleCopy:n,handleDownload:r,handleUpload:i}),m.jsx(C.FlexItem,{align:{default:"alignRight"},children:m.jsxs(C.ToggleGroup,{isCompact:!0,children:[m.jsx(C.ToggleGroupItem,{id:"toggle-yaml","data-cy":"toggle-yaml","aria-label":t("Toggle to YAML"),isSelected:o==="yaml",text:"YAML",type:"button",onChange:()=>a("yaml")}),m.jsx(C.ToggleGroupItem,{id:"toggle-json","data-cy":"toggle-json","aria-label":t("Toggle to JSON"),isSelected:o==="json",text:"JSON",type:"button",onChange:()=>a("json")})]})})]})}function Bi(e,t){if(e==null)return t?[]:{};if(typeof e=="string")try{e=JSON.parse(e)}catch{try{e=Tk.load(e)}catch(n){return n instanceof Error||n instanceof Fy?new Error(n.message):{}}}return t?Array.isArray(e)?e:[]:Array.isArray(e)?{}:e}function ni(e,t){if(e==null)return"";if(e instanceof Error)return e.message;switch(t){case"json":return JSON.stringify(e,null,2);case"yaml":try{const n=Tk.dump(e).trimEnd();switch(n){case"null":case"{}":case"[]":return"";default:return n}}catch(n){return n instanceof Error||n instanceof Fy?n.message:""}default:return""}}function re(...e){const t=[],n={}.hasOwnProperty;return e.filter(Boolean).forEach(r=>{const i=typeof r;if(i==="string"||i==="number")t.push(r);else if(Array.isArray(r)&&r.length){const o=re(...r);o&&t.push(o)}else if(i==="object")for(const o in r)n.call(r,o)&&r[o]&&t.push(o)}),t.join(" ")}let Q0e=0;function Eo({name:e,xOffset:t=0,yOffset:n=0,width:r,height:i,svgPath:o}){var a;return a=class extends T.Component{constructor(){super(...arguments),this.id=`icon-title-${Q0e++}`}render(){const l=this.props,{title:c,className:u}=l,d=De(l,["title","className"]),f=u?`pf-v5-svg ${u}`:"pf-v5-svg",h=!!c,g=[t,n,r,i].join(" ");return T.createElement("svg",Object.assign({className:f,viewBox:g,fill:"currentColor","aria-labelledby":h?this.id:null,"aria-hidden":h?null:!0,role:"img",width:"1em",height:"1em"},d),h&&T.createElement("title",{id:this.id},c),T.createElement("path",{d:o}))}},a.displayName=e,a}const ga={badge:"pf-v5-c-badge",check:"pf-v5-c-check",divider:"pf-v5-c-divider",dropdown:"pf-v5-c-dropdown",dropdownGroup:"pf-v5-c-dropdown__group",dropdownGroupTitle:"pf-v5-c-dropdown__group-title",dropdownMenu:"pf-v5-c-dropdown__menu",dropdownMenuItem:"pf-v5-c-dropdown__menu-item",dropdownMenuItemDescription:"pf-v5-c-dropdown__menu-item-description",dropdownMenuItemIcon:"pf-v5-c-dropdown__menu-item-icon",dropdownMenuItemMain:"pf-v5-c-dropdown__menu-item-main",dropdownToggle:"pf-v5-c-dropdown__toggle",dropdownToggleButton:"pf-v5-c-dropdown__toggle-button",dropdownToggleCheck:"pf-v5-c-dropdown__toggle-check",dropdownToggleIcon:"pf-v5-c-dropdown__toggle-icon",dropdownToggleImage:"pf-v5-c-dropdown__toggle-image",dropdownToggleProgress:"pf-v5-c-dropdown__toggle-progress",dropdownToggleText:"pf-v5-c-dropdown__toggle-text",menu:"pf-v5-c-menu",modifiers:{fullHeight:"pf-m-full-height",expanded:"pf-m-expanded",action:"pf-m-action",disabled:"pf-m-disabled",plain:"pf-m-plain",text:"pf-m-text",splitButton:"pf-m-split-button",primary:"pf-m-primary",inProgress:"pf-m-in-progress",active:"pf-m-active",secondary:"pf-m-secondary",top:"pf-m-top",static:"pf-m-static",alignRight:"pf-m-align-right",alignLeft:"pf-m-align-left",alignRightOnSm:"pf-m-align-right-on-sm",alignLeftOnSm:"pf-m-align-left-on-sm",alignRightOnMd:"pf-m-align-right-on-md",alignLeftOnMd:"pf-m-align-left-on-md",alignRightOnLg:"pf-m-align-right-on-lg",alignLeftOnLg:"pf-m-align-left-on-lg",alignRightOnXl:"pf-m-align-right-on-xl",alignLeftOnXl:"pf-m-align-left-on-xl",alignRightOn_2xl:"pf-m-align-right-on-2xl",alignLeftOn_2xl:"pf-m-align-left-on-2xl",ariaDisabled:"pf-m-aria-disabled",icon:"pf-m-icon",description:"pf-m-description"},spinner:"pf-v5-c-spinner",themeDark:"pf-v5-theme-dark"};var lA;(function(e){e.right="right",e.left="left"})(lA||(lA={}));var cA;(function(e){e.up="up",e.down="down"})(cA||(cA={}));const ege=T.createContext({onSelect:e=>{},id:"",toggleIndicatorClass:"",toggleIconClass:"",toggleTextClass:"",menuClass:"",itemClass:"",toggleClass:"",baseClass:"",baseComponent:"div",sectionClass:"",sectionTitleClass:"",sectionComponent:"section",disabledClass:"",plainTextClass:"",menuComponent:"ul"}),tge=T.createContext({keyHandler:null,sendRef:null}),Ec={UP:"up",DOWN:"down",RIGHT:"right",LEFT:"left"};var Tn;(function(e){e.success="success",e.error="error",e.warning="warning",e.default="default"})(Tn||(Tn={}));const Ye={Tab:"Tab",Space:" ",Escape:"Escape",Enter:"Enter",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight"};function uA(e="pf"){const t=new Date().getTime()+Math.random().toString(36).slice(2);return`${e}-${t}`}function nge(e,t){return e.replace(/\${(.*?)}/g,(n,r)=>t[r]||"")}function dA(e,t,n,r,i,o=!1){if(!Array.isArray(i))return;const a=r.filter(c=>c)[0].constructor===Array;let s=e,l=t;n==="up"?e===0?s=i.length-1:s=e-1:n==="down"?e===i.length-1?s=0:s=e+1:n==="left"?t===0?l=r[e].length-1:l=t-1:n==="right"&&(t===r[e].length-1?l=0:l=t+1),r[s]===null||r[s]===void 0||a&&(r[s][l]===null||r[s][l]===void 0)?dA(s,l,n,r,i,o):o?(r[s].focus&&r[s].focus(),Tv.findDOMNode(r[s]).focus()):n!=="tab"&&(a?r[s][l].focus():r[s].focus())}function Oc(e,t){const n=e.current.querySelectorAll(t);return Array.prototype.filter.call(n,function(i){return i.tabIndex>="0"})}function fA(e,t,n){let r;return t==="up"?e===0?r=n.length-1:r=e-1:e===n.length-1?r=0:r=e+1,n[r]===void 0||n[r][0]===null?fA(r,t,n):r}const hA=(e,t,n="",r,i)=>e?Object.entries(e||{}).map(([o,a])=>`${n}${a}${o!=="default"?`-on-${o}`:""}`).map(ige).map(o=>o.replace(/-?(\dxl)/gi,(a,s)=>`_${s}`)).map(o=>t.modifiers[o]).filter(Boolean).join(" "):"",rge=e=>e.toUpperCase().replace("-","").replace("_",""),ige=e=>e.replace(/([-_][a-z])/gi,rge),mA=!!(typeof window<"u"&&window.document&&window.document.createElement),gA=(e,t)=>{const n=getComputedStyle(t),r=()=>{let a="";const s={"50%":"ultra-condensed","62.5%":"extra-condensed","75%":"condensed","87.5%":"semi-condensed","100%":"normal","112.5%":"semi-expanded","125%":"expanded","150%":"extra-expanded","200%":"ultra-expanded"};let l;return n.fontStretch in s?l=s[n.fontStretch]:l="normal",a=n.fontStyle+" "+n.fontVariant+" "+n.fontWeight+" "+l+" "+n.fontSize+"/"+n.lineHeight+" "+n.fontFamily,a},o=document.createElement("canvas").getContext("2d");return o.font=n.font||r(),o.measureText(e).width},oge=e=>{const t=getComputedStyle(e);let n=e.clientWidth,r=e.clientHeight;return r-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),n-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),{height:r,width:n}},age=(e,t)=>{const n=oge(e).width;let r=t;if(gA(t,e)>n){for(;gA(`...${r}`,e)>n;)r=r.substring(1);e.value?e.value=`...${r}`:e.innerText=`...${r}`}else e.value?e.value=t:e.innerText=t},sge=e=>e.reduce((t,n)=>Object.assign(Object.assign({},t),{[n]:r=>{r.preventDefault()}}),{}),uh=e=>{e.forEach(t=>{t.current&&clearTimeout(t.current)})},lge=(e,t="ltr")=>{if(!e)return t;const n=getComputedStyle(e).getPropertyValue("direction");return["ltr","rtl"].includes(n)?n:t};let cge=0;function uge(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():uA()}class Tc extends T.Component{constructor(){super(...arguments),this.uniqueElement=this.props.isRandom?uge():cge++,this.id=`${this.props.prefix}${this.uniqueElement}`}render(){return this.props.children(this.id)}}Tc.displayName="GenerateId",Tc.defaultProps={prefix:"pf-random-id-",isRandom:!1};let dge=0;const pA="OUIA-Generated-",ev={};function kc(e,t,n=!0){return{"data-ouia-component-type":`PF5/${e}`,"data-ouia-safe":n,"data-ouia-component-id":t}}const yA=(e,t,n=!0,r)=>({"data-ouia-component-type":`PF5/${e}`,"data-ouia-safe":n,"data-ouia-component-id":fge(e,t,r)}),fge=(e,t,n)=>{const r=v.useMemo(()=>dh(e,n),[e,n]);return t??r};function dh(e,t){try{let n;return typeof window<"u"?n=`${window.location.href}-${e}-${t||""}`:n=`${e}-${t||""}`,ev[n]||(ev[n]=0),`${pA}${e}-${t?`${t}-`:""}${++ev[n]}`}catch{return`${pA}${e}-${t?`${t}-`:""}${++dge}`}}function Ac(e){const t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function ri(e){if(e.toString()!=="[object Window]"){const t=e.ownerDocument;return t?t.defaultView:window}return e}function tv(e){const t=ri(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Dc(e){const t=ri(e).Element;return e instanceof t||e instanceof Element}function ii(e){const t=ri(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function hge(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function mge(e){return e===ri(e)||!ii(e)?tv(e):hge(e)}function Ir(e){return e?(e.nodeName||"").toLowerCase():null}function Wi(e){return(Dc(e)?e.ownerDocument:e.document).documentElement}function nv(e){return Ac(Wi(e)).left+tv(e).scrollLeft}function zi(e){return ri(e).getComputedStyle(e)}function rv(e){const{overflow:t,overflowX:n,overflowY:r}=zi(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function gge(e,t,n=!1){const r=Wi(t),i=Ac(e),o=ii(t);let a={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(o||!o&&!n)&&((Ir(t)!=="body"||rv(r))&&(a=mge(t)),ii(t)?(s=Ac(t),s.x+=t.clientLeft,s.y+=t.clientTop):r&&(s.x=nv(r))),{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function iv(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function fh(e){return Ir(e)==="html"?e:e.assignedSlot||e.parentNode||e.host||Wi(e)}function vA(e){return["html","body","#document"].indexOf(Ir(e))>=0?e.ownerDocument.body:ii(e)&&rv(e)?e:vA(fh(e))}function Pc(e,t=[]){const n=vA(e),r=Ir(n)==="body",i=ri(n),o=r?[i].concat(i.visualViewport||[],rv(n)?n:[]):n,a=t.concat(o);return r?a:a.concat(Pc(fh(o)))}function pge(e){return["table","td","th"].indexOf(Ir(e))>=0}function bA(e){if(!ii(e)||zi(e).position==="fixed")return null;const t=e.offsetParent;if(t){const n=Wi(t);if(Ir(t)==="body"&&zi(t).position==="static"&&zi(n).position!=="static")return n}return t}function yge(e){let t=fh(e);for(;ii(t)&&["html","body"].indexOf(Ir(t))<0;){const n=zi(t);if(n.transform!=="none"||n.perspective!=="none"||n.willChange&&n.willChange!=="auto")return t;t=t.parentNode}return null}function jc(e){const t=ri(e);let n=bA(e);for(;n&&pge(n)&&zi(n).position==="static";)n=bA(n);return n&&Ir(n)==="body"&&zi(n).position==="static"?t:n||yge(e)||t}const gr="top",Lr="bottom",Fr="right",pr="left",ov="auto",Mc=[gr,Lr,Fr,pr],Vs="start",av="end",vge="clippingParents",xA="viewport",$c="popper",bge="reference",_A=Mc.reduce((e,t)=>e.concat([`${t}-${Vs}`,`${t}-${av}`]),[]),SA=[...Mc,ov].reduce((e,t)=>e.concat([t,`${t}-${Vs}`,`${t}-${av}`]),[]),xge=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function _ge(e){const t=new Map,n=new Set,r=[];e.forEach(o=>{t.set(o.name,o)});function i(o){n.add(o.name),[...o.requires||[],...o.requiresIfExists||[]].forEach(s=>{if(!n.has(s)){const l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(o=>{n.has(o.name)||i(o)}),r}function Sge(e){const t=_ge(e);return xge.reduce((n,r)=>n.concat(t.filter(i=>i.phase===r)),[])}function wge(e){let t;return()=>(t||(t=new Promise(n=>{Promise.resolve().then(()=>{t=void 0,n(e())})})),t)}function oi(e){return e.split("-")[0]}function Cge(e){const t=e.reduce((n,r)=>{const i=n[r.name];return n[r.name]=i?Object.assign(Object.assign(Object.assign({},i),r),{options:Object.assign(Object.assign({},i.options),r.options),data:Object.assign(Object.assign({},i.data),r.data)}):r,n},{});return Object.keys(t).map(n=>t[n])}function Ege(e){const t=ri(e),n=Wi(e),r=t.visualViewport;let i=n.clientWidth,o=n.clientHeight,a=0,s=0;return r&&(i=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:i,height:o,x:a+nv(e),y:s}}function Oge(e){const t=Wi(e),n=tv(e),r=e.ownerDocument.body,i=Math.max(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=Math.max(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let a=-n.scrollLeft+nv(e);const s=-n.scrollTop;return zi(r||t).direction==="rtl"&&(a+=Math.max(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:o,x:a,y:s}}function wA(e,t){const n=!!(t.getRootNode&&t.getRootNode().host);if(e.contains(t))return!0;if(n){let r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function sv(e){return Object.assign(Object.assign({},e),{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Tge(e){const t=Ac(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function CA(e,t){return t===xA?sv(Ege(e)):ii(t)?Tge(t):sv(Oge(Wi(e)))}function kge(e){const t=Pc(fh(e)),r=["absolute","fixed"].indexOf(zi(e).position)>=0&&ii(e)?jc(e):e;return Dc(r)?t.filter(i=>Dc(i)&&wA(i,r)&&Ir(i)!=="body"):[]}function Age(e,t,n){const i=[...t==="clippingParents"?kge(e):[].concat(t),n],o=i[0],a=i.reduce((s,l)=>{const c=CA(e,l);return s.top=Math.max(c.top,s.top),s.right=Math.min(c.right,s.right),s.bottom=Math.min(c.bottom,s.bottom),s.left=Math.max(c.left,s.left),s},CA(e,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Ic(e){return e.split("-")[1]}function lv(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function EA({reference:e,element:t,placement:n}){const r=n?oi(n):null,i=n?Ic(n):null,o=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2;let s;switch(r){case gr:s={x:o,y:e.y-t.height};break;case Lr:s={x:o,y:e.y+e.height};break;case Fr:s={x:e.x+e.width,y:a};break;case pr:s={x:e.x-t.width,y:a};break;default:s={x:e.x,y:e.y}}const l=r?lv(r):null;if(l!=null){const c=l==="y"?"height":"width";switch(i){case Vs:s[l]=Math.floor(s[l])-Math.floor(e[c]/2-t[c]/2);break;case av:s[l]=Math.floor(s[l])+Math.ceil(e[c]/2-t[c]/2);break}}return s}function OA(){return{top:0,right:0,bottom:0,left:0}}function TA(e){return Object.assign(Object.assign({},OA()),e)}function kA(e,t){return t.reduce((n,r)=>(n[r]=e,n),{})}function Lc(e,t={}){const{placement:n=e.placement,boundary:r=vge,rootBoundary:i=xA,elementContext:o=$c,altBoundary:a=!1,padding:s=0}=t,l=TA(typeof s!="number"?s:kA(s,Mc)),c=o===$c?bge:$c,u=e.elements.reference,d=e.rects.popper,f=e.elements[a?c:o],h=Age(Dc(f)?f:f.contextElement||Wi(e.elements.popper),r,i),g=Ac(u),p=EA({reference:g,element:d,strategy:"absolute",placement:n}),y=sv(Object.assign(Object.assign({},d),p)),b=o===$c?y:g,x={top:h.top-b.top+l.top,bottom:b.bottom-h.bottom+l.bottom,left:h.left-b.left+l.left,right:b.right-h.right+l.right},S=e.modifiersData.offset;if(o===$c&&S){const w=S[n];Object.keys(x).forEach(_=>{const E=[Fr,Lr].indexOf(_)>=0?1:-1,O=[gr,Lr].indexOf(_)>=0?"y":"x";x[_]+=w[O]*E})}return x}const AA={placement:"bottom",modifiers:[],strategy:"absolute"};function DA(...e){return!e.some(t=>!(t&&typeof t.getBoundingClientRect=="function"))}function Dge(e={}){const{defaultModifiers:t=[],defaultOptions:n=AA}=e;return function(i,o,a=n){let s={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},AA),n),modifiersData:{},elements:{reference:i,popper:o},attributes:{},styles:{}},l=[],c=!1;const u={state:s,setOptions(h){f(),s.options=Object.assign(Object.assign(Object.assign({},n),s.options),h),s.scrollParents={reference:Dc(i)?Pc(i):i.contextElement?Pc(i.contextElement):[],popper:Pc(o)};const g=Sge(Cge([...t,...s.options.modifiers]));return s.orderedModifiers=g.filter(p=>p.enabled),d(),u.update()},forceUpdate(){if(c)return;const{reference:h,popper:g}=s.elements;if(DA(h,g)){s.rects={reference:gge(h,jc(g),s.options.strategy==="fixed"),popper:iv(g)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(p=>s.modifiersData[p.name]=Object.assign({},p.data));for(let p=0;p<s.orderedModifiers.length;p++){if(s.reset===!0){s.reset=!1,p=-1;continue}const{fn:y,options:b={},name:x}=s.orderedModifiers[p];typeof y=="function"&&(s=y({state:s,options:b,name:x,instance:u})||s)}}},update:wge(()=>new Promise(h=>{u.forceUpdate(),h(s)})),destroy(){f(),c=!0}};if(!DA(i,o))return u;u.setOptions(a).then(h=>{!c&&a.onFirstUpdate&&a.onFirstUpdate(h)});function d(){s.orderedModifiers.forEach(({name:h,options:g={},effect:p})=>{if(typeof p=="function"){const y=p({state:s,name:h,instance:u,options:g}),b=()=>{};l.push(y||b)}})}function f(){l.forEach(h=>h()),l=[]}return u}}const hh={passive:!0};function Pge({state:e,instance:t,options:n}){const{scroll:r=!0,resize:i=!0}=n,o=ri(e.elements.popper),a=[...e.scrollParents.reference,...e.scrollParents.popper];return r&&a.forEach(s=>{s.addEventListener("scroll",t.update,hh)}),i&&o.addEventListener("resize",t.update,hh),()=>{r&&a.forEach(s=>{s.removeEventListener("scroll",t.update,hh)}),i&&o.removeEventListener("resize",t.update,hh)}}const jge={name:"eventListeners",enabled:!0,phase:"write",fn:()=>{},effect:Pge,data:{}};function Mge({state:e,name:t}){e.modifiersData[t]=EA({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const $ge={name:"popperOffsets",enabled:!0,phase:"read",fn:Mge,data:{}},Ige={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Lge({x:e,y:t}){const r=window.devicePixelRatio||1;return{x:Math.round(e*r)/r||0,y:Math.round(t*r)/r||0}}function PA({popper:e,popperRect:t,placement:n,offsets:r,position:i,gpuAcceleration:o,adaptive:a}){let{x:s,y:l}=Lge(r);const c=r.hasOwnProperty("x"),u=r.hasOwnProperty("y");let d=pr,f=gr;const h=window;if(a){let p=jc(e);p===ri(e)&&(p=Wi(e)),n===gr&&(f=Lr,l-=p.clientHeight-t.height,l*=o?1:-1),n===pr&&(d=Fr,s-=p.clientWidth-t.width,s*=o?1:-1)}const g=Object.assign({position:i},a&&Ige);return o?Object.assign(Object.assign({},g),{[f]:u?"0":"",[d]:c?"0":"",transform:(h.devicePixelRatio||1)<2?`translate(${s}px, ${l}px)`:`translate3d(${s}px, ${l}px, 0)`}):Object.assign(Object.assign({},g),{[f]:u?`${l}px`:"",[d]:c?`${s}px`:"",transform:""})}function Fge({state:e,options:t}){const{gpuAcceleration:n=!0,adaptive:r=!0}=t,i={placement:oi(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign(Object.assign({},e.styles.popper),PA(Object.assign(Object.assign({},i),{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign(Object.assign({},e.styles.arrow),PA(Object.assign(Object.assign({},i),{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1})))),e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-placement":e.placement})}const Nge={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Fge,data:{}};function Rge({state:e}){Object.keys(e.elements).forEach(t=>{const n=e.styles[t]||{},r=e.attributes[t]||{},i=e.elements[t];!ii(i)||!Ir(i)||(Object.assign(i.style,n),Object.keys(r).forEach(o=>{const a=r[o];a===!1?i.removeAttribute(o):i.setAttribute(o,a===!0?"":a)}))})}function Bge({state:e}){const t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),()=>{Object.keys(e.elements).forEach(n=>{const r=e.elements[n],i=e.attributes[n]||{},a=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:t[n]).reduce((s,l)=>(s[l]="",s),{});!ii(r)||!Ir(r)||(Object.assign(r.style,a),Object.keys(i).forEach(s=>{r.removeAttribute(s)}))})}}const Wge={name:"applyStyles",enabled:!0,phase:"write",fn:Rge,effect:Bge,requires:["computeStyles"]};function zge(e,t,n){const r=oi(e),i=[pr,gr].indexOf(r)>=0?-1:1;let[o,a]=typeof n=="function"?n(Object.assign(Object.assign({},t),{placement:e})):n;return o=o||0,a=(a||0)*i,[pr,Fr].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}function Vge({state:e,options:t,name:n}){const{offset:r=[0,0]}=t,i=SA.reduce((s,l)=>(s[l]=zge(l,e.rects,r),s),{}),{x:o,y:a}=i[e.placement];e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=o,e.modifiersData.popperOffsets.y+=a),e.modifiersData[n]=i}const Uge={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Vge},Hge={left:"right",right:"left",bottom:"top",top:"bottom"};function mh(e){return e.replace(/left|right|bottom|top/g,t=>Hge[t])}const Gge={start:"end",end:"start"};function jA(e){return e.replace(/start|end/g,t=>Gge[t])}function qge(e,t={}){const{placement:n,boundary:r,rootBoundary:i,padding:o,flipVariations:a,allowedAutoPlacements:s=SA}=t,l=Ic(n),c=l?a?_A:_A.filter(f=>Ic(f)===l):Mc;let u=c.filter(f=>s.indexOf(f)>=0);u.length===0&&(u=c);const d=u.reduce((f,h)=>(f[h]=Lc(e,{placement:h,boundary:r,rootBoundary:i,padding:o})[oi(h)],f),{});return Object.keys(d).sort((f,h)=>d[f]-d[h])}function Yge(e){if(oi(e)===ov)return[];const t=mh(e);return[jA(e),t,jA(t)]}function Kge({state:e,options:t,name:n}){if(e.modifiersData[n]._skip)return;const{mainAxis:r=!0,altAxis:i=!0,fallbackPlacements:o,padding:a,boundary:s,rootBoundary:l,altBoundary:c,flipVariations:u=!0,allowedAutoPlacements:d}=t,f=e.options.placement,g=oi(f)===f,p=o||(g||!u?[mh(f)]:Yge(f)),y=[f,...p].reduce((E,O)=>E.concat(oi(O)===ov?qge(e,{placement:O,boundary:s,rootBoundary:l,padding:a,flipVariations:u,allowedAutoPlacements:d}):O),[]),b=e.rects.reference,x=e.rects.popper,S=new Map;let w=!0,_=y[0];for(let E=0;E<y.length;E++){const O=y[E],k=oi(O),D=Ic(O)===Vs,P=[gr,Lr].indexOf(k)>=0,A=P?"width":"height",M=Lc(e,{placement:O,boundary:s,rootBoundary:l,altBoundary:c,padding:a});let j=P?D?Fr:pr:D?Lr:gr;b[A]>x[A]&&(j=mh(j));const $=mh(j),I=[];if(r&&I.push(M[k]<=0),i&&I.push(M[j]<=0,M[$]<=0),I.every(H=>H)){_=O,w=!1;break}S.set(O,I)}if(w){const E=u?3:1;for(let O=E;O>0;O--){const k=y.find(D=>{const P=S.get(D);if(P)return P.slice(0,O).every(A=>A)});if(k){_=k;break}}}e.placement!==_&&(e.modifiersData[n]._skip=!0,e.placement=_,e.reset=!0)}const Xge={name:"flip",enabled:!0,phase:"main",fn:Kge,requiresIfExists:["offset"],data:{_skip:!1}};function Zge(e){return e==="x"?"y":"x"}function gh(e,t,n){return Math.max(e,Math.min(t,n))}function Jge({state:e,options:t,name:n}){const{mainAxis:r=!0,altAxis:i=!1,boundary:o,rootBoundary:a,altBoundary:s,padding:l,tether:c=!0,tetherOffset:u=0}=t,d=Lc(e,{boundary:o,rootBoundary:a,padding:l,altBoundary:s}),f=oi(e.placement),h=Ic(e.placement),g=!h,p=lv(f),y=Zge(p),b=e.modifiersData.popperOffsets,x=e.rects.reference,S=e.rects.popper,w=typeof u=="function"?u(Object.assign(Object.assign({},e.rects),{placement:e.placement})):u,_={x:0,y:0};if(b){if(r){const E=p==="y"?gr:pr,O=p==="y"?Lr:Fr,k=p==="y"?"height":"width",D=b[p],P=b[p]+d[E],A=b[p]-d[O],M=c?-S[k]/2:0,j=h===Vs?x[k]:S[k],$=h===Vs?-S[k]:-x[k],I=e.elements.arrow,H=c&&I?iv(I):{width:0,height:0},G=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:OA(),V=G[E],W=G[O],N=gh(0,x[k],H[k]),z=g?x[k]/2-M-N-V-w:j-N-V-w,J=g?-x[k]/2+M+N+W+w:$+N+W+w,ee=e.elements.arrow&&jc(e.elements.arrow),X=ee?p==="y"?ee.clientTop||0:ee.clientLeft||0:0,Q=e.modifiersData.offset?e.modifiersData.offset[e.placement][p]:0,ie=b[p]+z-Q-X,ue=b[p]+J-Q,de=gh(c?Math.min(P,ie):P,D,c?Math.max(A,ue):A);b[p]=de,_[p]=de-D}if(i){const E=p==="x"?gr:pr,O=p==="x"?Lr:Fr,k=b[y],D=k+d[E],P=k-d[O],A=gh(D,k,P);b[y]=A,_[y]=A-k}e.modifiersData[n]=_}}const Qge={name:"preventOverflow",enabled:!0,phase:"main",fn:Jge,requiresIfExists:["offset"]};function epe({state:e,name:t}){const n=e.elements.arrow,r=e.modifiersData.popperOffsets,i=oi(e.placement),o=lv(i),s=[pr,Fr].indexOf(i)>=0?"height":"width";if(!n||!r)return;const l=e.modifiersData[`${t}#persistent`].padding,c=iv(n),u=o==="y"?gr:pr,d=o==="y"?Lr:Fr,f=e.rects.reference[s]+e.rects.reference[o]-r[o]-e.rects.popper[s],h=r[o]-e.rects.reference[o],g=jc(n),p=g?o==="y"?g.clientHeight||0:g.clientWidth||0:0,y=f/2-h/2,b=l[u],x=p-c[s]-l[d],S=p/2-c[s]/2+y,w=gh(b,S,x),_=o;e.modifiersData[t]={[_]:w,centerOffset:w-S}}function tpe({state:e,options:t,name:n}){let{element:r="[data-popper-arrow]",padding:i=0}=t;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||wA(e.elements.popper,r)&&(e.elements.arrow=r,e.modifiersData[`${n}#persistent`]={padding:TA(typeof i!="number"?i:kA(i,Mc))}))}const npe={name:"arrow",enabled:!0,phase:"main",fn:epe,effect:tpe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function MA(e,t,n={x:0,y:0}){return{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function $A(e){return[gr,Fr,Lr,pr].some(t=>e[t]>=0)}function rpe({state:e,name:t}){const n=e.rects.reference,r=e.rects.popper,i=e.modifiersData.preventOverflow,o=Lc(e,{elementContext:"reference"}),a=Lc(e,{altBoundary:!0}),s=MA(o,n),l=MA(a,r,i),c=$A(s),u=$A(l);e.modifiersData[t]={referenceClippingOffsets:s,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:u},e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-reference-hidden":c,"data-popper-escaped":u})}const ipe=Dge({defaultModifiers:[jge,$ge,Nge,Wge,Uge,Xge,Qge,npe,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:rpe}]}),IA=mA?T.useLayoutEffect:T.useEffect,ope=(e,t)=>JSON.stringify(e)===JSON.stringify(t),LA=e=>e.reduce((t,[n,r])=>(t[n]=r,t),{}),ape=[],spe=(e,t,n={})=>{const r=T.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||ape},[o,a]=T.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"}},attributes:{}}),s=T.useMemo(()=>({name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const d=Object.keys(u.elements);a({styles:LA(d.map(f=>[f,u.styles[f]||{}])),attributes:LA(d.map(f=>[f,u.attributes[f]]))})},requires:["computeStyles"]}),[]),l=T.useMemo(()=>{const u={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[...i.modifiers,s,{name:"applyStyles",enabled:!1}]};return ope(r.current,u)?r.current||u:(r.current=u,u)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,s]),c=T.useRef();return IA(()=>{c&&c.current&&c.current.setOptions(l)},[l]),IA(()=>{if(e==null||t==null)return;const d=(n.createPopper||ipe)(e,t,l);return c.current=d,()=>{d.destroy(),c.current=null}},[e,t,n.createPopper]),{state:c.current?c.current.state:null,styles:o.styles,attributes:o.attributes,update:c.current?c.current.update:null,forceUpdate:c.current?c.current.forceUpdate:null}},lpe={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"},cpe=e=>e.replace(/left|right|bottom|top|top-start|top-end|bottom-start|bottom-end|right-start|right-end|left-start|left-end/g,t=>lpe[t]),upe=e=>`opacity ${e}ms cubic-bezier(.54, 1.5, .38, 1.11)`,cv=({trigger:e,popper:t,direction:n="down",position:r="start",placement:i,width:o,minWidth:a="trigger",maxWidth:s,appendTo:l="inline",zIndex:c=9999,isVisible:u=!0,positionModifiers:d,distance:f=0,onMouseEnter:h,onMouseLeave:g,onFocus:p,onBlur:y,onDocumentClick:b,onTriggerClick:x,onTriggerEnter:S,onPopperClick:w,onPopperMouseEnter:_,onPopperMouseLeave:E,onDocumentKeyDown:O,enableFlip:k=!0,flipBehavior:D="flip",triggerRef:P,popperRef:A,animationDuration:M=0,entryDelay:j=0,exitDelay:$=0,onHidden:I=()=>{},onHide:H=()=>{},onMount:G=()=>{},onShow:V=()=>{},onShown:W=()=>{},preventOverflow:N=!1})=>{var z;const[J,ee]=T.useState(null),[X,Q]=T.useState(null),[ie,ue]=T.useState(null),[de,K]=T.useState(null),[ne,ye]=T.useState(!1),[R,Oe]=T.useState(0),[oe,Le]=T.useState(u),je=T.useRef(null),Ze=T.useRef(null),L=T.useRef(null),U=T.useRef(),q=X||J,he=u||oe,me=(z=(P==null?void 0:P.current)||J)===null||z===void 0?void 0:z.parentElement,ae=lge(me),Y=T.useMemo(()=>{const Ce={left:"left",right:"right",center:"center"};return{ltr:Object.assign({start:"left",end:"right"},Ce),rtl:Object.assign({start:"right",end:"left"},Ce)}[ae][r]},[r,ae]),ce=T.useCallback(Ce=>b(Ce,q,ie),[he,J,X,ie,b]);T.useEffect(()=>{ye(!0),G()},[]),T.useEffect(()=>()=>{uh([je,L,Ze])},[]),T.useEffect(()=>{P&&(P.current?Q(P.current):typeof P=="function"&&Q(P()))},[P,e]),T.useEffect(()=>{A&&(A.current?ue(A.current):typeof A=="function"&&ue(A()))},[he,A]),T.useEffect(()=>{const Ce=new MutationObserver(()=>{We&&We()});return ie&&Ce.observe(ie,{attributes:!0,childList:!0,subtree:!0}),()=>{Ce.disconnect()}},[ie]);const xe=(Ce,lt,un,Gt=!1)=>{Ce&&lt&&lt.addEventListener(un,Ce,{capture:Gt})},_e=(Ce,lt,un,Gt=!1)=>{Ce&&lt&&lt.removeEventListener(un,Ce,{capture:Gt})};T.useEffect(()=>(xe(h,q,"mouseenter"),xe(g,q,"mouseleave"),xe(p,q,"focus"),xe(y,q,"blur"),xe(x,q,"click"),xe(S,q,"keydown"),xe(w,ie,"click"),xe(_,ie,"mouseenter"),xe(E,ie,"mouseleave"),b&&xe(ce,document,"click",!0),xe(O,document,"keydown",!0),()=>{_e(h,q,"mouseenter"),_e(g,q,"mouseleave"),_e(p,q,"focus"),_e(y,q,"blur"),_e(x,q,"click"),_e(S,q,"keydown"),_e(w,ie,"click"),_e(_,ie,"mouseenter"),_e(E,ie,"mouseleave"),b&&_e(ce,document,"click",!0),_e(O,document,"keydown",!0)}),[J,ie,h,g,p,y,x,S,w,_,E,b,O,X]);const Re=()=>{if(i)return i;let Ce=n==="up"?"top":"bottom";return Y!=="center"&&(Ce=`${Ce}-${Y==="right"?"end":"start"}`),Ce},Ve=T.useMemo(Re,[n,Y,i]),ot=T.useMemo(()=>cpe(Re()),[n,Y,i]),Ot=T.useMemo(()=>({name:"widthMods",enabled:o!==void 0||a!==void 0||s!==void 0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:Ce})=>{const lt=Ce.rects.reference.width;o&&(Ce.styles.popper.width=o==="trigger"?`${lt}px`:o),a&&(Ce.styles.popper.minWidth=a==="trigger"?`${lt}px`:a),s&&(Ce.styles.popper.maxWidth=s==="trigger"?`${lt}px`:s)},effect:({state:Ce})=>{const lt=Ce.elements.reference.offsetWidth;return o&&(Ce.elements.popper.style.width=o==="trigger"?`${lt}px`:o),a&&(Ce.elements.popper.style.minWidth=a==="trigger"?`${lt}px`:a),s&&(Ce.elements.popper.style.maxWidth=s==="trigger"?`${lt}px`:s),()=>{}}}),[o,a,s]),{styles:Mt,attributes:Tt,update:We,forceUpdate:Me}=spe(q,ie,{placement:Ve,modifiers:[{name:"offset",options:{offset:[0,f]}},{name:"preventOverflow",enabled:N},{name:"hide",enabled:!0},{name:"flip",enabled:Ve.startsWith("auto")||k,options:{fallbackPlacements:D==="flip"?[ot]:D}},Ot]});T.useEffect(()=>{var Ce,lt,un,Gt,To,ko,Gi;const qi=((Gt=(un=(lt=(Ce=t==null?void 0:t.props)===null||Ce===void 0?void 0:Ce.children)===null||lt===void 0?void 0:lt[1])===null||un===void 0?void 0:un.props)===null||Gt===void 0?void 0:Gt.children)||((Gi=(ko=(To=t==null?void 0:t.props)===null||To===void 0?void 0:To.children)===null||ko===void 0?void 0:ko.props)===null||Gi===void 0?void 0:Gi.children);K(qi),qi&&de&&qi!==de&&Me&&Me()},[t]),T.useEffect(()=>{U.current<$&&(uh([je,L]),L.current=setTimeout(()=>{je.current=setTimeout(()=>{Le(!1)},M)},$)),U.current=$},[$]);const pt=()=>{V(),uh([je,L]),Ze.current=setTimeout(()=>{Le(!0),Oe(1),W()},j)},Ut=()=>{H(),uh([Ze]),L.current=setTimeout(()=>{Oe(0),je.current=setTimeout(()=>{Le(!1),I()},M)},$)};T.useEffect(()=>{u?pt():Ut()},[u]);const kt=()=>{if(Tt&&Tt.popper&&Tt.popper["data-popper-placement"]){const Ce=Tt.popper["data-popper-placement"];return d[Ce]}return d.top},Bn=Object.assign({className:re(t.props&&t.props.className,d&&kt()),style:Object.assign(Object.assign(Object.assign({},t.props&&t.props.style||{}),Mt.popper),{zIndex:c,opacity:R,transition:upe(M)})},Tt.popper),Ht=()=>{const Ce=T.cloneElement(t,Bn);return A?Ce:T.createElement("div",{style:{display:"contents"},ref:lt=>ue(lt==null?void 0:lt.firstElementChild)},Ce)},Wn=()=>{if(l==="inline")return Ht();{const Ce=typeof l=="function"?l():l;return Tv.createPortal(Ht(),Ce)}};return T.createElement(T.Fragment,null,!P&&e&&T.isValidElement(e)&&T.createElement("div",{style:{display:"contents"},ref:Ce=>ee(Ce==null?void 0:Ce.firstElementChild)},e),P&&e&&T.isValidElement(e)&&e,ne&&he&&Wn())};cv.displayName="Popper";const dpe=(e,t,n)=>{let r;if(mA){const{ResizeObserver:i}=window;if(e&&i){const o=new i(a=>{window.requestAnimationFrame(()=>{Array.isArray(a)&&a.length>0})});o.observe(e),r=()=>o.unobserve(e)}else window.addEventListener("resize",t),r=()=>window.removeEventListener("resize",t)}return()=>{r&&r()}},yn={modifiers:{top:"pf-m-top",topLeft:"pf-m-top-left",topRight:"pf-m-top-right",bottom:"pf-m-bottom",bottomLeft:"pf-m-bottom-left",bottomRight:"pf-m-bottom-right",left:"pf-m-left",leftTop:"pf-m-left-top",leftBottom:"pf-m-left-bottom",right:"pf-m-right",rightTop:"pf-m-right-top",rightBottom:"pf-m-right-bottom",textAlignLeft:"pf-m-text-align-left"},themeDark:"pf-v5-theme-dark",tooltip:"pf-v5-c-tooltip",tooltipArrow:"pf-v5-c-tooltip__arrow",tooltipContent:"pf-v5-c-tooltip__content"},FA=e=>{var{className:t,children:n,isLeftAligned:r}=e,i=De(e,["className","children","isLeftAligned"]);return T.createElement("div",Object.assign({className:re(yn.tooltipContent,r&&yn.modifiers.textAlignLeft,t)},i),n)};FA.displayName="TooltipContent";const NA=e=>{var{className:t}=e,n=De(e,["className"]);return T.createElement("div",Object.assign({className:re(yn.tooltipArrow,t)},n))};NA.displayName="TooltipArrow";const RA={name:"--pf-v5-c-tooltip--MaxWidth",value:"18.75rem",var:"var(--pf-v5-c-tooltip--MaxWidth)"};var BA;(function(e){e.auto="auto",e.top="top",e.bottom="bottom",e.left="left",e.right="right",e.topStart="top-start",e.topEnd="top-end",e.bottomStart="bottom-start",e.bottomEnd="bottom-end",e.leftStart="left-start",e.leftEnd="left-end",e.rightStart="right-start",e.rightEnd="right-end"})(BA||(BA={}));let fpe=1;const ph=e=>{var{content:t,position:n="top",trigger:r="mouseenter focus",isVisible:i=!1,isContentLeftAligned:o=!1,enableFlip:a=!0,className:s="",entryDelay:l=300,exitDelay:c=300,appendTo:u=()=>document.body,zIndex:d=9999,minWidth:f,maxWidth:h=RA.value,distance:g=15,aria:p="describedby",flipBehavior:y=["top","right","bottom","left","top","right","bottom"],id:b=`pf-tooltip-${fpe++}`,children:x,animationDuration:S=300,triggerRef:w,"aria-live":_=w?"polite":"off",onTooltipHidden:E=()=>{}}=e,O=De(e,["content","position","trigger","isVisible","isContentLeftAligned","enableFlip","className","entryDelay","exitDelay","appendTo","zIndex","minWidth","maxWidth","distance","aria","flipBehavior","id","children","animationDuration","triggerRef","aria-live","onTooltipHidden"]);const k=r.includes("mouseenter"),D=r.includes("focus"),P=r.includes("click"),A=r==="manual",[M,j]=T.useState(!1),$=T.createRef(),I=X=>{A||X.key===Ye.Escape&&M&&V()},H=X=>{X.key===Ye.Enter&&(M?V():G())};T.useEffect(()=>{i?G():V()},[i]);const G=()=>{j(!0)},V=()=>{j(!1)},W={top:yn.modifiers.top,bottom:yn.modifiers.bottom,left:yn.modifiers.left,right:yn.modifiers.right,"top-start":yn.modifiers.topLeft,"top-end":yn.modifiers.topRight,"bottom-start":yn.modifiers.bottomLeft,"bottom-end":yn.modifiers.bottomRight,"left-start":yn.modifiers.leftTop,"left-end":yn.modifiers.leftBottom,"right-start":yn.modifiers.rightTop,"right-end":yn.modifiers.rightBottom},N=h!==RA.value,z=T.createElement("div",Object.assign({"aria-live":_,className:re(yn.tooltip,s),role:"tooltip",id:b,style:{maxWidth:N?h:null},ref:$},O),T.createElement(NA,null),T.createElement(FA,{isLeftAligned:o},t)),J=(X,Q)=>{M?V():X.target===Q&&G()},ee=()=>p==="describedby"&&x&&x.props&&!x.props["aria-describedby"]?T.cloneElement(x,{"aria-describedby":b}):p==="labelledby"&&x.props&&!x.props["aria-labelledby"]?T.cloneElement(x,{"aria-labelledby":b}):x;return T.createElement(cv,{trigger:p!=="none"&&M?ee():x,triggerRef:w,popper:z,popperRef:$,minWidth:f!==void 0?f:"revert",appendTo:u,isVisible:M,positionModifiers:W,distance:g,placement:n,onMouseEnter:k&&G,onMouseLeave:k&&V,onPopperMouseEnter:k&&G,onPopperMouseLeave:k&&V,onFocus:D&&G,onBlur:D&&V,onDocumentClick:P&&J,onDocumentKeyDown:A?null:I,onTriggerEnter:A?null:H,enableFlip:a,zIndex:d,flipBehavior:y,animationDuration:S,entryDelay:l,exitDelay:c,onHidden:E})};ph.displayName="Tooltip";class uv extends T.Component{constructor(){super(...arguments),this.ref=T.createRef(),this.additionalRef=T.createRef(),this.getInnerNode=t=>t&&t.childNodes&&t.childNodes.length?t.childNodes[0]:t,this.onKeyDown=t=>{var n,r,i,o,a,s,l,c,u,d;const f=t.target===this.ref.current?0:1;this.props.customChild||t.preventDefault(),t.key==="ArrowUp"?((r=(n=this.props.context)===null||n===void 0?void 0:n.keyHandler)===null||r===void 0||r.call(n,this.props.index,f,Ec.UP),t.stopPropagation()):t.key==="ArrowDown"?((o=(i=this.props.context)===null||i===void 0?void 0:i.keyHandler)===null||o===void 0||o.call(i,this.props.index,f,Ec.DOWN),t.stopPropagation()):t.key==="ArrowRight"?((s=(a=this.props.context)===null||a===void 0?void 0:a.keyHandler)===null||s===void 0||s.call(a,this.props.index,f,Ec.RIGHT),t.stopPropagation()):t.key==="ArrowLeft"?((c=(l=this.props.context)===null||l===void 0?void 0:l.keyHandler)===null||c===void 0||c.call(l,this.props.index,f,Ec.LEFT),t.stopPropagation()):(t.key==="Enter"||t.key===" ")&&(t.target.click(),this.props.enterTriggersArrowDown&&((d=(u=this.props.context)===null||u===void 0?void 0:u.keyHandler)===null||d===void 0||d.call(u,this.props.index,f,Ec.DOWN)))},this.componentRef=t=>{this.ref.current=t;const{component:n}=this.props,r=n.ref;r&&(typeof r=="function"?r(t):r.current=t)}}componentDidMount(){var t;const{context:n,index:r,isDisabled:i,role:o,customChild:a,autoFocus:s}=this.props,l=a?this.getInnerNode(this.ref.current):this.ref.current;(t=n==null?void 0:n.sendRef)===null||t===void 0||t.call(n,r,[l,a?l:this.additionalRef.current],i,o==="separator"),s&&setTimeout(()=>l.focus())}componentDidUpdate(){var t;const{context:n,index:r,isDisabled:i,role:o,customChild:a}=this.props,s=a?this.getInnerNode(this.ref.current):this.ref.current;(t=n==null?void 0:n.sendRef)===null||t===void 0||t.call(n,r,[s,a?s:this.additionalRef.current],i,o==="separator")}extendAdditionalChildRef(){const{additionalChild:t}=this.props;return T.cloneElement(t,{ref:this.additionalRef})}render(){const t=this.props,{className:n,children:r,context:i,onClick:o,component:a,role:s,isDisabled:l,isAriaDisabled:c,isPlainText:u,index:d,href:f,tooltip:h,tooltipProps:g,id:p,componentID:y,listItemClassName:b,additionalChild:x,customChild:S,enterTriggersArrowDown:w,icon:_,autoFocus:E,styleChildren:O,description:k,inoperableEvents:D}=t,P=De(t,["className","children","context","onClick","component","role","isDisabled","isAriaDisabled","isPlainText","index","href","tooltip","tooltipProps","id","componentID","listItemClassName","additionalChild","customChild","enterTriggersArrowDown","icon","autoFocus","styleChildren","description","inoperableEvents"]);let A=re(_&&ga.modifiers.icon,c&&ga.modifiers.ariaDisabled,n);a==="a"?P["aria-disabled"]=l||c:a==="button"&&(P["aria-disabled"]=l||c,P.type=P.type||"button");const M=I=>h?T.createElement(ph,Object.assign({content:h},g),I):I,j=I=>T.cloneElement(I,Object.assign(Object.assign({},O&&{className:re(I.props.className,A)}),this.props.role!=="separator"&&{role:s,ref:this.componentRef})),$=I=>{const H=I,G=k?T.createElement(T.Fragment,null,T.createElement("div",{className:ga.dropdownMenuItemMain},_&&T.createElement("span",{className:re(ga.dropdownMenuItemIcon)},_),r),T.createElement("div",{className:ga.dropdownMenuItemDescription},k)):T.createElement(T.Fragment,null,_&&T.createElement("span",{className:re(ga.dropdownMenuItemIcon)},_),r);return T.createElement(H,Object.assign({},P,l||c?sge(D):null,{href:f,ref:this.ref,className:A,id:y,role:s}),G)};return T.createElement(ege.Consumer,null,({onSelect:I,itemClass:H,disabledClass:G,plainTextClass:V})=>(this.props.role!=="separator"&&(A=re(A,l&&G,u&&V,H,k&&ga.modifiers.description)),S?T.cloneElement(S,{ref:this.ref,onKeyDown:this.onKeyDown}):T.createElement("li",Object.assign({},b&&{className:b},{role:"none",onKeyDown:this.onKeyDown,onClick:W=>{!l&&!c&&(o==null||o(W),I==null||I(W))},id:p}),M(T.isValidElement(a)?j(a):$(a)),x&&this.extendAdditionalChildRef())))}}uv.displayName="InternalDropdownItem",uv.defaultProps={className:"",component:"a",role:"none",isDisabled:!1,isPlainText:!1,tooltipProps:{},onClick:e=>{},index:-1,context:{keyHandler:()=>{},sendRef:()=>{}},enterTriggersArrowDown:!1,icon:null,styleChildren:!0,description:null,inoperableEvents:["onClick","onKeyPress"]};const dv={divider:"pf-v5-c-divider",modifiers:{hidden:"pf-m-hidden",hiddenOnSm:"pf-m-hidden-on-sm",visibleOnSm:"pf-m-visible-on-sm",hiddenOnMd:"pf-m-hidden-on-md",visibleOnMd:"pf-m-visible-on-md",hiddenOnLg:"pf-m-hidden-on-lg",visibleOnLg:"pf-m-visible-on-lg",hiddenOnXl:"pf-m-hidden-on-xl",visibleOnXl:"pf-m-visible-on-xl",hiddenOn_2xl:"pf-m-hidden-on-2xl",visibleOn_2xl:"pf-m-visible-on-2xl",vertical:"pf-m-vertical",insetNone:"pf-m-inset-none",insetXs:"pf-m-inset-xs",insetSm:"pf-m-inset-sm",insetMd:"pf-m-inset-md",insetLg:"pf-m-inset-lg",insetXl:"pf-m-inset-xl",inset_2xl:"pf-m-inset-2xl",inset_3xl:"pf-m-inset-3xl",horizontalOnSm:"pf-m-horizontal-on-sm",verticalOnSm:"pf-m-vertical-on-sm",insetNoneOnSm:"pf-m-inset-none-on-sm",insetXsOnSm:"pf-m-inset-xs-on-sm",insetSmOnSm:"pf-m-inset-sm-on-sm",insetMdOnSm:"pf-m-inset-md-on-sm",insetLgOnSm:"pf-m-inset-lg-on-sm",insetXlOnSm:"pf-m-inset-xl-on-sm",inset_2xlOnSm:"pf-m-inset-2xl-on-sm",inset_3xlOnSm:"pf-m-inset-3xl-on-sm",horizontalOnMd:"pf-m-horizontal-on-md",verticalOnMd:"pf-m-vertical-on-md",insetNoneOnMd:"pf-m-inset-none-on-md",insetXsOnMd:"pf-m-inset-xs-on-md",insetSmOnMd:"pf-m-inset-sm-on-md",insetMdOnMd:"pf-m-inset-md-on-md",insetLgOnMd:"pf-m-inset-lg-on-md",insetXlOnMd:"pf-m-inset-xl-on-md",inset_2xlOnMd:"pf-m-inset-2xl-on-md",inset_3xlOnMd:"pf-m-inset-3xl-on-md",horizontalOnLg:"pf-m-horizontal-on-lg",verticalOnLg:"pf-m-vertical-on-lg",insetNoneOnLg:"pf-m-inset-none-on-lg",insetXsOnLg:"pf-m-inset-xs-on-lg",insetSmOnLg:"pf-m-inset-sm-on-lg",insetMdOnLg:"pf-m-inset-md-on-lg",insetLgOnLg:"pf-m-inset-lg-on-lg",insetXlOnLg:"pf-m-inset-xl-on-lg",inset_2xlOnLg:"pf-m-inset-2xl-on-lg",inset_3xlOnLg:"pf-m-inset-3xl-on-lg",horizontalOnXl:"pf-m-horizontal-on-xl",verticalOnXl:"pf-m-vertical-on-xl",insetNoneOnXl:"pf-m-inset-none-on-xl",insetXsOnXl:"pf-m-inset-xs-on-xl",insetSmOnXl:"pf-m-inset-sm-on-xl",insetMdOnXl:"pf-m-inset-md-on-xl",insetLgOnXl:"pf-m-inset-lg-on-xl",insetXlOnXl:"pf-m-inset-xl-on-xl",inset_2xlOnXl:"pf-m-inset-2xl-on-xl",inset_3xlOnXl:"pf-m-inset-3xl-on-xl",horizontalOn_2xl:"pf-m-horizontal-on-2xl",verticalOn_2xl:"pf-m-vertical-on-2xl",insetNoneOn_2xl:"pf-m-inset-none-on-2xl",insetXsOn_2xl:"pf-m-inset-xs-on-2xl",insetSmOn_2xl:"pf-m-inset-sm-on-2xl",insetMdOn_2xl:"pf-m-inset-md-on-2xl",insetLgOn_2xl:"pf-m-inset-lg-on-2xl",insetXlOn_2xl:"pf-m-inset-xl-on-2xl",inset_2xlOn_2xl:"pf-m-inset-2xl-on-2xl",inset_3xlOn_2xl:"pf-m-inset-3xl-on-2xl"}};var yh;(function(e){e.hr="hr",e.li="li",e.div="div"})(yh||(yh={}));const yr=e=>{var{className:t,component:n=yh.hr,inset:r,orientation:i}=e,o=De(e,["className","component","inset","orientation"]);const a=n;return T.createElement(a,Object.assign({className:re(dv.divider,hA(r,dv),hA(i,dv),t)},n!=="hr"&&{role:"separator"},o))};yr.displayName="Divider";const fv=e=>{var{className:t="",ref:n,ouiaId:r,ouiaSafe:i}=e,o=De(e,["className","ref","ouiaId","ouiaSafe"]);const a=yA(fv.displayName,r,i);return T.createElement(tge.Consumer,null,s=>T.createElement(uv,Object.assign({},o,{context:s,component:T.createElement(yr,{component:yh.div}),className:t,role:"separator"},a)))};fv.displayName="DropdownSeparator";const WA=Eo({name:"CaretDownIcon",height:512,width:320,svgPath:"M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z",yOffset:0,xOffset:0}),Fc={badge:"pf-v5-c-badge",modifiers:{read:"pf-m-read",unread:"pf-m-unread"},themeDark:"pf-v5-theme-dark"},zA=e=>{var{isRead:t=!1,className:n="",children:r="",screenReaderText:i}=e,o=De(e,["isRead","className","children","screenReaderText"]);return T.createElement("span",Object.assign({},o,{className:re(Fc.badge,t?Fc.modifiers.read:Fc.modifiers.unread,n)}),r,i&&T.createElement("span",{className:"pf-v5-screen-reader"},i))};zA.displayName="Badge";const vh={modifiers:{inline:"pf-m-inline",sm:"pf-m-sm",md:"pf-m-md",lg:"pf-m-lg",xl:"pf-m-xl"},spinner:"pf-v5-c-spinner",spinnerPath:"pf-v5-c-spinner__path"},hpe={name:"--pf-v5-c-spinner--diameter",value:"3.375rem",var:"var(--pf-v5-c-spinner--diameter)"};var hv;(function(e){e.sm="sm",e.md="md",e.lg="lg",e.xl="xl"})(hv||(hv={}));const mv=e=>{var{className:t="",size:n="xl","aria-valuetext":r="Loading...",diameter:i,isInline:o=!1,"aria-label":a,"aria-labelledBy":s}=e,l=De(e,["className","size","aria-valuetext","diameter","isInline","aria-label","aria-labelledBy"]);return T.createElement("svg",Object.assign({className:re(vh.spinner,o?vh.modifiers.inline:vh.modifiers[n],t),role:"progressbar","aria-valuetext":r,viewBox:"0 0 100 100"},i&&{style:{[hpe.name]:i}},a&&{"aria-label":a},s&&{"aria-labelledBy":s},!a&&!s&&{"aria-label":"Contents"},l),T.createElement("circle",{className:vh.spinnerPath,cx:"50",cy:"50",r:"45",fill:"none"}))};mv.displayName="Spinner";const VA=e=>{var t=De(e,["children"]);return T.createElement(fv,Object.assign({},t))};VA.displayName="ApplicationLauncherSeparator";const mpe=Eo({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}),gpe=(e,t,n,r)=>{if(t){const i=[];return e.forEach(o=>{if(n.length>0)return o.props.children&&o.props.children.filter(a=>n.includes(a.props.id)).map(a=>i.push(T.cloneElement(a,{isFavorite:!0,id:`favorite-${a.props.id}`})))}),i}return e.filter(i=>n.includes(i.props.id)).map(i=>T.cloneElement(i,{isFavorite:!0,enterTriggersArrowDown:r}))},ppe=(e,t,n)=>t?e.map(r=>T.cloneElement(r,{children:T.Children.map(r.props.children,i=>i.type===VA||i.type===yr?i:T.cloneElement(i,{isFavorite:n.some(o=>o===i.props.id||`favorite-${o}`===i.props.id)}))})):e.map(r=>T.cloneElement(r,{isFavorite:n.some(i=>i===r.props.id)})),Lt={badge:"pf-v5-c-badge",button:"pf-v5-c-button",buttonCount:"pf-v5-c-button__count",buttonIcon:"pf-v5-c-button__icon",buttonProgress:"pf-v5-c-button__progress",modifiers:{active:"pf-m-active",block:"pf-m-block",small:"pf-m-small",primary:"pf-m-primary",displayLg:"pf-m-display-lg",secondary:"pf-m-secondary",tertiary:"pf-m-tertiary",link:"pf-m-link",unread:"pf-m-unread",inline:"pf-m-inline",danger:"pf-m-danger",warning:"pf-m-warning",control:"pf-m-control",expanded:"pf-m-expanded",plain:"pf-m-plain",noPadding:"pf-m-no-padding",disabled:"pf-m-disabled",ariaDisabled:"pf-m-aria-disabled",progress:"pf-m-progress",inProgress:"pf-m-in-progress",start:"pf-m-start",end:"pf-m-end"},spinner:"pf-v5-c-spinner",themeDark:"pf-v5-theme-dark"};var ai;(function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary",e.danger="danger",e.warning="warning",e.link="link",e.plain="plain",e.control="control"})(ai||(ai={}));var gv;(function(e){e.button="button",e.submit="submit",e.reset="reset"})(gv||(gv={}));var Nc;(function(e){e.default="default",e.sm="sm",e.lg="lg"})(Nc||(Nc={}));const ype=e=>{var{children:t=null,className:n="",component:r="button",isActive:i=!1,isBlock:o=!1,isDisabled:a=!1,isAriaDisabled:s=!1,isLoading:l=null,isDanger:c=!1,spinnerAriaValueText:u,spinnerAriaLabelledBy:d,spinnerAriaLabel:f,size:h=Nc.default,inoperableEvents:g=["onClick","onKeyPress"],isInline:p=!1,type:y=gv.button,variant:b=ai.primary,iconPosition:x="start","aria-label":S=null,icon:w=null,ouiaId:_,ouiaSafe:E=!0,tabIndex:O=null,innerRef:k,countOptions:D}=e,P=De(e,["children","className","component","isActive","isBlock","isDisabled","isAriaDisabled","isLoading","isDanger","spinnerAriaValueText","spinnerAriaLabelledBy","spinnerAriaLabel","size","inoperableEvents","isInline","type","variant","iconPosition","aria-label","icon","ouiaId","ouiaSafe","tabIndex","innerRef","countOptions"]);const A=yA(bh.displayName,_,E,b),M=r,j=M==="button",$=p&&M==="span",I=g.reduce((G,V)=>Object.assign(Object.assign({},G),{[V]:W=>{W.preventDefault()}}),{}),H=()=>{if(a)return j?null:-1;if(s)return null;if($)return 0};return T.createElement(M,Object.assign({},P,s?I:null,{"aria-disabled":a||s,"aria-label":S,className:re(Lt.button,Lt.modifiers[b],o&&Lt.modifiers.block,a&&Lt.modifiers.disabled,s&&Lt.modifiers.ariaDisabled,i&&Lt.modifiers.active,p&&b===ai.link&&Lt.modifiers.inline,c&&(b===ai.secondary||b===ai.link)&&Lt.modifiers.danger,l!==null&&b!==ai.plain&&Lt.modifiers.progress,l&&Lt.modifiers.inProgress,h===Nc.sm&&Lt.modifiers.small,h===Nc.lg&&Lt.modifiers.displayLg,n),disabled:j?a:null,tabIndex:O!==null?O:H(),type:j||$?y:null,role:$?"button":null,ref:k},A),l&&T.createElement("span",{className:re(Lt.buttonProgress)},T.createElement(mv,{size:hv.md,isInline:p,"aria-valuetext":u,"aria-label":f,"aria-labelledby":d})),b===ai.plain&&t===null&&w?w:null,b!==ai.plain&&w&&(x==="start"||x==="left")&&T.createElement("span",{className:re(Lt.buttonIcon,Lt.modifiers.start)},w),t,b!==ai.plain&&w&&(x==="end"||x==="right")&&T.createElement("span",{className:re(Lt.buttonIcon,Lt.modifiers.end)},w),D&&T.createElement("span",{className:re(Lt.buttonCount,D.className)},T.createElement(zA,{isRead:D.isRead},D.count)))},bh=T.forwardRef((e,t)=>T.createElement(ype,Object.assign({innerRef:t},e)));bh.displayName="Button";const vpe=Eo({name:"TimesIcon",height:512,width:352,svgPath:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z",yOffset:0,xOffset:0}),bpe={dirRtl:"pf-v5-m-dir-rtl",form:"pf-v5-c-form",formActions:"pf-v5-c-form__actions",formFieldGroup:"pf-v5-c-form__field-group",formFieldGroupBody:"pf-v5-c-form__field-group-body",formFieldGroupHeader:"pf-v5-c-form__field-group-header",formFieldGroupHeaderActions:"pf-v5-c-form__field-group-header-actions",formFieldGroupHeaderDescription:"pf-v5-c-form__field-group-header-description",formFieldGroupHeaderMain:"pf-v5-c-form__field-group-header-main",formFieldGroupHeaderTitle:"pf-v5-c-form__field-group-header-title",formFieldGroupHeaderTitleText:"pf-v5-c-form__field-group-header-title-text",formFieldGroupToggle:"pf-v5-c-form__field-group-toggle",formFieldGroupToggleButton:"pf-v5-c-form__field-group-toggle-button",formFieldGroupToggleIcon:"pf-v5-c-form__field-group-toggle-icon",formFieldset:"pf-v5-c-form__fieldset",formGroup:"pf-v5-c-form__group",formGroupControl:"pf-v5-c-form__group-control",formGroupLabel:"pf-v5-c-form__group-label",formGroupLabelHelp:"pf-v5-c-form__group-label-help",formGroupLabelInfo:"pf-v5-c-form__group-label-info",formGroupLabelMain:"pf-v5-c-form__group-label-main",formHelperText:"pf-v5-c-form__helper-text",formHelperTextIcon:"pf-v5-c-form__helper-text-icon",formLabel:"pf-v5-c-form__label",formLabelRequired:"pf-v5-c-form__label-required",formLabelText:"pf-v5-c-form__label-text",formSection:"pf-v5-c-form__section",formSectionTitle:"pf-v5-c-form__section-title",modifiers:{horizontal:"pf-m-horizontal",alignRight:"pf-m-align-right",noPaddingTop:"pf-m-no-padding-top",info:"pf-m-info",horizontalOnXs:"pf-m-horizontal-on-xs",horizontalOnSm:"pf-m-horizontal-on-sm",horizontalOnMd:"pf-m-horizontal-on-md",horizontalOnLg:"pf-m-horizontal-on-lg",horizontalOnXl:"pf-m-horizontal-on-xl",horizontalOn_2xl:"pf-m-horizontal-on-2xl",limitWidth:"pf-m-limit-width",action:"pf-m-action",disabled:"pf-m-disabled",inline:"pf-m-inline",stack:"pf-m-stack",error:"pf-m-error",success:"pf-m-success",warning:"pf-m-warning",inactive:"pf-m-inactive",hidden:"pf-m-hidden",expanded:"pf-m-expanded"},themeDark:"pf-v5-theme-dark"},Nr={formControl:"pf-v5-c-form-control",formControlIcon:"pf-v5-c-form-control__icon",formControlToggleIcon:"pf-v5-c-form-control__toggle-icon",formControlUtilities:"pf-v5-c-form-control__utilities",modifiers:{readonly:"pf-m-readonly",success:"pf-m-success",warning:"pf-m-warning",error:"pf-m-error",plain:"pf-m-plain",expanded:"pf-m-expanded",disabled:"pf-m-disabled",icon:"pf-m-icon",placeholder:"pf-m-placeholder",resizeVertical:"pf-m-resize-vertical",resizeHorizontal:"pf-m-resize-horizontal",resizeBoth:"pf-m-resize-both",status:"pf-m-status"},themeDark:"pf-v5-theme-dark"},UA=Eo({name:"CheckCircleIcon",height:512,width:512,svgPath:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z",yOffset:0,xOffset:0}),HA=Eo({name:"ExclamationCircleIcon",height:512,width:512,svgPath:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z",yOffset:0,xOffset:0}),GA=Eo({name:"ExclamationTriangleIcon",height:512,width:576,svgPath:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z",yOffset:0,xOffset:0}),xpe={success:UA,error:HA,warning:GA},qA=e=>{var{status:t,customIcon:n,className:r}=e,i=De(e,["status","customIcon","className"]);const o=t&&xpe[t];return T.createElement("span",Object.assign({className:re(Nr.formControlIcon,t&&Nr.modifiers.status,r)},i),n||T.createElement(o,null))};var pv;(function(e){e.text="text",e.date="date",e.datetimeLocal="datetime-local",e.email="email",e.month="month",e.number="number",e.password="password",e.search="search",e.tel="tel",e.time="time",e.url="url"})(pv||(pv={}));var YA;(function(e){e.default="default",e.plain="plain"})(YA||(YA={}));class Rc extends T.Component{constructor(t){super(t),this.inputRef=T.createRef(),this.observer=()=>{},this.handleChange=n=>{this.props.onChange&&this.props.onChange(n,n.currentTarget.value)},this.handleResize=()=>{const n=this.props.innerRef||this.inputRef;n&&n.current&&age(n.current,String(this.props.value))},this.restoreText=()=>{const n=this.props.innerRef||this.inputRef;n.current.value=String(this.props.value),n.current.scrollLeft=n.current.scrollWidth},this.onFocus=n=>{const{isLeftTruncated:r,isStartTruncated:i,onFocus:o}=this.props;(r||i)&&this.restoreText(),o&&o(n)},this.onBlur=n=>{const{isLeftTruncated:r,isStartTruncated:i,onBlur:o}=this.props;(r||i)&&this.handleResize(),o&&o(n)},this.sanitizeInputValue=n=>typeof n=="string"?n.replace(/\n/g," "):n,!t.id&&!t["aria-label"]&&!t["aria-labelledby"]&&console.error("Text input:","Text input requires either an id or aria-label to be specified"),this.state={ouiaStateId:dh(Rc.displayName)}}componentDidMount(){if(this.props.isLeftTruncated||this.props.isStartTruncated){const t=this.props.innerRef||this.inputRef;this.observer=dpe(t.current,this.handleResize),this.handleResize()}}componentWillUnmount(){(this.props.isLeftTruncated||this.props.isStartTruncated)&&this.observer()}render(){const t=this.props,{innerRef:n,className:r,type:i,value:o,placeholder:a,validated:s,onChange:l,onFocus:c,onBlur:u,isLeftTruncated:d,isStartTruncated:f,isExpanded:h,expandedProps:g,readOnly:p,readOnlyVariant:y,isRequired:b,isDisabled:x,customIcon:S,ouiaId:w,ouiaSafe:_}=t,E=De(t,["innerRef","className","type","value","placeholder","validated","onChange","onFocus","onBlur","isLeftTruncated","isStartTruncated","isExpanded","expandedProps","readOnly","readOnlyVariant","isRequired","isDisabled","customIcon","ouiaId","ouiaSafe"]),O=["success","error","warning"].includes(s),k=g?{"aria-expanded":g==null?void 0:g.isExpanded,"aria-controls":g==null?void 0:g.ariaControls,role:"combobox"}:{};return T.createElement("span",{className:re(Nr.formControl,y&&Nr.modifiers.readonly,y==="plain"&&Nr.modifiers.plain,x&&Nr.modifiers.disabled,(h||(g==null?void 0:g.isExpanded))&&Nr.modifiers.expanded,S&&Nr.modifiers.icon,O&&Nr.modifiers[s],r)},T.createElement("input",Object.assign({},E,{onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.handleChange,type:i,value:this.sanitizeInputValue(o),"aria-invalid":E["aria-invalid"]?E["aria-invalid"]:s===Tn.error},k,{required:b,disabled:x,readOnly:!!y||p,ref:n||this.inputRef,placeholder:a},kc(xh.displayName,w!==void 0?w:this.state.ouiaStateId,_))),(S||O)&&T.createElement("span",{className:re(Nr.formControlUtilities)},S&&T.createElement(qA,{customIcon:S}),O&&T.createElement(qA,{status:s})))}}Rc.displayName="TextInputBase",Rc.defaultProps={"aria-label":null,isRequired:!1,validated:"default",isDisabled:!1,isExpanded:!1,type:pv.text,isLeftTruncated:!1,isStartTruncated:!1,onChange:()=>{},ouiaSafe:!0};const xh=T.forwardRef((e,t)=>T.createElement(Rc,Object.assign({},e,{innerRef:t})));xh.displayName="TextInput";const KA=Eo({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}),se={check:"pf-v5-c-check",checkLabel:"pf-v5-c-check__label",chipGroup:"pf-v5-c-chip-group",divider:"pf-v5-c-divider",formControl:"pf-v5-c-form-control",modifiers:{invalid:"pf-m-invalid",success:"pf-m-success",warning:"pf-m-warning",disabled:"pf-m-disabled",active:"pf-m-active",expanded:"pf-m-expanded",plain:"pf-m-plain",typeahead:"pf-m-typeahead",placeholder:"pf-m-placeholder",top:"pf-m-top",alignRight:"pf-m-align-right",static:"pf-m-static",favorite:"pf-m-favorite",favoriteAction:"pf-m-favorite-action",focus:"pf-m-focus",link:"pf-m-link",action:"pf-m-action",selected:"pf-m-selected",description:"pf-m-description",load:"pf-m-load",loading:"pf-m-loading"},select:"pf-v5-c-select",selectListItem:"pf-v5-c-select__list-item",selectMenu:"pf-v5-c-select__menu",selectMenuFieldset:"pf-v5-c-select__menu-fieldset",selectMenuFooter:"pf-v5-c-select__menu-footer",selectMenuGroup:"pf-v5-c-select__menu-group",selectMenuGroupTitle:"pf-v5-c-select__menu-group-title",selectMenuItem:"pf-v5-c-select__menu-item",selectMenuItemActionIcon:"pf-v5-c-select__menu-item-action-icon",selectMenuItemCount:"pf-v5-c-select__menu-item-count",selectMenuItemDescription:"pf-v5-c-select__menu-item-description",selectMenuItemIcon:"pf-v5-c-select__menu-item-icon",selectMenuItemMain:"pf-v5-c-select__menu-item-main",selectMenuItemMatch:"pf-v5-c-select__menu-item--match",selectMenuItemRow:"pf-v5-c-select__menu-item-row",selectMenuItemText:"pf-v5-c-select__menu-item-text",selectMenuSearch:"pf-v5-c-select__menu-search",selectMenuWrapper:"pf-v5-c-select__menu-wrapper",selectToggle:"pf-v5-c-select__toggle",selectToggleArrow:"pf-v5-c-select__toggle-arrow",selectToggleBadge:"pf-v5-c-select__toggle-badge",selectToggleButton:"pf-v5-c-select__toggle-button",selectToggleClear:"pf-v5-c-select__toggle-clear",selectToggleIcon:"pf-v5-c-select__toggle-icon",selectToggleStatusIcon:"pf-v5-c-select__toggle-status-icon",selectToggleText:"pf-v5-c-select__toggle-text",selectToggleTypeahead:"pf-v5-c-select__toggle-typeahead",selectToggleWrapper:"pf-v5-c-select__toggle-wrapper",themeDark:"pf-v5-theme-dark"},XA=Eo({name:"TimesCircleIcon",height:512,width:512,svgPath:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z",yOffset:0,xOffset:0}),_h={check:"pf-v5-c-check",checkBody:"pf-v5-c-check__body",checkDescription:"pf-v5-c-check__description",checkInput:"pf-v5-c-check__input",checkLabel:"pf-v5-c-check__label",checkLabelRequired:"pf-v5-c-check__label-required",modifiers:{standalone:"pf-m-standalone",disabled:"pf-m-disabled"}},yv=T.createContext(null);yv.Provider;const vv=yv.Consumer;var ze;(function(e){e.single="single",e.checkbox="checkbox",e.typeahead="typeahead",e.typeaheadMulti="typeaheadmulti"})(ze||(ze={}));var Bc;(function(e){e.right="right",e.left="left"})(Bc||(Bc={}));var Wc;(function(e){e.up="up",e.down="down"})(Wc||(Wc={}));const zc="input, button, select, textarea, a[href]";class si extends T.Component{constructor(){super(...arguments),this.ref=T.createRef(),this.liRef=T.createRef(),this.favoriteRef=T.createRef(),this.onKeyDown=(t,n,r,i)=>{const{index:o,keyHandler:a,isLastOptionBeforeFooter:s}=this.props;let l=!1;s!==void 0&&(l=s(o)),t.key===Ye.Tab&&(i&&!l?(t.shiftKey?a(o,n,"up"):a(o,n,"down"),t.stopPropagation()):t.shiftKey?a(o,n,"up"):a(o,n,"tab")),t.preventDefault(),t.key===Ye.ArrowUp?a(o,n,"up"):t.key===Ye.ArrowDown?a(o,n,"down"):t.key===Ye.ArrowLeft?a(o,n,"left"):t.key===Ye.ArrowRight?a(o,n,"right"):t.key===Ye.Enter&&(r!==void 0?r():this.ref.current.click())}}componentDidMount(){this.props.sendRef(this.props.isDisabled?null:this.ref.current,this.props.isDisabled?null:this.favoriteRef.current,this.props.isDisabled?null:this.liRef.current,this.props.index)}componentDidUpdate(){this.props.sendRef(this.props.isDisabled?null:this.ref.current,this.props.isDisabled?null:this.favoriteRef.current,this.props.isDisabled?null:this.liRef.current,this.props.index)}render(){const t=this.props,{children:n,className:r,id:i,description:o,itemCount:a,value:s,onClick:l,isDisabled:c,isPlaceholder:u,isNoResultsOption:d,isSelected:f,isChecked:h,isFocused:g,sendRef:p,keyHandler:y,index:b,component:x,inputId:S,isFavorite:w,ariaIsFavoriteLabel:_="starred",ariaIsNotFavoriteLabel:E="not starred",isLoad:O,isLoading:k,setViewMoreNextIndex:D,isLastOptionBeforeFooter:P,isGrouped:A=!1}=t,M=De(t,["children","className","id","description","itemCount","value","onClick","isDisabled","isPlaceholder","isNoResultsOption","isSelected","isChecked","isFocused","sendRef","keyHandler","index","component","inputId","isFavorite","ariaIsFavoriteLabel","ariaIsNotFavoriteLabel","isLoad","isLoading","setViewMoreNextIndex","isLastOptionBeforeFooter","isGrouped"]),j=x;!i&&w!==null&&console.error("Please provide an id to use the favorites feature.");const $=i||uA("select-option"),I=W=>T.createElement("button",{className:re(se.selectMenuItem,se.modifiers.action,se.modifiers.favoriteAction),"aria-label":w?_:E,onClick:()=>{W($.replace("favorite-",""),w)},onKeyDown:N=>{this.onKeyDown(N,1,()=>W($.replace("favorite-",""),w))},ref:this.favoriteRef},T.createElement("span",{className:re(se.selectMenuItemActionIcon)},T.createElement(mpe,null))),H=a?T.createElement("span",{className:re(se.selectMenuItemRow)},T.createElement("span",{className:re(se.selectMenuItemText)},n||s&&s.toString&&s.toString()),T.createElement("span",{className:re(se.selectMenuItemCount)},a)):n||s.toString(),G=W=>{D(),l(W)},V=(W,N,z,J,ee,X)=>{if(z!==ze.checkbox&&k&&A)return T.createElement("div",{role:"presentation",className:re(se.selectListItem,k&&se.modifiers.loading,r)},n);if(z!==ze.checkbox&&O&&A)return T.createElement("div",null,T.createElement("button",Object.assign({},M,{role:"presentation",className:re(se.selectMenuItem,se.modifiers.load,r),onClick:Q=>{G(Q),Q.stopPropagation()},ref:this.ref,type:"button"}),n||s.toString()));if(z!==ze.checkbox)return T.createElement("li",{id:$,role:"presentation",className:re(k&&se.selectListItem,!k&&se.selectMenuWrapper,w&&se.modifiers.favorite,g&&se.modifiers.focus,k&&se.modifiers.loading),ref:this.liRef},k&&n,O&&!A&&T.createElement("button",Object.assign({},M,{className:re(se.selectMenuItem,se.modifiers.load,r),onClick:Q=>{G(Q),Q.stopPropagation()},ref:this.ref,onKeyDown:Q=>{this.onKeyDown(Q,0)},type:"button"}),H),!k&&!O&&T.createElement(T.Fragment,null,T.createElement(j,Object.assign({},M,{className:re(se.selectMenuItem,O&&se.modifiers.load,f&&se.modifiers.selected,c&&se.modifiers.disabled,o&&se.modifiers.description,w!==null&&se.modifiers.link,r),onClick:Q=>{c||(l(Q),W(Q,s,u),X&&N())},role:"option","aria-selected":f||null,ref:this.ref,onKeyDown:Q=>{this.onKeyDown(Q,0)},type:"button"}),o&&T.createElement(T.Fragment,null,T.createElement("span",{className:re(se.selectMenuItemMain)},H,f&&T.createElement("span",{className:re(se.selectMenuItemIcon)},T.createElement(KA,{"aria-hidden":!0}))),T.createElement("span",{className:re(se.selectMenuItemDescription)},o)),!o&&T.createElement(T.Fragment,null,H,f&&T.createElement("span",{className:re(se.selectMenuItemIcon)},T.createElement(KA,{"aria-hidden":!0})))),w!==null&&i&&I(ee)));if(z===ze.checkbox&&O)return T.createElement("button",{className:re(se.selectMenuItem,se.modifiers.load,g&&se.modifiers.focus,r),onKeyDown:Q=>{this.onKeyDown(Q,0,void 0,!0)},onClick:Q=>{G(Q),Q.stopPropagation()},ref:this.ref},n||s&&s.toString&&s.toString());if(z===ze.checkbox&&k)return T.createElement("div",{className:re(se.selectListItem,k&&se.modifiers.loading,r)},n);if(z===ze.checkbox&&!d&&!k&&!O)return T.createElement("label",Object.assign({},M,{className:re(_h.check,se.selectMenuItem,c&&se.modifiers.disabled,o&&se.modifiers.description,r),onKeyDown:Q=>{this.onKeyDown(Q,0,void 0,!0)}}),T.createElement("input",{id:S||`${J}-${s.toString()}`,className:re(_h.checkInput),type:"checkbox",onChange:Q=>{c||(l(Q),W(Q,s))},ref:this.ref,checked:h||!1,disabled:c}),T.createElement("span",{className:re(_h.checkLabel,c&&se.modifiers.disabled)},H),o&&T.createElement("div",{className:re(_h.checkDescription)},o));if(z===ze.checkbox&&d&&!k&&!O)return T.createElement("div",null,T.createElement(j,Object.assign({},M,{className:re(se.selectMenuItem,f&&se.modifiers.selected,c&&se.modifiers.disabled,r),role:"option","aria-selected":f||null,ref:this.ref,onKeyDown:Q=>{this.onKeyDown(Q,0,void 0,!0)},type:"button"}),H))};return T.createElement(vv,null,({onSelect:W,onClose:N,variant:z,inputIdPrefix:J,onFavorite:ee,shouldResetOnSelect:X})=>T.createElement(T.Fragment,null,V(W,N,z,J,ee,X)))}}si.displayName="SelectOption",si.defaultProps={className:"",value:"",index:0,isDisabled:!1,isPlaceholder:!1,isSelected:!1,isChecked:!1,isNoResultsOption:!1,component:"button",onClick:()=>{},sendRef:()=>{},keyHandler:()=>{},inputId:"",isFavorite:null,isLoad:!1,isLoading:!1,setViewMoreNextIndex:()=>{},isLastOptionBeforeFooter:()=>!1};const pa=e=>{var{children:t=[],className:n="",label:r="",titleId:i=""}=e,o=De(e,["children","className","label","titleId"]);return T.createElement(vv,null,({variant:a})=>T.createElement("div",Object.assign({},o,{className:re(se.selectMenuGroup,n)}),T.createElement("div",{className:re(se.selectMenuGroupTitle),id:i,"aria-hidden":!0},r),a===ze.checkbox?t:T.createElement("ul",{role:"listbox"},t)))};pa.displayName="SelectGroup";class bv extends T.Component{extendChildren(t){const{children:n,hasInlineFilter:r,isGrouped:i}=this.props,o=n;let a=r?1:0;return i?T.Children.map(o,s=>s.type===pa?T.cloneElement(s,{titleId:s.props.label&&s.props.label.replace(/\W/g,"-"),children:T.Children.map(s.props.children,l=>this.cloneOption(l,a++,t))}):this.cloneOption(s,a++,t)):T.Children.map(o,s=>this.cloneOption(s,a++,t))}cloneOption(t,n,r){const{selected:i,sendRef:o,keyHandler:a}=this.props,s=this.checkForValue(t.props.value,i);return t.type===yr?t:T.cloneElement(t,{inputId:`${r}-${n}`,isSelected:s,sendRef:o,keyHandler:a,index:n})}checkForValue(t,n){if(!n||!t)return!1;const r=typeof t!="string"&&t.toString&&t.compareTo;return Array.isArray(n)?r?n.some(i=>i.compareTo(t)):n.includes(t):r?n.compareTo(t):n===t}extendCheckboxChildren(t){const{isGrouped:n,checked:r,sendRef:i,keyHandler:o,hasInlineFilter:a,isLastOptionBeforeFooter:s}=this.props;let l=a?1:0;return n?T.Children.map(t,c=>c.type===yr?c:c.type===si?T.cloneElement(c,{isChecked:this.checkForValue(c.props.value,r),sendRef:i,keyHandler:o,index:l++,isLastOptionBeforeFooter:s}):T.cloneElement(c,{titleId:c.props.label&&c.props.label.replace(/\W/g,"-"),children:c.props.children?T.createElement("fieldset",{"aria-labelledby":c.props.label&&c.props.label.replace(/\W/g,"-"),className:re(se.selectMenuFieldset)},T.Children.map(c.props.children,u=>u.type===yr?u:T.cloneElement(u,{isChecked:this.checkForValue(u.props.value,r),sendRef:i,keyHandler:o,index:l++,isLastOptionBeforeFooter:s}))):null})):T.Children.map(t,c=>c.type===yr?c:T.cloneElement(c,{isChecked:this.checkForValue(c.props.value,r),sendRef:i,keyHandler:o,index:l++,isLastOptionBeforeFooter:s}))}renderSelectMenu({variant:t,inputIdPrefix:n}){const r=this.props,{children:i,isCustomContent:o,className:a,isExpanded:s,openedOnEnter:l,selected:c,checked:u,isGrouped:d,position:f,sendRef:h,keyHandler:g,maxHeight:p,noResultsFoundText:y,createText:b,"aria-label":x,"aria-labelledby":S,hasInlineFilter:w,innerRef:_,footer:E,footerRef:O,isLastOptionBeforeFooter:k}=r,D=De(r,["children","isCustomContent","className","isExpanded","openedOnEnter","selected","checked","isGrouped","position","sendRef","keyHandler","maxHeight","noResultsFoundText","createText","aria-label","aria-labelledby","hasInlineFilter","innerRef","footer","footerRef","isLastOptionBeforeFooter"]);let P="div";const A=Object.assign({ref:_,className:re(E?`${se.selectMenu}-list`:se.selectMenu,f===Bc.right&&se.modifiers.alignRight,a)},p&&{style:{maxHeight:p,overflow:"auto"}}),M=()=>t===ze.checkbox?this.extendCheckboxChildren(i):this.extendChildren(n);return o?A.children=i:w?T.Children.count(i)===0?A.children=T.createElement("fieldset",{className:re(se.selectMenuFieldset)}):A.children=T.createElement("fieldset",{"aria-label":x,"aria-labelledby":!x&&S||null,className:re(bpe.formFieldset)},i.shift(),M()):(A.children=M(),d||(P="ul",A.role="listbox",A["aria-label"]=x,A["aria-labelledby"]=!x&&S||null)),T.createElement(T.Fragment,null,T.createElement(P,Object.assign({},A,D)),E&&T.createElement("div",{className:re(se.selectMenuFooter),ref:O},E))}render(){return T.createElement(vv,null,t=>this.renderSelectMenu(t))}}bv.displayName="SelectMenu",bv.defaultProps={className:"",isExpanded:!1,isGrouped:!1,openedOnEnter:!1,selected:"",maxHeight:"",position:Bc.left,sendRef:()=>{},keyHandler:()=>{},isCustomContent:!1,hasInlineFilter:!1,isLastOptionBeforeFooter:()=>{}};const _pe=T.forwardRef((e,t)=>T.createElement(bv,Object.assign({innerRef:t},e),e.children));class xv extends T.Component{constructor(t){super(t),this.onDocClick=i=>{const{parentRef:o,menuRef:a,footerRef:s,isOpen:l,onToggle:c,onClose:u}=this.props,d=o&&o.current&&o.current.contains(i.target),f=a&&a.current&&a.current.contains&&a.current.contains(i.target),h=s&&s.current&&s.current.contains&&s.current.contains(i.target);l&&!(d||f||h)&&(c(i,!1),u())},this.handleGlobalKeys=i=>{const{parentRef:o,menuRef:a,hasFooter:s,footerRef:l,isOpen:c,variant:u,onToggle:d,onClose:f,moveFocusToLastMenuItem:h}=this.props,g=o&&o.current&&o.current.contains(i.target),p=a&&a.current&&a.current.contains&&a.current.contains(i.target);if(c&&i.key===Ye.Tab&&(u===ze.typeahead||u===ze.typeaheadMulti)){this.props.handleTypeaheadKeys("tab",i.shiftKey),i.preventDefault();return}if(c&&i.key===Ye.Tab&&s){const y=Oc(l,zc);if(y.length<=0){d(i,!1),f(),this.toggle.current.focus();return}else{const b=y.findIndex(x=>x===document.activeElement);if(b===-1)if(i.shiftKey)u!=="checkbox"&&(d(i,!1),f(),this.toggle.current.focus());else{y[0].focus();return}if(i.shiftKey){b===0&&(h(),i.preventDefault());return}b+1<y.length?y[b+1].focus():(d(i,!1),f(),this.toggle.current.focus()),i.preventDefault();return}}c&&(i.key===Ye.Escape||i.key===Ye.Tab)&&(g||p)&&(d(i,!1),f(),this.toggle.current.focus())},this.onKeyDown=i=>{const{isOpen:o,onToggle:a,variant:s,onClose:l,onEnter:c,handleTypeaheadKeys:u}=this.props;(s===ze.typeahead||s===ze.typeaheadMulti)&&(i.key===Ye.ArrowDown||i.key===Ye.ArrowUp?(u(i.key===Ye.ArrowDown&&"down"||i.key===Ye.ArrowUp&&"up"),i.preventDefault()):i.key===Ye.Enter&&(o?u("enter"):a(i,!o))),!(s===ze.typeahead||s===ze.typeaheadMulti||i.key===Ye.Tab&&!o||i.key!==Ye.Enter&&i.key!==Ye.Space)&&(i.preventDefault(),(i.key===Ye.Tab||i.key===Ye.Enter||i.key===Ye.Space)&&o?(a(i,!o),l(),this.toggle.current.focus()):(i.key===Ye.Enter||i.key===Ye.Space)&&!o&&(a(i,!o),c()))};const{variant:n}=t,r=n===ze.typeahead||n===ze.typeaheadMulti;this.props.innerRef?this.toggle=this.props.innerRef:this.toggle=T.createRef()}componentDidMount(){document.addEventListener("click",this.onDocClick,{capture:!0}),document.addEventListener("touchstart",this.onDocClick),document.addEventListener("keydown",this.handleGlobalKeys)}componentWillUnmount(){document.removeEventListener("click",this.onDocClick,{capture:!0}),document.removeEventListener("touchstart",this.onDocClick),document.removeEventListener("keydown",this.handleGlobalKeys)}render(){const t=this.props,{className:n,children:r,isOpen:i,isActive:o,isPlain:a,isDisabled:s,hasPlaceholderStyle:l,variant:c,onToggle:u,onEnter:d,onClose:f,onBlur:h,onClickTypeaheadToggleButton:g,handleTypeaheadKeys:p,moveFocusToLastMenuItem:y,parentRef:b,menuRef:x,id:S,type:w,hasClearButton:_,"aria-labelledby":E,"aria-label":O,hasFooter:k,footerRef:D,toggleIndicator:P,innerRef:A}=t,M=De(t,["className","children","isOpen","isActive","isPlain","isDisabled","hasPlaceholderStyle","variant","onToggle","onEnter","onClose","onBlur","onClickTypeaheadToggleButton","handleTypeaheadKeys","moveFocusToLastMenuItem","parentRef","menuRef","id","type","hasClearButton","aria-labelledby","aria-label","hasFooter","footerRef","toggleIndicator","innerRef"]),j=c===ze.typeahead||c===ze.typeaheadMulti||_,$={id:S,"aria-labelledby":E,"aria-expanded":i,"aria-haspopup":c!==ze.checkbox&&"listbox"||null};return T.createElement(T.Fragment,null,!j&&T.createElement("button",Object.assign({},M,$,{ref:this.toggle,type:w,className:re(se.selectToggle,l&&se.modifiers.placeholder,s&&se.modifiers.disabled,a&&se.modifiers.plain,o&&se.modifiers.active,n),"aria-label":O,onBlur:h,onClick:I=>{u(I,!i),i&&f()},onKeyDown:this.onKeyDown,disabled:s}),r,T.createElement("span",{className:re(se.selectToggleArrow)},P??T.createElement(WA,null))),j&&T.createElement("div",Object.assign({},M,{ref:this.toggle,className:re(se.selectToggle,l&&se.modifiers.placeholder,s&&se.modifiers.disabled,a&&se.modifiers.plain,j&&se.modifiers.typeahead,n),onBlur:h,onClick:I=>{s||(u(I,!i),i&&f())},onKeyDown:this.onKeyDown}),r,T.createElement("button",Object.assign({},$,{type:w,className:re(Lt.button,se.selectToggleButton,se.modifiers.plain),"aria-label":O,onClick:I=>{u(I,!i),i&&f(),g()}},(c===ze.typeahead||c===ze.typeaheadMulti)&&{tabIndex:-1},{disabled:s}),P??T.createElement(WA,{className:re(se.selectToggleArrow)}))))}}xv.displayName="SelectToggle",xv.defaultProps={className:"",isOpen:!1,isActive:!1,isPlain:!1,isDisabled:!1,hasPlaceholderStyle:!1,hasClearButton:!1,hasFooter:!1,variant:"single","aria-labelledby":"","aria-label":"",type:"button",onToggle:()=>{},onEnter:()=>{},onClose:()=>{},onClickTypeaheadToggleButton:()=>{}};const Spe=T.forwardRef((e,t)=>T.createElement(xv,Object.assign({innerRef:t},e))),Oo={badge:"pf-v5-c-badge",button:"pf-v5-c-button",chip:"pf-v5-c-chip",chipActions:"pf-v5-c-chip__actions",chipContent:"pf-v5-c-chip__content",chipIcon:"pf-v5-c-chip__icon",chipText:"pf-v5-c-chip__text",modifiers:{overflow:"pf-m-overflow",draggable:"pf-m-draggable"},themeDark:"pf-v5-theme-dark"},wpe={name:"--pf-v5-c-chip__text--MaxWidth",value:"16ch",var:"var(--pf-v5-c-chip__text--MaxWidth)"};class ya extends T.Component{constructor(t){super(t),this.span=T.createRef(),this.setChipStyle=()=>({[wpe.name]:this.props.textMaxWidth}),this.renderOverflowChip=()=>{const n=this.props,{badge:r,children:i,className:o,onClick:a,ouiaId:s,textMaxWidth:l,style:c,component:u,tooltipPosition:d,isOverflowChip:f,closeBtnAriaLabel:h,isReadOnly:g}=n,p=De(n,["badge","children","className","onClick","ouiaId","textMaxWidth","style","component","tooltipPosition","isOverflowChip","closeBtnAriaLabel","isReadOnly"]),y=u;return T.createElement(y,Object.assign({onClick:a},l&&Object.assign({style:this.setChipStyle()},c),{className:re(Oo.chip,Oo.modifiers.overflow,o)},u==="button"?{type:"button"}:{},kc("OverflowChip",s!==void 0?s:this.state.ouiaStateId),p),T.createElement("span",{className:re(Oo.chipContent)},T.createElement("span",{className:re(Oo.chipText)},i),r&&r))},this.renderChip=n=>{const{children:r,tooltipPosition:i}=this.props;return this.state.isTooltipVisible?T.createElement(ph,{position:i,content:r},this.renderInnerChip(n)):this.renderInnerChip(n)},this.state={isTooltipVisible:!1,ouiaStateId:dh(ya.displayName)}}componentDidMount(){this.setState({isTooltipVisible:!!(this.span.current&&this.span.current.offsetWidth<this.span.current.scrollWidth)})}componentDidUpdate(t,n){const r=!!(this.span.current&&this.span.current.offsetWidth<this.span.current.scrollWidth);n.isTooltipVisible!==r&&this.setState({isTooltipVisible:r})}renderInnerChip(t){const n=this.props,{badge:r,children:i,className:o,onClick:a,closeBtnAriaLabel:s,isReadOnly:l,isOverflowChip:c,tooltipPosition:u,id:d,component:f,ouiaId:h,textMaxWidth:g}=n,p=De(n,["badge","children","className","onClick","closeBtnAriaLabel","isReadOnly","isOverflowChip","tooltipPosition","id","component","ouiaId","textMaxWidth"]),y=f;return T.createElement(y,Object.assign({},g&&{style:this.setChipStyle()},{className:re(Oo.chip,o)},this.state.isTooltipVisible&&{tabIndex:0},kc(ya.displayName,h!==void 0?h:this.state.ouiaStateId),p),T.createElement("span",{className:re(Oo.chipContent)},T.createElement("span",{ref:this.span,className:re(Oo.chipText),id:t},i),r&&r),!l&&T.createElement("span",{className:re(Oo.chipActions)},T.createElement(bh,{onClick:a,variant:"plain","aria-label":s,id:`remove_${t}`,"aria-labelledby":`remove_${t} ${t}`,ouiaId:h||s},T.createElement(vpe,{"aria-hidden":"true"}))))}render(){const{isOverflowChip:t}=this.props;return T.createElement(Tc,null,n=>t?this.renderOverflowChip():this.renderChip(this.props.id||n))}}ya.displayName="Chip",ya.defaultProps={closeBtnAriaLabel:"close",className:"",isOverflowChip:!1,isReadOnly:!1,tooltipPosition:"top",onClick:e=>{},component:"div"};const Vi={chipGroup:"pf-v5-c-chip-group",chipGroupClose:"pf-v5-c-chip-group__close",chipGroupLabel:"pf-v5-c-chip-group__label",chipGroupList:"pf-v5-c-chip-group__list",chipGroupListItem:"pf-v5-c-chip-group__list-item",chipGroupMain:"pf-v5-c-chip-group__main",modifiers:{category:"pf-m-category"}};class Vc extends T.Component{constructor(t){super(t),this.headingRef=T.createRef(),this.toggleCollapse=()=>{this.setState(n=>({isOpen:!n.isOpen,isTooltipVisible:!!(this.headingRef.current&&this.headingRef.current.offsetWidth<this.headingRef.current.scrollWidth)}))},this.state={isOpen:this.props.defaultIsOpen,isTooltipVisible:!1}}componentDidMount(){this.setState({isTooltipVisible:!!(this.headingRef.current&&this.headingRef.current.offsetWidth<this.headingRef.current.scrollWidth)})}renderLabel(t){const{categoryName:n,tooltipPosition:r}=this.props,{isTooltipVisible:i}=this.state;return i?T.createElement(ph,{position:r,content:n},T.createElement("span",{tabIndex:0,ref:this.headingRef,className:re(Vi.chipGroupLabel)},T.createElement("span",{id:t},n))):T.createElement("span",{ref:this.headingRef,className:re(Vi.chipGroupLabel),id:t},n)}render(){const t=this.props,{categoryName:n,children:r,className:i,isClosable:o,closeBtnAriaLabel:a,"aria-label":s,onClick:l,onOverflowChipClick:c,numChips:u,expandedText:d,collapsedText:f,ouiaId:h,defaultIsOpen:g,tooltipPosition:p}=t,y=De(t,["categoryName","children","className","isClosable","closeBtnAriaLabel","aria-label","onClick","onOverflowChipClick","numChips","expandedText","collapsedText","ouiaId","defaultIsOpen","tooltipPosition"]),{isOpen:b}=this.state,x=T.Children.count(r),S=nge(f,{remaining:T.Children.count(r)-u}),w=_=>{const E=b?T.Children.toArray(r):T.Children.toArray(r).slice(0,u);return T.createElement("div",Object.assign({className:re(Vi.chipGroup,i,n&&Vi.modifiers.category),role:"group"},n&&{"aria-labelledby":_},!n&&{"aria-label":s},kc(Vc.displayName,h)),T.createElement("div",{className:re(Vi.chipGroupMain)},n&&this.renderLabel(_),T.createElement("ul",Object.assign({className:re(Vi.chipGroupList)},n&&{"aria-labelledby":_},!n&&{"aria-label":s},{role:"list"},y),E.map((O,k)=>T.createElement("li",{className:re(Vi.chipGroupListItem),key:k},O)),x>u&&T.createElement("li",{className:re(Vi.chipGroupListItem)},T.createElement(ya,{isOverflowChip:!0,onClick:O=>{this.toggleCollapse(),c(O)},component:"button"},b?d:S)))),o&&T.createElement("div",{className:re(Vi.chipGroupClose)},T.createElement(bh,{variant:"plain","aria-label":a,onClick:l,id:`remove_group_${_}`,"aria-labelledby":`remove_group_${_} ${_}`,ouiaId:h||a},T.createElement(XA,{"aria-hidden":"true"}))))};return x===0?null:T.createElement(Tc,null,_=>w(this.props.id||_))}}Vc.displayName="ChipGroup",Vc.defaultProps={expandedText:"Show Less",collapsedText:"${remaining} more",categoryName:"",defaultIsOpen:!1,numChips:3,isClosable:!1,onClick:e=>{},onOverflowChipClick:e=>{},closeBtnAriaLabel:"Close chip group",tooltipPosition:"top","aria-label":"Chip group category"};let Cpe=0;class va extends T.Component{constructor(){super(...arguments),this.parentRef=T.createRef(),this.menuComponentRef=T.createRef(),this.filterRef=T.createRef(),this.clearRef=T.createRef(),this.inputRef=T.createRef(),this.refCollection=[[]],this.optionContainerRefCollection=[],this.footerRef=T.createRef(),this.state={focusFirstOption:!1,typeaheadInputValue:null,typeaheadFilteredChildren:T.Children.toArray(this.props.children),favoritesGroup:[],typeaheadCurrIndex:-1,typeaheadStoredIndex:-1,creatableValue:"",tabbedIntoFavoritesMenu:!1,ouiaStateId:dh(va.displayName,this.props.variant),viewMoreNextIndex:-1},this.getTypeaheadActiveChild=t=>this.refCollection[t]?this.refCollection[t][0]:null,this.componentDidUpdate=(t,n)=>{if(this.props.hasInlineFilter&&(this.refCollection[0][0]=this.filterRef.current),!n.focusFirstOption&&this.state.focusFirstOption&&!this.props.customContent){const o=this.refCollection.find(a=>a!==null&&a[0]);o&&o[0]&&o[0].focus()}else this.state.viewMoreNextIndex!==-1&&this.refCollection.length>this.state.viewMoreNextIndex&&this.props.loadingVariant!=="spinner"&&this.refCollection[this.state.viewMoreNextIndex][0]&&this.props.variant!=="typeahead"&&this.props.variant!=="typeaheadmulti"&&(this.refCollection[this.state.viewMoreNextIndex][0].focus(),this.setState({viewMoreNextIndex:-1}));const r=(o,a)=>Array.from(o).some((s,l)=>{const c=s.props,u=a[l],{props:d}=u;return c&&d?c.value!==d.value||c.label!==d.label||c.isDisabled!==d.isDisabled||c.isPlaceholder!==d.isPlaceholder:s!==u});if((t.children.length!==this.props.children.length||r(t.children,this.props.children)||this.props.isGrouped&&Array.from(t.children).some((o,a)=>o.type===pa&&o.props.children&&this.props.children[a].props.children&&(o.props.children.length!==this.props.children[a].props.children.length||r(o.props.children,this.props.children[a].props.children))))&&this.updateTypeAheadFilteredChildren(n.typeaheadInputValue||"",null),this.props.onFavorite&&(this.props.favorites.length!==t.favorites.length||this.state.typeaheadFilteredChildren!==n.typeaheadFilteredChildren)){const o=this.props.variant==="typeahead"||this.props.variant==="typeaheadmulti"?this.state.typeaheadFilteredChildren:this.props.children,a=gpe(o,this.props.isGrouped,this.props.favorites),s=a.length?[T.createElement(pa,{key:"favorites",label:this.props.favoritesLabel},a),T.createElement(yr,{key:"favorites-group-divider"})]:[];this.setState({favoritesGroup:s})}},this.onEnter=()=>{this.setState({focusFirstOption:!0})},this.onToggle=(t,n)=>{const{isInputValuePersisted:r,onSelect:i,onToggle:o,hasInlineFilter:a}=this.props;!n&&r&&i&&i(void 0,this.inputRef.current?this.inputRef.current.value:""),n&&a&&this.setState({focusFirstOption:!0}),o(t,n)},this.onClose=()=>{const{isInputFilterPersisted:t}=this.props;this.setState(Object.assign(Object.assign({focusFirstOption:!1,typeaheadInputValue:null},!t&&{typeaheadFilteredChildren:T.Children.toArray(this.props.children)}),{typeaheadCurrIndex:-1,tabbedIntoFavoritesMenu:!1,viewMoreNextIndex:-1}))},this.onChange=t=>{t.target.value.toString()!==""&&!this.props.isOpen&&this.onToggle(t,!0),this.props.onTypeaheadInputChanged&&this.props.onTypeaheadInputChanged(t.target.value.toString()),this.setState({typeaheadCurrIndex:-1,typeaheadInputValue:t.target.value,creatableValue:t.target.value}),this.updateTypeAheadFilteredChildren(t.target.value.toString(),t),this.refCollection=[[]]},this.updateTypeAheadFilteredChildren=(t,n)=>{let r;const{onFilter:i,isCreatable:o,isCreateOptionOnTop:a,onCreateOption:s,createText:l,noResultsFoundText:c,children:u,isGrouped:d,isCreateSelectOptionObject:f,loadingVariant:h}=this.props;if(i)r=i(n,n?n.target.value:t)||u;else{let g;try{g=new RegExp(t.toString(),"i")}catch{g=new RegExp(t.toString().replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i")}const p=T.Children.toArray(u);if(d){const y=b=>b.props.value&&b.props.value.toString&&this.getDisplay(b.props.value.toString(),"text").search(g)===0;r=t.toString()!==""?T.Children.map(u,b=>{if(T.isValidElement(b)&&b.type===pa){const x=T.Children.toArray(b.props.children).filter(y);if(x.length>0)return T.cloneElement(b,{titleId:b.props.label&&b.props.label.replace(/\W/g,"-"),children:x})}else return T.Children.toArray(b).filter(y)}):p}else r=t.toString()!==""?p.filter(y=>{const b=y.props.value;if(!b)return!0;const x=typeof b!="string"&&b.toString&&b.compareTo;return h!=="spinner"&&(h==null?void 0:h.text)===b||h==="spinner"&&b==="loading"?!0:x?b.compareTo(t):this.getDisplay(y.props.value.toString(),"text").search(g)===0}):p}if(r||(r=[]),r.length===0&&!o&&r.push(T.createElement(si,{isDisabled:!0,key:"no-results",value:c,isNoResultsOption:!0})),o&&t!==""){const g=t;if(!r.find(p=>p.props.value&&p.props.value.toString().toLowerCase()===g.toString().toLowerCase())){const p=f?{toString:()=>g,compareTo:b=>this.toString().toLowerCase().includes(b.toString().toLowerCase())}:g,y=T.createElement(si,{key:`create ${g}`,value:p,onClick:()=>s&&s(g)},l,' "',g,'"');a?r.unshift(y):r.push(y)}}this.setState({typeaheadFilteredChildren:r})},this.onClick=t=>{this.props.isOpen||this.onToggle(t,!0)},this.clearSelection=t=>{this.setState({typeaheadInputValue:null,typeaheadFilteredChildren:T.Children.toArray(this.props.children),typeaheadCurrIndex:-1})},this.sendRef=(t,n,r,i)=>{this.refCollection[i]=[t,n],this.optionContainerRefCollection[i]=r},this.handleMenuKeys=(t,n,r)=>{dA(t,n,r,this.refCollection,this.refCollection),(this.props.variant===ze.typeahead||this.props.variant===ze.typeaheadMulti)&&r!=="tab"&&this.handleTypeaheadKeys(r)},this.moveFocus=(t,n=!0)=>{const{isCreatable:r,createText:i}=this.props,o=!!(this.refCollection[t][0]&&this.refCollection[t][0].classList.contains("pf-m-description")),a=!!(this.refCollection[t][0]&&this.refCollection[t][0].classList.contains("pf-m-load")),s=o?this.refCollection[t][0].firstElementChild:this.refCollection[t][0];let l="";r&&s.textContent.includes(i)?l=this.state.creatableValue:s&&!a&&(l=s.textContent),this.setState(c=>({typeaheadCurrIndex:n?t:c.typeaheadCurrIndex,typeaheadStoredIndex:t,typeaheadInputValue:l}))},this.switchFocusToFavoriteMenu=()=>{const{typeaheadCurrIndex:t,typeaheadStoredIndex:n}=this.state;let r=0;t!==-1?r=t:n!==-1&&(r=n),this.refCollection[r]!==null&&this.refCollection[r][0]!==null?this.refCollection[r][0].focus():this.clearRef.current.focus(),this.setState({tabbedIntoFavoritesMenu:!0,typeaheadCurrIndex:-1})},this.moveFocusToLastMenuItem=()=>{const t=this.refCollection.length;t>0&&this.refCollection[t-1]!==null&&this.refCollection[t-1][0]!==null&&this.refCollection[t-1][0].focus()},this.handleTypeaheadKeys=(t,n=!1)=>{const{isOpen:r,onFavorite:i,isCreatable:o}=this.props,{typeaheadCurrIndex:a,tabbedIntoFavoritesMenu:s}=this.state,l=this.getTypeaheadActiveChild(a);if(r)if(t==="enter"){if((a!==-1||o&&this.refCollection.length===1)&&(l||this.refCollection[0]&&this.refCollection[0][0])){if(l){if(!l.classList.contains("pf-m-load")){const u=l.childElementCount>1?l.firstChild.textContent:l.textContent;this.setState({typeaheadInputValue:u})}}else this.refCollection[0]&&this.refCollection[0][0]&&this.setState({typeaheadInputValue:this.refCollection[0][0].textContent});l?l.click():this.refCollection[0][0].click()}}else if(t==="tab")if(i)if(this.inputRef.current===document.activeElement)if(this.props.footer&&n){const c=Oc(this.footerRef,zc);c.length>0&&c[c.length-1]&&c[c.length-1].focus()}else this.switchFocusToFavoriteMenu();else if(this.props.footer){let c=!1;const u=Oc(this.footerRef,zc);if(u.length>0){const d=u.findIndex(f=>f===document.activeElement);d===-1?n?this.inputRef.current.focus():u[0].focus():n?d===0?(this.switchFocusToFavoriteMenu(),c=!0):u[d-1].focus():u[d+1]?u[d+1].focus():this.inputRef.current.focus()}else this.inputRef.current.focus(),c=!1;this.setState({tabbedIntoFavoritesMenu:c})}else this.inputRef.current.focus(),this.setState({tabbedIntoFavoritesMenu:!1});else if(!this.props.footer)this.onToggle(null,!1),this.onClose();else{const c=Oc(this.footerRef,zc),u=c.findIndex(d=>d===document.activeElement);this.inputRef.current===document.activeElement?n?(this.onToggle(null,!1),this.onClose()):c[0]?c[0].focus():(this.onToggle(null,!1),this.onClose()):n?u===0?this.inputRef.current.focus():c[u-1].focus():c[u+1]?c[u+1].focus():(this.onToggle(null,!1),this.inputRef.current.focus(),this.onClose())}else if(s){const c=this.refCollection.findIndex(u=>u!==void 0&&(u[0]===document.activeElement||u[1]===document.activeElement));this.moveFocus(c)}else{if(this.refCollection[0][0]===null)return;let c;if(a===-1&&t==="down"?c=0:a===-1&&t==="up"?c=this.refCollection.length-1:t!=="left"&&t!=="right"?c=fA(a,t,this.refCollection):c=a,this.refCollection[c]===null)return;this.moveFocus(c)}},this.onClickTypeaheadToggleButton=()=>{this.inputRef&&this.inputRef.current&&this.inputRef.current.focus()},this.getDisplay=(t,n="node")=>{if(!t)return;const r=this.props.isGrouped?T.Children.toArray(this.props.children).reduce((i,o)=>[...i,...T.Children.toArray(o.props.children)],[]).find(i=>i.props.value.toString()===t.toString()):T.Children.toArray(this.props.children).find(i=>i.props.value&&i.props.value.toString()===t.toString());return r?r&&r.props.children?n==="node"?r.props.children:this.findText(r):r.props.value.toString():t.toString()},this.findText=t=>{if(typeof t=="string")return t;if(T.isValidElement(t)){const n=[];return T.Children.toArray(t.props.children).forEach(r=>n.push(this.findText(r))),n.join("")}else return""},this.generateSelectedBadge=()=>{const{customBadgeText:t,selections:n}=this.props;return t!==null?t:Array.isArray(n)&&n.length>0?n.length:null},this.setVieMoreNextIndex=()=>{this.setState({viewMoreNextIndex:this.refCollection.length-1})},this.isLastOptionBeforeFooter=t=>!!(this.props.footer&&t===this.refCollection.length-1)}extendTypeaheadChildren(t,n){const{isGrouped:r,onFavorite:i,createText:o}=this.props,a=n?n.concat(this.state.typeaheadFilteredChildren):this.state.typeaheadFilteredChildren,s=this.optionContainerRefCollection[t];let l=this.getTypeaheadActiveChild(t);return l&&l.classList.contains("pf-m-description")&&(l=l.firstElementChild),this.refCollection=[[]],this.optionContainerRefCollection=[],r?T.Children.map(a,c=>c.type===yr?c:c.type===pa&&i?T.cloneElement(c,{titleId:c.props.label&&c.props.label.replace(/\W/g,"-"),children:T.Children.map(c.props.children,u=>u.type===yr?u:T.cloneElement(u,{isFocused:s&&(s.id===u.props.id||this.props.isCreatable&&l.textContent===`${o} "${c.props.value}"`)}))}):c.type===pa?T.cloneElement(c,{titleId:c.props.label&&c.props.label.replace(/\W/g,"-"),children:T.Children.map(c.props.children,u=>u.type===yr?u:T.cloneElement(u,{isFocused:l&&(l.textContent===u.props.value.toString()||this.props.isCreatable&&l.textContent===`${o} "${u.props.value}"`)}))}):T.cloneElement(c,{isFocused:l&&(l.textContent===c.props.value.toString()||this.props.isCreatable&&l.textContent===`${o} "${c.props.value}"`)})):a.map((c,u)=>c.type.displayName==="Divider"?c:T.cloneElement(c,{isFocused:l?l.textContent===c.props.value.toString()||this.props.isCreatable&&l.textContent===`${o} "${c.props.value}"`:u===t}))}render(){const t=this.props,{children:n,chipGroupProps:r,chipGroupComponent:i,className:o,customContent:a,variant:s,direction:l,onSelect:c,onClear:u,onBlur:d,toggleId:f,toggleRef:h,isOpen:g,isGrouped:p,isPlain:y,isDisabled:b,hasPlaceholderStyle:x,validated:S,selections:w,typeAheadAriaLabel:_,typeAheadAriaDescribedby:E,clearSelectionsAriaLabel:O,toggleAriaLabel:k,removeSelectionAriaLabel:D,"aria-label":P,"aria-labelledby":A,"aria-describedby":M,"aria-invalid":j,placeholderText:$,width:I,maxHeight:H,toggleIcon:G,toggleIndicator:V,ouiaId:W,ouiaSafe:N,hasInlineFilter:z,isCheckboxSelectionBadgeHidden:J,inlineFilterPlaceholderText:ee,onFilter:X,onTypeaheadInputChanged:Q,onCreateOption:ie,isCreatable:ue,onToggle:de,createText:K,noResultsFoundText:ne,customBadgeText:ye,inputIdPrefix:R,inputAutoComplete:Oe,isInputValuePersisted:oe,isInputFilterPersisted:Le,menuAppendTo:je,favorites:Ze,onFavorite:L,favoritesLabel:U,footer:q,loadingVariant:he,isCreateSelectOptionObject:me,isCreateOptionOnTop:ae,shouldResetOnSelect:Y,isFlipEnabled:ce,zIndex:xe}=t,_e=De(t,["children","chipGroupProps","chipGroupComponent","className","customContent","variant","direction","onSelect","onClear","onBlur","toggleId","toggleRef","isOpen","isGrouped","isPlain","isDisabled","hasPlaceholderStyle","validated","selections","typeAheadAriaLabel","typeAheadAriaDescribedby","clearSelectionsAriaLabel","toggleAriaLabel","removeSelectionAriaLabel","aria-label","aria-labelledby","aria-describedby","aria-invalid","placeholderText","width","maxHeight","toggleIcon","toggleIndicator","ouiaId","ouiaSafe","hasInlineFilter","isCheckboxSelectionBadgeHidden","inlineFilterPlaceholderText","onFilter","onTypeaheadInputChanged","onCreateOption","isCreatable","onToggle","createText","noResultsFoundText","customBadgeText","inputIdPrefix","inputAutoComplete","isInputValuePersisted","isInputFilterPersisted","menuAppendTo","favorites","onFavorite","favoritesLabel","footer","loadingVariant","isCreateSelectOptionObject","isCreateOptionOnTop","shouldResetOnSelect","isFlipEnabled","zIndex"]),{focusFirstOption:Re,typeaheadCurrIndex:Ve,typeaheadInputValue:ot,typeaheadFilteredChildren:Ot,favoritesGroup:Mt}=this.state,Tt=f||`pf-select-toggle-id-${Cpe++}`,We=Array.isArray(w)?w:[w],Me=T.Children.toArray(n).find(Ke=>Ke.props.value===We[0]),pt=Me&&Me.props.isPlaceholder,Ut=!!(We[0]&&We[0]!==""),kt=this.getTypeaheadActiveChild(Ve);let Bn=null,Ht=[];if(L){let Ke=n;s==="typeahead"||s==="typeaheadmulti"?Ke=this.extendTypeaheadChildren(Ve,Mt):L&&(Ke=Mt.concat(n)),Ht=ppe(Ke,p,Ze)}else Ht=n;if(!a&&!Ut&&!$){const Ke=T.Children.toArray(n).filter(yt=>yt.props.isPlaceholder===!0);Bn=Ke[0]&&this.getDisplay(Ke[0].props.value,"node")||n[0]&&this.getDisplay(n[0].props.value,"node")}g&&Ht.find(Ke=>(Ke==null?void 0:Ke.key)==="loading")===void 0&&(he==="spinner"?Ht.push(T.createElement(si,{isLoading:!0,key:"loading",value:"loading"},T.createElement(mv,{size:"lg"}))):he!=null&&he.text&&Ht.push(T.createElement(si,{isLoad:!0,key:"loading",value:he.text,setViewMoreNextIndex:this.setVieMoreNextIndex,onClick:he==null?void 0:he.onClick})));const Wn=u!==va.defaultProps.onClear,Ce=T.createElement("button",{className:re(Lt.button,Lt.modifiers.plain,se.selectToggleClear),onClick:Ke=>{this.clearSelection(Ke),u(Ke),Ke.stopPropagation()},"aria-label":O,type:"button",disabled:b,ref:this.clearRef,onKeyDown:Ke=>{Ke.key===Ye.Enter&&this.clearRef.current.click()}},T.createElement(XA,{"aria-hidden":!0}));let lt=null;s===ze.typeaheadMulti&&(lt=i||T.createElement(Vc,Object.assign({},r),We&&We.map(Ke=>T.createElement(ya,{key:Ke,onClick:yt=>c(yt,Ke),closeBtnAriaLabel:D},this.getDisplay(Ke,"node"))))),z&&(Ht=[T.createElement(T.Fragment,null,T.createElement("div",{key:"inline-filter",className:re(se.selectMenuSearch)},T.createElement("div",{key:"inline-filter",className:re(Nr.formControl)},T.createElement("input",{key:"inline-filter-input",type:"search",onChange:this.onChange,placeholder:ee,onKeyDown:yt=>{if(yt.key===Ye.ArrowUp)this.handleMenuKeys(0,0,"up"),yt.preventDefault();else if(yt.key===Ye.ArrowDown)this.handleMenuKeys(0,0,"down"),yt.preventDefault();else if(yt.key===Ye.ArrowLeft)this.handleMenuKeys(0,0,"left"),yt.preventDefault();else if(yt.key===Ye.ArrowRight)this.handleMenuKeys(0,0,"right"),yt.preventDefault();else if(yt.key===Ye.Tab&&s!==ze.checkbox&&this.props.footer)if(yt.shiftKey)this.onToggle(yt,!1);else{const Us=Oc(this.footerRef,zc);Us.length>0?(Us[0].focus(),yt.stopPropagation(),yt.preventDefault()):this.onToggle(yt,!1)}else yt.key===Ye.Tab&&s===ze.checkbox&&(yt.shiftKey?this.handleMenuKeys(0,0,"up"):this.handleMenuKeys(0,0,"down"),yt.stopPropagation(),yt.preventDefault())},ref:this.filterRef,autoComplete:Oe}))),T.createElement(yr,{key:"inline-filter-divider"})),...Ot].map((yt,Us)=>T.cloneElement(yt,{key:Us})));let un,Gt;if(a)un={selected:We,openedOnEnter:Re,isCustomContent:!0},Gt=a;else switch(s){case"single":un={selected:We[0],hasInlineFilter:z,openedOnEnter:Re},Gt=Ht;break;case"checkbox":un={checked:We,isGrouped:p,hasInlineFilter:z,openedOnEnter:Re},Gt=Ht;break;case"typeahead":un={selected:We[0],openedOnEnter:Re},Gt=L?Ht:this.extendTypeaheadChildren(Ve),Gt.length===0&&Gt.push(T.createElement(si,{isDisabled:!0,key:0,value:ne,isNoResultsOption:!0}));break;case"typeaheadmulti":un={selected:We,openedOnEnter:Re},Gt=L?Ht:this.extendTypeaheadChildren(Ve),Gt.length===0&&Gt.push(T.createElement(si,{isDisabled:!0,key:0,value:ne,isNoResultsOption:!0}));break}const To=ce&&je!=="inline",ko=T.createElement(_pe,Object.assign({className:re(To&&se.modifiers.static)},_e,{isGrouped:p,selected:We},un,{openedOnEnter:Re,"aria-label":P,"aria-labelledby":A,sendRef:this.sendRef,keyHandler:this.handleMenuKeys,maxHeight:H,ref:this.menuComponentRef,footer:q,footerRef:this.footerRef,isLastOptionBeforeFooter:this.isLastOptionBeforeFooter}),Gt),Gi=q?T.createElement("div",{className:re(se.selectMenu)}," ",ko," "):ko,qi=T.createRef(),Cv=T.createElement("div",Object.assign({className:re(se.select,g&&se.modifiers.expanded,S===Tn.success&&se.modifiers.success,S===Tn.warning&&se.modifiers.warning,S===Tn.error&&se.modifiers.invalid,l===Wc.up&&se.modifiers.top,o),ref:qi},I&&{style:{width:I}},S!==Tn.default&&{"aria-invalid":j}),g&&Gi),Oh=T.createElement("div",Object.assign({className:re(se.select,g&&se.modifiers.expanded,S===Tn.success&&se.modifiers.success,S===Tn.warning&&se.modifiers.warning,S===Tn.error&&se.modifiers.invalid,l===Wc.up&&se.modifiers.top,o),ref:this.parentRef},kc(va.displayName,W!==void 0?W:this.state.ouiaStateId,N),I&&{style:{width:I}},S!==Tn.default&&{"aria-invalid":j}),T.createElement(Spe,Object.assign({id:Tt,parentRef:this.parentRef,menuRef:this.menuComponentRef,ref:h},q&&{footerRef:this.footerRef},{isOpen:g,isPlain:y,hasPlaceholderStyle:x&&(!We.length||We[0]===null||pt),onToggle:this.onToggle,onEnter:this.onEnter,onClose:this.onClose,onBlur:d,variant:s,toggleIndicator:V,"aria-labelledby":`${A||""} ${Tt}`,"aria-label":k},M&&{"aria-describedby":M},{handleTypeaheadKeys:this.handleTypeaheadKeys,moveFocusToLastMenuItem:this.moveFocusToLastMenuItem,isDisabled:b,hasClearButton:Wn,hasFooter:q!==void 0,onClickTypeaheadToggleButton:this.onClickTypeaheadToggleButton}),a&&T.createElement("div",{className:re(se.selectToggleWrapper)},G&&T.createElement("span",{className:re(se.selectToggleIcon)},G),T.createElement("span",{className:re(se.selectToggleText)},$)),s===ze.single&&!a&&T.createElement(T.Fragment,null,T.createElement("div",{className:re(se.selectToggleWrapper)},G&&T.createElement("span",{className:re(se.selectToggleIcon)},G),T.createElement("span",{className:re(se.selectToggleText)},this.getDisplay(We[0],"node")||$||Bn)),Wn&&Ut&&Ce),s===ze.checkbox&&!a&&T.createElement(T.Fragment,null,T.createElement("div",{className:re(se.selectToggleWrapper)},G&&T.createElement("span",{className:re(se.selectToggleIcon)},G),T.createElement("span",{className:re(se.selectToggleText)},$),!J&&Ut&&T.createElement("div",{className:re(se.selectToggleBadge)},T.createElement("span",{className:re(Fc.badge,Fc.modifiers.read)},this.generateSelectedBadge()))),Wn&&Ut&&Ce),s===ze.typeahead&&!a&&T.createElement(T.Fragment,null,T.createElement("div",{className:re(se.selectToggleWrapper)},G&&T.createElement("span",{className:re(se.selectToggleIcon)},G),T.createElement(xh,Object.assign({className:re(se.selectToggleTypeahead),"aria-activedescendant":kt&&kt.id,id:`${Tt}-select-typeahead`,"aria-label":_},E&&{"aria-describedby":E},{placeholder:$,value:ot!==null?ot:this.getDisplay(We[0],"text")||"",onChange:Ke=>this.onChange(Ke),onClick:this.onClick,autoComplete:Oe,isDisabled:b,ref:this.inputRef}))),Wn&&(We[0]||ot)&&Ce),s===ze.typeaheadMulti&&!a&&T.createElement(T.Fragment,null,T.createElement("div",{className:re(se.selectToggleWrapper)},G&&T.createElement("span",{className:re(se.selectToggleIcon)},G),We&&Array.isArray(We)&&We.length>0&&lt,T.createElement(xh,Object.assign({className:re(se.selectToggleTypeahead),"aria-activedescendant":kt&&kt.id,id:`${Tt}-select-multi-typeahead-typeahead`,"aria-label":_,"aria-invalid":S===Tn.error},E&&{"aria-describedby":E},{placeholder:$,value:ot!==null?ot:"",onChange:Ke=>this.onChange(Ke),onClick:this.onClick,autoComplete:Oe,isDisabled:b,ref:this.inputRef}))),Wn&&(We&&We.length>0||ot)&&Ce),S===Tn.success&&T.createElement("span",{className:re(se.selectToggleStatusIcon)},T.createElement(UA,{"aria-hidden":"true"})),S===Tn.error&&T.createElement("span",{className:re(se.selectToggleStatusIcon)},T.createElement(HA,{"aria-hidden":"true"})),S===Tn.warning&&T.createElement("span",{className:re(se.selectToggleStatusIcon)},T.createElement(GA,{"aria-hidden":"true"}))),g&&je==="inline"&&Gi),Th=()=>this.parentRef&&this.parentRef.current?this.parentRef.current.parentElement:null;return T.createElement(Tc,null,Ke=>T.createElement(yv.Provider,{value:{onSelect:c,onFavorite:L,onClose:this.onClose,variant:s,inputIdPrefix:R||Ke,shouldResetOnSelect:Y}},je==="inline"?Oh:T.createElement(cv,{width:"auto",trigger:Oh,triggerRef:this.parentRef,popper:Cv,popperRef:qi,direction:l,appendTo:je==="parent"?Th():je,isVisible:g,zIndex:xe})))}}va.displayName="Select",va.defaultProps={children:[],className:"",position:Bc.left,direction:Wc.down,toggleId:null,isOpen:!1,isGrouped:!1,isPlain:!1,isDisabled:!1,hasPlaceholderStyle:!1,isCreatable:!1,isCreateOptionOnTop:!1,validated:"default","aria-label":"","aria-labelledby":"","aria-describedby":"","aria-invalid":!1,typeAheadAriaLabel:"",typeAheadAriaDescribedby:"",clearSelectionsAriaLabel:"Clear all",toggleAriaLabel:"Options menu",removeSelectionAriaLabel:"Remove",selections:[],createText:"Create",placeholderText:"",noResultsFoundText:"No results found",variant:ze.single,width:"",onClear:()=>{},onCreateOption:()=>{},toggleIcon:null,toggleIndicator:null,onFilter:null,onTypeaheadInputChanged:null,customContent:null,hasInlineFilter:!1,inlineFilterPlaceholderText:null,customBadgeText:null,inputIdPrefix:"",inputAutoComplete:"off",menuAppendTo:"inline",favorites:[],favoritesLabel:"Favorites",ouiaSafe:!0,chipGroupComponent:null,isInputValuePersisted:!1,isInputFilterPersisted:!1,isCreateSelectOptionObject:!1,shouldResetOnSelect:!0,isFlipEnabled:!0,zIndex:9999};const Ui={button:"pf-v5-c-button",dirRtl:"pf-v5-m-dir-rtl",drawer:"pf-v5-c-drawer",modalBox:"pf-v5-c-modal-box",modifiers:{finished:"pf-m-finished",expanded:"pf-m-expanded",current:"pf-m-current",expandable:"pf-m-expandable",disabled:"pf-m-disabled",noPadding:"pf-m-no-padding"},pageMainWizard:"pf-v5-c-page__main-wizard",themeDark:"pf-v5-theme-dark",wizard:"pf-v5-c-wizard",wizardClose:"pf-v5-c-wizard__close",wizardDescription:"pf-v5-c-wizard__description",wizardFooter:"pf-v5-c-wizard__footer",wizardFooterCancel:"pf-v5-c-wizard__footer-cancel",wizardHeader:"pf-v5-c-wizard__header",wizardInnerWrap:"pf-v5-c-wizard__inner-wrap",wizardMain:"pf-v5-c-wizard__main",wizardMainBody:"pf-v5-c-wizard__main-body",wizardNav:"pf-v5-c-wizard__nav",wizardNavItem:"pf-v5-c-wizard__nav-item",wizardNavLink:"pf-v5-c-wizard__nav-link",wizardNavLinkText:"pf-v5-c-wizard__nav-link-text",wizardNavLinkToggle:"pf-v5-c-wizard__nav-link-toggle",wizardNavLinkToggleIcon:"pf-v5-c-wizard__nav-link-toggle-icon",wizardNavList:"pf-v5-c-wizard__nav-list",wizardOuterWrap:"pf-v5-c-wizard__outer-wrap",wizardTitle:"pf-v5-c-wizard__title",wizardTitleText:"pf-v5-c-wizard__title-text",wizardToggle:"pf-v5-c-wizard__toggle",wizardToggleIcon:"pf-v5-c-wizard__toggle-icon",wizardToggleList:"pf-v5-c-wizard__toggle-list",wizardToggleListItem:"pf-v5-c-wizard__toggle-list-item",wizardToggleNum:"pf-v5-c-wizard__toggle-num",wizardToggleSeparator:"pf-v5-c-wizard__toggle-separator"};function Epe(e){const{name:t,label:n,labelHelpTitle:r,labelHelp:i,additionalControls:o,placeholderText:a,options:s,footer:l,helperText:c,isDisabled:u,isReadOnly:d,isRequired:f,validate:h,fieldNameToResetOnFieldChange:g}=e,p=ui(e),{t:y}=$e(),{control:b,setValue:x,getValues:S,formState:{isSubmitting:w,isValidating:_,defaultValues:E},resetField:O}=Xr(),[k,D]=v.useState(!1),P=v.useCallback(()=>D(!k),[k]),[A]=$t(),M=pc(e.label,e.isRequired),j=Fs(E,e.name);return v.useEffect(()=>{S(e.name)||s.length===1&&f&&x(e.name,s[0].value)},[S,f,s,e.name,x]),m.jsx(Ms,{name:t,control:b,defaultValue:e.defaultValue,shouldUnregister:!0,render:({field:{onChange:$,value:I},fieldState:{error:H}})=>{const G=(N,z)=>{var ee;const J=(ee=s.find(X=>X.label===z.toString()))==null?void 0:ee.value;$(J),g&&O(g),e.onChange&&e.onChange(J),D(!1)},V=H!=null&&H.message?h&&_?A.validating:H==null?void 0:H.message:void 0,W=s.find(N=>N.value===I);return m.jsx(Cc,{fieldId:p,label:n,labelHelpTitle:r??n,labelHelp:i,additionalControls:o,helperText:c,helperTextInvalid:V,isRequired:f,children:m.jsxs("div",{style:{display:"flex"},children:[m.jsx(va,{id:p,itemID:p,placeholderText:a,variant:"single","aria-describedby":`${p}-form-group`,selections:W==null?void 0:W.label,onSelect:G,isOpen:k,onToggle:P,onClear:f?void 0:()=>{$(null),D(!1)},maxHeight:280,validated:V?"error":void 0,isDisabled:u||d||w,hasPlaceholderStyle:!0,footer:l,ouiaId:"menu-select","data-cy":p,children:s.map(N=>{const z=Wr(N);return m.jsx(si,{id:z,value:N.label,label:N.label,description:N.description,"data-cy":z,children:N.label},N.label)})}),m.jsx(zr,{actions:[{label:y("Undo changes"),type:st.Button,selection:Ge.None,onClick:()=>{x(e.name,j)},isHidden:()=>!e.enableUndo||I===j},{label:y("Reset to default"),type:st.Button,selection:Ge.None,onClick:()=>{x(e.name,e.defaultValue)},isHidden:()=>!e.enableReset||I===e.defaultValue}],variant:C.ButtonVariant.control,position:"right"})]})})},rules:{required:M,validate:h}})}function Ope(e){const{name:t,helperText:n,validate:r,additionalControls:i,label:o,labelHelp:a,labelHelpTitle:s,labelOn:l,labelOff:c}=e,{control:u,formState:{isSubmitting:d,isValidating:f}}=Xr(),h=ui(e);return m.jsx(Ms,{name:t,control:u,shouldUnregister:!0,render:({field:{onChange:g,value:p},fieldState:{error:y}})=>{const b=r&&f||y==null?void 0:y.message;return m.jsx(Cc,{fieldId:h,"data-cy":h+"-form-group",label:o,labelHelpTitle:s??o,labelHelp:a,helperText:n,helperTextInvalid:b,additionalControls:i,children:m.jsx(C.Switch,{"data-cy":h+"-toggle","aria-label":o,isChecked:p,onChange:x=>g(x),isDisabled:d,label:l,labelOff:c})})}})}function Tpe(e){const{type:t,name:n,label:r,labelHelpTitle:i,labelHelp:o,additionalControls:a,placeholder:s,button:l,helperText:c,isDisabled:u,isReadOnly:d,isRequired:f,validate:h,minLength:g,maxLength:p,min:y,max:b,pattern:x,selectTitle:S,selectOpen:w,selectValue:_,autoFocus:E,autoComplete:O,disableAutoResize:k}=e,D=ui(e),{control:P,setValue:A,formState:{isSubmitting:M,isValidating:j}}=Xr(),[$,I]=v.useState(!1),[H]=$t(),G=pc(e.label,e.isRequired);return m.jsx(Ms,{name:n,control:P,shouldUnregister:!0,render:({field:{onChange:V,value:W,name:N},fieldState:{error:z}})=>{const J=z!=null&&z.message?h&&j?H.validating:z==null?void 0:z.message:void 0;function ee(X){V(X.trimStart())}return m.jsx(Cc,{fieldId:D,label:r,labelHelpTitle:i??r,labelHelp:o,additionalControls:a,helperText:c,helperTextInvalid:J,isRequired:f,fullWidth:!0,children:m.jsxs(C.InputGroup,{children:[m.jsx(C.InputGroupItem,{isFill:!0,children:m.jsx(C.TextArea,{id:D,placeholder:s,onChange:(X,Q)=>ee(Q),value:W??"","aria-describedby":D?`${D}-form-group`:void 0,validated:J?"error":void 0,type:t==="password"?$?"text":"password":t,readOnlyVariant:d?"default":void 0,isDisabled:u,autoFocus:E,autoComplete:O||"off","data-cy":D,autoResize:k===void 0?!0:!k,rows:1,resizeOrientation:"vertical"})}),t==="password"&&m.jsx(C.Button,{variant:"control",onClick:()=>I(!$),isDisabled:u||d,children:$?m.jsx(be.EyeIcon,{}):m.jsx(be.EyeSlashIcon,{})}),S&&m.jsx(C.Button,{ouiaId:`lookup-${N}-button`,variant:"control",onClick:()=>w==null?void 0:w(X=>{if(_){const Q=_(X);A(N,Q,{shouldValidate:!0})}},S),"aria-label":"Options menu",isDisabled:u||M,children:m.jsx(be.SearchIcon,{})}),l&&l]})})},rules:{required:G,validate:h,minLength:typeof r=="string"&&typeof g=="number"?{value:g,message:`${Qr(r.toLocaleLowerCase())} must be at least ${g} characters.`}:g,maxLength:typeof r=="string"&&typeof p=="number"?{value:p,message:`${Qr(r.toLocaleLowerCase())} cannot be greater than ${p} characters.`}:p,min:typeof r=="string"&&(typeof y=="number"||typeof y=="string")?{value:y,message:`${Qr(r.toLocaleLowerCase())} must be less than ${y}.`}:g,max:typeof r=="string"&&(typeof b=="number"||typeof b=="string")?{value:b,message:`${Qr(r.toLocaleLowerCase())} cannot be greater than ${b}.`}:g,pattern:x}})}function kpe(e){const{type:t,name:n,label:r,labelHelpTitle:i,labelHelp:o,additionalControls:a,placeholder:s,button:l,helperText:c,isDisabled:u,isReadOnly:d,isRequired:f,validate:h,minLength:g,maxLength:p,min:y,max:b,pattern:x,selectTitle:S,selectOpen:w,selectValue:_,autoFocus:E,autoComplete:O}=e,k=ui(e),{t:D}=$e(),{control:P,setValue:A,formState:{isSubmitting:M,isValidating:j,defaultValues:$}}=Xr(),[I,H]=v.useState(!1),[G]=$t(),V=pc(e.label,e.isRequired),W=Fs($,e.name);return m.jsx(Ms,{name:n,control:P,shouldUnregister:!0,defaultValue:e.defaultValue,render:({field:{onChange:N,value:z,name:J},fieldState:{error:ee}})=>{const X=ee!=null&&ee.message?h&&j?G.validating:ee==null?void 0:ee.message:void 0;let Q=z;switch(t){case"datetime-local":if(z){const ue=new Date(z);Q=new Date(ue.getTime()-ue.getTimezoneOffset()*6e4).toISOString().slice(0,16)}break}function ie(ue){switch(e.type){case"datetime-local":{N(new Date(ue).toISOString());break}case"number":{let de=Number(ue);if(ue===""||isNaN(de)){A(J,null),N(null);return}b!==void 0&&de>Number(b)&&(de=Number(b)),y!==void 0&&de<Number(y)&&(de=Number(y)),A(J,de),N(de);break}default:N(ue.trimStart())}}return m.jsx(Cc,{fieldId:k,label:r,labelHelpTitle:i??r,labelHelp:o,additionalControls:a,helperText:c,helperTextInvalid:X,isRequired:f,children:m.jsxs(C.InputGroup,{children:[m.jsx(C.InputGroupItem,{isFill:!0,children:m.jsx(C.TextInput,{id:k,placeholder:s,onChange:(ue,de)=>ie(de),value:Q??"","aria-describedby":k?`${k}-form-group`:void 0,validated:X?"error":void 0,type:t==="password"?I?"text":"password":t,readOnlyVariant:d?"default":void 0,isDisabled:u,autoFocus:E,autoComplete:O||"off","data-cy":k})}),t==="password"&&m.jsx(C.Button,{variant:"control",onClick:()=>H(!I),isDisabled:u||d,children:I?m.jsx(be.EyeIcon,{}):m.jsx(be.EyeSlashIcon,{})}),S&&m.jsx(C.Button,{ouiaId:`lookup-${J}-button`,variant:"control",onClick:()=>w==null?void 0:w(ue=>{if(_){const de=_(ue);A(J,de,{shouldValidate:!0})}},S),"aria-label":"Options menu",isDisabled:u||M,children:m.jsx(be.SearchIcon,{"data-cy":"lookup-button"})}),l,m.jsx(zr,{actions:[{label:D("Undo changes"),type:st.Button,selection:Ge.None,onClick:()=>{A(e.name,W)},isHidden:()=>!e.enableUndo||z===W},{label:D("Reset to default"),type:st.Button,selection:Ge.None,onClick:()=>{A(e.name,e.defaultValue)},isHidden:()=>!e.enableReset||z===e.defaultValue}],variant:C.ButtonVariant.control,position:"right"})]})})},rules:{required:V,validate:h,minLength:typeof r=="string"&&typeof g=="number"?{value:g,message:`${Qr(r.toLocaleLowerCase())} must be at least ${g} characters.`}:g,maxLength:typeof r=="string"&&typeof p=="number"?{value:p,message:`${Qr(r.toLocaleLowerCase())} cannot be greater than ${p} characters.`}:p,min:typeof r=="string"&&(typeof y=="number"||typeof y=="string")?{value:y,message:`${Qr(r.toLocaleLowerCase())} must be greater or equal to ${y}.`}:g,max:typeof r=="string"&&(typeof b=="number"||typeof b=="string")?{value:b,message:`${Qr(r.toLocaleLowerCase())} cannot be greater than ${b}.`}:b,pattern:x}})}const _v=v.createContext({isOpen:!1,setState:()=>({})});function Sh(){return v.useContext(_v)}function ZA(e){const t=dn("xl"),[n,r]=v.useState(()=>t),i=v.useCallback(o=>{o.isOpen!==void 0&&r(o.isOpen)},[]);return v.useEffect(()=>i({isOpen:t}),[t,i]),m.jsx(_v.Provider,{value:{isOpen:n,setState:i},children:e.children})}function JA(){const e=wt.useNavigate(),t=dn("xl"),n=Sh();return v.useCallback(i=>{e(i),t||n.setState({isOpen:!n.isOpen})},[e,t,n])}const Sv=v.createContext([{},()=>{}]);function Ape(){return v.useContext(Sv)[0]}function Dpe(){return v.useContext(Sv)}function Ppe(e){const[t,n]=v.useState({}),r=v.useCallback(o=>{n(QA("",o))},[]),i=v.useMemo(()=>[t,r],[t,r]);return m.jsx(Sv.Provider,{value:i,children:e.children})}function QA(e,t){const n={};return t.forEach(r=>{const i=(e+"/"+r.path).replace("//","/");"id"in r&&typeof r.id=="string"&&(n[r.id]=i),"children"in r&&Object.assign(n,QA(i,r.children))}),n}const e3=v.createContext({notificationsDrawerOpen:!1,setNotificationsDrawerOpen:()=>{throw new Error("PageNotificationsContext not implemented")},notificationGroups:{},setNotificationGroups:()=>{throw new Error("PageNotificationsContext not implemented")}});function wh(){return v.useContext(e3)}function jpe(e){const[t,n]=v.useState(!1),[r,i]=v.useState({});return m.jsx(e3.Provider,{value:{notificationGroups:r,setNotificationGroups:i,notificationsDrawerOpen:t,setNotificationsDrawerOpen:n},children:e.children})}function Mpe(e){const{t}=$e(),{notificationsDrawerOpen:n,setNotificationsDrawerOpen:r}=wh(),i=v.useRef(null);function o(){var s;r(!1),(s=i.current)==null||s.focus()}const{notificationGroups:a}=wh();return m.jsx(C.Drawer,{isExpanded:n,onExpand:()=>r(!0),children:m.jsx(C.DrawerContent,{panelContent:m.jsx(C.DrawerPanelContent,{children:m.jsxs(C.NotificationDrawer,{"data-cy":"notifications-drawer",children:[m.jsx(C.NotificationDrawerHeader,{title:t("Notifications"),children:m.jsx(C.DrawerCloseButton,{onClick:o})}),m.jsx(C.NotificationDrawerBody,{children:m.jsx(C.NotificationDrawerGroupList,{children:Object.values(a).map((s,l)=>m.jsx(Ipe,{group:s},l))})})]})}),children:m.jsx($pe,{children:e.children})})})}const $pe=Ae(C.DrawerContentBody)`
515
+ `)),isRequired:e.isRequired,children:[_&&m.jsxs("div",{style:{display:"flex"},children:[m.jsx(K0e,{onDrop:M,isDisabled:d||e.isReadOnly,inputRef:j,children:m.jsx(Gme,{"data-cy":u,id:u,name:X,language:S,value:O,onChange:ue,setError:K=>{K?h(X,{message:K}):p(X)},isReadOnly:e.isReadOnly||d,className:e.isReadOnly?"pf-v5-c-form-control pf-m-disabled":"pf-v5-c-form-control",onFocus:()=>G(!0),onBlur:()=>G(!1)})}),m.jsx(zr,{actions:[{label:t("Undo changes"),type:st.Button,selection:Ge.None,onClick:()=>{W(e.name,J),k(""),setTimeout(()=>{k(ni(Bi(J,c),S))},0)},isHidden:()=>!e.enableUndo||_T(ee,J)},{label:t("Reset to default"),type:st.Button,selection:Ge.None,onClick:()=>{W(e.name,e.defaultValue),k(""),setTimeout(()=>{k(ni(Bi(e.defaultValue,c),S))},0)},isHidden:()=>!e.enableReset||_T(ee,e.defaultValue)}],position:"right"})]}),!_&&m.jsx("div",{className:"pf-v5-c-form-control"})]})},rules:{required:z,validate:e.validate}})}function aA(e){const{t}=$e(),{handleCopy:n,handleDownload:r,handleUpload:i}=e;return!n&&!r&&!i?m.jsx(m.Fragment,{}):m.jsxs(C.Flex,{spaceItems:{default:"spaceItemsMd"},children:[n&&m.jsx(C.FlexItem,{children:m.jsx(cu,{id:"copy-button","data-cy":"copy-button","aria-label":t("Copy to clipboard"),type:"button",onClick:n,children:m.jsx(C.Icon,{size:"md",children:m.jsx(be.CopyIcon,{})})})}),i&&m.jsx(C.FlexItem,{children:m.jsx(cu,{id:"upload-button","data-cy":"upload-button","aria-label":t("Upload from file"),type:"button",onClick:i,children:m.jsx(C.Icon,{size:"md",children:m.jsx(be.UploadIcon,{})})})}),r&&m.jsx(C.FlexItem,{children:m.jsx(cu,{id:"download-button","data-cy":"download-button","aria-label":t("Download file"),type:"button",onClick:r,children:m.jsx(C.Icon,{size:"md",children:m.jsx(be.DownloadIcon,{})})})})]})}function sA(e){const{t}=$e(),{handleCopy:n,handleDownload:r,handleUpload:i,language:o,setLanguage:a}=e;return m.jsxs(C.Flex,{spaceItems:{default:"spaceItemsLg"},children:[m.jsx(C.FlexItem,{children:e.children}),m.jsx(aA,{handleCopy:n,handleDownload:r,handleUpload:i}),m.jsx(C.FlexItem,{align:{default:"alignRight"},children:m.jsxs(C.ToggleGroup,{isCompact:!0,children:[m.jsx(C.ToggleGroupItem,{id:"toggle-yaml","data-cy":"toggle-yaml","aria-label":t("Toggle to YAML"),isSelected:o==="yaml",text:"YAML",type:"button",onChange:()=>a("yaml")}),m.jsx(C.ToggleGroupItem,{id:"toggle-json","data-cy":"toggle-json","aria-label":t("Toggle to JSON"),isSelected:o==="json",text:"JSON",type:"button",onChange:()=>a("json")})]})})]})}function Bi(e,t){if(e==null)return t?[]:{};if(typeof e=="string")try{e=JSON.parse(e)}catch{try{e=Tk.load(e)}catch(n){return n instanceof Error||n instanceof Fy?new Error(n.message):{}}}return t?Array.isArray(e)?e:[]:Array.isArray(e)?{}:e}function ni(e,t){if(e==null)return"";if(e instanceof Error)return e.message;switch(t){case"json":return JSON.stringify(e,null,2);case"yaml":try{const n=Tk.dump(e).trimEnd();switch(n){case"null":case"{}":case"[]":return"";default:return n}}catch(n){return n instanceof Error||n instanceof Fy?n.message:""}default:return""}}function re(...e){const t=[],n={}.hasOwnProperty;return e.filter(Boolean).forEach(r=>{const i=typeof r;if(i==="string"||i==="number")t.push(r);else if(Array.isArray(r)&&r.length){const o=re(...r);o&&t.push(o)}else if(i==="object")for(const o in r)n.call(r,o)&&r[o]&&t.push(o)}),t.join(" ")}let Q0e=0;function Eo({name:e,xOffset:t=0,yOffset:n=0,width:r,height:i,svgPath:o}){var a;return a=class extends T.Component{constructor(){super(...arguments),this.id=`icon-title-${Q0e++}`}render(){const l=this.props,{title:c,className:u}=l,d=De(l,["title","className"]),f=u?`pf-v5-svg ${u}`:"pf-v5-svg",h=!!c,g=[t,n,r,i].join(" ");return T.createElement("svg",Object.assign({className:f,viewBox:g,fill:"currentColor","aria-labelledby":h?this.id:null,"aria-hidden":h?null:!0,role:"img",width:"1em",height:"1em"},d),h&&T.createElement("title",{id:this.id},c),T.createElement("path",{d:o}))}},a.displayName=e,a}const ga={badge:"pf-v5-c-badge",check:"pf-v5-c-check",divider:"pf-v5-c-divider",dropdown:"pf-v5-c-dropdown",dropdownGroup:"pf-v5-c-dropdown__group",dropdownGroupTitle:"pf-v5-c-dropdown__group-title",dropdownMenu:"pf-v5-c-dropdown__menu",dropdownMenuItem:"pf-v5-c-dropdown__menu-item",dropdownMenuItemDescription:"pf-v5-c-dropdown__menu-item-description",dropdownMenuItemIcon:"pf-v5-c-dropdown__menu-item-icon",dropdownMenuItemMain:"pf-v5-c-dropdown__menu-item-main",dropdownToggle:"pf-v5-c-dropdown__toggle",dropdownToggleButton:"pf-v5-c-dropdown__toggle-button",dropdownToggleCheck:"pf-v5-c-dropdown__toggle-check",dropdownToggleIcon:"pf-v5-c-dropdown__toggle-icon",dropdownToggleImage:"pf-v5-c-dropdown__toggle-image",dropdownToggleProgress:"pf-v5-c-dropdown__toggle-progress",dropdownToggleText:"pf-v5-c-dropdown__toggle-text",menu:"pf-v5-c-menu",modifiers:{fullHeight:"pf-m-full-height",expanded:"pf-m-expanded",action:"pf-m-action",disabled:"pf-m-disabled",plain:"pf-m-plain",text:"pf-m-text",splitButton:"pf-m-split-button",primary:"pf-m-primary",inProgress:"pf-m-in-progress",active:"pf-m-active",secondary:"pf-m-secondary",top:"pf-m-top",static:"pf-m-static",alignRight:"pf-m-align-right",alignLeft:"pf-m-align-left",alignRightOnSm:"pf-m-align-right-on-sm",alignLeftOnSm:"pf-m-align-left-on-sm",alignRightOnMd:"pf-m-align-right-on-md",alignLeftOnMd:"pf-m-align-left-on-md",alignRightOnLg:"pf-m-align-right-on-lg",alignLeftOnLg:"pf-m-align-left-on-lg",alignRightOnXl:"pf-m-align-right-on-xl",alignLeftOnXl:"pf-m-align-left-on-xl",alignRightOn_2xl:"pf-m-align-right-on-2xl",alignLeftOn_2xl:"pf-m-align-left-on-2xl",ariaDisabled:"pf-m-aria-disabled",icon:"pf-m-icon",description:"pf-m-description"},spinner:"pf-v5-c-spinner",themeDark:"pf-v5-theme-dark"};var lA;(function(e){e.right="right",e.left="left"})(lA||(lA={}));var cA;(function(e){e.up="up",e.down="down"})(cA||(cA={}));const ege=T.createContext({onSelect:e=>{},id:"",toggleIndicatorClass:"",toggleIconClass:"",toggleTextClass:"",menuClass:"",itemClass:"",toggleClass:"",baseClass:"",baseComponent:"div",sectionClass:"",sectionTitleClass:"",sectionComponent:"section",disabledClass:"",plainTextClass:"",menuComponent:"ul"}),tge=T.createContext({keyHandler:null,sendRef:null}),Ec={UP:"up",DOWN:"down",RIGHT:"right",LEFT:"left"};var Tn;(function(e){e.success="success",e.error="error",e.warning="warning",e.default="default"})(Tn||(Tn={}));const Ye={Tab:"Tab",Space:" ",Escape:"Escape",Enter:"Enter",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight"};function uA(e="pf"){const t=new Date().getTime()+Math.random().toString(36).slice(2);return`${e}-${t}`}function nge(e,t){return e.replace(/\${(.*?)}/g,(n,r)=>t[r]||"")}function dA(e,t,n,r,i,o=!1){if(!Array.isArray(i))return;const a=r.filter(c=>c)[0].constructor===Array;let s=e,l=t;n==="up"?e===0?s=i.length-1:s=e-1:n==="down"?e===i.length-1?s=0:s=e+1:n==="left"?t===0?l=r[e].length-1:l=t-1:n==="right"&&(t===r[e].length-1?l=0:l=t+1),r[s]===null||r[s]===void 0||a&&(r[s][l]===null||r[s][l]===void 0)?dA(s,l,n,r,i,o):o?(r[s].focus&&r[s].focus(),Tv.findDOMNode(r[s]).focus()):n!=="tab"&&(a?r[s][l].focus():r[s].focus())}function Oc(e,t){const n=e.current.querySelectorAll(t);return Array.prototype.filter.call(n,function(i){return i.tabIndex>="0"})}function fA(e,t,n){let r;return t==="up"?e===0?r=n.length-1:r=e-1:e===n.length-1?r=0:r=e+1,n[r]===void 0||n[r][0]===null?fA(r,t,n):r}const hA=(e,t,n="",r,i)=>e?Object.entries(e||{}).map(([o,a])=>`${n}${a}${o!=="default"?`-on-${o}`:""}`).map(ige).map(o=>o.replace(/-?(\dxl)/gi,(a,s)=>`_${s}`)).map(o=>t.modifiers[o]).filter(Boolean).join(" "):"",rge=e=>e.toUpperCase().replace("-","").replace("_",""),ige=e=>e.replace(/([-_][a-z])/gi,rge),mA=!!(typeof window<"u"&&window.document&&window.document.createElement),gA=(e,t)=>{const n=getComputedStyle(t),r=()=>{let a="";const s={"50%":"ultra-condensed","62.5%":"extra-condensed","75%":"condensed","87.5%":"semi-condensed","100%":"normal","112.5%":"semi-expanded","125%":"expanded","150%":"extra-expanded","200%":"ultra-expanded"};let l;return n.fontStretch in s?l=s[n.fontStretch]:l="normal",a=n.fontStyle+" "+n.fontVariant+" "+n.fontWeight+" "+l+" "+n.fontSize+"/"+n.lineHeight+" "+n.fontFamily,a},o=document.createElement("canvas").getContext("2d");return o.font=n.font||r(),o.measureText(e).width},oge=e=>{const t=getComputedStyle(e);let n=e.clientWidth,r=e.clientHeight;return r-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),n-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),{height:r,width:n}},age=(e,t)=>{const n=oge(e).width;let r=t;if(gA(t,e)>n){for(;gA(`...${r}`,e)>n;)r=r.substring(1);e.value?e.value=`...${r}`:e.innerText=`...${r}`}else e.value?e.value=t:e.innerText=t},sge=e=>e.reduce((t,n)=>Object.assign(Object.assign({},t),{[n]:r=>{r.preventDefault()}}),{}),uh=e=>{e.forEach(t=>{t.current&&clearTimeout(t.current)})},lge=(e,t="ltr")=>{if(!e)return t;const n=getComputedStyle(e).getPropertyValue("direction");return["ltr","rtl"].includes(n)?n:t};let cge=0;function uge(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():uA()}class Tc extends T.Component{constructor(){super(...arguments),this.uniqueElement=this.props.isRandom?uge():cge++,this.id=`${this.props.prefix}${this.uniqueElement}`}render(){return this.props.children(this.id)}}Tc.displayName="GenerateId",Tc.defaultProps={prefix:"pf-random-id-",isRandom:!1};let dge=0;const pA="OUIA-Generated-",ev={};function kc(e,t,n=!0){return{"data-ouia-component-type":`PF5/${e}`,"data-ouia-safe":n,"data-ouia-component-id":t}}const yA=(e,t,n=!0,r)=>({"data-ouia-component-type":`PF5/${e}`,"data-ouia-safe":n,"data-ouia-component-id":fge(e,t,r)}),fge=(e,t,n)=>{const r=v.useMemo(()=>dh(e,n),[e,n]);return t??r};function dh(e,t){try{let n;return typeof window<"u"?n=`${window.location.href}-${e}-${t||""}`:n=`${e}-${t||""}`,ev[n]||(ev[n]=0),`${pA}${e}-${t?`${t}-`:""}${++ev[n]}`}catch{return`${pA}${e}-${t?`${t}-`:""}${++dge}`}}function Ac(e){const t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function ri(e){if(e.toString()!=="[object Window]"){const t=e.ownerDocument;return t?t.defaultView:window}return e}function tv(e){const t=ri(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Dc(e){const t=ri(e).Element;return e instanceof t||e instanceof Element}function ii(e){const t=ri(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function hge(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function mge(e){return e===ri(e)||!ii(e)?tv(e):hge(e)}function Ir(e){return e?(e.nodeName||"").toLowerCase():null}function Wi(e){return(Dc(e)?e.ownerDocument:e.document).documentElement}function nv(e){return Ac(Wi(e)).left+tv(e).scrollLeft}function zi(e){return ri(e).getComputedStyle(e)}function rv(e){const{overflow:t,overflowX:n,overflowY:r}=zi(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function gge(e,t,n=!1){const r=Wi(t),i=Ac(e),o=ii(t);let a={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(o||!o&&!n)&&((Ir(t)!=="body"||rv(r))&&(a=mge(t)),ii(t)?(s=Ac(t),s.x+=t.clientLeft,s.y+=t.clientTop):r&&(s.x=nv(r))),{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function iv(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function fh(e){return Ir(e)==="html"?e:e.assignedSlot||e.parentNode||e.host||Wi(e)}function vA(e){return["html","body","#document"].indexOf(Ir(e))>=0?e.ownerDocument.body:ii(e)&&rv(e)?e:vA(fh(e))}function Pc(e,t=[]){const n=vA(e),r=Ir(n)==="body",i=ri(n),o=r?[i].concat(i.visualViewport||[],rv(n)?n:[]):n,a=t.concat(o);return r?a:a.concat(Pc(fh(o)))}function pge(e){return["table","td","th"].indexOf(Ir(e))>=0}function bA(e){if(!ii(e)||zi(e).position==="fixed")return null;const t=e.offsetParent;if(t){const n=Wi(t);if(Ir(t)==="body"&&zi(t).position==="static"&&zi(n).position!=="static")return n}return t}function yge(e){let t=fh(e);for(;ii(t)&&["html","body"].indexOf(Ir(t))<0;){const n=zi(t);if(n.transform!=="none"||n.perspective!=="none"||n.willChange&&n.willChange!=="auto")return t;t=t.parentNode}return null}function jc(e){const t=ri(e);let n=bA(e);for(;n&&pge(n)&&zi(n).position==="static";)n=bA(n);return n&&Ir(n)==="body"&&zi(n).position==="static"?t:n||yge(e)||t}const gr="top",Lr="bottom",Fr="right",pr="left",ov="auto",Mc=[gr,Lr,Fr,pr],Vs="start",av="end",vge="clippingParents",xA="viewport",$c="popper",bge="reference",_A=Mc.reduce((e,t)=>e.concat([`${t}-${Vs}`,`${t}-${av}`]),[]),SA=[...Mc,ov].reduce((e,t)=>e.concat([t,`${t}-${Vs}`,`${t}-${av}`]),[]),xge=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function _ge(e){const t=new Map,n=new Set,r=[];e.forEach(o=>{t.set(o.name,o)});function i(o){n.add(o.name),[...o.requires||[],...o.requiresIfExists||[]].forEach(s=>{if(!n.has(s)){const l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(o=>{n.has(o.name)||i(o)}),r}function Sge(e){const t=_ge(e);return xge.reduce((n,r)=>n.concat(t.filter(i=>i.phase===r)),[])}function wge(e){let t;return()=>(t||(t=new Promise(n=>{Promise.resolve().then(()=>{t=void 0,n(e())})})),t)}function oi(e){return e.split("-")[0]}function Cge(e){const t=e.reduce((n,r)=>{const i=n[r.name];return n[r.name]=i?Object.assign(Object.assign(Object.assign({},i),r),{options:Object.assign(Object.assign({},i.options),r.options),data:Object.assign(Object.assign({},i.data),r.data)}):r,n},{});return Object.keys(t).map(n=>t[n])}function Ege(e){const t=ri(e),n=Wi(e),r=t.visualViewport;let i=n.clientWidth,o=n.clientHeight,a=0,s=0;return r&&(i=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:i,height:o,x:a+nv(e),y:s}}function Oge(e){const t=Wi(e),n=tv(e),r=e.ownerDocument.body,i=Math.max(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=Math.max(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let a=-n.scrollLeft+nv(e);const s=-n.scrollTop;return zi(r||t).direction==="rtl"&&(a+=Math.max(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:o,x:a,y:s}}function wA(e,t){const n=!!(t.getRootNode&&t.getRootNode().host);if(e.contains(t))return!0;if(n){let r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function sv(e){return Object.assign(Object.assign({},e),{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Tge(e){const t=Ac(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function CA(e,t){return t===xA?sv(Ege(e)):ii(t)?Tge(t):sv(Oge(Wi(e)))}function kge(e){const t=Pc(fh(e)),r=["absolute","fixed"].indexOf(zi(e).position)>=0&&ii(e)?jc(e):e;return Dc(r)?t.filter(i=>Dc(i)&&wA(i,r)&&Ir(i)!=="body"):[]}function Age(e,t,n){const i=[...t==="clippingParents"?kge(e):[].concat(t),n],o=i[0],a=i.reduce((s,l)=>{const c=CA(e,l);return s.top=Math.max(c.top,s.top),s.right=Math.min(c.right,s.right),s.bottom=Math.min(c.bottom,s.bottom),s.left=Math.max(c.left,s.left),s},CA(e,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Ic(e){return e.split("-")[1]}function lv(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function EA({reference:e,element:t,placement:n}){const r=n?oi(n):null,i=n?Ic(n):null,o=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2;let s;switch(r){case gr:s={x:o,y:e.y-t.height};break;case Lr:s={x:o,y:e.y+e.height};break;case Fr:s={x:e.x+e.width,y:a};break;case pr:s={x:e.x-t.width,y:a};break;default:s={x:e.x,y:e.y}}const l=r?lv(r):null;if(l!=null){const c=l==="y"?"height":"width";switch(i){case Vs:s[l]=Math.floor(s[l])-Math.floor(e[c]/2-t[c]/2);break;case av:s[l]=Math.floor(s[l])+Math.ceil(e[c]/2-t[c]/2);break}}return s}function OA(){return{top:0,right:0,bottom:0,left:0}}function TA(e){return Object.assign(Object.assign({},OA()),e)}function kA(e,t){return t.reduce((n,r)=>(n[r]=e,n),{})}function Lc(e,t={}){const{placement:n=e.placement,boundary:r=vge,rootBoundary:i=xA,elementContext:o=$c,altBoundary:a=!1,padding:s=0}=t,l=TA(typeof s!="number"?s:kA(s,Mc)),c=o===$c?bge:$c,u=e.elements.reference,d=e.rects.popper,f=e.elements[a?c:o],h=Age(Dc(f)?f:f.contextElement||Wi(e.elements.popper),r,i),g=Ac(u),p=EA({reference:g,element:d,strategy:"absolute",placement:n}),y=sv(Object.assign(Object.assign({},d),p)),b=o===$c?y:g,x={top:h.top-b.top+l.top,bottom:b.bottom-h.bottom+l.bottom,left:h.left-b.left+l.left,right:b.right-h.right+l.right},S=e.modifiersData.offset;if(o===$c&&S){const w=S[n];Object.keys(x).forEach(_=>{const E=[Fr,Lr].indexOf(_)>=0?1:-1,O=[gr,Lr].indexOf(_)>=0?"y":"x";x[_]+=w[O]*E})}return x}const AA={placement:"bottom",modifiers:[],strategy:"absolute"};function DA(...e){return!e.some(t=>!(t&&typeof t.getBoundingClientRect=="function"))}function Dge(e={}){const{defaultModifiers:t=[],defaultOptions:n=AA}=e;return function(i,o,a=n){let s={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},AA),n),modifiersData:{},elements:{reference:i,popper:o},attributes:{},styles:{}},l=[],c=!1;const u={state:s,setOptions(h){f(),s.options=Object.assign(Object.assign(Object.assign({},n),s.options),h),s.scrollParents={reference:Dc(i)?Pc(i):i.contextElement?Pc(i.contextElement):[],popper:Pc(o)};const g=Sge(Cge([...t,...s.options.modifiers]));return s.orderedModifiers=g.filter(p=>p.enabled),d(),u.update()},forceUpdate(){if(c)return;const{reference:h,popper:g}=s.elements;if(DA(h,g)){s.rects={reference:gge(h,jc(g),s.options.strategy==="fixed"),popper:iv(g)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(p=>s.modifiersData[p.name]=Object.assign({},p.data));for(let p=0;p<s.orderedModifiers.length;p++){if(s.reset===!0){s.reset=!1,p=-1;continue}const{fn:y,options:b={},name:x}=s.orderedModifiers[p];typeof y=="function"&&(s=y({state:s,options:b,name:x,instance:u})||s)}}},update:wge(()=>new Promise(h=>{u.forceUpdate(),h(s)})),destroy(){f(),c=!0}};if(!DA(i,o))return u;u.setOptions(a).then(h=>{!c&&a.onFirstUpdate&&a.onFirstUpdate(h)});function d(){s.orderedModifiers.forEach(({name:h,options:g={},effect:p})=>{if(typeof p=="function"){const y=p({state:s,name:h,instance:u,options:g}),b=()=>{};l.push(y||b)}})}function f(){l.forEach(h=>h()),l=[]}return u}}const hh={passive:!0};function Pge({state:e,instance:t,options:n}){const{scroll:r=!0,resize:i=!0}=n,o=ri(e.elements.popper),a=[...e.scrollParents.reference,...e.scrollParents.popper];return r&&a.forEach(s=>{s.addEventListener("scroll",t.update,hh)}),i&&o.addEventListener("resize",t.update,hh),()=>{r&&a.forEach(s=>{s.removeEventListener("scroll",t.update,hh)}),i&&o.removeEventListener("resize",t.update,hh)}}const jge={name:"eventListeners",enabled:!0,phase:"write",fn:()=>{},effect:Pge,data:{}};function Mge({state:e,name:t}){e.modifiersData[t]=EA({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const $ge={name:"popperOffsets",enabled:!0,phase:"read",fn:Mge,data:{}},Ige={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Lge({x:e,y:t}){const r=window.devicePixelRatio||1;return{x:Math.round(e*r)/r||0,y:Math.round(t*r)/r||0}}function PA({popper:e,popperRect:t,placement:n,offsets:r,position:i,gpuAcceleration:o,adaptive:a}){let{x:s,y:l}=Lge(r);const c=r.hasOwnProperty("x"),u=r.hasOwnProperty("y");let d=pr,f=gr;const h=window;if(a){let p=jc(e);p===ri(e)&&(p=Wi(e)),n===gr&&(f=Lr,l-=p.clientHeight-t.height,l*=o?1:-1),n===pr&&(d=Fr,s-=p.clientWidth-t.width,s*=o?1:-1)}const g=Object.assign({position:i},a&&Ige);return o?Object.assign(Object.assign({},g),{[f]:u?"0":"",[d]:c?"0":"",transform:(h.devicePixelRatio||1)<2?`translate(${s}px, ${l}px)`:`translate3d(${s}px, ${l}px, 0)`}):Object.assign(Object.assign({},g),{[f]:u?`${l}px`:"",[d]:c?`${s}px`:"",transform:""})}function Fge({state:e,options:t}){const{gpuAcceleration:n=!0,adaptive:r=!0}=t,i={placement:oi(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign(Object.assign({},e.styles.popper),PA(Object.assign(Object.assign({},i),{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign(Object.assign({},e.styles.arrow),PA(Object.assign(Object.assign({},i),{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1})))),e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-placement":e.placement})}const Nge={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Fge,data:{}};function Rge({state:e}){Object.keys(e.elements).forEach(t=>{const n=e.styles[t]||{},r=e.attributes[t]||{},i=e.elements[t];!ii(i)||!Ir(i)||(Object.assign(i.style,n),Object.keys(r).forEach(o=>{const a=r[o];a===!1?i.removeAttribute(o):i.setAttribute(o,a===!0?"":a)}))})}function Bge({state:e}){const t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),()=>{Object.keys(e.elements).forEach(n=>{const r=e.elements[n],i=e.attributes[n]||{},a=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:t[n]).reduce((s,l)=>(s[l]="",s),{});!ii(r)||!Ir(r)||(Object.assign(r.style,a),Object.keys(i).forEach(s=>{r.removeAttribute(s)}))})}}const Wge={name:"applyStyles",enabled:!0,phase:"write",fn:Rge,effect:Bge,requires:["computeStyles"]};function zge(e,t,n){const r=oi(e),i=[pr,gr].indexOf(r)>=0?-1:1;let[o,a]=typeof n=="function"?n(Object.assign(Object.assign({},t),{placement:e})):n;return o=o||0,a=(a||0)*i,[pr,Fr].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}function Vge({state:e,options:t,name:n}){const{offset:r=[0,0]}=t,i=SA.reduce((s,l)=>(s[l]=zge(l,e.rects,r),s),{}),{x:o,y:a}=i[e.placement];e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=o,e.modifiersData.popperOffsets.y+=a),e.modifiersData[n]=i}const Uge={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Vge},Hge={left:"right",right:"left",bottom:"top",top:"bottom"};function mh(e){return e.replace(/left|right|bottom|top/g,t=>Hge[t])}const Gge={start:"end",end:"start"};function jA(e){return e.replace(/start|end/g,t=>Gge[t])}function qge(e,t={}){const{placement:n,boundary:r,rootBoundary:i,padding:o,flipVariations:a,allowedAutoPlacements:s=SA}=t,l=Ic(n),c=l?a?_A:_A.filter(f=>Ic(f)===l):Mc;let u=c.filter(f=>s.indexOf(f)>=0);u.length===0&&(u=c);const d=u.reduce((f,h)=>(f[h]=Lc(e,{placement:h,boundary:r,rootBoundary:i,padding:o})[oi(h)],f),{});return Object.keys(d).sort((f,h)=>d[f]-d[h])}function Yge(e){if(oi(e)===ov)return[];const t=mh(e);return[jA(e),t,jA(t)]}function Kge({state:e,options:t,name:n}){if(e.modifiersData[n]._skip)return;const{mainAxis:r=!0,altAxis:i=!0,fallbackPlacements:o,padding:a,boundary:s,rootBoundary:l,altBoundary:c,flipVariations:u=!0,allowedAutoPlacements:d}=t,f=e.options.placement,g=oi(f)===f,p=o||(g||!u?[mh(f)]:Yge(f)),y=[f,...p].reduce((E,O)=>E.concat(oi(O)===ov?qge(e,{placement:O,boundary:s,rootBoundary:l,padding:a,flipVariations:u,allowedAutoPlacements:d}):O),[]),b=e.rects.reference,x=e.rects.popper,S=new Map;let w=!0,_=y[0];for(let E=0;E<y.length;E++){const O=y[E],k=oi(O),D=Ic(O)===Vs,P=[gr,Lr].indexOf(k)>=0,A=P?"width":"height",M=Lc(e,{placement:O,boundary:s,rootBoundary:l,altBoundary:c,padding:a});let j=P?D?Fr:pr:D?Lr:gr;b[A]>x[A]&&(j=mh(j));const $=mh(j),I=[];if(r&&I.push(M[k]<=0),i&&I.push(M[j]<=0,M[$]<=0),I.every(H=>H)){_=O,w=!1;break}S.set(O,I)}if(w){const E=u?3:1;for(let O=E;O>0;O--){const k=y.find(D=>{const P=S.get(D);if(P)return P.slice(0,O).every(A=>A)});if(k){_=k;break}}}e.placement!==_&&(e.modifiersData[n]._skip=!0,e.placement=_,e.reset=!0)}const Xge={name:"flip",enabled:!0,phase:"main",fn:Kge,requiresIfExists:["offset"],data:{_skip:!1}};function Zge(e){return e==="x"?"y":"x"}function gh(e,t,n){return Math.max(e,Math.min(t,n))}function Jge({state:e,options:t,name:n}){const{mainAxis:r=!0,altAxis:i=!1,boundary:o,rootBoundary:a,altBoundary:s,padding:l,tether:c=!0,tetherOffset:u=0}=t,d=Lc(e,{boundary:o,rootBoundary:a,padding:l,altBoundary:s}),f=oi(e.placement),h=Ic(e.placement),g=!h,p=lv(f),y=Zge(p),b=e.modifiersData.popperOffsets,x=e.rects.reference,S=e.rects.popper,w=typeof u=="function"?u(Object.assign(Object.assign({},e.rects),{placement:e.placement})):u,_={x:0,y:0};if(b){if(r){const E=p==="y"?gr:pr,O=p==="y"?Lr:Fr,k=p==="y"?"height":"width",D=b[p],P=b[p]+d[E],A=b[p]-d[O],M=c?-S[k]/2:0,j=h===Vs?x[k]:S[k],$=h===Vs?-S[k]:-x[k],I=e.elements.arrow,H=c&&I?iv(I):{width:0,height:0},G=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:OA(),V=G[E],W=G[O],N=gh(0,x[k],H[k]),z=g?x[k]/2-M-N-V-w:j-N-V-w,J=g?-x[k]/2+M+N+W+w:$+N+W+w,ee=e.elements.arrow&&jc(e.elements.arrow),X=ee?p==="y"?ee.clientTop||0:ee.clientLeft||0:0,Q=e.modifiersData.offset?e.modifiersData.offset[e.placement][p]:0,ie=b[p]+z-Q-X,ue=b[p]+J-Q,de=gh(c?Math.min(P,ie):P,D,c?Math.max(A,ue):A);b[p]=de,_[p]=de-D}if(i){const E=p==="x"?gr:pr,O=p==="x"?Lr:Fr,k=b[y],D=k+d[E],P=k-d[O],A=gh(D,k,P);b[y]=A,_[y]=A-k}e.modifiersData[n]=_}}const Qge={name:"preventOverflow",enabled:!0,phase:"main",fn:Jge,requiresIfExists:["offset"]};function epe({state:e,name:t}){const n=e.elements.arrow,r=e.modifiersData.popperOffsets,i=oi(e.placement),o=lv(i),s=[pr,Fr].indexOf(i)>=0?"height":"width";if(!n||!r)return;const l=e.modifiersData[`${t}#persistent`].padding,c=iv(n),u=o==="y"?gr:pr,d=o==="y"?Lr:Fr,f=e.rects.reference[s]+e.rects.reference[o]-r[o]-e.rects.popper[s],h=r[o]-e.rects.reference[o],g=jc(n),p=g?o==="y"?g.clientHeight||0:g.clientWidth||0:0,y=f/2-h/2,b=l[u],x=p-c[s]-l[d],S=p/2-c[s]/2+y,w=gh(b,S,x),_=o;e.modifiersData[t]={[_]:w,centerOffset:w-S}}function tpe({state:e,options:t,name:n}){let{element:r="[data-popper-arrow]",padding:i=0}=t;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||wA(e.elements.popper,r)&&(e.elements.arrow=r,e.modifiersData[`${n}#persistent`]={padding:TA(typeof i!="number"?i:kA(i,Mc))}))}const npe={name:"arrow",enabled:!0,phase:"main",fn:epe,effect:tpe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function MA(e,t,n={x:0,y:0}){return{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function $A(e){return[gr,Fr,Lr,pr].some(t=>e[t]>=0)}function rpe({state:e,name:t}){const n=e.rects.reference,r=e.rects.popper,i=e.modifiersData.preventOverflow,o=Lc(e,{elementContext:"reference"}),a=Lc(e,{altBoundary:!0}),s=MA(o,n),l=MA(a,r,i),c=$A(s),u=$A(l);e.modifiersData[t]={referenceClippingOffsets:s,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:u},e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-reference-hidden":c,"data-popper-escaped":u})}const ipe=Dge({defaultModifiers:[jge,$ge,Nge,Wge,Uge,Xge,Qge,npe,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:rpe}]}),IA=mA?T.useLayoutEffect:T.useEffect,ope=(e,t)=>JSON.stringify(e)===JSON.stringify(t),LA=e=>e.reduce((t,[n,r])=>(t[n]=r,t),{}),ape=[],spe=(e,t,n={})=>{const r=T.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||ape},[o,a]=T.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"}},attributes:{}}),s=T.useMemo(()=>({name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const d=Object.keys(u.elements);a({styles:LA(d.map(f=>[f,u.styles[f]||{}])),attributes:LA(d.map(f=>[f,u.attributes[f]]))})},requires:["computeStyles"]}),[]),l=T.useMemo(()=>{const u={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[...i.modifiers,s,{name:"applyStyles",enabled:!1}]};return ope(r.current,u)?r.current||u:(r.current=u,u)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,s]),c=T.useRef();return IA(()=>{c&&c.current&&c.current.setOptions(l)},[l]),IA(()=>{if(e==null||t==null)return;const d=(n.createPopper||ipe)(e,t,l);return c.current=d,()=>{d.destroy(),c.current=null}},[e,t,n.createPopper]),{state:c.current?c.current.state:null,styles:o.styles,attributes:o.attributes,update:c.current?c.current.update:null,forceUpdate:c.current?c.current.forceUpdate:null}},lpe={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"},cpe=e=>e.replace(/left|right|bottom|top|top-start|top-end|bottom-start|bottom-end|right-start|right-end|left-start|left-end/g,t=>lpe[t]),upe=e=>`opacity ${e}ms cubic-bezier(.54, 1.5, .38, 1.11)`,cv=({trigger:e,popper:t,direction:n="down",position:r="start",placement:i,width:o,minWidth:a="trigger",maxWidth:s,appendTo:l="inline",zIndex:c=9999,isVisible:u=!0,positionModifiers:d,distance:f=0,onMouseEnter:h,onMouseLeave:g,onFocus:p,onBlur:y,onDocumentClick:b,onTriggerClick:x,onTriggerEnter:S,onPopperClick:w,onPopperMouseEnter:_,onPopperMouseLeave:E,onDocumentKeyDown:O,enableFlip:k=!0,flipBehavior:D="flip",triggerRef:P,popperRef:A,animationDuration:M=0,entryDelay:j=0,exitDelay:$=0,onHidden:I=()=>{},onHide:H=()=>{},onMount:G=()=>{},onShow:V=()=>{},onShown:W=()=>{},preventOverflow:N=!1})=>{var z;const[J,ee]=T.useState(null),[X,Q]=T.useState(null),[ie,ue]=T.useState(null),[de,K]=T.useState(null),[ne,ye]=T.useState(!1),[R,Oe]=T.useState(0),[oe,Le]=T.useState(u),je=T.useRef(null),Ze=T.useRef(null),L=T.useRef(null),U=T.useRef(),q=X||J,he=u||oe,me=(z=(P==null?void 0:P.current)||J)===null||z===void 0?void 0:z.parentElement,ae=lge(me),Y=T.useMemo(()=>{const Ce={left:"left",right:"right",center:"center"};return{ltr:Object.assign({start:"left",end:"right"},Ce),rtl:Object.assign({start:"right",end:"left"},Ce)}[ae][r]},[r,ae]),ce=T.useCallback(Ce=>b(Ce,q,ie),[he,J,X,ie,b]);T.useEffect(()=>{ye(!0),G()},[]),T.useEffect(()=>()=>{uh([je,L,Ze])},[]),T.useEffect(()=>{P&&(P.current?Q(P.current):typeof P=="function"&&Q(P()))},[P,e]),T.useEffect(()=>{A&&(A.current?ue(A.current):typeof A=="function"&&ue(A()))},[he,A]),T.useEffect(()=>{const Ce=new MutationObserver(()=>{We&&We()});return ie&&Ce.observe(ie,{attributes:!0,childList:!0,subtree:!0}),()=>{Ce.disconnect()}},[ie]);const xe=(Ce,lt,un,Gt=!1)=>{Ce&&lt&&lt.addEventListener(un,Ce,{capture:Gt})},_e=(Ce,lt,un,Gt=!1)=>{Ce&&lt&&lt.removeEventListener(un,Ce,{capture:Gt})};T.useEffect(()=>(xe(h,q,"mouseenter"),xe(g,q,"mouseleave"),xe(p,q,"focus"),xe(y,q,"blur"),xe(x,q,"click"),xe(S,q,"keydown"),xe(w,ie,"click"),xe(_,ie,"mouseenter"),xe(E,ie,"mouseleave"),b&&xe(ce,document,"click",!0),xe(O,document,"keydown",!0),()=>{_e(h,q,"mouseenter"),_e(g,q,"mouseleave"),_e(p,q,"focus"),_e(y,q,"blur"),_e(x,q,"click"),_e(S,q,"keydown"),_e(w,ie,"click"),_e(_,ie,"mouseenter"),_e(E,ie,"mouseleave"),b&&_e(ce,document,"click",!0),_e(O,document,"keydown",!0)}),[J,ie,h,g,p,y,x,S,w,_,E,b,O,X]);const Re=()=>{if(i)return i;let Ce=n==="up"?"top":"bottom";return Y!=="center"&&(Ce=`${Ce}-${Y==="right"?"end":"start"}`),Ce},Ve=T.useMemo(Re,[n,Y,i]),ot=T.useMemo(()=>cpe(Re()),[n,Y,i]),Ot=T.useMemo(()=>({name:"widthMods",enabled:o!==void 0||a!==void 0||s!==void 0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:Ce})=>{const lt=Ce.rects.reference.width;o&&(Ce.styles.popper.width=o==="trigger"?`${lt}px`:o),a&&(Ce.styles.popper.minWidth=a==="trigger"?`${lt}px`:a),s&&(Ce.styles.popper.maxWidth=s==="trigger"?`${lt}px`:s)},effect:({state:Ce})=>{const lt=Ce.elements.reference.offsetWidth;return o&&(Ce.elements.popper.style.width=o==="trigger"?`${lt}px`:o),a&&(Ce.elements.popper.style.minWidth=a==="trigger"?`${lt}px`:a),s&&(Ce.elements.popper.style.maxWidth=s==="trigger"?`${lt}px`:s),()=>{}}}),[o,a,s]),{styles:Mt,attributes:Tt,update:We,forceUpdate:Me}=spe(q,ie,{placement:Ve,modifiers:[{name:"offset",options:{offset:[0,f]}},{name:"preventOverflow",enabled:N},{name:"hide",enabled:!0},{name:"flip",enabled:Ve.startsWith("auto")||k,options:{fallbackPlacements:D==="flip"?[ot]:D}},Ot]});T.useEffect(()=>{var Ce,lt,un,Gt,To,ko,Gi;const qi=((Gt=(un=(lt=(Ce=t==null?void 0:t.props)===null||Ce===void 0?void 0:Ce.children)===null||lt===void 0?void 0:lt[1])===null||un===void 0?void 0:un.props)===null||Gt===void 0?void 0:Gt.children)||((Gi=(ko=(To=t==null?void 0:t.props)===null||To===void 0?void 0:To.children)===null||ko===void 0?void 0:ko.props)===null||Gi===void 0?void 0:Gi.children);K(qi),qi&&de&&qi!==de&&Me&&Me()},[t]),T.useEffect(()=>{U.current<$&&(uh([je,L]),L.current=setTimeout(()=>{je.current=setTimeout(()=>{Le(!1)},M)},$)),U.current=$},[$]);const pt=()=>{V(),uh([je,L]),Ze.current=setTimeout(()=>{Le(!0),Oe(1),W()},j)},Ut=()=>{H(),uh([Ze]),L.current=setTimeout(()=>{Oe(0),je.current=setTimeout(()=>{Le(!1),I()},M)},$)};T.useEffect(()=>{u?pt():Ut()},[u]);const kt=()=>{if(Tt&&Tt.popper&&Tt.popper["data-popper-placement"]){const Ce=Tt.popper["data-popper-placement"];return d[Ce]}return d.top},Bn=Object.assign({className:re(t.props&&t.props.className,d&&kt()),style:Object.assign(Object.assign(Object.assign({},t.props&&t.props.style||{}),Mt.popper),{zIndex:c,opacity:R,transition:upe(M)})},Tt.popper),Ht=()=>{const Ce=T.cloneElement(t,Bn);return A?Ce:T.createElement("div",{style:{display:"contents"},ref:lt=>ue(lt==null?void 0:lt.firstElementChild)},Ce)},Wn=()=>{if(l==="inline")return Ht();{const Ce=typeof l=="function"?l():l;return Tv.createPortal(Ht(),Ce)}};return T.createElement(T.Fragment,null,!P&&e&&T.isValidElement(e)&&T.createElement("div",{style:{display:"contents"},ref:Ce=>ee(Ce==null?void 0:Ce.firstElementChild)},e),P&&e&&T.isValidElement(e)&&e,ne&&he&&Wn())};cv.displayName="Popper";const dpe=(e,t,n)=>{let r;if(mA){const{ResizeObserver:i}=window;if(e&&i){const o=new i(a=>{window.requestAnimationFrame(()=>{Array.isArray(a)&&a.length>0})});o.observe(e),r=()=>o.unobserve(e)}else window.addEventListener("resize",t),r=()=>window.removeEventListener("resize",t)}return()=>{r&&r()}},yn={modifiers:{top:"pf-m-top",topLeft:"pf-m-top-left",topRight:"pf-m-top-right",bottom:"pf-m-bottom",bottomLeft:"pf-m-bottom-left",bottomRight:"pf-m-bottom-right",left:"pf-m-left",leftTop:"pf-m-left-top",leftBottom:"pf-m-left-bottom",right:"pf-m-right",rightTop:"pf-m-right-top",rightBottom:"pf-m-right-bottom",textAlignLeft:"pf-m-text-align-left"},themeDark:"pf-v5-theme-dark",tooltip:"pf-v5-c-tooltip",tooltipArrow:"pf-v5-c-tooltip__arrow",tooltipContent:"pf-v5-c-tooltip__content"},FA=e=>{var{className:t,children:n,isLeftAligned:r}=e,i=De(e,["className","children","isLeftAligned"]);return T.createElement("div",Object.assign({className:re(yn.tooltipContent,r&&yn.modifiers.textAlignLeft,t)},i),n)};FA.displayName="TooltipContent";const NA=e=>{var{className:t}=e,n=De(e,["className"]);return T.createElement("div",Object.assign({className:re(yn.tooltipArrow,t)},n))};NA.displayName="TooltipArrow";const RA={name:"--pf-v5-c-tooltip--MaxWidth",value:"18.75rem",var:"var(--pf-v5-c-tooltip--MaxWidth)"};var BA;(function(e){e.auto="auto",e.top="top",e.bottom="bottom",e.left="left",e.right="right",e.topStart="top-start",e.topEnd="top-end",e.bottomStart="bottom-start",e.bottomEnd="bottom-end",e.leftStart="left-start",e.leftEnd="left-end",e.rightStart="right-start",e.rightEnd="right-end"})(BA||(BA={}));let fpe=1;const ph=e=>{var{content:t,position:n="top",trigger:r="mouseenter focus",isVisible:i=!1,isContentLeftAligned:o=!1,enableFlip:a=!0,className:s="",entryDelay:l=300,exitDelay:c=300,appendTo:u=()=>document.body,zIndex:d=9999,minWidth:f,maxWidth:h=RA.value,distance:g=15,aria:p="describedby",flipBehavior:y=["top","right","bottom","left","top","right","bottom"],id:b=`pf-tooltip-${fpe++}`,children:x,animationDuration:S=300,triggerRef:w,"aria-live":_=w?"polite":"off",onTooltipHidden:E=()=>{}}=e,O=De(e,["content","position","trigger","isVisible","isContentLeftAligned","enableFlip","className","entryDelay","exitDelay","appendTo","zIndex","minWidth","maxWidth","distance","aria","flipBehavior","id","children","animationDuration","triggerRef","aria-live","onTooltipHidden"]);const k=r.includes("mouseenter"),D=r.includes("focus"),P=r.includes("click"),A=r==="manual",[M,j]=T.useState(!1),$=T.createRef(),I=X=>{A||X.key===Ye.Escape&&M&&V()},H=X=>{X.key===Ye.Enter&&(M?V():G())};T.useEffect(()=>{i?G():V()},[i]);const G=()=>{j(!0)},V=()=>{j(!1)},W={top:yn.modifiers.top,bottom:yn.modifiers.bottom,left:yn.modifiers.left,right:yn.modifiers.right,"top-start":yn.modifiers.topLeft,"top-end":yn.modifiers.topRight,"bottom-start":yn.modifiers.bottomLeft,"bottom-end":yn.modifiers.bottomRight,"left-start":yn.modifiers.leftTop,"left-end":yn.modifiers.leftBottom,"right-start":yn.modifiers.rightTop,"right-end":yn.modifiers.rightBottom},N=h!==RA.value,z=T.createElement("div",Object.assign({"aria-live":_,className:re(yn.tooltip,s),role:"tooltip",id:b,style:{maxWidth:N?h:null},ref:$},O),T.createElement(NA,null),T.createElement(FA,{isLeftAligned:o},t)),J=(X,Q)=>{M?V():X.target===Q&&G()},ee=()=>p==="describedby"&&x&&x.props&&!x.props["aria-describedby"]?T.cloneElement(x,{"aria-describedby":b}):p==="labelledby"&&x.props&&!x.props["aria-labelledby"]?T.cloneElement(x,{"aria-labelledby":b}):x;return T.createElement(cv,{trigger:p!=="none"&&M?ee():x,triggerRef:w,popper:z,popperRef:$,minWidth:f!==void 0?f:"revert",appendTo:u,isVisible:M,positionModifiers:W,distance:g,placement:n,onMouseEnter:k&&G,onMouseLeave:k&&V,onPopperMouseEnter:k&&G,onPopperMouseLeave:k&&V,onFocus:D&&G,onBlur:D&&V,onDocumentClick:P&&J,onDocumentKeyDown:A?null:I,onTriggerEnter:A?null:H,enableFlip:a,zIndex:d,flipBehavior:y,animationDuration:S,entryDelay:l,exitDelay:c,onHidden:E})};ph.displayName="Tooltip";class uv extends T.Component{constructor(){super(...arguments),this.ref=T.createRef(),this.additionalRef=T.createRef(),this.getInnerNode=t=>t&&t.childNodes&&t.childNodes.length?t.childNodes[0]:t,this.onKeyDown=t=>{var n,r,i,o,a,s,l,c,u,d;const f=t.target===this.ref.current?0:1;this.props.customChild||t.preventDefault(),t.key==="ArrowUp"?((r=(n=this.props.context)===null||n===void 0?void 0:n.keyHandler)===null||r===void 0||r.call(n,this.props.index,f,Ec.UP),t.stopPropagation()):t.key==="ArrowDown"?((o=(i=this.props.context)===null||i===void 0?void 0:i.keyHandler)===null||o===void 0||o.call(i,this.props.index,f,Ec.DOWN),t.stopPropagation()):t.key==="ArrowRight"?((s=(a=this.props.context)===null||a===void 0?void 0:a.keyHandler)===null||s===void 0||s.call(a,this.props.index,f,Ec.RIGHT),t.stopPropagation()):t.key==="ArrowLeft"?((c=(l=this.props.context)===null||l===void 0?void 0:l.keyHandler)===null||c===void 0||c.call(l,this.props.index,f,Ec.LEFT),t.stopPropagation()):(t.key==="Enter"||t.key===" ")&&(t.target.click(),this.props.enterTriggersArrowDown&&((d=(u=this.props.context)===null||u===void 0?void 0:u.keyHandler)===null||d===void 0||d.call(u,this.props.index,f,Ec.DOWN)))},this.componentRef=t=>{this.ref.current=t;const{component:n}=this.props,r=n.ref;r&&(typeof r=="function"?r(t):r.current=t)}}componentDidMount(){var t;const{context:n,index:r,isDisabled:i,role:o,customChild:a,autoFocus:s}=this.props,l=a?this.getInnerNode(this.ref.current):this.ref.current;(t=n==null?void 0:n.sendRef)===null||t===void 0||t.call(n,r,[l,a?l:this.additionalRef.current],i,o==="separator"),s&&setTimeout(()=>l.focus())}componentDidUpdate(){var t;const{context:n,index:r,isDisabled:i,role:o,customChild:a}=this.props,s=a?this.getInnerNode(this.ref.current):this.ref.current;(t=n==null?void 0:n.sendRef)===null||t===void 0||t.call(n,r,[s,a?s:this.additionalRef.current],i,o==="separator")}extendAdditionalChildRef(){const{additionalChild:t}=this.props;return T.cloneElement(t,{ref:this.additionalRef})}render(){const t=this.props,{className:n,children:r,context:i,onClick:o,component:a,role:s,isDisabled:l,isAriaDisabled:c,isPlainText:u,index:d,href:f,tooltip:h,tooltipProps:g,id:p,componentID:y,listItemClassName:b,additionalChild:x,customChild:S,enterTriggersArrowDown:w,icon:_,autoFocus:E,styleChildren:O,description:k,inoperableEvents:D}=t,P=De(t,["className","children","context","onClick","component","role","isDisabled","isAriaDisabled","isPlainText","index","href","tooltip","tooltipProps","id","componentID","listItemClassName","additionalChild","customChild","enterTriggersArrowDown","icon","autoFocus","styleChildren","description","inoperableEvents"]);let A=re(_&&ga.modifiers.icon,c&&ga.modifiers.ariaDisabled,n);a==="a"?P["aria-disabled"]=l||c:a==="button"&&(P["aria-disabled"]=l||c,P.type=P.type||"button");const M=I=>h?T.createElement(ph,Object.assign({content:h},g),I):I,j=I=>T.cloneElement(I,Object.assign(Object.assign({},O&&{className:re(I.props.className,A)}),this.props.role!=="separator"&&{role:s,ref:this.componentRef})),$=I=>{const H=I,G=k?T.createElement(T.Fragment,null,T.createElement("div",{className:ga.dropdownMenuItemMain},_&&T.createElement("span",{className:re(ga.dropdownMenuItemIcon)},_),r),T.createElement("div",{className:ga.dropdownMenuItemDescription},k)):T.createElement(T.Fragment,null,_&&T.createElement("span",{className:re(ga.dropdownMenuItemIcon)},_),r);return T.createElement(H,Object.assign({},P,l||c?sge(D):null,{href:f,ref:this.ref,className:A,id:y,role:s}),G)};return T.createElement(ege.Consumer,null,({onSelect:I,itemClass:H,disabledClass:G,plainTextClass:V})=>(this.props.role!=="separator"&&(A=re(A,l&&G,u&&V,H,k&&ga.modifiers.description)),S?T.cloneElement(S,{ref:this.ref,onKeyDown:this.onKeyDown}):T.createElement("li",Object.assign({},b&&{className:b},{role:"none",onKeyDown:this.onKeyDown,onClick:W=>{!l&&!c&&(o==null||o(W),I==null||I(W))},id:p}),M(T.isValidElement(a)?j(a):$(a)),x&&this.extendAdditionalChildRef())))}}uv.displayName="InternalDropdownItem",uv.defaultProps={className:"",component:"a",role:"none",isDisabled:!1,isPlainText:!1,tooltipProps:{},onClick:e=>{},index:-1,context:{keyHandler:()=>{},sendRef:()=>{}},enterTriggersArrowDown:!1,icon:null,styleChildren:!0,description:null,inoperableEvents:["onClick","onKeyPress"]};const dv={divider:"pf-v5-c-divider",modifiers:{hidden:"pf-m-hidden",hiddenOnSm:"pf-m-hidden-on-sm",visibleOnSm:"pf-m-visible-on-sm",hiddenOnMd:"pf-m-hidden-on-md",visibleOnMd:"pf-m-visible-on-md",hiddenOnLg:"pf-m-hidden-on-lg",visibleOnLg:"pf-m-visible-on-lg",hiddenOnXl:"pf-m-hidden-on-xl",visibleOnXl:"pf-m-visible-on-xl",hiddenOn_2xl:"pf-m-hidden-on-2xl",visibleOn_2xl:"pf-m-visible-on-2xl",vertical:"pf-m-vertical",insetNone:"pf-m-inset-none",insetXs:"pf-m-inset-xs",insetSm:"pf-m-inset-sm",insetMd:"pf-m-inset-md",insetLg:"pf-m-inset-lg",insetXl:"pf-m-inset-xl",inset_2xl:"pf-m-inset-2xl",inset_3xl:"pf-m-inset-3xl",horizontalOnSm:"pf-m-horizontal-on-sm",verticalOnSm:"pf-m-vertical-on-sm",insetNoneOnSm:"pf-m-inset-none-on-sm",insetXsOnSm:"pf-m-inset-xs-on-sm",insetSmOnSm:"pf-m-inset-sm-on-sm",insetMdOnSm:"pf-m-inset-md-on-sm",insetLgOnSm:"pf-m-inset-lg-on-sm",insetXlOnSm:"pf-m-inset-xl-on-sm",inset_2xlOnSm:"pf-m-inset-2xl-on-sm",inset_3xlOnSm:"pf-m-inset-3xl-on-sm",horizontalOnMd:"pf-m-horizontal-on-md",verticalOnMd:"pf-m-vertical-on-md",insetNoneOnMd:"pf-m-inset-none-on-md",insetXsOnMd:"pf-m-inset-xs-on-md",insetSmOnMd:"pf-m-inset-sm-on-md",insetMdOnMd:"pf-m-inset-md-on-md",insetLgOnMd:"pf-m-inset-lg-on-md",insetXlOnMd:"pf-m-inset-xl-on-md",inset_2xlOnMd:"pf-m-inset-2xl-on-md",inset_3xlOnMd:"pf-m-inset-3xl-on-md",horizontalOnLg:"pf-m-horizontal-on-lg",verticalOnLg:"pf-m-vertical-on-lg",insetNoneOnLg:"pf-m-inset-none-on-lg",insetXsOnLg:"pf-m-inset-xs-on-lg",insetSmOnLg:"pf-m-inset-sm-on-lg",insetMdOnLg:"pf-m-inset-md-on-lg",insetLgOnLg:"pf-m-inset-lg-on-lg",insetXlOnLg:"pf-m-inset-xl-on-lg",inset_2xlOnLg:"pf-m-inset-2xl-on-lg",inset_3xlOnLg:"pf-m-inset-3xl-on-lg",horizontalOnXl:"pf-m-horizontal-on-xl",verticalOnXl:"pf-m-vertical-on-xl",insetNoneOnXl:"pf-m-inset-none-on-xl",insetXsOnXl:"pf-m-inset-xs-on-xl",insetSmOnXl:"pf-m-inset-sm-on-xl",insetMdOnXl:"pf-m-inset-md-on-xl",insetLgOnXl:"pf-m-inset-lg-on-xl",insetXlOnXl:"pf-m-inset-xl-on-xl",inset_2xlOnXl:"pf-m-inset-2xl-on-xl",inset_3xlOnXl:"pf-m-inset-3xl-on-xl",horizontalOn_2xl:"pf-m-horizontal-on-2xl",verticalOn_2xl:"pf-m-vertical-on-2xl",insetNoneOn_2xl:"pf-m-inset-none-on-2xl",insetXsOn_2xl:"pf-m-inset-xs-on-2xl",insetSmOn_2xl:"pf-m-inset-sm-on-2xl",insetMdOn_2xl:"pf-m-inset-md-on-2xl",insetLgOn_2xl:"pf-m-inset-lg-on-2xl",insetXlOn_2xl:"pf-m-inset-xl-on-2xl",inset_2xlOn_2xl:"pf-m-inset-2xl-on-2xl",inset_3xlOn_2xl:"pf-m-inset-3xl-on-2xl"}};var yh;(function(e){e.hr="hr",e.li="li",e.div="div"})(yh||(yh={}));const yr=e=>{var{className:t,component:n=yh.hr,inset:r,orientation:i}=e,o=De(e,["className","component","inset","orientation"]);const a=n;return T.createElement(a,Object.assign({className:re(dv.divider,hA(r,dv),hA(i,dv),t)},n!=="hr"&&{role:"separator"},o))};yr.displayName="Divider";const fv=e=>{var{className:t="",ref:n,ouiaId:r,ouiaSafe:i}=e,o=De(e,["className","ref","ouiaId","ouiaSafe"]);const a=yA(fv.displayName,r,i);return T.createElement(tge.Consumer,null,s=>T.createElement(uv,Object.assign({},o,{context:s,component:T.createElement(yr,{component:yh.div}),className:t,role:"separator"},a)))};fv.displayName="DropdownSeparator";const WA=Eo({name:"CaretDownIcon",height:512,width:320,svgPath:"M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z",yOffset:0,xOffset:0}),Fc={badge:"pf-v5-c-badge",modifiers:{read:"pf-m-read",unread:"pf-m-unread"},themeDark:"pf-v5-theme-dark"},zA=e=>{var{isRead:t=!1,className:n="",children:r="",screenReaderText:i}=e,o=De(e,["isRead","className","children","screenReaderText"]);return T.createElement("span",Object.assign({},o,{className:re(Fc.badge,t?Fc.modifiers.read:Fc.modifiers.unread,n)}),r,i&&T.createElement("span",{className:"pf-v5-screen-reader"},i))};zA.displayName="Badge";const vh={modifiers:{inline:"pf-m-inline",sm:"pf-m-sm",md:"pf-m-md",lg:"pf-m-lg",xl:"pf-m-xl"},spinner:"pf-v5-c-spinner",spinnerPath:"pf-v5-c-spinner__path"},hpe={name:"--pf-v5-c-spinner--diameter",value:"3.375rem",var:"var(--pf-v5-c-spinner--diameter)"};var hv;(function(e){e.sm="sm",e.md="md",e.lg="lg",e.xl="xl"})(hv||(hv={}));const mv=e=>{var{className:t="",size:n="xl","aria-valuetext":r="Loading...",diameter:i,isInline:o=!1,"aria-label":a,"aria-labelledBy":s}=e,l=De(e,["className","size","aria-valuetext","diameter","isInline","aria-label","aria-labelledBy"]);return T.createElement("svg",Object.assign({className:re(vh.spinner,o?vh.modifiers.inline:vh.modifiers[n],t),role:"progressbar","aria-valuetext":r,viewBox:"0 0 100 100"},i&&{style:{[hpe.name]:i}},a&&{"aria-label":a},s&&{"aria-labelledBy":s},!a&&!s&&{"aria-label":"Contents"},l),T.createElement("circle",{className:vh.spinnerPath,cx:"50",cy:"50",r:"45",fill:"none"}))};mv.displayName="Spinner";const VA=e=>{var t=De(e,["children"]);return T.createElement(fv,Object.assign({},t))};VA.displayName="ApplicationLauncherSeparator";const mpe=Eo({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}),gpe=(e,t,n,r)=>{if(t){const i=[];return e.forEach(o=>{if(n.length>0)return o.props.children&&o.props.children.filter(a=>n.includes(a.props.id)).map(a=>i.push(T.cloneElement(a,{isFavorite:!0,id:`favorite-${a.props.id}`})))}),i}return e.filter(i=>n.includes(i.props.id)).map(i=>T.cloneElement(i,{isFavorite:!0,enterTriggersArrowDown:r}))},ppe=(e,t,n)=>t?e.map(r=>T.cloneElement(r,{children:T.Children.map(r.props.children,i=>i.type===VA||i.type===yr?i:T.cloneElement(i,{isFavorite:n.some(o=>o===i.props.id||`favorite-${o}`===i.props.id)}))})):e.map(r=>T.cloneElement(r,{isFavorite:n.some(i=>i===r.props.id)})),Lt={badge:"pf-v5-c-badge",button:"pf-v5-c-button",buttonCount:"pf-v5-c-button__count",buttonIcon:"pf-v5-c-button__icon",buttonProgress:"pf-v5-c-button__progress",modifiers:{active:"pf-m-active",block:"pf-m-block",small:"pf-m-small",primary:"pf-m-primary",displayLg:"pf-m-display-lg",secondary:"pf-m-secondary",tertiary:"pf-m-tertiary",link:"pf-m-link",unread:"pf-m-unread",inline:"pf-m-inline",danger:"pf-m-danger",warning:"pf-m-warning",control:"pf-m-control",expanded:"pf-m-expanded",plain:"pf-m-plain",noPadding:"pf-m-no-padding",disabled:"pf-m-disabled",ariaDisabled:"pf-m-aria-disabled",progress:"pf-m-progress",inProgress:"pf-m-in-progress",start:"pf-m-start",end:"pf-m-end"},spinner:"pf-v5-c-spinner",themeDark:"pf-v5-theme-dark"};var ai;(function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary",e.danger="danger",e.warning="warning",e.link="link",e.plain="plain",e.control="control"})(ai||(ai={}));var gv;(function(e){e.button="button",e.submit="submit",e.reset="reset"})(gv||(gv={}));var Nc;(function(e){e.default="default",e.sm="sm",e.lg="lg"})(Nc||(Nc={}));const ype=e=>{var{children:t=null,className:n="",component:r="button",isActive:i=!1,isBlock:o=!1,isDisabled:a=!1,isAriaDisabled:s=!1,isLoading:l=null,isDanger:c=!1,spinnerAriaValueText:u,spinnerAriaLabelledBy:d,spinnerAriaLabel:f,size:h=Nc.default,inoperableEvents:g=["onClick","onKeyPress"],isInline:p=!1,type:y=gv.button,variant:b=ai.primary,iconPosition:x="start","aria-label":S=null,icon:w=null,ouiaId:_,ouiaSafe:E=!0,tabIndex:O=null,innerRef:k,countOptions:D}=e,P=De(e,["children","className","component","isActive","isBlock","isDisabled","isAriaDisabled","isLoading","isDanger","spinnerAriaValueText","spinnerAriaLabelledBy","spinnerAriaLabel","size","inoperableEvents","isInline","type","variant","iconPosition","aria-label","icon","ouiaId","ouiaSafe","tabIndex","innerRef","countOptions"]);const A=yA(bh.displayName,_,E,b),M=r,j=M==="button",$=p&&M==="span",I=g.reduce((G,V)=>Object.assign(Object.assign({},G),{[V]:W=>{W.preventDefault()}}),{}),H=()=>{if(a)return j?null:-1;if(s)return null;if($)return 0};return T.createElement(M,Object.assign({},P,s?I:null,{"aria-disabled":a||s,"aria-label":S,className:re(Lt.button,Lt.modifiers[b],o&&Lt.modifiers.block,a&&Lt.modifiers.disabled,s&&Lt.modifiers.ariaDisabled,i&&Lt.modifiers.active,p&&b===ai.link&&Lt.modifiers.inline,c&&(b===ai.secondary||b===ai.link)&&Lt.modifiers.danger,l!==null&&b!==ai.plain&&Lt.modifiers.progress,l&&Lt.modifiers.inProgress,h===Nc.sm&&Lt.modifiers.small,h===Nc.lg&&Lt.modifiers.displayLg,n),disabled:j?a:null,tabIndex:O!==null?O:H(),type:j||$?y:null,role:$?"button":null,ref:k},A),l&&T.createElement("span",{className:re(Lt.buttonProgress)},T.createElement(mv,{size:hv.md,isInline:p,"aria-valuetext":u,"aria-label":f,"aria-labelledby":d})),b===ai.plain&&t===null&&w?w:null,b!==ai.plain&&w&&(x==="start"||x==="left")&&T.createElement("span",{className:re(Lt.buttonIcon,Lt.modifiers.start)},w),t,b!==ai.plain&&w&&(x==="end"||x==="right")&&T.createElement("span",{className:re(Lt.buttonIcon,Lt.modifiers.end)},w),D&&T.createElement("span",{className:re(Lt.buttonCount,D.className)},T.createElement(zA,{isRead:D.isRead},D.count)))},bh=T.forwardRef((e,t)=>T.createElement(ype,Object.assign({innerRef:t},e)));bh.displayName="Button";const vpe=Eo({name:"TimesIcon",height:512,width:352,svgPath:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z",yOffset:0,xOffset:0}),bpe={dirRtl:"pf-v5-m-dir-rtl",form:"pf-v5-c-form",formActions:"pf-v5-c-form__actions",formFieldGroup:"pf-v5-c-form__field-group",formFieldGroupBody:"pf-v5-c-form__field-group-body",formFieldGroupHeader:"pf-v5-c-form__field-group-header",formFieldGroupHeaderActions:"pf-v5-c-form__field-group-header-actions",formFieldGroupHeaderDescription:"pf-v5-c-form__field-group-header-description",formFieldGroupHeaderMain:"pf-v5-c-form__field-group-header-main",formFieldGroupHeaderTitle:"pf-v5-c-form__field-group-header-title",formFieldGroupHeaderTitleText:"pf-v5-c-form__field-group-header-title-text",formFieldGroupToggle:"pf-v5-c-form__field-group-toggle",formFieldGroupToggleButton:"pf-v5-c-form__field-group-toggle-button",formFieldGroupToggleIcon:"pf-v5-c-form__field-group-toggle-icon",formFieldset:"pf-v5-c-form__fieldset",formGroup:"pf-v5-c-form__group",formGroupControl:"pf-v5-c-form__group-control",formGroupLabel:"pf-v5-c-form__group-label",formGroupLabelHelp:"pf-v5-c-form__group-label-help",formGroupLabelInfo:"pf-v5-c-form__group-label-info",formGroupLabelMain:"pf-v5-c-form__group-label-main",formHelperText:"pf-v5-c-form__helper-text",formHelperTextIcon:"pf-v5-c-form__helper-text-icon",formLabel:"pf-v5-c-form__label",formLabelRequired:"pf-v5-c-form__label-required",formLabelText:"pf-v5-c-form__label-text",formSection:"pf-v5-c-form__section",formSectionTitle:"pf-v5-c-form__section-title",modifiers:{horizontal:"pf-m-horizontal",alignRight:"pf-m-align-right",noPaddingTop:"pf-m-no-padding-top",info:"pf-m-info",horizontalOnXs:"pf-m-horizontal-on-xs",horizontalOnSm:"pf-m-horizontal-on-sm",horizontalOnMd:"pf-m-horizontal-on-md",horizontalOnLg:"pf-m-horizontal-on-lg",horizontalOnXl:"pf-m-horizontal-on-xl",horizontalOn_2xl:"pf-m-horizontal-on-2xl",limitWidth:"pf-m-limit-width",action:"pf-m-action",disabled:"pf-m-disabled",inline:"pf-m-inline",stack:"pf-m-stack",error:"pf-m-error",success:"pf-m-success",warning:"pf-m-warning",inactive:"pf-m-inactive",hidden:"pf-m-hidden",expanded:"pf-m-expanded"},themeDark:"pf-v5-theme-dark"},Nr={formControl:"pf-v5-c-form-control",formControlIcon:"pf-v5-c-form-control__icon",formControlToggleIcon:"pf-v5-c-form-control__toggle-icon",formControlUtilities:"pf-v5-c-form-control__utilities",modifiers:{readonly:"pf-m-readonly",success:"pf-m-success",warning:"pf-m-warning",error:"pf-m-error",plain:"pf-m-plain",expanded:"pf-m-expanded",disabled:"pf-m-disabled",icon:"pf-m-icon",placeholder:"pf-m-placeholder",resizeVertical:"pf-m-resize-vertical",resizeHorizontal:"pf-m-resize-horizontal",resizeBoth:"pf-m-resize-both",status:"pf-m-status"},themeDark:"pf-v5-theme-dark"},UA=Eo({name:"CheckCircleIcon",height:512,width:512,svgPath:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z",yOffset:0,xOffset:0}),HA=Eo({name:"ExclamationCircleIcon",height:512,width:512,svgPath:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z",yOffset:0,xOffset:0}),GA=Eo({name:"ExclamationTriangleIcon",height:512,width:576,svgPath:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z",yOffset:0,xOffset:0}),xpe={success:UA,error:HA,warning:GA},qA=e=>{var{status:t,customIcon:n,className:r}=e,i=De(e,["status","customIcon","className"]);const o=t&&xpe[t];return T.createElement("span",Object.assign({className:re(Nr.formControlIcon,t&&Nr.modifiers.status,r)},i),n||T.createElement(o,null))};var pv;(function(e){e.text="text",e.date="date",e.datetimeLocal="datetime-local",e.email="email",e.month="month",e.number="number",e.password="password",e.search="search",e.tel="tel",e.time="time",e.url="url"})(pv||(pv={}));var YA;(function(e){e.default="default",e.plain="plain"})(YA||(YA={}));class Rc extends T.Component{constructor(t){super(t),this.inputRef=T.createRef(),this.observer=()=>{},this.handleChange=n=>{this.props.onChange&&this.props.onChange(n,n.currentTarget.value)},this.handleResize=()=>{const n=this.props.innerRef||this.inputRef;n&&n.current&&age(n.current,String(this.props.value))},this.restoreText=()=>{const n=this.props.innerRef||this.inputRef;n.current.value=String(this.props.value),n.current.scrollLeft=n.current.scrollWidth},this.onFocus=n=>{const{isLeftTruncated:r,isStartTruncated:i,onFocus:o}=this.props;(r||i)&&this.restoreText(),o&&o(n)},this.onBlur=n=>{const{isLeftTruncated:r,isStartTruncated:i,onBlur:o}=this.props;(r||i)&&this.handleResize(),o&&o(n)},this.sanitizeInputValue=n=>typeof n=="string"?n.replace(/\n/g," "):n,!t.id&&!t["aria-label"]&&!t["aria-labelledby"]&&console.error("Text input:","Text input requires either an id or aria-label to be specified"),this.state={ouiaStateId:dh(Rc.displayName)}}componentDidMount(){if(this.props.isLeftTruncated||this.props.isStartTruncated){const t=this.props.innerRef||this.inputRef;this.observer=dpe(t.current,this.handleResize),this.handleResize()}}componentWillUnmount(){(this.props.isLeftTruncated||this.props.isStartTruncated)&&this.observer()}render(){const t=this.props,{innerRef:n,className:r,type:i,value:o,placeholder:a,validated:s,onChange:l,onFocus:c,onBlur:u,isLeftTruncated:d,isStartTruncated:f,isExpanded:h,expandedProps:g,readOnly:p,readOnlyVariant:y,isRequired:b,isDisabled:x,customIcon:S,ouiaId:w,ouiaSafe:_}=t,E=De(t,["innerRef","className","type","value","placeholder","validated","onChange","onFocus","onBlur","isLeftTruncated","isStartTruncated","isExpanded","expandedProps","readOnly","readOnlyVariant","isRequired","isDisabled","customIcon","ouiaId","ouiaSafe"]),O=["success","error","warning"].includes(s),k=g?{"aria-expanded":g==null?void 0:g.isExpanded,"aria-controls":g==null?void 0:g.ariaControls,role:"combobox"}:{};return T.createElement("span",{className:re(Nr.formControl,y&&Nr.modifiers.readonly,y==="plain"&&Nr.modifiers.plain,x&&Nr.modifiers.disabled,(h||(g==null?void 0:g.isExpanded))&&Nr.modifiers.expanded,S&&Nr.modifiers.icon,O&&Nr.modifiers[s],r)},T.createElement("input",Object.assign({},E,{onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.handleChange,type:i,value:this.sanitizeInputValue(o),"aria-invalid":E["aria-invalid"]?E["aria-invalid"]:s===Tn.error},k,{required:b,disabled:x,readOnly:!!y||p,ref:n||this.inputRef,placeholder:a},kc(xh.displayName,w!==void 0?w:this.state.ouiaStateId,_))),(S||O)&&T.createElement("span",{className:re(Nr.formControlUtilities)},S&&T.createElement(qA,{customIcon:S}),O&&T.createElement(qA,{status:s})))}}Rc.displayName="TextInputBase",Rc.defaultProps={"aria-label":null,isRequired:!1,validated:"default",isDisabled:!1,isExpanded:!1,type:pv.text,isLeftTruncated:!1,isStartTruncated:!1,onChange:()=>{},ouiaSafe:!0};const xh=T.forwardRef((e,t)=>T.createElement(Rc,Object.assign({},e,{innerRef:t})));xh.displayName="TextInput";const KA=Eo({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}),se={check:"pf-v5-c-check",checkLabel:"pf-v5-c-check__label",chipGroup:"pf-v5-c-chip-group",divider:"pf-v5-c-divider",formControl:"pf-v5-c-form-control",modifiers:{invalid:"pf-m-invalid",success:"pf-m-success",warning:"pf-m-warning",disabled:"pf-m-disabled",active:"pf-m-active",expanded:"pf-m-expanded",plain:"pf-m-plain",typeahead:"pf-m-typeahead",placeholder:"pf-m-placeholder",top:"pf-m-top",alignRight:"pf-m-align-right",static:"pf-m-static",favorite:"pf-m-favorite",favoriteAction:"pf-m-favorite-action",focus:"pf-m-focus",link:"pf-m-link",action:"pf-m-action",selected:"pf-m-selected",description:"pf-m-description",load:"pf-m-load",loading:"pf-m-loading"},select:"pf-v5-c-select",selectListItem:"pf-v5-c-select__list-item",selectMenu:"pf-v5-c-select__menu",selectMenuFieldset:"pf-v5-c-select__menu-fieldset",selectMenuFooter:"pf-v5-c-select__menu-footer",selectMenuGroup:"pf-v5-c-select__menu-group",selectMenuGroupTitle:"pf-v5-c-select__menu-group-title",selectMenuItem:"pf-v5-c-select__menu-item",selectMenuItemActionIcon:"pf-v5-c-select__menu-item-action-icon",selectMenuItemCount:"pf-v5-c-select__menu-item-count",selectMenuItemDescription:"pf-v5-c-select__menu-item-description",selectMenuItemIcon:"pf-v5-c-select__menu-item-icon",selectMenuItemMain:"pf-v5-c-select__menu-item-main",selectMenuItemMatch:"pf-v5-c-select__menu-item--match",selectMenuItemRow:"pf-v5-c-select__menu-item-row",selectMenuItemText:"pf-v5-c-select__menu-item-text",selectMenuSearch:"pf-v5-c-select__menu-search",selectMenuWrapper:"pf-v5-c-select__menu-wrapper",selectToggle:"pf-v5-c-select__toggle",selectToggleArrow:"pf-v5-c-select__toggle-arrow",selectToggleBadge:"pf-v5-c-select__toggle-badge",selectToggleButton:"pf-v5-c-select__toggle-button",selectToggleClear:"pf-v5-c-select__toggle-clear",selectToggleIcon:"pf-v5-c-select__toggle-icon",selectToggleStatusIcon:"pf-v5-c-select__toggle-status-icon",selectToggleText:"pf-v5-c-select__toggle-text",selectToggleTypeahead:"pf-v5-c-select__toggle-typeahead",selectToggleWrapper:"pf-v5-c-select__toggle-wrapper",themeDark:"pf-v5-theme-dark"},XA=Eo({name:"TimesCircleIcon",height:512,width:512,svgPath:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z",yOffset:0,xOffset:0}),_h={check:"pf-v5-c-check",checkBody:"pf-v5-c-check__body",checkDescription:"pf-v5-c-check__description",checkInput:"pf-v5-c-check__input",checkLabel:"pf-v5-c-check__label",checkLabelRequired:"pf-v5-c-check__label-required",modifiers:{standalone:"pf-m-standalone",disabled:"pf-m-disabled"}},yv=T.createContext(null);yv.Provider;const vv=yv.Consumer;var ze;(function(e){e.single="single",e.checkbox="checkbox",e.typeahead="typeahead",e.typeaheadMulti="typeaheadmulti"})(ze||(ze={}));var Bc;(function(e){e.right="right",e.left="left"})(Bc||(Bc={}));var Wc;(function(e){e.up="up",e.down="down"})(Wc||(Wc={}));const zc="input, button, select, textarea, a[href]";class si extends T.Component{constructor(){super(...arguments),this.ref=T.createRef(),this.liRef=T.createRef(),this.favoriteRef=T.createRef(),this.onKeyDown=(t,n,r,i)=>{const{index:o,keyHandler:a,isLastOptionBeforeFooter:s}=this.props;let l=!1;s!==void 0&&(l=s(o)),t.key===Ye.Tab&&(i&&!l?(t.shiftKey?a(o,n,"up"):a(o,n,"down"),t.stopPropagation()):t.shiftKey?a(o,n,"up"):a(o,n,"tab")),t.preventDefault(),t.key===Ye.ArrowUp?a(o,n,"up"):t.key===Ye.ArrowDown?a(o,n,"down"):t.key===Ye.ArrowLeft?a(o,n,"left"):t.key===Ye.ArrowRight?a(o,n,"right"):t.key===Ye.Enter&&(r!==void 0?r():this.ref.current.click())}}componentDidMount(){this.props.sendRef(this.props.isDisabled?null:this.ref.current,this.props.isDisabled?null:this.favoriteRef.current,this.props.isDisabled?null:this.liRef.current,this.props.index)}componentDidUpdate(){this.props.sendRef(this.props.isDisabled?null:this.ref.current,this.props.isDisabled?null:this.favoriteRef.current,this.props.isDisabled?null:this.liRef.current,this.props.index)}render(){const t=this.props,{children:n,className:r,id:i,description:o,itemCount:a,value:s,onClick:l,isDisabled:c,isPlaceholder:u,isNoResultsOption:d,isSelected:f,isChecked:h,isFocused:g,sendRef:p,keyHandler:y,index:b,component:x,inputId:S,isFavorite:w,ariaIsFavoriteLabel:_="starred",ariaIsNotFavoriteLabel:E="not starred",isLoad:O,isLoading:k,setViewMoreNextIndex:D,isLastOptionBeforeFooter:P,isGrouped:A=!1}=t,M=De(t,["children","className","id","description","itemCount","value","onClick","isDisabled","isPlaceholder","isNoResultsOption","isSelected","isChecked","isFocused","sendRef","keyHandler","index","component","inputId","isFavorite","ariaIsFavoriteLabel","ariaIsNotFavoriteLabel","isLoad","isLoading","setViewMoreNextIndex","isLastOptionBeforeFooter","isGrouped"]),j=x;!i&&w!==null&&console.error("Please provide an id to use the favorites feature.");const $=i||uA("select-option"),I=W=>T.createElement("button",{className:re(se.selectMenuItem,se.modifiers.action,se.modifiers.favoriteAction),"aria-label":w?_:E,onClick:()=>{W($.replace("favorite-",""),w)},onKeyDown:N=>{this.onKeyDown(N,1,()=>W($.replace("favorite-",""),w))},ref:this.favoriteRef},T.createElement("span",{className:re(se.selectMenuItemActionIcon)},T.createElement(mpe,null))),H=a?T.createElement("span",{className:re(se.selectMenuItemRow)},T.createElement("span",{className:re(se.selectMenuItemText)},n||s&&s.toString&&s.toString()),T.createElement("span",{className:re(se.selectMenuItemCount)},a)):n||s.toString(),G=W=>{D(),l(W)},V=(W,N,z,J,ee,X)=>{if(z!==ze.checkbox&&k&&A)return T.createElement("div",{role:"presentation",className:re(se.selectListItem,k&&se.modifiers.loading,r)},n);if(z!==ze.checkbox&&O&&A)return T.createElement("div",null,T.createElement("button",Object.assign({},M,{role:"presentation",className:re(se.selectMenuItem,se.modifiers.load,r),onClick:Q=>{G(Q),Q.stopPropagation()},ref:this.ref,type:"button"}),n||s.toString()));if(z!==ze.checkbox)return T.createElement("li",{id:$,role:"presentation",className:re(k&&se.selectListItem,!k&&se.selectMenuWrapper,w&&se.modifiers.favorite,g&&se.modifiers.focus,k&&se.modifiers.loading),ref:this.liRef},k&&n,O&&!A&&T.createElement("button",Object.assign({},M,{className:re(se.selectMenuItem,se.modifiers.load,r),onClick:Q=>{G(Q),Q.stopPropagation()},ref:this.ref,onKeyDown:Q=>{this.onKeyDown(Q,0)},type:"button"}),H),!k&&!O&&T.createElement(T.Fragment,null,T.createElement(j,Object.assign({},M,{className:re(se.selectMenuItem,O&&se.modifiers.load,f&&se.modifiers.selected,c&&se.modifiers.disabled,o&&se.modifiers.description,w!==null&&se.modifiers.link,r),onClick:Q=>{c||(l(Q),W(Q,s,u),X&&N())},role:"option","aria-selected":f||null,ref:this.ref,onKeyDown:Q=>{this.onKeyDown(Q,0)},type:"button"}),o&&T.createElement(T.Fragment,null,T.createElement("span",{className:re(se.selectMenuItemMain)},H,f&&T.createElement("span",{className:re(se.selectMenuItemIcon)},T.createElement(KA,{"aria-hidden":!0}))),T.createElement("span",{className:re(se.selectMenuItemDescription)},o)),!o&&T.createElement(T.Fragment,null,H,f&&T.createElement("span",{className:re(se.selectMenuItemIcon)},T.createElement(KA,{"aria-hidden":!0})))),w!==null&&i&&I(ee)));if(z===ze.checkbox&&O)return T.createElement("button",{className:re(se.selectMenuItem,se.modifiers.load,g&&se.modifiers.focus,r),onKeyDown:Q=>{this.onKeyDown(Q,0,void 0,!0)},onClick:Q=>{G(Q),Q.stopPropagation()},ref:this.ref},n||s&&s.toString&&s.toString());if(z===ze.checkbox&&k)return T.createElement("div",{className:re(se.selectListItem,k&&se.modifiers.loading,r)},n);if(z===ze.checkbox&&!d&&!k&&!O)return T.createElement("label",Object.assign({},M,{className:re(_h.check,se.selectMenuItem,c&&se.modifiers.disabled,o&&se.modifiers.description,r),onKeyDown:Q=>{this.onKeyDown(Q,0,void 0,!0)}}),T.createElement("input",{id:S||`${J}-${s.toString()}`,className:re(_h.checkInput),type:"checkbox",onChange:Q=>{c||(l(Q),W(Q,s))},ref:this.ref,checked:h||!1,disabled:c}),T.createElement("span",{className:re(_h.checkLabel,c&&se.modifiers.disabled)},H),o&&T.createElement("div",{className:re(_h.checkDescription)},o));if(z===ze.checkbox&&d&&!k&&!O)return T.createElement("div",null,T.createElement(j,Object.assign({},M,{className:re(se.selectMenuItem,f&&se.modifiers.selected,c&&se.modifiers.disabled,r),role:"option","aria-selected":f||null,ref:this.ref,onKeyDown:Q=>{this.onKeyDown(Q,0,void 0,!0)},type:"button"}),H))};return T.createElement(vv,null,({onSelect:W,onClose:N,variant:z,inputIdPrefix:J,onFavorite:ee,shouldResetOnSelect:X})=>T.createElement(T.Fragment,null,V(W,N,z,J,ee,X)))}}si.displayName="SelectOption",si.defaultProps={className:"",value:"",index:0,isDisabled:!1,isPlaceholder:!1,isSelected:!1,isChecked:!1,isNoResultsOption:!1,component:"button",onClick:()=>{},sendRef:()=>{},keyHandler:()=>{},inputId:"",isFavorite:null,isLoad:!1,isLoading:!1,setViewMoreNextIndex:()=>{},isLastOptionBeforeFooter:()=>!1};const pa=e=>{var{children:t=[],className:n="",label:r="",titleId:i=""}=e,o=De(e,["children","className","label","titleId"]);return T.createElement(vv,null,({variant:a})=>T.createElement("div",Object.assign({},o,{className:re(se.selectMenuGroup,n)}),T.createElement("div",{className:re(se.selectMenuGroupTitle),id:i,"aria-hidden":!0},r),a===ze.checkbox?t:T.createElement("ul",{role:"listbox"},t)))};pa.displayName="SelectGroup";class bv extends T.Component{extendChildren(t){const{children:n,hasInlineFilter:r,isGrouped:i}=this.props,o=n;let a=r?1:0;return i?T.Children.map(o,s=>s.type===pa?T.cloneElement(s,{titleId:s.props.label&&s.props.label.replace(/\W/g,"-"),children:T.Children.map(s.props.children,l=>this.cloneOption(l,a++,t))}):this.cloneOption(s,a++,t)):T.Children.map(o,s=>this.cloneOption(s,a++,t))}cloneOption(t,n,r){const{selected:i,sendRef:o,keyHandler:a}=this.props,s=this.checkForValue(t.props.value,i);return t.type===yr?t:T.cloneElement(t,{inputId:`${r}-${n}`,isSelected:s,sendRef:o,keyHandler:a,index:n})}checkForValue(t,n){if(!n||!t)return!1;const r=typeof t!="string"&&t.toString&&t.compareTo;return Array.isArray(n)?r?n.some(i=>i.compareTo(t)):n.includes(t):r?n.compareTo(t):n===t}extendCheckboxChildren(t){const{isGrouped:n,checked:r,sendRef:i,keyHandler:o,hasInlineFilter:a,isLastOptionBeforeFooter:s}=this.props;let l=a?1:0;return n?T.Children.map(t,c=>c.type===yr?c:c.type===si?T.cloneElement(c,{isChecked:this.checkForValue(c.props.value,r),sendRef:i,keyHandler:o,index:l++,isLastOptionBeforeFooter:s}):T.cloneElement(c,{titleId:c.props.label&&c.props.label.replace(/\W/g,"-"),children:c.props.children?T.createElement("fieldset",{"aria-labelledby":c.props.label&&c.props.label.replace(/\W/g,"-"),className:re(se.selectMenuFieldset)},T.Children.map(c.props.children,u=>u.type===yr?u:T.cloneElement(u,{isChecked:this.checkForValue(u.props.value,r),sendRef:i,keyHandler:o,index:l++,isLastOptionBeforeFooter:s}))):null})):T.Children.map(t,c=>c.type===yr?c:T.cloneElement(c,{isChecked:this.checkForValue(c.props.value,r),sendRef:i,keyHandler:o,index:l++,isLastOptionBeforeFooter:s}))}renderSelectMenu({variant:t,inputIdPrefix:n}){const r=this.props,{children:i,isCustomContent:o,className:a,isExpanded:s,openedOnEnter:l,selected:c,checked:u,isGrouped:d,position:f,sendRef:h,keyHandler:g,maxHeight:p,noResultsFoundText:y,createText:b,"aria-label":x,"aria-labelledby":S,hasInlineFilter:w,innerRef:_,footer:E,footerRef:O,isLastOptionBeforeFooter:k}=r,D=De(r,["children","isCustomContent","className","isExpanded","openedOnEnter","selected","checked","isGrouped","position","sendRef","keyHandler","maxHeight","noResultsFoundText","createText","aria-label","aria-labelledby","hasInlineFilter","innerRef","footer","footerRef","isLastOptionBeforeFooter"]);let P="div";const A=Object.assign({ref:_,className:re(E?`${se.selectMenu}-list`:se.selectMenu,f===Bc.right&&se.modifiers.alignRight,a)},p&&{style:{maxHeight:p,overflow:"auto"}}),M=()=>t===ze.checkbox?this.extendCheckboxChildren(i):this.extendChildren(n);return o?A.children=i:w?T.Children.count(i)===0?A.children=T.createElement("fieldset",{className:re(se.selectMenuFieldset)}):A.children=T.createElement("fieldset",{"aria-label":x,"aria-labelledby":!x&&S||null,className:re(bpe.formFieldset)},i.shift(),M()):(A.children=M(),d||(P="ul",A.role="listbox",A["aria-label"]=x,A["aria-labelledby"]=!x&&S||null)),T.createElement(T.Fragment,null,T.createElement(P,Object.assign({},A,D)),E&&T.createElement("div",{className:re(se.selectMenuFooter),ref:O},E))}render(){return T.createElement(vv,null,t=>this.renderSelectMenu(t))}}bv.displayName="SelectMenu",bv.defaultProps={className:"",isExpanded:!1,isGrouped:!1,openedOnEnter:!1,selected:"",maxHeight:"",position:Bc.left,sendRef:()=>{},keyHandler:()=>{},isCustomContent:!1,hasInlineFilter:!1,isLastOptionBeforeFooter:()=>{}};const _pe=T.forwardRef((e,t)=>T.createElement(bv,Object.assign({innerRef:t},e),e.children));class xv extends T.Component{constructor(t){super(t),this.onDocClick=i=>{const{parentRef:o,menuRef:a,footerRef:s,isOpen:l,onToggle:c,onClose:u}=this.props,d=o&&o.current&&o.current.contains(i.target),f=a&&a.current&&a.current.contains&&a.current.contains(i.target),h=s&&s.current&&s.current.contains&&s.current.contains(i.target);l&&!(d||f||h)&&(c(i,!1),u())},this.handleGlobalKeys=i=>{const{parentRef:o,menuRef:a,hasFooter:s,footerRef:l,isOpen:c,variant:u,onToggle:d,onClose:f,moveFocusToLastMenuItem:h}=this.props,g=o&&o.current&&o.current.contains(i.target),p=a&&a.current&&a.current.contains&&a.current.contains(i.target);if(c&&i.key===Ye.Tab&&(u===ze.typeahead||u===ze.typeaheadMulti)){this.props.handleTypeaheadKeys("tab",i.shiftKey),i.preventDefault();return}if(c&&i.key===Ye.Tab&&s){const y=Oc(l,zc);if(y.length<=0){d(i,!1),f(),this.toggle.current.focus();return}else{const b=y.findIndex(x=>x===document.activeElement);if(b===-1)if(i.shiftKey)u!=="checkbox"&&(d(i,!1),f(),this.toggle.current.focus());else{y[0].focus();return}if(i.shiftKey){b===0&&(h(),i.preventDefault());return}b+1<y.length?y[b+1].focus():(d(i,!1),f(),this.toggle.current.focus()),i.preventDefault();return}}c&&(i.key===Ye.Escape||i.key===Ye.Tab)&&(g||p)&&(d(i,!1),f(),this.toggle.current.focus())},this.onKeyDown=i=>{const{isOpen:o,onToggle:a,variant:s,onClose:l,onEnter:c,handleTypeaheadKeys:u}=this.props;(s===ze.typeahead||s===ze.typeaheadMulti)&&(i.key===Ye.ArrowDown||i.key===Ye.ArrowUp?(u(i.key===Ye.ArrowDown&&"down"||i.key===Ye.ArrowUp&&"up"),i.preventDefault()):i.key===Ye.Enter&&(o?u("enter"):a(i,!o))),!(s===ze.typeahead||s===ze.typeaheadMulti||i.key===Ye.Tab&&!o||i.key!==Ye.Enter&&i.key!==Ye.Space)&&(i.preventDefault(),(i.key===Ye.Tab||i.key===Ye.Enter||i.key===Ye.Space)&&o?(a(i,!o),l(),this.toggle.current.focus()):(i.key===Ye.Enter||i.key===Ye.Space)&&!o&&(a(i,!o),c()))};const{variant:n}=t,r=n===ze.typeahead||n===ze.typeaheadMulti;this.props.innerRef?this.toggle=this.props.innerRef:this.toggle=T.createRef()}componentDidMount(){document.addEventListener("click",this.onDocClick,{capture:!0}),document.addEventListener("touchstart",this.onDocClick),document.addEventListener("keydown",this.handleGlobalKeys)}componentWillUnmount(){document.removeEventListener("click",this.onDocClick,{capture:!0}),document.removeEventListener("touchstart",this.onDocClick),document.removeEventListener("keydown",this.handleGlobalKeys)}render(){const t=this.props,{className:n,children:r,isOpen:i,isActive:o,isPlain:a,isDisabled:s,hasPlaceholderStyle:l,variant:c,onToggle:u,onEnter:d,onClose:f,onBlur:h,onClickTypeaheadToggleButton:g,handleTypeaheadKeys:p,moveFocusToLastMenuItem:y,parentRef:b,menuRef:x,id:S,type:w,hasClearButton:_,"aria-labelledby":E,"aria-label":O,hasFooter:k,footerRef:D,toggleIndicator:P,innerRef:A}=t,M=De(t,["className","children","isOpen","isActive","isPlain","isDisabled","hasPlaceholderStyle","variant","onToggle","onEnter","onClose","onBlur","onClickTypeaheadToggleButton","handleTypeaheadKeys","moveFocusToLastMenuItem","parentRef","menuRef","id","type","hasClearButton","aria-labelledby","aria-label","hasFooter","footerRef","toggleIndicator","innerRef"]),j=c===ze.typeahead||c===ze.typeaheadMulti||_,$={id:S,"aria-labelledby":E,"aria-expanded":i,"aria-haspopup":c!==ze.checkbox&&"listbox"||null};return T.createElement(T.Fragment,null,!j&&T.createElement("button",Object.assign({},M,$,{ref:this.toggle,type:w,className:re(se.selectToggle,l&&se.modifiers.placeholder,s&&se.modifiers.disabled,a&&se.modifiers.plain,o&&se.modifiers.active,n),"aria-label":O,onBlur:h,onClick:I=>{u(I,!i),i&&f()},onKeyDown:this.onKeyDown,disabled:s}),r,T.createElement("span",{className:re(se.selectToggleArrow)},P??T.createElement(WA,null))),j&&T.createElement("div",Object.assign({},M,{ref:this.toggle,className:re(se.selectToggle,l&&se.modifiers.placeholder,s&&se.modifiers.disabled,a&&se.modifiers.plain,j&&se.modifiers.typeahead,n),onBlur:h,onClick:I=>{s||(u(I,!i),i&&f())},onKeyDown:this.onKeyDown}),r,T.createElement("button",Object.assign({},$,{type:w,className:re(Lt.button,se.selectToggleButton,se.modifiers.plain),"aria-label":O,onClick:I=>{u(I,!i),i&&f(),g()}},(c===ze.typeahead||c===ze.typeaheadMulti)&&{tabIndex:-1},{disabled:s}),P??T.createElement(WA,{className:re(se.selectToggleArrow)}))))}}xv.displayName="SelectToggle",xv.defaultProps={className:"",isOpen:!1,isActive:!1,isPlain:!1,isDisabled:!1,hasPlaceholderStyle:!1,hasClearButton:!1,hasFooter:!1,variant:"single","aria-labelledby":"","aria-label":"",type:"button",onToggle:()=>{},onEnter:()=>{},onClose:()=>{},onClickTypeaheadToggleButton:()=>{}};const Spe=T.forwardRef((e,t)=>T.createElement(xv,Object.assign({innerRef:t},e))),Oo={badge:"pf-v5-c-badge",button:"pf-v5-c-button",chip:"pf-v5-c-chip",chipActions:"pf-v5-c-chip__actions",chipContent:"pf-v5-c-chip__content",chipIcon:"pf-v5-c-chip__icon",chipText:"pf-v5-c-chip__text",modifiers:{overflow:"pf-m-overflow",draggable:"pf-m-draggable"},themeDark:"pf-v5-theme-dark"},wpe={name:"--pf-v5-c-chip__text--MaxWidth",value:"16ch",var:"var(--pf-v5-c-chip__text--MaxWidth)"};class ya extends T.Component{constructor(t){super(t),this.span=T.createRef(),this.setChipStyle=()=>({[wpe.name]:this.props.textMaxWidth}),this.renderOverflowChip=()=>{const n=this.props,{badge:r,children:i,className:o,onClick:a,ouiaId:s,textMaxWidth:l,style:c,component:u,tooltipPosition:d,isOverflowChip:f,closeBtnAriaLabel:h,isReadOnly:g}=n,p=De(n,["badge","children","className","onClick","ouiaId","textMaxWidth","style","component","tooltipPosition","isOverflowChip","closeBtnAriaLabel","isReadOnly"]),y=u;return T.createElement(y,Object.assign({onClick:a},l&&Object.assign({style:this.setChipStyle()},c),{className:re(Oo.chip,Oo.modifiers.overflow,o)},u==="button"?{type:"button"}:{},kc("OverflowChip",s!==void 0?s:this.state.ouiaStateId),p),T.createElement("span",{className:re(Oo.chipContent)},T.createElement("span",{className:re(Oo.chipText)},i),r&&r))},this.renderChip=n=>{const{children:r,tooltipPosition:i}=this.props;return this.state.isTooltipVisible?T.createElement(ph,{position:i,content:r},this.renderInnerChip(n)):this.renderInnerChip(n)},this.state={isTooltipVisible:!1,ouiaStateId:dh(ya.displayName)}}componentDidMount(){this.setState({isTooltipVisible:!!(this.span.current&&this.span.current.offsetWidth<this.span.current.scrollWidth)})}componentDidUpdate(t,n){const r=!!(this.span.current&&this.span.current.offsetWidth<this.span.current.scrollWidth);n.isTooltipVisible!==r&&this.setState({isTooltipVisible:r})}renderInnerChip(t){const n=this.props,{badge:r,children:i,className:o,onClick:a,closeBtnAriaLabel:s,isReadOnly:l,isOverflowChip:c,tooltipPosition:u,id:d,component:f,ouiaId:h,textMaxWidth:g}=n,p=De(n,["badge","children","className","onClick","closeBtnAriaLabel","isReadOnly","isOverflowChip","tooltipPosition","id","component","ouiaId","textMaxWidth"]),y=f;return T.createElement(y,Object.assign({},g&&{style:this.setChipStyle()},{className:re(Oo.chip,o)},this.state.isTooltipVisible&&{tabIndex:0},kc(ya.displayName,h!==void 0?h:this.state.ouiaStateId),p),T.createElement("span",{className:re(Oo.chipContent)},T.createElement("span",{ref:this.span,className:re(Oo.chipText),id:t},i),r&&r),!l&&T.createElement("span",{className:re(Oo.chipActions)},T.createElement(bh,{onClick:a,variant:"plain","aria-label":s,id:`remove_${t}`,"aria-labelledby":`remove_${t} ${t}`,ouiaId:h||s},T.createElement(vpe,{"aria-hidden":"true"}))))}render(){const{isOverflowChip:t}=this.props;return T.createElement(Tc,null,n=>t?this.renderOverflowChip():this.renderChip(this.props.id||n))}}ya.displayName="Chip",ya.defaultProps={closeBtnAriaLabel:"close",className:"",isOverflowChip:!1,isReadOnly:!1,tooltipPosition:"top",onClick:e=>{},component:"div"};const Vi={chipGroup:"pf-v5-c-chip-group",chipGroupClose:"pf-v5-c-chip-group__close",chipGroupLabel:"pf-v5-c-chip-group__label",chipGroupList:"pf-v5-c-chip-group__list",chipGroupListItem:"pf-v5-c-chip-group__list-item",chipGroupMain:"pf-v5-c-chip-group__main",modifiers:{category:"pf-m-category"}};class Vc extends T.Component{constructor(t){super(t),this.headingRef=T.createRef(),this.toggleCollapse=()=>{this.setState(n=>({isOpen:!n.isOpen,isTooltipVisible:!!(this.headingRef.current&&this.headingRef.current.offsetWidth<this.headingRef.current.scrollWidth)}))},this.state={isOpen:this.props.defaultIsOpen,isTooltipVisible:!1}}componentDidMount(){this.setState({isTooltipVisible:!!(this.headingRef.current&&this.headingRef.current.offsetWidth<this.headingRef.current.scrollWidth)})}renderLabel(t){const{categoryName:n,tooltipPosition:r}=this.props,{isTooltipVisible:i}=this.state;return i?T.createElement(ph,{position:r,content:n},T.createElement("span",{tabIndex:0,ref:this.headingRef,className:re(Vi.chipGroupLabel)},T.createElement("span",{id:t},n))):T.createElement("span",{ref:this.headingRef,className:re(Vi.chipGroupLabel),id:t},n)}render(){const t=this.props,{categoryName:n,children:r,className:i,isClosable:o,closeBtnAriaLabel:a,"aria-label":s,onClick:l,onOverflowChipClick:c,numChips:u,expandedText:d,collapsedText:f,ouiaId:h,defaultIsOpen:g,tooltipPosition:p}=t,y=De(t,["categoryName","children","className","isClosable","closeBtnAriaLabel","aria-label","onClick","onOverflowChipClick","numChips","expandedText","collapsedText","ouiaId","defaultIsOpen","tooltipPosition"]),{isOpen:b}=this.state,x=T.Children.count(r),S=nge(f,{remaining:T.Children.count(r)-u}),w=_=>{const E=b?T.Children.toArray(r):T.Children.toArray(r).slice(0,u);return T.createElement("div",Object.assign({className:re(Vi.chipGroup,i,n&&Vi.modifiers.category),role:"group"},n&&{"aria-labelledby":_},!n&&{"aria-label":s},kc(Vc.displayName,h)),T.createElement("div",{className:re(Vi.chipGroupMain)},n&&this.renderLabel(_),T.createElement("ul",Object.assign({className:re(Vi.chipGroupList)},n&&{"aria-labelledby":_},!n&&{"aria-label":s},{role:"list"},y),E.map((O,k)=>T.createElement("li",{className:re(Vi.chipGroupListItem),key:k},O)),x>u&&T.createElement("li",{className:re(Vi.chipGroupListItem)},T.createElement(ya,{isOverflowChip:!0,onClick:O=>{this.toggleCollapse(),c(O)},component:"button"},b?d:S)))),o&&T.createElement("div",{className:re(Vi.chipGroupClose)},T.createElement(bh,{variant:"plain","aria-label":a,onClick:l,id:`remove_group_${_}`,"aria-labelledby":`remove_group_${_} ${_}`,ouiaId:h||a},T.createElement(XA,{"aria-hidden":"true"}))))};return x===0?null:T.createElement(Tc,null,_=>w(this.props.id||_))}}Vc.displayName="ChipGroup",Vc.defaultProps={expandedText:"Show Less",collapsedText:"${remaining} more",categoryName:"",defaultIsOpen:!1,numChips:3,isClosable:!1,onClick:e=>{},onOverflowChipClick:e=>{},closeBtnAriaLabel:"Close chip group",tooltipPosition:"top","aria-label":"Chip group category"};let Cpe=0;class va extends T.Component{constructor(){super(...arguments),this.parentRef=T.createRef(),this.menuComponentRef=T.createRef(),this.filterRef=T.createRef(),this.clearRef=T.createRef(),this.inputRef=T.createRef(),this.refCollection=[[]],this.optionContainerRefCollection=[],this.footerRef=T.createRef(),this.state={focusFirstOption:!1,typeaheadInputValue:null,typeaheadFilteredChildren:T.Children.toArray(this.props.children),favoritesGroup:[],typeaheadCurrIndex:-1,typeaheadStoredIndex:-1,creatableValue:"",tabbedIntoFavoritesMenu:!1,ouiaStateId:dh(va.displayName,this.props.variant),viewMoreNextIndex:-1},this.getTypeaheadActiveChild=t=>this.refCollection[t]?this.refCollection[t][0]:null,this.componentDidUpdate=(t,n)=>{if(this.props.hasInlineFilter&&(this.refCollection[0][0]=this.filterRef.current),!n.focusFirstOption&&this.state.focusFirstOption&&!this.props.customContent){const o=this.refCollection.find(a=>a!==null&&a[0]);o&&o[0]&&o[0].focus()}else this.state.viewMoreNextIndex!==-1&&this.refCollection.length>this.state.viewMoreNextIndex&&this.props.loadingVariant!=="spinner"&&this.refCollection[this.state.viewMoreNextIndex][0]&&this.props.variant!=="typeahead"&&this.props.variant!=="typeaheadmulti"&&(this.refCollection[this.state.viewMoreNextIndex][0].focus(),this.setState({viewMoreNextIndex:-1}));const r=(o,a)=>Array.from(o).some((s,l)=>{const c=s.props,u=a[l],{props:d}=u;return c&&d?c.value!==d.value||c.label!==d.label||c.isDisabled!==d.isDisabled||c.isPlaceholder!==d.isPlaceholder:s!==u});if((t.children.length!==this.props.children.length||r(t.children,this.props.children)||this.props.isGrouped&&Array.from(t.children).some((o,a)=>o.type===pa&&o.props.children&&this.props.children[a].props.children&&(o.props.children.length!==this.props.children[a].props.children.length||r(o.props.children,this.props.children[a].props.children))))&&this.updateTypeAheadFilteredChildren(n.typeaheadInputValue||"",null),this.props.onFavorite&&(this.props.favorites.length!==t.favorites.length||this.state.typeaheadFilteredChildren!==n.typeaheadFilteredChildren)){const o=this.props.variant==="typeahead"||this.props.variant==="typeaheadmulti"?this.state.typeaheadFilteredChildren:this.props.children,a=gpe(o,this.props.isGrouped,this.props.favorites),s=a.length?[T.createElement(pa,{key:"favorites",label:this.props.favoritesLabel},a),T.createElement(yr,{key:"favorites-group-divider"})]:[];this.setState({favoritesGroup:s})}},this.onEnter=()=>{this.setState({focusFirstOption:!0})},this.onToggle=(t,n)=>{const{isInputValuePersisted:r,onSelect:i,onToggle:o,hasInlineFilter:a}=this.props;!n&&r&&i&&i(void 0,this.inputRef.current?this.inputRef.current.value:""),n&&a&&this.setState({focusFirstOption:!0}),o(t,n)},this.onClose=()=>{const{isInputFilterPersisted:t}=this.props;this.setState(Object.assign(Object.assign({focusFirstOption:!1,typeaheadInputValue:null},!t&&{typeaheadFilteredChildren:T.Children.toArray(this.props.children)}),{typeaheadCurrIndex:-1,tabbedIntoFavoritesMenu:!1,viewMoreNextIndex:-1}))},this.onChange=t=>{t.target.value.toString()!==""&&!this.props.isOpen&&this.onToggle(t,!0),this.props.onTypeaheadInputChanged&&this.props.onTypeaheadInputChanged(t.target.value.toString()),this.setState({typeaheadCurrIndex:-1,typeaheadInputValue:t.target.value,creatableValue:t.target.value}),this.updateTypeAheadFilteredChildren(t.target.value.toString(),t),this.refCollection=[[]]},this.updateTypeAheadFilteredChildren=(t,n)=>{let r;const{onFilter:i,isCreatable:o,isCreateOptionOnTop:a,onCreateOption:s,createText:l,noResultsFoundText:c,children:u,isGrouped:d,isCreateSelectOptionObject:f,loadingVariant:h}=this.props;if(i)r=i(n,n?n.target.value:t)||u;else{let g;try{g=new RegExp(t.toString(),"i")}catch{g=new RegExp(t.toString().replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i")}const p=T.Children.toArray(u);if(d){const y=b=>b.props.value&&b.props.value.toString&&this.getDisplay(b.props.value.toString(),"text").search(g)===0;r=t.toString()!==""?T.Children.map(u,b=>{if(T.isValidElement(b)&&b.type===pa){const x=T.Children.toArray(b.props.children).filter(y);if(x.length>0)return T.cloneElement(b,{titleId:b.props.label&&b.props.label.replace(/\W/g,"-"),children:x})}else return T.Children.toArray(b).filter(y)}):p}else r=t.toString()!==""?p.filter(y=>{const b=y.props.value;if(!b)return!0;const x=typeof b!="string"&&b.toString&&b.compareTo;return h!=="spinner"&&(h==null?void 0:h.text)===b||h==="spinner"&&b==="loading"?!0:x?b.compareTo(t):this.getDisplay(y.props.value.toString(),"text").search(g)===0}):p}if(r||(r=[]),r.length===0&&!o&&r.push(T.createElement(si,{isDisabled:!0,key:"no-results",value:c,isNoResultsOption:!0})),o&&t!==""){const g=t;if(!r.find(p=>p.props.value&&p.props.value.toString().toLowerCase()===g.toString().toLowerCase())){const p=f?{toString:()=>g,compareTo:b=>this.toString().toLowerCase().includes(b.toString().toLowerCase())}:g,y=T.createElement(si,{key:`create ${g}`,value:p,onClick:()=>s&&s(g)},l,' "',g,'"');a?r.unshift(y):r.push(y)}}this.setState({typeaheadFilteredChildren:r})},this.onClick=t=>{this.props.isOpen||this.onToggle(t,!0)},this.clearSelection=t=>{this.setState({typeaheadInputValue:null,typeaheadFilteredChildren:T.Children.toArray(this.props.children),typeaheadCurrIndex:-1})},this.sendRef=(t,n,r,i)=>{this.refCollection[i]=[t,n],this.optionContainerRefCollection[i]=r},this.handleMenuKeys=(t,n,r)=>{dA(t,n,r,this.refCollection,this.refCollection),(this.props.variant===ze.typeahead||this.props.variant===ze.typeaheadMulti)&&r!=="tab"&&this.handleTypeaheadKeys(r)},this.moveFocus=(t,n=!0)=>{const{isCreatable:r,createText:i}=this.props,o=!!(this.refCollection[t][0]&&this.refCollection[t][0].classList.contains("pf-m-description")),a=!!(this.refCollection[t][0]&&this.refCollection[t][0].classList.contains("pf-m-load")),s=o?this.refCollection[t][0].firstElementChild:this.refCollection[t][0];let l="";r&&s.textContent.includes(i)?l=this.state.creatableValue:s&&!a&&(l=s.textContent),this.setState(c=>({typeaheadCurrIndex:n?t:c.typeaheadCurrIndex,typeaheadStoredIndex:t,typeaheadInputValue:l}))},this.switchFocusToFavoriteMenu=()=>{const{typeaheadCurrIndex:t,typeaheadStoredIndex:n}=this.state;let r=0;t!==-1?r=t:n!==-1&&(r=n),this.refCollection[r]!==null&&this.refCollection[r][0]!==null?this.refCollection[r][0].focus():this.clearRef.current.focus(),this.setState({tabbedIntoFavoritesMenu:!0,typeaheadCurrIndex:-1})},this.moveFocusToLastMenuItem=()=>{const t=this.refCollection.length;t>0&&this.refCollection[t-1]!==null&&this.refCollection[t-1][0]!==null&&this.refCollection[t-1][0].focus()},this.handleTypeaheadKeys=(t,n=!1)=>{const{isOpen:r,onFavorite:i,isCreatable:o}=this.props,{typeaheadCurrIndex:a,tabbedIntoFavoritesMenu:s}=this.state,l=this.getTypeaheadActiveChild(a);if(r)if(t==="enter"){if((a!==-1||o&&this.refCollection.length===1)&&(l||this.refCollection[0]&&this.refCollection[0][0])){if(l){if(!l.classList.contains("pf-m-load")){const u=l.childElementCount>1?l.firstChild.textContent:l.textContent;this.setState({typeaheadInputValue:u})}}else this.refCollection[0]&&this.refCollection[0][0]&&this.setState({typeaheadInputValue:this.refCollection[0][0].textContent});l?l.click():this.refCollection[0][0].click()}}else if(t==="tab")if(i)if(this.inputRef.current===document.activeElement)if(this.props.footer&&n){const c=Oc(this.footerRef,zc);c.length>0&&c[c.length-1]&&c[c.length-1].focus()}else this.switchFocusToFavoriteMenu();else if(this.props.footer){let c=!1;const u=Oc(this.footerRef,zc);if(u.length>0){const d=u.findIndex(f=>f===document.activeElement);d===-1?n?this.inputRef.current.focus():u[0].focus():n?d===0?(this.switchFocusToFavoriteMenu(),c=!0):u[d-1].focus():u[d+1]?u[d+1].focus():this.inputRef.current.focus()}else this.inputRef.current.focus(),c=!1;this.setState({tabbedIntoFavoritesMenu:c})}else this.inputRef.current.focus(),this.setState({tabbedIntoFavoritesMenu:!1});else if(!this.props.footer)this.onToggle(null,!1),this.onClose();else{const c=Oc(this.footerRef,zc),u=c.findIndex(d=>d===document.activeElement);this.inputRef.current===document.activeElement?n?(this.onToggle(null,!1),this.onClose()):c[0]?c[0].focus():(this.onToggle(null,!1),this.onClose()):n?u===0?this.inputRef.current.focus():c[u-1].focus():c[u+1]?c[u+1].focus():(this.onToggle(null,!1),this.inputRef.current.focus(),this.onClose())}else if(s){const c=this.refCollection.findIndex(u=>u!==void 0&&(u[0]===document.activeElement||u[1]===document.activeElement));this.moveFocus(c)}else{if(this.refCollection[0][0]===null)return;let c;if(a===-1&&t==="down"?c=0:a===-1&&t==="up"?c=this.refCollection.length-1:t!=="left"&&t!=="right"?c=fA(a,t,this.refCollection):c=a,this.refCollection[c]===null)return;this.moveFocus(c)}},this.onClickTypeaheadToggleButton=()=>{this.inputRef&&this.inputRef.current&&this.inputRef.current.focus()},this.getDisplay=(t,n="node")=>{if(!t)return;const r=this.props.isGrouped?T.Children.toArray(this.props.children).reduce((i,o)=>[...i,...T.Children.toArray(o.props.children)],[]).find(i=>i.props.value.toString()===t.toString()):T.Children.toArray(this.props.children).find(i=>i.props.value&&i.props.value.toString()===t.toString());return r?r&&r.props.children?n==="node"?r.props.children:this.findText(r):r.props.value.toString():t.toString()},this.findText=t=>{if(typeof t=="string")return t;if(T.isValidElement(t)){const n=[];return T.Children.toArray(t.props.children).forEach(r=>n.push(this.findText(r))),n.join("")}else return""},this.generateSelectedBadge=()=>{const{customBadgeText:t,selections:n}=this.props;return t!==null?t:Array.isArray(n)&&n.length>0?n.length:null},this.setVieMoreNextIndex=()=>{this.setState({viewMoreNextIndex:this.refCollection.length-1})},this.isLastOptionBeforeFooter=t=>!!(this.props.footer&&t===this.refCollection.length-1)}extendTypeaheadChildren(t,n){const{isGrouped:r,onFavorite:i,createText:o}=this.props,a=n?n.concat(this.state.typeaheadFilteredChildren):this.state.typeaheadFilteredChildren,s=this.optionContainerRefCollection[t];let l=this.getTypeaheadActiveChild(t);return l&&l.classList.contains("pf-m-description")&&(l=l.firstElementChild),this.refCollection=[[]],this.optionContainerRefCollection=[],r?T.Children.map(a,c=>c.type===yr?c:c.type===pa&&i?T.cloneElement(c,{titleId:c.props.label&&c.props.label.replace(/\W/g,"-"),children:T.Children.map(c.props.children,u=>u.type===yr?u:T.cloneElement(u,{isFocused:s&&(s.id===u.props.id||this.props.isCreatable&&l.textContent===`${o} "${c.props.value}"`)}))}):c.type===pa?T.cloneElement(c,{titleId:c.props.label&&c.props.label.replace(/\W/g,"-"),children:T.Children.map(c.props.children,u=>u.type===yr?u:T.cloneElement(u,{isFocused:l&&(l.textContent===u.props.value.toString()||this.props.isCreatable&&l.textContent===`${o} "${u.props.value}"`)}))}):T.cloneElement(c,{isFocused:l&&(l.textContent===c.props.value.toString()||this.props.isCreatable&&l.textContent===`${o} "${c.props.value}"`)})):a.map((c,u)=>c.type.displayName==="Divider"?c:T.cloneElement(c,{isFocused:l?l.textContent===c.props.value.toString()||this.props.isCreatable&&l.textContent===`${o} "${c.props.value}"`:u===t}))}render(){const t=this.props,{children:n,chipGroupProps:r,chipGroupComponent:i,className:o,customContent:a,variant:s,direction:l,onSelect:c,onClear:u,onBlur:d,toggleId:f,toggleRef:h,isOpen:g,isGrouped:p,isPlain:y,isDisabled:b,hasPlaceholderStyle:x,validated:S,selections:w,typeAheadAriaLabel:_,typeAheadAriaDescribedby:E,clearSelectionsAriaLabel:O,toggleAriaLabel:k,removeSelectionAriaLabel:D,"aria-label":P,"aria-labelledby":A,"aria-describedby":M,"aria-invalid":j,placeholderText:$,width:I,maxHeight:H,toggleIcon:G,toggleIndicator:V,ouiaId:W,ouiaSafe:N,hasInlineFilter:z,isCheckboxSelectionBadgeHidden:J,inlineFilterPlaceholderText:ee,onFilter:X,onTypeaheadInputChanged:Q,onCreateOption:ie,isCreatable:ue,onToggle:de,createText:K,noResultsFoundText:ne,customBadgeText:ye,inputIdPrefix:R,inputAutoComplete:Oe,isInputValuePersisted:oe,isInputFilterPersisted:Le,menuAppendTo:je,favorites:Ze,onFavorite:L,favoritesLabel:U,footer:q,loadingVariant:he,isCreateSelectOptionObject:me,isCreateOptionOnTop:ae,shouldResetOnSelect:Y,isFlipEnabled:ce,zIndex:xe}=t,_e=De(t,["children","chipGroupProps","chipGroupComponent","className","customContent","variant","direction","onSelect","onClear","onBlur","toggleId","toggleRef","isOpen","isGrouped","isPlain","isDisabled","hasPlaceholderStyle","validated","selections","typeAheadAriaLabel","typeAheadAriaDescribedby","clearSelectionsAriaLabel","toggleAriaLabel","removeSelectionAriaLabel","aria-label","aria-labelledby","aria-describedby","aria-invalid","placeholderText","width","maxHeight","toggleIcon","toggleIndicator","ouiaId","ouiaSafe","hasInlineFilter","isCheckboxSelectionBadgeHidden","inlineFilterPlaceholderText","onFilter","onTypeaheadInputChanged","onCreateOption","isCreatable","onToggle","createText","noResultsFoundText","customBadgeText","inputIdPrefix","inputAutoComplete","isInputValuePersisted","isInputFilterPersisted","menuAppendTo","favorites","onFavorite","favoritesLabel","footer","loadingVariant","isCreateSelectOptionObject","isCreateOptionOnTop","shouldResetOnSelect","isFlipEnabled","zIndex"]),{focusFirstOption:Re,typeaheadCurrIndex:Ve,typeaheadInputValue:ot,typeaheadFilteredChildren:Ot,favoritesGroup:Mt}=this.state,Tt=f||`pf-select-toggle-id-${Cpe++}`,We=Array.isArray(w)?w:[w],Me=T.Children.toArray(n).find(Ke=>Ke.props.value===We[0]),pt=Me&&Me.props.isPlaceholder,Ut=!!(We[0]&&We[0]!==""),kt=this.getTypeaheadActiveChild(Ve);let Bn=null,Ht=[];if(L){let Ke=n;s==="typeahead"||s==="typeaheadmulti"?Ke=this.extendTypeaheadChildren(Ve,Mt):L&&(Ke=Mt.concat(n)),Ht=ppe(Ke,p,Ze)}else Ht=n;if(!a&&!Ut&&!$){const Ke=T.Children.toArray(n).filter(yt=>yt.props.isPlaceholder===!0);Bn=Ke[0]&&this.getDisplay(Ke[0].props.value,"node")||n[0]&&this.getDisplay(n[0].props.value,"node")}g&&Ht.find(Ke=>(Ke==null?void 0:Ke.key)==="loading")===void 0&&(he==="spinner"?Ht.push(T.createElement(si,{isLoading:!0,key:"loading",value:"loading"},T.createElement(mv,{size:"lg"}))):he!=null&&he.text&&Ht.push(T.createElement(si,{isLoad:!0,key:"loading",value:he.text,setViewMoreNextIndex:this.setVieMoreNextIndex,onClick:he==null?void 0:he.onClick})));const Wn=u!==va.defaultProps.onClear,Ce=T.createElement("button",{className:re(Lt.button,Lt.modifiers.plain,se.selectToggleClear),onClick:Ke=>{this.clearSelection(Ke),u(Ke),Ke.stopPropagation()},"aria-label":O,type:"button",disabled:b,ref:this.clearRef,onKeyDown:Ke=>{Ke.key===Ye.Enter&&this.clearRef.current.click()}},T.createElement(XA,{"aria-hidden":!0}));let lt=null;s===ze.typeaheadMulti&&(lt=i||T.createElement(Vc,Object.assign({},r),We&&We.map(Ke=>T.createElement(ya,{key:Ke,onClick:yt=>c(yt,Ke),closeBtnAriaLabel:D},this.getDisplay(Ke,"node"))))),z&&(Ht=[T.createElement(T.Fragment,null,T.createElement("div",{key:"inline-filter",className:re(se.selectMenuSearch)},T.createElement("div",{key:"inline-filter",className:re(Nr.formControl)},T.createElement("input",{key:"inline-filter-input",type:"search",onChange:this.onChange,placeholder:ee,onKeyDown:yt=>{if(yt.key===Ye.ArrowUp)this.handleMenuKeys(0,0,"up"),yt.preventDefault();else if(yt.key===Ye.ArrowDown)this.handleMenuKeys(0,0,"down"),yt.preventDefault();else if(yt.key===Ye.ArrowLeft)this.handleMenuKeys(0,0,"left"),yt.preventDefault();else if(yt.key===Ye.ArrowRight)this.handleMenuKeys(0,0,"right"),yt.preventDefault();else if(yt.key===Ye.Tab&&s!==ze.checkbox&&this.props.footer)if(yt.shiftKey)this.onToggle(yt,!1);else{const Us=Oc(this.footerRef,zc);Us.length>0?(Us[0].focus(),yt.stopPropagation(),yt.preventDefault()):this.onToggle(yt,!1)}else yt.key===Ye.Tab&&s===ze.checkbox&&(yt.shiftKey?this.handleMenuKeys(0,0,"up"):this.handleMenuKeys(0,0,"down"),yt.stopPropagation(),yt.preventDefault())},ref:this.filterRef,autoComplete:Oe}))),T.createElement(yr,{key:"inline-filter-divider"})),...Ot].map((yt,Us)=>T.cloneElement(yt,{key:Us})));let un,Gt;if(a)un={selected:We,openedOnEnter:Re,isCustomContent:!0},Gt=a;else switch(s){case"single":un={selected:We[0],hasInlineFilter:z,openedOnEnter:Re},Gt=Ht;break;case"checkbox":un={checked:We,isGrouped:p,hasInlineFilter:z,openedOnEnter:Re},Gt=Ht;break;case"typeahead":un={selected:We[0],openedOnEnter:Re},Gt=L?Ht:this.extendTypeaheadChildren(Ve),Gt.length===0&&Gt.push(T.createElement(si,{isDisabled:!0,key:0,value:ne,isNoResultsOption:!0}));break;case"typeaheadmulti":un={selected:We,openedOnEnter:Re},Gt=L?Ht:this.extendTypeaheadChildren(Ve),Gt.length===0&&Gt.push(T.createElement(si,{isDisabled:!0,key:0,value:ne,isNoResultsOption:!0}));break}const To=ce&&je!=="inline",ko=T.createElement(_pe,Object.assign({className:re(To&&se.modifiers.static)},_e,{isGrouped:p,selected:We},un,{openedOnEnter:Re,"aria-label":P,"aria-labelledby":A,sendRef:this.sendRef,keyHandler:this.handleMenuKeys,maxHeight:H,ref:this.menuComponentRef,footer:q,footerRef:this.footerRef,isLastOptionBeforeFooter:this.isLastOptionBeforeFooter}),Gt),Gi=q?T.createElement("div",{className:re(se.selectMenu)}," ",ko," "):ko,qi=T.createRef(),Cv=T.createElement("div",Object.assign({className:re(se.select,g&&se.modifiers.expanded,S===Tn.success&&se.modifiers.success,S===Tn.warning&&se.modifiers.warning,S===Tn.error&&se.modifiers.invalid,l===Wc.up&&se.modifiers.top,o),ref:qi},I&&{style:{width:I}},S!==Tn.default&&{"aria-invalid":j}),g&&Gi),Oh=T.createElement("div",Object.assign({className:re(se.select,g&&se.modifiers.expanded,S===Tn.success&&se.modifiers.success,S===Tn.warning&&se.modifiers.warning,S===Tn.error&&se.modifiers.invalid,l===Wc.up&&se.modifiers.top,o),ref:this.parentRef},kc(va.displayName,W!==void 0?W:this.state.ouiaStateId,N),I&&{style:{width:I}},S!==Tn.default&&{"aria-invalid":j}),T.createElement(Spe,Object.assign({id:Tt,parentRef:this.parentRef,menuRef:this.menuComponentRef,ref:h},q&&{footerRef:this.footerRef},{isOpen:g,isPlain:y,hasPlaceholderStyle:x&&(!We.length||We[0]===null||pt),onToggle:this.onToggle,onEnter:this.onEnter,onClose:this.onClose,onBlur:d,variant:s,toggleIndicator:V,"aria-labelledby":`${A||""} ${Tt}`,"aria-label":k},M&&{"aria-describedby":M},{handleTypeaheadKeys:this.handleTypeaheadKeys,moveFocusToLastMenuItem:this.moveFocusToLastMenuItem,isDisabled:b,hasClearButton:Wn,hasFooter:q!==void 0,onClickTypeaheadToggleButton:this.onClickTypeaheadToggleButton}),a&&T.createElement("div",{className:re(se.selectToggleWrapper)},G&&T.createElement("span",{className:re(se.selectToggleIcon)},G),T.createElement("span",{className:re(se.selectToggleText)},$)),s===ze.single&&!a&&T.createElement(T.Fragment,null,T.createElement("div",{className:re(se.selectToggleWrapper)},G&&T.createElement("span",{className:re(se.selectToggleIcon)},G),T.createElement("span",{className:re(se.selectToggleText)},this.getDisplay(We[0],"node")||$||Bn)),Wn&&Ut&&Ce),s===ze.checkbox&&!a&&T.createElement(T.Fragment,null,T.createElement("div",{className:re(se.selectToggleWrapper)},G&&T.createElement("span",{className:re(se.selectToggleIcon)},G),T.createElement("span",{className:re(se.selectToggleText)},$),!J&&Ut&&T.createElement("div",{className:re(se.selectToggleBadge)},T.createElement("span",{className:re(Fc.badge,Fc.modifiers.read)},this.generateSelectedBadge()))),Wn&&Ut&&Ce),s===ze.typeahead&&!a&&T.createElement(T.Fragment,null,T.createElement("div",{className:re(se.selectToggleWrapper)},G&&T.createElement("span",{className:re(se.selectToggleIcon)},G),T.createElement(xh,Object.assign({className:re(se.selectToggleTypeahead),"aria-activedescendant":kt&&kt.id,id:`${Tt}-select-typeahead`,"aria-label":_},E&&{"aria-describedby":E},{placeholder:$,value:ot!==null?ot:this.getDisplay(We[0],"text")||"",onChange:Ke=>this.onChange(Ke),onClick:this.onClick,autoComplete:Oe,isDisabled:b,ref:this.inputRef}))),Wn&&(We[0]||ot)&&Ce),s===ze.typeaheadMulti&&!a&&T.createElement(T.Fragment,null,T.createElement("div",{className:re(se.selectToggleWrapper)},G&&T.createElement("span",{className:re(se.selectToggleIcon)},G),We&&Array.isArray(We)&&We.length>0&&lt,T.createElement(xh,Object.assign({className:re(se.selectToggleTypeahead),"aria-activedescendant":kt&&kt.id,id:`${Tt}-select-multi-typeahead-typeahead`,"aria-label":_,"aria-invalid":S===Tn.error},E&&{"aria-describedby":E},{placeholder:$,value:ot!==null?ot:"",onChange:Ke=>this.onChange(Ke),onClick:this.onClick,autoComplete:Oe,isDisabled:b,ref:this.inputRef}))),Wn&&(We&&We.length>0||ot)&&Ce),S===Tn.success&&T.createElement("span",{className:re(se.selectToggleStatusIcon)},T.createElement(UA,{"aria-hidden":"true"})),S===Tn.error&&T.createElement("span",{className:re(se.selectToggleStatusIcon)},T.createElement(HA,{"aria-hidden":"true"})),S===Tn.warning&&T.createElement("span",{className:re(se.selectToggleStatusIcon)},T.createElement(GA,{"aria-hidden":"true"}))),g&&je==="inline"&&Gi),Th=()=>this.parentRef&&this.parentRef.current?this.parentRef.current.parentElement:null;return T.createElement(Tc,null,Ke=>T.createElement(yv.Provider,{value:{onSelect:c,onFavorite:L,onClose:this.onClose,variant:s,inputIdPrefix:R||Ke,shouldResetOnSelect:Y}},je==="inline"?Oh:T.createElement(cv,{width:"auto",trigger:Oh,triggerRef:this.parentRef,popper:Cv,popperRef:qi,direction:l,appendTo:je==="parent"?Th():je,isVisible:g,zIndex:xe})))}}va.displayName="Select",va.defaultProps={children:[],className:"",position:Bc.left,direction:Wc.down,toggleId:null,isOpen:!1,isGrouped:!1,isPlain:!1,isDisabled:!1,hasPlaceholderStyle:!1,isCreatable:!1,isCreateOptionOnTop:!1,validated:"default","aria-label":"","aria-labelledby":"","aria-describedby":"","aria-invalid":!1,typeAheadAriaLabel:"",typeAheadAriaDescribedby:"",clearSelectionsAriaLabel:"Clear all",toggleAriaLabel:"Options menu",removeSelectionAriaLabel:"Remove",selections:[],createText:"Create",placeholderText:"",noResultsFoundText:"No results found",variant:ze.single,width:"",onClear:()=>{},onCreateOption:()=>{},toggleIcon:null,toggleIndicator:null,onFilter:null,onTypeaheadInputChanged:null,customContent:null,hasInlineFilter:!1,inlineFilterPlaceholderText:null,customBadgeText:null,inputIdPrefix:"",inputAutoComplete:"off",menuAppendTo:"inline",favorites:[],favoritesLabel:"Favorites",ouiaSafe:!0,chipGroupComponent:null,isInputValuePersisted:!1,isInputFilterPersisted:!1,isCreateSelectOptionObject:!1,shouldResetOnSelect:!0,isFlipEnabled:!0,zIndex:9999};const Ui={button:"pf-v5-c-button",dirRtl:"pf-v5-m-dir-rtl",drawer:"pf-v5-c-drawer",modalBox:"pf-v5-c-modal-box",modifiers:{finished:"pf-m-finished",expanded:"pf-m-expanded",current:"pf-m-current",expandable:"pf-m-expandable",disabled:"pf-m-disabled",noPadding:"pf-m-no-padding"},pageMainWizard:"pf-v5-c-page__main-wizard",themeDark:"pf-v5-theme-dark",wizard:"pf-v5-c-wizard",wizardClose:"pf-v5-c-wizard__close",wizardDescription:"pf-v5-c-wizard__description",wizardFooter:"pf-v5-c-wizard__footer",wizardFooterCancel:"pf-v5-c-wizard__footer-cancel",wizardHeader:"pf-v5-c-wizard__header",wizardInnerWrap:"pf-v5-c-wizard__inner-wrap",wizardMain:"pf-v5-c-wizard__main",wizardMainBody:"pf-v5-c-wizard__main-body",wizardNav:"pf-v5-c-wizard__nav",wizardNavItem:"pf-v5-c-wizard__nav-item",wizardNavLink:"pf-v5-c-wizard__nav-link",wizardNavLinkText:"pf-v5-c-wizard__nav-link-text",wizardNavLinkToggle:"pf-v5-c-wizard__nav-link-toggle",wizardNavLinkToggleIcon:"pf-v5-c-wizard__nav-link-toggle-icon",wizardNavList:"pf-v5-c-wizard__nav-list",wizardOuterWrap:"pf-v5-c-wizard__outer-wrap",wizardTitle:"pf-v5-c-wizard__title",wizardTitleText:"pf-v5-c-wizard__title-text",wizardToggle:"pf-v5-c-wizard__toggle",wizardToggleIcon:"pf-v5-c-wizard__toggle-icon",wizardToggleList:"pf-v5-c-wizard__toggle-list",wizardToggleListItem:"pf-v5-c-wizard__toggle-list-item",wizardToggleNum:"pf-v5-c-wizard__toggle-num",wizardToggleSeparator:"pf-v5-c-wizard__toggle-separator"};function Epe(e){const{name:t,label:n,labelHelpTitle:r,labelHelp:i,additionalControls:o,placeholderText:a,options:s,footer:l,helperText:c,isDisabled:u,isReadOnly:d,isRequired:f,validate:h,fieldNameToResetOnFieldChange:g}=e,p=ui(e),{t:y}=$e(),{control:b,setValue:x,getValues:S,formState:{isSubmitting:w,isValidating:_,defaultValues:E},resetField:O}=Xr(),[k,D]=v.useState(!1),P=v.useCallback(()=>D(!k),[k]),[A]=$t(),M=pc(e.label,e.isRequired),j=Fs(E,e.name);return v.useEffect(()=>{S(e.name)||s.length===1&&f&&x(e.name,s[0].value)},[S,f,s,e.name,x]),m.jsx(Ms,{name:t,control:b,defaultValue:e.defaultValue,shouldUnregister:!0,render:({field:{onChange:$,value:I},fieldState:{error:H}})=>{const G=(N,z)=>{var ee;const J=(ee=s.find(X=>X.label===z.toString()))==null?void 0:ee.value;$(J),g&&O(g),e.onChange&&e.onChange(J),D(!1)},V=H!=null&&H.message?h&&_?A.validating:H==null?void 0:H.message:void 0,W=s.find(N=>N.value===I);return m.jsx(Cc,{fieldId:p,label:n,labelHelpTitle:r??n,labelHelp:i,additionalControls:o,helperText:c,helperTextInvalid:V,isRequired:f,children:m.jsxs("div",{style:{display:"flex"},children:[m.jsx(va,{id:p,itemID:p,placeholderText:a,variant:"single","aria-describedby":`${p}-form-group`,selections:W==null?void 0:W.label,onSelect:G,isOpen:k,onToggle:P,onClear:f?void 0:()=>{$(null),D(!1)},maxHeight:280,validated:V?"error":void 0,isDisabled:u||d||w,hasPlaceholderStyle:!0,footer:l,ouiaId:"menu-select","data-cy":p,children:s.map(N=>{const z=Wr(N);return m.jsx(si,{id:z,value:N.label,label:N.label,description:N.description,"data-cy":z,children:N.label},N.label)})}),m.jsx(zr,{actions:[{label:y("Undo changes"),type:st.Button,selection:Ge.None,onClick:()=>{x(e.name,j)},isHidden:()=>!e.enableUndo||I===j},{label:y("Reset to default"),type:st.Button,selection:Ge.None,onClick:()=>{x(e.name,e.defaultValue)},isHidden:()=>!e.enableReset||I===e.defaultValue}],variant:C.ButtonVariant.control,position:"right"})]})})},rules:{required:M,validate:h}})}function Ope(e){const{name:t,helperText:n,validate:r,additionalControls:i,label:o,labelHelp:a,labelHelpTitle:s,labelOn:l,labelOff:c}=e,{control:u,formState:{isSubmitting:d,isValidating:f}}=Xr(),h=ui(e);return m.jsx(Ms,{name:t,control:u,shouldUnregister:!0,render:({field:{onChange:g,value:p},fieldState:{error:y}})=>{const b=r&&f||y==null?void 0:y.message;return m.jsx(Cc,{fieldId:h,"data-cy":h+"-form-group",label:o,labelHelpTitle:s??o,labelHelp:a,helperText:n,helperTextInvalid:b,additionalControls:i,children:m.jsx(C.Switch,{"data-cy":h+"-toggle","aria-label":o,isChecked:p,onChange:x=>g(x),isDisabled:d,label:l,labelOff:c})})}})}function Tpe(e){const{type:t,name:n,label:r,labelHelpTitle:i,labelHelp:o,additionalControls:a,placeholder:s,button:l,helperText:c,isDisabled:u,isReadOnly:d,isRequired:f,validate:h,minLength:g,maxLength:p,min:y,max:b,pattern:x,selectTitle:S,selectOpen:w,selectValue:_,autoFocus:E,autoComplete:O,disableAutoResize:k}=e,D=ui(e),{control:P,setValue:A,formState:{isSubmitting:M,isValidating:j}}=Xr(),[$,I]=v.useState(!1),[H]=$t(),G=pc(e.label,e.isRequired);return m.jsx(Ms,{name:n,control:P,shouldUnregister:!0,render:({field:{onChange:V,value:W,name:N},fieldState:{error:z}})=>{const J=z!=null&&z.message?h&&j?H.validating:z==null?void 0:z.message:void 0;function ee(X){V(X.trimStart())}return m.jsx(Cc,{fieldId:D,label:r,labelHelpTitle:i??r,labelHelp:o,additionalControls:a,helperText:c,helperTextInvalid:J,isRequired:f,fullWidth:!0,children:m.jsxs(C.InputGroup,{children:[m.jsx(C.InputGroupItem,{isFill:!0,children:m.jsx(C.TextArea,{id:D,placeholder:s,onChange:(X,Q)=>ee(Q),value:W??"","aria-describedby":D?`${D}-form-group`:void 0,validated:J?"error":void 0,type:t==="password"?$?"text":"password":t,readOnlyVariant:d?"default":void 0,isDisabled:u,autoFocus:E,autoComplete:O||"off","data-cy":D,autoResize:k===void 0?!0:!k,rows:1,resizeOrientation:"vertical"})}),t==="password"&&m.jsx(C.Button,{variant:"control",onClick:()=>I(!$),isDisabled:u||d,children:$?m.jsx(be.EyeIcon,{}):m.jsx(be.EyeSlashIcon,{})}),S&&m.jsx(C.Button,{ouiaId:`lookup-${N}-button`,variant:"control",onClick:()=>w==null?void 0:w(X=>{if(_){const Q=_(X);A(N,Q,{shouldValidate:!0})}},S),"aria-label":"Options menu",isDisabled:u||M,children:m.jsx(be.SearchIcon,{})}),l]})})},rules:{required:G,validate:h,minLength:typeof r=="string"&&typeof g=="number"?{value:g,message:`${Qr(r.toLocaleLowerCase())} must be at least ${g} characters.`}:g,maxLength:typeof r=="string"&&typeof p=="number"?{value:p,message:`${Qr(r.toLocaleLowerCase())} cannot be greater than ${p} characters.`}:p,min:typeof r=="string"&&(typeof y=="number"||typeof y=="string")?{value:y,message:`${Qr(r.toLocaleLowerCase())} must be less than ${y}.`}:g,max:typeof r=="string"&&(typeof b=="number"||typeof b=="string")?{value:b,message:`${Qr(r.toLocaleLowerCase())} cannot be greater than ${b}.`}:g,pattern:x}})}function kpe(e){const{type:t,name:n,label:r,labelHelpTitle:i,labelHelp:o,additionalControls:a,placeholder:s,button:l,helperText:c,isDisabled:u,isReadOnly:d,isRequired:f,validate:h,minLength:g,maxLength:p,min:y,max:b,pattern:x,selectTitle:S,selectOpen:w,selectValue:_,autoFocus:E,autoComplete:O}=e,k=ui(e),{t:D}=$e(),{control:P,setValue:A,formState:{isSubmitting:M,isValidating:j,defaultValues:$}}=Xr(),[I,H]=v.useState(!1),[G]=$t(),V=pc(e.label,e.isRequired),W=Fs($,e.name);return m.jsx(Ms,{name:n,control:P,shouldUnregister:!0,defaultValue:e.defaultValue,render:({field:{onChange:N,value:z,name:J},fieldState:{error:ee}})=>{const X=ee!=null&&ee.message?h&&j?G.validating:ee==null?void 0:ee.message:void 0;let Q=z;switch(t){case"datetime-local":if(z){const ue=new Date(z);Q=new Date(ue.getTime()-ue.getTimezoneOffset()*6e4).toISOString().slice(0,16)}break}function ie(ue){switch(e.type){case"datetime-local":{N(new Date(ue).toISOString());break}case"number":{let de=Number(ue);if(ue===""||isNaN(de)){A(J,null),N(null);return}b!==void 0&&de>Number(b)&&(de=Number(b)),y!==void 0&&de<Number(y)&&(de=Number(y)),A(J,de),N(de);break}default:N(ue.trimStart())}}return m.jsx(Cc,{fieldId:k,label:r,labelHelpTitle:i??r,labelHelp:o,additionalControls:a,helperText:c,helperTextInvalid:X,isRequired:f,children:m.jsxs(C.InputGroup,{children:[m.jsx(C.InputGroupItem,{isFill:!0,children:m.jsx(C.TextInput,{id:k,placeholder:s,onChange:(ue,de)=>ie(de),value:Q??"","aria-describedby":k?`${k}-form-group`:void 0,validated:X?"error":void 0,type:t==="password"?I?"text":"password":t,readOnlyVariant:d?"default":void 0,isDisabled:u,autoFocus:E,autoComplete:O||"off","data-cy":k})}),t==="password"&&m.jsx(C.Button,{variant:"control",onClick:()=>H(!I),isDisabled:u||d,children:I?m.jsx(be.EyeIcon,{}):m.jsx(be.EyeSlashIcon,{})}),S&&m.jsx(C.Button,{ouiaId:`lookup-${J}-button`,variant:"control",onClick:()=>w==null?void 0:w(ue=>{if(_){const de=_(ue);A(J,de,{shouldValidate:!0})}},S),"aria-label":"Options menu",isDisabled:u||M,children:m.jsx(be.SearchIcon,{"data-cy":"lookup-button"})}),l,m.jsx(zr,{actions:[{label:D("Undo changes"),type:st.Button,selection:Ge.None,onClick:()=>{A(e.name,W)},isHidden:()=>!e.enableUndo||z===W},{label:D("Reset to default"),type:st.Button,selection:Ge.None,onClick:()=>{A(e.name,e.defaultValue)},isHidden:()=>!e.enableReset||z===e.defaultValue}],variant:C.ButtonVariant.control,position:"right"})]})})},rules:{required:V,validate:h,minLength:typeof r=="string"&&typeof g=="number"?{value:g,message:`${Qr(r.toLocaleLowerCase())} must be at least ${g} characters.`}:g,maxLength:typeof r=="string"&&typeof p=="number"?{value:p,message:`${Qr(r.toLocaleLowerCase())} cannot be greater than ${p} characters.`}:p,min:typeof r=="string"&&(typeof y=="number"||typeof y=="string")?{value:y,message:`${Qr(r.toLocaleLowerCase())} must be greater or equal to ${y}.`}:g,max:typeof r=="string"&&(typeof b=="number"||typeof b=="string")?{value:b,message:`${Qr(r.toLocaleLowerCase())} cannot be greater than ${b}.`}:b,pattern:x}})}const _v=v.createContext({isOpen:!1,setState:()=>({})});function Sh(){return v.useContext(_v)}function ZA(e){const t=dn("xl"),[n,r]=v.useState(()=>t),i=v.useCallback(o=>{o.isOpen!==void 0&&r(o.isOpen)},[]);return v.useEffect(()=>i({isOpen:t}),[t,i]),m.jsx(_v.Provider,{value:{isOpen:n,setState:i},children:e.children})}function JA(){const e=wt.useNavigate(),t=dn("xl"),n=Sh();return v.useCallback(i=>{e(i),t||n.setState({isOpen:!n.isOpen})},[e,t,n])}const Sv=v.createContext([{},()=>{}]);function Ape(){return v.useContext(Sv)[0]}function Dpe(){return v.useContext(Sv)}function Ppe(e){const[t,n]=v.useState({}),r=v.useCallback(o=>{n(QA("",o))},[]),i=v.useMemo(()=>[t,r],[t,r]);return m.jsx(Sv.Provider,{value:i,children:e.children})}function QA(e,t){const n={};return t.forEach(r=>{const i=(e+"/"+r.path).replace("//","/");"id"in r&&typeof r.id=="string"&&(n[r.id]=i),"children"in r&&Object.assign(n,QA(i,r.children))}),n}const e3=v.createContext({notificationsDrawerOpen:!1,setNotificationsDrawerOpen:()=>{throw new Error("PageNotificationsContext not implemented")},notificationGroups:{},setNotificationGroups:()=>{throw new Error("PageNotificationsContext not implemented")}});function wh(){return v.useContext(e3)}function jpe(e){const[t,n]=v.useState(!1),[r,i]=v.useState({});return m.jsx(e3.Provider,{value:{notificationGroups:r,setNotificationGroups:i,notificationsDrawerOpen:t,setNotificationsDrawerOpen:n},children:e.children})}function Mpe(e){const{t}=$e(),{notificationsDrawerOpen:n,setNotificationsDrawerOpen:r}=wh(),i=v.useRef(null);function o(){var s;r(!1),(s=i.current)==null||s.focus()}const{notificationGroups:a}=wh();return m.jsx(C.Drawer,{isExpanded:n,onExpand:()=>r(!0),children:m.jsx(C.DrawerContent,{panelContent:m.jsx(C.DrawerPanelContent,{children:m.jsxs(C.NotificationDrawer,{"data-cy":"notifications-drawer",children:[m.jsx(C.NotificationDrawerHeader,{title:t("Notifications"),children:m.jsx(C.DrawerCloseButton,{onClick:o})}),m.jsx(C.NotificationDrawerBody,{children:m.jsx(C.NotificationDrawerGroupList,{children:Object.values(a).map((s,l)=>m.jsx(Ipe,{group:s},l))})})]})}),children:m.jsx($pe,{children:e.children})})})}const $pe=Ae(C.DrawerContentBody)`
516
516
  max-height: 100%;
517
517
  `;function Ipe(e){const{t}=$e(),[n,r]=v.useState(!0);return m.jsx(C.NotificationDrawerGroup,{title:e.group.title,isExpanded:n,count:e.group.notifications.length,onExpand:(i,o)=>r(o),children:m.jsxs(C.NotificationDrawerList,{isHidden:!n,children:[e.group.notifications.map((i,o)=>m.jsx(Lpe,{notification:i},o)),e.group.notifications.length===0&&m.jsxs(C.EmptyState,{variant:C.EmptyStateVariant.full,children:[m.jsx(C.EmptyStateHeader,{headingLevel:"h2",titleText:t("No notifications")}),m.jsx(C.EmptyStateBody,{children:t("There are currently no notifications.")})]})]})})}function Lpe(e){const t=e.notification.variant==="info"?void 0:e.notification.variant,n=wt.useNavigate(),{setNotificationsDrawerOpen:r}=wh(),i=e.notification.timestamp?new Date(e.notification.timestamp):void 0,o=i?`${i.toLocaleDateString()} ${i.toLocaleTimeString()}`:void 0;return m.jsxs(C.NotificationDrawerListItem,{variant:e.notification.variant,onClick:()=>{n(e.notification.to),r(!1)},children:[m.jsx(C.NotificationDrawerListItemHeader,{title:e.notification.title,variant:t}),m.jsx(C.NotificationDrawerListItemBody,{timestamp:o,children:e.notification.description})]})}function Fpe(e){return m.jsx(Fv,{children:m.jsx(T5,{defaultRefreshInterval:e.defaultRefreshInterval,children:m.jsx(Ppe,{children:m.jsx(g6,{children:m.jsx(Nb,{children:m.jsx(ZA,{children:m.jsx(jpe,{children:m.jsx(Q7,{children:e.children})})})})})})})})}function t3(e){const[t]=$t();return m.jsx(Rb,{message:t.errorText,children:m.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%",maxHeight:"100%"},children:e.children})})}function Npe(e){const t=dn("sm");return m.jsxs(C.Masthead,{display:{default:"inline"},style:{borderBottom:"1px solid #fff4",paddingRight:0},children:[m.jsx(n3,{}),t&&m.jsx(C.MastheadMain,{children:m.jsx(C.MastheadBrand,{component:n=>m.jsx(wt.Link,{...n,to:"/"}),children:e.brand})}),m.jsx(C.MastheadContent,{style:{marginLeft:0,minHeight:0},children:m.jsx(C.Toolbar,{id:"toolbar","data-cy":"toolbar",inset:{default:"insetNone"},style:{padding:0},children:m.jsx(C.ToolbarContent,{children:e.children})})})]})}function n3(){const e=Sh();return m.jsx(C.MastheadToggle,{onClick:()=>e.setState({isOpen:!e.isOpen}),children:m.jsx(C.PageToggleButton,{"data-cy":"nav-toggle",variant:"plain","aria-label":"Global navigation",children:m.jsx(be.BarsIcon,{})})})}function Rpe(){const{setNotificationsDrawerOpen:e,notificationGroups:t}=wh(),n=Object.values(t).reduce((r,i)=>r+i.notifications.length,0);return m.jsx(C.NotificationBadge,{"data-cy":"notification-badge",variant:n===0?"read":"unread",count:n,onClick:()=>e(r=>!r)})}function Bpe(){const[e,t]=v.useContext(zo);return e.activeTheme==="dark"?m.jsx(C.Button,{"data-cy":"settings-icon",variant:"plain",onClick:()=>t({...e,theme:"light"}),children:m.jsx(be.MoonIcon,{})}):m.jsx(C.Button,{"data-cy":"theme-icon",variant:"plain",onClick:()=>t({...e,theme:"dark"}),children:m.jsx(be.SunIcon,{})})}function r3(e){const{navigation:t}=e,n=Sh();return m.jsx(C.PageSidebar,{isSidebarOpen:n.isOpen,className:"bg-lighten",children:m.jsxs(C.PageSidebarBody,{children:[e.contextSwitcher&&m.jsxs(m.Fragment,{children:[m.jsx(C.PageSection,{style:{background:"transparent",paddingTop:16},children:m.jsx(C.Stack,{hasGutter:!0,children:e.contextSwitcher})}),m.jsx(C.Divider,{})]}),m.jsx(C.Nav,{"data-cy":"page-navigation",className:"side-nav",children:m.jsx(C.NavList,{children:m.jsx(Ch,{baseRoute:e.basename??"",items:t})})})]})})}function Ch(e){return m.jsx(m.Fragment,{children:e.items.filter(t=>"hidden"in t?t.hidden!==!0:!0).map((t,n)=>m.jsx(Wpe,{item:t,baseRoute:e.baseRoute},t.id??t.label??n))})}function Wpe(e){var u,d;const{item:t}=e,[n,r]=v.useState(()=>localStorage.getItem("default-nav-expanded")==="true"||localStorage.getItem((t.id??t.label)+"-expanded")==="true"),i=f=>{r(f),localStorage.setItem((t.id??t.label)+"-expanded",f?"true":"false")};let o;if("id"in e.item)o=e.item.id;else if("children"in e.item){const f=e.item.children.find(h=>h.path==="");f&&"id"in f&&(o=f.id)}o||(o=(u=e.item.label)==null?void 0:u.split(" ").join("-").toLowerCase());const a=JA();let s=e.baseRoute+"/"+t.path;if(s=s.replace("//","/"),t.path==="/"&&"children"in t)return m.jsx(Ch,{items:t.children,baseRoute:""});const l="children"in t&&((d=t.children)==null?void 0:d.find(f=>f.label)),c={fontSize:"small",opacity:.5,textAlign:"left"};if(!l&&"label"in t){let f=(process.env.ROUTE_PREFIX??"")+s;f=f.replace("//","/");const h=t.href?!1:location.pathname.startsWith(f);return m.jsxs(C.NavItem,{id:o,href:t.href||s,isActive:h,className:h?"bg-lighten":void 0,onClick:()=>t.href?window.open(t.href,"_blank"):a(s),target:t.href?"_blank":"","data-cy":o,style:{display:"flex",alignItems:"stretch",flexDirection:"column"},children:[m.jsxs(C.Flex,{children:[m.jsx(C.FlexItem,{grow:{default:"grow"},children:t.label}),"badge"in t&&t.badge&&m.jsx(C.FlexItem,{children:m.jsx(C.Label,{isCompact:!0,variant:"outline",color:t.badgeColor,children:t.badge})}),"href"in t&&t.href&&m.jsx("span",{className:"pf-v5-c-nav__toggle",children:m.jsx("span",{className:"pf-v5-c-nav__toggle-icon",children:m.jsx(be.ExternalLinkAltIcon,{})})})]}),t.subtitle&&m.jsx("div",{style:c,children:t.subtitle})]})}return!l||t.label===void 0?null:t.label?m.jsx(C.NavExpandable,{buttonProps:{id:o},title:m.jsxs("div",{children:[m.jsx("div",{style:{textAlign:"left"},children:t.label}),t.subtitle&&m.jsx("div",{style:c,children:t.subtitle})]}),isExpanded:n,onExpand:(f,h)=>i(h),children:m.jsx(Ch,{items:t.children,baseRoute:s})}):m.jsx(Ch,{items:t.children,baseRoute:s})}function zpe(e){const{navigation:t,masthead:n}=e,r=v.useMemo(()=>[{path:e.basename??"/",element:m.jsx(C.Page,{header:n,sidebar:m.jsx(r3,{navigation:t,basename:e.basename,contextSwitcher:e.contextSwitcher}),children:m.jsx(Mpe,{children:m.jsxs("div",{style:{maxHeight:"100%",overflow:"hidden",height:"100%",display:"flex",flexDirection:"column"},children:[e.banner,m.jsx("div",{style:{flexGrow:1,overflow:"hidden"},children:m.jsx(wt.Outlet,{})})]})})}),children:t.filter(({href:a})=>!a)},{path:"*",element:m.jsx(D6,{})}],[n,t,e.banner,e.basename,e.contextSwitcher]),[i,o]=Dpe();return v.useEffect(()=>o(r),[r,o]),m.jsx(wt.Routes,{children:r.map(i3)})}function i3(e){var t;return m.jsx(wt.Route,{path:e.path,element:e.element,children:(t=e.children)==null?void 0:t.map(i3)},e.path)}function Vpe(e){return e.replace(/^\//,"")}function o3(e,t){for(const n of e){if("id"in n&&n.id===t)return n;if("children"in n){const r=o3(n.children,t);if(r)return r}}}function a3(e,t){for(let n=0;n<e.length;n++){const r=e[n];if("id"in r&&r.id===t)return e.splice(n,1),r;if("children"in r){const i=a3(r.children,t);if(i)return i}}}function s3(e,t,n){for(const r of e)if("id"in r&&r.id===t){const i=r;"children"in r||(i.children=[]),i.children.push(n);return}else"children"in r&&s3(r.children,t,n)}function l3(e,t,n){for(let r=0;r<e.length;r++){const i=e[r];if("id"in i&&i.id===t){e.splice(r+1,0,n);return}else"children"in i&&l3(i.children,t,n)}}function c3(e,t,n){for(let r=0;r<e.length;r++){const i=e[r];if("id"in i&&i.id===t){e.splice(r,0,n);return}else"children"in i&&c3(i.children,t,n)}}function u3(){const e=Ape();return v.useCallback((t,n)=>{let r=e[t]??"";const i=n==null?void 0:n.params,o=n==null?void 0:n.query;return r&&(i&&(r=Object.keys(i).reduce((a,s)=>{let l=i[s];if(l===void 0)return a;l=encodeURIComponent(l.toString());const c=":"+s,u=new RegExp(c+"(?!.*"+c+")","g");return a.replace(u,l)},r)),o&&(r=`${r}?${Object.keys(o).map(a=>{let s=o[a];return s===void 0?"":(s=encodeURIComponent(s.toString()),`${a}=${s}`)}).join("&").replace("/&&/g","&")}`)),r},[e])}function Upe(){const e=wt.useNavigate(),t=u3();return v.useCallback((n,r)=>{const i=t(n,r);i&&e(i)},[e,t])}function Hpe(e){const{loading:t}=e,[n,r]=v.useState((e==null?void 0:e.initialTabIndex)??0),i=v.useCallback((l,c)=>r(c),[r]),o=v.Children.toArray(e.children),a=o.map((l,c)=>{if(v.isValidElement(l)&&l.type===wv){const u=l.props.label;return m.jsx(C.Tab,{title:u||m.jsx(C.Skeleton,{width:"60px"}),eventKey:c},u??c)}return l}),s=o[n];return t?m.jsx(C.Tabs,{style:{flexShrink:0,backgroundColor:"var(--pf-v5-c-tabs__link--BackgroundColor)"},children:m.jsx(wv,{children:m.jsx(C.PageSection,{variant:"light",children:m.jsx(C.Skeleton,{})})})}):m.jsxs(m.Fragment,{children:[m.jsx(C.Tabs,{activeKey:n,onSelect:i,inset:{default:"insetSm"},isBox:!0,style:{flexShrink:0,backgroundColor:"var(--pf-v5-c-tabs__link--BackgroundColor)"},children:a}),s]})}function wv(e){return m.jsx(m.Fragment,{children:e.children})}function Gpe(e,t,n,r){return(i,o)=>{e(a=>{r?r(a):i(a.map(s=>t(s)))},o?o.map(a=>n(a)):[])}}function qpe(e,t,n,r){return(i,o)=>{e(a=>{r?r(a):i(t(a))},o?n(o):void 0)}}function Ype(){const[e,t]=v.useState(!0);return v.useEffect(()=>()=>{t(!1)},[]),e}function Kpe(){const e=v.useRef({isMounted:!0});return v.useEffect(()=>()=>{e.current.isMounted=!1},[]),e}function d3(){const e=Ype(),[t,n]=v.useState(e?window.location:void 0),r=v.useCallback(()=>{n(window.location)},[]);v.useEffect(()=>{if(e)return t||r(),window.addEventListener("popstate",r),()=>{window.removeEventListener("popstate",r)}},[e,t,r]);const i=v.useCallback(a=>{window.history.replaceState(null,"",a),r()},[r]),o=v.useCallback(a=>{window.history.replaceState(null,"",a),r()},[r]);return{location:t,push:i,update:o}}function f3(){var i,o;const e=d3(),t=((i=e.location)==null?void 0:i.pathname)||"/",n=v.useMemo(()=>{var s;let a=(s=e.location)==null?void 0:s.search;return a&&a.includes("?specPath=")?a=a.substring(0,a.indexOf("?specPath=")):a&&a.includes("&specPath=")&&(a=a.substring(0,a.indexOf("&specPath="))),new URLSearchParams(a??"/")},[(o=e.location)==null?void 0:o.search]),r=v.useCallback(a=>{const s=a.toString();s?e.update("?"+s):e.update(t)},[e,t]);return[n,r]}const h3=v.createContext({});function ba(){return v.useContext(h3)}function Xpe(e,t){return!e.hidden||!e.hidden(t)?e:null}function Hi(e){return(e==null?void 0:e.substeps)!==void 0}function Zpe(e){const{steps:t,onSubmit:n}=e,[r,i]=v.useState(!1),[o,a]=v.useState(null),[s,l]=v.useState({}),[c,u]=v.useState(e.stepDefaults??{}),[d,f]=v.useState({}),[h,g]=v.useState(),[p,y]=v.useState(!1),[b,x]=f3(),S=v.useMemo(()=>Jpe(t),[t]);v.useEffect(()=>{if(process.env.NODE_ENV==="development")for(const O in e.stepDefaults)t.find(k=>k.id===O)||console.warn(`PageWizardProvider: defaultValue key '${O}' not found in steps.`)},[e.stepDefaults,t]),v.useEffect(()=>{const O=Eh(t,s);o||!O.length||(O[0].substeps?a(O[0].substeps[0]):a(O[0]))},[o,t,s]);const w=v.useCallback(async(O={})=>{var M;const k=m3(t,{...s,...O});if(o===null)return Promise.resolve();if(!Hi(o)&&o.validate&&await o.validate(O,s),(o==null?void 0:o.id)===((M=k[k.length-1])==null?void 0:M.id)){y(!0);try{await n(s)}catch(j){g(j instanceof Error?j:new Error(gc("An error occurred.")))}finally{y(!1)}return}const P=k.findIndex(j=>j.id===(o==null?void 0:o.id)),A=Hi(k[P+1])?k[P+2]:k[P+1];return x(new URLSearchParams("")),l(j=>({...j,...O})),u(j=>({...j,[o==null?void 0:o.id]:O})),a(A),Promise.resolve()},[o,t,n,x,s,g]),_=v.useCallback(()=>{const O=Eh(S,s),k=O.findIndex(P=>P.id===(o==null?void 0:o.id)),D=Hi(O[k-1])?O[k-2]:O[k-1];x(new URLSearchParams("")),a(D)},[o==null?void 0:o.id,S,x,s]),E=v.useMemo(()=>({wizardData:s,setWizardData:l,stepData:c,setStepData:u,steps:e.steps,visibleSteps:Eh(t,s),visibleStepsFlattened:m3(t,s),activeStep:o,setActiveStep:a,stepError:d,setStepError:f,submitError:h,setSubmitError:g,isToggleExpanded:r,setToggleExpanded:i,onNext:w,onBack:_,isSubmitting:p}),[s,l,c,u,e.steps,t,o,a,d,f,h,g,r,i,w,_,p]);return m.jsx(h3.Provider,{value:E,children:e.children})}function Jpe(e){return e.reduce((t,n)=>(t.push(n),Hi(n)&&t.push(...n.substeps),t),[])}function Eh(e,t){return e.filter(n=>Xpe(n,t))}function m3(e,t){return Eh(e,t).reduce((r,i)=>(r.push(i),Hi(i)&&r.push(...i.substeps),r),[])}function g3(e){const{t}=$e(),{activeStep:n,visibleStepsFlattened:r,setSubmitError:i}=ba(),o=(n==null?void 0:n.id)===r[r.length-1].id,a=t(o?"Finish":"Next"),s=Hi(r[0])?(n==null?void 0:n.id)===r[1].id:(n==null?void 0:n.id)===r[0].id,l=s?"pf-v5-c-button pf-m-disabled":"pf-v5-c-button pf-m-secondary";return m.jsxs("footer",{className:"pf-v5-c-wizard__footer border-top bg-lighten","data-cy":"wizard-footer",children:[n!==null&&"inputs"in n?m.jsx(yy,{style:{minWidth:10},children:a}):m.jsx("button",{"data-cy":"wizard-next",className:"pf-v5-c-button pf-m-primary",type:"submit",onClick:()=>{var c;i(void 0),(c=e.onNext)==null||c.call(e)},children:a}),m.jsx("button",{type:"button","data-cy":"wizard-back",className:l,disabled:s,onClick:()=>{var c;i(void 0),(c=e.onBack)==null||c.call(e)},children:t("Back")}),m.jsx("div",{"data-cy":"wizard-cancel",className:"pf-v5-c-wizard__footer-cancel",children:m.jsx("button",{className:"pf-v5-c-button pf-m-link",type:"button",onClick:e.onCancel,children:t("Cancel")})})]})}function Qpe({onCancel:e,disableGrid:t,errorAdapter:n,isVertical:r,singleColumn:i}){const o=wt.useNavigate(),{activeStep:a,stepData:s,onNext:l,onBack:c,submitError:u,isSubmitting:d}=ba(),f=v.useCallback(()=>{e?e():o(-1)},[o,e]);return d?m.jsx(C.Bullseye,{children:m.jsx(C.Spinner,{})}):m.jsxs(t3,{children:[m.jsx(tye,{error:u}),a!==null&&("inputs"in a?m.jsxs(aT,{onSubmit:l,footer:m.jsx(g3,{onBack:c,onCancel:f}),defaultValue:s[a.id],errorAdapter:n,disableGrid:t,isVertical:r,singleColumn:i,isWizard:!0,children:[m.jsx(eye,{}),a.inputs]},a.id):m.jsxs("div",{"data-cy":`wizard-section-${a.id}`,style:{display:"flex",flexDirection:"column",flexGrow:1,overflow:"hidden"},children:[m.jsx(C.PageSection,{"aria-label":gc("Wizard step content"),hasOverflowScroll:!0,isFilled:!0,variant:"light",children:a==null?void 0:a.element}),m.jsx(g3,{onNext:()=>void l({}),onBack:c,onCancel:f})]}))]})}function eye(){const{activeStep:e,setStepError:t}=ba(),{errors:n}=dy(),r=JSON.stringify(n);return v.useEffect(()=>{Object.keys(n).length===0?t({}):e&&t({[e.id]:n})},[n,e,t,r]),null}function tye(e){const{t}=$e(),n=e.error;if(!e.error)return null;if(!(e.error instanceof Error))return typeof e.error=="string"?m.jsx(C.Alert,{variant:"danger",title:e.error}):m.jsx(C.Alert,{variant:"danger",title:t("An error occurred.")});if("message"in e.error&&!n.json)return m.jsx(C.Alert,{variant:"danger",title:e.error.message});if(n.json)return m.jsx(C.Alert,{variant:"danger",title:n.message,isInline:!0,children:Object.values(n.json).map((r,i)=>m.jsx("div",{children:r},i))})}const nye=Ae.div`
518
518
  background-color: var(--pf-v5-global--BackgroundColor--light-100);
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.2624",
4
+ "version": "2.4.2625",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",