@ansible/ansible-ui-framework 2.4.2619 → 2.4.2621

Sign up to get free protection for your applications and to get access to all the features.
package/index.js CHANGED
@@ -25171,9 +25171,10 @@ const xd = new Ece(), QT = {
25171
25171
  y: s
25172
25172
  } : s;
25173
25173
  }, a = () => {
25174
+ var s;
25174
25175
  if (t.padding === void 0) {
25175
- const s = Array.isArray(t.children) ? t.children.find((l) => Fd(l.props) && l.props.padding !== void 0) : t.children;
25176
- return St(s == null ? void 0 : s.props);
25176
+ const l = Array.isArray(t.children) ? t.children.find((c) => Fd(c.props) && c.props.padding !== void 0) : t.children;
25177
+ return St((s = l == null ? void 0 : l.props) == null ? void 0 : s.padding);
25177
25178
  }
25178
25179
  return St(t.padding);
25179
25180
  }, o = () => {
package/index.umd.cjs CHANGED
@@ -292,7 +292,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[nu]+=1);const ru=De.button`
292
292
  A ${x} ${h-s*n}, ${p}
293
293
  L ${f+s*n}, ${p}
294
294
  A ${x} ${f}, ${p+n}
295
- z`},gae=e=>{const t=e.orientation||"top";return t==="left"||t==="right"?mae(e):hae(e)},pae=e=>{const t=te(e.id,e),n=st(e.style,e);return{...e,id:t,style:n}},yae={pathComponent:v.createElement(fo,null),role:"presentation",shapeRendering:"auto"},vae=e=>{const t=pae(Z({},e,yae)),n=Tr(t);cd(t.height,"Flyout props[height] is undefined"),cd(t.width,"Flyout props[width] is undefined"),cd(t.x,"Flyout props[x] is undefined"),cd(t.y,"Flyout props[y] is undefined");const r={center:t.center||{x:0,y:0},cornerRadius:t.cornerRadius||0,dx:t.dx,dy:t.dy,height:t.height,orientation:t.orientation||"top",pointerLength:t.pointerLength||0,pointerWidth:t.pointerWidth||0,width:t.width,x:t.x,y:t.y};return v.cloneElement(t.pathComponent,{...t.events,...n,style:t.style,d:gae(r),className:t.className,shapeRendering:t.shapeRendering,role:t.role,transform:t.transform,clipPath:t.clipPath})},bae={cornerRadius:5,pointerLength:10,pointerWidth:10};class go extends v.Component{static defaultEvents(t){const n=t.activateData?[{target:"labels",mutation:()=>({active:!0})},{target:"data",mutation:()=>({active:!0})}]:[{target:"labels",mutation:()=>({active:!0})}],r=t.activateData?[{target:"labels",mutation:()=>({active:void 0})},{target:"data",mutation:()=>({active:void 0})}]:[{target:"labels",mutation:()=>({active:void 0})}];return[{target:"data",eventHandlers:{onMouseOver:()=>n,onFocus:()=>n,onTouchStart:()=>n,onMouseOut:()=>r,onBlur:()=>r,onTouchEnd:()=>r}}]}constructor(t){super(t),this.id=t.id===void 0?xl("tooltip-"):t.id}getDefaultOrientation(t){const{datum:n,horizontal:r,polar:i}=t;if(!i){const o=r?"right":"top",a=r?"left":"bottom";return n&&n.y<0?a:o}return this.getPolarOrientation(t)}getPolarOrientation(t){const n=Ll(t,t.datum),r=t.labelPlacement||"vertical";return r==="vertical"?this.getVerticalOrientations(n):r==="parallel"?n<90||n>270?"right":"left":n>180?"bottom":"top"}getVerticalOrientations(t){return t<45||t>315?"right":t>=45&&t<=135?"top":t>135&&t<225?"left":"bottom"}getStyles(t){const n=t.theme||Ar.grayscale,r=n&&n.tooltip&&n.tooltip.style?n.tooltip.style:{},i=Array.isArray(t.style)?t.style.map(c=>Z({},c,r)):Z({},t.style,r),o=n&&n.tooltip&&n.tooltip.flyoutStyle?n.tooltip.flyoutStyle:{},a=t.flyoutStyle?Z({},t.flyoutStyle,o):o,s=Array.isArray(i)?i.map(c=>st(c,t)):st(i,t),l=st(a,Object.assign({},t,{style:s}));return{style:s,flyoutStyle:l}}getEvaluatedProps(t){const{cornerRadius:n,centerOffset:r,dx:i,dy:o}=t,a=te(t.active,t);let s=te(t.text,Object.assign({},t,{active:a}));s==null&&(s=""),typeof s=="number"&&(s=s.toString());const{style:l,flyoutStyle:c}=this.getStyles(Object.assign({},t,{active:a,text:s})),u=te(t.orientation,Object.assign({},t,{active:a,text:s,style:l,flyoutStyle:c}))||this.getDefaultOrientation(t),d=te(t.flyoutPadding,Object.assign({},t,{active:a,text:s,style:l,flyoutStyle:c,orientation:u}))||this.getLabelPadding(l),f=xt(d),h=te(t.pointerWidth,Object.assign({},t,{active:a,text:s,style:l,flyoutStyle:c,orientation:u})),g=te(t.pointerLength,Object.assign({},t,{active:a,text:s,style:l,flyoutStyle:c,orientation:u})),p=ia(s,l),{flyoutHeight:y,flyoutWidth:b}=this.getDimensions(Object.assign({},t,{style:l,flyoutStyle:c,active:a,text:s,orientation:u,flyoutPadding:f,pointerWidth:h,pointerLength:g}),p),x=Object.assign({},t,{active:a,text:s,style:l,flyoutStyle:c,orientation:u,flyoutHeight:y,flyoutWidth:b,flyoutPadding:f,pointerWidth:h,pointerLength:g}),S=Mt(r)&&(r==null?void 0:r.x)!==void 0?te(r.x,x):0,w=Mt(r)&&(r==null?void 0:r.y)!==void 0?te(r.y,x):0;return{...x,centerOffset:{x:S,y:w},dx:i!==void 0?te(i,x):0,dy:o!==void 0?te(o,x):0,cornerRadius:te(n,x)}}getCalculatedValues(t){const{style:n,text:r,flyoutStyle:i,flyoutHeight:o,flyoutWidth:a}=t,s=ia(r,n),l={height:o,width:a},c=this.getFlyoutCenter(t,l),u=this.getTransform(t);return{style:n,flyoutStyle:i,labelSize:s,flyoutDimensions:l,flyoutCenter:c,transform:u}}getTransform(t){const{x:n,y:r,style:i}=t,a=(i||{}).angle||t.angle||this.getDefaultAngle(t);return a?`rotate(${a} ${n} ${r})`:void 0}getDefaultAngle(t){const{polar:n,labelPlacement:r,orientation:i,datum:o}=t;if(!n||!r||r==="vertical")return 0;const a=Ll(t,o),s=a>90&&a<180||a>270?1:-1,l=r==="perpendicular"?0:90;let c=0;return a===0||a===180?c=i==="top"&&a===180?270:90:a>0&&a<180?c=90-a:a>180&&a<360&&(c=270-a),c+s*l}constrainTooltip(t,n,r){const{x:i,y:o}=t,{width:a,height:s}=r,l={x:[0,n.width],y:[0,n.height]},c={x:[i-a/2,i+a/2],y:[o-s/2,o+s/2]},u={x:[c.x[0]<l.x[0]?l.x[0]-c.x[0]:0,c.x[1]>l.x[1]?c.x[1]-l.x[1]:0],y:[c.y[0]<l.y[0]?l.y[0]-c.y[0]:0,c.y[1]>l.y[1]?c.y[1]-l.y[1]:0]};return{x:Math.round(i+u.x[0]-u.x[1]),y:Math.round(o+u.y[0]-u.y[1])}}getFlyoutCenter(t,n){const{x:r,y:i,dx:o,dy:a,pointerLength:s,orientation:l,constrainToVisibleArea:c,centerOffset:u}=t,{height:d,width:f}=n,h=l==="left"?-1:1,g=l==="bottom"?-1:1,p={x:l==="left"||l==="right"?r+h*(s+f/2+h*o):r+o,y:l==="top"||l==="bottom"?i-g*(s+d/2-g*a):i+a},y={x:Mt(t.center)&&t.center.x!==void 0?t.center.x:p.x,y:Mt(t.center)&&t.center.y!==void 0?t.center.y:p.y},b={x:y.x+u.x,y:y.y+u.y};return c?this.constrainTooltip(b,t,n):b}getLabelPadding(t){if(!t)return 0;const n=Array.isArray(t)?t.map(r=>r.padding):[t.padding];return Math.max(...n,0)}getDimensions(t,n){const{orientation:r,pointerLength:i,pointerWidth:o,flyoutHeight:a,flyoutWidth:s,flyoutPadding:l}=t,c=te(t.cornerRadius,t),u=()=>{const f=n.height+l.top+l.bottom,h=r==="top"||r==="bottom"?2*c:2*c+o;return Math.max(h,f)},d=()=>{const f=n.width+l.left+l.right,h=r==="left"||r==="right"?2*c+i:2*c;return Math.max(h,f)};return{flyoutHeight:a?te(a,t):u(),flyoutWidth:s?te(s,t):d()}}getLabelProps(t,n){const{flyoutCenter:r,style:i,labelSize:o,dy:a=0,dx:s=0}=n,{text:l,datum:c,activePoints:u,labelComponent:d,index:f,flyoutPadding:h}=t,g=(Array.isArray(i)&&i.length?i[0].textAnchor:i.textAnchor)||"middle",p=()=>{if(!g||g==="middle")return r.x;const y=g==="end"?-1:1;return r.x-y*(o.width/2)};return Z({},d.props,{key:`${this.id}-label-${f}`,text:l,datum:c,activePoints:u,textAnchor:g,dy:a,dx:s,style:i,x:p()+(h.left-h.right)/2,y:r.y+(h.top-h.bottom)/2,verticalAnchor:"middle",angle:i.angle})}getPointerOrientation(t,n,r){const i={bottom:n.y+r.height/2,top:n.y-r.height/2,left:n.x-r.width/2,right:n.x+r.width/2},o=[{side:"top",val:i.top>t.y?i.top-t.y:-1},{side:"bottom",val:i.bottom<t.y?t.y-i.bottom:-1},{side:"right",val:i.right<t.x?t.x-i.right:-1},{side:"left",val:i.left>t.x?i.left-t.x:-1}];return ts(o,"val","desc")[0].side}getFlyoutProps(t,n){const{flyoutDimensions:r,flyoutStyle:i,flyoutCenter:o}=n,{x:a,y:s,dx:l,dy:c,datum:u,activePoints:d,index:f,pointerLength:h,pointerWidth:g,cornerRadius:p,events:y,flyoutComponent:b}=t,x=te(t.pointerOrientation,t);return Z({},b.props,{x:a,y:s,dx:l,dy:c,datum:u,activePoints:d,index:f,pointerLength:h,pointerWidth:g,cornerRadius:p,events:y,orientation:x||this.getPointerOrientation({x:a,y:s},o,r),key:`${this.id}-tooltip-${f}`,width:r.width,height:r.height,style:i,center:o})}renderTooltip(t){const n=te(t.active,t),{renderInPortal:r}=t;if(!n)return null;const i=this.getEvaluatedProps(t),{flyoutComponent:o,labelComponent:a,groupComponent:s}=i,l=this.getCalculatedValues(i),c=[v.cloneElement(o,this.getFlyoutProps(i,l)),v.cloneElement(a,this.getLabelProps(i,l))],u=v.cloneElement(s,{role:"presentation",transform:l.transform},c);return r?v.createElement(nf,null,u):u}render(){const t=Bt(this.props,bae,"tooltip");return this.renderTooltip(t)}}ce(go,"displayName","VictoryTooltip"),ce(go,"role","tooltip"),ce(go,"defaultProps",{active:!1,renderInPortal:!0,labelComponent:v.createElement(en,null),flyoutComponent:v.createElement(vae,null),groupComponent:v.createElement("g",null)});const Zl=e=>{var{constrainToVisibleArea:t=!1,labelComponent:n=k.createElement(on,null),labelTextAnchor:r,themeColor:i,theme:o=rn(i)}=e,a=Ae(e,["constrainToVisibleArea","labelComponent","labelTextAnchor","themeColor","theme"]);const s=k.cloneElement(n,Object.assign({textAnchor:r,theme:o},n.props));return k.createElement(go,Object.assign({constrainToVisibleArea:t,labelComponent:s,theme:o},a))};Zl.displayName="ChartTooltip",nn(Zl,go);const xae=(e,t)=>t.bubbleProperty?"circle":e.symbol||t.symbol,_ae=(e,t)=>{const{data:n,z:r,maxBubbleSize:i,minBubbleSize:o}=t,a=n.map(b=>b[r]),s=Math.min(...a),l=Math.max(...a),u=i||(()=>{const b=Math.min(...Object.values(xt(t.padding)));return Math.max(b,5)})(),d=o||u*.1;if(l===s)return Math.max(d,1);const f=Math.PI*Math.pow(u,2),h=Math.PI*Math.pow(d,2),g=(e[r]-s)/(l-s)*f,p=Math.max(g,h),y=Math.sqrt(p/Math.PI);return Math.max(y,1)},Sae=(e,t)=>{const{size:n,z:r}=t;return e.size?typeof e.size=="function"?e.size:Math.max(e.size,1):typeof t.size=="function"?n:e[r]?_ae(e,t):Math.max(n||0,1)},wae=e=>{const t=sd(e,"scatter"),n=wl(e.style,t),r={x:Nt(e,"x"),y:Nt(e,"y")},i={x:Jo(e,"x"),y:Jo(e,"y")},o={x:ir(e,"x").domain(i.x).range(e.horizontal?r.y:r.x),y:ir(e,"y").domain(i.y).range(e.horizontal?r.x:r.y)},a=e.polar?e.origin||Cl(e):void 0,s=e.bubbleProperty||"z";let l=dn(e);return l=zH(l,i),{domain:i,data:l,scale:o,style:n,origin:a,z:s}},Cae=(e,t)=>{const n=Bt(e,t,"scatter"),r=Object.assign({},n,wae(n)),{data:i,domain:o,events:a,height:s,origin:l,padding:c,polar:u,scale:d,name:f,sharedEvents:h,standalone:g,style:p,theme:y,width:b,labels:x,horizontal:S,disableInlineStyles:w}=r,_={parent:{style:p.parent,scale:d,domain:o,data:i,height:s,width:b,standalone:g,theme:y,origin:l,polar:u,padding:c,name:f,horizontal:S}};return i.reduce((E,O,T)=>{const D=di(O.eventKey)?T:O.eventKey,{x:j,y:A}=is(r,O),M={x:j,y:A,datum:O,data:i,index:T,scale:d,polar:u,origin:l,horizontal:S,size:Sae(O,r),symbol:xae(O,r),style:w?{}:p.data,disableInlineStyles:w};E[D]={data:M};const P=Md(r,O,T);return(P!=null||x&&(a||h))&&(E[D].labels=pg(r,T)),E},_)},x6={width:450,height:300,padding:50,size:3,symbol:"circle"};class Ai extends v.Component{static getBaseProps(t){return Cae(t,x6)}shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t,role:n}=yp,r=Bt(this.props,x6,n);if(this.shouldAnimate())return this.animateComponent(r,t);const i=this.renderData(r),o=r.standalone?this.renderContainer(r.containerComponent,i):i;return ud(o,r)}}ce(Ai,"animationWhitelist",["data","domain","height","maxBubbleSize","padding","samples","size","style","width"]),ce(Ai,"displayName","VictoryScatter"),ce(Ai,"role","scatter"),ce(Ai,"defaultTransitions",eG()),ce(Ai,"defaultProps",{containerComponent:v.createElement(Qt,null),dataComponent:v.createElement(Hw,null),labelComponent:v.createElement(en,null),groupComponent:v.createElement("g",null),samples:50,sortOrder:"ascending",standalone:!0,theme:Ar.grayscale}),ce(Ai,"getDomain",Jo),ce(Ai,"getData",dn),ce(Ai,"expectedComponents",["dataComponent","labelComponent","groupComponent","containerComponent"]);const yp=Yo(Ai),xf=e=>{var{containerComponent:t=k.createElement(cr,null),themeColor:n,theme:r=rn(n)}=e,i=Ae(e,["containerComponent","themeColor","theme"]);const o=k.cloneElement(t,Object.assign({theme:r},t.props));return typeof i.size>"u"&&typeof i.bubbleProperty>"u"&&(i.size=({active:a})=>a?c6.activeSize:c6.size),k.createElement(yp,Object.assign({containerComponent:o,theme:r},i))};xf.displayName="ChartScatter",nn(xf,yp);var Eae=Er,Oae=function(){return Eae.Date.now()},kae=Oae,Tae=Tn,vp=kae,_6=ap,Aae="Expected a function",Dae=Math.max,jae=Math.min;function Pae(e,t,n){var r,i,o,a,s,l,c=0,u=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(Aae);t=_6(t)||0,Tae(n)&&(u=!!n.leading,d="maxWait"in n,o=d?Dae(_6(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f);function h(E){var O=r,T=i;return r=i=void 0,c=E,a=e.apply(T,O),a}function g(E){return c=E,s=setTimeout(b,t),u?h(E):a}function p(E){var O=E-l,T=E-c,D=t-O;return d?jae(D,o-T):D}function y(E){var O=E-l,T=E-c;return l===void 0||O>=t||O<0||d&&T>=o}function b(){var E=vp();if(y(E))return x(E);s=setTimeout(b,p(E))}function x(E){return s=void 0,f&&r?h(E):(r=i=void 0,a)}function S(){s!==void 0&&clearTimeout(s),c=0,r=l=i=s=void 0}function w(){return s===void 0?a:x(vp())}function _(){var E=vp(),O=y(E);if(r=arguments,i=this,l=E,O){if(s===void 0)return g(l);if(d)return clearTimeout(s),s=setTimeout(b,t),h(l)}return s===void 0&&(s=setTimeout(b,t)),a}return _.cancel=S,_.flush=w,_}var Mae=Pae,$ae=Mae,Iae=Tn,Lae="Expected a function";function Fae(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(Lae);return Iae(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),$ae(e,t,{leading:r,maxWait:t,trailing:i})}var Nae=Fae;const Cs=Fe(Nae),Bae=16;class Wae{constructor(){ce(this,"handleMouseMove",(t,n)=>{const{onCursorChange:r,domain:i}=n,o=this.getDimension(n),a=n.parentSVG||xi(t),s=Ur(t,a);let l=qd(n,n.scale,s.x,s.y);if(this.withinBounds(l,{x1:i.x[0],x2:i.x[1],y1:i.y[0],y2:i.y[1]})||(l=null),Se(r))if(l){const u=o?l[o]:l;r(u,n)}else l!==n.cursorValue&&r(n.defaultCursorValue||null,n);return[{target:"parent",eventKey:"parent",mutation:()=>({cursorValue:l,parentSVG:a})}]});ce(this,"onMouseMove",Cs(this.handleMouseMove,Bae,{leading:!0,trailing:!1}));ce(this,"onMouseLeave",this.handleMouseMove);ce(this,"onTouchEnd",(t,n)=>{const{onCursorChange:r}=n;return Se(n.onCursorChange)&&r(null,n),[{target:"parent",eventKey:"parent",mutation:()=>({cursorValue:null})}]})}getDimension(t){const{horizontal:n,cursorDimension:r}=t;return!n||!r?r:r==="x"?"y":"x"}withinBounds(t,n){const{x1:r,x2:i,y1:o,y2:a}=os(n,Number),{x:s,y:l}=os(t,Number);return s>=Math.min(r,i)&&s<=Math.max(r,i)&&l>=Math.min(o,a)&&l<=Math.max(o,a)}}const _f=new Wae,S6={cursorLabelComponent:v.createElement(en,null),cursorLabelOffset:{x:5,y:-10},cursorComponent:v.createElement(Ci,null)},w6=e=>{const t={...S6,...e},{children:n}=t,r=()=>{const{cursorValue:s,defaultCursorValue:l,domain:c,cursorDimension:u}=t;return s||(typeof l=="number"?{x:(c.x[0]+c.x[1])/2,y:(c.y[0]+c.y[1])/2,...u?{[u]:l}:{}}:l)},i=()=>{const{cursorLabelOffset:s}=t;return typeof s=="number"?{x:s,y:s}:s},o=()=>{if(t.padding===void 0){const s=Array.isArray(t.children)?t.children.find(l=>ju(l.props)&&l.props.padding!==void 0):t.children;return xt(s==null?void 0:s.props)}return xt(t.padding)},a=()=>{const{scale:s,cursorLabelComponent:l,cursorLabel:c,cursorComponent:u,width:d,height:f,name:h,horizontal:g,theme:p}=t,y=_f.getDimension(t),b=r(),x=i();if(!b)return[];const S=[],w=o(),_=s&&"x"in s&&"y"in s&&typeof s.y=="function"&&typeof s.x=="function"?{x:g?s.y(b.y):s.x(b.x),y:g?s.x(b.x):s.y(b.y)}:{x:b.x,y:b.y};if(c){let O=Z({active:!0},l.props,{x:_.x+x.x,y:_.y+x.y,datum:b,active:!0,key:`${h}-cursor-label`});if(ad(l)){const T=p&&p.tooltip||{};O=Z({},O,T)}S.push(v.cloneElement(l,Z({},O,{text:te(c,O)})))}const E=Object.assign({stroke:"black"},u.props.style);return(y==="x"||y===void 0)&&S.push(v.cloneElement(u,{key:`${h}-x-cursor`,x1:_.x,x2:_.x,y1:w.top,y2:(typeof f=="number"?f:0)-w.bottom,style:E})),(y==="y"||y===void 0)&&S.push(v.cloneElement(u,{key:`${h}-y-cursor`,x1:w.left,x2:(typeof d=="number"?d:0)-w.right,y1:_.y,y2:_.y,style:E})),S};return{props:t,children:[...v.Children.toArray(n),...a()]}},bp=e=>{const{props:t,children:n}=w6(e);return v.createElement(Qt,t,n)};bp.role="container",bp.defaultEvents=e=>{const t={...S6,...e},n=(r,i)=>(o,a,s,l)=>t.disable?{}:r(o,{...t,...a},s,l);return[{target:"parent",eventHandlers:{onMouseLeave:n(_f.onMouseLeave),onMouseMove:n(_f.onMouseMove),onTouchMove:n(_f.onMouseMove)}}]};const C6={name:"--pf-v5-chart-color-black-500",value:"#6a6e73",var:"var(--pf-v5-chart-color-black-500, #6a6e73)"},zae=({offsetCursorDimensionX:e=!1,offsetCursorDimensionY:t=!1,theme:n})=>{const r=n&&n.tooltip?te(n.tooltip.pointerLength,void 0):10;return{x:e?({center:a,flyoutWidth:s,width:l})=>{const c=s/2+r;return l>a.x+s+r?c:-c}:0,y:t?({center:a,flyoutHeight:s,width:l})=>{const c=s/2+r;return l>a.y+s+r?-c:c}:0}},Rae=({horizontal:e=!0,theme:t})=>{const n=t&&t.tooltip?te(t.tooltip.pointerLength,void 0):10;return e?({center:o,flyoutWidth:a,width:s})=>s>o.x+a+n?"left":"right":({center:o,flyoutHeight:a,height:s})=>s>o.y+a+n?"top":"bottom"},E6=e=>_s({borderPadding:0,gutter:0,orientation:"vertical",padding:0,rowGutter:0,style:{labels:{fill:ur.label.fill,lineHeight:.275,padding:0},title:{fill:ur.label.fill,padding:0}}},Object.assign({},e)),xp=({legendData:e,legendOrientation:t="vertical",legendProps:n,minSpacing:r=1,text:i="",theme:o})=>{const a=te(i,void 0),s=Array.isArray(a)?a:[a];let l=0,c=0;s.map((b,x)=>{typeof b!="number"&&b&&(b.length>c&&(c=b.length),e&&e[x]&&e[x].name!==void 0&&e[x].name.length>l&&(l=e[x].name.length))});const u=l+c+r,d="x",f=(b,x)=>{let S=" ";if(u===0)return S;const w=b?b.length:0,_=x?x.length:0,E=w+_;for(;S.length<u-E;)S+=d;return S},g=s.map((b,x)=>{if(typeof b=="number")return;const S=e&&e[x]&&e[x].name!==void 0,w=S?f(e[x].name,b):"";return{name:`${S?e[x].name:""}${w}${b}`}}).map(b=>({name:b.name.replace(/ /g,d)})),p=Gr({legendData:g,legendOrientation:t,legendProps:n,theme:o});return{height:Gr({legendData:s.map(b=>({name:b})),legendOrientation:t,legendProps:n,theme:o}).height,width:p.width>0?p.width:0}},_p=({activePoints:e,colorScale:t,legendData:n,patternScale:r,text:i,textAsLegendData:o=!1,theme:a})=>{const s=te(i,void 0),l=Array.isArray(s)?s:[s],c=[];if(n){let u=-1;for(let d=0;d<n.length;d++){const f=n[d];if(!(!(e&&e.find(g=>g.childName===f.childName))||f.symbol&&f.symbol.type==="eyeSlash"&&f.symbol.fill===C6.var)&&u++<l.length-1){const g=a&&a.legend&&a.legend.colorScale?a.legend.colorScale[d%a.legend.colorScale.length]:void 0,p=t?t[d%t.length]:g,y=r?r[d%r.length]:void 0;c.push({name:o?l[u]:f.name,symbol:Object.assign({fill:y||p},f.symbol)})}}}return c},O6=({activePoints:e,legendData:t,text:n})=>{const r=te(n,void 0),i=Array.isArray(r)?r:[r],o=[];if(t){let a=-1;for(const s of t)!(e&&e.find(c=>c.childName===s.childName))||s.symbol&&s.symbol.type==="eyeSlash"&&s.symbol.fill===C6.var||a++<i.length-1&&o.push(i[a])}return o},Vae=e=>{const{pointerWidth:t,cornerRadius:n,orientation:r,width:i,height:o,center:a}=e,s=r==="bottom"?1:-1,l=Mt(a)&&a.x,c=Mt(a)&&a.y,u=c+s*(o/2),d=c-s*(o/2),f=l+i/2,h=l-i/2,g=a.x+(e.dx||0),p=r==="bottom"?u+e.pointerLength+(e.dy||0):u-e.pointerLength+(e.dy||0),y=s*(p-u)<0?0:e.pointerLength,x=`${n} ${n} ${r==="bottom"?"0 0 0":"0 0 1"}`;return`M ${l-t/2}, ${u}
295
+ z`},gae=e=>{const t=e.orientation||"top";return t==="left"||t==="right"?mae(e):hae(e)},pae=e=>{const t=te(e.id,e),n=st(e.style,e);return{...e,id:t,style:n}},yae={pathComponent:v.createElement(fo,null),role:"presentation",shapeRendering:"auto"},vae=e=>{const t=pae(Z({},e,yae)),n=Tr(t);cd(t.height,"Flyout props[height] is undefined"),cd(t.width,"Flyout props[width] is undefined"),cd(t.x,"Flyout props[x] is undefined"),cd(t.y,"Flyout props[y] is undefined");const r={center:t.center||{x:0,y:0},cornerRadius:t.cornerRadius||0,dx:t.dx,dy:t.dy,height:t.height,orientation:t.orientation||"top",pointerLength:t.pointerLength||0,pointerWidth:t.pointerWidth||0,width:t.width,x:t.x,y:t.y};return v.cloneElement(t.pathComponent,{...t.events,...n,style:t.style,d:gae(r),className:t.className,shapeRendering:t.shapeRendering,role:t.role,transform:t.transform,clipPath:t.clipPath})},bae={cornerRadius:5,pointerLength:10,pointerWidth:10};class go extends v.Component{static defaultEvents(t){const n=t.activateData?[{target:"labels",mutation:()=>({active:!0})},{target:"data",mutation:()=>({active:!0})}]:[{target:"labels",mutation:()=>({active:!0})}],r=t.activateData?[{target:"labels",mutation:()=>({active:void 0})},{target:"data",mutation:()=>({active:void 0})}]:[{target:"labels",mutation:()=>({active:void 0})}];return[{target:"data",eventHandlers:{onMouseOver:()=>n,onFocus:()=>n,onTouchStart:()=>n,onMouseOut:()=>r,onBlur:()=>r,onTouchEnd:()=>r}}]}constructor(t){super(t),this.id=t.id===void 0?xl("tooltip-"):t.id}getDefaultOrientation(t){const{datum:n,horizontal:r,polar:i}=t;if(!i){const o=r?"right":"top",a=r?"left":"bottom";return n&&n.y<0?a:o}return this.getPolarOrientation(t)}getPolarOrientation(t){const n=Ll(t,t.datum),r=t.labelPlacement||"vertical";return r==="vertical"?this.getVerticalOrientations(n):r==="parallel"?n<90||n>270?"right":"left":n>180?"bottom":"top"}getVerticalOrientations(t){return t<45||t>315?"right":t>=45&&t<=135?"top":t>135&&t<225?"left":"bottom"}getStyles(t){const n=t.theme||Ar.grayscale,r=n&&n.tooltip&&n.tooltip.style?n.tooltip.style:{},i=Array.isArray(t.style)?t.style.map(c=>Z({},c,r)):Z({},t.style,r),o=n&&n.tooltip&&n.tooltip.flyoutStyle?n.tooltip.flyoutStyle:{},a=t.flyoutStyle?Z({},t.flyoutStyle,o):o,s=Array.isArray(i)?i.map(c=>st(c,t)):st(i,t),l=st(a,Object.assign({},t,{style:s}));return{style:s,flyoutStyle:l}}getEvaluatedProps(t){const{cornerRadius:n,centerOffset:r,dx:i,dy:o}=t,a=te(t.active,t);let s=te(t.text,Object.assign({},t,{active:a}));s==null&&(s=""),typeof s=="number"&&(s=s.toString());const{style:l,flyoutStyle:c}=this.getStyles(Object.assign({},t,{active:a,text:s})),u=te(t.orientation,Object.assign({},t,{active:a,text:s,style:l,flyoutStyle:c}))||this.getDefaultOrientation(t),d=te(t.flyoutPadding,Object.assign({},t,{active:a,text:s,style:l,flyoutStyle:c,orientation:u}))||this.getLabelPadding(l),f=xt(d),h=te(t.pointerWidth,Object.assign({},t,{active:a,text:s,style:l,flyoutStyle:c,orientation:u})),g=te(t.pointerLength,Object.assign({},t,{active:a,text:s,style:l,flyoutStyle:c,orientation:u})),p=ia(s,l),{flyoutHeight:y,flyoutWidth:b}=this.getDimensions(Object.assign({},t,{style:l,flyoutStyle:c,active:a,text:s,orientation:u,flyoutPadding:f,pointerWidth:h,pointerLength:g}),p),x=Object.assign({},t,{active:a,text:s,style:l,flyoutStyle:c,orientation:u,flyoutHeight:y,flyoutWidth:b,flyoutPadding:f,pointerWidth:h,pointerLength:g}),S=Mt(r)&&(r==null?void 0:r.x)!==void 0?te(r.x,x):0,w=Mt(r)&&(r==null?void 0:r.y)!==void 0?te(r.y,x):0;return{...x,centerOffset:{x:S,y:w},dx:i!==void 0?te(i,x):0,dy:o!==void 0?te(o,x):0,cornerRadius:te(n,x)}}getCalculatedValues(t){const{style:n,text:r,flyoutStyle:i,flyoutHeight:o,flyoutWidth:a}=t,s=ia(r,n),l={height:o,width:a},c=this.getFlyoutCenter(t,l),u=this.getTransform(t);return{style:n,flyoutStyle:i,labelSize:s,flyoutDimensions:l,flyoutCenter:c,transform:u}}getTransform(t){const{x:n,y:r,style:i}=t,a=(i||{}).angle||t.angle||this.getDefaultAngle(t);return a?`rotate(${a} ${n} ${r})`:void 0}getDefaultAngle(t){const{polar:n,labelPlacement:r,orientation:i,datum:o}=t;if(!n||!r||r==="vertical")return 0;const a=Ll(t,o),s=a>90&&a<180||a>270?1:-1,l=r==="perpendicular"?0:90;let c=0;return a===0||a===180?c=i==="top"&&a===180?270:90:a>0&&a<180?c=90-a:a>180&&a<360&&(c=270-a),c+s*l}constrainTooltip(t,n,r){const{x:i,y:o}=t,{width:a,height:s}=r,l={x:[0,n.width],y:[0,n.height]},c={x:[i-a/2,i+a/2],y:[o-s/2,o+s/2]},u={x:[c.x[0]<l.x[0]?l.x[0]-c.x[0]:0,c.x[1]>l.x[1]?c.x[1]-l.x[1]:0],y:[c.y[0]<l.y[0]?l.y[0]-c.y[0]:0,c.y[1]>l.y[1]?c.y[1]-l.y[1]:0]};return{x:Math.round(i+u.x[0]-u.x[1]),y:Math.round(o+u.y[0]-u.y[1])}}getFlyoutCenter(t,n){const{x:r,y:i,dx:o,dy:a,pointerLength:s,orientation:l,constrainToVisibleArea:c,centerOffset:u}=t,{height:d,width:f}=n,h=l==="left"?-1:1,g=l==="bottom"?-1:1,p={x:l==="left"||l==="right"?r+h*(s+f/2+h*o):r+o,y:l==="top"||l==="bottom"?i-g*(s+d/2-g*a):i+a},y={x:Mt(t.center)&&t.center.x!==void 0?t.center.x:p.x,y:Mt(t.center)&&t.center.y!==void 0?t.center.y:p.y},b={x:y.x+u.x,y:y.y+u.y};return c?this.constrainTooltip(b,t,n):b}getLabelPadding(t){if(!t)return 0;const n=Array.isArray(t)?t.map(r=>r.padding):[t.padding];return Math.max(...n,0)}getDimensions(t,n){const{orientation:r,pointerLength:i,pointerWidth:o,flyoutHeight:a,flyoutWidth:s,flyoutPadding:l}=t,c=te(t.cornerRadius,t),u=()=>{const f=n.height+l.top+l.bottom,h=r==="top"||r==="bottom"?2*c:2*c+o;return Math.max(h,f)},d=()=>{const f=n.width+l.left+l.right,h=r==="left"||r==="right"?2*c+i:2*c;return Math.max(h,f)};return{flyoutHeight:a?te(a,t):u(),flyoutWidth:s?te(s,t):d()}}getLabelProps(t,n){const{flyoutCenter:r,style:i,labelSize:o,dy:a=0,dx:s=0}=n,{text:l,datum:c,activePoints:u,labelComponent:d,index:f,flyoutPadding:h}=t,g=(Array.isArray(i)&&i.length?i[0].textAnchor:i.textAnchor)||"middle",p=()=>{if(!g||g==="middle")return r.x;const y=g==="end"?-1:1;return r.x-y*(o.width/2)};return Z({},d.props,{key:`${this.id}-label-${f}`,text:l,datum:c,activePoints:u,textAnchor:g,dy:a,dx:s,style:i,x:p()+(h.left-h.right)/2,y:r.y+(h.top-h.bottom)/2,verticalAnchor:"middle",angle:i.angle})}getPointerOrientation(t,n,r){const i={bottom:n.y+r.height/2,top:n.y-r.height/2,left:n.x-r.width/2,right:n.x+r.width/2},o=[{side:"top",val:i.top>t.y?i.top-t.y:-1},{side:"bottom",val:i.bottom<t.y?t.y-i.bottom:-1},{side:"right",val:i.right<t.x?t.x-i.right:-1},{side:"left",val:i.left>t.x?i.left-t.x:-1}];return ts(o,"val","desc")[0].side}getFlyoutProps(t,n){const{flyoutDimensions:r,flyoutStyle:i,flyoutCenter:o}=n,{x:a,y:s,dx:l,dy:c,datum:u,activePoints:d,index:f,pointerLength:h,pointerWidth:g,cornerRadius:p,events:y,flyoutComponent:b}=t,x=te(t.pointerOrientation,t);return Z({},b.props,{x:a,y:s,dx:l,dy:c,datum:u,activePoints:d,index:f,pointerLength:h,pointerWidth:g,cornerRadius:p,events:y,orientation:x||this.getPointerOrientation({x:a,y:s},o,r),key:`${this.id}-tooltip-${f}`,width:r.width,height:r.height,style:i,center:o})}renderTooltip(t){const n=te(t.active,t),{renderInPortal:r}=t;if(!n)return null;const i=this.getEvaluatedProps(t),{flyoutComponent:o,labelComponent:a,groupComponent:s}=i,l=this.getCalculatedValues(i),c=[v.cloneElement(o,this.getFlyoutProps(i,l)),v.cloneElement(a,this.getLabelProps(i,l))],u=v.cloneElement(s,{role:"presentation",transform:l.transform},c);return r?v.createElement(nf,null,u):u}render(){const t=Bt(this.props,bae,"tooltip");return this.renderTooltip(t)}}ce(go,"displayName","VictoryTooltip"),ce(go,"role","tooltip"),ce(go,"defaultProps",{active:!1,renderInPortal:!0,labelComponent:v.createElement(en,null),flyoutComponent:v.createElement(vae,null),groupComponent:v.createElement("g",null)});const Zl=e=>{var{constrainToVisibleArea:t=!1,labelComponent:n=k.createElement(on,null),labelTextAnchor:r,themeColor:i,theme:o=rn(i)}=e,a=Ae(e,["constrainToVisibleArea","labelComponent","labelTextAnchor","themeColor","theme"]);const s=k.cloneElement(n,Object.assign({textAnchor:r,theme:o},n.props));return k.createElement(go,Object.assign({constrainToVisibleArea:t,labelComponent:s,theme:o},a))};Zl.displayName="ChartTooltip",nn(Zl,go);const xae=(e,t)=>t.bubbleProperty?"circle":e.symbol||t.symbol,_ae=(e,t)=>{const{data:n,z:r,maxBubbleSize:i,minBubbleSize:o}=t,a=n.map(b=>b[r]),s=Math.min(...a),l=Math.max(...a),u=i||(()=>{const b=Math.min(...Object.values(xt(t.padding)));return Math.max(b,5)})(),d=o||u*.1;if(l===s)return Math.max(d,1);const f=Math.PI*Math.pow(u,2),h=Math.PI*Math.pow(d,2),g=(e[r]-s)/(l-s)*f,p=Math.max(g,h),y=Math.sqrt(p/Math.PI);return Math.max(y,1)},Sae=(e,t)=>{const{size:n,z:r}=t;return e.size?typeof e.size=="function"?e.size:Math.max(e.size,1):typeof t.size=="function"?n:e[r]?_ae(e,t):Math.max(n||0,1)},wae=e=>{const t=sd(e,"scatter"),n=wl(e.style,t),r={x:Nt(e,"x"),y:Nt(e,"y")},i={x:Jo(e,"x"),y:Jo(e,"y")},o={x:ir(e,"x").domain(i.x).range(e.horizontal?r.y:r.x),y:ir(e,"y").domain(i.y).range(e.horizontal?r.x:r.y)},a=e.polar?e.origin||Cl(e):void 0,s=e.bubbleProperty||"z";let l=dn(e);return l=zH(l,i),{domain:i,data:l,scale:o,style:n,origin:a,z:s}},Cae=(e,t)=>{const n=Bt(e,t,"scatter"),r=Object.assign({},n,wae(n)),{data:i,domain:o,events:a,height:s,origin:l,padding:c,polar:u,scale:d,name:f,sharedEvents:h,standalone:g,style:p,theme:y,width:b,labels:x,horizontal:S,disableInlineStyles:w}=r,_={parent:{style:p.parent,scale:d,domain:o,data:i,height:s,width:b,standalone:g,theme:y,origin:l,polar:u,padding:c,name:f,horizontal:S}};return i.reduce((E,O,T)=>{const D=di(O.eventKey)?T:O.eventKey,{x:j,y:A}=is(r,O),M={x:j,y:A,datum:O,data:i,index:T,scale:d,polar:u,origin:l,horizontal:S,size:Sae(O,r),symbol:xae(O,r),style:w?{}:p.data,disableInlineStyles:w};E[D]={data:M};const P=Md(r,O,T);return(P!=null||x&&(a||h))&&(E[D].labels=pg(r,T)),E},_)},x6={width:450,height:300,padding:50,size:3,symbol:"circle"};class Ai extends v.Component{static getBaseProps(t){return Cae(t,x6)}shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t,role:n}=yp,r=Bt(this.props,x6,n);if(this.shouldAnimate())return this.animateComponent(r,t);const i=this.renderData(r),o=r.standalone?this.renderContainer(r.containerComponent,i):i;return ud(o,r)}}ce(Ai,"animationWhitelist",["data","domain","height","maxBubbleSize","padding","samples","size","style","width"]),ce(Ai,"displayName","VictoryScatter"),ce(Ai,"role","scatter"),ce(Ai,"defaultTransitions",eG()),ce(Ai,"defaultProps",{containerComponent:v.createElement(Qt,null),dataComponent:v.createElement(Hw,null),labelComponent:v.createElement(en,null),groupComponent:v.createElement("g",null),samples:50,sortOrder:"ascending",standalone:!0,theme:Ar.grayscale}),ce(Ai,"getDomain",Jo),ce(Ai,"getData",dn),ce(Ai,"expectedComponents",["dataComponent","labelComponent","groupComponent","containerComponent"]);const yp=Yo(Ai),xf=e=>{var{containerComponent:t=k.createElement(cr,null),themeColor:n,theme:r=rn(n)}=e,i=Ae(e,["containerComponent","themeColor","theme"]);const o=k.cloneElement(t,Object.assign({theme:r},t.props));return typeof i.size>"u"&&typeof i.bubbleProperty>"u"&&(i.size=({active:a})=>a?c6.activeSize:c6.size),k.createElement(yp,Object.assign({containerComponent:o,theme:r},i))};xf.displayName="ChartScatter",nn(xf,yp);var Eae=Er,Oae=function(){return Eae.Date.now()},kae=Oae,Tae=Tn,vp=kae,_6=ap,Aae="Expected a function",Dae=Math.max,jae=Math.min;function Pae(e,t,n){var r,i,o,a,s,l,c=0,u=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(Aae);t=_6(t)||0,Tae(n)&&(u=!!n.leading,d="maxWait"in n,o=d?Dae(_6(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f);function h(E){var O=r,T=i;return r=i=void 0,c=E,a=e.apply(T,O),a}function g(E){return c=E,s=setTimeout(b,t),u?h(E):a}function p(E){var O=E-l,T=E-c,D=t-O;return d?jae(D,o-T):D}function y(E){var O=E-l,T=E-c;return l===void 0||O>=t||O<0||d&&T>=o}function b(){var E=vp();if(y(E))return x(E);s=setTimeout(b,p(E))}function x(E){return s=void 0,f&&r?h(E):(r=i=void 0,a)}function S(){s!==void 0&&clearTimeout(s),c=0,r=l=i=s=void 0}function w(){return s===void 0?a:x(vp())}function _(){var E=vp(),O=y(E);if(r=arguments,i=this,l=E,O){if(s===void 0)return g(l);if(d)return clearTimeout(s),s=setTimeout(b,t),h(l)}return s===void 0&&(s=setTimeout(b,t)),a}return _.cancel=S,_.flush=w,_}var Mae=Pae,$ae=Mae,Iae=Tn,Lae="Expected a function";function Fae(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(Lae);return Iae(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),$ae(e,t,{leading:r,maxWait:t,trailing:i})}var Nae=Fae;const Cs=Fe(Nae),Bae=16;class Wae{constructor(){ce(this,"handleMouseMove",(t,n)=>{const{onCursorChange:r,domain:i}=n,o=this.getDimension(n),a=n.parentSVG||xi(t),s=Ur(t,a);let l=qd(n,n.scale,s.x,s.y);if(this.withinBounds(l,{x1:i.x[0],x2:i.x[1],y1:i.y[0],y2:i.y[1]})||(l=null),Se(r))if(l){const u=o?l[o]:l;r(u,n)}else l!==n.cursorValue&&r(n.defaultCursorValue||null,n);return[{target:"parent",eventKey:"parent",mutation:()=>({cursorValue:l,parentSVG:a})}]});ce(this,"onMouseMove",Cs(this.handleMouseMove,Bae,{leading:!0,trailing:!1}));ce(this,"onMouseLeave",this.handleMouseMove);ce(this,"onTouchEnd",(t,n)=>{const{onCursorChange:r}=n;return Se(n.onCursorChange)&&r(null,n),[{target:"parent",eventKey:"parent",mutation:()=>({cursorValue:null})}]})}getDimension(t){const{horizontal:n,cursorDimension:r}=t;return!n||!r?r:r==="x"?"y":"x"}withinBounds(t,n){const{x1:r,x2:i,y1:o,y2:a}=os(n,Number),{x:s,y:l}=os(t,Number);return s>=Math.min(r,i)&&s<=Math.max(r,i)&&l>=Math.min(o,a)&&l<=Math.max(o,a)}}const _f=new Wae,S6={cursorLabelComponent:v.createElement(en,null),cursorLabelOffset:{x:5,y:-10},cursorComponent:v.createElement(Ci,null)},w6=e=>{const t={...S6,...e},{children:n}=t,r=()=>{const{cursorValue:s,defaultCursorValue:l,domain:c,cursorDimension:u}=t;return s||(typeof l=="number"?{x:(c.x[0]+c.x[1])/2,y:(c.y[0]+c.y[1])/2,...u?{[u]:l}:{}}:l)},i=()=>{const{cursorLabelOffset:s}=t;return typeof s=="number"?{x:s,y:s}:s},o=()=>{var s;if(t.padding===void 0){const l=Array.isArray(t.children)?t.children.find(c=>ju(c.props)&&c.props.padding!==void 0):t.children;return xt((s=l==null?void 0:l.props)==null?void 0:s.padding)}return xt(t.padding)},a=()=>{const{scale:s,cursorLabelComponent:l,cursorLabel:c,cursorComponent:u,width:d,height:f,name:h,horizontal:g,theme:p}=t,y=_f.getDimension(t),b=r(),x=i();if(!b)return[];const S=[],w=o(),_=s&&"x"in s&&"y"in s&&typeof s.y=="function"&&typeof s.x=="function"?{x:g?s.y(b.y):s.x(b.x),y:g?s.x(b.x):s.y(b.y)}:{x:b.x,y:b.y};if(c){let O=Z({active:!0},l.props,{x:_.x+x.x,y:_.y+x.y,datum:b,active:!0,key:`${h}-cursor-label`});if(ad(l)){const T=p&&p.tooltip||{};O=Z({},O,T)}S.push(v.cloneElement(l,Z({},O,{text:te(c,O)})))}const E=Object.assign({stroke:"black"},u.props.style);return(y==="x"||y===void 0)&&S.push(v.cloneElement(u,{key:`${h}-x-cursor`,x1:_.x,x2:_.x,y1:w.top,y2:(typeof f=="number"?f:0)-w.bottom,style:E})),(y==="y"||y===void 0)&&S.push(v.cloneElement(u,{key:`${h}-y-cursor`,x1:w.left,x2:(typeof d=="number"?d:0)-w.right,y1:_.y,y2:_.y,style:E})),S};return{props:t,children:[...v.Children.toArray(n),...a()]}},bp=e=>{const{props:t,children:n}=w6(e);return v.createElement(Qt,t,n)};bp.role="container",bp.defaultEvents=e=>{const t={...S6,...e},n=(r,i)=>(o,a,s,l)=>t.disable?{}:r(o,{...t,...a},s,l);return[{target:"parent",eventHandlers:{onMouseLeave:n(_f.onMouseLeave),onMouseMove:n(_f.onMouseMove),onTouchMove:n(_f.onMouseMove)}}]};const C6={name:"--pf-v5-chart-color-black-500",value:"#6a6e73",var:"var(--pf-v5-chart-color-black-500, #6a6e73)"},zae=({offsetCursorDimensionX:e=!1,offsetCursorDimensionY:t=!1,theme:n})=>{const r=n&&n.tooltip?te(n.tooltip.pointerLength,void 0):10;return{x:e?({center:a,flyoutWidth:s,width:l})=>{const c=s/2+r;return l>a.x+s+r?c:-c}:0,y:t?({center:a,flyoutHeight:s,width:l})=>{const c=s/2+r;return l>a.y+s+r?-c:c}:0}},Rae=({horizontal:e=!0,theme:t})=>{const n=t&&t.tooltip?te(t.tooltip.pointerLength,void 0):10;return e?({center:o,flyoutWidth:a,width:s})=>s>o.x+a+n?"left":"right":({center:o,flyoutHeight:a,height:s})=>s>o.y+a+n?"top":"bottom"},E6=e=>_s({borderPadding:0,gutter:0,orientation:"vertical",padding:0,rowGutter:0,style:{labels:{fill:ur.label.fill,lineHeight:.275,padding:0},title:{fill:ur.label.fill,padding:0}}},Object.assign({},e)),xp=({legendData:e,legendOrientation:t="vertical",legendProps:n,minSpacing:r=1,text:i="",theme:o})=>{const a=te(i,void 0),s=Array.isArray(a)?a:[a];let l=0,c=0;s.map((b,x)=>{typeof b!="number"&&b&&(b.length>c&&(c=b.length),e&&e[x]&&e[x].name!==void 0&&e[x].name.length>l&&(l=e[x].name.length))});const u=l+c+r,d="x",f=(b,x)=>{let S=" ";if(u===0)return S;const w=b?b.length:0,_=x?x.length:0,E=w+_;for(;S.length<u-E;)S+=d;return S},g=s.map((b,x)=>{if(typeof b=="number")return;const S=e&&e[x]&&e[x].name!==void 0,w=S?f(e[x].name,b):"";return{name:`${S?e[x].name:""}${w}${b}`}}).map(b=>({name:b.name.replace(/ /g,d)})),p=Gr({legendData:g,legendOrientation:t,legendProps:n,theme:o});return{height:Gr({legendData:s.map(b=>({name:b})),legendOrientation:t,legendProps:n,theme:o}).height,width:p.width>0?p.width:0}},_p=({activePoints:e,colorScale:t,legendData:n,patternScale:r,text:i,textAsLegendData:o=!1,theme:a})=>{const s=te(i,void 0),l=Array.isArray(s)?s:[s],c=[];if(n){let u=-1;for(let d=0;d<n.length;d++){const f=n[d];if(!(!(e&&e.find(g=>g.childName===f.childName))||f.symbol&&f.symbol.type==="eyeSlash"&&f.symbol.fill===C6.var)&&u++<l.length-1){const g=a&&a.legend&&a.legend.colorScale?a.legend.colorScale[d%a.legend.colorScale.length]:void 0,p=t?t[d%t.length]:g,y=r?r[d%r.length]:void 0;c.push({name:o?l[u]:f.name,symbol:Object.assign({fill:y||p},f.symbol)})}}}return c},O6=({activePoints:e,legendData:t,text:n})=>{const r=te(n,void 0),i=Array.isArray(r)?r:[r],o=[];if(t){let a=-1;for(const s of t)!(e&&e.find(c=>c.childName===s.childName))||s.symbol&&s.symbol.type==="eyeSlash"&&s.symbol.fill===C6.var||a++<i.length-1&&o.push(i[a])}return o},Vae=e=>{const{pointerWidth:t,cornerRadius:n,orientation:r,width:i,height:o,center:a}=e,s=r==="bottom"?1:-1,l=Mt(a)&&a.x,c=Mt(a)&&a.y,u=c+s*(o/2),d=c-s*(o/2),f=l+i/2,h=l-i/2,g=a.x+(e.dx||0),p=r==="bottom"?u+e.pointerLength+(e.dy||0):u-e.pointerLength+(e.dy||0),y=s*(p-u)<0?0:e.pointerLength,x=`${n} ${n} ${r==="bottom"?"0 0 0":"0 0 1"}`;return`M ${l-t/2}, ${u}
296
296
  L ${y?g:l+t/2}, ${y?p:u}
297
297
  L ${l+t/2}, ${u}
298
298
  L ${f-n}, ${u}
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.2619",
4
+ "version": "2.4.2621",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",