import { jsx as r } from "../../../../../external/.pnpm/preact@10.28.2/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js";
import { CustomerDetailsForm as y } from "../Form/CustomerDetailsForm/CustomerDetailsForm.js";
import { PaymentDetailsForm as o } from "../Form/PaymentDetailsForm/PaymentDetailsForm.js";
import { FormSummary as S } from "../Form/Summary/FormSummary.js";
import { StoreForm as x } from "../Form/StoreForm/StoreForm.js";
const P = ({
  setShowTermsAndConditions: t,
  currentFormStep: s,
  settingsData: a,
  storeIds: u,
  storesData: i,
  selectItems: n,
  termsAndConditionsProvisioned: p,
  configurationData: e,
  isSameAddress: c,
  setIsSameAddress: f,
  countriesData: F,
  isFetchingCountries: d,
  countryDatasetData: m,
  isFetchingCountryDataset: l
}) => {
  switch (s) {
    case "store":
      return /* @__PURE__ */ r(
        x,
        {
          setShowTermsAndConditions: t,
          settingsData: a,
          storeIds: u,
          storesData: i?.data,
          selectItems: n,
          termsAndConditionsProvisioned: p
        }
      );
    case "payment":
      return /* @__PURE__ */ r(o, { configuration: e });
    case "customer":
      return /* @__PURE__ */ r(
        y,
        {
          isSameAddress: c,
          setIsSameAddress: f,
          countriesData: F,
          isFetchingCountries: d,
          countryDatasetData: m,
          isFetchingCountryDataset: l
        }
      );
    case "summary":
      return /* @__PURE__ */ r(S, { countryDatasetData: m });
    default:
      return /* @__PURE__ */ r(o, { configuration: e });
  }
};
export {
  P as FormStepRenderer
};
