@ansible/ansible-ui-framework 2.4.1388 → 2.4.1389

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,7 +20,7 @@ export declare const pfWarning = "var(--pf-v5-global--warning-color--100)";
20
20
  export declare const pfInfo = "var(--pf-v5-global--info-color--100)";
21
21
  export declare const pfDisabled = "var(--pf-v5-global--disabled-color--100)";
22
22
  export declare const pfLink = "var(--pf-v5-global--link--Color)";
23
- export declare const pfUnreachable = "var(--pf-v5-global--danger-color--300)";
23
+ export declare const pfUnreachable = "var(--pf-v5-global--danger-color--100)";
24
24
  export declare enum LabelColorE {
25
25
  blue = "blue",
26
26
  cyan = "cyan",
@@ -107,7 +107,7 @@ declare const ik: "var(--pf-v5-global--disabled-color--100)";
107
107
  declare const rk: "var(--pf-v5-global--info-color--100)";
108
108
  declare const pAe: "var(--pf-v5-global--link--Color)";
109
109
  declare const tk: "var(--pf-v5-global--success-color--100)";
110
- declare const gAe: "var(--pf-v5-global--danger-color--300)";
110
+ declare const gAe: "var(--pf-v5-global--danger-color--100)";
111
111
  declare const D8: "var(--pf-v5-global--warning-color--100)";
112
112
  declare function BAe(e: any): any;
113
113
  declare function jTe(e: any, t: any): any;
package/index.js CHANGED
@@ -12213,7 +12213,7 @@ function k0(e) {
12213
12213
  return ik;
12214
12214
  }
12215
12215
  }
12216
- const tk = "var(--pf-v5-global--success-color--100)", nk = "var(--pf-v5-global--danger-color--100)", D8 = "var(--pf-v5-global--warning-color--100)", rk = "var(--pf-v5-global--info-color--100)", ik = "var(--pf-v5-global--disabled-color--100)", pAe = "var(--pf-v5-global--link--Color)", gAe = "var(--pf-v5-global--danger-color--300)";
12216
+ const tk = "var(--pf-v5-global--success-color--100)", nk = "var(--pf-v5-global--danger-color--100)", D8 = "var(--pf-v5-global--warning-color--100)", rk = "var(--pf-v5-global--info-color--100)", ik = "var(--pf-v5-global--disabled-color--100)", pAe = "var(--pf-v5-global--link--Color)", gAe = "var(--pf-v5-global--danger-color--100)";
12217
12217
  var I8 = /* @__PURE__ */ ((e) => (e.blue = "blue", e.cyan = "cyan", e.green = "green", e.orange = "orange", e.purple = "purple", e.red = "red", e.grey = "grey", e))(I8 || {});
12218
12218
  function Mc(e) {
12219
12219
  const t = {};
package/index.umd.cjs CHANGED
@@ -109,7 +109,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Wu]+=1);function bi(e){const
109
109
  * LICENSE file in the root directory of this source tree.
110
110
  */var hw;function JL(){return hw||(hw=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=x,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(_){{for(var S=arguments.length,w=new Array(S>1?S-1:0),O=1;O<S;O++)w[O-1]=arguments[O];r("error",_,w)}}function r(_,S,w){{var O=t.ReactDebugCurrentFrame,E=O.getStackAddendum();E!==""&&(S+="%s",w=w.concat([E]));var T=w.map(function($){return String($)});T.unshift("Warning: "+S),Function.prototype.apply.call(console[_],console,T)}}function i(_,S){return _===S&&(_!==0||1/_===1/S)||_!==_&&S!==S}var a=typeof Object.is=="function"?Object.is:i,o=e.useState,s=e.useEffect,l=e.useLayoutEffect,c=e.useDebugValue,u=!1,f=!1;function d(_,S,w){u||e.startTransition!==void 0&&(u=!0,n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var O=S();if(!f){var E=S();a(O,E)||(n("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}var T=o({inst:{value:O,getSnapshot:S}}),$=T[0].inst,M=T[1];return l(function(){$.value=O,$.getSnapshot=S,h($)&&M({inst:$})},[_,O,S]),s(function(){h($)&&M({inst:$});var A=function(){h($)&&M({inst:$})};return _(A)},[_]),c(O),O}function h(_){var S=_.getSnapshot,w=_.value;try{var O=S();return!a(w,O)}catch{return!0}}function p(_,S,w){return S()}var g=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",v=!g,y=v?p:d,b=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:y;om.useSyncExternalStore=b,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),om}process.env.NODE_ENV==="production"?ZL():JL();const aa=()=>{},Bn=aa(),lf=Object,Ar=e=>e===Bn,oa=e=>typeof e=="function",Va=(e,t)=>({...e,...t}),QL=e=>oa(e.then),cf=new WeakMap;let e4=0;const Rl=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let i,a;if(lf(e)===e&&!r&&n!=RegExp){if(i=cf.get(e),i)return i;if(i=++e4+"~",cf.set(e,i),n==Array){for(i="@",a=0;a<e.length;a++)i+=Rl(e[a])+",";cf.set(e,i)}if(n==lf){i="#";const o=lf.keys(e).sort();for(;!Ar(a=o.pop());)Ar(e[a])||(i+=a+":"+Rl(e[a])+",");cf.set(e,i)}}else i=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return i},sa=new WeakMap,sm={},uf={},pw="undefined",lm=typeof window!=pw,cm=typeof document!=pw,t4=(e,t)=>{const n=sa.get(e);return[()=>!Ar(t)&&e.get(t)||sm,r=>{if(!Ar(t)){const i=e.get(t);t in uf||(uf[t]=i),n[5](t,Va(i,r),i||sm)}},n[6],()=>!Ar(t)&&t in uf?uf[t]:!Ar(t)&&e.get(t)||sm]};let um=!0;const n4=()=>um,[fm,dm]=lm&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[aa,aa],r4=()=>{const e=cm&&document.visibilityState;return Ar(e)||e!=="hidden"},i4=e=>(cm&&document.addEventListener("visibilitychange",e),fm("focus",e),()=>{cm&&document.removeEventListener("visibilitychange",e),dm("focus",e)}),a4=e=>{const t=()=>{um=!0,e()},n=()=>{um=!1};return fm("online",t),fm("offline",n),()=>{dm("online",t),dm("offline",n)}},o4={isOnline:n4,isVisible:r4},s4={initFocus:i4,initReconnect:a4};x.useId;const hm=!lm||"Deno"in window,l4=hm?x.useEffect:x.useLayoutEffect,pm=typeof navigator<"u"&&navigator.connection,gw=!hm&&pm&&(["slow-2g","2g"].includes(pm.effectiveType)||pm.saveData),mw=e=>{if(oa(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Rl(e):"",[e,t]};let c4=0;const vw=()=>++c4,u4=0,f4=1,d4=2;async function h4(...e){const[t,n,r,i]=e,a=Va({populateCache:!0,throwOnError:!0},typeof i=="boolean"?{revalidate:i}:i||{});let o=a.populateCache;const s=a.rollbackOnError;let l=a.optimisticData;const c=d=>typeof s=="function"?s(d):s!==!1,u=a.throwOnError;if(oa(n)){const d=n,h=[],p=t.keys();for(const g of p)!/^\$(inf|sub)\$/.test(g)&&d(t.get(g)._k)&&h.push(g);return Promise.all(h.map(f))}return f(n);async function f(d){const[h]=mw(d);if(!h)return;const[p,g]=t4(t,h),[v,y,b,_]=sa.get(t),S=()=>{const P=v[h];return(oa(a.revalidate)?a.revalidate(p().data,d):a.revalidate!==!1)&&(delete b[h],delete _[h],P&&P[0])?P[0](d4).then(()=>p().data):p().data};if(e.length<3)return S();let w=r,O;const E=vw();y[h]=[E,0];const T=!Ar(l),$=p(),M=$.data,A=$._c,j=Ar(A)?M:A;if(T&&(l=oa(l)?l(j,M):l,g({data:l,_c:j})),oa(w))try{w=w(j)}catch(P){O=P}if(w&&QL(w))if(w=await w.catch(P=>{O=P}),E!==y[h][0]){if(O)throw O;return w}else O&&T&&c(O)&&(o=!0,g({data:j,_c:Bn}));if(o&&!O)if(oa(o)){const P=o(w,j);g({data:P,error:Bn,_c:Bn})}else g({data:w,error:Bn,_c:Bn});if(y[h][1]=vw(),Promise.resolve(S()).then(()=>{g({_c:Bn})}),O){if(u)throw O;return}return w}}const yw=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},bw=(e,t)=>{if(!sa.has(e)){const n=Va(s4,t),r={},i=h4.bind(Bn,e);let a=aa;const o={},s=(u,f)=>{const d=o[u]||[];return o[u]=d,d.push(f),()=>d.splice(d.indexOf(f),1)},l=(u,f,d)=>{e.set(u,f);const h=o[u];if(h)for(const p of h)p(f,d)},c=()=>{if(!sa.has(e)&&(sa.set(e,[r,{},{},{},i,l,s]),!hm)){const u=n.initFocus(setTimeout.bind(Bn,yw.bind(Bn,r,u4))),f=n.initReconnect(setTimeout.bind(Bn,yw.bind(Bn,r,f4)));a=()=>{u&&u(),f&&f(),sa.delete(e)}}};return c(),[e,i,c,a]}return[e,sa.get(e)[4]]},p4=(e,t,n,r,i)=>{const a=n.errorRetryCount,o=i.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;!Ar(a)&&o>a||setTimeout(r,s,i)},g4=(e,t)=>Rl(e)==Rl(t),[gm,m4]=bw(new Map),v4=Va({onLoadingSlow:aa,onSuccess:aa,onError:aa,onErrorRetry:p4,onDiscarded:aa,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:gw?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:gw?5e3:3e3,compare:g4,isPaused:()=>!1,cache:gm,mutate:m4,fallback:{}},o4),y4=(e,t)=>{const n=Va(e,t);if(t){const{use:r,fallback:i}=e,{use:a,fallback:o}=t;r&&a&&(n.use=r.concat(a)),i&&o&&(n.fallback=Va(i,o))}return n},xw=x.createContext({}),b4=e=>{const{value:t}=e,n=x.useContext(xw),r=oa(t),i=x.useMemo(()=>r?t(n):t,[r,n,t]),a=x.useMemo(()=>r?i:y4(n,i),[r,n,i]),o=i&&i.provider,s=x.useRef(Bn);o&&!s.current&&(s.current=bw(o(a.cache||gm),i));const l=s.current;return l&&(a.cache=l[0],a.mutate=l[1]),l4(()=>{if(l)return l[2]&&l[2](),l[3]},[]),x.createElement(xw.Provider,Va(e,{value:a}))},x4="$inf$",_w=lm&&window.__SWR_DEVTOOLS_USE__,_4=_w?window.__SWR_DEVTOOLS_USE__:[],w4=()=>{_w&&(window.__SWR_DEVTOOLS_REACT__=x)},S4=e=>(t,n,r)=>e(t,n&&((...a)=>{const[o]=mw(t),[,,,s]=sa.get(gm);if(o.startsWith(x4))return n(...a);const l=s[o];return Ar(l)?n(...a):(delete s[o],l)}),r);_4.concat(S4),w4(),x.use;const O4=lf.defineProperty(b4,"defaultValue",{value:v4}),Ua=x.createContext([{},()=>null]);function Ha(){const[e]=x.useContext(Ua);return e}function ww(e){const[t,n]=x.useState(()=>{const i=localStorage.getItem("user-preferences");let a={};if(i)try{a=JSON.parse(i)}catch{}return a={refreshInterval:e.defaultRefreshInterval,theme:"system",tableLayout:"comfortable",formColumns:"multiple",formLayout:"vertical",dateFormat:"date-time",dataEditorFormat:"yaml",...a},a}),r=x.useCallback(i=>{const a=i.theme!=="light"&&i.theme!=="dark"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":i.theme;i.activeTheme=a,localStorage.setItem("user-preferences",JSON.stringify(i)),n(i)},[]);return x.useEffect(()=>{(t.theme!=="light"&&t.theme!=="dark"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":t.theme)==="dark"?document.documentElement.classList.add("pf-v5-theme-dark"):document.documentElement.classList.remove("pf-v5-theme-dark")},[t]),m.jsx(O4,{value:{refreshInterval:t.refreshInterval?t.refreshInterval*1e3:0},children:m.jsx(Ua.Provider,{value:[t,r],children:e.children})})}function C4(e){return e?(typeof e=="string"&&(e=new Date(e)),e.toLocaleString()):""}function E4(e){const t=new Date(e.value);return m.jsxs(k.Split,{hasGutter:!0,children:[m.jsx(k.SplitItem,{children:t.toLocaleDateString()}),m.jsx(k.SplitItem,{children:t.toLocaleTimeString()})]})}const k4=Te.span`
111
111
  white-space: nowrap;
112
- `;function Sw(e){const{t}=Ge(),[n]=Pt(),{author:r,onClick:i}=e,[a,o]=x.useState(null),s=Ha(),l=s.dateFormat?s.dateFormat:"date-time",c=x.useCallback((u,f)=>{let d;switch(typeof u=="number"?d=Pe.fromMillis(u):d=Pe.fromISO(u),f){case"since":{Pe.now().toMillis()-d.toMillis()<60*1e3?o(t("Less than a minute ago")):o(d.toRelative());break}default:o(C4(d.toJSDate()));break}},[t]);return x.useEffect(()=>{if(c(e.value,l),l==="since"){const u=setInterval(()=>c(e.value,l),1e3);return()=>clearTimeout(u)}},[l,e.value,c]),e.value?m.jsxs(k4,{className:"date-time",children:[a,r&&m.jsxs("span",{children:[" ",n.by," "]}),i?m.jsx(k.Button,{variant:"link",isInline:!0,onClick:i,children:r}):m.jsx("span",{children:r})]}):m.jsx(m.Fragment,{})}function T4(e){const t=x.useMemo(()=>new Date(e.start??0).valueOf(),[e.start]),n=x.useMemo(()=>new Date(e.finish??0).valueOf(),[e.finish]),[r,i]=x.useState(Math.max(0,n-t.valueOf()));x.useEffect(()=>{const u=setInterval(()=>{t&&(e.finish?i(Math.max(0,n-t)):i(Math.max(0,Date.now()-t)))},1e3);return()=>clearTimeout(u)},[t,n,e.finish]);const a=Math.floor(r/1e3),o=Math.floor(a%60),s=Math.floor(a/60%60),l=Math.floor(a/60/60%24),c=Math.floor(a/60/60/24);return t?m.jsxs(k.Split,{children:[c!==0&&m.jsxs(k.SplitItem,{children:[c,"d"," "]}),l!==0&&m.jsxs(k.SplitItem,{children:[l,"h"," "]}),s!==0&&m.jsxs(k.SplitItem,{children:[s,"m"," "]}),m.jsxs(k.SplitItem,{children:[o,"s"]})]}):m.jsx(m.Fragment,{})}function Ow(e){return m.jsx(k.LabelGroup,{numLabels:e.numLabels??999,style:e.wrapLabels?void 0:{flexWrap:"nowrap"},children:e.labels?e.labels.map(t=>m.jsx(k.Label,{children:t},t)):e.labelsWithLinks.map(t=>m.jsx(k.Label,{color:"blue",children:m.jsx(bt.Link,{to:t.link,children:t.name})},t.name))})}var Cw=(e=>(e.Default="default",e.Green="green",e.Success="success",e.Blue="blue",e.Info="info",e.Red="red",e.Danger="danger",e.Yellow="yellow",e.Orange="orange",e.Warning="warning",e.Grey="grey",e.Disabled="disabled",e))(Cw||{});function ff(e){switch(e){case"default":return;case"green":case"success":return mm;case"red":case"danger":return vm;case"yellow":case"orange":case"warning":return Ew;case"blue":case"info":return ym;case"grey":case"disabled":return bm}}const mm="var(--pf-v5-global--success-color--100)",vm="var(--pf-v5-global--danger-color--100)",Ew="var(--pf-v5-global--warning-color--100)",ym="var(--pf-v5-global--info-color--100)",bm="var(--pf-v5-global--disabled-color--100)",A4="var(--pf-v5-global--link--Color)",P4="var(--pf-v5-global--danger-color--300)";var kw=(e=>(e.blue="blue",e.cyan="cyan",e.green="green",e.orange="orange",e.purple="purple",e.red="red",e.grey="grey",e))(kw||{});function Wl(e){const t={};e.color&&(t.color=ff(e.color)),e.size&&(t.size=e.size);let n=0;if(e.padRight)switch(e.size){case"sm":n=6;break;case"md":n=6;break;case"lg":n=8;break;case"xl":n=12;break}let r=0;if(e.padLeft)switch(e.size){case"sm":r=6;break;case"md":r=6;break;case"lg":r=8;break;case"xl":r=12;break}const i=x.Children.toArray(e.children).map(a=>x.isValidElement(a)?x.cloneElement(a,t):a);return m.jsx("div",{style:{paddingRight:n,paddingLeft:r},children:i})}function Tw(e){const t=bt.useNavigate();return m.jsxs(k.Flex,{spaceItems:{default:"spaceItemsNone"},flexWrap:{default:"nowrap"},alignItems:{default:"alignItemsBaseline"},children:[e.icon&&((e==null?void 0:e.iconAlign)===void 0||e.iconAlign&&e.iconAlign!=="right")&&m.jsx(k.FlexItem,{alignSelf:{default:"alignSelfCenter"},children:m.jsx(Wl,{size:e.iconSize??"sm",color:e.iconColor??e.color,padRight:!0,children:e.icon})}),e.text&&m.jsx(k.FlexItem,{style:{maxWidth:"100%"},children:m.jsx("div",{style:{maxWidth:e.maxWidth??"100%",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",color:e.color?ff(e.color):void 0},children:!e.disableLinks&&(e.to||e.onClick)?m.jsx("a",{style:{color:e.color?ff(e.color):void 0},href:e.to,onClick:n=>{if(n.preventDefault(),e.onClick)e.onClick();else{if(!e.to)return;t(e.to)}},children:e.text}):m.jsx(m.Fragment,{children:e.text})})}),e.icon&&e.iconAlign==="right"&&m.jsx(k.FlexItem,{alignSelf:{default:"alignSelfCenter"},children:m.jsx(Wl,{size:e.iconSize??"sm",padLeft:!0,color:e.iconColor??e.color,children:e.icon})})]})}var Ga=[],j4=function(){return Ga.some(function(e){return e.activeTargets.length>0})},$4=function(){return Ga.some(function(e){return e.skippedTargets.length>0})},Aw="ResizeObserver loop completed with undelivered notifications.",D4=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Aw}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Aw),window.dispatchEvent(e)},Bl;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Bl||(Bl={}));var qa=function(e){return Object.freeze(e)},M4=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,qa(this)}return e}(),Pw=function(){function e(t,n,r,i){return this.x=t,this.y=n,this.width=r,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,qa(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,i=t.top,a=t.right,o=t.bottom,s=t.left,l=t.width,c=t.height;return{x:n,y:r,top:i,right:a,bottom:o,left:s,width:l,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),xm=function(e){return e instanceof SVGElement&&"getBBox"in e},jw=function(e){if(xm(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,a=i.offsetWidth,o=i.offsetHeight;return!(a||o||e.getClientRects().length)},$w=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},I4=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},zl=typeof window<"u"?window:{},df=new WeakMap,Dw=/auto|scroll/,L4=/^tb|vertical/,N4=/msie|trident/i.test(zl.navigator&&zl.navigator.userAgent),Yr=function(e){return parseFloat(e||"0")},ts=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new M4((n?t:e)||0,(n?e:t)||0)},Mw=qa({devicePixelContentBoxSize:ts(),borderBoxSize:ts(),contentBoxSize:ts(),contentRect:new Pw(0,0,0,0)}),Iw=function(e,t){if(t===void 0&&(t=!1),df.has(e)&&!t)return df.get(e);if(jw(e))return df.set(e,Mw),Mw;var n=getComputedStyle(e),r=xm(e)&&e.ownerSVGElement&&e.getBBox(),i=!N4&&n.boxSizing==="border-box",a=L4.test(n.writingMode||""),o=!r&&Dw.test(n.overflowY||""),s=!r&&Dw.test(n.overflowX||""),l=r?0:Yr(n.paddingTop),c=r?0:Yr(n.paddingRight),u=r?0:Yr(n.paddingBottom),f=r?0:Yr(n.paddingLeft),d=r?0:Yr(n.borderTopWidth),h=r?0:Yr(n.borderRightWidth),p=r?0:Yr(n.borderBottomWidth),g=r?0:Yr(n.borderLeftWidth),v=f+c,y=l+u,b=g+h,_=d+p,S=s?e.offsetHeight-_-e.clientHeight:0,w=o?e.offsetWidth-b-e.clientWidth:0,O=i?v+b:0,E=i?y+_:0,T=r?r.width:Yr(n.width)-O-w,$=r?r.height:Yr(n.height)-E-S,M=T+v+w+b,A=$+y+S+_,j=qa({devicePixelContentBoxSize:ts(Math.round(T*devicePixelRatio),Math.round($*devicePixelRatio),a),borderBoxSize:ts(M,A,a),contentBoxSize:ts(T,$,a),contentRect:new Pw(f,l,T,$)});return df.set(e,j),j},Lw=function(e,t,n){var r=Iw(e,n),i=r.borderBoxSize,a=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case Bl.DEVICE_PIXEL_CONTENT_BOX:return o;case Bl.BORDER_BOX:return i;default:return a}},F4=function(){function e(t){var n=Iw(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=qa([n.borderBoxSize]),this.contentBoxSize=qa([n.contentBoxSize]),this.devicePixelContentBoxSize=qa([n.devicePixelContentBoxSize])}return e}(),Nw=function(e){if(jw(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},R4=function(){var e=1/0,t=[];Ga.forEach(function(o){if(o.activeTargets.length!==0){var s=[];o.activeTargets.forEach(function(c){var u=new F4(c.target),f=Nw(c.target);s.push(u),c.lastReportedSize=Lw(c.target,c.observedBox),f<e&&(e=f)}),t.push(function(){o.callback.call(o.observer,s,o.observer)}),o.activeTargets.splice(0,o.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var i=r[n];i()}return e},Fw=function(e){Ga.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(Nw(i.target)>e?n.activeTargets.push(i):n.skippedTargets.push(i))})})},W4=function(){var e=0;for(Fw(e);j4();)e=R4(),Fw(e);return $4()&&D4(),e>0},_m,Rw=[],B4=function(){return Rw.splice(0).forEach(function(e){return e()})},z4=function(e){if(!_m){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return B4()}).observe(n,r),_m=function(){n.textContent="".concat(t?t--:t++)}}Rw.push(e),_m()},V4=function(e){z4(function(){requestAnimationFrame(e)})},hf=0,U4=function(){return!!hf},H4=250,G4={attributes:!0,characterData:!0,childList:!0,subtree:!0},Ww=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Bw=function(e){return e===void 0&&(e=0),Date.now()+e},wm=!1,q4=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=H4),!wm){wm=!0;var r=Bw(t);V4(function(){var i=!1;try{i=W4()}finally{if(wm=!1,t=r-Bw(),!U4())return;i?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,G4)};document.body?n():zl.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Ww.forEach(function(n){return zl.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Ww.forEach(function(n){return zl.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Sm=new q4,zw=function(e){!hf&&e>0&&Sm.start(),hf+=e,!hf&&Sm.stop()},Y4=function(e){return!xm(e)&&!I4(e)&&getComputedStyle(e).display==="inline"},K4=function(){function e(t,n){this.target=t,this.observedBox=n||Bl.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Lw(this.target,this.observedBox,!0);return Y4(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),X4=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),pf=new WeakMap,Vw=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},gf=function(){function e(){}return e.connect=function(t,n){var r=new X4(t,n);pf.set(t,r)},e.observe=function(t,n,r){var i=pf.get(t),a=i.observationTargets.length===0;Vw(i.observationTargets,n)<0&&(a&&Ga.push(i),i.observationTargets.push(new K4(n,r&&r.box)),zw(1),Sm.schedule())},e.unobserve=function(t,n){var r=pf.get(t),i=Vw(r.observationTargets,n),a=r.observationTargets.length===1;i>=0&&(a&&Ga.splice(Ga.indexOf(r),1),r.observationTargets.splice(i,1),zw(-1))},e.disconnect=function(t){var n=this,r=pf.get(t);r.observationTargets.slice().forEach(function(i){return n.unobserve(t,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),Z4=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");gf.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!$w(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");gf.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!$w(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");gf.unobserve(this,t)},e.prototype.disconnect=function(){gf.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const J4=x[typeof document<"u"&&document.createElement!==void 0?"useLayoutEffect":"useEffect"],Q4=e=>{const t=C.useRef(e);return C.useEffect(()=>{t.current=e}),t},eN=typeof window<"u"&&"ResizeObserver"in window?window.ResizeObserver:Z4;function tN(){}function ns(e,t){const n=rN(),r=Q4(t);return J4(()=>{let i=!1;const a=e&&"current"in e?e.current:e;if(!a)return tN;function o(s,l){i||r.current(s,l)}return n.subscribe(a,o),()=>{i=!0,n.unsubscribe(a,o)}},[e,n,r]),n.observer}function nN(){let e=!1,t=[];const n=new Map,r=new eN((i,a)=>{t=t.concat(i);function o(){const s=new Set;for(let l=0;l<t.length;l++){if(s.has(t[l].target))continue;s.add(t[l].target);const c=n.get(t[l].target);c==null||c.forEach(u=>u(t[l],a))}t=[],e=!1}e||window.requestAnimationFrame(o),e=!0});return{observer:r,subscribe(i,a){var o;r.observe(i);const s=(o=n.get(i))!==null&&o!==void 0?o:[];s.push(a),n.set(i,s)},unsubscribe(i,a){var o;const s=(o=n.get(i))!==null&&o!==void 0?o:[];if(s.length===1){r.unobserve(i),n.delete(i);return}const l=s.indexOf(a);l!==-1&&s.splice(l,1),n.set(i,s)}}}let Om;const rN=()=>Om||(Om=nN());function mf(e){var a,o;const t=x.useRef(null),[n,r]=x.useState({width:((a=t.current)==null?void 0:a.clientWidth)??0,height:((o=t.current)==null?void 0:o.clientWidth)??0}),i=x.useCallback(()=>r(s=>{var c,u;const l={width:((c=t.current)==null?void 0:c.clientWidth)??0,height:((u=t.current)==null?void 0:u.clientHeight)??0};return l.width!==s.width||l.height!==s.height?l:s}),[]);return x.useEffect(()=>i(),[t,i]),ns(t,()=>i()),m.jsx(iN,{ref:t,className:e.className,style:{height:e.height},children:m.jsx(aN,{children:e.children(n)})})}const iN=Te.div`
112
+ `;function Sw(e){const{t}=Ge(),[n]=Pt(),{author:r,onClick:i}=e,[a,o]=x.useState(null),s=Ha(),l=s.dateFormat?s.dateFormat:"date-time",c=x.useCallback((u,f)=>{let d;switch(typeof u=="number"?d=Pe.fromMillis(u):d=Pe.fromISO(u),f){case"since":{Pe.now().toMillis()-d.toMillis()<60*1e3?o(t("Less than a minute ago")):o(d.toRelative());break}default:o(C4(d.toJSDate()));break}},[t]);return x.useEffect(()=>{if(c(e.value,l),l==="since"){const u=setInterval(()=>c(e.value,l),1e3);return()=>clearTimeout(u)}},[l,e.value,c]),e.value?m.jsxs(k4,{className:"date-time",children:[a,r&&m.jsxs("span",{children:[" ",n.by," "]}),i?m.jsx(k.Button,{variant:"link",isInline:!0,onClick:i,children:r}):m.jsx("span",{children:r})]}):m.jsx(m.Fragment,{})}function T4(e){const t=x.useMemo(()=>new Date(e.start??0).valueOf(),[e.start]),n=x.useMemo(()=>new Date(e.finish??0).valueOf(),[e.finish]),[r,i]=x.useState(Math.max(0,n-t.valueOf()));x.useEffect(()=>{const u=setInterval(()=>{t&&(e.finish?i(Math.max(0,n-t)):i(Math.max(0,Date.now()-t)))},1e3);return()=>clearTimeout(u)},[t,n,e.finish]);const a=Math.floor(r/1e3),o=Math.floor(a%60),s=Math.floor(a/60%60),l=Math.floor(a/60/60%24),c=Math.floor(a/60/60/24);return t?m.jsxs(k.Split,{children:[c!==0&&m.jsxs(k.SplitItem,{children:[c,"d"," "]}),l!==0&&m.jsxs(k.SplitItem,{children:[l,"h"," "]}),s!==0&&m.jsxs(k.SplitItem,{children:[s,"m"," "]}),m.jsxs(k.SplitItem,{children:[o,"s"]})]}):m.jsx(m.Fragment,{})}function Ow(e){return m.jsx(k.LabelGroup,{numLabels:e.numLabels??999,style:e.wrapLabels?void 0:{flexWrap:"nowrap"},children:e.labels?e.labels.map(t=>m.jsx(k.Label,{children:t},t)):e.labelsWithLinks.map(t=>m.jsx(k.Label,{color:"blue",children:m.jsx(bt.Link,{to:t.link,children:t.name})},t.name))})}var Cw=(e=>(e.Default="default",e.Green="green",e.Success="success",e.Blue="blue",e.Info="info",e.Red="red",e.Danger="danger",e.Yellow="yellow",e.Orange="orange",e.Warning="warning",e.Grey="grey",e.Disabled="disabled",e))(Cw||{});function ff(e){switch(e){case"default":return;case"green":case"success":return mm;case"red":case"danger":return vm;case"yellow":case"orange":case"warning":return Ew;case"blue":case"info":return ym;case"grey":case"disabled":return bm}}const mm="var(--pf-v5-global--success-color--100)",vm="var(--pf-v5-global--danger-color--100)",Ew="var(--pf-v5-global--warning-color--100)",ym="var(--pf-v5-global--info-color--100)",bm="var(--pf-v5-global--disabled-color--100)",A4="var(--pf-v5-global--link--Color)",P4="var(--pf-v5-global--danger-color--100)";var kw=(e=>(e.blue="blue",e.cyan="cyan",e.green="green",e.orange="orange",e.purple="purple",e.red="red",e.grey="grey",e))(kw||{});function Wl(e){const t={};e.color&&(t.color=ff(e.color)),e.size&&(t.size=e.size);let n=0;if(e.padRight)switch(e.size){case"sm":n=6;break;case"md":n=6;break;case"lg":n=8;break;case"xl":n=12;break}let r=0;if(e.padLeft)switch(e.size){case"sm":r=6;break;case"md":r=6;break;case"lg":r=8;break;case"xl":r=12;break}const i=x.Children.toArray(e.children).map(a=>x.isValidElement(a)?x.cloneElement(a,t):a);return m.jsx("div",{style:{paddingRight:n,paddingLeft:r},children:i})}function Tw(e){const t=bt.useNavigate();return m.jsxs(k.Flex,{spaceItems:{default:"spaceItemsNone"},flexWrap:{default:"nowrap"},alignItems:{default:"alignItemsBaseline"},children:[e.icon&&((e==null?void 0:e.iconAlign)===void 0||e.iconAlign&&e.iconAlign!=="right")&&m.jsx(k.FlexItem,{alignSelf:{default:"alignSelfCenter"},children:m.jsx(Wl,{size:e.iconSize??"sm",color:e.iconColor??e.color,padRight:!0,children:e.icon})}),e.text&&m.jsx(k.FlexItem,{style:{maxWidth:"100%"},children:m.jsx("div",{style:{maxWidth:e.maxWidth??"100%",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",color:e.color?ff(e.color):void 0},children:!e.disableLinks&&(e.to||e.onClick)?m.jsx("a",{style:{color:e.color?ff(e.color):void 0},href:e.to,onClick:n=>{if(n.preventDefault(),e.onClick)e.onClick();else{if(!e.to)return;t(e.to)}},children:e.text}):m.jsx(m.Fragment,{children:e.text})})}),e.icon&&e.iconAlign==="right"&&m.jsx(k.FlexItem,{alignSelf:{default:"alignSelfCenter"},children:m.jsx(Wl,{size:e.iconSize??"sm",padLeft:!0,color:e.iconColor??e.color,children:e.icon})})]})}var Ga=[],j4=function(){return Ga.some(function(e){return e.activeTargets.length>0})},$4=function(){return Ga.some(function(e){return e.skippedTargets.length>0})},Aw="ResizeObserver loop completed with undelivered notifications.",D4=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Aw}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Aw),window.dispatchEvent(e)},Bl;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Bl||(Bl={}));var qa=function(e){return Object.freeze(e)},M4=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,qa(this)}return e}(),Pw=function(){function e(t,n,r,i){return this.x=t,this.y=n,this.width=r,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,qa(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,i=t.top,a=t.right,o=t.bottom,s=t.left,l=t.width,c=t.height;return{x:n,y:r,top:i,right:a,bottom:o,left:s,width:l,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),xm=function(e){return e instanceof SVGElement&&"getBBox"in e},jw=function(e){if(xm(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,a=i.offsetWidth,o=i.offsetHeight;return!(a||o||e.getClientRects().length)},$w=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},I4=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},zl=typeof window<"u"?window:{},df=new WeakMap,Dw=/auto|scroll/,L4=/^tb|vertical/,N4=/msie|trident/i.test(zl.navigator&&zl.navigator.userAgent),Yr=function(e){return parseFloat(e||"0")},ts=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new M4((n?t:e)||0,(n?e:t)||0)},Mw=qa({devicePixelContentBoxSize:ts(),borderBoxSize:ts(),contentBoxSize:ts(),contentRect:new Pw(0,0,0,0)}),Iw=function(e,t){if(t===void 0&&(t=!1),df.has(e)&&!t)return df.get(e);if(jw(e))return df.set(e,Mw),Mw;var n=getComputedStyle(e),r=xm(e)&&e.ownerSVGElement&&e.getBBox(),i=!N4&&n.boxSizing==="border-box",a=L4.test(n.writingMode||""),o=!r&&Dw.test(n.overflowY||""),s=!r&&Dw.test(n.overflowX||""),l=r?0:Yr(n.paddingTop),c=r?0:Yr(n.paddingRight),u=r?0:Yr(n.paddingBottom),f=r?0:Yr(n.paddingLeft),d=r?0:Yr(n.borderTopWidth),h=r?0:Yr(n.borderRightWidth),p=r?0:Yr(n.borderBottomWidth),g=r?0:Yr(n.borderLeftWidth),v=f+c,y=l+u,b=g+h,_=d+p,S=s?e.offsetHeight-_-e.clientHeight:0,w=o?e.offsetWidth-b-e.clientWidth:0,O=i?v+b:0,E=i?y+_:0,T=r?r.width:Yr(n.width)-O-w,$=r?r.height:Yr(n.height)-E-S,M=T+v+w+b,A=$+y+S+_,j=qa({devicePixelContentBoxSize:ts(Math.round(T*devicePixelRatio),Math.round($*devicePixelRatio),a),borderBoxSize:ts(M,A,a),contentBoxSize:ts(T,$,a),contentRect:new Pw(f,l,T,$)});return df.set(e,j),j},Lw=function(e,t,n){var r=Iw(e,n),i=r.borderBoxSize,a=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case Bl.DEVICE_PIXEL_CONTENT_BOX:return o;case Bl.BORDER_BOX:return i;default:return a}},F4=function(){function e(t){var n=Iw(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=qa([n.borderBoxSize]),this.contentBoxSize=qa([n.contentBoxSize]),this.devicePixelContentBoxSize=qa([n.devicePixelContentBoxSize])}return e}(),Nw=function(e){if(jw(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},R4=function(){var e=1/0,t=[];Ga.forEach(function(o){if(o.activeTargets.length!==0){var s=[];o.activeTargets.forEach(function(c){var u=new F4(c.target),f=Nw(c.target);s.push(u),c.lastReportedSize=Lw(c.target,c.observedBox),f<e&&(e=f)}),t.push(function(){o.callback.call(o.observer,s,o.observer)}),o.activeTargets.splice(0,o.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var i=r[n];i()}return e},Fw=function(e){Ga.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(Nw(i.target)>e?n.activeTargets.push(i):n.skippedTargets.push(i))})})},W4=function(){var e=0;for(Fw(e);j4();)e=R4(),Fw(e);return $4()&&D4(),e>0},_m,Rw=[],B4=function(){return Rw.splice(0).forEach(function(e){return e()})},z4=function(e){if(!_m){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return B4()}).observe(n,r),_m=function(){n.textContent="".concat(t?t--:t++)}}Rw.push(e),_m()},V4=function(e){z4(function(){requestAnimationFrame(e)})},hf=0,U4=function(){return!!hf},H4=250,G4={attributes:!0,characterData:!0,childList:!0,subtree:!0},Ww=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Bw=function(e){return e===void 0&&(e=0),Date.now()+e},wm=!1,q4=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=H4),!wm){wm=!0;var r=Bw(t);V4(function(){var i=!1;try{i=W4()}finally{if(wm=!1,t=r-Bw(),!U4())return;i?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,G4)};document.body?n():zl.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Ww.forEach(function(n){return zl.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Ww.forEach(function(n){return zl.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Sm=new q4,zw=function(e){!hf&&e>0&&Sm.start(),hf+=e,!hf&&Sm.stop()},Y4=function(e){return!xm(e)&&!I4(e)&&getComputedStyle(e).display==="inline"},K4=function(){function e(t,n){this.target=t,this.observedBox=n||Bl.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Lw(this.target,this.observedBox,!0);return Y4(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),X4=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),pf=new WeakMap,Vw=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},gf=function(){function e(){}return e.connect=function(t,n){var r=new X4(t,n);pf.set(t,r)},e.observe=function(t,n,r){var i=pf.get(t),a=i.observationTargets.length===0;Vw(i.observationTargets,n)<0&&(a&&Ga.push(i),i.observationTargets.push(new K4(n,r&&r.box)),zw(1),Sm.schedule())},e.unobserve=function(t,n){var r=pf.get(t),i=Vw(r.observationTargets,n),a=r.observationTargets.length===1;i>=0&&(a&&Ga.splice(Ga.indexOf(r),1),r.observationTargets.splice(i,1),zw(-1))},e.disconnect=function(t){var n=this,r=pf.get(t);r.observationTargets.slice().forEach(function(i){return n.unobserve(t,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),Z4=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");gf.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!$w(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");gf.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!$w(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");gf.unobserve(this,t)},e.prototype.disconnect=function(){gf.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const J4=x[typeof document<"u"&&document.createElement!==void 0?"useLayoutEffect":"useEffect"],Q4=e=>{const t=C.useRef(e);return C.useEffect(()=>{t.current=e}),t},eN=typeof window<"u"&&"ResizeObserver"in window?window.ResizeObserver:Z4;function tN(){}function ns(e,t){const n=rN(),r=Q4(t);return J4(()=>{let i=!1;const a=e&&"current"in e?e.current:e;if(!a)return tN;function o(s,l){i||r.current(s,l)}return n.subscribe(a,o),()=>{i=!0,n.unsubscribe(a,o)}},[e,n,r]),n.observer}function nN(){let e=!1,t=[];const n=new Map,r=new eN((i,a)=>{t=t.concat(i);function o(){const s=new Set;for(let l=0;l<t.length;l++){if(s.has(t[l].target))continue;s.add(t[l].target);const c=n.get(t[l].target);c==null||c.forEach(u=>u(t[l],a))}t=[],e=!1}e||window.requestAnimationFrame(o),e=!0});return{observer:r,subscribe(i,a){var o;r.observe(i);const s=(o=n.get(i))!==null&&o!==void 0?o:[];s.push(a),n.set(i,s)},unsubscribe(i,a){var o;const s=(o=n.get(i))!==null&&o!==void 0?o:[];if(s.length===1){r.unobserve(i),n.delete(i);return}const l=s.indexOf(a);l!==-1&&s.splice(l,1),n.set(i,s)}}}let Om;const rN=()=>Om||(Om=nN());function mf(e){var a,o;const t=x.useRef(null),[n,r]=x.useState({width:((a=t.current)==null?void 0:a.clientWidth)??0,height:((o=t.current)==null?void 0:o.clientWidth)??0}),i=x.useCallback(()=>r(s=>{var c,u;const l={width:((c=t.current)==null?void 0:c.clientWidth)??0,height:((u=t.current)==null?void 0:u.clientHeight)??0};return l.width!==s.width||l.height!==s.height?l:s}),[]);return x.useEffect(()=>i(),[t,i]),ns(t,()=>i()),m.jsx(iN,{ref:t,className:e.className,style:{height:e.height},children:m.jsx(aN,{children:e.children(n)})})}const iN=Te.div`
113
113
  width: 100%;
114
114
  height: 100%;
115
115
  flex-grow: 1;
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.1388",
4
+ "version": "2.4.1389",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",