@odus/checkout 1.17.1 → 1.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/shared.js CHANGED
@@ -1709,27 +1709,27 @@ var ar = function(e) {
1709
1709
  t(e);
1710
1710
  });
1711
1711
  });
1712
- }, or = /^\s*at (?:(.+?) ?\()?((?:file|https?|chrome-extension|webpack-internal):\/\/.+?):(\d+):(\d+)\)?\s*$/, sr = /^([^@]+)@((?:file|https?|chrome-extension|webpack-internal):\/\/[^\s:]+):(\d+):(\d+)$/, cr = /^(?:([^@]+)@)?((?:file|https?):\/\/[^\s:]+):(\d+):(\d+)$/, lr = (e) => {
1712
+ }, or = (e) => e.split(/[?#]/, 1)[0], sr = /^\s*at (?:(.+?) ?\()?((?:file|https?|chrome-extension|webpack-internal):\/\/.+?):(\d+):(\d+)\)?\s*$/, cr = /^([^@]+)@((?:file|https?|chrome-extension|webpack-internal):\/\/[^\s:]+):(\d+):(\d+)$/, lr = /^(?:([^@]+)@)?((?:file|https?):\/\/[^\s:]+):(\d+):(\d+)$/, ur = (e) => {
1713
1713
  if (!e) return [];
1714
1714
  let t = [], n = e.split("\n");
1715
1715
  for (let e of n) {
1716
1716
  let n = e.trim();
1717
1717
  if (!n) continue;
1718
- let r = or.exec(n);
1718
+ let r = sr.exec(n);
1719
1719
  r ? t.push({
1720
1720
  function: r[1] || "(anonymous)",
1721
- filename: r[2],
1721
+ filename: or(r[2]),
1722
1722
  lineno: parseInt(r[3], 10),
1723
1723
  colno: parseInt(r[4], 10)
1724
- }) : (r = sr.exec(n) ?? cr.exec(n), r && t.push({
1724
+ }) : (r = cr.exec(n) ?? lr.exec(n), r && t.push({
1725
1725
  function: r[1] || "(anonymous)",
1726
- filename: r[2],
1726
+ filename: or(r[2]),
1727
1727
  lineno: parseInt(r[3], 10),
1728
1728
  colno: parseInt(r[4], 10)
1729
1729
  }));
1730
1730
  }
1731
1731
  return t;
1732
- }, ur = "@odus/telemetry", dr = "0.0.1", fr, pr, mr, hr = () => {
1732
+ }, dr = "@odus/telemetry", fr = "0.0.1", pr, mr, hr, gr = () => {
1733
1733
  if (typeof navigator > "u") return {};
1734
1734
  let e = navigator.userAgent, t, n, r;
1735
1735
  e.includes("Firefox/") ? (t = "Firefox", n = e.match(/Firefox\/([\d.]+)/)?.[1]) : e.includes("Edg/") ? (t = "Edge", n = e.match(/Edg\/([\d.]+)/)?.[1]) : e.includes("Chrome/") ? (t = "Chrome", n = e.match(/Chrome\/([\d.]+)/)?.[1]) : e.includes("Safari/") && (t = "Safari", n = e.match(/Version\/([\d.]+)/)?.[1]), e.includes("Windows") ? r = "Windows" : e.includes("Mac OS") ? r = "macOS" : e.includes("Linux") ? r = "Linux" : e.includes("Android") ? r = "Android" : (e.includes("iPhone") || e.includes("iPad")) && (r = "iOS");
@@ -1744,51 +1744,51 @@ var ar = function(e) {
1744
1744
  viewportHeight: String(window.innerHeight),
1745
1745
  userAgent: e
1746
1746
  };
1747
- }, gr = () => typeof window > "u" ? {} : { url: window.location.href }, _r = (e) => {
1748
- fr = void 0, mr = void 0, pr = e.sessionTracking?.session ? { id: e.sessionTracking.session.id } : void 0;
1749
- }, vr = (e) => {
1750
- fr = e;
1751
- }, yr = () => {
1752
- fr = void 0;
1753
- }, br = (e) => {
1747
+ }, _r = () => typeof window > "u" ? {} : { url: or(window.location.href) }, vr = (e) => {
1748
+ pr = void 0, hr = void 0, mr = e.sessionTracking?.session ? { id: e.sessionTracking.session.id } : void 0;
1749
+ }, yr = (e) => {
1754
1750
  pr = e;
1751
+ }, br = () => {
1752
+ pr = void 0;
1755
1753
  }, xr = (e) => {
1756
1754
  mr = e;
1757
- }, Sr = () => pr?.id, Cr = (e) => ({
1755
+ }, Sr = (e) => {
1756
+ hr = e;
1757
+ }, Cr = () => mr?.id, wr = (e) => ({
1758
1758
  sdk: {
1759
- name: ur,
1760
- version: dr
1759
+ name: dr,
1760
+ version: fr
1761
1761
  },
1762
1762
  app: e.app,
1763
- user: fr,
1764
- session: pr,
1765
- page: gr(),
1766
- browser: hr(),
1767
- view: mr
1768
- }), wr = 30, Tr = 250, Er = 3e4, Dr = 6e4, Or = "telemetry.dropped", kr = [], Ar = null, jr = 0, J = null, Mr = null, Nr = null, Pr = (e) => {
1769
- if (Ar) return;
1770
- let t = e.batching?.sendTimeout ?? Tr;
1771
- Ar = setTimeout(() => {
1772
- Ur(e);
1763
+ user: pr,
1764
+ session: mr,
1765
+ page: _r(),
1766
+ browser: gr(),
1767
+ view: hr
1768
+ }), Tr = 30, Er = 250, Dr = 3e4, Or = 6e4, kr = "telemetry.dropped", Ar = [], jr = null, Mr = 0, J = null, Nr = null, Pr = null, Fr = (e) => {
1769
+ if (jr) return;
1770
+ let t = e.batching?.sendTimeout ?? Er;
1771
+ jr = setTimeout(() => {
1772
+ Wr(e);
1773
1773
  }, t);
1774
- }, Fr = (e) => {
1774
+ }, Ir = (e) => {
1775
1775
  J ? (J.items += e.items, J.rateLimitedMs += e.rateLimitedMs, J.since = Math.min(J.since, e.since)) : J = { ...e };
1776
- }, Ir = (e, t = 0) => {
1777
- (e !== 0 || t !== 0) && Fr({
1776
+ }, Lr = (e, t = 0) => {
1777
+ (e !== 0 || t !== 0) && Ir({
1778
1778
  items: e,
1779
1779
  rateLimitedMs: t,
1780
1780
  since: Date.now()
1781
1781
  });
1782
- }, Lr = (e) => {
1782
+ }, Rr = (e) => {
1783
1783
  let t = e?.trim() ?? "", n = /^\d+$/.test(t) ? Number(t) * 1e3 : NaN;
1784
- return Number.isFinite(n) ? n : Er;
1785
- }, Rr = (e, t) => {
1786
- let n = Date.now(), r = n + Lr(e), i = Math.max(0, r - Math.max(n, jr));
1787
- jr = Math.max(jr, r), Ir(t, i);
1788
- }, zr = (e) => ({
1784
+ return Number.isFinite(n) ? n : Dr;
1785
+ }, zr = (e, t) => {
1786
+ let n = Date.now(), r = n + Rr(e), i = Math.max(0, r - Math.max(n, Mr));
1787
+ Mr = Math.max(Mr, r), Lr(t, i);
1788
+ }, Br = (e) => ({
1789
1789
  type: "measurement",
1790
1790
  payload: {
1791
- type: Or,
1791
+ type: kr,
1792
1792
  values: {
1793
1793
  dropped_items: e.items,
1794
1794
  rate_limited_ms: e.rateLimitedMs
@@ -1796,11 +1796,11 @@ var ar = function(e) {
1796
1796
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
1797
1797
  context: { dropped_since: new Date(e.since).toISOString() }
1798
1798
  }
1799
- }), Br = () => {
1799
+ }), Vr = () => {
1800
1800
  let e = J;
1801
1801
  return J = null, e;
1802
- }, Vr = (e, t) => {
1803
- let n = { meta: Cr(t) };
1802
+ }, Hr = (e, t) => {
1803
+ let n = { meta: wr(t) };
1804
1804
  for (let t of e) switch (t.type) {
1805
1805
  case "exception":
1806
1806
  (n.exceptions ??= []).push(t.payload);
@@ -1814,161 +1814,161 @@ var ar = function(e) {
1814
1814
  case "measurement": (n.measurements ??= []).push(t.payload);
1815
1815
  }
1816
1816
  return n;
1817
- }, Hr = (e, t, n, r, i) => {
1818
- let a = JSON.stringify(e), o = Sr(), s = { "Content-Type": "application/json" };
1817
+ }, Ur = (e, t, n, r, i) => {
1818
+ let a = JSON.stringify(e), o = Cr(), s = { "Content-Type": "application/json" };
1819
1819
  if (o && (s["x-faro-session-id"] = o), n && typeof navigator < "u" && navigator.sendBeacon) {
1820
1820
  let e = new Blob([a], { type: "application/json" });
1821
- !navigator.sendBeacon(t, e) && i && Fr(i);
1821
+ !navigator.sendBeacon(t, e) && i && Ir(i);
1822
1822
  return;
1823
1823
  }
1824
- let c = a.length < Dr;
1824
+ let c = a.length < Or;
1825
1825
  fetch(t, {
1826
1826
  method: "POST",
1827
1827
  headers: s,
1828
1828
  body: a,
1829
1829
  keepalive: c
1830
1830
  }).then((e) => {
1831
- e.status === 429 && Rr(e.headers.get("Retry-After"), r), !e.ok && i && Fr(i);
1831
+ e.status === 429 && zr(e.headers.get("Retry-After"), r), !e.ok && i && Ir(i);
1832
1832
  }).catch(() => {
1833
- i && Fr(i);
1833
+ i && Ir(i);
1834
1834
  });
1835
- }, Ur = (e, t = !1) => {
1836
- if (Ar &&= (clearTimeout(Ar), null), kr.length === 0 && !J) return;
1837
- let n = kr;
1838
- kr = [];
1839
- let r = Date.now() < jr;
1840
- if (r && (Ir(n.length), !t)) return;
1841
- let i = r ? [] : n, a = Br();
1835
+ }, Wr = (e, t = !1) => {
1836
+ if (jr &&= (clearTimeout(jr), null), Ar.length === 0 && !J) return;
1837
+ let n = Ar;
1838
+ Ar = [];
1839
+ let r = Date.now() < Mr;
1840
+ if (r && (Lr(n.length), !t)) return;
1841
+ let i = r ? [] : n, a = Vr();
1842
1842
  try {
1843
- let n = Vr(a ? [...i, zr(a)] : i, e);
1843
+ let n = Hr(a ? [...i, Br(a)] : i, e);
1844
1844
  if (e.beforeSend) {
1845
1845
  let t = e.beforeSend(n);
1846
1846
  if (!t) {
1847
- a && Fr(a);
1847
+ a && Ir(a);
1848
1848
  return;
1849
1849
  }
1850
1850
  n = t;
1851
1851
  }
1852
- Hr(n, e.url, t, i.length, a);
1852
+ Ur(n, e.url, t, i.length, a);
1853
1853
  } catch {
1854
- a && Fr(a);
1854
+ a && Ir(a);
1855
1855
  }
1856
1856
  }, Y = (e, t) => {
1857
- kr.push(e);
1858
- let n = t.batching?.itemLimit ?? wr;
1859
- kr.length >= n ? Ur(t) : Pr(t);
1860
- }, Wr = (e) => {
1861
- if (kr = [], jr = 0, J = null, Ar &&= (clearTimeout(Ar), null), typeof document > "u") return;
1862
- Mr && document.removeEventListener("visibilitychange", Mr), Nr && window.removeEventListener("pagehide", Nr);
1863
- let t = () => Ur(e, !0);
1864
- Mr = () => {
1857
+ Ar.push(e);
1858
+ let n = t.batching?.itemLimit ?? Tr;
1859
+ Ar.length >= n ? Wr(t) : Fr(t);
1860
+ }, Gr = (e) => {
1861
+ if (Ar = [], Mr = 0, J = null, jr &&= (clearTimeout(jr), null), typeof document > "u") return;
1862
+ Nr && document.removeEventListener("visibilitychange", Nr), Pr && window.removeEventListener("pagehide", Pr);
1863
+ let t = () => Wr(e, !0);
1864
+ Nr = () => {
1865
1865
  document.visibilityState === "hidden" && t();
1866
- }, Nr = t, document.addEventListener("visibilitychange", Mr), window.addEventListener("pagehide", Nr);
1867
- }, Gr = () => (/* @__PURE__ */ new Date()).toISOString(), Kr = null, qr = null, Jr = (e) => {
1868
- typeof window < "u" && (Kr = (t) => {
1866
+ }, Pr = t, document.addEventListener("visibilitychange", Nr), window.addEventListener("pagehide", Pr);
1867
+ }, Kr = () => (/* @__PURE__ */ new Date()).toISOString(), qr = null, Jr = null, Yr = (e) => {
1868
+ typeof window < "u" && (qr = (t) => {
1869
1869
  let n = t.error instanceof Error ? t.error : Error(t.message);
1870
1870
  Y({
1871
1871
  type: "exception",
1872
1872
  payload: {
1873
1873
  type: n.name,
1874
1874
  value: n.message,
1875
- timestamp: Gr(),
1876
- stacktrace: n.stack ? { frames: lr(n.stack) } : void 0
1875
+ timestamp: Kr(),
1876
+ stacktrace: n.stack ? { frames: ur(n.stack) } : void 0
1877
1877
  }
1878
1878
  }, e);
1879
- }, qr = (t) => {
1879
+ }, Jr = (t) => {
1880
1880
  let n = t.reason, r = n instanceof Error ? n : Error(String(n));
1881
1881
  Y({
1882
1882
  type: "exception",
1883
1883
  payload: {
1884
1884
  type: r.name,
1885
1885
  value: r.message,
1886
- timestamp: Gr(),
1887
- stacktrace: r.stack ? { frames: lr(r.stack) } : void 0,
1886
+ timestamp: Kr(),
1887
+ stacktrace: r.stack ? { frames: ur(r.stack) } : void 0,
1888
1888
  context: { source: "unhandledrejection" }
1889
1889
  }
1890
1890
  }, e);
1891
- }, window.addEventListener("error", Kr), window.addEventListener("unhandledrejection", qr));
1892
- }, Yr = "odus_telemetry_session_id", Xr = () => {
1891
+ }, window.addEventListener("error", qr), window.addEventListener("unhandledrejection", Jr));
1892
+ }, Xr = "odus_telemetry_session_id", Zr = () => {
1893
1893
  let e = /* @__PURE__ */ new Uint8Array(16);
1894
1894
  return crypto.getRandomValues(e), Array.from(e, (e) => e.toString(16).padStart(2, "0")).join("");
1895
- }, Zr = (e) => {
1895
+ }, Qr = (e) => {
1896
1896
  if (e) return e;
1897
- if (typeof sessionStorage > "u") return Xr();
1897
+ if (typeof sessionStorage > "u") return Zr();
1898
1898
  try {
1899
- let e = sessionStorage.getItem(Yr);
1899
+ let e = sessionStorage.getItem(Xr);
1900
1900
  if (e) return e;
1901
- let t = Xr();
1902
- return sessionStorage.setItem(Yr, t), t;
1901
+ let t = Zr();
1902
+ return sessionStorage.setItem(Xr, t), t;
1903
1903
  } catch {
1904
- return Xr();
1904
+ return Zr();
1905
1905
  }
1906
- }, Qr = (e) => {
1907
- e.sessionTracking?.enabled && br({ id: Zr(e.sessionTracking.session?.id) });
1908
- }, $r = () => (/* @__PURE__ */ new Date()).toISOString(), ei = (e, t) => {
1906
+ }, $r = (e) => {
1907
+ e.sessionTracking?.enabled && xr({ id: Qr(e.sessionTracking.session?.id) });
1908
+ }, ei = () => (/* @__PURE__ */ new Date()).toISOString(), ti = (e, t) => {
1909
1909
  typeof PerformanceObserver < "u" && PerformanceObserver.supportedEntryTypes?.includes(e) && new PerformanceObserver((e) => {
1910
1910
  for (let n of e.getEntries()) t(n);
1911
1911
  }).observe({
1912
1912
  type: e,
1913
1913
  buffered: !0
1914
1914
  });
1915
- }, ti = (e) => {
1915
+ }, ni = (e) => {
1916
1916
  if (typeof window > "u") return;
1917
- ei("largest-contentful-paint", (t) => {
1917
+ ti("largest-contentful-paint", (t) => {
1918
1918
  Y({
1919
1919
  type: "measurement",
1920
1920
  payload: {
1921
1921
  type: "web-vitals",
1922
1922
  values: { lcp: t.startTime },
1923
- timestamp: $r()
1923
+ timestamp: ei()
1924
1924
  }
1925
1925
  }, e);
1926
1926
  });
1927
1927
  let t = 0;
1928
- ei("layout-shift", (n) => {
1928
+ ti("layout-shift", (n) => {
1929
1929
  let r = n;
1930
1930
  r.hadRecentInput || (t += r.value, Y({
1931
1931
  type: "measurement",
1932
1932
  payload: {
1933
1933
  type: "web-vitals",
1934
1934
  values: { cls: t },
1935
- timestamp: $r()
1935
+ timestamp: ei()
1936
1936
  }
1937
1937
  }, e));
1938
- }), ei("event", (t) => {
1938
+ }), ti("event", (t) => {
1939
1939
  let n = t;
1940
1940
  n.duration > 0 && Y({
1941
1941
  type: "measurement",
1942
1942
  payload: {
1943
1943
  type: "web-vitals",
1944
1944
  values: { inp: n.duration },
1945
- timestamp: $r()
1945
+ timestamp: ei()
1946
1946
  }
1947
1947
  }, e);
1948
1948
  });
1949
- }, ni = {
1949
+ }, ri = {
1950
1950
  TRACE: "trace",
1951
1951
  DEBUG: "debug",
1952
1952
  INFO: "info",
1953
1953
  LOG: "log",
1954
1954
  WARN: "warn",
1955
1955
  ERROR: "error"
1956
- }, ri = () => (/* @__PURE__ */ new Date()).toISOString(), ii = (e) => {
1957
- _r(e), Wr(e);
1956
+ }, ii = () => (/* @__PURE__ */ new Date()).toISOString(), ai = (e) => {
1957
+ vr(e), Gr(e);
1958
1958
  let t = e.instrumentations ?? {
1959
1959
  errors: !0,
1960
1960
  webVitals: !0,
1961
1961
  session: !0
1962
1962
  };
1963
- return t.session !== !1 && Qr(e), t.errors !== !1 && Jr(e), t.webVitals !== !1 && ti(e), {
1963
+ return t.session !== !1 && $r(e), t.errors !== !1 && Yr(e), t.webVitals !== !1 && ni(e), {
1964
1964
  pushError(t, n) {
1965
1965
  Y({
1966
1966
  type: "exception",
1967
1967
  payload: {
1968
1968
  type: t.name,
1969
1969
  value: t.message,
1970
- timestamp: ri(),
1971
- stacktrace: t.stack ? { frames: lr(t.stack) } : void 0,
1970
+ timestamp: ii(),
1971
+ stacktrace: t.stack ? { frames: ur(t.stack) } : void 0,
1972
1972
  context: n?.context
1973
1973
  }
1974
1974
  }, e);
@@ -1978,7 +1978,7 @@ var ar = function(e) {
1978
1978
  type: "event",
1979
1979
  payload: {
1980
1980
  name: t,
1981
- timestamp: ri(),
1981
+ timestamp: ii(),
1982
1982
  attributes: n
1983
1983
  }
1984
1984
  }, e);
@@ -1989,7 +1989,7 @@ var ar = function(e) {
1989
1989
  payload: {
1990
1990
  type: t.type,
1991
1991
  values: t.values,
1992
- timestamp: ri(),
1992
+ timestamp: ii(),
1993
1993
  context: t.context
1994
1994
  }
1995
1995
  }, e);
@@ -1999,46 +1999,46 @@ var ar = function(e) {
1999
1999
  type: "log",
2000
2000
  payload: {
2001
2001
  message: t.join(" "),
2002
- level: n?.level ?? ni.INFO,
2003
- timestamp: ri(),
2002
+ level: n?.level ?? ri.INFO,
2003
+ timestamp: ii(),
2004
2004
  context: n?.context
2005
2005
  }
2006
2006
  }, e);
2007
2007
  },
2008
2008
  setUser(e) {
2009
- vr(e);
2009
+ yr(e);
2010
2010
  },
2011
2011
  resetUser() {
2012
- yr();
2012
+ br();
2013
2013
  },
2014
2014
  setView(e) {
2015
- xr(e);
2015
+ Sr(e);
2016
2016
  },
2017
2017
  flush() {
2018
- Ur(e);
2018
+ Wr(e);
2019
2019
  }
2020
2020
  };
2021
- }, ai = (e) => e === "test" ? "https://sandbox-analytics.odus.com/collect" : "https://analytics.odus.com/collect", oi = () => {
2021
+ }, oi = (e) => e === "test" ? "https://sandbox-analytics.odus.com/collect" : "https://analytics.odus.com/collect", si = () => {
2022
2022
  if (typeof window > "u") return !1;
2023
2023
  let e = window.location.hostname;
2024
2024
  return e === "localhost" || e === "127.0.0.1" || e === "0.0.0.0" || e === "::1" || e === "[::1]" || e.endsWith(".localhost");
2025
- }, X = null, si = null, ci = { delivery: "bundled" }, li = null, ui = "checkout.runtime.load_time", di = (e) => ({
2025
+ }, X = null, ci = null, li = { delivery: "bundled" }, ui = null, di = "checkout.runtime.load_time", fi = (e) => ({
2026
2026
  ...e,
2027
- ...ci,
2028
- ...si && { integration: si }
2029
- }), fi = () => {
2030
- if (li === null) return;
2031
- let e = li;
2032
- li = null, hi(ui, e, "ms");
2033
- }, pi = (e) => {
2027
+ ...li,
2028
+ ...ci && { integration: ci }
2029
+ }), pi = () => {
2030
+ if (ui === null) return;
2031
+ let e = ui;
2032
+ ui = null, gi(di, e, "ms");
2033
+ }, mi = (e) => {
2034
2034
  if (X) return X;
2035
- if (oi()) return null;
2036
- let t = ai(e.environment);
2037
- return si = e.integration, X = ii({
2035
+ if (si()) return null;
2036
+ let t = oi(e.environment);
2037
+ return ci = e.integration, X = ai({
2038
2038
  url: t,
2039
2039
  app: {
2040
2040
  name: "odus-checkout",
2041
- version: "1.17.1",
2041
+ version: "1.18.0",
2042
2042
  environment: e.environment === "test" ? "sandbox" : "production"
2043
2043
  },
2044
2044
  isolate: !0,
@@ -2067,34 +2067,34 @@ var ar = function(e) {
2067
2067
  } catch {}
2068
2068
  return e;
2069
2069
  }
2070
- }), fi(), X;
2071
- }, mi = (e, t) => {
2072
- X && X.pushError(e, { context: di(t) });
2070
+ }), pi(), X;
2071
+ }, hi = (e, t) => {
2072
+ X && X.pushError(e, { context: fi(t) });
2073
2073
  }, Z = (e, t) => {
2074
- X && X.pushEvent(e, di(t));
2075
- }, hi = (e, t, n, r) => {
2074
+ X && X.pushEvent(e, fi(t));
2075
+ }, gi = (e, t, n, r) => {
2076
2076
  X && X.pushMeasurement({
2077
2077
  type: e,
2078
2078
  values: { [e]: t },
2079
- context: di({
2079
+ context: fi({
2080
2080
  ...n && { unit: n },
2081
2081
  ...r
2082
2082
  })
2083
2083
  });
2084
- }, gi = (e, t = "info", n) => {
2084
+ }, _i = (e, t = "info", n) => {
2085
2085
  if (!X) return;
2086
2086
  let r = {
2087
- info: ni.INFO,
2088
- warn: ni.WARN,
2089
- error: ni.ERROR
2087
+ info: ri.INFO,
2088
+ warn: ri.WARN,
2089
+ error: ri.ERROR
2090
2090
  };
2091
2091
  X.pushLog([e], {
2092
2092
  level: r[t],
2093
- context: di(n)
2093
+ context: fi(n)
2094
2094
  });
2095
- }, _i = () => {
2095
+ }, vi = () => {
2096
2096
  X && X.flush();
2097
- }, vi = "unknown", yi = /* @__PURE__ */ new Set([
2097
+ }, yi = "unknown", bi = /* @__PURE__ */ new Set([
2098
2098
  "Error",
2099
2099
  "AggregateError",
2100
2100
  "EvalError",
@@ -2114,19 +2114,19 @@ var ar = function(e) {
2114
2114
  "SecurityError",
2115
2115
  "TimeoutError",
2116
2116
  "ChunkLoadError"
2117
- ]), bi = (e) => {
2118
- if (typeof e != "object" || !e) return vi;
2117
+ ]), xi = (e) => {
2118
+ if (typeof e != "object" || !e) return yi;
2119
2119
  try {
2120
2120
  let { name: t } = e;
2121
- return typeof t == "string" && yi.has(t) ? t : vi;
2121
+ return typeof t == "string" && bi.has(t) ? t : yi;
2122
2122
  } catch {
2123
- return vi;
2123
+ return yi;
2124
2124
  }
2125
- }, xi = /* @__PURE__ */ new WeakMap(), Si = (e) => typeof e == "object" && !!e || typeof e == "function", Ci = (e, t) => (Si(e) && xi.set(e, t), e), wi = (e) => Si(e) ? xi.get(e) : void 0, Ti = [
2125
+ }, Si = /* @__PURE__ */ new WeakMap(), Ci = (e) => typeof e == "object" && !!e || typeof e == "function", wi = (e, t) => (Ci(e) && Si.set(e, t), e), Ti = (e) => Ci(e) ? Si.get(e) : void 0, Ei = [
2126
2126
  i.NETWORK,
2127
2127
  i.INVALID_RESPONSE,
2128
2128
  i.SDK_ERROR
2129
- ], Ei = [i.INVALID_RESPONSE, i.SDK_ERROR], Di = (e, t) => {
2129
+ ], Di = [i.INVALID_RESPONSE, i.SDK_ERROR], Oi = (e, t) => {
2130
2130
  let n = w(e);
2131
2131
  return {
2132
2132
  reason: u.ASSOCIATION_FAILED,
@@ -2134,20 +2134,20 @@ var ar = function(e) {
2134
2134
  ...n,
2135
2135
  association_stage: t
2136
2136
  },
2137
- ours: Ti.includes(n.failure_class)
2137
+ ours: Ei.includes(n.failure_class)
2138
2138
  };
2139
- }, Oi = (e, t) => {
2140
- if (wi(e)) return ki(e, t);
2139
+ }, ki = (e, t) => {
2140
+ if (Ti(e)) return Ai(e, t);
2141
2141
  let n = w(e);
2142
2142
  return {
2143
2143
  outcome: p.FAILED,
2144
2144
  reason: g.AUTHORIZE_FAILED,
2145
2145
  attributes: { ...n },
2146
- fault: Ei.includes(n.failure_class) ? m.OURS : m.NOT_OURS,
2146
+ fault: Di.includes(n.failure_class) ? m.OURS : m.NOT_OURS,
2147
2147
  paymentMethod: t
2148
2148
  };
2149
- }, ki = (e, t) => {
2150
- let n = wi(e) ?? s.SDK_ERROR;
2149
+ }, Ai = (e, t) => {
2150
+ let n = Ti(e) ?? s.SDK_ERROR;
2151
2151
  return {
2152
2152
  outcome: p.FAILED,
2153
2153
  reason: g.TOKENIZATION_FAILED,
@@ -2155,50 +2155,50 @@ var ar = function(e) {
2155
2155
  fault: n === s.INVALID_INPUT ? m.NOT_OURS : m.OURS,
2156
2156
  paymentMethod: t
2157
2157
  };
2158
- }, Ai = (e) => ({
2158
+ }, ji = (e) => ({
2159
2159
  outcome: p.FAILED,
2160
2160
  reason: g.APPLE_PAY_START_FAILED,
2161
2161
  attributes: { apple_pay_stage: e },
2162
2162
  fault: m.OURS,
2163
2163
  paymentMethod: "apple_pay"
2164
- }), ji = (e) => ({
2164
+ }), Mi = (e) => ({
2165
2165
  outcome: p.FAILED,
2166
2166
  reason: g.AUTHORIZE_FAILED,
2167
2167
  attributes: {
2168
2168
  failure_class: i.SDK_ERROR,
2169
2169
  http_status: a,
2170
- error_class: bi(e)
2170
+ error_class: xi(e)
2171
2171
  },
2172
2172
  fault: m.OURS,
2173
2173
  paymentMethod: "apple_pay"
2174
- }), Mi = "verygoodvault.com", Ni = !1, Pi = !1, Fi = (e) => {
2174
+ }), Ni = "verygoodvault.com", Pi = !1, Fi = !1, Ii = (e) => {
2175
2175
  if (typeof e != "string") return !1;
2176
2176
  try {
2177
2177
  let { hostname: t } = new URL(e);
2178
- return t === Mi || t.endsWith(`.${Mi}`);
2178
+ return t === Ni || t.endsWith(`.${Ni}`);
2179
2179
  } catch {
2180
2180
  return !1;
2181
2181
  }
2182
- }, Ii = (e) => {
2182
+ }, Li = (e) => {
2183
2183
  let t = e;
2184
- t.disposition !== "report" && Fi(t.blockedURI) && (Pi = !0);
2185
- }, Li = () => {
2186
- Ni || typeof document > "u" || (Ni = !0, document.addEventListener("securitypolicyviolation", Ii));
2187
- }, Ri = () => Pi, zi = "3.3.0", Bi = /* @__PURE__ */ new Map(), Vi = (e) => {
2188
- let t = Bi.get(e);
2184
+ t.disposition !== "report" && Ii(t.blockedURI) && (Fi = !0);
2185
+ }, Ri = () => {
2186
+ Pi || typeof document > "u" || (Pi = !0, document.addEventListener("securitypolicyviolation", Li));
2187
+ }, zi = () => Fi, Bi = "3.3.0", Vi = /* @__PURE__ */ new Map(), Hi = (e) => {
2188
+ let t = Vi.get(e);
2189
2189
  if (t) return t;
2190
- Li();
2190
+ Ri();
2191
2191
  let n = ar({
2192
2192
  vaultId: O[e],
2193
2193
  environment: k[e],
2194
- version: zi
2194
+ version: Bi
2195
2195
  }).catch((t) => {
2196
- throw Bi.delete(e), t;
2196
+ throw Vi.delete(e), t;
2197
2197
  });
2198
- return Bi.set(e, n), n;
2199
- }, Hi = (e) => {
2200
- Vi(e).catch(() => void 0);
2201
- }, Ui = class e {
2198
+ return Vi.set(e, n), n;
2199
+ }, Ui = (e) => {
2200
+ Hi(e).catch(() => void 0);
2201
+ }, Wi = class e {
2202
2202
  vgsForm = null;
2203
2203
  fields = [];
2204
2204
  _namedFields = {};
@@ -2214,7 +2214,7 @@ var ar = function(e) {
2214
2214
  });
2215
2215
  }
2216
2216
  async init(e) {
2217
- return this.environment = e, Vi(e);
2217
+ return this.environment = e, Hi(e);
2218
2218
  }
2219
2219
  createForm(e, t) {
2220
2220
  if (!this.environment) throw Error("VGS not initialized — call init() first");
@@ -2330,7 +2330,7 @@ var ar = function(e) {
2330
2330
  Z(n.VGS_IFRAME_LOADED, {
2331
2331
  field_type: a,
2332
2332
  duration_ms: String(e)
2333
- }), hi(r.VGS_IFRAME_LOAD_TIME, e, "ms", { field_type: a });
2333
+ }), gi(r.VGS_IFRAME_LOAD_TIME, e, "ms", { field_type: a });
2334
2334
  }), new Promise((e, t) => {
2335
2335
  s = setTimeout(() => {
2336
2336
  this._loadTimeouts.delete(s), Z(n.VGS_IFRAME_LOAD_FAILED, {
@@ -2349,7 +2349,7 @@ var ar = function(e) {
2349
2349
  } catch {}
2350
2350
  }
2351
2351
  async createCard(t) {
2352
- if (!this.vgsForm) throw Ci(/* @__PURE__ */ Error("VGS form not initialized"), s.NOT_INITIALIZED);
2352
+ if (!this.vgsForm) throw wi(/* @__PURE__ */ Error("VGS form not initialized"), s.NOT_INITIALIZED);
2353
2353
  let i = this.vgsForm, a = Date.now();
2354
2354
  Z(n.VGS_TOKENIZATION_STARTED);
2355
2355
  let o = (e) => {
@@ -2357,7 +2357,7 @@ var ar = function(e) {
2357
2357
  Z(n.VGS_TOKENIZATION_SUCCESS, {
2358
2358
  duration_ms: String(t),
2359
2359
  ...e
2360
- }), hi(r.VGS_TOKENIZATION_TIME, t, "ms", { status: "success" });
2360
+ }), gi(r.VGS_TOKENIZATION_TIME, t, "ms", { status: "success" });
2361
2361
  }, c = (e, t, i, o, s) => {
2362
2362
  let c = Date.now() - a;
2363
2363
  return Z(n.VGS_TOKENIZATION_FAILED, {
@@ -2366,7 +2366,7 @@ var ar = function(e) {
2366
2366
  error_code: t,
2367
2367
  ...s !== void 0 && { http_status: String(s) },
2368
2368
  ...o
2369
- }), hi(r.VGS_TOKENIZATION_TIME, c, "ms", { status: "failed" }), Ci(e, t);
2369
+ }), gi(r.VGS_TOKENIZATION_TIME, c, "ms", { status: "failed" }), wi(e, t);
2370
2370
  }, l = await t.current(), u = await e.submitCard(i, l);
2371
2371
  if ("status" in u && u.status === 401 && await t.renew("unauthorized") && (l = t.jwt, u = await e.submitCard(i, l)), "errors" in u) {
2372
2372
  let { errors: t } = u;
@@ -2470,7 +2470,7 @@ var ar = function(e) {
2470
2470
  elo: "unknown"
2471
2471
  }[e] ?? "unknown" : "unknown";
2472
2472
  }
2473
- }, Wi = (e) => async () => (await D(e)).vgsJwt, Gi = class {
2473
+ }, Gi = (e) => async () => (await D(e)).vgsJwt, Ki = class {
2474
2474
  _jwt;
2475
2475
  _receivedAt;
2476
2476
  _renewer;
@@ -2506,7 +2506,7 @@ var ar = function(e) {
2506
2506
  }
2507
2507
  return s ? (this._receivedAt = Date.now(), s === this._jwt ? (r("unchanged"), !1) : (this._jwt = s, r("renewed"), !0)) : (r("failed"), !1);
2508
2508
  }
2509
- }, Ki = [
2509
+ }, qi = [
2510
2510
  {
2511
2511
  origin: "https://js.verygoodvault.com",
2512
2512
  crossOrigin: !1
@@ -2523,27 +2523,27 @@ var ar = function(e) {
2523
2523
  origin: "https://fonts.gstatic.com",
2524
2524
  crossOrigin: !0
2525
2525
  }
2526
- ], qi = "none", Ji = "anonymous", Yi = "use-credentials", Xi = (e) => {
2526
+ ], Ji = "none", Yi = "anonymous", Xi = "use-credentials", Zi = (e) => {
2527
2527
  let t = e.getAttribute("crossorigin");
2528
- return t === null ? qi : t.toLowerCase() === Yi ? Yi : Ji;
2529
- }, Zi = (e) => {
2528
+ return t === null ? Ji : t.toLowerCase() === Xi ? Xi : Yi;
2529
+ }, Qi = (e) => {
2530
2530
  try {
2531
2531
  return new URL(e, document.baseURI).origin;
2532
2532
  } catch {
2533
2533
  return null;
2534
2534
  }
2535
- }, Qi = () => {
2535
+ }, $i = () => {
2536
2536
  if (!document.head) return;
2537
2537
  let e = [...document.head.querySelectorAll("link[rel~=\"preconnect\" i]")];
2538
- for (let t of Ki) {
2539
- let n = t.crossOrigin ? Ji : qi;
2540
- if (e.some((e) => Zi(e.href) === t.origin && Xi(e) === n)) continue;
2538
+ for (let t of qi) {
2539
+ let n = t.crossOrigin ? Yi : Ji;
2540
+ if (e.some((e) => Qi(e.href) === t.origin && Zi(e) === n)) continue;
2541
2541
  let r = document.createElement("link");
2542
- r.rel = "preconnect", r.href = t.origin, t.crossOrigin && r.setAttribute("crossorigin", Ji), document.head.appendChild(r);
2542
+ r.rel = "preconnect", r.href = t.origin, t.crossOrigin && r.setAttribute("crossorigin", Yi), document.head.appendChild(r);
2543
2543
  }
2544
- }, $i = () => {
2545
- typeof document < "u" && queueMicrotask(Qi);
2546
- }, ea = 3e4, ta = [c.INIT_FAILED, c.FIELDS_NOT_READY], na = class {
2544
+ }, ea = () => {
2545
+ typeof document < "u" && queueMicrotask($i);
2546
+ }, ta = 3e4, na = [c.INIT_FAILED, c.FIELDS_NOT_READY], ra = class {
2547
2547
  _constructedAt = performance.now();
2548
2548
  _deadlineMs;
2549
2549
  _mountedAt;
@@ -2556,7 +2556,7 @@ var ar = function(e) {
2556
2556
  _outcome;
2557
2557
  _submitReported = !1;
2558
2558
  _onPageHide = () => this.leave();
2559
- constructor({ deadlineMs: e = ea } = {}) {
2559
+ constructor({ deadlineMs: e = ta } = {}) {
2560
2560
  this._deadlineMs = e;
2561
2561
  }
2562
2562
  get outcome() {
@@ -2581,7 +2581,7 @@ var ar = function(e) {
2581
2581
  this._outcome || this._mountedAt !== void 0 && this._associatedAt !== void 0 && this._finish(f.READY, m.NONE);
2582
2582
  }
2583
2583
  fail(e) {
2584
- this._outcome || (ta.includes(e.reason) && Ri() ? this.exclude({
2584
+ this._outcome || (na.includes(e.reason) && zi() ? this.exclude({
2585
2585
  reason: u.VGS_BLOCKED_BY_CSP,
2586
2586
  attributes: {
2587
2587
  ...e.attributes,
@@ -2598,7 +2598,7 @@ var ar = function(e) {
2598
2598
  leave() {
2599
2599
  if (this._outcome || !this._stageStarted) return;
2600
2600
  let e = this._latestNotOurs();
2601
- this._finish(f.LEFT, e ? m.NOT_OURS : m.NONE, e), _i();
2601
+ this._finish(f.LEFT, e ? m.NOT_OURS : m.NONE, e), vi();
2602
2602
  }
2603
2603
  reportSubmit(e) {
2604
2604
  if (this._outcome !== f.READY || this._submitReported) return;
@@ -2642,20 +2642,20 @@ var ar = function(e) {
2642
2642
  status: e,
2643
2643
  reason: t
2644
2644
  };
2645
- hi(r.CHECKOUT_LOAD_TIME, n - this._constructedAt, "ms", i), this._mountedAt !== void 0 && this._associatedAt !== void 0 && hi(r.FORM_RENDER_TIME, n - Math.max(this._mountedAt, this._associatedAt), "ms", i);
2645
+ gi(r.CHECKOUT_LOAD_TIME, n - this._constructedAt, "ms", i), this._mountedAt !== void 0 && this._associatedAt !== void 0 && gi(r.FORM_RENDER_TIME, n - Math.max(this._mountedAt, this._associatedAt), "ms", i);
2646
2646
  }
2647
- }, ra = (e) => {
2647
+ }, ia = (e) => {
2648
2648
  let t = e?.message;
2649
2649
  if (typeof t == "string") return t || void 0;
2650
2650
  if (Array.isArray(t) && typeof t[0] == "string") return t[0] || void 0;
2651
- }, ia = null, aa = null;
2652
- function oa() {
2653
- return ia ? Promise.resolve(ia) : aa || (aa = import("./phone.js").then((e) => (ia = e, ia)), aa);
2654
- }
2651
+ }, aa = null, oa = null;
2655
2652
  function sa() {
2656
- return ia;
2653
+ return aa ? Promise.resolve(aa) : oa || (oa = import("./phone.js").then((e) => (aa = e, aa)), oa);
2654
+ }
2655
+ function ca() {
2656
+ return aa;
2657
2657
  }
2658
- var ca = new class {
2658
+ var la = new class {
2659
2659
  events = /* @__PURE__ */ new Map();
2660
2660
  subscribe(e, t) {
2661
2661
  return this.events.has(e) || this.events.set(e, /* @__PURE__ */ new Set()), this.events.get(e)?.add(t), () => {
@@ -2673,12 +2673,12 @@ var ca = new class {
2673
2673
  subscriberCount(e) {
2674
2674
  return this.events.get(e)?.size || 0;
2675
2675
  }
2676
- }(), la = class {
2676
+ }(), ua = class {
2677
2677
  state;
2678
2678
  initialState;
2679
2679
  eventBus;
2680
2680
  stateChangedEvent = "state-changed";
2681
- constructor(e, t = ca) {
2681
+ constructor(e, t = la) {
2682
2682
  this.initialState = { ...e }, this.state = { ...e }, this.eventBus = t;
2683
2683
  }
2684
2684
  getState() {
@@ -2701,12 +2701,12 @@ var ca = new class {
2701
2701
  return this.state[e];
2702
2702
  }
2703
2703
  };
2704
- function ua(e) {
2705
- return new la(e);
2704
+ function da(e) {
2705
+ return new ua(e);
2706
2706
  }
2707
2707
  //#endregion
2708
2708
  //#region libs/checkout/src/factories/createCheckoutProfile.ts
2709
- function da(e) {
2709
+ function fa(e) {
2710
2710
  return {
2711
2711
  name: "Custom Appearance",
2712
2712
  additionalPaymentMethods: e.additionalPaymentMethods || {},
@@ -2802,14 +2802,14 @@ function da(e) {
2802
2802
  } : void 0 } : void 0 }
2803
2803
  };
2804
2804
  }
2805
- function fa({ appearance: e }) {
2806
- let t = ua({
2805
+ function pa({ appearance: e }) {
2806
+ let t = da({
2807
2807
  checkoutProfile: void 0,
2808
2808
  isLoading: !0,
2809
2809
  error: null
2810
2810
  });
2811
2811
  if (e) {
2812
- let n = da(e);
2812
+ let n = fa(e);
2813
2813
  return Promise.resolve().then(() => {
2814
2814
  t.setState({
2815
2815
  checkoutProfile: n,
@@ -2820,7 +2820,7 @@ function fa({ appearance: e }) {
2820
2820
  getState: t.getState.bind(t),
2821
2821
  subscribe: t.subscribe.bind(t),
2822
2822
  updateProfile: (e) => {
2823
- let n = da(e);
2823
+ let n = fa(e);
2824
2824
  t.setState({
2825
2825
  checkoutProfile: n,
2826
2826
  isLoading: !1,
@@ -2866,7 +2866,7 @@ function fa({ appearance: e }) {
2866
2866
  getState: t.getState.bind(t),
2867
2867
  subscribe: t.subscribe.bind(t),
2868
2868
  updateProfile: (e) => {
2869
- let n = da(e);
2869
+ let n = fa(e);
2870
2870
  t.setState({
2871
2871
  checkoutProfile: n,
2872
2872
  isLoading: !1,
@@ -2878,60 +2878,60 @@ function fa({ appearance: e }) {
2878
2878
  }
2879
2879
  //#endregion
2880
2880
  //#region libs/enums/dist/lib/australia-states.enum.js
2881
- var pa;
2881
+ var ma;
2882
2882
  (function(e) {
2883
2883
  e.AustralianCapitalTerritory = "ACT", e.NewSouthWales = "NSW", e.NorthernTerritory = "NT", e.Queensland = "QLD", e.SouthAustralia = "SA", e.Tasmania = "TAS", e.Victoria = "VIC", e.WesternAustralia = "WA";
2884
- })(pa ||= {});
2884
+ })(ma ||= {});
2885
2885
  //#endregion
2886
2886
  //#region libs/enums/dist/lib/canada-provinces.enum.js
2887
- var ma;
2887
+ var ha;
2888
2888
  (function(e) {
2889
2889
  e.Alberta = "AB", e.BritishColumbia = "BC", e.Manitoba = "MB", e.NewBrunswick = "NB", e.NewfoundlandAndLabrador = "NL", e.NorthwestTerritories = "NT", e.NovaScotia = "NS", e.Nunavut = "NU", e.Ontario = "ON", e.PrinceEdwardIsland = "PE", e.Quebec = "QC", e.Saskatchewan = "SK", e.Yukon = "YT";
2890
- })(ma ||= {});
2890
+ })(ha ||= {});
2891
2891
  //#endregion
2892
2892
  //#region libs/enums/dist/lib/countries.enum.js
2893
- var ha;
2893
+ var ga;
2894
2894
  (function(e) {
2895
2895
  e.Afghanistan = "AF", e.AlandIslands = "AX", e.Albania = "AL", e.Algeria = "DZ", e.AmericanSamoa = "AS", e.Andorra = "AD", e.Angola = "AO", e.Anguilla = "AI", e.Antarctica = "AQ", e.AntiguaAndBarbuda = "AG", e.Argentina = "AR", e.Armenia = "AM", e.Aruba = "AW", e.Australia = "AU", e.Austria = "AT", e.Azerbaijan = "AZ", e.Bahamas = "BS", e.Bahrain = "BH", e.Bangladesh = "BD", e.Barbados = "BB", e.Belarus = "BY", e.Belgium = "BE", e.Belize = "BZ", e.Benin = "BJ", e.Bermuda = "BM", e.Bhutan = "BT", e.Bolivia = "BO", e.BonaireSintEustatiusSaba = "BQ", e.BosniaAndHerzegovina = "BA", e.Botswana = "BW", e.BouvetIsland = "BV", e.Brazil = "BR", e.BritishIndianOceanTerritory = "IO", e.BruneiDarussalam = "BN", e.Bulgaria = "BG", e.BurkinaFaso = "BF", e.Burundi = "BI", e.Cambodia = "KH", e.Cameroon = "CM", e.Canada = "CA", e.CapeVerde = "CV", e.CaymanIslands = "KY", e.CentralAfricanRepublic = "CF", e.Chad = "TD", e.Chile = "CL", e.China = "CN", e.ChristmasIsland = "CX", e.CocosKeelingIslands = "CC", e.Colombia = "CO", e.Comoros = "KM", e.Congo = "CG", e.CongoDemocraticRepublic = "CD", e.CookIslands = "CK", e.CostaRica = "CR", e.CoteDIvoire = "CI", e.Croatia = "HR", e.Cuba = "CU", e.Curacao = "CW", e.Cyprus = "CY", e.CzechRepublic = "CZ", e.Denmark = "DK", e.Djibouti = "DJ", e.Dominica = "DM", e.DominicanRepublic = "DO", e.Ecuador = "EC", e.Egypt = "EG", e.ElSalvador = "SV", e.EquatorialGuinea = "GQ", e.Eritrea = "ER", e.Estonia = "EE", e.Ethiopia = "ET", e.FalklandIslands = "FK", e.FaroeIslands = "FO", e.Fiji = "FJ", e.Finland = "FI", e.France = "FR", e.FrenchGuiana = "GF", e.FrenchPolynesia = "PF", e.FrenchSouthernTerritories = "TF", e.Gabon = "GA", e.Gambia = "GM", e.Georgia = "GE", e.Germany = "DE", e.Ghana = "GH", e.Gibraltar = "GI", e.Greece = "GR", e.Greenland = "GL", e.Grenada = "GD", e.Guadeloupe = "GP", e.Guam = "GU", e.Guatemala = "GT", e.Guernsey = "GG", e.Guinea = "GN", e.GuineaBissau = "GW", e.Guyana = "GY", e.Haiti = "HT", e.HeardIslandMcdonaldIslands = "HM", e.HolySeeVaticanCityState = "VA", e.Honduras = "HN", e.HongKong = "HK", e.Hungary = "HU", e.Iceland = "IS", e.India = "IN", e.Indonesia = "ID", e.Iran = "IR", e.Iraq = "IQ", e.Ireland = "IE", e.IsleOfMan = "IM", e.Israel = "IL", e.Italy = "IT", e.Jamaica = "JM", e.Japan = "JP", e.Jersey = "JE", e.Jordan = "JO", e.Kazakhstan = "KZ", e.Kenya = "KE", e.Kiribati = "KI", e.Korea = "KR", e.KoreaDemocraticPeoplesRepublic = "KP", e.Kuwait = "KW", e.Kyrgyzstan = "KG", e.LaoPeoplesDemocraticRepublic = "LA", e.Latvia = "LV", e.Lebanon = "LB", e.Lesotho = "LS", e.Liberia = "LR", e.LibyanArabJamahiriya = "LY", e.Liechtenstein = "LI", e.Lithuania = "LT", e.Luxembourg = "LU", e.Macao = "MO", e.Macedonia = "MK", e.Madagascar = "MG", e.Malawi = "MW", e.Malaysia = "MY", e.Maldives = "MV", e.Mali = "ML", e.Malta = "MT", e.MarshallIslands = "MH", e.Martinique = "MQ", e.Mauritania = "MR", e.Mauritius = "MU", e.Mayotte = "YT", e.Mexico = "MX", e.Micronesia = "FM", e.Moldova = "MD", e.Monaco = "MC", e.Mongolia = "MN", e.Montenegro = "ME", e.Montserrat = "MS", e.Morocco = "MA", e.Mozambique = "MZ", e.Myanmar = "MM", e.Namibia = "NA", e.Nauru = "NR", e.Nepal = "NP", e.Netherlands = "NL", e.NewCaledonia = "NC", e.NewZealand = "NZ", e.Nicaragua = "NI", e.Niger = "NE", e.Nigeria = "NG", e.Niue = "NU", e.NorfolkIsland = "NF", e.NorthernMarianaIslands = "MP", e.Norway = "NO", e.Oman = "OM", e.Pakistan = "PK", e.Palau = "PW", e.PalestinianTerritory = "PS", e.Panama = "PA", e.PapuaNewGuinea = "PG", e.Paraguay = "PY", e.Peru = "PE", e.Philippines = "PH", e.Pitcairn = "PN", e.Poland = "PL", e.Portugal = "PT", e.PuertoRico = "PR", e.Qatar = "QA", e.Reunion = "RE", e.Romania = "RO", e.RussianFederation = "RU", e.Rwanda = "RW", e.SaintBarthelemy = "BL", e.SaintHelena = "SH", e.SaintKittsAndNevis = "KN", e.SaintLucia = "LC", e.SaintMartin = "MF", e.SaintPierreAndMiquelon = "PM", e.SaintVincentAndGrenadines = "VC", e.Samoa = "WS", e.SanMarino = "SM", e.SaoTomeAndPrincipe = "ST", e.SaudiArabia = "SA", e.Senegal = "SN", e.Serbia = "RS", e.Seychelles = "SC", e.SierraLeone = "SL", e.Singapore = "SG", e.SintMaarten = "SX", e.Slovakia = "SK", e.Slovenia = "SI", e.SolomonIslands = "SB", e.Somalia = "SO", e.SouthAfrica = "ZA", e.SouthGeorgiaAndSandwichIsl = "GS", e.SouthSudan = "SS", e.Spain = "ES", e.SriLanka = "LK", e.Sudan = "SD", e.Suriname = "SR", e.SvalbardAndJanMayen = "SJ", e.Swaziland = "SZ", e.Sweden = "SE", e.Switzerland = "CH", e.SyrianArabRepublic = "SY", e.Taiwan = "TW", e.Tajikistan = "TJ", e.Tanzania = "TZ", e.Thailand = "TH", e.TimorLeste = "TL", e.Togo = "TG", e.Tokelau = "TK", e.Tonga = "TO", e.TrinidadAndTobago = "TT", e.Tunisia = "TN", e.Turkey = "TR", e.Turkmenistan = "TM", e.TurksAndCaicosIslands = "TC", e.Tuvalu = "TV", e.Uganda = "UG", e.Ukraine = "UA", e.UnitedArabEmirates = "AE", e.UnitedKingdom = "GB", e.UnitedStates = "US", e.UnitedStatesOutlyingIslands = "UM", e.Uruguay = "UY", e.Uzbekistan = "UZ", e.Vanuatu = "VU", e.Venezuela = "VE", e.Vietnam = "VN", e.VirginIslandsBritish = "VG", e.VirginIslandsUS = "VI", e.WallisAndFutuna = "WF", e.WesternSahara = "EH", e.Yemen = "YE", e.Zambia = "ZM", e.Zimbabwe = "ZW";
2896
- })(ha ||= {});
2896
+ })(ga ||= {});
2897
2897
  //#endregion
2898
2898
  //#region libs/enums/dist/lib/currency.enum.js
2899
- var ga;
2899
+ var _a;
2900
2900
  (function(e) {
2901
2901
  e.usd = "usd", e.eur = "eur", e.gbp = "gbp", e.cad = "cad", e.aud = "aud", e.pln = "pln", e.czk = "czk", e.sek = "sek", e.dkk = "dkk";
2902
- })(ga ||= {});
2902
+ })(_a ||= {});
2903
2903
  //#endregion
2904
2904
  //#region libs/enums/dist/lib/us-states.enum.js
2905
- var _a;
2905
+ var va;
2906
2906
  (function(e) {
2907
2907
  e.Alabama = "AL", e.Alaska = "AK", e.Arizona = "AZ", e.Arkansas = "AR", e.California = "CA", e.Colorado = "CO", e.Connecticut = "CT", e.Delaware = "DE", e.DistrictOfColumbia = "DC", e.Florida = "FL", e.Georgia = "GA", e.Hawaii = "HI", e.Idaho = "ID", e.Illinois = "IL", e.Indiana = "IN", e.Iowa = "IA", e.Kansas = "KS", e.Kentucky = "KY", e.Louisiana = "LA", e.Maine = "ME", e.Maryland = "MD", e.Massachusetts = "MA", e.Michigan = "MI", e.Minnesota = "MN", e.Mississippi = "MS", e.Missouri = "MO", e.Montana = "MT", e.Nebraska = "NE", e.Nevada = "NV", e.NewHampshire = "NH", e.NewJersey = "NJ", e.NewMexico = "NM", e.NewYork = "NY", e.NorthCarolina = "NC", e.NorthDakota = "ND", e.Ohio = "OH", e.Oklahoma = "OK", e.Oregon = "OR", e.Pennsylvania = "PA", e.RhodeIsland = "RI", e.SouthCarolina = "SC", e.SouthDakota = "SD", e.Tennessee = "TN", e.Texas = "TX", e.Utah = "UT", e.Vermont = "VT", e.Virginia = "VA", e.Washington = "WA", e.WestVirginia = "WV", e.Wisconsin = "WI", e.Wyoming = "WY";
2908
- })(_a ||= {});
2908
+ })(va ||= {});
2909
2909
  //#endregion
2910
2910
  //#region libs/enums/dist/lib/environment.enum.js
2911
- var va;
2911
+ var ya;
2912
2912
  (function(e) {
2913
2913
  e.LIVE = "LIVE", e.SANDBOX = "SANDBOX", e.DEV = "DEV";
2914
- })(va ||= {});
2914
+ })(ya ||= {});
2915
2915
  //#endregion
2916
2916
  //#region libs/enums/dist/lib/event-actor.enum.js
2917
- var ya;
2917
+ var ba;
2918
2918
  (function(e) {
2919
2919
  e.user = "user", e.api = "api", e.webhook = "webhook", e.system = "system";
2920
- })(ya ||= {});
2920
+ })(ba ||= {});
2921
2921
  //#endregion
2922
2922
  //#region libs/checkout/src/utils/state/stateNames.ts
2923
- var ba = {
2924
- US: _a,
2925
- CA: ma,
2926
- AU: pa
2927
- }, xa = new Set(Object.keys(ba)), Sa = (e) => xa.has(e ?? ""), Ca = (e) => Sa(e) ? e : "US", wa = (e) => e === "CA" ? "address.chooseProvince" : "address.chooseState", Ta = (e) => Object.fromEntries(Object.entries(e).map(([e, t]) => [t, e.replace(/([A-Z])/g, " $1").trim()])), Ea = {
2928
- US: Ta(_a),
2929
- CA: Ta(ma),
2930
- AU: Ta(pa)
2931
- }, Da = (e = "US") => Object.values(ba[e]), Oa = (e, t = "US") => Ea[t][e.toUpperCase()] || e, ka = (e = "US") => Da(e).map((t) => ({
2923
+ var xa = {
2924
+ US: va,
2925
+ CA: ha,
2926
+ AU: ma
2927
+ }, Sa = new Set(Object.keys(xa)), Ca = (e) => Sa.has(e ?? ""), wa = (e) => Ca(e) ? e : "US", Ta = (e) => e === "CA" ? "address.chooseProvince" : "address.chooseState", Ea = (e) => Object.fromEntries(Object.entries(e).map(([e, t]) => [t, e.replace(/([A-Z])/g, " $1").trim()])), Da = {
2928
+ US: Ea(va),
2929
+ CA: Ea(ha),
2930
+ AU: Ea(ma)
2931
+ }, Oa = (e = "US") => Object.values(xa[e]), ka = (e, t = "US") => Da[t][e.toUpperCase()] || e, Aa = (e = "US") => Oa(e).map((t) => ({
2932
2932
  value: t,
2933
- text: Oa(t, e)
2934
- })).sort((e, t) => e.text.localeCompare(t.text)), Aa = {
2933
+ text: ka(t, e)
2934
+ })).sort((e, t) => e.text.localeCompare(t.text)), ja = {
2935
2935
  "gmail.com": [
2936
2936
  "gmal.com",
2937
2937
  "gmil.com",
@@ -3046,7 +3046,7 @@ var ba = {
3046
3046
  "att.ne",
3047
3047
  "attt.net"
3048
3048
  ]
3049
- }, ja = (e) => {
3049
+ }, Ma = (e) => {
3050
3050
  if (!e || e.includes(".")) return null;
3051
3051
  for (let t of [
3052
3052
  "com",
@@ -3064,7 +3064,7 @@ var ba = {
3064
3064
  }
3065
3065
  }
3066
3066
  return null;
3067
- }, Ma = (e, t) => {
3067
+ }, Na = (e, t) => {
3068
3068
  if (e.length === 0) return t.length;
3069
3069
  if (t.length === 0) return e.length;
3070
3070
  let n = t.length + 1, r = e.length + 1, i = Array.from({ length: n }, (e, t) => Array.from({ length: r }, (e, n) => t === 0 ? n : n === 0 ? t : 0));
@@ -3073,15 +3073,15 @@ var ba = {
3073
3073
  i[a][n] = Math.min(i[a - 1][n] + 1, i[a][n - 1] + 1, i[a - 1][n - 1] + r);
3074
3074
  }
3075
3075
  return i[t.length][e.length];
3076
- }, Na = (e) => {
3076
+ }, Pa = (e) => {
3077
3077
  let t = null, n = 3, r = e.toLowerCase();
3078
- for (let e of Object.keys(Aa)) {
3079
- let i = Ma(r, e);
3078
+ for (let e of Object.keys(ja)) {
3079
+ let i = Na(r, e);
3080
3080
  i <= 2 && i < n && (n = i, t = e);
3081
3081
  }
3082
3082
  return t;
3083
- }, Pa = () => {
3084
- let { t: e } = $a();
3083
+ }, Fa = () => {
3084
+ let { t: e } = eo();
3085
3085
  return { validateEmail: (t) => {
3086
3086
  let n = /^[^\s@]+@[^\s@.]+\.[^\s@]+$/;
3087
3087
  if (!t) return {
@@ -3097,13 +3097,13 @@ var ba = {
3097
3097
  };
3098
3098
  let i = t.substring(0, r), a = t.substring(r + 1);
3099
3099
  if (!a.includes(".")) {
3100
- let t = ja(a);
3100
+ let t = Ma(a);
3101
3101
  if (t) return {
3102
3102
  isValid: !1,
3103
3103
  message: e("validation.emailSuggestion", { email: `${i}@${t}` }),
3104
3104
  suggestion: `${i}@${t}`
3105
3105
  };
3106
- for (let t of Object.keys(Aa)) if (t.replace(/\./g, "") === a) return {
3106
+ for (let t of Object.keys(ja)) if (t.replace(/\./g, "") === a) return {
3107
3107
  isValid: !1,
3108
3108
  message: e("validation.emailSuggestion", { email: `${i}@${t}` }),
3109
3109
  suggestion: `${i}@${t}`
@@ -3114,7 +3114,7 @@ var ba = {
3114
3114
  message: e("validation.emailInvalid"),
3115
3115
  suggestion: null
3116
3116
  };
3117
- let o = Na(a);
3117
+ let o = Pa(a);
3118
3118
  if (o && o !== a) {
3119
3119
  let t = `${i}@${o}`;
3120
3120
  return {
@@ -3129,8 +3129,8 @@ var ba = {
3129
3129
  suggestion: null
3130
3130
  };
3131
3131
  } };
3132
- }, Fa = () => {
3133
- let { t: e } = $a(), { validateEmail: t } = Pa();
3132
+ }, Ia = () => {
3133
+ let { t: e } = eo(), { validateEmail: t } = Fa();
3134
3134
  return {
3135
3135
  email: (e) => {
3136
3136
  let n = t(e);
@@ -3143,7 +3143,7 @@ var ba = {
3143
3143
  phoneNumber: (t, n) => {
3144
3144
  if (!t.trim()) return e("validation.phoneNumberRequired");
3145
3145
  if (n) {
3146
- let r = sa();
3146
+ let r = ca();
3147
3147
  if (!r) {
3148
3148
  let n = t.replace(/\D/g, "");
3149
3149
  return n.length < 7 || n.length > 15 ? e("validation.phoneNumberInvalid") : void 0;
@@ -3169,7 +3169,7 @@ var ba = {
3169
3169
  if (!t.trim()) return e("validation.townCityRequired");
3170
3170
  },
3171
3171
  state: (t, n) => {
3172
- if ((!n || Sa(n)) && !t.trim()) return e("validation.stateRequired");
3172
+ if ((!n || Ca(n)) && !t.trim()) return e("validation.stateRequired");
3173
3173
  },
3174
3174
  zipCode: (t) => {
3175
3175
  if (!t.trim()) return e("validation.postalCodeRequired");
@@ -3178,8 +3178,8 @@ var ba = {
3178
3178
  if (!t.trim()) return e("validation.countryRequired");
3179
3179
  }
3180
3180
  };
3181
- }, Ia = () => {
3182
- let e = Fa(), t = ua({
3181
+ }, La = () => {
3182
+ let e = Ia(), t = da({
3183
3183
  formData: {
3184
3184
  name: "",
3185
3185
  email: ""
@@ -3330,7 +3330,7 @@ var ba = {
3330
3330
  },
3331
3331
  reset: t.resetState.bind(t)
3332
3332
  };
3333
- }, La = {
3333
+ }, Ra = {
3334
3334
  email: "E-mail",
3335
3335
  emailPlaceholder: "email@priklad.cz",
3336
3336
  phoneNumber: "Telefonní číslo",
@@ -3404,7 +3404,7 @@ var ba = {
3404
3404
  countryRequired: "Země je povinná",
3405
3405
  maxLengthExceeded: "Maximálně {{max}} znaků"
3406
3406
  }
3407
- }, Ra = {
3407
+ }, za = {
3408
3408
  email: "E-Mail",
3409
3409
  emailPlaceholder: "email@beispiel.de",
3410
3410
  phoneNumber: "Telefonnummer",
@@ -3478,7 +3478,7 @@ var ba = {
3478
3478
  countryRequired: "Land ist erforderlich",
3479
3479
  maxLengthExceeded: "Maximal {{max}} Zeichen"
3480
3480
  }
3481
- }, za = {
3481
+ }, Ba = {
3482
3482
  email: "Email",
3483
3483
  emailPlaceholder: "email@example.com",
3484
3484
  phoneNumber: "Phone Number",
@@ -3552,7 +3552,7 @@ var ba = {
3552
3552
  countryRequired: "Country is required",
3553
3553
  maxLengthExceeded: "Maximum {{max}} characters"
3554
3554
  }
3555
- }, Ba = {
3555
+ }, Va = {
3556
3556
  email: "Correo electrónico",
3557
3557
  emailPlaceholder: "email@ejemplo.es",
3558
3558
  phoneNumber: "Número de teléfono",
@@ -3626,7 +3626,7 @@ var ba = {
3626
3626
  countryRequired: "El país es obligatorio",
3627
3627
  maxLengthExceeded: "Máximo {{max}} caracteres"
3628
3628
  }
3629
- }, Va = {
3629
+ }, Ha = {
3630
3630
  email: "E-mail",
3631
3631
  emailPlaceholder: "email@exemple.fr",
3632
3632
  phoneNumber: "Numéro de téléphone",
@@ -3700,7 +3700,7 @@ var ba = {
3700
3700
  countryRequired: "Le pays est requis",
3701
3701
  maxLengthExceeded: "Maximum {{max}} caractères"
3702
3702
  }
3703
- }, Ha = {
3703
+ }, Ua = {
3704
3704
  email: "Email",
3705
3705
  emailPlaceholder: "email@esempio.it",
3706
3706
  phoneNumber: "Numero di telefono",
@@ -3774,7 +3774,7 @@ var ba = {
3774
3774
  countryRequired: "Il paese è obbligatorio",
3775
3775
  maxLengthExceeded: "Massimo {{max}} caratteri"
3776
3776
  }
3777
- }, Ua = {
3777
+ }, Wa = {
3778
3778
  email: "E-mail",
3779
3779
  emailPlaceholder: "email@voorbeeld.nl",
3780
3780
  phoneNumber: "Telefoonnummer",
@@ -3848,7 +3848,7 @@ var ba = {
3848
3848
  countryRequired: "Land is verplicht",
3849
3849
  maxLengthExceeded: "Maximaal {{max}} tekens"
3850
3850
  }
3851
- }, Wa = {
3851
+ }, Ga = {
3852
3852
  email: "Adres e-mail",
3853
3853
  emailPlaceholder: "email@przyklad.pl",
3854
3854
  phoneNumber: "Numer telefonu",
@@ -3922,7 +3922,7 @@ var ba = {
3922
3922
  countryRequired: "Kraj jest wymagany",
3923
3923
  maxLengthExceeded: "Maksymalnie {{max}} znaków"
3924
3924
  }
3925
- }, Ga = {
3925
+ }, Ka = {
3926
3926
  email: "E-mail",
3927
3927
  emailPlaceholder: "email@exemplo.pt",
3928
3928
  phoneNumber: "Número de telefone",
@@ -3996,7 +3996,7 @@ var ba = {
3996
3996
  countryRequired: "O país é obrigatório",
3997
3997
  maxLengthExceeded: "Máximo de {{max}} caracteres"
3998
3998
  }
3999
- }, Ka = {
3999
+ }, qa = {
4000
4000
  email: "E-mail",
4001
4001
  emailPlaceholder: "email@priklad.sk",
4002
4002
  phoneNumber: "Telefónne číslo",
@@ -4070,7 +4070,7 @@ var ba = {
4070
4070
  countryRequired: "Krajina je povinná",
4071
4071
  maxLengthExceeded: "Maximálne {{max}} znakov"
4072
4072
  }
4073
- }, qa = {
4073
+ }, Ja = {
4074
4074
  email: "E-posta",
4075
4075
  emailPlaceholder: "email@ornek.com.tr",
4076
4076
  phoneNumber: "Telefon Numarası",
@@ -4144,19 +4144,19 @@ var ba = {
4144
4144
  countryRequired: "Ülke gerekli",
4145
4145
  maxLengthExceeded: "Maksimum {{max}} karakter"
4146
4146
  }
4147
- }, Ja = {
4148
- en: za,
4149
- de: Ra,
4150
- es: Ba,
4151
- fr: Va,
4152
- pl: Wa,
4153
- pt: Ga,
4154
- tr: qa,
4155
- it: Ha,
4156
- sk: Ka,
4157
- cs: La,
4158
- nl: Ua
4159
- }, Ya = class {
4147
+ }, Ya = {
4148
+ en: Ba,
4149
+ de: za,
4150
+ es: Va,
4151
+ fr: Ha,
4152
+ pl: Ga,
4153
+ pt: Ka,
4154
+ tr: Ja,
4155
+ it: Ua,
4156
+ sk: qa,
4157
+ cs: Ra,
4158
+ nl: Wa
4159
+ }, Xa = class {
4160
4160
  locale;
4161
4161
  loadedLocales = /* @__PURE__ */ new Set();
4162
4162
  constructor(e = "en") {
@@ -4173,7 +4173,7 @@ var ba = {
4173
4173
  return !t || n === e ? n : this.interpolate(n, t);
4174
4174
  }
4175
4175
  getNestedTranslation(e) {
4176
- let t = this.locale in Ja ? Ja[this.locale] : {}, n = this.findNestedValue(t, e);
4176
+ let t = this.locale in Ya ? Ya[this.locale] : {}, n = this.findNestedValue(t, e);
4177
4177
  return n === void 0 ? e : n;
4178
4178
  }
4179
4179
  findNestedValue(e, t) {
@@ -4190,7 +4190,7 @@ var ba = {
4190
4190
  return r === void 0 ? e : String(r);
4191
4191
  });
4192
4192
  }
4193
- }, Xa = [
4193
+ }, Za = [
4194
4194
  "en",
4195
4195
  "de",
4196
4196
  "es",
@@ -4203,13 +4203,13 @@ var ba = {
4203
4203
  "sk",
4204
4204
  "nl"
4205
4205
  ];
4206
- function Za(e) {
4207
- let t = new Ya(), n = e == null ? (() => {
4206
+ function Qa(e) {
4207
+ let t = new Xa(), n = e == null ? (() => {
4208
4208
  let e = navigator?.language?.split("-")[0]?.toLowerCase();
4209
- return Xa.includes(e) ? e : "en";
4210
- })() : Xa.includes(e) ? e : "en";
4209
+ return Za.includes(e) ? e : "en";
4210
+ })() : Za.includes(e) ? e : "en";
4211
4211
  t.setLocale(n);
4212
- let r = ua({
4212
+ let r = da({
4213
4213
  locale: n,
4214
4214
  translationService: t
4215
4215
  });
@@ -4217,14 +4217,14 @@ function Za(e) {
4217
4217
  store: r,
4218
4218
  translate: (e, t) => r.getState().translationService.translate(e, t),
4219
4219
  setLocale: (e) => {
4220
- Xa.includes(e) && (r.getState().translationService.setLocale(e), r.setState({ locale: e }));
4220
+ Za.includes(e) && (r.getState().translationService.setLocale(e), r.setState({ locale: e }));
4221
4221
  },
4222
4222
  getLocale: () => r.getValue("locale"),
4223
4223
  subscribe: r.subscribe.bind(r)
4224
4224
  };
4225
4225
  }
4226
- var Qa = Za(), $a = () => {
4227
- let { translate: e, getLocale: t, setLocale: n, subscribe: r } = Qa;
4226
+ var $a = Qa(), eo = () => {
4227
+ let { translate: e, getLocale: t, setLocale: n, subscribe: r } = $a;
4228
4228
  return {
4229
4229
  t: e,
4230
4230
  translate: e,
@@ -4232,7 +4232,7 @@ var Qa = Za(), $a = () => {
4232
4232
  setLocale: n,
4233
4233
  subscribe: r
4234
4234
  };
4235
- }, eo = () => $a().t("cardUnavailable"), to = class {
4235
+ }, to = () => eo().t("cardUnavailable"), no = class {
4236
4236
  apiKey;
4237
4237
  baseUrl;
4238
4238
  browserInfo;
@@ -4335,7 +4335,7 @@ var Qa = Za(), $a = () => {
4335
4335
  e = await s.json();
4336
4336
  } catch {}
4337
4337
  throw {
4338
- message: ra(e) || `API request failed: ${s.status} ${s.statusText}`,
4338
+ message: ia(e) || `API request failed: ${s.status} ${s.statusText}`,
4339
4339
  status: s.status,
4340
4340
  statusText: s.statusText,
4341
4341
  details: e
@@ -4378,8 +4378,8 @@ var Qa = Za(), $a = () => {
4378
4378
  let e = a.billingAddress || a.shippingAddress, t = e?.firstName && e?.lastName ? `${e.firstName} ${e.lastName}`.trim() : a.vgsCardData?.name || a.name;
4379
4379
  if (!a.vgsCardData) {
4380
4380
  Z(n.CARD_CAPTURE_UNAVAILABLE, { reason: c.NO_TOKENIZATION_SESSION });
4381
- let e = eo();
4382
- throw Ci({
4381
+ let e = to();
4382
+ throw wi({
4383
4383
  message: e,
4384
4384
  status: 0,
4385
4385
  statusText: "Card Capture Unavailable",
@@ -4401,7 +4401,7 @@ var Qa = Za(), $a = () => {
4401
4401
  customerData: {
4402
4402
  email: a.email,
4403
4403
  name: t,
4404
- ...a.phoneNumber && { phoneNumber: a.phoneCountryCode != null || a.phoneNumber.startsWith("+") ? sa()?.toE164(a.phoneNumber, a.phoneCountryCode ?? "US") ?? a.phoneNumber.replace(/\s+/g, "") : a.phoneNumber.replace(/\s+/g, "") },
4404
+ ...a.phoneNumber && { phoneNumber: a.phoneCountryCode != null || a.phoneNumber.startsWith("+") ? ca()?.toE164(a.phoneNumber, a.phoneCountryCode ?? "US") ?? a.phoneNumber.replace(/\s+/g, "") : a.phoneNumber.replace(/\s+/g, "") },
4405
4405
  ...this.buildAddressData(a),
4406
4406
  ...u
4407
4407
  },
@@ -4429,13 +4429,13 @@ var Qa = Za(), $a = () => {
4429
4429
  body: f
4430
4430
  });
4431
4431
  }
4432
- }, no = "https://fonts.googleapis.com/", ro = /* @__PURE__ */ new Set(/* @__PURE__ */ "cursive.emoji.fangsong.fantasy.math.monospace.sans-serif.serif.system-ui.ui-monospace.ui-rounded.ui-sans-serif.ui-serif.inherit.initial.revert.revert-layer.unset.caption.icon.menu.message-box.small-caption.status-bar.-apple-system.blinkmacsystemfont".split(".")), io = (e) => {
4432
+ }, ro = "https://fonts.googleapis.com/", io = /* @__PURE__ */ new Set(/* @__PURE__ */ "cursive.emoji.fangsong.fantasy.math.monospace.sans-serif.serif.system-ui.ui-monospace.ui-rounded.ui-sans-serif.ui-serif.inherit.initial.revert.revert-layer.unset.caption.icon.menu.message-box.small-caption.status-bar.-apple-system.blinkmacsystemfont".split(".")), ao = (e) => {
4433
4433
  let t = e?.trim();
4434
- return !t || t.includes(",") || ro.has(t.toLowerCase()) ? null : t.replace(/\s+/g, "+");
4435
- }, ao = (e) => `${no}css2?family=${e}:wght@400;700&display=swap`, oo = (e) => e.rel === "stylesheet" && e.href.startsWith("https://fonts.googleapis.com/"), so = ({ fontFamily: e }) => {
4436
- let t = io(e);
4434
+ return !t || t.includes(",") || io.has(t.toLowerCase()) ? null : t.replace(/\s+/g, "+");
4435
+ }, oo = (e) => `${ro}css2?family=${e}:wght@400;700&display=swap`, so = (e) => e.rel === "stylesheet" && e.href.startsWith("https://fonts.googleapis.com/"), co = ({ fontFamily: e }) => {
4436
+ let t = ao(e);
4437
4437
  if (!t) return { cleanup: () => {} };
4438
- let n = ao(t), r = [...document.head.querySelectorAll("link")].filter(oo), i = document.createElement("link");
4438
+ let n = oo(t), r = [...document.head.querySelectorAll("link")].filter(so), i = document.createElement("link");
4439
4439
  i.rel = "stylesheet", i.href = n;
4440
4440
  let a = r.find((e) => e.href.includes(`family=${t}`));
4441
4441
  if (a) a.href = n;
@@ -4446,17 +4446,17 @@ var Qa = Za(), $a = () => {
4446
4446
  return { cleanup: () => {
4447
4447
  document.head.contains(i) && document.head.removeChild(i);
4448
4448
  } };
4449
- }, co = /src:\s*url\(([^)]+\.woff2[^)]*)\)/, lo = /\/\*\s*latin\s*\*\/\s*@font-face\s*\{[^}]*src:\s*url\(([^)]+\.woff2[^)]*)\)[^}]*\}/;
4450
- async function uo(e) {
4451
- let t = io(e);
4449
+ }, lo = /src:\s*url\(([^)]+\.woff2[^)]*)\)/, uo = /\/\*\s*latin\s*\*\/\s*@font-face\s*\{[^}]*src:\s*url\(([^)]+\.woff2[^)]*)\)[^}]*\}/;
4450
+ async function fo(e) {
4451
+ let t = ao(e);
4452
4452
  if (!t) return null;
4453
- let n = ao(t);
4453
+ let n = oo(t);
4454
4454
  try {
4455
4455
  let e = await fetch(n);
4456
4456
  if (!e.ok) return null;
4457
- let t = await e.text(), r = lo.exec(t);
4457
+ let t = await e.text(), r = uo.exec(t);
4458
4458
  if (r?.[1]) return r[1];
4459
- let i = co.exec(t);
4459
+ let i = lo.exec(t);
4460
4460
  return i?.[1] ? i[1] : null;
4461
4461
  } catch {
4462
4462
  return null;
@@ -4517,28 +4517,28 @@ var Q = class e {
4517
4517
  this.element.removeEventListener(e, t);
4518
4518
  }), this.eventListeners = [], this.children.forEach((e) => e.destroy()), this.children = [], this.element.parentNode && this.element.parentNode.removeChild(this.element);
4519
4519
  }
4520
- }, fo = "8px 12px", po = 1.5, mo = 8;
4521
- function ho(e) {
4520
+ }, po = "8px 12px", mo = 1.5, ho = 8;
4521
+ function go(e) {
4522
4522
  let t = parseFloat(e ?? "");
4523
- return Number.isFinite(t) ? t : mo;
4523
+ return Number.isFinite(t) ? t : ho;
4524
4524
  }
4525
- function go(e, t) {
4526
- let n = e.trim().split(/\s+/), r = ho(n[0]);
4527
- return `${r + (n.length >= 3 ? ho(n[2]) : r) + t * po}px`;
4525
+ function _o(e, t) {
4526
+ let n = e.trim().split(/\s+/), r = go(n[0]);
4527
+ return `${r + (n.length >= 3 ? go(n[2]) : r) + t * mo}px`;
4528
4528
  }
4529
4529
  //#endregion
4530
4530
  //#region libs/checkout/src/utils/country/countryNames.ts
4531
- var _o = (e) => e.replace(/([A-Z])/g, " $1").trim(), vo = Object.fromEntries(Object.entries(ha).map(([e, t]) => [t, _o(e)])), yo = new Set(Object.values(ha)), bo = /* @__PURE__ */ new Map(), xo = (e) => (bo.has(e) || bo.set(e, new Intl.DisplayNames([e], { type: "region" })), bo.get(e)), So = () => Object.values(ha), Co = (e, t) => {
4531
+ var vo = (e) => e.replace(/([A-Z])/g, " $1").trim(), yo = Object.fromEntries(Object.entries(ga).map(([e, t]) => [t, vo(e)])), bo = new Set(Object.values(ga)), xo = /* @__PURE__ */ new Map(), So = (e) => (xo.has(e) || xo.set(e, new Intl.DisplayNames([e], { type: "region" })), xo.get(e)), Co = () => Object.values(ga), wo = (e, t) => {
4532
4532
  let n = e.toUpperCase();
4533
4533
  if (t) try {
4534
- let e = xo(t).of(n);
4534
+ let e = So(t).of(n);
4535
4535
  if (e) return e;
4536
4536
  } catch {}
4537
- return vo[n] || n;
4538
- }, wo = (e, t) => (e && e.length > 0 ? e.map((e) => e.toUpperCase()).filter((e) => yo.has(e)) : So()).map((e) => ({
4537
+ return yo[n] || n;
4538
+ }, To = (e, t) => (e && e.length > 0 ? e.map((e) => e.toUpperCase()).filter((e) => bo.has(e)) : Co()).map((e) => ({
4539
4539
  value: e,
4540
- text: Co(e, t)
4541
- })).sort((e, n) => e.text.localeCompare(n.text, t)), To = class extends Q {
4540
+ text: wo(e, t)
4541
+ })).sort((e, n) => e.text.localeCompare(n.text, t)), Eo = class extends Q {
4542
4542
  span;
4543
4543
  constructor(e) {
4544
4544
  super("div", ["form-helper-text-anchor"]), this.span = document.createElement("span"), this.span.className = "form-helper-text", this.setVariant(e.variant ?? "error"), e.visible === !1 && this.span.classList.add("form-helper-text-hidden"), this.span.textContent = e.text || "", this.getElement().appendChild(this.span);
@@ -4558,7 +4558,7 @@ var _o = (e) => e.replace(/([A-Z])/g, " $1").trim(), vo = Object.fromEntries(Obj
4558
4558
  hideMessage() {
4559
4559
  return this.span && this.span.classList.add("form-helper-text-hidden"), this;
4560
4560
  }
4561
- }, Eo = class {
4561
+ }, Do = class {
4562
4562
  static createDiv(e = [], t = {}) {
4563
4563
  return new Q("div", e, t);
4564
4564
  }
@@ -4606,13 +4606,13 @@ var _o = (e) => e.replace(/([A-Z])/g, " $1").trim(), vo = Object.fromEntries(Obj
4606
4606
  ...r
4607
4607
  });
4608
4608
  }
4609
- }, Do = class extends Q {
4609
+ }, Oo = class extends Q {
4610
4610
  constructor(e) {
4611
4611
  if (super("label", ["input-label"], { for: e.id }), this.setText(e.label), !e.styles) return;
4612
4612
  let t = this.getElement();
4613
4613
  e.styles.color && (t.style.color = e.styles.color), e.styles.fontSize && (t.style.fontSize = `${e.styles.fontSize}px`);
4614
4614
  }
4615
- }, Oo = class extends Q {
4615
+ }, ko = class extends Q {
4616
4616
  inputElement;
4617
4617
  helperText = null;
4618
4618
  hasError = !1;
@@ -4621,7 +4621,7 @@ var _o = (e) => e.replace(/([A-Z])/g, " $1").trim(), vo = Object.fromEntries(Obj
4621
4621
  rendersMessage;
4622
4622
  constructor(e) {
4623
4623
  if (super("div", ["input-wrapper"]), this.rendersMessage = e.renderMessage ?? !0, e.label) {
4624
- let t = new Do({
4624
+ let t = new Oo({
4625
4625
  styles: e.styles ? {
4626
4626
  color: e.styles.color,
4627
4627
  fontSize: e.styles.fontSize
@@ -4636,11 +4636,11 @@ var _o = (e) => e.replace(/([A-Z])/g, " $1").trim(), vo = Object.fromEntries(Obj
4636
4636
  name: e.name,
4637
4637
  class: `form-input ${e.error ? "form-input-error" : ""}`
4638
4638
  };
4639
- if (e.placeholder && (t.placeholder = e.placeholder), e.value && (t.value = e.value), e.required && (t.required = String(e.required)), e.disabled && (t.disabled = String(e.disabled)), e.autocomplete && (t.autocomplete = e.autocomplete), e.maxLength && (t.maxlength = String(e.maxLength)), this.inputElement = Eo.createInput(e.type || "text", [], t), e.styles) {
4639
+ if (e.placeholder && (t.placeholder = e.placeholder), e.value && (t.value = e.value), e.required && (t.required = String(e.required)), e.disabled && (t.disabled = String(e.disabled)), e.autocomplete && (t.autocomplete = e.autocomplete), e.maxLength && (t.maxlength = String(e.maxLength)), this.inputElement = Do.createInput(e.type || "text", [], t), e.styles) {
4640
4640
  let t = this.inputElement.getElement();
4641
4641
  t.style.fontFamily = `"${e.styles.fontFamily}", sans-serif`, t.style.color = e.styles.color, t.style.fontSize = `${e.styles.fontSize}px`, t.style.borderRadius = e.styles.borderRadius;
4642
4642
  }
4643
- e.onChange && this.inputElement.getElement().addEventListener("input", e.onChange), this.getElement().appendChild(this.inputElement.getElement()), this.hasError = e.error, this.errorMsg = e.errorMsg ?? null, this.rendersMessage && (this.helperText = new To({
4643
+ e.onChange && this.inputElement.getElement().addEventListener("input", e.onChange), this.getElement().appendChild(this.inputElement.getElement()), this.hasError = e.error, this.errorMsg = e.errorMsg ?? null, this.rendersMessage && (this.helperText = new Eo({
4644
4644
  text: e.error ? e.errorMsg : "",
4645
4645
  visible: e.error
4646
4646
  }), this.appendChild(this.helperText));
@@ -4669,7 +4669,7 @@ var _o = (e) => e.replace(/([A-Z])/g, " $1").trim(), vo = Object.fromEntries(Obj
4669
4669
  focus() {
4670
4670
  this.inputElement.getElement().focus();
4671
4671
  }
4672
- }, ko = class e extends Q {
4672
+ }, Ao = class e extends Q {
4673
4673
  static PLACEHOLDER_COLOR = "#D4D4D5";
4674
4674
  selectElement;
4675
4675
  helperText = null;
@@ -4703,7 +4703,7 @@ var _o = (e) => e.replace(/([A-Z])/g, " $1").trim(), vo = Object.fromEntries(Obj
4703
4703
  let r = this.selectElement.getElement();
4704
4704
  r.value === "" ? (r.classList.add("form-select-placeholder"), r.style.color = e.PLACEHOLDER_COLOR) : (r.classList.remove("form-select-placeholder"), this.configuredColor ? r.style.color = this.configuredColor : r.style.color = ""), t.onChange?.(n);
4705
4705
  }), t.label) {
4706
- let e = new Do({
4706
+ let e = new Oo({
4707
4707
  styles: t.styles ? {
4708
4708
  color: t.styles.color,
4709
4709
  fontSize: t.styles.fontSize
@@ -4713,7 +4713,7 @@ var _o = (e) => e.replace(/([A-Z])/g, " $1").trim(), vo = Object.fromEntries(Obj
4713
4713
  });
4714
4714
  this.appendChild(e);
4715
4715
  }
4716
- this.getElement().appendChild(this.selectElement.getElement()), this.rendersMessage && (this.helperText = new To({
4716
+ this.getElement().appendChild(this.selectElement.getElement()), this.rendersMessage && (this.helperText = new Eo({
4717
4717
  text: t.error ? t.errorMsg : "",
4718
4718
  visible: t.error
4719
4719
  }), this.appendChild(this.helperText));
@@ -4750,7 +4750,7 @@ var _o = (e) => e.replace(/([A-Z])/g, " $1").trim(), vo = Object.fromEntries(Obj
4750
4750
  CARD_EXPIRY: "exp-date",
4751
4751
  CARD_CVC: "cvc",
4752
4752
  CARDHOLDER: "cardholder"
4753
- }, Ao = {
4753
+ }, jo = {
4754
4754
  [$.CARD_NUMBER]: {
4755
4755
  1001: "validation.cardNumberInvalid",
4756
4756
  1011: "validation.cardNumberLuhnInvalid"
@@ -4764,12 +4764,12 @@ var _o = (e) => e.replace(/([A-Z])/g, " $1").trim(), vo = Object.fromEntries(Obj
4764
4764
  1017: "validation.cardSecurityFormat"
4765
4765
  },
4766
4766
  [$.CARDHOLDER]: { 1001: "validation.nameRequired" }
4767
- }, jo = (e, t) => Ao[e]?.[t], Mo = {
4767
+ }, Mo = (e, t) => jo[e]?.[t], No = {
4768
4768
  visa: "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%20-140%20780%20780'%20enable-background='new%200%200%20780%20500'%20version='1.1'%20xml:space='preserve'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M40,0h700c22.092,0,40,17.909,40,40v420c0,22.092-17.908,40-40,40H40c-22.091,0-40-17.908-40-40V40%20C0,17.909,17.909,0,40,0z'%20fill='%230E4595'/%3e%3cpath%20d='m293.2%20348.73l33.361-195.76h53.36l-33.385%20195.76h-53.336zm246.11-191.54c-10.57-3.966-27.137-8.222-47.822-8.222-52.725%200-89.865%2026.55-90.18%2064.603-0.299%2028.13%2026.514%2043.822%2046.752%2053.186%2020.771%209.595%2027.752%2015.714%2027.654%2024.283-0.131%2013.121-16.586%2019.116-31.922%2019.116-21.357%200-32.703-2.967-50.227-10.276l-6.876-3.11-7.489%2043.823c12.463%205.464%2035.51%2010.198%2059.438%2010.443%2056.09%200%2092.5-26.246%2092.916-66.882%200.199-22.269-14.016-39.216-44.801-53.188-18.65-9.055-30.072-15.099-29.951-24.268%200-8.137%209.668-16.839%2030.557-16.839%2017.449-0.27%2030.09%203.535%2039.938%207.5l4.781%202.26%207.232-42.429m137.31-4.223h-41.232c-12.773%200-22.332%203.487-27.941%2016.234l-79.244%20179.4h56.031s9.16-24.123%2011.232-29.418c6.125%200%2060.555%200.084%2068.338%200.084%201.596%206.853%206.49%2029.334%206.49%2029.334h49.514l-43.188-195.64zm-65.418%20126.41c4.412-11.279%2021.26-54.723%2021.26-54.723-0.316%200.522%204.379-11.334%207.074-18.684l3.605%2016.879s10.219%2046.729%2012.354%2056.528h-44.293zm-363.3-126.41l-52.24%20133.5-5.567-27.13c-9.725-31.273-40.025-65.155-73.898-82.118l47.766%20171.2%2056.456-0.064%2084.004-195.39h-56.521'%20fill='%23ffffff'/%3e%3cpath%20d='m146.92%20152.96h-86.041l-0.681%204.073c66.938%2016.204%20111.23%2055.363%20129.62%20102.41l-18.71-89.96c-3.23-12.395-12.597-16.094-24.186-16.527'%20fill='%23F2AE14'/%3e%3c/svg%3e",
4769
4769
  mastercard: "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20height='800px'%20width='800px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20291.791%20291.791'%20xml:space='preserve'%3e%3cg%3e%3cpath%20style='fill:%23E2574C;'%20d='M182.298,145.895c0,50.366-40.801,91.176-91.149,91.176S0,196.252,0,145.895%20s40.811-91.176,91.149-91.176S182.298,95.538,182.298,145.895z'/%3e%3cpath%20style='fill:%23F4B459;'%20d='M200.616,54.719c-20.442,0-39.261,6.811-54.469,18.181l0.073,0.009%20c2.991,2.89,6.291,4.924,8.835,8.251l-18.965,0.301c-2.972,3-5.68,6.264-8.233,9.656H161.3c2.544,3.054,4.896,5.708,7.03,9.081%20h-46.536c-1.705,2.936-3.282,5.954-4.659,9.09h56.493c1.477,3.127,2.799,5.489,3.921,8.799h-63.76%20c-1.012,3.146-1.878,6.364-2.535,9.646h68.966c0.675,3.155,1.194,6.072,1.55,9.045h-71.884c-0.301,3-0.456,6.045-0.456,9.118%20h72.859c0,3.228-0.228,6.218-0.556,9.118h-71.847c0.31,3.091,0.766,6.127,1.368,9.118h68.856c-0.711,2.954-1.532,5.926-2.562,9.008%20h-63.969c0.966,3.118,2.143,6.145,3.428,9.099h56.621c-1.568,3.319-3.346,5.972-5.306,9.081h-46.691%20c1.842,3.191,3.875,6.236,6.081,9.154l33.589,0.501c-2.863,3.437-6.537,5.507-9.884,8.516c0.182,0.146-5.352-0.018-16.248-0.191%20c16.576,17.105,39.744,27.772,65.446,27.772c50.357,0,91.176-40.82,91.176-91.176S250.981,54.719,200.616,54.719z'/%3e%3c/g%3e%3c/svg%3e",
4770
4770
  amex: "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20height='30px'%20width='30px'%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20512%20512'%20xml:space='preserve'%3e%3cpath%20style='fill:%23306FC5;'%20d='M512,402.281c0,16.716-13.55,30.267-30.265,30.267H30.265C13.55,432.549,0,418.997,0,402.281V109.717%20c0-16.715,13.55-30.266,30.265-30.266h451.47c16.716,0,30.265,13.551,30.265,30.266V402.281L512,402.281z'/%3e%3cpath%20style='opacity:0.15;fill:%23202121;enable-background:new%20;'%20d='M21.517,402.281V109.717%20c0-16.715,13.552-30.266,30.267-30.266h-21.52C13.55,79.451,0,93.001,0,109.717v292.565c0,16.716,13.55,30.267,30.265,30.267h21.52%20C35.07,432.549,21.517,418.997,21.517,402.281z'/%3e%3cg%3e%3cpolygon%20style='fill:%23FFFFFF;'%20points='74.59,220.748%2089.888,220.748%2082.241,201.278%20'/%3e%3cpolygon%20style='fill:%23FFFFFF;'%20points='155.946,286.107%20155.946,295.148%20181.675,295.148%20181.675,304.885%20155.946,304.885%20155.946,315.318%20184.455,315.318%20197.666,300.712%20185.151,286.107%20'/%3e%3cpolygon%20style='fill:%23FFFFFF;'%20points='356.898,201.278%20348.553,220.748%20364.548,220.748%20'/%3e%3cpolygon%20style='fill:%23FFFFFF;'%20points='230.348,320.875%20230.348,281.241%20212.268,300.712%20'/%3e%3cpath%20style='fill:%23FFFFFF;'%20d='M264.42,292.368c-0.696-4.172-3.48-6.261-7.654-6.261h-14.599v12.516h15.299%20C261.637,298.624,264.42,296.539,264.42,292.368z'/%3e%3cpath%20style='fill:%23FFFFFF;'%20d='M313.09,297.236c1.391-0.697,2.089-2.785,2.089-4.867c0.696-2.779-0.698-4.172-2.089-4.868%20c-1.387-0.696-3.476-0.696-5.559-0.696h-13.91v11.127h13.909C309.613,297.932,311.702,297.932,313.09,297.236z'/%3e%3cpath%20style='fill:%23FFFFFF;'%20d='M413.217,183.198v8.344l-4.169-8.344H376.37v8.344l-4.174-8.344h-44.502%20c-7.648,0-13.909,1.392-19.469,4.173v-4.173h-31.289v0.696v3.477c-3.476-2.78-7.648-4.173-13.211-4.173h-111.95l-7.652,17.384%20l-7.647-17.384h-25.031h-10.431v8.344l-3.477-8.344h-0.696H66.942l-13.909,32.68L37.042,251.34l-0.294,0.697h0.294h35.463h0.444%20l0.252-0.697l4.174-10.428h9.039l4.172,11.125h40.326v-0.697v-7.647l3.479,8.343h20.163l3.475-8.343v7.647v0.697h15.993h79.965%20h0.696v-18.08h1.394c1.389,0,1.389,0,1.389,2.087v15.297h50.065v-4.172c4.172,2.089,10.426,4.172,18.771,4.172h20.863l4.172-11.123%20h9.732l4.172,11.123h40.328v-6.952v-3.476l6.261,10.428h1.387h0.698h30.595v-68.143h-31.291l0,0H413.217z%20M177.501,241.609h-6.955%20h-4.171v-4.169v-34.076l-0.696,1.595v-0.019l-16.176,36.669h-0.512h-3.719h-6.017l-16.687-38.245v38.245h-23.64l-4.867-10.43%20H70.417l-4.868,10.43H53.326l20.57-48.675h17.382l19.469,46.587v-46.587h4.171h14.251l0.328,0.697h0.024l8.773,19.094l6.3,14.306%20l0.223-0.721l13.906-33.375H177.5v48.674H177.501L177.501,241.609z%20M225.481,203.364h-27.119v9.039h26.423v9.734h-26.423v9.738%20h27.119v10.427h-38.939v-49.367h38.939V203.364L225.481,203.364z%20M275.076,221.294c0.018,0.016,0.041,0.027,0.063,0.042%20c0.263,0.278,0.488,0.557,0.68,0.824c1.332,1.746,2.409,4.343,2.463,8.151c0.004,0.066,0.007,0.131,0.011,0.197%20c0,0.038,0.007,0.071,0.007,0.11c0,0.022-0.002,0.039-0.002,0.06c0.016,0.383,0.026,0.774,0.026,1.197v9.735h-10.428v-5.565%20c0-2.781,0-6.954-2.089-9.735c-0.657-0.657-1.322-1.09-2.046-1.398c-1.042-0.675-3.017-0.686-6.295-0.686h-12.52v17.384h-11.818%20v-48.675h26.425c6.254,0,10.428,0,13.906,2.086c3.407,2.046,5.465,5.439,5.543,10.812c-0.161,7.4-4.911,11.46-8.326,12.829%20C270.676,218.662,272.996,219.129,275.076,221.294z%20M298.491,241.609h-11.822v-48.675h11.822V241.609z%20M434.083,241.609h-15.3%20l-22.25-36.855v30.595l-0.073-0.072v6.362h-11.747v-0.029h-11.822l-4.172-10.43H344.38l-4.172,11.123h-13.211%20c-5.559,0-12.517-1.389-16.687-5.561c-4.172-4.172-6.256-9.735-6.256-18.773c0-6.953,1.389-13.911,6.256-19.472%20c3.474-4.175,9.735-5.562,17.382-5.562h11.128v10.429h-11.128c-4.172,0-6.254,0.693-9.041,2.783%20c-2.082,2.085-3.474,6.256-3.474,11.123c0,5.564,0.696,9.04,3.474,11.821c2.091,2.089,4.87,2.785,8.346,2.785h4.867l15.991-38.243%20h6.957h10.428l19.472,46.587v-2.376v-15.705v-1.389v-27.116h17.382l20.161,34.07v-34.07h11.826v47.977h0.002L434.083,241.609%20L434.083,241.609z'/%3e%3cpath%20style='fill:%23FFFFFF;'%20d='M265.161,213.207c0.203-0.217,0.387-0.463,0.543-0.745c0.63-0.997,1.352-2.793,0.963-5.244%20c-0.016-0.225-0.057-0.433-0.105-0.634c-0.013-0.056-0.011-0.105-0.026-0.161l-0.007,0.001c-0.346-1.191-1.229-1.923-2.11-2.367%20c-1.394-0.693-3.48-0.693-5.565-0.693h-13.909v11.127h13.909c2.085,0,4.172,0,5.565-0.697c0.209-0.106,0.395-0.25,0.574-0.413%20l0.002,0.009C264.996,213.389,265.067,213.315,265.161,213.207z'/%3e%3cpath%20style='fill:%23FFFFFF;'%20d='M475.105,311.144c0-4.867-1.389-9.736-3.474-13.212v-31.289h-0.032v-2.089c0,0-29.145,0-33.483,0%20c-4.336,0-9.598,4.171-9.598,4.171v-4.171h-31.984c-4.87,0-11.124,1.392-13.909,4.171v-4.171h-57.016v2.089v2.081%20c-4.169-3.474-11.824-4.171-15.298-4.171h-37.549v2.089v2.081c-3.476-3.474-11.824-4.171-15.998-4.171H215.05l-9.737,10.431%20l-9.04-10.431h-2.911h-4.737h-54.93v2.089v5.493v62.651h61.19l10.054-10.057l8.715,10.057h0.698h35.258h1.598h0.696h0.692v-6.953%20v-9.039h3.479c4.863,0,11.124,0,15.991-2.089v17.382v1.394h31.291v-1.394V317.4h1.387c2.089,0,2.089,0,2.089,2.086v14.6v1.394%20h94.563c6.263,0,12.517-1.394,15.993-4.175v2.781v1.394h29.902c6.254,0,12.517-0.695,16.689-3.478%20c6.402-3.841,10.437-10.64,11.037-18.749c0.028-0.24,0.063-0.48,0.085-0.721l-0.041-0.039%20C475.087,312.043,475.105,311.598,475.105,311.144z%20M256.076,306.973h-13.91v2.081v4.174v4.173v7.649h-22.855l-13.302-15.299%20l-0.046,0.051l-0.65-0.748l-15.297,15.996h-44.501v-48.673h45.197l12.348,13.525l2.596,2.832l0.352-0.365l14.604-15.991h36.852%20c7.152,0,15.161,1.765,18.196,9.042c0.365,1.441,0.577,3.043,0.577,4.863C276.237,304.189,266.502,306.973,256.076,306.973z%20M325.609,306.276c1.389,2.081,2.085,4.867,2.085,9.041v9.732h-11.819v-6.256c0-2.786,0-7.65-2.089-9.739%20c-1.387-2.081-4.172-2.081-8.341-2.081H292.93v18.077h-11.82v-49.369h26.421c5.559,0,10.426,0,13.909,2.084%20c3.474,2.088,6.254,5.565,6.254,11.128c0,7.647-4.865,11.819-8.343,13.212C322.829,303.49,324.914,304.885,325.609,306.276z%20M373.589,286.107h-27.122v9.04h26.424v9.737h-26.424v9.736h27.122v10.429H334.65V275.68h38.939V286.107z%20M402.791,325.05h-22.252%20v-10.429h22.252c2.082,0,3.476,0,4.87-1.392c0.696-0.697,1.387-2.085,1.387-3.477c0-1.394-0.691-2.778-1.387-3.475%20c-0.698-0.695-2.091-1.391-4.176-1.391c-11.126-0.696-24.337,0-24.337-15.296c0-6.954,4.172-14.604,16.689-14.604h22.945v11.819%20h-21.554c-2.085,0-3.478,0-4.87,0.696c-1.387,0.697-1.387,2.089-1.387,3.478c0,2.087,1.387,2.783,2.778,3.473%20c1.394,0.697,2.783,0.697,4.172,0.697h6.259c6.259,0,10.43,1.391,13.211,4.173c2.087,2.087,3.478,5.564,3.478,10.43%20C420.869,320.179,414.611,325.05,402.791,325.05z%20M462.59,320.179c-2.778,2.785-7.648,4.871-14.604,4.871H425.74v-10.429h22.245%20c2.087,0,3.481,0,4.87-1.392c0.693-0.697,1.391-2.085,1.391-3.477c0-1.394-0.698-2.778-1.391-3.475%20c-0.696-0.695-2.085-1.391-4.172-1.391c-11.122-0.696-24.337,0-24.337-15.295c0-6.609,3.781-12.579,13.106-14.352%20c1.115-0.154,2.293-0.253,3.583-0.253h22.948v11.819h-15.3h-5.561h-0.696c-2.087,0-3.476,0-4.865,0.696%20c-0.7,0.697-1.396,2.089-1.396,3.478c0,2.087,0.696,2.783,2.785,3.473c1.389,0.697,2.78,0.697,4.172,0.697h0.691h5.565%20c3.039,0,5.337,0.375,7.44,1.114c1.926,0.697,8.302,3.549,9.728,10.994c0.124,0.78,0.215,1.594,0.215,2.495%20C466.761,313.925,465.37,317.401,462.59,320.179z'/%3e%3c/g%3e%3c/svg%3e",
4771
4771
  discover: "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20height='30px'%20width='30px'%20version='1.1'%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20512%20512'%20xml:space='preserve'%3e%3cpath%20style='fill:%2334495E;'%20d='M512,402.282c0,16.716-13.55,30.267-30.265,30.267H30.265C13.55,432.549,0,418.996,0,402.282V109.717%20c0-16.716,13.55-30.266,30.265-30.266h451.469c16.716,0,30.265,13.551,30.265,30.266L512,402.282L512,402.282z'/%3e%3cpath%20style='opacity:0.15;fill:%23202121;enable-background:new%20;'%20d='M21.517,402.282V109.717%20c0-16.716,13.552-30.266,30.267-30.266h-21.52C13.55,79.451,0,93.003,0,109.717v292.565c0,16.716,13.55,30.267,30.265,30.267h21.52%20C35.07,432.549,21.517,418.996,21.517,402.282z'/%3e%3cpath%20style='fill:%23F26E21;'%20d='M309.389,255.801c0.041-9.636-3.572-19.286-10.843-26.558c-7.287-7.287-16.961-10.897-26.617-10.839%20c-0.046,0-0.091-0.003-0.139-0.003c-20.968,0-37.6,16.628-37.6,37.602c0,20.767,16.837,37.599,37.6,37.599%20c20.974,0,37.604-16.631,37.604-37.599C309.394,255.934,309.389,255.869,309.389,255.801z'/%3e%3cg%3e%3cpath%20style='fill:%23E7E8E3;'%20d='M227.198,271.909c-5.62,5.626-10.807,7.824-16.394,7.943c-13.611-0.122-23.618-10.202-23.618-24.573%20c0-7.234,2.739-13.163,7.078-18.228l0,0c4.069-3.863,9.311-6.359,15.339-6.359c6.507,0,11.571,2.169,17.352,7.954v-16.631%20c-5.78-2.891-10.846-4.338-17.352-4.338c-9.192,0.657-17.859,4.371-24.507,10.203l0,0c-1.916,1.724-3.752,3.627-5.309,5.805%20c-4.856,6.294-7.791,14.001-7.791,22.32c0,20.967,16.637,36.875,37.606,36.875c0.102,0,0.203-0.009,0.302-0.01%20c0.141,0.002,0.28,0.01,0.42,0.01c5.784,0,10.85-1.443,17.357-4.336L227.198,271.909c-0.244,0.244,0.242,0.471,0,0.702V271.909z'/%3e%3cpolygon%20style='fill:%23E7E8E3;'%20points='356.863,228.033%20356.863,228.033%20340.487,268.295%20321.685,220.566%20306.502,220.566%20336.148,293.601%20344.102,293.601%20375.196,220.566%20360.013,220.566%20'/%3e%3cpolygon%20style='fill:%23E7E8E3;'%20points='380.983,252.384%20380.983,291.435%20420.033,291.435%20420.753,291.435%20420.753,279.861%20408.461,279.861%20395.445,279.861%20395.445,266.848%20395.445,260.342%20420.033,260.342%20420.033,248.045%20395.445,248.045%20395.445,232.861%20420.753,232.861%20420.753,220.566%20380.983,220.566%20'/%3e%3cpath%20style='fill:%23E7E8E3;'%20d='M54.135,220.566H33.884v70.869h20.25c10.845,0,18.798-2.895,25.306-7.957%20c7.953-6.508,13.017-16.629,13.017-27.474C92.458,235.028,77.27,220.566,54.135,220.566z%20M70.765,274.08%20c-4.339,3.614-10.124,5.781-18.802,5.781h-4.339V232.86h3.615c8.678,0,14.463,1.446,18.803,5.783%20c5.061,4.336,7.955,10.848,7.955,17.358C78.72,262.509,75.828,269.737,70.765,274.08z'/%3e%3crect%20x='98.97'%20y='220.56'%20style='fill:%23E7E8E3;'%20width='13.739'%20height='70.867'/%3e%3cpath%20style='fill:%23E7E8E3;'%20d='M147.415,248.045c-8.676-2.892-10.848-5.063-10.848-8.677c0-4.339,4.339-7.954,10.124-7.954%20c4.339,0,7.954,1.447,11.57,5.786l7.233-9.4c-5.787-5.064-13.015-7.953-20.97-7.953c-12.296,0-22.42,8.678-22.42,20.244%20c0,10.126,4.343,14.464,17.357,19.526c5.785,2.166,7.955,2.892,9.404,4.338c2.887,1.444,4.336,4.339,4.336,7.228%20c0,5.786-4.336,10.126-10.848,10.126c-6.514,0-12.294-3.615-15.187-9.401l-8.678,8.678c6.511,9.4,14.465,13.738,24.589,13.738%20c14.461,0,24.58-9.4,24.58-23.141C167.659,258.893,163.324,253.831,147.415,248.045z'/%3e%3cpath%20style='fill:%23E7E8E3;'%20d='M459.804,261.783c10.843-2.166,16.63-9.4,16.63-20.244c0-13.014-9.402-20.973-25.308-20.973h-20.972%20v70.869h13.739V263.23h2.172l19.519,28.205h16.634L459.804,261.783z%20M448.23,253.105h-4.336v-21.691h4.336%20c8.678,0,13.742,3.614,13.742,10.85C461.972,249.492,456.909,253.105,448.23,253.105z'/%3e%3c/g%3e%3c/svg%3e"
4772
- }, No = class extends Q {
4772
+ }, Po = class extends Q {
4773
4773
  currentCardBrand = "unknown";
4774
4774
  cardNumberHelperText;
4775
4775
  cardExpiryHelperText;
@@ -4787,7 +4787,7 @@ var _o = (e) => e.replace(/([A-Z])/g, " $1").trim(), vo = Object.fromEntries(Obj
4787
4787
  borderRadius = 0;
4788
4788
  _vgsFieldsReady = !1;
4789
4789
  _borderColor = "#e0e0e0";
4790
- _fieldHeight = go(fo, 14);
4790
+ _fieldHeight = _o(po, 14);
4791
4791
  _previousVgsValidState = {};
4792
4792
  _vgsAutoAdvanced = {};
4793
4793
  _lastFocusedVgsField = null;
@@ -4796,11 +4796,11 @@ var _o = (e) => e.replace(/([A-Z])/g, " $1").trim(), vo = Object.fromEntries(Obj
4796
4796
  constructor(e) {
4797
4797
  super("div", []);
4798
4798
  let { checkoutProfile: t, translationFunc: n, vgsService: r } = e;
4799
- this._vgsService = r, this.buildVgsLayout(t, n), this.errorMessagesContainer = document.createElement("div"), this.errorMessagesContainer.className = "error-messages-container", this.getElement().appendChild(this.errorMessagesContainer), this.cardNumberHelperText = new To({ visible: !1 }), this.cardExpiryHelperText = new To({ visible: !1 }), this.cardCvvHelperText = new To({ visible: !1 });
4799
+ this._vgsService = r, this.buildVgsLayout(t, n), this.errorMessagesContainer = document.createElement("div"), this.errorMessagesContainer.className = "error-messages-container", this.getElement().appendChild(this.errorMessagesContainer), this.cardNumberHelperText = new Eo({ visible: !1 }), this.cardExpiryHelperText = new Eo({ visible: !1 }), this.cardCvvHelperText = new Eo({ visible: !1 });
4800
4800
  }
4801
4801
  buildVgsLayout(e, t) {
4802
4802
  let n = e.styles.borderRadius;
4803
- this.borderRadius = n, this._fieldHeight = go(fo, e.styles.fontSize), this.vgsCardGroup = document.createElement("div"), this.vgsCardGroup.className = "vgs-card-group", this.vgsCardGroup.style.borderRadius = `${n}px`, this.vgsCardGroup.style.display = "flex", this.vgsCardGroup.style.flexDirection = "column", this.vgsCardGroup.style.position = "relative";
4803
+ this.borderRadius = n, this._fieldHeight = _o(po, e.styles.fontSize), this.vgsCardGroup = document.createElement("div"), this.vgsCardGroup.className = "vgs-card-group", this.vgsCardGroup.style.borderRadius = `${n}px`, this.vgsCardGroup.style.display = "flex", this.vgsCardGroup.style.flexDirection = "column", this.vgsCardGroup.style.position = "relative";
4804
4804
  let r = document.createElement("div");
4805
4805
  r.className = "card-number-row", r.style.position = "relative", r.style.overflow = "hidden", this.vgsCardNumberContainer = document.createElement("div"), this.vgsCardNumberContainer.id = `vgs-cc-number-${Date.now()}`, this.vgsCardNumberContainer.style.position = "relative", this.vgsCardNumberContainer.style.zIndex = "1", this.vgsCardNumberContainer.style.width = "100%", this.vgsCardNumberContainer.style.height = "100%", r.appendChild(this.vgsCardNumberContainer), this.vgsCardIconsContainer = document.createElement("div"), this.vgsCardIconsContainer.className = "cards-position", this.updateVgsCardIcons("unknown"), r.appendChild(this.vgsCardIconsContainer);
4806
4806
  let i = document.createElement("div");
@@ -4821,7 +4821,7 @@ var _o = (e) => e.replace(/([A-Z])/g, " $1").trim(), vo = Object.fromEntries(Obj
4821
4821
  this.vgsCardGroup && (this.vgsCardGroup.style.gap = "0"), this.vgsCardNumberRow && (this.vgsCardNumberRow.style.height = t, this.vgsCardNumberRow.style.borderRadius = `${e}px ${e}px 0 0`), this.vgsCardBottomRow && (this.vgsCardBottomRow.style.gap = "0", this.vgsCardBottomRow.style.marginTop = "-1px"), this.vgsExpiryCell && (this.vgsExpiryCell.style.height = t, this.vgsExpiryCell.style.borderRadius = `0 0 0 ${e}px`), this.vgsCvvCell && (this.vgsCvvCell.style.height = t, this.vgsCvvCell.style.marginLeft = "-1px", this.vgsCvvCell.style.borderRadius = `0 0 ${e}px 0`);
4822
4822
  }
4823
4823
  setVgsFieldMetrics(e, t) {
4824
- this._fieldHeight = go(e, t), this._applyMergedGeometry();
4824
+ this._fieldHeight = _o(e, t), this._applyMergedGeometry();
4825
4825
  }
4826
4826
  buildVgsFieldCss(e, t, n) {
4827
4827
  let r = e.styles.borderRadius, i = n?.padding ?? "8px 12px";
@@ -4895,9 +4895,9 @@ var _o = (e) => e.replace(/([A-Z])/g, " $1").trim(), vo = Object.fromEntries(Obj
4895
4895
  }
4896
4896
  updateVgsCardIcons(e) {
4897
4897
  if (this.vgsCardIconsContainer) {
4898
- if (this.vgsCardIconsContainer.innerHTML = "", e === "unknown") for (let [e, t] of Object.entries(Mo)) this.vgsCardIconsContainer.appendChild(this.createCardIcon(e, t));
4898
+ if (this.vgsCardIconsContainer.innerHTML = "", e === "unknown") for (let [e, t] of Object.entries(No)) this.vgsCardIconsContainer.appendChild(this.createCardIcon(e, t));
4899
4899
  else {
4900
- let t = Mo[e];
4900
+ let t = No[e];
4901
4901
  t && this.vgsCardIconsContainer.appendChild(this.createCardIcon(e, t));
4902
4902
  }
4903
4903
  }
@@ -5015,7 +5015,7 @@ var _o = (e) => e.replace(/([A-Z])/g, " $1").trim(), vo = Object.fromEntries(Obj
5015
5015
  focus() {
5016
5016
  this.focusField("cardNumber");
5017
5017
  }
5018
- }, Po = class extends Q {
5018
+ }, Fo = class extends Q {
5019
5019
  constructor(e) {
5020
5020
  super("div", ["card-unavailable"]);
5021
5021
  let { checkoutProfile: t, translationFunc: n } = e, { fontFamily: r, fontSize: i, borderRadius: a } = t.styles, o = document.createElement("div");
@@ -5025,11 +5025,11 @@ var _o = (e) => e.replace(/([A-Z])/g, " $1").trim(), vo = Object.fromEntries(Obj
5025
5025
  let c = document.createElement("div");
5026
5026
  c.className = "card-unavailable-message", c.setAttribute("role", "alert"), c.textContent = n("cardUnavailable"), c.style.fontFamily = `var(--odus-font-family, "${r}", sans-serif)`, c.style.fontSize = `var(--odus-font-size, ${i}px)`, c.style.borderRadius = `var(--odus-border-radius, ${a}px)`, this.getElement().appendChild(o), this.getElement().appendChild(c);
5027
5027
  }
5028
- }, Fo = class {
5028
+ }, Io = class {
5029
5029
  input;
5030
5030
  constructor(e) {
5031
5031
  let { value: t, onChange: n, onBlur: r, onTab: i, errorMsg: a, checkoutProfile: o, translationFunc: s, autocomplete: c = "email", label: l, placeholder: u } = e;
5032
- this.input = new Oo({
5032
+ this.input = new ko({
5033
5033
  name: "email",
5034
5034
  label: l ?? s("email"),
5035
5035
  error: !1,
@@ -5081,12 +5081,12 @@ var _o = (e) => e.replace(/([A-Z])/g, " $1").trim(), vo = Object.fromEntries(Obj
5081
5081
  focus() {
5082
5082
  this.input.focus();
5083
5083
  }
5084
- }, Io = (e, t) => {
5084
+ }, Lo = (e, t) => {
5085
5085
  if (!e?.length) return !0;
5086
5086
  if (!t) return !1;
5087
5087
  let n = t.toUpperCase();
5088
5088
  return e.some((e) => e.toUpperCase() === n);
5089
- }, Lo = async ({ id: e, domainName: n, displayName: r, checkoutKey: i, environment: a }) => {
5089
+ }, Ro = async ({ id: e, domainName: n, displayName: r, checkoutKey: i, environment: a }) => {
5090
5090
  let o = E(a), s = await fetch(`${o}${t.applePaySessions(e)}`, {
5091
5091
  method: "POST",
5092
5092
  headers: {
@@ -5100,14 +5100,14 @@ var _o = (e) => e.replace(/([A-Z])/g, " $1").trim(), vo = Object.fromEntries(Obj
5100
5100
  });
5101
5101
  if (!s.ok) throw Error(`HTTP error! Status: ${s.status}`);
5102
5102
  return await s.json();
5103
- }, Ro = () => {
5103
+ }, zo = () => {
5104
5104
  if (typeof window > "u" || window.ApplePaySession === void 0 || typeof window.ApplePaySession.canMakePayments != "function") return !1;
5105
5105
  try {
5106
5106
  return window.ApplePaySession.canMakePayments();
5107
5107
  } catch {
5108
5108
  return !1;
5109
5109
  }
5110
- }, zo = "Apple Pay payment data could not be read", Bo = class extends Q {
5110
+ }, Bo = "Apple Pay payment data could not be read", Vo = class extends Q {
5111
5111
  formData;
5112
5112
  onSubmit;
5113
5113
  onStartFailed;
@@ -5125,7 +5125,7 @@ var _o = (e) => e.replace(/([A-Z])/g, " $1").trim(), vo = Object.fromEntries(Obj
5125
5125
  let { formData: t, onSubmit: n, onStartFailed: r, onPaymentDataFailed: i, paymentId: a, checkoutKey: o, checkoutDetails: s, environment: c, displayName: l, requiredBillingContactFields: u, requiredShippingContactFields: d } = e;
5126
5126
  this.formData = t, this.onSubmit = n, this.onStartFailed = r, this.onPaymentDataFailed = i, this.paymentId = a, this.checkoutKey = o, this.checkoutDetails = s, this.environment = c, this.displayName = l || "Payment", this.requiredBillingContactFields = u, this.requiredShippingContactFields = d;
5127
5127
  let f = this.getElement();
5128
- f.setAttribute("buttonstyle", "black"), f.setAttribute("type", "plain"), f.setAttribute("locale", "en"), f.style.setProperty("--apple-pay-button-height", "40px"), f.style.setProperty("--apple-pay-button-border-radius", "4px"), f.style.setProperty("--apple-pay-button-padding", "0px 0px"), f.style.setProperty("--apple-pay-button-box-sizing", "border-box"), f.style.cursor = n ? "pointer" : "default", f.style.opacity = "1", Ro() || (f.style.display = "none"), n && this.getElement().addEventListener("click", () => this.handleApplePayClick());
5128
+ f.setAttribute("buttonstyle", "black"), f.setAttribute("type", "plain"), f.setAttribute("locale", "en"), f.style.setProperty("--apple-pay-button-height", "40px"), f.style.setProperty("--apple-pay-button-border-radius", "4px"), f.style.setProperty("--apple-pay-button-padding", "0px 0px"), f.style.setProperty("--apple-pay-button-box-sizing", "border-box"), f.style.cursor = n ? "pointer" : "default", f.style.opacity = "1", zo() || (f.style.display = "none"), n && this.getElement().addEventListener("click", () => this.handleApplePayClick());
5129
5129
  }
5130
5130
  async handleApplePayClick() {
5131
5131
  if (this.onSubmit && !this.isSubmitting) {
@@ -5143,7 +5143,7 @@ var _o = (e) => e.replace(/([A-Z])/g, " $1").trim(), vo = Object.fromEntries(Obj
5143
5143
  stage: e,
5144
5144
  error_message: t instanceof Error ? t.message : "Unknown error"
5145
5145
  };
5146
- Z(n.APPLE_PAY_START_FAILED, r), mi(t instanceof Error ? t : /* @__PURE__ */ Error("Apple Pay could not start"), {
5146
+ Z(n.APPLE_PAY_START_FAILED, r), hi(t instanceof Error ? t : /* @__PURE__ */ Error("Apple Pay could not start"), {
5147
5147
  payment_id: this.paymentId,
5148
5148
  stage: e
5149
5149
  }), this.onStartFailed?.(e);
@@ -5172,7 +5172,7 @@ var _o = (e) => e.replace(/([A-Z])/g, " $1").trim(), vo = Object.fromEntries(Obj
5172
5172
  let i = new window.ApplePaySession(3, r), a = !1;
5173
5173
  i.onvalidatemerchant = async () => {
5174
5174
  try {
5175
- let e = await Lo({
5175
+ let e = await Ro({
5176
5176
  id: this.paymentId,
5177
5177
  domainName: window.location.hostname,
5178
5178
  displayName: this.displayName,
@@ -5234,14 +5234,14 @@ var _o = (e) => e.replace(/([A-Z])/g, " $1").trim(), vo = Object.fromEntries(Obj
5234
5234
  };
5235
5235
  }
5236
5236
  reportPaymentDataFailure(e) {
5237
- let t = ji(e);
5237
+ let t = Mi(e);
5238
5238
  Z(n.PAYMENT_SUBMIT_FAILED, {
5239
5239
  payment_id: this.paymentId,
5240
5240
  payment_method: t.paymentMethod,
5241
- error_message: zo,
5241
+ error_message: Bo,
5242
5242
  failure_class: i.SDK_ERROR,
5243
5243
  http_status: a,
5244
- error_class: bi(e)
5244
+ error_class: xi(e)
5245
5245
  }), this.onPaymentDataFailed?.(t);
5246
5246
  }
5247
5247
  updateFormData(e) {
@@ -5250,7 +5250,7 @@ var _o = (e) => e.replace(/([A-Z])/g, " $1").trim(), vo = Object.fromEntries(Obj
5250
5250
  setSubmitting(e) {
5251
5251
  return this.isSubmitting = e, this.getElement().style.opacity = e ? "0.7" : "1", this.getElement().style.pointerEvents = e ? "none" : "auto", this;
5252
5252
  }
5253
- }, Vo = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='101px'%20height='32'%20viewBox='0%200%20101%2032'%20preserveAspectRatio='xMinYMin%20meet'%3e%3cpath%20fill='%23003087'%20d='M%2012.237%202.8%20L%204.437%202.8%20C%203.937%202.8%203.437%203.2%203.337%203.7%20L%200.237%2023.7%20C%200.137%2024.1%200.437%2024.4%200.837%2024.4%20L%204.537%2024.4%20C%205.037%2024.4%205.537%2024%205.637%2023.5%20L%206.437%2018.1%20C%206.537%2017.6%206.937%2017.2%207.537%2017.2%20L%2010.037%2017.2%20C%2015.137%2017.2%2018.137%2014.7%2018.937%209.8%20C%2019.237%207.7%2018.937%206%2017.937%204.8%20C%2016.837%203.5%2014.837%202.8%2012.237%202.8%20Z%20M%2013.137%2010.1%20C%2012.737%2012.9%2010.537%2012.9%208.537%2012.9%20L%207.337%2012.9%20L%208.137%207.7%20C%208.137%207.4%208.437%207.2%208.737%207.2%20L%209.237%207.2%20C%2010.637%207.2%2011.937%207.2%2012.637%208%20C%2013.137%208.4%2013.337%209.1%2013.137%2010.1%20Z'/%3e%3cpath%20fill='%23003087'%20d='M%2035.437%2010%20L%2031.737%2010%20C%2031.437%2010%2031.137%2010.2%2031.137%2010.5%20L%2030.937%2011.5%20L%2030.637%2011.1%20C%2029.837%209.9%2028.037%209.5%2026.237%209.5%20C%2022.137%209.5%2018.637%2012.6%2017.937%2017%20C%2017.537%2019.2%2018.037%2021.3%2019.337%2022.7%20C%2020.437%2024%2022.137%2024.6%2024.037%2024.6%20C%2027.337%2024.6%2029.237%2022.5%2029.237%2022.5%20L%2029.037%2023.5%20C%2028.937%2023.9%2029.237%2024.3%2029.637%2024.3%20L%2033.037%2024.3%20C%2033.537%2024.3%2034.037%2023.9%2034.137%2023.4%20L%2036.137%2010.6%20C%2036.237%2010.4%2035.837%2010%2035.437%2010%20Z%20M%2030.337%2017.2%20C%2029.937%2019.3%2028.337%2020.8%2026.137%2020.8%20C%2025.037%2020.8%2024.237%2020.5%2023.637%2019.8%20C%2023.037%2019.1%2022.837%2018.2%2023.037%2017.2%20C%2023.337%2015.1%2025.137%2013.6%2027.237%2013.6%20C%2028.337%2013.6%2029.137%2014%2029.737%2014.6%20C%2030.237%2015.3%2030.437%2016.2%2030.337%2017.2%20Z'/%3e%3cpath%20fill='%23003087'%20d='M%2055.337%2010%20L%2051.637%2010%20C%2051.237%2010%2050.937%2010.2%2050.737%2010.5%20L%2045.537%2018.1%20L%2043.337%2010.8%20C%2043.237%2010.3%2042.737%2010%2042.337%2010%20L%2038.637%2010%20C%2038.237%2010%2037.837%2010.4%2038.037%2010.9%20L%2042.137%2023%20L%2038.237%2028.4%20C%2037.937%2028.8%2038.237%2029.4%2038.737%2029.4%20L%2042.437%2029.4%20C%2042.837%2029.4%2043.137%2029.2%2043.337%2028.9%20L%2055.837%2010.9%20C%2056.137%2010.6%2055.837%2010%2055.337%2010%20Z'/%3e%3cpath%20fill='%23009cde'%20d='M%2067.737%202.8%20L%2059.937%202.8%20C%2059.437%202.8%2058.937%203.2%2058.837%203.7%20L%2055.737%2023.6%20C%2055.637%2024%2055.937%2024.3%2056.337%2024.3%20L%2060.337%2024.3%20C%2060.737%2024.3%2061.037%2024%2061.037%2023.7%20L%2061.937%2018%20C%2062.037%2017.5%2062.437%2017.1%2063.037%2017.1%20L%2065.537%2017.1%20C%2070.637%2017.1%2073.637%2014.6%2074.437%209.7%20C%2074.737%207.6%2074.437%205.9%2073.437%204.7%20C%2072.237%203.5%2070.337%202.8%2067.737%202.8%20Z%20M%2068.637%2010.1%20C%2068.237%2012.9%2066.037%2012.9%2064.037%2012.9%20L%2062.837%2012.9%20L%2063.637%207.7%20C%2063.637%207.4%2063.937%207.2%2064.237%207.2%20L%2064.737%207.2%20C%2066.137%207.2%2067.437%207.2%2068.137%208%20C%2068.637%208.4%2068.737%209.1%2068.637%2010.1%20Z'/%3e%3cpath%20fill='%23009cde'%20d='M%2090.937%2010%20L%2087.237%2010%20C%2086.937%2010%2086.637%2010.2%2086.637%2010.5%20L%2086.437%2011.5%20L%2086.137%2011.1%20C%2085.337%209.9%2083.537%209.5%2081.737%209.5%20C%2077.637%209.5%2074.137%2012.6%2073.437%2017%20C%2073.037%2019.2%2073.537%2021.3%2074.837%2022.7%20C%2075.937%2024%2077.637%2024.6%2079.537%2024.6%20C%2082.837%2024.6%2084.737%2022.5%2084.737%2022.5%20L%2084.537%2023.5%20C%2084.437%2023.9%2084.737%2024.3%2085.137%2024.3%20L%2088.537%2024.3%20C%2089.037%2024.3%2089.537%2023.9%2089.637%2023.4%20L%2091.637%2010.6%20C%2091.637%2010.4%2091.337%2010%2090.937%2010%20Z%20M%2085.737%2017.2%20C%2085.337%2019.3%2083.737%2020.8%2081.537%2020.8%20C%2080.437%2020.8%2079.637%2020.5%2079.037%2019.8%20C%2078.437%2019.1%2078.237%2018.2%2078.437%2017.2%20C%2078.737%2015.1%2080.537%2013.6%2082.637%2013.6%20C%2083.737%2013.6%2084.537%2014%2085.137%2014.6%20C%2085.737%2015.3%2085.937%2016.2%2085.737%2017.2%20Z'/%3e%3cpath%20fill='%23009cde'%20d='M%2095.337%203.3%20L%2092.137%2023.6%20C%2092.037%2024%2092.337%2024.3%2092.737%2024.3%20L%2095.937%2024.3%20C%2096.437%2024.3%2096.937%2023.9%2097.037%2023.4%20L%20100.237%203.5%20C%20100.337%203.1%20100.037%202.8%2099.637%202.8%20L%2096.037%202.8%20C%2095.637%202.8%2095.437%203%2095.337%203.3%20Z'/%3e%3c/svg%3e", Ho = class extends Q {
5253
+ }, Ho = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='101px'%20height='32'%20viewBox='0%200%20101%2032'%20preserveAspectRatio='xMinYMin%20meet'%3e%3cpath%20fill='%23003087'%20d='M%2012.237%202.8%20L%204.437%202.8%20C%203.937%202.8%203.437%203.2%203.337%203.7%20L%200.237%2023.7%20C%200.137%2024.1%200.437%2024.4%200.837%2024.4%20L%204.537%2024.4%20C%205.037%2024.4%205.537%2024%205.637%2023.5%20L%206.437%2018.1%20C%206.537%2017.6%206.937%2017.2%207.537%2017.2%20L%2010.037%2017.2%20C%2015.137%2017.2%2018.137%2014.7%2018.937%209.8%20C%2019.237%207.7%2018.937%206%2017.937%204.8%20C%2016.837%203.5%2014.837%202.8%2012.237%202.8%20Z%20M%2013.137%2010.1%20C%2012.737%2012.9%2010.537%2012.9%208.537%2012.9%20L%207.337%2012.9%20L%208.137%207.7%20C%208.137%207.4%208.437%207.2%208.737%207.2%20L%209.237%207.2%20C%2010.637%207.2%2011.937%207.2%2012.637%208%20C%2013.137%208.4%2013.337%209.1%2013.137%2010.1%20Z'/%3e%3cpath%20fill='%23003087'%20d='M%2035.437%2010%20L%2031.737%2010%20C%2031.437%2010%2031.137%2010.2%2031.137%2010.5%20L%2030.937%2011.5%20L%2030.637%2011.1%20C%2029.837%209.9%2028.037%209.5%2026.237%209.5%20C%2022.137%209.5%2018.637%2012.6%2017.937%2017%20C%2017.537%2019.2%2018.037%2021.3%2019.337%2022.7%20C%2020.437%2024%2022.137%2024.6%2024.037%2024.6%20C%2027.337%2024.6%2029.237%2022.5%2029.237%2022.5%20L%2029.037%2023.5%20C%2028.937%2023.9%2029.237%2024.3%2029.637%2024.3%20L%2033.037%2024.3%20C%2033.537%2024.3%2034.037%2023.9%2034.137%2023.4%20L%2036.137%2010.6%20C%2036.237%2010.4%2035.837%2010%2035.437%2010%20Z%20M%2030.337%2017.2%20C%2029.937%2019.3%2028.337%2020.8%2026.137%2020.8%20C%2025.037%2020.8%2024.237%2020.5%2023.637%2019.8%20C%2023.037%2019.1%2022.837%2018.2%2023.037%2017.2%20C%2023.337%2015.1%2025.137%2013.6%2027.237%2013.6%20C%2028.337%2013.6%2029.137%2014%2029.737%2014.6%20C%2030.237%2015.3%2030.437%2016.2%2030.337%2017.2%20Z'/%3e%3cpath%20fill='%23003087'%20d='M%2055.337%2010%20L%2051.637%2010%20C%2051.237%2010%2050.937%2010.2%2050.737%2010.5%20L%2045.537%2018.1%20L%2043.337%2010.8%20C%2043.237%2010.3%2042.737%2010%2042.337%2010%20L%2038.637%2010%20C%2038.237%2010%2037.837%2010.4%2038.037%2010.9%20L%2042.137%2023%20L%2038.237%2028.4%20C%2037.937%2028.8%2038.237%2029.4%2038.737%2029.4%20L%2042.437%2029.4%20C%2042.837%2029.4%2043.137%2029.2%2043.337%2028.9%20L%2055.837%2010.9%20C%2056.137%2010.6%2055.837%2010%2055.337%2010%20Z'/%3e%3cpath%20fill='%23009cde'%20d='M%2067.737%202.8%20L%2059.937%202.8%20C%2059.437%202.8%2058.937%203.2%2058.837%203.7%20L%2055.737%2023.6%20C%2055.637%2024%2055.937%2024.3%2056.337%2024.3%20L%2060.337%2024.3%20C%2060.737%2024.3%2061.037%2024%2061.037%2023.7%20L%2061.937%2018%20C%2062.037%2017.5%2062.437%2017.1%2063.037%2017.1%20L%2065.537%2017.1%20C%2070.637%2017.1%2073.637%2014.6%2074.437%209.7%20C%2074.737%207.6%2074.437%205.9%2073.437%204.7%20C%2072.237%203.5%2070.337%202.8%2067.737%202.8%20Z%20M%2068.637%2010.1%20C%2068.237%2012.9%2066.037%2012.9%2064.037%2012.9%20L%2062.837%2012.9%20L%2063.637%207.7%20C%2063.637%207.4%2063.937%207.2%2064.237%207.2%20L%2064.737%207.2%20C%2066.137%207.2%2067.437%207.2%2068.137%208%20C%2068.637%208.4%2068.737%209.1%2068.637%2010.1%20Z'/%3e%3cpath%20fill='%23009cde'%20d='M%2090.937%2010%20L%2087.237%2010%20C%2086.937%2010%2086.637%2010.2%2086.637%2010.5%20L%2086.437%2011.5%20L%2086.137%2011.1%20C%2085.337%209.9%2083.537%209.5%2081.737%209.5%20C%2077.637%209.5%2074.137%2012.6%2073.437%2017%20C%2073.037%2019.2%2073.537%2021.3%2074.837%2022.7%20C%2075.937%2024%2077.637%2024.6%2079.537%2024.6%20C%2082.837%2024.6%2084.737%2022.5%2084.737%2022.5%20L%2084.537%2023.5%20C%2084.437%2023.9%2084.737%2024.3%2085.137%2024.3%20L%2088.537%2024.3%20C%2089.037%2024.3%2089.537%2023.9%2089.637%2023.4%20L%2091.637%2010.6%20C%2091.637%2010.4%2091.337%2010%2090.937%2010%20Z%20M%2085.737%2017.2%20C%2085.337%2019.3%2083.737%2020.8%2081.537%2020.8%20C%2080.437%2020.8%2079.637%2020.5%2079.037%2019.8%20C%2078.437%2019.1%2078.237%2018.2%2078.437%2017.2%20C%2078.737%2015.1%2080.537%2013.6%2082.637%2013.6%20C%2083.737%2013.6%2084.537%2014%2085.137%2014.6%20C%2085.737%2015.3%2085.937%2016.2%2085.737%2017.2%20Z'/%3e%3cpath%20fill='%23009cde'%20d='M%2095.337%203.3%20L%2092.137%2023.6%20C%2092.037%2024%2092.337%2024.3%2092.737%2024.3%20L%2095.937%2024.3%20C%2096.437%2024.3%2096.937%2023.9%2097.037%2023.4%20L%20100.237%203.5%20C%20100.337%203.1%20100.037%202.8%2099.637%202.8%20L%2096.037%202.8%20C%2095.637%202.8%2095.437%203%2095.337%203.3%20Z'/%3e%3c/svg%3e", Uo = class extends Q {
5254
5254
  formData;
5255
5255
  onSubmit;
5256
5256
  isSubmitting = !1;
@@ -5261,7 +5261,7 @@ var _o = (e) => e.replace(/([A-Z])/g, " $1").trim(), vo = Object.fromEntries(Obj
5261
5261
  let r = document.createElement("div");
5262
5262
  r.className = "paypal-icon-container";
5263
5263
  let i = document.createElement("img");
5264
- i.src = Vo, i.style.width = "69px", i.style.height = "22px", i.style.maxWidth = "100%", i.style.display = "block", i.style.height = "auto", r.appendChild(i), this.getElement().appendChild(r), n && this.getElement().addEventListener("click", () => this.handleSubmit());
5264
+ i.src = Ho, i.style.width = "69px", i.style.height = "22px", i.style.maxWidth = "100%", i.style.display = "block", i.style.height = "auto", r.appendChild(i), this.getElement().appendChild(r), n && this.getElement().addEventListener("click", () => this.handleSubmit());
5265
5265
  }
5266
5266
  async handleSubmit() {
5267
5267
  if (this.onSubmit && !this.isSubmitting) {
@@ -5281,16 +5281,16 @@ var _o = (e) => e.replace(/([A-Z])/g, " $1").trim(), vo = Object.fromEntries(Obj
5281
5281
  setSubmitting(e) {
5282
5282
  return this.isSubmitting = e, this.getElement().style.opacity = e ? "0.7" : "1", this;
5283
5283
  }
5284
- }, Uo = class extends Q {
5284
+ }, Wo = class extends Q {
5285
5285
  messageComponent;
5286
5286
  constructor(e) {
5287
5287
  super("div", []);
5288
- let t = Eo.createDiv(["error-alert"], {
5288
+ let t = Do.createDiv(["error-alert"], {
5289
5289
  role: "alert",
5290
5290
  "aria-live": "polite"
5291
- }), n = Eo.createDiv(["error-alert-content"]), r = Eo.createDiv(["error-alert-icon-container"]);
5291
+ }), n = Do.createDiv(["error-alert-content"]), r = Do.createDiv(["error-alert-icon-container"]);
5292
5292
  r.getElement().innerHTML = this.createAlertCircleSVG();
5293
- let i = Eo.createDiv(["error-alert-text-container"]), a = new Q("h4", ["error-alert-title"]);
5293
+ let i = Do.createDiv(["error-alert-text-container"]), a = new Q("h4", ["error-alert-title"]);
5294
5294
  a.setText("Checkout Error"), this.messageComponent = new Q("p", ["error-alert-message"]), this.messageComponent.setText(e.message || "Bad request"), i.appendChild(a), i.appendChild(this.messageComponent), n.appendChild(r), n.appendChild(i), t.appendChild(n), this.appendChild(t);
5295
5295
  }
5296
5296
  createAlertCircleSVG() {
@@ -5299,6 +5299,6 @@ var _o = (e) => e.replace(/([A-Z])/g, " $1").trim(), vo = Object.fromEntries(Obj
5299
5299
  setMessage(e) {
5300
5300
  return this.messageComponent.setText(e), this;
5301
5301
  }
5302
- }, Wo = (e) => e.latestTransaction ? e.latestTransaction.status : e.status === "succeeded" ? "authorized" : void 0;
5302
+ }, Go = (e) => e.latestTransaction ? e.latestTransaction.status : e.status === "succeeded" ? "authorized" : void 0;
5303
5303
  //#endregion
5304
- export { Oi as $, Ha as A, Ca as B, so as C, qa as D, Qa as E, Ia as F, na as G, fa as H, Fa as I, Wi as J, $i as K, ka as L, Ba as M, za as N, Ga as O, Ra as P, Di as Q, wa as R, uo as S, $a as T, oa as U, ha as V, ra as W, Hi as X, Ui as Y, Ai as Z, wo as _, r as _t, Ro as a, mi as at, go as b, p as bt, Po as c, hi as ct, jo as d, C as dt, ki as et, ko as f, T as ft, To as g, u as gt, Eo as h, n as ht, Bo as i, pi as it, Va as j, Wa as k, No as l, D as lt, Do as m, c as mt, Uo as n, wi as nt, Io as o, Z as ot, Oo as p, x as pt, Gi as q, Ho as r, bi as rt, Fo as s, gi as st, Wo as t, Ci as tt, $ as u, w as ut, Co as v, i as vt, to as w, Q as x, s as xt, fo as y, o as yt, Sa as z };
5304
+ export { ki as $, Ua as A, wa as B, co as C, Ja as D, $a as E, La as F, ra as G, pa as H, Ia as I, Gi as J, ea as K, Aa as L, Va as M, Ba as N, Ka as O, za as P, Oi as Q, Ta as R, fo as S, eo as T, sa as U, ga as V, ia as W, Ui as X, Wi as Y, ji as Z, To as _, r as _t, zo as a, hi as at, _o as b, p as bt, Fo as c, gi as ct, Mo as d, C as dt, Ai as et, Ao as f, T as ft, Eo as g, u as gt, Do as h, n as ht, Vo as i, mi as it, Ha as j, Ga as k, Po as l, D as lt, Oo as m, c as mt, Wo as n, Ti as nt, Lo as o, Z as ot, ko as p, x as pt, Ki as q, Uo as r, xi as rt, Io as s, _i as st, Go as t, wi as tt, $ as u, w as ut, wo as v, i as vt, no as w, Q as x, s as xt, po as y, o as yt, Ca as z };