@ansible/ansible-ui-framework 2.4.2643 → 2.4.2644

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.umd.cjs CHANGED
@@ -515,7 +515,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
515
515
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CA(e,t){if(e){if(typeof e=="string")return hv(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 hv(e,t)}}function hv(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 Qpe(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 e0e(e){if(Array.isArray(e))return e}function EA(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 Pt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EA(Object(n),!0).forEach(function(r){mv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mv(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=t0e(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 t0e(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 gv=v.forwardRef(function(e,t){var n=e.children,r=Ch(e,Hpe),i=TA(r),o=i.open,a=Ch(i,Upe);return v.useImperativeHandle(t,function(){return{open:o}},[o]),v.createElement(v.Fragment,null,n(Pt(Pt({},a),{},{open:o})))});gv.displayName="Dropzone";var OA={disabled:!1,getFilesFromEvent:hpe,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};gv.defaultProps=OA,gv.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 pv={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function TA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Pt(Pt({},OA),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,M=t.validator,A=v.useMemo(function(){return Bpe(n)},[n]),P=v.useMemo(function(){return Rpe(n)},[n]),j=v.useMemo(function(){return typeof y=="function"?y:kA},[y]),D=v.useMemo(function(){return typeof p=="function"?p:kA},[p]),$=v.useRef(null),L=v.useRef(null),H=v.useReducer(n0e,pv),U=fv(H,2),B=U[0],z=U[1],N=B.isFocused,V=B.isFileDialogActive,Q=v.useRef(typeof window<"u"&&window.isSecureContext&&b&&Wpe()),ne=function(){!Q.current&&V&&setTimeout(function(){if(L.current){var fe=L.current.files;fe.length||(z({type:"closeDialog"}),D())}},300)};v.useEffect(function(){return window.addEventListener("focus",ne,!1),function(){window.removeEventListener("focus",ne,!1)}},[L,V,D,Q]);var ee=v.useRef([]),K=function(fe){$.current&&$.current.contains(fe.target)||(fe.preventDefault(),ee.current=[])};v.useEffect(function(){return S&&(document.addEventListener("dragover",_A,!1),document.addEventListener("drop",K,!1)),function(){S&&(document.removeEventListener("dragover",_A),document.removeEventListener("drop",K))}},[$,S]),v.useEffect(function(){return!r&&x&&$.current&&$.current.focus(),function(){}},[$,x,r]);var re=v.useCallback(function(Y){k?k(Y):console.error(Y)},[k]),ae=v.useCallback(function(Y){Y.preventDefault(),Y.persist(),G(Y),ee.current=[].concat(Ype(ee.current),[Y.target]),wh(Y)&&Promise.resolve(i(Y)).then(function(fe){if(!(Sh(Y)&&!O)){var xe=fe.length,Se=xe>0&&Lpe({files:fe,accept:A,minSize:a,maxSize:o,multiple:s,maxFiles:l,validator:M}),We=xe>0&&!Se;z({isDragAccept:Se,isDragReject:We,isDragActive:!0,type:"setDraggedFiles"}),c&&c(Y)}}).catch(function(fe){return re(fe)})},[i,c,re,O,A,a,o,s,l,M]),le=v.useCallback(function(Y){Y.preventDefault(),Y.persist(),G(Y);var fe=wh(Y);if(fe&&Y.dataTransfer)try{Y.dataTransfer.dropEffect="copy"}catch{}return fe&&d&&d(Y),!1},[d,O]),X=v.useCallback(function(Y){Y.preventDefault(),Y.persist(),G(Y);var fe=ee.current.filter(function(Se){return $.current&&$.current.contains(Se)}),xe=fe.indexOf(Y.target);xe!==-1&&fe.splice(xe,1),ee.current=fe,!(fe.length>0)&&(z({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),wh(Y)&&u&&u(Y))},[$,u,O]),te=v.useCallback(function(Y,fe){var xe=[],Se=[];Y.forEach(function(We){var Ve=bA(We,A),ot=fv(Ve,2),Wt=ot[0],Ft=ot[1],Mt=xA(We,a,o),Be=fv(Mt,2),je=Be[0],yt=Be[1],Gt=M?M(We):null;if(Wt&&je&&!Gt)xe.push(We);else{var Ct=[Ft,yt];Gt&&(Ct=Ct.concat(Gt)),Se.push({file:We,errors:Ct.filter(function(Qn){return Qn})})}}),(!s&&xe.length>1||s&&l>=1&&xe.length>l)&&(xe.forEach(function(We){Se.push({file:We,errors:[$pe]})}),xe.splice(0)),z({acceptedFiles:xe,fileRejections:Se,type:"setFiles"}),f&&f(xe,Se,fe),Se.length>0&&g&&g(Se,fe),xe.length>0&&h&&h(xe,fe)},[z,s,A,a,o,l,f,h,g,M]),ge=v.useCallback(function(Y){Y.preventDefault(),Y.persist(),G(Y),ee.current=[],wh(Y)&&Promise.resolve(i(Y)).then(function(fe){Sh(Y)&&!O||te(fe,Y)}).catch(function(fe){return re(fe)}),z({type:"reset"})},[i,te,re,O]),W=v.useCallback(function(){if(Q.current){z({type:"openDialog"}),j();var Y={multiple:s,types:P};window.showOpenFilePicker(Y).then(function(fe){return i(fe)}).then(function(fe){te(fe,null),z({type:"closeDialog"})}).catch(function(fe){zpe(fe)?(D(fe),z({type:"closeDialog"})):Vpe(fe)?(Q.current=!1,L.current?(L.current.value=null,L.current.click()):re(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."))):re(fe)});return}L.current&&(z({type:"openDialog"}),j(),L.current.value=null,L.current.click())},[z,j,D,b,te,re,P,s]),we=v.useCallback(function(Y){!$.current||!$.current.isEqualNode(Y.target)||(Y.key===" "||Y.key==="Enter"||Y.keyCode===32||Y.keyCode===13)&&(Y.preventDefault(),W())},[$,W]),oe=v.useCallback(function(){z({type:"focus"})},[]),Ie=v.useCallback(function(){z({type:"blur"})},[]),Pe=v.useCallback(function(){w||(Npe()?setTimeout(W,0):W())},[w,W]),qe=function(fe){return r?null:fe},I=function(fe){return _?null:qe(fe)},q=function(fe){return E?null:qe(fe)},G=function(fe){O&&fe.stopPropagation()},he=v.useMemo(function(){return function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},fe=Y.refKey,xe=fe===void 0?"ref":fe,Se=Y.role,We=Y.onKeyDown,Ve=Y.onFocus,ot=Y.onBlur,Wt=Y.onClick,Ft=Y.onDragEnter,Mt=Y.onDragOver,Be=Y.onDragLeave,je=Y.onDrop,yt=Ch(Y,qpe);return Pt(Pt(mv({onKeyDown:I(oi(We,we)),onFocus:I(oi(Ve,oe)),onBlur:I(oi(ot,Ie)),onClick:qe(oi(Wt,Pe)),onDragEnter:q(oi(Ft,ae)),onDragOver:q(oi(Mt,le)),onDragLeave:q(oi(Be,X)),onDrop:q(oi(je,ge)),role:typeof Se=="string"&&Se!==""?Se:"presentation"},xe,$),!r&&!_?{tabIndex:0}:{}),yt)}},[$,we,oe,Ie,Pe,ae,le,X,ge,_,E,r]),me=v.useCallback(function(Y){Y.stopPropagation()},[]),ce=v.useMemo(function(){return function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},fe=Y.refKey,xe=fe===void 0?"ref":fe,Se=Y.onChange,We=Y.onClick,Ve=Ch(Y,Gpe),ot=mv({accept:A,multiple:s,type:"file",style:{display:"none"},onChange:qe(oi(Se,ge)),onClick:qe(oi(We,me)),tabIndex:-1},xe,L);return Pt(Pt({},ot),Ve)}},[L,n,s,ge,r]);return Pt(Pt({},B),{},{isFocused:N&&!r,getRootProps:he,getInputProps:ce,rootRef:$,inputRef:L,open:qe(W)})}function n0e(e,t){switch(t.type){case"focus":return Pt(Pt({},e),{},{isFocused:!0});case"blur":return Pt(Pt({},e),{},{isFocused:!1});case"openDialog":return Pt(Pt({},pv),{},{isFileDialogActive:!0});case"closeDialog":return Pt(Pt({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Pt(Pt({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Pt(Pt({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Pt({},pv);default:return e}}function kA(){}function r0e(e){const{t}=$e(),n=Cu(),{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}=TA({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 i0e(e){return m.jsx(C.Icon,{size:e.size??"md",children:m.jsx(ve.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?Oc("Collapse"):Oc("Expand")})})}function o0e(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 Lc(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(Su,{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 a0e(e){const{t}=$e(),{name:n,format:r,disableCopy:i,disableUpload:o,disableDownload:a,disableExpand:s,validate:l,isArray:c}=e,u=mi(e),{formState:{isSubmitting:d,isValidating:f},setError:h,getValues:g,clearErrors:p,control:y}=ei(),x=qo().dataEditorFormat??"yaml",[S,w]=v.useState(x),[_,E]=v.useState(!e.defaultCollapsed),[O,k]=v.useState(()=>{const ne=g(n);return typeof ne=="string"?ne:ai(ne,x)}),M=Cu(),{writeToClipboard:A}=r1(),P=v.useCallback(()=>A(ai(Vi(g(n),c),S)),[g,c,S,n,A]),j=v.useCallback(ne=>{k(ai(Vi(ne,c),S))},[c,S]),D=v.useRef(null),$=v.useCallback(()=>{var ne;return(ne=D.current)==null?void 0:ne.click()},[]),L=v.useCallback(()=>{const ne=n||"data",ee=S==="json"?"json":"yaml";o0e(ne,ai(Vi(g(n),c),S),ee),M.addAlert({variant:"success",title:t("File downloaded"),timeout:!0})},[M,g,c,S,n,t]);v.useLayoutEffect(()=>{const ne=ai(Vi(g(n),c),S);k(ne)},[g,c,S,n]);const[H,U]=v.useState(!1),B=uT({name:n});v.useEffect(()=>{H||k(ai(Vi(B,c),S))},[H,B,c,S]);const{setValue:z,formState:{defaultValues:N}}=ei(),V=Tc(e.label,e.isRequired),Q=Ys(N,e.name);return m.jsx(Hs,{name:n,control:y,shouldUnregister:!0,render:({field:{value:ne,name:ee,onChange:K},fieldState:{error:re}})=>{var le;function ae(X){try{const te=Vi(X,c);switch(r){case"object":K(te);return;default:K(ai(te,r));break}p(ee)}catch(te){te instanceof Error&&h(ee,{message:te.message})}}return m.jsxs(Lc,{fieldId:u,icon:!s&&m.jsx(i0e,{isExpanded:_,setExpanded:E}),label:e.label,labelHelpTitle:e.labelHelpTitle??e.label,labelHelp:e.labelHelp,additionalControls:m.jsx(PA,{handleCopy:!i&&P,handleUpload:!o&&$,handleDownload:!a&&L,language:S,setLanguage:w,children:e.additionalControls}),helperText:e.helperText,helperTextInvalid:!(l&&f)&&((le=re==null?void 0:re.message)==null?void 0:le.split(`
516
516
  `)),isRequired:e.isRequired,children:[_&&m.jsxs("div",{style:{display:"flex"},children:[m.jsx(r0e,{onDrop:j,isDisabled:d||e.isReadOnly,inputRef:D,children:m.jsx(epe,{"data-cy":u,id:u,name:ee,language:S,value:O,onChange:ae,setError:X=>{X?h(ee,{message:X}):p(ee)},isReadOnly:e.isReadOnly||d,className:e.isReadOnly?"pf-v5-c-form-control pf-m-disabled":"pf-v5-c-form-control",onFocus:()=>U(!0),onBlur:()=>U(!1)})}),m.jsx(Hr,{actions:[{label:t("Undo changes"),type:st.Button,selection:Ge.None,onClick:()=>{z(e.name,Q),k(""),setTimeout(()=>{k(ai(Vi(Q,c),S))},0)},isHidden:()=>!e.enableUndo||HT(ne,Q)},{label:t("Reset to default"),type:st.Button,selection:Ge.None,onClick:()=>{z(e.name,e.defaultValue),k(""),setTimeout(()=>{k(ai(Vi(e.defaultValue,c),S))},0)},isHidden:()=>!e.enableReset||HT(ne,e.defaultValue)}],position:"right"})]}),!_&&m.jsx("div",{className:"pf-v5-c-form-control"})]})},rules:{required:V,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(_u,{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(ve.CopyIcon,{})})})}),i&&m.jsx(C.FlexItem,{children:m.jsx(_u,{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(ve.UploadIcon,{})})})}),r&&m.jsx(C.FlexItem,{children:m.jsx(_u,{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(ve.DownloadIcon,{})})})})]})}function PA(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 Vi(e,t){const n=t?[]:{};if(e==null)return n;const i=()=>{try{e=Xk.load(e)}catch(o){return o instanceof Error||o instanceof ev?new Error(o.message):{}}};if(typeof e=="string")try{e=JSON.parse(e)}catch{i()}return t?Array.isArray(e)?e:[]:Array.isArray(e)?{}:e}function ai(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=Xk.dump(e).trimEnd();switch(n){case"null":case"{}":case"[]":return"";default:return n}}catch(n){return n instanceof Error||n instanceof ev?n.message:""}default:return""}}function ie(...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=ie(...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 s0e=0;function Ao({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-${s0e++}`}render(){const l=this.props,{title:c,className:u}=l,d=ke(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 Sa={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 MA;(function(e){e.right="right",e.left="left"})(MA||(MA={}));var DA;(function(e){e.up="up",e.down="down"})(DA||(DA={}));const l0e=T.createContext({onSelect:e=>{},id:"",toggleIndicatorClass:"",toggleIconClass:"",toggleTextClass:"",menuClass:"",itemClass:"",toggleClass:"",baseClass:"",baseComponent:"div",sectionClass:"",sectionTitleClass:"",sectionComponent:"section",disabledClass:"",plainTextClass:"",menuComponent:"ul"}),c0e=T.createContext({keyHandler:null,sendRef:null}),Ic={UP:"up",DOWN:"down",RIGHT:"right",LEFT:"left"};var An;(function(e){e.success="success",e.error="error",e.warning="warning",e.default="default"})(An||(An={}));const Ke={Tab:"Tab",Space:" ",Escape:"Escape",Enter:"Enter",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight"};function jA(e="pf"){const t=new Date().getTime()+Math.random().toString(36).slice(2);return`${e}-${t}`}function u0e(e,t){return e.replace(/\${(.*?)}/g,(n,r)=>t[r]||"")}function $A(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)?$A(s,l,n,r,i,o):o?(r[s].focus&&r[s].focus(),Hv.findDOMNode(r[s]).focus()):n!=="tab"&&(a?r[s][l].focus():r[s].focus())}function Fc(e,t){const n=e.current.querySelectorAll(t);return Array.prototype.filter.call(n,function(i){return i.tabIndex>="0"})}function LA(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?LA(r,t,n):r}const IA=(e,t,n="",r,i)=>e?Object.entries(e||{}).map(([o,a])=>`${n}${a}${o!=="default"?`-on-${o}`:""}`).map(f0e).map(o=>o.replace(/-?(\dxl)/gi,(a,s)=>`_${s}`)).map(o=>t.modifiers[o]).filter(Boolean).join(" "):"",d0e=e=>e.toUpperCase().replace("-","").replace("_",""),f0e=e=>e.replace(/([-_][a-z])/gi,d0e),FA=!!(typeof window<"u"&&window.document&&window.document.createElement),NA=(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},h0e=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}},m0e=(e,t)=>{const n=h0e(e).width;let r=t;if(NA(t,e)>n){for(;NA(`...${r}`,e)>n;)r=r.substring(1);e.value?e.value=`...${r}`:e.innerText=`...${r}`}else e.value?e.value=t:e.innerText=t},g0e=e=>e.reduce((t,n)=>Object.assign(Object.assign({},t),{[n]:r=>{r.preventDefault()}}),{}),Eh=e=>{e.forEach(t=>{t.current&&clearTimeout(t.current)})},p0e=(e,t="ltr")=>{if(!e)return t;const n=getComputedStyle(e).getPropertyValue("direction");return["ltr","rtl"].includes(n)?n:t};let y0e=0;function v0e(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():jA()}class Nc extends T.Component{constructor(){super(...arguments),this.uniqueElement=this.props.isRandom?v0e():y0e++,this.id=`${this.props.prefix}${this.uniqueElement}`}render(){return this.props.children(this.id)}}Nc.displayName="GenerateId",Nc.defaultProps={prefix:"pf-random-id-",isRandom:!1};let b0e=0;const WA="OUIA-Generated-",yv={};function Wc(e,t,n=!0){return{"data-ouia-component-type":`PF5/${e}`,"data-ouia-safe":n,"data-ouia-component-id":t}}const RA=(e,t,n=!0,r)=>({"data-ouia-component-type":`PF5/${e}`,"data-ouia-safe":n,"data-ouia-component-id":x0e(e,t,r)}),x0e=(e,t,n)=>{const r=v.useMemo(()=>Oh(e,n),[e,n]);return t??r};function Oh(e,t){try{let n;return typeof window<"u"?n=`${window.location.href}-${e}-${t||""}`:n=`${e}-${t||""}`,yv[n]||(yv[n]=0),`${WA}${e}-${t?`${t}-`:""}${++yv[n]}`}catch{return`${WA}${e}-${t?`${t}-`:""}${++b0e}`}}function Rc(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 si(e){if(e.toString()!=="[object Window]"){const t=e.ownerDocument;return t?t.defaultView:window}return e}function vv(e){const t=si(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Bc(e){const t=si(e).Element;return e instanceof t||e instanceof Element}function li(e){const t=si(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function _0e(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function S0e(e){return e===si(e)||!li(e)?vv(e):_0e(e)}function Ir(e){return e?(e.nodeName||"").toLowerCase():null}function Hi(e){return(Bc(e)?e.ownerDocument:e.document).documentElement}function bv(e){return Rc(Hi(e)).left+vv(e).scrollLeft}function Ui(e){return si(e).getComputedStyle(e)}function xv(e){const{overflow:t,overflowX:n,overflowY:r}=Ui(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function w0e(e,t,n=!1){const r=Hi(t),i=Rc(e),o=li(t);let a={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(o||!o&&!n)&&((Ir(t)!=="body"||xv(r))&&(a=S0e(t)),li(t)?(s=Rc(t),s.x+=t.clientLeft,s.y+=t.clientTop):r&&(s.x=bv(r))),{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function _v(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function Th(e){return Ir(e)==="html"?e:e.assignedSlot||e.parentNode||e.host||Hi(e)}function BA(e){return["html","body","#document"].indexOf(Ir(e))>=0?e.ownerDocument.body:li(e)&&xv(e)?e:BA(Th(e))}function zc(e,t=[]){const n=BA(e),r=Ir(n)==="body",i=si(n),o=r?[i].concat(i.visualViewport||[],xv(n)?n:[]):n,a=t.concat(o);return r?a:a.concat(zc(Th(o)))}function C0e(e){return["table","td","th"].indexOf(Ir(e))>=0}function zA(e){if(!li(e)||Ui(e).position==="fixed")return null;const t=e.offsetParent;if(t){const n=Hi(t);if(Ir(t)==="body"&&Ui(t).position==="static"&&Ui(n).position!=="static")return n}return t}function E0e(e){let t=Th(e);for(;li(t)&&["html","body"].indexOf(Ir(t))<0;){const n=Ui(t);if(n.transform!=="none"||n.perspective!=="none"||n.willChange&&n.willChange!=="auto")return t;t=t.parentNode}return null}function Vc(e){const t=si(e);let n=zA(e);for(;n&&C0e(n)&&Ui(n).position==="static";)n=zA(n);return n&&Ir(n)==="body"&&Ui(n).position==="static"?t:n||E0e(e)||t}const yr="top",Fr="bottom",Nr="right",vr="left",Sv="auto",Hc=[yr,Fr,Nr,vr],el="start",wv="end",O0e="clippingParents",VA="viewport",Uc="popper",T0e="reference",HA=Hc.reduce((e,t)=>e.concat([`${t}-${el}`,`${t}-${wv}`]),[]),UA=[...Hc,Sv].reduce((e,t)=>e.concat([t,`${t}-${el}`,`${t}-${wv}`]),[]),k0e=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function A0e(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 P0e(e){const t=A0e(e);return k0e.reduce((n,r)=>n.concat(t.filter(i=>i.phase===r)),[])}function M0e(e){let t;return()=>(t||(t=new Promise(n=>{Promise.resolve().then(()=>{t=void 0,n(e())})})),t)}function ci(e){return e.split("-")[0]}function D0e(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 j0e(e){const t=si(e),n=Hi(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+bv(e),y:s}}function $0e(e){const t=Hi(e),n=vv(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+bv(e);const s=-n.scrollTop;return Ui(r||t).direction==="rtl"&&(a+=Math.max(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:o,x:a,y:s}}function qA(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 Cv(e){return Object.assign(Object.assign({},e),{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function L0e(e){const t=Rc(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 GA(e,t){return t===VA?Cv(j0e(e)):li(t)?L0e(t):Cv($0e(Hi(e)))}function I0e(e){const t=zc(Th(e)),r=["absolute","fixed"].indexOf(Ui(e).position)>=0&&li(e)?Vc(e):e;return Bc(r)?t.filter(i=>Bc(i)&&qA(i,r)&&Ir(i)!=="body"):[]}function F0e(e,t,n){const i=[...t==="clippingParents"?I0e(e):[].concat(t),n],o=i[0],a=i.reduce((s,l)=>{const c=GA(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},GA(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 qc(e){return e.split("-")[1]}function Ev(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function YA({reference:e,element:t,placement:n}){const r=n?ci(n):null,i=n?qc(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 yr:s={x:o,y:e.y-t.height};break;case Fr:s={x:o,y:e.y+e.height};break;case Nr:s={x:e.x+e.width,y:a};break;case vr:s={x:e.x-t.width,y:a};break;default:s={x:e.x,y:e.y}}const l=r?Ev(r):null;if(l!=null){const c=l==="y"?"height":"width";switch(i){case el:s[l]=Math.floor(s[l])-Math.floor(e[c]/2-t[c]/2);break;case wv:s[l]=Math.floor(s[l])+Math.ceil(e[c]/2-t[c]/2);break}}return s}function KA(){return{top:0,right:0,bottom:0,left:0}}function XA(e){return Object.assign(Object.assign({},KA()),e)}function ZA(e,t){return t.reduce((n,r)=>(n[r]=e,n),{})}function Gc(e,t={}){const{placement:n=e.placement,boundary:r=O0e,rootBoundary:i=VA,elementContext:o=Uc,altBoundary:a=!1,padding:s=0}=t,l=XA(typeof s!="number"?s:ZA(s,Hc)),c=o===Uc?T0e:Uc,u=e.elements.reference,d=e.rects.popper,f=e.elements[a?c:o],h=F0e(Bc(f)?f:f.contextElement||Hi(e.elements.popper),r,i),g=Rc(u),p=YA({reference:g,element:d,strategy:"absolute",placement:n}),y=Cv(Object.assign(Object.assign({},d),p)),b=o===Uc?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===Uc&&S){const w=S[n];Object.keys(x).forEach(_=>{const E=[Nr,Fr].indexOf(_)>=0?1:-1,O=[yr,Fr].indexOf(_)>=0?"y":"x";x[_]+=w[O]*E})}return x}const JA={placement:"bottom",modifiers:[],strategy:"absolute"};function QA(...e){return!e.some(t=>!(t&&typeof t.getBoundingClientRect=="function"))}function N0e(e={}){const{defaultModifiers:t=[],defaultOptions:n=JA}=e;return function(i,o,a=n){let s={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},JA),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:Bc(i)?zc(i):i.contextElement?zc(i.contextElement):[],popper:zc(o)};const g=P0e(D0e([...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(QA(h,g)){s.rects={reference:w0e(h,Vc(g),s.options.strategy==="fixed"),popper:_v(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:M0e(()=>new Promise(h=>{u.forceUpdate(),h(s)})),destroy(){f(),c=!0}};if(!QA(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 kh={passive:!0};function W0e({state:e,instance:t,options:n}){const{scroll:r=!0,resize:i=!0}=n,o=si(e.elements.popper),a=[...e.scrollParents.reference,...e.scrollParents.popper];return r&&a.forEach(s=>{s.addEventListener("scroll",t.update,kh)}),i&&o.addEventListener("resize",t.update,kh),()=>{r&&a.forEach(s=>{s.removeEventListener("scroll",t.update,kh)}),i&&o.removeEventListener("resize",t.update,kh)}}const R0e={name:"eventListeners",enabled:!0,phase:"write",fn:()=>{},effect:W0e,data:{}};function B0e({state:e,name:t}){e.modifiersData[t]=YA({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const z0e={name:"popperOffsets",enabled:!0,phase:"read",fn:B0e,data:{}},V0e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function H0e({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 e3({popper:e,popperRect:t,placement:n,offsets:r,position:i,gpuAcceleration:o,adaptive:a}){let{x:s,y:l}=H0e(r);const c=r.hasOwnProperty("x"),u=r.hasOwnProperty("y");let d=vr,f=yr;const h=window;if(a){let p=Vc(e);p===si(e)&&(p=Hi(e)),n===yr&&(f=Fr,l-=p.clientHeight-t.height,l*=o?1:-1),n===vr&&(d=Nr,s-=p.clientWidth-t.width,s*=o?1:-1)}const g=Object.assign({position:i},a&&V0e);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 U0e({state:e,options:t}){const{gpuAcceleration:n=!0,adaptive:r=!0}=t,i={placement:ci(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),e3(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),e3(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 q0e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:U0e,data:{}};function G0e({state:e}){Object.keys(e.elements).forEach(t=>{const n=e.styles[t]||{},r=e.attributes[t]||{},i=e.elements[t];!li(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 Y0e({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),{});!li(r)||!Ir(r)||(Object.assign(r.style,a),Object.keys(i).forEach(s=>{r.removeAttribute(s)}))})}}const K0e={name:"applyStyles",enabled:!0,phase:"write",fn:G0e,effect:Y0e,requires:["computeStyles"]};function X0e(e,t,n){const r=ci(e),i=[vr,yr].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,[vr,Nr].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}function Z0e({state:e,options:t,name:n}){const{offset:r=[0,0]}=t,i=UA.reduce((s,l)=>(s[l]=X0e(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 J0e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Z0e},Q0e={left:"right",right:"left",bottom:"top",top:"bottom"};function Ah(e){return e.replace(/left|right|bottom|top/g,t=>Q0e[t])}const eye={start:"end",end:"start"};function t3(e){return e.replace(/start|end/g,t=>eye[t])}function tye(e,t={}){const{placement:n,boundary:r,rootBoundary:i,padding:o,flipVariations:a,allowedAutoPlacements:s=UA}=t,l=qc(n),c=l?a?HA:HA.filter(f=>qc(f)===l):Hc;let u=c.filter(f=>s.indexOf(f)>=0);u.length===0&&(u=c);const d=u.reduce((f,h)=>(f[h]=Gc(e,{placement:h,boundary:r,rootBoundary:i,padding:o})[ci(h)],f),{});return Object.keys(d).sort((f,h)=>d[f]-d[h])}function nye(e){if(ci(e)===Sv)return[];const t=Ah(e);return[t3(e),t,t3(t)]}function rye({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=ci(f)===f,p=o||(g||!u?[Ah(f)]:nye(f)),y=[f,...p].reduce((E,O)=>E.concat(ci(O)===Sv?tye(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=ci(O),M=qc(O)===el,A=[yr,Fr].indexOf(k)>=0,P=A?"width":"height",j=Gc(e,{placement:O,boundary:s,rootBoundary:l,altBoundary:c,padding:a});let D=A?M?Nr:vr:M?Fr:yr;b[P]>x[P]&&(D=Ah(D));const $=Ah(D),L=[];if(r&&L.push(j[k]<=0),i&&L.push(j[D]<=0,j[$]<=0),L.every(H=>H)){_=O,w=!1;break}S.set(O,L)}if(w){const E=u?3:1;for(let O=E;O>0;O--){const k=y.find(M=>{const A=S.get(M);if(A)return A.slice(0,O).every(P=>P)});if(k){_=k;break}}}e.placement!==_&&(e.modifiersData[n]._skip=!0,e.placement=_,e.reset=!0)}const iye={name:"flip",enabled:!0,phase:"main",fn:rye,requiresIfExists:["offset"],data:{_skip:!1}};function oye(e){return e==="x"?"y":"x"}function Ph(e,t,n){return Math.max(e,Math.min(t,n))}function aye({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=Gc(e,{boundary:o,rootBoundary:a,padding:l,altBoundary:s}),f=ci(e.placement),h=qc(e.placement),g=!h,p=Ev(f),y=oye(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"?yr:vr,O=p==="y"?Fr:Nr,k=p==="y"?"height":"width",M=b[p],A=b[p]+d[E],P=b[p]-d[O],j=c?-S[k]/2:0,D=h===el?x[k]:S[k],$=h===el?-S[k]:-x[k],L=e.elements.arrow,H=c&&L?_v(L):{width:0,height:0},U=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:KA(),B=U[E],z=U[O],N=Ph(0,x[k],H[k]),V=g?x[k]/2-j-N-B-w:D-N-B-w,Q=g?-x[k]/2+j+N+z+w:$+N+z+w,ne=e.elements.arrow&&Vc(e.elements.arrow),ee=ne?p==="y"?ne.clientTop||0:ne.clientLeft||0:0,K=e.modifiersData.offset?e.modifiersData.offset[e.placement][p]:0,re=b[p]+V-K-ee,ae=b[p]+Q-K,le=Ph(c?Math.min(A,re):A,M,c?Math.max(P,ae):P);b[p]=le,_[p]=le-M}if(i){const E=p==="x"?yr:vr,O=p==="x"?Fr:Nr,k=b[y],M=k+d[E],A=k-d[O],P=Ph(M,k,A);b[y]=P,_[y]=P-k}e.modifiersData[n]=_}}const sye={name:"preventOverflow",enabled:!0,phase:"main",fn:aye,requiresIfExists:["offset"]};function lye({state:e,name:t}){const n=e.elements.arrow,r=e.modifiersData.popperOffsets,i=ci(e.placement),o=Ev(i),s=[vr,Nr].indexOf(i)>=0?"height":"width";if(!n||!r)return;const l=e.modifiersData[`${t}#persistent`].padding,c=_v(n),u=o==="y"?yr:vr,d=o==="y"?Fr:Nr,f=e.rects.reference[s]+e.rects.reference[o]-r[o]-e.rects.popper[s],h=r[o]-e.rects.reference[o],g=Vc(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=Ph(b,S,x),_=o;e.modifiersData[t]={[_]:w,centerOffset:w-S}}function cye({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)||qA(e.elements.popper,r)&&(e.elements.arrow=r,e.modifiersData[`${n}#persistent`]={padding:XA(typeof i!="number"?i:ZA(i,Hc))}))}const uye={name:"arrow",enabled:!0,phase:"main",fn:lye,effect:cye,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function n3(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 r3(e){return[yr,Nr,Fr,vr].some(t=>e[t]>=0)}function dye({state:e,name:t}){const n=e.rects.reference,r=e.rects.popper,i=e.modifiersData.preventOverflow,o=Gc(e,{elementContext:"reference"}),a=Gc(e,{altBoundary:!0}),s=n3(o,n),l=n3(a,r,i),c=r3(s),u=r3(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 fye=N0e({defaultModifiers:[R0e,z0e,q0e,K0e,J0e,iye,sye,uye,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:dye}]}),i3=FA?T.useLayoutEffect:T.useEffect,hye=(e,t)=>JSON.stringify(e)===JSON.stringify(t),o3=e=>e.reduce((t,[n,r])=>(t[n]=r,t),{}),mye=[],gye=(e,t,n={})=>{const r=T.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||mye},[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:o3(d.map(f=>[f,u.styles[f]||{}])),attributes:o3(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 hye(r.current,u)?r.current||u:(r.current=u,u)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,s]),c=T.useRef();return i3(()=>{c&&c.current&&c.current.setOptions(l)},[l]),i3(()=>{if(e==null||t==null)return;const d=(n.createPopper||fye)(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}},pye={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"},yye=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=>pye[t]),vye=e=>`opacity ${e}ms cubic-bezier(.54, 1.5, .38, 1.11)`,Ov=({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:M="flip",triggerRef:A,popperRef:P,animationDuration:j=0,entryDelay:D=0,exitDelay:$=0,onHidden:L=()=>{},onHide:H=()=>{},onMount:U=()=>{},onShow:B=()=>{},onShown:z=()=>{},preventOverflow:N=!1})=>{var V;const[Q,ne]=T.useState(null),[ee,K]=T.useState(null),[re,ae]=T.useState(null),[le,X]=T.useState(null),[te,ge]=T.useState(!1),[W,we]=T.useState(0),[oe,Ie]=T.useState(u),Pe=T.useRef(null),qe=T.useRef(null),I=T.useRef(null),q=T.useRef(),G=ee||Q,he=u||oe,me=(V=(A==null?void 0:A.current)||Q)===null||V===void 0?void 0:V.parentElement,ce=p0e(me),Y=T.useMemo(()=>{const Ee={left:"left",right:"right",center:"center"};return{ltr:Object.assign({start:"left",end:"right"},Ee),rtl:Object.assign({start:"right",end:"left"},Ee)}[ce][r]},[r,ce]),fe=T.useCallback(Ee=>b(Ee,G,re),[he,Q,ee,re,b]);T.useEffect(()=>{ge(!0),U()},[]),T.useEffect(()=>()=>{Eh([Pe,I,qe])},[]),T.useEffect(()=>{A&&(A.current?K(A.current):typeof A=="function"&&K(A()))},[A,e]),T.useEffect(()=>{P&&(P.current?ae(P.current):typeof P=="function"&&ae(P()))},[he,P]),T.useEffect(()=>{const Ee=new MutationObserver(()=>{Be&&Be()});return re&&Ee.observe(re,{attributes:!0,childList:!0,subtree:!0}),()=>{Ee.disconnect()}},[re]);const xe=(Ee,ct,yn,Rt=!1)=>{Ee&&ct&&ct.addEventListener(yn,Ee,{capture:Rt})},Se=(Ee,ct,yn,Rt=!1)=>{Ee&&ct&&ct.removeEventListener(yn,Ee,{capture:Rt})};T.useEffect(()=>(xe(h,G,"mouseenter"),xe(g,G,"mouseleave"),xe(p,G,"focus"),xe(y,G,"blur"),xe(x,G,"click"),xe(S,G,"keydown"),xe(w,re,"click"),xe(_,re,"mouseenter"),xe(E,re,"mouseleave"),b&&xe(fe,document,"click",!0),xe(O,document,"keydown",!0),()=>{Se(h,G,"mouseenter"),Se(g,G,"mouseleave"),Se(p,G,"focus"),Se(y,G,"blur"),Se(x,G,"click"),Se(S,G,"keydown"),Se(w,re,"click"),Se(_,re,"mouseenter"),Se(E,re,"mouseleave"),b&&Se(fe,document,"click",!0),Se(O,document,"keydown",!0)}),[Q,re,h,g,p,y,x,S,w,_,E,b,O,ee]);const We=()=>{if(i)return i;let Ee=n==="up"?"top":"bottom";return Y!=="center"&&(Ee=`${Ee}-${Y==="right"?"end":"start"}`),Ee},Ve=T.useMemo(We,[n,Y,i]),ot=T.useMemo(()=>yye(We()),[n,Y,i]),Wt=T.useMemo(()=>({name:"widthMods",enabled:o!==void 0||a!==void 0||s!==void 0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:Ee})=>{const ct=Ee.rects.reference.width;o&&(Ee.styles.popper.width=o==="trigger"?`${ct}px`:o),a&&(Ee.styles.popper.minWidth=a==="trigger"?`${ct}px`:a),s&&(Ee.styles.popper.maxWidth=s==="trigger"?`${ct}px`:s)},effect:({state:Ee})=>{const ct=Ee.elements.reference.offsetWidth;return o&&(Ee.elements.popper.style.width=o==="trigger"?`${ct}px`:o),a&&(Ee.elements.popper.style.minWidth=a==="trigger"?`${ct}px`:a),s&&(Ee.elements.popper.style.maxWidth=s==="trigger"?`${ct}px`:s),()=>{}}}),[o,a,s]),{styles:Ft,attributes:Mt,update:Be,forceUpdate:je}=gye(G,re,{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:M==="flip"?[ot]:M}},Wt]});T.useEffect(()=>{var Ee,ct,yn,Rt,Aa,Ki,Xi;const Mo=((Rt=(yn=(ct=(Ee=t==null?void 0:t.props)===null||Ee===void 0?void 0:Ee.children)===null||ct===void 0?void 0:ct[1])===null||yn===void 0?void 0:yn.props)===null||Rt===void 0?void 0:Rt.children)||((Xi=(Ki=(Aa=t==null?void 0:t.props)===null||Aa===void 0?void 0:Aa.children)===null||Ki===void 0?void 0:Ki.props)===null||Xi===void 0?void 0:Xi.children);X(Mo),Mo&&le&&Mo!==le&&je&&je()},[t]),T.useEffect(()=>{q.current<$&&(Eh([Pe,I]),I.current=setTimeout(()=>{Pe.current=setTimeout(()=>{Ie(!1)},j)},$)),q.current=$},[$]);const yt=()=>{B(),Eh([Pe,I]),qe.current=setTimeout(()=>{Ie(!0),we(1),z()},D)},Gt=()=>{H(),Eh([qe]),I.current=setTimeout(()=>{we(0),Pe.current=setTimeout(()=>{Ie(!1),L()},j)},$)};T.useEffect(()=>{u?yt():Gt()},[u]);const Ct=()=>{if(Mt&&Mt.popper&&Mt.popper["data-popper-placement"]){const Ee=Mt.popper["data-popper-placement"];return d[Ee]}return d.top},Qn=Object.assign({className:ie(t.props&&t.props.className,d&&Ct()),style:Object.assign(Object.assign(Object.assign({},t.props&&t.props.style||{}),Ft.popper),{zIndex:c,opacity:W,transition:vye(j)})},Mt.popper),Ot=()=>{const Ee=T.cloneElement(t,Qn);return P?Ee:T.createElement("div",{style:{display:"contents"},ref:ct=>ae(ct==null?void 0:ct.firstElementChild)},Ee)},Rr=()=>{if(l==="inline")return Ot();{const Ee=typeof l=="function"?l():l;return Hv.createPortal(Ot(),Ee)}};return T.createElement(T.Fragment,null,!A&&e&&T.isValidElement(e)&&T.createElement("div",{style:{display:"contents"},ref:Ee=>ne(Ee==null?void 0:Ee.firstElementChild)},e),A&&e&&T.isValidElement(e)&&e,te&&he&&Rr())};Ov.displayName="Popper";const bye=(e,t,n)=>{let r;if(FA){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()}},pn={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"},a3=e=>{var{className:t,children:n,isLeftAligned:r}=e,i=ke(e,["className","children","isLeftAligned"]);return T.createElement("div",Object.assign({className:ie(pn.tooltipContent,r&&pn.modifiers.textAlignLeft,t)},i),n)};a3.displayName="TooltipContent";const s3=e=>{var{className:t}=e,n=ke(e,["className"]);return T.createElement("div",Object.assign({className:ie(pn.tooltipArrow,t)},n))};s3.displayName="TooltipArrow";const l3={name:"--pf-v5-c-tooltip--MaxWidth",value:"18.75rem",var:"var(--pf-v5-c-tooltip--MaxWidth)"};var c3;(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"})(c3||(c3={}));let xye=1;const Mh=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=l3.value,distance:g=15,aria:p="describedby",flipBehavior:y=["top","right","bottom","left","top","right","bottom"],id:b=`pf-tooltip-${xye++}`,children:x,animationDuration:S=300,triggerRef:w,"aria-live":_=w?"polite":"off",onTooltipHidden:E=()=>{}}=e,O=ke(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"),M=r.includes("focus"),A=r.includes("click"),P=r==="manual",[j,D]=T.useState(!1),$=T.createRef(),L=ee=>{P||ee.key===Ke.Escape&&j&&B()},H=ee=>{ee.key===Ke.Enter&&(j?B():U())};T.useEffect(()=>{i?U():B()},[i]);const U=()=>{D(!0)},B=()=>{D(!1)},z={top:pn.modifiers.top,bottom:pn.modifiers.bottom,left:pn.modifiers.left,right:pn.modifiers.right,"top-start":pn.modifiers.topLeft,"top-end":pn.modifiers.topRight,"bottom-start":pn.modifiers.bottomLeft,"bottom-end":pn.modifiers.bottomRight,"left-start":pn.modifiers.leftTop,"left-end":pn.modifiers.leftBottom,"right-start":pn.modifiers.rightTop,"right-end":pn.modifiers.rightBottom},N=h!==l3.value,V=T.createElement("div",Object.assign({"aria-live":_,className:ie(pn.tooltip,s),role:"tooltip",id:b,style:{maxWidth:N?h:null},ref:$},O),T.createElement(s3,null),T.createElement(a3,{isLeftAligned:o},t)),Q=(ee,K)=>{j?B():ee.target===K&&U()},ne=()=>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(Ov,{trigger:p!=="none"&&j?ne():x,triggerRef:w,popper:V,popperRef:$,minWidth:f!==void 0?f:"revert",appendTo:u,isVisible:j,positionModifiers:z,distance:g,placement:n,onMouseEnter:k&&U,onMouseLeave:k&&B,onPopperMouseEnter:k&&U,onPopperMouseLeave:k&&B,onFocus:M&&U,onBlur:M&&B,onDocumentClick:A&&Q,onDocumentKeyDown:P?null:L,onTriggerEnter:P?null:H,enableFlip:a,zIndex:d,flipBehavior:y,animationDuration:S,entryDelay:l,exitDelay:c,onHidden:E})};Mh.displayName="Tooltip";class Tv 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,Ic.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,Ic.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,Ic.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,Ic.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,Ic.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:M}=t,A=ke(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 P=ie(_&&Sa.modifiers.icon,c&&Sa.modifiers.ariaDisabled,n);a==="a"?A["aria-disabled"]=l||c:a==="button"&&(A["aria-disabled"]=l||c,A.type=A.type||"button");const j=L=>h?T.createElement(Mh,Object.assign({content:h},g),L):L,D=L=>T.cloneElement(L,Object.assign(Object.assign({},O&&{className:ie(L.props.className,P)}),this.props.role!=="separator"&&{role:s,ref:this.componentRef})),$=L=>{const H=L,U=k?T.createElement(T.Fragment,null,T.createElement("div",{className:Sa.dropdownMenuItemMain},_&&T.createElement("span",{className:ie(Sa.dropdownMenuItemIcon)},_),r),T.createElement("div",{className:Sa.dropdownMenuItemDescription},k)):T.createElement(T.Fragment,null,_&&T.createElement("span",{className:ie(Sa.dropdownMenuItemIcon)},_),r);return T.createElement(H,Object.assign({},A,l||c?g0e(M):null,{href:f,ref:this.ref,className:P,id:y,role:s}),U)};return T.createElement(l0e.Consumer,null,({onSelect:L,itemClass:H,disabledClass:U,plainTextClass:B})=>(this.props.role!=="separator"&&(P=ie(P,l&&U,u&&B,H,k&&Sa.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:z=>{!l&&!c&&(o==null||o(z),L==null||L(z))},id:p}),j(T.isValidElement(a)?D(a):$(a)),x&&this.extendAdditionalChildRef())))}}Tv.displayName="InternalDropdownItem",Tv.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 kv={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 Dh;(function(e){e.hr="hr",e.li="li",e.div="div"})(Dh||(Dh={}));const br=e=>{var{className:t,component:n=Dh.hr,inset:r,orientation:i}=e,o=ke(e,["className","component","inset","orientation"]);const a=n;return T.createElement(a,Object.assign({className:ie(kv.divider,IA(r,kv),IA(i,kv),t)},n!=="hr"&&{role:"separator"},o))};br.displayName="Divider";const Av=e=>{var{className:t="",ref:n,ouiaId:r,ouiaSafe:i}=e,o=ke(e,["className","ref","ouiaId","ouiaSafe"]);const a=RA(Av.displayName,r,i);return T.createElement(c0e.Consumer,null,s=>T.createElement(Tv,Object.assign({},o,{context:s,component:T.createElement(br,{component:Dh.div}),className:t,role:"separator"},a)))};Av.displayName="DropdownSeparator";const u3=Ao({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}),Yc={badge:"pf-v5-c-badge",modifiers:{read:"pf-m-read",unread:"pf-m-unread"},themeDark:"pf-v5-theme-dark"},d3=e=>{var{isRead:t=!1,className:n="",children:r="",screenReaderText:i}=e,o=ke(e,["isRead","className","children","screenReaderText"]);return T.createElement("span",Object.assign({},o,{className:ie(Yc.badge,t?Yc.modifiers.read:Yc.modifiers.unread,n)}),r,i&&T.createElement("span",{className:"pf-v5-screen-reader"},i))};d3.displayName="Badge";const jh={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"},_ye={name:"--pf-v5-c-spinner--diameter",value:"3.375rem",var:"var(--pf-v5-c-spinner--diameter)"};var Pv;(function(e){e.sm="sm",e.md="md",e.lg="lg",e.xl="xl"})(Pv||(Pv={}));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=ke(e,["className","size","aria-valuetext","diameter","isInline","aria-label","aria-labelledBy"]);return T.createElement("svg",Object.assign({className:ie(jh.spinner,o?jh.modifiers.inline:jh.modifiers[n],t),role:"progressbar","aria-valuetext":r,viewBox:"0 0 100 100"},i&&{style:{[_ye.name]:i}},a&&{"aria-label":a},s&&{"aria-labelledBy":s},!a&&!s&&{"aria-label":"Contents"},l),T.createElement("circle",{className:jh.spinnerPath,cx:"50",cy:"50",r:"45",fill:"none"}))};Mv.displayName="Spinner";const f3=e=>{var t=ke(e,["children"]);return T.createElement(Av,Object.assign({},t))};f3.displayName="ApplicationLauncherSeparator";const Sye=Ao({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}),wye=(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}))},Cye=(e,t,n)=>t?e.map(r=>T.cloneElement(r,{children:T.Children.map(r.props.children,i=>i.type===f3||i.type===br?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)})),Nt={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 ui;(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"})(ui||(ui={}));var Dv;(function(e){e.button="button",e.submit="submit",e.reset="reset"})(Dv||(Dv={}));var Kc;(function(e){e.default="default",e.sm="sm",e.lg="lg"})(Kc||(Kc={}));const Eye=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=Kc.default,inoperableEvents:g=["onClick","onKeyPress"],isInline:p=!1,type:y=Dv.button,variant:b=ui.primary,iconPosition:x="start","aria-label":S=null,icon:w=null,ouiaId:_,ouiaSafe:E=!0,tabIndex:O=null,innerRef:k,countOptions:M}=e,A=ke(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 P=RA($h.displayName,_,E,b),j=r,D=j==="button",$=p&&j==="span",L=g.reduce((U,B)=>Object.assign(Object.assign({},U),{[B]:z=>{z.preventDefault()}}),{}),H=()=>{if(a)return D?null:-1;if(s)return null;if($)return 0};return T.createElement(j,Object.assign({},A,s?L:null,{"aria-disabled":a||s,"aria-label":S,className:ie(Nt.button,Nt.modifiers[b],o&&Nt.modifiers.block,a&&Nt.modifiers.disabled,s&&Nt.modifiers.ariaDisabled,i&&Nt.modifiers.active,p&&b===ui.link&&Nt.modifiers.inline,c&&(b===ui.secondary||b===ui.link)&&Nt.modifiers.danger,l!==null&&b!==ui.plain&&Nt.modifiers.progress,l&&Nt.modifiers.inProgress,h===Kc.sm&&Nt.modifiers.small,h===Kc.lg&&Nt.modifiers.displayLg,n),disabled:D?a:null,tabIndex:O!==null?O:H(),type:D||$?y:null,role:$?"button":null,ref:k},P),l&&T.createElement("span",{className:ie(Nt.buttonProgress)},T.createElement(Mv,{size:Pv.md,isInline:p,"aria-valuetext":u,"aria-label":f,"aria-labelledby":d})),b===ui.plain&&t===null&&w?w:null,b!==ui.plain&&w&&(x==="start"||x==="left")&&T.createElement("span",{className:ie(Nt.buttonIcon,Nt.modifiers.start)},w),t,b!==ui.plain&&w&&(x==="end"||x==="right")&&T.createElement("span",{className:ie(Nt.buttonIcon,Nt.modifiers.end)},w),M&&T.createElement("span",{className:ie(Nt.buttonCount,M.className)},T.createElement(d3,{isRead:M.isRead},M.count)))},$h=T.forwardRef((e,t)=>T.createElement(Eye,Object.assign({innerRef:t},e)));$h.displayName="Button";const Oye=Ao({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}),Tye={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"},Wr={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"},h3=Ao({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}),m3=Ao({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}),g3=Ao({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}),kye={success:h3,error:m3,warning:g3},p3=e=>{var{status:t,customIcon:n,className:r}=e,i=ke(e,["status","customIcon","className"]);const o=t&&kye[t];return T.createElement("span",Object.assign({className:ie(Wr.formControlIcon,t&&Wr.modifiers.status,r)},i),n||T.createElement(o,null))};var jv;(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"})(jv||(jv={}));var y3;(function(e){e.default="default",e.plain="plain"})(y3||(y3={}));class Xc 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&&m0e(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:Oh(Xc.displayName)}}componentDidMount(){if(this.props.isLeftTruncated||this.props.isStartTruncated){const t=this.props.innerRef||this.inputRef;this.observer=bye(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=ke(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:ie(Wr.formControl,y&&Wr.modifiers.readonly,y==="plain"&&Wr.modifiers.plain,x&&Wr.modifiers.disabled,(h||(g==null?void 0:g.isExpanded))&&Wr.modifiers.expanded,S&&Wr.modifiers.icon,O&&Wr.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===An.error},k,{required:b,disabled:x,readOnly:!!y||p,ref:n||this.inputRef,placeholder:a},Wc(Lh.displayName,w!==void 0?w:this.state.ouiaStateId,_))),(S||O)&&T.createElement("span",{className:ie(Wr.formControlUtilities)},S&&T.createElement(p3,{customIcon:S}),O&&T.createElement(p3,{status:s})))}}Xc.displayName="TextInputBase",Xc.defaultProps={"aria-label":null,isRequired:!1,validated:"default",isDisabled:!1,isExpanded:!1,type:jv.text,isLeftTruncated:!1,isStartTruncated:!1,onChange:()=>{},ouiaSafe:!0};const Lh=T.forwardRef((e,t)=>T.createElement(Xc,Object.assign({},e,{innerRef:t})));Lh.displayName="TextInput";const v3=Ao({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}),ue={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"},b3=Ao({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}),Ih={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"}},$v=T.createContext(null);$v.Provider;const Lv=$v.Consumer;var ze;(function(e){e.single="single",e.checkbox="checkbox",e.typeahead="typeahead",e.typeaheadMulti="typeaheadmulti"})(ze||(ze={}));var Zc;(function(e){e.right="right",e.left="left"})(Zc||(Zc={}));var Jc;(function(e){e.up="up",e.down="down"})(Jc||(Jc={}));const Qc="input, button, select, textarea, a[href]";class di 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===Ke.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===Ke.ArrowUp?a(o,n,"up"):t.key===Ke.ArrowDown?a(o,n,"down"):t.key===Ke.ArrowLeft?a(o,n,"left"):t.key===Ke.ArrowRight?a(o,n,"right"):t.key===Ke.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:M,isLastOptionBeforeFooter:A,isGrouped:P=!1}=t,j=ke(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"]),D=x;!i&&w!==null&&console.error("Please provide an id to use the favorites feature.");const $=i||jA("select-option"),L=z=>T.createElement("button",{className:ie(ue.selectMenuItem,ue.modifiers.action,ue.modifiers.favoriteAction),"aria-label":w?_:E,onClick:()=>{z($.replace("favorite-",""),w)},onKeyDown:N=>{this.onKeyDown(N,1,()=>z($.replace("favorite-",""),w))},ref:this.favoriteRef},T.createElement("span",{className:ie(ue.selectMenuItemActionIcon)},T.createElement(Sye,null))),H=a?T.createElement("span",{className:ie(ue.selectMenuItemRow)},T.createElement("span",{className:ie(ue.selectMenuItemText)},n||s&&s.toString&&s.toString()),T.createElement("span",{className:ie(ue.selectMenuItemCount)},a)):n||s.toString(),U=z=>{M(),l(z)},B=(z,N,V,Q,ne,ee)=>{if(V!==ze.checkbox&&k&&P)return T.createElement("div",{role:"presentation",className:ie(ue.selectListItem,k&&ue.modifiers.loading,r)},n);if(V!==ze.checkbox&&O&&P)return T.createElement("div",null,T.createElement("button",Object.assign({},j,{role:"presentation",className:ie(ue.selectMenuItem,ue.modifiers.load,r),onClick:K=>{U(K),K.stopPropagation()},ref:this.ref,type:"button"}),n||s.toString()));if(V!==ze.checkbox)return T.createElement("li",{id:$,role:"presentation",className:ie(k&&ue.selectListItem,!k&&ue.selectMenuWrapper,w&&ue.modifiers.favorite,g&&ue.modifiers.focus,k&&ue.modifiers.loading),ref:this.liRef},k&&n,O&&!P&&T.createElement("button",Object.assign({},j,{className:ie(ue.selectMenuItem,ue.modifiers.load,r),onClick:K=>{U(K),K.stopPropagation()},ref:this.ref,onKeyDown:K=>{this.onKeyDown(K,0)},type:"button"}),H),!k&&!O&&T.createElement(T.Fragment,null,T.createElement(D,Object.assign({},j,{className:ie(ue.selectMenuItem,O&&ue.modifiers.load,f&&ue.modifiers.selected,c&&ue.modifiers.disabled,o&&ue.modifiers.description,w!==null&&ue.modifiers.link,r),onClick:K=>{c||(l(K),z(K,s,u),ee&&N())},role:"option","aria-selected":f||null,ref:this.ref,onKeyDown:K=>{this.onKeyDown(K,0)},type:"button"}),o&&T.createElement(T.Fragment,null,T.createElement("span",{className:ie(ue.selectMenuItemMain)},H,f&&T.createElement("span",{className:ie(ue.selectMenuItemIcon)},T.createElement(v3,{"aria-hidden":!0}))),T.createElement("span",{className:ie(ue.selectMenuItemDescription)},o)),!o&&T.createElement(T.Fragment,null,H,f&&T.createElement("span",{className:ie(ue.selectMenuItemIcon)},T.createElement(v3,{"aria-hidden":!0})))),w!==null&&i&&L(ne)));if(V===ze.checkbox&&O)return T.createElement("button",{className:ie(ue.selectMenuItem,ue.modifiers.load,g&&ue.modifiers.focus,r),onKeyDown:K=>{this.onKeyDown(K,0,void 0,!0)},onClick:K=>{U(K),K.stopPropagation()},ref:this.ref},n||s&&s.toString&&s.toString());if(V===ze.checkbox&&k)return T.createElement("div",{className:ie(ue.selectListItem,k&&ue.modifiers.loading,r)},n);if(V===ze.checkbox&&!d&&!k&&!O)return T.createElement("label",Object.assign({},j,{className:ie(Ih.check,ue.selectMenuItem,c&&ue.modifiers.disabled,o&&ue.modifiers.description,r),onKeyDown:K=>{this.onKeyDown(K,0,void 0,!0)}}),T.createElement("input",{id:S||`${Q}-${s.toString()}`,className:ie(Ih.checkInput),type:"checkbox",onChange:K=>{c||(l(K),z(K,s))},ref:this.ref,checked:h||!1,disabled:c}),T.createElement("span",{className:ie(Ih.checkLabel,c&&ue.modifiers.disabled)},H),o&&T.createElement("div",{className:ie(Ih.checkDescription)},o));if(V===ze.checkbox&&d&&!k&&!O)return T.createElement("div",null,T.createElement(D,Object.assign({},j,{className:ie(ue.selectMenuItem,f&&ue.modifiers.selected,c&&ue.modifiers.disabled,r),role:"option","aria-selected":f||null,ref:this.ref,onKeyDown:K=>{this.onKeyDown(K,0,void 0,!0)},type:"button"}),H))};return T.createElement(Lv,null,({onSelect:z,onClose:N,variant:V,inputIdPrefix:Q,onFavorite:ne,shouldResetOnSelect:ee})=>T.createElement(T.Fragment,null,B(z,N,V,Q,ne,ee)))}}di.displayName="SelectOption",di.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 wa=e=>{var{children:t=[],className:n="",label:r="",titleId:i=""}=e,o=ke(e,["children","className","label","titleId"]);return T.createElement(Lv,null,({variant:a})=>T.createElement("div",Object.assign({},o,{className:ie(ue.selectMenuGroup,n)}),T.createElement("div",{className:ie(ue.selectMenuGroupTitle),id:i,"aria-hidden":!0},r),a===ze.checkbox?t:T.createElement("ul",{role:"listbox"},t)))};wa.displayName="SelectGroup";class Iv 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===wa?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===br?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===br?c:c.type===di?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:ie(ue.selectMenuFieldset)},T.Children.map(c.props.children,u=>u.type===br?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===br?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,M=ke(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 A="div";const P=Object.assign({ref:_,className:ie(E?`${ue.selectMenu}-list`:ue.selectMenu,f===Zc.right&&ue.modifiers.alignRight,a)},p&&{style:{maxHeight:p,overflow:"auto"}}),j=()=>t===ze.checkbox?this.extendCheckboxChildren(i):this.extendChildren(n);return o?P.children=i:w?T.Children.count(i)===0?P.children=T.createElement("fieldset",{className:ie(ue.selectMenuFieldset)}):P.children=T.createElement("fieldset",{"aria-label":x,"aria-labelledby":!x&&S||null,className:ie(Tye.formFieldset)},i.shift(),j()):(P.children=j(),d||(A="ul",P.role="listbox",P["aria-label"]=x,P["aria-labelledby"]=!x&&S||null)),T.createElement(T.Fragment,null,T.createElement(A,Object.assign({},P,M)),E&&T.createElement("div",{className:ie(ue.selectMenuFooter),ref:O},E))}render(){return T.createElement(Lv,null,t=>this.renderSelectMenu(t))}}Iv.displayName="SelectMenu",Iv.defaultProps={className:"",isExpanded:!1,isGrouped:!1,openedOnEnter:!1,selected:"",maxHeight:"",position:Zc.left,sendRef:()=>{},keyHandler:()=>{},isCustomContent:!1,hasInlineFilter:!1,isLastOptionBeforeFooter:()=>{}};const Aye=T.forwardRef((e,t)=>T.createElement(Iv,Object.assign({innerRef:t},e),e.children));class Fv 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===Ke.Tab&&(u===ze.typeahead||u===ze.typeaheadMulti)){this.props.handleTypeaheadKeys("tab",i.shiftKey),i.preventDefault();return}if(c&&i.key===Ke.Tab&&s){const y=Fc(l,Qc);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===Ke.Escape||i.key===Ke.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===Ke.ArrowDown||i.key===Ke.ArrowUp?(u(i.key===Ke.ArrowDown&&"down"||i.key===Ke.ArrowUp&&"up"),i.preventDefault()):i.key===Ke.Enter&&(o?u("enter"):a(i,!o))),!(s===ze.typeahead||s===ze.typeaheadMulti||i.key===Ke.Tab&&!o||i.key!==Ke.Enter&&i.key!==Ke.Space)&&(i.preventDefault(),(i.key===Ke.Tab||i.key===Ke.Enter||i.key===Ke.Space)&&o?(a(i,!o),l(),this.toggle.current.focus()):(i.key===Ke.Enter||i.key===Ke.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:M,toggleIndicator:A,innerRef:P}=t,j=ke(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"]),D=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,!D&&T.createElement("button",Object.assign({},j,$,{ref:this.toggle,type:w,className:ie(ue.selectToggle,l&&ue.modifiers.placeholder,s&&ue.modifiers.disabled,a&&ue.modifiers.plain,o&&ue.modifiers.active,n),"aria-label":O,onBlur:h,onClick:L=>{u(L,!i),i&&f()},onKeyDown:this.onKeyDown,disabled:s}),r,T.createElement("span",{className:ie(ue.selectToggleArrow)},A??T.createElement(u3,null))),D&&T.createElement("div",Object.assign({},j,{ref:this.toggle,className:ie(ue.selectToggle,l&&ue.modifiers.placeholder,s&&ue.modifiers.disabled,a&&ue.modifiers.plain,D&&ue.modifiers.typeahead,n),onBlur:h,onClick:L=>{s||(u(L,!i),i&&f())},onKeyDown:this.onKeyDown}),r,T.createElement("button",Object.assign({},$,{type:w,className:ie(Nt.button,ue.selectToggleButton,ue.modifiers.plain),"aria-label":O,onClick:L=>{u(L,!i),i&&f(),g()}},(c===ze.typeahead||c===ze.typeaheadMulti)&&{tabIndex:-1},{disabled:s}),A??T.createElement(u3,{className:ie(ue.selectToggleArrow)}))))}}Fv.displayName="SelectToggle",Fv.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 Pye=T.forwardRef((e,t)=>T.createElement(Fv,Object.assign({innerRef:t},e))),Po={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"},Mye={name:"--pf-v5-c-chip__text--MaxWidth",value:"16ch",var:"var(--pf-v5-c-chip__text--MaxWidth)"};class Ca extends T.Component{constructor(t){super(t),this.span=T.createRef(),this.setChipStyle=()=>({[Mye.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=ke(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:ie(Po.chip,Po.modifiers.overflow,o)},u==="button"?{type:"button"}:{},Wc("OverflowChip",s!==void 0?s:this.state.ouiaStateId),p),T.createElement("span",{className:ie(Po.chipContent)},T.createElement("span",{className:ie(Po.chipText)},i),r&&r))},this.renderChip=n=>{const{children:r,tooltipPosition:i}=this.props;return this.state.isTooltipVisible?T.createElement(Mh,{position:i,content:r},this.renderInnerChip(n)):this.renderInnerChip(n)},this.state={isTooltipVisible:!1,ouiaStateId:Oh(Ca.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=ke(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:ie(Po.chip,o)},this.state.isTooltipVisible&&{tabIndex:0},Wc(Ca.displayName,h!==void 0?h:this.state.ouiaStateId),p),T.createElement("span",{className:ie(Po.chipContent)},T.createElement("span",{ref:this.span,className:ie(Po.chipText),id:t},i),r&&r),!l&&T.createElement("span",{className:ie(Po.chipActions)},T.createElement($h,{onClick:a,variant:"plain","aria-label":s,id:`remove_${t}`,"aria-labelledby":`remove_${t} ${t}`,ouiaId:h||s},T.createElement(Oye,{"aria-hidden":"true"}))))}render(){const{isOverflowChip:t}=this.props;return T.createElement(Nc,null,n=>t?this.renderOverflowChip():this.renderChip(this.props.id||n))}}Ca.displayName="Chip",Ca.defaultProps={closeBtnAriaLabel:"close",className:"",isOverflowChip:!1,isReadOnly:!1,tooltipPosition:"top",onClick:e=>{},component:"div"};const qi={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 eu 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(Mh,{position:r,content:n},T.createElement("span",{tabIndex:0,ref:this.headingRef,className:ie(qi.chipGroupLabel)},T.createElement("span",{id:t},n))):T.createElement("span",{ref:this.headingRef,className:ie(qi.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=ke(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=u0e(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:ie(qi.chipGroup,i,n&&qi.modifiers.category),role:"group"},n&&{"aria-labelledby":_},!n&&{"aria-label":s},Wc(eu.displayName,h)),T.createElement("div",{className:ie(qi.chipGroupMain)},n&&this.renderLabel(_),T.createElement("ul",Object.assign({className:ie(qi.chipGroupList)},n&&{"aria-labelledby":_},!n&&{"aria-label":s},{role:"list"},y),E.map((O,k)=>T.createElement("li",{className:ie(qi.chipGroupListItem),key:k},O)),x>u&&T.createElement("li",{className:ie(qi.chipGroupListItem)},T.createElement(Ca,{isOverflowChip:!0,onClick:O=>{this.toggleCollapse(),c(O)},component:"button"},b?d:S)))),o&&T.createElement("div",{className:ie(qi.chipGroupClose)},T.createElement($h,{variant:"plain","aria-label":a,onClick:l,id:`remove_group_${_}`,"aria-labelledby":`remove_group_${_} ${_}`,ouiaId:h||a},T.createElement(b3,{"aria-hidden":"true"}))))};return x===0?null:T.createElement(Nc,null,_=>w(this.props.id||_))}}eu.displayName="ChipGroup",eu.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 Dye=0;class Ea 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:Oh(Ea.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===wa&&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=wye(o,this.props.isGrouped,this.props.favorites),s=a.length?[T.createElement(wa,{key:"favorites",label:this.props.favoritesLabel},a),T.createElement(br,{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===wa){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(di,{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(di,{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)=>{$A(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=Fc(this.footerRef,Qc);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=Fc(this.footerRef,Qc);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=Fc(this.footerRef,Qc),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=LA(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===br?c:c.type===wa&&i?T.cloneElement(c,{titleId:c.props.label&&c.props.label.replace(/\W/g,"-"),children:T.Children.map(c.props.children,u=>u.type===br?u:T.cloneElement(u,{isFocused:s&&(s.id===u.props.id||this.props.isCreatable&&l.textContent===`${o} "${c.props.value}"`)}))}):c.type===wa?T.cloneElement(c,{titleId:c.props.label&&c.props.label.replace(/\W/g,"-"),children:T.Children.map(c.props.children,u=>u.type===br?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:M,"aria-label":A,"aria-labelledby":P,"aria-describedby":j,"aria-invalid":D,placeholderText:$,width:L,maxHeight:H,toggleIcon:U,toggleIndicator:B,ouiaId:z,ouiaSafe:N,hasInlineFilter:V,isCheckboxSelectionBadgeHidden:Q,inlineFilterPlaceholderText:ne,onFilter:ee,onTypeaheadInputChanged:K,onCreateOption:re,isCreatable:ae,onToggle:le,createText:X,noResultsFoundText:te,customBadgeText:ge,inputIdPrefix:W,inputAutoComplete:we,isInputValuePersisted:oe,isInputFilterPersisted:Ie,menuAppendTo:Pe,favorites:qe,onFavorite:I,favoritesLabel:q,footer:G,loadingVariant:he,isCreateSelectOptionObject:me,isCreateOptionOnTop:ce,shouldResetOnSelect:Y,isFlipEnabled:fe,zIndex:xe}=t,Se=ke(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:We,typeaheadCurrIndex:Ve,typeaheadInputValue:ot,typeaheadFilteredChildren:Wt,favoritesGroup:Ft}=this.state,Mt=f||`pf-select-toggle-id-${Dye++}`,Be=Array.isArray(w)?w:[w],je=T.Children.toArray(n).find(Ze=>Ze.props.value===Be[0]),yt=je&&je.props.isPlaceholder,Gt=!!(Be[0]&&Be[0]!==""),Ct=this.getTypeaheadActiveChild(Ve);let Qn=null,Ot=[];if(I){let Ze=n;s==="typeahead"||s==="typeaheadmulti"?Ze=this.extendTypeaheadChildren(Ve,Ft):I&&(Ze=Ft.concat(n)),Ot=Cye(Ze,p,qe)}else Ot=n;if(!a&&!Gt&&!$){const Ze=T.Children.toArray(n).filter(vt=>vt.props.isPlaceholder===!0);Qn=Ze[0]&&this.getDisplay(Ze[0].props.value,"node")||n[0]&&this.getDisplay(n[0].props.value,"node")}g&&Ot.find(Ze=>(Ze==null?void 0:Ze.key)==="loading")===void 0&&(he==="spinner"?Ot.push(T.createElement(di,{isLoading:!0,key:"loading",value:"loading"},T.createElement(Mv,{size:"lg"}))):he!=null&&he.text&&Ot.push(T.createElement(di,{isLoad:!0,key:"loading",value:he.text,setViewMoreNextIndex:this.setVieMoreNextIndex,onClick:he==null?void 0:he.onClick})));const Rr=u!==Ea.defaultProps.onClear,Ee=T.createElement("button",{className:ie(Nt.button,Nt.modifiers.plain,ue.selectToggleClear),onClick:Ze=>{this.clearSelection(Ze),u(Ze),Ze.stopPropagation()},"aria-label":O,type:"button",disabled:b,ref:this.clearRef,onKeyDown:Ze=>{Ze.key===Ke.Enter&&this.clearRef.current.click()}},T.createElement(b3,{"aria-hidden":!0}));let ct=null;s===ze.typeaheadMulti&&(ct=i||T.createElement(eu,Object.assign({},r),Be&&Be.map(Ze=>T.createElement(Ca,{key:Ze,onClick:vt=>c(vt,Ze),closeBtnAriaLabel:M},this.getDisplay(Ze,"node"))))),V&&(Ot=[T.createElement(T.Fragment,null,T.createElement("div",{key:"inline-filter",className:ie(ue.selectMenuSearch)},T.createElement("div",{key:"inline-filter",className:ie(Wr.formControl)},T.createElement("input",{key:"inline-filter-input",type:"search",onChange:this.onChange,placeholder:ne,onKeyDown:vt=>{if(vt.key===Ke.ArrowUp)this.handleMenuKeys(0,0,"up"),vt.preventDefault();else if(vt.key===Ke.ArrowDown)this.handleMenuKeys(0,0,"down"),vt.preventDefault();else if(vt.key===Ke.ArrowLeft)this.handleMenuKeys(0,0,"left"),vt.preventDefault();else if(vt.key===Ke.ArrowRight)this.handleMenuKeys(0,0,"right"),vt.preventDefault();else if(vt.key===Ke.Tab&&s!==ze.checkbox&&this.props.footer)if(vt.shiftKey)this.onToggle(vt,!1);else{const tl=Fc(this.footerRef,Qc);tl.length>0?(tl[0].focus(),vt.stopPropagation(),vt.preventDefault()):this.onToggle(vt,!1)}else vt.key===Ke.Tab&&s===ze.checkbox&&(vt.shiftKey?this.handleMenuKeys(0,0,"up"):this.handleMenuKeys(0,0,"down"),vt.stopPropagation(),vt.preventDefault())},ref:this.filterRef,autoComplete:we}))),T.createElement(br,{key:"inline-filter-divider"})),...Wt].map((vt,tl)=>T.cloneElement(vt,{key:tl})));let yn,Rt;if(a)yn={selected:Be,openedOnEnter:We,isCustomContent:!0},Rt=a;else switch(s){case"single":yn={selected:Be[0],hasInlineFilter:V,openedOnEnter:We},Rt=Ot;break;case"checkbox":yn={checked:Be,isGrouped:p,hasInlineFilter:V,openedOnEnter:We},Rt=Ot;break;case"typeahead":yn={selected:Be[0],openedOnEnter:We},Rt=I?Ot:this.extendTypeaheadChildren(Ve),Rt.length===0&&Rt.push(T.createElement(di,{isDisabled:!0,key:0,value:te,isNoResultsOption:!0}));break;case"typeaheadmulti":yn={selected:Be,openedOnEnter:We},Rt=I?Ot:this.extendTypeaheadChildren(Ve),Rt.length===0&&Rt.push(T.createElement(di,{isDisabled:!0,key:0,value:te,isNoResultsOption:!0}));break}const Aa=fe&&Pe!=="inline",Ki=T.createElement(Aye,Object.assign({className:ie(Aa&&ue.modifiers.static)},Se,{isGrouped:p,selected:Be},yn,{openedOnEnter:We,"aria-label":A,"aria-labelledby":P,sendRef:this.sendRef,keyHandler:this.handleMenuKeys,maxHeight:H,ref:this.menuComponentRef,footer:G,footerRef:this.footerRef,isLastOptionBeforeFooter:this.isLastOptionBeforeFooter}),Rt),Xi=G?T.createElement("div",{className:ie(ue.selectMenu)}," ",Ki," "):Ki,Mo=T.createRef(),Bv=T.createElement("div",Object.assign({className:ie(ue.select,g&&ue.modifiers.expanded,S===An.success&&ue.modifiers.success,S===An.warning&&ue.modifiers.warning,S===An.error&&ue.modifiers.invalid,l===Jc.up&&ue.modifiers.top,o),ref:Mo},L&&{style:{width:L}},S!==An.default&&{"aria-invalid":D}),g&&Xi),tu=T.createElement("div",Object.assign({className:ie(ue.select,g&&ue.modifiers.expanded,S===An.success&&ue.modifiers.success,S===An.warning&&ue.modifiers.warning,S===An.error&&ue.modifiers.invalid,l===Jc.up&&ue.modifiers.top,o),ref:this.parentRef},Wc(Ea.displayName,z!==void 0?z:this.state.ouiaStateId,N),L&&{style:{width:L}},S!==An.default&&{"aria-invalid":D}),T.createElement(Pye,Object.assign({id:Mt,parentRef:this.parentRef,menuRef:this.menuComponentRef,ref:h},G&&{footerRef:this.footerRef},{isOpen:g,isPlain:y,hasPlaceholderStyle:x&&(!Be.length||Be[0]===null||yt),onToggle:this.onToggle,onEnter:this.onEnter,onClose:this.onClose,onBlur:d,variant:s,toggleIndicator:B,"aria-labelledby":`${P||""} ${Mt}`,"aria-label":k},j&&{"aria-describedby":j},{handleTypeaheadKeys:this.handleTypeaheadKeys,moveFocusToLastMenuItem:this.moveFocusToLastMenuItem,isDisabled:b,hasClearButton:Rr,hasFooter:G!==void 0,onClickTypeaheadToggleButton:this.onClickTypeaheadToggleButton}),a&&T.createElement("div",{className:ie(ue.selectToggleWrapper)},U&&T.createElement("span",{className:ie(ue.selectToggleIcon)},U),T.createElement("span",{className:ie(ue.selectToggleText)},$)),s===ze.single&&!a&&T.createElement(T.Fragment,null,T.createElement("div",{className:ie(ue.selectToggleWrapper)},U&&T.createElement("span",{className:ie(ue.selectToggleIcon)},U),T.createElement("span",{className:ie(ue.selectToggleText)},this.getDisplay(Be[0],"node")||$||Qn)),Rr&&Gt&&Ee),s===ze.checkbox&&!a&&T.createElement(T.Fragment,null,T.createElement("div",{className:ie(ue.selectToggleWrapper)},U&&T.createElement("span",{className:ie(ue.selectToggleIcon)},U),T.createElement("span",{className:ie(ue.selectToggleText)},$),!Q&&Gt&&T.createElement("div",{className:ie(ue.selectToggleBadge)},T.createElement("span",{className:ie(Yc.badge,Yc.modifiers.read)},this.generateSelectedBadge()))),Rr&&Gt&&Ee),s===ze.typeahead&&!a&&T.createElement(T.Fragment,null,T.createElement("div",{className:ie(ue.selectToggleWrapper)},U&&T.createElement("span",{className:ie(ue.selectToggleIcon)},U),T.createElement(Lh,Object.assign({className:ie(ue.selectToggleTypeahead),"aria-activedescendant":Ct&&Ct.id,id:`${Mt}-select-typeahead`,"aria-label":_},E&&{"aria-describedby":E},{placeholder:$,value:ot!==null?ot:this.getDisplay(Be[0],"text")||"",onChange:Ze=>this.onChange(Ze),onClick:this.onClick,autoComplete:we,isDisabled:b,ref:this.inputRef}))),Rr&&(Be[0]||ot)&&Ee),s===ze.typeaheadMulti&&!a&&T.createElement(T.Fragment,null,T.createElement("div",{className:ie(ue.selectToggleWrapper)},U&&T.createElement("span",{className:ie(ue.selectToggleIcon)},U),Be&&Array.isArray(Be)&&Be.length>0&&ct,T.createElement(Lh,Object.assign({className:ie(ue.selectToggleTypeahead),"aria-activedescendant":Ct&&Ct.id,id:`${Mt}-select-multi-typeahead-typeahead`,"aria-label":_,"aria-invalid":S===An.error},E&&{"aria-describedby":E},{placeholder:$,value:ot!==null?ot:"",onChange:Ze=>this.onChange(Ze),onClick:this.onClick,autoComplete:we,isDisabled:b,ref:this.inputRef}))),Rr&&(Be&&Be.length>0||ot)&&Ee),S===An.success&&T.createElement("span",{className:ie(ue.selectToggleStatusIcon)},T.createElement(h3,{"aria-hidden":"true"})),S===An.error&&T.createElement("span",{className:ie(ue.selectToggleStatusIcon)},T.createElement(m3,{"aria-hidden":"true"})),S===An.warning&&T.createElement("span",{className:ie(ue.selectToggleStatusIcon)},T.createElement(g3,{"aria-hidden":"true"}))),g&&Pe==="inline"&&Xi),Bh=()=>this.parentRef&&this.parentRef.current?this.parentRef.current.parentElement:null;return T.createElement(Nc,null,Ze=>T.createElement($v.Provider,{value:{onSelect:c,onFavorite:I,onClose:this.onClose,variant:s,inputIdPrefix:W||Ze,shouldResetOnSelect:Y}},Pe==="inline"?tu:T.createElement(Ov,{width:"auto",trigger:tu,triggerRef:this.parentRef,popper:Bv,popperRef:Mo,direction:l,appendTo:Pe==="parent"?Bh():Pe,isVisible:g,zIndex:xe})))}}Ea.displayName="Select",Ea.defaultProps={children:[],className:"",position:Zc.left,direction:Jc.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 Gi={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 jye(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=mi(e),{t:y}=$e(),{control:b,setValue:x,getValues:S,formState:{isSubmitting:w,isValidating:_,defaultValues:E},resetField:O}=ei(),[k,M]=v.useState(!1),A=v.useCallback(()=>M(!k),[k]),[P]=kt(),j=Tc(e.label,e.isRequired),D=Ys(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(Hs,{name:t,control:b,defaultValue:e.defaultValue,shouldUnregister:!0,render:({field:{onChange:$,value:L},fieldState:{error:H}})=>{const U=(N,V)=>{var ne;const Q=(ne=s.find(ee=>ee.label===V.toString()))==null?void 0:ne.value;$(Q),g&&O(g),e.onChange&&e.onChange(Q),M(!1)},B=H!=null&&H.message?h&&_?P.validating:H==null?void 0:H.message:void 0,z=s.find(N=>N.value===L);return m.jsx(Lc,{fieldId:p,label:n,labelHelpTitle:r??n,labelHelp:i,additionalControls:o,helperText:c,helperTextInvalid:B,isRequired:f,children:m.jsxs("div",{style:{display:"flex"},children:[m.jsx(Ea,{id:p,itemID:p,placeholderText:a,variant:"single","aria-describedby":`${p}-form-group`,selections:z==null?void 0:z.label,onSelect:U,isOpen:k,onToggle:A,onClear:f?void 0:()=>{$(null),M(!1)},maxHeight:280,validated:B?"error":void 0,isDisabled:u||d||w,hasPlaceholderStyle:!0,footer:l,ouiaId:"menu-select","data-cy":p,children:s.map(N=>{const V=Vr(N);return m.jsx(di,{id:V,value:N.label,label:N.label,description:N.description,"data-cy":V,children:N.label},N.label)})}),m.jsx(Hr,{actions:[{label:y("Undo changes"),type:st.Button,selection:Ge.None,onClick:()=>{x(e.name,D)},isHidden:()=>!e.enableUndo||L===D},{label:y("Reset to default"),type:st.Button,selection:Ge.None,onClick:()=>{x(e.name,e.defaultValue)},isHidden:()=>!e.enableReset||L===e.defaultValue}],variant:C.ButtonVariant.control,position:"right"})]})})},rules:{required:j,validate:h}})}function $ye(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}}=ei(),h=mi(e);return m.jsx(Hs,{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(Lc,{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 Lye(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,M=mi(e),{control:A,setValue:P,formState:{isSubmitting:j,isValidating:D}}=ei(),[$,L]=v.useState(!1),[H]=kt(),U=Tc(e.label,e.isRequired);return m.jsx(Hs,{name:n,control:A,shouldUnregister:!0,render:({field:{onChange:B,value:z,name:N},fieldState:{error:V}})=>{const Q=V!=null&&V.message?h&&D?H.validating:V==null?void 0:V.message:void 0;function ne(ee){B(ee.trimStart())}return m.jsx(Lc,{fieldId:M,label:r,labelHelpTitle:i??r,labelHelp:o,additionalControls:a,helperText:c,helperTextInvalid:Q,isRequired:f,fullWidth:!0,children:m.jsxs(C.InputGroup,{children:[m.jsx(C.InputGroupItem,{isFill:!0,children:m.jsx(C.TextArea,{id:M,placeholder:s,onChange:(ee,K)=>ne(K),value:z??"","aria-describedby":M?`${M}-form-group`:void 0,validated:Q?"error":void 0,type:t==="password"?$?"text":"password":t,readOnlyVariant:d?"default":void 0,isDisabled:u,autoFocus:E,autoComplete:O||"off","data-cy":M,autoResize:k===void 0?!0:!k,rows:1,resizeOrientation:"vertical"})}),t==="password"&&m.jsx(C.Button,{variant:"control",onClick:()=>L(!$),isDisabled:u||d,children:$?m.jsx(ve.EyeIcon,{}):m.jsx(ve.EyeSlashIcon,{})}),S&&m.jsx(C.Button,{ouiaId:`lookup-${N}-button`,variant:"control",onClick:()=>w==null?void 0:w(ee=>{if(_){const K=_(ee);P(N,K,{shouldValidate:!0})}},S),"aria-label":"Options menu",isDisabled:u||j,children:m.jsx(ve.SearchIcon,{})}),l]})})},rules:{required:U,validate:h,minLength:typeof r=="string"&&typeof g=="number"?{value:g,message:`${ri(r.toLocaleLowerCase())} must be at least ${g} characters.`}:g,maxLength:typeof r=="string"&&typeof p=="number"?{value:p,message:`${ri(r.toLocaleLowerCase())} cannot be greater than ${p} characters.`}:p,min:typeof r=="string"&&(typeof y=="number"||typeof y=="string")?{value:y,message:`${ri(r.toLocaleLowerCase())} must be less than ${y}.`}:g,max:typeof r=="string"&&(typeof b=="number"||typeof b=="string")?{value:b,message:`${ri(r.toLocaleLowerCase())} cannot be greater than ${b}.`}:g,pattern:x}})}function Iye(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=mi(e),{t:M}=$e(),{control:A,setValue:P,formState:{isSubmitting:j,isValidating:D,defaultValues:$}}=ei(),[L,H]=v.useState(!1),[U]=kt(),B=Tc(e.label,e.isRequired),z=Ys($,e.name);return m.jsx(Hs,{name:n,control:A,shouldUnregister:!0,defaultValue:e.defaultValue,render:({field:{onChange:N,value:V,name:Q},fieldState:{error:ne}})=>{const ee=ne!=null&&ne.message?h&&D?U.validating:ne==null?void 0:ne.message:void 0;let K=V;switch(t){case"datetime-local":if(V){const ae=new Date(V);K=new Date(ae.getTime()-ae.getTimezoneOffset()*6e4).toISOString().slice(0,16)}break}function re(ae){switch(e.type){case"datetime-local":{N(new Date(ae).toISOString());break}case"number":{let le=Number(ae);if(ae===""||isNaN(le)){P(Q,null),N(null);return}b!==void 0&&le>Number(b)&&(le=Number(b)),y!==void 0&&le<Number(y)&&(le=Number(y)),P(Q,le),N(le);break}default:N(ae.trimStart())}}return m.jsx(Lc,{fieldId:k,label:r,labelHelpTitle:i??r,labelHelp:o,additionalControls:a,helperText:c,helperTextInvalid:ee,isRequired:f,children:m.jsxs(C.InputGroup,{children:[m.jsx(C.InputGroupItem,{isFill:!0,children:m.jsx(C.TextInput,{id:k,placeholder:s,onChange:(ae,le)=>re(le),value:K??"","aria-describedby":k?`${k}-form-group`:void 0,validated:ee?"error":void 0,type:t==="password"?L?"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(!L),isDisabled:u||d,children:L?m.jsx(ve.EyeIcon,{}):m.jsx(ve.EyeSlashIcon,{})}),S&&m.jsx(C.Button,{ouiaId:`lookup-${Q}-button`,variant:"control",onClick:()=>w==null?void 0:w(ae=>{if(_){const le=_(ae);P(Q,le,{shouldValidate:!0})}},S),"aria-label":"Options menu",isDisabled:u||j,children:m.jsx(ve.SearchIcon,{"data-cy":"lookup-button"})}),l,m.jsx(Hr,{actions:[{label:M("Undo changes"),type:st.Button,selection:Ge.None,onClick:()=>{P(e.name,z)},isHidden:()=>!e.enableUndo||V===z},{label:M("Reset to default"),type:st.Button,selection:Ge.None,onClick:()=>{P(e.name,e.defaultValue)},isHidden:()=>!e.enableReset||V===e.defaultValue}],variant:C.ButtonVariant.control,position:"right"})]})})},rules:{required:B,validate:h,minLength:typeof r=="string"&&typeof g=="number"?{value:g,message:`${ri(r.toLocaleLowerCase())} must be at least ${g} characters.`}:g,maxLength:typeof r=="string"&&typeof p=="number"?{value:p,message:`${ri(r.toLocaleLowerCase())} cannot be greater than ${p} characters.`}:p,min:typeof r=="string"&&(typeof y=="number"||typeof y=="string")?{value:y,message:`${ri(r.toLocaleLowerCase())} must be greater or equal to ${y}.`}:g,max:typeof r=="string"&&(typeof b=="number"||typeof b=="string")?{value:b,message:`${ri(r.toLocaleLowerCase())} cannot be greater than ${b}.`}:b,pattern:x}})}const Nv=v.createContext({isOpen:!1,setState:()=>({})});function Fh(){return v.useContext(Nv)}function x3(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(Nv.Provider,{value:{isOpen:n,setState:i},children:e.children})}function _3(){const e=Tt.useNavigate(),t=dn("xl"),n=Fh();return v.useCallback(i=>{e(i),t||n.setState({isOpen:!n.isOpen})},[e,t,n])}const Wv=v.createContext([{},()=>{}]);function Fye(){return v.useContext(Wv)[0]}function Nye(){return v.useContext(Wv)}function Wye(e){const[t,n]=v.useState({}),r=v.useCallback(o=>{n(S3("",o))},[]),i=v.useMemo(()=>[t,r],[t,r]);return m.jsx(Wv.Provider,{value:i,children:e.children})}function S3(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,S3(i,r.children))}),n}const w3=v.createContext({notificationsDrawerOpen:!1,setNotificationsDrawerOpen:()=>{throw new Error("PageNotificationsContext not implemented")},notificationGroups:{},setNotificationGroups:()=>{throw new Error("PageNotificationsContext not implemented")}});function Nh(){return v.useContext(w3)}function Rye(e){const[t,n]=v.useState(!1),[r,i]=v.useState({});return m.jsx(w3.Provider,{value:{notificationGroups:r,setNotificationGroups:i,notificationsDrawerOpen:t,setNotificationsDrawerOpen:n},children:e.children})}function Bye(e){const{t}=$e(),{notificationsDrawerOpen:n,setNotificationsDrawerOpen:r}=Nh(),i=v.useRef(null);function o(){var s;r(!1),(s=i.current)==null||s.focus()}const{notificationGroups:a}=Nh();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(Vye,{group:s},l))})})]})}),children:m.jsx(zye,{children:e.children})})})}const zye=Me(C.DrawerContentBody)`
517
517
  max-height: 100%;
518
- `;function Vye(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(Hye,{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 Hye(e){const t=e.notification.variant==="info"?void 0:e.notification.variant,n=Tt.useNavigate(),{setNotificationsDrawerOpen:r}=Nh(),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 Uye(e){return m.jsx(eb,{children:m.jsx(V5,{defaultRefreshInterval:e.defaultRefreshInterval,children:m.jsx(Wye,{children:m.jsx(F6,{children:m.jsx(t1,{children:m.jsx(x3,{children:m.jsx(Rye,{children:m.jsx(OP,{children:e.children})})})})})})})})}function C3(e){const[t]=kt();return m.jsx(n1,{message:t.errorText,children:m.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%",maxHeight:"100%"},children:e.children})})}function qye(e){const t=dn("sm");return m.jsxs(C.Masthead,{display:{default:"inline"},style:{borderBottom:"1px solid #fff4",paddingRight:0},children:[m.jsx(E3,{}),t&&m.jsx(C.MastheadMain,{children:m.jsx(C.MastheadBrand,{component:n=>m.jsx(Tt.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 E3(){const e=Fh();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(ve.BarsIcon,{})})})}function Gye(){const{setNotificationsDrawerOpen:e,notificationGroups:t}=Nh(),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 Yye(){const[e,t]=v.useContext(Uo);return e.activeTheme==="dark"?m.jsx(C.Button,{"data-cy":"settings-icon",variant:"plain",onClick:()=>t({...e,theme:"light"}),children:m.jsx(ve.MoonIcon,{})}):m.jsx(C.Button,{"data-cy":"theme-icon",variant:"plain",onClick:()=>t({...e,theme:"dark"}),children:m.jsx(ve.SunIcon,{})})}function O3(e){const{navigation:t}=e,n=Fh();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(Wh,{baseRoute:e.basename??"",items:t})})})]})})}function Wh(e){return m.jsx(m.Fragment,{children:e.items.filter(t=>"hidden"in t?t.hidden!==!0:!0).map((t,n)=>m.jsx(Kye,{item:t,baseRoute:e.baseRoute},t.id??t.label??n))})}function Kye(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=_3();let s=e.baseRoute+"/"+t.path;if(s=s.replace("//","/"),t.path==="/"&&"children"in t)return m.jsx(Wh,{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(ve.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(Wh,{items:t.children,baseRoute:s})}):m.jsx(Wh,{items:t.children,baseRoute:s})}function Xye(e){const{navigation:t,masthead:n}=e,r=v.useMemo(()=>[{path:e.basename??"/",element:m.jsx(C.Page,{header:n,sidebar:m.jsx(O3,{navigation:t,basename:e.basename,contextSwitcher:e.contextSwitcher}),children:m.jsx(Bye,{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(Tt.Outlet,{})})]})})}),children:t.filter(({href:a})=>!a)},{path:"*",element:m.jsx(Q6,{})}],[n,t,e.banner,e.basename,e.contextSwitcher]),[i,o]=Nye();return v.useEffect(()=>o(r),[r,o]),m.jsx(Tt.Routes,{children:r.map(T3)})}function T3(e){var t;return m.jsx(Tt.Route,{path:e.path,element:e.element,children:(t=e.children)==null?void 0:t.map(T3)},e.path)}function Zye(e){return e.replace(/^\//,"")}function k3(e,t){for(const n of e){if("id"in n&&n.id===t)return n;if("children"in n){const r=k3(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 P3(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&&P3(r.children,t,n)}function M3(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&&M3(i.children,t,n)}}function D3(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&&D3(i.children,t,n)}}function j3(){const e=Fye();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==null)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 Jye(){const e=Tt.useNavigate(),t=j3();return v.useCallback((n,r)=>{const i=t(n,r);i&&e(i)},[e,t])}function Qye(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===Rv){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(Rv,{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 Rv(e){return m.jsx(m.Fragment,{children:e.children})}function eve(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 tve(e,t,n,r){return(i,o)=>{e(a=>{r?r(a):i(t(a))},o?n(o):void 0)}}function nve(){const[e,t]=v.useState(!0);return v.useEffect(()=>()=>{t(!1)},[]),e}function rve(){const e=v.useRef({isMounted:!0});return v.useEffect(()=>()=>{e.current.isMounted=!1},[]),e}function $3(){const e=nve(),[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 L3(){var i,o;const e=$3(),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 I3=v.createContext({});function Oa(){return v.useContext(I3)}function ive(e,t){return!e.hidden||!e.hidden(t)?e:null}function Yi(e){return(e==null?void 0:e.substeps)!==void 0}function ove(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]=L3(),S=v.useMemo(()=>ave(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=Rh(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 j;const k=F3(t,{...s,...O});if(o===null)return Promise.resolve();if(!Yi(o)&&o.validate&&await o.validate(O,s),(o==null?void 0:o.id)===((j=k[k.length-1])==null?void 0:j.id)){y(!0);try{await n(s)}catch(D){g(D instanceof Error?D:new Error(Oc("An error occurred.")))}finally{y(!1)}return}const A=k.findIndex(D=>D.id===(o==null?void 0:o.id)),P=Yi(k[A+1])?k[A+2]:k[A+1];return x(new URLSearchParams("")),l(D=>({...D,...O})),u(D=>({...D,[o==null?void 0:o.id]:O})),a(P),Promise.resolve()},[o,t,n,x,s,g]),_=v.useCallback(()=>{const O=Rh(S,s),k=O.findIndex(A=>A.id===(o==null?void 0:o.id)),M=Yi(O[k-1])?O[k-2]:O[k-1];x(new URLSearchParams("")),a(M)},[o==null?void 0:o.id,S,x,s]),E=v.useMemo(()=>({wizardData:s,setWizardData:l,stepData:c,setStepData:u,steps:e.steps,visibleSteps:Rh(t,s),visibleStepsFlattened:F3(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(I3.Provider,{value:E,children:e.children})}function ave(e){return e.reduce((t,n)=>(t.push(n),Yi(n)&&t.push(...n.substeps),t),[])}function Rh(e,t){return e.filter(n=>ive(n,t))}function F3(e,t){return Rh(e,t).reduce((r,i)=>(r.push(i),Yi(i)&&r.push(...i.substeps),r),[])}function N3(e){const{t}=$e(),{activeStep:n,visibleStepsFlattened:r,setSubmitError:i}=Oa(),o=(n==null?void 0:n.id)===r[r.length-1].id,a=t(o?"Finish":"Next"),s=Yi(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($y,{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 sve({onCancel:e,disableGrid:t,errorAdapter:n,isVertical:r,singleColumn:i}){const o=Tt.useNavigate(),{activeStep:a,stepData:s,onNext:l,onBack:c,submitError:u,isSubmitting:d}=Oa(),f=v.useCallback(()=>{e?e():o(-1)},[o,e]);return d?m.jsx(C.Bullseye,{children:m.jsx(C.Spinner,{})}):m.jsxs(C3,{children:[m.jsx(cve,{error:u}),a!==null&&("inputs"in a?m.jsxs(AT,{onSubmit:l,footer:m.jsx(N3,{onBack:c,onCancel:f}),defaultValue:s[a.id],errorAdapter:n,disableGrid:t,isVertical:r,singleColumn:i,isWizard:!0,children:[m.jsx(lve,{}),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":Oc("Wizard step content"),hasOverflowScroll:!0,isFilled:!0,variant:"light",children:a==null?void 0:a.element}),m.jsx(N3,{onNext:()=>void l({}),onBack:c,onCancel:f})]}))]})}function lve(){const{activeStep:e,setStepError:t}=Oa(),{errors:n}=ky(),r=JSON.stringify(n);return v.useEffect(()=>{Object.keys(n).length===0?t({}):e&&t({[e.id]:n})},[n,e,t,r]),null}function cve(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 uve=Me.div`
518
+ `;function Vye(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(Hye,{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 Hye(e){const t=e.notification.variant==="info"?void 0:e.notification.variant,n=Tt.useNavigate(),{setNotificationsDrawerOpen:r}=Nh(),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 Uye(e){return m.jsx(eb,{children:m.jsx(V5,{defaultRefreshInterval:e.defaultRefreshInterval,children:m.jsx(Wye,{children:m.jsx(F6,{children:m.jsx(t1,{children:m.jsx(x3,{children:m.jsx(Rye,{children:m.jsx(OP,{children:e.children})})})})})})})})}function C3(e){const[t]=kt();return m.jsx(n1,{message:t.errorText,children:m.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%",maxHeight:"100%"},children:e.children})})}function qye(e){const t=dn("sm");return m.jsxs(C.Masthead,{display:{default:"inline"},style:{borderBottom:"1px solid #fff4",paddingRight:0},children:[m.jsx(E3,{}),t&&m.jsx(C.MastheadMain,{children:m.jsx(C.MastheadBrand,{component:n=>m.jsx(Tt.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 E3(){const e=Fh();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(ve.BarsIcon,{})})})}function Gye(){const{setNotificationsDrawerOpen:e,notificationGroups:t}=Nh(),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 Yye(){const[e,t]=v.useContext(Uo);return e.activeTheme==="dark"?m.jsx(C.Button,{"data-cy":"settings-icon",variant:"plain",onClick:()=>t({...e,theme:"light"}),children:m.jsx(ve.MoonIcon,{})}):m.jsx(C.Button,{"data-cy":"theme-icon",variant:"plain",onClick:()=>t({...e,theme:"dark"}),children:m.jsx(ve.SunIcon,{})})}function O3(e){const{navigation:t}=e,n=Fh();return m.jsx(C.PageSidebar,{isSidebarOpen:n.isOpen,className:"bg-lighten",children:m.jsxs(C.PageSidebarBody,{children:[e.contextSwitcher,m.jsx(C.Nav,{"data-cy":"page-navigation",className:"side-nav",children:m.jsx(C.NavList,{children:m.jsx(Wh,{baseRoute:e.basename??"",items:t})})})]})})}function Wh(e){return m.jsx(m.Fragment,{children:e.items.filter(t=>"hidden"in t?t.hidden!==!0:!0).map((t,n)=>m.jsx(Kye,{item:t,baseRoute:e.baseRoute},t.id??t.label??n))})}function Kye(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=_3();let s=e.baseRoute+"/"+t.path;if(s=s.replace("//","/"),t.path==="/"&&"children"in t)return m.jsx(Wh,{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(ve.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(Wh,{items:t.children,baseRoute:s})}):m.jsx(Wh,{items:t.children,baseRoute:s})}function Xye(e){const{navigation:t,masthead:n}=e,r=v.useMemo(()=>[{path:e.basename??"/",element:m.jsx(C.Page,{header:n,sidebar:m.jsx(O3,{navigation:t,basename:e.basename,contextSwitcher:e.contextSwitcher}),children:m.jsx(Bye,{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(Tt.Outlet,{})})]})})}),children:t.filter(({href:a})=>!a)},{path:"*",element:m.jsx(Q6,{})}],[n,t,e.banner,e.basename,e.contextSwitcher]),[i,o]=Nye();return v.useEffect(()=>o(r),[r,o]),m.jsx(Tt.Routes,{children:r.map(T3)})}function T3(e){var t;return m.jsx(Tt.Route,{path:e.path,element:e.element,children:(t=e.children)==null?void 0:t.map(T3)},e.path)}function Zye(e){return e.replace(/^\//,"")}function k3(e,t){for(const n of e){if("id"in n&&n.id===t)return n;if("children"in n){const r=k3(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 P3(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&&P3(r.children,t,n)}function M3(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&&M3(i.children,t,n)}}function D3(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&&D3(i.children,t,n)}}function j3(){const e=Fye();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==null)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 Jye(){const e=Tt.useNavigate(),t=j3();return v.useCallback((n,r)=>{const i=t(n,r);i&&e(i)},[e,t])}function Qye(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===Rv){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(Rv,{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 Rv(e){return m.jsx(m.Fragment,{children:e.children})}function eve(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 tve(e,t,n,r){return(i,o)=>{e(a=>{r?r(a):i(t(a))},o?n(o):void 0)}}function nve(){const[e,t]=v.useState(!0);return v.useEffect(()=>()=>{t(!1)},[]),e}function rve(){const e=v.useRef({isMounted:!0});return v.useEffect(()=>()=>{e.current.isMounted=!1},[]),e}function $3(){const e=nve(),[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 L3(){var i,o;const e=$3(),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 I3=v.createContext({});function Oa(){return v.useContext(I3)}function ive(e,t){return!e.hidden||!e.hidden(t)?e:null}function Yi(e){return(e==null?void 0:e.substeps)!==void 0}function ove(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]=L3(),S=v.useMemo(()=>ave(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=Rh(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 j;const k=F3(t,{...s,...O});if(o===null)return Promise.resolve();if(!Yi(o)&&o.validate&&await o.validate(O,s),(o==null?void 0:o.id)===((j=k[k.length-1])==null?void 0:j.id)){y(!0);try{await n(s)}catch(D){g(D instanceof Error?D:new Error(Oc("An error occurred.")))}finally{y(!1)}return}const A=k.findIndex(D=>D.id===(o==null?void 0:o.id)),P=Yi(k[A+1])?k[A+2]:k[A+1];return x(new URLSearchParams("")),l(D=>({...D,...O})),u(D=>({...D,[o==null?void 0:o.id]:O})),a(P),Promise.resolve()},[o,t,n,x,s,g]),_=v.useCallback(()=>{const O=Rh(S,s),k=O.findIndex(A=>A.id===(o==null?void 0:o.id)),M=Yi(O[k-1])?O[k-2]:O[k-1];x(new URLSearchParams("")),a(M)},[o==null?void 0:o.id,S,x,s]),E=v.useMemo(()=>({wizardData:s,setWizardData:l,stepData:c,setStepData:u,steps:e.steps,visibleSteps:Rh(t,s),visibleStepsFlattened:F3(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(I3.Provider,{value:E,children:e.children})}function ave(e){return e.reduce((t,n)=>(t.push(n),Yi(n)&&t.push(...n.substeps),t),[])}function Rh(e,t){return e.filter(n=>ive(n,t))}function F3(e,t){return Rh(e,t).reduce((r,i)=>(r.push(i),Yi(i)&&r.push(...i.substeps),r),[])}function N3(e){const{t}=$e(),{activeStep:n,visibleStepsFlattened:r,setSubmitError:i}=Oa(),o=(n==null?void 0:n.id)===r[r.length-1].id,a=t(o?"Finish":"Next"),s=Yi(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($y,{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 sve({onCancel:e,disableGrid:t,errorAdapter:n,isVertical:r,singleColumn:i}){const o=Tt.useNavigate(),{activeStep:a,stepData:s,onNext:l,onBack:c,submitError:u,isSubmitting:d}=Oa(),f=v.useCallback(()=>{e?e():o(-1)},[o,e]);return d?m.jsx(C.Bullseye,{children:m.jsx(C.Spinner,{})}):m.jsxs(C3,{children:[m.jsx(cve,{error:u}),a!==null&&("inputs"in a?m.jsxs(AT,{onSubmit:l,footer:m.jsx(N3,{onBack:c,onCancel:f}),defaultValue:s[a.id],errorAdapter:n,disableGrid:t,isVertical:r,singleColumn:i,isWizard:!0,children:[m.jsx(lve,{}),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":Oc("Wizard step content"),hasOverflowScroll:!0,isFilled:!0,variant:"light",children:a==null?void 0:a.element}),m.jsx(N3,{onNext:()=>void l({}),onBack:c,onCancel:f})]}))]})}function lve(){const{activeStep:e,setStepError:t}=Oa(),{errors:n}=ky(),r=JSON.stringify(n);return v.useEffect(()=>{Object.keys(n).length===0?t({}):e&&t({[e.id]:n})},[n,e,t,r]),null}function cve(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 uve=Me.div`
519
519
  background-color: var(--pf-v5-global--BackgroundColor--light-100);
520
520
  color: var(--pf-v5-global--Color--dark-100);
521
521
 
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.2643",
4
+ "version": "2.4.2644",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -90,7 +90,7 @@ declare function age(e: any): any;
90
90
  declare function Qme(e: any): any;
91
91
  declare function Nxe(e: any): any;
92
92
  declare const sM: any;
93
- declare function Wr(e: any): any;
93
+ declare function Nr(e: any): any;
94
94
  declare function Gge(e: any): any;
95
95
  declare const xge: any;
96
96
  declare function bn(e: any): any;
@@ -338,4 +338,4 @@ declare function EA(e: any): any;
338
338
  declare function ZD(): string;
339
339
  declare function ya(e: any, t: any): any;
340
340
  import * as O from "react";
341
- export { Fge as BulkActionDialog, JD as BulkSelector, ixe as BytesCell, e1 as Collapse, Dme as ColumnCardOption, Mme as ColumnDashboardOption, jme as ColumnListOption, Pme as ColumnModalOption, v0 as ColumnPriority, so as ColumnTableOption, kge as ColumnsDiv, axe as CopyCell, gbe as DataEditorActions, mbe as DataEditorButtons, oxe as DateCell, Zme as DateRange, uc as DateRangeFilterPresets, uI as DateTimeCell, sxe as ElapsedTimeCell, UD as FrameworkTranslationsProvider, _xe as GenericForm, Y0 as Help, mM as LabelColorE, dI as LabelsCell, Q5e as LoadingPage, vxe as MultiSelectDialog, jh as PFColorE, Qe as PageActionSelection, ut as PageActionType, la as PageActions, yw as PageAlertToasterContext, jM as PageAlertToasterProvider, Mxe as PageApp, rxe as PageBody, Cp as PageChartContainer, lxe as PageDashboard, ly as PageDashboardCard, uxe as PageDashboardChart, Ehe as PageDashboardChartVariantE, wO as PageDashboardContext, dxe as PageDashboardCount, hxe as PageDashboardDonutCard, fxe as PageDashboardGettingStarted, vc as PageDetail, Tge as PageDetailDiv, kme as PageDetails, Wme as PageDetailsFromColumns, cge as PageDialogProvider, jhe as PageDonutChart, mpe as PageForm, dpe as PageFormCancelButton, Cxe as PageFormCheckbox, Sxe as PageFormDataEditor, gpe as PageFormGrid, Oxe as PageFormSelect, n3 as PageFormSubmitButton, Exe as PageFormSwitch, Txe as PageFormTextArea, kxe as PageFormTextInput, Axe as PageFramework, dM as PageHeader, y5e as PageLayout, jxe as PageMasthead, v5e as PageMastheadToggle, j7 as PageNavSideBarContext, s5e as PageNavSideBarProvider, b5e as PageNavigation, Yge as PageNotFound, xxe as PageNotImplemented, Dxe as PageNotificationsIcon, hl as PageSettingsContext, sI as PageSettingsProvider, GC as PageTab, km as PageTable, Age as PageTableCard, x_ as PageTableCards, Ixe as PageTabs, Pxe as PageThemeSwitcher, age as PageToolbar, Qme as PageToolbarFilters, Nxe as PageWizard, sM as RunningIcon, Wr as Scrollable, Gge as SelectDialog, xge as Small, bn as TableColumnCell, fI as TextCell, Xme as ToolbarDateRangeFilter, DA as ToolbarFilterType, jg as ToolbarSingleTextFilter, Jme as ToolbarTextMultiFilter, S5e as addNavigationItem, w5e as addNavigationItemAfter, O5e as addNavigationItemBefore, zxe as buildQueryString, zge as compareNumbers, Wd as compareStrings, Wge as compareUnknowns, nxe as errorToAlertProps, B5e as filtersToSearchObj, _5e as findNavigationItemById, Fs as getPatternflyColor, Rxe as multiSelectBrowseAdapter, Di as objectToString, z5e as paramsToSearchObj, fw as pfDanger, mw as pfDisabled, hw as pfInfo, exe as pfLink, dw as pfSuccess, txe as pfUnreachable, hM as pfWarning, $xe as removeLeadingSlash, C5e as removeNavigationItemById, Fxe as singleSelectBrowseAdapter, jn as useBreakpoint, Nge as useBulkActionDialog, yxe as useBulkConfirmation, jge as useColumnsToTableCardFn, Nme as useColumnsWithoutExpandedRow, Fme as useColumnsWithoutSort, mxe as useDashboardColumns, Ime as useDescriptionColumns, Rme as useExpandedColumns, LA as useFiltered, r3 as useFormErrors, Nt as useFrameworkTranslations, E5e as useGetPageUrl, Wxe as useInMemoryView, J5e as useOrientation, X0 as usePageAlertToaster, Ya as usePageDialog, uge as usePageDialogs, l5e as usePageNavBarClick, Lb as usePageNavSideBar, Lxe as usePageNavigate, ml as usePageSettings, Tm as usePaged, bxe as useSelectDialog, MA as useSelected, dge as useSelectedInMemory, $A as useSorted, pxe as useTableItems, W5e as useView, Lme as useVisibleCardColumns, gxe as useVisibleColumns, $me as useVisibleListColumns, tb as useVisibleModalColumns, EA as useVisibleTableColumns, ZD as useWindowSize, ya as valueToObject };
341
+ export { Fge as BulkActionDialog, JD as BulkSelector, ixe as BytesCell, e1 as Collapse, Dme as ColumnCardOption, Mme as ColumnDashboardOption, jme as ColumnListOption, Pme as ColumnModalOption, v0 as ColumnPriority, so as ColumnTableOption, kge as ColumnsDiv, axe as CopyCell, gbe as DataEditorActions, mbe as DataEditorButtons, oxe as DateCell, Zme as DateRange, uc as DateRangeFilterPresets, uI as DateTimeCell, sxe as ElapsedTimeCell, UD as FrameworkTranslationsProvider, _xe as GenericForm, Y0 as Help, mM as LabelColorE, dI as LabelsCell, Q5e as LoadingPage, vxe as MultiSelectDialog, jh as PFColorE, Qe as PageActionSelection, ut as PageActionType, la as PageActions, yw as PageAlertToasterContext, jM as PageAlertToasterProvider, Mxe as PageApp, rxe as PageBody, Cp as PageChartContainer, lxe as PageDashboard, ly as PageDashboardCard, uxe as PageDashboardChart, Ehe as PageDashboardChartVariantE, wO as PageDashboardContext, dxe as PageDashboardCount, hxe as PageDashboardDonutCard, fxe as PageDashboardGettingStarted, vc as PageDetail, Tge as PageDetailDiv, kme as PageDetails, Wme as PageDetailsFromColumns, cge as PageDialogProvider, jhe as PageDonutChart, mpe as PageForm, dpe as PageFormCancelButton, Cxe as PageFormCheckbox, Sxe as PageFormDataEditor, gpe as PageFormGrid, Oxe as PageFormSelect, n3 as PageFormSubmitButton, Exe as PageFormSwitch, Txe as PageFormTextArea, kxe as PageFormTextInput, Axe as PageFramework, dM as PageHeader, y5e as PageLayout, jxe as PageMasthead, v5e as PageMastheadToggle, j7 as PageNavSideBarContext, s5e as PageNavSideBarProvider, b5e as PageNavigation, Yge as PageNotFound, xxe as PageNotImplemented, Dxe as PageNotificationsIcon, hl as PageSettingsContext, sI as PageSettingsProvider, GC as PageTab, km as PageTable, Age as PageTableCard, x_ as PageTableCards, Ixe as PageTabs, Pxe as PageThemeSwitcher, age as PageToolbar, Qme as PageToolbarFilters, Nxe as PageWizard, sM as RunningIcon, Nr as Scrollable, Gge as SelectDialog, xge as Small, bn as TableColumnCell, fI as TextCell, Xme as ToolbarDateRangeFilter, DA as ToolbarFilterType, jg as ToolbarSingleTextFilter, Jme as ToolbarTextMultiFilter, S5e as addNavigationItem, w5e as addNavigationItemAfter, O5e as addNavigationItemBefore, zxe as buildQueryString, zge as compareNumbers, Wd as compareStrings, Wge as compareUnknowns, nxe as errorToAlertProps, B5e as filtersToSearchObj, _5e as findNavigationItemById, Fs as getPatternflyColor, Rxe as multiSelectBrowseAdapter, Di as objectToString, z5e as paramsToSearchObj, fw as pfDanger, mw as pfDisabled, hw as pfInfo, exe as pfLink, dw as pfSuccess, txe as pfUnreachable, hM as pfWarning, $xe as removeLeadingSlash, C5e as removeNavigationItemById, Fxe as singleSelectBrowseAdapter, jn as useBreakpoint, Nge as useBulkActionDialog, yxe as useBulkConfirmation, jge as useColumnsToTableCardFn, Nme as useColumnsWithoutExpandedRow, Fme as useColumnsWithoutSort, mxe as useDashboardColumns, Ime as useDescriptionColumns, Rme as useExpandedColumns, LA as useFiltered, r3 as useFormErrors, Nt as useFrameworkTranslations, E5e as useGetPageUrl, Wxe as useInMemoryView, J5e as useOrientation, X0 as usePageAlertToaster, Ya as usePageDialog, uge as usePageDialogs, l5e as usePageNavBarClick, Lb as usePageNavSideBar, Lxe as usePageNavigate, ml as usePageSettings, Tm as usePaged, bxe as useSelectDialog, MA as useSelected, dge as useSelectedInMemory, $A as useSorted, pxe as useTableItems, W5e as useView, Lme as useVisibleCardColumns, gxe as useVisibleColumns, $me as useVisibleListColumns, tb as useVisibleModalColumns, EA as useVisibleTableColumns, ZD as useWindowSize, ya as valueToObject };