;
{
  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] = "acbecdf6-8d9c-4a71-908b-2c8950651912", e._sentryDebugIdIdentifier = "sentry-dbid-acbecdf6-8d9c-4a71-908b-2c8950651912");
  } catch (e) {
  }
}
;
import { useMemo } from "preact/hooks";
import { c as useLegalEntity, R as ROOT_LE, a9 as getCapabilityProblems, g as getLegalEntityCountry } from "./StoreProvider-CqQrndhS.js";
const useCapabilityProblems = () => {
  const { data: rootLegalEntity } = useLegalEntity(ROOT_LE);
  const problems = useMemo(
    () => rootLegalEntity ? getCapabilityProblems(rootLegalEntity, getLegalEntityCountry(rootLegalEntity)) : void 0,
    [rootLegalEntity]
  );
  return problems;
};
const getProblemsForEntity = (capabilityProblems, entityType, entityId) => capabilityProblems[entityType]?.[entityId];
export {
  getProblemsForEntity as g,
  useCapabilityProblems as u
};
