@ansible/ansible-ui-framework 2.4.2747 → 2.4.2748

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 De, j as M } from "./index-ETfDoo6p.js";
1
+ import { u as De, j as M } from "./index-sxnqWQGw.js";
2
2
  import { useContext as He, createContext as je, useState as Se, useEffect as ye, useRef as qe } from "react";
3
3
  import Oe from "react-dom";
4
4
  import { N as Ye } from "./ansible-chatbot-BfsfF2tL.js";
@@ -1,4 +1,4 @@
1
- import { u as a, j as e, d as i } from "./index-ETfDoo6p.js";
1
+ import { u as a, j as e, d as i } from "./index-sxnqWQGw.js";
2
2
  import { r, L as s, P as n } from "./ansible-chatbot-BfsfF2tL.js";
3
3
  import "@patternfly/react-core";
4
4
  import "react";
@@ -3067,7 +3067,7 @@ const b4 = Xt({
3067
3067
  chatbotState: "disabled",
3068
3068
  setChatbotState: () => {
3069
3069
  }
3070
- }), _4 = () => gt(b4), S4 = Vk(() => import("./ChatbotPortal-CUxKZIe4.js")), w4 = () => /* @__PURE__ */ g.jsx(Uk, { fallback: /* @__PURE__ */ g.jsx("div", { children: "Loading..." }), children: /* @__PURE__ */ g.jsx(S4, {}) }), C4 = Vk(() => import("./ChatbotSideBarHeader-zc32LfYY.js")), O4 = () => {
3070
+ }), _4 = () => gt(b4), S4 = Vk(() => import("./ChatbotPortal-WeygPnEZ.js")), w4 = () => /* @__PURE__ */ g.jsx(Uk, { fallback: /* @__PURE__ */ g.jsx("div", { children: "Loading..." }), children: /* @__PURE__ */ g.jsx(S4, {}) }), C4 = Vk(() => import("./ChatbotSideBarHeader-BVUFU2As.js")), O4 = () => {
3071
3071
  const { t: e } = Pe();
3072
3072
  return /* @__PURE__ */ g.jsx(Uk, { fallback: /* @__PURE__ */ g.jsx("span", { children: e("Loading...") }), children: /* @__PURE__ */ g.jsx(C4, {}) });
3073
3073
  }, k4 = ke(WM)`
@@ -33302,7 +33302,7 @@ function nie(e) {
33302
33302
  gridBreakPoint: "",
33303
33303
  children: [
33304
33304
  !f && /* @__PURE__ */ g.jsx(pT, { children: /* @__PURE__ */ g.jsxs(No, { children: [
33305
- /* @__PURE__ */ g.jsx(ba, {}),
33305
+ /* @__PURE__ */ g.jsx(ba, { screenReaderText: t`Sort` }),
33306
33306
  h && /* @__PURE__ */ g.jsx(
33307
33307
  ba,
33308
33308
  {
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as s, a1 as o, B as t, A as r, C as l, aX as i, aZ as n, aW as g, aY as b, a_ as u, aV as P, aR as d, D as m, ag as C, af as c, E as D, bp as T, bn as p, F as S, G as h, bt as F, ac as v, H as B, k as f, I, L as A, a3 as y, P as N, r as k, q as x, s as w, t as E, w as O, y as L, z as M, J as V, M as R, N as W, Q as j, O as G, K as z, U, X as H, V as q, Y as Q, aQ as J, Z as K, _ as X, a5 as Y, W as Z, ao as _, ar as $, ad as aa, ae as ea, ap as sa, aj as oa, aq as ta, ak as ra, al as la, am as ia, as as na, at as ga, au as ba, av as ua, aw as Pa, aG as da, aI as ma, az as Ca, aa as ca, ab as Da, ax as Ta, aM as pa, aN as Sa, bh as ha, aO as Fa, aS as va, aU as Ba, bg as fa, ay as Ia, bi as Aa, bk as ya, bs as Na, R as ka, S as xa, a9 as wa, aP as Ea, a$ as Oa, T as La, bo as Ma, bj as Va, br as Ra, bq as Wa, aD as ja, aE as Ga, aF as za, bA as Ua, bz as Ha, by as qa, bx as Qa, x as Ja, bC as Ka, aB as Xa, g as Ya, bl as Za, ai as _a, bB as $a, a as ae, e as ee, c as se, f as oe, p as te, i as re, h as le, b as ie, aA as ne, aC as ge, bm as be, n as ue, a0 as Pe, a2 as de, aT as me, b9 as Ce, b8 as ce, b4 as De, b6 as Te, b7 as pe, be as Se, an as he, bu as Fe, aK as ve, bv as Be, a4 as fe, o as Ie, v as Ae, a7 as ye, a6 as Ne, aJ as ke, aH as xe, aL as we, u as Ee, bf as Oe, l as Le, a8 as Me, bb as Ve, bc as Re, bd as We, ba as je, bw as Ge, b2 as ze, b5 as Ue, b1 as He, b3 as qe, b0 as Qe, m as Je, ah as Ke } from "./index-ETfDoo6p.js";
1
+ import { $ as s, a1 as o, B as t, A as r, C as l, aX as i, aZ as n, aW as g, aY as b, a_ as u, aV as P, aR as d, D as m, ag as C, af as c, E as D, bp as T, bn as p, F as S, G as h, bt as F, ac as v, H as B, k as f, I, L as A, a3 as y, P as N, r as k, q as x, s as w, t as E, w as O, y as L, z as M, J as V, M as R, N as W, Q as j, O as G, K as z, U, X as H, V as q, Y as Q, aQ as J, Z as K, _ as X, a5 as Y, W as Z, ao as _, ar as $, ad as aa, ae as ea, ap as sa, aj as oa, aq as ta, ak as ra, al as la, am as ia, as as na, at as ga, au as ba, av as ua, aw as Pa, aG as da, aI as ma, az as Ca, aa as ca, ab as Da, ax as Ta, aM as pa, aN as Sa, bh as ha, aO as Fa, aS as va, aU as Ba, bg as fa, ay as Ia, bi as Aa, bk as ya, bs as Na, R as ka, S as xa, a9 as wa, aP as Ea, a$ as Oa, T as La, bo as Ma, bj as Va, br as Ra, bq as Wa, aD as ja, aE as Ga, aF as za, bA as Ua, bz as Ha, by as qa, bx as Qa, x as Ja, bC as Ka, aB as Xa, g as Ya, bl as Za, ai as _a, bB as $a, a as ae, e as ee, c as se, f as oe, p as te, i as re, h as le, b as ie, aA as ne, aC as ge, bm as be, n as ue, a0 as Pe, a2 as de, aT as me, b9 as Ce, b8 as ce, b4 as De, b6 as Te, b7 as pe, be as Se, an as he, bu as Fe, aK as ve, bv as Be, a4 as fe, o as Ie, v as Ae, a7 as ye, a6 as Ne, aJ as ke, aH as xe, aL as we, u as Ee, bf as Oe, l as Le, a8 as Me, bb as Ve, bc as Re, bd as We, ba as je, bw as Ge, b2 as ze, b5 as Ue, b1 as He, b3 as qe, b0 as Qe, m as Je, ah as Ke } from "./index-sxnqWQGw.js";
2
2
  export {
3
3
  s as BulkActionDialog,
4
4
  o as BulkConfirmationDialog,
package/index.umd.cjs CHANGED
@@ -432,7 +432,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[aS]+=1);const oS=cn.button`
432
432
  text-align: left;
433
433
  `;var f0=(e=>(e.LastHour="lastHour",e.Last24Hours="last24hours",e.LastWeek="last7days",e.LastMonth="last30days",e))(f0||{});function Moe(e){const{filterValues:t,id:n,setFilterValues:r,placeholder:a,isRequired:o,defaultValue:i}=e,l=t&&t.length>0?t[0]:void 0,c=e.options.find(x=>x.value===l);o&&!c&&r(()=>[i??e.options[0].value]);function f(x){if(x===null)return;e.options.find(w=>w.value===x)&&r(()=>[x])}const[d,u]=S.useState(()=>{if(t&&t.length>1)return t[1]}),[v,g]=S.useState(()=>{if(t&&t.length>2)return t[2]});return S.useEffect(()=>{if(c&&c.isCustom){const x=[c.value];d&&(x.push(d),v&&x.push(v)),r(()=>x)}},[c,d,v,r]),O.jsxs(K.ToolbarItem,{children:[O.jsx(Cd,{value:(c==null?void 0:c.value)??"",id:n,onSelect:f,options:e.options,placeholder:a,disableSortOptions:!0}),c&&c.isCustom&&O.jsx(Loe,{to:v,setTo:g,from:d,setFrom:u})]})}function Loe(e){const{to:t,setTo:n,from:r,setFrom:a}=e,{t:o}=Cn(),i=(d,u)=>{a(u)},l=(d,u)=>{n(u)},c=r?new Date(r):void 0,f=d=>c?K.isValidDate(c)&&d>=c?"":o('The "to" date must be after the "from" date'):"";return O.jsxs(O.Fragment,{children:[O.jsx(K.DatePicker,{value:r,onChange:i,"aria-label":"Start date",placeholder:"YYYY-MM-DD","data-cy":"toolbar-date-picker","data-testid":"toolbar-date-picker"}),O.jsx("div",{style:{alignSelf:"baseline",padding:6},children:o("to")}),O.jsx(K.DatePicker,{value:t,onChange:l,isDisabled:!c||!K.isValidDate(c),rangeStart:c,validators:[f],"aria-label":"End date",placeholder:o("now"),invalidFormatText:o("Invalid date format")}),t!==void 0&&O.jsx(K.Button,{icon:O.jsx(Dt.TimesCircleIcon,{}),variant:"control",style:{alignSelf:"flex-start"},onClick:()=>n(void 0)})]})}function Doe(e){const{t}=Cn(),[n,r]=S.useState("");let a=e.placeholder;if(!a)switch(e.comparison){case"contains":a=t("contains");break;case"startsWith":a=t("starts with");break;case"endsWith":a=t("ends with");break;case"equals":a=t("equals");break;case"iregex":a=t("iregex");break}return O.jsxs(K.InputGroup,{children:[O.jsx(K.InputGroupItem,{children:O.jsxs(K.TextInputGroup,{"data-cy":"text-input","data-testid":"text-input",style:{minWidth:220},children:[O.jsx(K.TextInputGroupMain,{id:e.id,value:n,onChange:(o,i)=>{r(typeof o=="string"?o:i)},onKeyUp:o=>{n&&o.key==="Enter"&&(e.addFilter(n),r(""))},placeholder:a}),n!==""&&O.jsx(K.TextInputGroupUtilities,{children:O.jsx(K.Button,{icon:O.jsx(Dt.TimesIcon,{}),variant:"plain","aria-label":"clear filter",onClick:()=>r(""),style:{opacity:n?void 0:0},tabIndex:-1})})]})}),O.jsx(K.InputGroupItem,{children:O.jsx(K.Button,{icon:O.jsx(Dt.ArrowRightIcon,{}),variant:n?"primary":"control","data-cy":"apply-filter","data-testid":"apply-filter","aria-label":"apply filter",onClick:()=>{e.addFilter(n),r("")},tabIndex:-1,isDisabled:!n})})]})}function M5(e){const{t}=Cn(),[n,r]=S.useState(e.value??"");let a=e.placeholder??"";if(!a)switch(e.comparison){case"contains":a=t("contains");break;case"startsWith":a=t("starts with");break;case"endsWith":a=t("ends with");break;case"equals":a=t("equals");break;case"iregex":a=t("iregex");break}const o=S.useCallback(GD(i=>e.setValue(i),200),[]);return S.useEffect(()=>{e.hasKey||r("")},[e.hasKey]),O.jsx(K.InputGroup,{children:O.jsx(K.InputGroupItem,{children:O.jsxs(K.TextInputGroup,{"data-cy":"text-input","data-testid":"text-input",style:{minWidth:220},children:[O.jsx(K.TextInputGroupMain,{id:e.id,value:n,onChange:(i,l)=>{typeof i=="string"?(r(i),o(i)):(r(l),o(l))},placeholder:a}),n!==""&&O.jsx(K.TextInputGroupUtilities,{children:O.jsx(K.Button,{icon:O.jsx(Dt.TimesIcon,{}),variant:"plain","aria-label":"clear filter",onClick:()=>{r(""),e.setValue("")},style:{opacity:n?void 0:0},tabIndex:-1})})]})})})}function YD(e){const[t,n]=S.useState(!1),r=i=>{n(!t)},{activeGroup:a,setActiveGroup:o}=S.useContext(Foe);return S.useEffect(()=>{t&&o(e.id)},[t,o,e.id]),S.useEffect(()=>{a!==e.id&&n(!1)},[a,e.id]),O.jsx(K.ToolbarToggleGroup,{...e,isExpanded:t,onToggle:r})}const Foe=S.createContext({activeGroup:"",setActiveGroup:()=>{}});var KD=(e=>(e[e.Search=0]="Search",e[e.SingleText=1]="SingleText",e[e.MultiText=2]="MultiText",e[e.SingleSelect=3]="SingleSelect",e[e.MultiSelect=4]="MultiSelect",e[e.DateRange=5]="DateRange",e[e.AsyncSingleSelect=6]="AsyncSingleSelect",e[e.AsyncMultiSelect=7]="AsyncMultiSelect",e))(KD||{});function Noe(e){var c;const{toolbarFilters:t,filterState:n,setFilterState:r}=e,[a,o]=S.useState(()=>t&&(t==null?void 0:t.length)>0?t[0].key:""),i=t==null?void 0:t.find(f=>f.key===a);if(!i)return O.jsx(O.Fragment,{});if(!t)return O.jsx(O.Fragment,{});if(t.length===0)return O.jsx(O.Fragment,{});let l=t.length===1;return t.length>=1&&t[0].type===3&&t[0].isPinned&&(n[t[0].key]===void 0||((c=n[t[0].key])==null?void 0:c.length)===0)&&(l=!1),O.jsx(O.Fragment,{children:t.length===1?O.jsxs(K.ToolbarItem,{children:[l&&O.jsx("div",{style:{marginTop:6,marginRight:6,whiteSpace:"nowrap"},children:t[0].label}),O.jsx(Roe,{id:"filter-input",filter:i,filterState:n,setFilterState:r,"data-cy":i,"data-testid":i,limitFiltersToOneOrOperation:e.limitFiltersToOneOrOperation})]}):O.jsxs(K.ToolbarGroup,{variant:"filter-group",children:[O.jsx(K.ToolbarItem,{children:O.jsx(Cd,{id:"filter",value:a,onSelect:o,icon:i.type===0?O.jsx(Dt.SearchIcon,{}):O.jsx(Dt.FilterIcon,{}),options:t.map(f=>({label:f.label,value:f.key})),placeholder:"","data-cy":i,"data-testid":i,disableSortOptions:!0,isRequired:!0,disableMaxDropdownWidth:!0})}),O.jsx(K.ToolbarItem,{children:O.jsx(Roe,{id:"filter-input",filter:i,filterState:n,setFilterState:r,"data-cy":i,"data-testid":i,limitFiltersToOneOrOperation:e.limitFiltersToOneOrOperation})})]})})}function zoe(e){const{toolbarFilters:t,setFilterState:n,filterState:r}=e,[a]=ua(),o=!dl("md");if(!t)return O.jsx(O.Fragment,{});if(t.length===0)return O.jsx(O.Fragment,{});const i=t.filter(c=>!c.isPinned),l=t.filter(c=>!!c.isPinned);return O.jsxs(YD,{toggleIcon:O.jsx(Dt.FilterIcon,{}),breakpoint:"md",id:"filters",children:[o&&O.jsx(K.ToolbarItem,{variant:"label",children:a.filter}),O.jsx(Noe,{toolbarFilters:i,setFilterState:n,filterState:r,limitFiltersToOneOrOperation:e.limitFiltersToOneOrOperation}),l==null?void 0:l.map(c=>O.jsx(Noe,{toolbarFilters:[c],setFilterState:n,filterState:r,limitFiltersToOneOrOperation:e.limitFiltersToOneOrOperation},c.key)),t==null?void 0:t.map(c=>{const f=(r==null?void 0:r[c.key])||[];return c.isPinned&&c.type===3||c.isPinned&&c.type===5?null:O.jsx(K.ToolbarFilter,{categoryName:c.label,labels:[...f.map(d=>{var u,v;switch(c.type){case 3:case 4:case 5:return((v=(u=c.options)==null?void 0:u.find(g=>g.value===d))==null?void 0:v.label)??d;case 6:case 7:return{key:d,node:c.queryLabel(d)};default:return d}})],deleteLabel:(d,u)=>{n==null||n(v=>{var y;const g={...v};switch(u=typeof u=="string"?u:u.key,c.type){case 3:case 4:case 5:u=((y=c.options.find(w=>w.label===u))==null?void 0:y.value)??u;break}let x=v[c.key];return x&&(x=x.filter(w=>w!==u),x.length===0?delete g[c.key]:g[c.key]=x),g})},deleteLabelGroup:()=>{n==null||n(d=>{const u={...d};return delete u[c.key],u})},showToolbarItem:!1,children:O.jsx(O.Fragment,{})},c.label)})]})}function Roe(e){const{filter:t,filterState:n,setFilterState:r}=e,a=n==null?void 0:n[t.key],o=S.useCallback(c=>{r(f=>{const d={...f},u=d[t.key]??[];return d[t.key]=c(u),d})},[t.key,r]),i=S.useCallback(c=>{r(f=>{const d={...f},u=d[t.key]??[];return d[t.key]=[...u,c],d})},[t.key,r]);let l=!1;if(n)for(const c in n){if(c===t.key)continue;const f=n[c];if(f&&(f==null?void 0:f.length)>=2){l=!0;break}}switch(t.type){case 0:return O.jsx(M5,{id:e.id??t.key,placeholder:t.placeholder,setValue:c=>o(()=>c?[c]:[]),value:a&&(a==null?void 0:a.length)>0?a[0]:"",hasKey:!!(n!=null&&n[t.key])},t.key);case 1:return O.jsx(M5,{id:e.id??t.key,placeholder:t.placeholder,comparison:t.comparison,setValue:c=>o(()=>c?[c]:[]),value:a&&(a==null?void 0:a.length)>0?a[0]:"",hasKey:!!(n!=null&&n[t.key])},t.key);case 2:return l&&e.limitFiltersToOneOrOperation?O.jsx(M5,{id:e.id??t.key,placeholder:t.placeholder,comparison:t.comparison,setValue:c=>o(()=>c?[c]:[]),value:a&&(a==null?void 0:a.length)>0?a[0]:"",hasKey:!!(n!=null&&n[t.key])},t.key):O.jsx(Doe,{id:e.id??t.key,addFilter:i,placeholder:t.placeholder,comparison:t.comparison},t.key);case 3:return O.jsx(Cd,{id:e.id??t.key,placeholder:t.placeholder,value:a&&(a==null?void 0:a.length)>0?a[0]:"",onSelect:c=>o(()=>[c]),options:t.options,isRequired:t.isRequired||!t.isPinned,disableSortOptions:t.disableSortOptions,disableMaxDropdownWidth:!0,disableAutoSelect:!0},t.key);case 6:return O.jsx(Boe,{id:e.id??t.key,value:a&&(a==null?void 0:a.length)>0?a[0]:"",onSelect:c=>o(()=>[c]),placeholder:t.placeholder||"",queryOptions:t.queryOptions,queryErrorText:t.queryErrorText,queryPlaceholder:t.queryPlaceholder,isRequired:t.isRequired,footer:t.openBrowse?O.jsx(Aoe.Consumer,{children:c=>O.jsx(K.Button,{variant:"link",onClick:()=>{var f;c.setOpen(!1),(f=t.openBrowse)==null||f.call(t,d=>o(()=>[d]),a&&a.length>0?a[0]:void 0)},children:"Browse"})}):void 0,queryLabel:t.queryLabel,disableSortOptions:t.disableSortOptions,disableMaxDropdownWidth:!0},t.key);case 7:return l&&e.limitFiltersToOneOrOperation?O.jsx(Boe,{id:e.id??t.key,value:a&&(a==null?void 0:a.length)>0?a[0]:"",onSelect:c=>o(()=>[c]),placeholder:t.placeholder||"",queryOptions:t.queryOptions,queryErrorText:t.queryErrorText,queryPlaceholder:t.queryPlaceholder,isRequired:t.isRequired,footer:t.openBrowse?O.jsx(K.Button,{variant:"link",onClick:()=>{var c;(c=t.openBrowse)==null||c.call(t,f=>o(()=>[f.length?f[0]:""]),a&&a.length>0?a:void 0)},children:"Browse"}):void 0,queryLabel:t.queryLabel,disableSortOptions:t.disableSortOptions,disableMaxDropdownWidth:!0},t.key):O.jsx(nRe,{id:e.id??t.key,values:a,onSelect:o,placeholder:t.placeholder||"",queryOptions:t.queryOptions,queryErrorText:t.queryErrorText,queryPlaceholder:t.queryPlaceholder,footer:t.openBrowse?O.jsx(K.Button,{variant:"link",onClick:()=>{var c;(c=t.openBrowse)==null||c.call(t,f=>o(()=>f),a)},children:"Browse"}):void 0,variant:"count",disableClearSelection:!0,queryLabel:t.queryLabel,disableSortOptions:t.disableSortOptions,disableMaxDropdownWidth:!0},t.key);case 4:return l&&e.limitFiltersToOneOrOperation?O.jsx(Cd,{id:e.id??t.key,placeholder:t.placeholder,value:a&&(a==null?void 0:a.length)>0?a[0]:"",onSelect:c=>o(()=>[c]),options:t.options,disableSortOptions:t.disableSortOptions,disableMaxDropdownWidth:!0},t.key):O.jsx(Ooe,{id:e.id??t.key,placeholder:t.placeholder,values:a,onSelect:o,options:t.options,variant:"count",disableClearSelection:!0,disableSortOptions:t.disableSortOptions,disableMaxDropdownWidth:!0},t.key);case 5:return O.jsx(Moe,{id:e.id??t.key,label:t.label,placeholder:t.placeholder??"",filterValues:a,setFilterValues:o,options:t.options,isRequired:t.isRequired,defaultValue:t.defaultValue},t.key)}}function sRe(e){const{sort:t,setSort:n,sortDirection:r,setSortDirection:a,sortOptions:o}=e,i=o==null?void 0:o.find(d=>d.value===t),l=i?i.type:void 0,[c]=ua(),f=S.useMemo(()=>{switch(l){case"text":switch(r){case"asc":return O.jsx(Dt.SortAlphaUpIcon,{});case"desc":return O.jsx(Dt.SortAlphaDownAltIcon,{})}break;case"number":switch(r){case"asc":return O.jsx(Dt.SortNumericUpIcon,{});case"desc":return O.jsx(Dt.SortNumericDownAltIcon,{})}break;default:switch(r){case"asc":return O.jsx(Dt.SortAmountUpIcon,{});case"desc":return O.jsx(Dt.SortAmountDownIcon,{})}break}return O.jsx(O.Fragment,{})},[r,l]);return!o||o.length<=0?O.jsx(O.Fragment,{}):O.jsxs(YD,{breakpoint:"2xl",toggleIcon:f,id:"sort",children:[O.jsx(K.ToolbarItem,{variant:"label",children:c.sort}),O.jsxs(K.ToolbarGroup,{variant:"filter-group",children:[O.jsx(K.ToolbarItem,{children:O.jsx(cRe,{sortOptions:o,sort:t,setSort:n,setSortDirection:a})}),O.jsx(K.ToolbarItem,{children:O.jsx(K.Button,{variant:"control",icon:f,onClick:()=>{r==="asc"?a==null||a("desc"):a==null||a("asc")}})})]})]})}function cRe(e){const{sortOptions:t,sort:n,setSort:r,setSortDirection:a}=e,o=S.useCallback(i=>{if(i){const l=t.find(c=>c.value===i);l&&n!==i&&l.defaultDirection&&(a==null||a(l.defaultDirection)),r==null||r(i)}},[t,r,a,n]);return O.jsx(Cd,{id:"toolbar-sort-select-expand",placeholder:"",value:n,onSelect:o,options:t.map(i=>({label:i.label,value:i.value})),disableMaxDropdownWidth:!0,isRequired:!0})}function fRe(e){return S.useMemo(()=>{const n=[];for(const r of e)if(r.sort){if(r.defaultSort){n.push({label:r.header,value:r.sort,type:"text",defaultDirection:r.defaultSortDirection});continue}switch(r.type){case"count":n.push({label:r.header,value:r.sort,type:"number",defaultDirection:r.defaultSortDirection});break;case"text":n.push({label:r.header,value:r.sort,type:"text",defaultDirection:r.defaultSortDirection});break;default:n.push({label:r.header,value:r.sort,defaultDirection:r.defaultSortDirection});break}}return n},[e])}function pRe(e){const{viewType:t,setViewType:n,openColumnModal:r}=e,[a]=ua();let o=0;e.disableTableView||o++,e.disableCardView||o++,e.disableListView||o++;let i=O.jsx(Dt.TableIcon,{});return t===cr.Cards&&(i=O.jsx(Dt.ThLargeIcon,{})),t===cr.List&&(i=O.jsx(Dt.ListIcon,{})),O.jsx(YD,{breakpoint:"md",toggleIcon:i,id:"view",children:O.jsx(K.ToolbarGroup,{variant:"action-group",style:{justifyContent:"end",marginRight:0},children:O.jsx(K.ToolbarItem,{children:O.jsxs(K.Split,{hasGutter:!0,children:[r&&O.jsx(K.Tooltip,{content:a.manageColumns,children:O.jsx(K.Button,{variant:"plain",icon:O.jsx(Dt.ColumnsIcon,{}),onClick:r})}),o>1&&O.jsx(K.ToggleGroup,{"data-cy":"table-view-toggle","data-testid":"table-view-toggle","aria-label":"table view toggle",children:[!e.disableTableView&&cr.Table,!e.disableListView&&cr.List,!e.disableCardView&&cr.Cards].filter(l=>l).map(l=>{switch(l){case cr.Cards:return O.jsx(K.ToggleGroupItem,{icon:O.jsx(Dt.ThLargeIcon,{}),isSelected:t===cr.Cards,onClick:()=>n==null?void 0:n(cr.Cards),"aria-label":"card view","data-cy":"card-view","data-testid":"card-view"},"card-view");case cr.List:return O.jsx(K.ToggleGroupItem,{icon:O.jsx(Dt.ListIcon,{}),isSelected:t===cr.List,onClick:()=>n==null?void 0:n(cr.List),"aria-label":"list view","data-cy":"list-view","data-testid":"list-view"},"list-view");case cr.Table:return O.jsx(K.ToggleGroupItem,{icon:O.jsx(Dt.TableIcon,{}),isSelected:t===cr.Table,onClick:()=>n==null?void 0:n(cr.Table),"aria-label":"table view","data-cy":"table-view","data-testid":"table-view"},"table-view")}})})]})})})})}function Woe(e){const{itemCount:t,toolbarFilters:n,selectedItems:r,filterState:a,setFilterState:o,openColumnModal:i,sort:l,setSort:c,sortDirection:f,setSortDirection:d,sortOptions:u,clearAllFilters:v}=e,g=S.useCallback(()=>{v?v():o&&o({})},[o,v]),x=dl("md"),{viewType:y,setViewType:w}=e;let{toolbarActions:C}=e;C=C??[];const[E,j]=S.useState(""),A=n!==void 0,B=C!==void 0&&C.length>0,L=e.showSelect===!0||r!==void 0&&C&&C.find(z=>"selection"in z&&z.selection===Qn.Multiple);return L||A||B?t===void 0?O.jsx(K.Toolbar,{className:"page-table-toolbar",style:{paddingBottom:x?void 0:8,paddingTop:x?void 0:8},children:O.jsx(K.ToolbarContent,{children:O.jsx(K.ToolbarItem,{style:{width:"100%"},children:O.jsx(K.Skeleton,{height:"36px"})})})}):O.jsx(Foe.Provider,{value:{activeGroup:E,setActiveGroup:j},children:O.jsx(K.Toolbar,{ouiaId:"page-toolbar","data-cy":"page-toolbar","data-testid":"page-toolbar",clearAllFilters:g,className:"page-table-toolbar",style:{paddingBottom:x?void 0:8,paddingTop:x?void 0:8},inset:{default:"insetMd",sm:"insetMd",md:"insetMd",lg:"insetMd",xl:"insetLg","2xl":"insetLg"},children:O.jsxs(K.ToolbarContent,{children:[y!=="table"&&L&&O.jsx(K.ToolbarGroup,{children:O.jsx(K.ToolbarItem,{children:O.jsx(SV,{...e})})}),a&&o&&O.jsx(zoe,{toolbarFilters:n,filterState:a,setFilterState:o,limitFiltersToOneOrOperation:e.limitFiltersToOneOrOperation}),e.toolbarContent,O.jsx(K.ToolbarGroup,{variant:"action-group",children:O.jsx(Df,{dropDownAriaLabel:"toolbar actions",actions:C,selectedItems:r,wrapper:K.ToolbarItem})}),O.jsxs(K.ToolbarGroup,{align:{default:"alignEnd"},children:[y!=="table"&&O.jsx(sRe,{sort:l,setSort:c,sortDirection:f,setSortDirection:d,sortOptions:u}),y&&w&&O.jsx(pRe,{disableTableView:e.disableTableView,disableListView:e.disableListView,disableCardView:e.disableCardView,viewType:y,setViewType:w,openColumnModal:i})]})]})})}):O.jsx(S.Fragment,{})}function dRe(e){const{t}=Cn(),n=t("Something went wrong"),r=t("Please refresh the page by using the button below."),a=t("Refresh"),{titleProp:o,message:i}=e;return O.jsxs(K.EmptyState,{headingLevel:"h2",icon:Dt.ExclamationCircleIcon,titleText:O.jsx(O.Fragment,{children:o||n}),isFullHeight:!0,children:[O.jsx(K.EmptyStateBody,{children:i}),O.jsxs(K.EmptyStateFooter,{children:[O.jsx(K.EmptyStateBody,{children:r}),O.jsx(K.Button,{variant:"primary",onClick:()=>window.location.reload(),children:a})]})]})}function uRe(e){const{title:t,description:n,icon:r,button:a,footNote:o,image:i,variant:l,style:c}=e;return O.jsxs(K.EmptyState,{icon:r,headingLevel:"h4",titleText:O.jsx(O.Fragment,{children:t}),variant:l||K.EmptyStateVariant.full,style:c,isFullHeight:!0,children:[O.jsx(K.EmptyStateBody,{"data-cy":e.description,"data-testid":e.description,children:n}),O.jsxs(K.EmptyStateFooter,{children:[a&&O.jsx(K.EmptyStateActions,{children:a}),i&&O.jsxs(O.Fragment,{children:[" ",O.jsx("br",{})," ",O.jsx(K.EmptyStateBody,{children:i})]}),o&&O.jsx(K.EmptyStateBody,{children:o})]})]})}function mRe(e){const{button:t,description:n,title:r,variant:a,icon:o}=e;return O.jsx(uRe,{icon:o??(t?Dt.PlusCircleIcon:Dt.CubesIcon),title:r,description:n,button:t,variant:a})}const qoe=S.createContext({dialogs:[],clearDialogs:()=>{},pushDialog:e=>{},popDialog:()=>{}}),Hoe=S.createContext(!1);function Uoe(){return S.useContext(Hoe)}function Voe(e){const[t,n]=S.useState([]),r=S.useCallback(()=>n(l=>l.length?[]:l),[n]),a=S.useCallback(l=>n(c=>[...c,l]),[n]),o=S.useCallback(()=>n(l=>l.slice(0,-1)),[n]),i=S.useMemo(()=>({dialogs:t,clearDialogs:r,pushDialog:a,popDialog:o}),[r,t,o,a]);return O.jsxs(qoe.Provider,{value:i,children:[O.jsx(Hoe.Provider,{value:!0,children:t.length>0&&t[t.length-1]}),e.children]})}function Goe(){return S.useContext(qoe)}function Ed(){const{dialogs:e,clearDialogs:t,pushDialog:n}=Goe(),r=S.useMemo(()=>e.length>0?e[e.length-1]:void 0,[e]),a=S.useCallback(o=>{t(),o!==void 0&&n(o)},[t,n]);return S.useMemo(()=>[r,a],[r,a])}function vRe(e,t,n){const{selectedItems:r,selectItem:a,unselectItem:o,isSelected:i,selectItems:l,unselectAll:c,allSelected:f}=XD(e,t),{sorted:d,sort:u,setSort:v}=ZD(e),{filtered:g,setFilterFn:x}=QD(d,t),{searched:y,search:w,setSearch:C,setSearchFn:E}=gRe(g,t,n==null?void 0:n.search),{paged:j,page:A,setPage:B,perPage:L,setPerPage:D}=w_(y),z=S.useCallback(()=>l(j),[j,l]),Y=S.useCallback(()=>l(y),[y,l]);return S.useMemo(()=>({allSelected:f,filtered:g,isSelected:i,page:A,paged:j,perPage:L,search:w,searched:y,selectAll:Y,selectItem:a,selectPage:z,selectedItems:r,setFilterFn:x,setPage:B,setPerPage:D,setSearch:C,setSearchFn:E,setSort:v,sort:u,sorted:d,unselectAll:c,unselectItem:o}),[f,g,i,A,j,L,w,y,Y,a,z,r,x,B,D,C,E,v,u,d,c,o])}function XD(e,t,n){const[r,a]=S.useState(()=>n?n.reduce((y,w)=>(y[`item-${t(w)}`]=w,y),{}):{});S.useEffect(()=>{a(y=>{let w=!1;return e.forEach(C=>{const E=`item-${t(C)}`;y[E]&&y[E]!==C&&(w=!0,y[E]=C)}),w?{...y}:y})},[e,t]);const o=S.useCallback(y=>{a(w=>{const C=`item-${t(y)}`;return w[C]!==y&&(w={...w},w[C]=y),w})},[t]),i=S.useCallback(y=>{a(w=>{const C=`item-${t(y)}`;return w[C]&&(w={...w},delete w[C]),w})},[t]),l=S.useCallback(y=>{const w=`item-${t(y)}`;return r[w]!==void 0},[t,r]),c=S.useCallback(y=>{a(w=>{w={...w};for(const C of y){const E=`item-${t(C)}`;w[E]=C}return w})},[t]),f=S.useRef(e);S.useEffect(()=>{f.current=e},[e]);const d=S.useCallback(()=>c(f.current),[c]),u=S.useCallback(y=>{for(const w of y)i(w)},[i]),v=S.useCallback(()=>{a(y=>Object.keys(y).length>0?{}:y)},[]),g=S.useMemo(()=>Object.values(r),[r]),x=S.useMemo(()=>g.length===e.length,[e.length,g.length]);return S.useMemo(()=>({selectedItems:g,selectItem:o,unselectItem:i,isSelected:l,selectItems:c,selectAll:d,unselectAll:v,allSelected:x,keyFn:t,unselectItems:u}),[x,l,t,d,o,c,g,v,i,u])}function Yoe(e,t){const[n,r]=S.useState({});S.useEffect(()=>{r(g=>{let x=!1;const y=e?e.reduce((E,j)=>{const A=t(j);return E[A]=j,g[A]&&g[A]!==j&&(x=!0,g[A]=j),E},{}):{},w={};for(const E in g)y[E]||(w[E]=!0);const C=Object.keys(w);if(C.length){x=!0;for(const E of C)delete g[E]}return x?{...g}:g})},[e,t]);const a=S.useCallback(g=>{r(x=>{const y=t(g);return x[y]!==g&&(x={...x},x[y]=g),x})},[t]),o=S.useCallback(g=>{r(x=>{const y=t(g);return x[y]&&(x={...x},delete x[y]),x})},[t]),i=S.useCallback(g=>{for(const x of g)o(x)},[o]),l=S.useCallback(g=>{const x=t(g);return n[x]!==void 0},[t,n]),c=S.useCallback(g=>{r(x=>{x={...x};for(const y of g){const w=t(y);x[w]=y}return x})},[t]),f=S.useCallback(()=>{c(e??[])},[e,c]),d=S.useCallback(()=>{r(g=>Object.keys(g).length>0?{}:g)},[]),u=S.useMemo(()=>Object.values(n),[n]),v=S.useMemo(()=>u.length===(e==null?void 0:e.length),[e,u.length]);return S.useMemo(()=>({selectedItems:u,selectItem:a,unselectItem:o,isSelected:l,selectItems:c,selectAll:f,unselectAll:d,allSelected:v,keyFn:t,unselectItems:i}),[v,l,t,f,a,c,u,d,o,i])}function ZD(e){const[t,n]=S.useState(),{direction:r,sortFn:a}=t??{},o=S.useMemo(()=>e?a?r==="asc"?[...e.sort(a)]:[...e.sort(a).reverse()]:e:[],[r,e,a]);return S.useMemo(()=>({sorted:o,sort:t,setSort:n}),[t,o])}function QD(e,t){const n=S.useRef({map:{}}),[r,a]=S.useState(),o=S.useCallback(f=>a(()=>f),[]),[i,l]=S.useState([]);S.useEffect(()=>{n.current.map={}},[r]);const c=S.useCallback(f=>{const d=t(f);let u=n.current.map[d];return u?u.item!==f&&(u.item=f,u.passes=r?r(f):!0):(u={item:f,passes:r?r(f):!0},n.current.map[d]=u),u.passes},[r,t]);return S.useEffect(()=>{l(r?e.filter(c):e)},[e,r,c]),S.useMemo(function(){return{filtered:i,setFilterFn:o}},[i,o])}function gRe(e,t,n){const r=S.useRef({map:{}}),[a,o]=S.useState(),i=S.useCallback(g=>o(()=>g),[]),[l,c]=S.useState([]),[f,d]=S.useState(n??""),u=S.useCallback(GD(g=>d(g),200),[]);S.useEffect(()=>{r.current.map={}},[f,a]);const v=S.useCallback(g=>{const x=t(g);let y=r.current.map[x];return y?y.item!==g&&(y.item=g,y.score=a?a(g,f):0):(y={item:g,score:a?a(g,f):0},r.current.map[x]=y),y},[t,a,f]);return S.useEffect(()=>{c(a&&f?e.map(v).filter(g=>g.score<.5).sort((g,x)=>g.score-x.score).map(g=>g.item):e)},[f,e,a,v]),S.useMemo(function(){return{searched:l,search:f,setSearch:u,setSearchFn:i}},[l,f,u,i])}function w_(e){const[t,n]=S.useState([]),[r,a]=S.useState(1),[o,i]=S.useState(10);return S.useEffect(()=>{n(l=>{const c=e.slice((r-1)*o,r*o);if(l.length!==c.length)return c;let f=0;for(const d of c)if(l[f++]!==d)return c;return l})},[r,o,e]),S.useEffect(()=>{r>Math.ceil(e.length/o)&&a(1)},[r,o,e.length]),S.useMemo(()=>({paged:t,page:r,setPage:a,perPage:o,setPerPage:i}),[r,t,o])}const JD={modifiers:{ghostRow:"pf-m-ghost-row",dragOver:"pf-m-drag-over"}},hRe=cn(Mn.Tbody)`
434
434
  --pf-v6-c-table--cell--LineHeight: 2;
435
- `;function bRe(e){const{t}=Cn(),{columns:n,keyFn:r,items:a,setItems:o,isSelected:i,selectItem:l,unselectItem:c,allSelected:f,selectAll:d,unselectAll:u,hideColumnHeaders:v,isSelectableWithCheckbox:g}=e,[x,y]=S.useState(null),[w,C]=S.useState(null),[E,j]=S.useState(!1),A=S.useRef(null),B=V=>{if(A.current){const Z=A.current.getBoundingClientRect();return V.clientX>Z.x&&V.clientX<Z.x+Z.width&&V.clientY>Z.y&&V.clientY<Z.y+Z.height}return!1},L=V=>{B(V)||D()},D=()=>{A.current&&Array.from(A.current.children).forEach(V=>{V.classList.remove(JD.modifiers.ghostRow),V.setAttribute("aria-pressed","false")}),C(null),y(null),j(!1)},z=V=>{V.preventDefault();const Z=V.target.closest("tr");if(!Z||!(A.current&&A.current.contains(Z))||Z.id===w)return null;{const re=Z.id,oe=Array.from(A.current.children).findIndex(ee=>ee.id===re);if(oe!==x&&w){const ee=Y([...a],w,oe);o(ee)}}return null},Y=(V,Z,re)=>{const oe=V.findIndex(te=>r(te)===Z);if(oe===re)return V;const ee=V.splice(oe,1);return V.splice(re,0,ee[0]),V},q=V=>{B(V)||y(null)},F=V=>{const Z=V.target;Z.classList.remove(JD.modifiers.ghostRow),Z.setAttribute("aria-pressed","false"),C(null),y(null),j(!1)},R=V=>{if(A.current){V.dataTransfer.effectAllowed="move";const Z=V.currentTarget.id,re=Array.from(A.current.children).findIndex(oe=>oe.id===V.currentTarget.id);V.currentTarget.setAttribute("aria-pressed","true"),C(Z),y(re)}},U=S.useCallback(V=>{const Z=a.findIndex(oe=>r(oe)===r(V)),re=[...a];re[Z]=V,o(re)},[a,o,r]);return O.jsxs(Mn.Table,{"aria-label":t("Table with draggable rows"),className:E?JD.modifiers.dragOver:"",variant:"compact",gridBreakPoint:"",children:[!v&&O.jsx(Mn.Thead,{children:O.jsxs(Mn.Tr,{children:[O.jsx(Mn.Th,{}),g&&O.jsx(Mn.Th,{select:{onSelect:(V,Z)=>{Z?d():u()},isSelected:f}}),n.map((V,Z)=>O.jsx(Mn.Th,{children:V.header},Z))]})}),O.jsx(hRe,{ref:A,onDragOver:z,onDragLeave:q,children:a.map((V,Z)=>{const re=r(V);return O.jsxs(Mn.Tr,{id:re.toString(),draggable:!0,onDrop:L,onDragEnd:F,onDragStart:R,children:[O.jsx(Mn.Td,{draggableRow:{id:`draggable-row-${re.toString()}`}}),g&&O.jsx(Mn.Td,{select:{rowIndex:Z,variant:"checkbox",onSelect:(oe,ee)=>{ee?l(V):c(V)},isSelected:i(V)}}),n.map(oe=>O.jsx(Mn.Td,{children:oe.cell(V,U)},oe.header))]},re)})})]})}function xRe(e){const[t,n]=Ed(),[r]=S.useState(()=>e.keyFn),[a]=S.useState(()=>e.saveFn),[o]=S.useState(()=>e.loadFn),[i,l]=S.useState(()=>{try{const v=localStorage.getItem(e.id);if(typeof v=="string"){const g=JSON.parse(v);if(Array.isArray(g)&&g.every(x=>typeof x=="object")&&g.every(x=>"key"in x&&"enabled"in x))return g}}catch{}}),c=S.useMemo(()=>i?e.items.map(v=>{if(o){const g=i.find(x=>x.key===r(v));g&&g.state&&o(v,g.state)}return v}).sort((v,g)=>{const x=i.findIndex(w=>w.key===r(v)),y=i.findIndex(w=>w.key===r(g));return x===-1&&y===-1?0:x===-1?1:y===-1?-1:x-y}):e.items,[i,r,o,e.items]),f=S.useMemo(()=>i?c.filter(v=>{const g=i.find(x=>x.key===r(v));return g?g.enabled:!0}):c,[c,i,r]),d=S.useCallback((v,g)=>{const x=v.map(y=>({key:r(y),enabled:g.includes(y),state:a?a(y):void 0}));l(x),localStorage.setItem(e.id,JSON.stringify(x)),e.onSubmit&&e.onSubmit(v)},[r,e,a]);return{openManageItems:()=>n(O.jsx(yRe,{...e,keyFn:r,items:c,defaultSelectedItems:f,onApplyChanges:d})),managedItems:f}}function yRe(e){const{t}=Cn(),{title:n,description:r,columns:a,onApplyChanges:o}=e,[i]=S.useState(()=>e.keyFn),[l,c]=Ed(),f=()=>c(void 0),[d,u]=S.useState(()=>e.items),{selectedItems:v,isSelected:g,selectItem:x,unselectItem:y,allSelected:w,selectAll:C,unselectAll:E}=XD(d,i,e.defaultSelectedItems),j=()=>{o(d,v),c(void 0)};return O.jsxs(K.Modal,{"aria-label":n,ouiaId:n,variant:e.variant??K.ModalVariant.medium,isOpen:!0,onClose:f,children:[O.jsx(K.ModalHeader,{title:n,description:O.jsx("div",{style:{marginBottom:16},children:r})}),O.jsx(K.Divider,{}),O.jsx(K.ModalBody,{style:{padding:0},children:O.jsx(bRe,{keyFn:i,items:d,setItems:u,columns:a,isSelected:g,selectItem:x,unselectItem:y,allSelected:w,selectAll:C,unselectAll:E,hideColumnHeaders:e.hideColumnHeaders,isSelectableWithCheckbox:e.hideSelection!==!0})}),O.jsx(K.Divider,{}),O.jsxs(K.ModalFooter,{children:[O.jsx(K.Button,{variant:"primary",onClick:j,children:t`Apply`},"apply"),O.jsx(K.Button,{variant:"link",onClick:f,children:t`Cancel`},"cancel")]})]})}function _Re(e,t,n,r,a){const{t:o}=Cn(),i=S.useMemo(()=>{const u=[{header:o("Name"),cell:v=>v.header}];return n||u.push({header:o("Table"),cell:(v,g)=>O.jsx(Cd,{value:v.table??"",onSelect:x=>{switch(x){case"":g({...v,table:void 0});break;case vm.description:case vm.expanded:case vm.hidden:g({...v,table:x});break}},placeholder:o("Column"),options:[{value:"",label:o("Column"),description:o("Show the column in the table.")},{value:vm.description,label:o("Description"),description:o("Show the column when the item is expanded as a full width description.")},{value:vm.expanded,label:o("Expanded"),description:o("Show the column when the item is expanded as a detail.")},{value:vm.hidden,label:o("Hidden"),description:o("Hide the column.")}],isRequired:!0})}),r||u.push({header:o("List"),cell:(v,g)=>O.jsx(Cd,{value:v.list??"",onSelect:x=>{switch(x){case"":g({...v,list:void 0});break;case"name":case"subtitle":case"description":case"primary":case"secondary":case"hidden":g({...v,list:x});break}},options:[{value:"name",label:o("Name"),description:o("Show the column as the name of the list item.")},{value:"subtitle",label:o("Subtitle"),description:o("Show the column as the subtitle under the name on the list.")},{value:"description",label:o("Description"),description:o("Show the column as the list item description.")},{value:"primary",label:o("Left side"),description:o("Show the column on the left side of the list.")},{value:"secondary",label:o("Right side"),description:o("Show the column on the right side of the list.")},{value:"hidden",label:o("Hidden"),description:o("Hide the column on the list.")}],placeholder:o("Left side"),isRequired:!0})}),a||u.push({header:o("Card"),cell:(v,g)=>O.jsx(Cd,{value:v.card??"",onSelect:x=>{switch(x){case"":g({...v,card:void 0});break;case"name":case"subtitle":case"description":case"hidden":g({...v,card:x});break}},placeholder:o("Detail"),options:[{value:"name",label:o("Name"),description:o("Show the column as the name on the card.")},{value:"subtitle",label:o("Subtitle"),description:o("Show the column as the subtitle under the name on the card.")},{value:"description",label:o("Description"),description:o("Show the column as the card description.")},{value:"",label:o("Detail"),description:o("Show the column one of the details on the card.")},{value:"hidden",label:o("Hidden"),description:o("Hide the column on the card.")}],isRequired:!0})}),u},[a,r,n,o]),l=S.useCallback((u,v)=>{typeof v=="object"&&v!==null&&("table"in v&&typeof v.table=="string"?u.table=v.table:u.table=void 0,"list"in v&&typeof v.list=="string"?u.list=v.list:u.list=void 0,"card"in v&&typeof v.card=="string"?u.card=v.card:u.card=void 0)},[]),c=S.useCallback(u=>{const{table:v,list:g,card:x}=u;return{table:v,list:g,card:x}},[]),{openManageItems:f,managedItems:d}=xRe({id:e,title:o("Manage Columns"),description:o("Manage the order, placement, and format of columns."),items:t,keyFn:u=>u.id??u.header,columns:i,loadFn:l,saveFn:c,hideSelection:!0});return{openColumnManagement:f,managedColumns:d}}function wRe({rows:e=10}){return O.jsx(Mn.Table,{gridBreakPoint:"",className:"page-table",children:O.jsx(Mn.Tbody,{children:new Array(e).fill(0).map((t,n)=>O.jsx(Mn.Tr,{children:O.jsx(Mn.Td,{children:O.jsx(K.Skeleton,{height:"27px"})})},n))})})}function kRe(e){const{setPage:t,setPerPage:n}=e,r=S.useCallback((i,l)=>t(l),[t]),a=S.useCallback((i,l)=>n(l),[n]),o=!dl("md");return O.jsx(K.Pagination,{"data-cy":"pagination","data-testid":"pagination",variant:K.PaginationVariant.bottom,itemCount:e.itemCount,page:e.page,perPage:e.perPage,onSetPage:r,onPerPageSelect:a,perPageOptions:e.perPageOptions,style:{...e.style,boxShadow:"none",zIndex:400,paddingTop:o?4:6,paddingBottom:o?4:6}})}function SRe(e){const t=e.size??350,n=S.useRef(null),[r,a]=S.useState("1fr"),o=S.useCallback(l=>{let c=Math.min(e.maxColumns??12,Math.max(Math.floor(l/t),1));c<1&&(c=1),a(()=>new Array(c).fill("1fr").join(" "))},[e.maxColumns,t]);return Mc(n,l=>o(l.contentRect.width)),S.useLayoutEffect(()=>{var l;o(((l=n.current)==null?void 0:l.clientWidth)??0)},[o]),O.jsx("div",{ref:n,style:{display:"grid",gridAutoRows:"1fr",gridTemplateColumns:r,gap:16},children:e.children})}const Koe=cn.small`
435
+ `;function bRe(e){const{t}=Cn(),{columns:n,keyFn:r,items:a,setItems:o,isSelected:i,selectItem:l,unselectItem:c,allSelected:f,selectAll:d,unselectAll:u,hideColumnHeaders:v,isSelectableWithCheckbox:g}=e,[x,y]=S.useState(null),[w,C]=S.useState(null),[E,j]=S.useState(!1),A=S.useRef(null),B=V=>{if(A.current){const Z=A.current.getBoundingClientRect();return V.clientX>Z.x&&V.clientX<Z.x+Z.width&&V.clientY>Z.y&&V.clientY<Z.y+Z.height}return!1},L=V=>{B(V)||D()},D=()=>{A.current&&Array.from(A.current.children).forEach(V=>{V.classList.remove(JD.modifiers.ghostRow),V.setAttribute("aria-pressed","false")}),C(null),y(null),j(!1)},z=V=>{V.preventDefault();const Z=V.target.closest("tr");if(!Z||!(A.current&&A.current.contains(Z))||Z.id===w)return null;{const re=Z.id,oe=Array.from(A.current.children).findIndex(ee=>ee.id===re);if(oe!==x&&w){const ee=Y([...a],w,oe);o(ee)}}return null},Y=(V,Z,re)=>{const oe=V.findIndex(te=>r(te)===Z);if(oe===re)return V;const ee=V.splice(oe,1);return V.splice(re,0,ee[0]),V},q=V=>{B(V)||y(null)},F=V=>{const Z=V.target;Z.classList.remove(JD.modifiers.ghostRow),Z.setAttribute("aria-pressed","false"),C(null),y(null),j(!1)},R=V=>{if(A.current){V.dataTransfer.effectAllowed="move";const Z=V.currentTarget.id,re=Array.from(A.current.children).findIndex(oe=>oe.id===V.currentTarget.id);V.currentTarget.setAttribute("aria-pressed","true"),C(Z),y(re)}},U=S.useCallback(V=>{const Z=a.findIndex(oe=>r(oe)===r(V)),re=[...a];re[Z]=V,o(re)},[a,o,r]);return O.jsxs(Mn.Table,{"aria-label":t("Table with draggable rows"),className:E?JD.modifiers.dragOver:"",variant:"compact",gridBreakPoint:"",children:[!v&&O.jsx(Mn.Thead,{children:O.jsxs(Mn.Tr,{children:[O.jsx(Mn.Th,{screenReaderText:t`Sort`}),g&&O.jsx(Mn.Th,{select:{onSelect:(V,Z)=>{Z?d():u()},isSelected:f}}),n.map((V,Z)=>O.jsx(Mn.Th,{children:V.header},Z))]})}),O.jsx(hRe,{ref:A,onDragOver:z,onDragLeave:q,children:a.map((V,Z)=>{const re=r(V);return O.jsxs(Mn.Tr,{id:re.toString(),draggable:!0,onDrop:L,onDragEnd:F,onDragStart:R,children:[O.jsx(Mn.Td,{draggableRow:{id:`draggable-row-${re.toString()}`}}),g&&O.jsx(Mn.Td,{select:{rowIndex:Z,variant:"checkbox",onSelect:(oe,ee)=>{ee?l(V):c(V)},isSelected:i(V)}}),n.map(oe=>O.jsx(Mn.Td,{children:oe.cell(V,U)},oe.header))]},re)})})]})}function xRe(e){const[t,n]=Ed(),[r]=S.useState(()=>e.keyFn),[a]=S.useState(()=>e.saveFn),[o]=S.useState(()=>e.loadFn),[i,l]=S.useState(()=>{try{const v=localStorage.getItem(e.id);if(typeof v=="string"){const g=JSON.parse(v);if(Array.isArray(g)&&g.every(x=>typeof x=="object")&&g.every(x=>"key"in x&&"enabled"in x))return g}}catch{}}),c=S.useMemo(()=>i?e.items.map(v=>{if(o){const g=i.find(x=>x.key===r(v));g&&g.state&&o(v,g.state)}return v}).sort((v,g)=>{const x=i.findIndex(w=>w.key===r(v)),y=i.findIndex(w=>w.key===r(g));return x===-1&&y===-1?0:x===-1?1:y===-1?-1:x-y}):e.items,[i,r,o,e.items]),f=S.useMemo(()=>i?c.filter(v=>{const g=i.find(x=>x.key===r(v));return g?g.enabled:!0}):c,[c,i,r]),d=S.useCallback((v,g)=>{const x=v.map(y=>({key:r(y),enabled:g.includes(y),state:a?a(y):void 0}));l(x),localStorage.setItem(e.id,JSON.stringify(x)),e.onSubmit&&e.onSubmit(v)},[r,e,a]);return{openManageItems:()=>n(O.jsx(yRe,{...e,keyFn:r,items:c,defaultSelectedItems:f,onApplyChanges:d})),managedItems:f}}function yRe(e){const{t}=Cn(),{title:n,description:r,columns:a,onApplyChanges:o}=e,[i]=S.useState(()=>e.keyFn),[l,c]=Ed(),f=()=>c(void 0),[d,u]=S.useState(()=>e.items),{selectedItems:v,isSelected:g,selectItem:x,unselectItem:y,allSelected:w,selectAll:C,unselectAll:E}=XD(d,i,e.defaultSelectedItems),j=()=>{o(d,v),c(void 0)};return O.jsxs(K.Modal,{"aria-label":n,ouiaId:n,variant:e.variant??K.ModalVariant.medium,isOpen:!0,onClose:f,children:[O.jsx(K.ModalHeader,{title:n,description:O.jsx("div",{style:{marginBottom:16},children:r})}),O.jsx(K.Divider,{}),O.jsx(K.ModalBody,{style:{padding:0},children:O.jsx(bRe,{keyFn:i,items:d,setItems:u,columns:a,isSelected:g,selectItem:x,unselectItem:y,allSelected:w,selectAll:C,unselectAll:E,hideColumnHeaders:e.hideColumnHeaders,isSelectableWithCheckbox:e.hideSelection!==!0})}),O.jsx(K.Divider,{}),O.jsxs(K.ModalFooter,{children:[O.jsx(K.Button,{variant:"primary",onClick:j,children:t`Apply`},"apply"),O.jsx(K.Button,{variant:"link",onClick:f,children:t`Cancel`},"cancel")]})]})}function _Re(e,t,n,r,a){const{t:o}=Cn(),i=S.useMemo(()=>{const u=[{header:o("Name"),cell:v=>v.header}];return n||u.push({header:o("Table"),cell:(v,g)=>O.jsx(Cd,{value:v.table??"",onSelect:x=>{switch(x){case"":g({...v,table:void 0});break;case vm.description:case vm.expanded:case vm.hidden:g({...v,table:x});break}},placeholder:o("Column"),options:[{value:"",label:o("Column"),description:o("Show the column in the table.")},{value:vm.description,label:o("Description"),description:o("Show the column when the item is expanded as a full width description.")},{value:vm.expanded,label:o("Expanded"),description:o("Show the column when the item is expanded as a detail.")},{value:vm.hidden,label:o("Hidden"),description:o("Hide the column.")}],isRequired:!0})}),r||u.push({header:o("List"),cell:(v,g)=>O.jsx(Cd,{value:v.list??"",onSelect:x=>{switch(x){case"":g({...v,list:void 0});break;case"name":case"subtitle":case"description":case"primary":case"secondary":case"hidden":g({...v,list:x});break}},options:[{value:"name",label:o("Name"),description:o("Show the column as the name of the list item.")},{value:"subtitle",label:o("Subtitle"),description:o("Show the column as the subtitle under the name on the list.")},{value:"description",label:o("Description"),description:o("Show the column as the list item description.")},{value:"primary",label:o("Left side"),description:o("Show the column on the left side of the list.")},{value:"secondary",label:o("Right side"),description:o("Show the column on the right side of the list.")},{value:"hidden",label:o("Hidden"),description:o("Hide the column on the list.")}],placeholder:o("Left side"),isRequired:!0})}),a||u.push({header:o("Card"),cell:(v,g)=>O.jsx(Cd,{value:v.card??"",onSelect:x=>{switch(x){case"":g({...v,card:void 0});break;case"name":case"subtitle":case"description":case"hidden":g({...v,card:x});break}},placeholder:o("Detail"),options:[{value:"name",label:o("Name"),description:o("Show the column as the name on the card.")},{value:"subtitle",label:o("Subtitle"),description:o("Show the column as the subtitle under the name on the card.")},{value:"description",label:o("Description"),description:o("Show the column as the card description.")},{value:"",label:o("Detail"),description:o("Show the column one of the details on the card.")},{value:"hidden",label:o("Hidden"),description:o("Hide the column on the card.")}],isRequired:!0})}),u},[a,r,n,o]),l=S.useCallback((u,v)=>{typeof v=="object"&&v!==null&&("table"in v&&typeof v.table=="string"?u.table=v.table:u.table=void 0,"list"in v&&typeof v.list=="string"?u.list=v.list:u.list=void 0,"card"in v&&typeof v.card=="string"?u.card=v.card:u.card=void 0)},[]),c=S.useCallback(u=>{const{table:v,list:g,card:x}=u;return{table:v,list:g,card:x}},[]),{openManageItems:f,managedItems:d}=xRe({id:e,title:o("Manage Columns"),description:o("Manage the order, placement, and format of columns."),items:t,keyFn:u=>u.id??u.header,columns:i,loadFn:l,saveFn:c,hideSelection:!0});return{openColumnManagement:f,managedColumns:d}}function wRe({rows:e=10}){return O.jsx(Mn.Table,{gridBreakPoint:"",className:"page-table",children:O.jsx(Mn.Tbody,{children:new Array(e).fill(0).map((t,n)=>O.jsx(Mn.Tr,{children:O.jsx(Mn.Td,{children:O.jsx(K.Skeleton,{height:"27px"})})},n))})})}function kRe(e){const{setPage:t,setPerPage:n}=e,r=S.useCallback((i,l)=>t(l),[t]),a=S.useCallback((i,l)=>n(l),[n]),o=!dl("md");return O.jsx(K.Pagination,{"data-cy":"pagination","data-testid":"pagination",variant:K.PaginationVariant.bottom,itemCount:e.itemCount,page:e.page,perPage:e.perPage,onSetPage:r,onPerPageSelect:a,perPageOptions:e.perPageOptions,style:{...e.style,boxShadow:"none",zIndex:400,paddingTop:o?4:6,paddingBottom:o?4:6}})}function SRe(e){const t=e.size??350,n=S.useRef(null),[r,a]=S.useState("1fr"),o=S.useCallback(l=>{let c=Math.min(e.maxColumns??12,Math.max(Math.floor(l/t),1));c<1&&(c=1),a(()=>new Array(c).fill("1fr").join(" "))},[e.maxColumns,t]);return Mc(n,l=>o(l.contentRect.width)),S.useLayoutEffect(()=>{var l;o(((l=n.current)==null?void 0:l.clientWidth)??0)},[o]),O.jsx("div",{ref:n,style:{display:"grid",gridAutoRows:"1fr",gridTemplateColumns:r,gap:16},children:e.children})}const Koe=cn.small`
436
436
  opacity: 0.7;
437
437
  `,CRe=cn.div`
438
438
  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.2747",
4
+ "version": "2.4.2748",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -1,156 +1,156 @@
1
- import { $ as s } from "./index-ETfDoo6p.js";
2
- import { a1 as o } from "./index-ETfDoo6p.js";
3
- import { B as t } from "./index-ETfDoo6p.js";
4
- import { A as r } from "./index-ETfDoo6p.js";
5
- import { C as l } from "./index-ETfDoo6p.js";
6
- import { aX as i } from "./index-ETfDoo6p.js";
7
- import { aZ as n } from "./index-ETfDoo6p.js";
8
- import { aW as g } from "./index-ETfDoo6p.js";
9
- import { aY as b } from "./index-ETfDoo6p.js";
10
- import { a_ as u } from "./index-ETfDoo6p.js";
11
- import { aV as P } from "./index-ETfDoo6p.js";
12
- import { aR as d } from "./index-ETfDoo6p.js";
13
- import { D as m } from "./index-ETfDoo6p.js";
14
- import { ag as C } from "./index-ETfDoo6p.js";
15
- import { af as c } from "./index-ETfDoo6p.js";
16
- import { E as D } from "./index-ETfDoo6p.js";
17
- import { bp as T } from "./index-ETfDoo6p.js";
18
- import { bn as p } from "./index-ETfDoo6p.js";
19
- import { F as S } from "./index-ETfDoo6p.js";
20
- import { G as h } from "./index-ETfDoo6p.js";
21
- import { bt as F } from "./index-ETfDoo6p.js";
22
- import { ac as v } from "./index-ETfDoo6p.js";
23
- import { H as B } from "./index-ETfDoo6p.js";
24
- import { k as f } from "./index-ETfDoo6p.js";
25
- import { I } from "./index-ETfDoo6p.js";
26
- import { L as A } from "./index-ETfDoo6p.js";
27
- import { a3 as y } from "./index-ETfDoo6p.js";
28
- import { P as N } from "./index-ETfDoo6p.js";
29
- import { r as k } from "./index-ETfDoo6p.js";
30
- import { q as x } from "./index-ETfDoo6p.js";
31
- import { s as w } from "./index-ETfDoo6p.js";
32
- import { t as E } from "./index-ETfDoo6p.js";
33
- import { w as O } from "./index-ETfDoo6p.js";
34
- import { y as L } from "./index-ETfDoo6p.js";
35
- import { z as M } from "./index-ETfDoo6p.js";
36
- import { J as V } from "./index-ETfDoo6p.js";
37
- import { M as R } from "./index-ETfDoo6p.js";
38
- import { N as W } from "./index-ETfDoo6p.js";
39
- import { Q as j } from "./index-ETfDoo6p.js";
40
- import { O as G } from "./index-ETfDoo6p.js";
41
- import { K as z } from "./index-ETfDoo6p.js";
42
- import { U } from "./index-ETfDoo6p.js";
43
- import { X as H } from "./index-ETfDoo6p.js";
44
- import { V as q } from "./index-ETfDoo6p.js";
45
- import { Y as Q } from "./index-ETfDoo6p.js";
46
- import { aQ as J } from "./index-ETfDoo6p.js";
47
- import { Z as K } from "./index-ETfDoo6p.js";
48
- import { _ as X } from "./index-ETfDoo6p.js";
49
- import { a5 as Y } from "./index-ETfDoo6p.js";
50
- import { W as Z } from "./index-ETfDoo6p.js";
51
- import { ao as _ } from "./index-ETfDoo6p.js";
52
- import { ar as $ } from "./index-ETfDoo6p.js";
53
- import { ad as aa } from "./index-ETfDoo6p.js";
54
- import { ae as ea } from "./index-ETfDoo6p.js";
55
- import { ap as sa } from "./index-ETfDoo6p.js";
56
- import { aj as oa } from "./index-ETfDoo6p.js";
57
- import { aq as ta } from "./index-ETfDoo6p.js";
58
- import { ak as ra } from "./index-ETfDoo6p.js";
59
- import { al as la } from "./index-ETfDoo6p.js";
60
- import { am as ia } from "./index-ETfDoo6p.js";
61
- import { as as na } from "./index-ETfDoo6p.js";
62
- import { at as ga } from "./index-ETfDoo6p.js";
63
- import { au as ba } from "./index-ETfDoo6p.js";
64
- import { av as ua } from "./index-ETfDoo6p.js";
65
- import { aw as Pa } from "./index-ETfDoo6p.js";
66
- import { aG as da } from "./index-ETfDoo6p.js";
67
- import { aI as ma } from "./index-ETfDoo6p.js";
68
- import { az as Ca } from "./index-ETfDoo6p.js";
69
- import { aa as ca } from "./index-ETfDoo6p.js";
70
- import { ab as Da } from "./index-ETfDoo6p.js";
71
- import { ax as Ta } from "./index-ETfDoo6p.js";
72
- import { aM as pa } from "./index-ETfDoo6p.js";
73
- import { aN as Sa } from "./index-ETfDoo6p.js";
74
- import { bh as ha } from "./index-ETfDoo6p.js";
75
- import { aO as Fa } from "./index-ETfDoo6p.js";
76
- import { aS as va } from "./index-ETfDoo6p.js";
77
- import { aU as Ba } from "./index-ETfDoo6p.js";
78
- import { bg as fa } from "./index-ETfDoo6p.js";
79
- import { ay as Ia } from "./index-ETfDoo6p.js";
80
- import { bi as Aa } from "./index-ETfDoo6p.js";
81
- import { bk as ya } from "./index-ETfDoo6p.js";
82
- import { bs as Na } from "./index-ETfDoo6p.js";
83
- import { R as ka } from "./index-ETfDoo6p.js";
84
- import { S as xa } from "./index-ETfDoo6p.js";
85
- import { a9 as wa } from "./index-ETfDoo6p.js";
86
- import { aP as Ea } from "./index-ETfDoo6p.js";
87
- import { a$ as Oa } from "./index-ETfDoo6p.js";
88
- import { T as La } from "./index-ETfDoo6p.js";
89
- import { bo as Ma } from "./index-ETfDoo6p.js";
90
- import { bj as Va } from "./index-ETfDoo6p.js";
91
- import { br as Ra } from "./index-ETfDoo6p.js";
92
- import { bq as Wa } from "./index-ETfDoo6p.js";
93
- import { aD as ja } from "./index-ETfDoo6p.js";
94
- import { aE as Ga } from "./index-ETfDoo6p.js";
95
- import { aF as za } from "./index-ETfDoo6p.js";
96
- import { bA as Ua } from "./index-ETfDoo6p.js";
97
- import { bz as Ha } from "./index-ETfDoo6p.js";
98
- import { by as qa } from "./index-ETfDoo6p.js";
99
- import { bx as Qa } from "./index-ETfDoo6p.js";
100
- import { x as Ja } from "./index-ETfDoo6p.js";
101
- import { bC as Ka } from "./index-ETfDoo6p.js";
102
- import { aB as Xa } from "./index-ETfDoo6p.js";
103
- import { g as Ya } from "./index-ETfDoo6p.js";
104
- import { bl as Za } from "./index-ETfDoo6p.js";
105
- import { ai as _a } from "./index-ETfDoo6p.js";
106
- import { bB as $a } from "./index-ETfDoo6p.js";
107
- import { a as ae } from "./index-ETfDoo6p.js";
108
- import { e as ee } from "./index-ETfDoo6p.js";
109
- import { c as se } from "./index-ETfDoo6p.js";
110
- import { f as oe } from "./index-ETfDoo6p.js";
111
- import { p as te } from "./index-ETfDoo6p.js";
112
- import { i as re } from "./index-ETfDoo6p.js";
113
- import { h as le } from "./index-ETfDoo6p.js";
114
- import { b as ie } from "./index-ETfDoo6p.js";
115
- import { aA as ne } from "./index-ETfDoo6p.js";
116
- import { aC as ge } from "./index-ETfDoo6p.js";
117
- import { bm as be } from "./index-ETfDoo6p.js";
118
- import { n as ue } from "./index-ETfDoo6p.js";
119
- import { a0 as Pe } from "./index-ETfDoo6p.js";
120
- import { a2 as de } from "./index-ETfDoo6p.js";
121
- import { aT as me } from "./index-ETfDoo6p.js";
122
- import { b9 as Ce } from "./index-ETfDoo6p.js";
123
- import { b8 as ce } from "./index-ETfDoo6p.js";
124
- import { b4 as De } from "./index-ETfDoo6p.js";
125
- import { b6 as Te } from "./index-ETfDoo6p.js";
126
- import { b7 as pe } from "./index-ETfDoo6p.js";
127
- import { be as Se } from "./index-ETfDoo6p.js";
128
- import { an as he } from "./index-ETfDoo6p.js";
129
- import { bu as Fe } from "./index-ETfDoo6p.js";
130
- import { aK as ve } from "./index-ETfDoo6p.js";
131
- import { bv as Be } from "./index-ETfDoo6p.js";
132
- import { a4 as fe } from "./index-ETfDoo6p.js";
133
- import { o as Ie } from "./index-ETfDoo6p.js";
134
- import { v as Ae } from "./index-ETfDoo6p.js";
135
- import { a7 as ye } from "./index-ETfDoo6p.js";
136
- import { a6 as Ne } from "./index-ETfDoo6p.js";
137
- import { aJ as ke } from "./index-ETfDoo6p.js";
138
- import { aH as xe } from "./index-ETfDoo6p.js";
139
- import { aL as we } from "./index-ETfDoo6p.js";
140
- import { u as Ee } from "./index-ETfDoo6p.js";
141
- import { bf as Oe } from "./index-ETfDoo6p.js";
142
- import { l as Le } from "./index-ETfDoo6p.js";
143
- import { a8 as Me } from "./index-ETfDoo6p.js";
144
- import { bb as Ve } from "./index-ETfDoo6p.js";
145
- import { bc as Re } from "./index-ETfDoo6p.js";
146
- import { bd as We } from "./index-ETfDoo6p.js";
147
- import { ba as je } from "./index-ETfDoo6p.js";
148
- import { bw as Ge } from "./index-ETfDoo6p.js";
149
- import { b2 as ze } from "./index-ETfDoo6p.js";
150
- import { b5 as Ue } from "./index-ETfDoo6p.js";
151
- import { b1 as He } from "./index-ETfDoo6p.js";
152
- import { b3 as qe } from "./index-ETfDoo6p.js";
153
- import { b0 as Qe } from "./index-ETfDoo6p.js";
154
- import { m as Je } from "./index-ETfDoo6p.js";
155
- import { ah as Ke } from "./index-ETfDoo6p.js";
1
+ import { $ as s } from "./index-sxnqWQGw.js";
2
+ import { a1 as o } from "./index-sxnqWQGw.js";
3
+ import { B as t } from "./index-sxnqWQGw.js";
4
+ import { A as r } from "./index-sxnqWQGw.js";
5
+ import { C as l } from "./index-sxnqWQGw.js";
6
+ import { aX as i } from "./index-sxnqWQGw.js";
7
+ import { aZ as n } from "./index-sxnqWQGw.js";
8
+ import { aW as g } from "./index-sxnqWQGw.js";
9
+ import { aY as b } from "./index-sxnqWQGw.js";
10
+ import { a_ as u } from "./index-sxnqWQGw.js";
11
+ import { aV as P } from "./index-sxnqWQGw.js";
12
+ import { aR as d } from "./index-sxnqWQGw.js";
13
+ import { D as m } from "./index-sxnqWQGw.js";
14
+ import { ag as C } from "./index-sxnqWQGw.js";
15
+ import { af as c } from "./index-sxnqWQGw.js";
16
+ import { E as D } from "./index-sxnqWQGw.js";
17
+ import { bp as T } from "./index-sxnqWQGw.js";
18
+ import { bn as p } from "./index-sxnqWQGw.js";
19
+ import { F as S } from "./index-sxnqWQGw.js";
20
+ import { G as h } from "./index-sxnqWQGw.js";
21
+ import { bt as F } from "./index-sxnqWQGw.js";
22
+ import { ac as v } from "./index-sxnqWQGw.js";
23
+ import { H as B } from "./index-sxnqWQGw.js";
24
+ import { k as f } from "./index-sxnqWQGw.js";
25
+ import { I } from "./index-sxnqWQGw.js";
26
+ import { L as A } from "./index-sxnqWQGw.js";
27
+ import { a3 as y } from "./index-sxnqWQGw.js";
28
+ import { P as N } from "./index-sxnqWQGw.js";
29
+ import { r as k } from "./index-sxnqWQGw.js";
30
+ import { q as x } from "./index-sxnqWQGw.js";
31
+ import { s as w } from "./index-sxnqWQGw.js";
32
+ import { t as E } from "./index-sxnqWQGw.js";
33
+ import { w as O } from "./index-sxnqWQGw.js";
34
+ import { y as L } from "./index-sxnqWQGw.js";
35
+ import { z as M } from "./index-sxnqWQGw.js";
36
+ import { J as V } from "./index-sxnqWQGw.js";
37
+ import { M as R } from "./index-sxnqWQGw.js";
38
+ import { N as W } from "./index-sxnqWQGw.js";
39
+ import { Q as j } from "./index-sxnqWQGw.js";
40
+ import { O as G } from "./index-sxnqWQGw.js";
41
+ import { K as z } from "./index-sxnqWQGw.js";
42
+ import { U } from "./index-sxnqWQGw.js";
43
+ import { X as H } from "./index-sxnqWQGw.js";
44
+ import { V as q } from "./index-sxnqWQGw.js";
45
+ import { Y as Q } from "./index-sxnqWQGw.js";
46
+ import { aQ as J } from "./index-sxnqWQGw.js";
47
+ import { Z as K } from "./index-sxnqWQGw.js";
48
+ import { _ as X } from "./index-sxnqWQGw.js";
49
+ import { a5 as Y } from "./index-sxnqWQGw.js";
50
+ import { W as Z } from "./index-sxnqWQGw.js";
51
+ import { ao as _ } from "./index-sxnqWQGw.js";
52
+ import { ar as $ } from "./index-sxnqWQGw.js";
53
+ import { ad as aa } from "./index-sxnqWQGw.js";
54
+ import { ae as ea } from "./index-sxnqWQGw.js";
55
+ import { ap as sa } from "./index-sxnqWQGw.js";
56
+ import { aj as oa } from "./index-sxnqWQGw.js";
57
+ import { aq as ta } from "./index-sxnqWQGw.js";
58
+ import { ak as ra } from "./index-sxnqWQGw.js";
59
+ import { al as la } from "./index-sxnqWQGw.js";
60
+ import { am as ia } from "./index-sxnqWQGw.js";
61
+ import { as as na } from "./index-sxnqWQGw.js";
62
+ import { at as ga } from "./index-sxnqWQGw.js";
63
+ import { au as ba } from "./index-sxnqWQGw.js";
64
+ import { av as ua } from "./index-sxnqWQGw.js";
65
+ import { aw as Pa } from "./index-sxnqWQGw.js";
66
+ import { aG as da } from "./index-sxnqWQGw.js";
67
+ import { aI as ma } from "./index-sxnqWQGw.js";
68
+ import { az as Ca } from "./index-sxnqWQGw.js";
69
+ import { aa as ca } from "./index-sxnqWQGw.js";
70
+ import { ab as Da } from "./index-sxnqWQGw.js";
71
+ import { ax as Ta } from "./index-sxnqWQGw.js";
72
+ import { aM as pa } from "./index-sxnqWQGw.js";
73
+ import { aN as Sa } from "./index-sxnqWQGw.js";
74
+ import { bh as ha } from "./index-sxnqWQGw.js";
75
+ import { aO as Fa } from "./index-sxnqWQGw.js";
76
+ import { aS as va } from "./index-sxnqWQGw.js";
77
+ import { aU as Ba } from "./index-sxnqWQGw.js";
78
+ import { bg as fa } from "./index-sxnqWQGw.js";
79
+ import { ay as Ia } from "./index-sxnqWQGw.js";
80
+ import { bi as Aa } from "./index-sxnqWQGw.js";
81
+ import { bk as ya } from "./index-sxnqWQGw.js";
82
+ import { bs as Na } from "./index-sxnqWQGw.js";
83
+ import { R as ka } from "./index-sxnqWQGw.js";
84
+ import { S as xa } from "./index-sxnqWQGw.js";
85
+ import { a9 as wa } from "./index-sxnqWQGw.js";
86
+ import { aP as Ea } from "./index-sxnqWQGw.js";
87
+ import { a$ as Oa } from "./index-sxnqWQGw.js";
88
+ import { T as La } from "./index-sxnqWQGw.js";
89
+ import { bo as Ma } from "./index-sxnqWQGw.js";
90
+ import { bj as Va } from "./index-sxnqWQGw.js";
91
+ import { br as Ra } from "./index-sxnqWQGw.js";
92
+ import { bq as Wa } from "./index-sxnqWQGw.js";
93
+ import { aD as ja } from "./index-sxnqWQGw.js";
94
+ import { aE as Ga } from "./index-sxnqWQGw.js";
95
+ import { aF as za } from "./index-sxnqWQGw.js";
96
+ import { bA as Ua } from "./index-sxnqWQGw.js";
97
+ import { bz as Ha } from "./index-sxnqWQGw.js";
98
+ import { by as qa } from "./index-sxnqWQGw.js";
99
+ import { bx as Qa } from "./index-sxnqWQGw.js";
100
+ import { x as Ja } from "./index-sxnqWQGw.js";
101
+ import { bC as Ka } from "./index-sxnqWQGw.js";
102
+ import { aB as Xa } from "./index-sxnqWQGw.js";
103
+ import { g as Ya } from "./index-sxnqWQGw.js";
104
+ import { bl as Za } from "./index-sxnqWQGw.js";
105
+ import { ai as _a } from "./index-sxnqWQGw.js";
106
+ import { bB as $a } from "./index-sxnqWQGw.js";
107
+ import { a as ae } from "./index-sxnqWQGw.js";
108
+ import { e as ee } from "./index-sxnqWQGw.js";
109
+ import { c as se } from "./index-sxnqWQGw.js";
110
+ import { f as oe } from "./index-sxnqWQGw.js";
111
+ import { p as te } from "./index-sxnqWQGw.js";
112
+ import { i as re } from "./index-sxnqWQGw.js";
113
+ import { h as le } from "./index-sxnqWQGw.js";
114
+ import { b as ie } from "./index-sxnqWQGw.js";
115
+ import { aA as ne } from "./index-sxnqWQGw.js";
116
+ import { aC as ge } from "./index-sxnqWQGw.js";
117
+ import { bm as be } from "./index-sxnqWQGw.js";
118
+ import { n as ue } from "./index-sxnqWQGw.js";
119
+ import { a0 as Pe } from "./index-sxnqWQGw.js";
120
+ import { a2 as de } from "./index-sxnqWQGw.js";
121
+ import { aT as me } from "./index-sxnqWQGw.js";
122
+ import { b9 as Ce } from "./index-sxnqWQGw.js";
123
+ import { b8 as ce } from "./index-sxnqWQGw.js";
124
+ import { b4 as De } from "./index-sxnqWQGw.js";
125
+ import { b6 as Te } from "./index-sxnqWQGw.js";
126
+ import { b7 as pe } from "./index-sxnqWQGw.js";
127
+ import { be as Se } from "./index-sxnqWQGw.js";
128
+ import { an as he } from "./index-sxnqWQGw.js";
129
+ import { bu as Fe } from "./index-sxnqWQGw.js";
130
+ import { aK as ve } from "./index-sxnqWQGw.js";
131
+ import { bv as Be } from "./index-sxnqWQGw.js";
132
+ import { a4 as fe } from "./index-sxnqWQGw.js";
133
+ import { o as Ie } from "./index-sxnqWQGw.js";
134
+ import { v as Ae } from "./index-sxnqWQGw.js";
135
+ import { a7 as ye } from "./index-sxnqWQGw.js";
136
+ import { a6 as Ne } from "./index-sxnqWQGw.js";
137
+ import { aJ as ke } from "./index-sxnqWQGw.js";
138
+ import { aH as xe } from "./index-sxnqWQGw.js";
139
+ import { aL as we } from "./index-sxnqWQGw.js";
140
+ import { u as Ee } from "./index-sxnqWQGw.js";
141
+ import { bf as Oe } from "./index-sxnqWQGw.js";
142
+ import { l as Le } from "./index-sxnqWQGw.js";
143
+ import { a8 as Me } from "./index-sxnqWQGw.js";
144
+ import { bb as Ve } from "./index-sxnqWQGw.js";
145
+ import { bc as Re } from "./index-sxnqWQGw.js";
146
+ import { bd as We } from "./index-sxnqWQGw.js";
147
+ import { ba as je } from "./index-sxnqWQGw.js";
148
+ import { bw as Ge } from "./index-sxnqWQGw.js";
149
+ import { b2 as ze } from "./index-sxnqWQGw.js";
150
+ import { b5 as Ue } from "./index-sxnqWQGw.js";
151
+ import { b1 as He } from "./index-sxnqWQGw.js";
152
+ import { b3 as qe } from "./index-sxnqWQGw.js";
153
+ import { b0 as Qe } from "./index-sxnqWQGw.js";
154
+ import { m as Je } from "./index-sxnqWQGw.js";
155
+ import { ah as Ke } from "./index-sxnqWQGw.js";
156
156
  export { s as BulkActionDialog, o as BulkConfirmationDialog, t as BulkSelector, r as BytesCell, l as Collapse, i as ColumnCardOption, n as ColumnDashboardOption, g as ColumnListOption, b as ColumnModalOption, u as ColumnPriority, P as ColumnTableOption, d as ColumnsDiv, m as CopyCell, C as DataEditorActions, c as DataEditorButtons, D as DateCell, T as DateRange, p as DateRangeFilterPresets, S as DateTimeCell, h as ElapsedTimeCell, F as FrameworkTranslationsProvider, v as GenericForm, B as Help, f as LabelColorE, I as LabelsCell, A as LoadingPage, y as MultiSelectDialog, N as PFColorE, k as PageActionSelection, x as PageActionType, w as PageActions, E as PageAlertToasterContext, O as PageAlertToasterProvider, L as PageApp, M as PageBody, V as PageChartContainer, R as PageDashboard, W as PageDashboardCard, j as PageDashboardChart, G as PageDashboardChartVariantE, z as PageDashboardContext, U as PageDashboardCount, H as PageDashboardDonutCard, q as PageDashboardGettingStarted, Q as PageDetail, J as PageDetailDiv, K as PageDetails, X as PageDetailsFromColumns, Y as PageDialogProvider, Z as PageDonutChart, _ as PageForm, $ as PageFormCancelButton, aa as PageFormCheckbox, ea as PageFormDataEditor, sa as PageFormGrid, oa as PageFormSelect, ta as PageFormSubmitButton, ra as PageFormSwitch, la as PageFormTextArea, ia as PageFormTextInput, na as PageFramework, ga as PageHeader, ba as PageLayout, ua as PageMasthead, Pa as PageMastheadToggle, da as PageNavSideBarContext, ma as PageNavSideBarProvider, Ca as PageNavigation, ca as PageNotFound, Da as PageNotImplemented, Ta as PageNotificationsIcon, pa as PageSettingsContext, Sa as PageSettingsProvider, ha as PageTab, Fa as PageTable, va as PageTableCard, Ba as PageTableCards, fa as PageTabs, Ia as PageThemeSwitcher, Aa as PageToolbar, ya as PageToolbarFilters, Na as PageWizard, ka as RunningIcon, xa as Scrollable, wa as SelectDialog, Ea as Small, Oa as TableColumnCell, La as TextCell, Ma as ToolbarDateRangeFilter, Va as ToolbarFilterType, Ra as ToolbarSingleTextFilter, Wa as ToolbarTextMultiFilter, ja as addNavigationItem, Ga as addNavigationItemAfter, za as addNavigationItemBefore, Ua as buildQueryString, Ha as compareNumbers, qa as compareStrings, Qa as compareUnknowns, Ja as errorToAlertProps, Ka as filtersToSearchObj, Xa as findNavigationItemById, Ya as getPatternflyColor, Za as multiSelectBrowseAdapter, _a as objectToString, $a as paramsToSearchObj, ae as pfDanger, ee as pfDisabled, se as pfInfo, oe as pfLink, te as pfSuccess, re as pfTopologyInfo, le as pfUnreachable, ie as pfWarning, ne as removeLeadingSlash, ge as removeNavigationItemById, be as singleSelectBrowseAdapter, ue as useBreakpoint, Pe as useBulkActionDialog, de as useBulkConfirmation, me as useColumnsToTableCardFn, Ce as useColumnsWithoutExpandedRow, ce as useColumnsWithoutSort, De as useDashboardColumns, Te as useDescriptionColumns, pe as useExpandedColumns, Se as useFiltered, he as useFormErrors, Fe as useFrameworkTranslations, ve as useGetPageUrl, Be as useInMemoryView, fe as useIsPageDialog, Ie as useOrientation, Ae as usePageAlertToaster, ye as usePageDialog, Ne as usePageDialogs, ke as usePageNavBarClick, xe as usePageNavSideBar, we as usePageNavigate, Ee as usePageSettings, Oe as usePaged, Le as useScrollableState, Me as useSelectDialog, Ve as useSelected, Re as useSelectedInMemory, We as useSorted, je as useTableItems, Ge as useView, ze as useVisibleCardColumns, Ue as useVisibleColumns, He as useVisibleListColumns, qe as useVisibleModalColumns, Qe as useVisibleTableColumns, Je as useWindowSize, Ke as valueToObject };