'use strict';

var tooltip = require('@base-ui/react/tooltip');
var classnames = require('classnames');
var React = require('react');

function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }

var classnames__default = /*#__PURE__*/_interopDefault(classnames);
var React__default = /*#__PURE__*/_interopDefault(React);

// src/base-components/tooltip/Tooltip.tsx

// src/base-components/tooltip/Tooltip.module.css
var Tooltip_default = {};

// src/base-components/tooltip/Tooltip.tsx
function _extends() {
  return _extends = Object.assign ? Object.assign.bind() : function(n) {
    for (var e = 1; e < arguments.length; e++) {
      var t = arguments[e];
      for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
    }
    return n;
  }, _extends.apply(null, arguments);
}
function TooltipRoot({
  children,
  ...rest
}) {
  return /* @__PURE__ */ React__default.default.createElement(tooltip.Tooltip.Root, rest, children);
}
function TooltipProvider({
  children,
  ...rest
}) {
  return /* @__PURE__ */ React__default.default.createElement(tooltip.Tooltip.Provider, rest, children);
}
var TOOLTIP_TRIGGER_DELAY_MS = 200;
function TooltipTrigger({
  className,
  children,
  delay = TOOLTIP_TRIGGER_DELAY_MS,
  ...rest
}) {
  return /* @__PURE__ */ React__default.default.createElement(tooltip.Tooltip.Trigger, _extends({
    className: classnames__default.default(Tooltip_default.osdkTooltipTrigger, className),
    delay
  }, rest), children);
}
function TooltipPositioner({
  className,
  children,
  sideOffset = 4,
  ...rest
}) {
  return /* @__PURE__ */ React__default.default.createElement(tooltip.Tooltip.Positioner, _extends({
    className: classnames__default.default(Tooltip_default.osdkTooltipPositioner, className),
    sideOffset
  }, rest), children);
}
function TooltipPopup({
  className,
  children,
  ...rest
}) {
  return /* @__PURE__ */ React__default.default.createElement(tooltip.Tooltip.Popup, _extends({
    className: classnames__default.default(Tooltip_default.osdkTooltipPopup, className)
  }, rest), children);
}
function TooltipArrow() {
  return /* @__PURE__ */ React__default.default.createElement(tooltip.Tooltip.Arrow, {
    className: Tooltip_default.osdkTooltipArrow
  }, /* @__PURE__ */ React__default.default.createElement(ArrowSvg, null));
}
function ArrowSvg(props) {
  return /* @__PURE__ */ React__default.default.createElement("svg", _extends({
    width: "20",
    height: "10",
    viewBox: "0 0 20 10",
    fill: "none"
  }, props), /* @__PURE__ */ React__default.default.createElement("path", {
    d: "M9.66437 2.60207L4.80758 6.97318C4.07308 7.63423 3.11989 8 2.13172 8H0V10H20V8H18.5349C17.5468 8 16.5936 7.63423 15.8591 6.97318L11.0023 2.60207C10.622 2.2598 10.0447 2.25979 9.66437 2.60207Z",
    className: Tooltip_default.tooltipArrowFill
  }), /* @__PURE__ */ React__default.default.createElement("path", {
    d: "M8.99542 1.85876C9.75604 1.17425 10.9106 1.17422 11.6713 1.85878L16.5281 6.22989C17.0789 6.72568 17.7938 7.00001 18.5349 7.00001L15.89 7L11.0023 2.60207C10.622 2.2598 10.0447 2.2598 9.66436 2.60207L4.77734 7L2.13171 7.00001C2.87284 7.00001 3.58774 6.72568 4.13861 6.22989L8.99542 1.85876Z",
    className: Tooltip_default.tooltipArrowOuterStroke
  }));
}
var Tooltip = {
  Root: TooltipRoot,
  Provider: TooltipProvider,
  Trigger: TooltipTrigger,
  Portal: tooltip.Tooltip.Portal,
  Positioner: TooltipPositioner,
  Popup: TooltipPopup,
  Arrow: TooltipArrow
};

exports.Tooltip = Tooltip;
exports.TooltipArrow = TooltipArrow;
//# sourceMappingURL=chunk-HNBSGCSZ.cjs.map
//# sourceMappingURL=chunk-HNBSGCSZ.cjs.map