@getmicdrop/venue-calendar 4.2.3 → 4.2.4

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 (76) hide show
  1. package/dist/{ArrowLeftIcon-CxZXP_IT.js → ArrowLeftIcon-BGd-X_Qm.js} +1 -1
  2. package/dist/{BlockPlaceholder-HZ6Coko5.js → BlockPlaceholder-Wl39H9Z7.js} +1 -1
  3. package/dist/{Calendar-BKefLfIt.js → Calendar-DafPX3k_.js} +4 -4
  4. package/dist/{CalendarFoundryView-tDmFCrJ3.js → CalendarFoundryView-COkX5oQx.js} +21 -21
  5. package/dist/{CalendarIcon-CLGR_zlO.js → CalendarIcon-CeQ1_FWq.js} +1 -1
  6. package/dist/{CartView-CHFlfWS9.js → CartView-nvVA8vWk.js} +15 -15
  7. package/dist/{Checkout-CRX7dcRr.js → Checkout-BphC7gak.js} +20 -20
  8. package/dist/{Checkout-C-A4t1eE.js → Checkout-Ow2x8cNL.js} +12 -12
  9. package/dist/{CheckoutTimer-d3KUbevy.js → CheckoutTimer-DJlt5M2b.js} +2 -2
  10. package/dist/{ChevronDownIcon-YtBeSqjf.js → ChevronDownIcon-y7oNyepp.js} +1 -1
  11. package/dist/{ClockIcon-a9tJQ5El.js → ClockIcon-BGTz8dak.js} +1 -1
  12. package/dist/{CloseIcon-DSURK5co.js → CloseIcon-C9SHeORJ.js} +1 -1
  13. package/dist/{CollectionView-BiBMllyw.js → CollectionView-BAIlcuqO.js} +7 -7
  14. package/dist/{Event-1ZJVzqFN.js → Event-CTaXLze_.js} +17 -17
  15. package/dist/{EventPage-C7K2yA4v.js → EventPage-LuA-aEYZ.js} +14 -14
  16. package/dist/{Input-DkYIFK4J.js → Input-iXqece97.js} +1 -1
  17. package/dist/{MailIcon-DIrQpcGo.js → MailIcon-xtNog-7h.js} +1 -1
  18. package/dist/{Modal-DrA1swbF.js → Modal-CqzRblrN.js} +2 -2
  19. package/dist/{ModalFooter-r1NQNG9P.js → ModalFooter-DHhBLDbO.js} +1 -1
  20. package/dist/{PasswordInput-DB4qa7kS.js → PasswordInput-Czm5Pe_p.js} +1 -1
  21. package/dist/{ScarcityBadge-BJOm7_Ho.js → ScarcityBadge-CdgQmt1D.js} +3 -3
  22. package/dist/{SeriesPage-JVmqUSax.js → SeriesPage-DfCyV1ka.js} +4 -4
  23. package/dist/{Success-DAE6gPZM.js → Success-CsYxRkLE.js} +20 -20
  24. package/dist/{TagIcon-CrTNd8qE.js → TagIcon-DJSTnymB.js} +1 -1
  25. package/dist/{ViewTicketsEmbed-Zx-mvP2p.js → ViewTicketsEmbed-CKucKt-W.js} +10 -10
  26. package/dist/{WarningCircleIcon-C5-op3Cy.js → WarningCircleIcon-BKSQbu7p.js} +1 -1
  27. package/dist/{WarningTriIcon-BxIQn7c2.js → WarningTriIcon-DgwTwlxe.js} +1 -1
  28. package/dist/{__SKIP_PATHS__-DyyiXBgB.js → __SKIP_PATHS__-BTbGfN80.js} +1 -1
  29. package/dist/api/api.cjs +1 -1
  30. package/dist/api/api.mjs +187 -181
  31. package/dist/api/client.d.ts +16 -0
  32. package/dist/{colors-MuuDk6KF.js → colors-DeJAzg_q.js} +35 -35
  33. package/dist/{constants-CqrJv6nM.js → constants-OTS1wmXZ.js} +3 -0
  34. package/dist/{copyToClipboard-CTS9Wtmo.js → copyToClipboard-CRDdh3r8.js} +1 -1
  35. package/dist/{event-transform-jFmHl0Qp.js → event-transform-BaJ7M1DL.js} +2 -2
  36. package/dist/{eventStatusStream-D04pcbuu.js → eventStatusStream-sq6uPnMe.js} +5 -5
  37. package/dist/{href-C8WGnROy.js → href-DJeJpcO9.js} +1 -1
  38. package/dist/{i18n-CcJmTGJP.js → i18n-GzfxX0Ad.js} +3 -3
  39. package/dist/{labels-Q4CaHsVM.js → labels-CqodQmuY.js} +1 -1
  40. package/dist/{modalManager.svelte-qcVxl7C5.js → modalManager.svelte-OSPs3dSW.js} +1 -1
  41. package/dist/{order-totals-BImtvmoh.js → order-totals-BAKL9cOB.js} +1 -1
  42. package/dist/{orders-C8kt6c-E.js → orders-NZP81zYT.js} +193 -182
  43. package/dist/{phoneUtils-FnBDCqO0.js → phoneUtils-BJeAIGYo.js} +1 -1
  44. package/dist/{pixels-MEc7WYiV.js → pixels-BBruZizp.js} +1 -1
  45. package/dist/{shareCopyFeedback.svelte-Dko8NIbm.js → shareCopyFeedback.svelte-BRInK1hH.js} +2 -2
  46. package/dist/{to-event-card-props-BAHzloEA.js → to-event-card-props-CO3aPBdH.js} +1 -1
  47. package/dist/{utils-Ts4-U13Y.js → utils-C8GgxJMv.js} +29 -29
  48. package/dist/venue-calendar.css +1 -1
  49. package/dist/venue-calendar.es.js +1210 -1071
  50. package/dist/venue-calendar.iife.js +58 -58
  51. package/dist/venue-calendar.umd.js +56 -56
  52. package/package.json +1 -1
  53. /package/dist/locales/{4.2.3 → 4.2.4}/flow/de.js +0 -0
  54. /package/dist/locales/{4.2.3 → 4.2.4}/flow/es.js +0 -0
  55. /package/dist/locales/{4.2.3 → 4.2.4}/flow/fr.js +0 -0
  56. /package/dist/locales/{4.2.3 → 4.2.4}/flow/id.js +0 -0
  57. /package/dist/locales/{4.2.3 → 4.2.4}/flow/it.js +0 -0
  58. /package/dist/locales/{4.2.3 → 4.2.4}/flow/ja.js +0 -0
  59. /package/dist/locales/{4.2.3 → 4.2.4}/flow/ko.js +0 -0
  60. /package/dist/locales/{4.2.3 → 4.2.4}/flow/nl.js +0 -0
  61. /package/dist/locales/{4.2.3 → 4.2.4}/flow/pl.js +0 -0
  62. /package/dist/locales/{4.2.3 → 4.2.4}/flow/pt-br.js +0 -0
  63. /package/dist/locales/{4.2.3 → 4.2.4}/flow/tr.js +0 -0
  64. /package/dist/locales/{4.2.3 → 4.2.4}/flow/zh.js +0 -0
  65. /package/dist/locales/{4.2.3 → 4.2.4}/main/de.js +0 -0
  66. /package/dist/locales/{4.2.3 → 4.2.4}/main/es.js +0 -0
  67. /package/dist/locales/{4.2.3 → 4.2.4}/main/fr.js +0 -0
  68. /package/dist/locales/{4.2.3 → 4.2.4}/main/id.js +0 -0
  69. /package/dist/locales/{4.2.3 → 4.2.4}/main/it.js +0 -0
  70. /package/dist/locales/{4.2.3 → 4.2.4}/main/ja.js +0 -0
  71. /package/dist/locales/{4.2.3 → 4.2.4}/main/ko.js +0 -0
  72. /package/dist/locales/{4.2.3 → 4.2.4}/main/nl.js +0 -0
  73. /package/dist/locales/{4.2.3 → 4.2.4}/main/pl.js +0 -0
  74. /package/dist/locales/{4.2.3 → 4.2.4}/main/pt-br.js +0 -0
  75. /package/dist/locales/{4.2.3 → 4.2.4}/main/tr.js +0 -0
  76. /package/dist/locales/{4.2.3 → 4.2.4}/main/zh.js +0 -0
@@ -37,6 +37,21 @@ export interface ApiRequestOptions extends RequestInit {
37
37
  */
38
38
  suppressOnError?: boolean;
39
39
  }
40
+ /**
41
+ * Observers of backend failure CODES, for cross-cutting state that no single
42
+ * caller owns.
43
+ *
44
+ * The concrete case is the buy path's `ORIGIN_NOT_REGISTERED` (embed audit
45
+ * 2026-08-22): every cart/promo/payment call can raise it, but the thing that
46
+ * has to react is the calendar shell, which makes none of those calls. Rather
47
+ * than thread the code back through six call sites, whoever cares subscribes
48
+ * here. Observers see EVERY failure code, so they must filter, and a throwing
49
+ * observer is contained — a broken subscriber must not turn a handled API
50
+ * error into an unhandled one.
51
+ */
52
+ type ApiErrorCodeObserver = (_code: string) => void;
53
+ /** Subscribe to backend failure codes. Returns an unsubscribe function. */
54
+ export declare function onApiErrorCode(observer: ApiErrorCodeObserver): () => void;
40
55
  /**
41
56
  * A response, plus the machine-readable failure code when there was one.
42
57
  *
@@ -139,3 +154,4 @@ export declare function taxPreview(req: TaxPreviewRequest, options?: {
139
154
  * credentials; see the apiRequest comment for why that is the point.
140
155
  */
141
156
  export declare function simpleFetch<T>(url: string, options?: RequestInit & Pick<ApiRequestOptions, 'widgetKey'>): Promise<T | null>;
157
+ export {};
@@ -1,39 +1,39 @@
1
1
  import { x as e } from "./Button-C4uFgl7L.js";
2
2
  import { E as t, F as n, O as r, c as i, g as a, h as o, m as s, s as c, w as l, y as u } from "./timezones-C5l0SSHK.js";
3
- import { T as d } from "./constants-CqrJv6nM.js";
4
- import { A as f, D as p, E as m, M as h, O as g, h as ee, j as _ } from "./orders-C8kt6c-E.js";
3
+ import { T as d } from "./constants-OTS1wmXZ.js";
4
+ import { D as f, E as ee, M as p, O as m, P as h, h as te, j as g } from "./orders-NZP81zYT.js";
5
5
  //#region node_modules/@getmicdrop/svelte-components/dist/transforms/ticket.js
6
- var v = {
6
+ var _ = {
7
7
  EVERYWHERE: 0,
8
8
  ONLINE_ONLY: 1,
9
9
  BOX_OFFICE_ONLY: 2
10
- }, y = {
10
+ }, v = {
11
11
  VISIBLE: 0,
12
12
  HIDDEN: 1,
13
13
  PROMO_ONLY: 2
14
14
  };
15
- function b(e) {
15
+ function y(e) {
16
16
  return e.soldOut === !0 ? 0 : e.remainingCapacity == null ? e.quantityRemaining == null ? e.quantity == null ? e.sold != null && e.totalCapacity != null ? Math.max(0, e.totalCapacity - e.sold) : 0 : e.quantity : e.quantityRemaining : e.remainingCapacity;
17
17
  }
18
- function x(e, t) {
18
+ function b(e, t) {
19
19
  return e.totalCapacity ?? e.quantity ?? t;
20
20
  }
21
- function te(e) {
21
+ function ne(e) {
22
22
  let n = t(), r = o(e.effectiveSalesBegin, e.salesBegin, e.saleStartDate) ?? null, i = o(e.effectiveSalesEnd, e.salesEnd, e.saleEndDate) ?? null, c = u(r), l = u(i);
23
23
  if (!a(r) && !c) return "scheduled";
24
24
  if (!a(i) && !l) return "sales_ended";
25
25
  if (c && s(n, c) < 0) return "scheduled";
26
26
  if (l && s(n, l) > 0) return "sales_ended";
27
27
  if (e.soldOut === !0) return "sold_out";
28
- let d = b(e), f = x(e, d);
28
+ let d = y(e), f = b(e, d);
29
29
  return d === 0 ? "sold_out" : f > 0 && d / f < .1 ? "low" : "on_sale";
30
30
  }
31
- function ne(e, t = {}) {
31
+ function re(e, t = {}) {
32
32
  if (!Array.isArray(e)) return [];
33
33
  let n = e;
34
- return t.excludeDoorOnly && (n = n.filter((e) => e.salesChannel !== v.BOX_OFFICE_ONLY)), t.publicOnly && (n = n.filter((e) => e.visibility === y.VISIBLE)), n;
34
+ return t.excludeDoorOnly && (n = n.filter((e) => e.salesChannel !== _.BOX_OFFICE_ONLY)), t.publicOnly && (n = n.filter((e) => e.visibility === v.VISIBLE)), n;
35
35
  }
36
- function re(e) {
36
+ function x(e) {
37
37
  if (!Array.isArray(e) || e.length === 0) return {
38
38
  totalRemaining: 0,
39
39
  totalCapacity: 0,
@@ -41,8 +41,8 @@ function re(e) {
41
41
  };
42
42
  let t = 0, n = 0;
43
43
  for (let r of e) {
44
- let e = b(r);
45
- t += e, n += x(r, e);
44
+ let e = y(r);
45
+ t += e, n += b(r, e);
46
46
  }
47
47
  return {
48
48
  totalRemaining: t,
@@ -61,7 +61,7 @@ function ae(e) {
61
61
  return e.availableTickets || e.available_tickets || e.tickets || [];
62
62
  }
63
63
  function S(e) {
64
- if (!e || !(e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >= y.PROMO_ONLY) || e.salesChannel === v.BOX_OFFICE_ONLY) return !1;
64
+ if (!e || !(e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >= v.PROMO_ONLY) || e.salesChannel === _.BOX_OFFICE_ONLY) return !1;
65
65
  let n = t(), r = o(e.effectiveSalesBegin, e.salesBegin, e.salesStart, e.saleBegin, e.onSaleStart, e.saleStartDate), i = o(e.effectiveSalesEnd, e.salesEnd, e.saleEnd, e.onSaleEnd, e.saleEndDate), c = u(r), l = u(i);
66
66
  if (!a(r) && !c || !a(i) && !l || c && s(c, n) > 0 || l && s(l, n) < 0) return !1;
67
67
  let d = e.remainingCapacity ?? e.quantityRemaining ?? e.quantity;
@@ -94,7 +94,7 @@ async function se(e, t) {
94
94
  valid: !1,
95
95
  error: "Promo code is required"
96
96
  };
97
- let n = encodeURIComponent(t.trim()), r = await p(`/promo-codes/validate/${e}/${n}`);
97
+ let n = encodeURIComponent(t.trim()), r = await f(`/promo-codes/validate/${e}/${n}`);
98
98
  if (!r.success) return r.statusCode === 404 ? {
99
99
  valid: !1,
100
100
  error: "Invalid promo code"
@@ -123,7 +123,7 @@ async function se(e, t) {
123
123
  }
124
124
  async function ce(e) {
125
125
  try {
126
- let t = await p(`/promo-codes/check/${e}`);
126
+ let t = await f(`/promo-codes/check/${e}`);
127
127
  return !t.success || t.data.hasPromoCodes === !0;
128
128
  } catch (e) {
129
129
  return w.error("Error checking promo codes availability:", e), !0;
@@ -133,7 +133,7 @@ async function T(e, t, n) {
133
133
  try {
134
134
  let r = { promoCode: t };
135
135
  n && Object.keys(n).length > 0 && (r.productQuantities = n);
136
- let i = await g(`${f()}/cart/${e}/apply-promo`, r);
136
+ let i = await m(`${g()}/cart/${e}/apply-promo`, r);
137
137
  return i.success ? { success: !0 } : {
138
138
  success: !1,
139
139
  error: i.error || "Failed to apply promo code"
@@ -172,7 +172,7 @@ function k(e, t) {
172
172
  //#endregion
173
173
  //#region src/lib/api/route-manifest.ts
174
174
  var A = "/api/v2/public", j = "/api/orders/v2/public", M = "/api/orders/v2", N = "00000000-0000-0000-0000-000000000000";
175
- `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}`, `${A}`, `${A}`, `${A}`, `${A}`, `${A}`, `${A}${N}`, `${j}`, `${j}`, `${j}`, `${j}${N}`, `${j}`, `${j}${N}`, `${j}`, `${j}${N}`, `${j}`, `${j}${N}`, `${j}`, `${j}${N}`, `${j}`, `${j}${N}`, `${j}`, `${j}${N}`, `${j}`, `${j}${N}`, `${M}`, `${M}`, `${j}`, `${j}`, `${A}`, `${A}${N}`, `${A}`, `${A}`;
175
+ `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}${N}`, `${A}`, `${A}`, `${A}`, `${A}`, `${A}`, `${A}`, `${A}`, `${A}${N}`, `${j}`, `${j}`, `${j}`, `${j}${N}`, `${j}`, `${j}${N}`, `${j}`, `${j}${N}`, `${j}`, `${j}${N}`, `${j}`, `${j}${N}`, `${j}`, `${j}${N}`, `${j}`, `${j}${N}`, `${j}`, `${j}${N}`, `${M}`, `${M}`, `${j}`, `${j}`, `${j}`, `${j}`, `${A}`, `${A}${N}`, `${A}`, `${A}`;
176
176
  //#endregion
177
177
  //#region src/lib/api/events.ts
178
178
  var P = e("VC"), F = /* @__PURE__ */ new Map();
@@ -184,7 +184,7 @@ async function I(e, t = fetch, n) {
184
184
  }
185
185
  let i = (async () => {
186
186
  try {
187
- let r = await t(n ? `${_()}/events/${e}?password=${encodeURIComponent(n)}` : `${_()}/events/${e}`);
187
+ let r = await t(n ? `${p()}/events/${e}?password=${encodeURIComponent(n)}` : `${p()}/events/${e}`);
188
188
  if (!r.ok) return r.status === 404 ? O("event_not_found") : (P.error(`Failed to fetch event details: ${r.status}`), D("event_fetch_failed"));
189
189
  let i = await r.json();
190
190
  return i ? E(i) : O("event_not_found");
@@ -213,7 +213,7 @@ function z(e) {
213
213
  }
214
214
  async function B(e, t) {
215
215
  let n = t?.trim(), r = n ? `?promoCode=${encodeURIComponent(n)}` : "";
216
- return R(`${_()}/tickets/event/${e}${r}`, "tickets_fetch_failed", z);
216
+ return R(`${p()}/tickets/event/${e}${r}`, "tickets_fetch_failed", z);
217
217
  }
218
218
  async function V(e, t) {
219
219
  return k(await B(e, t), []);
@@ -222,13 +222,13 @@ function H(e) {
222
222
  return Array.isArray(e) ? e : Array.isArray(e.events) ? e.events : [];
223
223
  }
224
224
  async function U(e, t, n) {
225
- return R(`${_()}/events/venue/${e}/month/${t}/${n}`, "month_events_fetch_failed", (e) => H(e));
225
+ return R(`${p()}/events/venue/${e}/month/${t}/${n}`, "month_events_fetch_failed", (e) => H(e));
226
226
  }
227
227
  async function W(e, t, n) {
228
- return R(`${_()}/events/organization/${e}/month/${t}/${n}`, "org_month_events_fetch_failed", (e) => H(e));
228
+ return R(`${p()}/events/organization/${e}/month/${t}/${n}`, "org_month_events_fetch_failed", (e) => H(e));
229
229
  }
230
230
  async function G(e, t) {
231
- return R(`${_()}/series/${e}/occurrences?venueId=${t}`, "series_cta_fetch_failed");
231
+ return R(`${p()}/series/${e}/occurrences?venueId=${t}`, "series_cta_fetch_failed");
232
232
  }
233
233
  async function le(e, t) {
234
234
  let n = await G(e, t);
@@ -236,7 +236,7 @@ async function le(e, t) {
236
236
  }
237
237
  async function ue(e, t) {
238
238
  try {
239
- let n = t ? `?slug=${encodeURIComponent(t)}` : "", r = await h(`${_()}/resolve/${encodeURIComponent(String(e))}${n}`);
239
+ let n = t ? `?slug=${encodeURIComponent(t)}` : "", r = await h(`${p()}/resolve/${encodeURIComponent(String(e))}${n}`);
240
240
  if (!r || !r.type) throw new C("entity", String(e));
241
241
  return r;
242
242
  } catch (e) {
@@ -245,7 +245,7 @@ async function ue(e, t) {
245
245
  }
246
246
  async function de(e, t) {
247
247
  try {
248
- let n = t ? `${_()}/collections/${e}?password=${encodeURIComponent(t)}` : `${_()}/collections/${e}`, r = await h(n);
248
+ let n = t ? `${p()}/collections/${e}?password=${encodeURIComponent(t)}` : `${p()}/collections/${e}`, r = await h(n);
249
249
  if (!r) throw new C("collection", String(e));
250
250
  return r;
251
251
  } catch (e) {
@@ -254,7 +254,7 @@ async function de(e, t) {
254
254
  }
255
255
  async function fe(e, t) {
256
256
  try {
257
- let n = await h(`${_()}/events/${e}/check-password`, {
257
+ let n = await h(`${p()}/events/${e}/check-password`, {
258
258
  method: "POST",
259
259
  headers: { "Content-Type": "application/json" },
260
260
  body: JSON.stringify({ password: t })
@@ -270,7 +270,7 @@ var K = e("VC");
270
270
  async function pe(e) {
271
271
  try {
272
272
  if (!e) return K.warn("getVenue called without venueId"), null;
273
- let t = await p(`/venues/${e}`);
273
+ let t = await f(`/venues/${e}`);
274
274
  return t.success ? t.data ?? null : (K.error(`Failed to fetch venue: ${t.statusCode}`), null);
275
275
  } catch (e) {
276
276
  return K.error("Error fetching venue:", e), null;
@@ -309,7 +309,7 @@ function ge(e) {
309
309
  var J = e("VC");
310
310
  async function _e(e, t) {
311
311
  try {
312
- let n = await g(`${f()}/cart/${e}/apply-gift-card`, { giftCardCode: t });
312
+ let n = await m(`${g()}/cart/${e}/apply-gift-card`, { giftCardCode: t });
313
313
  if (!n.success) return n.statusCode === 429 ? {
314
314
  valid: !1,
315
315
  error: "Too many attempts. Please wait a moment and try again."
@@ -328,7 +328,7 @@ async function _e(e, t) {
328
328
  }
329
329
  async function ve(e, t) {
330
330
  try {
331
- let n = await m(`${f()}/cart/${e}/gift-card`, t ? { body: JSON.stringify({ giftCardCode: t }) } : void 0);
331
+ let n = await ee(`${g()}/cart/${e}/gift-card`, t ? { body: JSON.stringify({ giftCardCode: t }) } : void 0);
332
332
  return n.success ? { success: !0 } : (J.error("Remove gift card failed:", n.error), {
333
333
  success: !1,
334
334
  error: n.error || "Failed to remove gift card"
@@ -342,7 +342,7 @@ async function ve(e, t) {
342
342
  }
343
343
  async function ye(e, t) {
344
344
  try {
345
- let n = await g(`${f()}/cart/${e}/complete-gift-card-payment`, {
345
+ let n = await m(`${g()}/cart/${e}/complete-gift-card-payment`, {
346
346
  customerName: d(t.firstName, t.lastName),
347
347
  customerEmail: t.email,
348
348
  firstName: t.firstName,
@@ -350,7 +350,7 @@ async function ye(e, t) {
350
350
  email: t.email,
351
351
  phoneNumber: t.phoneNumber || null,
352
352
  mailingList: t.mailingList || !1,
353
- attribution: ee()
353
+ attribution: te()
354
354
  });
355
355
  return n.success ? {
356
356
  success: !0,
@@ -380,7 +380,7 @@ async function xe(e, t, n = null, r = !1) {
380
380
  try {
381
381
  let i = { email: t };
382
382
  n && r && (i.phone = n, i.smsOptIn = !0);
383
- let a = await g(`/events/${e}/waitlist`, i);
383
+ let a = await m(`/events/${e}/waitlist`, i);
384
384
  return a.success ? {
385
385
  success: !0,
386
386
  updated: a.data?.updated
@@ -397,7 +397,7 @@ async function xe(e, t, n = null, r = !1) {
397
397
  }
398
398
  async function Se(e, t) {
399
399
  try {
400
- let n = await g(`/checkout/validate-token/${e}`, { email: t });
400
+ let n = await m(`/checkout/validate-token/${e}`, { email: t });
401
401
  return n.success ? {
402
402
  valid: !0,
403
403
  eventId: n.data?.eventId ?? 0
@@ -421,7 +421,7 @@ async function Ce(e) {
421
421
  gated: !1
422
422
  };
423
423
  try {
424
- let n = await p(`/events/${e}/waitlist/status`);
424
+ let n = await f(`/events/${e}/waitlist/status`);
425
425
  return n.success ? {
426
426
  waitlistEnabled: !!n.data?.waitlistEnabled,
427
427
  soldOut: !!n.data?.soldOut,
@@ -538,4 +538,4 @@ var X = {
538
538
  green: $.green[500]
539
539
  };
540
540
  //#endregion
541
- export { ie as A, ce as C, re as D, S as E, te as O, T as S, oe as T, de as _, Te as a, W as b, Se as c, ve as d, pe as f, B as g, V as h, Q as i, ne as k, _e as l, L as m, we as n, Ce as o, fe as p, Z as r, xe as s, $ as t, ye as u, le as v, se as w, ue as x, U as y };
541
+ export { ie as A, ce as C, x as D, S as E, ne as O, T as S, oe as T, de as _, Te as a, W as b, Se as c, ve as d, pe as f, B as g, V as h, Q as i, re as k, _e as l, L as m, we as n, Ce as o, fe as p, Z as r, xe as s, $ as t, ye as u, le as v, se as w, ue as x, U as y };
@@ -238,6 +238,9 @@ var U = {
238
238
  loading: "Loading...",
239
239
  loadingMoreEvents: "Loading more events...",
240
240
  loadingMoreShows: "Loading more shows...",
241
+ checkoutUnavailableTitle: "Online ticket sales are unavailable here",
242
+ checkoutUnavailableBody: "You can browse upcoming shows below, but tickets cannot be purchased on this website right now. Please visit the venue’s own ticket page or contact the venue to book.",
243
+ checkoutUnavailableOwnerNote: "Site owner: {origin} is not registered for checkout. Ask Micdrop to add this domain to your organization’s allowed embed domains — changes take up to 5 minutes to apply.",
241
244
  statusOnSale: "On sale",
242
245
  statusSoldOut: "Sold out",
243
246
  statusSellingFast: "Selling fast",
@@ -1,4 +1,4 @@
1
- import { J as e } from "./constants-CqrJv6nM.js";
1
+ import { J as e } from "./constants-OTS1wmXZ.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
@@ -1,7 +1,7 @@
1
1
  import { b as e } from "./timezones-C5l0SSHK.js";
2
- import { a as t, c as n, f as r, p as i, u as a } from "./constants-CqrJv6nM.js";
2
+ import { a as t, c as n, f as r, p as i, u as a } from "./constants-OTS1wmXZ.js";
3
3
  import { n as o, t as s } from "./event-BrptLro8.js";
4
- import { A as c, D as l, O as u, T as d, k as f, r as p } from "./colors-MuuDk6KF.js";
4
+ import { A as c, D as l, O as u, T as d, k as f, r as p } from "./colors-DeJAzg_q.js";
5
5
  //#region src/lib/utils/event-transform.js
6
6
  var m = "data:image/svg+xml," + encodeURIComponent(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 300" fill="none">
7
7
  <rect width="200" height="300" fill="${p[200]}"/>
@@ -1,5 +1,5 @@
1
1
  import { x as e } from "./Button-C4uFgl7L.js";
2
- import { I as t, j as n } from "./orders-C8kt6c-E.js";
2
+ import { M as t, R as n } from "./orders-NZP81zYT.js";
3
3
  //#region src/lib/public-calendar-flow/eventStatusStream.ts
4
4
  var r = e("VC"), i = /* @__PURE__ */ new Set([
5
5
  "canceled",
@@ -53,8 +53,8 @@ function s(e, t, n = {}) {
53
53
  };
54
54
  }
55
55
  function c(e, r) {
56
- let o = t(), c = `${n()}/events/${e}/stream`;
57
- return s(o ? `${n()}/events/${e}/stream?widget_key=${encodeURIComponent(o)}` : c, (e) => {
56
+ let o = n(), c = `${t()}/events/${e}/stream`;
57
+ return s(o ? `${t()}/events/${e}/stream?widget_key=${encodeURIComponent(o)}` : c, (e) => {
58
58
  r.onChange?.(e), i.has(e.action) ? r.onUnavailable?.(e.action) : a.has(e.action) && r.onAvailable?.(e.action);
59
59
  }, {
60
60
  keylessUrl: c,
@@ -62,8 +62,8 @@ function c(e, r) {
62
62
  });
63
63
  }
64
64
  function l(e, r) {
65
- let i = t(), a = `${n()}/venues/${e}/stream`;
66
- return s(i ? `${n()}/venues/${e}/stream?widget_key=${encodeURIComponent(i)}` : a, (e) => {
65
+ let i = n(), a = `${t()}/venues/${e}/stream`;
66
+ return s(i ? `${t()}/venues/${e}/stream?widget_key=${encodeURIComponent(i)}` : a, (e) => {
67
67
  let t = e.eventId ?? (e.entityType === "event" ? e.entityId : void 0);
68
68
  t && r.onEventChange?.(t, e);
69
69
  }, {
@@ -1,5 +1,5 @@
1
1
  import { _ as e } from "./Button-C4uFgl7L.js";
2
- import { J as t } from "./constants-CqrJv6nM.js";
2
+ import { J as t } from "./constants-OTS1wmXZ.js";
3
3
  import { t as n } from "./Image-B3cEndLZ.js";
4
4
  import "svelte/internal/disclose-version";
5
5
  import * as r from "svelte/internal/client";
@@ -1,9 +1,9 @@
1
1
  import { E as e, R as t, m as n, y as r } from "./timezones-C5l0SSHK.js";
2
- import { C as i, K as a, O as o, g as s, h as c, n as l, r as u, v as d } from "./constants-CqrJv6nM.js";
2
+ import { C as i, K as a, O as o, g as s, h as c, n as l, r as u, v as d } from "./constants-OTS1wmXZ.js";
3
3
  import { t as f } from "./Text-CqjLjIF8.js";
4
- import { E as p } from "./colors-MuuDk6KF.js";
4
+ import { E as p } from "./colors-DeJAzg_q.js";
5
5
  import { t as m } from "./createI18n-DBUVdZra.js";
6
- import { t as h } from "./labels-Q4CaHsVM.js";
6
+ import { t as h } from "./labels-CqodQmuY.js";
7
7
  import "svelte/internal/disclose-version";
8
8
  import * as g from "svelte/internal/client";
9
9
  //#region src/lib/api/cta.ts
@@ -1,4 +1,4 @@
1
- import { i as e, n as t, r as n, t as r } from "./colors-MuuDk6KF.js";
1
+ import { i as e, n as t, r as n, t as r } from "./colors-DeJAzg_q.js";
2
2
  //#region src/lib/core/theme-engine.js
3
3
  var i = {
4
4
  primary: t.defaultThemePrimary,
@@ -1,5 +1,5 @@
1
1
  import { B as e } from "./timezones-C5l0SSHK.js";
2
- import { o as t } from "./ModalFooter-r1NQNG9P.js";
2
+ import { o as t } from "./ModalFooter-DHhBLDbO.js";
3
3
  import "svelte/internal/disclose-version";
4
4
  import * as n from "svelte/internal/client";
5
5
  //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Modal/ModalHeader.svelte
@@ -1,5 +1,5 @@
1
1
  import { L as e } from "./timezones-C5l0SSHK.js";
2
- import { D as t, O as n } from "./constants-CqrJv6nM.js";
2
+ import { D as t, O as n } from "./constants-OTS1wmXZ.js";
3
3
  import { n as r } from "./promo-DtLZRskK.js";
4
4
  var i = .029, a = .3;
5
5
  function o(e) {