@getmicdrop/venue-calendar 4.3.37 → 4.3.39
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/{ArrowLeftIcon-bH5d6LQO.js → ArrowLeftIcon-BMuyNOqe.js} +1 -1
- package/dist/{BlockPlaceholder-yXhu9HrQ.js → BlockPlaceholder-CUusOhOf.js} +1 -1
- package/dist/{Calendar-BjE02HrG.js → Calendar-Dy-jZDff.js} +3 -3
- package/dist/{CalendarFoundryView-BWaOYwqK.js → CalendarFoundryView-BWyEe7Xe.js} +23 -23
- package/dist/{CalendarIcon-Cg9UUTeu.js → CalendarIcon-B1JasL-W.js} +1 -1
- package/dist/{CartView-bcOiHkc9.js → CartView-CyU9g9ss.js} +21 -21
- package/dist/{Checkbox-24CWEsty.js → Checkbox-BtJwg_CF.js} +1 -0
- package/dist/{Checkout-CQkHV2jG.js → Checkout-BGXlW2j2.js} +15 -21
- package/dist/{Checkout-CBKPSWLo.js → Checkout-DrP1KLR_.js} +19 -19
- package/dist/{CheckoutTimer-BYQ43W8T.js → CheckoutTimer-CAKT63di.js} +3 -3
- package/dist/{ChevronDownIcon-BA40Kl0C.js → ChevronDownIcon--mG1fNDx.js} +1 -1
- package/dist/{ClockIcon-DjC-doTv.js → ClockIcon-B8ahXV8G.js} +1 -1
- package/dist/{CloseIcon-BdwmaxDK.js → CloseIcon-C9guTa4C.js} +1 -1
- package/dist/{CollectionView-5CycNo4A.js → CollectionView-BhBCM-01.js} +6 -6
- package/dist/{CropImage-Ct6MRg_a.js → CropImage-BFtvLjTE.js} +1 -1
- package/dist/{Event-Bz4DLlpB.js → Event-DyX1UrZe.js} +18 -18
- package/dist/EventPage-DxyEqU7R.js +1184 -0
- package/dist/{Input-o-1w57H2.js → Input-DNzDcf6I.js} +1 -1
- package/dist/{MailIcon-DCMMhuHr.js → MailIcon-Cf77TYiB.js} +1 -1
- package/dist/{PasswordInput-zX7J--jb.js → PasswordInput-C-BH1Do3.js} +1 -1
- package/dist/{RecommendationsRail-Cb--XCvg.js → RecommendationsRail-CG0vCtgJ.js} +8 -8
- package/dist/{ScarcityBadge-CwYWJOsJ.js → ScarcityBadge-D0D6Hqp0.js} +3 -3
- package/dist/{SeriesPage-BalCscZf.js → SeriesPage-D9_Nn8gF.js} +3 -3
- package/dist/{Success-DtScq6E2.js → Success-Db843hJe.js} +25 -25
- package/dist/{TagIcon-CkfQvNGi.js → TagIcon-DUY8KSZ0.js} +1 -1
- package/dist/{ViewTicketsEmbed-KbA05I2k.js → ViewTicketsEmbed-rdcE9aPB.js} +5 -5
- package/dist/{WarningCircleIcon-Iq24pJJf.js → WarningCircleIcon-C1-Aj9ut.js} +1 -1
- package/dist/{WarningTriIcon-Dw5GnHpq.js → WarningTriIcon-BrwQ58VB.js} +1 -1
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.mjs +1 -1
- package/dist/api/authHeaders.d.ts +25 -0
- package/dist/api/checkout-availability.d.ts +71 -0
- package/dist/api/gate-password-cache.d.ts +60 -0
- package/dist/api/recommendations.d.ts +35 -0
- package/dist/api/surge-queue.d.ts +133 -0
- package/dist/api/types.d.ts +435 -556
- package/dist/{api-D0rw6nGg.js → api-DDVVRbC-.js} +73 -73
- package/dist/{constants-B3kqqQpi.js → constants-7hsFMWgp.js} +1 -1
- package/dist/{copyToClipboard-C3IBl2Z1.js → copyToClipboard-4LAkJ_1y.js} +1 -1
- package/dist/{de-BY5vJUGN.js → de-DD9e2eok.js} +21 -3
- package/dist/{defaultLabels-Zp9QbN37.js → defaultLabels-BkjXKQDd.js} +20 -2
- package/dist/{defaults-BMbXcKP9.js → defaults-DthmKRyG.js} +2 -2
- package/dist/{es-jUq9nrJk.js → es-CHuPO3ex.js} +21 -3
- package/dist/{event-c9mHeEJz.js → event-Dew6DCL7.js} +1 -1
- package/dist/{event-transform-D0mzpOzE.js → event-transform-CbFR1hRl.js} +4 -4
- package/dist/{eventStatusStream-dDHNTEOf.js → eventStatusStream-DTshTZoI.js} +1 -1
- package/dist/{fr-BhVwmvlV.js → fr-Ctu5i20f.js} +21 -3
- package/dist/{href-1o0O9xTA.js → href-B4azVXj-.js} +2 -2
- package/dist/i18n--YZExMpe.js +28 -0
- package/dist/{i18n-DInkJ-RH.js → i18n-srcm-H61.js} +6 -6
- package/dist/{id-CWU5ZvLv.js → id-DKYW7qEJ.js} +21 -3
- package/dist/imageOptimizer-Cf0BbZJ7.js +220 -0
- package/dist/{it-wlDmN3hH.js → it-DPWCuCsJ.js} +21 -3
- package/dist/{ja-DpA7hJaC.js → ja-CNSRW1XM.js} +21 -3
- package/dist/{ko-DdWLaFvo.js → ko--itQbcHD.js} +21 -3
- package/dist/locales/{4.3.37 → 4.3.39}/main/de.js +1 -1
- package/dist/locales/{4.3.37 → 4.3.39}/main/es.js +1 -1
- package/dist/locales/{4.3.37 → 4.3.39}/main/fr.js +1 -1
- package/dist/locales/{4.3.37 → 4.3.39}/main/id.js +1 -1
- package/dist/locales/{4.3.37 → 4.3.39}/main/it.js +1 -1
- package/dist/locales/{4.3.37 → 4.3.39}/main/ja.js +1 -1
- package/dist/locales/{4.3.37 → 4.3.39}/main/ko.js +1 -1
- package/dist/locales/{4.3.37 → 4.3.39}/main/nl.js +1 -1
- package/dist/locales/{4.3.37 → 4.3.39}/main/pl.js +1 -1
- package/dist/locales/{4.3.37 → 4.3.39}/main/pt-br.js +1 -1
- package/dist/locales/{4.3.37 → 4.3.39}/main/tr.js +1 -1
- package/dist/locales/{4.3.37 → 4.3.39}/main/zh.js +1 -1
- package/dist/{nl-BwxAfMRa.js → nl-BoZA1-rw.js} +21 -3
- package/dist/{order-totals-BEUOdkCb.js → order-totals-DFE6UVG4.js} +3 -3
- package/dist/{orders-jQz7QFjK.js → orders-DABdaHOy.js} +167 -166
- package/dist/{phoneUtils-CbiDWdEC.js → phoneUtils-CxLRaM5n.js} +1 -1
- package/dist/{pixels-DnbRn43e.js → pixels-BVOE_JFH.js} +8 -8
- package/dist/{pl-CuRdwJXc.js → pl-tC8ayoR2.js} +21 -3
- package/dist/{promo-BrstveEs.js → promo-B3Tj0iQF.js} +1 -1
- package/dist/{pt-br-BUWJLxKf.js → pt-br-CTMA1wMi.js} +21 -3
- package/dist/{scarcity-CwnIxi1J.js → scarcity-DqbDh1cS.js} +1 -1
- package/dist/seo/types.d.ts +137 -156
- package/dist/{serverTotals-D2-FzkdS.js → serverTotals-ClEUVCOz.js} +1 -1
- package/dist/{showcase-state-options-CDOHpho6.js → showcase-state-options-Dwn2NLOM.js} +1 -1
- package/dist/{to-event-card-props-ChcFQ_rl.js → to-event-card-props-CRaeqRxY.js} +2 -2
- package/dist/{tr-DTe5Urub.js → tr-CuaYXuAQ.js} +21 -3
- package/dist/{utils-KGYASlkk.js → utils-kRsfuFcG.js} +53 -53
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +499 -490
- package/dist/venue-calendar.iife.js +56 -56
- package/dist/venue-calendar.umd.js +56 -56
- package/dist/{zh-BnBN3ggx.js → zh-Bcr7RKpt.js} +21 -3
- package/package.json +2 -2
- package/dist/EventPage-6-7R9qrl.js +0 -1184
- package/dist/i18n-i-1mHdch.js +0 -28
- package/dist/imageOptimizer-DkJp4tei.js +0 -140
- /package/dist/locales/{4.3.37 → 4.3.39}/flow/de.js +0 -0
- /package/dist/locales/{4.3.37 → 4.3.39}/flow/es.js +0 -0
- /package/dist/locales/{4.3.37 → 4.3.39}/flow/fr.js +0 -0
- /package/dist/locales/{4.3.37 → 4.3.39}/flow/id.js +0 -0
- /package/dist/locales/{4.3.37 → 4.3.39}/flow/it.js +0 -0
- /package/dist/locales/{4.3.37 → 4.3.39}/flow/ja.js +0 -0
- /package/dist/locales/{4.3.37 → 4.3.39}/flow/ko.js +0 -0
- /package/dist/locales/{4.3.37 → 4.3.39}/flow/nl.js +0 -0
- /package/dist/locales/{4.3.37 → 4.3.39}/flow/pl.js +0 -0
- /package/dist/locales/{4.3.37 → 4.3.39}/flow/pt-br.js +0 -0
- /package/dist/locales/{4.3.37 → 4.3.39}/flow/tr.js +0 -0
- /package/dist/locales/{4.3.37 → 4.3.39}/flow/zh.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { E as e } from "./Button-klwKgfhG.js";
|
|
2
|
-
import {
|
|
3
|
-
import "./event-transform-
|
|
2
|
+
import { $ as t, N as n, P as r, R as i, Y as a, Z as o, j as s, tt as c } from "./orders-DABdaHOy.js";
|
|
3
|
+
import "./event-transform-CbFR1hRl.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 n = {}, r = {}, i = [], s = "", c = 0, l = {};
|
|
86
86
|
if (typeof window > "u") return {
|
|
87
|
-
quantities:
|
|
87
|
+
quantities: n,
|
|
88
88
|
donationAmounts: r,
|
|
89
89
|
addOnQuantities: l,
|
|
90
|
-
promocode:
|
|
90
|
+
promocode: s,
|
|
91
91
|
promoDiscountAmount: c,
|
|
92
92
|
tickets: i
|
|
93
93
|
};
|
|
94
|
-
let u =
|
|
94
|
+
let u = a(y(e), null);
|
|
95
95
|
if (!u) {
|
|
96
|
-
let
|
|
97
|
-
|
|
96
|
+
let n = a(b(e), null);
|
|
97
|
+
n && (u = n, t(y(e), n), o(b(e)));
|
|
98
98
|
}
|
|
99
99
|
if (u) return {
|
|
100
100
|
quantities: u.quantities || {},
|
|
@@ -105,27 +105,27 @@ function D(e) {
|
|
|
105
105
|
tickets: u.tickets || []
|
|
106
106
|
};
|
|
107
107
|
try {
|
|
108
|
-
|
|
108
|
+
n = 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), n = {};
|
|
111
111
|
}
|
|
112
112
|
try {
|
|
113
113
|
i = JSON.parse(m(`checkout-tickets-${e}`) || "[]");
|
|
114
114
|
} catch (e) {
|
|
115
115
|
g.warn("Failed to parse checkout tickets cookie:", e), i = [];
|
|
116
116
|
}
|
|
117
|
-
return
|
|
117
|
+
return s = m(`checkout-promocode-${e}`) || "", c = parseFloat(m(`checkout-promo-discount-${e}`) || "0"), (Object.keys(n).length > 0 || i.length > 0 || s) && (A({
|
|
118
118
|
eventID: e,
|
|
119
|
-
quantities:
|
|
119
|
+
quantities: n,
|
|
120
120
|
donationAmounts: r,
|
|
121
|
-
promocode:
|
|
121
|
+
promocode: s,
|
|
122
122
|
promoDiscountAmount: c,
|
|
123
123
|
tickets: i
|
|
124
124
|
}), O(e)), {
|
|
125
|
-
quantities:
|
|
125
|
+
quantities: n,
|
|
126
126
|
donationAmounts: r,
|
|
127
127
|
addOnQuantities: l,
|
|
128
|
-
promocode:
|
|
128
|
+
promocode: s,
|
|
129
129
|
promoDiscountAmount: c,
|
|
130
130
|
tickets: i
|
|
131
131
|
};
|
|
@@ -134,9 +134,9 @@ 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
|
+
o(y(e)), o(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: n, donationAmounts: r, addOnQuantities: i, promocode: a, promoDiscountAmount: o, 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: t, donationAmounts: n, addOnQuantities: r,
|
|
|
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: n || {},
|
|
150
|
+
donationAmounts: r || {},
|
|
151
|
+
addOnQuantities: i || {},
|
|
152
|
+
promocode: a || "",
|
|
153
|
+
promoDiscountAmount: o || 0,
|
|
154
154
|
tickets: c,
|
|
155
155
|
updatedAt: Date.now()
|
|
156
156
|
};
|
|
157
|
-
|
|
157
|
+
t(y(e), l);
|
|
158
158
|
}
|
|
159
159
|
function j(e) {
|
|
160
160
|
if (!e) return null;
|
|
161
|
-
let
|
|
162
|
-
if (
|
|
163
|
-
let r =
|
|
161
|
+
let n = a(x(e), null);
|
|
162
|
+
if (n != null) return P(n);
|
|
163
|
+
let r = a(S(e), null);
|
|
164
164
|
if (r == null) return null;
|
|
165
165
|
let i = P(r);
|
|
166
|
-
return i != null && (
|
|
166
|
+
return i != null && (t(x(e), i), o(S(e))), i;
|
|
167
167
|
}
|
|
168
|
-
function M(e,
|
|
169
|
-
!e || !Number.isFinite(
|
|
168
|
+
function M(e, n) {
|
|
169
|
+
!e || !Number.isFinite(n) || t(x(e), n);
|
|
170
170
|
}
|
|
171
171
|
function N(e) {
|
|
172
|
-
e && (
|
|
172
|
+
e && (o(x(e)), o(S(e)));
|
|
173
173
|
}
|
|
174
174
|
function P(e) {
|
|
175
175
|
let t = typeof e == "number" ? e : parseInt(e, 10);
|
|
@@ -187,13 +187,13 @@ async function te(e) {
|
|
|
187
187
|
}
|
|
188
188
|
var F = (e) => _(`queue-token-${e}`);
|
|
189
189
|
function I(e) {
|
|
190
|
-
return
|
|
190
|
+
return a(F(e), null);
|
|
191
191
|
}
|
|
192
|
-
function L(e,
|
|
193
|
-
|
|
192
|
+
function L(e, n) {
|
|
193
|
+
n && t(F(e), n);
|
|
194
194
|
}
|
|
195
195
|
function R(e) {
|
|
196
|
-
|
|
196
|
+
o(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 n(`/events/${e}/queue`);
|
|
233
233
|
return t.success ? {
|
|
234
234
|
armed: t.data?.armed === !0,
|
|
235
235
|
mode: G(t.data?.mode),
|
|
@@ -242,7 +242,7 @@ async function Y(e) {
|
|
|
242
242
|
}
|
|
243
243
|
async function X(e) {
|
|
244
244
|
try {
|
|
245
|
-
let t = await
|
|
245
|
+
let t = await r(`/events/${e}/queue/join`, {});
|
|
246
246
|
if (!t.success) return {
|
|
247
247
|
success: !1,
|
|
248
248
|
errorCode: t.errorCode || "queue_unavailable",
|
|
@@ -271,21 +271,21 @@ async function Z(e, t) {
|
|
|
271
271
|
errorCode: B
|
|
272
272
|
};
|
|
273
273
|
try {
|
|
274
|
-
let
|
|
275
|
-
if (!
|
|
274
|
+
let r = await n(`/events/${e}/queue/status?token=${encodeURIComponent(t)}`);
|
|
275
|
+
if (!r.success) return {
|
|
276
276
|
success: !1,
|
|
277
|
-
errorCode:
|
|
278
|
-
statusCode:
|
|
277
|
+
errorCode: r.errorCode || "queue_unavailable",
|
|
278
|
+
statusCode: r.statusCode
|
|
279
279
|
};
|
|
280
|
-
let
|
|
281
|
-
return
|
|
280
|
+
let i = J(r.data);
|
|
281
|
+
return i ? {
|
|
282
282
|
success: !0,
|
|
283
|
-
entry:
|
|
284
|
-
statusCode:
|
|
283
|
+
entry: i,
|
|
284
|
+
statusCode: r.statusCode
|
|
285
285
|
} : {
|
|
286
286
|
success: !1,
|
|
287
287
|
errorCode: B,
|
|
288
|
-
statusCode:
|
|
288
|
+
statusCode: r.statusCode
|
|
289
289
|
};
|
|
290
290
|
} catch (e) {
|
|
291
291
|
return z.error("getQueueStatus error:", e), {
|
|
@@ -297,7 +297,7 @@ async function Z(e, t) {
|
|
|
297
297
|
async function ne(e, t) {
|
|
298
298
|
if (!t) return { released: !1 };
|
|
299
299
|
try {
|
|
300
|
-
return { released: (await
|
|
300
|
+
return { released: (await r(`/events/${e}/queue/leave`, { token: t }, {
|
|
301
301
|
keepalive: !0,
|
|
302
302
|
suppressOnError: !0
|
|
303
303
|
})).data?.released === !0 };
|
|
@@ -330,7 +330,7 @@ async function ae() {
|
|
|
330
330
|
}
|
|
331
331
|
async function oe(e) {
|
|
332
332
|
try {
|
|
333
|
-
let t = await
|
|
333
|
+
let t = await n(`/venues/${e}`);
|
|
334
334
|
if (!t.success) throw new c(t.error ?? `API error: ${t.statusCode}`, t.statusCode ?? 0, {
|
|
335
335
|
endpoint: `/venues/${e}`,
|
|
336
336
|
method: "GET"
|
|
@@ -342,13 +342,13 @@ async function oe(e) {
|
|
|
342
342
|
}
|
|
343
343
|
async function $(e = {}, t) {
|
|
344
344
|
try {
|
|
345
|
-
let n = await ae(), { eventID:
|
|
345
|
+
let n = 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
346
|
purchaserIP: n,
|
|
347
|
-
eventID:
|
|
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 r("/orders/create", u, t ? { headers: { "X-Queue-Token": t } } : 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,7 +380,7 @@ async function $(e = {}, t) {
|
|
|
380
380
|
}
|
|
381
381
|
async function se(e) {
|
|
382
382
|
try {
|
|
383
|
-
let t = await
|
|
383
|
+
let t = await n(`/orders/${e}`);
|
|
384
384
|
if (!t.success) {
|
|
385
385
|
let n = t.error ?? `Failed to fetch order (${t.statusCode})`;
|
|
386
386
|
throw Q.error("getOrder error response:", n), new c(n, t.statusCode ?? 0, {
|
|
@@ -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
|
|
400
|
+
let t = new URLSearchParams(window.location.search), n = s(t.get("utm_source")) || "direct";
|
|
401
401
|
try {
|
|
402
|
-
await fetch(`${
|
|
402
|
+
await fetch(`${i()}/utm/${e}/${encodeURIComponent(n)}`);
|
|
403
403
|
} catch (e) {
|
|
404
404
|
ce.error("UTM tracking failed:", e);
|
|
405
405
|
}
|