@getmicdrop/venue-calendar 4.3.8 → 4.3.10
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-DvIbVly-.js → ArrowLeftIcon-BYu_Qbkb.js} +1 -1
- package/dist/{Badge-vsC_L__r.js → Badge-DCHGGod2.js} +8 -10
- package/dist/{BlockPlaceholder-BMD1gnmE.js → BlockPlaceholder-BoPMt_9Z.js} +2 -2
- package/dist/{Button-Cm6xkipe.js → Button-vmWb6wKc.js} +117 -63
- package/dist/{Calendar-CPD8dS_i.js → Calendar-D11ctjrD.js} +307 -282
- package/dist/{CalendarFoundryView-BY1uJgYA.js → CalendarFoundryView-DKhpjxnV.js} +6510 -6504
- package/dist/{CalendarIcon-CCgHZAu4.js → CalendarIcon-C8-UVSje.js} +1 -1
- package/dist/{CartView-DVugxQ3D.js → CartView-IqOekmQg.js} +814 -814
- package/dist/Checkout-ByQsDGg3.js +1005 -0
- package/dist/Checkout-C0lQ0AwV.js +1846 -0
- package/dist/{CheckoutTimer-CgGCv_jP.js → CheckoutTimer-B0E9KnHc.js} +15 -15
- package/dist/{ChevronDownIcon-gELqaIeP.js → ChevronDownIcon-C1uJ2yvz.js} +1 -1
- package/dist/{ClockIcon-C4MxWMqH.js → ClockIcon-Dk9q65sX.js} +1 -1
- package/dist/{CloseIcon-D3NjpzeW.js → CloseIcon-CyR73vpD.js} +1 -1
- package/dist/{CollectionView-C55yLTPR.js → CollectionView-B-CNyf9Z.js} +17 -17
- package/dist/CropImage-4WcoXkHt.js +537 -0
- package/dist/{Event-ClxgC-gP.js → Event-B4x0sGkc.js} +1142 -870
- package/dist/{EventPage-ziJYmBIZ.js → EventPage--xwhM503.js} +244 -236
- package/dist/{Heading-D7TEStkb.js → Heading-Br1Yqnvg.js} +3 -4
- package/dist/{Image-CjM21MQP.js → Image-M5RaWbKU.js} +12 -13
- package/dist/{Input-CIRGYHTC.js → Input-Bk8lP6TX.js} +53 -53
- package/dist/{MailIcon-iy7T12Hz.js → MailIcon-Ic2SruY-.js} +1 -1
- package/dist/{Modal-wQSo-C1f.js → Modal-CLeZUJ_i.js} +2 -2
- package/dist/ModalFooter-CSoG_uic.js +470 -0
- package/dist/ModalHeader-DpKxDJT_.js +18 -0
- package/dist/{PasswordInput-Cj8i4djG.js → PasswordInput-BHj_lokg.js} +2 -2
- package/dist/RecommendationsRail-8AVZ0aLE.js +445 -0
- package/dist/{ScarcityBadge-DbUVeqpx.js → ScarcityBadge-DakRfDx4.js} +19 -19
- package/dist/{SeriesPage-doki-1XH.js → SeriesPage-BaOeDNb6.js} +5 -5
- package/dist/{Spinner-Dua8H4Z1.js → Spinner-a1KCKWxZ.js} +2 -2
- package/dist/{Success-DZOYl6St.js → Success-BtUgc4H7.js} +290 -257
- package/dist/{TagIcon-CCyZd0sm.js → TagIcon-BiYfs6T7.js} +1 -1
- package/dist/{ViewTicketsEmbed-CF2Aq-qy.js → ViewTicketsEmbed-Lxg7n02-.js} +109 -109
- package/dist/{WarningCircleIcon-BuVhRrHd.js → WarningCircleIcon-AuYbQdPU.js} +1 -1
- package/dist/{WarningTriIcon-0hefhcdZ.js → WarningTriIcon-BzI-tSDG.js} +1 -1
- package/dist/{__SKIP_PATHS__-Dyw31EsB.js → __SKIP_PATHS__-B3OPLTzA.js} +1 -1
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.mjs +239 -237
- package/dist/{api-QG8CoGcM.js → api-C1M2t6HU.js} +114 -112
- package/dist/{browser-viCaCwoW.js → browser-DrfMvEfn.js} +7 -7
- package/dist/{labels-0dEJldQX.js → constants-YG4UeBdR.js} +17 -4
- package/dist/{copyToClipboard-C7KGa7gG.js → copyToClipboard-3SejVveg.js} +1 -1
- package/dist/{de-K0-gFyNH.js → de-CzupmMIa.js} +14 -1
- package/dist/{defaultLabels-BdLGAc3u.js → defaultLabels-CXCsTwix.js} +331 -356
- package/dist/{es-DsZSuXW4.js → es-B-vQxM9Z.js} +14 -1
- package/dist/{event-CyPf2sZS.js → event-DAjJ01GM.js} +1 -1
- package/dist/{event-transform-DQmD2u_S.js → event-transform-DNqGTQhp.js} +54 -53
- package/dist/{eventStatusStream-BFOvtJyO.js → eventStatusStream-CLLN-Rvf.js} +2 -2
- package/dist/{fr-BmHldIKE.js → fr-B2g-kG7i.js} +14 -1
- package/dist/{href-CbfSre4l.js → href-DuxMJt4c.js} +3 -3
- package/dist/{i18n-CSftOFAS.js → i18n-Ct9Bo-Vp.js} +179 -129
- package/dist/{i18n-D54CGXK2.js → i18n-KdVjJUV5.js} +2 -2
- package/dist/{id-CBHA4B6C.js → id-Dgu5-FC6.js} +14 -1
- package/dist/imageOptimizer-Ba8P7ZEJ.js +140 -0
- package/dist/{it-CK6ravjO.js → it-C580sMYp.js} +14 -1
- package/dist/{ja-COO0Ibrr.js → ja-DLki4zXU.js} +14 -1
- package/dist/{ko-D8YqNrZs.js → ko-BUcfb1Gi.js} +14 -1
- package/dist/locales/4.3.10/flow/de.js +1 -0
- package/dist/locales/4.3.10/flow/es.js +1 -0
- package/dist/locales/4.3.10/flow/fr.js +1 -0
- package/dist/locales/4.3.10/flow/id.js +1 -0
- package/dist/locales/4.3.10/flow/it.js +1 -0
- package/dist/locales/4.3.10/flow/ja.js +1 -0
- package/dist/locales/4.3.10/flow/ko.js +1 -0
- package/dist/locales/4.3.10/flow/nl.js +1 -0
- package/dist/locales/4.3.10/flow/pl.js +1 -0
- package/dist/locales/4.3.10/flow/pt-br.js +1 -0
- package/dist/locales/4.3.10/flow/tr.js +1 -0
- package/dist/locales/4.3.10/flow/zh.js +1 -0
- package/dist/modalManager.svelte-Cz_6x1Qd.js +37 -0
- package/dist/{nl-Bk3DPD7e.js → nl-CivAQA0D.js} +14 -1
- package/dist/order-totals-DyVkHVqG.js +151 -0
- package/dist/{orders-Bat2EL64.js → orders-rH0WZYOW.js} +18 -18
- package/dist/{phoneUtils-Cm9iv40N.js → phoneUtils-BFrVEwkQ.js} +1 -1
- package/dist/{pixels-Ha6vOCaS.js → pixels-mdd6C3Bk.js} +3 -3
- package/dist/{pl-CPmO94ic.js → pl-C5VwFH2B.js} +14 -1
- package/dist/{promo-DWzTN7u9.js → promo-CTRn_F4t.js} +1 -1
- package/dist/{pt-br-Ch6NFhW6.js → pt-br-B0w9dhVB.js} +14 -1
- package/dist/{constants-q-jR2-bz.js → scarcity-Ccj5RlrR.js} +2 -5
- package/dist/{serverTotals-BBlkfqMf.js → serverTotals-Dk3z9sIA.js} +1 -1
- package/dist/{showcase-state-options-CxRQ-phi.js → showcase-state-options-8-egiV5-.js} +1 -1
- package/dist/{to-event-card-props-BIl0qQs0.js → to-event-card-props-a4k6D100.js} +49 -49
- package/dist/{tr-CXnalLJT.js → tr-LGkP5gpA.js} +14 -1
- package/dist/{utils-ChgG4jiQ.js → utils-BseYYrbn.js} +82 -78
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +994 -996
- package/dist/venue-calendar.iife.js +56 -57
- package/dist/venue-calendar.umd.js +51 -52
- package/dist/{zh-CM2J1Py4.js → zh-D2ZAdq3T.js} +14 -1
- package/package.json +2 -2
- package/dist/Checkout-D7KSikhw.js +0 -980
- package/dist/Checkout-Ddcw2_8F.js +0 -1846
- package/dist/CropImage-CxLcNArr.js +0 -445
- package/dist/ModalFooter-DlRXuHQz.js +0 -301
- package/dist/imageOptimizer-BwLwBMI6.js +0 -112
- package/dist/keyboard-fiZFqeNA.js +0 -29
- package/dist/locales/4.3.8/flow/de.js +0 -1
- package/dist/locales/4.3.8/flow/es.js +0 -1
- package/dist/locales/4.3.8/flow/fr.js +0 -1
- package/dist/locales/4.3.8/flow/id.js +0 -1
- package/dist/locales/4.3.8/flow/it.js +0 -1
- package/dist/locales/4.3.8/flow/ja.js +0 -1
- package/dist/locales/4.3.8/flow/ko.js +0 -1
- package/dist/locales/4.3.8/flow/nl.js +0 -1
- package/dist/locales/4.3.8/flow/pl.js +0 -1
- package/dist/locales/4.3.8/flow/pt-br.js +0 -1
- package/dist/locales/4.3.8/flow/tr.js +0 -1
- package/dist/locales/4.3.8/flow/zh.js +0 -1
- package/dist/modalManager.svelte-Dnv5jhxp.js +0 -53
- package/dist/order-totals-Ci_p6SG6.js +0 -131
- package/dist/portal-DqxEuE-7.js +0 -166
- package/dist/shareCopyFeedback.svelte-CW0Yy9Oz.js +0 -330
- /package/dist/locales/{4.3.8 → 4.3.10}/main/de.js +0 -0
- /package/dist/locales/{4.3.8 → 4.3.10}/main/es.js +0 -0
- /package/dist/locales/{4.3.8 → 4.3.10}/main/fr.js +0 -0
- /package/dist/locales/{4.3.8 → 4.3.10}/main/id.js +0 -0
- /package/dist/locales/{4.3.8 → 4.3.10}/main/it.js +0 -0
- /package/dist/locales/{4.3.8 → 4.3.10}/main/ja.js +0 -0
- /package/dist/locales/{4.3.8 → 4.3.10}/main/ko.js +0 -0
- /package/dist/locales/{4.3.8 → 4.3.10}/main/nl.js +0 -0
- /package/dist/locales/{4.3.8 → 4.3.10}/main/pl.js +0 -0
- /package/dist/locales/{4.3.8 → 4.3.10}/main/pt-br.js +0 -0
- /package/dist/locales/{4.3.8 → 4.3.10}/main/tr.js +0 -0
- /package/dist/locales/{4.3.8 → 4.3.10}/main/zh.js +0 -0
|
@@ -0,0 +1,445 @@
|
|
|
1
|
+
import { i as e, p as t, q as n } from "./scarcity-Ccj5RlrR.js";
|
|
2
|
+
import { t as r } from "./copyToClipboard-3SejVveg.js";
|
|
3
|
+
import { D as i, b as a, h as o, x as s } from "./defaultLabels-CXCsTwix.js";
|
|
4
|
+
import { I as c, R as l } from "./orders-rH0WZYOW.js";
|
|
5
|
+
import { c as u, i as d, s as f, t as p } from "./to-event-card-props-a4k6D100.js";
|
|
6
|
+
import { t as m } from "./Heading-Br1Yqnvg.js";
|
|
7
|
+
import { r as h, t as g } from "./event-DAjJ01GM.js";
|
|
8
|
+
import { t as _ } from "./venue-CBos8YTa.js";
|
|
9
|
+
import "svelte/internal/disclose-version";
|
|
10
|
+
import * as v from "svelte/internal/client";
|
|
11
|
+
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/ExportIcon.svelte
|
|
12
|
+
var y = v.from_svg("<path d=\"M216,112v96a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V112A16,16,0,0,1,56,96h64v48a8,8,0,0,0,16,0V96h64A16,16,0,0,1,216,112ZM136,43.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,69.66L120,43.31V96h16Z\"></path>"), b = v.from_svg("<path d=\"M176,104h24a8,8,0,0,1,8,8v96a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V112a8,8,0,0,1,8-8H80\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></path><polyline points=\"88 64 128 24 168 64\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></polyline><line x1=\"128\" y1=\"24\" x2=\"128\" y2=\"136\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></line>", 1), x = v.from_svg("<svg aria-hidden=\"true\" viewBox=\"0 0 256 256\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
|
|
13
|
+
function S(e, t) {
|
|
14
|
+
v.push(t, !0);
|
|
15
|
+
let r = v.prop(t, "size", 3, "24"), i = v.prop(t, "color", 3, "currentColor"), a = v.prop(t, "class", 3, ""), o = n(), s = v.derived(() => t.weight ?? o?.weight ?? "regular");
|
|
16
|
+
var c = x();
|
|
17
|
+
let l;
|
|
18
|
+
var u = v.child(c), d = (e) => {
|
|
19
|
+
var t = y();
|
|
20
|
+
v.append(e, t);
|
|
21
|
+
}, f = (e) => {
|
|
22
|
+
var t = b();
|
|
23
|
+
v.next(2), v.append(e, t);
|
|
24
|
+
};
|
|
25
|
+
v.if(u, (e) => {
|
|
26
|
+
v.get(s) === "fill" ? e(d) : e(f, -1);
|
|
27
|
+
}), v.reset(c), v.template_effect(() => {
|
|
28
|
+
v.set_class(c, 0, v.clsx(a())), v.set_attribute(c, "width", r()), v.set_attribute(c, "height", r()), l = v.set_style(c, "", l, { color: i() === "currentColor" ? void 0 : i() });
|
|
29
|
+
}), v.append(e, c), v.pop();
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/lib/api/transformers/address.ts
|
|
33
|
+
function C(e) {
|
|
34
|
+
if (!e) return [];
|
|
35
|
+
let t = e.split(",").map((e) => e.trim());
|
|
36
|
+
if (t.length < 2) return [e];
|
|
37
|
+
let n = t[t.length - 1].match(/^([A-Z]{2})\s+(\d{5}(-\d{4})?)$/);
|
|
38
|
+
if (n && t.length >= 3) {
|
|
39
|
+
let e = n[1], r = n[2], i = t[t.length - 2], a = t.slice(0, -2);
|
|
40
|
+
return a.push(`${i}, ${e} ${r}`), a;
|
|
41
|
+
}
|
|
42
|
+
return [t[0], t.slice(1).join(", ")];
|
|
43
|
+
}
|
|
44
|
+
function w(e) {
|
|
45
|
+
return e ? `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(e)}` : "";
|
|
46
|
+
}
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/lib/api/transformers/faq.ts
|
|
49
|
+
var T = "FAQ", E = 40, D = /^q\s*[:.)-]\s*/i, O = /^a\s*[:.)-]\s*/i;
|
|
50
|
+
function k(e) {
|
|
51
|
+
if (Array.isArray(e)) return e.map((e) => ({
|
|
52
|
+
question: String(e?.question ?? "").trim(),
|
|
53
|
+
answer: String(e?.answer ?? "").trim()
|
|
54
|
+
})).filter((e) => e.question || e.answer).slice(0, E);
|
|
55
|
+
if (typeof e != "string") return [];
|
|
56
|
+
let t = e.trim();
|
|
57
|
+
if (!t) return [];
|
|
58
|
+
let n = t.split(/\r?\n/).map((e) => e.trim()).filter((e) => e.length > 0);
|
|
59
|
+
if (n.length === 0) return [];
|
|
60
|
+
let r = [], i = null;
|
|
61
|
+
for (let e of n) {
|
|
62
|
+
let t = D.test(e), n = O.test(e);
|
|
63
|
+
if (t || !n && e.endsWith("?")) {
|
|
64
|
+
i && r.push(i), i = {
|
|
65
|
+
question: e.replace(D, "").trim(),
|
|
66
|
+
answer: ""
|
|
67
|
+
};
|
|
68
|
+
continue;
|
|
69
|
+
}
|
|
70
|
+
let a = e.replace(O, "").trim();
|
|
71
|
+
if (!i) {
|
|
72
|
+
i = {
|
|
73
|
+
question: T,
|
|
74
|
+
answer: a
|
|
75
|
+
};
|
|
76
|
+
continue;
|
|
77
|
+
}
|
|
78
|
+
i.answer = i.answer ? `${i.answer}\n${a}` : a;
|
|
79
|
+
}
|
|
80
|
+
return i && r.push(i), r.some((e) => e.question !== T) ? r.filter((e) => e.question || e.answer).slice(0, E) : [{
|
|
81
|
+
question: T,
|
|
82
|
+
answer: n.join("\n")
|
|
83
|
+
}];
|
|
84
|
+
}
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region src/lib/api/transformers/series.ts
|
|
87
|
+
function A(t) {
|
|
88
|
+
let n = t, r = s(t.timeZone || n.timezone || n.time_zone || "UTC"), i = h(t.image || "", { cdn: !0 }), a = (t.occurrences || []).map((e) => {
|
|
89
|
+
let t = e.venue, n = t ? [t.name, t.stageName].filter(Boolean).join(" — ") : "", r = t ? t.googleLocationNameCache || [
|
|
90
|
+
t.address,
|
|
91
|
+
t.city,
|
|
92
|
+
t.state
|
|
93
|
+
].filter(Boolean).join(", ") : "";
|
|
94
|
+
return {
|
|
95
|
+
id: e.id,
|
|
96
|
+
slug: e.slug || "",
|
|
97
|
+
startDateTime: e.startDateTime,
|
|
98
|
+
endDateTime: e.endDateTime || "",
|
|
99
|
+
status: e.ctaState?.reason === "sold_out" ? "sold_out" : "on_sale",
|
|
100
|
+
ctaText: e.ctaState?.text || "Get Tickets",
|
|
101
|
+
ctaDisabled: e.ctaState?.disabled || !1,
|
|
102
|
+
...n ? { venueName: n } : {},
|
|
103
|
+
...r ? { venueAddress: r } : {}
|
|
104
|
+
};
|
|
105
|
+
}), o = t.occurrences?.[0], c = o?.startDateTime ? e(o.startDateTime, r) : "", l = k(t.venue?.faq), u = (t.performers || []).map((e, t) => ({
|
|
106
|
+
id: t + 1,
|
|
107
|
+
displayName: e.displayName || [e.firstName, e.lastName].filter(Boolean).join(" "),
|
|
108
|
+
profileImage: e.profileImage || void 0
|
|
109
|
+
})), d = t.venue?.location || t.venue?.googleLocationNameCache || "";
|
|
110
|
+
return {
|
|
111
|
+
id: t.id,
|
|
112
|
+
title: t.title || "",
|
|
113
|
+
slug: "",
|
|
114
|
+
description: t.description || t.eventSummary || "",
|
|
115
|
+
date: c,
|
|
116
|
+
startDateTime: o?.startDateTime || "",
|
|
117
|
+
endDateTime: o?.endDateTime || "",
|
|
118
|
+
doorsOpenTime: "",
|
|
119
|
+
timezone: r,
|
|
120
|
+
imageUrl: i,
|
|
121
|
+
venue: {
|
|
122
|
+
id: t.venue?.id || 0,
|
|
123
|
+
name: t.venue?.name || "",
|
|
124
|
+
address: d,
|
|
125
|
+
timezone: r,
|
|
126
|
+
serviceFeePercentage: 0,
|
|
127
|
+
serviceFeeCents: 0,
|
|
128
|
+
taxPercentage: 0
|
|
129
|
+
},
|
|
130
|
+
performers: u,
|
|
131
|
+
tickets: [],
|
|
132
|
+
faqs: l,
|
|
133
|
+
disclaimer: t.venue?.disclaimer || void 0,
|
|
134
|
+
..._(t.venue),
|
|
135
|
+
status: "on_sale",
|
|
136
|
+
eventSeriesId: t.id,
|
|
137
|
+
seriesOccurrences: a,
|
|
138
|
+
isPasswordProtected: !1,
|
|
139
|
+
isRegistrationEvent: !1,
|
|
140
|
+
totalTicketsRemaining: 0,
|
|
141
|
+
totalTicketsCapacity: 0,
|
|
142
|
+
venueAddressLines: C(d),
|
|
143
|
+
googleMapsUrl: w(d)
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
//#endregion
|
|
147
|
+
//#region src/lib/api/transformers/collection.ts
|
|
148
|
+
function j(e) {
|
|
149
|
+
let t = (e.events || []).map((e) => ({
|
|
150
|
+
id: e.id,
|
|
151
|
+
name: e.title || "",
|
|
152
|
+
slug: e.slug || "",
|
|
153
|
+
image: h(e.image || "", { cdn: !0 }),
|
|
154
|
+
startDateTime: e.startDateTime || "",
|
|
155
|
+
status: e.status || "on_sale"
|
|
156
|
+
})), n = h(e.coverImage || "", { cdn: !0 });
|
|
157
|
+
return {
|
|
158
|
+
id: e.id,
|
|
159
|
+
title: e.collectionTitle || "",
|
|
160
|
+
slug: "",
|
|
161
|
+
description: e.description || e.summary || "",
|
|
162
|
+
date: "",
|
|
163
|
+
startDateTime: "",
|
|
164
|
+
endDateTime: "",
|
|
165
|
+
doorsOpenTime: "",
|
|
166
|
+
timezone: "UTC",
|
|
167
|
+
imageUrl: n,
|
|
168
|
+
venue: {
|
|
169
|
+
id: 0,
|
|
170
|
+
name: "",
|
|
171
|
+
address: "",
|
|
172
|
+
timezone: "UTC",
|
|
173
|
+
serviceFeePercentage: 0,
|
|
174
|
+
serviceFeeCents: 0,
|
|
175
|
+
taxPercentage: 0
|
|
176
|
+
},
|
|
177
|
+
performers: [],
|
|
178
|
+
tickets: [],
|
|
179
|
+
faqs: [],
|
|
180
|
+
status: "on_sale",
|
|
181
|
+
collectionId: e.id,
|
|
182
|
+
collectionEvents: t,
|
|
183
|
+
isPasswordProtected: !1,
|
|
184
|
+
isRegistrationEvent: !1,
|
|
185
|
+
totalTicketsRemaining: 0,
|
|
186
|
+
totalTicketsCapacity: 0
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
//#endregion
|
|
190
|
+
//#region src/lib/public-calendar-flow/transform.ts
|
|
191
|
+
function M(e) {
|
|
192
|
+
let t = i(), n = e.remainingCapacity ?? e.quantityRemaining ?? e.quantity ?? 0, r = e.salesBegin || e.salesStart || e.saleBegin || e.onSaleStart, s = e.salesEnd || e.saleEnd || e.onSaleEnd;
|
|
193
|
+
if (n <= 0) return "sold_out";
|
|
194
|
+
let c = a(s);
|
|
195
|
+
if (c && o(c, t) < 0) return "sales_ended";
|
|
196
|
+
let l = a(r);
|
|
197
|
+
return l && o(l, t) > 0 ? "coming_soon" : "on_sale";
|
|
198
|
+
}
|
|
199
|
+
function N(e, t, n = !1) {
|
|
200
|
+
let r = (e || "").toLowerCase().replace(/\s+/g, "_");
|
|
201
|
+
if (r === "cancelled" || r === "canceled") return "cancelled";
|
|
202
|
+
if (r === "postponed") return "postponed";
|
|
203
|
+
if (r === "past" || r === "ended") return "past";
|
|
204
|
+
if (n || t.some((e) => e.isHidden && e.status === "on_sale")) return "on_sale";
|
|
205
|
+
let i = t.filter((e) => !e.isHidden);
|
|
206
|
+
if (i.length > 0) {
|
|
207
|
+
if (i.every((e) => e.status === "sold_out")) return "sold_out";
|
|
208
|
+
if (i.every((e) => e.status === "coming_soon")) return "coming_soon";
|
|
209
|
+
if (i.every((e) => e.status === "sales_ended" || e.status === "sold_out")) return "sales_ended";
|
|
210
|
+
}
|
|
211
|
+
return r === "sold_out" || r === "soldout" ? "sold_out" : r === "coming_soon" || r === "comingsoon" ? "coming_soon" : r === "sales_ended" || r === "salesended" ? "sales_ended" : "on_sale";
|
|
212
|
+
}
|
|
213
|
+
function P(n) {
|
|
214
|
+
let r = g(n), i = r.venue || {}, a = s(r.timeZone || r.timezone || i.timeZone || i.timezone || "UTC"), o = (n.availableTickets || []).map((e) => ({
|
|
215
|
+
id: e.id || e.ID,
|
|
216
|
+
name: e.name || e.title || "",
|
|
217
|
+
description: e.description || void 0,
|
|
218
|
+
price: t(e.price),
|
|
219
|
+
fee: e.fee == null ? 0 : e.fee,
|
|
220
|
+
quantityAvailable: e.remainingCapacity ?? e.quantityRemaining ?? e.quantity ?? 0,
|
|
221
|
+
quantityTotal: e.totalCapacity ?? e.quantity ?? 0,
|
|
222
|
+
minPerOrder: e.minPerOrder ?? e.minQuantity ?? 1,
|
|
223
|
+
maxPerOrder: e.maxPerOrder ?? e.maxQuantity ?? 10,
|
|
224
|
+
status: M(e),
|
|
225
|
+
salesStartDate: e.salesBegin || e.salesStart || e.saleBegin || e.onSaleStart || void 0,
|
|
226
|
+
salesEndDate: e.salesEnd || e.saleEnd || e.onSaleEnd || void 0,
|
|
227
|
+
isDonation: e.type === 2 || e.ticketType === 2 || e.isDonation === !0,
|
|
228
|
+
isHidden: e.visibility === 2 || e.isHidden === !0,
|
|
229
|
+
ticketType: e.type || e.ticketType || void 0,
|
|
230
|
+
sectionName: e.sectionName || e.section || void 0
|
|
231
|
+
})), c = o.filter((e) => !e.isHidden && !e.isDonation), l = c.reduce((e, t) => e + t.quantityAvailable, 0), u = c.reduce((e, t) => e + t.quantityTotal, 0), d = n.hasPurchasableHiddenTickets === !0, f = N(r.status, o, d), p = n.image || n.imageUrl || n.image_url || "", m = p.startsWith("http") ? p : h(p, { cdn: !0 }), v = {
|
|
232
|
+
id: i.id || i.ID || 0,
|
|
233
|
+
name: i.name || i.googleLocationNameCache || "",
|
|
234
|
+
address: i.address || i.googleLocationNameCache || "",
|
|
235
|
+
timezone: a,
|
|
236
|
+
serviceFeePercentage: i.serviceFeePercentage ?? i.fee ?? 0,
|
|
237
|
+
serviceFeeCents: i.serviceFeeCents == null ? 0 : i.serviceFeeCents,
|
|
238
|
+
taxPercentage: i.taxPercentage ?? i.tax ?? 0,
|
|
239
|
+
contactEmail: i.contactEmail || i.email || void 0
|
|
240
|
+
}, y = (r.performers || []).map((e) => ({
|
|
241
|
+
id: e.id || e.ID,
|
|
242
|
+
displayName: e.displayName || e.name || "",
|
|
243
|
+
profileImage: e.avatar || e.profileImage || void 0,
|
|
244
|
+
role: e.role || void 0
|
|
245
|
+
})), b = r.faqs ? k(r.faqs) : k(i.faq), x = (r.showtimes || []).filter((e) => e.published !== !1).map((e, t) => ({
|
|
246
|
+
id: e.id ?? e.eventId ?? t + 1,
|
|
247
|
+
slug: e.slug || "",
|
|
248
|
+
startDateTime: e.startDateTime || e.startTime || "",
|
|
249
|
+
endDateTime: e.endDateTime || e.endTime || "",
|
|
250
|
+
status: e.ctaState?.reason === "sold_out" ? "sold_out" : "on_sale",
|
|
251
|
+
ctaText: e.ctaState?.text || "Get tickets",
|
|
252
|
+
ctaDisabled: e.ctaState?.disabled || !1
|
|
253
|
+
})), S = r.startDateTime ? e(r.startDateTime, a) : "";
|
|
254
|
+
return {
|
|
255
|
+
id: r.id,
|
|
256
|
+
title: r.title || "",
|
|
257
|
+
slug: r.slug || "",
|
|
258
|
+
description: r.description || r.eventSummary || "",
|
|
259
|
+
date: S,
|
|
260
|
+
startDateTime: r.startDateTime || "",
|
|
261
|
+
endDateTime: r.endDateTime || "",
|
|
262
|
+
doorsOpenTime: r.doorsOpenTime || "",
|
|
263
|
+
timezone: a,
|
|
264
|
+
imageUrl: m,
|
|
265
|
+
venue: v,
|
|
266
|
+
performers: y,
|
|
267
|
+
tickets: o,
|
|
268
|
+
...Array.isArray(n.addOns) && n.addOns.length > 0 ? { addOns: n.addOns } : {},
|
|
269
|
+
faqs: b,
|
|
270
|
+
disclaimer: r.disclaimer || i.disclaimer || void 0,
|
|
271
|
+
..._(i),
|
|
272
|
+
status: f,
|
|
273
|
+
salesStatus: r.salesStatus || void 0,
|
|
274
|
+
...d ? { hasPurchasableHiddenTickets: !0 } : {},
|
|
275
|
+
eventSeriesId: r.eventSeriesId || void 0,
|
|
276
|
+
seriesOccurrences: x.length ? x : void 0,
|
|
277
|
+
isPasswordProtected: r.hasPassword === !0 || !!r.password,
|
|
278
|
+
isRegistrationEvent: r.ticketType === 1 || r.eventTicketingType === 1,
|
|
279
|
+
totalTicketsRemaining: l,
|
|
280
|
+
totalTicketsCapacity: u,
|
|
281
|
+
stageName: r.stage?.name || r.stageName || void 0,
|
|
282
|
+
ageRestriction: r.ageRestriction || void 0,
|
|
283
|
+
displayAgeRestriction: r.displayAgeRestriction ?? !1,
|
|
284
|
+
displayStartTime: r.displayStartTime ?? !0,
|
|
285
|
+
displayEndTime: r.displayEndTime ?? !0,
|
|
286
|
+
displayDoorsTime: r.displayDoorsTime ?? !0,
|
|
287
|
+
displayTicketsLeft: r.displayTicketsLeft ?? !0,
|
|
288
|
+
summary: r.eventSummary || void 0,
|
|
289
|
+
postSalesMessage: r.postSalesMessage || void 0,
|
|
290
|
+
collectionId: r.collectionId || void 0,
|
|
291
|
+
venueAddressLines: C(i.address || i.googleLocationNameCache || ""),
|
|
292
|
+
googleMapsUrl: w(i.address || i.googleLocationNameCache || "")
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
function F(e) {
|
|
296
|
+
return A(e);
|
|
297
|
+
}
|
|
298
|
+
function I(e) {
|
|
299
|
+
return j(e);
|
|
300
|
+
}
|
|
301
|
+
//#endregion
|
|
302
|
+
//#region src/lib/public-calendar-flow/shareEventLink.ts
|
|
303
|
+
async function L(e) {
|
|
304
|
+
if (typeof navigator < "u" && typeof navigator.share == "function") try {
|
|
305
|
+
return await navigator.share({ url: e }), "shared";
|
|
306
|
+
} catch (e) {
|
|
307
|
+
if (e?.name === "AbortError") return "shared";
|
|
308
|
+
}
|
|
309
|
+
return await r(e) ? "copied" : "failed";
|
|
310
|
+
}
|
|
311
|
+
//#endregion
|
|
312
|
+
//#region src/lib/public-calendar-flow/shareCopyFeedback.svelte.ts
|
|
313
|
+
function R() {
|
|
314
|
+
let e = v.state("idle"), t = v.state(""), n;
|
|
315
|
+
async function r(r) {
|
|
316
|
+
let i = await L(r);
|
|
317
|
+
i === "copied" ? (v.set(t, ""), v.set(e, "copied"), clearTimeout(n), n = setTimeout(() => v.set(e, "idle"), 2500)) : i === "failed" && (clearTimeout(n), v.set(e, "failed"), v.set(t, r, !0));
|
|
318
|
+
}
|
|
319
|
+
function i() {
|
|
320
|
+
clearTimeout(n);
|
|
321
|
+
}
|
|
322
|
+
return {
|
|
323
|
+
get copyState() {
|
|
324
|
+
return v.get(e);
|
|
325
|
+
},
|
|
326
|
+
get copyFailedUrl() {
|
|
327
|
+
return v.get(t);
|
|
328
|
+
},
|
|
329
|
+
share: r,
|
|
330
|
+
dispose: i
|
|
331
|
+
};
|
|
332
|
+
}
|
|
333
|
+
//#endregion
|
|
334
|
+
//#region src/lib/api/recommendations.ts
|
|
335
|
+
async function z(e, t = "event_page", n) {
|
|
336
|
+
return e ? (await l(`${c()}/events/${e}/recommendations?surface=${t}`, { widgetKey: n }))?.recommendations ?? [] : [];
|
|
337
|
+
}
|
|
338
|
+
//#endregion
|
|
339
|
+
//#region src/lib/public-calendar-flow/recommendation-cards.ts
|
|
340
|
+
function B(t) {
|
|
341
|
+
return t.filter((e) => !!e.startsAt).map((t) => ({
|
|
342
|
+
eventID: t.eventId,
|
|
343
|
+
name: t.title,
|
|
344
|
+
date: e(t.startsAt, t.timeZone),
|
|
345
|
+
startDateTime: t.startsAt,
|
|
346
|
+
imageUrl: t.image ?? "",
|
|
347
|
+
status: "on_sale",
|
|
348
|
+
timeZone: t.timeZone,
|
|
349
|
+
venueName: t.venueName,
|
|
350
|
+
ticketsRemaining: void 0,
|
|
351
|
+
ticketsTotal: void 0
|
|
352
|
+
}));
|
|
353
|
+
}
|
|
354
|
+
//#endregion
|
|
355
|
+
//#region src/lib/public-calendar-flow/RecommendationsRail.svelte
|
|
356
|
+
var V = v.from_html("<span class=\"self-start rounded-full bg-status-info-bg px-2 py-0.5 text-status-info-text\" data-testid=\"recommendation-why\"> </span>"), H = v.from_html("<div class=\"flex flex-col gap-2\"><!> <!></div>"), U = v.from_html("<section data-testid=\"recommendations-rail\"><div class=\"mb-4\"><!></div> <!></section>");
|
|
357
|
+
function W(e, t) {
|
|
358
|
+
v.push(t, !0);
|
|
359
|
+
let n = v.prop(t, "surface", 3, "event_page"), r = v.prop(t, "locale", 3, "en"), i = v.state(v.proxy([]));
|
|
360
|
+
v.user_effect(() => {
|
|
361
|
+
let e = t.eventId, r = !0;
|
|
362
|
+
return z(e, n(), t.widgetKey).then((n) => {
|
|
363
|
+
r && e === t.eventId && v.set(i, n, !0);
|
|
364
|
+
}), () => {
|
|
365
|
+
r = !1;
|
|
366
|
+
};
|
|
367
|
+
});
|
|
368
|
+
let a = v.derived(() => d(B(v.get(i))));
|
|
369
|
+
function o(e) {
|
|
370
|
+
let n = s(e);
|
|
371
|
+
if (!n) return "";
|
|
372
|
+
switch (n.rule) {
|
|
373
|
+
case "performer": return t.labels.recommendationFromTonightsLineup;
|
|
374
|
+
case "genre": return t.labels.recommendationSimilarShow;
|
|
375
|
+
case "weekday": return t.labels.recommendationSameNight;
|
|
376
|
+
case "similar": return t.labels.recommendationYouMightLike;
|
|
377
|
+
case "pin": return t.labels.recommendationFeatured;
|
|
378
|
+
default: return "";
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
function s(e) {
|
|
382
|
+
return v.get(i).find((t) => t.eventId === e.eventID);
|
|
383
|
+
}
|
|
384
|
+
function c(e) {
|
|
385
|
+
let n = s(e)?.url;
|
|
386
|
+
if (n) {
|
|
387
|
+
window.location.assign(n);
|
|
388
|
+
return;
|
|
389
|
+
}
|
|
390
|
+
t.onselect?.(e);
|
|
391
|
+
}
|
|
392
|
+
var l = v.comment(), h = v.first_child(l), g = (e) => {
|
|
393
|
+
var n = U(), i = v.child(n), s = v.child(i);
|
|
394
|
+
m(s, {
|
|
395
|
+
size: "xl",
|
|
396
|
+
weight: "semibold",
|
|
397
|
+
children: (e, n) => {
|
|
398
|
+
v.next();
|
|
399
|
+
var r = v.text();
|
|
400
|
+
v.template_effect(() => v.set_text(r, t.labels.recommendationsHeading)), v.append(e, r);
|
|
401
|
+
},
|
|
402
|
+
$$slots: { default: !0 }
|
|
403
|
+
}), v.reset(i);
|
|
404
|
+
var l = v.sibling(i, 2);
|
|
405
|
+
u(l, {
|
|
406
|
+
cols: "auto",
|
|
407
|
+
minWidth: "240px",
|
|
408
|
+
gap: "6",
|
|
409
|
+
children: (e, n) => {
|
|
410
|
+
var i = v.comment(), s = v.first_child(i);
|
|
411
|
+
v.each(s, 17, () => v.get(a), (e) => e.event.eventID, (e, n) => {
|
|
412
|
+
let i = v.derived(() => {
|
|
413
|
+
let { pillEvents: e, ...i } = p(v.get(n), t.labels, r());
|
|
414
|
+
return {
|
|
415
|
+
_pillEvents: e,
|
|
416
|
+
card: i
|
|
417
|
+
};
|
|
418
|
+
});
|
|
419
|
+
var a = H(), s = v.child(a);
|
|
420
|
+
f(s, v.spread_props(() => v.get(i).card, {
|
|
421
|
+
layout: "vertical",
|
|
422
|
+
density: "standard",
|
|
423
|
+
get placeholderImage() {
|
|
424
|
+
return t.placeholderImage;
|
|
425
|
+
},
|
|
426
|
+
onclick: () => c(v.get(n).event)
|
|
427
|
+
}));
|
|
428
|
+
var l = v.sibling(s, 2), u = (e) => {
|
|
429
|
+
var t = V(), r = v.child(t, !0);
|
|
430
|
+
v.reset(t), v.template_effect((e) => v.set_text(r, e), [() => o(v.get(n).event)]), v.append(e, t);
|
|
431
|
+
}, d = v.derived(() => o(v.get(n).event));
|
|
432
|
+
v.if(l, (e) => {
|
|
433
|
+
v.get(d) && e(u);
|
|
434
|
+
}), v.reset(a), v.append(e, a);
|
|
435
|
+
}), v.append(e, i);
|
|
436
|
+
},
|
|
437
|
+
$$slots: { default: !0 }
|
|
438
|
+
}), v.reset(n), v.append(e, n);
|
|
439
|
+
};
|
|
440
|
+
v.if(h, (e) => {
|
|
441
|
+
v.get(a).length > 0 && e(g);
|
|
442
|
+
}), v.append(e, l), v.pop();
|
|
443
|
+
}
|
|
444
|
+
//#endregion
|
|
445
|
+
export { F as a, I as i, R as n, S as o, P as r, W as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as e } from "./
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import {
|
|
4
|
-
import { t as i } from "./
|
|
5
|
-
import { u as a } from "./__SKIP_PATHS__-
|
|
1
|
+
import { t as e } from "./WarningCircleIcon-AuYbQdPU.js";
|
|
2
|
+
import { n as t, q as n } from "./scarcity-Ccj5RlrR.js";
|
|
3
|
+
import { t as r } from "./Badge-DCHGGod2.js";
|
|
4
|
+
import { t as i } from "./defaultLabels-CXCsTwix.js";
|
|
5
|
+
import { u as a } from "./__SKIP_PATHS__-B3OPLTzA.js";
|
|
6
6
|
import "svelte/internal/disclose-version";
|
|
7
7
|
import * as o from "svelte/internal/client";
|
|
8
8
|
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/SubtractIcon.svelte
|
|
@@ -39,7 +39,7 @@ function m(e) {
|
|
|
39
39
|
var h = o.from_html("<span><!> </span>");
|
|
40
40
|
function g(n, a) {
|
|
41
41
|
o.push(a, !0);
|
|
42
|
-
let s = o.prop(a, "context", 3, "browse"), c = o.prop(a, "variant", 3, "default"), l = o.prop(a, "isFree", 3, !1), u = o.prop(a, "labels", 3,
|
|
42
|
+
let s = o.prop(a, "context", 3, "browse"), c = o.prop(a, "variant", 3, "default"), l = o.prop(a, "isFree", 3, !1), u = o.prop(a, "labels", 3, i), d = o.derived(() => t(a.remaining, a.total)), f = o.derived(() => {
|
|
43
43
|
let e = u().statusSoldOut || "Sold out", t = u().statusSellingFast || "Selling fast", n = u().scarcityOnlyNLeft || "Only {remaining} left";
|
|
44
44
|
return o.get(d) === "sold-out" ? {
|
|
45
45
|
type: "sold-out",
|
|
@@ -67,10 +67,10 @@ function g(n, a) {
|
|
|
67
67
|
}
|
|
68
68
|
e && m(e);
|
|
69
69
|
});
|
|
70
|
-
var v = o.comment(), y = o.first_child(v), b = (
|
|
71
|
-
var n = o.comment(),
|
|
72
|
-
var n = h(), r = o.child(n), i = (
|
|
73
|
-
t
|
|
70
|
+
var v = o.comment(), y = o.first_child(v), b = (t) => {
|
|
71
|
+
var n = o.comment(), i = o.first_child(n), a = (t) => {
|
|
72
|
+
var n = h(), r = o.child(n), i = (t) => {
|
|
73
|
+
e(t, { size: "16" });
|
|
74
74
|
};
|
|
75
75
|
o.if(r, (e) => {
|
|
76
76
|
o.get(f).showFlame && e(i);
|
|
@@ -78,20 +78,20 @@ function g(n, a) {
|
|
|
78
78
|
var a = o.sibling(r);
|
|
79
79
|
o.reset(n), o.template_effect(() => {
|
|
80
80
|
o.set_class(n, 1, `inline-flex items-center gap-1 type-caption ${o.get(f).type === "sold-out" ? "text-status-error-text" : "text-accent-warning"}`), o.set_attribute(n, "aria-label", o.get(g)), o.set_text(a, ` ${o.get(f).text ?? ""}`);
|
|
81
|
-
}), o.append(
|
|
82
|
-
}, s = (
|
|
83
|
-
|
|
81
|
+
}), o.append(t, n);
|
|
82
|
+
}, s = (t) => {
|
|
83
|
+
r(t, {
|
|
84
84
|
get variant() {
|
|
85
85
|
return o.get(p);
|
|
86
86
|
},
|
|
87
87
|
size: "sm",
|
|
88
|
-
leftIcon: (
|
|
89
|
-
var n = o.comment(), r = o.first_child(n), i = (
|
|
90
|
-
t
|
|
88
|
+
leftIcon: (t) => {
|
|
89
|
+
var n = o.comment(), r = o.first_child(n), i = (t) => {
|
|
90
|
+
e(t, { size: "16" });
|
|
91
91
|
};
|
|
92
92
|
o.if(r, (e) => {
|
|
93
93
|
o.get(f).showFlame && e(i);
|
|
94
|
-
}), o.append(
|
|
94
|
+
}), o.append(t, n);
|
|
95
95
|
},
|
|
96
96
|
children: (e, t) => {
|
|
97
97
|
o.next();
|
|
@@ -104,9 +104,9 @@ function g(n, a) {
|
|
|
104
104
|
}
|
|
105
105
|
});
|
|
106
106
|
};
|
|
107
|
-
o.if(
|
|
107
|
+
o.if(i, (e) => {
|
|
108
108
|
c() === "minimal" ? e(a) : e(s, -1);
|
|
109
|
-
}), o.append(
|
|
109
|
+
}), o.append(t, n);
|
|
110
110
|
};
|
|
111
111
|
o.if(y, (e) => {
|
|
112
112
|
o.get(f) && e(b);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "./Event-
|
|
3
|
-
import {
|
|
4
|
-
import { n as r } from "./ScarcityBadge-
|
|
5
|
-
import { t as i } from "./__SKIP_PATHS__-
|
|
1
|
+
import { E as e } from "./Button-vmWb6wKc.js";
|
|
2
|
+
import { t } from "./Event-B4x0sGkc.js";
|
|
3
|
+
import { a as n } from "./RecommendationsRail-8AVZ0aLE.js";
|
|
4
|
+
import { n as r } from "./ScarcityBadge-DakRfDx4.js";
|
|
5
|
+
import { t as i } from "./__SKIP_PATHS__-B3OPLTzA.js";
|
|
6
6
|
import "svelte/internal/disclose-version";
|
|
7
7
|
import * as a from "svelte/internal/client";
|
|
8
8
|
//#region src/components/Views/SeriesPage.svelte
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as n } from "./Badge-
|
|
1
|
+
import { O as e, v as t } from "./Button-vmWb6wKc.js";
|
|
2
|
+
import { i as n } from "./Badge-DCHGGod2.js";
|
|
3
3
|
import "svelte/internal/disclose-version";
|
|
4
4
|
import * as r from "svelte/internal/client";
|
|
5
5
|
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Spinner/Spinner.svelte
|