import React__default from"react";import PropTypes from"prop-types";import{S as ShadowRoot,a as StyleProvider}from"./StyleProvider.component-BlEzhTpk.js";import{P as PortalProvider}from"./PortalProvider.component-BS7qHZAz.js";const AppShellProvider=a=>{let{shadowRoot:c=!0,shadowRootMode:d="open",stylesWrapper:e="inline",theme:f=null,children:b}=a;const g=React__default.useCallback(a=>{let{children:b}=a;return c?React__default.createElement(ShadowRoot,{mode:d},b):b},[c,d]);return React__default.createElement(g,null,React__default.createElement(StyleProvider,{theme:f,stylesWrapper:c?"inline":e},React__default.createElement(PortalProvider,null,b)))};AppShellProvider.propTypes={shadowRoot:PropTypes.bool,shadowRootMode:PropTypes.oneOf(["open","closed"]),stylesWrapper:PropTypes.oneOf(["head","inline"]),theme:PropTypes.string,children:PropTypes.any};export{AppShellProvider as A};