@odus/checkout 1.14.9 → 1.16.1

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
@@ -2021,10 +2021,15 @@ var ir = function(e) {
2021
2021
  if (typeof window > "u") return !1;
2022
2022
  let e = window.location.hostname;
2023
2023
  return e === "localhost" || e === "127.0.0.1" || e === "0.0.0.0" || e === "::1" || e === "[::1]" || e.endsWith(".localhost");
2024
- }, X = null, oi = null, si = (e) => ({
2024
+ }, X = null, oi = null, si = { delivery: "bundled" }, ci = null, li = "checkout.runtime.load_time", ui = (e) => ({
2025
2025
  ...e,
2026
+ ...si,
2026
2027
  ...oi && { integration: oi }
2027
- }), ci = (e) => {
2028
+ }), di = () => {
2029
+ if (ci === null) return;
2030
+ let e = ci;
2031
+ ci = null, mi(li, e, "ms");
2032
+ }, fi = (e) => {
2028
2033
  if (X) return X;
2029
2034
  if (ai()) return null;
2030
2035
  let t = ii(e.environment);
@@ -2032,7 +2037,7 @@ var ir = function(e) {
2032
2037
  url: t,
2033
2038
  app: {
2034
2039
  name: "odus-checkout",
2035
- version: "1.14.9",
2040
+ version: "1.16.1",
2036
2041
  environment: e.environment === "test" ? "sandbox" : "production"
2037
2042
  },
2038
2043
  isolate: !0,
@@ -2061,21 +2066,21 @@ var ir = function(e) {
2061
2066
  } catch {}
2062
2067
  return e;
2063
2068
  }
2064
- }), X;
2065
- }, li = (e, t) => {
2066
- X && X.pushError(e, { context: si(t) });
2069
+ }), di(), X;
2070
+ }, pi = (e, t) => {
2071
+ X && X.pushError(e, { context: ui(t) });
2067
2072
  }, Z = (e, t) => {
2068
- X && X.pushEvent(e, si(t));
2069
- }, ui = (e, t, n, r) => {
2073
+ X && X.pushEvent(e, ui(t));
2074
+ }, mi = (e, t, n, r) => {
2070
2075
  X && X.pushMeasurement({
2071
2076
  type: e,
2072
2077
  values: { [e]: t },
2073
- context: si({
2078
+ context: ui({
2074
2079
  ...n && { unit: n },
2075
2080
  ...r
2076
2081
  })
2077
2082
  });
2078
- }, di = (e, t = "info", n) => {
2083
+ }, hi = (e, t = "info", n) => {
2079
2084
  if (!X) return;
2080
2085
  let r = {
2081
2086
  info: ti.INFO,
@@ -2084,11 +2089,11 @@ var ir = function(e) {
2084
2089
  };
2085
2090
  X.pushLog([e], {
2086
2091
  level: r[t],
2087
- context: si(n)
2092
+ context: ui(n)
2088
2093
  });
2089
- }, fi = () => {
2094
+ }, gi = () => {
2090
2095
  X && X.flush();
2091
- }, pi = "unknown", mi = /* @__PURE__ */ new Set([
2096
+ }, _i = "unknown", vi = /* @__PURE__ */ new Set([
2092
2097
  "Error",
2093
2098
  "AggregateError",
2094
2099
  "EvalError",
@@ -2108,19 +2113,19 @@ var ir = function(e) {
2108
2113
  "SecurityError",
2109
2114
  "TimeoutError",
2110
2115
  "ChunkLoadError"
2111
- ]), hi = (e) => {
2112
- if (typeof e != "object" || !e) return pi;
2116
+ ]), yi = (e) => {
2117
+ if (typeof e != "object" || !e) return _i;
2113
2118
  try {
2114
2119
  let { name: t } = e;
2115
- return typeof t == "string" && mi.has(t) ? t : pi;
2120
+ return typeof t == "string" && vi.has(t) ? t : _i;
2116
2121
  } catch {
2117
- return pi;
2122
+ return _i;
2118
2123
  }
2119
- }, gi = /* @__PURE__ */ new WeakMap(), _i = (e) => typeof e == "object" && !!e || typeof e == "function", vi = (e, t) => (_i(e) && gi.set(e, t), e), yi = (e) => _i(e) ? gi.get(e) : void 0, bi = [
2124
+ }, bi = /* @__PURE__ */ new WeakMap(), xi = (e) => typeof e == "object" && !!e || typeof e == "function", Si = (e, t) => (xi(e) && bi.set(e, t), e), Ci = (e) => xi(e) ? bi.get(e) : void 0, wi = [
2120
2125
  i.NETWORK,
2121
2126
  i.INVALID_RESPONSE,
2122
2127
  i.SDK_ERROR
2123
- ], xi = [i.INVALID_RESPONSE, i.SDK_ERROR], Si = (e, t) => {
2128
+ ], Ti = [i.INVALID_RESPONSE, i.SDK_ERROR], Ei = (e, t) => {
2124
2129
  let n = w(e);
2125
2130
  return {
2126
2131
  reason: u.ASSOCIATION_FAILED,
@@ -2128,20 +2133,20 @@ var ir = function(e) {
2128
2133
  ...n,
2129
2134
  association_stage: t
2130
2135
  },
2131
- ours: bi.includes(n.failure_class)
2136
+ ours: wi.includes(n.failure_class)
2132
2137
  };
2133
- }, Ci = (e, t) => {
2134
- if (yi(e)) return wi(e, t);
2138
+ }, Di = (e, t) => {
2139
+ if (Ci(e)) return Oi(e, t);
2135
2140
  let n = w(e);
2136
2141
  return {
2137
2142
  outcome: p.FAILED,
2138
2143
  reason: g.AUTHORIZE_FAILED,
2139
2144
  attributes: { ...n },
2140
- fault: xi.includes(n.failure_class) ? m.OURS : m.NOT_OURS,
2145
+ fault: Ti.includes(n.failure_class) ? m.OURS : m.NOT_OURS,
2141
2146
  paymentMethod: t
2142
2147
  };
2143
- }, wi = (e, t) => {
2144
- let n = yi(e) ?? s.SDK_ERROR;
2148
+ }, Oi = (e, t) => {
2149
+ let n = Ci(e) ?? s.SDK_ERROR;
2145
2150
  return {
2146
2151
  outcome: p.FAILED,
2147
2152
  reason: g.TOKENIZATION_FAILED,
@@ -2149,50 +2154,50 @@ var ir = function(e) {
2149
2154
  fault: n === s.INVALID_INPUT ? m.NOT_OURS : m.OURS,
2150
2155
  paymentMethod: t
2151
2156
  };
2152
- }, Ti = (e) => ({
2157
+ }, ki = (e) => ({
2153
2158
  outcome: p.FAILED,
2154
2159
  reason: g.APPLE_PAY_START_FAILED,
2155
2160
  attributes: { apple_pay_stage: e },
2156
2161
  fault: m.OURS,
2157
2162
  paymentMethod: "apple_pay"
2158
- }), Ei = (e) => ({
2163
+ }), Ai = (e) => ({
2159
2164
  outcome: p.FAILED,
2160
2165
  reason: g.AUTHORIZE_FAILED,
2161
2166
  attributes: {
2162
2167
  failure_class: i.SDK_ERROR,
2163
2168
  http_status: a,
2164
- error_class: hi(e)
2169
+ error_class: yi(e)
2165
2170
  },
2166
2171
  fault: m.OURS,
2167
2172
  paymentMethod: "apple_pay"
2168
- }), Di = "verygoodvault.com", Oi = !1, ki = !1, Ai = (e) => {
2173
+ }), ji = "verygoodvault.com", Mi = !1, Ni = !1, Pi = (e) => {
2169
2174
  if (typeof e != "string") return !1;
2170
2175
  try {
2171
2176
  let { hostname: t } = new URL(e);
2172
- return t === Di || t.endsWith(`.${Di}`);
2177
+ return t === ji || t.endsWith(`.${ji}`);
2173
2178
  } catch {
2174
2179
  return !1;
2175
2180
  }
2176
- }, ji = (e) => {
2181
+ }, Fi = (e) => {
2177
2182
  let t = e;
2178
- t.disposition !== "report" && Ai(t.blockedURI) && (ki = !0);
2179
- }, Mi = () => {
2180
- Oi || typeof document > "u" || (Oi = !0, document.addEventListener("securitypolicyviolation", ji));
2181
- }, Ni = () => ki, Pi = "3.3.0", Fi = /* @__PURE__ */ new Map(), Ii = (e) => {
2182
- let t = Fi.get(e);
2183
+ t.disposition !== "report" && Pi(t.blockedURI) && (Ni = !0);
2184
+ }, Ii = () => {
2185
+ Mi || typeof document > "u" || (Mi = !0, document.addEventListener("securitypolicyviolation", Fi));
2186
+ }, Li = () => Ni, Ri = "3.3.0", zi = /* @__PURE__ */ new Map(), Bi = (e) => {
2187
+ let t = zi.get(e);
2183
2188
  if (t) return t;
2184
- Mi();
2189
+ Ii();
2185
2190
  let n = ir({
2186
2191
  vaultId: O[e],
2187
2192
  environment: k[e],
2188
- version: Pi
2193
+ version: Ri
2189
2194
  }).catch((t) => {
2190
- throw Fi.delete(e), t;
2195
+ throw zi.delete(e), t;
2191
2196
  });
2192
- return Fi.set(e, n), n;
2193
- }, Li = (e) => {
2194
- Ii(e).catch(() => void 0);
2195
- }, Ri = class e {
2197
+ return zi.set(e, n), n;
2198
+ }, Vi = (e) => {
2199
+ Bi(e).catch(() => void 0);
2200
+ }, Hi = class e {
2196
2201
  vgsForm = null;
2197
2202
  fields = [];
2198
2203
  _namedFields = {};
@@ -2208,7 +2213,7 @@ var ir = function(e) {
2208
2213
  });
2209
2214
  }
2210
2215
  async init(e) {
2211
- return this.environment = e, Ii(e);
2216
+ return this.environment = e, Bi(e);
2212
2217
  }
2213
2218
  createForm(e, t) {
2214
2219
  if (!this.environment) throw Error("VGS not initialized — call init() first");
@@ -2324,7 +2329,7 @@ var ir = function(e) {
2324
2329
  Z(n.VGS_IFRAME_LOADED, {
2325
2330
  field_type: a,
2326
2331
  duration_ms: String(e)
2327
- }), ui(r.VGS_IFRAME_LOAD_TIME, e, "ms", { field_type: a });
2332
+ }), mi(r.VGS_IFRAME_LOAD_TIME, e, "ms", { field_type: a });
2328
2333
  }), new Promise((e, t) => {
2329
2334
  s = setTimeout(() => {
2330
2335
  this._loadTimeouts.delete(s), Z(n.VGS_IFRAME_LOAD_FAILED, {
@@ -2343,7 +2348,7 @@ var ir = function(e) {
2343
2348
  } catch {}
2344
2349
  }
2345
2350
  createCard(t) {
2346
- if (!this.vgsForm) return Promise.reject(vi(/* @__PURE__ */ Error("VGS form not initialized"), s.NOT_INITIALIZED));
2351
+ if (!this.vgsForm) return Promise.reject(Si(/* @__PURE__ */ Error("VGS form not initialized"), s.NOT_INITIALIZED));
2347
2352
  let i = this.vgsForm, a = Date.now();
2348
2353
  Z(n.VGS_TOKENIZATION_STARTED);
2349
2354
  let o = (e) => {
@@ -2351,7 +2356,7 @@ var ir = function(e) {
2351
2356
  Z(n.VGS_TOKENIZATION_SUCCESS, {
2352
2357
  duration_ms: String(t),
2353
2358
  ...e
2354
- }), ui(r.VGS_TOKENIZATION_TIME, t, "ms", { status: "success" });
2359
+ }), mi(r.VGS_TOKENIZATION_TIME, t, "ms", { status: "success" });
2355
2360
  }, c = (e, t, i, o, s) => {
2356
2361
  let c = Date.now() - a;
2357
2362
  return Z(n.VGS_TOKENIZATION_FAILED, {
@@ -2360,7 +2365,7 @@ var ir = function(e) {
2360
2365
  error_code: t,
2361
2366
  ...s !== void 0 && { http_status: String(s) },
2362
2367
  ...o
2363
- }), ui(r.VGS_TOKENIZATION_TIME, c, "ms", { status: "failed" }), vi(e, t);
2368
+ }), mi(r.VGS_TOKENIZATION_TIME, c, "ms", { status: "failed" }), Si(e, t);
2364
2369
  };
2365
2370
  return new Promise((n, r) => {
2366
2371
  i.createCard({ auth: t }, (i, a) => {
@@ -2456,7 +2461,7 @@ var ir = function(e) {
2456
2461
  elo: "unknown"
2457
2462
  }[e] ?? "unknown" : "unknown";
2458
2463
  }
2459
- }, zi = [
2464
+ }, Ui = [
2460
2465
  {
2461
2466
  origin: "https://js.verygoodvault.com",
2462
2467
  crossOrigin: !1
@@ -2473,27 +2478,27 @@ var ir = function(e) {
2473
2478
  origin: "https://fonts.gstatic.com",
2474
2479
  crossOrigin: !0
2475
2480
  }
2476
- ], Bi = "none", Vi = "anonymous", Hi = "use-credentials", Ui = (e) => {
2481
+ ], Wi = "none", Gi = "anonymous", Ki = "use-credentials", qi = (e) => {
2477
2482
  let t = e.getAttribute("crossorigin");
2478
- return t === null ? Bi : t.toLowerCase() === Hi ? Hi : Vi;
2479
- }, Wi = (e) => {
2483
+ return t === null ? Wi : t.toLowerCase() === Ki ? Ki : Gi;
2484
+ }, Ji = (e) => {
2480
2485
  try {
2481
2486
  return new URL(e, document.baseURI).origin;
2482
2487
  } catch {
2483
2488
  return null;
2484
2489
  }
2485
- }, Gi = () => {
2490
+ }, Yi = () => {
2486
2491
  if (!document.head) return;
2487
2492
  let e = [...document.head.querySelectorAll("link[rel~=\"preconnect\" i]")];
2488
- for (let t of zi) {
2489
- let n = t.crossOrigin ? Vi : Bi;
2490
- if (e.some((e) => Wi(e.href) === t.origin && Ui(e) === n)) continue;
2493
+ for (let t of Ui) {
2494
+ let n = t.crossOrigin ? Gi : Wi;
2495
+ if (e.some((e) => Ji(e.href) === t.origin && qi(e) === n)) continue;
2491
2496
  let r = document.createElement("link");
2492
- r.rel = "preconnect", r.href = t.origin, t.crossOrigin && r.setAttribute("crossorigin", Vi), document.head.appendChild(r);
2497
+ r.rel = "preconnect", r.href = t.origin, t.crossOrigin && r.setAttribute("crossorigin", Gi), document.head.appendChild(r);
2493
2498
  }
2494
- }, Ki = () => {
2495
- typeof document < "u" && queueMicrotask(Gi);
2496
- }, qi = 3e4, Ji = [c.INIT_FAILED, c.FIELDS_NOT_READY], Yi = class {
2499
+ }, Xi = () => {
2500
+ typeof document < "u" && queueMicrotask(Yi);
2501
+ }, Zi = 3e4, Qi = [c.INIT_FAILED, c.FIELDS_NOT_READY], $i = class {
2497
2502
  _constructedAt = performance.now();
2498
2503
  _deadlineMs;
2499
2504
  _mountedAt;
@@ -2506,7 +2511,7 @@ var ir = function(e) {
2506
2511
  _outcome;
2507
2512
  _submitReported = !1;
2508
2513
  _onPageHide = () => this.leave();
2509
- constructor({ deadlineMs: e = qi } = {}) {
2514
+ constructor({ deadlineMs: e = Zi } = {}) {
2510
2515
  this._deadlineMs = e;
2511
2516
  }
2512
2517
  get outcome() {
@@ -2531,7 +2536,7 @@ var ir = function(e) {
2531
2536
  this._outcome || this._mountedAt !== void 0 && this._associatedAt !== void 0 && this._finish(f.READY, m.NONE);
2532
2537
  }
2533
2538
  fail(e) {
2534
- this._outcome || (Ji.includes(e.reason) && Ni() ? this.exclude({
2539
+ this._outcome || (Qi.includes(e.reason) && Li() ? this.exclude({
2535
2540
  reason: u.VGS_BLOCKED_BY_CSP,
2536
2541
  attributes: {
2537
2542
  ...e.attributes,
@@ -2548,7 +2553,7 @@ var ir = function(e) {
2548
2553
  leave() {
2549
2554
  if (this._outcome || !this._stageStarted) return;
2550
2555
  let e = this._latestNotOurs();
2551
- this._finish(f.LEFT, e ? m.NOT_OURS : m.NONE, e), fi();
2556
+ this._finish(f.LEFT, e ? m.NOT_OURS : m.NONE, e), gi();
2552
2557
  }
2553
2558
  reportSubmit(e) {
2554
2559
  if (this._outcome !== f.READY || this._submitReported) return;
@@ -2592,20 +2597,20 @@ var ir = function(e) {
2592
2597
  status: e,
2593
2598
  reason: t
2594
2599
  };
2595
- ui(r.CHECKOUT_LOAD_TIME, n - this._constructedAt, "ms", i), this._mountedAt !== void 0 && this._associatedAt !== void 0 && ui(r.FORM_RENDER_TIME, n - Math.max(this._mountedAt, this._associatedAt), "ms", i);
2600
+ mi(r.CHECKOUT_LOAD_TIME, n - this._constructedAt, "ms", i), this._mountedAt !== void 0 && this._associatedAt !== void 0 && mi(r.FORM_RENDER_TIME, n - Math.max(this._mountedAt, this._associatedAt), "ms", i);
2596
2601
  }
2597
- }, Xi = (e) => {
2602
+ }, ea = (e) => {
2598
2603
  let t = e?.message;
2599
2604
  if (typeof t == "string") return t || void 0;
2600
2605
  if (Array.isArray(t) && typeof t[0] == "string") return t[0] || void 0;
2601
- }, Zi = null, Qi = null;
2602
- function $i() {
2603
- return Zi ? Promise.resolve(Zi) : Qi || (Qi = import("./phone.js").then((e) => (Zi = e, Zi)), Qi);
2606
+ }, ta = null, na = null;
2607
+ function ra() {
2608
+ return ta ? Promise.resolve(ta) : na || (na = import("./phone.js").then((e) => (ta = e, ta)), na);
2604
2609
  }
2605
- function ea() {
2606
- return Zi;
2610
+ function ia() {
2611
+ return ta;
2607
2612
  }
2608
- var ta = new class {
2613
+ var aa = new class {
2609
2614
  events = /* @__PURE__ */ new Map();
2610
2615
  subscribe(e, t) {
2611
2616
  return this.events.has(e) || this.events.set(e, /* @__PURE__ */ new Set()), this.events.get(e)?.add(t), () => {
@@ -2623,12 +2628,12 @@ var ta = new class {
2623
2628
  subscriberCount(e) {
2624
2629
  return this.events.get(e)?.size || 0;
2625
2630
  }
2626
- }(), na = class {
2631
+ }(), oa = class {
2627
2632
  state;
2628
2633
  initialState;
2629
2634
  eventBus;
2630
2635
  stateChangedEvent = "state-changed";
2631
- constructor(e, t = ta) {
2636
+ constructor(e, t = aa) {
2632
2637
  this.initialState = { ...e }, this.state = { ...e }, this.eventBus = t;
2633
2638
  }
2634
2639
  getState() {
@@ -2651,12 +2656,12 @@ var ta = new class {
2651
2656
  return this.state[e];
2652
2657
  }
2653
2658
  };
2654
- function ra(e) {
2655
- return new na(e);
2659
+ function sa(e) {
2660
+ return new oa(e);
2656
2661
  }
2657
2662
  //#endregion
2658
2663
  //#region libs/checkout/src/factories/createCheckoutProfile.ts
2659
- function ia(e) {
2664
+ function ca(e) {
2660
2665
  return {
2661
2666
  name: "Custom Appearance",
2662
2667
  additionalPaymentMethods: e.additionalPaymentMethods || {},
@@ -2752,14 +2757,14 @@ function ia(e) {
2752
2757
  } : void 0 } : void 0 }
2753
2758
  };
2754
2759
  }
2755
- function aa({ appearance: e }) {
2756
- let t = ra({
2760
+ function la({ appearance: e }) {
2761
+ let t = sa({
2757
2762
  checkoutProfile: void 0,
2758
2763
  isLoading: !0,
2759
2764
  error: null
2760
2765
  });
2761
2766
  if (e) {
2762
- let n = ia(e);
2767
+ let n = ca(e);
2763
2768
  return Promise.resolve().then(() => {
2764
2769
  t.setState({
2765
2770
  checkoutProfile: n,
@@ -2770,7 +2775,7 @@ function aa({ appearance: e }) {
2770
2775
  getState: t.getState.bind(t),
2771
2776
  subscribe: t.subscribe.bind(t),
2772
2777
  updateProfile: (e) => {
2773
- let n = ia(e);
2778
+ let n = ca(e);
2774
2779
  t.setState({
2775
2780
  checkoutProfile: n,
2776
2781
  isLoading: !1,
@@ -2816,7 +2821,7 @@ function aa({ appearance: e }) {
2816
2821
  getState: t.getState.bind(t),
2817
2822
  subscribe: t.subscribe.bind(t),
2818
2823
  updateProfile: (e) => {
2819
- let n = ia(e);
2824
+ let n = ca(e);
2820
2825
  t.setState({
2821
2826
  checkoutProfile: n,
2822
2827
  isLoading: !1,
@@ -2828,60 +2833,60 @@ function aa({ appearance: e }) {
2828
2833
  }
2829
2834
  //#endregion
2830
2835
  //#region libs/enums/dist/lib/australia-states.enum.js
2831
- var oa;
2836
+ var ua;
2832
2837
  (function(e) {
2833
2838
  e.AustralianCapitalTerritory = "ACT", e.NewSouthWales = "NSW", e.NorthernTerritory = "NT", e.Queensland = "QLD", e.SouthAustralia = "SA", e.Tasmania = "TAS", e.Victoria = "VIC", e.WesternAustralia = "WA";
2834
- })(oa ||= {});
2839
+ })(ua ||= {});
2835
2840
  //#endregion
2836
2841
  //#region libs/enums/dist/lib/canada-provinces.enum.js
2837
- var sa;
2842
+ var da;
2838
2843
  (function(e) {
2839
2844
  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";
2840
- })(sa ||= {});
2845
+ })(da ||= {});
2841
2846
  //#endregion
2842
2847
  //#region libs/enums/dist/lib/countries.enum.js
2843
- var ca;
2848
+ var fa;
2844
2849
  (function(e) {
2845
2850
  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";
2846
- })(ca ||= {});
2851
+ })(fa ||= {});
2847
2852
  //#endregion
2848
2853
  //#region libs/enums/dist/lib/currency.enum.js
2849
- var la;
2854
+ var pa;
2850
2855
  (function(e) {
2851
2856
  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";
2852
- })(la ||= {});
2857
+ })(pa ||= {});
2853
2858
  //#endregion
2854
2859
  //#region libs/enums/dist/lib/us-states.enum.js
2855
- var ua;
2860
+ var ma;
2856
2861
  (function(e) {
2857
2862
  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";
2858
- })(ua ||= {});
2863
+ })(ma ||= {});
2859
2864
  //#endregion
2860
2865
  //#region libs/enums/dist/lib/environment.enum.js
2861
- var da;
2866
+ var ha;
2862
2867
  (function(e) {
2863
2868
  e.LIVE = "LIVE", e.SANDBOX = "SANDBOX", e.DEV = "DEV";
2864
- })(da ||= {});
2869
+ })(ha ||= {});
2865
2870
  //#endregion
2866
2871
  //#region libs/enums/dist/lib/event-actor.enum.js
2867
- var fa;
2872
+ var ga;
2868
2873
  (function(e) {
2869
2874
  e.user = "user", e.api = "api", e.webhook = "webhook", e.system = "system";
2870
- })(fa ||= {});
2875
+ })(ga ||= {});
2871
2876
  //#endregion
2872
2877
  //#region libs/checkout/src/utils/state/stateNames.ts
2873
- var pa = {
2874
- US: ua,
2875
- CA: sa,
2876
- AU: oa
2877
- }, ma = new Set(Object.keys(pa)), ha = (e) => ma.has(e ?? ""), ga = (e) => ha(e) ? e : "US", _a = (e) => e === "CA" ? "address.chooseProvince" : "address.chooseState", va = (e) => Object.fromEntries(Object.entries(e).map(([e, t]) => [t, e.replace(/([A-Z])/g, " $1").trim()])), ya = {
2878
- US: va(ua),
2879
- CA: va(sa),
2880
- AU: va(oa)
2881
- }, ba = (e = "US") => Object.values(pa[e]), xa = (e, t = "US") => ya[t][e.toUpperCase()] || e, Sa = (e = "US") => ba(e).map((t) => ({
2878
+ var _a = {
2879
+ US: ma,
2880
+ CA: da,
2881
+ AU: ua
2882
+ }, va = new Set(Object.keys(_a)), ya = (e) => va.has(e ?? ""), ba = (e) => ya(e) ? e : "US", xa = (e) => e === "CA" ? "address.chooseProvince" : "address.chooseState", Sa = (e) => Object.fromEntries(Object.entries(e).map(([e, t]) => [t, e.replace(/([A-Z])/g, " $1").trim()])), Ca = {
2883
+ US: Sa(ma),
2884
+ CA: Sa(da),
2885
+ AU: Sa(ua)
2886
+ }, wa = (e = "US") => Object.values(_a[e]), Ta = (e, t = "US") => Ca[t][e.toUpperCase()] || e, Ea = (e = "US") => wa(e).map((t) => ({
2882
2887
  value: t,
2883
- text: xa(t, e)
2884
- })).sort((e, t) => e.text.localeCompare(t.text)), Ca = {
2888
+ text: Ta(t, e)
2889
+ })).sort((e, t) => e.text.localeCompare(t.text)), Da = {
2885
2890
  "gmail.com": [
2886
2891
  "gmal.com",
2887
2892
  "gmil.com",
@@ -2996,7 +3001,7 @@ var pa = {
2996
3001
  "att.ne",
2997
3002
  "attt.net"
2998
3003
  ]
2999
- }, wa = (e) => {
3004
+ }, Oa = (e) => {
3000
3005
  if (!e || e.includes(".")) return null;
3001
3006
  for (let t of [
3002
3007
  "com",
@@ -3014,7 +3019,7 @@ var pa = {
3014
3019
  }
3015
3020
  }
3016
3021
  return null;
3017
- }, Ta = (e, t) => {
3022
+ }, ka = (e, t) => {
3018
3023
  if (e.length === 0) return t.length;
3019
3024
  if (t.length === 0) return e.length;
3020
3025
  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));
@@ -3023,15 +3028,15 @@ var pa = {
3023
3028
  i[a][n] = Math.min(i[a - 1][n] + 1, i[a][n - 1] + 1, i[a - 1][n - 1] + r);
3024
3029
  }
3025
3030
  return i[t.length][e.length];
3026
- }, Ea = (e) => {
3031
+ }, Aa = (e) => {
3027
3032
  let t = null, n = 3, r = e.toLowerCase();
3028
- for (let e of Object.keys(Ca)) {
3029
- let i = Ta(r, e);
3033
+ for (let e of Object.keys(Da)) {
3034
+ let i = ka(r, e);
3030
3035
  i <= 2 && i < n && (n = i, t = e);
3031
3036
  }
3032
3037
  return t;
3033
- }, Da = () => {
3034
- let { t: e } = Ka();
3038
+ }, ja = () => {
3039
+ let { t: e } = Xa();
3035
3040
  return { validateEmail: (t) => {
3036
3041
  let n = /^[^\s@]+@[^\s@.]+\.[^\s@]+$/;
3037
3042
  if (!t) return {
@@ -3047,13 +3052,13 @@ var pa = {
3047
3052
  };
3048
3053
  let i = t.substring(0, r), a = t.substring(r + 1);
3049
3054
  if (!a.includes(".")) {
3050
- let t = wa(a);
3055
+ let t = Oa(a);
3051
3056
  if (t) return {
3052
3057
  isValid: !1,
3053
3058
  message: e("validation.emailSuggestion", { email: `${i}@${t}` }),
3054
3059
  suggestion: `${i}@${t}`
3055
3060
  };
3056
- for (let t of Object.keys(Ca)) if (t.replace(/\./g, "") === a) return {
3061
+ for (let t of Object.keys(Da)) if (t.replace(/\./g, "") === a) return {
3057
3062
  isValid: !1,
3058
3063
  message: e("validation.emailSuggestion", { email: `${i}@${t}` }),
3059
3064
  suggestion: `${i}@${t}`
@@ -3064,7 +3069,7 @@ var pa = {
3064
3069
  message: e("validation.emailInvalid"),
3065
3070
  suggestion: null
3066
3071
  };
3067
- let o = Ea(a);
3072
+ let o = Aa(a);
3068
3073
  if (o && o !== a) {
3069
3074
  let t = `${i}@${o}`;
3070
3075
  return {
@@ -3079,8 +3084,8 @@ var pa = {
3079
3084
  suggestion: null
3080
3085
  };
3081
3086
  } };
3082
- }, Oa = () => {
3083
- let { t: e } = Ka(), { validateEmail: t } = Da();
3087
+ }, Ma = () => {
3088
+ let { t: e } = Xa(), { validateEmail: t } = ja();
3084
3089
  return {
3085
3090
  email: (e) => {
3086
3091
  let n = t(e);
@@ -3093,7 +3098,7 @@ var pa = {
3093
3098
  phoneNumber: (t, n) => {
3094
3099
  if (!t.trim()) return e("validation.phoneNumberRequired");
3095
3100
  if (n) {
3096
- let r = ea();
3101
+ let r = ia();
3097
3102
  if (!r) {
3098
3103
  let n = t.replace(/\D/g, "");
3099
3104
  return n.length < 7 || n.length > 15 ? e("validation.phoneNumberInvalid") : void 0;
@@ -3119,7 +3124,7 @@ var pa = {
3119
3124
  if (!t.trim()) return e("validation.townCityRequired");
3120
3125
  },
3121
3126
  state: (t, n) => {
3122
- if ((!n || ha(n)) && !t.trim()) return e("validation.stateRequired");
3127
+ if ((!n || ya(n)) && !t.trim()) return e("validation.stateRequired");
3123
3128
  },
3124
3129
  zipCode: (t) => {
3125
3130
  if (!t.trim()) return e("validation.postalCodeRequired");
@@ -3128,8 +3133,8 @@ var pa = {
3128
3133
  if (!t.trim()) return e("validation.countryRequired");
3129
3134
  }
3130
3135
  };
3131
- }, ka = () => {
3132
- let e = Oa(), t = ra({
3136
+ }, Na = () => {
3137
+ let e = Ma(), t = sa({
3133
3138
  formData: {
3134
3139
  name: "",
3135
3140
  email: ""
@@ -3280,7 +3285,7 @@ var pa = {
3280
3285
  },
3281
3286
  reset: t.resetState.bind(t)
3282
3287
  };
3283
- }, Aa = {
3288
+ }, Pa = {
3284
3289
  email: "E-mail",
3285
3290
  emailPlaceholder: "email@priklad.cz",
3286
3291
  phoneNumber: "Telefonní číslo",
@@ -3354,7 +3359,7 @@ var pa = {
3354
3359
  countryRequired: "Země je povinná",
3355
3360
  maxLengthExceeded: "Maximálně {{max}} znaků"
3356
3361
  }
3357
- }, ja = {
3362
+ }, Fa = {
3358
3363
  email: "E-Mail",
3359
3364
  emailPlaceholder: "email@beispiel.de",
3360
3365
  phoneNumber: "Telefonnummer",
@@ -3428,7 +3433,7 @@ var pa = {
3428
3433
  countryRequired: "Land ist erforderlich",
3429
3434
  maxLengthExceeded: "Maximal {{max}} Zeichen"
3430
3435
  }
3431
- }, Ma = {
3436
+ }, Ia = {
3432
3437
  email: "Email",
3433
3438
  emailPlaceholder: "email@example.com",
3434
3439
  phoneNumber: "Phone Number",
@@ -3502,7 +3507,7 @@ var pa = {
3502
3507
  countryRequired: "Country is required",
3503
3508
  maxLengthExceeded: "Maximum {{max}} characters"
3504
3509
  }
3505
- }, Na = {
3510
+ }, La = {
3506
3511
  email: "Correo electrónico",
3507
3512
  emailPlaceholder: "email@ejemplo.es",
3508
3513
  phoneNumber: "Número de teléfono",
@@ -3576,7 +3581,7 @@ var pa = {
3576
3581
  countryRequired: "El país es obligatorio",
3577
3582
  maxLengthExceeded: "Máximo {{max}} caracteres"
3578
3583
  }
3579
- }, Pa = {
3584
+ }, Ra = {
3580
3585
  email: "E-mail",
3581
3586
  emailPlaceholder: "email@exemple.fr",
3582
3587
  phoneNumber: "Numéro de téléphone",
@@ -3650,7 +3655,7 @@ var pa = {
3650
3655
  countryRequired: "Le pays est requis",
3651
3656
  maxLengthExceeded: "Maximum {{max}} caractères"
3652
3657
  }
3653
- }, Fa = {
3658
+ }, za = {
3654
3659
  email: "Email",
3655
3660
  emailPlaceholder: "email@esempio.it",
3656
3661
  phoneNumber: "Numero di telefono",
@@ -3724,7 +3729,7 @@ var pa = {
3724
3729
  countryRequired: "Il paese è obbligatorio",
3725
3730
  maxLengthExceeded: "Massimo {{max}} caratteri"
3726
3731
  }
3727
- }, Ia = {
3732
+ }, Ba = {
3728
3733
  email: "E-mail",
3729
3734
  emailPlaceholder: "email@voorbeeld.nl",
3730
3735
  phoneNumber: "Telefoonnummer",
@@ -3798,7 +3803,7 @@ var pa = {
3798
3803
  countryRequired: "Land is verplicht",
3799
3804
  maxLengthExceeded: "Maximaal {{max}} tekens"
3800
3805
  }
3801
- }, La = {
3806
+ }, Va = {
3802
3807
  email: "Adres e-mail",
3803
3808
  emailPlaceholder: "email@przyklad.pl",
3804
3809
  phoneNumber: "Numer telefonu",
@@ -3872,7 +3877,7 @@ var pa = {
3872
3877
  countryRequired: "Kraj jest wymagany",
3873
3878
  maxLengthExceeded: "Maksymalnie {{max}} znaków"
3874
3879
  }
3875
- }, Ra = {
3880
+ }, Ha = {
3876
3881
  email: "E-mail",
3877
3882
  emailPlaceholder: "email@exemplo.pt",
3878
3883
  phoneNumber: "Número de telefone",
@@ -3946,7 +3951,7 @@ var pa = {
3946
3951
  countryRequired: "O país é obrigatório",
3947
3952
  maxLengthExceeded: "Máximo de {{max}} caracteres"
3948
3953
  }
3949
- }, za = {
3954
+ }, Ua = {
3950
3955
  email: "E-mail",
3951
3956
  emailPlaceholder: "email@priklad.sk",
3952
3957
  phoneNumber: "Telefónne číslo",
@@ -4020,7 +4025,7 @@ var pa = {
4020
4025
  countryRequired: "Krajina je povinná",
4021
4026
  maxLengthExceeded: "Maximálne {{max}} znakov"
4022
4027
  }
4023
- }, Ba = {
4028
+ }, Wa = {
4024
4029
  email: "E-posta",
4025
4030
  emailPlaceholder: "email@ornek.com.tr",
4026
4031
  phoneNumber: "Telefon Numarası",
@@ -4094,19 +4099,19 @@ var pa = {
4094
4099
  countryRequired: "Ülke gerekli",
4095
4100
  maxLengthExceeded: "Maksimum {{max}} karakter"
4096
4101
  }
4097
- }, Va = {
4098
- en: Ma,
4099
- de: ja,
4100
- es: Na,
4101
- fr: Pa,
4102
- pl: La,
4103
- pt: Ra,
4104
- tr: Ba,
4105
- it: Fa,
4106
- sk: za,
4107
- cs: Aa,
4108
- nl: Ia
4109
- }, Ha = class {
4102
+ }, Ga = {
4103
+ en: Ia,
4104
+ de: Fa,
4105
+ es: La,
4106
+ fr: Ra,
4107
+ pl: Va,
4108
+ pt: Ha,
4109
+ tr: Wa,
4110
+ it: za,
4111
+ sk: Ua,
4112
+ cs: Pa,
4113
+ nl: Ba
4114
+ }, Ka = class {
4110
4115
  locale;
4111
4116
  loadedLocales = /* @__PURE__ */ new Set();
4112
4117
  constructor(e = "en") {
@@ -4123,7 +4128,7 @@ var pa = {
4123
4128
  return !t || n === e ? n : this.interpolate(n, t);
4124
4129
  }
4125
4130
  getNestedTranslation(e) {
4126
- let t = this.locale in Va ? Va[this.locale] : {}, n = this.findNestedValue(t, e);
4131
+ let t = this.locale in Ga ? Ga[this.locale] : {}, n = this.findNestedValue(t, e);
4127
4132
  return n === void 0 ? e : n;
4128
4133
  }
4129
4134
  findNestedValue(e, t) {
@@ -4140,7 +4145,7 @@ var pa = {
4140
4145
  return r === void 0 ? e : String(r);
4141
4146
  });
4142
4147
  }
4143
- }, Ua = [
4148
+ }, qa = [
4144
4149
  "en",
4145
4150
  "de",
4146
4151
  "es",
@@ -4153,13 +4158,13 @@ var pa = {
4153
4158
  "sk",
4154
4159
  "nl"
4155
4160
  ];
4156
- function Wa(e) {
4157
- let t = new Ha(), n = e == null ? (() => {
4161
+ function Ja(e) {
4162
+ let t = new Ka(), n = e == null ? (() => {
4158
4163
  let e = navigator?.language?.split("-")[0]?.toLowerCase();
4159
- return Ua.includes(e) ? e : "en";
4160
- })() : Ua.includes(e) ? e : "en";
4164
+ return qa.includes(e) ? e : "en";
4165
+ })() : qa.includes(e) ? e : "en";
4161
4166
  t.setLocale(n);
4162
- let r = ra({
4167
+ let r = sa({
4163
4168
  locale: n,
4164
4169
  translationService: t
4165
4170
  });
@@ -4167,14 +4172,14 @@ function Wa(e) {
4167
4172
  store: r,
4168
4173
  translate: (e, t) => r.getState().translationService.translate(e, t),
4169
4174
  setLocale: (e) => {
4170
- Ua.includes(e) && (r.getState().translationService.setLocale(e), r.setState({ locale: e }));
4175
+ qa.includes(e) && (r.getState().translationService.setLocale(e), r.setState({ locale: e }));
4171
4176
  },
4172
4177
  getLocale: () => r.getValue("locale"),
4173
4178
  subscribe: r.subscribe.bind(r)
4174
4179
  };
4175
4180
  }
4176
- var Ga = Wa(), Ka = () => {
4177
- let { translate: e, getLocale: t, setLocale: n, subscribe: r } = Ga;
4181
+ var Ya = Ja(), Xa = () => {
4182
+ let { translate: e, getLocale: t, setLocale: n, subscribe: r } = Ya;
4178
4183
  return {
4179
4184
  t: e,
4180
4185
  translate: e,
@@ -4182,7 +4187,7 @@ var Ga = Wa(), Ka = () => {
4182
4187
  setLocale: n,
4183
4188
  subscribe: r
4184
4189
  };
4185
- }, qa = () => Ka().t("cardUnavailable"), Ja = class {
4190
+ }, Za = () => Xa().t("cardUnavailable"), Qa = class {
4186
4191
  apiKey;
4187
4192
  baseUrl;
4188
4193
  browserInfo;
@@ -4285,7 +4290,7 @@ var Ga = Wa(), Ka = () => {
4285
4290
  e = await s.json();
4286
4291
  } catch {}
4287
4292
  throw {
4288
- message: Xi(e) || `API request failed: ${s.status} ${s.statusText}`,
4293
+ message: ea(e) || `API request failed: ${s.status} ${s.statusText}`,
4289
4294
  status: s.status,
4290
4295
  statusText: s.statusText,
4291
4296
  details: e
@@ -4328,8 +4333,8 @@ var Ga = Wa(), Ka = () => {
4328
4333
  let e = a.billingAddress || a.shippingAddress, t = e?.firstName && e?.lastName ? `${e.firstName} ${e.lastName}`.trim() : a.vgsCardData?.name || a.name;
4329
4334
  if (!a.vgsCardData) {
4330
4335
  Z(n.CARD_CAPTURE_UNAVAILABLE, { reason: c.NO_TOKENIZATION_SESSION });
4331
- let e = qa();
4332
- throw vi({
4336
+ let e = Za();
4337
+ throw Si({
4333
4338
  message: e,
4334
4339
  status: 0,
4335
4340
  statusText: "Card Capture Unavailable",
@@ -4351,7 +4356,7 @@ var Ga = Wa(), Ka = () => {
4351
4356
  customerData: {
4352
4357
  email: a.email,
4353
4358
  name: t,
4354
- ...a.phoneNumber && { phoneNumber: a.phoneCountryCode != null || a.phoneNumber.startsWith("+") ? ea()?.toE164(a.phoneNumber, a.phoneCountryCode ?? "US") ?? a.phoneNumber.replace(/\s+/g, "") : a.phoneNumber.replace(/\s+/g, "") },
4359
+ ...a.phoneNumber && { phoneNumber: a.phoneCountryCode != null || a.phoneNumber.startsWith("+") ? ia()?.toE164(a.phoneNumber, a.phoneCountryCode ?? "US") ?? a.phoneNumber.replace(/\s+/g, "") : a.phoneNumber.replace(/\s+/g, "") },
4355
4360
  ...this.buildAddressData(a),
4356
4361
  ...u
4357
4362
  },
@@ -4379,13 +4384,13 @@ var Ga = Wa(), Ka = () => {
4379
4384
  body: f
4380
4385
  });
4381
4386
  }
4382
- }, Ya = "https://fonts.googleapis.com/", Xa = /* @__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(".")), Za = (e) => {
4387
+ }, $a = "https://fonts.googleapis.com/", eo = /* @__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(".")), to = (e) => {
4383
4388
  let t = e?.trim();
4384
- return !t || t.includes(",") || Xa.has(t.toLowerCase()) ? null : t.replace(/\s+/g, "+");
4385
- }, Qa = (e) => `${Ya}css2?family=${e}:wght@400;700&display=swap`, $a = (e) => e.rel === "stylesheet" && e.href.startsWith("https://fonts.googleapis.com/"), eo = ({ fontFamily: e }) => {
4386
- let t = Za(e);
4389
+ return !t || t.includes(",") || eo.has(t.toLowerCase()) ? null : t.replace(/\s+/g, "+");
4390
+ }, no = (e) => `${$a}css2?family=${e}:wght@400;700&display=swap`, ro = (e) => e.rel === "stylesheet" && e.href.startsWith("https://fonts.googleapis.com/"), io = ({ fontFamily: e }) => {
4391
+ let t = to(e);
4387
4392
  if (!t) return { cleanup: () => {} };
4388
- let n = Qa(t), r = [...document.head.querySelectorAll("link")].filter($a), i = document.createElement("link");
4393
+ let n = no(t), r = [...document.head.querySelectorAll("link")].filter(ro), i = document.createElement("link");
4389
4394
  i.rel = "stylesheet", i.href = n;
4390
4395
  let a = r.find((e) => e.href.includes(`family=${t}`));
4391
4396
  if (a) a.href = n;
@@ -4396,17 +4401,17 @@ var Ga = Wa(), Ka = () => {
4396
4401
  return { cleanup: () => {
4397
4402
  document.head.contains(i) && document.head.removeChild(i);
4398
4403
  } };
4399
- }, to = /src:\s*url\(([^)]+\.woff2[^)]*)\)/, no = /\/\*\s*latin\s*\*\/\s*@font-face\s*\{[^}]*src:\s*url\(([^)]+\.woff2[^)]*)\)[^}]*\}/;
4400
- async function ro(e) {
4401
- let t = Za(e);
4404
+ }, ao = /src:\s*url\(([^)]+\.woff2[^)]*)\)/, oo = /\/\*\s*latin\s*\*\/\s*@font-face\s*\{[^}]*src:\s*url\(([^)]+\.woff2[^)]*)\)[^}]*\}/;
4405
+ async function so(e) {
4406
+ let t = to(e);
4402
4407
  if (!t) return null;
4403
- let n = Qa(t);
4408
+ let n = no(t);
4404
4409
  try {
4405
4410
  let e = await fetch(n);
4406
4411
  if (!e.ok) return null;
4407
- let t = await e.text(), r = no.exec(t);
4412
+ let t = await e.text(), r = oo.exec(t);
4408
4413
  if (r?.[1]) return r[1];
4409
- let i = to.exec(t);
4414
+ let i = ao.exec(t);
4410
4415
  return i?.[1] ? i[1] : null;
4411
4416
  } catch {
4412
4417
  return null;
@@ -4467,28 +4472,28 @@ var Q = class e {
4467
4472
  this.element.removeEventListener(e, t);
4468
4473
  }), this.eventListeners = [], this.children.forEach((e) => e.destroy()), this.children = [], this.element.parentNode && this.element.parentNode.removeChild(this.element);
4469
4474
  }
4470
- }, io = "8px 12px", ao = 1.5, oo = 8;
4471
- function so(e) {
4475
+ }, co = "8px 12px", lo = 1.5, uo = 8;
4476
+ function fo(e) {
4472
4477
  let t = parseFloat(e ?? "");
4473
- return Number.isFinite(t) ? t : oo;
4478
+ return Number.isFinite(t) ? t : uo;
4474
4479
  }
4475
- function co(e, t) {
4476
- let n = e.trim().split(/\s+/), r = so(n[0]);
4477
- return `${r + (n.length >= 3 ? so(n[2]) : r) + t * ao}px`;
4480
+ function po(e, t) {
4481
+ let n = e.trim().split(/\s+/), r = fo(n[0]);
4482
+ return `${r + (n.length >= 3 ? fo(n[2]) : r) + t * lo}px`;
4478
4483
  }
4479
4484
  //#endregion
4480
4485
  //#region libs/checkout/src/utils/country/countryNames.ts
4481
- var lo = (e) => e.replace(/([A-Z])/g, " $1").trim(), uo = Object.fromEntries(Object.entries(ca).map(([e, t]) => [t, lo(e)])), fo = new Set(Object.values(ca)), po = /* @__PURE__ */ new Map(), mo = (e) => (po.has(e) || po.set(e, new Intl.DisplayNames([e], { type: "region" })), po.get(e)), ho = () => Object.values(ca), go = (e, t) => {
4486
+ var mo = (e) => e.replace(/([A-Z])/g, " $1").trim(), ho = Object.fromEntries(Object.entries(fa).map(([e, t]) => [t, mo(e)])), go = new Set(Object.values(fa)), _o = /* @__PURE__ */ new Map(), vo = (e) => (_o.has(e) || _o.set(e, new Intl.DisplayNames([e], { type: "region" })), _o.get(e)), yo = () => Object.values(fa), bo = (e, t) => {
4482
4487
  let n = e.toUpperCase();
4483
4488
  if (t) try {
4484
- let e = mo(t).of(n);
4489
+ let e = vo(t).of(n);
4485
4490
  if (e) return e;
4486
4491
  } catch {}
4487
- return uo[n] || n;
4488
- }, _o = (e, t) => (e && e.length > 0 ? e.map((e) => e.toUpperCase()).filter((e) => fo.has(e)) : ho()).map((e) => ({
4492
+ return ho[n] || n;
4493
+ }, xo = (e, t) => (e && e.length > 0 ? e.map((e) => e.toUpperCase()).filter((e) => go.has(e)) : yo()).map((e) => ({
4489
4494
  value: e,
4490
- text: go(e, t)
4491
- })).sort((e, n) => e.text.localeCompare(n.text, t)), vo = class extends Q {
4495
+ text: bo(e, t)
4496
+ })).sort((e, n) => e.text.localeCompare(n.text, t)), So = class extends Q {
4492
4497
  span;
4493
4498
  constructor(e) {
4494
4499
  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);
@@ -4508,7 +4513,7 @@ var lo = (e) => e.replace(/([A-Z])/g, " $1").trim(), uo = Object.fromEntries(Obj
4508
4513
  hideMessage() {
4509
4514
  return this.span && this.span.classList.add("form-helper-text-hidden"), this;
4510
4515
  }
4511
- }, yo = class {
4516
+ }, Co = class {
4512
4517
  static createDiv(e = [], t = {}) {
4513
4518
  return new Q("div", e, t);
4514
4519
  }
@@ -4556,13 +4561,13 @@ var lo = (e) => e.replace(/([A-Z])/g, " $1").trim(), uo = Object.fromEntries(Obj
4556
4561
  ...r
4557
4562
  });
4558
4563
  }
4559
- }, bo = class extends Q {
4564
+ }, wo = class extends Q {
4560
4565
  constructor(e) {
4561
4566
  if (super("label", ["input-label"], { for: e.id }), this.setText(e.label), !e.styles) return;
4562
4567
  let t = this.getElement();
4563
4568
  e.styles.color && (t.style.color = e.styles.color), e.styles.fontSize && (t.style.fontSize = `${e.styles.fontSize}px`);
4564
4569
  }
4565
- }, xo = class extends Q {
4570
+ }, To = class extends Q {
4566
4571
  inputElement;
4567
4572
  helperText = null;
4568
4573
  hasError = !1;
@@ -4571,7 +4576,7 @@ var lo = (e) => e.replace(/([A-Z])/g, " $1").trim(), uo = Object.fromEntries(Obj
4571
4576
  rendersMessage;
4572
4577
  constructor(e) {
4573
4578
  if (super("div", ["input-wrapper"]), this.rendersMessage = e.renderMessage ?? !0, e.label) {
4574
- let t = new bo({
4579
+ let t = new wo({
4575
4580
  styles: e.styles ? {
4576
4581
  color: e.styles.color,
4577
4582
  fontSize: e.styles.fontSize
@@ -4586,11 +4591,11 @@ var lo = (e) => e.replace(/([A-Z])/g, " $1").trim(), uo = Object.fromEntries(Obj
4586
4591
  name: e.name,
4587
4592
  class: `form-input ${e.error ? "form-input-error" : ""}`
4588
4593
  };
4589
- 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 = yo.createInput(e.type || "text", [], t), e.styles) {
4594
+ 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 = Co.createInput(e.type || "text", [], t), e.styles) {
4590
4595
  let t = this.inputElement.getElement();
4591
4596
  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;
4592
4597
  }
4593
- 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 vo({
4598
+ 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 So({
4594
4599
  text: e.error ? e.errorMsg : "",
4595
4600
  visible: e.error
4596
4601
  }), this.appendChild(this.helperText));
@@ -4619,7 +4624,7 @@ var lo = (e) => e.replace(/([A-Z])/g, " $1").trim(), uo = Object.fromEntries(Obj
4619
4624
  focus() {
4620
4625
  this.inputElement.getElement().focus();
4621
4626
  }
4622
- }, So = class e extends Q {
4627
+ }, Eo = class e extends Q {
4623
4628
  static PLACEHOLDER_COLOR = "#D4D4D5";
4624
4629
  selectElement;
4625
4630
  helperText = null;
@@ -4653,7 +4658,7 @@ var lo = (e) => e.replace(/([A-Z])/g, " $1").trim(), uo = Object.fromEntries(Obj
4653
4658
  let r = this.selectElement.getElement();
4654
4659
  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);
4655
4660
  }), t.label) {
4656
- let e = new bo({
4661
+ let e = new wo({
4657
4662
  styles: t.styles ? {
4658
4663
  color: t.styles.color,
4659
4664
  fontSize: t.styles.fontSize
@@ -4663,7 +4668,7 @@ var lo = (e) => e.replace(/([A-Z])/g, " $1").trim(), uo = Object.fromEntries(Obj
4663
4668
  });
4664
4669
  this.appendChild(e);
4665
4670
  }
4666
- this.getElement().appendChild(this.selectElement.getElement()), this.rendersMessage && (this.helperText = new vo({
4671
+ this.getElement().appendChild(this.selectElement.getElement()), this.rendersMessage && (this.helperText = new So({
4667
4672
  text: t.error ? t.errorMsg : "",
4668
4673
  visible: t.error
4669
4674
  }), this.appendChild(this.helperText));
@@ -4700,7 +4705,7 @@ var lo = (e) => e.replace(/([A-Z])/g, " $1").trim(), uo = Object.fromEntries(Obj
4700
4705
  CARD_EXPIRY: "exp-date",
4701
4706
  CARD_CVC: "cvc",
4702
4707
  CARDHOLDER: "cardholder"
4703
- }, Co = {
4708
+ }, Do = {
4704
4709
  [$.CARD_NUMBER]: {
4705
4710
  1001: "validation.cardNumberInvalid",
4706
4711
  1011: "validation.cardNumberLuhnInvalid"
@@ -4714,12 +4719,12 @@ var lo = (e) => e.replace(/([A-Z])/g, " $1").trim(), uo = Object.fromEntries(Obj
4714
4719
  1017: "validation.cardSecurityFormat"
4715
4720
  },
4716
4721
  [$.CARDHOLDER]: { 1001: "validation.nameRequired" }
4717
- }, wo = (e, t) => Co[e]?.[t], To = {
4722
+ }, Oo = (e, t) => Do[e]?.[t], ko = {
4718
4723
  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",
4719
4724
  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",
4720
4725
  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",
4721
4726
  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"
4722
- }, Eo = class extends Q {
4727
+ }, Ao = class extends Q {
4723
4728
  currentCardBrand = "unknown";
4724
4729
  cardNumberHelperText;
4725
4730
  cardExpiryHelperText;
@@ -4737,7 +4742,7 @@ var lo = (e) => e.replace(/([A-Z])/g, " $1").trim(), uo = Object.fromEntries(Obj
4737
4742
  borderRadius = 0;
4738
4743
  _vgsFieldsReady = !1;
4739
4744
  _borderColor = "#e0e0e0";
4740
- _fieldHeight = co(io, 14);
4745
+ _fieldHeight = po(co, 14);
4741
4746
  _previousVgsValidState = {};
4742
4747
  _vgsAutoAdvanced = {};
4743
4748
  _lastFocusedVgsField = null;
@@ -4746,11 +4751,11 @@ var lo = (e) => e.replace(/([A-Z])/g, " $1").trim(), uo = Object.fromEntries(Obj
4746
4751
  constructor(e) {
4747
4752
  super("div", []);
4748
4753
  let { checkoutProfile: t, translationFunc: n, vgsService: r } = e;
4749
- 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 vo({ visible: !1 }), this.cardExpiryHelperText = new vo({ visible: !1 }), this.cardCvvHelperText = new vo({ visible: !1 });
4754
+ 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 So({ visible: !1 }), this.cardExpiryHelperText = new So({ visible: !1 }), this.cardCvvHelperText = new So({ visible: !1 });
4750
4755
  }
4751
4756
  buildVgsLayout(e, t) {
4752
4757
  let n = e.styles.borderRadius;
4753
- this.borderRadius = n, this._fieldHeight = co(io, 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";
4758
+ this.borderRadius = n, this._fieldHeight = po(co, 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";
4754
4759
  let r = document.createElement("div");
4755
4760
  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);
4756
4761
  let i = document.createElement("div");
@@ -4771,7 +4776,7 @@ var lo = (e) => e.replace(/([A-Z])/g, " $1").trim(), uo = Object.fromEntries(Obj
4771
4776
  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`);
4772
4777
  }
4773
4778
  setVgsFieldMetrics(e, t) {
4774
- this._fieldHeight = co(e, t), this._applyMergedGeometry();
4779
+ this._fieldHeight = po(e, t), this._applyMergedGeometry();
4775
4780
  }
4776
4781
  buildVgsFieldCss(e, t, n) {
4777
4782
  let r = e.styles.borderRadius, i = n?.padding ?? "8px 12px";
@@ -4845,9 +4850,9 @@ var lo = (e) => e.replace(/([A-Z])/g, " $1").trim(), uo = Object.fromEntries(Obj
4845
4850
  }
4846
4851
  updateVgsCardIcons(e) {
4847
4852
  if (this.vgsCardIconsContainer) {
4848
- if (this.vgsCardIconsContainer.innerHTML = "", e === "unknown") for (let [e, t] of Object.entries(To)) this.vgsCardIconsContainer.appendChild(this.createCardIcon(e, t));
4853
+ if (this.vgsCardIconsContainer.innerHTML = "", e === "unknown") for (let [e, t] of Object.entries(ko)) this.vgsCardIconsContainer.appendChild(this.createCardIcon(e, t));
4849
4854
  else {
4850
- let t = To[e];
4855
+ let t = ko[e];
4851
4856
  t && this.vgsCardIconsContainer.appendChild(this.createCardIcon(e, t));
4852
4857
  }
4853
4858
  }
@@ -4965,7 +4970,7 @@ var lo = (e) => e.replace(/([A-Z])/g, " $1").trim(), uo = Object.fromEntries(Obj
4965
4970
  focus() {
4966
4971
  this.focusField("cardNumber");
4967
4972
  }
4968
- }, Do = class extends Q {
4973
+ }, jo = class extends Q {
4969
4974
  constructor(e) {
4970
4975
  super("div", ["card-unavailable"]);
4971
4976
  let { checkoutProfile: t, translationFunc: n } = e, { fontFamily: r, fontSize: i, borderRadius: a } = t.styles, o = document.createElement("div");
@@ -4975,11 +4980,11 @@ var lo = (e) => e.replace(/([A-Z])/g, " $1").trim(), uo = Object.fromEntries(Obj
4975
4980
  let c = document.createElement("div");
4976
4981
  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);
4977
4982
  }
4978
- }, Oo = class {
4983
+ }, Mo = class {
4979
4984
  input;
4980
4985
  constructor(e) {
4981
4986
  let { value: t, onChange: n, onBlur: r, onTab: i, errorMsg: a, checkoutProfile: o, translationFunc: s, autocomplete: c = "email", label: l, placeholder: u } = e;
4982
- this.input = new xo({
4987
+ this.input = new To({
4983
4988
  name: "email",
4984
4989
  label: l ?? s("email"),
4985
4990
  error: !1,
@@ -5031,12 +5036,12 @@ var lo = (e) => e.replace(/([A-Z])/g, " $1").trim(), uo = Object.fromEntries(Obj
5031
5036
  focus() {
5032
5037
  this.input.focus();
5033
5038
  }
5034
- }, ko = (e, t) => {
5039
+ }, No = (e, t) => {
5035
5040
  if (!e?.length) return !0;
5036
5041
  if (!t) return !1;
5037
5042
  let n = t.toUpperCase();
5038
5043
  return e.some((e) => e.toUpperCase() === n);
5039
- }, Ao = async ({ id: e, domainName: n, displayName: r, checkoutKey: i, environment: a }) => {
5044
+ }, Po = async ({ id: e, domainName: n, displayName: r, checkoutKey: i, environment: a }) => {
5040
5045
  let o = E(a), s = await fetch(`${o}${t.applePaySessions(e)}`, {
5041
5046
  method: "POST",
5042
5047
  headers: {
@@ -5050,14 +5055,14 @@ var lo = (e) => e.replace(/([A-Z])/g, " $1").trim(), uo = Object.fromEntries(Obj
5050
5055
  });
5051
5056
  if (!s.ok) throw Error(`HTTP error! Status: ${s.status}`);
5052
5057
  return await s.json();
5053
- }, jo = () => {
5058
+ }, Fo = () => {
5054
5059
  if (typeof window > "u" || window.ApplePaySession === void 0 || typeof window.ApplePaySession.canMakePayments != "function") return !1;
5055
5060
  try {
5056
5061
  return window.ApplePaySession.canMakePayments();
5057
5062
  } catch {
5058
5063
  return !1;
5059
5064
  }
5060
- }, Mo = "Apple Pay payment data could not be read", No = class extends Q {
5065
+ }, Io = "Apple Pay payment data could not be read", Lo = class extends Q {
5061
5066
  formData;
5062
5067
  onSubmit;
5063
5068
  onStartFailed;
@@ -5075,7 +5080,7 @@ var lo = (e) => e.replace(/([A-Z])/g, " $1").trim(), uo = Object.fromEntries(Obj
5075
5080
  let { formData: t, onSubmit: n, onStartFailed: r, onPaymentDataFailed: i, paymentId: a, checkoutKey: o, checkoutDetails: s, environment: c, displayName: l, requiredBillingContactFields: u, requiredShippingContactFields: d } = e;
5076
5081
  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;
5077
5082
  let f = this.getElement();
5078
- 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", jo() || (f.style.display = "none"), n && this.getElement().addEventListener("click", () => this.handleApplePayClick());
5083
+ 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", Fo() || (f.style.display = "none"), n && this.getElement().addEventListener("click", () => this.handleApplePayClick());
5079
5084
  }
5080
5085
  async handleApplePayClick() {
5081
5086
  if (this.onSubmit && !this.isSubmitting) {
@@ -5093,7 +5098,7 @@ var lo = (e) => e.replace(/([A-Z])/g, " $1").trim(), uo = Object.fromEntries(Obj
5093
5098
  stage: e,
5094
5099
  error_message: t instanceof Error ? t.message : "Unknown error"
5095
5100
  };
5096
- Z(n.APPLE_PAY_START_FAILED, r), li(t instanceof Error ? t : /* @__PURE__ */ Error("Apple Pay could not start"), {
5101
+ Z(n.APPLE_PAY_START_FAILED, r), pi(t instanceof Error ? t : /* @__PURE__ */ Error("Apple Pay could not start"), {
5097
5102
  payment_id: this.paymentId,
5098
5103
  stage: e
5099
5104
  }), this.onStartFailed?.(e);
@@ -5122,7 +5127,7 @@ var lo = (e) => e.replace(/([A-Z])/g, " $1").trim(), uo = Object.fromEntries(Obj
5122
5127
  let i = new window.ApplePaySession(3, r), a = !1;
5123
5128
  i.onvalidatemerchant = async () => {
5124
5129
  try {
5125
- let e = await Ao({
5130
+ let e = await Po({
5126
5131
  id: this.paymentId,
5127
5132
  domainName: window.location.hostname,
5128
5133
  displayName: this.displayName,
@@ -5184,14 +5189,14 @@ var lo = (e) => e.replace(/([A-Z])/g, " $1").trim(), uo = Object.fromEntries(Obj
5184
5189
  };
5185
5190
  }
5186
5191
  reportPaymentDataFailure(e) {
5187
- let t = Ei(e);
5192
+ let t = Ai(e);
5188
5193
  Z(n.PAYMENT_SUBMIT_FAILED, {
5189
5194
  payment_id: this.paymentId,
5190
5195
  payment_method: t.paymentMethod,
5191
- error_message: Mo,
5196
+ error_message: Io,
5192
5197
  failure_class: i.SDK_ERROR,
5193
5198
  http_status: a,
5194
- error_class: hi(e)
5199
+ error_class: yi(e)
5195
5200
  }), this.onPaymentDataFailed?.(t);
5196
5201
  }
5197
5202
  updateFormData(e) {
@@ -5200,7 +5205,7 @@ var lo = (e) => e.replace(/([A-Z])/g, " $1").trim(), uo = Object.fromEntries(Obj
5200
5205
  setSubmitting(e) {
5201
5206
  return this.isSubmitting = e, this.getElement().style.opacity = e ? "0.7" : "1", this.getElement().style.pointerEvents = e ? "none" : "auto", this;
5202
5207
  }
5203
- }, Po = "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", Fo = class extends Q {
5208
+ }, Ro = "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", zo = class extends Q {
5204
5209
  formData;
5205
5210
  onSubmit;
5206
5211
  isSubmitting = !1;
@@ -5211,7 +5216,7 @@ var lo = (e) => e.replace(/([A-Z])/g, " $1").trim(), uo = Object.fromEntries(Obj
5211
5216
  let r = document.createElement("div");
5212
5217
  r.className = "paypal-icon-container";
5213
5218
  let i = document.createElement("img");
5214
- i.src = Po, 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());
5219
+ i.src = Ro, 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());
5215
5220
  }
5216
5221
  async handleSubmit() {
5217
5222
  if (this.onSubmit && !this.isSubmitting) {
@@ -5231,16 +5236,16 @@ var lo = (e) => e.replace(/([A-Z])/g, " $1").trim(), uo = Object.fromEntries(Obj
5231
5236
  setSubmitting(e) {
5232
5237
  return this.isSubmitting = e, this.getElement().style.opacity = e ? "0.7" : "1", this;
5233
5238
  }
5234
- }, Io = class extends Q {
5239
+ }, Bo = class extends Q {
5235
5240
  messageComponent;
5236
5241
  constructor(e) {
5237
5242
  super("div", []);
5238
- let t = yo.createDiv(["error-alert"], {
5243
+ let t = Co.createDiv(["error-alert"], {
5239
5244
  role: "alert",
5240
5245
  "aria-live": "polite"
5241
- }), n = yo.createDiv(["error-alert-content"]), r = yo.createDiv(["error-alert-icon-container"]);
5246
+ }), n = Co.createDiv(["error-alert-content"]), r = Co.createDiv(["error-alert-icon-container"]);
5242
5247
  r.getElement().innerHTML = this.createAlertCircleSVG();
5243
- let i = yo.createDiv(["error-alert-text-container"]), a = new Q("h4", ["error-alert-title"]);
5248
+ let i = Co.createDiv(["error-alert-text-container"]), a = new Q("h4", ["error-alert-title"]);
5244
5249
  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);
5245
5250
  }
5246
5251
  createAlertCircleSVG() {
@@ -5251,4 +5256,4 @@ var lo = (e) => e.replace(/([A-Z])/g, " $1").trim(), uo = Object.fromEntries(Obj
5251
5256
  }
5252
5257
  };
5253
5258
  //#endregion
5254
- export { yi as $, Pa as A, ca as B, Ja as C, Ra as D, Ba as E, Oa as F, Ki as G, $i as H, Sa as I, Ti as J, Ri as K, _a as L, Ma as M, ja as N, La as O, ka as P, vi as Q, ha as R, eo as S, Ga as T, Xi as U, aa as V, Yi as W, Ci as X, Si as Y, wi as Z, go as _, p as _t, ko as a, ui as at, Q as b, Eo as c, C as ct, So as d, c as dt, hi as et, xo as f, n as ft, _o as g, o as gt, vo as h, i as ht, jo as i, di as it, Na as j, Fa as k, $ as l, T as lt, yo as m, r as mt, Fo as n, li as nt, Oo as o, D as ot, bo as p, u as pt, Li as q, No as r, Z as rt, Do as s, w as st, Io as t, ci as tt, wo as u, x as ut, io as v, s as vt, Ka as w, ro as x, co as y, ga as z };
5259
+ export { Ci as $, Ra as A, fa as B, Qa as C, Ha as D, Wa as E, Ma as F, Xi as G, ra as H, Ea as I, ki as J, Hi as K, xa as L, Ia as M, Fa as N, Va as O, Na as P, Si as Q, ya as R, io as S, Ya as T, ea as U, la as V, $i as W, Di as X, Ei as Y, Oi as Z, bo as _, p as _t, No as a, mi as at, Q as b, Ao as c, C as ct, Eo as d, c as dt, yi as et, To as f, n as ft, xo as g, o as gt, So as h, i as ht, Fo as i, hi as it, La as j, za as k, $ as l, T as lt, Co as m, r as mt, zo as n, pi as nt, Mo as o, D as ot, wo as p, u as pt, Vi as q, Lo as r, Z as rt, jo as s, w as st, Bo as t, fi as tt, Oo as u, x as ut, co as v, s as vt, Xa as w, so as x, po as y, ba as z };