try {
	let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
	n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "0955e826-2ffd-4c58-be59-0a98ada52cfd", e._sentryDebugIdIdentifier = "sentry-dbid-0955e826-2ffd-4c58-be59-0a98ada52cfd");
} catch (e) {}
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-Dm6g0wmt.js";
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-C6bSV6sB.js";
import { n as getCapabilityProblems } from "./processCapabilities-CDSEJpB8.js";
import { useMemo } from "preact/hooks";
//#region src/utils/api/getProblemsForEntity.ts
var useCapabilityProblems = () => {
	const { data: rootLegalEntity } = useLegalEntity(ROOT_LE);
	return useMemo(() => rootLegalEntity ? getCapabilityProblems(rootLegalEntity, getLegalEntityCountry(rootLegalEntity)) : void 0, [rootLegalEntity]);
};
var getProblemsForEntity = (capabilityProblems, entityType, entityId) => capabilityProblems[entityType]?.[entityId];
//#endregion
export { useCapabilityProblems as n, getProblemsForEntity as t };
