"use strict";function e(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("react"));function r(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}exports.useComposedRefs=function(){for(var e=arguments.length,n=new Array(e),u=0;u<e;u++)n[u]=arguments[u];return t.useCallback(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{let n=!1;const u=t.map((t=>{const u=r(t,e);return n||"function"!=typeof u||(n=!0),u}));if(n)return()=>{for(let e=0;e<u.length;e++){const n=u[e];"function"==typeof n?n():r(t[e],null)}}}}(...n),n)};
//# sourceMappingURL=use-composed-ref.mjs.js.map
