@getmicdrop/venue-calendar 4.3.30 → 4.3.31
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-BEoyQzGt.js → ArrowLeftIcon-Bg70__J7.js} +1 -1
- package/dist/{BlockPlaceholder-BEiQTRGx.js → BlockPlaceholder-CsW21FJP.js} +1 -1
- package/dist/{Calendar-D27gfN0x.js → Calendar-Cdj7mgsh.js} +60 -60
- package/dist/{CalendarFoundryView-Dy1wY7cG.js → CalendarFoundryView-CtdwX2SN.js} +2597 -2555
- package/dist/{CalendarIcon-DxOagkl5.js → CalendarIcon-BONrcnBR.js} +1 -1
- package/dist/{CartView-B_DCNrDS.js → CartView-B-Jz3AUi.js} +22 -22
- package/dist/{Checkout-CS5GDkWc.js → Checkout-BkH_iHrr.js} +26 -26
- package/dist/{Checkout-Ud28q5Hy.js → Checkout-DmVSDgG4.js} +25 -23
- package/dist/{CheckoutTimer-BP6B5azC.js → CheckoutTimer-BINY0A3o.js} +3 -3
- package/dist/{ChevronDownIcon-DIQAmQyH.js → ChevronDownIcon-SmP1R44t.js} +1 -1
- package/dist/{ClockIcon-CVPj8q7F.js → ClockIcon-DSlKAM02.js} +1 -1
- package/dist/{CloseIcon-BQm8Xs1P.js → CloseIcon-DQQHlbD5.js} +1 -1
- package/dist/{CollectionView-ACiii1J5.js → CollectionView-TQsQUheR.js} +6 -6
- package/dist/{Event-BJlo9YTD.js → Event-DH8R-4F_.js} +114 -114
- package/dist/{EventPage-D1ajrjlw.js → EventPage-Bwnpa90Z.js} +15 -15
- package/dist/{Input-Bpq_mV4s.js → Input-Ycz9fDhr.js} +1 -1
- package/dist/{MailIcon-Wrsqe_uW.js → MailIcon-CR2KJ_jI.js} +1 -1
- package/dist/{PasswordInput-eMxkf9IC.js → PasswordInput-C4CTTEqA.js} +1 -1
- package/dist/{RecommendationsRail-CdP6VhHT.js → RecommendationsRail-CsCk1LQe.js} +15 -15
- package/dist/{ScarcityBadge-D1IzCyTk.js → ScarcityBadge-DsUZ2xMX.js} +3 -3
- package/dist/{SeriesPage-Pq0b5Jfu.js → SeriesPage-D4fTZsB4.js} +3 -3
- package/dist/{Success-3_2VxjV6.js → Success-BRR_lRnL.js} +21 -21
- package/dist/{TagIcon-DAHUalS9.js → TagIcon-D3CUh74q.js} +1 -1
- package/dist/{ViewTicketsEmbed-B0agtnsM.js → ViewTicketsEmbed-ZK8Iq5rE.js} +12 -12
- package/dist/{WarningCircleIcon-u-Y8M0N1.js → WarningCircleIcon-tYCc94E0.js} +1 -1
- package/dist/{WarningTriIcon-DroD8KGE.js → WarningTriIcon-DqbXc4oC.js} +1 -1
- package/dist/{api-Cjp9Xhh9.js → api-Cnjfq1es.js} +100 -100
- package/dist/{constants-D4j-SbUf.js → constants-D-R13SyT.js} +5 -3
- package/dist/{copyToClipboard-CX0-qsMi.js → copyToClipboard-B1J1SpWg.js} +1 -1
- package/dist/{de-BeTte2sb.js → de-CrMbvuuV.js} +3 -1
- package/dist/{de-Jg2pbAJN.js → de-U0ENh7uA.js} +4 -1
- package/dist/{defaultLabels-BgBbv_Mu.js → defaultLabels-Dh-_xfOC.js} +9 -6
- package/dist/{es-vzC7Y0yK.js → es-CmbcTI7U.js} +3 -1
- package/dist/{es-CcYV23YF.js → es-DA7o9qj2.js} +4 -1
- package/dist/{event-transform-B608JYyE.js → event-transform-hOHeTQOK.js} +5 -5
- package/dist/{eventStatusStream-uZrfQOCm.js → eventStatusStream-B5ixh-sc.js} +5 -5
- package/dist/{fr-DqLLRK8z.js → fr-CAQjiRpV.js} +3 -1
- package/dist/{fr-2hbBUueN.js → fr-DgPjnuZh.js} +4 -1
- package/dist/{href-EZSiOTvJ.js → href-CNC_6xMv.js} +2 -2
- package/dist/{i18n-IC1KXPJh.js → i18n-DpEd_A_A.js} +20 -20
- package/dist/i18n-ch8did0h.js +28 -0
- package/dist/{id-YWXdncCA.js → id-Bz5RjCc1.js} +3 -1
- package/dist/{id-42eHQdTZ.js → id-DQfIcnYa.js} +4 -1
- package/dist/{it-CT1Yl7lC.js → it-CqEyhG5r.js} +4 -1
- package/dist/{it-Cun7MBPu.js → it-wMX0iXW-.js} +3 -1
- package/dist/{ja-FpN4x6ay.js → ja-BHzUvYMy.js} +3 -1
- package/dist/{ja-rdY01kpT.js → ja-Cd0WASnp.js} +4 -1
- package/dist/{ko-DzIwez8Z.js → ko-DWXNKxCw.js} +4 -1
- package/dist/{ko-CbeYW3Mt.js → ko-hy8WDqbp.js} +3 -1
- package/dist/locales/{4.3.30 → 4.3.31}/flow/de.js +1 -1
- package/dist/locales/{4.3.30 → 4.3.31}/flow/es.js +1 -1
- package/dist/locales/{4.3.30 → 4.3.31}/flow/fr.js +1 -1
- package/dist/locales/{4.3.30 → 4.3.31}/flow/id.js +1 -1
- package/dist/locales/{4.3.30 → 4.3.31}/flow/it.js +1 -1
- package/dist/locales/{4.3.30 → 4.3.31}/flow/ja.js +1 -1
- package/dist/locales/{4.3.30 → 4.3.31}/flow/ko.js +1 -1
- package/dist/locales/{4.3.30 → 4.3.31}/flow/nl.js +1 -1
- package/dist/locales/{4.3.30 → 4.3.31}/flow/pl.js +1 -1
- package/dist/locales/{4.3.30 → 4.3.31}/flow/pt-br.js +1 -1
- package/dist/locales/{4.3.30 → 4.3.31}/flow/tr.js +1 -1
- package/dist/locales/{4.3.30 → 4.3.31}/flow/zh.js +1 -1
- package/dist/locales/{4.3.30 → 4.3.31}/main/de.js +1 -1
- package/dist/locales/{4.3.30 → 4.3.31}/main/es.js +1 -1
- package/dist/locales/{4.3.30 → 4.3.31}/main/fr.js +1 -1
- package/dist/locales/{4.3.30 → 4.3.31}/main/id.js +1 -1
- package/dist/locales/{4.3.30 → 4.3.31}/main/it.js +1 -1
- package/dist/locales/{4.3.30 → 4.3.31}/main/ja.js +1 -1
- package/dist/locales/{4.3.30 → 4.3.31}/main/ko.js +1 -1
- package/dist/locales/{4.3.30 → 4.3.31}/main/nl.js +1 -1
- package/dist/locales/{4.3.30 → 4.3.31}/main/pl.js +1 -1
- package/dist/locales/{4.3.30 → 4.3.31}/main/pt-br.js +1 -1
- package/dist/locales/{4.3.30 → 4.3.31}/main/tr.js +1 -1
- package/dist/locales/{4.3.30 → 4.3.31}/main/zh.js +1 -1
- package/dist/{navigation-Dh-hGmN9.js → navigation-DXoNc6j6.js} +2 -2
- package/dist/{nl-BOKQEcVS.js → nl-Cm90TgfO.js} +4 -1
- package/dist/{nl-Bp9iDZLQ.js → nl-a59DlSFb.js} +3 -1
- package/dist/{order-totals-CfYOfTyw.js → order-totals-l5tnNv6l.js} +3 -3
- package/dist/{orders-BQRru8sl.js → orders-C3kxHt8s.js} +159 -156
- package/dist/{phoneUtils-DK8ry3Ji.js → phoneUtils-ByD5Mtwg.js} +1 -1
- package/dist/{pixels-CAgpvPd8.js → pixels-DFRBkP2l.js} +8 -8
- package/dist/{pl-Bq365vrl.js → pl-Dmn5DPMF.js} +3 -1
- package/dist/{pl-BbTUCBtu.js → pl-cnMynnV0.js} +4 -1
- package/dist/{promo-aAygcEn7.js → promo-C5E38yvy.js} +1 -1
- package/dist/{pt-br-DqZvFINr.js → pt-br-DA_CwwjY.js} +3 -1
- package/dist/{pt-br-yx3E3bTo.js → pt-br-Dolwtivp.js} +4 -1
- package/dist/{scarcity-Dgvp7aCF.js → scarcity-s5fHFJHw.js} +1 -1
- package/dist/{serverTotals-96Luutwl.js → serverTotals-nOfn0tJD.js} +1 -1
- package/dist/{showcase-state-options-DcNFRj34.js → showcase-state-options-BMxEymob.js} +1 -1
- package/dist/{to-event-card-props-djxhqexI.js → to-event-card-props-BGgDK-2C.js} +94 -124
- package/dist/{tr-B0X8dT0r.js → tr-CSMHipgJ.js} +4 -1
- package/dist/{tr-D-gAL87g.js → tr-DM96GLXF.js} +3 -1
- package/dist/{utils-CDgMSeSc.js → utils-BQ5FDP3S.js} +52 -52
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +907 -907
- package/dist/venue-calendar.iife.js +27 -27
- package/dist/venue-calendar.umd.js +33 -33
- package/dist/{zh-_x9bdFXs.js → zh-BplFGzz_.js} +4 -1
- package/dist/{zh-DcBHN9JC.js → zh-CdWAelYB.js} +3 -1
- package/package.json +2 -2
- package/dist/i18n-BZAWUSFx.js +0 -28
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { E as e } from "./Button-klwKgfhG.js";
|
|
2
|
-
import {
|
|
3
|
-
import "./event-transform-
|
|
2
|
+
import { A as t, J as n, L as r, M as i, N as a, Q as o, X as s, et as c } from "./orders-C3kxHt8s.js";
|
|
3
|
+
import "./event-transform-hOHeTQOK.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 t = {},
|
|
85
|
+
let t = {}, r = {}, i = [], a = "", c = 0, l = {};
|
|
86
86
|
if (typeof window > "u") return {
|
|
87
87
|
quantities: t,
|
|
88
|
-
donationAmounts:
|
|
88
|
+
donationAmounts: r,
|
|
89
89
|
addOnQuantities: l,
|
|
90
|
-
promocode:
|
|
91
|
-
promoDiscountAmount:
|
|
92
|
-
tickets:
|
|
90
|
+
promocode: a,
|
|
91
|
+
promoDiscountAmount: c,
|
|
92
|
+
tickets: i
|
|
93
93
|
};
|
|
94
|
-
let u =
|
|
94
|
+
let u = n(y(e), null);
|
|
95
95
|
if (!u) {
|
|
96
|
-
let t =
|
|
97
|
-
t && (u = t,
|
|
96
|
+
let t = n(b(e), null);
|
|
97
|
+
t && (u = t, o(y(e), t), s(b(e)));
|
|
98
98
|
}
|
|
99
99
|
if (u) return {
|
|
100
100
|
quantities: u.quantities || {},
|
|
@@ -110,33 +110,33 @@ function D(e) {
|
|
|
110
110
|
g.warn("Failed to parse checkout quantities cookie:", e), t = {};
|
|
111
111
|
}
|
|
112
112
|
try {
|
|
113
|
-
|
|
113
|
+
i = 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), i = [];
|
|
116
116
|
}
|
|
117
|
-
return
|
|
117
|
+
return a = m(`checkout-promocode-${e}`) || "", c = parseFloat(m(`checkout-promo-discount-${e}`) || "0"), (Object.keys(t).length > 0 || i.length > 0 || a) && (A({
|
|
118
118
|
eventID: e,
|
|
119
119
|
quantities: t,
|
|
120
|
-
donationAmounts:
|
|
121
|
-
promocode:
|
|
122
|
-
promoDiscountAmount:
|
|
123
|
-
tickets:
|
|
120
|
+
donationAmounts: r,
|
|
121
|
+
promocode: a,
|
|
122
|
+
promoDiscountAmount: c,
|
|
123
|
+
tickets: i
|
|
124
124
|
}), O(e)), {
|
|
125
125
|
quantities: t,
|
|
126
|
-
donationAmounts:
|
|
126
|
+
donationAmounts: r,
|
|
127
127
|
addOnQuantities: l,
|
|
128
|
-
promocode:
|
|
129
|
-
promoDiscountAmount:
|
|
130
|
-
tickets:
|
|
128
|
+
promocode: a,
|
|
129
|
+
promoDiscountAmount: c,
|
|
130
|
+
tickets: i
|
|
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
|
+
s(y(e)), s(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: t, donationAmounts: n, addOnQuantities: r, promocode: i, promoDiscountAmount:
|
|
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,
|
|
@@ -150,26 +150,26 @@ function A({ eventID: e, quantities: t, donationAmounts: n, addOnQuantities: r,
|
|
|
150
150
|
donationAmounts: n || {},
|
|
151
151
|
addOnQuantities: r || {},
|
|
152
152
|
promocode: i || "",
|
|
153
|
-
promoDiscountAmount:
|
|
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 t =
|
|
161
|
+
let t = n(x(e), null);
|
|
162
162
|
if (t != null) return P(t);
|
|
163
|
-
let
|
|
164
|
-
if (
|
|
165
|
-
let
|
|
166
|
-
return
|
|
163
|
+
let r = n(S(e), null);
|
|
164
|
+
if (r == null) return null;
|
|
165
|
+
let i = P(r);
|
|
166
|
+
return i != null && (o(x(e), i), s(S(e))), i;
|
|
167
167
|
}
|
|
168
168
|
function M(e, t) {
|
|
169
|
-
!e || !Number.isFinite(t) ||
|
|
169
|
+
!e || !Number.isFinite(t) || o(x(e), t);
|
|
170
170
|
}
|
|
171
171
|
function N(e) {
|
|
172
|
-
e && (
|
|
172
|
+
e && (s(x(e)), s(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 n(F(e), null);
|
|
191
191
|
}
|
|
192
192
|
function L(e, t) {
|
|
193
|
-
t &&
|
|
193
|
+
t && o(F(e), t);
|
|
194
194
|
}
|
|
195
195
|
function R(e) {
|
|
196
|
-
|
|
196
|
+
s(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 i(`/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 a(`/events/${e}/queue/join`, {});
|
|
246
246
|
if (!t.success) return {
|
|
247
247
|
success: !1,
|
|
248
248
|
errorCode: t.errorCode || "queue_unavailable",
|
|
@@ -271,7 +271,7 @@ async function Z(e, t) {
|
|
|
271
271
|
errorCode: B
|
|
272
272
|
};
|
|
273
273
|
try {
|
|
274
|
-
let n = await
|
|
274
|
+
let n = await i(`/events/${e}/queue/status?token=${encodeURIComponent(t)}`);
|
|
275
275
|
if (!n.success) return {
|
|
276
276
|
success: !1,
|
|
277
277
|
errorCode: n.errorCode || "queue_unavailable",
|
|
@@ -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 a(`/events/${e}/queue/leave`, { token: t }, {
|
|
301
301
|
keepalive: !0,
|
|
302
302
|
suppressOnError: !0
|
|
303
303
|
})).data?.released === !0 };
|
|
@@ -330,25 +330,25 @@ async function ae() {
|
|
|
330
330
|
}
|
|
331
331
|
async function oe(e) {
|
|
332
332
|
try {
|
|
333
|
-
let
|
|
334
|
-
if (!
|
|
333
|
+
let t = await i(`/venues/${e}`);
|
|
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"
|
|
337
337
|
});
|
|
338
|
-
return
|
|
338
|
+
return t.data;
|
|
339
339
|
} catch (e) {
|
|
340
340
|
throw Q.error("getVenueDetails error:", e), e;
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
async function $(e = {}, t) {
|
|
344
344
|
try {
|
|
345
|
-
let n = await ae(), { eventID:
|
|
345
|
+
let n = await ae(), { eventID: r, quantities: i, donationAmounts: o, ...s } = e, c = i ? Object.fromEntries(Object.entries(i).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: r ? parseInt(String(r), 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 a("/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,15 +380,15 @@ async function $(e = {}, t) {
|
|
|
380
380
|
}
|
|
381
381
|
async function se(e) {
|
|
382
382
|
try {
|
|
383
|
-
let
|
|
384
|
-
if (!
|
|
385
|
-
let
|
|
386
|
-
throw Q.error("getOrder error response:",
|
|
383
|
+
let t = await i(`/orders/${e}`);
|
|
384
|
+
if (!t.success) {
|
|
385
|
+
let n = t.error ?? `Failed to fetch order (${t.statusCode})`;
|
|
386
|
+
throw Q.error("getOrder error response:", n), new c(n, t.statusCode ?? 0, {
|
|
387
387
|
endpoint: `/orders/${e}`,
|
|
388
388
|
method: "GET"
|
|
389
389
|
});
|
|
390
390
|
}
|
|
391
|
-
return
|
|
391
|
+
return t.data;
|
|
392
392
|
} catch (e) {
|
|
393
393
|
throw Q.error("getOrder error:", e), e;
|
|
394
394
|
}
|
|
@@ -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 n = new URLSearchParams(window.location.search), i = t(n.get("utm_source")) || "direct";
|
|
401
401
|
try {
|
|
402
|
-
await fetch(`${
|
|
402
|
+
await fetch(`${r()}/utm/${e}/${encodeURIComponent(i)}`);
|
|
403
403
|
} catch (e) {
|
|
404
404
|
ce.error("UTM tracking failed:", e);
|
|
405
405
|
}
|