import{__exports as e}from"../../../_virtual/ToastHeader.js";import t from"react";import{p as a}from"../../prop-types/index.js";import{c as l}from"../../classnames/index.js";import"./utils.js";import{__exports as r}from"../../../_virtual/utils.js";!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=i(t),o=i(a),n=i(l),u=r,c=["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","close","tagClassName","icon"];function i(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 a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},d.apply(this,arguments)}function f(e,t){if(null==e)return{};var a,l,r=function(e,t){if(null==e)return{};var a,l,r={},s=Object.keys(e);for(l=0;l<s.length;l++)a=s[l],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(l=0;l<s.length;l++)a=s[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}var p={tag:u.tagPropType,icon:o.default.oneOfType([o.default.string,o.default.node]),wrapTag:u.tagPropType,toggle:o.default.func,className:o.default.string,cssModule:o.default.object,children:o.default.node,closeAriaLabel:o.default.string,charCode:o.default.oneOfType([o.default.string,o.default.number]),close:o.default.object,tagClassName:o.default.string};function g(e){var t,a,l=e.className,r=e.cssModule,o=e.children,i=e.toggle,p=e.tag,g=e.wrapTag,m=e.closeAriaLabel,b=e.close,y=e.tagClassName,v=e.icon,h=f(e,c),j=(0,u.mapToCssModules)((0,n.default)(l,"toast-header"),r);return!b&&i&&(t=s.default.createElement("button",{type:"button",onClick:i,className:(0,u.mapToCssModules)("btn-close",r),"aria-label":m})),"string"==typeof v?a=s.default.createElement("svg",{className:(0,u.mapToCssModules)("rounded text-".concat(v)),width:"20",height:"20",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid slice",focusable:"false",role:"img"},s.default.createElement("rect",{fill:"currentColor",width:"100%",height:"100%"})):v&&(a=v),s.default.createElement(g,d({},h,{className:j}),a,s.default.createElement(p,{className:(0,u.mapToCssModules)((0,n.default)(y,{"ms-2":null!=a}),r)},o),b||t)}g.propTypes=p,g.defaultProps={tag:"strong",wrapTag:"div",tagClassName:"me-auto",closeAriaLabel:"Close"};var m=g;e.default=m}(e);
//# sourceMappingURL=ToastHeader.js.map
