@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,5 +1,5 @@
|
|
|
1
1
|
import { D as e, E as t, O as n } from "./Button-klwKgfhG.js";
|
|
2
|
-
import { M as r, O as i, a, o, z as s } from "./defaultLabels-
|
|
2
|
+
import { M as r, O as i, a, o, z as s } from "./defaultLabels-BkjXKQDd.js";
|
|
3
3
|
import * as c from "svelte/internal/client";
|
|
4
4
|
//#region node_modules/@getmicdrop/svelte-components/dist/errors/classes/ApiError.js
|
|
5
5
|
var l = class e extends i {
|
|
@@ -72,80 +72,80 @@ function te(e, t) {
|
|
|
72
72
|
e.removeItem(t);
|
|
73
73
|
} catch {}
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function p(e, t, n) {
|
|
76
76
|
return f(u(e), t, n);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function ne(e, t, n) {
|
|
79
79
|
return ee(u(e), t, n);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function re(e, t) {
|
|
82
82
|
te(u(e), t);
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function ie(e, t = null) {
|
|
85
|
+
return p("local", e, t);
|
|
86
|
+
}
|
|
87
|
+
function m(e, t) {
|
|
85
88
|
return ne("local", e, t);
|
|
86
89
|
}
|
|
87
|
-
function
|
|
88
|
-
|
|
90
|
+
function ae(e) {
|
|
91
|
+
re("local", e);
|
|
89
92
|
}
|
|
90
|
-
function
|
|
91
|
-
|
|
93
|
+
function h(e, t = null) {
|
|
94
|
+
return p("session", e, t);
|
|
92
95
|
}
|
|
93
|
-
function
|
|
96
|
+
function g(e, t) {
|
|
94
97
|
return ne("session", e, t);
|
|
95
98
|
}
|
|
96
|
-
function
|
|
97
|
-
|
|
98
|
-
}
|
|
99
|
-
function se(e) {
|
|
100
|
-
ie("session", e);
|
|
99
|
+
function oe(e) {
|
|
100
|
+
re("session", e);
|
|
101
101
|
}
|
|
102
102
|
//#endregion
|
|
103
103
|
//#region src/lib/config.js
|
|
104
|
-
var
|
|
105
|
-
function
|
|
104
|
+
var se = t("VC:config", { enabled: !0 }), _ = null;
|
|
105
|
+
function ce(e) {
|
|
106
106
|
let t = e || null;
|
|
107
|
-
|
|
107
|
+
_ && t && t !== _ && se.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;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
if (
|
|
109
|
+
function v() {
|
|
110
|
+
if (_) return _;
|
|
111
111
|
}
|
|
112
|
-
var
|
|
113
|
-
function
|
|
114
|
-
|
|
112
|
+
var y = null;
|
|
113
|
+
function le(e) {
|
|
114
|
+
y = typeof e == "string" && e.trim() ? e.trim() : null;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
117
|
-
return (
|
|
116
|
+
function ue() {
|
|
117
|
+
return (y || w().baseUrl || "").replace(/\/+$/, "");
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
var
|
|
119
|
+
function de(e) {}
|
|
120
|
+
var b = {
|
|
121
121
|
postMessageOnSuccess: !1,
|
|
122
122
|
postMessageTargetOrigin: null
|
|
123
123
|
};
|
|
124
|
-
function
|
|
125
|
-
|
|
126
|
-
...
|
|
124
|
+
function fe(e = {}) {
|
|
125
|
+
b = {
|
|
126
|
+
...b,
|
|
127
127
|
...e
|
|
128
128
|
};
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
return { ...
|
|
130
|
+
function pe() {
|
|
131
|
+
return { ...b };
|
|
132
132
|
}
|
|
133
133
|
//#endregion
|
|
134
134
|
//#region src/lib/api/client.ts
|
|
135
|
-
var
|
|
136
|
-
function
|
|
137
|
-
return
|
|
138
|
-
|
|
135
|
+
var x = t("VC"), S = /* @__PURE__ */ new Set();
|
|
136
|
+
function me(e) {
|
|
137
|
+
return S.add(e), () => {
|
|
138
|
+
S.delete(e);
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
|
-
function
|
|
142
|
-
if (e) for (let t of
|
|
141
|
+
function he(e) {
|
|
142
|
+
if (e) for (let t of S) try {
|
|
143
143
|
t(e);
|
|
144
144
|
} catch {}
|
|
145
145
|
}
|
|
146
|
-
var
|
|
147
|
-
function
|
|
148
|
-
let n = t ||
|
|
146
|
+
var ge = "ABORTED";
|
|
147
|
+
function _e(e, t) {
|
|
148
|
+
let n = t || v();
|
|
149
149
|
return n ? {
|
|
150
150
|
...e,
|
|
151
151
|
"X-Widget-Key": n
|
|
@@ -171,7 +171,7 @@ var ye = class extends Error {
|
|
|
171
171
|
timeout: 3e4,
|
|
172
172
|
retries: 2,
|
|
173
173
|
retryDelay: 500,
|
|
174
|
-
onError: (e) =>
|
|
174
|
+
onError: (e) => x.error("API Error:", e)
|
|
175
175
|
};
|
|
176
176
|
function be(e) {
|
|
177
177
|
C = {
|
|
@@ -226,7 +226,7 @@ async function A(e, t, n, r) {
|
|
|
226
226
|
try {
|
|
227
227
|
let t = await D(i, {
|
|
228
228
|
method: e,
|
|
229
|
-
headers:
|
|
229
|
+
headers: _e({
|
|
230
230
|
"Content-Type": "application/json",
|
|
231
231
|
...s
|
|
232
232
|
}, a),
|
|
@@ -235,7 +235,7 @@ async function A(e, t, n, r) {
|
|
|
235
235
|
}, C);
|
|
236
236
|
if (!t.ok) {
|
|
237
237
|
let { message: e, code: n } = ve(await t.json().catch(() => ({})), t.status);
|
|
238
|
-
return l(new ye(e, n, t.status)),
|
|
238
|
+
return l(new ye(e, n, t.status)), he(n), {
|
|
239
239
|
success: !1,
|
|
240
240
|
error: e,
|
|
241
241
|
errorCode: n,
|
|
@@ -251,7 +251,7 @@ async function A(e, t, n, r) {
|
|
|
251
251
|
if (r?.signal?.aborted) return {
|
|
252
252
|
success: !1,
|
|
253
253
|
error: "Request aborted",
|
|
254
|
-
errorCode:
|
|
254
|
+
errorCode: ge,
|
|
255
255
|
aborted: !0
|
|
256
256
|
};
|
|
257
257
|
let t = e instanceof Error ? e.name === "AbortError" ? "Request timed out" : e.message : "Unknown error";
|
|
@@ -271,15 +271,15 @@ async function we(e, t) {
|
|
|
271
271
|
try {
|
|
272
272
|
let n = e.startsWith(C.baseUrl), { widgetKey: r, ...i } = t ?? {}, a = await D(e, {
|
|
273
273
|
...i,
|
|
274
|
-
...n ? { headers:
|
|
274
|
+
...n ? { headers: _e(i.headers, r) } : {}
|
|
275
275
|
}, C);
|
|
276
276
|
if (!a.ok) {
|
|
277
277
|
let e = await a.json().catch(() => ({}));
|
|
278
|
-
return
|
|
278
|
+
return x.error(`API request failed: ${a.status}`, e), null;
|
|
279
279
|
}
|
|
280
280
|
return a.json();
|
|
281
281
|
} catch (e) {
|
|
282
|
-
return
|
|
282
|
+
return x.error("API request error:", e), null;
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
//#endregion
|
|
@@ -365,30 +365,30 @@ function Fe(e) {
|
|
|
365
365
|
function Ie(e) {
|
|
366
366
|
H = e;
|
|
367
367
|
}
|
|
368
|
-
function
|
|
368
|
+
function Le() {
|
|
369
369
|
return H;
|
|
370
370
|
}
|
|
371
|
-
function
|
|
371
|
+
function Re() {
|
|
372
372
|
return typeof window < "u" && typeof window.__tcfapi == "function";
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function U() {
|
|
375
375
|
return typeof navigator < "u" && navigator.globalPrivacyControl === !0;
|
|
376
376
|
}
|
|
377
|
-
function
|
|
378
|
-
return H ? !0 : z === null ?
|
|
377
|
+
function ze() {
|
|
378
|
+
return H ? !0 : z === null ? Re() || U() : z;
|
|
379
379
|
}
|
|
380
|
-
function
|
|
381
|
-
return H ? !1 : !
|
|
380
|
+
function W() {
|
|
381
|
+
return H ? !1 : !ze() || B;
|
|
382
382
|
}
|
|
383
|
-
function
|
|
384
|
-
if (V || !
|
|
383
|
+
function Be() {
|
|
384
|
+
if (V || !Re()) return;
|
|
385
385
|
V = !0;
|
|
386
386
|
let e = window.__tcfapi;
|
|
387
387
|
try {
|
|
388
388
|
e("addEventListener", 2, (e, t) => {
|
|
389
389
|
if (!(!t || !e)) {
|
|
390
390
|
if (e.gdprApplies === !1) {
|
|
391
|
-
|
|
391
|
+
U() || (B = !0);
|
|
392
392
|
return;
|
|
393
393
|
}
|
|
394
394
|
if (e.eventStatus === "tcloaded" || e.eventStatus === "useractioncomplete") {
|
|
@@ -401,11 +401,11 @@ function ze() {
|
|
|
401
401
|
}
|
|
402
402
|
//#endregion
|
|
403
403
|
//#region src/lib/tracking/identity.ts
|
|
404
|
-
var
|
|
405
|
-
function
|
|
406
|
-
return typeof e == "string" &&
|
|
404
|
+
var Ve = "micdrop_session_id", G = "micdrop_visitor_id", He = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
|
|
405
|
+
function Ue(e) {
|
|
406
|
+
return typeof e == "string" && He.test(e);
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function We() {
|
|
409
409
|
let e = typeof crypto < "u" ? crypto : void 0;
|
|
410
410
|
if (e?.randomUUID) return e.randomUUID();
|
|
411
411
|
let t = /* @__PURE__ */ new Uint8Array(16);
|
|
@@ -416,20 +416,20 @@ function Ue() {
|
|
|
416
416
|
for (let e = 0; e < 16; e++) n.push(t[e].toString(16).padStart(2, "0"));
|
|
417
417
|
return `${n[0]}${n[1]}${n[2]}${n[3]}-${n[4]}${n[5]}-${n[6]}${n[7]}-${n[8]}${n[9]}-${n[10]}${n[11]}${n[12]}${n[13]}${n[14]}${n[15]}`;
|
|
418
418
|
}
|
|
419
|
-
function
|
|
420
|
-
let e =
|
|
421
|
-
return e || (e =
|
|
419
|
+
function Ge() {
|
|
420
|
+
let e = h(Ve);
|
|
421
|
+
return e || (e = We(), g(Ve, e)), e;
|
|
422
422
|
}
|
|
423
|
-
function
|
|
424
|
-
let t =
|
|
425
|
-
if (
|
|
423
|
+
function Ke(e) {
|
|
424
|
+
let t = ie(G);
|
|
425
|
+
if (Ue(t)) return {
|
|
426
426
|
id: t,
|
|
427
427
|
createdAt: e,
|
|
428
428
|
migrated: !0
|
|
429
429
|
};
|
|
430
430
|
if (t && typeof t == "object") {
|
|
431
431
|
let { id: n, createdAt: r } = t;
|
|
432
|
-
if (!
|
|
432
|
+
if (!Ue(n)) return null;
|
|
433
433
|
let i = typeof r == "number" && Number.isFinite(r), a = i ? Math.min(r, e) : e;
|
|
434
434
|
return {
|
|
435
435
|
id: n,
|
|
@@ -439,23 +439,23 @@ function Ge(e) {
|
|
|
439
439
|
}
|
|
440
440
|
return null;
|
|
441
441
|
}
|
|
442
|
-
function
|
|
443
|
-
if (!
|
|
444
|
-
let e = Date.now(), t =
|
|
445
|
-
if (t && e - t.createdAt < 34128e6) return t.migrated &&
|
|
442
|
+
function K() {
|
|
443
|
+
if (!W()) return null;
|
|
444
|
+
let e = Date.now(), t = Ke(e);
|
|
445
|
+
if (t && e - t.createdAt < 34128e6) return t.migrated && m(G, {
|
|
446
446
|
id: t.id,
|
|
447
447
|
createdAt: t.createdAt
|
|
448
448
|
}), t.id;
|
|
449
|
-
let n =
|
|
450
|
-
return
|
|
449
|
+
let n = We();
|
|
450
|
+
return m(G, {
|
|
451
451
|
id: n,
|
|
452
452
|
createdAt: e
|
|
453
453
|
}), n;
|
|
454
454
|
}
|
|
455
455
|
//#endregion
|
|
456
456
|
//#region src/lib/tracking/attribution-store.ts
|
|
457
|
-
var
|
|
458
|
-
function
|
|
457
|
+
var qe = "micdrop_attribution";
|
|
458
|
+
function Je(e, t) {
|
|
459
459
|
if (!e || !t) return !1;
|
|
460
460
|
try {
|
|
461
461
|
let n = new URL(e).host, r = new URL(t).host;
|
|
@@ -464,26 +464,26 @@ function qe(e, t) {
|
|
|
464
464
|
return !1;
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
|
-
function
|
|
468
|
-
return P(e.utm) ||
|
|
467
|
+
function Ye(e) {
|
|
468
|
+
return P(e.utm) || Je(e.referrer, e.pageUrl);
|
|
469
469
|
}
|
|
470
|
-
function
|
|
471
|
-
let e =
|
|
470
|
+
function Xe() {
|
|
471
|
+
let e = h(qe);
|
|
472
472
|
return !e || !e.utm || typeof e.utm.utmSource != "string" ? null : e;
|
|
473
473
|
}
|
|
474
|
-
function
|
|
475
|
-
let t =
|
|
476
|
-
!t && n ||
|
|
474
|
+
function Ze(e = R()) {
|
|
475
|
+
let t = Ye(e), n = Xe();
|
|
476
|
+
!t && n || g(qe, {
|
|
477
477
|
utm: e.utm,
|
|
478
478
|
referrer: e.referrer,
|
|
479
479
|
marketing: t
|
|
480
480
|
});
|
|
481
481
|
}
|
|
482
|
-
function
|
|
483
|
-
let e =
|
|
482
|
+
function q() {
|
|
483
|
+
let e = Xe() ?? R();
|
|
484
484
|
return {
|
|
485
|
-
sessionId:
|
|
486
|
-
visitorId:
|
|
485
|
+
sessionId: Ge(),
|
|
486
|
+
visitorId: K(),
|
|
487
487
|
utmSource: e.utm.utmSource,
|
|
488
488
|
utmMedium: e.utm.utmMedium,
|
|
489
489
|
utmCampaign: e.utm.utmCampaign,
|
|
@@ -494,7 +494,7 @@ function J() {
|
|
|
494
494
|
}
|
|
495
495
|
//#endregion
|
|
496
496
|
//#region src/lib/tracking/beacon.ts
|
|
497
|
-
var
|
|
497
|
+
var Qe = t("tracking"), $e = /* @__PURE__ */ new Set([
|
|
498
498
|
"chunk_load_error",
|
|
499
499
|
"type_error",
|
|
500
500
|
"reference_error",
|
|
@@ -505,23 +505,19 @@ var Ze = t("tracking"), Qe = /* @__PURE__ */ new Set([
|
|
|
505
505
|
"abort_error",
|
|
506
506
|
"not_supported_error",
|
|
507
507
|
"error"
|
|
508
|
-
]),
|
|
509
|
-
function
|
|
508
|
+
]), et = "other";
|
|
509
|
+
function tt(e) {
|
|
510
510
|
try {
|
|
511
511
|
let t = e instanceof Error || e && typeof e == "object" && "name" in e ? String(e.name ?? "") : "", n = e && typeof e == "object" && "message" in e ? String(e.message ?? "") : "";
|
|
512
512
|
if (t === "ChunkLoadError" || /dynamically imported module/i.test(n)) return "chunk_load_error";
|
|
513
513
|
let r = t.replace(/([a-z0-9])([A-Z])/g, "$1_$2").toLowerCase().replace(/[^a-z0-9_]/g, "");
|
|
514
|
-
return
|
|
514
|
+
return $e.has(r) ? r : et;
|
|
515
515
|
} catch {
|
|
516
|
-
return
|
|
516
|
+
return et;
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
|
-
var
|
|
520
|
-
|
|
521
|
-
"checkout_started",
|
|
522
|
-
"purchase"
|
|
523
|
-
]), nt = "micdrop_tracked_beacons", rt = 300;
|
|
524
|
-
function it(e, t, n, r, i, a, o, s = "") {
|
|
519
|
+
var nt = /* @__PURE__ */ new Set(["add_to_cart", "purchase"]), rt = "micdrop_tracked_beacons", it = 300;
|
|
520
|
+
function at(e, t, n, r, i, a, o, s = "") {
|
|
525
521
|
let c = n || `url:${o}`, l = [
|
|
526
522
|
e,
|
|
527
523
|
t ?? "",
|
|
@@ -532,38 +528,38 @@ function it(e, t, n, r, i, a, o, s = "") {
|
|
|
532
528
|
];
|
|
533
529
|
return s && l.push(s), l.join(":");
|
|
534
530
|
}
|
|
535
|
-
function
|
|
531
|
+
function ot(e) {
|
|
536
532
|
if (e == null || e === "") return null;
|
|
537
533
|
let t = Number(e);
|
|
538
534
|
return Number.isFinite(t) ? t : null;
|
|
539
535
|
}
|
|
540
|
-
function
|
|
541
|
-
let t =
|
|
536
|
+
function st(e) {
|
|
537
|
+
let t = h(rt, []) ?? [];
|
|
542
538
|
if (t.includes(e)) return !0;
|
|
543
539
|
let n = [...t, e];
|
|
544
|
-
return
|
|
545
|
-
}
|
|
546
|
-
async function
|
|
547
|
-
if (typeof window > "u" ||
|
|
548
|
-
let
|
|
549
|
-
if (
|
|
550
|
-
let
|
|
551
|
-
if (!
|
|
552
|
-
let
|
|
540
|
+
return g(rt, n.length > it ? n.slice(-300) : n), !1;
|
|
541
|
+
}
|
|
542
|
+
async function J(e, { eventId: t = null, widgetId: n, venueId: r, error: i, cartId: a } = {}) {
|
|
543
|
+
if (typeof window > "u" || Le()) return;
|
|
544
|
+
let o = R();
|
|
545
|
+
if (Ze(o), e === "link_click" && !P(o.utm)) return;
|
|
546
|
+
let s = Ge(), c = n === void 0 ? Ae() : n;
|
|
547
|
+
if (!(nt.has(e) || e === "checkout_started" && !a) && st(at(e, t, c, o.utm.utmSource, o.utm.utmCampaign, s, o.pageUrl, i ? `${i.stage}:${i.errName}` : a ? `cart:${a}` : ""))) return;
|
|
548
|
+
let l = r === void 0 ? je() : r, u = W(), d = {
|
|
553
549
|
eventType: e,
|
|
554
|
-
eventId:
|
|
555
|
-
venueId:
|
|
556
|
-
widgetId:
|
|
557
|
-
utmSource:
|
|
558
|
-
utmMedium:
|
|
559
|
-
utmCampaign:
|
|
560
|
-
utmContent:
|
|
561
|
-
utmTerm:
|
|
562
|
-
sessionId:
|
|
563
|
-
visitorId:
|
|
550
|
+
eventId: ot(t),
|
|
551
|
+
venueId: ot(l),
|
|
552
|
+
widgetId: c,
|
|
553
|
+
utmSource: o.utm.utmSource,
|
|
554
|
+
utmMedium: o.utm.utmMedium,
|
|
555
|
+
utmCampaign: o.utm.utmCampaign,
|
|
556
|
+
utmContent: o.utm.utmContent,
|
|
557
|
+
utmTerm: o.utm.utmTerm,
|
|
558
|
+
sessionId: s,
|
|
559
|
+
visitorId: K(),
|
|
564
560
|
deviceType: Ne(),
|
|
565
|
-
referrer:
|
|
566
|
-
pageUrl:
|
|
561
|
+
referrer: u ? o.referrer : "",
|
|
562
|
+
pageUrl: u ? o.pageUrl : "",
|
|
567
563
|
...i ? {
|
|
568
564
|
errName: i.errName,
|
|
569
565
|
stage: i.stage
|
|
@@ -573,46 +569,51 @@ async function Y(e, { eventId: t = null, widgetId: n, venueId: r, error: i } = {
|
|
|
573
569
|
await fetch(`${T()}/track/pageview`, {
|
|
574
570
|
method: "POST",
|
|
575
571
|
headers: { "Content-Type": "application/json" },
|
|
576
|
-
body: JSON.stringify(
|
|
572
|
+
body: JSON.stringify(d),
|
|
577
573
|
keepalive: !0
|
|
578
574
|
});
|
|
579
575
|
} catch (t) {
|
|
580
|
-
|
|
576
|
+
Qe.error(`Beacon '${e}' failed:`, t);
|
|
581
577
|
}
|
|
582
578
|
}
|
|
583
|
-
var
|
|
579
|
+
var ct = (e, t) => J("link_click", {
|
|
584
580
|
widgetId: e,
|
|
585
581
|
venueId: t
|
|
586
|
-
}),
|
|
582
|
+
}), lt = (e, t) => J("widget_load", {
|
|
587
583
|
widgetId: e,
|
|
588
584
|
venueId: t
|
|
589
|
-
}),
|
|
585
|
+
}), ut = (e, t) => J("list_view", {
|
|
590
586
|
widgetId: e,
|
|
591
587
|
venueId: t
|
|
592
|
-
}),
|
|
588
|
+
}), dt = (e, t, n) => J("event_view", {
|
|
593
589
|
eventId: e,
|
|
594
590
|
widgetId: t,
|
|
595
591
|
venueId: n
|
|
596
|
-
}),
|
|
592
|
+
}), ft = (e, t, n) => J("add_to_cart", {
|
|
597
593
|
eventId: e,
|
|
598
594
|
widgetId: t,
|
|
599
595
|
venueId: n
|
|
600
|
-
}),
|
|
596
|
+
}), pt = (e, t, n, r) => J("checkout_started", {
|
|
597
|
+
eventId: e,
|
|
598
|
+
widgetId: t,
|
|
599
|
+
venueId: n,
|
|
600
|
+
cartId: r
|
|
601
|
+
}), mt = (e, t, n) => J("price_unavailable", {
|
|
601
602
|
eventId: e,
|
|
602
603
|
widgetId: t,
|
|
603
604
|
venueId: n
|
|
604
|
-
}),
|
|
605
|
+
}), ht = (e, t, n) => J("purchase", {
|
|
605
606
|
eventId: e,
|
|
606
607
|
widgetId: t,
|
|
607
608
|
venueId: n
|
|
608
609
|
});
|
|
609
|
-
function
|
|
610
|
+
function gt(e, t, n, r) {
|
|
610
611
|
try {
|
|
611
|
-
|
|
612
|
+
J("widget_error", {
|
|
612
613
|
widgetId: n,
|
|
613
614
|
venueId: r,
|
|
614
615
|
error: {
|
|
615
|
-
errName:
|
|
616
|
+
errName: tt(e),
|
|
616
617
|
stage: t
|
|
617
618
|
}
|
|
618
619
|
}).catch(() => {});
|
|
@@ -620,7 +621,7 @@ function mt(e, t, n, r) {
|
|
|
620
621
|
}
|
|
621
622
|
//#endregion
|
|
622
623
|
//#region src/lib/api/transformers/cart.ts
|
|
623
|
-
function
|
|
624
|
+
function _t(e) {
|
|
624
625
|
let t = e ?? {};
|
|
625
626
|
return {
|
|
626
627
|
ticketID: Number(t.TicketID ?? t.ticketID ?? 0),
|
|
@@ -629,7 +630,7 @@ function ht(e) {
|
|
|
629
630
|
status: String(t.Status ?? t.status ?? "")
|
|
630
631
|
};
|
|
631
632
|
}
|
|
632
|
-
function
|
|
633
|
+
function vt(e) {
|
|
633
634
|
let t = e ?? {}, n = t.Amount ?? t.amount, i = Number(n);
|
|
634
635
|
return {
|
|
635
636
|
giftCardId: Number(t.GiftCardID ?? t.giftCardId ?? 0),
|
|
@@ -637,32 +638,32 @@ function gt(e) {
|
|
|
637
638
|
amount: n == null || !Number.isFinite(i) ? null : r(s(i))
|
|
638
639
|
};
|
|
639
640
|
}
|
|
640
|
-
function
|
|
641
|
+
function yt(e) {
|
|
641
642
|
let t = e ?? {};
|
|
642
643
|
return {
|
|
643
644
|
uuid: t.UUID ?? t.uuid ?? "",
|
|
644
645
|
eventID: Number(t.EventID ?? t.eventID ?? 0),
|
|
645
646
|
status: t.Status ?? t.status ?? "",
|
|
646
647
|
expiresAt: t.ExpiresAt ?? t.expiresAt ?? "",
|
|
647
|
-
reservations: (t.Reservations ?? t.reservations ?? []).map(
|
|
648
|
-
giftCards: (t.GiftCards ?? t.giftCards ?? []).map(
|
|
648
|
+
reservations: (t.Reservations ?? t.reservations ?? []).map(_t),
|
|
649
|
+
giftCards: (t.GiftCards ?? t.giftCards ?? []).map(vt)
|
|
649
650
|
};
|
|
650
651
|
}
|
|
651
652
|
//#endregion
|
|
652
653
|
//#region src/lib/i18n/localeLoader.svelte.js
|
|
653
|
-
var
|
|
654
|
-
function
|
|
655
|
-
return c.get(
|
|
654
|
+
var Y = c.state(0);
|
|
655
|
+
function bt() {
|
|
656
|
+
return c.get(Y);
|
|
656
657
|
}
|
|
657
|
-
function
|
|
658
|
-
c.set(
|
|
658
|
+
function xt() {
|
|
659
|
+
c.set(Y, c.get(Y) + 1);
|
|
659
660
|
}
|
|
660
661
|
//#endregion
|
|
661
662
|
//#region src/lib/i18n/createI18n.js
|
|
662
|
-
function
|
|
663
|
+
function X() {
|
|
663
664
|
return typeof navigator > "u" ? null : navigator.language || navigator.userLanguage || null;
|
|
664
665
|
}
|
|
665
|
-
function
|
|
666
|
+
function St({ defaults: e, locales: t = {}, loaders: r = {} }) {
|
|
666
667
|
let i = t.en ?? e, a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
|
|
667
668
|
function s(e) {
|
|
668
669
|
return t[e] ? t[e] : a.has(e) ? a.get(e) : null;
|
|
@@ -673,11 +674,11 @@ function bt({ defaults: e, locales: t = {}, loaders: r = {} }) {
|
|
|
673
674
|
if (o.has(e)) return o.get(e);
|
|
674
675
|
let n = r[e];
|
|
675
676
|
if (!n) return Promise.resolve(null);
|
|
676
|
-
let i = Promise.resolve().then(n).then((t) => (a.set(e, t),
|
|
677
|
+
let i = Promise.resolve().then(n).then((t) => (a.set(e, t), xt(), t));
|
|
677
678
|
return i.catch(() => o.delete(e)), o.set(e, i), i;
|
|
678
679
|
}
|
|
679
680
|
function l(e) {
|
|
680
|
-
if (
|
|
681
|
+
if (bt(), !e || typeof e != "string") return {
|
|
681
682
|
labels: i,
|
|
682
683
|
locale: "en"
|
|
683
684
|
};
|
|
@@ -700,7 +701,7 @@ function bt({ defaults: e, locales: t = {}, loaders: r = {} }) {
|
|
|
700
701
|
});
|
|
701
702
|
}
|
|
702
703
|
function u(t = void 0, r = {}) {
|
|
703
|
-
let { labels: i } = l(t ||
|
|
704
|
+
let { labels: i } = l(t || X() || "en");
|
|
704
705
|
return n(n(e, i), r);
|
|
705
706
|
}
|
|
706
707
|
function d(e) {
|
|
@@ -722,7 +723,7 @@ function bt({ defaults: e, locales: t = {}, loaders: r = {} }) {
|
|
|
722
723
|
}
|
|
723
724
|
//#endregion
|
|
724
725
|
//#region src/lib/i18n/localeSpec.js
|
|
725
|
-
var
|
|
726
|
+
var Ct = [
|
|
726
727
|
[
|
|
727
728
|
"es",
|
|
728
729
|
"es",
|
|
@@ -789,20 +790,20 @@ var xt = [
|
|
|
789
790
|
"pl"
|
|
790
791
|
]
|
|
791
792
|
];
|
|
792
|
-
Array.from(new Set(
|
|
793
|
+
Array.from(new Set(Ct.map(([, e]) => e)));
|
|
793
794
|
//#endregion
|
|
794
795
|
//#region src/lib/i18n/buyerLocale.ts
|
|
795
|
-
var
|
|
796
|
+
var Z = new Map([["en", "en"], ...Ct.map(([e]) => [e, e === "pt" || e === "pt-br" ? "pt-BR" : e])]);
|
|
796
797
|
function Q(e) {
|
|
797
|
-
let t = e ||
|
|
798
|
+
let t = e || X();
|
|
798
799
|
if (!t || typeof t != "string") return;
|
|
799
800
|
let n = t.toLowerCase();
|
|
800
|
-
return
|
|
801
|
+
return Z.get(n) ?? Z.get(n.split("-")[0]);
|
|
801
802
|
}
|
|
802
803
|
//#endregion
|
|
803
804
|
//#region src/lib/api/orders.ts
|
|
804
805
|
var $ = t("VC");
|
|
805
|
-
async function
|
|
806
|
+
async function wt(e, t, n, r, i) {
|
|
806
807
|
let a = Q(i);
|
|
807
808
|
try {
|
|
808
809
|
let i = await k(`${E()}/cart/${e}/payment-intent`, {
|
|
@@ -816,7 +817,7 @@ async function Ct(e, t, n, r, i) {
|
|
|
816
817
|
questionAnswer: r.questionAnswer ?? "",
|
|
817
818
|
mailingList: r.mailingList ?? !1
|
|
818
819
|
} : {},
|
|
819
|
-
attribution:
|
|
820
|
+
attribution: q(),
|
|
820
821
|
...a ? { locale: a } : {}
|
|
821
822
|
});
|
|
822
823
|
if (!i.success) throw $.error("Payment intent creation failed:", i.error), new l(i.error || "Failed to create payment intent", i.statusCode ?? 0, {
|
|
@@ -828,12 +829,12 @@ async function Ct(e, t, n, r, i) {
|
|
|
828
829
|
return $.error("createPaymentIntent error:", e), null;
|
|
829
830
|
}
|
|
830
831
|
}
|
|
831
|
-
async function
|
|
832
|
+
async function Tt(e, t) {
|
|
832
833
|
if (!e) return null;
|
|
833
834
|
try {
|
|
834
835
|
let n = await O(`${E()}/cart/${e}`);
|
|
835
836
|
if (!n.success) return null;
|
|
836
|
-
let { uuid: r, eventID: i, status: a, expiresAt: o, reservations: s, giftCards: c } =
|
|
837
|
+
let { uuid: r, eventID: i, status: a, expiresAt: o, reservations: s, giftCards: c } = yt(n.data);
|
|
837
838
|
return a !== "reserved" && a !== "active" || t !== void 0 && i !== Number(t) ? null : {
|
|
838
839
|
uuid: r,
|
|
839
840
|
eventID: i,
|
|
@@ -846,7 +847,7 @@ async function wt(e, t) {
|
|
|
846
847
|
return $.error("getCartByUUID error:", e), null;
|
|
847
848
|
}
|
|
848
849
|
}
|
|
849
|
-
async function
|
|
850
|
+
async function Et(e, t, n) {
|
|
850
851
|
try {
|
|
851
852
|
let r = {};
|
|
852
853
|
for (let [e, n] of Object.entries(t)) {
|
|
@@ -875,7 +876,7 @@ async function Tt(e, t, n) {
|
|
|
875
876
|
return $.error("updateCartQuantities error:", e), !1;
|
|
876
877
|
}
|
|
877
878
|
}
|
|
878
|
-
async function
|
|
879
|
+
async function Dt(e, t = "") {
|
|
879
880
|
try {
|
|
880
881
|
let n = await k(`${T()}/orders/${e}/refund`, { message: t });
|
|
881
882
|
return n.success ? { success: !0 } : ($.error("Refund request failed:", n.error), {
|
|
@@ -889,12 +890,12 @@ async function Et(e, t = "") {
|
|
|
889
890
|
};
|
|
890
891
|
}
|
|
891
892
|
}
|
|
892
|
-
async function
|
|
893
|
+
async function Ot(e, t, n) {
|
|
893
894
|
let r = Q(n);
|
|
894
895
|
try {
|
|
895
896
|
let n = await k(`${E()}/validatePaymentIntent/${e}`, {
|
|
896
897
|
...t,
|
|
897
|
-
attribution:
|
|
898
|
+
attribution: q(),
|
|
898
899
|
...r ? { locale: r } : {}
|
|
899
900
|
});
|
|
900
901
|
if (!n.success) return $.error("Payment validation failed:", n.error), {
|
|
@@ -917,7 +918,7 @@ async function Dt(e, t, n) {
|
|
|
917
918
|
return $.error("validatePaymentIntent error:", e), null;
|
|
918
919
|
}
|
|
919
920
|
}
|
|
920
|
-
async function
|
|
921
|
+
async function kt(e) {
|
|
921
922
|
try {
|
|
922
923
|
let t = await k(`${T()}/orders/extend-session`, { orderUuid: e });
|
|
923
924
|
if (!t.success) return {
|
|
@@ -938,7 +939,7 @@ async function Ot(e) {
|
|
|
938
939
|
};
|
|
939
940
|
}
|
|
940
941
|
}
|
|
941
|
-
async function
|
|
942
|
+
async function At(e) {
|
|
942
943
|
try {
|
|
943
944
|
let t = await O(`${T()}/orders/session/${e}`);
|
|
944
945
|
if (!t.success) return {
|
|
@@ -959,4 +960,4 @@ async function kt(e) {
|
|
|
959
960
|
}
|
|
960
961
|
}
|
|
961
962
|
//#endregion
|
|
962
|
-
export {
|
|
963
|
+
export { m as $, M as A, we as B, Le as C, Be as D, Ie as E, be as F, fe as G, pe as H, w as I, ce as J, le as K, E as L, Se as M, O as N, ke as O, k as P, oe as Q, T as R, W as S, Pe as T, ue as U, Ce as V, v as W, h as X, ie as Y, ae as Z, ht as _, Dt as a, q as b, Q as c, ft as d, g as et, pt as f, mt as g, ut as h, At as i, N as j, Oe as k, St as l, ct as m, kt as n, Et as o, dt as p, de as q, Tt as r, Ot as s, wt as t, l as tt, X as u, gt as v, Fe as w, K as x, lt as y, me as z };
|