"use strict";const n=require("./utils-Bv1frUk6.cjs.js"),a=require("react");function b(s){let{isDisabled:c,onFocus:r,onBlur:o,onFocusChange:t}=s;const d=a.useCallback(e=>{if(e.target===e.currentTarget)return o&&o(e),t&&t(!1),!0},[o,t]),f=n.$8a9cb279dc87e130$export$715c682d09d639cc(d),$=a.useCallback(e=>{const u=n.$431fbd86ca7dc216$export$b204af158042fbac(e.target),i=u?n.$d4ee10de306f2510$export$cd4e5573fbe2b576(u):n.$d4ee10de306f2510$export$cd4e5573fbe2b576();e.target===e.currentTarget&&i===n.$d4ee10de306f2510$export$e58f029f0fbfdb29(e.nativeEvent)&&(r&&r(e),t&&t(!0),f(e))},[t,r,f]);return{focusProps:{onFocus:!c&&(r||t||o)?$:void 0,onBlur:!c&&(o||t)?d:void 0}}}exports.$a1ea59d68270f0dd$export$f8168d8dd8fd66e6=b;
//# sourceMappingURL=useFocus-9leARHB4.cjs.js.map
