/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
"use client";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
//#region src/components/client/PaddleNav/utils/resolvePaddleNavCornerOrientation.ts
function isCenterOrientation(orientation) {
	return orientation === "horizontal" || orientation === "vertical";
}
/**
* Maps directionally-agnostic corner orientations to physical corners for layout.
* - `top-start` -> `top-left` (or `top-right` in RTL)
* - `top-end` -> `top-right` (or `top-left` in RTL)
* - `bottom-start` -> `bottom-left` (or `bottom-right` in RTL)
* - `bottom-end` -> `bottom-right` (or `bottom-left` in RTL)
*/
function resolvePaddleNavCornerOrientation(orientation, rtl) {
	if (isCenterOrientation(orientation)) return orientation;
	switch (orientation) {
		case "top-start": return rtl ? "top-right" : "top-left";
		case "top-end": return rtl ? "top-left" : "top-right";
		case "bottom-start": return rtl ? "bottom-right" : "bottom-left";
		case "bottom-end": return rtl ? "bottom-left" : "bottom-right";
	}
}
//#endregion
exports.resolvePaddleNavCornerOrientation = resolvePaddleNavCornerOrientation;
