@getmicdrop/venue-calendar 4.3.55 → 4.3.57
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.
- package/dist/{CalendarFoundryView-BLHPU4ry.js → CalendarFoundryView-DKZpskoX.js} +1535 -1466
- package/dist/{CartView-DTXoQTOC.js → CartView-Dz3Pet0D.js} +14 -14
- package/dist/Checkout-Bqe1P7Jr.js +1849 -0
- package/dist/{Checkout-B8ZkBxF_.js → Checkout-CFv2AX68.js} +363 -346
- package/dist/{CheckoutTimer-CyN-mQCP.js → CheckoutTimer-Ch4McYLj.js} +1 -1
- package/dist/{CollectionView-CkKwCXQj.js → CollectionView-BBRXKR7L.js} +3 -3
- package/dist/{Event-BfWRG4dm.js → Event-lTxMeEFL.js} +6 -6
- package/dist/{EventPage-dCTHvk7P.js → EventPage-Cqkelq-1.js} +10 -10
- package/dist/{RecommendationsRail-DPxl9JCm.js → RecommendationsRail-BAdqxvuS.js} +5 -5
- package/dist/{SeriesPage-B7z1yoAK.js → SeriesPage-iAbX0ZTM.js} +2 -2
- package/dist/Spinner-6QTo7mi8.js +19 -0
- package/dist/{Success-BzuOliUV.js → Success-B2T0Pbuw.js} +22 -22
- package/dist/{ViewTicketsEmbed-BE8iTUF9.js → ViewTicketsEmbed-D8SEO2Zw.js} +4 -4
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.mjs +194 -178
- package/dist/api/index.d.ts +2 -2
- package/dist/api/orders.d.ts +48 -0
- package/dist/api/transformers/venue.d.ts +14 -1
- package/dist/{api-BsBSvoNj.js → api-DMjowaFJ.js} +26 -26
- package/dist/{constants-CJyMUKEX.js → constants-DC0xZ-Ja.js} +1 -0
- package/dist/{de-CFh1o4IO.js → de-DWVo-yVF.js} +1 -0
- package/dist/{defaults-BHXY6s4i.js → defaults-C6to4-1V.js} +1 -1
- package/dist/{es-By1tBWcL.js → es-D2JTgwLx.js} +1 -0
- package/dist/{event-transform-oLpmof1H.js → event-transform-BF1WYBSP.js} +1 -1
- package/dist/{eventStatusStream-BIxriEut.js → eventStatusStream-8vyVag0u.js} +5 -5
- package/dist/{fr-BF6a7cw7.js → fr-kMyKMhNC.js} +1 -0
- package/dist/{i18n-8EWq-WHv.js → i18n-jISDKw5F.js} +1 -1
- package/dist/{i18n-JpkI3lvS.js → i18n-toTFR5-t.js} +16 -16
- package/dist/{id-Lo_q281j.js → id-ePSZ9pc6.js} +1 -0
- package/dist/{it-CQcRIzL4.js → it-CBG5vN1f.js} +1 -0
- package/dist/{ja-DOzvvYpK.js → ja-BEOrhLFG.js} +1 -0
- package/dist/{ko-b-vWxFpt.js → ko-D8x_4jV4.js} +1 -0
- package/dist/locales/4.3.57/flow/de.js +1 -0
- package/dist/locales/4.3.57/flow/es.js +1 -0
- package/dist/locales/4.3.57/flow/fr.js +1 -0
- package/dist/locales/4.3.57/flow/id.js +1 -0
- package/dist/locales/4.3.57/flow/it.js +1 -0
- package/dist/locales/4.3.57/flow/ja.js +1 -0
- package/dist/locales/4.3.57/flow/ko.js +1 -0
- package/dist/locales/4.3.57/flow/nl.js +1 -0
- package/dist/locales/4.3.57/flow/pl.js +1 -0
- package/dist/locales/4.3.57/flow/pt-br.js +1 -0
- package/dist/locales/4.3.57/flow/tr.js +1 -0
- package/dist/locales/4.3.57/flow/zh.js +1 -0
- package/dist/{nl-Dazc9kaV.js → nl-Vc5Wd3re.js} +1 -0
- package/dist/{orders--luy9Lyn.js → orders-FcXWw6b-.js} +56 -40
- package/dist/{pixels-FefBmhJt.js → pixels-B85kohqd.js} +9 -9
- package/dist/{pl-tSyy-lx_.js → pl-Dnjh6Wpy.js} +1 -0
- package/dist/{pt-br-BxzrK97M.js → pt-br-BJa34BZo.js} +1 -0
- package/dist/{tr-DhAMB3UQ.js → tr-Do7HmDL7.js} +1 -0
- package/dist/types/index.d.ts +14 -0
- package/dist/{utils-BFaSYuNA.js → utils-DpC4fy4Z.js} +69 -69
- package/dist/{venue-CBos8YTa.js → venue-BBoZBuhu.js} +1 -0
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +54 -54
- package/dist/venue-calendar.iife.js +31 -31
- package/dist/venue-calendar.umd.js +53 -53
- package/dist/{zh-C2-VLP_R.js → zh-Dn20V0BT.js} +1 -0
- package/package.json +2 -2
- package/dist/Checkout-QIxYrkeK.js +0 -1832
- package/dist/Spinner-6UtYyNcF.js +0 -16
- package/dist/locales/4.3.55/flow/de.js +0 -1
- package/dist/locales/4.3.55/flow/es.js +0 -1
- package/dist/locales/4.3.55/flow/fr.js +0 -1
- package/dist/locales/4.3.55/flow/id.js +0 -1
- package/dist/locales/4.3.55/flow/it.js +0 -1
- package/dist/locales/4.3.55/flow/ja.js +0 -1
- package/dist/locales/4.3.55/flow/ko.js +0 -1
- package/dist/locales/4.3.55/flow/nl.js +0 -1
- package/dist/locales/4.3.55/flow/pl.js +0 -1
- package/dist/locales/4.3.55/flow/pt-br.js +0 -1
- package/dist/locales/4.3.55/flow/tr.js +0 -1
- package/dist/locales/4.3.55/flow/zh.js +0 -1
- /package/dist/locales/{4.3.55 → 4.3.57}/main/de.js +0 -0
- /package/dist/locales/{4.3.55 → 4.3.57}/main/es.js +0 -0
- /package/dist/locales/{4.3.55 → 4.3.57}/main/fr.js +0 -0
- /package/dist/locales/{4.3.55 → 4.3.57}/main/id.js +0 -0
- /package/dist/locales/{4.3.55 → 4.3.57}/main/it.js +0 -0
- /package/dist/locales/{4.3.55 → 4.3.57}/main/ja.js +0 -0
- /package/dist/locales/{4.3.55 → 4.3.57}/main/ko.js +0 -0
- /package/dist/locales/{4.3.55 → 4.3.57}/main/nl.js +0 -0
- /package/dist/locales/{4.3.55 → 4.3.57}/main/pl.js +0 -0
- /package/dist/locales/{4.3.55 → 4.3.57}/main/pt-br.js +0 -0
- /package/dist/locales/{4.3.55 → 4.3.57}/main/tr.js +0 -0
- /package/dist/locales/{4.3.55 → 4.3.57}/main/zh.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as e } from "./sizing-CFDo_qh_.js";
|
|
2
|
-
import {
|
|
3
|
-
import "./event-transform-
|
|
2
|
+
import { F as t, M as n, P as r, Q as i, X as a, et as o, nt as s, z as c } from "./orders-FcXWw6b-.js";
|
|
3
|
+
import "./event-transform-BF1WYBSP.js";
|
|
4
4
|
//#region node_modules/js-cookie/dist/js.cookie.mjs
|
|
5
5
|
function l(e) {
|
|
6
6
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -82,19 +82,19 @@ function E() {
|
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
84
|
function D(e) {
|
|
85
|
-
let
|
|
85
|
+
let t = {}, n = {}, r = [], s = "", c = 0, l = {};
|
|
86
86
|
if (typeof window > "u") return {
|
|
87
|
-
quantities:
|
|
88
|
-
donationAmounts:
|
|
87
|
+
quantities: t,
|
|
88
|
+
donationAmounts: n,
|
|
89
89
|
addOnQuantities: l,
|
|
90
90
|
promocode: s,
|
|
91
91
|
promoDiscountAmount: c,
|
|
92
|
-
tickets:
|
|
92
|
+
tickets: r
|
|
93
93
|
};
|
|
94
94
|
let u = a(y(e), null);
|
|
95
95
|
if (!u) {
|
|
96
|
-
let
|
|
97
|
-
|
|
96
|
+
let t = a(b(e), null);
|
|
97
|
+
t && (u = t, o(y(e), t), i(b(e)));
|
|
98
98
|
}
|
|
99
99
|
if (u) return {
|
|
100
100
|
quantities: u.quantities || {},
|
|
@@ -105,38 +105,38 @@ function D(e) {
|
|
|
105
105
|
tickets: u.tickets || []
|
|
106
106
|
};
|
|
107
107
|
try {
|
|
108
|
-
|
|
108
|
+
t = JSON.parse(m(`checkout-quantities-${e}`) || "{}");
|
|
109
109
|
} catch (e) {
|
|
110
|
-
g.warn("Failed to parse checkout quantities cookie:", e),
|
|
110
|
+
g.warn("Failed to parse checkout quantities cookie:", e), t = {};
|
|
111
111
|
}
|
|
112
112
|
try {
|
|
113
|
-
|
|
113
|
+
r = JSON.parse(m(`checkout-tickets-${e}`) || "[]");
|
|
114
114
|
} catch (e) {
|
|
115
|
-
g.warn("Failed to parse checkout tickets cookie:", e),
|
|
115
|
+
g.warn("Failed to parse checkout tickets cookie:", e), r = [];
|
|
116
116
|
}
|
|
117
|
-
return s = m(`checkout-promocode-${e}`) || "", c = parseFloat(m(`checkout-promo-discount-${e}`) || "0"), (Object.keys(
|
|
117
|
+
return s = m(`checkout-promocode-${e}`) || "", c = parseFloat(m(`checkout-promo-discount-${e}`) || "0"), (Object.keys(t).length > 0 || r.length > 0 || s) && (A({
|
|
118
118
|
eventID: e,
|
|
119
|
-
quantities:
|
|
120
|
-
donationAmounts:
|
|
119
|
+
quantities: t,
|
|
120
|
+
donationAmounts: n,
|
|
121
121
|
promocode: s,
|
|
122
122
|
promoDiscountAmount: c,
|
|
123
|
-
tickets:
|
|
123
|
+
tickets: r
|
|
124
124
|
}), O(e)), {
|
|
125
|
-
quantities:
|
|
126
|
-
donationAmounts:
|
|
125
|
+
quantities: t,
|
|
126
|
+
donationAmounts: n,
|
|
127
127
|
addOnQuantities: l,
|
|
128
128
|
promocode: s,
|
|
129
129
|
promoDiscountAmount: c,
|
|
130
|
-
tickets:
|
|
130
|
+
tickets: r
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
133
|
function O(e) {
|
|
134
134
|
h(`checkout-quantities-${e}`), h(`checkout-tickets-${e}`), h(`checkout-promocode-${e}`), h(`checkout-promo-discount-${e}`);
|
|
135
135
|
}
|
|
136
136
|
function k(e) {
|
|
137
|
-
|
|
137
|
+
i(y(e)), i(b(e)), O(e), h(`checkout-promo-discount-type-${e}`), h(`checkout-promo-reveal-${e}`), h(`checkout-promo-reveal-ids-${e}`), h(`checkout-promo-ticket-ids-${e}`);
|
|
138
138
|
}
|
|
139
|
-
function A({ eventID: e, quantities:
|
|
139
|
+
function A({ eventID: e, quantities: t, donationAmounts: n, addOnQuantities: r, promocode: i, promoDiscountAmount: a, tickets: s }) {
|
|
140
140
|
if (typeof window > "u") return;
|
|
141
141
|
let c = (s || []).map((e) => ({
|
|
142
142
|
ID: e.ID,
|
|
@@ -146,30 +146,30 @@ function A({ eventID: e, quantities: n, donationAmounts: r, addOnQuantities: i,
|
|
|
146
146
|
visibility: e.visibility,
|
|
147
147
|
salesChannel: e.salesChannel
|
|
148
148
|
})), l = {
|
|
149
|
-
quantities:
|
|
150
|
-
donationAmounts:
|
|
151
|
-
addOnQuantities:
|
|
152
|
-
promocode:
|
|
153
|
-
promoDiscountAmount:
|
|
149
|
+
quantities: t || {},
|
|
150
|
+
donationAmounts: n || {},
|
|
151
|
+
addOnQuantities: r || {},
|
|
152
|
+
promocode: i || "",
|
|
153
|
+
promoDiscountAmount: a || 0,
|
|
154
154
|
tickets: c,
|
|
155
155
|
updatedAt: Date.now()
|
|
156
156
|
};
|
|
157
|
-
|
|
157
|
+
o(y(e), l);
|
|
158
158
|
}
|
|
159
159
|
function j(e) {
|
|
160
160
|
if (!e) return null;
|
|
161
|
-
let
|
|
162
|
-
if (
|
|
163
|
-
let
|
|
164
|
-
if (
|
|
165
|
-
let
|
|
166
|
-
return
|
|
161
|
+
let t = a(x(e), null);
|
|
162
|
+
if (t != null) return P(t);
|
|
163
|
+
let n = a(S(e), null);
|
|
164
|
+
if (n == null) return null;
|
|
165
|
+
let r = P(n);
|
|
166
|
+
return r != null && (o(x(e), r), i(S(e))), r;
|
|
167
167
|
}
|
|
168
|
-
function M(e,
|
|
169
|
-
!e || !Number.isFinite(
|
|
168
|
+
function M(e, t) {
|
|
169
|
+
!e || !Number.isFinite(t) || o(x(e), t);
|
|
170
170
|
}
|
|
171
171
|
function N(e) {
|
|
172
|
-
e && (
|
|
172
|
+
e && (i(x(e)), i(S(e)));
|
|
173
173
|
}
|
|
174
174
|
function P(e) {
|
|
175
175
|
let t = typeof e == "number" ? e : parseInt(e, 10);
|
|
@@ -189,11 +189,11 @@ var F = (e) => _(`queue-token-${e}`);
|
|
|
189
189
|
function I(e) {
|
|
190
190
|
return a(F(e), null);
|
|
191
191
|
}
|
|
192
|
-
function L(e,
|
|
193
|
-
|
|
192
|
+
function L(e, t) {
|
|
193
|
+
t && o(F(e), t);
|
|
194
194
|
}
|
|
195
195
|
function R(e) {
|
|
196
|
-
|
|
196
|
+
i(F(e));
|
|
197
197
|
}
|
|
198
198
|
//#endregion
|
|
199
199
|
//#region src/lib/api/surge-queue.ts
|
|
@@ -229,7 +229,7 @@ function J(e) {
|
|
|
229
229
|
}
|
|
230
230
|
async function Y(e) {
|
|
231
231
|
try {
|
|
232
|
-
let t = await
|
|
232
|
+
let t = await r(`/events/${e}/queue`);
|
|
233
233
|
return t.success ? {
|
|
234
234
|
armed: t.data?.armed === !0,
|
|
235
235
|
mode: G(t.data?.mode),
|
|
@@ -242,21 +242,21 @@ async function Y(e) {
|
|
|
242
242
|
}
|
|
243
243
|
async function X(e) {
|
|
244
244
|
try {
|
|
245
|
-
let
|
|
246
|
-
if (!
|
|
245
|
+
let n = await t(`/events/${e}/queue/join`, {});
|
|
246
|
+
if (!n.success) return {
|
|
247
247
|
success: !1,
|
|
248
|
-
errorCode:
|
|
249
|
-
statusCode:
|
|
248
|
+
errorCode: n.errorCode || "queue_unavailable",
|
|
249
|
+
statusCode: n.statusCode
|
|
250
250
|
};
|
|
251
|
-
let
|
|
252
|
-
return
|
|
251
|
+
let r = J(n.data);
|
|
252
|
+
return r ? {
|
|
253
253
|
success: !0,
|
|
254
|
-
entry:
|
|
255
|
-
statusCode:
|
|
254
|
+
entry: r,
|
|
255
|
+
statusCode: n.statusCode
|
|
256
256
|
} : {
|
|
257
257
|
success: !1,
|
|
258
258
|
errorCode: B,
|
|
259
|
-
statusCode:
|
|
259
|
+
statusCode: n.statusCode
|
|
260
260
|
};
|
|
261
261
|
} catch (e) {
|
|
262
262
|
return z.error("joinQueue error:", e), {
|
|
@@ -271,21 +271,21 @@ async function Z(e, t) {
|
|
|
271
271
|
errorCode: B
|
|
272
272
|
};
|
|
273
273
|
try {
|
|
274
|
-
let
|
|
275
|
-
if (!
|
|
274
|
+
let n = await r(`/events/${e}/queue/status?token=${encodeURIComponent(t)}`);
|
|
275
|
+
if (!n.success) return {
|
|
276
276
|
success: !1,
|
|
277
|
-
errorCode:
|
|
278
|
-
statusCode:
|
|
277
|
+
errorCode: n.errorCode || "queue_unavailable",
|
|
278
|
+
statusCode: n.statusCode
|
|
279
279
|
};
|
|
280
|
-
let i = J(
|
|
280
|
+
let i = J(n.data);
|
|
281
281
|
return i ? {
|
|
282
282
|
success: !0,
|
|
283
283
|
entry: i,
|
|
284
|
-
statusCode:
|
|
284
|
+
statusCode: n.statusCode
|
|
285
285
|
} : {
|
|
286
286
|
success: !1,
|
|
287
287
|
errorCode: B,
|
|
288
|
-
statusCode:
|
|
288
|
+
statusCode: n.statusCode
|
|
289
289
|
};
|
|
290
290
|
} catch (e) {
|
|
291
291
|
return z.error("getQueueStatus error:", e), {
|
|
@@ -294,10 +294,10 @@ async function Z(e, t) {
|
|
|
294
294
|
};
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
|
-
async function ne(e,
|
|
298
|
-
if (!
|
|
297
|
+
async function ne(e, n) {
|
|
298
|
+
if (!n) return { released: !1 };
|
|
299
299
|
try {
|
|
300
|
-
return { released: (await
|
|
300
|
+
return { released: (await t(`/events/${e}/queue/leave`, { token: n }, {
|
|
301
301
|
keepalive: !0,
|
|
302
302
|
suppressOnError: !0
|
|
303
303
|
})).data?.released === !0 };
|
|
@@ -330,8 +330,8 @@ async function ae() {
|
|
|
330
330
|
}
|
|
331
331
|
async function oe(e) {
|
|
332
332
|
try {
|
|
333
|
-
let t = await
|
|
334
|
-
if (!t.success) throw new
|
|
333
|
+
let t = await r(`/venues/${e}`);
|
|
334
|
+
if (!t.success) throw new s(t.error ?? `API error: ${t.statusCode}`, t.statusCode ?? 0, {
|
|
335
335
|
endpoint: `/venues/${e}`,
|
|
336
336
|
method: "GET"
|
|
337
337
|
});
|
|
@@ -340,15 +340,15 @@ async function oe(e) {
|
|
|
340
340
|
throw Q.error("getVenueDetails error:", e), e;
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
|
-
async function $(e = {},
|
|
343
|
+
async function $(e = {}, n) {
|
|
344
344
|
try {
|
|
345
|
-
let
|
|
346
|
-
purchaserIP:
|
|
345
|
+
let r = await ae(), { eventID: i, quantities: a, donationAmounts: o, ...s } = e, c = a ? Object.fromEntries(Object.entries(a).map(([e, t]) => [parseInt(e, 10), t])) : {}, l = o ? Object.fromEntries(Object.entries(o).filter(([, e]) => parseFloat(String(e)) > 0).map(([e, t]) => [parseInt(e, 10), parseFloat(String(t))])) : void 0, u = {
|
|
346
|
+
purchaserIP: r,
|
|
347
347
|
eventID: i ? parseInt(String(i), 10) : void 0,
|
|
348
348
|
quantities: c,
|
|
349
349
|
...l && Object.keys(l).length > 0 ? { donationAmounts: l } : {},
|
|
350
350
|
...s
|
|
351
|
-
}, d = await
|
|
351
|
+
}, d = await t("/orders/create", u, n ? { headers: { "X-Queue-Token": n } } : void 0), f = d.data ?? {};
|
|
352
352
|
if (!d.success || f.error) {
|
|
353
353
|
let e = re(f.error) || (typeof f.message == "string" ? f.message : "") || d.error || "Order creation failed";
|
|
354
354
|
if ((d.errorCode || ie(f.error)) === "QUEUE_REQUIRED") return {
|
|
@@ -380,10 +380,10 @@ async function $(e = {}, t) {
|
|
|
380
380
|
}
|
|
381
381
|
async function se(e) {
|
|
382
382
|
try {
|
|
383
|
-
let t = await
|
|
383
|
+
let t = await r(`/orders/${e}`);
|
|
384
384
|
if (!t.success) {
|
|
385
385
|
let n = t.error ?? `Failed to fetch order (${t.statusCode})`;
|
|
386
|
-
throw Q.error("getOrder error response:", n), new
|
|
386
|
+
throw Q.error("getOrder error response:", n), new s(n, t.statusCode ?? 0, {
|
|
387
387
|
endpoint: `/orders/${e}`,
|
|
388
388
|
method: "GET"
|
|
389
389
|
});
|
|
@@ -397,9 +397,9 @@ async function se(e) {
|
|
|
397
397
|
//#region src/lib/utils/utm.ts
|
|
398
398
|
var ce = e("utm");
|
|
399
399
|
async function le(e) {
|
|
400
|
-
let t = new URLSearchParams(window.location.search),
|
|
400
|
+
let t = new URLSearchParams(window.location.search), r = n(t.get("utm_source")) || "direct";
|
|
401
401
|
try {
|
|
402
|
-
await fetch(`${
|
|
402
|
+
await fetch(`${c()}/utm/${e}/${encodeURIComponent(r)}`);
|
|
403
403
|
} catch (e) {
|
|
404
404
|
ce.error("UTM tracking failed:", e);
|
|
405
405
|
}
|
|
@@ -5,6 +5,7 @@ function e(e) {
|
|
|
5
5
|
askForPhoneAtCheckout: t.askForPhoneAtCheckout ?? !0,
|
|
6
6
|
requiredPhoneAtCheckout: (t.askForPhoneAtCheckout ?? !0) && (t.requiredPhoneAtCheckout ?? !1),
|
|
7
7
|
hasCustomCheckout: r,
|
|
8
|
+
requiredCustomCheckout: r && (t.requiredCustomCheckout ?? !1),
|
|
8
9
|
questionPrompt: r ? n : void 0
|
|
9
10
|
};
|
|
10
11
|
}
|