"use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[5914],{61811:function(v,n,t){t.d(n,{O:function(){return a}});var e=t(73557);function a(D){return(0,e.UO)()}},31685:function(v,n,t){t.d(n,{I:function(){return f},r:function(){return g}});var e=t(52322),a=t(2784),D=t(73557),P=t(67880),M=t(2296),O=t(68979),T=t(45902),m=t(65386),L=t(24992),A=t(95573),I=t(61811),l=t(62584);const g=o=>{const{withSearch:i,withHeader:s=!0}=o;return(0,e.jsxs)(P.T,{themeId:"documentation",children:[s&&(0,e.jsx)(m.S,{}),(0,e.jsx)(L.b,{}),(0,e.jsx)(T.F,{withSearch:i})]})},f=o=>{const{kind:i,name:s,namespace:C}=(0,I.O)(A.Fw),{children:c,entityRef:E={kind:i,name:s,namespace:C}}=o,R=(0,D.pC)();if(!c){const r=R?a.Children.toArray(R.props.children):[];var u;const _=r.flatMap(d=>{var B,U;return(u=(U=d)===null||U===void 0||(B=U.props)===null||B===void 0?void 0:B.children)!==null&&u!==void 0?u:[]}).find(d=>!(0,l.I)(d,M.Zz)&&!(0,l.I)(d,M.jM));return(0,e.jsx)(O.Z,{entityRef:E,children:_||(0,e.jsx)(g,{})})}return(0,e.jsx)(O.Z,{entityRef:E,children:({metadata:r,entityMetadata:h,onReady:_})=>(0,e.jsx)("div",{className:"techdocs-reader-page",children:(0,e.jsx)(P.T,{themeId:"documentation",children:c instanceof Function?c({entityRef:E,techdocsMetadataValue:r.value,entityMetadataValue:h.value,onReady:_}):c})})})}},35914:function(v,n,t){t.r(n),t.d(n,{TechDocsReaderLayout:function(){return e.r},TechDocsReaderPage:function(){return e.I}});var e=t(31685)},24992:function(v,n,t){t.d(n,{b:function(){return f}});var e=t(52322),a=t(2784),D=t(79692),P=t(15223),M=t(62774),O=t(80030),T=t(61837),m=t(48348),L=t(47603),A=t(68979),I=t(2296),l=t(57058);const g=(0,D.Z)(o=>({root:{gridArea:"pageSubheader",flexDirection:"column",minHeight:"auto",padding:o.spacing(3,3,0),"@media print":{display:"none"}}})),f=o=>{const i=g(),[s,C]=(0,a.useState)(null),c=(0,a.useCallback)(d=>{C(d.currentTarget)},[]),E=(0,a.useCallback)(()=>{C(null)},[]),{entityMetadata:{value:R,loading:u}}=(0,A.x)(),r=(0,I.$L)(),h=r.renderComponentsByLocation(l.o.Subheader),_=r.renderComponentsByLocation(l.o.Settings);return!h&&!_||u===!1&&!R?null:(0,e.jsx)(P.Z,{classes:i,...o.toolbarProps,children:(0,e.jsxs)(M.Z,{display:"flex",justifyContent:"flex-end",width:"100%",flexWrap:"wrap",children:[h,_?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(O.ZP,{title:"Settings",children:(0,e.jsx)(T.Z,{"aria-controls":"tech-docs-reader-page-settings","aria-haspopup":"true",onClick:c,children:(0,e.jsx)(L.Z,{})})}),(0,e.jsx)(m.Z,{id:"tech-docs-reader-page-settings",getContentAnchorEl:null,anchorEl:s,anchorOrigin:{vertical:"bottom",horizontal:"right"},open:Boolean(s),onClose:E,keepMounted:!0,children:(0,e.jsx)("div",{children:_})})]}):null]})})}}}]);})();

//# sourceMappingURL=5914.412625b0.chunk.js.map