import { hide as hide$1 } from "../../../../@floating-ui/react-dom/dist/floating-ui.react-dom.js";
const hide = {
  name: "hide",
  async fn(state) {
    const {
      width,
      height,
      x,
      y
    } = state.rects.reference;
    const anchorHidden = width === 0 && height === 0 && x === 0 && y === 0;
    const nativeHideResult = await hide$1().fn(state);
    return {
      data: {
        referenceHidden: nativeHideResult.data?.referenceHidden || anchorHidden
      }
    };
  }
};
export {
  hide
};
//# sourceMappingURL=hideMiddleware.js.map
