!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports["l3-style"]=t(require("react")):e["l3-style"]=t(e.react)}(this,(e=>(()=>{"use strict";var t={42487:(e,t,r)=>{r.r(t)},51496:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});const u=r(8156);t.default=function({eventName:e,callback:t,ref:r,capture:o=!1}){(0,u.useEffect)((()=>{const u=r&&r.current;if(!u)return;const n={capture:o};return u.addEventListener(e,t,n),()=>{u.removeEventListener(e,t,n)}}),[e,r,t,o])}},90164:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});const u=r(8156);t.default=function(e){const t=(0,u.useRef)(void 0);return(0,u.useLayoutEffect)((()=>{t.current=e})),t.current}},79210:function(e,t,r){var u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(8156),n=u(r(51496)),c=u(r(90164));t.default=function({ref:e,focusCallback:t,blurCallback:r}){const[u,l]=(0,o.useState)(!1),a=(0,c.default)(u);(0,o.useEffect)((()=>{void 0!==a&&(u?t&&t():r&&r())}),[r,t,u,a]);const f=(0,o.useCallback)((()=>{e.current.focus()}),[e]),s=(0,o.useCallback)((()=>{e.current.blur()}),[e]);return(0,n.default)({eventName:"focus",ref:e,callback:()=>{l(!0)}}),(0,n.default)({eventName:"blur",ref:e,callback:()=>{l(!1)}}),{isFocused:u,focus:f,blur:s}}},41921:(e,t,r)=>{r(42487)},8156:t=>{t.exports=e}},r={};function u(e){var o=r[e];if(void 0!==o)return o.exports;var n=r[e]={exports:{}};return t[e].call(n.exports,n,n.exports,u),n.exports}return u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u(41921),u(79210)})()));
//# sourceMappingURL=useSetFocus.js.map