@paynext/sdk 0.0.21 → 0.0.23

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/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as Pe from "react";
2
- import ut, { useState as S, useCallback as L, createContext as ee, useContext as _, useMemo as ue, useEffect as ie, useRef as le, useLayoutEffect as yo, useId as _e, useInsertionEffect as bs, Children as vo, isValidElement as bo, forwardRef as xo, Fragment as xs, createElement as Co, Component as To, useReducer as ko, StrictMode as wo } from "react";
2
+ import ut, { useState as S, useCallback as L, createContext as ee, useContext as _, useMemo as ue, useEffect as ie, useRef as le, useLayoutEffect as yo, useId as _e, useInsertionEffect as bs, Children as vo, isValidElement as bo, forwardRef as xo, Fragment as xs, createElement as Co, Component as To, useReducer as wo, StrictMode as ko } from "react";
3
3
  var jt = { exports: {} }, et = {};
4
4
  /**
5
5
  * @license React
@@ -59,7 +59,7 @@ function Ao() {
59
59
  return "StrictMode";
60
60
  case C:
61
61
  return "Suspense";
62
- case w:
62
+ case k:
63
63
  return "SuspenseList";
64
64
  case R:
65
65
  return "Activity";
@@ -74,7 +74,7 @@ function Ao() {
74
74
  return (x.displayName || "Context") + ".Provider";
75
75
  case T:
76
76
  return (x._context.displayName || "Context") + ".Consumer";
77
- case k:
77
+ case w:
78
78
  var V = x.render;
79
79
  return x = x.displayName, x || (x = V.displayName || V.name || "", x = x !== "" ? "ForwardRef(" + x + ")" : "ForwardRef"), x;
80
80
  case E:
@@ -151,13 +151,13 @@ function Ao() {
151
151
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
152
152
  )), x = this.props.ref, x !== void 0 ? x : null;
153
153
  }
154
- function u(x, V, N, Y, ke, fe, sn, an) {
154
+ function u(x, V, N, Y, we, fe, sn, an) {
155
155
  return N = fe.ref, x = {
156
156
  $$typeof: f,
157
157
  type: x,
158
158
  key: V,
159
159
  props: fe,
160
- _owner: ke
160
+ _owner: we
161
161
  }, (N !== void 0 ? N : null) !== null ? Object.defineProperty(x, "ref", {
162
162
  enumerable: !1,
163
163
  get: l
@@ -183,7 +183,7 @@ function Ao() {
183
183
  value: an
184
184
  }), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x;
185
185
  }
186
- function c(x, V, N, Y, ke, fe, sn, an) {
186
+ function c(x, V, N, Y, we, fe, sn, an) {
187
187
  var H = V.children;
188
188
  if (H !== void 0)
189
189
  if (Y)
@@ -226,7 +226,7 @@ React keys must be passed directly to JSX without using spread:
226
226
  x,
227
227
  H,
228
228
  fe,
229
- ke,
229
+ we,
230
230
  i(),
231
231
  N,
232
232
  sn,
@@ -236,7 +236,7 @@ React keys must be passed directly to JSX without using spread:
236
236
  function d(x) {
237
237
  typeof x == "object" && x !== null && x.$$typeof === f && x._store && (x._store.validated = 1);
238
238
  }
239
- var p = ut, f = Symbol.for("react.transitional.element"), m = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), T = Symbol.for("react.consumer"), b = Symbol.for("react.context"), k = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), w = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), R = Symbol.for("react.activity"), I = Symbol.for("react.client.reference"), q = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, te = Object.prototype.hasOwnProperty, j = Array.isArray, z = console.createTask ? console.createTask : function() {
239
+ var p = ut, f = Symbol.for("react.transitional.element"), m = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), T = Symbol.for("react.consumer"), b = Symbol.for("react.context"), w = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), k = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), R = Symbol.for("react.activity"), I = Symbol.for("react.client.reference"), q = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, te = Object.prototype.hasOwnProperty, j = Array.isArray, z = console.createTask ? console.createTask : function() {
240
240
  return null;
241
241
  };
242
242
  p = {
@@ -248,7 +248,7 @@ React keys must be passed directly to JSX without using spread:
248
248
  p,
249
249
  s
250
250
  )(), D = z(r(s)), G = {};
251
- tt.Fragment = g, tt.jsx = function(x, V, N, Y, ke) {
251
+ tt.Fragment = g, tt.jsx = function(x, V, N, Y, we) {
252
252
  var fe = 1e4 > q.recentlyCreatedOwnerStacks++;
253
253
  return c(
254
254
  x,
@@ -256,11 +256,11 @@ React keys must be passed directly to JSX without using spread:
256
256
  N,
257
257
  !1,
258
258
  Y,
259
- ke,
259
+ we,
260
260
  fe ? Error("react-stack-top-frame") : M,
261
261
  fe ? z(r(x)) : D
262
262
  );
263
- }, tt.jsxs = function(x, V, N, Y, ke) {
263
+ }, tt.jsxs = function(x, V, N, Y, we) {
264
264
  var fe = 1e4 > q.recentlyCreatedOwnerStacks++;
265
265
  return c(
266
266
  x,
@@ -268,7 +268,7 @@ React keys must be passed directly to JSX without using spread:
268
268
  N,
269
269
  !0,
270
270
  Y,
271
- ke,
271
+ we,
272
272
  fe ? Error("react-stack-top-frame") : M,
273
273
  fe ? z(r(x)) : D
274
274
  );
@@ -2175,11 +2175,11 @@ const jo = async (e) => {
2175
2175
  tr: dl,
2176
2176
  vi: hl,
2177
2177
  zh: pl
2178
- }, kn = () => {
2178
+ }, wn = () => {
2179
2179
  const e = Xn ? navigator?.language.split("-")[0] : "";
2180
2180
  return Tn[e] || Tn.en;
2181
- }, fl = (e) => e && Tn[e] || kn(), ml = {
2182
- messages: kn(),
2181
+ }, fl = (e) => e && Tn[e] || wn(), ml = {
2182
+ messages: wn(),
2183
2183
  locale: Xn ? navigator?.language.split("-")[0] : "en"
2184
2184
  }, Xt = ee(ml), Ye = () => {
2185
2185
  const { messages: e } = _(Xt);
@@ -2247,7 +2247,7 @@ const jo = async (e) => {
2247
2247
  appId: "",
2248
2248
  teamId: "",
2249
2249
  ev: null
2250
- }, ks = ee(Cl), ws = () => _(ks), wn = ee(null);
2250
+ }, ws = ee(Cl), ks = () => _(ws), kn = ee(null);
2251
2251
  function Tl() {
2252
2252
  if (typeof window > "u")
2253
2253
  return null;
@@ -2255,7 +2255,7 @@ function Tl() {
2255
2255
  throw new Error(
2256
2256
  "You must use React >= 18.0 in order to use useEvervault()"
2257
2257
  );
2258
- const e = Pe.useContext(wn);
2258
+ const e = Pe.useContext(kn);
2259
2259
  if (!e)
2260
2260
  throw new Error(
2261
2261
  "You must wrap your app in an <EvervaultProvider> to use useEvervault()"
@@ -2265,7 +2265,7 @@ function Tl() {
2265
2265
  ee(
2266
2266
  void 0
2267
2267
  );
2268
- class kl extends Promise {
2268
+ class wl extends Promise {
2269
2269
  async encrypt(t) {
2270
2270
  return (await this).encrypt(t);
2271
2271
  }
@@ -2273,10 +2273,10 @@ class kl extends Promise {
2273
2273
  return (await this).decrypt(t, n);
2274
2274
  }
2275
2275
  }
2276
- const wl = "https://js.evervault.com/v2";
2276
+ const kl = "https://js.evervault.com/v2";
2277
2277
  function Pl(e) {
2278
2278
  const t = document.createElement("script");
2279
- e && e !== "" ? t.src = e : t.src = wl;
2279
+ e && e !== "" ? t.src = e : t.src = kl;
2280
2280
  const n = document.head || document.body;
2281
2281
  if (!n)
2282
2282
  throw new Error(
@@ -2325,16 +2325,16 @@ const El = ({
2325
2325
  ...s
2326
2326
  }) => {
2327
2327
  if (typeof window > "u")
2328
- return /* @__PURE__ */ Pe.createElement(wn.Provider, { value: null }, r);
2328
+ return /* @__PURE__ */ Pe.createElement(kn.Provider, { value: null }, r);
2329
2329
  const a = Pe.useMemo(
2330
- () => new kl((o, l) => {
2330
+ () => new wl((o, l) => {
2331
2331
  Sl(n?.jsSdkUrl, i).then((u) => {
2332
2332
  u !== void 0 ? o(new u(e, t, n)) : (console.error("Evervault.js not available"), l("Evervault.js not available"));
2333
2333
  }).catch((u) => l(u));
2334
2334
  }),
2335
2335
  []
2336
2336
  );
2337
- return /* @__PURE__ */ Pe.createElement(wn.Provider, { ...s, value: a }, r);
2337
+ return /* @__PURE__ */ Pe.createElement(kn.Provider, { ...s, value: a }, r);
2338
2338
  };
2339
2339
  let Vt = null;
2340
2340
  async function jl() {
@@ -2375,7 +2375,7 @@ const Rl = ({ children: e, evConfig: t }) => {
2375
2375
  );
2376
2376
  return ie(() => {
2377
2377
  t && Vl(t.teamId, t.appId).then((s) => r(s)).catch(console.error);
2378
- }, [t]), !t || !i ? null : /* @__PURE__ */ h.jsx(El, { ...t, children: /* @__PURE__ */ h.jsx(ks.Provider, { value: i, children: e }) });
2378
+ }, [t]), !t || !i ? null : /* @__PURE__ */ h.jsx(El, { ...t, children: /* @__PURE__ */ h.jsx(ws.Provider, { value: i, children: e }) });
2379
2379
  }, Ml = "_googlePay_1a960_1", Il = "_hidden_1a960_17", _r = {
2380
2380
  googlePay: Ml,
2381
2381
  hidden: Il
@@ -2394,7 +2394,7 @@ function ye() {
2394
2394
  return r;
2395
2395
  }
2396
2396
  const Br = "ab-ev-google-pay-container", Dl = ({ onSubmit: e, onCancel: t, onError: n, onSuccess: r, onReady: i, transaction: s, locale: a }) => {
2397
- const { ev: o } = ws(), [l, u] = S(!1), [c, d] = S(null);
2397
+ const { ev: o } = ks(), [l, u] = S(!1), [c, d] = S(null);
2398
2398
  return ie(() => {
2399
2399
  c && (t && c.on("cancel", t), n && c.on("error", n), r && c.on("success", r));
2400
2400
  }, [c, t, n, r]), ie(() => {
@@ -2445,7 +2445,7 @@ const Br = "ab-ev-google-pay-container", Dl = ({ onSubmit: e, onCancel: t, onErr
2445
2445
  transaction: a,
2446
2446
  supportedCardTypes: o
2447
2447
  }) => {
2448
- const { ev: l } = ws(), [u, c] = S(!1), [d, p] = S(null), [f, m] = S(null);
2448
+ const { ev: l } = ks(), [u, c] = S(!1), [d, p] = S(null), [f, m] = S(null);
2449
2449
  return ie(() => {
2450
2450
  f && (t && f.on("cancel", t), n && f.on("error", (g = "") => n(g)), r && f.on("success", r));
2451
2451
  }, [f, t, n, r]), ie(() => {
@@ -2465,8 +2465,8 @@ const Br = "ab-ev-google-pay-container", Dl = ({ onSubmit: e, onCancel: t, onErr
2465
2465
  process: async (T, { fail: b }) => {
2466
2466
  try {
2467
2467
  e(T);
2468
- } catch (k) {
2469
- console.error(k), b({
2468
+ } catch (w) {
2469
+ console.error(w), b({
2470
2470
  message: "Cannot pay with payment credentials"
2471
2471
  });
2472
2472
  }
@@ -2476,15 +2476,11 @@ const Br = "ab-ev-google-pay-container", Dl = ({ onSubmit: e, onCancel: t, onErr
2476
2476
  p(await y.availability());
2477
2477
  return;
2478
2478
  }
2479
- if (d !== "available") {
2480
- c(!1);
2481
- return;
2482
- }
2483
- m(y), await _l(y), c(!0);
2479
+ if (d !== "available")
2480
+ throw new Error("Apple Pay is not available");
2481
+ await _l(y), m(y), c(!0), i?.();
2484
2482
  } catch (v) {
2485
- console.error(v), c(!1);
2486
- } finally {
2487
- i?.();
2483
+ console.error(v), c(!1), i?.();
2488
2484
  }
2489
2485
  })();
2490
2486
  }, [l, a, o, s, d, e, i]), /* @__PURE__ */ h.jsx("div", { id: Pn, className: ye(Fr.applePay, u ? void 0 : Fr.hidden) });
@@ -2994,7 +2990,7 @@ function rr(e) {
2994
2990
  let t;
2995
2991
  return () => (t === void 0 && (t = e()), t);
2996
2992
  }
2997
- const ce = /* @__NO_SIDE_EFFECTS__ */ (e) => e, mc = (e, t) => (n) => t(e(n)), wt = (...e) => e.reduce(mc), gt = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
2993
+ const ce = /* @__NO_SIDE_EFFECTS__ */ (e) => e, mc = (e, t) => (n) => t(e(n)), kt = (...e) => e.reduce(mc), gt = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
2998
2994
  const r = t - e;
2999
2995
  return r === 0 ? 1 : (n - e) / r;
3000
2996
  };
@@ -3085,7 +3081,7 @@ const Ls = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Ns
3085
3081
  ], Xr = {
3086
3082
  value: null
3087
3083
  };
3088
- function kc(e, t) {
3084
+ function wc(e, t) {
3089
3085
  let n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), i = !1, s = !1;
3090
3086
  const a = /* @__PURE__ */ new WeakSet();
3091
3087
  let o = {
@@ -3123,25 +3119,25 @@ function kc(e, t) {
3123
3119
  };
3124
3120
  return c;
3125
3121
  }
3126
- const wc = 40;
3122
+ const kc = 40;
3127
3123
  function Us(e, t) {
3128
3124
  let n = !1, r = !0;
3129
3125
  const i = {
3130
3126
  delta: 0,
3131
3127
  timestamp: 0,
3132
3128
  isProcessing: !1
3133
- }, s = () => n = !0, a = It.reduce((b, k) => (b[k] = kc(s, t ? k : void 0), b), {}), { setup: o, read: l, resolveKeyframes: u, preUpdate: c, update: d, preRender: p, render: f, postRender: m } = a, g = () => {
3129
+ }, s = () => n = !0, a = It.reduce((b, w) => (b[w] = wc(s, t ? w : void 0), b), {}), { setup: o, read: l, resolveKeyframes: u, preUpdate: c, update: d, preRender: p, render: f, postRender: m } = a, g = () => {
3134
3130
  const b = Te.useManualTiming ? i.timestamp : performance.now();
3135
- n = !1, Te.useManualTiming || (i.delta = r ? 1e3 / 60 : Math.max(Math.min(b - i.timestamp, wc), 1)), i.timestamp = b, i.isProcessing = !0, o.process(i), l.process(i), u.process(i), c.process(i), d.process(i), p.process(i), f.process(i), m.process(i), i.isProcessing = !1, n && t && (r = !1, e(g));
3131
+ n = !1, Te.useManualTiming || (i.delta = r ? 1e3 / 60 : Math.max(Math.min(b - i.timestamp, kc), 1)), i.timestamp = b, i.isProcessing = !0, o.process(i), l.process(i), u.process(i), c.process(i), d.process(i), p.process(i), f.process(i), m.process(i), i.isProcessing = !1, n && t && (r = !1, e(g));
3136
3132
  }, v = () => {
3137
3133
  n = !0, r = !0, i.isProcessing || e(g);
3138
3134
  };
3139
- return { schedule: It.reduce((b, k) => {
3140
- const C = a[k];
3141
- return b[k] = (w, E = !1, P = !1) => (n || v(), C.schedule(w, E, P)), b;
3135
+ return { schedule: It.reduce((b, w) => {
3136
+ const C = a[w];
3137
+ return b[w] = (k, E = !1, P = !1) => (n || v(), C.schedule(k, E, P)), b;
3142
3138
  }, {}), cancel: (b) => {
3143
- for (let k = 0; k < It.length; k++)
3144
- a[It[k]].cancel(b);
3139
+ for (let w = 0; w < It.length; w++)
3140
+ a[It[w]].cancel(b);
3145
3141
  }, state: i, steps: a };
3146
3142
  }
3147
3143
  const { schedule: F, cancel: Se, state: W, steps: un } = /* @__PURE__ */ Us(typeof requestAnimationFrame < "u" ? requestAnimationFrame : ce, !0);
@@ -3203,7 +3199,7 @@ const Sn = {
3203
3199
  test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
3204
3200
  parse: parseFloat,
3205
3201
  transform: (t) => `${t}${e}`
3206
- }), we = /* @__PURE__ */ At("deg"), ge = /* @__PURE__ */ At("%"), A = /* @__PURE__ */ At("px"), Mc = /* @__PURE__ */ At("vh"), Ic = /* @__PURE__ */ At("vw"), Jr = {
3202
+ }), ke = /* @__PURE__ */ At("deg"), ge = /* @__PURE__ */ At("%"), A = /* @__PURE__ */ At("px"), Mc = /* @__PURE__ */ At("vh"), Ic = /* @__PURE__ */ At("vw"), Jr = {
3207
3203
  ...ge,
3208
3204
  parse: (e) => ge.parse(e) / 100,
3209
3205
  transform: (e) => ge.transform(e * 100)
@@ -3333,7 +3329,7 @@ function Wc(e, t) {
3333
3329
  }
3334
3330
  const Yc = (e, t) => {
3335
3331
  const n = Ee.createTransformer(t), r = vt(e), i = vt(t);
3336
- return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? En.has(e) && !i.values.length || En.has(t) && !r.values.length ? Uc(e, t) : wt(Xs(Wc(r, i), i.values), n) : (Ze(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), Gt(e, t));
3332
+ return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? En.has(e) && !i.values.length || En.has(t) && !r.values.length ? Uc(e, t) : kt(Xs(Wc(r, i), i.values), n) : (Ze(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), Gt(e, t));
3337
3333
  };
3338
3334
  function Js(e, t, n) {
3339
3335
  return typeof e == "number" && typeof t == "number" && typeof n == "number" ? B(e, t, n) : hr(e)(e, t);
@@ -3496,41 +3492,41 @@ function Yt(e = O.visualDuration, t = O.bounce) {
3496
3492
  let b;
3497
3493
  if (g < 1) {
3498
3494
  const C = jn(y, g);
3499
- b = (w) => {
3500
- const E = Math.exp(-g * y * w);
3501
- return a - E * ((m + g * y * v) / C * Math.sin(C * w) + v * Math.cos(C * w));
3495
+ b = (k) => {
3496
+ const E = Math.exp(-g * y * k);
3497
+ return a - E * ((m + g * y * v) / C * Math.sin(C * k) + v * Math.cos(C * k));
3502
3498
  };
3503
3499
  } else if (g === 1)
3504
3500
  b = (C) => a - Math.exp(-y * C) * (v + (m + y * v) * C);
3505
3501
  else {
3506
3502
  const C = y * Math.sqrt(g * g - 1);
3507
- b = (w) => {
3508
- const E = Math.exp(-g * y * w), P = Math.min(C * w, 300);
3503
+ b = (k) => {
3504
+ const E = Math.exp(-g * y * k), P = Math.min(C * k, 300);
3509
3505
  return a - E * ((m + g * y * v) * Math.sinh(P) + C * v * Math.cosh(P)) / C;
3510
3506
  };
3511
3507
  }
3512
- const k = {
3508
+ const w = {
3513
3509
  calculatedDuration: f && d || null,
3514
3510
  next: (C) => {
3515
- const w = b(C);
3511
+ const k = b(C);
3516
3512
  if (f)
3517
3513
  o.done = C >= d;
3518
3514
  else {
3519
3515
  let E = C === 0 ? m : 0;
3520
- g < 1 && (E = C === 0 ? /* @__PURE__ */ he(m) : ea(b, C, w));
3521
- const P = Math.abs(E) <= r, R = Math.abs(a - w) <= i;
3516
+ g < 1 && (E = C === 0 ? /* @__PURE__ */ he(m) : ea(b, C, k));
3517
+ const P = Math.abs(E) <= r, R = Math.abs(a - k) <= i;
3522
3518
  o.done = P && R;
3523
3519
  }
3524
- return o.value = o.done ? a : w, o;
3520
+ return o.value = o.done ? a : k, o;
3525
3521
  },
3526
3522
  toString: () => {
3527
- const C = Math.min(pr(k), Wt), w = Qs((E) => k.next(C * E).value, C, 30);
3528
- return C + "ms " + w;
3523
+ const C = Math.min(pr(w), Wt), k = Qs((E) => w.next(C * E).value, C, 30);
3524
+ return C + "ms " + k;
3529
3525
  },
3530
3526
  toTransition: () => {
3531
3527
  }
3532
3528
  };
3533
- return k;
3529
+ return w;
3534
3530
  }
3535
3531
  Yt.applyToOptions = (e) => {
3536
3532
  const t = Zc(e, 100, Yt);
@@ -3544,13 +3540,13 @@ function Vn({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
3544
3540
  let g = n * t;
3545
3541
  const v = d + g, y = a === void 0 ? v : a(v);
3546
3542
  y !== v && (g = y - d);
3547
- const T = (P) => -g * Math.exp(-P / r), b = (P) => y + T(P), k = (P) => {
3543
+ const T = (P) => -g * Math.exp(-P / r), b = (P) => y + T(P), w = (P) => {
3548
3544
  const R = T(P), I = b(P);
3549
3545
  p.done = Math.abs(R) <= u, p.value = p.done ? y : I;
3550
3546
  };
3551
- let C, w;
3547
+ let C, k;
3552
3548
  const E = (P) => {
3553
- f(p.value) && (C = P, w = Yt({
3549
+ f(p.value) && (C = P, k = Yt({
3554
3550
  keyframes: [p.value, m(p.value)],
3555
3551
  velocity: ea(b, P, p.value),
3556
3552
  // TODO: This should be passing * 1000
@@ -3564,7 +3560,7 @@ function Vn({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
3564
3560
  calculatedDuration: null,
3565
3561
  next: (P) => {
3566
3562
  let R = !1;
3567
- return !w && C === void 0 && (R = !0, k(P), E(P)), C !== void 0 && P >= C ? w.next(P - C) : (!R && k(P), p);
3563
+ return !k && C === void 0 && (R = !0, w(P), E(P)), C !== void 0 && P >= C ? k.next(P - C) : (!R && w(P), p);
3568
3564
  }
3569
3565
  };
3570
3566
  }
@@ -3574,7 +3570,7 @@ function iu(e, t, n) {
3574
3570
  let o = i(e[a], e[a + 1]);
3575
3571
  if (t) {
3576
3572
  const l = Array.isArray(t) ? t[a] || ce : t;
3577
- o = wt(l, o);
3573
+ o = kt(l, o);
3578
3574
  }
3579
3575
  r.push(o);
3580
3576
  }
@@ -3690,7 +3686,7 @@ class gr extends mr {
3690
3686
  const { type: n = qe, repeat: r = 0, repeatDelay: i = 0, repeatType: s, velocity: a = 0 } = t;
3691
3687
  let { keyframes: o } = t;
3692
3688
  const l = n || qe;
3693
- process.env.NODE_ENV !== "production" && l !== qe && Ce(o.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`), l !== qe && typeof o[0] != "number" && (this.mixKeyframes = wt(hu, Js(o[0], o[1])), o = [0, 100]);
3689
+ process.env.NODE_ENV !== "production" && l !== qe && Ce(o.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`), l !== qe && typeof o[0] != "number" && (this.mixKeyframes = kt(hu, Js(o[0], o[1])), o = [0, 100]);
3694
3690
  const u = l({ ...t, keyframes: o });
3695
3691
  s === "mirror" && (this.mirroredGenerator = l({
3696
3692
  ...t,
@@ -3712,17 +3708,17 @@ class gr extends mr {
3712
3708
  this.speed > 0 ? this.startTime = Math.min(this.startTime, t) : this.speed < 0 && (this.startTime = Math.min(t - i / this.speed, this.startTime)), n ? this.currentTime = t : this.updateTime(t);
3713
3709
  const y = this.currentTime - u * (this.playbackSpeed >= 0 ? 1 : -1), T = this.playbackSpeed >= 0 ? y < 0 : y > i;
3714
3710
  this.currentTime = Math.max(y, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = i);
3715
- let b = this.currentTime, k = r;
3711
+ let b = this.currentTime, w = r;
3716
3712
  if (d) {
3717
3713
  const P = Math.min(this.currentTime, i) / o;
3718
3714
  let R = Math.floor(P), I = P % 1;
3719
- !I && P >= 1 && (I = 1), I === 1 && R--, R = Math.min(R, d + 1), !!(R % 2) && (p === "reverse" ? (I = 1 - I, f && (I -= f / o)) : p === "mirror" && (k = a)), b = xe(0, 1, I) * o;
3715
+ !I && P >= 1 && (I = 1), I === 1 && R--, R = Math.min(R, d + 1), !!(R % 2) && (p === "reverse" ? (I = 1 - I, f && (I -= f / o)) : p === "mirror" && (w = a)), b = xe(0, 1, I) * o;
3720
3716
  }
3721
- const C = T ? { done: !1, value: c[0] } : k.next(b);
3717
+ const C = T ? { done: !1, value: c[0] } : w.next(b);
3722
3718
  s && (C.value = s(C.value));
3723
- let { done: w } = C;
3724
- !T && l !== null && (w = this.playbackSpeed >= 0 ? this.currentTime >= i : this.currentTime <= 0);
3725
- const E = this.holdTime === null && (this.state === "finished" || this.state === "running" && w);
3719
+ let { done: k } = C;
3720
+ !T && l !== null && (k = this.playbackSpeed >= 0 ? this.currentTime >= i : this.currentTime <= 0);
3721
+ const E = this.holdTime === null && (this.state === "finished" || this.state === "running" && k);
3726
3722
  return E && m !== Vn && (C.value = fr(c, this.options, v, this.speed)), g && g(C.value), E && this.finish(), C;
3727
3723
  }
3728
3724
  /**
@@ -3955,10 +3951,10 @@ class yr {
3955
3951
  }
3956
3952
  }
3957
3953
  const Tu = (e) => e.startsWith("--");
3958
- function ku(e, t, n) {
3954
+ function wu(e, t, n) {
3959
3955
  Tu(t) ? e.style.setProperty(t, n) : e.style[t] = n;
3960
3956
  }
3961
- const wu = /* @__PURE__ */ rr(() => window.ScrollTimeline !== void 0), Pu = {};
3957
+ const ku = /* @__PURE__ */ rr(() => window.ScrollTimeline !== void 0), Pu = {};
3962
3958
  function Au(e, t) {
3963
3959
  const n = /* @__PURE__ */ rr(e);
3964
3960
  return () => Pu[t] ?? n();
@@ -4018,7 +4014,7 @@ class ju extends mr {
4018
4014
  this.animation = Su(n, r, i, u, s), u.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
4019
4015
  if (this.finishedTime = this.time, !s) {
4020
4016
  const c = fr(i, this.options, o, this.speed);
4021
- this.updateMotionValue ? this.updateMotionValue(c) : ku(n, r, c), this.animation.cancel();
4017
+ this.updateMotionValue ? this.updateMotionValue(c) : wu(n, r, c), this.animation.cancel();
4022
4018
  }
4023
4019
  l?.(), this.notifyFinished();
4024
4020
  };
@@ -4093,7 +4089,7 @@ class ju extends mr {
4093
4089
  * Attaches a timeline to the animation, for instance the `ScrollTimeline`.
4094
4090
  */
4095
4091
  attachTimeline({ timeline: t, observe: n }) {
4096
- return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, t && wu() ? (this.animation.timeline = t, ce) : n(this);
4092
+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, t && ku() ? (this.animation.timeline = t, ce) : n(this);
4097
4093
  }
4098
4094
  }
4099
4095
  const oa = {
@@ -4297,7 +4293,7 @@ const ca = /* @__PURE__ */ new Set([
4297
4293
  ]), zu = {
4298
4294
  test: (e) => e === "auto",
4299
4295
  parse: (e) => e
4300
- }, ua = (e) => (t) => t.test(e), da = [Xe, A, ge, we, Ic, Mc, zu], di = (e) => da.find(ua(e));
4296
+ }, ua = (e) => (t) => t.test(e), da = [Xe, A, ge, ke, Ic, Mc, zu], di = (e) => da.find(ua(e));
4301
4297
  function Uu(e) {
4302
4298
  return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || Ms(e) : !0;
4303
4299
  }
@@ -4323,17 +4319,17 @@ const Wu = /\b([a-z-]*)\(.*?\)/gu, _n = {
4323
4319
  ...Xe,
4324
4320
  transform: Math.round
4325
4321
  }, Yu = {
4326
- rotate: we,
4327
- rotateX: we,
4328
- rotateY: we,
4329
- rotateZ: we,
4322
+ rotate: ke,
4323
+ rotateX: ke,
4324
+ rotateY: ke,
4325
+ rotateZ: ke,
4330
4326
  scale: Dt,
4331
4327
  scaleX: Dt,
4332
4328
  scaleY: Dt,
4333
4329
  scaleZ: Dt,
4334
- skew: we,
4335
- skewX: we,
4336
- skewY: we,
4330
+ skew: ke,
4331
+ skewX: ke,
4332
+ skewY: ke,
4337
4333
  distance: A,
4338
4334
  translateX: A,
4339
4335
  translateY: A,
@@ -4791,7 +4787,7 @@ function va(e) {
4791
4787
  function ld(e) {
4792
4788
  return va(e) && e.tagName === "svg";
4793
4789
  }
4794
- const X = (e) => !!(e && e.getVelocity), cd = [...da, Z, Ee], ud = (e) => cd.find(ua(e)), kr = ee({
4790
+ const X = (e) => !!(e && e.getVelocity), cd = [...da, Z, Ee], ud = (e) => cd.find(ua(e)), wr = ee({
4795
4791
  transformPagePoint: (e) => e,
4796
4792
  isStatic: !1,
4797
4793
  reducedMotion: "never"
@@ -4821,7 +4817,7 @@ function hd({ children: e, isPresent: t, anchorX: n }) {
4821
4817
  top: 0,
4822
4818
  left: 0,
4823
4819
  right: 0
4824
- }), { nonce: a } = _(kr);
4820
+ }), { nonce: a } = _(wr);
4825
4821
  return bs(() => {
4826
4822
  const { width: o, height: l, top: u, left: c, right: d } = s.current;
4827
4823
  if (t || !i.current || !o || !l)
@@ -4891,33 +4887,33 @@ const xa = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presen
4891
4887
  js(() => {
4892
4888
  p.current = !1, f.current = c;
4893
4889
  for (let C = 0; C < y.length; C++) {
4894
- const w = Lt(y[C]);
4895
- d.includes(w) ? m.delete(w) : m.get(w) !== !0 && m.set(w, !1);
4890
+ const k = Lt(y[C]);
4891
+ d.includes(k) ? m.delete(k) : m.get(k) !== !0 && m.set(k, !1);
4896
4892
  }
4897
4893
  }, [y, d.length, d.join("-")]);
4898
4894
  const b = [];
4899
4895
  if (c !== g) {
4900
4896
  let C = [...c];
4901
- for (let w = 0; w < y.length; w++) {
4902
- const E = y[w], P = Lt(E);
4903
- d.includes(P) || (C.splice(w, 0, E), b.push(E));
4897
+ for (let k = 0; k < y.length; k++) {
4898
+ const E = y[k], P = Lt(E);
4899
+ d.includes(P) || (C.splice(k, 0, E), b.push(E));
4904
4900
  }
4905
4901
  return s === "wait" && b.length && (C = b), T(yi(C)), v(c), null;
4906
4902
  }
4907
4903
  process.env.NODE_ENV !== "production" && s === "wait" && y.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
4908
- const { forceRender: k } = _(Jn);
4904
+ const { forceRender: w } = _(Jn);
4909
4905
  return h.jsx(h.Fragment, { children: y.map((C) => {
4910
- const w = Lt(C), E = a && !l ? !1 : c === y || d.includes(w), P = () => {
4911
- if (m.has(w))
4912
- m.set(w, !0);
4906
+ const k = Lt(C), E = a && !l ? !1 : c === y || d.includes(k), P = () => {
4907
+ if (m.has(k))
4908
+ m.set(k, !0);
4913
4909
  else
4914
4910
  return;
4915
4911
  let R = !0;
4916
4912
  m.forEach((I) => {
4917
4913
  I || (R = !1);
4918
- }), R && (k?.(), T(f.current), a && u?.(), r && r());
4914
+ }), R && (w?.(), T(f.current), a && u?.(), r && r());
4919
4915
  };
4920
- return h.jsx(pd, { isPresent: E, initial: !p.current || n ? void 0 : !1, custom: t, presenceAffectsLayout: i, mode: s, onExitComplete: E ? void 0 : P, anchorX: o, children: C }, w);
4916
+ return h.jsx(pd, { isPresent: E, initial: !p.current || n ? void 0 : !1, custom: t, presenceAffectsLayout: i, mode: s, onExitComplete: E ? void 0 : P, anchorX: o, children: C }, k);
4921
4917
  }) });
4922
4918
  }, Ca = ee({ strict: !1 }), vi = {
4923
4919
  animation: [
@@ -5020,7 +5016,7 @@ function en(e) {
5020
5016
  function bt(e) {
5021
5017
  return typeof e == "string" || Array.isArray(e);
5022
5018
  }
5023
- const wr = [
5019
+ const kr = [
5024
5020
  "animate",
5025
5021
  "whileInView",
5026
5022
  "whileFocus",
@@ -5028,11 +5024,11 @@ const wr = [
5028
5024
  "whileTap",
5029
5025
  "whileDrag",
5030
5026
  "exit"
5031
- ], Pr = ["initial", ...wr];
5027
+ ], Pr = ["initial", ...kr];
5032
5028
  function tn(e) {
5033
5029
  return en(e.animate) || Pr.some((t) => bt(e[t]));
5034
5030
  }
5035
- function ka(e) {
5031
+ function wa(e) {
5036
5032
  return !!(tn(e) || e.variants);
5037
5033
  }
5038
5034
  function xd(e, t) {
@@ -5056,7 +5052,7 @@ const Td = Symbol.for("motionComponentSymbol");
5056
5052
  function Ke(e) {
5057
5053
  return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
5058
5054
  }
5059
- function kd(e, t, n) {
5055
+ function wd(e, t, n) {
5060
5056
  return L(
5061
5057
  (r) => {
5062
5058
  r && e.onMount && e.onMount(r), t && (r ? t.mount(r) : t.unmount()), n && (typeof n == "function" ? n(r) : Ke(n) && (n.current = r));
@@ -5069,9 +5065,9 @@ function kd(e, t, n) {
5069
5065
  [t]
5070
5066
  );
5071
5067
  }
5072
- const Ar = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), wd = "framerAppearId", wa = "data-" + Ar(wd), Pa = ee({});
5068
+ const Ar = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), kd = "framerAppearId", ka = "data-" + Ar(kd), Pa = ee({});
5073
5069
  function Pd(e, t, n, r, i) {
5074
- const { visualElement: s } = _(Qt), a = _(Ca), o = _(Jt), l = _(kr).reducedMotion, u = le(null);
5070
+ const { visualElement: s } = _(Qt), a = _(Ca), o = _(Jt), l = _(wr).reducedMotion, u = le(null);
5075
5071
  r = r || a.renderer, !u.current && r && (u.current = r(e, {
5076
5072
  visualState: t,
5077
5073
  parent: s,
@@ -5086,7 +5082,7 @@ function Pd(e, t, n, r, i) {
5086
5082
  bs(() => {
5087
5083
  c && p.current && c.update(n, o);
5088
5084
  });
5089
- const f = n[wa], m = le(!!f && !window.MotionHandoffIsComplete?.(f) && window.MotionHasOptimisedAnimation?.(f));
5085
+ const f = n[ka], m = le(!!f && !window.MotionHandoffIsComplete?.(f) && window.MotionHasOptimisedAnimation?.(f));
5090
5086
  return js(() => {
5091
5087
  c && (p.current = !0, window.MotionIsMounted = !0, c.updateFeatures(), Cr.render(c.render), m.current && c.animationState && c.animationState.animateChanges());
5092
5088
  }), ie(() => {
@@ -5125,7 +5121,7 @@ function Sd({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVis
5125
5121
  function s(o, l) {
5126
5122
  let u;
5127
5123
  const c = {
5128
- ..._(kr),
5124
+ ..._(wr),
5129
5125
  ...o,
5130
5126
  layoutId: Ed(o)
5131
5127
  }, { isStatic: d } = c, p = Cd(o), f = r(o, d);
@@ -5134,7 +5130,7 @@ function Sd({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVis
5134
5130
  const m = Vd(c);
5135
5131
  u = m.MeasureLayout, p.visualElement = Pd(i, f, c, t, m.ProjectionNode);
5136
5132
  }
5137
- return h.jsxs(Qt.Provider, { value: p, children: [u && p.visualElement ? h.jsx(u, { visualElement: p.visualElement, ...c }) : null, n(i, o, kd(f, p.visualElement, l), f, d, p.visualElement)] });
5133
+ return h.jsxs(Qt.Provider, { value: p, children: [u && p.visualElement ? h.jsx(u, { visualElement: p.visualElement, ...c }) : null, n(i, o, wd(f, p.visualElement, l), f, d, p.visualElement)] });
5138
5134
  }
5139
5135
  s.displayName = `motion.${typeof i == "string" ? i : `create(${i.displayName ?? i.name ?? ""})`}`;
5140
5136
  const a = xo(s);
@@ -5380,7 +5376,7 @@ function $d(e, t, n, r) {
5380
5376
  for (const p in s)
5381
5377
  i[p] = Ut(s[p]);
5382
5378
  let { initial: a, animate: o } = e;
5383
- const l = tn(e), u = ka(e);
5379
+ const l = tn(e), u = wa(e);
5384
5380
  t && u && !l && e.inherit !== !1 && (a === void 0 && (a = t.initial), o === void 0 && (o = t.animate));
5385
5381
  let c = n ? n.initial === !1 : !1;
5386
5382
  c = c || a === !1;
@@ -5394,8 +5390,8 @@ function $d(e, t, n, r) {
5394
5390
  for (const T in y) {
5395
5391
  let b = y[T];
5396
5392
  if (Array.isArray(b)) {
5397
- const k = c ? b.length - 1 : 0;
5398
- b = b[k];
5393
+ const w = c ? b.length - 1 : 0;
5394
+ b = b[w];
5399
5395
  }
5400
5396
  b !== null && (i[T] = b);
5401
5397
  }
@@ -5478,7 +5474,7 @@ function Fn(e, t) {
5478
5474
  }
5479
5475
  }
5480
5476
  function Da(e) {
5481
- return e.props[wa];
5477
+ return e.props[ka];
5482
5478
  }
5483
5479
  const Qd = (e) => e !== null;
5484
5480
  function e0(e, { repeat: t, repeatType: n = "loop" }, r) {
@@ -5643,7 +5639,7 @@ function Oa(e) {
5643
5639
  }
5644
5640
  return t;
5645
5641
  }
5646
- const h0 = [...wr].reverse(), p0 = wr.length;
5642
+ const h0 = [...kr].reverse(), p0 = kr.length;
5647
5643
  function f0(e) {
5648
5644
  return (t) => Promise.all(t.map(({ animation: n, options: r }) => u0(e, n, r)));
5649
5645
  }
@@ -5664,18 +5660,18 @@ function m0(e) {
5664
5660
  const { props: u } = e, c = Oa(e.parent) || {}, d = [], p = /* @__PURE__ */ new Set();
5665
5661
  let f = {}, m = 1 / 0;
5666
5662
  for (let v = 0; v < p0; v++) {
5667
- const y = h0[v], T = n[y], b = u[y] !== void 0 ? u[y] : c[y], k = bt(b), C = y === l ? T.isActive : null;
5663
+ const y = h0[v], T = n[y], b = u[y] !== void 0 ? u[y] : c[y], w = bt(b), C = y === l ? T.isActive : null;
5668
5664
  C === !1 && (m = v);
5669
- let w = b === c[y] && b !== u[y] && k;
5670
- if (w && r && e.manuallyAnimateOnMount && (w = !1), T.protectedKeys = { ...f }, // If it isn't active and hasn't *just* been set as inactive
5665
+ let k = b === c[y] && b !== u[y] && w;
5666
+ if (k && r && e.manuallyAnimateOnMount && (k = !1), T.protectedKeys = { ...f }, // If it isn't active and hasn't *just* been set as inactive
5671
5667
  !T.isActive && C === null || // If we didn't and don't have any defined prop for this animation type
5672
5668
  !b && !T.prevProp || // Or if the prop doesn't define an animation
5673
5669
  en(b) || typeof b == "boolean")
5674
5670
  continue;
5675
5671
  const E = g0(T.prevProp, b);
5676
5672
  let P = E || // If we're making this variant active, we want to always make it active
5677
- y === l && T.isActive && !w && k || // If we removed a higher-priority variant (i is in reverse order)
5678
- v > m && k, R = !1;
5673
+ y === l && T.isActive && !k && w || // If we removed a higher-priority variant (i is in reverse order)
5674
+ v > m && w, R = !1;
5679
5675
  const I = Array.isArray(b) ? b : [b];
5680
5676
  let q = I.reduce(i(y), {});
5681
5677
  C === !1 && (q = {});
@@ -5694,7 +5690,7 @@ function m0(e) {
5694
5690
  let x = !1;
5695
5691
  Bn(D) && Bn(G) ? x = !Na(D, G) : x = D !== G, x ? D != null ? z(M) : p.add(M) : D !== void 0 && p.has(M) ? z(M) : T.protectedKeys[M] = !0;
5696
5692
  }
5697
- T.prevProp = b, T.prevResolvedValues = q, T.isActive && (f = { ...f, ...q }), r && e.blockInitialAnimation && (P = !1), P && (!(w && E) || R) && d.push(...I.map((M) => ({
5693
+ T.prevProp = b, T.prevResolvedValues = q, T.isActive && (f = { ...f, ...q }), r && e.blockInitialAnimation && (P = !1), P && (!(k && E) || R) && d.push(...I.map((M) => ({
5698
5694
  animation: M,
5699
5695
  options: { type: y }
5700
5696
  })));
@@ -5843,7 +5839,7 @@ function _a({ top: e, left: t, right: n, bottom: r }) {
5843
5839
  function T0({ x: e, y: t }) {
5844
5840
  return { top: t.min, right: e.max, bottom: t.max, left: e.min };
5845
5841
  }
5846
- function k0(e, t) {
5842
+ function w0(e, t) {
5847
5843
  if (!t)
5848
5844
  return e;
5849
5845
  const n = t({ x: e.left, y: e.top }), r = t({ x: e.right, y: e.bottom });
@@ -5854,7 +5850,7 @@ function k0(e, t) {
5854
5850
  right: r.x
5855
5851
  };
5856
5852
  }
5857
- const Ba = 1e-4, w0 = 1 - Ba, P0 = 1 + Ba, Fa = 0.01, A0 = 0 - Fa, S0 = 0 + Fa;
5853
+ const Ba = 1e-4, k0 = 1 - Ba, P0 = 1 + Ba, Fa = 0.01, A0 = 0 - Fa, S0 = 0 + Fa;
5858
5854
  function Q(e) {
5859
5855
  return e.max - e.min;
5860
5856
  }
@@ -5862,22 +5858,22 @@ function E0(e, t, n) {
5862
5858
  return Math.abs(e - t) <= n;
5863
5859
  }
5864
5860
  function Ti(e, t, n, r = 0.5) {
5865
- e.origin = r, e.originPoint = B(t.min, t.max, e.origin), e.scale = Q(n) / Q(t), e.translate = B(n.min, n.max, e.origin) - e.originPoint, (e.scale >= w0 && e.scale <= P0 || isNaN(e.scale)) && (e.scale = 1), (e.translate >= A0 && e.translate <= S0 || isNaN(e.translate)) && (e.translate = 0);
5861
+ e.origin = r, e.originPoint = B(t.min, t.max, e.origin), e.scale = Q(n) / Q(t), e.translate = B(n.min, n.max, e.origin) - e.originPoint, (e.scale >= k0 && e.scale <= P0 || isNaN(e.scale)) && (e.scale = 1), (e.translate >= A0 && e.translate <= S0 || isNaN(e.translate)) && (e.translate = 0);
5866
5862
  }
5867
5863
  function pt(e, t, n, r) {
5868
5864
  Ti(e.x, t.x, n.x, r ? r.originX : void 0), Ti(e.y, t.y, n.y, r ? r.originY : void 0);
5869
5865
  }
5870
- function ki(e, t, n) {
5866
+ function wi(e, t, n) {
5871
5867
  e.min = n.min + t.min, e.max = e.min + Q(t);
5872
5868
  }
5873
5869
  function j0(e, t, n) {
5874
- ki(e.x, t.x, n.x), ki(e.y, t.y, n.y);
5870
+ wi(e.x, t.x, n.x), wi(e.y, t.y, n.y);
5875
5871
  }
5876
- function wi(e, t, n) {
5872
+ function ki(e, t, n) {
5877
5873
  e.min = t.min - n.min, e.max = e.min + Q(t);
5878
5874
  }
5879
5875
  function ft(e, t, n) {
5880
- wi(e.x, t.x, n.x), wi(e.y, t.y, n.y);
5876
+ ki(e.x, t.x, n.x), ki(e.y, t.y, n.y);
5881
5877
  }
5882
5878
  const Pi = () => ({
5883
5879
  translate: 0,
@@ -5950,7 +5946,7 @@ function $e(e, t) {
5950
5946
  Ri(e.x, t.x, t.scaleX, t.scale, t.originX), Ri(e.y, t.y, t.scaleY, t.scale, t.originY);
5951
5947
  }
5952
5948
  function za(e, t) {
5953
- return _a(k0(e.getBoundingClientRect(), t));
5949
+ return _a(w0(e.getBoundingClientRect(), t));
5954
5950
  }
5955
5951
  function R0(e, t, n) {
5956
5952
  const r = za(e, n), { scroll: i } = t;
@@ -5988,7 +5984,7 @@ class $a {
5988
5984
  const a = St(t), o = gn(a, this.transformPagePoint), { point: l } = o, { timestamp: u } = W;
5989
5985
  this.history = [{ ...l, timestamp: u }];
5990
5986
  const { onSessionStart: c } = n;
5991
- c && c(t, yn(o, this.history)), this.removeListeners = wt(ht(this.contextWindow, "pointermove", this.handlePointerMove), ht(this.contextWindow, "pointerup", this.handlePointerUp), ht(this.contextWindow, "pointercancel", this.handlePointerUp));
5987
+ c && c(t, yn(o, this.history)), this.removeListeners = kt(ht(this.contextWindow, "pointermove", this.handlePointerMove), ht(this.contextWindow, "pointerup", this.handlePointerUp), ht(this.contextWindow, "pointercancel", this.handlePointerUp));
5992
5988
  }
5993
5989
  updateHandlers(t) {
5994
5990
  this.handlers = t;
@@ -6927,12 +6923,12 @@ function Qa({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
6927
6923
  setAnimationOrigin(a, o = !1) {
6928
6924
  const l = this.snapshot, u = l ? l.latestValues : {}, c = { ...this.latestValues }, d = ze();
6929
6925
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !o;
6930
- const p = K(), f = l ? l.source : void 0, m = this.layout ? this.layout.source : void 0, g = f !== m, v = this.getStack(), y = !v || v.members.length <= 1, T = !!(g && !y && this.options.crossfade === !0 && !this.path.some(wh));
6926
+ const p = K(), f = l ? l.source : void 0, m = this.layout ? this.layout.source : void 0, g = f !== m, v = this.getStack(), y = !v || v.members.length <= 1, T = !!(g && !y && this.options.crossfade === !0 && !this.path.some(kh));
6931
6927
  this.animationProgress = 0;
6932
6928
  let b;
6933
- this.mixTargetDelta = (k) => {
6934
- const C = k / 1e3;
6935
- ts(d.x, a.x, C), ts(d.y, a.y, C), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ft(p, this.layout.layoutBox, this.relativeParent.layout.layoutBox), kh(this.relativeTarget, this.relativeTargetOrigin, p, C), b && ah(this.relativeTarget, b) && (this.isProjectionDirty = !1), b || (b = K()), se(b, this.relativeTarget)), g && (this.animationValues = c, eh(c, u, this.latestValues, C, T, y)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = C;
6929
+ this.mixTargetDelta = (w) => {
6930
+ const C = w / 1e3;
6931
+ ts(d.x, a.x, C), ts(d.y, a.y, C), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ft(p, this.layout.layoutBox, this.relativeParent.layout.layoutBox), wh(this.relativeTarget, this.relativeTargetOrigin, p, C), b && ah(this.relativeTarget, b) && (this.isProjectionDirty = !1), b || (b = K()), se(b, this.relativeTarget)), g && (this.animationValues = c, eh(c, u, this.latestValues, C, T, y)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = C;
6936
6932
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
6937
6933
  }
6938
6934
  startAnimation(a) {
@@ -7150,10 +7146,10 @@ function ts(e, t, n) {
7150
7146
  function ns(e, t, n, r) {
7151
7147
  e.min = B(t.min, n.min, r), e.max = B(t.max, n.max, r);
7152
7148
  }
7153
- function kh(e, t, n, r) {
7149
+ function wh(e, t, n, r) {
7154
7150
  ns(e.x, t.x, n.x, r), ns(e.y, t.y, n.y, r);
7155
7151
  }
7156
- function wh(e) {
7152
+ function kh(e) {
7157
7153
  return e.animationValues && e.animationValues.opacityExit !== void 0;
7158
7154
  }
7159
7155
  const Ph = {
@@ -7238,7 +7234,7 @@ class Rh extends je {
7238
7234
  !this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
7239
7235
  }
7240
7236
  mount() {
7241
- this.unmount = wt(Tt(this.node.current, "focus", () => this.onFocus()), Tt(this.node.current, "blur", () => this.onBlur()));
7237
+ this.unmount = kt(Tt(this.node.current, "focus", () => this.onFocus()), Tt(this.node.current, "blur", () => this.onBlur()));
7242
7238
  }
7243
7239
  unmount() {
7244
7240
  }
@@ -7392,7 +7388,7 @@ class $h {
7392
7388
  this.renderScheduledAt < p && (this.renderScheduledAt = p, F.render(this.render, !1, !0));
7393
7389
  };
7394
7390
  const { latestValues: l, renderState: u } = a;
7395
- this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = n.initial ? { ...l } : {}, this.renderState = u, this.parent = t, this.props = n, this.presenceContext = r, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = i, this.options = o, this.blockInitialAnimation = !!s, this.isControllingVariants = tn(n), this.isVariantNode = ka(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
7391
+ this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = n.initial ? { ...l } : {}, this.renderState = u, this.parent = t, this.props = n, this.presenceContext = r, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = i, this.options = o, this.blockInitialAnimation = !!s, this.isControllingVariants = tn(n), this.isVariantNode = wa(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
7396
7392
  const { willChange: c, ...d } = this.scrapeMotionValuesFromProps(n, {}, this);
7397
7393
  for (const p in d) {
7398
7394
  const f = d[p];
@@ -8097,7 +8093,7 @@ const Zh = (e, t) => jr(e) ? new Hh(t) : new Wh(t, {
8097
8093
  }, T1 = {
8098
8094
  width: "100%",
8099
8095
  height: "100%"
8100
- }, k1 = ({ className: e }) => /* @__PURE__ */ h.jsx("div", { style: C1, className: e, children: /* @__PURE__ */ h.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 16", style: T1, children: /* @__PURE__ */ h.jsxs("g", { fill: "none", fillRule: "evenodd", children: [
8096
+ }, w1 = ({ className: e }) => /* @__PURE__ */ h.jsx("div", { style: C1, className: e, children: /* @__PURE__ */ h.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 16", style: T1, children: /* @__PURE__ */ h.jsxs("g", { fill: "none", fillRule: "evenodd", children: [
8101
8097
  /* @__PURE__ */ h.jsx("rect", { fill: "#016fd0", height: "16", rx: "2", width: "24" }),
8102
8098
  /* @__PURE__ */ h.jsx(
8103
8099
  "path",
@@ -8131,7 +8127,7 @@ const Zh = (e, t) => jr(e) ? new Hh(t) : new Wh(t, {
8131
8127
  /* @__PURE__ */ h.jsx("path", { d: "m14.7004641 3.25135912-1.9740111 4.44517127h1.3539006l.3724199-.89016575h2.0179447l.3721547.89016575h1.3875801l-1.96579-4.44517127zm.1696353 2.55743646.592-1.41507182.5915581 1.41507182z" }),
8132
8128
  /* @__PURE__ */ h.jsx("path", { d: "m18.2119779 7.69573481v-4.44508288l1.903116.00654144.9792707 2.73272928.9856354-2.73927072h1.8316022v4.44508288l-1.1786077.01043094v-3.05334807l-1.1125746 3.04291713h-1.0758011l-1.1356464-3.05334807v3.05334807z" })
8133
8129
  ] })
8134
- ] }) }) }), w1 = {
8130
+ ] }) }) }), k1 = {
8135
8131
  width: 30,
8136
8132
  height: 20,
8137
8133
  display: "flex",
@@ -8140,7 +8136,7 @@ const Zh = (e, t) => jr(e) ? new Hh(t) : new Wh(t, {
8140
8136
  }, P1 = {
8141
8137
  width: "100%",
8142
8138
  height: "100%"
8143
- }, A1 = ({ className: e }) => /* @__PURE__ */ h.jsx("div", { style: w1, className: e, children: /* @__PURE__ */ h.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "16", viewBox: "0 0 24 16", width: "24", style: P1, children: /* @__PURE__ */ h.jsxs("g", { fill: "none", children: [
8139
+ }, A1 = ({ className: e }) => /* @__PURE__ */ h.jsx("div", { style: k1, className: e, children: /* @__PURE__ */ h.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", height: "16", viewBox: "0 0 24 16", width: "24", style: P1, children: /* @__PURE__ */ h.jsxs("g", { fill: "none", children: [
8144
8140
  /* @__PURE__ */ h.jsx(
8145
8141
  "path",
8146
8142
  {
@@ -8281,12 +8277,12 @@ const Ir = [
8281
8277
  v ? t(u, d) : t("", !1);
8282
8278
  }, [v, u, d, t]);
8283
8279
  const y = (b) => {
8284
- const k = us(b, a);
8285
- if (k) {
8286
- if (k === $.Empty)
8280
+ const w = us(b, a);
8281
+ if (w) {
8282
+ if (w === $.Empty)
8287
8283
  c(""), p(!0);
8288
8284
  else {
8289
- const C = k === $.Incomplete ? o.card.cvc.error.incomplete : o.card.cvc.error.invalid;
8285
+ const C = w === $.Incomplete ? o.card.cvc.error.incomplete : o.card.cvc.error.invalid;
8290
8286
  c(C), p(!1);
8291
8287
  }
8292
8288
  return;
@@ -8294,10 +8290,10 @@ const Ir = [
8294
8290
  p(!1), c("");
8295
8291
  }, T = (b) => {
8296
8292
  if (s) return;
8297
- const { value: k } = b.currentTarget;
8293
+ const { value: w } = b.currentTarget;
8298
8294
  c(""), p(!1), f || m(!0);
8299
- const C = An(k, a), w = He.getTypeInfo(a);
8300
- C.length === w?.code.size && y(C), e({
8295
+ const C = An(w, a), k = He.getTypeInfo(a);
8296
+ C.length === k?.code.size && y(C), e({
8301
8297
  value: C,
8302
8298
  isValid: us(C, a) === null
8303
8299
  });
@@ -8337,8 +8333,8 @@ const Ir = [
8337
8333
  if (b === $.Empty)
8338
8334
  u(""), d(!0);
8339
8335
  else {
8340
- let k = a.card.expiry.error.invalid;
8341
- b === "expired" ? k = a.card.expiry.error.expired.replace("{date}", "year") : b === "dateExpired" ? k = a.card.expiry.error.expired.replace("{date}", "date") : b === $.Incomplete && (k = a.card.expiry.error.incomplete), d(!1), u(k);
8336
+ let w = a.card.expiry.error.invalid;
8337
+ b === "expired" ? w = a.card.expiry.error.expired.replace("{date}", "year") : b === "dateExpired" ? w = a.card.expiry.error.expired.replace("{date}", "date") : b === $.Incomplete && (w = a.card.expiry.error.incomplete), d(!1), u(w);
8342
8338
  }
8343
8339
  return;
8344
8340
  }
@@ -8347,10 +8343,10 @@ const Ir = [
8347
8343
  if (s) return;
8348
8344
  const { value: b } = T.currentTarget;
8349
8345
  u(""), d(!1), p || f(!0);
8350
- const k = Ql(b, r);
8351
- k.length === 7 && v(k), e({
8352
- value: k,
8353
- isValid: ds(k) === null
8346
+ const w = Ql(b, r);
8347
+ w.length === 7 && v(w), e({
8348
+ value: w,
8349
+ isValid: ds(w) === null
8354
8350
  });
8355
8351
  };
8356
8352
  return /* @__PURE__ */ h.jsx(
@@ -8416,7 +8412,7 @@ const Ir = [
8416
8412
  case J.JCB:
8417
8413
  return /* @__PURE__ */ h.jsx("span", { className: Re.iconContainer, children: /* @__PURE__ */ h.jsx(y1, {}) }, n);
8418
8414
  case J.AmericanExpress:
8419
- return /* @__PURE__ */ h.jsx("span", { className: Re.iconContainer, children: /* @__PURE__ */ h.jsx(k1, {}) }, n);
8415
+ return /* @__PURE__ */ h.jsx("span", { className: Re.iconContainer, children: /* @__PURE__ */ h.jsx(w1, {}) }, n);
8420
8416
  case J.Discover:
8421
8417
  return /* @__PURE__ */ h.jsx("span", { className: Re.iconContainer, children: /* @__PURE__ */ h.jsx(x1, {}) }, n);
8422
8418
  case J.UnionPay:
@@ -8425,20 +8421,20 @@ const Ir = [
8425
8421
  return null;
8426
8422
  }
8427
8423
  }), $1 = ({ onChange: e, value: t, disabled: n, isTouchSubmit: r, supportedCardTypes: i }) => {
8428
- const s = _e(), a = Ye(), o = Et(), [l, u] = S(ps), [c, d] = S(""), [p, f] = S(!0), [m, g] = S(!1), v = r || m, y = (k) => {
8429
- const { isValid: C, error: w } = cs(k, i);
8424
+ const s = _e(), a = Ye(), o = Et(), [l, u] = S(ps), [c, d] = S(""), [p, f] = S(!0), [m, g] = S(!1), v = r || m, y = (w) => {
8425
+ const { isValid: C, error: k } = cs(w, i);
8430
8426
  if (!C)
8431
- return w === $.Empty ? (d(""), f(!0)) : w === $.Unsupported ? (d(a.card.number.error.unsupported), f(!1)) : (d(w === $.Incomplete ? a.card.number.error.incomplete : a.card.number.error.invalid), f(!1)), !1;
8427
+ return k === $.Empty ? (d(""), f(!0)) : k === $.Unsupported ? (d(a.card.number.error.unsupported), f(!1)) : (d(k === $.Incomplete ? a.card.number.error.incomplete : a.card.number.error.invalid), f(!1)), !1;
8432
8428
  f(!1), d("");
8433
- }, T = (k) => {
8429
+ }, T = (w) => {
8434
8430
  if (n) return;
8435
- const { value: C } = k.currentTarget;
8431
+ const { value: C } = w.currentTarget;
8436
8432
  d(""), f(!1), m || g(!0);
8437
- const w = D1(C).map((R) => R.type), E = lo(C), P = Jl(C, E?.type || "");
8438
- P.replace(/\D/g, "").length === (E?.maxLength || 16) && y(P), u(w.length ? w : ps), e({
8433
+ const k = D1(C).map((R) => R.type), E = lo(C), P = Jl(C, E?.type || "");
8434
+ P.replace(/\D/g, "").length === (E?.maxLength || 16) && y(P), u(k.length ? k : ps), e({
8439
8435
  card: P,
8440
8436
  cardType: E?.type || "",
8441
- cardTypes: w,
8437
+ cardTypes: k,
8442
8438
  isValid: cs(P).isValid
8443
8439
  });
8444
8440
  }, b = v && !n && (!!c || p);
@@ -8499,22 +8495,22 @@ const Ir = [
8499
8495
  ),
8500
8496
  /* @__PURE__ */ h.jsx("span", { className: fs.sr, children: "Loading..." })
8501
8497
  ] }), Q1 = ({ isFetching: e, isFail: t, supportedCardTypes: n, onSubmit: r }) => {
8502
- const i = Ye(), s = Et(), [a, o] = S({ value: "", isValid: !1 }), l = _e(), [u, c] = S(""), [d, p] = S(!1), [f, m] = S({ value: "", isValid: !1 }), g = _e(), [v, y] = S(""), [T, b] = S(!1), [k, C] = S({ value: "", isValid: !1 }), [w, E] = S(""), [P, R] = S({ value: "", isValid: !1 }), [I, q] = S(!1), te = ({ card: M, cardType: D, isValid: G }) => {
8498
+ const i = Ye(), s = Et(), [a, o] = S({ value: "", isValid: !1 }), l = _e(), [u, c] = S(""), [d, p] = S(!1), [f, m] = S({ value: "", isValid: !1 }), g = _e(), [v, y] = S(""), [T, b] = S(!1), [w, C] = S({ value: "", isValid: !1 }), [k, E] = S(""), [P, R] = S({ value: "", isValid: !1 }), [I, q] = S(!1), te = ({ card: M, cardType: D, isValid: G }) => {
8503
8499
  C({ value: M, isValid: G }), E(D);
8504
8500
  const x = An(a.value, D);
8505
8501
  o({ value: x, isValid: a.isValid });
8506
8502
  }, j = ({ value: M, isValid: D }) => {
8507
- const G = An(M, w);
8503
+ const G = An(M, k);
8508
8504
  o({ value: G, isValid: D });
8509
8505
  }, z = (M) => {
8510
- if (M.preventDefault(), !(k.isValid && f.isValid && a.isValid && P.isValid)) return;
8506
+ if (M.preventDefault(), !(w.isValid && f.isValid && a.isValid && P.isValid)) return;
8511
8507
  const G = /\s/g;
8512
8508
  r({
8513
- number: k.value.replace(G, ""),
8509
+ number: w.value.replace(G, ""),
8514
8510
  expiry: f.value.replace(G, ""),
8515
8511
  cvc: a.value,
8516
8512
  name: P.value,
8517
- cardBrand: w
8513
+ cardBrand: k
8518
8514
  });
8519
8515
  }, ve = (M, D) => {
8520
8516
  b(D), y(D ? i.card.expiry.error.required : M);
@@ -8525,7 +8521,7 @@ const Ir = [
8525
8521
  /* @__PURE__ */ h.jsx(
8526
8522
  $1,
8527
8523
  {
8528
- value: k.value,
8524
+ value: w.value,
8529
8525
  onChange: te,
8530
8526
  isTouchSubmit: I,
8531
8527
  supportedCardTypes: n,
@@ -8568,7 +8564,7 @@ const Ir = [
8568
8564
  O1,
8569
8565
  {
8570
8566
  id: l,
8571
- cardType: w,
8567
+ cardType: k,
8572
8568
  value: a.value,
8573
8569
  onError: pe,
8574
8570
  onChange: j,
@@ -8669,7 +8665,7 @@ function gs(e, t, n) {
8669
8665
  (s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
8670
8666
  return e.concat(s || Array.prototype.slice.call(t));
8671
8667
  }
8672
- var kt = "data-react-paypal-script-id", Le = {
8668
+ var wt = "data-react-paypal-script-id", Le = {
8673
8669
  DATA_JS_SDK_LIBRARY: "dataJsSdkLibrary",
8674
8670
  DATA_LIBRARY_VALUE: "react-paypal-js",
8675
8671
  DATA_NAMESPACE: "dataNamespace",
@@ -8695,13 +8691,13 @@ To fix the issue, add '`.concat(n, "' to the list of components passed to the pa
8695
8691
  return l;
8696
8692
  }
8697
8693
  function ho(e) {
8698
- var t = e, n = kt;
8694
+ var t = e, n = wt;
8699
8695
  t[n];
8700
8696
  var r = co(t, [n + ""]);
8701
8697
  return "react-paypal-js-".concat(cp(JSON.stringify(r)));
8702
8698
  }
8703
8699
  function dp(e) {
8704
- var t = self.document.querySelector("script[".concat(kt, '="').concat(e, '"]'));
8700
+ var t = self.document.querySelector("script[".concat(wt, '="').concat(e, '"]'));
8705
8701
  t?.parentNode && t.parentNode.removeChild(t);
8706
8702
  }
8707
8703
  function hp(e, t) {
@@ -8715,9 +8711,9 @@ function hp(e, t) {
8715
8711
  loadingStatus: t.value
8716
8712
  });
8717
8713
  case Ae.RESET_OPTIONS:
8718
- return dp(e.options[kt]), U(U({}, e), {
8714
+ return dp(e.options[wt]), U(U({}, e), {
8719
8715
  loadingStatus: ne.PENDING,
8720
- options: U(U((n = {}, n[Le.DATA_SDK_INTEGRATION_SOURCE] = Le.DATA_LIBRARY_VALUE, n), t.value), (r = {}, r[kt] = "".concat(ho(t.value)), r))
8716
+ options: U(U((n = {}, n[Le.DATA_SDK_INTEGRATION_SOURCE] = Le.DATA_LIBRARY_VALUE, n), t.value), (r = {}, r[wt] = "".concat(ho(t.value)), r))
8721
8717
  });
8722
8718
  case Ae.SET_BRAINTREE_INSTANCE:
8723
8719
  return U(U({}, e), {
@@ -8758,7 +8754,7 @@ function mp(e) {
8758
8754
  var Dr = function(e) {
8759
8755
  var t, n = e.className, r = n === void 0 ? "" : n, i = e.disabled, s = i === void 0 ? !1 : i, a = e.children, o = e.forceReRender, l = o === void 0 ? [] : o, u = co(e, ["className", "disabled", "children", "forceReRender"]), c = s ? {
8760
8756
  opacity: 0.38
8761
- } : {}, d = "".concat(r, " ").concat(s ? "paypal-buttons-disabled" : "").trim(), p = le(null), f = le(null), m = mp(u), g = fp()[0], v = g.isResolved, y = g.options, T = S(null), b = T[0], k = T[1], C = S(!0), w = C[0], E = C[1], P = S(null), R = P[1];
8757
+ } : {}, d = "".concat(r, " ").concat(s ? "paypal-buttons-disabled" : "").trim(), p = le(null), f = le(null), m = mp(u), g = fp()[0], v = g.isResolved, y = g.options, T = S(null), b = T[0], w = T[1], C = S(!0), k = C[0], E = C[1], P = S(null), R = P[1];
8762
8758
  function I() {
8763
8759
  f.current !== null && f.current.close().catch(function() {
8764
8760
  });
@@ -8779,7 +8775,7 @@ var Dr = function(e) {
8779
8775
  }));
8780
8776
  }), I;
8781
8777
  var te = function(j, z) {
8782
- k(z), typeof u.onInit == "function" && u.onInit(j, z);
8778
+ w(z), typeof u.onInit == "function" && u.onInit(j, z);
8783
8779
  };
8784
8780
  try {
8785
8781
  f.current = q.Buttons(U(U({}, m), {
@@ -8799,7 +8795,7 @@ var Dr = function(e) {
8799
8795
  b !== null && (s === !0 ? b.disable().catch(function() {
8800
8796
  }) : b.enable().catch(function() {
8801
8797
  }));
8802
- }, [s, b]), ut.createElement(ut.Fragment, null, w ? ut.createElement("div", {
8798
+ }, [s, b]), ut.createElement(ut.Fragment, null, k ? ut.createElement("div", {
8803
8799
  ref: p,
8804
8800
  style: c,
8805
8801
  className: d
@@ -8865,10 +8861,10 @@ function fo(e, t) {
8865
8861
  n.setAttribute(r, t[r]), r === "data-csp-nonce" && n.setAttribute("nonce", t["data-csp-nonce"]);
8866
8862
  }), n;
8867
8863
  }
8868
- function kp(e, t) {
8864
+ function wp(e, t) {
8869
8865
  if (t === void 0 && (t = Promise), mo(e, t), typeof document > "u") return t.resolve(null);
8870
8866
  var n = bp(e), r = n.url, i = n.attributes, s = i["data-namespace"] || "paypal", a = ys(s);
8871
- return i["data-js-sdk-library"] || (i["data-js-sdk-library"] = "paypal-js"), yp(r, i) && a ? t.resolve(a) : wp({
8867
+ return i["data-js-sdk-library"] || (i["data-js-sdk-library"] = "paypal-js"), yp(r, i) && a ? t.resolve(a) : kp({
8872
8868
  url: r,
8873
8869
  attributes: i
8874
8870
  }, t).then(function() {
@@ -8878,7 +8874,7 @@ function kp(e, t) {
8878
8874
  throw new Error("The window.".concat(s, " global variable is not available."));
8879
8875
  });
8880
8876
  }
8881
- function wp(e, t) {
8877
+ function kp(e, t) {
8882
8878
  t === void 0 && (t = Promise), mo(e, t);
8883
8879
  var n = e.url, r = e.attributes;
8884
8880
  if (typeof n != "string" || n.length === 0)
@@ -8915,8 +8911,8 @@ function mo(e, t) {
8915
8911
  var Pp = function(e) {
8916
8912
  var t, n = e.options, r = n === void 0 ? {
8917
8913
  clientId: "test"
8918
- } : n, i = e.children, s = e.deferLoading, a = s === void 0 ? !1 : s, o = ko(hp, {
8919
- options: U(U({}, r), (t = {}, t[Le.DATA_JS_SDK_LIBRARY] = Le.DATA_LIBRARY_VALUE, t[Le.DATA_SDK_INTEGRATION_SOURCE] = Le.DATA_LIBRARY_VALUE, t[kt] = "".concat(ho(r)), t)),
8914
+ } : n, i = e.children, s = e.deferLoading, a = s === void 0 ? !1 : s, o = wo(hp, {
8915
+ options: U(U({}, r), (t = {}, t[Le.DATA_JS_SDK_LIBRARY] = Le.DATA_LIBRARY_VALUE, t[Le.DATA_SDK_INTEGRATION_SOURCE] = Le.DATA_LIBRARY_VALUE, t[wt] = "".concat(ho(r)), t)),
8920
8916
  loadingStatus: a ? ne.INITIAL : ne.PENDING
8921
8917
  }), l = o[0], u = o[1];
8922
8918
  return ie(function() {
@@ -8927,7 +8923,7 @@ var Pp = function(e) {
8927
8923
  });
8928
8924
  if (l.loadingStatus === ne.PENDING) {
8929
8925
  var c = !0;
8930
- return kp(l.options).then(function() {
8926
+ return wp(l.options).then(function() {
8931
8927
  c && u({
8932
8928
  type: Ae.LOADING_STATUS,
8933
8929
  value: ne.RESOLVED
@@ -9065,7 +9061,7 @@ const Ap = "_paypalBtn_2m8yd_1", Sp = {
9065
9061
  [t, r]
9066
9062
  ), b = L(() => {
9067
9063
  d(!0);
9068
- }, []), k = L(
9064
+ }, []), w = L(
9069
9065
  (j) => {
9070
9066
  console.error(j), e(j);
9071
9067
  },
@@ -9078,7 +9074,7 @@ const Ap = "_paypalBtn_2m8yd_1", Sp = {
9078
9074
  });
9079
9075
  },
9080
9076
  [t, r]
9081
- ), w = L(
9077
+ ), k = L(
9082
9078
  (j) => {
9083
9079
  console.error(j), e(j);
9084
9080
  },
@@ -9122,9 +9118,9 @@ const Ap = "_paypalBtn_2m8yd_1", Sp = {
9122
9118
  handleApplePayReady: E,
9123
9119
  handlePayCard: y,
9124
9120
  handleGooglePay: T,
9125
- handleGooglePayError: k,
9121
+ handleGooglePayError: w,
9126
9122
  handleApplePay: C,
9127
- handleApplePayError: w,
9123
+ handleApplePayError: k,
9128
9124
  handleCardOpen: q,
9129
9125
  handleCardClose: te,
9130
9126
  handlePayPalCreate: R,
@@ -9251,9 +9247,9 @@ const Ap = "_paypalBtn_2m8yd_1", Sp = {
9251
9247
  handlePayPal: y,
9252
9248
  handlePayCard: T,
9253
9249
  handlePayPalReady: b,
9254
- handleApplePayReady: k,
9250
+ handleApplePayReady: w,
9255
9251
  handleGooglePayReady: C,
9256
- handleApplePayError: w,
9252
+ handleApplePayError: k,
9257
9253
  handleGooglePayError: E,
9258
9254
  isPayPalReady: P,
9259
9255
  isReady: R,
@@ -9278,9 +9274,9 @@ const Ap = "_paypalBtn_2m8yd_1", Sp = {
9278
9274
  "apple-pay": (!z || P) && j ? /* @__PURE__ */ h.jsx(
9279
9275
  Bl,
9280
9276
  {
9281
- onError: w,
9277
+ onError: k,
9282
9278
  onSubmit: p,
9283
- onReady: k,
9279
+ onReady: w,
9284
9280
  transaction: j,
9285
9281
  locale: zp(c),
9286
9282
  supportedCardTypes: ve
@@ -9386,7 +9382,7 @@ const Ap = "_paypalBtn_2m8yd_1", Sp = {
9386
9382
  onCheckoutComplete: a,
9387
9383
  onCheckoutFail: o
9388
9384
  });
9389
- return /* @__PURE__ */ h.jsx(wo, { children: /* @__PURE__ */ h.jsx(vl, { translate: t, locale: r, children: /* @__PURE__ */ h.jsx(Fl, { clientToken: e, children: /* @__PURE__ */ h.jsx(I1, { styles: s, children: /* @__PURE__ */ h.jsx(
9385
+ return /* @__PURE__ */ h.jsx(ko, { children: /* @__PURE__ */ h.jsx(vl, { translate: t, locale: r, children: /* @__PURE__ */ h.jsx(Fl, { clientToken: e, children: /* @__PURE__ */ h.jsx(I1, { styles: s, children: /* @__PURE__ */ h.jsx(
9390
9386
  $p,
9391
9387
  {
9392
9388
  clientToken: e,