import{__exports as e}from"../../../_virtual/OffcanvasHeader.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),c=l,u=["children","className","close","closeAriaLabel","cssModule","tag","toggle","wrapTag"];function i(e){return e&&e.__esModule?e:{default:e}}function f(){return f=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},f.apply(this,arguments)}function p(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 d={children:s.default.node,className:s.default.string,close:s.default.object,closeAriaLabel:s.default.string,cssModule:s.default.object,tag:c.tagPropType,toggle:s.default.func,wrapTag:c.tagPropType};function m(e){var t,a=e.children,r=e.className,l=e.close,s=e.closeAriaLabel,i=e.cssModule,d=e.tag,m=e.toggle,g=e.wrapTag,b=p(e,u),v=(0,c.mapToCssModules)((0,n.default)(r,"offcanvas-header"),i);return!l&&m&&(t=o.default.createElement("button",{type:"button",onClick:m,className:(0,c.mapToCssModules)("btn-close",i),"aria-label":s})),o.default.createElement(g,f({},b,{className:v}),o.default.createElement(d,{className:(0,c.mapToCssModules)("offcanvas-title",i)},a),l||t)}m.propTypes=d,m.defaultProps={closeAriaLabel:"Close",tag:"h5",wrapTag:"div"};var g=m;e.default=g}(e);
//# sourceMappingURL=OffcanvasHeader.js.map
