//#region node_modules/.nitro/vite/services/ssr/assets/calculations-JyW9rCxF.js
/** ER-SPRMS calculation helpers */
var compliancePct = (cumProgress, cumScope) => cumScope > 0 ? Math.min(100, cumProgress / cumScope * 100) : cumProgress > 0 ? 100 : 0;
var weightedCompliance = (compliance, weight) => compliance * (weight ?? 0);
var riskDeficit = (compliance, weight) => (100 - compliance) * (weight ?? 0);
var zoneOf = (compliance) => {
	if (compliance >= 90) return "green";
	if (compliance >= 70) return "yellow";
	if (compliance >= 50) return "orange";
	return "red";
};
var zoneClass = (compliance) => {
	const z = zoneOf(compliance);
	return z === "green" ? "zone-green" : z === "yellow" ? "zone-yellow" : z === "orange" ? "zone-orange" : "zone-red";
};
var MONTHS = [
	{
		v: 1,
		label: "January"
	},
	{
		v: 2,
		label: "February"
	},
	{
		v: 3,
		label: "March"
	},
	{
		v: 4,
		label: "April"
	},
	{
		v: 5,
		label: "May"
	},
	{
		v: 6,
		label: "June"
	},
	{
		v: 7,
		label: "July"
	},
	{
		v: 8,
		label: "August"
	},
	{
		v: 9,
		label: "September"
	},
	{
		v: 10,
		label: "October"
	},
	{
		v: 11,
		label: "November"
	},
	{
		v: 12,
		label: "December"
	}
];
var DIVISIONS = [
	"SDAH",
	"ASN",
	"HWH",
	"MLDT"
];
//#endregion
export { weightedCompliance as a, riskDeficit as i, MONTHS as n, zoneClass as o, compliancePct as r, zoneOf as s, DIVISIONS as t };
