@ansible/ansible-ui-framework 2.4.2699 → 2.4.2700

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.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-Cca7Tl23.js";
1
+ import { $ as s, B as o, A as t, C as r, aW as l, aY as i, aV as n, aX as g, aZ as b, aU as u, aQ as P, D as d, af as m, ae as C, E as c, bo as T, bm as D, F as p, G as S, bs as h, ab as F, H as v, k as B, I as f, L as I, a2 as A, P as y, r as N, q as x, s as k, t as w, w as E, y as O, z as L, J as M, M as V, N as R, Q as W, O as j, K as G, U as z, X as U, V as H, Y as q, aP as Q, Z as J, _ as K, a4 as X, W as Y, an as Z, aq as _, ac as $, ad as aa, ao as ea, ai as sa, ap as oa, aj as ta, ak as ra, al as la, ar as ia, as as na, at as ga, au as ba, av as ua, aF as Pa, aH as da, ay as ma, a9 as Ca, aa as ca, aw as Ta, aL as Da, aM as pa, bg as Sa, aN as ha, aR as Fa, aT as va, bf as Ba, ax as fa, bh as Ia, bj as Aa, br as ya, R as Na, S as xa, a8 as ka, aO as wa, a_ as Ea, T as Oa, bn as La, bi as Ma, bq as Va, bp as Ra, aC as Wa, aD as ja, aE as Ga, bz as za, by as Ua, bx as Ha, bw as qa, x as Qa, bB as Ja, aA as Ka, g as Xa, bk as Ya, ah as Za, bA as _a, a as $a, e as ae, c as ee, f as se, p as oe, i as te, h as re, b as le, az as ie, aB as ne, bl as ge, n as be, a0 as ue, a1 as Pe, aS as de, b8 as me, b7 as Ce, b3 as ce, b5 as Te, b6 as De, bd as pe, am as Se, bt as he, aJ as Fe, bu as ve, a3 as Be, o as fe, v as Ie, a6 as Ae, a5 as ye, aI as Ne, aG as xe, aK as ke, u as we, be as Ee, l as Oe, a7 as Le, ba as Me, bb as Ve, bc as Re, b9 as We, bv as je, b1 as Ge, b4 as ze, b0 as Ue, b2 as He, a$ as qe, m as Qe, ag as Je } from "./index-C5UL_jDS.js";
2
2
  export {
3
3
  s as BulkActionDialog,
4
4
  o as BulkSelector,
package/index.umd.cjs CHANGED
@@ -420,12 +420,12 @@ See https://s-c.sh/2BAXzed for more info.`),window[rT]+=1);const aT=Cn.button`
420
420
  opacity: 0.8;
421
421
  `;function wue(e){const{disablePadding:t,alertPrompts:n}=e,r=Em(),a=e.labelOrientation??r.formLayout,o=e.numberOfColumns?e.numberOfColumns:r.formColumns,i=e.isCompact,l=w.useRef(null),[s,c]=w.useState("1fr"),p=w.useCallback(()=>{if(!l.current)return;const g=l.current.clientWidth;let v=Math.max(1+Math.floor((g-350)/374),1);switch(v<1&&(v=1),o){case"multiple":break;case"two":v=Math.min(v,2);break;default:v=1}switch(a){case"horizontal":v=1;break}c(()=>new Array(v).fill("1fr").join(" "))},[o,a]);nd(l,p);let f=I.jsxs(DJe,{padding:{default:"noPadding"},children:[n&&n.length>0&&n.map((g,v)=>I.jsx(Q.Alert,{style:{margin:12},isInline:!0,title:g,variant:"warning","data-cy":g},v)),I.jsx("div",{ref:l,children:I.jsx(Q.DescriptionList,{style:{padding:t?void 0:24,gridTemplateColumns:s},isCompact:i,children:e.children})})]});return e.disableScroll||(f=I.jsx(cu,{children:f})),f}const DJe=Cn(Q.PageSection)`
422
422
  background-color: transparent;
423
- `;var kr=(e=>(e.Table="table",e.List="list",e.Cards="cards",e))(kr||{}),jm=(e=>(e.description="description",e.expanded="expanded",e.hidden="hidden",e))(jm||{}),Cue=(e=>(e.name="name",e.subtitle="subtitle",e.description="description",e.hidden="hidden",e.primary="primary",e.secondary="secondary",e))(Cue||{}),kue=(e=>(e.name="name",e.subtitle="subtitle",e.description="description",e.hidden="hidden",e))(kue||{}),Tue=(e=>(e.hidden="hidden",e))(Tue||{}),Iue=(e=>(e.hidden="hidden",e))(Iue||{}),TR=(e=>(e.last="last",e))(TR||{});function si(e){var r;const{item:t,column:n}=e;if(!n)return I.jsx(I.Fragment,{});switch(n.type){case"text":return I.jsx(Tee,{text:n.value(t),to:(r=n.to)==null?void 0:r.call(n,t)});case"description":return I.jsx("div",{style:{minWidth:200,whiteSpace:"normal"},children:n.value(t)});case"datetime":return I.jsx(Cee,{value:n.value(t)});case"count":return I.jsx(I.Fragment,{children:n.value(t)??"-"});case"labels":return I.jsx(kee,{labels:n.value(t)??[]});default:return I.jsx(I.Fragment,{children:n.cell(t)})}}function gj(e){return w.useMemo(()=>e.filter(t=>!(t.table==="hidden"||t.table==="description"||t.table==="expanded")),[e])}function Rue(e){return w.useMemo(()=>e.filter(t=>t.list!=="hidden"),[e])}function Oue(e){return w.useMemo(()=>e.filter(t=>t.card!=="hidden"),[e])}function IR(e){return w.useMemo(()=>e.filter(t=>t.modal!=="hidden"),[e])}function MJe(e){return e=w.useMemo(()=>e.filter(t=>t.dashboard!=="hidden"),[e]),e=Pue(e),e=Due(e),e}function LJe(e,t){const n=gj(e),r=Rue(e),a=Oue(e);switch(t){case kr.Table:return n;case kr.List:return r;case kr.Cards:return a}}function Nue(e){return w.useMemo(()=>e.filter(t=>t.table==="hidden"?!1:t.table==="description"),[e])}function Aue(e){return w.useMemo(()=>e.filter(t=>t.table==="hidden"?!1:t.table==="expanded"),[e])}function Pue(e){return w.useMemo(()=>e.map(t=>({...t,sort:void 0})),[e])}function Due(e){return w.useMemo(()=>e.map(t=>({...t,table:t.table==="expanded"?void 0:t.table})),[e])}function Mue(e){const{item:t,columns:n,children:r}=e,a=w.useMemo(()=>n.filter(l=>{if(!t)return!1;if("value"in l&&l.value){const s=l.value(t);if(s==null||typeof s=="string"&&s.trim().length===0)return!1}return!0}),[n,t]),o=w.useMemo(()=>a.filter(l=>l.priority!==TR.last),[a]),i=w.useMemo(()=>a.filter(l=>l.priority===TR.last),[a]);return!t||!a.length?null:I.jsxs(I.Fragment,{children:[o.map(l=>I.jsx(ry,{helpText:l.helpText,label:l.header,children:I.jsx(si,{column:l,item:t})},l.id??l.header)),r||null,i.map(l=>I.jsx(ry,{label:l.header,children:I.jsx(si,{column:l,item:t})},l.id??l.header))]})}class BJe{constructor(t){bt(this,"value");bt(this,"next");this.value=t}}class FJe{constructor(){GP(this,Ws);GP(this,Gh);GP(this,qh);this.clear()}enqueue(t){const n=new BJe(t);ou(this,Ws)?(ou(this,Gh).next=n,fm(this,Gh,n)):(fm(this,Ws,n),fm(this,Gh,n)),fZ(this,qh)._++}dequeue(){const t=ou(this,Ws);if(t)return fm(this,Ws,ou(this,Ws).next),fZ(this,qh)._--,t.value}peek(){if(ou(this,Ws))return ou(this,Ws).value}clear(){fm(this,Ws,void 0),fm(this,Gh,void 0),fm(this,qh,0)}get size(){return ou(this,qh)}*[Symbol.iterator](){let t=ou(this,Ws);for(;t;)yield t.value,t=t.next}*drain(){for(;ou(this,Ws);)yield this.dequeue()}}Ws=new WeakMap,Gh=new WeakMap,qh=new WeakMap;function jJe(e){Lue(e);const t=new FJe;let n=0;const r=()=>{n<e&&t.size>0&&(t.dequeue()(),n++)},a=()=>{n--,r()},o=async(s,c,p)=>{const f=(async()=>s(...p))();c(f);try{await f}catch{}a()},i=(s,c,p)=>{new Promise(f=>{t.enqueue(f)}).then(o.bind(void 0,s,c,p)),(async()=>(await Promise.resolve(),n<e&&r()))()},l=(s,...c)=>new Promise(p=>{i(s,p,c)});return Object.defineProperties(l,{activeCount:{get:()=>n},pendingCount:{get:()=>t.size},clearQueue:{value(){t.clear()}},concurrency:{get:()=>e,set(s){Lue(s),e=s,queueMicrotask(()=>{for(;n<e&&t.size>0;)r()})}}}),l}function Lue(e){if(!((Number.isInteger(e)||e===Number.POSITIVE_INFINITY)&&e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up")}const yE=e=>{const t=["json"],n=["non_field_errors"],r=[],a=[];switch(typeof e){case"string":r.push({message:e});break;case"object":if(e===null)break;if(Array.isArray(e)){for(const o of e)typeof o=="string"&&r.push({message:o});break}for(const o of t)if(o in e&&typeof e[o]=="object"&&e[o]!==null)for(const i in e[o]){const l=e[o][i];if(n.includes(i)){if(typeof l=="string")r.push({message:l});else if(Array.isArray(l))for(const s of l)typeof s=="string"&&r.push({message:s})}else if(typeof l=="string")i==="detail"?r.push({message:l}):a.push({name:i,message:l});else if(Array.isArray(l))for(const s of l)typeof s=="string"&&a.push({name:i,message:s})}else e instanceof Error&&r.push({message:e.message});break}return{genericErrors:r,fieldErrors:a}};function RR(e,t){const[n,r]=w.useState(()=>e);w.useEffect(()=>r(e),[e]);const a=w.useCallback(o=>{t?t(o):r(o)},[t]);return[n,a]}function Bue(e){const{t}=jn(),{id:n,icon:r,placeholder:a,values:o,onSelect:i,options:l,variant:s,disableClearSelection:c,maxChipSize:p,queryLabel:f,compareOptionValues:g}=e,[v,b]=RR(e.open??!1,e.setOpen),[y,x]=RR(e.searchValue??"",e.setSearchValue),E=w.useRef(null),C=w.useMemo(()=>{const B=[];for(const j of o??[]){const q=l.find(Y=>g?g(Y.value,j):Y.value===j);q?B.push(q):f&&j!==void 0&&B.push({label:f(j),value:j})}return B},[l,f,o,g]),R=B=>s==="count"&&B.length>0?I.jsx(Q.Badge,{children:t("{{count}} selected",{count:B.length})}):null,N=()=>C.length===0?I.jsx("span",{style:{opacity:.7},children:a}):s==="count"?null:I.jsxs(Q.LabelGroup,{numLabels:99,children:[C.map(B=>I.jsx(Q.Label,{variant:"outline",textMaxWidth:p,onClose:()=>i(j=>j==null?void 0:j.filter(q=>g?!g(B.value,q):B.value!==q)),children:B.label},B.label)),!c&&I.jsx(Wt.TimesIcon,{role:"button","aria-hidden":!0,onClick:()=>i(()=>[]),style:{verticalAlign:"middle",marginLeft:8}})]}),O=B=>I.jsx(Q.Tooltip,{content:e.isDisabled,trigger:e.isDisabled?void 0:"manual",children:I.jsx(Q.MenuToggle,{id:n,ref:B,onClick:()=>b(!v),isExpanded:v,badge:R(C),onKeyDown:j=>{switch(j.key){case"Tab":case"Enter":case"Shift":break;default:b(!0),setTimeout(()=>{L.current&&(L.current.focus(),L.current.value=j.key)},1);break}},"data-cy":n,icon:r,isDisabled:!!e.isDisabled,isFullWidth:!0,style:{paddingTop:2,paddingBottom:4,minHeight:36},children:N()})}),P=w.useMemo(()=>C.map(B=>B.label),[C]),M=w.useCallback((B,j)=>{i(q=>{const Y=l.find(K=>K.key!==void 0?K.key===j:K.label===j);return Y&&((q==null?void 0:q.find(K=>g?g(K,Y.value):K===Y.value))!==void 0?q=q.filter(K=>g?!g(K,Y.value):K!==Y.value):(q=q?[...q]:[],q.push(Y.value))),q})},[i,l,g]),L=w.useRef(null);w.useEffect(()=>{v||x("")},[v,x]);const W=w.useMemo(()=>{const B=l.filter(j=>y===""?!0:j.label.toLowerCase().includes(y.toLowerCase()));return e.disableSortOptions||B.sort((j,q)=>j.label.toLowerCase().localeCompare(q.label.toLowerCase())),B},[l,e.disableSortOptions,y]),G=w.useMemo(()=>{if(l.some(j=>!!j.group)){const j={};for(const q of W){const Y=q.group??"";j[Y]||(j[Y]=[]),j[Y].push(q)}return j}},[l,W]);return I.jsxs(Q.Select,{id:`${n}-select`,selected:P,onSelect:M,isOpen:v,onOpenChange:b,toggle:O,popperProps:{appendTo:()=>document.body,preventOverflow:!0,enableFlip:!0,maxWidth:e.disableMaxDropdownWidth?void 0:"trigger"},innerRef:E,children:[I.jsx(Q.MenuSearch,{children:I.jsx(Q.MenuSearchInput,{"data-cy":"search-input",children:I.jsx(Q.SearchInput,{id:`${n}-search`,ref:L,value:y,onChange:(B,j)=>x(j),onClear:B=>{B.stopPropagation(),x("")},resultsCount:W.length!==l.length?`${W.length} / ${l.length}`:void 0,onKeyDown:B=>{var j;switch(B.key){case"ArrowDown":case"Tab":{B.preventDefault(),B.stopPropagation();const q=(j=E==null?void 0:E.current)==null?void 0:j.querySelector("li button:not(:disabled),li input:not(:disabled)");q&&q.focus();break}}}})})}),I.jsx(Q.Divider,{}),W.length===0?I.jsx(I.Fragment,{children:e.isLoading?I.jsx(Q.Bullseye,{style:{padding:16},children:I.jsx(Q.Spinner,{size:"lg"})}):I.jsx(Q.SelectOption,{isDisabled:!0,children:t("No results found")},"no result")}):I.jsx(UJe,{children:G?I.jsx(I.Fragment,{children:Object.keys(G).map(B=>I.jsx(Q.SelectGroup,{label:B,children:I.jsx(Fue,{searchRef:L,options:W,selectedOptions:C})},B))}):I.jsx(Fue,{searchRef:L,options:W,selectedOptions:C})}),e.footer&&I.jsx(Q.MenuFooter,{children:e.footer})]})}function Fue(e){return I.jsx(Q.SelectList,{onKeyDown:t=>{var n;switch(t.key){case"Tab":t.preventDefault(),t.stopPropagation(),(n=e.searchRef.current)==null||n.focus();break}},children:e.options.map(t=>{const n=du(t);return I.jsx(Q.SelectOption,{id:n,icon:t.icon,value:t.key!==void 0?t.key:t.label,description:t.description?I.jsx("div",{style:{maxWidth:300},children:t.description}):void 0,hasCheckbox:!0,isSelected:e.selectedOptions.includes(t),"data-cy":n,children:t.label},t.key!==void 0?t.key:t.label)})})}const UJe=Cn(cu)`
423
+ `;var kr=(e=>(e.Table="table",e.List="list",e.Cards="cards",e))(kr||{}),jm=(e=>(e.description="description",e.expanded="expanded",e.hidden="hidden",e))(jm||{}),Cue=(e=>(e.name="name",e.subtitle="subtitle",e.description="description",e.hidden="hidden",e.primary="primary",e.secondary="secondary",e))(Cue||{}),kue=(e=>(e.name="name",e.subtitle="subtitle",e.description="description",e.hidden="hidden",e))(kue||{}),Tue=(e=>(e.hidden="hidden",e))(Tue||{}),Iue=(e=>(e.hidden="hidden",e))(Iue||{}),TR=(e=>(e.last="last",e))(TR||{});function si(e){var r;const{item:t,column:n}=e;if(!n)return I.jsx(I.Fragment,{});switch(n.type){case"text":return I.jsx(Tee,{text:n.value(t),to:(r=n.to)==null?void 0:r.call(n,t)});case"description":return I.jsx("div",{style:{minWidth:200,whiteSpace:"normal"},children:n.value(t)});case"datetime":return I.jsx(Cee,{value:n.value(t)});case"count":return I.jsx(I.Fragment,{children:n.value(t)??"-"});case"labels":return I.jsx(kee,{labels:n.value(t)??[]});default:return I.jsx(I.Fragment,{children:n.cell(t)})}}function gj(e){return w.useMemo(()=>e.filter(t=>!(t.table==="hidden"||t.table==="description"||t.table==="expanded")),[e])}function Rue(e){return w.useMemo(()=>e.filter(t=>t.list!=="hidden"),[e])}function Oue(e){return w.useMemo(()=>e.filter(t=>t.card!=="hidden"),[e])}function IR(e){return w.useMemo(()=>e.filter(t=>t.modal!=="hidden"),[e])}function MJe(e){return e=w.useMemo(()=>e.filter(t=>t.dashboard!=="hidden"),[e]),e=Pue(e),e=Due(e),e}function LJe(e,t){const n=gj(e),r=Rue(e),a=Oue(e);switch(t){case kr.Table:return n;case kr.List:return r;case kr.Cards:return a}}function Nue(e){return w.useMemo(()=>e.filter(t=>t.table==="hidden"?!1:t.table==="description"),[e])}function Aue(e){return w.useMemo(()=>e.filter(t=>t.table==="hidden"?!1:t.table==="expanded"),[e])}function Pue(e){return w.useMemo(()=>e.map(t=>({...t,sort:void 0})),[e])}function Due(e){return w.useMemo(()=>e.map(t=>({...t,table:t.table==="expanded"?void 0:t.table})),[e])}function Mue(e){const{item:t,columns:n,children:r}=e,a=w.useMemo(()=>n.filter(l=>{if(!t)return!1;if("value"in l&&l.value){const s=l.value(t);if(s==null||typeof s=="string"&&s.trim().length===0)return!1}return!0}),[n,t]),o=w.useMemo(()=>a.filter(l=>l.priority!==TR.last),[a]),i=w.useMemo(()=>a.filter(l=>l.priority===TR.last),[a]);return!t||!a.length?null:I.jsxs(I.Fragment,{children:[o.map(l=>I.jsx(ry,{helpText:l.helpText,label:l.header,fullWidth:l.detailsFullWidth,children:I.jsx(si,{column:l,item:t})},l.id??l.header)),r||null,i.map(l=>I.jsx(ry,{label:l.header,children:I.jsx(si,{column:l,item:t})},l.id??l.header))]})}class BJe{constructor(t){bt(this,"value");bt(this,"next");this.value=t}}class FJe{constructor(){GP(this,Ws);GP(this,Gh);GP(this,qh);this.clear()}enqueue(t){const n=new BJe(t);ou(this,Ws)?(ou(this,Gh).next=n,fm(this,Gh,n)):(fm(this,Ws,n),fm(this,Gh,n)),fZ(this,qh)._++}dequeue(){const t=ou(this,Ws);if(t)return fm(this,Ws,ou(this,Ws).next),fZ(this,qh)._--,t.value}peek(){if(ou(this,Ws))return ou(this,Ws).value}clear(){fm(this,Ws,void 0),fm(this,Gh,void 0),fm(this,qh,0)}get size(){return ou(this,qh)}*[Symbol.iterator](){let t=ou(this,Ws);for(;t;)yield t.value,t=t.next}*drain(){for(;ou(this,Ws);)yield this.dequeue()}}Ws=new WeakMap,Gh=new WeakMap,qh=new WeakMap;function jJe(e){Lue(e);const t=new FJe;let n=0;const r=()=>{n<e&&t.size>0&&(t.dequeue()(),n++)},a=()=>{n--,r()},o=async(s,c,p)=>{const f=(async()=>s(...p))();c(f);try{await f}catch{}a()},i=(s,c,p)=>{new Promise(f=>{t.enqueue(f)}).then(o.bind(void 0,s,c,p)),(async()=>(await Promise.resolve(),n<e&&r()))()},l=(s,...c)=>new Promise(p=>{i(s,p,c)});return Object.defineProperties(l,{activeCount:{get:()=>n},pendingCount:{get:()=>t.size},clearQueue:{value(){t.clear()}},concurrency:{get:()=>e,set(s){Lue(s),e=s,queueMicrotask(()=>{for(;n<e&&t.size>0;)r()})}}}),l}function Lue(e){if(!((Number.isInteger(e)||e===Number.POSITIVE_INFINITY)&&e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up")}const yE=e=>{const t=["json"],n=["non_field_errors"],r=[],a=[];switch(typeof e){case"string":r.push({message:e});break;case"object":if(e===null)break;if(Array.isArray(e)){for(const o of e)typeof o=="string"&&r.push({message:o});break}for(const o of t)if(o in e&&typeof e[o]=="object"&&e[o]!==null)for(const i in e[o]){const l=e[o][i];if(n.includes(i)){if(typeof l=="string")r.push({message:l});else if(Array.isArray(l))for(const s of l)typeof s=="string"&&r.push({message:s})}else if(typeof l=="string")i==="detail"?r.push({message:l}):a.push({name:i,message:l});else if(Array.isArray(l))for(const s of l)typeof s=="string"&&a.push({name:i,message:s})}else e instanceof Error&&r.push({message:e.message});break}return{genericErrors:r,fieldErrors:a}};function RR(e,t){const[n,r]=w.useState(()=>e);w.useEffect(()=>r(e),[e]);const a=w.useCallback(o=>{t?t(o):r(o)},[t]);return[n,a]}function Bue(e){const{t}=jn(),{id:n,icon:r,placeholder:a,values:o,onSelect:i,options:l,variant:s,disableClearSelection:c,maxChipSize:p,queryLabel:f,compareOptionValues:g}=e,[v,b]=RR(e.open??!1,e.setOpen),[y,x]=RR(e.searchValue??"",e.setSearchValue),E=w.useRef(null),C=w.useMemo(()=>{const B=[];for(const j of o??[]){const q=l.find(Y=>g?g(Y.value,j):Y.value===j);q?B.push(q):f&&j!==void 0&&B.push({label:f(j),value:j})}return B},[l,f,o,g]),R=B=>s==="count"&&B.length>0?I.jsx(Q.Badge,{children:t("{{count}} selected",{count:B.length})}):null,N=()=>C.length===0?I.jsx("span",{style:{opacity:.7},children:a}):s==="count"?null:I.jsxs(Q.LabelGroup,{numLabels:99,children:[C.map(B=>I.jsx(Q.Label,{variant:"outline",textMaxWidth:p,onClose:()=>i(j=>j==null?void 0:j.filter(q=>g?!g(B.value,q):B.value!==q)),children:B.label},B.label)),!c&&I.jsx(Wt.TimesIcon,{role:"button","aria-hidden":!0,onClick:()=>i(()=>[]),style:{verticalAlign:"middle",marginLeft:8}})]}),O=B=>I.jsx(Q.Tooltip,{content:e.isDisabled,trigger:e.isDisabled?void 0:"manual",children:I.jsx(Q.MenuToggle,{id:n,ref:B,onClick:()=>b(!v),isExpanded:v,badge:R(C),onKeyDown:j=>{switch(j.key){case"Tab":case"Enter":case"Shift":break;default:b(!0),setTimeout(()=>{L.current&&(L.current.focus(),L.current.value=j.key)},1);break}},"data-cy":n,icon:r,isDisabled:!!e.isDisabled,isFullWidth:!0,style:{paddingTop:2,paddingBottom:4,minHeight:36},children:N()})}),P=w.useMemo(()=>C.map(B=>B.label),[C]),M=w.useCallback((B,j)=>{i(q=>{const Y=l.find(K=>K.key!==void 0?K.key===j:K.label===j);return Y&&((q==null?void 0:q.find(K=>g?g(K,Y.value):K===Y.value))!==void 0?q=q.filter(K=>g?!g(K,Y.value):K!==Y.value):(q=q?[...q]:[],q.push(Y.value))),q})},[i,l,g]),L=w.useRef(null);w.useEffect(()=>{v||x("")},[v,x]);const W=w.useMemo(()=>{const B=l.filter(j=>y===""?!0:j.label.toLowerCase().includes(y.toLowerCase()));return e.disableSortOptions||B.sort((j,q)=>j.label.toLowerCase().localeCompare(q.label.toLowerCase())),B},[l,e.disableSortOptions,y]),G=w.useMemo(()=>{if(l.some(j=>!!j.group)){const j={};for(const q of W){const Y=q.group??"";j[Y]||(j[Y]=[]),j[Y].push(q)}return j}},[l,W]);return I.jsxs(Q.Select,{id:`${n}-select`,selected:P,onSelect:M,isOpen:v,onOpenChange:b,toggle:O,popperProps:{appendTo:()=>document.body,preventOverflow:!0,enableFlip:!0,maxWidth:e.disableMaxDropdownWidth?void 0:"trigger"},innerRef:E,children:[I.jsx(Q.MenuSearch,{children:I.jsx(Q.MenuSearchInput,{"data-cy":"search-input",children:I.jsx(Q.SearchInput,{id:`${n}-search`,ref:L,value:y,onChange:(B,j)=>x(j),onClear:B=>{B.stopPropagation(),x("")},resultsCount:W.length!==l.length?`${W.length} / ${l.length}`:void 0,onKeyDown:B=>{var j;switch(B.key){case"ArrowDown":case"Tab":{B.preventDefault(),B.stopPropagation();const q=(j=E==null?void 0:E.current)==null?void 0:j.querySelector("li button:not(:disabled),li input:not(:disabled)");q&&q.focus();break}}}})})}),I.jsx(Q.Divider,{}),W.length===0?I.jsx(I.Fragment,{children:e.isLoading?I.jsx(Q.Bullseye,{style:{padding:16},children:I.jsx(Q.Spinner,{size:"lg"})}):I.jsx(Q.SelectOption,{isDisabled:!0,children:t("No results found")},"no result")}):I.jsx(UJe,{children:G?I.jsx(I.Fragment,{children:Object.keys(G).map(B=>I.jsxs(Q.SelectGroup,{label:B,children:[I.jsx(Fue,{searchRef:L,options:W.filter(j=>j.group===B),selectedOptions:C.filter(j=>j.group===B)}),I.jsx(Q.Divider,{})]},B))}):I.jsx(Fue,{searchRef:L,options:W,selectedOptions:C})}),e.footer&&I.jsx(Q.MenuFooter,{children:e.footer})]})}function Fue(e){return I.jsx(Q.SelectList,{onKeyDown:t=>{var n;switch(t.key){case"Tab":t.preventDefault(),t.stopPropagation(),(n=e.searchRef.current)==null||n.focus();break}},children:e.options.map(t=>{const n=du(t);return I.jsx(Q.SelectOption,{id:n,icon:t.icon,value:t.key!==void 0?t.key:t.label,description:t.description?I.jsx("div",{style:{maxWidth:300},children:t.description}):void 0,hasCheckbox:!0,isSelected:e.selectedOptions.includes(t),"data-cy":n,children:t.label},t.key!==void 0?t.key:t.label)})})}const UJe=Cn(cu)`
424
424
  max-height: 40vh;
425
425
  `;function zJe(e){const{t}=jn(),[n,r]=w.useState(!1),[a,o]=w.useState(!1),[i,l]=w.useState(),[s,c]=w.useState(0),[p,f]=w.useState(),[g,v]=w.useState(!1),b=w.useRef(),[y,x]=w.useState(""),E=w.useCallback(Q.debounce(L=>x(L),200),[]),C=w.useRef(e.queryOptions).current,R=w.useRef(null),N=w.useCallback(()=>{R.current&&R.current.abort();const L=new AbortController;return R.current=L,r(()=>(o(!1),l(void 0),f(W=>{if(W)return W}),C({next:b.current,signal:L.signal,search:y}).then(W=>{L.signal.aborted||(b.current=W.next,W.remaining||o(!0),f(G=>{if(L.signal.aborted)return G;let B=[...G??[],...W.options];const j=new Set;return B=B.filter(q=>j.has(q.value)?!1:(j.add(q.value),!0)),B.sort((q,Y)=>{const K=q.label.toLowerCase(),ae=Y.label.toLowerCase();return K<ae?-1:K>ae?1:0}),c(W.remaining+B.length),B}))}).catch(W=>{L.signal.aborted||l(W instanceof Error?W:new Error(t("Unknown error")))}).finally(()=>{L.signal.aborted||r(!1)}),!0)),()=>L.abort()},[C,y,t]),O=w.useCallback(L=>{L.preventDefault(),L.stopPropagation(),N()},[N]),P=w.useCallback(L=>{L.preventDefault(),L.stopPropagation(),c(0),f([]),b.current=void 0,N()},[N]);w.useEffect(()=>{g&&(c(0),f([]),b.current=void 0,N())},[g,N]);const M=I.jsxs(Q.Stack,{hasGutter:!0,children:[I.jsxs(Q.Flex,{children:[I.jsx(Q.FlexItem,{grow:{default:"grow"},children:I.jsxs(Q.ActionList,{children:[e.onBrowse&&I.jsx(Q.ActionListItem,{children:I.jsx(Q.Button,{id:"browse",onClick:L=>{var W;L.preventDefault(),L.stopPropagation(),v(!1),(W=e.onBrowse)==null||W.call(e)},children:t("Browse")})}),!a&&I.jsx(Q.ActionListItem,{children:I.jsx(Q.Button,{id:"load-more",isLoading:n,onClick:O,isDisabled:n,children:t(n?"Loading...":"Load more")})})]})}),!a&&s!==0&&I.jsx(Q.FlexItem,{children:t("Loaded {{count}} of {{total}}",{count:(p==null?void 0:p.length)??0,total:s})})]}),e.footer]});return i?I.jsx(GJe,{id:e.id,variant:"secondary",isDanger:!0,icon:I.jsx(Wt.SyncAltIcon,{}),iconPosition:"right",onClick:P,children:typeof e.queryErrorText=="function"?e.queryErrorText(i):e.queryErrorText??t("Error loading options")}):I.jsx(Bue,{id:e.id,icon:e.icon,placeholder:e.placeholder,options:p??[],values:e.values,onSelect:e.onSelect,variant:e.variant,footer:M,open:g,setOpen:v,searchValue:y,setSearchValue:E,isLoading:n,disableClearSelection:e.disableClearSelection,disableClearChips:e.disableClearChips,queryLabel:e.queryLabel,compareOptionValues:e.compareOptionValues,disableMaxDropdownWidth:e.disableMaxDropdownWidth})}const GJe=Cn(Q.Button)`
426
426
  width: 100%;
427
427
  text-align: left;
428
- `;var OR={exports:{}},jue;function qJe(){if(jue)return OR.exports;jue=1;function e(t,n=100,r={}){if(typeof t!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof t}\`.`);if(n<0)throw new RangeError("`wait` must not be negative.");const{immediate:a}=typeof r=="boolean"?{immediate:r}:r;let o,i,l,s,c;function p(){const v=o,b=i;return o=void 0,i=void 0,c=t.apply(v,b),c}function f(){const v=Date.now()-s;v<n&&v>=0?l=setTimeout(f,n-v):(l=void 0,a||(c=p()))}const g=function(...v){if(o&&this!==o&&Object.getPrototypeOf(this)===Object.getPrototypeOf(o))throw new Error("Debounced method called with different contexts of the same prototype.");o=this,i=v,s=Date.now();const b=a&&!l;return l||(l=setTimeout(f,n)),b&&(c=p()),c};return Object.defineProperty(g,"isPending",{get(){return l!==void 0}}),g.clear=()=>{l&&(clearTimeout(l),l=void 0)},g.flush=()=>{l&&g.trigger()},g.trigger=()=>{c=p(),g.clear()},g}return OR.exports.debounce=e,OR.exports=e,OR.exports}var HJe=qJe();const vj=er(HJe);function Vp(e){const{t}=jn(),{id:n,icon:r,value:a,onSelect:o,options:i,placeholder:l,queryLabel:s}=e,[c,p]=RR(e.open??!1,e.setOpen);w.useEffect(()=>{c&&setTimeout(()=>{var O;return(O=C.current)==null?void 0:O.focus()},1)},[c]);const[f,g]=RR(e.searchValue??"",e.setSearchValue),v=w.useRef(null),b=w.useMemo(()=>i.find(O=>a===O.value),[i,a]),y=w.useMemo(()=>{let O=b==null?void 0:b.label;return!O&&a!==void 0&&a!==""&&a!==null&&(O=s==null?void 0:s(a)),O},[s,b==null?void 0:b.label,a]),x=O=>I.jsx(Q.Tooltip,{content:e.isDisabled,trigger:e.isDisabled?void 0:"manual",children:I.jsxs(Q.Flex,{flexWrap:{default:"nowrap"},children:[I.jsx(Q.MenuToggle,{id:n,"data-cy":n,ref:O,icon:r??(b==null?void 0:b.icon),onClick:()=>p(!c),isExpanded:c,isDisabled:!!e.isDisabled,style:{pointerEvents:e.isDisabled?"unset":void 0,cursor:e.isDisabled?"not-allowed":void 0},onKeyDown:P=>{switch(P.key){case"Tab":case"Shift":break;default:P.preventDefault(),P.key.length===1&&g(P.key),p(!0),setTimeout(()=>{C.current&&P.key.length===1&&(C.current.value=P.key+C.current.value)},1);break}},isFullWidth:!0,children:y||I.jsx("span",{style:{opacity:.7},children:l})}),!e.isRequired&&y&&I.jsx(Q.Button,{icon:I.jsx(Q.Icon,{size:"md",style:{opacity:.7},children:I.jsx(Wt.TimesIcon,{"aria-hidden":!0,style:{padding:0,margin:0}})}),variant:"control","data-cy":"reset",onClick:()=>{var P;p(!1),o(null),O!==null&&"current"in O&&((P=O.current)==null||P.focus())}})]})}),E=w.useCallback((O,P)=>{const M=i.find(L=>L.key!==void 0?L.key===P:L.label===P);M&&(o(M.value),p(!1))},[o,i,p]),C=w.useRef(null);w.useEffect(()=>{c||g("")},[c,g]),w.useEffect(()=>{!e.disableAutoSelect&&e.isRequired&&!b&&i.length===1&&o(i[0].value)},[o,i,e.disableAutoSelect,e.isRequired,b]);const R=w.useMemo(()=>{let O=i;return e.setSearchValue||(O=O.filter(P=>f===""?!0:P.label.toLowerCase().includes(f.toLowerCase()))),e.disableSortOptions||(O=O.sort((P,M)=>{const L=P.label.toLowerCase(),W=M.label.toLowerCase();return L<W?-1:L>W?1:0})),O},[i,e.disableSortOptions,e.setSearchValue,f]),N=w.useMemo(()=>{if(i.some(P=>!!P.group)){const P={};for(const M of R){const L=M.group??"";P[L]||(P[L]=[]),P[L].push(M)}return P}},[i,R]);return I.jsx(zue.Provider,{value:{open:c,setOpen:p},children:I.jsxs(Q.Select,{id:`${n}-select`,selected:b,onSelect:E,isOpen:c,onOpenChange:p,toggle:e.toggle??x,popperProps:{appendTo:()=>document.body,preventOverflow:!0,enableFlip:!0,maxWidth:e.disableMaxDropdownWidth?void 0:"trigger"},shouldFocusToggleOnSelect:!0,innerRef:v,children:[I.jsx(Q.MenuSearch,{children:I.jsx(Q.MenuSearchInput,{"data-cy":"search-input",children:I.jsx(Q.SearchInput,{id:`${n}-search`,ref:C,value:f,onChange:(O,P)=>g(P),onClear:O=>{O.stopPropagation(),g("")},resultsCount:R.length!==i.length?`${R.length} / ${i.length}`:void 0,onKeyDown:O=>{var P;switch(O.key){case"ArrowDown":case"Tab":{O.preventDefault(),O.stopPropagation();const M=(P=v==null?void 0:v.current)==null?void 0:P.querySelector("li button:not(:disabled),li input:not(:disabled)");M&&M.focus();break}}}})})}),I.jsx(Q.Divider,{}),R.length===0?I.jsx(I.Fragment,{children:e.isLoading?I.jsx(Q.Bullseye,{style:{padding:16},children:I.jsx(Q.Spinner,{size:"lg"})}):I.jsx(Q.SelectOption,{isDisabled:!0,children:t("No results found")},"no result")}):I.jsx(WJe,{children:N?I.jsx(I.Fragment,{children:Object.keys(N).map(O=>I.jsx(Q.SelectGroup,{label:O,children:I.jsx(Uue,{searchRef:C,options:N[O]})},O))}):I.jsx(Uue,{searchRef:C,options:R})}),e.footer&&I.jsx(Q.MenuFooter,{children:e.footer})]})})}function Uue(e){return I.jsx(Q.SelectList,{onKeyDown:t=>{var n;switch(t.key){case"Tab":t.preventDefault(),t.stopPropagation(),(n=e.searchRef.current)==null||n.focus();break}},children:e.options.map(t=>{const n=du(t);return I.jsx(Q.SelectOption,{id:n,icon:t.icon,value:t.key!==void 0?t.key:t.label,description:t.description,"data-cy":n,children:t.label},t.key!==void 0?t.key:t.label)})})}const WJe=Cn(cu)`
428
+ `;var OR={exports:{}},jue;function qJe(){if(jue)return OR.exports;jue=1;function e(t,n=100,r={}){if(typeof t!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof t}\`.`);if(n<0)throw new RangeError("`wait` must not be negative.");const{immediate:a}=typeof r=="boolean"?{immediate:r}:r;let o,i,l,s,c;function p(){const v=o,b=i;return o=void 0,i=void 0,c=t.apply(v,b),c}function f(){const v=Date.now()-s;v<n&&v>=0?l=setTimeout(f,n-v):(l=void 0,a||(c=p()))}const g=function(...v){if(o&&this!==o&&Object.getPrototypeOf(this)===Object.getPrototypeOf(o))throw new Error("Debounced method called with different contexts of the same prototype.");o=this,i=v,s=Date.now();const b=a&&!l;return l||(l=setTimeout(f,n)),b&&(c=p()),c};return Object.defineProperty(g,"isPending",{get(){return l!==void 0}}),g.clear=()=>{l&&(clearTimeout(l),l=void 0)},g.flush=()=>{l&&g.trigger()},g.trigger=()=>{c=p(),g.clear()},g}return OR.exports.debounce=e,OR.exports=e,OR.exports}var HJe=qJe();const vj=er(HJe);function Vp(e){const{t}=jn(),{id:n,icon:r,value:a,onSelect:o,options:i,placeholder:l,queryLabel:s}=e,[c,p]=RR(e.open??!1,e.setOpen);w.useEffect(()=>{c&&setTimeout(()=>{var O;return(O=C.current)==null?void 0:O.focus()},1)},[c]);const[f,g]=RR(e.searchValue??"",e.setSearchValue),v=w.useRef(null),b=w.useMemo(()=>i.find(O=>a===O.value),[i,a]),y=w.useMemo(()=>{let O=b==null?void 0:b.label;return!O&&a!==void 0&&a!==""&&a!==null&&(O=s==null?void 0:s(a)),O},[s,b==null?void 0:b.label,a]),x=O=>I.jsx(Q.Tooltip,{content:e.isDisabled,trigger:e.isDisabled?void 0:"manual",children:I.jsxs(Q.Flex,{flexWrap:{default:"nowrap"},children:[I.jsx(Q.MenuToggle,{id:n,"data-cy":n,"data-testid":n,ref:O,icon:r??(b==null?void 0:b.icon),onClick:()=>p(!c),isExpanded:c,isDisabled:!!e.isDisabled,style:{pointerEvents:e.isDisabled?"unset":void 0,cursor:e.isDisabled?"not-allowed":void 0},onKeyDown:P=>{switch(P.key){case"Tab":case"Shift":break;default:P.preventDefault(),P.key.length===1&&g(P.key),p(!0),setTimeout(()=>{C.current&&P.key.length===1&&(C.current.value=P.key+C.current.value)},1);break}},isFullWidth:!0,children:y||I.jsx("span",{style:{opacity:.7},children:l})}),!e.isRequired&&y&&I.jsx(Q.Button,{icon:I.jsx(Q.Icon,{size:"md",style:{opacity:.7},children:I.jsx(Wt.TimesIcon,{"aria-hidden":!0,style:{padding:0,margin:0}})}),variant:"control","data-cy":"reset",onClick:()=>{var P;p(!1),o(null),O!==null&&"current"in O&&((P=O.current)==null||P.focus())}})]})}),E=w.useCallback((O,P)=>{const M=i.find(L=>L.key!==void 0?L.key===P:L.label===P);M&&(o(M.value),p(!1))},[o,i,p]),C=w.useRef(null);w.useEffect(()=>{c||g("")},[c,g]),w.useEffect(()=>{!e.disableAutoSelect&&e.isRequired&&!b&&i.length===1&&o(i[0].value)},[o,i,e.disableAutoSelect,e.isRequired,b]);const R=w.useMemo(()=>{let O=i;return e.setSearchValue||(O=O.filter(P=>f===""?!0:P.label.toLowerCase().includes(f.toLowerCase()))),e.disableSortOptions||(O=O.sort((P,M)=>{const L=P.label.toLowerCase(),W=M.label.toLowerCase();return L<W?-1:L>W?1:0})),O},[i,e.disableSortOptions,e.setSearchValue,f]),N=w.useMemo(()=>{if(i.some(P=>!!P.group)){const P={};for(const M of R){const L=M.group??"";P[L]||(P[L]=[]),P[L].push(M)}return P}},[i,R]);return I.jsx(zue.Provider,{value:{open:c,setOpen:p},children:I.jsxs(Q.Select,{id:`${n}-select`,selected:b,onSelect:E,isOpen:c,onOpenChange:p,toggle:e.toggle??x,popperProps:{appendTo:()=>document.body,preventOverflow:!0,enableFlip:!0,maxWidth:e.disableMaxDropdownWidth?void 0:"trigger"},shouldFocusToggleOnSelect:!0,innerRef:v,children:[I.jsx(Q.MenuSearch,{children:I.jsx(Q.MenuSearchInput,{"data-cy":"search-input",children:I.jsx(Q.SearchInput,{id:`${n}-search`,ref:C,value:f,onChange:(O,P)=>g(P),onClear:O=>{O.stopPropagation(),g("")},resultsCount:R.length!==i.length?`${R.length} / ${i.length}`:void 0,onKeyDown:O=>{var P;switch(O.key){case"ArrowDown":case"Tab":{O.preventDefault(),O.stopPropagation();const M=(P=v==null?void 0:v.current)==null?void 0:P.querySelector("li button:not(:disabled),li input:not(:disabled)");M&&M.focus();break}}}})})}),I.jsx(Q.Divider,{}),R.length===0?I.jsx(I.Fragment,{children:e.isLoading?I.jsx(Q.Bullseye,{style:{padding:16},children:I.jsx(Q.Spinner,{size:"lg"})}):I.jsx(Q.SelectOption,{isDisabled:!0,children:t("No results found")},"no result")}):I.jsx(WJe,{children:N?I.jsx(I.Fragment,{children:Object.keys(N).map(O=>I.jsxs(Q.SelectGroup,{label:O,children:[I.jsx(Uue,{searchRef:C,options:N[O]}),I.jsx(Q.Divider,{})]},O))}):I.jsx(Uue,{searchRef:C,options:R})}),e.footer&&I.jsx(Q.MenuFooter,{children:e.footer})]})})}function Uue(e){return I.jsx(Q.SelectList,{onKeyDown:t=>{var n;switch(t.key){case"Tab":t.preventDefault(),t.stopPropagation(),(n=e.searchRef.current)==null||n.focus();break}},children:e.options.map(t=>{const n=du(t);return I.jsx(Q.SelectOption,{id:n,icon:t.icon,value:t.key!==void 0?t.key:t.label,description:t.description,"data-cy":n,children:t.label},t.key!==void 0?t.key:t.label)})})}const WJe=Cn(cu)`
429
429
  max-height: 40vh;
430
430
  `,zue=w.createContext({open:!1,setOpen:()=>{}});function Gue(e){const{t}=jn(),{queryOptions:n,writeInOption:r}=e,[a,o]=w.useState(!1),[i,l]=w.useState(!1),[s,c]=w.useState(),[p,f]=w.useState(0),[g,v]=w.useState(),[b,y]=w.useState(!1),x=w.useRef(),[E,C]=w.useState(""),R=w.useCallback(vj(G=>C(G),200),[]),N=w.useRef(e.onSelect).current,O=w.useRef(null),P=w.useCallback(()=>{O.current&&O.current.abort();const G=new AbortController;return O.current=G,o(()=>(l(!1),c(void 0),v(B=>{if(B)return B}),n({next:x.current,signal:G.signal,search:E}).then(B=>{G.signal.aborted||(x.current=B.next,B.remaining||l(!0),v(j=>{let q=[...j??[],...B.options];const Y=new Set;return q=q.filter(K=>Y.has(K.value)?!1:(Y.add(K.value),!0)),q.sort((K,ae)=>{const oe=K.label.toLowerCase(),te=ae.label.toLowerCase();return oe<te?-1:oe>te?1:0}),!E&&B.remaining===0&&q.length===1&&N(q[0].value),f(B.remaining+q.length),r&&B.remaining+q.length===0&&q.push(r(E)),q}))}).catch(B=>{G.signal.aborted||c(B instanceof Error?B:new Error(t("Unknown error")))}).finally(()=>{G.signal.aborted||o(!1)}),!0)),()=>G.abort()},[N,n,E,t,r]),M=w.useCallback(G=>{G.preventDefault(),G.stopPropagation(),P()},[P]),L=w.useCallback(G=>{G.preventDefault(),G.stopPropagation(),f(0),v([]),y(!0),x.current=void 0,P()},[P]);w.useEffect(()=>{b&&(f(0),v([]),x.current=void 0,P())},[b,P]),w.useEffect(()=>{s&&y(!1)},[s]);const W=I.jsxs(Q.Stack,{hasGutter:!0,children:[I.jsxs(Q.Flex,{children:[I.jsx(Q.FlexItem,{grow:{default:"grow"},children:I.jsxs(Q.ActionList,{children:[!i&&I.jsx(Q.ActionListItem,{children:I.jsx(Q.Button,{id:"load-more",isLoading:a,onClick:M,isDisabled:a,children:t(a?"Loading...":"Load more")})}),e.onBrowse&&I.jsx(Q.ActionListItem,{children:I.jsx(Q.Button,{id:"browse",onClick:G=>{var B;G.preventDefault(),G.stopPropagation(),y(!1),(B=e.onBrowse)==null||B.call(e)},variant:"secondary",children:t("Browse")})})]})}),!i&&p!==0&&I.jsx(Q.FlexItem,{children:t("Loaded {{count}} of {{total}}",{count:(g==null?void 0:g.length)??0,total:p})})]}),e.footer]});return I.jsx(Vp,{id:e.id,icon:e.icon,placeholder:e.placeholder,options:g??[],value:e.value,onSelect:e.onSelect,isDisabled:e.isDisabled,footer:W,open:b,setOpen:y,searchValue:E,setSearchValue:R,isLoading:a,queryLabel:e.queryLabel,disableAutoSelect:!0,isRequired:e.isRequired,toggle:s?G=>I.jsx(VJe,{ref:G,id:e.id,variant:"secondary",isDanger:!0,icon:I.jsx(Wt.SyncAltIcon,{}),onClick:L,children:typeof e.queryErrorText=="function"?e.queryErrorText(s):e.queryErrorText??t("Error loading options")}):void 0,disableMaxDropdownWidth:e.disableMaxDropdownWidth})}const VJe=Cn(Q.Button)`
431
431
  width: 100%;
@@ -468,7 +468,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[rT]+=1);const aT=Cn.button`
468
468
  display: flex;
469
469
  gap: 6px;
470
470
  align-items: baseline;
471
- `;function ipe(e){const{item:t,itemToCardFn:n,isSelected:r,selectItem:a,unselectItem:o,itemActions:i,showSelect:l,defaultCardSubtitle:s}=e,c=w.useMemo(()=>n(t),[t,n]),p=!!(r!=null&&r(t)),f=w.useCallback(()=>{r!=null&&r(t)?o==null||o(t):a==null||a(t)},[r,t,a,o]);return I.jsxs(Q.Card,{id:`card-${c.id}`,ouiaId:c.id,isLarge:!0,isSelectable:l,isSelected:p,isClickable:l,style:{transition:"box-shadow 0.25s",cursor:"default",maxWidth:"100%"},children:[I.jsx(Q.CardHeader,{selectableActions:l?{selectableActionId:`card-${c.id}-checkbox`,onChange:f}:void 0,style:{display:"flex",flexWrap:"nowrap",maxWidth:"100%"},children:I.jsxs(d$e,{children:[I.jsxs(p$e,{children:[c.iconAboveTitle?null:c.icon&&I.jsx(CS,{size:"xl",children:c.icon}),I.jsxs(f$e,{children:[c.iconAboveTitle?I.jsx(u$e,{children:c.icon&&I.jsx(CS,{size:"xl",children:c.icon})}):null,I.jsx(Q.CardTitle,{children:c.title}),c.subtitle?I.jsx(Q.Content,{component:"small",style:{opacity:.7},children:c.subtitle}):s&&I.jsx(Q.Content,{component:"small",style:{opacity:.7},children:s})]})]}),c.badge&&c.badgeTooltip&&I.jsx(Q.FlexItem,{children:I.jsx("div",{onClick:g=>g.stopPropagation(),children:I.jsx(Q.Popover,{headerContent:c.badgeTooltipTitle,bodyContent:c.badgeTooltip,children:I.jsx(Q.Label,{color:c.badgeColor,children:c.badge})})})}),c.badge&&!c.badgeTooltip&&I.jsx(Q.FlexItem,{children:I.jsx(Q.Label,{color:c.badgeColor,children:c.badge})})]})}),I.jsx("div",{style:{overflow:"hidden",display:"flex",paddingBottom:16,flexGrow:1},children:I.jsx(cu,{children:c.cardBody})}),c.labels||i&&i.length?I.jsx(Q.CardFooter,{children:I.jsxs(m$e,{children:[I.jsx(g$e,{children:c.labels&&I.jsx(Q.LabelGroup,{numLabels:999,children:c.labels.map(g=>I.jsx(Q.Label,{color:g.color,icon:g.icon,variant:g.variant,children:I.jsx(Q.Truncate,{content:g.label,style:{minWidth:0}})},g.label))})}),i&&i.length?I.jsx("div",{style:{marginRight:-16,alignSelf:"end",justifySelf:"flex-end",flexGrow:1},children:I.jsx(uu,{actions:i,position:"right",selectedItem:t,iconOnly:!0})}):null]})}):null,c.alertTitle&&I.jsx(Q.Alert,{title:c.alertTitle,isInline:!0,variant:c.alertVariant,children:c.alertContent})]},c.id??c.title)}function lpe(e,t){const n=w.useMemo(()=>{let c,p,f;const g=[];let v;const b=[];for(const y of e)if(y.card!=="hidden")switch(y.type){case"description":f||(f=y);break;case"labels":v||(v=y);break;case"count":g.push(y);break;default:switch(y.card){case"name":c=y;break;case"subtitle":p=y;break;case"description":f=y;break;default:b.push(y);break}break}return{nameColumn:c,subtitleColumn:p,descriptionColumn:f,countColumns:g,cardColumns:b,labelColumn:v}},[e]),{nameColumn:r,subtitleColumn:a,descriptionColumn:o,countColumns:i,cardColumns:l,labelColumn:s}=n;return w.useMemo(()=>c=>{var x,E;let p=!!o;o!=null&&o.value&&!o.value(c)&&(p=!1);const f=l.filter(C=>!C.value||C.value(c)),g=r&&"to"in r?r.to:void 0;let v=r&&"value"in r?r.value:void 0;v||(v=r&&"cell"in r?r.cell:void 0);const b=(v==null?void 0:v(c))??"",y={id:t(c),icon:(x=r==null?void 0:r.icon)==null?void 0:x.call(r,c),title:I.jsx(Ur.Link,{to:(g==null?void 0:g(c))??"",style:{whiteSpace:"normal",textWrap:"balance"},children:typeof b=="string"?b.split("/").map((C,R)=>I.jsx("div",{children:C},R)):(v==null?void 0:v(c))??""}),subtitle:a&&(!a.value||a.value(c))&&I.jsx(si,{column:a,item:c}),cardBody:I.jsxs(Q.DescriptionList,{isCompact:!0,style:{paddingLeft:32,paddingRight:32},children:[p&&o&&I.jsx(ry,{children:o.type==="description"?I.jsx("div",{children:o.value(c)}):I.jsx(si,{column:o,item:c})},o.id??o.header),f.map(C=>I.jsx(ry,{label:C.header,children:I.jsx(si,{column:C,item:c})},C.id??C.header)),i.length>0&&I.jsx(ry,{children:I.jsx(ape,{children:i.map((C,R)=>I.jsxs(ope,{children:[I.jsx(si,{column:C,item:c}),I.jsx(rpe,{children:C.header})]},R))})},"count-columns")]}),labels:s&&((E=s.value(c))==null?void 0:E.map(C=>({label:C})))};return!p&&f.length===0&&i.length===0&&(y.cardBody=I.jsx("div",{style:{flexGrow:1}})),y},[l,i,o,s,r,a,t])}function spe(e){return I.jsxs(Q.EmptyState,{icon:e.icon??Wt.PlusCircleIcon,titleText:e.title,isFullHeight:!0,children:[e.description&&I.jsx(Q.EmptyStateBody,{style:{maxInlineSize:"50ch",textWrap:"pretty"},children:e.description}),e.children&&I.jsx(Q.EmptyStateFooter,{children:I.jsx(Q.EmptyStateActions,{children:e.children})})]})}function cpe(e){const{keyFn:t,pageItems:n,tableColumns:r,isSelected:a,selectItem:o,unselectItem:i,rowActions:l,showSelect:s,defaultSubtitle:c,itemCount:p,clearAllFilters:f}=e,[g]=Na(),v=lpe(r,t),b=w.useMemo(()=>I.jsx(c$e,{size:400,children:n==null?void 0:n.map(y=>I.jsx(ipe,{item:y,itemToCardFn:v,isSelected:a,selectItem:o,unselectItem:i,itemActions:l,showSelect:s,defaultCardSubtitle:c},t(y)))}),[n,t,v,a,o,i,l,s,c]);return I.jsx(I.Fragment,{children:p===0?I.jsx(spe,{icon:Wt.SearchIcon,title:g.noResultsFound,description:g.noResultsMatchCriteria,children:I.jsx(Q.Button,{variant:"primary",onClick:f,children:g.clearAllFilters})}):I.jsx(I.Fragment,{children:b})})}function v$e(e){const{keyFn:t,pageItems:n,tableColumns:r,isSelected:a,selectItem:o,unselectItem:i,rowActions:l,defaultSubtitle:s,showSelect:c,itemCount:p,clearAllFilters:f}=e,[g]=Na(),v=h$e(r,t,a,o,i,l,s,c);return I.jsx(I.Fragment,{children:p===0?I.jsx(spe,{icon:Wt.SearchIcon,title:g.noResultsFound,description:g.noResultsMatchCriteria,children:I.jsx(Q.Button,{variant:"primary",onClick:f,children:g.clearAllFilters})}):I.jsx(Q.DataList,{"aria-label":"TODO",children:n==null?void 0:n.map(v)})})}function h$e(e,t,n,r,a,o,i,l){const s=w.useMemo(()=>{let E,C,R;const N=[];let O;const P=[],M=[];for(const L of e)if(L.list!=="hidden")switch(L.type){case"description":R||(R=L);break;case"labels":O||(O=L);break;case"count":N.push(L);break;default:switch(L.list){case"name":E=L;break;case"subtitle":C=L;break;case"description":R=L;break;case"secondary":M.push(L);break;default:P.push(L);break}break}return{nameColumn:E,subtitleColumn:C,descriptionColumn:R,countColumns:N,primaryColumns:P,secondaryColumns:M,labelColumn:O}},[e]),c=w.useCallback(E=>{n!=null&&n(E)?a==null||a(E):r==null||r(E)},[n,r,a]),{nameColumn:p,subtitleColumn:f,descriptionColumn:g,countColumns:v,primaryColumns:b,secondaryColumns:y,labelColumn:x}=s;return w.useCallback(E=>{const C=t(E),R=n==null?void 0:n(E);return I.jsx(Q.DataListItem,{"aria-labelledby":`data-list-${C}`,isExpanded:R,children:I.jsxs(Q.DataListItemRow,{children:[l&&I.jsx(Q.DataListCheck,{"aria-labelledby":`data-list-check-${C}`,name:`data-list-check-${C}`,isChecked:n==null?void 0:n(E),onClick:()=>c(E),"data-cy":"data-list-check"}),I.jsx(Q.DataListItemCells,{dataListCells:[I.jsx(Q.DataListCell,{width:5,children:I.jsx(Q.Flex,{children:I.jsxs(Q.Stack,{hasGutter:!0,children:[I.jsxs(Q.Flex,{alignItems:{default:"alignItemsCenter"},children:[(p==null?void 0:p.icon)&&I.jsx(CS,{size:"xl",children:p==null?void 0:p.icon(E)}),I.jsxs(Q.Stack,{children:[I.jsx(Q.Title,{headingLevel:"h2",style:{marginTop:-4,fontWeight:"bold"},"data-cy":"data-list-name",children:I.jsx("span",{id:`data-list-${C}`,children:I.jsx(si,{column:p,item:E})})}),f?I.jsx(Q.Content,{component:"small",style:{opacity:.7},children:I.jsx(si,{column:f,item:E})}):i&&I.jsx(Q.Content,{component:"small",style:{opacity:.7},children:i})]})]}),(g||b.length>0||v.length>0||x)&&I.jsxs(Q.DescriptionList,{isCompact:!0,children:[g&&(!g.value||g.value(E))&&I.jsx(Q.DescriptionListGroup,{children:I.jsx(Q.DescriptionListDescription,{children:I.jsx(si,{column:g,item:E})})},g.header),b.map(N=>N.value&&!N.value(E)?I.jsx(I.Fragment,{}):I.jsxs(Q.DescriptionListGroup,{children:[I.jsx(Q.DescriptionListTerm,{style:{whiteSpace:"nowrap",opacity:.6},children:N.header}),I.jsx(Q.DescriptionListDescription,{children:I.jsx(si,{column:N,item:E})})]},N.header)),v.length>0&&I.jsx(Q.DescriptionListGroup,{children:I.jsx(Q.DescriptionListDescription,{children:I.jsx("div",{style:{display:"flex",gap:16,marginTop:8,flexWrap:"wrap"},children:v.map((N,O)=>I.jsxs("div",{style:{display:"flex",gap:6,alignItems:"baseline"},children:[I.jsx(si,{column:N,item:E}),I.jsx("small",{style:{opacity:.7},children:N.header})]},O))})})},"counts"),x&&I.jsxs(I.Fragment,{children:[I.jsx("div",{style:{flexGrow:1}}),I.jsx(Q.DescriptionListGroup,{children:I.jsx(Q.DescriptionListDescription,{children:I.jsx(si,{column:x,item:E})})},x.header)]})]})]})})},"primary"),y.length>0?I.jsx(Q.DataListCell,{children:I.jsx(Q.DescriptionList,{isCompact:!0,children:y.map(N=>N.value&&!N.value(E)?I.jsx(I.Fragment,{}):I.jsxs(Q.DescriptionListGroup,{children:[I.jsx(Q.DescriptionListTerm,{style:{whiteSpace:"nowrap",opacity:.6},children:N.header}),I.jsx(Q.DescriptionListDescription,{children:I.jsx(si,{column:N,item:E})})]},N.header))})},"secondary"):null]}),o&&I.jsx(Q.DataListAction,{"aria-labelledby":"check-action-item1 check-action-action1",id:"check-action-action1","aria-label":"Actions",style:{whiteSpace:"nowrap"},"data-cy":"data-list-action",children:I.jsx(uu,{actions:o,position:"right",selectedItem:E,iconOnly:!0,collapse:"always"})})]})},C)},[t,n,l,p,f,i,b,g,v,x,y,o,c])}function SE(e){const{id:t,toolbarActions:n,filterState:r,error:a,itemCount:o}=e,{t:i}=jn(),l=e.showSelect||(n==null?void 0:n.find(E=>"selection"in E&&E.selection===vr.Multiple))!==void 0,s=!e.disableTableView,c=!e.disableListView,[p,f]=w.useState(()=>{switch(e.id?localStorage.getItem(e.id+"-view"):void 0){case"table":return kr.Table;case"list":return kr.List;case"cards":return kr.Cards}return e.defaultTableView??(s?kr.Table:c?kr.List:kr.Cards)}),g=w.useCallback(E=>{f(E),e.id&&localStorage.setItem(e.id+"-view",E)},[e.id]),{openColumnManagement:v,managedColumns:b}=i$e((t??"")+"-columns",e.tableColumns,p!==kr.Table,p!==kr.List,p!==kr.Cards),y=QJe(e.tableColumns);if(a)return I.jsx(ZJe,{titleProp:e.errorStateTitle,message:a.message});if(o===0&&Object.keys(r??{}).length===0)return e.emptyState?e.emptyState:I.jsx($Je,{title:e.emptyStateTitle??i`No data`,description:e.emptyStateDescription,icon:e.emptyStateNoDataIcon,button:e.emptyStateButtonClick&&I.jsx(Q.Button,{"data-cy":e.emptyStateButtonText?S$e(e.emptyStateButtonText):"create-resource",variant:"primary",onClick:e.emptyStateButtonClick,icon:e.emptyStateButtonIcon?e.emptyStateButtonIcon:null,children:e.emptyStateButtonText})||e.emptyStateActions&&I.jsx(Q.Flex,{justifyContent:{default:"justifyContentCenter"},children:I.jsx(uu,{actions:e.emptyStateActions})})});let x=e.topContent;return x&&(x=I.jsx(Q.PageSection,{hasBodyWrapper:!1,padding:{default:"noPadding"},children:e.topContent})),I.jsxs(I.Fragment,{children:[I.jsx(Xue,{...e,openColumnModal:e.id?v:void 0,showSelect:l,viewType:p,setViewType:g,sortOptions:y,limitFiltersToOneOrOperation:e.limitFiltersToOneOrOperation}),x,p===kr.Table&&I.jsx(b$e,{...e,tableColumns:b}),p===kr.List&&I.jsx(cu,{marginLeft:20,marginRight:20,children:I.jsx(v$e,{...e,showSelect:l,tableColumns:b})}),p===kr.Cards&&I.jsx(cu,{marginLeft:20,marginRight:20,children:I.jsx(cpe,{...e,showSelect:l,tableColumns:b})}),!e.disablePagination&&(!e.autoHidePagination||(e.itemCount??0)>e.perPage)&&I.jsx(s$e,{...e,topBorder:!e.autoHidePagination})]})}function b$e(e){const{pageItems:t,selectItem:n,unselectItem:r,isSelected:a,isSelectMultiple:o,keyFn:i,rowActions:l,toolbarActions:s,itemCount:c,clearAllFilters:p,onSelect:f,unselectAll:g,maxSelections:v}=e,b=gj(e.tableColumns),y=Nue(e.tableColumns),x=Aue(e.tableColumns),E=w.useMemo(()=>{const L=[];if(y.length)for(const G of y)"value"in G?L.push(B=>{var q;const j=(q=G.value)==null?void 0:q.call(G,B);if(j)return I.jsx("div",{children:j},G.id??G.header)}):L.push(B=>G.cell(B));return x.length&&L.push(G=>x.some(j=>{var q;return((q=j.value)==null?void 0:q.call(j,G))!==void 0})?I.jsx(wue,{disablePadding:!0,numberOfColumns:"multiple",labelOrientation:"vertical",isCompact:!0,disableScroll:!0,children:I.jsx(Mue,{item:G,columns:x})},i(G)):null),e.expandedRow&&L.push(e.expandedRow),L.length===0?void 0:G=>L.map(j=>j(G)).filter(j=>j!=null).length===0?null:I.jsx(Q.Stack,{hasGutter:!0,children:L.map(j=>j(G))})},[y,x,i,e.expandedRow]),[C]=Na(),R=e.showSelect||(s==null?void 0:s.find(L=>"selection"in L&&L.selection===vr.Multiple))!==void 0,N=Em(),[O,P]=w.useState(0);let M;return c===void 0||t===void 0?M=I.jsx(l$e,{}):c===0?M=I.jsxs(Q.EmptyState,{icon:e.emptyStateIcon??Wt.SearchIcon,titleText:I.jsx(I.Fragment,{children:C.noResultsFound}),isFullHeight:!0,children:[I.jsx(Q.EmptyStateBody,{children:C.noResultsMatchCriteria}),I.jsx(Q.EmptyStateFooter,{children:p&&I.jsx(Q.EmptyStateActions,{children:I.jsx(Q.Button,{variant:"primary",onClick:p,children:C.clearAllFilters})})})]}):M=I.jsx(cu,{marginLeft:20,marginRight:20,children:I.jsxs(Xn.Table,{"aria-label":"Simple table",ouiaId:"simple-table",variant:e.compact||N.tableLayout==="compact"?"compact":void 0,gridBreakPoint:"",isStickyHeader:!0,style:{borderCollapse:"separate"},children:[I.jsx(_$e,{...e,showSelect:R,tableColumns:b,onSelect:f,expandedRow:E,expandColumnWidth:O,setExpandColumnWidth:P}),I.jsx(Xn.Tbody,{children:t.map((L,W)=>I.jsx(y$e,{columns:b,item:L,isItemSelected:a==null?void 0:a(L),isSelectMultiple:o,selectItem:n,unselectItem:r,rowActions:l,rowIndex:W,showSelect:R,unselectAll:g,onSelect:f,expandedRow:E,isLastRow:W===t.length-1,disableLastRowBorder:e.disableLastRowBorder,maxSelections:v,selectedItems:e.selectedItems,defaultExpandedRows:e.defaultExpandedRows,expandColumnWidth:O},i?i(L):W))})]})}),M}function _$e(e){const{tableColumns:t,rowActions:n,sort:r,setSort:a,sortDirection:o,setSortDirection:i,showSelect:l,onSelect:s,expandedRow:c,pageItems:p,isSelected:f,selectItems:g,unselectAll:v}=e,[b,y]=_J(),x=w.useRef(null),E=w.useCallback(()=>{if(!x.current)return;const q=x.current.clientHeight;y(Y=>({...Y,stickyTop:q}))},[y]);nd(x,E);const{expandColumnWidth:C,setExpandColumnWidth:R}=e,N=w.useRef(null),O=w.useCallback(()=>{N.current&&R(N.current.clientWidth)},[R]);nd(N,O);const[P,M]=w.useState(0),L=w.useRef(null),W=w.useCallback(()=>{L.current&&M(L.current.clientWidth)},[]);nd(L,W),w.useEffect(()=>{y(q=>({...q,stickyLeft:C+P}))},[C,P,y]);const G=w.useRef(null),B=w.useCallback(()=>{if(!G.current)return;const q=G.current.clientWidth;y(Y=>({...Y,stickyRight:q}))},[y]);nd(G,B);const j=w.useCallback((q,Y)=>{if(Y.sort)return{onSort:(K,ae,oe)=>{Y.sort&&(a==null||a(Y.sort),i==null||i(oe))},sortBy:{index:Y.sort===r?q:void 0,direction:Y.sort===r?o:void 0,defaultDirection:Y.defaultSortDirection},columnIndex:q}},[a,i,r,o]);return I.jsx(Xn.Thead,{style:{background:"inherit"},children:I.jsxs(Xn.Tr,{style:{background:"inherit"},ref:x,children:[c&&I.jsx(Xn.Th,{"aria-label":"Expand",isStickyColumn:!0,stickyMinWidth:"1px",ref:N}),(l||s)&&I.jsx(Xn.Th,{"aria-label":"Select",isStickyColumn:!0,stickyMinWidth:"1px","data-cy":"selections-column-header",style:{left:C},ref:L,select:{onSelect:(q,Y)=>{Y?g==null||g(p??[]):v==null||v()},isSelected:p&&p.length>0?p.every(q=>f==null?void 0:f(q)):!1}}),t.map((q,Y)=>I.jsx(Xn.Th,{"aria-label":q.header,sort:j(Y,q),modifier:"nowrap",style:{minWidth:q.minWidth===0?"1%":q.minWidth!==void 0?q.minWidth:void 0,maxWidth:q.maxWidth!==void 0?q.maxWidth:void 0,width:q.fullWidth?"100%":void 0},"data-cy":du(q.header+"-column-header"),children:q.header},q.header)),n!==void 0&&I.jsx(Xn.Th,{"aria-label":"Actions",isStickyColumn:!0,stickyMinWidth:"1px","data-cy":"action-column-header",ref:G})]})})}function y$e(e){const{columns:t,unselectAll:n,selectItem:r,unselectItem:a,isItemSelected:o,isSelectMultiple:i,item:l,rowActions:s,rowIndex:c,showSelect:p,onSelect:f,expandedRow:g,disableLastRowBorder:v,maxSelections:b,selectedItems:y}=e,x=g==null?void 0:g(l),{expandColumnWidth:E}=e,[C,R]=w.useState(!!e.defaultExpandedRows&&!!x),N=w.useCallback(O=>(y==null?void 0:y.length)===b?!(y!=null&&y.includes(O)):!1,[b,y]);return I.jsxs(I.Fragment,{children:[I.jsxs(Xn.Tr,{style:{boxShadow:"unset",borderBottom:C||e.isLastRow&&v?"unset":void 0,cursor:f?"pointer":"default"},"data-cy":"id"in l&&(typeof l.id=="string"||typeof l.id=="number")?`row-id-${l.id.toString()}`:`row-${c}`,onClick:()=>{f&&(i||n==null||n(),i&&o?a==null||a(l):r==null||r(l),f(l))},children:[g&&I.jsx(Xn.Td,{expand:x?{rowIndex:c,isExpanded:C,onToggle:()=>R(O=>!O)}:void 0,"data-cy":"expand-column-cell",isStickyColumn:!0,stickyMinWidth:"1px",className:C&&x?"expanded":void 0}),p&&I.jsx(Xn.Td,{select:o!==void 0?{rowIndex:c,onSelect:(O,P)=>{P?r==null||r(l):a==null||a(l)},isSelected:o,isDisabled:b&&y?N(l):!1}:void 0,isStickyColumn:!0,stickyMinWidth:"1px","data-cy":"checkbox-column-cell",style:{left:E},className:g&&C&&x?"expanded":void 0}),f&&I.jsx(Xn.Td,{select:{rowIndex:c,isSelected:o??!1,variant:i?"checkbox":"radio",isDisabled:b&&y?N(l):!1,props:{"aria-label":"Select row"}},isStickyColumn:!0,stickyMinWidth:"1px","data-cy":"checkbox-column-cell"}),I.jsx(x$e,{columns:t,item:l,rowActions:s,expanded:!!g&&!!C&&!!x})]}),g&&C&&x&&I.jsxs(Xn.Tr,{isExpanded:C,style:{boxShadow:"unset"},children:[I.jsx(Xn.Td,{isStickyColumn:!0,stickyMinWidth:"1px"}),p&&I.jsx(Xn.Td,{"aria-label":"Select",isStickyColumn:!0,stickyMinWidth:"1px",style:{left:E}}),f&&I.jsx(Xn.Td,{isStickyColumn:!0,stickyMinWidth:"1px",style:{left:E}}),I.jsx(Xn.Td,{colSpan:t.length,children:I.jsx(Xn.CollapseColumn,{children:x})}),s!==void 0&&s.length>0&&I.jsx(Xn.Td,{isActionCell:!0,isStickyColumn:!0,stickyMinWidth:"1px",children:" "})]})]})}function x$e(e){const{columns:t,item:n,rowActions:r}=e,[a,o]=w.useState(!1);return I.jsxs(w.Fragment,{children:[t.map(i=>I.jsx(Xn.Td,{dataLabel:i.header,modifier:"nowrap",style:{width:i.minWidth===0?"0%":void 0},"data-cy":du(i.header+"-column-cell"),className:e.expanded?"expanded":void 0,children:I.jsx(si,{item:n,column:i})},i.header)),r!==void 0&&r.length>0&&I.jsx(Xn.Td,{isActionCell:!0,isStickyColumn:!0,stickyMinWidth:"1px",style:{zIndex:a?400:void 0},"data-cy":"actions-column-cell",className:e.expanded?"expanded":void 0,children:I.jsx(uu,{actions:r,selectedItem:n,position:"right",iconOnly:!0,onOpen:o})})]})}function S$e(e){return e.toLowerCase().split(" ").join("-")}function E$e(){const e=w.useRef(new AbortController);return w.useEffect(()=>{const t=e.current;return()=>t.abort()},[]),e.current}function dpe(e){const{title:t,keyFn:n,actionColumns:r,actionFn:a,onComplete:o,onClose:i,processingText:l,isDanger:s,errorAdapter:c=yE,description:p,statusParser:f}=e,{t:g}=jn(),[v,b]=w.useState(e.items),[y]=Na(),[x,E]=w.useState(!0),[C,R]=w.useState(0),[N,O]=w.useState(!1),[P,M]=w.useState(0),[L,W]=w.useState(""),[G,B]=w.useState(),j=E$e(),[q,Y]=Yp(),[K,ae]=w.useState([]),oe=w.useCallback(()=>{O(!0),j.abort(),E(!1),B(_e=>{const pe={..._e};for(const Ie of v){const Ce=n(Ie);pe[Ce]===void 0&&(pe[Ce]=g("Cancelled"))}return pe})},[j,v,n,g]),te=w.useCallback(()=>{Y(void 0),i==null||i(N?"canceled":L?"failures":"success",v.filter(_e=>(G==null?void 0:G[n(_e)])===null||(G==null?void 0:G[n(_e)]).message),v.filter(_e=>(G==null?void 0:G[n(_e)])!==null&&typeof(G==null?void 0:G[n(_e)])=="string"),v.filter(_e=>(G==null?void 0:G[n(_e)])===void 0)),o==null||o(K)},[L,N,v,n,i,o,Y,G,K]),ee=w.useCallback(()=>{W(""),E(!0),B(void 0),b(v.filter(_e=>(G==null?void 0:G[n(_e)])!==null&&typeof(G==null?void 0:G[n(_e)])=="string")),R(C+1)},[v,n,C,G]),z=w.useMemo(()=>j.signal.aborted?y.canceledText:L?y.errorText:x?l??y.processingText:y.successText,[j.signal.aborted,L,x,l,y.canceledText,y.errorText,y.processingText,y.successText]),re=w.useMemo(()=>{if(L||N)return Q.ProgressVariant.danger;if(P===v.length)return Q.ProgressVariant.success},[L,N,v.length,P]);w.useEffect(()=>{function _e(Ce,he){if(j.signal.aborted)return;let xe;f&&(xe=f(he)),B(Pe=>({...Pe??{},[Ce]:xe!==void 0?xe:null}))}function pe(Ce,he,xe){if(!j.signal.aborted){if(xe instanceof Error){const Pe=typeof he[0].message=="string"&&he.length===1?he[0].message:g("Unknown error");B(ie=>({...ie??{},[Ce]:Pe}))}else B(Pe=>({...Pe??{},[Ce]:g("Unknown error")}));W(y.errorText)}}async function Ie(){const Ce=jJe(5);let he=0;const xe=[];await Promise.all(v.map(Pe=>Ce(async()=>{if(j.signal.aborted)return;const ie=n(Pe);try{const lt=await a(Pe,j.signal);_e(ie,lt),xe.push(Pe)}catch(lt){const{genericErrors:at,fieldErrors:it}=c(lt),St=[...at,...it.filter(st=>st.message)];pe(ie,St,lt)}finally{j.signal.aborted||M(++he)}}))),ae([...K,...xe]),j.signal.aborted||E(!1)}Ie()},[j,a,v,n,o,y.errorText,g,c,f,C]),w.useEffect(()=>{let _e;return!x&&!L&&(_e=setTimeout(()=>{te()},1e3)),()=>clearTimeout(_e)},[x,L,te]);const ce=xE(v),$=IR(r),de=w.useMemo(()=>x?[I.jsx(Q.Button,{variant:"link",onClick:oe,children:g("Cancel")},"cancel")]:L?[I.jsx(Q.Button,{variant:"primary",onClick:ee,children:g("Retry")},"retry"),I.jsx(Q.Button,{variant:"secondary",onClick:te,children:g("Close")},"close")]:[],[L,x,oe,te,ee,g]);return I.jsxs(Q.Modal,{ouiaId:t,variant:Q.ModalVariant.medium,isOpen:!0,onClose:()=>{oe(),te()},"aria-label":t,children:[I.jsx(Q.ModalHeader,{title:t,titleIconVariant:s?"warning":void 0,description:p}),I.jsx(Q.ModalBody,{style:{paddingBottom:0,paddingLeft:0,paddingRight:0},children:I.jsx("div",{style:{display:"flex",flexDirection:"column",maxHeight:560,overflow:"hidden",borderTop:"var(--pf-t--global--border--color--default)"},children:I.jsx(SE,{pageItems:[...ce.paged],itemCount:v.length,tableColumns:[...$,{header:g("Status"),cell:_e=>{const pe=n(_e),Ie=G==null?void 0:G[pe];return Ie===void 0?I.jsxs("span",{style:{color:fD},children:[I.jsx(Wt.PendingIcon,{}),"  ",y.pendingText]}):Ie===null?I.jsxs("span",{style:{color:uD},children:[I.jsx(Wt.CheckCircleIcon,{}),"  ",y.successText]}):Ie.message&&Ie.url?I.jsx("a",{href:Ie.url,children:Ie.message}):I.jsxs("span",{style:{color:pD},children:[I.jsx(Wt.ExclamationCircleIcon,{}),"  ",G==null?void 0:G[pe]]})}}],keyFn:n,compact:!0,errorStateTitle:"",emptyStateTitle:g("No items"),autoHidePagination:!0,disableBodyPadding:!0,...ce},"status")})}),I.jsx(Q.ModalBody,{style:{paddingTop:0},children:I.jsx(Q.Progress,{"data-cy":"progress",value:P/v.length*100,title:z,size:Q.ProgressSize.lg,variant:re})}),I.jsx(Q.ModalFooter,{children:de})]})}function upe(e=yE,t){const[n,r]=Yp(),[a,o]=w.useState();return w.useEffect(()=>{if(a){const i=(l,s,c,p)=>{var f;o(void 0),(f=a.onClose)==null||f.call(a,l,s,c,p)};r(I.jsx(dpe,{...a,errorAdapter:a.errorAdapter??e,statusParser:a.statusParser??t,onClose:i}))}else r(void 0)},[a,r,e,t]),o}function ppe(e,t){if(e===void 0&&t===void 0)return 0;if(e===void 0)return 1;if(t===void 0)return-1;if(typeof e=="string"){if(typeof t=="string")return EE(e,t);if(typeof t=="number")return EE(e,t.toString())}else if(typeof e=="number"){if(typeof t=="number")return fpe(e,t);if(typeof t=="string")return EE(e.toString(),t)}return 0}function EE(e,t){return e===void 0&&t===void 0?0:e==null?1:t==null||e<t?-1:e>t?1:0}function fpe(e,t){return e===void 0&&t===void 0?0:e==null?1:t==null||e<t?-1:e>t?1:0}const w$e=Cn.div`
471
+ `;function ipe(e){const{item:t,itemToCardFn:n,isSelected:r,selectItem:a,unselectItem:o,itemActions:i,showSelect:l,defaultCardSubtitle:s}=e,c=w.useMemo(()=>n(t),[t,n]),p=!!(r!=null&&r(t)),f=w.useCallback(()=>{r!=null&&r(t)?o==null||o(t):a==null||a(t)},[r,t,a,o]);return I.jsxs(Q.Card,{id:`card-${c.id}`,ouiaId:c.id,isLarge:!0,isSelectable:l,isSelected:p,isClickable:l,style:{transition:"box-shadow 0.25s",cursor:"default",maxWidth:"100%"},children:[I.jsx(Q.CardHeader,{selectableActions:l?{selectableActionId:`card-${c.id}-checkbox`,onChange:f}:void 0,style:{display:"flex",flexWrap:"nowrap",maxWidth:"100%"},children:I.jsxs(d$e,{children:[I.jsxs(p$e,{children:[c.iconAboveTitle?null:c.icon&&I.jsx(CS,{size:"xl",children:c.icon}),I.jsxs(f$e,{children:[c.iconAboveTitle?I.jsx(u$e,{children:c.icon&&I.jsx(CS,{size:"xl",children:c.icon})}):null,I.jsx(Q.CardTitle,{children:c.title}),c.subtitle?I.jsx(Q.Content,{component:"small",style:{opacity:.7},children:c.subtitle}):s&&I.jsx(Q.Content,{component:"small",style:{opacity:.7},children:s})]})]}),c.badge&&c.badgeTooltip&&I.jsx(Q.FlexItem,{children:I.jsx("div",{onClick:g=>g.stopPropagation(),children:I.jsx(Q.Popover,{headerContent:c.badgeTooltipTitle,bodyContent:c.badgeTooltip,children:I.jsx(Q.Label,{color:c.badgeColor,children:c.badge})})})}),c.badge&&!c.badgeTooltip&&I.jsx(Q.FlexItem,{children:I.jsx(Q.Label,{color:c.badgeColor,children:c.badge})})]})}),I.jsx("div",{style:{overflow:"hidden",display:"flex",paddingBottom:16,flexGrow:1},children:I.jsx(cu,{children:c.cardBody})}),c.labels||i&&i.length?I.jsx(Q.CardFooter,{children:I.jsxs(m$e,{children:[I.jsx(g$e,{children:c.labels&&I.jsx(Q.LabelGroup,{numLabels:999,children:c.labels.map(g=>I.jsx(Q.Label,{color:g.color,icon:g.icon,variant:g.variant,children:I.jsx(Q.Truncate,{content:g.label,style:{minWidth:0}})},g.label))})}),i&&i.length?I.jsx("div",{style:{marginRight:-16,alignSelf:"end",justifySelf:"flex-end",flexGrow:1},children:I.jsx(uu,{actions:i,position:"right",selectedItem:t,iconOnly:!0})}):null]})}):null,c.alertTitle&&I.jsx(Q.Alert,{title:c.alertTitle,isInline:!0,variant:c.alertVariant,children:c.alertContent})]},c.id??c.title)}function lpe(e,t){const n=w.useMemo(()=>{let c,p,f;const g=[];let v;const b=[];for(const y of e)if(y.card!=="hidden")switch(y.type){case"description":f||(f=y);break;case"labels":v||(v=y);break;case"count":g.push(y);break;default:switch(y.card){case"name":c=y;break;case"subtitle":p=y;break;case"description":f=y;break;default:b.push(y);break}break}return{nameColumn:c,subtitleColumn:p,descriptionColumn:f,countColumns:g,cardColumns:b,labelColumn:v}},[e]),{nameColumn:r,subtitleColumn:a,descriptionColumn:o,countColumns:i,cardColumns:l,labelColumn:s}=n;return w.useMemo(()=>c=>{var x,E;let p=!!o;o!=null&&o.value&&!o.value(c)&&(p=!1);const f=l.filter(C=>!C.value||C.value(c)),g=r&&"to"in r?r.to:void 0;let v=r&&"value"in r?r.value:void 0;v||(v=r&&"cell"in r?r.cell:void 0);const b=(v==null?void 0:v(c))??"",y={id:t(c),icon:(x=r==null?void 0:r.icon)==null?void 0:x.call(r,c),title:I.jsx(Ur.Link,{to:(g==null?void 0:g(c))??"",style:{whiteSpace:"normal",textWrap:"balance"},children:typeof b=="string"?b.split("/").map((C,R)=>I.jsx("div",{children:C},R)):(v==null?void 0:v(c))??""}),subtitle:a&&(!a.value||a.value(c))&&I.jsx(si,{column:a,item:c}),cardBody:I.jsxs(Q.DescriptionList,{isCompact:!0,style:{paddingLeft:32,paddingRight:32},children:[p&&o&&I.jsx(ry,{children:o.type==="description"?I.jsx("div",{children:o.value(c)}):I.jsx(si,{column:o,item:c})},o.id??o.header),f.map(C=>I.jsx(ry,{label:C.header,children:I.jsx(si,{column:C,item:c})},C.id??C.header)),i.length>0&&I.jsx(ry,{children:I.jsx(ape,{children:i.map((C,R)=>I.jsxs(ope,{children:[I.jsx(si,{column:C,item:c}),I.jsx(rpe,{children:C.header})]},R))})},"count-columns")]}),labels:s&&((E=s.value(c))==null?void 0:E.map(C=>({label:C})))};return!p&&f.length===0&&i.length===0&&(y.cardBody=I.jsx("div",{style:{flexGrow:1}})),y},[l,i,o,s,r,a,t])}function spe(e){return I.jsxs(Q.EmptyState,{icon:e.icon??Wt.PlusCircleIcon,titleText:e.title,isFullHeight:!0,children:[e.description&&I.jsx(Q.EmptyStateBody,{style:{maxInlineSize:"50ch",textWrap:"pretty"},children:e.description}),e.children&&I.jsx(Q.EmptyStateFooter,{children:I.jsx(Q.EmptyStateActions,{children:e.children})})]})}function cpe(e){const{keyFn:t,pageItems:n,tableColumns:r,isSelected:a,selectItem:o,unselectItem:i,rowActions:l,showSelect:s,defaultSubtitle:c,itemCount:p,clearAllFilters:f}=e,[g]=Na(),v=lpe(r,t),b=w.useMemo(()=>I.jsx(c$e,{size:400,children:n==null?void 0:n.map(y=>I.jsx(ipe,{item:y,itemToCardFn:v,isSelected:a,selectItem:o,unselectItem:i,itemActions:l,showSelect:s,defaultCardSubtitle:c},t(y)))}),[n,t,v,a,o,i,l,s,c]);return I.jsx(I.Fragment,{children:p===0?I.jsx(spe,{icon:Wt.SearchIcon,title:g.noResultsFound,description:g.noResultsMatchCriteria,children:I.jsx(Q.Button,{variant:"primary",onClick:f,children:g.clearAllFilters})}):I.jsx(I.Fragment,{children:b})})}function v$e(e){const{keyFn:t,pageItems:n,tableColumns:r,isSelected:a,selectItem:o,unselectItem:i,rowActions:l,defaultSubtitle:s,showSelect:c,itemCount:p,clearAllFilters:f}=e,[g]=Na(),v=h$e(r,t,a,o,i,l,s,c);return I.jsx(I.Fragment,{children:p===0?I.jsx(spe,{icon:Wt.SearchIcon,title:g.noResultsFound,description:g.noResultsMatchCriteria,children:I.jsx(Q.Button,{variant:"primary",onClick:f,children:g.clearAllFilters})}):I.jsx(Q.DataList,{"aria-label":"TODO",children:n==null?void 0:n.map(v)})})}function h$e(e,t,n,r,a,o,i,l){const s=w.useMemo(()=>{let E,C,R;const N=[];let O;const P=[],M=[];for(const L of e)if(L.list!=="hidden")switch(L.type){case"description":R||(R=L);break;case"labels":O||(O=L);break;case"count":N.push(L);break;default:switch(L.list){case"name":E=L;break;case"subtitle":C=L;break;case"description":R=L;break;case"secondary":M.push(L);break;default:P.push(L);break}break}return{nameColumn:E,subtitleColumn:C,descriptionColumn:R,countColumns:N,primaryColumns:P,secondaryColumns:M,labelColumn:O}},[e]),c=w.useCallback(E=>{n!=null&&n(E)?a==null||a(E):r==null||r(E)},[n,r,a]),{nameColumn:p,subtitleColumn:f,descriptionColumn:g,countColumns:v,primaryColumns:b,secondaryColumns:y,labelColumn:x}=s;return w.useCallback(E=>{const C=t(E),R=n==null?void 0:n(E);return I.jsx(Q.DataListItem,{"aria-labelledby":`data-list-${C}`,isExpanded:R,children:I.jsxs(Q.DataListItemRow,{children:[l&&I.jsx(Q.DataListCheck,{"aria-labelledby":`data-list-check-${C}`,name:`data-list-check-${C}`,isChecked:n==null?void 0:n(E),onClick:()=>c(E),"data-cy":"data-list-check"}),I.jsx(Q.DataListItemCells,{dataListCells:[I.jsx(Q.DataListCell,{width:5,children:I.jsx(Q.Flex,{children:I.jsxs(Q.Stack,{hasGutter:!0,children:[I.jsxs(Q.Flex,{alignItems:{default:"alignItemsCenter"},children:[(p==null?void 0:p.icon)&&I.jsx(CS,{size:"xl",children:p==null?void 0:p.icon(E)}),I.jsxs(Q.Stack,{children:[I.jsx(Q.Title,{headingLevel:"h2",style:{marginTop:-4,fontWeight:"bold"},"data-cy":"data-list-name",children:I.jsx("span",{id:`data-list-${C}`,children:I.jsx(si,{column:p,item:E})})}),f?I.jsx(Q.Content,{component:"small",style:{opacity:.7},children:I.jsx(si,{column:f,item:E})}):i&&I.jsx(Q.Content,{component:"small",style:{opacity:.7},children:i})]})]}),(g||b.length>0||v.length>0||x)&&I.jsxs(Q.DescriptionList,{isCompact:!0,children:[g&&(!g.value||g.value(E))&&I.jsx(Q.DescriptionListGroup,{children:I.jsx(Q.DescriptionListDescription,{children:I.jsx(si,{column:g,item:E})})},g.header),b.map(N=>N.value&&!N.value(E)?I.jsx(I.Fragment,{}):I.jsxs(Q.DescriptionListGroup,{children:[I.jsx(Q.DescriptionListTerm,{style:{whiteSpace:"nowrap",opacity:.6},children:N.header}),I.jsx(Q.DescriptionListDescription,{children:I.jsx(si,{column:N,item:E})})]},N.header)),v.length>0&&I.jsx(Q.DescriptionListGroup,{children:I.jsx(Q.DescriptionListDescription,{children:I.jsx("div",{style:{display:"flex",gap:16,marginTop:8,flexWrap:"wrap"},children:v.map((N,O)=>I.jsxs("div",{style:{display:"flex",gap:6,alignItems:"baseline"},children:[I.jsx(si,{column:N,item:E}),I.jsx("small",{style:{opacity:.7},children:N.header})]},O))})})},"counts"),x&&I.jsxs(I.Fragment,{children:[I.jsx("div",{style:{flexGrow:1}}),I.jsx(Q.DescriptionListGroup,{children:I.jsx(Q.DescriptionListDescription,{children:I.jsx(si,{column:x,item:E})})},x.header)]})]})]})})},"primary"),y.length>0?I.jsx(Q.DataListCell,{children:I.jsx(Q.DescriptionList,{isCompact:!0,children:y.map(N=>N.value&&!N.value(E)?I.jsx(I.Fragment,{}):I.jsxs(Q.DescriptionListGroup,{children:[I.jsx(Q.DescriptionListTerm,{style:{whiteSpace:"nowrap",opacity:.6},children:N.header}),I.jsx(Q.DescriptionListDescription,{children:I.jsx(si,{column:N,item:E})})]},N.header))})},"secondary"):null]}),o&&I.jsx(Q.DataListAction,{"aria-labelledby":"check-action-item1 check-action-action1",id:"check-action-action1","aria-label":"Actions",style:{whiteSpace:"nowrap"},"data-cy":"data-list-action",children:I.jsx(uu,{actions:o,position:"right",selectedItem:E,iconOnly:!0,collapse:"always"})})]})},C)},[t,n,l,p,f,i,b,g,v,x,y,o,c])}function SE(e){const{id:t,toolbarActions:n,filterState:r,error:a,itemCount:o}=e,{t:i}=jn(),l=e.showSelect||(n==null?void 0:n.find(E=>"selection"in E&&E.selection===vr.Multiple))!==void 0,s=!e.disableTableView,c=!e.disableListView,[p,f]=w.useState(()=>{switch(e.id?localStorage.getItem(e.id+"-view"):void 0){case"table":return kr.Table;case"list":return kr.List;case"cards":return kr.Cards}return e.defaultTableView??(s?kr.Table:c?kr.List:kr.Cards)}),g=w.useCallback(E=>{f(E),e.id&&localStorage.setItem(e.id+"-view",E)},[e.id]),{openColumnManagement:v,managedColumns:b}=i$e((t??"")+"-columns",e.tableColumns,p!==kr.Table,p!==kr.List,p!==kr.Cards),y=QJe(e.tableColumns);if(a)return I.jsx(ZJe,{titleProp:e.errorStateTitle,message:a.message});if(o===0&&Object.keys(r??{}).length===0)return e.emptyState?e.emptyState:I.jsx($Je,{title:e.emptyStateTitle??i`No data`,description:e.emptyStateDescription,icon:e.emptyStateNoDataIcon,button:e.emptyStateButtonClick&&I.jsx(Q.Button,{"data-cy":e.emptyStateButtonText?S$e(e.emptyStateButtonText):"create-resource",variant:"primary",onClick:e.emptyStateButtonClick,icon:e.emptyStateButtonIcon?e.emptyStateButtonIcon:null,children:e.emptyStateButtonText})||e.emptyStateActions&&I.jsx(Q.Flex,{justifyContent:{default:"justifyContentCenter"},children:I.jsx(uu,{actions:e.emptyStateActions})})});let x=e.topContent;return x&&(x=I.jsx(Q.PageSection,{hasBodyWrapper:!1,padding:{default:"noPadding"},children:e.topContent})),I.jsxs(I.Fragment,{children:[I.jsx(Xue,{...e,openColumnModal:e.id?v:void 0,showSelect:l,viewType:p,setViewType:g,sortOptions:y,limitFiltersToOneOrOperation:e.limitFiltersToOneOrOperation}),x,p===kr.Table&&I.jsx(b$e,{...e,tableColumns:b}),p===kr.List&&I.jsx(cu,{marginLeft:20,marginRight:20,children:I.jsx(v$e,{...e,showSelect:l,tableColumns:b})}),p===kr.Cards&&I.jsx(cu,{marginLeft:20,marginRight:20,children:I.jsx(cpe,{...e,showSelect:l,tableColumns:b})}),!e.disablePagination&&(!e.autoHidePagination||(e.itemCount??0)>e.perPage)&&I.jsx(s$e,{...e,topBorder:!e.autoHidePagination})]})}function b$e(e){const{pageItems:t,selectItem:n,unselectItem:r,isSelected:a,isSelectMultiple:o,keyFn:i,rowActions:l,toolbarActions:s,itemCount:c,clearAllFilters:p,onSelect:f,unselectAll:g,maxSelections:v}=e,b=gj(e.tableColumns),y=Nue(e.tableColumns),x=Aue(e.tableColumns),E=w.useMemo(()=>{const L=[];if(y.length)for(const G of y)"value"in G?L.push(B=>{var q;const j=(q=G.value)==null?void 0:q.call(G,B);if(j)return I.jsx("div",{children:j},G.id??G.header)}):L.push(B=>G.cell(B));return x.length&&L.push(G=>x.some(j=>{var q;return((q=j.value)==null?void 0:q.call(j,G))!==void 0})?I.jsx(wue,{disablePadding:!0,numberOfColumns:"multiple",labelOrientation:"vertical",isCompact:!0,disableScroll:!0,children:I.jsx(Mue,{item:G,columns:x})},i(G)):null),e.expandedRow&&L.push(e.expandedRow),L.length===0?void 0:G=>L.map(j=>j(G)).filter(j=>j!=null).length===0?null:I.jsx(Q.Stack,{hasGutter:!0,children:L.map(j=>j(G))})},[y,x,i,e.expandedRow]),[C]=Na(),R=e.showSelect||(s==null?void 0:s.find(L=>"selection"in L&&L.selection===vr.Multiple))!==void 0,N=Em(),[O,P]=w.useState(0);let M;return c===void 0||t===void 0?M=I.jsx(l$e,{}):c===0?M=I.jsxs(Q.EmptyState,{icon:e.emptyStateIcon??Wt.SearchIcon,titleText:I.jsx(I.Fragment,{children:C.noResultsFound}),isFullHeight:!0,children:[I.jsx(Q.EmptyStateBody,{children:C.noResultsMatchCriteria}),I.jsx(Q.EmptyStateFooter,{children:p&&I.jsx(Q.EmptyStateActions,{children:I.jsx(Q.Button,{variant:"primary",onClick:p,children:C.clearAllFilters})})})]}):M=I.jsx(cu,{marginLeft:20,marginRight:20,children:I.jsxs(Xn.Table,{"aria-label":"Simple table",ouiaId:"simple-table",variant:e.compact||N.tableLayout==="compact"?"compact":void 0,gridBreakPoint:"",isStickyHeader:!0,style:{borderCollapse:"separate"},children:[I.jsx(_$e,{...e,showSelect:R,tableColumns:b,onSelect:f,expandedRow:E,expandColumnWidth:O,setExpandColumnWidth:P}),I.jsx(Xn.Tbody,{children:t.map((L,W)=>I.jsx(y$e,{columns:b,item:L,isItemSelected:a==null?void 0:a(L),isSelectMultiple:o,selectItem:n,unselectItem:r,rowActions:l,rowIndex:W,showSelect:R,unselectAll:g,onSelect:f,expandedRow:E,isLastRow:W===t.length-1,disableLastRowBorder:e.disableLastRowBorder,maxSelections:v,selectedItems:e.selectedItems,defaultExpandedRows:e.defaultExpandedRows,expandColumnWidth:O},i?i(L):W))})]})}),M}function _$e(e){const{tableColumns:t,rowActions:n,sort:r,setSort:a,sortDirection:o,setSortDirection:i,showSelect:l,onSelect:s,expandedRow:c,pageItems:p,isSelected:f,selectItems:g,unselectAll:v}=e,[b,y]=_J(),x=w.useRef(null),E=w.useCallback(()=>{if(!x.current)return;const q=x.current.clientHeight;y(Y=>({...Y,stickyTop:q}))},[y]);nd(x,E);const{expandColumnWidth:C,setExpandColumnWidth:R}=e,N=w.useRef(null),O=w.useCallback(()=>{N.current&&R(N.current.clientWidth)},[R]);nd(N,O);const[P,M]=w.useState(0),L=w.useRef(null),W=w.useCallback(()=>{L.current&&M(L.current.clientWidth)},[]);nd(L,W),w.useEffect(()=>{y(q=>({...q,stickyLeft:C+P}))},[C,P,y]);const G=w.useRef(null),B=w.useCallback(()=>{if(!G.current)return;const q=G.current.clientWidth;y(Y=>({...Y,stickyRight:q}))},[y]);nd(G,B);const j=w.useCallback((q,Y)=>{if(Y.sort)return{onSort:(K,ae,oe)=>{Y.sort&&(a==null||a(Y.sort),i==null||i(oe))},sortBy:{index:Y.sort===r?q:void 0,direction:Y.sort===r?o:void 0,defaultDirection:Y.defaultSortDirection},columnIndex:q}},[a,i,r,o]);return I.jsx(Xn.Thead,{style:{background:"inherit"},children:I.jsxs(Xn.Tr,{style:{background:"inherit"},ref:x,children:[c&&I.jsx(Xn.Th,{"aria-label":"Expand",isStickyColumn:!0,stickyMinWidth:"1px",ref:N}),(l||s)&&I.jsx(Xn.Th,{"aria-label":"Select",isStickyColumn:!0,stickyMinWidth:"1px","data-cy":"selections-column-header",style:{left:C},ref:L,select:{onSelect:(q,Y)=>{Y?g==null||g(p??[]):v==null||v()},isSelected:p&&p.length>0?p.every(q=>f==null?void 0:f(q)):!1}}),t.map((q,Y)=>I.jsx(Xn.Th,{"aria-label":q.header,sort:j(Y,q),modifier:"nowrap",style:{minWidth:q.minWidth===0?"1%":q.minWidth!==void 0?q.minWidth:void 0,maxWidth:q.maxWidth!==void 0?q.maxWidth:void 0,width:q.fullWidth?"100%":void 0},"data-cy":du(q.header+"-column-header"),children:q.header},q.header)),n!==void 0&&I.jsx(Xn.Th,{"aria-label":"Actions",isStickyColumn:!0,stickyMinWidth:"1px","data-cy":"action-column-header",ref:G})]})})}function y$e(e){const{columns:t,unselectAll:n,selectItem:r,unselectItem:a,isItemSelected:o,isSelectMultiple:i,item:l,rowActions:s,rowIndex:c,showSelect:p,onSelect:f,expandedRow:g,disableLastRowBorder:v,maxSelections:b,selectedItems:y}=e,x=g==null?void 0:g(l),{expandColumnWidth:E}=e,[C,R]=w.useState(!!e.defaultExpandedRows&&!!x),N=w.useCallback(P=>(y==null?void 0:y.length)===b?!(y!=null&&y.includes(P)):!1,[b,y]),O="id"in l&&(typeof l.id=="string"||typeof l.id=="number")?`row-id-${l.id.toString()}`:`row-${c}`;return I.jsxs(I.Fragment,{children:[I.jsxs(Xn.Tr,{style:{boxShadow:"unset",borderBottom:C||e.isLastRow&&v?"unset":void 0,cursor:f?"pointer":"default"},"data-testid":O,"data-cy":O,onClick:()=>{f&&(i||n==null||n(),i&&o?a==null||a(l):r==null||r(l),f(l))},children:[g&&I.jsx(Xn.Td,{expand:x?{rowIndex:c,isExpanded:C,onToggle:()=>R(P=>!P)}:void 0,"data-cy":"expand-column-cell",isStickyColumn:!0,stickyMinWidth:"1px",className:C&&x?"expanded":void 0}),p&&I.jsx(Xn.Td,{select:o!==void 0?{rowIndex:c,onSelect:(P,M)=>{M?r==null||r(l):a==null||a(l)},isSelected:o,isDisabled:b&&y?N(l):!1}:void 0,isStickyColumn:!0,stickyMinWidth:"1px","data-cy":"checkbox-column-cell",style:{left:E},className:g&&C&&x?"expanded":void 0}),f&&I.jsx(Xn.Td,{select:{rowIndex:c,isSelected:o??!1,variant:i?"checkbox":"radio",isDisabled:b&&y?N(l):!1,props:{"aria-label":"Select row"}},isStickyColumn:!0,stickyMinWidth:"1px","data-cy":"checkbox-column-cell"}),I.jsx(x$e,{columns:t,item:l,rowActions:s,expanded:!!g&&!!C&&!!x})]}),g&&C&&x&&I.jsxs(Xn.Tr,{isExpanded:C,style:{boxShadow:"unset"},children:[I.jsx(Xn.Td,{isStickyColumn:!0,stickyMinWidth:"1px"}),p&&I.jsx(Xn.Td,{"aria-label":"Select",isStickyColumn:!0,stickyMinWidth:"1px",style:{left:E}}),f&&I.jsx(Xn.Td,{isStickyColumn:!0,stickyMinWidth:"1px",style:{left:E}}),I.jsx(Xn.Td,{colSpan:t.length,children:I.jsx(Xn.CollapseColumn,{children:x})}),s!==void 0&&s.length>0&&I.jsx(Xn.Td,{isActionCell:!0,isStickyColumn:!0,stickyMinWidth:"1px",children:" "})]})]})}function x$e(e){const{columns:t,item:n,rowActions:r}=e,[a,o]=w.useState(!1);return I.jsxs(w.Fragment,{children:[t.map(i=>I.jsx(Xn.Td,{dataLabel:i.header,modifier:"nowrap",style:{width:i.minWidth===0?"0%":void 0},"data-cy":du(i.header+"-column-cell"),className:e.expanded?"expanded":void 0,children:I.jsx(si,{item:n,column:i})},i.header)),r!==void 0&&r.length>0&&I.jsx(Xn.Td,{isActionCell:!0,isStickyColumn:!0,stickyMinWidth:"1px",style:{zIndex:a?400:void 0},"data-cy":"actions-column-cell",className:e.expanded?"expanded":void 0,children:I.jsx(uu,{actions:r,selectedItem:n,position:"right",iconOnly:!0,onOpen:o})})]})}function S$e(e){return e.toLowerCase().split(" ").join("-")}function E$e(){const e=w.useRef(new AbortController);return w.useEffect(()=>{const t=e.current;return()=>t.abort()},[]),e.current}function dpe(e){const{title:t,keyFn:n,actionColumns:r,actionFn:a,onComplete:o,onClose:i,processingText:l,isDanger:s,errorAdapter:c=yE,description:p,statusParser:f}=e,{t:g}=jn(),[v,b]=w.useState(e.items),[y]=Na(),[x,E]=w.useState(!0),[C,R]=w.useState(0),[N,O]=w.useState(!1),[P,M]=w.useState(0),[L,W]=w.useState(""),[G,B]=w.useState(),j=E$e(),[q,Y]=Yp(),[K,ae]=w.useState([]),oe=w.useCallback(()=>{O(!0),j.abort(),E(!1),B(_e=>{const pe={..._e};for(const Ie of v){const Ce=n(Ie);pe[Ce]===void 0&&(pe[Ce]=g("Cancelled"))}return pe})},[j,v,n,g]),te=w.useCallback(()=>{Y(void 0),i==null||i(N?"canceled":L?"failures":"success",v.filter(_e=>(G==null?void 0:G[n(_e)])===null||(G==null?void 0:G[n(_e)]).message),v.filter(_e=>(G==null?void 0:G[n(_e)])!==null&&typeof(G==null?void 0:G[n(_e)])=="string"),v.filter(_e=>(G==null?void 0:G[n(_e)])===void 0)),o==null||o(K)},[L,N,v,n,i,o,Y,G,K]),ee=w.useCallback(()=>{W(""),E(!0),B(void 0),b(v.filter(_e=>(G==null?void 0:G[n(_e)])!==null&&typeof(G==null?void 0:G[n(_e)])=="string")),R(C+1)},[v,n,C,G]),z=w.useMemo(()=>j.signal.aborted?y.canceledText:L?y.errorText:x?l??y.processingText:y.successText,[j.signal.aborted,L,x,l,y.canceledText,y.errorText,y.processingText,y.successText]),re=w.useMemo(()=>{if(L||N)return Q.ProgressVariant.danger;if(P===v.length)return Q.ProgressVariant.success},[L,N,v.length,P]);w.useEffect(()=>{function _e(Ce,he){if(j.signal.aborted)return;let xe;f&&(xe=f(he)),B(Pe=>({...Pe??{},[Ce]:xe!==void 0?xe:null}))}function pe(Ce,he,xe){if(!j.signal.aborted){if(xe instanceof Error){const Pe=typeof he[0].message=="string"&&he.length===1?he[0].message:g("Unknown error");B(ie=>({...ie??{},[Ce]:Pe}))}else B(Pe=>({...Pe??{},[Ce]:g("Unknown error")}));W(y.errorText)}}async function Ie(){const Ce=jJe(5);let he=0;const xe=[];await Promise.all(v.map(Pe=>Ce(async()=>{if(j.signal.aborted)return;const ie=n(Pe);try{const lt=await a(Pe,j.signal);_e(ie,lt),xe.push(Pe)}catch(lt){const{genericErrors:at,fieldErrors:it}=c(lt),St=[...at,...it.filter(st=>st.message)];pe(ie,St,lt)}finally{j.signal.aborted||M(++he)}}))),ae([...K,...xe]),j.signal.aborted||E(!1)}Ie()},[j,a,v,n,o,y.errorText,g,c,f,C]),w.useEffect(()=>{let _e;return!x&&!L&&(_e=setTimeout(()=>{te()},1e3)),()=>clearTimeout(_e)},[x,L,te]);const ce=xE(v),$=IR(r),de=w.useMemo(()=>x?[I.jsx(Q.Button,{variant:"link",onClick:oe,children:g("Cancel")},"cancel")]:L?[I.jsx(Q.Button,{variant:"primary",onClick:ee,children:g("Retry")},"retry"),I.jsx(Q.Button,{variant:"secondary",onClick:te,children:g("Close")},"close")]:[],[L,x,oe,te,ee,g]);return I.jsxs(Q.Modal,{ouiaId:t,variant:Q.ModalVariant.medium,isOpen:!0,onClose:()=>{oe(),te()},"aria-label":t,children:[I.jsx(Q.ModalHeader,{title:t,titleIconVariant:s?"warning":void 0,description:p}),I.jsx(Q.ModalBody,{style:{paddingBottom:0,paddingLeft:0,paddingRight:0},children:I.jsx("div",{style:{display:"flex",flexDirection:"column",maxHeight:560,overflow:"hidden",borderTop:"var(--pf-t--global--border--color--default)"},children:I.jsx(SE,{pageItems:[...ce.paged],itemCount:v.length,tableColumns:[...$,{header:g("Status"),cell:_e=>{const pe=n(_e),Ie=G==null?void 0:G[pe];return Ie===void 0?I.jsxs("span",{style:{color:fD},children:[I.jsx(Wt.PendingIcon,{}),"  ",y.pendingText]}):Ie===null?I.jsxs("span",{style:{color:uD},children:[I.jsx(Wt.CheckCircleIcon,{}),"  ",y.successText]}):Ie.message&&Ie.url?I.jsx("a",{href:Ie.url,children:Ie.message}):I.jsxs("span",{style:{color:pD},children:[I.jsx(Wt.ExclamationCircleIcon,{}),"  ",G==null?void 0:G[pe]]})}}],keyFn:n,compact:!0,errorStateTitle:"",emptyStateTitle:g("No items"),autoHidePagination:!0,disableBodyPadding:!0,...ce},"status")})}),I.jsx(Q.ModalBody,{style:{paddingTop:0},children:I.jsx(Q.Progress,{"data-cy":"progress",value:P/v.length*100,title:z,size:Q.ProgressSize.lg,variant:re})}),I.jsx(Q.ModalFooter,{children:de})]})}function upe(e=yE,t){const[n,r]=Yp(),[a,o]=w.useState();return w.useEffect(()=>{if(a){const i=(l,s,c,p)=>{var f;o(void 0),(f=a.onClose)==null||f.call(a,l,s,c,p)};r(I.jsx(dpe,{...a,errorAdapter:a.errorAdapter??e,statusParser:a.statusParser??t,onClose:i}))}else r(void 0)},[a,r,e,t]),o}function ppe(e,t){if(e===void 0&&t===void 0)return 0;if(e===void 0)return 1;if(t===void 0)return-1;if(typeof e=="string"){if(typeof t=="string")return EE(e,t);if(typeof t=="number")return EE(e,t.toString())}else if(typeof e=="number"){if(typeof t=="number")return fpe(e,t);if(typeof t=="string")return EE(e.toString(),t)}return 0}function EE(e,t){return e===void 0&&t===void 0?0:e==null?1:t==null||e<t?-1:e>t?1:0}function fpe(e,t){return e===void 0&&t===void 0?0:e==null?1:t==null||e<t?-1:e>t?1:0}const w$e=Cn.div`
472
472
  margin-left: 32px;
473
473
  height: 64px;
474
474
  display: flex;
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.2699",
4
+ "version": "2.4.2700",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -57,7 +57,7 @@ declare function xie(): {
57
57
  pushDialog: (e: any) => void;
58
58
  popDialog: () => void;
59
59
  };
60
- declare function sa(): (((a: any) => void) | undefined)[];
60
+ declare function la(): (((a: any) => void) | undefined)[];
61
61
  declare function Aue(e: any): (m: any, y: any) => void;
62
62
  declare function iae(e: any): any;
63
63
  declare function F4(): any;
@@ -94,7 +94,7 @@ declare function qie(e: any, t: any): (c: any) => {
94
94
  labels: any;
95
95
  };
96
96
  declare function zie(e: any): any;
97
- declare var ga: any;
97
+ declare var pa: any;
98
98
  declare var $re: any;
99
99
  declare var Nre: any;
100
100
  declare var qre: any;
@@ -352,4 +352,4 @@ declare function uue(e: any): {
352
352
  declare function due(e: any): any;
353
353
  declare function fue(e: any): any;
354
354
  import * as xy from "react";
355
- export { Zie as $, hue as A, GL as B, n5 as C, gue as D, pue as E, I$ as F, mue as G, Hd as H, L$ as I, Yy as J, dE as K, oue as L, yue as M, wx as N, Ere as O, Gd as P, xue as Q, n4 as R, mi as S, R$ as T, bue as U, _ue as V, Pre as W, wue as X, hl as Y, Rre as Z, Yre as _, Yk as a, qD as a$, Xie as a0, Tue as a1, kue as a2, yie as a3, vie as a4, xie as a5, sa as a6, Aue as a7, iae as a8, F4 as a9, Ece as aA, jce as aB, Dce as aC, Mce as aD, Pce as aE, tA as aF, cx as aG, $4 as aH, N4 as aI, Ice as aJ, Bue as aK, xs as aL, D$ as aM, Hf as aN, jie as aO, Fie as aP, $ie as aQ, Nie as aR, qie as aS, zie as aT, ga as aU, $re as aV, Nre as aW, qre as aX, zre as aY, Dv as aZ, en as a_, Eue as aa, jue as ab, Due as ac, Mue as ad, wce as ae, Sce as af, Mi as ag, Zr as ah, Pue as ai, Iue as aj, Lue as ak, Rue as al, yM as am, Oae as an, Tae as ao, mM as ap, _ae as aq, Fue as ar, $ue as as, kce as at, Nue as au, Ace as av, que as aw, zue as ax, q4 as ay, Wue as az, i4 as b, Wre as b0, Bre as b1, m1 as b2, Sue as b3, Cue as b4, Ure as b5, Vre as b6, Hre as b7, Gre as b8, Oue as b9, Kce as bA, Zce as bB, GD as ba, bie as bb, YD as bc, KD as bd, Vf as be, Uue as bf, $T as bg, hie as bh, UD as bi, lie as bj, Vue as bk, Hue as bl, sl as bm, aie as bn, oie as bo, sie as bp, Qm as bq, Gue as br, VL as bs, Tt as bt, Yue as bu, Yce as bv, Jie as bw, wu as bx, Qie as by, Kue as bz, Kk as c, Oe as d, Zk as e, sue as f, Yd as g, lue as h, cue as i, g as j, a4 as k, d4 as l, HL as m, $n as n, aue as o, Gk as p, et as q, Ve as r, Si as s, eA as t, Ql as u, lx as v, A4 as w, uue as x, due as y, fue as z };
355
+ export { Zie as $, hue as A, GL as B, n5 as C, gue as D, pue as E, I$ as F, mue as G, Hd as H, L$ as I, Yy as J, dE as K, oue as L, yue as M, wx as N, Ere as O, Gd as P, xue as Q, n4 as R, mi as S, R$ as T, bue as U, _ue as V, Pre as W, wue as X, hl as Y, Rre as Z, Yre as _, Yk as a, qD as a$, Xie as a0, Tue as a1, kue as a2, yie as a3, vie as a4, xie as a5, la as a6, Aue as a7, iae as a8, F4 as a9, Ece as aA, jce as aB, Dce as aC, Mce as aD, Pce as aE, tA as aF, cx as aG, $4 as aH, N4 as aI, Ice as aJ, Bue as aK, xs as aL, D$ as aM, Hf as aN, jie as aO, Fie as aP, $ie as aQ, Nie as aR, qie as aS, zie as aT, pa as aU, $re as aV, Nre as aW, qre as aX, zre as aY, Dv as aZ, en as a_, Eue as aa, jue as ab, Due as ac, Mue as ad, wce as ae, Sce as af, Mi as ag, Zr as ah, Pue as ai, Iue as aj, Lue as ak, Rue as al, yM as am, Oae as an, Tae as ao, mM as ap, _ae as aq, Fue as ar, $ue as as, kce as at, Nue as au, Ace as av, que as aw, zue as ax, q4 as ay, Wue as az, i4 as b, Wre as b0, Bre as b1, m1 as b2, Sue as b3, Cue as b4, Ure as b5, Vre as b6, Hre as b7, Gre as b8, Oue as b9, Kce as bA, Zce as bB, GD as ba, bie as bb, YD as bc, KD as bd, Vf as be, Uue as bf, $T as bg, hie as bh, UD as bi, lie as bj, Vue as bk, Hue as bl, sl as bm, aie as bn, oie as bo, sie as bp, Qm as bq, Gue as br, VL as bs, Tt as bt, Yue as bu, Yce as bv, Jie as bw, wu as bx, Qie as by, Kue as bz, Kk as c, Oe as d, Zk as e, sue as f, Yd as g, lue as h, cue as i, g as j, a4 as k, d4 as l, HL as m, $n as n, aue as o, Gk as p, et as q, Ve as r, Si as s, eA as t, Ql as u, lx as v, A4 as w, uue as x, due as y, fue as z };
@@ -1,155 +1,155 @@
1
- import { $ as s } from "./index-Cca7Tl23.js";
2
- import { B as o } from "./index-Cca7Tl23.js";
3
- import { A as t } from "./index-Cca7Tl23.js";
4
- import { C as r } from "./index-Cca7Tl23.js";
5
- import { aW as l } from "./index-Cca7Tl23.js";
6
- import { aY as i } from "./index-Cca7Tl23.js";
7
- import { aV as n } from "./index-Cca7Tl23.js";
8
- import { aX as g } from "./index-Cca7Tl23.js";
9
- import { aZ as b } from "./index-Cca7Tl23.js";
10
- import { aU as u } from "./index-Cca7Tl23.js";
11
- import { aQ as P } from "./index-Cca7Tl23.js";
12
- import { D as d } from "./index-Cca7Tl23.js";
13
- import { af as m } from "./index-Cca7Tl23.js";
14
- import { ae as C } from "./index-Cca7Tl23.js";
15
- import { E as c } from "./index-Cca7Tl23.js";
16
- import { bo as T } from "./index-Cca7Tl23.js";
17
- import { bm as D } from "./index-Cca7Tl23.js";
18
- import { F as p } from "./index-Cca7Tl23.js";
19
- import { G as S } from "./index-Cca7Tl23.js";
20
- import { bs as h } from "./index-Cca7Tl23.js";
21
- import { ab as F } from "./index-Cca7Tl23.js";
22
- import { H as v } from "./index-Cca7Tl23.js";
23
- import { k as B } from "./index-Cca7Tl23.js";
24
- import { I as f } from "./index-Cca7Tl23.js";
25
- import { L as I } from "./index-Cca7Tl23.js";
26
- import { a2 as A } from "./index-Cca7Tl23.js";
27
- import { P as y } from "./index-Cca7Tl23.js";
28
- import { r as N } from "./index-Cca7Tl23.js";
29
- import { q as x } from "./index-Cca7Tl23.js";
30
- import { s as k } from "./index-Cca7Tl23.js";
31
- import { t as w } from "./index-Cca7Tl23.js";
32
- import { w as E } from "./index-Cca7Tl23.js";
33
- import { y as O } from "./index-Cca7Tl23.js";
34
- import { z as L } from "./index-Cca7Tl23.js";
35
- import { J as M } from "./index-Cca7Tl23.js";
36
- import { M as V } from "./index-Cca7Tl23.js";
37
- import { N as R } from "./index-Cca7Tl23.js";
38
- import { Q as W } from "./index-Cca7Tl23.js";
39
- import { O as j } from "./index-Cca7Tl23.js";
40
- import { K as G } from "./index-Cca7Tl23.js";
41
- import { U as z } from "./index-Cca7Tl23.js";
42
- import { X as U } from "./index-Cca7Tl23.js";
43
- import { V as H } from "./index-Cca7Tl23.js";
44
- import { Y as q } from "./index-Cca7Tl23.js";
45
- import { aP as Q } from "./index-Cca7Tl23.js";
46
- import { Z as J } from "./index-Cca7Tl23.js";
47
- import { _ as K } from "./index-Cca7Tl23.js";
48
- import { a4 as X } from "./index-Cca7Tl23.js";
49
- import { W as Y } from "./index-Cca7Tl23.js";
50
- import { an as Z } from "./index-Cca7Tl23.js";
51
- import { aq as _ } from "./index-Cca7Tl23.js";
52
- import { ac as $ } from "./index-Cca7Tl23.js";
53
- import { ad as aa } from "./index-Cca7Tl23.js";
54
- import { ao as ea } from "./index-Cca7Tl23.js";
55
- import { ai as sa } from "./index-Cca7Tl23.js";
56
- import { ap as oa } from "./index-Cca7Tl23.js";
57
- import { aj as ta } from "./index-Cca7Tl23.js";
58
- import { ak as ra } from "./index-Cca7Tl23.js";
59
- import { al as la } from "./index-Cca7Tl23.js";
60
- import { ar as ia } from "./index-Cca7Tl23.js";
61
- import { as as na } from "./index-Cca7Tl23.js";
62
- import { at as ga } from "./index-Cca7Tl23.js";
63
- import { au as ba } from "./index-Cca7Tl23.js";
64
- import { av as ua } from "./index-Cca7Tl23.js";
65
- import { aF as Pa } from "./index-Cca7Tl23.js";
66
- import { aH as da } from "./index-Cca7Tl23.js";
67
- import { ay as ma } from "./index-Cca7Tl23.js";
68
- import { a9 as Ca } from "./index-Cca7Tl23.js";
69
- import { aa as ca } from "./index-Cca7Tl23.js";
70
- import { aw as Ta } from "./index-Cca7Tl23.js";
71
- import { aL as Da } from "./index-Cca7Tl23.js";
72
- import { aM as pa } from "./index-Cca7Tl23.js";
73
- import { bg as Sa } from "./index-Cca7Tl23.js";
74
- import { aN as ha } from "./index-Cca7Tl23.js";
75
- import { aR as Fa } from "./index-Cca7Tl23.js";
76
- import { aT as va } from "./index-Cca7Tl23.js";
77
- import { bf as Ba } from "./index-Cca7Tl23.js";
78
- import { ax as fa } from "./index-Cca7Tl23.js";
79
- import { bh as Ia } from "./index-Cca7Tl23.js";
80
- import { bj as Aa } from "./index-Cca7Tl23.js";
81
- import { br as ya } from "./index-Cca7Tl23.js";
82
- import { R as Na } from "./index-Cca7Tl23.js";
83
- import { S as xa } from "./index-Cca7Tl23.js";
84
- import { a8 as ka } from "./index-Cca7Tl23.js";
85
- import { aO as wa } from "./index-Cca7Tl23.js";
86
- import { a_ as Ea } from "./index-Cca7Tl23.js";
87
- import { T as Oa } from "./index-Cca7Tl23.js";
88
- import { bn as La } from "./index-Cca7Tl23.js";
89
- import { bi as Ma } from "./index-Cca7Tl23.js";
90
- import { bq as Va } from "./index-Cca7Tl23.js";
91
- import { bp as Ra } from "./index-Cca7Tl23.js";
92
- import { aC as Wa } from "./index-Cca7Tl23.js";
93
- import { aD as ja } from "./index-Cca7Tl23.js";
94
- import { aE as Ga } from "./index-Cca7Tl23.js";
95
- import { bz as za } from "./index-Cca7Tl23.js";
96
- import { by as Ua } from "./index-Cca7Tl23.js";
97
- import { bx as Ha } from "./index-Cca7Tl23.js";
98
- import { bw as qa } from "./index-Cca7Tl23.js";
99
- import { x as Qa } from "./index-Cca7Tl23.js";
100
- import { bB as Ja } from "./index-Cca7Tl23.js";
101
- import { aA as Ka } from "./index-Cca7Tl23.js";
102
- import { g as Xa } from "./index-Cca7Tl23.js";
103
- import { bk as Ya } from "./index-Cca7Tl23.js";
104
- import { ah as Za } from "./index-Cca7Tl23.js";
105
- import { bA as _a } from "./index-Cca7Tl23.js";
106
- import { a as $a } from "./index-Cca7Tl23.js";
107
- import { e as ae } from "./index-Cca7Tl23.js";
108
- import { c as ee } from "./index-Cca7Tl23.js";
109
- import { f as se } from "./index-Cca7Tl23.js";
110
- import { p as oe } from "./index-Cca7Tl23.js";
111
- import { i as te } from "./index-Cca7Tl23.js";
112
- import { h as re } from "./index-Cca7Tl23.js";
113
- import { b as le } from "./index-Cca7Tl23.js";
114
- import { az as ie } from "./index-Cca7Tl23.js";
115
- import { aB as ne } from "./index-Cca7Tl23.js";
116
- import { bl as ge } from "./index-Cca7Tl23.js";
117
- import { n as be } from "./index-Cca7Tl23.js";
118
- import { a0 as ue } from "./index-Cca7Tl23.js";
119
- import { a1 as Pe } from "./index-Cca7Tl23.js";
120
- import { aS as de } from "./index-Cca7Tl23.js";
121
- import { b8 as me } from "./index-Cca7Tl23.js";
122
- import { b7 as Ce } from "./index-Cca7Tl23.js";
123
- import { b3 as ce } from "./index-Cca7Tl23.js";
124
- import { b5 as Te } from "./index-Cca7Tl23.js";
125
- import { b6 as De } from "./index-Cca7Tl23.js";
126
- import { bd as pe } from "./index-Cca7Tl23.js";
127
- import { am as Se } from "./index-Cca7Tl23.js";
128
- import { bt as he } from "./index-Cca7Tl23.js";
129
- import { aJ as Fe } from "./index-Cca7Tl23.js";
130
- import { bu as ve } from "./index-Cca7Tl23.js";
131
- import { a3 as Be } from "./index-Cca7Tl23.js";
132
- import { o as fe } from "./index-Cca7Tl23.js";
133
- import { v as Ie } from "./index-Cca7Tl23.js";
134
- import { a6 as Ae } from "./index-Cca7Tl23.js";
135
- import { a5 as ye } from "./index-Cca7Tl23.js";
136
- import { aI as Ne } from "./index-Cca7Tl23.js";
137
- import { aG as xe } from "./index-Cca7Tl23.js";
138
- import { aK as ke } from "./index-Cca7Tl23.js";
139
- import { u as we } from "./index-Cca7Tl23.js";
140
- import { be as Ee } from "./index-Cca7Tl23.js";
141
- import { l as Oe } from "./index-Cca7Tl23.js";
142
- import { a7 as Le } from "./index-Cca7Tl23.js";
143
- import { ba as Me } from "./index-Cca7Tl23.js";
144
- import { bb as Ve } from "./index-Cca7Tl23.js";
145
- import { bc as Re } from "./index-Cca7Tl23.js";
146
- import { b9 as We } from "./index-Cca7Tl23.js";
147
- import { bv as je } from "./index-Cca7Tl23.js";
148
- import { b1 as Ge } from "./index-Cca7Tl23.js";
149
- import { b4 as ze } from "./index-Cca7Tl23.js";
150
- import { b0 as Ue } from "./index-Cca7Tl23.js";
151
- import { b2 as He } from "./index-Cca7Tl23.js";
152
- import { a$ as qe } from "./index-Cca7Tl23.js";
153
- import { m as Qe } from "./index-Cca7Tl23.js";
154
- import { ag as Je } from "./index-Cca7Tl23.js";
1
+ import { $ as s } from "./index-C5UL_jDS.js";
2
+ import { B as o } from "./index-C5UL_jDS.js";
3
+ import { A as t } from "./index-C5UL_jDS.js";
4
+ import { C as r } from "./index-C5UL_jDS.js";
5
+ import { aW as l } from "./index-C5UL_jDS.js";
6
+ import { aY as i } from "./index-C5UL_jDS.js";
7
+ import { aV as n } from "./index-C5UL_jDS.js";
8
+ import { aX as g } from "./index-C5UL_jDS.js";
9
+ import { aZ as b } from "./index-C5UL_jDS.js";
10
+ import { aU as u } from "./index-C5UL_jDS.js";
11
+ import { aQ as P } from "./index-C5UL_jDS.js";
12
+ import { D as d } from "./index-C5UL_jDS.js";
13
+ import { af as m } from "./index-C5UL_jDS.js";
14
+ import { ae as C } from "./index-C5UL_jDS.js";
15
+ import { E as c } from "./index-C5UL_jDS.js";
16
+ import { bo as T } from "./index-C5UL_jDS.js";
17
+ import { bm as D } from "./index-C5UL_jDS.js";
18
+ import { F as p } from "./index-C5UL_jDS.js";
19
+ import { G as S } from "./index-C5UL_jDS.js";
20
+ import { bs as h } from "./index-C5UL_jDS.js";
21
+ import { ab as F } from "./index-C5UL_jDS.js";
22
+ import { H as v } from "./index-C5UL_jDS.js";
23
+ import { k as B } from "./index-C5UL_jDS.js";
24
+ import { I as f } from "./index-C5UL_jDS.js";
25
+ import { L as I } from "./index-C5UL_jDS.js";
26
+ import { a2 as A } from "./index-C5UL_jDS.js";
27
+ import { P as y } from "./index-C5UL_jDS.js";
28
+ import { r as N } from "./index-C5UL_jDS.js";
29
+ import { q as x } from "./index-C5UL_jDS.js";
30
+ import { s as k } from "./index-C5UL_jDS.js";
31
+ import { t as w } from "./index-C5UL_jDS.js";
32
+ import { w as E } from "./index-C5UL_jDS.js";
33
+ import { y as O } from "./index-C5UL_jDS.js";
34
+ import { z as L } from "./index-C5UL_jDS.js";
35
+ import { J as M } from "./index-C5UL_jDS.js";
36
+ import { M as V } from "./index-C5UL_jDS.js";
37
+ import { N as R } from "./index-C5UL_jDS.js";
38
+ import { Q as W } from "./index-C5UL_jDS.js";
39
+ import { O as j } from "./index-C5UL_jDS.js";
40
+ import { K as G } from "./index-C5UL_jDS.js";
41
+ import { U as z } from "./index-C5UL_jDS.js";
42
+ import { X as U } from "./index-C5UL_jDS.js";
43
+ import { V as H } from "./index-C5UL_jDS.js";
44
+ import { Y as q } from "./index-C5UL_jDS.js";
45
+ import { aP as Q } from "./index-C5UL_jDS.js";
46
+ import { Z as J } from "./index-C5UL_jDS.js";
47
+ import { _ as K } from "./index-C5UL_jDS.js";
48
+ import { a4 as X } from "./index-C5UL_jDS.js";
49
+ import { W as Y } from "./index-C5UL_jDS.js";
50
+ import { an as Z } from "./index-C5UL_jDS.js";
51
+ import { aq as _ } from "./index-C5UL_jDS.js";
52
+ import { ac as $ } from "./index-C5UL_jDS.js";
53
+ import { ad as aa } from "./index-C5UL_jDS.js";
54
+ import { ao as ea } from "./index-C5UL_jDS.js";
55
+ import { ai as sa } from "./index-C5UL_jDS.js";
56
+ import { ap as oa } from "./index-C5UL_jDS.js";
57
+ import { aj as ta } from "./index-C5UL_jDS.js";
58
+ import { ak as ra } from "./index-C5UL_jDS.js";
59
+ import { al as la } from "./index-C5UL_jDS.js";
60
+ import { ar as ia } from "./index-C5UL_jDS.js";
61
+ import { as as na } from "./index-C5UL_jDS.js";
62
+ import { at as ga } from "./index-C5UL_jDS.js";
63
+ import { au as ba } from "./index-C5UL_jDS.js";
64
+ import { av as ua } from "./index-C5UL_jDS.js";
65
+ import { aF as Pa } from "./index-C5UL_jDS.js";
66
+ import { aH as da } from "./index-C5UL_jDS.js";
67
+ import { ay as ma } from "./index-C5UL_jDS.js";
68
+ import { a9 as Ca } from "./index-C5UL_jDS.js";
69
+ import { aa as ca } from "./index-C5UL_jDS.js";
70
+ import { aw as Ta } from "./index-C5UL_jDS.js";
71
+ import { aL as Da } from "./index-C5UL_jDS.js";
72
+ import { aM as pa } from "./index-C5UL_jDS.js";
73
+ import { bg as Sa } from "./index-C5UL_jDS.js";
74
+ import { aN as ha } from "./index-C5UL_jDS.js";
75
+ import { aR as Fa } from "./index-C5UL_jDS.js";
76
+ import { aT as va } from "./index-C5UL_jDS.js";
77
+ import { bf as Ba } from "./index-C5UL_jDS.js";
78
+ import { ax as fa } from "./index-C5UL_jDS.js";
79
+ import { bh as Ia } from "./index-C5UL_jDS.js";
80
+ import { bj as Aa } from "./index-C5UL_jDS.js";
81
+ import { br as ya } from "./index-C5UL_jDS.js";
82
+ import { R as Na } from "./index-C5UL_jDS.js";
83
+ import { S as xa } from "./index-C5UL_jDS.js";
84
+ import { a8 as ka } from "./index-C5UL_jDS.js";
85
+ import { aO as wa } from "./index-C5UL_jDS.js";
86
+ import { a_ as Ea } from "./index-C5UL_jDS.js";
87
+ import { T as Oa } from "./index-C5UL_jDS.js";
88
+ import { bn as La } from "./index-C5UL_jDS.js";
89
+ import { bi as Ma } from "./index-C5UL_jDS.js";
90
+ import { bq as Va } from "./index-C5UL_jDS.js";
91
+ import { bp as Ra } from "./index-C5UL_jDS.js";
92
+ import { aC as Wa } from "./index-C5UL_jDS.js";
93
+ import { aD as ja } from "./index-C5UL_jDS.js";
94
+ import { aE as Ga } from "./index-C5UL_jDS.js";
95
+ import { bz as za } from "./index-C5UL_jDS.js";
96
+ import { by as Ua } from "./index-C5UL_jDS.js";
97
+ import { bx as Ha } from "./index-C5UL_jDS.js";
98
+ import { bw as qa } from "./index-C5UL_jDS.js";
99
+ import { x as Qa } from "./index-C5UL_jDS.js";
100
+ import { bB as Ja } from "./index-C5UL_jDS.js";
101
+ import { aA as Ka } from "./index-C5UL_jDS.js";
102
+ import { g as Xa } from "./index-C5UL_jDS.js";
103
+ import { bk as Ya } from "./index-C5UL_jDS.js";
104
+ import { ah as Za } from "./index-C5UL_jDS.js";
105
+ import { bA as _a } from "./index-C5UL_jDS.js";
106
+ import { a as $a } from "./index-C5UL_jDS.js";
107
+ import { e as ae } from "./index-C5UL_jDS.js";
108
+ import { c as ee } from "./index-C5UL_jDS.js";
109
+ import { f as se } from "./index-C5UL_jDS.js";
110
+ import { p as oe } from "./index-C5UL_jDS.js";
111
+ import { i as te } from "./index-C5UL_jDS.js";
112
+ import { h as re } from "./index-C5UL_jDS.js";
113
+ import { b as le } from "./index-C5UL_jDS.js";
114
+ import { az as ie } from "./index-C5UL_jDS.js";
115
+ import { aB as ne } from "./index-C5UL_jDS.js";
116
+ import { bl as ge } from "./index-C5UL_jDS.js";
117
+ import { n as be } from "./index-C5UL_jDS.js";
118
+ import { a0 as ue } from "./index-C5UL_jDS.js";
119
+ import { a1 as Pe } from "./index-C5UL_jDS.js";
120
+ import { aS as de } from "./index-C5UL_jDS.js";
121
+ import { b8 as me } from "./index-C5UL_jDS.js";
122
+ import { b7 as Ce } from "./index-C5UL_jDS.js";
123
+ import { b3 as ce } from "./index-C5UL_jDS.js";
124
+ import { b5 as Te } from "./index-C5UL_jDS.js";
125
+ import { b6 as De } from "./index-C5UL_jDS.js";
126
+ import { bd as pe } from "./index-C5UL_jDS.js";
127
+ import { am as Se } from "./index-C5UL_jDS.js";
128
+ import { bt as he } from "./index-C5UL_jDS.js";
129
+ import { aJ as Fe } from "./index-C5UL_jDS.js";
130
+ import { bu as ve } from "./index-C5UL_jDS.js";
131
+ import { a3 as Be } from "./index-C5UL_jDS.js";
132
+ import { o as fe } from "./index-C5UL_jDS.js";
133
+ import { v as Ie } from "./index-C5UL_jDS.js";
134
+ import { a6 as Ae } from "./index-C5UL_jDS.js";
135
+ import { a5 as ye } from "./index-C5UL_jDS.js";
136
+ import { aI as Ne } from "./index-C5UL_jDS.js";
137
+ import { aG as xe } from "./index-C5UL_jDS.js";
138
+ import { aK as ke } from "./index-C5UL_jDS.js";
139
+ import { u as we } from "./index-C5UL_jDS.js";
140
+ import { be as Ee } from "./index-C5UL_jDS.js";
141
+ import { l as Oe } from "./index-C5UL_jDS.js";
142
+ import { a7 as Le } from "./index-C5UL_jDS.js";
143
+ import { ba as Me } from "./index-C5UL_jDS.js";
144
+ import { bb as Ve } from "./index-C5UL_jDS.js";
145
+ import { bc as Re } from "./index-C5UL_jDS.js";
146
+ import { b9 as We } from "./index-C5UL_jDS.js";
147
+ import { bv as je } from "./index-C5UL_jDS.js";
148
+ import { b1 as Ge } from "./index-C5UL_jDS.js";
149
+ import { b4 as ze } from "./index-C5UL_jDS.js";
150
+ import { b0 as Ue } from "./index-C5UL_jDS.js";
151
+ import { b2 as He } from "./index-C5UL_jDS.js";
152
+ import { a$ as qe } from "./index-C5UL_jDS.js";
153
+ import { m as Qe } from "./index-C5UL_jDS.js";
154
+ import { ag as Je } from "./index-C5UL_jDS.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 };
@@ -0,0 +1 @@
1
+ export declare function mockI18n(): void;