@getmicdrop/venue-calendar 4.3.0 → 4.3.2

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.
Files changed (66) hide show
  1. package/dist/{Badge-XNQHeoZJ.js → Badge-Gg5PWs7f.js} +39 -60
  2. package/dist/Calendar-bhl8Q8us.js +1332 -0
  3. package/dist/{CalendarFoundryView-9LW4nveh.js → CalendarFoundryView-C2O_AmBk.js} +5881 -5311
  4. package/dist/CartView-D57bwixz.js +2245 -0
  5. package/dist/{Checkbox-BexPyTGk.js → Checkbox-24CWEsty.js} +1 -1
  6. package/dist/{Checkout-D_oRIhxJ.js → Checkout-BqaJK6UP.js} +136 -135
  7. package/dist/{Checkout-C6xmGlWs.js → Checkout-DQWeMchu.js} +100 -100
  8. package/dist/{CollectionView-BdVW1cJz.js → CollectionView-B-PR54hU.js} +3 -3
  9. package/dist/CropImage-CxLcNArr.js +445 -0
  10. package/dist/{Event-I5Wu3_AC.js → Event-DxNC58Zb.js} +327 -325
  11. package/dist/{EventPage-BjrFGlDJ.js → EventPage-Y3NWzmN0.js} +38 -38
  12. package/dist/{Heading-KNE3t6AC.js → Heading-cKAx0Ogl.js} +3 -1
  13. package/dist/Input-D1FpSX5Q.js +292 -0
  14. package/dist/{Modal-c4rwVXSs.js → Modal-LkN8lh_m.js} +5 -2
  15. package/dist/ModalFooter-B_8f1Z5p.js +301 -0
  16. package/dist/{PasswordInput-Dm4Z88em.js → PasswordInput-Bt6tvpzi.js} +19 -15
  17. package/dist/{ScarcityBadge-DMI7KfDF.js → ScarcityBadge-g0dRh6K7.js} +1 -1
  18. package/dist/{SeriesPage-BQGc51bF.js → SeriesPage-D2305oP-.js} +2 -2
  19. package/dist/{Spinner-C8M6STFM.js → Spinner-LroI7eOC.js} +1 -1
  20. package/dist/{Success-CxJiJEdx.js → Success-ClXshzvl.js} +1 -1
  21. package/dist/{ViewTicketsEmbed-D-w4zHtm.js → ViewTicketsEmbed-CvuMdTA7.js} +4 -4
  22. package/dist/{browser-By3zPFZd.js → browser-viCaCwoW.js} +1 -1
  23. package/dist/imageOptimizer-BwLwBMI6.js +112 -0
  24. package/dist/keyboard-fiZFqeNA.js +29 -0
  25. package/dist/{modalManager.svelte-CQrpnx4J.js → modalManager.svelte-B9mhX1cG.js} +1 -1
  26. package/dist/{phoneUtils-by0RmQv1.js → phoneUtils-C2GGZYvA.js} +319 -319
  27. package/dist/portal-DqxEuE-7.js +166 -0
  28. package/dist/{to-event-card-props-BdO47New.js → to-event-card-props-dIhKdERf.js} +103 -97
  29. package/dist/types/index.d.ts +11 -0
  30. package/dist/venue-calendar.css +1 -1
  31. package/dist/venue-calendar.es.js +1053 -969
  32. package/dist/venue-calendar.iife.js +60 -60
  33. package/dist/venue-calendar.umd.js +57 -57
  34. package/dist/z-index-BgKs9X9U.js +225 -0
  35. package/package.json +220 -220
  36. package/dist/Calendar-C5tzjUQM.js +0 -1333
  37. package/dist/CartView-C4Fpn8mC.js +0 -2245
  38. package/dist/CropImage-D70HuWqC.js +0 -404
  39. package/dist/Input-Docb71Sc.js +0 -489
  40. package/dist/ModalFooter-CFgAtDI3.js +0 -464
  41. package/dist/imageOptimizer-CB3wKJU8.js +0 -47
  42. package/dist/z-index-B0Vk_Mp1.js +0 -27
  43. /package/dist/locales/{4.3.0 → 4.3.2}/flow/de.js +0 -0
  44. /package/dist/locales/{4.3.0 → 4.3.2}/flow/es.js +0 -0
  45. /package/dist/locales/{4.3.0 → 4.3.2}/flow/fr.js +0 -0
  46. /package/dist/locales/{4.3.0 → 4.3.2}/flow/id.js +0 -0
  47. /package/dist/locales/{4.3.0 → 4.3.2}/flow/it.js +0 -0
  48. /package/dist/locales/{4.3.0 → 4.3.2}/flow/ja.js +0 -0
  49. /package/dist/locales/{4.3.0 → 4.3.2}/flow/ko.js +0 -0
  50. /package/dist/locales/{4.3.0 → 4.3.2}/flow/nl.js +0 -0
  51. /package/dist/locales/{4.3.0 → 4.3.2}/flow/pl.js +0 -0
  52. /package/dist/locales/{4.3.0 → 4.3.2}/flow/pt-br.js +0 -0
  53. /package/dist/locales/{4.3.0 → 4.3.2}/flow/tr.js +0 -0
  54. /package/dist/locales/{4.3.0 → 4.3.2}/flow/zh.js +0 -0
  55. /package/dist/locales/{4.3.0 → 4.3.2}/main/de.js +0 -0
  56. /package/dist/locales/{4.3.0 → 4.3.2}/main/es.js +0 -0
  57. /package/dist/locales/{4.3.0 → 4.3.2}/main/fr.js +0 -0
  58. /package/dist/locales/{4.3.0 → 4.3.2}/main/id.js +0 -0
  59. /package/dist/locales/{4.3.0 → 4.3.2}/main/it.js +0 -0
  60. /package/dist/locales/{4.3.0 → 4.3.2}/main/ja.js +0 -0
  61. /package/dist/locales/{4.3.0 → 4.3.2}/main/ko.js +0 -0
  62. /package/dist/locales/{4.3.0 → 4.3.2}/main/nl.js +0 -0
  63. /package/dist/locales/{4.3.0 → 4.3.2}/main/pl.js +0 -0
  64. /package/dist/locales/{4.3.0 → 4.3.2}/main/pt-br.js +0 -0
  65. /package/dist/locales/{4.3.0 → 4.3.2}/main/tr.js +0 -0
  66. /package/dist/locales/{4.3.0 → 4.3.2}/main/zh.js +0 -0
@@ -1,19 +1,20 @@
1
1
  import { _ as e, v as t, x as n } from "./Button-Cm6xkipe.js";
2
2
  import { i as r, n as i, t as a, y as o } from "./defaultLabels-BigaGqKj.js";
3
3
  import { n as s, r as c, t as l } from "./CloseIcon-a3S2RgbP.js";
4
- import { f as u, m as d, r as f } from "./Input-Docb71Sc.js";
5
- import { C as p, O as m, m as h } from "./constants-PBNG9ikv.js";
6
- import { t as g } from "./TagIcon-BhLrURo_.js";
7
- import { t as _ } from "./WarningTriIcon-QVzQiEM4.js";
4
+ import { i as u } from "./Input-D1FpSX5Q.js";
5
+ import { C as d, O as f, m as p } from "./constants-PBNG9ikv.js";
6
+ import { t as m } from "./TagIcon-BhLrURo_.js";
7
+ import { t as h } from "./WarningTriIcon-QVzQiEM4.js";
8
+ import { d as g, n as _ } from "./z-index-BgKs9X9U.js";
8
9
  import { f as v, i as y, n as b, r as x, s as S, t as C } from "./orders-CFF0Hb2x.js";
9
10
  import { n as w, t as T } from "./serverTotals-Dbi69SIr.js";
10
- import { a as E, i as D, n as O, r as k, t as A } from "./ModalFooter-CFgAtDI3.js";
11
+ import { a as E, i as D, n as O, r as k, t as A } from "./ModalFooter-B_8f1Z5p.js";
11
12
  import { C as ee, d as te, f as ne, u as j } from "./colors-BsP3TRan.js";
12
- import { t as re } from "./event-transform-J7U1JmeK.js";
13
- import { _ as ie, h as ae, l as oe, r as M, y as se } from "./utils-CbacksjX.js";
14
- import { a as N, n as ce } from "./promo--p3GbP64.js";
13
+ import { t as M } from "./event-transform-J7U1JmeK.js";
14
+ import { _ as re, h as ie, l as ae, r as N, y as oe } from "./utils-CbacksjX.js";
15
+ import { a as se, n as ce } from "./promo--p3GbP64.js";
15
16
  import { r as le } from "./order-totals-DR-oXumr.js";
16
- import ue, { n as P, t as de } from "./Checkout-C6xmGlWs.js";
17
+ import ue, { n as P, t as de } from "./Checkout-DQWeMchu.js";
17
18
  import { n as fe } from "./buyerEmail-BfCq-gDt.js";
18
19
  import "svelte/internal/disclose-version";
19
20
  import * as F from "svelte/internal/client";
@@ -29,60 +30,60 @@ function I(e) {
29
30
  }
30
31
  var L = "dahlia", R = function(e) {
31
32
  return e === 3 ? "v3" : e;
32
- }, z = "https://js.stripe.com", B = `${z}/${L}/stripe.js`, V = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, H = /^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/, me = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", he = function(e) {
33
+ }, z = "https://js.stripe.com", B = `${z}/${L}/stripe.js`, V = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, H = /^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/, U = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", me = function(e) {
33
34
  return V.test(e) || H.test(e);
34
- }, U = function() {
35
+ }, W = function() {
35
36
  for (var e = document.querySelectorAll(`script[src^="${z}"]`), t = 0; t < e.length; t++) {
36
37
  var n = e[t];
37
- if (he(n.src)) return n;
38
+ if (me(n.src)) return n;
38
39
  }
39
40
  return null;
40
- }, ge = function(e) {
41
+ }, he = function(e) {
41
42
  var t = e && !e.advancedFraudSignals ? "?advancedFraudSignals=false" : "", n = document.createElement("script");
42
43
  n.src = `${B}${t}`;
43
44
  var r = document.head || document.body;
44
45
  if (!r) throw Error("Expected document.body not to be null. Stripe.js requires a <body> element.");
45
46
  return r.appendChild(n), n;
46
- }, W = function(e, t) {
47
+ }, G = function(e, t) {
47
48
  !e || !e._registerWrapper || e._registerWrapper({
48
49
  name: "stripe-js",
49
50
  version: "9.13.0",
50
51
  startTime: t
51
52
  });
52
- }, G = null, K = null, q = null, _e = function(e) {
53
+ }, K = null, q = null, J = null, ge = function(e) {
53
54
  return function(t) {
54
55
  e(Error("Failed to load Stripe.js", { cause: t }));
55
56
  };
56
- }, J = function(e, t) {
57
+ }, Y = function(e, t) {
57
58
  return function() {
58
59
  window.Stripe ? e(window.Stripe) : t(/* @__PURE__ */ Error("Stripe.js not available"));
59
60
  };
60
- }, Y = function(e) {
61
- return G === null ? (G = new Promise(function(t, n) {
61
+ }, _e = function(e) {
62
+ return K === null ? (K = new Promise(function(t, n) {
62
63
  if (typeof window > "u" || typeof document > "u") {
63
64
  t(null);
64
65
  return;
65
66
  }
66
- if (window.Stripe && e && console.warn(me), window.Stripe) {
67
+ if (window.Stripe && e && console.warn(U), window.Stripe) {
67
68
  t(window.Stripe);
68
69
  return;
69
70
  }
70
71
  try {
71
- var r = U();
72
- if (r && e) console.warn(me);
73
- else if (!r) r = ge(e);
74
- else if (r && q !== null && K !== null) {
72
+ var r = W();
73
+ if (r && e) console.warn(U);
74
+ else if (!r) r = he(e);
75
+ else if (r && J !== null && q !== null) {
75
76
  var i;
76
- r.removeEventListener("load", q), r.removeEventListener("error", K), (i = r.parentNode) == null || i.removeChild(r), r = ge(e);
77
+ r.removeEventListener("load", J), r.removeEventListener("error", q), (i = r.parentNode) == null || i.removeChild(r), r = he(e);
77
78
  }
78
- q = J(t, n), K = _e(n), r.addEventListener("load", q), r.addEventListener("error", K);
79
+ J = Y(t, n), q = ge(n), r.addEventListener("load", J), r.addEventListener("error", q);
79
80
  } catch (e) {
80
81
  n(e);
81
82
  return;
82
83
  }
83
- }), G.catch(function(e) {
84
- return G = null, Promise.reject(e);
85
- })) : G;
84
+ }), K.catch(function(e) {
85
+ return K = null, Promise.reject(e);
86
+ })) : K;
86
87
  }, ve = function(e, t, n) {
87
88
  if (e === null) return null;
88
89
  var r = t[0];
@@ -90,9 +91,9 @@ var L = "dahlia", R = function(e) {
90
91
  var i = r.match(/^pk_test/), a = R(e.version), o = L;
91
92
  i && a !== o && console.warn(`Stripe.js@${a} was loaded on the page, but @stripe/stripe-js@9.13.0 expected Stripe.js@${o}. This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning`);
92
93
  var s = e.apply(void 0, t);
93
- return W(s, n), s;
94
+ return G(s, n), s;
94
95
  }, X, ye = !1, be = function() {
95
- return X || (X = Y(null).catch(function(e) {
96
+ return X || (X = _e(null).catch(function(e) {
96
97
  return X = null, Promise.reject(e);
97
98
  }), X);
98
99
  };
@@ -184,7 +185,7 @@ function Z(e, t = a) {
184
185
  var Q = n("GiftCardInput"), Se = F.from_html("<div class=\"applied-card mb-2 svelte-emw0hd\"><div class=\"flex items-center gap-3\"><div class=\"applied-icon svelte-emw0hd\"><!></div> <div class=\"flex flex-col flex-1\"><span class=\"type-caption text-status-success-text\"> </span> <span class=\"type-body font-mono text-text-primary\"> </span></div> <span class=\"type-label text-accent-success\"> </span> <!></div></div>"), Ce = F.from_html("<div class=\"applied-card mb-3 svelte-emw0hd\"><div><!> <span> </span></div></div>"), we = F.from_html("<div class=\"flex items-center gap-1.5 mt-2 type-body text-accent-danger\"><!> <span> </span></div>"), Te = F.from_html("<div class=\"input-section svelte-emw0hd\"><div class=\"flex gap-2\"><input type=\"text\" name=\"giftCardCode\" autocomplete=\"off\" autocapitalize=\"characters\"/> <!></div> <!></div>"), Ee = F.from_html("<div class=\"mb-4\"><!> <!> <button type=\"button\"><!> <span> </span> <span class=\"toggle-indicator svelte-emw0hd\"> </span></button> <!></div>");
185
186
  function De(n, i) {
186
187
  F.push(i, !0);
187
- let o = F.prop(i, "onApplied", 3, () => {}), c = F.prop(i, "onRemoved", 3, () => {}), d = F.prop(i, "disabled", 3, !1), m = F.prop(i, "labels", 3, a), h = F.prop(i, "owedTotal", 3, 0), v = F.state(""), y = F.state(!1), b = F.state(""), S = F.state(F.proxy([])), C = F.state(!1), w = F.state(0);
188
+ let o = F.prop(i, "onApplied", 3, () => {}), c = F.prop(i, "onRemoved", 3, () => {}), u = F.prop(i, "disabled", 3, !1), f = F.prop(i, "labels", 3, a), p = F.prop(i, "owedTotal", 3, 0), v = F.state(""), y = F.state(!1), b = F.state(""), S = F.state(F.proxy([])), C = F.state(!1), w = F.state(0);
188
189
  F.user_effect(() => {
189
190
  if (!i.cartId || F.get(S).length > 0) return;
190
191
  let e = !1;
@@ -195,7 +196,7 @@ function De(n, i) {
195
196
  giftCardId: e.giftCardId,
196
197
  code: e.maskedCode,
197
198
  giftCardAmount: e.amount
198
- })), !0), F.set(w, F.get(S).reduce((e, t) => e + (t.giftCardAmount || 0), 0) + (h() || 0)));
199
+ })), !0), F.set(w, F.get(S).reduce((e, t) => e + (t.giftCardAmount || 0), 0) + (p() || 0)));
199
200
  }).catch((e) => Q.error("Could not restore applied gift cards:", e)), () => {
200
201
  e = !0;
201
202
  };
@@ -219,7 +220,7 @@ function De(n, i) {
219
220
  let e = F.get(v).trim().toUpperCase();
220
221
  if (!(!e || F.get(y) || !i.cartId)) {
221
222
  if (F.get(S).some((t) => t.code === e)) {
222
- F.set(b, m().giftCardAlreadyApplied || "That gift card is already applied", !0);
223
+ F.set(b, f().giftCardAlreadyApplied || "That gift card is already applied", !0);
223
224
  return;
224
225
  }
225
226
  F.set(y, !0), F.set(b, "");
@@ -228,11 +229,11 @@ function De(n, i) {
228
229
  t.valid ? (F.set(S, [...F.get(S), {
229
230
  code: t.giftCardCode || e,
230
231
  giftCardAmount: t.giftCardAmount || 0
231
- }], !0), F.set(w, F.get(T) + (t.stripeAmount || 0)), F.set(v, ""), F.set(C, !1), O()) : F.set(b, t.error || m().invalidGiftCardCode || "Invalid gift card code", !0);
232
+ }], !0), F.set(w, F.get(T) + (t.stripeAmount || 0)), F.set(v, ""), F.set(C, !1), O()) : F.set(b, t.error || f().invalidGiftCardCode || "Invalid gift card code", !0);
232
233
  } catch (e) {
233
234
  Q.error("Error applying gift card:", e);
234
235
  let t = e && typeof e == "object" && typeof e.message == "string" ? e.message : "";
235
- F.set(b, t || m().failedToApplyGiftCard || "Failed to apply gift card. Please try again", !0);
236
+ F.set(b, t || f().failedToApplyGiftCard || "Failed to apply gift card. Please try again", !0);
236
237
  }
237
238
  F.set(y, !1);
238
239
  }
@@ -242,9 +243,9 @@ function De(n, i) {
242
243
  F.set(y, !0), F.set(b, "");
243
244
  try {
244
245
  let t = F.get(S).find((t) => t.code === e), n = await ne(i.cartId, t?.giftCardId ? { giftCardId: t.giftCardId } : { code: e });
245
- n.success !== !1 && !n.error ? (F.set(S, F.get(S).filter((t) => t.code !== e), !0), typeof n.remainingTotal == "number" && F.set(w, F.get(T) + n.remainingTotal), O()) : F.set(b, n.error || m().failedToRemoveGiftCard || "Failed to remove gift card. Please try again", !0);
246
+ n.success !== !1 && !n.error ? (F.set(S, F.get(S).filter((t) => t.code !== e), !0), typeof n.remainingTotal == "number" && F.set(w, F.get(T) + n.remainingTotal), O()) : F.set(b, n.error || f().failedToRemoveGiftCard || "Failed to remove gift card. Please try again", !0);
246
247
  } catch (e) {
247
- Q.error("Error removing gift card:", e), F.set(b, m().failedToRemoveGiftCard || "Failed to remove gift card. Please try again", !0);
248
+ Q.error("Error removing gift card:", e), F.set(b, f().failedToRemoveGiftCard || "Failed to remove gift card. Please try again", !0);
248
249
  }
249
250
  F.set(y, !1);
250
251
  }
@@ -255,19 +256,19 @@ function De(n, i) {
255
256
  function te() {
256
257
  F.set(C, !F.get(C)), F.get(C) || (F.set(v, ""), F.set(b, ""));
257
258
  }
258
- var re = Ee(), ie = F.child(re);
259
- F.each(ie, 17, () => F.get(S), (e) => e.code, (e, t) => {
259
+ var M = Ee(), re = F.child(M);
260
+ F.each(re, 17, () => F.get(S), (e) => e.code, (e, t) => {
260
261
  var n = Se(), i = F.child(n), a = F.child(i), o = F.child(a);
261
262
  s(o, { size: "16" }), F.reset(a);
262
- var c = F.sibling(a, 2), h = F.child(c), g = F.child(h, !0);
263
- F.reset(h);
264
- var _ = F.sibling(h, 2), v = F.child(_, !0);
265
- F.reset(_), F.reset(c);
263
+ var c = F.sibling(a, 2), p = F.child(c), m = F.child(p, !0);
264
+ F.reset(p);
265
+ var h = F.sibling(p, 2), v = F.child(h, !0);
266
+ F.reset(h), F.reset(c);
266
267
  var b = F.sibling(c, 2), x = F.child(b);
267
268
  F.reset(b);
268
269
  var S = F.sibling(b, 2);
269
270
  {
270
- let e = F.derived(() => m().removeGiftCard || "Remove gift card");
271
+ let e = F.derived(() => f().removeGiftCard || "Remove gift card");
271
272
  r(S, {
272
273
  variant: "icon",
273
274
  size: "icon-sm",
@@ -277,7 +278,7 @@ function De(n, i) {
277
278
  return F.get(y);
278
279
  },
279
280
  get disabled() {
280
- return d();
281
+ return u();
281
282
  },
282
283
  get "aria-label"() {
283
284
  return F.get(e);
@@ -289,36 +290,36 @@ function De(n, i) {
289
290
  });
290
291
  }
291
292
  F.reset(i), F.reset(n), F.template_effect((e) => {
292
- F.set_text(g, m().giftCardApplied || "Gift card applied"), F.set_text(v, F.get(t).code), F.set_text(x, `-${e ?? ""}`);
293
- }, [() => p(F.get(t).giftCardAmount)]), F.transition(3, n, () => u, () => ({ duration: f.fast })), F.append(e, n);
293
+ F.set_text(m, f().giftCardApplied || "Gift card applied"), F.set_text(v, F.get(t).code), F.set_text(x, `-${e ?? ""}`);
294
+ }, [() => d(F.get(t).giftCardAmount)]), F.transition(3, n, () => g, () => ({ duration: _.fast })), F.append(e, n);
294
295
  });
295
- var ae = F.sibling(ie, 2), oe = (n) => {
296
+ var ie = F.sibling(re, 2), ae = (n) => {
296
297
  var r = Ce(), i = F.child(r), a = F.child(i);
297
298
  s(a, { size: "16" });
298
299
  var o = F.sibling(a, 2), c = F.child(o, !0);
299
300
  F.reset(o), F.reset(i), F.reset(r), F.template_effect(() => {
300
- F.set_class(i, 1, `full-coverage-badge ${t.caption ?? ""} ${e.emphasis ?? ""}`, "svelte-emw0hd"), F.set_text(c, m().fullyCoveredByGiftCard || "Fully covered by gift card");
301
+ F.set_class(i, 1, `full-coverage-badge ${t.caption ?? ""} ${e.emphasis ?? ""}`, "svelte-emw0hd"), F.set_text(c, f().fullyCoveredByGiftCard || "Fully covered by gift card");
301
302
  }), F.append(n, r);
302
303
  };
303
- F.if(ae, (e) => {
304
- F.get(D) && e(oe);
304
+ F.if(ie, (e) => {
305
+ F.get(D) && e(ae);
305
306
  });
306
- var M = F.sibling(ae, 2), se = F.child(M);
307
- g(se, {
307
+ var N = F.sibling(ie, 2), oe = F.child(N);
308
+ m(oe, {
308
309
  size: "20",
309
310
  class: "gift-icon"
310
311
  });
311
- var N = F.sibling(se, 2), ce = F.child(N, !0);
312
- F.reset(N);
313
- var le = F.sibling(N, 2), ue = F.child(le, !0);
314
- F.reset(le), F.reset(M);
315
- var P = F.sibling(M, 2), de = (e) => {
312
+ var se = F.sibling(oe, 2), ce = F.child(se, !0);
313
+ F.reset(se);
314
+ var le = F.sibling(se, 2), ue = F.child(le, !0);
315
+ F.reset(le), F.reset(N);
316
+ var P = F.sibling(N, 2), de = (e) => {
316
317
  var n = Te(), i = F.child(n), a = F.child(i);
317
318
  F.remove_input_defaults(a);
318
319
  let o;
319
320
  var s = F.sibling(a, 2);
320
321
  {
321
- let e = F.derived(() => !F.get(v).trim() || d());
322
+ let e = F.derived(() => !F.get(v).trim() || u());
322
323
  r(s, {
323
324
  variant: "default",
324
325
  size: "sm",
@@ -333,7 +334,7 @@ function De(n, i) {
333
334
  children: (e, t) => {
334
335
  F.next();
335
336
  var n = F.text();
336
- F.template_effect(() => F.set_text(n, m().apply || "Apply")), F.append(e, n);
337
+ F.template_effect(() => F.set_text(n, f().apply || "Apply")), F.append(e, n);
337
338
  },
338
339
  $$slots: { default: !0 }
339
340
  });
@@ -341,21 +342,21 @@ function De(n, i) {
341
342
  F.reset(i);
342
343
  var c = F.sibling(i, 2), l = (e) => {
343
344
  var t = we(), n = F.child(t);
344
- _(n, { size: "16" });
345
+ h(n, { size: "16" });
345
346
  var r = F.sibling(n, 2), i = F.child(r, !0);
346
- F.reset(r), F.reset(t), F.template_effect(() => F.set_text(i, F.get(b))), F.transition(3, t, () => u, () => ({ duration: f.micro })), F.append(e, t);
347
+ F.reset(r), F.reset(t), F.template_effect(() => F.set_text(i, F.get(b))), F.transition(3, t, () => g, () => ({ duration: _.micro })), F.append(e, t);
347
348
  };
348
349
  F.if(c, (e) => {
349
350
  F.get(b) && e(l);
350
351
  }), F.reset(n), F.template_effect(() => {
351
- F.set_attribute(a, "aria-label", m().enterGiftCardCode || "Enter gift card code"), F.set_attribute(a, "placeholder", m().enterGiftCardCode || "Enter gift card code"), a.disabled = F.get(y) || d(), o = F.set_class(a, 1, `gift-input ${t.body ?? ""}`, "svelte-emw0hd", o, { "has-error": !!F.get(b) });
352
- }), F.delegated("keydown", a, ee), F.bind_value(a, () => F.get(v), (e) => F.set(v, e)), F.transition(3, n, () => u, () => ({ duration: f.fast })), F.append(e, n);
352
+ F.set_attribute(a, "aria-label", f().enterGiftCardCode || "Enter gift card code"), F.set_attribute(a, "placeholder", f().enterGiftCardCode || "Enter gift card code"), a.disabled = F.get(y) || u(), o = F.set_class(a, 1, `gift-input ${t.body ?? ""}`, "svelte-emw0hd", o, { "has-error": !!F.get(b) });
353
+ }), F.delegated("keydown", a, ee), F.bind_value(a, () => F.get(v), (e) => F.set(v, e)), F.transition(3, n, () => g, () => ({ duration: _.fast })), F.append(e, n);
353
354
  };
354
355
  F.if(P, (e) => {
355
356
  F.get(C) && e(de);
356
- }), F.reset(re), F.template_effect(() => {
357
- F.set_class(M, 1, `gift-card-toggle ${t.label ?? ""}`, "svelte-emw0hd"), M.disabled = d(), F.set_attribute(M, "aria-expanded", F.get(C)), F.set_text(ce, F.get(S).length > 0 ? m().addAnotherGiftCard || "Add another gift card" : m().haveAGiftCard || "Have a gift card?"), F.set_text(ue, F.get(C) ? "-" : "+");
358
- }), F.delegated("click", M, te), F.append(n, re), F.pop();
357
+ }), F.reset(M), F.template_effect(() => {
358
+ F.set_class(N, 1, `gift-card-toggle ${t.label ?? ""}`, "svelte-emw0hd"), N.disabled = u(), F.set_attribute(N, "aria-expanded", F.get(C)), F.set_text(ce, F.get(S).length > 0 ? f().addAnotherGiftCard || "Add another gift card" : f().haveAGiftCard || "Have a gift card?"), F.set_text(ue, F.get(C) ? "-" : "+");
359
+ }), F.delegated("click", N, te), F.append(n, M), F.pop();
359
360
  }
360
361
  F.delegate(["click", "keydown"]);
361
362
  //#endregion
@@ -363,7 +364,7 @@ F.delegate(["click", "keydown"]);
363
364
  var Oe = F.from_html("<div class=\"flex flex-col items-center text-center pt-6 px-4 pb-4\"><div aria-hidden=\"true\"><!></div> <h3 id=\"event-unavailable-title\"> </h3> <p id=\"event-unavailable-body\" class=\"type-body tone-secondary max-w-72\"> </p></div>"), ke = F.from_html("<!> <!>", 1);
364
365
  function Ae(e, n) {
365
366
  F.push(n, !0);
366
- let i = F.prop(n, "open", 15, !1), o = F.prop(n, "onBackToEvents", 3, () => {}), s = F.prop(n, "labels", 3, a), l = F.derived(() => n.reason === "canceled"), u = F.derived(() => F.get(l) ? s().eventCanceledTitle || "Event cancelled" : s().eventPostponedTitle || "Event postponed"), f = F.derived(() => F.get(l) ? s().eventCanceledBody || "This event was cancelled — you weren't charged" : s().eventPostponedBody || "Sales are paused while this show is rescheduled — you weren't charged"), p = F.derived(() => s().backToEvents || "Back to events");
367
+ let i = F.prop(n, "open", 15, !1), o = F.prop(n, "onBackToEvents", 3, () => {}), s = F.prop(n, "labels", 3, a), l = F.derived(() => n.reason === "canceled"), d = F.derived(() => F.get(l) ? s().eventCanceledTitle || "Event cancelled" : s().eventPostponedTitle || "Event postponed"), f = F.derived(() => F.get(l) ? s().eventCanceledBody || "This event was cancelled — you weren't charged" : s().eventPostponedBody || "Sales are paused while this show is rescheduled — you weren't charged"), p = F.derived(() => s().backToEvents || "Back to events");
367
368
  E(e, {
368
369
  size: "sm",
369
370
  role: "alertdialog",
@@ -384,7 +385,7 @@ function Ae(e, n) {
384
385
  O(a, {
385
386
  children: (e, n) => {
386
387
  var r = Oe(), i = F.child(r), a = F.child(i), o = (e) => {
387
- d(e, { size: "32" });
388
+ u(e, { size: "32" });
388
389
  }, s = (e) => {
389
390
  c(e, { size: "32" });
390
391
  };
@@ -395,7 +396,7 @@ function Ae(e, n) {
395
396
  F.reset(p);
396
397
  var h = F.sibling(p, 2), g = F.child(h, !0);
397
398
  F.reset(h), F.reset(r), F.template_effect(() => {
398
- F.set_class(i, 1, `w-16 h-16 rounded-full flex items-center justify-center mb-4 ${F.get(l) ? "bg-accent-danger/10 text-accent-danger" : "bg-accent-warning/10 text-accent-warning"}`), F.set_class(p, 1, `mb-2 ${t.heading ?? ""}`), F.set_text(m, F.get(u)), F.set_text(g, F.get(f));
399
+ F.set_class(i, 1, `w-16 h-16 rounded-full flex items-center justify-center mb-4 ${F.get(l) ? "bg-accent-danger/10 text-accent-danger" : "bg-accent-warning/10 text-accent-warning"}`), F.set_class(p, 1, `mb-2 ${t.heading ?? ""}`), F.set_text(m, F.get(d)), F.set_text(g, F.get(f));
399
400
  }), F.append(e, r);
400
401
  },
401
402
  $$slots: { default: !0 }
@@ -436,32 +437,32 @@ function Pe(e, t) {
436
437
  F.push(t, !0);
437
438
  let n = F.prop(t, "availableTickets", 23, () => []);
438
439
  F.prop(t, "value", 3, "");
439
- let r = F.prop(t, "venueId", 3, ""), s = F.prop(t, "organizationId", 3, ""), c = F.prop(t, "onNavigateBack", 3, void 0), l = F.prop(t, "initialError", 3, void 0), u = F.prop(t, "widgetId", 3, null), d = F.prop(t, "labels", 3, a), f = F.prop(t, "locale", 3, void 0), p = F.derived(() => (t.data || {}).id);
440
+ let r = F.prop(t, "venueId", 3, ""), s = F.prop(t, "organizationId", 3, ""), c = F.prop(t, "onNavigateBack", 3, void 0), l = F.prop(t, "initialError", 3, void 0), u = F.prop(t, "widgetId", 3, null), d = F.prop(t, "labels", 3, a), m = F.prop(t, "locale", 3, void 0), h = F.derived(() => (t.data || {}).id);
440
441
  F.derived(() => (t.data || {}).orgSlug);
441
- let g = F.derived(() => (t.data || {}).slug), _ = F.derived(() => (t.data || {}).event), x = F.derived(() => F.get(_) ? re(F.get(_)) : t.data && (t.data.id || F.get(p)) ? {
442
- id: t.data.id || F.get(p),
443
- eventID: t.data.id || F.get(p),
442
+ let g = F.derived(() => (t.data || {}).slug), _ = F.derived(() => (t.data || {}).event), x = F.derived(() => F.get(_) ? M(F.get(_)) : t.data && (t.data.id || F.get(h)) ? {
443
+ id: t.data.id || F.get(h),
444
+ eventID: t.data.id || F.get(h),
444
445
  venueID: t.data.venueID ?? t.data.venueId ?? null,
445
446
  venueId: t.data.venueId ?? t.data.venueID ?? null,
446
447
  eventTicketingType: 0,
447
448
  ticketType: 0,
448
449
  availableTickets: []
449
- } : null), E = F.state(""), D = F.state(F.proxy({})), O = F.state(F.proxy({})), k = F.state(F.proxy([])), A = F.state(""), ne = F.state(0), j = F.state(!1), I = F.state(!1), L = F.state(!1), R = F.state(null), z = F.state(""), B = F.state(void 0), V = F.state(null), H = F.state(""), me = F.state(!1), he = F.state(""), U = F.state(null), ge = F.derived(() => F.get(U) !== null), W = F.state(null), G = F.state(null), K = null, q = F.state(!1);
450
- function _e() {
450
+ } : null), E = F.state(""), D = F.state(F.proxy({})), O = F.state(F.proxy({})), k = F.state(F.proxy([])), A = F.state(""), ne = F.state(0), j = F.state(!1), I = F.state(!1), L = F.state(!1), R = F.state(null), z = F.state(""), B = F.state(void 0), V = F.state(null), H = F.state(""), U = F.state(!1), me = F.state(""), W = F.state(null), he = F.derived(() => F.get(W) !== null), G = F.state(null), K = F.state(null), q = null, J = F.state(!1);
451
+ function ge() {
451
452
  return {
452
- value: K?.total ?? null,
453
- currency: K?.currency || "USD"
453
+ value: q?.total ?? null,
454
+ currency: q?.currency || "USD"
454
455
  };
455
456
  }
456
457
  pe(async () => {
457
- if (F.set(E, P(oe) || P(de.CHECKOUT_CARTID), !0), !F.get(E)) {
458
- F.set(me, !0), F.set(he, d().noCheckoutSession || "No checkout session found. Please select tickets first", !0);
458
+ if (F.set(E, P(ae) || P(de.CHECKOUT_CARTID), !0), !F.get(E)) {
459
+ F.set(U, !0), F.set(me, d().noCheckoutSession || "No checkout session found. Please select tickets first", !0);
459
460
  return;
460
461
  }
461
- v(F.get(x)?.eventID || F.get(x)?.id || F.get(p), u(), r() || F.get(x)?.venueID || F.get(x)?.venueId || null);
462
- let e = F.get(x)?.eventID || F.get(x)?.id || F.get(p);
462
+ v(F.get(x)?.eventID || F.get(x)?.id || F.get(h), u(), r() || F.get(x)?.venueID || F.get(x)?.venueId || null);
463
+ let e = F.get(x)?.eventID || F.get(x)?.id || F.get(h);
463
464
  try {
464
- let t = ae(e);
465
+ let t = ie(e);
465
466
  F.set(D, t.quantities || {}, !0), F.set(O, t.donationAmounts || {}, !0), F.set(A, t.promocode || "", !0), F.set(ne, t.promoDiscountAmount || 0, !0), F.set(k, t.tickets || [], !0);
466
467
  } catch (e) {
467
468
  $.error("Error loading checkout state:", e), F.set(D, {}, !0), F.set(k, [], !0);
@@ -476,7 +477,7 @@ function Pe(e, t) {
476
477
  taxPercentage: 0
477
478
  };
478
479
  try {
479
- let e = await M(F.get(x)?.venueID || F.get(x)?.venueId || r());
480
+ let e = await N(F.get(x)?.venueID || F.get(x)?.venueId || r());
480
481
  t = {
481
482
  serviceFeeCents: Number(e?.serviceFeeCents == null ? 0 : e.serviceFeeCents),
482
483
  serviceFeePercentage: Number(e?.serviceFeePercentage ?? 0),
@@ -489,10 +490,10 @@ function Pe(e, t) {
489
490
  $.error("Error fetching venue data:", e);
490
491
  }
491
492
  let i = X(F.get(D), F.get(k), t);
492
- Object.keys(F.get(D)).length > 0 && await Y();
493
+ Object.keys(F.get(D)).length > 0 && await _e();
493
494
  let a = 900, s = "";
494
495
  if (F.get(E)) {
495
- let e = ie(F.get(E));
496
+ let e = re(F.get(E));
496
497
  if (e) {
497
498
  let t = Math.max(0, Math.floor((e - Date.now()) / 1e3));
498
499
  t > 0 && (a = t);
@@ -501,19 +502,19 @@ function Pe(e, t) {
501
502
  let e = await y(F.get(E));
502
503
  if (!e.error && e.expiresAt) {
503
504
  let t = o(e.expiresAt).getTime();
504
- a = Math.max(0, Math.floor((t - Date.now()) / 1e3)), s = e.expiresAt, se(F.get(E), t);
505
+ a = Math.max(0, Math.floor((t - Date.now()) / 1e3)), s = e.expiresAt, oe(F.get(E), t);
505
506
  }
506
507
  } catch {}
507
508
  }
508
- let c = P(`checkout-promo-discount-type-${e}`), f = [];
509
+ let c = P(`checkout-promo-discount-type-${e}`), p = [];
509
510
  try {
510
511
  let t = P(`checkout-promo-ticket-ids-${e}`), n = t ? JSON.parse(t) : [];
511
- Array.isArray(n) && (f = n);
512
+ Array.isArray(n) && (p = n);
512
513
  } catch {
513
- f = [];
514
+ p = [];
514
515
  }
515
- let h = m(i.filter((e) => ce(f, e.ticketId)).reduce((e, t) => e + (t.subtotal == null ? 0 : t.subtotal), 0)), g = N(h, F.get(ne), c);
516
- if (F.set(G, {
516
+ let m = f(i.filter((e) => ce(p, e.ticketId)).reduce((e, t) => e + (t.subtotal == null ? 0 : t.subtotal), 0)), g = se(m, F.get(ne), c);
517
+ if (F.set(K, {
517
518
  event: ve(F.get(x), t),
518
519
  lines: i,
519
520
  timerStart: a,
@@ -521,7 +522,7 @@ function Pe(e, t) {
521
522
  promoApplied: !!F.get(A),
522
523
  promoDiscount: g,
523
524
  forceExpired: !1,
524
- ...K ? { serverTotals: K } : {}
525
+ ...q ? { serverTotals: q } : {}
525
526
  }, !0), l()) {
526
527
  let e = Z(typeof l() == "object" ? l() : {
527
528
  code: "card_declined",
@@ -533,9 +534,9 @@ function Pe(e, t) {
533
534
  }, !0);
534
535
  }
535
536
  });
536
- let J = 0;
537
- async function Y() {
538
- let e = ++J;
537
+ let Y = 0;
538
+ async function _e() {
539
+ let e = ++Y;
539
540
  if (!F.get(E)) {
540
541
  $.error("Missing cartId!");
541
542
  return;
@@ -545,35 +546,35 @@ function Pe(e, t) {
545
546
  let n = Object.fromEntries(Object.entries(F.get(O)).filter(([, e]) => parseFloat(String(e)) > 0).map(([e, t]) => [parseInt(e, 10), parseFloat(String(t))]));
546
547
  if (F.get(A)) {
547
548
  let t = await ee(F.get(E), F.get(A));
548
- if (e !== J) return;
549
+ if (e !== Y) return;
549
550
  t.success ? F.set(H, "") : ($.error("Failed to apply promo code to cart:", t.error), F.set(H, (d().promoCodeNotApplied || "We couldn't apply promo code {code}. It isn't included in this total — go back to re-enter it, or continue at the full price").replace("{code}", F.get(A)), !0));
550
551
  }
551
- let r = await C(F.get(E), t, Object.keys(n).length > 0 ? n : void 0, void 0, f());
552
- if (e !== J) return;
552
+ let r = await C(F.get(E), t, Object.keys(n).length > 0 ? n : void 0, void 0, m());
553
+ if (e !== Y) return;
553
554
  if (!r) {
554
555
  F.set(V, { message: d().failedToCreatePaymentIntent || "Failed to create payment intent. Please try again" }, !0);
555
556
  return;
556
557
  }
557
- F.set(q, !1), K = T(r), F.get(G) && F.set(G, {
558
- ...F.get(G),
559
- serverTotals: K
558
+ F.set(J, !1), q = T(r), F.get(K) && F.set(K, {
559
+ ...F.get(K),
560
+ serverTotals: q
560
561
  }, !0);
561
562
  let i = r;
562
563
  if (i.requires_stripe === !1 || i.payment_type === "free") {
563
564
  F.set(z, "free");
564
565
  return;
565
566
  }
566
- F.set(q, K === null);
567
+ F.set(J, q === null);
567
568
  let a = r.stripe_publishable_key;
568
569
  if (!a) {
569
570
  $.error("No Stripe publishable key in payment intent response"), F.set(V, { message: d().paymentConfigError || "Payment configuration error. Please try again" }, !0);
570
571
  return;
571
572
  }
572
573
  let o = await xe(a);
573
- if (e !== J) return;
574
+ if (e !== Y) return;
574
575
  F.set(R, o, !0), r.client_secret ? F.set(z, r.client_secret, !0) : F.set(V, { message: d().failedToInitPayment || "Failed to initialize payment. Please try again" }, !0);
575
576
  } catch (t) {
576
- if ($.error("Failed to initialize Stripe payment:", t), e !== J) return;
577
+ if ($.error("Failed to initialize Stripe payment:", t), e !== Y) return;
577
578
  F.set(V, { message: t.message || d().failedToInitPayment || "Failed to initialize payment. Please try again" }, !0);
578
579
  }
579
580
  }
@@ -606,7 +607,7 @@ function Pe(e, t) {
606
607
  id: e.ID || e.id,
607
608
  name: e.name || "",
608
609
  description: e.description || "",
609
- price: h(e.price),
610
+ price: p(e.price),
610
611
  fee: 0,
611
612
  quantityAvailable: e.quantityAvailable || 0,
612
613
  quantityTotal: e.quantityTotal || 0,
@@ -650,13 +651,13 @@ function Pe(e, t) {
650
651
  quantity: a,
651
652
  unitPrice: c,
652
653
  fee: l,
653
- subtotal: m(c * a),
654
+ subtotal: f(c * a),
654
655
  isDonation: o
655
656
  });
656
657
  }
657
658
  return r;
658
659
  }
659
- let ye = F.derived(() => Object.values(F.get(O)).some((e) => (Number(e) || 0) > 0)), be = F.derived(() => !F.get(ye) && (!F.get(G) || F.get(G).lines.every((e) => e.unitPrice === 0)));
660
+ let ye = F.derived(() => Object.values(F.get(O)).some((e) => (Number(e) || 0) > 0)), be = F.derived(() => !F.get(ye) && (!F.get(K) || F.get(K).lines.every((e) => e.unitPrice === 0)));
660
661
  async function Q(e) {
661
662
  if (!F.get(j)) {
662
663
  F.set(j, !0), F.set(V, null);
@@ -665,11 +666,11 @@ function Pe(e, t) {
665
666
  F.set(V, { message: d().paymentReinitializing || "Updating your total. Please wait a moment and try again" }, !0);
666
667
  return;
667
668
  }
668
- if (F.get(W) && !F.get(W).requiresStripe) {
669
+ if (F.get(G) && !F.get(G).requiresStripe) {
669
670
  await Se(e);
670
671
  return;
671
672
  }
672
- if (F.get(be) || F.get(z) === "free" || K?.total === 0) {
673
+ if (F.get(be) || F.get(z) === "free" || q?.total === 0) {
673
674
  await Ce(e);
674
675
  return;
675
676
  }
@@ -720,9 +721,9 @@ function Pe(e, t) {
720
721
  paymentMethod: "credit-card",
721
722
  mailingList: e.keepMeUpdated,
722
723
  saleType: "online"
723
- }, o = await S(F.get(E), a, f());
724
+ }, o = await S(F.get(E), a, m());
724
725
  if (o?.eventCanceled || o?.eventPostponed) {
725
- F.set(U, o.eventCanceled ? "canceled" : "postponed", !0), F.set(V, null);
726
+ F.set(W, o.eventCanceled ? "canceled" : "postponed", !0), F.set(V, null);
726
727
  return;
727
728
  }
728
729
  if (o?.status === "Payment succeeded") {
@@ -733,7 +734,7 @@ function Pe(e, t) {
733
734
  event: F.get(x) || null,
734
735
  venueId: r() || F.get(x)?.venueId || null,
735
736
  organizationId: s() || F.get(x)?.organizationId || null,
736
- ..._e()
737
+ ...ge()
737
738
  };
738
739
  t.onNavigateToSuccess && t.onNavigateToSuccess(n);
739
740
  } else o?.status === "Payment amount does not match the total price" ? F.set(V, { message: d().paymentAmountMismatch || "Payment amount mismatch. Please refresh and try again" }, !0) : F.set(V, { message: d().paymentValidationFailed || "Payment validation failed. Please try again" }, !0);
@@ -758,7 +759,7 @@ function Pe(e, t) {
758
759
  phoneNumber: e.phone || null,
759
760
  questionAnswer: e.questionAnswer,
760
761
  mailingList: e.keepMeUpdated
761
- }, f());
762
+ }, m());
762
763
  if (n?.success) {
763
764
  fe(n.orderId || F.get(E), e.email);
764
765
  let i = {
@@ -768,7 +769,7 @@ function Pe(e, t) {
768
769
  venueId: r() || F.get(x)?.venueId || null,
769
770
  organizationId: s() || F.get(x)?.organizationId || null,
770
771
  paymentType: "gift_card_only",
771
- ..._e()
772
+ ...ge()
772
773
  };
773
774
  t.onNavigateToSuccess && t.onNavigateToSuccess(i);
774
775
  } else F.set(V, { message: n?.error || d().failedToCompleteOrder || "Failed to complete order. Please try again" }, !0);
@@ -792,7 +793,7 @@ function Pe(e, t) {
792
793
  phone: e.phone,
793
794
  questionAnswer: e.questionAnswer,
794
795
  mailingList: e.keepMeUpdated
795
- }, f());
796
+ }, m());
796
797
  if (a?.requires_stripe !== !1 && a?.payment_type !== "free" || a?.order_finalized === !1) {
797
798
  F.set(V, { message: d().failedToCompleteOrder || "Failed to complete order. Please try again" }, !0);
798
799
  return;
@@ -805,7 +806,7 @@ function Pe(e, t) {
805
806
  venueId: r() || F.get(x)?.venueId || null,
806
807
  organizationId: s() || F.get(x)?.organizationId || null,
807
808
  paymentType: "free",
808
- ..._e()
809
+ ...ge()
809
810
  };
810
811
  t.onNavigateToSuccess && t.onNavigateToSuccess(o);
811
812
  } catch (e) {
@@ -820,27 +821,27 @@ function Pe(e, t) {
820
821
  }
821
822
  }
822
823
  async function we(e) {
823
- if (F.set(W, e, !0), F.get(G) && K && F.set(G, {
824
- ...F.get(G),
825
- serverTotals: w(K, e)
826
- }, !0), !e.requiresStripe) J++, F.set(B, void 0), F.set(R, null), F.set(z, "");
824
+ if (F.set(G, e, !0), F.get(K) && q && F.set(K, {
825
+ ...F.get(K),
826
+ serverTotals: w(q, e)
827
+ }, !0), !e.requiresStripe) Y++, F.set(B, void 0), F.set(R, null), F.set(z, "");
827
828
  else if (F.get(E) && Object.keys(F.get(D)).length > 0) {
828
829
  F.set(L, !0);
829
830
  try {
830
- await Y();
831
+ await _e();
831
832
  } finally {
832
833
  F.set(L, !1);
833
834
  }
834
835
  }
835
836
  }
836
837
  async function Te() {
837
- if (F.set(W, null), F.get(G) && K && F.set(G, {
838
- ...F.get(G),
839
- serverTotals: K
838
+ if (F.set(G, null), F.get(K) && q && F.set(K, {
839
+ ...F.get(K),
840
+ serverTotals: q
840
841
  }, !0), F.get(E) && Object.keys(F.get(D)).length > 0) {
841
842
  F.set(L, !0);
842
843
  try {
843
- await Y();
844
+ await _e();
844
845
  } finally {
845
846
  F.set(L, !1);
846
847
  }
@@ -853,7 +854,7 @@ function Pe(e, t) {
853
854
  c() ? c()() : window.history.back();
854
855
  }
855
856
  function ke() {
856
- F.set(U, null), Ee();
857
+ F.set(W, null), Ee();
857
858
  }
858
859
  async function Pe() {
859
860
  if (!F.get(E)) return null;
@@ -871,7 +872,7 @@ function Pe(e, t) {
871
872
  {
872
873
  let t = (e) => {
873
874
  {
874
- let t = F.derived(() => F.get(j) || F.get(L)), n = F.derived(() => F.get(G)?.serverTotals?.total ?? 0);
875
+ let t = F.derived(() => F.get(j) || F.get(L)), n = F.derived(() => F.get(K)?.serverTotals?.total ?? 0);
875
876
  De(e, {
876
877
  get cartId() {
877
878
  return F.get(E);
@@ -892,7 +893,7 @@ function Pe(e, t) {
892
893
  }, n = F.derived(() => F.get(V) ?? (F.get(H) ? { message: F.get(H) } : null));
893
894
  ue(e, {
894
895
  get config() {
895
- return F.get(G);
896
+ return F.get(K);
896
897
  },
897
898
  onPlaceOrder: Q,
898
899
  onBack: Ee,
@@ -905,7 +906,7 @@ function Pe(e, t) {
905
906
  return F.get(z);
906
907
  },
907
908
  get serverTotalsUnavailable() {
908
- return F.get(q);
909
+ return F.get(J);
909
910
  },
910
911
  get paymentError() {
911
912
  return F.get(n);
@@ -914,7 +915,7 @@ function Pe(e, t) {
914
915
  return d();
915
916
  },
916
917
  get locale() {
917
- return f();
918
+ return m();
918
919
  },
919
920
  get elements() {
920
921
  return F.get(B);
@@ -934,19 +935,19 @@ function Pe(e, t) {
934
935
  }
935
936
  }, Re = (e) => {
936
937
  var t = je(), n = F.child(t), r = F.child(n, !0);
937
- F.reset(n), F.reset(t), F.template_effect(() => F.set_text(r, F.get(he))), F.append(e, t);
938
+ F.reset(n), F.reset(t), F.template_effect(() => F.set_text(r, F.get(me))), F.append(e, t);
938
939
  }, ze = (e) => {
939
940
  var t = Me(), n = F.child(t), r = F.child(n, !0);
940
941
  F.reset(n), F.reset(t), F.template_effect(() => F.set_text(r, d().loadingSecurePaymentForm || "Loading secure payment form...")), F.append(e, t);
941
942
  };
942
943
  F.if(Ie, (e) => {
943
- F.get(G) ? e(Le) : F.get(me) ? e(Re, 1) : e(ze, -1);
944
+ F.get(K) ? e(Le) : F.get(U) ? e(Re, 1) : e(ze, -1);
944
945
  });
945
946
  var Be = F.sibling(Ie, 2), Ve = (e) => {
946
947
  Ae(e, {
947
948
  open: !0,
948
949
  get reason() {
949
- return F.get(U);
950
+ return F.get(W);
950
951
  },
951
952
  onBackToEvents: ke,
952
953
  get labels() {
@@ -955,7 +956,7 @@ function Pe(e, t) {
955
956
  });
956
957
  };
957
958
  F.if(Be, (e) => {
958
- F.get(ge) && e(Ve);
959
+ F.get(he) && e(Ve);
959
960
  }), F.append(e, Fe), F.pop();
960
961
  }
961
962
  //#endregion