import "./summaryItem-CAQCQSkt.js";
import { aa as e } from "./StoreProvider-CBB99upB.js";
try {
  let t = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, i = new t.Error().stack;
  i && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[i] = "db4af29a-ff72-4c12-a272-4e6b4ec16128", t._sentryDebugIdIdentifier = "sentry-dbid-db4af29a-ff72-4c12-a272-4e6b4ec16128");
} catch {
}
const f = [
  "address",
  "otherAddressInformation",
  "postalCode",
  "city",
  "stateOrProvince",
  "country"
], [s, d, o, a, r, n] = f, g = [
  e.Australia,
  e.Brazil,
  e.Canada,
  e.NewZealand,
  e.UnitedStates,
  e.Japan
], p = [
  e.Australia,
  e.Canada,
  e.NewZealand,
  e.PuertoRico,
  e.UnitedStates,
  e.UnitedKingdom,
  e.France
], S = {
  [e.Australia]: [n, s, d, a, r, o],
  [e.Canada]: [n, s, d, a, o, r],
  [e.UnitedKingdom]: [n, s, d, a, o],
  [e.UnitedStates]: [
    n,
    s,
    d,
    a,
    r,
    o
  ],
  [e.PuertoRico]: [
    // should exactly match CountryCodes.UnitedStates
    n,
    s,
    d,
    a,
    o
  ],
  [e.HongKong]: [n, s, d, a, r],
  [e.NewZealand]: [
    n,
    s,
    d,
    o,
    a,
    r
  ],
  [e.UnitedArabEmirates]: [n, s, d, a],
  [e.Japan]: [n, d, o, a, r],
  default: [n, s, d, o, a, r]
}, y = {
  [e.UnitedStates]: [a, r, o]
}, c = {
  city: {
    default: a,
    [e.UnitedKingdom]: "cityTown"
  },
  country: {
    default: n
  },
  otherAddressInformation: {
    default: d,
    [e.Canada]: "apartmentSuiteOther",
    [e.PuertoRico]: "apartmentSuiteOther",
    // should exactly match CountryCodes.UnitedStates
    [e.UnitedStates]: "apartmentSuiteOther"
  },
  postalCode: {
    default: o,
    [e.PuertoRico]: "zipCode",
    // should exactly match CountryCodes.UnitedStates
    [e.UnitedStates]: "zipCode"
  },
  stateOrProvince: {
    default: r,
    [e.Australia]: "state",
    [e.Brazil]: "state",
    [e.Canada]: "provinceOrTerritory",
    [e.NewZealand]: "region",
    [e.UnitedStates]: "state"
  },
  address: {
    default: s
  }
}, A = (t, i) => i && c[t][i] || c[t].default, C = (t) => t && S[t] ? S[t] : S.default, D = (t) => C(t).reduce(
  (u, l) => ({
    ...u,
    [l]: A(l, t)
  }),
  {}
);
export {
  g as C,
  D as a,
  f as b,
  A as c,
  p as d,
  y as e,
  C as g
};
