"use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[4036],{70048:function(A,a,t){t.d(a,{K:function(){return o}});var e=t(18690);function o(h){return(0,e.g)()}},57315:function(A,a,t){t.d(a,{W:function(){return W},b:function(){return O}});var e=t(31085),o=t(14041),h=t(18690),D=t(24504),P=t(72020),M=t(86892),v=t(16203),T=t(45061),m=t(39299),L=t(82779),f=t(70048),d=t(19402);const O=_=>{const{withSearch:l,withHeader:s=!0}=_;return(0,e.jsxs)(D.Y,{themeId:"documentation",children:[s&&(0,e.jsx)(T.T,{}),(0,e.jsx)(m.Z,{}),(0,e.jsx)(v.p,{withSearch:l})]})},W=_=>{const{kind:l,name:s,namespace:g}=(0,f.K)(L.Oc),{children:c,entityRef:i={kind:l,name:s,namespace:g}}=_,R=(0,h.P1)();if(!c){const r=(R?o.Children.toArray(R.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.E)(n,P.AF)&&!(0,d.E)(n,P.Wm));return(0,e.jsx)(M.R,{entityRef:i,children:r||(0,e.jsx)(O,{})})}return(0,e.jsx)(M.R,{entityRef:i,children:({metadata:C,entityMetadata:E,onReady:r})=>(0,e.jsx)("div",{className:"techdocs-reader-page",children:(0,e.jsx)(D.Y,{themeId:"documentation",children:c instanceof Function?c({entityRef:i,techdocsMetadataValue:C.value,entityMetadataValue:E.value,onReady:r}):c})})})}},84036:function(A,a,t){t.r(a),t.d(a,{TechDocsReaderLayout:function(){return e.b},TechDocsReaderPage:function(){return e.W}});var e=t(57315)},39299:function(A,a,t){t.d(a,{Z:function(){return W}});var e=t(31085),o=t(14041),h=t(58837),D=t(75173),P=t(10394),M=t(71677),v=t(29365),T=t(37757),m=t(9684),L=t(86892),f=t(72020),d=t(99730);const O=(0,h.A)(_=>({root:{gridArea:"pageSubheader",flexDirection:"column",minHeight:"auto",padding:_.spacing(3,3,0),"@media print":{display:"none"}}})),W=_=>{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:R,loading:C}}=(0,L.V)(),E=(0,f.YR)(),r=E.renderComponentsByLocation(d.e.Subheader),n=E.renderComponentsByLocation(d.e.Settings);return!r&&!n||C===!1&&!R?null:(0,e.jsx)(D.A,{classes:l,..._.toolbarProps,children:(0,e.jsxs)(P.A,{display:"flex",justifyContent:"flex-end",width:"100%",flexWrap:"wrap",children:[r,n?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(M.Ay,{title:"Settings",children:(0,e.jsx)(v.A,{"aria-controls":"tech-docs-reader-page-settings","aria-haspopup":"true",onClick:c,children:(0,e.jsx)(m.A,{})})}),(0,e.jsx)(T.A,{id:"tech-docs-reader-page-settings",getContentAnchorEl:null,anchorEl:s,anchorOrigin:{vertical:"bottom",horizontal:"right"},open:!!s,onClose:i,keepMounted:!0,children:(0,e.jsx)("div",{children:n})})]}):null]})})}}}]);})();

//# sourceMappingURL=4036.35345ea7.chunk.js.map