import{__exports as e}from"../../../_virtual/ModalHeader.js";import t from"react";import{p as a}from"../../prop-types/index.js";import{c as r}from"../../classnames/index.js";import"./utils.js";import{__exports as l}from"../../../_virtual/utils.js";!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(t),s=i(a),n=i(r),u=l,c=["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","close"];function i(e){return e&&e.__esModule?e:{default:e}}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},p.apply(this,arguments)}function d(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a,r,l={},o=Object.keys(e);for(r=0;r<o.length;r++)a=o[r],t.indexOf(a)>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)a=o[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}var f={children:s.default.node,className:s.default.string,close:s.default.object,closeAriaLabel:s.default.string,cssModule:s.default.object,tag:u.tagPropType,toggle:s.default.func,wrapTag:u.tagPropType};function m(e){var t,a=e.className,r=e.cssModule,l=e.children,s=e.toggle,i=e.tag,f=e.wrapTag,m=e.closeAriaLabel,g=e.close,b=d(e,c),y=(0,u.mapToCssModules)((0,n.default)(a,"modal-header"),r);return!g&&s&&(t=o.default.createElement("button",{type:"button",onClick:s,className:(0,u.mapToCssModules)("btn-close",r),"aria-label":m})),o.default.createElement(f,p({},b,{className:y}),o.default.createElement(i,{className:(0,u.mapToCssModules)("modal-title",r)},l),g||t)}m.propTypes=f,m.defaultProps={tag:"h5",wrapTag:"div",closeAriaLabel:"Close"};var g=m;e.default=g}(e);
//# sourceMappingURL=ModalHeader.js.map
