@patternfly/patternfly-doc-core 1.0.6 → 1.0.8

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.
@@ -31,6 +31,21 @@ declare module 'astro:content' {
31
31
  ContentEntryMap[C]
32
32
  >['slug'];
33
33
 
34
+ export type ReferenceDataEntry<
35
+ C extends CollectionKey,
36
+ E extends keyof DataEntryMap[C] = string,
37
+ > = {
38
+ collection: C;
39
+ id: E;
40
+ };
41
+ export type ReferenceContentEntry<
42
+ C extends keyof ContentEntryMap,
43
+ E extends ValidContentEntrySlug<C> | (string & {}) = string,
44
+ > = {
45
+ collection: C;
46
+ slug: E;
47
+ };
48
+
34
49
  /** @deprecated Use `getEntry` instead. */
35
50
  export function getEntryBySlug<
36
51
  C extends keyof ContentEntryMap,
@@ -61,19 +76,17 @@ declare module 'astro:content' {
61
76
  export function getEntry<
62
77
  C extends keyof ContentEntryMap,
63
78
  E extends ValidContentEntrySlug<C> | (string & {}),
64
- >(entry: {
65
- collection: C;
66
- slug: E;
67
- }): E extends ValidContentEntrySlug<C>
79
+ >(
80
+ entry: ReferenceContentEntry<C, E>,
81
+ ): E extends ValidContentEntrySlug<C>
68
82
  ? Promise<CollectionEntry<C>>
69
83
  : Promise<CollectionEntry<C> | undefined>;
70
84
  export function getEntry<
71
85
  C extends keyof DataEntryMap,
72
86
  E extends keyof DataEntryMap[C] | (string & {}),
73
- >(entry: {
74
- collection: C;
75
- id: E;
76
- }): E extends keyof DataEntryMap[C]
87
+ >(
88
+ entry: ReferenceDataEntry<C, E>,
89
+ ): E extends keyof DataEntryMap[C]
77
90
  ? Promise<DataEntryMap[C][E]>
78
91
  : Promise<CollectionEntry<C> | undefined>;
79
92
  export function getEntry<
@@ -99,16 +112,10 @@ declare module 'astro:content' {
99
112
 
100
113
  /** Resolve an array of entry references from the same collection */
101
114
  export function getEntries<C extends keyof ContentEntryMap>(
102
- entries: {
103
- collection: C;
104
- slug: ValidContentEntrySlug<C>;
105
- }[],
115
+ entries: ReferenceContentEntry<C, ValidContentEntrySlug<C>>[],
106
116
  ): Promise<CollectionEntry<C>[]>;
107
117
  export function getEntries<C extends keyof DataEntryMap>(
108
- entries: {
109
- collection: C;
110
- id: keyof DataEntryMap[C];
111
- }[],
118
+ entries: ReferenceDataEntry<C, keyof DataEntryMap[C]>[],
112
119
  ): Promise<CollectionEntry<C>[]>;
113
120
 
114
121
  export function render<C extends keyof AnyEntryMap>(
@@ -120,14 +127,8 @@ declare module 'astro:content' {
120
127
  ): import('astro/zod').ZodEffects<
121
128
  import('astro/zod').ZodString,
122
129
  C extends keyof ContentEntryMap
123
- ? {
124
- collection: C;
125
- slug: ValidContentEntrySlug<C>;
126
- }
127
- : {
128
- collection: C;
129
- id: keyof DataEntryMap[C];
130
- }
130
+ ? ReferenceContentEntry<C, ValidContentEntrySlug<C>>
131
+ : ReferenceDataEntry<C, keyof DataEntryMap[C]>
131
132
  >;
132
133
  // Allow generic `string` to avoid excessive type errors in the config
133
134
  // if `dev` is not running to update as you edit.
package/cli/cli.ts CHANGED
@@ -66,6 +66,12 @@ program.command('build').action(async () => {
66
66
  )
67
67
  return
68
68
  }
69
+
70
+ if (!config.outputDir) {
71
+ console.error("No outputDir found in config file, an output directory must be defined in your config file e.g. 'dist'")
72
+ return
73
+ }
74
+
69
75
  build({ root: astroRoot, outDir: join(currentDir, config.outputDir) })
70
76
  })
71
77
 
@@ -1 +1 @@
1
- const b="data-astro-transition-persist";function J(e){for(const t of document.scripts)for(const n of e.scripts)if(!n.hasAttribute("data-astro-rerun")&&(!t.src&&t.textContent===n.textContent||t.src&&t.type===n.type&&t.src===n.src)){n.dataset.astroExec="";break}}function Q(e){const t=document.documentElement,n=[...t.attributes].filter(({name:o})=>(t.removeAttribute(o),o.startsWith("data-astro-")));[...e.documentElement.attributes,...n].forEach(({name:o,value:r})=>t.setAttribute(o,r))}function Z(e){for(const t of Array.from(document.head.children)){const n=ne(t,e);n?n.remove():t.remove()}document.head.append(...e.head.children)}function ee(e,t){t.replaceWith(e);for(const n of t.querySelectorAll(`[${b}]`)){const o=n.getAttribute(b),r=e.querySelector(`[${b}="${o}"]`);r&&(r.replaceWith(n),r.localName==="astro-island"&&oe(n)&&!re(n,r)&&(n.setAttribute("ssr",""),n.setAttribute("props",r.getAttribute("props"))))}}const te=()=>{const e=document.activeElement;if(e?.closest(`[${b}]`)){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement){const t=e.selectionStart,n=e.selectionEnd;return()=>R({activeElement:e,start:t,end:n})}return()=>R({activeElement:e})}else return()=>R({activeElement:null})},R=({activeElement:e,start:t,end:n})=>{e&&(e.focus(),(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&(typeof t=="number"&&(e.selectionStart=t),typeof n=="number"&&(e.selectionEnd=n)))},ne=(e,t)=>{const n=e.getAttribute(b),o=n&&t.head.querySelector(`[${b}="${n}"]`);if(o)return o;if(e.matches("link[rel=stylesheet]")){const r=e.getAttribute("href");return t.head.querySelector(`link[rel=stylesheet][href="${r}"]`)}return null},oe=e=>{const t=e.dataset.astroTransitionPersistProps;return t==null||t==="false"},re=(e,t)=>e.getAttribute("props")===t.getAttribute("props"),ie=e=>{J(e),Q(e),Z(e);const t=te();ee(e.body,document.body),t()},se="astro:before-preparation",ae="astro:after-preparation",ce="astro:before-swap",le="astro:after-swap",ue=e=>document.dispatchEvent(new Event(e));class $ extends Event{from;to;direction;navigationType;sourceElement;info;newDocument;signal;constructor(t,n,o,r,s,u,a,l,f,c){super(t,n),this.from=o,this.to=r,this.direction=s,this.navigationType=u,this.sourceElement=a,this.info=l,this.newDocument=f,this.signal=c,Object.defineProperties(this,{from:{enumerable:!0},to:{enumerable:!0,writable:!0},direction:{enumerable:!0,writable:!0},navigationType:{enumerable:!0},sourceElement:{enumerable:!0},info:{enumerable:!0},newDocument:{enumerable:!0,writable:!0},signal:{enumerable:!0}})}}class fe extends ${formData;loader;constructor(t,n,o,r,s,u,a,l,f,c){super(se,{cancelable:!0},t,n,o,r,s,u,a,l),this.formData=f,this.loader=c.bind(this,this),Object.defineProperties(this,{formData:{enumerable:!0},loader:{enumerable:!0,writable:!0}})}}class de extends ${direction;viewTransition;swap;constructor(t,n){super(ce,void 0,t.from,t.to,t.direction,t.navigationType,t.sourceElement,t.info,t.newDocument,t.signal),this.direction=t.direction,this.viewTransition=n,this.swap=()=>ie(this.newDocument),Object.defineProperties(this,{direction:{enumerable:!0},viewTransition:{enumerable:!0},swap:{enumerable:!0,writable:!0}})}}async function me(e,t,n,o,r,s,u,a,l){const f=new fe(e,t,n,o,r,s,window.document,u,a,l);return document.dispatchEvent(f)&&(await f.loader(),f.defaultPrevented||(ue(ae),f.navigationType!=="traverse"&&D({scrollX,scrollY}))),f}function he(e,t){const n=new de(e,t);return document.dispatchEvent(n),n.swap(),n}const pe=history.pushState.bind(history),T=history.replaceState.bind(history),D=e=>{history.state&&(history.scrollRestoration="manual",T({...history.state,...e},""))},x=!!document.startViewTransition,I=()=>!!document.querySelector('[name="astro-view-transitions-enabled"]'),q=(e,t)=>e.pathname===t.pathname&&e.search===t.search;let d,w,A;const B=e=>document.dispatchEvent(new Event(e)),U=()=>B("astro:page-load"),we=()=>{let e=document.createElement("div");e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),e.className="astro-route-announcer",document.body.append(e),setTimeout(()=>{let t=document.title||document.querySelector("h1")?.textContent||location.pathname;e.textContent=t},60)},H="data-astro-transition-persist",M="data-astro-transition",P="data-astro-transition-fallback";let O,y=0;history.state?(y=history.state.index,scrollTo({left:history.state.scrollX,top:history.state.scrollY})):I()&&(T({index:y,scrollX,scrollY},""),history.scrollRestoration="manual");async function ge(e,t){try{const n=await fetch(e,t),r=(n.headers.get("content-type")??"").split(";",1)[0].trim();return r!=="text/html"&&r!=="application/xhtml+xml"?null:{html:await n.text(),redirected:n.redirected?n.url:void 0,mediaType:r}}catch{return null}}function V(){const e=document.querySelector('[name="astro-view-transitions-fallback"]');return e?e.getAttribute("content"):"animate"}function be(){let e=Promise.resolve();for(const t of document.getElementsByTagName("script")){if(t.dataset.astroExec==="")continue;const n=t.getAttribute("type");if(n&&n!=="module"&&n!=="text/javascript")continue;const o=document.createElement("script");o.innerHTML=t.innerHTML;for(const r of t.attributes){if(r.name==="src"){const s=new Promise(u=>{o.onload=o.onerror=u});e=e.then(()=>s)}o.setAttribute(r.name,r.value)}o.dataset.astroExec="",t.replaceWith(o)}return e}const W=(e,t,n,o,r)=>{const s=q(t,e),u=document.title;document.title=o;let a=!1;if(e.href!==location.href&&!r)if(n.history==="replace"){const l=history.state;T({...n.state,index:l.index,scrollX:l.scrollX,scrollY:l.scrollY},"",e.href)}else pe({...n.state,index:++y,scrollX:0,scrollY:0},"",e.href);if(document.title=u,A=e,s||(scrollTo({left:0,top:0,behavior:"instant"}),a=!0),r)scrollTo(r.scrollX,r.scrollY);else{if(e.hash){history.scrollRestoration="auto";const l=history.state;location.href=e.href,history.state||(T(l,""),s&&window.dispatchEvent(new PopStateEvent("popstate")))}else a||scrollTo({left:0,top:0,behavior:"instant"});history.scrollRestoration="manual"}};function ye(e){const t=[];for(const n of e.querySelectorAll("head link[rel=stylesheet]"))if(!document.querySelector(`[${H}="${n.getAttribute(H)}"], link[rel=stylesheet][href="${n.getAttribute("href")}"]`)){const o=document.createElement("link");o.setAttribute("rel","preload"),o.setAttribute("as","style"),o.setAttribute("href",n.getAttribute("href")),t.push(new Promise(r=>{["load","error"].forEach(s=>o.addEventListener(s,r)),document.head.append(o)}))}return t}async function F(e,t,n,o,r){async function s(l){function f(h){const m=h.effect;return!m||!(m instanceof KeyframeEffect)||!m.target?!1:window.getComputedStyle(m.target,m.pseudoElement).animationIterationCount==="infinite"}const c=document.getAnimations();document.documentElement.setAttribute(P,l);const p=document.getAnimations().filter(h=>!c.includes(h)&&!f(h));return Promise.allSettled(p.map(h=>h.finished))}if(r==="animate"&&!n.transitionSkipped&&!e.signal.aborted)try{await s("old")}catch{}const u=document.title,a=he(e,n.viewTransition);W(a.to,a.from,t,u,o),B(le),r==="animate"&&(!n.transitionSkipped&&!a.signal.aborted?s("new").finally(()=>n.viewTransitionFinished()):n.viewTransitionFinished())}function ve(){return d?.controller.abort(),d={controller:new AbortController}}async function j(e,t,n,o,r){const s=ve();if(!I()||location.origin!==n.origin){s===d&&(d=void 0),location.href=n.href;return}const u=r?"traverse":o.history==="replace"?"replace":"push";if(u!=="traverse"&&D({scrollX,scrollY}),q(t,n)&&(e!=="back"&&n.hash||e==="back"&&t.hash)){W(n,t,o,document.title,r),s===d&&(d=void 0);return}const a=await me(t,n,e,u,o.sourceElement,o.info,s.controller.signal,o.formData,l);if(a.defaultPrevented||a.signal.aborted){s===d&&(d=void 0),a.signal.aborted||(location.href=n.href);return}async function l(i){const p=i.to.href,h={signal:i.signal};if(i.formData){h.method="POST";const g=i.sourceElement instanceof HTMLFormElement?i.sourceElement:i.sourceElement instanceof HTMLElement&&"form"in i.sourceElement?i.sourceElement.form:i.sourceElement?.closest("form");h.body=g?.attributes.getNamedItem("enctype")?.value==="application/x-www-form-urlencoded"?new URLSearchParams(i.formData):i.formData}const m=await ge(p,h);if(m===null){i.preventDefault();return}if(m.redirected){const g=new URL(m.redirected);if(g.origin!==i.to.origin){i.preventDefault();return}i.to=g}if(O??=new DOMParser,i.newDocument=O.parseFromString(m.html,m.mediaType),i.newDocument.querySelectorAll("noscript").forEach(g=>g.remove()),!i.newDocument.querySelector('[name="astro-view-transitions-enabled"]')&&!i.formData){i.preventDefault();return}const L=ye(i.newDocument);L.length&&!i.signal.aborted&&await Promise.all(L)}async function f(){if(w&&w.viewTransition){try{w.viewTransition.skipTransition()}catch{}try{await w.viewTransition.updateCallbackDone}catch{}}return w={transitionSkipped:!1}}const c=await f();if(a.signal.aborted){s===d&&(d=void 0);return}if(document.documentElement.setAttribute(M,a.direction),x)c.viewTransition=document.startViewTransition(async()=>await F(a,o,c,r));else{const i=(async()=>{await Promise.resolve(),await F(a,o,c,r,V())})();c.viewTransition={updateCallbackDone:i,ready:i,finished:new Promise(p=>c.viewTransitionFinished=p),skipTransition:()=>{c.transitionSkipped=!0,document.documentElement.removeAttribute(P)}}}c.viewTransition?.updateCallbackDone.finally(async()=>{await be(),U(),we()}),c.viewTransition?.finished.finally(()=>{c.viewTransition=void 0,c===w&&(w=void 0),s===d&&(d=void 0),document.documentElement.removeAttribute(M),document.documentElement.removeAttribute(P)});try{await c.viewTransition?.updateCallbackDone}catch(i){const p=i;console.log("[astro]",p.name,p.message,p.stack)}}async function C(e,t){await j("forward",A,new URL(e,location.href),t??{})}function Te(e){if(!I()&&e.state){location.reload();return}if(e.state===null)return;const t=history.state,n=t.index,o=n>y?"forward":"back";y=n,j(o,A,new URL(location.href),{},t)}const X=()=>{history.state&&(scrollX!==history.state.scrollX||scrollY!==history.state.scrollY)&&D({scrollX,scrollY})};{if(x||V()!=="none")if(A=new URL(location.href),addEventListener("popstate",Te),addEventListener("load",U),"onscrollend"in window)addEventListener("scrollend",X);else{let e,t,n,o;const r=()=>{if(o!==history.state?.index){clearInterval(e),e=void 0;return}if(t===scrollY&&n===scrollX){clearInterval(e),e=void 0,X();return}else t=scrollY,n=scrollX};addEventListener("scroll",()=>{e===void 0&&(o=history.state?.index,t=scrollY,n=scrollX,e=window.setInterval(r,50))},{passive:!0})}for(const e of document.getElementsByTagName("script"))e.dataset.astroExec=""}const K=new Set,E=new WeakSet;let k,G,Y=!1;function Ee(e){Y||(Y=!0,k??=e?.prefetchAll,G??=e?.defaultStrategy??"hover",Ae(),Se(),Le(),Pe())}function Ae(){for(const e of["touchstart","mousedown"])document.body.addEventListener(e,t=>{v(t.target,"tap")&&S(t.target.href,{ignoreSlowConnection:!0})},{passive:!0})}function Se(){let e;document.body.addEventListener("focusin",o=>{v(o.target,"hover")&&t(o)},{passive:!0}),document.body.addEventListener("focusout",n,{passive:!0}),N(()=>{for(const o of document.getElementsByTagName("a"))E.has(o)||v(o,"hover")&&(E.add(o),o.addEventListener("mouseenter",t,{passive:!0}),o.addEventListener("mouseleave",n,{passive:!0}))});function t(o){const r=o.target.href;e&&clearTimeout(e),e=setTimeout(()=>{S(r)},80)}function n(){e&&(clearTimeout(e),e=0)}}function Le(){let e;N(()=>{for(const t of document.getElementsByTagName("a"))E.has(t)||v(t,"viewport")&&(E.add(t),e??=Re(),e.observe(t))})}function Re(){const e=new WeakMap;return new IntersectionObserver((t,n)=>{for(const o of t){const r=o.target,s=e.get(r);o.isIntersecting?(s&&clearTimeout(s),e.set(r,setTimeout(()=>{n.unobserve(r),e.delete(r),S(r.href)},300))):s&&(clearTimeout(s),e.delete(r))}})}function Pe(){N(()=>{for(const e of document.getElementsByTagName("a"))v(e,"load")&&S(e.href)})}function S(e,t){e=e.replace(/#.*/,"");const n=t?.ignoreSlowConnection??!1;if(ke(e,n))if(K.add(e),document.createElement("link").relList?.supports?.("prefetch")&&t?.with!=="fetch"){const o=document.createElement("link");o.rel="prefetch",o.setAttribute("href",e),document.head.append(o)}else fetch(e,{priority:"low"})}function ke(e,t){if(!navigator.onLine||!t&&z())return!1;try{const n=new URL(e,location.href);return location.origin===n.origin&&(location.pathname!==n.pathname||location.search!==n.search)&&!K.has(e)}catch{}return!1}function v(e,t){if(e?.tagName!=="A")return!1;const n=e.dataset.astroPrefetch;return n==="false"?!1:t==="tap"&&(n!=null||k)&&z()?!0:n==null&&k||n===""?t===G:n===t}function z(){if("connection"in navigator){const e=navigator.connection;return e.saveData||/2g/.test(e.effectiveType)}return!1}function N(e){e();let t=!1;document.addEventListener("astro:page-load",()=>{if(!t){t=!0;return}e()})}function De(){const e=document.querySelector('[name="astro-view-transitions-fallback"]');return e?e.getAttribute("content"):"animate"}function _(e){return e.dataset.astroReload!==void 0}(x||De()!=="none")&&(document.addEventListener("click",e=>{let t=e.target;if(e.composed&&(t=e.composedPath()[0]),t instanceof Element&&(t=t.closest("a, area")),!(t instanceof HTMLAnchorElement)&&!(t instanceof SVGAElement)&&!(t instanceof HTMLAreaElement))return;const n=t instanceof HTMLElement?t.target:t.target.baseVal,o=t instanceof HTMLElement?t.href:t.href.baseVal,r=new URL(o,location.href).origin;_(t)||t.hasAttribute("download")||!t.href||n&&n!=="_self"||r!==location.origin||e.button!==0||e.metaKey||e.ctrlKey||e.altKey||e.shiftKey||e.defaultPrevented||(e.preventDefault(),C(o,{history:t.dataset.astroHistory==="replace"?"replace":"auto",sourceElement:t}))}),document.addEventListener("submit",e=>{let t=e.target;if(t.tagName!=="FORM"||e.defaultPrevented||_(t))return;const n=t,o=e.submitter,r=new FormData(n,o),s=typeof n.action=="string"?n.action:n.getAttribute("action"),u=typeof n.method=="string"?n.method:n.getAttribute("method");let a=o?.getAttribute("formaction")??s??location.pathname;const l=o?.getAttribute("formmethod")??u??"get";if(l==="dialog"||location.origin!==new URL(a,location.href).origin)return;const f={sourceElement:o??n};if(l==="get"){const c=new URLSearchParams(r),i=new URL(a);i.search=c.toString(),a=i.toString()}else f.formData=r;e.preventDefault(),C(a,f)}),Ee({prefetchAll:!0}));
1
+ const b="data-astro-transition-persist";function J(e){for(const t of document.scripts)for(const n of e.scripts)if(!n.hasAttribute("data-astro-rerun")&&(!t.src&&t.textContent===n.textContent||t.src&&t.type===n.type&&t.src===n.src)){n.dataset.astroExec="";break}}function Q(e){const t=document.documentElement,n=[...t.attributes].filter(({name:o})=>(t.removeAttribute(o),o.startsWith("data-astro-")));[...e.documentElement.attributes,...n].forEach(({name:o,value:r})=>t.setAttribute(o,r))}function Z(e){for(const t of Array.from(document.head.children)){const n=ne(t,e);n?n.remove():t.remove()}document.head.append(...e.head.children)}function ee(e,t){t.replaceWith(e);for(const n of t.querySelectorAll(`[${b}]`)){const o=n.getAttribute(b),r=e.querySelector(`[${b}="${o}"]`);r&&(r.replaceWith(n),r.localName==="astro-island"&&oe(n)&&!re(n,r)&&(n.setAttribute("ssr",""),n.setAttribute("props",r.getAttribute("props"))))}}const te=()=>{const e=document.activeElement;if(e?.closest(`[${b}]`)){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement){const t=e.selectionStart,n=e.selectionEnd;return()=>R({activeElement:e,start:t,end:n})}return()=>R({activeElement:e})}else return()=>R({activeElement:null})},R=({activeElement:e,start:t,end:n})=>{e&&(e.focus(),(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&(typeof t=="number"&&(e.selectionStart=t),typeof n=="number"&&(e.selectionEnd=n)))},ne=(e,t)=>{const n=e.getAttribute(b),o=n&&t.head.querySelector(`[${b}="${n}"]`);if(o)return o;if(e.matches("link[rel=stylesheet]")){const r=e.getAttribute("href");return t.head.querySelector(`link[rel=stylesheet][href="${r}"]`)}return null},oe=e=>{const t=e.dataset.astroTransitionPersistProps;return t==null||t==="false"},re=(e,t)=>e.getAttribute("props")===t.getAttribute("props"),ie=e=>{J(e),Q(e),Z(e);const t=te();ee(e.body,document.body),t()},se="astro:before-preparation",ae="astro:after-preparation",ce="astro:before-swap",le="astro:after-swap",ue=e=>document.dispatchEvent(new Event(e));class $ extends Event{from;to;direction;navigationType;sourceElement;info;newDocument;signal;constructor(t,n,o,r,s,u,a,l,f,c){super(t,n),this.from=o,this.to=r,this.direction=s,this.navigationType=u,this.sourceElement=a,this.info=l,this.newDocument=f,this.signal=c,Object.defineProperties(this,{from:{enumerable:!0},to:{enumerable:!0,writable:!0},direction:{enumerable:!0,writable:!0},navigationType:{enumerable:!0},sourceElement:{enumerable:!0},info:{enumerable:!0},newDocument:{enumerable:!0,writable:!0},signal:{enumerable:!0}})}}class fe extends ${formData;loader;constructor(t,n,o,r,s,u,a,l,f,c){super(se,{cancelable:!0},t,n,o,r,s,u,a,l),this.formData=f,this.loader=c.bind(this,this),Object.defineProperties(this,{formData:{enumerable:!0},loader:{enumerable:!0,writable:!0}})}}class de extends ${direction;viewTransition;swap;constructor(t,n){super(ce,void 0,t.from,t.to,t.direction,t.navigationType,t.sourceElement,t.info,t.newDocument,t.signal),this.direction=t.direction,this.viewTransition=n,this.swap=()=>ie(this.newDocument),Object.defineProperties(this,{direction:{enumerable:!0},viewTransition:{enumerable:!0},swap:{enumerable:!0,writable:!0}})}}async function me(e,t,n,o,r,s,u,a,l){const f=new fe(e,t,n,o,r,s,window.document,u,a,l);return document.dispatchEvent(f)&&(await f.loader(),f.defaultPrevented||(ue(ae),f.navigationType!=="traverse"&&D({scrollX,scrollY}))),f}function he(e,t){const n=new de(e,t);return document.dispatchEvent(n),n.swap(),n}const pe=history.pushState.bind(history),T=history.replaceState.bind(history),D=e=>{history.state&&(history.scrollRestoration="manual",T({...history.state,...e},""))},x=!!document.startViewTransition,I=()=>!!document.querySelector('[name="astro-view-transitions-enabled"]'),q=(e,t)=>e.pathname===t.pathname&&e.search===t.search;let d,g,A;const B=e=>document.dispatchEvent(new Event(e)),U=()=>B("astro:page-load"),ge=()=>{let e=document.createElement("div");e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),e.className="astro-route-announcer",document.body.append(e),setTimeout(()=>{let t=document.title||document.querySelector("h1")?.textContent||location.pathname;e.textContent=t},60)},H="data-astro-transition-persist",M="data-astro-transition",P="data-astro-transition-fallback";let O,y=0;history.state?(y=history.state.index,scrollTo({left:history.state.scrollX,top:history.state.scrollY})):I()&&(T({index:y,scrollX,scrollY},""),history.scrollRestoration="manual");async function we(e,t){try{const n=await fetch(e,t),r=(n.headers.get("content-type")??"").split(";",1)[0].trim();return r!=="text/html"&&r!=="application/xhtml+xml"?null:{html:await n.text(),redirected:n.redirected?n.url:void 0,mediaType:r}}catch{return null}}function V(){const e=document.querySelector('[name="astro-view-transitions-fallback"]');return e?e.getAttribute("content"):"animate"}function be(){let e=Promise.resolve();for(const t of document.getElementsByTagName("script")){if(t.dataset.astroExec==="")continue;const n=t.getAttribute("type");if(n&&n!=="module"&&n!=="text/javascript")continue;const o=document.createElement("script");o.innerHTML=t.innerHTML;for(const r of t.attributes){if(r.name==="src"){const s=new Promise(u=>{o.onload=o.onerror=u});e=e.then(()=>s)}o.setAttribute(r.name,r.value)}o.dataset.astroExec="",t.replaceWith(o)}return e}const W=(e,t,n,o,r)=>{const s=q(t,e),u=document.title;document.title=o;let a=!1;if(e.href!==location.href&&!r)if(n.history==="replace"){const l=history.state;T({...n.state,index:l.index,scrollX:l.scrollX,scrollY:l.scrollY},"",e.href)}else pe({...n.state,index:++y,scrollX:0,scrollY:0},"",e.href);if(document.title=u,A=e,s||(scrollTo({left:0,top:0,behavior:"instant"}),a=!0),r)scrollTo(r.scrollX,r.scrollY);else{if(e.hash){history.scrollRestoration="auto";const l=history.state;location.href=e.href,history.state||(T(l,""),s&&window.dispatchEvent(new PopStateEvent("popstate")))}else a||scrollTo({left:0,top:0,behavior:"instant"});history.scrollRestoration="manual"}};function ye(e){const t=[];for(const n of e.querySelectorAll("head link[rel=stylesheet]"))if(!document.querySelector(`[${H}="${n.getAttribute(H)}"], link[rel=stylesheet][href="${n.getAttribute("href")}"]`)){const o=document.createElement("link");o.setAttribute("rel","preload"),o.setAttribute("as","style"),o.setAttribute("href",n.getAttribute("href")),t.push(new Promise(r=>{["load","error"].forEach(s=>o.addEventListener(s,r)),document.head.append(o)}))}return t}async function F(e,t,n,o,r){async function s(l){function f(h){const m=h.effect;return!m||!(m instanceof KeyframeEffect)||!m.target?!1:window.getComputedStyle(m.target,m.pseudoElement).animationIterationCount==="infinite"}const c=document.getAnimations();document.documentElement.setAttribute(P,l);const p=document.getAnimations().filter(h=>!c.includes(h)&&!f(h));return Promise.allSettled(p.map(h=>h.finished))}if(r==="animate"&&!n.transitionSkipped&&!e.signal.aborted)try{await s("old")}catch{}const u=document.title,a=he(e,n.viewTransition);W(a.to,a.from,t,u,o),B(le),r==="animate"&&(!n.transitionSkipped&&!a.signal.aborted?s("new").finally(()=>n.viewTransitionFinished()):n.viewTransitionFinished())}function ve(){return d?.controller.abort(),d={controller:new AbortController}}async function j(e,t,n,o,r){const s=ve();if(!I()||location.origin!==n.origin){s===d&&(d=void 0),location.href=n.href;return}const u=r?"traverse":o.history==="replace"?"replace":"push";if(u!=="traverse"&&D({scrollX,scrollY}),q(t,n)&&(e!=="back"&&n.hash||e==="back"&&t.hash)){W(n,t,o,document.title,r),s===d&&(d=void 0);return}const a=await me(t,n,e,u,o.sourceElement,o.info,s.controller.signal,o.formData,l);if(a.defaultPrevented||a.signal.aborted){s===d&&(d=void 0),a.signal.aborted||(location.href=n.href);return}async function l(i){const p=i.to.href,h={signal:i.signal};if(i.formData){h.method="POST";const w=i.sourceElement instanceof HTMLFormElement?i.sourceElement:i.sourceElement instanceof HTMLElement&&"form"in i.sourceElement?i.sourceElement.form:i.sourceElement?.closest("form");h.body=t!==void 0&&Reflect.get(HTMLFormElement.prototype,"attributes",w).getNamedItem("enctype")?.value==="application/x-www-form-urlencoded"?new URLSearchParams(i.formData):i.formData}const m=await we(p,h);if(m===null){i.preventDefault();return}if(m.redirected){const w=new URL(m.redirected);if(w.origin!==i.to.origin){i.preventDefault();return}i.to=w}if(O??=new DOMParser,i.newDocument=O.parseFromString(m.html,m.mediaType),i.newDocument.querySelectorAll("noscript").forEach(w=>w.remove()),!i.newDocument.querySelector('[name="astro-view-transitions-enabled"]')&&!i.formData){i.preventDefault();return}const L=ye(i.newDocument);L.length&&!i.signal.aborted&&await Promise.all(L)}async function f(){if(g&&g.viewTransition){try{g.viewTransition.skipTransition()}catch{}try{await g.viewTransition.updateCallbackDone}catch{}}return g={transitionSkipped:!1}}const c=await f();if(a.signal.aborted){s===d&&(d=void 0);return}if(document.documentElement.setAttribute(M,a.direction),x)c.viewTransition=document.startViewTransition(async()=>await F(a,o,c,r));else{const i=(async()=>{await Promise.resolve(),await F(a,o,c,r,V())})();c.viewTransition={updateCallbackDone:i,ready:i,finished:new Promise(p=>c.viewTransitionFinished=p),skipTransition:()=>{c.transitionSkipped=!0,document.documentElement.removeAttribute(P)}}}c.viewTransition?.updateCallbackDone.finally(async()=>{await be(),U(),ge()}),c.viewTransition?.finished.finally(()=>{c.viewTransition=void 0,c===g&&(g=void 0),s===d&&(d=void 0),document.documentElement.removeAttribute(M),document.documentElement.removeAttribute(P)});try{await c.viewTransition?.updateCallbackDone}catch(i){const p=i;console.log("[astro]",p.name,p.message,p.stack)}}async function C(e,t){await j("forward",A,new URL(e,location.href),t??{})}function Te(e){if(!I()&&e.state){location.reload();return}if(e.state===null)return;const t=history.state,n=t.index,o=n>y?"forward":"back";y=n,j(o,A,new URL(location.href),{},t)}const X=()=>{history.state&&(scrollX!==history.state.scrollX||scrollY!==history.state.scrollY)&&D({scrollX,scrollY})};{if(x||V()!=="none")if(A=new URL(location.href),addEventListener("popstate",Te),addEventListener("load",U),"onscrollend"in window)addEventListener("scrollend",X);else{let e,t,n,o;const r=()=>{if(o!==history.state?.index){clearInterval(e),e=void 0;return}if(t===scrollY&&n===scrollX){clearInterval(e),e=void 0,X();return}else t=scrollY,n=scrollX};addEventListener("scroll",()=>{e===void 0&&(o=history.state?.index,t=scrollY,n=scrollX,e=window.setInterval(r,50))},{passive:!0})}for(const e of document.getElementsByTagName("script"))e.dataset.astroExec=""}const K=new Set,E=new WeakSet;let k,G,Y=!1;function Ee(e){Y||(Y=!0,k??=e?.prefetchAll,G??=e?.defaultStrategy??"hover",Ae(),Se(),Le(),Pe())}function Ae(){for(const e of["touchstart","mousedown"])document.body.addEventListener(e,t=>{v(t.target,"tap")&&S(t.target.href,{ignoreSlowConnection:!0})},{passive:!0})}function Se(){let e;document.body.addEventListener("focusin",o=>{v(o.target,"hover")&&t(o)},{passive:!0}),document.body.addEventListener("focusout",n,{passive:!0}),N(()=>{for(const o of document.getElementsByTagName("a"))E.has(o)||v(o,"hover")&&(E.add(o),o.addEventListener("mouseenter",t,{passive:!0}),o.addEventListener("mouseleave",n,{passive:!0}))});function t(o){const r=o.target.href;e&&clearTimeout(e),e=setTimeout(()=>{S(r)},80)}function n(){e&&(clearTimeout(e),e=0)}}function Le(){let e;N(()=>{for(const t of document.getElementsByTagName("a"))E.has(t)||v(t,"viewport")&&(E.add(t),e??=Re(),e.observe(t))})}function Re(){const e=new WeakMap;return new IntersectionObserver((t,n)=>{for(const o of t){const r=o.target,s=e.get(r);o.isIntersecting?(s&&clearTimeout(s),e.set(r,setTimeout(()=>{n.unobserve(r),e.delete(r),S(r.href)},300))):s&&(clearTimeout(s),e.delete(r))}})}function Pe(){N(()=>{for(const e of document.getElementsByTagName("a"))v(e,"load")&&S(e.href)})}function S(e,t){e=e.replace(/#.*/,"");const n=t?.ignoreSlowConnection??!1;if(ke(e,n))if(K.add(e),document.createElement("link").relList?.supports?.("prefetch")&&t?.with!=="fetch"){const o=document.createElement("link");o.rel="prefetch",o.setAttribute("href",e),document.head.append(o)}else fetch(e,{priority:"low"})}function ke(e,t){if(!navigator.onLine||!t&&z())return!1;try{const n=new URL(e,location.href);return location.origin===n.origin&&(location.pathname!==n.pathname||location.search!==n.search)&&!K.has(e)}catch{}return!1}function v(e,t){if(e?.tagName!=="A")return!1;const n=e.dataset.astroPrefetch;return n==="false"?!1:t==="tap"&&(n!=null||k)&&z()?!0:n==null&&k||n===""?t===G:n===t}function z(){if("connection"in navigator){const e=navigator.connection;return e.saveData||/2g/.test(e.effectiveType)}return!1}function N(e){e();let t=!1;document.addEventListener("astro:page-load",()=>{if(!t){t=!0;return}e()})}function De(){const e=document.querySelector('[name="astro-view-transitions-fallback"]');return e?e.getAttribute("content"):"animate"}function _(e){return e.dataset.astroReload!==void 0}(x||De()!=="none")&&(document.addEventListener("click",e=>{let t=e.target;if(e.composed&&(t=e.composedPath()[0]),t instanceof Element&&(t=t.closest("a, area")),!(t instanceof HTMLAnchorElement)&&!(t instanceof SVGAElement)&&!(t instanceof HTMLAreaElement))return;const n=t instanceof HTMLElement?t.target:t.target.baseVal,o=t instanceof HTMLElement?t.href:t.href.baseVal,r=new URL(o,location.href).origin;_(t)||t.hasAttribute("download")||!t.href||n&&n!=="_self"||r!==location.origin||e.button!==0||e.metaKey||e.ctrlKey||e.altKey||e.shiftKey||e.defaultPrevented||(e.preventDefault(),C(o,{history:t.dataset.astroHistory==="replace"?"replace":"auto",sourceElement:t}))}),document.addEventListener("submit",e=>{let t=e.target;if(t.tagName!=="FORM"||e.defaultPrevented||_(t))return;const n=t,o=e.submitter,r=new FormData(n,o),s=typeof n.action=="string"?n.action:n.getAttribute("action"),u=typeof n.method=="string"?n.method:n.getAttribute("method");let a=o?.getAttribute("formaction")??s??location.pathname;const l=o?.getAttribute("formmethod")??u??"get";if(l==="dialog"||location.origin!==new URL(a,location.href).origin)return;const f={sourceElement:o??n};if(l==="get"){const c=new URLSearchParams(r),i=new URL(a);i.search=c.toString(),a=i.toString()}else f.formData=r;e.preventDefault(),C(a,f)}),Ee({prefetchAll:!0}));
@@ -0,0 +1 @@
1
+ import{f as ee,_ as R,d as f,h as te,P as Se,r as B,v as J,B as Q,u as Ee,g as be,j as x}from"./PageContext.TBi_RMo9.js";import{r as t}from"./index.CTH3fVMn.js";import{u as xe,i as Ie}from"./navStore.B3Aif4yA.js";/* empty css */import{g as ye,A as Le,a as M,d as Ne,P as Ce,m as Ae}from"./divider.akZuULNq.js";const i={modifiers:{expanded:"pf-m-expanded",hover:"pf-m-hover",current:"pf-m-current",flyout:"pf-m-flyout",horizontal:"pf-m-horizontal",subnav:"pf-m-subnav",scrollable:"pf-m-scrollable"},nav:"pf-v6-c-nav",navItem:"pf-v6-c-nav__item",navLink:"pf-v6-c-nav__link",navLinkIcon:"pf-v6-c-nav__link-icon",navList:"pf-v6-c-nav__list",navScrollButton:"pf-v6-c-nav__scroll-button",navSubnav:"pf-v6-c-nav__subnav",navToggle:"pf-v6-c-nav__toggle",navToggleIcon:"pf-v6-c-nav__toggle-icon"},_e={},_=t.createContext(_e);class P extends t.Component{constructor(){super(...arguments),this.state={isScrollable:!1,ouiaStateId:ee(P.displayName,this.props.variant),flyoutRef:null},this.navRef=t.createRef()}onSelect(e,n,s,a,l,c){l&&e.preventDefault(),this.props.onSelect(e,{groupId:n,itemId:s,to:a}),c&&c(e,s,n,a)}onToggle(e,n,s){this.props.onToggle(e,{groupId:n,isExpanded:s})}render(){const e=this.props,{"aria-label":n,children:s,className:a,onSelect:l,onToggle:c,ouiaId:o,ouiaSafe:d,variant:m}=e,y=R(e,["aria-label","children","className","onSelect","onToggle","ouiaId","ouiaSafe","variant"]),E=["horizontal","horizontal-subnav"].includes(m);return t.createElement(_.Provider,{value:{onSelect:(h,L,g,T,C,k)=>this.onSelect(h,L,g,T,C,k),onToggle:(h,L,g)=>this.onToggle(h,L,g),updateIsScrollable:h=>this.setState({isScrollable:h}),isHorizontal:["horizontal","horizontal-subnav"].includes(m),flyoutRef:this.state.flyoutRef,setFlyoutRef:h=>this.setState({flyoutRef:h}),navRef:this.navRef}},t.createElement("nav",Object.assign({className:f(i.nav,E&&i.modifiers.horizontal,m==="horizontal-subnav"&&i.modifiers.subnav,this.state.isScrollable&&i.modifiers.scrollable,a),"aria-label":n||(m==="horizontal-subnav"?"Local":"Global"),ref:this.navRef},te(P.displayName,o!==void 0?o:this.state.ouiaStateId,d),y),s))}}P.displayName="Nav";P.defaultProps={onSelect:()=>{},onToggle:()=>{},ouiaSafe:!0};const I={modifiers:{expanded:"pf-m-expanded",collapsed:"pf-m-collapsed",pageInsets:"pf-m-page-insets",contextSelector:"pf-m-context-selector",fill:"pf-m-fill",noFill:"pf-m-no-fill"},pageSidebar:"pf-v6-c-page__sidebar",pageSidebarBody:"pf-v6-c-page__sidebar-body"},Pe={isSidebarOpen:!0},U=t.createContext(Pe),ne=r=>{var{className:e="",children:n,isSidebarOpen:s=!0,id:a="page-sidebar"}=r,l=R(r,["className","children","isSidebarOpen","id"]);return t.createElement(Se,null,({isManagedSidebar:c,isSidebarOpen:o})=>{const d=c?o:s;return t.createElement("div",Object.assign({id:a,className:f(I.pageSidebar,d&&I.modifiers.expanded,!d&&I.modifiers.collapsed,e),"aria-hidden":!d},l),t.createElement(U.Provider,{value:{isSidebarOpen:d}},n))})};ne.displayName="PageSidebar";class V extends t.Component{constructor(){super(...arguments),this.direction="ltr",this.state={scrollViewAtStart:!1,scrollViewAtEnd:!1},this.navList=t.createRef(),this.observer=()=>{},this.handleScrollButtons=()=>{const e=this.navList.current;if(e){const n=B(e,e.firstChild),s=B(e,e.lastChild);this.setState({scrollViewAtStart:n,scrollViewAtEnd:s}),this.context.updateIsScrollable(!n||!s)}},this.scrollBack=()=>{const e=this.navList.current;if(e){const n=Array.from(e.children);let s,a;for(let l=0;l<n.length&&!s;l++)B(e,n[l])&&(s=n[l],a=n[l-1]);a&&(this.direction==="ltr"?e.scrollLeft-=a.scrollWidth:e.scrollLeft+=a.scrollWidth),this.handleScrollButtons()}},this.scrollForward=()=>{const e=this.navList.current;if(e){const n=Array.from(e.children);let s,a;for(let l=n.length-1;l>=0&&!s;l--)B(e,n[l])&&(s=n[l],a=n[l+1]);a&&(this.direction==="ltr"?e.scrollLeft+=a.scrollWidth:e.scrollLeft-=a.scrollWidth),this.handleScrollButtons()}}}componentDidMount(){this.observer=ye(this.navList.current,this.handleScrollButtons),this.direction=J(this.navList.current),this.handleScrollButtons()}componentWillUnmount(){this.observer()}componentDidUpdate(){this.direction=J(this.navList.current)}render(){const e=this.props,{children:n,className:s,backScrollAriaLabel:a,forwardScrollAriaLabel:l}=e,c=R(e,["children","className","backScrollAriaLabel","forwardScrollAriaLabel"]),{scrollViewAtStart:o,scrollViewAtEnd:d}=this.state;return t.createElement(_.Consumer,null,({isHorizontal:m})=>t.createElement(U.Consumer,null,({isSidebarOpen:y})=>t.createElement(t.Fragment,null,m&&(!o||!d)&&t.createElement("div",{className:f(i.navScrollButton)},t.createElement(Q,{variant:"plain","aria-label":a,onClick:this.scrollBack,isDisabled:o,tabIndex:y?null:-1,icon:t.createElement(Le,null)})),t.createElement("ul",Object.assign({ref:this.navList,className:f(i.navList,s),onScroll:this.handleScrollButtons,role:"list"},c),n),m&&(!o||!d)&&t.createElement("div",{className:f(i.navScrollButton)},t.createElement(Q,{variant:"plain","aria-label":l,onClick:this.scrollForward,isDisabled:d,tabIndex:y?null:-1,icon:t.createElement(M,null)})))))}}V.displayName="NavList";V.contextType=_;V.defaultProps={backScrollAriaLabel:"Scroll back",forwardScrollAriaLabel:"Scroll foward"};const W=r=>{var{children:e,styleChildren:n=!0,className:s,to:a,isActive:l=!1,groupId:c=null,itemId:o=null,preventDefault:d=!1,onClick:m,component:y="a",flyout:E,onShowFlyout:h,ouiaId:L,ouiaSafe:g,zIndex:T=9999,icon:C}=r,k=R(r,["children","styleChildren","className","to","isActive","groupId","itemId","preventDefault","onClick","component","flyout","onShowFlyout","ouiaId","ouiaSafe","zIndex","icon"]);const{flyoutRef:O,setFlyoutRef:j,navRef:z}=t.useContext(_),{isSidebarOpen:le}=t.useContext(U),[$,re]=t.useState(null),[oe,H]=t.useState(!1),N=t.useRef(),S=N===O,A=t.useRef(),v=E!==void 0,ie=v?"button":y;a&&v&&console.error('NavItem cannot have both "to" and "flyout" props.');const D=(u,p)=>{(!S||p)&&u?j(N):(S||p)&&!u&&j(null),h&&u&&h()},ce=u=>{const p=u.target.closest(`.${i.navItem}.pf-m-flyout`);v&&!S?D(!0):O!==null&&!p&&j(null)},X=u=>{u.target.closest(".pf-m-flyout")||(v?D(!1,!0):O!==null&&j(null))},de=u=>{var p,b;const F=u.key,K=u.target;(F===" "||F==="Enter"||F==="ArrowRight")&&v&&(!((p=N?.current)===null||p===void 0)&&p.contains(K))&&(u.stopPropagation(),u.preventDefault(),S||(D(!0),re(K))),(F==="Escape"||F==="ArrowLeft")&&((b=A?.current)===null||b===void 0?void 0:b.querySelectorAll(`.${Ae.menu}`).length)===1&&S&&(u.stopPropagation(),u.preventDefault(),D(!1))};t.useEffect(()=>(v&&window.addEventListener("click",X),()=>{v&&window.removeEventListener("click",X)}),[]),t.useEffect(()=>{$&&(S?Array.from(A.current.getElementsByTagName("UL")[0].children).filter(p=>!(p.classList.contains("pf-m-disabled")||p.classList.contains(Ne.divider)))[0].firstChild.focus():$.focus())},[S,$]);const q=t.createElement("span",{className:f(i.navToggle)},t.createElement("span",{className:f(i.navToggleIcon)},t.createElement(M,{"aria-hidden":!0}))),ue={"aria-haspopup":"menu","aria-expanded":S},G=le?null:-1,pe=u=>{const p=d||!a;return t.createElement(ie,Object.assign({href:a,onClick:b=>u.onSelect(b,c,o,a,p,m),className:f(i.navLink,l&&i.modifiers.current,oe&&i.modifiers.hover,s),"aria-current":l?"page":null,tabIndex:G},v&&Object.assign({},ue),k),C&&t.createElement("span",{className:f(i.navLinkIcon)},C),t.createElement("span",{className:f(`${i.nav}__link-text`)},e),E&&q)},fe=(u,p)=>t.cloneElement(p,Object.assign(Object.assign({onClick:b=>u.onSelect(b,c,o,a,d,m),"aria-current":l?"page":null},n&&{className:f(i.navLink,l&&i.modifiers.current,p.props&&p.props.className)}),{tabIndex:p.props.tabIndex||G,children:v?t.createElement(t.Fragment,null,p.props.children,q):p.props.children})),me=Ee(W.displayName,L,g),he=()=>{H(!0)},ve=()=>{H(!1)},ge=t.createElement(Ce,{triggerRef:N,popper:t.createElement("div",{ref:A,onMouseEnter:he,onMouseLeave:ve},E),popperRef:A,placement:"right-start",isVisible:S,onDocumentKeyDown:de,zIndex:T,appendTo:z?.current});return t.createElement(t.Fragment,null,t.createElement("li",Object.assign({onMouseOver:ce,className:f(i.navItem,v&&i.modifiers.flyout,s),ref:N},me),t.createElement(_.Consumer,null,u=>t.isValidElement(e)?fe(u,e):pe(u))),E&&ge)};W.displayName="NavItem";class w extends t.Component{constructor(){super(...arguments),this.id=this.props.id||be(),this.state={expandedState:this.props.isExpanded,ouiaStateId:ee(w.displayName)},this.onExpand=(e,n)=>{const{expandedState:s}=this.state;if(this.props.onExpand)this.props.onExpand(e,!s);else{this.setState(l=>({expandedState:!l.expandedState}));const{groupId:a}=this.props;n(e,a,!s)}}}componentDidMount(){this.setState({expandedState:this.props.isExpanded})}componentDidUpdate(e){this.props.isExpanded!==e.isExpanded&&this.setState({expandedState:this.props.isExpanded})}render(){const e=this.props,{title:n,srText:s,children:a,className:l,isActive:c,ouiaId:o,groupId:d,id:m,isExpanded:y,buttonProps:E,onExpand:h}=e,L=R(e,["title","srText","children","className","isActive","ouiaId","groupId","id","isExpanded","buttonProps","onExpand"]),{expandedState:g,ouiaStateId:T}=this.state;return t.createElement(_.Consumer,null,C=>t.createElement("li",Object.assign({className:f(i.navItem,g&&i.modifiers.expanded,c&&i.modifiers.current,l)},te(w.displayName,o!==void 0?o:T),L),t.createElement(U.Consumer,null,({isSidebarOpen:k})=>t.createElement("button",Object.assign({className:f(i.navLink),id:s?null:this.id,onClick:O=>this.onExpand(O,C.onToggle),"aria-expanded":g,tabIndex:k?null:-1},E),typeof n!="string"?t.createElement("span",{className:f(`${i.nav}__link-text`)},n):n,t.createElement("span",{className:f(i.navToggle)},t.createElement("span",{className:f(i.navToggleIcon)},t.createElement(M,{"aria-hidden":"true"}))))),t.createElement("section",{className:f(i.navSubnav),"aria-labelledby":this.id,hidden:g?null:!0},s&&t.createElement("h2",{className:"pf-v6-screen-reader",id:this.id},s),t.createElement("ul",{className:f(i.navList),role:"list"},a))))}}w.displayName="NavExpandable";w.defaultProps={srText:"",isExpanded:!1,children:"",className:"",groupId:null,isActive:!1,id:""};const se=r=>{var{children:e,className:n,usePageInsets:s,isFilled:a,isContextSelector:l}=r,c=R(r,["children","className","usePageInsets","isFilled","isContextSelector"]);return t.createElement("div",Object.assign({className:f(I.pageSidebarBody,s&&I.modifiers.pageInsets,a===!1&&I.modifiers.noFill,a===!0&&I.modifiers.fill,l===!0&&I.modifiers.contextSelector,n)},c),e)};se.displayName="PageSidebarBody";const we=/([\p{Ll}\d])(\p{Lu})/gu,Re=/(\p{Lu})([\p{Lu}][\p{Ll}])/gu,Te=/(\d)\p{Ll}|(\p{L})\d/u,ke=/[^\p{L}\d]+/giu,Y="$1\0$2",Z="";function ae(r){let e=r.trim();e=e.replace(we,Y).replace(Re,Y),e=e.replace(ke,"\0");let n=0,s=e.length;for(;e.charAt(n)==="\0";)n++;if(n===s)return[];for(;e.charAt(s-1)==="\0";)s--;return e.slice(n,s).split(/\0/g)}function Oe(r){const e=ae(r);for(let n=0;n<e.length;n++){const s=e[n],a=Te.exec(s);if(a){const l=a.index+(a[1]??a[2]).length;e.splice(n,1,s.slice(0,l),s.slice(l))}}return e}function Fe(r,e){const[n,s,a]=Ue(r,e),l=je(e?.locale),c=De(e?.locale),o=Be(l,c);return n+s.map((d,m)=>m===0?o(d):l(d)).join(" ")+a}function je(r){return e=>e.toLocaleLowerCase(r)}function De(r){return e=>e.toLocaleUpperCase(r)}function Be(r,e){return n=>`${e(n[0])}${r(n.slice(1))}`}function Ue(r,e={}){const n=e.split??(e.separateNumbers?Oe:ae),s=e.prefixCharacters??Z,a=e.suffixCharacters??Z;let l=0,c=r.length;for(;l<r.length;){const o=r.charAt(l);if(!s.includes(o))break;l++}for(;c>l;){const o=c-1,d=r.charAt(o);if(!a.includes(d))break;c=o}return[r.slice(0,l),n(r.slice(l,c)),r.slice(c)]}const Ve=({entry:r,isActive:e})=>{const{id:n}=r,{id:s,section:a}=r.data;return x.jsx(W,{itemId:n,to:`/${a}/${n}`,isActive:e,id:`nav-entry-${n}`,children:s})},ze=({entries:r,sectionId:e,activeItem:n})=>{const s=window.location.pathname.includes(e),a=r.sort((o,d)=>o.data.id.localeCompare(d.data.id)),l=a.some(o=>o.id===n),c=a.map(o=>x.jsx(Ve,{entry:o,isActive:n===o.id},o.id));return x.jsx(w,{title:Fe(e),isActive:l,isExpanded:s,id:`nav-section-${e}`,children:c})},Ge=({navEntries:r})=>{const e=xe(Ie),[n,s]=t.useState("");t.useEffect(()=>{s(window.location.pathname.split("/").reverse()[0])},[]);const a=(o,d)=>{s(d.itemId.toString())},l=new Set(r.map(o=>o.data.section)),c=Array.from(l).map(o=>{const d=r.filter(m=>m.data.section===o);return x.jsx(ze,{entries:d,sectionId:o,activeItem:n},o)});return x.jsx(ne,{isSidebarOpen:e,children:x.jsx(se,{children:x.jsx(P,{onSelect:a,children:x.jsx(V,{children:c})})})})};export{Ge as Navigation};
@@ -0,0 +1,9 @@
1
+ import{a as ge,r as c,b as be}from"./index.CTH3fVMn.js";/* empty css */var S={exports:{}},y={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var J;function he(){if(J)return y;J=1;var e=ge(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,r={key:!0,ref:!0,__self:!0,__source:!0};function s(i,o,f){var d,m={},x=null,p=null;f!==void 0&&(x=""+f),o.key!==void 0&&(x=""+o.key),o.ref!==void 0&&(p=o.ref);for(d in o)a.call(o,d)&&!r.hasOwnProperty(d)&&(m[d]=o[d]);if(i&&i.defaultProps)for(d in o=i.defaultProps,o)m[d]===void 0&&(m[d]=o[d]);return{$$typeof:t,type:i,key:x,ref:p,props:m,_owner:l.current}}return y.Fragment=n,y.jsx=s,y.jsxs=s,y}var H;function xe(){return H||(H=1,S.exports=he()),S.exports}var Xe=xe();function $(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,a=Object.getOwnPropertySymbols(e);l<a.length;l++)t.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(e,a[l])&&(n[a[l]]=e[a[l]]);return n}function h(...e){const t=[],n={}.hasOwnProperty;return e.filter(Boolean).forEach(a=>{const l=typeof a;if(l==="string"||l==="number")t.push(a);else if(Array.isArray(a)&&a.length){const r=h(...a);r&&t.push(r)}else if(l==="object")for(const r in a)n.call(a,r)&&a[r]&&t.push(r)}),t.join(" ")}const ve={value:"36rem"},ye={value:"48rem"},_e={value:"62rem"},Ce={value:"75rem"},Ie={value:"90.625rem"},Ee={value:"0rem"},Oe={value:"40rem"},we={value:"48rem"},ke={value:"60rem"},$e={value:"80rem"};let Pe=0;function E({name:e,xOffset:t=0,yOffset:n=0,width:a,height:l,svgPath:r}){var s;return s=class extends c.Component{constructor(){super(...arguments),this.id=`icon-title-${Pe++}`}render(){const o=this.props,{title:f,className:d}=o,m=$(o,["title","className"]),x=d?`pf-v6-svg ${d}`:"pf-v6-svg",p=!!f,P=[t,n,a,l].join(" ");return c.createElement("svg",Object.assign({className:x,viewBox:P,fill:"currentColor","aria-labelledby":p?this.id:null,"aria-hidden":p?null:!0,role:"img",width:"1em",height:"1em"},m),p&&c.createElement("title",{id:this.id},f),c.createElement("path",{d:r}))}},s.displayName=e,s}const Re={name:"CheckCircleIcon",height:512,width:512,svgPath:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z",yOffset:0,xOffset:0},Be=E(Re),Le={name:"ExclamationCircleIcon",height:512,width:512,svgPath:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z",yOffset:0,xOffset:0},Se=E(Le),Ne={name:"ExclamationTriangleIcon",height:512,width:576,svgPath:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z",yOffset:0,xOffset:0},De=E(Ne),je={name:"InfoCircleIcon",height:512,width:512,svgPath:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z",yOffset:0,xOffset:0},Te=E(je),Ae={name:"BellIcon",height:1024,width:896,svgPath:"M448,0 C465.333333,0 480.333333,6.33333333 493,19 C505.666667,31.6666667 512,46.6666667 512,64 L512,106 L514.23,106.45 C587.89,121.39 648.48,157.24 696,214 C744,271.333333 768,338.666667 768,416 C768,500 780,568.666667 804,622 C818.666667,652.666667 841.333333,684 872,716 C873.773676,718.829136 875.780658,721.505113 878,724 C890,737.333333 896,752.333333 896,769 C896,785.666667 890,800.333333 878,813 C866,825.666667 850.666667,832 832,832 L63.3,832 C44.9533333,831.84 29.8533333,825.506667 18,813 C6,800.333333 0,785.666667 0,769 C0,752.333333 6,737.333333 18,724 L24,716 L25.06,714.9 C55.1933333,683.28 77.5066667,652.313333 92,622 C116,568.666667 128,500 128,416 C128,338.666667 152,271.333333 200,214 C248,156.666667 309.333333,120.666667 384,106 L384,63.31 C384.166667,46.27 390.5,31.5 403,19 C415.666667,6.33333333 430.666667,0 448,0 Z M576,896 L576,897.08 C575.74,932.6 563.073333,962.573333 538,987 C512.666667,1011.66667 482.666667,1024 448,1024 C413.333333,1024 383.333333,1011.66667 358,987 C332.666667,962.333333 320,932 320,896 L576,896 Z",yOffset:0,xOffset:0},Me=E(Ae);var K;(function(e){e.success="success",e.error="error",e.warning="warning",e.default="default"})(K||(K={}));const tt={Escape:"Escape",Enter:"Enter"},_={sm:parseInt(ve.value)*16,md:parseInt(ye.value)*16,lg:parseInt(_e.value)*16,xl:parseInt(Ce.value)*16,"2xl":parseInt(Ie.value)*16},C={sm:parseInt(Ee.value)*16,md:parseInt(Oe.value)*16,lg:parseInt(we.value)*16,xl:parseInt(ke.value)*16,"2xl":parseInt($e.value)*16},nt={success:Be,danger:Se,warning:De,info:Te,custom:Me};var at=be();function rt(e="pf"){const t=new Date().getTime()+Math.random().toString(36).slice(2);return`${e}-${t}`}function st(e,t,n,a=!1){if(!e||!t)return!1;const l=e.getBoundingClientRect(),r=t.getBoundingClientRect(),s=Math.ceil(l.left),i=Math.floor(l.right),o=Math.ceil(r.left),f=Math.floor(r.right),d=o>=s&&f<=i,m=!a&&l.width<r.width&&(o<s&&f>s||f>i&&o<i);return d||m}const it=(e,t,n="",a,l)=>{if(!e)return"";if(a){if(a in e)return t.modifiers[N(`${n}${e[a]}`)];const r=["2xl","xl","lg","md","sm","default"],s=r.indexOf(a);for(let i=s;i<r.length;i++)if(r[i]in e)return t.modifiers[N(`${n}${e[r[i]]}`)];return""}return Object.entries(e||{}).map(([r,s])=>`${n}${s}${r!=="default"?`-on-${r}`:""}`).map(N).map(r=>r.replace(/-?(\dxl)/gi,(s,i)=>`_${i}`)).map(r=>t.modifiers[r]).filter(Boolean).join(" ")},ze=e=>e===null?null:e>=C["2xl"]?"2xl":e>=C.xl?"xl":e>=C.lg?"lg":e>=C.md?"md":e>=C.sm?"sm":"default",Fe=e=>e===null?null:e>=_["2xl"]?"2xl":e>=_.xl?"xl":e>=_.lg?"lg":e>=_.md?"md":e>=_.sm?"sm":"default",Ue=e=>e.toUpperCase().replace("-","").replace("_",""),N=e=>e.replace(/([-_][a-z])/gi,Ue),lt=!!(typeof window<"u"&&window.document&&window.document.createElement),V=(e,t)=>{const n=getComputedStyle(t),a=()=>{let s="";const i={"50%":"ultra-condensed","62.5%":"extra-condensed","75%":"condensed","87.5%":"semi-condensed","100%":"normal","112.5%":"semi-expanded","125%":"expanded","150%":"extra-expanded","200%":"ultra-expanded"};let o;return n.fontStretch in i?o=i[n.fontStretch]:o="normal",s=n.fontStyle+" "+n.fontVariant+" "+n.fontWeight+" "+o+" "+n.fontSize+"/"+n.lineHeight+" "+n.fontFamily,s},r=document.createElement("canvas").getContext("2d");return r.font=n.font||a(),r.measureText(e).width},qe=e=>{const t=getComputedStyle(e);let n=e.clientWidth,a=e.clientHeight;return a-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),n-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),{height:a,width:n}},ot=(e,t)=>{const n=qe(e).width;let a=t;if(V(t,e)>n){for(;V(`...${a}`,e)>n;)a=a.substring(1);e.value?e.value=`...${a}`:e.innerText=`...${a}`}else e.value?e.value=t:e.innerText=t},ct=e=>{e.forEach(t=>{t.current&&clearTimeout(t.current)})},ut=(e,t="ltr")=>{if(!e)return t;const n=getComputedStyle(e).getPropertyValue("direction");return["ltr","rtl"].includes(n)?n:t};let We=0;const G="OUIA-Generated-",D={};function dt(e,t,n=!0){return{"data-ouia-component-type":`PF6/${e}`,"data-ouia-safe":n,"data-ouia-component-id":t}}const Je=(e,t,n=!0,a)=>({"data-ouia-component-type":`PF6/${e}`,"data-ouia-safe":n,"data-ouia-component-id":He(e,t,a)}),He=(e,t,n)=>{const a=c.useMemo(()=>Ke(e,n),[e,n]);return t??a};function Ke(e,t){try{let n;return typeof window<"u"?n=`${window.location.href}-${e}-${t||""}`:n=`${e}-${t||""}`,D[n]||(D[n]=0),`${G}${e}-${t?`${t}-`:""}${++D[n]}`}catch{return`${G}${e}-${t?`${t}-`:""}${++We}`}}const u={button:"pf-v6-c-button",buttonCount:"pf-v6-c-button__count",buttonIcon:"pf-v6-c-button__icon",buttonProgress:"pf-v6-c-button__progress",modifiers:{primary:"pf-m-primary",unread:"pf-m-unread",secondary:"pf-m-secondary",danger:"pf-m-danger",tertiary:"pf-m-tertiary",link:"pf-m-link",inline:"pf-m-inline",displayLg:"pf-m-display-lg",warning:"pf-m-warning",control:"pf-m-control",stateful:"pf-m-stateful",read:"pf-m-read",attention:"pf-m-attention",plain:"pf-m-plain",noPadding:"pf-m-no-padding",block:"pf-m-block",small:"pf-m-small",clicked:"pf-m-clicked",disabled:"pf-m-disabled",ariaDisabled:"pf-m-aria-disabled",progress:"pf-m-progress",inProgress:"pf-m-in-progress",start:"pf-m-start",end:"pf-m-end"}},w={modifiers:{inline:"pf-m-inline",sm:"pf-m-sm",md:"pf-m-md",lg:"pf-m-lg",xl:"pf-m-xl"},spinner:"pf-v6-c-spinner",spinnerPath:"pf-v6-c-spinner__path"},Ve={name:"--pf-v6-c-spinner--diameter"};var j;(function(e){e.sm="sm",e.md="md",e.lg="lg",e.xl="xl"})(j||(j={}));const Z=e=>{var{className:t="",size:n="xl","aria-valuetext":a="Loading...",diameter:l,isInline:r=!1,"aria-label":s,"aria-labelledBy":i}=e,o=$(e,["className","size","aria-valuetext","diameter","isInline","aria-label","aria-labelledBy"]);return c.createElement("svg",Object.assign({className:h(w.spinner,r?w.modifiers.inline:w.modifiers[n],t),role:"progressbar","aria-valuetext":a,viewBox:"0 0 100 100"},l&&{style:{[Ve.name]:l}},s&&{"aria-label":s},i&&{"aria-labelledBy":i},!s&&!i&&{"aria-label":"Contents"},o),c.createElement("circle",{className:w.spinnerPath,cx:"50",cy:"50",r:"45",fill:"none"}))};Z.displayName="Spinner";const k={badge:"pf-v6-c-badge",modifiers:{read:"pf-m-read",unread:"pf-m-unread",disabled:"pf-m-disabled"}},Y=e=>{var{isRead:t=!1,isDisabled:n=!1,className:a="",children:l="",screenReaderText:r}=e,s=$(e,["isRead","isDisabled","className","children","screenReaderText"]);return c.createElement("span",Object.assign({},s,{className:h(k.badge,t?k.modifiers.read:k.modifiers.unread,n&&k.modifiers.disabled,a)}),l,r&&c.createElement("span",{className:"pf-v6-screen-reader"},r))};Y.displayName="Badge";var g;(function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary",e.danger="danger",e.warning="warning",e.link="link",e.plain="plain",e.control="control",e.stateful="stateful"})(g||(g={}));var T;(function(e){e.button="button",e.submit="submit",e.reset="reset"})(T||(T={}));var I;(function(e){e.default="default",e.sm="sm",e.lg="lg"})(I||(I={}));var A;(function(e){e.read="read",e.unread="unread",e.attention="attention"})(A||(A={}));const Ge=e=>{var{children:t=null,className:n="",component:a="button",isClicked:l=!1,isBlock:r=!1,isDisabled:s=!1,isAriaDisabled:i=!1,isLoading:o=null,isDanger:f=!1,spinnerAriaValueText:d,spinnerAriaLabelledBy:m,spinnerAriaLabel:x,size:p=I.default,inoperableEvents:P=["onClick","onKeyPress"],isInline:R=!1,type:ee=T.button,variant:b=g.primary,state:te=A.unread,hasNoPadding:ne=!1,iconPosition:M="start","aria-label":ae=null,icon:z=null,role:re,ouiaId:se,ouiaSafe:ie=!0,tabIndex:F=null,innerRef:le,countOptions:O}=e,oe=$(e,["children","className","component","isClicked","isBlock","isDisabled","isAriaDisabled","isLoading","isDanger","spinnerAriaValueText","spinnerAriaLabelledBy","spinnerAriaLabel","size","inoperableEvents","isInline","type","variant","state","hasNoPadding","iconPosition","aria-label","icon","role","ouiaId","ouiaSafe","tabIndex","innerRef","countOptions"]);const ce=Je(Q.displayName,se,ie,b),B=a,v=B==="button",L=R&&B==="span",U=M==="end"||M==="right",ue=P.reduce((fe,me)=>Object.assign(Object.assign({},fe),{[me]:pe=>{pe.preventDefault()}}),{}),de=()=>{if(s)return v?null:-1;if(i)return null;if(L)return 0},q=z&&c.createElement("span",{className:h(u.buttonIcon,t&&u.modifiers[U?"end":"start"])},z),W=t&&c.createElement("span",{className:h("pf-v6-c-button__text")},t);return c.createElement(B,Object.assign({},oe,i?ue:null,{"aria-disabled":i||!v&&s,"aria-label":ae,className:h(u.button,u.modifiers[b],r&&u.modifiers.block,s&&!v&&u.modifiers.disabled,i&&u.modifiers.ariaDisabled,l&&u.modifiers.clicked,R&&b===g.link&&u.modifiers.inline,f&&(b===g.secondary||b===g.link)&&u.modifiers.danger,o!==null&&b!==g.plain&&u.modifiers.progress,o&&u.modifiers.inProgress,ne&&b===g.plain&&u.modifiers.noPadding,b===g.stateful&&u.modifiers[te],p===I.sm&&u.modifiers.small,p===I.lg&&u.modifiers.displayLg,n),disabled:v?s:null,tabIndex:F!==null?F:de(),type:v||L?ee:null,role:L?"button":re,ref:le},ce),o&&c.createElement("span",{className:h(u.buttonProgress)},c.createElement(Z,{size:j.md,isInline:R,"aria-valuetext":d,"aria-label":x,"aria-labelledby":m})),U?c.createElement(c.Fragment,null,W,q):c.createElement(c.Fragment,null,q,W),O&&c.createElement("span",{className:h(u.buttonCount,O.className)},c.createElement(Y,{isRead:O.isRead,isDisabled:s},O.count)))},Q=c.forwardRef((e,t)=>c.createElement(Ge,Object.assign({innerRef:t},e)));Q.displayName="Button";const Ze={isManagedSidebar:!1,isSidebarOpen:!1,onSidebarToggle:()=>null,width:null,height:null,getBreakpoint:Fe,getVerticalBreakpoint:ze},X=c.createContext(Ze);X.Provider;const ft=X.Consumer;export{Q as B,Be as C,De as E,tt as K,ft as P,Z as S,K as V,$ as _,g as a,lt as b,E as c,h as d,Se as e,Ke as f,rt as g,dt as h,it as i,Xe as j,Y as k,Ie as l,Ce as m,_e as n,ye as o,X as p,N as q,st as r,nt as s,ot as t,Je as u,ut as v,ct as w,at as x};
@@ -1 +1 @@
1
- import{_ as u,P as b,B as v,a as x,c as S,j as r}from"./PageContext.DIMIWrWv.js";import{u as h,i as c}from"./navStore.br_igkhP.js";import{r as i}from"./index.IDjx8w0N.js";/* empty css */const l=a=>{var{children:n,isSidebarOpen:t=!0,onSidebarToggle:s=()=>{},id:e="nav-toggle"}=a,d=u(a,["children","isSidebarOpen","onSidebarToggle","id"]);return i.createElement(b,null,({isManagedSidebar:o,onSidebarToggle:g,isSidebarOpen:p})=>{const f=o?g:s,m=o?p:t;return i.createElement(v,Object.assign({id:e,onClick:f,"aria-label":"Side navigation toggle","aria-expanded":m?"true":"false",variant:x.plain},d),n)})};l.displayName="PageToggleButton";const B={name:"BarsIcon",height:512,width:448,svgPath:"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z",yOffset:0,xOffset:0},T=S(B),C=()=>{const a=h(c);function n(){const s=typeof window<"u",e=document.getElementById("page-sidebar")?.parentElement;!s||!e||(e.classList.contains("pf-v6-c-page__sidebar")?(e.classList.toggle("pf-m-expanded"),e.classList.toggle("pf-m-collapsed")):e.classList.add("pf-v6-c-page__sidebar","pf-m-expanded"))}function t(){c.set(!a)}return i.useEffect(()=>{n()},[a]),r.jsx(l,{variant:"plain","aria-label":"Global navigation",onSidebarToggle:t,children:r.jsx(T,{})})};export{C as PageToggle};
1
+ import{_ as u,P as b,B as v,a as x,c as S,j as r}from"./PageContext.TBi_RMo9.js";import{u as h,i as c}from"./navStore.B3Aif4yA.js";import{r as i}from"./index.CTH3fVMn.js";/* empty css */const l=a=>{var{children:n,isSidebarOpen:t=!0,onSidebarToggle:s=()=>{},id:e="nav-toggle"}=a,d=u(a,["children","isSidebarOpen","onSidebarToggle","id"]);return i.createElement(b,null,({isManagedSidebar:o,onSidebarToggle:g,isSidebarOpen:p})=>{const f=o?g:s,m=o?p:t;return i.createElement(v,Object.assign({id:e,onClick:f,"aria-label":"Side navigation toggle","aria-expanded":m?"true":"false",variant:x.plain},d),n)})};l.displayName="PageToggleButton";const B={name:"BarsIcon",height:512,width:448,svgPath:"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z",yOffset:0,xOffset:0},T=S(B),C=()=>{const a=h(c);function n(){const s=typeof window<"u",e=document.getElementById("page-sidebar")?.parentElement;!s||!e||(e.classList.contains("pf-v6-c-page__sidebar")?(e.classList.toggle("pf-m-expanded"),e.classList.toggle("pf-m-collapsed")):e.classList.add("pf-v6-c-page__sidebar","pf-m-expanded"))}function t(){c.set(!a)}return i.useEffect(()=>{n()},[a]),r.jsx(l,{variant:"plain","aria-label":"Global navigation",onSidebarToggle:t,children:r.jsx(T,{})})};export{C as PageToggle};