"use strict";

var _define = require("../preactement/define");
var _FilterChip = _interopRequireDefault(require("../../FilterChip/FilterChip"));
var _wrapperUtils = require("../wrapperUtils");
var _jsxRuntime = require("react/jsx-runtime");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
const attributes = ['clear-label', 'class-name', 'label', 'root-id', 'size', 'use-alternate-icon'];

/* eslint-disable @typescript-eslint/no-namespace */

/* eslint-enable */

const Wrapper = _ref => {
  let {
    clearLabel,
    label,
    useAlternateIcon,
    ...otherProps
  } = _ref;
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_FilterChip.default, {
    ariaClearLabel: clearLabel ?? '',
    label: label,
    useAlternateIcon: (0, _wrapperUtils.parseBooleanAttr)(useAlternateIcon),
    ...otherProps
  });
};
(0, _define.define)('ds-filter-chip', () => Wrapper, {
  attributes,
  events: [['onDelete', event => ({
    detail: {
      event
    }
  })]]
});