/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const require_tokens_utils_fromEntries = require('../tokens/utils/fromEntries.cjs');

//#region src/runtime/popoverConfig.ts
const popoverSizes = ["default"];
const placementMap = {
	top: "top",
	bottom: "bottom",
	start: "left",
	end: "right",
	"top-start": "top-start",
	"top-end": "top-end",
	"bottom-start": "bottom-start",
	"bottom-end": "bottom-end",
	"start-top": "left-start",
	"start-bottom": "left-end",
	"end-top": "right-start",
	"end-bottom": "right-end"
};
const configToPopoverConfigContext = ({ popover, scaleMode }) => {
	return {
		animationDuration: 200,
		borderRadius: require_tokens_utils_fromEntries.fromEntries(popoverSizes.map((s) => [s, scaleMode.medium.borderRadius[popover.variables[`size/${s}/svgBase`].borderRadius.rest.value]])),
		placementMap,
		placement: "top",
		gap: require_tokens_utils_fromEntries.fromEntries(popoverSizes.map((s) => [s, popover.variables[`size/${s}/contentWrapper`].gap.rest.value])),
		spacingHorizontal: require_tokens_utils_fromEntries.fromEntries(popoverSizes.map((s) => [s, popover.variables[`size/${s}/contentWrapper`].spacingHorizontal.rest.value])),
		spacingVertical: require_tokens_utils_fromEntries.fromEntries(popoverSizes.map((s) => [s, popover.variables[`size/${s}/contentWrapper`].spacingVertical.rest.value])),
		dismissButtonSpacing: require_tokens_utils_fromEntries.fromEntries(popoverSizes.map((s) => [s, popover.variables[`size/${s}/closeIconContainer`].spacing.rest.value])),
		dismissIconSize: require_tokens_utils_fromEntries.fromEntries(popoverSizes.map((s) => [s, scaleMode.medium.iconSizes[popover.variables[`size/${s}/closeIcon`].size.rest.value]]))
	};
};

//#endregion
exports.configToPopoverConfigContext = configToPopoverConfigContext;