@getmicdrop/venue-calendar 4.3.8 → 4.3.10

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 (124) hide show
  1. package/dist/{ArrowLeftIcon-DvIbVly-.js → ArrowLeftIcon-BYu_Qbkb.js} +1 -1
  2. package/dist/{Badge-vsC_L__r.js → Badge-DCHGGod2.js} +8 -10
  3. package/dist/{BlockPlaceholder-BMD1gnmE.js → BlockPlaceholder-BoPMt_9Z.js} +2 -2
  4. package/dist/{Button-Cm6xkipe.js → Button-vmWb6wKc.js} +117 -63
  5. package/dist/{Calendar-CPD8dS_i.js → Calendar-D11ctjrD.js} +307 -282
  6. package/dist/{CalendarFoundryView-BY1uJgYA.js → CalendarFoundryView-DKhpjxnV.js} +6510 -6504
  7. package/dist/{CalendarIcon-CCgHZAu4.js → CalendarIcon-C8-UVSje.js} +1 -1
  8. package/dist/{CartView-DVugxQ3D.js → CartView-IqOekmQg.js} +814 -814
  9. package/dist/Checkout-ByQsDGg3.js +1005 -0
  10. package/dist/Checkout-C0lQ0AwV.js +1846 -0
  11. package/dist/{CheckoutTimer-CgGCv_jP.js → CheckoutTimer-B0E9KnHc.js} +15 -15
  12. package/dist/{ChevronDownIcon-gELqaIeP.js → ChevronDownIcon-C1uJ2yvz.js} +1 -1
  13. package/dist/{ClockIcon-C4MxWMqH.js → ClockIcon-Dk9q65sX.js} +1 -1
  14. package/dist/{CloseIcon-D3NjpzeW.js → CloseIcon-CyR73vpD.js} +1 -1
  15. package/dist/{CollectionView-C55yLTPR.js → CollectionView-B-CNyf9Z.js} +17 -17
  16. package/dist/CropImage-4WcoXkHt.js +537 -0
  17. package/dist/{Event-ClxgC-gP.js → Event-B4x0sGkc.js} +1142 -870
  18. package/dist/{EventPage-ziJYmBIZ.js → EventPage--xwhM503.js} +244 -236
  19. package/dist/{Heading-D7TEStkb.js → Heading-Br1Yqnvg.js} +3 -4
  20. package/dist/{Image-CjM21MQP.js → Image-M5RaWbKU.js} +12 -13
  21. package/dist/{Input-CIRGYHTC.js → Input-Bk8lP6TX.js} +53 -53
  22. package/dist/{MailIcon-iy7T12Hz.js → MailIcon-Ic2SruY-.js} +1 -1
  23. package/dist/{Modal-wQSo-C1f.js → Modal-CLeZUJ_i.js} +2 -2
  24. package/dist/ModalFooter-CSoG_uic.js +470 -0
  25. package/dist/ModalHeader-DpKxDJT_.js +18 -0
  26. package/dist/{PasswordInput-Cj8i4djG.js → PasswordInput-BHj_lokg.js} +2 -2
  27. package/dist/RecommendationsRail-8AVZ0aLE.js +445 -0
  28. package/dist/{ScarcityBadge-DbUVeqpx.js → ScarcityBadge-DakRfDx4.js} +19 -19
  29. package/dist/{SeriesPage-doki-1XH.js → SeriesPage-BaOeDNb6.js} +5 -5
  30. package/dist/{Spinner-Dua8H4Z1.js → Spinner-a1KCKWxZ.js} +2 -2
  31. package/dist/{Success-DZOYl6St.js → Success-BtUgc4H7.js} +290 -257
  32. package/dist/{TagIcon-CCyZd0sm.js → TagIcon-BiYfs6T7.js} +1 -1
  33. package/dist/{ViewTicketsEmbed-CF2Aq-qy.js → ViewTicketsEmbed-Lxg7n02-.js} +109 -109
  34. package/dist/{WarningCircleIcon-BuVhRrHd.js → WarningCircleIcon-AuYbQdPU.js} +1 -1
  35. package/dist/{WarningTriIcon-0hefhcdZ.js → WarningTriIcon-BzI-tSDG.js} +1 -1
  36. package/dist/{__SKIP_PATHS__-Dyw31EsB.js → __SKIP_PATHS__-B3OPLTzA.js} +1 -1
  37. package/dist/api/api.cjs +1 -1
  38. package/dist/api/api.mjs +239 -237
  39. package/dist/{api-QG8CoGcM.js → api-C1M2t6HU.js} +114 -112
  40. package/dist/{browser-viCaCwoW.js → browser-DrfMvEfn.js} +7 -7
  41. package/dist/{labels-0dEJldQX.js → constants-YG4UeBdR.js} +17 -4
  42. package/dist/{copyToClipboard-C7KGa7gG.js → copyToClipboard-3SejVveg.js} +1 -1
  43. package/dist/{de-K0-gFyNH.js → de-CzupmMIa.js} +14 -1
  44. package/dist/{defaultLabels-BdLGAc3u.js → defaultLabels-CXCsTwix.js} +331 -356
  45. package/dist/{es-DsZSuXW4.js → es-B-vQxM9Z.js} +14 -1
  46. package/dist/{event-CyPf2sZS.js → event-DAjJ01GM.js} +1 -1
  47. package/dist/{event-transform-DQmD2u_S.js → event-transform-DNqGTQhp.js} +54 -53
  48. package/dist/{eventStatusStream-BFOvtJyO.js → eventStatusStream-CLLN-Rvf.js} +2 -2
  49. package/dist/{fr-BmHldIKE.js → fr-B2g-kG7i.js} +14 -1
  50. package/dist/{href-CbfSre4l.js → href-DuxMJt4c.js} +3 -3
  51. package/dist/{i18n-CSftOFAS.js → i18n-Ct9Bo-Vp.js} +179 -129
  52. package/dist/{i18n-D54CGXK2.js → i18n-KdVjJUV5.js} +2 -2
  53. package/dist/{id-CBHA4B6C.js → id-Dgu5-FC6.js} +14 -1
  54. package/dist/imageOptimizer-Ba8P7ZEJ.js +140 -0
  55. package/dist/{it-CK6ravjO.js → it-C580sMYp.js} +14 -1
  56. package/dist/{ja-COO0Ibrr.js → ja-DLki4zXU.js} +14 -1
  57. package/dist/{ko-D8YqNrZs.js → ko-BUcfb1Gi.js} +14 -1
  58. package/dist/locales/4.3.10/flow/de.js +1 -0
  59. package/dist/locales/4.3.10/flow/es.js +1 -0
  60. package/dist/locales/4.3.10/flow/fr.js +1 -0
  61. package/dist/locales/4.3.10/flow/id.js +1 -0
  62. package/dist/locales/4.3.10/flow/it.js +1 -0
  63. package/dist/locales/4.3.10/flow/ja.js +1 -0
  64. package/dist/locales/4.3.10/flow/ko.js +1 -0
  65. package/dist/locales/4.3.10/flow/nl.js +1 -0
  66. package/dist/locales/4.3.10/flow/pl.js +1 -0
  67. package/dist/locales/4.3.10/flow/pt-br.js +1 -0
  68. package/dist/locales/4.3.10/flow/tr.js +1 -0
  69. package/dist/locales/4.3.10/flow/zh.js +1 -0
  70. package/dist/modalManager.svelte-Cz_6x1Qd.js +37 -0
  71. package/dist/{nl-Bk3DPD7e.js → nl-CivAQA0D.js} +14 -1
  72. package/dist/order-totals-DyVkHVqG.js +151 -0
  73. package/dist/{orders-Bat2EL64.js → orders-rH0WZYOW.js} +18 -18
  74. package/dist/{phoneUtils-Cm9iv40N.js → phoneUtils-BFrVEwkQ.js} +1 -1
  75. package/dist/{pixels-Ha6vOCaS.js → pixels-mdd6C3Bk.js} +3 -3
  76. package/dist/{pl-CPmO94ic.js → pl-C5VwFH2B.js} +14 -1
  77. package/dist/{promo-DWzTN7u9.js → promo-CTRn_F4t.js} +1 -1
  78. package/dist/{pt-br-Ch6NFhW6.js → pt-br-B0w9dhVB.js} +14 -1
  79. package/dist/{constants-q-jR2-bz.js → scarcity-Ccj5RlrR.js} +2 -5
  80. package/dist/{serverTotals-BBlkfqMf.js → serverTotals-Dk3z9sIA.js} +1 -1
  81. package/dist/{showcase-state-options-CxRQ-phi.js → showcase-state-options-8-egiV5-.js} +1 -1
  82. package/dist/{to-event-card-props-BIl0qQs0.js → to-event-card-props-a4k6D100.js} +49 -49
  83. package/dist/{tr-CXnalLJT.js → tr-LGkP5gpA.js} +14 -1
  84. package/dist/{utils-ChgG4jiQ.js → utils-BseYYrbn.js} +82 -78
  85. package/dist/venue-calendar.css +1 -1
  86. package/dist/venue-calendar.es.js +994 -996
  87. package/dist/venue-calendar.iife.js +56 -57
  88. package/dist/venue-calendar.umd.js +51 -52
  89. package/dist/{zh-CM2J1Py4.js → zh-D2ZAdq3T.js} +14 -1
  90. package/package.json +2 -2
  91. package/dist/Checkout-D7KSikhw.js +0 -980
  92. package/dist/Checkout-Ddcw2_8F.js +0 -1846
  93. package/dist/CropImage-CxLcNArr.js +0 -445
  94. package/dist/ModalFooter-DlRXuHQz.js +0 -301
  95. package/dist/imageOptimizer-BwLwBMI6.js +0 -112
  96. package/dist/keyboard-fiZFqeNA.js +0 -29
  97. package/dist/locales/4.3.8/flow/de.js +0 -1
  98. package/dist/locales/4.3.8/flow/es.js +0 -1
  99. package/dist/locales/4.3.8/flow/fr.js +0 -1
  100. package/dist/locales/4.3.8/flow/id.js +0 -1
  101. package/dist/locales/4.3.8/flow/it.js +0 -1
  102. package/dist/locales/4.3.8/flow/ja.js +0 -1
  103. package/dist/locales/4.3.8/flow/ko.js +0 -1
  104. package/dist/locales/4.3.8/flow/nl.js +0 -1
  105. package/dist/locales/4.3.8/flow/pl.js +0 -1
  106. package/dist/locales/4.3.8/flow/pt-br.js +0 -1
  107. package/dist/locales/4.3.8/flow/tr.js +0 -1
  108. package/dist/locales/4.3.8/flow/zh.js +0 -1
  109. package/dist/modalManager.svelte-Dnv5jhxp.js +0 -53
  110. package/dist/order-totals-Ci_p6SG6.js +0 -131
  111. package/dist/portal-DqxEuE-7.js +0 -166
  112. package/dist/shareCopyFeedback.svelte-CW0Yy9Oz.js +0 -330
  113. /package/dist/locales/{4.3.8 → 4.3.10}/main/de.js +0 -0
  114. /package/dist/locales/{4.3.8 → 4.3.10}/main/es.js +0 -0
  115. /package/dist/locales/{4.3.8 → 4.3.10}/main/fr.js +0 -0
  116. /package/dist/locales/{4.3.8 → 4.3.10}/main/id.js +0 -0
  117. /package/dist/locales/{4.3.8 → 4.3.10}/main/it.js +0 -0
  118. /package/dist/locales/{4.3.8 → 4.3.10}/main/ja.js +0 -0
  119. /package/dist/locales/{4.3.8 → 4.3.10}/main/ko.js +0 -0
  120. /package/dist/locales/{4.3.8 → 4.3.10}/main/nl.js +0 -0
  121. /package/dist/locales/{4.3.8 → 4.3.10}/main/pl.js +0 -0
  122. /package/dist/locales/{4.3.8 → 4.3.10}/main/pt-br.js +0 -0
  123. /package/dist/locales/{4.3.8 → 4.3.10}/main/tr.js +0 -0
  124. /package/dist/locales/{4.3.8 → 4.3.10}/main/zh.js +0 -0
@@ -1,7 +1,7 @@
1
- import { x as e } from "./Button-Cm6xkipe.js";
2
- import { D as t, I as n, T as r, _ as i, b as a, c as o, g as s, h as c, k as l, l as u } from "./defaultLabels-BdLGAc3u.js";
3
- import { T as d } from "./constants-q-jR2-bz.js";
4
- import { A as f, F as p, I as m, M as h, R as g, c as _, j as v, y as ee } from "./orders-Bat2EL64.js";
1
+ import { E as e } from "./Button-vmWb6wKc.js";
2
+ import { w as t } from "./scarcity-Ccj5RlrR.js";
3
+ import { D as n, I as r, T as i, _ as a, b as o, c as s, g as c, h as l, k as u, l as d } from "./defaultLabels-CXCsTwix.js";
4
+ import { A as f, F as p, I as m, M as h, R as g, c as _, j as v, y as ee } from "./orders-rH0WZYOW.js";
5
5
  //#region node_modules/@getmicdrop/svelte-components/dist/transforms/ticket.js
6
6
  var y = {
7
7
  EVERYWHERE: 0,
@@ -18,22 +18,22 @@ function x(e) {
18
18
  function S(e, t) {
19
19
  return e.totalCapacity ?? e.quantity ?? t;
20
20
  }
21
- function C(e) {
22
- let n = t(), r = s(e.effectiveSalesBegin, e.salesBegin, e.saleStartDate) ?? null, o = s(e.effectiveSalesEnd, e.salesEnd, e.saleEndDate) ?? null, l = a(r), u = a(o);
23
- if (!i(r) && !l) return "scheduled";
24
- if (!i(o) && !u) return "sales_ended";
25
- if (l && c(n, l) < 0) return "scheduled";
26
- if (u && c(n, u) > 0) return "sales_ended";
21
+ function te(e) {
22
+ let t = n(), r = c(e.effectiveSalesBegin, e.salesBegin, e.saleStartDate) ?? null, i = c(e.effectiveSalesEnd, e.salesEnd, e.saleEndDate) ?? null, s = o(r), u = o(i);
23
+ if (!a(r) && !s) return "scheduled";
24
+ if (!a(i) && !u) return "sales_ended";
25
+ if (s && l(t, s) < 0) return "scheduled";
26
+ if (u && l(t, u) > 0) return "sales_ended";
27
27
  if (e.soldOut === !0) return "sold_out";
28
28
  let d = x(e), f = S(e, d);
29
29
  return d === 0 ? "sold_out" : f > 0 && d / f < .1 ? "low" : "on_sale";
30
30
  }
31
- function te(e, t = {}) {
31
+ function ne(e, t = {}) {
32
32
  if (!Array.isArray(e)) return [];
33
33
  let n = e;
34
34
  return t.excludeDoorOnly && (n = n.filter((e) => e.salesChannel !== y.BOX_OFFICE_ONLY)), t.publicOnly && (n = n.filter((e) => e.visibility === b.VISIBLE)), n;
35
35
  }
36
- function ne(e) {
36
+ function C(e) {
37
37
  if (!Array.isArray(e) || e.length === 0) return {
38
38
  totalRemaining: 0,
39
39
  totalCapacity: 0,
@@ -50,29 +50,29 @@ function ne(e) {
50
50
  isSoldOut: t === 0
51
51
  };
52
52
  }
53
- function re(e) {
53
+ function w(e) {
54
54
  if (!Array.isArray(e) || e.length === 0) return 0;
55
55
  let t = e.map((e) => Number(e.price ?? e.ticketPrice)).filter((e) => Number.isFinite(e) && e > 0);
56
56
  return t.length > 0 ? Math.min(...t) : 0;
57
57
  }
58
58
  //#endregion
59
59
  //#region node_modules/@getmicdrop/svelte-components/dist/transforms/event.js
60
- function ie(e) {
60
+ function T(e) {
61
61
  return e.availableTickets || e.available_tickets || e.tickets || [];
62
62
  }
63
- function w(e) {
63
+ function E(e) {
64
64
  if (!e || !(e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >= b.PROMO_ONLY) || e.salesChannel === y.BOX_OFFICE_ONLY) return !1;
65
- let n = t(), r = s(e.effectiveSalesBegin, e.salesBegin, e.salesStart, e.saleBegin, e.onSaleStart, e.saleStartDate), o = s(e.effectiveSalesEnd, e.salesEnd, e.saleEnd, e.onSaleEnd, e.saleEndDate), l = a(r), u = a(o);
66
- if (!i(r) && !l || !i(o) && !u || l && c(l, n) > 0 || u && c(u, n) < 0) return !1;
65
+ let t = n(), r = c(e.effectiveSalesBegin, e.salesBegin, e.salesStart, e.saleBegin, e.onSaleStart, e.saleStartDate), i = c(e.effectiveSalesEnd, e.salesEnd, e.saleEnd, e.onSaleEnd, e.saleEndDate), s = o(r), u = o(i);
66
+ if (!a(r) && !s || !a(i) && !u || s && l(s, t) > 0 || u && l(u, t) < 0) return !1;
67
67
  let d = e.remainingCapacity ?? e.quantityRemaining ?? e.quantity;
68
68
  return !(e.soldOut || d != null && d <= 0);
69
69
  }
70
- function ae(e) {
71
- return e ? e.hasHiddenTickets === !0 || ie(e).some(w) : !1;
70
+ function re(e) {
71
+ return e ? e.hasHiddenTickets === !0 || T(e).some(E) : !1;
72
72
  }
73
73
  //#endregion
74
74
  //#region node_modules/@getmicdrop/svelte-components/dist/errors/classes/NotFoundError.js
75
- var T = class extends r {
75
+ var D = class extends i {
76
76
  constructor(e, t) {
77
77
  let n = t ? `${e} with ID ${t} not found` : `${e} not found`;
78
78
  super(n, "NOT_FOUND", {
@@ -85,13 +85,13 @@ var T = class extends r {
85
85
  }), this.name = "NotFoundError", this.resourceType = e, this.resourceId = t;
86
86
  }
87
87
  getUserMessage(e) {
88
- return u(e)?.fromCode?.(this.code) || o(this.resourceType.toLowerCase());
88
+ return d(e)?.fromCode?.(this.code) || s(this.resourceType.toLowerCase());
89
89
  }
90
- }, E = {
90
+ }, ie = {
91
91
  primary: "#0284fe",
92
92
  secondary: "#1d4ed8",
93
93
  tertiary: "#2563eb"
94
- }, D = {
94
+ }, O = {
95
95
  50: "#f9fafb",
96
96
  100: "#f3f4f6",
97
97
  200: "#e5e7eb",
@@ -102,31 +102,31 @@ var T = class extends r {
102
102
  700: "#374151",
103
103
  800: "#1f2937",
104
104
  900: "#111827"
105
- }, O = {
105
+ }, k = {
106
106
  text: {
107
- primary: D[900],
108
- secondary: D[500],
109
- muted: D[400],
107
+ primary: O[900],
108
+ secondary: O[500],
109
+ muted: O[400],
110
110
  inverted: "#ffffff"
111
111
  },
112
112
  background: {
113
113
  primary: "#ffffff",
114
- secondary: D[50],
115
- tertiary: D[100],
116
- dark: D[800],
117
- darker: D[900]
114
+ secondary: O[50],
115
+ tertiary: O[100],
116
+ dark: O[800],
117
+ darker: O[900]
118
118
  },
119
119
  border: {
120
- default: D[200],
121
- strong: D[300],
122
- muted: D[100],
120
+ default: O[200],
121
+ strong: O[300],
122
+ muted: O[100],
123
123
  light: "#e0e0e0"
124
124
  },
125
125
  success: "#16a34a",
126
126
  error: "#ef4444",
127
127
  warning: "#f59e0b",
128
128
  info: "#3b82f6"
129
- }, k = {
129
+ }, A = {
130
130
  blue: {
131
131
  200: "#bfdbfe",
132
132
  500: "#3b82f6",
@@ -177,33 +177,35 @@ var T = class extends r {
177
177
  300: "#ffeaa7"
178
178
  },
179
179
  coral: "#ff6b6b"
180
- }, oe = { defaultThemePrimary: "#7c3aed" }, se = {
181
- blue: E.tertiary,
180
+ }, j = { defaultThemePrimary: "#7c3aed" }, M = {
181
+ blue: ie.tertiary,
182
182
  black: "#000000",
183
- darkGray: D[700],
183
+ darkGray: O[700],
184
184
  gray: "#666666",
185
- lightGray: D[400],
186
- white: O.background.primary,
185
+ lightGray: O[400],
186
+ white: k.background.primary,
187
187
  offWhite: "#fafafa",
188
- lightBorder: D[200],
188
+ lightBorder: O[200],
189
189
  border: "#cccccc",
190
- orange: O.warning,
191
- red: O.error,
192
- green: k.green[500]
193
- }, A = e("VC");
194
- async function j(e, t) {
190
+ orange: k.warning,
191
+ red: k.error,
192
+ green: A.green[500]
193
+ }, N = e("VC");
194
+ function ae(e, t) {
195
+ if (e === 404) return "Promo code isn't valid.";
196
+ let n = (t ?? "").toLowerCase();
197
+ return e === 400 ? n.includes("not yet active") ? "Promo code doesn't apply." : n.includes("expired") ? "Promo code expired." : n.includes("limit") ? "Promo code has reached its limit." : "Promo code isn't valid." : "Failed to validate code";
198
+ }
199
+ async function oe(e, t) {
195
200
  try {
196
201
  if (!t || !t.trim()) return {
197
202
  valid: !1,
198
203
  error: "Promo code is required"
199
204
  };
200
205
  let n = encodeURIComponent(t.trim()), r = await v(`/promo-codes/validate/${e}/${n}`);
201
- if (!r.success) return r.statusCode === 404 ? {
202
- valid: !1,
203
- error: "Invalid promo code"
204
- } : {
206
+ if (!r.success) return {
205
207
  valid: !1,
206
- error: "Failed to validate code"
208
+ error: ae(r.statusCode, r.error)
207
209
  };
208
210
  let i = r.data;
209
211
  return {
@@ -218,21 +220,21 @@ async function j(e, t) {
218
220
  applyToTicketIds: i.applyToTicketIds
219
221
  };
220
222
  } catch (e) {
221
- return A.error("Error validating promo code:", e), {
223
+ return N.error("Error validating promo code:", e), {
222
224
  valid: !1,
223
225
  error: "Network error validating code"
224
226
  };
225
227
  }
226
228
  }
227
- async function M(e) {
229
+ async function se(e) {
228
230
  try {
229
231
  let t = await v(`/promo-codes/check/${e}`);
230
232
  return !t.success || t.data.hasPromoCodes === !0;
231
233
  } catch (e) {
232
- return A.error("Error checking promo codes availability:", e), !0;
234
+ return N.error("Error checking promo codes availability:", e), !0;
233
235
  }
234
236
  }
235
- async function N(e, t, n) {
237
+ async function ce(e, t, n) {
236
238
  try {
237
239
  let r = { promoCode: t };
238
240
  n && Object.keys(n).length > 0 && (r.productQuantities = n);
@@ -242,7 +244,7 @@ async function N(e, t, n) {
242
244
  error: i.error || "Failed to apply promo code"
243
245
  };
244
246
  } catch (e) {
245
- return A.error("Error applying promo code:", e), {
247
+ return N.error("Error applying promo code:", e), {
246
248
  success: !1,
247
249
  error: "Network error applying code"
248
250
  };
@@ -269,13 +271,13 @@ function I(e) {
269
271
  notFound: !0
270
272
  };
271
273
  }
272
- function ce(e, t) {
274
+ function le(e, t) {
273
275
  return e.ok ? e.data : t;
274
276
  }
275
277
  //#endregion
276
278
  //#region src/lib/api/route-manifest.ts
277
279
  var L = "/api/v2/public", R = "/api/orders/v2/public", z = "/api/orders/v2", B = "00000000-0000-0000-0000-000000000000";
278
- `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}`, `${L}`, `${L}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}`, `${L}`, `${L}`, `${L}`, `${L}${B}`, `${R}`, `${R}`, `${R}`, `${R}${B}`, `${R}`, `${R}${B}`, `${R}`, `${R}${B}`, `${R}`, `${R}${B}`, `${R}`, `${R}${B}`, `${R}`, `${R}${B}`, `${R}`, `${R}${B}`, `${R}`, `${R}${B}`, `${z}`, `${z}`, `${R}`, `${R}`, `${R}`, `${R}`, `${L}`, `${L}${B}`, `${L}`, `${L}`;
280
+ `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}`, `${L}`, `${L}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}`, `${L}`, `${L}`, `${L}`, `${L}${B}`, `${R}`, `${R}`, `${R}`, `${R}${B}`, `${R}`, `${R}${B}`, `${R}`, `${R}${B}`, `${R}`, `${R}${B}`, `${R}`, `${R}${B}`, `${R}`, `${R}${B}`, `${R}`, `${R}${B}`, `${R}`, `${R}${B}`, `${z}`, `${z}`, `${R}`, `${R}`, `${R}`, `${R}`, `${L}`, `${L}${B}`, `${L}`, `${L}`;
279
281
  //#endregion
280
282
  //#region src/lib/api/events.ts
281
283
  var V = e("VC"), H = /* @__PURE__ */ new Map();
@@ -311,35 +313,35 @@ async function G(e, t, n = (e) => e) {
311
313
  return V.error(`Error loading (${t}):`, e), F(t);
312
314
  }
313
315
  }
314
- function le(e) {
316
+ function ue(e) {
315
317
  return Array.isArray(e) ? e : [];
316
318
  }
317
319
  async function K(e, t) {
318
320
  let n = t?.trim(), r = n ? `?promoCode=${encodeURIComponent(n)}` : "";
319
- return G(`${m()}/tickets/event/${e}${r}`, "tickets_fetch_failed", le);
321
+ return G(`${m()}/tickets/event/${e}${r}`, "tickets_fetch_failed", ue);
320
322
  }
321
- async function ue(e, t) {
322
- return ce(await K(e, t), []);
323
+ async function de(e, t) {
324
+ return le(await K(e, t), []);
323
325
  }
324
- function de(e) {
326
+ function q(e) {
325
327
  return Array.isArray(e) ? e : Array.isArray(e.events) ? e.events : [];
326
328
  }
327
- var q = /* @__PURE__ */ new Map();
328
- function J(e, t, n) {
329
+ var J = /* @__PURE__ */ new Map();
330
+ function Y(e, t, n) {
329
331
  if (!n?.fresh) {
330
- let t = q.get(e);
332
+ let t = J.get(e);
331
333
  if (t) return t;
332
334
  }
333
- let r = G(e, t, (e) => de(e));
334
- return q.set(e, r), r.finally(() => {
335
- q.get(e) === r && q.delete(e);
335
+ let r = G(e, t, (e) => q(e));
336
+ return J.set(e, r), r.finally(() => {
337
+ J.get(e) === r && J.delete(e);
336
338
  }), r;
337
339
  }
338
340
  async function fe(e, t, n, r) {
339
- return J(`${m()}/events/venue/${e}/month/${t}/${n}`, "month_events_fetch_failed", r);
341
+ return Y(`${m()}/events/venue/${e}/month/${t}/${n}`, "month_events_fetch_failed", r);
340
342
  }
341
343
  async function pe(e, t, n, r) {
342
- return J(`${m()}/events/organization/${e}/month/${t}/${n}`, "org_month_events_fetch_failed", r);
344
+ return Y(`${m()}/events/organization/${e}/month/${t}/${n}`, "org_month_events_fetch_failed", r);
343
345
  }
344
346
  async function me(e, t) {
345
347
  return G(`${m()}/series/${e}/occurrences?venueId=${t}`, "series_cta_fetch_failed");
@@ -351,7 +353,7 @@ async function he(e, t) {
351
353
  async function ge(e, t) {
352
354
  try {
353
355
  let n = t ? `?slug=${encodeURIComponent(t)}` : "", r = await g(`${m()}/resolve/${encodeURIComponent(String(e))}${n}`);
354
- if (!r || !r.type) throw new T("entity", String(e));
356
+ if (!r || !r.type) throw new D("entity", String(e));
355
357
  return r;
356
358
  } catch (e) {
357
359
  return V.error("Error resolving public entity:", e), null;
@@ -360,7 +362,7 @@ async function ge(e, t) {
360
362
  async function _e(e, t) {
361
363
  try {
362
364
  let n = t ? `${m()}/collections/${e}?password=${encodeURIComponent(t)}` : `${m()}/collections/${e}`, r = await g(n);
363
- if (!r) throw new T("collection", String(e));
365
+ if (!r) throw new D("collection", String(e));
364
366
  return r;
365
367
  } catch (e) {
366
368
  return V.error("Error fetching collection:", e), null;
@@ -380,48 +382,48 @@ async function ve(e, t) {
380
382
  }
381
383
  //#endregion
382
384
  //#region src/lib/api/venues.ts
383
- var Y = e("VC");
385
+ var X = e("VC");
384
386
  async function ye(e) {
385
387
  try {
386
- if (!e) return Y.warn("getVenue called without venueId"), null;
388
+ if (!e) return X.warn("getVenue called without venueId"), null;
387
389
  let t = await v(`/venues/${e}`);
388
- return t.success ? t.data ?? null : (Y.error(`Failed to fetch venue: ${t.statusCode}`), null);
390
+ return t.success ? t.data ?? null : (X.error(`Failed to fetch venue: ${t.statusCode}`), null);
389
391
  } catch (e) {
390
- return Y.error("Error fetching venue:", e), null;
392
+ return X.error("Error fetching venue:", e), null;
391
393
  }
392
394
  }
393
395
  //#endregion
394
396
  //#region src/lib/api/transformers/giftCard.ts
395
- function X(e, t) {
397
+ function Z(e, t) {
396
398
  return e == null || t(e);
397
399
  }
398
- function Z(e) {
400
+ function be(e) {
399
401
  if (typeof e != "object" || !e) return !1;
400
402
  let t = e;
401
- return t.valid === !0 && Number.isInteger(t.appliedAmount) && typeof t.remainingTotal == "number" && Number.isFinite(t.remainingTotal) && X(t.giftCardCode, (e) => typeof e == "string") && X(t.giftCardBalance, (e) => typeof e == "number" && Number.isFinite(e)) && X(t.fullyCoveredByCard, (e) => typeof e == "boolean");
403
+ return t.valid === !0 && Number.isInteger(t.appliedAmount) && typeof t.remainingTotal == "number" && Number.isFinite(t.remainingTotal) && Z(t.giftCardCode, (e) => typeof e == "string") && Z(t.giftCardBalance, (e) => typeof e == "number" && Number.isFinite(e)) && Z(t.fullyCoveredByCard, (e) => typeof e == "boolean");
402
404
  }
403
- var be = "We couldn't apply that gift card. Please try again.";
404
- function xe(e) {
405
- if (!Z(e)) return {
405
+ var xe = "We couldn't apply that gift card. Please try again.";
406
+ function Se(e) {
407
+ if (!be(e)) return {
406
408
  valid: !1,
407
- error: be
409
+ error: xe
408
410
  };
409
- let t = e, r = l(n(t.appliedAmount)), i = t.remainingTotal, a = t.fullyCoveredByCard ?? i <= 0, o = !a;
411
+ let t = e, n = u(r(t.appliedAmount)), i = t.remainingTotal, a = t.fullyCoveredByCard ?? i <= 0, o = !a;
410
412
  return {
411
413
  valid: !0,
412
414
  giftCardCode: t.giftCardCode ?? void 0,
413
- giftCardAmount: r,
415
+ giftCardAmount: n,
414
416
  giftCardBalance: t.giftCardBalance ?? void 0,
415
417
  paymentType: a ? "gift_card_only" : "split",
416
418
  stripeAmount: i,
417
- orderTotal: r + i,
419
+ orderTotal: n + i,
418
420
  requiresStripe: o
419
421
  };
420
422
  }
421
423
  //#endregion
422
424
  //#region src/lib/api/gift-cards.ts
423
425
  var Q = e("VC");
424
- async function Se(e, t) {
426
+ async function Ce(e, t) {
425
427
  try {
426
428
  let n = await h(`${p()}/cart/${e}/apply-gift-card`, { giftCardCode: t });
427
429
  if (!n.success) return n.statusCode === 429 ? {
@@ -431,7 +433,7 @@ async function Se(e, t) {
431
433
  valid: !1,
432
434
  error: n.error || "Invalid gift card code"
433
435
  });
434
- let r = xe(n.data);
436
+ let r = Se(n.data);
435
437
  return r.valid || Q.error("Apply gift card returned an unusable payload:", n.data), r;
436
438
  } catch (e) {
437
439
  return Q.error("applyGiftCard error:", e), {
@@ -440,7 +442,7 @@ async function Se(e, t) {
440
442
  };
441
443
  }
442
444
  }
443
- async function Ce(e, t) {
445
+ async function we(e, t) {
444
446
  try {
445
447
  let n = t?.giftCardId ? { giftCardId: t.giftCardId } : t?.code ? { giftCardCode: t.code } : null, r = await f(`${p()}/cart/${e}/gift-card`, n ? { body: JSON.stringify(n) } : void 0);
446
448
  if (!r.success) return Q.error("Remove gift card failed:", r.error), {
@@ -459,28 +461,28 @@ async function Ce(e, t) {
459
461
  };
460
462
  }
461
463
  }
462
- async function we(e, t, n) {
463
- let r = _(n);
464
+ async function Te(e, n, r) {
465
+ let i = _(r);
464
466
  try {
465
- let n = await h(`${p()}/cart/${e}/complete-gift-card-payment`, {
466
- customerName: d(t.firstName, t.lastName),
467
- customerEmail: t.email,
468
- firstName: t.firstName,
469
- lastName: t.lastName,
470
- email: t.email,
471
- phoneNumber: t.phoneNumber || null,
472
- questionAnswer: t.questionAnswer || "",
473
- mailingList: t.mailingList || !1,
467
+ let r = await h(`${p()}/cart/${e}/complete-gift-card-payment`, {
468
+ customerName: t(n.firstName, n.lastName),
469
+ customerEmail: n.email,
470
+ firstName: n.firstName,
471
+ lastName: n.lastName,
472
+ email: n.email,
473
+ phoneNumber: n.phoneNumber || null,
474
+ questionAnswer: n.questionAnswer || "",
475
+ mailingList: n.mailingList || !1,
474
476
  attribution: ee(),
475
- ...r ? { locale: r } : {}
477
+ ...i ? { locale: i } : {}
476
478
  });
477
- return n.success ? {
479
+ return r.success ? {
478
480
  success: !0,
479
- orderId: n.data?.orderId,
480
- confirmationNumber: n.data?.confirmationNumber
481
- } : (Q.error("Complete gift card payment failed:", n.error), {
481
+ orderId: r.data?.orderId,
482
+ confirmationNumber: r.data?.confirmationNumber
483
+ } : (Q.error("Complete gift card payment failed:", r.error), {
482
484
  success: !1,
483
- error: n.error || "Failed to complete payment"
485
+ error: r.error || "Failed to complete payment"
484
486
  });
485
487
  } catch (e) {
486
488
  return Q.error("completeGiftCardPayment error:", e), {
@@ -492,7 +494,7 @@ async function we(e, t, n) {
492
494
  //#endregion
493
495
  //#region src/lib/api/waitlist.ts
494
496
  var $ = e("VC");
495
- async function Te(e, t, n = null, r = !1) {
497
+ async function Ee(e, t, n = null, r = !1) {
496
498
  try {
497
499
  let i = { email: t };
498
500
  n && r && (i.phone = n, i.smsOptIn = !0);
@@ -512,7 +514,7 @@ async function Te(e, t, n = null, r = !1) {
512
514
  };
513
515
  }
514
516
  }
515
- async function Ee(e, t) {
517
+ async function De(e, t) {
516
518
  try {
517
519
  let n = await h(`/checkout/validate-token/${e}`, { email: t });
518
520
  return n.success ? {
@@ -532,7 +534,7 @@ async function Ee(e, t) {
532
534
  };
533
535
  }
534
536
  }
535
- async function De(e, t) {
537
+ async function Oe(e, t) {
536
538
  try {
537
539
  let n = await h(`/waitlist/requeue/${e}`, { email: t });
538
540
  return n.success ? { success: !0 } : {
@@ -546,7 +548,7 @@ async function De(e, t) {
546
548
  };
547
549
  }
548
550
  }
549
- async function Oe(e) {
551
+ async function ke(e) {
550
552
  let t = {
551
553
  waitlistEnabled: !1,
552
554
  soldOut: !1,
@@ -564,4 +566,4 @@ async function Oe(e) {
564
566
  }
565
567
  }
566
568
  //#endregion
567
- export { te as A, D as C, w as D, ae as E, ne as O, oe as S, se as T, ge as _, Se as a, j as b, ye as c, ue as d, K as f, pe as g, fe as h, Ee as i, re as j, C as k, ve as l, he as m, Te as n, we as o, _e as p, De as r, Ce as s, Oe as t, W as u, N as v, O as w, k as x, M as y };
569
+ export { ne as A, O as C, E as D, re as E, C as O, j as S, M as T, ge as _, Ce as a, oe as b, ye as c, de as d, K as f, pe as g, fe as h, De as i, w as j, te as k, ve as l, he as m, Ee as n, Te as o, _e as p, Oe as r, we as s, ke as t, W as u, ce as v, k as w, A as x, se as y };
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./rolldown-runtime-DtPi1Y-2.js";
2
- import { h as t, v as n } from "./Button-Cm6xkipe.js";
2
+ import { C as t, b as n } from "./Button-vmWb6wKc.js";
3
3
  import { t as r } from "./RequiredIndicator-CYcnRFsA.js";
4
4
  import "svelte/internal/disclose-version";
5
5
  import * as i from "svelte/internal/client";
@@ -28,7 +28,7 @@ function c(e, c) {
28
28
  r(c, { get required() {
29
29
  return m();
30
30
  } }), i.reset(o), i.template_effect(() => {
31
- i.set_attribute(o, "for", i.get(C)), i.set_class(o, 1, `${n.label} ${t.tight} ${y() ? "text-status-error-text" : ""}`), i.set_text(s, v());
31
+ i.set_attribute(o, "for", i.get(C)), i.set_class(o, 1, `${t.label} ${n.tight} ${y() ? "text-status-error-text" : ""}`), i.set_text(s, v());
32
32
  }), i.append(e, o);
33
33
  };
34
34
  i.if(A, (e) => {
@@ -37,15 +37,15 @@ function c(e, c) {
37
37
  var M = i.sibling(A, 2);
38
38
  i.remove_textarea_child(M);
39
39
  var N = i.sibling(M, 2), P = (e) => {
40
- var t = o(), r = i.child(t, !0);
41
- i.reset(t), i.template_effect(() => {
42
- i.set_attribute(t, "id", i.get(w)), i.set_class(t, 1, i.clsx(n.error)), i.set_text(r, y());
43
- }), i.append(e, t);
40
+ var n = o(), r = i.child(n, !0);
41
+ i.reset(n), i.template_effect(() => {
42
+ i.set_attribute(n, "id", i.get(w)), i.set_class(n, 1, i.clsx(t.error)), i.set_text(r, y());
43
+ }), i.append(e, n);
44
44
  };
45
45
  i.if(N, (e) => {
46
46
  y() && e(P);
47
47
  }), i.reset(k), i.template_effect(() => {
48
- i.set_attribute(M, "id", i.get(C)), i.set_attribute(M, "name", _()), i.set_attribute(M, "placeholder", d()), i.set_attribute(M, "rows", f()), M.disabled = p(), M.readOnly = h(), i.set_attribute(M, "maxlength", b()), i.set_attribute(M, "minlength", x()), i.set_class(M, 1, `${n.sm ?? ""} w-full p-2.5 bg-bg-secondary ${t.normal ?? ""} border rounded-lg resize-y transition-colors focus:outline-hidden focus:ring-4 focus:ring-focus-ring placeholder-muted-foreground ${y() ? "border-status-error-border" : "border-stroke-primary hover:border-interactive-border focus:border-interactive-border"} ${p() ? "opacity-50 cursor-not-allowed" : ""} ${S() ?? ""}`), i.set_attribute(M, "aria-required", m()), i.set_attribute(M, "aria-invalid", !!y()), i.set_attribute(M, "aria-describedby", y() ? i.get(w) : void 0), i.set_attribute(M, "data-testid", c["data-testid"]);
48
+ i.set_attribute(M, "id", i.get(C)), i.set_attribute(M, "name", _()), i.set_attribute(M, "placeholder", d()), i.set_attribute(M, "rows", f()), M.disabled = p(), M.readOnly = h(), i.set_attribute(M, "maxlength", b()), i.set_attribute(M, "minlength", x()), i.set_class(M, 1, `${t.sm ?? ""} w-full p-2.5 bg-bg-secondary ${n.normal ?? ""} border rounded-lg resize-y transition-colors focus:outline-hidden focus:ring-4 focus:ring-focus-ring placeholder-muted-foreground ${y() ? "border-status-error-border" : "border-stroke-primary hover:border-interactive-border focus:border-interactive-border"} ${p() ? "opacity-50 cursor-not-allowed" : ""} ${S() ?? ""}`), i.set_attribute(M, "aria-required", m()), i.set_attribute(M, "aria-invalid", !!y()), i.set_attribute(M, "aria-describedby", y() ? i.get(w) : void 0), i.set_attribute(M, "data-testid", c["data-testid"]);
49
49
  }), i.delegated("input", M, T), i.delegated("change", M, E), i.event("blur", M, D), i.event("focus", M, O), i.delegated("keydown", M, function(...e) {
50
50
  c.onkeydown?.apply(this, e);
51
51
  }), i.delegated("keyup", M, function(...e) {
@@ -1,4 +1,4 @@
1
- import { C as e, S as t, w as n, x as r } from "./api-QG8CoGcM.js";
1
+ import { C as e, S as t, w as n, x as r } from "./api-C1M2t6HU.js";
2
2
  //#region src/lib/core/theme-engine.js
3
3
  var i = {
4
4
  primary: t.defaultThemePrimary,
@@ -90,6 +90,13 @@ var a = {
90
90
  cancel: "Cancel",
91
91
  continue: "Continue",
92
92
  submit: "Submit",
93
+ addOns: "Add-ons",
94
+ addOnRedeemBar: "redeem at the bar",
95
+ addOnRedeemHost: "check in with the host",
96
+ addOnRedeemMerch: "collect at the merch table",
97
+ addOnCollectInPerson: "collect in person",
98
+ addOnNeedsTicket: "Add a ticket first",
99
+ addOnPerTicketLimit: "max {count} per ticket",
93
100
  subtotal: "Subtotal",
94
101
  serviceFees: "Service fees",
95
102
  taxes: "Taxes",
@@ -229,7 +236,13 @@ var a = {
229
236
  queueWaitMinutes: "{n} minutes",
230
237
  queueKeepPageOpen: "Keep this page open — your spot is saved",
231
238
  queueAdmittedTitle: "You're in",
232
- queueAdmittedBody: "It's your turn — you can buy your tickets now"
233
- };
239
+ queueAdmittedBody: "It's your turn — you can buy your tickets now",
240
+ recommendationsHeading: "More at this venue",
241
+ recommendationFromTonightsLineup: "From tonight's lineup",
242
+ recommendationSimilarShow: "Similar show",
243
+ recommendationSameNight: "Same night of the week",
244
+ recommendationYouMightLike: "You might also like",
245
+ recommendationFeatured: "Featured"
246
+ }, o = "/placeholder-event.svg";
234
247
  //#endregion
235
- export { a as t };
248
+ export { a as n, o as t };
@@ -1,4 +1,4 @@
1
- import { J as e } from "./constants-q-jR2-bz.js";
1
+ import { q as e } from "./scarcity-Ccj5RlrR.js";
2
2
  import "svelte/internal/disclose-version";
3
3
  import * as t from "svelte/internal/client";
4
4
  //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/LocationIcon.svelte
@@ -48,6 +48,13 @@ var e = {
48
48
  cancel: "Abbrechen",
49
49
  continue: "Weiter",
50
50
  submit: "Bestätigen",
51
+ addOns: "Extras",
52
+ addOnRedeemBar: "an der Bar einlösen",
53
+ addOnRedeemHost: "am Empfang melden",
54
+ addOnRedeemMerch: "am Merch-Stand abholen",
55
+ addOnCollectInPerson: "vor Ort abholen",
56
+ addOnNeedsTicket: "Zuerst ein Ticket hinzufügen",
57
+ addOnPerTicketLimit: "max. {count} pro Ticket",
51
58
  subtotal: "Zwischensumme",
52
59
  serviceFees: "Servicegebühren",
53
60
  taxes: "Steuern",
@@ -187,7 +194,13 @@ var e = {
187
194
  queueWaitMinutes: "{n} Minuten",
188
195
  queueKeepPageOpen: "Lass diese Seite geöffnet — dein Platz bleibt reserviert",
189
196
  queueAdmittedTitle: "Du bist dran",
190
- queueAdmittedBody: "Du bist an der Reihe — jetzt kannst du deine Tickets kaufen"
197
+ queueAdmittedBody: "Du bist an der Reihe — jetzt kannst du deine Tickets kaufen",
198
+ recommendationsHeading: "Mehr an diesem Veranstaltungsort",
199
+ recommendationFromTonightsLineup: "Aus dem heutigen Line-up",
200
+ recommendationSimilarShow: "Ähnliche Show",
201
+ recommendationSameNight: "Gleicher Wochentag",
202
+ recommendationYouMightLike: "Das könnte dir auch gefallen",
203
+ recommendationFeatured: "Empfohlen"
191
204
  };
192
205
  //#endregion
193
206
  export { e as de };