import { jsx as s } from "../../../../../../../external/.pnpm/preact@10.28.2/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js";
import { FormSelect as i } from "../../../../../../internal/FormWrappers/FormSelect.js";
import { useWizardFormContext as m } from "../../../../../../../hooks/form/wizard/WizardFormContext.js";
import { useCallback as d } from "../../../../../../../external/.pnpm/preact@10.28.2/node_modules/preact/hooks/dist/hooks.module.js";
import p from "../../../../../../../core/Context/preact/useCoreContext.js";
const x = ({ items: e }) => {
  const { i18n: o } = p(), { setFieldDisplayValue: t } = m(), r = d(
    (a) => {
      const l = e.find((n) => n.id === a.target.value)?.name;
      t("store", l);
    },
    [e, t]
  );
  return /* @__PURE__ */ s(
    i,
    {
      fieldName: "store",
      label: o.get("payByLink.creation.fields.store.label"),
      items: e,
      onChange: r,
      preventInvalidState: !0
    }
  );
};
export {
  x as default
};
