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