"use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[2695],{28576:function(v,a,t){t.d(a,{o:function(){return o}});var e=t(33648);function o(h){return(0,e.W4)()}},84600:function(v,a,t){t.d(a,{M:function(){return I},O:function(){return O}});var e=t(77e3),o=t(85668),h=t(33648),D=t(34536),M=t(21016),P=t(34704),T=t(60173),m=t(88616),L=t(32276),A=t(94388),f=t(28576),d=t(61552);const O=_=>{const{withSearch:l,withHeader:c=!0}=_;return(0,e.jsxs)(D.K,{themeId:"documentation",children:[c&&(0,e.jsx)(m.K,{}),(0,e.jsx)(L.I,{}),(0,e.jsx)(T.i,{withSearch:l})]})},I=_=>{const{kind:l,name:c,namespace:g}=(0,f.o)(A.uE),{children:s,entityRef:i={kind:l,name:c,namespace:g}}=_,C=(0,h.ag)();if(!s){const r=(C?o.Children.toArray(C.props.children):[]).flatMap(n=>{var u,K;return(K=n==null||(u=n.props)===null||u===void 0?void 0:u.children)!==null&&K!==void 0?K:[]}).find(n=>!(0,d.q)(n,M.Mt)&&!(0,d.q)(n,M.WG));return(0,e.jsx)(P.o,{entityRef:i,children:r||(0,e.jsx)(O,{})})}return(0,e.jsx)(P.o,{entityRef:i,children:({metadata:R,entityMetadata:E,onReady:r})=>(0,e.jsx)("div",{className:"techdocs-reader-page",children:(0,e.jsx)(D.K,{themeId:"documentation",children:s instanceof Function?s({entityRef:i,techdocsMetadataValue:R.value,entityMetadataValue:E.value,onReady:r}):s})})})}},85076:function(v,a,t){t.r(a),t.d(a,{TechDocsReaderLayout:function(){return e.O},TechDocsReaderPage:function(){return e.M}});var e=t(84600)},32276:function(v,a,t){t.d(a,{I:function(){return I}});var e=t(77e3),o=t(85668),h=t(40476),D=t(86364),M=t(33584),P=t(87648),T=t(67256),m=t(28488),L=t(63712),A=t(34704),f=t(21016),d=t(70124);const O=(0,h.c)(_=>({root:{gridArea:"pageSubheader",flexDirection:"column",minHeight:"auto",padding:_.spacing(3,3,0),"@media print":{display:"none"}}})),I=_=>{const l=O(),[c,g]=(0,o.useState)(null),s=(0,o.useCallback)(u=>{g(u.currentTarget)},[]),i=(0,o.useCallback)(()=>{g(null)},[]),{entityMetadata:{value:C,loading:R}}=(0,A.O)(),E=(0,f.K6)(),r=E.renderComponentsByLocation(d.u.Subheader),n=E.renderComponentsByLocation(d.u.Settings);return!r&&!n||R===!1&&!C?null:(0,e.jsx)(D.c,{classes:l,..._.toolbarProps,children:(0,e.jsxs)(M.c,{display:"flex",justifyContent:"flex-end",width:"100%",flexWrap:"wrap",children:[r,n?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(P.cp,{title:"Settings",children:(0,e.jsx)(T.c,{"aria-controls":"tech-docs-reader-page-settings","aria-haspopup":"true",onClick:s,children:(0,e.jsx)(L.c,{})})}),(0,e.jsx)(m.c,{id:"tech-docs-reader-page-settings",getContentAnchorEl:null,anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"right"},open:Boolean(c),onClose:i,keepMounted:!0,children:(0,e.jsx)("div",{children:n})})]}):null]})})}}}]);})();

//# sourceMappingURL=2695.08cc16e2.chunk.js.map