@getmicdrop/venue-calendar 4.3.24 → 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-ylxXSy0Q.js → CalendarFoundryView-CdpyX54O.js} +37 -33
  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.24 → 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.24 → 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.24/flow/de.js +0 -1
  86. package/dist/locales/4.3.24/flow/es.js +0 -1
  87. package/dist/locales/4.3.24/flow/fr.js +0 -1
  88. package/dist/locales/4.3.24/flow/id.js +0 -1
  89. package/dist/locales/4.3.24/flow/it.js +0 -1
  90. package/dist/locales/4.3.24/flow/ja.js +0 -1
  91. package/dist/locales/4.3.24/flow/ko.js +0 -1
  92. package/dist/locales/4.3.24/flow/nl.js +0 -1
  93. package/dist/locales/4.3.24/flow/pt-br.js +0 -1
  94. package/dist/locales/4.3.24/flow/zh.js +0 -1
  95. /package/dist/locales/{4.3.24 → 4.3.25}/main/de.js +0 -0
  96. /package/dist/locales/{4.3.24 → 4.3.25}/main/es.js +0 -0
  97. /package/dist/locales/{4.3.24 → 4.3.25}/main/fr.js +0 -0
  98. /package/dist/locales/{4.3.24 → 4.3.25}/main/id.js +0 -0
  99. /package/dist/locales/{4.3.24 → 4.3.25}/main/it.js +0 -0
  100. /package/dist/locales/{4.3.24 → 4.3.25}/main/ja.js +0 -0
  101. /package/dist/locales/{4.3.24 → 4.3.25}/main/ko.js +0 -0
  102. /package/dist/locales/{4.3.24 → 4.3.25}/main/nl.js +0 -0
  103. /package/dist/locales/{4.3.24 → 4.3.25}/main/pl.js +0 -0
  104. /package/dist/locales/{4.3.24 → 4.3.25}/main/pt-br.js +0 -0
  105. /package/dist/locales/{4.3.24 → 4.3.25}/main/tr.js +0 -0
  106. /package/dist/locales/{4.3.24 → 4.3.25}/main/zh.js +0 -0
@@ -1,7 +1,7 @@
1
1
  import { S as e } from "./Button-klwKgfhG.js";
2
- import { i as t, l as n, n as r, r as i } from "./scarcity-CZEPC-UR.js";
2
+ import { i as t, l as n, n as r, r as i } from "./scarcity-Dgvp7aCF.js";
3
3
  import { t as a } from "./Badge-n7TfNjln.js";
4
- import { B as o, D as s, b as c, h as l, i as u, t as d, v as f } from "./defaultLabels-DP7tY9Pg.js";
4
+ import { A as o, U as s, g as c, i as l, t as u, x as d, y as f } from "./defaultLabels-BgBbv_Mu.js";
5
5
  import "svelte/internal/disclose-version";
6
6
  import * as p from "svelte/internal/client";
7
7
  //#region node_modules/@getmicdrop/svelte-components/dist/primitives/BlurBackdropImage/BlurBackdropImage.svelte
@@ -146,7 +146,7 @@ function C() {
146
146
  var w = p.from_html("<div><!></div>"), T = p.from_html("<span class=\"event-card__badge svelte-18ndok6\"><!></span>"), E = p.from_html("<span> </span>"), D = p.from_html("<div class=\"event-card__pills flex flex-wrap gap-2 relative svelte-18ndok6\"></div>"), O = p.from_html("<p class=\"event-card__description type-body tone-secondary m-0 svelte-18ndok6\"> </p>"), k = p.from_html("<article class=\"event-card relative rounded-lg border bg-card border-border overflow-hidden svelte-18ndok6\"><!> <div class=\"event-card__content flex flex-col flex-1 min-w-0 svelte-18ndok6\"><header class=\"event-card__header\"><h3><!> <a class=\"event-card__title-link svelte-18ndok6\" rel=\"external\"> </a></h3></header> <!> <!> <!></div></article>");
147
147
  function A(t, n) {
148
148
  p.push(n, !0);
149
- let r = p.prop(n, "layout", 3, "vertical"), i = p.prop(n, "density", 3, "standard"), s = p.prop(n, "imageUrl", 3, ""), c = p.prop(n, "placeholderImage", 3, ""), l = p.prop(n, "hidePoster", 3, !1), d = p.prop(n, "posterFit", 3, "fit"), f = p.prop(n, "posterBackdrop", 3, "blur"), m = p.prop(n, "dateLabel", 3, ""), h = p.prop(n, "description", 3, ""), g = p.prop(n, "badge", 3, null), v = p.prop(n, "pills", 19, () => []), y = p.prop(n, "pillVariant", 3, "alternative"), b = p.prop(n, "showDescription", 3, !1), S = p.prop(n, "hideDate", 3, !1), A = p.derived(() => x[i()]), j = p.derived(() => d() === "fit" && f() === "color"), M = `event-card-title-${C()}`, N = p.derived(() => b() && !!h() && (i() === "standard" || i() === "featured")), P = p.derived(() => !S() && i() !== "micro" && !!m());
149
+ let r = p.prop(n, "layout", 3, "vertical"), i = p.prop(n, "density", 3, "standard"), o = p.prop(n, "imageUrl", 3, ""), c = p.prop(n, "placeholderImage", 3, ""), u = p.prop(n, "hidePoster", 3, !1), d = p.prop(n, "posterFit", 3, "fit"), f = p.prop(n, "posterBackdrop", 3, "blur"), m = p.prop(n, "dateLabel", 3, ""), h = p.prop(n, "description", 3, ""), g = p.prop(n, "badge", 3, null), v = p.prop(n, "pills", 19, () => []), y = p.prop(n, "pillVariant", 3, "alternative"), b = p.prop(n, "showDescription", 3, !1), S = p.prop(n, "hideDate", 3, !1), A = p.derived(() => x[i()]), j = p.derived(() => d() === "fit" && f() === "color"), M = `event-card-title-${C()}`, N = p.derived(() => b() && !!h() && (i() === "standard" || i() === "featured")), P = p.derived(() => !S() && i() !== "micro" && !!m());
150
150
  function F(e, t) {
151
151
  t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || n.onpillclick && (t.preventDefault(), t.stopPropagation(), n.onpillclick(e));
152
152
  }
@@ -155,9 +155,9 @@ function A(t, n) {
155
155
  }
156
156
  var L = k(), R = p.child(L), z = (e) => {
157
157
  var t = w(), n = p.child(t), r = (e) => {
158
- o(e, {
158
+ s(e, {
159
159
  get src() {
160
- return s();
160
+ return o();
161
161
  },
162
162
  get fallback() {
163
163
  return c();
@@ -171,7 +171,7 @@ function A(t, n) {
171
171
  let t = p.derived(() => d() === "fill");
172
172
  _(e, {
173
173
  get src() {
174
- return s();
174
+ return o();
175
175
  },
176
176
  get fallback() {
177
177
  return c();
@@ -190,7 +190,7 @@ function A(t, n) {
190
190
  }), p.append(e, t);
191
191
  };
192
192
  p.if(R, (e) => {
193
- l() || e(z);
193
+ u() || e(z);
194
194
  });
195
195
  var B = p.sibling(R, 2), V = p.child(B), H = p.child(V), U = p.child(H), W = (e) => {
196
196
  var t = T(), n = p.child(t);
@@ -228,7 +228,7 @@ function A(t, n) {
228
228
  p.each(t, 21, v, p.index, (e, t, n) => {
229
229
  {
230
230
  let r = p.derived(() => y() === "primary" ? "default" : "alternative"), i = p.derived(() => p.get(t).ariaLabel ?? p.get(t).timeLabel);
231
- u(e, {
231
+ l(e, {
232
232
  get href() {
233
233
  return p.get(t).href;
234
234
  },
@@ -262,7 +262,7 @@ function A(t, n) {
262
262
  p.if(Z, (e) => {
263
263
  p.get(N) && e(Q);
264
264
  }), p.reset(B), p.reset(L), p.template_effect(() => {
265
- p.set_attribute(L, "data-layout", r()), p.set_attribute(L, "data-density", i()), p.set_attribute(L, "data-hide-poster", l()), p.set_attribute(L, "aria-labelledby", M), p.set_class(H, 1, `event-card__title ${e.strong ?? ""} tone-primary m-0`, "svelte-18ndok6"), p.set_attribute(H, "id", M), p.set_attribute(G, "href", n.href), p.set_attribute(G, "aria-label", n.ariaLabel ?? n.title), p.set_text(K, n.title);
265
+ p.set_attribute(L, "data-layout", r()), p.set_attribute(L, "data-density", i()), p.set_attribute(L, "data-hide-poster", u()), p.set_attribute(L, "aria-labelledby", M), p.set_class(H, 1, `event-card__title ${e.strong ?? ""} tone-primary m-0`, "svelte-18ndok6"), p.set_attribute(H, "id", M), p.set_attribute(G, "href", n.href), p.set_attribute(G, "aria-label", n.ariaLabel ?? n.title), p.set_text(K, n.title);
266
266
  }), p.delegated("click", G, I), p.append(t, L), p.pop();
267
267
  }
268
268
  p.delegate(["click"]);
@@ -346,8 +346,8 @@ function z(e, t) {
346
346
  break;
347
347
  case "past":
348
348
  if (e.startDateTime) {
349
- let n = c(e.endDateTime || e.startDateTime);
350
- if (n && l(n, s()) < 0) return {
349
+ let n = d(e.endDateTime || e.startDateTime);
350
+ if (n && c(n, o()) < 0) return {
351
351
  text: t?.statusPastEvent || "Past event",
352
352
  type: "past"
353
353
  };
@@ -444,31 +444,33 @@ function G(e, t) {
444
444
  variant: "warning"
445
445
  } : null;
446
446
  }
447
- function K(e, t = d, r, a = null) {
448
- let o = e.event, s = e.isSeries ? B(e.instances, t) : z(o, t), c = s && s.type !== "past" ? {
449
- text: s.text,
450
- variant: H(s.type)
447
+ function K(e, t = u, r, a = null, o = {}) {
448
+ let s = e.event, c = e.isSeries ? B(e.instances, t) : z(s, t), l = c && c.type !== "past" ? {
449
+ text: c.text,
450
+ variant: H(c.type)
451
451
  } : null;
452
- !c && !e.isSeries && (c = G(o, t));
453
- let l = P(o), u = o.startDateTime && a?.date !== !1 ? i(o.startDateTime, o.timeZone, r) : "", f = e.isSeries ? e.instances : o.startDateTime ? [o] : [], p = f.map((e) => {
452
+ !l && !e.isSeries && (l = G(s, t));
453
+ let d = P(s), f = s.startDateTime && a?.date !== !1 ? i(s.startDateTime, s.timeZone, r) : "", p = e.isSeries ? e.instances : s.startDateTime ? [s] : [], m = p.map((e) => {
454
454
  let i = n(e.startDateTime, e.timeZone, r), a = z(e, t)?.type === "sold_out";
455
455
  return {
456
456
  timeLabel: i,
457
457
  href: P(e),
458
- ariaLabel: `${o.name} at ${i}${a ? ", sold out" : ""}`
458
+ ariaLabel: `${s.name} at ${i}${a ? ", sold out" : ""}`
459
459
  };
460
- }), m = [o.name];
461
- return o.startDateTime && m.push(`on ${i(o.startDateTime, o.timeZone, r)}`), e.isSeries ? m.push(`${e.instances.length} showtimes available`) : o.startDateTime && m.push(`at ${n(o.startDateTime, o.timeZone, r)}`), s && m.push(s.text), {
462
- title: o.name,
463
- href: l,
464
- imageUrl: o.imageUrl ?? "",
465
- dateLabel: u,
466
- description: a?.description === !1 ? "" : o.description ?? "",
467
- ariaLabel: m.join(", "),
460
+ }), h = [s.name];
461
+ return s.startDateTime && h.push(`on ${i(s.startDateTime, s.timeZone, r)}`), e.isSeries ? h.push(`${e.instances.length} showtimes available`) : s.startDateTime && h.push(`at ${n(s.startDateTime, s.timeZone, r)}`), c && h.push(c.text), {
462
+ title: s.name,
463
+ href: d,
464
+ imageUrl: s.imageUrl ?? "",
465
+ dateLabel: f,
466
+ description: a?.description === !1 ? "" : s.description ?? "",
467
+ ariaLabel: h.join(", "),
468
468
  hidePoster: a?.poster === !1,
469
- badge: c,
470
- pills: p,
471
- pillEvents: f
469
+ posterFit: o.posterFit ?? "fit",
470
+ posterBackdrop: o.posterBackdrop ?? "blur",
471
+ badge: l,
472
+ pills: m,
473
+ pillEvents: p
472
474
  };
473
475
  }
474
476
  //#endregion
@@ -74,6 +74,7 @@ var e = {
74
74
  payment: "Ödeme",
75
75
  noPaymentRequired: "Ödeme gerekmiyor",
76
76
  freeEventMessage: "Bu ücretsiz bir etkinliktir. Yerinizi ayırtmak için formu doldurun",
77
+ giftCardCoversOrderMessage: "Hediye kartınız bu siparişi karşılıyor. Biletlerinizi almak için yukarıdaki formu doldurun",
77
78
  firstName: "Ad",
78
79
  lastName: "Soyad",
79
80
  emailAddress: "E-posta adresi",
@@ -163,6 +163,12 @@ export interface CalendarProps extends BaseInitOptions {
163
163
  /** Level of the calendar's screen-reader heading: 2 when the host page
164
164
  * already carries its h1 (default: 1) */
165
165
  headingLevel?: 1 | 2;
166
+ /** How every card draws its poster: 'fit' shows the whole poster, 'fill'
167
+ * crops it to cover the frame (default: 'fit') */
168
+ posterFit?: 'fill' | 'fit';
169
+ /** What fills around a 'fit' poster: a blurred copy of it, or the
170
+ * section's own colour (default: 'blur') */
171
+ posterBackdrop?: 'blur' | 'color';
166
172
  /** Opening a show rewrites the host page's title and share tags to the
167
173
  * show's, restoring them on close. Both embeds turn it on unless the host
168
174
  * sets inject-seo="false" (default for a direct call: false) */
@@ -1,6 +1,6 @@
1
1
  import { E as e } from "./Button-klwKgfhG.js";
2
- import { $ as t, I as n, M as r, Y as i, Z as a, j as o, k as s, q as c } from "./orders-D1dybiYD.js";
3
- import "./event-transform-CQxO_ACI.js";
2
+ import { $ as t, I as n, M as r, Y as i, Z as a, j as o, k as s, q as c } from "./orders-BQRru8sl.js";
3
+ import "./event-transform-y9eZBvZJ.js";
4
4
  //#region node_modules/js-cookie/dist/js.cookie.mjs
5
5
  function l(e) {
6
6
  for (var t = 1; t < arguments.length; t++) {
@@ -70,7 +70,10 @@ function h(e) {
70
70
  //#endregion
71
71
  //#region src/lib/utils/checkoutState.ts
72
72
  var g = e("checkoutState"), _ = (e) => `micdrop:vc:${e}`, v = (e) => `micdrop-${e}`, y = (e) => _(`checkout-state-${e}`), b = (e) => `checkout-state-${e}`, x = (e) => _(`checkout-expiry-${e}`), S = (e) => `checkout-expiry-${e}`, C = v("cartid"), w = "checkout-cartid";
73
- function T() {
73
+ function T(e) {
74
+ return Number(e.type) === 2;
75
+ }
76
+ function E() {
74
77
  let e = typeof window < "u" && window.location.protocol === "https:";
75
78
  return {
76
79
  secure: e,
@@ -78,7 +81,7 @@ function T() {
78
81
  path: "/"
79
82
  };
80
83
  }
81
- function ee(e) {
84
+ function D(e) {
82
85
  let t = {}, n = {}, r = [], o = "", s = 0, l = {};
83
86
  if (typeof window > "u") return {
84
87
  quantities: t,
@@ -111,14 +114,14 @@ function ee(e) {
111
114
  } catch (e) {
112
115
  g.warn("Failed to parse checkout tickets cookie:", e), r = [];
113
116
  }
114
- return o = m(`checkout-promocode-${e}`) || "", s = parseFloat(m(`checkout-promo-discount-${e}`) || "0"), (Object.keys(t).length > 0 || r.length > 0 || o) && (O({
117
+ return o = m(`checkout-promocode-${e}`) || "", s = parseFloat(m(`checkout-promo-discount-${e}`) || "0"), (Object.keys(t).length > 0 || r.length > 0 || o) && (A({
115
118
  eventID: e,
116
119
  quantities: t,
117
120
  donationAmounts: n,
118
121
  promocode: o,
119
122
  promoDiscountAmount: s,
120
123
  tickets: r
121
- }), E(e)), {
124
+ }), O(e)), {
122
125
  quantities: t,
123
126
  donationAmounts: n,
124
127
  addOnQuantities: l,
@@ -127,13 +130,13 @@ function ee(e) {
127
130
  tickets: r
128
131
  };
129
132
  }
130
- function E(e) {
133
+ function O(e) {
131
134
  h(`checkout-quantities-${e}`), h(`checkout-tickets-${e}`), h(`checkout-promocode-${e}`), h(`checkout-promo-discount-${e}`);
132
135
  }
133
- function D(e) {
134
- i(y(e)), i(b(e)), E(e), h(`checkout-promo-discount-type-${e}`), h(`checkout-promo-reveal-${e}`), h(`checkout-promo-reveal-ids-${e}`), h(`checkout-promo-ticket-ids-${e}`);
136
+ function k(e) {
137
+ i(y(e)), i(b(e)), O(e), h(`checkout-promo-discount-type-${e}`), h(`checkout-promo-reveal-${e}`), h(`checkout-promo-reveal-ids-${e}`), h(`checkout-promo-ticket-ids-${e}`);
135
138
  }
136
- function O({ eventID: e, quantities: t, donationAmounts: n, addOnQuantities: r, promocode: i, promoDiscountAmount: o, tickets: s }) {
139
+ function A({ eventID: e, quantities: t, donationAmounts: n, addOnQuantities: r, promocode: i, promoDiscountAmount: o, tickets: s }) {
137
140
  if (typeof window > "u") return;
138
141
  let c = (s || []).map((e) => ({
139
142
  ID: e.ID,
@@ -153,91 +156,91 @@ function O({ eventID: e, quantities: t, donationAmounts: n, addOnQuantities: r,
153
156
  };
154
157
  a(y(e), l);
155
158
  }
156
- function k(e) {
159
+ function j(e) {
157
160
  if (!e) return null;
158
161
  let t = c(x(e), null);
159
- if (t != null) return M(t);
162
+ if (t != null) return P(t);
160
163
  let n = c(S(e), null);
161
164
  if (n == null) return null;
162
- let r = M(n);
165
+ let r = P(n);
163
166
  return r != null && (a(x(e), r), i(S(e))), r;
164
167
  }
165
- function A(e, t) {
168
+ function M(e, t) {
166
169
  !e || !Number.isFinite(t) || a(x(e), t);
167
170
  }
168
- function j(e) {
171
+ function N(e) {
169
172
  e && (i(x(e)), i(S(e)));
170
173
  }
171
- function M(e) {
174
+ function P(e) {
172
175
  let t = typeof e == "number" ? e : parseInt(e, 10);
173
176
  return Number.isFinite(t) && t > 0 ? t : null;
174
177
  }
175
- function N(e) {
176
- let t = T();
178
+ function ee(e) {
179
+ let t = E();
177
180
  p(C, e, t), p(w, e, t);
178
181
  }
179
- async function P(e) {
182
+ async function te(e) {
180
183
  let t = v(`order-id-${e}`), n = `order-id-${e}`, r = m(t) || m(n);
181
184
  if (r) return r;
182
- let i = `order-${e}-${Date.now()}`, a = T();
185
+ let i = `order-${e}-${Date.now()}`, a = E();
183
186
  return p(t, i, a), p(n, i, a), i;
184
187
  }
185
188
  var F = (e) => _(`queue-token-${e}`);
186
- function te(e) {
189
+ function I(e) {
187
190
  return c(F(e), null);
188
191
  }
189
- function I(e, t) {
192
+ function L(e, t) {
190
193
  t && a(F(e), t);
191
194
  }
192
- function L(e) {
195
+ function R(e) {
193
196
  i(F(e));
194
197
  }
195
198
  //#endregion
196
199
  //#region src/lib/api/surge-queue.ts
197
- var R = e("VC"), z = "queue_unavailable", B = {
200
+ var z = e("VC"), B = "queue_unavailable", V = {
198
201
  armed: !1,
199
202
  mode: "off",
200
203
  waiting: 0,
201
204
  etaSeconds: 0
202
- }, V = 5e3, H = 1e3;
203
- function U(e) {
204
- return typeof e == "number" && Number.isFinite(e) && e > 0 ? Math.floor(e) : 0;
205
- }
205
+ }, H = 5e3, U = 1e3;
206
206
  function W(e) {
207
- return e === "off" || e === "auto" || e === "on" ? e : "off";
207
+ return typeof e == "number" && Number.isFinite(e) && e > 0 ? Math.floor(e) : 0;
208
208
  }
209
209
  function G(e) {
210
- return e === "open" || e === "waiting" || e === "admitted" ? e : "expired";
210
+ return e === "off" || e === "auto" || e === "on" ? e : "off";
211
211
  }
212
212
  function K(e) {
213
- return typeof e != "number" || !Number.isFinite(e) || e <= 0 ? V : Math.max(e, H);
213
+ return e === "open" || e === "waiting" || e === "admitted" ? e : "expired";
214
214
  }
215
215
  function q(e) {
216
- let t = G(e?.state), n = typeof e?.token == "string" ? e.token : "";
216
+ return typeof e != "number" || !Number.isFinite(e) || e <= 0 ? H : Math.max(e, U);
217
+ }
218
+ function J(e) {
219
+ let t = K(e?.state), n = typeof e?.token == "string" ? e.token : "";
217
220
  return !n && t !== "open" ? null : {
218
221
  token: n,
219
222
  state: t,
220
- position: U(e?.position),
221
- ahead: U(e?.ahead),
222
- etaSeconds: U(e?.etaSeconds),
223
- pollAfterMs: K(e?.pollAfterMs),
223
+ position: W(e?.position),
224
+ ahead: W(e?.ahead),
225
+ etaSeconds: W(e?.etaSeconds),
226
+ pollAfterMs: q(e?.pollAfterMs),
224
227
  expiresAt: typeof e?.expiresAt == "string" ? e.expiresAt : ""
225
228
  };
226
229
  }
227
- async function J(e) {
230
+ async function Y(e) {
228
231
  try {
229
232
  let t = await o(`/events/${e}/queue`);
230
233
  return t.success ? {
231
234
  armed: t.data?.armed === !0,
232
- mode: W(t.data?.mode),
233
- waiting: U(t.data?.waiting),
234
- etaSeconds: U(t.data?.etaSeconds)
235
- } : B;
235
+ mode: G(t.data?.mode),
236
+ waiting: W(t.data?.waiting),
237
+ etaSeconds: W(t.data?.etaSeconds)
238
+ } : V;
236
239
  } catch (e) {
237
- return R.error("getQueueState error:", e), B;
240
+ return z.error("getQueueState error:", e), V;
238
241
  }
239
242
  }
240
- async function Y(e) {
243
+ async function X(e) {
241
244
  try {
242
245
  let t = await r(`/events/${e}/queue/join`, {});
243
246
  if (!t.success) return {
@@ -245,27 +248,27 @@ async function Y(e) {
245
248
  errorCode: t.errorCode || "queue_unavailable",
246
249
  statusCode: t.statusCode
247
250
  };
248
- let n = q(t.data);
251
+ let n = J(t.data);
249
252
  return n ? {
250
253
  success: !0,
251
254
  entry: n,
252
255
  statusCode: t.statusCode
253
256
  } : {
254
257
  success: !1,
255
- errorCode: z,
258
+ errorCode: B,
256
259
  statusCode: t.statusCode
257
260
  };
258
261
  } catch (e) {
259
- return R.error("joinQueue error:", e), {
262
+ return z.error("joinQueue error:", e), {
260
263
  success: !1,
261
- errorCode: z
264
+ errorCode: B
262
265
  };
263
266
  }
264
267
  }
265
- async function X(e, t) {
268
+ async function Z(e, t) {
266
269
  if (!t) return {
267
270
  success: !1,
268
- errorCode: z
271
+ errorCode: B
269
272
  };
270
273
  try {
271
274
  let n = await o(`/events/${e}/queue/status?token=${encodeURIComponent(t)}`);
@@ -274,24 +277,24 @@ async function X(e, t) {
274
277
  errorCode: n.errorCode || "queue_unavailable",
275
278
  statusCode: n.statusCode
276
279
  };
277
- let r = q(n.data);
280
+ let r = J(n.data);
278
281
  return r ? {
279
282
  success: !0,
280
283
  entry: r,
281
284
  statusCode: n.statusCode
282
285
  } : {
283
286
  success: !1,
284
- errorCode: z,
287
+ errorCode: B,
285
288
  statusCode: n.statusCode
286
289
  };
287
290
  } catch (e) {
288
- return R.error("getQueueStatus error:", e), {
291
+ return z.error("getQueueStatus error:", e), {
289
292
  success: !1,
290
- errorCode: z
293
+ errorCode: B
291
294
  };
292
295
  }
293
296
  }
294
- async function Z(e, t) {
297
+ async function ne(e, t) {
295
298
  if (!t) return { released: !1 };
296
299
  try {
297
300
  return { released: (await r(`/events/${e}/queue/leave`, { token: t }, {
@@ -299,13 +302,13 @@ async function Z(e, t) {
299
302
  suppressOnError: !0
300
303
  })).data?.released === !0 };
301
304
  } catch (e) {
302
- return R.error("leaveQueue error:", e), { released: !1 };
305
+ return z.error("leaveQueue error:", e), { released: !1 };
303
306
  }
304
307
  }
305
308
  //#endregion
306
309
  //#region src/lib/utils/orderApi.ts
307
310
  var Q = e("orderApi");
308
- function $(e) {
311
+ function re(e) {
309
312
  if (typeof e == "string") return e;
310
313
  if (e && typeof e == "object") {
311
314
  let t = e.message;
@@ -315,17 +318,17 @@ function $(e) {
315
318
  }
316
319
  return "";
317
320
  }
318
- function ne(e) {
321
+ function ie(e) {
319
322
  if (e && typeof e == "object") {
320
323
  let t = e.code;
321
324
  if (typeof t == "string") return t;
322
325
  }
323
326
  return "";
324
327
  }
325
- async function re() {
328
+ async function ae() {
326
329
  return null;
327
330
  }
328
- async function ie(e) {
331
+ async function oe(e) {
329
332
  try {
330
333
  let n = await o(`/venues/${e}`);
331
334
  if (!n.success) throw new t(n.error ?? `API error: ${n.statusCode}`, n.statusCode ?? 0, {
@@ -337,9 +340,9 @@ async function ie(e) {
337
340
  throw Q.error("getVenueDetails error:", e), e;
338
341
  }
339
342
  }
340
- async function ae(e = {}, t) {
343
+ async function $(e = {}, t) {
341
344
  try {
342
- let n = await re(), { eventID: i, quantities: a, donationAmounts: o, ...s } = e, c = a ? Object.fromEntries(Object.entries(a).map(([e, t]) => [parseInt(e, 10), t])) : {}, l = o ? Object.fromEntries(Object.entries(o).filter(([, e]) => parseFloat(String(e)) > 0).map(([e, t]) => [parseInt(e, 10), parseFloat(String(t))])) : void 0, u = {
345
+ let n = await ae(), { eventID: i, quantities: a, donationAmounts: o, ...s } = e, c = a ? Object.fromEntries(Object.entries(a).map(([e, t]) => [parseInt(e, 10), t])) : {}, l = o ? Object.fromEntries(Object.entries(o).filter(([, e]) => parseFloat(String(e)) > 0).map(([e, t]) => [parseInt(e, 10), parseFloat(String(t))])) : void 0, u = {
343
346
  purchaserIP: n,
344
347
  eventID: i ? parseInt(String(i), 10) : void 0,
345
348
  quantities: c,
@@ -347,8 +350,8 @@ async function ae(e = {}, t) {
347
350
  ...s
348
351
  }, d = await r("/orders/create", u, t ? { headers: { "X-Queue-Token": t } } : void 0), f = d.data ?? {};
349
352
  if (!d.success || f.error) {
350
- let e = $(f.error) || (typeof f.message == "string" ? f.message : "") || d.error || "Order creation failed";
351
- if ((d.errorCode || ne(f.error)) === "QUEUE_REQUIRED") return {
353
+ let e = re(f.error) || (typeof f.message == "string" ? f.message : "") || d.error || "Order creation failed";
354
+ if ((d.errorCode || ie(f.error)) === "QUEUE_REQUIRED") return {
352
355
  success: !1,
353
356
  error: e,
354
357
  errorType: "queue"
@@ -360,7 +363,7 @@ async function ae(e = {}, t) {
360
363
  errorType: t.includes("inventory") || t.includes("sold out") || t.includes("not available") || t.includes("insufficient") || d.statusCode === 409 ? "inventory" : "server"
361
364
  };
362
365
  }
363
- return N(f.uuid || f.cartUUID), {
366
+ return ee(f.uuid || f.cartUUID), {
364
367
  success: !0,
365
368
  uuid: f.uuid || f.cartUUID,
366
369
  serviceFee: f.serviceFee ?? 0,
@@ -375,7 +378,7 @@ async function ae(e = {}, t) {
375
378
  };
376
379
  }
377
380
  }
378
- async function oe(e) {
381
+ async function se(e) {
379
382
  try {
380
383
  let n = await o(`/orders/${e}`);
381
384
  if (!n.success) {
@@ -392,14 +395,14 @@ async function oe(e) {
392
395
  }
393
396
  //#endregion
394
397
  //#region src/lib/utils/utm.ts
395
- var se = e("utm");
396
- async function ce(e) {
398
+ var ce = e("utm");
399
+ async function le(e) {
397
400
  let t = new URLSearchParams(window.location.search), r = s(t.get("utm_source")) || "direct";
398
401
  try {
399
402
  await fetch(`${n()}/utm/${e}/${encodeURIComponent(r)}`);
400
403
  } catch (e) {
401
- se.error("UTM tracking failed:", e);
404
+ ce.error("UTM tracking failed:", e);
402
405
  }
403
406
  }
404
407
  //#endregion
405
- export { p as C, h as S, k as _, J as a, I as b, Z as c, D as d, j as f, O as g, ee as h, ae as i, C as l, P as m, oe as n, X as o, L as p, ie as r, Y as s, ce as t, w as u, te as v, m as x, A as y };
408
+ export { h as C, m as S, A as _, Y as a, M as b, ne as c, k as d, N as f, D as g, T as h, $ as i, C as l, te as m, se as n, Z as o, R as p, oe as r, X as s, le as t, w as u, j as v, p as w, L as x, I as y };