import{__exports as t}from"../../../_virtual/TabPane.js";import e from"react";import{p as r}from"../../prop-types/index.js";import{c as a}from"../../classnames/index.js";import"./TabContext.js";import"./utils.js";import{__exports as n}from"../../../_virtual/TabContext.js";import{__exports as o}from"../../../_virtual/utils.js";!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=v;var s=f(e),l=f(r),u=f(a),i=n,p=o,c=["className","cssModule","tabId","tag"];function f(t){return t&&t.__esModule?t:{default:t}}function d(){return d=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},d.apply(this,arguments)}function m(t,e){if(null==t)return{};var r,a,n=function(t,e){if(null==t)return{};var r,a,n={},o=Object.keys(t);for(a=0;a<o.length;a++)r=o[a],e.indexOf(r)>=0||(n[r]=t[r]);return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(a=0;a<o.length;a++)r=o[a],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}var b={tag:p.tagPropType,className:l.default.string,cssModule:l.default.object,tabId:l.default.any};function v(t){var e=t.className,r=t.cssModule,a=t.tabId,n=t.tag,o=m(t,c),l=function(t){return(0,p.mapToCssModules)((0,u.default)("tab-pane",e,{active:a===t}),r)};return s.default.createElement(i.TabContext.Consumer,null,(function(t){var e=t.activeTabId;return s.default.createElement(n,d({},o,{className:l(e)}))}))}v.propTypes=b,v.defaultProps={tag:"div"}}(t);
//# sourceMappingURL=TabPane.js.map
