@getmicdrop/venue-calendar 4.0.7 → 4.0.9

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 (52) hide show
  1. package/dist/{AirbnbSplitMain-QRE-W2ZL.js → AirbnbSplitMain-BF9Md8qq.js} +4 -4
  2. package/dist/{AirbnbSplitMain-QRE-W2ZL.js.map → AirbnbSplitMain-BF9Md8qq.js.map} +1 -1
  3. package/dist/{CarouselView.legacy-DtUAYloL.js → CarouselView.legacy-BFGIAx7l.js} +3 -3
  4. package/dist/{CarouselView.legacy-DtUAYloL.js.map → CarouselView.legacy-BFGIAx7l.js.map} +1 -1
  5. package/dist/{CartView-Be1-gajf.js → CartView-C_4nNeRc.js} +220 -221
  6. package/dist/CartView-C_4nNeRc.js.map +1 -0
  7. package/dist/{Checkout-DET04TDs.js → Checkout-CpPb5Ifu.js} +267 -250
  8. package/dist/Checkout-CpPb5Ifu.js.map +1 -0
  9. package/dist/{Checkout.legacy-Dg8qlXGF.js → Checkout.legacy-C9yyEf3S.js} +4 -4
  10. package/dist/{Checkout.legacy-Dg8qlXGF.js.map → Checkout.legacy-C9yyEf3S.js.map} +1 -1
  11. package/dist/{CheckoutMain-CddDRMZ6.js → CheckoutMain-BRBejJSN.js} +530 -511
  12. package/dist/{CheckoutMain-CddDRMZ6.js.map → CheckoutMain-BRBejJSN.js.map} +1 -1
  13. package/dist/{CheckoutTimer-12XARKCb.js → CheckoutTimer-DJnOIPo_.js} +2 -2
  14. package/dist/{CheckoutTimer-12XARKCb.js.map → CheckoutTimer-DJnOIPo_.js.map} +1 -1
  15. package/dist/{CollectionView-DsNE9b9o.js → CollectionView-CYrzlsQM.js} +5 -5
  16. package/dist/{CollectionView-DsNE9b9o.js.map → CollectionView-CYrzlsQM.js.map} +1 -1
  17. package/dist/{CollectionView.legacy-C0EfF6bO.js → CollectionView.legacy-Dps9inGG.js} +3 -3
  18. package/dist/{CollectionView.legacy-C0EfF6bO.js.map → CollectionView.legacy-Dps9inGG.js.map} +1 -1
  19. package/dist/{EventDetailsView-CKpXTip_.js → EventDetailsView-DBbu150l.js} +2 -2
  20. package/dist/{EventDetailsView-CKpXTip_.js.map → EventDetailsView-DBbu150l.js.map} +1 -1
  21. package/dist/{FeaturedView.legacy-CKANudQ1.js → FeaturedView.legacy-BrtaOt9e.js} +2 -2
  22. package/dist/{FeaturedView.legacy-CKANudQ1.js.map → FeaturedView.legacy-BrtaOt9e.js.map} +1 -1
  23. package/dist/{GalleryCard-X_ux5Ig_.js → GalleryCard-jocj0pr5.js} +2 -2
  24. package/dist/{GalleryCard-X_ux5Ig_.js.map → GalleryCard-jocj0pr5.js.map} +1 -1
  25. package/dist/{GalleryView.legacy-DiJEEg4a.js → GalleryView.legacy-HgqtBg4h.js} +3 -3
  26. package/dist/{GalleryView.legacy-DiJEEg4a.js.map → GalleryView.legacy-HgqtBg4h.js.map} +1 -1
  27. package/dist/{GroupedListView.legacy-BlY6IUF7.js → GroupedListView.legacy-DOE0hObl.js} +2 -2
  28. package/dist/{GroupedListView.legacy-BlY6IUF7.js.map → GroupedListView.legacy-DOE0hObl.js.map} +1 -1
  29. package/dist/{SeriesPage-AHd2GQvo.js → SeriesPage-CpmkUQkM.js} +5 -5
  30. package/dist/{SeriesPage-AHd2GQvo.js.map → SeriesPage-CpmkUQkM.js.map} +1 -1
  31. package/dist/{SeriesPage.legacy-DRoCeh7t.js → SeriesPage.legacy-DdBGxKik.js} +2 -2
  32. package/dist/{SeriesPage.legacy-DRoCeh7t.js.map → SeriesPage.legacy-DdBGxKik.js.map} +1 -1
  33. package/dist/{Success-BH-b9NQ-.js → Success-CFFLbHnY.js} +5 -5
  34. package/dist/{Success-BH-b9NQ-.js.map → Success-CFFLbHnY.js.map} +1 -1
  35. package/dist/{Success.legacy-BuElevkX.js → Success.legacy-CbRz2zxG.js} +2 -2
  36. package/dist/{Success.legacy-BuElevkX.js.map → Success.legacy-CbRz2zxG.js.map} +1 -1
  37. package/dist/{VenueCalendar-D3g_j17B.js → VenueCalendar-DUIJZSTv.js} +14 -14
  38. package/dist/{VenueCalendar-D3g_j17B.js.map → VenueCalendar-DUIJZSTv.js.map} +1 -1
  39. package/dist/{ViewTicketsEmbed-BUIrA7s5.js → ViewTicketsEmbed-BtskVW7X.js} +2 -2
  40. package/dist/{ViewTicketsEmbed-BUIrA7s5.js.map → ViewTicketsEmbed-BtskVW7X.js.map} +1 -1
  41. package/dist/{labels-CJIz5Cek.js → labels-yD6EDNLO.js} +2 -2
  42. package/dist/{labels-CJIz5Cek.js.map → labels-yD6EDNLO.js.map} +1 -1
  43. package/dist/{transform-CXAZf_M1.js → transform-D00wPQAM.js} +2 -2
  44. package/dist/{transform-CXAZf_M1.js.map → transform-D00wPQAM.js.map} +1 -1
  45. package/dist/venue-calendar.es.js +1 -1
  46. package/dist/venue-calendar.iife.js +29 -29
  47. package/dist/venue-calendar.iife.js.map +1 -1
  48. package/dist/venue-calendar.umd.js +29 -29
  49. package/dist/venue-calendar.umd.js.map +1 -1
  50. package/package.json +1 -1
  51. package/dist/CartView-Be1-gajf.js.map +0 -1
  52. package/dist/Checkout-DET04TDs.js.map +0 -1
@@ -1,11 +1,11 @@
1
1
  import "svelte/internal/disclose-version";
2
- import { k as ue, f as me, G as we, r as Ce, h as ye, l as Pe, m as Ie, n as Te, t as ke, o as Ee, p as Fe, g as Ae, q as Re, s as De, u as fe, v as ge, w as je, x as ze, y as Ge } from "./VenueCalendar-D3g_j17B.js";
2
+ import { k as me, f as fe, G as Ce, r as Pe, h as he, l as Ie, m as Te, n as ke, t as Ee, o as Fe, p as Ae, g as De, q as Re, s as je, u as ge, v as pe, w as ze, x as Ge, y as Le } from "./VenueCalendar-DUIJZSTv.js";
3
3
  import * as e from "svelte/internal/client";
4
4
  import "svelte/internal/flags/legacy";
5
- import { slide as de } from "svelte/transition";
5
+ import { slide as ce } from "svelte/transition";
6
6
  import "svelte/easing";
7
- import { onMount as Le } from "svelte";
8
- import { C as Oe } from "./CheckoutMain-CddDRMZ6.js";
7
+ import { onMount as Oe } from "svelte";
8
+ import { C as Ne } from "./CheckoutMain-BRBejJSN.js";
9
9
  function le(u) {
10
10
  "@babel/helpers - typeof";
11
11
  return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? le = function(t) {
@@ -14,42 +14,42 @@ function le(u) {
14
14
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
15
15
  }, le(u);
16
16
  }
17
- var he = "clover", Ne = function(t) {
17
+ var _e = "clover", qe = function(t) {
18
18
  return t === 3 ? "v3" : t;
19
- }, _e = "https://js.stripe.com", qe = "".concat(_e, "/").concat(he, "/stripe.js"), Me = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, Ue = /^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/;
20
- var Ve = function(t) {
21
- return Me.test(t) || Ue.test(t);
22
- }, We = function() {
23
- for (var t = document.querySelectorAll('script[src^="'.concat(_e, '"]')), s = 0; s < t.length; s++) {
19
+ }, be = "https://js.stripe.com", Me = "".concat(be, "/").concat(_e, "/stripe.js"), Ue = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, Ve = /^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/;
20
+ var We = function(t) {
21
+ return Ue.test(t) || Ve.test(t);
22
+ }, Be = function() {
23
+ for (var t = document.querySelectorAll('script[src^="'.concat(be, '"]')), s = 0; s < t.length; s++) {
24
24
  var d = t[s];
25
- if (Ve(d.src))
25
+ if (We(d.src))
26
26
  return d;
27
27
  }
28
28
  return null;
29
- }, pe = function(t) {
29
+ }, ve = function(t) {
30
30
  var s = "", d = document.createElement("script");
31
- d.src = "".concat(qe).concat(s);
31
+ d.src = "".concat(Me).concat(s);
32
32
  var o = document.head || document.body;
33
33
  if (!o)
34
34
  throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");
35
35
  return o.appendChild(d), d;
36
- }, Be = function(t, s) {
36
+ }, Ye = function(t, s) {
37
37
  !t || !t._registerWrapper || t._registerWrapper({
38
38
  name: "stripe-js",
39
39
  version: "8.8.0",
40
40
  startTime: s
41
41
  });
42
- }, $ = null, se = null, oe = null, Ye = function(t) {
42
+ }, $ = null, se = null, oe = null, Je = function(t) {
43
43
  return function(s) {
44
44
  t(new Error("Failed to load Stripe.js", {
45
45
  cause: s
46
46
  }));
47
47
  };
48
- }, Je = function(t, s) {
48
+ }, Ke = function(t, s) {
49
49
  return function() {
50
50
  window.Stripe ? t(window.Stripe) : s(new Error("Stripe.js not available"));
51
51
  };
52
- }, Ke = function(t) {
52
+ }, Xe = function(t) {
53
53
  return $ !== null ? $ : ($ = new Promise(function(s, d) {
54
54
  if (typeof window > "u" || typeof document > "u") {
55
55
  s(null);
@@ -60,16 +60,16 @@ var Ve = function(t) {
60
60
  return;
61
61
  }
62
62
  try {
63
- var o = We();
63
+ var o = Be();
64
64
  if (!(o && t)) {
65
65
  if (!o)
66
- o = pe(t);
66
+ o = ve(t);
67
67
  else if (o && oe !== null && se !== null) {
68
68
  var g;
69
- o.removeEventListener("load", oe), o.removeEventListener("error", se), (g = o.parentNode) === null || g === void 0 || g.removeChild(o), o = pe(t);
69
+ o.removeEventListener("load", oe), o.removeEventListener("error", se), (g = o.parentNode) === null || g === void 0 || g.removeChild(o), o = ve(t);
70
70
  }
71
71
  }
72
- oe = Je(s, d), se = Ye(d), o.addEventListener("load", oe), o.addEventListener("error", se);
72
+ oe = Ke(s, d), se = Je(d), o.addEventListener("load", oe), o.addEventListener("error", se);
73
73
  } catch (x) {
74
74
  d(x);
75
75
  return;
@@ -77,33 +77,33 @@ var Ve = function(t) {
77
77
  }), $.catch(function(s) {
78
78
  return $ = null, Promise.reject(s);
79
79
  }));
80
- }, Xe = function(t, s, d) {
80
+ }, He = function(t, s, d) {
81
81
  if (t === null)
82
82
  return null;
83
83
  var o = s[0];
84
84
  if (typeof o != "string")
85
85
  throw new Error("Expected publishable key to be of type string, got type ".concat(le(o), " instead."));
86
- var g = o.match(/^pk_test/), x = Ne(t.version), y = he;
86
+ var g = o.match(/^pk_test/), x = qe(t.version), y = _e;
87
87
  g && x !== y && console.warn("Stripe.js@".concat(x, " was loaded on the page, but @stripe/stripe-js@").concat("8.8.0", " expected Stripe.js@").concat(y, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
88
88
  var S = t.apply(void 0, s);
89
- return Be(S, d), S;
90
- }, ee, be = !1, xe = function() {
91
- return ee || (ee = Ke(null).catch(function(t) {
89
+ return Ye(S, d), S;
90
+ }, ee, xe = !1, Se = function() {
91
+ return ee || (ee = Xe(null).catch(function(t) {
92
92
  return ee = null, Promise.reject(t);
93
93
  }), ee);
94
94
  };
95
95
  Promise.resolve().then(function() {
96
- return xe();
96
+ return Se();
97
97
  }).catch(function(u) {
98
- be || console.warn(u);
98
+ xe || console.warn(u);
99
99
  });
100
- var He = function() {
100
+ var Ze = function() {
101
101
  for (var t = arguments.length, s = new Array(t), d = 0; d < t; d++)
102
102
  s[d] = arguments[d];
103
- be = !0;
103
+ xe = !0;
104
104
  var o = Date.now();
105
- return xe().then(function(g) {
106
- return Xe(g, s, o);
105
+ return Se().then(function(g) {
106
+ return He(g, s, o);
107
107
  });
108
108
  };
109
109
  function te(u) {
@@ -174,9 +174,9 @@ function te(u) {
174
174
  retryable: !0
175
175
  };
176
176
  }
177
- const ve = ye("GiftCardInput");
178
- var Ze = e.from_html('<span class="gc-spinner gc-spinner-sm svelte-emw0hd"></span>'), Qe = e.from_html('<div class="full-coverage-badge svelte-emw0hd"><!> <span> </span></div>'), $e = e.from_html('<div class="flex justify-between items-center text-sm mt-1.5"><span class="text-text-secondary"> </span> <span class="font-medium text-text-primary"> </span></div>'), et = e.from_html('<div class="applied-card 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="text-xs text-status-success-text font-medium"> </span> <span class="text-sm font-mono text-text-primary"> </span></div> <button class="remove-btn svelte-emw0hd"><!></button></div> <div class="applied-details svelte-emw0hd"><div class="flex justify-between items-center text-sm"><span class="text-text-secondary"> </span> <span class="font-medium text-accent-success"> </span></div> <!></div></div>'), tt = e.from_html('<span class="gc-spinner svelte-emw0hd"></span>'), rt = e.from_html('<div class="flex items-center gap-1.5 mt-2 text-sm text-accent-danger"><!> <span> </span></div>'), at = e.from_html('<div class="input-section svelte-emw0hd"><div class="flex gap-2"><input type="text" autocomplete="off" autocapitalize="characters"/> <button class="apply-btn svelte-emw0hd"><!></button></div> <!></div>'), nt = e.from_html('<button class="gift-card-toggle svelte-emw0hd"><!> <span> </span> <span class="toggle-indicator svelte-emw0hd"> </span></button> <!>', 1), it = e.from_html('<div class="mb-4"><!></div>');
179
- function st(u, t) {
177
+ const ye = he("GiftCardInput");
178
+ var Qe = e.from_html('<span class="gc-spinner gc-spinner-sm svelte-emw0hd"></span>'), $e = e.from_html('<div class="full-coverage-badge svelte-emw0hd"><!> <span> </span></div>'), et = e.from_html('<div class="flex justify-between items-center text-sm mt-1.5"><span class="text-text-secondary"> </span> <span class="font-medium text-text-primary"> </span></div>'), tt = e.from_html('<div class="applied-card 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="text-xs text-status-success-text font-medium"> </span> <span class="text-sm font-mono text-text-primary"> </span></div> <button class="remove-btn svelte-emw0hd"><!></button></div> <div class="applied-details svelte-emw0hd"><div class="flex justify-between items-center text-sm"><span class="text-text-secondary"> </span> <span class="font-medium text-accent-success"> </span></div> <!></div></div>'), rt = e.from_html('<span class="gc-spinner svelte-emw0hd"></span>'), at = e.from_html('<div class="flex items-center gap-1.5 mt-2 text-sm text-accent-danger"><!> <span> </span></div>'), nt = e.from_html('<div class="input-section svelte-emw0hd"><div class="flex gap-2"><input type="text" autocomplete="off" autocapitalize="characters"/> <button class="apply-btn svelte-emw0hd"><!></button></div> <!></div>'), it = e.from_html('<button class="gift-card-toggle svelte-emw0hd"><!> <span> </span> <span class="toggle-indicator svelte-emw0hd"> </span></button> <!>', 1), st = e.from_html('<div class="mb-4"><!></div>');
179
+ function ot(u, t) {
180
180
  e.push(t, !0);
181
181
  let s = e.prop(t, "onApplied", 3, () => {
182
182
  }), d = e.prop(t, "onRemoved", 3, () => {
@@ -185,7 +185,7 @@ function st(u, t) {
185
185
  if (!(!e.get(x).trim() || e.get(y) || !t.cartId)) {
186
186
  e.set(y, !0), e.set(S, "");
187
187
  try {
188
- const c = await Ie(t.cartId, e.get(x).trim().toUpperCase());
188
+ const c = await Te(t.cartId, e.get(x).trim().toUpperCase());
189
189
  c.valid ? (e.set(
190
190
  m,
191
191
  {
@@ -200,7 +200,7 @@ function st(u, t) {
200
200
  !0
201
201
  ), e.set(x, ""), e.set(k, !1), s()(e.get(m))) : e.set(S, c.error || g().invalidGiftCardCode || "Invalid gift card code", !0);
202
202
  } catch (c) {
203
- ve.error("Error applying gift card:", c), e.set(S, g().failedToApplyGiftCard || "Failed to apply gift card. Please try again.", !0);
203
+ ye.error("Error applying gift card:", c), e.set(S, g().failedToApplyGiftCard || "Failed to apply gift card. Please try again.", !0);
204
204
  }
205
205
  e.set(y, !1);
206
206
  }
@@ -209,7 +209,7 @@ function st(u, t) {
209
209
  if (!(e.get(y) || !t.cartId)) {
210
210
  e.set(y, !0), e.set(S, "");
211
211
  try {
212
- const c = await Ce(t.cartId);
212
+ const c = await Pe(t.cartId);
213
213
  if (c.error)
214
214
  e.set(S, c.error, !0);
215
215
  else {
@@ -217,7 +217,7 @@ function st(u, t) {
217
217
  e.set(m, null), e.set(k, !1), d()(b);
218
218
  }
219
219
  } catch (c) {
220
- ve.error("Error removing gift card:", c), e.set(S, g().failedToRemoveGiftCard || "Failed to remove gift card. Please try again.", !0);
220
+ ye.error("Error removing gift card:", c), e.set(S, g().failedToRemoveGiftCard || "Failed to remove gift card. Please try again.", !0);
221
221
  }
222
222
  e.set(y, !1);
223
223
  }
@@ -228,108 +228,108 @@ function st(u, t) {
228
228
  function _() {
229
229
  e.get(m) || (e.set(k, !e.get(k)), e.get(k) || (e.set(x, ""), e.set(S, "")));
230
230
  }
231
- var A = it(), ne = e.child(A);
231
+ var D = st(), ne = e.child(D);
232
232
  {
233
- var q = (c) => {
234
- var b = et(), C = e.child(b), D = e.child(C), E = e.child(D);
235
- ue(E, { size: 16 }), e.reset(D);
236
- var f = e.sibling(D, 2), L = e.child(f), B = e.child(L, !0);
237
- e.reset(L);
238
- var O = e.sibling(L, 2), N = e.child(O, !0);
239
- e.reset(O), e.reset(f);
240
- var F = e.sibling(f, 2), M = e.child(F);
233
+ var M = (c) => {
234
+ var b = tt(), C = e.child(b), j = e.child(C), F = e.child(j);
235
+ me(F, { size: 16 }), e.reset(j);
236
+ var f = e.sibling(j, 2), O = e.child(f), B = e.child(O, !0);
237
+ e.reset(O);
238
+ var N = e.sibling(O, 2), A = e.child(N, !0);
239
+ e.reset(N), e.reset(f);
240
+ var P = e.sibling(f, 2), q = e.child(P);
241
241
  {
242
- var U = (v) => {
243
- var I = Ze();
244
- e.append(v, I);
245
- }, R = (v) => {
246
- Pe(v, { size: 16 });
242
+ var U = (p) => {
243
+ var I = Qe();
244
+ e.append(p, I);
245
+ }, R = (p) => {
246
+ Ie(p, { size: 16 });
247
247
  };
248
- e.if(M, (v) => {
249
- e.get(y) ? v(U) : v(R, !1);
248
+ e.if(q, (p) => {
249
+ e.get(y) ? p(U) : p(R, !1);
250
250
  });
251
251
  }
252
- e.reset(F), e.reset(C);
253
- var V = e.sibling(C, 2), j = e.child(V), W = e.child(j), X = e.child(W, !0);
252
+ e.reset(P), e.reset(C);
253
+ var V = e.sibling(C, 2), z = e.child(V), W = e.child(z), X = e.child(W, !0);
254
254
  e.reset(W);
255
255
  var Y = e.sibling(W, 2), H = e.child(Y);
256
- e.reset(Y), e.reset(j);
257
- var Z = e.sibling(j, 2);
256
+ e.reset(Y), e.reset(z);
257
+ var Z = e.sibling(z, 2);
258
258
  {
259
- var w = (v) => {
260
- var I = Qe(), z = e.child(I);
261
- ue(z, { size: 14 });
262
- var J = e.sibling(z, 2), K = e.child(J, !0);
263
- e.reset(J), e.reset(I), e.template_effect(() => e.set_text(K, g().fullyCoveredByGiftCard || "Fully covered by gift card")), e.append(v, I);
264
- }, P = (v) => {
265
- var I = $e(), z = e.child(I), J = e.child(z, !0);
266
- e.reset(z);
267
- var K = e.sibling(z, 2), r = e.child(K, !0);
259
+ var w = (p) => {
260
+ var I = $e(), G = e.child(I);
261
+ me(G, { size: 14 });
262
+ var J = e.sibling(G, 2), K = e.child(J, !0);
263
+ e.reset(J), e.reset(I), e.template_effect(() => e.set_text(K, g().fullyCoveredByGiftCard || "Fully covered by gift card")), e.append(p, I);
264
+ }, E = (p) => {
265
+ var I = et(), G = e.child(I), J = e.child(G, !0);
266
+ e.reset(G);
267
+ var K = e.sibling(G, 2), de = e.child(K, !0);
268
268
  e.reset(K), e.reset(I), e.template_effect(
269
- (a) => {
270
- e.set_text(J, g().remainingToPay || "Remaining to pay"), e.set_text(r, a);
269
+ (r) => {
270
+ e.set_text(J, g().remainingToPay || "Remaining to pay"), e.set_text(de, r);
271
271
  },
272
- [() => me(e.get(m).stripeAmount)]
273
- ), e.append(v, I);
272
+ [() => fe(e.get(m).stripeAmount)]
273
+ ), e.append(p, I);
274
274
  };
275
- e.if(Z, (v) => {
276
- e.get(m).paymentType === "gift_card_only" ? v(w) : e.get(m).paymentType === "split" && v(P, 1);
275
+ e.if(Z, (p) => {
276
+ e.get(m).paymentType === "gift_card_only" ? p(w) : e.get(m).paymentType === "split" && p(E, 1);
277
277
  });
278
278
  }
279
279
  e.reset(V), e.reset(b), e.template_effect(
280
- (v) => {
281
- e.set_text(B, g().giftCardApplied || "Gift card applied"), e.set_text(N, e.get(m).code), F.disabled = e.get(y) || o(), e.set_attribute(F, "aria-label", g().removeGiftCard || "Remove gift card"), e.set_text(X, g().appliedToOrder || "Applied to order"), e.set_text(H, `-${v ?? ""}`);
280
+ (p) => {
281
+ e.set_text(B, g().giftCardApplied || "Gift card applied"), e.set_text(A, e.get(m).code), P.disabled = e.get(y) || o(), e.set_attribute(P, "aria-label", g().removeGiftCard || "Remove gift card"), e.set_text(X, g().appliedToOrder || "Applied to order"), e.set_text(H, `-${p ?? ""}`);
282
282
  },
283
- [() => me(e.get(m).giftCardAmount)]
284
- ), e.delegated("click", F, ae), e.transition(3, b, () => de, () => ({ duration: 200 })), e.append(c, b);
283
+ [() => fe(e.get(m).giftCardAmount)]
284
+ ), e.delegated("click", P, ae), e.transition(3, b, () => ce, () => ({ duration: 200 })), e.append(c, b);
285
285
  }, ie = (c) => {
286
- var b = nt(), C = e.first_child(b), D = e.child(C);
287
- we(D, { size: 18, class: "gift-icon" });
288
- var E = e.sibling(D, 2), f = e.child(E, !0);
289
- e.reset(E);
290
- var L = e.sibling(E, 2), B = e.child(L, !0);
291
- e.reset(L), e.reset(C);
292
- var O = e.sibling(C, 2);
286
+ var b = it(), C = e.first_child(b), j = e.child(C);
287
+ Ce(j, { size: 18, class: "gift-icon" });
288
+ var F = e.sibling(j, 2), f = e.child(F, !0);
289
+ e.reset(F);
290
+ var O = e.sibling(F, 2), B = e.child(O, !0);
291
+ e.reset(O), e.reset(C);
292
+ var N = e.sibling(C, 2);
293
293
  {
294
- var N = (F) => {
295
- var M = at(), U = e.child(M), R = e.child(U);
294
+ var A = (P) => {
295
+ var q = nt(), U = e.child(q), R = e.child(U);
296
296
  e.remove_input_defaults(R);
297
297
  let V;
298
- var j = e.sibling(R, 2), W = e.child(j);
298
+ var z = e.sibling(R, 2), W = e.child(z);
299
299
  {
300
300
  var X = (w) => {
301
- var P = tt();
302
- e.append(w, P);
301
+ var E = rt();
302
+ e.append(w, E);
303
303
  }, Y = (w) => {
304
- var P = e.text();
305
- e.template_effect(() => e.set_text(P, g().apply || "Apply")), e.append(w, P);
304
+ var E = e.text();
305
+ e.template_effect(() => e.set_text(E, g().apply || "Apply")), e.append(w, E);
306
306
  };
307
307
  e.if(W, (w) => {
308
308
  e.get(y) ? w(X) : w(Y, !1);
309
309
  });
310
310
  }
311
- e.reset(j), e.reset(U);
311
+ e.reset(z), e.reset(U);
312
312
  var H = e.sibling(U, 2);
313
313
  {
314
314
  var Z = (w) => {
315
- var P = rt(), v = e.child(P);
316
- Te(v, { size: 14 });
317
- var I = e.sibling(v, 2), z = e.child(I, !0);
318
- e.reset(I), e.reset(P), e.template_effect(() => e.set_text(z, e.get(S))), e.transition(3, P, () => de, () => ({ duration: 150 })), e.append(w, P);
315
+ var E = at(), p = e.child(E);
316
+ ke(p, { size: 14 });
317
+ var I = e.sibling(p, 2), G = e.child(I, !0);
318
+ e.reset(I), e.reset(E), e.template_effect(() => e.set_text(G, e.get(S))), e.transition(3, E, () => ce, () => ({ duration: 150 })), e.append(w, E);
319
319
  };
320
320
  e.if(H, (w) => {
321
321
  e.get(S) && w(Z);
322
322
  });
323
323
  }
324
- e.reset(M), e.template_effect(
324
+ e.reset(q), e.template_effect(
325
325
  (w) => {
326
- e.set_attribute(R, "placeholder", g().enterGiftCardCode || "Enter gift card code"), R.disabled = e.get(y) || o(), V = e.set_class(R, 1, "gift-input svelte-emw0hd", null, V, { "has-error": !!e.get(S) }), j.disabled = w;
326
+ e.set_attribute(R, "placeholder", g().enterGiftCardCode || "Enter gift card code"), R.disabled = e.get(y) || o(), V = e.set_class(R, 1, "gift-input svelte-emw0hd", null, V, { "has-error": !!e.get(S) }), z.disabled = w;
327
327
  },
328
328
  [() => !e.get(x).trim() || e.get(y) || o()]
329
- ), e.delegated("keydown", R, h), e.bind_value(R, () => e.get(x), (w) => e.set(x, w)), e.delegated("click", j, re), e.transition(3, M, () => de, () => ({ duration: 200 })), e.append(F, M);
329
+ ), e.delegated("keydown", R, h), e.bind_value(R, () => e.get(x), (w) => e.set(x, w)), e.delegated("click", z, re), e.transition(3, q, () => ce, () => ({ duration: 200 })), e.append(P, q);
330
330
  };
331
- e.if(O, (F) => {
332
- e.get(k) && F(N);
331
+ e.if(N, (P) => {
332
+ e.get(k) && P(A);
333
333
  });
334
334
  }
335
335
  e.template_effect(() => {
@@ -337,19 +337,19 @@ function st(u, t) {
337
337
  }), e.delegated("click", C, _), e.append(c, b);
338
338
  };
339
339
  e.if(ne, (c) => {
340
- e.get(m) ? c(q) : c(ie, !1);
340
+ e.get(m) ? c(M) : c(ie, !1);
341
341
  });
342
342
  }
343
- e.reset(A), e.append(u, A), e.pop();
343
+ e.reset(D), e.append(u, D), e.pop();
344
344
  }
345
345
  e.delegate(["click", "keydown"]);
346
- const G = ye("Checkout");
347
- var ot = e.from_html('<div class="max-w-6xl mx-auto px-4 md:px-6 -mt-4 mb-8"><!></div>'), lt = e.from_html("<!> <!>", 1), dt = e.from_html('<div class="p-8 text-center"><p class="text-accent-danger"> </p></div>'), ct = e.from_html('<div class="p-8 text-center"><p class="text-muted-foreground"> </p></div>');
348
- function ut(u, t) {
346
+ const L = he("Checkout");
347
+ var lt = e.from_html('<div class="max-w-6xl mx-auto px-4 md:px-6 -mt-4 mb-8"><!></div>'), dt = e.from_html("<!> <!>", 1), ct = e.from_html('<div class="p-8 text-center"><p class="text-accent-danger"> </p></div>'), ut = e.from_html('<div class="p-8 text-center"><p class="text-muted-foreground"> </p></div>');
348
+ function mt(u, t) {
349
349
  e.push(t, !0);
350
350
  let s = e.state(!1), d = e.state(null);
351
351
  typeof window < "u" && new URLSearchParams(window.location.search).get("legacy") === "1" && e.set(s, !0), e.user_effect(() => {
352
- e.get(s) && !e.get(d) && (G.warn("[VC] DEPRECATED: ?legacy=1 fallback for Checkout retires on 2026-08-13. See docs/LEGACY_RETIREMENT.md."), import("./Checkout.legacy-Dg8qlXGF.js").then((r) => {
352
+ e.get(s) && !e.get(d) && (L.warn("[VC] DEPRECATED: ?legacy=1 fallback for Checkout retires on 2026-08-13. See docs/LEGACY_RETIREMENT.md."), import("./Checkout.legacy-C9yyEf3S.js").then((r) => {
353
353
  e.set(d, r.default, !0);
354
354
  }).catch(() => {
355
355
  e.set(s, !1);
@@ -357,7 +357,7 @@ function ut(u, t) {
357
357
  });
358
358
  let o = e.prop(t, "availableTickets", 23, () => []), g = e.prop(t, "value", 3, ""), x = e.prop(t, "venueId", 3, ""), y = e.prop(t, "organizationId", 3, ""), S = e.prop(t, "initialError", 3, void 0), m = e.prop(t, "labels", 19, () => ({})), k = e.derived(() => (t.data || {}).id);
359
359
  e.derived(() => (t.data || {}).orgSlug);
360
- let re = e.derived(() => (t.data || {}).slug), ae = e.derived(() => (t.data || {}).event), h = e.derived(() => e.get(ae) ? ke(e.get(ae)) : t.data && (t.data.id || e.get(k)) ? {
360
+ let re = e.derived(() => (t.data || {}).slug), ae = e.derived(() => (t.data || {}).event), h = e.derived(() => e.get(ae) ? Ee(e.get(ae)) : t.data && (t.data.id || e.get(k)) ? {
361
361
  id: t.data.id || e.get(k),
362
362
  eventID: t.data.id || e.get(k),
363
363
  venueID: t.data.venueID ?? t.data.venueId ?? null,
@@ -365,19 +365,19 @@ function ut(u, t) {
365
365
  eventTicketingType: 0,
366
366
  ticketType: 0,
367
367
  availableTickets: []
368
- } : null), _ = e.state(""), A = e.state(e.proxy({})), ne = e.state(e.proxy({})), q = e.state(e.proxy([])), ie = e.state(""), c = e.state(0), b = e.state(!1), C = e.state(null), D = e.state(""), E = e.state(void 0), f = e.state(""), L = e.state(!1), B = e.state(""), O = e.state(null), N = e.state(null);
369
- Le(async () => {
370
- if (e.set(_, Ee.get("checkout-cartid"), !0), !e.get(_)) {
371
- e.set(L, !0), e.set(B, m().noCheckoutSession || "No checkout session found. Please select tickets first.", !0);
368
+ } : null), _ = e.state(""), D = e.state(e.proxy({})), ne = e.state(e.proxy({})), M = e.state(e.proxy([])), ie = e.state(""), c = e.state(0), b = e.state(!1), C = e.state(null), j = e.state(""), F = e.state(void 0), f = e.state(""), O = e.state(!1), B = e.state(""), N = e.state(null), A = e.state(null), P = null;
369
+ Oe(async () => {
370
+ if (e.set(_, Fe.get("checkout-cartid"), !0), !e.get(_)) {
371
+ e.set(O, !0), e.set(B, m().noCheckoutSession || "No checkout session found. Please select tickets first.", !0);
372
372
  return;
373
373
  }
374
374
  try {
375
- const i = Fe(e.get(h)?.eventID || e.get(h)?.id || e.get(k));
376
- e.set(A, i.quantities || {}, !0), e.set(ne, i.donationAmounts || {}, !0), e.set(ie, i.promocode || "", !0), e.set(c, i.promoDiscountAmount || 0, !0), e.set(q, i.tickets || [], !0);
375
+ const i = Ae(e.get(h)?.eventID || e.get(h)?.id || e.get(k));
376
+ e.set(D, i.quantities || {}, !0), e.set(ne, i.donationAmounts || {}, !0), e.set(ie, i.promocode || "", !0), e.set(c, i.promoDiscountAmount || 0, !0), e.set(M, i.tickets || [], !0);
377
377
  } catch (i) {
378
- G.error("Error loading checkout state:", i), e.set(A, {}, !0), e.set(q, [], !0);
378
+ L.error("Error loading checkout state:", i), e.set(D, {}, !0), e.set(M, [], !0);
379
379
  }
380
- e.get(q).length > 0 && e.get(h) && (e.get(h).availableTickets = e.get(q), o(e.get(q)));
380
+ e.get(M).length > 0 && e.get(h) && (e.get(h).availableTickets = e.get(M), o(e.get(M)));
381
381
  let r = {
382
382
  serviceFeeCents: 0,
383
383
  serviceFeePercentage: 0,
@@ -386,7 +386,7 @@ function ut(u, t) {
386
386
  taxPercentage: 0
387
387
  };
388
388
  try {
389
- const i = await Ae(e.get(h)?.venueID || e.get(h)?.venueId || x());
389
+ const i = await De(e.get(h)?.venueID || e.get(h)?.venueId || x());
390
390
  r = {
391
391
  serviceFeeCents: i?.serviceFeeCents ?? 0,
392
392
  serviceFeePercentage: i?.serviceFeePercentage ?? 0,
@@ -395,32 +395,33 @@ function ut(u, t) {
395
395
  taxPercentage: i?.taxPercentage ?? 0
396
396
  };
397
397
  } catch (i) {
398
- G.error("Error fetching venue data:", i);
398
+ L.error("Error fetching venue data:", i);
399
399
  }
400
- const a = U(e.get(A), e.get(q), r), n = a.reduce((i, l) => i + Math.round((l.unitPrice ?? 0) * 100) * (l.quantity ?? 0), 0);
401
- Object.keys(e.get(A)).length > 0 && n > 0 && await F();
402
- let p = 900;
400
+ const n = R(e.get(D), e.get(M), r), a = n.reduce((i, l) => i + Math.round((l.unitPrice ?? 0) * 100) * (l.quantity ?? 0), 0);
401
+ Object.keys(e.get(D)).length > 0 && a > 0 && await q();
402
+ let v = 900;
403
403
  if (e.get(_)) {
404
404
  const i = typeof localStorage < "u" ? localStorage.getItem(`checkout-expiry-${e.get(_)}`) : null;
405
405
  if (i) {
406
406
  const l = Math.max(0, Math.floor((parseInt(i, 10) - Date.now()) / 1e3));
407
- l > 0 && (p = l);
407
+ l > 0 && (v = l);
408
408
  }
409
409
  try {
410
410
  const l = await Re(e.get(_));
411
- !l.error && l.expiresAt && (p = Math.max(0, Math.floor((new Date(l.expiresAt) - /* @__PURE__ */ new Date()) / 1e3)), localStorage.setItem(`checkout-expiry-${e.get(_)}`, String(new Date(l.expiresAt).getTime())));
411
+ !l.error && l.expiresAt && (v = Math.max(0, Math.floor((new Date(l.expiresAt) - /* @__PURE__ */ new Date()) / 1e3)), localStorage.setItem(`checkout-expiry-${e.get(_)}`, String(new Date(l.expiresAt).getTime())));
412
412
  } catch {
413
413
  }
414
414
  }
415
415
  if (e.set(
416
- N,
416
+ A,
417
417
  {
418
- event: M(e.get(h), r),
419
- lines: a,
420
- timerStart: p,
418
+ event: U(e.get(h), r),
419
+ lines: n,
420
+ timerStart: v,
421
421
  promoApplied: !!e.get(ie),
422
422
  promoDiscount: e.get(c),
423
- forceExpired: !1
423
+ forceExpired: !1,
424
+ ...P ? { serverTotals: P } : {}
424
425
  },
425
426
  !0
426
427
  ), S()) {
@@ -431,29 +432,45 @@ function ut(u, t) {
431
432
  e.set(f, i.message, !0);
432
433
  }
433
434
  });
434
- async function F() {
435
+ async function q() {
435
436
  if (!e.get(_)) {
436
- G.error("Missing cartId!");
437
+ L.error("Missing cartId!");
437
438
  return;
438
439
  }
439
- const r = Object.fromEntries(Object.entries(e.get(A)).filter(([a, n]) => n > 0));
440
+ const r = Object.fromEntries(Object.entries(e.get(D)).filter(([n, a]) => a > 0));
440
441
  try {
441
- const a = Object.fromEntries(Object.entries(e.get(ne)).filter(([, i]) => parseFloat(String(i)) > 0).map(([i, l]) => [parseInt(i, 10), parseFloat(String(l))])), n = await De(e.get(_), r, Object.keys(a).length > 0 ? a : void 0);
442
- if (!n) {
442
+ const n = Object.fromEntries(Object.entries(e.get(ne)).filter(([, i]) => parseFloat(String(i)) > 0).map(([i, l]) => [parseInt(i, 10), parseFloat(String(l))])), a = await je(e.get(_), r, Object.keys(n).length > 0 ? n : void 0);
443
+ if (!a) {
443
444
  e.set(f, m().failedToCreatePaymentIntent || "Failed to create payment intent. Please try again.", !0);
444
445
  return;
445
446
  }
446
- const p = n.stripe_publishable_key;
447
- if (!p) {
448
- G.error("No Stripe publishable key in payment intent response"), e.set(f, m().paymentConfigError || "Payment configuration error. Please try again.", !0);
447
+ P = {
448
+ subtotal: (a.subtotal ?? 0) / 100,
449
+ fees: (a.service_fee ?? 0) / 100,
450
+ taxes: (a.tax_amount_exclusive ?? 0) / 100,
451
+ total: (a.amount_total ?? 0) / 100,
452
+ promoDiscount: (a.discount ?? 0) / 100,
453
+ giftCardAmount: (a.gift_card_amount ?? 0) / 100,
454
+ stripeAmount: (a.stripe_amount ?? 0) / 100
455
+ }, e.get(A) && e.set(
456
+ A,
457
+ {
458
+ ...e.get(A),
459
+ serverTotals: P
460
+ },
461
+ !0
462
+ );
463
+ const v = a.stripe_publishable_key;
464
+ if (!v) {
465
+ L.error("No Stripe publishable key in payment intent response"), e.set(f, m().paymentConfigError || "Payment configuration error. Please try again.", !0);
449
466
  return;
450
467
  }
451
- e.set(C, await He(p), !0), n.client_secret ? e.set(D, n.client_secret, !0) : e.set(f, m().failedToInitPayment || "Failed to initialize payment. Please try again.", !0);
452
- } catch (a) {
453
- G.error("Failed to initialize Stripe payment:", a), e.set(f, a.message || m().failedToInitPayment || "Failed to initialize payment. Please try again.", !0);
468
+ e.set(C, await Ze(v), !0), a.client_secret ? e.set(j, a.client_secret, !0) : e.set(f, m().failedToInitPayment || "Failed to initialize payment. Please try again.", !0);
469
+ } catch (n) {
470
+ L.error("Failed to initialize Stripe payment:", n), e.set(f, n.message || m().failedToInitPayment || "Failed to initialize payment. Please try again.", !0);
454
471
  }
455
472
  }
456
- function M(r, a) {
473
+ function U(r, n) {
457
474
  return r ? {
458
475
  id: r.id || r.eventID,
459
476
  title: r.name || r.title || "",
@@ -463,32 +480,32 @@ function ut(u, t) {
463
480
  startDateTime: r.startDateTime || "",
464
481
  endDateTime: r.endDateTime || "",
465
482
  doorsOpenTime: r.doorsOpenTime || "",
466
- timezone: r.timeZone || r.timezone || fe(),
483
+ timezone: r.timeZone || r.timezone || ge(),
467
484
  imageUrl: r.imageUrl || r.image || "",
468
485
  venue: {
469
486
  id: r.venueID || r.venueId || 0,
470
487
  name: r.venueName || "",
471
488
  address: r.venueAddress || "",
472
- timezone: r.timeZone || r.timezone || fe(),
473
- serviceFeePercentage: a.serviceFeePercentage,
474
- serviceFeeCents: a.serviceFeeCents,
475
- taxPercentage: a.taxPercentage,
476
- serviceFeeChargeType: a.serviceFeeChargeType,
477
- maxServiceFeeCents: a.maxServiceFeeCents
489
+ timezone: r.timeZone || r.timezone || ge(),
490
+ serviceFeePercentage: n.serviceFeePercentage,
491
+ serviceFeeCents: n.serviceFeeCents,
492
+ taxPercentage: n.taxPercentage,
493
+ serviceFeeChargeType: n.serviceFeeChargeType,
494
+ maxServiceFeeCents: n.maxServiceFeeCents
478
495
  },
479
496
  performers: r.performers || [],
480
- tickets: (r.availableTickets || []).map((n) => ({
481
- id: n.ID || n.id,
482
- name: n.name || "",
483
- description: n.description || "",
484
- price: (n.price || 0) / 100,
497
+ tickets: (r.availableTickets || []).map((a) => ({
498
+ id: a.ID || a.id,
499
+ name: a.name || "",
500
+ description: a.description || "",
501
+ price: (a.price || 0) / 100,
485
502
  fee: 0,
486
- quantityAvailable: n.quantityAvailable || 0,
487
- quantityTotal: n.quantityTotal || 0,
488
- minPerOrder: n.minPerOrder || 1,
489
- maxPerOrder: n.maxPerOrder || 10,
503
+ quantityAvailable: a.quantityAvailable || 0,
504
+ quantityTotal: a.quantityTotal || 0,
505
+ minPerOrder: a.minPerOrder || 1,
506
+ maxPerOrder: a.maxPerOrder || 10,
490
507
  status: "on_sale",
491
- isDonation: n.type === 2,
508
+ isDonation: a.type === 2,
492
509
  isHidden: !1
493
510
  })),
494
511
  faqs: r.faqs || [],
@@ -499,45 +516,45 @@ function ut(u, t) {
499
516
  totalTicketsCapacity: 100
500
517
  } : null;
501
518
  }
502
- function U(r, a, n) {
503
- const p = [];
519
+ function R(r, n, a) {
520
+ const v = [];
504
521
  for (const [i, l] of Object.entries(r)) {
505
522
  if (l <= 0) continue;
506
- const T = a.find((ce) => String(ce.ID) === i || String(ce.id) === i);
523
+ const T = n.find((ue) => String(ue.ID) === i || String(ue.id) === i);
507
524
  if (!T) continue;
508
- const Q = T.price || 0, Se = R(Q, n);
509
- p.push({
525
+ const Q = T.price || 0, we = V(Q, a);
526
+ v.push({
510
527
  ticketId: parseInt(i),
511
528
  ticketName: T.name || "",
512
529
  quantity: l,
513
530
  unitPrice: Q,
514
- fee: Se,
515
- subtotal: ge(Q * l)
531
+ fee: we,
532
+ subtotal: pe(Q * l)
516
533
  });
517
534
  }
518
- return p;
535
+ return v;
519
536
  }
520
- function R(r, a) {
537
+ function V(r, n) {
521
538
  if (r === 0) return 0;
522
539
  const {
523
- serviceFeePercentage: n = 0,
524
- serviceFeeCents: p = 0,
540
+ serviceFeePercentage: a = 0,
541
+ serviceFeeCents: v = 0,
525
542
  serviceFeeChargeType: i = "both",
526
543
  maxServiceFeeCents: l = 0
527
- } = a;
544
+ } = n;
528
545
  let T = 0;
529
- return (i === "percentage" || i === "both") && (T += r * (n / 100)), (i === "flat" || i === "both") && (T += p / 100), l > 0 && (T = Math.min(T, l / 100)), ge(T);
546
+ return (i === "percentage" || i === "both") && (T += r * (a / 100)), (i === "flat" || i === "both") && (T += v / 100), l > 0 && (T = Math.min(T, l / 100)), pe(T);
530
547
  }
531
- let V = e.derived(() => e.get(N) ? e.get(N).lines.every((r) => r.unitPrice === 0) : !0);
532
- async function j(r) {
548
+ let z = e.derived(() => e.get(A) ? e.get(A).lines.every((r) => r.unitPrice === 0) : !0);
549
+ async function W(r) {
533
550
  if (!e.get(b)) {
534
551
  e.set(b, !0), e.set(f, "");
535
552
  try {
536
- if (e.get(O) && !e.get(O).requiresStripe) {
537
- await W(r);
553
+ if (e.get(N) && !e.get(N).requiresStripe) {
554
+ await X(r);
538
555
  return;
539
556
  }
540
- if (!e.get(E)) {
557
+ if (!e.get(F)) {
541
558
  e.set(f, m().paymentFormNotReady || "Payment form is not ready. Please wait a moment and try again.", !0), e.set(b, !1);
542
559
  return;
543
560
  }
@@ -545,29 +562,29 @@ function ut(u, t) {
545
562
  e.set(f, m().paymentSystemNotInitialized || "Payment system is not initialized. Please refresh the page.", !0), e.set(b, !1);
546
563
  return;
547
564
  }
548
- const { error: a } = await e.get(E).submit();
549
- if (a) {
550
- const l = te(a);
565
+ const { error: n } = await e.get(F).submit();
566
+ if (n) {
567
+ const l = te(n);
551
568
  e.set(f, l.message, !0), e.set(b, !1);
552
569
  return;
553
570
  }
554
- const n = await e.get(C).confirmPayment({ elements: e.get(E), redirect: "if_required" });
555
- if (n.error) {
556
- const l = te(n.error);
571
+ const a = await e.get(C).confirmPayment({ elements: e.get(F), redirect: "if_required" });
572
+ if (a.error) {
573
+ const l = te(a.error);
557
574
  e.set(f, l.message, !0), e.set(b, !1);
558
575
  return;
559
576
  }
560
- const p = {
577
+ const v = {
561
578
  id: e.get(_),
562
- paymentIntentId: n.paymentIntent.id,
563
- tickets: e.get(A),
579
+ paymentIntentId: a.paymentIntent.id,
580
+ tickets: e.get(D),
564
581
  firstName: r.firstName,
565
582
  lastName: r.lastName,
566
583
  email: r.email,
567
584
  paymentMethod: "credit-card",
568
585
  mailingList: r.keepMeUpdated,
569
586
  saleType: "online"
570
- }, i = await ze(e.get(_), p);
587
+ }, i = await Ge(e.get(_), v);
571
588
  if (i?.status === "Payment succeeded") {
572
589
  const l = {
573
590
  orderId: e.get(_),
@@ -578,74 +595,74 @@ function ut(u, t) {
578
595
  };
579
596
  t.onNavigateToSuccess && t.onNavigateToSuccess(l);
580
597
  } else i?.status === "Payment amount does not match the total price" ? e.set(f, m().paymentAmountMismatch || "Payment amount mismatch. Please refresh and try again.", !0) : e.set(f, m().paymentValidationFailed || "Payment validation failed. Please try again.", !0);
581
- } catch (a) {
582
- G.error("Payment execution error:", a);
583
- const n = te(a);
584
- e.set(f, n.message, !0);
598
+ } catch (n) {
599
+ L.error("Payment execution error:", n);
600
+ const a = te(n);
601
+ e.set(f, a.message, !0);
585
602
  } finally {
586
603
  e.set(b, !1);
587
604
  }
588
605
  }
589
606
  }
590
- async function W(r) {
607
+ async function X(r) {
591
608
  try {
592
- const a = await Ge(e.get(_), {
609
+ const n = await Le(e.get(_), {
593
610
  firstName: r.firstName,
594
611
  lastName: r.lastName,
595
612
  email: r.email,
596
613
  phoneNumber: null,
597
614
  mailingList: r.keepMeUpdated
598
615
  });
599
- if (a?.success) {
600
- const n = {
601
- orderId: a.orderId || e.get(_),
616
+ if (n?.success) {
617
+ const a = {
618
+ orderId: n.orderId || e.get(_),
602
619
  eventId: e.get(h)?.id || e.get(h)?.eventID || null,
603
620
  event: e.get(h) || null,
604
621
  venueId: x() || e.get(h)?.venueId || null,
605
622
  organizationId: y() || e.get(h)?.organizationId || null,
606
623
  paymentType: "gift_card_only"
607
624
  };
608
- t.onNavigateToSuccess && t.onNavigateToSuccess(n);
625
+ t.onNavigateToSuccess && t.onNavigateToSuccess(a);
609
626
  } else
610
- e.set(f, a?.error || m().failedToCompleteOrder || "Failed to complete order. Please try again.", !0);
611
- } catch (a) {
612
- G.error("Gift card payment error:", a);
613
- const n = te(a);
614
- e.set(f, n.message, !0);
627
+ e.set(f, n?.error || m().failedToCompleteOrder || "Failed to complete order. Please try again.", !0);
628
+ } catch (n) {
629
+ L.error("Gift card payment error:", n);
630
+ const a = te(n);
631
+ e.set(f, a.message, !0);
615
632
  } finally {
616
633
  e.set(b, !1);
617
634
  }
618
635
  }
619
- function X(r) {
620
- e.set(O, r, !0), r.requiresStripe || (e.set(E, void 0), e.set(C, null), e.set(D, ""));
621
- }
622
- function Y() {
623
- e.set(O, null), e.get(_) && Object.keys(e.get(A)).length > 0 && F();
636
+ function Y(r) {
637
+ e.set(N, r, !0), r.requiresStripe || (e.set(F, void 0), e.set(C, null), e.set(j, ""));
624
638
  }
625
639
  function H() {
626
- window.history.back();
640
+ e.set(N, null), e.get(_) && Object.keys(e.get(D)).length > 0 && q();
627
641
  }
628
642
  function Z() {
629
643
  window.history.back();
630
644
  }
631
- async function w() {
645
+ function w() {
646
+ window.history.back();
647
+ }
648
+ async function E() {
632
649
  if (!e.get(_)) return null;
633
650
  try {
634
- const r = await je(e.get(_));
651
+ const r = await ze(e.get(_));
635
652
  return r.success ? {
636
653
  newExpiryTime: r.newExpiryTime,
637
654
  remainingExtensions: r.remainingExtensions
638
- } : (G.error("Failed to extend session:", r.error), null);
655
+ } : (L.error("Failed to extend session:", r.error), null);
639
656
  } catch (r) {
640
- return G.error("Error extending checkout session:", r), null;
657
+ return L.error("Error extending checkout session:", r), null;
641
658
  }
642
659
  }
643
- var P = e.comment(), v = e.first_child(P);
660
+ var p = e.comment(), I = e.first_child(p);
644
661
  {
645
- var I = (r) => {
646
- var a = e.comment(), n = e.first_child(a);
647
- e.component(n, () => e.get(d), (p, i) => {
648
- i(p, {
662
+ var G = (r) => {
663
+ var n = e.comment(), a = e.first_child(n);
664
+ e.component(a, () => e.get(d), (v, i) => {
665
+ i(v, {
649
666
  get data() {
650
667
  return t.data;
651
668
  },
@@ -671,73 +688,73 @@ function ut(u, t) {
671
688
  return m();
672
689
  }
673
690
  });
674
- }), e.append(r, a);
675
- }, z = (r) => {
676
- var a = lt(), n = e.first_child(a);
677
- Oe(n, {
691
+ }), e.append(r, n);
692
+ }, J = (r) => {
693
+ var n = dt(), a = e.first_child(n);
694
+ Ne(a, {
678
695
  get config() {
679
- return e.get(N);
696
+ return e.get(A);
680
697
  },
681
- onPlaceOrder: j,
682
- onBack: H,
683
- onRetryExpired: Z,
684
- onExtendSession: w,
698
+ onPlaceOrder: W,
699
+ onBack: Z,
700
+ onRetryExpired: w,
701
+ onExtendSession: E,
685
702
  get stripe() {
686
703
  return e.get(C);
687
704
  },
688
705
  get paymentIntent() {
689
- return e.get(D);
706
+ return e.get(j);
690
707
  },
691
708
  get paymentError() {
692
709
  return e.get(f);
693
710
  },
694
711
  get elements() {
695
- return e.get(E);
712
+ return e.get(F);
696
713
  },
697
714
  set elements(l) {
698
- e.set(E, l, !0);
715
+ e.set(F, l, !0);
699
716
  }
700
717
  });
701
- var p = e.sibling(n, 2);
718
+ var v = e.sibling(a, 2);
702
719
  {
703
720
  var i = (l) => {
704
- var T = ot(), Q = e.child(T);
705
- st(Q, {
721
+ var T = lt(), Q = e.child(T);
722
+ ot(Q, {
706
723
  get cartId() {
707
724
  return e.get(_);
708
725
  },
709
- onApplied: X,
710
- onRemoved: Y,
726
+ onApplied: Y,
727
+ onRemoved: H,
711
728
  get disabled() {
712
729
  return e.get(b);
713
730
  }
714
731
  }), e.reset(T), e.append(l, T);
715
732
  };
716
- e.if(p, (l) => {
717
- e.get(V) || l(i);
733
+ e.if(v, (l) => {
734
+ e.get(z) || l(i);
718
735
  });
719
736
  }
720
- e.append(r, a);
721
- }, J = (r) => {
722
- var a = dt(), n = e.child(a), p = e.child(n, !0);
723
- e.reset(n), e.reset(a), e.template_effect(() => e.set_text(p, e.get(B))), e.append(r, a);
737
+ e.append(r, n);
724
738
  }, K = (r) => {
725
- var a = ct(), n = e.child(a), p = e.child(n, !0);
726
- e.reset(n), e.reset(a), e.template_effect(() => e.set_text(p, m().loadingSecurePaymentForm || "Loading secure payment form...")), e.append(r, a);
739
+ var n = ct(), a = e.child(n), v = e.child(a, !0);
740
+ e.reset(a), e.reset(n), e.template_effect(() => e.set_text(v, e.get(B))), e.append(r, n);
741
+ }, de = (r) => {
742
+ var n = ut(), a = e.child(n), v = e.child(a, !0);
743
+ e.reset(a), e.reset(n), e.template_effect(() => e.set_text(v, m().loadingSecurePaymentForm || "Loading secure payment form...")), e.append(r, n);
727
744
  };
728
- e.if(v, (r) => {
729
- e.get(s) && e.get(d) ? r(I) : e.get(N) ? r(z, 1) : e.get(L) ? r(J, 2) : r(K, !1);
745
+ e.if(I, (r) => {
746
+ e.get(s) && e.get(d) ? r(G) : e.get(A) ? r(J, 1) : e.get(O) ? r(K, 2) : r(de, !1);
730
747
  });
731
748
  }
732
- e.append(u, P), e.pop();
749
+ e.append(u, p), e.pop();
733
750
  }
734
- const _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
751
+ const bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
735
752
  __proto__: null,
736
- default: ut
753
+ default: mt
737
754
  }, Symbol.toStringTag, { value: "Module" }));
738
755
  export {
739
- _t as C,
740
- st as G,
741
- He as l
756
+ bt as C,
757
+ ot as G,
758
+ Ze as l
742
759
  };
743
- //# sourceMappingURL=Checkout-DET04TDs.js.map
760
+ //# sourceMappingURL=Checkout-CpPb5Ifu.js.map