/**
 * Copyright IBM Corp. 2020, 2026
 *
 * This source code is licensed under the Apache-2.0 license found in the
 * LICENSE file in the root directory of this source tree.
 */

const require_runtime = require('../../../_virtual/_rolldown/runtime.js');
const require_index = require('../../../node_modules/classnames/index.js');
const require_settings = require('../../../settings.js');
const require_devtools = require('../../../global/js/utils/devtools.js');
const require_TruncatedList = require('../../TruncatedList/TruncatedList.js');
const require_FilterPanelLabel = require('../FilterPanelLabel/FilterPanelLabel.js');
let react = require("react");
react = require_runtime.__toESM(react);
let prop_types = require("prop-types");
prop_types = require_runtime.__toESM(prop_types);
let _carbon_react = require("@carbon/react");

//#region src/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.jsx
/**
* Copyright IBM Corp. 2024, 2025
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
var import_classnames = /* @__PURE__ */ require_runtime.__toESM(require_index.default);
const blockClass = `${require_settings.pkg.prefix}--filter-panel-accordion-item`;
const componentName = "FilterPanelAccordionItem";
const defaults = {
	accordionItemProps: {},
	truncatedListProps: {}
};
/**
* A container with a label and optional count.
* @deprecated This component is deprecated
*/
let FilterPanelAccordionItem = react.default.forwardRef(({ accordionItemProps = defaults.accordionItemProps, truncatedListProps = defaults.truncatedListProps, children, className, count, labelText, title, ...rest }, ref) => {
	return /* @__PURE__ */ react.default.createElement(_carbon_react.AccordionItem, {
		...accordionItemProps,
		className: (0, import_classnames.default)(blockClass, className),
		ref,
		title: /* @__PURE__ */ react.default.createElement(require_FilterPanelLabel.FilterPanelLabel, {
			...rest,
			count,
			labelText,
			title
		}),
		...require_devtools.getDevtoolsProps(componentName)
	}, /* @__PURE__ */ react.default.createElement(require_TruncatedList.TruncatedList, {
		...truncatedListProps,
		className: `${blockClass}__list`
	}, react.Children.map(children, (child) => /* @__PURE__ */ react.default.createElement(_carbon_react.ListItem, {
		className: `${blockClass}__list-item`,
		key: child.key
	}, child))));
});
FilterPanelAccordionItem.deprecated = {
	level: "warn",
	details: `This component is deprecated`
};
FilterPanelAccordionItem = require_settings.pkg.checkComponentEnabled(FilterPanelAccordionItem, componentName);
FilterPanelAccordionItem.displayName = componentName;
FilterPanelAccordionItem.propTypes = {
	accordionItemProps: prop_types.default.shape({}),
	children: prop_types.default.node.isRequired,
	className: prop_types.default.string,
	count: prop_types.default.oneOfType([prop_types.default.number, prop_types.default.string]),
	labelText: prop_types.default.node.isRequired,
	title: prop_types.default.string,
	truncatedListProps: prop_types.default.shape({})
};

//#endregion
Object.defineProperty(exports, 'FilterPanelAccordionItem', {
  enumerable: true,
  get: function () {
    return FilterPanelAccordionItem;
  }
});