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

//# sourceMappingURL=5914.4dde69d3.chunk.js.map