import { $ as n } from "./useEffectEvent-B4Fd4l1o.es.js";
import { useEffect as a } from "react";
function f(r, i, t) {
  let d = n(() => {
    t && t(i);
  });
  a(() => {
    var o;
    let e = r == null || (o = r.current) === null || o === void 0 ? void 0 : o.form;
    return e?.addEventListener("reset", d), () => {
      e?.removeEventListener("reset", d);
    };
  }, [
    r
  ]);
}
export {
  f as $
};
//# sourceMappingURL=useFormReset-Dl03QHFW.es.js.map
