@ansible/ansible-ui-framework 2.4.2675 → 2.4.2676

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { u as He, j as M } from "./index-3eRL2TwX.js";
1
+ import { u as He, j as M } from "./index-B5zQdjrv.js";
2
2
  import { useContext as je, createContext as Oe, useState as Se, useEffect as Be, useRef as Ze } from "react";
3
3
  import Ye from "react-dom";
4
4
  import { A as Te } from "./ansible-chatbot-jXPBfTRi.js";
@@ -1,4 +1,4 @@
1
- import { u as a, j as e, d as i } from "./index-3eRL2TwX.js";
1
+ import { u as a, j as e, d as i } from "./index-B5zQdjrv.js";
2
2
  import { t as r, a as s, X as o } from "./ansible-chatbot-jXPBfTRi.js";
3
3
  import "@patternfly/react-core";
4
4
  import "react";
@@ -1,7 +1,8 @@
1
- import { ComponentType, ReactNode } from 'react';
1
+ import { ComponentType, CSSProperties, ReactNode } from 'react';
2
2
  export declare function PageTableEmptyState(props: {
3
3
  icon?: ComponentType;
4
4
  title: string;
5
5
  description?: string;
6
6
  children?: ReactNode;
7
+ style?: CSSProperties;
7
8
  }): import("react/jsx-runtime").JSX.Element;
@@ -3049,7 +3049,7 @@ const g8 = an({
3049
3049
  chatbotState: "disabled",
3050
3050
  setChatbotState: () => {
3051
3051
  }
3052
- }), m8 = () => kt(g8), y8 = dE(() => import("./ChatbotPortal-cHwD_ZwP.js")), v8 = () => /* @__PURE__ */ p.jsx(fE, { fallback: /* @__PURE__ */ p.jsx("div", { children: "Loading..." }), children: /* @__PURE__ */ p.jsx(y8, {}) }), x8 = dE(() => import("./ChatbotSideBarHeader-D4mMyQky.js")), b8 = () => {
3052
+ }), m8 = () => kt(g8), y8 = dE(() => import("./ChatbotPortal-BBFDeCkK.js")), v8 = () => /* @__PURE__ */ p.jsx(fE, { fallback: /* @__PURE__ */ p.jsx("div", { children: "Loading..." }), children: /* @__PURE__ */ p.jsx(y8, {}) }), x8 = dE(() => import("./ChatbotSideBarHeader-ERuetBbW.js")), b8 = () => {
3053
3053
  const { t: e } = Pe();
3054
3054
  return /* @__PURE__ */ p.jsx(fE, { fallback: /* @__PURE__ */ p.jsx("span", { children: e("Loading...") }), children: /* @__PURE__ */ p.jsx(x8, {}) });
3055
3055
  }, _8 = Te(PR)`
@@ -34527,7 +34527,7 @@ function xoe(e, t) {
34527
34527
  }
34528
34528
  function DP(e) {
34529
34529
  return /* @__PURE__ */ p.jsxs(Xa, { icon: e.icon ?? FE, titleText: e.title, isFullHeight: !0, children: [
34530
- e.description && /* @__PURE__ */ p.jsx(gi, { children: e.description }),
34530
+ e.description && /* @__PURE__ */ p.jsx(gi, { style: { ...e.style }, children: e.description }),
34531
34531
  e.children && /* @__PURE__ */ p.jsx(hs, { children: /* @__PURE__ */ p.jsx(Hl, { children: e.children }) })
34532
34532
  ] });
34533
34533
  }
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as s, B as o, z as t, C as r, aV as l, aX as i, aU as n, aW as g, aY as b, aT as u, aP as P, A as d, ae as m, ad as C, D as c, bn as D, bl as T, E as p, F as S, br as h, aa as F, H as v, i as B, G as f, L as A, a1 as I, P as N, q as x, o as y, r as k, s as w, v as E, x as O, y as L, I as M, K as V, M as R, O as W, N as j, J as G, Q as z, W as U, U as H, X as q, aO as Q, Y as J, Z as K, a3 as X, V as Y, am as Z, ap as _, ab as $, ac as aa, an as ea, ah as sa, ao as oa, ai as ta, aj as ra, ak as la, aq as ia, ar as na, as as ga, at as ba, au as ua, aE as Pa, aG as da, ax as ma, a8 as Ca, a9 as ca, av as Da, aK as Ta, aL as pa, bf as Sa, aM as ha, aQ as Fa, aS as va, be as Ba, aw as fa, bg as Aa, bi as Ia, bq as Na, R as xa, S as ya, a7 as ka, aN as wa, aZ as Ea, T as Oa, bm as La, bh as Ma, bp as Va, bo as Ra, aB as Wa, aC as ja, aD as Ga, by as za, bx as Ua, bw as Ha, bv as qa, w as Qa, bA as Ja, az as Ka, g as Xa, bj as Ya, ag as Za, bz as _a, a as $a, e as ae, c as ee, f as se, p as oe, h as te, b as re, ay as le, aA as ie, bk as ne, m as ge, $ as be, a0 as ue, aR as Pe, b7 as de, b6 as me, b2 as Ce, b4 as ce, b5 as De, bc as Te, al as pe, bs as Se, aI as he, bt as Fe, a2 as ve, n as Be, t as fe, a5 as Ae, a4 as Ie, aH as Ne, aF as xe, aJ as ye, u as ke, bd as we, k as Ee, a6 as Oe, b9 as Le, ba as Me, bb as Ve, b8 as Re, bu as We, b0 as je, b3 as Ge, a$ as ze, b1 as Ue, a_ as He, l as qe, af as Qe } from "./index-3eRL2TwX.js";
1
+ import { _ as s, B as o, z as t, C as r, aV as l, aX as i, aU as n, aW as g, aY as b, aT as u, aP as P, A as d, ae as m, ad as C, D as c, bn as D, bl as T, E as p, F as S, br as h, aa as F, H as v, i as B, G as f, L as A, a1 as I, P as N, q as x, o as y, r as k, s as w, v as E, x as O, y as L, I as M, K as V, M as R, O as W, N as j, J as G, Q as z, W as U, U as H, X as q, aO as Q, Y as J, Z as K, a3 as X, V as Y, am as Z, ap as _, ab as $, ac as aa, an as ea, ah as sa, ao as oa, ai as ta, aj as ra, ak as la, aq as ia, ar as na, as as ga, at as ba, au as ua, aE as Pa, aG as da, ax as ma, a8 as Ca, a9 as ca, av as Da, aK as Ta, aL as pa, bf as Sa, aM as ha, aQ as Fa, aS as va, be as Ba, aw as fa, bg as Aa, bi as Ia, bq as Na, R as xa, S as ya, a7 as ka, aN as wa, aZ as Ea, T as Oa, bm as La, bh as Ma, bp as Va, bo as Ra, aB as Wa, aC as ja, aD as Ga, by as za, bx as Ua, bw as Ha, bv as qa, w as Qa, bA as Ja, az as Ka, g as Xa, bj as Ya, ag as Za, bz as _a, a as $a, e as ae, c as ee, f as se, p as oe, h as te, b as re, ay as le, aA as ie, bk as ne, m as ge, $ as be, a0 as ue, aR as Pe, b7 as de, b6 as me, b2 as Ce, b4 as ce, b5 as De, bc as Te, al as pe, bs as Se, aI as he, bt as Fe, a2 as ve, n as Be, t as fe, a5 as Ae, a4 as Ie, aH as Ne, aF as xe, aJ as ye, u as ke, bd as we, k as Ee, a6 as Oe, b9 as Le, ba as Me, bb as Ve, b8 as Re, bu as We, b0 as je, b3 as Ge, a$ as ze, b1 as Ue, a_ as He, l as qe, af as Qe } from "./index-B5zQdjrv.js";
2
2
  export {
3
3
  s as BulkActionDialog,
4
4
  o as BulkSelector,
package/index.umd.cjs CHANGED
@@ -487,7 +487,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[lT]+=1);const sT=Cn.button`
487
487
  display: flex;
488
488
  gap: 6px;
489
489
  align-items: baseline;
490
- `;function Upe(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 R.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:[R.jsx(Q.CardHeader,{selectableActions:l?{selectableActionId:`card-${c.id}-checkbox`,onChange:f}:void 0,style:{display:"flex",flexWrap:"nowrap",maxWidth:"100%"},children:R.jsxs(zet,{children:[R.jsxs(qet,{children:[c.iconAboveTitle?null:c.icon&&R.jsx(IS,{size:"xl",children:c.icon}),R.jsxs(Wet,{children:[c.iconAboveTitle?R.jsx(Get,{children:c.icon&&R.jsx(IS,{size:"xl",children:c.icon})}):null,R.jsx(Q.CardTitle,{children:c.title}),c.subtitle?R.jsx(Q.Content,{component:"small",style:{opacity:.7},children:c.subtitle}):s&&R.jsx(Q.Content,{component:"small",style:{opacity:.7},children:s})]})]}),c.badge&&c.badgeTooltip&&R.jsx(Q.FlexItem,{children:R.jsx("div",{onClick:g=>g.stopPropagation(),children:R.jsx(Q.Popover,{headerContent:c.badgeTooltipTitle,bodyContent:c.badgeTooltip,children:R.jsx(Q.Label,{color:c.badgeColor,children:c.badge})})})}),c.badge&&!c.badgeTooltip&&R.jsx(Q.FlexItem,{children:R.jsx(Q.Label,{color:c.badgeColor,children:c.badge})})]})}),R.jsx("div",{style:{overflow:"hidden",display:"flex",paddingBottom:16,flexGrow:1},children:R.jsx(uu,{children:c.cardBody})}),c.labels||i&&i.length?R.jsx(Q.CardFooter,{children:R.jsxs(Het,{children:[R.jsx(Vet,{children:c.labels&&R.jsx(Q.LabelGroup,{numLabels:999,children:c.labels.map(g=>R.jsx(Q.Label,{color:g.color,icon:g.icon,variant:g.variant,children:R.jsx(Q.Truncate,{content:g.label,style:{minWidth:0}})},g.label))})}),i&&i.length?R.jsx("div",{style:{marginRight:-16,alignSelf:"end",justifySelf:"flex-end",flexGrow:1},children:R.jsx(fu,{actions:i,position:"right",selectedItem:t,iconOnly:!0})}):null]})}):null,c.alertTitle&&R.jsx(Q.Alert,{title:c.alertTitle,isInline:!0,variant:c.alertVariant,children:c.alertContent})]},c.id??c.title)}function zpe(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:R.jsx(Gr.Link,{to:(g==null?void 0:g(c))??"",style:{whiteSpace:"normal",textWrap:"balance"},children:typeof b=="string"?b.split("/").map((C,I)=>R.jsx("div",{children:C},I)):(v==null?void 0:v(c))??""}),subtitle:a&&(!a.value||a.value(c))&&R.jsx(di,{column:a,item:c}),cardBody:R.jsxs(Q.DescriptionList,{isCompact:!0,style:{paddingLeft:32,paddingRight:32},children:[p&&o&&R.jsx(iy,{children:o.type==="description"?R.jsx("div",{children:o.value(c)}):R.jsx(di,{column:o,item:c})},o.id??o.header),f.map(C=>R.jsx(iy,{label:C.header,children:R.jsx(di,{column:C,item:c})},C.id??C.header)),i.length>0&&R.jsx(iy,{children:R.jsx(Fpe,{children:i.map((C,I)=>R.jsxs(jpe,{children:[R.jsx(di,{column:C,item:c}),R.jsx(Bpe,{children:C.header})]},I))})},"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=R.jsx("div",{style:{flexGrow:1}})),y},[l,i,o,s,r,a,t])}function Gpe(e){return R.jsxs(Q.EmptyState,{icon:e.icon??Vt.PlusCircleIcon,titleText:e.title,isFullHeight:!0,children:[e.description&&R.jsx(Q.EmptyStateBody,{children:e.description}),e.children&&R.jsx(Q.EmptyStateFooter,{children:R.jsx(Q.EmptyStateActions,{children:e.children})})]})}function qpe(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]=Pa(),v=zpe(r,t),b=w.useMemo(()=>R.jsx(Uet,{size:400,children:n==null?void 0:n.map(y=>R.jsx(Upe,{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 R.jsx(R.Fragment,{children:p===0?R.jsx(Gpe,{icon:Vt.SearchIcon,title:g.noResultsFound,description:g.noResultsMatchCriteria,children:R.jsx(Q.Button,{variant:"primary",onClick:f,children:g.clearAllFilters})}):R.jsx(R.Fragment,{children:b})})}function Yet(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]=Pa(),v=Ket(r,t,a,o,i,l,s,c);return R.jsx(R.Fragment,{children:p===0?R.jsx(Gpe,{icon:Vt.SearchIcon,title:g.noResultsFound,description:g.noResultsMatchCriteria,children:R.jsx(Q.Button,{variant:"primary",onClick:f,children:g.clearAllFilters})}):R.jsx(Q.DataList,{"aria-label":"TODO",children:n==null?void 0:n.map(v)})})}function Ket(e,t,n,r,a,o,i,l){const s=w.useMemo(()=>{let E,C,I;const N=[];let O;const P=[],M=[];for(const L of e)if(L.list!=="hidden")switch(L.type){case"description":I||(I=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":I=L;break;case"secondary":M.push(L);break;default:P.push(L);break}break}return{nameColumn:E,subtitleColumn:C,descriptionColumn:I,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),I=n==null?void 0:n(E);return R.jsx(Q.DataListItem,{"aria-labelledby":`data-list-${C}`,isExpanded:I,children:R.jsxs(Q.DataListItemRow,{children:[l&&R.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"}),R.jsx(Q.DataListItemCells,{dataListCells:[R.jsx(Q.DataListCell,{width:5,children:R.jsx(Q.Flex,{children:R.jsxs(Q.Stack,{hasGutter:!0,children:[R.jsxs(Q.Flex,{alignItems:{default:"alignItemsCenter"},children:[(p==null?void 0:p.icon)&&R.jsx(IS,{size:"xl",children:p==null?void 0:p.icon(E)}),R.jsxs(Q.Stack,{children:[R.jsx(Q.Title,{headingLevel:"h2",style:{marginTop:-4,fontWeight:"bold"},"data-cy":"data-list-name",children:R.jsx("span",{id:`data-list-${C}`,children:R.jsx(di,{column:p,item:E})})}),f?R.jsx(Q.Content,{component:"small",style:{opacity:.7},children:R.jsx(di,{column:f,item:E})}):i&&R.jsx(Q.Content,{component:"small",style:{opacity:.7},children:i})]})]}),(g||b.length>0||v.length>0||x)&&R.jsxs(Q.DescriptionList,{isCompact:!0,children:[g&&(!g.value||g.value(E))&&R.jsx(Q.DescriptionListGroup,{children:R.jsx(Q.DescriptionListDescription,{children:R.jsx(di,{column:g,item:E})})},g.header),b.map(N=>N.value&&!N.value(E)?R.jsx(R.Fragment,{}):R.jsxs(Q.DescriptionListGroup,{children:[R.jsx(Q.DescriptionListTerm,{style:{whiteSpace:"nowrap",opacity:.6},children:N.header}),R.jsx(Q.DescriptionListDescription,{children:R.jsx(di,{column:N,item:E})})]},N.header)),v.length>0&&R.jsx(Q.DescriptionListGroup,{children:R.jsx(Q.DescriptionListDescription,{children:R.jsx("div",{style:{display:"flex",gap:16,marginTop:8,flexWrap:"wrap"},children:v.map((N,O)=>R.jsxs("div",{style:{display:"flex",gap:6,alignItems:"baseline"},children:[R.jsx(di,{column:N,item:E}),R.jsx("small",{style:{opacity:.7},children:N.header})]},O))})})},"counts"),x&&R.jsxs(R.Fragment,{children:[R.jsx("div",{style:{flexGrow:1}}),R.jsx(Q.DescriptionListGroup,{children:R.jsx(Q.DescriptionListDescription,{children:R.jsx(di,{column:x,item:E})})},x.header)]})]})]})})},"primary"),y.length>0?R.jsx(Q.DataListCell,{children:R.jsx(Q.DescriptionList,{isCompact:!0,children:y.map(N=>N.value&&!N.value(E)?R.jsx(R.Fragment,{}):R.jsxs(Q.DescriptionListGroup,{children:[R.jsx(Q.DescriptionListTerm,{style:{whiteSpace:"nowrap",opacity:.6},children:N.header}),R.jsx(Q.DescriptionListDescription,{children:R.jsx(di,{column:N,item:E})})]},N.header))})},"secondary"):null]}),o&&R.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:R.jsx(fu,{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 kE(e){const{id:t,toolbarActions:n,filterState:r,error:a,itemCount:o}=e,{t:i}=Wn(),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 Rr.Table;case"list":return Rr.List;case"cards":return Rr.Cards}return e.defaultTableView??(s?Rr.Table:c?Rr.List:Rr.Cards)}),g=w.useCallback(E=>{f(E),e.id&&localStorage.setItem(e.id+"-view",E)},[e.id]),{openColumnManagement:v,managedColumns:b}=Bet((t??"")+"-columns",e.tableColumns,p!==Rr.Table,p!==Rr.List,p!==Rr.Cards),y=ket(e.tableColumns);if(a)return R.jsx(Iet,{titleProp:e.errorStateTitle,message:a.message});if(o===0&&Object.keys(r??{}).length===0)return e.emptyState?e.emptyState:R.jsx(Net,{title:e.emptyStateTitle??i`No data`,description:e.emptyStateDescription,icon:e.emptyStateNoDataIcon,button:e.emptyStateButtonClick&&R.jsx(Q.Button,{"data-cy":e.emptyStateButtonText?$et(e.emptyStateButtonText):"create-resource",variant:"primary",onClick:e.emptyStateButtonClick,icon:e.emptyStateButtonIcon?e.emptyStateButtonIcon:null,children:e.emptyStateButtonText})||e.emptyStateActions&&R.jsx(Q.Flex,{justifyContent:{default:"justifyContentCenter"},children:R.jsx(fu,{actions:e.emptyStateActions})})});let x=e.topContent;return x&&(x=R.jsx(Q.PageSection,{hasBodyWrapper:!1,padding:{default:"noPadding"},children:e.topContent})),R.jsxs(R.Fragment,{children:[R.jsx(Ope,{...e,openColumnModal:e.id?v:void 0,showSelect:l,viewType:p,setViewType:g,sortOptions:y,limitFiltersToOneOrOperation:e.limitFiltersToOneOrOperation}),x,p===Rr.Table&&R.jsx(Qet,{...e,tableColumns:b}),p===Rr.List&&R.jsx(uu,{marginLeft:20,marginRight:20,children:R.jsx(Yet,{...e,showSelect:l,tableColumns:b})}),p===Rr.Cards&&R.jsx(uu,{marginLeft:20,marginRight:20,children:R.jsx(qpe,{...e,showSelect:l,tableColumns:b})}),!e.disablePagination&&(!e.autoHidePagination||(e.itemCount??0)>e.perPage)&&R.jsx(jet,{...e,topBorder:!e.autoHidePagination})]})}function Qet(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=Oj(e.tableColumns),y=upe(e.tableColumns),x=ppe(e.tableColumns),E=w.useMemo(()=>{const L=[];if(y.length)for(const U of y)"value"in U?L.push(F=>{var W;const j=(W=U.value)==null?void 0:W.call(U,F);if(j)return R.jsx("div",{children:j},U.id??U.header)}):L.push(F=>U.cell(F));return x.length&&L.push(U=>x.some(j=>{var W;return((W=j.value)==null?void 0:W.call(j,U))!==void 0})?R.jsx(ape,{disablePadding:!0,numberOfColumns:"multiple",labelOrientation:"vertical",isCompact:!0,disableScroll:!0,children:R.jsx(gpe,{item:U,columns:x})},i(U)):null),e.expandedRow&&L.push(e.expandedRow),L.length===0?void 0:U=>L.map(j=>j(U)).filter(j=>j!=null).length===0?null:R.jsx(Q.Stack,{hasGutter:!0,children:L.map(j=>j(U))})},[y,x,i,e.expandedRow]),[C]=Pa(),I=e.showSelect||(s==null?void 0:s.find(L=>"selection"in L&&L.selection===vr.Multiple))!==void 0,N=Ip(),[O,P]=w.useState(0);let M;return c===void 0||t===void 0?M=R.jsx(Fet,{}):c===0?M=R.jsxs(Q.EmptyState,{icon:e.emptyStateIcon??Vt.SearchIcon,titleText:R.jsx(R.Fragment,{children:C.noResultsFound}),isFullHeight:!0,children:[R.jsx(Q.EmptyStateBody,{children:C.noResultsMatchCriteria}),R.jsx(Q.EmptyStateFooter,{children:p&&R.jsx(Q.EmptyStateActions,{children:R.jsx(Q.Button,{variant:"primary",onClick:p,children:C.clearAllFilters})})})]}):M=R.jsx(uu,{marginLeft:20,marginRight:20,children:R.jsxs(ar.Table,{"aria-label":"Simple table",ouiaId:"simple-table",variant:e.compact||N.tableLayout==="compact"?"compact":void 0,gridBreakPoint:"",isStickyHeader:!0,style:{borderCollapse:"separate"},children:[R.jsx(Xet,{...e,showSelect:I,tableColumns:b,onSelect:f,expandedRow:E,expandColumnWidth:O,setExpandColumnWidth:P}),R.jsx(ar.Tbody,{children:t.map((L,H)=>R.jsx(Zet,{columns:b,item:L,isItemSelected:a==null?void 0:a(L),isSelectMultiple:o,selectItem:n,unselectItem:r,rowActions:l,rowIndex:H,showSelect:I,unselectAll:g,onSelect:f,expandedRow:E,isLastRow:H===t.length-1,disableLastRowBorder:e.disableLastRowBorder,maxSelections:v,selectedItems:e.selectedItems,defaultExpandedRows:e.defaultExpandedRows,expandColumnWidth:O},i?i(L):H))})]})}),M}function Xet(e){const{tableColumns:t,rowActions:n,sort:r,setSort:a,sortDirection:o,setSortDirection:i,showSelect:l,onSelect:s,expandedRow:c}=e,[p,f]=DJ(),g=w.useRef(null),v=w.useCallback(()=>{if(!g.current)return;const H=g.current.clientHeight;f(U=>({...U,stickyTop:H}))},[f]);du(g,v);const{expandColumnWidth:b,setExpandColumnWidth:y}=e,x=w.useRef(null),E=w.useCallback(()=>{x.current&&y(x.current.clientWidth)},[y]);du(x,E);const[C,I]=w.useState(0),N=w.useRef(null),O=w.useCallback(()=>{N.current&&I(N.current.clientWidth)},[]);du(N,O),w.useEffect(()=>{f(H=>({...H,stickyLeft:b+C}))},[b,C,f]);const P=w.useRef(null),M=w.useCallback(()=>{if(!P.current)return;const H=P.current.clientWidth;f(U=>({...U,stickyRight:H}))},[f]);du(P,M);const L=w.useCallback((H,U)=>{if(U.sort)return{onSort:(F,j,W)=>{U.sort&&(a==null||a(U.sort),i==null||i(W))},sortBy:{index:U.sort===r?H:void 0,direction:U.sort===r?o:void 0,defaultDirection:U.defaultSortDirection},columnIndex:H}},[a,i,r,o]);return R.jsx(ar.Thead,{style:{background:"inherit"},children:R.jsxs(ar.Tr,{style:{background:"inherit"},ref:g,children:[c&&R.jsx(ar.Th,{style:{padding:0},"aria-label":"Expand",isStickyColumn:!0,stickyMinWidth:"0px",ref:x}),(l||s)&&R.jsx(ar.Th,{"aria-label":"Select",isStickyColumn:!0,stickyMinWidth:"48px","data-cy":"selections-column-header",style:{paddingTop:18,paddingLeft:18,left:b},ref:N,children:" "}),t.map((H,U)=>R.jsx(ar.Th,{"aria-label":H.header,sort:L(U,H),modifier:"nowrap",style:{minWidth:H.minWidth===0?"1%":H.minWidth!==void 0?H.minWidth:void 0,maxWidth:H.maxWidth!==void 0?H.maxWidth:void 0,width:H.fullWidth?"100%":void 0},"data-cy":pu(H.header+"-column-header"),children:H.header},H.header)),n!==void 0&&R.jsx(ar.Th,{"aria-label":"Actions",isStickyColumn:!0,stickyMinWidth:"48px","data-cy":"action-column-header",ref:P})]})})}function Zet(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,I]=w.useState(!!e.defaultExpandedRows&&!!x),N=Ip(),O=w.useCallback(P=>(y==null?void 0:y.length)===b?!(y!=null&&y.includes(P)):!1,[b,y]);return R.jsxs(R.Fragment,{children:[R.jsxs(ar.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&&R.jsx(ar.Td,{expand:x?{rowIndex:c,isExpanded:C,onToggle:()=>I(P=>!P)}:void 0,style:{paddingLeft:0,paddingRight:0},"data-cy":"expand-column-cell",isStickyColumn:!0,stickyMinWidth:"0px",className:C&&x?"expanded":void 0}),p&&R.jsx(ar.Td,{select:o!==void 0?{rowIndex:c,onSelect:(P,M)=>{M?r==null||r(l):a==null||a(l)},isSelected:o,isDisabled:b&&y?O(l):!1}:void 0,isStickyColumn:!0,stickyMinWidth:"48px","data-cy":"checkbox-column-cell",style:{paddingTop:18,paddingLeft:16,left:E},className:g&&C&&x?"expanded":void 0}),f&&R.jsx(ar.Td,{select:{rowIndex:c,isSelected:o??!1,variant:i?"checkbox":"radio",isDisabled:b&&y?O(l):!1,props:{"aria-label":"Select row"}},isStickyColumn:!0,stickyMinWidth:"48px","data-cy":"checkbox-column-cell"}),R.jsx(Jet,{columns:t,item:l,rowActions:s,expanded:!!g&&!!C&&!!x})]}),g&&C&&x&&R.jsxs(ar.Tr,{isExpanded:C,style:{boxShadow:"unset"},children:[R.jsx(ar.Td,{isStickyColumn:!0,stickyMinWidth:"0px"}),p&&R.jsx(ar.Td,{"aria-label":"Select",isStickyColumn:!0,stickyMinWidth:"48px",style:{paddingTop:18,paddingLeft:16,left:E}}),f&&R.jsx(ar.Td,{isStickyColumn:!0,stickyMinWidth:"48px",style:{paddingTop:18,paddingLeft:16,left:E}}),R.jsx(ar.Td,{colSpan:t.length,style:{paddingBottom:N.tableLayout==="compact"?12:24,paddingTop:0},children:R.jsx(ar.CollapseColumn,{children:x})}),s!==void 0&&s.length>0&&R.jsx(ar.Td,{isActionCell:!0,isStickyColumn:!0,stickyMinWidth:"48px",children:" "})]})]})}function Jet(e){const{columns:t,item:n,rowActions:r}=e,[a,o]=w.useState(!1);return R.jsxs(w.Fragment,{children:[t.map(i=>R.jsx(ar.Td,{dataLabel:i.header,modifier:"nowrap",style:{width:i.minWidth===0?"0%":void 0},"data-cy":pu(i.header+"-column-cell"),className:e.expanded?"expanded":void 0,children:R.jsx(di,{item:n,column:i})},i.header)),r!==void 0&&r.length>0&&R.jsx(ar.Td,{isActionCell:!0,isStickyColumn:!0,stickyMinWidth:"48px",style:{padding:10,zIndex:a?400:void 0},"data-cy":"actions-column-cell",className:e.expanded?"expanded":void 0,children:R.jsx(fu,{actions:r,selectedItem:n,position:"right",iconOnly:!0,onOpen:o})})]})}function $et(e){return e.toLowerCase().split(" ").join("-")}function ett(){const e=w.useRef(new AbortController);return w.useEffect(()=>{const t=e.current;return()=>t.abort()},[]),e.current}function Wpe(e){const{title:t,keyFn:n,actionColumns:r,actionFn:a,onComplete:o,onClose:i,processingText:l,isDanger:s,errorAdapter:c=wE,description:p,statusParser:f}=e,{t:g}=Wn(),[v,b]=w.useState(e.items),[y]=Pa(),[x,E]=w.useState(!0),[C,I]=w.useState(0),[N,O]=w.useState(!1),[P,M]=w.useState(0),[L,H]=w.useState(""),[U,F]=w.useState(),j=ett(),[W,Y]=Jp(),[K,ae]=w.useState([]),oe=w.useCallback(()=>{O(!0),j.abort(),E(!1),F(be=>{const pe={...be};for(const Te of v){const Ce=n(Te);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(be=>(U==null?void 0:U[n(be)])===null||(U==null?void 0:U[n(be)]).message),v.filter(be=>(U==null?void 0:U[n(be)])!==null&&typeof(U==null?void 0:U[n(be)])=="string"),v.filter(be=>(U==null?void 0:U[n(be)])===void 0)),o==null||o(K)},[L,N,v,n,i,o,Y,U,K]),ee=w.useCallback(()=>{H(""),E(!0),F(void 0),b(v.filter(be=>(U==null?void 0:U[n(be)])!==null&&typeof(U==null?void 0:U[n(be)])=="string")),I(C+1)},[v,n,C,U]),G=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 be(Ce,he){if(j.signal.aborted)return;let xe;f&&(xe=f(he)),F(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");F(ie=>({...ie??{},[Ce]:Pe}))}else F(Pe=>({...Pe??{},[Ce]:g("Unknown error")}));H(y.errorText)}}async function Te(){const Ce=get(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);be(ie,lt),xe.push(Pe)}catch(lt){const{genericErrors:Me,fieldErrors:ot}=c(lt),_t=[...Me,...ot.filter(st=>st.message)];pe(ie,_t,lt)}finally{j.signal.aborted||M(++he)}}))),ae([...K,...xe]),j.signal.aborted||E(!1)}Te()},[j,a,v,n,o,y.errorText,g,c,f,C]),w.useEffect(()=>{let be;return!x&&!L&&(be=setTimeout(()=>{te()},1e3)),()=>clearTimeout(be)},[x,L,te]);const ce=CE(v),$=MI(r),de=w.useMemo(()=>x?[R.jsx(Q.Button,{variant:"link",onClick:oe,children:g("Cancel")},"cancel")]:L?[R.jsx(Q.Button,{variant:"primary",onClick:ee,children:g("Retry")},"retry"),R.jsx(Q.Button,{variant:"secondary",onClick:te,children:g("Close")},"close")]:[],[L,x,oe,te,ee,g]);return R.jsxs(Q.Modal,{ouiaId:t,variant:Q.ModalVariant.medium,isOpen:!0,onClose:()=>{oe(),te()},"aria-label":t,children:[R.jsx(Q.ModalHeader,{title:t,titleIconVariant:s?"warning":void 0,description:p}),R.jsx(Q.ModalBody,{style:{paddingBottom:0,paddingLeft:0,paddingRight:0},children:R.jsx("div",{style:{display:"flex",flexDirection:"column",maxHeight:560,overflow:"hidden",borderTop:"var(--pf-t--global--border--color--default)"},children:R.jsx(kE,{pageItems:[...ce.paged],itemCount:v.length,tableColumns:[...$,{header:g("Status"),cell:be=>{const pe=n(be),Te=U==null?void 0:U[pe];return Te===void 0?R.jsxs("span",{style:{color:xD},children:[R.jsx(Vt.PendingIcon,{}),"  ",y.pendingText]}):Te===null?R.jsxs("span",{style:{color:_D},children:[R.jsx(Vt.CheckCircleIcon,{}),"  ",y.successText]}):Te.message&&Te.url?R.jsx("a",{href:Te.url,children:Te.message}):R.jsxs("span",{style:{color:yD},children:[R.jsx(Vt.ExclamationCircleIcon,{}),"  ",U==null?void 0:U[pe]]})}}],keyFn:n,compact:!0,errorStateTitle:"",emptyStateTitle:g("No items"),autoHidePagination:!0,disableBodyPadding:!0,...ce},"status")})}),R.jsx(Q.ModalBody,{style:{paddingTop:0},children:R.jsx(Q.Progress,{"data-cy":"progress",value:P/v.length*100,title:G,size:Q.ProgressSize.lg,variant:re})}),R.jsx(Q.ModalFooter,{children:de})]})}function Hpe(e=wE,t){const[n,r]=Jp(),[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(R.jsx(Wpe,{...a,errorAdapter:a.errorAdapter??e,statusParser:a.statusParser??t,onClose:i}))}else r(void 0)},[a,r,e,t]),o}function Vpe(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 TE(e,t);if(typeof t=="number")return TE(e,t.toString())}else if(typeof e=="number"){if(typeof t=="number")return Ype(e,t);if(typeof t=="string")return TE(e.toString(),t)}return 0}function TE(e,t){return e===void 0&&t===void 0?0:e==null?1:t==null||e<t?-1:e>t?1:0}function Ype(e,t){return e===void 0&&t===void 0?0:e==null?1:t==null||e<t?-1:e>t?1:0}const ttt=Cn.div`
490
+ `;function Upe(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 R.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:[R.jsx(Q.CardHeader,{selectableActions:l?{selectableActionId:`card-${c.id}-checkbox`,onChange:f}:void 0,style:{display:"flex",flexWrap:"nowrap",maxWidth:"100%"},children:R.jsxs(zet,{children:[R.jsxs(qet,{children:[c.iconAboveTitle?null:c.icon&&R.jsx(IS,{size:"xl",children:c.icon}),R.jsxs(Wet,{children:[c.iconAboveTitle?R.jsx(Get,{children:c.icon&&R.jsx(IS,{size:"xl",children:c.icon})}):null,R.jsx(Q.CardTitle,{children:c.title}),c.subtitle?R.jsx(Q.Content,{component:"small",style:{opacity:.7},children:c.subtitle}):s&&R.jsx(Q.Content,{component:"small",style:{opacity:.7},children:s})]})]}),c.badge&&c.badgeTooltip&&R.jsx(Q.FlexItem,{children:R.jsx("div",{onClick:g=>g.stopPropagation(),children:R.jsx(Q.Popover,{headerContent:c.badgeTooltipTitle,bodyContent:c.badgeTooltip,children:R.jsx(Q.Label,{color:c.badgeColor,children:c.badge})})})}),c.badge&&!c.badgeTooltip&&R.jsx(Q.FlexItem,{children:R.jsx(Q.Label,{color:c.badgeColor,children:c.badge})})]})}),R.jsx("div",{style:{overflow:"hidden",display:"flex",paddingBottom:16,flexGrow:1},children:R.jsx(uu,{children:c.cardBody})}),c.labels||i&&i.length?R.jsx(Q.CardFooter,{children:R.jsxs(Het,{children:[R.jsx(Vet,{children:c.labels&&R.jsx(Q.LabelGroup,{numLabels:999,children:c.labels.map(g=>R.jsx(Q.Label,{color:g.color,icon:g.icon,variant:g.variant,children:R.jsx(Q.Truncate,{content:g.label,style:{minWidth:0}})},g.label))})}),i&&i.length?R.jsx("div",{style:{marginRight:-16,alignSelf:"end",justifySelf:"flex-end",flexGrow:1},children:R.jsx(fu,{actions:i,position:"right",selectedItem:t,iconOnly:!0})}):null]})}):null,c.alertTitle&&R.jsx(Q.Alert,{title:c.alertTitle,isInline:!0,variant:c.alertVariant,children:c.alertContent})]},c.id??c.title)}function zpe(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:R.jsx(Gr.Link,{to:(g==null?void 0:g(c))??"",style:{whiteSpace:"normal",textWrap:"balance"},children:typeof b=="string"?b.split("/").map((C,I)=>R.jsx("div",{children:C},I)):(v==null?void 0:v(c))??""}),subtitle:a&&(!a.value||a.value(c))&&R.jsx(di,{column:a,item:c}),cardBody:R.jsxs(Q.DescriptionList,{isCompact:!0,style:{paddingLeft:32,paddingRight:32},children:[p&&o&&R.jsx(iy,{children:o.type==="description"?R.jsx("div",{children:o.value(c)}):R.jsx(di,{column:o,item:c})},o.id??o.header),f.map(C=>R.jsx(iy,{label:C.header,children:R.jsx(di,{column:C,item:c})},C.id??C.header)),i.length>0&&R.jsx(iy,{children:R.jsx(Fpe,{children:i.map((C,I)=>R.jsxs(jpe,{children:[R.jsx(di,{column:C,item:c}),R.jsx(Bpe,{children:C.header})]},I))})},"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=R.jsx("div",{style:{flexGrow:1}})),y},[l,i,o,s,r,a,t])}function Gpe(e){return R.jsxs(Q.EmptyState,{icon:e.icon??Vt.PlusCircleIcon,titleText:e.title,isFullHeight:!0,children:[e.description&&R.jsx(Q.EmptyStateBody,{style:{...e.style},children:e.description}),e.children&&R.jsx(Q.EmptyStateFooter,{children:R.jsx(Q.EmptyStateActions,{children:e.children})})]})}function qpe(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]=Pa(),v=zpe(r,t),b=w.useMemo(()=>R.jsx(Uet,{size:400,children:n==null?void 0:n.map(y=>R.jsx(Upe,{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 R.jsx(R.Fragment,{children:p===0?R.jsx(Gpe,{icon:Vt.SearchIcon,title:g.noResultsFound,description:g.noResultsMatchCriteria,children:R.jsx(Q.Button,{variant:"primary",onClick:f,children:g.clearAllFilters})}):R.jsx(R.Fragment,{children:b})})}function Yet(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]=Pa(),v=Ket(r,t,a,o,i,l,s,c);return R.jsx(R.Fragment,{children:p===0?R.jsx(Gpe,{icon:Vt.SearchIcon,title:g.noResultsFound,description:g.noResultsMatchCriteria,children:R.jsx(Q.Button,{variant:"primary",onClick:f,children:g.clearAllFilters})}):R.jsx(Q.DataList,{"aria-label":"TODO",children:n==null?void 0:n.map(v)})})}function Ket(e,t,n,r,a,o,i,l){const s=w.useMemo(()=>{let E,C,I;const N=[];let O;const P=[],M=[];for(const L of e)if(L.list!=="hidden")switch(L.type){case"description":I||(I=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":I=L;break;case"secondary":M.push(L);break;default:P.push(L);break}break}return{nameColumn:E,subtitleColumn:C,descriptionColumn:I,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),I=n==null?void 0:n(E);return R.jsx(Q.DataListItem,{"aria-labelledby":`data-list-${C}`,isExpanded:I,children:R.jsxs(Q.DataListItemRow,{children:[l&&R.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"}),R.jsx(Q.DataListItemCells,{dataListCells:[R.jsx(Q.DataListCell,{width:5,children:R.jsx(Q.Flex,{children:R.jsxs(Q.Stack,{hasGutter:!0,children:[R.jsxs(Q.Flex,{alignItems:{default:"alignItemsCenter"},children:[(p==null?void 0:p.icon)&&R.jsx(IS,{size:"xl",children:p==null?void 0:p.icon(E)}),R.jsxs(Q.Stack,{children:[R.jsx(Q.Title,{headingLevel:"h2",style:{marginTop:-4,fontWeight:"bold"},"data-cy":"data-list-name",children:R.jsx("span",{id:`data-list-${C}`,children:R.jsx(di,{column:p,item:E})})}),f?R.jsx(Q.Content,{component:"small",style:{opacity:.7},children:R.jsx(di,{column:f,item:E})}):i&&R.jsx(Q.Content,{component:"small",style:{opacity:.7},children:i})]})]}),(g||b.length>0||v.length>0||x)&&R.jsxs(Q.DescriptionList,{isCompact:!0,children:[g&&(!g.value||g.value(E))&&R.jsx(Q.DescriptionListGroup,{children:R.jsx(Q.DescriptionListDescription,{children:R.jsx(di,{column:g,item:E})})},g.header),b.map(N=>N.value&&!N.value(E)?R.jsx(R.Fragment,{}):R.jsxs(Q.DescriptionListGroup,{children:[R.jsx(Q.DescriptionListTerm,{style:{whiteSpace:"nowrap",opacity:.6},children:N.header}),R.jsx(Q.DescriptionListDescription,{children:R.jsx(di,{column:N,item:E})})]},N.header)),v.length>0&&R.jsx(Q.DescriptionListGroup,{children:R.jsx(Q.DescriptionListDescription,{children:R.jsx("div",{style:{display:"flex",gap:16,marginTop:8,flexWrap:"wrap"},children:v.map((N,O)=>R.jsxs("div",{style:{display:"flex",gap:6,alignItems:"baseline"},children:[R.jsx(di,{column:N,item:E}),R.jsx("small",{style:{opacity:.7},children:N.header})]},O))})})},"counts"),x&&R.jsxs(R.Fragment,{children:[R.jsx("div",{style:{flexGrow:1}}),R.jsx(Q.DescriptionListGroup,{children:R.jsx(Q.DescriptionListDescription,{children:R.jsx(di,{column:x,item:E})})},x.header)]})]})]})})},"primary"),y.length>0?R.jsx(Q.DataListCell,{children:R.jsx(Q.DescriptionList,{isCompact:!0,children:y.map(N=>N.value&&!N.value(E)?R.jsx(R.Fragment,{}):R.jsxs(Q.DescriptionListGroup,{children:[R.jsx(Q.DescriptionListTerm,{style:{whiteSpace:"nowrap",opacity:.6},children:N.header}),R.jsx(Q.DescriptionListDescription,{children:R.jsx(di,{column:N,item:E})})]},N.header))})},"secondary"):null]}),o&&R.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:R.jsx(fu,{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 kE(e){const{id:t,toolbarActions:n,filterState:r,error:a,itemCount:o}=e,{t:i}=Wn(),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 Rr.Table;case"list":return Rr.List;case"cards":return Rr.Cards}return e.defaultTableView??(s?Rr.Table:c?Rr.List:Rr.Cards)}),g=w.useCallback(E=>{f(E),e.id&&localStorage.setItem(e.id+"-view",E)},[e.id]),{openColumnManagement:v,managedColumns:b}=Bet((t??"")+"-columns",e.tableColumns,p!==Rr.Table,p!==Rr.List,p!==Rr.Cards),y=ket(e.tableColumns);if(a)return R.jsx(Iet,{titleProp:e.errorStateTitle,message:a.message});if(o===0&&Object.keys(r??{}).length===0)return e.emptyState?e.emptyState:R.jsx(Net,{title:e.emptyStateTitle??i`No data`,description:e.emptyStateDescription,icon:e.emptyStateNoDataIcon,button:e.emptyStateButtonClick&&R.jsx(Q.Button,{"data-cy":e.emptyStateButtonText?$et(e.emptyStateButtonText):"create-resource",variant:"primary",onClick:e.emptyStateButtonClick,icon:e.emptyStateButtonIcon?e.emptyStateButtonIcon:null,children:e.emptyStateButtonText})||e.emptyStateActions&&R.jsx(Q.Flex,{justifyContent:{default:"justifyContentCenter"},children:R.jsx(fu,{actions:e.emptyStateActions})})});let x=e.topContent;return x&&(x=R.jsx(Q.PageSection,{hasBodyWrapper:!1,padding:{default:"noPadding"},children:e.topContent})),R.jsxs(R.Fragment,{children:[R.jsx(Ope,{...e,openColumnModal:e.id?v:void 0,showSelect:l,viewType:p,setViewType:g,sortOptions:y,limitFiltersToOneOrOperation:e.limitFiltersToOneOrOperation}),x,p===Rr.Table&&R.jsx(Qet,{...e,tableColumns:b}),p===Rr.List&&R.jsx(uu,{marginLeft:20,marginRight:20,children:R.jsx(Yet,{...e,showSelect:l,tableColumns:b})}),p===Rr.Cards&&R.jsx(uu,{marginLeft:20,marginRight:20,children:R.jsx(qpe,{...e,showSelect:l,tableColumns:b})}),!e.disablePagination&&(!e.autoHidePagination||(e.itemCount??0)>e.perPage)&&R.jsx(jet,{...e,topBorder:!e.autoHidePagination})]})}function Qet(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=Oj(e.tableColumns),y=upe(e.tableColumns),x=ppe(e.tableColumns),E=w.useMemo(()=>{const L=[];if(y.length)for(const U of y)"value"in U?L.push(F=>{var W;const j=(W=U.value)==null?void 0:W.call(U,F);if(j)return R.jsx("div",{children:j},U.id??U.header)}):L.push(F=>U.cell(F));return x.length&&L.push(U=>x.some(j=>{var W;return((W=j.value)==null?void 0:W.call(j,U))!==void 0})?R.jsx(ape,{disablePadding:!0,numberOfColumns:"multiple",labelOrientation:"vertical",isCompact:!0,disableScroll:!0,children:R.jsx(gpe,{item:U,columns:x})},i(U)):null),e.expandedRow&&L.push(e.expandedRow),L.length===0?void 0:U=>L.map(j=>j(U)).filter(j=>j!=null).length===0?null:R.jsx(Q.Stack,{hasGutter:!0,children:L.map(j=>j(U))})},[y,x,i,e.expandedRow]),[C]=Pa(),I=e.showSelect||(s==null?void 0:s.find(L=>"selection"in L&&L.selection===vr.Multiple))!==void 0,N=Ip(),[O,P]=w.useState(0);let M;return c===void 0||t===void 0?M=R.jsx(Fet,{}):c===0?M=R.jsxs(Q.EmptyState,{icon:e.emptyStateIcon??Vt.SearchIcon,titleText:R.jsx(R.Fragment,{children:C.noResultsFound}),isFullHeight:!0,children:[R.jsx(Q.EmptyStateBody,{children:C.noResultsMatchCriteria}),R.jsx(Q.EmptyStateFooter,{children:p&&R.jsx(Q.EmptyStateActions,{children:R.jsx(Q.Button,{variant:"primary",onClick:p,children:C.clearAllFilters})})})]}):M=R.jsx(uu,{marginLeft:20,marginRight:20,children:R.jsxs(ar.Table,{"aria-label":"Simple table",ouiaId:"simple-table",variant:e.compact||N.tableLayout==="compact"?"compact":void 0,gridBreakPoint:"",isStickyHeader:!0,style:{borderCollapse:"separate"},children:[R.jsx(Xet,{...e,showSelect:I,tableColumns:b,onSelect:f,expandedRow:E,expandColumnWidth:O,setExpandColumnWidth:P}),R.jsx(ar.Tbody,{children:t.map((L,H)=>R.jsx(Zet,{columns:b,item:L,isItemSelected:a==null?void 0:a(L),isSelectMultiple:o,selectItem:n,unselectItem:r,rowActions:l,rowIndex:H,showSelect:I,unselectAll:g,onSelect:f,expandedRow:E,isLastRow:H===t.length-1,disableLastRowBorder:e.disableLastRowBorder,maxSelections:v,selectedItems:e.selectedItems,defaultExpandedRows:e.defaultExpandedRows,expandColumnWidth:O},i?i(L):H))})]})}),M}function Xet(e){const{tableColumns:t,rowActions:n,sort:r,setSort:a,sortDirection:o,setSortDirection:i,showSelect:l,onSelect:s,expandedRow:c}=e,[p,f]=DJ(),g=w.useRef(null),v=w.useCallback(()=>{if(!g.current)return;const H=g.current.clientHeight;f(U=>({...U,stickyTop:H}))},[f]);du(g,v);const{expandColumnWidth:b,setExpandColumnWidth:y}=e,x=w.useRef(null),E=w.useCallback(()=>{x.current&&y(x.current.clientWidth)},[y]);du(x,E);const[C,I]=w.useState(0),N=w.useRef(null),O=w.useCallback(()=>{N.current&&I(N.current.clientWidth)},[]);du(N,O),w.useEffect(()=>{f(H=>({...H,stickyLeft:b+C}))},[b,C,f]);const P=w.useRef(null),M=w.useCallback(()=>{if(!P.current)return;const H=P.current.clientWidth;f(U=>({...U,stickyRight:H}))},[f]);du(P,M);const L=w.useCallback((H,U)=>{if(U.sort)return{onSort:(F,j,W)=>{U.sort&&(a==null||a(U.sort),i==null||i(W))},sortBy:{index:U.sort===r?H:void 0,direction:U.sort===r?o:void 0,defaultDirection:U.defaultSortDirection},columnIndex:H}},[a,i,r,o]);return R.jsx(ar.Thead,{style:{background:"inherit"},children:R.jsxs(ar.Tr,{style:{background:"inherit"},ref:g,children:[c&&R.jsx(ar.Th,{style:{padding:0},"aria-label":"Expand",isStickyColumn:!0,stickyMinWidth:"0px",ref:x}),(l||s)&&R.jsx(ar.Th,{"aria-label":"Select",isStickyColumn:!0,stickyMinWidth:"48px","data-cy":"selections-column-header",style:{paddingTop:18,paddingLeft:18,left:b},ref:N,children:" "}),t.map((H,U)=>R.jsx(ar.Th,{"aria-label":H.header,sort:L(U,H),modifier:"nowrap",style:{minWidth:H.minWidth===0?"1%":H.minWidth!==void 0?H.minWidth:void 0,maxWidth:H.maxWidth!==void 0?H.maxWidth:void 0,width:H.fullWidth?"100%":void 0},"data-cy":pu(H.header+"-column-header"),children:H.header},H.header)),n!==void 0&&R.jsx(ar.Th,{"aria-label":"Actions",isStickyColumn:!0,stickyMinWidth:"48px","data-cy":"action-column-header",ref:P})]})})}function Zet(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,I]=w.useState(!!e.defaultExpandedRows&&!!x),N=Ip(),O=w.useCallback(P=>(y==null?void 0:y.length)===b?!(y!=null&&y.includes(P)):!1,[b,y]);return R.jsxs(R.Fragment,{children:[R.jsxs(ar.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&&R.jsx(ar.Td,{expand:x?{rowIndex:c,isExpanded:C,onToggle:()=>I(P=>!P)}:void 0,style:{paddingLeft:0,paddingRight:0},"data-cy":"expand-column-cell",isStickyColumn:!0,stickyMinWidth:"0px",className:C&&x?"expanded":void 0}),p&&R.jsx(ar.Td,{select:o!==void 0?{rowIndex:c,onSelect:(P,M)=>{M?r==null||r(l):a==null||a(l)},isSelected:o,isDisabled:b&&y?O(l):!1}:void 0,isStickyColumn:!0,stickyMinWidth:"48px","data-cy":"checkbox-column-cell",style:{paddingTop:18,paddingLeft:16,left:E},className:g&&C&&x?"expanded":void 0}),f&&R.jsx(ar.Td,{select:{rowIndex:c,isSelected:o??!1,variant:i?"checkbox":"radio",isDisabled:b&&y?O(l):!1,props:{"aria-label":"Select row"}},isStickyColumn:!0,stickyMinWidth:"48px","data-cy":"checkbox-column-cell"}),R.jsx(Jet,{columns:t,item:l,rowActions:s,expanded:!!g&&!!C&&!!x})]}),g&&C&&x&&R.jsxs(ar.Tr,{isExpanded:C,style:{boxShadow:"unset"},children:[R.jsx(ar.Td,{isStickyColumn:!0,stickyMinWidth:"0px"}),p&&R.jsx(ar.Td,{"aria-label":"Select",isStickyColumn:!0,stickyMinWidth:"48px",style:{paddingTop:18,paddingLeft:16,left:E}}),f&&R.jsx(ar.Td,{isStickyColumn:!0,stickyMinWidth:"48px",style:{paddingTop:18,paddingLeft:16,left:E}}),R.jsx(ar.Td,{colSpan:t.length,style:{paddingBottom:N.tableLayout==="compact"?12:24,paddingTop:0},children:R.jsx(ar.CollapseColumn,{children:x})}),s!==void 0&&s.length>0&&R.jsx(ar.Td,{isActionCell:!0,isStickyColumn:!0,stickyMinWidth:"48px",children:" "})]})]})}function Jet(e){const{columns:t,item:n,rowActions:r}=e,[a,o]=w.useState(!1);return R.jsxs(w.Fragment,{children:[t.map(i=>R.jsx(ar.Td,{dataLabel:i.header,modifier:"nowrap",style:{width:i.minWidth===0?"0%":void 0},"data-cy":pu(i.header+"-column-cell"),className:e.expanded?"expanded":void 0,children:R.jsx(di,{item:n,column:i})},i.header)),r!==void 0&&r.length>0&&R.jsx(ar.Td,{isActionCell:!0,isStickyColumn:!0,stickyMinWidth:"48px",style:{padding:10,zIndex:a?400:void 0},"data-cy":"actions-column-cell",className:e.expanded?"expanded":void 0,children:R.jsx(fu,{actions:r,selectedItem:n,position:"right",iconOnly:!0,onOpen:o})})]})}function $et(e){return e.toLowerCase().split(" ").join("-")}function ett(){const e=w.useRef(new AbortController);return w.useEffect(()=>{const t=e.current;return()=>t.abort()},[]),e.current}function Wpe(e){const{title:t,keyFn:n,actionColumns:r,actionFn:a,onComplete:o,onClose:i,processingText:l,isDanger:s,errorAdapter:c=wE,description:p,statusParser:f}=e,{t:g}=Wn(),[v,b]=w.useState(e.items),[y]=Pa(),[x,E]=w.useState(!0),[C,I]=w.useState(0),[N,O]=w.useState(!1),[P,M]=w.useState(0),[L,H]=w.useState(""),[U,F]=w.useState(),j=ett(),[W,Y]=Jp(),[K,ae]=w.useState([]),oe=w.useCallback(()=>{O(!0),j.abort(),E(!1),F(be=>{const pe={...be};for(const Te of v){const Ce=n(Te);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(be=>(U==null?void 0:U[n(be)])===null||(U==null?void 0:U[n(be)]).message),v.filter(be=>(U==null?void 0:U[n(be)])!==null&&typeof(U==null?void 0:U[n(be)])=="string"),v.filter(be=>(U==null?void 0:U[n(be)])===void 0)),o==null||o(K)},[L,N,v,n,i,o,Y,U,K]),ee=w.useCallback(()=>{H(""),E(!0),F(void 0),b(v.filter(be=>(U==null?void 0:U[n(be)])!==null&&typeof(U==null?void 0:U[n(be)])=="string")),I(C+1)},[v,n,C,U]),G=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 be(Ce,he){if(j.signal.aborted)return;let xe;f&&(xe=f(he)),F(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");F(ie=>({...ie??{},[Ce]:Pe}))}else F(Pe=>({...Pe??{},[Ce]:g("Unknown error")}));H(y.errorText)}}async function Te(){const Ce=get(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);be(ie,lt),xe.push(Pe)}catch(lt){const{genericErrors:Me,fieldErrors:ot}=c(lt),_t=[...Me,...ot.filter(st=>st.message)];pe(ie,_t,lt)}finally{j.signal.aborted||M(++he)}}))),ae([...K,...xe]),j.signal.aborted||E(!1)}Te()},[j,a,v,n,o,y.errorText,g,c,f,C]),w.useEffect(()=>{let be;return!x&&!L&&(be=setTimeout(()=>{te()},1e3)),()=>clearTimeout(be)},[x,L,te]);const ce=CE(v),$=MI(r),de=w.useMemo(()=>x?[R.jsx(Q.Button,{variant:"link",onClick:oe,children:g("Cancel")},"cancel")]:L?[R.jsx(Q.Button,{variant:"primary",onClick:ee,children:g("Retry")},"retry"),R.jsx(Q.Button,{variant:"secondary",onClick:te,children:g("Close")},"close")]:[],[L,x,oe,te,ee,g]);return R.jsxs(Q.Modal,{ouiaId:t,variant:Q.ModalVariant.medium,isOpen:!0,onClose:()=>{oe(),te()},"aria-label":t,children:[R.jsx(Q.ModalHeader,{title:t,titleIconVariant:s?"warning":void 0,description:p}),R.jsx(Q.ModalBody,{style:{paddingBottom:0,paddingLeft:0,paddingRight:0},children:R.jsx("div",{style:{display:"flex",flexDirection:"column",maxHeight:560,overflow:"hidden",borderTop:"var(--pf-t--global--border--color--default)"},children:R.jsx(kE,{pageItems:[...ce.paged],itemCount:v.length,tableColumns:[...$,{header:g("Status"),cell:be=>{const pe=n(be),Te=U==null?void 0:U[pe];return Te===void 0?R.jsxs("span",{style:{color:xD},children:[R.jsx(Vt.PendingIcon,{}),"  ",y.pendingText]}):Te===null?R.jsxs("span",{style:{color:_D},children:[R.jsx(Vt.CheckCircleIcon,{}),"  ",y.successText]}):Te.message&&Te.url?R.jsx("a",{href:Te.url,children:Te.message}):R.jsxs("span",{style:{color:yD},children:[R.jsx(Vt.ExclamationCircleIcon,{}),"  ",U==null?void 0:U[pe]]})}}],keyFn:n,compact:!0,errorStateTitle:"",emptyStateTitle:g("No items"),autoHidePagination:!0,disableBodyPadding:!0,...ce},"status")})}),R.jsx(Q.ModalBody,{style:{paddingTop:0},children:R.jsx(Q.Progress,{"data-cy":"progress",value:P/v.length*100,title:G,size:Q.ProgressSize.lg,variant:re})}),R.jsx(Q.ModalFooter,{children:de})]})}function Hpe(e=wE,t){const[n,r]=Jp(),[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(R.jsx(Wpe,{...a,errorAdapter:a.errorAdapter??e,statusParser:a.statusParser??t,onClose:i}))}else r(void 0)},[a,r,e,t]),o}function Vpe(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 TE(e,t);if(typeof t=="number")return TE(e,t.toString())}else if(typeof e=="number"){if(typeof t=="number")return Ype(e,t);if(typeof t=="string")return TE(e.toString(),t)}return 0}function TE(e,t){return e===void 0&&t===void 0?0:e==null?1:t==null||e<t?-1:e>t?1:0}function Ype(e,t){return e===void 0&&t===void 0?0:e==null?1:t==null||e<t?-1:e>t?1:0}const ttt=Cn.div`
491
491
  margin-left: 32px;
492
492
  height: 64px;
493
493
  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.2675",
4
+ "version": "2.4.2676",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -1,154 +1,154 @@
1
- import { _ as s } from "./index-3eRL2TwX.js";
2
- import { B as o } from "./index-3eRL2TwX.js";
3
- import { z as t } from "./index-3eRL2TwX.js";
4
- import { C as r } from "./index-3eRL2TwX.js";
5
- import { aV as l } from "./index-3eRL2TwX.js";
6
- import { aX as i } from "./index-3eRL2TwX.js";
7
- import { aU as n } from "./index-3eRL2TwX.js";
8
- import { aW as g } from "./index-3eRL2TwX.js";
9
- import { aY as b } from "./index-3eRL2TwX.js";
10
- import { aT as u } from "./index-3eRL2TwX.js";
11
- import { aP as P } from "./index-3eRL2TwX.js";
12
- import { A as d } from "./index-3eRL2TwX.js";
13
- import { ae as m } from "./index-3eRL2TwX.js";
14
- import { ad as C } from "./index-3eRL2TwX.js";
15
- import { D as c } from "./index-3eRL2TwX.js";
16
- import { bn as D } from "./index-3eRL2TwX.js";
17
- import { bl as T } from "./index-3eRL2TwX.js";
18
- import { E as p } from "./index-3eRL2TwX.js";
19
- import { F as S } from "./index-3eRL2TwX.js";
20
- import { br as h } from "./index-3eRL2TwX.js";
21
- import { aa as F } from "./index-3eRL2TwX.js";
22
- import { H as v } from "./index-3eRL2TwX.js";
23
- import { i as B } from "./index-3eRL2TwX.js";
24
- import { G as f } from "./index-3eRL2TwX.js";
25
- import { L as A } from "./index-3eRL2TwX.js";
26
- import { a1 as I } from "./index-3eRL2TwX.js";
27
- import { P as N } from "./index-3eRL2TwX.js";
28
- import { q as x } from "./index-3eRL2TwX.js";
29
- import { o as y } from "./index-3eRL2TwX.js";
30
- import { r as k } from "./index-3eRL2TwX.js";
31
- import { s as w } from "./index-3eRL2TwX.js";
32
- import { v as E } from "./index-3eRL2TwX.js";
33
- import { x as O } from "./index-3eRL2TwX.js";
34
- import { y as L } from "./index-3eRL2TwX.js";
35
- import { I as M } from "./index-3eRL2TwX.js";
36
- import { K as V } from "./index-3eRL2TwX.js";
37
- import { M as R } from "./index-3eRL2TwX.js";
38
- import { O as W } from "./index-3eRL2TwX.js";
39
- import { N as j } from "./index-3eRL2TwX.js";
40
- import { J as G } from "./index-3eRL2TwX.js";
41
- import { Q as z } from "./index-3eRL2TwX.js";
42
- import { W as U } from "./index-3eRL2TwX.js";
43
- import { U as H } from "./index-3eRL2TwX.js";
44
- import { X as q } from "./index-3eRL2TwX.js";
45
- import { aO as Q } from "./index-3eRL2TwX.js";
46
- import { Y as J } from "./index-3eRL2TwX.js";
47
- import { Z as K } from "./index-3eRL2TwX.js";
48
- import { a3 as X } from "./index-3eRL2TwX.js";
49
- import { V as Y } from "./index-3eRL2TwX.js";
50
- import { am as Z } from "./index-3eRL2TwX.js";
51
- import { ap as _ } from "./index-3eRL2TwX.js";
52
- import { ab as $ } from "./index-3eRL2TwX.js";
53
- import { ac as aa } from "./index-3eRL2TwX.js";
54
- import { an as ea } from "./index-3eRL2TwX.js";
55
- import { ah as sa } from "./index-3eRL2TwX.js";
56
- import { ao as oa } from "./index-3eRL2TwX.js";
57
- import { ai as ta } from "./index-3eRL2TwX.js";
58
- import { aj as ra } from "./index-3eRL2TwX.js";
59
- import { ak as la } from "./index-3eRL2TwX.js";
60
- import { aq as ia } from "./index-3eRL2TwX.js";
61
- import { ar as na } from "./index-3eRL2TwX.js";
62
- import { as as ga } from "./index-3eRL2TwX.js";
63
- import { at as ba } from "./index-3eRL2TwX.js";
64
- import { au as ua } from "./index-3eRL2TwX.js";
65
- import { aE as Pa } from "./index-3eRL2TwX.js";
66
- import { aG as da } from "./index-3eRL2TwX.js";
67
- import { ax as ma } from "./index-3eRL2TwX.js";
68
- import { a8 as Ca } from "./index-3eRL2TwX.js";
69
- import { a9 as ca } from "./index-3eRL2TwX.js";
70
- import { av as Da } from "./index-3eRL2TwX.js";
71
- import { aK as Ta } from "./index-3eRL2TwX.js";
72
- import { aL as pa } from "./index-3eRL2TwX.js";
73
- import { bf as Sa } from "./index-3eRL2TwX.js";
74
- import { aM as ha } from "./index-3eRL2TwX.js";
75
- import { aQ as Fa } from "./index-3eRL2TwX.js";
76
- import { aS as va } from "./index-3eRL2TwX.js";
77
- import { be as Ba } from "./index-3eRL2TwX.js";
78
- import { aw as fa } from "./index-3eRL2TwX.js";
79
- import { bg as Aa } from "./index-3eRL2TwX.js";
80
- import { bi as Ia } from "./index-3eRL2TwX.js";
81
- import { bq as Na } from "./index-3eRL2TwX.js";
82
- import { R as xa } from "./index-3eRL2TwX.js";
83
- import { S as ya } from "./index-3eRL2TwX.js";
84
- import { a7 as ka } from "./index-3eRL2TwX.js";
85
- import { aN as wa } from "./index-3eRL2TwX.js";
86
- import { aZ as Ea } from "./index-3eRL2TwX.js";
87
- import { T as Oa } from "./index-3eRL2TwX.js";
88
- import { bm as La } from "./index-3eRL2TwX.js";
89
- import { bh as Ma } from "./index-3eRL2TwX.js";
90
- import { bp as Va } from "./index-3eRL2TwX.js";
91
- import { bo as Ra } from "./index-3eRL2TwX.js";
92
- import { aB as Wa } from "./index-3eRL2TwX.js";
93
- import { aC as ja } from "./index-3eRL2TwX.js";
94
- import { aD as Ga } from "./index-3eRL2TwX.js";
95
- import { by as za } from "./index-3eRL2TwX.js";
96
- import { bx as Ua } from "./index-3eRL2TwX.js";
97
- import { bw as Ha } from "./index-3eRL2TwX.js";
98
- import { bv as qa } from "./index-3eRL2TwX.js";
99
- import { w as Qa } from "./index-3eRL2TwX.js";
100
- import { bA as Ja } from "./index-3eRL2TwX.js";
101
- import { az as Ka } from "./index-3eRL2TwX.js";
102
- import { g as Xa } from "./index-3eRL2TwX.js";
103
- import { bj as Ya } from "./index-3eRL2TwX.js";
104
- import { ag as Za } from "./index-3eRL2TwX.js";
105
- import { bz as _a } from "./index-3eRL2TwX.js";
106
- import { a as $a } from "./index-3eRL2TwX.js";
107
- import { e as ae } from "./index-3eRL2TwX.js";
108
- import { c as ee } from "./index-3eRL2TwX.js";
109
- import { f as se } from "./index-3eRL2TwX.js";
110
- import { p as oe } from "./index-3eRL2TwX.js";
111
- import { h as te } from "./index-3eRL2TwX.js";
112
- import { b as re } from "./index-3eRL2TwX.js";
113
- import { ay as le } from "./index-3eRL2TwX.js";
114
- import { aA as ie } from "./index-3eRL2TwX.js";
115
- import { bk as ne } from "./index-3eRL2TwX.js";
116
- import { m as ge } from "./index-3eRL2TwX.js";
117
- import { $ as be } from "./index-3eRL2TwX.js";
118
- import { a0 as ue } from "./index-3eRL2TwX.js";
119
- import { aR as Pe } from "./index-3eRL2TwX.js";
120
- import { b7 as de } from "./index-3eRL2TwX.js";
121
- import { b6 as me } from "./index-3eRL2TwX.js";
122
- import { b2 as Ce } from "./index-3eRL2TwX.js";
123
- import { b4 as ce } from "./index-3eRL2TwX.js";
124
- import { b5 as De } from "./index-3eRL2TwX.js";
125
- import { bc as Te } from "./index-3eRL2TwX.js";
126
- import { al as pe } from "./index-3eRL2TwX.js";
127
- import { bs as Se } from "./index-3eRL2TwX.js";
128
- import { aI as he } from "./index-3eRL2TwX.js";
129
- import { bt as Fe } from "./index-3eRL2TwX.js";
130
- import { a2 as ve } from "./index-3eRL2TwX.js";
131
- import { n as Be } from "./index-3eRL2TwX.js";
132
- import { t as fe } from "./index-3eRL2TwX.js";
133
- import { a5 as Ae } from "./index-3eRL2TwX.js";
134
- import { a4 as Ie } from "./index-3eRL2TwX.js";
135
- import { aH as Ne } from "./index-3eRL2TwX.js";
136
- import { aF as xe } from "./index-3eRL2TwX.js";
137
- import { aJ as ye } from "./index-3eRL2TwX.js";
138
- import { u as ke } from "./index-3eRL2TwX.js";
139
- import { bd as we } from "./index-3eRL2TwX.js";
140
- import { k as Ee } from "./index-3eRL2TwX.js";
141
- import { a6 as Oe } from "./index-3eRL2TwX.js";
142
- import { b9 as Le } from "./index-3eRL2TwX.js";
143
- import { ba as Me } from "./index-3eRL2TwX.js";
144
- import { bb as Ve } from "./index-3eRL2TwX.js";
145
- import { b8 as Re } from "./index-3eRL2TwX.js";
146
- import { bu as We } from "./index-3eRL2TwX.js";
147
- import { b0 as je } from "./index-3eRL2TwX.js";
148
- import { b3 as Ge } from "./index-3eRL2TwX.js";
149
- import { a$ as ze } from "./index-3eRL2TwX.js";
150
- import { b1 as Ue } from "./index-3eRL2TwX.js";
151
- import { a_ as He } from "./index-3eRL2TwX.js";
152
- import { l as qe } from "./index-3eRL2TwX.js";
153
- import { af as Qe } from "./index-3eRL2TwX.js";
1
+ import { _ as s } from "./index-B5zQdjrv.js";
2
+ import { B as o } from "./index-B5zQdjrv.js";
3
+ import { z as t } from "./index-B5zQdjrv.js";
4
+ import { C as r } from "./index-B5zQdjrv.js";
5
+ import { aV as l } from "./index-B5zQdjrv.js";
6
+ import { aX as i } from "./index-B5zQdjrv.js";
7
+ import { aU as n } from "./index-B5zQdjrv.js";
8
+ import { aW as g } from "./index-B5zQdjrv.js";
9
+ import { aY as b } from "./index-B5zQdjrv.js";
10
+ import { aT as u } from "./index-B5zQdjrv.js";
11
+ import { aP as P } from "./index-B5zQdjrv.js";
12
+ import { A as d } from "./index-B5zQdjrv.js";
13
+ import { ae as m } from "./index-B5zQdjrv.js";
14
+ import { ad as C } from "./index-B5zQdjrv.js";
15
+ import { D as c } from "./index-B5zQdjrv.js";
16
+ import { bn as D } from "./index-B5zQdjrv.js";
17
+ import { bl as T } from "./index-B5zQdjrv.js";
18
+ import { E as p } from "./index-B5zQdjrv.js";
19
+ import { F as S } from "./index-B5zQdjrv.js";
20
+ import { br as h } from "./index-B5zQdjrv.js";
21
+ import { aa as F } from "./index-B5zQdjrv.js";
22
+ import { H as v } from "./index-B5zQdjrv.js";
23
+ import { i as B } from "./index-B5zQdjrv.js";
24
+ import { G as f } from "./index-B5zQdjrv.js";
25
+ import { L as A } from "./index-B5zQdjrv.js";
26
+ import { a1 as I } from "./index-B5zQdjrv.js";
27
+ import { P as N } from "./index-B5zQdjrv.js";
28
+ import { q as x } from "./index-B5zQdjrv.js";
29
+ import { o as y } from "./index-B5zQdjrv.js";
30
+ import { r as k } from "./index-B5zQdjrv.js";
31
+ import { s as w } from "./index-B5zQdjrv.js";
32
+ import { v as E } from "./index-B5zQdjrv.js";
33
+ import { x as O } from "./index-B5zQdjrv.js";
34
+ import { y as L } from "./index-B5zQdjrv.js";
35
+ import { I as M } from "./index-B5zQdjrv.js";
36
+ import { K as V } from "./index-B5zQdjrv.js";
37
+ import { M as R } from "./index-B5zQdjrv.js";
38
+ import { O as W } from "./index-B5zQdjrv.js";
39
+ import { N as j } from "./index-B5zQdjrv.js";
40
+ import { J as G } from "./index-B5zQdjrv.js";
41
+ import { Q as z } from "./index-B5zQdjrv.js";
42
+ import { W as U } from "./index-B5zQdjrv.js";
43
+ import { U as H } from "./index-B5zQdjrv.js";
44
+ import { X as q } from "./index-B5zQdjrv.js";
45
+ import { aO as Q } from "./index-B5zQdjrv.js";
46
+ import { Y as J } from "./index-B5zQdjrv.js";
47
+ import { Z as K } from "./index-B5zQdjrv.js";
48
+ import { a3 as X } from "./index-B5zQdjrv.js";
49
+ import { V as Y } from "./index-B5zQdjrv.js";
50
+ import { am as Z } from "./index-B5zQdjrv.js";
51
+ import { ap as _ } from "./index-B5zQdjrv.js";
52
+ import { ab as $ } from "./index-B5zQdjrv.js";
53
+ import { ac as aa } from "./index-B5zQdjrv.js";
54
+ import { an as ea } from "./index-B5zQdjrv.js";
55
+ import { ah as sa } from "./index-B5zQdjrv.js";
56
+ import { ao as oa } from "./index-B5zQdjrv.js";
57
+ import { ai as ta } from "./index-B5zQdjrv.js";
58
+ import { aj as ra } from "./index-B5zQdjrv.js";
59
+ import { ak as la } from "./index-B5zQdjrv.js";
60
+ import { aq as ia } from "./index-B5zQdjrv.js";
61
+ import { ar as na } from "./index-B5zQdjrv.js";
62
+ import { as as ga } from "./index-B5zQdjrv.js";
63
+ import { at as ba } from "./index-B5zQdjrv.js";
64
+ import { au as ua } from "./index-B5zQdjrv.js";
65
+ import { aE as Pa } from "./index-B5zQdjrv.js";
66
+ import { aG as da } from "./index-B5zQdjrv.js";
67
+ import { ax as ma } from "./index-B5zQdjrv.js";
68
+ import { a8 as Ca } from "./index-B5zQdjrv.js";
69
+ import { a9 as ca } from "./index-B5zQdjrv.js";
70
+ import { av as Da } from "./index-B5zQdjrv.js";
71
+ import { aK as Ta } from "./index-B5zQdjrv.js";
72
+ import { aL as pa } from "./index-B5zQdjrv.js";
73
+ import { bf as Sa } from "./index-B5zQdjrv.js";
74
+ import { aM as ha } from "./index-B5zQdjrv.js";
75
+ import { aQ as Fa } from "./index-B5zQdjrv.js";
76
+ import { aS as va } from "./index-B5zQdjrv.js";
77
+ import { be as Ba } from "./index-B5zQdjrv.js";
78
+ import { aw as fa } from "./index-B5zQdjrv.js";
79
+ import { bg as Aa } from "./index-B5zQdjrv.js";
80
+ import { bi as Ia } from "./index-B5zQdjrv.js";
81
+ import { bq as Na } from "./index-B5zQdjrv.js";
82
+ import { R as xa } from "./index-B5zQdjrv.js";
83
+ import { S as ya } from "./index-B5zQdjrv.js";
84
+ import { a7 as ka } from "./index-B5zQdjrv.js";
85
+ import { aN as wa } from "./index-B5zQdjrv.js";
86
+ import { aZ as Ea } from "./index-B5zQdjrv.js";
87
+ import { T as Oa } from "./index-B5zQdjrv.js";
88
+ import { bm as La } from "./index-B5zQdjrv.js";
89
+ import { bh as Ma } from "./index-B5zQdjrv.js";
90
+ import { bp as Va } from "./index-B5zQdjrv.js";
91
+ import { bo as Ra } from "./index-B5zQdjrv.js";
92
+ import { aB as Wa } from "./index-B5zQdjrv.js";
93
+ import { aC as ja } from "./index-B5zQdjrv.js";
94
+ import { aD as Ga } from "./index-B5zQdjrv.js";
95
+ import { by as za } from "./index-B5zQdjrv.js";
96
+ import { bx as Ua } from "./index-B5zQdjrv.js";
97
+ import { bw as Ha } from "./index-B5zQdjrv.js";
98
+ import { bv as qa } from "./index-B5zQdjrv.js";
99
+ import { w as Qa } from "./index-B5zQdjrv.js";
100
+ import { bA as Ja } from "./index-B5zQdjrv.js";
101
+ import { az as Ka } from "./index-B5zQdjrv.js";
102
+ import { g as Xa } from "./index-B5zQdjrv.js";
103
+ import { bj as Ya } from "./index-B5zQdjrv.js";
104
+ import { ag as Za } from "./index-B5zQdjrv.js";
105
+ import { bz as _a } from "./index-B5zQdjrv.js";
106
+ import { a as $a } from "./index-B5zQdjrv.js";
107
+ import { e as ae } from "./index-B5zQdjrv.js";
108
+ import { c as ee } from "./index-B5zQdjrv.js";
109
+ import { f as se } from "./index-B5zQdjrv.js";
110
+ import { p as oe } from "./index-B5zQdjrv.js";
111
+ import { h as te } from "./index-B5zQdjrv.js";
112
+ import { b as re } from "./index-B5zQdjrv.js";
113
+ import { ay as le } from "./index-B5zQdjrv.js";
114
+ import { aA as ie } from "./index-B5zQdjrv.js";
115
+ import { bk as ne } from "./index-B5zQdjrv.js";
116
+ import { m as ge } from "./index-B5zQdjrv.js";
117
+ import { $ as be } from "./index-B5zQdjrv.js";
118
+ import { a0 as ue } from "./index-B5zQdjrv.js";
119
+ import { aR as Pe } from "./index-B5zQdjrv.js";
120
+ import { b7 as de } from "./index-B5zQdjrv.js";
121
+ import { b6 as me } from "./index-B5zQdjrv.js";
122
+ import { b2 as Ce } from "./index-B5zQdjrv.js";
123
+ import { b4 as ce } from "./index-B5zQdjrv.js";
124
+ import { b5 as De } from "./index-B5zQdjrv.js";
125
+ import { bc as Te } from "./index-B5zQdjrv.js";
126
+ import { al as pe } from "./index-B5zQdjrv.js";
127
+ import { bs as Se } from "./index-B5zQdjrv.js";
128
+ import { aI as he } from "./index-B5zQdjrv.js";
129
+ import { bt as Fe } from "./index-B5zQdjrv.js";
130
+ import { a2 as ve } from "./index-B5zQdjrv.js";
131
+ import { n as Be } from "./index-B5zQdjrv.js";
132
+ import { t as fe } from "./index-B5zQdjrv.js";
133
+ import { a5 as Ae } from "./index-B5zQdjrv.js";
134
+ import { a4 as Ie } from "./index-B5zQdjrv.js";
135
+ import { aH as Ne } from "./index-B5zQdjrv.js";
136
+ import { aF as xe } from "./index-B5zQdjrv.js";
137
+ import { aJ as ye } from "./index-B5zQdjrv.js";
138
+ import { u as ke } from "./index-B5zQdjrv.js";
139
+ import { bd as we } from "./index-B5zQdjrv.js";
140
+ import { k as Ee } from "./index-B5zQdjrv.js";
141
+ import { a6 as Oe } from "./index-B5zQdjrv.js";
142
+ import { b9 as Le } from "./index-B5zQdjrv.js";
143
+ import { ba as Me } from "./index-B5zQdjrv.js";
144
+ import { bb as Ve } from "./index-B5zQdjrv.js";
145
+ import { b8 as Re } from "./index-B5zQdjrv.js";
146
+ import { bu as We } from "./index-B5zQdjrv.js";
147
+ import { b0 as je } from "./index-B5zQdjrv.js";
148
+ import { b3 as Ge } from "./index-B5zQdjrv.js";
149
+ import { a$ as ze } from "./index-B5zQdjrv.js";
150
+ import { b1 as Ue } from "./index-B5zQdjrv.js";
151
+ import { a_ as He } from "./index-B5zQdjrv.js";
152
+ import { l as qe } from "./index-B5zQdjrv.js";
153
+ import { af as Qe } from "./index-B5zQdjrv.js";
154
154
  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, D as DateRange, T as DateRangeFilterPresets, p as DateTimeCell, S as ElapsedTimeCell, h as FrameworkTranslationsProvider, F as GenericForm, v as Help, B as LabelColorE, f as LabelsCell, A as LoadingPage, I as MultiSelectDialog, N as PFColorE, x as PageActionSelection, y as PageActionType, k as PageActions, w as PageAlertToasterContext, E as PageAlertToasterProvider, O as PageApp, L as PageBody, M as PageChartContainer, V as PageDashboard, R as PageDashboardCard, W as PageDashboardChart, j as PageDashboardChartVariantE, G as PageDashboardContext, 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, Da as PageNotificationsIcon, Ta as PageSettingsContext, pa as PageSettingsProvider, Sa as PageTab, ha as PageTable, Fa as PageTableCard, va as PageTableCards, Ba as PageTabs, fa as PageThemeSwitcher, Aa as PageToolbar, Ia as PageToolbarFilters, Na as PageWizard, xa as RunningIcon, ya as Scrollable, ka as SelectDialog, wa as Small, Ea as TableColumnCell, Oa as TextCell, La as ToolbarDateRangeFilter, Ma as ToolbarFilterType, Va as ToolbarSingleTextFilter, Ra as ToolbarTextMultiFilter, Wa as addNavigationItem, ja as addNavigationItemAfter, Ga as addNavigationItemBefore, 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 pfUnreachable, re as pfWarning, le as removeLeadingSlash, ie as removeNavigationItemById, ne as singleSelectBrowseAdapter, ge as useBreakpoint, be as useBulkActionDialog, ue as useBulkConfirmation, Pe as useColumnsToTableCardFn, de as useColumnsWithoutExpandedRow, me as useColumnsWithoutSort, Ce as useDashboardColumns, ce as useDescriptionColumns, De as useExpandedColumns, Te as useFiltered, pe as useFormErrors, Se as useFrameworkTranslations, he as useGetPageUrl, Fe as useInMemoryView, ve as useIsPageDialog, Be as useOrientation, fe as usePageAlertToaster, Ae as usePageDialog, Ie as usePageDialogs, Ne as usePageNavBarClick, xe as usePageNavSideBar, ye as usePageNavigate, ke as usePageSettings, we as usePaged, Ee as useScrollableState, Oe as useSelectDialog, Le as useSelected, Me as useSelectedInMemory, Ve as useSorted, Re as useTableItems, We as useView, je as useVisibleCardColumns, Ge as useVisibleColumns, ze as useVisibleListColumns, Ue as useVisibleModalColumns, He as useVisibleTableColumns, qe as useWindowSize, Qe as valueToObject };