@getmicdrop/venue-calendar 4.3.7 → 4.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/dist/{ArrowLeftIcon-DvOokN4u.js → ArrowLeftIcon-B6RmtBIh.js} +1 -1
  2. package/dist/{Badge-Gg5PWs7f.js → Badge-DsuBHDo4.js} +1 -2
  3. package/dist/{BlockPlaceholder-C2PUGPNA.js → BlockPlaceholder-BvArmbbO.js} +2 -2
  4. package/dist/{Button-Cm6xkipe.js → Button-CxQO7vwF.js} +88 -63
  5. package/dist/{Calendar-BnqBcrZv.js → Calendar-Dei3Ahdk.js} +113 -105
  6. package/dist/{CalendarFoundryView-L97Allfg.js → CalendarFoundryView-Df10CTZS.js} +5398 -5389
  7. package/dist/{CalendarIcon-DvhQ-GaL.js → CalendarIcon-DJh5V_U9.js} +1 -1
  8. package/dist/CartView-DPzvlZwV.js +2245 -0
  9. package/dist/Checkout-CZGmzTDh.js +983 -0
  10. package/dist/{Checkout-DQWeMchu.js → Checkout-CaamQTXi.js} +368 -368
  11. package/dist/{CheckoutTimer-8tVmatUn.js → CheckoutTimer-BubF7ziC.js} +15 -15
  12. package/dist/{ChevronDownIcon-DyNmV5XZ.js → ChevronDownIcon-MTzda9yz.js} +1 -1
  13. package/dist/{ClockIcon-dOWVO61o.js → ClockIcon-Dit8R1GZ.js} +1 -1
  14. package/dist/{CloseIcon-a3S2RgbP.js → CloseIcon-XqvbBmiA.js} +1 -1
  15. package/dist/{CollectionView-CAMsmrmW.js → CollectionView-B_rrXaQH.js} +17 -17
  16. package/dist/CropImage-mVbYhD9Y.js +527 -0
  17. package/dist/{Event-BQgaaFkh.js → Event-WtVZMQfA.js} +585 -585
  18. package/dist/EventPage-B14U0-Hm.js +1147 -0
  19. package/dist/{Heading-cKAx0Ogl.js → Heading-PKl9dm72.js} +3 -4
  20. package/dist/{Image-CNZLcePz.js → Image-BWo4QBld.js} +12 -13
  21. package/dist/{Input-D1FpSX5Q.js → Input-Bl1wqeUH.js} +2 -2
  22. package/dist/{MailIcon-CR_eGi6n.js → MailIcon-DQTusrr4.js} +1 -1
  23. package/dist/{Modal-LkN8lh_m.js → Modal-CDIhIlu-.js} +2 -2
  24. package/dist/ModalFooter-DwkZn9ls.js +471 -0
  25. package/dist/ModalHeader-BSsyLaXY.js +18 -0
  26. package/dist/{PasswordInput-Bt6tvpzi.js → PasswordInput-CnjRiZJ7.js} +2 -2
  27. package/dist/{ScarcityBadge-g0dRh6K7.js → ScarcityBadge-B4e3Z_Oz.js} +24 -24
  28. package/dist/{SeriesPage-CNRwP2W0.js → SeriesPage-DszQMCy9.js} +5 -5
  29. package/dist/{Spinner-LroI7eOC.js → Spinner-BRgBJYJn.js} +2 -2
  30. package/dist/{Success--2NRdG0V.js → Success-BYVtvNeO.js} +106 -106
  31. package/dist/{TagIcon-BhLrURo_.js → TagIcon-BAZxGlbC.js} +1 -1
  32. package/dist/{ViewTicketsEmbed-CvuMdTA7.js → ViewTicketsEmbed-BHDAkYuv.js} +97 -97
  33. package/dist/{WarningCircleIcon-BxBY0OMQ.js → WarningCircleIcon-SBK0lpqR.js} +1 -1
  34. package/dist/{WarningTriIcon-QVzQiEM4.js → WarningTriIcon-Bj3xpe3S.js} +1 -1
  35. package/dist/{__SKIP_PATHS__-B0_APtpt.js → __SKIP_PATHS__-B3-kZeYN.js} +1 -1
  36. package/dist/api/api.cjs +1 -1
  37. package/dist/api/api.mjs +239 -237
  38. package/dist/{colors-BsP3TRan.js → api-CTiZ6rza.js} +243 -244
  39. package/dist/{browser-viCaCwoW.js → browser-CziWLQ0z.js} +1 -1
  40. package/dist/{constants-PBNG9ikv.js → constants-rFRS1lF-.js} +1 -1
  41. package/dist/{copyToClipboard-B2F5d6Cj.js → copyToClipboard-C5D-wCS_.js} +1 -1
  42. package/dist/{defaultLabels-BigaGqKj.js → defaultLabels-CpurXn7c.js} +337 -361
  43. package/dist/{event-rtg4-kWS.js → event-d06xVg2P.js} +1 -1
  44. package/dist/{event-transform-J7U1JmeK.js → event-transform-BjPTqPq1.js} +31 -31
  45. package/dist/{eventStatusStream-CJVT_9Gu.js → eventStatusStream-BhQUTdOZ.js} +2 -2
  46. package/dist/{href-Dx7B6ZiQ.js → href-DMLDnIDe.js} +3 -3
  47. package/dist/{i18n-sO8wTASy.js → i18n--3wPB7-n.js} +2 -2
  48. package/dist/{i18n-C0aOwSpF.js → i18n-CASpRf85.js} +135 -135
  49. package/dist/imageOptimizer-D8g9XVns.js +141 -0
  50. package/dist/{labels-BBFJnXep.js → labels-IV_I9087.js} +14 -14
  51. package/dist/modalManager.svelte-Cz_6x1Qd.js +37 -0
  52. package/dist/{order-totals-DR-oXumr.js → order-totals-Buq9HeZa.js} +33 -33
  53. package/dist/{orders-CFF0Hb2x.js → orders-BK47iONR.js} +2 -2
  54. package/dist/{phoneUtils-C2GGZYvA.js → phoneUtils-YjT5IJ25.js} +1 -1
  55. package/dist/{pixels-M4FTi1Of.js → pixels-DjK-0XYz.js} +3 -3
  56. package/dist/{promo--p3GbP64.js → promo-DkM9sLly.js} +1 -1
  57. package/dist/{serverTotals-Dbi69SIr.js → serverTotals-CvJBYArq.js} +1 -1
  58. package/dist/{shareCopyFeedback.svelte-Cb2Mdn0z.js → shareCopyFeedback.svelte-oxKGmiOe.js} +65 -65
  59. package/dist/{showcase-state-options-BZGCm4wo.js → showcase-state-options-x_9iSBsd.js} +1 -1
  60. package/dist/{to-event-card-props-dIhKdERf.js → to-event-card-props-9y7sVBi_.js} +49 -49
  61. package/dist/types/index.d.ts +39 -0
  62. package/dist/{utils-CbacksjX.js → utils-D80jLqKH.js} +3 -3
  63. package/dist/venue-calendar.css +1 -1
  64. package/dist/venue-calendar.es.js +1515 -1506
  65. package/dist/venue-calendar.iife.js +54 -54
  66. package/dist/venue-calendar.umd.js +54 -54
  67. package/package.json +2 -2
  68. package/dist/CartView-D57bwixz.js +0 -2245
  69. package/dist/Checkout-wUH2YI1N.js +0 -980
  70. package/dist/CropImage-CxLcNArr.js +0 -445
  71. package/dist/EventPage-B9shaVEP.js +0 -1146
  72. package/dist/ModalFooter-B_8f1Z5p.js +0 -301
  73. package/dist/imageOptimizer-BwLwBMI6.js +0 -112
  74. package/dist/modalManager.svelte-B9mhX1cG.js +0 -53
  75. package/dist/portal-DqxEuE-7.js +0 -166
  76. /package/dist/locales/{4.3.7 → 4.3.9}/flow/de.js +0 -0
  77. /package/dist/locales/{4.3.7 → 4.3.9}/flow/es.js +0 -0
  78. /package/dist/locales/{4.3.7 → 4.3.9}/flow/fr.js +0 -0
  79. /package/dist/locales/{4.3.7 → 4.3.9}/flow/id.js +0 -0
  80. /package/dist/locales/{4.3.7 → 4.3.9}/flow/it.js +0 -0
  81. /package/dist/locales/{4.3.7 → 4.3.9}/flow/ja.js +0 -0
  82. /package/dist/locales/{4.3.7 → 4.3.9}/flow/ko.js +0 -0
  83. /package/dist/locales/{4.3.7 → 4.3.9}/flow/nl.js +0 -0
  84. /package/dist/locales/{4.3.7 → 4.3.9}/flow/pl.js +0 -0
  85. /package/dist/locales/{4.3.7 → 4.3.9}/flow/pt-br.js +0 -0
  86. /package/dist/locales/{4.3.7 → 4.3.9}/flow/tr.js +0 -0
  87. /package/dist/locales/{4.3.7 → 4.3.9}/flow/zh.js +0 -0
  88. /package/dist/locales/{4.3.7 → 4.3.9}/main/de.js +0 -0
  89. /package/dist/locales/{4.3.7 → 4.3.9}/main/es.js +0 -0
  90. /package/dist/locales/{4.3.7 → 4.3.9}/main/fr.js +0 -0
  91. /package/dist/locales/{4.3.7 → 4.3.9}/main/id.js +0 -0
  92. /package/dist/locales/{4.3.7 → 4.3.9}/main/it.js +0 -0
  93. /package/dist/locales/{4.3.7 → 4.3.9}/main/ja.js +0 -0
  94. /package/dist/locales/{4.3.7 → 4.3.9}/main/ko.js +0 -0
  95. /package/dist/locales/{4.3.7 → 4.3.9}/main/nl.js +0 -0
  96. /package/dist/locales/{4.3.7 → 4.3.9}/main/pl.js +0 -0
  97. /package/dist/locales/{4.3.7 → 4.3.9}/main/pt-br.js +0 -0
  98. /package/dist/locales/{4.3.7 → 4.3.9}/main/tr.js +0 -0
  99. /package/dist/locales/{4.3.7 → 4.3.9}/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-BigaGqKj.js";
3
- import { T as d } from "./constants-PBNG9ikv.js";
4
- import { A as f, F as p, I as m, M as h, R as g, c as ee, j as _, y as v } from "./orders-CFF0Hb2x.js";
1
+ import { x as e } from "./Button-CxQO7vwF.js";
2
+ import { T as t } from "./constants-rFRS1lF-.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-CpurXn7c.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-BK47iONR.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,22 +85,127 @@ 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 = e("VC");
91
- async function D(e, t) {
90
+ }, ie = {
91
+ primary: "#0284fe",
92
+ secondary: "#1d4ed8",
93
+ tertiary: "#2563eb"
94
+ }, O = {
95
+ 50: "#f9fafb",
96
+ 100: "#f3f4f6",
97
+ 200: "#e5e7eb",
98
+ 300: "#d1d5db",
99
+ 400: "#9ca3af",
100
+ 500: "#6b7280",
101
+ 600: "#4b5563",
102
+ 700: "#374151",
103
+ 800: "#1f2937",
104
+ 900: "#111827"
105
+ }, k = {
106
+ text: {
107
+ primary: O[900],
108
+ secondary: O[500],
109
+ muted: O[400],
110
+ inverted: "#ffffff"
111
+ },
112
+ background: {
113
+ primary: "#ffffff",
114
+ secondary: O[50],
115
+ tertiary: O[100],
116
+ dark: O[800],
117
+ darker: O[900]
118
+ },
119
+ border: {
120
+ default: O[200],
121
+ strong: O[300],
122
+ muted: O[100],
123
+ light: "#e0e0e0"
124
+ },
125
+ success: "#16a34a",
126
+ error: "#ef4444",
127
+ warning: "#f59e0b",
128
+ info: "#3b82f6"
129
+ }, A = {
130
+ blue: {
131
+ 200: "#bfdbfe",
132
+ 500: "#3b82f6",
133
+ 600: "#2563eb",
134
+ 700: "#1d4ed8"
135
+ },
136
+ red: {
137
+ 500: "#ef4444",
138
+ 600: "#dc2626",
139
+ 700: "#b91c1c"
140
+ },
141
+ green: {
142
+ 500: "#22c55e",
143
+ 600: "#16a34a",
144
+ emerald: "#10b981",
145
+ emeraldDark: "#059669"
146
+ },
147
+ amber: { 500: "#f59e0b" },
148
+ orange: { 500: "#f97316" },
149
+ violet: {
150
+ 400: "#a78bfa",
151
+ 500: "#8b5cf6",
152
+ 700: "#6d28d9"
153
+ },
154
+ pink: { 500: "#ec4899" },
155
+ lime: { 500: "#84cc16" },
156
+ indigo: { 500: "#6366f1" },
157
+ cyan: {
158
+ 400: "#22d3ee",
159
+ 500: "#06b6d4",
160
+ 600: "#0891b2"
161
+ },
162
+ teal: {
163
+ 400: "#2dd4bf",
164
+ 500: "#14b8a6"
165
+ },
166
+ sky: {
167
+ 400: "#45b7d1",
168
+ light: "#4ecdc4"
169
+ },
170
+ mint: {
171
+ 500: "#98d8c8",
172
+ 600: "#96ceb4"
173
+ },
174
+ plum: "#dda0dd",
175
+ yellow: {
176
+ 500: "#f7dc6f",
177
+ 300: "#ffeaa7"
178
+ },
179
+ coral: "#ff6b6b"
180
+ }, j = { defaultThemePrimary: "#7c3aed" }, M = {
181
+ blue: ie.tertiary,
182
+ black: "#000000",
183
+ darkGray: O[700],
184
+ gray: "#666666",
185
+ lightGray: O[400],
186
+ white: k.background.primary,
187
+ offWhite: "#fafafa",
188
+ lightBorder: O[200],
189
+ border: "#cccccc",
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) {
92
200
  try {
93
201
  if (!t || !t.trim()) return {
94
202
  valid: !1,
95
203
  error: "Promo code is required"
96
204
  };
97
- let n = encodeURIComponent(t.trim()), r = await _(`/promo-codes/validate/${e}/${n}`);
98
- if (!r.success) return r.statusCode === 404 ? {
205
+ let n = encodeURIComponent(t.trim()), r = await v(`/promo-codes/validate/${e}/${n}`);
206
+ if (!r.success) return {
99
207
  valid: !1,
100
- error: "Invalid promo code"
101
- } : {
102
- valid: !1,
103
- error: "Failed to validate code"
208
+ error: ae(r.statusCode, r.error)
104
209
  };
105
210
  let i = r.data;
106
211
  return {
@@ -115,21 +220,21 @@ async function D(e, t) {
115
220
  applyToTicketIds: i.applyToTicketIds
116
221
  };
117
222
  } catch (e) {
118
- return E.error("Error validating promo code:", e), {
223
+ return N.error("Error validating promo code:", e), {
119
224
  valid: !1,
120
225
  error: "Network error validating code"
121
226
  };
122
227
  }
123
228
  }
124
- async function oe(e) {
229
+ async function se(e) {
125
230
  try {
126
- let t = await _(`/promo-codes/check/${e}`);
231
+ let t = await v(`/promo-codes/check/${e}`);
127
232
  return !t.success || t.data.hasPromoCodes === !0;
128
233
  } catch (e) {
129
- return E.error("Error checking promo codes availability:", e), !0;
234
+ return N.error("Error checking promo codes availability:", e), !0;
130
235
  }
131
236
  }
132
- async function O(e, t, n) {
237
+ async function ce(e, t, n) {
133
238
  try {
134
239
  let r = { promoCode: t };
135
240
  n && Object.keys(n).length > 0 && (r.productQuantities = n);
@@ -139,7 +244,7 @@ async function O(e, t, n) {
139
244
  error: i.error || "Failed to apply promo code"
140
245
  };
141
246
  } catch (e) {
142
- return E.error("Error applying promo code:", e), {
247
+ return N.error("Error applying promo code:", e), {
143
248
  success: !1,
144
249
  error: "Network error applying code"
145
250
  };
@@ -147,123 +252,123 @@ async function O(e, t, n) {
147
252
  }
148
253
  //#endregion
149
254
  //#region src/lib/api/result.ts
150
- function k(e) {
255
+ function P(e) {
151
256
  return {
152
257
  ok: !0,
153
258
  data: e
154
259
  };
155
260
  }
156
- function A(e) {
261
+ function F(e) {
157
262
  return {
158
263
  ok: !1,
159
264
  error: e
160
265
  };
161
266
  }
162
- function j(e) {
267
+ function I(e) {
163
268
  return {
164
269
  ok: !1,
165
270
  error: e,
166
271
  notFound: !0
167
272
  };
168
273
  }
169
- function se(e, t) {
274
+ function le(e, t) {
170
275
  return e.ok ? e.data : t;
171
276
  }
172
277
  //#endregion
173
278
  //#region src/lib/api/route-manifest.ts
174
- var M = "/api/v2/public", N = "/api/orders/v2/public", P = "/api/orders/v2", F = "00000000-0000-0000-0000-000000000000";
175
- `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}`, `${M}`, `${M}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}${F}`, `${M}`, `${M}`, `${M}`, `${M}`, `${M}`, `${M}${F}`, `${N}`, `${N}`, `${N}`, `${N}${F}`, `${N}`, `${N}${F}`, `${N}`, `${N}${F}`, `${N}`, `${N}${F}`, `${N}`, `${N}${F}`, `${N}`, `${N}${F}`, `${N}`, `${N}${F}`, `${N}`, `${N}${F}`, `${P}`, `${P}`, `${N}`, `${N}`, `${N}`, `${N}`, `${M}`, `${M}${F}`, `${M}`, `${M}`;
279
+ var L = "/api/v2/public", R = "/api/orders/v2/public", z = "/api/orders/v2", B = "00000000-0000-0000-0000-000000000000";
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}`, `${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}`;
176
281
  //#endregion
177
282
  //#region src/lib/api/events.ts
178
- var I = e("VC"), L = /* @__PURE__ */ new Map();
179
- async function ce(e, t = fetch, n) {
283
+ var V = e("VC"), H = /* @__PURE__ */ new Map();
284
+ async function U(e, t = fetch, n) {
180
285
  let r = n ? `${e}:pw` : String(e);
181
286
  if (t === fetch) {
182
- let e = L.get(r);
287
+ let e = H.get(r);
183
288
  if (e) return e;
184
289
  }
185
290
  let i = (async () => {
186
291
  try {
187
292
  let r = await t(n ? `${m()}/events/${e}?password=${encodeURIComponent(n)}` : `${m()}/events/${e}`);
188
- if (!r.ok) return r.status === 404 ? j("event_not_found") : (I.error(`Failed to fetch event details: ${r.status}`), A("event_fetch_failed"));
293
+ if (!r.ok) return r.status === 404 ? I("event_not_found") : (V.error(`Failed to fetch event details: ${r.status}`), F("event_fetch_failed"));
189
294
  let i = await r.json();
190
- return i ? k(i) : j("event_not_found");
295
+ return i ? P(i) : I("event_not_found");
191
296
  } catch (e) {
192
- return I.error("Error fetching event details:", e), A("event_fetch_failed");
297
+ return V.error("Error fetching event details:", e), F("event_fetch_failed");
193
298
  }
194
299
  })();
195
- return t === fetch && (L.set(r, i), i.finally(() => {
196
- L.get(r) === i && L.delete(r);
300
+ return t === fetch && (H.set(r, i), i.finally(() => {
301
+ H.get(r) === i && H.delete(r);
197
302
  })), i;
198
303
  }
199
- async function R(e, t = fetch, n) {
200
- let r = await ce(e, t, n);
304
+ async function W(e, t = fetch, n) {
305
+ let r = await U(e, t, n);
201
306
  return r.ok ? r.data : null;
202
307
  }
203
- async function z(e, t, n = (e) => e) {
308
+ async function G(e, t, n = (e) => e) {
204
309
  try {
205
310
  let r = await g(e);
206
- return r ? k(n(r)) : (I.error(`Failed to load (${t}): network or server error`), A(t));
311
+ return r ? P(n(r)) : (V.error(`Failed to load (${t}): network or server error`), F(t));
207
312
  } catch (e) {
208
- return I.error(`Error loading (${t}):`, e), A(t);
313
+ return V.error(`Error loading (${t}):`, e), F(t);
209
314
  }
210
315
  }
211
- function B(e) {
316
+ function ue(e) {
212
317
  return Array.isArray(e) ? e : [];
213
318
  }
214
- async function V(e, t) {
319
+ async function K(e, t) {
215
320
  let n = t?.trim(), r = n ? `?promoCode=${encodeURIComponent(n)}` : "";
216
- return z(`${m()}/tickets/event/${e}${r}`, "tickets_fetch_failed", B);
321
+ return G(`${m()}/tickets/event/${e}${r}`, "tickets_fetch_failed", ue);
217
322
  }
218
- async function H(e, t) {
219
- return se(await V(e, t), []);
323
+ async function de(e, t) {
324
+ return le(await K(e, t), []);
220
325
  }
221
- function U(e) {
326
+ function q(e) {
222
327
  return Array.isArray(e) ? e : Array.isArray(e.events) ? e.events : [];
223
328
  }
224
- var W = /* @__PURE__ */ new Map();
225
- function G(e, t, n) {
329
+ var J = /* @__PURE__ */ new Map();
330
+ function Y(e, t, n) {
226
331
  if (!n?.fresh) {
227
- let t = W.get(e);
332
+ let t = J.get(e);
228
333
  if (t) return t;
229
334
  }
230
- let r = z(e, t, (e) => U(e));
231
- return W.set(e, r), r.finally(() => {
232
- W.get(e) === r && W.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);
233
338
  }), r;
234
339
  }
235
- async function le(e, t, n, r) {
236
- return G(`${m()}/events/venue/${e}/month/${t}/${n}`, "month_events_fetch_failed", r);
340
+ async function fe(e, t, n, r) {
341
+ return Y(`${m()}/events/venue/${e}/month/${t}/${n}`, "month_events_fetch_failed", r);
237
342
  }
238
- async function ue(e, t, n, r) {
239
- return G(`${m()}/events/organization/${e}/month/${t}/${n}`, "org_month_events_fetch_failed", r);
343
+ async function pe(e, t, n, r) {
344
+ return Y(`${m()}/events/organization/${e}/month/${t}/${n}`, "org_month_events_fetch_failed", r);
240
345
  }
241
- async function de(e, t) {
242
- return z(`${m()}/series/${e}/occurrences?venueId=${t}`, "series_cta_fetch_failed");
346
+ async function me(e, t) {
347
+ return G(`${m()}/series/${e}/occurrences?venueId=${t}`, "series_cta_fetch_failed");
243
348
  }
244
- async function fe(e, t) {
245
- let n = await de(e, t);
349
+ async function he(e, t) {
350
+ let n = await me(e, t);
246
351
  return n.ok ? n.data : null;
247
352
  }
248
- async function pe(e, t) {
353
+ async function ge(e, t) {
249
354
  try {
250
355
  let n = t ? `?slug=${encodeURIComponent(t)}` : "", r = await g(`${m()}/resolve/${encodeURIComponent(String(e))}${n}`);
251
- if (!r || !r.type) throw new T("entity", String(e));
356
+ if (!r || !r.type) throw new D("entity", String(e));
252
357
  return r;
253
358
  } catch (e) {
254
- return I.error("Error resolving public entity:", e), null;
359
+ return V.error("Error resolving public entity:", e), null;
255
360
  }
256
361
  }
257
- async function me(e, t) {
362
+ async function _e(e, t) {
258
363
  try {
259
364
  let n = t ? `${m()}/collections/${e}?password=${encodeURIComponent(t)}` : `${m()}/collections/${e}`, r = await g(n);
260
- if (!r) throw new T("collection", String(e));
365
+ if (!r) throw new D("collection", String(e));
261
366
  return r;
262
367
  } catch (e) {
263
- return I.error("Error fetching collection:", e), null;
368
+ return V.error("Error fetching collection:", e), null;
264
369
  }
265
370
  }
266
- async function he(e, t) {
371
+ async function ve(e, t) {
267
372
  try {
268
373
  let n = await g(`${m()}/events/${e}/check-password`, {
269
374
  method: "POST",
@@ -272,75 +377,75 @@ async function he(e, t) {
272
377
  });
273
378
  return typeof n == "boolean" ? { valid: n } : { valid: n?.valid === !0 };
274
379
  } catch (e) {
275
- return I.error("Error checking event password:", e), { valid: !1 };
380
+ return V.error("Error checking event password:", e), { valid: !1 };
276
381
  }
277
382
  }
278
383
  //#endregion
279
384
  //#region src/lib/api/venues.ts
280
- var K = e("VC");
281
- async function ge(e) {
385
+ var X = e("VC");
386
+ async function ye(e) {
282
387
  try {
283
- if (!e) return K.warn("getVenue called without venueId"), null;
284
- let t = await _(`/venues/${e}`);
285
- return t.success ? t.data ?? null : (K.error(`Failed to fetch venue: ${t.statusCode}`), null);
388
+ if (!e) return X.warn("getVenue called without venueId"), null;
389
+ let t = await v(`/venues/${e}`);
390
+ return t.success ? t.data ?? null : (X.error(`Failed to fetch venue: ${t.statusCode}`), null);
286
391
  } catch (e) {
287
- return K.error("Error fetching venue:", e), null;
392
+ return X.error("Error fetching venue:", e), null;
288
393
  }
289
394
  }
290
395
  //#endregion
291
396
  //#region src/lib/api/transformers/giftCard.ts
292
- function q(e, t) {
397
+ function Z(e, t) {
293
398
  return e == null || t(e);
294
399
  }
295
- function _e(e) {
400
+ function be(e) {
296
401
  if (typeof e != "object" || !e) return !1;
297
402
  let t = e;
298
- return t.valid === !0 && Number.isInteger(t.appliedAmount) && typeof t.remainingTotal == "number" && Number.isFinite(t.remainingTotal) && q(t.giftCardCode, (e) => typeof e == "string") && q(t.giftCardBalance, (e) => typeof e == "number" && Number.isFinite(e)) && q(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");
299
404
  }
300
- var ve = "We couldn't apply that gift card. Please try again.";
301
- function ye(e) {
302
- if (!_e(e)) return {
405
+ var xe = "We couldn't apply that gift card. Please try again.";
406
+ function Se(e) {
407
+ if (!be(e)) return {
303
408
  valid: !1,
304
- error: ve
409
+ error: xe
305
410
  };
306
- 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;
307
412
  return {
308
413
  valid: !0,
309
414
  giftCardCode: t.giftCardCode ?? void 0,
310
- giftCardAmount: r,
415
+ giftCardAmount: n,
311
416
  giftCardBalance: t.giftCardBalance ?? void 0,
312
417
  paymentType: a ? "gift_card_only" : "split",
313
418
  stripeAmount: i,
314
- orderTotal: r + i,
419
+ orderTotal: n + i,
315
420
  requiresStripe: o
316
421
  };
317
422
  }
318
423
  //#endregion
319
424
  //#region src/lib/api/gift-cards.ts
320
- var J = e("VC");
321
- async function be(e, t) {
425
+ var Q = e("VC");
426
+ async function Ce(e, t) {
322
427
  try {
323
428
  let n = await h(`${p()}/cart/${e}/apply-gift-card`, { giftCardCode: t });
324
429
  if (!n.success) return n.statusCode === 429 ? {
325
430
  valid: !1,
326
431
  error: "Too many attempts. Please wait a moment and try again."
327
- } : (J.error("Apply gift card failed:", n.error), {
432
+ } : (Q.error("Apply gift card failed:", n.error), {
328
433
  valid: !1,
329
434
  error: n.error || "Invalid gift card code"
330
435
  });
331
- let r = ye(n.data);
332
- return r.valid || J.error("Apply gift card returned an unusable payload:", n.data), r;
436
+ let r = Se(n.data);
437
+ return r.valid || Q.error("Apply gift card returned an unusable payload:", n.data), r;
333
438
  } catch (e) {
334
- return J.error("applyGiftCard error:", e), {
439
+ return Q.error("applyGiftCard error:", e), {
335
440
  valid: !1,
336
441
  error: "Network error. Please check your connection and try again."
337
442
  };
338
443
  }
339
444
  }
340
- async function xe(e, t) {
445
+ async function we(e, t) {
341
446
  try {
342
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);
343
- if (!r.success) return J.error("Remove gift card failed:", r.error), {
448
+ if (!r.success) return Q.error("Remove gift card failed:", r.error), {
344
449
  success: !1,
345
450
  error: r.error || "Failed to remove gift card"
346
451
  };
@@ -350,37 +455,37 @@ async function xe(e, t) {
350
455
  ...typeof a == "number" ? { remainingTotal: a } : {}
351
456
  };
352
457
  } catch (e) {
353
- return J.error("removeGiftCard error:", e), {
458
+ return Q.error("removeGiftCard error:", e), {
354
459
  success: !1,
355
460
  error: "Network error. Please check your connection and try again."
356
461
  };
357
462
  }
358
463
  }
359
- async function Y(e, t, n) {
360
- let r = ee(n);
464
+ async function Te(e, n, r) {
465
+ let i = _(r);
361
466
  try {
362
- let n = await h(`${p()}/cart/${e}/complete-gift-card-payment`, {
363
- customerName: d(t.firstName, t.lastName),
364
- customerEmail: t.email,
365
- firstName: t.firstName,
366
- lastName: t.lastName,
367
- email: t.email,
368
- phoneNumber: t.phoneNumber || null,
369
- questionAnswer: t.questionAnswer || "",
370
- mailingList: t.mailingList || !1,
371
- attribution: v(),
372
- ...r ? { locale: r } : {}
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,
476
+ attribution: ee(),
477
+ ...i ? { locale: i } : {}
373
478
  });
374
- return n.success ? {
479
+ return r.success ? {
375
480
  success: !0,
376
- orderId: n.data?.orderId,
377
- confirmationNumber: n.data?.confirmationNumber
378
- } : (J.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), {
379
484
  success: !1,
380
- error: n.error || "Failed to complete payment"
485
+ error: r.error || "Failed to complete payment"
381
486
  });
382
487
  } catch (e) {
383
- return J.error("completeGiftCardPayment error:", e), {
488
+ return Q.error("completeGiftCardPayment error:", e), {
384
489
  success: !1,
385
490
  error: "Network error. Please check your connection and try again."
386
491
  };
@@ -388,8 +493,8 @@ async function Y(e, t, n) {
388
493
  }
389
494
  //#endregion
390
495
  //#region src/lib/api/waitlist.ts
391
- var X = e("VC");
392
- async function Se(e, t, n = null, r = !1) {
496
+ var $ = e("VC");
497
+ async function Ee(e, t, n = null, r = !1) {
393
498
  try {
394
499
  let i = { email: t };
395
500
  n && r && (i.phone = n, i.smsOptIn = !0);
@@ -398,18 +503,18 @@ async function Se(e, t, n = null, r = !1) {
398
503
  success: !0,
399
504
  updated: a.data?.updated,
400
505
  position: a.data?.position
401
- } : (X.error("Join waitlist failed:", a.error), {
506
+ } : ($.error("Join waitlist failed:", a.error), {
402
507
  success: !1,
403
508
  errorCode: a.error || "join_failed"
404
509
  });
405
510
  } catch (e) {
406
- return X.error("joinWaitlist error:", e), {
511
+ return $.error("joinWaitlist error:", e), {
407
512
  success: !1,
408
513
  errorCode: "network_error"
409
514
  };
410
515
  }
411
516
  }
412
- async function Ce(e, t) {
517
+ async function De(e, t) {
413
518
  try {
414
519
  let n = await h(`/checkout/validate-token/${e}`, { email: t });
415
520
  return n.success ? {
@@ -422,14 +527,14 @@ async function Ce(e, t) {
422
527
  errorCode: n.error
423
528
  };
424
529
  } catch (e) {
425
- return X.error("validateWaitlistToken error:", e), {
530
+ return $.error("validateWaitlistToken error:", e), {
426
531
  valid: !1,
427
532
  eventId: 0,
428
533
  errorCode: "invalid_token"
429
534
  };
430
535
  }
431
536
  }
432
- async function we(e, t) {
537
+ async function Oe(e, t) {
433
538
  try {
434
539
  let n = await h(`/waitlist/requeue/${e}`, { email: t });
435
540
  return n.success ? { success: !0 } : {
@@ -437,134 +542,28 @@ async function we(e, t) {
437
542
  errorCode: n.error
438
543
  };
439
544
  } catch (e) {
440
- return X.error("requeueWaitlistToFront error:", e), {
545
+ return $.error("requeueWaitlistToFront error:", e), {
441
546
  success: !1,
442
547
  errorCode: "internal_error"
443
548
  };
444
549
  }
445
550
  }
446
- async function Te(e) {
551
+ async function ke(e) {
447
552
  let t = {
448
553
  waitlistEnabled: !1,
449
554
  soldOut: !1,
450
555
  gated: !1
451
556
  };
452
557
  try {
453
- let n = await _(`/events/${e}/waitlist/status`);
558
+ let n = await v(`/events/${e}/waitlist/status`);
454
559
  return n.success ? {
455
560
  waitlistEnabled: !!n.data?.waitlistEnabled,
456
561
  soldOut: !!n.data?.soldOut,
457
562
  gated: !!n.data?.gated
458
563
  } : t;
459
564
  } catch (e) {
460
- return X.error("getWaitlistStatus error:", e), t;
565
+ return $.error("getWaitlistStatus error:", e), t;
461
566
  }
462
567
  }
463
568
  //#endregion
464
- //#region src/lib/constants/colors.ts
465
- var Ee = {
466
- primary: "#0284fe",
467
- secondary: "#1d4ed8",
468
- tertiary: "#2563eb"
469
- }, Z = {
470
- 50: "#f9fafb",
471
- 100: "#f3f4f6",
472
- 200: "#e5e7eb",
473
- 300: "#d1d5db",
474
- 400: "#9ca3af",
475
- 500: "#6b7280",
476
- 600: "#4b5563",
477
- 700: "#374151",
478
- 800: "#1f2937",
479
- 900: "#111827"
480
- }, Q = {
481
- text: {
482
- primary: Z[900],
483
- secondary: Z[500],
484
- muted: Z[400],
485
- inverted: "#ffffff"
486
- },
487
- background: {
488
- primary: "#ffffff",
489
- secondary: Z[50],
490
- tertiary: Z[100],
491
- dark: Z[800],
492
- darker: Z[900]
493
- },
494
- border: {
495
- default: Z[200],
496
- strong: Z[300],
497
- muted: Z[100],
498
- light: "#e0e0e0"
499
- },
500
- success: "#16a34a",
501
- error: "#ef4444",
502
- warning: "#f59e0b",
503
- info: "#3b82f6"
504
- }, $ = {
505
- blue: {
506
- 200: "#bfdbfe",
507
- 500: "#3b82f6",
508
- 600: "#2563eb",
509
- 700: "#1d4ed8"
510
- },
511
- red: {
512
- 500: "#ef4444",
513
- 600: "#dc2626",
514
- 700: "#b91c1c"
515
- },
516
- green: {
517
- 500: "#22c55e",
518
- 600: "#16a34a",
519
- emerald: "#10b981",
520
- emeraldDark: "#059669"
521
- },
522
- amber: { 500: "#f59e0b" },
523
- orange: { 500: "#f97316" },
524
- violet: {
525
- 400: "#a78bfa",
526
- 500: "#8b5cf6",
527
- 700: "#6d28d9"
528
- },
529
- pink: { 500: "#ec4899" },
530
- lime: { 500: "#84cc16" },
531
- indigo: { 500: "#6366f1" },
532
- cyan: {
533
- 400: "#22d3ee",
534
- 500: "#06b6d4",
535
- 600: "#0891b2"
536
- },
537
- teal: {
538
- 400: "#2dd4bf",
539
- 500: "#14b8a6"
540
- },
541
- sky: {
542
- 400: "#45b7d1",
543
- light: "#4ecdc4"
544
- },
545
- mint: {
546
- 500: "#98d8c8",
547
- 600: "#96ceb4"
548
- },
549
- plum: "#dda0dd",
550
- yellow: {
551
- 500: "#f7dc6f",
552
- 300: "#ffeaa7"
553
- },
554
- coral: "#ff6b6b"
555
- }, De = { defaultThemePrimary: "#7c3aed" }, Oe = {
556
- blue: Ee.tertiary,
557
- black: "#000000",
558
- darkGray: Z[700],
559
- gray: "#666666",
560
- lightGray: Z[400],
561
- white: Q.background.primary,
562
- offWhite: "#fafafa",
563
- lightBorder: Z[200],
564
- border: "#cccccc",
565
- orange: Q.warning,
566
- red: Q.error,
567
- green: $.green[500]
568
- };
569
- //#endregion
570
- export { te as A, O as C, w as D, ae as E, ne as O, pe as S, D as T, V as _, Oe as a, le as b, we as c, Y as d, xe as f, H as g, R as h, Q as i, re as j, C as k, Ce as l, he as m, De as n, Te as o, ge as p, Z as r, Se as s, $ as t, be as u, me as v, oe as w, ue as x, fe 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 };