@getmicdrop/venue-calendar 4.2.32 → 4.2.34

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 (119) hide show
  1. package/README.md +809 -809
  2. package/dist/{ArrowLeftIcon-B92-MN6-.js → ArrowLeftIcon-D2dcPIYB.js} +1 -1
  3. package/dist/{Badge-Bv_MT-Vt.js → Badge-Bk1dnG89.js} +1 -1
  4. package/dist/{BlockPlaceholder-DuE4xLS_.js → BlockPlaceholder-DJLtnBDw.js} +1 -1
  5. package/dist/{Calendar-CXq_H56Z.js → Calendar-CzvJjOKf.js} +19 -19
  6. package/dist/{CalendarFoundryView-DxQKDDgF.js → CalendarFoundryView-DWjYFSEw.js} +980 -960
  7. package/dist/{CalendarIcon-pJ01x71c.js → CalendarIcon-CkJFNFxp.js} +1 -1
  8. package/dist/{CartView-DRVzz2Jv.js → CartView-DidUQzO-.js} +532 -532
  9. package/dist/{Checkout-Cdw5BIfy.js → Checkout-1NyqTUI8.js} +129 -129
  10. package/dist/{Checkout-DmermPNB.js → Checkout-eIj6xGgL.js} +173 -173
  11. package/dist/{CheckoutTimer-Bz-HJhV2.js → CheckoutTimer-DFIHUIZl.js} +5 -5
  12. package/dist/{ChevronDownIcon-k93EaHQh.js → ChevronDownIcon-rsVUoX0r.js} +1 -1
  13. package/dist/{ClockIcon-hnrV9bwg.js → ClockIcon-CIwbKXZX.js} +1 -1
  14. package/dist/{CloseIcon-CdZ5mNTK.js → CloseIcon-B7HoEcON.js} +1 -1
  15. package/dist/{CollectionView-C15_ZzBb.js → CollectionView-Dt3NmdBh.js} +9 -10
  16. package/dist/{Event-B0IdtMpP.js → Event-B0hDsxnc.js} +377 -359
  17. package/dist/{EventPage-B4y4n5md.js → EventPage-De-7chl3.js} +124 -125
  18. package/dist/{Heading-Dfo3bjyn.js → Heading-CQlZrwry.js} +1 -1
  19. package/dist/{Image-B3cEndLZ.js → Image-T6dKIfNx.js} +1 -1
  20. package/dist/{Input-BntIoPeV.js → Input-8KhoOdg-.js} +1 -1
  21. package/dist/{MailIcon-CMyjGJ4_.js → MailIcon-CSR5vhKU.js} +1 -1
  22. package/dist/{Modal-B6BsMEaP.js → Modal-D3Otve45.js} +2 -2
  23. package/dist/{ModalFooter-D1XdQEhH.js → ModalFooter-fv8mC75I.js} +162 -147
  24. package/dist/{PasswordInput-C91gXtFY.js → PasswordInput-B_6cNrlw.js} +1 -1
  25. package/dist/{ScarcityBadge-C0YeWGkd.js → ScarcityBadge-CtHuWSRt.js} +23 -22
  26. package/dist/{SeriesPage-1ZZgy2K-.js → SeriesPage-BFYmtgoi.js} +4 -4
  27. package/dist/{Spinner-BwiDys7C.js → Spinner-fFAXvj_B.js} +1 -1
  28. package/dist/{Success-BxvH6W_x.js → Success-BIVQOUqu.js} +52 -52
  29. package/dist/{TagIcon-BkPcpKdu.js → TagIcon-Do5sN8xR.js} +1 -1
  30. package/dist/ViewTicketsEmbed-CbbE-8EX.js +727 -0
  31. package/dist/{WarningCircleIcon-D78IFaPY.js → WarningCircleIcon-DuqytsVW.js} +1 -1
  32. package/dist/{WarningTriIcon-6WbGCso4.js → WarningTriIcon-CW-j3Vwq.js} +1 -1
  33. package/dist/{__SKIP_PATHS__-tAxwP7_6.js → __SKIP_PATHS__-Chv7DW7h.js} +1 -1
  34. package/dist/api/api.cjs +1 -1
  35. package/dist/api/api.mjs +299 -209
  36. package/dist/api/gift-cards.d.ts +1 -1
  37. package/dist/api/orders.d.ts +2 -2
  38. package/dist/api/types.d.ts +554 -554
  39. package/dist/{colors-DbQNhbC_.js → colors-BND7shPA.js} +119 -117
  40. package/dist/constants-BYtFptYp.js +356 -0
  41. package/dist/{copyToClipboard-DAGJHhtn.js → copyToClipboard-CcwaUGGt.js} +1 -1
  42. package/dist/{de-BG-86m10.js → de-8N03rEoe.js} +4 -1
  43. package/dist/{de-BZpzzwT9.js → de-CgHrjezX.js} +57 -1
  44. package/dist/{timezones-C5l0SSHK.js → defaultLabels-CGMGBy-u.js} +501 -1
  45. package/dist/{es-9jwSoUSD.js → es-D6ThNLUc.js} +45 -1
  46. package/dist/{es-B1RPM3H_.js → es-tRMGbtbB.js} +4 -1
  47. package/dist/{event-v8d4wRpB.js → event-CbAGNxgd.js} +1 -1
  48. package/dist/{event-transform-lC22EDSL.js → event-transform-DnvOiDVn.js} +4 -4
  49. package/dist/{eventStatusStream-CopqZ2oa.js → eventStatusStream-BIn6Dzkw.js} +5 -5
  50. package/dist/{fr-B6FgrH9s.js → fr-DDnljtQz.js} +4 -1
  51. package/dist/{fr-fYY2O8Ab.js → fr-W0OOohju.js} +57 -1
  52. package/dist/{href-BH6l_kZx.js → href-D2-tmkMF.js} +2 -2
  53. package/dist/{i18n-CIVh_urJ.js → i18n-4k6uF1EX.js} +126 -126
  54. package/dist/i18n-FnFHQ5QU.js +28 -0
  55. package/dist/{id-CK7hal8E.js → id-BZshacSm.js} +4 -1
  56. package/dist/{id-But8qcA2.js → id-xgAFN1EH.js} +57 -1
  57. package/dist/{it-BdV8d4GZ.js → it-B6Rbpjec.js} +4 -1
  58. package/dist/{it-Cr9Quauw.js → it-BhuT9BcE.js} +57 -1
  59. package/dist/{ja-DKVQltc4.js → ja-Bmj-bPuM.js} +4 -1
  60. package/dist/{ja-CNXwg0_H.js → ja-yca07ASz.js} +57 -1
  61. package/dist/{ko-DtoIJliT.js → ko-Pfftd2u0.js} +57 -1
  62. package/dist/{ko-DpIk-4pN.js → ko-r-ecuHZ5.js} +4 -1
  63. package/dist/{labels-BUH8ouCu.js → labels-Cs7xp4ug.js} +1 -1
  64. package/dist/locales/{4.2.32 → 4.2.34}/flow/de.js +1 -1
  65. package/dist/locales/{4.2.32 → 4.2.34}/flow/es.js +1 -1
  66. package/dist/locales/{4.2.32 → 4.2.34}/flow/fr.js +1 -1
  67. package/dist/locales/{4.2.32 → 4.2.34}/flow/id.js +1 -1
  68. package/dist/locales/{4.2.32 → 4.2.34}/flow/it.js +1 -1
  69. package/dist/locales/{4.2.32 → 4.2.34}/flow/ja.js +1 -1
  70. package/dist/locales/{4.2.32 → 4.2.34}/flow/ko.js +1 -1
  71. package/dist/locales/{4.2.32 → 4.2.34}/flow/nl.js +1 -1
  72. package/dist/locales/{4.2.32 → 4.2.34}/flow/pl.js +1 -1
  73. package/dist/locales/{4.2.32 → 4.2.34}/flow/pt-br.js +1 -1
  74. package/dist/locales/{4.2.32 → 4.2.34}/flow/tr.js +1 -1
  75. package/dist/locales/{4.2.32 → 4.2.34}/flow/zh.js +1 -1
  76. package/dist/locales/{4.2.32 → 4.2.34}/main/de.js +1 -1
  77. package/dist/locales/{4.2.32 → 4.2.34}/main/es.js +1 -1
  78. package/dist/locales/{4.2.32 → 4.2.34}/main/fr.js +1 -1
  79. package/dist/locales/{4.2.32 → 4.2.34}/main/id.js +1 -1
  80. package/dist/locales/{4.2.32 → 4.2.34}/main/it.js +1 -1
  81. package/dist/locales/{4.2.32 → 4.2.34}/main/ja.js +1 -1
  82. package/dist/locales/{4.2.32 → 4.2.34}/main/ko.js +1 -1
  83. package/dist/locales/{4.2.32 → 4.2.34}/main/nl.js +1 -1
  84. package/dist/locales/{4.2.32 → 4.2.34}/main/pl.js +1 -1
  85. package/dist/locales/{4.2.32 → 4.2.34}/main/pt-br.js +1 -1
  86. package/dist/locales/{4.2.32 → 4.2.34}/main/tr.js +1 -1
  87. package/dist/locales/{4.2.32 → 4.2.34}/main/zh.js +1 -1
  88. package/dist/{modalManager.svelte-BLfn6RXD.js → modalManager.svelte-vILq6Thx.js} +2 -2
  89. package/dist/{nl-Dbs4YQMw.js → nl-CQEhSA2l.js} +57 -1
  90. package/dist/{nl-C-dVfidI.js → nl-CS1da1Bc.js} +4 -1
  91. package/dist/{order-totals-CeeD6GjZ.js → order-totals-CSDXY65z.js} +31 -31
  92. package/dist/{orders-BuGy4vpJ.js → orders-CH2nnS3m.js} +365 -209
  93. package/dist/{phoneUtils-BDV9Eggn.js → phoneUtils-BtJ3FhMK.js} +1 -1
  94. package/dist/{pixels-D6vqcuy2.js → pixels-BK7PGnme.js} +11 -11
  95. package/dist/{pl-CnFcI33y.js → pl-C2bkE2WA.js} +4 -1
  96. package/dist/{pl-Da6lsZXQ.js → pl-CyWqKYE8.js} +57 -1
  97. package/dist/{promo-DtLZRskK.js → promo-Cy4LPBAC.js} +3 -3
  98. package/dist/{pt-br-6QYijxa0.js → pt-br--DIxBDjz.js} +4 -1
  99. package/dist/{pt-br-D1wHabRR.js → pt-br-BC2I7f8-.js} +57 -1
  100. package/dist/seo/types.d.ts +156 -156
  101. package/dist/{serverTotals-t2UmKkhC.js → serverTotals-C3VhWitQ.js} +1 -1
  102. package/dist/{shareCopyFeedback.svelte-B-M53Wj2.js → shareCopyFeedback.svelte-DTl5jJ2n.js} +55 -55
  103. package/dist/{showcase-state-options-VZcqIjpF.js → showcase-state-options-CeCdn8_C.js} +1 -1
  104. package/dist/{to-event-card-props-CpXtfoKx.js → to-event-card-props-BmsDr8T3.js} +31 -31
  105. package/dist/{tr-Pv_m8usO.js → tr-Bk7x5MW7.js} +4 -1
  106. package/dist/{tr-CpN50zWw.js → tr-CNjaJc_1.js} +57 -1
  107. package/dist/types/index.d.ts +509 -509
  108. package/dist/{utils-CtqaTDLB.js → utils-pF15CnBe.js} +49 -49
  109. package/dist/venue-calendar.css +1 -1
  110. package/dist/venue-calendar.es.js +711 -735
  111. package/dist/venue-calendar.iife.js +60 -61
  112. package/dist/venue-calendar.umd.js +54 -55
  113. package/dist/{zh-CAAnH4T4.js → zh-C8kyVh24.js} +4 -1
  114. package/dist/{zh-CwlRq_aG.js → zh-DOeb3_A1.js} +57 -1
  115. package/package.json +3 -3
  116. package/src/lib/theme.js +222 -222
  117. package/dist/ViewTicketsEmbed-DVurn8FG.js +0 -690
  118. package/dist/constants-ENlpIS8i.js +0 -822
  119. package/dist/createI18n-DBUVdZra.js +0 -75
@@ -1,19 +1,19 @@
1
1
  import { _ as e, v as t, x as n } from "./Button-C4uFgl7L.js";
2
- import { r, t as i, v as a } from "./timezones-C5l0SSHK.js";
3
- import { n as o, r as s, t as c } from "./CloseIcon-CdZ5mNTK.js";
4
- import { f as l, m as u, r as d } from "./Input-BntIoPeV.js";
5
- import { C as f, O as p, m, y as h } from "./constants-ENlpIS8i.js";
6
- import { t as g } from "./TagIcon-BkPcpKdu.js";
7
- import { t as _ } from "./WarningTriIcon-6WbGCso4.js";
8
- import { i as v, l as y, n as b, r as x, s as S, t as C } from "./orders-BuGy4vpJ.js";
9
- import { n as w, t as T } from "./serverTotals-t2UmKkhC.js";
10
- import { a as E, i as D, n as O, r as k, t as A } from "./ModalFooter-D1XdQEhH.js";
11
- import { C as ee, d as te, f as ne, u as j } from "./colors-DbQNhbC_.js";
12
- import { t as re } from "./event-transform-lC22EDSL.js";
13
- import { a as ie, f as ae, p as oe, r as M, u as se } from "./utils-CtqaTDLB.js";
14
- import { a as N, n as ce } from "./promo-DtLZRskK.js";
15
- import { r as le } from "./order-totals-CeeD6GjZ.js";
16
- import ue, { n as P, t as de } from "./Checkout-Cdw5BIfy.js";
2
+ import { i as r, n as i, t as a, y as o } from "./defaultLabels-CGMGBy-u.js";
3
+ import { n as s, r as c, t as l } from "./CloseIcon-B7HoEcON.js";
4
+ import { f as u, m as d, r as f } from "./Input-8KhoOdg-.js";
5
+ import { D as p, S as m, m as h } from "./constants-BYtFptYp.js";
6
+ import { t as g } from "./TagIcon-Do5sN8xR.js";
7
+ import { t as _ } from "./WarningTriIcon-CW-j3Vwq.js";
8
+ import { f as v, i as y, n as b, r as x, s as S, t as C } from "./orders-CH2nnS3m.js";
9
+ import { n as w, t as T } from "./serverTotals-C3VhWitQ.js";
10
+ import { a as E, i as D, n as O, r as k, t as A } from "./ModalFooter-fv8mC75I.js";
11
+ import { C as ee, d as te, f as ne, u as j } from "./colors-BND7shPA.js";
12
+ import { t as re } from "./event-transform-DnvOiDVn.js";
13
+ import { a as ie, f as ae, p as oe, r as M, u as se } from "./utils-pF15CnBe.js";
14
+ import { a as N, n as ce } from "./promo-Cy4LPBAC.js";
15
+ import { r as le } from "./order-totals-CSDXY65z.js";
16
+ import ue, { n as P, t as de } from "./Checkout-1NyqTUI8.js";
17
17
  import { n as fe } from "./buyerEmail-BfCq-gDt.js";
18
18
  import "svelte/internal/disclose-version";
19
19
  import * as F from "svelte/internal/client";
@@ -29,60 +29,60 @@ function I(e) {
29
29
  }
30
30
  var L = "dahlia", R = function(e) {
31
31
  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(\?.*)?$/, 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) {
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
33
  return V.test(e) || H.test(e);
34
- }, W = function() {
34
+ }, U = function() {
35
35
  for (var e = document.querySelectorAll(`script[src^="${z}"]`), t = 0; t < e.length; t++) {
36
36
  var n = e[t];
37
- if (me(n.src)) return n;
37
+ if (he(n.src)) return n;
38
38
  }
39
39
  return null;
40
- }, he = function(e) {
40
+ }, ge = function(e) {
41
41
  var t = e && !e.advancedFraudSignals ? "?advancedFraudSignals=false" : "", n = document.createElement("script");
42
42
  n.src = `${B}${t}`;
43
43
  var r = document.head || document.body;
44
44
  if (!r) throw Error("Expected document.body not to be null. Stripe.js requires a <body> element.");
45
45
  return r.appendChild(n), n;
46
- }, G = function(e, t) {
46
+ }, W = function(e, t) {
47
47
  !e || !e._registerWrapper || e._registerWrapper({
48
48
  name: "stripe-js",
49
49
  version: "9.13.0",
50
50
  startTime: t
51
51
  });
52
- }, K = null, q = null, J = null, ge = function(e) {
52
+ }, G = null, K = null, q = null, _e = function(e) {
53
53
  return function(t) {
54
54
  e(Error("Failed to load Stripe.js", { cause: t }));
55
55
  };
56
- }, Y = function(e, t) {
56
+ }, J = function(e, t) {
57
57
  return function() {
58
58
  window.Stripe ? e(window.Stripe) : t(/* @__PURE__ */ Error("Stripe.js not available"));
59
59
  };
60
- }, _e = function(e) {
61
- return K === null ? (K = new Promise(function(t, n) {
60
+ }, Y = function(e) {
61
+ return G === null ? (G = new Promise(function(t, n) {
62
62
  if (typeof window > "u" || typeof document > "u") {
63
63
  t(null);
64
64
  return;
65
65
  }
66
- if (window.Stripe && e && console.warn(U), window.Stripe) {
66
+ if (window.Stripe && e && console.warn(me), window.Stripe) {
67
67
  t(window.Stripe);
68
68
  return;
69
69
  }
70
70
  try {
71
- var r = W();
72
- if (r && e) console.warn(U);
73
- else if (!r) r = he(e);
74
- else if (r && J !== null && q !== null) {
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) {
75
75
  var i;
76
- r.removeEventListener("load", J), r.removeEventListener("error", q), (i = r.parentNode) == null || i.removeChild(r), r = he(e);
76
+ r.removeEventListener("load", q), r.removeEventListener("error", K), (i = r.parentNode) == null || i.removeChild(r), r = ge(e);
77
77
  }
78
- J = Y(t, n), q = ge(n), r.addEventListener("load", J), r.addEventListener("error", q);
78
+ q = J(t, n), K = _e(n), r.addEventListener("load", q), r.addEventListener("error", K);
79
79
  } catch (e) {
80
80
  n(e);
81
81
  return;
82
82
  }
83
- }), K.catch(function(e) {
84
- return K = null, Promise.reject(e);
85
- })) : K;
83
+ }), G.catch(function(e) {
84
+ return G = null, Promise.reject(e);
85
+ })) : G;
86
86
  }, ve = function(e, t, n) {
87
87
  if (e === null) return null;
88
88
  var r = t[0];
@@ -90,9 +90,9 @@ var L = "dahlia", R = function(e) {
90
90
  var i = r.match(/^pk_test/), a = R(e.version), o = L;
91
91
  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
92
  var s = e.apply(void 0, t);
93
- return G(s, n), s;
93
+ return W(s, n), s;
94
94
  }, X, ye = !1, be = function() {
95
- return X || (X = _e(null).catch(function(e) {
95
+ return X || (X = Y(null).catch(function(e) {
96
96
  return X = null, Promise.reject(e);
97
97
  }), X);
98
98
  };
@@ -111,7 +111,7 @@ var xe = function() {
111
111
  };
112
112
  //#endregion
113
113
  //#region src/lib/utils/stripe-errors.ts
114
- function Z(e, t = h) {
114
+ function Z(e, t = a) {
115
115
  let n = e?.code || e?.decline_code || "", r = e?.type || "", i = e?.message || "";
116
116
  if (n === "card_declined" || r === "card_error") {
117
117
  let n = e?.decline_code || "";
@@ -184,7 +184,7 @@ function Z(e, t = h) {
184
184
  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
185
  function De(n, i) {
186
186
  F.push(i, !0);
187
- let a = F.prop(i, "onApplied", 3, () => {}), s = F.prop(i, "onRemoved", 3, () => {}), u = F.prop(i, "disabled", 3, !1), p = F.prop(i, "labels", 3, h), m = 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);
187
+ let o = F.prop(i, "onApplied", 3, () => {}), c = F.prop(i, "onRemoved", 3, () => {}), d = F.prop(i, "disabled", 3, !1), p = 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
188
  F.user_effect(() => {
189
189
  if (!i.cartId || F.get(S).length > 0) return;
190
190
  let e = !1;
@@ -195,7 +195,7 @@ function De(n, i) {
195
195
  giftCardId: e.giftCardId,
196
196
  code: e.maskedCode,
197
197
  giftCardAmount: e.amount
198
- })), !0), F.set(w, F.get(S).reduce((e, t) => e + (t.giftCardAmount || 0), 0) + (m() || 0)));
198
+ })), !0), F.set(w, F.get(S).reduce((e, t) => e + (t.giftCardAmount || 0), 0) + (h() || 0)));
199
199
  }).catch((e) => Q.error("Could not restore applied gift cards:", e)), () => {
200
200
  e = !0;
201
201
  };
@@ -203,10 +203,10 @@ function De(n, i) {
203
203
  let T = F.derived(() => F.get(S).reduce((e, t) => e + (t.giftCardAmount || 0), 0)), E = F.derived(() => Math.max(0, F.get(w) - F.get(T))), D = F.derived(() => F.get(S).length > 0 && F.get(E) <= 0);
204
204
  function O() {
205
205
  if (F.get(S).length === 0) {
206
- s()();
206
+ c()();
207
207
  return;
208
208
  }
209
- a()({
209
+ o()({
210
210
  code: F.get(S).map((e) => e.code).join(", "),
211
211
  giftCardAmount: F.get(T),
212
212
  stripeAmount: F.get(E),
@@ -257,13 +257,13 @@ function De(n, i) {
257
257
  }
258
258
  var re = Ee(), ie = F.child(re);
259
259
  F.each(ie, 17, () => F.get(S), (e) => e.code, (e, t) => {
260
- var n = Se(), i = F.child(n), a = F.child(i), s = F.child(a);
261
- o(s, { size: "16" }), F.reset(a);
262
- var m = F.sibling(a, 2), h = F.child(m), g = F.child(h, !0);
260
+ var n = Se(), i = F.child(n), a = F.child(i), o = F.child(a);
261
+ s(o, { size: "16" }), F.reset(a);
262
+ var c = F.sibling(a, 2), h = F.child(c), g = F.child(h, !0);
263
263
  F.reset(h);
264
264
  var _ = F.sibling(h, 2), v = F.child(_, !0);
265
- F.reset(_), F.reset(m);
266
- var b = F.sibling(m, 2), x = F.child(b);
265
+ F.reset(_), F.reset(c);
266
+ var b = F.sibling(c, 2), x = F.child(b);
267
267
  F.reset(b);
268
268
  var S = F.sibling(b, 2);
269
269
  {
@@ -277,26 +277,26 @@ function De(n, i) {
277
277
  return F.get(y);
278
278
  },
279
279
  get disabled() {
280
- return u();
280
+ return d();
281
281
  },
282
282
  get "aria-label"() {
283
283
  return F.get(e);
284
284
  },
285
285
  children: (e, t) => {
286
- c(e, { size: "16" });
286
+ l(e, { size: "16" });
287
287
  },
288
288
  $$slots: { default: !0 }
289
289
  });
290
290
  }
291
291
  F.reset(i), F.reset(n), F.template_effect((e) => {
292
292
  F.set_text(g, p().giftCardApplied || "Gift card applied"), F.set_text(v, F.get(t).code), F.set_text(x, `-${e ?? ""}`);
293
- }, [() => f(F.get(t).giftCardAmount)]), F.transition(3, n, () => l, () => ({ duration: d.fast })), F.append(e, n);
293
+ }, [() => m(F.get(t).giftCardAmount)]), F.transition(3, n, () => u, () => ({ duration: f.fast })), F.append(e, n);
294
294
  });
295
295
  var ae = F.sibling(ie, 2), oe = (n) => {
296
296
  var r = Ce(), i = F.child(r), a = F.child(i);
297
- o(a, { size: "16" });
298
- var s = F.sibling(a, 2), c = F.child(s, !0);
299
- F.reset(s), F.reset(i), F.reset(r), F.template_effect(() => {
297
+ s(a, { size: "16" });
298
+ var o = F.sibling(a, 2), c = F.child(o, !0);
299
+ F.reset(o), F.reset(i), F.reset(r), F.template_effect(() => {
300
300
  F.set_class(i, 1, `full-coverage-badge ${t.caption ?? ""} ${e.emphasis ?? ""}`, "svelte-emw0hd"), F.set_text(c, p().fullyCoveredByGiftCard || "Fully covered by gift card");
301
301
  }), F.append(n, r);
302
302
  };
@@ -318,7 +318,7 @@ function De(n, i) {
318
318
  let o;
319
319
  var s = F.sibling(a, 2);
320
320
  {
321
- let e = F.derived(() => !F.get(v).trim() || u());
321
+ let e = F.derived(() => !F.get(v).trim() || d());
322
322
  r(s, {
323
323
  variant: "default",
324
324
  size: "sm",
@@ -339,22 +339,22 @@ function De(n, i) {
339
339
  });
340
340
  }
341
341
  F.reset(i);
342
- var c = F.sibling(i, 2), f = (e) => {
342
+ var c = F.sibling(i, 2), l = (e) => {
343
343
  var t = we(), n = F.child(t);
344
344
  _(n, { size: "16" });
345
345
  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, () => l, () => ({ duration: d.micro })), F.append(e, t);
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
347
  };
348
348
  F.if(c, (e) => {
349
- F.get(b) && e(f);
349
+ F.get(b) && e(l);
350
350
  }), F.reset(n), F.template_effect(() => {
351
- F.set_attribute(a, "aria-label", p().enterGiftCardCode || "Enter gift card code"), F.set_attribute(a, "placeholder", p().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) });
352
- }), F.delegated("keydown", a, ee), F.bind_value(a, () => F.get(v), (e) => F.set(v, e)), F.transition(3, n, () => l, () => ({ duration: d.fast })), F.append(e, n);
351
+ F.set_attribute(a, "aria-label", p().enterGiftCardCode || "Enter gift card code"), F.set_attribute(a, "placeholder", p().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);
353
353
  };
354
354
  F.if(P, (e) => {
355
355
  F.get(C) && e(de);
356
356
  }), F.reset(re), F.template_effect(() => {
357
- F.set_class(M, 1, `gift-card-toggle ${t.label ?? ""}`, "svelte-emw0hd"), M.disabled = u(), F.set_attribute(M, "aria-expanded", F.get(C)), F.set_text(ce, F.get(S).length > 0 ? p().addAnotherGiftCard || "Add another gift card" : p().haveAGiftCard || "Have a gift card?"), F.set_text(ue, F.get(C) ? "-" : "+");
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 ? p().addAnotherGiftCard || "Add another gift card" : p().haveAGiftCard || "Have a gift card?"), F.set_text(ue, F.get(C) ? "-" : "+");
358
358
  }), F.delegated("click", M, te), F.append(n, re), F.pop();
359
359
  }
360
360
  F.delegate(["click", "keydown"]);
@@ -363,7 +363,7 @@ F.delegate(["click", "keydown"]);
363
363
  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
364
  function Ae(e, n) {
365
365
  F.push(n, !0);
366
- let i = F.prop(n, "open", 15, !1), a = F.prop(n, "onBackToEvents", 3, () => {}), o = F.prop(n, "labels", 3, h), c = F.derived(() => n.reason === "canceled"), l = F.derived(() => F.get(c) ? o().eventCanceledTitle || "Event cancelled" : o().eventPostponedTitle || "Event postponed"), d = F.derived(() => F.get(c) ? o().eventCanceledBody || "This event was cancelled — you weren't charged" : o().eventPostponedBody || "Sales are paused while this show is rescheduled — you weren't charged"), f = F.derived(() => o().backToEvents || "Back to events");
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
367
  E(e, {
368
368
  size: "sm",
369
369
  role: "alertdialog",
@@ -375,47 +375,47 @@ function Ae(e, n) {
375
375
  i(e);
376
376
  },
377
377
  children: (e, n) => {
378
- var i = ke(), o = F.first_child(i);
379
- D(o, {});
380
- var p = F.sibling(o, 2);
381
- k(p, {
378
+ var i = ke(), a = F.first_child(i);
379
+ D(a, {});
380
+ var s = F.sibling(a, 2);
381
+ k(s, {
382
382
  children: (e, n) => {
383
- var i = ke(), o = F.first_child(i);
384
- O(o, {
383
+ var i = ke(), a = F.first_child(i);
384
+ O(a, {
385
385
  children: (e, n) => {
386
386
  var r = Oe(), i = F.child(r), a = F.child(i), o = (e) => {
387
- u(e, { size: "32" });
388
- }, f = (e) => {
389
- s(e, { size: "32" });
387
+ d(e, { size: "32" });
388
+ }, s = (e) => {
389
+ c(e, { size: "32" });
390
390
  };
391
391
  F.if(a, (e) => {
392
- F.get(c) ? e(o) : e(f, -1);
392
+ F.get(l) ? e(o) : e(s, -1);
393
393
  }), F.reset(i);
394
394
  var p = F.sibling(i, 2), m = F.child(p, !0);
395
395
  F.reset(p);
396
396
  var h = F.sibling(p, 2), g = F.child(h, !0);
397
397
  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(c) ? "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(l)), F.set_text(g, F.get(d));
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
399
  }), F.append(e, r);
400
400
  },
401
401
  $$slots: { default: !0 }
402
402
  });
403
- var p = F.sibling(o, 2);
404
- A(p, {
403
+ var s = F.sibling(a, 2);
404
+ A(s, {
405
405
  children: (e, t) => {
406
406
  r(e, {
407
407
  size: "full",
408
408
  variant: "default",
409
409
  get onclick() {
410
- return a();
410
+ return o();
411
411
  },
412
412
  get "aria-label"() {
413
- return F.get(f);
413
+ return F.get(p);
414
414
  },
415
415
  children: (e, t) => {
416
416
  F.next();
417
417
  var n = F.text();
418
- F.template_effect(() => F.set_text(n, F.get(f))), F.append(e, n);
418
+ F.template_effect(() => F.set_text(n, F.get(p))), F.append(e, n);
419
419
  },
420
420
  $$slots: { default: !0 }
421
421
  });
@@ -436,30 +436,30 @@ function Pe(e, t) {
436
436
  F.push(t, !0);
437
437
  let n = F.prop(t, "availableTickets", 23, () => []);
438
438
  F.prop(t, "value", 3, "");
439
- let r = F.prop(t, "venueId", 3, ""), o = F.prop(t, "organizationId", 3, ""), s = F.prop(t, "onNavigateBack", 3, void 0), c = F.prop(t, "initialError", 3, void 0), l = F.prop(t, "widgetId", 3, null), u = F.prop(t, "labels", 3, h), d = F.prop(t, "locale", 3, void 0), f = F.derived(() => (t.data || {}).id);
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), m = F.derived(() => (t.data || {}).id);
440
440
  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(f)) ? {
442
- id: t.data.id || F.get(f),
443
- eventID: t.data.id || F.get(f),
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(m)) ? {
442
+ id: t.data.id || F.get(m),
443
+ eventID: t.data.id || F.get(m),
444
444
  venueID: t.data.venueID ?? t.data.venueId ?? null,
445
445
  venueId: t.data.venueId ?? t.data.venueID ?? null,
446
446
  eventTicketingType: 0,
447
447
  ticketType: 0,
448
448
  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(""), 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);
450
- function ge() {
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() {
451
451
  return {
452
- value: q?.total ?? null,
453
- currency: q?.currency || "USD"
452
+ value: K?.total ?? null,
453
+ currency: K?.currency || "USD"
454
454
  };
455
455
  }
456
456
  pe(async () => {
457
457
  if (F.set(E, P(ie) || P(de.CHECKOUT_CARTID), !0), !F.get(E)) {
458
- F.set(U, !0), F.set(me, u().noCheckoutSession || "No checkout session found. Please select tickets first", !0);
458
+ F.set(me, !0), F.set(he, d().noCheckoutSession || "No checkout session found. Please select tickets first", !0);
459
459
  return;
460
460
  }
461
- y(F.get(x)?.eventID || F.get(x)?.id || F.get(f), l(), r() || F.get(x)?.venueID || F.get(x)?.venueId || null);
462
- let e = F.get(x)?.eventID || F.get(x)?.id || F.get(f);
461
+ v(F.get(x)?.eventID || F.get(x)?.id || F.get(m), u(), r() || F.get(x)?.venueID || F.get(x)?.venueId || null);
462
+ let e = F.get(x)?.eventID || F.get(x)?.id || F.get(m);
463
463
  try {
464
464
  let t = se(e);
465
465
  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);
@@ -489,53 +489,53 @@ function Pe(e, t) {
489
489
  $.error("Error fetching venue data:", e);
490
490
  }
491
491
  let i = X(F.get(D), F.get(k), t);
492
- Object.keys(F.get(D)).length > 0 && await _e();
493
- let o = 900, s = "";
492
+ Object.keys(F.get(D)).length > 0 && await Y();
493
+ let a = 900, s = "";
494
494
  if (F.get(E)) {
495
495
  let e = ae(F.get(E));
496
496
  if (e) {
497
497
  let t = Math.max(0, Math.floor((e - Date.now()) / 1e3));
498
- t > 0 && (o = t);
498
+ t > 0 && (a = t);
499
499
  }
500
500
  try {
501
- let e = await v(F.get(E));
501
+ let e = await y(F.get(E));
502
502
  if (!e.error && e.expiresAt) {
503
- let t = a(e.expiresAt).getTime();
504
- o = Math.max(0, Math.floor((t - Date.now()) / 1e3)), s = e.expiresAt, oe(F.get(E), t);
503
+ let t = o(e.expiresAt).getTime();
504
+ a = Math.max(0, Math.floor((t - Date.now()) / 1e3)), s = e.expiresAt, oe(F.get(E), t);
505
505
  }
506
506
  } catch {}
507
507
  }
508
- let d = P(`checkout-promo-discount-type-${e}`) || "", m = [];
508
+ let c = P(`checkout-promo-discount-type-${e}`) || "", f = [];
509
509
  try {
510
510
  let t = P(`checkout-promo-ticket-ids-${e}`), n = t ? JSON.parse(t) : [];
511
- Array.isArray(n) && (m = n);
511
+ Array.isArray(n) && (f = n);
512
512
  } catch {
513
- m = [];
513
+ f = [];
514
514
  }
515
- let h = p(i.filter((e) => ce(m, e.ticketId)).reduce((e, t) => e + (t.subtotal == null ? 0 : t.subtotal), 0)), g = N(h, F.get(ne), d);
516
- if (F.set(K, {
515
+ let h = p(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, {
517
517
  event: ve(F.get(x), t),
518
518
  lines: i,
519
- timerStart: o,
519
+ timerStart: a,
520
520
  ...s ? { deadlineAt: s } : {},
521
521
  promoApplied: !!F.get(A),
522
522
  promoDiscount: g,
523
523
  forceExpired: !1,
524
- ...q ? { serverTotals: q } : {}
525
- }, !0), c()) {
526
- let e = Z(typeof c() == "object" ? c() : {
524
+ ...K ? { serverTotals: K } : {}
525
+ }, !0), l()) {
526
+ let e = Z(typeof l() == "object" ? l() : {
527
527
  code: "card_declined",
528
528
  message: "Your card was declined. Please try a different payment method."
529
- }, u());
529
+ }, d());
530
530
  F.set(V, {
531
531
  message: e.message,
532
532
  suggestion: e.suggestion
533
533
  }, !0);
534
534
  }
535
535
  });
536
- let Y = 0;
537
- async function _e() {
538
- let e = ++Y;
536
+ let J = 0;
537
+ async function Y() {
538
+ let e = ++J;
539
539
  if (!F.get(E)) {
540
540
  $.error("Missing cartId!");
541
541
  return;
@@ -545,36 +545,36 @@ function Pe(e, t) {
545
545
  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
546
  if (F.get(A)) {
547
547
  let t = await ee(F.get(E), F.get(A));
548
- if (e !== Y) return;
549
- t.success ? F.set(H, "") : ($.error("Failed to apply promo code to cart:", t.error), F.set(H, (u().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));
548
+ if (e !== J) return;
549
+ 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
550
  }
551
- let r = await C(F.get(E), t, Object.keys(n).length > 0 ? n : void 0);
552
- if (e !== Y) return;
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;
553
553
  if (!r) {
554
- F.set(V, { message: u().failedToCreatePaymentIntent || "Failed to create payment intent. Please try again" }, !0);
554
+ F.set(V, { message: d().failedToCreatePaymentIntent || "Failed to create payment intent. Please try again" }, !0);
555
555
  return;
556
556
  }
557
- F.set(J, !1), q = T(r), F.get(K) && F.set(K, {
558
- ...F.get(K),
559
- serverTotals: q
557
+ F.set(q, !1), K = T(r), F.get(G) && F.set(G, {
558
+ ...F.get(G),
559
+ serverTotals: K
560
560
  }, !0);
561
561
  let i = r;
562
562
  if (i.requires_stripe === !1 || i.payment_type === "free") {
563
563
  F.set(z, "free");
564
564
  return;
565
565
  }
566
- F.set(J, q === null);
566
+ F.set(q, K === null);
567
567
  let a = r.stripe_publishable_key;
568
568
  if (!a) {
569
- $.error("No Stripe publishable key in payment intent response"), F.set(V, { message: u().paymentConfigError || "Payment configuration error. Please try again" }, !0);
569
+ $.error("No Stripe publishable key in payment intent response"), F.set(V, { message: d().paymentConfigError || "Payment configuration error. Please try again" }, !0);
570
570
  return;
571
571
  }
572
572
  let o = await xe(a);
573
- if (e !== Y) return;
574
- F.set(R, o, !0), r.client_secret ? F.set(z, r.client_secret, !0) : F.set(V, { message: u().failedToInitPayment || "Failed to initialize payment. Please try again" }, !0);
573
+ if (e !== J) return;
574
+ 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
575
  } catch (t) {
576
- if ($.error("Failed to initialize Stripe payment:", t), e !== Y) return;
577
- F.set(V, { message: t.message || u().failedToInitPayment || "Failed to initialize payment. Please try again" }, !0);
576
+ if ($.error("Failed to initialize Stripe payment:", t), e !== J) return;
577
+ F.set(V, { message: t.message || d().failedToInitPayment || "Failed to initialize payment. Please try again" }, !0);
578
578
  }
579
579
  }
580
580
  function ve(e, t) {
@@ -606,7 +606,7 @@ function Pe(e, t) {
606
606
  id: e.ID || e.id,
607
607
  name: e.name || "",
608
608
  description: e.description || "",
609
- price: m(e.price),
609
+ price: h(e.price),
610
610
  fee: 0,
611
611
  quantityAvailable: e.quantityAvailable || 0,
612
612
  quantityTotal: e.quantityTotal || 0,
@@ -656,40 +656,40 @@ function Pe(e, t) {
656
656
  }
657
657
  return r;
658
658
  }
659
- 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)));
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
660
  async function Q(e) {
661
661
  if (!F.get(j)) {
662
662
  F.set(j, !0), F.set(V, null);
663
663
  try {
664
664
  if (F.get(L)) {
665
- F.set(V, { message: u().paymentReinitializing || "Updating your total. Please wait a moment and try again" }, !0);
665
+ F.set(V, { message: d().paymentReinitializing || "Updating your total. Please wait a moment and try again" }, !0);
666
666
  return;
667
667
  }
668
- if (F.get(G) && !F.get(G).requiresStripe) {
668
+ if (F.get(W) && !F.get(W).requiresStripe) {
669
669
  await Se(e);
670
670
  return;
671
671
  }
672
- if (F.get(be) || F.get(z) === "free" || q?.total === 0) {
672
+ if (F.get(be) || F.get(z) === "free" || K?.total === 0) {
673
673
  await Ce(e);
674
674
  return;
675
675
  }
676
676
  if (!F.get(B)) {
677
677
  F.set(V, {
678
- message: u().paymentFormNotReady || "Payment form is not ready. Please wait a moment and try again",
678
+ message: d().paymentFormNotReady || "Payment form is not ready. Please wait a moment and try again",
679
679
  blocking: !0
680
680
  }, !0), F.set(j, !1);
681
681
  return;
682
682
  }
683
683
  if (!F.get(R)) {
684
684
  F.set(V, {
685
- message: u().paymentSystemNotInitialized || "Payment system is not initialized. Please refresh the page",
685
+ message: d().paymentSystemNotInitialized || "Payment system is not initialized. Please refresh the page",
686
686
  blocking: !0
687
687
  }, !0), F.set(j, !1);
688
688
  return;
689
689
  }
690
690
  let { error: n } = await F.get(B).submit();
691
691
  if (n) {
692
- let e = Z(n, u());
692
+ let e = Z(n, d());
693
693
  F.set(V, {
694
694
  message: e.message,
695
695
  suggestion: e.suggestion
@@ -701,7 +701,7 @@ function Pe(e, t) {
701
701
  redirect: "if_required"
702
702
  });
703
703
  if (i.error) {
704
- let e = Z(i.error, u());
704
+ let e = Z(i.error, d());
705
705
  F.set(V, {
706
706
  message: e.message,
707
707
  suggestion: e.suggestion
@@ -720,26 +720,26 @@ function Pe(e, t) {
720
720
  paymentMethod: "credit-card",
721
721
  mailingList: e.keepMeUpdated,
722
722
  saleType: "online"
723
- }, s = await S(F.get(E), a);
724
- if (s?.eventCanceled || s?.eventPostponed) {
725
- F.set(W, s.eventCanceled ? "canceled" : "postponed", !0), F.set(V, null);
723
+ }, o = await S(F.get(E), a, f());
724
+ if (o?.eventCanceled || o?.eventPostponed) {
725
+ F.set(U, o.eventCanceled ? "canceled" : "postponed", !0), F.set(V, null);
726
726
  return;
727
727
  }
728
- if (s?.status === "Payment succeeded") {
728
+ if (o?.status === "Payment succeeded") {
729
729
  fe(F.get(E), e.email);
730
730
  let n = {
731
731
  orderId: F.get(E),
732
732
  eventId: F.get(x)?.id || F.get(x)?.eventID || null,
733
733
  event: F.get(x) || null,
734
734
  venueId: r() || F.get(x)?.venueId || null,
735
- organizationId: o() || F.get(x)?.organizationId || null,
736
- ...ge()
735
+ organizationId: s() || F.get(x)?.organizationId || null,
736
+ ..._e()
737
737
  };
738
738
  t.onNavigateToSuccess && t.onNavigateToSuccess(n);
739
- } else s?.status === "Payment amount does not match the total price" ? F.set(V, { message: u().paymentAmountMismatch || "Payment amount mismatch. Please refresh and try again" }, !0) : F.set(V, { message: u().paymentValidationFailed || "Payment validation failed. Please try again" }, !0);
739
+ } 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);
740
740
  } catch (e) {
741
741
  $.error("Payment execution error:", e);
742
- let t = Z(e, u());
742
+ let t = Z(e, d());
743
743
  F.set(V, {
744
744
  message: t.message,
745
745
  suggestion: t.suggestion
@@ -758,7 +758,7 @@ function Pe(e, t) {
758
758
  phoneNumber: e.phone || null,
759
759
  questionAnswer: e.questionAnswer,
760
760
  mailingList: e.keepMeUpdated
761
- });
761
+ }, f());
762
762
  if (n?.success) {
763
763
  fe(n.orderId || F.get(E), e.email);
764
764
  let i = {
@@ -766,15 +766,15 @@ function Pe(e, t) {
766
766
  eventId: F.get(x)?.id || F.get(x)?.eventID || null,
767
767
  event: F.get(x) || null,
768
768
  venueId: r() || F.get(x)?.venueId || null,
769
- organizationId: o() || F.get(x)?.organizationId || null,
769
+ organizationId: s() || F.get(x)?.organizationId || null,
770
770
  paymentType: "gift_card_only",
771
- ...ge()
771
+ ..._e()
772
772
  };
773
773
  t.onNavigateToSuccess && t.onNavigateToSuccess(i);
774
- } else F.set(V, { message: n?.error || u().failedToCompleteOrder || "Failed to complete order. Please try again" }, !0);
774
+ } else F.set(V, { message: n?.error || d().failedToCompleteOrder || "Failed to complete order. Please try again" }, !0);
775
775
  } catch (e) {
776
776
  $.error("Gift card payment error:", e);
777
- let t = Z(e, u());
777
+ let t = Z(e, d());
778
778
  F.set(V, {
779
779
  message: t.message,
780
780
  suggestion: t.suggestion
@@ -792,25 +792,25 @@ function Pe(e, t) {
792
792
  phone: e.phone,
793
793
  questionAnswer: e.questionAnswer,
794
794
  mailingList: e.keepMeUpdated
795
- });
795
+ }, f());
796
796
  if (a?.requires_stripe !== !1 && a?.payment_type !== "free" || a?.order_finalized === !1) {
797
- F.set(V, { message: u().failedToCompleteOrder || "Failed to complete order. Please try again" }, !0);
797
+ F.set(V, { message: d().failedToCompleteOrder || "Failed to complete order. Please try again" }, !0);
798
798
  return;
799
799
  }
800
800
  F.set(z, "free"), fe(F.get(E), e.email);
801
- let s = {
801
+ let o = {
802
802
  orderId: F.get(E),
803
803
  eventId: F.get(x)?.id || F.get(x)?.eventID || null,
804
804
  event: F.get(x) || null,
805
805
  venueId: r() || F.get(x)?.venueId || null,
806
- organizationId: o() || F.get(x)?.organizationId || null,
806
+ organizationId: s() || F.get(x)?.organizationId || null,
807
807
  paymentType: "free",
808
- ...ge()
808
+ ..._e()
809
809
  };
810
- t.onNavigateToSuccess && t.onNavigateToSuccess(s);
810
+ t.onNavigateToSuccess && t.onNavigateToSuccess(o);
811
811
  } catch (e) {
812
812
  $.error("Free order completion error:", e);
813
- let t = Z(e, u());
813
+ let t = Z(e, d());
814
814
  F.set(V, {
815
815
  message: t.message,
816
816
  suggestion: t.suggestion
@@ -820,40 +820,40 @@ function Pe(e, t) {
820
820
  }
821
821
  }
822
822
  async function we(e) {
823
- if (F.set(G, e, !0), F.get(K) && q && F.set(K, {
824
- ...F.get(K),
825
- serverTotals: w(q, e)
826
- }, !0), !e.requiresStripe) Y++, F.set(B, void 0), F.set(R, null), F.set(z, "");
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, "");
827
827
  else if (F.get(E) && Object.keys(F.get(D)).length > 0) {
828
828
  F.set(L, !0);
829
829
  try {
830
- await _e();
830
+ await Y();
831
831
  } finally {
832
832
  F.set(L, !1);
833
833
  }
834
834
  }
835
835
  }
836
836
  async function Te() {
837
- if (F.set(G, null), F.get(K) && q && F.set(K, {
838
- ...F.get(K),
839
- serverTotals: q
837
+ if (F.set(W, null), F.get(G) && K && F.set(G, {
838
+ ...F.get(G),
839
+ serverTotals: K
840
840
  }, !0), F.get(E) && Object.keys(F.get(D)).length > 0) {
841
841
  F.set(L, !0);
842
842
  try {
843
- await _e();
843
+ await Y();
844
844
  } finally {
845
845
  F.set(L, !1);
846
846
  }
847
847
  }
848
848
  }
849
849
  function Ee() {
850
- s() ? s()() : window.history.back();
850
+ c() ? c()() : window.history.back();
851
851
  }
852
852
  function Oe() {
853
- s() ? s()() : window.history.back();
853
+ c() ? c()() : window.history.back();
854
854
  }
855
855
  function ke() {
856
- F.set(W, null), Ee();
856
+ F.set(U, null), Ee();
857
857
  }
858
858
  async function Pe() {
859
859
  if (!F.get(E)) return null;
@@ -871,7 +871,7 @@ function Pe(e, t) {
871
871
  {
872
872
  let t = (e) => {
873
873
  {
874
- let t = F.derived(() => F.get(j) || F.get(L)), n = F.derived(() => F.get(K)?.serverTotals?.total ?? 0);
874
+ let t = F.derived(() => F.get(j) || F.get(L)), n = F.derived(() => F.get(G)?.serverTotals?.total ?? 0);
875
875
  De(e, {
876
876
  get cartId() {
877
877
  return F.get(E);
@@ -885,14 +885,14 @@ function Pe(e, t) {
885
885
  return F.get(n);
886
886
  },
887
887
  get labels() {
888
- return u();
888
+ return d();
889
889
  }
890
890
  });
891
891
  }
892
892
  }, n = F.derived(() => F.get(V) ?? (F.get(H) ? { message: F.get(H) } : null));
893
893
  ue(e, {
894
894
  get config() {
895
- return F.get(K);
895
+ return F.get(G);
896
896
  },
897
897
  onPlaceOrder: Q,
898
898
  onBack: Ee,
@@ -905,16 +905,16 @@ function Pe(e, t) {
905
905
  return F.get(z);
906
906
  },
907
907
  get serverTotalsUnavailable() {
908
- return F.get(J);
908
+ return F.get(q);
909
909
  },
910
910
  get paymentError() {
911
911
  return F.get(n);
912
912
  },
913
913
  get labels() {
914
- return u();
914
+ return d();
915
915
  },
916
916
  get locale() {
917
- return d();
917
+ return f();
918
918
  },
919
919
  get elements() {
920
920
  return F.get(B);
@@ -934,28 +934,28 @@ function Pe(e, t) {
934
934
  }
935
935
  }, Re = (e) => {
936
936
  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(me))), F.append(e, t);
937
+ F.reset(n), F.reset(t), F.template_effect(() => F.set_text(r, F.get(he))), F.append(e, t);
938
938
  }, ze = (e) => {
939
939
  var t = Me(), n = F.child(t), r = F.child(n, !0);
940
- F.reset(n), F.reset(t), F.template_effect(() => F.set_text(r, u().loadingSecurePaymentForm || "Loading secure payment form...")), F.append(e, t);
940
+ F.reset(n), F.reset(t), F.template_effect(() => F.set_text(r, d().loadingSecurePaymentForm || "Loading secure payment form...")), F.append(e, t);
941
941
  };
942
942
  F.if(Ie, (e) => {
943
- F.get(K) ? e(Le) : F.get(U) ? e(Re, 1) : e(ze, -1);
943
+ F.get(G) ? e(Le) : F.get(me) ? e(Re, 1) : e(ze, -1);
944
944
  });
945
945
  var Be = F.sibling(Ie, 2), Ve = (e) => {
946
946
  Ae(e, {
947
947
  open: !0,
948
948
  get reason() {
949
- return F.get(W);
949
+ return F.get(U);
950
950
  },
951
951
  onBackToEvents: ke,
952
952
  get labels() {
953
- return u();
953
+ return d();
954
954
  }
955
955
  });
956
956
  };
957
957
  F.if(Be, (e) => {
958
- F.get(he) && e(Ve);
958
+ F.get(ge) && e(Ve);
959
959
  }), F.append(e, Fe), F.pop();
960
960
  }
961
961
  //#endregion