import { useState as l, useCallback as t, useEffect as d } from "../../../../external/.pnpm/preact@10.28.2/node_modules/preact/hooks/dist/hooks.module.js";
import f from "../../../../config/payByLink/invalidFieldsConfig.json.js";
import c from "../../../../core/Context/preact/useCoreContext.js";
const m = () => {
  const { getCdnConfig: n } = c(), i = f, [s, e] = l(i), o = t(async () => {
    const a = await n?.({
      subFolder: "payByLink",
      name: "invalidFieldsConfig",
      fallback: i
    });
    e(a ?? i);
  }, [n, i]);
  return d(() => {
    o();
  }, [o]), {
    invalidFieldsConfig: s,
    getInvalidFieldsConfig: o
  };
};
export {
  m as useInvalidFieldsConfig
};
