import { jsx as f } from "../../../../../../../external/.pnpm/preact@10.28.2/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js";
import { ErrorMessageDisplay as u } from "../../../../../../internal/ErrorMessageDisplay/ErrorMessageDisplay.js";
import p from "../../utils/getSettingsErrorMessage.js";
import d from "../../../../../../../core/Context/preact/useCoreContext.js";
const E = ({
  error: s,
  errorMessage: r,
  onContactSupport: e,
  centered: o,
  absolutePosition: a
}) => {
  const { getImageAsset: i } = d(), { title: m, message: g, refreshComponent: l, translationValues: n, images: t } = p(
    s,
    r,
    e,
    i
  );
  return /* @__PURE__ */ f(
    u,
    {
      imageDesktop: t?.desktop,
      imageMobile: t?.mobile,
      withHeaderOffset: !0,
      title: m,
      message: g,
      translationValues: n,
      withImage: !0,
      centered: o ?? !1,
      absolutePosition: a ?? !1,
      refreshComponent: l,
      onContactSupport: e,
      outlined: !1
    }
  );
};
export {
  E as default
};
