PageSourceSearch

https://docs.apilayer.com/assets/ConsumerSideNavigation-FLEM31kA.js

js apilayer.com collected 2026-10-02 17:13:42 UTC 18,571 bytes, 2 lines download raw bytes

1import{n as e,o as t,t as n}from"./jsx-runtime-cvnAX2Ol.js";import{C as r,D as i,T as a,ct as o}from"./components-d-7UI7xd.js";import{$i as s,$r as c,Et as l,J as u,Lr as d,On as f,Q as p,Qi as m,Qn as h,Tr as g,Un as _,Zn as v,bt as y,ei as b,fn as x,fr as S,gn as ee,in as C,nt as te,ti as w,yt as T}from"./dist-CWgLnKY7.js";import{i as E}from"./hook-DzomF-Jy.js";import{t as D}from"./clsx-DB0hHKMi.js";import{t as ne}from"./_baseAssignValue-Em0Jo86W.js";import{D as O,E as re,O as k,T as A,_ as j,b as M,h as N,v as P,w as F,x as ie,y as ae}from"./content-Cg19qdB2.js";import{t as oe}from"./portal.defaults-Cbakxv-M.js";import{t as se}from"./dist-wx7MgxiN.js";import{t as I}from"./flags-BBs3wk3e.js";import{n as ce,t as le}from"./api-CV5WwMkq.js";import{t as L}from"./operationColor-Do8KlSNw.js";import{t as R}from"./_createAggregator-DNHiMwMR.js";import{t as z}from"./useFeatureFlag-CUu0ycYL.js";var B=t(o(),1),V=e=>{let t=(0,B.useRef)(null);return(0,B.useEffect)(()=>{t.current&&t.current.scrollIntoView&&t.current.scrollIntoView(e??{behavior:`auto`,block:`nearest`,inline:`nearest`})},[t.current]),t},H=n(),U=({parentPath:e,componentItem:t,active:n=!1,isSelected:a,setSelectedComponentItem:o,onClick:s,expandable:c=!0})=>{let{hash:l}=r(),u=encodeURIComponent(t.id),d=`#${u}`===l;(0,B.useEffect)(()=>{n&&d?o(t.id):n||o(null)},[n,l,o,t.id]);let f=V(),{closeSideNavWithoutTransition:p}=i();return(0,H.jsx)(m,{to:`${e}#${u}`,onClick:e=>{s?.(e),p?.()},className:D(`ml-1 flex pr-8 rounded max-w-full overflow-hidden z-40`,n&&`hover:bg-(--sp-sidenav-item-hover-bg,var(--sp-color-surface-hover))`,a?`bg-(--sp-sidenav-item-active-bg,var(--sp-color-surface-hover)) text-(--sp-color-link) font-semibold`:``,c?`py-1.5 pl-2`:`pl-6 py-0.5 font-semibold`),ref:n&&d?f:null,children:(0,H.jsx)(`div`,{className:`overflow-hidden break-words`,children:t.title})})},W=({children:e})=>(0,H.jsxs)(`div`,{className:`relative group hover:bg-(--sp-sidenav-item-hover-bg,var(--sp-color-surface-hover))`,children:[e,(0,H.jsx)(`div`,{"data-testid":`inactive-tag-hover-div`,className:`sp-sidenav-api-hover absolute inset-0 opacity-0 bg-(--sp-sidenav-item-hover-bg,var(--sp-color-surface-hover)) group-hover:opacity-100`})]}),G=({children:e,active:t,level:n})=>(0,H.jsx)(`div`,{"data-testid":`inner-tag-styled-div`,className:D(`sp-sidenav-api-tag font-semibold relative z-10`,n===0?`ml-7 mr-[18px]`:`ml-5 mr-1.5`,t?`hover:bg-(--sp-sidenav-item-hover-bg,var(--sp-color-surface-hover)) rounded`:`!mr-0`),children:e}),K=({lastItem:e,index:t,active:n,level:r,children:i,operationsLength:a,isSelected:o})=>(0,H.jsx)(`div`,{className:D(r===0?`ml-[38px] mr-[18px]`:`ml-[30px] mr-1.5`,!n&&`!mr-0`),children:(0,H.jsxs)(`div`,{className:D(`relative border-l border-l-(--sp-color-border-subtle) last:border-none group z-40`,e&&`last-item`),children:[(0,H.jsx)(`div`,{className:D(`font-sans absolute text-(--sp-color-text-subtle) z-40 top-[5px] -left-[1px]`,n&&`group-hover:invisible`,o&&`invisible`),children:`-`}),(0,H.jsxs)(`div`,{className:`relative z-40`,children:[t!==a-1&&(0,H.jsx)(`div`,{className:`left-border`}),i]}),!n&&(0,H.jsx)(`div`,{"data-testid":`inactive-operation-hover-div`,className:D(`sp-sidenav-api-hover absolute z-0 opacity-0 bg-(--sp-sidenav-item-hover-bg,var(--sp-color-surface-hover)) group-hover:opacity-100 top-0 bottom-0`,r===0?`-left-[38px] -right-[18px]`:`-left-[30px] -right-1.5`,!n&&`!right-0`)})]})}),ue=({component:e,componentItems:t,active:n=!1,parentPath:r,level:i,selectedComponentItem:a,setSelectedComponentItem:o,onClick:s})=>(0,H.jsx)(b,{defaultOpen:!0,children:({open:l})=>(0,H.jsxs)(`div`,{className:`text-body3 text-(--sp-color-text-muted)`,children:[(0,H.jsxs)(W,{children:[(0,H.jsx)(`div`,{className:D(n&&`separator h-[7px]`)}),(0,H.jsx)(G,{active:n,level:i,children:t?.length===0?(0,H.jsx)(`div`,{className:D(`-ml-1 font-normal`,n?`mb-[7px]`:`py-[7px]`),children:(0,H.jsx)(U,{componentItem:{id:e?.toLowerCase()||``,title:e||``},active:n,parentPath:r,isSelected:a===e?.toLowerCase()&&n,setSelectedComponentItem:o,onClick:s,expandable:!1})}):(0,H.jsxs)(T,{open:l,className:D(`!justify-end flex-row-reverse gap-2 px-1.5`,n?`py-0.5 mb-[7px]`:`py-[9px]`),children:[(0,H.jsx)(`span`,{className:`pr-4 text-left`,children:e}),(0,H.jsx)(`span`,{className:`pl-1 text-(--sp-color-text-muted)`,children:(0,H.jsx)(x,{width:12,height:12})})]})})]}),(0,H.jsx)(c,{children:t?.map((e,c)=>(0,H.jsx)(K,{lastItem:c===t.length-1,index:c,active:n,level:i,operationsLength:t.length,isSelected:a===e.id&&n,children:(0,H.jsx)(U,{componentItem:e,active:n,parentPath:r,isSelected:a===e.id&&n,setSelectedComponentItem:o,onClick:s})},e.id))})]})});function q({text:e,className:t=``,selected:n=!1}){let r=(0,B.useRef)(null),[i,a]=(0,B.useState)(!1);(0,B.useEffect)(()=>{let e=r.current;if(!e)return;let t=()=>{a(e.scrollHeight>e.clientHeight)};t();let n=new window.ResizeObserver(t);return n.observe(e),()=>{n.disconnect()}},[e]);let o=(e=>e?.split(/(\s+)/).map(e=>e.length>20?e.replace(/(.{20})/g,`$1​`):e).join(``))(e);return(0,H.jsx)(_,{placement:`bottom`,content:(0,H.jsx)(`span`,{className:`font-normal`,children:o}),defaultComp:(0,H.jsx)(`div`,{ref:r,className:D(`overflow-hidden line-clamp-2 break-words`,n&&`text-(--sp-color-link) font-semibold`,t),children:o}),trigger:`hover`,disabled:!i,wrapperClassName:`!opacity-100`,className:`sp-tooltip max-w-[320px] break-words whitespace-pre-line ml-2`,portalSelector:`body`})}var J=({path:e,title:t,isActive:n,icon:r,level:o,isExpandable:c,open:l,isApi:u,selectedItem:d,setSelectedItem:p,onClick:m,isMobile:g,useMarkdocRenderer:_=!1})=>{let{t:v}=E(),y=a(),b=(0,H.jsxs)(`div`,{className:D(`flex w-full wrap-break-word overflow-hidden py-3.25 text-body2 items-center`,n&&!d?`text-(--sp-color-link) font-semibold`:`text-(--sp-color-text)`),children:[(0,H.jsx)(`div`,{className:D(`flex`,_?`items-center h-full`:`flex-col self-start h-5`),children:(0,H.jsx)(`span`,{className:D(`text-(--sp-color-text-muted)`,_?``:`mt-[0.4rem]`),children:r||(0,H.jsx)(h,{})})}),(0,H.jsx)(q,{text:t,className:`ml-2`})]}),{closeSideNavWithoutTransition:x}=i(),S=e=>{p&&p(null),m?.(e),x?.()};return(0,H.jsx)(`div`,{"aria-label":v(`consumer.sideNavigation.sideNavItem.ariaLabel`),"data-testid":`consumer-side-navigation-item-${t}`,style:{paddingLeft:F(o,g)},className:D(`sp-sidenav-item`,n&&`sp-sidenav-item--active`,o>0&&`pr-3`),children:(0,H.jsx)(`div`,{className:D(`sp-sidenav-item-bg flex items-center w-full hover:bg-(--sp-sidenav-item-hover-bg,var(--sp-color-surface-hover))`,n?`bg-(--sp-sidenav-item-active-bg,var(--sp-color-surface-raised))`:`bg-(--sp-sidenav-item-bg,var(--sp-color-surface))`,o>0?`pl-2 rounded rounded-b-1 rounded-t-1`:`pl-4`,l&&u&&n&&`rounded-b-none!`),children:c?n||!n&&l?(0,H.jsxs)(`div`,{className:`flex w-full`,children:[(0,H.jsx)(w,{className:`flex items-baseline mt-[0.95rem]`,children:(0,H.jsx)(`div`,{className:`flex w-4 text-(--sp-color-text)`,children:l?(0,H.jsx)(ee,{width:8}):(0,H.jsx)(f,{width:8})})}),(0,H.jsx)(s,{to:e,className:`w-full pr-3`,onClick:S,children:b})]}):(0,H.jsxs)(`div`,{className:`flex w-full`,children:[(0,H.jsx)(w,{className:`flex items-baseline mt-[0.95rem]`,children:(0,H.jsx)(`div`,{className:`flex w-4 text-(--sp-color-text)`,children:(0,H.jsx)(f,{width:8})})}),(0,H.jsx)(w,{className:`flex items-center w-full pr-3 text-left`,"data-testid":`disclosure-nav-button`,onClick:()=>{y(e),x?.()},children:b})]}):(0,H.jsx)(`div`,{className:`flex w-full`,children:(0,H.jsx)(s,{to:e,className:`w-full pr-3 ml-4`,onClick:S,children:b})})})})},Y=({item:e,components:t,icon:n,isActive:i,level:a,openIds:o,onClick:s,isMobile:l,flat:u,apiTitle:d})=>{let{t:f}=E(),p=r(),[m,h]=(0,B.useState)(null),g=!!(t&&t.length>0),_=(0,H.jsxs)(`div`,{className:D(`sp-sidenav-api-subnav`,i?`bg-(--sp-sidenav-item-active-bg,var(--sp-color-surface-raised)) rounded-b`:`bg-(--sp-sidenav-item-bg,var(--sp-color-surface))`),children:[g?t.map(t=>(0,H.jsx)(ue,{component:t.title,componentItems:t.items,active:i,parentPath:`${e.path}${p.search}`,level:a,selectedComponentItem:m,setSelectedComponentItem:h,onClick:s},t.title)):null,(0,H.jsx)(`div`,{className:`separator h-1.5`})]});return u?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(J,{path:`${e.path}#top`,title:d??``,icon:n,isActive:i,isExpandable:!1,level:a,isApi:!0,selectedItem:m,setSelectedItem:h,onClick:s,isMobile:l,useMarkdocRenderer:!0}),_]}):(0,H.jsx)(b,{"aria-label":f(`consumer.sideNavigation.apiNavItem.ariaLabel`),as:`div`,defaultOpen:o.includes(e.tableOfContentsId??``),children:({open:t})=>(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(J,{path:`${e.path}${p.search}#top`,title:e.title,icon:n,isActive:i,isExpandable:g,level:a,open:t,isApi:!0,selectedItem:m,setSelectedItem:h,onClick:s,isMobile:l,useMarkdocRenderer:!0}),(0,H.jsx)(c,{style:{paddingLeft:F(a,l)},className:D(a>0&&`pr-3`),children:_})]})},`${e.path??``}-${o.join(`-`)}`)},X=t(e(((e,t)=>{var n=ne(),r=R(),i=Object.prototype.hasOwnProperty;t.exports=r(function(e,t,r){i.call(e,r)?e[r].push(t):n(e,r,[t])})}))(),1),Z=({parentPath:e,identifier:t,hash:n,icon:a,activeIcon:o,active:s=!1,isSelected:c,setSelectedItem:l,onClick:u})=>{let{hash:d}=r();(0,B.useEffect)(()=>{s&&n===d?l(t):s||l(null)},[s,n,d,l,t]);let f=V(),{closeSideNavWithoutTransition:p}
1=i(),h=e=>{u?.(e),p?.()},g=s&&n===d&&o;return(0,H.jsxs)(m,{to:`${e}${n}`,onClick:h,className:D(`sp-sidenav-api-operation ml-1 flex py-1.5 pl-2 pr-8 rounded max-w-full overflow-hidden z-40`,s&&`hover:bg-(--sp-sidenav-item-hover-bg,var(--sp-color-surface-hover))`,c?`sp-sidenav-api-operation--active bg-(--sp-sidenav-item-active-bg,var(--sp-color-surface-hover)) text-(--sp-color-link) font-semibold`:``),ref:s&&n===d?f:null,children:[(0,H.jsx)(`span`,{className:D(`pl-1 pr-2 pt-[0.219rem]`,c?`text-(--sp-sidenav-icon-selected-color,var(--neutral-60)) dark:text-(--sp-sidenav-icon-selected-color,var(--neutral-40))`:`text-(--sp-sidenav-icon-color,var(--neutral-50)) dark:text-(--sp-sidenav-icon-color,var(--neutral-40))`),children:g?o:a}),(0,H.jsx)(`div`,{className:`flex-1 min-w-0`,children:(0,H.jsx)(q,{text:t,className:D(c?`text-(--sp-color-link) font-semibold`:``)})})]})},de=({parentPath:e,message:t,active:n=!1,isSelected:r,setSelectedMessage:i,onClick:a})=>{let o=t.messageId,s=`#/default/message-${encodeURIComponent(o)}`;return(0,H.jsx)(Z,{parentPath:e,identifier:o,hash:s,icon:(0,H.jsx)(p,{width:12,height:12}),active:n,isSelected:r,setSelectedItem:i,onClick:a})},fe=({parentPath:e,schema:t,active:n=!1,isSelected:r,setSelectedSchema:i,onClick:a,apiType:o})=>{let s=o===k.ASYNCAPI?t.name||t?.title||``:t?.title||t.name,c=o===k.ASYNCAPI?`#/schema-${encodeURIComponent(s)}`:`#/${encodeURIComponent(s)}`;return(0,H.jsx)(Z,{parentPath:e,identifier:s,hash:c,icon:(0,H.jsx)(g,{}),activeIcon:(0,H.jsx)(l,{}),active:n,isSelected:r,setSelectedItem:i,onClick:a})},pe=({parentPath:e,server:t,active:n=!1,isSelected:r,setSelectedServer:i,onClick:a})=>{let o=t.serverId,s=`#/default/server-${encodeURIComponent(o)}`;return(0,H.jsx)(Z,{parentPath:e,identifier:o,hash:s,icon:(0,H.jsx)(te,{width:12,height:12}),active:n,isSelected:r,setSelectedItem:i,onClick:a})},me=({parentPath:e,operation:t,active:n=!1,isSelected:a,setSelectedOperation:o,onClick:s})=>{let{method:c,summary:l,path:u,deprecated:d,operationId:f}=t,{hash:p}=r(),h=le(t),g=l||u||f;(0,B.useEffect)(()=>{n&&h===p?o(t.operationId+t.path+t.method):n||o(null)},[n,h,p,o,t.operationId]);let _=V(),{closeSideNavWithoutTransition:v}=i();return(0,H.jsxs)(m,{to:`${e}${h}`,onClick:e=>{s?.(e),v?.()},className:D(`sp-sidenav-api-operation ml-1 grid grid-cols-[2.75rem_1fr] py-1.5 pl-2 pr-8 rounded max-w-full overflow-hidden z-40`,n&&`hover:bg-(--sp-sidenav-item-hover-bg,var(--sp-color-surface-hover))`,a?`sp-sidenav-api-operation--active bg-(--sp-sidenav-item-active-bg,var(--sp-color-surface-hover)) text-(--sp-color-link) font-semibold`:``,d?`line-through text-(--sp-sidenav-deprecated-color,var(--neutral-50)) dark:text-(--sp-sidenav-deprecated-color,var(--neutral-50))`:``),ref:n&&h===p?_:null,children:[(0,H.jsx)(`div`,{className:D(`sp-operation-method font-semibold uppercase`,d&&`text-(--sp-sidenav-deprecated-color,var(--neutral-50))! dark:text-(--sp-sidenav-deprecated-color,var(--neutral-50))! line-through`),style:{color:d?void 0:L(c)},children:O(c)}),(0,H.jsx)(q,{text:g,className:D(a?`text-(--sp-color-link) font-semibold`:``)})]})},Q=({tag:e,operations:t,schemas:n,asyncApiMessages:r,asyncApiServers:i,active:a=!1,parentPath:o,level:s,selectedItem:l,setSelectedItem:u,onClick:d,apiType:f})=>{let{t:p}=E();return(0,H.jsx)(b,{defaultOpen:!0,children:({open:m})=>(0,H.jsxs)(`div`,{className:`text-body3 text-(--sp-sidenav-tag-color,var(--neutral-70)) dark:text-(--sp-sidenav-tag-color,var(--neutral-30))`,children:[(0,H.jsxs)(W,{children:[(0,H.jsx)(`div`,{className:D(a&&`separator h-[7px]`)}),(0,H.jsx)(G,{active:a,level:s,children:(0,H.jsx)(T,{open:m,className:D(`!justify-end flex-row-reverse gap-2 px-1.5`,a?`py-0.5 mb-[7px]`:`py-[9px]`),children:(0,H.jsx)(`span`,{className:`pr-4 text-left`,children:e||p(`consumer.product.side.navigation.api.operations`)})})})]}),(0,H.jsxs)(c,{children:[t?.map((e,n)=>(0,H.jsx)(K,{lastItem:n===t.length-1,index:n,active:a,level:s,operationsLength:t.length,isSelected:l===e.operationId+e.path+e.method&&a,children:(0,H.jsx)(me,{operation:e,active:a,parentPath:o,isSelected:l===e.operationId+e.path+e.method&&a,setSelectedOperation:u,onClick:d})},e.operationId)),n?.map((e,t)=>{let r;return r=f===k.ASYNCAPI?l===e.name&&a:l===(e.title??e.name)&&a,(0,H.jsx)(K,{lastItem:t===n.length-1,index:t,active:a,level:s,operationsLength:n.length,isSelected:r,children:(0,H.jsx)(fe,{schema:e,active:a,parentPath:o,isSelected:r,setSelectedSchema:u,onClick:d,apiType:f})},e.name)}),i?.map((e,t)=>(0,H.jsx)(K,{lastItem:t===i.length-1,index:t,active:a,level:s,operationsLength:i.length,isSelected:l===e.serverId&&a,children:(0,H.jsx)(pe,{server:e,active:a,parentPath:o,isSelected:l===e.serverId&&a,setSelectedServer:u,onClick:d})},e.serverId)),r?.map((e,t)=>(0,H.jsx)(K,{lastItem:t===r.length-1,index:t,active:a,level:s,operationsLength:r.length,isSelected:l===e.messageId&&a,children:(0,H.jsx)(de,{message:e,active:a,parentPath:o,isSelected:l===e.messageId&&a,setSelectedMessage:u,onClick:d})},e.messageId))]})]})})},he=({item:e,isActive:t,level:n,openIds:i,onClick:a,isMobile:o,flat:s})=>{let{t:l}=E(),u=(0,X.default)(e.operations,e=>e.tag||``),d=r(),[f,p]=(0,B.useState)(null),m=e.schemas,h=e.asyncApiMessages,g=e.asyncApiServers,_=e.operations&&e.operations.length>0||e.asyncApiMessages&&e.asyncApiMessages.length>0||e.schemas&&e.schemas.length>0,y=(0,H.jsxs)(`div`,{className:D(`sp-sidenav-api-subnav`,t?`bg-(--sp-sidenav-item-active-bg,var(--sp-color-surface-raised)) rounded-b`:`bg-(--sp-sidenav-item-bg,var(--sp-color-surface))`),children:[g&&g.length>0?(0,H.jsx)(Q,{tag:`Servers`,asyncApiServers:g,active:t,parentPath:`${e.path}${d.search}`,level:n,selectedItem:f,setSelectedItem:p,onClick:a},`servers`):null,Object.keys(u).map(r=>(0,H.jsx)(Q,{tag:r,operations:u[r],active:t,parentPath:`${e.path}${d.search}`,level:n,selectedItem:f,setSelectedItem:p,onClick:a},r)),h&&h.length>0?(0,H.jsx)(Q,{tag:`Messages`,asyncApiMessages:h,active:t,parentPath:`${e.path}${d.search}`,level:n,selectedItem:f,setSelectedItem:p,onClick:a},`messages`):null,e.schemas&&e.schemas.length>0?(0,H.jsx)(Q,{tag:`Schemas`,schemas:m,active:t,parentPath:`${e.path}${d.search}`,level:n,selectedItem:f,setSelectedItem:p,onClick:a,apiType:ce(e.apiSpec)},`schemas`):null,(0,H.jsx)(`div`,{className:`separator h-1.5`})]});return s?(0,H.jsxs)(`div`,{className:`sp-sidenav-api-item`,children:[(0,H.jsx)(J,{path:`${e.path}#top`,title:e.title,icon:t?(0,H.jsx)(v,{}):(0,H.jsx)(C,{height:9,width:12}),isActive:t,isExpandable:!1,level:n,isApi:!0,selectedItem:f,setSelectedItem:p,onClick:a,isMobile:o}),y]}):(0,H.jsx)(b,{"aria-label":l(`consumer.sideNavigation.apiNavItem.ariaLabel`),as:`div`,className:`sp-sidenav-api-item`,defaultOpen:i.includes(e.tableOfContentsId??``),children:({open:r})=>(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(J,{path:`${e.path}${d.search}#top`,title:e.title,icon:t?(0,H.jsx)(v,{}):(0,H.jsx)(C,{height:9,width:12}),isActive:t,isExpandable:_,level:n,open:r,isApi:!0,selectedItem:f,setSelectedItem:p,onClick:a,isMobile:o}),(0,H.jsx)(c,{style:{paddingLeft:F(n,o)},className:D(n>0&&`pr-3`),children:y})]})},`${e.path??``}-${i.join(`-`)}`)},$=({tocItem:e,level:t,openIds:n,onClick:i,flat:a,apiTitle:o})=>{let s=r(),l=A(s.pathname),f=e.path===l,p=se(oe.media.mobile,{initializeWithValue:!1}),m=z(I.A2A_SUPPORT),h=z(I.GRPC_SUPPORT);if(j(e))return(0,H.jsx)(he,{item:e,isActive:f,level:t,openIds:n,onClick:i,isMobile:p,flat:a},`${e.path}-${n.join(`-`)}`);
1if(ae(e)){let r=e;return(0,H.jsx)(Y,{item:r,components:r.graphqlComponents,icon:(0,H.jsx)(S,{}),isActive:f,level:t,openIds:n,onClick:i,isMobile:p,flat:a,apiTitle:o},`${r.path}-${n.join(`-`)}`)}if(ie(e)){let r=e;return(0,H.jsx)(Y,{item:r,components:r.mcpComponents,icon:(0,H.jsx)(u,{}),isActive:f,level:t,openIds:n,onClick:i,isMobile:p,flat:a,apiTitle:o},`${r.path}-${n.join(`-`)}`)}if(N(e)){if(!m)return null;let r=e;return(0,H.jsx)(Y,{item:r,components:r.a2aComponents,icon:(0,H.jsx)(y,{}),isActive:f,level:t,openIds:n,onClick:i,isMobile:p,flat:a,apiTitle:o},`${r.path}-${n.join(`-`)}`)}if(M(e)){if(!h)return null;let r=e;return(0,H.jsx)(Y,{item:r,components:r.grpcComponents,icon:(0,H.jsx)(d,{}),isActive:f,level:t,openIds:n,onClick:i,isMobile:p,flat:a,apiTitle:o},`${r.path}-${n.join(`-`)}`)}return P(e)&&!e.children?.length?(0,H.jsx)(J,{path:`${e.path}${s.search}`,isActive:f,title:e.title,level:t,isExpandable:!1,onClick:i,isMobile:p}):P(e)&&e.children?.length?(0,H.jsx)(b,{as:`div`,defaultOpen:n.indexOf(e.tableOfContentsId)>=0,children:({open:r})=>(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(J,{path:`${e.path}${s.search}`,isActive:f,title:e.title,isExpandable:!0,level:t,open:r,onClick:i,isMobile:p}),(0,H.jsx)(c,{children:e.children.map(e=>(0,H.jsx)($,{tocItem:e,level:t+1,openIds:n,onClick:i},e.path))})]})},`${e.path}-${n.join(`-`)}`):null},ge=({tableOfContents:e,onClick:t,flat:n,apiTitle:i})=>{let{t:a}=E(),o=r(),s=(0,B.useMemo)(()=>re(e,o.pathname),[o.pathname]);return(0,H.jsx)(`div`,{className:`sp-sidenav flex flex-col h-full`,children:(0,H.jsx)(`div`,{"aria-label":a(`consumer.sideNavigation.ariaLabel`),"data-testid":`consumer-side-navigation`,className:`sp-sidenav-inner flex-grow overflow-auto bg-(--sp-sidenav-item-bg,var(--sp-color-surface))`,children:e.map(e=>(0,H.jsx)($,{tocItem:e,level:0,openIds:s,onClick:t,flat:n,apiTitle:i},e.path))})})};export{ge as t};
2//# sourceMappingURL=ConsumerSideNavigation-FLEM31kA.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.