@getmicdrop/venue-calendar 4.3.9 → 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-B6RmtBIh.js → ArrowLeftIcon-BYu_Qbkb.js} +1 -1
- package/dist/{Badge-DsuBHDo4.js → Badge-DCHGGod2.js} +8 -9
- package/dist/{BlockPlaceholder-BvArmbbO.js → BlockPlaceholder-BoPMt_9Z.js} +2 -2
- package/dist/{Button-CxQO7vwF.js → Button-vmWb6wKc.js} +52 -23
- package/dist/{Calendar-Dei3Ahdk.js → Calendar-D11ctjrD.js} +286 -260
- package/dist/{CalendarFoundryView-Df10CTZS.js → CalendarFoundryView-DKhpjxnV.js} +4254 -4257
- package/dist/{CalendarIcon-DJh5V_U9.js → CalendarIcon-C8-UVSje.js} +1 -1
- package/dist/CartView-IqOekmQg.js +2245 -0
- package/dist/{Checkout-CZGmzTDh.js → Checkout-ByQsDGg3.js} +339 -317
- package/dist/Checkout-C0lQ0AwV.js +1846 -0
- package/dist/{CheckoutTimer-BubF7ziC.js → CheckoutTimer-B0E9KnHc.js} +3 -3
- package/dist/{ChevronDownIcon-MTzda9yz.js → ChevronDownIcon-C1uJ2yvz.js} +1 -1
- package/dist/{ClockIcon-Dit8R1GZ.js → ClockIcon-Dk9q65sX.js} +1 -1
- package/dist/{CloseIcon-XqvbBmiA.js → CloseIcon-CyR73vpD.js} +1 -1
- package/dist/{CollectionView-B_rrXaQH.js → CollectionView-B-CNyf9Z.js} +8 -8
- package/dist/{CropImage-mVbYhD9Y.js → CropImage-4WcoXkHt.js} +163 -153
- package/dist/{Event-WtVZMQfA.js → Event-B4x0sGkc.js} +1002 -730
- package/dist/{EventPage-B14U0-Hm.js → EventPage--xwhM503.js} +244 -237
- package/dist/{Heading-PKl9dm72.js → Heading-Br1Yqnvg.js} +1 -1
- package/dist/{Image-BWo4QBld.js → Image-M5RaWbKU.js} +1 -1
- package/dist/{Input-Bl1wqeUH.js → Input-Bk8lP6TX.js} +53 -53
- package/dist/{MailIcon-DQTusrr4.js → MailIcon-Ic2SruY-.js} +1 -1
- package/dist/{Modal-CDIhIlu-.js → Modal-CLeZUJ_i.js} +2 -2
- package/dist/{ModalFooter-DwkZn9ls.js → ModalFooter-CSoG_uic.js} +47 -48
- package/dist/{ModalHeader-BSsyLaXY.js → ModalHeader-DpKxDJT_.js} +2 -2
- package/dist/{PasswordInput-CnjRiZJ7.js → PasswordInput-BHj_lokg.js} +2 -2
- package/dist/{shareCopyFeedback.svelte-oxKGmiOe.js → RecommendationsRail-8AVZ0aLE.js} +204 -89
- package/dist/{ScarcityBadge-B4e3Z_Oz.js → ScarcityBadge-DakRfDx4.js} +11 -11
- package/dist/{SeriesPage-DszQMCy9.js → SeriesPage-BaOeDNb6.js} +5 -5
- package/dist/{Spinner-BRgBJYJn.js → Spinner-a1KCKWxZ.js} +2 -2
- package/dist/{Success-BYVtvNeO.js → Success-BtUgc4H7.js} +277 -244
- package/dist/{TagIcon-BAZxGlbC.js → TagIcon-BiYfs6T7.js} +1 -1
- package/dist/{ViewTicketsEmbed-BHDAkYuv.js → ViewTicketsEmbed-Lxg7n02-.js} +30 -30
- package/dist/{WarningCircleIcon-SBK0lpqR.js → WarningCircleIcon-AuYbQdPU.js} +1 -1
- package/dist/{WarningTriIcon-Bj3xpe3S.js → WarningTriIcon-BzI-tSDG.js} +1 -1
- package/dist/{__SKIP_PATHS__-B3-kZeYN.js → __SKIP_PATHS__-B3OPLTzA.js} +1 -1
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.mjs +1 -1
- package/dist/{api-CTiZ6rza.js → api-C1M2t6HU.js} +5 -5
- package/dist/{browser-CziWLQ0z.js → browser-DrfMvEfn.js} +7 -7
- package/dist/{labels-IV_I9087.js → constants-YG4UeBdR.js} +17 -4
- package/dist/{copyToClipboard-C5D-wCS_.js → copyToClipboard-3SejVveg.js} +1 -1
- package/dist/{de-K0-gFyNH.js → de-CzupmMIa.js} +14 -1
- package/dist/{defaultLabels-CpurXn7c.js → defaultLabels-CXCsTwix.js} +16 -16
- package/dist/{es-DsZSuXW4.js → es-B-vQxM9Z.js} +14 -1
- package/dist/{event-d06xVg2P.js → event-DAjJ01GM.js} +1 -1
- package/dist/{event-transform-BjPTqPq1.js → event-transform-DNqGTQhp.js} +47 -46
- package/dist/{eventStatusStream-BhQUTdOZ.js → eventStatusStream-CLLN-Rvf.js} +2 -2
- package/dist/{fr-BmHldIKE.js → fr-B2g-kG7i.js} +14 -1
- package/dist/{href-DMLDnIDe.js → href-DuxMJt4c.js} +3 -3
- package/dist/{i18n-CASpRf85.js → i18n-Ct9Bo-Vp.js} +158 -108
- package/dist/{i18n--3wPB7-n.js → i18n-KdVjJUV5.js} +2 -2
- package/dist/{id-CBHA4B6C.js → id-Dgu5-FC6.js} +14 -1
- package/dist/{imageOptimizer-D8g9XVns.js → imageOptimizer-Ba8P7ZEJ.js} +12 -13
- 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/{nl-Bk3DPD7e.js → nl-CivAQA0D.js} +14 -1
- package/dist/order-totals-DyVkHVqG.js +151 -0
- package/dist/{orders-BK47iONR.js → orders-rH0WZYOW.js} +18 -18
- package/dist/{phoneUtils-YjT5IJ25.js → phoneUtils-BFrVEwkQ.js} +1 -1
- package/dist/{pixels-DjK-0XYz.js → pixels-mdd6C3Bk.js} +3 -3
- package/dist/{pl-CPmO94ic.js → pl-C5VwFH2B.js} +14 -1
- package/dist/{promo-DkM9sLly.js → promo-CTRn_F4t.js} +1 -1
- package/dist/{pt-br-Ch6NFhW6.js → pt-br-B0w9dhVB.js} +14 -1
- package/dist/{constants-rFRS1lF-.js → scarcity-Ccj5RlrR.js} +2 -5
- package/dist/{serverTotals-CvJBYArq.js → serverTotals-Dk3z9sIA.js} +1 -1
- package/dist/{showcase-state-options-x_9iSBsd.js → showcase-state-options-8-egiV5-.js} +1 -1
- package/dist/{to-event-card-props-9y7sVBi_.js → to-event-card-props-a4k6D100.js} +9 -9
- package/dist/{tr-CXnalLJT.js → tr-LGkP5gpA.js} +14 -1
- package/dist/{utils-D80jLqKH.js → utils-BseYYrbn.js} +82 -78
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +89 -91
- package/dist/venue-calendar.iife.js +48 -49
- package/dist/venue-calendar.umd.js +43 -44
- package/dist/{zh-CM2J1Py4.js → zh-D2ZAdq3T.js} +14 -1
- package/package.json +2 -2
- package/dist/CartView-DPzvlZwV.js +0 -2245
- package/dist/Checkout-CaamQTXi.js +0 -1846
- package/dist/keyboard-fiZFqeNA.js +0 -29
- package/dist/locales/4.3.9/flow/de.js +0 -1
- package/dist/locales/4.3.9/flow/es.js +0 -1
- package/dist/locales/4.3.9/flow/fr.js +0 -1
- package/dist/locales/4.3.9/flow/id.js +0 -1
- package/dist/locales/4.3.9/flow/it.js +0 -1
- package/dist/locales/4.3.9/flow/ja.js +0 -1
- package/dist/locales/4.3.9/flow/ko.js +0 -1
- package/dist/locales/4.3.9/flow/nl.js +0 -1
- package/dist/locales/4.3.9/flow/pl.js +0 -1
- package/dist/locales/4.3.9/flow/pt-br.js +0 -1
- package/dist/locales/4.3.9/flow/tr.js +0 -1
- package/dist/locales/4.3.9/flow/zh.js +0 -1
- package/dist/order-totals-Buq9HeZa.js +0 -131
- /package/dist/locales/{4.3.9 → 4.3.10}/main/de.js +0 -0
- /package/dist/locales/{4.3.9 → 4.3.10}/main/es.js +0 -0
- /package/dist/locales/{4.3.9 → 4.3.10}/main/fr.js +0 -0
- /package/dist/locales/{4.3.9 → 4.3.10}/main/id.js +0 -0
- /package/dist/locales/{4.3.9 → 4.3.10}/main/it.js +0 -0
- /package/dist/locales/{4.3.9 → 4.3.10}/main/ja.js +0 -0
- /package/dist/locales/{4.3.9 → 4.3.10}/main/ko.js +0 -0
- /package/dist/locales/{4.3.9 → 4.3.10}/main/nl.js +0 -0
- /package/dist/locales/{4.3.9 → 4.3.10}/main/pl.js +0 -0
- /package/dist/locales/{4.3.9 → 4.3.10}/main/pt-br.js +0 -0
- /package/dist/locales/{4.3.9 → 4.3.10}/main/tr.js +0 -0
- /package/dist/locales/{4.3.9 → 4.3.10}/main/zh.js +0 -0
|
@@ -1,33 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as r } from "./copyToClipboard-
|
|
3
|
-
import { D as i, b as a, h as o, x as s } from "./defaultLabels-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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";
|
|
6
9
|
import "svelte/internal/disclose-version";
|
|
7
|
-
import * as
|
|
10
|
+
import * as v from "svelte/internal/client";
|
|
8
11
|
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/ExportIcon.svelte
|
|
9
|
-
var
|
|
10
|
-
function
|
|
11
|
-
|
|
12
|
-
let r =
|
|
13
|
-
var c =
|
|
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();
|
|
14
17
|
let l;
|
|
15
|
-
var u =
|
|
16
|
-
var t =
|
|
17
|
-
|
|
18
|
-
},
|
|
19
|
-
var t =
|
|
20
|
-
|
|
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);
|
|
21
24
|
};
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}),
|
|
25
|
-
|
|
26
|
-
}),
|
|
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();
|
|
27
30
|
}
|
|
28
31
|
//#endregion
|
|
29
32
|
//#region src/lib/api/transformers/address.ts
|
|
30
|
-
function
|
|
33
|
+
function C(e) {
|
|
31
34
|
if (!e) return [];
|
|
32
35
|
let t = e.split(",").map((e) => e.trim());
|
|
33
36
|
if (t.length < 2) return [e];
|
|
@@ -38,17 +41,17 @@ function g(e) {
|
|
|
38
41
|
}
|
|
39
42
|
return [t[0], t.slice(1).join(", ")];
|
|
40
43
|
}
|
|
41
|
-
function
|
|
44
|
+
function w(e) {
|
|
42
45
|
return e ? `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(e)}` : "";
|
|
43
46
|
}
|
|
44
47
|
//#endregion
|
|
45
48
|
//#region src/lib/api/transformers/faq.ts
|
|
46
|
-
var
|
|
47
|
-
function
|
|
49
|
+
var T = "FAQ", E = 40, D = /^q\s*[:.)-]\s*/i, O = /^a\s*[:.)-]\s*/i;
|
|
50
|
+
function k(e) {
|
|
48
51
|
if (Array.isArray(e)) return e.map((e) => ({
|
|
49
52
|
question: String(e?.question ?? "").trim(),
|
|
50
53
|
answer: String(e?.answer ?? "").trim()
|
|
51
|
-
})).filter((e) => e.question || e.answer).slice(0,
|
|
54
|
+
})).filter((e) => e.question || e.answer).slice(0, E);
|
|
52
55
|
if (typeof e != "string") return [];
|
|
53
56
|
let t = e.trim();
|
|
54
57
|
if (!t) return [];
|
|
@@ -56,33 +59,33 @@ function S(e) {
|
|
|
56
59
|
if (n.length === 0) return [];
|
|
57
60
|
let r = [], i = null;
|
|
58
61
|
for (let e of n) {
|
|
59
|
-
let t =
|
|
62
|
+
let t = D.test(e), n = O.test(e);
|
|
60
63
|
if (t || !n && e.endsWith("?")) {
|
|
61
64
|
i && r.push(i), i = {
|
|
62
|
-
question: e.replace(
|
|
65
|
+
question: e.replace(D, "").trim(),
|
|
63
66
|
answer: ""
|
|
64
67
|
};
|
|
65
68
|
continue;
|
|
66
69
|
}
|
|
67
|
-
let a = e.replace(
|
|
70
|
+
let a = e.replace(O, "").trim();
|
|
68
71
|
if (!i) {
|
|
69
72
|
i = {
|
|
70
|
-
question:
|
|
73
|
+
question: T,
|
|
71
74
|
answer: a
|
|
72
75
|
};
|
|
73
76
|
continue;
|
|
74
77
|
}
|
|
75
78
|
i.answer = i.answer ? `${i.answer}\n${a}` : a;
|
|
76
79
|
}
|
|
77
|
-
return i && r.push(i), r.some((e) => e.question !==
|
|
78
|
-
question:
|
|
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,
|
|
79
82
|
answer: n.join("\n")
|
|
80
83
|
}];
|
|
81
84
|
}
|
|
82
85
|
//#endregion
|
|
83
86
|
//#region src/lib/api/transformers/series.ts
|
|
84
|
-
function
|
|
85
|
-
let n =
|
|
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) => {
|
|
86
89
|
let t = e.venue, n = t ? [t.name, t.stageName].filter(Boolean).join(" — ") : "", r = t ? t.googleLocationNameCache || [
|
|
87
90
|
t.address,
|
|
88
91
|
t.city,
|
|
@@ -99,58 +102,58 @@ function C(e) {
|
|
|
99
102
|
...n ? { venueName: n } : {},
|
|
100
103
|
...r ? { venueAddress: r } : {}
|
|
101
104
|
};
|
|
102
|
-
}), o =
|
|
105
|
+
}), o = t.occurrences?.[0], c = o?.startDateTime ? e(o.startDateTime, r) : "", l = k(t.venue?.faq), u = (t.performers || []).map((e, t) => ({
|
|
103
106
|
id: t + 1,
|
|
104
107
|
displayName: e.displayName || [e.firstName, e.lastName].filter(Boolean).join(" "),
|
|
105
108
|
profileImage: e.profileImage || void 0
|
|
106
|
-
})),
|
|
109
|
+
})), d = t.venue?.location || t.venue?.googleLocationNameCache || "";
|
|
107
110
|
return {
|
|
108
|
-
id:
|
|
109
|
-
title:
|
|
111
|
+
id: t.id,
|
|
112
|
+
title: t.title || "",
|
|
110
113
|
slug: "",
|
|
111
|
-
description:
|
|
112
|
-
date:
|
|
114
|
+
description: t.description || t.eventSummary || "",
|
|
115
|
+
date: c,
|
|
113
116
|
startDateTime: o?.startDateTime || "",
|
|
114
117
|
endDateTime: o?.endDateTime || "",
|
|
115
118
|
doorsOpenTime: "",
|
|
116
119
|
timezone: r,
|
|
117
120
|
imageUrl: i,
|
|
118
121
|
venue: {
|
|
119
|
-
id:
|
|
120
|
-
name:
|
|
121
|
-
address:
|
|
122
|
+
id: t.venue?.id || 0,
|
|
123
|
+
name: t.venue?.name || "",
|
|
124
|
+
address: d,
|
|
122
125
|
timezone: r,
|
|
123
126
|
serviceFeePercentage: 0,
|
|
124
127
|
serviceFeeCents: 0,
|
|
125
128
|
taxPercentage: 0
|
|
126
129
|
},
|
|
127
|
-
performers:
|
|
130
|
+
performers: u,
|
|
128
131
|
tickets: [],
|
|
129
|
-
faqs:
|
|
130
|
-
disclaimer:
|
|
131
|
-
...
|
|
132
|
+
faqs: l,
|
|
133
|
+
disclaimer: t.venue?.disclaimer || void 0,
|
|
134
|
+
..._(t.venue),
|
|
132
135
|
status: "on_sale",
|
|
133
|
-
eventSeriesId:
|
|
136
|
+
eventSeriesId: t.id,
|
|
134
137
|
seriesOccurrences: a,
|
|
135
138
|
isPasswordProtected: !1,
|
|
136
139
|
isRegistrationEvent: !1,
|
|
137
140
|
totalTicketsRemaining: 0,
|
|
138
141
|
totalTicketsCapacity: 0,
|
|
139
|
-
venueAddressLines:
|
|
140
|
-
googleMapsUrl:
|
|
142
|
+
venueAddressLines: C(d),
|
|
143
|
+
googleMapsUrl: w(d)
|
|
141
144
|
};
|
|
142
145
|
}
|
|
143
146
|
//#endregion
|
|
144
147
|
//#region src/lib/api/transformers/collection.ts
|
|
145
|
-
function
|
|
148
|
+
function j(e) {
|
|
146
149
|
let t = (e.events || []).map((e) => ({
|
|
147
150
|
id: e.id,
|
|
148
151
|
name: e.title || "",
|
|
149
152
|
slug: e.slug || "",
|
|
150
|
-
image:
|
|
153
|
+
image: h(e.image || "", { cdn: !0 }),
|
|
151
154
|
startDateTime: e.startDateTime || "",
|
|
152
155
|
status: e.status || "on_sale"
|
|
153
|
-
})), n =
|
|
156
|
+
})), n = h(e.coverImage || "", { cdn: !0 });
|
|
154
157
|
return {
|
|
155
158
|
id: e.id,
|
|
156
159
|
title: e.collectionTitle || "",
|
|
@@ -185,7 +188,7 @@ function w(e) {
|
|
|
185
188
|
}
|
|
186
189
|
//#endregion
|
|
187
190
|
//#region src/lib/public-calendar-flow/transform.ts
|
|
188
|
-
function
|
|
191
|
+
function M(e) {
|
|
189
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;
|
|
190
193
|
if (n <= 0) return "sold_out";
|
|
191
194
|
let c = a(s);
|
|
@@ -193,7 +196,7 @@ function T(e) {
|
|
|
193
196
|
let l = a(r);
|
|
194
197
|
return l && o(l, t) > 0 ? "coming_soon" : "on_sale";
|
|
195
198
|
}
|
|
196
|
-
function
|
|
199
|
+
function N(e, t, n = !1) {
|
|
197
200
|
let r = (e || "").toLowerCase().replace(/\s+/g, "_");
|
|
198
201
|
if (r === "cancelled" || r === "canceled") return "cancelled";
|
|
199
202
|
if (r === "postponed") return "postponed";
|
|
@@ -207,25 +210,25 @@ function E(e, t, n = !1) {
|
|
|
207
210
|
}
|
|
208
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";
|
|
209
212
|
}
|
|
210
|
-
function
|
|
211
|
-
let r =
|
|
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) => ({
|
|
212
215
|
id: e.id || e.ID,
|
|
213
216
|
name: e.name || e.title || "",
|
|
214
217
|
description: e.description || void 0,
|
|
215
|
-
price:
|
|
218
|
+
price: t(e.price),
|
|
216
219
|
fee: e.fee == null ? 0 : e.fee,
|
|
217
220
|
quantityAvailable: e.remainingCapacity ?? e.quantityRemaining ?? e.quantity ?? 0,
|
|
218
221
|
quantityTotal: e.totalCapacity ?? e.quantity ?? 0,
|
|
219
222
|
minPerOrder: e.minPerOrder ?? e.minQuantity ?? 1,
|
|
220
223
|
maxPerOrder: e.maxPerOrder ?? e.maxQuantity ?? 10,
|
|
221
|
-
status:
|
|
224
|
+
status: M(e),
|
|
222
225
|
salesStartDate: e.salesBegin || e.salesStart || e.saleBegin || e.onSaleStart || void 0,
|
|
223
226
|
salesEndDate: e.salesEnd || e.saleEnd || e.onSaleEnd || void 0,
|
|
224
227
|
isDonation: e.type === 2 || e.ticketType === 2 || e.isDonation === !0,
|
|
225
228
|
isHidden: e.visibility === 2 || e.isHidden === !0,
|
|
226
229
|
ticketType: e.type || e.ticketType || void 0,
|
|
227
230
|
sectionName: e.sectionName || e.section || void 0
|
|
228
|
-
})),
|
|
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 = {
|
|
229
232
|
id: i.id || i.ID || 0,
|
|
230
233
|
name: i.name || i.googleLocationNameCache || "",
|
|
231
234
|
address: i.address || i.googleLocationNameCache || "",
|
|
@@ -234,12 +237,12 @@ function D(e) {
|
|
|
234
237
|
serviceFeeCents: i.serviceFeeCents == null ? 0 : i.serviceFeeCents,
|
|
235
238
|
taxPercentage: i.taxPercentage ?? i.tax ?? 0,
|
|
236
239
|
contactEmail: i.contactEmail || i.email || void 0
|
|
237
|
-
},
|
|
240
|
+
}, y = (r.performers || []).map((e) => ({
|
|
238
241
|
id: e.id || e.ID,
|
|
239
242
|
displayName: e.displayName || e.name || "",
|
|
240
243
|
profileImage: e.avatar || e.profileImage || void 0,
|
|
241
244
|
role: e.role || void 0
|
|
242
|
-
})),
|
|
245
|
+
})), b = r.faqs ? k(r.faqs) : k(i.faq), x = (r.showtimes || []).filter((e) => e.published !== !1).map((e, t) => ({
|
|
243
246
|
id: e.id ?? e.eventId ?? t + 1,
|
|
244
247
|
slug: e.slug || "",
|
|
245
248
|
startDateTime: e.startDateTime || e.startTime || "",
|
|
@@ -247,33 +250,34 @@ function D(e) {
|
|
|
247
250
|
status: e.ctaState?.reason === "sold_out" ? "sold_out" : "on_sale",
|
|
248
251
|
ctaText: e.ctaState?.text || "Get tickets",
|
|
249
252
|
ctaDisabled: e.ctaState?.disabled || !1
|
|
250
|
-
})),
|
|
253
|
+
})), S = r.startDateTime ? e(r.startDateTime, a) : "";
|
|
251
254
|
return {
|
|
252
255
|
id: r.id,
|
|
253
256
|
title: r.title || "",
|
|
254
257
|
slug: r.slug || "",
|
|
255
258
|
description: r.description || r.eventSummary || "",
|
|
256
|
-
date:
|
|
259
|
+
date: S,
|
|
257
260
|
startDateTime: r.startDateTime || "",
|
|
258
261
|
endDateTime: r.endDateTime || "",
|
|
259
262
|
doorsOpenTime: r.doorsOpenTime || "",
|
|
260
263
|
timezone: a,
|
|
261
|
-
imageUrl:
|
|
262
|
-
venue:
|
|
263
|
-
performers:
|
|
264
|
+
imageUrl: m,
|
|
265
|
+
venue: v,
|
|
266
|
+
performers: y,
|
|
264
267
|
tickets: o,
|
|
265
|
-
|
|
268
|
+
...Array.isArray(n.addOns) && n.addOns.length > 0 ? { addOns: n.addOns } : {},
|
|
269
|
+
faqs: b,
|
|
266
270
|
disclaimer: r.disclaimer || i.disclaimer || void 0,
|
|
267
|
-
...
|
|
268
|
-
status:
|
|
271
|
+
..._(i),
|
|
272
|
+
status: f,
|
|
269
273
|
salesStatus: r.salesStatus || void 0,
|
|
270
|
-
...
|
|
274
|
+
...d ? { hasPurchasableHiddenTickets: !0 } : {},
|
|
271
275
|
eventSeriesId: r.eventSeriesId || void 0,
|
|
272
|
-
seriesOccurrences:
|
|
276
|
+
seriesOccurrences: x.length ? x : void 0,
|
|
273
277
|
isPasswordProtected: r.hasPassword === !0 || !!r.password,
|
|
274
278
|
isRegistrationEvent: r.ticketType === 1 || r.eventTicketingType === 1,
|
|
275
|
-
totalTicketsRemaining:
|
|
276
|
-
totalTicketsCapacity:
|
|
279
|
+
totalTicketsRemaining: l,
|
|
280
|
+
totalTicketsCapacity: u,
|
|
277
281
|
stageName: r.stage?.name || r.stageName || void 0,
|
|
278
282
|
ageRestriction: r.ageRestriction || void 0,
|
|
279
283
|
displayAgeRestriction: r.displayAgeRestriction ?? !1,
|
|
@@ -284,19 +288,19 @@ function D(e) {
|
|
|
284
288
|
summary: r.eventSummary || void 0,
|
|
285
289
|
postSalesMessage: r.postSalesMessage || void 0,
|
|
286
290
|
collectionId: r.collectionId || void 0,
|
|
287
|
-
venueAddressLines:
|
|
288
|
-
googleMapsUrl:
|
|
291
|
+
venueAddressLines: C(i.address || i.googleLocationNameCache || ""),
|
|
292
|
+
googleMapsUrl: w(i.address || i.googleLocationNameCache || "")
|
|
289
293
|
};
|
|
290
294
|
}
|
|
291
|
-
function
|
|
292
|
-
return
|
|
295
|
+
function F(e) {
|
|
296
|
+
return A(e);
|
|
293
297
|
}
|
|
294
|
-
function
|
|
295
|
-
return
|
|
298
|
+
function I(e) {
|
|
299
|
+
return j(e);
|
|
296
300
|
}
|
|
297
301
|
//#endregion
|
|
298
302
|
//#region src/lib/public-calendar-flow/shareEventLink.ts
|
|
299
|
-
async function
|
|
303
|
+
async function L(e) {
|
|
300
304
|
if (typeof navigator < "u" && typeof navigator.share == "function") try {
|
|
301
305
|
return await navigator.share({ url: e }), "shared";
|
|
302
306
|
} catch (e) {
|
|
@@ -306,25 +310,136 @@ async function A(e) {
|
|
|
306
310
|
}
|
|
307
311
|
//#endregion
|
|
308
312
|
//#region src/lib/public-calendar-flow/shareCopyFeedback.svelte.ts
|
|
309
|
-
function
|
|
310
|
-
let e =
|
|
313
|
+
function R() {
|
|
314
|
+
let e = v.state("idle"), t = v.state(""), n;
|
|
311
315
|
async function r(r) {
|
|
312
|
-
let i = await
|
|
313
|
-
i === "copied" ? (
|
|
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));
|
|
314
318
|
}
|
|
315
319
|
function i() {
|
|
316
320
|
clearTimeout(n);
|
|
317
321
|
}
|
|
318
322
|
return {
|
|
319
323
|
get copyState() {
|
|
320
|
-
return
|
|
324
|
+
return v.get(e);
|
|
321
325
|
},
|
|
322
326
|
get copyFailedUrl() {
|
|
323
|
-
return
|
|
327
|
+
return v.get(t);
|
|
324
328
|
},
|
|
325
329
|
share: r,
|
|
326
330
|
dispose: i
|
|
327
331
|
};
|
|
328
332
|
}
|
|
329
333
|
//#endregion
|
|
330
|
-
|
|
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,15 +1,15 @@
|
|
|
1
|
-
import { t as e } from "./WarningCircleIcon-
|
|
2
|
-
import {
|
|
3
|
-
import { t as r } from "./Badge-
|
|
4
|
-
import { t as i } from "./defaultLabels-
|
|
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
|
|
9
9
|
var s = o.from_svg("<path d=\"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H72a8,8,0,0,1,0-16H184a8,8,0,0,1,0,16Z\"></path>"), c = o.from_svg("<line x1=\"40\" y1=\"128\" x2=\"216\" y2=\"128\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></line>"), l = o.from_svg("<svg aria-hidden=\"true\" viewBox=\"0 0 256 256\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
|
|
10
|
-
function u(e,
|
|
11
|
-
o.push(
|
|
12
|
-
let r = o.prop(
|
|
10
|
+
function u(e, t) {
|
|
11
|
+
o.push(t, !0);
|
|
12
|
+
let r = o.prop(t, "size", 3, "24"), i = o.prop(t, "color", 3, "currentColor"), a = o.prop(t, "class", 3, ""), u = n(), d = o.derived(() => t.weight ?? u?.weight ?? "regular");
|
|
13
13
|
var f = l();
|
|
14
14
|
let p;
|
|
15
15
|
var m = o.child(f), h = (e) => {
|
|
@@ -37,9 +37,9 @@ function m(e) {
|
|
|
37
37
|
(p[e] ??= a(f))(e, { politeness: "polite" });
|
|
38
38
|
}
|
|
39
39
|
var h = o.from_html("<span><!> </span>");
|
|
40
|
-
function g(
|
|
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, i), d = o.derived(() =>
|
|
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",
|
|
@@ -110,7 +110,7 @@ function g(t, a) {
|
|
|
110
110
|
};
|
|
111
111
|
o.if(y, (e) => {
|
|
112
112
|
o.get(f) && e(b);
|
|
113
|
-
}), o.append(
|
|
113
|
+
}), o.append(n, v), o.pop();
|
|
114
114
|
}
|
|
115
115
|
//#endregion
|
|
116
116
|
export { d as n, u as r, g as t };
|
|
@@ -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
|