@getmicdrop/venue-calendar 4.3.57 → 4.3.58

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 (114) hide show
  1. package/dist/AddOnCard-TEUXB3Sd.js +340 -0
  2. package/dist/{ArrowLeftIcon-DjqiKzR8.js → ArrowLeftIcon-C0jreEw8.js} +1 -1
  3. package/dist/{BlockPlaceholder-CgZr2Euq.js → BlockPlaceholder-DdoOD0gZ.js} +1 -1
  4. package/dist/{Calendar-CS_RqyU_.js → Calendar-BWLg7fOl.js} +3 -3
  5. package/dist/{CalendarFoundryView-DKZpskoX.js → CalendarFoundryView-apVO50Ap.js} +73 -75
  6. package/dist/{CalendarIcon-D9Z9YFz6.js → CalendarIcon-BOEpooZq.js} +1 -1
  7. package/dist/CartView-CTL1DQem.js +2293 -0
  8. package/dist/Checkout-B9OHWxzh.js +1933 -0
  9. package/dist/Checkout-D7Cgj12j.js +1076 -0
  10. package/dist/{CheckoutTimer-Ch4McYLj.js → CheckoutTimer-DPNmc1BX.js} +5 -5
  11. package/dist/{ChevronDownIcon-D9I-5bmz.js → ChevronDownIcon-Czxsi1W2.js} +1 -1
  12. package/dist/{CloseIcon-DPdjPdoi.js → CloseIcon-hLh5XXvh.js} +1 -1
  13. package/dist/{CollectionView-BBRXKR7L.js → CollectionView-LFCwHiPj.js} +13 -13
  14. package/dist/{Event-lTxMeEFL.js → Event-C63PLQhq.js} +431 -616
  15. package/dist/EventPage-CyDAwaQF.js +1200 -0
  16. package/dist/{Input-CDw-j5fQ.js → Input-dF1ZPavc.js} +1 -1
  17. package/dist/{MailIcon-C__hyCKr.js → MailIcon-T9SmOpQr.js} +1 -1
  18. package/dist/{PasswordInput-D3Pwparw.js → PasswordInput-B64o-TXR.js} +1 -1
  19. package/dist/{RecommendationsRail-BAdqxvuS.js → RecommendationsRail-Cb_c4ohM.js} +47 -47
  20. package/dist/ScarcityBadge-14VWzOL2.js +145 -0
  21. package/dist/{SeriesPage-iAbX0ZTM.js → SeriesPage-DeALgf5s.js} +3 -3
  22. package/dist/{Spinner-6QTo7mi8.js → Spinner-CW1KZMkc.js} +1 -1
  23. package/dist/{Success-B2T0Pbuw.js → Success-Dcd9bWCn.js} +85 -86
  24. package/dist/{TagIcon-DwWcRiXS.js → TagIcon-C8DU69Jv.js} +1 -1
  25. package/dist/{ViewTicketsEmbed-D8SEO2Zw.js → ViewTicketsEmbed-CWLSFG06.js} +14 -15
  26. package/dist/{WarningCircleIcon-C2fJjhKf.js → WarningCircleIcon-Cj8SHVfz.js} +26 -5
  27. package/dist/{WarningTriIcon-OqM9Rfwq.js → WarningTriIcon-CfCwvwsQ.js} +1 -1
  28. package/dist/__SKIP_NAVIGATION__-AOx8SI54.js +6 -0
  29. package/dist/api/api.cjs +1 -1
  30. package/dist/api/api.mjs +64 -32
  31. package/dist/api/cart-addons.d.ts +61 -0
  32. package/dist/api/index.d.ts +2 -0
  33. package/dist/{api-DMjowaFJ.js → api-Br260RVo.js} +190 -127
  34. package/dist/{constants-DC0xZ-Ja.js → constants-DWS8C09a.js} +3 -0
  35. package/dist/{copyToClipboard-CL9BmJA4.js → copyToClipboard-C_fcBdn4.js} +1 -1
  36. package/dist/{createErrorGate.svelte-DwTTmYou.js → createErrorGate.svelte-jZMaO7KA.js} +1 -1
  37. package/dist/{de-DWVo-yVF.js → de-BEfuIgIj.js} +3 -0
  38. package/dist/{defaultLabels-BaVkGLw4.js → defaultLabels-CqkC-rOG.js} +530 -427
  39. package/dist/{defaults-C6to4-1V.js → defaults-BLhQWNFt.js} +2 -2
  40. package/dist/{es-D2JTgwLx.js → es-Bd4g_HxR.js} +3 -0
  41. package/dist/{event-xgg-eiTq.js → event-DaWMe2IV.js} +1 -1
  42. package/dist/{event-transform-BF1WYBSP.js → event-transform-WnvEyzV-.js} +19 -19
  43. package/dist/{eventStatusStream-8vyVag0u.js → eventStatusStream-DgWemzCE.js} +1 -1
  44. package/dist/{fr-kMyKMhNC.js → fr-Blc79wvV.js} +3 -0
  45. package/dist/{href-DO3HKeJp.js → href-x-W1j8EY.js} +2 -2
  46. package/dist/{i18n-jISDKw5F.js → i18n-DFWp9lQ_.js} +2 -2
  47. package/dist/{i18n-toTFR5-t.js → i18n-DgjCm8g6.js} +93 -93
  48. package/dist/{id-ePSZ9pc6.js → id-DzzsiF4d.js} +3 -0
  49. package/dist/{it-CBG5vN1f.js → it-B4zXRsxu.js} +3 -0
  50. package/dist/{ja-BEOrhLFG.js → ja-eT4_QPKd.js} +3 -0
  51. package/dist/{ko-D8x_4jV4.js → ko-B8Fmrldj.js} +3 -0
  52. package/dist/locales/4.3.58/flow/de.js +1 -0
  53. package/dist/locales/4.3.58/flow/es.js +1 -0
  54. package/dist/locales/4.3.58/flow/fr.js +1 -0
  55. package/dist/locales/4.3.58/flow/id.js +1 -0
  56. package/dist/locales/4.3.58/flow/it.js +1 -0
  57. package/dist/locales/4.3.58/flow/ja.js +1 -0
  58. package/dist/locales/4.3.58/flow/ko.js +1 -0
  59. package/dist/locales/4.3.58/flow/nl.js +1 -0
  60. package/dist/locales/4.3.58/flow/pl.js +1 -0
  61. package/dist/locales/4.3.58/flow/pt-br.js +1 -0
  62. package/dist/locales/4.3.58/flow/tr.js +1 -0
  63. package/dist/locales/4.3.58/flow/zh.js +1 -0
  64. package/dist/{nl-Vc5Wd3re.js → nl-Dnug8LYt.js} +3 -0
  65. package/dist/{orders-FcXWw6b-.js → orders-DlyjunUM.js} +4 -4
  66. package/dist/{pixels-B85kohqd.js → pixels-n1zu1IhF.js} +1 -1
  67. package/dist/{pl-Dnjh6Wpy.js → pl-C3XxoYWF.js} +3 -0
  68. package/dist/{pt-br-BJa34BZo.js → pt-br-Y40SBe4b.js} +3 -0
  69. package/dist/{scarcity-CR1Pa81F.js → scarcity-KJNxIMxj.js} +100 -100
  70. package/dist/{serverTotals-DeOPPRj6.js → serverTotals-Cb7pt5Z-.js} +8 -8
  71. package/dist/{showcase-state-options-BGmvUaQ_.js → showcase-state-options-Ce1_tYvH.js} +1 -1
  72. package/dist/{to-event-card-props-DLOxO2oP.js → to-event-card-props-KoNvp_D9.js} +15 -16
  73. package/dist/{tr-Do7HmDL7.js → tr-2zIJ-vq2.js} +3 -0
  74. package/dist/{utils-DpC4fy4Z.js → utils-VHFV7pBb.js} +2 -2
  75. package/dist/venue-calendar.css +1 -1
  76. package/dist/venue-calendar.es.js +191 -192
  77. package/dist/venue-calendar.iife.js +21 -21
  78. package/dist/venue-calendar.umd.js +53 -53
  79. package/dist/{zh-Dn20V0BT.js → zh-vNYvCXO7.js} +3 -0
  80. package/package.json +220 -220
  81. package/dist/Badge-BsWJrQII.js +0 -108
  82. package/dist/CartView-Dz3Pet0D.js +0 -2294
  83. package/dist/Checkout-Bqe1P7Jr.js +0 -1849
  84. package/dist/Checkout-CFv2AX68.js +0 -1040
  85. package/dist/ClockIcon-C7nkbmvv.js +0 -25
  86. package/dist/EventPage-Cqkelq-1.js +0 -1201
  87. package/dist/ScarcityBadge-BXn6HM_K.js +0 -116
  88. package/dist/liveAnnouncer-D3xVL7qA.js +0 -32
  89. package/dist/locales/4.3.57/flow/de.js +0 -1
  90. package/dist/locales/4.3.57/flow/es.js +0 -1
  91. package/dist/locales/4.3.57/flow/fr.js +0 -1
  92. package/dist/locales/4.3.57/flow/id.js +0 -1
  93. package/dist/locales/4.3.57/flow/it.js +0 -1
  94. package/dist/locales/4.3.57/flow/ja.js +0 -1
  95. package/dist/locales/4.3.57/flow/ko.js +0 -1
  96. package/dist/locales/4.3.57/flow/nl.js +0 -1
  97. package/dist/locales/4.3.57/flow/pl.js +0 -1
  98. package/dist/locales/4.3.57/flow/pt-br.js +0 -1
  99. package/dist/locales/4.3.57/flow/tr.js +0 -1
  100. package/dist/locales/4.3.57/flow/zh.js +0 -1
  101. package/dist/order-totals-5X0jD77w.js +0 -151
  102. package/dist/promo-BNwWtZjP.js +0 -37
  103. /package/dist/locales/{4.3.57 → 4.3.58}/main/de.js +0 -0
  104. /package/dist/locales/{4.3.57 → 4.3.58}/main/es.js +0 -0
  105. /package/dist/locales/{4.3.57 → 4.3.58}/main/fr.js +0 -0
  106. /package/dist/locales/{4.3.57 → 4.3.58}/main/id.js +0 -0
  107. /package/dist/locales/{4.3.57 → 4.3.58}/main/it.js +0 -0
  108. /package/dist/locales/{4.3.57 → 4.3.58}/main/ja.js +0 -0
  109. /package/dist/locales/{4.3.57 → 4.3.58}/main/ko.js +0 -0
  110. /package/dist/locales/{4.3.57 → 4.3.58}/main/nl.js +0 -0
  111. /package/dist/locales/{4.3.57 → 4.3.58}/main/pl.js +0 -0
  112. /package/dist/locales/{4.3.57 → 4.3.58}/main/pt-br.js +0 -0
  113. /package/dist/locales/{4.3.57 → 4.3.58}/main/tr.js +0 -0
  114. /package/dist/locales/{4.3.57 → 4.3.58}/main/zh.js +0 -0
@@ -1,40 +1,71 @@
1
1
  import { g as e } from "./sizing-CFDo_qh_.js";
2
- import { C as t } from "./scarcity-CR1Pa81F.js";
3
- import { I as n, _ as r, b as i, c as a, g as o, h as s, k as c, s as l } from "./defaultLabels-BaVkGLw4.js";
2
+ import { C as t } from "./scarcity-KJNxIMxj.js";
3
+ import { A as n, L as r, _ as i, c as a, g as o, l as s, v as c, x as l } from "./defaultLabels-CqkC-rOG.js";
4
4
  import { n as u, r as d } from "./Button-AZ8OLQqj.js";
5
- import { F as f, N as p, P as m, R as h, V as g, W as _, l as v, x as ee, z as y } from "./orders-FcXWw6b-.js";
5
+ import { F as f, N as p, P as m, R as h, V as g, W as _, l as ee, x as te, z as v } from "./orders-DlyjunUM.js";
6
+ //#region node_modules/@getmicdrop/svelte-components/dist/utils/liveAnnouncer.js
7
+ var y = null;
8
+ function ne() {
9
+ return y && document.body.contains(y) ? y : (y = document.createElement("div"), y.id = "a11y-live-region", y.setAttribute("role", "status"), y.setAttribute("aria-live", "polite"), y.setAttribute("aria-atomic", "true"), y.className = "sr-only", Object.assign(y.style, {
10
+ position: "absolute",
11
+ width: "1px",
12
+ height: "1px",
13
+ padding: "0",
14
+ margin: "-1px",
15
+ overflow: "hidden",
16
+ clip: "rect(0, 0, 0, 0)",
17
+ whiteSpace: "nowrap",
18
+ border: "0"
19
+ }), document.body.appendChild(y), y);
20
+ }
21
+ function b(e, t = {}) {
22
+ if (typeof document > "u") return;
23
+ let { politeness: n = "polite", atomic: r = !0, delay: i = 100 } = t, a = ne();
24
+ a.setAttribute("aria-live", n), a.setAttribute("aria-atomic", String(r)), a.textContent = "", setTimeout(() => {
25
+ typeof document > "u" || !a.isConnected || (a.textContent = e);
26
+ }, i);
27
+ }
28
+ function x(e = 500) {
29
+ let t = null;
30
+ return (n, r) => {
31
+ t && clearTimeout(t), t = setTimeout(() => {
32
+ b(n, r), t = null;
33
+ }, e);
34
+ };
35
+ }
36
+ //#endregion
6
37
  //#region node_modules/@getmicdrop/svelte-components/dist/transforms/ticket.js
7
- var b = {
38
+ var S = {
8
39
  EVERYWHERE: 0,
9
40
  ONLINE_ONLY: 1,
10
41
  BOX_OFFICE_ONLY: 2
11
- }, x = {
42
+ }, C = {
12
43
  VISIBLE: 0,
13
44
  HIDDEN: 1,
14
45
  PROMO_ONLY: 2
15
46
  };
16
- function S(e) {
47
+ function w(e) {
17
48
  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;
18
49
  }
19
- function C(e, t) {
50
+ function T(e, t) {
20
51
  return e.totalCapacity ?? e.quantity ?? t;
21
52
  }
22
- function te(e) {
23
- let t = d(), n = o(e.effectiveSalesBegin, e.salesBegin, e.saleStartDate) ?? null, a = o(e.effectiveSalesEnd, e.salesEnd, e.saleEndDate) ?? null, c = i(n), l = i(a);
24
- if (!r(n) && !c) return "scheduled";
25
- if (!r(a) && !l) return "sales_ended";
26
- if (c && s(t, c) < 0) return "scheduled";
27
- if (l && s(t, l) > 0) return "sales_ended";
53
+ function re(e) {
54
+ let t = d(), n = i(e.effectiveSalesBegin, e.salesBegin, e.saleStartDate) ?? null, r = i(e.effectiveSalesEnd, e.salesEnd, e.saleEndDate) ?? null, a = l(n), s = l(r);
55
+ if (!c(n) && !a) return "scheduled";
56
+ if (!c(r) && !s) return "sales_ended";
57
+ if (a && o(t, a) < 0) return "scheduled";
58
+ if (s && o(t, s) > 0) return "sales_ended";
28
59
  if (e.soldOut === !0) return "sold_out";
29
- let u = S(e), f = C(e, u);
60
+ let u = w(e), f = T(e, u);
30
61
  return u === 0 ? "sold_out" : f > 0 && u / f < .1 ? "low" : "on_sale";
31
62
  }
32
- function ne(e, t = {}) {
63
+ function ie(e, t = {}) {
33
64
  if (!Array.isArray(e)) return [];
34
65
  let n = e;
35
- return t.excludeDoorOnly && (n = n.filter((e) => e.salesChannel !== b.BOX_OFFICE_ONLY)), t.publicOnly && (n = n.filter((e) => e.visibility === x.VISIBLE)), n;
66
+ return t.excludeDoorOnly && (n = n.filter((e) => e.salesChannel !== S.BOX_OFFICE_ONLY)), t.publicOnly && (n = n.filter((e) => e.visibility === C.VISIBLE)), n;
36
67
  }
37
- function re(e) {
68
+ function ae(e) {
38
69
  if (!Array.isArray(e) || e.length === 0) return {
39
70
  totalRemaining: 0,
40
71
  totalCapacity: 0,
@@ -42,8 +73,8 @@ function re(e) {
42
73
  };
43
74
  let t = 0, n = 0;
44
75
  for (let r of e) {
45
- let e = S(r);
46
- t += e, n += C(r, e);
76
+ let e = w(r);
77
+ t += e, n += T(r, e);
47
78
  }
48
79
  return {
49
80
  totalRemaining: t,
@@ -51,29 +82,29 @@ function re(e) {
51
82
  isSoldOut: t === 0
52
83
  };
53
84
  }
54
- function ie(e) {
85
+ function E(e) {
55
86
  if (!Array.isArray(e) || e.length === 0) return 0;
56
87
  let t = e.map((e) => Number(e.price ?? e.ticketPrice)).filter((e) => Number.isFinite(e) && e > 0);
57
88
  return t.length > 0 ? Math.min(...t) : 0;
58
89
  }
59
90
  //#endregion
60
91
  //#region node_modules/@getmicdrop/svelte-components/dist/transforms/event.js
61
- function ae(e) {
92
+ function D(e) {
62
93
  return e.availableTickets || e.available_tickets || e.tickets || [];
63
94
  }
64
- function w(e) {
65
- if (!e || !(e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >= x.HIDDEN) || e.salesChannel === b.BOX_OFFICE_ONLY) return !1;
66
- let t = d(), n = o(e.effectiveSalesBegin, e.salesBegin, e.salesStart, e.saleBegin, e.onSaleStart, e.saleStartDate), a = o(e.effectiveSalesEnd, e.salesEnd, e.saleEnd, e.onSaleEnd, e.saleEndDate), c = i(n), l = i(a);
67
- if (!r(n) && !c || !r(a) && !l || c && s(c, t) > 0 || l && s(l, t) < 0) return !1;
95
+ function O(e) {
96
+ if (!e || !(e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >= C.HIDDEN) || e.salesChannel === S.BOX_OFFICE_ONLY) return !1;
97
+ let t = d(), n = i(e.effectiveSalesBegin, e.salesBegin, e.salesStart, e.saleBegin, e.onSaleStart, e.saleStartDate), r = i(e.effectiveSalesEnd, e.salesEnd, e.saleEnd, e.onSaleEnd, e.saleEndDate), a = l(n), s = l(r);
98
+ if (!c(n) && !a || !c(r) && !s || a && o(a, t) > 0 || s && o(s, t) < 0) return !1;
68
99
  let u = e.remainingCapacity ?? e.quantityRemaining ?? e.quantity;
69
100
  return !(e.soldOut || u != null && u <= 0);
70
101
  }
71
- function oe(e) {
72
- return e ? e.hasHiddenTickets === !0 || ae(e).some(w) : !1;
102
+ function k(e) {
103
+ return e ? e.hasHiddenTickets === !0 || D(e).some(O) : !1;
73
104
  }
74
105
  //#endregion
75
106
  //#region node_modules/@getmicdrop/svelte-components/dist/errors/classes/NotFoundError.js
76
- var T = class extends u {
107
+ var A = class extends u {
77
108
  constructor(e, t) {
78
109
  let n = t ? `${e} with ID ${t} not found` : `${e} not found`;
79
110
  super(n, "NOT_FOUND", {
@@ -86,15 +117,15 @@ var T = class extends u {
86
117
  }), this.name = "NotFoundError", this.resourceType = e, this.resourceId = t;
87
118
  }
88
119
  getUserMessage(e) {
89
- return a(e)?.fromCode?.(this.code) || l(this.resourceType.toLowerCase());
120
+ return s(e)?.fromCode?.(this.code) || a(this.resourceType.toLowerCase());
90
121
  }
91
- }, E = e("VC");
92
- function D(e, t) {
122
+ }, j = e("VC");
123
+ function oe(e, t) {
93
124
  if (e === 404) return "Promo code isn't valid.";
94
125
  let n = (t ?? "").toLowerCase();
95
126
  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";
96
127
  }
97
- async function O(e, t) {
128
+ async function se(e, t) {
98
129
  try {
99
130
  if (!t || !t.trim()) return {
100
131
  valid: !1,
@@ -103,7 +134,7 @@ async function O(e, t) {
103
134
  let n = encodeURIComponent(t.trim()), r = await m(`/promo-codes/validate/${e}/${n}`);
104
135
  if (!r.success) return {
105
136
  valid: !1,
106
- error: D(r.statusCode, r.error)
137
+ error: oe(r.statusCode, r.error)
107
138
  };
108
139
  let i = r.data;
109
140
  return {
@@ -118,21 +149,21 @@ async function O(e, t) {
118
149
  applyToTicketIds: i.applyToTicketIds
119
150
  };
120
151
  } catch (e) {
121
- return E.error("Error validating promo code:", e), {
152
+ return j.error("Error validating promo code:", e), {
122
153
  valid: !1,
123
154
  error: "Network error validating code"
124
155
  };
125
156
  }
126
157
  }
127
- async function se(e) {
158
+ async function ce(e) {
128
159
  try {
129
160
  let t = await m(`/promo-codes/check/${e}`);
130
161
  return !t.success || t.data.hasPromoCodes === !0;
131
162
  } catch (e) {
132
- return E.error("Error checking promo codes availability:", e), !0;
163
+ return j.error("Error checking promo codes availability:", e), !0;
133
164
  }
134
165
  }
135
- async function ce(e, t, n) {
166
+ async function le(e, t, n) {
136
167
  try {
137
168
  let r = { promoCode: t };
138
169
  n && Object.keys(n).length > 0 && (r.productQuantities = n);
@@ -142,7 +173,7 @@ async function ce(e, t, n) {
142
173
  error: i.error || "Failed to apply promo code"
143
174
  };
144
175
  } catch (e) {
145
- return E.error("Error applying promo code:", e), {
176
+ return j.error("Error applying promo code:", e), {
146
177
  success: !1,
147
178
  error: "Network error applying code"
148
179
  };
@@ -150,78 +181,78 @@ async function ce(e, t, n) {
150
181
  }
151
182
  //#endregion
152
183
  //#region src/lib/api/result.ts
153
- function k(e) {
184
+ function M(e) {
154
185
  return {
155
186
  ok: !0,
156
187
  data: e
157
188
  };
158
189
  }
159
- function A(e) {
190
+ function N(e) {
160
191
  return {
161
192
  ok: !1,
162
193
  error: e
163
194
  };
164
195
  }
165
- function j(e) {
196
+ function P(e) {
166
197
  return {
167
198
  ok: !1,
168
199
  error: e,
169
200
  notFound: !0
170
201
  };
171
202
  }
172
- function le(e, t) {
203
+ function ue(e, t) {
173
204
  return e.ok ? e.data : t;
174
205
  }
175
206
  //#endregion
176
207
  //#region src/lib/api/route-manifest.ts
177
- var M = "/api/v2/public", N = "/api/orders/v2/public", P = "/api/orders/v2", F = "00000000-0000-0000-0000-000000000000";
178
- `${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}`, `${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}`;
208
+ var F = "/api/v2/public", I = "/api/orders/v2/public", L = "/api/orders/v2", R = "00000000-0000-0000-0000-000000000000";
209
+ `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}`, `${F}`, `${F}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}`, `${F}`, `${F}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}`, `${F}`, `${F}`, `${F}`, `${F}${R}`, `${I}`, `${I}`, `${I}`, `${I}${R}`, `${I}`, `${I}${R}`, `${I}`, `${I}${R}`, `${I}`, `${I}${R}`, `${I}`, `${I}${R}`, `${I}`, `${I}${R}`, `${I}`, `${I}${R}`, `${I}`, `${I}${R}`, `${L}`, `${L}`, `${I}`, `${I}`, `${I}`, `${I}`, `${I}`, `${I}${R}`, `${F}`, `${F}${R}`, `${F}`, `${F}`;
179
210
  //#endregion
180
211
  //#region src/lib/api/events.ts
181
- var I = e("VC"), L = /* @__PURE__ */ new Map();
182
- async function R(e, t = fetch, n) {
212
+ var z = e("VC"), B = /* @__PURE__ */ new Map();
213
+ async function V(e, t = fetch, n) {
183
214
  let r = n ? `${e}:pw` : String(e);
184
215
  if (t === fetch) {
185
- let e = L.get(r);
216
+ let e = B.get(r);
186
217
  if (e) return e;
187
218
  }
188
219
  let i = (async () => {
189
220
  try {
190
- let r = await t(n ? `${y()}/events/${e}?password=${encodeURIComponent(n)}` : `${y()}/events/${e}`);
191
- if (!r.ok) return r.status === 404 ? j("event_not_found") : (I.error(`Failed to fetch event details: ${r.status}`), A("event_fetch_failed"));
221
+ let r = await t(n ? `${v()}/events/${e}?password=${encodeURIComponent(n)}` : `${v()}/events/${e}`);
222
+ if (!r.ok) return r.status === 404 ? P("event_not_found") : (z.error(`Failed to fetch event details: ${r.status}`), N("event_fetch_failed"));
192
223
  let i = await r.json();
193
- return i ? k(i) : j("event_not_found");
224
+ return i ? M(i) : P("event_not_found");
194
225
  } catch (e) {
195
- return I.error("Error fetching event details:", e), A("event_fetch_failed");
226
+ return z.error("Error fetching event details:", e), N("event_fetch_failed");
196
227
  }
197
228
  })();
198
- return t === fetch && (L.set(r, i), i.finally(() => {
199
- L.get(r) === i && L.delete(r);
229
+ return t === fetch && (B.set(r, i), i.finally(() => {
230
+ B.get(r) === i && B.delete(r);
200
231
  })), i;
201
232
  }
202
- async function z(e, t = fetch, n) {
203
- let r = await R(e, t, n);
233
+ async function H(e, t = fetch, n) {
234
+ let r = await V(e, t, n);
204
235
  return r.ok ? r.data : null;
205
236
  }
206
- async function B(e, t, n = (e) => e) {
237
+ async function U(e, t, n = (e) => e) {
207
238
  try {
208
239
  let r = await g(e);
209
- return r ? k(n(r)) : (I.error(`Failed to load (${t}): network or server error`), A(t));
240
+ return r ? M(n(r)) : (z.error(`Failed to load (${t}): network or server error`), N(t));
210
241
  } catch (e) {
211
- return I.error(`Error loading (${t}):`, e), A(t);
242
+ return z.error(`Error loading (${t}):`, e), N(t);
212
243
  }
213
244
  }
214
- function V(e) {
245
+ function de(e) {
215
246
  return Array.isArray(e) ? e : [];
216
247
  }
217
- async function H(e, t) {
248
+ async function W(e, t) {
218
249
  let n = t?.trim(), r = n ? `?promoCode=${encodeURIComponent(n)}` : "";
219
- return B(`${y()}/tickets/event/${e}${r}`, "tickets_fetch_failed", V);
250
+ return U(`${v()}/tickets/event/${e}${r}`, "tickets_fetch_failed", de);
220
251
  }
221
- async function U(e, t) {
222
- return le(await H(e, t), []);
252
+ async function fe(e, t) {
253
+ return ue(await W(e, t), []);
223
254
  }
224
- function W(e) {
255
+ function pe(e) {
225
256
  return Array.isArray(e) ? e : Array.isArray(e.events) ? e.events : [];
226
257
  }
227
258
  var G = /* @__PURE__ */ new Map();
@@ -230,90 +261,90 @@ function K(e, t, n) {
230
261
  let t = G.get(e);
231
262
  if (t) return t;
232
263
  }
233
- let r = B(e, t, (e) => W(e));
264
+ let r = U(e, t, (e) => pe(e));
234
265
  return G.set(e, r), r.finally(() => {
235
266
  G.get(e) === r && G.delete(e);
236
267
  }), r;
237
268
  }
238
- async function ue(e, t, n, r) {
239
- return K(`${y()}/events/venue/${e}/month/${t}/${n}`, "month_events_fetch_failed", r);
269
+ async function me(e, t, n, r) {
270
+ return K(`${v()}/events/venue/${e}/month/${t}/${n}`, "month_events_fetch_failed", r);
240
271
  }
241
- async function de(e, t, n, r) {
242
- return K(`${y()}/events/organization/${e}/month/${t}/${n}`, "org_month_events_fetch_failed", r);
272
+ async function he(e, t, n, r) {
273
+ return K(`${v()}/events/organization/${e}/month/${t}/${n}`, "org_month_events_fetch_failed", r);
243
274
  }
244
- async function fe(e, t) {
245
- return B(`${y()}/series/${e}/occurrences?venueId=${t}`, "series_cta_fetch_failed");
275
+ async function ge(e, t) {
276
+ return U(`${v()}/series/${e}/occurrences?venueId=${t}`, "series_cta_fetch_failed");
246
277
  }
247
- async function pe(e, t) {
248
- let n = await fe(e, t);
278
+ async function _e(e, t) {
279
+ let n = await ge(e, t);
249
280
  return n.ok ? n.data : null;
250
281
  }
251
- async function me(e, t) {
282
+ async function ve(e, t) {
252
283
  try {
253
- let n = t ? `?slug=${encodeURIComponent(t)}` : "", r = await g(`${y()}/resolve/${encodeURIComponent(String(e))}${n}`);
254
- if (!r || !r.type) throw new T("entity", String(e));
284
+ let n = t ? `?slug=${encodeURIComponent(t)}` : "", r = await g(`${v()}/resolve/${encodeURIComponent(String(e))}${n}`);
285
+ if (!r || !r.type) throw new A("entity", String(e));
255
286
  return r;
256
287
  } catch (e) {
257
- return I.error("Error resolving public entity:", e), null;
288
+ return z.error("Error resolving public entity:", e), null;
258
289
  }
259
290
  }
260
- async function he(e, t) {
291
+ async function ye(e, t) {
261
292
  try {
262
- let n = t ? `${y()}/collections/${e}?password=${encodeURIComponent(t)}` : `${y()}/collections/${e}`, r = await g(n);
263
- if (!r) throw new T("collection", String(e));
293
+ let n = t ? `${v()}/collections/${e}?password=${encodeURIComponent(t)}` : `${v()}/collections/${e}`, r = await g(n);
294
+ if (!r) throw new A("collection", String(e));
264
295
  return r;
265
296
  } catch (e) {
266
- return I.error("Error fetching collection:", e), null;
297
+ return z.error("Error fetching collection:", e), null;
267
298
  }
268
299
  }
269
- async function ge(e, t) {
300
+ async function be(e, t) {
270
301
  try {
271
- let n = await g(`${y()}/events/${e}/check-password`, {
302
+ let n = await g(`${v()}/events/${e}/check-password`, {
272
303
  method: "POST",
273
304
  headers: { "Content-Type": "application/json" },
274
305
  body: JSON.stringify({ password: t })
275
306
  });
276
307
  return typeof n == "boolean" ? { valid: n } : { valid: n?.valid === !0 };
277
308
  } catch (e) {
278
- return I.error("Error checking event password:", e), { valid: !1 };
309
+ return z.error("Error checking event password:", e), { valid: !1 };
279
310
  }
280
311
  }
281
312
  //#endregion
282
313
  //#region src/lib/navigation.ts
283
- function _e(e, t) {
314
+ function xe(e, t) {
284
315
  let n = _();
285
316
  return t ? `${n}/e/${e}-${t}` : `${n}/e/${e}`;
286
317
  }
287
- function ve(e, t, n) {
318
+ function Se(e, t, n) {
288
319
  let r = n?.toString(), i = t ? `/e/${e}-${t}` : `/e/${e}`;
289
320
  return `${_()}${i}${r ? `?${r}` : ""}`;
290
321
  }
291
- var ye = "get-micdrop.com";
322
+ var Ce = "get-micdrop.com";
292
323
  function q(e) {
293
324
  let t = typeof e == "string" ? e.trim() : "";
294
- return t ? `https://${encodeURIComponent(t)}.${ye}` : "";
325
+ return t ? `https://${encodeURIComponent(t)}.${Ce}` : "";
295
326
  }
296
- function be(e) {
327
+ function we(e) {
297
328
  let t = q(e);
298
329
  return t ? `${t}/gift-cards/buy` : "";
299
330
  }
300
- function xe(e, t, n) {
331
+ function Te(e, t, n) {
301
332
  let r = n?.toString();
302
333
  return `/${e}/${t}${r ? `?${r}` : ""}`;
303
334
  }
304
- function Se(e) {
335
+ function Ee(e) {
305
336
  return `/${e}`;
306
337
  }
307
- function Ce(e) {
338
+ function De(e) {
308
339
  return `${_()}/${e}`;
309
340
  }
310
341
  function J(e, t) {
311
342
  return `/${e}/${t}/checkout`;
312
343
  }
313
- function we(e) {
344
+ function Oe(e) {
314
345
  return `/?${e.toString()}`;
315
346
  }
316
- function Te(e, t, n = {}) {
347
+ function ke(e, t, n = {}) {
317
348
  let r = `${J(e, t)}/success`, i = new URLSearchParams();
318
349
  n.orderId && i.set("orderId", n.orderId), n.ticketCount && n.ticketCount > 0 && i.set("tickets", String(n.ticketCount));
319
350
  let a = i.toString();
@@ -322,7 +353,7 @@ function Te(e, t, n = {}) {
322
353
  //#endregion
323
354
  //#region src/lib/api/venues.ts
324
355
  var Y = e("VC");
325
- async function Ee(e) {
356
+ async function Ae(e) {
326
357
  try {
327
358
  if (!e) return Y.warn("getVenue called without venueId"), null;
328
359
  let t = await m(`/venues/${e}`);
@@ -331,7 +362,7 @@ async function Ee(e) {
331
362
  return Y.error("Error fetching venue:", e), null;
332
363
  }
333
364
  }
334
- async function De(e) {
365
+ async function je(e) {
335
366
  let t = q(e);
336
367
  if (!t) return !1;
337
368
  try {
@@ -346,55 +377,55 @@ async function De(e) {
346
377
  function X(e, t) {
347
378
  return e == null || t(e);
348
379
  }
349
- function Oe(e) {
380
+ function Me(e) {
350
381
  if (typeof e != "object" || !e) return !1;
351
382
  let t = e;
352
383
  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");
353
384
  }
354
- var ke = "We couldn't apply that gift card. Please try again.";
355
- function Z(e) {
356
- if (!Oe(e)) return {
385
+ var Ne = "We couldn't apply that gift card. Please try again.";
386
+ function Pe(e) {
387
+ if (!Me(e)) return {
357
388
  valid: !1,
358
- error: ke
389
+ error: Ne
359
390
  };
360
- let t = e, r = c(n(t.appliedAmount)), i = t.remainingTotal, a = t.fullyCoveredByCard ?? i <= 0, o = !a;
391
+ let t = e, i = n(r(t.appliedAmount)), a = t.remainingTotal, o = t.fullyCoveredByCard ?? a <= 0, s = !o;
361
392
  return {
362
393
  valid: !0,
363
394
  giftCardCode: t.giftCardCode ?? void 0,
364
- giftCardAmount: r,
395
+ giftCardAmount: i,
365
396
  giftCardBalance: t.giftCardBalance ?? void 0,
366
- paymentType: a ? "gift_card_only" : "split",
367
- stripeAmount: i,
368
- orderTotal: r + i,
369
- requiresStripe: o
397
+ paymentType: o ? "gift_card_only" : "split",
398
+ stripeAmount: a,
399
+ orderTotal: i + a,
400
+ requiresStripe: s
370
401
  };
371
402
  }
372
403
  //#endregion
373
404
  //#region src/lib/api/gift-cards.ts
374
- var Q = e("VC");
375
- async function Ae(e, t) {
405
+ var Z = e("VC");
406
+ async function Fe(e, t) {
376
407
  try {
377
408
  let n = await f(`${h()}/cart/${e}/apply-gift-card`, { giftCardCode: t });
378
409
  if (!n.success) return n.statusCode === 429 ? {
379
410
  valid: !1,
380
411
  error: "Too many attempts. Please wait a moment and try again."
381
- } : (Q.error("Apply gift card failed:", n.error), {
412
+ } : (Z.error("Apply gift card failed:", n.error), {
382
413
  valid: !1,
383
414
  error: n.error || "Invalid gift card code"
384
415
  });
385
- let r = Z(n.data);
386
- return r.valid || Q.error("Apply gift card returned an unusable payload:", n.data), r;
416
+ let r = Pe(n.data);
417
+ return r.valid || Z.error("Apply gift card returned an unusable payload:", n.data), r;
387
418
  } catch (e) {
388
- return Q.error("applyGiftCard error:", e), {
419
+ return Z.error("applyGiftCard error:", e), {
389
420
  valid: !1,
390
421
  error: "Network error. Please check your connection and try again."
391
422
  };
392
423
  }
393
424
  }
394
- async function je(e, t) {
425
+ async function Q(e, t) {
395
426
  try {
396
427
  let n = t?.giftCardId ? { giftCardId: t.giftCardId } : t?.code ? { giftCardCode: t.code } : null, r = await p(`${h()}/cart/${e}/gift-card`, n ? { body: JSON.stringify(n) } : void 0);
397
- if (!r.success) return Q.error("Remove gift card failed:", r.error), {
428
+ if (!r.success) return Z.error("Remove gift card failed:", r.error), {
398
429
  success: !1,
399
430
  error: r.error || "Failed to remove gift card"
400
431
  };
@@ -404,14 +435,14 @@ async function je(e, t) {
404
435
  ...typeof a == "number" ? { remainingTotal: a } : {}
405
436
  };
406
437
  } catch (e) {
407
- return Q.error("removeGiftCard error:", e), {
438
+ return Z.error("removeGiftCard error:", e), {
408
439
  success: !1,
409
440
  error: "Network error. Please check your connection and try again."
410
441
  };
411
442
  }
412
443
  }
413
- async function Me(e, n, r) {
414
- let i = v(r);
444
+ async function Ie(e, n, r) {
445
+ let i = ee(r);
415
446
  try {
416
447
  let r = await f(`${h()}/cart/${e}/complete-gift-card-payment`, {
417
448
  customerName: t(n.firstName, n.lastName),
@@ -422,28 +453,60 @@ async function Me(e, n, r) {
422
453
  phoneNumber: n.phoneNumber || null,
423
454
  questionAnswer: n.questionAnswer || "",
424
455
  mailingList: n.mailingList || !1,
425
- attribution: ee(),
456
+ attribution: te(),
426
457
  ...i ? { locale: i } : {}
427
458
  });
428
459
  return r.success ? {
429
460
  success: !0,
430
461
  orderId: r.data?.orderId,
431
462
  confirmationNumber: r.data?.confirmationNumber
432
- } : (Q.error("Complete gift card payment failed:", r.error), {
463
+ } : (Z.error("Complete gift card payment failed:", r.error), {
433
464
  success: !1,
434
465
  error: r.error || "Failed to complete payment"
435
466
  });
436
467
  } catch (e) {
437
- return Q.error("completeGiftCardPayment error:", e), {
468
+ return Z.error("completeGiftCardPayment error:", e), {
438
469
  success: !1,
439
470
  error: "Network error. Please check your connection and try again."
440
471
  };
441
472
  }
442
473
  }
443
474
  //#endregion
475
+ //#region src/lib/api/cart-addons.ts
476
+ var Le = e("VC");
477
+ async function Re(e, t) {
478
+ let n = (e) => ({
479
+ success: !1,
480
+ error: e,
481
+ lines: [],
482
+ addOnQuantity: 0,
483
+ repriced: !1
484
+ });
485
+ if (!e) return n(null);
486
+ let r = {};
487
+ for (let [e, n] of Object.entries(t)) {
488
+ let t = typeof e == "number" ? e : parseInt(e, 10);
489
+ !Number.isNaN(t) && n > 0 && (r[t] = n);
490
+ }
491
+ try {
492
+ let t = await f(`${h()}/cart/${e}/add-ons`, { addOnQuantities: r });
493
+ if (!t.success) return n(t.error || null);
494
+ let i = t.data || {};
495
+ return {
496
+ success: !0,
497
+ error: null,
498
+ lines: i.addOns || [],
499
+ addOnQuantity: i.addOnQuantity || 0,
500
+ repriced: i.repriced === !0
501
+ };
502
+ } catch (e) {
503
+ return Le.error("updateCartAddOns error:", e), n(null);
504
+ }
505
+ }
506
+ //#endregion
444
507
  //#region src/lib/api/waitlist.ts
445
508
  var $ = e("VC");
446
- async function Ne(e, t, n = null, r = !1) {
509
+ async function ze(e, t, n = null, r = !1) {
447
510
  try {
448
511
  let i = { email: t };
449
512
  n && r && (i.phone = n, i.smsOptIn = !0);
@@ -463,7 +526,7 @@ async function Ne(e, t, n = null, r = !1) {
463
526
  };
464
527
  }
465
528
  }
466
- async function Pe(e, t) {
529
+ async function Be(e, t) {
467
530
  try {
468
531
  let n = await f(`/checkout/validate-token/${e}`, { email: t });
469
532
  return n.success ? {
@@ -483,7 +546,7 @@ async function Pe(e, t) {
483
546
  };
484
547
  }
485
548
  }
486
- async function Fe(e, t) {
549
+ async function Ve(e, t) {
487
550
  try {
488
551
  let n = await f(`/waitlist/requeue/${e}`, { email: t });
489
552
  return n.success ? { success: !0 } : {
@@ -497,7 +560,7 @@ async function Fe(e, t) {
497
560
  };
498
561
  }
499
562
  }
500
- async function Ie(e) {
563
+ async function He(e) {
501
564
  let t = {
502
565
  waitlistEnabled: !1,
503
566
  soldOut: !1,
@@ -514,9 +577,9 @@ async function Ie(e) {
514
577
  return $.error("getWaitlistStatus error:", e), t;
515
578
  }
516
579
  }
517
- function Le(e) {
580
+ function Ue(e) {
518
581
  let t = String(e % 60).padStart(2, "0");
519
582
  return e >= 3600 ? `${Math.floor(e / 3600)}:${String(Math.floor(e % 3600 / 60)).padStart(2, "0")}:${t}` : `${Math.floor(e / 60)}:${t}`;
520
583
  }
521
584
  //#endregion
522
- export { se as A, H as C, de as D, ue as E, re as F, te as I, ne as L, oe as M, w as N, me as O, x as P, ie as R, U as S, pe as T, xe as _, Pe as a, ge as b, je as c, Te as d, J as f, _e as g, ve as h, Fe as i, O as j, ce as k, Ee as l, Se as m, Ie as n, Ae as o, Ce as p, Ne as r, Me as s, Le as t, De as u, be as v, he as w, z as x, we as y };
585
+ export { le as A, b as B, fe as C, me as D, _e as E, C as F, ae as I, re as L, se as M, k as N, he as O, O as P, ie as R, H as S, ye as T, x as V, xe as _, Be as a, Oe as b, Ie as c, je as d, ke as f, Se as g, Ee as h, Ve as i, ce as j, ve as k, Q as l, De as m, He as n, Re as o, J as p, ze as r, Fe as s, Ue as t, Ae as u, Te as v, W as w, be as x, we as y, E as z };
@@ -57,6 +57,9 @@ var e = {
57
57
  addOnCollectInPerson: "collect in person",
58
58
  addOnNeedsTicket: "Add a ticket first",
59
59
  addOnPerTicketLimit: "max {count} per ticket",
60
+ addOnsCheckoutTitle: "Add to your order",
61
+ addOnsCheckoutFailed: "That could not be added — please try again",
62
+ addOnsCheckoutUpdating: "Updating your order…",
60
63
  subtotal: "Subtotal",
61
64
  serviceFees: "Service fees",
62
65
  taxes: "Taxes",
@@ -1,4 +1,4 @@
1
- import { K as e } from "./scarcity-CR1Pa81F.js";
1
+ import { K as e } from "./scarcity-KJNxIMxj.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