@ansible/ansible-ui-framework 2.4.2712 → 2.4.2713

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.
@@ -1,4 +1,4 @@
1
- import { u as He, j as M } from "./index-D0LQ2Tn1.js";
1
+ import { u as He, j as M } from "./index-CvyjyrAx.js";
2
2
  import { useContext as je, createContext as Oe, useState as Se, useEffect as Be, useRef as Ze } from "react";
3
3
  import Ye from "react-dom";
4
4
  import { A as Te } from "./ansible-chatbot-jXPBfTRi.js";
@@ -1,4 +1,4 @@
1
- import { u as a, j as e, d as i } from "./index-D0LQ2Tn1.js";
1
+ import { u as a, j as e, d as i } from "./index-CvyjyrAx.js";
2
2
  import { t as s, a as r, X as n } from "./ansible-chatbot-jXPBfTRi.js";
3
3
  import "@patternfly/react-core";
4
4
  import "react";
@@ -3042,7 +3042,7 @@ const j4 = tn({
3042
3042
  chatbotState: "disabled",
3043
3043
  setChatbotState: () => {
3044
3044
  }
3045
- }), D4 = () => mt(j4), M4 = GT(() => import("./ChatbotPortal-D4TlEvA5.js")), P4 = () => /* @__PURE__ */ g.jsx(YT, { fallback: /* @__PURE__ */ g.jsx("div", { children: "Loading..." }), children: /* @__PURE__ */ g.jsx(M4, {}) }), I4 = GT(() => import("./ChatbotSideBarHeader-BCUg_vzL.js")), L4 = () => {
3045
+ }), D4 = () => mt(j4), M4 = GT(() => import("./ChatbotPortal-Co8CDw4E.js")), P4 = () => /* @__PURE__ */ g.jsx(YT, { fallback: /* @__PURE__ */ g.jsx("div", { children: "Loading..." }), children: /* @__PURE__ */ g.jsx(M4, {}) }), I4 = GT(() => import("./ChatbotSideBarHeader-CfvEewHE.js")), L4 = () => {
3046
3046
  const { t: e } = Me();
3047
3047
  return /* @__PURE__ */ g.jsx(YT, { fallback: /* @__PURE__ */ g.jsx("span", { children: e("Loading...") }), children: /* @__PURE__ */ g.jsx(I4, {}) });
3048
3048
  }, R4 = Te(JP)`
@@ -42944,7 +42944,7 @@ function Rue(e) {
42944
42944
  readOnlyVariant: d ? "default" : void 0,
42945
42945
  isDisabled: u,
42946
42946
  autoFocus: w,
42947
- autoComplete: C || "off",
42947
+ autoComplete: C || (t === "password" ? "new-password" : "off"),
42948
42948
  "data-cy": j,
42949
42949
  autoResize: O === void 0 ? !0 : !O,
42950
42950
  rows: 1,
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as s, B as o, A as t, C as r, aW as l, aY as i, aV as n, aX as g, aZ as b, aU as u, aQ as P, D as d, af as m, ae as C, E as c, bo as T, bm as D, F as p, G as S, bs as h, ab as F, H as v, k as B, I as f, L as I, a2 as A, P as y, r as N, q as x, s as k, t as w, w as E, y as O, z as L, J as M, M as V, N as R, Q as W, O as j, K as G, U as z, X as U, V as H, Y as q, aP as Q, Z as J, _ as K, a4 as X, W as Y, an as Z, aq as _, ac as $, ad as aa, ao as ea, ai as sa, ap as oa, aj as ta, ak as ra, al as la, ar as ia, as as na, at as ga, au as ba, av as ua, aF as Pa, aH as da, ay as ma, a9 as Ca, aa as ca, aw as Ta, aL as Da, aM as pa, bg as Sa, aN as ha, aR as Fa, aT as va, bf as Ba, ax as fa, bh as Ia, bj as Aa, br as ya, R as Na, S as xa, a8 as ka, aO as wa, a_ as Ea, T as Oa, bn as La, bi as Ma, bq as Va, bp as Ra, aC as Wa, aD as ja, aE as Ga, bz as za, by as Ua, bx as Ha, bw as qa, x as Qa, bB as Ja, aA as Ka, g as Xa, bk as Ya, ah as Za, bA as _a, a as $a, e as ae, c as ee, f as se, p as oe, i as te, h as re, b as le, az as ie, aB as ne, bl as ge, n as be, a0 as ue, a1 as Pe, aS as de, b8 as me, b7 as Ce, b3 as ce, b5 as Te, b6 as De, bd as pe, am as Se, bt as he, aJ as Fe, bu as ve, a3 as Be, o as fe, v as Ie, a6 as Ae, a5 as ye, aI as Ne, aG as xe, aK as ke, u as we, be as Ee, l as Oe, a7 as Le, ba as Me, bb as Ve, bc as Re, b9 as We, bv as je, b1 as Ge, b4 as ze, b0 as Ue, b2 as He, a$ as qe, m as Qe, ag as Je } from "./index-D0LQ2Tn1.js";
1
+ import { $ as s, B as o, A as t, C as r, aW as l, aY as i, aV as n, aX as g, aZ as b, aU as u, aQ as P, D as d, af as m, ae as C, E as c, bo as T, bm as D, F as p, G as S, bs as h, ab as F, H as v, k as B, I as f, L as I, a2 as A, P as y, r as N, q as x, s as k, t as w, w as E, y as O, z as L, J as M, M as V, N as R, Q as W, O as j, K as G, U as z, X as U, V as H, Y as q, aP as Q, Z as J, _ as K, a4 as X, W as Y, an as Z, aq as _, ac as $, ad as aa, ao as ea, ai as sa, ap as oa, aj as ta, ak as ra, al as la, ar as ia, as as na, at as ga, au as ba, av as ua, aF as Pa, aH as da, ay as ma, a9 as Ca, aa as ca, aw as Ta, aL as Da, aM as pa, bg as Sa, aN as ha, aR as Fa, aT as va, bf as Ba, ax as fa, bh as Ia, bj as Aa, br as ya, R as Na, S as xa, a8 as ka, aO as wa, a_ as Ea, T as Oa, bn as La, bi as Ma, bq as Va, bp as Ra, aC as Wa, aD as ja, aE as Ga, bz as za, by as Ua, bx as Ha, bw as qa, x as Qa, bB as Ja, aA as Ka, g as Xa, bk as Ya, ah as Za, bA as _a, a as $a, e as ae, c as ee, f as se, p as oe, i as te, h as re, b as le, az as ie, aB as ne, bl as ge, n as be, a0 as ue, a1 as Pe, aS as de, b8 as me, b7 as Ce, b3 as ce, b5 as Te, b6 as De, bd as pe, am as Se, bt as he, aJ as Fe, bu as ve, a3 as Be, o as fe, v as Ie, a6 as Ae, a5 as ye, aI as Ne, aG as xe, aK as ke, u as we, be as Ee, l as Oe, a7 as Le, ba as Me, bb as Ve, bc as Re, b9 as We, bv as je, b1 as Ge, b4 as ze, b0 as Ue, b2 as He, a$ as qe, m as Qe, ag as Je } from "./index-CvyjyrAx.js";
2
2
  export {
3
3
  s as BulkActionDialog,
4
4
  o as BulkSelector,
package/index.umd.cjs CHANGED
@@ -544,7 +544,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
544
544
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zrt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Grt(e){if(Array.isArray(e))return mU(e)}function fU(e,t){return Wrt(e)||Hrt(e,t)||Wme(e,t)||qrt()}function qrt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
545
545
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wme(e,t){if(e){if(typeof e=="string")return mU(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 mU(e,t)}}function mU(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 Hrt(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],a=!0,o=!1,i,l;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(r.push(i.value),!(t&&r.length===t));a=!0);}catch(s){o=!0,l=s}finally{try{!a&&n.return!=null&&n.return()}finally{if(o)throw l}}return r}}function Wrt(e){if(Array.isArray(e))return e}function Vme(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function _a(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vme(Object(n),!0).forEach(function(r){gU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vme(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nO(e,t){if(e==null)return{};var n=Vrt(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Vrt(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,o;for(o=0;o<r.length;o++)a=r[o],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}var vU=w.forwardRef(function(e,t){var n=e.children,r=nO(e,Mrt),a=Kme(r),o=a.open,i=nO(a,Lrt);return w.useImperativeHandle(t,function(){return{open:o}},[o]),w.createElement(w.Fragment,null,n(_a(_a({},i),{},{open:o})))});vU.displayName="Dropzone";var Yme={disabled:!1,getFilesFromEvent:nrt,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};vU.defaultProps=Yme,vU.propTypes={children:zr.func,accept:zr.objectOf(zr.arrayOf(zr.string)),multiple:zr.bool,preventDropOnDocument:zr.bool,noClick:zr.bool,noKeyboard:zr.bool,noDrag:zr.bool,noDragEventsBubbling:zr.bool,minSize:zr.number,maxSize:zr.number,maxFiles:zr.number,disabled:zr.bool,getFilesFromEvent:zr.func,onFileDialogCancel:zr.func,onFileDialogOpen:zr.func,useFsAccessApi:zr.bool,autoFocus:zr.bool,onDragEnter:zr.func,onDragLeave:zr.func,onDragOver:zr.func,onDrop:zr.func,onDropAccepted:zr.func,onDropRejected:zr.func,onError:zr.func,validator:zr.func};var hU={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Kme(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=_a(_a({},Yme),e),n=t.accept,r=t.disabled,a=t.getFilesFromEvent,o=t.maxSize,i=t.minSize,l=t.multiple,s=t.maxFiles,c=t.onDragEnter,p=t.onDragLeave,f=t.onDragOver,g=t.onDrop,v=t.onDropAccepted,b=t.onDropRejected,y=t.onFileDialogCancel,x=t.onFileDialogOpen,E=t.useFsAccessApi,C=t.autoFocus,R=t.preventDropOnDocument,N=t.noClick,O=t.noKeyboard,P=t.noDrag,M=t.noDragEventsBubbling,L=t.onError,W=t.validator,G=w.useMemo(function(){return Art(n)},[n]),B=w.useMemo(function(){return Nrt(n)},[n]),j=w.useMemo(function(){return typeof x=="function"?x:Qme},[x]),q=w.useMemo(function(){return typeof y=="function"?y:Qme},[y]),Y=w.useRef(null),K=w.useRef(null),ae=w.useReducer(Yrt,hU),oe=fU(ae,2),te=oe[0],ee=oe[1],z=te.isFocused,re=te.isFileDialogActive,ce=w.useRef(typeof window<"u"&&window.isSecureContext&&E&&Ort()),$=function(){!ce.current&&re&&setTimeout(function(){if(K.current){var Se=K.current.files;Se.length||(ee({type:"closeDialog"}),q())}},300)};w.useEffect(function(){return window.addEventListener("focus",$,!1),function(){window.removeEventListener("focus",$,!1)}},[K,re,q,ce]);var de=w.useRef([]),be=function(Se){Y.current&&Y.current.contains(Se.target)||(Se.preventDefault(),de.current=[])};w.useEffect(function(){return R&&(document.addEventListener("dragover",Gme,!1),document.addEventListener("drop",be,!1)),function(){R&&(document.removeEventListener("dragover",Gme),document.removeEventListener("drop",be))}},[Y,R]),w.useEffect(function(){return!r&&C&&Y.current&&Y.current.focus(),function(){}},[Y,C,r]);var ue=w.useCallback(function(ve){L?L(ve):console.error(ve)},[L]),ke=w.useCallback(function(ve){ve.preventDefault(),ve.persist(),Ee(ve),de.current=[].concat(jrt(de.current),[ve.target]),tO(ve)&&Promise.resolve(a(ve)).then(function(Se){if(!(eO(ve)&&!M)){var _e=Se.length,Ae=_e>0&&krt({files:Se,accept:G,minSize:i,maxSize:o,multiple:l,maxFiles:s,validator:W}),Ue=_e>0&&!Ae;ee({isDragAccept:Ae,isDragReject:Ue,isDragActive:!0,type:"setDraggedFiles"}),c&&c(ve)}}).catch(function(Se){return ue(Se)})},[a,c,ue,M,G,i,o,l,s,W]),Ce=w.useCallback(function(ve){ve.preventDefault(),ve.persist(),Ee(ve);var Se=tO(ve);if(Se&&ve.dataTransfer)try{ve.dataTransfer.dropEffect="copy"}catch{}return Se&&f&&f(ve),!1},[f,M]),he=w.useCallback(function(ve){ve.preventDefault(),ve.persist(),Ee(ve);var Se=de.current.filter(function(Ae){return Y.current&&Y.current.contains(Ae)}),_e=Se.indexOf(ve.target);_e!==-1&&Se.splice(_e,1),de.current=Se,!(Se.length>0)&&(ee({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),tO(ve)&&p&&p(ve))},[Y,p,M]),xe=w.useCallback(function(ve,Se){var _e=[],Ae=[];ve.forEach(function(Ue){var De=Ume(Ue,G),Ve=fU(De,2),Qe=Ve[0],bt=Ve[1],ut=zme(Ue,i,o),Yt=fU(ut,2),It=Yt[0],ye=Yt[1],Me=W?W(Ue):null;if(Qe&&It&&!Me)_e.push(Ue);else{var Xe=[bt,ye];Me&&(Xe=Xe.concat(Me)),Ae.push({file:Ue,errors:Xe.filter(function(At){return At})})}}),(!l&&_e.length>1||l&&s>=1&&_e.length>s)&&(_e.forEach(function(Ue){Ae.push({file:Ue,errors:[Crt]})}),_e.splice(0)),ee({acceptedFiles:_e,fileRejections:Ae,isDragReject:Ae.length>0,type:"setFiles"}),g&&g(_e,Ae,Se),Ae.length>0&&b&&b(Ae,Se),_e.length>0&&v&&v(_e,Se)},[ee,l,G,i,o,s,g,v,b,W]),Pe=w.useCallback(function(ve){ve.preventDefault(),ve.persist(),Ee(ve),de.current=[],tO(ve)&&Promise.resolve(a(ve)).then(function(Se){eO(ve)&&!M||xe(Se,ve)}).catch(function(Se){return ue(Se)}),ee({type:"reset"})},[a,xe,ue,M]),ie=w.useCallback(function(){if(ce.current){ee({type:"openDialog"}),j();var ve={multiple:l,types:B};window.showOpenFilePicker(ve).then(function(Se){return a(Se)}).then(function(Se){xe(Se,null),ee({type:"closeDialog"})}).catch(function(Se){Prt(Se)?(q(Se),ee({type:"closeDialog"})):Drt(Se)?(ce.current=!1,K.current?(K.current.value=null,K.current.click()):ue(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."))):ue(Se)});return}K.current&&(ee({type:"openDialog"}),j(),K.current.value=null,K.current.click())},[ee,j,q,E,xe,ue,B,l]),tt=w.useCallback(function(ve){!Y.current||!Y.current.isEqualNode(ve.target)||(ve.key===" "||ve.key==="Enter"||ve.keyCode===32||ve.keyCode===13)&&(ve.preventDefault(),ie())},[Y,ie]),rt=w.useCallback(function(){ee({type:"focus"})},[]),lt=w.useCallback(function(){ee({type:"blur"})},[]),St=w.useCallback(function(){N||(Rrt()?setTimeout(ie,0):ie())},[N,ie]),st=function(Se){return r?null:Se},pe=function(Se){return O?null:st(Se)},fe=function(Se){return P?null:st(Se)},Ee=function(Se){M&&Se.stopPropagation()},qe=w.useMemo(function(){return function(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Se=ve.refKey,_e=Se===void 0?"ref":Se,Ae=ve.role,Ue=ve.onKeyDown,De=ve.onFocus,Ve=ve.onBlur,Qe=ve.onClick,bt=ve.onDragEnter,ut=ve.onDragOver,Yt=ve.onDragLeave,It=ve.onDrop,ye=nO(ve,Brt);return _a(_a(gU({onKeyDown:pe(Tu(Ue,tt)),onFocus:pe(Tu(De,rt)),onBlur:pe(Tu(Ve,lt)),onClick:st(Tu(Qe,St)),onDragEnter:fe(Tu(bt,ke)),onDragOver:fe(Tu(ut,Ce)),onDragLeave:fe(Tu(Yt,he)),onDrop:fe(Tu(It,Pe)),role:typeof Ae=="string"&&Ae!==""?Ae:"presentation"},_e,Y),!r&&!O?{tabIndex:0}:{}),ye)}},[Y,tt,rt,lt,St,ke,Ce,he,Pe,O,P,r]),Ke=w.useCallback(function(ve){ve.stopPropagation()},[]),ze=w.useMemo(function(){return function(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Se=ve.refKey,_e=Se===void 0?"ref":Se,Ae=ve.onChange,Ue=ve.onClick,De=nO(ve,Frt),Ve=gU({accept:G,multiple:l,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:st(Tu(Ae,Pe)),onClick:st(Tu(Ue,Ke)),tabIndex:-1},_e,K);return _a(_a({},Ve),De)}},[K,n,l,Pe,r]);return _a(_a({},te),{},{isFocused:z&&!r,getRootProps:qe,getInputProps:ze,rootRef:Y,inputRef:K,open:st(ie)})}function Yrt(e,t){switch(t.type){case"focus":return _a(_a({},e),{},{isFocused:!0});case"blur":return _a(_a({},e),{},{isFocused:!1});case"openDialog":return _a(_a({},hU),{},{isFileDialogActive:!0});case"closeDialog":return _a(_a({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return _a(_a({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return _a(_a({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return _a({},hU);default:return e}}function Qme(){}function Krt(e){const{t}=jn(),n=lT(),{onDrop:r}=e,a=w.useCallback(l=>{if(!l||l.length===0)return;const s=l[0],c=new FileReader;c.onload=()=>{const p=c.result;if(typeof p=="string"){const f={variant:"success",title:t("File uploaded"),timeout:!0};n.addAlert(f),r(p)}},c.onerror=()=>{const p={variant:"danger",title:t("Failed to upload file"),children:t("Unable to upload")};n.addAlert(p)},c.readAsText(s)},[t,n,r]),{getRootProps:o,getInputProps:i}=Kme({onDrop:a,noClick:!0,accept:e.accept??{"application/json":[".json"],"text/yaml":[".yaml",".yml"]}});return I.jsxs("div",{id:"code-editor-dropzone",...o({disabled:!0}),style:{width:"100%",height:"100%"},children:[I.jsx("input",{id:"code-editor-dropzone-input",...i(),ref:e.inputRef}),e.children]})}function Qrt(e){return I.jsx(Q.Icon,{size:e.size??"md",children:I.jsx(Ht.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?AE("Collapse"):AE("Expand")})})}function Xrt(e,t,n="txt"){const r=new Blob(t.split("/n"),{type:"text/plain"}),a=document.createElement("a");a.href=URL.createObjectURL(r),a.download=e+"."+n,document.body.appendChild(a),a.click(),document.body.removeChild(a)}function zE(e){const{children:t,helperText:n,helperTextInvalid:r,isRequired:a,labelHelp:o,labelHelpTitle:i,label:l,fullWidth:s}=e;return I.jsxs(Q.FormGroup,{id:`${e.fieldId}-form-group`,fieldId:e.fieldId,label:I.jsxs(I.Fragment,{children:[e.icon,l]}),labelHelp:o?I.jsx(fS,{title:i,help:o}):void 0,labelInfo:e.additionalControls,isRequired:a,"data-cy":`${e.fieldId}-form-group`,style:{gridColumn:s?"span 12":void 0},children:[t,(n||r)&&I.jsx(Q.FormHelperText,{children:I.jsx(Q.HelperText,{children:I.jsx(Q.HelperTextItem,{variant:r?"error":void 0,children:r||n})})})]})}function Zrt(e){const{t}=jn(),{name:n,format:r,disableCopy:a,disableUpload:o,disableDownload:i,disableExpand:l,validate:s,isArray:c}=e,p=Cp(e),{formState:{isSubmitting:f,isValidating:g},setError:v,getValues:b,clearErrors:y,control:x}=xu(),C=Em().dataEditorFormat??"yaml",[R,N]=w.useState(C),[O,P]=w.useState(!e.defaultCollapsed),[M,L]=w.useState(()=>{const ue=b(n);return typeof ue=="string"?ue:xc(ue,C)}),[W,G]=w.useState(null),B=w.useCallback((ue,ke)=>{if(W){if(ke==="yaml")return W;if(ke==="json")try{return xc(Iu(W,c),"json")}catch{return xc(Iu(ue,c),ke)}}return xc(Iu(ue,c),ke)},[W,c]),j=lT(),{writeToClipboard:q}=BJ(),Y=w.useCallback(()=>q(xc(Iu(b(n),c),R)),[b,c,R,n,q]),K=w.useCallback(ue=>{L(xc(Iu(ue,c),R))},[c,R]),ae=w.useRef(null),oe=w.useCallback(()=>{var ue;return(ue=ae.current)==null?void 0:ue.click()},[]),te=w.useCallback(()=>{const ue=n||"data",ke=R==="json"?"json":"yaml";Xrt(ue,xc(Iu(b(n),c),R),ke),j.addAlert({variant:"success",title:t("File downloaded"),timeout:!0})},[j,b,c,R,n,t]);w.useLayoutEffect(()=>{const ue=b(n);typeof ue=="string"&&rO(ue)&&!W&&G(ue);const ke=B(ue,R);L(ke)},[b,c,R,n,B,W]);const[ee,z]=w.useState(!1),re=Tpe({name:n});w.useEffect(()=>{if(ee)return;typeof re=="string"&&rO(re)&&!W&&G(re);const ue=B(re,R);L(ue)},[ee,re,c,R,B,W]);const{setValue:ce,formState:{defaultValues:$}}=xu(),de=PE(e.label,e.isRequired),be=cy($,e.name);return I.jsx(oy,{name:n,control:x,shouldUnregister:!0,render:({field:{value:ue,name:ke,onChange:Ce},fieldState:{error:he}})=>{var Pe;function xe(ie){try{const tt=Iu(ie,c);switch(R==="yaml"&&rO(ie)&&G(ie),r){case"object":if(typeof tt=="object"&&tt!==null&&"__preserveYamlString"in tt){const rt=tt,lt=jE.load(rt.__preserveYamlString);Ce(lt);return}Ce(tt);return;case"yaml":if(typeof tt=="object"&&tt!==null&&"__preserveYamlString"in tt){Ce(tt.__preserveYamlString);return}Ce(xc(tt,r));break;default:Ce(xc(tt,r));break}y(ke)}catch(tt){tt instanceof Error&&v(ke,{message:tt.message})}}return I.jsxs(zE,{fieldId:p,icon:!l&&I.jsx(Qrt,{isExpanded:O,setExpanded:P}),label:e.label,labelHelpTitle:e.labelHelpTitle??e.label,labelHelp:e.labelHelp,additionalControls:I.jsx(Zme,{handleCopy:!a&&Y,handleUpload:!o&&oe,handleDownload:!i&&te,language:R,setLanguage:N,children:e.additionalControls}),helperText:e.helperText,helperTextInvalid:!(s&&g)&&((Pe=he==null?void 0:he.message)==null?void 0:Pe.split(`
546
546
  `)),isRequired:e.isRequired,children:[O&&I.jsxs("div",{style:{display:"flex"},children:[I.jsx(Krt,{onDrop:K,isDisabled:f||e.isReadOnly,inputRef:ae,children:I.jsx(Hnt,{"data-cy":p,id:p,name:ke,language:R,value:M,onChange:xe,setError:ie=>{ie?v(ke,{message:ie}):y(ke)},isReadOnly:e.isReadOnly||f,className:e.isReadOnly?"pf-v6-c-form-control pf-m-disabled":"pf-v6-c-form-control",onFocus:()=>z(!0),onBlur:()=>z(!1)})}),I.jsx(pu,{actions:[{label:t("Undo changes"),type:Nr.Button,selection:vr.None,onClick:()=>{ce(e.name,be),L(""),setTimeout(()=>{L(xc(Iu(be,c),R))},0)},isHidden:()=>!e.enableUndo||dfe(ue,be)},{label:t("Reset to default"),type:Nr.Button,selection:vr.None,onClick:()=>{ce(e.name,e.defaultValue),L(""),setTimeout(()=>{L(xc(Iu(e.defaultValue,c),R))},0)},isHidden:()=>!e.enableReset||dfe(ue,e.defaultValue)}],position:"right"})]}),!O&&I.jsx("div",{className:"pf-v6-c-form-control"})]})},rules:{required:de,validate:e.validate}})}function Xme(e){const{t}=jn(),{handleCopy:n,handleDownload:r,handleUpload:a}=e;return!n&&!r&&!a?I.jsx(I.Fragment,{}):I.jsxs(Q.Flex,{spaceItems:{default:"spaceItemsMd"},children:[n&&I.jsx(Q.FlexItem,{children:I.jsx(oT,{id:"copy-button","data-cy":"copy-button","aria-label":t("Copy to clipboard"),type:"button",onClick:n,children:I.jsx(Q.Icon,{size:"md",children:I.jsx(Ht.CopyIcon,{})})})}),a&&I.jsx(Q.FlexItem,{children:I.jsx(oT,{id:"upload-button","data-cy":"upload-button","aria-label":t("Upload from file"),type:"button",onClick:a,children:I.jsx(Q.Icon,{size:"md",children:I.jsx(Ht.UploadIcon,{})})})}),r&&I.jsx(Q.FlexItem,{children:I.jsx(oT,{id:"download-button","data-cy":"download-button","aria-label":t("Download file"),type:"button",onClick:r,children:I.jsx(Q.Icon,{size:"md",children:I.jsx(Ht.DownloadIcon,{})})})})]})}function Zme(e){const{t}=jn(),{handleCopy:n,handleDownload:r,handleUpload:a,language:o,setLanguage:i}=e;return I.jsxs(Q.Flex,{spaceItems:{default:"spaceItemsLg"},children:[I.jsx(Q.FlexItem,{children:e.children}),I.jsx(Xme,{handleCopy:n,handleDownload:r,handleUpload:a}),I.jsx(Q.FlexItem,{align:{default:"alignRight"},children:I.jsxs(Q.ToggleGroup,{isCompact:!0,children:[I.jsx(Q.ToggleGroupItem,{id:"toggle-yaml","data-cy":"toggle-yaml","aria-label":t("Toggle to YAML"),isSelected:o==="yaml",text:"YAML",type:"button",onChange:()=>i("yaml")}),I.jsx(Q.ToggleGroupItem,{id:"toggle-json","data-cy":"toggle-json","aria-label":t("Toggle to JSON"),isSelected:o==="json",text:"JSON",type:"button",onChange:()=>i("json")})]})})]})}function rO(e){return e.split(`
547
- `).some(n=>{const r=n.trim();return r.startsWith("#")||r.includes("#")&&!/^[^#]*["'][^"']*#[^"']*["'][^#]*$/.exec(r)})}function Iu(e,t){const n=t?[]:{};if(e==null)return n;const a=()=>{try{e=jE.load(e)}catch(o){return o instanceof Error||o instanceof nU?new Error(o.message):{}}};if(typeof e=="string"){if(rO(e))try{return jE.load(e),{__preserveYamlString:e}}catch{}try{e=JSON.parse(e)}catch{a()}}return t?Array.isArray(e)?e:[]:Array.isArray(e)?{}:e}function xc(e,t){if(e==null)return"";if(e instanceof Error)return e.message;if(typeof e=="object"&&e!==null&&"__preserveYamlString"in e){const n=e;if(t==="yaml")return n.__preserveYamlString;try{const r=jE.load(n.__preserveYamlString);return JSON.stringify(r,null,2)}catch{return n.__preserveYamlString}}switch(t){case"json":return JSON.stringify(e,null,2);case"yaml":try{const n=jE.dump(e).trimEnd();switch(n){case"null":case"{}":case"[]":return"";default:return n}}catch(n){return n instanceof Error||n instanceof nU?n.message:""}default:return""}}function Jrt(e){const{additionalControls:t,footer:n,helperText:r,isDisabled:a,isReadOnly:o,isRequired:i,label:l,labelHelp:s,labelHelpTitle:c,name:p,options:f,placeholderText:g,validate:v}=e,b=Cp(e),{t:y}=jn(),{control:x,setValue:E,getValues:C,formState:{isSubmitting:R,isValidating:N,defaultValues:O}}=xu(),[P,M]=w.useState(!1),L=w.useCallback(()=>M(!P),[P]),[W]=Na(),G=PE(e.label,e.isRequired),B=cy(O,e.name);w.useEffect(()=>{C(e.name)||f.length===1&&i&&E(e.name,f[0].value)},[C,i,f,e.name,E]);const j=(q,Y)=>I.jsx(Q.MenuToggle,{"data-cy":`${b}-form-group`,id:`${b}-form-group-toggle`,isDisabled:a||o||R,ref:q,onClick:L,isExpanded:P,isFullWidth:!0,children:Y??g});return I.jsx(oy,{name:p,control:x,defaultValue:e.defaultValue,shouldUnregister:!0,render:({field:{onChange:q,value:Y},fieldState:{error:K}})=>{const ae=(ee,z)=>{const re=f.find(ce=>ce.value===z);re&&(q(re.value),e.onChange&&e.onChange(re.value)),M(!1)},oe=K!=null&&K.message?v&&N?W.validating:K==null?void 0:K.message:void 0,te=f.find(ee=>ee.value===Y);return I.jsx(zE,{fieldId:b,label:l,labelHelpTitle:c??l,labelHelp:s,additionalControls:t,helperText:r,helperTextInvalid:oe,isRequired:i,children:I.jsxs("div",{style:{display:"flex"},children:[I.jsx(Q.Select,{"aria-describedby":`${b}-form-group-select`,"data-cy":b,id:b,isOpen:P,itemID:b,onOpenChange:ee=>M(ee),onSelect:ae,ouiaId:"menu-select",shouldFocusToggleOnSelect:!0,toggle:ee=>j(ee,te==null?void 0:te.label),isScrollable:!0,popperProps:{enableFlip:!0,preventOverflow:!0},children:I.jsxs(I.Fragment,{children:[I.jsx(Q.SelectList,{children:f.map(ee=>{const z=uu(ee);return I.jsx(Q.SelectOption,{id:z,value:ee.value,label:ee.label,description:ee.description,"data-cy":z,children:ee.label},ee.label)})}),n&&I.jsx(Q.MenuFooter,{children:n})]})}),I.jsx(pu,{actions:[{label:y("Undo changes"),type:Nr.Button,selection:vr.None,onClick:()=>{E(e.name,B)},isHidden:()=>!e.enableUndo||Y===B},{label:y("Reset to default"),type:Nr.Button,selection:vr.None,onClick:()=>{E(e.name,e.defaultValue)},isHidden:()=>!e.enableReset||Y===e.defaultValue}],variant:Q.ButtonVariant.control,position:"right"})]})})},rules:{required:G,validate:v}})}function $rt(e){const{name:t,helperText:n,validate:r,additionalControls:a,label:o,labelHelp:i,labelHelpTitle:l,labelOn:s}=e,{control:c,formState:{isSubmitting:p,isValidating:f}}=xu(),g=Cp(e);return I.jsx(oy,{name:t,control:c,shouldUnregister:!0,render:({field:{onChange:v,value:b},fieldState:{error:y}})=>{const x=r&&f||y==null?void 0:y.message;return I.jsx(zE,{fieldId:g,"data-cy":g+"-form-group",label:o,labelHelpTitle:l??o,labelHelp:i,helperText:n,helperTextInvalid:x,additionalControls:a,children:I.jsx(Q.Switch,{"data-cy":g+"-toggle","aria-label":o,isChecked:b,onChange:E=>v(E),isDisabled:p,label:s})})}})}function eat(e){const{type:t,name:n,label:r,labelHelpTitle:a,labelHelp:o,additionalControls:i,placeholder:l,button:s,helperText:c,isDisabled:p,isReadOnly:f,isRequired:g,validate:v,minLength:b,maxLength:y,min:x,max:E,pattern:C,selectTitle:R,selectOpen:N,selectValue:O,autoFocus:P,autoComplete:M,disableAutoResize:L}=e,W=Cp(e),{control:G,setValue:B,formState:{isSubmitting:j,isValidating:q}}=xu(),[Y,K]=w.useState(!1),[ae]=Na(),oe=PE(e.label,e.isRequired);return I.jsx(oy,{name:n,control:G,shouldUnregister:!0,render:({field:{onChange:te,value:ee,name:z},fieldState:{error:re}})=>{const ce=re!=null&&re.message?v&&q?ae.validating:re==null?void 0:re.message:void 0;function $(de){te(de.trimStart())}return I.jsx(zE,{fieldId:W,label:r,labelHelpTitle:a??r,labelHelp:o,additionalControls:i,helperText:c,helperTextInvalid:ce,isRequired:g,fullWidth:!0,children:I.jsxs(Q.InputGroup,{children:[I.jsx(Q.InputGroupItem,{isFill:!0,children:I.jsx(Q.TextArea,{id:W,placeholder:l,onChange:(de,be)=>$(be),value:ee??"","aria-describedby":W?`${W}-form-group`:void 0,validated:ce?"error":void 0,type:t==="password"?Y?"text":"password":t,readOnlyVariant:f?"default":void 0,isDisabled:p,autoFocus:P,autoComplete:M||"off","data-cy":W,autoResize:L===void 0?!0:!L,rows:1,resizeOrientation:"vertical"})}),t==="password"&&I.jsx(Q.Button,{variant:"control",onClick:()=>K(!Y),isDisabled:p||f,children:Y?I.jsx(Ht.EyeIcon,{}):I.jsx(Ht.EyeSlashIcon,{})}),R&&I.jsx(Q.Button,{icon:I.jsx(Ht.SearchIcon,{}),ouiaId:`lookup-${z}-button`,variant:"control",onClick:()=>N==null?void 0:N(de=>{if(O){const be=O(de);B(z,be,{shouldValidate:!0})}},R),"aria-label":"Options menu",isDisabled:p||j}),s]})})},rules:{required:oe,validate:v,minLength:typeof r=="string"&&typeof b=="number"?{value:b,message:`${Cu(r.toLocaleLowerCase())} must be at least ${b} characters.`}:b,maxLength:typeof r=="string"&&typeof y=="number"?{value:y,message:`${Cu(r.toLocaleLowerCase())} cannot be greater than ${y} characters.`}:y,min:typeof r=="string"&&(typeof x=="number"||typeof x=="string")?{value:x,message:`${Cu(r.toLocaleLowerCase())} must be less than ${x}.`}:b,max:typeof r=="string"&&(typeof E=="number"||typeof E=="string")?{value:E,message:`${Cu(r.toLocaleLowerCase())} cannot be greater than ${E}.`}:b,pattern:C}})}function tat(e){const{type:t,name:n,label:r,labelHelpTitle:a,labelHelp:o,additionalControls:i,placeholder:l,button:s,helperText:c,isDisabled:p,isReadOnly:f,isRequired:g,validate:v,minLength:b,maxLength:y,min:x,max:E,pattern:C,selectTitle:R,selectOpen:N,selectValue:O,autoFocus:P,autoComplete:M,fullWidth:L}=e,W=Cp(e),{t:G}=jn(),{control:B,setValue:j,formState:{isSubmitting:q,isValidating:Y,defaultValues:K}}=xu(),[ae,oe]=w.useState(!1),[te]=Na(),ee=PE(e.label,e.isRequired),z=cy(K,e.name);return I.jsx(oy,{name:n,control:B,shouldUnregister:e.shouldUnregister!==!1,defaultValue:e.defaultValue,render:({field:{onChange:re,value:ce,name:$},fieldState:{error:de}})=>{const be=de!=null&&de.message?v&&Y?te.validating:de==null?void 0:de.message:void 0;let ue=ce;switch(t){case"datetime-local":if(ce){const Ce=new Date(ce);ue=new Date(Ce.getTime()-Ce.getTimezoneOffset()*6e4).toISOString().slice(0,16)}break}function ke(Ce){switch(e.type){case"datetime-local":{re(new Date(Ce).toISOString());break}case"number":{let he=Number(Ce);if(Ce===""||isNaN(he)){j($,null),re(null);return}E!==void 0&&he>Number(E)&&(he=Number(E)),x!==void 0&&he<Number(x)&&(he=Number(x)),j($,he),re(he);break}default:re(Ce.trimStart())}}return I.jsx(zE,{fieldId:W,label:r,labelHelpTitle:a??r,labelHelp:o,additionalControls:i,helperText:c,helperTextInvalid:be,isRequired:g,fullWidth:L,children:I.jsxs(Q.InputGroup,{children:[I.jsx(Q.InputGroupItem,{isFill:!0,children:I.jsx(Q.TextInput,{id:W,placeholder:l,onChange:(Ce,he)=>ke(he),value:ue??"","aria-describedby":W?`${W}-form-group`:void 0,validated:be?"error":void 0,type:t==="password"?ae?"text":"password":t,readOnlyVariant:f?"default":void 0,isDisabled:p,autoFocus:P,autoComplete:M||(t==="password"?"new-password":"off"),"data-cy":W})}),t==="password"&&I.jsx(Q.Button,{variant:"control",onClick:()=>oe(!ae),isDisabled:p||f,children:ae?I.jsx(Ht.EyeIcon,{}):I.jsx(Ht.EyeSlashIcon,{})}),R&&I.jsx(Q.Button,{icon:I.jsx(Ht.SearchIcon,{"data-cy":"lookup-button"}),ouiaId:`lookup-${$}-button`,variant:"control",onClick:()=>N==null?void 0:N(Ce=>{if(O){const he=O(Ce);j($,he,{shouldValidate:!0})}},R),"aria-label":"Options menu",isDisabled:p||q}),s,I.jsx(pu,{actions:[{label:G("Undo changes"),type:Nr.Button,selection:vr.None,onClick:()=>{j(e.name,z)},isHidden:()=>!e.enableUndo||ce===z},{label:G("Reset to default"),type:Nr.Button,selection:vr.None,onClick:()=>{j(e.name,e.defaultValue)},isHidden:()=>!e.enableReset||ce===e.defaultValue}],variant:Q.ButtonVariant.control,position:"right"})]})})},rules:{required:ee,validate:v,minLength:typeof r=="string"&&typeof b=="number"?{value:b,message:`${Cu(r.toLocaleLowerCase())} must be at least ${b} characters.`}:b,maxLength:typeof r=="string"&&typeof y=="number"?{value:y,message:`${Cu(r.toLocaleLowerCase())} cannot be greater than ${y} characters.`}:y,min:typeof r=="string"&&(typeof x=="number"||typeof x=="string")?{value:x,message:`${Cu(r.toLocaleLowerCase())} must be greater or equal to ${x}.`}:b,max:typeof r=="string"&&(typeof E=="number"||typeof E=="string")?{value:E,message:`${Cu(r.toLocaleLowerCase())} cannot be greater than ${E}.`}:E,pattern:C}})}const Jme=w.createContext({tabBreadcrumb:{},setTabBreadcrumb:()=>{}});function nat(e){const[t,n]=w.useState();return I.jsx(Jme.Provider,{value:{tabBreadcrumb:t,setTabBreadcrumb:n},children:e.children})}const rat=()=>w.useContext(Jme);function aat(e){return I.jsx(kZ,{children:I.jsx(kee,{defaultRefreshInterval:e.defaultRefreshInterval,children:I.jsx(MMe,{children:I.jsx(npe,{children:I.jsx(TJ,{children:I.jsx(RJ,{children:I.jsx(nat,{children:e.children})})})})})})})}function oat(e){const t=fa.useNavigate();return e.breadcrumbs?I.jsx(Q.Breadcrumb,{style:e.style,children:e.breadcrumbs.map((n,r)=>n.label?I.jsx(Q.BreadcrumbItem,{"data-cy":n.label,id:n.id,component:n.component,isActive:n.to===void 0,children:n.to?I.jsx("a",{href:n.to,"data-cy":n.label,onClick:a=>{a.preventDefault(),n.to&&t(n.to)},children:n.label}):n.label},r):I.jsx(w.Fragment,{},r))}):I.jsx(w.Fragment,{})}function iat(e){const{title:t,description:n,controls:r,headerActions:a,footer:o}=e,i=Fl("lg"),l=Fl("xl"),s=Fl("md"),[c]=Na(),{tabBreadcrumb:p}=rat(),f=w.useMemo(()=>{const g=[];return e.breadcrumbs&&(g.push(...e.breadcrumbs),p&&g.push(p)),g},[e.breadcrumbs,p]);return I.jsx(Q.PageSection,{hasBodyWrapper:!1,style:{paddingBlock:l?16:12},children:I.jsxs(Q.Stack,{hasGutter:!0,children:[I.jsxs(Q.Flex,{flexWrap:{default:"nowrap"},alignItems:{default:"alignItemsStretch"},children:[I.jsxs(Q.FlexItem,{grow:{default:"grow"},children:[f.length>0&&I.jsx(oat,{breadcrumbs:f!=null&&f.length?f:void 0,style:{paddingBottom:i?6:4}}),t?e.titleHelp?I.jsx(Q.Popover,{headerContent:e.titleHelpTitle??e.title,bodyContent:I.jsxs(Q.Stack,{hasGutter:!0,children:[typeof e.titleHelp=="string"?I.jsx(Q.StackItem,{children:e.titleHelp}):e.titleHelp.map((g,v)=>I.jsx(Q.StackItem,{children:g},v)),e.titleDocLink&&I.jsx(Q.StackItem,{children:I.jsx(Q.Button,{icon:I.jsx(Ht.ExternalLinkAltIcon,{}),variant:"link",onClick:()=>window.open(e.titleDocLink,"_blank"),isInline:!0,iconPosition:"end",children:c.documentation})})]}),position:"bottom-start",children:I.jsxs(Q.Title,{"data-testid":"page-title","data-cy":"page-title",headingLevel:"h1",children:[t,I.jsx(Q.Button,{icon:I.jsx(Ht.OutlinedQuestionCircleIcon,{}),variant:"link",style:{padding:0,marginTop:1,marginLeft:8,verticalAlign:"top"}})]})}):I.jsx(Q.Title,{"data-cy":"page-title",headingLevel:"h1",children:t}):null,s&&n&&I.jsx("div",{"data-cy":"app-description",style:{paddingTop:l?4:2,opacity:.8},children:n})]}),t&&(a||r)&&I.jsxs(Q.Flex,{"data-cy":"manage-view",direction:{default:"column"},spaceItems:{default:"spaceItemsSm",xl:"spaceItemsMd"},justifyContent:{default:"justifyContentCenter"},children:[r&&I.jsx(Q.FlexItem,{grow:{default:"grow"},children:r}),a&&I.jsx(Q.FlexItem,{children:a})]})]}),o]})})}function $me(e){const[t]=Na();return I.jsx(LJ,{message:t.errorText,children:e.children})}function lat(e){return I.jsxs(Q.Masthead,{display:{default:"inline"},children:[I.jsxs(Q.MastheadMain,{children:[I.jsx(ege,{}),I.jsx(Q.MastheadBrand,{children:I.jsx(Q.MastheadLogo,{component:t=>I.jsx(fa.Link,{...t,to:"/",style:{textDecoration:"none",color:"light-dark(black, white)"}}),children:e.brand})})]}),I.jsx(Q.MastheadContent,{style:{marginLeft:0,minHeight:0},children:I.jsx(Q.Toolbar,{id:"toolbar","data-cy":"toolbar",inset:{default:"insetNone"},style:{padding:0},children:I.jsx(Q.ToolbarContent,{children:e.children})})})]})}function ege(){const e=cT();return I.jsx(Q.MastheadToggle,{onClick:()=>e.setState({isOpen:!e.isOpen}),children:I.jsx(Q.PageToggleButton,{isHamburgerButton:!0,"data-cy":"nav-toggle",variant:"plain","aria-label":"Global navigation"})})}function sat(){const{setNotificationsDrawerOpen:e,notificationGroups:t}=s_(),{isNotificationRead:n}=pT(),r=Object.values(t).reduce((a,o)=>{const i=o.notifications.filter(l=>typeof l.id!="string"?!1:!n(l.id));return a+i.length},0);return I.jsx(Q.NotificationBadge,{"data-cy":"notification-badge",variant:r===0?"read":"unread",count:r,onClick:()=>e(a=>!a)})}function cat(){const[e,t]=w.useContext(vv);return e.activeTheme==="dark"?I.jsx(Q.Button,{icon:I.jsx(Ht.MoonIcon,{}),"data-cy":"settings-icon",variant:"plain",onClick:()=>t({...e,theme:"light"})}):I.jsx(Q.Button,{icon:I.jsx(Ht.SunIcon,{}),"data-cy":"theme-icon",variant:"plain",onClick:()=>t({...e,theme:"dark"})})}function dat(e){return e.replace(/^\//,"")}function tge(e,t){for(const n of e){if("id"in n&&n.id===t)return n;if("children"in n){const r=tge(n.children,t);if(r)return r}}}function nge(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 a=nge(r.children,t);if(a)return a}}}function rge(e,t,n){for(const r of e)if("id"in r&&r.id===t){const a=r;"children"in r||(a.children=[]),a.children.push(n);return}else"children"in r&&rge(r.children,t,n)}function age(e,t,n){for(let r=0;r<e.length;r++){const a=e[r];if("id"in a&&a.id===t){e.splice(r+1,0,n);return}else"children"in a&&age(a.children,t,n)}}function oge(e,t,n){for(let r=0;r<e.length;r++){const a=e[r];if("id"in a&&a.id===t){e.splice(r,0,n);return}else"children"in a&&oge(a.children,t,n)}}function ige(){const e=PMe();return w.useCallback((t,n)=>{let r=e[t]??"";const a=n==null?void 0:n.params,o=n==null?void 0:n.query;return r&&(a&&(r=Object.keys(a).reduce((i,l)=>{let s=a[l];if(s==null)return i;s=encodeURIComponent(s.toString());const c=":"+l,p=new RegExp(c+"(?!.*"+c+")","g");return i.replace(p,s)},r)),o&&(r=`${r}?${Object.keys(o).map(i=>{let l=o[i];return l===void 0?"":(l=encodeURIComponent(l.toString()),`${i}=${l}`)}).join("&").replace("/&&/g","&")}`)),r},[e])}function uat(){const e=fa.useNavigate(),t=ige();return w.useCallback((n,r)=>{const a=t(n,r);a&&e(a)},[e,t])}function pat(e){const{loading:t}=e,[n,r]=w.useState((e==null?void 0:e.initialTabIndex)??0),a=w.useCallback((s,c)=>r(c),[r]),o=w.Children.toArray(e.children),i=o.map((s,c)=>{if(w.isValidElement(s)&&s.type===bU){const p=s.props.label;return I.jsx(Q.Tab,{title:p||I.jsx(Q.Skeleton,{width:"60px"}),eventKey:c},p??c)}return s}),l=o[n];return t?I.jsx(Q.Tabs,{children:I.jsx(bU,{children:I.jsx(Q.PageSection,{hasBodyWrapper:!1,children:I.jsx(Q.Skeleton,{})})})}):I.jsxs(I.Fragment,{children:[I.jsx(Q.Tabs,{activeKey:n,onSelect:a,inset:{default:"insetSm"},className:"pf-v6-u-mb-md",children:i}),l]})}function bU(e){return I.jsx(I.Fragment,{children:e.children})}function fat(e,t,n,r){return(a,o)=>{e(i=>{r?r(i):a(i.map(l=>t(l)))},o?o.map(i=>n(i)):[])}}function mat(e,t,n,r){return(a,o)=>{e(i=>{r?r(i):a(t(i))},o?n(o):void 0)}}function gat(){const[e,t]=w.useState(!0);return w.useEffect(()=>()=>{t(!1)},[]),e}function vat(){const e=w.useRef({isMounted:!0});return w.useEffect(()=>()=>{e.current.isMounted=!1},[]),e}function lge(){const e=gat(),[t,n]=w.useState(e?window.location:void 0),r=w.useCallback(()=>{n(window.location)},[]);w.useEffect(()=>{if(e)return t||r(),window.addEventListener("popstate",r),()=>{window.removeEventListener("popstate",r)}},[e,t,r]);const a=w.useCallback(i=>{window.history.replaceState(null,"",i),r()},[r]),o=w.useCallback(i=>{window.history.replaceState(null,"",i),r()},[r]);return{location:t,push:a,update:o}}function sge(){var a,o;const e=lge(),t=((a=e.location)==null?void 0:a.pathname)||"/",n=w.useMemo(()=>{var l;let i=(l=e.location)==null?void 0:l.search;return i&&i.includes("?specPath=")?i=i.substring(0,i.indexOf("?specPath=")):i&&i.includes("&specPath=")&&(i=i.substring(0,i.indexOf("&specPath="))),new URLSearchParams(i??"/")},[(o=e.location)==null?void 0:o.search]),r=w.useCallback(i=>{const l=i.toString();l?e.update("?"+l):e.update(t)},[e,t]);return[n,r]}const cge=w.createContext({});function Xv(){return w.useContext(cge)}function hat(e,t){return!e.hidden||!e.hidden(t)?e:null}function Zp(e){return(e==null?void 0:e.substeps)!==void 0}function bat(e){const{steps:t,onSubmit:n}=e,[r,a]=w.useState(!1),[o,i]=w.useState(null),[l,s]=w.useState({}),[c,p]=w.useState(e.stepDefaults??{}),[f,g]=w.useState({}),[v,b]=w.useState(),[y,x]=w.useState(!1),[E,C]=sge(),R=w.useMemo(()=>_at(t),[t]);w.useEffect(()=>{if(process.env.NODE_ENV==="development")for(const M in e.stepDefaults)t.find(L=>L.id===M)||console.warn(`PageWizardProvider: defaultValue key '${M}' not found in steps.`)},[e.stepDefaults,t]),w.useEffect(()=>{const M=aO(t,l);o||!M.length||(M[0].substeps?i(M[0].substeps[0]):i(M[0]))},[o,t,l]);const N=w.useCallback(async(M={})=>{var j;const L=dge(t,{...l,...M});if(o===null)return Promise.resolve();if(!Zp(o)&&o.validate&&await o.validate(M,l),(o==null?void 0:o.id)===((j=L[L.length-1])==null?void 0:j.id)){x(!0);try{await n(l)}catch(q){b(q instanceof Error?q:new Error(AE("An error occurred.")))}finally{x(!1)}return}const G=L.findIndex(q=>q.id===(o==null?void 0:o.id)),B=Zp(L[G+1])?L[G+2]:L[G+1];return C(new URLSearchParams("")),s(q=>({...q,...M})),p(q=>({...q,[o==null?void 0:o.id]:M})),i(B),Promise.resolve()},[o,t,n,C,l,b]),O=w.useCallback(()=>{const M=aO(R,l),L=M.findIndex(G=>G.id===(o==null?void 0:o.id)),W=Zp(M[L-1])?M[L-2]:M[L-1];C(new URLSearchParams("")),i(W)},[o==null?void 0:o.id,R,C,l]),P=w.useMemo(()=>({wizardData:l,setWizardData:s,stepData:c,setStepData:p,steps:e.steps,visibleSteps:aO(t,l),visibleStepsFlattened:dge(t,l),activeStep:o,setActiveStep:i,stepError:f,setStepError:g,submitError:v,setSubmitError:b,isToggleExpanded:r,setToggleExpanded:a,onNext:N,onBack:O,isSubmitting:y}),[l,s,c,p,e.steps,t,o,i,f,g,v,b,r,a,N,O,y]);return I.jsx(cge.Provider,{value:P,children:e.children})}function _at(e){return e.reduce((t,n)=>(t.push(n),Zp(n)&&t.push(...n.substeps),t),[])}function aO(e,t){return e.filter(n=>hat(n,t))}function dge(e,t){return aO(e,t).reduce((r,a)=>(r.push(a),Zp(a)&&r.push(...a.substeps),r),[])}function uge(e){const{t}=jn(),{activeStep:n,visibleStepsFlattened:r,setSubmitError:a}=Xv(),o=(n==null?void 0:n.id)===r[r.length-1].id,i=t(o?"Finish":"Next"),l=Zp(r[0])?(n==null?void 0:n.id)===r[1].id:(n==null?void 0:n.id)===r[0].id,s=l?"pf-v6-c-button pf-m-disabled":"pf-v6-c-button pf-m-secondary";return I.jsx("footer",{className:"pf-v6-c-wizard__footer","data-cy":"wizard-footer",children:I.jsxs(Q.ActionList,{children:[I.jsxs(Q.ActionListGroup,{children:[I.jsx(Q.ActionListItem,{children:n!==null&&"inputs"in n?I.jsx(Mj,{style:{minWidth:10},children:i}):I.jsx("button",{"data-cy":"wizard-next",className:"pf-v6-c-button pf-m-primary",type:"submit",onClick:()=>{var c;a(void 0),(c=e.onNext)==null||c.call(e)},children:i})}),I.jsx(Q.ActionListItem,{children:I.jsx("button",{type:"button","data-cy":"wizard-back",className:s,disabled:l,onClick:()=>{var c;a(void 0),(c=e.onBack)==null||c.call(e)},children:t("Back")})})]}),I.jsx(Q.ActionListItem,{children:I.jsx("div",{"data-cy":"wizard-cancel",className:"pf-v6-c-wizard__footer-cancel",children:I.jsx("button",{className:"pf-v6-c-button pf-m-link",type:"button",onClick:e.onCancel,children:t("Cancel")})})})]})})}function yat({onCancel:e,disableGrid:t,errorAdapter:n,isVertical:r,singleColumn:a}){const o=fa.useNavigate(),{activeStep:i,stepData:l,onNext:s,onBack:c,submitError:p,isSubmitting:f}=Xv(),g=w.useCallback(()=>{e?e():o(-1)},[o,e]);return f?I.jsx(Q.Bullseye,{children:I.jsx(Q.Spinner,{})}):I.jsxs($me,{children:[I.jsx(Sat,{error:p}),i!==null&&("inputs"in i?I.jsxs(Vpe,{onSubmit:s,footer:I.jsx(uge,{onBack:c,onCancel:g}),defaultValue:l[i.id],errorAdapter:n,disableGrid:t,isVertical:r,singleColumn:a,isWizard:!0,children:[I.jsx(xat,{}),i.inputs]},i.id):I.jsxs("div",{"data-cy":`wizard-section-${i.id}`,style:{display:"flex",flexDirection:"column",flexGrow:1,overflow:"hidden"},children:[I.jsx(Q.PageSection,{hasBodyWrapper:!1,"aria-label":AE("Wizard step content"),hasOverflowScroll:!0,isFilled:!0,children:i==null?void 0:i.element}),I.jsx(uge,{onNext:()=>void s({}),onBack:c,onCancel:g})]}))]})}function xat(){const{activeStep:e,setStepError:t}=Xv(),{errors:n}=Ij(),r=JSON.stringify(n);return w.useEffect(()=>{Object.keys(n).length===0?t({}):e&&t({[e.id]:n})},[n,e,t,r]),null}function Sat(e){const{t}=jn(),n=e.error;if(!e.error)return null;if(!(e.error instanceof Error))return typeof e.error=="string"?I.jsx(Q.Alert,{variant:"danger",title:e.error}):I.jsx(Q.Alert,{variant:"danger",title:t("An error occurred.")});if("message"in e.error&&!n.json)return I.jsx(Q.Alert,{variant:"danger",title:e.error.message});if(n.json)return I.jsx(Q.Alert,{variant:"danger",title:n.message,isInline:!0,children:Object.values(n.json).map((r,a)=>I.jsx("div",{children:r},a))})}function Ru(...e){const t=[],n={}.hasOwnProperty;return e.filter(Boolean).forEach(r=>{const a=typeof r;if(a==="string"||a==="number")t.push(r);else if(Array.isArray(r)&&r.length){const o=Ru(...r);o&&t.push(o)}else if(a==="object")for(const o in r)n.call(r,o)&&r[o]&&t.push(o)}),t.join(" ")}const Jp={wizardClose:"pf-v6-c-wizard__close",wizardHeader:"pf-v6-c-wizard__header",wizardTitle:"pf-v6-c-wizard__title",wizardTitleText:"pf-v6-c-wizard__title-text",wizardToggle:"pf-v6-c-wizard__toggle",wizardToggleIcon:"pf-v6-c-wizard__toggle-icon",wizardToggleList:"pf-v6-c-wizard__toggle-list",wizardToggleListItem:"pf-v6-c-wizard__toggle-list-item",wizardToggleNum:"pf-v6-c-wizard__toggle-num"},Eat=Cn.div`
547
+ `).some(n=>{const r=n.trim();return r.startsWith("#")||r.includes("#")&&!/^[^#]*["'][^"']*#[^"']*["'][^#]*$/.exec(r)})}function Iu(e,t){const n=t?[]:{};if(e==null)return n;const a=()=>{try{e=jE.load(e)}catch(o){return o instanceof Error||o instanceof nU?new Error(o.message):{}}};if(typeof e=="string"){if(rO(e))try{return jE.load(e),{__preserveYamlString:e}}catch{}try{e=JSON.parse(e)}catch{a()}}return t?Array.isArray(e)?e:[]:Array.isArray(e)?{}:e}function xc(e,t){if(e==null)return"";if(e instanceof Error)return e.message;if(typeof e=="object"&&e!==null&&"__preserveYamlString"in e){const n=e;if(t==="yaml")return n.__preserveYamlString;try{const r=jE.load(n.__preserveYamlString);return JSON.stringify(r,null,2)}catch{return n.__preserveYamlString}}switch(t){case"json":return JSON.stringify(e,null,2);case"yaml":try{const n=jE.dump(e).trimEnd();switch(n){case"null":case"{}":case"[]":return"";default:return n}}catch(n){return n instanceof Error||n instanceof nU?n.message:""}default:return""}}function Jrt(e){const{additionalControls:t,footer:n,helperText:r,isDisabled:a,isReadOnly:o,isRequired:i,label:l,labelHelp:s,labelHelpTitle:c,name:p,options:f,placeholderText:g,validate:v}=e,b=Cp(e),{t:y}=jn(),{control:x,setValue:E,getValues:C,formState:{isSubmitting:R,isValidating:N,defaultValues:O}}=xu(),[P,M]=w.useState(!1),L=w.useCallback(()=>M(!P),[P]),[W]=Na(),G=PE(e.label,e.isRequired),B=cy(O,e.name);w.useEffect(()=>{C(e.name)||f.length===1&&i&&E(e.name,f[0].value)},[C,i,f,e.name,E]);const j=(q,Y)=>I.jsx(Q.MenuToggle,{"data-cy":`${b}-form-group`,id:`${b}-form-group-toggle`,isDisabled:a||o||R,ref:q,onClick:L,isExpanded:P,isFullWidth:!0,children:Y??g});return I.jsx(oy,{name:p,control:x,defaultValue:e.defaultValue,shouldUnregister:!0,render:({field:{onChange:q,value:Y},fieldState:{error:K}})=>{const ae=(ee,z)=>{const re=f.find(ce=>ce.value===z);re&&(q(re.value),e.onChange&&e.onChange(re.value)),M(!1)},oe=K!=null&&K.message?v&&N?W.validating:K==null?void 0:K.message:void 0,te=f.find(ee=>ee.value===Y);return I.jsx(zE,{fieldId:b,label:l,labelHelpTitle:c??l,labelHelp:s,additionalControls:t,helperText:r,helperTextInvalid:oe,isRequired:i,children:I.jsxs("div",{style:{display:"flex"},children:[I.jsx(Q.Select,{"aria-describedby":`${b}-form-group-select`,"data-cy":b,id:b,isOpen:P,itemID:b,onOpenChange:ee=>M(ee),onSelect:ae,ouiaId:"menu-select",shouldFocusToggleOnSelect:!0,toggle:ee=>j(ee,te==null?void 0:te.label),isScrollable:!0,popperProps:{enableFlip:!0,preventOverflow:!0},children:I.jsxs(I.Fragment,{children:[I.jsx(Q.SelectList,{children:f.map(ee=>{const z=uu(ee);return I.jsx(Q.SelectOption,{id:z,value:ee.value,label:ee.label,description:ee.description,"data-cy":z,children:ee.label},ee.label)})}),n&&I.jsx(Q.MenuFooter,{children:n})]})}),I.jsx(pu,{actions:[{label:y("Undo changes"),type:Nr.Button,selection:vr.None,onClick:()=>{E(e.name,B)},isHidden:()=>!e.enableUndo||Y===B},{label:y("Reset to default"),type:Nr.Button,selection:vr.None,onClick:()=>{E(e.name,e.defaultValue)},isHidden:()=>!e.enableReset||Y===e.defaultValue}],variant:Q.ButtonVariant.control,position:"right"})]})})},rules:{required:G,validate:v}})}function $rt(e){const{name:t,helperText:n,validate:r,additionalControls:a,label:o,labelHelp:i,labelHelpTitle:l,labelOn:s}=e,{control:c,formState:{isSubmitting:p,isValidating:f}}=xu(),g=Cp(e);return I.jsx(oy,{name:t,control:c,shouldUnregister:!0,render:({field:{onChange:v,value:b},fieldState:{error:y}})=>{const x=r&&f||y==null?void 0:y.message;return I.jsx(zE,{fieldId:g,"data-cy":g+"-form-group",label:o,labelHelpTitle:l??o,labelHelp:i,helperText:n,helperTextInvalid:x,additionalControls:a,children:I.jsx(Q.Switch,{"data-cy":g+"-toggle","aria-label":o,isChecked:b,onChange:E=>v(E),isDisabled:p,label:s})})}})}function eat(e){const{type:t,name:n,label:r,labelHelpTitle:a,labelHelp:o,additionalControls:i,placeholder:l,button:s,helperText:c,isDisabled:p,isReadOnly:f,isRequired:g,validate:v,minLength:b,maxLength:y,min:x,max:E,pattern:C,selectTitle:R,selectOpen:N,selectValue:O,autoFocus:P,autoComplete:M,disableAutoResize:L}=e,W=Cp(e),{control:G,setValue:B,formState:{isSubmitting:j,isValidating:q}}=xu(),[Y,K]=w.useState(!1),[ae]=Na(),oe=PE(e.label,e.isRequired);return I.jsx(oy,{name:n,control:G,shouldUnregister:!0,render:({field:{onChange:te,value:ee,name:z},fieldState:{error:re}})=>{const ce=re!=null&&re.message?v&&q?ae.validating:re==null?void 0:re.message:void 0;function $(de){te(de.trimStart())}return I.jsx(zE,{fieldId:W,label:r,labelHelpTitle:a??r,labelHelp:o,additionalControls:i,helperText:c,helperTextInvalid:ce,isRequired:g,fullWidth:!0,children:I.jsxs(Q.InputGroup,{children:[I.jsx(Q.InputGroupItem,{isFill:!0,children:I.jsx(Q.TextArea,{id:W,placeholder:l,onChange:(de,be)=>$(be),value:ee??"","aria-describedby":W?`${W}-form-group`:void 0,validated:ce?"error":void 0,type:t==="password"?Y?"text":"password":t,readOnlyVariant:f?"default":void 0,isDisabled:p,autoFocus:P,autoComplete:M||(t==="password"?"new-password":"off"),"data-cy":W,autoResize:L===void 0?!0:!L,rows:1,resizeOrientation:"vertical"})}),t==="password"&&I.jsx(Q.Button,{variant:"control",onClick:()=>K(!Y),isDisabled:p||f,children:Y?I.jsx(Ht.EyeIcon,{}):I.jsx(Ht.EyeSlashIcon,{})}),R&&I.jsx(Q.Button,{icon:I.jsx(Ht.SearchIcon,{}),ouiaId:`lookup-${z}-button`,variant:"control",onClick:()=>N==null?void 0:N(de=>{if(O){const be=O(de);B(z,be,{shouldValidate:!0})}},R),"aria-label":"Options menu",isDisabled:p||j}),s]})})},rules:{required:oe,validate:v,minLength:typeof r=="string"&&typeof b=="number"?{value:b,message:`${Cu(r.toLocaleLowerCase())} must be at least ${b} characters.`}:b,maxLength:typeof r=="string"&&typeof y=="number"?{value:y,message:`${Cu(r.toLocaleLowerCase())} cannot be greater than ${y} characters.`}:y,min:typeof r=="string"&&(typeof x=="number"||typeof x=="string")?{value:x,message:`${Cu(r.toLocaleLowerCase())} must be less than ${x}.`}:b,max:typeof r=="string"&&(typeof E=="number"||typeof E=="string")?{value:E,message:`${Cu(r.toLocaleLowerCase())} cannot be greater than ${E}.`}:b,pattern:C}})}function tat(e){const{type:t,name:n,label:r,labelHelpTitle:a,labelHelp:o,additionalControls:i,placeholder:l,button:s,helperText:c,isDisabled:p,isReadOnly:f,isRequired:g,validate:v,minLength:b,maxLength:y,min:x,max:E,pattern:C,selectTitle:R,selectOpen:N,selectValue:O,autoFocus:P,autoComplete:M,fullWidth:L}=e,W=Cp(e),{t:G}=jn(),{control:B,setValue:j,formState:{isSubmitting:q,isValidating:Y,defaultValues:K}}=xu(),[ae,oe]=w.useState(!1),[te]=Na(),ee=PE(e.label,e.isRequired),z=cy(K,e.name);return I.jsx(oy,{name:n,control:B,shouldUnregister:e.shouldUnregister!==!1,defaultValue:e.defaultValue,render:({field:{onChange:re,value:ce,name:$},fieldState:{error:de}})=>{const be=de!=null&&de.message?v&&Y?te.validating:de==null?void 0:de.message:void 0;let ue=ce;switch(t){case"datetime-local":if(ce){const Ce=new Date(ce);ue=new Date(Ce.getTime()-Ce.getTimezoneOffset()*6e4).toISOString().slice(0,16)}break}function ke(Ce){switch(e.type){case"datetime-local":{re(new Date(Ce).toISOString());break}case"number":{let he=Number(Ce);if(Ce===""||isNaN(he)){j($,null),re(null);return}E!==void 0&&he>Number(E)&&(he=Number(E)),x!==void 0&&he<Number(x)&&(he=Number(x)),j($,he),re(he);break}default:re(Ce.trimStart())}}return I.jsx(zE,{fieldId:W,label:r,labelHelpTitle:a??r,labelHelp:o,additionalControls:i,helperText:c,helperTextInvalid:be,isRequired:g,fullWidth:L,children:I.jsxs(Q.InputGroup,{children:[I.jsx(Q.InputGroupItem,{isFill:!0,children:I.jsx(Q.TextInput,{id:W,placeholder:l,onChange:(Ce,he)=>ke(he),value:ue??"","aria-describedby":W?`${W}-form-group`:void 0,validated:be?"error":void 0,type:t==="password"?ae?"text":"password":t,readOnlyVariant:f?"default":void 0,isDisabled:p,autoFocus:P,autoComplete:M||(t==="password"?"new-password":"off"),"data-cy":W})}),t==="password"&&I.jsx(Q.Button,{variant:"control",onClick:()=>oe(!ae),isDisabled:p||f,children:ae?I.jsx(Ht.EyeIcon,{}):I.jsx(Ht.EyeSlashIcon,{})}),R&&I.jsx(Q.Button,{icon:I.jsx(Ht.SearchIcon,{"data-cy":"lookup-button"}),ouiaId:`lookup-${$}-button`,variant:"control",onClick:()=>N==null?void 0:N(Ce=>{if(O){const he=O(Ce);j($,he,{shouldValidate:!0})}},R),"aria-label":"Options menu",isDisabled:p||q}),s,I.jsx(pu,{actions:[{label:G("Undo changes"),type:Nr.Button,selection:vr.None,onClick:()=>{j(e.name,z)},isHidden:()=>!e.enableUndo||ce===z},{label:G("Reset to default"),type:Nr.Button,selection:vr.None,onClick:()=>{j(e.name,e.defaultValue)},isHidden:()=>!e.enableReset||ce===e.defaultValue}],variant:Q.ButtonVariant.control,position:"right"})]})})},rules:{required:ee,validate:v,minLength:typeof r=="string"&&typeof b=="number"?{value:b,message:`${Cu(r.toLocaleLowerCase())} must be at least ${b} characters.`}:b,maxLength:typeof r=="string"&&typeof y=="number"?{value:y,message:`${Cu(r.toLocaleLowerCase())} cannot be greater than ${y} characters.`}:y,min:typeof r=="string"&&(typeof x=="number"||typeof x=="string")?{value:x,message:`${Cu(r.toLocaleLowerCase())} must be greater or equal to ${x}.`}:b,max:typeof r=="string"&&(typeof E=="number"||typeof E=="string")?{value:E,message:`${Cu(r.toLocaleLowerCase())} cannot be greater than ${E}.`}:E,pattern:C}})}const Jme=w.createContext({tabBreadcrumb:{},setTabBreadcrumb:()=>{}});function nat(e){const[t,n]=w.useState();return I.jsx(Jme.Provider,{value:{tabBreadcrumb:t,setTabBreadcrumb:n},children:e.children})}const rat=()=>w.useContext(Jme);function aat(e){return I.jsx(kZ,{children:I.jsx(kee,{defaultRefreshInterval:e.defaultRefreshInterval,children:I.jsx(MMe,{children:I.jsx(npe,{children:I.jsx(TJ,{children:I.jsx(RJ,{children:I.jsx(nat,{children:e.children})})})})})})})}function oat(e){const t=fa.useNavigate();return e.breadcrumbs?I.jsx(Q.Breadcrumb,{style:e.style,children:e.breadcrumbs.map((n,r)=>n.label?I.jsx(Q.BreadcrumbItem,{"data-cy":n.label,id:n.id,component:n.component,isActive:n.to===void 0,children:n.to?I.jsx("a",{href:n.to,"data-cy":n.label,onClick:a=>{a.preventDefault(),n.to&&t(n.to)},children:n.label}):n.label},r):I.jsx(w.Fragment,{},r))}):I.jsx(w.Fragment,{})}function iat(e){const{title:t,description:n,controls:r,headerActions:a,footer:o}=e,i=Fl("lg"),l=Fl("xl"),s=Fl("md"),[c]=Na(),{tabBreadcrumb:p}=rat(),f=w.useMemo(()=>{const g=[];return e.breadcrumbs&&(g.push(...e.breadcrumbs),p&&g.push(p)),g},[e.breadcrumbs,p]);return I.jsx(Q.PageSection,{hasBodyWrapper:!1,style:{paddingBlock:l?16:12},children:I.jsxs(Q.Stack,{hasGutter:!0,children:[I.jsxs(Q.Flex,{flexWrap:{default:"nowrap"},alignItems:{default:"alignItemsStretch"},children:[I.jsxs(Q.FlexItem,{grow:{default:"grow"},children:[f.length>0&&I.jsx(oat,{breadcrumbs:f!=null&&f.length?f:void 0,style:{paddingBottom:i?6:4}}),t?e.titleHelp?I.jsx(Q.Popover,{headerContent:e.titleHelpTitle??e.title,bodyContent:I.jsxs(Q.Stack,{hasGutter:!0,children:[typeof e.titleHelp=="string"?I.jsx(Q.StackItem,{children:e.titleHelp}):e.titleHelp.map((g,v)=>I.jsx(Q.StackItem,{children:g},v)),e.titleDocLink&&I.jsx(Q.StackItem,{children:I.jsx(Q.Button,{icon:I.jsx(Ht.ExternalLinkAltIcon,{}),variant:"link",onClick:()=>window.open(e.titleDocLink,"_blank"),isInline:!0,iconPosition:"end",children:c.documentation})})]}),position:"bottom-start",children:I.jsxs(Q.Title,{"data-testid":"page-title","data-cy":"page-title",headingLevel:"h1",children:[t,I.jsx(Q.Button,{icon:I.jsx(Ht.OutlinedQuestionCircleIcon,{}),variant:"link",style:{padding:0,marginTop:1,marginLeft:8,verticalAlign:"top"}})]})}):I.jsx(Q.Title,{"data-cy":"page-title",headingLevel:"h1",children:t}):null,s&&n&&I.jsx("div",{"data-cy":"app-description",style:{paddingTop:l?4:2,opacity:.8},children:n})]}),t&&(a||r)&&I.jsxs(Q.Flex,{"data-cy":"manage-view",direction:{default:"column"},spaceItems:{default:"spaceItemsSm",xl:"spaceItemsMd"},justifyContent:{default:"justifyContentCenter"},children:[r&&I.jsx(Q.FlexItem,{grow:{default:"grow"},children:r}),a&&I.jsx(Q.FlexItem,{children:a})]})]}),o]})})}function $me(e){const[t]=Na();return I.jsx(LJ,{message:t.errorText,children:e.children})}function lat(e){return I.jsxs(Q.Masthead,{display:{default:"inline"},children:[I.jsxs(Q.MastheadMain,{children:[I.jsx(ege,{}),I.jsx(Q.MastheadBrand,{children:I.jsx(Q.MastheadLogo,{component:t=>I.jsx(fa.Link,{...t,to:"/",style:{textDecoration:"none",color:"light-dark(black, white)"}}),children:e.brand})})]}),I.jsx(Q.MastheadContent,{style:{marginLeft:0,minHeight:0},children:I.jsx(Q.Toolbar,{id:"toolbar","data-cy":"toolbar",inset:{default:"insetNone"},style:{padding:0},children:I.jsx(Q.ToolbarContent,{children:e.children})})})]})}function ege(){const e=cT();return I.jsx(Q.MastheadToggle,{onClick:()=>e.setState({isOpen:!e.isOpen}),children:I.jsx(Q.PageToggleButton,{isHamburgerButton:!0,"data-cy":"nav-toggle",variant:"plain","aria-label":"Global navigation"})})}function sat(){const{setNotificationsDrawerOpen:e,notificationGroups:t}=s_(),{isNotificationRead:n}=pT(),r=Object.values(t).reduce((a,o)=>{const i=o.notifications.filter(l=>typeof l.id!="string"?!1:!n(l.id));return a+i.length},0);return I.jsx(Q.NotificationBadge,{"data-cy":"notification-badge",variant:r===0?"read":"unread",count:r,onClick:()=>e(a=>!a)})}function cat(){const[e,t]=w.useContext(vv);return e.activeTheme==="dark"?I.jsx(Q.Button,{icon:I.jsx(Ht.MoonIcon,{}),"data-cy":"settings-icon",variant:"plain",onClick:()=>t({...e,theme:"light"})}):I.jsx(Q.Button,{icon:I.jsx(Ht.SunIcon,{}),"data-cy":"theme-icon",variant:"plain",onClick:()=>t({...e,theme:"dark"})})}function dat(e){return e.replace(/^\//,"")}function tge(e,t){for(const n of e){if("id"in n&&n.id===t)return n;if("children"in n){const r=tge(n.children,t);if(r)return r}}}function nge(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 a=nge(r.children,t);if(a)return a}}}function rge(e,t,n){for(const r of e)if("id"in r&&r.id===t){const a=r;"children"in r||(a.children=[]),a.children.push(n);return}else"children"in r&&rge(r.children,t,n)}function age(e,t,n){for(let r=0;r<e.length;r++){const a=e[r];if("id"in a&&a.id===t){e.splice(r+1,0,n);return}else"children"in a&&age(a.children,t,n)}}function oge(e,t,n){for(let r=0;r<e.length;r++){const a=e[r];if("id"in a&&a.id===t){e.splice(r,0,n);return}else"children"in a&&oge(a.children,t,n)}}function ige(){const e=PMe();return w.useCallback((t,n)=>{let r=e[t]??"";const a=n==null?void 0:n.params,o=n==null?void 0:n.query;return r&&(a&&(r=Object.keys(a).reduce((i,l)=>{let s=a[l];if(s==null)return i;s=encodeURIComponent(s.toString());const c=":"+l,p=new RegExp(c+"(?!.*"+c+")","g");return i.replace(p,s)},r)),o&&(r=`${r}?${Object.keys(o).map(i=>{let l=o[i];return l===void 0?"":(l=encodeURIComponent(l.toString()),`${i}=${l}`)}).join("&").replace("/&&/g","&")}`)),r},[e])}function uat(){const e=fa.useNavigate(),t=ige();return w.useCallback((n,r)=>{const a=t(n,r);a&&e(a)},[e,t])}function pat(e){const{loading:t}=e,[n,r]=w.useState((e==null?void 0:e.initialTabIndex)??0),a=w.useCallback((s,c)=>r(c),[r]),o=w.Children.toArray(e.children),i=o.map((s,c)=>{if(w.isValidElement(s)&&s.type===bU){const p=s.props.label;return I.jsx(Q.Tab,{title:p||I.jsx(Q.Skeleton,{width:"60px"}),eventKey:c},p??c)}return s}),l=o[n];return t?I.jsx(Q.Tabs,{children:I.jsx(bU,{children:I.jsx(Q.PageSection,{hasBodyWrapper:!1,children:I.jsx(Q.Skeleton,{})})})}):I.jsxs(I.Fragment,{children:[I.jsx(Q.Tabs,{activeKey:n,onSelect:a,inset:{default:"insetSm"},className:"pf-v6-u-mb-md",children:i}),l]})}function bU(e){return I.jsx(I.Fragment,{children:e.children})}function fat(e,t,n,r){return(a,o)=>{e(i=>{r?r(i):a(i.map(l=>t(l)))},o?o.map(i=>n(i)):[])}}function mat(e,t,n,r){return(a,o)=>{e(i=>{r?r(i):a(t(i))},o?n(o):void 0)}}function gat(){const[e,t]=w.useState(!0);return w.useEffect(()=>()=>{t(!1)},[]),e}function vat(){const e=w.useRef({isMounted:!0});return w.useEffect(()=>()=>{e.current.isMounted=!1},[]),e}function lge(){const e=gat(),[t,n]=w.useState(e?window.location:void 0),r=w.useCallback(()=>{n(window.location)},[]);w.useEffect(()=>{if(e)return t||r(),window.addEventListener("popstate",r),()=>{window.removeEventListener("popstate",r)}},[e,t,r]);const a=w.useCallback(i=>{window.history.replaceState(null,"",i),r()},[r]),o=w.useCallback(i=>{window.history.replaceState(null,"",i),r()},[r]);return{location:t,push:a,update:o}}function sge(){var a,o;const e=lge(),t=((a=e.location)==null?void 0:a.pathname)||"/",n=w.useMemo(()=>{var l;let i=(l=e.location)==null?void 0:l.search;return i&&i.includes("?specPath=")?i=i.substring(0,i.indexOf("?specPath=")):i&&i.includes("&specPath=")&&(i=i.substring(0,i.indexOf("&specPath="))),new URLSearchParams(i??"/")},[(o=e.location)==null?void 0:o.search]),r=w.useCallback(i=>{const l=i.toString();l?e.update("?"+l):e.update(t)},[e,t]);return[n,r]}const cge=w.createContext({});function Xv(){return w.useContext(cge)}function hat(e,t){return!e.hidden||!e.hidden(t)?e:null}function Zp(e){return(e==null?void 0:e.substeps)!==void 0}function bat(e){const{steps:t,onSubmit:n}=e,[r,a]=w.useState(!1),[o,i]=w.useState(null),[l,s]=w.useState({}),[c,p]=w.useState(e.stepDefaults??{}),[f,g]=w.useState({}),[v,b]=w.useState(),[y,x]=w.useState(!1),[E,C]=sge(),R=w.useMemo(()=>_at(t),[t]);w.useEffect(()=>{if(process.env.NODE_ENV==="development")for(const M in e.stepDefaults)t.find(L=>L.id===M)||console.warn(`PageWizardProvider: defaultValue key '${M}' not found in steps.`)},[e.stepDefaults,t]),w.useEffect(()=>{const M=aO(t,l);o||!M.length||(M[0].substeps?i(M[0].substeps[0]):i(M[0]))},[o,t,l]);const N=w.useCallback(async(M={})=>{var j;const L=dge(t,{...l,...M});if(o===null)return Promise.resolve();if(!Zp(o)&&o.validate&&await o.validate(M,l),(o==null?void 0:o.id)===((j=L[L.length-1])==null?void 0:j.id)){x(!0);try{await n(l)}catch(q){b(q instanceof Error?q:new Error(AE("An error occurred.")))}finally{x(!1)}return}const G=L.findIndex(q=>q.id===(o==null?void 0:o.id)),B=Zp(L[G+1])?L[G+2]:L[G+1];return C(new URLSearchParams("")),s(q=>({...q,...M})),p(q=>({...q,[o==null?void 0:o.id]:M})),i(B),Promise.resolve()},[o,t,n,C,l,b]),O=w.useCallback(()=>{const M=aO(R,l),L=M.findIndex(G=>G.id===(o==null?void 0:o.id)),W=Zp(M[L-1])?M[L-2]:M[L-1];C(new URLSearchParams("")),i(W)},[o==null?void 0:o.id,R,C,l]),P=w.useMemo(()=>({wizardData:l,setWizardData:s,stepData:c,setStepData:p,steps:e.steps,visibleSteps:aO(t,l),visibleStepsFlattened:dge(t,l),activeStep:o,setActiveStep:i,stepError:f,setStepError:g,submitError:v,setSubmitError:b,isToggleExpanded:r,setToggleExpanded:a,onNext:N,onBack:O,isSubmitting:y}),[l,s,c,p,e.steps,t,o,i,f,g,v,b,r,a,N,O,y]);return I.jsx(cge.Provider,{value:P,children:e.children})}function _at(e){return e.reduce((t,n)=>(t.push(n),Zp(n)&&t.push(...n.substeps),t),[])}function aO(e,t){return e.filter(n=>hat(n,t))}function dge(e,t){return aO(e,t).reduce((r,a)=>(r.push(a),Zp(a)&&r.push(...a.substeps),r),[])}function uge(e){const{t}=jn(),{activeStep:n,visibleStepsFlattened:r,setSubmitError:a}=Xv(),o=(n==null?void 0:n.id)===r[r.length-1].id,i=t(o?"Finish":"Next"),l=Zp(r[0])?(n==null?void 0:n.id)===r[1].id:(n==null?void 0:n.id)===r[0].id,s=l?"pf-v6-c-button pf-m-disabled":"pf-v6-c-button pf-m-secondary";return I.jsx("footer",{className:"pf-v6-c-wizard__footer","data-cy":"wizard-footer",children:I.jsxs(Q.ActionList,{children:[I.jsxs(Q.ActionListGroup,{children:[I.jsx(Q.ActionListItem,{children:n!==null&&"inputs"in n?I.jsx(Mj,{style:{minWidth:10},children:i}):I.jsx("button",{"data-cy":"wizard-next",className:"pf-v6-c-button pf-m-primary",type:"submit",onClick:()=>{var c;a(void 0),(c=e.onNext)==null||c.call(e)},children:i})}),I.jsx(Q.ActionListItem,{children:I.jsx("button",{type:"button","data-cy":"wizard-back",className:s,disabled:l,onClick:()=>{var c;a(void 0),(c=e.onBack)==null||c.call(e)},children:t("Back")})})]}),I.jsx(Q.ActionListItem,{children:I.jsx("div",{"data-cy":"wizard-cancel",className:"pf-v6-c-wizard__footer-cancel",children:I.jsx("button",{className:"pf-v6-c-button pf-m-link",type:"button",onClick:e.onCancel,children:t("Cancel")})})})]})})}function yat({onCancel:e,disableGrid:t,errorAdapter:n,isVertical:r,singleColumn:a}){const o=fa.useNavigate(),{activeStep:i,stepData:l,onNext:s,onBack:c,submitError:p,isSubmitting:f}=Xv(),g=w.useCallback(()=>{e?e():o(-1)},[o,e]);return f?I.jsx(Q.Bullseye,{children:I.jsx(Q.Spinner,{})}):I.jsxs($me,{children:[I.jsx(Sat,{error:p}),i!==null&&("inputs"in i?I.jsxs(Vpe,{onSubmit:s,footer:I.jsx(uge,{onBack:c,onCancel:g}),defaultValue:l[i.id],errorAdapter:n,disableGrid:t,isVertical:r,singleColumn:a,isWizard:!0,children:[I.jsx(xat,{}),i.inputs]},i.id):I.jsxs("div",{"data-cy":`wizard-section-${i.id}`,style:{display:"flex",flexDirection:"column",flexGrow:1,overflow:"hidden"},children:[I.jsx(Q.PageSection,{hasBodyWrapper:!1,"aria-label":AE("Wizard step content"),hasOverflowScroll:!0,isFilled:!0,children:i==null?void 0:i.element}),I.jsx(uge,{onNext:()=>void s({}),onBack:c,onCancel:g})]}))]})}function xat(){const{activeStep:e,setStepError:t}=Xv(),{errors:n}=Ij(),r=JSON.stringify(n);return w.useEffect(()=>{Object.keys(n).length===0?t({}):e&&t({[e.id]:n})},[n,e,t,r]),null}function Sat(e){const{t}=jn(),n=e.error;if(!e.error)return null;if(!(e.error instanceof Error))return typeof e.error=="string"?I.jsx(Q.Alert,{variant:"danger",title:e.error}):I.jsx(Q.Alert,{variant:"danger",title:t("An error occurred.")});if("message"in e.error&&!n.json)return I.jsx(Q.Alert,{variant:"danger",title:e.error.message});if(n.json)return I.jsx(Q.Alert,{variant:"danger",title:n.message,isInline:!0,children:Object.values(n.json).map((r,a)=>I.jsx("div",{children:r},a))})}function Ru(...e){const t=[],n={}.hasOwnProperty;return e.filter(Boolean).forEach(r=>{const a=typeof r;if(a==="string"||a==="number")t.push(r);else if(Array.isArray(r)&&r.length){const o=Ru(...r);o&&t.push(o)}else if(a==="object")for(const o in r)n.call(r,o)&&r[o]&&t.push(o)}),t.join(" ")}const Jp={wizardClose:"pf-v6-c-wizard__close",wizardHeader:"pf-v6-c-wizard__header",wizardTitle:"pf-v6-c-wizard__title",wizardTitleText:"pf-v6-c-wizard__title-text",wizardToggle:"pf-v6-c-wizard__toggle",wizardToggleIcon:"pf-v6-c-wizard__toggle-icon",wizardToggleList:"pf-v6-c-wizard__toggle-list",wizardToggleListItem:"pf-v6-c-wizard__toggle-list-item",wizardToggleNum:"pf-v6-c-wizard__toggle-num"},Eat=Cn.div`
548
548
  background-color: var(--pf-t--global--background--color--primary--default);
549
549
  color: var(--pf-t--global--text--color--regular);
550
550
 
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.2712",
4
+ "version": "2.4.2713",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -1,155 +1,155 @@
1
- import { $ as s } from "./index-D0LQ2Tn1.js";
2
- import { B as o } from "./index-D0LQ2Tn1.js";
3
- import { A as t } from "./index-D0LQ2Tn1.js";
4
- import { C as r } from "./index-D0LQ2Tn1.js";
5
- import { aW as l } from "./index-D0LQ2Tn1.js";
6
- import { aY as i } from "./index-D0LQ2Tn1.js";
7
- import { aV as n } from "./index-D0LQ2Tn1.js";
8
- import { aX as g } from "./index-D0LQ2Tn1.js";
9
- import { aZ as b } from "./index-D0LQ2Tn1.js";
10
- import { aU as u } from "./index-D0LQ2Tn1.js";
11
- import { aQ as P } from "./index-D0LQ2Tn1.js";
12
- import { D as d } from "./index-D0LQ2Tn1.js";
13
- import { af as m } from "./index-D0LQ2Tn1.js";
14
- import { ae as C } from "./index-D0LQ2Tn1.js";
15
- import { E as c } from "./index-D0LQ2Tn1.js";
16
- import { bo as T } from "./index-D0LQ2Tn1.js";
17
- import { bm as D } from "./index-D0LQ2Tn1.js";
18
- import { F as p } from "./index-D0LQ2Tn1.js";
19
- import { G as S } from "./index-D0LQ2Tn1.js";
20
- import { bs as h } from "./index-D0LQ2Tn1.js";
21
- import { ab as F } from "./index-D0LQ2Tn1.js";
22
- import { H as v } from "./index-D0LQ2Tn1.js";
23
- import { k as B } from "./index-D0LQ2Tn1.js";
24
- import { I as f } from "./index-D0LQ2Tn1.js";
25
- import { L as I } from "./index-D0LQ2Tn1.js";
26
- import { a2 as A } from "./index-D0LQ2Tn1.js";
27
- import { P as y } from "./index-D0LQ2Tn1.js";
28
- import { r as N } from "./index-D0LQ2Tn1.js";
29
- import { q as x } from "./index-D0LQ2Tn1.js";
30
- import { s as k } from "./index-D0LQ2Tn1.js";
31
- import { t as w } from "./index-D0LQ2Tn1.js";
32
- import { w as E } from "./index-D0LQ2Tn1.js";
33
- import { y as O } from "./index-D0LQ2Tn1.js";
34
- import { z as L } from "./index-D0LQ2Tn1.js";
35
- import { J as M } from "./index-D0LQ2Tn1.js";
36
- import { M as V } from "./index-D0LQ2Tn1.js";
37
- import { N as R } from "./index-D0LQ2Tn1.js";
38
- import { Q as W } from "./index-D0LQ2Tn1.js";
39
- import { O as j } from "./index-D0LQ2Tn1.js";
40
- import { K as G } from "./index-D0LQ2Tn1.js";
41
- import { U as z } from "./index-D0LQ2Tn1.js";
42
- import { X as U } from "./index-D0LQ2Tn1.js";
43
- import { V as H } from "./index-D0LQ2Tn1.js";
44
- import { Y as q } from "./index-D0LQ2Tn1.js";
45
- import { aP as Q } from "./index-D0LQ2Tn1.js";
46
- import { Z as J } from "./index-D0LQ2Tn1.js";
47
- import { _ as K } from "./index-D0LQ2Tn1.js";
48
- import { a4 as X } from "./index-D0LQ2Tn1.js";
49
- import { W as Y } from "./index-D0LQ2Tn1.js";
50
- import { an as Z } from "./index-D0LQ2Tn1.js";
51
- import { aq as _ } from "./index-D0LQ2Tn1.js";
52
- import { ac as $ } from "./index-D0LQ2Tn1.js";
53
- import { ad as aa } from "./index-D0LQ2Tn1.js";
54
- import { ao as ea } from "./index-D0LQ2Tn1.js";
55
- import { ai as sa } from "./index-D0LQ2Tn1.js";
56
- import { ap as oa } from "./index-D0LQ2Tn1.js";
57
- import { aj as ta } from "./index-D0LQ2Tn1.js";
58
- import { ak as ra } from "./index-D0LQ2Tn1.js";
59
- import { al as la } from "./index-D0LQ2Tn1.js";
60
- import { ar as ia } from "./index-D0LQ2Tn1.js";
61
- import { as as na } from "./index-D0LQ2Tn1.js";
62
- import { at as ga } from "./index-D0LQ2Tn1.js";
63
- import { au as ba } from "./index-D0LQ2Tn1.js";
64
- import { av as ua } from "./index-D0LQ2Tn1.js";
65
- import { aF as Pa } from "./index-D0LQ2Tn1.js";
66
- import { aH as da } from "./index-D0LQ2Tn1.js";
67
- import { ay as ma } from "./index-D0LQ2Tn1.js";
68
- import { a9 as Ca } from "./index-D0LQ2Tn1.js";
69
- import { aa as ca } from "./index-D0LQ2Tn1.js";
70
- import { aw as Ta } from "./index-D0LQ2Tn1.js";
71
- import { aL as Da } from "./index-D0LQ2Tn1.js";
72
- import { aM as pa } from "./index-D0LQ2Tn1.js";
73
- import { bg as Sa } from "./index-D0LQ2Tn1.js";
74
- import { aN as ha } from "./index-D0LQ2Tn1.js";
75
- import { aR as Fa } from "./index-D0LQ2Tn1.js";
76
- import { aT as va } from "./index-D0LQ2Tn1.js";
77
- import { bf as Ba } from "./index-D0LQ2Tn1.js";
78
- import { ax as fa } from "./index-D0LQ2Tn1.js";
79
- import { bh as Ia } from "./index-D0LQ2Tn1.js";
80
- import { bj as Aa } from "./index-D0LQ2Tn1.js";
81
- import { br as ya } from "./index-D0LQ2Tn1.js";
82
- import { R as Na } from "./index-D0LQ2Tn1.js";
83
- import { S as xa } from "./index-D0LQ2Tn1.js";
84
- import { a8 as ka } from "./index-D0LQ2Tn1.js";
85
- import { aO as wa } from "./index-D0LQ2Tn1.js";
86
- import { a_ as Ea } from "./index-D0LQ2Tn1.js";
87
- import { T as Oa } from "./index-D0LQ2Tn1.js";
88
- import { bn as La } from "./index-D0LQ2Tn1.js";
89
- import { bi as Ma } from "./index-D0LQ2Tn1.js";
90
- import { bq as Va } from "./index-D0LQ2Tn1.js";
91
- import { bp as Ra } from "./index-D0LQ2Tn1.js";
92
- import { aC as Wa } from "./index-D0LQ2Tn1.js";
93
- import { aD as ja } from "./index-D0LQ2Tn1.js";
94
- import { aE as Ga } from "./index-D0LQ2Tn1.js";
95
- import { bz as za } from "./index-D0LQ2Tn1.js";
96
- import { by as Ua } from "./index-D0LQ2Tn1.js";
97
- import { bx as Ha } from "./index-D0LQ2Tn1.js";
98
- import { bw as qa } from "./index-D0LQ2Tn1.js";
99
- import { x as Qa } from "./index-D0LQ2Tn1.js";
100
- import { bB as Ja } from "./index-D0LQ2Tn1.js";
101
- import { aA as Ka } from "./index-D0LQ2Tn1.js";
102
- import { g as Xa } from "./index-D0LQ2Tn1.js";
103
- import { bk as Ya } from "./index-D0LQ2Tn1.js";
104
- import { ah as Za } from "./index-D0LQ2Tn1.js";
105
- import { bA as _a } from "./index-D0LQ2Tn1.js";
106
- import { a as $a } from "./index-D0LQ2Tn1.js";
107
- import { e as ae } from "./index-D0LQ2Tn1.js";
108
- import { c as ee } from "./index-D0LQ2Tn1.js";
109
- import { f as se } from "./index-D0LQ2Tn1.js";
110
- import { p as oe } from "./index-D0LQ2Tn1.js";
111
- import { i as te } from "./index-D0LQ2Tn1.js";
112
- import { h as re } from "./index-D0LQ2Tn1.js";
113
- import { b as le } from "./index-D0LQ2Tn1.js";
114
- import { az as ie } from "./index-D0LQ2Tn1.js";
115
- import { aB as ne } from "./index-D0LQ2Tn1.js";
116
- import { bl as ge } from "./index-D0LQ2Tn1.js";
117
- import { n as be } from "./index-D0LQ2Tn1.js";
118
- import { a0 as ue } from "./index-D0LQ2Tn1.js";
119
- import { a1 as Pe } from "./index-D0LQ2Tn1.js";
120
- import { aS as de } from "./index-D0LQ2Tn1.js";
121
- import { b8 as me } from "./index-D0LQ2Tn1.js";
122
- import { b7 as Ce } from "./index-D0LQ2Tn1.js";
123
- import { b3 as ce } from "./index-D0LQ2Tn1.js";
124
- import { b5 as Te } from "./index-D0LQ2Tn1.js";
125
- import { b6 as De } from "./index-D0LQ2Tn1.js";
126
- import { bd as pe } from "./index-D0LQ2Tn1.js";
127
- import { am as Se } from "./index-D0LQ2Tn1.js";
128
- import { bt as he } from "./index-D0LQ2Tn1.js";
129
- import { aJ as Fe } from "./index-D0LQ2Tn1.js";
130
- import { bu as ve } from "./index-D0LQ2Tn1.js";
131
- import { a3 as Be } from "./index-D0LQ2Tn1.js";
132
- import { o as fe } from "./index-D0LQ2Tn1.js";
133
- import { v as Ie } from "./index-D0LQ2Tn1.js";
134
- import { a6 as Ae } from "./index-D0LQ2Tn1.js";
135
- import { a5 as ye } from "./index-D0LQ2Tn1.js";
136
- import { aI as Ne } from "./index-D0LQ2Tn1.js";
137
- import { aG as xe } from "./index-D0LQ2Tn1.js";
138
- import { aK as ke } from "./index-D0LQ2Tn1.js";
139
- import { u as we } from "./index-D0LQ2Tn1.js";
140
- import { be as Ee } from "./index-D0LQ2Tn1.js";
141
- import { l as Oe } from "./index-D0LQ2Tn1.js";
142
- import { a7 as Le } from "./index-D0LQ2Tn1.js";
143
- import { ba as Me } from "./index-D0LQ2Tn1.js";
144
- import { bb as Ve } from "./index-D0LQ2Tn1.js";
145
- import { bc as Re } from "./index-D0LQ2Tn1.js";
146
- import { b9 as We } from "./index-D0LQ2Tn1.js";
147
- import { bv as je } from "./index-D0LQ2Tn1.js";
148
- import { b1 as Ge } from "./index-D0LQ2Tn1.js";
149
- import { b4 as ze } from "./index-D0LQ2Tn1.js";
150
- import { b0 as Ue } from "./index-D0LQ2Tn1.js";
151
- import { b2 as He } from "./index-D0LQ2Tn1.js";
152
- import { a$ as qe } from "./index-D0LQ2Tn1.js";
153
- import { m as Qe } from "./index-D0LQ2Tn1.js";
154
- import { ag as Je } from "./index-D0LQ2Tn1.js";
1
+ import { $ as s } from "./index-CvyjyrAx.js";
2
+ import { B as o } from "./index-CvyjyrAx.js";
3
+ import { A as t } from "./index-CvyjyrAx.js";
4
+ import { C as r } from "./index-CvyjyrAx.js";
5
+ import { aW as l } from "./index-CvyjyrAx.js";
6
+ import { aY as i } from "./index-CvyjyrAx.js";
7
+ import { aV as n } from "./index-CvyjyrAx.js";
8
+ import { aX as g } from "./index-CvyjyrAx.js";
9
+ import { aZ as b } from "./index-CvyjyrAx.js";
10
+ import { aU as u } from "./index-CvyjyrAx.js";
11
+ import { aQ as P } from "./index-CvyjyrAx.js";
12
+ import { D as d } from "./index-CvyjyrAx.js";
13
+ import { af as m } from "./index-CvyjyrAx.js";
14
+ import { ae as C } from "./index-CvyjyrAx.js";
15
+ import { E as c } from "./index-CvyjyrAx.js";
16
+ import { bo as T } from "./index-CvyjyrAx.js";
17
+ import { bm as D } from "./index-CvyjyrAx.js";
18
+ import { F as p } from "./index-CvyjyrAx.js";
19
+ import { G as S } from "./index-CvyjyrAx.js";
20
+ import { bs as h } from "./index-CvyjyrAx.js";
21
+ import { ab as F } from "./index-CvyjyrAx.js";
22
+ import { H as v } from "./index-CvyjyrAx.js";
23
+ import { k as B } from "./index-CvyjyrAx.js";
24
+ import { I as f } from "./index-CvyjyrAx.js";
25
+ import { L as I } from "./index-CvyjyrAx.js";
26
+ import { a2 as A } from "./index-CvyjyrAx.js";
27
+ import { P as y } from "./index-CvyjyrAx.js";
28
+ import { r as N } from "./index-CvyjyrAx.js";
29
+ import { q as x } from "./index-CvyjyrAx.js";
30
+ import { s as k } from "./index-CvyjyrAx.js";
31
+ import { t as w } from "./index-CvyjyrAx.js";
32
+ import { w as E } from "./index-CvyjyrAx.js";
33
+ import { y as O } from "./index-CvyjyrAx.js";
34
+ import { z as L } from "./index-CvyjyrAx.js";
35
+ import { J as M } from "./index-CvyjyrAx.js";
36
+ import { M as V } from "./index-CvyjyrAx.js";
37
+ import { N as R } from "./index-CvyjyrAx.js";
38
+ import { Q as W } from "./index-CvyjyrAx.js";
39
+ import { O as j } from "./index-CvyjyrAx.js";
40
+ import { K as G } from "./index-CvyjyrAx.js";
41
+ import { U as z } from "./index-CvyjyrAx.js";
42
+ import { X as U } from "./index-CvyjyrAx.js";
43
+ import { V as H } from "./index-CvyjyrAx.js";
44
+ import { Y as q } from "./index-CvyjyrAx.js";
45
+ import { aP as Q } from "./index-CvyjyrAx.js";
46
+ import { Z as J } from "./index-CvyjyrAx.js";
47
+ import { _ as K } from "./index-CvyjyrAx.js";
48
+ import { a4 as X } from "./index-CvyjyrAx.js";
49
+ import { W as Y } from "./index-CvyjyrAx.js";
50
+ import { an as Z } from "./index-CvyjyrAx.js";
51
+ import { aq as _ } from "./index-CvyjyrAx.js";
52
+ import { ac as $ } from "./index-CvyjyrAx.js";
53
+ import { ad as aa } from "./index-CvyjyrAx.js";
54
+ import { ao as ea } from "./index-CvyjyrAx.js";
55
+ import { ai as sa } from "./index-CvyjyrAx.js";
56
+ import { ap as oa } from "./index-CvyjyrAx.js";
57
+ import { aj as ta } from "./index-CvyjyrAx.js";
58
+ import { ak as ra } from "./index-CvyjyrAx.js";
59
+ import { al as la } from "./index-CvyjyrAx.js";
60
+ import { ar as ia } from "./index-CvyjyrAx.js";
61
+ import { as as na } from "./index-CvyjyrAx.js";
62
+ import { at as ga } from "./index-CvyjyrAx.js";
63
+ import { au as ba } from "./index-CvyjyrAx.js";
64
+ import { av as ua } from "./index-CvyjyrAx.js";
65
+ import { aF as Pa } from "./index-CvyjyrAx.js";
66
+ import { aH as da } from "./index-CvyjyrAx.js";
67
+ import { ay as ma } from "./index-CvyjyrAx.js";
68
+ import { a9 as Ca } from "./index-CvyjyrAx.js";
69
+ import { aa as ca } from "./index-CvyjyrAx.js";
70
+ import { aw as Ta } from "./index-CvyjyrAx.js";
71
+ import { aL as Da } from "./index-CvyjyrAx.js";
72
+ import { aM as pa } from "./index-CvyjyrAx.js";
73
+ import { bg as Sa } from "./index-CvyjyrAx.js";
74
+ import { aN as ha } from "./index-CvyjyrAx.js";
75
+ import { aR as Fa } from "./index-CvyjyrAx.js";
76
+ import { aT as va } from "./index-CvyjyrAx.js";
77
+ import { bf as Ba } from "./index-CvyjyrAx.js";
78
+ import { ax as fa } from "./index-CvyjyrAx.js";
79
+ import { bh as Ia } from "./index-CvyjyrAx.js";
80
+ import { bj as Aa } from "./index-CvyjyrAx.js";
81
+ import { br as ya } from "./index-CvyjyrAx.js";
82
+ import { R as Na } from "./index-CvyjyrAx.js";
83
+ import { S as xa } from "./index-CvyjyrAx.js";
84
+ import { a8 as ka } from "./index-CvyjyrAx.js";
85
+ import { aO as wa } from "./index-CvyjyrAx.js";
86
+ import { a_ as Ea } from "./index-CvyjyrAx.js";
87
+ import { T as Oa } from "./index-CvyjyrAx.js";
88
+ import { bn as La } from "./index-CvyjyrAx.js";
89
+ import { bi as Ma } from "./index-CvyjyrAx.js";
90
+ import { bq as Va } from "./index-CvyjyrAx.js";
91
+ import { bp as Ra } from "./index-CvyjyrAx.js";
92
+ import { aC as Wa } from "./index-CvyjyrAx.js";
93
+ import { aD as ja } from "./index-CvyjyrAx.js";
94
+ import { aE as Ga } from "./index-CvyjyrAx.js";
95
+ import { bz as za } from "./index-CvyjyrAx.js";
96
+ import { by as Ua } from "./index-CvyjyrAx.js";
97
+ import { bx as Ha } from "./index-CvyjyrAx.js";
98
+ import { bw as qa } from "./index-CvyjyrAx.js";
99
+ import { x as Qa } from "./index-CvyjyrAx.js";
100
+ import { bB as Ja } from "./index-CvyjyrAx.js";
101
+ import { aA as Ka } from "./index-CvyjyrAx.js";
102
+ import { g as Xa } from "./index-CvyjyrAx.js";
103
+ import { bk as Ya } from "./index-CvyjyrAx.js";
104
+ import { ah as Za } from "./index-CvyjyrAx.js";
105
+ import { bA as _a } from "./index-CvyjyrAx.js";
106
+ import { a as $a } from "./index-CvyjyrAx.js";
107
+ import { e as ae } from "./index-CvyjyrAx.js";
108
+ import { c as ee } from "./index-CvyjyrAx.js";
109
+ import { f as se } from "./index-CvyjyrAx.js";
110
+ import { p as oe } from "./index-CvyjyrAx.js";
111
+ import { i as te } from "./index-CvyjyrAx.js";
112
+ import { h as re } from "./index-CvyjyrAx.js";
113
+ import { b as le } from "./index-CvyjyrAx.js";
114
+ import { az as ie } from "./index-CvyjyrAx.js";
115
+ import { aB as ne } from "./index-CvyjyrAx.js";
116
+ import { bl as ge } from "./index-CvyjyrAx.js";
117
+ import { n as be } from "./index-CvyjyrAx.js";
118
+ import { a0 as ue } from "./index-CvyjyrAx.js";
119
+ import { a1 as Pe } from "./index-CvyjyrAx.js";
120
+ import { aS as de } from "./index-CvyjyrAx.js";
121
+ import { b8 as me } from "./index-CvyjyrAx.js";
122
+ import { b7 as Ce } from "./index-CvyjyrAx.js";
123
+ import { b3 as ce } from "./index-CvyjyrAx.js";
124
+ import { b5 as Te } from "./index-CvyjyrAx.js";
125
+ import { b6 as De } from "./index-CvyjyrAx.js";
126
+ import { bd as pe } from "./index-CvyjyrAx.js";
127
+ import { am as Se } from "./index-CvyjyrAx.js";
128
+ import { bt as he } from "./index-CvyjyrAx.js";
129
+ import { aJ as Fe } from "./index-CvyjyrAx.js";
130
+ import { bu as ve } from "./index-CvyjyrAx.js";
131
+ import { a3 as Be } from "./index-CvyjyrAx.js";
132
+ import { o as fe } from "./index-CvyjyrAx.js";
133
+ import { v as Ie } from "./index-CvyjyrAx.js";
134
+ import { a6 as Ae } from "./index-CvyjyrAx.js";
135
+ import { a5 as ye } from "./index-CvyjyrAx.js";
136
+ import { aI as Ne } from "./index-CvyjyrAx.js";
137
+ import { aG as xe } from "./index-CvyjyrAx.js";
138
+ import { aK as ke } from "./index-CvyjyrAx.js";
139
+ import { u as we } from "./index-CvyjyrAx.js";
140
+ import { be as Ee } from "./index-CvyjyrAx.js";
141
+ import { l as Oe } from "./index-CvyjyrAx.js";
142
+ import { a7 as Le } from "./index-CvyjyrAx.js";
143
+ import { ba as Me } from "./index-CvyjyrAx.js";
144
+ import { bb as Ve } from "./index-CvyjyrAx.js";
145
+ import { bc as Re } from "./index-CvyjyrAx.js";
146
+ import { b9 as We } from "./index-CvyjyrAx.js";
147
+ import { bv as je } from "./index-CvyjyrAx.js";
148
+ import { b1 as Ge } from "./index-CvyjyrAx.js";
149
+ import { b4 as ze } from "./index-CvyjyrAx.js";
150
+ import { b0 as Ue } from "./index-CvyjyrAx.js";
151
+ import { b2 as He } from "./index-CvyjyrAx.js";
152
+ import { a$ as qe } from "./index-CvyjyrAx.js";
153
+ import { m as Qe } from "./index-CvyjyrAx.js";
154
+ import { ag as Je } from "./index-CvyjyrAx.js";
155
155
  export { s as BulkActionDialog, o as BulkSelector, t as BytesCell, r as Collapse, l as ColumnCardOption, i as ColumnDashboardOption, n as ColumnListOption, g as ColumnModalOption, b as ColumnPriority, u as ColumnTableOption, P as ColumnsDiv, d as CopyCell, m as DataEditorActions, C as DataEditorButtons, c as DateCell, T as DateRange, D as DateRangeFilterPresets, p as DateTimeCell, S as ElapsedTimeCell, h as FrameworkTranslationsProvider, F as GenericForm, v as Help, B as LabelColorE, f as LabelsCell, I as LoadingPage, A as MultiSelectDialog, y as PFColorE, N as PageActionSelection, x as PageActionType, k as PageActions, w as PageAlertToasterContext, E as PageAlertToasterProvider, O as PageApp, L as PageBody, M as PageChartContainer, V as PageDashboard, R as PageDashboardCard, W as PageDashboardChart, j as PageDashboardChartVariantE, G as PageDashboardContext, z as PageDashboardCount, U as PageDashboardDonutCard, H as PageDashboardGettingStarted, q as PageDetail, Q as PageDetailDiv, J as PageDetails, K as PageDetailsFromColumns, X as PageDialogProvider, Y as PageDonutChart, Z as PageForm, _ as PageFormCancelButton, $ as PageFormCheckbox, aa as PageFormDataEditor, ea as PageFormGrid, sa as PageFormSelect, oa as PageFormSubmitButton, ta as PageFormSwitch, ra as PageFormTextArea, la as PageFormTextInput, ia as PageFramework, na as PageHeader, ga as PageLayout, ba as PageMasthead, ua as PageMastheadToggle, Pa as PageNavSideBarContext, da as PageNavSideBarProvider, ma as PageNavigation, Ca as PageNotFound, ca as PageNotImplemented, Ta as PageNotificationsIcon, Da as PageSettingsContext, pa as PageSettingsProvider, Sa as PageTab, ha as PageTable, Fa as PageTableCard, va as PageTableCards, Ba as PageTabs, fa as PageThemeSwitcher, Ia as PageToolbar, Aa as PageToolbarFilters, ya as PageWizard, Na as RunningIcon, xa as Scrollable, ka as SelectDialog, wa as Small, Ea as TableColumnCell, Oa as TextCell, La as ToolbarDateRangeFilter, Ma as ToolbarFilterType, Va as ToolbarSingleTextFilter, Ra as ToolbarTextMultiFilter, Wa as addNavigationItem, ja as addNavigationItemAfter, Ga as addNavigationItemBefore, za as buildQueryString, Ua as compareNumbers, Ha as compareStrings, qa as compareUnknowns, Qa as errorToAlertProps, Ja as filtersToSearchObj, Ka as findNavigationItemById, Xa as getPatternflyColor, Ya as multiSelectBrowseAdapter, Za as objectToString, _a as paramsToSearchObj, $a as pfDanger, ae as pfDisabled, ee as pfInfo, se as pfLink, oe as pfSuccess, te as pfTopologyInfo, re as pfUnreachable, le as pfWarning, ie as removeLeadingSlash, ne as removeNavigationItemById, ge as singleSelectBrowseAdapter, be as useBreakpoint, ue as useBulkActionDialog, Pe as useBulkConfirmation, de as useColumnsToTableCardFn, me as useColumnsWithoutExpandedRow, Ce as useColumnsWithoutSort, ce as useDashboardColumns, Te as useDescriptionColumns, De as useExpandedColumns, pe as useFiltered, Se as useFormErrors, he as useFrameworkTranslations, Fe as useGetPageUrl, ve as useInMemoryView, Be as useIsPageDialog, fe as useOrientation, Ie as usePageAlertToaster, Ae as usePageDialog, ye as usePageDialogs, Ne as usePageNavBarClick, xe as usePageNavSideBar, ke as usePageNavigate, we as usePageSettings, Ee as usePaged, Oe as useScrollableState, Le as useSelectDialog, Me as useSelected, Ve as useSelectedInMemory, Re as useSorted, We as useTableItems, je as useView, Ge as useVisibleCardColumns, ze as useVisibleColumns, Ue as useVisibleListColumns, He as useVisibleModalColumns, qe as useVisibleTableColumns, Qe as useWindowSize, Je as valueToObject };