import { jsx as n } from "../../../../../../../../external/.pnpm/preact@10.28.2/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js";
import p from "../../../../../../../internal/Typography/Typography.js";
import { TypographyVariant as e, TypographyElement as a } from "../../../../../../../internal/Typography/types.js";
import { ShippingStreetField as h } from "./ShippingStreetField.js";
import { ShippingHouseNumberField as g } from "./ShippingHouseNumberField.js";
import { ShippingCountryField as v } from "./ShippingCountryField.js";
import { ShippingCityField as _ } from "./ShippingCityField.js";
import { ShippingPostalCodeField as N } from "./ShippingPostalCodeField.js";
import k from "../../../../../../../../core/Context/preact/useCoreContext.js";
const j = ({
  isSameAddress: i,
  isAddressFieldRequired: t,
  isOptional: l = !1,
  isSameAddressCopyEnabled: o = !1,
  countriesData: m,
  isFetchingCountries: c,
  countryDatasetData: y,
  isFetchingCountryDataset: f
}) => {
  const { i18n: r } = k();
  return /* @__PURE__ */ n("div", { className: "adyen-pe-payment-link-creation-form__shipping-address-container", children: [
    /* @__PURE__ */ n("div", { className: "adyen-pe-payment-link-creation-form__shipping-address-title-container", children: [
      /* @__PURE__ */ n(
        p,
        {
          el: a.SPAN,
          variant: e.SUBTITLE,
          stronger: !0,
          className: "adyen-pe-payment-link-creation-form__billing-address-title",
          children: r.get("payByLink.creation.sections.deliveryAddress.label")
        }
      ),
      l && /* @__PURE__ */ n(
        p,
        {
          el: a.SPAN,
          variant: e.BODY,
          className: "adyen-pe-payment-link-creation-form__field-label-optional",
          children: `(${r.get("payByLink.common.fields.optional.label")})`
        }
      )
    ] }),
    /* @__PURE__ */ n("div", { children: [
      /* @__PURE__ */ n(
        h,
        {
          isSameAddress: i,
          isAddressFieldRequired: t,
          isSameAddressCopyEnabled: o
        }
      ),
      /* @__PURE__ */ n(
        g,
        {
          isSameAddress: i,
          isAddressFieldRequired: t,
          isSameAddressCopyEnabled: o
        }
      )
    ] }),
    /* @__PURE__ */ n("div", { children: [
      /* @__PURE__ */ n(
        v,
        {
          countriesData: m,
          isAddressFieldRequired: t,
          isFetchingCountries: c,
          isSameAddress: i,
          isSameAddressCopyEnabled: o,
          countryDatasetData: y,
          isFetchingCountryDataset: f
        }
      ),
      /* @__PURE__ */ n(
        _,
        {
          isAddressFieldRequired: t,
          isSameAddress: i,
          isSameAddressCopyEnabled: o
        }
      ),
      /* @__PURE__ */ n(
        N,
        {
          isAddressFieldRequired: t,
          isSameAddress: i,
          isSameAddressCopyEnabled: o
        }
      )
    ] })
  ] });
};
export {
  j as DeliveryAddressSection
};
