import{__exports as e}from"../../../_virtual/AccordionBody.js";import t from"react";import{p as r}from"../../prop-types/index.js";import{c as o}from"../../classnames/index.js";import"./utils.js";import"./Collapse.js";import"./AccordionContext.js";import{__exports as n}from"../../../_virtual/utils.js";import{__exports as a}from"../../../_virtual/Collapse.js";import{__exports as i}from"../../../_virtual/AccordionContext.js";!function(e){function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==l(e)&&"function"!=typeof e)return{default:e};var r=b(t);if(r&&r.has(e))return r.get(e);var o={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=n?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(o,a,i):o[a]=e[a]}o.default=e,r&&r.set(e,o);return o}(t),u=m(r),c=m(o),f=n,p=m(a),d=i,y=["className","cssModule","tag","innerRef","children","accordionId"];function m(e){return e&&e.__esModule?e:{default:e}}function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(b=function(e){return e?r:t})(e)}function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},j.apply(this,arguments)}function O(e,t){if(null==e)return{};var r,o,n=function(e,t){if(null==e)return{};var r,o,n={},a=Object.keys(e);for(o=0;o<a.length;o++)r=a[o],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var v={accordionId:u.default.string.isRequired,className:u.default.string,children:u.default.node,cssModule:u.default.object,innerRef:u.default.oneOfType([u.default.object,u.default.string,u.default.func]),tag:f.tagPropType};function g(e){var t=e.className,r=e.cssModule,o=e.tag,n=e.innerRef,a=e.children,i=e.accordionId,l=O(e,y),u=(0,s.useContext)(d.AccordionContext).open,m=(0,f.mapToCssModules)((0,c.default)(t,"accordion-collapse"),r);return s.default.createElement(p.default,j({},l,{className:m,ref:n,isOpen:Array.isArray(u)?u.includes(i):u===i}),s.default.createElement(o,{className:"accordion-body"},a))}g.propTypes=v,g.defaultProps={tag:"div"};var _=g;e.default=_}(e);
//# sourceMappingURL=AccordionBody.js.map
