"use client";
const require_keys = require("../../../../core/utils/keys/keys.cjs");
const require_get_base_size = require("../get-base-size/get-base-size.cjs");
const require_is_primitive_size = require("../is-primitive-size/is-primitive-size.cjs");
const require_is_responsive_size = require("../is-responsive-size/is-responsive-size.cjs");
const require_get_padding_value = require("../get-padding-value/get-padding-value.cjs");
//#region packages/@mantine/core/src/components/AppShell/AppShellMediaStyles/assign-padding-variables/assign-padding-variables.ts
function assignPaddingVariables({ padding, baseStyles, minMediaStyles }) {
	if (require_is_primitive_size.isPrimitiveSize(padding)) baseStyles["--app-shell-padding"] = require_get_padding_value.getPaddingValue(require_get_base_size.getBaseSize(padding));
	if (require_is_responsive_size.isResponsiveSize(padding)) {
		if (padding.base) baseStyles["--app-shell-padding"] = require_get_padding_value.getPaddingValue(padding.base);
		require_keys.keys(padding).forEach((key) => {
			if (key !== "base") {
				minMediaStyles[key] = minMediaStyles[key] || {};
				minMediaStyles[key]["--app-shell-padding"] = require_get_padding_value.getPaddingValue(padding[key]);
			}
		});
	}
}
//#endregion
exports.assignPaddingVariables = assignPaddingVariables;

//# sourceMappingURL=assign-padding-variables.cjs.map