import { jsx as r } from "react/jsx-runtime";
import i from "./components/ui/RPTooltip.js";
import { UIButton as n } from "./components/ui/Button.js";
import { CloseIcon as p } from "./components/icons/CloseIcon.js";
import { useLocalizationContext as e } from "./contexts/LocalizationContext.js";
import './assets/SearchCloseButton.css';const a = {
  "rp-search-tool-content": "_rp-search-tool-content_t0ih3_1",
  "rp-search-tool-input": "_rp-search-tool-input_t0ih3_10",
  "rp-search-tool-input-icon": "_rp-search-tool-input-icon_t0ih3_17",
  "rp-search-tool-controls": "_rp-search-tool-controls_t0ih3_27",
  "rp-search-tool-input-wrapper": "_rp-search-tool-input-wrapper_t0ih3_35",
  "rp-search-tool-input-checkboxes": "_rp-search-tool-input-checkboxes_t0ih3_41",
  "rp-search-tool-input-clear": "_rp-search-tool-input-clear_t0ih3_46",
  "rp-search-input": "_rp-search-input_t0ih3_60",
  "rp-search-icon-info": "_rp-search-icon-info_t0ih3_66",
  "rp-search-loader-icon": "_rp-search-loader-icon_t0ih3_75",
  "rp-search-tool-result-navigator": "_rp-search-tool-result-navigator_t0ih3_80"
}, m = ({ onKeyPress: t, handleClose: c }) => {
  const { localeMessages: o } = e();
  return /* @__PURE__ */ r(i, { content: o == null ? void 0 : o.searchCloseButtonTooltip, children: /* @__PURE__ */ r(
    n,
    {
      tabIndex: 0,
      onKeyDown: t,
      "aria-label": o == null ? void 0 : o.searchCloseButtonTooltip,
      children: /* @__PURE__ */ r(p, { onClick: c, className: a["rp-search-tool-input-icon"] })
    }
  ) });
};
export {
  m as S,
  a as c
};
