@ansible/ansible-ui-framework 2.4.2689 → 2.4.2690
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{ChatbotPortal-VfOB_sKl.js → ChatbotPortal-8b6c2VBp.js} +1 -1
- package/{ChatbotSideBarHeader-CdpuQXeU.js → ChatbotSideBarHeader-adGGkiSe.js} +1 -1
- package/{index-D3symSiJ.js → index-Cx89Cxcl.js} +2 -2
- package/index.js +1 -1
- package/index.umd.cjs +1 -1
- package/package.json +1 -1
- package/publish/index.d.ts +154 -154
- /package/publish/{ChatbotPortal-VfOB_sKl.d.ts → ChatbotPortal-8b6c2VBp.d.ts} +0 -0
- /package/publish/{ChatbotSideBarHeader-CdpuQXeU.d.ts → ChatbotSideBarHeader-adGGkiSe.d.ts} +0 -0
- /package/publish/{index-D3symSiJ.d.ts → index-Cx89Cxcl.d.ts} +0 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
import { u as He, j as M } from "./index-
|
1
|
+
import { u as He, j as M } from "./index-Cx89Cxcl.js";
|
2
2
|
import { useContext as je, createContext as Oe, useState as Se, useEffect as Be, useRef as Ze } from "react";
|
3
3
|
import Ye from "react-dom";
|
4
4
|
import { A as Te } from "./ansible-chatbot-jXPBfTRi.js";
|
@@ -3039,7 +3039,7 @@ const d8 = an({
|
|
3039
3039
|
chatbotState: "disabled",
|
3040
3040
|
setChatbotState: () => {
|
3041
3041
|
}
|
3042
|
-
}), f8 = () => kt(d8), h8 = fE(() => import("./ChatbotPortal-
|
3042
|
+
}), f8 = () => kt(d8), h8 = fE(() => import("./ChatbotPortal-8b6c2VBp.js")), p8 = () => /* @__PURE__ */ p.jsx(hE, { fallback: /* @__PURE__ */ p.jsx("div", { children: "Loading..." }), children: /* @__PURE__ */ p.jsx(h8, {}) }), g8 = fE(() => import("./ChatbotSideBarHeader-adGGkiSe.js")), m8 = () => {
|
3043
3043
|
const { t: e } = Pe();
|
3044
3044
|
return /* @__PURE__ */ p.jsx(hE, { fallback: /* @__PURE__ */ p.jsx("span", { children: e("Loading...") }), children: /* @__PURE__ */ p.jsx(g8, {}) });
|
3045
3045
|
}, y8 = Ae(DR)`
|
@@ -33352,7 +33352,7 @@ function Wae(e) {
|
|
33352
33352
|
}
|
33353
33353
|
) }),
|
33354
33354
|
/* @__PURE__ */ p.jsxs(Ro, { align: { default: "alignEnd" }, children: [
|
33355
|
-
/* @__PURE__ */ p.jsx(
|
33355
|
+
m !== "table" && /* @__PURE__ */ p.jsx(
|
33356
33356
|
$ae,
|
33357
33357
|
{
|
33358
33358
|
sort: s,
|
package/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { $ as s, B as o, A as t, C as r, aW as l, aY as i, aV as n, aX as g, aZ as b, aU as u, aQ as P, D as d, af as m, ae as C, E as c, bo as T, bm as D, F as p, G as S, bs as h, ab as F, H as v, k as B, I as f, L as I, a2 as A, P as y, r as N, q as x, s as k, t as w, w as E, y as O, z as L, J as M, M as V, N as R, Q as W, O as j, K as G, U as z, X as U, V as H, Y as q, aP as Q, Z as J, _ as K, a4 as X, W as Y, an as Z, aq as _, ac as $, ad as aa, ao as ea, ai as sa, ap as oa, aj as ta, ak as ra, al as la, ar as ia, as as na, at as ga, au as ba, av as ua, aF as Pa, aH as da, ay as ma, a9 as Ca, aa as ca, aw as Ta, aL as Da, aM as pa, bg as Sa, aN as ha, aR as Fa, aT as va, bf as Ba, ax as fa, bh as Ia, bj as Aa, br as ya, R as Na, S as xa, a8 as ka, aO as wa, a_ as Ea, T as Oa, bn as La, bi as Ma, bq as Va, bp as Ra, aC as Wa, aD as ja, aE as Ga, bz as za, by as Ua, bx as Ha, bw as qa, x as Qa, bB as Ja, aA as Ka, g as Xa, bk as Ya, ah as Za, bA as _a, a as $a, e as ae, c as ee, f as se, p as oe, i as te, h as re, b as le, az as ie, aB as ne, bl as ge, n as be, a0 as ue, a1 as Pe, aS as de, b8 as me, b7 as Ce, b3 as ce, b5 as Te, b6 as De, bd as pe, am as Se, bt as he, aJ as Fe, bu as ve, a3 as Be, o as fe, v as Ie, a6 as Ae, a5 as ye, aI as Ne, aG as xe, aK as ke, u as we, be as Ee, l as Oe, a7 as Le, ba as Me, bb as Ve, bc as Re, b9 as We, bv as je, b1 as Ge, b4 as ze, b0 as Ue, b2 as He, a$ as qe, m as Qe, ag as Je } from "./index-
|
1
|
+
import { $ as s, B as o, A as t, C as r, aW as l, aY as i, aV as n, aX as g, aZ as b, aU as u, aQ as P, D as d, af as m, ae as C, E as c, bo as T, bm as D, F as p, G as S, bs as h, ab as F, H as v, k as B, I as f, L as I, a2 as A, P as y, r as N, q as x, s as k, t as w, w as E, y as O, z as L, J as M, M as V, N as R, Q as W, O as j, K as G, U as z, X as U, V as H, Y as q, aP as Q, Z as J, _ as K, a4 as X, W as Y, an as Z, aq as _, ac as $, ad as aa, ao as ea, ai as sa, ap as oa, aj as ta, ak as ra, al as la, ar as ia, as as na, at as ga, au as ba, av as ua, aF as Pa, aH as da, ay as ma, a9 as Ca, aa as ca, aw as Ta, aL as Da, aM as pa, bg as Sa, aN as ha, aR as Fa, aT as va, bf as Ba, ax as fa, bh as Ia, bj as Aa, br as ya, R as Na, S as xa, a8 as ka, aO as wa, a_ as Ea, T as Oa, bn as La, bi as Ma, bq as Va, bp as Ra, aC as Wa, aD as ja, aE as Ga, bz as za, by as Ua, bx as Ha, bw as qa, x as Qa, bB as Ja, aA as Ka, g as Xa, bk as Ya, ah as Za, bA as _a, a as $a, e as ae, c as ee, f as se, p as oe, i as te, h as re, b as le, az as ie, aB as ne, bl as ge, n as be, a0 as ue, a1 as Pe, aS as de, b8 as me, b7 as Ce, b3 as ce, b5 as Te, b6 as De, bd as pe, am as Se, bt as he, aJ as Fe, bu as ve, a3 as Be, o as fe, v as Ie, a6 as Ae, a5 as ye, aI as Ne, aG as xe, aK as ke, u as we, be as Ee, l as Oe, a7 as Le, ba as Me, bb as Ve, bc as Re, b9 as We, bv as je, b1 as Ge, b4 as ze, b0 as Ue, b2 as He, a$ as qe, m as Qe, ag as Je } from "./index-Cx89Cxcl.js";
|
2
2
|
export {
|
3
3
|
s as BulkActionDialog,
|
4
4
|
o as BulkSelector,
|
package/index.umd.cjs
CHANGED
@@ -446,7 +446,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[sT]+=1);const cT=Rn.button`
|
|
446
446
|
`,Spe=w.createContext({open:!1,setOpen:()=>{}});function Epe(e){const{t}=Wn(),{queryOptions:n,writeInOption:r}=e,[a,o]=w.useState(!1),[i,l]=w.useState(!1),[s,c]=w.useState(),[p,f]=w.useState(0),[g,v]=w.useState(),[b,y]=w.useState(!1),x=w.useRef(),[E,C]=w.useState(""),I=w.useCallback(Aj(U=>C(U),200),[]),N=w.useRef(e.onSelect).current,O=w.useRef(null),P=w.useCallback(()=>{O.current&&O.current.abort();const U=new AbortController;return O.current=U,o(()=>(l(!1),c(void 0),v(F=>{if(F)return F}),n({next:x.current,signal:U.signal,search:E}).then(F=>{U.signal.aborted||(x.current=F.next,F.remaining||l(!0),v(j=>{let W=[...j??[],...F.options];const Y=new Set;return W=W.filter(K=>Y.has(K.value)?!1:(Y.add(K.value),!0)),W.sort((K,ae)=>{const oe=K.label.toLowerCase(),te=ae.label.toLowerCase();return oe<te?-1:oe>te?1:0}),!E&&F.remaining===0&&W.length===1&&N(W[0].value),f(F.remaining+W.length),r&&F.remaining+W.length===0&&W.push(r(E)),W}))}).catch(F=>{U.signal.aborted||c(F instanceof Error?F:new Error(t("Unknown error")))}).finally(()=>{U.signal.aborted||o(!1)}),!0)),()=>U.abort()},[N,n,E,t,r]),M=w.useCallback(U=>{U.preventDefault(),U.stopPropagation(),P()},[P]),L=w.useCallback(U=>{U.preventDefault(),U.stopPropagation(),f(0),v([]),y(!0),x.current=void 0,P()},[P]);w.useEffect(()=>{b&&(f(0),v([]),x.current=void 0,P())},[b,P]),w.useEffect(()=>{s&&y(!1)},[s]);const H=R.jsxs(X.Stack,{hasGutter:!0,children:[R.jsxs(X.Flex,{children:[R.jsx(X.FlexItem,{grow:{default:"grow"},children:R.jsxs(X.ActionList,{children:[!i&&R.jsx(X.ActionListItem,{children:R.jsx(X.Button,{id:"load-more",isLoading:a,onClick:M,isDisabled:a,children:t(a?"Loading...":"Load more")})}),e.onBrowse&&R.jsx(X.ActionListItem,{children:R.jsx(X.Button,{id:"browse",onClick:U=>{var F;U.preventDefault(),U.stopPropagation(),y(!1),(F=e.onBrowse)==null||F.call(e)},variant:"secondary",children:t("Browse")})})]})}),!i&&p!==0&&R.jsx(X.FlexItem,{children:t("Loaded {{count}} of {{total}}",{count:(g==null?void 0:g.length)??0,total:p})})]}),e.footer]});return R.jsx(Xp,{id:e.id,icon:e.icon,placeholder:e.placeholder,options:g??[],value:e.value,onSelect:e.onSelect,isDisabled:e.isDisabled,footer:H,open:b,setOpen:y,searchValue:E,setSearchValue:I,isLoading:a,queryLabel:e.queryLabel,disableAutoSelect:!0,isRequired:e.isRequired,toggle:s?U=>R.jsx(yet,{ref:U,id:e.id,variant:"secondary",isDanger:!0,icon:R.jsx(Vt.SyncAltIcon,{}),onClick:L,children:typeof e.queryErrorText=="function"?e.queryErrorText(s):e.queryErrorText??t("Error loading options")}):void 0,disableMaxDropdownWidth:e.disableMaxDropdownWidth})}const yet=Rn(X.Button)`
|
447
447
|
width: 100%;
|
448
448
|
text-align: left;
|
449
|
-
`;var sy=(e=>(e.LastHour="lastHour",e.Last24Hours="last24hours",e.LastWeek="last7days",e.LastMonth="last30days",e))(sy||{});function wpe(e){const{filterValues:t,id:n,setFilterValues:r,placeholder:a,isRequired:o,defaultValue:i}=e,l=t&&t.length>0?t[0]:void 0,s=e.options.find(b=>b.value===l);o&&!s&&r(()=>[i??e.options[0].value]);function c(b){if(b===null)return;e.options.find(x=>x.value===b)&&r(()=>[b])}const[p,f]=w.useState(()=>{if(t&&t.length>1)return t[1]}),[g,v]=w.useState(()=>{if(t&&t.length>2)return t[2]});return w.useEffect(()=>{if(s&&s.isCustom){const b=[s.value];p&&(b.push(p),g&&b.push(g)),r(()=>b)}},[s,p,g,r]),R.jsxs(X.ToolbarItem,{children:[R.jsx(Xp,{value:(s==null?void 0:s.value)??"",id:n,onSelect:c,options:e.options,placeholder:a,disableSortOptions:!0}),s&&s.isCustom&&R.jsx(Cpe,{to:g,setTo:v,from:p,setFrom:f})]})}function Cpe(e){const{to:t,setTo:n,from:r,setFrom:a}=e,{t:o}=Wn(),i=(p,f)=>{a(f)},l=(p,f)=>{n(f)},s=r?new Date(r):void 0,c=p=>s?X.isValidDate(s)&&p>=s?"":o('The "to" date must be after the "from" date'):"";return R.jsxs(R.Fragment,{children:[R.jsx(X.DatePicker,{value:r,onChange:i,"aria-label":"Start date",placeholder:"YYYY-MM-DD","data-cy":"toolbar-date-picker"}),R.jsx("div",{style:{alignSelf:"baseline",padding:6},children:o("to")}),R.jsx(X.DatePicker,{value:t,onChange:l,isDisabled:!s||!X.isValidDate(s),rangeStart:s,validators:[c],"aria-label":"End date",placeholder:o("now"),invalidFormatText:o("Invalid date format")}),t!==void 0&&R.jsx(X.Button,{icon:R.jsx(Vt.TimesCircleIcon,{}),variant:"control",style:{alignSelf:"flex-start"},onClick:()=>n(void 0)})]})}function kpe(e){const{t}=Wn(),[n,r]=w.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 R.jsxs(X.InputGroup,{children:[R.jsx(X.InputGroupItem,{children:R.jsxs(X.TextInputGroup,{"data-cy":"text-input",style:{minWidth:220},children:[R.jsx(X.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!==""&&R.jsx(X.TextInputGroupUtilities,{children:R.jsx(X.Button,{icon:R.jsx(Vt.TimesIcon,{}),variant:"plain","aria-label":"clear filter",onClick:()=>r(""),style:{opacity:n?void 0:0},tabIndex:-1})})]})}),R.jsx(X.InputGroupItem,{children:R.jsx(X.Button,{icon:R.jsx(Vt.ArrowRightIcon,{}),variant:n?"primary":"control","data-cy":"apply-filter","aria-label":"apply filter",onClick:()=>{e.addFilter(n),r("")},tabIndex:-1,isDisabled:!n})})]})}function jI(e){const{t}=Wn(),[n,r]=w.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=w.useCallback(Aj(i=>e.setValue(i),200),[]);return w.useEffect(()=>{e.hasKey||r("")},[e.hasKey]),R.jsx(X.InputGroup,{children:R.jsx(X.InputGroupItem,{children:R.jsxs(X.TextInputGroup,{"data-cy":"text-input",style:{minWidth:220},children:[R.jsx(X.TextInputGroupMain,{id:e.id,value:n,onChange:(i,l)=>{typeof i=="string"?(r(i),o(i)):(r(l),o(l))},placeholder:a}),n!==""&&R.jsx(X.TextInputGroupUtilities,{children:R.jsx(X.Button,{icon:R.jsx(Vt.TimesIcon,{}),variant:"plain","aria-label":"clear filter",onClick:()=>{r(""),e.setValue("")},style:{opacity:n?void 0:0},tabIndex:-1})})]})})})}function Pj(e){const[t,n]=w.useState(!1),r=i=>{n(!t)},{activeGroup:a,setActiveGroup:o}=w.useContext(Tpe);return w.useEffect(()=>{t&&o(e.id)},[t,o,e.id]),w.useEffect(()=>{a!==e.id&&n(!1)},[a,e.id]),R.jsx(X.ToolbarToggleGroup,{...e,isExpanded:t,onToggle:r})}const Tpe=w.createContext({activeGroup:"",setActiveGroup:()=>{}});var Dj=(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))(Dj||{});function Rpe(e){var s;const{toolbarFilters:t,filterState:n,setFilterState:r}=e,[a,o]=w.useState(()=>t&&(t==null?void 0:t.length)>0?t[0].key:""),i=t==null?void 0:t.find(c=>c.key===a);if(!i)return R.jsx(R.Fragment,{});if(!t)return R.jsx(R.Fragment,{});if(t.length===0)return R.jsx(R.Fragment,{});let l=t.length===1;return t.length>=1&&t[0].type===3&&t[0].isPinned&&(n[t[0].key]===void 0||((s=n[t[0].key])==null?void 0:s.length)===0)&&(l=!1),R.jsx(R.Fragment,{children:t.length===1?R.jsxs(X.ToolbarItem,{children:[l&&R.jsx("div",{style:{marginTop:6,marginRight:6,whiteSpace:"nowrap"},children:t[0].label}),R.jsx(Ope,{id:"filter-input",filter:i,filterState:n,setFilterState:r,"data-cy":i,limitFiltersToOneOrOperation:e.limitFiltersToOneOrOperation})]}):R.jsxs(X.ToolbarGroup,{variant:"filter-group",children:[R.jsx(X.ToolbarItem,{children:R.jsx(Xp,{id:"filter",value:a,onSelect:o,icon:i.type===0?R.jsx(Vt.SearchIcon,{}):R.jsx(Vt.FilterIcon,{}),options:t.map(c=>({label:c.label,value:c.key})),placeholder:"","data-cy":i,disableSortOptions:!0,isRequired:!0,disableMaxDropdownWidth:!0})}),R.jsx(X.ToolbarItem,{children:R.jsx(Ope,{id:"filter-input",filter:i,filterState:n,setFilterState:r,"data-cy":i,limitFiltersToOneOrOperation:e.limitFiltersToOneOrOperation})})]})})}function Ipe(e){const{toolbarFilters:t,setFilterState:n,filterState:r}=e,[a]=Pa(),o=!Ul("md");if(!t)return R.jsx(R.Fragment,{});if(t.length===0)return R.jsx(R.Fragment,{});const i=t.filter(s=>!s.isPinned),l=t.filter(s=>!!s.isPinned);return R.jsxs(Pj,{toggleIcon:R.jsx(Vt.FilterIcon,{}),breakpoint:"md",id:"filters",children:[o&&R.jsx(X.ToolbarItem,{variant:"label",children:a.filter}),R.jsx(Rpe,{toolbarFilters:i,setFilterState:n,filterState:r,limitFiltersToOneOrOperation:e.limitFiltersToOneOrOperation}),l==null?void 0:l.map(s=>R.jsx(Rpe,{toolbarFilters:[s],setFilterState:n,filterState:r,limitFiltersToOneOrOperation:e.limitFiltersToOneOrOperation},s.key)),t==null?void 0:t.map(s=>{const c=(r==null?void 0:r[s.key])||[];return s.isPinned&&s.type===3||s.isPinned&&s.type===5?null:R.jsx(X.ToolbarFilter,{categoryName:s.label,labels:[...c.map(p=>{var f,g;switch(s.type){case 3:case 4:case 5:return((g=(f=s.options)==null?void 0:f.find(v=>v.value===p))==null?void 0:g.label)??p;case 6:case 7:return{key:p,node:s.queryLabel(p)};default:return p}})],deleteLabel:(p,f)=>{n==null||n(g=>{var y;const v={...g};switch(f=typeof f=="string"?f:f.key,s.type){case 3:case 4:case 5:f=((y=s.options.find(x=>x.label===f))==null?void 0:y.value)??f;break}let b=g[s.key];return b&&(b=b.filter(x=>x!==f),b.length===0?delete v[s.key]:v[s.key]=b),v})},deleteLabelGroup:()=>{n==null||n(p=>{const f={...p};return delete f[s.key],f})},showToolbarItem:!1,children:R.jsx(R.Fragment,{})},s.label)})]})}function Ope(e){const{filter:t,filterState:n,setFilterState:r}=e,a=n==null?void 0:n[t.key],o=w.useCallback(s=>{r(c=>{const p={...c},f=p[t.key]??[];return p[t.key]=s(f),p})},[t.key,r]),i=w.useCallback(s=>{r(c=>{const p={...c},f=p[t.key]??[];return p[t.key]=[...f,s],p})},[t.key,r]);let l=!1;if(n)for(const s in n){if(s===t.key)continue;const c=n[s];if(c&&(c==null?void 0:c.length)>=2){l=!0;break}}switch(t.type){case 0:return R.jsx(jI,{id:e.id??t.key,placeholder:t.placeholder,setValue:s=>o(()=>s?[s]:[]),value:a&&(a==null?void 0:a.length)>0?a[0]:"",hasKey:!!(n!=null&&n[t.key])},t.key);case 1:return R.jsx(jI,{id:e.id??t.key,placeholder:t.placeholder,comparison:t.comparison,setValue:s=>o(()=>s?[s]:[]),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?R.jsx(jI,{id:e.id??t.key,placeholder:t.placeholder,comparison:t.comparison,setValue:s=>o(()=>s?[s]:[]),value:a&&(a==null?void 0:a.length)>0?a[0]:"",hasKey:!!(n!=null&&n[t.key])},t.key):R.jsx(kpe,{id:e.id??t.key,addFilter:i,placeholder:t.placeholder,comparison:t.comparison},t.key);case 3:return R.jsx(Xp,{id:e.id??t.key,placeholder:t.placeholder,value:a&&(a==null?void 0:a.length)>0?a[0]:"",onSelect:s=>o(()=>[s]),options:t.options,isRequired:t.isRequired||!t.isPinned,disableSortOptions:t.disableSortOptions,disableMaxDropdownWidth:!0,disableAutoSelect:!0},t.key);case 6:return R.jsx(Epe,{id:e.id??t.key,value:a&&(a==null?void 0:a.length)>0?a[0]:"",onSelect:s=>o(()=>[s]),placeholder:t.placeholder||"",queryOptions:t.queryOptions,queryErrorText:t.queryErrorText,queryPlaceholder:t.queryPlaceholder,isRequired:t.isRequired,footer:t.openBrowse?R.jsx(Spe.Consumer,{children:s=>R.jsx(X.Button,{variant:"link",onClick:()=>{var c;s.setOpen(!1),(c=t.openBrowse)==null||c.call(t,p=>o(()=>[p]),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?R.jsx(Epe,{id:e.id??t.key,value:a&&(a==null?void 0:a.length)>0?a[0]:"",onSelect:s=>o(()=>[s]),placeholder:t.placeholder||"",queryOptions:t.queryOptions,queryErrorText:t.queryErrorText,queryPlaceholder:t.queryPlaceholder,isRequired:t.isRequired,footer:t.openBrowse?R.jsx(X.Button,{variant:"link",onClick:()=>{var s;(s=t.openBrowse)==null||s.call(t,c=>o(()=>[c.length?c[0]:""]),a&&a.length>0?a:void 0)},children:"Browse"}):void 0,queryLabel:t.queryLabel,disableSortOptions:t.disableSortOptions,disableMaxDropdownWidth:!0},t.key):R.jsx(get,{id:e.id??t.key,values:a,onSelect:o,placeholder:t.placeholder||"",queryOptions:t.queryOptions,queryErrorText:t.queryErrorText,queryPlaceholder:t.queryPlaceholder,footer:t.openBrowse?R.jsx(X.Button,{variant:"link",onClick:()=>{var s;(s=t.openBrowse)==null||s.call(t,c=>o(()=>c),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?R.jsx(Xp,{id:e.id??t.key,placeholder:t.placeholder,value:a&&(a==null?void 0:a.length)>0?a[0]:"",onSelect:s=>o(()=>[s]),options:t.options,disableSortOptions:t.disableSortOptions,disableMaxDropdownWidth:!0},t.key):R.jsx(bpe,{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 R.jsx(wpe,{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 xet(e){const{sort:t,setSort:n,sortDirection:r,setSortDirection:a,sortOptions:o}=e,i=o==null?void 0:o.find(p=>p.value===t),l=i?i.type:void 0,[s]=Pa(),c=w.useMemo(()=>{switch(l){case"text":switch(r){case"asc":return R.jsx(Vt.SortAlphaUpIcon,{});case"desc":return R.jsx(Vt.SortAlphaDownAltIcon,{})}break;case"number":switch(r){case"asc":return R.jsx(Vt.SortNumericUpIcon,{});case"desc":return R.jsx(Vt.SortNumericDownAltIcon,{})}break;default:switch(r){case"asc":return R.jsx(Vt.SortAmountUpIcon,{});case"desc":return R.jsx(Vt.SortAmountDownIcon,{})}break}return R.jsx(R.Fragment,{})},[r,l]);return!o||o.length<=0?R.jsx(R.Fragment,{}):R.jsxs(Pj,{breakpoint:"2xl",toggleIcon:c,id:"sort",children:[R.jsx(X.ToolbarItem,{variant:"label",children:s.sort}),R.jsxs(X.ToolbarGroup,{variant:"filter-group",children:[R.jsx(X.ToolbarItem,{children:R.jsx(Eet,{sortOptions:o,sort:t,setSort:n,setSortDirection:a})}),R.jsx(X.ToolbarItem,{children:R.jsx(X.Button,{variant:"control",icon:c,onClick:()=>{r==="asc"?a==null||a("desc"):a==null||a("asc")}})})]})]})}function Eet(e){const{sortOptions:t,sort:n,setSort:r,setSortDirection:a}=e,o=w.useCallback(i=>{if(i){const l=t.find(s=>s.value===i);l&&n!==i&&l.defaultDirection&&(a==null||a(l.defaultDirection)),r==null||r(i)}},[t,r,a,n]);return R.jsx(Xp,{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 wet(e){return w.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 Cet(e){const{viewType:t,setViewType:n,openColumnModal:r}=e,[a]=Pa();let o=0;e.disableTableView||o++,e.disableCardView||o++,e.disableListView||o++;let i=R.jsx(Vt.TableIcon,{});return t===Rr.Cards&&(i=R.jsx(Vt.ThLargeIcon,{})),t===Rr.List&&(i=R.jsx(Vt.ListIcon,{})),R.jsx(Pj,{breakpoint:"md",toggleIcon:i,id:"view",children:R.jsx(X.ToolbarGroup,{variant:"action-group",style:{justifyContent:"end",marginRight:0},children:R.jsx(X.ToolbarItem,{children:R.jsxs(X.Split,{hasGutter:!0,children:[r&&R.jsx(X.Tooltip,{content:a.manageColumns,children:R.jsx(X.Button,{variant:"plain",icon:R.jsx(Vt.ColumnsIcon,{}),onClick:r})}),o>1&&R.jsx(X.ToggleGroup,{"data-cy":"table-view-toggle","aria-label":"table view toggle",children:[!e.disableTableView&&Rr.Table,!e.disableListView&&Rr.List,!e.disableCardView&&Rr.Cards].filter(l=>l).map(l=>{switch(l){case Rr.Cards:return R.jsx(X.ToggleGroupItem,{icon:R.jsx(Vt.ThLargeIcon,{}),isSelected:t===Rr.Cards,onClick:()=>n==null?void 0:n(Rr.Cards),"aria-label":"card view","data-cy":"card-view"},"card-view");case Rr.List:return R.jsx(X.ToggleGroupItem,{icon:R.jsx(Vt.ListIcon,{}),isSelected:t===Rr.List,onClick:()=>n==null?void 0:n(Rr.List),"aria-label":"list view","data-cy":"list-view"},"list-view");case Rr.Table:return R.jsx(X.ToggleGroupItem,{icon:R.jsx(Vt.TableIcon,{}),isSelected:t===Rr.Table,onClick:()=>n==null?void 0:n(Rr.Table),"aria-label":"table view","data-cy":"table-view"},"table-view")}})})]})})})})}function Npe(e){const{itemCount:t,toolbarFilters:n,selectedItems:r,filterState:a,setFilterState:o,openColumnModal:i,sort:l,setSort:s,sortDirection:c,setSortDirection:p,sortOptions:f,clearAllFilters:g}=e,v=w.useCallback(()=>{g?g():o&&o({})},[o,g]),b=Ul("md"),{viewType:y,setViewType:x}=e;let{toolbarActions:E}=e;E=E??[];const[C,I]=w.useState(""),N=n!==void 0,O=E!==void 0&&E.length>0,P=e.showSelect===!0||r!==void 0&&E&&E.find(L=>"selection"in L&&L.selection===vr.Multiple);return P||N||O?t===void 0?R.jsx(X.Toolbar,{className:"page-table-toolbar",style:{paddingBottom:b?void 0:8,paddingTop:b?void 0:8},children:R.jsx(X.ToolbarContent,{children:R.jsx(X.ToolbarItem,{style:{width:"100%"},children:R.jsx(X.Skeleton,{height:"36px"})})})}):R.jsx(Tpe.Provider,{value:{activeGroup:C,setActiveGroup:I},children:R.jsx(X.Toolbar,{ouiaId:"page-toolbar","data-cy":"page-toolbar",clearAllFilters:v,className:"page-table-toolbar",style:{paddingBottom:b?void 0:8,paddingTop:b?void 0:8},inset:{default:"insetMd",sm:"insetMd",md:"insetMd",lg:"insetMd",xl:"insetLg","2xl":"insetLg"},children:R.jsxs(X.ToolbarContent,{children:[P&&R.jsx(X.ToolbarGroup,{children:R.jsx(X.ToolbarItem,{children:R.jsx(GZ,{...e})})}),a&&o&&R.jsx(Ipe,{toolbarFilters:n,filterState:a,setFilterState:o,limitFiltersToOneOrOperation:e.limitFiltersToOneOrOperation}),e.toolbarContent,R.jsx(X.ToolbarGroup,{variant:"action-group",children:R.jsx(fu,{dropDownAriaLabel:"toolbar actions",actions:E,selectedItems:r,wrapper:X.ToolbarItem})}),R.jsxs(X.ToolbarGroup,{align:{default:"alignEnd"},children:[R.jsx(xet,{sort:l,setSort:s,sortDirection:c,setSortDirection:p,sortOptions:f}),y&&x&&R.jsx(Cet,{disableTableView:e.disableTableView,disableListView:e.disableListView,disableCardView:e.disableCardView,viewType:y,setViewType:x,openColumnModal:i})]})]})})}):R.jsx(w.Fragment,{})}function ket(e){const{t}=Wn(),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 R.jsxs(X.EmptyState,{headingLevel:"h2",icon:Vt.ExclamationCircleIcon,titleText:R.jsx(R.Fragment,{children:o||n}),isFullHeight:!0,children:[R.jsx(X.EmptyStateBody,{children:i}),R.jsxs(X.EmptyStateFooter,{children:[R.jsx(X.EmptyStateBody,{children:r}),R.jsx(X.Button,{variant:"primary",onClick:()=>window.location.reload(),children:a})]})]})}function Tet(e){const{title:t,description:n,icon:r,button:a,footNote:o,image:i,variant:l,style:s}=e;return R.jsxs(X.EmptyState,{icon:r,headingLevel:"h4",titleText:R.jsx(R.Fragment,{children:t}),variant:l||X.EmptyStateVariant.full,style:s,isFullHeight:!0,children:[R.jsx(X.EmptyStateBody,{"data-cy":e.description,children:n}),R.jsxs(X.EmptyStateFooter,{children:[a&&R.jsx(X.EmptyStateActions,{children:a}),i&&R.jsxs(R.Fragment,{children:[" ",R.jsx("br",{})," ",R.jsx(X.EmptyStateBody,{children:i})]}),o&&R.jsx(X.EmptyStateBody,{children:o})]})]})}function Ret(e){const{button:t,description:n,title:r,variant:a,icon:o}=e;return R.jsx(Tet,{icon:o??(t?Vt.PlusCircleIcon:Vt.CubesIcon),title:r,description:n,button:t,variant:a})}const Ape=w.createContext({dialogs:[],clearDialogs:()=>{},pushDialog:e=>{},popDialog:()=>{}}),Ppe=w.createContext(!1);function Dpe(){return w.useContext(Ppe)}function Mpe(e){const[t,n]=w.useState([]),r=w.useCallback(()=>n(l=>l.length?[]:l),[n]),a=w.useCallback(l=>n(s=>[...s,l]),[n]),o=w.useCallback(()=>n(l=>l.slice(0,-1)),[n]),i=w.useMemo(()=>({dialogs:t,clearDialogs:r,pushDialog:a,popDialog:o}),[r,t,o,a]);return R.jsxs(Ape.Provider,{value:i,children:[R.jsx(Ppe.Provider,{value:!0,children:t.length>0&&t[t.length-1]}),e.children]})}function Lpe(){return w.useContext(Ape)}function Zp(){const{dialogs:e,clearDialogs:t,pushDialog:n}=Lpe(),r=w.useMemo(()=>e.length>0?e[e.length-1]:void 0,[e]),a=w.useCallback(o=>{t(),o!==void 0&&n(o)},[t,n]);return w.useMemo(()=>[r,a],[r,a])}function Iet(e,t,n){const{selectedItems:r,selectItem:a,unselectItem:o,isSelected:i,selectItems:l,unselectAll:s,allSelected:c}=Mj(e,t),{sorted:p,sort:f,setSort:g}=Lj(e),{filtered:v,setFilterFn:b}=Bj(p,t),{searched:y,search:x,setSearch:E,setSearchFn:C}=Oet(v,t,n==null?void 0:n.search),{paged:I,page:N,setPage:O,perPage:P,setPerPage:M}=kE(y),L=w.useCallback(()=>l(I),[I,l]),H=w.useCallback(()=>l(y),[y,l]);return w.useMemo(()=>({allSelected:c,filtered:v,isSelected:i,page:N,paged:I,perPage:P,search:x,searched:y,selectAll:H,selectItem:a,selectPage:L,selectedItems:r,setFilterFn:b,setPage:O,setPerPage:M,setSearch:E,setSearchFn:C,setSort:g,sort:f,sorted:p,unselectAll:s,unselectItem:o}),[c,v,i,N,I,P,x,y,H,a,L,r,b,O,M,E,C,g,f,p,s,o])}function Mj(e,t,n){const[r,a]=w.useState(()=>n?n.reduce((y,x)=>(y[`item-${t(x)}`]=x,y),{}):{});w.useEffect(()=>{a(y=>{let x=!1;return e.forEach(E=>{const C=`item-${t(E)}`;y[C]&&y[C]!==E&&(x=!0,y[C]=E)}),x?{...y}:y})},[e,t]);const o=w.useCallback(y=>{a(x=>{const E=`item-${t(y)}`;return x[E]!==y&&(x={...x},x[E]=y),x})},[t]),i=w.useCallback(y=>{a(x=>{const E=`item-${t(y)}`;return x[E]&&(x={...x},delete x[E]),x})},[t]),l=w.useCallback(y=>{const x=`item-${t(y)}`;return r[x]!==void 0},[t,r]),s=w.useCallback(y=>{a(x=>{x={...x};for(const E of y){const C=`item-${t(E)}`;x[C]=E}return x})},[t]),c=w.useRef(e);w.useEffect(()=>{c.current=e},[e]);const p=w.useCallback(()=>s(c.current),[s]),f=w.useCallback(y=>{for(const x of y)i(x)},[i]),g=w.useCallback(()=>{a(y=>Object.keys(y).length>0?{}:y)},[]),v=w.useMemo(()=>Object.values(r),[r]),b=w.useMemo(()=>v.length===e.length,[e.length,v.length]);return w.useMemo(()=>({selectedItems:v,selectItem:o,unselectItem:i,isSelected:l,selectItems:s,selectAll:p,unselectAll:g,allSelected:b,keyFn:t,unselectItems:f}),[b,l,t,p,o,s,v,g,i,f])}function Bpe(e,t){const[n,r]=w.useState({});w.useEffect(()=>{r(v=>{let b=!1;const y=e?e.reduce((C,I)=>{const N=t(I);return C[N]=I,v[N]&&v[N]!==I&&(b=!0,v[N]=I),C},{}):{},x={};for(const C in v)y[C]||(x[C]=!0);const E=Object.keys(x);if(E.length){b=!0;for(const C of E)delete v[C]}return b?{...v}:v})},[e,t]);const a=w.useCallback(v=>{r(b=>{const y=t(v);return b[y]!==v&&(b={...b},b[y]=v),b})},[t]),o=w.useCallback(v=>{r(b=>{const y=t(v);return b[y]&&(b={...b},delete b[y]),b})},[t]),i=w.useCallback(v=>{for(const b of v)o(b)},[o]),l=w.useCallback(v=>{const b=t(v);return n[b]!==void 0},[t,n]),s=w.useCallback(v=>{r(b=>{b={...b};for(const y of v){const x=t(y);b[x]=y}return b})},[t]),c=w.useCallback(()=>{s(e??[])},[e,s]),p=w.useCallback(()=>{r(v=>Object.keys(v).length>0?{}:v)},[]),f=w.useMemo(()=>Object.values(n),[n]),g=w.useMemo(()=>f.length===(e==null?void 0:e.length),[e,f.length]);return w.useMemo(()=>({selectedItems:f,selectItem:a,unselectItem:o,isSelected:l,selectItems:s,selectAll:c,unselectAll:p,allSelected:g,keyFn:t,unselectItems:i}),[g,l,t,c,a,s,f,p,o,i])}function Lj(e){const[t,n]=w.useState(),{direction:r,sortFn:a}=t??{},o=w.useMemo(()=>e?a?r==="asc"?[...e.sort(a)]:[...e.sort(a).reverse()]:e:[],[r,e,a]);return w.useMemo(()=>({sorted:o,sort:t,setSort:n}),[t,o])}function Bj(e,t){const n=w.useRef({map:{}}),[r,a]=w.useState(),o=w.useCallback(c=>a(()=>c),[]),[i,l]=w.useState([]);w.useEffect(()=>{n.current.map={}},[r]);const s=w.useCallback(c=>{const p=t(c);let f=n.current.map[p];return f?f.item!==c&&(f.item=c,f.passes=r?r(c):!0):(f={item:c,passes:r?r(c):!0},n.current.map[p]=f),f.passes},[r,t]);return w.useEffect(()=>{l(r?e.filter(s):e)},[e,r,s]),w.useMemo(function(){return{filtered:i,setFilterFn:o}},[i,o])}function Oet(e,t,n){const r=w.useRef({map:{}}),[a,o]=w.useState(),i=w.useCallback(v=>o(()=>v),[]),[l,s]=w.useState([]),[c,p]=w.useState(n??""),f=w.useCallback(Aj(v=>p(v),200),[]);w.useEffect(()=>{r.current.map={}},[c,a]);const g=w.useCallback(v=>{const b=t(v);let y=r.current.map[b];return y?y.item!==v&&(y.item=v,y.score=a?a(v,c):0):(y={item:v,score:a?a(v,c):0},r.current.map[b]=y),y},[t,a,c]);return w.useEffect(()=>{s(a&&c?e.map(g).filter(v=>v.score<.5).sort((v,b)=>v.score-b.score).map(v=>v.item):e)},[c,e,a,g]),w.useMemo(function(){return{searched:l,search:c,setSearch:f,setSearchFn:i}},[l,c,f,i])}function kE(e){const[t,n]=w.useState([]),[r,a]=w.useState(1),[o,i]=w.useState(10);return w.useEffect(()=>{n(l=>{const s=e.slice((r-1)*o,r*o);if(l.length!==s.length)return s;let c=0;for(const p of s)if(l[c++]!==p)return s;return l})},[r,o,e]),w.useEffect(()=>{r>Math.ceil(e.length/o)&&a(1)},[r,o,e.length]),w.useMemo(()=>({paged:t,page:r,setPage:a,perPage:o,setPerPage:i}),[r,t,o])}const Fj={modifiers:{ghostRow:"pf-m-ghost-row",dragOver:"pf-m-drag-over"}};function Net(e){const{t}=Wn(),{columns:n,keyFn:r,items:a,setItems:o,isSelected:i,selectItem:l,unselectItem:s,allSelected:c,selectAll:p,unselectAll:f,hideColumnHeaders:g,isSelectableWithCheckbox:v}=e,[b,y]=w.useState(null),[x,E]=w.useState(null),[C,I]=w.useState(!1),N=w.useRef(null),O=Y=>{if(N.current){const K=N.current.getBoundingClientRect();return Y.clientX>K.x&&Y.clientX<K.x+K.width&&Y.clientY>K.y&&Y.clientY<K.y+K.height}return!1},P=Y=>{O(Y)||M()},M=()=>{N.current&&Array.from(N.current.children).forEach(Y=>{Y.classList.remove(Fj.modifiers.ghostRow),Y.setAttribute("aria-pressed","false")}),E(null),y(null),I(!1)},L=Y=>{Y.preventDefault();const K=Y.target.closest("tr");if(!K||!(N.current&&N.current.contains(K))||K.id===x)return null;{const ae=K.id,oe=Array.from(N.current.children).findIndex(te=>te.id===ae);if(oe!==b&&x){const te=H([...a],x,oe);o(te)}}return null},H=(Y,K,ae)=>{const oe=Y.findIndex(ee=>r(ee)===K);if(oe===ae)return Y;const te=Y.splice(oe,1);return Y.splice(ae,0,te[0]),Y},U=Y=>{O(Y)||y(null)},F=Y=>{const K=Y.target;K.classList.remove(Fj.modifiers.ghostRow),K.setAttribute("aria-pressed","false"),E(null),y(null),I(!1)},j=Y=>{if(N.current){Y.dataTransfer.effectAllowed="move";const K=Y.currentTarget.id,ae=Array.from(N.current.children).findIndex(oe=>oe.id===Y.currentTarget.id);Y.currentTarget.setAttribute("aria-pressed","true"),E(K),y(ae)}},W=w.useCallback(Y=>{const K=a.findIndex(oe=>r(oe)===r(Y)),ae=[...a];ae[K]=Y,o(ae)},[a,o,r]);return R.jsxs(ar.Table,{"aria-label":t("Table with draggable rows"),className:C?Fj.modifiers.dragOver:"",variant:"compact",gridBreakPoint:"",children:[!g&&R.jsx(ar.Thead,{children:R.jsxs(ar.Tr,{children:[R.jsx(ar.Th,{}),v&&R.jsx(ar.Th,{select:{onSelect:(Y,K)=>{K?p():f()},isSelected:c}}),n.map((Y,K)=>R.jsx(ar.Th,{children:Y.header},K))]})}),R.jsx(ar.Tbody,{ref:N,onDragOver:L,onDragLeave:U,children:a.map((Y,K)=>{const ae=r(Y);return R.jsxs(ar.Tr,{id:ae.toString(),draggable:!0,onDrop:P,onDragEnd:F,onDragStart:j,children:[R.jsx(ar.Td,{draggableRow:{id:`draggable-row-${ae.toString()}`}}),v&&R.jsx(ar.Td,{select:{rowIndex:K,variant:"checkbox",onSelect:(oe,te)=>{te?l(Y):s(Y)},isSelected:i(Y)}}),n.map(oe=>R.jsx(ar.Td,{children:oe.cell(Y,W)},oe.header))]},ae)})})]})}function Aet(e){const[t,n]=Zp(),[r]=w.useState(()=>e.keyFn),[a]=w.useState(()=>e.saveFn),[o]=w.useState(()=>e.loadFn),[i,l]=w.useState(()=>{try{const g=localStorage.getItem(e.id);if(typeof g=="string"){const v=JSON.parse(g);if(Array.isArray(v)&&v.every(b=>typeof b=="object")&&v.every(b=>"key"in b&&"enabled"in b))return v}}catch{}}),s=w.useMemo(()=>i?e.items.map(g=>{if(o){const v=i.find(b=>b.key===r(g));v&&v.state&&o(g,v.state)}return g}).sort((g,v)=>{const b=i.findIndex(x=>x.key===r(g)),y=i.findIndex(x=>x.key===r(v));return b===-1&&y===-1?0:b===-1?1:y===-1?-1:b-y}):e.items,[i,r,o,e.items]),c=w.useMemo(()=>i?s.filter(g=>{const v=i.find(b=>b.key===r(g));return v?v.enabled:!0}):s,[s,i,r]),p=w.useCallback((g,v)=>{const b=g.map(y=>({key:r(y),enabled:v.includes(y),state:a?a(y):void 0}));l(b),localStorage.setItem(e.id,JSON.stringify(b)),e.onSubmit&&e.onSubmit(g)},[r,e,a]);return{openManageItems:()=>n(R.jsx(Pet,{...e,keyFn:r,items:s,defaultSelectedItems:c,onApplyChanges:p})),managedItems:c}}function Pet(e){const{t}=Wn(),{title:n,description:r,columns:a,onApplyChanges:o}=e,[i]=w.useState(()=>e.keyFn),[l,s]=Zp(),c=()=>s(void 0),[p,f]=w.useState(()=>e.items),{selectedItems:g,isSelected:v,selectItem:b,unselectItem:y,allSelected:x,selectAll:E,unselectAll:C}=Mj(p,i,e.defaultSelectedItems),I=()=>{o(p,g),s(void 0)};return R.jsxs(X.Modal,{"aria-label":n,ouiaId:n,variant:e.variant??X.ModalVariant.medium,isOpen:!0,onClose:c,children:[R.jsx(X.ModalHeader,{title:n,description:R.jsx("div",{style:{marginBottom:16},children:r})}),R.jsx(X.Divider,{}),R.jsx(X.ModalBody,{style:{padding:0},children:R.jsx(Net,{keyFn:i,items:p,setItems:f,columns:a,isSelected:v,selectItem:b,unselectItem:y,allSelected:x,selectAll:E,unselectAll:C,hideColumnHeaders:e.hideColumnHeaders,isSelectableWithCheckbox:e.hideSelection!==!0})}),R.jsx(X.Divider,{}),R.jsxs(X.ModalFooter,{children:[R.jsx(X.Button,{variant:"primary",onClick:I,children:t`Apply`},"apply"),R.jsx(X.Button,{variant:"link",onClick:c,children:t`Cancel`},"cancel")]})]})}function Det(e,t,n,r,a){const{t:o}=Wn(),i=w.useMemo(()=>{const f=[{header:o("Name"),cell:g=>g.header}];return n||f.push({header:o("Table"),cell:(g,v)=>R.jsx(Xp,{value:g.table??"",onSelect:b=>{switch(b){case"":v({...g,table:void 0});break;case qm.description:case qm.expanded:case qm.hidden:v({...g,table:b});break}},placeholder:o("Column"),options:[{value:"",label:o("Column"),description:o("Show the column in the table.")},{value:qm.description,label:o("Description"),description:o("Show the column when the item is expanded as a full width description.")},{value:qm.expanded,label:o("Expanded"),description:o("Show the column when the item is expanded as a detail.")},{value:qm.hidden,label:o("Hidden"),description:o("Hide the column.")}],isRequired:!0})}),r||f.push({header:o("List"),cell:(g,v)=>R.jsx(Xp,{value:g.list??"",onSelect:b=>{switch(b){case"":v({...g,list:void 0});break;case"name":case"subtitle":case"description":case"primary":case"secondary":case"hidden":v({...g,list:b});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||f.push({header:o("Card"),cell:(g,v)=>R.jsx(Xp,{value:g.card??"",onSelect:b=>{switch(b){case"":v({...g,card:void 0});break;case"name":case"subtitle":case"description":case"hidden":v({...g,card:b});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})}),f},[a,r,n,o]),l=w.useCallback((f,g)=>{typeof g=="object"&&g!==null&&("table"in g&&typeof g.table=="string"?f.table=g.table:f.table=void 0,"list"in g&&typeof g.list=="string"?f.list=g.list:f.list=void 0,"card"in g&&typeof g.card=="string"?f.card=g.card:f.card=void 0)},[]),s=w.useCallback(f=>{const{table:g,list:v,card:b}=f;return{table:g,list:v,card:b}},[]),{openManageItems:c,managedItems:p}=Aet({id:e,title:o("Manage Columns"),description:o("Manage the order, placement, and format of columns."),items:t,keyFn:f=>f.id??f.header,columns:i,loadFn:l,saveFn:s,hideSelection:!0});return{openColumnManagement:c,managedColumns:p}}function Met(){return R.jsx(ar.Table,{gridBreakPoint:"",className:"page-table",children:R.jsx(ar.Tbody,{children:new Array(10).fill(0).map((e,t)=>R.jsx(ar.Tr,{children:R.jsx(ar.Td,{children:R.jsx(X.Skeleton,{height:"27px"})})},t))})})}function Let(e){const{setPage:t,setPerPage:n}=e,r=w.useCallback((i,l)=>t(l),[t]),a=w.useCallback((i,l)=>n(l),[n]),o=!Ul("md");return R.jsx(X.Pagination,{"data-cy":"pagination",variant:X.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 Bet(e){const t=e.size??350,n=w.useRef(null),[r,a]=w.useState("1fr"),o=w.useCallback(l=>{let s=Math.min(e.maxColumns??12,Math.max(Math.floor(l/t),1));s<1&&(s=1),a(()=>new Array(s).fill("1fr").join(" "))},[e.maxColumns,t]);return du(n,l=>o(l.contentRect.width)),w.useLayoutEffect(()=>{var l;o(((l=n.current)==null?void 0:l.clientWidth)??0)},[o]),R.jsx("div",{ref:n,style:{display:"grid",gridAutoRows:"1fr",gridTemplateColumns:r,gap:16},children:e.children})}const Fpe=Rn.small`
|
449
|
+
`;var sy=(e=>(e.LastHour="lastHour",e.Last24Hours="last24hours",e.LastWeek="last7days",e.LastMonth="last30days",e))(sy||{});function wpe(e){const{filterValues:t,id:n,setFilterValues:r,placeholder:a,isRequired:o,defaultValue:i}=e,l=t&&t.length>0?t[0]:void 0,s=e.options.find(b=>b.value===l);o&&!s&&r(()=>[i??e.options[0].value]);function c(b){if(b===null)return;e.options.find(x=>x.value===b)&&r(()=>[b])}const[p,f]=w.useState(()=>{if(t&&t.length>1)return t[1]}),[g,v]=w.useState(()=>{if(t&&t.length>2)return t[2]});return w.useEffect(()=>{if(s&&s.isCustom){const b=[s.value];p&&(b.push(p),g&&b.push(g)),r(()=>b)}},[s,p,g,r]),R.jsxs(X.ToolbarItem,{children:[R.jsx(Xp,{value:(s==null?void 0:s.value)??"",id:n,onSelect:c,options:e.options,placeholder:a,disableSortOptions:!0}),s&&s.isCustom&&R.jsx(Cpe,{to:g,setTo:v,from:p,setFrom:f})]})}function Cpe(e){const{to:t,setTo:n,from:r,setFrom:a}=e,{t:o}=Wn(),i=(p,f)=>{a(f)},l=(p,f)=>{n(f)},s=r?new Date(r):void 0,c=p=>s?X.isValidDate(s)&&p>=s?"":o('The "to" date must be after the "from" date'):"";return R.jsxs(R.Fragment,{children:[R.jsx(X.DatePicker,{value:r,onChange:i,"aria-label":"Start date",placeholder:"YYYY-MM-DD","data-cy":"toolbar-date-picker"}),R.jsx("div",{style:{alignSelf:"baseline",padding:6},children:o("to")}),R.jsx(X.DatePicker,{value:t,onChange:l,isDisabled:!s||!X.isValidDate(s),rangeStart:s,validators:[c],"aria-label":"End date",placeholder:o("now"),invalidFormatText:o("Invalid date format")}),t!==void 0&&R.jsx(X.Button,{icon:R.jsx(Vt.TimesCircleIcon,{}),variant:"control",style:{alignSelf:"flex-start"},onClick:()=>n(void 0)})]})}function kpe(e){const{t}=Wn(),[n,r]=w.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 R.jsxs(X.InputGroup,{children:[R.jsx(X.InputGroupItem,{children:R.jsxs(X.TextInputGroup,{"data-cy":"text-input",style:{minWidth:220},children:[R.jsx(X.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!==""&&R.jsx(X.TextInputGroupUtilities,{children:R.jsx(X.Button,{icon:R.jsx(Vt.TimesIcon,{}),variant:"plain","aria-label":"clear filter",onClick:()=>r(""),style:{opacity:n?void 0:0},tabIndex:-1})})]})}),R.jsx(X.InputGroupItem,{children:R.jsx(X.Button,{icon:R.jsx(Vt.ArrowRightIcon,{}),variant:n?"primary":"control","data-cy":"apply-filter","aria-label":"apply filter",onClick:()=>{e.addFilter(n),r("")},tabIndex:-1,isDisabled:!n})})]})}function jI(e){const{t}=Wn(),[n,r]=w.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=w.useCallback(Aj(i=>e.setValue(i),200),[]);return w.useEffect(()=>{e.hasKey||r("")},[e.hasKey]),R.jsx(X.InputGroup,{children:R.jsx(X.InputGroupItem,{children:R.jsxs(X.TextInputGroup,{"data-cy":"text-input",style:{minWidth:220},children:[R.jsx(X.TextInputGroupMain,{id:e.id,value:n,onChange:(i,l)=>{typeof i=="string"?(r(i),o(i)):(r(l),o(l))},placeholder:a}),n!==""&&R.jsx(X.TextInputGroupUtilities,{children:R.jsx(X.Button,{icon:R.jsx(Vt.TimesIcon,{}),variant:"plain","aria-label":"clear filter",onClick:()=>{r(""),e.setValue("")},style:{opacity:n?void 0:0},tabIndex:-1})})]})})})}function Pj(e){const[t,n]=w.useState(!1),r=i=>{n(!t)},{activeGroup:a,setActiveGroup:o}=w.useContext(Tpe);return w.useEffect(()=>{t&&o(e.id)},[t,o,e.id]),w.useEffect(()=>{a!==e.id&&n(!1)},[a,e.id]),R.jsx(X.ToolbarToggleGroup,{...e,isExpanded:t,onToggle:r})}const Tpe=w.createContext({activeGroup:"",setActiveGroup:()=>{}});var Dj=(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))(Dj||{});function Rpe(e){var s;const{toolbarFilters:t,filterState:n,setFilterState:r}=e,[a,o]=w.useState(()=>t&&(t==null?void 0:t.length)>0?t[0].key:""),i=t==null?void 0:t.find(c=>c.key===a);if(!i)return R.jsx(R.Fragment,{});if(!t)return R.jsx(R.Fragment,{});if(t.length===0)return R.jsx(R.Fragment,{});let l=t.length===1;return t.length>=1&&t[0].type===3&&t[0].isPinned&&(n[t[0].key]===void 0||((s=n[t[0].key])==null?void 0:s.length)===0)&&(l=!1),R.jsx(R.Fragment,{children:t.length===1?R.jsxs(X.ToolbarItem,{children:[l&&R.jsx("div",{style:{marginTop:6,marginRight:6,whiteSpace:"nowrap"},children:t[0].label}),R.jsx(Ope,{id:"filter-input",filter:i,filterState:n,setFilterState:r,"data-cy":i,limitFiltersToOneOrOperation:e.limitFiltersToOneOrOperation})]}):R.jsxs(X.ToolbarGroup,{variant:"filter-group",children:[R.jsx(X.ToolbarItem,{children:R.jsx(Xp,{id:"filter",value:a,onSelect:o,icon:i.type===0?R.jsx(Vt.SearchIcon,{}):R.jsx(Vt.FilterIcon,{}),options:t.map(c=>({label:c.label,value:c.key})),placeholder:"","data-cy":i,disableSortOptions:!0,isRequired:!0,disableMaxDropdownWidth:!0})}),R.jsx(X.ToolbarItem,{children:R.jsx(Ope,{id:"filter-input",filter:i,filterState:n,setFilterState:r,"data-cy":i,limitFiltersToOneOrOperation:e.limitFiltersToOneOrOperation})})]})})}function Ipe(e){const{toolbarFilters:t,setFilterState:n,filterState:r}=e,[a]=Pa(),o=!Ul("md");if(!t)return R.jsx(R.Fragment,{});if(t.length===0)return R.jsx(R.Fragment,{});const i=t.filter(s=>!s.isPinned),l=t.filter(s=>!!s.isPinned);return R.jsxs(Pj,{toggleIcon:R.jsx(Vt.FilterIcon,{}),breakpoint:"md",id:"filters",children:[o&&R.jsx(X.ToolbarItem,{variant:"label",children:a.filter}),R.jsx(Rpe,{toolbarFilters:i,setFilterState:n,filterState:r,limitFiltersToOneOrOperation:e.limitFiltersToOneOrOperation}),l==null?void 0:l.map(s=>R.jsx(Rpe,{toolbarFilters:[s],setFilterState:n,filterState:r,limitFiltersToOneOrOperation:e.limitFiltersToOneOrOperation},s.key)),t==null?void 0:t.map(s=>{const c=(r==null?void 0:r[s.key])||[];return s.isPinned&&s.type===3||s.isPinned&&s.type===5?null:R.jsx(X.ToolbarFilter,{categoryName:s.label,labels:[...c.map(p=>{var f,g;switch(s.type){case 3:case 4:case 5:return((g=(f=s.options)==null?void 0:f.find(v=>v.value===p))==null?void 0:g.label)??p;case 6:case 7:return{key:p,node:s.queryLabel(p)};default:return p}})],deleteLabel:(p,f)=>{n==null||n(g=>{var y;const v={...g};switch(f=typeof f=="string"?f:f.key,s.type){case 3:case 4:case 5:f=((y=s.options.find(x=>x.label===f))==null?void 0:y.value)??f;break}let b=g[s.key];return b&&(b=b.filter(x=>x!==f),b.length===0?delete v[s.key]:v[s.key]=b),v})},deleteLabelGroup:()=>{n==null||n(p=>{const f={...p};return delete f[s.key],f})},showToolbarItem:!1,children:R.jsx(R.Fragment,{})},s.label)})]})}function Ope(e){const{filter:t,filterState:n,setFilterState:r}=e,a=n==null?void 0:n[t.key],o=w.useCallback(s=>{r(c=>{const p={...c},f=p[t.key]??[];return p[t.key]=s(f),p})},[t.key,r]),i=w.useCallback(s=>{r(c=>{const p={...c},f=p[t.key]??[];return p[t.key]=[...f,s],p})},[t.key,r]);let l=!1;if(n)for(const s in n){if(s===t.key)continue;const c=n[s];if(c&&(c==null?void 0:c.length)>=2){l=!0;break}}switch(t.type){case 0:return R.jsx(jI,{id:e.id??t.key,placeholder:t.placeholder,setValue:s=>o(()=>s?[s]:[]),value:a&&(a==null?void 0:a.length)>0?a[0]:"",hasKey:!!(n!=null&&n[t.key])},t.key);case 1:return R.jsx(jI,{id:e.id??t.key,placeholder:t.placeholder,comparison:t.comparison,setValue:s=>o(()=>s?[s]:[]),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?R.jsx(jI,{id:e.id??t.key,placeholder:t.placeholder,comparison:t.comparison,setValue:s=>o(()=>s?[s]:[]),value:a&&(a==null?void 0:a.length)>0?a[0]:"",hasKey:!!(n!=null&&n[t.key])},t.key):R.jsx(kpe,{id:e.id??t.key,addFilter:i,placeholder:t.placeholder,comparison:t.comparison},t.key);case 3:return R.jsx(Xp,{id:e.id??t.key,placeholder:t.placeholder,value:a&&(a==null?void 0:a.length)>0?a[0]:"",onSelect:s=>o(()=>[s]),options:t.options,isRequired:t.isRequired||!t.isPinned,disableSortOptions:t.disableSortOptions,disableMaxDropdownWidth:!0,disableAutoSelect:!0},t.key);case 6:return R.jsx(Epe,{id:e.id??t.key,value:a&&(a==null?void 0:a.length)>0?a[0]:"",onSelect:s=>o(()=>[s]),placeholder:t.placeholder||"",queryOptions:t.queryOptions,queryErrorText:t.queryErrorText,queryPlaceholder:t.queryPlaceholder,isRequired:t.isRequired,footer:t.openBrowse?R.jsx(Spe.Consumer,{children:s=>R.jsx(X.Button,{variant:"link",onClick:()=>{var c;s.setOpen(!1),(c=t.openBrowse)==null||c.call(t,p=>o(()=>[p]),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?R.jsx(Epe,{id:e.id??t.key,value:a&&(a==null?void 0:a.length)>0?a[0]:"",onSelect:s=>o(()=>[s]),placeholder:t.placeholder||"",queryOptions:t.queryOptions,queryErrorText:t.queryErrorText,queryPlaceholder:t.queryPlaceholder,isRequired:t.isRequired,footer:t.openBrowse?R.jsx(X.Button,{variant:"link",onClick:()=>{var s;(s=t.openBrowse)==null||s.call(t,c=>o(()=>[c.length?c[0]:""]),a&&a.length>0?a:void 0)},children:"Browse"}):void 0,queryLabel:t.queryLabel,disableSortOptions:t.disableSortOptions,disableMaxDropdownWidth:!0},t.key):R.jsx(get,{id:e.id??t.key,values:a,onSelect:o,placeholder:t.placeholder||"",queryOptions:t.queryOptions,queryErrorText:t.queryErrorText,queryPlaceholder:t.queryPlaceholder,footer:t.openBrowse?R.jsx(X.Button,{variant:"link",onClick:()=>{var s;(s=t.openBrowse)==null||s.call(t,c=>o(()=>c),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?R.jsx(Xp,{id:e.id??t.key,placeholder:t.placeholder,value:a&&(a==null?void 0:a.length)>0?a[0]:"",onSelect:s=>o(()=>[s]),options:t.options,disableSortOptions:t.disableSortOptions,disableMaxDropdownWidth:!0},t.key):R.jsx(bpe,{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 R.jsx(wpe,{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 xet(e){const{sort:t,setSort:n,sortDirection:r,setSortDirection:a,sortOptions:o}=e,i=o==null?void 0:o.find(p=>p.value===t),l=i?i.type:void 0,[s]=Pa(),c=w.useMemo(()=>{switch(l){case"text":switch(r){case"asc":return R.jsx(Vt.SortAlphaUpIcon,{});case"desc":return R.jsx(Vt.SortAlphaDownAltIcon,{})}break;case"number":switch(r){case"asc":return R.jsx(Vt.SortNumericUpIcon,{});case"desc":return R.jsx(Vt.SortNumericDownAltIcon,{})}break;default:switch(r){case"asc":return R.jsx(Vt.SortAmountUpIcon,{});case"desc":return R.jsx(Vt.SortAmountDownIcon,{})}break}return R.jsx(R.Fragment,{})},[r,l]);return!o||o.length<=0?R.jsx(R.Fragment,{}):R.jsxs(Pj,{breakpoint:"2xl",toggleIcon:c,id:"sort",children:[R.jsx(X.ToolbarItem,{variant:"label",children:s.sort}),R.jsxs(X.ToolbarGroup,{variant:"filter-group",children:[R.jsx(X.ToolbarItem,{children:R.jsx(Eet,{sortOptions:o,sort:t,setSort:n,setSortDirection:a})}),R.jsx(X.ToolbarItem,{children:R.jsx(X.Button,{variant:"control",icon:c,onClick:()=>{r==="asc"?a==null||a("desc"):a==null||a("asc")}})})]})]})}function Eet(e){const{sortOptions:t,sort:n,setSort:r,setSortDirection:a}=e,o=w.useCallback(i=>{if(i){const l=t.find(s=>s.value===i);l&&n!==i&&l.defaultDirection&&(a==null||a(l.defaultDirection)),r==null||r(i)}},[t,r,a,n]);return R.jsx(Xp,{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 wet(e){return w.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 Cet(e){const{viewType:t,setViewType:n,openColumnModal:r}=e,[a]=Pa();let o=0;e.disableTableView||o++,e.disableCardView||o++,e.disableListView||o++;let i=R.jsx(Vt.TableIcon,{});return t===Rr.Cards&&(i=R.jsx(Vt.ThLargeIcon,{})),t===Rr.List&&(i=R.jsx(Vt.ListIcon,{})),R.jsx(Pj,{breakpoint:"md",toggleIcon:i,id:"view",children:R.jsx(X.ToolbarGroup,{variant:"action-group",style:{justifyContent:"end",marginRight:0},children:R.jsx(X.ToolbarItem,{children:R.jsxs(X.Split,{hasGutter:!0,children:[r&&R.jsx(X.Tooltip,{content:a.manageColumns,children:R.jsx(X.Button,{variant:"plain",icon:R.jsx(Vt.ColumnsIcon,{}),onClick:r})}),o>1&&R.jsx(X.ToggleGroup,{"data-cy":"table-view-toggle","aria-label":"table view toggle",children:[!e.disableTableView&&Rr.Table,!e.disableListView&&Rr.List,!e.disableCardView&&Rr.Cards].filter(l=>l).map(l=>{switch(l){case Rr.Cards:return R.jsx(X.ToggleGroupItem,{icon:R.jsx(Vt.ThLargeIcon,{}),isSelected:t===Rr.Cards,onClick:()=>n==null?void 0:n(Rr.Cards),"aria-label":"card view","data-cy":"card-view"},"card-view");case Rr.List:return R.jsx(X.ToggleGroupItem,{icon:R.jsx(Vt.ListIcon,{}),isSelected:t===Rr.List,onClick:()=>n==null?void 0:n(Rr.List),"aria-label":"list view","data-cy":"list-view"},"list-view");case Rr.Table:return R.jsx(X.ToggleGroupItem,{icon:R.jsx(Vt.TableIcon,{}),isSelected:t===Rr.Table,onClick:()=>n==null?void 0:n(Rr.Table),"aria-label":"table view","data-cy":"table-view"},"table-view")}})})]})})})})}function Npe(e){const{itemCount:t,toolbarFilters:n,selectedItems:r,filterState:a,setFilterState:o,openColumnModal:i,sort:l,setSort:s,sortDirection:c,setSortDirection:p,sortOptions:f,clearAllFilters:g}=e,v=w.useCallback(()=>{g?g():o&&o({})},[o,g]),b=Ul("md"),{viewType:y,setViewType:x}=e;let{toolbarActions:E}=e;E=E??[];const[C,I]=w.useState(""),N=n!==void 0,O=E!==void 0&&E.length>0,P=e.showSelect===!0||r!==void 0&&E&&E.find(L=>"selection"in L&&L.selection===vr.Multiple);return P||N||O?t===void 0?R.jsx(X.Toolbar,{className:"page-table-toolbar",style:{paddingBottom:b?void 0:8,paddingTop:b?void 0:8},children:R.jsx(X.ToolbarContent,{children:R.jsx(X.ToolbarItem,{style:{width:"100%"},children:R.jsx(X.Skeleton,{height:"36px"})})})}):R.jsx(Tpe.Provider,{value:{activeGroup:C,setActiveGroup:I},children:R.jsx(X.Toolbar,{ouiaId:"page-toolbar","data-cy":"page-toolbar",clearAllFilters:v,className:"page-table-toolbar",style:{paddingBottom:b?void 0:8,paddingTop:b?void 0:8},inset:{default:"insetMd",sm:"insetMd",md:"insetMd",lg:"insetMd",xl:"insetLg","2xl":"insetLg"},children:R.jsxs(X.ToolbarContent,{children:[P&&R.jsx(X.ToolbarGroup,{children:R.jsx(X.ToolbarItem,{children:R.jsx(GZ,{...e})})}),a&&o&&R.jsx(Ipe,{toolbarFilters:n,filterState:a,setFilterState:o,limitFiltersToOneOrOperation:e.limitFiltersToOneOrOperation}),e.toolbarContent,R.jsx(X.ToolbarGroup,{variant:"action-group",children:R.jsx(fu,{dropDownAriaLabel:"toolbar actions",actions:E,selectedItems:r,wrapper:X.ToolbarItem})}),R.jsxs(X.ToolbarGroup,{align:{default:"alignEnd"},children:[y!=="table"&&R.jsx(xet,{sort:l,setSort:s,sortDirection:c,setSortDirection:p,sortOptions:f}),y&&x&&R.jsx(Cet,{disableTableView:e.disableTableView,disableListView:e.disableListView,disableCardView:e.disableCardView,viewType:y,setViewType:x,openColumnModal:i})]})]})})}):R.jsx(w.Fragment,{})}function ket(e){const{t}=Wn(),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 R.jsxs(X.EmptyState,{headingLevel:"h2",icon:Vt.ExclamationCircleIcon,titleText:R.jsx(R.Fragment,{children:o||n}),isFullHeight:!0,children:[R.jsx(X.EmptyStateBody,{children:i}),R.jsxs(X.EmptyStateFooter,{children:[R.jsx(X.EmptyStateBody,{children:r}),R.jsx(X.Button,{variant:"primary",onClick:()=>window.location.reload(),children:a})]})]})}function Tet(e){const{title:t,description:n,icon:r,button:a,footNote:o,image:i,variant:l,style:s}=e;return R.jsxs(X.EmptyState,{icon:r,headingLevel:"h4",titleText:R.jsx(R.Fragment,{children:t}),variant:l||X.EmptyStateVariant.full,style:s,isFullHeight:!0,children:[R.jsx(X.EmptyStateBody,{"data-cy":e.description,children:n}),R.jsxs(X.EmptyStateFooter,{children:[a&&R.jsx(X.EmptyStateActions,{children:a}),i&&R.jsxs(R.Fragment,{children:[" ",R.jsx("br",{})," ",R.jsx(X.EmptyStateBody,{children:i})]}),o&&R.jsx(X.EmptyStateBody,{children:o})]})]})}function Ret(e){const{button:t,description:n,title:r,variant:a,icon:o}=e;return R.jsx(Tet,{icon:o??(t?Vt.PlusCircleIcon:Vt.CubesIcon),title:r,description:n,button:t,variant:a})}const Ape=w.createContext({dialogs:[],clearDialogs:()=>{},pushDialog:e=>{},popDialog:()=>{}}),Ppe=w.createContext(!1);function Dpe(){return w.useContext(Ppe)}function Mpe(e){const[t,n]=w.useState([]),r=w.useCallback(()=>n(l=>l.length?[]:l),[n]),a=w.useCallback(l=>n(s=>[...s,l]),[n]),o=w.useCallback(()=>n(l=>l.slice(0,-1)),[n]),i=w.useMemo(()=>({dialogs:t,clearDialogs:r,pushDialog:a,popDialog:o}),[r,t,o,a]);return R.jsxs(Ape.Provider,{value:i,children:[R.jsx(Ppe.Provider,{value:!0,children:t.length>0&&t[t.length-1]}),e.children]})}function Lpe(){return w.useContext(Ape)}function Zp(){const{dialogs:e,clearDialogs:t,pushDialog:n}=Lpe(),r=w.useMemo(()=>e.length>0?e[e.length-1]:void 0,[e]),a=w.useCallback(o=>{t(),o!==void 0&&n(o)},[t,n]);return w.useMemo(()=>[r,a],[r,a])}function Iet(e,t,n){const{selectedItems:r,selectItem:a,unselectItem:o,isSelected:i,selectItems:l,unselectAll:s,allSelected:c}=Mj(e,t),{sorted:p,sort:f,setSort:g}=Lj(e),{filtered:v,setFilterFn:b}=Bj(p,t),{searched:y,search:x,setSearch:E,setSearchFn:C}=Oet(v,t,n==null?void 0:n.search),{paged:I,page:N,setPage:O,perPage:P,setPerPage:M}=kE(y),L=w.useCallback(()=>l(I),[I,l]),H=w.useCallback(()=>l(y),[y,l]);return w.useMemo(()=>({allSelected:c,filtered:v,isSelected:i,page:N,paged:I,perPage:P,search:x,searched:y,selectAll:H,selectItem:a,selectPage:L,selectedItems:r,setFilterFn:b,setPage:O,setPerPage:M,setSearch:E,setSearchFn:C,setSort:g,sort:f,sorted:p,unselectAll:s,unselectItem:o}),[c,v,i,N,I,P,x,y,H,a,L,r,b,O,M,E,C,g,f,p,s,o])}function Mj(e,t,n){const[r,a]=w.useState(()=>n?n.reduce((y,x)=>(y[`item-${t(x)}`]=x,y),{}):{});w.useEffect(()=>{a(y=>{let x=!1;return e.forEach(E=>{const C=`item-${t(E)}`;y[C]&&y[C]!==E&&(x=!0,y[C]=E)}),x?{...y}:y})},[e,t]);const o=w.useCallback(y=>{a(x=>{const E=`item-${t(y)}`;return x[E]!==y&&(x={...x},x[E]=y),x})},[t]),i=w.useCallback(y=>{a(x=>{const E=`item-${t(y)}`;return x[E]&&(x={...x},delete x[E]),x})},[t]),l=w.useCallback(y=>{const x=`item-${t(y)}`;return r[x]!==void 0},[t,r]),s=w.useCallback(y=>{a(x=>{x={...x};for(const E of y){const C=`item-${t(E)}`;x[C]=E}return x})},[t]),c=w.useRef(e);w.useEffect(()=>{c.current=e},[e]);const p=w.useCallback(()=>s(c.current),[s]),f=w.useCallback(y=>{for(const x of y)i(x)},[i]),g=w.useCallback(()=>{a(y=>Object.keys(y).length>0?{}:y)},[]),v=w.useMemo(()=>Object.values(r),[r]),b=w.useMemo(()=>v.length===e.length,[e.length,v.length]);return w.useMemo(()=>({selectedItems:v,selectItem:o,unselectItem:i,isSelected:l,selectItems:s,selectAll:p,unselectAll:g,allSelected:b,keyFn:t,unselectItems:f}),[b,l,t,p,o,s,v,g,i,f])}function Bpe(e,t){const[n,r]=w.useState({});w.useEffect(()=>{r(v=>{let b=!1;const y=e?e.reduce((C,I)=>{const N=t(I);return C[N]=I,v[N]&&v[N]!==I&&(b=!0,v[N]=I),C},{}):{},x={};for(const C in v)y[C]||(x[C]=!0);const E=Object.keys(x);if(E.length){b=!0;for(const C of E)delete v[C]}return b?{...v}:v})},[e,t]);const a=w.useCallback(v=>{r(b=>{const y=t(v);return b[y]!==v&&(b={...b},b[y]=v),b})},[t]),o=w.useCallback(v=>{r(b=>{const y=t(v);return b[y]&&(b={...b},delete b[y]),b})},[t]),i=w.useCallback(v=>{for(const b of v)o(b)},[o]),l=w.useCallback(v=>{const b=t(v);return n[b]!==void 0},[t,n]),s=w.useCallback(v=>{r(b=>{b={...b};for(const y of v){const x=t(y);b[x]=y}return b})},[t]),c=w.useCallback(()=>{s(e??[])},[e,s]),p=w.useCallback(()=>{r(v=>Object.keys(v).length>0?{}:v)},[]),f=w.useMemo(()=>Object.values(n),[n]),g=w.useMemo(()=>f.length===(e==null?void 0:e.length),[e,f.length]);return w.useMemo(()=>({selectedItems:f,selectItem:a,unselectItem:o,isSelected:l,selectItems:s,selectAll:c,unselectAll:p,allSelected:g,keyFn:t,unselectItems:i}),[g,l,t,c,a,s,f,p,o,i])}function Lj(e){const[t,n]=w.useState(),{direction:r,sortFn:a}=t??{},o=w.useMemo(()=>e?a?r==="asc"?[...e.sort(a)]:[...e.sort(a).reverse()]:e:[],[r,e,a]);return w.useMemo(()=>({sorted:o,sort:t,setSort:n}),[t,o])}function Bj(e,t){const n=w.useRef({map:{}}),[r,a]=w.useState(),o=w.useCallback(c=>a(()=>c),[]),[i,l]=w.useState([]);w.useEffect(()=>{n.current.map={}},[r]);const s=w.useCallback(c=>{const p=t(c);let f=n.current.map[p];return f?f.item!==c&&(f.item=c,f.passes=r?r(c):!0):(f={item:c,passes:r?r(c):!0},n.current.map[p]=f),f.passes},[r,t]);return w.useEffect(()=>{l(r?e.filter(s):e)},[e,r,s]),w.useMemo(function(){return{filtered:i,setFilterFn:o}},[i,o])}function Oet(e,t,n){const r=w.useRef({map:{}}),[a,o]=w.useState(),i=w.useCallback(v=>o(()=>v),[]),[l,s]=w.useState([]),[c,p]=w.useState(n??""),f=w.useCallback(Aj(v=>p(v),200),[]);w.useEffect(()=>{r.current.map={}},[c,a]);const g=w.useCallback(v=>{const b=t(v);let y=r.current.map[b];return y?y.item!==v&&(y.item=v,y.score=a?a(v,c):0):(y={item:v,score:a?a(v,c):0},r.current.map[b]=y),y},[t,a,c]);return w.useEffect(()=>{s(a&&c?e.map(g).filter(v=>v.score<.5).sort((v,b)=>v.score-b.score).map(v=>v.item):e)},[c,e,a,g]),w.useMemo(function(){return{searched:l,search:c,setSearch:f,setSearchFn:i}},[l,c,f,i])}function kE(e){const[t,n]=w.useState([]),[r,a]=w.useState(1),[o,i]=w.useState(10);return w.useEffect(()=>{n(l=>{const s=e.slice((r-1)*o,r*o);if(l.length!==s.length)return s;let c=0;for(const p of s)if(l[c++]!==p)return s;return l})},[r,o,e]),w.useEffect(()=>{r>Math.ceil(e.length/o)&&a(1)},[r,o,e.length]),w.useMemo(()=>({paged:t,page:r,setPage:a,perPage:o,setPerPage:i}),[r,t,o])}const Fj={modifiers:{ghostRow:"pf-m-ghost-row",dragOver:"pf-m-drag-over"}};function Net(e){const{t}=Wn(),{columns:n,keyFn:r,items:a,setItems:o,isSelected:i,selectItem:l,unselectItem:s,allSelected:c,selectAll:p,unselectAll:f,hideColumnHeaders:g,isSelectableWithCheckbox:v}=e,[b,y]=w.useState(null),[x,E]=w.useState(null),[C,I]=w.useState(!1),N=w.useRef(null),O=Y=>{if(N.current){const K=N.current.getBoundingClientRect();return Y.clientX>K.x&&Y.clientX<K.x+K.width&&Y.clientY>K.y&&Y.clientY<K.y+K.height}return!1},P=Y=>{O(Y)||M()},M=()=>{N.current&&Array.from(N.current.children).forEach(Y=>{Y.classList.remove(Fj.modifiers.ghostRow),Y.setAttribute("aria-pressed","false")}),E(null),y(null),I(!1)},L=Y=>{Y.preventDefault();const K=Y.target.closest("tr");if(!K||!(N.current&&N.current.contains(K))||K.id===x)return null;{const ae=K.id,oe=Array.from(N.current.children).findIndex(te=>te.id===ae);if(oe!==b&&x){const te=H([...a],x,oe);o(te)}}return null},H=(Y,K,ae)=>{const oe=Y.findIndex(ee=>r(ee)===K);if(oe===ae)return Y;const te=Y.splice(oe,1);return Y.splice(ae,0,te[0]),Y},U=Y=>{O(Y)||y(null)},F=Y=>{const K=Y.target;K.classList.remove(Fj.modifiers.ghostRow),K.setAttribute("aria-pressed","false"),E(null),y(null),I(!1)},j=Y=>{if(N.current){Y.dataTransfer.effectAllowed="move";const K=Y.currentTarget.id,ae=Array.from(N.current.children).findIndex(oe=>oe.id===Y.currentTarget.id);Y.currentTarget.setAttribute("aria-pressed","true"),E(K),y(ae)}},W=w.useCallback(Y=>{const K=a.findIndex(oe=>r(oe)===r(Y)),ae=[...a];ae[K]=Y,o(ae)},[a,o,r]);return R.jsxs(ar.Table,{"aria-label":t("Table with draggable rows"),className:C?Fj.modifiers.dragOver:"",variant:"compact",gridBreakPoint:"",children:[!g&&R.jsx(ar.Thead,{children:R.jsxs(ar.Tr,{children:[R.jsx(ar.Th,{}),v&&R.jsx(ar.Th,{select:{onSelect:(Y,K)=>{K?p():f()},isSelected:c}}),n.map((Y,K)=>R.jsx(ar.Th,{children:Y.header},K))]})}),R.jsx(ar.Tbody,{ref:N,onDragOver:L,onDragLeave:U,children:a.map((Y,K)=>{const ae=r(Y);return R.jsxs(ar.Tr,{id:ae.toString(),draggable:!0,onDrop:P,onDragEnd:F,onDragStart:j,children:[R.jsx(ar.Td,{draggableRow:{id:`draggable-row-${ae.toString()}`}}),v&&R.jsx(ar.Td,{select:{rowIndex:K,variant:"checkbox",onSelect:(oe,te)=>{te?l(Y):s(Y)},isSelected:i(Y)}}),n.map(oe=>R.jsx(ar.Td,{children:oe.cell(Y,W)},oe.header))]},ae)})})]})}function Aet(e){const[t,n]=Zp(),[r]=w.useState(()=>e.keyFn),[a]=w.useState(()=>e.saveFn),[o]=w.useState(()=>e.loadFn),[i,l]=w.useState(()=>{try{const g=localStorage.getItem(e.id);if(typeof g=="string"){const v=JSON.parse(g);if(Array.isArray(v)&&v.every(b=>typeof b=="object")&&v.every(b=>"key"in b&&"enabled"in b))return v}}catch{}}),s=w.useMemo(()=>i?e.items.map(g=>{if(o){const v=i.find(b=>b.key===r(g));v&&v.state&&o(g,v.state)}return g}).sort((g,v)=>{const b=i.findIndex(x=>x.key===r(g)),y=i.findIndex(x=>x.key===r(v));return b===-1&&y===-1?0:b===-1?1:y===-1?-1:b-y}):e.items,[i,r,o,e.items]),c=w.useMemo(()=>i?s.filter(g=>{const v=i.find(b=>b.key===r(g));return v?v.enabled:!0}):s,[s,i,r]),p=w.useCallback((g,v)=>{const b=g.map(y=>({key:r(y),enabled:v.includes(y),state:a?a(y):void 0}));l(b),localStorage.setItem(e.id,JSON.stringify(b)),e.onSubmit&&e.onSubmit(g)},[r,e,a]);return{openManageItems:()=>n(R.jsx(Pet,{...e,keyFn:r,items:s,defaultSelectedItems:c,onApplyChanges:p})),managedItems:c}}function Pet(e){const{t}=Wn(),{title:n,description:r,columns:a,onApplyChanges:o}=e,[i]=w.useState(()=>e.keyFn),[l,s]=Zp(),c=()=>s(void 0),[p,f]=w.useState(()=>e.items),{selectedItems:g,isSelected:v,selectItem:b,unselectItem:y,allSelected:x,selectAll:E,unselectAll:C}=Mj(p,i,e.defaultSelectedItems),I=()=>{o(p,g),s(void 0)};return R.jsxs(X.Modal,{"aria-label":n,ouiaId:n,variant:e.variant??X.ModalVariant.medium,isOpen:!0,onClose:c,children:[R.jsx(X.ModalHeader,{title:n,description:R.jsx("div",{style:{marginBottom:16},children:r})}),R.jsx(X.Divider,{}),R.jsx(X.ModalBody,{style:{padding:0},children:R.jsx(Net,{keyFn:i,items:p,setItems:f,columns:a,isSelected:v,selectItem:b,unselectItem:y,allSelected:x,selectAll:E,unselectAll:C,hideColumnHeaders:e.hideColumnHeaders,isSelectableWithCheckbox:e.hideSelection!==!0})}),R.jsx(X.Divider,{}),R.jsxs(X.ModalFooter,{children:[R.jsx(X.Button,{variant:"primary",onClick:I,children:t`Apply`},"apply"),R.jsx(X.Button,{variant:"link",onClick:c,children:t`Cancel`},"cancel")]})]})}function Det(e,t,n,r,a){const{t:o}=Wn(),i=w.useMemo(()=>{const f=[{header:o("Name"),cell:g=>g.header}];return n||f.push({header:o("Table"),cell:(g,v)=>R.jsx(Xp,{value:g.table??"",onSelect:b=>{switch(b){case"":v({...g,table:void 0});break;case qm.description:case qm.expanded:case qm.hidden:v({...g,table:b});break}},placeholder:o("Column"),options:[{value:"",label:o("Column"),description:o("Show the column in the table.")},{value:qm.description,label:o("Description"),description:o("Show the column when the item is expanded as a full width description.")},{value:qm.expanded,label:o("Expanded"),description:o("Show the column when the item is expanded as a detail.")},{value:qm.hidden,label:o("Hidden"),description:o("Hide the column.")}],isRequired:!0})}),r||f.push({header:o("List"),cell:(g,v)=>R.jsx(Xp,{value:g.list??"",onSelect:b=>{switch(b){case"":v({...g,list:void 0});break;case"name":case"subtitle":case"description":case"primary":case"secondary":case"hidden":v({...g,list:b});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||f.push({header:o("Card"),cell:(g,v)=>R.jsx(Xp,{value:g.card??"",onSelect:b=>{switch(b){case"":v({...g,card:void 0});break;case"name":case"subtitle":case"description":case"hidden":v({...g,card:b});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})}),f},[a,r,n,o]),l=w.useCallback((f,g)=>{typeof g=="object"&&g!==null&&("table"in g&&typeof g.table=="string"?f.table=g.table:f.table=void 0,"list"in g&&typeof g.list=="string"?f.list=g.list:f.list=void 0,"card"in g&&typeof g.card=="string"?f.card=g.card:f.card=void 0)},[]),s=w.useCallback(f=>{const{table:g,list:v,card:b}=f;return{table:g,list:v,card:b}},[]),{openManageItems:c,managedItems:p}=Aet({id:e,title:o("Manage Columns"),description:o("Manage the order, placement, and format of columns."),items:t,keyFn:f=>f.id??f.header,columns:i,loadFn:l,saveFn:s,hideSelection:!0});return{openColumnManagement:c,managedColumns:p}}function Met(){return R.jsx(ar.Table,{gridBreakPoint:"",className:"page-table",children:R.jsx(ar.Tbody,{children:new Array(10).fill(0).map((e,t)=>R.jsx(ar.Tr,{children:R.jsx(ar.Td,{children:R.jsx(X.Skeleton,{height:"27px"})})},t))})})}function Let(e){const{setPage:t,setPerPage:n}=e,r=w.useCallback((i,l)=>t(l),[t]),a=w.useCallback((i,l)=>n(l),[n]),o=!Ul("md");return R.jsx(X.Pagination,{"data-cy":"pagination",variant:X.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 Bet(e){const t=e.size??350,n=w.useRef(null),[r,a]=w.useState("1fr"),o=w.useCallback(l=>{let s=Math.min(e.maxColumns??12,Math.max(Math.floor(l/t),1));s<1&&(s=1),a(()=>new Array(s).fill("1fr").join(" "))},[e.maxColumns,t]);return du(n,l=>o(l.contentRect.width)),w.useLayoutEffect(()=>{var l;o(((l=n.current)==null?void 0:l.clientWidth)??0)},[o]),R.jsx("div",{ref:n,style:{display:"grid",gridAutoRows:"1fr",gridTemplateColumns:r,gap:16},children:e.children})}const Fpe=Rn.small`
|
450
450
|
opacity: 0.7;
|
451
451
|
`,Fet=Rn.div`
|
452
452
|
display: flex;
|
package/package.json
CHANGED
package/publish/index.d.ts
CHANGED
@@ -1,155 +1,155 @@
|
|
1
|
-
import { $ as s } from "./index-
|
2
|
-
import { B as o } from "./index-
|
3
|
-
import { A as t } from "./index-
|
4
|
-
import { C as r } from "./index-
|
5
|
-
import { aW as l } from "./index-
|
6
|
-
import { aY as i } from "./index-
|
7
|
-
import { aV as n } from "./index-
|
8
|
-
import { aX as g } from "./index-
|
9
|
-
import { aZ as b } from "./index-
|
10
|
-
import { aU as u } from "./index-
|
11
|
-
import { aQ as P } from "./index-
|
12
|
-
import { D as d } from "./index-
|
13
|
-
import { af as m } from "./index-
|
14
|
-
import { ae as C } from "./index-
|
15
|
-
import { E as c } from "./index-
|
16
|
-
import { bo as T } from "./index-
|
17
|
-
import { bm as D } from "./index-
|
18
|
-
import { F as p } from "./index-
|
19
|
-
import { G as S } from "./index-
|
20
|
-
import { bs as h } from "./index-
|
21
|
-
import { ab as F } from "./index-
|
22
|
-
import { H as v } from "./index-
|
23
|
-
import { k as B } from "./index-
|
24
|
-
import { I as f } from "./index-
|
25
|
-
import { L as I } from "./index-
|
26
|
-
import { a2 as A } from "./index-
|
27
|
-
import { P as y } from "./index-
|
28
|
-
import { r as N } from "./index-
|
29
|
-
import { q as x } from "./index-
|
30
|
-
import { s as k } from "./index-
|
31
|
-
import { t as w } from "./index-
|
32
|
-
import { w as E } from "./index-
|
33
|
-
import { y as O } from "./index-
|
34
|
-
import { z as L } from "./index-
|
35
|
-
import { J as M } from "./index-
|
36
|
-
import { M as V } from "./index-
|
37
|
-
import { N as R } from "./index-
|
38
|
-
import { Q as W } from "./index-
|
39
|
-
import { O as j } from "./index-
|
40
|
-
import { K as G } from "./index-
|
41
|
-
import { U as z } from "./index-
|
42
|
-
import { X as U } from "./index-
|
43
|
-
import { V as H } from "./index-
|
44
|
-
import { Y as q } from "./index-
|
45
|
-
import { aP as Q } from "./index-
|
46
|
-
import { Z as J } from "./index-
|
47
|
-
import { _ as K } from "./index-
|
48
|
-
import { a4 as X } from "./index-
|
49
|
-
import { W as Y } from "./index-
|
50
|
-
import { an as Z } from "./index-
|
51
|
-
import { aq as _ } from "./index-
|
52
|
-
import { ac as $ } from "./index-
|
53
|
-
import { ad as aa } from "./index-
|
54
|
-
import { ao as ea } from "./index-
|
55
|
-
import { ai as sa } from "./index-
|
56
|
-
import { ap as oa } from "./index-
|
57
|
-
import { aj as ta } from "./index-
|
58
|
-
import { ak as ra } from "./index-
|
59
|
-
import { al as la } from "./index-
|
60
|
-
import { ar as ia } from "./index-
|
61
|
-
import { as as na } from "./index-
|
62
|
-
import { at as ga } from "./index-
|
63
|
-
import { au as ba } from "./index-
|
64
|
-
import { av as ua } from "./index-
|
65
|
-
import { aF as Pa } from "./index-
|
66
|
-
import { aH as da } from "./index-
|
67
|
-
import { ay as ma } from "./index-
|
68
|
-
import { a9 as Ca } from "./index-
|
69
|
-
import { aa as ca } from "./index-
|
70
|
-
import { aw as Ta } from "./index-
|
71
|
-
import { aL as Da } from "./index-
|
72
|
-
import { aM as pa } from "./index-
|
73
|
-
import { bg as Sa } from "./index-
|
74
|
-
import { aN as ha } from "./index-
|
75
|
-
import { aR as Fa } from "./index-
|
76
|
-
import { aT as va } from "./index-
|
77
|
-
import { bf as Ba } from "./index-
|
78
|
-
import { ax as fa } from "./index-
|
79
|
-
import { bh as Ia } from "./index-
|
80
|
-
import { bj as Aa } from "./index-
|
81
|
-
import { br as ya } from "./index-
|
82
|
-
import { R as Na } from "./index-
|
83
|
-
import { S as xa } from "./index-
|
84
|
-
import { a8 as ka } from "./index-
|
85
|
-
import { aO as wa } from "./index-
|
86
|
-
import { a_ as Ea } from "./index-
|
87
|
-
import { T as Oa } from "./index-
|
88
|
-
import { bn as La } from "./index-
|
89
|
-
import { bi as Ma } from "./index-
|
90
|
-
import { bq as Va } from "./index-
|
91
|
-
import { bp as Ra } from "./index-
|
92
|
-
import { aC as Wa } from "./index-
|
93
|
-
import { aD as ja } from "./index-
|
94
|
-
import { aE as Ga } from "./index-
|
95
|
-
import { bz as za } from "./index-
|
96
|
-
import { by as Ua } from "./index-
|
97
|
-
import { bx as Ha } from "./index-
|
98
|
-
import { bw as qa } from "./index-
|
99
|
-
import { x as Qa } from "./index-
|
100
|
-
import { bB as Ja } from "./index-
|
101
|
-
import { aA as Ka } from "./index-
|
102
|
-
import { g as Xa } from "./index-
|
103
|
-
import { bk as Ya } from "./index-
|
104
|
-
import { ah as Za } from "./index-
|
105
|
-
import { bA as _a } from "./index-
|
106
|
-
import { a as $a } from "./index-
|
107
|
-
import { e as ae } from "./index-
|
108
|
-
import { c as ee } from "./index-
|
109
|
-
import { f as se } from "./index-
|
110
|
-
import { p as oe } from "./index-
|
111
|
-
import { i as te } from "./index-
|
112
|
-
import { h as re } from "./index-
|
113
|
-
import { b as le } from "./index-
|
114
|
-
import { az as ie } from "./index-
|
115
|
-
import { aB as ne } from "./index-
|
116
|
-
import { bl as ge } from "./index-
|
117
|
-
import { n as be } from "./index-
|
118
|
-
import { a0 as ue } from "./index-
|
119
|
-
import { a1 as Pe } from "./index-
|
120
|
-
import { aS as de } from "./index-
|
121
|
-
import { b8 as me } from "./index-
|
122
|
-
import { b7 as Ce } from "./index-
|
123
|
-
import { b3 as ce } from "./index-
|
124
|
-
import { b5 as Te } from "./index-
|
125
|
-
import { b6 as De } from "./index-
|
126
|
-
import { bd as pe } from "./index-
|
127
|
-
import { am as Se } from "./index-
|
128
|
-
import { bt as he } from "./index-
|
129
|
-
import { aJ as Fe } from "./index-
|
130
|
-
import { bu as ve } from "./index-
|
131
|
-
import { a3 as Be } from "./index-
|
132
|
-
import { o as fe } from "./index-
|
133
|
-
import { v as Ie } from "./index-
|
134
|
-
import { a6 as Ae } from "./index-
|
135
|
-
import { a5 as ye } from "./index-
|
136
|
-
import { aI as Ne } from "./index-
|
137
|
-
import { aG as xe } from "./index-
|
138
|
-
import { aK as ke } from "./index-
|
139
|
-
import { u as we } from "./index-
|
140
|
-
import { be as Ee } from "./index-
|
141
|
-
import { l as Oe } from "./index-
|
142
|
-
import { a7 as Le } from "./index-
|
143
|
-
import { ba as Me } from "./index-
|
144
|
-
import { bb as Ve } from "./index-
|
145
|
-
import { bc as Re } from "./index-
|
146
|
-
import { b9 as We } from "./index-
|
147
|
-
import { bv as je } from "./index-
|
148
|
-
import { b1 as Ge } from "./index-
|
149
|
-
import { b4 as ze } from "./index-
|
150
|
-
import { b0 as Ue } from "./index-
|
151
|
-
import { b2 as He } from "./index-
|
152
|
-
import { a$ as qe } from "./index-
|
153
|
-
import { m as Qe } from "./index-
|
154
|
-
import { ag as Je } from "./index-
|
1
|
+
import { $ as s } from "./index-Cx89Cxcl.js";
|
2
|
+
import { B as o } from "./index-Cx89Cxcl.js";
|
3
|
+
import { A as t } from "./index-Cx89Cxcl.js";
|
4
|
+
import { C as r } from "./index-Cx89Cxcl.js";
|
5
|
+
import { aW as l } from "./index-Cx89Cxcl.js";
|
6
|
+
import { aY as i } from "./index-Cx89Cxcl.js";
|
7
|
+
import { aV as n } from "./index-Cx89Cxcl.js";
|
8
|
+
import { aX as g } from "./index-Cx89Cxcl.js";
|
9
|
+
import { aZ as b } from "./index-Cx89Cxcl.js";
|
10
|
+
import { aU as u } from "./index-Cx89Cxcl.js";
|
11
|
+
import { aQ as P } from "./index-Cx89Cxcl.js";
|
12
|
+
import { D as d } from "./index-Cx89Cxcl.js";
|
13
|
+
import { af as m } from "./index-Cx89Cxcl.js";
|
14
|
+
import { ae as C } from "./index-Cx89Cxcl.js";
|
15
|
+
import { E as c } from "./index-Cx89Cxcl.js";
|
16
|
+
import { bo as T } from "./index-Cx89Cxcl.js";
|
17
|
+
import { bm as D } from "./index-Cx89Cxcl.js";
|
18
|
+
import { F as p } from "./index-Cx89Cxcl.js";
|
19
|
+
import { G as S } from "./index-Cx89Cxcl.js";
|
20
|
+
import { bs as h } from "./index-Cx89Cxcl.js";
|
21
|
+
import { ab as F } from "./index-Cx89Cxcl.js";
|
22
|
+
import { H as v } from "./index-Cx89Cxcl.js";
|
23
|
+
import { k as B } from "./index-Cx89Cxcl.js";
|
24
|
+
import { I as f } from "./index-Cx89Cxcl.js";
|
25
|
+
import { L as I } from "./index-Cx89Cxcl.js";
|
26
|
+
import { a2 as A } from "./index-Cx89Cxcl.js";
|
27
|
+
import { P as y } from "./index-Cx89Cxcl.js";
|
28
|
+
import { r as N } from "./index-Cx89Cxcl.js";
|
29
|
+
import { q as x } from "./index-Cx89Cxcl.js";
|
30
|
+
import { s as k } from "./index-Cx89Cxcl.js";
|
31
|
+
import { t as w } from "./index-Cx89Cxcl.js";
|
32
|
+
import { w as E } from "./index-Cx89Cxcl.js";
|
33
|
+
import { y as O } from "./index-Cx89Cxcl.js";
|
34
|
+
import { z as L } from "./index-Cx89Cxcl.js";
|
35
|
+
import { J as M } from "./index-Cx89Cxcl.js";
|
36
|
+
import { M as V } from "./index-Cx89Cxcl.js";
|
37
|
+
import { N as R } from "./index-Cx89Cxcl.js";
|
38
|
+
import { Q as W } from "./index-Cx89Cxcl.js";
|
39
|
+
import { O as j } from "./index-Cx89Cxcl.js";
|
40
|
+
import { K as G } from "./index-Cx89Cxcl.js";
|
41
|
+
import { U as z } from "./index-Cx89Cxcl.js";
|
42
|
+
import { X as U } from "./index-Cx89Cxcl.js";
|
43
|
+
import { V as H } from "./index-Cx89Cxcl.js";
|
44
|
+
import { Y as q } from "./index-Cx89Cxcl.js";
|
45
|
+
import { aP as Q } from "./index-Cx89Cxcl.js";
|
46
|
+
import { Z as J } from "./index-Cx89Cxcl.js";
|
47
|
+
import { _ as K } from "./index-Cx89Cxcl.js";
|
48
|
+
import { a4 as X } from "./index-Cx89Cxcl.js";
|
49
|
+
import { W as Y } from "./index-Cx89Cxcl.js";
|
50
|
+
import { an as Z } from "./index-Cx89Cxcl.js";
|
51
|
+
import { aq as _ } from "./index-Cx89Cxcl.js";
|
52
|
+
import { ac as $ } from "./index-Cx89Cxcl.js";
|
53
|
+
import { ad as aa } from "./index-Cx89Cxcl.js";
|
54
|
+
import { ao as ea } from "./index-Cx89Cxcl.js";
|
55
|
+
import { ai as sa } from "./index-Cx89Cxcl.js";
|
56
|
+
import { ap as oa } from "./index-Cx89Cxcl.js";
|
57
|
+
import { aj as ta } from "./index-Cx89Cxcl.js";
|
58
|
+
import { ak as ra } from "./index-Cx89Cxcl.js";
|
59
|
+
import { al as la } from "./index-Cx89Cxcl.js";
|
60
|
+
import { ar as ia } from "./index-Cx89Cxcl.js";
|
61
|
+
import { as as na } from "./index-Cx89Cxcl.js";
|
62
|
+
import { at as ga } from "./index-Cx89Cxcl.js";
|
63
|
+
import { au as ba } from "./index-Cx89Cxcl.js";
|
64
|
+
import { av as ua } from "./index-Cx89Cxcl.js";
|
65
|
+
import { aF as Pa } from "./index-Cx89Cxcl.js";
|
66
|
+
import { aH as da } from "./index-Cx89Cxcl.js";
|
67
|
+
import { ay as ma } from "./index-Cx89Cxcl.js";
|
68
|
+
import { a9 as Ca } from "./index-Cx89Cxcl.js";
|
69
|
+
import { aa as ca } from "./index-Cx89Cxcl.js";
|
70
|
+
import { aw as Ta } from "./index-Cx89Cxcl.js";
|
71
|
+
import { aL as Da } from "./index-Cx89Cxcl.js";
|
72
|
+
import { aM as pa } from "./index-Cx89Cxcl.js";
|
73
|
+
import { bg as Sa } from "./index-Cx89Cxcl.js";
|
74
|
+
import { aN as ha } from "./index-Cx89Cxcl.js";
|
75
|
+
import { aR as Fa } from "./index-Cx89Cxcl.js";
|
76
|
+
import { aT as va } from "./index-Cx89Cxcl.js";
|
77
|
+
import { bf as Ba } from "./index-Cx89Cxcl.js";
|
78
|
+
import { ax as fa } from "./index-Cx89Cxcl.js";
|
79
|
+
import { bh as Ia } from "./index-Cx89Cxcl.js";
|
80
|
+
import { bj as Aa } from "./index-Cx89Cxcl.js";
|
81
|
+
import { br as ya } from "./index-Cx89Cxcl.js";
|
82
|
+
import { R as Na } from "./index-Cx89Cxcl.js";
|
83
|
+
import { S as xa } from "./index-Cx89Cxcl.js";
|
84
|
+
import { a8 as ka } from "./index-Cx89Cxcl.js";
|
85
|
+
import { aO as wa } from "./index-Cx89Cxcl.js";
|
86
|
+
import { a_ as Ea } from "./index-Cx89Cxcl.js";
|
87
|
+
import { T as Oa } from "./index-Cx89Cxcl.js";
|
88
|
+
import { bn as La } from "./index-Cx89Cxcl.js";
|
89
|
+
import { bi as Ma } from "./index-Cx89Cxcl.js";
|
90
|
+
import { bq as Va } from "./index-Cx89Cxcl.js";
|
91
|
+
import { bp as Ra } from "./index-Cx89Cxcl.js";
|
92
|
+
import { aC as Wa } from "./index-Cx89Cxcl.js";
|
93
|
+
import { aD as ja } from "./index-Cx89Cxcl.js";
|
94
|
+
import { aE as Ga } from "./index-Cx89Cxcl.js";
|
95
|
+
import { bz as za } from "./index-Cx89Cxcl.js";
|
96
|
+
import { by as Ua } from "./index-Cx89Cxcl.js";
|
97
|
+
import { bx as Ha } from "./index-Cx89Cxcl.js";
|
98
|
+
import { bw as qa } from "./index-Cx89Cxcl.js";
|
99
|
+
import { x as Qa } from "./index-Cx89Cxcl.js";
|
100
|
+
import { bB as Ja } from "./index-Cx89Cxcl.js";
|
101
|
+
import { aA as Ka } from "./index-Cx89Cxcl.js";
|
102
|
+
import { g as Xa } from "./index-Cx89Cxcl.js";
|
103
|
+
import { bk as Ya } from "./index-Cx89Cxcl.js";
|
104
|
+
import { ah as Za } from "./index-Cx89Cxcl.js";
|
105
|
+
import { bA as _a } from "./index-Cx89Cxcl.js";
|
106
|
+
import { a as $a } from "./index-Cx89Cxcl.js";
|
107
|
+
import { e as ae } from "./index-Cx89Cxcl.js";
|
108
|
+
import { c as ee } from "./index-Cx89Cxcl.js";
|
109
|
+
import { f as se } from "./index-Cx89Cxcl.js";
|
110
|
+
import { p as oe } from "./index-Cx89Cxcl.js";
|
111
|
+
import { i as te } from "./index-Cx89Cxcl.js";
|
112
|
+
import { h as re } from "./index-Cx89Cxcl.js";
|
113
|
+
import { b as le } from "./index-Cx89Cxcl.js";
|
114
|
+
import { az as ie } from "./index-Cx89Cxcl.js";
|
115
|
+
import { aB as ne } from "./index-Cx89Cxcl.js";
|
116
|
+
import { bl as ge } from "./index-Cx89Cxcl.js";
|
117
|
+
import { n as be } from "./index-Cx89Cxcl.js";
|
118
|
+
import { a0 as ue } from "./index-Cx89Cxcl.js";
|
119
|
+
import { a1 as Pe } from "./index-Cx89Cxcl.js";
|
120
|
+
import { aS as de } from "./index-Cx89Cxcl.js";
|
121
|
+
import { b8 as me } from "./index-Cx89Cxcl.js";
|
122
|
+
import { b7 as Ce } from "./index-Cx89Cxcl.js";
|
123
|
+
import { b3 as ce } from "./index-Cx89Cxcl.js";
|
124
|
+
import { b5 as Te } from "./index-Cx89Cxcl.js";
|
125
|
+
import { b6 as De } from "./index-Cx89Cxcl.js";
|
126
|
+
import { bd as pe } from "./index-Cx89Cxcl.js";
|
127
|
+
import { am as Se } from "./index-Cx89Cxcl.js";
|
128
|
+
import { bt as he } from "./index-Cx89Cxcl.js";
|
129
|
+
import { aJ as Fe } from "./index-Cx89Cxcl.js";
|
130
|
+
import { bu as ve } from "./index-Cx89Cxcl.js";
|
131
|
+
import { a3 as Be } from "./index-Cx89Cxcl.js";
|
132
|
+
import { o as fe } from "./index-Cx89Cxcl.js";
|
133
|
+
import { v as Ie } from "./index-Cx89Cxcl.js";
|
134
|
+
import { a6 as Ae } from "./index-Cx89Cxcl.js";
|
135
|
+
import { a5 as ye } from "./index-Cx89Cxcl.js";
|
136
|
+
import { aI as Ne } from "./index-Cx89Cxcl.js";
|
137
|
+
import { aG as xe } from "./index-Cx89Cxcl.js";
|
138
|
+
import { aK as ke } from "./index-Cx89Cxcl.js";
|
139
|
+
import { u as we } from "./index-Cx89Cxcl.js";
|
140
|
+
import { be as Ee } from "./index-Cx89Cxcl.js";
|
141
|
+
import { l as Oe } from "./index-Cx89Cxcl.js";
|
142
|
+
import { a7 as Le } from "./index-Cx89Cxcl.js";
|
143
|
+
import { ba as Me } from "./index-Cx89Cxcl.js";
|
144
|
+
import { bb as Ve } from "./index-Cx89Cxcl.js";
|
145
|
+
import { bc as Re } from "./index-Cx89Cxcl.js";
|
146
|
+
import { b9 as We } from "./index-Cx89Cxcl.js";
|
147
|
+
import { bv as je } from "./index-Cx89Cxcl.js";
|
148
|
+
import { b1 as Ge } from "./index-Cx89Cxcl.js";
|
149
|
+
import { b4 as ze } from "./index-Cx89Cxcl.js";
|
150
|
+
import { b0 as Ue } from "./index-Cx89Cxcl.js";
|
151
|
+
import { b2 as He } from "./index-Cx89Cxcl.js";
|
152
|
+
import { a$ as qe } from "./index-Cx89Cxcl.js";
|
153
|
+
import { m as Qe } from "./index-Cx89Cxcl.js";
|
154
|
+
import { ag as Je } from "./index-Cx89Cxcl.js";
|
155
155
|
export { s as BulkActionDialog, o as BulkSelector, t as BytesCell, r as Collapse, l as ColumnCardOption, i as ColumnDashboardOption, n as ColumnListOption, g as ColumnModalOption, b as ColumnPriority, u as ColumnTableOption, P as ColumnsDiv, d as CopyCell, m as DataEditorActions, C as DataEditorButtons, c as DateCell, T as DateRange, D as DateRangeFilterPresets, p as DateTimeCell, S as ElapsedTimeCell, h as FrameworkTranslationsProvider, F as GenericForm, v as Help, B as LabelColorE, f as LabelsCell, I as LoadingPage, A as MultiSelectDialog, y as PFColorE, N as PageActionSelection, x as PageActionType, k as PageActions, w as PageAlertToasterContext, E as PageAlertToasterProvider, O as PageApp, L as PageBody, M as PageChartContainer, V as PageDashboard, R as PageDashboardCard, W as PageDashboardChart, j as PageDashboardChartVariantE, G as PageDashboardContext, z as PageDashboardCount, U as PageDashboardDonutCard, H as PageDashboardGettingStarted, q as PageDetail, Q as PageDetailDiv, J as PageDetails, K as PageDetailsFromColumns, X as PageDialogProvider, Y as PageDonutChart, Z as PageForm, _ as PageFormCancelButton, $ as PageFormCheckbox, aa as PageFormDataEditor, ea as PageFormGrid, sa as PageFormSelect, oa as PageFormSubmitButton, ta as PageFormSwitch, ra as PageFormTextArea, la as PageFormTextInput, ia as PageFramework, na as PageHeader, ga as PageLayout, ba as PageMasthead, ua as PageMastheadToggle, Pa as PageNavSideBarContext, da as PageNavSideBarProvider, ma as PageNavigation, Ca as PageNotFound, ca as PageNotImplemented, Ta as PageNotificationsIcon, Da as PageSettingsContext, pa as PageSettingsProvider, Sa as PageTab, ha as PageTable, Fa as PageTableCard, va as PageTableCards, Ba as PageTabs, fa as PageThemeSwitcher, Ia as PageToolbar, Aa as PageToolbarFilters, ya as PageWizard, Na as RunningIcon, xa as Scrollable, ka as SelectDialog, wa as Small, Ea as TableColumnCell, Oa as TextCell, La as ToolbarDateRangeFilter, Ma as ToolbarFilterType, Va as ToolbarSingleTextFilter, Ra as ToolbarTextMultiFilter, Wa as addNavigationItem, ja as addNavigationItemAfter, Ga as addNavigationItemBefore, za as buildQueryString, Ua as compareNumbers, Ha as compareStrings, qa as compareUnknowns, Qa as errorToAlertProps, Ja as filtersToSearchObj, Ka as findNavigationItemById, Xa as getPatternflyColor, Ya as multiSelectBrowseAdapter, Za as objectToString, _a as paramsToSearchObj, $a as pfDanger, ae as pfDisabled, ee as pfInfo, se as pfLink, oe as pfSuccess, te as pfTopologyInfo, re as pfUnreachable, le as pfWarning, ie as removeLeadingSlash, ne as removeNavigationItemById, ge as singleSelectBrowseAdapter, be as useBreakpoint, ue as useBulkActionDialog, Pe as useBulkConfirmation, de as useColumnsToTableCardFn, me as useColumnsWithoutExpandedRow, Ce as useColumnsWithoutSort, ce as useDashboardColumns, Te as useDescriptionColumns, De as useExpandedColumns, pe as useFiltered, Se as useFormErrors, he as useFrameworkTranslations, Fe as useGetPageUrl, ve as useInMemoryView, Be as useIsPageDialog, fe as useOrientation, Ie as usePageAlertToaster, Ae as usePageDialog, ye as usePageDialogs, Ne as usePageNavBarClick, xe as usePageNavSideBar, ke as usePageNavigate, we as usePageSettings, Ee as usePaged, Oe as useScrollableState, Le as useSelectDialog, Me as useSelected, Ve as useSelectedInMemory, Re as useSorted, We as useTableItems, je as useView, Ge as useVisibleCardColumns, ze as useVisibleColumns, Ue as useVisibleListColumns, He as useVisibleModalColumns, qe as useVisibleTableColumns, Qe as useWindowSize, Je as valueToObject };
|
File without changes
|
File without changes
|
File without changes
|