import { TabControlContext as e } from "../contexts/TabControl.js";
import { useContext as t, useEffect as n } from "react";
//#region lib/ui/hooks/tabControl.ts
var r = () => {
	let { value: n } = t(e);
	return n;
}, i = () => {
	let { dispatch: n } = t(e);
	return n;
}, a = () => {
	let { uid: n } = t(e);
	return n;
};
function o({ value: r, ref: i }) {
	let { dispatch: a, register: o, unregister: s } = t(e);
	return n(() => (o(r, i), () => {
		s(r);
	}), [
		r,
		i,
		o,
		s
	]), a;
}
var s = () => {
	let { refs: n } = t(e);
	return n;
}, c = () => {
	let { value: n, refs: r } = t(e);
	return [n, r.get(n)];
};
//#endregion
export { r as useActiveTab, c as useActiveTabControl, o as useRegisterTabControl, s as useTabControls, i as useTabDispatch, a as useTabsUid };

//# sourceMappingURL=tabControl.js.map