import { a as e, r as t, t as n } from "./dist-DCjaNViz.js";
import { t as r } from "./dist-D-6_qntS.js";
import { t as i } from "./dist-BSqU5QJM.js";
import { t as a } from "./dist-BN9-Ksur.js";
import { t as o } from "./dist-o21Z8vCD.js";
import { t as s } from "./utils-CHlhTiFC.js";
import { t as c } from "./dist-C2Jrcfwk.js";
import { n as l, r as u, t as d } from "./dist-DmFwV39u.js";
import * as f from "react";
import p from "react";
import { jsx as m } from "react/jsx-runtime";
//#region node_modules/@radix-ui/react-tabs/dist/index.mjs
var h = "Tabs", [g, _] = e(h, [u]), v = u(), [y, b] = g(h), x = f.forwardRef((e, t) => {
	let { __scopeTabs: i, value: s, onValueChange: c, defaultValue: l, orientation: u = "horizontal", dir: d, activationMode: f = "automatic", ...p } = e, g = o(d), [_, v] = n({
		prop: s,
		onChange: c,
		defaultProp: l ?? "",
		caller: h
	});
	return /* @__PURE__ */ m(y, {
		scope: i,
		baseId: a(),
		value: _,
		onValueChange: v,
		orientation: u,
		dir: g,
		activationMode: f,
		children: /* @__PURE__ */ m(r.div, {
			dir: g,
			"data-orientation": u,
			...p,
			ref: t
		})
	});
});
x.displayName = h;
var S = "TabsList", C = f.forwardRef((e, t) => {
	let { __scopeTabs: n, loop: i = !0, ...a } = e, o = b(S, n);
	return /* @__PURE__ */ m(l, {
		asChild: !0,
		...v(n),
		orientation: o.orientation,
		dir: o.dir,
		loop: i,
		children: /* @__PURE__ */ m(r.div, {
			role: "tablist",
			"aria-orientation": o.orientation,
			...a,
			ref: t
		})
	});
});
C.displayName = S;
var w = "TabsTrigger", T = f.forwardRef((e, n) => {
	let { __scopeTabs: i, value: a, disabled: o = !1, ...s } = e, c = b(w, i), l = v(i), u = O(c.baseId, a), f = k(c.baseId, a), p = a === c.value;
	return /* @__PURE__ */ m(d, {
		asChild: !0,
		...l,
		focusable: !o,
		active: p,
		children: /* @__PURE__ */ m(r.button, {
			type: "button",
			role: "tab",
			"aria-selected": p,
			"aria-controls": f,
			"data-state": p ? "active" : "inactive",
			"data-disabled": o ? "" : void 0,
			disabled: o,
			id: u,
			...s,
			ref: n,
			onMouseDown: t(e.onMouseDown, (e) => {
				!o && e.button === 0 && e.ctrlKey === !1 ? c.onValueChange(a) : e.preventDefault();
			}),
			onKeyDown: t(e.onKeyDown, (e) => {
				[" ", "Enter"].includes(e.key) && c.onValueChange(a);
			}),
			onFocus: t(e.onFocus, () => {
				let e = c.activationMode !== "manual";
				!p && !o && e && c.onValueChange(a);
			})
		})
	});
});
T.displayName = w;
var E = "TabsContent", D = f.forwardRef((e, t) => {
	let { __scopeTabs: n, value: a, forceMount: o, children: s, ...c } = e, l = b(E, n), u = O(l.baseId, a), d = k(l.baseId, a), p = a === l.value, h = f.useRef(p);
	return f.useEffect(() => {
		let e = requestAnimationFrame(() => h.current = !1);
		return () => cancelAnimationFrame(e);
	}, []), /* @__PURE__ */ m(i, {
		present: o || p,
		children: ({ present: n }) => /* @__PURE__ */ m(r.div, {
			"data-state": p ? "active" : "inactive",
			"data-orientation": l.orientation,
			role: "tabpanel",
			"aria-labelledby": u,
			hidden: !n,
			id: d,
			tabIndex: 0,
			...c,
			ref: t,
			style: {
				...e.style,
				animationDuration: h.current ? "0s" : void 0
			},
			children: n && s
		})
	});
});
D.displayName = E;
function O(e, t) {
	return `${e}-trigger-${t}`;
}
function k(e, t) {
	return `${e}-content-${t}`;
}
var A = x, j = C, M = T, N = D, P = c("inline-flex text-base rtl:[direction:rtl] uppercase font-bold justify-center whitespace-nowrap border-b-2 border-primary-gray-300 dark:border-primary-gray-650 dark:text-primary-white p-0 pb-2 mt-3 mr-6 -mb-0.5 transition-all focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:ring-offset-primary-blue-100 disabled:pointer-events-none disabled:opacity-50", {
	variants: { color: {
		red: "data-[state=active]:border-accent-dark-red  dark:data-[state=active]:border-accent-red",
		blue: "data-[state=active]:border-primary-blue-600 dark:data-[state=active]:border-primary-blue-300",
		black: "data-[state=active]:border-primary-gray-700 dark:data-[state=active]:border-primary-gray-100",
		custom: "data-[state=active]:border-custom-color-600"
	} },
	defaultVariants: { color: "red" }
}), F = p.createContext({ color: void 0 }), I = p.forwardRef(({ color: e, className: t, ...n }, r) => {
	let i = p.useMemo(() => ({ color: e }), [e]);
	return /* @__PURE__ */ m(F.Provider, {
		value: i,
		children: /* @__PURE__ */ m(A, {
			className: s("rtl:[direction:rtl]", t),
			...n,
			ref: r
		})
	});
});
I.displayName = A.displayName;
var L = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(j, {
	...t,
	ref: n,
	className: s("pl-12 rtl:[direction:rtl] inline-flex items-center border-b-2 border-primary-gray-300 mb-10 w-full dark:border-primary-gray-650", e)
}));
L.displayName = j.displayName;
var R = p.forwardRef(({ className: e, ...t }, n) => {
	let { color: r } = p.useContext(F);
	return /* @__PURE__ */ m(M, {
		...t,
		ref: n,
		className: s(P({ color: r }), e)
	});
});
R.displayName = M.displayName;
var z = p.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(N, {
	...t,
	ref: n,
	className: s("mt-2 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-offset-1 dark:text-primary-white", e)
}));
z.displayName = N.displayName;
//#endregion
export { R as i, z as n, L as r, I as t };

//# sourceMappingURL=tabs-p_kJi8VW.js.map