@patternfly/patternfly-doc-core 1.0.9 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +0,0 @@
1
- import{r as d}from"./index.CTH3fVMn.js";import{b as lt,v as It,w as we,d as Ct,x as Dt,c as ft}from"./PageContext.TBi_RMo9.js";/* empty css */function ue(e){const t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function W(e){if(e.toString()!=="[object Window]"){const t=e.ownerDocument;return t?t.defaultView:window}return e}function De(e){const t=W(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function de(e){const t=W(e).Element;return e instanceof t||e instanceof Element}function V(e){const t=W(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Tt(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Xt(e){return e===W(e)||!V(e)?De(e):Tt(e)}function N(e){return e?(e.nodeName||"").toLowerCase():null}function U(e){return(de(e)?e.ownerDocument:e.document).documentElement}function Te(e){return ue(U(e)).left+De(e).scrollLeft}function H(e){return W(e).getComputedStyle(e)}function Xe(e){const{overflow:t,overflowX:n,overflowY:o}=H(e);return/auto|scroll|overlay|hidden/.test(t+o+n)}function Rt(e,t,n=!1){const o=U(t),i=ue(e),r=V(t);let c={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&((N(t)!=="body"||Xe(o))&&(c=Xt(t)),V(t)?(s=ue(t),s.x+=t.clientLeft,s.y+=t.clientTop):o&&(s.x=Te(o))),{x:i.left+c.scrollLeft-s.x,y:i.top+c.scrollTop-s.y,width:i.width,height:i.height}}function Re(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function Me(e){return N(e)==="html"?e:e.assignedSlot||e.parentNode||e.host||U(e)}function at(e){return["html","body","#document"].indexOf(N(e))>=0?e.ownerDocument.body:V(e)&&Xe(e)?e:at(Me(e))}function pe(e,t=[]){const n=at(e),o=N(n)==="body",i=W(n),r=o?[i].concat(i.visualViewport||[],Xe(n)?n:[]):n,c=t.concat(r);return o?c:c.concat(pe(Me(r)))}function Nt(e){return["table","td","th"].indexOf(N(e))>=0}function Qe(e){if(!V(e)||H(e).position==="fixed")return null;const t=e.offsetParent;if(t){const n=U(t);if(N(t)==="body"&&H(t).position==="static"&&H(n).position!=="static")return n}return t}function zt(e){let t=Me(e);for(;V(t)&&["html","body"].indexOf(N(t))<0;){const n=H(t);if(n.transform!=="none"||n.perspective!=="none"||n.willChange&&n.willChange!=="auto")return t;t=t.parentNode}return null}function he(e){const t=W(e);let n=Qe(e);for(;n&&Nt(n)&&H(n).position==="static";)n=Qe(n);return n&&N(n)==="body"&&H(n).position==="static"?t:n||zt(e)||t}const I="top",X="bottom",R="right",C="left",Ne="auto",be=[I,X,R,C],K="start",ze="end",Ft="clippingParents",pt="viewport",ae="popper",Vt="reference",Ze=be.reduce((e,t)=>e.concat([`${t}-${K}`,`${t}-${ze}`]),[]),ut=[...be,Ne].reduce((e,t)=>e.concat([t,`${t}-${K}`,`${t}-${ze}`]),[]),Wt="beforeRead",qt="read",Bt="afterRead",Ht="beforeMain",Ut="main",Yt="afterMain",Gt="beforeWrite",Jt="write",Qt="afterWrite",Zt=[Wt,qt,Bt,Ht,Ut,Yt,Gt,Jt,Qt];function Kt(e){const t=new Map,n=new Set,o=[];e.forEach(r=>{t.set(r.name,r)});function i(r){n.add(r.name),[...r.requires||[],...r.requiresIfExists||[]].forEach(s=>{if(!n.has(s)){const l=t.get(s);l&&i(l)}}),o.push(r)}return e.forEach(r=>{n.has(r.name)||i(r)}),o}function en(e){const t=Kt(e);return Zt.reduce((n,o)=>n.concat(t.filter(i=>i.phase===o)),[])}function tn(e){let t;return()=>(t||(t=new Promise(n=>{Promise.resolve().then(()=>{t=void 0,n(e())})})),t)}function F(e){return e.split("-")[0]}function nn(e){const t=e.reduce((n,o)=>{const i=n[o.name];return n[o.name]=i?Object.assign(Object.assign(Object.assign({},i),o),{options:Object.assign(Object.assign({},i.options),o.options),data:Object.assign(Object.assign({},i.data),o.data)}):o,n},{});return Object.keys(t).map(n=>t[n])}function on(e){const t=W(e),n=U(e),o=t.visualViewport;let i=n.clientWidth,r=n.clientHeight,c=0,s=0;return o&&(i=o.width,r=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(c=o.offsetLeft,s=o.offsetTop)),{width:i,height:r,x:c+Te(e),y:s}}function sn(e){const t=U(e),n=De(e),o=e.ownerDocument.body,i=Math.max(t.scrollWidth,t.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),r=Math.max(t.scrollHeight,t.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let c=-n.scrollLeft+Te(e);const s=-n.scrollTop;return H(o||t).direction==="rtl"&&(c+=Math.max(t.clientWidth,o?o.clientWidth:0)-i),{width:i,height:r,x:c,y:s}}function dt(e,t){const n=!!(t.getRootNode&&t.getRootNode().host);if(e.contains(t))return!0;if(n){let o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Ce(e){return Object.assign(Object.assign({},e),{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function rn(e){const t=ue(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Ke(e,t){return t===pt?Ce(on(e)):V(t)?rn(t):Ce(sn(U(e)))}function cn(e){const t=pe(Me(e)),o=["absolute","fixed"].indexOf(H(e).position)>=0&&V(e)?he(e):e;return de(o)?t.filter(i=>de(i)&&dt(i,o)&&N(i)!=="body"):[]}function ln(e,t,n){const i=[...t==="clippingParents"?cn(e):[].concat(t),n],r=i[0],c=i.reduce((s,l)=>{const f=Ke(e,l);return s.top=Math.max(f.top,s.top),s.right=Math.min(f.right,s.right),s.bottom=Math.min(f.bottom,s.bottom),s.left=Math.max(f.left,s.left),s},Ke(e,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function me(e){return e.split("-")[1]}function Fe(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function mt({reference:e,element:t,placement:n}){const o=n?F(n):null,i=n?me(n):null,r=e.x+e.width/2-t.width/2,c=e.y+e.height/2-t.height/2;let s;switch(o){case I:s={x:r,y:e.y-t.height};break;case X:s={x:r,y:e.y+e.height};break;case R:s={x:e.x+e.width,y:c};break;case C:s={x:e.x-t.width,y:c};break;default:s={x:e.x,y:e.y}}const l=o?Fe(o):null;if(l!=null){const f=l==="y"?"height":"width";switch(i){case K:s[l]=Math.floor(s[l])-Math.floor(e[f]/2-t[f]/2);break;case ze:s[l]=Math.floor(s[l])+Math.ceil(e[f]/2-t[f]/2);break}}return s}function gt(){return{top:0,right:0,bottom:0,left:0}}function ht(e){return Object.assign(Object.assign({},gt()),e)}function bt(e,t){return t.reduce((n,o)=>(n[o]=e,n),{})}function ge(e,t={}){const{placement:n=e.placement,boundary:o=Ft,rootBoundary:i=pt,elementContext:r=ae,altBoundary:c=!1,padding:s=0}=t,l=ht(typeof s!="number"?s:bt(s,be)),f=r===ae?Vt:ae,a=e.elements.reference,h=e.rects.popper,m=e.elements[c?f:r],g=ln(de(m)?m:m.contextElement||U(e.elements.popper),o,i),O=ue(a),p=mt({reference:O,element:h,placement:n}),P=Ce(Object.assign(Object.assign({},h),p)),b=r===ae?P:O,E={top:g.top-b.top+l.top,bottom:b.bottom-g.bottom+l.bottom,left:g.left-b.left+l.left,right:b.right-g.right+l.right},j=e.modifiersData.offset;if(r===ae&&j){const L=j[n];Object.keys(E).forEach(S=>{const M=[R,X].indexOf(S)>=0?1:-1,x=[I,X].indexOf(S)>=0?"y":"x";E[S]+=L[x]*M})}return E}const et={placement:"bottom",modifiers:[],strategy:"absolute"};function tt(...e){return!e.some(t=>!(t&&typeof t.getBoundingClientRect=="function"))}function Ot(e={}){const{defaultModifiers:t=[],defaultOptions:n=et}=e;return function(i,r,c=n){let s={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},et),n),modifiersData:{},elements:{reference:i,popper:r},attributes:{},styles:{}},l=[],f=!1;const a={state:s,setOptions(g){m(),s.options=Object.assign(Object.assign(Object.assign({},n),s.options),g),s.scrollParents={reference:de(i)?pe(i):i.contextElement?pe(i.contextElement):[],popper:pe(r)};const O=en(nn([...t,...s.options.modifiers]));return s.orderedModifiers=O.filter(p=>p.enabled),h(),a.update()},forceUpdate(){if(f)return;const{reference:g,popper:O}=s.elements;if(tt(g,O)){s.rects={reference:Rt(g,he(O),s.options.strategy==="fixed"),popper:Re(O)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(p=>s.modifiersData[p.name]=Object.assign({},p.data));for(let p=0;p<s.orderedModifiers.length;p++){if(s.reset===!0){s.reset=!1,p=-1;continue}const{fn:P,options:b={},name:E}=s.orderedModifiers[p];typeof P=="function"&&(s=P({state:s,options:b,name:E,instance:a})||s)}}},update:tn(()=>new Promise(g=>{a.forceUpdate(),g(s)})),destroy(){m(),f=!0}};if(!tt(i,r))return a;a.setOptions(c).then(g=>{!f&&c.onFirstUpdate&&c.onFirstUpdate(g)});function h(){s.orderedModifiers.forEach(({name:g,options:O={},effect:p})=>{if(typeof p=="function"){const P=p({state:s,name:g,instance:a,options:O}),b=()=>{};l.push(P||b)}})}function m(){l.forEach(g=>g()),l=[]}return a}}Ot();const Pe={passive:!0};function fn({state:e,instance:t,options:n}){const{scroll:o=!0,resize:i=!0}=n,r=W(e.elements.popper),c=[...e.scrollParents.reference,...e.scrollParents.popper];return o&&c.forEach(s=>{s.addEventListener("scroll",t.update,Pe)}),i&&r.addEventListener("resize",t.update,Pe),()=>{o&&c.forEach(s=>{s.removeEventListener("scroll",t.update,Pe)}),i&&r.removeEventListener("resize",t.update,Pe)}}const an={name:"eventListeners",enabled:!0,phase:"write",fn:()=>{},effect:fn,data:{}};function pn({state:e,name:t}){e.modifiersData[t]=mt({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const un={name:"popperOffsets",enabled:!0,phase:"read",fn:pn,data:{}},dn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mn({x:e,y:t}){const o=window.devicePixelRatio||1;return{x:Math.round(e*o)/o||0,y:Math.round(t*o)/o||0}}function nt({popper:e,popperRect:t,placement:n,offsets:o,position:i,gpuAcceleration:r,adaptive:c}){let{x:s,y:l}=mn(o);const f=o.hasOwnProperty("x"),a=o.hasOwnProperty("y");let h=C,m=I;const g=window;if(c){let p=he(e);p===W(e)&&(p=U(e)),n===I&&(m=X,l-=p.clientHeight-t.height,l*=r?1:-1),n===C&&(h=R,s-=p.clientWidth-t.width,s*=r?1:-1)}const O=Object.assign({position:i},c&&dn);return r?Object.assign(Object.assign({},O),{[m]:a?"0":"",[h]:f?"0":"",transform:(g.devicePixelRatio||1)<2?`translate(${s}px, ${l}px)`:`translate3d(${s}px, ${l}px, 0)`}):Object.assign(Object.assign({},O),{[m]:a?`${l}px`:"",[h]:f?`${s}px`:"",transform:""})}function gn({state:e,options:t}){const{gpuAcceleration:n=!0,adaptive:o=!0}=t,i={placement:F(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign(Object.assign({},e.styles.popper),nt(Object.assign(Object.assign({},i),{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign(Object.assign({},e.styles.arrow),nt(Object.assign(Object.assign({},i),{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1})))),e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-placement":e.placement})}const hn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:gn,data:{}};function bn({state:e}){Object.keys(e.elements).forEach(t=>{const n=e.styles[t]||{},o=e.attributes[t]||{},i=e.elements[t];!V(i)||!N(i)||(Object.assign(i.style,n),Object.keys(o).forEach(r=>{const c=o[r];c===!1?i.removeAttribute(r):i.setAttribute(r,c===!0?"":c)}))})}function On({state:e}){const t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),()=>{Object.keys(e.elements).forEach(n=>{const o=e.elements[n],i=e.attributes[n]||{},c=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:t[n]).reduce((s,l)=>(s[l]="",s),{});!V(o)||!N(o)||(Object.assign(o.style,c),Object.keys(i).forEach(s=>{o.removeAttribute(s)}))})}}const xn={name:"applyStyles",enabled:!0,phase:"write",fn:bn,effect:On,requires:["computeStyles"]};function yn(e,t,n){const o=F(e),i=[C,I].indexOf(o)>=0?-1:1;let[r,c]=typeof n=="function"?n(Object.assign(Object.assign({},t),{placement:e})):n;return r=r||0,c=(c||0)*i,[C,R].indexOf(o)>=0?{x:c,y:r}:{x:r,y:c}}function vn({state:e,options:t,name:n}){const{offset:o=[0,0]}=t,i=ut.reduce((s,l)=>(s[l]=yn(l,e.rects,o),s),{}),{x:r,y:c}=i[e.placement];e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=r,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=i}const wn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:vn},Pn={left:"right",right:"left",bottom:"top",top:"bottom"};function Ee(e){return e.replace(/left|right|bottom|top/g,t=>Pn[t])}const En={start:"end",end:"start"};function ot(e){return e.replace(/start|end/g,t=>En[t])}function Sn(e,t={}){const{placement:n,boundary:o,rootBoundary:i,padding:r,flipVariations:c,allowedAutoPlacements:s=ut}=t,l=me(n),f=l?c?Ze:Ze.filter(m=>me(m)===l):be;let a=f.filter(m=>s.indexOf(m)>=0);a.length===0&&(a=f);const h=a.reduce((m,g)=>(m[g]=ge(e,{placement:g,boundary:o,rootBoundary:i,padding:r})[F(g)],m),{});return Object.keys(h).sort((m,g)=>h[m]-h[g])}function Mn(e){if(F(e)===Ne)return[];const t=Ee(e);return[ot(e),t,ot(t)]}function _n({state:e,options:t,name:n}){if(e.modifiersData[n]._skip)return;const{mainAxis:o=!0,altAxis:i=!0,fallbackPlacements:r,padding:c,boundary:s,rootBoundary:l,altBoundary:f,flipVariations:a=!0,allowedAutoPlacements:h}=t,m=e.options.placement,O=F(m)===m,p=r||(O||!a?[Ee(m)]:Mn(m)),P=[m,...p].reduce((M,x)=>M.concat(F(x)===Ne?Sn(e,{placement:x,boundary:s,rootBoundary:l,padding:c,flipVariations:a,allowedAutoPlacements:h}):x),[]),b=e.rects.reference,E=e.rects.popper,j=new Map;let L=!0,S=P[0];for(let M=0;M<P.length;M++){const x=P[M],y=F(x),A=me(x)===K,v=[I,X].indexOf(y)>=0,_=v?"width":"height",z=ge(e,{placement:x,boundary:s,rootBoundary:l,altBoundary:f,padding:c});let Y=v?A?R:C:A?X:I;b[_]>E[_]&&(Y=Ee(Y));const q=Ee(Y),B=[];if(o&&B.push(z[y]<=0),i&&B.push(z[Y]<=0,z[q]<=0),B.every(ee=>ee)){S=x,L=!1;break}j.set(x,B)}if(L){const M=a?3:1;for(let x=M;x>0;x--){const y=P.find(A=>{const v=j.get(A);if(v)return v.slice(0,x).every(_=>_)});if(y){S=y;break}}}e.placement!==S&&(e.modifiersData[n]._skip=!0,e.placement=S,e.reset=!0)}const jn={name:"flip",enabled:!0,phase:"main",fn:_n,requiresIfExists:["offset"],data:{_skip:!1}};function Ln(e){return e==="x"?"y":"x"}function Se(e,t,n){return Math.max(e,Math.min(t,n))}function kn({state:e,options:t,name:n}){const{mainAxis:o=!0,altAxis:i=!1,boundary:r,rootBoundary:c,altBoundary:s,padding:l,tether:f=!0,tetherOffset:a=0}=t,h=ge(e,{boundary:r,rootBoundary:c,padding:l,altBoundary:s}),m=F(e.placement),g=me(e.placement),O=!g,p=Fe(m),P=Ln(p),b=e.modifiersData.popperOffsets,E=e.rects.reference,j=e.rects.popper,L=typeof a=="function"?a(Object.assign(Object.assign({},e.rects),{placement:e.placement})):a,S={x:0,y:0};if(b){if(o){const M=p==="y"?I:C,x=p==="y"?X:R,y=p==="y"?"height":"width",A=b[p],v=b[p]+h[M],_=b[p]-h[x],z=f?-j[y]/2:0,Y=g===K?E[y]:j[y],q=g===K?-j[y]:-E[y],B=e.elements.arrow,ee=f&&B?Re(B):{width:0,height:0},Oe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:gt(),xe=Oe[M],ye=Oe[x],Q=Se(0,E[y],ee[y]),te=O?E[y]/2-z-Q-xe-L:Y-Q-xe-L,Z=O?-E[y]/2+z+Q+ye+L:q+Q+ye+L,ne=e.elements.arrow&&he(e.elements.arrow),oe=ne?p==="y"?ne.clientTop||0:ne.clientLeft||0:0,se=e.modifiersData.offset?e.modifiersData.offset[e.placement][p]:0,k=b[p]+te-se-oe,ie=b[p]+Z-se,re=Se(f?Math.min(v,k):v,A,f?Math.max(_,ie):_);b[p]=re,S[p]=re-A}if(i){const M=p==="x"?I:C,x=p==="x"?X:R,y=b[P],A=y+h[M],v=y-h[x],_=Se(A,y,v);b[P]=_,S[P]=_-y}e.modifiersData[n]=S}}const $n={name:"preventOverflow",enabled:!0,phase:"main",fn:kn,requiresIfExists:["offset"]};function An({state:e,name:t}){const n=e.elements.arrow,o=e.modifiersData.popperOffsets,i=F(e.placement),r=Fe(i),s=[C,R].indexOf(i)>=0?"height":"width";if(!n||!o)return;const l=e.modifiersData[`${t}#persistent`].padding,f=Re(n),a=r==="y"?I:C,h=r==="y"?X:R,m=e.rects.reference[s]+e.rects.reference[r]-o[r]-e.rects.popper[s],g=o[r]-e.rects.reference[r],O=he(n),p=O?r==="y"?O.clientHeight||0:O.clientWidth||0:0,P=m/2-g/2,b=l[a],E=p-f[s]-l[h],j=p/2-f[s]/2+P,L=Se(b,j,E),S=r;e.modifiersData[t]={[S]:L,centerOffset:L-j}}function In({state:e,options:t,name:n}){let{element:o="[data-popper-arrow]",padding:i=0}=t;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||dt(e.elements.popper,o)&&(e.elements.arrow=o,e.modifiersData[`${n}#persistent`]={padding:ht(typeof i!="number"?i:bt(i,be))}))}const Cn={name:"arrow",enabled:!0,phase:"main",fn:An,effect:In,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function st(e,t,n={x:0,y:0}){return{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function it(e){return[I,R,X,C].some(t=>e[t]>=0)}function Dn({state:e,name:t}){const n=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,r=ge(e,{elementContext:"reference"}),c=ge(e,{altBoundary:!0}),s=st(r,n),l=st(c,o,i),f=it(s),a=it(l);e.modifiersData[t]={referenceClippingOffsets:s,popperEscapeOffsets:l,isReferenceHidden:f,hasPopperEscaped:a},e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-reference-hidden":f,"data-popper-escaped":a})}const Tn={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Dn},Xn=[an,un,hn,xn,wn,jn,$n,Cn,Tn],Rn=Ot({defaultModifiers:Xn}),rt=lt?d.useLayoutEffect:d.useEffect,Nn=(e,t)=>JSON.stringify(e)===JSON.stringify(t),ct=e=>e.reduce((t,[n,o])=>(t[n]=o,t),{}),zn=[],Fn=(e,t,n={})=>{const o=d.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||zn},[r,c]=d.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"}},attributes:{}}),s=d.useMemo(()=>({name:"updateState",enabled:!0,phase:"write",fn:({state:a})=>{const h=Object.keys(a.elements);c({styles:ct(h.map(m=>[m,a.styles[m]||{}])),attributes:ct(h.map(m=>[m,a.attributes[m]]))})},requires:["computeStyles"]}),[]),l=d.useMemo(()=>{const a={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[...i.modifiers,s,{name:"applyStyles",enabled:!1}]};return Nn(o.current,a)?o.current||a:(o.current=a,a)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,s]),f=d.useRef();return rt(()=>{f&&f.current&&f.current.setOptions(l)},[l]),rt(()=>{if(e==null||t==null)return;const h=(n.createPopper||Rn)(e,t,l);return f.current=h,()=>{h.destroy(),f.current=null}},[e,t,n.createPopper]),{state:f.current?f.current.state:null,styles:r.styles,attributes:r.attributes,update:f.current?f.current.update:null,forceUpdate:f.current?f.current.forceUpdate:null}},Vn={left:"right",right:"left",bottom:"top",top:"bottom","top-start":"bottom-end","top-end":"bottom-start","bottom-start":"top-end","bottom-end":"top-start","left-start":"right-end","left-end":"right-start","right-start":"left-end","right-end":"left-start"},Wn=e=>e.replace(/left|right|bottom|top|top-start|top-end|bottom-start|bottom-end|right-start|right-end|left-start|left-end/g,t=>Vn[t]),qn=e=>`opacity ${e}ms cubic-bezier(.54, 1.5, .38, 1.11)`,Bn=({trigger:e,popper:t,direction:n="down",position:o="start",placement:i,width:r,minWidth:c="trigger",maxWidth:s,appendTo:l=()=>document.body,zIndex:f=9999,isVisible:a=!0,positionModifiers:h,distance:m=0,onMouseEnter:g,onMouseLeave:O,onFocus:p,onBlur:P,onDocumentClick:b,onTriggerClick:E,onTriggerEnter:j,onPopperClick:L,onPopperMouseEnter:S,onPopperMouseLeave:M,onDocumentKeyDown:x,enableFlip:y=!0,flipBehavior:A="flip",triggerRef:v,popperRef:_,animationDuration:z=0,entryDelay:Y=0,exitDelay:q=0,onHidden:B=()=>{},onHide:ee=()=>{},onMount:Oe=()=>{},onShow:xe=()=>{},onShown:ye=()=>{},preventOverflow:Q=!1})=>{var te;const[Z,ne]=d.useState(null),[oe,se]=d.useState(null),[k,ie]=d.useState(null),[re,xt]=d.useState(null),[yt,vt]=d.useState(!1),[wt,Ve]=d.useState(0),[Pt,_e]=d.useState(a),ce=d.useRef(null),je=d.useRef(null),le=d.useRef(null),We=d.useRef(),$=oe||Z,Le=a||Pt,Et=(te=v?.current||Z)===null||te===void 0?void 0:te.parentElement,qe=It(Et),ve=d.useMemo(()=>{const u={left:"left",right:"right",center:"center"};return{ltr:Object.assign({start:"left",end:"right"},u),rtl:Object.assign({start:"right",end:"left"},u)}[qe][o]},[o,qe]),Be=d.useCallback(u=>b(u,$,k),[Le,Z,oe,k,b]);d.useEffect(()=>{vt(!0),Oe()},[]),d.useEffect(()=>()=>{we([ce,le,je])},[]),d.useEffect(()=>{v&&(v.current?se(v.current):typeof v=="function"&&se(v()))},[v,e]),d.useEffect(()=>{_&&(_.current?ie(_.current):typeof _=="function"&&ie(_()))},[Le,_]),d.useEffect(()=>{const u=new MutationObserver(()=>{Ye&&Ye()});return k&&u.observe(k,{attributes:!0,childList:!0,subtree:!0}),()=>{u.disconnect()}},[k]);const D=(u,w,G,J=!1)=>{u&&w&&w.addEventListener(G,u,{capture:J})},T=(u,w,G,J=!1)=>{u&&w&&w.removeEventListener(G,u,{capture:J})};d.useEffect(()=>(D(g,$,"mouseenter"),D(O,$,"mouseleave"),D(p,$,"focus"),D(P,$,"blur"),D(E,$,"click"),D(j,$,"keydown"),D(L,k,"click"),D(S,k,"mouseenter"),D(M,k,"mouseleave"),b&&D(Be,document,"click",!0),D(x,document,"keydown",!0),()=>{T(g,$,"mouseenter"),T(O,$,"mouseleave"),T(p,$,"focus"),T(P,$,"blur"),T(E,$,"click"),T(j,$,"keydown"),T(L,k,"click"),T(S,k,"mouseenter"),T(M,k,"mouseleave"),b&&T(Be,document,"click",!0),T(x,document,"keydown",!0)}),[Z,k,g,O,p,P,E,j,L,S,M,b,x,oe]);const He=()=>{if(i)return i;let u=n==="up"?"top":"bottom";return ve!=="center"&&(u=`${u}-${ve==="right"?"end":"start"}`),u},Ue=d.useMemo(He,[n,ve,i]),St=d.useMemo(()=>Wn(He()),[n,ve,i]),Mt=d.useMemo(()=>({name:"widthMods",enabled:r!==void 0||c!==void 0||s!==void 0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:u})=>{const w=u.rects.reference.width;r&&(u.styles.popper.width=r==="trigger"?`${w}px`:r),c&&(u.styles.popper.minWidth=c==="trigger"?`${w}px`:c),s&&(u.styles.popper.maxWidth=s==="trigger"?`${w}px`:s)},effect:({state:u})=>{const w=u.elements.reference.offsetWidth;return r&&(u.elements.popper.style.width=r==="trigger"?`${w}px`:r),c&&(u.elements.popper.style.minWidth=c==="trigger"?`${w}px`:c),s&&(u.elements.popper.style.maxWidth=s==="trigger"?`${w}px`:s),()=>{}}}),[r,c,s]),{styles:_t,attributes:fe,update:Ye,forceUpdate:Ge}=Fn($,k,{placement:Ue,modifiers:[{name:"offset",options:{offset:[0,m]}},{name:"preventOverflow",enabled:Q},{name:"hide",enabled:!0},{name:"flip",enabled:Ue.startsWith("auto")||y,options:{fallbackPlacements:A==="flip"?[St]:A}},Mt]});d.useEffect(()=>{var u,w,G,J,ke,$e,Ae;const Ie=((J=(G=(w=(u=t?.props)===null||u===void 0?void 0:u.children)===null||w===void 0?void 0:w[1])===null||G===void 0?void 0:G.props)===null||J===void 0?void 0:J.children)||((Ae=($e=(ke=t?.props)===null||ke===void 0?void 0:ke.children)===null||$e===void 0?void 0:$e.props)===null||Ae===void 0?void 0:Ae.children);xt(Ie),Ie&&re&&Ie!==re&&Ge&&Ge()},[t]),d.useEffect(()=>{We.current<q&&(we([ce,le]),le.current=setTimeout(()=>{ce.current=setTimeout(()=>{_e(!1)},z)},q)),We.current=q},[q]);const jt=()=>{xe(),we([ce,le]),je.current=setTimeout(()=>{_e(!0),Ve(1),ye()},Y)},Lt=()=>{ee(),we([je]),le.current=setTimeout(()=>{Ve(0),ce.current=setTimeout(()=>{_e(!1),B()},z)},q)};d.useEffect(()=>{a?jt():Lt()},[a]);const kt=()=>{if(fe&&fe.popper&&fe.popper["data-popper-placement"]){const u=fe.popper["data-popper-placement"];return h[u]}return h.top},$t=Object.assign({className:Ct(t.props&&t.props.className,h&&kt()),style:Object.assign(Object.assign(Object.assign({},t.props&&t.props.style||{}),_t.popper),{zIndex:f,opacity:wt,transition:qn(z)})},fe.popper),Je=()=>{const u=d.cloneElement(t,$t);return _?u:d.createElement("div",{style:{display:"contents"},ref:w=>ie(w?.firstElementChild)},u)},At=()=>{if(l==="inline")return Je();{const u=typeof l=="function"?l():l;return Dt.createPortal(Je(),u)}};return d.createElement(d.Fragment,null,!v&&e&&d.isValidElement(e)&&d.createElement("div",{style:{display:"contents"},ref:u=>ne(u?.firstElementChild)},e),v&&e&&d.isValidElement(e)&&e,yt&&Le&&At())};Bn.displayName="Popper";const Qn=(e,t,n)=>{let o;if(lt){const{ResizeObserver:i}=window;if(e&&i){const r=new i(c=>{window.requestAnimationFrame(()=>{Array.isArray(c)&&c.length>0})});r.observe(e),o=()=>r.unobserve(e)}else window.addEventListener("resize",t),o=()=>window.removeEventListener("resize",t)}return()=>{o&&o()}},Hn={name:"AngleRightIcon",height:512,width:256,svgPath:"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z",yOffset:0,xOffset:0},Zn=ft(Hn),Kn={divider:"pf-v6-c-divider",menu:"pf-v6-c-menu",menuContent:"pf-v6-c-menu__content",menuGroup:"pf-v6-c-menu__group",menuGroupTitle:"pf-v6-c-menu__group-title",menuItem:"pf-v6-c-menu__item",menuItemAction:"pf-v6-c-menu__item-action",menuItemCheck:"pf-v6-c-menu__item-check",menuItemDescription:"pf-v6-c-menu__item-description",menuItemExternalIcon:"pf-v6-c-menu__item-external-icon",menuItemIcon:"pf-v6-c-menu__item-icon",menuItemMain:"pf-v6-c-menu__item-main",menuItemSelectIcon:"pf-v6-c-menu__item-select-icon",menuItemText:"pf-v6-c-menu__item-text",menuItemToggleIcon:"pf-v6-c-menu__item-toggle-icon",menuList:"pf-v6-c-menu__list",menuListItem:"pf-v6-c-menu__list-item",menuSearch:"pf-v6-c-menu__search",modifiers:{disabled:"pf-m-disabled",ariaDisabled:"pf-m-aria-disabled",flyout:"pf-m-flyout",left:"pf-m-left",drilldown:"pf-m-drilldown",drilledIn:"pf-m-drilled-in",currentPath:"pf-m-current-path",plain:"pf-m-plain",scrollable:"pf-m-scrollable",load:"pf-m-load",loading:"pf-m-loading",danger:"pf-m-danger",selected:"pf-m-selected",favorited:"pf-m-favorited"}},Un={name:"AngleLeftIcon",height:512,width:256,svgPath:"M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z",yOffset:0,xOffset:0},eo=ft(Un),to={divider:"pf-v6-c-divider",modifiers:{hidden:"pf-m-hidden",hiddenOnSm:"pf-m-hidden-on-sm",visibleOnSm:"pf-m-visible-on-sm",hiddenOnMd:"pf-m-hidden-on-md",visibleOnMd:"pf-m-visible-on-md",hiddenOnLg:"pf-m-hidden-on-lg",visibleOnLg:"pf-m-visible-on-lg",hiddenOnXl:"pf-m-hidden-on-xl",visibleOnXl:"pf-m-visible-on-xl",hiddenOn_2xl:"pf-m-hidden-on-2xl",visibleOn_2xl:"pf-m-visible-on-2xl",horizontal:"pf-m-horizontal",vertical:"pf-m-vertical",insetNone:"pf-m-inset-none",insetXs:"pf-m-inset-xs",insetSm:"pf-m-inset-sm",insetMd:"pf-m-inset-md",insetLg:"pf-m-inset-lg",insetXl:"pf-m-inset-xl",inset_2xl:"pf-m-inset-2xl",inset_3xl:"pf-m-inset-3xl",horizontalOnSm:"pf-m-horizontal-on-sm",verticalOnSm:"pf-m-vertical-on-sm",insetNoneOnSm:"pf-m-inset-none-on-sm",insetXsOnSm:"pf-m-inset-xs-on-sm",insetSmOnSm:"pf-m-inset-sm-on-sm",insetMdOnSm:"pf-m-inset-md-on-sm",insetLgOnSm:"pf-m-inset-lg-on-sm",insetXlOnSm:"pf-m-inset-xl-on-sm",inset_2xlOnSm:"pf-m-inset-2xl-on-sm",inset_3xlOnSm:"pf-m-inset-3xl-on-sm",horizontalOnMd:"pf-m-horizontal-on-md",verticalOnMd:"pf-m-vertical-on-md",insetNoneOnMd:"pf-m-inset-none-on-md",insetXsOnMd:"pf-m-inset-xs-on-md",insetSmOnMd:"pf-m-inset-sm-on-md",insetMdOnMd:"pf-m-inset-md-on-md",insetLgOnMd:"pf-m-inset-lg-on-md",insetXlOnMd:"pf-m-inset-xl-on-md",inset_2xlOnMd:"pf-m-inset-2xl-on-md",inset_3xlOnMd:"pf-m-inset-3xl-on-md",horizontalOnLg:"pf-m-horizontal-on-lg",verticalOnLg:"pf-m-vertical-on-lg",insetNoneOnLg:"pf-m-inset-none-on-lg",insetXsOnLg:"pf-m-inset-xs-on-lg",insetSmOnLg:"pf-m-inset-sm-on-lg",insetMdOnLg:"pf-m-inset-md-on-lg",insetLgOnLg:"pf-m-inset-lg-on-lg",insetXlOnLg:"pf-m-inset-xl-on-lg",inset_2xlOnLg:"pf-m-inset-2xl-on-lg",inset_3xlOnLg:"pf-m-inset-3xl-on-lg",horizontalOnXl:"pf-m-horizontal-on-xl",verticalOnXl:"pf-m-vertical-on-xl",insetNoneOnXl:"pf-m-inset-none-on-xl",insetXsOnXl:"pf-m-inset-xs-on-xl",insetSmOnXl:"pf-m-inset-sm-on-xl",insetMdOnXl:"pf-m-inset-md-on-xl",insetLgOnXl:"pf-m-inset-lg-on-xl",insetXlOnXl:"pf-m-inset-xl-on-xl",inset_2xlOnXl:"pf-m-inset-2xl-on-xl",inset_3xlOnXl:"pf-m-inset-3xl-on-xl",horizontalOn_2xl:"pf-m-horizontal-on-2xl",verticalOn_2xl:"pf-m-vertical-on-2xl",insetNoneOn_2xl:"pf-m-inset-none-on-2xl",insetXsOn_2xl:"pf-m-inset-xs-on-2xl",insetSmOn_2xl:"pf-m-inset-sm-on-2xl",insetMdOn_2xl:"pf-m-inset-md-on-2xl",insetLgOn_2xl:"pf-m-inset-lg-on-2xl",insetXlOn_2xl:"pf-m-inset-xl-on-2xl",inset_2xlOn_2xl:"pf-m-inset-2xl-on-2xl",inset_3xlOn_2xl:"pf-m-inset-3xl-on-2xl"}};export{eo as A,Bn as P,Zn as a,to as d,Qn as g,Kn as m,rt as u};
@@ -1 +0,0 @@
1
- import{r as c}from"./index.CTH3fVMn.js";let r=[],s=0;const o=4;let p=i=>{let n=[],e={get(){return e.lc||e.listen(()=>{})(),e.value},lc:0,listen(t){return e.lc=n.push(t),()=>{for(let u=s+o;u<r.length;)r[u]===t?r.splice(u,o):u+=o;let l=n.indexOf(t);~l&&(n.splice(l,1),--e.lc||e.off())}},notify(t,l){let u=!r.length;for(let f of n)r.push(f,e.value,t,l);if(u){for(s=0;s<r.length;s+=o)r[s](r[s+1],r[s+2],r[s+3]);r.length=0}},off(){},set(t){let l=e.value;l!==t&&(e.value=t,e.notify(l))},subscribe(t){let l=e.listen(t);return t(e.value),l},value:i};return e};function E(i,n,e){let t=new Set([...n,void 0]);return i.listen((l,u,f)=>{t.has(f)&&e(l,u,f)})}let a=(i,n)=>e=>{i.current=e,n()};function v(i,{keys:n,deps:e=[i,n]}={}){let t=c.useRef();t.current=i.get();let l=c.useCallback(f=>n?.length>0?E(i,n,a(t,f)):i.listen(a(t,f)),e),u=()=>t.current;return c.useSyncExternalStore(l,u,u)}const S=p(!0);export{S as i,v as u};