@getmicdrop/venue-calendar 4.3.23 → 4.3.25

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 (106) hide show
  1. package/dist/{ArrowLeftIcon-I5Ui2MMv.js → ArrowLeftIcon-BEoyQzGt.js} +1 -1
  2. package/dist/{BlockPlaceholder-CwJDSlRr.js → BlockPlaceholder-BEiQTRGx.js} +1 -1
  3. package/dist/{Calendar-BDxdp1v2.js → Calendar-iTWNcPZK.js} +236 -230
  4. package/dist/{CalendarFoundryView-BhyEWlgT.js → CalendarFoundryView-CdpyX54O.js} +67 -63
  5. package/dist/{CalendarIcon-iKBZIhcT.js → CalendarIcon-DxOagkl5.js} +1 -1
  6. package/dist/CartView-DSSU-0-_.js +2245 -0
  7. package/dist/{Checkout-BDKHhmry.js → Checkout-7yLVA4hl.js} +247 -247
  8. package/dist/Checkout-CSLSP9pn.js +1845 -0
  9. package/dist/{CheckoutTimer-Bq2I13Ae.js → CheckoutTimer-Dxct5HmQ.js} +5 -5
  10. package/dist/{ChevronDownIcon-BfAxe9v2.js → ChevronDownIcon-DIQAmQyH.js} +1 -1
  11. package/dist/{ClockIcon-nFiAeDJe.js → ClockIcon-CVPj8q7F.js} +1 -1
  12. package/dist/{CloseIcon-DvKvCZWt.js → CloseIcon-BQm8Xs1P.js} +1 -1
  13. package/dist/{CollectionView-Bec8fJQA.js → CollectionView-Ts2WvCFr.js} +6 -6
  14. package/dist/{Event-K1P6JhKj.js → Event-DX0I8oGA.js} +658 -617
  15. package/dist/{EventPage-Yvui8CAC.js → EventPage-DR1G4PGV.js} +295 -262
  16. package/dist/{Input-CwFaXbO6.js → Input-Bpq_mV4s.js} +1 -1
  17. package/dist/{MailIcon-BRBkliz8.js → MailIcon-Wrsqe_uW.js} +1 -1
  18. package/dist/{PasswordInput-DsnCCqzu.js → PasswordInput-eMxkf9IC.js} +1 -1
  19. package/dist/{RecommendationsRail-D_JcJEX0.js → RecommendationsRail-Bxj7iK68.js} +119 -117
  20. package/dist/{ScarcityBadge-Bik8VKze.js → ScarcityBadge-D1IzCyTk.js} +3 -3
  21. package/dist/{SeriesPage-BAqPdsgR.js → SeriesPage-DCTxtpMx.js} +3 -3
  22. package/dist/{Success-CSZ6OYWj.js → Success-Di5qC4Op.js} +17 -17
  23. package/dist/{TagIcon-BlkIiP6A.js → TagIcon-DAHUalS9.js} +1 -1
  24. package/dist/{ViewTicketsEmbed-D1JmKNf1.js → ViewTicketsEmbed-B0agtnsM.js} +33 -33
  25. package/dist/{WarningCircleIcon-mcDExvi6.js → WarningCircleIcon-u-Y8M0N1.js} +1 -1
  26. package/dist/{WarningTriIcon-KJ6AJZhg.js → WarningTriIcon-DroD8KGE.js} +1 -1
  27. package/dist/api/api.cjs +1 -1
  28. package/dist/api/api.mjs +283 -280
  29. package/dist/api/cta.d.ts +4 -0
  30. package/dist/api/types.d.ts +3 -1
  31. package/dist/{api-Bv-5UTvm.js → api-DxEN4thz.js} +79 -79
  32. package/dist/{constants-Dkkkks8H.js → constants-DuFw4kZc.js} +2 -1
  33. package/dist/{copyToClipboard-DGHxXO-R.js → copyToClipboard-CX0-qsMi.js} +1 -1
  34. package/dist/{de-CzupmMIa.js → de-BnjqU4K3.js} +1 -0
  35. package/dist/{defaultLabels-DP7tY9Pg.js → defaultLabels-BgBbv_Mu.js} +243 -234
  36. package/dist/{es-B-vQxM9Z.js → es-BJSttnC2.js} +1 -0
  37. package/dist/{event-transform-CQxO_ACI.js → event-transform-y9eZBvZJ.js} +9 -9
  38. package/dist/{eventStatusStream-CJodQtGK.js → eventStatusStream-uZrfQOCm.js} +1 -1
  39. package/dist/{fr-B2g-kG7i.js → fr-DqfagdtN.js} +1 -0
  40. package/dist/{href-B0sNxICB.js → href-EZSiOTvJ.js} +2 -2
  41. package/dist/{i18n-D6loEmFz.js → i18n-BZAWUSFx.js} +2 -2
  42. package/dist/i18n-CK8CaXLk.js +560 -0
  43. package/dist/{id-Dgu5-FC6.js → id-B1c1JsNl.js} +1 -0
  44. package/dist/{it-C580sMYp.js → it-DiFjoVSe.js} +1 -0
  45. package/dist/{ja-DLki4zXU.js → ja-CfeBSXBd.js} +1 -0
  46. package/dist/{ko-BUcfb1Gi.js → ko-DIjhPkQ7.js} +1 -0
  47. package/dist/locales/4.3.25/flow/de.js +1 -0
  48. package/dist/locales/4.3.25/flow/es.js +1 -0
  49. package/dist/locales/4.3.25/flow/fr.js +1 -0
  50. package/dist/locales/4.3.25/flow/id.js +1 -0
  51. package/dist/locales/4.3.25/flow/it.js +1 -0
  52. package/dist/locales/4.3.25/flow/ja.js +1 -0
  53. package/dist/locales/4.3.25/flow/ko.js +1 -0
  54. package/dist/locales/4.3.25/flow/nl.js +1 -0
  55. package/dist/locales/{4.3.23 → 4.3.25}/flow/pl.js +1 -1
  56. package/dist/locales/4.3.25/flow/pt-br.js +1 -0
  57. package/dist/locales/{4.3.23 → 4.3.25}/flow/tr.js +1 -1
  58. package/dist/locales/4.3.25/flow/zh.js +1 -0
  59. package/dist/{navigation-CJ403ByO.js → navigation-Dh-hGmN9.js} +2 -2
  60. package/dist/{nl-CivAQA0D.js → nl-DH8ATeT-.js} +1 -0
  61. package/dist/{order-totals-sQNKjXcZ.js → order-totals-CfYOfTyw.js} +4 -4
  62. package/dist/{orders-D1dybiYD.js → orders-BQRru8sl.js} +3 -3
  63. package/dist/{phoneUtils-B_9g7GJj.js → phoneUtils-DK8ry3Ji.js} +1 -1
  64. package/dist/{pixels-BMkfBngV.js → pixels-CAgpvPd8.js} +2 -2
  65. package/dist/{pl-C5VwFH2B.js → pl-DHSf0Tay.js} +1 -0
  66. package/dist/{promo-lMaGYLo-.js → promo-aAygcEn7.js} +3 -3
  67. package/dist/{pt-br-B0w9dhVB.js → pt-br-bUE81YH0.js} +1 -0
  68. package/dist/{scarcity-CZEPC-UR.js → scarcity-Dgvp7aCF.js} +67 -67
  69. package/dist/seo/seo.cjs +1 -1
  70. package/dist/seo/seo.mjs +50 -43
  71. package/dist/{serverTotals-BWRzJsle.js → serverTotals-96Luutwl.js} +8 -8
  72. package/dist/{showcase-state-options-CEKhIK66.js → showcase-state-options-DcNFRj34.js} +1 -1
  73. package/dist/{to-event-card-props-DUWp0etY.js → to-event-card-props-CgUk4zJ7.js} +31 -29
  74. package/dist/{tr-LGkP5gpA.js → tr--NLWW7qi.js} +1 -0
  75. package/dist/types/index.d.ts +6 -0
  76. package/dist/{utils-CuLU8uyA.js → utils-CiFOOjQd.js} +72 -69
  77. package/dist/venue-calendar.es.js +1228 -1164
  78. package/dist/venue-calendar.iife.js +52 -52
  79. package/dist/venue-calendar.umd.js +49 -49
  80. package/dist/{zh-D2ZAdq3T.js → zh-ZYCR67Kf.js} +1 -0
  81. package/package.json +2 -2
  82. package/dist/CartView-9PGGgyk_.js +0 -2245
  83. package/dist/Checkout-BP3JTPsO.js +0 -1845
  84. package/dist/i18n-CMpXpjPv.js +0 -544
  85. package/dist/locales/4.3.23/flow/de.js +0 -1
  86. package/dist/locales/4.3.23/flow/es.js +0 -1
  87. package/dist/locales/4.3.23/flow/fr.js +0 -1
  88. package/dist/locales/4.3.23/flow/id.js +0 -1
  89. package/dist/locales/4.3.23/flow/it.js +0 -1
  90. package/dist/locales/4.3.23/flow/ja.js +0 -1
  91. package/dist/locales/4.3.23/flow/ko.js +0 -1
  92. package/dist/locales/4.3.23/flow/nl.js +0 -1
  93. package/dist/locales/4.3.23/flow/pt-br.js +0 -1
  94. package/dist/locales/4.3.23/flow/zh.js +0 -1
  95. /package/dist/locales/{4.3.23 → 4.3.25}/main/de.js +0 -0
  96. /package/dist/locales/{4.3.23 → 4.3.25}/main/es.js +0 -0
  97. /package/dist/locales/{4.3.23 → 4.3.25}/main/fr.js +0 -0
  98. /package/dist/locales/{4.3.23 → 4.3.25}/main/id.js +0 -0
  99. /package/dist/locales/{4.3.23 → 4.3.25}/main/it.js +0 -0
  100. /package/dist/locales/{4.3.23 → 4.3.25}/main/ja.js +0 -0
  101. /package/dist/locales/{4.3.23 → 4.3.25}/main/ko.js +0 -0
  102. /package/dist/locales/{4.3.23 → 4.3.25}/main/nl.js +0 -0
  103. /package/dist/locales/{4.3.23 → 4.3.25}/main/pl.js +0 -0
  104. /package/dist/locales/{4.3.23 → 4.3.25}/main/pt-br.js +0 -0
  105. /package/dist/locales/{4.3.23 → 4.3.25}/main/tr.js +0 -0
  106. /package/dist/locales/{4.3.23 → 4.3.25}/main/zh.js +0 -0
@@ -1,26 +1,26 @@
1
1
  import { C as e, E as t, S as n } from "./Button-klwKgfhG.js";
2
- import { n as r, r as i, t as a } from "./CloseIcon-DvKvCZWt.js";
3
- import { i as o } from "./Input-CwFaXbO6.js";
4
- import { D as s, S as c, p as l } from "./scarcity-CZEPC-UR.js";
5
- import { t as u } from "./TagIcon-BlkIiP6A.js";
6
- import { t as d } from "./WarningTriIcon-KJ6AJZhg.js";
2
+ import { n as r, r as i, t as a } from "./CloseIcon-BQm8Xs1P.js";
3
+ import { i as o } from "./Input-Bpq_mV4s.js";
4
+ import { D as s, S as c, p as l } from "./scarcity-Dgvp7aCF.js";
5
+ import { t as u } from "./TagIcon-DAHUalS9.js";
6
+ import { t as d } from "./WarningTriIcon-DroD8KGE.js";
7
7
  import { d as f, n as p } from "./z-index-BgKs9X9U.js";
8
- import { I as m, i as h, k as ee, n as g, t as _, y as v } from "./defaultLabels-DP7tY9Pg.js";
9
- import { V as y, f as b, i as x, n as S, r as te, s as C, t as w } from "./orders-D1dybiYD.js";
10
- import { n as T, t as ne } from "./serverTotals-BWRzJsle.js";
11
- import { a as E, i as D, n as O, r as k, t as A } from "./ModalFooter-D21lJobf.js";
12
- import { t as j } from "./navigation-CJ403ByO.js";
13
- import { a as re, o as ie, s as M, v as ae } from "./api-Bv-5UTvm.js";
8
+ import { M as m, b as h, i as g, n as _, t as v, z as y } from "./defaultLabels-BgBbv_Mu.js";
9
+ import { V as b, f as x, i as S, n as C, r as ee, s as w, t as T } from "./orders-BQRru8sl.js";
10
+ import { n as E, t as te } from "./serverTotals-96Luutwl.js";
11
+ import { a as D, i as O, n as k, r as A, t as j } from "./ModalFooter-D21lJobf.js";
12
+ import { t as ne } from "./navigation-Dh-hGmN9.js";
13
+ import { a as re, o as ie, s as M, v as ae } from "./api-DxEN4thz.js";
14
14
  import { t as oe } from "./venue-CBos8YTa.js";
15
- import { t as N } from "./event-transform-CQxO_ACI.js";
16
- import { _ as se, h as ce, l as le, r as ue, y as de } from "./utils-CuLU8uyA.js";
17
- import { a as fe, n as pe } from "./promo-lMaGYLo-.js";
18
- import { r as me } from "./order-totals-sQNKjXcZ.js";
19
- import he, { n as ge, t as _e } from "./Checkout-BP3JTPsO.js";
20
- import { n as ve } from "./buyerEmail-BfCq-gDt.js";
15
+ import { t as N } from "./event-transform-y9eZBvZJ.js";
16
+ import { b as se, g as ce, h as le, l as ue, r as de, v as fe } from "./utils-CiFOOjQd.js";
17
+ import { a as pe, n as me } from "./promo-aAygcEn7.js";
18
+ import { r as he } from "./order-totals-CfYOfTyw.js";
19
+ import ge, { n as _e, t as ve } from "./Checkout-CSLSP9pn.js";
20
+ import { n as ye } from "./buyerEmail-BfCq-gDt.js";
21
21
  import "svelte/internal/disclose-version";
22
22
  import * as P from "svelte/internal/client";
23
- import { onMount as ye } from "svelte";
23
+ import { onMount as be } from "svelte";
24
24
  //#region node_modules/@stripe/stripe-js/dist/index.mjs
25
25
  function F(e) {
26
26
  "@babel/helpers - typeof";
@@ -30,23 +30,23 @@ function F(e) {
30
30
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
31
31
  }, F(e);
32
32
  }
33
- var I = "dahlia", L = function(e) {
33
+ var xe = "dahlia", I = function(e) {
34
34
  return e === 3 ? "v3" : e;
35
- }, be = "https://js.stripe.com", R = `${be}/${I}/stripe.js`, z = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, B = /^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/, V = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", H = function(e) {
35
+ }, L = "https://js.stripe.com", R = `${L}/${xe}/stripe.js`, z = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, B = /^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/, V = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", H = function(e) {
36
36
  return z.test(e) || B.test(e);
37
37
  }, U = function() {
38
- for (var e = document.querySelectorAll(`script[src^="${be}"]`), t = 0; t < e.length; t++) {
38
+ for (var e = document.querySelectorAll(`script[src^="${L}"]`), t = 0; t < e.length; t++) {
39
39
  var n = e[t];
40
40
  if (H(n.src)) return n;
41
41
  }
42
42
  return null;
43
- }, xe = function(e) {
43
+ }, Se = function(e) {
44
44
  var t = e && !e.advancedFraudSignals ? "?advancedFraudSignals=false" : "", n = document.createElement("script");
45
45
  n.src = `${R}${t}`;
46
46
  var r = document.head || document.body;
47
47
  if (!r) throw Error("Expected document.body not to be null. Stripe.js requires a <body> element.");
48
48
  return r.appendChild(n), n;
49
- }, Se = function(e, t) {
49
+ }, Ce = function(e, t) {
50
50
  !e || !e._registerWrapper || e._registerWrapper({
51
51
  name: "stripe-js",
52
52
  version: "9.13.0",
@@ -60,7 +60,7 @@ var I = "dahlia", L = function(e) {
60
60
  return function() {
61
61
  window.Stripe ? e(window.Stripe) : t(/* @__PURE__ */ Error("Stripe.js not available"));
62
62
  };
63
- }, Ce = function(e) {
63
+ }, we = function(e) {
64
64
  return W === null ? (W = new Promise(function(t, n) {
65
65
  if (typeof window > "u" || typeof document > "u") {
66
66
  t(null);
@@ -73,10 +73,10 @@ var I = "dahlia", L = function(e) {
73
73
  try {
74
74
  var r = U();
75
75
  if (r && e) console.warn(V);
76
- else if (!r) r = xe(e);
76
+ else if (!r) r = Se(e);
77
77
  else if (r && K !== null && G !== null) {
78
78
  var i;
79
- r.removeEventListener("load", K), r.removeEventListener("error", G), (i = r.parentNode) == null || i.removeChild(r), r = xe(e);
79
+ r.removeEventListener("load", K), r.removeEventListener("error", G), (i = r.parentNode) == null || i.removeChild(r), r = Se(e);
80
80
  }
81
81
  K = J(t, n), G = q(n), r.addEventListener("load", K), r.addEventListener("error", G);
82
82
  } catch (e) {
@@ -86,35 +86,35 @@ var I = "dahlia", L = function(e) {
86
86
  }), W.catch(function(e) {
87
87
  return W = null, Promise.reject(e);
88
88
  })) : W;
89
- }, we = function(e, t, n) {
89
+ }, Te = function(e, t, n) {
90
90
  if (e === null) return null;
91
91
  var r = t[0];
92
92
  if (typeof r != "string") throw Error(`Expected publishable key to be of type string, got type ${F(r)} instead.`);
93
- var i = r.match(/^pk_test/), a = L(e.version), o = I;
93
+ var i = r.match(/^pk_test/), a = I(e.version), o = xe;
94
94
  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`);
95
95
  var s = e.apply(void 0, t);
96
- return Se(s, n), s;
97
- }, Y, X = !1, Te = function() {
98
- return Y || (Y = Ce(null).catch(function(e) {
96
+ return Ce(s, n), s;
97
+ }, Y, X = !1, Ee = function() {
98
+ return Y || (Y = we(null).catch(function(e) {
99
99
  return Y = null, Promise.reject(e);
100
100
  }), Y);
101
101
  };
102
102
  Promise.resolve().then(function() {
103
- return Te();
103
+ return Ee();
104
104
  }).catch(function(e) {
105
105
  X || console.warn(e);
106
106
  });
107
- var Ee = function() {
107
+ var De = function() {
108
108
  var e = [...arguments];
109
109
  X = !0;
110
110
  var t = Date.now();
111
- return Te().then(function(n) {
112
- return we(n, e, t);
111
+ return Ee().then(function(n) {
112
+ return Te(n, e, t);
113
113
  });
114
114
  };
115
115
  //#endregion
116
116
  //#region src/lib/utils/stripe-errors.ts
117
- function Z(e, t = _) {
117
+ function Z(e, t = v) {
118
118
  let n = e?.code || e?.decline_code || "", r = e?.type || "", i = e?.message || "";
119
119
  if (n === "card_declined" || r === "card_error") {
120
120
  let n = e?.decline_code || "";
@@ -184,100 +184,100 @@ function Z(e, t = _) {
184
184
  }
185
185
  //#endregion
186
186
  //#region src/components/Events/Checkout/GiftCardInput.svelte
187
- var Q = t("GiftCardInput"), De = P.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>"), Oe = P.from_html("<div class=\"applied-card mb-3 svelte-emw0hd\"><div><!> <span> </span></div></div>"), ke = P.from_html("<div class=\"flex items-center gap-1.5 mt-2 type-body text-accent-danger\"><!> <span> </span></div>"), Ae = P.from_html("<div class=\"input-section svelte-emw0hd\"><div class=\"flex gap-2\"><input type=\"text\" name=\"giftCardCode\" autocomplete=\"off\" autocapitalize=\"characters\"/> <!></div> <!></div>"), je = P.from_html("<div class=\"mb-4\"><!> <!> <button type=\"button\"><!> <span> </span> <span class=\"toggle-indicator svelte-emw0hd\"> </span></button> <!></div>");
188
- function Me(t, i) {
187
+ var Q = t("GiftCardInput"), Oe = P.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>"), ke = P.from_html("<div class=\"applied-card mb-3 svelte-emw0hd\"><div><!> <span> </span></div></div>"), Ae = P.from_html("<div class=\"flex items-center gap-1.5 mt-2 type-body text-accent-danger\"><!> <span> </span></div>"), je = P.from_html("<div class=\"input-section svelte-emw0hd\"><div class=\"flex gap-2\"><input type=\"text\" name=\"giftCardCode\" autocomplete=\"off\" autocapitalize=\"characters\"/> <!></div> <!></div>"), Me = P.from_html("<div class=\"mb-4\"><!> <!> <button type=\"button\"><!> <span> </span> <span class=\"toggle-indicator svelte-emw0hd\"> </span></button> <!></div>");
188
+ function Ne(t, i) {
189
189
  P.push(i, !0);
190
- let o = P.prop(i, "onApplied", 3, () => {}), s = P.prop(i, "onRemoved", 3, () => {}), l = P.prop(i, "disabled", 3, !1), m = P.prop(i, "labels", 3, _), ee = P.prop(i, "owedTotal", 3, 0), g = P.prop(i, "serverGiftCardAmount", 3, null), v = P.state(""), y = P.state(!1), b = P.state(""), x = P.state(P.proxy([])), S = P.state(!1), C = P.state(0);
190
+ let o = P.prop(i, "onApplied", 3, () => {}), s = P.prop(i, "onRemoved", 3, () => {}), l = P.prop(i, "disabled", 3, !1), m = P.prop(i, "labels", 3, v), h = P.prop(i, "owedTotal", 3, 0), _ = P.prop(i, "serverGiftCardAmount", 3, null), y = P.state(""), b = P.state(!1), x = P.state(""), S = P.state(P.proxy([])), C = P.state(!1), w = P.state(0);
191
191
  P.user_effect(() => {
192
- if (!i.cartId || P.get(x).length > 0 || g() === 0) return;
192
+ if (!i.cartId || P.get(S).length > 0 || _() === 0) return;
193
193
  let e = !1;
194
- return te(i.cartId).then((t) => {
194
+ return ee(i.cartId).then((t) => {
195
195
  if (e || !t?.giftCards?.length) return;
196
196
  let n = t.giftCards.filter((e) => typeof e.amount == "number");
197
- n.length !== t.giftCards.length && Q.error("Ignored applied gift card(s) with an unusable amount while restoring the panel"), n.length !== 0 && (P.set(x, n.map((e) => ({
197
+ n.length !== t.giftCards.length && Q.error("Ignored applied gift card(s) with an unusable amount while restoring the panel"), n.length !== 0 && (P.set(S, n.map((e) => ({
198
198
  giftCardId: e.giftCardId,
199
199
  code: e.maskedCode,
200
200
  giftCardAmount: e.amount
201
- })), !0), P.set(C, P.get(x).reduce((e, t) => e + (t.giftCardAmount || 0), 0) + (ee() || 0)));
201
+ })), !0), P.set(w, P.get(S).reduce((e, t) => e + (t.giftCardAmount || 0), 0) + (h() || 0)));
202
202
  }).catch((e) => Q.error("Could not restore applied gift cards:", e)), () => {
203
203
  e = !0;
204
204
  };
205
205
  });
206
- let w = P.derived(() => P.get(x).reduce((e, t) => e + (t.giftCardAmount || 0), 0)), T = P.derived(() => Math.max(0, P.get(C) - P.get(w))), ne = P.derived(() => P.get(x).length > 0 && P.get(T) <= 0);
207
- function E() {
208
- if (P.get(x).length === 0) {
206
+ let T = P.derived(() => P.get(S).reduce((e, t) => e + (t.giftCardAmount || 0), 0)), E = P.derived(() => Math.max(0, P.get(w) - P.get(T))), te = P.derived(() => P.get(S).length > 0 && P.get(E) <= 0);
207
+ function D() {
208
+ if (P.get(S).length === 0) {
209
209
  s()();
210
210
  return;
211
211
  }
212
212
  o()({
213
- code: P.get(x).map((e) => e.code).join(", "),
214
- giftCardAmount: P.get(w),
215
- stripeAmount: P.get(T),
216
- requiresStripe: P.get(T) > 0,
217
- paymentType: P.get(T) > 0 ? "split" : "gift_card_only",
218
- orderTotal: P.get(C)
213
+ code: P.get(S).map((e) => e.code).join(", "),
214
+ giftCardAmount: P.get(T),
215
+ stripeAmount: P.get(E),
216
+ requiresStripe: P.get(E) > 0,
217
+ paymentType: P.get(E) > 0 ? "split" : "gift_card_only",
218
+ orderTotal: P.get(w)
219
219
  });
220
220
  }
221
- async function D() {
222
- let e = P.get(v).trim().toUpperCase();
223
- if (!(!e || P.get(y) || !i.cartId)) {
224
- if (P.get(x).some((t) => t.code === e)) {
225
- P.set(b, m().giftCardAlreadyApplied || "That gift card is already applied", !0);
221
+ async function O() {
222
+ let e = P.get(y).trim().toUpperCase();
223
+ if (!(!e || P.get(b) || !i.cartId)) {
224
+ if (P.get(S).some((t) => t.code === e)) {
225
+ P.set(x, m().giftCardAlreadyApplied || "That gift card is already applied", !0);
226
226
  return;
227
227
  }
228
- P.set(y, !0), P.set(b, "");
228
+ P.set(b, !0), P.set(x, "");
229
229
  try {
230
230
  let t = await re(i.cartId, e);
231
- t.valid ? (P.set(x, [...P.get(x), {
231
+ t.valid ? (P.set(S, [...P.get(S), {
232
232
  code: t.giftCardCode || e,
233
233
  giftCardAmount: t.giftCardAmount || 0
234
- }], !0), P.set(C, P.get(w) + (t.stripeAmount || 0)), P.set(v, ""), P.set(S, !1), E()) : P.set(b, t.error || m().invalidGiftCardCode || "Invalid gift card code", !0);
234
+ }], !0), P.set(w, P.get(T) + (t.stripeAmount || 0)), P.set(y, ""), P.set(C, !1), D()) : P.set(x, t.error || m().invalidGiftCardCode || "Invalid gift card code", !0);
235
235
  } catch (e) {
236
236
  Q.error("Error applying gift card:", e);
237
237
  let t = e && typeof e == "object" && typeof e.message == "string" ? e.message : "";
238
- P.set(b, t || m().failedToApplyGiftCard || "Failed to apply gift card. Please try again", !0);
238
+ P.set(x, t || m().failedToApplyGiftCard || "Failed to apply gift card. Please try again", !0);
239
239
  }
240
- P.set(y, !1);
240
+ P.set(b, !1);
241
241
  }
242
242
  }
243
- async function O(e) {
244
- if (!(P.get(y) || !i.cartId)) {
245
- P.set(y, !0), P.set(b, "");
243
+ async function k(e) {
244
+ if (!(P.get(b) || !i.cartId)) {
245
+ P.set(b, !0), P.set(x, "");
246
246
  try {
247
- let t = P.get(x).find((t) => t.code === e), n = await M(i.cartId, t?.giftCardId ? { giftCardId: t.giftCardId } : { code: e });
248
- n.success !== !1 && !n.error ? (P.set(x, P.get(x).filter((t) => t.code !== e), !0), typeof n.remainingTotal == "number" && P.set(C, P.get(w) + n.remainingTotal), E()) : P.set(b, n.error || m().failedToRemoveGiftCard || "Failed to remove gift card. Please try again", !0);
247
+ let t = P.get(S).find((t) => t.code === e), n = await M(i.cartId, t?.giftCardId ? { giftCardId: t.giftCardId } : { code: e });
248
+ n.success !== !1 && !n.error ? (P.set(S, P.get(S).filter((t) => t.code !== e), !0), typeof n.remainingTotal == "number" && P.set(w, P.get(T) + n.remainingTotal), D()) : P.set(x, n.error || m().failedToRemoveGiftCard || "Failed to remove gift card. Please try again", !0);
249
249
  } catch (e) {
250
- Q.error("Error removing gift card:", e), P.set(b, m().failedToRemoveGiftCard || "Failed to remove gift card. Please try again", !0);
250
+ Q.error("Error removing gift card:", e), P.set(x, m().failedToRemoveGiftCard || "Failed to remove gift card. Please try again", !0);
251
251
  }
252
- P.set(y, !1);
252
+ P.set(b, !1);
253
253
  }
254
254
  }
255
- function k(e) {
256
- e.key === "Enter" && !P.get(y) && D();
255
+ function A(e) {
256
+ e.key === "Enter" && !P.get(b) && O();
257
257
  }
258
- function A() {
259
- P.set(S, !P.get(S)), P.get(S) || (P.set(v, ""), P.set(b, ""));
258
+ function j() {
259
+ P.set(C, !P.get(C)), P.get(C) || (P.set(y, ""), P.set(x, ""));
260
260
  }
261
- var j = je(), ie = P.child(j);
262
- P.each(ie, 17, () => P.get(x), (e) => e.code, (e, t) => {
263
- var n = De(), i = P.child(n), o = P.child(i), s = P.child(o);
261
+ var ne = Me(), ie = P.child(ne);
262
+ P.each(ie, 17, () => P.get(S), (e) => e.code, (e, t) => {
263
+ var n = Oe(), i = P.child(n), o = P.child(i), s = P.child(o);
264
264
  r(s, { size: "16" }), P.reset(o);
265
- var u = P.sibling(o, 2), d = P.child(u), ee = P.child(d, !0);
265
+ var u = P.sibling(o, 2), d = P.child(u), h = P.child(d, !0);
266
266
  P.reset(d);
267
- var g = P.sibling(d, 2), _ = P.child(g, !0);
268
- P.reset(g), P.reset(u);
269
- var v = P.sibling(u, 2), b = P.child(v);
270
- P.reset(v);
271
- var x = P.sibling(v, 2);
267
+ var _ = P.sibling(d, 2), v = P.child(_, !0);
268
+ P.reset(_), P.reset(u);
269
+ var y = P.sibling(u, 2), x = P.child(y);
270
+ P.reset(y);
271
+ var S = P.sibling(y, 2);
272
272
  {
273
273
  let e = P.derived(() => m().removeGiftCard || "Remove gift card");
274
- h(x, {
274
+ g(S, {
275
275
  variant: "icon",
276
276
  size: "icon-sm",
277
277
  class: "rounded-full hover:bg-status-error-bg hover:text-accent-danger",
278
- onclick: () => O(P.get(t).code),
278
+ onclick: () => k(P.get(t).code),
279
279
  get loading() {
280
- return P.get(y);
280
+ return P.get(b);
281
281
  },
282
282
  get disabled() {
283
283
  return l();
@@ -292,11 +292,11 @@ function Me(t, i) {
292
292
  });
293
293
  }
294
294
  P.reset(i), P.reset(n), P.template_effect((e) => {
295
- P.set_text(ee, m().giftCardApplied || "Gift card applied"), P.set_text(_, P.get(t).code), P.set_text(b, `-${e ?? ""}`);
295
+ P.set_text(h, m().giftCardApplied || "Gift card applied"), P.set_text(v, P.get(t).code), P.set_text(x, `-${e ?? ""}`);
296
296
  }, [() => c(P.get(t).giftCardAmount)]), P.transition(3, n, () => f, () => ({ duration: p.fast })), P.append(e, n);
297
297
  });
298
298
  var ae = P.sibling(ie, 2), oe = (t) => {
299
- var i = Oe(), a = P.child(i), o = P.child(a);
299
+ var i = ke(), a = P.child(i), o = P.child(a);
300
300
  r(o, { size: "16" });
301
301
  var s = P.sibling(o, 2), c = P.child(s, !0);
302
302
  P.reset(s), P.reset(a), P.reset(i), P.template_effect(() => {
@@ -304,7 +304,7 @@ function Me(t, i) {
304
304
  }), P.append(t, i);
305
305
  };
306
306
  P.if(ae, (e) => {
307
- P.get(ne) && e(oe);
307
+ P.get(te) && e(oe);
308
308
  });
309
309
  var N = P.sibling(ae, 2), se = P.child(N);
310
310
  u(se, {
@@ -316,19 +316,19 @@ function Me(t, i) {
316
316
  var ue = P.sibling(ce, 2), de = P.child(ue, !0);
317
317
  P.reset(ue), P.reset(N);
318
318
  var fe = P.sibling(N, 2), pe = (t) => {
319
- var n = Ae(), r = P.child(n), i = P.child(r);
319
+ var n = je(), r = P.child(n), i = P.child(r);
320
320
  P.remove_input_defaults(i);
321
321
  let a;
322
322
  var o = P.sibling(i, 2);
323
323
  {
324
- let e = P.derived(() => !P.get(v).trim() || l());
325
- h(o, {
324
+ let e = P.derived(() => !P.get(y).trim() || l());
325
+ g(o, {
326
326
  variant: "default",
327
327
  size: "sm",
328
328
  class: "min-w-16 shrink-0",
329
- onclick: D,
329
+ onclick: O,
330
330
  get loading() {
331
- return P.get(y);
331
+ return P.get(b);
332
332
  },
333
333
  get disabled() {
334
334
  return P.get(e);
@@ -343,31 +343,31 @@ function Me(t, i) {
343
343
  }
344
344
  P.reset(r);
345
345
  var s = P.sibling(r, 2), c = (e) => {
346
- var t = ke(), n = P.child(t);
346
+ var t = Ae(), n = P.child(t);
347
347
  d(n, { size: "16" });
348
348
  var r = P.sibling(n, 2), i = P.child(r, !0);
349
- P.reset(r), P.reset(t), P.template_effect(() => P.set_text(i, P.get(b))), P.transition(3, t, () => f, () => ({ duration: p.micro })), P.append(e, t);
349
+ P.reset(r), P.reset(t), P.template_effect(() => P.set_text(i, P.get(x))), P.transition(3, t, () => f, () => ({ duration: p.micro })), P.append(e, t);
350
350
  };
351
351
  P.if(s, (e) => {
352
- P.get(b) && e(c);
352
+ P.get(x) && e(c);
353
353
  }), P.reset(n), P.template_effect(() => {
354
- P.set_attribute(i, "aria-label", m().enterGiftCardCode || "Enter gift card code"), P.set_attribute(i, "placeholder", m().enterGiftCardCode || "Enter gift card code"), i.disabled = P.get(y) || l(), a = P.set_class(i, 1, `gift-input ${e.body ?? ""}`, "svelte-emw0hd", a, { "has-error": !!P.get(b) });
355
- }), P.delegated("keydown", i, k), P.bind_value(i, () => P.get(v), (e) => P.set(v, e)), P.transition(3, n, () => f, () => ({ duration: p.fast })), P.append(t, n);
354
+ P.set_attribute(i, "aria-label", m().enterGiftCardCode || "Enter gift card code"), P.set_attribute(i, "placeholder", m().enterGiftCardCode || "Enter gift card code"), i.disabled = P.get(b) || l(), a = P.set_class(i, 1, `gift-input ${e.body ?? ""}`, "svelte-emw0hd", a, { "has-error": !!P.get(x) });
355
+ }), P.delegated("keydown", i, A), P.bind_value(i, () => P.get(y), (e) => P.set(y, e)), P.transition(3, n, () => f, () => ({ duration: p.fast })), P.append(t, n);
356
356
  };
357
357
  P.if(fe, (e) => {
358
- P.get(S) && e(pe);
359
- }), P.reset(j), P.template_effect(() => {
360
- P.set_class(N, 1, `gift-card-toggle ${e.label ?? ""}`, "svelte-emw0hd"), N.disabled = l(), P.set_attribute(N, "aria-expanded", P.get(S)), P.set_text(le, P.get(x).length > 0 ? m().addAnotherGiftCard || "Add another gift card" : m().haveAGiftCard || "Have a gift card?"), P.set_text(de, P.get(S) ? "-" : "+");
361
- }), P.delegated("click", N, A), P.append(t, j), P.pop();
358
+ P.get(C) && e(pe);
359
+ }), P.reset(ne), P.template_effect(() => {
360
+ P.set_class(N, 1, `gift-card-toggle ${e.label ?? ""}`, "svelte-emw0hd"), N.disabled = l(), P.set_attribute(N, "aria-expanded", P.get(C)), P.set_text(le, P.get(S).length > 0 ? m().addAnotherGiftCard || "Add another gift card" : m().haveAGiftCard || "Have a gift card?"), P.set_text(de, P.get(C) ? "-" : "+");
361
+ }), P.delegated("click", N, j), P.append(t, ne), P.pop();
362
362
  }
363
363
  P.delegate(["click", "keydown"]);
364
364
  //#endregion
365
365
  //#region src/components/Modals/EventUnavailableModal.svelte
366
- var Ne = P.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>"), Pe = P.from_html("<!> <!>", 1);
367
- function Fe(t, n) {
366
+ var Pe = P.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>"), Fe = P.from_html("<!> <!>", 1);
367
+ function Ie(t, n) {
368
368
  P.push(n, !0);
369
- let r = P.prop(n, "open", 15, !1), a = P.prop(n, "onBackToEvents", 3, () => {}), s = P.prop(n, "labels", 3, _), c = P.derived(() => n.reason === "canceled"), l = P.derived(() => P.get(c) ? s().eventCanceledTitle || "Event cancelled" : s().eventPostponedTitle || "Event postponed"), u = P.derived(() => P.get(c) ? s().eventCanceledBody || "This event was cancelled — you weren't charged" : s().eventPostponedBody || "Sales are paused while this show is rescheduled — you weren't charged"), d = P.derived(() => s().backToEvents || "Back to events");
370
- E(t, {
369
+ let r = P.prop(n, "open", 15, !1), a = P.prop(n, "onBackToEvents", 3, () => {}), s = P.prop(n, "labels", 3, v), c = P.derived(() => n.reason === "canceled"), l = P.derived(() => P.get(c) ? s().eventCanceledTitle || "Event cancelled" : s().eventPostponedTitle || "Event postponed"), u = P.derived(() => P.get(c) ? s().eventCanceledBody || "This event was cancelled — you weren't charged" : s().eventPostponedBody || "Sales are paused while this show is rescheduled — you weren't charged"), d = P.derived(() => s().backToEvents || "Back to events");
370
+ D(t, {
371
371
  size: "sm",
372
372
  role: "alertdialog",
373
373
  class: "micdrop",
@@ -378,15 +378,15 @@ function Fe(t, n) {
378
378
  r(e);
379
379
  },
380
380
  children: (t, n) => {
381
- var r = Pe(), s = P.first_child(r);
382
- D(s, {});
381
+ var r = Fe(), s = P.first_child(r);
382
+ O(s, {});
383
383
  var f = P.sibling(s, 2);
384
- k(f, {
384
+ A(f, {
385
385
  children: (t, n) => {
386
- var r = Pe(), s = P.first_child(r);
387
- O(s, {
386
+ var r = Fe(), s = P.first_child(r);
387
+ k(s, {
388
388
  children: (t, n) => {
389
- var r = Ne(), a = P.child(r), s = P.child(a), d = (e) => {
389
+ var r = Pe(), a = P.child(r), s = P.child(a), d = (e) => {
390
390
  o(e, { size: "32" });
391
391
  }, f = (e) => {
392
392
  i(e, { size: "32" });
@@ -396,17 +396,17 @@ function Fe(t, n) {
396
396
  }), P.reset(a);
397
397
  var p = P.sibling(a, 2), m = P.child(p, !0);
398
398
  P.reset(p);
399
- var h = P.sibling(p, 2), ee = P.child(h, !0);
399
+ var h = P.sibling(p, 2), g = P.child(h, !0);
400
400
  P.reset(h), P.reset(r), P.template_effect(() => {
401
- P.set_class(a, 1, `w-16 h-16 rounded-full flex items-center justify-center mb-4 ${P.get(c) ? "bg-accent-danger/10 text-accent-danger" : "bg-accent-warning/10 text-accent-warning"}`), P.set_class(p, 1, `mb-2 ${e.heading ?? ""}`), P.set_text(m, P.get(l)), P.set_text(ee, P.get(u));
401
+ P.set_class(a, 1, `w-16 h-16 rounded-full flex items-center justify-center mb-4 ${P.get(c) ? "bg-accent-danger/10 text-accent-danger" : "bg-accent-warning/10 text-accent-warning"}`), P.set_class(p, 1, `mb-2 ${e.heading ?? ""}`), P.set_text(m, P.get(l)), P.set_text(g, P.get(u));
402
402
  }), P.append(t, r);
403
403
  },
404
404
  $$slots: { default: !0 }
405
405
  });
406
406
  var f = P.sibling(s, 2);
407
- A(f, {
407
+ j(f, {
408
408
  children: (e, t) => {
409
- h(e, {
409
+ g(e, {
410
410
  size: "full",
411
411
  variant: "default",
412
412
  get onclick() {
@@ -434,12 +434,12 @@ function Fe(t, n) {
434
434
  }
435
435
  //#endregion
436
436
  //#region src/components/Views/Checkout.svelte
437
- var $ = t("Checkout"), Ie = P.from_html("<div class=\"p-8 text-center\"><p class=\"text-accent-danger\"> </p></div>"), Le = P.from_html("<div class=\"p-8 text-center\"><p class=\"tone-muted\"> </p></div>"), Re = P.from_html("<!> <!>", 1);
438
- function ze(e, t) {
437
+ var $ = t("Checkout"), Le = P.from_html("<div class=\"p-8 text-center\"><p class=\"text-accent-danger\"> </p></div>"), Re = P.from_html("<div class=\"p-8 text-center\"><p class=\"tone-muted\"> </p></div>"), ze = P.from_html("<!> <!>", 1);
438
+ function Be(e, t) {
439
439
  P.push(t, !0);
440
440
  let n = P.prop(t, "availableTickets", 23, () => []);
441
441
  P.prop(t, "value", 3, "");
442
- let r = P.prop(t, "venueId", 3, ""), i = P.prop(t, "organizationId", 3, ""), a = P.prop(t, "onNavigateBack", 3, void 0), o = P.prop(t, "initialError", 3, void 0), c = P.prop(t, "widgetId", 3, null), u = P.prop(t, "labels", 3, _), d = P.prop(t, "locale", 3, void 0);
442
+ let r = P.prop(t, "venueId", 3, ""), i = P.prop(t, "organizationId", 3, ""), a = P.prop(t, "onNavigateBack", 3, void 0), o = P.prop(t, "initialError", 3, void 0), c = P.prop(t, "widgetId", 3, null), u = P.prop(t, "labels", 3, v), d = P.prop(t, "locale", 3, void 0);
443
443
  function f(e) {
444
444
  if (!e) return {};
445
445
  let t = { ...e.venue ?? {} };
@@ -453,9 +453,9 @@ function ze(e, t) {
453
453
  }
454
454
  let p = P.derived(() => (t.data || {}).id);
455
455
  P.derived(() => (t.data || {}).orgSlug);
456
- let h = P.derived(() => (t.data || {}).slug), te = P.derived(() => (t.data || {}).event), E = P.derived(() => oe(f(P.get(te)))), D = P.derived(() => P.get(te) ? {
457
- ...N(P.get(te)),
458
- ...P.get(E)
456
+ let g = P.derived(() => (t.data || {}).slug), ee = P.derived(() => (t.data || {}).event), D = P.derived(() => oe(f(P.get(ee)))), O = P.derived(() => P.get(ee) ? {
457
+ ...N(P.get(ee)),
458
+ ...P.get(D)
459
459
  } : t.data && (t.data.id || P.get(p)) ? {
460
460
  id: t.data.id || P.get(p),
461
461
  eventID: t.data.id || P.get(p),
@@ -464,27 +464,27 @@ function ze(e, t) {
464
464
  eventTicketingType: 0,
465
465
  ticketType: 0,
466
466
  availableTickets: []
467
- } : null), O = P.state(""), k = P.state(P.proxy({})), A = P.state(P.proxy({})), re = P.state(P.proxy({})), M = P.state(P.proxy([])), F = P.state(""), I = P.state(0), L = P.state(!1), be = P.state(!1), R = P.state(!1), z = P.state(null), B = P.state(""), V = P.state(void 0), H = P.state(null), U = P.state(""), xe = P.state(!1), Se = P.state(""), W = P.state(null), G = P.derived(() => P.get(W) !== null), K = P.state(null), q = P.state(null), J = null, Ce = P.state(!1);
468
- function we() {
467
+ } : null), k = P.state(""), A = P.state(P.proxy({})), j = P.state(P.proxy({})), re = P.state(P.proxy({})), M = P.state(P.proxy([])), F = P.state(""), xe = P.state(0), I = P.state(!1), L = P.state(!1), R = P.state(!1), z = P.state(null), B = P.state(""), V = P.state(void 0), H = P.state(null), U = P.state(""), Se = P.state(!1), Ce = P.state(""), W = P.state(null), G = P.derived(() => P.get(W) !== null), K = P.state(null), q = P.state(null), J = null, we = P.state(!1);
468
+ function Te() {
469
469
  return {
470
470
  value: J?.total ?? null,
471
471
  currency: J?.currency || "USD"
472
472
  };
473
473
  }
474
- ye(async () => {
475
- if (P.set(O, ge(le) || ge(_e.CHECKOUT_CARTID), !0), !P.get(O)) {
476
- P.set(xe, !0), P.set(Se, u().noCheckoutSession || "No checkout session found. Please select tickets first", !0);
474
+ be(async () => {
475
+ if (P.set(k, _e(ue) || _e(ve.CHECKOUT_CARTID), !0), !P.get(k)) {
476
+ P.set(Se, !0), P.set(Ce, u().noCheckoutSession || "No checkout session found. Please select tickets first", !0);
477
477
  return;
478
478
  }
479
- b(P.get(D)?.eventID || P.get(D)?.id || P.get(p), c(), r() || P.get(D)?.venueID || P.get(D)?.venueId || null);
480
- let e = P.get(D)?.eventID || P.get(D)?.id || P.get(p);
479
+ x(P.get(O)?.eventID || P.get(O)?.id || P.get(p), c(), r() || P.get(O)?.venueID || P.get(O)?.venueId || null);
480
+ let e = P.get(O)?.eventID || P.get(O)?.id || P.get(p);
481
481
  try {
482
482
  let t = ce(e);
483
- P.set(k, t.quantities || {}, !0), P.set(A, t.donationAmounts || {}, !0), P.set(re, t.addOnQuantities || {}, !0), P.set(F, t.promocode || "", !0), P.set(I, t.promoDiscountAmount || 0, !0), P.set(M, t.tickets || [], !0);
483
+ P.set(A, t.quantities || {}, !0), P.set(j, t.donationAmounts || {}, !0), P.set(re, t.addOnQuantities || {}, !0), P.set(F, t.promocode || "", !0), P.set(xe, t.promoDiscountAmount || 0, !0), P.set(M, t.tickets || [], !0);
484
484
  } catch (e) {
485
- $.error("Error loading checkout state:", e), P.set(k, {}, !0), P.set(re, {}, !0), P.set(M, [], !0);
485
+ $.error("Error loading checkout state:", e), P.set(A, {}, !0), P.set(re, {}, !0), P.set(M, [], !0);
486
486
  }
487
- P.get(M).length > 0 && P.get(D) && (P.get(D).availableTickets = P.get(M), n(P.get(M)));
487
+ P.get(M).length > 0 && P.get(O) && (P.get(O).availableTickets = P.get(M), n(P.get(M)));
488
488
  let t = {
489
489
  serviceFeeCents: 0,
490
490
  serviceFeePercentage: 0,
@@ -494,7 +494,7 @@ function ze(e, t) {
494
494
  taxPercentage: 0
495
495
  };
496
496
  try {
497
- let e = await ue(P.get(D)?.venueID || P.get(D)?.venueId || r());
497
+ let e = await de(P.get(O)?.venueID || P.get(O)?.venueId || r());
498
498
  t = {
499
499
  serviceFeeCents: Number(e?.serviceFeeCents == null ? 0 : e.serviceFeeCents),
500
500
  serviceFeePercentage: Number(e?.serviceFeePercentage ?? 0),
@@ -506,38 +506,38 @@ function ze(e, t) {
506
506
  } catch (e) {
507
507
  $.error("Error fetching venue data:", e);
508
508
  }
509
- let i = [...Q(P.get(k), P.get(M), t), ...De(P.get(re), P.get(D)?.addOns)];
510
- Object.keys(P.get(k)).length > 0 && await X();
509
+ let i = [...Q(P.get(A), P.get(M), t), ...Oe(P.get(re), P.get(O)?.addOns)];
510
+ Object.keys(P.get(A)).length > 0 && await X();
511
511
  let a = 900, l = "";
512
- if (P.get(O)) {
513
- let e = se(P.get(O));
512
+ if (P.get(k)) {
513
+ let e = fe(P.get(k));
514
514
  if (e) {
515
515
  let t = Math.max(0, Math.floor((e - Date.now()) / 1e3));
516
516
  t > 0 && (a = t);
517
517
  }
518
518
  try {
519
- let e = await x(P.get(O));
519
+ let e = await S(P.get(k));
520
520
  if (!e.error && e.expiresAt) {
521
- let t = v(e.expiresAt).getTime();
522
- a = Math.max(0, Math.floor((t - Date.now()) / 1e3)), l = e.expiresAt, de(P.get(O), t);
521
+ let t = h(e.expiresAt).getTime();
522
+ a = Math.max(0, Math.floor((t - Date.now()) / 1e3)), l = e.expiresAt, se(P.get(k), t);
523
523
  }
524
524
  } catch {}
525
525
  }
526
- let d = ge(`checkout-promo-discount-type-${e}`), f = [];
526
+ let d = _e(`checkout-promo-discount-type-${e}`), f = [];
527
527
  try {
528
- let t = ge(`checkout-promo-ticket-ids-${e}`), n = t ? JSON.parse(t) : [];
528
+ let t = _e(`checkout-promo-ticket-ids-${e}`), n = t ? JSON.parse(t) : [];
529
529
  Array.isArray(n) && (f = n);
530
530
  } catch {
531
531
  f = [];
532
532
  }
533
- let m = s(i.filter((e) => pe(f, e.ticketId)).reduce((e, t) => e + (t.subtotal == null ? 0 : t.subtotal), 0)), h = fe(m, P.get(I), d);
533
+ let m = s(i.filter((e) => me(f, e.ticketId)).reduce((e, t) => e + (t.subtotal == null ? 0 : t.subtotal), 0)), g = pe(m, P.get(xe), d);
534
534
  if (P.set(q, {
535
- event: Te(P.get(D), t),
535
+ event: Ee(P.get(O), t),
536
536
  lines: i,
537
537
  timerStart: a,
538
538
  ...l ? { deadlineAt: l } : {},
539
539
  promoApplied: !!P.get(F),
540
- promoDiscount: h,
540
+ promoDiscount: g,
541
541
  forceExpired: !1,
542
542
  ...J ? { serverTotals: J } : {}
543
543
  }, !0), o()) {
@@ -554,25 +554,25 @@ function ze(e, t) {
554
554
  let Y = 0;
555
555
  async function X() {
556
556
  let e = ++Y;
557
- if (!P.get(O)) {
557
+ if (!P.get(k)) {
558
558
  $.error("Missing cartId!");
559
559
  return;
560
560
  }
561
- let t = Object.fromEntries(Object.entries(P.get(k)).filter(([e, t]) => t > 0));
561
+ let t = Object.fromEntries(Object.entries(P.get(A)).filter(([e, t]) => t > 0));
562
562
  try {
563
- let n = Object.fromEntries(Object.entries(P.get(A)).filter(([, e]) => parseFloat(String(e)) > 0).map(([e, t]) => [parseInt(e, 10), parseFloat(String(t))]));
563
+ let n = Object.fromEntries(Object.entries(P.get(j)).filter(([, e]) => parseFloat(String(e)) > 0).map(([e, t]) => [parseInt(e, 10), parseFloat(String(t))]));
564
564
  if (P.get(F)) {
565
- let t = await ae(P.get(O), P.get(F));
565
+ let t = await ae(P.get(k), P.get(F));
566
566
  if (e !== Y) return;
567
567
  t.success ? P.set(U, "") : ($.error("Failed to apply promo code to cart:", t.error), P.set(U, (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}", P.get(F)), !0));
568
568
  }
569
- let r = await w(P.get(O), t, Object.keys(n).length > 0 ? n : void 0, void 0, d());
569
+ let r = await T(P.get(k), t, Object.keys(n).length > 0 ? n : void 0, void 0, d());
570
570
  if (e !== Y) return;
571
571
  if (!r) {
572
572
  P.set(H, { message: u().failedToCreatePaymentIntent || "Failed to create payment intent. Please try again" }, !0);
573
573
  return;
574
574
  }
575
- P.set(Ce, !1), J = ne(r), P.get(q) && P.set(q, {
575
+ P.set(we, !1), J = te(r), P.get(q) && P.set(q, {
576
576
  ...P.get(q),
577
577
  serverTotals: J
578
578
  }, !0);
@@ -581,13 +581,13 @@ function ze(e, t) {
581
581
  P.set(B, "free");
582
582
  return;
583
583
  }
584
- P.set(Ce, J === null);
584
+ P.set(we, J === null);
585
585
  let a = r.stripe_publishable_key;
586
586
  if (!a) {
587
587
  $.error("No Stripe publishable key in payment intent response"), P.set(H, { message: u().paymentConfigError || "Payment configuration error. Please try again" }, !0);
588
588
  return;
589
589
  }
590
- let o = await Ee(a);
590
+ let o = await De(a);
591
591
  if (e !== Y) return;
592
592
  P.set(z, o, !0), r.client_secret ? P.set(B, r.client_secret, !0) : P.set(H, { message: u().failedToInitPayment || "Failed to initialize payment. Please try again" }, !0);
593
593
  } catch (t) {
@@ -595,24 +595,24 @@ function ze(e, t) {
595
595
  P.set(H, { message: t.message || u().failedToInitPayment || "Failed to initialize payment. Please try again" }, !0);
596
596
  }
597
597
  }
598
- function Te(e, t) {
598
+ function Ee(e, t) {
599
599
  return e ? {
600
600
  id: e.id || e.eventID,
601
601
  title: e.name || e.title || "",
602
- slug: e.slug || P.get(h) || "",
602
+ slug: e.slug || P.get(g) || "",
603
603
  description: e.description || "",
604
604
  date: e.date || "",
605
605
  startDateTime: e.startDateTime || "",
606
606
  endDateTime: e.endDateTime || "",
607
607
  doorsOpenTime: e.doorsOpenTime || "",
608
- timezone: e.timeZone || e.timezone || g(),
608
+ timezone: e.timeZone || e.timezone || _(),
609
609
  imageUrl: e.imageUrl || e.image || "",
610
- ...P.get(E),
610
+ ...P.get(D),
611
611
  venue: {
612
612
  id: e.venueID || e.venueId || 0,
613
- name: e.venueName || "",
613
+ name: e.venueName || e.venue?.name || "",
614
614
  address: e.venueAddress || "",
615
- timezone: e.timeZone || e.timezone || g(),
615
+ timezone: e.timeZone || e.timezone || _(),
616
616
  serviceFeePercentage: t.serviceFeePercentage,
617
617
  serviceFeeCents: t.serviceFeeCents,
618
618
  taxPercentage: t.taxPercentage,
@@ -633,7 +633,7 @@ function ze(e, t) {
633
633
  minPerOrder: e.minPerOrder || 1,
634
634
  maxPerOrder: e.maxPerOrder || 10,
635
635
  status: "on_sale",
636
- isDonation: e.type === 2,
636
+ isDonation: le(e),
637
637
  isHidden: !1
638
638
  })),
639
639
  faqs: e.faqs || [],
@@ -650,7 +650,7 @@ function ze(e, t) {
650
650
  if (a <= 0) continue;
651
651
  let e = t.find((e) => String(e.ID) === i || String(e.id) === i);
652
652
  if (!e) continue;
653
- let o = e.type === 2, c = e.price;
653
+ let o = le(e), c = e.price;
654
654
  if (!o && (c == null || !Number.isFinite(c))) {
655
655
  r.push({
656
656
  ticketId: parseInt(i),
@@ -663,7 +663,7 @@ function ze(e, t) {
663
663
  });
664
664
  continue;
665
665
  }
666
- let l = c ?? 0, u = me(l, n, o);
666
+ let l = c ?? 0, u = he(l, n, o);
667
667
  r.push({
668
668
  ticketId: parseInt(i),
669
669
  ticketName: e.name || "",
@@ -676,13 +676,13 @@ function ze(e, t) {
676
676
  }
677
677
  return r;
678
678
  }
679
- function De(e, t) {
679
+ function Oe(e, t) {
680
680
  let n = t || [], r = [];
681
681
  for (let [t, i] of Object.entries(e || {})) {
682
682
  if (!(i > 0)) continue;
683
683
  let e = n.find((e) => String(e.id) === String(t));
684
684
  if (!e) continue;
685
- let a = ee(m(Number(e.priceCents) || 0));
685
+ let a = m(y(Number(e.priceCents) || 0));
686
686
  r.push({
687
687
  ticketId: parseInt(t, 10),
688
688
  lineKey: `a:${t}`,
@@ -697,35 +697,35 @@ function ze(e, t) {
697
697
  }
698
698
  return r;
699
699
  }
700
- let Oe = P.derived(() => Object.values(P.get(A)).some((e) => (Number(e) || 0) > 0)), ke = P.derived(() => !P.get(Oe) && (!P.get(q) || P.get(q).lines.every((e) => e.unitPrice === 0)));
701
- async function Ae(e) {
702
- if (!P.get(L)) {
703
- P.set(L, !0), P.set(H, null);
700
+ let ke = P.derived(() => Object.values(P.get(j)).some((e) => (Number(e) || 0) > 0)), Ae = P.derived(() => !P.get(ke) && (!P.get(q) || P.get(q).lines.every((e) => e.unitPrice === 0)));
701
+ async function je(e) {
702
+ if (!P.get(I)) {
703
+ P.set(I, !0), P.set(H, null);
704
704
  try {
705
705
  if (P.get(R)) {
706
706
  P.set(H, { message: u().paymentReinitializing || "Updating your total. Please wait a moment and try again" }, !0);
707
707
  return;
708
708
  }
709
709
  if (P.get(K) && !P.get(K).requiresStripe) {
710
- await je(e);
710
+ await Me(e);
711
711
  return;
712
712
  }
713
- if (P.get(ke) || P.get(B) === "free" || J?.total === 0) {
714
- await Ne(e);
713
+ if (P.get(Ae) || P.get(B) === "free" || J?.total === 0) {
714
+ await Pe(e);
715
715
  return;
716
716
  }
717
717
  if (!P.get(V)) {
718
718
  P.set(H, {
719
719
  message: u().paymentFormNotReady || "Payment form is not ready. Please wait a moment and try again",
720
720
  blocking: !0
721
- }, !0), P.set(L, !1);
721
+ }, !0), P.set(I, !1);
722
722
  return;
723
723
  }
724
724
  if (!P.get(z)) {
725
725
  P.set(H, {
726
726
  message: u().paymentSystemNotInitialized || "Payment system is not initialized. Please refresh the page",
727
727
  blocking: !0
728
- }, !0), P.set(L, !1);
728
+ }, !0), P.set(I, !1);
729
729
  return;
730
730
  }
731
731
  let { error: n } = await P.get(V).submit();
@@ -734,15 +734,15 @@ function ze(e, t) {
734
734
  P.set(H, {
735
735
  message: e.message,
736
736
  suggestion: e.suggestion
737
- }, !0), P.set(L, !1);
737
+ }, !0), P.set(I, !1);
738
738
  return;
739
739
  }
740
740
  let a = await P.get(z).confirmPayment({
741
741
  elements: P.get(V),
742
742
  redirect: "if_required",
743
- confirmParams: { return_url: `${y()}${j(P.get(D)?.id || P.get(D)?.eventID || P.get(p), P.get(D)?.slug || P.get(h) || "", {
744
- orderId: P.get(O),
745
- ticketCount: Object.values(P.get(k)).reduce((e, t) => e + (Number(t) || 0), 0)
743
+ confirmParams: { return_url: `${b()}${ne(P.get(O)?.id || P.get(O)?.eventID || P.get(p), P.get(O)?.slug || P.get(g) || "", {
744
+ orderId: P.get(k),
745
+ ticketCount: Object.values(P.get(A)).reduce((e, t) => e + (Number(t) || 0), 0)
746
746
  })}` }
747
747
  });
748
748
  if (a.error) {
@@ -750,13 +750,13 @@ function ze(e, t) {
750
750
  P.set(H, {
751
751
  message: e.message,
752
752
  suggestion: e.suggestion
753
- }, !0), P.set(L, !1);
753
+ }, !0), P.set(I, !1);
754
754
  return;
755
755
  }
756
756
  let o = {
757
- id: P.get(O),
757
+ id: P.get(k),
758
758
  paymentIntentId: a.paymentIntent.id,
759
- tickets: P.get(k),
759
+ tickets: P.get(A),
760
760
  firstName: e.firstName,
761
761
  lastName: e.lastName,
762
762
  email: e.email,
@@ -765,20 +765,20 @@ function ze(e, t) {
765
765
  paymentMethod: "credit-card",
766
766
  mailingList: e.keepMeUpdated,
767
767
  saleType: "online"
768
- }, s = await C(P.get(O), o, d());
768
+ }, s = await w(P.get(k), o, d());
769
769
  if (s?.eventCanceled || s?.eventPostponed) {
770
770
  P.set(W, s.eventCanceled ? "canceled" : "postponed", !0), P.set(H, null);
771
771
  return;
772
772
  }
773
773
  if (s?.status === "Payment succeeded") {
774
- ve(P.get(O), e.email);
774
+ ye(P.get(k), e.email);
775
775
  let n = {
776
- orderId: P.get(O),
777
- eventId: P.get(D)?.id || P.get(D)?.eventID || null,
778
- event: P.get(D) || null,
779
- venueId: r() || P.get(D)?.venueId || null,
780
- organizationId: i() || P.get(D)?.organizationId || null,
781
- ...we()
776
+ orderId: P.get(k),
777
+ eventId: P.get(O)?.id || P.get(O)?.eventID || null,
778
+ event: P.get(O) || null,
779
+ venueId: r() || P.get(O)?.venueId || null,
780
+ organizationId: i() || P.get(O)?.organizationId || null,
781
+ ...Te()
782
782
  };
783
783
  t.onNavigateToSuccess && t.onNavigateToSuccess(n);
784
784
  } else s?.status === "Payment amount does not match the total price" ? P.set(H, { message: u().paymentAmountMismatch || "Payment amount mismatch. Please refresh and try again" }, !0) : P.set(H, { message: u().paymentValidationFailed || "Payment validation failed. Please try again" }, !0);
@@ -790,13 +790,13 @@ function ze(e, t) {
790
790
  suggestion: t.suggestion
791
791
  }, !0);
792
792
  } finally {
793
- P.set(L, !1);
793
+ P.set(I, !1);
794
794
  }
795
795
  }
796
796
  }
797
- async function je(e) {
797
+ async function Me(e) {
798
798
  try {
799
- let n = await ie(P.get(O), {
799
+ let n = await ie(P.get(k), {
800
800
  firstName: e.firstName,
801
801
  lastName: e.lastName,
802
802
  email: e.email,
@@ -805,15 +805,15 @@ function ze(e, t) {
805
805
  mailingList: e.keepMeUpdated
806
806
  }, d());
807
807
  if (n?.success) {
808
- ve(n.orderId || P.get(O), e.email);
808
+ ye(n.orderId || P.get(k), e.email);
809
809
  let a = {
810
- orderId: n.orderId || P.get(O),
811
- eventId: P.get(D)?.id || P.get(D)?.eventID || null,
812
- event: P.get(D) || null,
813
- venueId: r() || P.get(D)?.venueId || null,
814
- organizationId: i() || P.get(D)?.organizationId || null,
810
+ orderId: n.orderId || P.get(k),
811
+ eventId: P.get(O)?.id || P.get(O)?.eventID || null,
812
+ event: P.get(O) || null,
813
+ venueId: r() || P.get(O)?.venueId || null,
814
+ organizationId: i() || P.get(O)?.organizationId || null,
815
815
  paymentType: "gift_card_only",
816
- ...we()
816
+ ...Te()
817
817
  };
818
818
  t.onNavigateToSuccess && t.onNavigateToSuccess(a);
819
819
  } else P.set(H, { message: n?.error || u().failedToCompleteOrder || "Failed to complete order. Please try again" }, !0);
@@ -825,12 +825,12 @@ function ze(e, t) {
825
825
  suggestion: t.suggestion
826
826
  }, !0);
827
827
  } finally {
828
- P.set(L, !1);
828
+ P.set(I, !1);
829
829
  }
830
830
  }
831
- async function Ne(e) {
831
+ async function Pe(e) {
832
832
  try {
833
- let n = Object.fromEntries(Object.entries(P.get(k)).filter(([e, t]) => t > 0)), a = Object.fromEntries(Object.entries(P.get(A)).filter(([, e]) => parseFloat(String(e)) > 0).map(([e, t]) => [parseInt(e, 10), parseFloat(String(t))])), o = await w(P.get(O), n, Object.keys(a).length > 0 ? a : void 0, {
833
+ let n = Object.fromEntries(Object.entries(P.get(A)).filter(([e, t]) => t > 0)), a = Object.fromEntries(Object.entries(P.get(j)).filter(([, e]) => parseFloat(String(e)) > 0).map(([e, t]) => [parseInt(e, 10), parseFloat(String(t))])), o = await T(P.get(k), n, Object.keys(a).length > 0 ? a : void 0, {
834
834
  firstName: e.firstName,
835
835
  lastName: e.lastName,
836
836
  email: e.email,
@@ -842,15 +842,15 @@ function ze(e, t) {
842
842
  P.set(H, { message: u().failedToCompleteOrder || "Failed to complete order. Please try again" }, !0);
843
843
  return;
844
844
  }
845
- P.set(B, "free"), ve(P.get(O), e.email);
845
+ P.set(B, "free"), ye(P.get(k), e.email);
846
846
  let s = {
847
- orderId: P.get(O),
848
- eventId: P.get(D)?.id || P.get(D)?.eventID || null,
849
- event: P.get(D) || null,
850
- venueId: r() || P.get(D)?.venueId || null,
851
- organizationId: i() || P.get(D)?.organizationId || null,
847
+ orderId: P.get(k),
848
+ eventId: P.get(O)?.id || P.get(O)?.eventID || null,
849
+ event: P.get(O) || null,
850
+ venueId: r() || P.get(O)?.venueId || null,
851
+ organizationId: i() || P.get(O)?.organizationId || null,
852
852
  paymentType: "free",
853
- ...we()
853
+ ...Te()
854
854
  };
855
855
  t.onNavigateToSuccess && t.onNavigateToSuccess(s);
856
856
  } catch (e) {
@@ -861,15 +861,15 @@ function ze(e, t) {
861
861
  suggestion: t.suggestion
862
862
  }, !0);
863
863
  } finally {
864
- P.set(L, !1);
864
+ P.set(I, !1);
865
865
  }
866
866
  }
867
- async function Pe(e) {
867
+ async function Fe(e) {
868
868
  if (P.set(K, e, !0), P.get(q) && J && P.set(q, {
869
869
  ...P.get(q),
870
- serverTotals: T(J, e)
870
+ serverTotals: E(J, e)
871
871
  }, !0), !e.requiresStripe) Y++, P.set(V, void 0), P.set(z, null), P.set(B, "");
872
- else if (P.get(O) && Object.keys(P.get(k)).length > 0) {
872
+ else if (P.get(k) && Object.keys(P.get(A)).length > 0) {
873
873
  P.set(R, !0);
874
874
  try {
875
875
  await X();
@@ -878,11 +878,11 @@ function ze(e, t) {
878
878
  }
879
879
  }
880
880
  }
881
- async function ze() {
881
+ async function Be() {
882
882
  if (P.set(K, null), P.get(q) && J && P.set(q, {
883
883
  ...P.get(q),
884
884
  serverTotals: J
885
- }, !0), P.get(O) && Object.keys(P.get(k)).length > 0) {
885
+ }, !0), P.get(k) && Object.keys(P.get(A)).length > 0) {
886
886
  P.set(R, !0);
887
887
  try {
888
888
  await X();
@@ -891,19 +891,19 @@ function ze(e, t) {
891
891
  }
892
892
  }
893
893
  }
894
- function Be() {
895
- a() ? a()() : window.history.back();
896
- }
897
894
  function Ve() {
898
895
  a() ? a()() : window.history.back();
899
896
  }
900
897
  function He() {
901
- P.set(W, null), Be();
898
+ a() ? a()() : window.history.back();
899
+ }
900
+ function Ue() {
901
+ P.set(W, null), Ve();
902
902
  }
903
- async function Ue() {
904
- if (!P.get(O)) return null;
903
+ async function We() {
904
+ if (!P.get(k)) return null;
905
905
  try {
906
- let e = await S(P.get(O));
906
+ let e = await C(P.get(k));
907
907
  return e.success ? {
908
908
  newExpiryTime: e.newExpiryTime,
909
909
  remainingExtensions: e.remainingExtensions
@@ -912,17 +912,17 @@ function ze(e, t) {
912
912
  return $.error("Error extending checkout session:", e), null;
913
913
  }
914
914
  }
915
- var We = Re(), Ge = P.first_child(We), Ke = (e) => {
915
+ var Ge = ze(), Ke = P.first_child(Ge), qe = (e) => {
916
916
  {
917
917
  let t = (e) => {
918
918
  {
919
- let t = P.derived(() => P.get(L) || P.get(R)), n = P.derived(() => P.get(q)?.serverTotals?.total ?? 0), r = P.derived(() => P.get(q)?.serverTotals?.giftCardAmount ?? null);
920
- Me(e, {
919
+ let t = P.derived(() => P.get(I) || P.get(R)), n = P.derived(() => P.get(q)?.serverTotals?.total ?? 0), r = P.derived(() => P.get(q)?.serverTotals?.giftCardAmount ?? null);
920
+ Ne(e, {
921
921
  get cartId() {
922
- return P.get(O);
922
+ return P.get(k);
923
923
  },
924
- onApplied: Pe,
925
- onRemoved: ze,
924
+ onApplied: Fe,
925
+ onRemoved: Be,
926
926
  get disabled() {
927
927
  return P.get(t);
928
928
  },
@@ -938,14 +938,14 @@ function ze(e, t) {
938
938
  });
939
939
  }
940
940
  }, n = P.derived(() => P.get(H) ?? (P.get(U) ? { message: P.get(U) } : null));
941
- he(e, {
941
+ ge(e, {
942
942
  get config() {
943
943
  return P.get(q);
944
944
  },
945
- onPlaceOrder: Ae,
946
- onBack: Be,
947
- onRetryExpired: Ve,
948
- onExtendSession: Ue,
945
+ onPlaceOrder: je,
946
+ onBack: Ve,
947
+ onRetryExpired: He,
948
+ onExtendSession: We,
949
949
  get stripe() {
950
950
  return P.get(z);
951
951
  },
@@ -953,7 +953,7 @@ function ze(e, t) {
953
953
  return P.get(B);
954
954
  },
955
955
  get serverTotalsUnavailable() {
956
- return P.get(Ce);
956
+ return P.get(we);
957
957
  },
958
958
  get paymentError() {
959
959
  return P.get(n);
@@ -971,40 +971,40 @@ function ze(e, t) {
971
971
  P.set(V, e, !0);
972
972
  },
973
973
  get eventEnded() {
974
- return P.get(be);
974
+ return P.get(L);
975
975
  },
976
976
  set eventEnded(e) {
977
- P.set(be, e, !0);
977
+ P.set(L, e, !0);
978
978
  },
979
979
  giftCard: t,
980
980
  $$slots: { giftCard: !0 }
981
981
  });
982
982
  }
983
- }, qe = (e) => {
984
- var t = Ie(), n = P.child(t), r = P.child(n, !0);
985
- P.reset(n), P.reset(t), P.template_effect(() => P.set_text(r, P.get(Se))), P.append(e, t);
986
983
  }, Je = (e) => {
987
984
  var t = Le(), n = P.child(t), r = P.child(n, !0);
985
+ P.reset(n), P.reset(t), P.template_effect(() => P.set_text(r, P.get(Ce))), P.append(e, t);
986
+ }, Ye = (e) => {
987
+ var t = Re(), n = P.child(t), r = P.child(n, !0);
988
988
  P.reset(n), P.reset(t), P.template_effect(() => P.set_text(r, u().loadingSecurePaymentForm || "Loading secure payment form...")), P.append(e, t);
989
989
  };
990
- P.if(Ge, (e) => {
991
- P.get(q) ? e(Ke) : P.get(xe) ? e(qe, 1) : e(Je, -1);
990
+ P.if(Ke, (e) => {
991
+ P.get(q) ? e(qe) : P.get(Se) ? e(Je, 1) : e(Ye, -1);
992
992
  });
993
- var Ye = P.sibling(Ge, 2), Xe = (e) => {
994
- Fe(e, {
993
+ var Xe = P.sibling(Ke, 2), Ze = (e) => {
994
+ Ie(e, {
995
995
  open: !0,
996
996
  get reason() {
997
997
  return P.get(W);
998
998
  },
999
- onBackToEvents: He,
999
+ onBackToEvents: Ue,
1000
1000
  get labels() {
1001
1001
  return u();
1002
1002
  }
1003
1003
  });
1004
1004
  };
1005
- P.if(Ye, (e) => {
1006
- P.get(G) && e(Xe);
1007
- }), P.append(e, We), P.pop();
1005
+ P.if(Xe, (e) => {
1006
+ P.get(G) && e(Ze);
1007
+ }), P.append(e, Ge), P.pop();
1008
1008
  }
1009
1009
  //#endregion
1010
- export { ze as default };
1010
+ export { Be as default };