@getmicdrop/venue-calendar 4.3.122 → 4.3.124

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 (137) hide show
  1. package/dist/{AddOnCard-BkEFPzAX.js → AddOnCard-BCakRkN0.js} +18 -18
  2. package/dist/{ArrowLeftIcon-t-CY0sbi.js → ArrowLeftIcon-B6vERrBh.js} +1 -1
  3. package/dist/{BlockPlaceholder-BmEZ68_q.js → BlockPlaceholder-CInLJaAM.js} +1 -1
  4. package/dist/{Calendar-hxcQBkTF.js → Calendar-DV_SrEdT.js} +131 -150
  5. package/dist/{CalendarFoundryView-CSAKDe-F.js → CalendarFoundryView-Cx60F-de.js} +968 -966
  6. package/dist/{CalendarIcon-B5JWs0gm.js → CalendarIcon-BA9OTu6n.js} +1 -1
  7. package/dist/{CartView-CQZw_kwm.js → CartView-DXL2fN6s.js} +279 -276
  8. package/dist/{CheckIcon-BSwoGox7.js → CheckIcon-CsHdBvm7.js} +1 -1
  9. package/dist/{Checkout-Bsx9d4qD.js → Checkout-BDogQG64.js} +378 -376
  10. package/dist/Checkout-puHwDIls.js +1934 -0
  11. package/dist/{CheckoutTimer-Bpt5gPyA.js → CheckoutTimer-KkahlL47.js} +5 -5
  12. package/dist/{ChevronDownIcon-CVZ0usBx.js → ChevronDownIcon-CfmGVqjm.js} +1 -1
  13. package/dist/ChevronRightOutline-CiG8UHni.js +23 -0
  14. package/dist/{CloseIcon-DUnvWXUY.js → CloseIcon-0KKo8fB2.js} +1 -1
  15. package/dist/{CollectionView-DXkBRGeQ.js → CollectionView-COd_e_aK.js} +6 -6
  16. package/dist/{Event-CmD84Ni8.js → Event-BYhY0nEy.js} +604 -518
  17. package/dist/EventCard-am-bIial.js +175 -0
  18. package/dist/{EventPage-4ToDFEaL.js → EventPage-DOiyzTGz.js} +289 -265
  19. package/dist/{Input-BXZmvQ0p.js → Input-CUn5WW7v.js} +1 -1
  20. package/dist/{LocationIcon-E-7CQh4E.js → LocationIcon-MUNzCw0b.js} +1 -1
  21. package/dist/{PasswordInput-DzXNIwRc.js → PasswordInput-uLRaGMSt.js} +1 -1
  22. package/dist/{PhoneInput-DnmN_L03.js → PhoneInput-5l-M5ykF.js} +1 -1
  23. package/dist/{RecommendationsRail-CrBSsbBD.js → RecommendationsRail-ShRQ7JzA.js} +69 -66
  24. package/dist/{ScarcityBadge-BL4shc2w.js → ScarcityBadge-BvLoTIiM.js} +6 -6
  25. package/dist/{SeriesPage-Dt-T6mco.js → SeriesPage-DMYXn2vA.js} +2 -2
  26. package/dist/{Spinner-B2rdbspc.js → Spinner-CwCn-yPI.js} +1 -1
  27. package/dist/{Success-BTm0jRAO.js → Success-BP76tviw.js} +175 -172
  28. package/dist/{TagIcon-BY8tK_qA.js → TagIcon-CUfTUPrP.js} +1 -1
  29. package/dist/{ViewTicketsEmbed-BjqniKb9.js → ViewTicketsEmbed-DnMqRwJI.js} +17 -16
  30. package/dist/{WarningCircleIcon-C5Lc7qkF.js → WarningCircleIcon-BVUWnzFt.js} +1 -1
  31. package/dist/{WarningTriIcon-BM8qc9xx.js → WarningTriIcon-CBHdMLyJ.js} +1 -1
  32. package/dist/adapter-BaqXgSqI.js +164 -0
  33. package/dist/api-BUAptAYH.js +489 -0
  34. package/dist/checkoutState-DKdzYK3y.js +198 -0
  35. package/dist/client-BxgiVv8K.js +262 -0
  36. package/dist/{constants-C6MZgb2S.js → constants-lKAMwRvZ.js} +5 -1
  37. package/dist/{copyToClipboard-F-akSgaF.js → copyToClipboard-BaAhnhZ9.js} +1 -1
  38. package/dist/{createErrorGate.svelte-CEGaIQeI.js → createErrorGate.svelte-BCjQmoDN.js} +1 -1
  39. package/dist/cta-BE_N5pBc.js +116 -0
  40. package/dist/{datetime-BnKG6Hjm.js → datetime-BetkhP3Y.js} +47 -47
  41. package/dist/{de-BHcAXwnM.js → de-C3szl-Vf.js} +10 -4
  42. package/dist/{de-BPmqZ6ao.js → de-CX7o2WAr.js} +5 -1
  43. package/dist/{defaultLabels-BbNEEsF7.js → defaultLabels-D7c3DLP3.js} +378 -401
  44. package/dist/{defaults-CcPpWiyw.js → defaults-QFkzo2Vg.js} +6 -6
  45. package/dist/{es-BV3Sgeg-.js → es-DS1-fjU8.js} +5 -1
  46. package/dist/{es-DZ3yceh-.js → es-QnJXFKEx.js} +10 -4
  47. package/dist/{event-DfqUhl5j.js → event-DFyH3dNo.js} +1 -1
  48. package/dist/{event-transform-DJYPMj8I.js → event-transform-za8lXql7.js} +18 -18
  49. package/dist/{eventStatusStream-DXyc5Eng.js → eventStatusStream-CaDLn9GX.js} +1 -1
  50. package/dist/{fr-Dyi163Vk.js → fr-BVgQDC6c.js} +10 -4
  51. package/dist/{fr-BJ0VQGEj.js → fr-CN3PiNzU.js} +5 -1
  52. package/dist/{href-CfWGAmkP.js → href--Xjr4Dsb.js} +3 -3
  53. package/dist/i18n-Bd9CN9cj.js +497 -0
  54. package/dist/i18n-Cwq8IQ_c.js +28 -0
  55. package/dist/{id-CVXaHHqU.js → id-CPG4tPVY.js} +5 -1
  56. package/dist/{id-DvFRZVAm.js → id-DCcXxLEY.js} +10 -4
  57. package/dist/{it-C0lzsHje.js → it-CjwnCYFF.js} +5 -1
  58. package/dist/{it-Bh05tcLv.js → it-CufAwhe3.js} +10 -4
  59. package/dist/{ja-Dl2r6tQ6.js → ja-C2uiNCJX.js} +5 -1
  60. package/dist/{ja-CU4PQS4j.js → ja-CMa_nsLY.js} +10 -4
  61. package/dist/{ko-DINqFSE1.js → ko-Bh97byDf.js} +5 -1
  62. package/dist/{ko-DDk6EdWm.js → ko-BwJHUjqS.js} +10 -4
  63. package/dist/locales/{4.3.122 → 4.3.124}/flow/de.js +1 -1
  64. package/dist/locales/{4.3.122 → 4.3.124}/flow/es.js +1 -1
  65. package/dist/locales/{4.3.122 → 4.3.124}/flow/fr.js +1 -1
  66. package/dist/locales/{4.3.122 → 4.3.124}/flow/id.js +1 -1
  67. package/dist/locales/{4.3.122 → 4.3.124}/flow/it.js +1 -1
  68. package/dist/locales/{4.3.122 → 4.3.124}/flow/ja.js +1 -1
  69. package/dist/locales/{4.3.122 → 4.3.124}/flow/ko.js +1 -1
  70. package/dist/locales/{4.3.122 → 4.3.124}/flow/nl.js +1 -1
  71. package/dist/locales/{4.3.122 → 4.3.124}/flow/pl.js +1 -1
  72. package/dist/locales/{4.3.122 → 4.3.124}/flow/pt-br.js +1 -1
  73. package/dist/locales/{4.3.122 → 4.3.124}/flow/tr.js +1 -1
  74. package/dist/locales/{4.3.122 → 4.3.124}/flow/zh.js +1 -1
  75. package/dist/locales/4.3.124/main/de.js +1 -0
  76. package/dist/locales/4.3.124/main/es.js +1 -0
  77. package/dist/locales/4.3.124/main/fr.js +1 -0
  78. package/dist/locales/4.3.124/main/id.js +1 -0
  79. package/dist/locales/4.3.124/main/it.js +1 -0
  80. package/dist/locales/4.3.124/main/ja.js +1 -0
  81. package/dist/locales/4.3.124/main/ko.js +1 -0
  82. package/dist/locales/4.3.124/main/nl.js +1 -0
  83. package/dist/locales/4.3.124/main/pl.js +1 -0
  84. package/dist/locales/4.3.124/main/pt-br.js +1 -0
  85. package/dist/locales/4.3.124/main/tr.js +1 -0
  86. package/dist/locales/4.3.124/main/zh.js +1 -0
  87. package/dist/look-island.svelte-QW0yvxsq.js +1278 -0
  88. package/dist/looks/4.3.124/looks.js +242 -0
  89. package/dist/looks/4.3.124/micdrop-wordmark-BYMG6vLR.svg +1 -0
  90. package/dist/looks/4.3.124/microphone-Ccv4r-kd.webp +0 -0
  91. package/dist/looks/4.3.124/superuser-CZF6a5gO.webp +0 -0
  92. package/dist/looks/4.3.124/treasury-DUE7lZzT.webp +0 -0
  93. package/dist/looks/4.3.124/user-image-yuS4errP.svg +9 -0
  94. package/dist/navigation-BYEhsDX4.js +176 -0
  95. package/dist/{nl-DOSKYHSx.js → nl-BQALrtyB.js} +10 -4
  96. package/dist/{nl-D92n5tHa.js → nl-ve_OaXOQ.js} +5 -1
  97. package/dist/normalizers-CqGXhPZo.js +44 -0
  98. package/dist/{phoneUtils-CS66SHie.js → phoneUtils-CL8tIxoM.js} +4 -0
  99. package/dist/{pixels-CFwOgA2N.js → pixels-CV8Zw_Kn.js} +1 -1
  100. package/dist/{pl-BlZHcnlS.js → pl-BHBBOz2I.js} +5 -1
  101. package/dist/{pl-CkLEymA2.js → pl-DaPcPjBE.js} +10 -4
  102. package/dist/{pt-br-BHuCQSM-.js → pt-br-BxdP86Vr.js} +10 -4
  103. package/dist/{pt-br-BrxthY0b.js → pt-br-D30dkLzU.js} +5 -1
  104. package/dist/{serverTotals-B8SJCzxE.js → serverTotals-DGQ7a35U.js} +1 -1
  105. package/dist/{showcase-state-options-KO_TYk3I.js → showcase-state-options-DTl2gdkG.js} +3 -3
  106. package/dist/to-event-card-props-CklRkTpt.js +205 -0
  107. package/dist/{tr-BnAdi4HO.js → tr-CFVBCuqV.js} +5 -1
  108. package/dist/{tr-Bvc34ODh.js → tr-CSfagpI3.js} +10 -4
  109. package/dist/types/index.d.ts +21 -4
  110. package/dist/utils-CowZZZtC.js +219 -0
  111. package/dist/venue-calendar.css +1 -1
  112. package/dist/venue-calendar.es.js +1550 -1836
  113. package/dist/venue-calendar.iife.js +35 -35
  114. package/dist/venue-calendar.umd.js +183 -54
  115. package/dist/widget-key-context-DX9WCLIM.js +744 -0
  116. package/dist/{zh-K0hOzZ3G.js → zh-DWMcKVLH.js} +10 -4
  117. package/dist/{zh-Tg1OTvWs.js → zh-DeEOoOFR.js} +5 -1
  118. package/package.json +4 -4
  119. package/dist/Checkout-CN1o3v9L.js +0 -1933
  120. package/dist/api-0hNBT78w.js +0 -654
  121. package/dist/i18n-CIpUYDU6.js +0 -28
  122. package/dist/i18n-DyjdmQSR.js +0 -608
  123. package/dist/locales/4.3.122/main/de.js +0 -1
  124. package/dist/locales/4.3.122/main/es.js +0 -1
  125. package/dist/locales/4.3.122/main/fr.js +0 -1
  126. package/dist/locales/4.3.122/main/id.js +0 -1
  127. package/dist/locales/4.3.122/main/it.js +0 -1
  128. package/dist/locales/4.3.122/main/ja.js +0 -1
  129. package/dist/locales/4.3.122/main/ko.js +0 -1
  130. package/dist/locales/4.3.122/main/nl.js +0 -1
  131. package/dist/locales/4.3.122/main/pl.js +0 -1
  132. package/dist/locales/4.3.122/main/pt-br.js +0 -1
  133. package/dist/locales/4.3.122/main/tr.js +0 -1
  134. package/dist/locales/4.3.122/main/zh.js +0 -1
  135. package/dist/to-event-card-props-DYIfPN8e.js +0 -379
  136. package/dist/utils-BzgFQSTg.js +0 -412
  137. package/dist/widget-key-context-CmI7Qdtf.js +0 -991
@@ -0,0 +1,262 @@
1
+ import { _ as e, g as t } from "./sizing-B7ixYndz.js";
2
+ //#region node_modules/@getmicdrop/svelte-components/dist/utils/storage/storage.js
3
+ function n(e) {
4
+ if (typeof window > "u") return null;
5
+ try {
6
+ return e === "local" ? window.localStorage : window.sessionStorage;
7
+ } catch {
8
+ return null;
9
+ }
10
+ }
11
+ function r(e, t) {
12
+ if (e == null || e === "") return t;
13
+ try {
14
+ return JSON.parse(e);
15
+ } catch {
16
+ return t;
17
+ }
18
+ }
19
+ function i(e, t, n) {
20
+ if (!e) return n;
21
+ let i;
22
+ try {
23
+ i = e.getItem(t);
24
+ } catch {
25
+ return n;
26
+ }
27
+ return r(i, n);
28
+ }
29
+ function a(t, n, r) {
30
+ if (!t) return !1;
31
+ try {
32
+ return t.setItem(n, JSON.stringify(r)), !0;
33
+ } catch (t) {
34
+ return e.warn(`storage: failed to write "${n}"`, t), !1;
35
+ }
36
+ }
37
+ function o(e, t) {
38
+ if (e) try {
39
+ e.removeItem(t);
40
+ } catch {}
41
+ }
42
+ function s(e, t, r) {
43
+ return i(n(e), t, r);
44
+ }
45
+ function c(e, t, r) {
46
+ return a(n(e), t, r);
47
+ }
48
+ function l(e, t) {
49
+ o(n(e), t);
50
+ }
51
+ function u(e, t = null) {
52
+ return s("local", e, t);
53
+ }
54
+ function d(e, t) {
55
+ return c("local", e, t);
56
+ }
57
+ function f(e) {
58
+ l("local", e);
59
+ }
60
+ function p(e, t = null) {
61
+ return s("session", e, t);
62
+ }
63
+ function m(e, t) {
64
+ return c("session", e, t);
65
+ }
66
+ function h(e) {
67
+ l("session", e);
68
+ }
69
+ //#endregion
70
+ //#region src/lib/config.js
71
+ var g = t("VC:config", { enabled: !0 }), _ = null;
72
+ function v(e) {
73
+ let t = e || null;
74
+ _ && t && t !== _ && g.warn("[VC] setWidgetKey called again with a DIFFERENT key. The widget key is module-global, so every calendar on this page will now use the last one set — any element configured with the previous key will get 403s on its public reads and render empty. Give each element its own widget-key attribute (threaded per-instance) rather than calling setWidgetKey() more than once."), _ = t;
75
+ }
76
+ function y() {
77
+ if (_) return _;
78
+ }
79
+ var b = null;
80
+ function x(e) {
81
+ b = typeof e == "string" && e.trim() ? e.trim() : null;
82
+ }
83
+ function S() {
84
+ return (b || B().baseUrl || (typeof window > "u" ? "" : window.location.origin) || "").replace(/\/+$/, "");
85
+ }
86
+ var C = null;
87
+ function w(e) {
88
+ let t = typeof e == "string" ? e.trim() : "";
89
+ C = /^https:\/\/[^/?#\s]+$/i.test(t.replace(/\/+$/, "")) ? t.replace(/\/+$/, "") : null;
90
+ }
91
+ function T() {
92
+ return b ? S() : C || S();
93
+ }
94
+ function E(e) {}
95
+ var D = {
96
+ postMessageOnSuccess: !1,
97
+ postMessageTargetOrigin: null
98
+ };
99
+ function O(e = {}) {
100
+ D = {
101
+ ...D,
102
+ ...e
103
+ };
104
+ }
105
+ function k() {
106
+ return { ...D };
107
+ }
108
+ //#endregion
109
+ //#region src/lib/api/client.ts
110
+ var A = t("VC"), j = /* @__PURE__ */ new Set();
111
+ function M(e) {
112
+ return j.add(e), () => {
113
+ j.delete(e);
114
+ };
115
+ }
116
+ function N(e) {
117
+ if (e) for (let t of j) try {
118
+ t(e);
119
+ } catch {}
120
+ }
121
+ var P = "ABORTED";
122
+ function F(e, t) {
123
+ let n = t || y();
124
+ return n ? {
125
+ ...e,
126
+ "X-Widget-Key": n
127
+ } : e;
128
+ }
129
+ function I(e, t) {
130
+ let n = `HTTP ${t}`;
131
+ if (!e || typeof e != "object") return { message: n };
132
+ let r = e, i = r.error && typeof r.error == "object" ? r.error : null, a = typeof r.code == "string" ? r.code : typeof i?.code == "string" ? i.code : void 0;
133
+ return {
134
+ message: typeof r.error == "string" ? r.error : typeof i?.message == "string" ? i.message : typeof r.message == "string" ? r.message : n,
135
+ code: a
136
+ };
137
+ }
138
+ var L = class extends Error {
139
+ code;
140
+ statusCode;
141
+ constructor(e, t, n) {
142
+ super(e), this.name = "ApiRequestError", this.code = t, this.statusCode = n;
143
+ }
144
+ }, R = {
145
+ baseUrl: "https://get-micdrop.com",
146
+ timeout: 3e4,
147
+ retries: 2,
148
+ retryDelay: 500,
149
+ onError: (e) => A.error("API Error:", e)
150
+ };
151
+ function z(e) {
152
+ R = {
153
+ ...R,
154
+ ...e
155
+ };
156
+ }
157
+ function B() {
158
+ return { ...R };
159
+ }
160
+ function V() {
161
+ return `${R.baseUrl}/api/v2/public`;
162
+ }
163
+ function H() {
164
+ return `${R.baseUrl}/api/orders/v2/public`;
165
+ }
166
+ var U = (e) => new Promise((t) => setTimeout(t, e));
167
+ async function W(e, t, n) {
168
+ let r = (t.method || "GET").toUpperCase(), i = r === "GET" || r === "HEAD" ? n.retries + 1 : 1, a;
169
+ for (let r = 1; r <= i; r++) {
170
+ let o = new AbortController(), s = setTimeout(() => o.abort(), n.timeout), c = t.signal, l;
171
+ c && (c.aborted ? o.abort() : (l = () => o.abort(), c.addEventListener("abort", l, { once: !0 })));
172
+ try {
173
+ let n = await fetch(e, {
174
+ ...t,
175
+ signal: o.signal
176
+ });
177
+ if (n.status >= 500 && r < i) a = /* @__PURE__ */ Error(`HTTP ${n.status}`);
178
+ else return n;
179
+ } catch (e) {
180
+ if (a = e, c?.aborted) throw e;
181
+ } finally {
182
+ clearTimeout(s), c && l && c.removeEventListener("abort", l);
183
+ }
184
+ r < i && await U(n.retryDelay * 2 ** (r - 1));
185
+ }
186
+ throw a;
187
+ }
188
+ async function G(e, t) {
189
+ return J("GET", e, void 0, t);
190
+ }
191
+ async function K(e, t, n) {
192
+ return J("POST", e, t, n);
193
+ }
194
+ async function q(e, t) {
195
+ return J("DELETE", e, void 0, t);
196
+ }
197
+ async function J(e, t, n, r) {
198
+ let i = t.startsWith("http") || t.startsWith("/api/") ? t : `${V()}${t}`, { widgetKey: a, suppressOnError: o, headers: s, ...c } = r ?? {}, l = (e) => {
199
+ o || R.onError(e);
200
+ };
201
+ try {
202
+ let t = await W(i, {
203
+ method: e,
204
+ headers: F({
205
+ "Content-Type": "application/json",
206
+ ...s
207
+ }, a),
208
+ body: n === void 0 ? void 0 : JSON.stringify(n),
209
+ ...c
210
+ }, R);
211
+ if (!t.ok) {
212
+ let { message: e, code: n } = I(await t.json().catch(() => ({})), t.status);
213
+ return l(new L(e, n, t.status)), N(n), {
214
+ success: !1,
215
+ error: e,
216
+ errorCode: n,
217
+ statusCode: t.status
218
+ };
219
+ }
220
+ return {
221
+ success: !0,
222
+ data: await t.json(),
223
+ statusCode: t.status
224
+ };
225
+ } catch (e) {
226
+ if (r?.signal?.aborted) return {
227
+ success: !1,
228
+ error: "Request aborted",
229
+ errorCode: P,
230
+ aborted: !0
231
+ };
232
+ let t = e instanceof Error ? e.name === "AbortError" ? "Request timed out" : e.message : "Unknown error";
233
+ return l(e instanceof Error ? e : Error(t)), {
234
+ success: !1,
235
+ error: t
236
+ };
237
+ }
238
+ }
239
+ async function Y(e, t) {
240
+ return K(`${V()}/tax-preview`, e, {
241
+ signal: t?.signal,
242
+ suppressOnError: t?.suppressOnError ?? !0,
243
+ widgetKey: t?.widgetKey
244
+ });
245
+ }
246
+ async function X(e, t) {
247
+ try {
248
+ let n = e.startsWith(R.baseUrl), { widgetKey: r, ...i } = t ?? {}, a = await W(e, {
249
+ ...i,
250
+ ...n ? { headers: F(i.headers, r) } : {}
251
+ }, R);
252
+ if (!a.ok) {
253
+ let e = await a.json().catch(() => ({}));
254
+ return A.error(`API request failed: ${a.status}`, e), null;
255
+ }
256
+ return a.json();
257
+ } catch (e) {
258
+ return A.error("API request error:", e), null;
259
+ }
260
+ }
261
+ //#endregion
262
+ export { f as C, m as E, p as S, d as T, x as _, B as a, v as b, M as c, F as d, k as f, O as g, y as h, z as i, X as l, T as m, G as n, H as o, S as p, K as r, V as s, q as t, Y as u, w as v, h as w, u as x, E as y };
@@ -211,9 +211,13 @@ var e = {
211
211
  queueWaitLessThanMinute: "Less than a minute",
212
212
  queueWaitMinute: "{n} minute",
213
213
  queueWaitMinutes: "{n} minutes",
214
- queueKeepPageOpen: "Keep this page open — your spot is saved",
214
+ queueKeepPageOpen: "Keep this page open — closing it gives up your place",
215
+ queueReleaseSpot: "Release my spot",
215
216
  queueAdmittedTitle: "You're in",
216
217
  queueAdmittedBody: "It's your turn — you can buy your tickets now",
218
+ queuePassTimeLeft: "You have {time} to buy your tickets",
219
+ queuePassEndingSoon: "Less than a minute left — buy your tickets now",
220
+ queuePassExpired: "Your turn has run out — buying now puts you back in line",
217
221
  recommendationsHeading: "More at this venue",
218
222
  recommendationFromTonightsLineup: "From tonight's lineup",
219
223
  recommendationSimilarShow: "Similar show",
@@ -1,4 +1,4 @@
1
- import { X as e } from "./datetime-BnKG6Hjm.js";
1
+ import { X as e } from "./datetime-BetkhP3Y.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/MailIcon.svelte
@@ -1,4 +1,4 @@
1
- import { X as e } from "./datetime-BnKG6Hjm.js";
1
+ import { X as e } from "./datetime-BetkhP3Y.js";
2
2
  import "svelte/internal/disclose-version";
3
3
  import * as t from "svelte/internal/client";
4
4
  import { getContext as n, hasContext as r, setContext as i } from "svelte";
@@ -0,0 +1,116 @@
1
+ import { J as e } from "./datetime-BetkhP3Y.js";
2
+ import { _ as t, a as n, b as r, f as i, o as a, s as o, v as s } from "./defaultLabels-D7c3DLP3.js";
3
+ import { r as c } from "./Button-VUB2WJ88.js";
4
+ import { m as l, p as u } from "./navigation-BYEhsDX4.js";
5
+ //#region src/lib/api/cta.ts
6
+ function d(e, n, a = {}) {
7
+ let { cancelled: o = !1, isRegistration: s = !1, waitlistEnabled: d = !1 } = a, p = c();
8
+ if (o) return {
9
+ text: "Canceled",
10
+ disabled: !0,
11
+ reason: "cancelled"
12
+ };
13
+ if ((e?.status || "").trim().toLowerCase() === "postponed") return {
14
+ text: "Postponed",
15
+ disabled: !0,
16
+ reason: "postponed"
17
+ };
18
+ let m = t(e.endDateTime || e.startDateTime);
19
+ if (m && i(m, p) < 0) return {
20
+ text: "Sales ended",
21
+ disabled: !0,
22
+ reason: "event_past"
23
+ };
24
+ let h = (e?.salesStatus || "").trim().toLowerCase(), g = h === "not_started";
25
+ if (h === "paused") return {
26
+ text: "Sales paused",
27
+ disabled: !0,
28
+ reason: "sales_paused"
29
+ };
30
+ if (h === "ended") return {
31
+ text: "Sales ended",
32
+ disabled: !0,
33
+ reason: "sales_ended"
34
+ };
35
+ let _ = e?.hasPurchasableHiddenTickets === !0 || Array.isArray(n) && n.some(u), v = () => _ ? {
36
+ text: s ? "Reserve a spot" : "Get tickets",
37
+ disabled: !1,
38
+ reason: "hidden_only"
39
+ } : d ? {
40
+ text: "Join Waitlist",
41
+ disabled: !1,
42
+ reason: "sold_out_waitlist"
43
+ } : {
44
+ text: "Sold out",
45
+ disabled: !0,
46
+ reason: "sold_out"
47
+ };
48
+ if (h === "sold_out") return v();
49
+ let y = (n || []).filter((e) => e.salesChannel !== 2 && !e.isHidden && !(typeof e.visibility == "number" && e.visibility >= l.HIDDEN));
50
+ if (y.length === 0) return _ ? {
51
+ text: s ? "Reserve a spot" : "Get tickets",
52
+ disabled: !1,
53
+ reason: "hidden_only"
54
+ } : {
55
+ text: "No tickets available",
56
+ disabled: !0,
57
+ reason: "no_tickets"
58
+ };
59
+ let b = !1, x = !0, S = !0, C = null;
60
+ for (let e of y) {
61
+ let n = t(e.salesBegin || e.salesStart || e.saleBegin || e.onSaleStart), r = t(e.salesEnd || e.saleEnd || e.onSaleEnd), a = e.remainingCapacity ?? e.quantityRemaining ?? e.quantity, o = e.soldOut || a != null && a <= 0, s = n ? i(n, p) > 0 : !1, c = r ? i(r, p) < 0 : !1;
62
+ !o && !s && !c && (b = !0), o || (x = !1), s || (S = !1), s && n && !o && !c && (!C || i(n, C) < 0) && (C = n);
63
+ }
64
+ return g && b ? _ ? {
65
+ text: s ? "Reserve a spot" : "Get tickets",
66
+ disabled: !1,
67
+ reason: "hidden_only"
68
+ } : {
69
+ text: "On sale soon",
70
+ disabled: !0,
71
+ reason: "coming_soon"
72
+ } : b ? {
73
+ text: s ? "Reserve a spot" : "Get tickets",
74
+ disabled: !1,
75
+ reason: "available"
76
+ } : S && C ? _ ? {
77
+ text: s ? "Reserve a spot" : "Get tickets",
78
+ disabled: !1,
79
+ reason: "hidden_only"
80
+ } : {
81
+ text: `On sale ${f(C, i(C, p), [e.timezone, e.timeZone].find((e) => !!e && r(e)))}`,
82
+ disabled: !0,
83
+ reason: "coming_soon"
84
+ } : x ? v() : _ ? {
85
+ text: s ? "Reserve a spot" : "Get tickets",
86
+ disabled: !1,
87
+ reason: "hidden_only"
88
+ } : {
89
+ text: "Sales ended",
90
+ disabled: !0,
91
+ reason: "sales_ended"
92
+ };
93
+ }
94
+ function f(t, r, i) {
95
+ let c = r / 36e5, l = r / 864e5;
96
+ if (i) {
97
+ let e = t.toISOString(), r = s(i, t), u = `${o(e, i)} ${r}`;
98
+ return c < 24 ? u : l <= 7 ? `${n(e, i, !0)} ${u}` : `${a(e, i, { includeYear: !1 })} ${u}`;
99
+ }
100
+ let u = (t) => e(t, {
101
+ hour: "numeric",
102
+ minute: "2-digit",
103
+ hour12: !0
104
+ }, "en-US");
105
+ return c < 24 ? u(t) : l <= 7 ? e(t, {
106
+ weekday: "short",
107
+ hour: "numeric",
108
+ minute: "2-digit",
109
+ hour12: !0
110
+ }, "en-US") : `${e(t, {
111
+ month: "short",
112
+ day: "numeric"
113
+ }, "en-US")} ${u(t)}`;
114
+ }
115
+ //#endregion
116
+ export { d as t };
@@ -1,4 +1,4 @@
1
- import { D as e, E as t, O as n, R as r, T as i, g as a, h as o, m as s, r as c, t as l, x as u } from "./defaultLabels-BbNEEsF7.js";
1
+ import { C as e, P as t, S as n, _ as r, d as i, f as a, l as o, r as s, t as c, w as l, x as u } from "./defaultLabels-D7c3DLP3.js";
2
2
  import { r as d } from "./Button-VUB2WJ88.js";
3
3
  import { getContext as f, setContext as p } from "svelte";
4
4
  //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/iconWeight.js
@@ -30,59 +30,59 @@ function y(e, t, n) {
30
30
  function b(e) {
31
31
  return Date.UTC(e.getFullYear(), e.getMonth(), e.getDate());
32
32
  }
33
- function x(n, r) {
34
- if (typeof n != "number" || !Number.isInteger(n)) throw new t(`${r} must be an integer, got ${JSON.stringify(n)}`, e.INVALID_DATE, { value: n });
33
+ function x(t, r) {
34
+ if (typeof t != "number" || !Number.isInteger(t)) throw new n(`${r} must be an integer, got ${JSON.stringify(t)}`, e.INVALID_DATE, { value: t });
35
35
  }
36
36
  function S(e) {
37
- return o(e, "toLocalDay(date)"), y(e.getFullYear(), e.getMonth(), e.getDate());
37
+ return i(e, "toLocalDay(date)"), y(e.getFullYear(), e.getMonth(), e.getDate());
38
38
  }
39
- function C(n, r, i) {
40
- if (x(n, "localDayFromParts(year)"), x(r, "localDayFromParts(monthIndex)"), x(i, "localDayFromParts(day)"), r < 0 || r > 11) throw new t(`localDayFromParts(monthIndex) must be 0-11 (0 = January), got ${r}`, e.INVALID_DATE, {
41
- year: n,
39
+ function C(t, r, i) {
40
+ if (x(t, "localDayFromParts(year)"), x(r, "localDayFromParts(monthIndex)"), x(i, "localDayFromParts(day)"), r < 0 || r > 11) throw new n(`localDayFromParts(monthIndex) must be 0-11 (0 = January), got ${r}`, e.INVALID_DATE, {
41
+ year: t,
42
42
  monthIndex: r,
43
43
  day: i
44
44
  });
45
- let a = y(n, r, i);
46
- if (a.getFullYear() !== n || a.getMonth() !== r || a.getDate() !== i || Number.isNaN(a.getTime())) throw new t(`localDayFromParts: ${n}-${r + 1}-${i} is not a real calendar date`, e.INVALID_DATE, {
47
- year: n,
45
+ let a = y(t, r, i);
46
+ if (a.getFullYear() !== t || a.getMonth() !== r || a.getDate() !== i || Number.isNaN(a.getTime())) throw new n(`localDayFromParts: ${t}-${r + 1}-${i} is not a real calendar date`, e.INVALID_DATE, {
47
+ year: t,
48
48
  monthIndex: r,
49
49
  day: i
50
50
  });
51
51
  return a;
52
52
  }
53
- function w(n) {
54
- if (typeof n != "string" || !/^\d{4}-\d{2}-\d{2}$/.test(n)) throw new t(`localDayFromYMD expects a YYYY-MM-DD date, got ${JSON.stringify(n)}`, e.INVALID_DATE, { value: n });
55
- let [r, i, a] = n.split("-").map(Number);
53
+ function w(t) {
54
+ if (typeof t != "string" || !/^\d{4}-\d{2}-\d{2}$/.test(t)) throw new n(`localDayFromYMD expects a YYYY-MM-DD date, got ${JSON.stringify(t)}`, e.INVALID_DATE, { value: t });
55
+ let [r, i, a] = t.split("-").map(Number);
56
56
  return C(r, i - 1, a);
57
57
  }
58
58
  function T() {
59
59
  return S(d());
60
60
  }
61
61
  function te(e) {
62
- return o(e, "localDayYMD(day)"), r(v(e));
62
+ return i(e, "localDayYMD(day)"), t(v(e));
63
63
  }
64
64
  function E(e) {
65
- return o(e, "localWeekday(day)"), e.getDay();
65
+ return i(e, "localWeekday(day)"), e.getDay();
66
66
  }
67
67
  function D(e, t) {
68
68
  return C(e, t, 1), y(e, t + 1, 0).getDate();
69
69
  }
70
70
  function O(e, t) {
71
- return o(e, "addLocalDays(day)"), x(t, "addLocalDays(n)"), y(e.getFullYear(), e.getMonth(), e.getDate() + t);
71
+ return i(e, "addLocalDays(day)"), x(t, "addLocalDays(n)"), y(e.getFullYear(), e.getMonth(), e.getDate() + t);
72
72
  }
73
73
  function ne(e, t) {
74
- o(e, "addLocalMonths(day)"), x(t, "addLocalMonths(n)");
75
- let n = y(e.getFullYear(), e.getMonth() + t, 1), r = n.getFullYear(), i = n.getMonth(), a = y(r, i + 1, 0).getDate();
76
- return y(r, i, Math.min(e.getDate(), a));
74
+ i(e, "addLocalMonths(day)"), x(t, "addLocalMonths(n)");
75
+ let n = y(e.getFullYear(), e.getMonth() + t, 1), r = n.getFullYear(), a = n.getMonth(), o = y(r, a + 1, 0).getDate();
76
+ return y(r, a, Math.min(e.getDate(), o));
77
77
  }
78
78
  function re(e) {
79
- return o(e, "startOfLocalMonth(day)"), y(e.getFullYear(), e.getMonth(), 1);
79
+ return i(e, "startOfLocalMonth(day)"), y(e.getFullYear(), e.getMonth(), 1);
80
80
  }
81
81
  function ie(e, t) {
82
- return o(e, "wholeDaysBetween(a)"), o(t, "wholeDaysBetween(b)"), (b(t) - b(e)) / 864e5;
82
+ return i(e, "wholeDaysBetween(a)"), i(t, "wholeDaysBetween(b)"), (b(t) - b(e)) / 864e5;
83
83
  }
84
84
  function k(e, t) {
85
- return o(e, "isSameLocalDay(a)"), o(t, "isSameLocalDay(b)"), b(e) === b(t);
85
+ return i(e, "isSameLocalDay(a)"), i(t, "isSameLocalDay(b)"), b(e) === b(t);
86
86
  }
87
87
  function A(e, t) {
88
88
  return a(e, t) < 0;
@@ -117,9 +117,9 @@ function M(e, t = {}) {
117
117
  return Array.from({ length: 7 }, (e, t) => O(r, t));
118
118
  }
119
119
  function se(e, t = {}) {
120
- o(e, "isLocalDayDisabled(day)");
121
- let { min: n, max: r, disablePast: i = !1, allowedWeekdays: a } = t;
122
- return !!(i && ae(e) || n && A(e, n) || r && j(e, r) || a && !a.includes(E(e)));
120
+ i(e, "isLocalDayDisabled(day)");
121
+ let { min: n, max: r, disablePast: a = !1, allowedWeekdays: o } = t;
122
+ return !!(a && ae(e) || n && A(e, n) || r && j(e, r) || o && !o.includes(E(e)));
123
123
  }
124
124
  //#endregion
125
125
  //#region node_modules/@getmicdrop/svelte-components/dist/utils/formatters.js
@@ -155,7 +155,7 @@ function ue(e) {
155
155
  return Number.isFinite(t) ? (t / 100).toFixed(2) : "";
156
156
  }
157
157
  function de(e) {
158
- return e == null ? null : e instanceof Date ? isNaN(e.getTime()) ? null : e : u(e);
158
+ return e == null ? null : e instanceof Date ? isNaN(e.getTime()) ? null : e : r(e);
159
159
  }
160
160
  function F(e, t) {
161
161
  return new Intl.DateTimeFormat("en-US", {
@@ -164,14 +164,14 @@ function F(e, t) {
164
164
  timeZone: t
165
165
  }).format(e);
166
166
  }
167
- function fe(n, r = {}) {
168
- let a = r.timeZone;
169
- if (a !== void 0 && !i(a)) throw new t(`Invalid timezone: ${a}`, e.INVALID_TIMEZONE, { timezone: a });
170
- let o = de(n);
171
- if (!o) return "";
172
- let c = d(), l = o.getTime() - c.getTime(), u = Math.round(l / 6e4), f = l / 36e5, p = r.locale || "en-US";
173
- if (u > 0 && u < 60) {
174
- let e = Math.max(1, u);
167
+ function fe(t, r = {}) {
168
+ let i = r.timeZone;
169
+ if (i !== void 0 && !u(i)) throw new n(`Invalid timezone: ${i}`, e.INVALID_TIMEZONE, { timezone: i });
170
+ let a = de(t);
171
+ if (!a) return "";
172
+ let s = d(), c = a.getTime() - s.getTime(), l = Math.round(c / 6e4), f = c / 36e5, p = r.locale || "en-US";
173
+ if (l > 0 && l < 60) {
174
+ let e = Math.max(1, l);
175
175
  return (e === 1 ? r.inNMinute || "in {n} minute" : r.inNMinutes || "in {n} minutes").replace("{n}", String(e));
176
176
  }
177
177
  if (f > 0 && f < 24) {
@@ -179,27 +179,27 @@ function fe(n, r = {}) {
179
179
  return (e === 1 ? r.inNHour || "in {n} hour" : r.inNHours || "in {n} hours").replace("{n}", String(e));
180
180
  }
181
181
  let m = (e) => {
182
- if (a === void 0) return S(e);
183
- let t = s(e.toISOString(), a);
182
+ if (i === void 0) return S(e);
183
+ let t = o(e.toISOString(), i);
184
184
  return t === null ? null : w(t);
185
- }, h = m(o), g = m(c);
185
+ }, h = m(a), g = m(s);
186
186
  if (h && g && k(h, O(g, 1))) {
187
- let e = F(o, a);
187
+ let e = F(a, i);
188
188
  return (r.tomorrowAtTime || "tomorrow at {time}").replace("{time}", e);
189
189
  }
190
- let _ = l / 864e5;
190
+ let _ = c / 864e5;
191
191
  if (_ > 0 && _ <= 7) {
192
192
  let e = new Intl.DateTimeFormat(p, {
193
193
  weekday: "long",
194
- timeZone: a
195
- }).format(o), t = F(o, a);
194
+ timeZone: i
195
+ }).format(a), t = F(a, i);
196
196
  return (r.onDayAtTime || "on {day} at {time}").replace("{day}", e).replace("{time}", t);
197
197
  }
198
198
  let v = new Intl.DateTimeFormat(p, {
199
199
  month: "short",
200
200
  day: "numeric",
201
- timeZone: a
202
- }).format(o);
201
+ timeZone: i
202
+ }).format(a);
203
203
  return (r.onDate || "on {date}").replace("{date}", v);
204
204
  }
205
205
  function pe(e, t, n = "en-US") {
@@ -286,7 +286,7 @@ function q(e) {
286
286
  let t = K(e?.price);
287
287
  return t === null ? null : t === 0 ? 0 : N(t + (K(e?.fee) ?? 0));
288
288
  }
289
- function ve(e, t = l) {
289
+ function ve(e, t = c) {
290
290
  return J(q(e), t);
291
291
  }
292
292
  function ye(e) {
@@ -295,11 +295,11 @@ function ye(e) {
295
295
  maximumFractionDigits: 2
296
296
  });
297
297
  }
298
- function J(e, t = l) {
298
+ function J(e, t = c) {
299
299
  return e == null ? "—" : e <= 0 ? t.free || "Free" : P(e);
300
300
  }
301
- function Y(e, t = n) {
302
- return e && c(e) ? e : t;
301
+ function Y(e, t = l) {
302
+ return e && s(e) ? e : t;
303
303
  }
304
304
  function X(e) {
305
305
  if (e == null || e === "" || typeof e != "string" && typeof e != "number" && !(e instanceof Date)) return null;
@@ -3,7 +3,6 @@ var e = {
3
3
  viewList: "Liste",
4
4
  viewGallery: "Galerie",
5
5
  viewCalendar: "Kalender",
6
- viewTonight: "Programm heute Abend",
7
6
  searchPlaceholder: "Nach Events suchen",
8
7
  searchAriaLabel: "Events suchen",
9
8
  listView: "Listenansicht",
@@ -94,7 +93,6 @@ var e = {
94
93
  nextWeek: "Nächste Woche",
95
94
  comingUp: "Demnächst",
96
95
  noShowsTonight: "Keine Shows heute Abend",
97
- nextShow: "Nächste Show",
98
96
  noUpcomingShowsScheduled: "Keine kommenden Shows geplant",
99
97
  nothingOn: "Nichts geplant",
100
98
  noUpcomingEventsScheduled: "Keine kommenden Events geplant",
@@ -473,9 +471,13 @@ var e = {
473
471
  queueWaitLessThanMinute: "Weniger als eine Minute",
474
472
  queueWaitMinute: "{n} Minute",
475
473
  queueWaitMinutes: "{n} Minuten",
476
- queueKeepPageOpen: "Lass diese Seite geöffnet — dein Platz bleibt reserviert",
474
+ queueKeepPageOpen: "Lass diese Seite geöffnet — wenn du sie schließt, gibst du deinen Platz auf",
475
+ queueReleaseSpot: "Meinen Platz freigeben",
477
476
  queueAdmittedTitle: "Du bist dran",
478
477
  queueAdmittedBody: "Du bist an der Reihe — jetzt kannst du deine Tickets kaufen",
478
+ queuePassTimeLeft: "Du hast {time}, um deine Tickets zu kaufen",
479
+ queuePassEndingSoon: "Weniger als eine Minute — kauf jetzt deine Tickets",
480
+ queuePassExpired: "Deine Zeit ist abgelaufen — wenn du jetzt kaufst, stellst du dich wieder an",
479
481
  sessionExpiringSoonMessage: "Deine Checkout-Sitzung läuft in {time} ab. Deine ausgewählten Tickets werden wieder freigegeben",
480
482
  extensionsRemaining: "Verbleibende Verlängerungen: {count}",
481
483
  continueCheckout: "Checkout fortsetzen",
@@ -540,7 +542,11 @@ var e = {
540
542
  giftCardPaymentDetails: "Zahlungsdetails",
541
543
  giftCardBack: "Zurück",
542
544
  giftCardPayAmount: "{amount} bezahlen",
543
- giftCardPaymentFailed: "Zahlung fehlgeschlagen. Bitte versuche es erneut"
545
+ giftCardPaymentFailed: "Zahlung fehlgeschlagen. Bitte versuche es erneut",
546
+ fromPrice: "Ab {price}",
547
+ payWhatYouWant: "Zahl, was du willst",
548
+ onSaleOn: "Vorverkauf ab {date}",
549
+ showAtTime: "Show {time}"
544
550
  };
545
551
  //#endregion
546
552
  export { e as de };
@@ -199,9 +199,13 @@ var e = {
199
199
  queueWaitLessThanMinute: "Weniger als eine Minute",
200
200
  queueWaitMinute: "{n} Minute",
201
201
  queueWaitMinutes: "{n} Minuten",
202
- queueKeepPageOpen: "Lass diese Seite geöffnet — dein Platz bleibt reserviert",
202
+ queueKeepPageOpen: "Lass diese Seite geöffnet — wenn du sie schließt, gibst du deinen Platz auf",
203
+ queueReleaseSpot: "Meinen Platz freigeben",
203
204
  queueAdmittedTitle: "Du bist dran",
204
205
  queueAdmittedBody: "Du bist an der Reihe — jetzt kannst du deine Tickets kaufen",
206
+ queuePassTimeLeft: "Du hast {time}, um deine Tickets zu kaufen",
207
+ queuePassEndingSoon: "Weniger als eine Minute — kauf jetzt deine Tickets",
208
+ queuePassExpired: "Deine Zeit ist abgelaufen — wenn du jetzt kaufst, stellst du dich wieder an",
205
209
  recommendationsHeading: "Mehr an diesem Veranstaltungsort",
206
210
  recommendationFromTonightsLineup: "Aus dem heutigen Line-up",
207
211
  recommendationSimilarShow: "Ähnliche Show",