@ansible/ansible-ui-framework 2.4.2668 → 2.4.2669

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-BIhnwmg2.js";
1
+ import { u as He, j as M } from "./index-sqJe9OpF.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-BIhnwmg2.js";
1
+ import { u as a, j as e, d as i } from "./index-sqJe9OpF.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";
@@ -0,0 +1 @@
1
+ export {};
@@ -43135,6 +43135,7 @@ function ife(e) {
43135
43135
  ouiaId: "menu-select",
43136
43136
  shouldFocusToggleOnSelect: !0,
43137
43137
  toggle: ($) => D($, V == null ? void 0 : V.label),
43138
+ isScrollable: !0,
43138
43139
  children: /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
43139
43140
  /* @__PURE__ */ g.jsx(ix, { children: d.map(($) => {
43140
43141
  const F = Ur($);
@@ -43794,13 +43795,13 @@ function dfe() {
43794
43795
  }
43795
43796
  );
43796
43797
  }
43797
- const Uue = uT(() => import("./ChatbotPortal-Ba-xpZZC.js")), Hue = () => /* @__PURE__ */ g.jsx(dT, { fallback: /* @__PURE__ */ g.jsx("div", { children: "Loading..." }), children: /* @__PURE__ */ g.jsx(Uue, {}) });
43798
+ const Uue = uT(() => import("./ChatbotPortal-Eu5wR85C.js")), Hue = () => /* @__PURE__ */ g.jsx(dT, { fallback: /* @__PURE__ */ g.jsx("div", { children: "Loading..." }), children: /* @__PURE__ */ g.jsx(Uue, {}) });
43798
43799
  var _u = /* @__PURE__ */ ((e) => (e.Open = "open", e.Closed = "closed", e.Disabled = "disabled", e))(_u || {});
43799
43800
  const Gue = pn({
43800
43801
  chatbotState: "disabled",
43801
43802
  setChatbotState: () => {
43802
43803
  }
43803
- }), Yue = () => Pt(Gue), Kue = uT(() => import("./ChatbotSideBarHeader-CwtMDx88.js")), Zue = () => {
43804
+ }), Yue = () => Pt(Gue), Kue = uT(() => import("./ChatbotSideBarHeader-BY09_8DV.js")), Zue = () => {
43804
43805
  const { t: e } = Me();
43805
43806
  return /* @__PURE__ */ g.jsx(dT, { fallback: /* @__PURE__ */ g.jsx("span", { children: e("Loading...") }), children: /* @__PURE__ */ g.jsx(Kue, {}) });
43806
43807
  }, Xue = De($T)`
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Y as s, B as o, x as t, C as r, aT as l, aV as i, aS as n, aU as g, aW as u, aR as b, aN as P, y as d, ab as m, aa as C, D as c, bl as T, bj as D, z as p, E as S, bp as h, a7 as F, H as v, i as B, A as f, L as A, $ as I, P as N, o as x, n as y, q as k, r as w, t as E, au as O, w as L, F as M, I as V, J as R, M as W, K as j, G, N as U, U as z, O as H, V as q, aM as Q, W as J, X as K, a0 as X, Q as Y, aj as Z, am as _, a8 as $, a9 as aa, ak as ea, ae as sa, al as oa, af as ta, ag as ra, ah as la, an as ia, ao as na, ap as ga, aq as ua, ar as ba, aC as Pa, aE as da, av as ma, a5 as Ca, a6 as ca, as as Ta, aI as Da, aJ as pa, bd as Sa, aK as ha, aO as Fa, aQ as va, bc as Ba, at as fa, be as Aa, bg as Ia, bo as Na, R as xa, S as ya, a4 as ka, aL as wa, aX as Ea, T as Oa, bk as La, bf as Ma, bn as Va, bm as Ra, az as Wa, aA as ja, aB as Ga, bw as Ua, bv as za, bu as Ha, bt as qa, v as Qa, by as Ja, ax as Ka, g as Xa, bh as Ya, ad as Za, bx as _a, a as $a, e as ae, c as ee, f as se, p as oe, h as te, b as re, aw as le, ay as ie, bi as ne, l as ge, Z as ue, _ as be, aP as Pe, b5 as de, b4 as me, b0 as Ce, b2 as ce, b3 as Te, ba as De, ai as pe, bq as Se, aG as he, br as Fe, m as ve, s as Be, a2 as fe, a1 as Ae, aF as Ie, aD as Ne, aH as xe, u as ye, bb as ke, a3 as we, b7 as Ee, b8 as Oe, b9 as Le, b6 as Me, bs as Ve, a_ as Re, b1 as We, aZ as je, a$ as Ge, aY as Ue, k as ze, ac as He } from "./index-BIhnwmg2.js";
1
+ import { Y as s, B as o, x as t, C as r, aT as l, aV as i, aS as n, aU as g, aW as u, aR as b, aN as P, y as d, ab as m, aa as C, D as c, bl as T, bj as D, z as p, E as S, bp as h, a7 as F, H as v, i as B, A as f, L as A, $ as I, P as N, o as x, n as y, q as k, r as w, t as E, au as O, w as L, F as M, I as V, J as R, M as W, K as j, G, N as U, U as z, O as H, V as q, aM as Q, W as J, X as K, a0 as X, Q as Y, aj as Z, am as _, a8 as $, a9 as aa, ak as ea, ae as sa, al as oa, af as ta, ag as ra, ah as la, an as ia, ao as na, ap as ga, aq as ua, ar as ba, aC as Pa, aE as da, av as ma, a5 as Ca, a6 as ca, as as Ta, aI as Da, aJ as pa, bd as Sa, aK as ha, aO as Fa, aQ as va, bc as Ba, at as fa, be as Aa, bg as Ia, bo as Na, R as xa, S as ya, a4 as ka, aL as wa, aX as Ea, T as Oa, bk as La, bf as Ma, bn as Va, bm as Ra, az as Wa, aA as ja, aB as Ga, bw as Ua, bv as za, bu as Ha, bt as qa, v as Qa, by as Ja, ax as Ka, g as Xa, bh as Ya, ad as Za, bx as _a, a as $a, e as ae, c as ee, f as se, p as oe, h as te, b as re, aw as le, ay as ie, bi as ne, l as ge, Z as ue, _ as be, aP as Pe, b5 as de, b4 as me, b0 as Ce, b2 as ce, b3 as Te, ba as De, ai as pe, bq as Se, aG as he, br as Fe, m as ve, s as Be, a2 as fe, a1 as Ae, aF as Ie, aD as Ne, aH as xe, u as ye, bb as ke, a3 as we, b7 as Ee, b8 as Oe, b9 as Le, b6 as Me, bs as Ve, a_ as Re, b1 as We, aZ as je, a$ as Ge, aY as Ue, k as ze, ac as He } from "./index-sqJe9OpF.js";
2
2
  export {
3
3
  s as BulkActionDialog,
4
4
  o as BulkSelector,
package/index.umd.cjs CHANGED
@@ -515,7 +515,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
515
515
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dge(e,t){if(e){if(typeof e=="string")return EU(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 EU(e,t)}}function EU(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 wat(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 Cat(e){if(Array.isArray(e))return e}var kat=typeof SU=="function"?SU:SU.default,Tat="file-invalid-type",Rat="file-too-large",Oat="file-too-small",Iat="too-many-files",Nat=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=t.split(","),r=n.length>1?"one of ".concat(n.join(", ")):n[0];return{code:Tat,message:"File type must be ".concat(r)}},uge=function(t){return{code:Rat,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},pge=function(t){return{code:Oat,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},Aat={code:Iat,message:"Too many files"};function fge(e,t){var n=e.type==="application/x-moz-file"||kat(e,t);return[n,n?null:Nat(t)]}function mge(e,t,n){if($v(e.size))if($v(t)&&$v(n)){if(e.size>n)return[!1,uge(n)];if(e.size<t)return[!1,pge(t)]}else{if($v(t)&&e.size<t)return[!1,pge(t)];if($v(n)&&e.size>n)return[!1,uge(n)]}return[!0,null]}function $v(e){return e!=null}function Pat(e){var t=e.files,n=e.accept,r=e.minSize,a=e.maxSize,o=e.multiple,i=e.maxFiles,l=e.validator;return!o&&t.length>1||o&&i>=1&&t.length>i?!1:t.every(function(s){var c=fge(s,n),p=zE(c,1),f=p[0],g=mge(s,r,a),v=zE(g,1),b=v[0],y=l?l(s):null;return f&&b&&!y})}function nI(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function rI(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function gge(e){e.preventDefault()}function Dat(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Mat(e){return e.indexOf("Edge/")!==-1}function Lat(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Dat(e)||Mat(e)}function Ru(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var a=arguments.length,o=new Array(a>1?a-1:0),i=1;i<a;i++)o[i-1]=arguments[i];return t.some(function(l){return!nI(r)&&l&&l.apply(void 0,[r].concat(o)),nI(r)})}}function Bat(){return"showOpenFilePicker"in window}function Fat(e){if($v(e)){var t=Object.entries(e).filter(function(n){var r=zE(n,2),a=r[0],o=r[1],i=!0;return vge(a)||(console.warn('Skipped "'.concat(a,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),i=!1),(!Array.isArray(o)||!o.every(hge))&&(console.warn('Skipped "'.concat(a,'" because an invalid file extension was provided.')),i=!1),i}).reduce(function(n,r){var a=zE(r,2),o=a[0],i=a[1];return sge(sge({},n),{},cge({},o,i))},{});return[{description:"Files",accept:t}]}return e}function jat(e){if($v(e))return Object.entries(e).reduce(function(t,n){var r=zE(n,2),a=r[0],o=r[1];return[].concat(ige(t),[a],ige(o))},[]).filter(function(t){return vge(t)||hge(t)}).join(",")}function Uat(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function zat(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function vge(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||e==="application/*"||/\w+\/[-+.\w]+/g.test(e)}function hge(e){return/^.*\.[\w]+$/.test(e)}var Gat=["children"],qat=["open"],Hat=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Wat=["refKey","onChange","onClick"];function Vat(e){return Qat(e)||Kat(e)||bge(e)||Yat()}function Yat(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
516
516
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kat(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Qat(e){if(Array.isArray(e))return CU(e)}function wU(e,t){return Jat(e)||Zat(e,t)||bge(e,t)||Xat()}function Xat(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
517
517
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bge(e,t){if(e){if(typeof e=="string")return CU(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 CU(e,t)}}function CU(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 Zat(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 Jat(e){if(Array.isArray(e))return e}function _ge(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 Sa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_ge(Object(n),!0).forEach(function(r){kU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_ge(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aI(e,t){if(e==null)return{};var n=$at(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 $at(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 TU=w.forwardRef(function(e,t){var n=e.children,r=aI(e,Gat),a=xge(r),o=a.open,i=aI(a,qat);return w.useImperativeHandle(t,function(){return{open:o}},[o]),w.createElement(w.Fragment,null,n(Sa(Sa({},i),{},{open:o})))});TU.displayName="Dropzone";var yge={disabled:!1,getFilesFromEvent:cat,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};TU.defaultProps=yge,TU.propTypes={children:qr.func,accept:qr.objectOf(qr.arrayOf(qr.string)),multiple:qr.bool,preventDropOnDocument:qr.bool,noClick:qr.bool,noKeyboard:qr.bool,noDrag:qr.bool,noDragEventsBubbling:qr.bool,minSize:qr.number,maxSize:qr.number,maxFiles:qr.number,disabled:qr.bool,getFilesFromEvent:qr.func,onFileDialogCancel:qr.func,onFileDialogOpen:qr.func,useFsAccessApi:qr.bool,autoFocus:qr.bool,onDragEnter:qr.func,onDragLeave:qr.func,onDragOver:qr.func,onDrop:qr.func,onDropAccepted:qr.func,onDropRejected:qr.func,onError:qr.func,validator:qr.func};var RU={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function xge(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Sa(Sa({},yge),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,O=t.preventDropOnDocument,N=t.noClick,I=t.noKeyboard,P=t.noDrag,L=t.noDragEventsBubbling,F=t.onError,W=t.validator,j=w.useMemo(function(){return jat(n)},[n]),B=w.useMemo(function(){return Fat(n)},[n]),U=w.useMemo(function(){return typeof x=="function"?x:Sge},[x]),H=w.useMemo(function(){return typeof y=="function"?y:Sge},[y]),Y=w.useRef(null),K=w.useRef(null),re=w.useReducer(eot,RU),oe=wU(re,2),te=oe[0],ee=oe[1],G=te.isFocused,ae=te.isFileDialogActive,ce=w.useRef(typeof window<"u"&&window.isSecureContext&&E&&Bat()),$=function(){!ce.current&&ae&&setTimeout(function(){if(K.current){var Se=K.current.files;Se.length||(ee({type:"closeDialog"}),H())}},300)};w.useEffect(function(){return window.addEventListener("focus",$,!1),function(){window.removeEventListener("focus",$,!1)}},[K,ae,H,ce]);var de=w.useRef([]),be=function(Se){Y.current&&Y.current.contains(Se.target)||(Se.preventDefault(),de.current=[])};w.useEffect(function(){return O&&(document.addEventListener("dragover",gge,!1),document.addEventListener("drop",be,!1)),function(){O&&(document.removeEventListener("dragover",gge),document.removeEventListener("drop",be))}},[Y,O]),w.useEffect(function(){return!r&&C&&Y.current&&Y.current.focus(),function(){}},[Y,C,r]);var pe=w.useCallback(function(ve){F?F(ve):console.error(ve)},[F]),Te=w.useCallback(function(ve){ve.preventDefault(),ve.persist(),Ee(ve),de.current=[].concat(Vat(de.current),[ve.target]),rI(ve)&&Promise.resolve(a(ve)).then(function(Se){if(!(nI(ve)&&!L)){var _e=Se.length,Ae=_e>0&&Pat({files:Se,accept:j,minSize:i,maxSize:o,multiple:l,maxFiles:s,validator:W}),ze=_e>0&&!Ae;ee({isDragAccept:Ae,isDragReject:ze,isDragActive:!0,type:"setDraggedFiles"}),c&&c(ve)}}).catch(function(Se){return pe(Se)})},[a,c,pe,L,j,i,o,l,s,W]),Ce=w.useCallback(function(ve){ve.preventDefault(),ve.persist(),Ee(ve);var Se=rI(ve);if(Se&&ve.dataTransfer)try{ve.dataTransfer.dropEffect="copy"}catch{}return Se&&f&&f(ve),!1},[f,L]),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}),rI(ve)&&p&&p(ve))},[Y,p,L]),xe=w.useCallback(function(ve,Se){var _e=[],Ae=[];ve.forEach(function(ze){var De=fge(ze,j),Ye=wU(De,2),Xe=Ye[0],yt=Ye[1],ut=mge(ze,i,o),Yt=wU(ut,2),Rt=Yt[0],ye=Yt[1],Le=W?W(ze):null;if(Xe&&Rt&&!Le)_e.push(ze);else{var Ze=[yt,ye];Le&&(Ze=Ze.concat(Le)),Ae.push({file:ze,errors:Ze.filter(function(At){return At})})}}),(!l&&_e.length>1||l&&s>=1&&_e.length>s)&&(_e.forEach(function(ze){Ae.push({file:ze,errors:[Aat]})}),_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,j,i,o,s,g,v,b,W]),Pe=w.useCallback(function(ve){ve.preventDefault(),ve.persist(),Ee(ve),de.current=[],rI(ve)&&Promise.resolve(a(ve)).then(function(Se){nI(ve)&&!L||xe(Se,ve)}).catch(function(Se){return pe(Se)}),ee({type:"reset"})},[a,xe,pe,L]),ie=w.useCallback(function(){if(ce.current){ee({type:"openDialog"}),U();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){Uat(Se)?(H(Se),ee({type:"closeDialog"})):zat(Se)?(ce.current=!1,K.current?(K.current.value=null,K.current.click()):pe(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."))):pe(Se)});return}K.current&&(ee({type:"openDialog"}),U(),K.current.value=null,K.current.click())},[ee,U,H,E,xe,pe,B,l]),lt=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]),Me=w.useCallback(function(){ee({type:"focus"})},[]),ot=w.useCallback(function(){ee({type:"blur"})},[]),_t=w.useCallback(function(){N||(Lat()?setTimeout(ie,0):ie())},[N,ie]),st=function(Se){return r?null:Se},ue=function(Se){return I?null:st(Se)},fe=function(Se){return P?null:st(Se)},Ee=function(Se){L&&Se.stopPropagation()},He=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,ze=ve.onKeyDown,De=ve.onFocus,Ye=ve.onBlur,Xe=ve.onClick,yt=ve.onDragEnter,ut=ve.onDragOver,Yt=ve.onDragLeave,Rt=ve.onDrop,ye=aI(ve,Hat);return Sa(Sa(kU({onKeyDown:ue(Ru(ze,lt)),onFocus:ue(Ru(De,Me)),onBlur:ue(Ru(Ye,ot)),onClick:st(Ru(Xe,_t)),onDragEnter:fe(Ru(yt,Te)),onDragOver:fe(Ru(ut,Ce)),onDragLeave:fe(Ru(Yt,he)),onDrop:fe(Ru(Rt,Pe)),role:typeof Ae=="string"&&Ae!==""?Ae:"presentation"},_e,Y),!r&&!I?{tabIndex:0}:{}),ye)}},[Y,lt,Me,ot,_t,Te,Ce,he,Pe,I,P,r]),Qe=w.useCallback(function(ve){ve.stopPropagation()},[]),Ge=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,ze=ve.onClick,De=aI(ve,Wat),Ye=kU({accept:j,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(Ru(Ae,Pe)),onClick:st(Ru(ze,Qe)),tabIndex:-1},_e,K);return Sa(Sa({},Ye),De)}},[K,n,l,Pe,r]);return Sa(Sa({},te),{},{isFocused:G&&!r,getRootProps:He,getInputProps:Ge,rootRef:Y,inputRef:K,open:st(ie)})}function eot(e,t){switch(t.type){case"focus":return Sa(Sa({},e),{},{isFocused:!0});case"blur":return Sa(Sa({},e),{},{isFocused:!1});case"openDialog":return Sa(Sa({},RU),{},{isFileDialogActive:!0});case"closeDialog":return Sa(Sa({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Sa(Sa({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Sa(Sa({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return Sa({},RU);default:return e}}function Sge(){}function tot(e){const{t}=Hn(),n=cT(),{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}=xge({onDrop:a,noClick:!0,accept:e.accept??{"application/json":[".json"],"text/yaml":[".yaml",".yml"]}});return R.jsxs("div",{id:"code-editor-dropzone",...o({disabled:!0}),style:{width:"100%",height:"100%"},children:[R.jsx("input",{id:"code-editor-dropzone-input",...i(),ref:e.inputRef}),e.children]})}function not(e){return R.jsx(Q.Icon,{size:e.size??"md",children:R.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?DE("Collapse"):DE("Expand")})})}function rot(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 GE(e){const{children:t,helperText:n,helperTextInvalid:r,isRequired:a,labelHelp:o,labelHelpTitle:i,label:l,fullWidth:s}=e;return R.jsxs(Q.FormGroup,{id:`${e.fieldId}-form-group`,fieldId:e.fieldId,label:R.jsxs(R.Fragment,{children:[e.icon,l]}),labelIcon:o?R.jsx(lT,{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)&&R.jsx(Q.FormHelperText,{children:R.jsx(Q.HelperText,{children:R.jsx(Q.HelperTextItem,{variant:r?"error":void 0,children:r||n})})})]})}function aot(e){const{t}=Hn(),{name:n,format:r,disableCopy:a,disableUpload:o,disableDownload:i,disableExpand:l,validate:s,isArray:c}=e,p=kp(e),{formState:{isSubmitting:f,isValidating:g},setError:v,getValues:b,clearErrors:y,control:x}=Su(),C=Rp().dataEditorFormat??"yaml",[O,N]=w.useState(C),[I,P]=w.useState(!e.defaultCollapsed),[L,F]=w.useState(()=>{const $=b(n);return typeof $=="string"?$:Ou($,C)}),W=cT(),{writeToClipboard:j}=GJ(),B=w.useCallback(()=>j(Ou(ef(b(n),c),O)),[b,c,O,n,j]),U=w.useCallback($=>{F(Ou(ef($,c),O))},[c,O]),H=w.useRef(null),Y=w.useCallback(()=>{var $;return($=H.current)==null?void 0:$.click()},[]),K=w.useCallback(()=>{const $=n||"data",de=O==="json"?"json":"yaml";rot($,Ou(ef(b(n),c),O),de),W.addAlert({variant:"success",title:t("File downloaded"),timeout:!0})},[W,b,c,O,n,t]);w.useLayoutEffect(()=>{const $=Ou(ef(b(n),c),O);F($)},[b,c,O,n]);const[re,oe]=w.useState(!1),te=$pe({name:n});w.useEffect(()=>{re||F(Ou(ef(te,c),O))},[re,te,c,O]);const{setValue:ee,formState:{defaultValues:G}}=Su(),ae=ME(e.label,e.isRequired),ce=my(G,e.name);return R.jsx(dy,{name:n,control:x,shouldUnregister:!0,render:({field:{value:$,name:de,onChange:be},fieldState:{error:pe}})=>{var Ce;function Te(he){try{const xe=ef(he,c);switch(r){case"object":be(xe);return;default:be(Ou(xe,r));break}y(de)}catch(xe){xe instanceof Error&&v(de,{message:xe.message})}}return R.jsxs(GE,{fieldId:p,icon:!l&&R.jsx(not,{isExpanded:I,setExpanded:P}),label:e.label,labelHelpTitle:e.labelHelpTitle??e.label,labelHelp:e.labelHelp,additionalControls:R.jsx(wge,{handleCopy:!a&&B,handleUpload:!o&&Y,handleDownload:!i&&K,language:O,setLanguage:N,children:e.additionalControls}),helperText:e.helperText,helperTextInvalid:!(s&&g)&&((Ce=pe==null?void 0:pe.message)==null?void 0:Ce.split(`
518
- `)),isRequired:e.isRequired,children:[I&&R.jsxs("div",{style:{display:"flex"},children:[R.jsx(tot,{onDrop:U,isDisabled:f||e.isReadOnly,inputRef:H,children:R.jsx(Zrt,{"data-cy":p,id:p,name:de,language:O,value:L,onChange:Te,setError:he=>{he?v(de,{message:he}):y(de)},isReadOnly:e.isReadOnly||f,className:e.isReadOnly?"pf-v5-c-form-control pf-m-disabled":"pf-v5-c-form-control",onFocus:()=>oe(!0),onBlur:()=>oe(!1)})}),R.jsx(pu,{actions:[{label:t("Undo changes"),type:Pr.Button,selection:vr.None,onClick:()=>{ee(e.name,ce),F(""),setTimeout(()=>{F(Ou(ef(ce,c),O))},0)},isHidden:()=>!e.enableUndo||Lfe($,ce)},{label:t("Reset to default"),type:Pr.Button,selection:vr.None,onClick:()=>{ee(e.name,e.defaultValue),F(""),setTimeout(()=>{F(Ou(ef(e.defaultValue,c),O))},0)},isHidden:()=>!e.enableReset||Lfe($,e.defaultValue)}],position:"right"})]}),!I&&R.jsx("div",{className:"pf-v5-c-form-control"})]})},rules:{required:ae,validate:e.validate}})}function Ege(e){const{t}=Hn(),{handleCopy:n,handleDownload:r,handleUpload:a}=e;return!n&&!r&&!a?R.jsx(R.Fragment,{}):R.jsxs(Q.Flex,{spaceItems:{default:"spaceItemsMd"},children:[n&&R.jsx(Q.FlexItem,{children:R.jsx(iT,{id:"copy-button","data-cy":"copy-button","aria-label":t("Copy to clipboard"),type:"button",onClick:n,children:R.jsx(Q.Icon,{size:"md",children:R.jsx(Ht.CopyIcon,{})})})}),a&&R.jsx(Q.FlexItem,{children:R.jsx(iT,{id:"upload-button","data-cy":"upload-button","aria-label":t("Upload from file"),type:"button",onClick:a,children:R.jsx(Q.Icon,{size:"md",children:R.jsx(Ht.UploadIcon,{})})})}),r&&R.jsx(Q.FlexItem,{children:R.jsx(iT,{id:"download-button","data-cy":"download-button","aria-label":t("Download file"),type:"button",onClick:r,children:R.jsx(Q.Icon,{size:"md",children:R.jsx(Ht.DownloadIcon,{})})})})]})}function wge(e){const{t}=Hn(),{handleCopy:n,handleDownload:r,handleUpload:a,language:o,setLanguage:i}=e;return R.jsxs(Q.Flex,{spaceItems:{default:"spaceItemsLg"},children:[R.jsx(Q.FlexItem,{children:e.children}),R.jsx(Ege,{handleCopy:n,handleDownload:r,handleUpload:a}),R.jsx(Q.FlexItem,{align:{default:"alignRight"},children:R.jsxs(Q.ToggleGroup,{isCompact:!0,children:[R.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")}),R.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 ef(e,t){const n=t?[]:{};if(e==null)return n;const a=()=>{try{e=zme.load(e)}catch(o){return o instanceof Error||o instanceof fU?new Error(o.message):{}}};if(typeof e=="string")try{e=JSON.parse(e)}catch{a()}return t?Array.isArray(e)?e:[]:Array.isArray(e)?{}:e}function Ou(e,t){if(e==null)return"";if(e instanceof Error)return e.message;switch(t){case"json":return JSON.stringify(e,null,2);case"yaml":try{const n=zme.dump(e).trimEnd();switch(n){case"null":case"{}":case"[]":return"";default:return n}}catch(n){return n instanceof Error||n instanceof fU?n.message:""}default:return""}}function oot(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=kp(e),{t:y}=Hn(),{control:x,setValue:E,getValues:C,formState:{isSubmitting:O,isValidating:N,defaultValues:I}}=Su(),[P,L]=w.useState(!1),F=w.useCallback(()=>L(!P),[P]),[W]=ya(),j=ME(e.label,e.isRequired),B=my(I,e.name);w.useEffect(()=>{C(e.name)||f.length===1&&i&&E(e.name,f[0].value)},[C,i,f,e.name,E]);const U=(H,Y)=>R.jsx(Q.MenuToggle,{"data-cy":`${b}-form-group`,id:`${b}-form-group-toggle`,isDisabled:a||o||O,ref:H,onClick:F,isExpanded:P,isFullWidth:!0,children:Y??g});return R.jsx(dy,{name:p,control:x,defaultValue:e.defaultValue,shouldUnregister:!0,render:({field:{onChange:H,value:Y},fieldState:{error:K}})=>{const re=(ee,G)=>{const ae=f.find(ce=>ce.value===G);ae&&(H(ae.value),e.onChange&&e.onChange(ae.value)),L(!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 R.jsx(GE,{fieldId:b,label:l,labelHelpTitle:c??l,labelHelp:s,additionalControls:t,helperText:r,helperTextInvalid:oe,isRequired:i,children:R.jsxs("div",{style:{display:"flex"},children:[R.jsx(Q.Select,{"aria-describedby":`${b}-form-group-select`,"data-cy":b,id:b,isOpen:P,itemID:b,onOpenChange:ee=>L(ee),onSelect:re,ouiaId:"menu-select",shouldFocusToggleOnSelect:!0,toggle:ee=>U(ee,te==null?void 0:te.label),children:R.jsxs(R.Fragment,{children:[R.jsx(Q.SelectList,{children:f.map(ee=>{const G=uu(ee);return R.jsx(Q.SelectOption,{id:G,value:ee.value,label:ee.label,description:ee.description,"data-cy":G,children:ee.label},ee.label)})}),n&&R.jsx(Q.MenuFooter,{children:n})]})}),R.jsx(pu,{actions:[{label:y("Undo changes"),type:Pr.Button,selection:vr.None,onClick:()=>{E(e.name,B)},isHidden:()=>!e.enableUndo||Y===B},{label:y("Reset to default"),type:Pr.Button,selection:vr.None,onClick:()=>{E(e.name,e.defaultValue)},isHidden:()=>!e.enableReset||Y===e.defaultValue}],variant:Q.ButtonVariant.control,position:"right"})]})})},rules:{required:j,validate:v}})}function iot(e){const{name:t,helperText:n,validate:r,additionalControls:a,label:o,labelHelp:i,labelHelpTitle:l,labelOn:s,labelOff:c}=e,{control:p,formState:{isSubmitting:f,isValidating:g}}=Su(),v=kp(e);return R.jsx(dy,{name:t,control:p,shouldUnregister:!0,render:({field:{onChange:b,value:y},fieldState:{error:x}})=>{const E=r&&g||x==null?void 0:x.message;return R.jsx(GE,{fieldId:v,"data-cy":v+"-form-group",label:o,labelHelpTitle:l??o,labelHelp:i,helperText:n,helperTextInvalid:E,additionalControls:a,children:R.jsx(Q.Switch,{"data-cy":v+"-toggle","aria-label":o,isChecked:y,onChange:C=>b(C),isDisabled:f,label:s,labelOff:c})})}})}function lot(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:O,selectOpen:N,selectValue:I,autoFocus:P,autoComplete:L,disableAutoResize:F}=e,W=kp(e),{control:j,setValue:B,formState:{isSubmitting:U,isValidating:H}}=Su(),[Y,K]=w.useState(!1),[re]=ya(),oe=ME(e.label,e.isRequired);return R.jsx(dy,{name:n,control:j,shouldUnregister:!0,render:({field:{onChange:te,value:ee,name:G},fieldState:{error:ae}})=>{const ce=ae!=null&&ae.message?v&&H?re.validating:ae==null?void 0:ae.message:void 0;function $(de){te(de.trimStart())}return R.jsx(GE,{fieldId:W,label:r,labelHelpTitle:a??r,labelHelp:o,additionalControls:i,helperText:c,helperTextInvalid:ce,isRequired:g,fullWidth:!0,children:R.jsxs(Q.InputGroup,{children:[R.jsx(Q.InputGroupItem,{isFill:!0,children:R.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:L||"off","data-cy":W,autoResize:F===void 0?!0:!F,rows:1,resizeOrientation:"vertical"})}),t==="password"&&R.jsx(Q.Button,{variant:"control",onClick:()=>K(!Y),isDisabled:p||f,children:Y?R.jsx(Ht.EyeIcon,{}):R.jsx(Ht.EyeSlashIcon,{})}),O&&R.jsx(Q.Button,{ouiaId:`lookup-${G}-button`,variant:"control",onClick:()=>N==null?void 0:N(de=>{if(I){const be=I(de);B(G,be,{shouldValidate:!0})}},O),"aria-label":"Options menu",isDisabled:p||U,children:R.jsx(Ht.SearchIcon,{})}),s]})})},rules:{required:oe,validate:v,minLength:typeof r=="string"&&typeof b=="number"?{value:b,message:`${ku(r.toLocaleLowerCase())} must be at least ${b} characters.`}:b,maxLength:typeof r=="string"&&typeof y=="number"?{value:y,message:`${ku(r.toLocaleLowerCase())} cannot be greater than ${y} characters.`}:y,min:typeof r=="string"&&(typeof x=="number"||typeof x=="string")?{value:x,message:`${ku(r.toLocaleLowerCase())} must be less than ${x}.`}:b,max:typeof r=="string"&&(typeof E=="number"||typeof E=="string")?{value:E,message:`${ku(r.toLocaleLowerCase())} cannot be greater than ${E}.`}:b,pattern:C}})}function sot(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:O,selectOpen:N,selectValue:I,autoFocus:P,autoComplete:L,fullWidth:F}=e,W=kp(e),{t:j}=Hn(),{control:B,setValue:U,formState:{isSubmitting:H,isValidating:Y,defaultValues:K}}=Su(),[re,oe]=w.useState(!1),[te]=ya(),ee=ME(e.label,e.isRequired),G=my(K,e.name);return R.jsx(dy,{name:n,control:B,shouldUnregister:e.shouldUnregister!==!1,defaultValue:e.defaultValue,render:({field:{onChange:ae,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 pe=ce;switch(t){case"datetime-local":if(ce){const Ce=new Date(ce);pe=new Date(Ce.getTime()-Ce.getTimezoneOffset()*6e4).toISOString().slice(0,16)}break}function Te(Ce){switch(e.type){case"datetime-local":{ae(new Date(Ce).toISOString());break}case"number":{let he=Number(Ce);if(Ce===""||isNaN(he)){U($,null),ae(null);return}E!==void 0&&he>Number(E)&&(he=Number(E)),x!==void 0&&he<Number(x)&&(he=Number(x)),U($,he),ae(he);break}default:ae(Ce.trimStart())}}return R.jsx(GE,{fieldId:W,label:r,labelHelpTitle:a??r,labelHelp:o,additionalControls:i,helperText:c,helperTextInvalid:be,isRequired:g,fullWidth:F,children:R.jsxs(Q.InputGroup,{children:[R.jsx(Q.InputGroupItem,{isFill:!0,children:R.jsx(Q.TextInput,{id:W,placeholder:l,onChange:(Ce,he)=>Te(he),value:pe??"","aria-describedby":W?`${W}-form-group`:void 0,validated:be?"error":void 0,type:t==="password"?re?"text":"password":t,readOnlyVariant:f?"default":void 0,isDisabled:p,autoFocus:P,autoComplete:L||"off","data-cy":W})}),t==="password"&&R.jsx(Q.Button,{variant:"control",onClick:()=>oe(!re),isDisabled:p||f,children:re?R.jsx(Ht.EyeIcon,{}):R.jsx(Ht.EyeSlashIcon,{})}),O&&R.jsx(Q.Button,{ouiaId:`lookup-${$}-button`,variant:"control",onClick:()=>N==null?void 0:N(Ce=>{if(I){const he=I(Ce);U($,he,{shouldValidate:!0})}},O),"aria-label":"Options menu",isDisabled:p||H,children:R.jsx(Ht.SearchIcon,{"data-cy":"lookup-button"})}),s,R.jsx(pu,{actions:[{label:j("Undo changes"),type:Pr.Button,selection:vr.None,onClick:()=>{U(e.name,G)},isHidden:()=>!e.enableUndo||ce===G},{label:j("Reset to default"),type:Pr.Button,selection:vr.None,onClick:()=>{U(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:`${ku(r.toLocaleLowerCase())} must be at least ${b} characters.`}:b,maxLength:typeof r=="string"&&typeof y=="number"?{value:y,message:`${ku(r.toLocaleLowerCase())} cannot be greater than ${y} characters.`}:y,min:typeof r=="string"&&(typeof x=="number"||typeof x=="string")?{value:x,message:`${ku(r.toLocaleLowerCase())} must be greater or equal to ${x}.`}:b,max:typeof r=="string"&&(typeof E=="number"||typeof E=="string")?{value:E,message:`${ku(r.toLocaleLowerCase())} cannot be greater than ${E}.`}:E,pattern:C}})}const OU=w.createContext({isOpen:!1,setState:()=>({})});function oI(){return w.useContext(OU)}function Cge(e){const t=Oi("xl"),[n,r]=w.useState(()=>t),a=w.useCallback(o=>{o.isOpen!==void 0&&r(o.isOpen)},[]);return w.useEffect(()=>a({isOpen:t}),[t,a]),R.jsx(OU.Provider,{value:{isOpen:n,setState:a},children:e.children})}function kge(){const e=ga.useNavigate(),t=Oi("xl"),n=oI();return w.useCallback(a=>{e(a),t||n.setState({isOpen:!n.isOpen})},[e,t,n])}const IU=w.createContext([{},()=>{}]);function cot(){return w.useContext(IU)[0]}function dot(){return w.useContext(IU)}function uot(e){const[t,n]=w.useState({}),r=w.useCallback(o=>{n(Tge("",o))},[]),a=w.useMemo(()=>[t,r],[t,r]);return R.jsx(IU.Provider,{value:a,children:e.children})}function Tge(e,t){const n={};return t.forEach(r=>{const a=(e+"/"+r.path).replace("//","/");"id"in r&&typeof r.id=="string"&&(n[r.id]=a),"children"in r&&Object.assign(n,Tge(a,r.children))}),n}const Rge=w.createContext({notificationsDrawerOpen:!1,setNotificationsDrawerOpen:()=>{throw new Error("PageNotificationsContext not implemented")},notificationGroups:{},setNotificationGroups:()=>{throw new Error("PageNotificationsContext not implemented")}});function iI(){return w.useContext(Rge)}function pot(e){const[t,n]=w.useState(!1),[r,a]=w.useState({});return R.jsx(Rge.Provider,{value:{notificationGroups:r,setNotificationGroups:a,notificationsDrawerOpen:t,setNotificationsDrawerOpen:n},children:e.children})}function fot(e){const{t}=Hn(),{notificationsDrawerOpen:n,setNotificationsDrawerOpen:r}=iI(),a=w.useRef(null);function o(){var l;r(!1),(l=a.current)==null||l.focus()}const{notificationGroups:i}=iI();return R.jsx(Q.Drawer,{isExpanded:n,onExpand:()=>r(!0),children:R.jsx(Q.DrawerContent,{panelContent:R.jsx(Q.DrawerPanelContent,{children:R.jsxs(Q.NotificationDrawer,{"data-cy":"notifications-drawer",children:[R.jsx(Q.NotificationDrawerHeader,{title:t("Notifications"),children:R.jsx(Q.DrawerCloseButton,{onClick:o})}),R.jsx(Q.NotificationDrawerBody,{children:R.jsx(Q.NotificationDrawerGroupList,{children:Object.values(i).map((l,s)=>R.jsx(got,{group:l},s))})})]})}),children:R.jsx(mot,{children:e.children})})})}const mot=On(Q.DrawerContentBody)`
518
+ `)),isRequired:e.isRequired,children:[I&&R.jsxs("div",{style:{display:"flex"},children:[R.jsx(tot,{onDrop:U,isDisabled:f||e.isReadOnly,inputRef:H,children:R.jsx(Zrt,{"data-cy":p,id:p,name:de,language:O,value:L,onChange:Te,setError:he=>{he?v(de,{message:he}):y(de)},isReadOnly:e.isReadOnly||f,className:e.isReadOnly?"pf-v5-c-form-control pf-m-disabled":"pf-v5-c-form-control",onFocus:()=>oe(!0),onBlur:()=>oe(!1)})}),R.jsx(pu,{actions:[{label:t("Undo changes"),type:Pr.Button,selection:vr.None,onClick:()=>{ee(e.name,ce),F(""),setTimeout(()=>{F(Ou(ef(ce,c),O))},0)},isHidden:()=>!e.enableUndo||Lfe($,ce)},{label:t("Reset to default"),type:Pr.Button,selection:vr.None,onClick:()=>{ee(e.name,e.defaultValue),F(""),setTimeout(()=>{F(Ou(ef(e.defaultValue,c),O))},0)},isHidden:()=>!e.enableReset||Lfe($,e.defaultValue)}],position:"right"})]}),!I&&R.jsx("div",{className:"pf-v5-c-form-control"})]})},rules:{required:ae,validate:e.validate}})}function Ege(e){const{t}=Hn(),{handleCopy:n,handleDownload:r,handleUpload:a}=e;return!n&&!r&&!a?R.jsx(R.Fragment,{}):R.jsxs(Q.Flex,{spaceItems:{default:"spaceItemsMd"},children:[n&&R.jsx(Q.FlexItem,{children:R.jsx(iT,{id:"copy-button","data-cy":"copy-button","aria-label":t("Copy to clipboard"),type:"button",onClick:n,children:R.jsx(Q.Icon,{size:"md",children:R.jsx(Ht.CopyIcon,{})})})}),a&&R.jsx(Q.FlexItem,{children:R.jsx(iT,{id:"upload-button","data-cy":"upload-button","aria-label":t("Upload from file"),type:"button",onClick:a,children:R.jsx(Q.Icon,{size:"md",children:R.jsx(Ht.UploadIcon,{})})})}),r&&R.jsx(Q.FlexItem,{children:R.jsx(iT,{id:"download-button","data-cy":"download-button","aria-label":t("Download file"),type:"button",onClick:r,children:R.jsx(Q.Icon,{size:"md",children:R.jsx(Ht.DownloadIcon,{})})})})]})}function wge(e){const{t}=Hn(),{handleCopy:n,handleDownload:r,handleUpload:a,language:o,setLanguage:i}=e;return R.jsxs(Q.Flex,{spaceItems:{default:"spaceItemsLg"},children:[R.jsx(Q.FlexItem,{children:e.children}),R.jsx(Ege,{handleCopy:n,handleDownload:r,handleUpload:a}),R.jsx(Q.FlexItem,{align:{default:"alignRight"},children:R.jsxs(Q.ToggleGroup,{isCompact:!0,children:[R.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")}),R.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 ef(e,t){const n=t?[]:{};if(e==null)return n;const a=()=>{try{e=zme.load(e)}catch(o){return o instanceof Error||o instanceof fU?new Error(o.message):{}}};if(typeof e=="string")try{e=JSON.parse(e)}catch{a()}return t?Array.isArray(e)?e:[]:Array.isArray(e)?{}:e}function Ou(e,t){if(e==null)return"";if(e instanceof Error)return e.message;switch(t){case"json":return JSON.stringify(e,null,2);case"yaml":try{const n=zme.dump(e).trimEnd();switch(n){case"null":case"{}":case"[]":return"";default:return n}}catch(n){return n instanceof Error||n instanceof fU?n.message:""}default:return""}}function oot(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=kp(e),{t:y}=Hn(),{control:x,setValue:E,getValues:C,formState:{isSubmitting:O,isValidating:N,defaultValues:I}}=Su(),[P,L]=w.useState(!1),F=w.useCallback(()=>L(!P),[P]),[W]=ya(),j=ME(e.label,e.isRequired),B=my(I,e.name);w.useEffect(()=>{C(e.name)||f.length===1&&i&&E(e.name,f[0].value)},[C,i,f,e.name,E]);const U=(H,Y)=>R.jsx(Q.MenuToggle,{"data-cy":`${b}-form-group`,id:`${b}-form-group-toggle`,isDisabled:a||o||O,ref:H,onClick:F,isExpanded:P,isFullWidth:!0,children:Y??g});return R.jsx(dy,{name:p,control:x,defaultValue:e.defaultValue,shouldUnregister:!0,render:({field:{onChange:H,value:Y},fieldState:{error:K}})=>{const re=(ee,G)=>{const ae=f.find(ce=>ce.value===G);ae&&(H(ae.value),e.onChange&&e.onChange(ae.value)),L(!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 R.jsx(GE,{fieldId:b,label:l,labelHelpTitle:c??l,labelHelp:s,additionalControls:t,helperText:r,helperTextInvalid:oe,isRequired:i,children:R.jsxs("div",{style:{display:"flex"},children:[R.jsx(Q.Select,{"aria-describedby":`${b}-form-group-select`,"data-cy":b,id:b,isOpen:P,itemID:b,onOpenChange:ee=>L(ee),onSelect:re,ouiaId:"menu-select",shouldFocusToggleOnSelect:!0,toggle:ee=>U(ee,te==null?void 0:te.label),isScrollable:!0,children:R.jsxs(R.Fragment,{children:[R.jsx(Q.SelectList,{children:f.map(ee=>{const G=uu(ee);return R.jsx(Q.SelectOption,{id:G,value:ee.value,label:ee.label,description:ee.description,"data-cy":G,children:ee.label},ee.label)})}),n&&R.jsx(Q.MenuFooter,{children:n})]})}),R.jsx(pu,{actions:[{label:y("Undo changes"),type:Pr.Button,selection:vr.None,onClick:()=>{E(e.name,B)},isHidden:()=>!e.enableUndo||Y===B},{label:y("Reset to default"),type:Pr.Button,selection:vr.None,onClick:()=>{E(e.name,e.defaultValue)},isHidden:()=>!e.enableReset||Y===e.defaultValue}],variant:Q.ButtonVariant.control,position:"right"})]})})},rules:{required:j,validate:v}})}function iot(e){const{name:t,helperText:n,validate:r,additionalControls:a,label:o,labelHelp:i,labelHelpTitle:l,labelOn:s,labelOff:c}=e,{control:p,formState:{isSubmitting:f,isValidating:g}}=Su(),v=kp(e);return R.jsx(dy,{name:t,control:p,shouldUnregister:!0,render:({field:{onChange:b,value:y},fieldState:{error:x}})=>{const E=r&&g||x==null?void 0:x.message;return R.jsx(GE,{fieldId:v,"data-cy":v+"-form-group",label:o,labelHelpTitle:l??o,labelHelp:i,helperText:n,helperTextInvalid:E,additionalControls:a,children:R.jsx(Q.Switch,{"data-cy":v+"-toggle","aria-label":o,isChecked:y,onChange:C=>b(C),isDisabled:f,label:s,labelOff:c})})}})}function lot(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:O,selectOpen:N,selectValue:I,autoFocus:P,autoComplete:L,disableAutoResize:F}=e,W=kp(e),{control:j,setValue:B,formState:{isSubmitting:U,isValidating:H}}=Su(),[Y,K]=w.useState(!1),[re]=ya(),oe=ME(e.label,e.isRequired);return R.jsx(dy,{name:n,control:j,shouldUnregister:!0,render:({field:{onChange:te,value:ee,name:G},fieldState:{error:ae}})=>{const ce=ae!=null&&ae.message?v&&H?re.validating:ae==null?void 0:ae.message:void 0;function $(de){te(de.trimStart())}return R.jsx(GE,{fieldId:W,label:r,labelHelpTitle:a??r,labelHelp:o,additionalControls:i,helperText:c,helperTextInvalid:ce,isRequired:g,fullWidth:!0,children:R.jsxs(Q.InputGroup,{children:[R.jsx(Q.InputGroupItem,{isFill:!0,children:R.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:L||"off","data-cy":W,autoResize:F===void 0?!0:!F,rows:1,resizeOrientation:"vertical"})}),t==="password"&&R.jsx(Q.Button,{variant:"control",onClick:()=>K(!Y),isDisabled:p||f,children:Y?R.jsx(Ht.EyeIcon,{}):R.jsx(Ht.EyeSlashIcon,{})}),O&&R.jsx(Q.Button,{ouiaId:`lookup-${G}-button`,variant:"control",onClick:()=>N==null?void 0:N(de=>{if(I){const be=I(de);B(G,be,{shouldValidate:!0})}},O),"aria-label":"Options menu",isDisabled:p||U,children:R.jsx(Ht.SearchIcon,{})}),s]})})},rules:{required:oe,validate:v,minLength:typeof r=="string"&&typeof b=="number"?{value:b,message:`${ku(r.toLocaleLowerCase())} must be at least ${b} characters.`}:b,maxLength:typeof r=="string"&&typeof y=="number"?{value:y,message:`${ku(r.toLocaleLowerCase())} cannot be greater than ${y} characters.`}:y,min:typeof r=="string"&&(typeof x=="number"||typeof x=="string")?{value:x,message:`${ku(r.toLocaleLowerCase())} must be less than ${x}.`}:b,max:typeof r=="string"&&(typeof E=="number"||typeof E=="string")?{value:E,message:`${ku(r.toLocaleLowerCase())} cannot be greater than ${E}.`}:b,pattern:C}})}function sot(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:O,selectOpen:N,selectValue:I,autoFocus:P,autoComplete:L,fullWidth:F}=e,W=kp(e),{t:j}=Hn(),{control:B,setValue:U,formState:{isSubmitting:H,isValidating:Y,defaultValues:K}}=Su(),[re,oe]=w.useState(!1),[te]=ya(),ee=ME(e.label,e.isRequired),G=my(K,e.name);return R.jsx(dy,{name:n,control:B,shouldUnregister:e.shouldUnregister!==!1,defaultValue:e.defaultValue,render:({field:{onChange:ae,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 pe=ce;switch(t){case"datetime-local":if(ce){const Ce=new Date(ce);pe=new Date(Ce.getTime()-Ce.getTimezoneOffset()*6e4).toISOString().slice(0,16)}break}function Te(Ce){switch(e.type){case"datetime-local":{ae(new Date(Ce).toISOString());break}case"number":{let he=Number(Ce);if(Ce===""||isNaN(he)){U($,null),ae(null);return}E!==void 0&&he>Number(E)&&(he=Number(E)),x!==void 0&&he<Number(x)&&(he=Number(x)),U($,he),ae(he);break}default:ae(Ce.trimStart())}}return R.jsx(GE,{fieldId:W,label:r,labelHelpTitle:a??r,labelHelp:o,additionalControls:i,helperText:c,helperTextInvalid:be,isRequired:g,fullWidth:F,children:R.jsxs(Q.InputGroup,{children:[R.jsx(Q.InputGroupItem,{isFill:!0,children:R.jsx(Q.TextInput,{id:W,placeholder:l,onChange:(Ce,he)=>Te(he),value:pe??"","aria-describedby":W?`${W}-form-group`:void 0,validated:be?"error":void 0,type:t==="password"?re?"text":"password":t,readOnlyVariant:f?"default":void 0,isDisabled:p,autoFocus:P,autoComplete:L||"off","data-cy":W})}),t==="password"&&R.jsx(Q.Button,{variant:"control",onClick:()=>oe(!re),isDisabled:p||f,children:re?R.jsx(Ht.EyeIcon,{}):R.jsx(Ht.EyeSlashIcon,{})}),O&&R.jsx(Q.Button,{ouiaId:`lookup-${$}-button`,variant:"control",onClick:()=>N==null?void 0:N(Ce=>{if(I){const he=I(Ce);U($,he,{shouldValidate:!0})}},O),"aria-label":"Options menu",isDisabled:p||H,children:R.jsx(Ht.SearchIcon,{"data-cy":"lookup-button"})}),s,R.jsx(pu,{actions:[{label:j("Undo changes"),type:Pr.Button,selection:vr.None,onClick:()=>{U(e.name,G)},isHidden:()=>!e.enableUndo||ce===G},{label:j("Reset to default"),type:Pr.Button,selection:vr.None,onClick:()=>{U(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:`${ku(r.toLocaleLowerCase())} must be at least ${b} characters.`}:b,maxLength:typeof r=="string"&&typeof y=="number"?{value:y,message:`${ku(r.toLocaleLowerCase())} cannot be greater than ${y} characters.`}:y,min:typeof r=="string"&&(typeof x=="number"||typeof x=="string")?{value:x,message:`${ku(r.toLocaleLowerCase())} must be greater or equal to ${x}.`}:b,max:typeof r=="string"&&(typeof E=="number"||typeof E=="string")?{value:E,message:`${ku(r.toLocaleLowerCase())} cannot be greater than ${E}.`}:E,pattern:C}})}const OU=w.createContext({isOpen:!1,setState:()=>({})});function oI(){return w.useContext(OU)}function Cge(e){const t=Oi("xl"),[n,r]=w.useState(()=>t),a=w.useCallback(o=>{o.isOpen!==void 0&&r(o.isOpen)},[]);return w.useEffect(()=>a({isOpen:t}),[t,a]),R.jsx(OU.Provider,{value:{isOpen:n,setState:a},children:e.children})}function kge(){const e=ga.useNavigate(),t=Oi("xl"),n=oI();return w.useCallback(a=>{e(a),t||n.setState({isOpen:!n.isOpen})},[e,t,n])}const IU=w.createContext([{},()=>{}]);function cot(){return w.useContext(IU)[0]}function dot(){return w.useContext(IU)}function uot(e){const[t,n]=w.useState({}),r=w.useCallback(o=>{n(Tge("",o))},[]),a=w.useMemo(()=>[t,r],[t,r]);return R.jsx(IU.Provider,{value:a,children:e.children})}function Tge(e,t){const n={};return t.forEach(r=>{const a=(e+"/"+r.path).replace("//","/");"id"in r&&typeof r.id=="string"&&(n[r.id]=a),"children"in r&&Object.assign(n,Tge(a,r.children))}),n}const Rge=w.createContext({notificationsDrawerOpen:!1,setNotificationsDrawerOpen:()=>{throw new Error("PageNotificationsContext not implemented")},notificationGroups:{},setNotificationGroups:()=>{throw new Error("PageNotificationsContext not implemented")}});function iI(){return w.useContext(Rge)}function pot(e){const[t,n]=w.useState(!1),[r,a]=w.useState({});return R.jsx(Rge.Provider,{value:{notificationGroups:r,setNotificationGroups:a,notificationsDrawerOpen:t,setNotificationsDrawerOpen:n},children:e.children})}function fot(e){const{t}=Hn(),{notificationsDrawerOpen:n,setNotificationsDrawerOpen:r}=iI(),a=w.useRef(null);function o(){var l;r(!1),(l=a.current)==null||l.focus()}const{notificationGroups:i}=iI();return R.jsx(Q.Drawer,{isExpanded:n,onExpand:()=>r(!0),children:R.jsx(Q.DrawerContent,{panelContent:R.jsx(Q.DrawerPanelContent,{children:R.jsxs(Q.NotificationDrawer,{"data-cy":"notifications-drawer",children:[R.jsx(Q.NotificationDrawerHeader,{title:t("Notifications"),children:R.jsx(Q.DrawerCloseButton,{onClick:o})}),R.jsx(Q.NotificationDrawerBody,{children:R.jsx(Q.NotificationDrawerGroupList,{children:Object.values(i).map((l,s)=>R.jsx(got,{group:l},s))})})]})}),children:R.jsx(mot,{children:e.children})})})}const mot=On(Q.DrawerContentBody)`
519
519
  max-height: 100%;
520
520
  `;function got(e){const{t}=Hn(),[n,r]=w.useState(!0);return R.jsx(Q.NotificationDrawerGroup,{title:e.group.title,isExpanded:n,count:e.group.notifications.length,onExpand:(a,o)=>r(o),children:R.jsxs(Q.NotificationDrawerList,{isHidden:!n,children:[e.group.notifications.map((a,o)=>R.jsx(vot,{notification:a},o)),e.group.notifications.length===0&&R.jsxs(Q.EmptyState,{variant:Q.EmptyStateVariant.full,children:[R.jsx(Q.EmptyStateHeader,{headingLevel:"h2",titleText:t("No notifications")}),R.jsx(Q.EmptyStateBody,{children:t("There are currently no notifications.")})]})]})})}function vot(e){const t=e.notification.variant==="info"?void 0:e.notification.variant,n=ga.useNavigate(),{setNotificationsDrawerOpen:r}=iI(),a=e.notification.timestamp?new Date(e.notification.timestamp):void 0,o=a?`${a.toLocaleDateString()} ${a.toLocaleTimeString()}`:void 0;return R.jsxs(Q.NotificationDrawerListItem,{variant:e.notification.variant,onClick:()=>{n(e.notification.to),r(!1)},children:[R.jsx(Q.NotificationDrawerListItemHeader,{title:e.notification.title,variant:t}),R.jsx(Q.NotificationDrawerListItemBody,{timestamp:o,children:e.notification.description})]})}function hot(e){return R.jsx(jZ,{children:R.jsx(Iee,{defaultRefreshInterval:e.defaultRefreshInterval,children:R.jsx(uot,{children:R.jsx(kpe,{children:R.jsx(UJ,{children:R.jsx(Cge,{children:R.jsx(pot,{children:R.jsx(PMe,{children:e.children})})})})})})})})}function Oge(e){const[t]=ya();return R.jsx(zJ,{message:t.errorText,children:R.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%",maxHeight:"100%"},children:e.children})})}function bot(e){const t=Oi("sm");return R.jsxs(Q.Masthead,{display:{default:"inline"},style:{borderBottom:"1px solid #fff4",paddingRight:0},children:[R.jsx(Ige,{}),t&&R.jsx(Q.MastheadMain,{children:R.jsx(Q.MastheadBrand,{component:n=>R.jsx(ga.Link,{...n,to:"/"}),children:e.brand})}),R.jsx(Q.MastheadContent,{style:{marginLeft:0,minHeight:0},children:R.jsx(Q.Toolbar,{id:"toolbar","data-cy":"toolbar",inset:{default:"insetNone"},style:{padding:0},children:R.jsx(Q.ToolbarContent,{children:e.children})})})]})}function Ige(){const e=oI();return R.jsx(Q.MastheadToggle,{onClick:()=>e.setState({isOpen:!e.isOpen}),children:R.jsx(Q.PageToggleButton,{"data-cy":"nav-toggle",variant:"plain","aria-label":"Global navigation",children:R.jsx(Ht.BarsIcon,{})})})}function _ot(){const{setNotificationsDrawerOpen:e,notificationGroups:t}=iI(),n=Object.values(t).reduce((r,a)=>r+a.notifications.length,0);return R.jsx(Q.NotificationBadge,{"data-cy":"notification-badge",variant:n===0?"read":"unread",count:n,onClick:()=>e(r=>!r)})}function yot(){const[e,t]=w.useContext(yv);return e.activeTheme==="dark"?R.jsx(Q.Button,{"data-cy":"settings-icon",variant:"plain",onClick:()=>t({...e,theme:"light"}),children:R.jsx(Ht.MoonIcon,{})}):R.jsx(Q.Button,{"data-cy":"theme-icon",variant:"plain",onClick:()=>t({...e,theme:"dark"}),children:R.jsx(Ht.SunIcon,{})})}const xot=w.lazy(()=>Promise.resolve().then(()=>FNt)),Sot=()=>R.jsx(w.Suspense,{fallback:R.jsx("div",{children:"Loading..."}),children:R.jsx(xot,{})});var lI=(e=>(e.Open="open",e.Closed="closed",e.Disabled="disabled",e))(lI||{});const Eot=w.createContext({chatbotState:"disabled",setChatbotState:()=>{}}),wot=()=>w.useContext(Eot),Cot=w.lazy(()=>Promise.resolve().then(()=>GNt)),kot=()=>{const{t:e}=Hn();return R.jsx(w.Suspense,{fallback:R.jsx("span",{children:e("Loading...")}),children:R.jsx(Cot,{})})},Tot=On(Q.DrawerContentBody)`
521
521
  max-height: 100%;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ansible/ansible-ui-framework",
3
3
  "description": "A framework for building applications using PatternFly.",
4
- "version": "2.4.2668",
4
+ "version": "2.4.2669",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -1,152 +1,152 @@
1
- import { Y as s } from "./index-BIhnwmg2.js";
2
- import { B as o } from "./index-BIhnwmg2.js";
3
- import { x as t } from "./index-BIhnwmg2.js";
4
- import { C as r } from "./index-BIhnwmg2.js";
5
- import { aT as l } from "./index-BIhnwmg2.js";
6
- import { aV as i } from "./index-BIhnwmg2.js";
7
- import { aS as n } from "./index-BIhnwmg2.js";
8
- import { aU as g } from "./index-BIhnwmg2.js";
9
- import { aW as u } from "./index-BIhnwmg2.js";
10
- import { aR as b } from "./index-BIhnwmg2.js";
11
- import { aN as P } from "./index-BIhnwmg2.js";
12
- import { y as d } from "./index-BIhnwmg2.js";
13
- import { ab as m } from "./index-BIhnwmg2.js";
14
- import { aa as C } from "./index-BIhnwmg2.js";
15
- import { D as c } from "./index-BIhnwmg2.js";
16
- import { bl as T } from "./index-BIhnwmg2.js";
17
- import { bj as D } from "./index-BIhnwmg2.js";
18
- import { z as p } from "./index-BIhnwmg2.js";
19
- import { E as S } from "./index-BIhnwmg2.js";
20
- import { bp as h } from "./index-BIhnwmg2.js";
21
- import { a7 as F } from "./index-BIhnwmg2.js";
22
- import { H as v } from "./index-BIhnwmg2.js";
23
- import { i as B } from "./index-BIhnwmg2.js";
24
- import { A as f } from "./index-BIhnwmg2.js";
25
- import { L as A } from "./index-BIhnwmg2.js";
26
- import { $ as I } from "./index-BIhnwmg2.js";
27
- import { P as N } from "./index-BIhnwmg2.js";
28
- import { o as x } from "./index-BIhnwmg2.js";
29
- import { n as y } from "./index-BIhnwmg2.js";
30
- import { q as k } from "./index-BIhnwmg2.js";
31
- import { r as w } from "./index-BIhnwmg2.js";
32
- import { t as E } from "./index-BIhnwmg2.js";
33
- import { au as O } from "./index-BIhnwmg2.js";
34
- import { w as L } from "./index-BIhnwmg2.js";
35
- import { F as M } from "./index-BIhnwmg2.js";
36
- import { I as V } from "./index-BIhnwmg2.js";
37
- import { J as R } from "./index-BIhnwmg2.js";
38
- import { M as W } from "./index-BIhnwmg2.js";
39
- import { K as j } from "./index-BIhnwmg2.js";
40
- import { G } from "./index-BIhnwmg2.js";
41
- import { N as U } from "./index-BIhnwmg2.js";
42
- import { U as z } from "./index-BIhnwmg2.js";
43
- import { O as H } from "./index-BIhnwmg2.js";
44
- import { V as q } from "./index-BIhnwmg2.js";
45
- import { aM as Q } from "./index-BIhnwmg2.js";
46
- import { W as J } from "./index-BIhnwmg2.js";
47
- import { X as K } from "./index-BIhnwmg2.js";
48
- import { a0 as X } from "./index-BIhnwmg2.js";
49
- import { Q as Y } from "./index-BIhnwmg2.js";
50
- import { aj as Z } from "./index-BIhnwmg2.js";
51
- import { am as _ } from "./index-BIhnwmg2.js";
52
- import { a8 as $ } from "./index-BIhnwmg2.js";
53
- import { a9 as aa } from "./index-BIhnwmg2.js";
54
- import { ak as ea } from "./index-BIhnwmg2.js";
55
- import { ae as sa } from "./index-BIhnwmg2.js";
56
- import { al as oa } from "./index-BIhnwmg2.js";
57
- import { af as ta } from "./index-BIhnwmg2.js";
58
- import { ag as ra } from "./index-BIhnwmg2.js";
59
- import { ah as la } from "./index-BIhnwmg2.js";
60
- import { an as ia } from "./index-BIhnwmg2.js";
61
- import { ao as na } from "./index-BIhnwmg2.js";
62
- import { ap as ga } from "./index-BIhnwmg2.js";
63
- import { aq as ua } from "./index-BIhnwmg2.js";
64
- import { ar as ba } from "./index-BIhnwmg2.js";
65
- import { aC as Pa } from "./index-BIhnwmg2.js";
66
- import { aE as da } from "./index-BIhnwmg2.js";
67
- import { av as ma } from "./index-BIhnwmg2.js";
68
- import { a5 as Ca } from "./index-BIhnwmg2.js";
69
- import { a6 as ca } from "./index-BIhnwmg2.js";
70
- import { as as Ta } from "./index-BIhnwmg2.js";
71
- import { aI as Da } from "./index-BIhnwmg2.js";
72
- import { aJ as pa } from "./index-BIhnwmg2.js";
73
- import { bd as Sa } from "./index-BIhnwmg2.js";
74
- import { aK as ha } from "./index-BIhnwmg2.js";
75
- import { aO as Fa } from "./index-BIhnwmg2.js";
76
- import { aQ as va } from "./index-BIhnwmg2.js";
77
- import { bc as Ba } from "./index-BIhnwmg2.js";
78
- import { at as fa } from "./index-BIhnwmg2.js";
79
- import { be as Aa } from "./index-BIhnwmg2.js";
80
- import { bg as Ia } from "./index-BIhnwmg2.js";
81
- import { bo as Na } from "./index-BIhnwmg2.js";
82
- import { R as xa } from "./index-BIhnwmg2.js";
83
- import { S as ya } from "./index-BIhnwmg2.js";
84
- import { a4 as ka } from "./index-BIhnwmg2.js";
85
- import { aL as wa } from "./index-BIhnwmg2.js";
86
- import { aX as Ea } from "./index-BIhnwmg2.js";
87
- import { T as Oa } from "./index-BIhnwmg2.js";
88
- import { bk as La } from "./index-BIhnwmg2.js";
89
- import { bf as Ma } from "./index-BIhnwmg2.js";
90
- import { bn as Va } from "./index-BIhnwmg2.js";
91
- import { bm as Ra } from "./index-BIhnwmg2.js";
92
- import { az as Wa } from "./index-BIhnwmg2.js";
93
- import { aA as ja } from "./index-BIhnwmg2.js";
94
- import { aB as Ga } from "./index-BIhnwmg2.js";
95
- import { bw as Ua } from "./index-BIhnwmg2.js";
96
- import { bv as za } from "./index-BIhnwmg2.js";
97
- import { bu as Ha } from "./index-BIhnwmg2.js";
98
- import { bt as qa } from "./index-BIhnwmg2.js";
99
- import { v as Qa } from "./index-BIhnwmg2.js";
100
- import { by as Ja } from "./index-BIhnwmg2.js";
101
- import { ax as Ka } from "./index-BIhnwmg2.js";
102
- import { g as Xa } from "./index-BIhnwmg2.js";
103
- import { bh as Ya } from "./index-BIhnwmg2.js";
104
- import { ad as Za } from "./index-BIhnwmg2.js";
105
- import { bx as _a } from "./index-BIhnwmg2.js";
106
- import { a as $a } from "./index-BIhnwmg2.js";
107
- import { e as ae } from "./index-BIhnwmg2.js";
108
- import { c as ee } from "./index-BIhnwmg2.js";
109
- import { f as se } from "./index-BIhnwmg2.js";
110
- import { p as oe } from "./index-BIhnwmg2.js";
111
- import { h as te } from "./index-BIhnwmg2.js";
112
- import { b as re } from "./index-BIhnwmg2.js";
113
- import { aw as le } from "./index-BIhnwmg2.js";
114
- import { ay as ie } from "./index-BIhnwmg2.js";
115
- import { bi as ne } from "./index-BIhnwmg2.js";
116
- import { l as ge } from "./index-BIhnwmg2.js";
117
- import { Z as ue } from "./index-BIhnwmg2.js";
118
- import { _ as be } from "./index-BIhnwmg2.js";
119
- import { aP as Pe } from "./index-BIhnwmg2.js";
120
- import { b5 as de } from "./index-BIhnwmg2.js";
121
- import { b4 as me } from "./index-BIhnwmg2.js";
122
- import { b0 as Ce } from "./index-BIhnwmg2.js";
123
- import { b2 as ce } from "./index-BIhnwmg2.js";
124
- import { b3 as Te } from "./index-BIhnwmg2.js";
125
- import { ba as De } from "./index-BIhnwmg2.js";
126
- import { ai as pe } from "./index-BIhnwmg2.js";
127
- import { bq as Se } from "./index-BIhnwmg2.js";
128
- import { aG as he } from "./index-BIhnwmg2.js";
129
- import { br as Fe } from "./index-BIhnwmg2.js";
130
- import { m as ve } from "./index-BIhnwmg2.js";
131
- import { s as Be } from "./index-BIhnwmg2.js";
132
- import { a2 as fe } from "./index-BIhnwmg2.js";
133
- import { a1 as Ae } from "./index-BIhnwmg2.js";
134
- import { aF as Ie } from "./index-BIhnwmg2.js";
135
- import { aD as Ne } from "./index-BIhnwmg2.js";
136
- import { aH as xe } from "./index-BIhnwmg2.js";
137
- import { u as ye } from "./index-BIhnwmg2.js";
138
- import { bb as ke } from "./index-BIhnwmg2.js";
139
- import { a3 as we } from "./index-BIhnwmg2.js";
140
- import { b7 as Ee } from "./index-BIhnwmg2.js";
141
- import { b8 as Oe } from "./index-BIhnwmg2.js";
142
- import { b9 as Le } from "./index-BIhnwmg2.js";
143
- import { b6 as Me } from "./index-BIhnwmg2.js";
144
- import { bs as Ve } from "./index-BIhnwmg2.js";
145
- import { a_ as Re } from "./index-BIhnwmg2.js";
146
- import { b1 as We } from "./index-BIhnwmg2.js";
147
- import { aZ as je } from "./index-BIhnwmg2.js";
148
- import { a$ as Ge } from "./index-BIhnwmg2.js";
149
- import { aY as Ue } from "./index-BIhnwmg2.js";
150
- import { k as ze } from "./index-BIhnwmg2.js";
151
- import { ac as He } from "./index-BIhnwmg2.js";
1
+ import { Y as s } from "./index-sqJe9OpF.js";
2
+ import { B as o } from "./index-sqJe9OpF.js";
3
+ import { x as t } from "./index-sqJe9OpF.js";
4
+ import { C as r } from "./index-sqJe9OpF.js";
5
+ import { aT as l } from "./index-sqJe9OpF.js";
6
+ import { aV as i } from "./index-sqJe9OpF.js";
7
+ import { aS as n } from "./index-sqJe9OpF.js";
8
+ import { aU as g } from "./index-sqJe9OpF.js";
9
+ import { aW as u } from "./index-sqJe9OpF.js";
10
+ import { aR as b } from "./index-sqJe9OpF.js";
11
+ import { aN as P } from "./index-sqJe9OpF.js";
12
+ import { y as d } from "./index-sqJe9OpF.js";
13
+ import { ab as m } from "./index-sqJe9OpF.js";
14
+ import { aa as C } from "./index-sqJe9OpF.js";
15
+ import { D as c } from "./index-sqJe9OpF.js";
16
+ import { bl as T } from "./index-sqJe9OpF.js";
17
+ import { bj as D } from "./index-sqJe9OpF.js";
18
+ import { z as p } from "./index-sqJe9OpF.js";
19
+ import { E as S } from "./index-sqJe9OpF.js";
20
+ import { bp as h } from "./index-sqJe9OpF.js";
21
+ import { a7 as F } from "./index-sqJe9OpF.js";
22
+ import { H as v } from "./index-sqJe9OpF.js";
23
+ import { i as B } from "./index-sqJe9OpF.js";
24
+ import { A as f } from "./index-sqJe9OpF.js";
25
+ import { L as A } from "./index-sqJe9OpF.js";
26
+ import { $ as I } from "./index-sqJe9OpF.js";
27
+ import { P as N } from "./index-sqJe9OpF.js";
28
+ import { o as x } from "./index-sqJe9OpF.js";
29
+ import { n as y } from "./index-sqJe9OpF.js";
30
+ import { q as k } from "./index-sqJe9OpF.js";
31
+ import { r as w } from "./index-sqJe9OpF.js";
32
+ import { t as E } from "./index-sqJe9OpF.js";
33
+ import { au as O } from "./index-sqJe9OpF.js";
34
+ import { w as L } from "./index-sqJe9OpF.js";
35
+ import { F as M } from "./index-sqJe9OpF.js";
36
+ import { I as V } from "./index-sqJe9OpF.js";
37
+ import { J as R } from "./index-sqJe9OpF.js";
38
+ import { M as W } from "./index-sqJe9OpF.js";
39
+ import { K as j } from "./index-sqJe9OpF.js";
40
+ import { G } from "./index-sqJe9OpF.js";
41
+ import { N as U } from "./index-sqJe9OpF.js";
42
+ import { U as z } from "./index-sqJe9OpF.js";
43
+ import { O as H } from "./index-sqJe9OpF.js";
44
+ import { V as q } from "./index-sqJe9OpF.js";
45
+ import { aM as Q } from "./index-sqJe9OpF.js";
46
+ import { W as J } from "./index-sqJe9OpF.js";
47
+ import { X as K } from "./index-sqJe9OpF.js";
48
+ import { a0 as X } from "./index-sqJe9OpF.js";
49
+ import { Q as Y } from "./index-sqJe9OpF.js";
50
+ import { aj as Z } from "./index-sqJe9OpF.js";
51
+ import { am as _ } from "./index-sqJe9OpF.js";
52
+ import { a8 as $ } from "./index-sqJe9OpF.js";
53
+ import { a9 as aa } from "./index-sqJe9OpF.js";
54
+ import { ak as ea } from "./index-sqJe9OpF.js";
55
+ import { ae as sa } from "./index-sqJe9OpF.js";
56
+ import { al as oa } from "./index-sqJe9OpF.js";
57
+ import { af as ta } from "./index-sqJe9OpF.js";
58
+ import { ag as ra } from "./index-sqJe9OpF.js";
59
+ import { ah as la } from "./index-sqJe9OpF.js";
60
+ import { an as ia } from "./index-sqJe9OpF.js";
61
+ import { ao as na } from "./index-sqJe9OpF.js";
62
+ import { ap as ga } from "./index-sqJe9OpF.js";
63
+ import { aq as ua } from "./index-sqJe9OpF.js";
64
+ import { ar as ba } from "./index-sqJe9OpF.js";
65
+ import { aC as Pa } from "./index-sqJe9OpF.js";
66
+ import { aE as da } from "./index-sqJe9OpF.js";
67
+ import { av as ma } from "./index-sqJe9OpF.js";
68
+ import { a5 as Ca } from "./index-sqJe9OpF.js";
69
+ import { a6 as ca } from "./index-sqJe9OpF.js";
70
+ import { as as Ta } from "./index-sqJe9OpF.js";
71
+ import { aI as Da } from "./index-sqJe9OpF.js";
72
+ import { aJ as pa } from "./index-sqJe9OpF.js";
73
+ import { bd as Sa } from "./index-sqJe9OpF.js";
74
+ import { aK as ha } from "./index-sqJe9OpF.js";
75
+ import { aO as Fa } from "./index-sqJe9OpF.js";
76
+ import { aQ as va } from "./index-sqJe9OpF.js";
77
+ import { bc as Ba } from "./index-sqJe9OpF.js";
78
+ import { at as fa } from "./index-sqJe9OpF.js";
79
+ import { be as Aa } from "./index-sqJe9OpF.js";
80
+ import { bg as Ia } from "./index-sqJe9OpF.js";
81
+ import { bo as Na } from "./index-sqJe9OpF.js";
82
+ import { R as xa } from "./index-sqJe9OpF.js";
83
+ import { S as ya } from "./index-sqJe9OpF.js";
84
+ import { a4 as ka } from "./index-sqJe9OpF.js";
85
+ import { aL as wa } from "./index-sqJe9OpF.js";
86
+ import { aX as Ea } from "./index-sqJe9OpF.js";
87
+ import { T as Oa } from "./index-sqJe9OpF.js";
88
+ import { bk as La } from "./index-sqJe9OpF.js";
89
+ import { bf as Ma } from "./index-sqJe9OpF.js";
90
+ import { bn as Va } from "./index-sqJe9OpF.js";
91
+ import { bm as Ra } from "./index-sqJe9OpF.js";
92
+ import { az as Wa } from "./index-sqJe9OpF.js";
93
+ import { aA as ja } from "./index-sqJe9OpF.js";
94
+ import { aB as Ga } from "./index-sqJe9OpF.js";
95
+ import { bw as Ua } from "./index-sqJe9OpF.js";
96
+ import { bv as za } from "./index-sqJe9OpF.js";
97
+ import { bu as Ha } from "./index-sqJe9OpF.js";
98
+ import { bt as qa } from "./index-sqJe9OpF.js";
99
+ import { v as Qa } from "./index-sqJe9OpF.js";
100
+ import { by as Ja } from "./index-sqJe9OpF.js";
101
+ import { ax as Ka } from "./index-sqJe9OpF.js";
102
+ import { g as Xa } from "./index-sqJe9OpF.js";
103
+ import { bh as Ya } from "./index-sqJe9OpF.js";
104
+ import { ad as Za } from "./index-sqJe9OpF.js";
105
+ import { bx as _a } from "./index-sqJe9OpF.js";
106
+ import { a as $a } from "./index-sqJe9OpF.js";
107
+ import { e as ae } from "./index-sqJe9OpF.js";
108
+ import { c as ee } from "./index-sqJe9OpF.js";
109
+ import { f as se } from "./index-sqJe9OpF.js";
110
+ import { p as oe } from "./index-sqJe9OpF.js";
111
+ import { h as te } from "./index-sqJe9OpF.js";
112
+ import { b as re } from "./index-sqJe9OpF.js";
113
+ import { aw as le } from "./index-sqJe9OpF.js";
114
+ import { ay as ie } from "./index-sqJe9OpF.js";
115
+ import { bi as ne } from "./index-sqJe9OpF.js";
116
+ import { l as ge } from "./index-sqJe9OpF.js";
117
+ import { Z as ue } from "./index-sqJe9OpF.js";
118
+ import { _ as be } from "./index-sqJe9OpF.js";
119
+ import { aP as Pe } from "./index-sqJe9OpF.js";
120
+ import { b5 as de } from "./index-sqJe9OpF.js";
121
+ import { b4 as me } from "./index-sqJe9OpF.js";
122
+ import { b0 as Ce } from "./index-sqJe9OpF.js";
123
+ import { b2 as ce } from "./index-sqJe9OpF.js";
124
+ import { b3 as Te } from "./index-sqJe9OpF.js";
125
+ import { ba as De } from "./index-sqJe9OpF.js";
126
+ import { ai as pe } from "./index-sqJe9OpF.js";
127
+ import { bq as Se } from "./index-sqJe9OpF.js";
128
+ import { aG as he } from "./index-sqJe9OpF.js";
129
+ import { br as Fe } from "./index-sqJe9OpF.js";
130
+ import { m as ve } from "./index-sqJe9OpF.js";
131
+ import { s as Be } from "./index-sqJe9OpF.js";
132
+ import { a2 as fe } from "./index-sqJe9OpF.js";
133
+ import { a1 as Ae } from "./index-sqJe9OpF.js";
134
+ import { aF as Ie } from "./index-sqJe9OpF.js";
135
+ import { aD as Ne } from "./index-sqJe9OpF.js";
136
+ import { aH as xe } from "./index-sqJe9OpF.js";
137
+ import { u as ye } from "./index-sqJe9OpF.js";
138
+ import { bb as ke } from "./index-sqJe9OpF.js";
139
+ import { a3 as we } from "./index-sqJe9OpF.js";
140
+ import { b7 as Ee } from "./index-sqJe9OpF.js";
141
+ import { b8 as Oe } from "./index-sqJe9OpF.js";
142
+ import { b9 as Le } from "./index-sqJe9OpF.js";
143
+ import { b6 as Me } from "./index-sqJe9OpF.js";
144
+ import { bs as Ve } from "./index-sqJe9OpF.js";
145
+ import { a_ as Re } from "./index-sqJe9OpF.js";
146
+ import { b1 as We } from "./index-sqJe9OpF.js";
147
+ import { aZ as je } from "./index-sqJe9OpF.js";
148
+ import { a$ as Ge } from "./index-sqJe9OpF.js";
149
+ import { aY as Ue } from "./index-sqJe9OpF.js";
150
+ import { k as ze } from "./index-sqJe9OpF.js";
151
+ import { ac as He } from "./index-sqJe9OpF.js";
152
152
  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, u as ColumnPriority, b 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, A as LoadingPage, I as MultiSelectDialog, N as PFColorE, x as PageActionSelection, y 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, U as PageDashboardCount, z 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, ua as PageMasthead, ba 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, Aa as PageToolbar, Ia as PageToolbarFilters, Na as PageWizard, xa as RunningIcon, ya 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, Ua as buildQueryString, za 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 pfUnreachable, re as pfWarning, le as removeLeadingSlash, ie as removeNavigationItemById, ne as singleSelectBrowseAdapter, ge as useBreakpoint, ue as useBulkActionDialog, be as useBulkConfirmation, Pe as useColumnsToTableCardFn, de as useColumnsWithoutExpandedRow, me as useColumnsWithoutSort, Ce as useDashboardColumns, ce as useDescriptionColumns, Te as useExpandedColumns, De as useFiltered, pe as useFormErrors, Se as useFrameworkTranslations, he as useGetPageUrl, Fe as useInMemoryView, ve as useOrientation, Be as usePageAlertToaster, fe as usePageDialog, Ae as usePageDialogs, Ie as usePageNavBarClick, Ne as usePageNavSideBar, xe as usePageNavigate, ye as usePageSettings, ke as usePaged, we as useSelectDialog, Ee as useSelected, Oe as useSelectedInMemory, Le as useSorted, Me as useTableItems, Ve as useView, Re as useVisibleCardColumns, We as useVisibleColumns, je as useVisibleListColumns, Ge as useVisibleModalColumns, Ue as useVisibleTableColumns, ze as useWindowSize, He as valueToObject };