import _objectSpread from "@babel/runtime/helpers/objectSpread2";
import { forwardRef } from 'react';
import { jsx as _jsx } from "react/jsx-runtime";
export default function withOnTouch(Form) {
  return /*#__PURE__*/forwardRef(function (props, ref) {
    return /*#__PURE__*/_jsx("div", {
      onTouchStart: function onTouchStart(e) {
        if (e.target !== document.activeElement && document.activeElement) {
          document.activeElement.blur();
        }
      },
      children: /*#__PURE__*/_jsx(Form, _objectSpread({
        ref: ref
      }, props))
    });
  });
}
//# sourceMappingURL=withOnTouch.js.map