import{_ as __rest,a as __assign}from"./tslib.es6-bjGg6Bxl.js";import React__default from"react";import{A as AppBody}from"./AppBody.component-DMNphrA9.js";import{P as PageHeader}from"./PageHeader.component-BvJezYYX.js";import{M as MainContainer}from"./MainContainer.component-beO5Qib0.js";import{M as MainContainerInner}from"./MainContainerInner.component-Dp6YCm8D.js";import{C as ContentContainer}from"./ContentContainer.component-rfZz78lB.js";import{P as PageFooter}from"./PageFooter.component-CrlDnfPd.js";var AppShell=function(a){var b=a.children,c=a.className,d=void 0===c?"":c,e=a.contentHeading,f=void 0===e?"":e,g=a.embedded,h=a.fullWidthContent,i=a.pageHeader,j=void 0===i?React__default.createElement(PageHeader,null):i,k=a.pageFooter,l=void 0===k?React__default.createElement(PageFooter,null):k,m=a.sideNavigation,n=a.topNavigation,o=__rest(a,["children","className","contentHeading","embedded","fullWidthContent","pageHeader","pageFooter","sideNavigation","topNavigation"]);return f&&f.length&&console.warn("AppShell: The contentHeading prop is obsolete and will be removed in a future version. In order to render a content heading, use a ContentHeading element as a child in your main content."),(React__default.createElement(AppBody,__assign({className:d},o),f||"",void 0!==g&&g?(React__default.createElement(React__default.Fragment,null,n&&n,React__default.createElement(MainContainer,null,React__default.createElement(MainContainerInner,{fullWidth:!1!==h,hasSideNav:!!m,className:"".concat(n?"jn-mt-[3.875rem]":"")},m&&m,React__default.createElement(ContentContainer,null,b))))):(React__default.createElement(React__default.Fragment,null,j&&("string"==typeof j||j instanceof String)?(React__default.createElement(PageHeader,{heading:j})):j,n&&n,React__default.createElement(MainContainer,null,React__default.createElement(MainContainerInner,{fullWidth:!0===h,hasSideNav:!!m,className:"jn-mt-[3.875rem]"},m&&m,React__default.createElement(ContentContainer,{className:m?"":"jn-ml-8"},b))),l?l:React__default.createElement(PageFooter,null)))))};export{AppShell as A};