import{__exports as e}from"../../../_virtual/Accordion.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"./AccordionContext.js";import{__exports as n}from"../../../_virtual/utils.js";import{__exports as u}from"../../../_virtual/AccordionContext.js";!function(e){function a(e){return a="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},a(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var f=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var r=y(t);if(r&&r.has(e))return r.get(e);var o={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var f=n?Object.getOwnPropertyDescriptor(e,u):null;f&&(f.get||f.set)?Object.defineProperty(o,u,f):o[u]=e[u]}o.default=e,r&&r.set(e,o);return o}(t),l=d(r),i=d(o),s=n,c=u,p=["flush","open","toggle","className","cssModule","tag","innerRef"];function d(e){return e&&e.__esModule?e:{default:e}}function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(y=function(e){return e?r:t})(e)}function m(){return m=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},m.apply(this,arguments)}function b(e,t){if(null==e)return{};var r,o,n=function(e,t){if(null==e)return{};var r,o,n={},u=Object.keys(e);for(o=0;o<u.length;o++)r=u[o],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(o=0;o<u.length;o++)r=u[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var g={children:l.default.node,className:l.default.string,cssModule:l.default.object,flush:l.default.bool,innerRef:l.default.oneOfType([l.default.object,l.default.string,l.default.func]),open:l.default.oneOfType([l.default.array,l.default.string]).isRequired,tag:s.tagPropType,toggle:l.default.func.isRequired};function j(e){var t=e.flush,r=e.open,o=e.toggle,n=e.className,u=e.cssModule,a=e.tag,l=e.innerRef,d=b(e,p),y=(0,s.mapToCssModules)((0,i.default)(n,"accordion",{"accordion-flush":t}),u),g=(0,f.useMemo)((function(){return{open:r,toggle:o}}));return f.default.createElement(c.AccordionContext.Provider,{value:g},f.default.createElement(a,m({},d,{className:y,ref:l})))}j.propTypes=g,j.defaultProps={tag:"div"};var v=j;e.default=v}(e);
//# sourceMappingURL=Accordion.js.map
