var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.GluestackUIProvider=exports.AppProviderWithOverlay=exports.AppProvider=void 0;var _defineProperty2=_interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireWildcard(require("react"));var _provider=require("@gluestack-ui/provider");var _react2=require("@gluestack-style/react");var _gluestackStyle=require("../../gluestack-style.config");var _overlay=require("@gluestack-ui/overlay");var _toast=require("@gluestack-ui/toast");var _jsxRuntime=require("react/jsx-runtime");var _excluded=["children"],_excluded2=["children"];function _getRequireWildcardCache(nodeInterop){if(typeof WeakMap!=="function")return null;var cacheBabelInterop=new WeakMap();var cacheNodeInterop=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop;})(nodeInterop);}function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule){return obj;}if(obj===null||typeof obj!=="object"&&typeof obj!=="function"){return{default:obj};}var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj)){return cache.get(obj);}var newObj={};var hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){if(key!=="default"&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;if(desc&&(desc.get||desc.set)){Object.defineProperty(newObj,key,desc);}else{newObj[key]=obj[key];}}}newObj.default=obj;if(cache){cache.set(obj,newObj);}return newObj;}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;})),keys.push.apply(keys,symbols);}return keys;}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){(0,_defineProperty2.default)(target,key,source[key]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key));});}return target;}var GluestackUIProvider=(0,_provider.createProvider)({StyledProvider:_react2.StyledProvider});exports.GluestackUIProvider=GluestackUIProvider;GluestackUIProvider.displayName='GluestackUIProvider';var AppProvider=(0,_react.memo)(function(_ref){var children=_ref.children,props=(0,_objectWithoutProperties2.default)(_ref,_excluded);return(0,_jsxRuntime.jsx)(GluestackUIProvider,_objectSpread(_objectSpread({config:_gluestackStyle.config},props),{},{children:children}));});exports.AppProvider=AppProvider;var AppProviderWithOverlay=function AppProviderWithOverlay(_ref2){var children=_ref2.children,props=(0,_objectWithoutProperties2.default)(_ref2,_excluded2);return(0,_jsxRuntime.jsx)(GluestackUIProvider,_objectSpread(_objectSpread({config:_gluestackStyle.config},props),{},{children:(0,_jsxRuntime.jsx)(_overlay.OverlayProvider,{children:(0,_jsxRuntime.jsx)(_toast.ToastProvider,{children:children})})}));};exports.AppProviderWithOverlay=AppProviderWithOverlay;
//# sourceMappingURL=index.js.map