"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.MoreFiltersCTA = void 0;
var _mobxReactLite = require("mobx-react-lite");
var _react = _interopRequireDefault(require("react"));
var _wixUiIconsCommon = require("@wix/wix-ui-icons-common");
var _CounterBadgeButton = require("../CounterBadgeButton");
var _ToolbarCollectionContext = require("../ToolbarCollectionContext");
var _ResponsiveButton = require("../ResponsiveButton/ResponsiveButton");
var _jsxFileName = "/home/builduser/work/843658b9f44192f0/packages/cairo/dist/cjs/components/MoreFiltersCTA/MoreFiltersCTA.tsx";
const _MoreFiltersCTA = () => {
  const state = (0, _ToolbarCollectionContext.useToolbarCollectionContext)();
  const {
    toolbar: {
      responsive
    },
    container: {
      translate: t
    },
    toolbarFiltersState
  } = state;
  return /*#__PURE__*/_react.default.createElement(_CounterBadgeButton.CounterBadgeButton, {
    dataHook: "more-filters-button-counter",
    count: state.collection.query.nonPersistentCustomFiltersCount,
    __self: void 0,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 17,
      columnNumber: 5
    }
  }, /*#__PURE__*/_react.default.createElement(_ResponsiveButton.ResponsiveButton, {
    ref: toolbarFiltersState == null ? void 0 : toolbarFiltersState.moreFiltersButtonRef,
    state: responsive.filters,
    shouldShrink: false,
    key: "more-filters-button",
    dataHook: "more-filters-button",
    icon: /*#__PURE__*/_react.default.createElement(_wixUiIconsCommon.ContentFilter, {
      __self: void 0,
      __source: {
        fileName: _jsxFileName,
        lineNumber: 27,
        columnNumber: 15
      }
    }),
    onClick: toolbarFiltersState == null ? void 0 : toolbarFiltersState.onFiltersButtonClick,
    __self: void 0,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 21,
      columnNumber: 7
    }
  }, t('cairo.toolbar.moreFiltersButton', {
    defaultValue: ''
  })));
};
const MoreFiltersCTA = exports.MoreFiltersCTA = (0, _mobxReactLite.observer)(_MoreFiltersCTA);
//# sourceMappingURL=MoreFiltersCTA.js.map