import { aK as o } from "./StoreProvider-CBB99upB.js";
try {
  let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, r = new e.Error().stack;
  r && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[r] = "0dbe219b-3e7e-423b-9b01-9b003cce5467", e._sentryDebugIdIdentifier = "sentry-dbid-0dbe219b-3e7e-423b-9b01-9b003cce5467");
} catch {
}
const n = (e) => {
  if (!e)
    return !0;
  const r = e ? e.length === 20 : !1, t = e ? /[a-zA-Z]/.test(e) && /[0-9]/.test(e) : !1;
  return r && t;
}, a = (e) => e ? new Date(e) <= /* @__PURE__ */ new Date() : !0, u = {
  numberOfEmployees: {
    modes: ["blur"],
    validate: (e) => Number.isInteger(Number(e)) && Number(e) > 0,
    errorMessage: "atLeastOneEmployeeIsRequired"
  },
  balanceSheetTotal: {
    modes: ["blur"],
    validate: (e) => {
      const r = Number(e);
      return !Number.isNaN(r) && r > 0;
    },
    errorMessage: "fieldIsRequired"
  },
  annualTurnover: {
    modes: ["blur"],
    validate: (e) => {
      const r = Number(e);
      return !Number.isNaN(r) && r > 0;
    },
    errorMessage: "fieldIsRequired"
  },
  financialReportingDate: {
    modes: ["blur"],
    validate: (e) => a(e),
    errorMessage: "dateCannotBeInTheFuture"
  },
  legalEntityIdentifier: {
    modes: ["blur"],
    validate: (e) => n(e),
    errorMessage: "invalidFormat"
  },
  legalProceedingsDate: {
    modes: ["blur"],
    validate: (e) => a(e),
    errorMessage: "dateCannotBeInTheFuture"
  }
}, s = {
  numberOfEmployees: {
    modes: ["blur"],
    validate: (e) => Number.isInteger(Number(e)) && Number(e) > 0,
    errorMessage: "atLeastOneEmployeeIsRequired"
  },
  legalEntityIdentifier: {
    modes: ["blur"],
    validate: (e) => n(e),
    errorMessage: "invalidFormat"
  },
  balanceSheetTotal: {
    modes: ["blur"],
    validate: (e) => {
      const r = Number(e);
      return !Number.isNaN(r) && r > 0;
    },
    errorMessage: "fieldIsRequired"
  },
  annualTurnover: {
    modes: ["blur"],
    validate: (e) => {
      const r = Number(e);
      return !Number.isNaN(r) && r > 0;
    },
    errorMessage: "fieldIsRequired"
  },
  financialReportingDate: {
    modes: ["blur"],
    validate: (e) => a(e),
    errorMessage: "dateCannotBeInTheFuture"
  },
  legalProceedingsDate: {
    modes: ["blur"],
    validate: (e) => a(e),
    errorMessage: "dateCannotBeInTheFuture"
  },
  registrationAddress: {
    modes: ["blur"],
    validate: (e) => o(e?.address),
    errorMessage: "fieldIsRequired"
  }
}, i = {
  legalProceedingsDate: {
    modes: ["blur"],
    validate: (e) => a(e),
    errorMessage: "dateCannotBeInTheFuture"
  }
}, l = {
  company: u,
  soleProprietor: i,
  parentCompany: s,
  ultimateParentCompany: s
};
export {
  l as b,
  a as v
};
