@ansible/ansible-ui-framework 2.4.467 → 2.4.468

Sign up to get free protection for your applications and to get access to all the features.
package/index.js CHANGED
@@ -35006,7 +35006,7 @@ function o5e(e) {
35006
35006
  i0,
35007
35007
  {
35008
35008
  clearAllFilters: b,
35009
- className: "dark-2 page-table-toolbar",
35009
+ className: "page-table-toolbar",
35010
35010
  style: {
35011
35011
  paddingBottom: x ? void 0 : 8,
35012
35012
  paddingTop: x ? void 0 : 8,
@@ -43676,7 +43676,7 @@ function XAe(e) {
43676
43676
  $n,
43677
43677
  {
43678
43678
  variant: Lb.light,
43679
- className: "border-top border-bottom dark-3",
43679
+ className: "border-top border-bottom dark-2",
43680
43680
  style: {
43681
43681
  paddingTop: s ? 16 : 12,
43682
43682
  paddingBottom: s ? 16 : 12
@@ -43752,7 +43752,8 @@ function VCe(e) {
43752
43752
  display: "flex",
43753
43753
  flexDirection: "column",
43754
43754
  height: "100%",
43755
- maxHeight: "100%"
43755
+ maxHeight: "100%",
43756
+ backgroundColor: "var(--pf-global--BackgroundColor--100)"
43756
43757
  },
43757
43758
  children: e.children
43758
43759
  }
package/index.umd.cjs CHANGED
@@ -377,7 +377,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
377
377
  row-gap: 16px;
378
378
  justify-content: end;
379
379
  }
380
- `;function Rk(e){const{itemCount:t,page:n,perPage:r,setPage:i,setPerPage:a,toolbarFilters:o,selectedItems:l,filterState:s,setFilterState:u,openColumnModal:c,bottomBorder:f,sort:d,setSort:h,sortDirection:g,setSortDirection:p,sortOptions:y,clearAllFilters:_}=e,b=x.useCallback(()=>{_?_():u&&u({})},[u,_]),S=un("md"),{viewType:O,setViewType:w}=e;let{toolbarActions:A}=e;A=A??[];const T=x.useCallback((D,I)=>i?i(I):null,[i]),k=x.useCallback((D,I)=>a?a(I):null,[a]),j=o!==void 0,N=A!==void 0&&A.length>0,M=e.showSelect===!0||l!==void 0&&A&&A.find(D=>"selection"in D&&D.selection===ot.Multiple);return M||j||N?t===void 0?v.jsx(C.Toolbar,{className:"border-bottom dark-2",style:{paddingBottom:S?void 0:8,paddingTop:S?void 0:8,zIndex:400},children:v.jsx(Bk,{children:v.jsx(C.ToolbarItem,{style:{width:"100%"},children:v.jsx(C.Skeleton,{height:"36px"})})})}):v.jsx(C.Toolbar,{clearAllFilters:b,className:"dark-2 page-table-toolbar",style:{paddingBottom:S?void 0:8,paddingTop:S?void 0:8,borderBottom:f?"thin solid var(--pf-global--BorderColor--100)":void 0},inset:{default:"insetMd",sm:"insetMd",md:"insetMd",lg:"insetMd",xl:"insetLg","2xl":"insetLg"},children:v.jsxs(Bk,{children:[M&&v.jsx(C.ToolbarGroup,{children:v.jsx(C.ToolbarItem,{variant:"bulk-select",children:v.jsx(ok,{...e})})}),s&&u&&v.jsx(Fk,{toolbarFilters:o,filterState:s,setFilterState:u}),v.jsx(C.ToolbarGroup,{variant:"button-group",children:v.jsx(Va,{actions:A,selectedItems:l,wrapper:C.ToolbarItem})}),v.jsxs(qge,{children:[v.jsx(zge,{sort:d,setSort:h,sortDirection:g,setSortDirection:p,sortOptions:y}),O&&w&&v.jsx(Hge,{disableTableView:e.disableTableView,disableListView:e.disableListView,disableCardView:e.disableCardView,viewType:O,setViewType:w,openColumnModal:c}),!e.disablePagination&&v.jsx(C.ToolbarItem,{visibility:{default:"hidden","2xl":"visible"},style:{marginLeft:24,alignSelf:"center"},children:v.jsx(C.Pagination,{variant:C.PaginationVariant.top,isCompact:!0,itemCount:t,perPage:r,page:n,onSetPage:T,onPerPageSelect:k,style:{marginTop:-8,marginBottom:-8}})})]})]})}):v.jsx(x.Fragment,{})}function Gge(e){const{t}=yt(),n=t("Something went wrong"),r=t("Please refresh the page by using the button below."),i=t("Refresh"),{titleProp:a,message:o}=e;return v.jsxs(C.EmptyState,{variant:C.EmptyStateVariant.small,style:{paddingTop:48},children:[v.jsx(C.EmptyStateIcon,{icon:Ce.ExclamationCircleIcon,color:"var(--pf-global--danger-color--100)"}),v.jsx(C.Title,{headingLevel:"h2",size:"lg",children:a||n}),v.jsx(C.EmptyStateBody,{children:o}),v.jsx(C.EmptyStateBody,{children:r}),v.jsx(C.Button,{variant:"primary",onClick:()=>window.location.reload(),children:i})]})}function Yge(e){const{title:t,description:n,icon:r,button:i,footNote:a,image:o,variant:l,style:s}=e;return v.jsxs(C.EmptyState,{variant:l||C.EmptyStateVariant.full,style:s,children:[r&&v.jsx(C.EmptyStateIcon,{icon:r}),v.jsx(C.Title,{headingLevel:"h4",size:"lg",children:t}),v.jsx(C.EmptyStateBody,{children:n}),i&&v.jsx(C.EmptyStatePrimary,{children:i}),o&&v.jsxs(v.Fragment,{children:[" ",v.jsx("br",{})," ",v.jsx(C.EmptyStateBody,{children:o})]}),a&&v.jsx(C.EmptyStateBody,{children:a})]})}function Kge(e){const{button:t,description:n,title:r,variant:i}=e;return v.jsx(Yge,{icon:t?Ce.PlusCircleIcon:Ce.CubesIcon,title:r,description:n,button:t,variant:i,style:{paddingTop:"48px"}})}function Mv(e,t,n){var r,i,a,o,l;t==null&&(t=100);function s(){var c=Date.now()-o;c<t&&c>=0?r=setTimeout(s,t-c):(r=null,n||(l=e.apply(a,i),a=i=null))}var u=function(){a=this,i=arguments,o=Date.now();var c=n&&!r;return r||(r=setTimeout(s,t)),c&&(l=e.apply(a,i),a=i=null),l};return u.clear=function(){r&&(clearTimeout(r),r=null)},u.flush=function(){r&&(l=e.apply(a,i),a=i=null,clearTimeout(r),r=null)},u}Mv.debounce=Mv;var Zge=Mv;const Xge=Ae(Zge);function Jge(e,t,n){const{selectedItems:r,selectItem:i,unselectItem:a,isSelected:o,selectItems:l,unselectAll:s,allSelected:u}=Dv(e,t),{sorted:c,sort:f,setSort:d}=Iv(e),{filtered:h,setFilterFn:g}=$v(c,t),{searched:p,search:y,setSearch:_,setSearchFn:b}=Qge(h,t,n==null?void 0:n.search),{paged:S,page:O,setPage:w,perPage:A,setPerPage:T}=Is(p),k=x.useCallback(()=>l(S),[S,l]),j=x.useCallback(()=>l(p),[p,l]);return x.useMemo(()=>({allSelected:u,filtered:h,isSelected:o,page:O,paged:S,perPage:A,search:y,searched:p,selectAll:j,selectItem:i,selectPage:k,selectedItems:r,setFilterFn:g,setPage:w,setPerPage:T,setSearch:_,setSearchFn:b,setSort:d,sort:f,sorted:c,unselectAll:s,unselectItem:a}),[u,h,o,O,S,A,y,p,j,i,k,r,g,w,T,_,b,d,f,c,s,a])}function Dv(e,t,n){const[r,i]=x.useState(()=>n?n.reduce((g,p)=>(g[t(p)]=p,g),{}):{});x.useEffect(()=>{i(g=>{let p=!1;return e.forEach(y=>{const _=t(y);g[_]&&g[_]!==y&&(p=!0,g[_]=y)}),p?{...g}:g})},[e,t]);const a=x.useCallback(g=>{i(p=>{const y=t(g);return p[y]!==g&&(p={...p},p[y]=g),p})},[t]),o=x.useCallback(g=>{i(p=>{const y=t(g);return p[y]&&(p={...p},delete p[y]),p})},[t]),l=x.useCallback(g=>{const p=t(g);return r[p]!==void 0},[t,r]),s=x.useCallback(g=>{i(p=>{p={...p};for(const y of g){const _=t(y);p[_]=y}return p})},[t]),u=x.useCallback(()=>s(e),[e,s]),c=x.useCallback(g=>{for(const p of g)o(p)},[o]),f=x.useCallback(()=>{i(g=>Object.keys(g).length>0?{}:g)},[]),d=x.useMemo(()=>Object.values(r),[r]),h=x.useMemo(()=>d.length===e.length,[e.length,d.length]);return x.useMemo(()=>({selectedItems:d,selectItem:a,unselectItem:o,isSelected:l,selectItems:s,selectAll:u,unselectAll:f,allSelected:h,keyFn:t,unselectItems:c}),[h,l,t,u,a,s,d,f,o,c])}function Wk(e,t){const[n,r]=x.useState({});x.useEffect(()=>{r(h=>{let g=!1;const p=e?e.reduce((b,S)=>{const O=t(S);return b[O]=S,h[O]&&h[O]!==S&&(g=!0,h[O]=S),b},{}):{},y={};for(const b in h)p[b]||(y[b]=!0);const _=Object.keys(y);if(_.length){g=!0;for(const b of _)delete h[b]}return g?{...h}:h})},[e,t]);const i=x.useCallback(h=>{r(g=>{const p=t(h);return g[p]!==h&&(g={...g},g[p]=h),g})},[t]),a=x.useCallback(h=>{r(g=>{const p=t(h);return g[p]&&(g={...g},delete g[p]),g})},[t]),o=x.useCallback(h=>{for(const g of h)a(g)},[a]),l=x.useCallback(h=>{const g=t(h);return n[g]!==void 0},[t,n]),s=x.useCallback(h=>{r(g=>{g={...g};for(const p of h){const y=t(p);g[y]=p}return g})},[t]),u=x.useCallback(()=>{s(e??[])},[e,s]),c=x.useCallback(()=>{r(h=>Object.keys(h).length>0?{}:h)},[]),f=x.useMemo(()=>Object.values(n),[n]),d=x.useMemo(()=>f.length===(e==null?void 0:e.length),[e,f.length]);return x.useMemo(()=>({selectedItems:f,selectItem:i,unselectItem:a,isSelected:l,selectItems:s,selectAll:u,unselectAll:c,allSelected:d,keyFn:t,unselectItems:o}),[d,l,t,u,i,s,f,c,a,o])}function Iv(e){const[t,n]=x.useState(),{direction:r,sortFn:i}=t??{},a=x.useMemo(()=>e?i?r==="asc"?[...e.sort(i)]:[...e.sort(i).reverse()]:e:[],[r,e,i]);return x.useMemo(()=>({sorted:a,sort:t,setSort:n}),[t,a])}function $v(e,t){const n=x.useRef({map:{}}),[r,i]=x.useState(),a=x.useCallback(u=>i(()=>u),[]),[o,l]=x.useState([]);x.useEffect(()=>{n.current.map={}},[r]);const s=x.useCallback(u=>{const c=t(u);let f=n.current.map[c];return f?f.item!==u&&(f.item=u,f.passes=r?r(u):!0):(f={item:u,passes:r?r(u):!0},n.current.map[c]=f),f.passes},[r,t]);return x.useEffect(()=>{l(r?e.filter(s):e)},[e,r,s]),x.useMemo(function(){return{filtered:o,setFilterFn:a}},[o,a])}function Qge(e,t,n){const r=x.useRef({map:{}}),[i,a]=x.useState(),o=x.useCallback(h=>a(()=>h),[]),[l,s]=x.useState([]),[u,c]=x.useState(n??""),f=x.useCallback(Xge(h=>c(h),200),[]);x.useEffect(()=>{r.current.map={}},[u,i]);const d=x.useCallback(h=>{const g=t(h);let p=r.current.map[g];return p?p.item!==h&&(p.item=h,p.score=i?i(h,u):0):(p={item:h,score:i?i(h,u):0},r.current.map[g]=p),p},[t,i,u]);return x.useEffect(()=>{s(i&&u?e.map(d).filter(h=>h.score<.5).sort((h,g)=>h.score-g.score).map(h=>h.item):e)},[u,e,i,d]),x.useMemo(function(){return{searched:l,search:u,setSearch:f,setSearchFn:o}},[l,u,f,o])}function Is(e){const[t,n]=x.useState([]),[r,i]=x.useState(1),[a,o]=x.useState(10);return x.useEffect(()=>{n(l=>{const s=e.slice((r-1)*a,r*a);if(l.length!==s.length)return s;let u=0;for(const c of s)if(l[u++]!==c)return s;return l})},[r,a,e]),x.useEffect(()=>{r>Math.ceil(e.length/a)&&i(1)},[r,a,e.length]),x.useMemo(()=>({paged:t,page:r,setPage:i,perPage:a,setPerPage:o}),[r,t,a])}const Jwe="",Lv={button:"pf-c-button",modifiers:{hidden:"pf-m-hidden",hiddenOnSm:"pf-m-hidden-on-sm",visibleOnSm:"pf-m-visible-on-sm",hiddenOnMd:"pf-m-hidden-on-md",visibleOnMd:"pf-m-visible-on-md",hiddenOnLg:"pf-m-hidden-on-lg",visibleOnLg:"pf-m-visible-on-lg",hiddenOnXl:"pf-m-hidden-on-xl",visibleOnXl:"pf-m-visible-on-xl",hiddenOn_2xl:"pf-m-hidden-on-2xl",visibleOn_2xl:"pf-m-visible-on-2xl",fixed:"pf-m-fixed",stickyHeader:"pf-m-sticky-header",nestedColumnHeader:"pf-m-nested-column-header",borderRow:"pf-m-border-row",striped:"pf-m-striped",expandable:"pf-m-expandable",stripedEven:"pf-m-striped-even",ghostRow:"pf-m-ghost-row",center:"pf-m-center",help:"pf-m-help",favorite:"pf-m-favorite",borderRight:"pf-m-border-right",borderLeft:"pf-m-border-left",truncate:"pf-m-truncate",wrap:"pf-m-wrap",nowrap:"pf-m-nowrap",fitContent:"pf-m-fit-content",breakWord:"pf-m-break-word",noBorderRows:"pf-m-no-border-rows",expanded:"pf-m-expanded",hoverable:"pf-m-hoverable",selected:"pf-m-selected",firstCellOffsetReset:"pf-m-first-cell-offset-reset",dragOver:"pf-m-drag-over",favorited:"pf-m-favorited",noPadding:"pf-m-no-padding",compact:"pf-m-compact",width_10:"pf-m-width-10",width_15:"pf-m-width-15",width_20:"pf-m-width-20",width_25:"pf-m-width-25",width_30:"pf-m-width-30",width_35:"pf-m-width-35",width_40:"pf-m-width-40",width_45:"pf-m-width-45",width_50:"pf-m-width-50",width_60:"pf-m-width-60",width_70:"pf-m-width-70",width_80:"pf-m-width-80",width_90:"pf-m-width-90",width_100:"pf-m-width-100"},table:"pf-c-table",tableAction:"pf-c-table__action",tableButton:"pf-c-table__button",tableButtonContent:"pf-c-table__button-content",tableCheck:"pf-c-table__check",tableColumnHelp:"pf-c-table__column-help",tableColumnHelpAction:"pf-c-table__column-help-action",tableCompoundExpansionToggle:"pf-c-table__compound-expansion-toggle",tableControlRow:"pf-c-table__control-row",tableDraggable:"pf-c-table__draggable",tableExpandableRow:"pf-c-table__expandable-row",tableExpandableRowContent:"pf-c-table__expandable-row-content",tableFavorite:"pf-c-table__favorite",tableIcon:"pf-c-table__icon",tableIconInline:"pf-c-table__icon-inline",tableInlineEditAction:"pf-c-table__inline-edit-action",tableSort:"pf-c-table__sort",tableSortIndicator:"pf-c-table__sort-indicator",tableSubhead:"pf-c-table__subhead",tableText:"pf-c-table__text",tableToggle:"pf-c-table__toggle",tableToggleIcon:"pf-c-table__toggle-icon",themeDark:"pf-theme-dark"};function epe(e){const{t}=yt(),{columns:n,keyFn:r,items:i,setItems:a,isSelected:o,selectItem:l,unselectItem:s,allSelected:u,selectAll:c,unselectAll:f,hideColumnHeaders:d,isSelectableWithCheckbox:h}=e,[g,p]=x.useState(null),[y,_]=x.useState(null),[b,S]=x.useState(!1),O=x.useRef(null),w=I=>{if(O.current){const W=O.current.getBoundingClientRect();return I.clientX>W.x&&I.clientX<W.x+W.width&&I.clientY>W.y&&I.clientY<W.y+W.height}return!1},A=I=>{w(I)||T()},T=()=>{O.current&&Array.from(O.current.children).forEach(I=>{I.classList.remove(Lv.modifiers.ghostRow),I.setAttribute("aria-pressed","false")}),_(null),p(null),S(!1)},k=I=>{I.preventDefault();const W=I.target.closest("tr");if(!W||!(O.current&&O.current.contains(W))||W.id===y)return null;{const Z=W.id,ne=Array.from(O.current.children).findIndex(re=>re.id===Z);if(ne!==g&&y){const re=j([...i],y,ne);a(re)}}return null},j=(I,W,Z)=>{const ne=I.findIndex(J=>r(J)===W);if(ne===Z)return I;const re=I.splice(ne,1);return I.splice(Z,0,re[0]),I},N=I=>{w(I)||p(null)},M=I=>{const W=I.target;W.classList.remove(Lv.modifiers.ghostRow),W.setAttribute("aria-pressed","false"),_(null),p(null),S(!1)},E=I=>{if(O.current){I.dataTransfer.effectAllowed="move";const W=I.currentTarget.id,Z=Array.from(O.current.children).findIndex(ne=>ne.id===I.currentTarget.id);I.currentTarget.setAttribute("aria-pressed","true"),_(W),p(Z)}},D=x.useCallback(I=>{const W=i.findIndex(ne=>r(ne)===r(I)),Z=[...i];Z[W]=I,a(Z)},[i,a,r]);return v.jsxs(je.TableComposable,{"aria-label":t("Table with draggable rows"),className:b?Lv.modifiers.dragOver:"",variant:"compact",gridBreakPoint:"",children:[!d&&v.jsx(je.Thead,{children:v.jsxs(je.Tr,{children:[v.jsx(je.Th,{}),h&&v.jsx(je.Th,{select:{onSelect:(I,W)=>{W?c():f()},isSelected:u}}),n.map((I,W)=>v.jsx(je.Th,{children:I.header},W))]})}),v.jsx(je.Tbody,{ref:O,onDragOver:k,onDragLeave:N,children:i.map((I,W)=>{const Z=r(I);return v.jsxs(je.Tr,{id:Z.toString(),draggable:!0,onDrop:A,onDragEnd:M,onDragStart:E,children:[v.jsx(je.Td,{draggableRow:{id:`draggable-row-${Z.toString()}`}}),h&&v.jsx(je.Td,{select:{rowIndex:W,variant:"checkbox",onSelect:(ne,re)=>{re?l(I):s(I)},isSelected:o(I)}}),n.map(ne=>v.jsx(je.Td,{children:ne.cell(I,D)},ne.header))]},Z)})})]})}function tpe(e){const[t,n]=yr(),[r]=x.useState(()=>e.keyFn),[i]=x.useState(()=>e.saveFn),[a]=x.useState(()=>e.loadFn),[o,l]=x.useState(()=>{try{const d=localStorage.getItem(e.id);if(typeof d=="string"){const h=JSON.parse(d);if(Array.isArray(h)&&h.every(g=>typeof g=="object")&&h.every(g=>"key"in g&&"enabled"in g))return h}}catch{}}),s=x.useMemo(()=>o?e.items.map(d=>{if(a){const h=o.find(g=>g.key===r(d));h&&h.state&&a(d,h.state)}return d}).sort((d,h)=>{const g=o.findIndex(y=>y.key===r(d)),p=o.findIndex(y=>y.key===r(h));return g===-1&&p===-1?0:g===-1?1:p===-1?-1:g-p}):e.items,[o,r,a,e.items]),u=x.useMemo(()=>o?s.filter(d=>{const h=o.find(g=>g.key===r(d));return h?h.enabled:!0}):s,[s,o,r]),c=x.useCallback((d,h)=>{const g=d.map(p=>({key:r(p),enabled:h.includes(p),state:i?i(p):void 0}));l(g),localStorage.setItem(e.id,JSON.stringify(g))},[r,e.id,i]);return{openManageItems:()=>n(v.jsx(npe,{...e,keyFn:r,items:s,defaultSelectedItems:u,onApplyChanges:c})),managedItems:u}}function npe(e){const{t}=yt(),{title:n,description:r,columns:i,onApplyChanges:a}=e,[o]=x.useState(()=>e.keyFn),[l,s]=yr(),u=()=>s(void 0),[c,f]=x.useState(()=>e.items),{selectedItems:d,isSelected:h,selectItem:g,unselectItem:p,allSelected:y,selectAll:_,unselectAll:b}=Dv(c,o,e.defaultSelectedItems),S=()=>{a(c,d),s(void 0)};return v.jsxs(C.Modal,{title:n,"aria-label":n,description:v.jsx("div",{style:{marginBottom:16},children:r}),variant:e.variant??C.ModalVariant.medium,isOpen:!0,onClose:u,actions:[v.jsx(C.Button,{variant:"primary",onClick:S,children:t`Apply`},"apply"),v.jsx(C.Button,{variant:"link",onClick:u,children:t`Cancel`},"cancel")],hasNoBodyWrapper:!0,children:[v.jsx(C.Divider,{}),v.jsx(C.ModalBoxBody,{style:{padding:0},children:v.jsx(epe,{keyFn:o,items:c,setItems:f,columns:i,isSelected:h,selectItem:g,unselectItem:p,allSelected:y,selectAll:_,unselectAll:b,hideColumnHeaders:e.hideColumnHeaders,isSelectableWithCheckbox:e.hideSelection!==!0})}),v.jsx(C.Divider,{})]})}function rpe(e,t,n,r,i){const{t:a}=yt(),o=x.useMemo(()=>{const f=[{header:a("Column Name"),cell:d=>d.header}];return n||f.push({header:a("Table View"),cell:(d,h)=>v.jsx(zi,{value:d.table??"",onSelect:g=>{switch(g){case"":h({...d,table:void 0});break;case Ri.Description:case Ri.Expanded:case Ri.Hidden:h({...d,table:g});break}},placeholder:a("Column"),options:[{value:"",label:a("Column"),description:a("Show the column in the table.")},{value:Ri.Description,label:a("Description"),description:a("Show the column when the item is expanded as a full width description.")},{value:Ri.Expanded,label:a("Expanded"),description:a("Show the column when the item is expanded as a detail.")},{value:Ri.Hidden,label:a("Hidden"),description:a("Hide the column.")}]})}),r||f.push({header:a("List View"),cell:(d,h)=>v.jsx(zi,{value:d.list??"",onSelect:g=>{switch(g){case"":h({...d,list:void 0});break;case"name":case"subtitle":case"description":case"primary":case"secondary":case"hidden":h({...d,list:g});break}},options:[{value:"name",label:a("Name"),description:a("Show the column as the name of the list item.")},{value:"subtitle",label:a("Subtitle"),description:a("Show the column as the subtitle under the name on the list.")},{value:"description",label:a("Description"),description:a("Show the column as the list item description.")},{value:"",label:a("Left side"),description:a("Show the column on the left side of the list.")},{value:"primary",label:a("Left side"),description:a("Show the column on the left side of the list.")},{value:"secondary",label:a("Right side"),description:a("Show the column on the right side of the list.")},{value:"hidden",label:a("Hidden"),description:a("Hide the column on the list.")}],placeholder:a("Left side")})}),i||f.push({header:a("Card View"),cell:(d,h)=>v.jsx(zi,{value:d.card??"",onSelect:g=>{switch(g){case"":h({...d,card:void 0});break;case"name":case"subtitle":case"description":case"hidden":h({...d,card:g});break}},placeholder:a("Detail"),options:[{value:"name",label:a("Name"),description:a("Show the column as the name on the card.")},{value:"subtitle",label:a("Subtitle"),description:a("Show the column as the subtitle under the name on the card.")},{value:"description",label:a("Description"),description:a("Show the column as the card description.")},{value:"",label:a("Detail"),description:a("Show the column one of the details on the card.")},{value:"hidden",label:a("Hidden"),description:a("Hide the column on the card.")}]})}),f},[i,r,n,a]),l=x.useCallback((f,d)=>{typeof d=="object"&&d!==null&&("table"in d&&typeof d.table=="string"?f.table=d.table:f.table=void 0,"list"in d&&typeof d.list=="string"?f.list=d.list:f.list=void 0,"card"in d&&typeof d.card=="string"?f.card=d.card:f.card=void 0)},[]),s=x.useCallback(f=>{const{table:d,list:h,card:g}=f;return{table:d,list:h,card:g}},[]),{openManageItems:u,managedItems:c}=tpe({id:e,title:a("Manage Columns"),description:a("Manage the order, placement, and format of columns."),items:t,keyFn:f=>f.id??f.header,columns:o,loadFn:l,saveFn:s,hideSelection:!0});return{openColumnManagement:u,managedColumns:c}}function ipe(e){const{setPage:t,setPerPage:n}=e,r=x.useCallback((o,l)=>t(l),[t]),i=x.useCallback((o,l)=>n(l),[n]),a=!un("md");return v.jsx(C.Pagination,{variant:C.PaginationVariant.bottom,itemCount:e.itemCount,page:e.page,perPage:e.perPage,onSetPage:r,onPerPageSelect:i,style:{...e.style,boxShadow:"none",zIndex:400,paddingTop:a?4:6,paddingBottom:a?4:6,borderTop:e.topBorder?"thin solid var(--pf-global--BorderColor--100)":void 0},className:"dark-2"})}const Qwe="";function ape(e){const t=e.size??350,n=x.useRef(null),[r,i]=x.useState("1fr"),a=x.useCallback(l=>{let s=Math.min(e.maxColumns??12,Math.max(Math.floor(l/t),1));s<1&&(s=1),i(()=>new Array(s).fill("1fr").join(" "))},[e.maxColumns,t]);ro(n,l=>a(l.contentRect.width)),x.useLayoutEffect(()=>{var l;a(((l=n.current)==null?void 0:l.clientWidth)??0)},[a]);const o=16;return v.jsx("div",{ref:n,style:{display:"grid",gridAutoRows:"1fr",gridTemplateColumns:r,gap:o},children:e.children})}const ope=De.small`
380
+ `;function Rk(e){const{itemCount:t,page:n,perPage:r,setPage:i,setPerPage:a,toolbarFilters:o,selectedItems:l,filterState:s,setFilterState:u,openColumnModal:c,bottomBorder:f,sort:d,setSort:h,sortDirection:g,setSortDirection:p,sortOptions:y,clearAllFilters:_}=e,b=x.useCallback(()=>{_?_():u&&u({})},[u,_]),S=un("md"),{viewType:O,setViewType:w}=e;let{toolbarActions:A}=e;A=A??[];const T=x.useCallback((D,I)=>i?i(I):null,[i]),k=x.useCallback((D,I)=>a?a(I):null,[a]),j=o!==void 0,N=A!==void 0&&A.length>0,M=e.showSelect===!0||l!==void 0&&A&&A.find(D=>"selection"in D&&D.selection===ot.Multiple);return M||j||N?t===void 0?v.jsx(C.Toolbar,{className:"border-bottom dark-2",style:{paddingBottom:S?void 0:8,paddingTop:S?void 0:8,zIndex:400},children:v.jsx(Bk,{children:v.jsx(C.ToolbarItem,{style:{width:"100%"},children:v.jsx(C.Skeleton,{height:"36px"})})})}):v.jsx(C.Toolbar,{clearAllFilters:b,className:"page-table-toolbar",style:{paddingBottom:S?void 0:8,paddingTop:S?void 0:8,borderBottom:f?"thin solid var(--pf-global--BorderColor--100)":void 0},inset:{default:"insetMd",sm:"insetMd",md:"insetMd",lg:"insetMd",xl:"insetLg","2xl":"insetLg"},children:v.jsxs(Bk,{children:[M&&v.jsx(C.ToolbarGroup,{children:v.jsx(C.ToolbarItem,{variant:"bulk-select",children:v.jsx(ok,{...e})})}),s&&u&&v.jsx(Fk,{toolbarFilters:o,filterState:s,setFilterState:u}),v.jsx(C.ToolbarGroup,{variant:"button-group",children:v.jsx(Va,{actions:A,selectedItems:l,wrapper:C.ToolbarItem})}),v.jsxs(qge,{children:[v.jsx(zge,{sort:d,setSort:h,sortDirection:g,setSortDirection:p,sortOptions:y}),O&&w&&v.jsx(Hge,{disableTableView:e.disableTableView,disableListView:e.disableListView,disableCardView:e.disableCardView,viewType:O,setViewType:w,openColumnModal:c}),!e.disablePagination&&v.jsx(C.ToolbarItem,{visibility:{default:"hidden","2xl":"visible"},style:{marginLeft:24,alignSelf:"center"},children:v.jsx(C.Pagination,{variant:C.PaginationVariant.top,isCompact:!0,itemCount:t,perPage:r,page:n,onSetPage:T,onPerPageSelect:k,style:{marginTop:-8,marginBottom:-8}})})]})]})}):v.jsx(x.Fragment,{})}function Gge(e){const{t}=yt(),n=t("Something went wrong"),r=t("Please refresh the page by using the button below."),i=t("Refresh"),{titleProp:a,message:o}=e;return v.jsxs(C.EmptyState,{variant:C.EmptyStateVariant.small,style:{paddingTop:48},children:[v.jsx(C.EmptyStateIcon,{icon:Ce.ExclamationCircleIcon,color:"var(--pf-global--danger-color--100)"}),v.jsx(C.Title,{headingLevel:"h2",size:"lg",children:a||n}),v.jsx(C.EmptyStateBody,{children:o}),v.jsx(C.EmptyStateBody,{children:r}),v.jsx(C.Button,{variant:"primary",onClick:()=>window.location.reload(),children:i})]})}function Yge(e){const{title:t,description:n,icon:r,button:i,footNote:a,image:o,variant:l,style:s}=e;return v.jsxs(C.EmptyState,{variant:l||C.EmptyStateVariant.full,style:s,children:[r&&v.jsx(C.EmptyStateIcon,{icon:r}),v.jsx(C.Title,{headingLevel:"h4",size:"lg",children:t}),v.jsx(C.EmptyStateBody,{children:n}),i&&v.jsx(C.EmptyStatePrimary,{children:i}),o&&v.jsxs(v.Fragment,{children:[" ",v.jsx("br",{})," ",v.jsx(C.EmptyStateBody,{children:o})]}),a&&v.jsx(C.EmptyStateBody,{children:a})]})}function Kge(e){const{button:t,description:n,title:r,variant:i}=e;return v.jsx(Yge,{icon:t?Ce.PlusCircleIcon:Ce.CubesIcon,title:r,description:n,button:t,variant:i,style:{paddingTop:"48px"}})}function Mv(e,t,n){var r,i,a,o,l;t==null&&(t=100);function s(){var c=Date.now()-o;c<t&&c>=0?r=setTimeout(s,t-c):(r=null,n||(l=e.apply(a,i),a=i=null))}var u=function(){a=this,i=arguments,o=Date.now();var c=n&&!r;return r||(r=setTimeout(s,t)),c&&(l=e.apply(a,i),a=i=null),l};return u.clear=function(){r&&(clearTimeout(r),r=null)},u.flush=function(){r&&(l=e.apply(a,i),a=i=null,clearTimeout(r),r=null)},u}Mv.debounce=Mv;var Zge=Mv;const Xge=Ae(Zge);function Jge(e,t,n){const{selectedItems:r,selectItem:i,unselectItem:a,isSelected:o,selectItems:l,unselectAll:s,allSelected:u}=Dv(e,t),{sorted:c,sort:f,setSort:d}=Iv(e),{filtered:h,setFilterFn:g}=$v(c,t),{searched:p,search:y,setSearch:_,setSearchFn:b}=Qge(h,t,n==null?void 0:n.search),{paged:S,page:O,setPage:w,perPage:A,setPerPage:T}=Is(p),k=x.useCallback(()=>l(S),[S,l]),j=x.useCallback(()=>l(p),[p,l]);return x.useMemo(()=>({allSelected:u,filtered:h,isSelected:o,page:O,paged:S,perPage:A,search:y,searched:p,selectAll:j,selectItem:i,selectPage:k,selectedItems:r,setFilterFn:g,setPage:w,setPerPage:T,setSearch:_,setSearchFn:b,setSort:d,sort:f,sorted:c,unselectAll:s,unselectItem:a}),[u,h,o,O,S,A,y,p,j,i,k,r,g,w,T,_,b,d,f,c,s,a])}function Dv(e,t,n){const[r,i]=x.useState(()=>n?n.reduce((g,p)=>(g[t(p)]=p,g),{}):{});x.useEffect(()=>{i(g=>{let p=!1;return e.forEach(y=>{const _=t(y);g[_]&&g[_]!==y&&(p=!0,g[_]=y)}),p?{...g}:g})},[e,t]);const a=x.useCallback(g=>{i(p=>{const y=t(g);return p[y]!==g&&(p={...p},p[y]=g),p})},[t]),o=x.useCallback(g=>{i(p=>{const y=t(g);return p[y]&&(p={...p},delete p[y]),p})},[t]),l=x.useCallback(g=>{const p=t(g);return r[p]!==void 0},[t,r]),s=x.useCallback(g=>{i(p=>{p={...p};for(const y of g){const _=t(y);p[_]=y}return p})},[t]),u=x.useCallback(()=>s(e),[e,s]),c=x.useCallback(g=>{for(const p of g)o(p)},[o]),f=x.useCallback(()=>{i(g=>Object.keys(g).length>0?{}:g)},[]),d=x.useMemo(()=>Object.values(r),[r]),h=x.useMemo(()=>d.length===e.length,[e.length,d.length]);return x.useMemo(()=>({selectedItems:d,selectItem:a,unselectItem:o,isSelected:l,selectItems:s,selectAll:u,unselectAll:f,allSelected:h,keyFn:t,unselectItems:c}),[h,l,t,u,a,s,d,f,o,c])}function Wk(e,t){const[n,r]=x.useState({});x.useEffect(()=>{r(h=>{let g=!1;const p=e?e.reduce((b,S)=>{const O=t(S);return b[O]=S,h[O]&&h[O]!==S&&(g=!0,h[O]=S),b},{}):{},y={};for(const b in h)p[b]||(y[b]=!0);const _=Object.keys(y);if(_.length){g=!0;for(const b of _)delete h[b]}return g?{...h}:h})},[e,t]);const i=x.useCallback(h=>{r(g=>{const p=t(h);return g[p]!==h&&(g={...g},g[p]=h),g})},[t]),a=x.useCallback(h=>{r(g=>{const p=t(h);return g[p]&&(g={...g},delete g[p]),g})},[t]),o=x.useCallback(h=>{for(const g of h)a(g)},[a]),l=x.useCallback(h=>{const g=t(h);return n[g]!==void 0},[t,n]),s=x.useCallback(h=>{r(g=>{g={...g};for(const p of h){const y=t(p);g[y]=p}return g})},[t]),u=x.useCallback(()=>{s(e??[])},[e,s]),c=x.useCallback(()=>{r(h=>Object.keys(h).length>0?{}:h)},[]),f=x.useMemo(()=>Object.values(n),[n]),d=x.useMemo(()=>f.length===(e==null?void 0:e.length),[e,f.length]);return x.useMemo(()=>({selectedItems:f,selectItem:i,unselectItem:a,isSelected:l,selectItems:s,selectAll:u,unselectAll:c,allSelected:d,keyFn:t,unselectItems:o}),[d,l,t,u,i,s,f,c,a,o])}function Iv(e){const[t,n]=x.useState(),{direction:r,sortFn:i}=t??{},a=x.useMemo(()=>e?i?r==="asc"?[...e.sort(i)]:[...e.sort(i).reverse()]:e:[],[r,e,i]);return x.useMemo(()=>({sorted:a,sort:t,setSort:n}),[t,a])}function $v(e,t){const n=x.useRef({map:{}}),[r,i]=x.useState(),a=x.useCallback(u=>i(()=>u),[]),[o,l]=x.useState([]);x.useEffect(()=>{n.current.map={}},[r]);const s=x.useCallback(u=>{const c=t(u);let f=n.current.map[c];return f?f.item!==u&&(f.item=u,f.passes=r?r(u):!0):(f={item:u,passes:r?r(u):!0},n.current.map[c]=f),f.passes},[r,t]);return x.useEffect(()=>{l(r?e.filter(s):e)},[e,r,s]),x.useMemo(function(){return{filtered:o,setFilterFn:a}},[o,a])}function Qge(e,t,n){const r=x.useRef({map:{}}),[i,a]=x.useState(),o=x.useCallback(h=>a(()=>h),[]),[l,s]=x.useState([]),[u,c]=x.useState(n??""),f=x.useCallback(Xge(h=>c(h),200),[]);x.useEffect(()=>{r.current.map={}},[u,i]);const d=x.useCallback(h=>{const g=t(h);let p=r.current.map[g];return p?p.item!==h&&(p.item=h,p.score=i?i(h,u):0):(p={item:h,score:i?i(h,u):0},r.current.map[g]=p),p},[t,i,u]);return x.useEffect(()=>{s(i&&u?e.map(d).filter(h=>h.score<.5).sort((h,g)=>h.score-g.score).map(h=>h.item):e)},[u,e,i,d]),x.useMemo(function(){return{searched:l,search:u,setSearch:f,setSearchFn:o}},[l,u,f,o])}function Is(e){const[t,n]=x.useState([]),[r,i]=x.useState(1),[a,o]=x.useState(10);return x.useEffect(()=>{n(l=>{const s=e.slice((r-1)*a,r*a);if(l.length!==s.length)return s;let u=0;for(const c of s)if(l[u++]!==c)return s;return l})},[r,a,e]),x.useEffect(()=>{r>Math.ceil(e.length/a)&&i(1)},[r,a,e.length]),x.useMemo(()=>({paged:t,page:r,setPage:i,perPage:a,setPerPage:o}),[r,t,a])}const Jwe="",Lv={button:"pf-c-button",modifiers:{hidden:"pf-m-hidden",hiddenOnSm:"pf-m-hidden-on-sm",visibleOnSm:"pf-m-visible-on-sm",hiddenOnMd:"pf-m-hidden-on-md",visibleOnMd:"pf-m-visible-on-md",hiddenOnLg:"pf-m-hidden-on-lg",visibleOnLg:"pf-m-visible-on-lg",hiddenOnXl:"pf-m-hidden-on-xl",visibleOnXl:"pf-m-visible-on-xl",hiddenOn_2xl:"pf-m-hidden-on-2xl",visibleOn_2xl:"pf-m-visible-on-2xl",fixed:"pf-m-fixed",stickyHeader:"pf-m-sticky-header",nestedColumnHeader:"pf-m-nested-column-header",borderRow:"pf-m-border-row",striped:"pf-m-striped",expandable:"pf-m-expandable",stripedEven:"pf-m-striped-even",ghostRow:"pf-m-ghost-row",center:"pf-m-center",help:"pf-m-help",favorite:"pf-m-favorite",borderRight:"pf-m-border-right",borderLeft:"pf-m-border-left",truncate:"pf-m-truncate",wrap:"pf-m-wrap",nowrap:"pf-m-nowrap",fitContent:"pf-m-fit-content",breakWord:"pf-m-break-word",noBorderRows:"pf-m-no-border-rows",expanded:"pf-m-expanded",hoverable:"pf-m-hoverable",selected:"pf-m-selected",firstCellOffsetReset:"pf-m-first-cell-offset-reset",dragOver:"pf-m-drag-over",favorited:"pf-m-favorited",noPadding:"pf-m-no-padding",compact:"pf-m-compact",width_10:"pf-m-width-10",width_15:"pf-m-width-15",width_20:"pf-m-width-20",width_25:"pf-m-width-25",width_30:"pf-m-width-30",width_35:"pf-m-width-35",width_40:"pf-m-width-40",width_45:"pf-m-width-45",width_50:"pf-m-width-50",width_60:"pf-m-width-60",width_70:"pf-m-width-70",width_80:"pf-m-width-80",width_90:"pf-m-width-90",width_100:"pf-m-width-100"},table:"pf-c-table",tableAction:"pf-c-table__action",tableButton:"pf-c-table__button",tableButtonContent:"pf-c-table__button-content",tableCheck:"pf-c-table__check",tableColumnHelp:"pf-c-table__column-help",tableColumnHelpAction:"pf-c-table__column-help-action",tableCompoundExpansionToggle:"pf-c-table__compound-expansion-toggle",tableControlRow:"pf-c-table__control-row",tableDraggable:"pf-c-table__draggable",tableExpandableRow:"pf-c-table__expandable-row",tableExpandableRowContent:"pf-c-table__expandable-row-content",tableFavorite:"pf-c-table__favorite",tableIcon:"pf-c-table__icon",tableIconInline:"pf-c-table__icon-inline",tableInlineEditAction:"pf-c-table__inline-edit-action",tableSort:"pf-c-table__sort",tableSortIndicator:"pf-c-table__sort-indicator",tableSubhead:"pf-c-table__subhead",tableText:"pf-c-table__text",tableToggle:"pf-c-table__toggle",tableToggleIcon:"pf-c-table__toggle-icon",themeDark:"pf-theme-dark"};function epe(e){const{t}=yt(),{columns:n,keyFn:r,items:i,setItems:a,isSelected:o,selectItem:l,unselectItem:s,allSelected:u,selectAll:c,unselectAll:f,hideColumnHeaders:d,isSelectableWithCheckbox:h}=e,[g,p]=x.useState(null),[y,_]=x.useState(null),[b,S]=x.useState(!1),O=x.useRef(null),w=I=>{if(O.current){const W=O.current.getBoundingClientRect();return I.clientX>W.x&&I.clientX<W.x+W.width&&I.clientY>W.y&&I.clientY<W.y+W.height}return!1},A=I=>{w(I)||T()},T=()=>{O.current&&Array.from(O.current.children).forEach(I=>{I.classList.remove(Lv.modifiers.ghostRow),I.setAttribute("aria-pressed","false")}),_(null),p(null),S(!1)},k=I=>{I.preventDefault();const W=I.target.closest("tr");if(!W||!(O.current&&O.current.contains(W))||W.id===y)return null;{const Z=W.id,ne=Array.from(O.current.children).findIndex(re=>re.id===Z);if(ne!==g&&y){const re=j([...i],y,ne);a(re)}}return null},j=(I,W,Z)=>{const ne=I.findIndex(J=>r(J)===W);if(ne===Z)return I;const re=I.splice(ne,1);return I.splice(Z,0,re[0]),I},N=I=>{w(I)||p(null)},M=I=>{const W=I.target;W.classList.remove(Lv.modifiers.ghostRow),W.setAttribute("aria-pressed","false"),_(null),p(null),S(!1)},E=I=>{if(O.current){I.dataTransfer.effectAllowed="move";const W=I.currentTarget.id,Z=Array.from(O.current.children).findIndex(ne=>ne.id===I.currentTarget.id);I.currentTarget.setAttribute("aria-pressed","true"),_(W),p(Z)}},D=x.useCallback(I=>{const W=i.findIndex(ne=>r(ne)===r(I)),Z=[...i];Z[W]=I,a(Z)},[i,a,r]);return v.jsxs(je.TableComposable,{"aria-label":t("Table with draggable rows"),className:b?Lv.modifiers.dragOver:"",variant:"compact",gridBreakPoint:"",children:[!d&&v.jsx(je.Thead,{children:v.jsxs(je.Tr,{children:[v.jsx(je.Th,{}),h&&v.jsx(je.Th,{select:{onSelect:(I,W)=>{W?c():f()},isSelected:u}}),n.map((I,W)=>v.jsx(je.Th,{children:I.header},W))]})}),v.jsx(je.Tbody,{ref:O,onDragOver:k,onDragLeave:N,children:i.map((I,W)=>{const Z=r(I);return v.jsxs(je.Tr,{id:Z.toString(),draggable:!0,onDrop:A,onDragEnd:M,onDragStart:E,children:[v.jsx(je.Td,{draggableRow:{id:`draggable-row-${Z.toString()}`}}),h&&v.jsx(je.Td,{select:{rowIndex:W,variant:"checkbox",onSelect:(ne,re)=>{re?l(I):s(I)},isSelected:o(I)}}),n.map(ne=>v.jsx(je.Td,{children:ne.cell(I,D)},ne.header))]},Z)})})]})}function tpe(e){const[t,n]=yr(),[r]=x.useState(()=>e.keyFn),[i]=x.useState(()=>e.saveFn),[a]=x.useState(()=>e.loadFn),[o,l]=x.useState(()=>{try{const d=localStorage.getItem(e.id);if(typeof d=="string"){const h=JSON.parse(d);if(Array.isArray(h)&&h.every(g=>typeof g=="object")&&h.every(g=>"key"in g&&"enabled"in g))return h}}catch{}}),s=x.useMemo(()=>o?e.items.map(d=>{if(a){const h=o.find(g=>g.key===r(d));h&&h.state&&a(d,h.state)}return d}).sort((d,h)=>{const g=o.findIndex(y=>y.key===r(d)),p=o.findIndex(y=>y.key===r(h));return g===-1&&p===-1?0:g===-1?1:p===-1?-1:g-p}):e.items,[o,r,a,e.items]),u=x.useMemo(()=>o?s.filter(d=>{const h=o.find(g=>g.key===r(d));return h?h.enabled:!0}):s,[s,o,r]),c=x.useCallback((d,h)=>{const g=d.map(p=>({key:r(p),enabled:h.includes(p),state:i?i(p):void 0}));l(g),localStorage.setItem(e.id,JSON.stringify(g))},[r,e.id,i]);return{openManageItems:()=>n(v.jsx(npe,{...e,keyFn:r,items:s,defaultSelectedItems:u,onApplyChanges:c})),managedItems:u}}function npe(e){const{t}=yt(),{title:n,description:r,columns:i,onApplyChanges:a}=e,[o]=x.useState(()=>e.keyFn),[l,s]=yr(),u=()=>s(void 0),[c,f]=x.useState(()=>e.items),{selectedItems:d,isSelected:h,selectItem:g,unselectItem:p,allSelected:y,selectAll:_,unselectAll:b}=Dv(c,o,e.defaultSelectedItems),S=()=>{a(c,d),s(void 0)};return v.jsxs(C.Modal,{title:n,"aria-label":n,description:v.jsx("div",{style:{marginBottom:16},children:r}),variant:e.variant??C.ModalVariant.medium,isOpen:!0,onClose:u,actions:[v.jsx(C.Button,{variant:"primary",onClick:S,children:t`Apply`},"apply"),v.jsx(C.Button,{variant:"link",onClick:u,children:t`Cancel`},"cancel")],hasNoBodyWrapper:!0,children:[v.jsx(C.Divider,{}),v.jsx(C.ModalBoxBody,{style:{padding:0},children:v.jsx(epe,{keyFn:o,items:c,setItems:f,columns:i,isSelected:h,selectItem:g,unselectItem:p,allSelected:y,selectAll:_,unselectAll:b,hideColumnHeaders:e.hideColumnHeaders,isSelectableWithCheckbox:e.hideSelection!==!0})}),v.jsx(C.Divider,{})]})}function rpe(e,t,n,r,i){const{t:a}=yt(),o=x.useMemo(()=>{const f=[{header:a("Column Name"),cell:d=>d.header}];return n||f.push({header:a("Table View"),cell:(d,h)=>v.jsx(zi,{value:d.table??"",onSelect:g=>{switch(g){case"":h({...d,table:void 0});break;case Ri.Description:case Ri.Expanded:case Ri.Hidden:h({...d,table:g});break}},placeholder:a("Column"),options:[{value:"",label:a("Column"),description:a("Show the column in the table.")},{value:Ri.Description,label:a("Description"),description:a("Show the column when the item is expanded as a full width description.")},{value:Ri.Expanded,label:a("Expanded"),description:a("Show the column when the item is expanded as a detail.")},{value:Ri.Hidden,label:a("Hidden"),description:a("Hide the column.")}]})}),r||f.push({header:a("List View"),cell:(d,h)=>v.jsx(zi,{value:d.list??"",onSelect:g=>{switch(g){case"":h({...d,list:void 0});break;case"name":case"subtitle":case"description":case"primary":case"secondary":case"hidden":h({...d,list:g});break}},options:[{value:"name",label:a("Name"),description:a("Show the column as the name of the list item.")},{value:"subtitle",label:a("Subtitle"),description:a("Show the column as the subtitle under the name on the list.")},{value:"description",label:a("Description"),description:a("Show the column as the list item description.")},{value:"",label:a("Left side"),description:a("Show the column on the left side of the list.")},{value:"primary",label:a("Left side"),description:a("Show the column on the left side of the list.")},{value:"secondary",label:a("Right side"),description:a("Show the column on the right side of the list.")},{value:"hidden",label:a("Hidden"),description:a("Hide the column on the list.")}],placeholder:a("Left side")})}),i||f.push({header:a("Card View"),cell:(d,h)=>v.jsx(zi,{value:d.card??"",onSelect:g=>{switch(g){case"":h({...d,card:void 0});break;case"name":case"subtitle":case"description":case"hidden":h({...d,card:g});break}},placeholder:a("Detail"),options:[{value:"name",label:a("Name"),description:a("Show the column as the name on the card.")},{value:"subtitle",label:a("Subtitle"),description:a("Show the column as the subtitle under the name on the card.")},{value:"description",label:a("Description"),description:a("Show the column as the card description.")},{value:"",label:a("Detail"),description:a("Show the column one of the details on the card.")},{value:"hidden",label:a("Hidden"),description:a("Hide the column on the card.")}]})}),f},[i,r,n,a]),l=x.useCallback((f,d)=>{typeof d=="object"&&d!==null&&("table"in d&&typeof d.table=="string"?f.table=d.table:f.table=void 0,"list"in d&&typeof d.list=="string"?f.list=d.list:f.list=void 0,"card"in d&&typeof d.card=="string"?f.card=d.card:f.card=void 0)},[]),s=x.useCallback(f=>{const{table:d,list:h,card:g}=f;return{table:d,list:h,card:g}},[]),{openManageItems:u,managedItems:c}=tpe({id:e,title:a("Manage Columns"),description:a("Manage the order, placement, and format of columns."),items:t,keyFn:f=>f.id??f.header,columns:o,loadFn:l,saveFn:s,hideSelection:!0});return{openColumnManagement:u,managedColumns:c}}function ipe(e){const{setPage:t,setPerPage:n}=e,r=x.useCallback((o,l)=>t(l),[t]),i=x.useCallback((o,l)=>n(l),[n]),a=!un("md");return v.jsx(C.Pagination,{variant:C.PaginationVariant.bottom,itemCount:e.itemCount,page:e.page,perPage:e.perPage,onSetPage:r,onPerPageSelect:i,style:{...e.style,boxShadow:"none",zIndex:400,paddingTop:a?4:6,paddingBottom:a?4:6,borderTop:e.topBorder?"thin solid var(--pf-global--BorderColor--100)":void 0},className:"dark-2"})}const Qwe="";function ape(e){const t=e.size??350,n=x.useRef(null),[r,i]=x.useState("1fr"),a=x.useCallback(l=>{let s=Math.min(e.maxColumns??12,Math.max(Math.floor(l/t),1));s<1&&(s=1),i(()=>new Array(s).fill("1fr").join(" "))},[e.maxColumns,t]);ro(n,l=>a(l.contentRect.width)),x.useLayoutEffect(()=>{var l;a(((l=n.current)==null?void 0:l.clientWidth)??0)},[a]);const o=16;return v.jsx("div",{ref:n,style:{display:"grid",gridAutoRows:"1fr",gridTemplateColumns:r,gap:o},children:e.children})}const ope=De.small`
381
381
  opacity: 0.7;
382
382
  `,lpe=De.div`
383
383
  display: flex;
@@ -529,7 +529,7 @@ ${s}${p}`:`
529
529
  `))&&(f=!0),h.push(O),d=h.length}let g;const{start:p,end:y}=r;if(h.length===0)g=p+y;else if(f||(f=h.reduce((b,S)=>b+S.length+2,2)>Ud.maxFlowStringSingleLineLength),f){g=p;for(const _ of h)g+=_?`
530
530
  ${l}${o}${_}`:`
531
531
  `;g+=`
532
- ${o}${y}`}else g=`${p}${s}${h.join(" ")}${s}${y}`;return e&&(g+=$a(g,o,u(e)),a&&a()),g}function Xd({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,"")),r){const a=Js(t(r),e);n.push(a.trimStart())}}function La(e,t){const n=It(t)?t.value:t;for(const r of e)if(Ut(r)&&(r.key===t||r.key===n||It(r.key)&&r.key.value===n))return r}class tl extends Ud{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Da,t),this.items=[]}static from(t,n,r){const{keepUndefined:i,replacer:a}=r,o=new this(t),l=(s,u)=>{if(typeof a=="function")u=a.call(n,s,u);else if(Array.isArray(a)&&!a.includes(s))return;(u!==void 0||i)&&o.items.push(Ay(s,u,r))};if(n instanceof Map)for(const[s,u]of n)l(s,u);else if(n&&typeof n=="object")for(const s of Object.keys(n))l(s,n[s]);return typeof t.sortMapEntries=="function"&&o.items.sort(t.sortMapEntries),o}add(t,n){var o;let r;Ut(t)?r=t:!t||typeof t!="object"||!("key"in t)?r=new gi(t,t==null?void 0:t.value):r=new gi(t.key,t.value);const i=La(this.items,r.key),a=(o=this.schema)==null?void 0:o.sortMapEntries;if(i){if(!n)throw new Error(`Key ${r.key} already set`);It(i.value)&&tP(r.value)?i.value.value=r.value:i.value=r.value}else if(a){const l=this.items.findIndex(s=>a(r,s)<0);l===-1?this.items.push(r):this.items.splice(l,0,r)}else this.items.push(r)}delete(t){const n=La(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){const r=La(this.items,t),i=r==null?void 0:r.value;return(!n&&It(i)?i.value:i)??void 0}has(t){return!!La(this.items,t)}set(t,n){this.add(new gi(t,n),!0)}toJSON(t,n,r){const i=r?new r:n!=null&&n.mapAsMap?new Map:{};n!=null&&n.onCreate&&n.onCreate(i);for(const a of this.items)oP(n,i,a);return i}toString(t,n,r){if(!t)return JSON.stringify(this);for(const i of this.items)if(!Ut(i))throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),lP(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}class sP extends Ud{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(Ys,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=Jd(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const r=Jd(t);if(typeof r!="number")return;const i=this.items[r];return!n&&It(i)?i.value:i}has(t){const n=Jd(t);return typeof n=="number"&&n<this.items.length}set(t,n){const r=Jd(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);const i=this.items[r];It(i)&&tP(n)?i.value=n:this.items[r]=n}toJSON(t,n){const r=[];n!=null&&n.onCreate&&n.onCreate(r);let i=0;for(const a of this.items)r.push(pr(a,String(i++),n));return r}toString(t,n,r){return t?lP(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:r,onComment:n}):JSON.stringify(this)}static from(t,n,r){const{replacer:i}=r,a=new this(t);if(n&&Symbol.iterator in Object(n)){let o=0;for(let l of n){if(typeof i=="function"){const s=n instanceof Set?l:String(o++);l=i.call(n,s,l)}a.items.push(Vd(l,void 0,r))}}return a}}function Jd(e){let t=It(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}function Exe(e,t,n){const{replacer:r}=n,i=new sP(e);i.tag="tag:yaml.org,2002:pairs";let a=0;if(t&&Symbol.iterator in Object(t))for(let o of t){typeof r=="function"&&(o=r.call(t,String(a++),o));let l,s;if(Array.isArray(o))if(o.length===2)l=o[0],s=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){const u=Object.keys(o);if(u.length===1)l=u[0],s=o[l];else throw new TypeError(`Expected tuple with one key, not ${u.length} keys`)}else l=o;i.items.push(Ay(l,s,n))}return i}class Ty extends sP{constructor(){super(),this.add=tl.prototype.add.bind(this),this.delete=tl.prototype.delete.bind(this),this.get=tl.prototype.get.bind(this),this.has=tl.prototype.has.bind(this),this.set=tl.prototype.set.bind(this),this.tag=Ty.tag}toJSON(t,n){if(!n)return super.toJSON(t);const r=new Map;n!=null&&n.onCreate&&n.onCreate(r);for(const i of this.items){let a,o;if(Ut(i)?(a=pr(i.key,"",n),o=pr(i.value,a,n)):a=pr(i,"",n),r.has(a))throw new Error("Ordered maps must not include duplicate keys");r.set(a,o)}return r}static from(t,n,r){const i=Exe(t,n,r),a=new this;return a.items=i.items,a}}Ty.tag="tag:yaml.org,2002:omap";class ky extends tl{constructor(t){super(t),this.tag=ky.tag}add(t){let n;Ut(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new gi(t.key,null):n=new gi(t,null),La(this.items,n.key)||this.items.push(n)}get(t,n){const r=La(this.items,t);return!n&&Ut(r)?It(r.key)?r.key.value:r.key:r}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const r=La(this.items,t);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new gi(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,r){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,r);throw new Error("Set items must all have null values")}static from(t,n,r){const{replacer:i}=r,a=new this(t);if(n&&Symbol.iterator in Object(n))for(let o of n)typeof i=="function"&&(o=i.call(n,o,o)),a.items.push(Ay(o,null,r));return a}}ky.tag="tag:yaml.org,2002:set";class Qd extends Error{constructor(t,n,r,i,a){super(t),this.details=n,this.statusCode=r,this.body=i,this.json=a,Object.setPrototypeOf(this,Qd.prototype),this.name="RequestError"}}function Pxe(e){const{defaultValue:t,disableBody:n,disablePadding:r}=e,i=Xpe({defaultValues:t??{}}),[a]=gt(),{handleSubmit:o,setError:l}=i,[s,u]=x.useState(null),c=un("md"),[f]=x.useContext(qa),d=e.isVertical?!1:f.formLayout==="horizontal",g=(e.singleColumn?!1:f.formColumns==="multiple")?1600:d?960:800,p=_=>{if(_ instanceof Error?u(_):u(new Error("Unknown error")),typeof _=="object"&&_!==null&&"json"in _&&typeof _.json=="object"&&_.json!==null)for(const b in _.json){let S=_.json[b];typeof S=="string"?l(b,{message:S}):Array.isArray(S)&&(S=S[0],typeof S=="string"&&l(b,{message:S}))}};let y=v.jsx(Fpe,{...i,children:v.jsxs(C.Form,{onSubmit:o(async(_,b)=>{var O,w;u(null);let S=!1;b!==void 0&&((O=b==null?void 0:b.nativeEvent)!=null&&O.submitter)&&(S=((w=b.nativeEvent.submitter)==null?void 0:w.innerHTML)===e.additionalActionText);try{await e.onSubmit(_,A=>u(new Error(A)),l,S?i:void 0)}catch(A){p(A)}}),isHorizontal:d,autoComplete:"off",style:{display:"flex",flexDirection:"column",flexGrow:1,overflow:e.disableScrolling?void 0:"hidden",gap:0},children:[e.disableScrolling?v.jsx("div",{style:{maxWidth:g,padding:r?void 0:24},children:v.jsx(Ey,{isVertical:e.isVertical,singleColumn:e.singleColumn,children:e.children})}):v.jsx("div",{style:{height:"100%",flexGrow:1,overflow:"auto"},children:v.jsx("div",{style:{maxWidth:g,padding:r?void 0:24},children:v.jsx(Ey,{isVertical:e.isVertical,singleColumn:e.singleColumn,children:e.children})})}),s&&v.jsx(C.Alert,{variant:"danger",title:s.message??"",isInline:!0,style:{paddingLeft:c&&e.onCancel?190:void 0},isExpandable:s instanceof Qd?!!s.details:!1,children:s instanceof Qd?s.details:void 0}),e.onCancel?v.jsx("div",{className:"dark-2 border-top",style:{padding:r?void 0:24},children:v.jsxs(C.ActionGroup,{style:{marginTop:0},children:[v.jsx(Py,{children:e.submitText}),e.additionalActionText?v.jsx(C.Button,{"aria-label":e.additionalActionText,type:"submit",variant:"secondary",children:e.additionalActionText}):null,e.onCancel&&v.jsx(uP,{onCancel:e.onCancel,children:e.cancelText??a.cancelText})]})}):v.jsx(Py,{style:{marginTop:48},children:e.submitText})]})});return n||(y=v.jsx(Ob,{children:y})),y}function Ey(e){const[t]=x.useContext(qa),n=e.isVertical?!1:t.formLayout==="horizontal",r=e.singleColumn?!1:t.formColumns==="multiple",i=12,a=r?n?12:6:12,o=r?6:12,l=r?6:12,s=r?4:12;return v.jsx(C.Grid,{hasGutter:!0,span:12,sm:i,md:a,lg:o,xl:l,xl2:s,children:e.children})}function Py(e){const{isSubmitting:t,errors:n}=n6(),{t:r}=yt(),i=n&&Object.keys(n).length>0;return v.jsx(C.Tooltip,{content:r("Please fix errors"),trigger:i?void 0:"manual",children:v.jsx(C.Button,{type:"submit",isDisabled:t,isLoading:t,isDanger:i,variant:i?"secondary":void 0,style:e.style,children:e.children})})}function uP(e){return v.jsx(C.Button,{type:"button",variant:"link",onClick:e.onCancel,children:e.children})}const nOe="",jy=x.createContext({isOpen:!1,setState:()=>({})});function eu(){return x.useContext(jy)}function cP(e){const t=un("xl"),[n,r]=x.useState(()=>t),i=x.useCallback(a=>{a.isOpen!==void 0&&r(a.isOpen)},[]);return x.useEffect(()=>i({isOpen:t}),[t,i]),v.jsx(jy.Provider,{value:{isOpen:n,setState:i},children:e.children})}function fP(){const e=Rt.useNavigate(),t=un("xl"),n=eu();return x.useCallback(i=>{e(i),t||n.setState({isOpen:!n.isOpen})},[e,t,n])}function dP(e){return v.jsx(vb,{children:v.jsx(Tb,{children:v.jsx(Ab,{children:v.jsx(Sb,{children:v.jsx(cP,{children:e.children})})})})})}function jxe(e){const t=Rt.useNavigate();return e.breadcrumbs?v.jsx(C.Breadcrumb,{style:e.style,children:e.breadcrumbs.map((n,r)=>n.label?v.jsx(C.BreadcrumbItem,{id:n.id,component:n.component,isActive:n.to===void 0,children:n.to?v.jsx("a",{href:n.to,onClick:i=>{i.preventDefault(),n.to&&t(n.to)},children:n.label}):n.label},n.id??n.label??r):v.jsx(x.Fragment,{},r))}):v.jsx(x.Fragment,{})}function Mxe(e){const{breadcrumbs:t,title:n,description:r,controls:i,headerActions:a,footer:o}=e,l=un("lg"),s=un("xl"),u=un("md"),f=eu().isOpen&&s?void 0:e.navigation,[d]=gt();return v.jsxs(v.Fragment,{children:[f&&v.jsx(C.PageSection,{variant:C.PageSectionVariants.light,className:"border-top dark-1",style:{paddingLeft:0,paddingTop:0,paddingBottom:0},children:v.jsx(C.Flex,{direction:{default:"row"},flexWrap:{default:"nowrap"},style:{maxWidth:"100%"},children:v.jsx(C.PageNavigation,{style:{paddingTop:0,flexShrink:1,flexGrow:1},children:f})})}),v.jsx(C.PageSection,{variant:C.PageSectionVariants.light,className:"border-top border-bottom dark-3",style:{paddingTop:s?16:12,paddingBottom:s?16:12},children:v.jsxs(C.Stack,{hasGutter:!0,children:[v.jsxs(C.Flex,{flexWrap:{default:"nowrap"},alignItems:{default:"alignItemsStretch"},children:[v.jsxs(C.FlexItem,{grow:{default:"grow"},children:[t&&v.jsx(jxe,{breadcrumbs:t,style:{paddingBottom:l?6:4}}),n?e.titleHelp?v.jsx(C.Popover,{headerContent:e.titleHelpTitle,bodyContent:v.jsxs(C.Stack,{hasGutter:!0,children:[typeof e.titleHelp=="string"?v.jsx(C.StackItem,{children:e.titleHelp}):e.titleHelp.map((h,g)=>v.jsx(C.StackItem,{children:h},g)),e.titleDocLink&&v.jsx(C.StackItem,{children:v.jsx(C.Button,{icon:v.jsx(Ce.ExternalLinkAltIcon,{}),variant:"link",onClick:()=>window.open(e.titleDocLink,"_blank"),isInline:!0,children:d.documentation})})]}),position:"bottom-start",removeFindDomNode:!0,children:v.jsxs(C.Title,{headingLevel:"h1",children:[n,v.jsx(C.Button,{variant:"link",style:{padding:0,marginTop:1,marginLeft:8,verticalAlign:"top"},children:v.jsx(Ce.OutlinedQuestionCircleIcon,{})})]})}):v.jsx(C.Title,{headingLevel:"h1",children:n}):v.jsx(C.Title,{headingLevel:"h1",children:v.jsx(C.Skeleton,{width:"160px"})}),u&&r&&v.jsx(C.Text,{component:"p",style:{paddingTop:s?4:2,opacity:.8},children:typeof r=="string"?v.jsx(C.Truncate,{content:r}):v.jsx(C.Stack,{children:r.map(h=>v.jsx(C.StackItem,{children:h},h))})})]}),n&&(a||i)&&v.jsxs(C.Flex,{direction:{default:"column"},spaceItems:{default:"spaceItemsSm",xl:"spaceItemsMd"},justifyContent:{default:"justifyContentCenter"},children:[i&&v.jsx(C.FlexItem,{grow:{default:"grow"},children:i}),a&&v.jsx(C.FlexItem,{children:a})]})]}),o]})})]})}function hP(e){const[t]=gt();return v.jsx(wb,{message:t.errorText,children:v.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%",maxHeight:"100%"},children:e.children})})}function Dxe(e){const t=un("sm");return v.jsxs(C.Masthead,{display:{default:"inline"},children:[v.jsx(mP,{}),v.jsx(C.MastheadMain,{children:v.jsx(C.MastheadBrand,{children:e.icon})}),v.jsx(C.MastheadContent,{style:{marginLeft:0},children:v.jsx(C.Toolbar,{id:"toolbar",inset:{default:"insetNone"},children:v.jsxs(C.ToolbarContent,{children:[t&&v.jsx(C.ToolbarItem,{children:v.jsxs(C.Stack,{style:{color:"white",cursor:"default",marginTop:-2,marginBottom:-2},children:[e.brand&&v.jsx(C.Text,{style:{marginTop:-6},children:v.jsx(C.Truncate,{content:e.brand,style:{minWidth:0}})}),v.jsx(C.Title,{headingLevel:"h1",style:{lineHeight:1},children:v.jsx(C.Truncate,{content:e.title,style:{minWidth:0}})})]})}),e.children]})})})]})}function mP(){const e=eu();return v.jsx(C.MastheadToggle,{onClick:()=>e.setState({isOpen:!e.isOpen}),children:v.jsx(C.PageToggleButton,{variant:"plain","aria-label":"Global navigation",children:v.jsx(Ce.BarsIcon,{})})})}function Ixe(e){const{t}=yt(),n=Rt.useNavigate(),{dashboardUrl:r}=e;return React.createElement(C.Page,null,React.createElement(C.EmptyState,{variant:C.EmptyStateVariant.small,style:{paddingTop:48}},React.createElement(C.EmptyStateIcon,{icon:Ce.ExclamationCircleIcon}),React.createElement(C.Title,{headingLevel:"h2",size:"lg"},t("We could not find that page")),React.createElement(C.EmptyStateSecondaryActions,null,React.createElement(C.Stack,{hasGutter:!0},React.createElement(C.Button,{onClick:()=>n(-1)},t("Return to previous page")),React.createElement(C.Button,{component:i=>React.createElement(Rt.Link,{to:r,...i})},t("Return to dashboard"))))))}function gP(e){const{navigation:t}=e,n=eu();return v.jsx(C.PageSidebar,{isNavOpen:n.isOpen,nav:v.jsx(C.Nav,{children:v.jsx(C.NavList,{children:v.jsx(eh,{baseRoute:"",items:t})})})})}function eh(e){return v.jsx(v.Fragment,{children:e.items.map((t,n)=>v.jsx($xe,{item:t,baseRoute:e.baseRoute},n))})}function $xe(e){let t;if("id"in e.item)t=e.item.id;else if("children"in e.item){const a=e.item.children.find(o=>o.path==="");a&&"id"in a&&(t=a.id)}const n=fP(),{item:r}=e;let i=e.baseRoute+"/"+r.path;return i=i.replace("//","/"),r.path==="/"&&"children"in r?v.jsx(eh,{items:r.children,baseRoute:""}):"children"in r&&r.children.find(a=>a.label!==void 0)!==void 0?r.label===void 0?v.jsx(v.Fragment,{}):r.label===""?v.jsx(eh,{items:r.children,baseRoute:i}):v.jsx(C.NavExpandable,{title:r.label,isActive:location.pathname.startsWith(i),isExpanded:!0,children:v.jsx(eh,{items:r.children,baseRoute:i})}):"label"in r?v.jsx(C.NavItem,{id:t,isActive:location.pathname.startsWith(i),onClick:()=>n(i),"data-cy":t,children:r.label}):v.jsx(v.Fragment,{})}const pP=x.createContext({});function Lxe(){return x.useContext(pP)}function Fxe(e){const t=x.useMemo(()=>vP("",e.navigation),[e.navigation]);return v.jsx(pP.Provider,{value:t,children:e.children})}function vP(e,t){const n={};return t.forEach(r=>{const i=(e+"/"+r.path).replace("//","/");"id"in r&&typeof r.id=="string"&&(n[r.id]=i),"children"in r&&Object.assign(n,vP(i,r.children))}),n}function Nxe(e){const{navigation:t,basename:n,masthead:r}=e,i=x.useMemo(()=>[{path:"",element:v.jsx(dP,{children:v.jsx(Rt.Outlet,{})}),children:[{path:"login",element:e.login},{path:"",element:e.root??v.jsx(v.Fragment,{}),children:[{path:"",element:v.jsx(C.Page,{header:r,sidebar:v.jsx(gP,{navigation:t}),children:v.jsx(hP,{children:v.jsx(Rt.Outlet,{})})}),children:t}]},{path:"*",element:v.jsx(Ixe,{})}]}],[r,t,e.login,e.root]),a=x.useMemo(()=>Rt.createBrowserRouter(i,{basename:n}),[n,i]);return v.jsx(Fxe,{navigation:t,children:v.jsx(Rt.RouterProvider,{router:a})})}function Bxe(e){return e.replace(/^\//,"")}function yP(e,t){for(const n of e){if("id"in n&&n.id===t)return n;if("children"in n){const r=yP(n.children,t);if(r)return r}}}function bP(e,t){for(let n=0;n<e.length;n++){const r=e[n];if("id"in r&&r.id===t)return e.splice(n,1),r;if("children"in r){const i=bP(r.children,t);if(i)return i}}}function _P(e,t,n){for(const r of e)if("id"in r&&r.id===t){const i=r;"children"in r||(i.children=[]),i.children.push(n);return}else"children"in r&&_P(r.children,t,n)}function xP(e,t,n){for(let r=0;r<e.length;r++){const i=e[r];if("id"in i&&i.id===t){e.splice(r+1,0,n);return}else"children"in i&&xP(i.children,t,n)}}function SP(e,t,n){for(let r=0;r<e.length;r++){const i=e[r];if("id"in i&&i.id===t){e.splice(r,0,n);return}else"children"in i&&SP(i.children,t,n)}}function wP(){const e=Lxe();return(t,n)=>{let r=e[t]??"";const i=n==null?void 0:n.params,a=n==null?void 0:n.query;return r?(i&&(r=Object.keys(i).reduce((o,l)=>{let s=i[l];return s===void 0?o:(s=encodeURIComponent(s.toString()),o.replace(`:${l}`,s))},r)),a&&(r=`${r}?${Object.keys(a).map(o=>{let l=a[o];return l===void 0?"":(l=encodeURIComponent(l.toString()),`${o}=${l}`)}).join("&").replace("/&&/g","&")}`)):console.error(`Page id ${t} not found`),r}}function Rxe(){const e=Rt.useNavigate(),t=wP();return(n,r)=>{const i=t(n,r);i&&e(i)}}function OP(e){const{loading:t}=e,[n,r]=x.useState((e==null?void 0:e.initialTabIndex)??0),i=x.useCallback((s,u)=>r(u),[r]),a=x.Children.toArray(e.children),o=a.map((s,u)=>{if(x.isValidElement(s)&&s.type===My){const c=s.props.label;return v.jsx(C.Tab,{title:c||v.jsx(C.Skeleton,{width:"60px"}),eventKey:u},c??u)}return s}),l=a[n];return t?v.jsx(OP,{children:v.jsx(My,{children:v.jsx(C.PageSection,{variant:"light",children:v.jsx(C.Skeleton,{})})})}):v.jsxs(v.Fragment,{children:[v.jsx(C.PageSection,{type:C.PageSectionTypes.tabs,className:"border-bottom",children:v.jsxs(C.Flex,{spaceItems:{default:"spaceItemsNone"},children:[e.preComponents&&v.jsxs(v.Fragment,{children:[v.jsx(C.FlexItem,{children:e.preComponents}),v.jsx(C.Divider,{orientation:{default:"vertical"},component:"div"})]}),v.jsx(C.FlexItem,{grow:{default:"grow"},children:v.jsx(C.Tabs,{activeKey:n,onSelect:i,inset:e.preComponents?void 0:{default:"insetNone",sm:"insetNone",md:"insetNone",lg:"insetNone",xl:"insetSm","2xl":"insetSm"},hasBorderBottom:!1,children:o})}),e.postComponents&&v.jsxs(v.Fragment,{children:[v.jsx(C.Divider,{orientation:{default:"vertical"}}),v.jsx(C.FlexItem,{style:{paddingRight:16},children:e.postComponents})]})]})}),l]})}function My(e){return v.jsx(v.Fragment,{children:e.children})}function Wxe(e){const{activeKey:t,setActiveKey:n}=e,r=x.useCallback((i,a)=>n(a),[n]);return v.jsx(C.PageSection,{type:C.PageSectionTypes.tabs,style:{flexGrow:1},children:v.jsx(C.Tabs,{activeKey:t,onSelect:r,inset:{default:"insetNone",sm:"insetNone",md:"insetNone",lg:"insetNone",xl:"insetSm","2xl":"insetSm"},children:e.children})})}const zxe=U3`
532
+ ${o}${y}`}else g=`${p}${s}${h.join(" ")}${s}${y}`;return e&&(g+=$a(g,o,u(e)),a&&a()),g}function Xd({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,"")),r){const a=Js(t(r),e);n.push(a.trimStart())}}function La(e,t){const n=It(t)?t.value:t;for(const r of e)if(Ut(r)&&(r.key===t||r.key===n||It(r.key)&&r.key.value===n))return r}class tl extends Ud{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Da,t),this.items=[]}static from(t,n,r){const{keepUndefined:i,replacer:a}=r,o=new this(t),l=(s,u)=>{if(typeof a=="function")u=a.call(n,s,u);else if(Array.isArray(a)&&!a.includes(s))return;(u!==void 0||i)&&o.items.push(Ay(s,u,r))};if(n instanceof Map)for(const[s,u]of n)l(s,u);else if(n&&typeof n=="object")for(const s of Object.keys(n))l(s,n[s]);return typeof t.sortMapEntries=="function"&&o.items.sort(t.sortMapEntries),o}add(t,n){var o;let r;Ut(t)?r=t:!t||typeof t!="object"||!("key"in t)?r=new gi(t,t==null?void 0:t.value):r=new gi(t.key,t.value);const i=La(this.items,r.key),a=(o=this.schema)==null?void 0:o.sortMapEntries;if(i){if(!n)throw new Error(`Key ${r.key} already set`);It(i.value)&&tP(r.value)?i.value.value=r.value:i.value=r.value}else if(a){const l=this.items.findIndex(s=>a(r,s)<0);l===-1?this.items.push(r):this.items.splice(l,0,r)}else this.items.push(r)}delete(t){const n=La(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){const r=La(this.items,t),i=r==null?void 0:r.value;return(!n&&It(i)?i.value:i)??void 0}has(t){return!!La(this.items,t)}set(t,n){this.add(new gi(t,n),!0)}toJSON(t,n,r){const i=r?new r:n!=null&&n.mapAsMap?new Map:{};n!=null&&n.onCreate&&n.onCreate(i);for(const a of this.items)oP(n,i,a);return i}toString(t,n,r){if(!t)return JSON.stringify(this);for(const i of this.items)if(!Ut(i))throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),lP(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}class sP extends Ud{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(Ys,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=Jd(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const r=Jd(t);if(typeof r!="number")return;const i=this.items[r];return!n&&It(i)?i.value:i}has(t){const n=Jd(t);return typeof n=="number"&&n<this.items.length}set(t,n){const r=Jd(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);const i=this.items[r];It(i)&&tP(n)?i.value=n:this.items[r]=n}toJSON(t,n){const r=[];n!=null&&n.onCreate&&n.onCreate(r);let i=0;for(const a of this.items)r.push(pr(a,String(i++),n));return r}toString(t,n,r){return t?lP(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:r,onComment:n}):JSON.stringify(this)}static from(t,n,r){const{replacer:i}=r,a=new this(t);if(n&&Symbol.iterator in Object(n)){let o=0;for(let l of n){if(typeof i=="function"){const s=n instanceof Set?l:String(o++);l=i.call(n,s,l)}a.items.push(Vd(l,void 0,r))}}return a}}function Jd(e){let t=It(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}function Exe(e,t,n){const{replacer:r}=n,i=new sP(e);i.tag="tag:yaml.org,2002:pairs";let a=0;if(t&&Symbol.iterator in Object(t))for(let o of t){typeof r=="function"&&(o=r.call(t,String(a++),o));let l,s;if(Array.isArray(o))if(o.length===2)l=o[0],s=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){const u=Object.keys(o);if(u.length===1)l=u[0],s=o[l];else throw new TypeError(`Expected tuple with one key, not ${u.length} keys`)}else l=o;i.items.push(Ay(l,s,n))}return i}class Ty extends sP{constructor(){super(),this.add=tl.prototype.add.bind(this),this.delete=tl.prototype.delete.bind(this),this.get=tl.prototype.get.bind(this),this.has=tl.prototype.has.bind(this),this.set=tl.prototype.set.bind(this),this.tag=Ty.tag}toJSON(t,n){if(!n)return super.toJSON(t);const r=new Map;n!=null&&n.onCreate&&n.onCreate(r);for(const i of this.items){let a,o;if(Ut(i)?(a=pr(i.key,"",n),o=pr(i.value,a,n)):a=pr(i,"",n),r.has(a))throw new Error("Ordered maps must not include duplicate keys");r.set(a,o)}return r}static from(t,n,r){const i=Exe(t,n,r),a=new this;return a.items=i.items,a}}Ty.tag="tag:yaml.org,2002:omap";class ky extends tl{constructor(t){super(t),this.tag=ky.tag}add(t){let n;Ut(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new gi(t.key,null):n=new gi(t,null),La(this.items,n.key)||this.items.push(n)}get(t,n){const r=La(this.items,t);return!n&&Ut(r)?It(r.key)?r.key.value:r.key:r}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const r=La(this.items,t);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new gi(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,r){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,r);throw new Error("Set items must all have null values")}static from(t,n,r){const{replacer:i}=r,a=new this(t);if(n&&Symbol.iterator in Object(n))for(let o of n)typeof i=="function"&&(o=i.call(n,o,o)),a.items.push(Ay(o,null,r));return a}}ky.tag="tag:yaml.org,2002:set";class Qd extends Error{constructor(t,n,r,i,a){super(t),this.details=n,this.statusCode=r,this.body=i,this.json=a,Object.setPrototypeOf(this,Qd.prototype),this.name="RequestError"}}function Pxe(e){const{defaultValue:t,disableBody:n,disablePadding:r}=e,i=Xpe({defaultValues:t??{}}),[a]=gt(),{handleSubmit:o,setError:l}=i,[s,u]=x.useState(null),c=un("md"),[f]=x.useContext(qa),d=e.isVertical?!1:f.formLayout==="horizontal",g=(e.singleColumn?!1:f.formColumns==="multiple")?1600:d?960:800,p=_=>{if(_ instanceof Error?u(_):u(new Error("Unknown error")),typeof _=="object"&&_!==null&&"json"in _&&typeof _.json=="object"&&_.json!==null)for(const b in _.json){let S=_.json[b];typeof S=="string"?l(b,{message:S}):Array.isArray(S)&&(S=S[0],typeof S=="string"&&l(b,{message:S}))}};let y=v.jsx(Fpe,{...i,children:v.jsxs(C.Form,{onSubmit:o(async(_,b)=>{var O,w;u(null);let S=!1;b!==void 0&&((O=b==null?void 0:b.nativeEvent)!=null&&O.submitter)&&(S=((w=b.nativeEvent.submitter)==null?void 0:w.innerHTML)===e.additionalActionText);try{await e.onSubmit(_,A=>u(new Error(A)),l,S?i:void 0)}catch(A){p(A)}}),isHorizontal:d,autoComplete:"off",style:{display:"flex",flexDirection:"column",flexGrow:1,overflow:e.disableScrolling?void 0:"hidden",gap:0},children:[e.disableScrolling?v.jsx("div",{style:{maxWidth:g,padding:r?void 0:24},children:v.jsx(Ey,{isVertical:e.isVertical,singleColumn:e.singleColumn,children:e.children})}):v.jsx("div",{style:{height:"100%",flexGrow:1,overflow:"auto"},children:v.jsx("div",{style:{maxWidth:g,padding:r?void 0:24},children:v.jsx(Ey,{isVertical:e.isVertical,singleColumn:e.singleColumn,children:e.children})})}),s&&v.jsx(C.Alert,{variant:"danger",title:s.message??"",isInline:!0,style:{paddingLeft:c&&e.onCancel?190:void 0},isExpandable:s instanceof Qd?!!s.details:!1,children:s instanceof Qd?s.details:void 0}),e.onCancel?v.jsx("div",{className:"dark-2 border-top",style:{padding:r?void 0:24},children:v.jsxs(C.ActionGroup,{style:{marginTop:0},children:[v.jsx(Py,{children:e.submitText}),e.additionalActionText?v.jsx(C.Button,{"aria-label":e.additionalActionText,type:"submit",variant:"secondary",children:e.additionalActionText}):null,e.onCancel&&v.jsx(uP,{onCancel:e.onCancel,children:e.cancelText??a.cancelText})]})}):v.jsx(Py,{style:{marginTop:48},children:e.submitText})]})});return n||(y=v.jsx(Ob,{children:y})),y}function Ey(e){const[t]=x.useContext(qa),n=e.isVertical?!1:t.formLayout==="horizontal",r=e.singleColumn?!1:t.formColumns==="multiple",i=12,a=r?n?12:6:12,o=r?6:12,l=r?6:12,s=r?4:12;return v.jsx(C.Grid,{hasGutter:!0,span:12,sm:i,md:a,lg:o,xl:l,xl2:s,children:e.children})}function Py(e){const{isSubmitting:t,errors:n}=n6(),{t:r}=yt(),i=n&&Object.keys(n).length>0;return v.jsx(C.Tooltip,{content:r("Please fix errors"),trigger:i?void 0:"manual",children:v.jsx(C.Button,{type:"submit",isDisabled:t,isLoading:t,isDanger:i,variant:i?"secondary":void 0,style:e.style,children:e.children})})}function uP(e){return v.jsx(C.Button,{type:"button",variant:"link",onClick:e.onCancel,children:e.children})}const nOe="",jy=x.createContext({isOpen:!1,setState:()=>({})});function eu(){return x.useContext(jy)}function cP(e){const t=un("xl"),[n,r]=x.useState(()=>t),i=x.useCallback(a=>{a.isOpen!==void 0&&r(a.isOpen)},[]);return x.useEffect(()=>i({isOpen:t}),[t,i]),v.jsx(jy.Provider,{value:{isOpen:n,setState:i},children:e.children})}function fP(){const e=Rt.useNavigate(),t=un("xl"),n=eu();return x.useCallback(i=>{e(i),t||n.setState({isOpen:!n.isOpen})},[e,t,n])}function dP(e){return v.jsx(vb,{children:v.jsx(Tb,{children:v.jsx(Ab,{children:v.jsx(Sb,{children:v.jsx(cP,{children:e.children})})})})})}function jxe(e){const t=Rt.useNavigate();return e.breadcrumbs?v.jsx(C.Breadcrumb,{style:e.style,children:e.breadcrumbs.map((n,r)=>n.label?v.jsx(C.BreadcrumbItem,{id:n.id,component:n.component,isActive:n.to===void 0,children:n.to?v.jsx("a",{href:n.to,onClick:i=>{i.preventDefault(),n.to&&t(n.to)},children:n.label}):n.label},n.id??n.label??r):v.jsx(x.Fragment,{},r))}):v.jsx(x.Fragment,{})}function Mxe(e){const{breadcrumbs:t,title:n,description:r,controls:i,headerActions:a,footer:o}=e,l=un("lg"),s=un("xl"),u=un("md"),f=eu().isOpen&&s?void 0:e.navigation,[d]=gt();return v.jsxs(v.Fragment,{children:[f&&v.jsx(C.PageSection,{variant:C.PageSectionVariants.light,className:"border-top dark-1",style:{paddingLeft:0,paddingTop:0,paddingBottom:0},children:v.jsx(C.Flex,{direction:{default:"row"},flexWrap:{default:"nowrap"},style:{maxWidth:"100%"},children:v.jsx(C.PageNavigation,{style:{paddingTop:0,flexShrink:1,flexGrow:1},children:f})})}),v.jsx(C.PageSection,{variant:C.PageSectionVariants.light,className:"border-top border-bottom dark-2",style:{paddingTop:s?16:12,paddingBottom:s?16:12},children:v.jsxs(C.Stack,{hasGutter:!0,children:[v.jsxs(C.Flex,{flexWrap:{default:"nowrap"},alignItems:{default:"alignItemsStretch"},children:[v.jsxs(C.FlexItem,{grow:{default:"grow"},children:[t&&v.jsx(jxe,{breadcrumbs:t,style:{paddingBottom:l?6:4}}),n?e.titleHelp?v.jsx(C.Popover,{headerContent:e.titleHelpTitle,bodyContent:v.jsxs(C.Stack,{hasGutter:!0,children:[typeof e.titleHelp=="string"?v.jsx(C.StackItem,{children:e.titleHelp}):e.titleHelp.map((h,g)=>v.jsx(C.StackItem,{children:h},g)),e.titleDocLink&&v.jsx(C.StackItem,{children:v.jsx(C.Button,{icon:v.jsx(Ce.ExternalLinkAltIcon,{}),variant:"link",onClick:()=>window.open(e.titleDocLink,"_blank"),isInline:!0,children:d.documentation})})]}),position:"bottom-start",removeFindDomNode:!0,children:v.jsxs(C.Title,{headingLevel:"h1",children:[n,v.jsx(C.Button,{variant:"link",style:{padding:0,marginTop:1,marginLeft:8,verticalAlign:"top"},children:v.jsx(Ce.OutlinedQuestionCircleIcon,{})})]})}):v.jsx(C.Title,{headingLevel:"h1",children:n}):v.jsx(C.Title,{headingLevel:"h1",children:v.jsx(C.Skeleton,{width:"160px"})}),u&&r&&v.jsx(C.Text,{component:"p",style:{paddingTop:s?4:2,opacity:.8},children:typeof r=="string"?v.jsx(C.Truncate,{content:r}):v.jsx(C.Stack,{children:r.map(h=>v.jsx(C.StackItem,{children:h},h))})})]}),n&&(a||i)&&v.jsxs(C.Flex,{direction:{default:"column"},spaceItems:{default:"spaceItemsSm",xl:"spaceItemsMd"},justifyContent:{default:"justifyContentCenter"},children:[i&&v.jsx(C.FlexItem,{grow:{default:"grow"},children:i}),a&&v.jsx(C.FlexItem,{children:a})]})]}),o]})})]})}function hP(e){const[t]=gt();return v.jsx(wb,{message:t.errorText,children:v.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%",maxHeight:"100%",backgroundColor:"var(--pf-global--BackgroundColor--100)"},children:e.children})})}function Dxe(e){const t=un("sm");return v.jsxs(C.Masthead,{display:{default:"inline"},children:[v.jsx(mP,{}),v.jsx(C.MastheadMain,{children:v.jsx(C.MastheadBrand,{children:e.icon})}),v.jsx(C.MastheadContent,{style:{marginLeft:0},children:v.jsx(C.Toolbar,{id:"toolbar",inset:{default:"insetNone"},children:v.jsxs(C.ToolbarContent,{children:[t&&v.jsx(C.ToolbarItem,{children:v.jsxs(C.Stack,{style:{color:"white",cursor:"default",marginTop:-2,marginBottom:-2},children:[e.brand&&v.jsx(C.Text,{style:{marginTop:-6},children:v.jsx(C.Truncate,{content:e.brand,style:{minWidth:0}})}),v.jsx(C.Title,{headingLevel:"h1",style:{lineHeight:1},children:v.jsx(C.Truncate,{content:e.title,style:{minWidth:0}})})]})}),e.children]})})})]})}function mP(){const e=eu();return v.jsx(C.MastheadToggle,{onClick:()=>e.setState({isOpen:!e.isOpen}),children:v.jsx(C.PageToggleButton,{variant:"plain","aria-label":"Global navigation",children:v.jsx(Ce.BarsIcon,{})})})}function Ixe(e){const{t}=yt(),n=Rt.useNavigate(),{dashboardUrl:r}=e;return React.createElement(C.Page,null,React.createElement(C.EmptyState,{variant:C.EmptyStateVariant.small,style:{paddingTop:48}},React.createElement(C.EmptyStateIcon,{icon:Ce.ExclamationCircleIcon}),React.createElement(C.Title,{headingLevel:"h2",size:"lg"},t("We could not find that page")),React.createElement(C.EmptyStateSecondaryActions,null,React.createElement(C.Stack,{hasGutter:!0},React.createElement(C.Button,{onClick:()=>n(-1)},t("Return to previous page")),React.createElement(C.Button,{component:i=>React.createElement(Rt.Link,{to:r,...i})},t("Return to dashboard"))))))}function gP(e){const{navigation:t}=e,n=eu();return v.jsx(C.PageSidebar,{isNavOpen:n.isOpen,nav:v.jsx(C.Nav,{children:v.jsx(C.NavList,{children:v.jsx(eh,{baseRoute:"",items:t})})})})}function eh(e){return v.jsx(v.Fragment,{children:e.items.map((t,n)=>v.jsx($xe,{item:t,baseRoute:e.baseRoute},n))})}function $xe(e){let t;if("id"in e.item)t=e.item.id;else if("children"in e.item){const a=e.item.children.find(o=>o.path==="");a&&"id"in a&&(t=a.id)}const n=fP(),{item:r}=e;let i=e.baseRoute+"/"+r.path;return i=i.replace("//","/"),r.path==="/"&&"children"in r?v.jsx(eh,{items:r.children,baseRoute:""}):"children"in r&&r.children.find(a=>a.label!==void 0)!==void 0?r.label===void 0?v.jsx(v.Fragment,{}):r.label===""?v.jsx(eh,{items:r.children,baseRoute:i}):v.jsx(C.NavExpandable,{title:r.label,isActive:location.pathname.startsWith(i),isExpanded:!0,children:v.jsx(eh,{items:r.children,baseRoute:i})}):"label"in r?v.jsx(C.NavItem,{id:t,isActive:location.pathname.startsWith(i),onClick:()=>n(i),"data-cy":t,children:r.label}):v.jsx(v.Fragment,{})}const pP=x.createContext({});function Lxe(){return x.useContext(pP)}function Fxe(e){const t=x.useMemo(()=>vP("",e.navigation),[e.navigation]);return v.jsx(pP.Provider,{value:t,children:e.children})}function vP(e,t){const n={};return t.forEach(r=>{const i=(e+"/"+r.path).replace("//","/");"id"in r&&typeof r.id=="string"&&(n[r.id]=i),"children"in r&&Object.assign(n,vP(i,r.children))}),n}function Nxe(e){const{navigation:t,basename:n,masthead:r}=e,i=x.useMemo(()=>[{path:"",element:v.jsx(dP,{children:v.jsx(Rt.Outlet,{})}),children:[{path:"login",element:e.login},{path:"",element:e.root??v.jsx(v.Fragment,{}),children:[{path:"",element:v.jsx(C.Page,{header:r,sidebar:v.jsx(gP,{navigation:t}),children:v.jsx(hP,{children:v.jsx(Rt.Outlet,{})})}),children:t}]},{path:"*",element:v.jsx(Ixe,{})}]}],[r,t,e.login,e.root]),a=x.useMemo(()=>Rt.createBrowserRouter(i,{basename:n}),[n,i]);return v.jsx(Fxe,{navigation:t,children:v.jsx(Rt.RouterProvider,{router:a})})}function Bxe(e){return e.replace(/^\//,"")}function yP(e,t){for(const n of e){if("id"in n&&n.id===t)return n;if("children"in n){const r=yP(n.children,t);if(r)return r}}}function bP(e,t){for(let n=0;n<e.length;n++){const r=e[n];if("id"in r&&r.id===t)return e.splice(n,1),r;if("children"in r){const i=bP(r.children,t);if(i)return i}}}function _P(e,t,n){for(const r of e)if("id"in r&&r.id===t){const i=r;"children"in r||(i.children=[]),i.children.push(n);return}else"children"in r&&_P(r.children,t,n)}function xP(e,t,n){for(let r=0;r<e.length;r++){const i=e[r];if("id"in i&&i.id===t){e.splice(r+1,0,n);return}else"children"in i&&xP(i.children,t,n)}}function SP(e,t,n){for(let r=0;r<e.length;r++){const i=e[r];if("id"in i&&i.id===t){e.splice(r,0,n);return}else"children"in i&&SP(i.children,t,n)}}function wP(){const e=Lxe();return(t,n)=>{let r=e[t]??"";const i=n==null?void 0:n.params,a=n==null?void 0:n.query;return r?(i&&(r=Object.keys(i).reduce((o,l)=>{let s=i[l];return s===void 0?o:(s=encodeURIComponent(s.toString()),o.replace(`:${l}`,s))},r)),a&&(r=`${r}?${Object.keys(a).map(o=>{let l=a[o];return l===void 0?"":(l=encodeURIComponent(l.toString()),`${o}=${l}`)}).join("&").replace("/&&/g","&")}`)):console.error(`Page id ${t} not found`),r}}function Rxe(){const e=Rt.useNavigate(),t=wP();return(n,r)=>{const i=t(n,r);i&&e(i)}}function OP(e){const{loading:t}=e,[n,r]=x.useState((e==null?void 0:e.initialTabIndex)??0),i=x.useCallback((s,u)=>r(u),[r]),a=x.Children.toArray(e.children),o=a.map((s,u)=>{if(x.isValidElement(s)&&s.type===My){const c=s.props.label;return v.jsx(C.Tab,{title:c||v.jsx(C.Skeleton,{width:"60px"}),eventKey:u},c??u)}return s}),l=a[n];return t?v.jsx(OP,{children:v.jsx(My,{children:v.jsx(C.PageSection,{variant:"light",children:v.jsx(C.Skeleton,{})})})}):v.jsxs(v.Fragment,{children:[v.jsx(C.PageSection,{type:C.PageSectionTypes.tabs,className:"border-bottom",children:v.jsxs(C.Flex,{spaceItems:{default:"spaceItemsNone"},children:[e.preComponents&&v.jsxs(v.Fragment,{children:[v.jsx(C.FlexItem,{children:e.preComponents}),v.jsx(C.Divider,{orientation:{default:"vertical"},component:"div"})]}),v.jsx(C.FlexItem,{grow:{default:"grow"},children:v.jsx(C.Tabs,{activeKey:n,onSelect:i,inset:e.preComponents?void 0:{default:"insetNone",sm:"insetNone",md:"insetNone",lg:"insetNone",xl:"insetSm","2xl":"insetSm"},hasBorderBottom:!1,children:o})}),e.postComponents&&v.jsxs(v.Fragment,{children:[v.jsx(C.Divider,{orientation:{default:"vertical"}}),v.jsx(C.FlexItem,{style:{paddingRight:16},children:e.postComponents})]})]})}),l]})}function My(e){return v.jsx(v.Fragment,{children:e.children})}function Wxe(e){const{activeKey:t,setActiveKey:n}=e,r=x.useCallback((i,a)=>n(a),[n]);return v.jsx(C.PageSection,{type:C.PageSectionTypes.tabs,style:{flexGrow:1},children:v.jsx(C.Tabs,{activeKey:t,onSelect:r,inset:{default:"insetNone",sm:"insetNone",md:"insetNone",lg:"insetNone",xl:"insetSm","2xl":"insetSm"},children:e.children})})}const zxe=U3`
533
533
  from {
534
534
  transform: rotate(0);
535
535
  }
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.467",
4
+ "version": "2.4.468",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",