@getmicdrop/venue-calendar 4.3.23 → 4.3.25
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-I5Ui2MMv.js → ArrowLeftIcon-BEoyQzGt.js} +1 -1
- package/dist/{BlockPlaceholder-CwJDSlRr.js → BlockPlaceholder-BEiQTRGx.js} +1 -1
- package/dist/{Calendar-BDxdp1v2.js → Calendar-iTWNcPZK.js} +236 -230
- package/dist/{CalendarFoundryView-BhyEWlgT.js → CalendarFoundryView-CdpyX54O.js} +67 -63
- package/dist/{CalendarIcon-iKBZIhcT.js → CalendarIcon-DxOagkl5.js} +1 -1
- package/dist/CartView-DSSU-0-_.js +2245 -0
- package/dist/{Checkout-BDKHhmry.js → Checkout-7yLVA4hl.js} +247 -247
- package/dist/Checkout-CSLSP9pn.js +1845 -0
- package/dist/{CheckoutTimer-Bq2I13Ae.js → CheckoutTimer-Dxct5HmQ.js} +5 -5
- package/dist/{ChevronDownIcon-BfAxe9v2.js → ChevronDownIcon-DIQAmQyH.js} +1 -1
- package/dist/{ClockIcon-nFiAeDJe.js → ClockIcon-CVPj8q7F.js} +1 -1
- package/dist/{CloseIcon-DvKvCZWt.js → CloseIcon-BQm8Xs1P.js} +1 -1
- package/dist/{CollectionView-Bec8fJQA.js → CollectionView-Ts2WvCFr.js} +6 -6
- package/dist/{Event-K1P6JhKj.js → Event-DX0I8oGA.js} +658 -617
- package/dist/{EventPage-Yvui8CAC.js → EventPage-DR1G4PGV.js} +295 -262
- package/dist/{Input-CwFaXbO6.js → Input-Bpq_mV4s.js} +1 -1
- package/dist/{MailIcon-BRBkliz8.js → MailIcon-Wrsqe_uW.js} +1 -1
- package/dist/{PasswordInput-DsnCCqzu.js → PasswordInput-eMxkf9IC.js} +1 -1
- package/dist/{RecommendationsRail-D_JcJEX0.js → RecommendationsRail-Bxj7iK68.js} +119 -117
- package/dist/{ScarcityBadge-Bik8VKze.js → ScarcityBadge-D1IzCyTk.js} +3 -3
- package/dist/{SeriesPage-BAqPdsgR.js → SeriesPage-DCTxtpMx.js} +3 -3
- package/dist/{Success-CSZ6OYWj.js → Success-Di5qC4Op.js} +17 -17
- package/dist/{TagIcon-BlkIiP6A.js → TagIcon-DAHUalS9.js} +1 -1
- package/dist/{ViewTicketsEmbed-D1JmKNf1.js → ViewTicketsEmbed-B0agtnsM.js} +33 -33
- package/dist/{WarningCircleIcon-mcDExvi6.js → WarningCircleIcon-u-Y8M0N1.js} +1 -1
- package/dist/{WarningTriIcon-KJ6AJZhg.js → WarningTriIcon-DroD8KGE.js} +1 -1
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.mjs +283 -280
- package/dist/api/cta.d.ts +4 -0
- package/dist/api/types.d.ts +3 -1
- package/dist/{api-Bv-5UTvm.js → api-DxEN4thz.js} +79 -79
- package/dist/{constants-Dkkkks8H.js → constants-DuFw4kZc.js} +2 -1
- package/dist/{copyToClipboard-DGHxXO-R.js → copyToClipboard-CX0-qsMi.js} +1 -1
- package/dist/{de-CzupmMIa.js → de-BnjqU4K3.js} +1 -0
- package/dist/{defaultLabels-DP7tY9Pg.js → defaultLabels-BgBbv_Mu.js} +243 -234
- package/dist/{es-B-vQxM9Z.js → es-BJSttnC2.js} +1 -0
- package/dist/{event-transform-CQxO_ACI.js → event-transform-y9eZBvZJ.js} +9 -9
- package/dist/{eventStatusStream-CJodQtGK.js → eventStatusStream-uZrfQOCm.js} +1 -1
- package/dist/{fr-B2g-kG7i.js → fr-DqfagdtN.js} +1 -0
- package/dist/{href-B0sNxICB.js → href-EZSiOTvJ.js} +2 -2
- package/dist/{i18n-D6loEmFz.js → i18n-BZAWUSFx.js} +2 -2
- package/dist/i18n-CK8CaXLk.js +560 -0
- package/dist/{id-Dgu5-FC6.js → id-B1c1JsNl.js} +1 -0
- package/dist/{it-C580sMYp.js → it-DiFjoVSe.js} +1 -0
- package/dist/{ja-DLki4zXU.js → ja-CfeBSXBd.js} +1 -0
- package/dist/{ko-BUcfb1Gi.js → ko-DIjhPkQ7.js} +1 -0
- package/dist/locales/4.3.25/flow/de.js +1 -0
- package/dist/locales/4.3.25/flow/es.js +1 -0
- package/dist/locales/4.3.25/flow/fr.js +1 -0
- package/dist/locales/4.3.25/flow/id.js +1 -0
- package/dist/locales/4.3.25/flow/it.js +1 -0
- package/dist/locales/4.3.25/flow/ja.js +1 -0
- package/dist/locales/4.3.25/flow/ko.js +1 -0
- package/dist/locales/4.3.25/flow/nl.js +1 -0
- package/dist/locales/{4.3.23 → 4.3.25}/flow/pl.js +1 -1
- package/dist/locales/4.3.25/flow/pt-br.js +1 -0
- package/dist/locales/{4.3.23 → 4.3.25}/flow/tr.js +1 -1
- package/dist/locales/4.3.25/flow/zh.js +1 -0
- package/dist/{navigation-CJ403ByO.js → navigation-Dh-hGmN9.js} +2 -2
- package/dist/{nl-CivAQA0D.js → nl-DH8ATeT-.js} +1 -0
- package/dist/{order-totals-sQNKjXcZ.js → order-totals-CfYOfTyw.js} +4 -4
- package/dist/{orders-D1dybiYD.js → orders-BQRru8sl.js} +3 -3
- package/dist/{phoneUtils-B_9g7GJj.js → phoneUtils-DK8ry3Ji.js} +1 -1
- package/dist/{pixels-BMkfBngV.js → pixels-CAgpvPd8.js} +2 -2
- package/dist/{pl-C5VwFH2B.js → pl-DHSf0Tay.js} +1 -0
- package/dist/{promo-lMaGYLo-.js → promo-aAygcEn7.js} +3 -3
- package/dist/{pt-br-B0w9dhVB.js → pt-br-bUE81YH0.js} +1 -0
- package/dist/{scarcity-CZEPC-UR.js → scarcity-Dgvp7aCF.js} +67 -67
- package/dist/seo/seo.cjs +1 -1
- package/dist/seo/seo.mjs +50 -43
- package/dist/{serverTotals-BWRzJsle.js → serverTotals-96Luutwl.js} +8 -8
- package/dist/{showcase-state-options-CEKhIK66.js → showcase-state-options-DcNFRj34.js} +1 -1
- package/dist/{to-event-card-props-DUWp0etY.js → to-event-card-props-CgUk4zJ7.js} +31 -29
- package/dist/{tr-LGkP5gpA.js → tr--NLWW7qi.js} +1 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/{utils-CuLU8uyA.js → utils-CiFOOjQd.js} +72 -69
- package/dist/venue-calendar.es.js +1228 -1164
- package/dist/venue-calendar.iife.js +52 -52
- package/dist/venue-calendar.umd.js +49 -49
- package/dist/{zh-D2ZAdq3T.js → zh-ZYCR67Kf.js} +1 -0
- package/package.json +2 -2
- package/dist/CartView-9PGGgyk_.js +0 -2245
- package/dist/Checkout-BP3JTPsO.js +0 -1845
- package/dist/i18n-CMpXpjPv.js +0 -544
- package/dist/locales/4.3.23/flow/de.js +0 -1
- package/dist/locales/4.3.23/flow/es.js +0 -1
- package/dist/locales/4.3.23/flow/fr.js +0 -1
- package/dist/locales/4.3.23/flow/id.js +0 -1
- package/dist/locales/4.3.23/flow/it.js +0 -1
- package/dist/locales/4.3.23/flow/ja.js +0 -1
- package/dist/locales/4.3.23/flow/ko.js +0 -1
- package/dist/locales/4.3.23/flow/nl.js +0 -1
- package/dist/locales/4.3.23/flow/pt-br.js +0 -1
- package/dist/locales/4.3.23/flow/zh.js +0 -1
- /package/dist/locales/{4.3.23 → 4.3.25}/main/de.js +0 -0
- /package/dist/locales/{4.3.23 → 4.3.25}/main/es.js +0 -0
- /package/dist/locales/{4.3.23 → 4.3.25}/main/fr.js +0 -0
- /package/dist/locales/{4.3.23 → 4.3.25}/main/id.js +0 -0
- /package/dist/locales/{4.3.23 → 4.3.25}/main/it.js +0 -0
- /package/dist/locales/{4.3.23 → 4.3.25}/main/ja.js +0 -0
- /package/dist/locales/{4.3.23 → 4.3.25}/main/ko.js +0 -0
- /package/dist/locales/{4.3.23 → 4.3.25}/main/nl.js +0 -0
- /package/dist/locales/{4.3.23 → 4.3.25}/main/pl.js +0 -0
- /package/dist/locales/{4.3.23 → 4.3.25}/main/pt-br.js +0 -0
- /package/dist/locales/{4.3.23 → 4.3.25}/main/tr.js +0 -0
- /package/dist/locales/{4.3.23 → 4.3.25}/main/zh.js +0 -0
package/dist/api/cta.d.ts
CHANGED
|
@@ -29,6 +29,10 @@ interface CtaEvent {
|
|
|
29
29
|
* read through here would answer with the wrong dial.
|
|
30
30
|
*/
|
|
31
31
|
salesStatus?: string | null;
|
|
32
|
+
/** The venue's IANA timezone — the "On sale …" label reads in it. Detail
|
|
33
|
+
* events spell it `timezone`, the browse projection `timeZone`. */
|
|
34
|
+
timezone?: string | null;
|
|
35
|
+
timeZone?: string | null;
|
|
32
36
|
}
|
|
33
37
|
interface CtaTicket {
|
|
34
38
|
salesChannel?: number;
|
package/dist/api/types.d.ts
CHANGED
|
@@ -517,7 +517,9 @@ export interface PublicCollectionData {
|
|
|
517
517
|
endDateTime?: string;
|
|
518
518
|
image?: string;
|
|
519
519
|
status?: string;
|
|
520
|
-
|
|
520
|
+
timeZone?: string;
|
|
521
|
+
timezone?: string;
|
|
522
|
+
venue?: { name: string; timeZone?: string; timezone?: string };
|
|
521
523
|
minPrice?: number;
|
|
522
524
|
}>;
|
|
523
525
|
// Password-gate variant: a protected collection responds with a gate signal
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import { E as e } from "./Button-klwKgfhG.js";
|
|
2
|
-
import { w as t } from "./scarcity-
|
|
3
|
-
import {
|
|
4
|
-
import { A as f, F as p, I as m, M as h, R as g, c as
|
|
2
|
+
import { w as t } from "./scarcity-Dgvp7aCF.js";
|
|
3
|
+
import { A as n, M as r, O as i, _ as a, c as o, g as s, l as c, v as l, x as u, z as d } from "./defaultLabels-BgBbv_Mu.js";
|
|
4
|
+
import { A as f, F as p, I as m, M as h, R as g, c as ee, j as _, y as te } from "./orders-BQRru8sl.js";
|
|
5
5
|
//#region node_modules/@getmicdrop/svelte-components/dist/transforms/ticket.js
|
|
6
|
-
var
|
|
6
|
+
var v = {
|
|
7
7
|
EVERYWHERE: 0,
|
|
8
8
|
ONLINE_ONLY: 1,
|
|
9
9
|
BOX_OFFICE_ONLY: 2
|
|
10
|
-
},
|
|
10
|
+
}, y = {
|
|
11
11
|
VISIBLE: 0,
|
|
12
12
|
HIDDEN: 1,
|
|
13
13
|
PROMO_ONLY: 2
|
|
14
14
|
};
|
|
15
|
-
function
|
|
15
|
+
function b(e) {
|
|
16
16
|
return e.soldOut === !0 ? 0 : e.remainingCapacity == null ? e.quantityRemaining == null ? e.quantity == null ? e.sold != null && e.totalCapacity != null ? Math.max(0, e.totalCapacity - e.sold) : 0 : e.quantity : e.quantityRemaining : e.remainingCapacity;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function x(e, t) {
|
|
19
19
|
return e.totalCapacity ?? e.quantity ?? t;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
22
|
-
let t = n(), r =
|
|
23
|
-
if (!
|
|
24
|
-
if (!
|
|
25
|
-
if (
|
|
26
|
-
if (
|
|
21
|
+
function S(e) {
|
|
22
|
+
let t = n(), r = a(e.effectiveSalesBegin, e.salesBegin, e.saleStartDate) ?? null, i = a(e.effectiveSalesEnd, e.salesEnd, e.saleEndDate) ?? null, o = u(r), c = u(i);
|
|
23
|
+
if (!l(r) && !o) return "scheduled";
|
|
24
|
+
if (!l(i) && !c) return "sales_ended";
|
|
25
|
+
if (o && s(t, o) < 0) return "scheduled";
|
|
26
|
+
if (c && s(t, c) > 0) return "sales_ended";
|
|
27
27
|
if (e.soldOut === !0) return "sold_out";
|
|
28
|
-
let d =
|
|
28
|
+
let d = b(e), f = x(e, d);
|
|
29
29
|
return d === 0 ? "sold_out" : f > 0 && d / f < .1 ? "low" : "on_sale";
|
|
30
30
|
}
|
|
31
31
|
function ne(e, t = {}) {
|
|
32
32
|
if (!Array.isArray(e)) return [];
|
|
33
33
|
let n = e;
|
|
34
|
-
return t.excludeDoorOnly && (n = n.filter((e) => e.salesChannel !==
|
|
34
|
+
return t.excludeDoorOnly && (n = n.filter((e) => e.salesChannel !== v.BOX_OFFICE_ONLY)), t.publicOnly && (n = n.filter((e) => e.visibility === y.VISIBLE)), n;
|
|
35
35
|
}
|
|
36
36
|
function C(e) {
|
|
37
37
|
if (!Array.isArray(e) || e.length === 0) return {
|
|
@@ -41,8 +41,8 @@ function C(e) {
|
|
|
41
41
|
};
|
|
42
42
|
let t = 0, n = 0;
|
|
43
43
|
for (let r of e) {
|
|
44
|
-
let e =
|
|
45
|
-
t += e, n +=
|
|
44
|
+
let e = b(r);
|
|
45
|
+
t += e, n += x(r, e);
|
|
46
46
|
}
|
|
47
47
|
return {
|
|
48
48
|
totalRemaining: t,
|
|
@@ -61,9 +61,9 @@ function T(e) {
|
|
|
61
61
|
return e.availableTickets || e.available_tickets || e.tickets || [];
|
|
62
62
|
}
|
|
63
63
|
function E(e) {
|
|
64
|
-
if (!e || !(e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >=
|
|
65
|
-
let t = n(), r =
|
|
66
|
-
if (!
|
|
64
|
+
if (!e || !(e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >= y.PROMO_ONLY) || e.salesChannel === v.BOX_OFFICE_ONLY) return !1;
|
|
65
|
+
let t = n(), r = a(e.effectiveSalesBegin, e.salesBegin, e.salesStart, e.saleBegin, e.onSaleStart, e.saleStartDate), i = a(e.effectiveSalesEnd, e.salesEnd, e.saleEnd, e.onSaleEnd, e.saleEndDate), o = u(r), c = u(i);
|
|
66
|
+
if (!l(r) && !o || !l(i) && !c || o && s(o, t) > 0 || c && s(c, t) < 0) return !1;
|
|
67
67
|
let d = e.remainingCapacity ?? e.quantityRemaining ?? e.quantity;
|
|
68
68
|
return !(e.soldOut || d != null && d <= 0);
|
|
69
69
|
}
|
|
@@ -85,7 +85,7 @@ var D = class extends i {
|
|
|
85
85
|
}), this.name = "NotFoundError", this.resourceType = e, this.resourceId = t;
|
|
86
86
|
}
|
|
87
87
|
getUserMessage(e) {
|
|
88
|
-
return
|
|
88
|
+
return c(e)?.fromCode?.(this.code) || o(this.resourceType.toLowerCase());
|
|
89
89
|
}
|
|
90
90
|
}, ie = {
|
|
91
91
|
primary: "#0284fe",
|
|
@@ -202,7 +202,7 @@ async function oe(e, t) {
|
|
|
202
202
|
valid: !1,
|
|
203
203
|
error: "Promo code is required"
|
|
204
204
|
};
|
|
205
|
-
let n = encodeURIComponent(t.trim()), r = await
|
|
205
|
+
let n = encodeURIComponent(t.trim()), r = await _(`/promo-codes/validate/${e}/${n}`);
|
|
206
206
|
if (!r.success) return {
|
|
207
207
|
valid: !1,
|
|
208
208
|
error: ae(r.statusCode, r.error)
|
|
@@ -228,7 +228,7 @@ async function oe(e, t) {
|
|
|
228
228
|
}
|
|
229
229
|
async function se(e) {
|
|
230
230
|
try {
|
|
231
|
-
let t = await
|
|
231
|
+
let t = await _(`/promo-codes/check/${e}`);
|
|
232
232
|
return !t.success || t.data.hasPromoCodes === !0;
|
|
233
233
|
} catch (e) {
|
|
234
234
|
return N.error("Error checking promo codes availability:", e), !0;
|
|
@@ -323,34 +323,34 @@ async function K(e, t) {
|
|
|
323
323
|
async function de(e, t) {
|
|
324
324
|
return le(await K(e, t), []);
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function fe(e) {
|
|
327
327
|
return Array.isArray(e) ? e : Array.isArray(e.events) ? e.events : [];
|
|
328
328
|
}
|
|
329
|
-
var
|
|
330
|
-
function
|
|
329
|
+
var q = /* @__PURE__ */ new Map();
|
|
330
|
+
function J(e, t, n) {
|
|
331
331
|
if (!n?.fresh) {
|
|
332
|
-
let t =
|
|
332
|
+
let t = q.get(e);
|
|
333
333
|
if (t) return t;
|
|
334
334
|
}
|
|
335
|
-
let r = G(e, t, (e) =>
|
|
336
|
-
return
|
|
337
|
-
|
|
335
|
+
let r = G(e, t, (e) => fe(e));
|
|
336
|
+
return q.set(e, r), r.finally(() => {
|
|
337
|
+
q.get(e) === r && q.delete(e);
|
|
338
338
|
}), r;
|
|
339
339
|
}
|
|
340
|
-
async function fe(e, t, n, r) {
|
|
341
|
-
return Y(`${m()}/events/venue/${e}/month/${t}/${n}`, "month_events_fetch_failed", r);
|
|
342
|
-
}
|
|
343
340
|
async function pe(e, t, n, r) {
|
|
344
|
-
return
|
|
341
|
+
return J(`${m()}/events/venue/${e}/month/${t}/${n}`, "month_events_fetch_failed", r);
|
|
345
342
|
}
|
|
346
|
-
async function me(e, t) {
|
|
347
|
-
return
|
|
343
|
+
async function me(e, t, n, r) {
|
|
344
|
+
return J(`${m()}/events/organization/${e}/month/${t}/${n}`, "org_month_events_fetch_failed", r);
|
|
348
345
|
}
|
|
349
346
|
async function he(e, t) {
|
|
350
|
-
|
|
351
|
-
return n.ok ? n.data : null;
|
|
347
|
+
return G(`${m()}/series/${e}/occurrences?venueId=${t}`, "series_cta_fetch_failed");
|
|
352
348
|
}
|
|
353
349
|
async function ge(e, t) {
|
|
350
|
+
let n = await he(e, t);
|
|
351
|
+
return n.ok ? n.data : null;
|
|
352
|
+
}
|
|
353
|
+
async function _e(e, t) {
|
|
354
354
|
try {
|
|
355
355
|
let n = t ? `?slug=${encodeURIComponent(t)}` : "", r = await g(`${m()}/resolve/${encodeURIComponent(String(e))}${n}`);
|
|
356
356
|
if (!r || !r.type) throw new D("entity", String(e));
|
|
@@ -359,7 +359,7 @@ async function ge(e, t) {
|
|
|
359
359
|
return V.error("Error resolving public entity:", e), null;
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
|
-
async function
|
|
362
|
+
async function ve(e, t) {
|
|
363
363
|
try {
|
|
364
364
|
let n = t ? `${m()}/collections/${e}?password=${encodeURIComponent(t)}` : `${m()}/collections/${e}`, r = await g(n);
|
|
365
365
|
if (!r) throw new D("collection", String(e));
|
|
@@ -368,7 +368,7 @@ async function _e(e, t) {
|
|
|
368
368
|
return V.error("Error fetching collection:", e), null;
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
|
-
async function
|
|
371
|
+
async function ye(e, t) {
|
|
372
372
|
try {
|
|
373
373
|
let n = await g(`${m()}/events/${e}/check-password`, {
|
|
374
374
|
method: "POST",
|
|
@@ -382,33 +382,33 @@ async function ve(e, t) {
|
|
|
382
382
|
}
|
|
383
383
|
//#endregion
|
|
384
384
|
//#region src/lib/api/venues.ts
|
|
385
|
-
var
|
|
386
|
-
async function
|
|
385
|
+
var Y = e("VC");
|
|
386
|
+
async function be(e) {
|
|
387
387
|
try {
|
|
388
|
-
if (!e) return
|
|
389
|
-
let t = await
|
|
390
|
-
return t.success ? t.data ?? null : (
|
|
388
|
+
if (!e) return Y.warn("getVenue called without venueId"), null;
|
|
389
|
+
let t = await _(`/venues/${e}`);
|
|
390
|
+
return t.success ? t.data ?? null : (Y.error(`Failed to fetch venue: ${t.statusCode}`), null);
|
|
391
391
|
} catch (e) {
|
|
392
|
-
return
|
|
392
|
+
return Y.error("Error fetching venue:", e), null;
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
395
|
//#endregion
|
|
396
396
|
//#region src/lib/api/transformers/giftCard.ts
|
|
397
|
-
function
|
|
397
|
+
function X(e, t) {
|
|
398
398
|
return e == null || t(e);
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function xe(e) {
|
|
401
401
|
if (typeof e != "object" || !e) return !1;
|
|
402
402
|
let t = e;
|
|
403
|
-
return t.valid === !0 && Number.isInteger(t.appliedAmount) && typeof t.remainingTotal == "number" && Number.isFinite(t.remainingTotal) &&
|
|
403
|
+
return t.valid === !0 && Number.isInteger(t.appliedAmount) && typeof t.remainingTotal == "number" && Number.isFinite(t.remainingTotal) && X(t.giftCardCode, (e) => typeof e == "string") && X(t.giftCardBalance, (e) => typeof e == "number" && Number.isFinite(e)) && X(t.fullyCoveredByCard, (e) => typeof e == "boolean");
|
|
404
404
|
}
|
|
405
|
-
var
|
|
406
|
-
function
|
|
407
|
-
if (!
|
|
405
|
+
var Se = "We couldn't apply that gift card. Please try again.";
|
|
406
|
+
function Ce(e) {
|
|
407
|
+
if (!xe(e)) return {
|
|
408
408
|
valid: !1,
|
|
409
|
-
error:
|
|
409
|
+
error: Se
|
|
410
410
|
};
|
|
411
|
-
let t = e, n =
|
|
411
|
+
let t = e, n = r(d(t.appliedAmount)), i = t.remainingTotal, a = t.fullyCoveredByCard ?? i <= 0, o = !a;
|
|
412
412
|
return {
|
|
413
413
|
valid: !0,
|
|
414
414
|
giftCardCode: t.giftCardCode ?? void 0,
|
|
@@ -422,30 +422,30 @@ function Se(e) {
|
|
|
422
422
|
}
|
|
423
423
|
//#endregion
|
|
424
424
|
//#region src/lib/api/gift-cards.ts
|
|
425
|
-
var
|
|
426
|
-
async function
|
|
425
|
+
var Z = e("VC");
|
|
426
|
+
async function we(e, t) {
|
|
427
427
|
try {
|
|
428
428
|
let n = await h(`${p()}/cart/${e}/apply-gift-card`, { giftCardCode: t });
|
|
429
429
|
if (!n.success) return n.statusCode === 429 ? {
|
|
430
430
|
valid: !1,
|
|
431
431
|
error: "Too many attempts. Please wait a moment and try again."
|
|
432
|
-
} : (
|
|
432
|
+
} : (Z.error("Apply gift card failed:", n.error), {
|
|
433
433
|
valid: !1,
|
|
434
434
|
error: n.error || "Invalid gift card code"
|
|
435
435
|
});
|
|
436
|
-
let r =
|
|
437
|
-
return r.valid ||
|
|
436
|
+
let r = Ce(n.data);
|
|
437
|
+
return r.valid || Z.error("Apply gift card returned an unusable payload:", n.data), r;
|
|
438
438
|
} catch (e) {
|
|
439
|
-
return
|
|
439
|
+
return Z.error("applyGiftCard error:", e), {
|
|
440
440
|
valid: !1,
|
|
441
441
|
error: "Network error. Please check your connection and try again."
|
|
442
442
|
};
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
|
-
async function
|
|
445
|
+
async function Te(e, t) {
|
|
446
446
|
try {
|
|
447
447
|
let n = t?.giftCardId ? { giftCardId: t.giftCardId } : t?.code ? { giftCardCode: t.code } : null, r = await f(`${p()}/cart/${e}/gift-card`, n ? { body: JSON.stringify(n) } : void 0);
|
|
448
|
-
if (!r.success) return
|
|
448
|
+
if (!r.success) return Z.error("Remove gift card failed:", r.error), {
|
|
449
449
|
success: !1,
|
|
450
450
|
error: r.error || "Failed to remove gift card"
|
|
451
451
|
};
|
|
@@ -455,14 +455,14 @@ async function we(e, t) {
|
|
|
455
455
|
...typeof a == "number" ? { remainingTotal: a } : {}
|
|
456
456
|
};
|
|
457
457
|
} catch (e) {
|
|
458
|
-
return
|
|
458
|
+
return Z.error("removeGiftCard error:", e), {
|
|
459
459
|
success: !1,
|
|
460
460
|
error: "Network error. Please check your connection and try again."
|
|
461
461
|
};
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
|
-
async function
|
|
465
|
-
let i =
|
|
464
|
+
async function Ee(e, n, r) {
|
|
465
|
+
let i = ee(r);
|
|
466
466
|
try {
|
|
467
467
|
let r = await h(`${p()}/cart/${e}/complete-gift-card-payment`, {
|
|
468
468
|
customerName: t(n.firstName, n.lastName),
|
|
@@ -473,19 +473,19 @@ async function Te(e, n, r) {
|
|
|
473
473
|
phoneNumber: n.phoneNumber || null,
|
|
474
474
|
questionAnswer: n.questionAnswer || "",
|
|
475
475
|
mailingList: n.mailingList || !1,
|
|
476
|
-
attribution:
|
|
476
|
+
attribution: te(),
|
|
477
477
|
...i ? { locale: i } : {}
|
|
478
478
|
});
|
|
479
479
|
return r.success ? {
|
|
480
480
|
success: !0,
|
|
481
481
|
orderId: r.data?.orderId,
|
|
482
482
|
confirmationNumber: r.data?.confirmationNumber
|
|
483
|
-
} : (
|
|
483
|
+
} : (Z.error("Complete gift card payment failed:", r.error), {
|
|
484
484
|
success: !1,
|
|
485
485
|
error: r.error || "Failed to complete payment"
|
|
486
486
|
});
|
|
487
487
|
} catch (e) {
|
|
488
|
-
return
|
|
488
|
+
return Z.error("completeGiftCardPayment error:", e), {
|
|
489
489
|
success: !1,
|
|
490
490
|
error: "Network error. Please check your connection and try again."
|
|
491
491
|
};
|
|
@@ -493,8 +493,8 @@ async function Te(e, n, r) {
|
|
|
493
493
|
}
|
|
494
494
|
//#endregion
|
|
495
495
|
//#region src/lib/api/waitlist.ts
|
|
496
|
-
var
|
|
497
|
-
async function
|
|
496
|
+
var Q = e("VC");
|
|
497
|
+
async function De(e, t, n = null, r = !1) {
|
|
498
498
|
try {
|
|
499
499
|
let i = { email: t };
|
|
500
500
|
n && r && (i.phone = n, i.smsOptIn = !0);
|
|
@@ -503,18 +503,18 @@ async function Ee(e, t, n = null, r = !1) {
|
|
|
503
503
|
success: !0,
|
|
504
504
|
updated: a.data?.updated,
|
|
505
505
|
position: a.data?.position
|
|
506
|
-
} : (
|
|
506
|
+
} : (Q.error("Join waitlist failed:", a.error), {
|
|
507
507
|
success: !1,
|
|
508
508
|
errorCode: a.error || "join_failed"
|
|
509
509
|
});
|
|
510
510
|
} catch (e) {
|
|
511
|
-
return
|
|
511
|
+
return Q.error("joinWaitlist error:", e), {
|
|
512
512
|
success: !1,
|
|
513
513
|
errorCode: "network_error"
|
|
514
514
|
};
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
|
-
async function
|
|
517
|
+
async function Oe(e, t) {
|
|
518
518
|
try {
|
|
519
519
|
let n = await h(`/checkout/validate-token/${e}`, { email: t });
|
|
520
520
|
return n.success ? {
|
|
@@ -527,14 +527,14 @@ async function De(e, t) {
|
|
|
527
527
|
errorCode: n.error
|
|
528
528
|
};
|
|
529
529
|
} catch (e) {
|
|
530
|
-
return
|
|
530
|
+
return Q.error("validateWaitlistToken error:", e), {
|
|
531
531
|
valid: !1,
|
|
532
532
|
eventId: 0,
|
|
533
533
|
errorCode: "invalid_token"
|
|
534
534
|
};
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
|
-
async function
|
|
537
|
+
async function $(e, t) {
|
|
538
538
|
try {
|
|
539
539
|
let n = await h(`/waitlist/requeue/${e}`, { email: t });
|
|
540
540
|
return n.success ? { success: !0 } : {
|
|
@@ -542,7 +542,7 @@ async function Oe(e, t) {
|
|
|
542
542
|
errorCode: n.error
|
|
543
543
|
};
|
|
544
544
|
} catch (e) {
|
|
545
|
-
return
|
|
545
|
+
return Q.error("requeueWaitlistToFront error:", e), {
|
|
546
546
|
success: !1,
|
|
547
547
|
errorCode: "internal_error"
|
|
548
548
|
};
|
|
@@ -555,15 +555,15 @@ async function ke(e) {
|
|
|
555
555
|
gated: !1
|
|
556
556
|
};
|
|
557
557
|
try {
|
|
558
|
-
let n = await
|
|
558
|
+
let n = await _(`/events/${e}/waitlist/status`);
|
|
559
559
|
return n.success ? {
|
|
560
560
|
waitlistEnabled: !!n.data?.waitlistEnabled,
|
|
561
561
|
soldOut: !!n.data?.soldOut,
|
|
562
562
|
gated: !!n.data?.gated
|
|
563
563
|
} : t;
|
|
564
564
|
} catch (e) {
|
|
565
|
-
return
|
|
565
|
+
return Q.error("getWaitlistStatus error:", e), t;
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
568
|
//#endregion
|
|
569
|
-
export {
|
|
569
|
+
export { S as A, O as C, E as D, re as E, w as M, y as O, j as S, M as T, _e as _, we as a, oe as b, be as c, de as d, K as f, me as g, pe as h, Oe as i, ne as j, C as k, ye as l, ge as m, De as n, Ee as o, ve as p, $ as r, Te as s, ke as t, W as u, ce as v, k as w, A as x, se as y };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as e, S as t, w as n, x as r } from "./api-
|
|
1
|
+
import { C as e, S as t, w as n, x as r } from "./api-DxEN4thz.js";
|
|
2
2
|
//#region src/lib/core/theme-engine.js
|
|
3
3
|
var i = {
|
|
4
4
|
primary: t.defaultThemePrimary,
|
|
@@ -116,6 +116,7 @@ var a = {
|
|
|
116
116
|
payment: "Payment",
|
|
117
117
|
noPaymentRequired: "No payment required",
|
|
118
118
|
freeEventMessage: "This is a free event. Complete the form above to reserve your spot",
|
|
119
|
+
giftCardCoversOrderMessage: "Your gift card covers this order. Complete the form above to get your tickets",
|
|
119
120
|
firstName: "First name",
|
|
120
121
|
lastName: "Last name",
|
|
121
122
|
emailAddress: "Email address",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as e } from "./scarcity-
|
|
1
|
+
import { q as e } from "./scarcity-Dgvp7aCF.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/LocationIcon.svelte
|
|
@@ -74,6 +74,7 @@ var e = {
|
|
|
74
74
|
payment: "Zahlung",
|
|
75
75
|
noPaymentRequired: "Keine Zahlung erforderlich",
|
|
76
76
|
freeEventMessage: "Dies ist eine kostenlose Veranstaltung. Fülle das Formular oben aus, um deinen Platz zu reservieren",
|
|
77
|
+
giftCardCoversOrderMessage: "Dein Gutschein deckt diese Bestellung ab. Fülle das Formular oben aus, um deine Tickets zu erhalten",
|
|
77
78
|
firstName: "Vorname",
|
|
78
79
|
lastName: "Nachname",
|
|
79
80
|
emailAddress: "E-Mail-Adresse",
|