import{__exports as e}from"../../../_virtual/Toast.js";import t from"react";import{p as r}from"../../prop-types/index.js";import{c as n}from"../../classnames/index.js";import"./utils.js";import"./Fade.js";import{__exports as a}from"../../../_virtual/utils.js";import{__exports as o}from"../../../_virtual/Fade.js";!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=c(t),i=c(r),l=c(n),u=a,f=c(o),p=["className","cssModule","tag","isOpen","children","transition","fade","innerRef"];function c(e){return e&&e.__esModule?e:{default:e}}function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(this,arguments)}function O(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){j(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function j(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var y={children:i.default.node,className:i.default.string,cssModule:i.default.object,fade:i.default.bool,isOpen:i.default.bool,tag:u.tagPropType,transition:i.default.shape(f.default.propTypes),innerRef:i.default.oneOfType([i.default.object,i.default.string,i.default.func])},g={isOpen:!0,tag:"div",fade:!0,transition:m(m({},f.default.defaultProps),{},{unmountOnExit:!0})};function v(e){var t=e.className,r=e.cssModule,n=e.tag,a=e.isOpen,o=e.children,i=e.transition,c=e.fade,b=e.innerRef,j=O(e,p),y=(0,u.mapToCssModules)((0,l.default)(t,"toast"),r),g=m(m(m({},f.default.defaultProps),i),{},{baseClass:c?i.baseClass:"",timeout:c?i.timeout:0});return s.default.createElement(f.default,d({},j,g,{tag:n,className:y,in:a,role:"alert",innerRef:b}),o)}v.propTypes=y,v.defaultProps=g;var P=v;e.default=P}(e);
//# sourceMappingURL=Toast.js.map
