@ansible/ansible-ui-framework 2.4.2728 → 2.4.2729
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/{ChatbotPortal-BzM2Wvt7.js → ChatbotPortal-N1FTXM-k.js} +1 -1
- package/{ChatbotSideBarHeader-awWj8QDa.js → ChatbotSideBarHeader-DEh5Hajs.js} +1 -1
- package/{index-CBeZq64T.js → index-LSzlUOyh.js} +2 -1
- package/index.js +1 -1
- package/index.umd.cjs +1 -1
- package/package.json +1 -1
- package/publish/index.d.ts +154 -154
- /package/publish/{ChatbotPortal-BzM2Wvt7.d.ts → ChatbotPortal-N1FTXM-k.d.ts} +0 -0
- /package/publish/{ChatbotSideBarHeader-awWj8QDa.d.ts → ChatbotSideBarHeader-DEh5Hajs.d.ts} +0 -0
- /package/publish/{index-CBeZq64T.d.ts → index-LSzlUOyh.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as De, j as M } from "./index-
|
|
1
|
+
import { u as De, j as M } from "./index-LSzlUOyh.js";
|
|
2
2
|
import { useContext as He, createContext as je, useState as Se, useEffect as ye, useRef as qe } from "react";
|
|
3
3
|
import Oe from "react-dom";
|
|
4
4
|
import { R as Ye } from "./ansible-chatbot-rWVelQMf.js";
|
|
@@ -3054,7 +3054,7 @@ const m4 = tn({
|
|
|
3054
3054
|
chatbotState: "disabled",
|
|
3055
3055
|
setChatbotState: () => {
|
|
3056
3056
|
}
|
|
3057
|
-
}), y4 = () => mt(m4), v4 = $k(() => import("./ChatbotPortal-
|
|
3057
|
+
}), y4 = () => mt(m4), v4 = $k(() => import("./ChatbotPortal-N1FTXM-k.js")), x4 = () => /* @__PURE__ */ p.jsx(qk, { fallback: /* @__PURE__ */ p.jsx("div", { children: "Loading..." }), children: /* @__PURE__ */ p.jsx(v4, {}) }), b4 = $k(() => import("./ChatbotSideBarHeader-DEh5Hajs.js")), _4 = () => {
|
|
3058
3058
|
const { t: e } = Pe();
|
|
3059
3059
|
return /* @__PURE__ */ p.jsx(qk, { fallback: /* @__PURE__ */ p.jsx("span", { children: e("Loading...") }), children: /* @__PURE__ */ p.jsx(b4, {}) });
|
|
3060
3060
|
}, S4 = ke(NM)`
|
|
@@ -42817,6 +42817,7 @@ function uue(e) {
|
|
|
42817
42817
|
autoFocus: w,
|
|
42818
42818
|
autoComplete: C || (t === "password" ? "new-password" : "off"),
|
|
42819
42819
|
"data-cy": j,
|
|
42820
|
+
"data-testid": j,
|
|
42820
42821
|
autoResize: O === void 0 ? !0 : !O,
|
|
42821
42822
|
rows: 1,
|
|
42822
42823
|
resizeOrientation: "vertical"
|
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-
|
|
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-LSzlUOyh.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 XUe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function KUe(e){if(Array.isArray(e))return WF(e)}function RF(e,t){return QUe(e)||JUe(e,t)||jse(e,t)||ZUe()}function ZUe(){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 jse(e,t){if(e){if(typeof e=="string")return WF(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 WF(e,t)}}function WF(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 JUe(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(c){o=!0,l=c}finally{try{!a&&n.return!=null&&n.return()}finally{if(o)throw l}}return r}}function QUe(e){if(Array.isArray(e))return e}function Ase(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 oa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ase(Object(n),!0).forEach(function(r){qF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ase(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a3(e,t){if(e==null)return{};var n=$Ue(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 $Ue(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 HF=S.forwardRef(function(e,t){var n=e.children,r=a3(e,qUe),a=Mse(r),o=a.open,i=a3(a,HUe);return S.useImperativeHandle(t,function(){return{open:o}},[o]),S.createElement(S.Fragment,null,n(oa(oa({},i),{},{open:o})))});HF.displayName="Dropzone";var Bse={disabled:!1,getFilesFromEvent:cUe,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};HF.defaultProps=Bse,HF.propTypes={children:Er.func,accept:Er.objectOf(Er.arrayOf(Er.string)),multiple:Er.bool,preventDropOnDocument:Er.bool,noClick:Er.bool,noKeyboard:Er.bool,noDrag:Er.bool,noDragEventsBubbling:Er.bool,minSize:Er.number,maxSize:Er.number,maxFiles:Er.number,disabled:Er.bool,getFilesFromEvent:Er.func,onFileDialogCancel:Er.func,onFileDialogOpen:Er.func,useFsAccessApi:Er.bool,autoFocus:Er.bool,onDragEnter:Er.func,onDragLeave:Er.func,onDragOver:Er.func,onDrop:Er.func,onDropAccepted:Er.func,onDropRejected:Er.func,onError:Er.func,validator:Er.func};var UF={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Mse(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=oa(oa({},Bse),e),n=t.accept,r=t.disabled,a=t.getFilesFromEvent,o=t.maxSize,i=t.minSize,l=t.multiple,c=t.maxFiles,f=t.onDragEnter,d=t.onDragLeave,u=t.onDragOver,m=t.onDrop,g=t.onDropAccepted,x=t.onDropRejected,y=t.onFileDialogCancel,w=t.onFileDialogOpen,C=t.useFsAccessApi,E=t.autoFocus,j=t.preventDropOnDocument,B=t.noClick,A=t.noKeyboard,L=t.noDrag,F=t.noDragEventsBubbling,N=t.onError,Y=t.validator,H=S.useMemo(function(){return zUe(n)},[n]),D=S.useMemo(function(){return NUe(n)},[n]),R=S.useMemo(function(){return typeof w=="function"?w:Lse},[w]),U=S.useMemo(function(){return typeof y=="function"?y:Lse},[y]),G=S.useRef(null),Z=S.useRef(null),ne=S.useReducer(eVe,UF),oe=RF(ne,2),ee=oe[0],te=oe[1],q=ee.isFocused,ae=ee.isFileDialogActive,de=S.useRef(typeof window<"u"&&window.isSecureContext&&C&&FUe()),J=function(){!de.current&&ae&&setTimeout(function(){if(Z.current){var Ce=Z.current.files;Ce.length||(te({type:"closeDialog"}),U())}},300)};S.useEffect(function(){return window.addEventListener("focus",J,!1),function(){window.removeEventListener("focus",J,!1)}},[Z,ae,U,de]);var ce=S.useRef([]),ye=function(Ce){G.current&&G.current.contains(Ce.target)||(Ce.preventDefault(),ce.current=[])};S.useEffect(function(){return j&&(document.addEventListener("dragover",Ose,!1),document.addEventListener("drop",ye,!1)),function(){j&&(document.removeEventListener("dragover",Ose),document.removeEventListener("drop",ye))}},[G,j]),S.useEffect(function(){return!r&&E&&G.current&&G.current.focus(),function(){}},[G,E,r]);var ue=S.useCallback(function(xe){N?N(xe):console.error(xe)},[N]),ve=S.useCallback(function(xe){xe.preventDefault(),xe.persist(),ie(xe),ce.current=[].concat(GUe(ce.current),[xe.target]),r3(xe)&&Promise.resolve(a(xe)).then(function(Ce){if(!(n3(xe)&&!F)){var _e=Ce.length,Be=_e>0&&BUe({files:Ce,accept:H,minSize:i,maxSize:o,multiple:l,maxFiles:c,validator:Y}),at=_e>0&&!Be;te({isDragAccept:Be,isDragReject:at,isDragActive:!0,type:"setDraggedFiles"}),f&&f(xe)}}).catch(function(Ce){return ue(Ce)})},[a,f,ue,F,H,i,o,l,c,Y]),Se=S.useCallback(function(xe){xe.preventDefault(),xe.persist(),ie(xe);var Ce=r3(xe);if(Ce&&xe.dataTransfer)try{xe.dataTransfer.dropEffect="copy"}catch{}return Ce&&u&&u(xe),!1},[u,F]),ge=S.useCallback(function(xe){xe.preventDefault(),xe.persist(),ie(xe);var Ce=ce.current.filter(function(Be){return G.current&&G.current.contains(Be)}),_e=Ce.indexOf(xe.target);_e!==-1&&Ce.splice(_e,1),ce.current=Ce,!(Ce.length>0)&&(te({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),r3(xe)&&d&&d(xe))},[G,d,F]),we=S.useCallback(function(xe,Ce){var _e=[],Be=[];xe.forEach(function(at){var We=Ese(at,H),Ke=RF(We,2),bt=Ke[0],At=Ke[1],it=Pse(at,i,o),xt=RF(it,2),et=xt[0],ut=xt[1],Pt=Y?Y(at):null;if(bt&&et&&!Pt)_e.push(at);else{var qt=[At,ut];Pt&&(qt=qt.concat(Pt)),Be.push({file:at,errors:qt.filter(function(Bn){return Bn})})}}),(!l&&_e.length>1||l&&c>=1&&_e.length>c)&&(_e.forEach(function(at){Be.push({file:at,errors:[AUe]})}),_e.splice(0)),te({acceptedFiles:_e,fileRejections:Be,isDragReject:Be.length>0,type:"setFiles"}),m&&m(_e,Be,Ce),Be.length>0&&x&&x(Be,Ce),_e.length>0&&g&&g(_e,Ce)},[te,l,H,i,o,c,m,g,x,Y]),Oe=S.useCallback(function(xe){xe.preventDefault(),xe.persist(),ie(xe),ce.current=[],r3(xe)&&Promise.resolve(a(xe)).then(function(Ce){n3(xe)&&!F||we(Ce,xe)}).catch(function(Ce){return ue(Ce)}),te({type:"reset"})},[a,we,ue,F]),le=S.useCallback(function(){if(de.current){te({type:"openDialog"}),R();var xe={multiple:l,types:D};window.showOpenFilePicker(xe).then(function(Ce){return a(Ce)}).then(function(Ce){we(Ce,null),te({type:"closeDialog"})}).catch(function(Ce){RUe(Ce)?(U(Ce),te({type:"closeDialog"})):WUe(Ce)?(de.current=!1,Z.current?(Z.current.value=null,Z.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(Ce)});return}Z.current&&(te({type:"openDialog"}),R(),Z.current.value=null,Z.current.click())},[te,R,U,C,we,ue,D,l]),Le=S.useCallback(function(xe){!G.current||!G.current.isEqualNode(xe.target)||(xe.key===" "||xe.key==="Enter"||xe.keyCode===32||xe.keyCode===13)&&(xe.preventDefault(),le())},[G,le]),Je=S.useCallback(function(){te({type:"focus"})},[]),He=S.useCallback(function(){te({type:"blur"})},[]),ft=S.useCallback(function(){B||(DUe()?setTimeout(le,0):le())},[B,le]),rt=function(Ce){return r?null:Ce},pe=function(Ce){return A?null:rt(Ce)},he=function(Ce){return L?null:rt(Ce)},ie=function(Ce){F&&Ce.stopPropagation()},ke=S.useMemo(function(){return function(){var xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ce=xe.refKey,_e=Ce===void 0?"ref":Ce,Be=xe.role,at=xe.onKeyDown,We=xe.onFocus,Ke=xe.onBlur,bt=xe.onClick,At=xe.onDragEnter,it=xe.onDragOver,xt=xe.onDragLeave,et=xe.onDrop,ut=a3(xe,UUe);return oa(oa(qF({onKeyDown:pe(Jf(at,Le)),onFocus:pe(Jf(We,Je)),onBlur:pe(Jf(Ke,He)),onClick:rt(Jf(bt,ft)),onDragEnter:he(Jf(At,ve)),onDragOver:he(Jf(it,Se)),onDragLeave:he(Jf(xt,ge)),onDrop:he(Jf(et,Oe)),role:typeof Be=="string"&&Be!==""?Be:"presentation"},_e,G),!r&&!A?{tabIndex:0}:{}),ut)}},[G,Le,Je,He,ft,ve,Se,ge,Oe,A,L,r]),Pe=S.useCallback(function(xe){xe.stopPropagation()},[]),De=S.useMemo(function(){return function(){var xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ce=xe.refKey,_e=Ce===void 0?"ref":Ce,Be=xe.onChange,at=xe.onClick,We=a3(xe,VUe),Ke=qF({accept:H,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:rt(Jf(Be,Oe)),onClick:rt(Jf(at,Pe)),tabIndex:-1},_e,Z);return oa(oa({},Ke),We)}},[Z,n,l,Oe,r]);return oa(oa({},ee),{},{isFocused:q&&!r,getRootProps:ke,getInputProps:De,rootRef:G,inputRef:Z,open:rt(le)})}function eVe(e,t){switch(t.type){case"focus":return oa(oa({},e),{},{isFocused:!0});case"blur":return oa(oa({},e),{},{isFocused:!1});case"openDialog":return oa(oa({},UF),{},{isFileDialogActive:!0});case"closeDialog":return oa(oa({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return oa(oa({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return oa(oa({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return oa({},UF);default:return e}}function Lse(){}function tVe(e){const{t}=Cn(),n=sS(),{onDrop:r}=e,a=S.useCallback(l=>{if(!l||l.length===0)return;const c=l[0],f=new FileReader;f.onload=()=>{const d=f.result;if(typeof d=="string"){const u={variant:"success",title:t("File uploaded"),timeout:!0};n.addAlert(u),r(d)}},f.onerror=()=>{const d={variant:"danger",title:t("Failed to upload file"),children:t("Unable to upload")};n.addAlert(d)},f.readAsText(c)},[t,n,r]),{getRootProps:o,getInputProps:i}=Mse({onDrop:a,noClick:!0,accept:e.accept??{"application/json":[".json"],"text/yaml":[".yaml",".yml"]}});return O.jsxs("div",{id:"code-editor-dropzone",...o({disabled:!0}),style:{width:"100%",height:"100%"},children:[O.jsx("input",{id:"code-editor-dropzone-input",...i(),ref:e.inputRef}),e.children]})}function nVe(e){return O.jsx(X.Icon,{size:e.size??"md",children:O.jsx(Dt.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?B_("Collapse"):B_("Expand")})})}function rVe(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 q_(e){const{children:t,helperText:n,helperTextInvalid:r,isRequired:a,labelHelp:o,labelHelpTitle:i,label:l,fullWidth:c}=e;return O.jsxs(X.FormGroup,{id:`${e.fieldId}-form-group`,fieldId:e.fieldId,label:O.jsxs(O.Fragment,{children:[e.icon,l]}),labelHelp:o?O.jsx(uy,{title:i,help:o}):void 0,labelInfo:e.additionalControls,isRequired:a,"data-cy":`${e.fieldId}-form-group`,"data-testid":`${e.fieldId}-form-group`,style:{gridColumn:c?"span 12":void 0},children:[t,(n||r)&&O.jsx(X.FormHelperText,{children:O.jsx(X.HelperText,{children:O.jsx(X.HelperTextItem,{variant:r?"error":void 0,children:r||n})})})]})}function aVe(e){const{t}=Cn(),{name:n,format:r,disableCopy:a,disableUpload:o,disableDownload:i,disableExpand:l,validate:c,isArray:f}=e,d=td(e),{formState:{isSubmitting:u,isValidating:m},setError:g,getValues:x,clearErrors:y,control:w}=Vf(),E=$u().dataEditorFormat??"yaml",[j,B]=S.useState(E),[A,L]=S.useState(!e.defaultCollapsed),[F,N]=S.useState(()=>{const ue=x(n);return typeof ue=="string"?ue:tc(ue,E)}),[Y,H]=S.useState(null),D=S.useCallback((ue,ve)=>{if(Y){if(ve==="yaml")return Y;if(ve==="json")try{return tc(Qf(Y,f),"json")}catch{return tc(Qf(ue,f),ve)}}return tc(Qf(ue,f),ve)},[Y,f]),R=sS(),{writeToClipboard:U}=TG(),G=S.useCallback(()=>U(tc(Qf(x(n),f),j)),[x,f,j,n,U]),Z=S.useCallback(ue=>{N(tc(Qf(ue,f),j))},[f,j]),ne=S.useRef(null),oe=S.useCallback(()=>{var ue;return(ue=ne.current)==null?void 0:ue.click()},[]),ee=S.useCallback(()=>{const ue=n||"data",ve=j==="json"?"json":"yaml";rVe(ue,tc(Qf(x(n),f),j),ve),R.addAlert({variant:"success",title:t("File downloaded"),timeout:!0})},[R,x,f,j,n,t]);S.useLayoutEffect(()=>{const ue=x(n);typeof ue=="string"&&o3(ue)&&!Y&&H(ue);const ve=D(ue,j);N(ve)},[x,f,j,n,D,Y]);const[te,q]=S.useState(!1),ae=uie({name:n});S.useEffect(()=>{if(te)return;typeof ae=="string"&&o3(ae)&&!Y&&H(ae);const ue=D(ae,j);N(ue)},[te,ae,f,j,D,Y]);const{setValue:de,formState:{defaultValues:J}}=Vf(),ce=M_(e.label,e.isRequired),ye=m0(J,e.name);return O.jsx(p0,{name:n,control:w,shouldUnregister:!0,render:({field:{value:ue,name:ve,onChange:Se},fieldState:{error:ge}})=>{var Oe;function we(le){try{const Le=Qf(le,f);switch(j==="yaml"&&o3(le)&&H(le),r){case"object":if(typeof Le=="object"&&Le!==null&&"__preserveYamlString"in Le){const Je=Le,He=R_.load(Je.__preserveYamlString);Se(He);return}Se(Le);return;case"yaml":if(typeof Le=="object"&&Le!==null&&"__preserveYamlString"in Le){Se(Le.__preserveYamlString);return}Se(tc(Le,r));break;default:Se(tc(Le,r));break}y(ve)}catch(Le){Le instanceof Error&&g(ve,{message:Le.message})}}return O.jsxs(q_,{fieldId:d,icon:!l&&O.jsx(nVe,{isExpanded:A,setExpanded:L}),label:e.label,labelHelpTitle:e.labelHelpTitle??e.label,labelHelp:e.labelHelp,additionalControls:O.jsx(Fse,{handleCopy:!a&&G,handleUpload:!o&&oe,handleDownload:!i&&ee,language:j,setLanguage:B,children:e.additionalControls}),helperText:e.helperText,helperTextInvalid:!(c&&m)&&((Oe=ge==null?void 0:ge.message)==null?void 0:Oe.split(`
|
|
546
546
|
`)),isRequired:e.isRequired,children:[A&&O.jsxs("div",{style:{display:"flex"},children:[O.jsx(tVe,{onDrop:Z,isDisabled:u||e.isReadOnly,inputRef:ne,children:O.jsx(JHe,{"data-cy":d,id:d,name:ve,language:j,value:F,onChange:we,setError:le=>{le?g(ve,{message:le}):y(ve)},isReadOnly:e.isReadOnly||u,className:e.isReadOnly?"pf-v6-c-form-control pf-m-disabled":"pf-v6-c-form-control",onFocus:()=>q(!0),onBlur:()=>q(!1)})}),O.jsx(Df,{actions:[{label:t("Undo changes"),type:gr.Button,selection:Jn.None,onClick:()=>{de(e.name,ye),N(""),setTimeout(()=>{N(tc(Qf(ye,f),j))},0)},isHidden:()=>!e.enableUndo||Zie(ue,ye)},{label:t("Reset to default"),type:gr.Button,selection:Jn.None,onClick:()=>{de(e.name,e.defaultValue),N(""),setTimeout(()=>{N(tc(Qf(e.defaultValue,f),j))},0)},isHidden:()=>!e.enableReset||Zie(ue,e.defaultValue)}],position:"right"})]}),!A&&O.jsx("div",{className:"pf-v6-c-form-control"})]})},rules:{required:ce,validate:e.validate}})}function Dse(e){const{t}=Cn(),{handleCopy:n,handleDownload:r,handleUpload:a}=e;return!n&&!r&&!a?O.jsx(O.Fragment,{}):O.jsxs(X.Flex,{spaceItems:{default:"spaceItemsMd"},children:[n&&O.jsx(X.FlexItem,{children:O.jsx(iS,{id:"copy-button","data-cy":"copy-button","aria-label":t("Copy to clipboard"),type:"button",onClick:n,children:O.jsx(X.Icon,{size:"md",children:O.jsx(Dt.CopyIcon,{})})})}),a&&O.jsx(X.FlexItem,{children:O.jsx(iS,{id:"upload-button","data-cy":"upload-button","aria-label":t("Upload from file"),type:"button",onClick:a,children:O.jsx(X.Icon,{size:"md",children:O.jsx(Dt.UploadIcon,{})})})}),r&&O.jsx(X.FlexItem,{children:O.jsx(iS,{id:"download-button","data-cy":"download-button","aria-label":t("Download file"),type:"button",onClick:r,children:O.jsx(X.Icon,{size:"md",children:O.jsx(Dt.DownloadIcon,{})})})})]})}function Fse(e){const{t}=Cn(),{handleCopy:n,handleDownload:r,handleUpload:a,language:o,setLanguage:i}=e;return O.jsxs(X.Flex,{spaceItems:{default:"spaceItemsLg"},children:[O.jsx(X.FlexItem,{children:e.children}),O.jsx(Dse,{handleCopy:n,handleDownload:r,handleUpload:a}),O.jsx(X.FlexItem,{align:{default:"alignRight"},children:O.jsxs(X.ToggleGroup,{isCompact:!0,children:[O.jsx(X.ToggleGroupItem,{id:"toggle-yaml","data-cy":"toggle-yaml","aria-label":t("Toggle to YAML"),isSelected:o==="yaml",text:"YAML",type:"button",onChange:()=>i("yaml")}),O.jsx(X.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 o3(e){return e.split(`
|
|
547
|
-
`).some(n=>{const r=n.trim();return r.startsWith("#")||r.includes("#")&&!/^[^#]*["'][^"']*#[^"']*["'][^#]*$/.exec(r)})}function Qf(e,t){const n=t?[]:{};if(e==null)return n;const a=()=>{try{e=R_.load(e)}catch(o){return o instanceof Error||o instanceof TF?new Error(o.message):{}}};if(typeof e=="string"){if(o3(e))try{return R_.load(e),{__preserveYamlString:e}}catch{}try{e=JSON.parse(e)}catch{a()}}return t?Array.isArray(e)?e:[]:Array.isArray(e)?{}:e}function tc(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=R_.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=R_.dump(e).trimEnd();switch(n){case"null":case"{}":case"[]":return"";default:return n}}catch(n){return n instanceof Error||n instanceof TF?n.message:""}default:return""}}function oVe(e){const{additionalControls:t,footer:n,helperText:r,isDisabled:a,isReadOnly:o,isRequired:i,label:l,labelHelp:c,labelHelpTitle:f,name:d,options:u,placeholderText:m,validate:g}=e,x=td(e),{t:y}=Cn(),{control:w,setValue:C,getValues:E,formState:{isSubmitting:j,isValidating:B,defaultValues:A}}=Vf(),[L,F]=S.useState(!1),N=S.useCallback(()=>F(!L),[L]),[Y]=ua(),H=M_(e.label,e.isRequired),D=m0(A,e.name);S.useEffect(()=>{E(e.name)||u.length===1&&i&&C(e.name,u[0].value)},[E,i,u,e.name,C]);const R=(U,G)=>O.jsx(X.MenuToggle,{"data-cy":`${x}-form-group`,id:`${x}-form-group-toggle`,isDisabled:a||o||j,ref:U,onClick:N,isExpanded:L,isFullWidth:!0,children:G??m});return O.jsx(p0,{name:d,control:w,defaultValue:e.defaultValue,shouldUnregister:!0,render:({field:{onChange:U,value:G},fieldState:{error:Z}})=>{const ne=(te,q)=>{const ae=u.find(de=>de.value===q);ae&&(U(ae.value),e.onChange&&e.onChange(ae.value)),F(!1)},oe=Z!=null&&Z.message?g&&B?Y.validating:Z==null?void 0:Z.message:void 0,ee=u.find(te=>te.value===G);return O.jsx(q_,{fieldId:x,label:l,labelHelpTitle:f??l,labelHelp:c,additionalControls:t,helperText:r,helperTextInvalid:oe,isRequired:i,children:O.jsxs("div",{style:{display:"flex"},"data-testid":x,children:[O.jsx(X.Select,{"aria-describedby":`${x}-form-group-select`,"data-cy":x,"data-testid":x,id:x,isOpen:L,itemID:x,onOpenChange:te=>F(te),onSelect:ne,ouiaId:"menu-select",shouldFocusToggleOnSelect:!0,toggle:te=>R(te,ee==null?void 0:ee.label),isScrollable:!0,popperProps:{enableFlip:!0,preventOverflow:!0},children:O.jsxs(O.Fragment,{children:[O.jsx(X.SelectList,{children:u.map(te=>{const q=es(te);return O.jsx(X.SelectOption,{id:q,value:te.value,label:te.label,description:te.description,"data-cy":q,"data-testid":te.value,children:te.label},te.label)})}),n&&O.jsx(X.MenuFooter,{children:n})]})}),O.jsx(Df,{actions:[{label:y("Undo changes"),type:gr.Button,selection:Jn.None,onClick:()=>{C(e.name,D)},isHidden:()=>!e.enableUndo||G===D},{label:y("Reset to default"),type:gr.Button,selection:Jn.None,onClick:()=>{C(e.name,e.defaultValue)},isHidden:()=>!e.enableReset||G===e.defaultValue}],variant:X.ButtonVariant.control,position:"right"})]})})},rules:{required:H,validate:g}})}function iVe(e){const{name:t,helperText:n,validate:r,additionalControls:a,label:o,labelHelp:i,labelHelpTitle:l,labelOn:c}=e,{control:f,formState:{isSubmitting:d,isValidating:u}}=Vf(),m=td(e);return O.jsx(p0,{name:t,control:f,shouldUnregister:!0,render:({field:{onChange:g,value:x},fieldState:{error:y}})=>{const w=r&&u||y==null?void 0:y.message;return O.jsx(q_,{fieldId:m,"data-cy":m+"-form-group",label:o,labelHelpTitle:l??o,labelHelp:i,helperText:n,helperTextInvalid:w,additionalControls:a,children:O.jsx(X.Switch,{"data-cy":m+"-toggle","data-testid":m+"-toggle","aria-label":o,isChecked:x,onChange:C=>g(C),isDisabled:d,label:c})})}})}function lVe(e){const{type:t,name:n,label:r,labelHelpTitle:a,labelHelp:o,additionalControls:i,placeholder:l,button:c,helperText:f,isDisabled:d,isReadOnly:u,isRequired:m,validate:g,minLength:x,maxLength:y,min:w,max:C,pattern:E,selectTitle:j,selectOpen:B,selectValue:A,autoFocus:L,autoComplete:F,disableAutoResize:N}=e,Y=td(e),{control:H,setValue:D,formState:{isSubmitting:R,isValidating:U}}=Vf(),[G,Z]=S.useState(!1),[ne]=ua(),oe=M_(e.label,e.isRequired);return O.jsx(p0,{name:n,control:H,shouldUnregister:!0,render:({field:{onChange:ee,value:te,name:q},fieldState:{error:ae}})=>{const de=ae!=null&&ae.message?g&&U?ne.validating:ae==null?void 0:ae.message:void 0;function J(ce){ee(ce.trimStart())}return O.jsx(q_,{fieldId:Y,label:r,labelHelpTitle:a??r,labelHelp:o,additionalControls:i,helperText:f,helperTextInvalid:de,isRequired:m,fullWidth:!0,children:O.jsxs(X.InputGroup,{children:[O.jsx(X.InputGroupItem,{isFill:!0,children:O.jsx(X.TextArea,{id:Y,placeholder:l,onChange:(ce,ye)=>J(ye),value:te??"","aria-describedby":Y?`${Y}-form-group`:void 0,validated:de?"error":void 0,type:t==="password"?G?"text":"password":t,readOnlyVariant:u?"default":void 0,isDisabled:d,autoFocus:L,autoComplete:F||(t==="password"?"new-password":"off"),"data-cy":Y,autoResize:N===void 0?!0:!N,rows:1,resizeOrientation:"vertical"})}),t==="password"&&O.jsx(X.Button,{variant:"control",onClick:()=>Z(!G),isDisabled:d||u,children:G?O.jsx(Dt.EyeIcon,{}):O.jsx(Dt.EyeSlashIcon,{})}),j&&O.jsx(X.Button,{icon:O.jsx(Dt.SearchIcon,{}),ouiaId:`lookup-${q}-button`,variant:"control",onClick:()=>B==null?void 0:B(ce=>{if(A){const ye=A(ce);D(q,ye,{shouldValidate:!0})}},j),"aria-label":"Options menu",isDisabled:d||R}),c]})})},rules:{required:oe,validate:g,minLength:typeof r=="string"&&typeof x=="number"?{value:x,message:`${Kf(r.toLocaleLowerCase())} must be at least ${x} characters.`}:x,maxLength:typeof r=="string"&&typeof y=="number"?{value:y,message:`${Kf(r.toLocaleLowerCase())} cannot be greater than ${y} characters.`}:y,min:typeof r=="string"&&(typeof w=="number"||typeof w=="string")?{value:w,message:`${Kf(r.toLocaleLowerCase())} must be less than ${w}.`}:x,max:typeof r=="string"&&(typeof C=="number"||typeof C=="string")?{value:C,message:`${Kf(r.toLocaleLowerCase())} cannot be greater than ${C}.`}:x,pattern:E}})}function sVe(e){const{type:t,name:n,label:r,labelHelpTitle:a,labelHelp:o,additionalControls:i,placeholder:l,button:c,helperText:f,isDisabled:d,isReadOnly:u,isRequired:m,validate:g,minLength:x,maxLength:y,min:w,max:C,pattern:E,selectTitle:j,selectOpen:B,selectValue:A,autoFocus:L,autoComplete:F,fullWidth:N}=e,Y=td(e),{t:H}=Cn(),{control:D,setValue:R,formState:{isSubmitting:U,isValidating:G,defaultValues:Z}}=Vf(),[ne,oe]=S.useState(!1),[ee]=ua(),te=M_(e.label,e.isRequired),q=m0(Z,e.name);return O.jsx(p0,{name:n,control:D,shouldUnregister:e.shouldUnregister!==!1,defaultValue:e.defaultValue,render:({field:{onChange:ae,value:de,name:J},fieldState:{error:ce}})=>{const ye=ce!=null&&ce.message?g&&G?ee.validating:ce==null?void 0:ce.message:void 0;let ue=de;switch(t){case"datetime-local":if(de){const Se=new Date(de);ue=new Date(Se.getTime()-Se.getTimezoneOffset()*6e4).toISOString().slice(0,16)}break}function ve(Se){switch(e.type){case"datetime-local":{ae(new Date(Se).toISOString());break}case"number":{let ge=Number(Se);if(Se===""||isNaN(ge)){R(J,null),ae(null);return}C!==void 0&&ge>Number(C)&&(ge=Number(C)),w!==void 0&&ge<Number(w)&&(ge=Number(w)),R(J,ge),ae(ge);break}default:ae(Se.trimStart())}}return O.jsx(q_,{fieldId:Y,label:r,labelHelpTitle:a??r,labelHelp:o,additionalControls:i,helperText:f,helperTextInvalid:ye,isRequired:m,fullWidth:N,children:O.jsxs(X.InputGroup,{children:[O.jsx(X.InputGroupItem,{isFill:!0,children:O.jsx(X.TextInput,{id:Y,placeholder:l,onChange:(Se,ge)=>ve(ge),value:ue??"","aria-describedby":Y?`${Y}-form-group`:void 0,validated:ye?"error":void 0,type:t==="password"?ne?"text":"password":t,readOnlyVariant:u?"default":void 0,isDisabled:d,autoFocus:L,autoComplete:F||(t==="password"?"new-password":"off"),"data-cy":Y,"data-testid":Y})}),t==="password"&&O.jsx(X.Button,{variant:"control",onClick:()=>oe(!ne),isDisabled:d||u,children:ne?O.jsx(Dt.EyeIcon,{}):O.jsx(Dt.EyeSlashIcon,{})}),j&&O.jsx(X.Button,{icon:O.jsx(Dt.SearchIcon,{"data-cy":"lookup-button"}),ouiaId:`lookup-${J}-button`,variant:"control",onClick:()=>B==null?void 0:B(Se=>{if(A){const ge=A(Se);R(J,ge,{shouldValidate:!0})}},j),"aria-label":"Options menu",isDisabled:d||U}),c,O.jsx(Df,{actions:[{label:H("Undo changes"),type:gr.Button,selection:Jn.None,onClick:()=>{R(e.name,q)},isHidden:()=>!e.enableUndo||de===q},{label:H("Reset to default"),type:gr.Button,selection:Jn.None,onClick:()=>{R(e.name,e.defaultValue)},isHidden:()=>!e.enableReset||de===e.defaultValue}],variant:X.ButtonVariant.control,position:"right"})]})})},rules:{required:te,validate:g,minLength:typeof r=="string"&&typeof x=="number"?{value:x,message:`${Kf(r.toLocaleLowerCase())} must be at least ${x} characters.`}:x,maxLength:typeof r=="string"&&typeof y=="number"?{value:y,message:`${Kf(r.toLocaleLowerCase())} cannot be greater than ${y} characters.`}:y,min:typeof r=="string"&&(typeof w=="number"||typeof w=="string")?{value:w,message:`${Kf(r.toLocaleLowerCase())} must be greater or equal to ${w}.`}:x,max:typeof r=="string"&&(typeof C=="number"||typeof C=="string")?{value:C,message:`${Kf(r.toLocaleLowerCase())} cannot be greater than ${C}.`}:C,pattern:E}})}const Nse=S.createContext({tabBreadcrumb:{},setTabBreadcrumb:()=>{}});function cVe(e){const[t,n]=S.useState();return O.jsx(Nse.Provider,{value:{tabBreadcrumb:t,setTabBreadcrumb:n},children:e.children})}const fVe=()=>S.useContext(Nse);function pVe(e){return O.jsx(bV,{children:O.jsx(bX,{defaultRefreshInterval:e.defaultRefreshInterval,children:O.jsx(n2e,{children:O.jsx(qoe,{children:O.jsx(xG,{children:O.jsx(_G,{children:O.jsx(cVe,{children:e.children})})})})})})})}function dVe(e){const t=Zr.useNavigate();return e.breadcrumbs?O.jsx(X.Breadcrumb,{style:e.style,children:e.breadcrumbs.map((n,r)=>n.label?O.jsx(X.BreadcrumbItem,{"data-cy":n.label,id:n.id,component:n.component,isActive:n.to===void 0,children:n.to?O.jsx("a",{href:n.to,"data-cy":n.label,onClick:a=>{a.preventDefault(),n.to&&t(n.to)},children:n.label}):n.label},r):O.jsx(S.Fragment,{},r))}):O.jsx(S.Fragment,{})}function uVe(e){const{title:t,description:n,controls:r,headerActions:a,footer:o}=e,i=dl("lg"),l=dl("xl"),c=dl("md"),[f]=ua(),{tabBreadcrumb:d}=fVe(),u=S.useMemo(()=>{const m=[];return e.breadcrumbs&&(m.push(...e.breadcrumbs),d&&m.push(d)),m},[e.breadcrumbs,d]);return O.jsx(X.PageSection,{hasBodyWrapper:!1,style:{paddingBlock:l?16:12},children:O.jsxs(X.Stack,{hasGutter:!0,children:[O.jsxs(X.Flex,{flexWrap:{default:"nowrap"},alignItems:{default:"alignItemsStretch"},children:[O.jsxs(X.FlexItem,{grow:{default:"grow"},children:[u.length>0&&O.jsx(dVe,{breadcrumbs:u!=null&&u.length?u:void 0,style:{paddingBottom:i?6:4}}),t?e.titleHelp?O.jsx(X.Popover,{headerContent:e.titleHelpTitle??e.title,bodyContent:O.jsxs(X.Stack,{hasGutter:!0,children:[typeof e.titleHelp=="string"?O.jsx(X.StackItem,{children:e.titleHelp}):e.titleHelp.map((m,g)=>O.jsx(X.StackItem,{children:m},g)),e.titleDocLink&&O.jsx(X.StackItem,{children:O.jsx(X.Button,{icon:O.jsx(Dt.ExternalLinkAltIcon,{}),variant:"link",onClick:()=>window.open(e.titleDocLink,"_blank"),isInline:!0,iconPosition:"end",children:f.documentation})})]}),position:"bottom-start",children:O.jsxs(X.Title,{"data-testid":"page-title","data-cy":"page-title",headingLevel:"h1",children:[t,O.jsx(X.Button,{icon:O.jsx(Dt.OutlinedQuestionCircleIcon,{}),variant:"link",style:{padding:0,marginTop:1,marginLeft:8,verticalAlign:"top"}})]})}):O.jsx(X.Title,{"data-cy":"page-title",headingLevel:"h1",children:t}):null,c&&n&&O.jsx("div",{"data-cy":"app-description",style:{paddingTop:l?4:2,opacity:.8},children:n})]}),t&&(a||r)&&O.jsxs(X.Flex,{"data-cy":"manage-view",direction:{default:"column"},spaceItems:{default:"spaceItemsSm",xl:"spaceItemsMd"},justifyContent:{default:"justifyContentCenter"},children:[r&&O.jsx(X.FlexItem,{grow:{default:"grow"},children:r}),a&&O.jsx(X.FlexItem,{children:a})]})]}),o]})})}function zse(e){const[t]=ua();return O.jsx(OG,{message:t.errorText,children:e.children})}function vVe(e){return O.jsxs(X.Masthead,{display:{default:"inline"},children:[O.jsxs(X.MastheadMain,{children:[O.jsx(Rse,{}),O.jsx(X.MastheadBrand,{children:O.jsx(X.MastheadLogo,{component:t=>O.jsx(Zr.Link,{...t,to:"/",style:{textDecoration:"none",color:"light-dark(black, white)"}}),children:e.brand})})]}),O.jsx(X.MastheadContent,{style:{marginLeft:0,minHeight:0},children:O.jsx(X.Toolbar,{id:"toolbar","data-cy":"toolbar",inset:{default:"insetNone"},style:{padding:0},children:O.jsx(X.ToolbarContent,{children:e.children})})})]})}function Rse(){const e=fS();return O.jsx(X.MastheadToggle,{onClick:()=>e.setState({isOpen:!e.isOpen}),children:O.jsx(X.PageToggleButton,{isHamburgerButton:!0,"data-cy":"nav-toggle",variant:"plain","aria-label":"Global navigation"})})}function mVe(){const{setNotificationsDrawerOpen:e,notificationGroups:t}=vb(),{isNotificationRead:n}=uS(),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 O.jsx(X.NotificationBadge,{"data-cy":"notification-badge",variant:r===0?"read":"unread",count:r,onClick:()=>e(a=>!a)})}function gVe(){const[e,t]=S.useContext(Nm);return e.activeTheme==="dark"?O.jsx(X.Button,{icon:O.jsx(Dt.MoonIcon,{}),"data-cy":"settings-icon",variant:"plain",onClick:()=>t({...e,theme:"light"})}):O.jsx(X.Button,{icon:O.jsx(Dt.SunIcon,{}),"data-cy":"theme-icon",variant:"plain",onClick:()=>t({...e,theme:"dark"})})}function hVe(e){return e.replace(/^\//,"")}function Wse(e,t){for(const n of e){if("id"in n&&n.id===t)return n;if("children"in n){const r=Wse(n.children,t);if(r)return r}}}function qse(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=qse(r.children,t);if(a)return a}}}function Hse(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&&Hse(r.children,t,n)}function Use(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&&Use(a.children,t,n)}}function Vse(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&&Vse(a.children,t,n)}}function Gse(){const e=e2e();return S.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 c=a[l];if(c==null)return i;c=encodeURIComponent(c.toString());const f=":"+l,d=new RegExp(f+"(?!.*"+f+")","g");return i.replace(d,c)},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 bVe(){const e=Zr.useNavigate(),t=Gse();return S.useCallback((n,r)=>{const a=t(n,r);a&&e(a)},[e,t])}function xVe(e){const{loading:t}=e,[n,r]=S.useState((e==null?void 0:e.initialTabIndex)??0),a=S.useCallback((c,f)=>r(f),[r]),o=S.Children.toArray(e.children),i=o.map((c,f)=>{if(S.isValidElement(c)&&c.type===VF){const d=c.props.label;return O.jsx(X.Tab,{title:d||O.jsx(X.Skeleton,{width:"60px"}),eventKey:f},d??f)}return c}),l=o[n];return t?O.jsx(X.Tabs,{children:O.jsx(VF,{children:O.jsx(X.PageSection,{hasBodyWrapper:!1,children:O.jsx(X.Skeleton,{})})})}):O.jsxs(O.Fragment,{children:[O.jsx(X.Tabs,{activeKey:n,onSelect:a,inset:{default:"insetSm"},className:"pf-v6-u-mb-md",children:i}),l]})}function VF(e){return O.jsx(O.Fragment,{children:e.children})}function yVe(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 _Ve(e,t,n,r){return(a,o)=>{e(i=>{r?r(i):a(t(i))},o?n(o):void 0)}}function wVe(){const[e,t]=S.useState(!0);return S.useEffect(()=>()=>{t(!1)},[]),e}function kVe(){const e=S.useRef({isMounted:!0});return S.useEffect(()=>()=>{e.current.isMounted=!1},[]),e}function Yse(){const e=wVe(),[t,n]=S.useState(e?window.location:void 0),r=S.useCallback(()=>{n(window.location)},[]);S.useEffect(()=>{if(e)return t||r(),window.addEventListener("popstate",r),()=>{window.removeEventListener("popstate",r)}},[e,t,r]);const a=S.useCallback(i=>{window.history.pushState(null,"",i),r()},[r]),o=S.useCallback(i=>{window.history.replaceState(null,"",i),r()},[r]);return{location:t,push:a,update:o}}function Xse(){var a,o;const e=Yse(),t=((a=e.location)==null?void 0:a.pathname)||"/",n=S.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=S.useCallback(i=>{const l=i.toString();l?e.update("?"+l):e.update(t)},[e,t]);return[n,r]}const Kse=S.createContext({});function vg(){return S.useContext(Kse)}function SVe(e,t){return!e.hidden||!e.hidden(t)?e:null}function Od(e){return(e==null?void 0:e.substeps)!==void 0}function CVe(e){const{steps:t,onSubmit:n}=e,[r,a]=S.useState(!1),[o,i]=S.useState(null),[l,c]=S.useState({}),[f,d]=S.useState(e.stepDefaults??{}),[u,m]=S.useState({}),[g,x]=S.useState(),[y,w]=S.useState(!1),[C,E]=Xse(),j=S.useMemo(()=>EVe(t),[t]);S.useEffect(()=>{if(process.env.NODE_ENV==="development")for(const F in e.stepDefaults)t.find(N=>N.id===F)||console.warn(`PageWizardProvider: defaultValue key '${F}' not found in steps.`)},[e.stepDefaults,t]),S.useEffect(()=>{const F=i3(t,l);o||!F.length||(F[0].substeps?i(F[0].substeps[0]):i(F[0]))},[o,t,l]);const B=S.useCallback(async(F={})=>{var R;const N=Zse(t,{...l,...F});if(o===null)return Promise.resolve();if(!Od(o)&&o.validate&&await o.validate(F,l),(o==null?void 0:o.id)===((R=N[N.length-1])==null?void 0:R.id)){w(!0);try{await n(l)}catch(U){x(U instanceof Error?U:new Error(B_("An error occurred.")))}finally{w(!1)}return}const H=N.findIndex(U=>U.id===(o==null?void 0:o.id)),D=Od(N[H+1])?N[H+2]:N[H+1];return E(new URLSearchParams("")),c(U=>({...U,...F})),d(U=>({...U,[o==null?void 0:o.id]:F})),i(D),Promise.resolve()},[o,t,n,E,l,x]),A=S.useCallback(()=>{const F=i3(j,l),N=F.findIndex(H=>H.id===(o==null?void 0:o.id)),Y=Od(F[N-1])?F[N-2]:F[N-1];E(new URLSearchParams("")),i(Y)},[o==null?void 0:o.id,j,E,l]),L=S.useMemo(()=>({wizardData:l,setWizardData:c,stepData:f,setStepData:d,steps:e.steps,visibleSteps:i3(t,l),visibleStepsFlattened:Zse(t,l),activeStep:o,setActiveStep:i,stepError:u,setStepError:m,submitError:g,setSubmitError:x,isToggleExpanded:r,setToggleExpanded:a,onNext:B,onBack:A,isSubmitting:y}),[l,c,f,d,e.steps,t,o,i,u,m,g,x,r,a,B,A,y]);return O.jsx(Kse.Provider,{value:L,children:e.children})}function EVe(e){return e.reduce((t,n)=>(t.push(n),Od(n)&&t.push(...n.substeps),t),[])}function i3(e,t){return e.filter(n=>SVe(n,t))}function Zse(e,t){return i3(e,t).reduce((r,a)=>(r.push(a),Od(a)&&r.push(...a.substeps),r),[])}function Jse(e){const{t}=Cn(),{activeStep:n,visibleStepsFlattened:r,setSubmitError:a}=vg(),o=(n==null?void 0:n.id)===r[r.length-1].id,i=t(o?"Finish":"Next"),l=Od(r[0])?(n==null?void 0:n.id)===r[1].id:(n==null?void 0:n.id)===r[0].id,c=l?"pf-v6-c-button pf-m-disabled":"pf-v6-c-button pf-m-secondary";return O.jsx("footer",{className:"pf-v6-c-wizard__footer","data-cy":"wizard-footer","data-testid":"wizard-footer",children:O.jsxs(X.ActionList,{children:[O.jsxs(X.ActionListGroup,{children:[O.jsx(X.ActionListItem,{children:n!==null&&"inputs"in n?O.jsx(sF,{style:{minWidth:10},children:i}):O.jsx("button",{"data-cy":"wizard-next",className:"pf-v6-c-button pf-m-primary",type:"submit",onClick:()=>{var f;a(void 0),(f=e.onNext)==null||f.call(e)},children:i})}),O.jsx(X.ActionListItem,{children:O.jsx("button",{type:"button","data-cy":"wizard-back","data-testid":"wizard-back",className:c,disabled:l,onClick:()=>{var f;a(void 0),(f=e.onBack)==null||f.call(e)},children:t("Back")})})]}),O.jsx(X.ActionListItem,{children:O.jsx("div",{"data-cy":"wizard-cancel","data-testid":"wizard-cancel",className:"pf-v6-c-wizard__footer-cancel",children:O.jsx("button",{className:"pf-v6-c-button pf-m-link",type:"button",onClick:e.onCancel,children:t("Cancel")})})})]})})}function PVe({onCancel:e,disableGrid:t,errorAdapter:n,isVertical:r,singleColumn:a}){const o=Zr.useNavigate(),{activeStep:i,stepData:l,onNext:c,onBack:f,submitError:d,isSubmitting:u}=vg(),m=S.useCallback(()=>{e?e():o(-1)},[o,e]);return u?O.jsx(X.Bullseye,{children:O.jsx(X.Spinner,{})}):O.jsxs(zse,{children:[O.jsx(TVe,{error:d}),i!==null&&("inputs"in i?O.jsxs(Aie,{onSubmit:c,footer:O.jsx(Jse,{onBack:f,onCancel:m}),defaultValue:l[i.id],errorAdapter:n,disableGrid:t,isVertical:r,singleColumn:a,isWizard:!0,children:[O.jsx(OVe,{}),i.inputs]},i.id):O.jsxs("div",{"data-cy":`wizard-section-${i.id}`,style:{display:"flex",flexDirection:"column",flexGrow:1,overflow:"hidden"},children:[O.jsx(X.PageSection,{hasBodyWrapper:!1,"aria-label":B_("Wizard step content"),hasOverflowScroll:!0,isFilled:!0,children:i==null?void 0:i.element}),O.jsx(Jse,{onNext:()=>void c({}),onBack:f,onCancel:m})]}))]})}function OVe(){const{activeStep:e,setStepError:t}=vg(),{errors:n}=tF(),r=JSON.stringify(n);return S.useEffect(()=>{Object.keys(n).length===0?t({}):e&&t({[e.id]:n})},[n,e,t,r]),null}function TVe(e){const{t}=Cn(),n=e.error;if(!e.error)return null;if(!(e.error instanceof Error))return typeof e.error=="string"?O.jsx(X.Alert,{variant:"danger",title:e.error}):O.jsx(X.Alert,{variant:"danger",title:t("An error occurred.")});if("message"in e.error&&!n.json)return O.jsx(X.Alert,{variant:"danger",title:e.error.message});if(n.json)return O.jsx(X.Alert,{variant:"danger",title:n.message,isInline:!0,children:Object.values(n.json).map((r,a)=>O.jsx("div",{children:r},a))})}function $f(...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=$f(...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 Td={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"},IVe=cn.div`
|
|
547
|
+
`).some(n=>{const r=n.trim();return r.startsWith("#")||r.includes("#")&&!/^[^#]*["'][^"']*#[^"']*["'][^#]*$/.exec(r)})}function Qf(e,t){const n=t?[]:{};if(e==null)return n;const a=()=>{try{e=R_.load(e)}catch(o){return o instanceof Error||o instanceof TF?new Error(o.message):{}}};if(typeof e=="string"){if(o3(e))try{return R_.load(e),{__preserveYamlString:e}}catch{}try{e=JSON.parse(e)}catch{a()}}return t?Array.isArray(e)?e:[]:Array.isArray(e)?{}:e}function tc(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=R_.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=R_.dump(e).trimEnd();switch(n){case"null":case"{}":case"[]":return"";default:return n}}catch(n){return n instanceof Error||n instanceof TF?n.message:""}default:return""}}function oVe(e){const{additionalControls:t,footer:n,helperText:r,isDisabled:a,isReadOnly:o,isRequired:i,label:l,labelHelp:c,labelHelpTitle:f,name:d,options:u,placeholderText:m,validate:g}=e,x=td(e),{t:y}=Cn(),{control:w,setValue:C,getValues:E,formState:{isSubmitting:j,isValidating:B,defaultValues:A}}=Vf(),[L,F]=S.useState(!1),N=S.useCallback(()=>F(!L),[L]),[Y]=ua(),H=M_(e.label,e.isRequired),D=m0(A,e.name);S.useEffect(()=>{E(e.name)||u.length===1&&i&&C(e.name,u[0].value)},[E,i,u,e.name,C]);const R=(U,G)=>O.jsx(X.MenuToggle,{"data-cy":`${x}-form-group`,id:`${x}-form-group-toggle`,isDisabled:a||o||j,ref:U,onClick:N,isExpanded:L,isFullWidth:!0,children:G??m});return O.jsx(p0,{name:d,control:w,defaultValue:e.defaultValue,shouldUnregister:!0,render:({field:{onChange:U,value:G},fieldState:{error:Z}})=>{const ne=(te,q)=>{const ae=u.find(de=>de.value===q);ae&&(U(ae.value),e.onChange&&e.onChange(ae.value)),F(!1)},oe=Z!=null&&Z.message?g&&B?Y.validating:Z==null?void 0:Z.message:void 0,ee=u.find(te=>te.value===G);return O.jsx(q_,{fieldId:x,label:l,labelHelpTitle:f??l,labelHelp:c,additionalControls:t,helperText:r,helperTextInvalid:oe,isRequired:i,children:O.jsxs("div",{style:{display:"flex"},"data-testid":x,children:[O.jsx(X.Select,{"aria-describedby":`${x}-form-group-select`,"data-cy":x,"data-testid":x,id:x,isOpen:L,itemID:x,onOpenChange:te=>F(te),onSelect:ne,ouiaId:"menu-select",shouldFocusToggleOnSelect:!0,toggle:te=>R(te,ee==null?void 0:ee.label),isScrollable:!0,popperProps:{enableFlip:!0,preventOverflow:!0},children:O.jsxs(O.Fragment,{children:[O.jsx(X.SelectList,{children:u.map(te=>{const q=es(te);return O.jsx(X.SelectOption,{id:q,value:te.value,label:te.label,description:te.description,"data-cy":q,"data-testid":te.value,children:te.label},te.label)})}),n&&O.jsx(X.MenuFooter,{children:n})]})}),O.jsx(Df,{actions:[{label:y("Undo changes"),type:gr.Button,selection:Jn.None,onClick:()=>{C(e.name,D)},isHidden:()=>!e.enableUndo||G===D},{label:y("Reset to default"),type:gr.Button,selection:Jn.None,onClick:()=>{C(e.name,e.defaultValue)},isHidden:()=>!e.enableReset||G===e.defaultValue}],variant:X.ButtonVariant.control,position:"right"})]})})},rules:{required:H,validate:g}})}function iVe(e){const{name:t,helperText:n,validate:r,additionalControls:a,label:o,labelHelp:i,labelHelpTitle:l,labelOn:c}=e,{control:f,formState:{isSubmitting:d,isValidating:u}}=Vf(),m=td(e);return O.jsx(p0,{name:t,control:f,shouldUnregister:!0,render:({field:{onChange:g,value:x},fieldState:{error:y}})=>{const w=r&&u||y==null?void 0:y.message;return O.jsx(q_,{fieldId:m,"data-cy":m+"-form-group",label:o,labelHelpTitle:l??o,labelHelp:i,helperText:n,helperTextInvalid:w,additionalControls:a,children:O.jsx(X.Switch,{"data-cy":m+"-toggle","data-testid":m+"-toggle","aria-label":o,isChecked:x,onChange:C=>g(C),isDisabled:d,label:c})})}})}function lVe(e){const{type:t,name:n,label:r,labelHelpTitle:a,labelHelp:o,additionalControls:i,placeholder:l,button:c,helperText:f,isDisabled:d,isReadOnly:u,isRequired:m,validate:g,minLength:x,maxLength:y,min:w,max:C,pattern:E,selectTitle:j,selectOpen:B,selectValue:A,autoFocus:L,autoComplete:F,disableAutoResize:N}=e,Y=td(e),{control:H,setValue:D,formState:{isSubmitting:R,isValidating:U}}=Vf(),[G,Z]=S.useState(!1),[ne]=ua(),oe=M_(e.label,e.isRequired);return O.jsx(p0,{name:n,control:H,shouldUnregister:!0,render:({field:{onChange:ee,value:te,name:q},fieldState:{error:ae}})=>{const de=ae!=null&&ae.message?g&&U?ne.validating:ae==null?void 0:ae.message:void 0;function J(ce){ee(ce.trimStart())}return O.jsx(q_,{fieldId:Y,label:r,labelHelpTitle:a??r,labelHelp:o,additionalControls:i,helperText:f,helperTextInvalid:de,isRequired:m,fullWidth:!0,children:O.jsxs(X.InputGroup,{children:[O.jsx(X.InputGroupItem,{isFill:!0,children:O.jsx(X.TextArea,{id:Y,placeholder:l,onChange:(ce,ye)=>J(ye),value:te??"","aria-describedby":Y?`${Y}-form-group`:void 0,validated:de?"error":void 0,type:t==="password"?G?"text":"password":t,readOnlyVariant:u?"default":void 0,isDisabled:d,autoFocus:L,autoComplete:F||(t==="password"?"new-password":"off"),"data-cy":Y,"data-testid":Y,autoResize:N===void 0?!0:!N,rows:1,resizeOrientation:"vertical"})}),t==="password"&&O.jsx(X.Button,{variant:"control",onClick:()=>Z(!G),isDisabled:d||u,children:G?O.jsx(Dt.EyeIcon,{}):O.jsx(Dt.EyeSlashIcon,{})}),j&&O.jsx(X.Button,{icon:O.jsx(Dt.SearchIcon,{}),ouiaId:`lookup-${q}-button`,variant:"control",onClick:()=>B==null?void 0:B(ce=>{if(A){const ye=A(ce);D(q,ye,{shouldValidate:!0})}},j),"aria-label":"Options menu",isDisabled:d||R}),c]})})},rules:{required:oe,validate:g,minLength:typeof r=="string"&&typeof x=="number"?{value:x,message:`${Kf(r.toLocaleLowerCase())} must be at least ${x} characters.`}:x,maxLength:typeof r=="string"&&typeof y=="number"?{value:y,message:`${Kf(r.toLocaleLowerCase())} cannot be greater than ${y} characters.`}:y,min:typeof r=="string"&&(typeof w=="number"||typeof w=="string")?{value:w,message:`${Kf(r.toLocaleLowerCase())} must be less than ${w}.`}:x,max:typeof r=="string"&&(typeof C=="number"||typeof C=="string")?{value:C,message:`${Kf(r.toLocaleLowerCase())} cannot be greater than ${C}.`}:x,pattern:E}})}function sVe(e){const{type:t,name:n,label:r,labelHelpTitle:a,labelHelp:o,additionalControls:i,placeholder:l,button:c,helperText:f,isDisabled:d,isReadOnly:u,isRequired:m,validate:g,minLength:x,maxLength:y,min:w,max:C,pattern:E,selectTitle:j,selectOpen:B,selectValue:A,autoFocus:L,autoComplete:F,fullWidth:N}=e,Y=td(e),{t:H}=Cn(),{control:D,setValue:R,formState:{isSubmitting:U,isValidating:G,defaultValues:Z}}=Vf(),[ne,oe]=S.useState(!1),[ee]=ua(),te=M_(e.label,e.isRequired),q=m0(Z,e.name);return O.jsx(p0,{name:n,control:D,shouldUnregister:e.shouldUnregister!==!1,defaultValue:e.defaultValue,render:({field:{onChange:ae,value:de,name:J},fieldState:{error:ce}})=>{const ye=ce!=null&&ce.message?g&&G?ee.validating:ce==null?void 0:ce.message:void 0;let ue=de;switch(t){case"datetime-local":if(de){const Se=new Date(de);ue=new Date(Se.getTime()-Se.getTimezoneOffset()*6e4).toISOString().slice(0,16)}break}function ve(Se){switch(e.type){case"datetime-local":{ae(new Date(Se).toISOString());break}case"number":{let ge=Number(Se);if(Se===""||isNaN(ge)){R(J,null),ae(null);return}C!==void 0&&ge>Number(C)&&(ge=Number(C)),w!==void 0&&ge<Number(w)&&(ge=Number(w)),R(J,ge),ae(ge);break}default:ae(Se.trimStart())}}return O.jsx(q_,{fieldId:Y,label:r,labelHelpTitle:a??r,labelHelp:o,additionalControls:i,helperText:f,helperTextInvalid:ye,isRequired:m,fullWidth:N,children:O.jsxs(X.InputGroup,{children:[O.jsx(X.InputGroupItem,{isFill:!0,children:O.jsx(X.TextInput,{id:Y,placeholder:l,onChange:(Se,ge)=>ve(ge),value:ue??"","aria-describedby":Y?`${Y}-form-group`:void 0,validated:ye?"error":void 0,type:t==="password"?ne?"text":"password":t,readOnlyVariant:u?"default":void 0,isDisabled:d,autoFocus:L,autoComplete:F||(t==="password"?"new-password":"off"),"data-cy":Y,"data-testid":Y})}),t==="password"&&O.jsx(X.Button,{variant:"control",onClick:()=>oe(!ne),isDisabled:d||u,children:ne?O.jsx(Dt.EyeIcon,{}):O.jsx(Dt.EyeSlashIcon,{})}),j&&O.jsx(X.Button,{icon:O.jsx(Dt.SearchIcon,{"data-cy":"lookup-button"}),ouiaId:`lookup-${J}-button`,variant:"control",onClick:()=>B==null?void 0:B(Se=>{if(A){const ge=A(Se);R(J,ge,{shouldValidate:!0})}},j),"aria-label":"Options menu",isDisabled:d||U}),c,O.jsx(Df,{actions:[{label:H("Undo changes"),type:gr.Button,selection:Jn.None,onClick:()=>{R(e.name,q)},isHidden:()=>!e.enableUndo||de===q},{label:H("Reset to default"),type:gr.Button,selection:Jn.None,onClick:()=>{R(e.name,e.defaultValue)},isHidden:()=>!e.enableReset||de===e.defaultValue}],variant:X.ButtonVariant.control,position:"right"})]})})},rules:{required:te,validate:g,minLength:typeof r=="string"&&typeof x=="number"?{value:x,message:`${Kf(r.toLocaleLowerCase())} must be at least ${x} characters.`}:x,maxLength:typeof r=="string"&&typeof y=="number"?{value:y,message:`${Kf(r.toLocaleLowerCase())} cannot be greater than ${y} characters.`}:y,min:typeof r=="string"&&(typeof w=="number"||typeof w=="string")?{value:w,message:`${Kf(r.toLocaleLowerCase())} must be greater or equal to ${w}.`}:x,max:typeof r=="string"&&(typeof C=="number"||typeof C=="string")?{value:C,message:`${Kf(r.toLocaleLowerCase())} cannot be greater than ${C}.`}:C,pattern:E}})}const Nse=S.createContext({tabBreadcrumb:{},setTabBreadcrumb:()=>{}});function cVe(e){const[t,n]=S.useState();return O.jsx(Nse.Provider,{value:{tabBreadcrumb:t,setTabBreadcrumb:n},children:e.children})}const fVe=()=>S.useContext(Nse);function pVe(e){return O.jsx(bV,{children:O.jsx(bX,{defaultRefreshInterval:e.defaultRefreshInterval,children:O.jsx(n2e,{children:O.jsx(qoe,{children:O.jsx(xG,{children:O.jsx(_G,{children:O.jsx(cVe,{children:e.children})})})})})})})}function dVe(e){const t=Zr.useNavigate();return e.breadcrumbs?O.jsx(X.Breadcrumb,{style:e.style,children:e.breadcrumbs.map((n,r)=>n.label?O.jsx(X.BreadcrumbItem,{"data-cy":n.label,id:n.id,component:n.component,isActive:n.to===void 0,children:n.to?O.jsx("a",{href:n.to,"data-cy":n.label,onClick:a=>{a.preventDefault(),n.to&&t(n.to)},children:n.label}):n.label},r):O.jsx(S.Fragment,{},r))}):O.jsx(S.Fragment,{})}function uVe(e){const{title:t,description:n,controls:r,headerActions:a,footer:o}=e,i=dl("lg"),l=dl("xl"),c=dl("md"),[f]=ua(),{tabBreadcrumb:d}=fVe(),u=S.useMemo(()=>{const m=[];return e.breadcrumbs&&(m.push(...e.breadcrumbs),d&&m.push(d)),m},[e.breadcrumbs,d]);return O.jsx(X.PageSection,{hasBodyWrapper:!1,style:{paddingBlock:l?16:12},children:O.jsxs(X.Stack,{hasGutter:!0,children:[O.jsxs(X.Flex,{flexWrap:{default:"nowrap"},alignItems:{default:"alignItemsStretch"},children:[O.jsxs(X.FlexItem,{grow:{default:"grow"},children:[u.length>0&&O.jsx(dVe,{breadcrumbs:u!=null&&u.length?u:void 0,style:{paddingBottom:i?6:4}}),t?e.titleHelp?O.jsx(X.Popover,{headerContent:e.titleHelpTitle??e.title,bodyContent:O.jsxs(X.Stack,{hasGutter:!0,children:[typeof e.titleHelp=="string"?O.jsx(X.StackItem,{children:e.titleHelp}):e.titleHelp.map((m,g)=>O.jsx(X.StackItem,{children:m},g)),e.titleDocLink&&O.jsx(X.StackItem,{children:O.jsx(X.Button,{icon:O.jsx(Dt.ExternalLinkAltIcon,{}),variant:"link",onClick:()=>window.open(e.titleDocLink,"_blank"),isInline:!0,iconPosition:"end",children:f.documentation})})]}),position:"bottom-start",children:O.jsxs(X.Title,{"data-testid":"page-title","data-cy":"page-title",headingLevel:"h1",children:[t,O.jsx(X.Button,{icon:O.jsx(Dt.OutlinedQuestionCircleIcon,{}),variant:"link",style:{padding:0,marginTop:1,marginLeft:8,verticalAlign:"top"}})]})}):O.jsx(X.Title,{"data-cy":"page-title",headingLevel:"h1",children:t}):null,c&&n&&O.jsx("div",{"data-cy":"app-description",style:{paddingTop:l?4:2,opacity:.8},children:n})]}),t&&(a||r)&&O.jsxs(X.Flex,{"data-cy":"manage-view",direction:{default:"column"},spaceItems:{default:"spaceItemsSm",xl:"spaceItemsMd"},justifyContent:{default:"justifyContentCenter"},children:[r&&O.jsx(X.FlexItem,{grow:{default:"grow"},children:r}),a&&O.jsx(X.FlexItem,{children:a})]})]}),o]})})}function zse(e){const[t]=ua();return O.jsx(OG,{message:t.errorText,children:e.children})}function vVe(e){return O.jsxs(X.Masthead,{display:{default:"inline"},children:[O.jsxs(X.MastheadMain,{children:[O.jsx(Rse,{}),O.jsx(X.MastheadBrand,{children:O.jsx(X.MastheadLogo,{component:t=>O.jsx(Zr.Link,{...t,to:"/",style:{textDecoration:"none",color:"light-dark(black, white)"}}),children:e.brand})})]}),O.jsx(X.MastheadContent,{style:{marginLeft:0,minHeight:0},children:O.jsx(X.Toolbar,{id:"toolbar","data-cy":"toolbar",inset:{default:"insetNone"},style:{padding:0},children:O.jsx(X.ToolbarContent,{children:e.children})})})]})}function Rse(){const e=fS();return O.jsx(X.MastheadToggle,{onClick:()=>e.setState({isOpen:!e.isOpen}),children:O.jsx(X.PageToggleButton,{isHamburgerButton:!0,"data-cy":"nav-toggle",variant:"plain","aria-label":"Global navigation"})})}function mVe(){const{setNotificationsDrawerOpen:e,notificationGroups:t}=vb(),{isNotificationRead:n}=uS(),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 O.jsx(X.NotificationBadge,{"data-cy":"notification-badge",variant:r===0?"read":"unread",count:r,onClick:()=>e(a=>!a)})}function gVe(){const[e,t]=S.useContext(Nm);return e.activeTheme==="dark"?O.jsx(X.Button,{icon:O.jsx(Dt.MoonIcon,{}),"data-cy":"settings-icon",variant:"plain",onClick:()=>t({...e,theme:"light"})}):O.jsx(X.Button,{icon:O.jsx(Dt.SunIcon,{}),"data-cy":"theme-icon",variant:"plain",onClick:()=>t({...e,theme:"dark"})})}function hVe(e){return e.replace(/^\//,"")}function Wse(e,t){for(const n of e){if("id"in n&&n.id===t)return n;if("children"in n){const r=Wse(n.children,t);if(r)return r}}}function qse(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=qse(r.children,t);if(a)return a}}}function Hse(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&&Hse(r.children,t,n)}function Use(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&&Use(a.children,t,n)}}function Vse(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&&Vse(a.children,t,n)}}function Gse(){const e=e2e();return S.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 c=a[l];if(c==null)return i;c=encodeURIComponent(c.toString());const f=":"+l,d=new RegExp(f+"(?!.*"+f+")","g");return i.replace(d,c)},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 bVe(){const e=Zr.useNavigate(),t=Gse();return S.useCallback((n,r)=>{const a=t(n,r);a&&e(a)},[e,t])}function xVe(e){const{loading:t}=e,[n,r]=S.useState((e==null?void 0:e.initialTabIndex)??0),a=S.useCallback((c,f)=>r(f),[r]),o=S.Children.toArray(e.children),i=o.map((c,f)=>{if(S.isValidElement(c)&&c.type===VF){const d=c.props.label;return O.jsx(X.Tab,{title:d||O.jsx(X.Skeleton,{width:"60px"}),eventKey:f},d??f)}return c}),l=o[n];return t?O.jsx(X.Tabs,{children:O.jsx(VF,{children:O.jsx(X.PageSection,{hasBodyWrapper:!1,children:O.jsx(X.Skeleton,{})})})}):O.jsxs(O.Fragment,{children:[O.jsx(X.Tabs,{activeKey:n,onSelect:a,inset:{default:"insetSm"},className:"pf-v6-u-mb-md",children:i}),l]})}function VF(e){return O.jsx(O.Fragment,{children:e.children})}function yVe(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 _Ve(e,t,n,r){return(a,o)=>{e(i=>{r?r(i):a(t(i))},o?n(o):void 0)}}function wVe(){const[e,t]=S.useState(!0);return S.useEffect(()=>()=>{t(!1)},[]),e}function kVe(){const e=S.useRef({isMounted:!0});return S.useEffect(()=>()=>{e.current.isMounted=!1},[]),e}function Yse(){const e=wVe(),[t,n]=S.useState(e?window.location:void 0),r=S.useCallback(()=>{n(window.location)},[]);S.useEffect(()=>{if(e)return t||r(),window.addEventListener("popstate",r),()=>{window.removeEventListener("popstate",r)}},[e,t,r]);const a=S.useCallback(i=>{window.history.pushState(null,"",i),r()},[r]),o=S.useCallback(i=>{window.history.replaceState(null,"",i),r()},[r]);return{location:t,push:a,update:o}}function Xse(){var a,o;const e=Yse(),t=((a=e.location)==null?void 0:a.pathname)||"/",n=S.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=S.useCallback(i=>{const l=i.toString();l?e.update("?"+l):e.update(t)},[e,t]);return[n,r]}const Kse=S.createContext({});function vg(){return S.useContext(Kse)}function SVe(e,t){return!e.hidden||!e.hidden(t)?e:null}function Od(e){return(e==null?void 0:e.substeps)!==void 0}function CVe(e){const{steps:t,onSubmit:n}=e,[r,a]=S.useState(!1),[o,i]=S.useState(null),[l,c]=S.useState({}),[f,d]=S.useState(e.stepDefaults??{}),[u,m]=S.useState({}),[g,x]=S.useState(),[y,w]=S.useState(!1),[C,E]=Xse(),j=S.useMemo(()=>EVe(t),[t]);S.useEffect(()=>{if(process.env.NODE_ENV==="development")for(const F in e.stepDefaults)t.find(N=>N.id===F)||console.warn(`PageWizardProvider: defaultValue key '${F}' not found in steps.`)},[e.stepDefaults,t]),S.useEffect(()=>{const F=i3(t,l);o||!F.length||(F[0].substeps?i(F[0].substeps[0]):i(F[0]))},[o,t,l]);const B=S.useCallback(async(F={})=>{var R;const N=Zse(t,{...l,...F});if(o===null)return Promise.resolve();if(!Od(o)&&o.validate&&await o.validate(F,l),(o==null?void 0:o.id)===((R=N[N.length-1])==null?void 0:R.id)){w(!0);try{await n(l)}catch(U){x(U instanceof Error?U:new Error(B_("An error occurred.")))}finally{w(!1)}return}const H=N.findIndex(U=>U.id===(o==null?void 0:o.id)),D=Od(N[H+1])?N[H+2]:N[H+1];return E(new URLSearchParams("")),c(U=>({...U,...F})),d(U=>({...U,[o==null?void 0:o.id]:F})),i(D),Promise.resolve()},[o,t,n,E,l,x]),A=S.useCallback(()=>{const F=i3(j,l),N=F.findIndex(H=>H.id===(o==null?void 0:o.id)),Y=Od(F[N-1])?F[N-2]:F[N-1];E(new URLSearchParams("")),i(Y)},[o==null?void 0:o.id,j,E,l]),L=S.useMemo(()=>({wizardData:l,setWizardData:c,stepData:f,setStepData:d,steps:e.steps,visibleSteps:i3(t,l),visibleStepsFlattened:Zse(t,l),activeStep:o,setActiveStep:i,stepError:u,setStepError:m,submitError:g,setSubmitError:x,isToggleExpanded:r,setToggleExpanded:a,onNext:B,onBack:A,isSubmitting:y}),[l,c,f,d,e.steps,t,o,i,u,m,g,x,r,a,B,A,y]);return O.jsx(Kse.Provider,{value:L,children:e.children})}function EVe(e){return e.reduce((t,n)=>(t.push(n),Od(n)&&t.push(...n.substeps),t),[])}function i3(e,t){return e.filter(n=>SVe(n,t))}function Zse(e,t){return i3(e,t).reduce((r,a)=>(r.push(a),Od(a)&&r.push(...a.substeps),r),[])}function Jse(e){const{t}=Cn(),{activeStep:n,visibleStepsFlattened:r,setSubmitError:a}=vg(),o=(n==null?void 0:n.id)===r[r.length-1].id,i=t(o?"Finish":"Next"),l=Od(r[0])?(n==null?void 0:n.id)===r[1].id:(n==null?void 0:n.id)===r[0].id,c=l?"pf-v6-c-button pf-m-disabled":"pf-v6-c-button pf-m-secondary";return O.jsx("footer",{className:"pf-v6-c-wizard__footer","data-cy":"wizard-footer","data-testid":"wizard-footer",children:O.jsxs(X.ActionList,{children:[O.jsxs(X.ActionListGroup,{children:[O.jsx(X.ActionListItem,{children:n!==null&&"inputs"in n?O.jsx(sF,{style:{minWidth:10},children:i}):O.jsx("button",{"data-cy":"wizard-next",className:"pf-v6-c-button pf-m-primary",type:"submit",onClick:()=>{var f;a(void 0),(f=e.onNext)==null||f.call(e)},children:i})}),O.jsx(X.ActionListItem,{children:O.jsx("button",{type:"button","data-cy":"wizard-back","data-testid":"wizard-back",className:c,disabled:l,onClick:()=>{var f;a(void 0),(f=e.onBack)==null||f.call(e)},children:t("Back")})})]}),O.jsx(X.ActionListItem,{children:O.jsx("div",{"data-cy":"wizard-cancel","data-testid":"wizard-cancel",className:"pf-v6-c-wizard__footer-cancel",children:O.jsx("button",{className:"pf-v6-c-button pf-m-link",type:"button",onClick:e.onCancel,children:t("Cancel")})})})]})})}function PVe({onCancel:e,disableGrid:t,errorAdapter:n,isVertical:r,singleColumn:a}){const o=Zr.useNavigate(),{activeStep:i,stepData:l,onNext:c,onBack:f,submitError:d,isSubmitting:u}=vg(),m=S.useCallback(()=>{e?e():o(-1)},[o,e]);return u?O.jsx(X.Bullseye,{children:O.jsx(X.Spinner,{})}):O.jsxs(zse,{children:[O.jsx(TVe,{error:d}),i!==null&&("inputs"in i?O.jsxs(Aie,{onSubmit:c,footer:O.jsx(Jse,{onBack:f,onCancel:m}),defaultValue:l[i.id],errorAdapter:n,disableGrid:t,isVertical:r,singleColumn:a,isWizard:!0,children:[O.jsx(OVe,{}),i.inputs]},i.id):O.jsxs("div",{"data-cy":`wizard-section-${i.id}`,style:{display:"flex",flexDirection:"column",flexGrow:1,overflow:"hidden"},children:[O.jsx(X.PageSection,{hasBodyWrapper:!1,"aria-label":B_("Wizard step content"),hasOverflowScroll:!0,isFilled:!0,children:i==null?void 0:i.element}),O.jsx(Jse,{onNext:()=>void c({}),onBack:f,onCancel:m})]}))]})}function OVe(){const{activeStep:e,setStepError:t}=vg(),{errors:n}=tF(),r=JSON.stringify(n);return S.useEffect(()=>{Object.keys(n).length===0?t({}):e&&t({[e.id]:n})},[n,e,t,r]),null}function TVe(e){const{t}=Cn(),n=e.error;if(!e.error)return null;if(!(e.error instanceof Error))return typeof e.error=="string"?O.jsx(X.Alert,{variant:"danger",title:e.error}):O.jsx(X.Alert,{variant:"danger",title:t("An error occurred.")});if("message"in e.error&&!n.json)return O.jsx(X.Alert,{variant:"danger",title:e.error.message});if(n.json)return O.jsx(X.Alert,{variant:"danger",title:n.message,isInline:!0,children:Object.values(n.json).map((r,a)=>O.jsx("div",{children:r},a))})}function $f(...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=$f(...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 Td={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"},IVe=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
package/publish/index.d.ts
CHANGED
|
@@ -1,155 +1,155 @@
|
|
|
1
|
-
import { $ as s } from "./index-
|
|
2
|
-
import { B as o } from "./index-
|
|
3
|
-
import { A as t } from "./index-
|
|
4
|
-
import { C as r } from "./index-
|
|
5
|
-
import { aW as l } from "./index-
|
|
6
|
-
import { aY as i } from "./index-
|
|
7
|
-
import { aV as n } from "./index-
|
|
8
|
-
import { aX as g } from "./index-
|
|
9
|
-
import { aZ as b } from "./index-
|
|
10
|
-
import { aU as u } from "./index-
|
|
11
|
-
import { aQ as P } from "./index-
|
|
12
|
-
import { D as d } from "./index-
|
|
13
|
-
import { af as m } from "./index-
|
|
14
|
-
import { ae as C } from "./index-
|
|
15
|
-
import { E as c } from "./index-
|
|
16
|
-
import { bo as T } from "./index-
|
|
17
|
-
import { bm as D } from "./index-
|
|
18
|
-
import { F as p } from "./index-
|
|
19
|
-
import { G as S } from "./index-
|
|
20
|
-
import { bs as h } from "./index-
|
|
21
|
-
import { ab as F } from "./index-
|
|
22
|
-
import { H as v } from "./index-
|
|
23
|
-
import { k as B } from "./index-
|
|
24
|
-
import { I as f } from "./index-
|
|
25
|
-
import { L as I } from "./index-
|
|
26
|
-
import { a2 as A } from "./index-
|
|
27
|
-
import { P as y } from "./index-
|
|
28
|
-
import { r as N } from "./index-
|
|
29
|
-
import { q as x } from "./index-
|
|
30
|
-
import { s as k } from "./index-
|
|
31
|
-
import { t as w } from "./index-
|
|
32
|
-
import { w as E } from "./index-
|
|
33
|
-
import { y as O } from "./index-
|
|
34
|
-
import { z as L } from "./index-
|
|
35
|
-
import { J as M } from "./index-
|
|
36
|
-
import { M as V } from "./index-
|
|
37
|
-
import { N as R } from "./index-
|
|
38
|
-
import { Q as W } from "./index-
|
|
39
|
-
import { O as j } from "./index-
|
|
40
|
-
import { K as G } from "./index-
|
|
41
|
-
import { U as z } from "./index-
|
|
42
|
-
import { X as U } from "./index-
|
|
43
|
-
import { V as H } from "./index-
|
|
44
|
-
import { Y as q } from "./index-
|
|
45
|
-
import { aP as Q } from "./index-
|
|
46
|
-
import { Z as J } from "./index-
|
|
47
|
-
import { _ as K } from "./index-
|
|
48
|
-
import { a4 as X } from "./index-
|
|
49
|
-
import { W as Y } from "./index-
|
|
50
|
-
import { an as Z } from "./index-
|
|
51
|
-
import { aq as _ } from "./index-
|
|
52
|
-
import { ac as $ } from "./index-
|
|
53
|
-
import { ad as aa } from "./index-
|
|
54
|
-
import { ao as ea } from "./index-
|
|
55
|
-
import { ai as sa } from "./index-
|
|
56
|
-
import { ap as oa } from "./index-
|
|
57
|
-
import { aj as ta } from "./index-
|
|
58
|
-
import { ak as ra } from "./index-
|
|
59
|
-
import { al as la } from "./index-
|
|
60
|
-
import { ar as ia } from "./index-
|
|
61
|
-
import { as as na } from "./index-
|
|
62
|
-
import { at as ga } from "./index-
|
|
63
|
-
import { au as ba } from "./index-
|
|
64
|
-
import { av as ua } from "./index-
|
|
65
|
-
import { aF as Pa } from "./index-
|
|
66
|
-
import { aH as da } from "./index-
|
|
67
|
-
import { ay as ma } from "./index-
|
|
68
|
-
import { a9 as Ca } from "./index-
|
|
69
|
-
import { aa as ca } from "./index-
|
|
70
|
-
import { aw as Ta } from "./index-
|
|
71
|
-
import { aL as Da } from "./index-
|
|
72
|
-
import { aM as pa } from "./index-
|
|
73
|
-
import { bg as Sa } from "./index-
|
|
74
|
-
import { aN as ha } from "./index-
|
|
75
|
-
import { aR as Fa } from "./index-
|
|
76
|
-
import { aT as va } from "./index-
|
|
77
|
-
import { bf as Ba } from "./index-
|
|
78
|
-
import { ax as fa } from "./index-
|
|
79
|
-
import { bh as Ia } from "./index-
|
|
80
|
-
import { bj as Aa } from "./index-
|
|
81
|
-
import { br as ya } from "./index-
|
|
82
|
-
import { R as Na } from "./index-
|
|
83
|
-
import { S as xa } from "./index-
|
|
84
|
-
import { a8 as ka } from "./index-
|
|
85
|
-
import { aO as wa } from "./index-
|
|
86
|
-
import { a_ as Ea } from "./index-
|
|
87
|
-
import { T as Oa } from "./index-
|
|
88
|
-
import { bn as La } from "./index-
|
|
89
|
-
import { bi as Ma } from "./index-
|
|
90
|
-
import { bq as Va } from "./index-
|
|
91
|
-
import { bp as Ra } from "./index-
|
|
92
|
-
import { aC as Wa } from "./index-
|
|
93
|
-
import { aD as ja } from "./index-
|
|
94
|
-
import { aE as Ga } from "./index-
|
|
95
|
-
import { bz as za } from "./index-
|
|
96
|
-
import { by as Ua } from "./index-
|
|
97
|
-
import { bx as Ha } from "./index-
|
|
98
|
-
import { bw as qa } from "./index-
|
|
99
|
-
import { x as Qa } from "./index-
|
|
100
|
-
import { bB as Ja } from "./index-
|
|
101
|
-
import { aA as Ka } from "./index-
|
|
102
|
-
import { g as Xa } from "./index-
|
|
103
|
-
import { bk as Ya } from "./index-
|
|
104
|
-
import { ah as Za } from "./index-
|
|
105
|
-
import { bA as _a } from "./index-
|
|
106
|
-
import { a as $a } from "./index-
|
|
107
|
-
import { e as ae } from "./index-
|
|
108
|
-
import { c as ee } from "./index-
|
|
109
|
-
import { f as se } from "./index-
|
|
110
|
-
import { p as oe } from "./index-
|
|
111
|
-
import { i as te } from "./index-
|
|
112
|
-
import { h as re } from "./index-
|
|
113
|
-
import { b as le } from "./index-
|
|
114
|
-
import { az as ie } from "./index-
|
|
115
|
-
import { aB as ne } from "./index-
|
|
116
|
-
import { bl as ge } from "./index-
|
|
117
|
-
import { n as be } from "./index-
|
|
118
|
-
import { a0 as ue } from "./index-
|
|
119
|
-
import { a1 as Pe } from "./index-
|
|
120
|
-
import { aS as de } from "./index-
|
|
121
|
-
import { b8 as me } from "./index-
|
|
122
|
-
import { b7 as Ce } from "./index-
|
|
123
|
-
import { b3 as ce } from "./index-
|
|
124
|
-
import { b5 as Te } from "./index-
|
|
125
|
-
import { b6 as De } from "./index-
|
|
126
|
-
import { bd as pe } from "./index-
|
|
127
|
-
import { am as Se } from "./index-
|
|
128
|
-
import { bt as he } from "./index-
|
|
129
|
-
import { aJ as Fe } from "./index-
|
|
130
|
-
import { bu as ve } from "./index-
|
|
131
|
-
import { a3 as Be } from "./index-
|
|
132
|
-
import { o as fe } from "./index-
|
|
133
|
-
import { v as Ie } from "./index-
|
|
134
|
-
import { a6 as Ae } from "./index-
|
|
135
|
-
import { a5 as ye } from "./index-
|
|
136
|
-
import { aI as Ne } from "./index-
|
|
137
|
-
import { aG as xe } from "./index-
|
|
138
|
-
import { aK as ke } from "./index-
|
|
139
|
-
import { u as we } from "./index-
|
|
140
|
-
import { be as Ee } from "./index-
|
|
141
|
-
import { l as Oe } from "./index-
|
|
142
|
-
import { a7 as Le } from "./index-
|
|
143
|
-
import { ba as Me } from "./index-
|
|
144
|
-
import { bb as Ve } from "./index-
|
|
145
|
-
import { bc as Re } from "./index-
|
|
146
|
-
import { b9 as We } from "./index-
|
|
147
|
-
import { bv as je } from "./index-
|
|
148
|
-
import { b1 as Ge } from "./index-
|
|
149
|
-
import { b4 as ze } from "./index-
|
|
150
|
-
import { b0 as Ue } from "./index-
|
|
151
|
-
import { b2 as He } from "./index-
|
|
152
|
-
import { a$ as qe } from "./index-
|
|
153
|
-
import { m as Qe } from "./index-
|
|
154
|
-
import { ag as Je } from "./index-
|
|
1
|
+
import { $ as s } from "./index-LSzlUOyh.js";
|
|
2
|
+
import { B as o } from "./index-LSzlUOyh.js";
|
|
3
|
+
import { A as t } from "./index-LSzlUOyh.js";
|
|
4
|
+
import { C as r } from "./index-LSzlUOyh.js";
|
|
5
|
+
import { aW as l } from "./index-LSzlUOyh.js";
|
|
6
|
+
import { aY as i } from "./index-LSzlUOyh.js";
|
|
7
|
+
import { aV as n } from "./index-LSzlUOyh.js";
|
|
8
|
+
import { aX as g } from "./index-LSzlUOyh.js";
|
|
9
|
+
import { aZ as b } from "./index-LSzlUOyh.js";
|
|
10
|
+
import { aU as u } from "./index-LSzlUOyh.js";
|
|
11
|
+
import { aQ as P } from "./index-LSzlUOyh.js";
|
|
12
|
+
import { D as d } from "./index-LSzlUOyh.js";
|
|
13
|
+
import { af as m } from "./index-LSzlUOyh.js";
|
|
14
|
+
import { ae as C } from "./index-LSzlUOyh.js";
|
|
15
|
+
import { E as c } from "./index-LSzlUOyh.js";
|
|
16
|
+
import { bo as T } from "./index-LSzlUOyh.js";
|
|
17
|
+
import { bm as D } from "./index-LSzlUOyh.js";
|
|
18
|
+
import { F as p } from "./index-LSzlUOyh.js";
|
|
19
|
+
import { G as S } from "./index-LSzlUOyh.js";
|
|
20
|
+
import { bs as h } from "./index-LSzlUOyh.js";
|
|
21
|
+
import { ab as F } from "./index-LSzlUOyh.js";
|
|
22
|
+
import { H as v } from "./index-LSzlUOyh.js";
|
|
23
|
+
import { k as B } from "./index-LSzlUOyh.js";
|
|
24
|
+
import { I as f } from "./index-LSzlUOyh.js";
|
|
25
|
+
import { L as I } from "./index-LSzlUOyh.js";
|
|
26
|
+
import { a2 as A } from "./index-LSzlUOyh.js";
|
|
27
|
+
import { P as y } from "./index-LSzlUOyh.js";
|
|
28
|
+
import { r as N } from "./index-LSzlUOyh.js";
|
|
29
|
+
import { q as x } from "./index-LSzlUOyh.js";
|
|
30
|
+
import { s as k } from "./index-LSzlUOyh.js";
|
|
31
|
+
import { t as w } from "./index-LSzlUOyh.js";
|
|
32
|
+
import { w as E } from "./index-LSzlUOyh.js";
|
|
33
|
+
import { y as O } from "./index-LSzlUOyh.js";
|
|
34
|
+
import { z as L } from "./index-LSzlUOyh.js";
|
|
35
|
+
import { J as M } from "./index-LSzlUOyh.js";
|
|
36
|
+
import { M as V } from "./index-LSzlUOyh.js";
|
|
37
|
+
import { N as R } from "./index-LSzlUOyh.js";
|
|
38
|
+
import { Q as W } from "./index-LSzlUOyh.js";
|
|
39
|
+
import { O as j } from "./index-LSzlUOyh.js";
|
|
40
|
+
import { K as G } from "./index-LSzlUOyh.js";
|
|
41
|
+
import { U as z } from "./index-LSzlUOyh.js";
|
|
42
|
+
import { X as U } from "./index-LSzlUOyh.js";
|
|
43
|
+
import { V as H } from "./index-LSzlUOyh.js";
|
|
44
|
+
import { Y as q } from "./index-LSzlUOyh.js";
|
|
45
|
+
import { aP as Q } from "./index-LSzlUOyh.js";
|
|
46
|
+
import { Z as J } from "./index-LSzlUOyh.js";
|
|
47
|
+
import { _ as K } from "./index-LSzlUOyh.js";
|
|
48
|
+
import { a4 as X } from "./index-LSzlUOyh.js";
|
|
49
|
+
import { W as Y } from "./index-LSzlUOyh.js";
|
|
50
|
+
import { an as Z } from "./index-LSzlUOyh.js";
|
|
51
|
+
import { aq as _ } from "./index-LSzlUOyh.js";
|
|
52
|
+
import { ac as $ } from "./index-LSzlUOyh.js";
|
|
53
|
+
import { ad as aa } from "./index-LSzlUOyh.js";
|
|
54
|
+
import { ao as ea } from "./index-LSzlUOyh.js";
|
|
55
|
+
import { ai as sa } from "./index-LSzlUOyh.js";
|
|
56
|
+
import { ap as oa } from "./index-LSzlUOyh.js";
|
|
57
|
+
import { aj as ta } from "./index-LSzlUOyh.js";
|
|
58
|
+
import { ak as ra } from "./index-LSzlUOyh.js";
|
|
59
|
+
import { al as la } from "./index-LSzlUOyh.js";
|
|
60
|
+
import { ar as ia } from "./index-LSzlUOyh.js";
|
|
61
|
+
import { as as na } from "./index-LSzlUOyh.js";
|
|
62
|
+
import { at as ga } from "./index-LSzlUOyh.js";
|
|
63
|
+
import { au as ba } from "./index-LSzlUOyh.js";
|
|
64
|
+
import { av as ua } from "./index-LSzlUOyh.js";
|
|
65
|
+
import { aF as Pa } from "./index-LSzlUOyh.js";
|
|
66
|
+
import { aH as da } from "./index-LSzlUOyh.js";
|
|
67
|
+
import { ay as ma } from "./index-LSzlUOyh.js";
|
|
68
|
+
import { a9 as Ca } from "./index-LSzlUOyh.js";
|
|
69
|
+
import { aa as ca } from "./index-LSzlUOyh.js";
|
|
70
|
+
import { aw as Ta } from "./index-LSzlUOyh.js";
|
|
71
|
+
import { aL as Da } from "./index-LSzlUOyh.js";
|
|
72
|
+
import { aM as pa } from "./index-LSzlUOyh.js";
|
|
73
|
+
import { bg as Sa } from "./index-LSzlUOyh.js";
|
|
74
|
+
import { aN as ha } from "./index-LSzlUOyh.js";
|
|
75
|
+
import { aR as Fa } from "./index-LSzlUOyh.js";
|
|
76
|
+
import { aT as va } from "./index-LSzlUOyh.js";
|
|
77
|
+
import { bf as Ba } from "./index-LSzlUOyh.js";
|
|
78
|
+
import { ax as fa } from "./index-LSzlUOyh.js";
|
|
79
|
+
import { bh as Ia } from "./index-LSzlUOyh.js";
|
|
80
|
+
import { bj as Aa } from "./index-LSzlUOyh.js";
|
|
81
|
+
import { br as ya } from "./index-LSzlUOyh.js";
|
|
82
|
+
import { R as Na } from "./index-LSzlUOyh.js";
|
|
83
|
+
import { S as xa } from "./index-LSzlUOyh.js";
|
|
84
|
+
import { a8 as ka } from "./index-LSzlUOyh.js";
|
|
85
|
+
import { aO as wa } from "./index-LSzlUOyh.js";
|
|
86
|
+
import { a_ as Ea } from "./index-LSzlUOyh.js";
|
|
87
|
+
import { T as Oa } from "./index-LSzlUOyh.js";
|
|
88
|
+
import { bn as La } from "./index-LSzlUOyh.js";
|
|
89
|
+
import { bi as Ma } from "./index-LSzlUOyh.js";
|
|
90
|
+
import { bq as Va } from "./index-LSzlUOyh.js";
|
|
91
|
+
import { bp as Ra } from "./index-LSzlUOyh.js";
|
|
92
|
+
import { aC as Wa } from "./index-LSzlUOyh.js";
|
|
93
|
+
import { aD as ja } from "./index-LSzlUOyh.js";
|
|
94
|
+
import { aE as Ga } from "./index-LSzlUOyh.js";
|
|
95
|
+
import { bz as za } from "./index-LSzlUOyh.js";
|
|
96
|
+
import { by as Ua } from "./index-LSzlUOyh.js";
|
|
97
|
+
import { bx as Ha } from "./index-LSzlUOyh.js";
|
|
98
|
+
import { bw as qa } from "./index-LSzlUOyh.js";
|
|
99
|
+
import { x as Qa } from "./index-LSzlUOyh.js";
|
|
100
|
+
import { bB as Ja } from "./index-LSzlUOyh.js";
|
|
101
|
+
import { aA as Ka } from "./index-LSzlUOyh.js";
|
|
102
|
+
import { g as Xa } from "./index-LSzlUOyh.js";
|
|
103
|
+
import { bk as Ya } from "./index-LSzlUOyh.js";
|
|
104
|
+
import { ah as Za } from "./index-LSzlUOyh.js";
|
|
105
|
+
import { bA as _a } from "./index-LSzlUOyh.js";
|
|
106
|
+
import { a as $a } from "./index-LSzlUOyh.js";
|
|
107
|
+
import { e as ae } from "./index-LSzlUOyh.js";
|
|
108
|
+
import { c as ee } from "./index-LSzlUOyh.js";
|
|
109
|
+
import { f as se } from "./index-LSzlUOyh.js";
|
|
110
|
+
import { p as oe } from "./index-LSzlUOyh.js";
|
|
111
|
+
import { i as te } from "./index-LSzlUOyh.js";
|
|
112
|
+
import { h as re } from "./index-LSzlUOyh.js";
|
|
113
|
+
import { b as le } from "./index-LSzlUOyh.js";
|
|
114
|
+
import { az as ie } from "./index-LSzlUOyh.js";
|
|
115
|
+
import { aB as ne } from "./index-LSzlUOyh.js";
|
|
116
|
+
import { bl as ge } from "./index-LSzlUOyh.js";
|
|
117
|
+
import { n as be } from "./index-LSzlUOyh.js";
|
|
118
|
+
import { a0 as ue } from "./index-LSzlUOyh.js";
|
|
119
|
+
import { a1 as Pe } from "./index-LSzlUOyh.js";
|
|
120
|
+
import { aS as de } from "./index-LSzlUOyh.js";
|
|
121
|
+
import { b8 as me } from "./index-LSzlUOyh.js";
|
|
122
|
+
import { b7 as Ce } from "./index-LSzlUOyh.js";
|
|
123
|
+
import { b3 as ce } from "./index-LSzlUOyh.js";
|
|
124
|
+
import { b5 as Te } from "./index-LSzlUOyh.js";
|
|
125
|
+
import { b6 as De } from "./index-LSzlUOyh.js";
|
|
126
|
+
import { bd as pe } from "./index-LSzlUOyh.js";
|
|
127
|
+
import { am as Se } from "./index-LSzlUOyh.js";
|
|
128
|
+
import { bt as he } from "./index-LSzlUOyh.js";
|
|
129
|
+
import { aJ as Fe } from "./index-LSzlUOyh.js";
|
|
130
|
+
import { bu as ve } from "./index-LSzlUOyh.js";
|
|
131
|
+
import { a3 as Be } from "./index-LSzlUOyh.js";
|
|
132
|
+
import { o as fe } from "./index-LSzlUOyh.js";
|
|
133
|
+
import { v as Ie } from "./index-LSzlUOyh.js";
|
|
134
|
+
import { a6 as Ae } from "./index-LSzlUOyh.js";
|
|
135
|
+
import { a5 as ye } from "./index-LSzlUOyh.js";
|
|
136
|
+
import { aI as Ne } from "./index-LSzlUOyh.js";
|
|
137
|
+
import { aG as xe } from "./index-LSzlUOyh.js";
|
|
138
|
+
import { aK as ke } from "./index-LSzlUOyh.js";
|
|
139
|
+
import { u as we } from "./index-LSzlUOyh.js";
|
|
140
|
+
import { be as Ee } from "./index-LSzlUOyh.js";
|
|
141
|
+
import { l as Oe } from "./index-LSzlUOyh.js";
|
|
142
|
+
import { a7 as Le } from "./index-LSzlUOyh.js";
|
|
143
|
+
import { ba as Me } from "./index-LSzlUOyh.js";
|
|
144
|
+
import { bb as Ve } from "./index-LSzlUOyh.js";
|
|
145
|
+
import { bc as Re } from "./index-LSzlUOyh.js";
|
|
146
|
+
import { b9 as We } from "./index-LSzlUOyh.js";
|
|
147
|
+
import { bv as je } from "./index-LSzlUOyh.js";
|
|
148
|
+
import { b1 as Ge } from "./index-LSzlUOyh.js";
|
|
149
|
+
import { b4 as ze } from "./index-LSzlUOyh.js";
|
|
150
|
+
import { b0 as Ue } from "./index-LSzlUOyh.js";
|
|
151
|
+
import { b2 as He } from "./index-LSzlUOyh.js";
|
|
152
|
+
import { a$ as qe } from "./index-LSzlUOyh.js";
|
|
153
|
+
import { m as Qe } from "./index-LSzlUOyh.js";
|
|
154
|
+
import { ag as Je } from "./index-LSzlUOyh.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 };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|