;
{
  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] = "6dd7fe61-428f-4b39-b21d-f9492e94eba3", e._sentryDebugIdIdentifier = "sentry-dbid-6dd7fe61-428f-4b39-b21d-f9492e94eba3");
  } catch (e) {
  }
}
;
import { useQuery } from "@tanstack/preact-query";
import { b as useApiContext, k as httpGet } from "./StoreProvider-CqQrndhS.js";
const getTermsOfServiceAcceptanceInfos = async (legalEntityId, baseUrl) => {
  return httpGet({
    baseUrl,
    path: `legalEntities/${legalEntityId}/termsOfService/termsOfServiceAcceptanceInfos`
  });
};
const useTermsOfServiceAcceptanceInfos = (options) => {
  const { rootLegalEntityId, baseUrl } = useApiContext();
  return useQuery({
    queryKey: ["termsOfServiceAcceptanceInfos"],
    queryFn: () => getTermsOfServiceAcceptanceInfos(rootLegalEntityId.value, baseUrl.value),
    ...options
  });
};
const getTermsOfServiceStatus = async (legalEntityId, baseUrl) => {
  return httpGet({
    baseUrl,
    path: `legalEntities/${legalEntityId}/termsOfService/termsOfServiceStatus`
  });
};
const useTermsOfServiceStatus = (options) => {
  const { rootLegalEntityId, baseUrl } = useApiContext();
  return useQuery({
    queryKey: ["termsOfServiceStatus"],
    queryFn: () => getTermsOfServiceStatus(rootLegalEntityId.value, baseUrl.value),
    ...options
  });
};
export {
  useTermsOfServiceAcceptanceInfos as a,
  useTermsOfServiceStatus as u
};
